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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de8dee0cbf146e884769e2cd4d828061a06f1d64 | 8b68e037fd73507132fa8a4afed14934bfd1a388 | /18352/특정 거리의 도시 찾기.py | eb8b0ee194249d697607654cc9ff6e095429c9ed | [] | no_license | Seunghan-Jung/BOJ | f76772d8c00dbef528b37ba7f63abd9de306bb50 | 6a93a3e75fc6500437087910d43b69ce311713f4 | refs/heads/master | 2023-01-08T13:08:11.405968 | 2020-11-08T11:35:31 | 2020-11-08T11:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import sys
sys.stdin = open('input.txt')
from collections import deque
input = sys.stdin.readline
def solution():
N, M, K, X = map(int, input().split())
X = X - 1
adj = [[] for _ in range(N)]
for m in range(M):
u, v = map(lambda x: int(x) - 1, input().split())
adj[u].append(v)
... | [
"ajtwlstmdgks@gmail.com"
] | ajtwlstmdgks@gmail.com |
470170d76cb952b93cbc7050321da021ccefcb4a | 15de0278797e0a72f096f53830bd98c52b310b4a | /Logic_Alarm_FileExtration.py | 03117336b455c0829be9aff938eb7c7247bfd083 | [] | no_license | berlyne-liu/Carpals_exe | 6e9654534159023d382b6e69695cd014579598ee | 382932747a79ef29ce9763d2b08064c9051455dc | refs/heads/master | 2020-09-09T16:36:14.254731 | 2019-11-28T18:20:10 | 2019-11-28T18:20:10 | 221,498,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | # -*- coding: utf-8 -*-
import csv
import xlrd
class Alarm_Extraction:
def textExtraction(self, filepath):
container = []
error = "存在以下异常:\n"
try:
with open(filepath, 'r') as file:
file_list = file.readlines()
t_header = file_list[3].strip('\n')... | [
"13750104197@139.com"
] | 13750104197@139.com |
875a1ae3b757b65f2519b9f2a38de074fe7c90bf | ba3203c1b0d8ff12631c93e84027d3f3575a7fda | /cargar/migrations/0005_comprobante_conteo_id.py | 3db2e6ebca73c9b8f7b1389534eb2742b391a2d9 | [] | no_license | renearteaga1/comprobantes | e4c27fec1a3b47301eb35b652476f668653df94c | 1543f7cd3ddef667be2cfeacc0cbdb21135ad3c2 | refs/heads/master | 2022-12-13T18:24:22.429250 | 2019-06-14T17:50:39 | 2019-06-14T17:50:39 | 189,061,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 2.1.5 on 2019-06-07 13:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cargar', '0004_auto_20190606_1922'),
]
operations = [
migrations.AddField(
model_name='comproba... | [
"nick@nick.com"
] | nick@nick.com |
78d0a66a32db94c13a12774eea9acf4c09747ef1 | 7cd594d9e34e11e2a2d12ef8f7576c7a3be13909 | /budgetbutler/views.py | 909679a54f50f6359f2b1be89ca1b36e9c7c6791 | [] | no_license | o-zander/budget-butler | e2494582cf7a41ec53ef0a3c213afa189829a588 | 74ad034e3f1db63a5b4a203d8c7e60559c9dc001 | refs/heads/master | 2020-04-04T16:18:28.895538 | 2014-11-13T21:57:23 | 2014-11-13T21:57:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | import datetime
from django.http import HttpResponse, JsonResponse
from django.views.generic import View, DayArchiveView, CreateView, TemplateView
from .forms import ExpenseModelForm
from .models import Expense
from .utils import get_months, get_days
class JsonView(View):
safe = True
def dispatch(self, req... | [
"oliver.zander@gmail.com"
] | oliver.zander@gmail.com |
115788d109597217ac9850d87e15f97498d0487a | 950fb2eaca699f460bf4592ef3e35081136cb57e | /node_modules/node-sass/build/config.gypi | 61a0b625d114f9a9b70764cdb95d8b0243a691dc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | isabella232/ionic-shopping-cart | f60a7db8b0c35a1573e62c39150cbe2611c75bad | 1f75937e5577325aa5b0048d4416601bdd1a8a5b | refs/heads/master | 2021-12-23T06:02:01.632472 | 2017-10-31T13:26:46 | 2017-10-31T13:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,000 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"raphaelmiranda@gmail.com"
] | raphaelmiranda@gmail.com |
6715826fb8795709149f209138bc4ce0faf2bfee | d9cc44ee61ebf36151cd2ffd4f81fc29c9e8dd5c | /Socket_Satyam/udpsend.py | a57271afa3c1c8911c402736793cf055bbbd8233 | [] | no_license | Naman311/ReconSubsea | b51412e835624cd5784af36d5269a31f8fc3da0f | 4535ed521b8b283f0a060926c9cccd6c77e87f98 | refs/heads/master | 2021-03-30T17:28:20.815482 | 2019-03-13T14:19:26 | 2019-03-13T14:19:26 | 123,790,039 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import random
import socket
import multiprocessing
UDP_IP="127.0.0.1"
sock=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.bind(('',8888))
while True:
data=b'sdfsds'
sock.sendto(data,(UDP_IP,8888))
| [
"36452790+satyamambast@users.noreply.github.com"
] | 36452790+satyamambast@users.noreply.github.com |
fd8270a17dc066561a5e7c462ed7e663f0a3beb0 | b1d52780cbc395e693c7481171c3d42ed0a11041 | /run-backup-ptbr.py | c61649f03dd824a4cd67c2632064f831e8709308 | [
"MIT"
] | permissive | kaueda/MySqlBashBackup | be2ca058dd9448af0388acaebc568547e9ebde02 | dfee1119dfd404142c12704e70a3720981b8a42a | refs/heads/master | 2021-01-10T08:48:09.147350 | 2016-04-01T20:59:02 | 2016-04-01T20:59:02 | 55,234,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | #!/usr/bin/env python
import sys
import os
import MySQLdb
if (len(sys.argv) != 5):
sys.exit("Quantidade de argumentos eh invalida.\n Usage: python run-backup.py <host> <user> <password> <database>")
db = MySQLdb.connect(host=sys.argv[1], # ip do servidor de banco de dados ex.: "localhost"
... | [
"kauesilveira1609@gmail.com"
] | kauesilveira1609@gmail.com |
263752926dfb7b13b863bb723d4a56ed89b685cf | ccdaefbc30ba1d063f40d094583f8233cdad5f25 | /cmdbapi/serializers/HostSerializer.py | 781d1364c32f006e776267ff10b71bb03962d61a | [] | no_license | sxf123/sxf-devops | dcde26b237082fb385881daee6fa42ac78a63527 | 38d426e5e609efdfcbdd7781056186e532943101 | refs/heads/master | 2020-03-26T15:40:53.468317 | 2018-10-29T02:30:21 | 2018-10-29T02:30:21 | 145,057,985 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from cmdb.models.Host import Host
from rest_framework import serializers
from cmdb.models.Cluster import Cluster
from cmdbapi.serializers.ManyRelationSerializer import ManyRelationSerializer
class HostGetSerializer(serializers.ModelSerializer):
ippool_set = serializers.StringRelatedField(many=True,required=False)... | [
"songxiaofeng@zhexinit.com"
] | songxiaofeng@zhexinit.com |
29b539c908a4a9a6f4e32ebfd64257809c24590f | 18d6f64e55893c5057a83552e666ecacdd60c1a4 | /day21/solve.py | a20789ca457bf6b488f964eb6ce408bad5f1ae2e | [] | no_license | turtlegraphics/advent-of-code-2020 | bcf0c81c3f19da193483bd85436f6fecf9587b98 | ea75f5d57f130992369d64f173af15c4310582bc | refs/heads/main | 2023-02-07T09:44:08.265054 | 2020-12-25T06:14:07 | 2020-12-25T06:14:07 | 323,831,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | #
# Advent of Code 2020
# Bryan Clair
#
# Day 21
#
import sys
import re
sys.path.append("..")
import aocutils
args = aocutils.parse_args()
inputlines = [x.strip() for x in open(args.file).readlines()]
parser = re.compile(r"([ \w]+) \(contains ([ ,\w]+)\)") # or whatever
badfood = {}
allfood = set()
for line in inp... | [
"bryan@slu.edu"
] | bryan@slu.edu |
c17a2f123731f0fb5ad75eb48b9fdb6af937bf25 | 205ed0031c1762999fde737d6b2b868c7c8444ee | /day4.py | 5637d05f6895eec910a7adc0ea1eecced4f8f819 | [] | no_license | Premsaivudya/Python-Bootcamp | 6068537cc362fc0392e616c68d3eb4283c87646c | 74dcc5fafb22097f1f8bdfb9b359e988e3d98158 | refs/heads/main | 2023-06-21T22:15:08.352506 | 2021-07-20T03:50:41 | 2021-07-20T03:50:41 | 376,601,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #Day-4 Task
#Exercise 1
a=b=c=int(10)
print("Values of a,b,c are ",a,",",b,",",c)
a=int(a/10)
b=int(b*50)
c=int(c+60)
print("After Dividing, Multiplying, and Adding")
print("The values of a,b,c are",a,",",b,",",c)
#Exercise 2
name="abcdef"
print("The name is ", name)
x=name.replace("c","G")
print("After re... | [
"noreply@github.com"
] | Premsaivudya.noreply@github.com |
441b63535d816a7a5f8bc9956ed3f2120beed5dc | 4f0ceccea62d3c909af88a7e3f5e1d063ed94b2e | /1605_find_valid_matrix_for_given_sums.py | da8faa849a2539c3be8089cfdaf7c3db2170e2a0 | [] | no_license | 0as1s/leetcode | d19c2ec4f96666a03227871b9b21b26adcd6b3b4 | c82d375f8d9d4feeaba243eb5c990c1ba3ec73d2 | refs/heads/master | 2021-05-09T21:30:35.378394 | 2021-02-01T15:37:37 | 2021-02-01T15:37:37 | 118,729,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from heapq import *
class Solution(object):
def restoreMatrix(self, rowSum, colSum):
"""
:type rowSum: List[int]
:type colSum: List[int]
:rtype: List[List[int]]
"""
grid = [[0] * len(colSum) for _ in range(len(rowSum))]
rowheap = [[rowSum[i], i] for i in rang... | [
"oasis@penguin"
] | oasis@penguin |
38ff331d3294e7a396694d15618413f89a63abe3 | 6810a482759afd585db7bb0b85fd0416f0450e6d | /2019 Practice 2/eenymeeny.py | ff65262b7300e55226671925bb3c76154cf9f4a1 | [] | no_license | BenRStutzman/kattis | 01b000ac2353c8b8000c6bddec3698f66b0198ef | 005720f853e7f531a264227d0d9aaa19d4d7cf1b | refs/heads/master | 2020-07-15T23:52:45.785021 | 2019-11-09T03:28:06 | 2019-11-09T03:28:06 | 205,675,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import sys
def main():
inp = sys.stdin.read().splitlines()
n_words = len(inp[0].split())
n_people = int(inp[1])
people = inp[2:]
teams = [[], []]
for i in range(n_people):
index = (n_words - 1) % len(people)
#print(index)
teams[i % 2].append(people[index])
people... | [
"ben.stutzman@emu.edu"
] | ben.stutzman@emu.edu |
0b5bbaf76fa84e9989c75b6195c24cfab5ad6c53 | 6e6757a1fc119b2a3932aa498a2b50d35f7cd4cd | /unittest_kj/com/log_in.py | e50965047ed975aa2623cbad6c6d7510c80f5015 | [] | no_license | wang1041208706/wl_product | 24a98ba069eb9013cdfabd012438f544347c1a52 | 79cc8fc9d7be073673aa782cf6554c6674160d7d | refs/heads/master | 2023-06-04T21:25:53.866978 | 2021-06-22T07:40:45 | 2021-06-22T07:40:45 | 379,172,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | from selenium import webdriver
import time
from unittest_kj.env.env_factory import *
from ddt import ddt,data
from unittest_kj.test_data.read_data import *
class Login():
def login(self):
self.web = webdriver.Firefox()
self.web.implicitly_wait(20)
self.web.get(ReadConfig().url)
sel... | [
"1041208706@qq.com"
] | 1041208706@qq.com |
488b4c572ee2b48feda208a11995a813054d2313 | e9596473100470e8ab732e562c5188b9675cf09e | /2017/SECCON2017/Man-in-the-middle_on_SECP384R1/exploit.1.py | 0c9f9a37d20997c40d144edc9861fd05b9b3f16a | [] | no_license | trmr/ctf | 548c2674e34d11bc902f75d2ab4aae5836c0f8bb | 1482cf2bd4eff3576cd455617ec60c72713a54f2 | refs/heads/master | 2022-04-15T09:16:53.037471 | 2020-04-14T14:40:49 | 2020-04-14T14:40:49 | 245,831,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | #!/usr/bin/python3
import socket
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.serialization import *
import hashlib
from Crypto.Cipher import AES
private_key1 = ec.generate_private_key(ec.SECP384R1, default_backen... | [
"ryo1.teramura@gmail.com"
] | ryo1.teramura@gmail.com |
9e12fe15be6b38490c7289617d6c874b51f6e450 | afc00adc224855094e18cd25c919f0a193299c7d | /class1/rank_by_num.py | 0a63619d6586029cbbb078999ccb558ad89851d6 | [] | no_license | rebeccasmile1/algorithm | e865e4916ee04989cce44de22eb63211de93938b | a9a60a59f6bb55cdba682721b6f9f9ac7a616d7a | refs/heads/master | 2020-04-11T18:44:11.225477 | 2019-04-15T15:17:49 | 2019-04-15T15:17:49 | 162,009,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | '''
描述
给定一个整数数组,根据元素的频率对数组进行排序。例如,如果输入数组是{2,3,2,4,5,12,2,3,3,3,12},则将数组修改为{3,3,3,3,2,2, 2,12,12,4,5}。如果两个元素的频率相同,则按递增顺序打印它们。
输入
第一行输入包含一个整数T,表示测试用例的数量。T测试案例的描述如下。每个测试用例的第一行包含一个表示数组大小的整数N. 第二行包含N个空格分隔的整数A1,A2,...,AN表示数组的元素。(1≤T≤70;30≤N≤130;1≤A[i]≤60)
产量
在单独的行中打印每个已排序的数组。
1
5
5 5 4 6 4
'''
def mycount():
c... | [
"15850680911@163.com"
] | 15850680911@163.com |
59435a7f2df6ad87a54f3cb9be8871b61d922a66 | 71864f24ea02e031a39572373e16bdfbc61df15e | /Rare7_DP/wons/1005_ACMCraft.py | 8ce324117f0d936dc0cdb580a9866fc62afe4381 | [] | no_license | kanghuiseon/algorithmStudy | 38c6401e10830e1fcdba46e8fb0662110af73547 | dd038391f0562368cfaeda0cfb7c4cd328d884a6 | refs/heads/master | 2023-08-12T10:44:11.743292 | 2021-09-14T07:36:27 | 2021-09-14T07:36:27 | 380,399,403 | 0 | 4 | null | 2021-09-14T07:29:14 | 2021-06-26T02:48:49 | C++ | UTF-8 | Python | false | false | 821 | py | import sys
from collections import deque
read = sys.stdin.readline
def bfs(ed) :
q = deque()
dp = [0 for _ in range(N+1)]
for i in range(1,N+1) :
if before[i] == 0 :
q.append(i)
dp[i] = cost[i-1]
while q :
cur = q.popleft()
for nx in adjs[cur] :... | [
"noreply@github.com"
] | kanghuiseon.noreply@github.com |
7553076b98cac49868ef486a3f58bd686e5fce79 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/beginner/beginner-bite-257-extract-users-dict-from-multiline-string.py | b76dcd0f676c24ed898b3a7e8d0130ba21c80bfe | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,615 | py | """
A quick Bite to practice some string parsing extracting a users dict from a password file.
Complete get_users is how it works:
{'postfix': 'unknown', 'ssh-rsa': 'unknown', 'artagnon': 'Ramkumar R Git GSOC'}
So keys are usernames, values are names. Note that commas inside the name
get replace by a single space. T... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
8e87682b4371d274864b66e790e7d04c57bf3e3d | 319d64b33c52d59ecc2ccdbccf4255ec952e9d73 | /config_old.py | b3b5966d366b2524534feb16be544ac3f7f048b4 | [] | no_license | CeramiqueHeart/keyhac | 9a0139557c4e19e5b881cb8d01ae52777931bc51 | 8796800af0426a0ba906d040ab04f3d3b47c85a7 | refs/heads/master | 2020-12-22T13:41:58.219140 | 2016-07-07T09:46:42 | 2016-07-07T09:46:42 | 62,709,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,696 | py | # -*- mode: python; coding: utf-8-dos -*-
##
## Windows の操作を emacs のキーバインドで行うための設定(keyhac版)
##
# このスクリプトは、keyhac で動作します。
# https://sites.google.com/site/craftware/keyhac
# スクリプトですので、使いやすいようにカスタマイズしてご利用ください。
#
# この内容は、utf-8-dos の coding-system で config.py の名前でセーブして
# 利用してください。また、このスクリプトの最後の方にキーボードマクロの
# キーバインドの設定があ... | [
"CeramiqueHeart@users.noreply.github.com"
] | CeramiqueHeart@users.noreply.github.com |
ada303c258bd31f38b9cf482d11d69d20461a863 | f245a602aad5515489b2bba8bf91c56bb5e299ec | /__init__.py | decc003fdc99c4ca155ee01e91e9e513434ded6a | [
"Apache-2.0"
] | permissive | imgcook/pipcook-plugin-pytorch-yolov5-evaluator | 18f0c5643ed70b9da9ce244fd42b86686a875ce9 | eafac6d84d2e8b910a7600cc41c9045ca870acf9 | refs/heads/main | 2023-01-20T18:57:06.003917 | 2020-12-01T12:45:13 | 2020-12-01T12:45:13 | 309,251,906 | 2 | 0 | Apache-2.0 | 2020-12-01T12:45:15 | 2020-11-02T03:53:30 | null | UTF-8 | Python | false | false | 6,748 | py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__)))
import argparse
import glob
import json
import shutil
from pathlib import Path
import numpy as np
import torch
import yaml
from tqdm import tqdm
from helper.datasets import create_dataloader
from helper.general import (
compute_loss, no... | [
"queyue.crk@alibaba-inc.com"
] | queyue.crk@alibaba-inc.com |
6c775a6551caf0cb5e21d29bfe59dd7ff3b6347f | cf522474a1d1c2fff31b5cd5d8dd7c36e6d14d5d | /assets/cobo.py | 757bd71ce864388d39f362757d3855672a87db8c | [] | no_license | tastycontrols/cobo-tools | 61cb1bb01b4b8168d180202208cf4040953e3b6d | c6dc2a6338707a1f331be23c9aa1d1fa6557baa1 | refs/heads/main | 2023-07-15T17:34:13.638008 | 2021-08-25T04:41:50 | 2021-08-25T04:41:50 | 399,669,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,358 | py | #!/usr/bin/env python3
# cobo.py
# SLD 2021
#
############
# INITIALIZATION
############
# Imports
import os, sys, json
from datetime import datetime
# Greet the user
print("COBO, a cookbook (and cookbook build system) \nSLD 2021 \n")
# Valid operation modes go here
valid_modes = ["help", "build", "get-tags", "su... | [
"noreply@github.com"
] | tastycontrols.noreply@github.com |
0a7414dac806081fed5c5ae76e995858fc7b09ff | fcd999e8cd43188050796c7dfa63aff2b1fc5ebf | /agendaContacto/asgi.py | 8786fa9f9dbcfd0734b4ef8b5d5f6c2bafcdd0cd | [] | no_license | cristopherhurtado/agendaContacto | 2e9a9e614fbe058ad9aa54164ffc9e27aa71cd5f | b79f255613db5a543243c106da3bad0d9555365f | refs/heads/main | 2023-02-05T04:18:26.794096 | 2020-12-14T03:53:28 | 2020-12-14T03:53:28 | 321,226,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for agendaContacto 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('DJANG... | [
"cristopherhurtado@gmail.com"
] | cristopherhurtado@gmail.com |
69132fa12aba4f775807f76c7c78ad574e333ec5 | 94cd4506f23f3e0469a0f3fbcffa0d06b4eb7e0f | /pytorch-chatbot-master/chat.py | 23b6f8ccf1f87e9022c4cbd5ffcf7b8423f084a6 | [
"MIT"
] | permissive | FenilNavdiwala/NLPchatbot | bba0f5dd441f62f358f03fb62fa4059ee22b1825 | 551261cb6e2a12a471e6d37935e4e6e6f877c7a9 | refs/heads/main | 2023-04-22T00:15:14.334293 | 2021-05-06T10:19:57 | 2021-05-06T10:19:57 | 364,976,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import random
import json
import argparse
import torch
import sys
from model import NeuralNet
from nltk_utils import bag_of_words, tokenize, syn
from pymongo import MongoClient
from bson import ObjectId
# from train import ChatDataset
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
# Database Url... | [
"fenilnavdiwala088@gmail.com"
] | fenilnavdiwala088@gmail.com |
73ebc481d008e79fbdd92ae312b284c8a5a42c45 | d6e670718cb40912c83b89e4918c1d59c2ccd7da | /Assignment6/cas2.py | c380f7f95e09c38ed6338f566f239ba08563857d | [] | no_license | realTrueProger/PythonCourseSolovevGimaev | dc973a8112bf8ae843d7411d56b7bc35fd8d4cb2 | 255b7bc1986ee712e5169a2f5e4c8e6e06d8424b | refs/heads/master | 2022-11-05T02:44:28.844425 | 2020-06-26T16:14:49 | 2020-06-26T16:14:49 | 266,848,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,633 | py | # check if chars are digit
def is_digit(c):
try:
int(c)
return True
except ValueError:
return False
# check if the char is operation
def is_operation(c):
operations = ['+', '-']
if c in operations:
return True
else:
return False
def simplify(x):
# we s... | [
"vovasollo@yandex.ru"
] | vovasollo@yandex.ru |
ab15a0efaac07c70295a3d3f72269277df81f4d8 | 73ac971c75d395ce03c812cf60744a4d8ccb15ce | /accounts/models.py | 1954119a5af0157048d1f25984629c17fd24a5cb | [] | no_license | SanketKesharwani/GreatKart | d92eed75a030059d86ea1fa6b44566f437165078 | 94f0f4a98e221c818594d960d4f691a55bf6dd71 | refs/heads/main | 2023-09-01T11:16:51.009342 | 2021-10-30T18:41:46 | 2021-10-30T18:41:46 | 403,580,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | from django.db import models
from django.contrib.auth.models import AbstractUser,BaseUserManager
# Create your models here.
class MyAccountManager(BaseUserManager):
def create_user(self,first_name,last_name,username,email,password):
if not email:
raise ValueError('NOT PROVIDED OR SEEMS WRONG')... | [
"98sanketkesharwani@gmail.com"
] | 98sanketkesharwani@gmail.com |
af316aa3e34b277b1454686a6fb25362fb4ce391 | 588fe4ea44b24fab42aef793facf0a85e6709497 | /applesnake.py | 80391c961070ef61165946107211d1423424f4b6 | [] | no_license | KristenChing/Final_Project2 | 9ce169119151a54a03ce1b4efd303652f35b3b07 | 616ef6bf5506ed556ffd99b550ff2bda85f1bec6 | refs/heads/master | 2021-01-21T11:00:20.108438 | 2017-06-09T17:25:59 | 2017-06-09T17:25:59 | 91,717,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | import turtle
import time
import random
wn = turtle.Screen()
wn.bgcolor("white")
apeat= 0
apple = turtle.Turtle()
apple.penup()
apple.shape("turtle")
apple.fillcolor("red")
snake = turtle.Turtle()
snake.color("darkgreen")
snake.pensize(5)
snake.speed(0)
snake.hideturtle()
snaketail = turtle.Turtle()
snaketail.color("wh... | [
"kristenching1@gmail.com"
] | kristenching1@gmail.com |
faec97843cec5bed045234f3d1b9b4b5f7f7da54 | 93aed45601b0c6ec23a988a24c6b80d4d5e93dc3 | /shapy/framework/executor.py | 44903b89fe9bdaf4a3743db720cbef27bd6d1808 | [
"MIT"
] | permissive | liangxiaoping/shapy | dbd19b8affc79aabc32ccba560419ee532715b59 | 7fa5512d9015b4921870f212495280fbb0675164 | refs/heads/master | 2020-12-28T06:58:23.222187 | 2013-03-18T01:43:15 | 2013-03-18T01:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import os, sys
import re
import subprocess
import shlex
import logging
import logging.handlers
#from string import Template
logger = logging.getLogger('shapy.framework.executor')
from shapy import settings
from shapy.framework.exceptions import ImproperlyConfigured
def run(command, **kwargs):
command = shlex.spl... | [
"petr@praus.net"
] | petr@praus.net |
0bb40e15cc5d1261943589d966e5df9dcb4a91cc | 425e80db15d13a6e3c76df622a56c348031b7f39 | /Compare_SGL/test_cv_real.py | 34505cff35c3703b1615f281a25a1c6616f472a1 | [] | no_license | rubygyj/SGL_lmm_code | 529855452bf9c102c67f965dedbf6f8354831439 | c07208e120d30de4abcf1715188ebb86ac93a464 | refs/heads/master | 2021-01-01T05:55:35.740027 | 2017-07-18T02:52:10 | 2017-07-18T02:52:10 | 97,308,868 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | """
"""
import csv
import scipy as SP
import scipy.linalg as LA
import pdb
import lmm_lasso_pg as lmm_lasso
import os
import sys
from pandas_plink import read_plink
if __name__ == '__main__':
if len(sys.argv) < 5:
sys.stderr.write('\tUsage: python test_cv_real.py [gene_file] [pca_x_file] [use_pca]\n');
... | [
"lkgv@foxmail.com"
] | lkgv@foxmail.com |
43e5d2934e1bf847673aa01b30a09c96d320f9d6 | 441e4506d741db1afbeaa0af8822b130e26e5d5d | /unit7/mission7.3.2.py | 7f1d2a17c934a7f313b13783c5e7f4ce0f1ee300 | [] | no_license | ronhrl/Self.py | 253bca9f23042833573ef93864a6988052f31b31 | ba257e5300f548b3fe504dbb027fa054e80de365 | refs/heads/master | 2023-07-28T08:03:44.372673 | 2021-09-13T09:05:47 | 2021-09-13T09:05:47 | 403,127,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | def check_win(secret_word, old_letters_guessed):
i = 0
count_of_correct = 0
while i < len(secret_word):
j = 0
while j < len(old_letters_guessed):
if secret_word[i] == old_letters_guessed[j]:
count_of_correct += 1
j += 1
break
... | [
"rontsohrl@gmail.com"
] | rontsohrl@gmail.com |
4c2caed53401e57b7f09d65b6b9d5806aec30d9e | 797557fcd8e666e329c135b328974c868d0b09a8 | /face/norm_files/norm2.py | d3bebe24f27ffde2514b2fcf7d218a9b7bf640ff | [] | no_license | north-fern/ME-134 | d9a80efce520d5af89ac440be2a3cd262a06de34 | 14b2eaa13b3d7a3381f93e984dd9039f429547b4 | refs/heads/master | 2023-01-22T19:02:09.004734 | 2020-11-23T03:23:10 | 2020-11-23T03:23:10 | 298,402,783 | 1 | 1 | null | 2020-11-23T02:08:21 | 2020-09-24T21:50:17 | Python | UTF-8 | Python | false | false | 1,591 | py | import tensorflow.keras
from Pillow import Image, ImageOps
import numpy as np
import time
import cv2
def select_image(index):
# Disable scientific notation for clarity
np.set_printoptions(suppress=True)
# Load the model
model = tf.contrib.lite.Interpreter(model_path="model_unquant.tflite")
# Cr... | [
"60278154+north-fern@users.noreply.github.com"
] | 60278154+north-fern@users.noreply.github.com |
4b3694a7a68013ffe4d6627a48024d90045f59cd | d8e38b9c6f7d8cf09e9a700ee784fb3e6e58b89f | /SVD/svd.py | 6066e48560cae98ed331346494d6b7314e59c721 | [] | no_license | vishalbelsare/Lasso-ElasticNet-toolkit | 0ba5e152c062b633347353867a9fed2380752394 | e474824555a1680cd35814635ba6e0713ebef018 | refs/heads/master | 2021-12-12T18:33:12.922797 | 2017-02-14T13:40:27 | 2017-02-14T13:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | import numpy as np
import operator
from os import listdir
import matplotlib
import matplotlib.pyplot as plt
from numpy.linalg import *
from scipy.stats.stats import pearsonr
from numpy import linalg as la
import xlrd
def svd(data, S):
#calculate SVD
U, s, Vt = linalg.svd( data )
V = Vt.... | [
"mohammad@Mohammads-MacBook-Pro.local"
] | mohammad@Mohammads-MacBook-Pro.local |
a12d2275939d8e34ebee7703446413cb633bd5a5 | 65e4df21987fd61b313dcf4c1b5139c8f16b453b | /painter.py | 35f2c4a2af773859ac4139a8d38d475c13541aae | [] | no_license | JustinOliver/ATBS | ec4ccc625cef009eeac023ba23c812a243f8b491 | 172bd5788988e15b4894622495ac6962c9a28582 | refs/heads/master | 2021-09-07T08:14:33.957443 | 2018-02-20T02:03:05 | 2018-02-20T02:03:05 | 112,120,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | #!c:\users\michael scott\desktop\python\python.exe
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates pasting into an already displayed
# photoimage. note that the current version of Tk updates the whole
# image every time we paste, so to get decent performance, we split
# the image into a set of t... | [
"justinoliver77@aol.com"
] | justinoliver77@aol.com |
bf7e1ff062001f78b26cb924fe7dce1e81c97584 | 30f8afce1ba484183d8e1e14aae76cabb2d92354 | /pbase/day25/code.py | 4241fecd4e12aae4b1efcb70b62bba4ff4ecc133 | [] | no_license | brooot/Python_Base_Codes | d83e8c3b8a37b86672412c812fdb0d47deb67836 | a864685e160b5df4162a6f9fb910627eda702aaf | refs/heads/master | 2023-04-10T20:08:39.161289 | 2021-03-25T12:59:23 | 2021-03-25T12:59:23 | 200,570,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # x=1
# sum=1
# def cal(n):
# while x<=n:
# sum += 1/(2**n)
# return sum
# print(cal(n))
# def cal(n):
# result=0
# for i in range(n+1):
# result += 1/(2**i)
# return result
# # n=int(input("请输入n:"))
# for i in range(10,100):
# print(cal(i))
def cal1(n):
result=0
f... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
33e6f44cdd478c00475a2ec163ef13c53db3775f | 0c3fa4fef366529eae709245cac6982f93c83bb1 | /navigus_app/api_views/serializers.py | 021d92fe8e583a479610841db2bbb32e1c3a0080 | [] | no_license | Mprogrammer2020/navigus | bedad5b92d1902b34b1384fece96e8116ba61772 | b2e8ac3381ddc0ddf629f48c054e83a4c6a9ca9e | refs/heads/master | 2022-07-29T11:45:11.373707 | 2020-05-24T13:58:50 | 2020-05-24T13:58:50 | 266,552,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from api_views.models import TimeSlots, Bookings
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'first_name', 'last_name', 'email', 'password')
... | [
"mprogrammer2020@gmail.com"
] | mprogrammer2020@gmail.com |
42bb7f8081777e72d2ae388547512f336b7ee65b | c73b6722d362192af7030d0df83c18f41b02e3f6 | /tictactoe.py | beeba861c7398fb96bc992704004870bc9e483ca | [] | no_license | jyojun/pygame | c7c8a96bcaaee4df8e49f357cc0e4b384b9ce7fe | 7e9101f855ef569916c82dab09bdb58f2b18f821 | refs/heads/master | 2022-06-04T17:09:06.586078 | 2020-05-05T02:37:42 | 2020-05-05T02:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | import pygame
import sys
red = (255,0,0)
green = (0,255,0)
blue = (0,0,255)
darkBlue = (0,0,128)
white = (255,255,255)
black = (0,0,0)
pink = (255,200,200)
#iconChoice = input("Would you like to be X's or O's?(X/O)?:")
iconChoice = "X"
# initialize game engine
pygame.init()
pygame.font.init()
font = pygame.font.Sys... | [
"parkcode98@gmail.com"
] | parkcode98@gmail.com |
34f227442508aa9b92b0762b4d1ead4ff2c31df9 | 2be9cb839f95c52c506a140f599f431f19ba31c4 | /modules/mtg.py | ea1234b7e9488171e3855ff28d010be0c53df21a | [] | no_license | dasu/phenny | 70d2289c5ea5ff6304b65a348103f0f5e1b0514b | d615728dbba57f465fcd590a3a392d47e5a76957 | refs/heads/master | 2021-01-12T19:43:00.900865 | 2015-03-04T17:48:38 | 2015-03-04T17:48:38 | 15,314,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from urllib.request import urlopen
import json
def mtg(phenny,input):
if not input.group(2):
return phenny.say("Please enter a card name.")
i = input.group(2)
x = urlopen('http://api.mtgdb.info/search/%s' % i)
c = x.read()
js = json.loads(c.decode('utf-8'))[0]
if js['type'] == 'Creature':
phenny.say('Name: {... | [
"desusp@gmail.com"
] | desusp@gmail.com |
090e82b46e7545d66e3d998765a81304294b9244 | 91aa198b8178d1bf2b710a1ac315f0455e631916 | /myproject/boards/migrations/0002_topic_views.py | 47a39922ba2832aa1ecee0160507bca7037fe35e | [] | no_license | Mmarin95/django-app | e56c16892f8454552fb7a0ba386dace211063a88 | 23059fecd137461958f2a202250037940e99686b | refs/heads/main | 2023-01-18T16:12:55.275588 | 2020-11-22T10:50:46 | 2020-11-22T10:50:46 | 314,205,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.1.3 on 2020-11-21 17:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('boards', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='topic',
name='views',
field=... | [
"mmarin_79@hotmail.com"
] | mmarin_79@hotmail.com |
e9056686b755ec62d1124eb7098211b4b3e8aee9 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374851248/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_113/run_cfg.py | 41ce89199c250114da8542c4194b345c595cb1af | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,050 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CM... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
876edad12dae623475e52f382350d060ce20d0c8 | 01aeb49dc7d6bd565055a559017861097d4054ea | /myenv/bin/python-config | 7e374a2e4a3430bf6582b3bfb0b7d81899ecf134 | [] | no_license | lutchin/django | acc1e0572ea2ef4f0c55584c4e25d3730e31a78a | 44f3a107de9cb019aeb0b05abf430acc1281ff01 | refs/heads/master | 2020-12-02T07:41:59.841608 | 2017-07-09T22:25:40 | 2017-07-09T22:25:40 | 96,715,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | #!/home/pavel/PycharmProjects/input/myenv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"lutchin@gmail.com"
] | lutchin@gmail.com | |
0db7c6e3c890058c81dae222415ebf0ed77c0316 | 9f7d4d76c7e66aa424a5f8723575dc489f1fd2ab | /2015/19/input.py | 9ab34c71179e16ff6e97feae921de5f5e01b13a7 | [
"MIT"
] | permissive | kristianwiklund/AOC | df5a873287304816f25d91259c6e6c99c7a5f4bf | d9a668c406d2fd1b805d9b6a34cffa237a33c119 | refs/heads/master | 2023-01-12T09:01:11.012081 | 2023-01-02T19:12:29 | 2023-01-02T19:12:29 | 227,458,380 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py |
def tokens():
return {"Al":["ThF","ThRnFAr"],
"B":["BCa","TiB","TiRnFAr"],
"Ca":["CaCa","PB","PRnFAr","SiRnFYFAr","SiRnMgAr","SiTh"],
"e":["HF","NAl","OMg"],
"F":["CaF","PMg","SiAl"],
"H":["CRnAlAr","CRnFYFYFAr","CRnFYMgAr","CRnMgYFAr","HCa","NRnFYFAr","NRnMgAr","NTh","OB"... | [
"githubkristian@snabela.nl"
] | githubkristian@snabela.nl |
dcf36cbc60fc14c4439c8aacebc223dd42a3772e | 67bdebd561b19af9bf759b6ed5de8556b93ea91f | /sweep_avm_hps.py | 69c3462e3a1b63ee50ef08b1c83461cc8250860a | [] | no_license | rlowrance/re-avm | 91371ec79f6b6f48e17643da4dfb7a4894d0a0ca | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | refs/heads/master | 2021-01-17T07:34:16.876133 | 2017-02-06T21:04:59 | 2017-02-06T21:04:59 | 42,865,972 | 31 | 10 | null | null | null | null | UTF-8 | Python | false | false | 7,027 | py | 'sweep hyparamaters over grid'
from __future__ import division
import pdb
import AVM
from columns_contain import columns_contain
import layout_transactions
import sweep_types
cc = columns_contain
def sweep_avm_hps(model_testperiod_grid, samples, random_state, just_test=False, verbose=True):
'Return dictionary ... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
f6501bb433d19b4e8dc86423d939fae6e6b7ed6f | 59629d5f64a48a6bfccf5795047a0a4e9fe1c587 | /footballtournamentleague/asgi.py | bfc54df69679d7bbd47a873a9c8e7ac2063a0ab3 | [] | no_license | vaeryn-uk/football-tournament-league | 713df4740f683b6fd695bcc165e365e644d33e5d | e929171d2b9e95e4071d332d820f08d8ed763656 | refs/heads/main | 2023-06-17T13:38:23.128843 | 2021-07-11T17:01:47 | 2021-07-11T17:01:47 | 382,633,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | """
ASGI config for footballtournamentleague project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefa... | [
"andrewcook1990@gmail.com"
] | andrewcook1990@gmail.com |
b95687a3080ae3065b7a6dc4cd9c614d5fa8a37e | 94f9b83245f6be17648e5f3d0c11509f60d3974b | /choose.py | 323cc4d98d56b0e2c210508bcf40a03ffe0d896f | [] | no_license | Cotyaoo/ChooseNum | f0dee6a65c62da77ca3a9118fc1867137bd56675 | f007c105f6a3161f47eaf5142db86c291338b9a7 | refs/heads/master | 2020-12-27T20:03:03.046601 | 2020-02-03T18:39:34 | 2020-02-03T18:39:34 | 238,034,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py |
import random
def choose_number():
a = random.randint(1, 100)
b = int(input("Введите число от 1 до 100: "))
p = 0
while p < 15:
if a != b:
print("Не угадали! Компьютер загадал число: ", a)
return choose_number()
p += 1
... | [
"noreply@github.com"
] | Cotyaoo.noreply@github.com |
3b1dd594d751b4cc19eedb56c0807d574d123925 | 5f148e5b75f4afc6edd1432ffdc425932d0fbe51 | /physionet-django/project/migrations/0045_auto_20200805_1001.py | ba412e27baaf2a52d794801cfdf1f1c652887c12 | [
"BSD-3-Clause"
] | permissive | MIT-LCP/physionet-build | 82c4092dabe1ef2436e4a55d73bdadd5b4b1c624 | 304e093dc550da8636552dc601d6545c07ffc771 | refs/heads/dev | 2023-08-16T10:33:44.203786 | 2023-08-10T17:32:27 | 2023-08-10T17:32:27 | 82,719,282 | 50 | 17 | BSD-3-Clause | 2023-09-14T20:52:38 | 2017-02-21T19:37:04 | JavaScript | UTF-8 | Python | false | false | 548 | py | # Generated by Django 2.2.10 on 2020-08-05 14:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project', '0044_auto_20200512_1029'),
]
operations = [
migrations.AlterFi... | [
"felipe.torres.cs@gmail.com"
] | felipe.torres.cs@gmail.com |
8f5ba8d9c2ed80b13bc8f6549a0f7f87e04804b6 | 1ad24aa3fa880e97ddbbf5eb2ae6fc491207351d | /learnPython/sys.py | 25307c0633dc57253b001a5c9cfced1203121603 | [] | no_license | qdxt/python | 9258378f9a20c68e49b078901e3f1d1a6ab23b3c | 052745d86dbcde6a9b14d8682817eafbcb97dda5 | refs/heads/master | 2021-01-11T08:01:29.601575 | 2018-05-16T06:50:06 | 2018-05-16T06:50:06 | 113,291,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from sys import argv,path #导入特定的成员
print('================Python import mode==========================')
print('path:',path)
counter = 100
print('================Python import mode==========================')
#允许同时为多个变量赋值
# a = b = c = 1
# print('a:',a,'b:',b,'c:',c)
#可以为多个对象指定多个变量
a,b,c = 1,2,'runoob'
print('a:',a... | [
"980165003@qq.com"
] | 980165003@qq.com |
952c934a258215a3e3f4cc666120893ffff24cdf | aa3354835e09a7d41466310355eabc2178ec2604 | /code/events.py | 13f4dcdd900032aed4359fe20124cf28fd54576b | [] | no_license | bug320/2048Game | 7b555c86531725f8b332573061c5e00c6f2898ea | 1521aac9ad949a28548f4ec70423931d2cb8bb0f | refs/heads/master | 2021-09-06T04:27:58.353842 | 2018-02-02T10:11:22 | 2018-02-02T10:11:22 | 105,138,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # -*- coding:utf-8 -*-
class UserInputError(Exception):
pass
class TryApp(object):
def __init__(self, name = None):
self.name = name if name else "bug320"
pass
def pname(self):
print self.name
pass
pass
class UserInut(object):
def __init__(self,functable):
... | [
"1046218884@qq.com"
] | 1046218884@qq.com |
1cd6adfb765fafd2922978f2212706cbf1a4d359 | f116ebf876b630b00ae7f0a3310c4a01b22d665c | /repo_files/zips/plugin.video.saturnhosting/resources/modules/tools.py | e07ab54773e9d4df1455db1be1374d310d083e06 | [] | no_license | sClarkeIsBack/SaturnHosting | 673dd4c94da3976461dc05dd6449057fbfc1155a | 26051fb1ec7d1833f82985308fef38acdd882270 | refs/heads/master | 2020-06-24T15:18:08.968909 | 2017-10-01T20:17:14 | 2017-10-01T20:17:14 | 96,941,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,091 | py | import os,re,sys,xbmc,json,base64,client,control,string,urllib,urlparse,requests,shutil,xbmcplugin,xbmcgui,socket
from resources.modules import user
def regex_from_to(text, from_string, to_string, excluding=True):
if excluding:
try: r = re.search("(?i)" + from_string + "([\S\s]+?)" + to_string, text).group(1)
... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
a33c8b2e9486fbe2b0792af28dd2a1d7f4c36758 | 083ece7a46de36c44424124259033b1ce0863f26 | /novelist_ni_narou/dataset/arasuji.py | 636f336e6900fddd6acf599e1b2d445dc2d1d166 | [] | no_license | knok/chainer-SeqGAN | bb4715c6cc8886dca18f759590cbbb3b04ca5937 | c33970190f4e0e8918ec89e7416b19584857131f | refs/heads/master | 2021-01-11T09:24:13.211038 | 2016-12-23T03:42:03 | 2016-12-23T03:42:03 | 77,117,256 | 3 | 4 | null | 2016-12-22T06:09:01 | 2016-12-22T06:09:00 | null | UTF-8 | Python | false | false | 4,071 | py | import re
import unicodedata
import numpy as np
from collections import Counter
import os
import json
import pickle
class Arasuji(object):
def __init__(self, raw_data, vocab_size, seq_length):
self.vocab_size = vocab_size
self.seq_length = seq_length
self.raw_text=[]
for i, j in ... | [
"fukuta6140@gmail.com"
] | fukuta6140@gmail.com |
5192f3acfcc9c4a8e579a483b0fcfee562d4d63a | 1edfdc6194342d102e6347216ce0661e25171912 | /dl_yt_vids.py | 15a5b77fdc49f62af787bf6866b6beb9d967692b | [] | no_license | jivakalan/action_spotting_ufc | 2e4e08496d9256c2144d1072f7e2a702d351507e | 098573b01bf04b9573d2c7a29071a2ab7ea20c5a | refs/heads/master | 2023-04-17T23:05:39.636163 | 2021-05-06T00:10:27 | 2021-05-06T00:10:27 | 305,566,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 19 22:04:44 2020
@author: jkalan
"""
from pytube import YouTube
from datetime import datetime
import os,time
def downloading_video(link):
now = datetime.now() # current date and time
timeNow = now.strftime("%m-%d-%Y at %H_%M_%S")
yt = YouTube(l... | [
"kalan.jiva@gmail.com"
] | kalan.jiva@gmail.com |
2cb1da17f4c7a1704330b470888dc115a7e8bbed | c548d5d6609eb4bff3511cd822fc6ec2580c4935 | /promises/models.py | 7d5fcec6d725294d9d68c2ecec348a9a50f6072a | [] | no_license | bmy4415/django_restframework_homework | 5abc934b28ffa8eb4428d19e05771bc229034876 | 3ffecc1540afef8f49a7ee63c93bbf90708b5067 | refs/heads/master | 2020-03-09T02:40:04.721914 | 2018-04-16T13:25:37 | 2018-04-16T13:25:37 | 128,545,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.db import models
class Promise(models.Model):
created = models.DateTimeField(auto_now_add=True)
sinceWhen = models.DateTimeField()
tilWhen = models.DateTimeField()
user1 = models.ForeignKey("auth.User", related_name="promises_as_inviter", on_delete=models.CASCADE)
user2 = models.Foreign... | [
"bmy4415@naver.com"
] | bmy4415@naver.com |
8793d4ce5b93e0abb4d7dd2d64c6957bdf1997b2 | 847ecf9ded56b8680bde70ff4544bd36ccf26eb3 | /user_listsp.py | b08eab53c5a1a907fed769c3bf913e4ca12c0be3 | [] | no_license | camly93/uph_heroku | 4366db42b3ac8d26b5bb8628afd5ae977304bd38 | ce1d76137b8631d455b5719d02a3071b4fc22e0f | refs/heads/master | 2021-01-18T09:31:40.963817 | 2016-04-16T09:42:13 | 2016-04-16T09:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | from mongoengine import *
import codecraper
connect('amazon_rank',host='mongodb://amazon:mlab1234@ds015740.mlab.com:15740/amazon_rank')
class Listsp(EmbeddedDocument):
id_sanpham = StringField()
class User_sanpham(Document):
username = StringField()
sanpham = ListField(EmbeddedDocumentField(Listsp))
cl... | [
"phuc1009@gmail.com"
] | phuc1009@gmail.com |
f96fa7588da7efa6d77b1d26da414ebe94dffcd3 | c17b2c46032dec8bfadcdb6b2fc99d9f220f4b39 | /venv/bin/easy_install | 2fab74bca2f3f62282c116c087103c76b26b7c2a | [] | no_license | soumyaevan/PythonSelenium | 70a0e371e997d7c9ed74288b27a349658b5e4622 | 846e6411c1454893b51e3882e51958c7c06c7246 | refs/heads/master | 2022-04-22T03:45:44.736114 | 2020-04-10T17:32:39 | 2020-04-10T17:32:39 | 254,648,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | #!/Users/soumyasen/PycharmProjects/SeleniumTest/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"sensoumya94@gmail.com"
] | sensoumya94@gmail.com | |
5563a838ed4f87a906a02b3048563e2919d0fdd7 | 25340be13d4b7fa3e93fd848ccc11763aa753814 | /data_processing/format_lyft.py | dcdb4b2df4d6a9a137c3bb589f90d598c40cc301 | [] | no_license | CVPR2020-9832/Spectral-Clustering-Graph-LSTM | 93e60e26eb745562bb912d980f5b2976423600d8 | 9cc48a5bde502e1fc6cc03ef041b2b4d28276e84 | refs/heads/master | 2020-09-15T19:20:57.854651 | 2019-11-23T05:51:22 | 2019-11-23T05:51:22 | 223,537,702 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 8,968 | py | import json
import numpy as np
def get_sample(filepath):
'''
to load the sample.json file
:param filepath: filepath of the sample.json
:return: sample
'''
with open(filepath) as json_file:
sample = json.load(json_file)
return sample
def get_sample_data(filepath):
'''
to l... | [
"9832.cvpr20@gmail.com"
] | 9832.cvpr20@gmail.com |
5576bd123572dd7c83c5171be4ce5c13ed91cd7f | 8ea2e7fe85a10bf214c83f250f86a8db7a408134 | /excursion.py | 0e54a9374205aa015aaea54b4045792da859bc31 | [] | no_license | Abdullah-Al-Zishan/deadline-aware-fair-scheduling | 5d3ace53a473d8e69e52db4b1957de099c8df89f | 02c351b4c16930f18a63113984e2fc045f1eecd2 | refs/heads/master | 2022-02-19T23:04:17.707096 | 2019-10-22T14:53:14 | 2019-10-22T14:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | import numpy as np
import utility as util
file_name = 'static.txt'
result_path = 'result/'+file_name
env_path = 'env/'+file_name
result = util.load_dict(result_path)
env = util.load_dict(env_path)
def excursion_for_single_time_slot(trans_load, trans=[1], time=(1/6.0)):
rating = np.array(env['transRating'])
... | [
"azishan@ualberta.ca"
] | azishan@ualberta.ca |
1b13d84b5e842b96a4f4095e3c1be2d5f5a0b20c | 75e3e2779d90f4b3273dbeedbbff8481f83ee68f | /ps4.py | 3ff2689fc36b00526faea82ab77acb28d021e4a7 | [] | no_license | DragosTeodoru/SD | 9960671d9ed5a65c23820316f150fcfba2c6e22a | 1af39acff60646eb7c25f12517b6f9592831cff9 | refs/heads/master | 2020-04-02T19:09:00.588488 | 2019-01-22T09:59:22 | 2019-01-22T09:59:22 | 154,724,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #Task 1
radius=int(input("Radius:"))
x=3.14
pi=x
area=pi*radius**2
print (area)
#Task 2
x=4
y=5
a=3*(x+y)
print (a)
#Task 3
radius=float(input("Enter the radius:"))
#Task 4
print((3+4+5)/3)
#Task 5
x=19.93
y=20.00
z=y-x
print("%.2f" %z)
#Task 6
x=2
print("x, squared is, x*x")
xcubed=x**... | [
"noreply@github.com"
] | DragosTeodoru.noreply@github.com |
ab6b93883fbd3ab158e745475577ce299961a020 | a018a4969678b309b9778d74cffea2fac8731e62 | /mynavi_sample.py | 1371b140f3ec0170ec6b85f6e5a4dc434ff3e379 | [] | no_license | aoi-eita/task2 | 4692d8cda5e32636e1cced6382d4484a5e02d55d | e5233abfda47dcd6667b02622a2013452ee25b35 | refs/heads/main | 2023-06-06T19:18:31.430530 | 2021-07-19T06:19:28 | 2021-07-19T06:19:28 | 387,359,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,285 | py | import os
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.webdriver.remote.webelement import WebElement
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options imp... | [
"aoi.eita66@gmail.com"
] | aoi.eita66@gmail.com |
be5addc90cf01e19f23dc3dbfa0e78b3efc89c5d | b1aba90c839deec0641b260db2afc1d579fa0525 | /Ejercicios_Programacion_Funcional_Python/Ejercicios propuestos iniciación a la programación/Ejercicio12.py | 49d943ff4db64fed6710f9e991fc3fcc1d3e45ad | [] | no_license | Globix/Ejercicios_Programacion_FP_Dual | 86102cff6bc12cfee21631bf39fc803c6c3ac7c6 | 4c89ab02e73e045228d67f8523ee89aa59031fbe | refs/heads/master | 2021-01-18T22:36:51.138016 | 2016-06-05T18:35:46 | 2016-06-05T18:35:46 | 49,504,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | # Ejercicio que pide dos números y comprueba unas condiciones prestablecidas.
# Si dichos números las pasan se realiza la suma de ambos y se muestra por pantalla.
#------Subrutinas a usar---------
# - Subrutina: sumaCondicinal
# - Descripción: Suma 2 numeros solo si se cumplen las siguientes 3 condiciones:
# a) Los... | [
"globix28@gmail.com"
] | globix28@gmail.com |
64505008f1caf4928dc0111e3fe70d2b73314ebb | 1c0224741806a1cff56e17c61a76caf565cb47ea | /testPyGraph.py | 155305a2d2d7f6d9dfca3916dd1e62aad4ba7734 | [] | no_license | minu7/drone-simulator | 500fdd1fd13c1f75d1af45da2a415961fb01d5af | cad69f97f71f3055732863b6b637f846cd62bf5a | refs/heads/master | 2020-06-09T04:15:03.870311 | 2019-07-09T10:55:06 | 2019-07-09T10:55:06 | 193,368,397 | 27 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | from pyqtgraph.Qt import QtCore, QtGui
import numpy as np
import pyqtgraph as pg
import threading
import time
app = QtGui.QApplication([])
## Create window with GraphicsView widget
w = pg.GraphicsView()
w.show()
w.resize(800,800)
w.setWindowTitle('test')
view = pg.ViewBox()
w.setCentralItem(view)
## lock the aspect... | [
"filippominutella@gmail.com"
] | filippominutella@gmail.com |
bfa44cfca13ef1bfbe5e6a567fc8c7957ea9affc | 4516fffb6f87b3b0ea7e3bee27b214094c6cb6f9 | /implement_queue_using_stacks.py | 69c46153bc80b68cd6330857e2710948dc6758cf | [] | no_license | jianminchen/leetcode-8 | b59f488f24cf53cdb0e04a214e49c9c6f72cacf5 | 1459baacd8c7264c2b62a2c6b5ce0001dae0aba7 | refs/heads/master | 2021-01-15T08:47:36.084748 | 2015-10-18T01:10:43 | 2015-10-18T01:10:43 | 49,403,008 | 1 | 1 | null | 2016-01-11T04:56:45 | 2016-01-11T04:56:45 | null | UTF-8 | Python | false | false | 573 | py | class Queue:
# initialize your data structure here.
def __init__(self):
self.stack = []
# @param x, an integer
# @return nothing
def push(self, x):
ss = []
while self.stack:
ss.append( (self.stack.pop()) )
self.stack.append(x)
while ss:
... | [
"qirongismonica@gmail.com"
] | qirongismonica@gmail.com |
7ba19beea4a7e0a6ed0063dd1242df88be8e9272 | b56109a8801d0c1ec15272fa9c397fbc707d3cac | /jenkins/files/server.py | 907b5086dc60f817f65833800c73d30c149edb1b | [] | no_license | sgtux/devsecops-lab | dd7d1eecb511e175e2d4509f395e0740d87389b2 | 3367f7f689c3ea692c0681fe275183209fa5bc2e | refs/heads/main | 2023-03-20T08:47:58.344199 | 2021-03-15T13:42:35 | 2021-03-15T13:42:35 | 312,301,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #!/usr/bin/python3
from flask import Flask, render_template_string
app = Flask(__name__)
@app.route('/')
def index():
return render_template_string("<html><body><h1>Jenkins Server!</h1></body></html>")
if __name__ == "__main__":
app.run(debug=False, host="0.0.0.0", port=80) | [
"sgtux@protonmail.com"
] | sgtux@protonmail.com |
c348471e918a6fb35fc29ad895d84d497f6413fc | 927efa87cbcd55ad9f22871665dd4710f38f1b18 | /expect_log_parsing/mycfg2html.py | 9e9a9e8f7bd77d1a858cff5e8eb06bea6a182309 | [] | no_license | robertlupinek/python-examples | 1e163fa9a796e8110fe4cc8ab7e4f87e59d3168d | 90e0ea68f2a9cf9512023a23faeb210e2d017479 | refs/heads/master | 2022-02-10T00:31:46.683443 | 2019-09-12T20:32:52 | 2019-09-12T20:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,308 | py | #!/usr/bin/python
import MySQLdb as mdb
import os, sys, csv
class MySqlCon:
def __init__(self ,dbhost, dbuser, dbpass, dbdatabase ):
try:
self.con = mdb.connect(dbhost, dbuser, dbpass, dbdatabase );
self.cur = self.con.cursor()
except md... | [
"robert.lupinek@macys.com"
] | robert.lupinek@macys.com |
3fb4779bf3b2aebd8605856f9a34e4d73c6915b9 | 4e51e654a42f56712c9087ae056b6741542a5713 | /programs/timer_on.py | 01a822ba732780cb4fe284dd06fe072b51b2c5a1 | [
"MIT"
] | permissive | shadhali/tuya-air-purifier | 85a3b4237af5bcc532b309969bdab9f351b11ecf | 8a03b8bcd3514666c1eb685b243e9d1ced40b3f3 | refs/heads/main | 2023-06-18T05:06:59.416211 | 2021-07-22T14:22:34 | 2021-07-22T14:22:34 | 388,489,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import logging
import time
from env import ENDPOINT, ACCESS_ID, ACCESS_KEY, USERNAME, PASSWORD
from tuya_iot import (
TuyaOpenAPI,
ProjectType,
TuyaOpenMQ,
TuyaDeviceManager,
TuyaHomeManager,
TuyaDeviceListener,
TuyaDevice,
TuyaTokenInfo,
tuya_logger
)
tuya_logger.set... | [
"noreply@github.com"
] | shadhali.noreply@github.com |
0572c4956642dddc052fb946e166664438126575 | ff39af62524743f7f2358f7a96496a5be9ff65b9 | /uniproxy/serve.py | 39260e8f6ef86a7f1a2cc53c9029b7c771cb3356 | [] | no_license | wlb/antigfw | 9c23945fa686ab8d44afaa5ac1031467e38522a0 | 64182271af3ee05d47335122deca4ebf7d5bf176 | refs/heads/master | 2021-01-15T18:45:02.099820 | 2012-05-25T16:42:23 | 2012-05-25T16:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
@date: 2012-04-26
@author: shell.xu
'''
import logging
import socks, proxy, dofilter
from http import *
from os import path
from urlparse import urlparse
from contextlib import contextmanager
from gevent import socket
__all__ = ['ProxyServer',]
def import_config(*cfgs):
... | [
"shell909090@gmail.com"
] | shell909090@gmail.com |
91a646c9d70867ddf41db0dd14ae731a51c83899 | 463a78480656e0ebd6c99630ec1b6c5e00c65554 | /ml/hw-01/main.py | f09fb2ee4dd4aae79c6f6273dab8413353611289 | [] | no_license | anarsiel/University | 689fd588a6ed53e8ceec565c60d4fab15f6d5cfe | 3011e1f83c943c1436aadaa6507388f3937cc6aa | refs/heads/master | 2023-03-09T17:05:44.349307 | 2022-07-05T14:09:50 | 2022-07-05T14:09:50 | 187,517,045 | 12 | 1 | null | 2023-03-03T01:30:49 | 2019-05-19T19:05:36 | Java | UTF-8 | Python | false | false | 6,342 | py | import collections
import pandas as pd
import numpy as np
import matplotlib.pyplot as ppl
def minmax(dataset):
minmax = list()
for i in range(len(dataset[0])):
if i == len(dataset[0]) - 1:
continue
value_min = dataset[:, i].min()
value_max = dataset[:, i].max()
min... | [
"dimitrovblagoi@gmail.com"
] | dimitrovblagoi@gmail.com |
b56fe4b9e938161ed9a2691f1220a78815187a06 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_121/ch52_2020_10_06_21_28_51_510149.py | 070609e4ce46802cdb35f1ba28594210c774a35e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def calcula_total_da_nota(preco, quantidade):
resultado=0
i=0
while i<len(preco) or i<len(quantidade):
resultado+=preco[i]*quantidade[i]
i+=1
return resultado | [
"you@example.com"
] | you@example.com |
16988f6ae95a20214ed8766601da8e877c8c96ae | ee7382a5ced14bed741d3263431b30f6d8b803b0 | /9_string.py | c9ffce905e488a6340c01d97012a5d1a62b144ef | [] | no_license | hsalam/python_learning_1 | 42601f1759b12d75d8c1fca267ab43a50af5ddf4 | d005e1b42965b3856a7f93fb6530cf7a260c07b4 | refs/heads/master | 2021-08-24T01:07:47.390945 | 2017-11-16T06:10:16 | 2017-11-16T06:10:16 | 109,577,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #!/usr/bin/python
#pgm to enter n number of strings and display them with no duplicates. Also to display the duplicate strings
list_names = []
duplicates = []
no_duplicate_list = []
input_limit = raw_input("Enter the limit : ")
for i in range(0,int(input_limit)):
list_names.insert(i,raw_input("Enter name "+str(i+1)+"... | [
"hasnasalam11@gmail.com"
] | hasnasalam11@gmail.com |
1f25c522e3304dee61cfd2ed17b83686d7305a28 | 439852a1cbd8ad06936857d2ed83f5816c486ec1 | /django/pactf_web/ctflex_helpers.py | 06e9ddbd5d41c9f96f73c520c1781fa771359353 | [
"MIT"
] | permissive | PACTF/pactf | 82ea465488cc79ec8568b0aa8f19f9b89b7d0bbd | 1a0d9acd451c43b4c36b24d92c8afd07c3d706a7 | refs/heads/master | 2023-01-11T13:58:03.060226 | 2022-01-22T06:02:43 | 2022-01-22T06:02:43 | 46,456,319 | 10 | 9 | NOASSERTION | 2022-12-26T19:51:47 | 2015-11-19T00:22:23 | Python | UTF-8 | Python | false | false | 307 | py | """Define objects for CTFlex"""
# def eligible(team):
# """Determine eligibility of team
#
# This function is used by CTFlex.
# """
# return (team.standing == team.GOOD_STANDING
# and team.country == team.US_COUNTRY
# and team.background == team.SCHOOL_BACKGROUND)
| [
"yatharth999@gmail.com"
] | yatharth999@gmail.com |
8a5136d1250ba4cd928c65f96fd34cd13c10dd5b | 934ebf73b75417b4db013fad55b58e0846500cc8 | /bentoml/version.py | 5a9390efd5db0fa750b9040009678ec490f88760 | [
"Apache-2.0"
] | permissive | BigRLab/BentoML | 8a2b92f52fb3e6f0ea58c61e806ce4a19490cebb | a14adc816b0374b63fe1b800e5dfe4201d0cb801 | refs/heads/master | 2020-06-08T06:31:12.502409 | 2019-06-21T23:05:22 | 2019-06-21T23:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # Copyright 2019 Atalaya Tech, 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 required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | BigRLab.noreply@github.com |
8eed96af352ee8e686c9336ff893f50493418394 | 2b092b1b8ca75c239377738d2302ac3fd1876d82 | /lesson3/task1.py | 89fb70c3bab83d7e85dc06273e8a1ff4b2a57c17 | [] | no_license | aliakseiChynayeu/geekbrains-python | 5e912860f8b39a2a535a665d2f579c03b89bfff1 | 5619a0c5e879e01d190f31c68c836aee12b04c77 | refs/heads/master | 2022-12-27T02:45:23.127694 | 2020-09-26T10:02:54 | 2020-09-26T10:02:54 | 281,753,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | def divide(a, b):
"""
Функция деления 2 чисел
:param a: Делимое
:param b: Делитель
:return: Результат деления a/b
Вывод на экран ошибки при делении на 0
"""
try:
return a / b
except ZeroDivisionError:
print("Деление на 0!!!")
a = int(input("введите делимое >>> "))
b... | [
"aliaksei.chynayeu@gmail.com"
] | aliaksei.chynayeu@gmail.com |
2d0bd029a13d182328130194503783919f0b007f | fe58e129abaf3c0a12436c71d6ea93f755728f46 | /03_last_element/last_element.py | 66c3ac26c7ce1dffe76e69b262e36dc4ef280abb | [] | no_license | wcjennyng/Python-Ds-Practice | 90a5fb0f2754007f2906315beec2c1503c9ea9c0 | bc885984c211c1fb7099d8c20fc0c670874faa54 | refs/heads/master | 2023-04-18T19:14:06.802805 | 2021-05-09T17:27:18 | 2021-05-09T17:27:18 | 364,309,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | def last_element(lst):
"""Return last item in list (None if list is empty.
>>> last_element([1, 2, 3])
3
>>> last_element([]) is None
True
"""
if lst == []:
return None
else:
return lst[-1]
| [
"wcjennyng@gmail.com"
] | wcjennyng@gmail.com |
fcc9d408343810e8bd47c7d90e7972f93ccf785a | af61044c866eb85ca2c622e082090f7657431206 | /webcli/viewset/.ipynb_checkpoints/view_abtest-checkpoint.py | 335bc8aa7d4e62a24e746dae3b852ccf07ff14c8 | [] | no_license | leepand/gridpoc | f7959ef099d8a5513c59dfeb682761771ffe7594 | 4c476cd0241a95a4a7d2abf53a519d3749ecfb94 | refs/heads/master | 2020-04-28T02:38:49.631595 | 2019-03-11T02:01:50 | 2019-03-11T02:01:50 | 174,906,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,647 | py | # -*- coding: UTF-8 -*-
# author: leepand
# time: 2018-12-01/update 2019-01-16
# desc: abtesting view and api
from view_base import ViewBase,render,render_without_base
from Arthur.core.entities.dao.hjs_user_dao import HjsUserDao
from Arthur.core.entities.dao.Arthur_Abtesting_dao import ArthurAbTestingDao
from Arthur.c... | [
"85721094@qq.com"
] | 85721094@qq.com |
2d3f6c3e7ce8a553a4f77d8e97cc905613e289df | dd95edb16036c7de0970b52590fd8ae7b979e1ac | /src/data_loader.py | b998cbab540087e92c9724035ee2d49134d8d1fa | [] | no_license | YuzhongHuang/Data-Science-Final | e1978cbfb1ae04d682eaa37aaff3840cfd19ebaf | 87a2f3691547fd7ec3bc2e90fc2439d95a3243e2 | refs/heads/master | 2021-01-10T14:42:58.192759 | 2016-05-04T23:28:09 | 2016-05-04T23:28:09 | 54,586,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | """data_loader.py
~~~~~~~~~~~~~~
A local data loader program that grab medical entries data from
given csv file and randomly split data into a tuple of (train, validata, test)
Inside each group, data is represented in a tuple of (input, traget)
To make the loader more efficient, the program allows user to save
and ... | [
"yuzhong.huang@students.olin.edu"
] | yuzhong.huang@students.olin.edu |
222e039a8f1b16ddc964c3f5b6aad8e5a655613f | f60cbe4de824e2f9b8fe0aa291e1c26c3cac96ea | /test.py | 728beada28f13143ccb6088a3b95cf5856bc4eeb | [] | no_license | mangesh222/python | 3a48935bce956b2595b7eb8d22d439c3c7465bb3 | ecea235e7db42acf3f2193882d6e31dcc70e0301 | refs/heads/master | 2023-05-29T01:33:56.418128 | 2021-06-10T03:04:00 | 2021-06-10T03:04:00 | 374,527,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | print('hello)
print('vishal' | [
"mangesh.mangesh22@gmail.com"
] | mangesh.mangesh22@gmail.com |
263366fcc564685a4541c1d461871e0dd45977f6 | 836645c94a5a286c282b986814e25c94603bdbb0 | /venv/bin/chardetect | ddea9e3829290f630fd84fd014373b4efab27c62 | [] | no_license | masande-99/FINAL-PROJECT-back-end- | 56fc58b901e310a2cd9dc25095d9fe2d80a77e16 | e4f3c4e8d0f237a6c232484ddd401c0430152e2c | refs/heads/main | 2023-04-03T01:12:05.345338 | 2021-03-15T09:43:47 | 2021-03-15T09:43:47 | 341,456,343 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/home/lifechoices/Documents/END-OF-COURSE-PROJECT(back-end)/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gontyelenimasande@gmail.com"
] | gontyelenimasande@gmail.com | |
a84311b4e1840eba2b2772bbabae3cd68e3804b0 | a0985fe6dfb733c3c172c5feac468e7b2ddc210a | /3CNFSat/solvers.py | 3552e19c7df161ae2c5e0c0c52b4687de798e151 | [
"Apache-2.0"
] | permissive | gustavodiel/IAR | b2955036a748b20ea54e62f510e60d67475293c3 | 9a45a4eba0cf8019cc00e42ffd29db69204c9dee | refs/heads/master | 2020-04-23T17:51:52.019484 | 2020-01-29T15:35:20 | 2020-01-29T15:35:20 | 171,347,064 | 0 | 0 | Apache-2.0 | 2019-04-03T12:40:31 | 2019-02-18T19:54:53 | C++ | UTF-8 | Python | false | false | 2,613 | py | import numpy as np
from helpers import *
def update_temperature(iteration, max_iterations, initial_temperature, final_temperature):
return (initial_temperature - final_temperature) / (np.cosh(5 * iteration / max_iterations)) + final_temperature
def random_search(name, expected_right, clauses, num_vars, max_iter... | [
"gustavodiel@hotmail.com"
] | gustavodiel@hotmail.com |
23a741447677df22688dcf7e5fbe171db1bd2fcb | 6967c0bca6063d93829aa579f515d9bd6f71e0dc | /reprozip/reprozip/pack.py | 08ba5ad7a180d4b3cf68a03919285218c13f9b80 | [
"BSD-3-Clause"
] | permissive | aashish24/reprozip | 2632ecfde7544de7f272f8ce56f8509a1b8093d7 | 2207987da6ae6fb7e256fc4a197366a881680e5c | refs/heads/master | 2020-04-30T00:08:34.055174 | 2015-05-11T06:14:42 | 2015-05-11T06:14:42 | 35,426,059 | 1 | 0 | null | 2015-05-11T13:36:04 | 2015-05-11T13:36:04 | null | UTF-8 | Python | false | false | 6,619 | py | # Copyright (C) 2014-2015 New York University
# This file is part of ReproZip which is released under the Revised BSD License
# See file LICENSE for full license details.
"""Packing logic for reprozip.
This module contains the :func:`~reprozip.pack.pack` function and associated
utilities that are used to build the .r... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
efbb025919e9eac773e2b39a84bbc652dc3b43be | f8494866e8a6d8ca2437d01b3c32c159a7948bcc | /rangetree_reference.py | bcfa70c0d9ba8a5eb0301c4233584364d0b5f63d | [] | no_license | ideasman42/rangetree-py | fbfeb222fb8980f228c0d704879d0f2ac09e09d8 | 8c8594b7547d5f70365e94ed0acef5ccb791c178 | refs/heads/master | 2021-01-11T06:52:55.794222 | 2016-10-26T12:54:26 | 2016-10-26T12:54:26 | 71,978,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py |
class RangeTree:
"""
Slow range tree version, use for testing.
"""
__slots__ = (
"_data",
"_min",
"_max",
"_hard_min",
"_hard_max",
)
@classmethod
def FromRanges(cls, range_iter):
range_ls = list(range_iter)
range_ls_unpack = [value f... | [
"ideasman42@gmail.com"
] | ideasman42@gmail.com |
293aed28c0d7663002ce1813c8f563ba65498434 | 16f1ccd091ed6a2d713fdeef938737c5b8bdec53 | /coleyoungmark/settings.py | ede0c6e2e7a6c104d5d4185807c21e7e1abb1351 | [] | no_license | cyoungmark/coleyoungmark | 2f2837669bc66efcf1a7bc4aeb39a3884cd91611 | 6efca7d3580f0b240c2d26b248ae64869234e6d5 | refs/heads/master | 2021-03-12T20:01:45.094400 | 2015-08-29T03:57:27 | 2015-08-29T03:57:27 | 36,996,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | """
Django settings for mywebsite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | [
"coleyoungmark@Coles-MacBook-Air.local"
] | coleyoungmark@Coles-MacBook-Air.local |
0f252f30b43655380250062d6602a40100b40390 | ade1d4623a29433308e8ed959c5be1e33c07fb4c | /hxl/converters.py | 1e6766aef761152e0468bed447d9b48c4e302a88 | [
"Unlicense"
] | permissive | raymondnijssen/libhxl-python | a6f08f95f1d2e10af08062bf6143af9051930638 | 40e34af5975001292299dab53139bd0cbdff74e0 | refs/heads/master | 2021-01-25T05:56:54.825257 | 2017-01-26T21:41:19 | 2017-01-26T21:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,756 | py | """Data-conversion classes
This module holds classes for converting to HXL from other formats, or
from HXL to other formats. Current, the only class is L{Tagger} (for
adding tags to non-HXL tabular data on the fly), but we will add more
converters soon, especially for formats like GeoJSON.
@author: David Megginson
@o... | [
"david.megginson@megginson.com"
] | david.megginson@megginson.com |
2994e4887672e2f5f3863effad6a98df827036db | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/kracekumar/sprites_tut_showmovingboxes.py | 9dd45e3e2d91ca5f484f4b8638a2f0c45deff20d | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import pygame
from pygame.locals import *
from sprites_tut_boxes2 import UpDownBox
pygame.init()
boxes = []
for color, location in [ ( [255,0,0], [0,0] ), ( [0,255,0], [60,60] ), (
[0,0,255], [120, 120]) ]:
boxes.append(UpDownBox(color, location))
screen = pygame.display.set_mode([150, 150])
while pygam... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
3c209ab182a6171f405a344ebd4393600a80fc5a | 6fd2c754e5503b7fbada5c19fa449cf1a899ef7e | /overlap_with_toxins/multiclass_classification/functions/featurizing_functions.py | a0b1082474d59893d68e560d02c33ed058b03337 | [] | no_license | atan14/ML_agrochemical | d7d7dd70282b725b105918db08add89df4ecb94d | 75e620727eb387c1948226dc5035e5d35eb0bd34 | refs/heads/master | 2020-03-21T23:40:16.977964 | 2019-05-30T20:05:19 | 2019-05-30T20:05:19 | 139,200,569 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | import numpy as np
def daylight_fingerprint(mol):
from rdkit.Chem.Fingerprints import FingerprintMols
return np.ndarray.flatten(np.array(FingerprintMols.FingerprintMol(mol)))
def daylight_fingerprint_padding(x):
result = np.zeros((2048,))
result[:x.shape[0]] = x
return result
def get_ecfp(mol)... | [
"tanaikrui@hotmail.com"
] | tanaikrui@hotmail.com |
818d433d1aee6a9d7e64cc77f52918ca81a967cc | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /GIT-USERS/ashishdotme/til.ashish.me/update_readme.py | aaddea4afad1353c82f665de43750860440207c0 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,166 | py | "Run this after build_database.py - it needs til.db"
import pathlib
import sqlite_utils
import sys
import re
root = pathlib.Path(__file__).parent.resolve()
index_re = re.compile(r"<!\-\- index starts \-\->.*<!\-\- index ends \-\->", re.DOTALL)
if __name__ == "__main__":
db = sqlite_utils.Database(root / "til.db"... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
51c5e4e1a1e7906e7623520ad5ad5c8651ef2141 | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/api/binding/jsonrpc_http.py | 3d2e776f7689332ee98d02399e6aaae3de72a773 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 5,235 | py | from __future__ import with_statement
'''
JSON-RPC over HTTP.
Public Scalarizr API
- Simple to Learn
- Simple to Use
'''
from __future__ import with_statement
import os
import posixpath
import binascii
import logging
import sys
import time
import urllib2
import hashlib
import hmac
try:
import json
except ImportE... | [
"kenorb@users.noreply.github.com"
] | kenorb@users.noreply.github.com |
6553ce680192ec4b4d05d75b017b92aba2a60cfc | 6bd4390463b42828dd3b8226f6b168a4c976abc1 | /Problem Solving/DONGHAK/[boj]/[boj]15829.py | 651311fc8bdab4f4f41d520ca07f9dbecd62143d | [] | no_license | SSD-2021/backend-study | e123cb76ed75190542350f8ea62e09f3f68c04ea | 7a3138d44daea67beebfab0c74c8bfb2b610050f | refs/heads/master | 2023-02-18T13:21:06.860116 | 2021-01-23T06:52:18 | 2021-01-23T06:52:18 | 323,662,633 | 0 | 0 | null | 2021-01-23T06:52:19 | 2020-12-22T15:24:49 | Python | UTF-8 | Python | false | false | 181 | py | L = int(input())
S = input()
sum = 0
M = 1234567891
r = 31
i = 0
for element in S:
temp = ord(element) - 96
sum += temp * (r ** i)
i += 1
answer = sum % M
print(answer) | [
"donghark03@naver.com"
] | donghark03@naver.com |
543c70702d7fc5ab4eff9fbab2702cb7e6d4b331 | 60b44961da72f61f19b4d999c2b2417b3e75c114 | /crud_python_sqlite.py | 34e5b02df6cd55d7eca3e44d2fecf7886733e9c7 | [] | no_license | bia-rodrig/CRUD-python-sqlite3 | 28183437bcc4e028f2d6083d24ee9f7095bb4885 | 9ef4fd0fc9887412818d8b946c19340cebe83aca | refs/heads/master | 2023-04-12T23:03:39.907505 | 2023-04-10T00:39:14 | 2023-04-10T00:39:14 | 199,316,563 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | import os, sqlite3
#Bianca Rodrigues
#GitHub: https://github.com/bia-rodrig/
#Check if DB exists and create if doesn't
'''
check = os.path.exists('db_test.db')
if (not check):
file = open('db_test.db', 'w')
file.close()
print('created')
# connection to DB
connection = sqlite3.connect('db_test.db')
# SQLite c... | [
"biancar1987@gmail.com"
] | biancar1987@gmail.com |
3512d17e90d7345d2358dba6a9babeb8df90f39f | a448e7f20efdf74dc095ba4ac3635e676555f433 | /homework03/life-gui.py | b08e5744508e84e518569ece233f4ee08e64f3ea | [] | no_license | vidyakov/cs102 | b4aeed18c1ff1cf98a000b2947610267ecc1d9e0 | 46416d648f8b4cf36142d375743822a181e02d0c | refs/heads/master | 2020-08-06T06:16:57.234147 | 2019-11-16T16:46:36 | 2019-11-16T16:46:36 | 212,868,061 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import pygame
from pygame.locals import *
from life import GameOfLife
from ui import UI
class GUI(UI):
def __init__(self, life: GameOfLife, cell_size: int=10, speed: int=10) -> None:
super().__init__(life)
def draw_lines(self) -> None:
# Copy from previous assignment
p... | [
"noreply@github.com"
] | vidyakov.noreply@github.com |
00f77be2e48fc00606f3dbbbd401874c87aa9f4f | 23481678e7ba1f3df89c9d4d9c5651123c60e119 | /BackUpFiles.py | 0097845fe52517faffe18ed40c2bc59954db8043 | [] | no_license | yusuf17-10/C99 | a7307bd4390949def3d0377dbc9bb7d775c0dd47 | 449ff1231a338d2d9b9844f381db72eb95f24287 | refs/heads/master | 2023-03-11T22:08:11.067870 | 2021-02-25T15:46:18 | 2021-02-25T15:46:18 | 342,294,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | import shutil
import os
source=input("Enter The name Of source Directory : ")
destination=input("Enter The name Of Destination Directory : ")
source = source+"/"
destination=destination+"/"
listOfFiles=os.listdir(source)
for file in listOfFiles :
shutil.copy(source+file,destination)
| [
"vadapallimumtaj123@gmail.com"
] | vadapallimumtaj123@gmail.com |
bb0e2091fccf56d46ed7d6833cf0c7ab7feb4ea2 | 9fb8f9c2ffc0e417b1ec3536e6f8b1336c909f23 | /panel/superadmin/migrations/0024_remove_uniuni_username.py | 829773434231ac0eaac04eee48d1e00194c7dc89 | [] | no_license | Hiba-Mahboob/fyp | 55d09cc07dac7c6a6a9de7547438dee5d71ead34 | d78d92799927306dc2802206c55d08b69438daa1 | refs/heads/master | 2023-08-01T19:51:53.133411 | 2021-09-20T09:19:50 | 2021-09-20T09:19:50 | 406,693,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # Generated by Django 3.2.7 on 2021-09-20 02:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('superadmin', '0023_uniuni'),
]
operations = [
migrations.RemoveField(
model_name='uniuni',
name='username',
),
]... | [
"17b-106-se@students.uit.edu"
] | 17b-106-se@students.uit.edu |
6d62f3e0f25fe5acad5b05c23847351e0515d4ca | e46f47b4838199e1be222c544be1a4a097b87b26 | /src/models/vrinv/train.py | 0766af54dd6f9bc249bf7fae1b2fc3eb16457716 | [
"MIT"
] | permissive | alexmlamb/SPUDT | 18291abae1b581f6aa049af40885053617db7732 | 5d4ff32c9e37a485c176d3e68c58723e544972e5 | refs/heads/master | 2021-05-25T19:32:16.889764 | 2020-04-08T22:51:15 | 2020-04-08T22:51:15 | 253,891,846 | 0 | 0 | MIT | 2020-04-07T19:26:11 | 2020-04-07T19:26:10 | null | UTF-8 | Python | false | false | 5,631 | py | import time
import torch
import torch.nn.functional as F
from torch import optim
from sklearn.decomposition import PCA
import matplotlib.pylab as plt
from common.util import sample, save_models, one_hot_embedding
from common.initialize import initialize, infer_iteration
from . import model
def gp_loss(x, y, d, devic... | [
"samuel.lavoie.m@gmail.com"
] | samuel.lavoie.m@gmail.com |
b3ff49b3d506d8d2a4eba691ca27a8218b4b262b | 99d8059d9ad1292c9d7a2f47dff64ee1f951aabc | /test.py | 780ee90a0df6fff0dbb96ea45cb20637e84a93f2 | [
"CC-BY-4.0"
] | permissive | ibLeDy/the-super-tiny-compiler | 94f38bc00ca394a79dcf5a3049056d62e316ff01 | c4804537def384e4bff896bfd2473efe283f87ec | refs/heads/master | 2022-04-25T19:56:04.537359 | 2020-04-27T16:01:47 | 2020-04-27T16:05:27 | 259,379,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | import the_super_tiny_compiler
input_string = "(add 2 (subtract 4 2))"
output_string = "add(2, subtract(4, 2));"
expected_tokens = [
{
"type": "paren",
"value": "("
},
{
"type": "name",
"value": "add"
},
{
"type": "number",
"value": "2"
},
{
... | [
"deejaynof@gmail.com"
] | deejaynof@gmail.com |
4f6394640fbf025002650fd3f5fe2e99c40efe6d | de56f06af1314640e2c5d2d24c02cd02281e3624 | /mini_pipes.py | ac5247a4763648a7c9118ea36f5267e527f44396 | [] | no_license | pts/staticpython | 7d21423567581f9f8eda4d60120232e992cc21b1 | 1bc021851823cbbc38c0dbd0790a252b760e9beb | refs/heads/master | 2023-03-06T19:12:01.918433 | 2023-02-21T21:48:08 | 2023-02-21T21:49:06 | 45,545,293 | 45 | 13 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | """pipes module for StaticPython."""
# Safe unquoted
_safechars = frozenset('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_@%-+=:,./')
def quote(file):
"""Return a shell-escaped version of the file string."""
for c in file:
if c not in _safechars:
break
else:
i... | [
"pts@fazekas.hu"
] | pts@fazekas.hu |
b1c4ef2d344d091e872bed1911b0122968ab3435 | b15bc93d979cb830a9f1fdd1da4dbf95758be080 | /galaxy-dist/eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs4.egg/EGG-INFO/scripts/bed_coverage.py | c4bd4b0311d9b2e13928abc21e9da2635cb6634b | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | najoshi/ucd-biocore-galaxy-command-line | 2faa7fe8b5881e6bc89b9f7d44ea4d7e54cd6d0e | ddc9c6113148b9c9f06ea6d552ac348852a37d25 | refs/heads/master | 2020-07-09T05:01:01.202511 | 2016-09-07T22:44:36 | 2016-09-07T22:44:36 | 67,649,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!/afs/bx.psu.edu/project/pythons/py2.7-linux-x86_64-ucs4/bin/python2.7
"""
Print number of bases covered by all intervals in a bed file (bases covered by
more than one interval are counted only once). Multiple bed files can be
provided on the command line or to stdin.
usage: %prog bed files ...
"""
import psyco_fu... | [
"najoshi@ucdavis.edu"
] | najoshi@ucdavis.edu |
e233dae0ba7bdbac9a4a8bddf19892c13945c25a | 0322a2ca41e9d1d1cad1f74f96dd6e31650f51c1 | /main.py | 7a036d02c58719daaeb64939e9d009727b746818 | [] | no_license | standardgalactic/Gibbs-sampling | b107e632f14f951a82e53252bc431b06fda83b5f | 23ec0c6475003eb019dd13598bbb130d60e29ee1 | refs/heads/master | 2022-02-15T09:20:51.347003 | 2015-12-01T23:01:23 | 2015-12-01T23:01:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,602 | py | __author__ = 'chinna'
import theano
from theano import tensor as T
import numpy as np
import matplotlib.pyplot as plt
from theano import shared
from theano import function
import scipy as sp
from scipy import signal
from PIL import Image
class gibbs_sampler_class:
def __init__(self,config):
print "Creating... | [
"chinnadhurai@gmail.com"
] | chinnadhurai@gmail.com |
d35082dc40ef0bf6e3823cc7384a225c4bb6135b | 79e19819aec49b500825f82a7de149eb6a0ba81d | /leetcode/24.py | ba48ddbc51a3aa7d331ae719f845d9b53bc1dee8 | [] | no_license | seoyeonhwng/algorithm | 635e5dc4a2e9e1c50dc0c75d9a2a334110bb8e26 | 90406ee75de69996e666ea505ff5d9045c2ad941 | refs/heads/master | 2023-05-03T16:51:48.454619 | 2021-05-26T00:54:40 | 2021-05-26T00:54:40 | 297,548,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
root = prev = ListNode(None)
prev.next = head
while head and head.n... | [
"seoyeon@nowbusking.com"
] | seoyeon@nowbusking.com |
9efec025d99a7053e6a026371f77723b727c2fa6 | 1a5a9bfa6ee62c328fc6ab828ad743c555b0f23a | /catagory/JianzhiOffer/stage-04/0376-binary-tree-path-sum.py | 09f548c21cfe7f1906cf346e4628da16006ad407 | [] | no_license | zzy1120716/my-nine-chapter | 04b3e4d43a0d8086e5c958b81a3dc4356622d65f | c7bf3eed366b91d6bdebb79d0f11680cf7c18344 | refs/heads/master | 2020-03-30T03:07:14.748145 | 2019-05-15T13:07:44 | 2019-05-15T13:07:44 | 150,670,072 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | """
376. 二叉树的路径和
中文English
给定一个二叉树,找出所有路径中各节点相加总和等于给定 目标值 的路径。
一个有效的路径,指的是从根节点到叶节点的路径。
样例
给定一个二叉树,和 目标值 = 5:
1
/ \
2 4
/ \
2 3
返回:
[
[1, 2, 2],
[1, 4]
]
"""
# Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, No... | [
"zzy1120716@126.com"
] | zzy1120716@126.com |
6b6760d54ab8ed4ae6efdc3eec0985701a2fb123 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/datashare/v20181101preview/get_data_set_mapping.py | 55fc5d19fd9e4b4798021b855d7b238d175d2bb4 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 3,255 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
73d70662fc18497745cf16fbd499aecf914b036e | 9d68e4c8e210b4a25483887a5d10850bdbe0b712 | /234.py | a75de8a7e1be722cd15b406f231464b698469669 | [] | no_license | kliner/leetcode | 588f26e8d9a977ef8c581ba89165c9a1360187ac | 4145d415dabb2e5e8195817b517e5a28e2bf216f | refs/heads/master | 2020-12-24T16:15:31.060680 | 2016-02-25T15:38:29 | 2016-02-25T15:38:29 | 33,992,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
cur = head
newHead = None
whi... | [
"kliner@live.cn"
] | kliner@live.cn |
23c24ca31a1dd9dc5822143c5c8eced6558c253d | 8dc3e9887d3ab15215ba9406d4ee06fdb4c1ef46 | /components/lib/filter_mongo.py | 7d4dc3319f0fc6826bdc77ea942293ad90c15671 | [] | no_license | zmilan/plutonium | 71568594f3048cc2d325f50be1cb09b7966c5c89 | 1df584ec481f7f9e51c54b2dfaa327cdcc7c23bc | refs/heads/master | 2021-01-01T19:33:01.089534 | 2015-10-30T20:27:38 | 2015-10-30T20:27:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | filters = {}
def filter(collection):
def helper1(func):
def helper2(**kw):
ret = func(**kw)
#ret.update({'__collection__': collection})
return ret
filters[func.__name__] = helper2
return helper2
return helper1
class Filter(object):
def __init__... | [
"miguel.alarcos@gmail.com"
] | miguel.alarcos@gmail.com |
b1494fd9fd38995cfefa98dab60e75f584231fd0 | ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86 | /pychron/labbook/tasks/actions.py | 4c142ac4a827f87beb652a7d47c0fe7d622d8d58 | [
"Apache-2.0"
] | permissive | UManPychron/pychron | 2fb7e479a9f492423c0f458c70102c499e1062c4 | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | refs/heads/develop | 2022-12-03T23:32:45.579326 | 2020-01-29T19:02:20 | 2020-01-29T19:02:20 | 36,100,637 | 0 | 0 | null | 2015-05-23T00:10:06 | 2015-05-23T00:10:05 | null | UTF-8 | Python | false | false | 1,794 | py | # ===============================================================================
# Copyright 2014 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
4e097a35fdfa9814cae2d318dd92445c9608917c | e4719910564b923cae492cf5f1ccd8590a6cda05 | /app/preprocessings/livedoor.py | 5c1ad0e4a7b1050a9188bf821ec836b056c22e4b | [] | no_license | ninnin-engineer/natural-language-classifier | 4f4b8865fa8a0cb453ae96ba7db76a0565795979 | 2ca0d8799b7a0ec60e86c83017eb696cf5874625 | refs/heads/master | 2021-08-16T17:33:24.208039 | 2017-11-20T05:59:15 | 2017-11-20T05:59:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | import glob
import os
import numpy as np
import pandas as pd
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
LIVEDOOR_DIR = os.path.join(BASE_DIR, 'data', 'livedoor')
def load_df():
category = {
'dokujo-tsushin': 1,
'it-life-hack':2,
'kaden-channel': 3,
'lived... | [
"afujiwara2012@gmail.com"
] | afujiwara2012@gmail.com |
75dc191ffa958cad0e57397c2cd8e0d23936a5ed | 7c1e597df32844e1c2a5b1b83456813b2f5d5abb | /does_it_live_v0.10.py | 30b233eee70804315894039da9225cbf8c734ae0 | [] | no_license | alexisdacquay/does_it_live | 6c835ceeab787962cd3048f821dee139c96ce1c6 | 241b00c9bcfd399b1cb8e11ee6e64588048101b9 | refs/heads/master | 2022-07-08T00:52:54.043402 | 2022-06-15T20:08:44 | 2022-06-15T20:08:44 | 144,036,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | #!/usr/bin/env python
#
# Version 1.0 2018-08-08
# Written by:
# Alexis Dacquay
import argparse
import time
import os
import signal
import subprocess
import socket
import sys
import signal
import re
import platform
#import syslog
#import sys
#import datetime
#from ctypes import cdll, byref, create_strin... | [
"adacquay@gmail.com"
] | adacquay@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.