blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09e0f33fc46c60ce0164099178eab420dc176433 | 2f2f9b64d43cb3c98d4c338be07374aae0e64db9 | /lianjia/spiders/lianjia.py | a5ab565d0d8443091159c5fd225578c91526b4f5 | [] | no_license | RayZhanag/real-estate-study | a6c079f1d83b993770ee0b4d91f2ea79897a92c9 | 778a38bd4c14a07152d235eb1060e1a0bd98e3a4 | refs/heads/master | 2021-04-15T10:44:05.736710 | 2018-03-26T15:18:53 | 2018-03-26T15:18:53 | 126,726,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,813 | py | # This package will contain the spiders of your Scrapy project
#
# Please refer to the documentation for information on how to create and manage
# your spiders.
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from sc... | [
"13671777883@139.com"
] | 13671777883@139.com |
bf79ce36fe3ae9c2d2fbadf3e22fb7a24c753613 | d6f65889a92d5dfb77fec7abf362307d738b876e | /Labcli/App/examenes/forms.py | d4eeac9fe60626107495aa4fb620ef13bfacb7b7 | [] | no_license | astridlisarm1995/LABCLI | bd8c7c21b3712a8b52f4f08f26e0352516197500 | ab1b904a377843f9d423614fc2d8e70040237cb3 | refs/heads/master | 2020-06-03T04:51:31.120123 | 2019-06-12T02:41:39 | 2019-06-12T02:41:39 | 191,445,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | from django import forms
from App.examenes.models import Examenes
class ExamenForm(forms.ModelForm):
class Meta:
model = Examenes
fields = [
'nombre',
'tipo',
'precio',
'precio_laboratorio',
'rango',
]
labels = {
... | [
"astrid.rodriguez15@gmail.com"
] | astrid.rodriguez15@gmail.com |
ae794f51c213d3b803cc088b8c557a9b5dd56371 | b7b7342a7369117cb98de55f697153e875eecbbc | /example.py | 098d2dcfbcfa00aab247a6a943daee18f895b5ad | [
"MIT"
] | permissive | zzygyx9119/nglesspy | 953a3ab084b7df72df522076b3cd094e4a02ba12 | 3cfa28ea8fe2fdc3c08ac80a5949844544489cc9 | refs/heads/master | 2022-11-18T20:38:45.927728 | 2020-07-16T19:56:42 | 2020-07-16T19:57:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from ngless import NGLess
sc = NGLess.NGLess('0.0')
sc.import_('mocat', '0.0')
e = sc.env
e.sample = sc.load_mocat_sample_('testing')
@sc.preprocess_(e.sample, using='r')
def proc(bk):
bk.r = sc.substrim_(bk.r, min_quality=25)
sc.if_(sc.len_(bk.r) < 45,
sc.discard_)
e.mapped = sc.map_(e.sample,... | [
"luis@luispedro.org"
] | luis@luispedro.org |
4e9cf1128c2b20e84ccb9cb2a506b60bd1d92535 | 4d4899e54a8a97fad2039350f16c50245a4e0810 | /source/todoapp/migrations/0003_task_full_description.py | 09595c6bfdf9b7d031b76dd1d3c8ead3665d189d | [] | no_license | UuljanAitnazarova/python_homework_45_To_do_list | f7f4925bff987d5a13e52b48f745a4bddb72c440 | 592bd5ad8ac61f1147e7bf5ffe49f899a9a0c7cd | refs/heads/master | 2023-03-12T12:28:24.234398 | 2021-03-04T08:52:25 | 2021-03-04T08:52:25 | 341,508,360 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # Generated by Django 3.1.7 on 2021-02-26 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todoapp', '0002_auto_20210223_1242'),
]
operations = [
migrations.AddField(
model_name='task',
name='full_descriptio... | [
"u.aitnazarova@gmail.com"
] | u.aitnazarova@gmail.com |
d22b1ae66a79c405434e7bf49bdaf4f2af845bf8 | 72694df198665321ab42ef52db58ad0291f7157e | /test/conftest.py | 4e2e478e596503116653883308d6086cd517939b | [] | no_license | akshay2424/flask_jwt_auth_and_role_manage | cdc7a9ef6467107a985bd751542541877afd2a33 | 10db863f2437f375bdf456bff5af9bd615b64be4 | refs/heads/master | 2023-08-16T13:31:13.319032 | 2021-09-27T15:29:03 | 2021-09-27T15:29:03 | 409,444,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import pytest
from app import app
@pytest.fixture
def client():
with app.test_client() as client:
yield client | [
"demo@gmail.com"
] | demo@gmail.com |
8b8fb0da9d623937349fe29a780f9a3da79a7347 | af5edf05e8895a3c3457259421b83a1c1b6f5d32 | /wineGraph4.py | 5a363731d7c8d4e7da6cac5ee2952909fb9c9443 | [] | no_license | sirawit-suk/Probstat-Analysis-Graphs | 513a2186f2a9d302243d657577ab71ee5b777266 | 3730d3063d5b81647ed57438e72263c2e4698214 | refs/heads/main | 2023-07-07T00:51:19.282573 | 2021-08-10T10:37:51 | 2021-08-10T10:37:51 | 330,959,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | import matplotlib.pyplot as plt # plot graphs
import pandas # colection for data
from scipy import stats
import math
import statistics as stc
# Init Style of Graph and Insert table of data in form of columns
plt.style.use('bmh')
columns = pandas.read_csv('testgraphredwine.csv')
# All... | [
"popeye-zz@hotmail.com"
] | popeye-zz@hotmail.com |
da12d3c31d5a691fa0565cbeff1fae9483d8d99b | 93e9bbcdd981a6ec08644e76ee914e42709579af | /devide_and_conquer/315_Count_of_Smaller_Numbers_After_Self.py | e99b6ea88b209f2414fdefe3366889f075cf4bbd | [] | no_license | vsdrun/lc_public | 57aa418a8349629494782f1a009c1a8751ffe81d | 6350568d16b0f8c49a020f055bb6d72e2705ea56 | refs/heads/master | 2020-05-31T11:23:28.448602 | 2019-10-02T21:00:57 | 2019-10-02T21:00:57 | 190,259,739 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://leetcode.com/problems/count-of-smaller-numbers-after-self/description/
You are given an integer array nums and you have to return a new counts array.
The counts array has the property where counts[i] is the number
of smaller elements to the right of nums[i].
... | [
"vsdmars@gmail.com"
] | vsdmars@gmail.com |
818ff902546aedaae8aaab629c81c725f1bf8b91 | a94e8b83bb2a4ccc1fffbd28dd18f8783872daab | /Mock CCC/Mock CCC19S2 Pusheens Puzzle Present.py | aec48957b55fe819a6e6614885614ac56d2f56d4 | [] | no_license | MowMowchow/Competitive-Programming | d679c1fe2d7d52940dc83a07dc8048922078704e | 0ec81190f6322e103c2ae0ad8c3935bd4cdfff46 | refs/heads/master | 2022-03-03T03:01:03.383337 | 2022-02-17T07:27:45 | 2022-02-17T07:27:45 | 184,678,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import sys
import math
n = int(sys.stdin.readline())
grid = [[int(x) for x in sys.stdin.readline().split()] for x in range(n)]
counter = 1
sublength = 0
for row in grid:
for curr in range(n-1):
if row[curr] != row[curr+1] - 1:
sublength += 1
break
#counter += 1
print(s... | [
"darkstar.hou2@gmail.com"
] | darkstar.hou2@gmail.com |
90696fe9cb8a128fc2377816dad24500a6a4d2f0 | d71a761ec8b1fcd96f84c9d333a44a50d493e161 | /carts/migrations/0004_auto_20200416_1810.py | 3401dec342287a80268e45941203515897a5959a | [] | no_license | rahulchoudhary1602/Ecommerce | b1dd78511c47b1a0bd1deed2e72b433ecf27e94e | da14e22195345808be6e3343b1db5ff3adc2b221 | refs/heads/master | 2023-05-29T14:03:50.958774 | 2021-06-19T13:54:22 | 2021-06-19T13:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # Generated by Django 2.2 on 2020-04-16 12:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('carts', '0003_auto_20200416_1424'),
]
operations = [
migrations.RemoveField(
model_... | [
"noreply@github.com"
] | noreply@github.com |
f82e3187de7f76ab1c1c5f060f89757b8d7032b4 | 4fb351c236aa040ba36b993c74df5d2c30f9123c | /comp_vi.py | 1d4eb89b89652d1f58d6d8d80b65f68bb0dc78d6 | [] | no_license | Y-Lou/mathematica_-Python-_- | 135dfb968dccbbcadb42c8d1c9b245c1355a88b7 | d154f6a5d1c0107f80b7f3a53367458e357b83d5 | refs/heads/main | 2023-01-21T21:02:40.868675 | 2020-11-24T11:49:05 | 2020-11-24T11:49:05 | 315,611,511 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,104 | py | """
计算vi的模块
"""
gradConv = 100
IXprint = np.argsort(np.array(JS.quzhi_1(eHF,Vspc)))
EIter = [0]*doTurns
timeIter = [0]*doTurns
abA1 = JS.Ab_All_1(Omega)
abA2 = JS.Ab_All_2(Omega)
time_start=time.time()
Iter = doTurns
for i in range(Iter):
print("iter = %d" % int(i+1))
print("gradConv = %d" % gradCo... | [
"noreply@github.com"
] | noreply@github.com |
6b2129d4540d341a6410c27b6999df41db836415 | db6a43df3afa3465bb4aa5762c21ff27ad6c25eb | /miscut/view/admin.py | 9db3fe685cb6cfb0350c66f143e8888a44dff4fd | [] | no_license | oe1rfc/miscut | 3354f317781d3b37f1711a62ec897ec861a8bff6 | f9362bc3f07987dfc62c7795163e24bbbe9f188b | refs/heads/master | 2021-06-13T19:12:24.030431 | 2020-01-06T17:41:00 | 2020-01-06T17:42:57 | 154,849,614 | 0 | 0 | null | 2021-03-30T22:39:35 | 2018-10-26T14:45:28 | JavaScript | UTF-8 | Python | false | false | 3,898 | py | from flask_admin.actions import action
from flask import flash
from ..view import AdminView
from ..model import db
class AdminSegmentView(AdminView):
form_columns = ('event', 'videofile', 'segment_id', 'version', 'start', 'length', 'transition', 'transition_length', 'assigned')
column_list = ('event', 'video... | [
"spam-datacop@wireloss.net"
] | spam-datacop@wireloss.net |
3a9b17ad1550f22fccfe2def2dfcb461b3b451ec | 9dabd230e184424b0196e81a27ef39a762f7f9a3 | /pyramid_scheduler/__init__.py | 513b13bbbbe0a7f6caa77a5de25259ac51ffaa8e | [
"MIT"
] | permissive | cadithealth/pyramid_scheduler | be885af3cd64a649606e7b3cca5747e26a4aa49c | 65068f008336e1c03855c65e7fb8196e546b7998 | refs/heads/master | 2023-05-27T00:21:43.029673 | 2019-03-05T18:33:06 | 2019-03-05T18:33:06 | 9,380,656 | 14 | 6 | NOASSERTION | 2020-12-10T10:31:20 | 2013-04-11T21:25:01 | Python | UTF-8 | Python | false | false | 1,290 | py | # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# file: $Id$
# lib: pyramid_scheduler
# auth: Philip J Grabner <grabner@cadit.com>
# date: 2013/04/15
# copy: (C) Copyright 2013 Cadit Inc., see LICENSE.txt
#---------------------------------------------------------... | [
"pjg.github@ubergrabner.net"
] | pjg.github@ubergrabner.net |
8416f8f37f3a335de397a0cc3265c7f2f3f99373 | 09e22c1ad37d4a36833f51ced9a1dc2e0bfff19d | /app.py | a4842876c24707dde48635850f5d3a2e6d678ba5 | [] | no_license | happylusn/edopy | 6fcd3d35bfc92e54465780641eb36bc6bcbebbb4 | 4951dab7cae9eb453e4198d70a7d844770678322 | refs/heads/main | 2023-02-05T09:11:34.044041 | 2020-12-27T02:21:16 | 2020-12-27T02:21:16 | 321,282,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import os, logging
from aiohttp import web
from core.orm2 import create_pool, table, Model, IntegerField, StringField
from core.coroweb import add_routes, add_static
from config import configs
from core.function import init_jinja2
logging.basicConfig(level=logging.INFO)
@web.middleware
async def middleware1(request,... | [
"happylusn@163.com"
] | happylusn@163.com |
a8bf11893ca00b6dd3b2a5f68f0c44afae58e888 | 1a41cd019c77e0189700104d68e3d6c3d98bc2b8 | /Dependent_Package/User_Data.py | 09a3634986128117b9cc742370ef3fe9ad418406 | [] | no_license | Bankhead1995/SmartDoorLockSystem | 31d9c85aa48cd34222bf0333051fdb5cd8143f6c | 4c4e4d70d18ef34c47e60ca229f15ea42161f850 | refs/heads/main | 2023-04-03T09:08:49.195904 | 2021-04-10T01:45:58 | 2021-04-10T01:45:58 | 356,438,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,303 | py | import paho.mqtt.client as mqtt
from .T9 import T9_input
from .Face_Capture import capturingFace
from .Face_Trainner import trainner
from time import sleep
import os
class Usr_Data:
__userID = None
__userName = ''
__userPassCode = ''
__LCD = None
__KEYPAD = None
__BUZZER = None
__FPS = None... | [
"noreply@github.com"
] | noreply@github.com |
98109fd6134554c75c5a772f7ae93f4656ca09cf | fe67390f6cfcf26c75f821f40df5670dbb648ebf | /python/example.py | d019dc9594d4de20537fc6f067fa908819e5368f | [] | no_license | Sprinterzzj/model_deployment | a133dc5cbc35a016f7adf6d3e6399c5b271a090f | 4ca4e270787e6dccac37e53f18c67aa50c4946a0 | refs/heads/master | 2022-12-25T02:20:43.392058 | 2020-09-27T10:36:28 | 2020-09-27T10:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from python_model import python_model
import numpy as np
model = python_model(model_path='../model/saved_pb/tensorflow.pb')
# 读取数据
f = np.load('../model/data/mnist.npz')
x_test, y_test = f['x_test'], f['y_test']
x_test = np.reshape(x_test, [-1, 784])
output=model.inference(x_test)
print(output.astype(np.int32))
| [
"gdyshi@126.com"
] | gdyshi@126.com |
dbc6452150f8f06e22b66ac18298bc53ce7bdf3a | 8bb4a472344fda15985ac322d14e8f4ad79c7553 | /Python3-Core/src/main/prompto/runtime/WidgetField.py | 66b4317c7bea2bed240b1d845097bc99cc1af084 | [] | no_license | prompto/prompto-python3 | c6b356f5af30c6826730ba7f2ad869f341983a2d | 64bd3d97d4702cc912097d41d961f7ab3fd82bee | refs/heads/master | 2022-12-24T12:33:16.251468 | 2022-11-27T17:37:56 | 2022-11-27T17:37:56 | 32,623,633 | 4 | 0 | null | 2019-05-04T11:06:05 | 2015-03-21T07:17:25 | Python | UTF-8 | Python | false | false | 201 | py | from prompto.runtime.Variable import Variable
from prompto.type.IType import IType
class WidgetField(Variable):
def __init__(self, name: str, itype: IType):
super().__init__(name, itype) | [
"eric.vergnaud@wanadoo.fr"
] | eric.vergnaud@wanadoo.fr |
05fb3095e4e3541975be0b03e7b6156b0e09a11f | d432a453ca399e40483cb6fd6f6a9d1e73442564 | /邮件/好看点的文本邮件.py | 4e730532c6a97de8e4635d8a89c954adf20b6046 | [] | no_license | gaoaolei/yufa | cae435910dcd8d981046662d13a4c355e6af7f4d | 9b824c4d05283a293f1bc0ab2de95731e4a31988 | refs/heads/master | 2023-04-29T22:46:41.047731 | 2023-04-24T06:40:33 | 2023-04-24T06:40:33 | 168,133,180 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # 配置邮件内容
from email.mime.text import MIMEText
from email.header import Header
from_address = '853573584@qq.com'
to_address = 'gaoaolei@km.com'
mail_host = "smtp.qq.com" # 设置服务器
mail_password = "mjxnwectfmfvbfih" # 口令
message = MIMEText('这是最简单的文本邮件','plain','utf8')
message['From'] = Header('QQ高傲雷<%s>' %from_address,... | [
"853573584@qq.com"
] | 853573584@qq.com |
937dd90a1569de5fb724834c1a6a357f2a550590 | b99a1b758567f02e963becb59bbd48a2f40a94a1 | /misc/ali/c.py | 0549b318417f9b059fea909110a6e3235c10222d | [] | no_license | sharingov/workspace | 81abb1ba7347e291e36533bdb33aa8ae0c9f4411 | f346857aad20c659c29c6e5f3198c29d5409a235 | refs/heads/master | 2023-07-17T11:50:57.183949 | 2021-08-30T17:11:58 | 2021-08-30T17:11:58 | 356,619,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | n = 0
for _ in range(int(input())):
n += ord(input())
print(n)
| [
"dauletkhan.temirgaliyev@nu.edu.kz"
] | dauletkhan.temirgaliyev@nu.edu.kz |
8fe53ff0506d66c1da73533d1454e98788b42d84 | 9df71d5e3db1f427e590cf6d78077e092217aaf6 | /basket/migrations/0001_initial.py | 211e474135266dfbb69470fb6816782b2046fff1 | [] | no_license | usermuser/django_shop_example | 2fa0979ed00857ef950f4336c6974937ffb70cfc | 7fbf82c0ac80c0816d0df1ae621cec6086daaabf | refs/heads/master | 2022-09-20T08:40:39.173609 | 2020-06-03T10:25:02 | 2020-06-03T10:25:02 | 269,052,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # Generated by Django 2.1.7 on 2019-04-11 16:27
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),
('main... | [
"lwrdrstv@gmail.com"
] | lwrdrstv@gmail.com |
8c5e668d090b4e4c2959d550da347983243de985 | f2aa9bbe11233982b048c3aac5c67c906186f8e2 | /proglect/lecteur.py | 89e766fbdc14df0cf0706a422943853f0baa2a65 | [] | no_license | drasss/drasss | 5c4ff619ed103ee11d1d882d9333be3f3997967b | 5b6dde48a2dc3f8f31dcd45680f809adb60f49b9 | refs/heads/main | 2023-05-19T15:14:38.872760 | 2021-05-29T20:53:07 | 2021-05-29T20:53:07 | 372,067,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | import os.path,os,time,urllib.parse
#recuperation des noms de musiques dans un fichier txt (a cause de l'enodage UTF-8 on peut pas faire une seule commande)
#expliquant les "encoding="utf-8""
os.system("start recupmp3.bat")
time.sleep(0.5)
#lecture des noms du fichier txt dans une variable
lect=open("recup.txt","... | [
"noreply@github.com"
] | noreply@github.com |
70a552416af6b9e157994c1863a7fa3035a0ec75 | c48c4de9d221de538ac2a0e88430e4ad1c8a060c | /Python/AnalisisDeFigurasGeomtricas/main.py | cf4e02cf15c1976c77001d1d00e5013e9eac307b | [] | no_license | AlexBracamonte/Cris_Review | f95cc90f9fee819f1b4ea3c559723574e3820e91 | d7cdd3859a1e61ee212ccf975b2ec36678ff6adf | refs/heads/main | 2023-08-14T06:07:29.649469 | 2021-09-07T17:01:43 | 2021-09-07T17:01:43 | 404,043,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,746 | py | import os
import sys
from tabulate import tabulate
from math import pi
import numpy as np
from matplotlib.collections import PatchCollection
import matplotlib.pyplot as plt
import matplotlib.patches as patches
class Poligono:
def __init__(self):
self.figuras = []
self.data = []
self.dibuj... | [
"noreply@github.com"
] | noreply@github.com |
ba788017d2d6b1db9dc5278d8d661bfb68cc0d95 | 496a01c0bc8d6bd9a19349cf578b273beb1093f1 | /SendDataToMatlab.py | a67f68356037432ece0877ce4a1f58fd662f1302 | [] | no_license | BlueBirdHouse/CarND-Traffic-Sign-Classifier-Project | 927276bff16450e5458a33a72099bd5aea03d1ba | 6b6eae2367a1ef565131784a90e957df8bd007a9 | refs/heads/master | 2021-05-07T18:29:10.210453 | 2017-11-15T14:03:02 | 2017-11-15T14:03:02 | 108,790,607 | 0 | 0 | null | 2017-10-30T02:12:29 | 2017-10-30T02:12:28 | null | UTF-8 | Python | false | false | 2,055 | py | #包文件导入区
import pickle
from zipfile import ZipFile
from tqdm import tqdm
import numpy as np
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
import tensorflow as tf
import matlab.engine
#自己的包定义区
import Support
#%%数据文件导入区
FileName = './traffic-signs-data.zip'
zipf = ZipFile(FileName)
# 长生一个zip内文件名集合
fi... | [
"bluebirdhouse@icloud.com"
] | bluebirdhouse@icloud.com |
4494b2fbf7018b97ce43e9549b2011a235080f46 | 9bed0ff093b968a74faaf6046991bf5cd86c4a24 | /snifter/template.py | da7fd49594f35aa41a4ef1bf35abcebca8b3141b | [
"BSD-3-Clause"
] | permissive | jackvandrunen/snifter | e5350a7e5134aa30fa6eb9310135f90a84e3ed67 | 30dbd71b5d76841edcd327c900870855601e39d4 | refs/heads/master | 2021-05-28T02:40:47.406699 | 2014-12-25T03:35:03 | 2014-12-25T03:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | from __future__ import print_function
import sys
py3 = sys.version_info >= (3,0)
import io
import re
import os
import itertools
import functools
TEMPLATE_PATH = ['.', './views']
TEMPLATE_EXTS = ['', '.tpl', '.html']
def render(code, **kwargs):
expre = re.compile(r'<%=\s*(.*?)\s*%>', re.DOTALL)
blkre = re.... | [
"jack@fallingduck.net"
] | jack@fallingduck.net |
ab2d0f7e8d5a43526a5e8a5af4816cbc8a991582 | e8268566f1bbbb19f75fd612ec400b2d5f729f5b | /lectures/Ex.11.py | 6f43e17a579a263051e733d174c4eff14c251ad7 | [] | no_license | j-kincaid/LC101-practice-files | f52df80b5ab11ceff04b58ea0a8a8997d6270bf0 | 5a6b50c17b65a7f6239a445265c914fd3656cbd6 | refs/heads/master | 2020-04-10T14:49:25.920906 | 2018-12-10T20:34:52 | 2018-12-10T20:34:52 | 161,088,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | def sum_all(nums):
# your code here
found_first = False
total = 0
for n in nums:
if not found_first and n % 2 ==0:
found_first = True
continue
total += n
return total
print(sum_all([1,2,3,4]))
from test import testEqual
test... | [
"4j.kincaid@gmail.com"
] | 4j.kincaid@gmail.com |
191484b45d9f5be8b3b00a8c2a6d15772c38782c | abc72a2f2072ab7a5a338e41d81c354324943b09 | /tarefa11/sugestao.py | 9c645d2ab609253931239f50b72395ec34a5b090 | [] | no_license | gigennari/mc102 | a3d39fd9a942c97ef477a9b59d7955f4269b202a | fce680d5188a8dfb0bc1832d6f430cbcaf68ef55 | refs/heads/master | 2023-04-05T01:40:58.839889 | 2020-07-27T20:33:56 | 2020-07-27T20:33:56 | 354,130,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | """
Escreva um programa que, dadas duas palavras, sugere ao usuário qual será
a próxima palavra, tal que essa escolha seja baseada na probabilidade de que
essas três palavras apareçam nessa ordem em um determinado texto.
Entrada:
1ª linha - o caminho do arquivo de texto
2ª linha - sequência de pares de palavras, um p... | [
"g198010@dac.unicamp.br"
] | g198010@dac.unicamp.br |
ce0ae0062dc3d00fd5663f4b0747d7581a81659d | 733fbbac5dda7f63eb1e962a927dac321b88afd4 | /vnv/Lib/site-packages/google/cloud/dialogflow_v2/services/agents/transports/base.py | 8987cfbe7d069f849a5ae66c64eb0ba7612dd44d | [] | no_license | Kariyma/RussianPostBot | 1ad22b9a56917f6a160c44642c334544b9fc6e25 | a31a02e003a1435f62b4d1cfb36556615bc8586e | refs/heads/master | 2023-03-13T22:54:01.315194 | 2021-03-12T03:29:30 | 2021-03-12T03:29:30 | 346,217,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,494 | 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 o... | [
"mariika-sun@yandex.ru"
] | mariika-sun@yandex.ru |
c48e26b21f99b0662ed6f8fdad61ca2dc45676e3 | 8e25d54624d7f5393ebb2887368c28ec9323bab8 | /simulators/legacy/archived code/reference_src/legacy/backend/src/__main__.py | e2e7bfd6f714b28899442c9e08a01d2d022d5788 | [] | no_license | dane00a/mrover-workspace | e31f04a2ca06061b4958892d539eb14b0baac889 | 31c15cc47364ab936743ecb34bf0e9bd72f712f3 | refs/heads/master | 2020-03-30T08:29:15.415492 | 2020-02-02T19:23:01 | 2020-02-02T19:23:01 | 237,822,284 | 1 | 0 | null | 2020-02-02T19:13:19 | 2020-02-02T19:13:18 | null | UTF-8 | Python | false | false | 8,972 | py | # Hola, and welcome to the simulator
# this file contains a lot of dependencies, init stuff,
# and lcm interfacing. if you're looking for underlying
# code as to how the simulator initializes, this file
# is for you. if not, check other files
# CGI AND THREADING (as a reminder)
# Structural notes:
# So I'm thinking we... | [
"dane00a@users.noreply.github.com"
] | dane00a@users.noreply.github.com |
b6d39c4c57bb115fd600f6cd1da0dccb53670fc2 | 8421d00f78eb44cd4c463ffd1802b224401df5ca | /firstNetWork.py | 5776b51f7d16490731aea46fc29dd247bd75eb69 | [] | no_license | pntehan/study-for-tensorflow | c07307e4a73998bd96afa3eeac53b0c4fb2982e3 | 4993a4539ca23cfe4135c81418241f90d7b2343b | refs/heads/master | 2020-06-08T22:45:15.501834 | 2019-08-30T07:10:29 | 2019-08-30T07:10:29 | 193,320,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | import tensorflow as tf
from numpy.random import RandomState
# 定义全局变量
BATCH_SIZE = 8
LR = 1e-3
STEPS = 5000
# 定义变量与placeholder
w1 = tf.Variable(tf.random_normal([2, 3], stddev=1, seed=1))
w2 = tf.Variable(tf.random_normal([3, 1], stddev=1, seed=1))
x = tf.placeholder(tf.float32, shape=(None, 2), name="x-input")
y = tf.... | [
"pntehan@foxmail.com"
] | pntehan@foxmail.com |
b30fa20dc7f259c83f94f96e064066d774ee0803 | fceb14fee6be94d793620dce4f22fb15b3f041f1 | /hadoop/archive/hadoop-python-2.9.0/python/deprecated/trainingReducer1.py | 9d5d5587ca020172974c6d9803de2bb4a53984b2 | [] | no_license | cloudmesh-community/hid-sp18-405 | 1429242ff534a4dbe8e6ad0bdea04fdbc14dbc82 | 325ec661739bc4241dddf0eb3ee817bf51b8165f | refs/heads/master | 2021-09-13T20:23:26.128208 | 2018-05-03T22:39:44 | 2018-05-03T22:39:44 | 119,435,402 | 0 | 5 | null | 2018-04-24T06:54:16 | 2018-01-29T20:11:51 | Python | UTF-8 | Python | false | false | 1,261 | py | #!/usr/bin/env python
'''
trainingReducer.py
Author: Min Chen <mc43@iu.edu>
Date: 2018-04-07
Last change: 2018-04-07
The input of this file is from stdin, and is the output of trainingMapper.py
The output of this file serves as both input for testingMapper.py and
trainingMapper2.py
'''
from itertools import groupby
... | [
"min.chen.1015@gmail.com"
] | min.chen.1015@gmail.com |
2a8baba7315e41a92db6cbdea5ef52408fcb9143 | fd308ec9cb448c2b47ec4736b670ce452b70800d | /sdap/jobs/views.py | b66d02ed32f0fabf23b619815af97c5d649e5c8f | [
"MIT"
] | permissive | umr1085-irset/reproGenomicsViewer | d4d8c52fbe72a1824812d2f5a7574be7ce58f9b5 | 700bbe817596b27a05ed75a8761506c5004f340f | refs/heads/master | 2023-05-25T01:55:42.333286 | 2023-05-15T10:02:54 | 2023-05-15T10:02:54 | 219,467,036 | 0 | 4 | MIT | 2022-02-11T09:44:32 | 2019-11-04T09:46:02 | JavaScript | UTF-8 | Python | false | false | 3,463 | py | import os
from datetime import datetime
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from django.views import View
from django.shortcuts import redirect
from django.... | [
"dardethomas@gmail.com"
] | dardethomas@gmail.com |
7654c450b5dfd23743fe2bd6a5541032050b3abb | d47fbef4fabde889c1cdedcceb60df40b90625b2 | /The Unicator/Client/TestConnexion.py | e03a3523918038a4cb9484ee753c8dee94d3a01d | [] | no_license | gpiche/Projet-Exploration-2017-2018 | 459988da13e9d56be3394fa7554a941f17826d1b | 59d7a76b30769c4702a9ef20b68106c379fded7a | refs/heads/master | 2021-08-24T09:32:08.259665 | 2017-12-09T02:10:45 | 2017-12-09T02:10:45 | 108,165,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import socket
MAX_RECV = 1024 * 1024 * 512
class Connexion:
def __init__(self):
self.host = '192.168.1.103'
self.port = 50010
self.clientSocket = socket.socket()
self.connect()
def connect(self):
self.clientSocket.connect((self.host, self.port))
def send(self, tex... | [
"remikya.hellal@gmail.com"
] | remikya.hellal@gmail.com |
b26307c5e31b8ab3a89d2da60b1358d6b3f6cf7a | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/PyQt5/QtWidgets/QGraphicsObject.py | ecd995203686bcbec70e38142191c515aad5938a | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,227 | py | # encoding: utf-8
# module PyQt5.QtWidgets
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\PyQt5\QtWidgets.pyd
# by generator 1.146
# no doc
# imports
import PyQt5.QtCore as __PyQt5_QtCore
import PyQt5.QtGui as __PyQt5_QtGui
import sip as __sip
from .QGraphicsItem import QGraphicsItem
... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
b38985979aa352629fbde500dc71def53b436389 | dae40242ea990dad66e00e6dd4357bb8caeb7efc | /MOG.py | 0628bbc744641be61a4a754ca9774f14ade1f22b | [] | no_license | anexd/projeto | e9aa20d66953d7b382d674085d221238ca9c62e9 | a3ce65adb529803859f9d7564c02f0f95d5a303e | refs/heads/master | 2020-08-03T12:23:07.682155 | 2019-09-30T09:16:57 | 2019-09-30T09:16:57 | 211,751,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(0)
fgbg = cv2.bgsegm.createBackgroundSubtractorMOG()
while(1):
ret, frame = cap.read()
fgmask = fgbg.apply(frame)
cv2.imshow('frame',fgmask)
k = cv2.waitKey(30) & 0xff
if k == 27:
break
cap.release()
cv2.destroyAllWindows()
| [
"rayane_morgan@hotmail.com"
] | rayane_morgan@hotmail.com |
862bdff494b00a3d2dbf648b2ffde351f10d9483 | 5f271a8d1a7e8932bb3e1a4ca3ac410b74897380 | /vaccine_feed_ingest/ingestors/arcgis_ingest.py | 1b358e0c44d196ec6e2b12de057894a49df9070a | [
"MIT"
] | permissive | CAVaccineInventory/vaccine-feed-ingest | d3ee5fa2b165b8fb334900055f6eaf6e1d2efa9d | 48f777d24d2130c26ce071d6b62909d5ea5b97d5 | refs/heads/main | 2023-07-20T12:59:37.575426 | 2021-07-13T14:56:29 | 2021-07-13T14:56:29 | 355,024,616 | 28 | 49 | MIT | 2021-08-30T07:55:07 | 2021-04-06T01:49:34 | Python | UTF-8 | Python | false | false | 3,702 | py | #!/usr/bin/env python3
import json
from os.path import join
from typing import Optional, Sequence
import urllib3
from arcgis import GIS
from vaccine_feed_ingest.utils.log import getLogger
http = urllib3.PoolManager()
logger = getLogger(__file__)
def fetch_geojson(
service_item_id: str,
output_dir: str,
... | [
"noreply@github.com"
] | noreply@github.com |
53d65993d82dfc4255d5d92ca20acb1a2c3efe2c | 0c18fbdc2f1aaeb9ac1ef36a60071f727c76fe91 | /Badger | 84383abadfcea6ec58ff57ad8d074729888be634 | [] | no_license | bomer123/python-1 | 49a916d4048791ff9be8d9d930bdaf68cc03c380 | 1261281363ec97ff95f7130aefe6ee12a46f1667 | refs/heads/master | 2016-09-05T12:58:15.793292 | 2015-07-15T12:40:12 | 2015-07-15T12:40:12 | 39,134,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | #!/usr/bin/env python3
import colors as c
import time
count_length = 0.387
while True:
c.clear_screen()
for verse in range(5):
for badger in range(11):
print(c.yellow + 'Badger!' + c.reset)
time.sleep(count_length)
for mushroom in range(2):
print(c.magenta + 'Mushroom.' + c.reset)
time.s... | [
"learn@skilstak.com"
] | learn@skilstak.com | |
f555c688d0fc632999966fdd07767c457fa0ab21 | be12916ec075c76469946f6da2cdde4857141702 | /771_2.py | 3c283b6a4ace661e675538e93277637a7552e724 | [] | no_license | goodsosbva/algorithm | 7b2f9b1a899e43c7d120ab9d40e672be336a23d9 | 0bc44e9466d2d32a4b4e126e073badc60172da6e | refs/heads/main | 2023-08-06T19:34:40.630006 | 2021-09-20T10:34:41 | 2021-09-20T10:34:41 | 334,918,056 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | import collections
def newJewelsInStones(J: str, S: str) -> int:
freqs = collections.Counter(S) # 돌(S) 빈도 수 계산
count = 0
# 비교 없이 보석(j) 빈도 수 계산
for char in J:
count += freqs[char]
return count
jew = "aA"
stone = "aAAbbbb"
jcount = newJewelsInStones(jew, stone)
print(... | [
"noreply@github.com"
] | noreply@github.com |
0cc0ef4ebd254b2ca9ff059b20fc0e76da881cec | 7e3aa40777708ca1f972cdbe421e09be35f827fc | /DEN/DenRSU-2.py | 528c458893f3c911fb283ae06c8d8167576d343f | [
"MIT"
] | permissive | amrishAK/ITS-Simulation-Framework | 80c437085eff4c508b41fa24b3835d52debf64c5 | 3b482a542407655ee8f97e6a62bf73e97cf8265d | refs/heads/master | 2022-12-13T09:33:38.246616 | 2020-09-14T20:13:09 | 2020-09-14T20:13:09 | 295,527,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from Framework.Setup import Setup
from Framework.BehaviourAgent import BaseRsuAgent
from Framework.BroadcastHandler import BroadCaster
from Framework.CarlaVizUtil import CarlaPainter
from Framework.Decrators import rsuAgent
from Framework.Container import Container
import json
import time
import random
@rsuAgent
class... | [
"aamrish007@live.com"
] | aamrish007@live.com |
12e27a1ffb5b0c67c43f8b2c732fb638e6d2fa70 | 6b5431368cb046167d71c1f865506b8175127400 | /challenges/n-primeiros-numeros-primos/tests.py | f921a7fcdf0065d0389c1479673886c2e732c226 | [] | no_license | Insper/design-de-software-exercicios | e142f4824a57c80f063d617ace0caa0be746521e | 3b77f0fb1bc3d76bb99ea318ac6a5a423df2d310 | refs/heads/master | 2023-07-03T12:21:36.088136 | 2021-08-04T16:18:03 | 2021-08-04T16:18:03 | 294,813,936 | 0 | 1 | null | 2021-08-04T16:18:04 | 2020-09-11T21:17:24 | Python | UTF-8 | Python | false | false | 910 | py | from strtest import str_test
def eh_primo_gabarito(n):
if n == 2:
return True
if n == 0 or n == 1 or n % 2 == 0:
return False
d = 3
while d < n:
if n % d == 0:
return False
d += 2
return True
def gabarito_dos_professores(n):
encontrados = 0
i =... | [
"andrew.kurauchi@gmail.com"
] | andrew.kurauchi@gmail.com |
7e7fb4267b2f7f099864aa8fc936aaea70fc2673 | 22e5f79bf23df10948f3bb92e85c3a0ba7ba578b | /p3_classification/hc_new.py | 60869f24c3971972b87dc5c9881070b482af92ed | [] | no_license | Sanushi-Salgado/Tumor-Teller-Prediction-Module | 37a374ddf87c2f8f4a4de7a6682d04dd0c0d585d | db3c4da1f5d36ead78af77f4d9b89db8b93eda01 | refs/heads/master | 2022-12-04T02:10:30.678563 | 2020-08-24T21:46:55 | 2020-08-24T21:46:55 | 264,960,728 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,171 | py | # Author: Sanushi Salgado
import warnings
from time import time
import numpy as np
import pandas as pd
import seaborn as sns
# from evaluation.model_evaluation import print_evaluation_results
from boruta import BorutaPy
from imblearn.ensemble import BalancedBaggingClassifier
from imblearn.over_sampling import SMOTE, ... | [
"sanushisalgado@gmail.com"
] | sanushisalgado@gmail.com |
498c7a424a202f8d8629df7baa5c9d2d5e91499c | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/chrisglass-django-rulez/allPythonContent.py | a90e7aa3a09934bbd17fa7fa477a3eb695a70f59 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,902 | py | __FILENAME__ = backends
# -*- coding: utf-8 -*-
import inspect
from exceptions import NotBooleanPermission
from exceptions import NonexistentFieldName
from rulez import registry
class ObjectPermissionBackend(object):
supports_object_permissions = True
supports_anonymous_user = True
supports_i... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
42e03737a8c5e93575e7afa1338bcfa4fadacf2b | a087050b04bc1b0274ffb9de5a8ae3008da6cb2e | /size_caculate.py | 1537211a91e4ee63452ba6f4b473c96322a0aa20 | [] | no_license | jasper-cell/medical_Image_OpenCV | fd0c030821e60df6d06f6676b342a580f1a43a38 | d1ebae72d8d8a05570009a4567eb498bb46a3e5a | refs/heads/main | 2023-04-13T06:38:20.175855 | 2021-04-09T07:05:52 | 2021-04-09T07:05:52 | 356,169,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,487 | py | # import the necessary packages
from scipy.spatial import distance as dist
from imutils import perspective
from imutils import contours
import numpy as np
import argparse
import imutils
import cv2
import time
def midpoint(ptA, ptB):
return ((ptA[0] + ptB[0]) * 0.5, (ptA[1] + ptB[1]) * 0.5)
# 定义对应的命令行参数
ap = argpa... | [
"lingtaner@163.com"
] | lingtaner@163.com |
39a838b6a8b40df53319fc2da1706fdb2d4dc906 | 737cb18e9ccb67da8b3eef4cafae86bc64bca76d | /PyCharmProj/RadioWave.py | 538c32fb0f685b61ff13d77ea0a3dab4af89d624 | [
"LicenseRef-scancode-public-domain"
] | permissive | stephanieeechang/PythonGameProg | 556f7c38a356313bd07a632680dc6b8dea31b1d8 | a2cc472ec95844bbdc6d31347684db80615a997c | refs/heads/master | 2020-12-04T18:53:34.139257 | 2017-05-25T01:24:45 | 2017-05-25T01:24:45 | 66,228,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,912 | py | import sys
from PyQt5 import QtGui, QtWidgets, QtCore
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDockWidget, QHBoxLayout
import pyqtgraphdev.pyqtgraph as pt
from pyqtgraphdev.pyqtgraph import PlotWidget
import numpy as np
import time
class CosGraph(QDockWidget):
def __init__(self, parent=None):
... | [
"stephaniechang@StephanieMacBookAir.local"
] | stephaniechang@StephanieMacBookAir.local |
92fa4c4cee9bfd46c826875c760c60269d31c06f | fcdbf22231739b61bbd4da531fcacf0c6f08c4bf | /services/lasso_regression/prod.config.py | 0ba5c9b0f0b2531fae1cba7e4b5ac173809e1241 | [] | no_license | revotechUET/wi-uservice | 2a3f169a4a9735bb3167d8bef75baceab11b2a04 | 33f2ad2f0a329fc1f54153b0ebb775f2bd74d631 | refs/heads/master | 2023-04-15T14:58:36.183521 | 2023-04-07T09:39:48 | 2023-04-07T09:39:48 | 179,446,650 | 0 | 1 | null | 2022-12-08T01:51:59 | 2019-04-04T07:39:07 | Python | UTF-8 | Python | false | false | 1,939 | py | import os
import multiprocessing
bind = '0.0.0.0:80'
backlog = 2048
workers = multiprocessing.cpu_count()
worker_class = 'sync' or os.environ.get("WORKER_CLASS")
worker_connections = 1000
timeout = 30
keepalive = 2
reload = False
spew = False
daemon = False
raw_env = [
"DB_HOST="+os.environ.get("DB_HOST", "127.0... | [
"thinhlevan2015@gmail.com"
] | thinhlevan2015@gmail.com |
21720ee88c56a4728c35c27fa31a8279e9637b6d | aa3087a895f2a8f6ed489713c9f2edb6e5ae78d6 | /Docker/AI/strategies.py | 6a97396ee8e0d5974f9af6b0169f694bf8e2e23e | [] | no_license | yangboz/2017-2018-computing-thinking | 463ca863c5637008f2210b347a7c71393b5277a2 | ae0154b5785ba68c06240e0d9de6891642803089 | refs/heads/master | 2021-06-16T22:34:26.731562 | 2020-11-13T01:16:30 | 2020-11-13T01:16:30 | 93,296,144 | 11 | 6 | null | 2017-06-11T06:54:42 | 2017-06-04T07:02:59 | Python | UTF-8 | Python | false | false | 11,387 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import random
import sys
import time
import numpy as np
import gtp
import go
import utils
def sorted_moves(probability_array):
coords = [(a, b) for a in range(go.N) for b in range(go.N)]
return sorted(coords, key=lambda c: probability_array[c], revers... | [
"YoungWelle@gmail.com"
] | YoungWelle@gmail.com |
02c4056393f75166172b697deb56dd962071d06d | b17befe76d07da3df9c7928e9c6c9b617740e46d | /online_Service/application/migrations/0005_auto_20200515_1125.py | 4e594c556b5bcb47a55e41102057385c999071fa | [] | no_license | Gunashekar0619/e-commerce_website_backend | 4ed4340ce8d46389123dbcb6fb47c44ec6d203ed | 59bdd7c54c4f751d87d89a1f4412ee6281f38ad4 | refs/heads/master | 2022-12-21T11:20:15.088326 | 2020-06-06T10:41:39 | 2020-06-06T10:41:39 | 269,946,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Generated by Django 3.0.6 on 2020-05-15 05:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('application',... | [
"57127076+Gunashekar.c12@users.noreply.github.com"
] | 57127076+Gunashekar.c12@users.noreply.github.com |
a2466edecd6249559575a93468bc0b3ec0d08ad9 | 4c1b4dcc8328e8d792646ed6ed0b8d50f796c6be | /ahkl/ahkl/settings.py | 94f2e05e2c2c666f32b531b7185af51ae6fa1bbb | [] | no_license | DocNotes/docnotes-web | 124540fa33a137caccaf1926b933ae933649d1a4 | 720e9f079067ae3466debe80d12f15948e71daa4 | refs/heads/master | 2020-02-26T14:32:18.954746 | 2016-06-04T22:35:10 | 2016-06-04T22:35:10 | 60,390,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | """
Django settings for ahkl project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Bu... | [
"juliankoh13@gmail.com"
] | juliankoh13@gmail.com |
7e65e72ba93d3e951244f0e0c14637a59052a9f4 | 6a7cf44a3cdce674bd0659f81f830826caac34e1 | /Playground/playground 2.py | 559b022857c6e7657af36f253418b250309d8dae | [] | no_license | Ethansu/Random-Python | 9f1b6198968091cd3f356ad2962d0efdc455c76a | 4b1b18e1cb6c04f1195082c5d0899f476e234a55 | refs/heads/master | 2021-05-06T02:10:18.163866 | 2017-12-17T00:53:14 | 2017-12-17T00:53:14 | 114,498,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import random
def math (a):
a = (range(1,51))
print([n for n in a if n % 2 == 0 or n % 3 == 0 or n % 5 == 0])
math (a)
def add (b) :
b = random.randint(1,101)
c = (range(1,10))
if sum (c) > b:
print ("c wins")
else:
print ("b wins")
add (b)
def tara_chews_leaves (d)... | [
"jingchunsumacc@gmail.com"
] | jingchunsumacc@gmail.com |
751bbc8dc6462be795093bfde9343b74f10c4f7e | d63a6811f8ca329d09ab388e9df570858693d60e | /starwars/external/swapi.py | 7aef708503d765b19f4bdef577f3706448fa9ac5 | [] | no_license | kobuz/sw_character_explorer | 25676bfb036c9dae3acaba1c46e112b14d02f934 | 88938c952c3f35d0ff86f42ce58fe93ee6d45643 | refs/heads/master | 2022-12-28T08:36:08.676514 | 2020-09-08T07:05:05 | 2020-09-08T07:05:05 | 301,735,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from typing import Iterator, Dict
import requests
from django.conf import settings
class Client:
def __init__(self, api_url):
self.api_url = api_url
self.session = requests.Session()
def get_single(self, url):
return self.session.get(url)
def get_paginated_results(self, path):
... | [
"marcin.sokol@amsterdam-standard.pl"
] | marcin.sokol@amsterdam-standard.pl |
437161a142bd229ffdd2c81c506024a62c472dfb | b512f28468a041d42532234adc0d3316461a6f48 | /Problems/Lightbulb/main.py | 2062190169e38075bc73289978bc51a361ff30d9 | [] | no_license | skyheat47295/CoffeeMachine | c1f50941958f95fd6589b6d73b0d5a02bc1aa5ae | cc18197b0235d4b99e19be996705e2cbfcfbf271 | refs/heads/master | 2023-02-01T04:34:48.470177 | 2020-12-17T05:28:42 | 2020-12-17T05:28:42 | 293,728,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | class Lightbulb:
def __init__(self):
self.state = "off"
# create method change_state here
def change_state(self):
if self.state == 'off':
self.state = 'on'
print('Turning the light on')
elif self.state == 'on':
self.state = 'off'
print... | [
"70936076+skyheatfet@users.noreply.github.com"
] | 70936076+skyheatfet@users.noreply.github.com |
d27f485cf41cde49c338f72a26820ce51fe441b1 | 5ea006b0a5ddead889755199fd5dfd0c42c4b3fb | /algorithms/web/web_server.py | bda92daeebbc0a896dfbe87037e11ce7f44743a9 | [] | no_license | wylswz/twitter_pride_vanity | e9629749af6a385fcb3dc962df8aedb2f8e2d81d | 06990527ed392fedab44bda7628b8b0656f759d0 | refs/heads/master | 2022-11-28T23:37:17.729835 | 2019-06-11T06:24:33 | 2019-06-11T06:24:33 | 176,043,124 | 1 | 1 | null | 2022-11-22T03:33:04 | 2019-03-17T01:29:56 | Python | UTF-8 | Python | false | false | 5,268 | py | """
Maintainer: Yunlu Wen <yunluw@student.unimelb.edu.au>
Web service for machine learning models.
- Load models by instanciating ModelWrapper class
- Do predictions and return result
"""
from flask import Flask, request, jsonify
from face_detection_wrapper.wrapper import FaceDetectionWrapper, SSDWrapper
from siamese_... | [
"wylswz@icloud.com"
] | wylswz@icloud.com |
9b8c1f144c99095882b7063ecfbd996ea85ad76d | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_PolyTrend_Seasonal_Second_MLP.py | 5f171286f0c82166bee8bda1463b423ed0a90ed9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 162 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Anscombe'] , ['PolyTrend'] , ['Seasonal_Second'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
0e298ed4aa62e6c117213f2b4ca3599c7a53721e | ed45e9d9d40a77e580fce6969d6d749d5dceecdb | /cond.4.py | bf2b25502284fb3e0dbfb3663b2309c02c0499e9 | [] | no_license | shlomi77/shlomi | ffb53380f7dcbfa2400cbc7bcc585579e2fbc390 | bf21ea0202b2fed85e35a9c2296472c7fdd61dca | refs/heads/master | 2022-11-28T10:51:42.886751 | 2020-07-14T12:01:12 | 2020-07-14T12:01:12 | 279,573,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | num1= int (input("enter first number: "))
num2= int (input("enter second number: "))
num3 = num2-num1
if num3<0:
print(num3*-1)
else:
print(num3) | [
"60435684+shlomi77@users.noreply.github.com"
] | 60435684+shlomi77@users.noreply.github.com |
7d92713f9040d395e3c6e1e41acc82924c19a240 | 00a4a83470844856735efdf8d5249fce6e3f0cfb | /tools/evaluate1.py | ddc5e14f9577f3d8da9f055ff2d7d009237355cf | [
"MIT"
] | permissive | caiyancheng/DATA130050.01-Computer-Vision | 2f0296c70c2ee0fc9a8f81b606b7d4bbd0166e12 | 6ebc597c4ed96b3c59425c24a2dc81f49e49c5b0 | refs/heads/main | 2023-04-12T11:27:01.037078 | 2021-04-30T13:29:20 | 2021-04-30T13:29:20 | 358,606,293 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,475 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.insert(0, '.')
import os
import os.path as osp
import logging
import argparse
import math
from tabulate import tabulate
from tqdm import tqdm
import numpy as np
import cv2
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.d... | [
"19307140030@fudan.edu.cn"
] | 19307140030@fudan.edu.cn |
72b84609b62e01d63202d91ce2a4cecf241a1404 | e34ef37a8091ec1e09e56ca64f05137eff7ab5d5 | /blog/views.py | abec40abc377d0b8ee66aa1dba6cef3fdcda7a62 | [] | no_license | zyx124/mysite | 24d502750e98abd96316bbc2988a393437603552 | c86ef700838e9b93175ee47f4d426a4855c6e41a | refs/heads/master | 2020-06-24T07:25:08.560096 | 2019-12-18T15:48:56 | 2019-12-18T15:48:56 | 198,895,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.utils.text import slugify
from markdown.extensions.toc import TocExtension
from .models import Post, Category, Tag
import markdown
import re
def index(request):
post_list = Post.objects.all().order_by('-created_... | [
"zhaoyuxin124@gmail.com"
] | zhaoyuxin124@gmail.com |
436ccf2a85485e30cb63483d4ecbf2bbc4ceaa34 | 5c3ecd6974ebd714c42869081313614ba4f602a7 | /chapter_08/8-11_archived_messages.py | 892cc43cb0240b5730aca49379f7ac8ac7b5569e | [] | no_license | iloverugs/pcc_2e_student | fd491cb4d3c0546718554073a98386d8d7a499ec | 1c3ad17467c3d8deea9f3566b5eb66cbc6358a6d | refs/heads/main | 2023-04-13T01:17:21.164991 | 2021-04-23T01:09:23 | 2021-04-23T01:09:23 | 354,342,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # List containing series of short text messages
txt_msg_list = ['blahblahblah', 'imnotagossipbut', 'chatterchatterchatter']
snt_msgs = []
def show_messages(txt_msgs):
"""print each text message in list"""
for txt_msg in txt_msgs:
print(txt_msg)
def send_messages(txt_msgs):
""" Print each text mess... | [
"81831508+iloverugs@users.noreply.github.com"
] | 81831508+iloverugs@users.noreply.github.com |
ff74906e1d238386e472c15bcbccc2be7332b80d | 07c6d3055eda7b1ddb16ce9444166ed311ce3219 | /clioinfra/api/api.py | 10ccb10f6b4e9681ba2e04d6ad25cbc7680efb5d | [] | no_license | IISH/dpe | 4df9b0576b5419e543c61ce9ef14380ddc4b5c03 | 6509b06aa03242f450766d4cb5d8984f14146b11 | refs/heads/master | 2021-01-10T17:52:54.775316 | 2016-05-04T09:50:46 | 2016-05-04T09:50:46 | 42,994,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,817 | py | # Copyright (C) 2015-2016 International Institute of Social History.
# @author Vyacheslav Tykhonov <vty@iisg.nl>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License, version 3,
# as published by the Free Software Foundation.
#
# This pr... | [
"4tikhonov@gmail.com"
] | 4tikhonov@gmail.com |
3b6b40f5005c7370ab0320d53609d897bbb2b6db | 80e4b743e12cafaa1aea581cd42a80e9a4b6367f | /infrastructure/application/presentateurs/presentateur_dict.py | ded1eef13eb0fab9a7cf274a92a15f3fcb1fa545 | [] | no_license | sroccaserra/kata-bitcoin-watcher | cb26aba87853c928d2f79826fba536763d7b77b5 | 064c3e6e9163f854d3685d6c4d57a015aae107e6 | refs/heads/master | 2021-01-01T19:12:57.915380 | 2017-10-25T17:55:20 | 2017-10-26T17:00:54 | 98,538,271 | 0 | 1 | null | 2017-10-25T17:55:38 | 2017-07-27T13:20:18 | Python | UTF-8 | Python | false | false | 392 | py | from typing import Dict, Any
from domaine.je_presente_la_reponse import JePresenteLaReponse
class PresentateurDict(JePresenteLaReponse):
def __init__(self, courtier):
self.courtier = courtier
def est_ce_que_je_peux_acheter(self) -> Dict[str, Any]:
je_peux_acheter = self.courtier.est_ce_que_j... | [
"sroccaserra@yahoo.com"
] | sroccaserra@yahoo.com |
c2d2b5d7a681a9da5144059d9d26d2b5fce68443 | c4b7399a10b7f963f625d8d15e0a8215ea35ef7d | /225.用队列实现栈.py | 30aed3284d9d2a250a13ade1686b9a592683c1e3 | [] | no_license | kangkang59812/LeetCode-python | a29a9788aa36689d1f3ed0e8b668f79d9ca43d42 | 276d2137a929e41120c2e8a3a8e4d09023a2abd5 | refs/heads/master | 2022-12-05T02:49:14.554893 | 2020-08-30T08:22:16 | 2020-08-30T08:22:16 | 266,042,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | #
# @lc app=leetcode.cn id=225 lang=python3
#
# [225] 用队列实现栈
#
# https://leetcode-cn.com/problems/implement-stack-using-queues/description/
#
# algorithms
# Easy (64.30%)
# Likes: 158
# Dislikes: 0
# Total Accepted: 45.7K
# Total Submissions: 71.1K
# Testcase Example: '["MyStack","push","push","top","pop","empty... | [
"596286458@qq.com"
] | 596286458@qq.com |
48cecd030f9a62127ce4d77f83fc4bd909564193 | 6afca65a7ada5b5eac8450977e0ff797819e1213 | /heapSort.py | e1ba2f06e2ea1bbaad80641a0f7427e6e8ec5ce6 | [] | no_license | dyqdzh/python-sorting-algorithm | 296df4e135e78acab0f848c11aa89d99740623fe | 718956e9ffa639d913da0db2675949ec2de74315 | refs/heads/master | 2023-03-10T21:00:57.904741 | 2021-02-20T04:07:27 | 2021-02-20T04:07:27 | 340,557,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | from genRand import generateRandom
def buildMaxHeap(arr):
for i in range(len(arr)//2, -1, -1):
heapify(arr, i)
def heapify(arr, i):
left = 2*i + 1
right = 2*i + 2
largest = i
if left<arrLen and arr[left]>arr[largest]:
largest = left
if right<arrLen and arr[right]>arr[largest]:
... | [
"du@dyq.local"
] | du@dyq.local |
13c20c67cc5595d399851d61d3c799180d386400 | 5f3d65d155bbbe9bb789dfd503eec1d919c36975 | /MyGDAS/lib/dataset/GenDataset.py | efbfac5b9c57e210b97abdcbacca773a31bb57cc | [] | no_license | MartrixG/CODES | 1987d62e4a57b6f4c49eabc644f75c9cc1d0eac5 | c185f41b08df9305ca5d3e9b1f97aae7118f3281 | refs/heads/master | 2022-12-06T18:19:56.426454 | 2020-09-01T02:35:13 | 2020-09-01T02:35:13 | 202,117,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import torch
import random
from torch.utils.data import Dataset, DataLoader
from copy import deepcopy
class GenDataset(Dataset):
def __init__(self, name, src_data, train_split, valid_split, check=True):
self.name = name
self.feature = deepcopy(src_data[0])
self.label = deepcopy(src_data[1]... | [
"44332912+1171000405@users.noreply.github.com"
] | 44332912+1171000405@users.noreply.github.com |
af55b3dc1dd23f8c60139a6b3f4f4d84a9010f7e | f1cd386753ca846781a7614dc39da560767ca41a | /test29.py | ed80da4ed45a60c9446b007ac74c60279266186e | [] | no_license | nyqtofovian/py_folder | 9a0d1371620a406d00fe6002827a58bbb4d0b7ab | bbd9b74fe286cc006e7212c3b24aa0fca2fbd3db | refs/heads/master | 2023-03-10T01:34:56.079713 | 2021-02-27T01:06:59 | 2021-02-27T01:06:59 | 342,740,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def calc_tri(base = 0, height = 0):
return base * height * 0.5
res = calc_tri(50, 20)
print(res)
print(calc_tri()) | [
"neqrophobia@gmail.com"
] | neqrophobia@gmail.com |
5ae6ac367f0d37a90760c593c146b4bb56ce37ed | d8658a79dee03cf5a82ea22e627c281f6b0fe1ba | /Greendub_Flask_Project/flask_fp/posts/routes.py | 48cd9c88b2b5ea08e4cb0cb9dd4d7ae0bf65691b | [] | no_license | BiT-2/Citizen-Science-Web-App | f4a942fd8535d39b9b640655dae29052a03ce564 | 94589e746edb95ed67dd9aed5523fda010b64a24 | refs/heads/master | 2022-11-18T02:11:30.071316 | 2020-07-16T01:06:13 | 2020-07-16T01:06:13 | 280,016,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | from flask import render_template, url_for, flash, redirect, request, abort, Blueprint
from flask_login import current_user, login_required
from flask_fp import db
from flask_fp.models import Post, Image
from flask_fp.posts.forms import PostForm
from flask_fp.users.utils import save_picture_posted
posts = Blueprint('p... | [
"vighnesh@uw.edi"
] | vighnesh@uw.edi |
9cc6e234709a6d622d8926ba526193a4ea03dac5 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_conch.py | dbbe3beb5646d0d4a32b80d2eb395ec44f5e24af | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 25,140 | py | # -*- test-case-name: twisted.conch.test.test_conch -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
import os, sys, socket
import subprocess
from itertools import count
from zope.interface import implementer
from twisted.python.reflect import requireModule
cryptography = requireModule("cr... | [
"354142480@qq.com"
] | 354142480@qq.com |
ce4a1131984c113d06e94fc1e1632be08486513b | c496d925ac4ee6440503ece7d1ff7258079d9f6b | /examples/15_module_re/ex04_sh_cdp_n.py | 88e3424eced0bef7bfe5c654fa090ada4bf2a7f1 | [
"BSD-2-Clause"
] | permissive | arturiuslim/arthur_storage | 40ad1dd8885e103169ee829ac452a8910dfaada7 | ff621f1dfdb5f6513f6fe6dfa2c1a8bb6b5748fb | refs/heads/master | 2023-05-29T03:54:18.328376 | 2023-05-05T07:11:05 | 2023-05-05T07:11:05 | 233,453,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from pprint import pprint
import re
#regex = r"^(\S+) +(\S+ [\d/]+) +.+ (\S+ [\d/]+)$"
regex = r"^(\S+) *([A-Z]\S+ [\d/]+) +.+ (\S+ [\d/]+)$"
with open("sh_cdp_n_sw1.txt") as f:
for line in f:
m = re.search(regex, line)
if m:
pprint(m.groups())
| [
"arturiuslim@gmail.com"
] | arturiuslim@gmail.com |
5b3070b16354d8c0a398b356f50a55c9905eb3c5 | 88278388281957247f6be9f46a3b556ca8f94e26 | /Problems/Film/main.py | 291bf1435a604415f688ace9aad9bf13a98de311 | [] | no_license | guozhe001/Loan-Calculator | 2b2ad0218bea600935a0da9c10024fa161f6fcb4 | 9b83a4a21c9b7b0c71611dfacb09576d68ece9bb | refs/heads/main | 2023-01-01T19:16:38.638546 | 2020-10-30T07:39:47 | 2020-10-30T07:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | movie_title = input()
director_name = input()
release_year = input()
# 字符串格式化输出
print(f"{movie_title} (dir. {director_name}) came out in {release_year}")
# Fight Club (dir. David Fincher) came out in 1999
| [
"guozhe@renmaitech.com"
] | guozhe@renmaitech.com |
190f56c195b069a039efb139396d924886c96986 | dc047381dca5b0bce1e1848edfc6a63235dc4887 | /objectTracker.py | 929b24788862efa19c008b4328d9538b3323e5be | [] | no_license | phd-jaybie/opencv-projects | 8f2446ea18c5efdff2c8ab1f78616c53d40e497f | cc88008dbed219ae1e2752fe8df27bab35bc9404 | refs/heads/master | 2021-09-05T00:54:56.688213 | 2018-01-23T06:21:04 | 2018-01-23T06:21:04 | 104,173,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | import cv2
import sys
(major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.')
if __name__ == '__main__' :
# Set up tracker.
# Instead of MIL, you can also use
tracker_types = ['BOOSTING', 'MIL','KCF', 'TLD', 'MEDIANFLOW', 'GOTURN']
tracker_type = tracker_types[1]
if int(minor_ve... | [
"j.deguzman@student.unsw.edu.au"
] | j.deguzman@student.unsw.edu.au |
3e08d654f048917a2b0e628dff9d3407f41d5863 | d7d9cc992a15572460da83b7bf0336f4d65bee05 | /ZoneKiller.py | b97508058ad3d77ebe4013199bbcd6eee14296e2 | [] | no_license | toustyj/XAttacker-3.x | 462c7e19e7b1064712185342b695657d63296ceb | 576e9f0097e9c609e41ae7411b85cad001288026 | refs/heads/main | 2023-05-01T02:25:29.710971 | 2021-05-17T20:05:15 | 2021-05-17T20:05:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,802 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Ne touche pas le script -_-
#Don't Edit Logo -_-
import requests, httplib, urllib
import socket
from platform import system
import os
import sys, time
import re
import threading
from multiprocessing.dummy import Pool
from colorama import Fore
from colorama impo... | [
"50776038+chuxuantinh@users.noreply.github.com"
] | 50776038+chuxuantinh@users.noreply.github.com |
06dd6b5555c649a9e05af4e1aba0d16b729d5704 | 04164e028417ff8472b9f2bfec0ec45b0888f743 | /development/interface-pyqt/huge_0d/huge_0d.py | 73f9c7d148eb66cc4f4c236bcc06da783dbc9417 | [] | no_license | Huaguiyuan/quantum-honeycomp | c2b810ff5f5e25d41b1f0c1c1ff7ae500b04dc31 | 50deb0e59fffe4031f05094572552ca5be59e741 | refs/heads/master | 2020-03-22T19:09:58.148862 | 2018-07-08T19:51:58 | 2018-07-08T19:51:58 | 140,510,217 | 1 | 2 | null | 2018-07-11T02:20:32 | 2018-07-11T02:20:32 | null | UTF-8 | Python | false | false | 15,274 | py | #!/usr/bin/python
from __future__ import print_function
import sys
import os
import time
qhroot = os.environ["QHROOT"] # root path
sys.path.append(qhroot+"/interface-pyqt/qtwrap")
sys.path.append(qhroot+"/pysrc/") # python libraries
import qtwrap # import the library with simple wrappaers to qt4
get = qtwrap.get ... | [
"jose.luis.lado@gmail.com"
] | jose.luis.lado@gmail.com |
04029d54021ba3eb39836ff12ff18836c8ad318e | ed8a4499404adceaa64f9928870b50d7187aab25 | /parser.py | 75bcfa372cd3ee0f969b97be55beaf336ecc63da | [] | no_license | bishalthingom/football-data | b965cbc47ee7b716c58a4c0cedeaf383b9195fb0 | 743aa4d10b0e400c0ef1328f887115d6330068c6 | refs/heads/master | 2021-08-08T04:21:15.441709 | 2017-11-09T15:08:55 | 2017-11-09T15:08:55 | 110,129,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # coding: utf-8
import json
from pprint import pprint
output = open('players_data.csv','a+')
# input = 'trial.txt'
input = 'players_data.txt'
with open(input) as data_file:
data_lines = data_file.readlines()
for line in data_lines:
data = json.loads(line)
records = len(data["playerTableStats"])... | [
"bishalthingom@gmail.com"
] | bishalthingom@gmail.com |
5069b7fa589dea216ef97b476055fcf630474880 | 39dac505e0814d8f73d21576085b02e5e54d9b05 | /67.py | 4b3bbfabcd2eafad0676f05c08d42b459cf43d65 | [] | no_license | gxmls/Python_Leetcode | 4b2ce5efb0a88cf80ffe5e57a80185ca5df91af2 | 2a9bb36c5df0eaba026183a76deb677c5bd7fd2d | refs/heads/main | 2023-06-08T03:45:43.548212 | 2021-06-22T09:46:44 | 2021-06-22T09:46:44 | 362,726,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | '''
给你两个二进制字符串,返回它们的和(用二进制表示)。
输入为 非空 字符串且只包含数字 1 和 0。
示例 1:
输入: a = "11", b = "1"
输出: "100"
示例 2:
输入: a = "1010", b = "1011"
输出: "10101"
提示:
每个字符串仅由字符 '0' 或 '1' 组成。
1 <= a.length, b.length <= 10^4
字符串如果不是 "0" ,就都不含前导零。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/add-binary
著作权归领扣网络所有。商业转载请联系官方授权... | [
"noreply@github.com"
] | noreply@github.com |
482c353fff888c769db1d16590da55024c835dc4 | 85990459c439fea21e89550eb54f28f398ef2c8b | /mysite/polls/migrations/0001_initial.py | 8979cdaf252d7d1a88eb78cef6b085d725238b12 | [] | no_license | sanchit-ahuja/Django_implementation | 904040168dc7bbdef0f96d5b045a13fc0d99387c | 7c76fd3b15e2a5db53c6ec2155b5f6753d2e7554 | refs/heads/master | 2021-09-01T07:43:01.327745 | 2017-12-25T19:44:19 | 2017-12-25T19:44:19 | 111,147,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-12-16 19:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"sanchitahuja205@gmail.com"
] | sanchitahuja205@gmail.com |
0042805ba01b75f72a6d182e69b0536477c353c0 | 426377fac70f31cb99e357cdedc3140162ca3a36 | /main.py | 5adf3b25c7c504484901662acf09480f67e3c33c | [] | no_license | akaha/nlq2sparql | 0300df86840845b6070437aeb44bfb83be771c75 | 76f9163a8ccde17ade452a20bc292d97c599eab2 | refs/heads/master | 2021-09-05T19:30:26.460813 | 2017-11-30T12:37:01 | 2017-11-30T12:37:01 | 103,511,884 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,840 | py | import argparse
import copy
import json
import math
from Levenshtein import distance
import logging
import operator
import re
import string
from dbpedia import DBPedia
from utils import extractTriples, extractSelect
logging.basicConfig(filename='templates.log', level=logging.DEBUG)
class LCQuad:
def __init__(se... | [
"annkathrin.hartmann91@gmail.com"
] | annkathrin.hartmann91@gmail.com |
797fb5e4b44f2abe5c67ca7a0b9b2fba00dcd1e2 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /7_graph/经典题/置换环/amidakuji鬼脚图/1-最少的横线构造amidakuji.py | 32ff9e00794f1b88811986c870be0e27ba2b7ac0 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # 冒泡排序邻位交换 构造amidakuji的横线
from typing import List
def amidakuji(ends: List[int]) -> List[int]:
"""
冒泡排序构造amidakuji的横线
Args:
ends: 每个点最后的位置 (1-index)
Returns:
鬼脚图的横线,一共m条,从上往下表示.
lines[i] 表示第i条横线连接 line[i] 和 line[i]+1. (1-index)
"""
n = len(ends)
res ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
b90aeeaf91357ef57cadf749b97cdee83370cd58 | ad23845f6e9ffb7578c19a7b532174631339eaa8 | /articles/views.py | 02e3ca619cd93ea529d2127143ef36bec4eb9c96 | [] | no_license | Papathiam/projetvacL3 | 7163b0381c860d4088bf572077ca91f2862801af | aaddc16d53bb43d46e477fb11ff0802820657bce | refs/heads/master | 2020-03-29T19:25:39.639253 | 2018-09-25T12:37:07 | 2018-09-25T12:37:07 | 150,262,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | from django.shortcuts import render
# Create your views here.
from .ScanReseau import TestR
from .ScanPort import Test
from .ScanSystem import Test1
from .models import Articles,ArticlesForm
def show(request):
articles = Articles.objects.all()
return render(request, 'articles/show.html' , {'articles': articles... | [
"papathiame11@gmail.com"
] | papathiame11@gmail.com |
c11768871460d3631293721ef67d0260fd3b14c8 | 0f0101f875eb7e5276b6f2a4b687a621c50cfbf6 | /Board.py | 16bd710dce1b94c5b25a12cf1edf3df04e964d4f | [] | no_license | Maxwell-cmd881/Othello_python | 0133b7b532b56c32a0ea70efb3e47c6c1fb67c5f | 2006cbaaf917c46e8df37f99a77603c26e7285c2 | refs/heads/main | 2023-06-27T14:17:06.633167 | 2021-07-28T23:20:05 | 2021-07-28T23:20:05 | 390,535,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | from Chip import Chip
class Board:
BoardArray = []
def __init__(self):
self.BoardArray = [[Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_")],
[Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_"),Chip("_")],
[Ch... | [
"noreply@github.com"
] | noreply@github.com |
d9c5c465a1e726456f0258d91c27dba9bc8f31e3 | 3445d4fbc85d962235ff9036c687cf1c6061a6fc | /src/vabene/__init__.py | 0bc80208f2a5ae2b04a9673c604b99b944b302db | [
"MIT"
] | permissive | LaYeqa/vabene | c16c177c03abb10569a4ac98667165d0252e8795 | e69ffe8d8509b5ff775a8c31528f53c09d6bab7c | refs/heads/master | 2022-12-27T09:42:50.369092 | 2020-09-22T10:07:30 | 2020-09-22T10:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from .atom import * # noqa
from .bond import * # noqa
from .molecule import * # noqa
__version__ = '0.0.5'
| [
"lukasturcani93@gmail.com"
] | lukasturcani93@gmail.com |
e58cc73de9cfb624d652ce8430bdb6f81340664c | 529b4177563ee81e2c32897dccd0f4a219bbb57c | /quests/client/utilities.py | ea15eec63bb60e109524583ec81de9659a7c03d2 | [] | no_license | Zujiry/BAI5-VS | 47607aa386ccab08399ab22efa74ed5ed398a677 | adfa98686f2f92fc35159fa832e28e4f48a3700e | refs/heads/master | 2021-09-03T16:08:55.087514 | 2018-01-10T09:55:00 | 2018-01-10T09:55:00 | 110,722,985 | 0 | 3 | null | 2017-12-05T15:57:11 | 2017-11-14T17:33:21 | Python | UTF-8 | Python | false | false | 241 | py | import requests
from quests.utils import get_config
def logout(_):
exit_check(True)
def exit_check(exit):
if exit:
raise Exception('Exiting')
def divide_line():
print()
print('#################################') | [
"till.pohland@haw-hamburg.de"
] | till.pohland@haw-hamburg.de |
6b2635ba044761b70c21a0615dfe7ff99392f967 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/frameRelay_template.py | ec8c961f3acb1c4fdc24e612b525e265eee952f2 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,002 | py | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class FrameRelay(Base):
__slots__ = ()
_SDM_NAME = 'frameRelay'
_SDM_ATT_MAP = {
'Address2ByteDlciHiOrderBits': 'frameRelay.header.frameRelayTag.frameRelay.address.address2Byte.dlciHiOrderBits-1',
'Add... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
2ca81778ad75b54b1ee1312e31d2fda72511ea5a | e6cb82c67747c557e097c6d0eabba366a4e4ae38 | /1abtraction.py | 60bf3f434d0e9075bc876693f476b2121831e64e | [] | no_license | rajeshkarel/demo-python | e176f898601c89d37e85c7563fec8fe2b8adb2e4 | 8fdbf3fb7a761376aec65aa862ca341b58663fb6 | refs/heads/master | 2020-07-15T09:25:14.615926 | 2019-09-07T11:24:08 | 2019-09-07T11:24:08 | 205,532,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | class Myclass:
def __init__(self):
self.__y = 3
m = Myclass()
print(m._Myclass__y)
# Above all called name magling
| [
"rajesh.karel@gmail.com"
] | rajesh.karel@gmail.com |
d19dfa3eed0f1bc3691252d8686b954a26d90935 | 675a042d025bd1fde07a5698f70f87455b37cc77 | /Player.py | 19d3265b7b84daf0e2cd38a77804fdff9c42f1c3 | [] | no_license | NontasPapapadopoulos/tic-tac-toe | 7af31356a3038d1b2d35d56d64fca622e9ab4e23 | 9e0bb9f15425d37198d0242d3a1998b12984b8a9 | refs/heads/master | 2023-07-13T15:54:07.217309 | 2021-08-25T12:44:59 | 2021-08-25T12:44:59 | 399,815,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | class Player:
def __init__(self, mark):
self.mark = mark
def __repr__(self):
return "Player with mark " + self.mark
| [
"epameinondas.papadopoulos@ibm.com"
] | epameinondas.papadopoulos@ibm.com |
6c2e2c642c2a794300e72f27acca89653876696b | 829caaa5b382f0ff6147569fb4648ac3a44369d1 | /BlueScore.py | 9cf4beb834c80554b04d4d6472e7743306f8c3dc | [] | no_license | dani0f/Validador-para-GANS-de-texto | f92e7b0adcfeb528b4c2af4e83fa1e6ecb267ad3 | c42458fe60bbcea81a5c49fd436949d0dc848fc3 | refs/heads/master | 2023-08-14T05:26:43.404929 | 2021-10-03T20:09:36 | 2021-10-03T20:09:36 | 411,432,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | from nltk.translate.bleu_score import sentence_bleu,SmoothingFunction
import csv
def csvToList(maxCorpusLen,minStringLen,filename):
csvList = []
with open(filename, newline='') as File:
reader = csv.reader(File)
for row in reader:
if(len... | [
"daniela.moreno1@mail.udp.cl"
] | daniela.moreno1@mail.udp.cl |
badf5c3a1f5ca3f8d0251b3d7208bfd58f21eaad | b5654252203be0ca9007169418a2638b5c591775 | /music/migrations/0001_initial.py | 0b72262c0e7986a39cf7ddbcc0e503e29a7cc6f2 | [] | no_license | Vasion05/django-app | ff578e4ebbca69b8673e6168c31a66c1b2503cd1 | abd6c6afdcfb45aa80cf1a6cfa31dec5aaa6fc62 | refs/heads/master | 2021-01-11T13:43:29.021293 | 2017-06-23T08:26:59 | 2017-06-23T08:26:59 | 95,101,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-22 05:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"vasion.cse@gmail.com"
] | vasion.cse@gmail.com |
7a2bc49b98de8f205dd372825033a0ec455c0bdb | 31c31345946b3526ffe3f1eafbc9dd7cdb48e03a | /URI Online Judge/AD-HOC/1087 - Dama/dama.py | 6411d83e961c7be5c11c04add3307d57fad39af3 | [] | no_license | felipefoschiera/Competitive-Programming | 84967cb7c6b82df5990cccea5d5b6862b9e63f65 | fe664046d0161fd6a15d4b8d8f983e77c6dc3dcb | refs/heads/master | 2022-02-23T16:07:04.326089 | 2019-10-04T19:22:22 | 2019-10-04T19:22:22 | 198,893,046 | 0 | 0 | null | 2019-07-25T19:53:36 | 2019-07-25T19:53:36 | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
while True:
try:
x1, y1, x2, y2 = map(int, input().split())
movimentos = 0
if x1 == 0 and y1 == 0 and x2 == 0 and y2 == 0:
break
if x1 == x2 and y1 == y2:
movimentos = 0
elif x1 == x2 or y1 == y2:
movimentos = 1
... | [
"felipefoschiera@googlemail.com"
] | felipefoschiera@googlemail.com |
30e92a99cf36ce5ea416cbd9f679a22208b52323 | e9dc9105d974e0f1a97fc58aac8c456e5035c641 | /Les8/pe8_2.py | 7f0e33d5737134fe39a068575cbc55fd88097233 | [] | no_license | bramvanulden/programming | c840628744ca7d429de3855cb8938b1e98b98ed3 | 86f330152041edf06d5d7cae9c617d93b7c607c5 | refs/heads/master | 2020-03-28T16:04:32.369632 | 2018-10-05T12:10:39 | 2018-10-05T12:10:39 | 148,656,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | lijst = eval(input("Geef lijst met minimaal 10 strings: "))
nieuwelijst = list()
for c in lijst:
if len(c) <= 4:
nieuwelijst.append(c)
print(nieuwelijst) | [
"42969037+bramvanulden@users.noreply.github.com"
] | 42969037+bramvanulden@users.noreply.github.com |
6f7de31aebfc2c31d20078d9797385969afa52bf | 355b01ae2aad96970828a2cce94cf46fa8ce5c70 | /CleanInventory.py | f33567510bb1cbb2a4812399e8f37669b24ec7e1 | [
"Apache-2.0"
] | permissive | hpkGgPmK/Clean_inventory | c6deab110e465e1d4cfc3a4758a4cf67473201d0 | 5391b92dc5aab7e475370bcbc5e22626c7c955c8 | refs/heads/main | 2023-07-19T08:14:28.001402 | 2021-09-10T12:09:58 | 2021-09-10T12:09:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,954 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 17 17:57:26 2020
------
-If adding more stores,channels,statuses - more filter values:
1 - need to add the value to the - save_dict,
2 - add more variables - tkinter variables and set variables
3 - add it to the FILTERS menu checkbutton - menu.ad... | [
"noreply@github.com"
] | noreply@github.com |
2c415f71901095e71620872ae59a2132fcf32c17 | 8860414fc5e9f62d190897fedf8422fb727aab65 | /cakeclub/cakepage/admin.py | d41472a28f1606c5e965fe6f3788c575b804cc6a | [] | no_license | gislenelima/cakeclub | f58cdfe80bbc2a521292e60aabc0a2cdf0a7849a | 67ee72b4dbc51c6c5cd37c23a5ce54019c82c76c | refs/heads/master | 2020-03-17T07:35:10.543008 | 2018-05-28T17:16:35 | 2018-05-28T17:16:35 | 133,404,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | from django.contrib import admin
from .models import DuplaDaVez, CakePool, Cakes, Dicas
# Register your models here.
#mostra insformações no admin no formato abaixo
@admin.register(DuplaDaVez)
class DuplaDaVezAdmin(admin.ModelAdmin):
list_display = ('id','nome_um','nome_dois','date_da_dupla')
@admin.register(Cak... | [
"vanessa@fiberlink.net.br"
] | vanessa@fiberlink.net.br |
91447ef9280413cee1102ffc1bc42da40377bca5 | 43c8f49b9a6d357435d8ac96f8769c4b7ce9ed4a | /code/geometry_plotters_2D.py | c5aabcc6f0d43b91e4614ab1e9758476f056b195 | [] | no_license | Bojarov/08_OPTI_WELD_FH | c9e3c2e47911324eeeed57846db58c9e36c5a598 | 7a06914d222253c7153a4820203dab8a0e254b38 | refs/heads/master | 2023-03-28T22:31:19.642534 | 2021-04-12T14:52:34 | 2021-04-12T14:52:34 | 335,680,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,708 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import code.geometry_builders as gb
from matplotlib import rc, font_manager
import matplotlib.patches as patches
sizeOfFont = 12
fontProperties = {'family': 'sans-serif', 'sans-serif': ['Helvetica'],
'weight': 'no... | [
"bogusz.bujnowski@gmail.com"
] | bogusz.bujnowski@gmail.com |
d7494662981ee5a36d8738b3a31e9f10a40eafe1 | f4a65213980f30daad5f6c8a8fb7103840a77e84 | /tealiumtest/pageParser.py | 8d4e86d8092a10669fb27ce9401c36a963abf4f1 | [] | no_license | Zenodia/Python | ebbf27b049322a5ccf6db4076767bf81767a2fc2 | eb94233b6879157d9fa4e68f3ac6fd5efd1e0ee0 | refs/heads/master | 2021-01-10T14:46:19.943866 | 2016-02-17T20:00:29 | 2016-02-17T20:00:29 | 51,947,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | import httpagentparser
#print httpagentparser.simple_detect(s)
#print httpagentparser.detect(s)
import json
from pprint import pprint
import itertools
import operator
from operator import itemgetter
import math
import datetime
# import tealium.json file to python and extract sample data
data = []
with open('./data/te... | [
"zenodia@MachineL"
] | zenodia@MachineL |
28f1d23c14a48f7b747382b0a39c605d7dc7eddd | 41e0ce52db01bf288248d80d42b8316c75ea89a0 | /145. Binary Tree Postorder Traversal.py | 20f51c158afe6251a2290e2a408a4d6dd6a0b141 | [] | no_license | Luca2460/Imeneo-Leetcodes-Solutions-in-Python | e088eb5f420a34c3a19e38b0c94ba5d71a44adda | 3bc3ab555ab5b33c645891012d81f3ad96d5b386 | refs/heads/master | 2023-09-01T06:53:54.785342 | 2021-09-28T20:04:52 | 2021-09-28T20:04:52 | 398,030,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def postorderTraversal(self, root: Optional[TreeNode]) -> List[int]:
# ITERATIVE #
ans = []
... | [
"64102952+Luca2460@users.noreply.github.com"
] | 64102952+Luca2460@users.noreply.github.com |
fbb709c393ef9a43eabc3318d5a3ce251fca4ed3 | b114b48e52e50932788d4ad11525e0f2376836ff | /cell_renders/cell_renderer_progress.py | fdd778d29c85170061e1d1cbebabcbf743c6ded6 | [] | no_license | necrox87/python-gtk3-demos | 7a94eaf27f6680f6506c89d3b22bf6ed86c8c33d | 8f1723157baa835236f53fe196db5eedf66c47c6 | refs/heads/master | 2021-01-25T05:27:58.632541 | 2015-08-03T17:27:12 | 2015-08-03T17:27:12 | 40,137,093 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | from gi.repository import Gtk, GObject
class CellRendererProgressWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="CellRendererProgress Example")
self.set_default_size(200, 200)
self.liststore = Gtk.ListStore(str, int, bool)
self.current_iter = self.liststo... | [
"necrox87@gmail.com"
] | necrox87@gmail.com |
e3769995216d97c609231c9536b08e0b5013ba05 | 64a4e3daf2a489226ce58b3d90bb4115cf80a065 | /ArticleSpider/utils/zhihu_login_request.py | b031d7d37304bb6038f65210a41da0bf1b85ed88 | [] | no_license | dreamkong/ArticleSpider | d1635f0e0624ff42c940be4cc8211bac53aeb24d | 9d82a1d15ef769fc4b02d8614dcbbcf05a40ed4c | refs/heads/master | 2021-09-11T15:21:29.957762 | 2018-04-09T06:22:43 | 2018-04-09T06:22:43 | 110,769,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # _*_ coding:utf-8 _*_
__author__ = 'dreamkong'
import requests
from ArticleSpider.utils import config
try:
# py2
import cookielib
except:
# py3
import http.cookiejar as cookielib
import re
session = requests.session()
session.cookies = cookielib.LWPCookieJar(filename="cookies.txt")
try:
session... | [
"dreamkong0113@gmail.com"
] | dreamkong0113@gmail.com |
0afa2a4ed820926dbd73e9559f8d0d27c22d61a6 | 25333481c3225f8481bc313dcd86baedffa0dd18 | /users/models.py | d9723bfa99e6089c552507f2be3ac7bdcb412b25 | [] | no_license | ansh-saini/file-sharing | 89d00c47be58a2bf84ab1910ccf51ec186a2abe1 | 4bb80e7e18aaff7f862ac2a14794f84f6be45e5b | refs/heads/master | 2021-06-29T02:18:21.224392 | 2019-03-23T20:16:17 | 2019-03-23T20:16:17 | 176,897,726 | 0 | 4 | null | 2020-10-20T17:37:20 | 2019-03-21T08:02:47 | Python | UTF-8 | Python | false | false | 1,048 | py | from django.db import models
from django.contrib.auth.models import User
class Document(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
file = models.FileField(upload_to='files', blank=True)
name = models.CharField(max_length=50, default='default')
def __str__(self):
return self.name
cl... | [
"caseymccray201@gmail.com"
] | caseymccray201@gmail.com |
726dc4c74212efe7c5717e5df649cc620e6fcfbd | cba30b3cc59d2264bdc8ddc3fb0d3ffc116c3f07 | /intern/admin.py | bb19bd0cbbcf7cc64acd7e8b4494263349490769 | [] | no_license | ankitm27/web_scaraper | 3d73ec5c44bd513e24e16daa63fa7f6e0d988653 | c62748841630f559569759c1435299750d920101 | refs/heads/master | 2020-12-25T14:14:05.726422 | 2016-06-07T16:11:38 | 2016-06-07T16:11:38 | 60,627,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.contrib import admin
from .models import Profile,Domain,Database
# Register your models here.
class ProfileModelAdmin(admin.ModelAdmin):
list_display = ["username", "firstname", "lastname", "gender","dob"]
class Meta:
model = Profile
class DomainModelAdmin(admin.ModelAdmin):
list_display = ["username... | [
"ankit@debian"
] | ankit@debian |
1a275190f68b9bc189ddc9096a9f624f93f9e569 | 9c58c0736f8cf996cd9835a1cec7c51f63d8546b | /neutron_lib/api/definitions/base.py | c530b150a3fc622a9ff5aa44976773ee4b70af09 | [] | no_license | itendtolosealot/odl_scale_test | d14550a681b00167e0633300d729051bc447512e | 140b2ca87c3ff5b333ac3563b6fd05ae93886ca0 | refs/heads/master | 2020-12-05T23:20:51.271658 | 2020-01-17T09:52:58 | 2020-01-17T09:52:58 | 232,274,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,009 | py | # 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 agreed to in writing, software
# d... | [
"ashvin213@gmail.com"
] | ashvin213@gmail.com |
2fb1b1fd1a6319058f7953478c369bd942b755c8 | 0f6d6d4c8cc4d5c4a669b3d5bf2308b593899fdb | /store/views.py | ed9d685ded1e9ab2f229077cd4bcaf2234f7de35 | [] | no_license | abhisljh/Tshop | e1346bc982fc6ad0867b6f87c215b9616bd560ed | a6c03028cc8724ef324e3b4242d20850e8ee8e52 | refs/heads/master | 2023-02-22T05:27:16.469239 | 2021-01-15T08:26:15 | 2021-01-15T08:26:15 | 329,845,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,455 | py | from django.shortcuts import render , redirect
from django.http import HttpResponse
from store.forms.authforms import CustomerCreationForm
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import authenticate, login as loginUser
fro... | [
"abhi.sljh@gmail.com"
] | abhi.sljh@gmail.com |
1ec3fb4cd0fabf1c806c99529f51f488eb32da09 | e19fecb69b2615fc65b5ae0aedc12b09190ea142 | /tvpdownloader/tvpdownloader.py | 7b2c23c74745ac4eb51faf110f40e45536a10526 | [
"MIT"
] | permissive | patkub/tvpdownloader | 6f63edbcab60de7b81d39e01c4365f5abb4c49c1 | 1abe7a6486ac3bc40d37c52314eebe9fa9aa43a9 | refs/heads/master | 2020-03-19T04:40:57.161123 | 2018-06-05T19:06:48 | 2018-06-05T19:06:48 | 135,853,321 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | from bs4 import BeautifulSoup
import requests
import re
import urllib.request
import shutil
import os
import filetype
from mimetypes import guess_extension
class TVPDownloader:
def __init__(self, url, dest="downloads/", quality=5):
self.url = url
self.dest = dest
# quality can be 2 to 7
self.quality... | [
"patrick@antuple.net"
] | patrick@antuple.net |
f58c187b74b26d3390d310ce5c9f46d0fae6d42e | bcf45f0e853eb7610f25d52f7f7e639ecca8e6dc | /env/lib/python3.6/hashlib.py | 5640210ff778334ab011be7b6f3c3010d5db276d | [] | no_license | CuriousCat318/my-first-blog | 6eaeee00ff37527a0a3a954e5a18fd3ce6e5a864 | 94beb647221c6d63f1ab3106ced93d631c921345 | refs/heads/master | 2020-03-26T07:54:43.822201 | 2018-08-14T11:02:13 | 2018-08-14T11:02:13 | 144,677,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | /home/blr/anaconda3/lib/python3.6/hashlib.py | [
"sharonleo318@gmail.com"
] | sharonleo318@gmail.com |
48f3945ce6fa12055d1619a17c0eaf14a3a41a62 | f508bc08786c49e8ef1c714a23782c1f83665599 | /Day5(2)/noise.py | f78bef2a10221df1c3a11bd4f75d23a486df7092 | [] | no_license | neha-swapnil/OpenCV | 3b0e787dcfbab32708ab463b1ca48f0e21d9eae0 | 0229960bee7ae5b1ac36f8b055b32e1a017d52e1 | refs/heads/master | 2020-04-25T17:57:30.830910 | 2019-03-10T14:49:39 | 2019-03-10T14:49:39 | 172,561,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import cv2
import random
import numpy as np
import matplotlib.pyplot as plt
def main():
path = "/home/neha/Desktop/jungkook/jk111.jpg"
img = cv2.imread(path, 1)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
rows, columns, channels = img.shape
p = 0.05 #5% probability of noise
output= np.zeros(img.shape, np.uint8... | [
"noreply@github.com"
] | noreply@github.com |
7b0b570f4e45b070be1107afdd0f07623726becb | 93603a9fa81bd1722ee92f29acab164c4bd82603 | /day.py | e8ce8bd806673aa3b95a95f57610d9982442b70a | [] | no_license | YOGESH-TECH/python-basic-problems | 4160f090d78cb1b11d10f774375014a2f6c27cf8 | db3b57e7732e00339788a09f2e4e1296bea70790 | refs/heads/master | 2022-03-05T12:31:23.583636 | 2019-09-05T10:35:21 | 2019-09-05T10:35:21 | 199,827,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | day=int(input("enter the day here :"))
if day==1:
print('monday')
elif day==2:
print('tue')
elif day==3:
print('wed')
elif day==4:
print('thu')
elif day==5:
print('fri')
elif day==6:
print('sat.')
elif day==7:
print('sun')
else:
print('invalid day') | [
"noreply@github.com"
] | noreply@github.com |
b1ef1d27160d7876720034008e23c14d70be8c22 | ec5a4806d6b18bf941d9b1897a5079983b988062 | /test/interview.py | 0291d9dcba03e7131a47037599593bc7954c6508 | [] | no_license | Topaz1618/Snow | c11bdceefab7c57059955f3848fcfc3b33541c8f | 036afec1e7cf999eb95cd7034bb599266fe53c34 | refs/heads/master | 2021-05-06T19:08:01.358090 | 2017-11-27T07:45:10 | 2017-11-27T07:45:10 | 112,159,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | #_*_coding:utf-8_*_
# Author:Topaz
import socket
import select
import time
sock = socket.socket(socket.AF_INET)
sock.bind(('127.0.0.1',1233))
sock.setblocking(0)
sock.listen(128)
inputs = []
inputs.append(sock) #套接字加入列表,有人发来请求inputs会发生变化
print("初始input\n %s" %inputs)
count = 0
while True:
# print("select 监听的列... | [
"topaz@163.com"
] | topaz@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.