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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e06042469e16d9c843256b8f096b10571d0056e | ba09912a494cae7f32f31f2fb9312197270274a3 | /isAPIbbc.py | 17c7ad626cc60583b35d139cd9c252623d8dc685 | [] | no_license | sheikhmarsalan5/Web-crawling-bbc | df9b64acd1bf206671d465506c0ab76adc920eeb | cbf2f6f056ac1bca8b20b6fa1df300f09b851172 | refs/heads/master | 2020-12-02T05:26:15.510379 | 2017-10-02T18:05:49 | 2017-10-02T18:05:49 | 96,905,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py |
# coding: utf-8
# In[ ]:
# mongo.py
from flask import Flask
from flask import jsonify
from flask import request
from flask_pymongo import PyMongo
import os
import pymongo
import ssl
import re
app = Flask(__name__)
#app.config['MONGO_URI'] = pymongo.MongoClient('mongodb://arsi:123456@aws-us-east-1-portal.25.... | [
"sheikhmarsalan5@gmail.com"
] | sheikhmarsalan5@gmail.com |
2ec69504dd3a44fadc2a80f09794f49e129fa0e7 | ad531757e3b5323e8beada86263a853ab003186e | /soundwaves/wsgi.py | fe6e82a8d898cb7dc1db14c5419e10da7a37e822 | [] | no_license | CosmicAsad/FSF-Milestone-Project-4 | d0f25fa34f0d3c5c46858226b9bb4efb544a30b6 | b7ede4462b2179a13d0bc924a2aa982d7a9fdba4 | refs/heads/master | 2023-05-05T16:19:22.577141 | 2021-05-31T21:55:53 | 2021-05-31T21:55:53 | 365,752,930 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for soundwaves project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"asy_7@hotmail.co.uk"
] | asy_7@hotmail.co.uk |
a826b762da02774c07c94c4213076ad10aa14a12 | ee9a391b2023ec3d02dfa44a00e9b219a56c1890 | /exercises/timers_ex1.py | f93d350c0d02c0795a340ef5fbc0a32cbaea678c | [
"Unlicense"
] | permissive | kotalbert/interprog1 | b12b5f281bd93440818275b6da6a987e206e1cec | a49ecef14453839518f1e8a6551fb3af493b1c2c | refs/heads/master | 2021-05-29T01:51:13.758768 | 2015-03-12T15:38:34 | 2015-03-12T15:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | """
An Introduction to Interactive Programming in Python (Part 1)
Practice exercises for timers # 1.
Counter to console.
"""
# Counter ticks
###################################################
# Student should add code where relevant to the following.
import simpleguitk as simplegui
counter = 0
# Timer handler
... | [
"pawel@daniluk.waw.pl"
] | pawel@daniluk.waw.pl |
74bf53139b3f8bfc328dc22a1fe0d0984f23aa1e | 48983b88ebd7a81bfeba7abd6f45d6462adc0385 | /HakerRank/algorithms/warmup/staircase.py | f66d8b95f9711713c81d74b72fc3f7ae9288baed | [] | no_license | lozdan/oj | c6366f450bb6fed5afbaa5573c7091adffb4fa4f | 79007879c5a3976da1e4713947312508adef2e89 | refs/heads/master | 2018-09-24T01:29:49.447076 | 2018-06-19T14:33:37 | 2018-06-19T14:33:37 | 109,335,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # author: Daniel Lozano
# source: HackerRank ( https://www.hackerrank.com )
# problem name: Algorithms: Warmup: Staircase
# problem url: https://www.hackerrank.com/challenges/staircase/problem
# date: 7/10/2017
n = int(input())
for i in range(n):
print(" " * (n-1-i) + '#' * (i+1)) | [
"lozanodaniel02@gmail.com"
] | lozanodaniel02@gmail.com |
304d91775752f0ea0072896b27d98e7d9d8e79ad | 6d889c6881f9d950ff416377aa8489b65fe7a89e | /src/py/Config.py | 67a6d657f3fd8bbc67d993090c0d9d2ea964aba5 | [] | no_license | towzeur/SpringChallenge2021 | a203b98fdaa07590f0345346e8c9bfc4710868c6 | 50a1ccfb2048f5fbe156a913ed9b72750f7d7f54 | refs/heads/main | 2023-04-29T18:48:56.550347 | 2021-05-15T11:19:01 | 2021-05-15T11:19:01 | 365,559,787 | 1 | 0 | null | 2021-05-08T16:20:15 | 2021-05-08T16:20:15 | null | UTF-8 | Python | false | false | 1,311 | py | from typing import Callable, Any
from py.java.compat import Properties
class Config:
STARTING_SUN: int = 0
MAP_RING_COUNT: int = 3
STARTING_NUTRIENTS: int = 20
MAX_ROUNDS: int = 24
MAX_EMPTY_CELLS: int = 10
@staticmethod
def load(params: Properties):
Config.STARTING_SUN = Config... | [
"towzeur@gmail.com"
] | towzeur@gmail.com |
f672cb05e879429500f154f105cba25f6049575f | 87e6c47bf745f0b00de2dd9bfe4d4c202cd25def | /projects/vcf/__main__.py | 6d2f55cc310ca95d19a815a07c0850ab7de4803d | [
"Apache-2.0"
] | permissive | Scsabiii/vcf-automation | 16b32fabf63b63022bcf95f12d22e62d11bd5478 | b76bba2b7d490bc7c1581c9f8d75c4052baaa4e9 | refs/heads/master | 2023-06-11T20:36:50.321149 | 2021-07-07T08:50:40 | 2021-07-07T08:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | """An OpenStack Python Pulumi program"""
import pulumi
from pulumi_openstack import Provider
from vcf import ManagementStack, WorkloadStack
# stack
config = pulumi.Config()
stack_name = pulumi.get_stack()
stack_type = config.require("stackType")
#####################################################################... | [
"chuan137@gmail.com"
] | chuan137@gmail.com |
8e1131d79219d690428237391ef0005dba394038 | 5ef10b7b445e646805947913457f36f5427493c8 | /Python Scripts/make folder.py | 05d3e1a0bdf98c8bf6a257a5c95b136b19458e70 | [
"MIT"
] | permissive | DavidZha1994/BIG_DATA_MRCNN | fb50a477a8d2735830b2dcf04f85241d6661eeb5 | ebbbd2ba7d0fcc1e1772cecf20ddf70c55c19e97 | refs/heads/main | 2023-06-19T14:38:36.323504 | 2021-07-17T14:30:04 | 2021-07-17T14:30:04 | 386,955,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import os
import shutil
# 获取当前目录下所有文件及目录
listDir = os.listdir()
# 遍历
for dir in listDir:
# 判断如果是文件夹或是自己则忽略
if os.path.isdir(dir) or 'make folder.py' == dir:
continue
# 分离文件名和扩展名,获取不带后缀的文件名
dirName = os.path.join(os.path.splitext(dir)[0] , "images")
# 判断是否存在同名目录,
# 不存在则将创建此目录,将同名文件移动到目录... | [
"sa-u@live.com"
] | sa-u@live.com |
385b947796cd7f565fd783fac4dea3070265ab44 | f9609ff4f2bbea570f3cb4cd3f9fe6b3595d4145 | /commands/cmd_pick.py | bc62e4f118aaf1f658d5fc3efcd20ce0ae76c432 | [] | no_license | VladThePaler/PythonWars-1996 | 2628bd2fb302faacc91688ad942799537c974f50 | d8fbc27d90f1deb9755c0ad0e1cf2c110f406e28 | refs/heads/master | 2023-05-08T19:51:28.586440 | 2021-05-14T04:19:17 | 2021-05-14T04:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | # PythonWars copyright © 2020, 2021 by Paul Penner. All rights reserved.
# In order to use this codebase you must comply with all licenses.
#
# Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer,
# Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe.
#
# Merc Diku Mud improvements copyrig... | [
"jindrak@gmail.com"
] | jindrak@gmail.com |
ad80dde2706cfd1501ff64844d95b36b010469d5 | 3748c52b13d43e47e1e966c8a6384a4da1f62400 | /HotPotato/play_melody.py | d3729d0b3519d56f6bc546fb40a7198eac404872 | [
"MIT"
] | permissive | caternuson/CircuitPython-Demos | 075c177afe8e2110f6005a73946d848ffb8fad8c | cffb226750614caed5368d7ca31c06be321f54d8 | refs/heads/master | 2021-08-22T17:29:42.346620 | 2017-11-30T20:46:38 | 2017-11-30T20:46:38 | 110,045,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import time
from pitches import *
from adafruit_circuitplayground.express import cpx
# notes in the melody:
melody = (
NOTE_C4, NOTE_G3, NOTE_G3, NOTE_A3, NOTE_G3, 0, NOTE_B3, NOTE_C4
)
# note durations: 4 = quarter note, 8 = eighth note, etc.:
tempo = (
4, 8, 8, 4, 4, 4, 4, 4
)
# Loop forever
while True:
if... | [
"methuzla@speakeasy.net"
] | methuzla@speakeasy.net |
e03ab40dfed40a54353f46ef3ac456d93ed78294 | c4a0a3ccdf27c937d0f70bf5b26677a3a1e43c7e | /cinder/volume/drivers/yadro/tatlin_iscsi.py | 5b57c24f1ed83b74bb0875faee4e522bc57af400 | [
"Apache-2.0"
] | permissive | LINBIT/openstack-cinder | 2538e1769ae95bc166ac7743f5ddbff14a594022 | 04a5d6b8c28271f6aefe2bbae6a1e16c1c235835 | refs/heads/linstor/master | 2023-08-30T20:58:08.103197 | 2023-08-28T10:07:56 | 2023-08-28T11:04:35 | 103,643,517 | 9 | 6 | Apache-2.0 | 2021-03-04T17:12:59 | 2017-09-15T10:07:48 | Python | UTF-8 | Python | false | false | 5,292 | py | # Copyright (C) 2021-2022 YADRO.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"v.belogrudov@yadro.com"
] | v.belogrudov@yadro.com |
ed980cdffd3ea52d5a3c9dd371ea04717c78ac2d | a5150a5d40b00696e34d7a804291e5d58da1ee6a | /intro/week6/hello0.py | ca60b2fadf2ff2a4c3a6f7d863c2ae7f04894311 | [] | no_license | yuvraajsj18/CS50 | 4ce6757b00b3559b563f6c5f12d4935ad53b95f0 | 12bdd0b41dcf5f757a2bea1a74367940e29e3ead | refs/heads/master | 2020-12-04T21:14:39.378897 | 2020-07-11T07:35:58 | 2020-07-11T07:35:58 | 231,904,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | print("Hello, World")
| [
"yuvraajsj18@gmail.com"
] | yuvraajsj18@gmail.com |
b67524fc6e7c23053e2b553b1571659550c940ce | e3c45f1b7f50ebf97ceaa456c2741dd96b3e465e | /hardway/ex13.py | 5eb98842a479743b10bb751d8e84d5c54b274240 | [] | no_license | js19931018/learn-python_hardway | 11800289d3fcbef665a705bcb83d971272e4c706 | 47d2498c3155c3176eb1d675b6b9afacc4f96e69 | refs/heads/master | 2021-01-23T16:04:53.168971 | 2017-09-19T11:35:19 | 2017-09-19T11:35:19 | 102,720,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
#only for shell
# python ex13.py xx xx xx | [
"17362196672qq.com"
] | 17362196672qq.com |
3f33b75acfe94c9f9e63269c3ddac21c734f7532 | e2d6785fa7142b1b795818eec3419923a924a189 | /run.py | e842517de260b906a989c2e28b1a08a15e838cc5 | [] | no_license | TaigaTenori/pro3copy | 7156c29c48dc9464a2d2ed44057ab3dd6c4b5244 | 9d2c3c261a53a68cf257fbaad6919c75fcfacf8d | refs/heads/master | 2020-03-31T08:03:15.320566 | 2018-10-07T21:45:25 | 2018-10-07T21:45:25 | 152,043,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,366 | py | from flask import Flask, render_template, request, redirect, url_for
import operator
import os
import time
import pickle
app = Flask(__name__)
# remove passing debug (answer) to render_template on release
highscores = { }
# save_obj and load_obj are used to save highscores for persistency
def save_obj(obj, name ):... | [
"nowakowski.peter@gmail.com"
] | nowakowski.peter@gmail.com |
07e4f6b8f7a4800410fca3be8e25edfed06d6695 | 60b933f50112dfd19053d51fbb399ce238bfd3cb | /ec2Controller/ec2Controller/asgi.py | b988b892b7e1a77c1899c03941c82d864a9531ac | [] | no_license | sysadmin-exe/vm-creation-with-terraform | 22f8be2031d19182d364dd7e693aa6d44da9d9a2 | 5a804ab4fd6ac6cc4a67e0d1fd29ba0b82d4c279 | refs/heads/main | 2023-08-27T08:43:26.990137 | 2021-10-29T14:26:50 | 2021-10-29T14:26:50 | 421,510,496 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for ec2Controller project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"victor.chukwuemeke@wizeline.com"
] | victor.chukwuemeke@wizeline.com |
805755339a16eaec65b2e3da58396563a002cbd3 | 28b3be3f87fc8f6697d8a6d14e87722a0c55e436 | /worker.py | fa7b4f36915b6b8d378726cffff80696c027a5b6 | [] | no_license | kdresdell/instabot | ee0d70a5c2bc5c2768ede2c8a56e367686be8001 | 40c99bb759f0b1ae705336fda6a289f34c529a98 | refs/heads/main | 2023-03-27T22:15:36.959645 | 2021-03-26T01:47:31 | 2021-03-26T01:47:31 | 347,241,921 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # sudo apt install redis-server
# sudo nano /etc/redis/redis.conf
# > supervised systemd
# sudo systemctl restart redis.service
import os
import redis
from rq import Worker, Queue, Connection
listen = ['high', 'default', 'low']
redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
conn = redis.from_u... | [
"kdresdell@gmail.com"
] | kdresdell@gmail.com |
c03f0b2418fb0dd2ab17edc295ace80c286f9d3c | 1567fb032fb73057b60b7ae4830c195b29164c8b | /englxx/english/english.py | a80acd07870c7f03925a3c705c60bdabae4de4b2 | [] | no_license | guparo/myaddons | 76967a02135198ba53335d39f766c7d987a7b02d | 3e10debb5215a525782b84a1786d09e8927e7231 | refs/heads/master | 2016-09-06T09:03:59.992662 | 2015-11-08T23:55:17 | 2015-11-08T23:55:17 | 42,006,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,864 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"guparo@hotmail.com"
] | guparo@hotmail.com |
c79ad8ea925dbcbafa6913dc553dcbc36d642ec6 | 8ac3fe3d861a222210912a02effea2110456d052 | /django_for_beginners/project_5_newspaper_app/project_5_newspaper_app/wsgi.py | cca475eb69cb94b0610ce991e98ef571d9d83dc4 | [
"MIT"
] | permissive | rednafi/django-unchained | 40446960f52f0c905a6ba3e318154ca11a31188b | 0f71c8d056699496d4af3ab049f9b2f9d057486b | refs/heads/master | 2022-12-10T10:11:52.906880 | 2020-09-01T17:43:58 | 2020-09-01T17:43:58 | 282,356,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for project_5_newspaper_app project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"redowan.nafi@gmail.com"
] | redowan.nafi@gmail.com |
149b25fa62fea80199d97212095fd9710c512872 | 34cc056060008c88053c1df372c83615e2dcdd12 | /sortify.py | ed8cbb5a039e76d9a4dd7988bd5fd24bf8e37db3 | [] | no_license | stephkananth/sortify | c328568cdaa31f1d191af0bc51c1454ead278996 | 2071a1ec84ba6678886a9eb736c418b83afb6553 | refs/heads/master | 2021-01-19T10:05:33.642500 | 2020-11-21T22:14:58 | 2020-11-21T22:14:58 | 87,825,173 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115,502 | py | ################################################################################
import copy
import json
import math
import os
import unicodedata
import webbrowser
from tkinter import *
from tkinter import messagebox
from tkinter import simpledialog
import matplotlib
matplotlib.use('TKAgg')
import matplotlib.pyplot a... | [
"noreply@github.com"
] | stephkananth.noreply@github.com |
59667b3ab417cea363a5350f370ad8b328698383 | 624c25ffbdf6936e86483da05570f066bee5fc85 | /youtube player.py | 9741d1012518cae483ee80aa14b4e86fd0bd1fb1 | [] | no_license | engineer-rohan-arora/Python-Mini-Projects | c0670fc772ba4fe0257bb25aed1bd185ffa28220 | cbe252c9edf9be9b7e0e7f060355c308dc690d86 | refs/heads/master | 2020-08-03T04:47:35.657397 | 2020-04-14T20:20:33 | 2020-04-14T20:20:33 | 211,628,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 15 20:36:20 2019
@author: rohan
"""
import urllib.request
import urllib.parse
import re
import vlc
import pafy
query_string = urllib.parse.urlencode({"search_query" : input()})
html_content = urllib.request.urlopen("http://www.youtube.com/results?" + query_string)
search_... | [
"engineer.rohan.arora@gmail.com"
] | engineer.rohan.arora@gmail.com |
05f83e01c7d8040cb4f8617bb101c60df7f9b706 | 952bb9d4447d8b00fe92c36d36041341cf5badbe | /gaussain/gaussian_process.py | 51248781e5b32f2e235549d7949dcc79932a0c45 | [] | no_license | yueshifeng/recommendSystem | a7674702d5d06fd37fcb06def38e4db0d9f3fd90 | 7926bd6781b7035a61a7622f1d8d3669bec1bc63 | refs/heads/master | 2023-02-17T03:27:44.264080 | 2023-02-16T09:42:35 | 2023-02-16T09:42:35 | 197,124,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,919 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import math
import time
from collections import defaultdict
import numpy as np
import pandas as pd
from sklearn.metrics import roc_auc_score
from gaussian_model_utils import bound_x, seek_model, train_seed_cnt, pop_size, NGEN, w_init, w_final, \
c1, c2... | [
"noreply@github.com"
] | yueshifeng.noreply@github.com |
a36f4578229f9c89a36cdaf42a000572b0dba212 | 67df38343a631ebb5691a06fde58f0d7fd3c77f0 | /kinbot/reac_Intra_R_Add_ExoTetCyclic_F.py | 0f9531a9c50cc2a9b7c8f51fee0b78020b50772b | [
"BSD-3-Clause"
] | permissive | rubenvdvijver/KinBot | 2e7d04f2d1ce6133474d147d2fd8cd690979e2d1 | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | refs/heads/master | 2020-03-30T02:24:05.339808 | 2018-09-30T17:34:52 | 2018-09-30T17:34:52 | 150,629,175 | 0 | 0 | BSD-3-Clause | 2018-09-27T18:13:13 | 2018-09-27T18:13:13 | null | UTF-8 | Python | false | false | 4,890 | py | ###################################################
## ##
## This file is part of the KinBot code v2.0 ##
## ##
## The contents are covered by the terms of the ##
## BSD 3-clause license included in the LICENSE ##
## file,... | [
"rvandev@sandia.gov"
] | rvandev@sandia.gov |
c2c1496172a29a2befe5af4a54636c078fe089bd | b7bc1616cb257b14fc01fd248b3c4c8ca20da0e6 | /src/knn/kNN.py | 2a5cda0d2a497701bd645463dd22962cf398d32a | [] | no_license | suzuizui/machineLearning | 7c1614a45f83cc5d4c84b7632c16d1659cf217e8 | af63b00a2d657cb9fdfacb69f8840a09f05012e6 | refs/heads/master | 2020-04-02T21:22:26.853355 | 2018-11-02T03:06:23 | 2018-11-02T03:06:23 | 154,796,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | '''
Created on Sep 16, 2010
kNN: k Nearest Neighbors
Input: inX: vector to compare to existing dataset (1xN)
dataSet: size m data set of known vectors (NxM)
labels: data set labels (1xM vector)
k: number of neighbors to use for comparison (should be an odd number)
... | [
"qi.shang@bianlifeng.com"
] | qi.shang@bianlifeng.com |
5f0e411b5528cb3a6ea1dc1ae9065387ace75e92 | 52a3bd8445d0318c2f950d361067e635c8d15c45 | /climb51job/climb51job/middlewares.py | 2bcb29a846f7bf9d6ae3d6a60e5f6863f6256b3d | [] | no_license | zvz427/spider_demo | 1995cbc87c2dcd51e5eceaa3aaecc1003dec3b1f | 7557a7919411588f4c8b1a947e8ca34a51ebdbd6 | refs/heads/master | 2020-03-17T03:09:03.903764 | 2019-04-11T14:21:19 | 2019-04-11T14:21:19 | 133,222,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,158 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
from fake_useragent import FakeUserAgent
class Climb51JobSpiderMiddleware(object):
# Not all methods need to be define... | [
"zvz427@163.com"
] | zvz427@163.com |
4c2914661a8ade9913796f1e01379860f3533f71 | 77f075bd6149666cbd5822e9211df1b4532a7bef | /python/sharpsmt/myExceptions.py | d79b0d865b46df5a3b5c78c15caed6ea8564eaaa | [
"MIT"
] | permissive | anton-musrevinu/sharpNAR | 0f1cd8a530d77b53e648f1a9955b548f0934f225 | 689803d1c1d57728597d839cef8863af61a113b7 | refs/heads/master | 2020-03-21T06:17:05.148019 | 2018-07-03T19:09:22 | 2018-07-03T19:09:22 | 138,209,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #Error Hanling
class Error(Exception):
"""Base class for other exceptions"""
pass
class StopException(Error):
"""Raising when the Stop Flag is being set"""
pass
class TestException(Error):
"""Raising when an test failed"""
pass
class AlgorithmInitException(Error):
"""Raising when an alrogithm is intended... | [
"a.fuxjaeger@outlook.com"
] | a.fuxjaeger@outlook.com |
360e8615a2eecc73cd781e57f8b187a220fc3b42 | 1dc46aecc61b2948010a63b3f4d7a0ddf4c484dd | /Gorla/PycharmProjects/djangoProject5/FbDp/models.py | 82c8bd8c4c5556d2070f887d719a502fd6df7456 | [] | no_license | Harigorla/Django_Hari | b7eb6056893e9c9d3d25da35ba97b939e5545703 | af88447f461f4374af47b7f33fbd5e4116704009 | refs/heads/master | 2023-01-20T01:11:48.262875 | 2020-11-26T16:06:18 | 2020-11-26T16:06:18 | 316,276,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.db import models
class WallPaper(models.Model):
name = models.CharField(max_length=100)
img = models.ImageField(upload_to='images/')
| [
"harigorla91@gmail.com"
] | harigorla91@gmail.com |
9ac452966e223226c3e1db9ec7adaaf16dfac7a3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/108.py | 8e333fdaa30e655bb563ae427b87024a7b16ab27 | [] | 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 | 1,289 | py | #!/usr/bin/env python
def main():
dict = [];
fin = open("A-large.in","r");
fout = open("output.out","w");
st = [];
st = (fin.readline().split());
L = int(st[0]);
# print L;
D = int(st[1]);
N = int(st[2]);
for i in range(D):
dict.append(fin.readline());
flag = 0;
f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b7d814dd182f6cd605e5fa786dc4d64ab703375f | e1fc040d0ae86548f2040ac01dded4ad56d42d29 | /com/tiffany/coding/Recursion/Fibonacci Sequence (iterate).py | 2369b48fd6a714093dd28c6ce1014e1ed8693961 | [] | no_license | Tiffanyzzx/PythonCoding | 7253cd55ccd733963e8ac2dba1c7ba3c95668b61 | c2a4c92217e8abaa3fd64a41d81f7dc44ddbe54a | refs/heads/master | 2021-05-27T13:18:17.344210 | 2020-06-14T15:38:08 | 2020-06-14T15:38:08 | 254,273,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # Get the Kth number in the Fibonacci Sequence. (K is 0-indexed, the 0th Fibonacci number is 0 and the 1st Fibonacci number is 1).
# Examples
# 0th fibonacci number is 0
# 1st fibonacci number is 1
# 2nd fibonacci number is 1
# 3rd fibonacci number is 2
# 6th fibonacci number is 8
class Solution():
def fib(self, ... | [
"tiffanyzhaozx@gmail.com"
] | tiffanyzhaozx@gmail.com |
b6d7d8e6d552e78f7cee555afc75438f0ead2bb9 | fb3eca64e1b85bcd2ef2a84b1ac04695675be2f4 | /process_tweets.py | 2a571459b4b450fb22ecb9d7d3f9cb3e2c44cb6e | [
"MIT"
] | permissive | yogeshpv/user_recommendation | c902130556815b54cbd0f13b62644835aba5db4f | 9891df15b03cfdf5f9d2dd234ce5ee5d0a30bfdd | refs/heads/master | 2021-01-20T18:33:39.394530 | 2016-06-28T19:16:01 | 2016-06-28T19:16:01 | 61,409,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,103 | py | #!/usr/bin/python
import ast
import json
import sys
import unicodedata
import re
if len(sys.argv) < 2 :
print 'Usage: {} <input_file>'.format(sys.argv[0])
exit(1)
# Remove unicode characters from text
def remove_unicode(text_data):
if text_data == None or text_data == '':
return text_data
return u... | [
"veettily@yahoo-inc.com"
] | veettily@yahoo-inc.com |
1ab3b3a4c874fd5fb991a72e5ee8fbd5a3aa51a6 | 04499e087c172a1f7ec2be427094508adfc0e869 | /multiple_defenders - experience replay/Env_simulation_old.py | b2bffc0b4ce3ce709a1f4b4da98f40e17149b89f | [] | no_license | lucashu1/wildlifeRL | 15e6c6a1a0d652b10b2bdaf43e621a00bbc6fd13 | 354c6a71d2462e735f44c317aea52f7a5f846cdb | refs/heads/master | 2021-01-19T11:34:40.439092 | 2018-02-20T03:18:27 | 2018-02-20T03:18:27 | 82,254,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,051 | py | ### Environment setup class ####
import numpy as np
from scipy.signal import convolve2d
from random import randint
from random import sample
class Env_simulation():
def __init__(self, grid_len=10, num_features=7, num_animals=75, \
num_adversaries=15, num_defenders=5):
self.grid_len = grid_len
self.n... | [
"lucashu@usc.edu"
] | lucashu@usc.edu |
0295b640b26f4bb0d3530fdca137a12fec31a2bc | fc07d02eb407fd6858a63d3f4143e0feafc6e481 | /rango/migrations/0001_initial.py | 0c072c39fd90aab22d2cffcc494092fbff3dbb39 | [] | no_license | yxh1126/project_cybertrans | 0ec726c0f9537a70e136be4a64c5efc805b642ea | 453685262ca46b9531b6099c0a9051c4c2bdc373 | refs/heads/main | 2023-04-18T04:39:23.477657 | 2021-04-25T04:42:37 | 2021-04-25T04:42:37 | 360,381,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | # Generated by Django 3.2 on 2021-04-22 05:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"behuangyi@gmail.com"
] | behuangyi@gmail.com |
52fa25902cd920ec5106376c86c4fb0558eac41a | 744f4ffa39fb1def7f273931d6b7c61107e61896 | /KerasLearningNote/KerasCode_5/keras_parcticeLSTM.py | a35dc37559479e140e4c516f14557d8a2972eaca | [] | no_license | QinLuyao11/DeepLearningNote | 0a43f8012a46fbd8c541a983aae20541e3b1d2c6 | f9b0018e0a739fad41255b24828ac9c96ad30ceb | refs/heads/master | 2023-08-26T16:48:02.385555 | 2021-11-09T09:55:26 | 2021-11-09T09:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | from __future__ import print_function
from keras.preprocessing import sequence
from keras.models import Sequential
from keras.layers import Dense, Embedding
from keras.layers import LSTM
from keras.datasets import imdb
max_features = 20000
maxlen = 80
batch_size = 32
print('loading data...')
(x_train, y_train), (x_te... | [
"noreply@github.com"
] | QinLuyao11.noreply@github.com |
371d3803e36c602ac8dc215e9b84516bc8a47c08 | 03249810f515c8b1d7ac9a35ccf5d8a2b93f8812 | /CXSJ3/detection/craft.py | 5dece1170b1f0ae9efee11c97aa65969720b5cfe | [] | no_license | LiyunZhang0405/PhotoTranslation | c66232c187e01d12c760cede171105120c6b4fdd | 538ed25b43354a7061d53b42d10b91c121f002bf | refs/heads/master | 2023-04-01T12:05:49.946276 | 2021-04-07T16:51:55 | 2021-04-07T16:51:55 | 355,057,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | """
Copyright (c) 2019-present NAVER Corp.
MIT License
"""
# -*- coding: utf-8 -*-
import torch
import torch.nn as nn
import torch.nn.functional as F
from detection.vgg16_bn import vgg16_bn, init_weights
class double_conv(nn.Module):
def __init__(self, in_ch, mid_ch, out_ch):
super(double_conv, self).__... | [
"liyun_zhang_0405@yahoo.com"
] | liyun_zhang_0405@yahoo.com |
494e4772c31bec3cabd93dfbd95c1aa4b4162194 | 29f3760831ed8628b4da90880f6c4e30f8aad5f9 | /tests/test_long_performance.py | 837d9f2a551fc45035cfa9022a2fef18ec7866b4 | [] | no_license | rohanmirch/spreadsheet_engine | 9e081f1e6109e2b7f1975057630da075eaf23158 | 17d087ee850693d1b320aef99f8a83a23691b263 | refs/heads/main | 2023-04-07T03:11:02.127451 | 2021-04-05T01:00:05 | 2021-04-05T01:00:05 | 354,678,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | '''Test long chain updates'''
import context
from sheets import Workbook
from pyinstrument import Profiler
if __name__ == '__main__':
wb = Workbook()
p = Profiler()
# Make new sheet
wb.new_sheet("Sheet1")
wb.set_cell_contents("Sheet1", "A1", "=1")
for n in range(2, 1001):
wb.set_cell... | [
"noreply@github.com"
] | rohanmirch.noreply@github.com |
d8427d008c5cf4825c1030e899b67126ae25f237 | 3ba067db1ec87be7ed432a65b5b6ee8f090b02ae | /lab_10/hand_test.py | 6bdab0c6decc8836e2b26f3514451cc6d57dfd7e | [] | no_license | Muntaser/PythonExploration | a50f70472a229bd3269ba660eff43c5285ad7626 | 72b430eca27b4711fe553b1cf680f39447398b3d | refs/heads/master | 2020-03-24T04:41:05.128380 | 2018-07-26T16:18:01 | 2018-07-26T16:18:01 | 142,461,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #
# hand_test.py:
#
# Muntaser Khan
#
import deck as d
def dealHand(deck):
try:
hand = deck.dealHand()
except IndexError:
deck = d.Deck()
hand = deck.dealHand()
return hand
def main():
deck = d.Deck()
for count in range(11):
hand = dealHand(deck)
for card in hand:
print (str(card),end=' -- ')
... | [
"mkhan96@LAMU02W93BTHTD6.uhc.com"
] | mkhan96@LAMU02W93BTHTD6.uhc.com |
eb50862e1e06b68ef0b53e8d1d0c6570a66598e8 | 24a7bb5c2eb78450024ee114ef138ee05d83be4e | /modules/permutation_alignment.py | 6bd9ab474101f1515ebb2d5da79d5ab6af3b27fd | [] | no_license | karnwatcharasupat/directional-sparse-filtering-tf | ecfefc1b500a0f84ebdcd83c2dc46e8c8d830610 | 6484335e26a30a0804a6ec230f17f59a092c8661 | refs/heads/main | 2023-05-15T07:06:16.210957 | 2021-06-11T21:44:09 | 2021-06-11T21:44:09 | 334,715,907 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,230 | py | import numpy as np
import lapjv
from queue import Queue
from multiprocessing import Pool
import multiprocessing as mproc
def permAlign_fineTune_workers(
f, P, P_normalized, old_P_normalized, total_per
): # For multithreading through permalign finetuning processes
[n_freq, n_frame, n_src] = P.shape
# prin... | [
"karn001@e.ntu.edu.sg"
] | karn001@e.ntu.edu.sg |
6c789865d217e951bf592474ea48368553797088 | 678d565ca09905c708746e5d0d8b728f34806056 | /train_autoencoder.py | e5db705a0d1faae0b627ade936eee48118e8346e | [] | no_license | pauloesampaio/binary_auto_encoder | d920a6c22c7d63bc31530f17340ea93605789d7a | 0c46a66806b13c4ec8f2d5c89eb5bd11d9e92022 | refs/heads/master | 2023-03-24T11:28:07.113968 | 2021-03-17T04:23:39 | 2021-03-17T04:23:39 | 348,357,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,440 | py | import os
import numpy as np
from utils.io_utils import (
yaml_loader,
load_dataset,
generate_tiles,
binarize_tiles,
restore_tiles,
hamming_distance,
)
from utils.model_utils import build_model
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.optimizers i... | [
"paulo.ed@gmail.com"
] | paulo.ed@gmail.com |
7bc9c6ef9a7f0401dab021c451ad528291265ab7 | 6f8ae9748c691696f523d99cd0e53614a5b2ec86 | /processing/settings.py | ff749d58ce39cfd0c7d0fa4639ac83a29d893d6c | [
"NASA-1.3",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | imagingearth/espa-processing | 23a3d0827208ef04bbdee84b25eb4c650404acc0 | 180ccef85fe86454567a272d79eee72e981a0911 | refs/heads/master | 2020-12-25T21:13:33.760107 | 2016-03-31T13:36:30 | 2016-03-31T13:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | ../espa_common/settings.py | [
"rdilley@usgs.gov"
] | rdilley@usgs.gov |
9aa0c1a2a84c4531be1654c00c14df38907975d1 | c8a6a1148b1d7797678741ff4a9d0c2a027df8d5 | /manage.py | 9d677f21772e928a166d2dbdcee5c9ca0188f393 | [] | no_license | psgpyc/stoneageentrepreneur | e69b7c753783272b98aa786f90adfd4664917aeb | 5482b84b1c278074f9a98f2a5235acebe2941011 | refs/heads/master | 2023-06-10T04:44:16.806812 | 2021-07-03T19:02:27 | 2021-07-03T19:02:27 | 261,749,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sae.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErro... | [
"paritosh.ghimire666@gmail.com"
] | paritosh.ghimire666@gmail.com |
3ffa6b80c19a7c0e823449211e091fbea490e97e | 673c78f94d69a3cd27365d2c31c08a3e1e897467 | /python/raindrops/raindrops.py | 7e4f56a8fcf1aad4d1d99b3284950f9f32e58695 | [] | no_license | shadd-anderson/Exercism-Exercises | b91f7c2708653ea53311f193be276f5c6f97d787 | aafe197036c4634915174a41f7133179dc863afa | refs/heads/master | 2021-01-08T22:12:27.626826 | 2020-03-05T21:40:57 | 2020-03-05T21:40:57 | 242,157,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | def convert(number):
final = ""
if number % 3 == 0:
final += "Pling"
if number % 5 == 0:
final += "Plang"
if number % 7 == 0:
final += "Plong"
if final == "":
return str(number)
else:
return final
| [
"shaddanderson18@gmail.com"
] | shaddanderson18@gmail.com |
b3e47f429727fb61ea53bf808e9a2e028205e520 | c0ad40f3f51688f12e077726ad1912820a322314 | /reminder/migrations/0001_initial.py | c783054062621f9644f983381f9b5afb4ceedb6b | [] | no_license | apramz/project2 | 5c91896f66e66024f42804c4e60b22ea69e45d2d | f035bd96a0428518c0a6de9db5dfbae2abe9efe6 | refs/heads/master | 2021-01-15T22:34:53.241231 | 2017-08-25T04:28:35 | 2017-08-25T04:28:35 | 99,902,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-08-02 00:18
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import phonenumber_field.modelfields
class Migration(migrations.Migrat... | [
"apramono@berkeley.edu"
] | apramono@berkeley.edu |
31d23e8b16164e294f7ab8575329967266600da4 | 92b409ed4b9a50047dfbcb549c4aa7b01ec1e4db | /followers_following.py | aa5584bcdf58c69c9085e76250ecd426b8c61316 | [] | no_license | hhg8840/Instagrambot | 826c95993a87bc2d5c48db2a5150800d6d9e1d15 | 8e6611fe19a0769d88e2b595a0a052dacd41f431 | refs/heads/master | 2022-12-03T16:01:49.929476 | 2020-08-21T21:27:15 | 2020-08-21T21:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | from selenium import webdriver
import time
from random import randint
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
def get_names(driver, profilename):
time.sleep(1)
path = "/html/b... | [
"noreply@github.com"
] | hhg8840.noreply@github.com |
b4fae5ec2dfeb5c6c4e3038730c2990639d7f75e | d74c54c22c059223fbc95ea214def418f4a5e6b8 | /search.py | d45c636812497a76b93167cac2c0af2ff3dd3754 | [] | no_license | aryavatan/PacmanSearch | cbd23a0bede4c753b5453d23f794bb7380e07171 | fec5d10eedf447ed438e74e0f0247adc267171e9 | refs/heads/master | 2023-01-02T17:22:07.446984 | 2020-10-19T13:11:04 | 2020-10-19T13:11:04 | 302,981,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"arya.vatanabadi@gmail.com"
] | arya.vatanabadi@gmail.com |
71e1afa9451e87bab05da25ac43c988d03ed75ba | 3d94a650bfdd3cf5072b2b1a3736783479daac51 | /onnx_darknet/handlers/backend/identity.py | 3ed92345f1f53985a2f54b09db427d9b93827629 | [
"Apache-2.0"
] | permissive | s94285/onnx-darknet | 50a0489d85ed753cdf07ff5c136d598b668106b5 | d0227c305710b740e6b06315d83b021a183bfdaf | refs/heads/master | 2023-03-17T14:33:54.238541 | 2018-10-12T21:41:14 | 2018-10-12T21:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # import tensorflow as tf
from onnx_darknet.handlers.backend_handler import BackendHandler
from onnx_darknet.handlers.handler import onnx_op
from onnx_darknet.handlers.handler import darknet_func
@onnx_op("Identity")
@darknet_func(tf.identity)
class Identity(BackendHandler):
@classmethod
def version_1(cls, node... | [
"minhoo2000@gmail.com"
] | minhoo2000@gmail.com |
5f260679b0ccca312ac430d3922190317567a4ee | ffd3bebaa761448899be36639e74a317dce1baca | /spark_print.py | f7dbf6cedd95352e4fde9d5e7f5afeb6fdf9c6c6 | [
"MIT"
] | permissive | thiru56139/docker-kafka-spark1 | 0a1f7bececd285eb7dcbf4aef1ebe9e9f09ffd06 | 3858f67da16ee741a649ab6bc68fc31338190dd4 | refs/heads/master | 2023-05-08T15:52:34.392249 | 2021-05-27T14:50:31 | 2021-05-27T14:50:31 | 370,723,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from pyspark.context import SparkContext
from pyspark.sql.session import SparkSession
sc = SparkContext('local')
spark = SparkSession(sc)
df = spark \
.read \
.format("kafka") \
.option("kafka.bootstrap.servers", "172.25.0.12:9092,172.25.0.13:9092") \
.option("startingOffsets", "earliest") \
.option("subscri... | [
"noreply@github.com"
] | thiru56139.noreply@github.com |
240fb61b081a081b9f3c81c6e1a9ad742e59c0bf | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/bgp/ipv4multicast.py | 2baf3dbdd4ebc6ddbc3f29808a704fecd9fbf9e5 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 7,158 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# 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 rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
7a43311a13fed52e7fa7d94a2b24660de0824582 | 36d73f6d206fba855c24e7de9e4585268d4fdbb7 | /urls.py | 03280e5bdeafc270e036a003014041f8e6a13d7c | [] | no_license | igrooves/releasourcer | 129b76665416590a782d2676b136dc8705a9c6f4 | bb50865c910269d764f86c1cef96faaf0adbebed | refs/heads/master | 2021-01-17T06:31:01.770507 | 2011-06-12T12:44:19 | 2011-06-12T12:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'releasourcer.views.home', name='home'),
# url(r'^releasourcer/', include('releasou... | [
"benmatselby@gmail.com"
] | benmatselby@gmail.com |
8b0f47915f4e846a1fe087ded925577628ec8cea | 93493ea15090f51eed85a15bd1d0dae9100aa8f7 | /src/sample_opencv_pkg/scripts/Python Script/sortNonLarge.py | 090daeaeb845f994103d4a2db761afaff2e1f28e | [] | no_license | Art233/ME780-W20-DA2-Team6 | 3c4a53eca91d36c7cebbfc7f30358e74b8f392f3 | 16995809205cdce341b0cc6a55cc0f8ccede6b6c | refs/heads/master | 2022-04-12T00:31:04.971000 | 2020-04-08T00:18:23 | 2020-04-08T00:18:23 | 253,938,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,868 | py | #!/usr/bin/env python
import rospy
import sys
import cv2
import serial
from sensor_msgs.msg import Image, CameraInfo
from cv_bridge import CvBridge, CvBridgeError
from std_msgs.msg import String
import numpy as np
arduino_serial = serial.Serial('/dev/ttyACM0',9600)
class cvBridgeDemo():
def __init__(self):
s... | [
"jianan.lin233@gmail.com"
] | jianan.lin233@gmail.com |
94a594126f361db8b6315465bb407b84d8168b1f | 6de21a56c207612bc80c8a0eff142fe3f69e442d | /Estimation_tables_benchmark.py | 223103c499e55c0bff1e0a47272fd0343989ab13 | [] | no_license | MARQyie/PhD_project2_distance | b1992488d699dafd4d7cd4c68c1fdefabf062789 | fd00afeae5ea691ca060c1e2b4fa9683a5c1f039 | refs/heads/master | 2021-11-15T20:10:31.366362 | 2021-08-30T06:52:45 | 2021-08-30T06:52:45 | 246,245,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,047 | py | # Make estimation table
''' This script uses the estimation results to make nice estimation tables.
'''
#------------------------------------------------------------
# Import necessary packages
#------------------------------------------------------------
import os
os.chdir(r'D:/RUG/PhD/Materials_papers/2-Working_pa... | [
"50098649+MARQyie@users.noreply.github.com"
] | 50098649+MARQyie@users.noreply.github.com |
c00fd188b7a82678a3bc54928e908cf3ac38606d | 0fa3ad9a3d14c4b7a6cb44833795449d761b3ffd | /day13_all/day13/exercise01.py | 3be55a1b970b4e3020ba5ee3075394ff7c75dee3 | [] | no_license | dalaAM/month-01 | 3426f08237a895bd9cfac029117c70b50ffcc013 | e4b4575ab31c2a2962e7c476166b4c3fbf253eab | refs/heads/master | 2022-11-22T23:49:43.037014 | 2020-07-24T07:37:35 | 2020-07-24T07:37:35 | 282,154,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | """
重写下列类型的str方法,体会重写
"""
class Employee:
def __init__(self, eid, did, name, money):
self.eid = eid
self.did = did
self.name = name
self.money = money
def __str__(self):
return f"{self.name}的员工编号是{self.eid},部门编号是{self.did},月薪是{self.money}"
class Department:
d... | [
"1105504468@qq.com"
] | 1105504468@qq.com |
952105ec15e628f7cd738caad27b7ec938734af7 | 85bbc40c365d8e16f6d47ba18d63ca38349ad97c | /sitemap-posts-to-elasticsearch.py | ee76097ccde7a92a7dfb4210d6602bc232c4ff29 | [] | no_license | pbindustries/Useful-Scripts | 2b8401b6bb42a77364f985ba49adf57d35d36803 | ea6e813ac60890aba18b000fb5c42a4a82ad973c | refs/heads/master | 2020-04-05T13:45:52.899323 | 2018-11-21T17:36:29 | 2018-11-21T17:36:29 | 156,908,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | import re
import time
import requests
from bs4 import BeautifulSoup
from elasticsearch import Elasticsearch
es_client = Elasticsearch(['http://10.0.1.10:9200'])
drop_index = es_client.indices.create(index='blog-sysadmins', ignore=400)
create_index = es_client.indices.delete(index='blog-sysadmins', ignore=[400, 404])
... | [
"noreply@github.com"
] | pbindustries.noreply@github.com |
ecb1c92c6cb9c09b5bd1f743a447b6cca333fd5f | 3c47fdc334c003a205a35eb9e1b39963e62c3161 | /iotedgehubdev/composeproject.py | 24873eabdbcdb968b9e45817b09996d7da378087 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/iotedgehubdev | 9b67a5c1af43ba787025dfade2ecc655cfcd7d62 | 7eede7286a0603e565c8b183d090f2585521aae6 | refs/heads/main | 2023-09-04T02:54:46.212462 | 2022-11-04T00:37:49 | 2022-11-04T00:37:49 | 138,967,965 | 97 | 37 | NOASSERTION | 2022-11-04T00:37:50 | 2018-06-28T04:57:46 | Python | UTF-8 | Python | false | false | 8,781 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import json
import os
import sys
import yaml
from collections import OrderedDict
from io import StringIO
from .compose_parser import CreateOptionParser
from .output import Output
COMPOSE_VERSION = 3.6
CREATE_OPTIONS_MAX_C... | [
"noreply@github.com"
] | Azure.noreply@github.com |
917f4af6a9585225e469dc47ab42b37e0a3e19d9 | d130e6727bd484764520a2cb62b6fb26e075f949 | /cfg.py | 062f031e07e02007cbac2845eefca41f37ec8aad | [] | no_license | smasher0310/crawler | e7e3205e0e599ab6ed97e854bf1c36a0a5b7eab2 | ca5f9253d09d7db50e351dbf18882294d58606d6 | refs/heads/master | 2022-12-07T14:13:15.354835 | 2020-08-30T12:09:17 | 2020-08-30T15:49:42 | 289,487,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | DB_Name = 'crawlerDB'
DB_host = 'localhost'
DB_port = 27017
local_folder = 'local_files'
link_limit = 5000
link_count = 0
thread_count=5
file_ext = {
'text/html; charset=utf-8' : 'html',
'application/json; charset=utf-8' : 'json',
'application/json' : 'json'
}
d... | [
"satyajeet.kumar0310@gmail.com"
] | satyajeet.kumar0310@gmail.com |
0e039c8aefc178a9803802b7fbd808bde13327a3 | 364b1108c8304696e759b63668cb0f3b72e514ba | /Set1/constants.py | e81394db656f7fab31fa528329114b46bc34cd3c | [] | no_license | seitzej/cryptopals | c370b1920c8c8b327eb30d9875a1e228c5438d96 | aa13ca727edb734a645a0ef295edef367064fb92 | refs/heads/master | 2021-06-26T22:16:23.644726 | 2017-09-11T00:51:50 | 2017-09-11T00:51:50 | 103,066,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py |
# From http://www.data-compression.com/english.html
freqs = {
'a': 0.0651738,
'b': 0.0124248,
'c': 0.0217339,
'd': 0.0349835,
'e': 0.1041442,
'f': 0.0197881,
'g': 0.0158610,
'h': 0.0492888,
'i': 0.0558094,
'j': 0.0009033,
'k': 0.0050529,
'l': 0.0331490,
'm': 0.020212... | [
"seitzej@gmail.com"
] | seitzej@gmail.com |
3173eb4004167ae8e687d0213944a6422ab9f310 | f5f62ed1f738f1f7a863468c7d6c0cf20af490f3 | /Uebungen/korregierte_rueckgabe/Blatt04.Lehmann.Music/Aufgabe1/Zahlenreihen/zahlenreihen.py | 272aeae6faf07e496449e516bf610bbc7fff6cc5 | [] | no_license | AndrejLehmann/my_pfn_2019 | e0ceb7e0b999abb978c10bc15c7e05f31739b8ca | fe4d4ddb7192ecd2c0e0dbe043d72485c5ed9810 | refs/heads/master | 2020-08-31T01:53:37.486097 | 2020-04-20T20:48:08 | 2020-04-20T20:48:08 | 218,550,745 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | #!/usr/bin/python3
# Lehmann.Music
# bitte eure Bearbeitungszeit angeben, und vor Abgabe alle nicht notwendige
# File oder Lösung von anderen löschen. -0.5
# bitte vor Abgabe überprüfen dass alle Zeile kürzer als 80 Zeichen sind.
# Punkte: 4.5/5
# Korrektur: LZ
import sys
if len(sys.argv) != 2:
sys.stderr.write(... | [
"noreply@github.com"
] | AndrejLehmann.noreply@github.com |
4d10320d891c2f97f5555759930874aabd3c98d3 | 0c42cb64dfe3ec9a046fc95bd26543faa4e0aa6b | /users/forms.py | 3785a73dcb9b70433314f4a6da334bb0885e8f3b | [] | no_license | shahjalalh/zed | 38bf0e4ad2eea4b066b6be55e6a7f1aefffc00e5 | 7bc9dc5b5e1921204c2b7cf72afe43d798953599 | refs/heads/master | 2022-12-12T10:17:19.797791 | 2021-01-27T15:31:48 | 2021-01-27T15:31:48 | 171,094,577 | 0 | 0 | null | 2021-01-27T15:32:54 | 2019-02-17T07:35:58 | CSS | UTF-8 | Python | false | false | 3,605 | py | from django import forms
from users.models import User
from django.contrib.auth.forms import UserCreationForm
from allauth.account.forms import LoginForm, SignupForm
# login form
class CustomLoginForm(LoginForm):
def __init__(self, *args, **kwargs):
super(CustomLoginForm, self).__init__(*args, **kwargs)
... | [
"shahjalal.tipu@gmail.com"
] | shahjalal.tipu@gmail.com |
8c6e52f21979f9c706821df3c1e10416bad935da | 910d4dd8e56e9437cf09dd8b9c61167673140a1f | /0219 stack 2/부분집합.py | 9cc5973c23a43a26be7da70e2af42e568605cd34 | [] | no_license | nopasanadamindy/Algorithms | 10825b212395680401b200a37ab4fde9085bc61f | 44b82d2f129c4cc6e811b651c0202a18719689cb | refs/heads/master | 2022-09-28T11:39:54.630487 | 2020-05-29T09:49:56 | 2020-05-29T09:49:56 | 237,923,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # {1, 2, 3} 모든 부분집합 출력하기
N = 3
A = [0 for _ in range(N)] # 원소의 포함여부 저장(0,1)
# print(A)
data = [1, 2, 3]
def printSet(n):
for i in range(n): # 각 부분 배열의 원소 출력
if A[i] ==1: # A[i]가 1이면 포함된 것이므로 출력
print(data[i], end =" ")
print()
def powerset(n, k): # n : 원소의 갯수, k : 현재 depth
if n == k:... | [
"iuui21@snu.ac.kr"
] | iuui21@snu.ac.kr |
e407f8f543af99a1ae3b0f80214a619af432f588 | 8852413d3c1a7f8ee1456746abcaede2c8e4064a | /vgdl/hyperparameter_optimization.py | 201a71035844222ba57997b0f7c42d7ad005686f | [] | no_license | kevinwu23/RC_RL | d8107f062e08aa0447f80d8fe3e588cd9f14b509 | 68eb92bce00a7303b42582a35812640eb8cdeaa0 | refs/heads/master | 2020-04-04T07:55:26.661348 | 2019-02-25T00:50:07 | 2019-02-25T00:50:07 | 155,765,510 | 0 | 1 | null | 2019-07-18T21:06:17 | 2018-11-01T19:29:40 | Python | UTF-8 | Python | false | false | 3,300 | py | from hyperopt import fmin, tpe, hp
from pathos.multiprocessing import ProcessingPool
from main_agent import Agent
import time
import dill
# NOTE: fmin seems to fail with the hyperopt version installed by default
# as of 01/2018: it is best to install directly from the github repo with
# the command 'pip install git+h... | [
"kevinwu@rclogin05.rc.fas.harvard.edu"
] | kevinwu@rclogin05.rc.fas.harvard.edu |
d107f8e0ed4cfc84619da79eb494a218196f83e4 | 868bf80c386e9afa439fbd5b20bb77203f803c83 | /Lecture-4/Lecture-4-working/airline/flights/migrations/0003_passenger.py | 721b5767e929d7a15fe209e1805ffcf547976857 | [] | no_license | JohnK-Code/CS50-Web | 521edc2105b72d4d338207bdc437b787738d64ff | 4b3005df84b88f2344542834f80d665e5ce9bc8d | refs/heads/master | 2023-03-10T07:35:33.408876 | 2021-02-18T18:44:39 | 2021-02-18T18:44:39 | 296,047,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Generated by Django 3.1.1 on 2020-10-19 10:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flights', '0002_auto_20201015_1457'),
]
operations = [
migrations.CreateModel(
name='Passenger',
fields=[
... | [
"19jk2009@gmail.com"
] | 19jk2009@gmail.com |
321f8fd39e415e88019ac78dc497ce6458b2ae21 | e52ca5e3806755857f4c4412f2d47cfadfd10e46 | /Kirk's Workspace/GithubCrawler/CodexMRS/vendor/LogWriter.py | 6a26feec2a576fe37607db10b585ee919a012683 | [] | no_license | clmorgan111/Final-Year-Project | 0b96593d605bc1e3fd69e02e006cae271eed0f6b | dfdfb5755ef1da29c816c412e3f0d8a7a49f8b5d | refs/heads/master | 2020-04-15T13:03:07.732902 | 2018-07-20T12:06:25 | 2018-07-20T12:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | '''
@author: Star
@time: 05-03-2018
'''
import logging
import os
class LogWriter:
# Write error log into logs/error.log
def write_error_log(self, content):
if not os.path.exists("logs"):
os.mkdir("logs")
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', file... | [
"soapke@outlook.com"
] | soapke@outlook.com |
860481e131fd0dc2c26a1d2ead6ea3a7a31f40ac | e5cf5fd657b28d1c01d8fd954a911d72526e3112 | /rflx/OLD/rflx_fun.py | 6b410b651f85f51fbb1669486baa8c55b88da077 | [] | no_license | parkermac/ptools | 6b100f13a44ff595de03705a6ebf14a2fdf80291 | a039261cd215fe13557baee322a5cae3e976c9fd | refs/heads/master | 2023-01-09T11:04:16.998228 | 2023-01-02T19:09:18 | 2023-01-02T19:09:18 | 48,205,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | """
Functions for the rflx code.
"""
import numpy as np
# function to create Sin and Sout
def get_Sio_chatwin(Qr, Socn, ds, nx):
L0 = 50e3 # length of salt intrusion for Qr = Qr0
Qr0 = 1e3 # m3/s
L= L0 * (Qr/Qr0)**(-1/3) # length of salt intrusion (m)
a = Socn/(L**1.5)
alpha = ds/L
x = np.lins... | [
"p.maccready@gmail.com"
] | p.maccready@gmail.com |
bea4cd0cbd5c164f7b157b32e2a4113a59ad3e38 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_classification.py | bd52a0e808e5760a15e7a8f060d804b2c5a3c921 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 1,485 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
fac4b28d499e22ce687f715e8ecc4a4f5f132391 | 362224f8a23387e8b369b02a6ff8690c200a2bce | /django/django_orm/wall/login_app/migrations/0003_auto_20210511_1328.py | 2728d4dbaa480b108c62108ed84f8255c853d617 | [] | no_license | Helenyixuanwang/python_stack | ac94c7c532655bf47592a8453738daac10f220ad | 97fbc77e3971b5df1fe3e79652b294facf8d6cee | refs/heads/main | 2023-06-11T02:17:27.277551 | 2021-06-21T17:01:09 | 2021-06-21T17:01:09 | 364,336,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 2.2 on 2021-05-11 20:28
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('login_app', '0002_comment_message'),
]
operations = [
migrations.AddField(
model_name='comment',
... | [
"wangyixuan@msn.com"
] | wangyixuan@msn.com |
26a2475c57f6455b4ca216d143c179e13aa6bdc0 | 2bc70bf81469e6a4eadabfb50a161fa165615ef4 | /FoodZo/foodMin/tourism/admin.py | f4f7bdc9e477ab82892be256a0c5b99d52283a62 | [] | no_license | rushabhkhara/FoodZo | 3a3eb659ff0deea77a9fecd71881dede03f92eba | 83848b9deaa879fb87ae96f7d88e2d467939729d | refs/heads/master | 2022-09-16T01:31:44.587613 | 2020-05-31T08:12:26 | 2020-05-31T08:12:26 | 268,236,034 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.contrib import admin
from tourism.models import fileData, Hotel , Restaurant,Cart
# Register your models here.
admin.site.register(fileData)
admin.site.register(Hotel)
admin.site.register(Restaurant)
admin.site.register(Cart) | [
"rushabh.khara@spit.ac.in"
] | rushabh.khara@spit.ac.in |
552385336a6eaaac22215c1ccc12198721e4f178 | 1482ff81c8449d854e11bd0fe909044690af3a24 | /src/estimator.py | 0b5c205263a717f4279d719fd7c76ce949259322 | [] | no_license | euxhenh/phenotype-cover-experiments | eb5cb429fdc8fd8ef9aa2666622ad91cbe72c67c | b6e07d35d2044cb78aa5d1c7da51c237aae8b009 | refs/heads/main | 2023-04-16T16:23:10.901498 | 2022-11-11T18:14:57 | 2022-11-11T18:14:57 | 490,969,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import abc
class BaseEstimator:
@abc.abstractmethod
def __init__(self):
self.__fitted__ = False
@abc.abstractmethod
def fit(self, **kwargs):
self.__fitted__ = True
| [
"ehasanaj@cs.cmu.edu"
] | ehasanaj@cs.cmu.edu |
5b1fa5cf06c354371704a96dc3592fd0d88d54c9 | 5debf5db5c596d19b789a8c417d83a79ce0c05c5 | /scripts/geneticalgorithm/setup.py | 90138825d07bf3ba48dc820e3a3f1d79496b2c0c | [] | no_license | Jensbeltman/masterRepo | 0944358111957de8fde8f531648ba9b325d11622 | 765e2fe39525a90a7aada28417d8fdcf2fe23c9b | refs/heads/master | 2023-06-04T03:38:12.371479 | 2021-06-24T07:02:03 | 2021-06-24T07:02:03 | 293,446,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | '''
Copyright 2020 Ryan (Mohammad) Solgi
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 rights to use,
copy, modif... | [
"jens@beltman.dk"
] | jens@beltman.dk |
737148ea7829692220c67ae1a0891bebe51dbb7c | be84cb7f6d239e72ffe0bd727124ced688560e83 | /zhiyou/items.py | ee8914e431897f6604ba475639a0cd5daa8e2752 | [] | no_license | liuyuqiong88/youji_spider | 6fded24514256907e463377ecf0abb48bca2c71e | 2c2ae28a4e3654d46c025b3d1e736d5db7ca8d2d | refs/heads/master | 2020-03-17T12:51:22.029216 | 2018-05-16T03:34:21 | 2018-05-16T03:34:21 | 133,606,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ZhiyouItem(scrapy.Item):
# define the fields for your item here like:
data_source = scrapy.Field()
time_stamp = scrapy.Field()
c... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
c3dbc57ec9981d4339528d7afa2d6770b6a73b09 | 17e4c35102c17557107dadd08be2ed8e53bb8923 | /recipes/spectra-cluster-cli/spectra-cluster-cli.py | a571b453d642c74a001e4fbd2503c816d855606c | [] | permissive | messersc/bioconda-recipes | 60d778e0cb39162529a641f4951bfc03c1e24af8 | dfb14ef5efa30a411f84dd92b151695e4aef11c7 | refs/heads/master | 2021-01-13T10:22:43.927562 | 2018-11-14T20:50:20 | 2018-11-14T20:50:20 | 76,643,577 | 0 | 0 | MIT | 2018-11-15T08:44:12 | 2016-12-16T10:09:14 | Shell | UTF-8 | Python | false | false | 2,622 | py | #!/usr/bin/env python
#
# Wrapper script for Java Conda packages that ensures that the java runtime
# is invoked with the right options. Adapted from the bash script (http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in/246128#246128).
#
# Program Parameters
#
import os
import s... | [
"ypriverol@gmail.com"
] | ypriverol@gmail.com |
f5b582683a9ff2eb527d8b9eb52ab2071db25516 | ff56fa387876e07d0d64114cfefec84c9437a6a1 | /share/gcompris/python/braille_lotto.py | ab8dc9d1fb5f77414e66620527c873821cba88d8 | [] | no_license | sugar-activities/4313-activity | 8dc44f413b5657a807c77310a5d5ae67d201321b | 7a82fcb52c5c6ea816950f7980e8da177041b479 | refs/heads/master | 2021-01-19T23:15:32.356071 | 2017-04-21T04:56:00 | 2017-04-21T04:56:00 | 88,937,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,668 | py | # gcompris - braille_lotto.py
#
# Copyright (C) 2011 Bruno Coudoin and Srishti Sethi
#
# 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 opt... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
c7e359ca46f0576f84ce0048129dba72ada9b51f | b3d5687a9d900cea4b03fb96364da5c418555338 | /breast_cancer_classifier-master/src/heatmaps/run_producer_project.py | 0b68bb6db8473dab757c7a2dfb987f97379ea13e | [] | no_license | medical-projects/DNN-for-Breast-Cancer-Detection | d55934dbaa113f3a28fe502df75147833e5ab768 | f1ad1f4ee6482ddb989dc826445a121c3a74e4f3 | refs/heads/master | 2022-12-29T15:20:49.893351 | 2020-10-24T18:02:42 | 2020-10-24T18:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,947 | py | # Copyright (C) 2019 Nan Wu, Jason Phang, Jungkyu Park, Yiqiu Shen, Zhe Huang, Masha Zorin,
# Stanisław Jastrzębski, Thibault Févry, Joe Katsnelson, Eric Kim, Stacey Wolfson, Ujas Parikh,
# Sushma Gaddam, Leng Leng Young Lin, Kara Ho, Joshua D. Weinstein, Beatriu Reig, Yiming Gao,
# Hildegard Toth, Kristine Py... | [
"perededdu@gmail.com"
] | perededdu@gmail.com |
a8ac289204df9d5b118e6c74edb7a076e40909b4 | d69c3a0ec6c945567ba19ac3ff8fb96bbfe92da5 | /apps/customer/serializers.py | 27fdb50cadc7f45815578370b3b3b0aa21853424 | [] | no_license | schrodi/confdjango-backend | b5e111022b10e540d770eb73745360349522d7a8 | d148372f8dd5304f22d828557af5161cb385ed78 | refs/heads/master | 2021-08-20T05:33:07.529507 | 2017-11-28T08:30:01 | 2017-11-28T08:30:01 | 112,307,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from rest_framework import serializers
import apps.customer.models
class CustomerSerializer(serializers.ModelSerializer):
class Meta:
model = apps.customer.models.Customer
fields = '__all__'
| [
"andre.schroth@gmail.com"
] | andre.schroth@gmail.com |
8576588a3bb786516abac88293bdd8a02844dff0 | 3bf81bfb776e5ce26a74f8a082e23f64ec13dec0 | /client_data/migrations/0031_auto_20171002_1429.py | e6b89f143f1a17de1387e179c93f1b737d58aa0e | [] | no_license | DanCocking1/MWDTC | e8579a7640362b10009d509b944f060cacb5cf1d | 31ad654d49cdda30d1568af86c8bd9a950df69e9 | refs/heads/master | 2022-12-23T00:39:28.330236 | 2017-10-18T22:52:58 | 2017-10-18T22:52:58 | 107,171,975 | 0 | 0 | null | 2021-10-21T17:51:34 | 2017-10-16T19:13:03 | JavaScript | UTF-8 | Python | false | false | 1,142 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-10-02 19:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"Dan.Cocking@gmail.com"
] | Dan.Cocking@gmail.com |
9c52abeff51c69c275327673b4db6e553c602913 | d4257399c547a8b926acff519559215f8909f4a1 | /Python字典提取.py | 0cd6ccd008536b1773bcc16dda58f5559ad2c4a9 | [] | no_license | 1617193138/test | 3d5766b1c88079b874d1af81959a59cb0918accb | 874ac24315e5ab82ad7e95cb129f1a07b57792f4 | refs/heads/master | 2021-05-07T20:47:58.747265 | 2017-11-21T03:20:49 | 2017-11-21T03:20:49 | 108,935,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | dict = {'Name': 'Zara', 'Age': 7}
print "Value : %s" % dict.keys()
Value['Age', 'Name']
print "Key : %s" % dict.keys()
Key['Age', 'Name']
for key in dick.keys():
print key
for key in dict.keys():
print key
for key in dict.keys():
print dict[key]
| [
"813818992@qq.com"
] | 813818992@qq.com |
9e3a392c6349b84aba9f6ca914893cfcbd83c8b2 | 73f9ce203129a8a5b3742655ab36bb0014ebf30b | /example/test.py | 32cb2da78bf4cec3f3e51de4b3b902d3b6be2bb3 | [
"MIT"
] | permissive | masterliuf/akshare | bd20c6999253a8e4ccc7949a8d89c4fc5559b3bf | 15907161341041dce0fd7a7bdcad7bda4b999187 | refs/heads/master | 2022-07-15T22:57:19.249644 | 2022-06-21T01:26:12 | 2022-06-21T01:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | import akshare
import empyrical
def test():
print('测试及功能展示: ')
# ----------------------------------------------------------------------
print('\n' + '-' * 80 + '\n一个品种在时间轴上的展期收益率')
df = akshare.get_roll_yield_bar(type_method='date', var='RB', start_day='20181206', end_day='20181210', plot=False)
... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
3f4d879cbc7ca57d1d0226c1c066ddf0d4350344 | e3f94fd8a7e62b98c739c4ebaffc3c8a32b3c041 | /py/nqueens/nqueen.py | e0a7f45b36a0c08221f725387a4a905d39bdf5cc | [] | no_license | TheOneAC/ML | 94f8fcc1b8fd3b8a032e7af288c11689c395f72f | d0d02deb0dd656a8074ac4ef26f53904e8088ead | refs/heads/master | 2020-05-21T21:38:06.026611 | 2017-09-16T17:05:49 | 2017-09-16T17:05:49 | 84,650,560 | 0 | 0 | null | 2017-09-16T17:02:24 | 2017-03-11T13:07:11 | Python | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/python
import random
def conflict(state,nextX):
nextY = len(state)
for i in range(nextY):
if abs(state[i] - nextX) in (0, nextY -i):
return True;
return False
def queens(num=8, state=()):
for pos in range(num):
if not conflict(state,pos):
if len(state) == num-1:
yield (pos,)
else:
... | [
"scuhss@gmail.com"
] | scuhss@gmail.com |
30651ba1a8f4ce79c71012e118c0a9a7428f5387 | e951c686fc947efd10ff41069b43a7b875672c33 | /server/network_monitor_web_server/db/mysql_relevant/sql_str/monitor_detail.py | 92f774d13f2e381df4822faef8d8b106510b5dba | [] | no_license | JasonBourne-sxy/host-web | f48c794f2eb2ec7f8a5148620b6ca3f9b062b924 | 649d1a61ac15182b55c17e47c126d98d9b956b44 | refs/heads/master | 2022-12-20T09:21:57.947230 | 2019-10-28T07:23:41 | 2019-10-28T07:23:41 | 208,742,511 | 1 | 0 | null | 2022-12-11T06:57:55 | 2019-09-16T07:56:38 | Python | UTF-8 | Python | false | false | 354 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: monitor_detail
Description :
Author : 'li'
date: 2019/9/27
-------------------------------------------------
Change Activity:
2019/9/27:
-----------------------------------------... | [
"marjey_lee@163.com"
] | marjey_lee@163.com |
97c98a9c0e2d029a2118bb74311038b0584d8087 | 404ef68924c7e17778d8b135092c0d64e129fc10 | /Test/test_pytreearray.py | 39bcd168b6afb7917b0d7cc1ceea8b19038d6545 | [] | no_license | inailuig/pytreearray | bce0bce324458ab389298931896fd90f0b551e86 | 0a760effcc16f2c43f65565b8a509a2e1b2517b6 | refs/heads/dev | 2023-08-04T22:22:49.202749 | 2021-07-07T20:01:57 | 2021-07-07T20:05:12 | 371,046,061 | 7 | 1 | null | 2021-07-07T20:05:12 | 2021-05-26T13:35:21 | Python | UTF-8 | Python | false | false | 3,945 | py | import pytest
import numpy as np
import jax
import jax.numpy as jnp
import jax.flatten_util
import pytreearray as pta
from pytreearray._src.util import tree_allclose, tree_random_normal_like
import pytreearray.multiply
jax.config.update("jax_enable_x64", True) # noqa: E402
@pytest.fixture
def vec():
seed = 123... | [
"clemens@inailuig.it"
] | clemens@inailuig.it |
37b892c97c0820812ea19c836b634700c06f55cb | ff11c1a08d51e76f20b41b642b5151827bce1dab | /4_serverlog/apartado1.py | 9012e13c3a5ce744cd71674ce369fcd38e95ecf0 | [] | no_license | SGDI-ucm/Practica1 | 0362f7c4040da4733d06e6ca03d65ff837e897a7 | 1ef492be488eecef4088eb2d49e6a8622b13a86b | refs/heads/master | 2021-01-12T11:13:13.801826 | 2016-11-09T18:15:29 | 2016-11-09T18:15:29 | 72,873,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | # coding=utf-8
import re
import sys
import pyspark
from pyspark import AccumulatorParam
'''
Viktor Jacynycz García y Miguel del Andrés Herrero declaramos que esta solución es fruto
exclusivamente de nuestro trabajo personal. No hemos sido ayudados por ninguna otra persona
ni hemos obtenido la solución de fuentes ext... | [
"r31del@gmail.com"
] | r31del@gmail.com |
036c0f5b800f29a09f25b98caf464557827e3984 | cfc02237a7c728eea8af81a876a8d7a726921d52 | /mysite/settings.py | 33aa7fbe0f2a6a7b3c1638050e521ef14c34a3e6 | [] | no_license | asakenkyzy/my-first-blog | dfa199f3d578a6690b81d6cdea122dae3c1617d8 | 93a7375a8ee7534165e7706e2be02fedb30338c0 | refs/heads/master | 2023-01-02T13:49:10.606587 | 2020-11-04T18:58:27 | 2020-11-04T18:58:27 | 309,394,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from... | [
"asselek0105@gmail.com"
] | asselek0105@gmail.com |
c2055c8c7cd60a0a6b2c9f9c1bd26019bc78c7cf | 991d16647fcc0f2d13462a4924258918f5de8441 | /onnxmltools/convert/coreml/operator_converters/neural_network/Dot.py | da39309b9748ec70f7a109de6f2d33f59864426d | [
"MIT"
] | permissive | weikexin/onnxmltools | 4e45b7c6f7dd5f92b3826540119b989a923142cd | b5ea8a43bb0abf5ca23f0913dc2d9ea11b9724b1 | refs/heads/master | 2020-03-16T18:39:18.779562 | 2018-05-11T01:08:18 | 2018-05-11T01:08:18 | 132,881,649 | 0 | 0 | MIT | 2018-05-10T09:54:31 | 2018-05-10T09:54:31 | null | UTF-8 | Python | false | false | 2,685 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from ....... | [
"shauheen@users.noreply.github.com"
] | shauheen@users.noreply.github.com |
8e328cb75e1b12b43ebd6bb9b298638851c9d422 | c4fe4c5a0670557135546a6fce77b31b28dad8b0 | /paypy/serializers/authnet/aim.py | c48cff7fb4c3180de6529a04ef7aff73b2025f54 | [] | no_license | ixmatus/paypy | 6b1cf6e0095fa7d95be7544ab13f4863b36d0cee | 262d2493a0245d23e08e525f9072010012f8b46f | refs/heads/master | 2016-09-06T03:16:08.102671 | 2013-04-11T15:10:34 | 2013-04-11T15:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,107 | py | import urllib
from paypy.schemas.authnet.aim import SAim
class SerializeException(Exception):
"""Serializer exception class."""
pass
class Serialize(object):
"""Serializer for schema -> string."""
def __init__(self, schema):
if not isinstance(schema, SAim):
raise Ser... | [
"ixmatus@gmail.com"
] | ixmatus@gmail.com |
9971c8b78a57215b996b334a79046ce2255c989c | 1acafe9b0497db2a481828a0505ceb042a80e43b | /tree/stack.py | f0de889ef2a86a55f572bd1b888554abc397cca7 | [] | no_license | weiweiECNU/pythonDataStructure | fbe6dc1579deb85483b805ff416a61a513e41dea | 971a2f74423eec581bf6134c6aa21719209608ee | refs/heads/master | 2020-06-13T21:36:37.844642 | 2019-08-07T10:55:01 | 2019-08-07T10:55:01 | 194,793,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | class Stack:
def __init__(self):
'''Stack()创建一个新的空栈。不需要参数,并返回一个空栈'''
self.items = []
def push(self, item):
'''Push(item)将新项添加到堆栈的顶部。它需要参数 item 并且没有返回值'''
self.items.append(item)
def pop(self):
'''pop()从栈顶删除项目。它不需要参数,返回 item。栈被修改'''
return self.items.po... | [
"weiweiwill995@gmail.com"
] | weiweiwill995@gmail.com |
6be47ea1b25a7f616323e96ebf21cd91bbb04755 | 8e39a4f4ae1e8e88d3b2d731059689ad5b201a56 | /media-libs/mesa/mesa-10.2.6.py | 0a7a0fdb1972e3f63a51df926253636303e94fa2 | [] | no_license | wdysln/new | d5f5193f81a1827769085932ab7327bb10ef648e | b643824b26148e71859a1afe4518fe05a79d333c | refs/heads/master | 2020-05-31T00:12:05.114056 | 2016-01-04T11:38:40 | 2016-01-04T11:38:40 | 37,287,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | metadata = """
summary @ Mesa 3-D graphics libraries and include files
homepage @ http://mesa3d.sourceforge.net/
license @ custom
src_url @ http://ftp.osuosl.org/pub/blfs/conglomeration/MesaLib/MesaLib-$version.tar.bz2
arch @ ~x86_64
"""
depends = """
build @ x11-libs/libXdamage x11-libs/libXext x11-libs/libXfixes
... | [
"zirkovandersen@gmail.com"
] | zirkovandersen@gmail.com |
4599ca7b274fa00e7207901e0e96ac5c8d0b5438 | f7db5b41172aa67bd5627840763df16f179997f4 | /armstrong.py | 24648adfea41f7960bc356d2e7738129eb704cb6 | [] | no_license | Logesh4862/guvi | 128ae8068d886ba8421c2361fedb10663142d542 | a00b240454b47e29361a12a16245f472548a8ae9 | refs/heads/master | 2021-01-22T00:52:33.456670 | 2018-11-17T05:33:10 | 2018-11-17T05:33:10 | 102,197,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | n=int(input())
temp=n
sum=0
while temp>0:
sum=(int((temp%10))**3)+sum
print(sum)
temp=int(temp/10)
#print(sum)
if sum==n:
print("Armstrong Number")
else:
print("Not Armstrong Number")
| [
"noreply@github.com"
] | Logesh4862.noreply@github.com |
50ccc355cf697cd8d4604d0d924eca8ad92874a7 | 7fdefb5a198e0bc686dd73d36071adb0ef568113 | /config.py | cd4824d6c2c0ca34de850f930880b3196100dcf2 | [] | no_license | PablinGR/musicalClothing | aae08954204f8fc124e24abbcd937e382320fb69 | 9af58df2880b888c6e60e5e19648cc499912dc6b | refs/heads/master | 2021-01-21T16:54:36.485389 | 2017-08-03T23:55:56 | 2017-08-03T23:55:56 | 91,918,442 | 0 | 5 | null | 2017-07-24T00:39:03 | 2017-05-20T21:53:42 | Python | UTF-8 | Python | false | false | 473 | py | # config.py
class Config(object):
"""
Common configurations
"""
# Put any configurations here that are common across all environments
class DevelopmentConfig(Config):
"""
Development configurations
"""
DEBUG = True
SQLALCHEMY_ECHO = True
class ProductionConfig(Config):
... | [
"didacdedm@hotmail.com"
] | didacdedm@hotmail.com |
7ffb77a34e185f9ba53604d92640de7569962588 | cacc517d4d31f188d6f12fb4b946195c92f32bea | /config.py | adb60230b45d1664c96d50565581710a5737ee10 | [] | no_license | afcarl/caffe_luigi | c6905c263978668e9d73ea032999860d84a44d15 | 72d5dde55ab2e3f785ac1593923d73c87bdd75b1 | refs/heads/master | 2020-03-18T17:57:40.507089 | 2017-05-17T09:52:29 | 2017-05-17T09:52:29 | 135,062,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,009 | py | import waterz
if waterz.__version__ == '0.6':
scoring_function = {
'median_aff': 'OneMinus<QuantileAffinity<AffinitiesType, 50>>',
'median_aff_histograms': 'OneMinus<QuantileAffinity<AffinitiesType, 50, HistogramQuantileProviderSelect<256>::Value>>',
'85_aff': 'OneMinus<Quantile... | [
"jfunke@iri.upc.edu"
] | jfunke@iri.upc.edu |
361ade3439b599c88e104ae6719cb7392ff0faa3 | 660e2cbe23dd4753c633e79588413a8d2e8fb3aa | /deepAPI/pytorch/train.py | fd82e7a217e502b36f1701004782bcc628f7e24a | [
"MIT"
] | permissive | Aster1995/awesome-python3-webapp-1 | b387e6e791f8064c2443d792e1f8db17aca25420 | 1104a86e6462c5e33a36691f78755383586d0854 | refs/heads/master | 2020-03-22T17:54:22.287043 | 2019-11-21T02:25:40 | 2019-11-21T02:25:40 | 140,423,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,659 | py | import argparse
import time
from datetime import datetime
import numpy as np
import random
import json
import logging
import torch
import os, sys
parentPath = os.path.abspath("..")
sys.path.insert(0, parentPath)# add parent folder to path so as to import common modules
from helper import timeSince, sent2indexes, indexe... | [
"shiyanzhaoming@163.com"
] | shiyanzhaoming@163.com |
43f2e883bd9960d28fdac9e6a86dfc1ba1cfbc68 | a497d182c6bae092f4e009e7291955e46e83843c | /page/migrations/0002_auto_20170111_2250.py | 0d324a7fa0ea26a74d5b8d7ec1db0af047f35f7e | [] | no_license | abhinavp99/compia | 81421cd11f7a4d688faa75d4127400cce8e61668 | ac1f169cf2925eb08a26bce8156721d97437eee1 | refs/heads/master | 2020-03-25T19:45:00.888355 | 2018-08-09T04:25:57 | 2018-08-09T04:25:57 | 144,098,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-11 17:20
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('page', '0001_initial'),
]
operations = [
migrations.AlterModelOptions... | [
"noreply@github.com"
] | abhinavp99.noreply@github.com |
67e7fa2072ca379da2b2785d764631b9a9e688bd | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tick0.py | 6ae415fecf9370dbd6eba565777c31f610d94a67 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 498 | py | import _plotly_utils.basevalidators
class Tick0Validator(_plotly_utils.basevalidators.AnyValidator):
def __init__(
self, plotly_name="tick0", parent_name="scattergl.marker.colorbar", **kwargs
):
super(Tick0Validator, self).__init__(
plotly_name=plotly_name,
parent_name=... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
50dd2e6d1a90d0e9d119e0bde834048d2c024925 | 7b8ca74a0c3876a1fbbfe7882df9147e3764fc70 | /Altitude_Bot.py | 6d03039714054beacf19069e8243e91dfce01ccd | [
"MIT"
] | permissive | Andre0512/Altitude_Bot | 1609ceb0869dfc70d427bc3865c5c623eb5ac779 | 7461a4d5036650a4639d65c72a9e97a808372b79 | refs/heads/master | 2021-01-21T21:19:47.124326 | 2017-06-21T21:07:31 | 2017-06-21T21:07:31 | 94,821,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import logging
import yaml
from telegram import ReplyKeyboardMarkup, KeyboardButton, ParseMode
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from googlemaps import elevation, Client
logging.basicConfig(format='%(asctime)s - %(name)s -... | [
"andre.basche@gmail.com"
] | andre.basche@gmail.com |
32acee63e203a3e699421809545e29cf1f32d172 | 6b608208a2fdbfcbb4eaf80686bd8b2013450f91 | /src/4-4.py | c6ff08961046d06a16102d671f28aacf562298ee | [
"Apache-2.0"
] | permissive | Zepyhrus/tf2 | 6eb69a508383019be644d4cda5377ccadef793d6 | 807f93a5cc81dc424ef76be3103b68fb3d2dded9 | refs/heads/main | 2023-02-16T23:45:18.315359 | 2021-01-15T06:25:38 | 2021-01-15T06:25:38 | 327,514,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | import tensorflow as tf
import tensorflow_datasets as tfds
tf.compat.v1.disable_v2_behavior()
def get_iris_data():
ds_train, *_ = tfds.load(name='iris', split=['train'])
with open('iris.csv', 'w') as f:
for i, ds in enumerate(ds_train):
features = ds['features'].numpy()
label = ds['label'].numpy... | [
"sherkfung@gmail.com"
] | sherkfung@gmail.com |
1bcc519516fa6dbfbf1a8185f6f28f31d4543447 | 5230baa0203673fe521e0810d2b851d2120910bc | /Tree/max_depth_iterative.py | 48c54a76249c3444a5bc135174f5e3e55d14cb08 | [] | no_license | owaiskazi19/Practice-Problems | 6eee5c42ac915031115af14f727482d32e9da30f | ce0e10d740d1c4451556db3f37d1a4f6ee107cbd | refs/heads/master | 2021-07-09T19:26:39.572008 | 2020-10-30T00:52:00 | 2020-10-30T00:52:00 | 208,736,848 | 0 | 0 | null | 2020-07-19T22:53:41 | 2019-09-16T07:27:32 | Python | UTF-8 | Python | false | false | 764 | py | class Solution(object):
def maxDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if root is None:
return 0
queue = []
ans = []
count = 0
queue.append(root)
while queue:
nodeCount = len(queue)
... | [
"owais@Owaiss-MacBook-Pro.local"
] | owais@Owaiss-MacBook-Pro.local |
ca9ee0aeb3fe91290386f914bd55d6183841b146 | 7534b59f15a94df6f889a115f8f12dd575aa695a | /cnn_sp/cnn_sp/middlewares.py | 0a82f8e9bfc11e75437aba1d0d3d05ae9424548a | [] | no_license | she-dares/Web-Scraping | 4d973d8d54bf83f701b7c711779465ed1ec59d01 | dd9067099ad29bd0d1c4057d009b646f299fef2a | refs/heads/master | 2021-05-01T21:16:32.929351 | 2018-02-27T20:59:21 | 2018-02-27T20:59:21 | 120,975,433 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class CnnSpSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"mdsheetal@gmail.com"
] | mdsheetal@gmail.com |
9ac0958e818c6dabf9b0a18de61974bf0f19ea80 | 40d764f013ba2b11409ff3d55e1f9602ccae2fb7 | /django/platzigram/users/migrations/0001_initial.py | 3d909f3533b332e67dc7a9c0dc94a9aea28829e0 | [] | no_license | carlos398/django_platzi_curse | 30823378866e425db31cb5f659c8a8af45031353 | 2c18bcd7d9dfbc4cd1284f7331b646223348d256 | refs/heads/master | 2023-08-16T14:48:26.349346 | 2021-10-12T01:56:19 | 2021-10-12T01:56:19 | 403,106,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | # Generated by Django 3.2.7 on 2021-09-16 02:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"carlosarp2000@gmail.com"
] | carlosarp2000@gmail.com |
1b19580af5d2b0ef9577cf9325f36c314a089ca3 | c7862bb6db5b6c2bebe9d522a8966464ca98758b | /run.py | 4e4b187b13d724f7df15bb4ff642ccc847b5ed5d | [] | no_license | Zichis/loanapp | 48bac87ac1d8681ce54516d773d209cfe70e961b | 940c3416d746f81f4538dc248e8aa692adad64a4 | refs/heads/master | 2020-04-19T10:00:54.275455 | 2019-02-08T06:54:42 | 2019-02-08T06:54:42 | 163,696,662 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from loan import app
if __name__ == '__main__':
app.run(debug=True)
| [
"tripleee@yahoo.co.uk"
] | tripleee@yahoo.co.uk |
199ed7dd994895469f013c681d33faa81833782d | a4aea6ad32c1abca0f974376c19622fe6c9334ad | /venv/bin/pip3 | 1bd5a01c8e657181d14b027270f77d518f83dfa8 | [
"MIT"
] | permissive | project-fencegate/Fencegate-Website | fe6db25b95efcbc81d0426da37b224a1b4650c6e | 3824ddeb38c6bc88fcfb8fa33e040cea55caa597 | refs/heads/master | 2020-04-19T02:17:42.900057 | 2019-04-10T13:32:33 | 2019-04-10T13:32:33 | 167,897,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/Users/berry/PycharmProjects/Fencegate-Website/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"spamnut@yeah.net"
] | spamnut@yeah.net | |
be7c85afdf4978c5cd357cf9bb480220459fb65d | 85aa513a3806ad6b2441e2c3b71ae32fd1ea8e31 | /main.py | aaee9a496e17c6b775386c0e01b3e7821d294345 | [] | no_license | Thom711/betsy_webshop | 087c4262cd95b5042e999d299dcd57e1408fab09 | 1442bfe084ff85a9aa4025238f44b569cdee5807 | refs/heads/master | 2023-04-25T07:52:53.176520 | 2021-05-15T15:54:10 | 2021-05-15T15:54:10 | 367,671,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,974 | py | __winc_id__ = "d7b474e9b3a54d23bca54879a4f1855b"
__human_name__ = "Betsy Webshop"
from datetime import datetime
import models
def search(term=str):
term = term.lower()
query = models.Product.select().where(models.Product.name.contains(term) | models.Product.description.contains(term))
if query:
p... | [
"tvdveldt@hotmail.com"
] | tvdveldt@hotmail.com |
9b2bfa486ac82b6fa8e41a4c0e4db653b1b5dcdb | d1efdb7023bfb262fac886244eea3aec185c431c | /25_rest/app.py | 6f994bf7bacaa79615d4f169fc91279a37834dc3 | [] | no_license | DamianWasilewicz/MaWork-WasilewiczD | b19850fff6dde6ba80b16c19d90e9267489dfde7 | ee9312ed5fc258c5d19a78b3324ba7c253a5c5d5 | refs/heads/master | 2020-03-28T14:39:56.168029 | 2018-12-21T17:27:41 | 2018-12-21T17:27:41 | 148,509,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #Damian Wasilewicz
#SoftDev1 pd6
#K #25: Getting More REST
#2018-11-14
from flask import Flask, render_template
import urllib.request, urllib.parse
import json
app = Flask(__name__)
@app.route("/")
def home():
'''
home route, jservice API
'''
url = urllib.request.urlopen("http://jservice.io/api/random"... | [
"dwasilewicz@stuy.edu"
] | dwasilewicz@stuy.edu |
3f8f2c680226da3be8cdcd68f260b0f4ef051c6a | 241fb140be30522b475eb69283571171e6d039bb | /main.py | 7956f7d6da9a697326e9d2648eeca076b0235c06 | [] | no_license | thousanda/gmocoin-buy | 5bb48fecf94dd9bca0305c3ead98c2657b9457ca | 2c64d626e7d9499dcabdc04f074125434ef259ba | refs/heads/main | 2023-04-29T15:53:09.374363 | 2021-05-17T07:16:08 | 2021-05-17T07:16:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,564 | py | import hashlib
import hmac
import json
import math
import os
import requests
import sys
import time
from datetime import datetime
from decimal import Decimal, ROUND_HALF_UP
# config
# - setting
ENDPOINT = 'https://example.com'
VALID_SYMBOLS = set()
MINIMUM_AMOUNT = {}
# - order
TARGETSYMBOL = ''
BUDGET = 0
# enviro... | [
"k0k1senda@gmail.com"
] | k0k1senda@gmail.com |
1ddee11adc4da0a3e5190d3f1b0b506cdf8af9fa | 7287571509ad2ba5f5147df3729ad929d5ba1649 | /bit_cloth/schema.py | 7d94e6be303e90745577fbde9049aff9d5dd626b | [] | no_license | firasKhemiri/BitCloth-Backend | 44f2848576b38fc8ba9c11fb0d181daf267d29c5 | e21d66b917ee0474f459d585ccca8872a316fb58 | refs/heads/main | 2023-03-25T15:26:07.645024 | 2021-03-24T13:36:21 | 2021-03-24T13:36:21 | 351,092,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | import graphene
from post.schema import (
Mutation as PostMutation,
Query as PostQuery
)
from account.schema import (
Mutation as AccountMutation,
Query as AccountQuery
)
class Query(
PostQuery,
AccountQuery,
):
pass
class Mutation(
PostMutation,
AccountMutation
):
pass
s... | [
"36472204+firasKhemiri@users.noreply.github.com"
] | 36472204+firasKhemiri@users.noreply.github.com |
6da3e73ebe2fbd6518ce11d3d90494c14ee8e3e8 | 5cdee4f5f033d0f0705f15c75ec4ff79d64556dc | /config_init.py | b287c4ad1441b25dbd2979d64c6ed8c138eb7b6e | [] | no_license | despair1/libreoffice_eve_api | eb4e06b05ac0ad36f010cd3eb2e11b127558e37e | ac57f7d7f26660ca45af8821c00654598d620b69 | refs/heads/master | 2021-05-04T04:21:31.208924 | 2018-02-26T17:50:52 | 2018-02-26T17:50:52 | 120,327,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | '''
Created on 01.10.2011
@author: mayor
'''
class _config_init:
def __init__(self):
self._conf={}
f = open('config.txt', 'r')
for line in f:
line=line.strip(' \n')
a=line.split('=',1)
if len(a)>1 and a[1]:
self._conf[a[0]]=a[1]
... | [
"eveguide0@gmail.com"
] | eveguide0@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.