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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6adec5010913181137a16ac81de60c0b0998a1d | a088e9614ac6041fcf30d06e33b53529d3be395f | /10模块与包/myPackage/myModule01.py | 37f40c8d73b5b8005b8be7ef6139624bbe1822e9 | [] | no_license | yeshengwei/PythonLearning | 69dd3f6168b66232de186bd459a7fb6f6d119893 | 97f4bffbe0c58fed708a63d21f73a5967359a78f | refs/heads/master | 2020-08-13T14:38:34.802900 | 2019-11-22T07:24:03 | 2019-11-22T07:24:03 | 214,985,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | print(1)
def infoPrint():
print("myModule01")
| [
"yeshengwei@live.com"
] | yeshengwei@live.com |
964eb1fa5ae051c58b4eb36bc2941fad7754aff0 | 43d1d99766f708023e82a306c703de3d0a138a0f | /Glass_OS/setup.py | 7be3b61f35aacf28452d7810e490b9f90c49cdd5 | [
"MIT"
] | permissive | Jordonbc/GlassOS | 47449de835988e7c0daa29fa0a952c07aa5e93c2 | cb7fe1807f2ac2435786f8979f6f6e04d18a2be8 | refs/heads/master | 2021-05-04T10:14:01.410405 | 2019-04-16T13:30:18 | 2019-04-16T13:30:18 | 47,848,465 | 6 | 1 | MIT | 2019-04-16T13:30:19 | 2015-12-11T20:07:22 | Python | UTF-8 | Python | false | false | 2,293 | py | from distutils.core import setup
import py2exe
from glob import *
#import os.path
# def directory_listing_recursive(path):
# files = []
# for item in glob.glob(path + '/*'):
# if os.path.isdir(item):
# files.append([item, directory_listing_recursive(item)])
# else:
... | [
"jordonbc@hotmail.co.uk"
] | jordonbc@hotmail.co.uk |
f5aa669adb731c317d8ee5902b36249dc3650a5f | 0a62c8aa62563b5a943207d298ee5c701e198deb | /Defining_Functions/defining_functions5.py | e26f0e1da3d821278964e8d6b5c69e3f6665df47 | [] | no_license | kemar1997/TSTP_Programs | e9df21f154aafcf6f216cdae9aaa4b12202519a0 | bd207ec3e9d8bc8e5d5b491a98141967f14da10e | refs/heads/master | 2020-12-30T18:02:53.844543 | 2017-07-29T21:00:10 | 2017-07-29T21:00:10 | 90,946,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | """
A function does not have to include a return statement. If a function doesn't have a return,
statement it returns None
"""
def f():
z = 1 + 1
result = f()
print(result) | [
"kemar.1997@outlook.com"
] | kemar.1997@outlook.com |
14b14e9045ac983155f1252a8f5e11a600cae314 | ba2c634a579957dedd4d6d8f173b5218a44c2b03 | /py9.py | 46e00af941073ec2d34664154a4c40b783ad8a69 | [
"MIT"
] | permissive | Liuzen/UPH-1 | e4b89393ed59a4b2581f29ace2906bd58314d2a5 | 65999a7643b829836ba21fc6c315c429faeab16c | refs/heads/master | 2021-01-21T08:20:13.803819 | 2017-12-05T14:10:44 | 2017-12-05T14:10:44 | 101,957,136 | 0 | 0 | null | 2017-08-31T03:54:02 | 2017-08-31T03:54:02 | null | UTF-8 | Python | false | false | 189 | py | age = int( input("Please enter your age:") )
member = True
if age <= 15 :
member = False
if age >= 18 :
member = False
if member :
print("You can join")
else :
print("You can't join")
| [
"hendrian_lunardi@yahoo.com"
] | hendrian_lunardi@yahoo.com |
6d28554b2234358e85f3e19d6f78774acae86379 | 312d40d6023858891dd32bda67579f7284a54c15 | /02/01/isalpha.py | c0ee947563b96940abf5d767079a9e3478a11056 | [
"CC0-1.0"
] | permissive | pylangstudy/201708 | b67a49f091f5f949954e7b9a910a07761fe9a7d1 | 126b1af96a1d1f57522d5a1d435b58597bea2e57 | refs/heads/master | 2021-01-01T20:49:15.973299 | 2017-08-31T00:18:55 | 2017-08-31T00:18:55 | 98,936,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | print('aAzZ'.isalpha())
print('1'.isalpha())
| [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
ad26e16e84a475a108a5c6d378c4b86c3b6b7791 | 0c7ddbbf93a02db6e4647b20a405c7dac085eb62 | /utest/rawmsg.py | 815a898973058ec7dc1f1016617517b8e4d3eaeb | [
"Apache-2.0"
] | permissive | guiyangwu/tst | aaf4337883103503654dbef2436b185a714e174b | 92b3f9cd30984cc0714eec1fd7d5183bbe44b6d0 | refs/heads/master | 2020-02-27T06:20:36.089880 | 2016-10-31T12:46:20 | 2016-10-31T12:46:20 | 58,635,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py |
# HLR: 10.84.132.4
# MSC: 10.84.132.58
rawmsg = {
"M3UA-ASPAC": "0100040100000010000b000800000002",
"invoke UPLOC": "010001010000009002000008000000090210007d0003080000000c040302030a098003050a02c10605c3070008035e625c4804010014006b1e281c060700118605010101a011600f80020780a1090607040000010001036c34a13202010102010230800408... | [
"guiyangwu@126.com"
] | guiyangwu@126.com |
60dc5c761f8712334a7d949731065174513b3f33 | 7a87f5d593797772febe04f3a68cca578ef6cdf9 | /assignment2/fullstack/forms.py | fe6e9b0ec60087cdd09d425b37d6e319031c062c | [] | no_license | zimola/ML | 09b3b4544a8f62aded17eb1b9041afd416401901 | 90e0b02b6c14a3b9303cce178b581b811e27484a | refs/heads/master | 2021-08-23T03:52:42.300965 | 2017-12-03T03:03:51 | 2017-12-03T03:03:51 | 112,895,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from django import forms
preprocessingChoices = (
('lower', 'Lower'),
('punctuation', 'Punctuation'),
('numbers', 'Numbers'),
)
machineLearningChoices = (
('tfidf', 'TF IDF'),
('freq', 'Frequency'),
)
class SplitForm(forms.Form):
splitPercent = forms.CharField(label="Split Percentage", max_lengt... | [
"matt.zimola@gmail.com"
] | matt.zimola@gmail.com |
946e1b2f0a1cee39ae8f4abe96713bdc556fc035 | f95dc460bca71e8ec47994ed7cf18ca5d8fa1c0a | /algorithms/math/segmented_sieve.py | 9e12f6d3efe824e61b3deade3d9af44871a2aece | [
"BSD-3-Clause"
] | permissive | prateeknischal/algorithms | ea7feb2a140bd5f4cadb0c86cf7a36746bf6410b | 3fc26e4aa5f6b2e0ab8d02c42c2c2b4a8539dc45 | refs/heads/master | 2021-01-15T11:34:17.485268 | 2015-03-07T15:30:16 | 2015-03-07T15:30:16 | 28,043,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | prime = [2]
prime_len = 0
seg_size = 10000
def primary_sieve(limit):
p = [0] * (limit + 1)
p[1] = 1
sieve_lim = int(pow(1.0 * limit, 0.5)) + 1
for i in range(3, sieve_lim, 2):
if p[i] == 0:
for j in range(i*i, limit , 2*i):
p[j] = 1
for i in range(3, limit + 1, 2):
if p[i] == 0:
prime.append(i)
de... | [
"prateeknischal25@gmail.com"
] | prateeknischal25@gmail.com |
f2aca046e2006a4960d4f08270b0b56e150a3152 | 221b8a5e5ed15135f3c21304c3633730fca4d2ab | /phantom_snap/settings.py | 4cb8ac22e0f5ee0b07548128cb9d55422d25f66b | [] | no_license | mingstar7/phantom-snap | 7ca59ec81bc01818029c644dbf9d9fdb01e47f5a | 1636e9fcccb08383842ed9e2778a7c7c7de3e61f | refs/heads/master | 2020-03-29T06:55:45.186197 | 2016-04-22T05:15:05 | 2016-04-22T05:15:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py |
import os
PHANTOMJS = {
'executable': 'phantomjs',
'args': [],
'env': {},
'script': os.path.join(os.path.dirname(__file__), 'render-ipc.js'),
'timeouts': {
'initial_render_response': 15, # 15 Seconds, PhantomJS takes longer on the first render after startup
'page_load': 5, # Max... | [
"andrew.carter@coheretechnology.com"
] | andrew.carter@coheretechnology.com |
7d8db5bd7e6203127bd888794f3c77b28d921caa | 6832f4ff114ed9a8f28f5135de9dae39a69fcb27 | /csv-to-h5/main.py | 1fe3766381155741138f93006f7fd433d96c2656 | [] | no_license | BHI-Research/ost-datasets | 80ada7ee5fbf9c57a0ad8e27433cdaf50a4c8907 | 1b82009ff2df50c4f240f5a1f258b5c34c094ad4 | refs/heads/master | 2020-04-04T17:17:51.321359 | 2018-11-25T19:33:15 | 2018-11-25T19:33:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,686 | py | #!/usr/bin/env python
#To run python main.py -videos ../../../datasets/OVP/database -users ../../../datasets/OVP/UserSummary_CSV/
"""
H5 structure
-Video 1
---video_name : string video name without extension
---user_frames : users vs frames picks with frame ID
---frames : number of total frames in the video
---fps :... | [
"balmacedalm@gmail.com"
] | balmacedalm@gmail.com |
5ca87c6873c03b661c325cad4d9d4869f1e61224 | 634bce4a6c870a11ec2f55dc702a2b33d42338c8 | /Emulating.py | 10a9dd28b22f176b77311075748e1c061fe5cb55 | [] | no_license | huwenliang1224/helloworld | a72699ebf273ed106a0b4a5f52d8cf30d1f9deb3 | 57102d12a774846b153ad6c950cf617b0affeb34 | refs/heads/master | 2021-01-24T08:54:36.349993 | 2017-06-09T10:14:25 | 2017-06-09T10:14:25 | 93,392,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/python
# coding=utf-8
class Vector:
def __init__(self, x, y):
self.x = x
self.y = y
v1 = Vector(2, 4)
v2 = Vector(2, 1)
print(v1 + v2)
| [
"hwl@winasdaq.com"
] | hwl@winasdaq.com |
5550392e901fa6daa4927b1b500c3a01ded7f9e1 | 39aa02fdb0cf0dbed17380a5fad7329d617c78a8 | /attack.py | 07d1f097cae2ec9e6885d2822c658b61b4faa320 | [] | no_license | innjuun/fastapi-toy | 4e46f28e50b5390febce7ef3564f666f0cd000b8 | 1af29c54d6ff76bb7c7d9c44685f4c0a09d829d2 | refs/heads/master | 2023-05-13T03:14:32.878768 | 2021-06-06T04:35:42 | 2021-06-06T04:35:42 | 374,058,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import aiohttp
import asyncio
async def attack_to_server():
async with aiohttp.ClientSession() as session:
for _ in range(1000):
num = _
body = {
"name": f"아이템{num}",
"price": num * 100,
"is_offer": True,
}
url... | [
"injun.hwang@deliveryhero.co.kr"
] | injun.hwang@deliveryhero.co.kr |
b190532d5b6d642abe2cc30d66c43f775da9c398 | abbb1e132b3d339ba2173129085f252e2f3311dc | /ngraph/python/src/ngraph/opset2/ops.py | 2d01aa3295e688d330be7643061d1a0b49abb1ed | [
"Apache-2.0"
] | permissive | 0xF6/openvino | 56cce18f1eb448e25053fd364bcbc1da9f34debc | 2e6c95f389b195f6d3ff8597147d1f817433cfb3 | refs/heads/master | 2022-12-24T02:49:56.686062 | 2020-09-22T16:05:34 | 2020-09-22T16:05:34 | 297,745,570 | 2 | 0 | Apache-2.0 | 2020-09-22T19:03:06 | 2020-09-22T19:03:04 | null | UTF-8 | Python | false | false | 6,804 | py | # ******************************************************************************
# Copyright 2017-2020 Intel Corporation
#
# 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.apa... | [
"noreply@github.com"
] | noreply@github.com |
20a6e72b54eb96bd50108fafb8ea71a7affed7ec | 1be65c272e2788f647534db9b3b003fc98228a71 | /mi-api/miapi/controllers/about.py | dc84e905469c3868744ffa99e5665e04dad872b1 | [] | no_license | camwes/thisis.me | e93e530cdddaab08d8796985ef88c0882ae142d0 | e1c32d237a7410298fdb034cab8378d5ecc14973 | refs/heads/master | 2021-01-20T21:45:09.389189 | 2012-09-12T00:45:19 | 2012-09-12T00:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py |
def about(request):
return {'project': 'mi-api'}
| [
"howard@mobileidentity.me"
] | howard@mobileidentity.me |
1478b8e7495811393e9b134c07d036a91cd60605 | 4746175b4ba9bfe6d46f4c214bab071eb2d56bab | /class_producer.py | 3f88b5ee25b37b928423babcefef7d3d7c996cdd | [] | no_license | adam-zhang/tools | 914ff4cf5d8c4ef5e76c72a1a535a0c11d06e5c5 | 4264a25122698a2c21ba0e0b6c120a8eac43b6e4 | refs/heads/master | 2021-04-06T08:30:13.017815 | 2018-06-16T03:36:13 | 2018-06-16T03:36:13 | 124,349,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | #!/usr/bin/python2
import sys
import os
# def authorInformation():
# fileName = "author.info"
# if !os.path.exists(fileName):
# return ""
# file = open(fileName)
# content = file.read()
# file.close()
# return content
#
# def writeAuthorInformation(file):
# content = authorInfomat... | [
"mingpingzhang@163.com"
] | mingpingzhang@163.com |
2feadefd82164c159f1a1f5c3fb94e2572357381 | 91884b43a6ba7b36da7e7600761e4f5a39131938 | /13. Heap/Heap.py | 72f4ea8ca75938b56f62f24aa1a8067864ef15b2 | [] | no_license | Oukey/Data_Structures_and_Algorithms | 73592a960c719182006492f059ad0d2124a48c73 | 24d75667ff0f94416327fe1c882936a9b1a64cbd | refs/heads/master | 2020-04-01T15:19:37.382886 | 2019-07-08T18:22:46 | 2019-07-08T18:22:46 | 153,331,930 | 1 | 0 | null | 2019-07-08T18:22:47 | 2018-10-16T18:09:07 | Python | UTF-8 | Python | false | false | 3,630 | py | # Модель кучи/пирамиды
class Heap:
def __init__(self):
self.HeapArray = [] # хранит неотрицательные числа-ключи
self.HeapSize = 0
def Get_size_depth(self, array): # дополнительный метод
'''
Метод расчета и возврата глубины и размера кучи по размеру массива array
Возв... | [
"noreply@github.com"
] | noreply@github.com |
cc6d1d5b27ec22714d0d44908665da610ebf3642 | 931ce63437c491bd310e403b4bb238520f706d28 | /stackstac/stac_types.py | b4aae204cb1d4e3ef982ac747578526d4e2983dd | [
"MIT"
] | permissive | jmorton-usgs/stackstac | 66a4c1c9a76a18103534559b420c0dbbfa269da5 | ba40c91d45c33197a70cecbafa202434135e73f6 | refs/heads/main | 2023-04-08T09:13:25.123754 | 2021-04-05T16:33:10 | 2021-04-05T16:33:10 | 349,442,804 | 0 | 0 | MIT | 2021-03-19T14:01:49 | 2021-03-19T14:01:48 | null | UTF-8 | Python | false | false | 3,839 | py | from __future__ import annotations
"""
Compatibility methods for all the different ways of representing STAC catalogs in Python.
Because dicts and lists just are never enough to represent JSON data.
"""
from typing import (
Dict,
Iterator,
List,
Literal,
Optional,
Sequence,
Tuple,
Typ... | [
"gjoseph92@gmail.com"
] | gjoseph92@gmail.com |
780865a3809acf217609e8b3bb56eee9d4363542 | 54c9a42eb76b708c88b6e67859d979c92633f0ac | /order/migrations/0004_auto_20190525_1156.py | c30cee9911a1595fd3e053b3f4b45aa4ef0f8d9f | [] | no_license | ginlove0/Movie-Store-Django | f1bb336867ad14876c2667780ad0fd77b9310745 | 5e8c99694ea3aa1b42594df4d8eaa80a8e1ecd7b | refs/heads/master | 2022-12-08T02:30:16.124594 | 2019-05-31T12:00:44 | 2019-05-31T12:00:44 | 189,567,725 | 1 | 1 | null | 2022-12-08T01:22:21 | 2019-05-31T09:31:26 | JavaScript | UTF-8 | Python | false | false | 757 | py | # Generated by Django 2.1.2 on 2019-05-25 11:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('order', '0003_auto_20190525_1154'),
]
operations = [
migrations.CreateModel(
name='MovieStatus'... | [
"cuongtm31121996@gmail.com"
] | cuongtm31121996@gmail.com |
c9fbe3e6b3a3bd3fe9cb95899cab08356f4250c5 | dcdf6506db0cad447fb00297537e8b084698c746 | /learning/save_data/demo1.py | 9afe48609cb1697d43eeee4e54be0d4465c81334 | [] | no_license | Iongtao/learning-python3 | f9b41f255c156194c6778d11c0bf0511b8ab6eda | 76ab3651f62a460140e41ba3b154b084a1a8e30d | refs/heads/master | 2022-11-16T00:32:03.320067 | 2020-07-09T15:23:13 | 2020-07-09T15:23:13 | 258,811,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # !/usr/bin/env python3
# coding=utf-8
'''
模拟一个用户登录的场景
用户输入名字后 保存起来
等下次的时候 去读取用户的名字
'''
# 引入必要模块
import json
# 定义一个文件名
filename = 'username.json'
try:
with open(filename) as file_object:
name = json.load(file_object)
except FileNotFoundError as error:
# 没有找到文件 是第一次执行程序
# 开始 用户登录的操作
name = in... | [
"1026637705@qq.com"
] | 1026637705@qq.com |
173b447d8012556ea33fd6b4d985972929447fce | 3e370eac064231b9429db5e01d86eff4e7fe08be | /hello.py | ef26babb9108be7f2eb894277805ae38d9fb5956 | [] | no_license | ZeroShka/myFirstProject | 4923e3fbeaf15da739b9b38738454fd12a29ce02 | a286b75b9bc44379485d4ae7bc8006a7ba6bc2ae | refs/heads/master | 2023-03-04T06:38:57.916123 | 2021-02-02T14:30:52 | 2021-02-02T14:30:52 | 335,324,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | def hellow:
print("hello world")
| [
"gogashtork@mail.ru"
] | gogashtork@mail.ru |
19ef8cdbc0dc5200b8b935d3ddd5ac3d2fe2bd1d | c7bb79543b679061376eb10df110041b0556d54f | /ilastik/applets/thresholdTwoLevels/thresholdTwoLevelsGui.py | a73dad2e8b9c30fd44c512ec28348c480e45f383 | [] | no_license | thorbenk/ilastik | 26eaf01d571415b195a945f169bd3acd47a79613 | fc009544f4c3119f082f0623ed82303527c6fd88 | refs/heads/master | 2021-01-18T21:55:37.803554 | 2013-04-08T16:32:19 | 2013-04-08T16:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,726 | py | import os
import logging
from functools import partial
from PyQt4 import uic
from PyQt4.QtCore import Qt, QEvent
from PyQt4.QtGui import QColor
from volumina.api import LazyflowSource, AlphaModulatedLayer
from ilastik.applets.layerViewer import LayerViewerGui
from ilastik.utility.gui import threadRouted
logger = log... | [
"bergs@janelia.hhmi.org"
] | bergs@janelia.hhmi.org |
081bb589f53f80942ff44d7a744023ca053ec710 | cb76b8203a00442fdc67930a44812d3fa021418f | /Scrapy/ecommerce_spider/mi_primer_spider/settings.py | b8010679821291956602f4c8638f3649367703b8 | [] | no_license | mlaricobar/WebScrapingCourse | 0cc7d59389b83bd89d2f6683ec7cf945c0f782fc | 240de6ff69f8ea56d06d705aa6bbb7a15e6e0ed8 | refs/heads/master | 2020-05-19T04:23:53.975933 | 2019-06-08T23:39:08 | 2019-06-08T23:39:08 | 184,824,093 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | # -*- coding: utf-8 -*-
# Scrapy settings for mi_primer_spider 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/lat... | [
"bcpcoelab@MacBook-Pro-de-BCP.local"
] | bcpcoelab@MacBook-Pro-de-BCP.local |
7911a7b49df3a420023bab4417f2d8491c0d6810 | bf72e9457d915ab56757a8a17cd903f9bb75fcfd | /src/Experiment-NER/model/wordsequence.py | ee00d7088f786dc95ba4270fc81a70c81bda9c47 | [] | no_license | NLP1502/NLP | c345646ec5cd67fffe6428482ef5e11db3e357b8 | 7f9552295f0c0fdd881ca80c52cfb43ea4739fa2 | refs/heads/master | 2020-04-05T04:00:22.398480 | 2019-04-09T12:31:07 | 2019-04-09T12:31:07 | 156,534,643 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,644 | py | # -*- coding: utf-8 -*-
import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from wordrep import WordRep
class WordSequence_circulationBiLSTM(nn.Module):
def __init__(self, ... | [
"448197823@qq.com"
] | 448197823@qq.com |
b955d417130210e126007ebe852a1f3063956daa | f61d615a1f484f85e98f85f797161d39cbe87c84 | /lovett/tree.py | 5d2ec4783e02da254e805ecf8f884c93034f965d | [] | no_license | aecay/lovett | 6105bb3bc62f5d1aba25233ec2e2f61363146fc9 | 847c218efc606ef4859cfaa398593d608a4a11e4 | refs/heads/master | 2020-05-18T18:51:29.177912 | 2019-04-17T13:04:59 | 2019-04-17T13:04:59 | 43,751,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,285 | py | from __future__ import unicode_literals
import abc
import collections.abc
import io
import re
import unicodedata
import lovett.util as util
import ipywidgets as widgets
from traitlets import Unicode
# TODO: need read-only attribute for trees, from indexed corpora
_METADATA_KEY_RX = re.compile("^[A-Z0-9-]+$")
d... | [
"aaronecay@gmail.com"
] | aaronecay@gmail.com |
37760705cf9b18b550d24f4ddd56bf7768bb0a14 | fdb0715b8644e2e2043b91e0f271ceeb98ea6c29 | /mysite/env/bin/easy_install | 4548d80d352ab30c4fac5dbadc8d14acd8a89323 | [] | no_license | vivekk81/Flybaxi | 64da8e98e1d273d7b1528f5b602fc03b8d7d0a93 | 947f18973ab285aeaf20e6f3e235b7fa07a746d2 | refs/heads/master | 2021-08-31T07:05:43.366632 | 2017-12-08T07:12:44 | 2017-12-08T07:12:44 | 113,543,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/flybaxi/Test/mysite/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vivek.kumawat@oneconvergence.com"
] | vivek.kumawat@oneconvergence.com | |
8e45a5d0f33b6ef3c3ec1f9a9cbe1fafc2635b40 | aef4faef04d851fe24f2b3f28ae98daa2152e543 | /spikestim/negbin_bayes.py | c4b32098dcf07116803003630d8ad78e1e479204 | [] | no_license | dattalab/spikestim | b1580eec250e0a6b03796b200dfe22b15112228b | 631152b3f173dc6c8fa2601ad917f899dc1210b9 | refs/heads/master | 2021-01-21T08:44:00.379078 | 2015-12-04T13:53:51 | 2015-12-04T13:53:51 | 45,796,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | from __future__ import division
import numpy as np
from pybasicbayes.distributions import NegativeBinomial
'''
The code in this file provides utilities for Bayesian estimation of negative
binomial parameters through MCMC methods provided by pybasicbayes.
The main function to use is get_posterior_samples(data, num_s... | [
"mattjj@csail.mit.edu"
] | mattjj@csail.mit.edu |
bb572a79e60a0a8a0d4393af1087bce2a4f2f3b2 | 26f29950c9a6fd56a7147720b2d287ca51ddbe28 | /bakery/settings.py | 4af634489e952c1b903088f55c8dd7a67d67c818 | [] | no_license | Ayushshyam2404/Bakery-website | 26e16362e284b2e5b53e0fd123e57abee4684ba3 | bed1bab65a06d1ef092e184500b8062469c20ba6 | refs/heads/main | 2023-09-03T23:27:22.158388 | 2021-10-30T16:26:46 | 2021-10-30T16:26:46 | 411,732,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | """
Django settings for bakery project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"ayushms@gmail.com"
] | ayushms@gmail.com |
96f3ec28db2a1c2af9a9a25cd33811a3fbefb6ab | e7f9995c221e94c8bc41b543c0aa68483495cd91 | /vcx/wrappers/python3/demo/vcxbase.py | 931be293a8cd7df4590b2915c350f5c501f79c42 | [
"Apache-2.0"
] | permissive | scipsycho/indy-sdk | 530ce108e7324711211a8a265550ab2e01d8e23f | 329c48e1b2a3a98da95f11bcd4921d3a1d5093ae | refs/heads/master | 2020-03-31T04:33:50.208411 | 2018-10-21T12:05:07 | 2018-10-21T12:05:07 | 151,910,826 | 0 | 1 | Apache-2.0 | 2018-10-07T05:58:23 | 2018-10-07T05:58:23 | null | UTF-8 | Python | false | false | 1,567 | py | import asyncio
from vcx.api.schema import Schema
from vcx.api.vcx_init import vcx_init
class VCXBase:
@staticmethod
def get_loop():
if not hasattr(VCXBase.get_loop, "loop"):
VCXBase.get_loop.loop = asyncio.get_event_loop()
return VCXBase.get_loop.loop
@staticmethod
def lo... | [
"douglas.wightman@evernym.com"
] | douglas.wightman@evernym.com |
99ffefdbccf2a1a3a12a5011e7a15d4b9ae02e53 | 000ad8b32113b1e00a4905e7e574e85da99f63e9 | /test.py | aa2e4cdfd7750dd72c8d06e19e57db8a8fb63c6d | [] | no_license | KondratievaOlesya/3-lab | c68b3951145610f81f94876b6a32b0ec671a60cb | 5f5778e737a514711d30c619ab5bb5c9d5145931 | refs/heads/master | 2020-11-28T09:20:13.471156 | 2019-12-23T14:40:03 | 2019-12-23T14:40:03 | 229,768,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,963 | py | import numpy as np
import cv2
import json
from math import exp, pi, sqrt, cos, sin
from matplotlib import pyplot as plt
COLS = 1
ROWS = 0
def average(a):
s = 0
N = len(a)
for i in range(N):
s += a[i]
return s / N
def getL(M, N):
simpleNumbers = [2, 3, 5, 7, 11, 13,
... | [
"noreply@github.com"
] | noreply@github.com |
5fc0c70144ef4b404117adf396ddb6fcb74077d9 | 986ca43298b668cfa70327d3a8f8144a3c531941 | /Bulk Desity.py | 26e73e990a0b3672889ece352637027678f538c5 | [] | no_license | rossandr/Graduate_Project | da45f6a763b30448db9f9cd4e1093078b9cf7274 | f8ec1bfe68e78d4ec3982eb70cc2cabea17b97c0 | refs/heads/master | 2023-07-08T18:34:03.914846 | 2021-08-12T18:40:27 | 2021-08-12T18:40:27 | 395,414,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py |
Measure_x = 17.5
Measure_y = 16.5
Measure_z = 1 + (0/8)
Weight_sample = 1276.4
Sample_MC = 27.845
Box_weight = 633.5
Weight_sample = Weight_sample - Box_weight
### For corrected bulk desnity for moisture contnet ####
Sample_MC = Sample_MC / 100
Sample_MC = 1 - Sample_MC
Weight_sample2 = Weight_sample * Sample_MC
... | [
"Ball416base416!"
] | Ball416base416! |
4d0041c3dee915a21bc4180d7b72477acfc37fa1 | 5ddf45ba119e7d54c3a8686728778513c340e99f | /workingcat/settings-dev.py | e095f3f96ce123b01775be01fb80a9dcdc799f2c | [] | no_license | smichelleism/WorkingCat-App | a066653b1cb47ec7ad36aa882b9ebe681f219b2d | d4a4d95d6beda6f144cb23f698773ad3f2e30a37 | refs/heads/master | 2021-05-13T15:33:37.420345 | 2018-10-09T23:14:35 | 2018-10-09T23:14:35 | 116,772,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,382 | py | """
Django settings for workingcat project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"parallaxplace@gmail.com"
] | parallaxplace@gmail.com |
b6d9a025d803dd7983357c17927e7543de6c6a3d | c2415d039d12cc3b1d587ce497527ff62867df41 | /authentication/config.py | 618701e23120609d0033d92185799d74b676d777 | [
"MIT"
] | permissive | admin-dashboards/django-dashboard-light | dc207c07d1987b7b4af52c449502ccd797d4d979 | 96142cf7f9e807e575a1d444e1bb291d3f956652 | refs/heads/master | 2022-09-04T16:48:08.087092 | 2022-08-23T07:37:03 | 2022-08-23T07:37:03 | 232,156,115 | 1 | 0 | MIT | 2020-01-06T18:02:01 | 2020-01-06T18:02:00 | null | UTF-8 | Python | false | false | 173 | py | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from django.apps import AppConfig
class AuthConfig(AppConfig):
name = 'authcfg'
| [
"developer@rosoftware.ro"
] | developer@rosoftware.ro |
3d8d92bf94031f702d5953f7eca9a3837ac743ea | c2d44477c5e4d756864e1f67ba6b1761ab9b50fc | /misc/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A399FB18-8A78-4AB3-90C4-48683148A77D/suggest.py | c83cdb05a2d25a703b684f1cd2d8a7d2e1388261 | [
"MIT"
] | permissive | isme2n/Dotfiles | 5fdab4fa0b7a4b25d8f11b981b35c21e9ad51ce8 | 9402bbcb338e157d613878261c273b91986615e6 | refs/heads/master | 2020-03-25T17:58:42.563577 | 2018-08-08T12:05:03 | 2018-08-08T12:05:03 | 144,006,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/python2.7
# -*- coding: utf8 -*-
import sys
import json
from urllib import quote
from urllib2 import urlopen
from unicodedata import normalize
reload(sys)
sys.setdefaultencoding('utf-8')
def parse_item(item):
word, meaning = item.split('|')[1:]
if meaning == ' ':
title = u'%s' % word
e... | [
"zooqzqz@gmail.com"
] | zooqzqz@gmail.com |
d498441dad78a7fe5fff29db0b12c9f860f4ca8b | a527e2545418e9d7ef8e46f03ee50135faef7cda | /generateBomb.py | 321b7d59154d260cc2a01d7f4914557dd1e8e69d | [] | no_license | MapleJack/The-generating-tool-of-non-recursive-zipboom | 4bff20749116112e8fb48a11bd60391affe2f981 | eb5ba74ad4a409831697ede1f379a497dd1eeff4 | refs/heads/master | 2020-12-10T15:44:11.012180 | 2020-01-13T17:44:03 | 2020-01-13T17:44:03 | 233,636,410 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,784 | py | import os
import random
"""
These are for overlap
for i in range(100):
mode = "full_overlap"
num_file = random.randint(2, 23)
compressed_size = random.randint(1111, 10000)
command = "python3 zipbomb --mode={mode} --num-files={num_file} --alphabet ABCDEFGHIJKLMNOPQRSTUVWXYZ --compressed-size={compresse... | [
"noreply@github.com"
] | noreply@github.com |
a42a79d97b8e29b148476dc6d40564bfd92ecc97 | d644b6cabb4fa88cf900c59799a2897f5a0702d8 | /tests/base_tests/polygon_tests/test_triangulate.py | 47fe7d21c053c0b7be0a50fce9abd3e709ea7763 | [
"MIT"
] | permissive | lycantropos/gon | c3f89a754c60424c8e2609e441d7be85af985455 | 177bd0de37255462c60adcbfcdf76bfdc343a9c1 | refs/heads/master | 2023-07-06T01:11:57.028646 | 2023-06-26T20:47:14 | 2023-06-27T00:30:06 | 194,597,548 | 15 | 1 | MIT | 2023-06-27T00:30:07 | 2019-07-01T04:06:06 | Python | UTF-8 | Python | false | false | 546 | py | from functools import reduce
from operator import or_
from hypothesis import given
from gon.base import (Polygon,
Triangulation)
from . import strategies
@given(strategies.polygons)
def test_basic(polygon: Polygon) -> None:
result = polygon.triangulate()
assert isinstance(result, Tria... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
14d7b78058d175e6ca8268965bf499806de543b8 | 548bf699ee74509bd2cecd7c591fbab55a4ffcab | /TestPerson/my_tmp/ThisDBCreate.py | 1cf5bb8ce16b90f8cdc7607dce21af158cd626aa | [] | no_license | jrom876/Python_Person | 265d173c74652f4bf0139bd1fd98c8429b2f71d8 | 467d4110db4b497c89dcddbd71aa537247f91620 | refs/heads/master | 2023-05-14T05:43:29.679466 | 2021-06-07T15:08:25 | 2021-06-07T15:08:25 | 250,911,754 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | #!/usr/bin/python3
## https://www.geeksforgeeks.org/sql-using-python/
# Python code to demonstrate table creation and
# insertions with SQL
# importing module
import re
import os
import ast
import pdb
import math
import time
import sqlite3
import unittest
from sys import *
from random import *
from ThisGroup import *
... | [
"noreply@github.com"
] | noreply@github.com |
8fec9c208a41be779b4df0baa44797946a3c9411 | 86cdeaa10ebb64b98c499f34610064e7d60c2724 | /0_network/scripts/3_graph_to_mtx.py | 23c35c099baf6c027f659c40e796fe41083d1444 | [] | no_license | hendrosaputra/sf_abm | dd6677894180e9930e5465938b9c6df75ff70b4b | 0c3f50ed8e2afb7cf4ed8f3d94e058c69a062f62 | refs/heads/master | 2023-03-17T00:36:08.533601 | 2018-09-11T22:35:04 | 2018-09-11T22:35:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | import igraph
import sys
import scipy.sparse as sp
import scipy.io as sio
import numpy as np
import json
import time
import os
absolute_path = os.path.dirname(os.path.abspath(__file__))
folder = 'sf'
sf_graph_file = absolute_path+'/../data/{}/network_graph.pkl'.format(folder)
g = igraph.Graph.Read_Pickle(sf_graph... | [
"bz247@cam.ac.uk"
] | bz247@cam.ac.uk |
f2a619386bf8d6e104228dd07789616fafabf360 | ea137d3f98b7b32bf43c1eb7f8d78e0199c7bac8 | /flask_blog/models/entries.py | 04b5d670319850d625767dc81b49fe713ed6bdf3 | [] | no_license | ryoherisson/flask_ex | 2b49f1557f763888c7d04f25dfdb0c1d9d085388 | 0de355f153c9a1b8d0d0392744de0aa365bd4dd9 | refs/heads/master | 2021-05-23T10:19:23.348612 | 2020-04-06T15:34:27 | 2020-04-06T15:34:27 | 253,229,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | #flask/models/entries.py
from flask_blog import db
from datetime import datetime
class Entry(db.Model):
__tablename__ = 'entries'
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(50), unique=True)
text = db.Column(db.Text)
created_at = db.Column(db.DateTime)
def __init_... | [
"ryhizw@gmail.com"
] | ryhizw@gmail.com |
e1f6613cc9681c42b7d3e9225e62499c04ee0236 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/VelvetTie/pancakes.py | c27cdec091f729b20528e32b3b22c5d62d391cef | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,853 | py | import sys
def flip(to_flip):
"""
>>> flip('-')
'+'
>>> flip('+')
'-'
>>> flip('+++')
'---'
>>> flip('-+')
'-+'
>>> flip('--+')
'-++'
:param to_flip:
:return:
"""
num_pancakes = len(to_flip)
flipped = [0 for i in range(num_pancakes)]
for i in ra... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
63279952a4a72128f7c502683329c659c581d2b9 | 0c73246fa51b3faa01cc8b9cea5b8cd87e63a00b | /python/Diffie-Hellman.py | d7a557ba39955dd30c8ece84013d5400c8ec78ca | [
"MIT"
] | permissive | Ikshitkate/java-html-5-new-project | 81793a5ba5b4e9e00c05d2ede85a095b63f46559 | 056c1e409fe3422c61c04397ee7b0ab87feff7d1 | refs/heads/main | 2023-08-29T06:05:05.743256 | 2021-10-27T15:07:50 | 2021-10-27T15:07:50 | 421,359,962 | 1 | 2 | MIT | 2021-10-31T13:04:33 | 2021-10-26T09:22:36 | Python | UTF-8 | Python | false | false | 1,287 | py | # -*- coding: utf-8 -*-
# 1. Alice and Bob agree on a prime number p and a base g
# 2. Alice chooses a secret number a, and sends Bob (g^a mod p)
# 3. Bob chooses a secret number b, and sends Bob (g^b mod p)
# 4. Alice computes ((g^b mod p)^a mod p)
# 5. Bob computes ((g^a mod p)^b mod p)
# 6. Alice and Bob can use th... | [
"72209667+dewanshk3255@users.noreply.github.com"
] | 72209667+dewanshk3255@users.noreply.github.com |
ca6f915a484b6e49f127e6c62a2082f7c1fdd1fb | 197567681aa0233b1fb9efad0b928bacde15cb05 | /aas.py | 6d1d2d79b33b7eb52633c6ec05afb02f6a814e83 | [] | no_license | rsimai/everything-as-a-service | fd3f676668577861acffc514d46cce0b271641ff | 78bf65583effd463b6b75b95fe362d9b27bf20d2 | refs/heads/master | 2021-01-10T04:30:58.638050 | 2015-12-14T20:13:31 | 2015-12-14T20:13:31 | 47,816,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# rsimai@suse.com
# Hackweek 13, learning Python
from string import upper, lower, ascii_lowercase
from random import randint
with open('/usr/share/dict/american', 'r') as fd:
a =fd.read().splitlines() # get all words into this list
results = [''] ... | [
"robert.simai@suse.com"
] | robert.simai@suse.com |
14bf5cf90b6c1639a6212a1ad20a7d83da0db8d4 | a407b1a8dc2b32abb62d9a530929df7a20f52c36 | /virtual/bin/django-admin.py | 4502bf3119f24ce5ead6e3c6e1658bda50631eb5 | [
"MIT"
] | permissive | vincent8880/awards | 50f1b1173f9172d83413a8cff83d31709c8f50a7 | 6d5a3f626d56231d63ca7c57bf63961f4f792307 | refs/heads/master | 2022-12-13T10:15:52.615554 | 2019-08-06T11:06:47 | 2019-08-06T11:06:47 | 200,595,197 | 0 | 0 | null | 2022-12-08T05:58:59 | 2019-08-05T06:28:03 | Python | UTF-8 | Python | false | false | 157 | py | #!/home/vincent/Desktop/awwards/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"ododovincent54@gmail.com"
] | ododovincent54@gmail.com |
df7a1176a868f9c8b3041ebeea505f71d744fa98 | 0514277bb8a664d87db3cc8c532fe184d9343fca | /gated_launch_backend/settings_runner.py | 6d1f6fe672992b9a2f016528a058ea6fdf55f084 | [
"MIT"
] | permissive | ycheng-aa/gated_launch_backend | 98e7e0b63bbb8bb02a8d1d7de5e0ee875fccad67 | cbb9e7e530ab28d5914276e9607ebfcf84be6433 | refs/heads/master | 2020-03-22T03:48:29.261106 | 2018-07-03T05:08:02 | 2018-07-03T05:08:02 | 139,453,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | """
Extra Django settings for test environment
"""
from .settings import *
# Database settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'test.sqlite3',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
CELERY_BROKER_URL =... | [
"chengyu21@wanda.cn"
] | chengyu21@wanda.cn |
f769efc5c9b2d843296096fb467e5d995395a737 | ec672fbd33995ab17817f0c4461fbff5f7100daf | /pattern02.py | 91d1e60cd54f3b503abb6d93027543407101fe62 | [] | no_license | avachen17/coding_projects2017 | 8475e0fa937fda69d36cd35ee9b98bdb26627aa3 | d7ab98a9162b3cf6f754d65967bd99dfa1894fe2 | refs/heads/master | 2022-03-31T20:52:48.397053 | 2020-01-17T05:46:25 | 2020-01-17T05:46:25 | 100,625,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import driver
def letter(row, col):
if (row < 10 and col < 20):
return 'R'
else:
return 'Q'
if __name__ == '__main__':
driver.comparePatterns(letter)
| [
"noreply@github.com"
] | noreply@github.com |
b5972a27ef0aa3b18fd21a658509b80cb4f2c5f3 | fe309c9d3d83a0ba14f47d9dd93ae52acc481193 | /python-api/rest.py | bf39aa453f7c853355e205170c1e44f82856abcb | [] | no_license | neyda4nik/doge-waves-gateway | 81bcbdd23b8f3dd8ec5d15f2c21d56fdeec32756 | d3af9c65d5e1a20f3371b95667dd00646038d1d7 | refs/heads/master | 2020-04-09T01:11:22.229607 | 2018-09-03T12:42:42 | 2018-09-03T12:42:42 | 159,894,958 | 1 | 0 | null | 2018-12-01T00:53:55 | 2018-12-01T00:53:54 | null | UTF-8 | Python | false | false | 11,544 | py | #!/usr/bin/env python
'''
Functional REST server for Python (2.7) that enables the exchange of Dogetokens
created on the waves blockchain and dogecoins on the dogecoin blockchain
* Map URI patterns using regular expressions
* Map any/all the HTTP VERBS (GET, PUT, DELETE, POST)
* All responses and payloads are conver... | [
"noreply@github.com"
] | noreply@github.com |
b883d4c573cddb076f01b626f9aaa9e05aeb7dec | 2ec3bd0f0786be4673b54736bbc47064c40b2cc6 | /douban_book/book_detail.py | 7e62a63c8101cd163182daa6b72ad15bb5d8f737 | [] | no_license | biningo/personal_crawler | 8794de19267e58900f6c3270278ef2d19cdeec67 | 80cf35e4799db0297d808bd9c2f44a98489e9cc2 | refs/heads/master | 2023-02-25T06:14:14.654902 | 2021-02-03T12:26:47 | 2021-02-03T12:26:47 | 334,612,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import requests
from common_header import headers
from lxml import etree
def book_directory(url: str):
resp = requests.get(url=url, headers=headers)
selector = etree.HTML(resp.text)
id = "dir_" + url.split('/')[-2] + "_full"
return '\n'.join(list(map(lambda x: x.strip().replace('\u3000', '').replace('... | [
"biningo@yeah.net"
] | biningo@yeah.net |
4b1cb77969fda2c1a486d85ba075780fdade613f | 19f5de503cc0c599fd6cf1cb0d94d4ddbaeb3f63 | /website/migrations/0017_auto_20210726_0026.py | eb09c3f639295b6a8228eafb0040269a6828fa75 | [] | no_license | TheStaticTurtle/thestaticturtle.fr.dynamic | ca92e7a8ca4ab8611ab2c9400bcfd7d17a0025dc | 7c8ecede266f09d07e707cb593f12d466713a17b | refs/heads/master | 2023-06-25T16:42:18.784849 | 2021-07-26T17:41:00 | 2021-07-26T17:41:00 | 389,480,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 3.2.5 on 2021-07-25 22:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('website', '0016_auto_20210726_0019'),
]
operations = [
migrations.AddField(
model_name='project... | [
"tuglersamuel@gmail.com"
] | tuglersamuel@gmail.com |
6d9e24b7f5a7d4c797e809db988a6cd0847b44c4 | 9714dc27d95fb2edc38330a102d016c7e1563267 | /main_game.py | 7f3e682f0924bef6d44f01b5a7cb1f8269c0b59f | [] | no_license | ScriptLineStudios/Pixel-Pizza-Run | 98edf68668b4ca13367eca768e5aa5e5c905b7b2 | b4f0e8eb0ff18f6c3e012714c5a2b5cc41dda811 | refs/heads/main | 2023-08-12T02:50:06.681103 | 2021-10-12T09:24:39 | 2021-10-12T09:24:39 | 416,267,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,686 | py | import pygame
import sys
import random
import time
pygame.init()
#WINDOW_SIZE = (800, 600)
RED = (255, 0, 0)
BLACK = (0,0,0)
GREEN = (0, 255, 0)
BLUE = (169, 248, 252)
clock = pygame.time.Clock()
WINDOW_SIZE = (800,600)
screen = pygame.display.set_mode(WINDOW_SIZE,0,32) # initiate the window
display = pygame.Surf... | [
"85095943+ScriptLineStudios@users.noreply.github.com"
] | 85095943+ScriptLineStudios@users.noreply.github.com |
413e6e2f4f876c0cefa1af80c60d0d9b21401e3e | f3879dd381476514e5c37b2a5f564145f97cf809 | /crypto/200/decode.py | 37028c9752aa79eeac3c2a8faa00cdd08e1ee1b9 | [] | no_license | ritsec/RITSEC-CTF-2018 | 430d3719a4949283d101fcc5aadc99d9cb7e42d8 | 00c481fa41a0c02cc104f2b4dcdeb26e1248ef77 | refs/heads/master | 2020-04-07T06:30:39.939201 | 2018-11-30T17:53:15 | 2018-11-30T18:14:47 | 158,138,596 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | ans = "🤞👿🤓🥇🐼💩🤓🚫💪🤞🗣🙄🤓🥇🐼💩🤓😀✅😟🤓🍞🐼✅🚫💪🥇🤓🐼👿🤓🚫💪😟🤓👿😾😀😯🤓👿🤞✅🔥🚫🤓🥇🐼💩🤓👻💩🔥🚫🤓😀🗣🔥🍞😟✅🤓🚫💪😟🔥😟🤓🚫💪✅😟😟🤓💔💩😟🔥🚫🤞🐼🗣🔥😭🤓🍞💪😀🚫🤓🤞🔥🤓🥇🐼💩🤓🗣😀👻😟🤢🤓🍞💪😀🚫🤓🤞🔥🤓🥇🐼💩✅🤓💔💩😟🔥🚫🤢🤓🍞💪😀🚫🤓🤞🔥🤓🚫💪😟🤓😀🤞✅🤓🔥🐙😟😟😎🤓👀😟😾🐼🤬🤞🚫🥇🤓🐼👿🤓😀🗣🤓... | [
"sxn6296@rit.edu"
] | sxn6296@rit.edu |
b118f7c657f941a6bddce32f35f2d83780071954 | d5fcafedcd49a666e960eff3c61cfc1bfe9e081c | /setup.py | e2c764c5e29695769d00c9b9812696849ab732a7 | [
"BSD-2-Clause"
] | permissive | IndustriaTech/filebrowser-safe | 29155ef662604d5b4f6ec8a9a94002d4c0e82858 | 2eda8ae594617a58455bca63f88689f2f0579aad | refs/heads/master | 2021-05-29T07:49:26.957672 | 2014-02-05T09:13:42 | 2014-02-05T09:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py |
from setuptools import setup, find_packages
setup(
name="filebrowser_safe",
version="0.3.1",
description="A snapshot of the filebrowser_3 branch of django-filebrowser, "
"packaged as a dependency for the Mezzanine CMS for Django.",
long_description=open("README.rst").read(),
autho... | [
"steve@jupo.org"
] | steve@jupo.org |
9183398680396d4f439186c31170ff009fcda702 | b7ba914d3c6b4222017c334596a695549320c495 | /examples.py | 4655c847a5a5b7c1f556df4e70019b0b54b89685 | [] | no_license | this-josh/raspberrypi-ws2812-app | bb696001babc4e4e8d417a649a6299b9bcd01b81 | 58e9904e9405746b565ca05ca0c9c9d4fb5e4596 | refs/heads/master | 2023-01-31T13:28:54.271336 | 2020-12-12T14:19:26 | 2020-12-12T14:19:26 | 319,987,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,453 | py | #Must be run with sudo
import time
from rpi_ws281x import *
import argparse
# LED strip configuration:
LED_COUNT = 300 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!).
#LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0)... | [
"joshuaarkirk@hotmail.co.uk"
] | joshuaarkirk@hotmail.co.uk |
6c5bcffedb01927008252fa07772bd2336994e6b | 31a0b0749c30ff37c3a72592387f9d8195de4bd6 | /rllib/agents/sac/rnnsac_torch_policy.py | 8418f88b165cadcf4dab4ca3b8deb974de66af01 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | longshotsyndicate/ray | 15100bad514b602a3fa39bfe205288e7bec75d90 | 3341fae573868338b665bcea8a1c4ee86b702751 | refs/heads/master | 2023-01-28T15:16:00.401509 | 2022-02-18T05:35:47 | 2022-02-18T05:35:47 | 163,961,795 | 1 | 1 | Apache-2.0 | 2023-01-14T08:01:02 | 2019-01-03T11:03:35 | Python | UTF-8 | Python | false | false | 18,307 | py | import gym
import numpy as np
from typing import List, Optional, Tuple, Type, Union
import ray
from ray.rllib.agents.dqn.dqn_tf_policy import PRIO_WEIGHTS
from ray.rllib.agents.sac import SACTorchPolicy
from ray.rllib.agents.sac.rnnsac_torch_model import RNNSACTorchModel
from ray.rllib.agents.sac.sac_torch_policy impo... | [
"noreply@github.com"
] | noreply@github.com |
b180b7ee13e37740ff672f524e6d84abb68a9392 | 4ce2cff60ddbb9a3b6fc2850187c86f866091b13 | /tfrecords/src/wai/tfrecords/object_detection/utils/json_utils_test.py | abd785fffd16944d382209e289dc19bd61f7b9e2 | [
"MIT",
"Apache-2.0"
] | permissive | 8176135/tensorflow | 18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0 | 2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1 | refs/heads/master | 2020-11-26T05:00:56.213093 | 2019-12-19T08:13:44 | 2019-12-19T08:13:44 | 228,970,478 | 0 | 0 | null | 2019-12-19T03:51:38 | 2019-12-19T03:51:37 | null | UTF-8 | Python | false | false | 3,594 | 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... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
7db217e7cc29ecfb32550fe7e3376a0e28b9a300 | e1b4c3874d891167b7fe0cd3732bf4be9ff45b60 | /Session10/list_exercise.py | dbbb18a7aa0fa7d8f3f9cf7c9d7212d0f3d7b39d | [] | no_license | dchu07/MIS3640 | 987a4a311e12c916a3d344dd3a63da538613a9ff | fa3db8cfd76e57e2c993a59a368bae50cf32226b | refs/heads/master | 2020-07-20T13:20:35.342544 | 2019-11-14T22:46:27 | 2019-11-14T22:46:27 | 206,649,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,626 | py | def nested_sum(t):
"""Computes the total of all numbers in a list of lists.
t: list of list of numbers
returns: number
Expected output:
>>> t = [[1, 2], [3], [4, 5, 6]]
>>> nested_sum(t)
21
"""
total = 0
for number in t:
sum = 0
for i in number:
sum +=... | [
"37084052+dchu07@users.noreply.github.com"
] | 37084052+dchu07@users.noreply.github.com |
0758eab4f519657fc8e35da6a82871aab5aa749c | 3395b1653c3969bc5f1b309c2460c7c2ee7a536a | /us05.py | f08a202be640c5465d66a177bc088ddfd2610cb1 | [] | no_license | JK117/19S-Stevens-SSW-555 | 0daf570063de4a31f0e3a7b2d4c16b2df24539d4 | ce8f94545aff6351e8e94f0ccb48e096bc3b0284 | refs/heads/master | 2020-04-24T04:57:33.864713 | 2019-05-09T21:09:46 | 2019-05-09T21:09:46 | 171,721,158 | 0 | 0 | null | 2019-05-09T21:09:47 | 2019-02-20T17:45:25 | Python | UTF-8 | Python | false | false | 1,284 | py | # US05: Marriage should occur before death of either spouse
# BY Shan Jiang
def check_marr_b4_death(gedcom):
for family in gedcom.family_list:
husband_id = family['Husband ID']
wife_id = family['Wife ID']
marr_date = family['Married']
for individual in gedcom.individual_list:
... | [
"sjiang28@stevens.edu"
] | sjiang28@stevens.edu |
3b13aff470ffd80ba46db1e862765dfe6b9ae082 | 5422886e955f9b04a6fe73b676cf9a6548576e1c | /train_scene.py | 2b52c33342f30ce0bfe30bcf66d9f9e6c41eb06d | [] | no_license | Smellly/self-critical.pytorch | 9d7d30c41265a72c5032c35c6559ce43e7dd9814 | 97f60b9018d92935c5fb1ff4b4d24bce5db9dff3 | refs/heads/master | 2020-03-13T21:09:39.365429 | 2019-04-03T15:02:17 | 2019-04-03T15:02:17 | 131,289,660 | 0 | 0 | null | 2018-04-27T11:48:29 | 2018-04-27T11:48:29 | null | UTF-8 | Python | false | false | 10,800 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from datetime import datetime
import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import time
import os
from six.moves import cPickle
import opts
import models
from dataloader_... | [
"schenxmu@gmail.com"
] | schenxmu@gmail.com |
bc96eaec95f8bbf63398a9d38e3a8aff7a7da8e4 | a468d56ed426121c186833e5b95ec83b3b242dc8 | /Chapter03/Activity03.02/spark_twitter.py | 7aaf6316db437fb13649e7866d4e96791f0cc0dc | [
"MIT"
] | permissive | anand-ns/The-Artificial-Intelligence-Infrastructure-Workshop | 7f99fb54e49ce48d93511fc89e419182d577dfd7 | f6370721fba628df10a361faebb75aced921004b | refs/heads/master | 2022-01-18T18:00:50.668218 | 2020-03-02T22:39:17 | 2020-03-02T22:39:17 | 244,703,105 | 0 | 0 | MIT | 2020-03-08T17:38:50 | 2020-03-03T17:48:39 | null | UTF-8 | Python | false | false | 1,234 | py | from pyspark.sql import SparkSession
from pyspark.sql.functions import from_json, window, to_timestamp, explode, split, col
from pyspark.sql.types import StructType, StructField, StringType
tweet_datetime_format = 'EEE MMM dd HH:mm:ss ZZZZ yyyy'
schema = StructType([StructField('created_at', StringType(), True),
... | [
"bas@gdink.com"
] | bas@gdink.com |
5e7bbe9c47d81e6e56666777a63f72df32abf54c | 0b3d3e6473215d5400f2ce26f0d651bd86aca31a | /build/catkin_generated/order_packages.py | 99334f4a1e2104b784328d83f52aab253b9fb5f5 | [] | no_license | DonJons42/Astek-Projet-Tondeuse | eb7e39d6b7d727fb5abeff48be74ac9b5507aa51 | ef545ac4a1dbb139766fa5cf2a9df5d1cae20f1b | refs/heads/master | 2020-04-20T01:18:55.908951 | 2019-01-31T15:07:34 | 2019-01-31T15:07:34 | 168,541,973 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/stagiaire019/astek_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/stagiaire019/astek_ws/devel;/opt/ros/kinetic".split(';') ... | [
"adsquall@gmail.com"
] | adsquall@gmail.com |
936e29c2b829547f6f24b47e4aa341c563d9ba79 | b88c5bbab23a914580436d0dcb64e78aebfae55f | /abc/abc047_a.py | ec4edfcc7a690dab0cb9e56e644568e66530bd2f | [] | no_license | geminoa/atcoder-tmp | b12d2a6c636647f390ccbf618ec57b9ebe68f4d3 | 54e0cc367e9d996dbe3b38d49c100dfc60ffe1eb | refs/heads/master | 2022-11-05T12:42:26.603808 | 2020-06-09T05:53:11 | 2020-06-09T05:53:11 | 270,915,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | g = sorted([int(i) for i in input().split()])
if sum(g[:-1]) == g[-1]: print('Yes')
else: print('No')
| [
"geminoa@gmail.com"
] | geminoa@gmail.com |
9437b22de091d80aa2c82a98f320db82a63606b3 | 5c3a3dd590fbe9619e538cefd70e5c1877bc7599 | /labs/07-strings/02-info-leak/exploit.py | 9054b6a83b8e965b4971d9824689ebeca845842f | [] | no_license | rambasnet/cns | abe5424e692659fdd37433a2b4edeedfd8d2d426 | 4723611e04fe79c938011e8c552743657057fd17 | refs/heads/master | 2023-01-24T17:40:42.789737 | 2020-12-07T14:58:54 | 2020-12-07T14:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/env python
from pwn import *
binary = "./info_leak"
context.binary = binary
io = process(binary)
# Determine my_evil_func address:
# nm info_leak | grep ' my_evil_func'
evil_func_address = # TODO
# Send 32 bytes to trigger leak. Extract leaked information.
io.send(32*b"A")
out = io.recvline()
# From... | [
"mihai.dumitru2201@upb.ro"
] | mihai.dumitru2201@upb.ro |
2a0b46939bff003237862d09998287f9231587e2 | ca30cfb226b4353c522ef44c526f3905c692b0fd | /migrations/versions/2183c5c9087c_.py | 34585d14d46323db3806c60f25580f9d27b94451 | [] | no_license | Arpitappu92/FlaskCRUD | 4ac5e459a0cfd84810505ebe1a696712d0de43db | 2131b7b9541c778fcd7192af5c17e37e40e3c066 | refs/heads/master | 2021-07-07T12:53:05.611071 | 2020-09-30T13:01:58 | 2020-09-30T13:01:58 | 184,079,677 | 1 | 3 | null | 2020-10-01T05:16:53 | 2019-04-29T13:48:17 | Python | UTF-8 | Python | false | false | 713 | py | """empty message
Revision ID: 2183c5c9087c
Revises:
Create Date: 2019-04-29 18:15:20.438334
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2183c5c9087c'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"arpitprajapati92.am@gmail.com"
] | arpitprajapati92.am@gmail.com |
8006ca8d0eac6b82eef43a6bf7b453325e0eb811 | 801d99b7e0000e6d47e0447a3304080fb7284fe6 | /3d_point_cls/models/pointnet_cls_our_gn.py | 43a2c73311b28298a914892fb588895a0256afc5 | [
"MIT"
] | permissive | idolTGY/Passport-aware-Normalization | 39f9cddc355c27b813ed81a22cc15f718d1a94b5 | e2c2b928678188c1b5440f7da2c529ace87f23ac | refs/heads/main | 2023-05-13T09:52:02.883169 | 2021-06-10T13:14:35 | 2021-06-10T13:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,391 | py | import torch.nn as nn
import torch.utils.data
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
from models.layers.conv_private_gn import conv_private_gn
from models.layers.fc1_gn import fc1_gn
from models.layers.fc2_gn import fc2_gn
from models.layers.fc3_gn import fc3_gn
from m... | [
"zjzac@mail.ustc.com"
] | zjzac@mail.ustc.com |
a547b0c580f6eb57a424adc7697b39ea1301b365 | 98cb4fbb8bd776f187a9baf42d66911ed52211c9 | /archives/vocalSeparation/network.py | 598ceef69799222575f8631b585a63b4c1585f5e | [
"MIT"
] | permissive | daniel769/Audio-Source-Separation | 017878dd5302f76948f9db800c50a4a4c43e2c63 | 1693a9736fc08c53935aba7218ad82a271b42525 | refs/heads/master | 2022-02-13T16:14:28.279016 | 2018-10-24T04:15:25 | 2018-10-24T04:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from module import *
import hyperparams as hp
def network(input_, use_mulaw=hp.use_mulaw):
input_ = conv1d(input_, output_channels=hp.hidden_dim, filter_width=3)
skip_connections = list()
for i in hp.dilation:
skip, res = residual_block(input_, rate=i, scope="res_%d" % i)
input_ = res
... | [
"c337134154@gmail.com"
] | c337134154@gmail.com |
69bd90ddb86d6bbe6c4e0c35f3e84c5774477c79 | 3251bb9fd5f6da4e821fe75aa3323f52a2416667 | /mentalfloss/spiders/mentalfloss_spider.py | 221fc14a133b240a96e9863f1292d8bf07ef9e3a | [] | no_license | repodevs/simple-scrapy | 75fbebdb97d1820df2c9cd7652716978514ba665 | 6cde52bb2e00257bc98817f8dc90b243cbad6b30 | refs/heads/master | 2021-01-10T05:09:20.985122 | 2015-12-27T20:59:30 | 2015-12-27T20:59:30 | 48,659,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | from scrapy import Spider, Request
from scrapy.selector import Selector
from mentalfloss.items import MentalflossItem
class MentalflossSpider(Spider):
name = "mentalfloss"
allowed_domains = ["mentalfloss.com"]
start_urls = [
"http://mentalfloss.com/big-questions"
]
def parse(self, response):
datas = Select... | [
"repopamor@gmail.com"
] | repopamor@gmail.com |
903b3cf6c2069424d4e7db0124097fd3a7ef999a | 5d6ff6a6dc2174a6362d2d2782470aab7c72b909 | /quokka/core/tests/test_models.py | e09141ef787b87e931b2da032962caee0c496ede | [
"MIT"
] | permissive | imgugu/quokka | 41afb4abe095223ba6f1c53aa5e695213832426e | 301a1300bbd76b6f53569decdf3b3999ba87543f | refs/heads/master | 2020-05-20T22:23:43.282781 | 2013-11-21T21:06:21 | 2013-11-21T21:06:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | # coding: utf-8
from . import BaseTestCase
from ..models import Channel, Config
class TestChannel(BaseTestCase):
def setUp(self):
# Create method was not returning the created object with
# the create() method
self.parent, new = Channel.objects.get_or_create(
title=u'Father',
... | [
"ellisonleao@gmail.com"
] | ellisonleao@gmail.com |
59b13d81787b6e7708c813970b2a1c0329eb1395 | dbfa3c9d3530a69f1870ade4322d5483fccf9f75 | /process.py | 5176830002fd4ed2e1db5edd5e94486ac137ba9d | [] | no_license | sc336/bettercritic | b85bbf253a3e8dc838d781fd6e81a757e12975af | ec512a237300841037c48271840f87b07439dc9b | refs/heads/master | 2022-03-10T10:39:02.164849 | 2019-09-05T10:00:49 | 2019-09-05T10:00:49 | 206,527,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | import codecs
import json
import pandas as pd
with codecs.open('merged.json', 'r', 'utf-8') as f:
df_merged = pd.DataFrame(json.loads(f.read()))
def float_from_sales(sales_datum):
if isinstance(sales_datum, float):
return sales_datum
else:
try:
return float(sales_datum[:-1])
... | [
"s.chiu.00@gmail.com"
] | s.chiu.00@gmail.com |
9d964dff99e224a5b1083c30488dc44ae8cf0580 | d05e4b5f195d03506360483041c1864895e8f4da | /swe/helper.py | 7ec2819606a2c728509b50d57c6d1d04c0e6db70 | [] | no_license | swesust/backEnd | bf01724429e68c5c1f3d21330c6b3acf617dceff | eb4eae0981d6d88071a11f1b973c83916e6d199e | refs/heads/master | 2021-11-21T16:42:51.275389 | 2019-07-03T22:01:14 | 2019-07-03T22:01:14 | 162,592,471 | 6 | 0 | null | 2021-09-08T00:48:02 | 2018-12-20T14:46:35 | Python | UTF-8 | Python | false | false | 3,507 | py |
from swe import models
from django.core.exceptions import ObjectDoesNotExist
from django.core.files.storage import FileSystemStorage as FSS
from io import BytesIO
from PIL import Image as ImageProcess
from time import time
from os import remove, makedirs
from os.path import isdir
class Image():
"""
storing displ... | [
"avoidcloud@gmail.com"
] | avoidcloud@gmail.com |
53b47e792f7d0fcca4484474fd10faff5f42c622 | a7f93189dcb486d6ffc5470c23f2f8b340d55a0e | /Python/Pizzas/pizzas.py | 3324bffd01ee539ed1611df1f5fee4de283be095 | [] | no_license | DonnaDia/Projects | 9234d053608571e61d5858b4069404e62bab3cc1 | 7eb917d391280133f9e52e2b1c66d98023950da8 | refs/heads/main | 2023-08-11T01:07:59.146242 | 2021-09-18T14:34:24 | 2021-09-18T14:34:24 | 304,093,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py |
toppings = ['pepperoni', 'pineapple', 'cheese',
'sausage', 'olives', 'anchovies', 'mushrooms']
prices = [2,6,1,3,2,7,2]
num_pizzas = len(toppings)
print(f'We sell {num_pizzas} different kinds of pizza!')
pizzas = list(zip(prices, toppings))
print(pizzas)
pizzas.sort()
cheapest_pizza = pizzas[-0]
priciest_pizza = ... | [
"0dvd0bvb0@gmail.com"
] | 0dvd0bvb0@gmail.com |
573b47f489d0676b1ad834c573de309c542f4070 | bd9d56565f008f6524e3b8e7653d870392ca3980 | /newblog/blogapp/migrations/0002_auto_20210613_1512.py | 095fd7e26531df1e00aee5cf270a0288814ee738 | [] | no_license | maheshmartian007/Newblog | 6bfea3f80421118df7212add88754f2722e7b302 | a0c0c9f9aeb096ac43bde4ad0578b4658ac83ffe | refs/heads/main | 2023-06-05T02:17:48.850924 | 2021-06-15T16:50:40 | 2021-06-15T16:50:40 | 377,232,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # Generated by Django 3.2 on 2021-06-13 09:42
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='post',
name='Pim... | [
"maheshkumar201095@gmail.com"
] | maheshkumar201095@gmail.com |
77923980d4817c45020b48d8351fd991c2205f3b | 9778caec9e93303efda3639b708c252929bb1a09 | /6/ass6utils.py | 84e166c0593b0884b32f2477d11e7cc528b9ba86 | [] | no_license | Djiffit/nlp-mini | cb425c90995a98569994d1910a85f5edd4941914 | f7b9d8b410d3c78857e7e2f499167f0b7d3790c4 | refs/heads/master | 2020-05-25T04:34:56.410110 | 2019-06-03T16:55:01 | 2019-06-03T16:55:01 | 187,629,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,232 | py | import csv
from typing import Any, Dict, List, Callable, Tuple
from collections import defaultdict
from nltk.translate.bleu_score import corpus_bleu, sentence_bleu
from nltk.tokenize import TweetTokenizer
tokenizer = TweetTokenizer()
class MeaningRepresentation(object):
def __init__(self,
eat_t... | [
"konsta@kutvonen.xyz"
] | konsta@kutvonen.xyz |
1611270234bf7a281288c63ea3b1f053d5fad8f5 | 29da2ca6def1270be13a3096685a8e5d82828dff | /CIM15/IEC61970/Informative/InfLocations/LandProperty.py | 1506c9c2dae654fc5114f761e075d8afd906fa91 | [
"MIT"
] | permissive | rimbendhaou/PyCIM | 75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3 | d578bb0bf1af344342bd23344385ed9c06c2d0ee | refs/heads/master | 2022-04-28T01:16:12.673867 | 2020-04-16T02:19:09 | 2020-04-16T02:19:09 | 256,085,381 | 0 | 0 | MIT | 2020-04-16T02:15:20 | 2020-04-16T02:08:14 | null | UTF-8 | Python | false | false | 10,945 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"rwl@thinker.cable.virginmedia.net"
] | rwl@thinker.cable.virginmedia.net |
8c63a54063013f4c1c82f843d7730ceee77f0320 | 64e0208fa243ebbab4855980a3f21be78a4a1025 | /test/tests/object_new_arguments.py | 873ff6bf2839456b969c7e3f8e8ae6893704f34f | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | H8ter/pyston | 581f5fcb59bb8b19399347626639a688e92c80ff | 4cd23054a81b58a8de32ecf43daab2cb2e67f53f | refs/heads/master | 2021-01-15T13:28:46.252887 | 2015-07-24T21:39:13 | 2015-07-24T21:39:13 | 39,681,136 | 0 | 0 | null | 2015-07-25T10:46:01 | 2015-07-25T10:46:01 | null | UTF-8 | Python | false | false | 484 | py | # object.__new__ doesn't complain if __init__ is overridden:
class C1(object):
def __init__(self, a):
pass
class C2(object):
pass
print "Trying C1"
object.__new__(C1, 1)
object.__new__(C1, a=1)
print "Trying C2"
try:
object.__new__(C2, 1)
except TypeError as e:
print "caught TypeError"
# Th... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
b38fb17acdb40ee63f3289c9d8d1e126bae18daf | 27ac60e240d47d75ff75e7cd69876677ca0ffc12 | /server.py | 0dda72d81f7801f063502d6bfefff42a0554544f | [] | no_license | felichio/M149-311CI-2 | 36522d0b1f49c224a31f231c174b557b666b3afa | 8743919b5730827bb784f33f2d9c0f36cb7fe32a | refs/heads/master | 2023-05-14T17:46:22.932724 | 2021-06-08T11:36:17 | 2021-06-08T11:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,709 | py | from flask import Flask
from flask import jsonify
from flask import request
from pymongo import MongoClient
from bson.objectid import ObjectId
import sys
sys.path.append("queries/pymongo")
from total_request_per_type1 import get_total_request_per_type
from total_request_per_day2 import get_total_request_per_day
from... | [
"fsafaridis@hotmail.com"
] | fsafaridis@hotmail.com |
549b46893e2a092919141399abb31224ca4b1874 | e9c2aca57f6105568884f6203dce7faee78cf2a4 | /login/urls.py | 41ee7c52ee2741bf718de5812ec16f9ca6d35ed5 | [] | no_license | IoTNephosIT/projectbedu | 517d5108eaf02d509e855fb1419ca6816f21666b | 06ef87651bc83d172b58f1270d0e2357553bd48d | refs/heads/master | 2020-07-29T14:32:04.883893 | 2019-09-20T17:40:46 | 2019-09-20T17:40:46 | 209,842,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py |
# from django.contrib import admin
# from django.urls import path, include
from loginapp import views as users_views
from azureCosmos import views as azureCosmos_views
from menus2 import views as menu_views
from api import views as api_views
from rest_framework import routers
from nephosCloud import views as nephosVie... | [
"iot@nephosit.com"
] | iot@nephosit.com |
ad625224bfc05408a3cceec590d274624943cedf | 6a6b255e8fbccae028592c6a1ee06ce7120381ad | /myicebaigorria/personas/migrations/0002_auto_20200414_0854.py | 2492c95a29f7682eb6d35f7612ed6eb4f1b90481 | [] | no_license | ncapeletti/icebaigorria | 2879714dd72c91a76d9f14c38ca36acb6e7ac50d | e520a9bbfb7cc4dd71b803fc7d39e23265882e5e | refs/heads/master | 2022-05-17T15:20:55.415818 | 2020-04-23T13:08:13 | 2020-04-23T13:08:13 | 256,182,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 2.2.10 on 2020-04-14 11:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('personas', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='persons',
name='idpersona',
... | [
"nataliacapeletti@hotmail.com"
] | nataliacapeletti@hotmail.com |
8d52a8b3a73449ddf0504336ee964c82f91ef3ec | 067f3b050f796e135763bddb8093e5b9768600b9 | /Scripts/bin/cutadapt/cutadapt | 967acefd19ba4b82fec5c36eaf32e338f836869c | [] | no_license | irycisBioinfo/CrisPRAL | 00f34501c8f95cde946c173129f113ca2f7639a3 | 0a91ed9dfa9a52ed69abd635317ec58d1bc8ee56 | refs/heads/master | 2023-02-01T21:35:15.831184 | 2023-01-31T11:17:01 | 2023-01-31T11:17:01 | 159,354,930 | 3 | 0 | null | 2018-11-27T15:13:40 | 2018-11-27T15:13:40 | null | UTF-8 | Python | false | false | 220 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from cutadapt.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sergio.fern1994@gmail.com"
] | sergio.fern1994@gmail.com | |
563318e67bd9155406ba806c7a35d59765c96e2b | 33ac42588cf5e7a6813e723a6640f706d0407c48 | /connection.py | bb13656d88772b4d22f9bbd0744a621002bbacd0 | [] | no_license | priyanka-projects-1902/MegaCarDealership | 37d7b2e43eb22e129969479a0b2736fc2de3345f | 9dbfeacd9bbd3741aff85edfc3063a3a58e71a1d | refs/heads/main | 2023-04-18T02:09:20.874530 | 2021-05-03T13:16:24 | 2021-05-03T13:16:24 | 362,841,924 | 0 | 0 | null | 2021-05-02T19:07:37 | 2021-04-29T14:18:16 | Python | UTF-8 | Python | false | false | 341 | py | from mysql.connector import connect
from os import getenv
from dotenv import load_dotenv
load_dotenv()
def returnConnection():
conn = connect(
host = getenv('DB_HOST'),
user = getenv('DB_USER'),
password = getenv('DB_PASSWORD'),
database = getenv('DB_DATABASE')
)
... | [
"noreply@github.com"
] | noreply@github.com |
4a558543c0df86a68e00b0f6bc88c7af3458141d | 88bb9b9498ccf5277a01b34d7cbb5a166cb6ca46 | /find_words_for_ja.py | 31b5f0e1abb4101ee9fa69c3fbee323f0fc88bf8 | [
"MIT"
] | permissive | pengqi/findWords_jp | 2740e769d0a52d623d936f50c3113f6e39eed9cf | b8836edfcc87dc51e79992a75e05fc0d55ce95ea | refs/heads/master | 2022-11-11T21:30:50.181205 | 2020-07-08T03:29:04 | 2020-07-08T03:29:04 | 277,950,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,940 | py | #!/usr/bin/env python
'''
@file: find_disunderstanding_words.py
@time: 2020/1/28 15:12
@function: 导入文章,找出不会的单词
注意:这里没有词形还原
'''
import shutil
import os
import re
from datetime import datetime
from janome.tokenizer import Tokenizer
def merge():
# 读取文件夹里的所有文件
module_path = os.path.dirname(__file__)
root ... | [
"wumingshi.sg@gmail.com"
] | wumingshi.sg@gmail.com |
9b5a3812e6e3c98ff4413db7ae0971cdd2108707 | 58dfe94f6ba9ff830c64da951b9c4111ebf96a4f | /clientms/clients/admin.py | cb5556d6371aa2f273c83e4895c473177f774504 | [] | no_license | kntndrsn/8210-clientms | 2cb1adebec7f81875395098e719a6297d24b58e6 | 49e46eb1a15a33dbfc6a63823dd50886ee04667a | refs/heads/master | 2022-08-12T22:04:16.160452 | 2022-07-20T01:52:24 | 2022-07-20T01:52:24 | 236,509,296 | 0 | 0 | null | 2022-07-20T01:52:27 | 2020-01-27T14:30:25 | Python | UTF-8 | Python | false | false | 412 | py | from django.contrib import admin
from .models import Client, Comment, Vehicle
class VehicleInline(admin.TabularInline):
model = Vehicle
class CommentInline(admin.TabularInline):
model = Comment
class ClientAdmin(admin.ModelAdmin):
inlines = [
CommentInline,
VehicleInline,
]
admin.... | [
"kntndrsn@gmail.com"
] | kntndrsn@gmail.com |
ff987874fe44fb55ab175f210783ce133f0d2703 | da6d4be0d0eaa328972798ee50c5caf2f1e835c0 | /third_party/blink/web_tests/external/wpt/tools/third_party/packaging/tests/test_tags.py | 68b109a89f331a048e00491b0310a62c43b719d7 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"LicenseRef-scancode-other-copyleft"
] | permissive | typememo/chromium | 11aaa35726ee96d534ed6887827f3300520b463f | 6d6968680269418cc260e000318ca70ae2d2c034 | refs/heads/master | 2023-02-13T19:23:39.438224 | 2021-01-13T07:45:16 | 2021-01-13T07:45:16 | 328,891,336 | 0 | 0 | BSD-3-Clause | 2021-01-12T06:19:07 | 2021-01-12T06:19:07 | null | UTF-8 | Python | false | false | 54,693 | py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
try:
import collections.abc as collections_abc
except ImportError:
import collections as collections_abc
try:
import ctypes
ex... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
f290ff4dd28be8504759cd53e837052886f33c30 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/Triangle_20200731215410.py | fe4e6be1a02b61ab6337d20bc82d3816c5bb2875 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | def triangle(A):
A.sort()
for i in range(len(A)-2):
p = A[i]
q = A[i+1]
r = A[i+2]
print('p',p,'q',q,'r',r)
if (p + q) < r:
return 0
elif (q + r) < p:
return 0
elif (r + p) < q:
return 0
return 1
triangle ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
1ce842c7de2befafe7b6c244f9cc50ee6abeb2e3 | 41c3d12b16306e3375644ceeda1368628ebacae3 | /src/keepalivedmonitor.py | 92e7ad4e54ce747f6f11137c03f9936288041f68 | [
"Apache-2.0"
] | permissive | akraino-edge-stack/ta-monitoring | e772ce53bfbfdd6699a4f7ee3d165f9f35ae9595 | 6ee5a863bb9116f8af7b751fb728f8a428526f05 | refs/heads/master | 2023-05-27T11:36:28.327975 | 2019-05-10T07:05:33 | 2019-05-10T07:08:27 | 199,550,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | #! /usr/bin/python
# Copyright 2019 Nokia
# 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... | [
"baha.mesleh@nokia.com"
] | baha.mesleh@nokia.com |
697fc6fd9a011a0ad80112a1a4a7068d46cf25bc | 60b39bc5c4ede0e9c6b609c413389ca8e6ca6556 | /DOMFRMWRKEX/base/basepage.py | 070022b79545a28c188310aae77e8b8dccc72ddd | [] | no_license | srinidhismurthy/DOMFRAMEWORK | 37ca4c4ffed172f6fc4785310a67e72da59c66fc | ddc5cf6df46ac3fd937a96ac7384f7349c776a4d | refs/heads/master | 2021-01-01T16:23:42.476320 | 2017-07-21T13:47:41 | 2017-07-21T13:47:41 | 97,824,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from base.selenium_webdriver import MyDriver
class Base_page(MyDriver):
"""
This class inherits MyDriver and every other modules in the framework should inherit Base Page to access My Driver.
This class provides the common methods that are used in all the pages.
"""
def __init_... | [
"noreply@github.com"
] | noreply@github.com |
b0a5cd6cd31ede38f3c56e17c721d241ab7de1ea | 4d388159f0760e50e3dbbeb002b4f5e305f79220 | /cli/colors.py | 85e8ee66e6f84d65a57d8ee9827950b67175ad46 | [
"Apache-2.0"
] | permissive | modelop/fastscore-cli | 76d364d281710219cb48a39d3c0e4637e83e394b | 1e14a00d473eece35b7dfe6791137af2ddd569ee | refs/heads/master | 2022-04-02T19:57:58.659517 | 2020-01-17T21:26:47 | 2020-01-17T21:26:47 | 61,580,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
## copied from blender build scripts
class tcol:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
| [
"maxim.kharchenko@gmail.com"
] | maxim.kharchenko@gmail.com |
10408c13dd2b4ac6d3440dbb4b4a1f007245b11f | 448d49b7a7963bddf583cfb1f6fad3ba240946c7 | /django_project/venv/bin/pyrsa-verify | 642d2d7cbbcd4b4629f5c07be531db409388273d | [] | no_license | damerakd/Django_Blog_Post | 92cb25bda69c10c593ba9b45c175aa72974f1fe8 | 8e2c73319671f7483300350bc8f766ac8a1a85f7 | refs/heads/master | 2023-07-06T18:41:14.705192 | 2020-01-21T22:01:28 | 2020-01-21T22:01:28 | 232,676,698 | 0 | 0 | null | 2023-06-30T22:19:20 | 2020-01-08T22:58:09 | Python | UTF-8 | Python | false | false | 243 | #!/home/ec2-user/django_project/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import verify
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(verify())
| [
"ec2-user@ip-172-31-90-139.ec2.internal"
] | ec2-user@ip-172-31-90-139.ec2.internal | |
b6d090f6e0c520b5335e366c013a6a95871dfb02 | b05685baab270b50918c49c1e25d3aef90f0e83d | /UNIV-2016/1-29-16.py | f07a9382203ea83de48a71657283bce4130ad3f7 | [] | no_license | daxaxelrod/notes-from-4th-semester | 1ec25a0503d608bc50e20dd5d12e612c78b27f25 | ba2c257271bc00ce8dd7a2a5d5984069ac5ae4d8 | refs/heads/master | 2016-08-11T12:37:46.605993 | 2016-02-18T00:26:59 | 2016-02-18T00:26:59 | 51,965,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | Univ 280C
Venture accelerator 2
Woot fucking woot
the job market millennials face
25% activily engaged
55% not engaged in their work
20% activly disengaged at work
Important priciples from last class
PITCH INCESSEANTLY
80/20 rule
learn from failure
be aware of change and pain
those l... | [
"daxaxelrod@gmail.com"
] | daxaxelrod@gmail.com |
b89f43feda6654df433afe341c731438507d1249 | 29b8529e02975c810b8bf7bc0493259bccf415e4 | /Level 3/Button 2.py | d186d447fe07e26781479a66910f66aea8be3909 | [
"MIT"
] | permissive | subhamb123/Python-Projects | 74af72151bc7613dee976c35b477f2947c679d2d | e180a3f503be8375b4cf65cda7fc01cdaaa300e1 | refs/heads/master | 2021-05-29T00:26:34.036862 | 2020-12-26T10:22:16 | 2020-12-26T10:22:16 | 254,294,524 | 1 | 0 | null | 2020-06-15T19:59:37 | 2020-04-09T06:53:36 | Python | UTF-8 | Python | false | false | 697 | py | import pygame
import tsk
pygame.init()
window = pygame.display.set_mode([1018, 573])
c = pygame.time.Clock()
background = tsk.Sprite("Desert.jpg", 0, 0)
gem = tsk.Sprite("RoundGemBlue.png", 320, 230)
gem_timer = 0
drawing = True
while drawing:
for event in pygame.event.get():
if event.type == pygame.QUIT... | [
"noreply@github.com"
] | noreply@github.com |
88df474cdc97af9337351fdd516cf67798fbbd20 | 6833afa6be888f6c0d31aec676dd1e650227e7db | /demeter/demeter/wsgi.py | ac0a8e6f125a278676da7cdc4ca340083d512b66 | [] | no_license | webclinic017/data_fiend_v1 | 62e0036836486ceb7f08e339fdaae337c94965fe | be44130d7ec0e04c400b4b19b1dbbc25c7809314 | refs/heads/master | 2021-09-08T10:23:52.383807 | 2018-01-11T04:31:38 | 2018-01-11T04:31:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for demeter 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"liambarstad@gmail.com"
] | liambarstad@gmail.com |
faaaaeab34c3500e77a0fab84b3e1361a6636ba6 | 5fa7e1f792f38fac6a860e681ed3058e696fd116 | /fig-2b.py | 964b891279d7dbce77462afe7cc0e4d4dcec6cdd | [] | no_license | jwrauch/Cooperators-trade-off-ecological-resilience-and-evolutionary-stability-in-public-goods-games | e496fb68c983c87b8cf0ebb2a3d57a4407eddd55 | ba7009bedacacf5b351ead27dcf66c7cf7732a5f | refs/heads/master | 2021-01-12T03:00:42.127392 | 2017-01-05T21:00:34 | 2017-01-05T21:00:34 | 78,147,533 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | #!/usr/bin/env python2
import numpy as np
import epgg
import matplotlib
#matplotlib.use("Agg")
from matplotlib import pyplot as plt
def main():
# Set up list of environments to run over
r = np.array([5.])
N = np.array([8.])
d = np.array([0.8])
env_list = epgg.create_environments(r, N, d)
# S... | [
"jwrauch@brandeis.edu"
] | jwrauch@brandeis.edu |
21b8ae5fab59c2d6d9caddb4ebc962682dd43ca2 | d5e83460d5e9719f5fe1ba0f2ef75fb0cf86e7b6 | /OOP/userooop.py | 8bbe980dd5647bf30bdb59cf03c26c1173bae9a5 | [
"Apache-2.0"
] | permissive | Simbadeveloper/Fast-Food-Fast.io | 947466d01bfbb58235f3742ea6656b3d01ec4c84 | 26d4a7d84f2bd39de5c4b1e89b2839f408a6ef3c | refs/heads/master | 2022-12-13T15:01:01.064312 | 2019-06-14T08:42:18 | 2019-06-14T08:42:18 | 146,321,183 | 1 | 0 | Apache-2.0 | 2022-12-08T02:23:56 | 2018-08-27T16:00:48 | Python | UTF-8 | Python | false | false | 2,839 | py |
items=dict()
user_details=dict()
class FastFoodFast():
def __init__(self, username,fname, lname, email, password):
self.username = username
self.fname = fname
self.lname = lname
self.email = email
self.password = password
def signup(self):
self.username = input... | [
"silverdeltamega@gmail.com"
] | silverdeltamega@gmail.com |
68d78ac3fccdb2dc8e7bf7f1f8794c6d43b5ac45 | f977cd202da942f5116f7fa9eced6b263a8133c8 | /cafe1/eof.py | 5a01ee68e8d47889f24779664ee3d1814ee10925 | [] | no_license | nicpittman/matear-nb | cb57aaa2fe00446317d5b85e4809ac59368b9fa2 | 68ac8325c8f9ec5201ed0748315f1dc94cd8731a | refs/heads/master | 2022-12-23T19:26:19.196407 | 2020-09-29T08:08:26 | 2020-09-29T08:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py |
#
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import matplotlib.pyplot as plt
import numpy as np
import xarray as xr
from eofs.xarray import Eof
from eofs.examples import example_data_path
# Read SST anomalies using the xarray module. The file contains November-March
# averages of SST anomaly in ... | [
"richard.matear@csiro.au"
] | richard.matear@csiro.au |
f6661f51dac094fd1cd85b3211f221fd56caccff | aed888628faf0f52081a8711653489e3982ce0c1 | /mininet/wifiPlot.py | 53bf454c111ea4aa97d7b87df0f9606c7ee6ab4d | [] | no_license | tapparello/mininet-wifi | 69d01beea7d9b456a254694f1c38c443f0b32560 | 0feb170337bef16ea1a972685fc4a0eaa1a51eea | refs/heads/master | 2021-01-20T17:27:34.311830 | 2017-05-09T19:43:36 | 2017-05-09T19:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,857 | py | """
author: Ramon Fontes (ramonrf@dca.fee.unicamp.br)
ramonfontes.com
"""
import matplotlib.patches as patches
import matplotlib.pyplot as plt
from mininet.log import debug
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
class plot3d (object):
ax = None
@classmethod
def instantiateG... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
e078992e9926940d4aaaba2c15df176518443525 | b61f420710e0f7ef156eb7c6bd6032a87a33151b | /Sixth One/Computational Neuroscience/Assignments/P1-revised/ELIF.py | 42b7df35ac78569d96e32b621e13021e10c9fa57 | [] | no_license | Sk7w4tch3r/universityProjects | 8c4dfca4b879322656af705f8afa7c6f0b23f83b | b43e63a1ee7efab24bf91c9910f652966934f0da | refs/heads/master | 2023-08-08T02:32:45.994965 | 2021-09-22T17:11:08 | 2021-09-22T17:11:08 | 284,630,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | from brian2 import *
from neurodynex.tools import input_factory, plot_tools
import random
defaultclock.dt = 0.05 * ms
tau = 12.0 * ms
R = 20.0 * Mohm
v_rest = -65.0 * mV
v_reset = -60.0 * mV
v_rheobase = -55.0 * mV
delta_T = 2.0 * mV
v_spike = -30. * mV
simulation_time=180 * ms
# constant input current
# input_curren... | [
"hdamghanian77@gmail.com"
] | hdamghanian77@gmail.com |
199c9d62f0c02ac09f43a77d38a29026977066d8 | a5e71a333a86476b9cb1bdf6989bb5f47dd5e409 | /ScrapePlugins/M/KissLoader/ContentLoader.py | 3b88b158cb8837c710fe9f4fc8942aa693f906c4 | [] | no_license | GDXN/MangaCMS | 0e797299f12c48986fda5f2e7de448c2934a62bd | 56be0e2e9a439151ae5302b3e6ceddc7868d8942 | refs/heads/master | 2021-01-18T11:40:51.993195 | 2017-07-22T12:55:32 | 2017-07-22T12:55:32 | 21,105,690 | 6 | 1 | null | 2017-07-22T12:55:33 | 2014-06-22T21:13:19 | Python | UTF-8 | Python | false | false | 8,123 | py |
import logSetup
import runStatus
if __name__ == "__main__":
runStatus.preloadDicts = False
import webFunctions
import settings
import os
import os.path
import nameTools as nt
import time
import sys
import urllib.parse
import html.parser
import zipfile
import traceback
import bs4
import re
import json
import Scr... | [
"something@fake-url.com"
] | something@fake-url.com |
28a6e1d2e3b600b447d5fbb23b4a5dca80ba9f77 | a18b6ef735b77e1b28f7d8fcca20de399e540fdc | /ex059(menu de opcões).py | 01a82e345fa430ab7160cf5a50eb59643ec101ba | [] | no_license | Nicolas102003/Ex_Python_ex059 | 05055e4b6d476fea2f4ee6459f2753450de6ece8 | e09ccac8a9f7f8dc146f59ad00ce64a7003c042d | refs/heads/master | 2020-12-19T04:43:57.623364 | 2020-01-22T17:21:10 | 2020-01-22T17:21:10 | 235,624,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py |
n1 = int(input('Digite um número:'))
n2 = int(input('Digite outro número:'))
r = 0
while r != 5:
print('Escolha uma das opções abaixo')
r = int(input('[1] - Somar\n'
'[2] - Multiplicar\n'
'[3] - Maior\n'
'[4] - Novos números\n'
'[5... | [
"nicolas2003keko@gamail.com"
] | nicolas2003keko@gamail.com |
8f37d8f65cf54dd283e22acd078d5087397db1d3 | a1b375c3e98fe059dafc4d74cbcbcb99a0571e44 | /images/urls.py | 7b1168a1108824ea4f65b15f1955c15b27075621 | [
"MIT"
] | permissive | mohsenamoon1160417237/Social_app | 478a73552ceed8001c167be6caaf550cd58626bd | 79fa0871f7b83648894941f9010f1d99f1b27ab3 | refs/heads/master | 2022-12-09T16:03:53.623506 | 2020-09-21T05:59:22 | 2020-09-21T06:02:03 | 297,242,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from django.urls import path
from . import views
urlpatterns = [
path('best_images/' , views.most_liked_images , name='most_liked_images'),
path('' , views.image_post , name='image_post'),
path('delete/<int:image_id>/<slug:image_slug>/' , views.image_delete , name='image_delete'),
path('all/' , views.images , na... | [
"dramatic225@gmail.com"
] | dramatic225@gmail.com |
1f0508ba72e0fa6b452f48d450270349e204b152 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0801-0900/0889-Construct Binary Tree from Preorder and Postorder Traversal/0889-Construct Binary Tree from Preorder and Postorder Traversal.py | 91552f75a60306b6c33b24b37f46cb02f2423c10 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 1,638 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def constructFromPrePost(self, pre: List[int], post: List[int]) -> TreeNode:
if not pre:
return None
root = TreeNode(pr... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
537b146a848aba01387fc2b4cfc909c67efcf262 | 2a6ae5065444d765223e58ab4e0cd2247068f76e | /app/app.py | c6510e19d102b5df53577740949c0d8dd502dbd6 | [] | no_license | tlolkema/robot-playwright-workshop | 32d77db4a0c2ba8b20408d1d5205d410d18c9ee5 | a48b171e80c02e576a3f7a6800444135a2b7de39 | refs/heads/main | 2023-08-21T21:37:27.930698 | 2021-10-18T14:30:09 | 2021-10-18T14:30:09 | 392,335,892 | 1 | 1 | null | 2021-10-18T13:48:02 | 2021-08-03T13:57:22 | JavaScript | UTF-8 | Python | false | false | 840 | py | from flask import Flask, request, render_template, jsonify
import random
import time
from flask.helpers import send_from_directory
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/signup', methods= ['POST'])
def process():
first_name = request.form['firstN... | [
"timlolkema@gmail.com"
] | timlolkema@gmail.com |
732566c392ea1aa57518ab882fcb90accd1afcb6 | 9ef64c58eb62282acddce2be2ffdbc0669c37fc6 | /reader.py | 66a003bbb17267268d335d4d3bbb27ecb92f2214 | [] | no_license | jhwiig/CatConnect | 0cdbfd85182e69af0dd826f7c44d44f2677dff0b | aaa602af8419ef2cd366c3c833e1c31f2f182f2f | refs/heads/master | 2020-03-27T14:23:18.731234 | 2018-08-29T21:53:05 | 2018-08-29T21:53:05 | 146,659,583 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | #DTC 2 Section 14, Team 4
#Written by: Drew Kersnar
#Reads from the ArpOutput.txt file, seperates out the MAC addresses, and sends them to MACList.txt
file = open("/home/pi/CatConnect/ArpOutput.txt","r")
data = file.readlines()
macs = []
for line in data:
elements = line.split()
for element in elements:
numColo... | [
"noreply@github.com"
] | noreply@github.com |
315907fce7d331c9a2657271f73fa4ea6b2f7e3b | af5eff331c868b67d00a0baf5f2e7aea11082e1d | /HILL.py | 1307f4a67e915ec8a0b3c27535067c790aa2489d | [] | no_license | EwaHb/GeneticAlgorithm | 7a6d1fb49d343b7f63daebf3bd312ea13e6141eb | 06b2fc8af8d3dab11f8fcd60c2f2037a5164a4dd | refs/heads/master | 2023-05-08T14:44:08.572773 | 2021-05-19T20:31:54 | 2021-05-19T20:31:54 | 369,806,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | import random
from random import randrange
from time import time
import numpy as np
from generator import Generator
'''
class Hill:
def __init__(self, trucks, cities):
self.trucksM, self.trucks, self.cities = Generator.generateGA(trucks,cities)
'''
trucksM, trucks, cities = Generator.genera... | [
"noreply@itu.dk"
] | noreply@itu.dk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.