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
a377f794e724a1d341972d78b1e2b8d8312d6fa8
1e5fcb57029daee94ac77c475af84e3b70310ced
/restaurants_api/tests.py
e7befd7ee6be1798746e5cff13dec4ec691f96fb
[ "MIT" ]
permissive
getmiranda/restaurants-rest-api
14f12b92fc33a6444d55f6e11924c8acbc3b3720
b850a59d7222af6f213e4368318427307c77db74
refs/heads/main
2022-12-26T03:56:13.554250
2020-10-12T00:54:57
2020-10-12T00:54:57
302,995,355
0
0
null
null
null
null
UTF-8
Python
false
false
4,160
py
from django.test import TestCase from rest_framework.test import APIClient from rest_framework import status from restaurants_api.models import Restaurant from restaurants_api.serializers import RestaurantSerializer def create_restaurant(**params): """Helper function to create new restaurant""" return Resta...
[ "androidgalaxys42@gmail.com" ]
androidgalaxys42@gmail.com
51849e9e5ed14906063e583aaea90f63365bc874
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/nos/v6_0_2f/mac/access_list/extended/__init__.py
67d76ccc440658bdb11c3eea1c1eb7f28e382ffa
[ "Apache-2.0" ]
permissive
b2220333/pybind
a8c06460fd66a97a78c243bf144488eb88d7732a
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
refs/heads/master
2020-03-18T09:09:29.574226
2018-04-03T20:09:50
2018-04-03T20:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,533
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ "badaniya@brocade.com" ]
badaniya@brocade.com
b199989ed05a8de78b97b2116869c141340e2b65
e2fe186cafe4a5cec7d06aaf17a30c3f5cae0553
/main.py
ade372ce062ab35d8c9ea54a17c37c09657fbd8b
[]
no_license
ShimonMimoun/Kalman_Filter_4D
47f9894776dc20b45f4d0b55135128dc1d25022f
5f1a6f6035192f37d9aae39fb68d90dff105595c
refs/heads/master
2020-12-27T16:16:25.192556
2020-02-03T13:18:05
2020-02-03T13:18:05
237,967,316
1
0
null
null
null
null
UTF-8
Python
false
false
5,531
py
import pandas as pd import numpy as np def computeRMSE(trueVector, EstimateVector): sum = 0 for i in range(len(trueVector)): sum += (trueVector[i] - EstimateVector[i]) ** 2 sum *= 1.0 / len(trueVector) return np.sqrt(sum) def computeRadarJacobian(Xvector): Px , Py , Vx , Vy = Xvector[0...
[ "noreply@github.com" ]
ShimonMimoun.noreply@github.com
22a50c0947f3d5ed6bf8add3597687591d385f37
d0abbc6476344bfc3ec1fdafc055dc3b3e30d505
/produccion/migrations/0012_auto_20210106_0946.py
c87232d1cb9d6481469233101823483e7f772bd3
[]
no_license
albor1962/Projecto-tambo
2a684e852e790ecc5f5fb9f81e7348540f8266f2
34ed1cb40a5fc4c4b94a44521de9ebfb530abec6
refs/heads/master
2023-03-02T08:33:30.160237
2021-02-04T21:35:55
2021-02-04T21:35:55
336,083,291
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
# Generated by Django 3.0 on 2021-01-06 12:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('produccion', '0011_ingesoalimentos'), ] operations = [ migrations.RenameModel( old_name='IngesoAlimentos', new_name='IngresoAl...
[ "albertofborella@gmail.com" ]
albertofborella@gmail.com
8d8bd2733afc957d19afad643b783047d417c231
b40fbe6d0012a299b0e771d2e5f0cfca3fe5be2b
/gen_bulk.py
f4fad52f721f76c134105cc0a87572a95af0cbb3
[]
no_license
olimpiadi-informatica/randomtex
e8555776daa3761b6014cdf006b9c903db7f0fb2
1da019715c44db6a51135cb02dbf5a4e52586a95
refs/heads/main
2023-04-14T15:15:25.641932
2021-04-26T13:57:47
2021-04-26T14:13:03
358,237,479
0
0
null
null
null
null
UTF-8
Python
false
false
3,612
py
#!/usr/bin/env python3 import argparse import csv import datetime import json import logging import multiprocessing.dummy as mp import os import random import shutil import tempfile import progressbar import compilation import utils progressbar.streams.wrap_stderr() logger = logging.getLogger("gen_bulk") def proc...
[ "williamdiluigi@gmail.com" ]
williamdiluigi@gmail.com
5594d738155165df35681f20b39b82b9a8c92c1f
c9ab605cdd2dbf92c9de05768ade0ecf1718be02
/03_Django/04_django_crud_review/jobs/views.py
92e5f3400502a07e8cddaa907118983276b91bed
[]
no_license
PyeongGang-Kim/TIL
42d69308cf99d2e07644b51d7636e1b64551a697
8711501d131ee7d78fdaac544dda2008adf820a1
refs/heads/master
2023-01-12T21:10:38.027946
2021-10-23T07:19:48
2021-10-23T07:19:48
195,937,990
10
1
null
2023-01-07T11:25:30
2019-07-09T05:22:45
HTML
UTF-8
Python
false
false
2,489
py
from django.shortcuts import render from .models import Job from faker import Faker from decouple import config import requests from IPython import embed from pprint import pprint # Create your views here. def index(request): return render(request, 'jobs/index.html') def past_life(request): name = request.PO...
[ "pyeonggangkim@gmail.com" ]
pyeonggangkim@gmail.com
0e32f4c1e11fab6295272d8b92b65b2977ac7faa
a54a97f55ce4b70c802ca9645ba2950ef2dfd871
/apps/node/src/app/main/database/usergroup.py
792353d80e12d9e2a423de287612c5f671d735d7
[ "Apache-2.0" ]
permissive
vvmnnnkv/PyGrid
d15ba680825b1775b9558364f956bdac979d30d2
eade799fd80c05c42f3829269e95daa7cc4c69db
refs/heads/dev
2021-08-06T16:50:17.491968
2021-03-16T07:28:28
2021-03-16T07:28:28
246,861,028
0
0
Apache-2.0
2020-03-12T19:10:41
2020-03-12T14:53:45
null
UTF-8
Python
false
false
396
py
from ... import BaseModel, db class UserGroup(BaseModel): __tablename__ = "usergroup" id = db.Column(db.Integer(), primary_key=True, autoincrement=True) user = db.Column(db.Integer, db.ForeignKey("user.id")) group = db.Column(db.Integer, db.ForeignKey("group.id")) def __str__(self): retu...
[ "noreply@github.com" ]
vvmnnnkv.noreply@github.com
e0f38337d2d43a77b7c091884203b96f3eccbc09
5b73bd29546943487582e6d68dc6ac3ea22792bf
/KafkaExample/transactions.py
00ccea40adf0074d7cad5e006b4db1e8a6479fae
[]
no_license
beosro/Kafka_Fraud_Detector
00a5f1ba91beccdcce27e4951f02155984ea5d17
3b8962a9b760d0dad47e449fb0752738534e1cea
refs/heads/main
2023-03-30T17:57:28.717664
2021-04-16T10:57:14
2021-04-16T10:57:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
from random import choices, randint from string import ascii_letters, digits account_chars: str = digits + ascii_letters def _random_account_id() -> str: """Return a random account number made of 12 characters""" return "".join(choices(account_chars,k=12)) def _random_amount() -> float: """Retu...
[ "noreply@github.com" ]
beosro.noreply@github.com
658f73dbac10be5eab3b65886b7d63510a3112a7
37f3759ca34f20d065ed62c9f892004f3468d869
/first.py
9aac5b66135641c05b038a41b8fab12fcb597621
[]
no_license
cmc5953/cmc5953
faf0d4d17714ffae10c1d9017b88734bb0f171ba
76a33411ed305ffa2b5d312699f747591e4147ef
refs/heads/master
2022-04-05T20:51:10.914382
2020-03-02T00:30:18
2020-03-02T00:30:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
print("firstfile")
[ "you@example.com" ]
you@example.com
3680c7f5212b0d2365a564b479d8a1e1ec348cea
7aaa96f03ec4575b5f73a31ad282a2aa05303f12
/ping_wave.py
3b3a1c931b24995c28861868c4091cd4d6c4f9aa
[]
no_license
galaninaa/untitled
0e003f52507da6a7d2e750ae358ec921437fe583
2427ff245e059b78f9160e67368cf2869ea02ba8
refs/heads/master
2020-03-30T19:15:32.188566
2016-08-02T13:36:24
2016-08-02T13:36:24
64,758,879
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
import wave import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as ticker import math types = { 1: np.int8, 2: np.int16, 4: np.int32 } def format_time(x, pos=None): global duration, nframes, k progress = int(x / float(nframes) * duration * k) mins, secs = divmod(progres...
[ "tutoshka@mail.ru" ]
tutoshka@mail.ru
a44309dce3f0b693be43f32fd02f4f9358316329
18f1915a46f2f4885c956876c865c1bb682d3ffb
/exam/exam_q4.py
362750daa324db8c05d633a145b5fe56913d9921
[]
no_license
gtungare/Big_Data_Analytics_with_pyspark
f93a6aa5ca2382ab749fe89573678774e471e4df
6ba74b3748ad6081c972850af3192a828637a121
refs/heads/main
2023-08-28T14:19:09.654625
2021-10-25T17:16:47
2021-10-25T17:16:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
""" Name - Gaurav Tungare Class: CS 777 - Fall 1 - Exam Date: Oct 2021 C:/Users/gaura/PycharmProjects/pythonProject/project-2018-BRFSS-arthritis.csv """ from __future__ import print_function import sys import sys from operator import add from pyspark import SparkContext from pyspark import SparkConf...
[ "noreply@github.com" ]
gtungare.noreply@github.com
4de8c1ced47b09126de7152c101af2a3ad8f5334
931d859cf005f6de117098c1dfe1f9714895c6c5
/TriangleGroup.py
fc3a3f72ec8ccf9ff15134a99ef2a55b88a9e153
[ "MIT" ]
permissive
stiter/math3d
057f24b0bd601ed13c8a73ab6e26c5190d1ac676
e7d2ebc3b61c09cb5316e2551edbda67ec8186ba
refs/heads/master
2020-05-29T09:13:57.155029
2014-03-28T12:34:24
2014-03-28T12:34:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,953
py
#!/usr/bin/python # Disable some pylint messages # pylint: disable=C0103,R0201,R0904,W0511 # C0103 : Invalid name "%s" (should match %s) # R0201 : Method could be a function # R0904 : Too many public methods # W0511 : TODO/FIXME/XXX # W0212 : Access to a protected member %s of a client class """ A simple representati...
[ "pbrennan@gmail.com" ]
pbrennan@gmail.com
e5983b51de904d0a5e081ffcd78409af395baa10
086369f526f5c44484ee3d1ba29642b823741568
/doQuery.py
02b800f1e6ac5afb35205373d80e3bbb4329d456
[]
no_license
tagdara/sofa-adapter-pentair
b61679a928070e554034302b5419163434d601e7
ec957c5d083982eb63767f6ab75d3675801d28b7
refs/heads/master
2020-12-05T06:52:03.700599
2020-01-06T06:37:25
2020-01-06T06:37:25
232,039,801
0
0
null
null
null
null
UTF-8
Python
false
false
9,080
py
#! /usr/bin/env python # -*- coding: UTF8 -*- # doQuery.py # copyright 2018, Keith P Jolley, keithpjolley@gmail.com, squalor heights, ca, usa # Thu May 31 16:47:03 PDT 2018 # sends the gateway a few commands and decodes/prints the responses. import socket import login import doMessages import decodeStatusAnswer from...
[ "github@dayton.tech" ]
github@dayton.tech
31dcb94cfd6ccec8a691f580f2fd16ec12739300
a2985534c6a2774e087391e181a678eaae5068f2
/ex4/base.py
a9c8e4fc1ff3496a63988af352395a99f701ca1a
[]
no_license
Caramdir/coursera-ml-python
46c2c7ccc6dc14a6fe63abc71a69a3f8684c796b
0489fb4910e719f5ca37929b1a19db765ddaa287
refs/heads/main
2023-04-17T20:38:30.391253
2021-05-09T13:54:17
2021-05-09T13:54:17
365,762,094
0
0
null
null
null
null
UTF-8
Python
false
false
2,316
py
from typing import * import pathlib import scipy.io import numpy as np def get_data() -> Tuple[np.ndarray, np.ndarray, int]: data = scipy.io.loadmat(pathlib.Path(__file__).parent.absolute().joinpath("ex4data1.mat")) y = data["y"].flatten() y[np.nonzero(y == 10)] = 0 # Reindex to 0-based arrays retur...
[ "clemens@koppensteiner.site" ]
clemens@koppensteiner.site
5a66a7d5a54814c8db40a6d8b1001a1e58047dcf
8ef9bb69cb3d4fa6a69e1417575a9d8d5e5bf92c
/answers.py
3a522d52553a26ebf31315ec565b696afed5b530
[ "CC-BY-4.0" ]
permissive
pyjavo/Kanji-Recognition
8a342e421c034863ee7670fb1b8e48e6ed527ecf
8a951a8ea9b2e9b0a1fd09045a227c010567c2c1
refs/heads/master
2022-12-10T17:02:34.136263
2020-09-11T07:47:30
2020-09-11T07:47:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
73,554
py
import struct import os import json import cv2 from PIL import Image import numpy as np import matplotlib.pyplot as plt mouse = [ './open_dataset/black\め_0.png', './open_dataset/black\ち_0.png', './open_dataset/black\ま_0.png', './open_dataset/black\ス_0.png', './open_dataset/black\リ_0.png', './open_dataset/black\ル...
[ "Mediotaku@gmail.com" ]
Mediotaku@gmail.com
a0f91094ca7f31f28ea56159e2b8a708e4bda704
d917251cc506953d8f8cdb4d8c6201f8113c0ad9
/bot/google.py
4d736873755ad759f96f4e6d6fbae3f528b07473
[ "MIT" ]
permissive
AntonyMoes/cyberhelper
00a3e45f763abbbea1101ec6cbcccb256b27254e
125805b19190250968bf6deef836a600e8b25af6
refs/heads/master
2022-12-13T05:23:24.966170
2020-02-19T18:23:15
2020-02-19T18:23:15
202,903,632
0
0
MIT
2022-12-08T06:02:03
2019-08-17T16:08:41
Python
UTF-8
Python
false
false
1,250
py
from urllib.parse import quote from selectolax.parser import HTMLParser import aiohttp from utils import user_agent base_query = 'https://google.com/search?q=' async def google_it(query: str, how_many: int = 1) -> str: async with aiohttp.request('GET', base_query + quote(query), headers={'User-Agent': user_agen...
[ "32247865+AntonyMoes@users.noreply.github.com" ]
32247865+AntonyMoes@users.noreply.github.com
b8f491afbe45a4da3ae7e4b97a8ecaa587c7efee
9486a46b014724a9a57c8c5a4c95950c34c2fcdb
/DjangoLevelFour/DjangoLevelFour/asgi.py
abc923f512d64849423748548ce92efa6965d84c
[]
no_license
VaheHakobyanVardani/django_project
fb0b7bafdd80ff656326ed2894d075d72cdf8d03
4d1b0cfc37689774b377e56bd28be0ef8e1e9ff2
refs/heads/master
2021-05-27T05:35:43.542898
2020-04-09T00:05:58
2020-04-09T00:05:58
254,225,729
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" ASGI config for DjangoLevelFour project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJAN...
[ "vahe717@gmail.com" ]
vahe717@gmail.com
52754cdadd5805d96569acb0f8c865f5fd61555e
275ff8171f04045114e2e03510a9582df75660e6
/Lab1/json_model.py
d5ce90d2c44de99f1fb26606bcef66d8905aaf76
[]
no_license
ChumakMike/Python
b080daae2e5743f0c6b7ec3636bf2822791af74c
e779ff90e135cf63e49b05e206e3a13b1b29897c
refs/heads/master
2020-05-27T17:40:49.926542
2019-05-26T19:58:39
2019-05-26T19:58:39
188,725,765
0
0
null
2019-05-26T19:56:50
2019-05-26T19:56:50
null
UTF-8
Python
false
false
447
py
import json def load_file(filename): with open(filename) as json_file: return json_file def load_dict(json_file): return json.load(json_file) def write_empty_file(filename): with open(filename, 'w') as json_file: json.dump({"nextId": 0, "items": []}, json_file, inden...
[ "ua.anna.arnautova@gmail.com" ]
ua.anna.arnautova@gmail.com
5270fd8590b0db70b57d80c3f96aa6bf2f4b6bb5
1ece2cecace68fb1f8879fbe705f615256bba77d
/src/web_mirror/_constants.py
b785a9cd9ad8586bd46d47fcfd619ae9946bece2
[ "MIT" ]
permissive
nuuuwan/web_mirror
7ac07d5ed2f11f2dc57bb5c3641311f08d6ffca7
52330f9869a2fbb95a9f5309d58e5d5953e6a693
refs/heads/main
2023-07-16T17:17:39.219621
2021-09-04T06:36:15
2021-09-04T06:36:15
402,963,316
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
"""Constants.""" CACHE_NAME = 'web_mirror' CACHE_TIMEOUT = 3600
[ "nuuuwan@gmail.com" ]
nuuuwan@gmail.com
6ba2743bc8cb6f9408ac0df3dd4b788c22801f8d
319f991d830b57f34479bab03c64084917308593
/rooms/migrations/0008_auto_20210421_1638.py
87ceb2673570a3c860232404496c5702a70231c3
[]
no_license
kwon1009/airbnb-clone-2021
e6a324232fa1a0424598920366eef3aa9488e94c
c866ceb14fb5cd55e182a6f9d71e89d5de3c3d97
refs/heads/main
2023-04-21T03:16:06.209912
2021-05-08T18:58:00
2021-05-08T18:58:00
357,075,264
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
# Generated by Django 2.2.5 on 2021-04-21 07:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rooms', '0007_auto_20210415_2111'), ] operations = [ migrations.AlterField( model_name='room', name='guests', ...
[ "47519135+kwon1009@users.noreply.github.com" ]
47519135+kwon1009@users.noreply.github.com
7be7946325865916e8d492c49c6cba7b59e69b5f
5bc6e835828af6910aee7142eb9c5b3c16da9c1b
/user_mgm/urls.py
06b7e8ec0cf406ec9cc47eb042708bffee3a3910
[]
no_license
fr6nco/easyatt_api
d294f5af6ca439649b51fd52256673b3d799ee4a
9eeccb5a0111d72fed5fc157896aeb734e8e597a
refs/heads/master
2020-07-30T23:14:13.772723
2016-11-21T17:55:47
2016-11-21T17:55:47
73,617,140
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
__author__ = 'thomas' from rest_framework import routers from views import UserViewSet, GroupViewSet, UserProfileViewSet user_mgm_router = routers.SimpleRouter() user_mgm_router.register(r'users', UserViewSet) user_mgm_router.register(r'groups', GroupViewSet) user_mgm_router.register(r'profiles', UserProfileViewSet) ...
[ "tomas.boros92@gmail.com" ]
tomas.boros92@gmail.com
33986a2ce2c2f8bad045ef1a8eefa67ac5a940b9
4760287945e3e90779a8181f6c4d4d71706a0436
/python/Basic-01-IF-b.py
8d0bcb493793637e0edb2284069232d41dc058a6
[]
no_license
hsakabe/mysite
8e22e3c8f345f3df932329e05f8ef4dd0779eba9
01942e58478b37004ecb0ab5c3ca42eb976bd906
refs/heads/master
2021-07-12T12:35:22.468338
2020-09-13T13:51:31
2020-09-13T13:51:31
202,481,453
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
apple_price = 200 # 変数moneyに数値1000を代入してください money = 1000 input_count = input('購入するりんごの個数を入力してください:') count = int(input_count) total_price = apple_price * count print('購入するりんごの個数は' + str(count) + '個です') print('支払い金額は' + str(total_price) + '円です') # moneyとtotal_priceの比較結果によって条件を分岐してください zankin = money - total_price if ...
[ "hsakabe@gmail.com" ]
hsakabe@gmail.com
dc81de425f76b47badf1ca41c91aa5eca3618300
35450961471c5c8f9e6170742038a4c55da0c565
/venv/Lib/site-packages/SeleniumLibrary/__init__.py
9669947e3bd8591916c47b174250ee937f3d0d47
[]
no_license
Anum-Zargar/Robot_Framework
c8c6b3f2de2e9b185a37ee6e2d92c28ab068adc0
c8ba84574be27faad22f2d6df54d7d01d71c98b7
refs/heads/master
2022-12-11T06:59:27.416401
2020-06-17T22:14:51
2020-06-17T22:14:51
273,075,629
0
1
null
2022-11-29T14:30:16
2020-06-17T20:50:29
Python
UTF-8
Python
false
false
32,079
py
# Copyright 2008-2011 Nokia Networks # Copyright 2011-2016 Ryan Tomac, Ed Manlove and contributors # Copyright 2016- Robot Framework Foundation # # 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 Licens...
[ "zargaranum@gmail.com" ]
zargaranum@gmail.com
9b1336a598319774d6c7b2b0860e876c933a8cbc
c1fe97208afe479b7ae1ee67d69866a6911564ca
/Login/profilecreate/forms.py
99f047fe4e0523e89dce7b7d71637698624e0c1c
[]
no_license
jaindhairyahere/Python_Django
a0a46c57b6ca60d0942ae181fe28ea56bb1ee948
f170a2e38b78df698a02821a454a3baea0c358a6
refs/heads/master
2020-06-18T09:17:56.364928
2019-11-02T18:34:12
2019-11-02T18:34:12
196,249,108
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
from django import forms from django.contrib.auth.admin import User from .models import Alumni from django.core import validators def check_PhoneNumber(value): if len(value) != 10: raise forms.ValidationError("Not a phone Number") class UserForm(forms.ModelForm): password = forms.CharField(widget = forms.PasswordI...
[ "jaindhairya2001@gmail.com" ]
jaindhairya2001@gmail.com
062c4a79c23472bd16daa9db27065b03ae208248
dc897e8ddf4f1e3db06aade7255120bf1bdff6b2
/ied_test.py
a1d1af3c5d61685eddbb8822ed4bf176eb207ab0
[ "Apache-2.0" ]
permissive
Tachyu/PythonCodes
ba53d48df6e6b37cc9d4736151b564cd9f207506
5d1030216bdfa435dde7fed74b1e8b5379fbd7e8
refs/heads/master
2020-03-26T08:47:35.112105
2016-07-11T02:38:42
2016-07-11T02:38:42
61,085,539
0
0
null
null
null
null
UTF-8
Python
false
false
706
py
#encoding:utf-8 import re import string import sys import os import io import urllib import urllib2 import cookielib from bs4 import BeautifulSoup import requests import getpass import pytesser from lxml import etree from pytesser import * import lxml.html.soupparser as soupparser import splinter import time import ra...
[ "icbmdf5@hotmail.com" ]
icbmdf5@hotmail.com
d2430b332b34017013284712428858e54750977c
8cee599608265b7b3df2795c154ff2211b26ef97
/southtut2/migrations/0004_hash_passwords.py
541d060f5aafd4b1f74131c7c2146856add5c623
[]
no_license
seckcoder/django-example
4d17186ee4dcd92b14d31bc406cf9462aef802d3
ca0874e5d06437f873d381e1ca81dbd32b1c9103
refs/heads/master
2016-09-05T17:52:16.232735
2012-09-01T07:45:33
2012-09-01T07:45:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." # Note: Remember to use orm['appname.ModelName'] rather than "from appname.mo...
[ "liwei@jike.com" ]
liwei@jike.com
2553bc5ec831453cc73c3732fdbffe014c7cf7ce
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/mc-animation-blender/operator_anim_export.py
503e83160184e749fd854f38b8b1ff3864169f8f
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,913
py
import bpy import math import json # ExportHelper is a helper class, defines filename and # invoke() function which calls the file selector. from bpy_extras.io_utils import ExportHelper from bpy.props import StringProperty, BoolProperty, EnumProperty from bpy.types import Operator class operator_anim_export(Operato...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
8775e6087f613879bdafb31e8d5f438e81729aab
3ce5a582e3b34015788291aecadc2f2180391fdd
/models/covidCrushers/test2.py
650fd39630d6c8b6e4f420d843d5c9d60a84371a
[]
no_license
liu-yijia/pasyndsurv
4c3585b0fb53b947cfb8caa110f29a648a321ac0
67879e1e2af858a880c931bca5f2bce73c1c5a6c
refs/heads/master
2022-11-14T05:30:41.108686
2020-06-12T18:18:51
2020-06-12T18:18:51
269,444,553
1
0
null
2020-06-12T18:18:52
2020-06-04T19:15:49
Python
UTF-8
Python
false
false
7,343
py
import matplotlib import pandas import scipy import numpy as np import sklearn import tkinter as tk from pandas import read_csv from pandas.plotting import scatter_matrix from matplotlib import pyplot as plt from sklearn.model_selection import train_test_split from sklearn.model_selection import cross_val_sco...
[ "noreply@github.com" ]
liu-yijia.noreply@github.com
a88f3beec52a6e8343ef07f1cd958832c125fd30
7cab47baf0eb97c6ee7bcaadb84808ff896739a5
/Documents/ITCS-3155/ITSC3155-finalproject-main/Website/statistics.py
cbfd2b21f548f8224467234d771f9e01dc565a7a
[]
no_license
masole523/ITSC3155-finalproject
25bded0657bd1a74c4b69e5059f2b11ee762eaa0
a20cbb0b4c5ef494f3542e667e3572cc905879d1
refs/heads/master
2023-04-21T10:05:29.678716
2021-05-09T05:37:04
2021-05-09T05:37:04
361,973,658
0
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
import pandas as pd import plotly.offline as pyo import plotly.graph_objs as go # Load CSV file from Datasets folder df = pd.read_csv('../Datasets/CoronavirusTotal.csv') # Filtering US Cases filtered_df = df[df['Country'] == 'US'] # Removing empty spaces from State column to avoid errors filtered_df = filtered_df.ap...
[ "mastincb523@gmail.com" ]
mastincb523@gmail.com
ff47ff17de96ca7ca2c8ad679d3a93463c45e489
40f79a1042df782f76a8c66b71512a687f01eb1d
/BlogProject/BlogProject/forms.py
0942a355958a0b9f98c55ff674178ddb517fb328
[]
no_license
onurhunce/BLogApp---Tests
5950dd998fe4c375dff0aee4acb9a6058d358bef
26356c0cb573f8100c15c5e3d08905219b6e973d
refs/heads/master
2021-03-12T22:35:12.818801
2015-08-26T19:33:44
2015-08-26T19:33:44
41,347,064
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class MyRegistrationForm(UserCreationForm): email = forms.EmailField(required=True) class Meta: model = User fields = ('username', 'email', 'password1', 'password2') ...
[ "onurhunce@yahoo.com" ]
onurhunce@yahoo.com
f8938e7c7df3a92df60e420a4429cb058096a7e6
4be5c172c84e04c35677f5a327ab0ba592849676
/python/data_structures/array/sll/sll.py
dbdb9af0a8277d797c590e960437f9b0ac88de97
[]
no_license
niranjan-nagaraju/Development
3a16b547b030182867b7a44ac96a878c14058016
d193ae12863971ac48a5ec9c0b35bfdf53b473b5
refs/heads/master
2023-04-06T20:42:57.882882
2023-03-31T18:38:40
2023-03-31T18:38:40
889,620
9
2
null
2019-05-27T17:00:29
2010-09-05T15:58:46
Python
UTF-8
Python
false
false
5,315
py
''' A SLL implemented using regular arrays SLL corresponding to 78 -> 10 -> 41 -> 36 -> 21 is represented below | Index | Node | Node | | | data | next | |-------+------+------| | 0 | 10 | 7 | | 1 | | | | 2 | 36 | 9 ...
[ "vinithepooh@gmail.com" ]
vinithepooh@gmail.com
7fccafdc73aafb1144a05b7b730ea0c5064c11fa
282d51aef66013b672191d92f9287a63ff8e1a7e
/book_authors_app/migrations/0001_initial.py
1674f6dba00baaf412191cff9d388975e5514d3e
[]
no_license
vvelikov1988/booksauthors
d8620df50dca008006fec89d82d950a363d920d7
0a54fea50eb419928f7ec7bf93b7e00bd7451b95
refs/heads/master
2022-11-23T13:00:02.620364
2020-07-18T22:13:15
2020-07-18T22:13:15
280,726,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
# Generated by Django 3.0.7 on 2020-07-14 03:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(a...
[ "vvelikov1988@gmail.com" ]
vvelikov1988@gmail.com
097fdc51b7b8f88218e0e7c4b16e8ff64388cb6f
af702aaa09ca0247e94ddaa2bbf44aec089b0fd3
/M5HW1_DistanceTraveled_James.py
81f8197789736f5fcfc9a97e64750e95a7db7e4f
[]
no_license
whtstang/cti110
4e8711dd1e1676bf1a7b37b36afa37ad592f2f10
c5f271a0df6be061d0308bf913ecc6b18609cf2d
refs/heads/master
2021-01-23T17:37:32.025055
2017-12-10T13:34:31
2017-12-10T13:34:31
102,770,276
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
speed = float(input('What is the speed of the vehicle in mph? ',)) print() time = int(input('How many hours has it travled? ')) print() print("Hour","\tDistance Traveled") print("--------------------------") for hour in range(1, time + 1): distance = speed * hour print(hour,"\t", distance) ...
[ "noreply@github.com" ]
whtstang.noreply@github.com
c07743d2aedbb0f9497d4c5805792898a3fae1fb
e6eba7f115aab8146c79ea063dc0322a91a13fb8
/Base.py
734ca9986fcaaceee45d919644609c46ac741c6d
[]
no_license
Joneyviana/GuiEditorImage
6c16c156088a084338671f91b01a42b48f766a45
774a8e33bddad215ad7b46e55f621852f21335c4
refs/heads/master
2021-01-11T19:10:18.303985
2017-01-18T11:04:33
2017-01-18T11:04:33
79,330,179
0
0
null
null
null
null
UTF-8
Python
false
false
14,107
py
import sys from PyQt4.QtGui import * from PyQt4.QtCore import * from ChangePixelColor import AlterPixelsColor from PIL._util import isPath from PIL import Image import cStringIO LastImages = [] def ImageContent(image): buffer = QBuffer() buffer.open(QIODevice.ReadWrite) image.save(buffer, "PNG") stri...
[ "arcistiel@gmail.com" ]
arcistiel@gmail.com
d71c9c60f03eda0db5bcef742e32902c5decbdd8
4a1553b662151d1903d314707ea8fcce9ee3c8b4
/app/modules/Language/jinjaFilters.py
9d7658587370fba80298b94130f96500cd2c766f
[ "Apache-2.0" ]
permissive
VadymHutei/ukubuka
1c150116a440eca79450b50257c48d3583ee5731
54acb5611d88487ab1808f320e56a861216a2ae2
refs/heads/master
2023-09-04T03:19:17.705098
2023-08-20T10:47:29
2023-08-20T10:47:29
285,374,103
0
0
Apache-2.0
2023-06-03T19:26:26
2020-08-05T18:35:15
Python
UTF-8
Python
false
false
371
py
from flask import g from modules.Language.Translator import Translator def _(text): translator = Translator.getInstance() return translator.get_translation(text, g.current_language.code) def view(x): if x is None: return '' if isinstance(x, bool): return 'yes' if x else 'no' retu...
[ "hutei@live.com" ]
hutei@live.com
fc218140677c128fba861bf35809bb1816831d70
ff8b2f7e9f425ac15e0f5c4f112e93e099575851
/examples/callbacks/kill.py
79a448a726982cae7b884e7884320103c60e1d43
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
dandyvica/clf
62796e7da2cf1bcedcb2bcc0535901bfdbf7926c
0774f971a973d89688a72f7283e251c7a429e946
refs/heads/master
2023-03-15T21:21:16.389788
2021-03-15T18:16:29
2021-03-15T18:16:29
257,052,271
7
0
null
null
null
null
UTF-8
Python
false
false
146
py
#!/usr/bin/python3 # simple script to kill a process by ID import os import sys print("killing PID " + sys.argv[1]) os.kill(int(sys.argv[1]), 9)
[ "dandyvica@gmail.com" ]
dandyvica@gmail.com
704b96977d187e2bf0d80d35c3d115d54febd735
dfb0952ea11066b76aa8e808f9e2a15be426ecf8
/tools/python_interface_test.py
6f32cc7008a163e2dbc5eb95eaa647317d58a260
[]
no_license
berendeanicolae/gml
10070aefc778245304401bf58cd68b1e7b9b17b1
556cf8008d12e58077c346c72d70932ca58b316c
refs/heads/master
2021-01-10T14:07:05.168676
2017-08-09T10:40:08
2017-08-09T10:40:08
36,880,125
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
import attributelist import ialgorithm import builder import sys if not len(sys.argv) > 1: print("You must pass the path of database!") sys.exit() path = sys.argv[1] """ attr = attributelist.AttributeList() attr.AddString("DbName","SimpleTextFileDB") attr.AddString("DbConnString","FileName={}".format(path)) attr.Add...
[ "gavrilut.dragos@dbee95a5-fea3-17b5-19aa-aea05da7b0b2" ]
gavrilut.dragos@dbee95a5-fea3-17b5-19aa-aea05da7b0b2
f0af40b807555df49c70d1410197dbfebf56faea
46d2bb5c6d2ea91ac8a3fda0168cc99501b1abe4
/middleware/client_test.py
23a21e179175a2942d8e6f0cd79747b4b0f65bdf
[ "Apache-2.0" ]
permissive
Time1ess/VES
2fe0a1c3371e243a377ad6a31df5d3b4651ddf4d
fe608b8ae469f81cc23b1ea30f02a1e68fac13ee
refs/heads/master
2021-01-18T21:36:21.864535
2016-06-15T12:21:42
2016-06-15T12:21:42
52,199,990
1
0
null
null
null
null
UTF-8
Python
false
false
1,793
py
#!/usr/bin/python # coding:utf-8 # Author: David # Email: youchen.du@gmail.com # Created: 2016-04-04 14:10 # Last modified: 2016-04-11 10:01 # Filename: client_test.py # Description: import socket import time import sys import select from random import randint def Check_Identity(data): if data == "VES": r...
[ "youchen.du@gmail.com" ]
youchen.du@gmail.com
e946bbe4ccbf8914231a25812913ff77829d1f28
545afb3cfe89f82b558faa5b5b28c28b8e3effce
/venv/Lib/site-packages/grpc/_plugin_wrapping.py
6c925826d6f4cb8b3a86acd5ac23cf15ebe0b1e0
[ "MIT" ]
permissive
parthpankajtiwary/keras-groundup
24ad45a4b872e6d77fff8a6f4a3a6d60124a0628
0df0844e7d9dca741fad0965761a12f72ee51f07
refs/heads/master
2022-11-09T22:34:35.716466
2019-10-01T11:01:59
2019-10-01T11:01:59
210,914,101
0
1
MIT
2022-10-25T06:47:55
2019-09-25T18:31:49
Python
UTF-8
Python
false
false
3,527
py
# Copyright 2015 gRPC authors. # # 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...
[ "parthpankajtiwary@gmail.com" ]
parthpankajtiwary@gmail.com
ef64ae302d2804d146e23cda8af9a5147e9f7291
0809acb967c8d4a426b50e3b71ed209924c215d4
/bin/pydoc3.6
ce6da8beac8559e1e35f704396ae6aacb91d9a63
[]
no_license
baoxin1100/my_note
bdb41f4a001af655a119d9d6dee1ddb085653c01
950a111f72134f1caaaa83ec03b0f590d74eac5c
refs/heads/master
2022-11-04T08:57:46.223585
2018-05-25T11:33:22
2018-05-25T11:33:22
134,817,814
0
1
null
2022-10-18T01:34:52
2018-05-25T07:11:24
Python
UTF-8
Python
false
false
109
6
#!/Users/baoxin/anaconda3/envs/mynote/bin/python3.6 import pydoc if __name__ == '__main__': pydoc.cli()
[ "baoxi1100@126.comn" ]
baoxi1100@126.comn
fb72da97ff94d8fe57c51f64cf2a0588bf5ff668
e656fc26c1db9d83cd9e31bf331fd559fa79eed7
/HW2_task1/soal1.py
b2733b1776bb96c05bef210bdab6a79f4f13ea38
[]
no_license
Hencya/HW2_TASK
3a8ac5339d5ecaa8496e83b3346138b36aeca77f
0ebdf6f07f670c8139d8bb222bf2bf3440ea13c4
refs/heads/master
2023-02-07T09:13:32.110542
2020-12-25T14:33:40
2020-12-25T14:33:40
313,668,672
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
arrBerat = [] bMin = 0 bMax = 0 def hitungMinMax(arrBerat): global bMin, bMax # Definisikan Proses Mencari Berat Maximum Dan Minimum arrBerat.sort() bMax = arrBerat[0] arrBerat.reverse() bMin = arrBerat[0] def rerata(arrBerat): total = 0 for berat in arrBerat: ...
[ "noreply@github.com" ]
Hencya.noreply@github.com
7a4ccc2502dab8ff8f1958d5055642f4c92c18ce
bd9a09a3f1a8b2b5166c540ada93cc5b30591605
/scanner/plugins/cms/piaoyou/piaoyou_six2_sqli.py
eec921a1b177ff73dbc2f527350a99da77615bf5
[ "MIT" ]
permissive
iceyhexman/onlinetools
3cb6e349fc30c515f96429abeab5fbcc430ac0cc
61f2df7ff8e6ad97ca7901728c3ab749679a2bd0
refs/heads/master
2023-08-06T19:31:51.328657
2022-10-28T04:01:38
2022-10-28T04:01:38
119,565,769
1,662
358
MIT
2023-03-31T14:34:13
2018-01-30T16:51:46
Python
UTF-8
Python
false
false
1,390
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: 票友机票预订系统6处SQL注入2(绕过) referer: http://www.wooyun.org/bugs/wooyun-2015-0116851 author: Lucifer description: multi sqli。 ''' import sys import requests class piaoyou_six2_sqli_BaseVerify: def __init__(self, url): self.url = url def run(self): ...
[ "834430486@qq.com" ]
834430486@qq.com
97375c3f3fdecd0617e4ac35de0722dba8621c7a
c566dac231c77c35b416923e8dcdc6649e8cef6d
/kennel/pet/models.py
927898b2009331dc566839d856e46c2dce4adf46
[]
no_license
mikemonte/kennel
d4afff2588bad3d2f5ad047001287ec519251790
e13b0218166e1f64c59a4d695875ad717c75d6cb
refs/heads/master
2021-08-30T16:25:24.785270
2017-12-18T16:25:32
2017-12-18T16:25:32
114,654,728
0
0
null
2017-12-18T15:08:29
2017-12-18T15:08:28
null
UTF-8
Python
false
false
6,610
py
# import bcrypt import datetime import random from django.db import models from django.contrib.auth.models import User from django.forms import Textarea from django.core.validators import MaxLengthValidator from django.utils.baseconv import base36 from django.utils import timezone from django.template.defaultfilters i...
[ "aaron.yy.lelevier@gmail.com" ]
aaron.yy.lelevier@gmail.com
09c980886b2c12d79fd3414e73666392604c709f
0eb726b988037e20a01122a8c0c04fcb8264730a
/relations/predict.py
cc1843a272f54587f6de07b992b8f6d5458ec641
[]
no_license
MPMG-DCC-UFMG/M01
1e501023340401e16e51e2e7a2021280df8f884a
5ef207caee91db2b12d3de161e08010cf418adcb
refs/heads/master
2023-06-29T22:09:36.767045
2023-04-18T14:27:36
2023-04-18T14:27:36
237,273,270
1
0
null
2023-06-12T21:33:43
2020-01-30T18:03:30
Python
UTF-8
Python
false
false
2,908
py
from relation_featurizer import RelationFeaturizer from feature_encoder import FeatureEncoder import numpy as np from sklearn.svm import SVC from name_gender import NameGenderClassifier from entity import Entity import json import sys import joblib from train import segments2features import time ngc = joblib.load("dat...
[ "fabiano.belem@a3data.com.br" ]
fabiano.belem@a3data.com.br
b236e0c11fc37eed554b3d35e1d8c803382a3255
7c15b4c4abd0a9c5c81eb26b93e6361b4e6beec8
/snacseq.py
4dc54304e8c2afb8764098faafd3ea086c601d0d
[ "MIT" ]
permissive
Ritkuli/rnapoly
09aa36710b125255e87d115416c37876fc1b55a8
035ddf0a8856d0570ccc0098efd40cd301409544
refs/heads/master
2022-06-29T05:01:34.538596
2020-05-08T11:32:59
2020-05-08T11:32:59
146,246,170
1
0
null
null
null
null
UTF-8
Python
false
false
10,567
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Generates the primary structure of a SNAC file. Author: Antti Elonen """ from lib.utils import read_snac, write_snac from tempfile import NamedTemporaryFile from shutil import copyfile, SameFileError, which import argparse, sys, subprocess, itertools, re, pkgen, os scri...
[ "antti.elonen@aalto.fi" ]
antti.elonen@aalto.fi
d0c779498c9d8e53cd888fe9dcb4e438b84509d2
9128a17938fd7f2ee28be6156752edfabc728a61
/aoc2020/src/day17/solution.py
4f50cf34abc390cfa1814cf474cbd710626339b1
[ "Apache-2.0" ]
permissive
loociano/advent-of-code
d646877164b454e6ed8f8367544ebaccf9c903c2
6f31dbb1a0ea56e3a101524167cf06a8e3c0dd19
refs/heads/master
2022-12-23T20:45:25.269868
2022-12-17T22:36:58
2022-12-17T22:36:58
225,250,156
7
1
null
null
null
null
UTF-8
Python
false
false
4,853
py
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
[ "luc@loociano.com" ]
luc@loociano.com
ee20781f732fe4bbdf9de7846c7ffd27e4af6e19
6ebd7e393e549b5ffd291ce86f43d7080b854f68
/scripts/label_image.py
86a1fbd9d5a9c79358d7dd0cb19cae7edaee1fb9
[ "Apache-2.0" ]
permissive
matthewnaranjo/eclipse_image_classification
5f6c35c8cef52c20aad9e7e61e840a417541b4dd
c83020043ea4fb586aaf33ed0384061aaa1bcb72
refs/heads/master
2021-04-27T01:12:20.377643
2018-04-02T21:39:51
2018-04-02T21:39:51
122,669,001
0
0
null
null
null
null
UTF-8
Python
false
false
7,314
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "mattnaranjo@Matts-MacBook-Air.local" ]
mattnaranjo@Matts-MacBook-Air.local
a216e6e27226559c893a544e64f063b65a73dc33
e3bbbb5018baad3cd2a2daf10e315a2e12aec974
/ichnaea/async/schedule.py
129cd2fffdcfed4b50627ec2d05e94d081463a88
[ "Apache-2.0" ]
permissive
ingle/ichnaea
5980de0532b012af7e48fa89bad7516adb84d24e
ed467538b6e61cf7c7921cd4aacb32ee039d13aa
refs/heads/master
2021-01-17T14:23:32.369530
2016-01-12T20:29:38
2016-01-12T20:29:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,476
py
""" Contains the `Celery Beat schedule <http://celery.rtfd.org/en/latest/userguide/periodic-tasks.html>`_. """ from datetime import timedelta from celery.schedules import crontab from ichnaea.models import ( CellShard, DataMap, WifiShard, ) def celerybeat_schedule(app_config): """Return the celery ...
[ "hanno@hannosch.eu" ]
hanno@hannosch.eu
6855d9d4aeb1b74d8304550ed224ea30deaaec6e
a586767465040752f7c00245ba1d1c9f901a41ec
/pastvina/migrations/0003_auto_20210307_1554.py
7a5d9fddae52c5f766b1c9c5e131c308ed34dcf9
[]
no_license
N-trophy/logika-2021-pastvina
c59bc4191c24eca776a2a3f384c6cf790b1f1f72
f6c73341105698b9207c9b86efbe5874f3f5d011
refs/heads/master
2023-04-07T16:31:18.535454
2021-04-03T15:32:08
2021-04-03T15:32:08
343,763,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# Generated by Django 3.1.6 on 2021-03-07 14:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pastvina', '0002_auto_20210306_1550'), ] operations = [ migrations.AddField( model_name='teamlivestockhistory', name...
[ "kur3cka.martin@gmail.com" ]
kur3cka.martin@gmail.com
33d8a1fd782376a2d6d82fbca4bc5cf20bd13f39
a42190f711a36387c2a4cfac90a691755bfa8945
/PAPC/models/layers/pointnet2_basic_layers.py
95f784b6a6a658ef7cdf9efce24dba7728503863
[ "MIT" ]
permissive
dreamplayer-zhang/PAPC
ae2215db50d41daf8311951476adb2e54ddb8351
befac7ae88d9a7e0c0718bc1dd27b2377c1f3066
refs/heads/main
2023-08-31T17:09:36.363337
2021-11-13T05:10:02
2021-11-13T05:10:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,733
py
import paddle import paddle.nn as nn import paddle.nn.functional as F import numpy as np def Categorical(y, num_class=16): """ 1-hot encodes a tensor """ new_y = np.eye(num_class)[y,] new_y = paddle.to_tensor(new_y).transpose([0, 2, 1]).astype('float32') return new_y def pc_normalize(pc...
[ "1564758299@qq.com" ]
1564758299@qq.com
404b968ff64eb2a52f714670ed700af2d9d39f9b
4ff884c54b46555c3f64fe1e5db4c83ff0d758f9
/scrappedcode.py
0f3aef4862a0746da7f70f3a09a830a75dd32c70
[]
no_license
thallia/scratchy
47ed6d498db7b2bf82181781acacb551a915b583
2952a90b51ecb630442950a6dd4071dd90c782b0
refs/heads/master
2021-05-02T06:06:56.340667
2018-03-15T21:34:48
2018-03-15T21:34:48
120,852,408
0
0
null
null
null
null
UTF-8
Python
false
false
2,226
py
# this is for code that I scrapped but still want to reference for later ~ thallia arg1 = messageargs[1].strip() try: arg2 = messageargs[2].strip() except Exception: arg2 = None try: arg3 = messageargs[3].strip() except Exception: ...
[ "thalliatree@gmail.com" ]
thalliatree@gmail.com
b3ebc8a27c31fa9cd57c61c836b4936981b37e07
cac36cd5a5b0b1d5ee25284c41d6cebe40f63293
/hw/hw2/hw3.py
258434932d51c02358fc300d87f7e07a6124e699
[]
no_license
sls88/python_epam_2021
ae18d76154a00aff28773961a990da07736ba76c
d2b36912189004b578af99986363775442b4a8bd
refs/heads/master
2023-04-18T16:32:10.951193
2021-05-03T17:12:11
2021-05-03T17:12:11
342,913,438
0
0
null
2021-05-03T17:12:12
2021-02-27T17:16:06
HTML
UTF-8
Python
false
false
496
py
"""Homework 2.3.""" import itertools from typing import Any, List def combinations(*args: List[Any]) -> List[List]: """Return all possible lists of K items where the first element is from the first list, the second is from the second and so one. Args: *args: sequences Returns: The retur...
[ "sls8@ya.ru" ]
sls8@ya.ru
96b53ad14c61bbeaeb9979cb5b30373e18c22a2d
cf2d9043bac56f517bc57ade42485aa014216891
/src/Doc2vecFlask(test_s).py
27373a2a348970e5e984128b9cbf22a6852bd007
[]
no_license
kookmin-sw/2018-cap1-23
0a33d084f73db1e9215ce8531cc2b2b644fbc3e0
8368f25d42f3fd250fd56a7798feafe221c0a343
refs/heads/master
2021-01-24T11:37:31.288018
2018-05-29T08:23:10
2018-05-29T08:23:10
123,095,005
0
1
null
null
null
null
UTF-8
Python
false
false
1,629
py
#-*- coding: utf-8 -*- from flask_restful import Resource,Api from flask import Flask, redirect, url_for, request, render_template,send_file import json from flask_jsonpify import jsonify import gensim import sys import imp import matplotlib.pyplot as plt from wordcloud import WordCloud imp.reload(sys) app = Flask(__n...
[ "js03110@naver.com" ]
js03110@naver.com
936b3abfafeee8de92355161e81f2cf35625caf2
2d8d7fef8f914f1b2337ee5d6a2e7c61dab9ec4e
/基础知识/1.语法基础/13.dict字典-增删改查.py
8ea74ff8b009cb80334f8c2c6f4eb2ba593b1051
[]
no_license
kuaikang/python3
bb5bb8d807c4a8818b18f0d4e598232cc73ab3af
60ca72662c7a6e718190ffa6139a129c1412a3fb
refs/heads/master
2021-04-28T10:32:25.416550
2018-07-06T01:59:47
2018-07-06T01:59:47
122,068,697
13
11
null
null
null
null
UTF-8
Python
false
false
658
py
print("字典是key-value的数据类型".center(50, "-")) print("字典是无序的,key不能重复") info = {"stu1": "tom", "stu2": "jack", "stu3": "lucy"} print(info) # 添加 info["stu4"] = "bob" # 修改 info["stu1"] = "zhang" # 删除 # info.pop("stu2") # 标准删除方法 # del info["stu3"] # 查找 print('-----',info.get("stu11")) # 不存在的时候返回 # print(info["stu0"]) # 不存在时会报...
[ "359405466@qq.com" ]
359405466@qq.com
cd515ac2fb82afb70c385e634c68f7f523290d90
1097ed333a4000634e68a590ee6ffc6129ae61e3
/287.寻找重复数.py
f7574fcf8c3ef85cc24ac1beab25979bd36b19d0
[ "MIT" ]
permissive
AutuanLiu/Code-Storm2019
1bbe890c7ca0d033c32348173bfebba612623a90
8efc7c5475fd888f7d86c3b08a3c1c9e55c1ac30
refs/heads/master
2020-04-23T07:03:08.975232
2019-10-24T08:56:26
2019-10-24T08:56:26
170,995,032
1
0
null
null
null
null
UTF-8
Python
false
false
1,679
py
# # @lc app=leetcode.cn id=287 lang=python3 # # [287] 寻找重复数 # # https://leetcode-cn.com/problems/find-the-duplicate-number/description/ # # algorithms # Medium (60.60%) # Likes: 246 # Dislikes: 0 # Total Accepted: 17.2K # Total Submissions: 28.4K # Testcase Example: '[1,3,4,2,2]' # # 给定一个包含 n + 1 个整数的数组 nums,其数字...
[ "autuanliu@163.com" ]
autuanliu@163.com
5906c756260db6abcf6065a201f1b04d6f2538d4
a7329cb1f861f77f94555d88694bfc8611b9c41a
/FinanceBot/router.py
1b3775b0fca1b615bb29bb749a8a440942c02cab
[]
no_license
MakFrogz/FinanceBot
32dc4b63f1d2e159b1bf39b922207f235617f85d
2ee5b1a95271396efb6d3acf7880357873cbdf5d
refs/heads/master
2021-02-12T19:49:08.030900
2020-03-24T15:48:33
2020-03-24T15:48:33
243,997,403
0
0
null
null
null
null
UTF-8
Python
false
false
13,004
py
import telebot import config import keyboard import group import user import bill import debt import alert bot = telebot.TeleBot(config.toker) alert.set_bot(bot) @bot.message_handler(commands=['start']) def call_start(message): if user.check_user_online(message.from_user.id): bot.send_message(message.fro...
[ "badxpioneer2013@gmail.com" ]
badxpioneer2013@gmail.com
f1b125e0dd779b2ae99e07617aee37500edcfb64
5f0cf1ab3afcfb6dea05eb76ad2ce51cd423d3e3
/Module4/Nestedif/test _under_10.py
14173e9974308a5cde7f836190d6bd2121088d05
[]
no_license
TylerWuebker/Module5
dc7ef74ecc46bc9223e1f79d835fe3734a931a60
039d513f988bf2689d61ac695f57d95ea5c4a4b5
refs/heads/master
2022-12-22T03:33:29.050841
2020-09-20T21:51:18
2020-09-20T21:51:18
297,125,324
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
import unittest from Module4.Nestedif.coupon_calculations import calculate_price class MyTestCase(unittest.TestCase): def test_something(self): self.assertEqual(True, False) def price_under_10(self): result = calculate_price(9, 5, 10) self.assertEqual(result) result = calcu...
[ "noreply@github.com" ]
TylerWuebker.noreply@github.com
0d363f252fcf73180c930510c4fa22a128bb11ec
4bf660a29c444f64af07dca51cc8028482f37fe1
/validus/mathutils.py
1ff5f422fc9bcbe8f79414addaed3f334cefe6d2
[]
no_license
bartholomewdavid/Validus
b5ad031fbbc83b88b0bc017143caf8162b2211dd
6df5bbd04db09883905587acbc9632a3739b99b9
refs/heads/master
2020-03-28T04:18:06.904316
2018-09-06T19:05:56
2018-09-06T19:05:56
147,706,282
0
0
null
null
null
null
UTF-8
Python
false
false
1,735
py
import math def daily_return(previous, current): """ Calculate daily return on investment :param previous: The previous Mid :param current: The current Mid :return: The return on investment """ return (current / previous) - 1 def average(inputs): """ Returns the average value for ...
[ "bartholomew.david@gmail.com" ]
bartholomew.david@gmail.com
cac6e790129dd2c63adfa57d869f1e9279304a3e
58b1019e78338c0f5b5f9ddbaefb2155c0324b73
/main.py
a2b4d09fc8a90f165eb3873c95e65460bc030765
[]
no_license
Alpharius61/TestPygame-master
1bed7e254966d7eb51c2928c6f761632702678ad
2173962a8b28c2298198d61aec24164d638395e4
refs/heads/master
2023-08-29T06:17:48.255275
2021-11-15T08:40:13
2021-11-15T08:40:13
428,179,247
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
import pygame from Game import Game if __name__=="__main__": pygame.init() game = Game() game.run()
[ "monlouis.gael@gmail.com" ]
monlouis.gael@gmail.com
ec7fd9f24f61deae25f0c874e280ffff6ed26835
ec7e1bca8e98d3f72e89bbf8b2df471172e4d1cb
/app.py
70f224f3e38f7395446fb42f73515425f88182fb
[]
no_license
matheusferreira195/flask-tm-course
70ab3a30f9cb2c37721595c79915bc5bb9246e3e
76a7f0999144bdc0103cc294c49d8e459012a371
refs/heads/master
2023-01-11T07:09:45.169777
2020-11-18T22:53:57
2020-11-18T22:53:57
314,078,119
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
from flask import Flask, render_template from data import Articles app = Flask(__name__) Articles = Articles() @app.route('/') def index(): return render_template('home.html') @app.route('/about') def about(): return render_template('about.html') @app.route('/articles') def articles(): return render_te...
[ "matheus@auraconsultoria.com.br" ]
matheus@auraconsultoria.com.br
9855a9a453ba14cf06e3fe967deea374c8fe1a86
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-677.py
bb26289d2195905caac5c6473919fe4679455e63
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
22,911
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
ecb752b165352589a7fc6e6655d83d8db7f090ae
0e74487aeeff55336bad1d497301d222a25b2f11
/examples/binning/random_prices.py
91d8ce82f1c3ca20f7015ae25549ea2f27b4369e
[ "Apache-2.0" ]
permissive
jkramarz/winton-kafka-streams
4586665cca641cac4c369b5ccff4292905d7075f
22526da71454a8b9c7bba53e4f59f645535de602
refs/heads/master
2021-09-10T03:47:35.226707
2018-03-20T22:23:32
2018-03-20T22:23:32
126,088,504
0
0
Apache-2.0
2018-03-20T22:05:41
2018-03-20T22:05:41
null
UTF-8
Python
false
false
2,495
py
"""Provides simple class to compute (reproducible) random prices""" from random import Random as _Random from math import fabs as _fabs from collections import namedtuple as _nt _STATE = _nt('_STATE', ['last_price', 'random', 'iter']) class RandomPrices(object): """\ Provides iterable class producing rando...
[ "sknollmann@gmail.com" ]
sknollmann@gmail.com
9f6d0fddbebae41ca992645569b3c8693d68ca58
0e90c5bb9daf370479f0612cbea05a349b30d9d1
/oscg_stock_request/__manifest__.py
ae57f532286a73fd284cb1975173b26a95563b3e
[]
no_license
OSCG/oscg_stock_request
3ca98516b69480d5ee2f3c356ee1dae0641649f8
5e2e4b2760c3b3bd777e35051d9e5a4cd7ed3ea2
refs/heads/master
2020-03-27T01:06:02.432638
2018-09-02T16:08:59
2018-09-02T16:08:59
145,681,984
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
# -*- coding: utf-8 -*- { 'name': "Stock Request", 'description': """ Enable to create request for stock purchase from your branch companies or retail shops etc. """, 'author': "OSCG", # Categories can be used to filter modules in modules listing # Check https://github.com/odoo/odoo/...
[ "tanysysu@163.com" ]
tanysysu@163.com
5e9365cd8fcdc3c33017a4fb7808aa0e14bf48f8
2e3e256bcc0086a61cbb0e082dc61290196e35d2
/dragon/common/custom_backend_auth.py
c06f172b49bf3edcc9fa4ad9cf008c2682719502
[ "Apache-2.0" ]
permissive
miradam/openstack-workload-disaster-recovery
79dcdb15ebf95d89157751c750a5dbab1557b942
854a3952bb9278cc08017ada97ff150b12b1c687
refs/heads/master
2020-03-24T15:36:46.808591
2016-12-15T12:32:17
2016-12-15T12:32:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,087
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (C) 2012, Red Hat, Inc. # # 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 r...
[ "OSHRITF@il.ibm.com" ]
OSHRITF@il.ibm.com
048a86bca1e12c2e1715e14e72e254414c481537
27a031a48145f6e41a996e37851d63ca41b3d3cb
/home/views.py
d45bd5b606958a6709930030f8df8587943061b1
[]
no_license
ishaandwivedi1234/Bussified
2f302f2ae5547359550be6d01fe893c02939b12a
a93519e0245b7aa21da9f9d64910e664f5e3ce58
refs/heads/master
2023-02-23T07:27:54.053583
2021-01-21T10:52:56
2021-01-21T10:52:56
331,598,176
2
1
null
null
null
null
UTF-8
Python
false
false
36,475
py
from django.shortcuts import render, redirect from home.models import Customer, Bus, Operator, Ticket, Seats from django.contrib import messages from datetime import datetime from home.custom_models import Result, Bookings, UserAcount, OperatorAccount, BusOperatorResult, checkRunning, OperatorDashboardInfo from django....
[ "ishaan.dwivedi99@gmail.com" ]
ishaan.dwivedi99@gmail.com
ed8db23c3a0c8f9fbbd3d3e1d4607e116873f600
261c0d4c0756380bc9ef00b8bf4a2592d5863a74
/max.py
54260f0625ae00d170be9ac04e132af87fa3893a
[]
no_license
170030976/lab7
acbc29cbe7b66125f3af601479cb3110a15cf4cb
1c1c69bfeb96aafcf12c5dc9088326bae48031c4
refs/heads/master
2020-12-04T22:58:56.955631
2020-01-05T14:22:02
2020-01-05T14:22:02
231,928,262
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
# Python3 program to find maximum # in arr[] of size n # python function to find maximum # in arr[] of size n def largest(arr,n): # Initialize maximum element max = arr[0] # Traverse array elements from second # and compare every element with # current max for...
[ "noreply@github.com" ]
170030976.noreply@github.com
e8fd21f3579159233e436a65823810533632748f
0d01a5ae075b575543192ab96757262cac06ddf9
/course1/3/test2/test4.py
596a22e469807c172e7bb91f1f745c89d3c06f68
[]
no_license
kuzma-long/tornado
dbae2047ec8de16c1b76964984c67ebfea15e3e7
f0c39eb6b007b8a962dc3ff0538a9b47b9bf5e84
refs/heads/master
2022-04-23T03:46:14.027407
2020-04-24T13:50:30
2020-04-24T13:50:30
258,523,659
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
#coding=utf-8 from tornado.httpclient import AsyncHTTPClient import os from tornado.ioloop import IOLoop def parse(con): import bs4 bs = bs4.BeautifulSoup(con,'html.parser') h4List = [h4.text for h4 in bs.select('ul.foot_nav.main h4')] for h in h4List: print h def handle_response(response)...
[ "1320506880@qq.com" ]
1320506880@qq.com
c0f8a552fa1f8d7a7d30908f2da65ca75d275e45
ee6a926ba1525c21b50555954d24d7672503d641
/backend/graphs.py
e90c901315214e88f4b5d60c2d11c794fab0b06c
[]
no_license
GrennanM/urbanForecast
9416dc650e3687bb6b89d2f0ff6e88791856b355
07f115c5754db4f5028ce979f32ead5fb57974db
refs/heads/master
2020-04-23T04:15:46.332873
2019-04-11T15:53:37
2019-04-11T15:53:37
170,903,088
0
0
null
2019-03-01T18:10:50
2019-02-15T17:28:40
C
UTF-8
Python
false
false
1,610
py
from firebase import firebase from datetime import datetime from settings import * import pandas as pd import matplotlib.pyplot as plt # get readings from Firebase firebase = firebase.FirebaseApplication(myUrl, None) weatherResults = firebase.get('/weather', None) # get current times, wave heights, wind speeds dateT...
[ "grennama@tcd.ie" ]
grennama@tcd.ie
d8d4c3e1b701acafe9efd4fe2960a78aae112f26
811adf2308db28dd363df945d3411d9346a26037
/detimakerlab/technician_api/apps.py
1fd1d50d20cfe92401acd42b68fe06e121812352
[]
no_license
ProudBloom/DETI-MakerLab
bccb66d77f1c951f549d5eed193fa3c7a81dea0a
7a589e01ba44bb3c6a2f2b62cf284b19eaaa8064
refs/heads/master
2022-12-12T06:55:53.140303
2020-07-01T23:26:12
2020-07-01T23:26:12
251,323,974
3
0
null
2022-11-22T05:32:41
2020-03-30T14:06:18
Python
UTF-8
Python
false
false
204
py
# from django.apps import AppConfig from detimakerlab.wiki.apps import WikiConfig class TechApiConfig(WikiConfig): name = 'detimakerlab.technician_api' verbose_name = 'DETI MakerLab Technician'
[ "jakub-sztompka@wp.pl" ]
jakub-sztompka@wp.pl
96eb7f9c392480ce695793869b7a14859de7d146
f0afc06b8f73a762514eaf1931b54da91bcd2d47
/leads/views.py
7307fe2e9cb6f4a2e715b00e23c6922cef2dc418
[]
no_license
joshlsullivan/tria-facebook-leads
4e925d92f332597e9d45fb4913eba43dba605ac2
d092010f484e351c5117902d9e7b040411265c08
refs/heads/master
2021-03-27T10:49:34.360736
2016-10-19T23:34:44
2016-10-19T23:34:44
71,027,257
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
from django.shortcuts import get_object_or_404, render from django.views.generic.edit import UpdateView from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.contrib.auth.decorators import login_required from .models import Leads from client.models import Client f...
[ "josh@misllc.com" ]
josh@misllc.com
5f35df87aae5279935c77bb28bafc91d4f8ffdd4
bc34f3e65628fd6e061df07075ee6a8e2bfe9933
/timercalling.pyw
0b2cf2145e3df195ce22f4d97c3d5c77386d9496
[]
no_license
PreshConqueror/Timer
d86ae360b5e074dbafe1973fb77df5e8de63c8d0
ec80773bf613e337ba253eaf9bd776cee57ae5bc
refs/heads/main
2023-07-18T02:41:16.778489
2021-09-02T13:47:55
2021-09-02T13:47:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
452
pyw
#CALLING SOURCE CODE #IMPORT FROM PYQT5 import sys from timer import * from PyQt5.QtWidgets import * class MyForm(QtWidgets.QDialog): def __init__(self, parent=None): QWidget.__init__(self, parent) self.ui = Ui_Dialog() self.ui.setupUi(self) # create pyqt5 app ...
[ "chosendestiny3@gmail.com" ]
chosendestiny3@gmail.com
d2e34a1213dcdddbe9a9b87e7aaf4dc1b8b73f44
c1374d5d9ade40c5a256e64c4acd3c93627ef572
/DAImageScraper/DAImageScraper/settings.py
8482900f1d0e0d94f315a4ba97d509827a827597
[]
no_license
hueyning/DA-scraper
c0c8934e592fd10956aab7252b7252bb28fc5748
08f5409334a4aed5b87db33486b59aac88590fee
refs/heads/master
2020-05-01T12:35:51.728647
2019-09-23T22:34:01
2019-09-23T22:34:01
177,469,956
0
0
null
null
null
null
UTF-8
Python
false
false
3,531
py
# -*- coding: utf-8 -*- # Scrapy settings for DAImageScraper project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/lates...
[ "hueyning@minerva.kgi.edu" ]
hueyning@minerva.kgi.edu
0f8ccd549f87de8e4ad0939efc5e00ec6bae56ce
59bccc3e51a75d75553816750f28b1852a1a92c3
/scraper/installer.py
842e0ef67259fe04f46c6306f92af440260cdccb
[ "WTFPL" ]
permissive
I4-Projektseminar-HHU-2017/i4-projekt-wissenstechnologien-juma-1
7f537f98b3281b11dac27f9c9eee094776788c47
2ac42913d1b670dfcd5eb77fad2a61287c605c0f
refs/heads/master
2020-12-30T12:00:46.673851
2018-10-23T21:07:48
2018-10-23T21:07:48
91,489,533
2
1
null
null
null
null
UTF-8
Python
false
false
2,412
py
import sys import subprocess import os def create_launch_bat(): print("Checking requirements...") requirements_fulfilled = True python_exe = sys.executable if not python_exe: raise SystemError("Python executable does not exist. Please make sure Python (at least 3.5) is installed.") run_...
[ "MarcoKluin@gmx.de" ]
MarcoKluin@gmx.de
309296c11e4d90148c9ae14407ab0a0e5055ee9d
b0be556c99dac4886fbe66bf454ae146ba3b69a5
/Table Reservation Syst/reservationapi.py
8b269c7bb900e8f687fc587d3cdbc1d33d2c9c6e
[]
no_license
DishaJethva/Web
69c31cda3cd2b3293f320aa35c03ab4a33fdc5f9
ca708cfc22b3de9ec25e1f3eb8794e253e779189
refs/heads/main
2023-07-15T17:36:49.017252
2021-08-15T05:50:30
2021-08-15T05:50:30
396,005,892
0
0
null
null
null
null
UTF-8
Python
false
false
6,194
py
import json import itertools from flask import Flask, jsonify, request def combinations(noOfPeople, table, tables): def capacity(noOfPeople, tableCombinations): caplist = [] for i in tableCombinations: # checking if combination of tables is possible according to the number of pepole ...
[ "noreply@github.com" ]
DishaJethva.noreply@github.com
42b8cbb0317df50cd02652b2dfab0c2529c22f93
46867e0d39a81255e5105277741f56ba693de69d
/art/acas.py
fa050e7ceee83bec88b0e44b63fbb0b47c521ec8
[ "MIT" ]
permissive
RU-Automated-Reasoning-Group/ART
165ee53fe873b6e2c822ca67bcd1a5e387c47084
58e92cb0faab6deb8e310e571bbac689c2f0eeb4
refs/heads/master
2022-11-27T11:44:37.335504
2020-08-05T07:24:53
2020-08-05T07:50:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
33,187
py
""" Information needed for evaluation of ACAS Xu datasets. """ from __future__ import annotations import datetime import enum import sys from itertools import product from pathlib import Path from typing import List, Optional, Tuple, Iterable, Sequence, Union import torch from torch import Tensor, nn from diffabs i...
[ "xuankang.lin@gmail.com" ]
xuankang.lin@gmail.com
9c0840e858c444ea844208b24a2948f9ad7256f6
aad4481e8a54e311982d638c1b42a86180726970
/examples/event-loop-stuff/timeout-clock.py
b5a2076df4b5ee032662cafab72effec9061d0ae
[ "Unlicense", "Zlib" ]
permissive
jiangguoqing/tkinter-tutorial
5639b11cfc2f339df3776410dbd7078ee07fac54
c6fee61ee915cf0894125e5b5eeb7249237d3a6b
refs/heads/master
2021-05-05T12:02:13.912298
2017-06-18T10:51:33
2017-06-18T10:51:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
import tkinter as tk import time # this must return soon after starting this def change_text(): label['text'] = time.asctime() # now we need to run this again after one second, there's no better # way to do this than timeout here root.after(1000, change_text) root = tk.Tk() label = tk.Label(root, t...
[ "akuviljanen17@gmail.com" ]
akuviljanen17@gmail.com
1e509116af24c44fe7bc64a8a1dbb3979633616e
a976a6d7c992347fbfb833d3b25db3b84652fa89
/Dynamic Programming/Edit Distance (Easy).py
1bd0905d9d7577c482b231041a71a2371eebff9e
[]
no_license
AvyayAgarwal/Competitive-Coding
48004e0afea4d8bc200e31ad34f81506fa47f686
31a282dd3099f277b9396df758cb55b41228b93c
refs/heads/master
2023-04-03T00:21:01.979861
2021-04-04T21:28:52
2021-04-04T21:28:52
260,911,761
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
# 72. Edit Distance - Hard # Tags - String, Dynamic Programming (DP) class Solution: def minDistance(self, word1: str, word2: str) -> int: len1 = len(word1) len2 = len(word2) dp = [[0 for _ in range(len2+1)] for _ in range(len1+1)] for i in range(len1, -1, -1): ...
[ "30388692+AvyayAgarwal@users.noreply.github.com" ]
30388692+AvyayAgarwal@users.noreply.github.com
718f7a3de5fabd24e2bf63d11e7356d7b3444a4f
a3b46d9f8a24843d18f7fb618843f7804f5e876e
/IOT.HC/Entities/EventTriggerInputDeviceSetupValue.py
2398c9601814ce546af74e03378edaa3404f16d5
[]
no_license
LeDucThang/IOT
c3caeea5d504ce037ef8d220f8c120e77a4ec8ed
cec3ffb0a8a748705b39c3dd6ffa2a15df30b9db
refs/heads/master
2023-04-01T19:23:11.436696
2021-04-09T10:16:37
2021-04-09T10:16:37
356,227,427
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
class EventTriggerInputDeviceSetupValue: def __init__(self):
[ "thangld19@fpt.com.vn" ]
thangld19@fpt.com.vn
e6431a198596e29f0c09f76ebbce970955e1947b
d50cfc3b4b458ce237d690e6680c0a97f1e6f4f2
/json2json.py
39c9b8f848015c0de9e607c7adb1dcc94590cdef
[]
no_license
sheffier/ml_nlp_vqa
d7fc23226a5acbcfe3f6d68533c5f428a12bf625
c6b6cb7d2e684636de3b2ab41ebd72d627774137
refs/heads/master
2021-12-14T00:13:49.656751
2021-11-22T12:52:46
2021-11-22T12:52:46
199,274,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
import json import re with open(r'C:\Users\user\Desktop\University\TAU\year1\NLP\project\nlvr\nlvr2\data\dev.json', 'r') as f: examples = [json.loads(line) for line in f.readlines() if line] base = { "info": { } } with open('train2014QuestionsForSNMN.json', 'w') as dq: image_questions = { "qu...
[ "tal.lance92@gmail.com" ]
tal.lance92@gmail.com
c2873b4c18984e09fdefaf83ccb2155502194f6e
37ec695c98adee66364aa26046b8db9dfd38afce
/BasicCourse/practice4-4.py
cd6547b0f60de843fb3d76415424fce46c2679be
[]
no_license
douglasdl/Python
5d6c1569416d7a19a6aea34431ce11c4de9df9a9
c0d84e761b91358c21f6bbfc5f06f59b2afa2d55
refs/heads/master
2023-06-29T09:17:40.751320
2021-07-28T12:18:10
2021-07-28T12:18:10
281,894,209
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
# coding: utf-8 # Fibonacci n2 = 0 sum = 0 for n1 in range(1, 10 + 1): sum = n1 + n2 print(str(n1) + " + " + str(n2) + " = " + str(sum)) n2 = sum # Vertical print("") for number in range(1, 9 + 1): print("九九の" + str(number) + "段") for n in range(1, 9 + 1): print(str(number) + " × " + st...
[ "douglas_san@hotmail.com" ]
douglas_san@hotmail.com
8dd2e0625d7cddc0360585244105d243400bfd8c
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/6010/504006010.py
f720a213c867cbaeb745d5d7e34ed4a67527b198
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
844
py
from bots.botsconfig import * from records006010 import recorddefs syntax = { 'version': '00601', 'functionalgroup': 'CC', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGN', MIN: 1, MAX: 1}, {ID: 'N1', MIN: 0, MAX: 99999, LEVEL: [ {ID: 'N2', MIN: 0, MAX: 2}, {ID: 'N3',...
[ "doug.vanhorn@tagglogistics.com" ]
doug.vanhorn@tagglogistics.com
ed3556874e717bbaf477fea4cadc0f06772d039c
5e324af46c554b88b97ee26886b05c88457ff0f5
/core/settings/production.py
0514fd109ac361f269a79a6f0a4dcb5a3202ba61
[]
no_license
doubleclickdetroit/dindintonight
1bda8851e49782d4dc16ca77d46e4b1f431c2b52
9769e1a96730b02511d25af8828b075dff5c35b5
refs/heads/master
2016-08-04T22:01:08.083566
2014-07-26T18:58:58
2014-07-26T18:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,383
py
"""Production settings and globals.""" from os import environ from base import * # Normally you should not import ANYTHING from Django directly # into your settings, but ImproperlyConfigured is an exception. from django.core.exceptions import ImproperlyConfigured def get_env_setting(setting): """ Get the envir...
[ "rgarrison3@gmail.com" ]
rgarrison3@gmail.com
2760b5814cad450d9abb3e2a923dd253fca8d94f
ec50e0f401cbcb0eddadf38d576f434688df1be6
/supplier/urls.py
c9fb7ffd0f5470cea3f32775c2480f429b0914d5
[]
no_license
ayush180/djangoProject2
ecbd1d74843be87b56e6bac457797c51f9e2ca9a
6cdc58592b6e8ee517a2f095557e16dfbce7e41f
refs/heads/master
2023-06-20T11:10:31.028099
2021-07-17T11:20:42
2021-07-17T11:20:42
381,335,957
1
0
null
null
null
null
UTF-8
Python
false
false
420
py
from django.urls import path from .views import * urlpatterns=[ path("new/", NewSupplier.as_view(), name="supplier-new"), path("view/", ViewSupplier.as_view(), name="supplier-view"), path("update/<int:pk>", UpdateSupplier.as_view(), name="supplier-update"), path("delete/<int:pk>", DeleteSupplier.as_view...
[ "ayush180670107041@gmail.com" ]
ayush180670107041@gmail.com
56bb1b8a3d238c6c89226c5276b91e8649ac0852
660e3a2bb5f127908549d52ebc62d0d67725f832
/Algorithm_python/최소반복.py
289ccfc40280f63b62c7f53a788273646c84b529
[]
no_license
dygksquf5/python_study
b56f8548bea7e31a484301bb97ddefe44d931c80
282126b0104dae9f9f8f63e613cc968a2f998ef1
refs/heads/master
2023-02-21T03:46:16.673962
2021-01-24T14:08:47
2021-01-24T14:08:47
294,593,923
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
# 주어진 수가 커서, 나머지 테스트케이스는 전부 에러ㅓㅓㅓ def solution(arr): answer = 0 id = [0] * len(set(str(arr))) visited = [False] * len(id) for i in range(len(arr)): if not visited[arr[i] - 1]: id[arr[i] - 1] = i visited[arr[i] - 1] = True continue if visited[arr[i]...
[ "66229916+dygksquf5@users.noreply.github.com" ]
66229916+dygksquf5@users.noreply.github.com
eb884160b46e9b642bf272c7dd14832b474646d7
b5e4958bd1c4770297108947e7b7441020b2e9cc
/topi/tests/python_cpp/test_topi_relu.py
f214266351210bcd11b71be64cdebdfc98b25ba6
[ "Apache-2.0" ]
permissive
Markz2z/tvm
06a20dcdf76111b64242940323ba998432ffbffb
3921b938c2a14017c2624f149983e86a7f9a4e94
refs/heads/master
2021-09-07T22:13:37.234511
2018-02-27T23:14:58
2018-02-27T23:14:58
124,998,633
1
0
Apache-2.0
2018-03-13T05:45:19
2018-03-13T05:45:19
null
UTF-8
Python
false
false
2,070
py
"""Test code for relu activation""" import os import numpy as np import tvm import topi from topi.util import get_const_tuple def verify_relu(m, n, dtype): A = tvm.placeholder((m, n), name='A', dtype=dtype) B = topi.cpp.nn.relu(A) assert B.dtype == dtype a_np = np.random.uniform(size=get_const_tuple(A...
[ "tqchen@users.noreply.github.com" ]
tqchen@users.noreply.github.com
a9dee7dc116775c6704014ece12ad4d8a9abc01e
2e4ba3b532fa6904a0de745d34d0017e2c3dcc1a
/2-Exp_Cavendish/macro/g_measure.py
60df8009de13f5a66d5c138725755235627c066b
[]
no_license
zazasa/LAB_IF_2015
f6393f1966abc62f5d46b33e147391ae8c1b8b70
d7b1f34ca97acc5e8b3bccb6a1697b15ff18f716
refs/heads/master
2021-01-10T01:42:33.055242
2016-01-12T18:29:08
2016-01-12T18:29:08
46,729,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,644
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: Salvatore Zaza # @Date: 2015-12-09 10:45:54 # @Last Modified by: Salvatore Zaza # @Last Modified time: 2015-12-15 18:43:25 from utils import * import numpy as np from uncertainties import ufloat a1 = show_plot('../data/151209_forzata_1.txt',False,False,0.0...
[ "salvatore.zaza@gmail.com" ]
salvatore.zaza@gmail.com
125c3704580ab191e18752d015463c136b6ad06e
46a7c05b1ddd98d264a1579802f203175075e6dc
/izracun_deliteljev.py
8f11f4e77518bc04b78c831054b3fe3faccd7911
[]
no_license
rok-povsic/Lekcija12
7aadb0d13b8ebc3c735ea7ef59b6715215a6fb08
a2d17d06a10ec03d0140cb47f85bcacd0b1bfb57
refs/heads/master
2021-01-10T05:15:28.013261
2016-04-04T16:45:53
2016-04-04T16:45:53
55,428,150
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
x = int(raw_input("Vnesi stevilo: ")) for i in range(2, x/2 + 1): if x % i == 0: print i
[ "rok.povsic@gmail.com" ]
rok.povsic@gmail.com
899ec6116816b71a713d48628809e69bd28e6745
459a2d27392b004a0b292706c70d0b15244ab6a3
/Project/15-scrapy/num4_lanrentuku/num4_lanrentuku/spiders/main.py
7babae1b7e8ad83fdb8861b434f23d01216300aa
[]
no_license
Dengdi21/myspider
e8dc30fe4e3124ddedb574c95dfda3cf822e495e
81a7ddae5627e592eb694dc4cbd06dc9eb8ef8b3
refs/heads/master
2020-09-09T08:53:17.824307
2019-11-29T09:29:34
2019-11-29T09:29:34
221,404,700
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
from scrapy import cmdline cmdline.execute('scrapy crawl lanrentuku'.split())
[ "chumu@chumudeMacBook-Air.local" ]
chumu@chumudeMacBook-Air.local
74639bf3d90ed6d85e037c60fbb61a4a25c0f628
d1b48feb526c1af96c56a4a76f1e32aa2063af97
/archived_201117/currentPaperspaceVersion/multiD_embed_numerical_LSTM_5_params.py
5d072c6739c9f368178dac065e071173dff6341a
[]
no_license
csainsbury/nEqOneTrial
79f344537e18e25b172c95f6a611e1ba37f80845
71924f55b7757bb07f5bdf54a8ea89f38280165f
refs/heads/master
2021-09-15T18:57:33.216638
2018-06-08T16:05:23
2018-06-08T16:05:23
107,871,538
0
0
null
null
null
null
UTF-8
Python
false
false
3,579
py
from keras.layers import Input, Embedding, Reshape, merge, Dropout, Dense, LSTM, core, Activation from keras.layers import TimeDistributed, Flatten from keras.engine import Model from keras.models import Sequential import numpy as np import pandas as pd from sklearn.preprocessing import StandardScaler sc = Standard...
[ "chris@sainsbury.im" ]
chris@sainsbury.im
8043ea253f293dd5d6b1719cd3e77b196455e1cc
9b415bc6a6beb1121f23c8e5a90acb2a1a139fca
/Leander_Stephen_D'Souza/RPi to Arduino UART image/Base64- Encode_Decode.py
5b38d9d46ebc3b4af1fcd6e98429a2aa171ce261
[ "MIT" ]
permissive
leander-dsouza/MRM-Tenure
e3b59095f2836dccc36b478e577c18a914a704b5
3f372ffeeb12b04f4c5c636235db61725d47c3c6
refs/heads/master
2021-05-17T04:57:12.857895
2020-08-25T05:06:58
2020-08-25T05:06:58
250,635,086
2
0
null
null
null
null
UTF-8
Python
false
false
371
py
import base64 image = open(r'/home/leander/Desktop/tennis.jpg', 'rb') image_read = image.read() image_64_encode = base64.encodestring(image_read) image_64_decode = base64.decodestring(image_64_encode) image_result = open(r'/home/leander/Desktop/tennis2decoded.jpg', 'wb') # create a writable image and write the dec...
[ "leanderdsouza1234@gmail.com" ]
leanderdsouza1234@gmail.com
a1bf4a67906fca883e9d2295694c85338f38907a
905c3c3e4143e0aad6ecdbf8b7d5e895c81a95fa
/weather/views.py
c514f19744706c8e2d0da51b55a209b3e3725339
[]
no_license
VishalMakwana01/WeatherApp
f21eceafb16be70fe1518a934c2b892614fe8567
375e451519d18d95d33a020f4c90106e227c91ed
refs/heads/master
2020-05-09T14:02:31.141549
2019-04-16T09:05:25
2019-04-16T09:05:25
181,179,106
0
0
null
null
null
null
UTF-8
Python
false
false
3,800
py
import requests from django.shortcuts import render from .models import City from .forms import CityForm def index(request): url = "http://api.openweathermap.org/data/2.5/weather?q={}&units=metric&appid=52859687c521455b0ba8c720194b5b19" if request.method == 'POST': if '_add' in request.POST: ...
[ "vishal.makwana3@gmail.com" ]
vishal.makwana3@gmail.com
f0968c48b9322c2b2c1a742846b3b5b2d7d08c33
5826560b3680c25dc72ee9ad6c70ce808484f05c
/.pycharm_helpers/python_stubs/cache/86a884ee175ecd0a910b406b767da18000d6bf77dca5a0ba9962bdaf55684d8b/_asyncio.py
d6111313b955355040a4ad2b33cc611bb9d008ed
[]
no_license
yangzsc/Pancake_test
c98e8caacd1e82c80fdfeb1e94fbf84783100864
22bd0bbcdbd04dc4201057696eaeaf27117e1dcc
refs/heads/master
2020-12-27T18:46:15.112829
2020-02-29T03:57:18
2020-02-29T03:57:18
238,009,308
0
0
null
null
null
null
UTF-8
Python
false
false
13,452
py
# encoding: utf-8 # module _asyncio # from /usr/lib/python3.6/lib-dynload/_asyncio.cpython-36m-x86_64-linux-gnu.so # by generator 1.147 """ Accelerator module for asyncio """ # no imports # no functions # classes class Future(object): """ This class is *almost* compatible with concurrent.futures.Future. ...
[ "zhaoshuchen2018@gmail.com" ]
zhaoshuchen2018@gmail.com
f0c660265b92498d1ba0c1172e8fe861bbba7312
4649cce3d8da661ddb204428e21f714a502d36f9
/src/ensae_teaching_cs/faq/faq_pandas.py
e7794b4e40526ab1f81f343648af19a2bd63b895
[ "MIT" ]
permissive
xugonglei/ensae_teaching_cs
10a7b97003e7d833dd0faaae939813bf1e134575
f06d4ce7ea24338b5b217f6c46ff7980eac7e653
refs/heads/master
2020-04-30T11:10:47.368520
2015-10-29T21:41:23
2015-10-29T21:41:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,936
py
# -*- coding: utf-8 -*- """ @file @brief Quelques problèmes récurrents avec `pandas <http://pandas.pydata.org/>`_. """ def read_csv(filepath_or_buffer, encoding="utf8", sep="\t", **args): """ Calls function `read_csv <http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html?highlight=read_cs...
[ "xavier.dupre@ensae.fr" ]
xavier.dupre@ensae.fr
e323660b45a8c48733e8329da83fca79f22f39b7
73d77f0b8ab1622f33f9ec5f2fab7735c059a418
/blog/forms.py
30b23d6e06d0d11afc7eb92253ef439151a02d64
[]
no_license
kpatel923/test_site
836dcbb251425cc43a31ac4f189aefc73ec75775
3fecb59590bf951b506e96560b346a4d6500d06c
refs/heads/master
2023-03-04T12:03:03.006078
2021-02-16T13:22:48
2021-02-16T13:22:48
339,406,549
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
from django import forms def should_be_empty(value): if value: raise forms.ValidationError('Field is not empty') class ContactForm(forms.Form): name = forms.CharField(max_length=80) message = forms.CharField(widget=forms.Textarea) email = forms.EmailField() forcefield = forms.CharField(...
[ "bobdoe945@gmail.com" ]
bobdoe945@gmail.com
e00306396822e7d1da12953f91f4e293e9e8af15
d1a6e0931b3608bf8bf42915cc7d85bb309d0dd7
/myenv/lib/python3.6/hmac.py
6b50bec84710b70d56d02daaae7e01c0c39c265a
[]
no_license
jirlock/linebotrichard
8f45cb2bb123bbef2e3c99631f82c7ddbd118196
1916d336964ab1c5e1a228a55532d72a62552dca
refs/heads/master
2022-12-22T12:44:02.953895
2017-07-01T10:25:19
2017-07-01T10:25:19
95,957,333
0
0
null
2021-06-01T22:02:14
2017-07-01T10:22:47
Python
UTF-8
Python
false
false
45
py
/Users/keijiro/anaconda/lib/python3.6/hmac.py
[ "jirlock@gmail.com" ]
jirlock@gmail.com
981d4f6edff17b9280625e9c16e2766033a4c6f2
845cf37d4ad3fa456d026cb2e16616d87c8d1e9a
/tele2/tele2/wsgi.py
15dd86432fa50f2e51dfb0a6bf59de8e07d737c6
[]
no_license
Sadykhov/telegram_double
b86b7199a606a6f5890dd45c90741b4c8f5b84cb
9ea368e0d041c268171f6ae1dd22d5d85741fc57
refs/heads/master
2023-06-20T12:10:17.931352
2021-07-11T09:37:53
2021-07-11T09:37:53
384,908,691
1
0
null
null
null
null
UTF-8
Python
false
false
387
py
""" WSGI config for tele2 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
[ "karamsadykov@mail.ru" ]
karamsadykov@mail.ru
c8e6a1a4552d1c64297ed1c2af5bb967b2d01139
c97796ace1b8df4b20e169be11d89857bd9191ba
/python/model.py
5dd54bf1b0fab834ab41aa97ce0a2841fe98a410
[]
no_license
vincuk/FHDPM
b228b1d26c0e094ce9ff905902be9627b54fd467
bf386b39fc04b103c60725ad2320119d31c2c4e1
refs/heads/master
2021-01-09T22:38:33.363454
2017-08-09T12:51:16
2017-08-09T12:51:16
92,736,115
1
0
null
null
null
null
UTF-8
Python
false
false
12,782
py
import numpy as np import pandas as pd import scipy.sparse as sp from scipy.sparse.linalg import spsolve from multiprocessing import Pool, cpu_count from python.earnings import earnings_constants from python.utility import utility_constants from python.distributions import ZDISTRIBUTION from python.parameters import J...
[ "vincuk@tut.by" ]
vincuk@tut.by
43b6ce6cceabe1e527d08133bda8568d38084a2c
8156f7278a568531f808edfa3cb9cc64090eba17
/dmhy/getTracker.py
e56307b6feebcbc45cfbffcc4109d0bd8007886d
[]
no_license
DeSireFire/My_Spyder_Pool
8ef3cfad7911e9e66e0993fb3fa73d10d75e4a7d
ead5d90fd8d532c3f96fb02ac8a1aa15697d8196
refs/heads/master
2023-04-06T00:41:12.706009
2021-04-29T13:20:59
2021-04-29T13:20:59
109,140,291
3
0
null
null
null
null
UTF-8
Python
false
false
8,351
py
import requests URLS = { 'trackers_best':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt', 'trackers_all':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt', 'trackers_all_udp':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trac...
[ "1025212779@qq.com" ]
1025212779@qq.com
f1d0e4bc2bf2a727d168359cf8886cbca2f8e324
25ebc03b92df764ff0a6c70c14c2848a49fe1b0b
/daily/20190406/example_tinyloop/06generator.py
d865c30ed0ec9c763671dcf57f05205d0cd393bb
[]
no_license
podhmo/individual-sandbox
18db414fafd061568d0d5e993b8f8069867dfcfb
cafee43b4cf51a321f4e2c3f9949ac53eece4b15
refs/heads/master
2023-07-23T07:06:57.944539
2023-07-09T11:45:53
2023-07-09T11:45:53
61,940,197
6
0
null
2022-10-19T05:01:17
2016-06-25T11:27:04
Python
UTF-8
Python
false
false
240
py
def f(): x = yield 1 print("@", x) y = yield 2 print("@", y) return x, y itr = f() v = next(itr) print("!", v) v = itr.send([v]) print("!", v) try: print(itr.send([v])) except StopIteration as e: print(e.args)
[ "ababjam61+github@gmail.com" ]
ababjam61+github@gmail.com
41ee940aa7008ad60208d0b573b4f8bcbeb8e2de
1fc0cc24dfb0231f35a99ae6ced7b01bb2814830
/allure-python-commons/src/_hooks.py
0ff19a27d3a1dc95c07b291ce48cafc0848d7cd4
[ "Apache-2.0" ]
permissive
allure-framework/allure-python
54dd07bbde954c0a75b47443ea5fa892a730da29
200b7175218f27fef576d77c2ec791d0ea5ebe90
refs/heads/master
2023-08-23T09:14:15.292120
2023-08-08T16:19:36
2023-08-08T16:19:36
79,346,720
672
261
Apache-2.0
2023-08-25T09:58:13
2017-01-18T14:17:16
Python
UTF-8
Python
false
false
2,412
py
from pluggy import HookspecMarker, HookimplMarker hookspec = HookspecMarker("allure") hookimpl = HookimplMarker("allure") class AllureUserHooks: @hookspec def decorate_as_title(self, test_title): """ title """ @hookspec def add_title(self, test_title): """ title """ @hookspec ...
[ "noreply@github.com" ]
allure-framework.noreply@github.com