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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c0b41e154c867891ac764be89db7f66f1f4007f | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Python/Core/Lib/lib2to3/patcomp.py | 77acfaaa38f990a0b1f904e5e21f839af6b589bf | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 6,668 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: patcomp.py
"""Pattern compiler.
The grammer is taken from PatternGrammar.txt.
The compiler compiles a pattern to... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
4c2f867eaafaafa7fe71bb3f2e8a61b7f03c0532 | 13bacb189558c8231af6bd1fd8e1dcce45c17e4d | /pexpect_util.py | c479715ddb2f49968d9d70dfbf4a01db20b7c857 | [] | no_license | zhulh200868/mycode | 734881b963c8e57a9ff97e10bb16433fa9afb0a2 | 216a76c0aabd2c346bdfd8f4ecfbf073c1b39673 | refs/heads/master | 2021-01-20T19:19:02.832408 | 2016-12-31T12:08:48 | 2016-12-31T12:08:48 | 64,580,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/env python
# -*- coding=utf8 -*-
import pexpect
import getpass
'''
通过scp命令传输文件
'''
host=raw_input('hostname: ')
remote_path=raw_input('remote_path: ')
local_file=raw_input('local_file: ')
passwd=getpass.getpass('password: ')
cmd='scp -r %s %s:%s'%(local_file,host,remote_path)
child=pexpect.spawn(cmd)
child.... | [
"3205777381@qq.com"
] | 3205777381@qq.com |
c79ade31fb6a146dc68d6c36b6df30e2b5618e08 | f7f9760261c6fb5e3998477f074e3c1f42464cf8 | /web/src/entities/cron_job.py | cb8c8e1035ffb9eed2bd9fbd9b12d0a586de99bd | [] | no_license | DrXneaky/ooredoo-docker-v3-py27 | 58c4847db994ffab0d78bd76d055a75e26d57fdf | b44905a764765af89ffc8ce1776b59c748a1fa01 | refs/heads/master | 2022-12-17T11:04:26.013406 | 2020-09-13T04:31:38 | 2020-09-13T04:31:38 | 294,741,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py |
from src.repositories.entity import Entity, Base
from sqlalchemy import Column, String, DateTime, Integer, ForeignKey
from marshmallow import Schema, fields
from src.commons.utils.crontab import MyCronTab # , get_last_run_from_log
class CronJob (Entity, Base):
__tablename__ = 'cron_job'
creationDate = Colum... | [
"33802435+DrXneaky@users.noreply.github.com"
] | 33802435+DrXneaky@users.noreply.github.com |
6c4df7f871bf27a393a753d9ed909f37d16a5456 | 1228576f109b6942764d338b91714a57ad58b851 | /bootstrap/testnet_bootstrap.py | 554197d9cd94e1464dba6fa376881276ddae15ec | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | lapolinar0519/remprotocol | b7ab95e97c8ecaab3bb40ae9cdc7cd6829916c4a | 578996ce408ca0adbe6a6b895177199017ee907b | refs/heads/develop | 2022-11-29T13:36:54.540719 | 2020-07-31T12:14:31 | 2020-07-31T12:14:31 | 263,375,233 | 0 | 0 | MIT | 2020-07-31T14:40:06 | 2020-05-12T15:24:07 | C++ | UTF-8 | Python | false | false | 10,359 | py | import hashlib
import json
from datetime import datetime, timezone
import requests
from mainnet_bootstrap import remcli, run, intToRemCurrency, get_chain_id, wallet_port
producers_quantity = 21
producers_supply = 500_000_000_0000
swapbot_stake = 1_000_0000
MINIMUM_PRODUCER_STAKE = 200_0000
sign_digest_url = f'htt... | [
"asaprykin17@gmail.com"
] | asaprykin17@gmail.com |
c55eedddca6ca6cb46267e480fe8f50a28fa5212 | 79934c18d18838dd46c563baf85f148221a5b89d | /training_code/input_detector/test.py | c444deec95e2705e818596dd772f0558fe9525c8 | [] | no_license | DungLuongTuan/Music-chat | 0068808965ea1ac7496566bbc09195fc39e899b9 | d66551c2fe0a7596b533c21346e22ee7b58c70a1 | refs/heads/master | 2021-05-07T08:03:55.852750 | 2017-12-10T17:08:02 | 2017-12-10T17:08:02 | 109,251,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | import numpy as np
import tensorflow as tf
import fasttext as ft
from os import listdir
labels = ['bot-information', 'music-domain', 'unknown']
def transform(sentence, max_step):
output = []
word2vec = ft.load_model('../../model/word2vec/vi.bin')
sentence_splited = sentence.split(' ')
for word in sentence_spl... | [
"tuanluong04011996@gmail.com"
] | tuanluong04011996@gmail.com |
e9a9edf90d3078fe77db28b65ad04bb9638c84c9 | 12508b40fed2526d9c6fef991701cea0581084d8 | /mp1/search_without_class | 24c3d3d568af415c17eec50f3b45e001dbeafec6 | [] | no_license | AlexSunNik/cs440 | e30283f33b82ea64266375addb649d4f0ad26390 | 6fac70be7298385c9f7b9824427b25d1476cdb27 | refs/heads/master | 2022-05-27T01:28:42.881079 | 2020-05-03T01:44:20 | 2020-05-03T01:44:20 | 237,539,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,331 | # search.py
# ---------------
# Licensing Information: You are free to use or extend this 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 the University of Illinois at Urbana-Champaign
#
# Created... | [
"xs15@illinois.edu"
] | xs15@illinois.edu | |
010c9fb88bc98f634230f8508b1d8996b3358a35 | 4e2e7825256a61f8a7cfe9bf73ef954e81c0b443 | /HW2/utils/postprocess.py | 1c6ac18b3a85b5e903f19c6a0f29b65e5c89812e | [] | no_license | jonahthelion/cs287-s18 | 1155666b4f90b88b28c3ada94cd4147b56573168 | b7e9f876edfcf5e933f8c8077590afc72d1fb615 | refs/heads/master | 2021-05-08T20:35:39.686276 | 2018-12-02T01:30:52 | 2018-12-02T01:30:52 | 119,612,436 | 0 | 0 | null | 2018-01-31T00:31:18 | 2018-01-31T00:31:17 | null | UTF-8 | Python | false | false | 2,447 | py | import torch
import torch.nn.functional as F
import torchtext
from torch.autograd import Variable
import numpy as np
from tqdm import tqdm
def evaluate(model, test_iter):
all_actuals = []
all_preds = []
for batch in tqdm(test_iter):
all_preds.extend(model.predict(batch.text[:-1].cuda()).cpu())
... | [
"jonahphilion@Jonahs-MacBook-Pro-4.local"
] | jonahphilion@Jonahs-MacBook-Pro-4.local |
e9d2229197117983d242e32952964303341a0ea9 | 31023b59e743b5bef1c2c935dc1f2b26e8e10e9b | /文件操作/file_5.py | 3d47006044ce188324a2f2d6c38244e91fc3a632 | [] | no_license | hsyy673150343/PythonLearning | 417650d8ab5dbafbede08ef40223b29e82738443 | 817c6bd4c2ecba2549fa0be9f0c41337fe5acfdf | refs/heads/master | 2020-05-18T06:36:25.648709 | 2019-05-23T13:40:59 | 2019-05-23T13:40:59 | 184,239,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
# @TIME : 11:20
# @Author : 洪松
# @File : file_5.py
'''
with方法:会自动关闭文件
'''
with open('小重山山','r',encoding='utf-8') as file:
print(file.read())
| [
"13096337080@163.com"
] | 13096337080@163.com |
67bb96a5e1042e33591a00351fdc8554ba0f588e | 3c7e0854faca88cd7b1b390323a81b3e6d8a902e | /blinkenlight.py | 47c82bf2ab03ae55738d8b64085b88a4ee922fd7 | [] | no_license | penguin-grenade/Pinballcohol | 0a67a7ac8e42c6107d7792a664eab067f547166f | 3b98a00284b17002c8362815a87c99874bf25f08 | refs/heads/master | 2020-04-05T17:06:19.676851 | 2018-11-11T03:48:19 | 2018-11-11T03:48:19 | 157,044,765 | 0 | 0 | null | 2018-11-11T03:44:37 | 2018-11-11T03:44:37 | null | UTF-8 | Python | false | false | 130 | py | import gpiozero as pi
from time import sleep
led = pi.LED(17)
while True:
led.on()
sleep(1)
led.off()
sleep(1)
| [
"pseudoboss11@gmail.com"
] | pseudoboss11@gmail.com |
d27ded37cb89d6e428fab989e1fcbb4876d8735d | 98cc7697985f78326b8065bce7955bef3c6f802c | /findPaths.py | 806467b09e4eb9760f7edd0e1dbaa17ac49dadca | [] | no_license | eswardhinak/WikipediaGame | 86c19808678999d3f4efc30f096c1d21bc389251 | 393ec90ac92b6822ec673686ac0b5e105d840ced | refs/heads/master | 2021-07-08T09:24:14.899386 | 2021-04-22T02:43:01 | 2021-04-22T02:43:01 | 31,444,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,648 | py | '''
Name: findPaths
Description: This module does the searching for the end article using a BFS.
'''
import re
from lxml import html
import requests
from sets import Set
import Queue
import WikiNode
import time
import random
visited = Set([]) #set of visited articles
web = dict({}) #hashtable of visited WikiNodes
... | [
"edhinaka@ucsd.edu"
] | edhinaka@ucsd.edu |
77ef1479e8e71997ee5731680e282867e443c25f | fb40da02fbcb7ee3996a52315c945c81ab5d82a5 | /main.py | 5b2291fa59d8c243f8d2084a4a2ead120cec4498 | [] | no_license | mkaminsky11/LOLClub | 47688fbb2ee542b1d6022ef98459a288e1a89364 | 37f0a913db85888ac37ddcfffeb163e735c83e7a | refs/heads/master | 2021-01-12T11:46:51.751851 | 2016-09-19T03:33:46 | 2016-09-19T03:33:46 | 67,903,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from flask import Flask, render_template, request
import json
app = Flask(__name__)
@app.route('/')
def index(user=None):
return render_template('index.html')
@app.route('/people')
def people(user=None):
f = open('people.json', 'r')
json_raw = f.read()
json_decoded = json.loads(json_raw)
return render_temp... | [
"mkaminsky11@gmail.com"
] | mkaminsky11@gmail.com |
e7bdbb7033d3ec8664635d8b99cde65cc7c7adce | 8247d8a41b83318adb7dcb6180ec0d440f3de953 | /98_validateBinarySearchTree/sol2.py | 22404be25eb3c2de07cbec2e6a655cbe11110cf0 | [] | no_license | weichungw/meishiTackling | 8009446beab388ff921da3ee7e6baf801e6aee21 | d204fd293d811dd5d107bbc5cc0d921a4b8cfdf3 | refs/heads/master | 2021-09-07T21:23:16.739494 | 2018-03-01T09:13:12 | 2018-03-01T09:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | class TreeNode:
def __init__(self,x):
self.val=x
self.left=None
self.right=None
class Solution:
def isValidBST(self, root):
| [
"thecamelyouknow@gmail.com"
] | thecamelyouknow@gmail.com |
f6978f575bf64d88a52ba0b2a7be7931cc019f04 | fa8a1d118fb311043df7ce31242002c63f555cc2 | /lib/hook/__init__.py | 96d71f754bf7fa79919a5570aec9c8ed8716f1d3 | [
"MIT"
] | permissive | kuro2a/kiku | 9f48d7bf2e66d273a5adb88ab1ca1634ff2a92ee | d4e6500970a20d1955f1773e0e2cfb8e2db819ba | refs/heads/master | 2022-11-16T23:12:23.198173 | 2020-06-25T15:32:06 | 2020-06-25T15:32:06 | 198,195,299 | 2 | 2 | NOASSERTION | 2020-06-25T15:32:07 | 2019-07-22T09:53:27 | Python | UTF-8 | Python | false | false | 53 | py | #!/usr/bin/python3
from lib.hook.validation import * | [
"redagma2+dev@gmail.com"
] | redagma2+dev@gmail.com |
de49719e99a274ae9898c2bddee78fa0a2aaf49d | 593472fe5926ca8ee25bfdacc15302622a73c422 | /tests/test_models/test_base_model.py | a03d9c227ac8132c6db2afa3823c051bd54a65f6 | [
"LicenseRef-scancode-public-domain"
] | permissive | oomsebas/AirBnB_clone | a25ecd6f3d68a79b9ca7ca413b0d9cb0d12562ac | fb58928de93ab741edb236ec2ea160ec6da678c0 | refs/heads/main | 2023-01-21T00:09:52.766043 | 2020-11-21T20:03:25 | 2020-11-21T20:03:25 | 308,455,479 | 0 | 1 | null | 2020-11-21T20:03:26 | 2020-10-29T21:36:17 | Python | UTF-8 | Python | false | false | 5,638 | py | #!/usr/bin/python3
"""
Unitest Class BaseModel
"""
import unittest
from models.base_model import BaseModel, __doc__ as mrdoc
import inspect
import models
from datetime import datetime as datetime
"""import pep8"""
class TestBaseModel(unittest.TestCase):
"""
Unitest for testing
"""
def test_module_docs... | [
"1843@holbertonschool.com"
] | 1843@holbertonschool.com |
86b7a090def5e072694f4e756109666c1df9a149 | be3ec8731040b7bafabdf7ca873ce3b3bdcd2e73 | /partB.py | c332224ad26dbf9e3ee69f3c6d7730cec89e89aa | [] | no_license | philipandreadis/InfoRetrivalProject | 7a863f85e3c31f7f8aafc7b49b5795606f4d3cd9 | 0b7770e2a926597e0b4425df61587db9e3f74b71 | refs/heads/master | 2020-04-15T02:38:00.473075 | 2019-02-10T17:48:12 | 2019-02-10T17:48:12 | 164,321,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | from partA import binaryVector
import csv
import math
from collections import Counter
import numpy
th = 0.8 # threshold for most similar pairs
m = 100 # number of pairs to be tested
# Defines pairs with similarity over a threshold
# Returns a list with the most common pairs
def mostCommon(model,th):
threshold = ... | [
"filipposa@csd.auth.gr"
] | filipposa@csd.auth.gr |
416e9f7365cafcf893ebd9b1b3af65e9a7ac351e | 8244cba1e34d8d2f7acfa414828b709a0d62c3a1 | /extra_apps/django_celery_results/migrations/0004_auto_20181127_0928.py | 1b4ee91d58d0c49aa7584b11c0a140c7cec08d9e | [] | no_license | nightqiuhua/ScraperManager | 96fd21bc0b8442a76fcc615e66505b93591fcce8 | b037e6347eda64df05d0a1496bae4fb3124d6ff4 | refs/heads/master | 2020-08-18T05:50:15.484878 | 2018-11-29T09:37:02 | 2018-11-29T09:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-11-27 01:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_celery_results', '0003_auto_20181106_1101'),
]
operations = [
migrations.Alt... | [
"157571283@163.com"
] | 157571283@163.com |
c2717850684ae720aca6cea890c073ce1c71dc45 | 2c3e6390fd02d888720f6a01679e63e0603ba128 | /Python/Algorithms/Strings/Sherlock_and_the_Valid_String/solution.py | 70860cfc4d6e9c6696fbc56fdbd1b66608b7d7ef | [] | no_license | dileepmenon/HackerRank | ab39a7a6e40308a09bb7c3f644e4c8c1883a493c | 07e4627e5507561f82df055b925a19833d88d258 | refs/heads/master | 2021-01-11T17:51:34.323145 | 2019-01-21T12:02:11 | 2019-01-21T12:02:11 | 79,847,239 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/bin/python3
import sys
def isValid(s):
alpha_coun = []
for i in set(s):
alpha_coun.append(s.count(i))
a = list(set(alpha_coun))
if len(a) > 2:
return 'NO'
else:
if len(a) == 2:
a1_coun = alpha_coun.count(a[0])
a2_coun = alpha_coun.count(a[1])
... | [
"dileepmenon92@yahoo.com"
] | dileepmenon92@yahoo.com |
f20c06591cf4e72459e41d04268c3ab6d0ea7fc7 | 87876df58b20026cb79607c6ef40fc3b51928cd1 | /contact/views.py | 25ebc44774d32ff2b5c919c713f8d06d7a8f37f8 | [] | no_license | howa3204/kanaboard-app | 7c530adfdda49b0ecf82b533ee47935666e28251 | 07383714b02c9bfa767c69240c98e5fcfd59751a | refs/heads/main | 2023-08-19T10:27:11.835488 | 2021-09-22T06:53:07 | 2021-09-22T06:53:07 | 371,836,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.mail import EmailMessage
from django.shortcuts import render
# Create your views here.
@login_required(login_url='authentication:login')
def contact(request):
if request.method == "POST":
subject... | [
"jordan@kanaboard.com"
] | jordan@kanaboard.com |
00b1230c16298db372c1cec1696b6a7c7f0b3d28 | 77f65ea86ebc544c3f3e66c0152086e45669068c | /ch03-lists-tuples/e12b2_popular_shells.py | 28857e7cfb335dd083ca73655a30cbaa88837470 | [] | no_license | Cptgreenjeans/python-workout | e403f48b0694ff4db32fe5fc3f87f02f48a1a68e | b9c68520d572bf70eff8e554a8ee9c8702c88e6e | refs/heads/master | 2023-07-16T21:49:14.198660 | 2021-08-29T13:49:12 | 2021-08-29T13:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #!/usr/bin/env python3
"""Solution to chapter 3, exercise 12, beyond 2: shells_by_popularity"""
from collections import Counter
import operator
def shells_by_popularity(filename):
shells = Counter(one_line.split(':')[-1].strip()
for one_line in open(filename)
if not one_... | [
"reuven@lerner.co.il"
] | reuven@lerner.co.il |
e7e6fd6c76c5449391e9213cb9992619f91deada | 84721ed008c94f2c7351c63a6dd23d4107efcce0 | /vimlite/VimLite/CxxParser.py | c6368a94d50ec070d3f1e558ff5391212fcd1900 | [] | no_license | vim-scripts/VimLite | 17277b09a208d437d0b3a5e514b483bc5301ee4f | cd00cb17d98efed12e1e364dae8676101394f135 | refs/heads/master | 2016-09-07T18:50:25.672256 | 2013-01-25T00:00:00 | 2013-01-28T02:41:31 | 1,970,791 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from ctypes import *
import os.path
def GetCharPStr(charp):
i = 0
l = []
while charp[i] != '\0':
l.append(charp[i])
i += 1
return ''.join(l)
def GetLibCxxParser():
'''通过 sys.argv[1] 传递库路径'''
import platform
OSName = platform.sys... | [
"scraper@vim-scripts.org"
] | scraper@vim-scripts.org |
e163229f5e46d720fdae4023213da540e1db2015 | d63b1b36634b68070f6f3c017c0250a7ea646e6f | /SMC/GEM5/gem5/configs/ruby/Ruby.py | 3c43fa6c6ab7b2583830352c954a5cc2bd02d152 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later"
] | permissive | jiwon-choe/Brown-SMCSim | ccf506d34d85fb3d085bf50ed47de8b4eeaee474 | ff3d9334c1d5c8d6a00421848c0d51e50e6b67f8 | refs/heads/master | 2021-06-30T00:15:57.128209 | 2020-11-24T03:11:41 | 2020-11-24T03:11:41 | 192,596,189 | 15 | 8 | MIT | 2019-06-20T15:43:00 | 2019-06-18T18:53:40 | C++ | UTF-8 | Python | false | false | 8,951 | py | # Copyright (c) 2012 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | [
"brandnew7th@gmail.com"
] | brandnew7th@gmail.com |
4cab7f02d839b5bf99ada9539b6cce74b4359343 | 9f0e740c6486bcb12f038c443b039c886124e55c | /python-study/library/celery/period/app.py | 5d1923b6a0c639b8355f935d8cc951c569b7d363 | [] | no_license | zfanai/python-study | 373ff09bd1e6be9e098bde924c98f5277ad58a54 | de11a6c8018730bb27e26808f5cbc0c615b4468f | refs/heads/master | 2021-01-18T17:59:16.817832 | 2017-11-06T09:33:21 | 2017-11-06T09:33:21 | 86,831,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #encoding:gbk
from celery import Celery
import config
app=Celery()
app.config_from_object(config)
print app.conf.CELERY_TIMEZONE
| [
"zf_sch@126.com"
] | zf_sch@126.com |
1984f8f05213e4c460c85d2ac2ddcae735c9c2c8 | 8e36265de7d95d4fd7bc8ccec9a25ebb07b4e435 | /pola/ai_pics/migrations/0009_auto_20210117_0154.py | 402016adab9dc66a88a8b7f885e4dddea1f9990a | [
"BSD-3-Clause"
] | permissive | KlubJagiellonski/pola-backend | edd4b7c4115f008390a665554d973924f69f47af | e16eab52bf2e5ddacea1d69c3ac165cd761a2171 | refs/heads/master | 2023-09-01T21:14:06.625762 | 2023-09-01T04:42:15 | 2023-09-01T04:42:15 | 40,557,946 | 33 | 15 | BSD-3-Clause | 2023-09-14T08:45:36 | 2015-08-11T18:20:28 | Python | UTF-8 | Python | false | false | 700 | py | # Generated by Django 3.1.5 on 2021-01-17 00:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ai_pics', '0008_auto_20210117_0109'),
]
operations = [
migrations.AlterField(
model_name='aipics',
name='flash_used',... | [
"noreply@github.com"
] | KlubJagiellonski.noreply@github.com |
3eb241c050e2b325524ee5f76f4ba74669099d55 | 0884dfe08f536f1883f20ed102001fdfa0ac7b4e | /example/leak_lib/pwn100.py | a5298933e439e0c2ff2821e972b699c19c1744fb | [] | no_license | xiaoyj/ShawPwn | 4b40329be2735ea18e42a8006ba906c5903851f0 | cfa408f22094f0a03607d1f56043d641735d9cb3 | refs/heads/master | 2021-04-04T20:34:38.675318 | 2020-03-19T11:48:16 | 2020-03-19T11:48:16 | 248,485,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | #!/usr/bin/python
#coding:utf-8
#64位 puts函数泄露lib地址,使用万能gadget
from pwn import *
context.update(arch = 'amd64', os = 'linux', timeout = 1)
io = remote('172.17.0.3', 10001)
def write(data):
for i in data:
io.send(i)
elf=ELF("./pwn100")
read_got=elf.got['read']
puts_plt=elf.plt['puts']
pop_rdi=0... | [
"xiaoyijie2007@126.com"
] | xiaoyijie2007@126.com |
86dc84d7f0e363f3d1b4cdfe3ac94760b4a104b2 | b26802c1fc0ac33cabf6d2ab538c98f45b9b291f | /colossus/apps/notifications/__init__.py | 84da84df286aa3bfa5c86e37b3d96df551845a2c | [
"MIT"
] | permissive | Beracah-Group/colossus | 4ba81092dc5c9c694b22eb4101f63e7747961fcf | 7bce25039a223da7197cc8a969ec72ee26aeffa8 | refs/heads/master | 2020-03-26T08:58:45.572073 | 2018-08-14T13:35:53 | 2018-08-14T13:35:53 | 144,728,897 | 2 | 0 | MIT | 2018-08-14T14:06:50 | 2018-08-14T14:06:50 | null | UTF-8 | Python | false | false | 76 | py | default_app_config = 'colossus.apps.notifications.apps.NotificationsConfig'
| [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
df5bd7dced3de122cbe784bd31d4b447ba40bdc3 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ABC111/ABC111b.py | d0841383fb4172230f365cbdcec870be2139ac92 | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # ABC111b
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
n = int(input())
ans = 111
for i in range(1, 10):
if (n <= 111 * i):
ans = 111*i
break
print(ans)
| [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
eacd80b9251895bf54c2441bc92a6037be61fdee | a646afb4228fbc1b79e68b714e4db628dda33c93 | /ftpProgram.py | 4332bb5a9705e21c4347d22808cb4404f19526cd | [] | no_license | kralmachine/ftpprogrammingwithpython | de220a022f11c3d5110530194254cdd90c299faa | f3fa3c48f2fe7d1d120fa947768e7a6de1d56fef | refs/heads/master | 2021-04-12T12:36:05.306636 | 2018-03-21T13:42:16 | 2018-03-21T13:42:16 | 126,184,016 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,110 | py |
# ABDULLAH AVŞAR 141180501 21 MART 2018 ÇARŞAMBA
#BM402 BİLGİSAYAR AĞLARI ÖDEV - 3
from tkinter import *
from tkinter import messagebox
from tkinter import filedialog
import os
import ftplib
say=0
def girisYap():
global say
say=0
if(hostname.get()!='' and userName.get()!='' and passWo... | [
"noreply@github.com"
] | kralmachine.noreply@github.com |
0e0db48e77456ab1dc55c0ea161b52b3e33e2f02 | 17a3cf69421e3cef5196b8cc28bf2a342884d766 | /Downloading_files_s3.py | d596b878725ccf6964b9dbe1e6f9e21730c547c7 | [] | no_license | POC-AWS-services/AWS-S3 | 976f230f4c9c1ba9d9efc67f95979eb388257784 | 4a08aa218155e1a5b99f0f3f9d49ae7251d4e6e7 | refs/heads/master | 2022-11-29T09:09:11.046099 | 2020-07-23T08:20:08 | 2020-07-23T08:20:08 | 281,882,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | __Author__ = 'Prameet Bisht'
__Version__ = "0.0.1"
__Email__ = "myprameet09@gmail.com"
__Github__ = "https://github.com/orgs/POC-AWS-services/dashboard"
#The download_file method accepts the names of the bucket and object to download and the filename to save the file to.
import boto3
s3 = boto3.client('s3')
s3.down... | [
"myprameet09@gmail.com"
] | myprameet09@gmail.com |
0c17d754ebe3de15144d5ae5b742743bb74c6c9e | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/shared/gui_items/dossier/achievements/GeniusForWarAchievement.py | 7e725c76279abb1568946eee467f165f33da4db6 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 864 | py | # 2017.08.29 21:49:43 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/shared/gui_items/dossier/achievements/GeniusForWarAchievement.py
from dossiers2.ui.achievements import ACHIEVEMENT_BLOCK as _AB
from abstract import SimpleProgressAchievement
class GeniusForWarAchievement(SimpleProgressAchievemen... | [
"info@webium.sk"
] | info@webium.sk |
4e061c6d7685eaed94cbffea578bff7fb6cf3c09 | 1c8f5e2dbd7ebf9c3b8c1c298004b25e3c883d2a | /peptask/__init__.py | b3d529aadd7f4ba94e3c9cd40710d79ac210ef9f | [] | no_license | pepijnKrijnsen/peptask | 53066b5f1e5c768eb595c04d5a9376e2d2ef357b | 55d4f26a89ee7dda481997a948e9f0d3adbd4d74 | refs/heads/main | 2023-02-07T07:37:16.422577 | 2020-12-25T21:54:17 | 2020-12-25T21:54:17 | 323,416,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import os
from flask import Flask
def create_app():
app = Flask(__name__, instance_relative_config = True)
try:
os.makedirs(app.instance_path)
except OSError:
pass
from . import view
app.register_blueprint(view.bp)
return app
| [
"pepijn@krijnsen.com"
] | pepijn@krijnsen.com |
ce8cd7ab7bda889cde62b33efeec107a6221b56b | 716ec0a6b94d4f593ef06d3217962033628574fa | /pytest/ex29.py | d31cae23ee22b3e59011e728a36bc07464e5233e | [] | no_license | lunabird/MyPythonNote | fd1e327ad110257d73e0470ac64b521f85096342 | 248ed5bea9c74cd4ff86537df1d1080a7196c47a | refs/heads/master | 2021-01-10T07:38:40.474217 | 2015-12-15T14:07:28 | 2015-12-15T14:07:28 | 47,493,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #-*- coding:utf-8 -*-
people = 20
cats = 30
dogs = 15
if people<cats:
print "Too many cats! The world is doomed!"
if people>cats:
print "Not many cats! The world is saved!"
if people<dogs:
print "The world is drooled on."
if people>dogs:
print "The world is dry."
dogs+=5
if people >= dogs:
print "People are g... | [
"xd_huangpeng@163.com"
] | xd_huangpeng@163.com |
d9a441f1d7dee59f9626ffe6689b3011f88120bc | 21c5729bb00920a16b8e8fdf6f0d2b472e5187f4 | /8a.py | d196d67f3355b8dc2b2563d5d4a479cf14309199 | [] | no_license | abhinavdv/Codeforces_accepted_problems | b4d854a44070032754b60232249f215eb506e700 | 75f4f9e831613a75a70fa809eb519915248a96a2 | refs/heads/master | 2020-07-03T11:32:58.275150 | 2019-08-26T16:22:10 | 2019-08-26T16:22:10 | 201,892,863 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | a=input()
b=input()
c=input()
m=0
n=0
if (a.find(b)!= -1 and a.find(c)!= -1):
k=a.index(b)
l=a.index(c)
if k<l:
m=m+1
rev = a[::-1]
o=rev.index(b)
p=rev.index(c)
if o<p:
n=n+1
else:
print("fantasy")
if m!=0 and n==1:
print("both")
elif m==0 and n==1:
print("backward")
elif m==0 and n==1:
print("forward... | [
"dvabhinav31@gmail.com"
] | dvabhinav31@gmail.com |
8d4d7d1f3a18b0f2e9716fc6207a59a31bae902a | e3d50f9ae8a3b7121b09a578483b7b72e0aa4d16 | /spider_pk/append_predict/predict_append_rule_100_jump_continue4_base_min.py | 38998128f4d236cbb06d90eeeb38e7fec43d8ff6 | [] | no_license | knightsss/xyft | e17257a9d4736232714097f2adddae3ea4edef3a | 916fb3a99db3d6a65dbba2b6e72c78142b8ca2b2 | refs/heads/master | 2020-06-28T10:16:08.851545 | 2019-08-02T09:33:15 | 2019-08-02T09:33:15 | 200,207,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,420 | py | #coding=utf-8
__author__ = 'shifeixiang'
import time
from selenium import webdriver
from bs4 import BeautifulSoup
from append_predict.models import KillPredict
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_condition... | [
"shifeixiang@37.com"
] | shifeixiang@37.com |
cf7db30b318d32e7d7706d2e98d223adbaa4159a | 4ee14633e17169d1775967e84331ba4bfd52ea2c | /my-yapi/vendors/node_modules/dtrace-provider/src/build/config.gypi | abee38e00bbbaa66cb38ac16a131c73a62bccce0 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | iQuanhe/ice-ts | cd848e4684a6afef4a231ff6b8c3e71d4c8126ee | 0ed5240d29e4da5914a3761ea02a908c4644cdd2 | refs/heads/master | 2023-01-29T05:07:32.978636 | 2020-09-07T07:30:27 | 2020-09-07T07:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,476 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"luyan1@staff.weibo.com"
] | luyan1@staff.weibo.com |
0072ba9cedb27f7e03c1dc9b59e97765a1279d1b | 17fd2fc45800b9bdec008ec235749263cd7412f5 | /common/base_api.py | 8f75a60ff280208d7e025d8144c7f1bb804f649b | [] | no_license | luffy000000/excelddtdriver | 78395bd74fc0ef178e9c0527371b1f72cb95ac99 | c891678aea0983b048779ccccd51b7d288b9bd8f | refs/heads/master | 2020-05-07T19:14:16.355383 | 2019-04-11T14:16:39 | 2019-04-11T14:28:55 | 180,804,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py |
from common.writeexcel import Write_excel
import json
def send_requests(s, testdata):
# 封装requests请求
method = testdata["method"]
url = testdata["url"]
# url后面的params参数
try:
params = eval(testdata["params"])
except:
params = None
# 请求头部headers
try:
headers = eva... | [
"luffy000000@126.com"
] | luffy000000@126.com |
91a3ba73412a6987c81b0bd4f2238ff1b57396a4 | 5ec89657143f814423e5488dbda04b58cca2e3fd | /tartangan/kubeflow/download_dataset.py | 73c3d94bbd2e3a44082c804f262463932130f875 | [
"MIT"
] | permissive | awentzonline/tartangan | c9f17e20e63c00eb2f5c30d6fdc3781e3b3ae600 | 2d36a81fa0ae91fe6b9b4e1f26763285630837fb | refs/heads/master | 2023-07-20T05:48:16.762483 | 2020-11-08T09:30:09 | 2020-11-08T09:30:52 | 229,628,075 | 0 | 0 | MIT | 2023-07-06T21:36:22 | 2019-12-22T20:39:59 | Python | UTF-8 | Python | false | false | 831 | py | import smart_open
from .base_metadata_app import BaseMetadataApp
class DownloadDatasetMetadata(BaseMetadataApp):
def run(self):
super().run()
datasets = self.find_metadata_datasets_by_name(self.args.dataset_name)
# TODO: need to sort to get latest?
dataset = datasets[-1]
w... | [
"adam@vody.com"
] | adam@vody.com |
baf5a5f484dba86ab66d7b9c8dcff33a2118f523 | a853fae5335d3f943e83b3cb7a9baaa64cb9ed42 | /9. Servo Motor/servo_2.py | bfc0b13241864883fd06510be582e05ad59dbddd | [] | no_license | SharjeelBaig0508/Internet-of-Things | 8b6739a6337b1f1275d479da38e58e3ab79fc63c | 70b06565f452a3d9e1f127d69a72c7b8c202a666 | refs/heads/main | 2023-06-14T06:51:46.249823 | 2021-07-12T20:31:18 | 2021-07-12T20:31:18 | 385,369,448 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import RPi.GPIO as GPIO
from time import sleep
slow=0.01
GPIO.setmode(GPIO.BOARD)
GPIO.setup(3, GPIO.OUT)
pwm=GPIO.PWM(3, 50)
pwm.start(0)
pwm.ChangeDutyCycle(2)
while 1:
for x in range(0, 180):
y=1./18.*(x)+2
pwm.ChangeDutyCycle(y)
sleep(slow)
for x in range(180, 0, -1):
y=1./1... | [
"noreply@github.com"
] | SharjeelBaig0508.noreply@github.com |
6b3aebc3cccb73e61b938e010c8db365d463fd19 | 78aaf4ddbb126cf5ef78ed6c9485597c96282f7b | /gpsfake | 145c7bccb0d82f9bb8a1d2636b2987e8b8989fbb | [
"ISC",
"LicenseRef-scancode-ibm-dhcp",
"BSD-3-Clause"
] | permissive | szzso/GPSD-with-management | cbe1766c0b96ca4cef17cedd0d68ba3f1ebb0409 | 9bfab35044861290c271ff559addebe022b26269 | refs/heads/master | 2021-01-21T15:13:27.318281 | 2018-04-17T18:45:31 | 2018-04-17T18:45:31 | 91,834,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,683 | #!/usr/bin/env python2
#
# gpsfake -- test harness for gpsd
#
# Simulates one or more GPSes, playing back logfiles.
# Most of the logic for this now lives in gps.fake,
# factored out so we can write other test programs with it.
#
# This file is Copyright (c) 2010 by the GPSD project
# BSD terms apply: see the file COPY... | [
"szzsolt92@gmail.com"
] | szzsolt92@gmail.com | |
eb99ab34329327f2c45dd146512bf18c8ef09082 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /gJSkZgCahFmCmQj3C_2.py | d50a20751f09661bda0e9611af705c1da6d62a7d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
Create a function that returns the original value from a list with too many
sub-lists.
### Examples
de_nest([[[[[[[[[[[[3]]]]]]]]]]]]) ➞ 3
de_nest([[[[[[[True]]]]]]]) ➞ True
de_nest([[[[[[[[[[[[[[[[["edabit"]]]]]]]]]]]]]]]]]) ➞ "edabit"
### Notes
You only need to retrieve one element.
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
37bf44a0f609cf6170a04deb132a1470a01c9574 | c9775b4f74dab0c5e51ba56a6a75fc10520f2300 | /ecomm/ecomm/settings.py | bc3dff88af5554f67c4d4e41f6fa8e6d8b762b0c | [
"MIT"
] | permissive | aruntnp/MYPROJECTS | b8f9bf9782e66bb592ac271b5bd96f6bcbcebc32 | a1aac3650db607c1a86c0d640a947588656f4f70 | refs/heads/master | 2020-04-07T07:11:57.905300 | 2018-12-17T06:00:34 | 2018-12-17T06:00:34 | 158,167,501 | 0 | 0 | MIT | 2018-12-17T06:00:36 | 2018-11-19T05:38:03 | CSS | UTF-8 | Python | false | false | 4,696 | py | """
Django settings for ecomm project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
f... | [
"aruntnp@gmail.com"
] | aruntnp@gmail.com |
986630c6696395614a2c1ce940ed8fdfb5a83198 | bf97a169e18a256294018c0a81837e59680859d8 | /ZigZagTree.py | cf567f46afb5cfd9fed941be2ccaa849f71cbb64 | [] | no_license | oskip/IB_Algorithms | 780904842372a608362528758377344e126d3012 | 094d871ac4b808d883d5af5430bac47782132c6b | refs/heads/master | 2021-01-19T04:25:13.948498 | 2016-07-04T16:55:09 | 2016-07-04T16:55:09 | 50,581,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # Given a binary tree, return the zigzag level order traversal of its nodes' values.
# (ie, from left to right, then right to left for the next level and alternate between).
#
# Example :
# Given binary tree
#
# 3
# / \
# 9 20
# / \
# 15 7
# return
#
# [
# [3],
# [20, 9],
# ... | [
"oskipet@gmail.com"
] | oskipet@gmail.com |
5c3f9983e5425cda9d43278a436f6c1a7fc30d7e | 81af4f5509ead2e3aecdcfef39d17f0a5da8502b | /simp-py-code/DL_9.8_PackManagerDemo.py | 8536fe19460c9754f8f8132bc25fd957a29e38a6 | [
"MIT"
] | permissive | Michaeloye/python-journey | db2d96a0af893bc6b992c404d56b9be2341d8e74 | ff8ce0e8796a129994f9a9a9dbb80340fa5790dc | refs/heads/main | 2023-03-22T20:53:01.957824 | 2021-02-28T21:26:06 | 2021-02-28T21:26:06 | 342,891,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | from tkinter import *
class Pack_Manager_Demo_1:
def __init__(self):
window = Tk()
label_1 = Label(window, text = "blue", bg = "blue")
label_2 = Label(window, text = "red", bg = "red")
label_3 = Label(window, text = "green", bg = "green")
label_1.pack()
labe... | [
"michealoye23@gmail.com"
] | michealoye23@gmail.com |
8f22ecc592588d5625846e343c4a6c77f30ddf4c | da8fd5c74dd23304b668b1e7b7ace549bc6db1ac | /bestoon/settings.py | fea5ee1075c11024cd00d53d6929ef29731b82d3 | [] | no_license | bahrambeigy/bestoon | 8710e1e1c070413a23e62f276eafcf3297fa1004 | b432508b78e99b3a9fbf16abc5a3d7f7b225954a | refs/heads/master | 2021-01-19T13:17:48.318275 | 2017-02-18T12:52:23 | 2017-02-18T12:52:23 | 82,372,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | """
Django settings for bestoon project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os... | [
"bahramwhh@gmail.com"
] | bahramwhh@gmail.com |
727a0764849d0aa40033231339d636203c29c310 | 6ba96a57691e53f8694fe080870475d447790bf7 | /moviesHaven/management/commands/removesymlink.py | eb6305ac6098a146898ae8210fbab67a25a40b8d | [] | no_license | gahan9/mdb | 194ae26778789e6137738190a598466a28e70165 | 71e3736bed7e3c55461df9fcd72cec5c933404fa | refs/heads/master | 2020-04-01T11:26:02.725565 | 2018-04-26T05:28:15 | 2018-04-26T05:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | import os
from django.utils import timezone
from django.core.management.base import BaseCommand
from moviesHaven.models import StreamAuthLog
class Command(BaseCommand):
diff_hours = 4
help = 'Removes the streams older then {} hours'.format(diff_hours)
def add_arguments(self, parser):
parser.add... | [
"gahan@quixom.com"
] | gahan@quixom.com |
a38acdad156f72fdd2500aa31e6c6b49ea96e5cc | 10201699ebe5d9e2f74dd523ea445a7287c05edd | /profile_project/urls.py | 0b22c8208fbbf0e91cd2f1f46975a01a72f0dd17 | [] | no_license | ravil1234/profiles-rest-api | 58d6e64e7b82fe01833eaa96e97d74d0ddee9559 | ca9857b212dcabc334aa08e193a45923e4a87825 | refs/heads/master | 2022-12-16T12:37:35.806357 | 2020-09-04T10:57:28 | 2020-09-04T10:57:28 | 291,421,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | """profile_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Cla... | [
"mohdravil000@gmail.com"
] | mohdravil000@gmail.com |
86be494a958b73f46e7e93e42390b4e092814fad | 011f01e013439a672637402b13c81ec3b24893d2 | /canFinish.py | 25935b54deefd7cc6c7089babf6a7cb6444f836c | [] | no_license | AkshayGyara/BFS-1 | 3fe961abf1864717f5099f39e46bbceb7e331f9f | 20c3c215172d444b0da7a0688c77708ee62ce8fd | refs/heads/master | 2022-11-11T21:50:33.142332 | 2020-06-24T07:56:11 | 2020-06-24T07:56:11 | 274,525,594 | 0 | 0 | null | 2020-06-23T22:59:01 | 2020-06-23T22:59:00 | null | UTF-8 | Python | false | false | 1,228 | py | #207. Course Schedule
# Time Complexity : O(v*e)
# Space Complexity :O(v*e)
# Did this code successfully run on Leetcode : Yes
# Any problem you faced while coding this : Yes
# I am getting wrong output ie false instead of true for 1 test case ie 2 [[0,1]] . I am unable to figure out the error here.
from collecti... | [
"noreply@github.com"
] | AkshayGyara.noreply@github.com |
379064cb909876e595db016f6827ea4460162564 | 5ad0d71e4773661c18de3b1f5072db37e75d5a45 | /utils/generator_exe1.py | fa177819dadad01a87728361f378b6307c78921c | [] | no_license | rafaelvc/mestrado | c4d52eb0146900ea97522167a5de75a65abf6f2c | 34b24ebbae386e6301cdb60bb8c1a6e28bec654a | refs/heads/master | 2021-01-16T21:00:47.334364 | 2011-09-28T01:48:27 | 2011-09-28T01:48:27 | 2,471,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py |
def generator1(a):
pop = True
for z in a[:]:
if pop:
pop = False
r = a.pop()
else:
pop = True
r = a.pop(0)
yield r, a
| [
"verganic@gmail.com"
] | verganic@gmail.com |
a59d49b8d2d252b971247f1badc1e112991bdf00 | cb689204f5d078c9c598bf0810a8cbd012b24f20 | /PyDDerPub.py | b5f328d7d8c123784bfb6bcd75605cb8a8a80777 | [
"MIT"
] | permissive | bdnguyen/DailyDrawer | 06fdbff3199af30cc471b028ce2672ca0f81039d | c9055d5ea09f3dd97b28cc574bed94fe70413f64 | refs/heads/master | 2020-04-08T08:39:05.110825 | 2017-01-23T10:24:29 | 2017-01-23T10:24:29 | 34,993,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | #!/usr/bin/env python3
import sys, argparse
import requests
from bs4 import BeautifulSoup
parser = argparse.ArgumentParser()
parser.add_argument(
'email', metavar='STR', type=str, help='enter email')
parser.add_argument(
'password', metavar='STR', type=str, help='enter password')
args = parser.parse_args()
email ... | [
"binhduongng@gmail.com"
] | binhduongng@gmail.com |
4af65a91448180f526c96859c264e06b82df3b51 | aa47bc1197aea44676cd3f189b36b4e6a1575fd7 | /eshop_slider/admin.py | 0b234c58bdc60f0cce8e2d6d776e4032f258b263 | [] | no_license | erfanmorsali/shop | 03ab90ac60054754f34701a69138adb284db6a4c | 17ca08378df283662cf5c5a71cd116176e388ec4 | refs/heads/master | 2023-04-27T21:39:02.776471 | 2021-05-20T07:01:59 | 2021-05-20T07:01:59 | 286,720,148 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.contrib import admin
from .models import Slider
admin.site.register(Slider) | [
"erfanmorsali78@gmail.com"
] | erfanmorsali78@gmail.com |
12e8c7410faa6d00dbb211d6cb559d4ffcb70ecd | 51651d7f17e80788e9e8030c35ae69339437eb4c | /thing/migrations/0021_auto_20170824_1953.py | f7f828489e8c96204219fb682bfbd97fe5e69a61 | [
"BSD-2-Clause"
] | permissive | skyride/evething-2 | 508c4300eb904e231d74861da3ee7a6384febe30 | e0778a539b7f8a56667b2508293ca7e9f515283f | refs/heads/develop | 2020-12-30T13:45:50.392322 | 2018-06-23T15:35:57 | 2018-06-23T15:35:57 | 91,246,619 | 21 | 10 | BSD-2-Clause | 2018-05-22T22:07:27 | 2017-05-14T13:53:09 | Python | UTF-8 | Python | false | false | 693 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('thing', '0020_auto_20170707_0010'),
]
operations = [
migrations.AddField(
model_name='characterdetails',
... | [
"skylinerspeeder@gmail.com"
] | skylinerspeeder@gmail.com |
8a90e31922b050e237b026aa70cad9fd38a6277f | 11aaa9f4fccab3f05deddb092fc87fd24f08d643 | /music/migrations/0002_song_is_favourite.py | ea522cc3842d44cd1d4eb6a66538ec5db0a327ea | [] | no_license | prorammerarc/Django-MediaPalyer | 3282499c739670e74b742932ba133db086e97dcb | b97bedcd662ceff83eb645507cc04deb4956748f | refs/heads/master | 2021-05-11T21:05:12.025427 | 2018-01-14T19:36:04 | 2018-01-14T19:36:04 | 117,460,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.0.1 on 2018-01-12 20:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='song',
name='is_favourite',
f... | [
"32127426+prorammerarc@users.noreply.github.com"
] | 32127426+prorammerarc@users.noreply.github.com |
779c6db4958d4ad6d3df4f2936350c375c0adf64 | cb92e6a682c6399eda74c90cb679737ee8752612 | /OSINT_Platform/tests/test_models.py | 0a999e4c2c498314dd7bb7ef57a66a9bcff2daf6 | [
"BSD-3-Clause"
] | permissive | Prontious/Dissertation | 61a856be61d01b3d888ff45f436111d9e2d57b69 | 93d70079eaf401845420647c60145d6e709eb717 | refs/heads/master | 2020-03-23T15:18:12.075430 | 2018-07-20T16:56:29 | 2018-07-20T16:56:29 | 141,736,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | # -*- coding: utf-8 -*-
"""Model unit tests."""
import datetime as dt
import pytest
from OSINT_Platform.user.models import Role, User
from .factories import UserFactory
@pytest.mark.usefixtures('db')
class TestUser:
"""User tests."""
def test_get_by_id(self):
"""Get user by ID."""
user = U... | [
"john_digger@hotmail.co.uk"
] | john_digger@hotmail.co.uk |
4cb8cf2b1b442bee39531717172c2a50c13d240b | a5961e847399c0b1c9d68400bb5eb4d3d5bfe165 | /settings.py | 378bf3085929c7dda60dbe779806b1eac5059670 | [] | no_license | robbiethegeek/drupalcores | 58a1b12fbbe8751c8f6d704d0be555aec5a25c84 | cc6442040bb3e8d022303cc34b5b211d39e32fc4 | refs/heads/master | 2020-12-25T00:19:23.420697 | 2012-05-20T23:00:34 | 2012-05-20T23:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py |
GIT_COMMIT_COUNT = "git log 8.x --oneline --since=2011-03-09 | wc -l"
GIT_LOG = "git log 8.x --pretty=format:'%h : %s' --since='2011-03-09'"
| [
"eric.duran7@gmail.com"
] | eric.duran7@gmail.com |
0705c7a9e3f80b1237a7a53809691d229add1bd2 | f7638626d1141f12fd4b2e019aa60200aee4a0f2 | /utils/video.py | 1d0c12b79c6ac3c6bf36c39887adea709e856034 | [] | no_license | lanewarn/lanewarn-python-backend | dee079fa6fca5949d2aedfd645710c3920792e83 | 23a8a65ee960516e40c3e12a6a6dea65a4197755 | refs/heads/master | 2020-05-22T03:36:33.899948 | 2019-05-13T09:19:58 | 2019-05-13T09:19:58 | 186,215,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | def bgr_to_rgb(frame): return frame[:, :, ::-1]
| [
"mail@fronbasal.de"
] | mail@fronbasal.de |
3f89c4833a31cad2369f99ecfcbccd9c6c382591 | 38258a7dd9acbfb7adf72983015de68a948a4826 | /B_2000~/B_2839.py | 8d8d1250988314bd2ea6b97cd2af25aea67f4df5 | [] | no_license | kangsm0903/Algorithm | 13a7fe5729039a1d0ce91a574c4755a8a92fb02b | 7d713d1c9e2e4dc30141d4f409ac1430a357065b | refs/heads/master | 2022-10-04T00:33:49.247977 | 2022-09-26T12:51:16 | 2022-09-26T12:51:16 | 219,265,010 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | # 2020/01/05 2839번(설탕배달)
N = int(input())
M = []
for i in range(0,N):
for k in range(0,N):
if 5*k + 3*i == N:
M.append(k+i)
try:
print(min(M))
except ValueError:
print(-1) | [
"kangsm0903@naver.com"
] | kangsm0903@naver.com |
d68363e212719df3dd5ddd936bd78bc8ed051b7e | 7fc3b56653be1fb3988b9f20191d4071d5e7ffd6 | /controller/com/invalid.py | 8d3f03b5a909a16e97a4e9e6dcc629ecbfb9ca4c | [] | no_license | tripitakas/cbeta-reader | 2f7e71483216ad096d16af31c29b784bdccfbeb7 | bcb03a2623fc71ef01000a96e524333513b6d138 | refs/heads/dev | 2023-08-18T08:22:34.744733 | 2019-09-07T02:18:06 | 2019-09-07T02:18:06 | 198,781,206 | 1 | 0 | null | 2023-08-14T21:51:09 | 2019-07-25T07:32:13 | CSS | UTF-8 | Python | false | false | 3,886 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@desc: 首页
@time: 2018/6/23
"""
from operator import itemgetter
from os import path
from controller.base import BaseHandler
from controller.role import get_route_roles
import re
import inspect
class InvalidPageHandler(BaseHandler):
def prepare(self):
pass ... | [
"rhcad@hotmail.com"
] | rhcad@hotmail.com |
8d44e6495866ff65d6d79b08f18b96420fd02105 | b3ec5214dc326751ca89ae6c410ad9df5550d727 | /全局变量.py | cd1394044b1adb9e842f51e11e740e8d1000cb9e | [] | no_license | Ephemeral1026/python- | c77cae6ad93fcd8847de8da2e845de3e071d4c73 | 8c27f79f40c3efe43eb585779c4afaf52409c2cf | refs/heads/master | 2020-04-17T13:43:50.642080 | 2019-02-28T06:31:26 | 2019-02-28T06:31:26 | 166,627,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | x=2
def fun1():
print(x,end=" ")
def fun2():
global x
x=x+1
print(x,end=" ")
fun1()
fun2()
print(x,end=" ")
| [
"noreply@github.com"
] | Ephemeral1026.noreply@github.com |
6f866edffe692f8f5ccb9945f336a75fdfccb83d | e9e0b9f0de4751ba734c75745e6be24d7609af05 | /CodeGenServer.py | ab710ae85f2f6d24ac0174f560808a6903ff7ae7 | [] | no_license | pnjha/RPC-Kafka | 4f62e64aec4120c05265ddc9f98b4a421108a09c | 55c8c88a67f50613d04922ecda792e6a39b9bb93 | refs/heads/master | 2022-04-05T17:22:58.995627 | 2020-02-09T14:28:54 | 2020-02-09T14:28:54 | 239,317,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | import os
import sys
import json
import pickle
import threading as th
from kafka import KafkaProducer
from kafka import KafkaConsumer
from kafka.errors import KafkaError
from Server import Server as Server
def produce_topic(topic_name,receiver_id,value,kafka_id):
producer = KafkaProducer(retries=5,bootstrap_server... | [
"prakash.nath@students.iiit.ac.in"
] | prakash.nath@students.iiit.ac.in |
11d15ed90725ea8f612d4328b52f560ef8e3e3bf | af30e0e378a0028a1d65951491174b6bc685e4c6 | /11399.py | 33cbfe96bd38692392db2092bae493af0dab4783 | [] | no_license | JungAh12/BOJ | cb54cfddc041b3b807b1c98d5327d717f9a325fb | 709ff8f909aa686fe83c7b25d5f30445a50fbb7d | refs/heads/master | 2020-09-11T01:04:47.310521 | 2019-11-29T16:15:49 | 2019-11-29T16:15:49 | 221,888,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | N = int(input())
P = list(map(int,input().split(' ')))
P = sorted(P)
res = 0
for i in range(N):
res += sum(P[:i+1])
print(res) | [
"vml_yg@naver.com"
] | vml_yg@naver.com |
13e49560092f02899f60735a3e9a929d4b2522a9 | 3247e4a00da2e46834a18fe5b77e0d11a0d1b2b2 | /8.1_Graph.py | 27ef10bffef824bfa9b6873b122097d92d68cb20 | [] | no_license | kriyazhao/Python-DataStructure-Algorithms | 90ab0e179143480b377a544b2595a5cc49120141 | c7255d5f6c461e18c43c472299269a771779b500 | refs/heads/master | 2021-01-20T09:09:44.938910 | 2014-07-15T00:44:29 | 2014-07-15T00:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | #------------------------------------------------------------------------------------------------------------
# Vertex class to store node in the graph
class Vertex:
def __init__(self, key):
self.id = key
self.connectedTo = {} # store connected vertex and weight of the edge
self.dista... | [
"kriyazhao@users.noreply.github.com"
] | kriyazhao@users.noreply.github.com |
c7771f3e6c54d6ad3a33c0e804aac0782acc4220 | 836d5f7190f6b4503e758c87c71598f18fdfce14 | /9-String-İşlemleri/String-Find-Rfind-Methodu.py | 476d3632d57bd5f8e65d24e5cbc90a8fe7081687 | [] | no_license | S-Oktay-Bicici/PYTHON-PROGRAMMING | cf452723fd3e7e8ec2aadc7980208d747c502e9a | 22e864f89544249d6309d6f4570a4104bf47346b | refs/heads/main | 2021-11-30T00:19:21.158084 | 2021-11-16T15:44:29 | 2021-11-16T15:44:29 | 316,716,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #####################################################################
a = "sadık oktay biçici"
#string içerisinde aranan karakterin kaçıncı sırada olduğunu bulmamıza yarar
#soldan sağa arama yapar
print(a.find("ı"))
#istedğimiz aralıkda aramak istersek
print(a.find("t",2,14))
#######################################... | [
"noreply@github.com"
] | S-Oktay-Bicici.noreply@github.com |
02be514a10bdb2a7ec4770600dfb54abf2a86aa7 | bf14a56f2f03a99a87bf455c3c4a5be9760c9db6 | /users/migrations/0005_remove_members_auth.py | 40033fa617189c47240b28acbda9095fdf2c9f67 | [] | no_license | axxsxbxx/T4IR_petppo | 84833e4096052023fb633111fa57a623009fbcad | ecf8e890bbb20bad7f41d0c76908fa1e27c6eda0 | refs/heads/master | 2023-01-07T05:16:39.466043 | 2020-11-12T09:43:02 | 2020-11-12T09:43:02 | 291,868,850 | 0 | 0 | null | 2020-09-04T05:50:04 | 2020-09-01T01:53:34 | JavaScript | UTF-8 | Python | false | false | 317 | py | # Generated by Django 3.1 on 2020-09-03 00:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0004_members_auth'),
]
operations = [
migrations.RemoveField(
model_name='members',
name='auth',
),
]
| [
"ansubin2004@gmail.com"
] | ansubin2004@gmail.com |
da8a1916b309ed9a259ff22ed0d10c83f5ba5a33 | b2329ecbfc753142659b59d84b3bc9b6f9a035d2 | /app.py | 02b8d781db3fa0ac2431b16741aeffa9f58e0aa7 | [] | no_license | SantoshAIMLProjects/Invoice_Processing | a93c2742f7d2d43fe85f3c08901c50a2c3a34207 | 7e18b6f486e2d5be949316ca1595898afafcfe0e | refs/heads/master | 2023-09-02T20:27:38.436505 | 2021-11-14T19:42:11 | 2021-11-14T19:42:11 | 427,994,350 | 0 | 0 | null | 2021-11-14T19:42:11 | 2021-11-14T17:26:52 | Python | UTF-8 | Python | false | false | 2,244 | py | import streamlit as st
import pandas as pd
from matplotlib import pyplot as plt
from plotly import graph_objs as go
from extract_img import *
from PIL import Image
data = pd.read_csv("output1.csv")
st.title("Invoice Processing")
#roi = [[(1073, 95), (1199, 115), 'Text', 'Company_Name'],
# [(109, 350), (207, 378)... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
fdf6431a2bb9ec7423502542bfc62b42f6cdd1cc | 1000b899b480c90308cb2424391cbd5bdc18b03a | /emails/forms.py | d41e657c0301378e786bbb7d9317c5620faf0dde | [] | no_license | crazy36/Emails-app | 685891cebbc6756c5ab9a4b2d371451d2acd2a0e | 15daa27f82617598611ba84fc897cc4584075684 | refs/heads/master | 2020-03-18T16:17:29.730927 | 2018-05-26T11:58:47 | 2018-05-26T11:58:47 | 134,957,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | #emails/forms.py
# -*- coding: UTF-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
class MessageForm(forms.Form):
recipient=forms.ModelChoiceField(label=_("Recipient"),queryset=User.objects.all(),required=True,)
message=forms.Char... | [
"crazyhero365@gmail.com"
] | crazyhero365@gmail.com |
b8a9302e8da44e7a908893ab4b7e4f14686ddd21 | bcb8337b488f6acb91b700a2312a5b2018855413 | /federatedml/ftl/test/functional_test/functional_load_data_test.py | ac35eff06742ae316f8a3664bb6393b32ad11a34 | [
"Apache-2.0"
] | permissive | freeeedooom/FATE | d17a4729f059cfec6bc07c3142bebcd3b470dc3c | 7bbce8ee037543f280791378681742b40a300b0a | refs/heads/master | 2020-08-19T12:15:22.517131 | 2019-10-17T07:09:22 | 2019-10-17T07:09:22 | 215,918,890 | 1 | 0 | Apache-2.0 | 2019-10-18T01:45:43 | 2019-10-18T01:45:43 | null | UTF-8 | Python | false | false | 1,919 | py | import numpy as np
from arch.api.eggroll import init
from federatedml.ftl.data_util.common_data_util import load_data, feed_into_dtable
from federatedml.ftl.test.util import assert_array, assert_matrix
if __name__ == '__main__':
expected_ids = np.array([133, 273, 175, 551, 199, 274])
expected_y = np.array([1... | [
"jicezeng@gmail.com"
] | jicezeng@gmail.com |
66f5307ace7c6521c16e10552a93770a9dd8774b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_10/100.py | 2dbfeb80c477a2f752aaf4706fd43b0a463f8780 | [] | 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,232 | py | from __future__ import with_statement
from optparse import OptionParser
import sys
def process(in_file, out_file):
num_cases = int(in_file.readline())
for case in xrange(1, num_cases+1):
print 'Case #%d:' % case
result = 0
p, k, l = [int(x) for x in in_file.readline().split('... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3aa0c8ef351c4ec055091dc563483f9b0ffaca94 | af05499aed459da984b0ce93e6424aa74766ba62 | /turtle/initial.py | ad3e12fd07e584262a0c5eaebae0bb1cc3744b18 | [] | no_license | alxayeed/Programming-Foundations-with-Python | 72fd64e928941637e6c320b00c218e627c3faa71 | eca4c67a011a2b6e9964cf7df0cd8c0486272daf | refs/heads/master | 2020-07-06T20:09:56.073152 | 2019-08-14T14:11:09 | 2019-08-14T14:11:09 | 203,127,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | #A program to graphically show my Initial
import tutle
name = turtle.Turtle()
name | [
"alxayeed@gmail.com"
] | alxayeed@gmail.com |
a3c62b7908f21f4cd6024e83cfc4a6a3eaa23fc8 | cbbd094c5a8b6cf2d3f41fdf114c3988d85ec572 | /caso voley/Sexo.py | e298f945c76fc1605a49cfb10e95f7aaae5c53d5 | [] | no_license | JhonTorres001/-Caso-voley- | c96add61f3efd1523a7c2ca6c878952f14ec1e76 | 9ffbeedb838684fc8f7e81b7791b8ecf90410147 | refs/heads/master | 2022-12-08T08:31:19.745461 | 2020-08-31T22:49:55 | 2020-08-31T22:49:55 | 291,840,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py |
class Sexo(object):
def __init__(self):
self.Descripcion = ""
self.IdSexo = 0
self.persona = None
# Start of user code -> properties/constructors for Sexo class
# End of user code
# Start of user code -> methods for Sexo class
# End of user code
| [
"tomcat@ip-172-31-19-198.eu-west-1.compute.internal"
] | tomcat@ip-172-31-19-198.eu-west-1.compute.internal |
2b300e5644cfb953674e2fc0496acc9e2812c030 | 6fa40af69b8cc2ccaa974851ee7d9d0fe0056931 | /app/core/tests/test_models.py | 18cff09bd48363bd924ae44825eea87f48e763f3 | [
"MIT"
] | permissive | Bartosz-L/recipe-app_django-rest-api | 5bef77711e53fb2a5d4c09731085e5af067fc2ac | b87abc8db57c228aa2181c91731bd8ea6cbd233a | refs/heads/master | 2022-11-29T22:15:14.081191 | 2019-11-05T13:14:52 | 2019-11-05T13:14:52 | 185,169,273 | 0 | 0 | MIT | 2022-11-22T04:09:13 | 2019-05-06T09:50:15 | Python | UTF-8 | Python | false | false | 2,615 | py | from unittest.mock import patch
from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
def sample_user(email='test@test.com', password='testpassword'):
# create a sample user
return get_user_model().objects.create_user(email, password)
class ModelTests(TestCa... | [
"bligeza@tidk.pl"
] | bligeza@tidk.pl |
0e5e5b102ac23f3e61ac0c30aeb4a7aab83ba124 | 4f6fdd0effc474226b75ccc5d247509121b90fdf | /number programs/prime numbers in a range using sieve of eratosthenes.py | 345af39b62771b7ab9eff038c23fc4ba11236ff4 | [] | no_license | tuhiniris/Python-ShortCodes-Applications | 1580785a6922c70df3b7375cb81e98f4a684d86f | f3fe7ac1c11a631fcd05b9d19b25b1a841d94550 | refs/heads/main | 2023-04-07T21:42:21.094545 | 2021-04-21T07:47:46 | 2021-04-21T07:47:46 | 358,605,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | ##n=int(input("Enter upper limit of range: "))
##sieve=set(range(2,n+1))
##while sieve:
## prime=min(sieve)
## print(prime,end="\t")
## sieve-=set(range(prime,n+1,prime))
##
##print()
N=int(input("Input the value of N: "))
Primes=[True for k in range(N+1)]
p=2
Primes[1]=False
Primes[0]=False
wh... | [
"noreply@github.com"
] | tuhiniris.noreply@github.com |
21fa8e09e692dd0fa8a2eb21bacd409ae98bd920 | cedfd8fb58763f2b57575b92a3b4fcb73ac5d35d | /flak.py | 158723d5259c11ebb88b8b9f8fe81048921ce4b7 | [] | no_license | Alex-Huleatt/Fun | 48d0c5004168479596c03210ab4d5cb8ffdbb92e | 3764e07d38af8ad51ee662a355d691c358346109 | refs/heads/master | 2021-01-16T20:24:40.906388 | 2017-08-25T16:19:56 | 2017-08-25T16:19:56 | 100,203,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | #!/usr/bin/env python
import sys
def e(c):
u,b,i,v,s='[{<(',dict,0,0,e.s
z=b(zip(u,']}>)'))
while i<len(c):
k=c[i];h=k in z
if h and c[i+1]==z[k]:exec b(zip(u,['v+=x','v+=s[e.a].pop()if s[e.a]else 0','e.a=1-e.a','v+=1']))[k]
elif h:
n,y=0,i
while c[:i+1].count(k)>c[:i+1].count(z[k]):i+=1
r=c[y+1:i]
... | [
"alexhuleatt@Alexanders-MacBook-Pro.local"
] | alexhuleatt@Alexanders-MacBook-Pro.local |
0f6345d0f5daccc153be1ada859f3ad57db4dc02 | 3015b07ab56da859507abc3881385f4995980600 | /fisher/view_models/gift.py | 34dcb36fd285f7c38d45f5b1ee0e45cbc0245c56 | [] | no_license | xuewen1696/fisher-book-practice | f65c559651f5a51d08cfdcb96a4fc8f96f481238 | 93ce16de333381196aaa2de4811559d5c27d7e0c | refs/heads/master | 2022-12-10T06:31:25.912229 | 2018-07-28T07:26:32 | 2018-07-28T07:26:32 | 142,654,555 | 0 | 1 | null | 2022-12-08T02:22:41 | 2018-07-28T06:53:34 | CSS | UTF-8 | Python | false | false | 929 | py |
from collections import namedtuple
from fisher.view_models.book import BookViewModel
# MyGift = namedtuple('MyGift', ['id', 'book', 'count'])
class MyGifts:
def __init__(self, wish_count_list, gifts_of_mine):
self.gifts = []
self.__wish_count_list = wish_count_list
self.__gifts_of_mine ... | [
"xuewen1696@163.com"
] | xuewen1696@163.com |
867a075faec0fc3a81c60d0365a6e18d2b25319b | 233a63dfe44263826770b5969c7fc228bc5bb0c2 | /GUI_version/evolve_func.py | 8730257849b727effaa823f95181e49c1b8de17b | [] | no_license | kawin7538/GameOfLife | 4c65c1af138d653276493c8f00c3cb3ab2be70ca | 96b6227f7e08d4460041281694c735666d6c12ad | refs/heads/master | 2020-05-19T11:09:17.739863 | 2019-05-12T11:18:56 | 2019-05-12T11:18:56 | 184,984,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 4 15:57:55 2019
@author: Kawin-PC
"""
def evolve(grid):
#initialize liveCells as empty list
liveCells=list()
#access every cells in grid
for i in range(grid.numRows()):
for j in range(grid.numCols()):
#count neighbors that is LIVE CEL... | [
"kawin7538@gmail.com"
] | kawin7538@gmail.com |
1ca07427f06ff0b0545654fdeef1e43c4a964979 | 48e32d67b984fc7505a9b1556b0273cede2848e4 | /ske_customization/customizations_for_ske/doctype/hypothecation_company/test_hypothecation_company.py | 113f06e4d851848165fc922c74859c9a40d5562b | [
"MIT"
] | permissive | akshay83/ske_customization | 86c776d37000ed97ddee63bb5ee84901d610414a | 910e8ca88ffc83554ebb23f7480901dba9f08221 | refs/heads/master | 2021-01-02T23:09:00.888981 | 2020-05-08T07:41:52 | 2020-05-08T07:41:52 | 98,892,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Akshay Mehta and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
# test_records = frappe.get_test_records('Hypothecation Company')
class TestHypothecationCompany(unittest.TestCase):
pass
| [
"mehta.akshay@gmail.com"
] | mehta.akshay@gmail.com |
5d5f9c33e96e4005998e5b45f372eab18a6bca4d | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_27953.py | 09f31b1b8ab72abff172933a01275553c5eb9d7b | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,843 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
cf7ef5b0adbbc5686cba414b5d88f338966602b7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/3074.py | c8f838154185a6edab1140e278a15ba6ec737807 | [] | 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 | 457 | py | def main():
T = int(input().strip())
for t in range(T):
N = list(input().strip())
for i in range(len(N)-1, 0, -1):
if int(N[i]) < int(N[i-1]):
N[i-1] = str(int(N[i-1])-1)
j = i
while j < len(N) and N[j] is not '9':
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
895c17f67d35ca30f9d2b319b3786a86e053582d | 8e853ea941169955c6a0c5fd19f18445cef30649 | /setup.py | aa065ad0a8c2746dff4db92241fb3db7fb46f7ac | [
"BSD-3-Clause"
] | permissive | djangosporti/shellpy | 73b7d9d85800f6090a37a1afab048538c93b5de6 | 3d6c1fb7f6fb9820470f7871c08fd1a9ca78f552 | refs/heads/master | 2021-01-15T21:08:25.652465 | 2016-02-28T09:48:25 | 2016-02-28T09:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | #!/usr/bin/env python
try:
from setuptools import setup
args_for_setup = {'entry_points': {
'console_scripts': {
'shellpy = shellpython.shellpy:main'
}
}}
except ImportError:
from distutils.core import setup
args_for_setup = {'scripts': ['shellpy']}
setup(name='shel... | [
"alexander996@yandex.ru"
] | alexander996@yandex.ru |
ca9231cd7675480ce6536c5e7e8fd385d2d6151e | 4bb21e84e1de39a7b15ad000f47f10bd34a7f165 | /Scripting_With_Python/email_Playground/Sending_emails_with_python.py | cb364bd120bfe7c997a8ffc76da9a2a7fe68197c | [] | no_license | manishawsdevops/pythonmaster | a32d91e24b04250cd102b9acada367c385d12976 | e2459536f2ea091be8aba7c9307373802a04a332 | refs/heads/main | 2023-06-12T23:59:26.991154 | 2021-07-09T11:19:11 | 2021-07-09T11:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # Sending emails with Python.
# Python has the inbuilt email modules.
import smtplib
from email.message import EmailMessage
# For email we need to address from address, Subject and content
# First we need to create email object
email = EmailMessage()
email['from'] = 'Manish AWS Freelancer'
email['to'] = 'manishawsfr... | [
"manishawsfreelancer@gmail.com"
] | manishawsfreelancer@gmail.com |
2eba1be43550d89d779b8adfdf934bc8cc96883f | 3a4278ddfabbcf42811363c0db3def18e406cd94 | /Main.py | 4ee34ce95f42e1f2f0f088ea6bd692c06ef23a36 | [
"MIT"
] | permissive | rodgersa1/HelloRobot1 | 0757f08e4622c7de592aea775553df3ee6b01ff1 | b67833688cdb2f46c75da790d6087c34b8638139 | refs/heads/master | 2021-06-30T02:06:21.474854 | 2017-09-20T18:23:38 | 2017-09-20T18:23:38 | 103,976,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | from gopigo import*
import time
class Piggy(object):
def _init_(self ):
print ("I AM ALIVE")
def pulse(self):
"""""check for obstacles, drive fixed amount forward"""""
look = us dist(15) # store the distance reading
if look > 80:
fwd()
time.sleep(1)
... | [
"ivorycoastdre42@gmail.com"
] | ivorycoastdre42@gmail.com |
92d8c787ecda8f9124cfff1d9ef89b1c60b01c95 | 6bcd69393c57dd16e0cea56dd554ccd464aa42d5 | /venv/bin/weasyprint | e2fb502abea3bb9745dfd00576d2d8044dec8b70 | [] | no_license | ecustovic/PdfReports | 6f4f48839bddd03fa79565cf7b65c0207eea9d48 | 7db82351ddc280878082142fab50a6157f97729f | refs/heads/master | 2023-02-03T09:12:23.059140 | 2020-03-06T13:29:08 | 2020-03-06T13:29:08 | 244,865,428 | 0 | 0 | null | 2023-01-19T17:44:26 | 2020-03-04T09:59:03 | Python | UTF-8 | Python | false | false | 264 | #!/home/emina/rails-studio/test_pdf_reports/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from weasyprint.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"emina.custovic@edu.fit.ba"
] | emina.custovic@edu.fit.ba | |
c8b22cb55233ad80405b9391f90d05955a09335b | 7be1e309cd001421b334b027443dec3b4dda9430 | /14.py | d1aa9fc1c213d3627a8c84816a1002fb63a8e578 | [] | no_license | Eomund/AdventOfCode | e144e23a1e9d0e53dd5a58dd768291a5df72a391 | d6a133584b98a00d0eb95c98a0c0d681bc1a5f87 | refs/heads/master | 2020-04-15T23:57:51.751216 | 2019-01-10T19:33:32 | 2019-01-10T19:33:32 | 165,118,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | rec = [3, 7]
elf1 = 0
elf2 = 1
end = int(input())
while len(rec) < end + 10:
new = str(rec[elf1] + rec[elf2])
for char in new:
rec.append(int(char))
elf1 = (elf1 + 1 + rec[elf1]) % len(rec)
elf2 = (elf2 + 1 + rec[elf2]) % len(rec)
ans = rec[end:end + 1... | [
"noreply@github.com"
] | Eomund.noreply@github.com |
538d6fa336411b2d3d8a4343aede902e6aaec94f | 9db62c85450eb6517c904e5cf6ad4de5158c2af4 | /src/account/views.py | e950f49d2cc6ef3f6d20b248174b1beebf20a470 | [] | no_license | bhubs-python/djpos | c50d5e3b397fb549d6fbb2a4b908bd5c7ccb485f | 70d3d43e50490e90521efff71e818c40366c415a | refs/heads/master | 2021-04-27T04:18:05.513056 | 2018-02-26T12:22:15 | 2018-02-26T12:22:15 | 122,729,668 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.views import View
from django.contrib.auth.views import login, logout
from django.db.models import Q
from . import forms
from . import models
# logout
def logout_request(request):
logout(request)
return redirect('account:login')
c... | [
"mubarak117136@gmail.com"
] | mubarak117136@gmail.com |
b8058a5bc2e12b2774f9b9e16dcb6947a3041297 | 4f51c13ab4a824b98aef42e65c9e0eb0e0c907e6 | /batch_sampler.py | bc3cc03d9d0550c3fe0d78cabfe60629aa030dc6 | [
"Apache-2.0"
] | permissive | 804463592/triplet-reid-pytorch | f71175a1eb94e8d2e6f854fe64b34d36bff34302 | 96ee13ebe1c7cb094d8bcf9f3ddf5e5f85d98f35 | refs/heads/master | 2020-04-03T11:14:24.951186 | 2018-09-29T06:09:48 | 2018-09-29T06:09:48 | 155,215,577 | 2 | 0 | Apache-2.0 | 2018-10-29T13:21:36 | 2018-10-29T13:21:35 | null | UTF-8 | Python | false | false | 2,220 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import torch
from torch.utils.data import Dataset, DataLoader
from torch.utils.data.sampler import Sampler
import cv2
import numpy as np
import random
class RegularBatchSampler(Sampler):
'''
sampler used in dataloader. method __iter__ should output the indices ea... | [
"867153576@qq.com"
] | 867153576@qq.com |
a999a910907ed10fc21700f83ad2a7277ed87aeb | 1b26a8948d65b6fa5f4b08cea2bf5ea48e43e977 | /day1_candyBucket.py | bd476569f33261a6d7cc2e4f40903baf52825d16 | [] | no_license | DeveloperChoi90/programmers_kdigital | eee895aa208bf3cb361fc0fb544a906fefda9cfc | 289a4edabd6fb7db72a9f0b293046ff828ee1ab6 | refs/heads/main | 2023-06-02T05:14:23.927403 | 2021-06-13T18:06:34 | 2021-06-13T18:06:34 | 359,888,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | from itertools import combinations
def solution(m, weights):
answer = 0
for i in range(len(weights)):
combi = combinations(weights, i)
answer += [sum(candies) for candies in combi].count(m)
return answer
def solution2(m, weights):
answer = 0
for i in range(len(weights)):
... | [
"DeveloperChoi90@gmail.com"
] | DeveloperChoi90@gmail.com |
ee84040faf43259103c17931f9209b1ae40621b6 | b037e36771bd47cb84a9ce9745ffeac801256b56 | /hot_info/picrew_info/picrew_info/utils.py | 95fd1965de6e5a29fe2493be7981d89d4f4b199c | [] | no_license | SuperMMORPG/scrapy_project | 7004714ede620bddf30dd15d8779322959087280 | ccac1089de94064077444026b3a1f484910d7543 | refs/heads/main | 2023-05-15T02:59:24.195936 | 2021-06-09T15:43:03 | 2021-06-09T15:43:03 | 344,821,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | from redis import Redis
import os
import time
from datetime import datetime
def connect():
host = '192.168.1.100'
port = 6379
conn = Redis(host=host,port=port)
return conn
def add(conn,name,url):
ex = conn.sadd(name,url)
if ex==1:
print('**该地址为新地址,可以进行任务获取',url)
return True
... | [
"bad_jin@outlook.com"
] | bad_jin@outlook.com |
420bfc1384cc7e64d98a0a50480e91c6a98e4e9c | 69be6b5974c50eedeba274ee9a8d9a4bfdb48172 | /code1.py | 5b225b7e3b4d7a89dd103888f7092e55fe3093ae | [] | no_license | Praneeth102/mlops3 | 1b00cef590dbffd372c46db5c0feb128501d8b26 | 4a109ea696cd678ba580b5b0addd5b538ff24442 | refs/heads/master | 2022-09-09T16:46:13.283205 | 2020-05-27T17:54:09 | 2020-05-27T17:54:09 | 267,030,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | #importing data from keras
from keras.datasets import mnist
from keras.utils import np_utils
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D, BatchNormalization
from keras import backend as ... | [
"praneethkothapally102@gmail.com"
] | praneethkothapally102@gmail.com |
c413ca59ce0807612bc27516d70a155bab6ff5c4 | ce6efac2d0339c08566f684e7ff425e8432c380f | /datas.py | ea47f8c237f1799b0785f4c1ffc645a1ed2bb48b | [] | no_license | agb91/Icebergs | 728bdaec548968e781ce846dd063356776858ad8 | 938010528003695b96cd47115491decef0a015ec | refs/heads/master | 2022-01-22T15:12:25.557895 | 2019-07-29T10:24:27 | 2019-07-29T10:24:27 | 111,598,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from import_all import *
class Datas:
#easy object, just contains some informations
def __init__( self, X_train, y_train, X_test ):
self.X_train = X_train
self.y_train = y_train
self.X_test = X_test
| [
"andrea.damio1991@hotmail.it"
] | andrea.damio1991@hotmail.it |
d20a7e91da0fed90cf53eb24e3cd727e85282669 | 632747fbfbf1122497792291cb5a6a9f24add48d | /codewars/summation.py | 41fa1933b4bf4226cf0bc5a1581c76da79881398 | [] | no_license | mjoze/kurs_python | 892ac4fab7f3b3fb1d88b236c362a7630a565af7 | 78ec0dda34a5450a4c47d79f3957c65dfbac0276 | refs/heads/master | 2020-08-07T10:54:56.198237 | 2020-04-30T15:31:50 | 2020-04-30T15:31:50 | 213,421,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | """
Summation
Write a program that finds the summation of every number from 1 to num.
The number will always be a positive integer greater than 0.
For example:
summation(2) -> 3
1 + 2
summation(8) -> 36
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8
"""
def summation(num):
sum_numbers = 0
for i in range(1, num + 1):
... | [
"mirek.jozefiak@gmail.com"
] | mirek.jozefiak@gmail.com |
562c4bebc73931b44bcb49450642a46d9df9ee43 | 851bc00bb6f55159ba9e0f43cd9ab796649099c6 | /Folien_und_Literaturen/0schon verpasst/Modelle fuer virtuelle Realitaet/ex1/ex1/Christian Henning/explicit_euler.py | 64d915ef8d59f7da1ec6344ae3ae1bed4024cb2c | [] | no_license | JoshuaGhost/lecture_slides | 67376ac58952f837cf54bebfdacc18b5ec281624 | 3cf78e289d54d2cad63634ff4a36fe7e935fb443 | refs/heads/master | 2021-01-20T21:00:58.699150 | 2016-08-22T22:38:42 | 2016-08-22T22:38:42 | 61,571,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | #!/usr/bin/python
# author Christian Henning - 2843590
from sympy import *
from sympy.parsing.sympy_parser import parse_expr
import matplotlib.pyplot as plt
import os
import math
import sys
y_cur, y_next, y, x_cur, x_next, x, dx = symbols('y_cur, y_next, y, x_cur, x_next, x, dx')
stabilityTest = 0 # used when probing ... | [
"joshuaghost@gmail.com"
] | joshuaghost@gmail.com |
6706fc44bdc8960ccc269b1cafb7966e6c0245a5 | eb2b022e95fd310df0c2102d2329a13345534a8a | /cart/forms.py | 00b0673a3412db9fa77e30ba6653a17b1855a39e | [] | no_license | Agmella/Ecommerce-website-AP- | a86f6ea9a72361cfaa07c9aad1d06bdb56ce66a8 | c49d4c49243e9abd0967428bc349ad6a0815f5d0 | refs/heads/master | 2023-04-28T23:17:16.320421 | 2019-10-24T18:01:41 | 2019-10-24T18:01:41 | 215,369,311 | 0 | 0 | null | 2023-04-21T20:39:10 | 2019-10-15T18:29:33 | JavaScript | UTF-8 | Python | false | false | 641 | py | from django import forms
from .models import order
#Quantity = [tuple([x,x]) for x in range(1,32)]
#class CartForm(forms.Form):
# quantity = forms.IntegerField(label='Quantity')
class PaymentInfo(forms.ModelForm):
name = forms.CharField(label='Name', max_length=100)
mobile = forms.CharField(label='Mobile ... | [
"avneeshgarimella@gmail.com"
] | avneeshgarimella@gmail.com |
6adbfbe0c7845c0852f0fff38504793bdcc8bcb7 | a0041845c05228da96d55a0aa8a06780180df7b2 | /employee/urls.py | d9df0a857fd118cb12bdd65d6f596737faecf7a5 | [] | no_license | mnosinov/drf_sjlouji_project | e2f9a66c7bbf42a937ab76a4839053e9c479d9bd | 95fa48b12d30dfd47c8ed3ae7d4e8ac7748c02f2 | refs/heads/master | 2023-04-06T09:58:59.197792 | 2021-03-26T05:07:39 | 2021-03-26T05:07:39 | 351,310,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.urls import path
from .api import EmployeeCreateAPI, EmployeeAPI, EmployeeUpdateAPI, EmployeeDeleteAPI
urlpatterns = [
path('api', EmployeeAPI.as_view()),
path('api/create', EmployeeCreateAPI.as_view()),
path('api/<int:pk>', EmployeeUpdateAPI.as_view()),
path('api/<int:pk>/delete', Employe... | [
"mnosinov@gmail.com"
] | mnosinov@gmail.com |
504441bfe7c528f8656753ca54b4d8e057d221fe | 778a88f23fe3d44798eb895bbd3a99734f77419b | /AdaBoost.py | 9c457dadbb7ea118c54adae3e10c0f2666969148 | [] | no_license | KingJames777/Ensemble | 5e837a0f59a04c8d290414681d9b82fba034d580 | da8ac3114a184a42fa9e4d9d6042516fbb551483 | refs/heads/master | 2020-04-30T14:45:52.825136 | 2019-03-21T08:26:37 | 2019-03-21T08:26:37 | 176,901,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | from sklearn.datasets import load_breast_cancer as lbc
from sklearn.model_selection import train_test_split as tts
from sklearn.metrics import accuracy_score
from numpy import *
from ROC import roc
def cut_value_array(X,points=10):
low,up=X.min(),X.max()
res=zeros(points)
step=(up-low)/point... | [
"noreply@github.com"
] | KingJames777.noreply@github.com |
34b07997787425ab13acbd59fa8ba3cdb4f23876 | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /data_persistence_and_exchange/csv/csv_reader.py | 2676d2c1149e1ffb361cfef0b2206a62029b800d | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 127 | py | import csv
import sys
with open(sys.argv[1], 'rt') as f:
reader = csv.reader(f)
for row in reader:
print(row)
| [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
21682bc1c9f6985730eb98b0a543fba2fd37a893 | 8340124261bb2ff02ad4234c7e1f05ca6b8c5071 | /imylu/linear_model/regression_base.py | e598b9e66251e827d74024abed65f9edade94d7d | [
"Apache-2.0"
] | permissive | chenxushu1025/imylu | db49d71bebc6216efdcdc7c315152ae905f39717 | 984aaa5abe2fe95999b5a84b458acde33b08c2ae | refs/heads/master | 2020-04-11T08:02:02.963860 | 2018-12-03T09:04:08 | 2018-12-03T09:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,988 | py | # -*- coding: utf-8 -*-
"""
@Author: tushushu
@Date: 2018-06-27 11:25:30
@Last Modified by: tushushu
@Last Modified time: 2018-06-27 11:25:30
"""
from random import sample, normalvariate
class RegressionBase(object):
def __init__(self):
"""Regression base class.
Attributes:
bias: b
... | [
"m18591915960@163.com"
] | m18591915960@163.com |
50d4ca37296bab8494a4e4629956dba88dc8a4f7 | cc79dd3c7095448fb7a0532fb2c3bf2d91aecb22 | /polls/migrations/0002_auto_20200313_0812.py | fb63a09b385122589ad074a2721d72f8ff2afa01 | [] | no_license | SV96/todo | 62ae6c993e3c0a1fed3fa366cf75f7161886c517 | 4ab20f798f9a133ee2d28fc100ef5c3d3eceefb3 | refs/heads/master | 2021-03-26T07:12:49.266087 | 2020-03-16T11:31:54 | 2020-03-16T11:31:54 | 247,683,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 3.0.4 on 2020-03-13 08:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='tods',
name='do_date',
fiel... | [
"me.svipul@gmail.com"
] | me.svipul@gmail.com |
cfb2bc67a1cc0ce75ffb18cd23e902d26d4590ec | 292d1a1caedeb603f035e086e1a36a2230a4ede3 | /messanger.py | 7bbd19478631eb43747b4db36ac9df6d66371ed7 | [] | no_license | Phoenix951/Messenger | d82a4b1c06f45a34d0eab9067e80d159ba4030d6 | 9a3ca28495bd8ea8e0ce6cf2c84297d3a0091f08 | refs/heads/master | 2021-02-08T07:35:18.907661 | 2020-03-01T09:57:46 | 2020-03-01T09:57:46 | 244,124,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | import requests
import clientui
from PyQt5 import QtWidgets, QtCore
from datetime import datetime
class MessangerWindow(QtWidgets.QMainWindow, clientui.Ui_Messanger):
def __init__(self):
super().__init__()
self.setupUi(self)
self.last_message_time = 0
self.pushButton.pressed.connect... | [
"darkcobra31@gmail.com"
] | darkcobra31@gmail.com |
27156a26c7bb0efa665f0ef3bba33ed4d7dabada | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/devel/.private/tf2_ros/lib/python3/dist-packages/tf2_ros/__init__.py | 69aa0dcd05e50e77d04503ebd2e77f689637d53d | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/local-scratch/xlv/catkin_ws/src/geometry2/tf2_... | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
645d2e4c75fec3b66e9259390978440dbdf224ed | 3441669466b82df5c357412d9423e174a1e6a9c7 | /setup.py | 9104c5c45f5bc47fb9a434c230602f000b5c993a | [
"MIT"
] | permissive | icetemple/genrss | a725b66dc67ea2785a6ee70229921d45ab57fb30 | ddc2724684c96b3eaac9820cb82de7ddbcbddda8 | refs/heads/master | 2022-10-06T10:55:38.873579 | 2022-09-27T12:26:21 | 2022-09-27T12:26:21 | 198,481,237 | 17 | 1 | MIT | 2022-09-27T12:26:22 | 2019-07-23T17:48:39 | Python | UTF-8 | Python | false | false | 635 | py | from setuptools import setup
with open('README.md', 'r') as f:
readme = f.read()
if __name__ == '__main__':
setup(
name='genrss',
version='1.0.6',
author='Dmitriy Pleshevskiy',
author_email='dmitriy@ideascup.me',
description='RSS feed generator for python',
lo... | [
"dmitriy@ideascup.me"
] | dmitriy@ideascup.me |
c05b08f80244954da7bfd5b85a371abc60184769 | 723b67f6a8b202dc5bb009427f60ffd9f185dba8 | /build/ros_arduino_bridge/ros_arduino_msgs/catkin_generated/pkg.installspace.context.pc.py | 6549f05a69eed882ecc868edef3bb97aa159f598 | [] | no_license | Dhawgupta/catkin_ws | 15edced50d3d69bf78851315658646cd671eb911 | edab645f1a94c83925836b36d38ecf2ad8f42abc | refs/heads/master | 2021-01-19T10:56:09.954495 | 2017-04-11T09:52:20 | 2017-04-11T09:52:20 | 87,917,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/dawg/catkin_ws/install/include".split(';') if "/home/dawg/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_... | [
"dhawal.cs15@iitp.ac.in"
] | dhawal.cs15@iitp.ac.in |
d8dc0ac5d39f9570627b88d136d4236c42105090 | 169b85e868816faa7b474507c414062e4ffce573 | /geo/views/user.py | 570634e67d145f0187e2f263a709b1c4f4a24dfd | [
"MIT"
] | permissive | hariharshankar/pygeo | c7bfb8cfdbfe94a1f2830dfcf5bd55a79c9dbd1a | f87b5f117dd35e8c6491d1c627cc795e416df6f9 | refs/heads/master | 2020-12-29T02:31:44.260477 | 2017-10-28T18:36:33 | 2017-10-28T18:36:33 | 17,834,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | import flask
from geo.core.geo_user import GeoUser
db = None
mod = flask.Blueprint("user", __name__)
@mod.route("/login", endpoint='login', methods=['POST'])
def login():
request = flask.request
session = flask.session
username = request.form['username']
password = request.form['password']
pri... | [
"hariharshankar@gmail.com"
] | hariharshankar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.