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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36d7aaf1239c27b5a144870cda82fb54a646e143 | 50ea96a7b912789185b9e51c97b780ce5b3e1511 | /Tests/test_XmasHacker.py | a8e0afc51191f98936ebd05065081bc8c6589354 | [] | no_license | valies/AoC2020 | d5b88938a5370cbe0f1cf36d233b3073286ca155 | 1c47b0d796e0accb7d5bc4f2259a13194a2ecdd2 | refs/heads/master | 2023-03-20T10:25:59.925044 | 2021-03-13T13:59:21 | 2021-03-13T13:59:21 | 318,211,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import unittest
from Day9.xmasHacker import XmasHacker
class TestXmasHacker(unittest.TestCase):
def test_xmas_hacker_part1(self):
lines = [35, 20, 15, 25, 47, 40, 62, 55, 65, 95, 102, 117, 150, 182, 127, 219, 299, 277, 309, 576]
result = XmasHacker.find_culprit_part1(lines, 5)
self.assert... | [
"da_valies@hotmail.com"
] | da_valies@hotmail.com |
d8611bb01cbb911f726ce7d79586778f290e47ee | f5a002ae3b12a750fa3c777e8ce239677d0f8db5 | /gst_reports/models.py | 88b3a5117472965d2aa359f1c95d926b75f0228f | [] | no_license | abhishek-ag2000/working123 | f217911c6f54091b6412f1bf7e594998cab5cbda | e9e07d98011a4db812d06e50de4063e305dbc1d9 | refs/heads/master | 2022-12-14T03:54:54.064379 | 2019-09-14T14:10:58 | 2019-09-14T14:10:58 | 188,194,278 | 0 | 0 | null | 2022-12-08T05:21:08 | 2019-05-23T08:37:53 | JavaScript | UTF-8 | Python | false | false | 18 | py | """
Models
"""
| [
"abhishek.ag2000@gmail.com"
] | abhishek.ag2000@gmail.com |
96fea94e22cbfaaf30129754654274287d356dc6 | e1015c6a022d3c7c631262076b81f422e04b97f1 | /manage.py | dfb727b7f679d970d1dadbe86e976ccf78468678 | [] | no_license | mikaeltheimer/mdq_api | aa9e9a7286c881319b2e526550782e41755cace9 | 8ed7eaa4acf8592e996b6f02523e8a599b81f5f4 | refs/heads/master | 2021-01-20T03:40:24.636280 | 2014-06-22T01:27:54 | 2014-06-22T01:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mdq.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"me@hownowstephen.com"
] | me@hownowstephen.com |
40a96d6da20ca24cb48bf2ecfa5d1d8e91736e5c | 787ca5f82814a58c63cf3d8c0ec02082c40420de | /sbfury/golpe.py | 44f94c69909c812085dd0cff319e7226e67c4fad | [] | no_license | hugoruscitti/sbfury | 72e586354b7cb88532bcfbe5705a66b1008710cb | 474ce8304c45e63214184cde50f2976724fd8455 | refs/heads/master | 2020-06-29T19:03:25.284388 | 2013-01-02T04:15:09 | 2013-01-02T04:15:09 | 4,811,263 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | # -*- encoding: utf-8 -*-
# Shaolin's Blind Fury
#
# Copyright: Hugo Ruscitti
# Web: www.losersjuegos.com.ar
import pilas
from configuracion import DEPURACION
import efecto_golpe
import random
class Golpe(pilas.actores.Actor):
"""Representa un golpe (invisible) que un actor emite a otro."""
def __init__(self,... | [
"hugoruscitti@gmail.com"
] | hugoruscitti@gmail.com |
4d481472bad08829b53f8d4c2d484a12c46618e7 | 27e691f8af9d023105feb57260ab5353b2cf10b7 | /model/account.py | 2e10a81b4c0e78eb9075c6f2faa4e3b4ab638010 | [] | no_license | Ssawalha/Deployable-TTrader | 8e9a617c4e09b6aa229270c99ad809b0f7743da1 | b7bba5b6ab596f8b2a9bc8cb1b7730850ade311a | refs/heads/master | 2020-06-24T04:36:32.847363 | 2019-08-13T19:50:52 | 2019-08-13T19:50:52 | 198,851,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,820 | py | import sqlite3
from time import time
from collections import OrderedDict
from model.orm import ORM
from model import util
from model import position as p
from model import trade as t
from random import randint
class Account(ORM):
tablename = "accounts"
fields = ["username", "password_hash", "balance", "a... | [
"sami_sawalha@hotmail.com"
] | sami_sawalha@hotmail.com |
b4df791f6b5714998c3eed2619b3569d1db70e59 | 865d120bfe9ee0cc3474ae5c5ddd68992c60ef91 | /test_args.py | 0bb04f3408c68a3f8779e347ed7a29c70064b05a | [] | no_license | JiangWeiFanAI/High-resolution-seasonal-climate-forecast_v1_csiro | 6462ba540ab908f915c0213033b7a34f262680bc | e282092f427069817187d10a750a6a8cf2c1ea88 | refs/heads/master | 2020-11-28T02:33:05.006899 | 2020-03-10T08:14:11 | 2020-03-10T08:14:11 | 229,681,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | import os
import data_processing_tool as dpt
from datetime import timedelta, date, datetime
from args_parameter import args
from PrepareData import ACCESS_BARRA_v1,ACCESS_BARRA_v2
import torch,os,torchvision
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import matplotlib.pyplot as plt
from ... | [
"45549842+JiangWeiFanAI@users.noreply.github.com"
] | 45549842+JiangWeiFanAI@users.noreply.github.com |
39adda87b74dd84e828aa911f336be7f59c02608 | dadafb6eb3d56cf3d9dc8f5ed96ae9bb32a3b465 | /PythonStudy/FirstPythonPro/douban_movie.py | 8367f3d17536d63fae19eebd652de07da28fb34a | [] | no_license | FLShan/DataAnalysis | 75049dba02419f8fc30e78b8a29c7af41672dcc5 | 19073432e73bff529f2f44b47cfbfdd6a70ae921 | refs/heads/master | 2021-05-12T06:11:41.188300 | 2019-03-27T09:48:00 | 2019-03-27T09:48:00 | 117,212,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | # !/usr/bin/env python
# encoding=utf-8
import requests
import re
import codecs
from bs4 import BeautifulSoup
from openpyxl import Workbook
wb = Workbook()
dest_filename = '电影.xlsx'
ws1 = wb.active
ws1.title = "电影top250"
DOWNLOAD_URL = 'http://movie.douban.com/top250/'
def download_page(url):
"""获取url地址页面内容"""... | [
"shanfangliang@163.com"
] | shanfangliang@163.com |
8e6f2005191fbcdb014cc5df3403ff2e8328714a | 9ff63b122f833b498529a6d85afda3615fc620eb | /BOJ/15921.py | 89d87631383cda1f561a7f6eb28e28a4c9d526ae | [] | no_license | jang010505/Algorithm | 7bbb9f1a5c087a3ac53b9a02e6b633aa81ec1a29 | 3442a492284decfdd3a727fc5fe9cfd9471096be | refs/heads/master | 2023-03-14T02:19:36.255303 | 2021-03-04T15:07:02 | 2021-03-04T15:07:02 | 299,441,113 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | n=int(input())
if n: print("1.00")
else: print("divide by zero")
| [
"noreply@github.com"
] | jang010505.noreply@github.com |
b712ff46278675d218e9efd11213d97ab19c4e89 | be028671344cce87c0cea4a1f839c68eccb330f4 | /scrapy/who/who_surname_processor.py | 5adea363d0fbffb81c1e3b70dc6cd67a770a69d3 | [] | no_license | taylor3lewis/kipling | 7b3046fba752f4e8d6e41953357a64da18b704c1 | d5b8e789a1fcc6825e8b973fc0d70ee8fbd7b03a | refs/heads/master | 2020-04-07T01:17:37.314470 | 2018-11-21T20:19:02 | 2018-11-21T20:19:02 | 157,937,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # coding: utf-8
from glob import glob
lines = []
for f in glob('data/SOBRENOME*'):
print f
fl = open(f, 'r')
lines += fl.readlines()
fl.close()
py_file = open('who.py', 'w')
py_file.write('# coding: utf-8\n')
py_file.write('SURNAMES = {')
buff = ''
unique = set()
for line in lines:
line = line.st... | [
"taylor3lewis@gmail.com"
] | taylor3lewis@gmail.com |
1768c1f480715adfacad2c6422c0cffce728714a | 596d151b6fb6b58595d3d99f13685b3a12465a7c | /01 第一周 机器学习之无监督学习/单元1 聚类/02 KMeans/消费水平(KMeans).py | eb752661e94404827fe8969388bbd4181df8829e | [] | no_license | git-zzf/PythonMachineLearning | 9ce54558f0d24525c07024cc7731eeac316482b8 | 7aae13583d97498081caa459b1c1e387784af8c5 | refs/heads/master | 2022-04-24T15:51:40.830970 | 2020-04-29T05:42:00 | 2020-04-29T05:42:00 | 258,816,292 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | import numpy as np
from sklearn.cluster import KMeans
path = r"E:/Notes/PythonMachineLearning/01 第一周 机器学习之无监督学习/单元1 聚类/01 全国31省消费水平/31省市居民家庭消费水平-city.txt"
def loadData(filePath):
fr = open(filePath, 'r+') # r+表示读写打开方式
lines = fr.readlines() # 返回全部行,以列表储存在lines中
retData = [] # 用来储存数据部分,包含城市名和消费水平
re... | [
"hfxxwilliam@gamil.com"
] | hfxxwilliam@gamil.com |
90990c832821edc13bd914233d448ee7c9f16b46 | cb3db5736ee11832572dc1c2243383e595f7ffd1 | /src/experiments/final_spiking_loo_wta_mean.py | de7e316d2c725760d9a3ef45041b832268d75fef | [
"MIT"
] | permissive | GustavEye/spiking-radar-gestures | 7c5c473cabad483860727cd4002eefd1912822a4 | a0fe738245a42596e5828a16244342699980ac46 | refs/heads/main | 2023-09-03T21:22:25.459739 | 2021-11-08T10:09:30 | 2021-11-08T10:09:30 | 425,784,173 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | import tensorflow as tf
from tensorboard.plugins.hparams import api as hp
from src.neuron_models import wta_layer, lif_neuron
HPARAMS = [
hp.HParam('pool_size', hp.Discrete([4])),
hp.HParam('wta_threshold', hp.Discrete([0.05])),
hp.HParam('n_neurons_1', hp.Discrete([75])),
hp.HParam('dropout_1', hp.Di... | [
"daniel.auge@tum.de"
] | daniel.auge@tum.de |
cc0c7f3391c999eb34f4a93e7b664773a4712134 | 63037550c61b1b779c6e79a94722d130565789b8 | /src/main.py | 40acb63ee12fc08859f7b091fbc1ded8397e5d23 | [
"MIT"
] | permissive | Kei198403/python-template | 598ec31fe1038d5996442568ac12aa9887e9bee2 | 777427b0fddaadb5030a39a3445a7de53b232943 | refs/heads/main | 2023-04-22T14:24:53.911713 | 2021-05-07T13:18:47 | 2021-05-07T13:18:47 | 365,227,015 | 0 | 0 | null | 2021-05-07T13:18:47 | 2021-05-07T12:30:52 | Dockerfile | UTF-8 | Python | false | false | 152 | py | # -*- coding: utf-8 -*-
def sample() -> str:
return "hoge"
def main() -> None:
print("Hello Python")
if __name__ == "__main__":
main()
| [
"74121135+Kei198403@users.noreply.github.com"
] | 74121135+Kei198403@users.noreply.github.com |
01509e3cb94f4932fe35bb4db8fbf15445461508 | 81eceea57d570fa1f9f6468875b1b06b8de9f0f0 | /.history/block_20200624172716.py | ca5c135349d1728a51d30bcf28a737626975d11e | [] | no_license | digg2414/python-blockchain | fe9cdab754123eddef660c39ffb4c0c6b0e99523 | 36c4df03bdd71dbd58663ee4b16f6a72f02d401f | refs/heads/master | 2022-11-05T01:08:44.229492 | 2020-06-24T23:11:41 | 2020-06-24T23:11:41 | 274,786,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import time
def mine_block(last_block, data):
"""
Mine a block based on the last_block and the data.
"""
times_stamp
class Block():
"""
Block: a unit of storage.
Store transactions in a blockchain that supports a cryptocurrency.
"""
def __init__(self, timestamp, last_hash ,dat... | [
"JHarold1241@outlook.com"
] | JHarold1241@outlook.com |
1cca9ab09d7162c952c43e3c5f2e899f5f790b69 | 75bcfd59fe9e3647d7e8b74115108710a122ff9c | /fixture/support.py | 0c5f43aa3e01d60db36c1160d274d3ed4a8a9805 | [
"Apache-2.0"
] | permissive | VinnieJohns/barancev_python_training | ebc36271ae745d58d286da337b59bd1d169d9ba6 | 10627548f2d797575f239fef6de345bc0d44921a | refs/heads/master | 2021-01-10T20:35:53.711646 | 2015-05-12T20:55:09 | 2015-05-12T20:55:09 | 31,509,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | __author__ = 'VinnieJohns'
import random
import string
def random_string(prefix, maxlen):
# ' and spaces signs are replaced to avoid known failures
symbols = string.ascii_letters + string.digits + string.punctuation.replace("'", "") + " "*10
return prefix + "".join([random.choice(symbols) for i in range(r... | [
"novikov.d12@gmail.com"
] | novikov.d12@gmail.com |
326379cea86e0516daf08cfd4161e352da2b6c0a | 21ab826db670e26024050536f0e2c5a6354d53cf | /project-euler/p015.py | 6960b8726d68fc57732635cd32e42e1704994fcc | [] | no_license | mingrammer/problem-solving | 32a6cba9545fcb7cda99314c9fb6d68dd94de985 | d9cd8aaea6dcbe79b4689634ffc92eee0031cc65 | refs/heads/master | 2022-11-26T15:46:39.372093 | 2020-08-01T11:00:58 | 2020-08-01T11:00:58 | 36,556,280 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # Lattice paths
from math import factorial as f
n = 20
print(f(2*n) / (f(n)**2))
| [
"mingrammer@gmail.com"
] | mingrammer@gmail.com |
881504c3abee2e2338c4e7c12b8138d4dad30849 | 6581d4f7607f11ee46a29f5a2a00264bd4b1b188 | /4131-Internet_Programming/assignment5-cgi-gallery-multiuser/delete.cgi | ae39e61ba6e6ecb298ede5a53265f3640c4fa41f | [] | no_license | marvintv/apollo-academia-umn | 099bccd9bc33f70b9ea6b24d9fa02cf06196446c | a283d50eff1d0e7c158479ddc8e17932d518104a | refs/heads/master | 2021-05-31T05:05:34.292432 | 2016-04-25T06:44:35 | 2016-04-25T06:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | cgi | #!/usr/bin/python
import cgi
import os
import glob
from shared import * # import common templates and variables
from database import * # import database to check role
form = cgi.FieldStorage()
fileid = form.getvalue("id")
title = ""
msg = ""
success = False
# check if logged in and if owner
if not isLoggedIn():
... | [
"leewenchuan.lwc@gmail.com"
] | leewenchuan.lwc@gmail.com |
25186efeae2e482cb55a1c90ce296d3a932ba232 | e757b98dccb9f29c0a22be3e938c89e7fe40e9b1 | /setup.py | 49304b0917c3fe4fc7045f9786551b4832c892e0 | [] | no_license | tipmeet/tippresence | bb031ebfc23fa5fc067ef0ea53767fcbb45e7bf4 | 2a512c1586bae89927e84ab5a163e6eac51dbfc0 | refs/heads/master | 2021-01-18T05:28:42.447009 | 2011-07-19T08:22:04 | 2011-07-19T08:22:04 | 1,389,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
if __name__ == '__main__':
setup(
name='tippresence',
description='Presence server with SIP/HTTP interfaces written in Twisted Python',
license='MIT',
url = 'http://github.com/ivaxer/tippresence',
... | [
"ivaxer@imarto.net"
] | ivaxer@imarto.net |
741329c6619ac5059c1d42a35814dc330de3165e | cdb26c82ceadb29752c6390bcb6511266d22af94 | /prompts.py | b2ed6457caf5318604b453bd515ef9d609b92886 | [] | no_license | raghukotha/kuvanassist | b0d3531b6452b7f2373345decdce76f123d3bd2e | cd697357f6f838810540d3f7c75688828cb22725 | refs/heads/master | 2022-06-01T00:53:39.041047 | 2020-05-03T00:01:14 | 2020-05-03T00:01:14 | 260,300,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | KUVAN_WELCOME_MESSAGE = """
Welcome to KUVAN Assist. I am Your personal assistant and am here to help support
you with your KUVAN Treatment. This setup exercise will take less than five minutes.
Let us get started. You can get started by saying I am now taking medication KUVAN.
"""
KUVAN_YOU_WANT_METO_REMIND = ... | [
"raghu_kotha@yahoo.com"
] | raghu_kotha@yahoo.com |
e6f091efcc919fd2b66d19efe2d9162e7d7f49bc | 076459cf0f988048952fcf28cb6695ca41a255cc | /ogretici_paket/scripts/zaman_client.py | bf96da305b1f0ff219204c9aa227a7ad9a4226f3 | [] | no_license | moguztas/uygulamalarla_ros | f8007ac9747b888125a577084c2dd53ace7110d7 | 6cf350fc8900da9d6502c85cd935cee6574a4535 | refs/heads/master | 2023-01-30T17:52:08.491600 | 2020-12-06T18:19:44 | 2020-12-06T18:19:44 | 272,462,642 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #!/usr/bin/env python
import sys
import rospy
from ogretici_paket.srv import GecenZaman
def istekte_bulun(x):
rospy.wait_for_service('zaman')
try:
sure_hesapla = rospy.ServiceProxy('zaman', GecenZaman)
cevap = sure_hesapla(x)
return cevap.gecen_sure
except rospy.ServiceException:
... | [
"noreply@github.com"
] | moguztas.noreply@github.com |
25967920e75910dd4dbb5fa762724521d721d10c | ae300efd9706d1facfb1150dd23dbdf25a7307ad | /app/discrete/App.py | 7bec4d3b3d7fa5aaae7e9ebf37131d3a7d62da58 | [] | no_license | markreha/cloudpi | 7b3e3ad4421cc2a676463d9e2b24b2f79068a09d | 416d131053309712690178be9ecec706a0fbf59f | refs/heads/master | 2021-11-01T17:09:00.305664 | 2021-10-07T14:26:50 | 2021-10-07T14:26:50 | 95,674,778 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | import Config as cfg
from TemperatureSensor import TemperatureSensor
from LED import LED
import datetime
import json
import requests
import time
# Load the current Environment Configuration
print("Running Sensor Application v0.1")
if cfg.environment == "dev1":
print("Running Dev 1 Environment Configuration")
environ... | [
"mark@Marks-MacBook-Pro.local"
] | mark@Marks-MacBook-Pro.local |
201617e3c98c2c8d3e7e7f717bff300bc4405cf3 | c70b0685c47059ce690e0390054d085af58eb0a7 | /docs/conf.py | 72e5bbb0598f62006e4fdbbe12e9b05be0ef89b6 | [
"MIT"
] | permissive | tayfun/bilgisayfam | 13ede05f116c3ffa5c9ecfcaa09ab9eb0410b7c1 | f2f9942be53abefc1caf31509553c46957195535 | refs/heads/master | 2021-01-01T19:11:27.725112 | 2014-10-05T20:52:34 | 2014-10-05T20:52:34 | 5,346,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,848 | py | # -*- coding: utf-8 -*-
#
# bilgisayfam_project documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 17 11:46:20 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated f... | [
"ts@tayfunsen.com"
] | ts@tayfunsen.com |
f5f7b157ea9d5a2354c0805cea334cfac3408e7b | 0a4031c062c098811c3b419b94ccf96724439107 | /json-quiz/3.py | 3792c2d4d8cd12eef82fce1a96bcc06d32b59ffc | [] | no_license | dflatow/compjour-hw | d934ac6b9d22ca923100d023809fa32103e8e74a | 4a26854769c31536247acb41b35f32fb55ab1e59 | refs/heads/master | 2020-05-05T03:17:49.699470 | 2015-06-02T02:15:55 | 2015-06-02T02:15:55 | 33,497,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import requests
import json
data_url = "http://www.compjour.org/files/code/json-examples/maps.googleapis-geocode-mcclatchy.json"
# fetch the data file
response = requests.get(data_url)
text = response.text
# parse the data
data = json.loads(text)
print('A.', data['results'][0]['formatted_address'])
print('B.', data['s... | [
"daflatow@gmail.com"
] | daflatow@gmail.com |
6c39c3e981abfb7cb8b41215d557e2d06b0646ad | b50f93b1b0a5955e80a9f86816eb439edc280ef1 | /train.py | 87e3c2af76575c66f9e956609543f276b758b8e8 | [] | no_license | falcong/DAE_impute | aba8a9703a2bbefc4f4a4b94fd19438b644e8cfb | 7314d592adbe2e3947673fc55d874d0543f3a205 | refs/heads/master | 2022-07-13T21:54:58.555657 | 2020-05-13T16:46:01 | 2020-05-13T16:46:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | import argparse
import os
import torch
from data import MissDataset, MissDataLoader
from TCDAE import TCDAE
from utils import *
import random
import math
import torch.nn as nn
import torch.nn.utils.rnn as rnn
import torch.utils.data as data
import torch.nn.functional as F
from torch.autograd import Variable
import nu... | [
"1146628217@qq.com"
] | 1146628217@qq.com |
27d84525c635d282c71896b4d755ef60be36f03f | 55e55605975a844796e130aab44f4b5a15615207 | /Leitor/leitorXML.py | 5ab094d24f2deb1a483761519e70224165bc078f | [] | no_license | thiagoSilvaGit/PDE-NPDP | 8a6bf8726774787a45e7aa835de8c51496b54921 | 48af68c049eb1a2ee3873f7d7888d5242b68313e | refs/heads/master | 2021-05-04T05:26:11.992600 | 2021-04-09T17:21:09 | 2021-04-09T17:21:09 | 120,337,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # -*- coding: utf-8 -*-
import xmlschema
from pprint import pprint
def LerXML(arq):
xs = xmlschema.XMLSchema('instancia2.xsd')
#print "XML válido: {}".format(xs.is_valid(arq))
b = xs.to_dict(arq)
#pprint(b)
my_dict = xs.to_dict(arq)
return my_dict
def LerXMLGen(arq):
xs = xmlschema.XMLSch... | [
"thiagoSilvaGit@users.noreply.github.com"
] | thiagoSilvaGit@users.noreply.github.com |
59b0fbaaadba789abda8ee705a64c83eb5c623dd | ff80369ce7fdd6229ee79849b44e780d8639b5fa | /model/woz_model.py | 73d1b537dd0d5e5bedbc60b326c9d2a933d46717 | [] | no_license | YourThomasLee/DSTer | 5878717611fc9dcab3360ca3d4162f5efc691b22 | 9f0efbf5a0d1f558dc9d02aa05dd8e05c853fcb1 | refs/heads/master | 2023-09-01T19:54:15.736185 | 2023-08-18T10:00:42 | 2023-08-18T10:00:42 | 230,451,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,231 | py | # -*- encoding: utf-8 -*-
from transformers import AutoModel
import torch
import torch.nn as nn
import torch.nn.functional as F
from copy import deepcopy as c
from base import BaseModel
from trainer.data_loaders import tokenizer
from model.attention import MultiHeadedAttention
from model.feed_forward_net import FeedFo... | [
"baizhen9406@163.com"
] | baizhen9406@163.com |
ce79e3ebe49d76065f91853f41084084a188bfa6 | c738f40e7a9c2e5a9712cccd88c7f0e79b7167eb | /mysite/mysite/urls.py | 8d3e44717d88cdfda2f051a78a5eee60f4100176 | [] | no_license | sitayebsofiane/tutorial_django | f100717c563b61e87e8cfb7771c907ecdcbabf67 | 91058987ae706080dbe6c8af78b5f4636975fb74 | refs/heads/master | 2021-03-26T04:33:44.309167 | 2020-03-19T11:21:03 | 2020-03-19T11:21:03 | 247,672,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"sitayebsofiane51@gmail.com"
] | sitayebsofiane51@gmail.com |
d630e5ba33092c584e73ad080308fae594141f6f | a0050717ec4c859f6591db7754f8738c39c4f835 | /hotel/migrations/0001_initial.py | 4ef8d84594f420380cc5b09dcc2525b15d0b124e | [] | no_license | mailysvl/loc | c208f344202280d5447f9129ef3c8ee31137ecc1 | ce3c4be036e849454d86a0b1091a3cf608f81e0c | refs/heads/master | 2020-03-24T20:36:52.757412 | 2018-07-31T08:50:33 | 2018-07-31T08:50:33 | 142,987,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # Generated by Django 2.0.1 on 2018-06-12 01:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Room',
fields=[
('id', models.AutoField(auto... | [
"ksivilay28@gmail.com"
] | ksivilay28@gmail.com |
d341f0362017e5500d7df28450208436149a1e49 | a7d906ccb28a14c39eb986a991362930d4903661 | /Basics/basic1.py | 20e484aaab7773a5c329167cabbd509aa1db9c78 | [] | no_license | falaqm/ArtOfDoingTkinter | fe7944b2d002c39dd6d711554ec673e5a85affb6 | 7226825ecdc0e71fd507df57ffea14ca7fb57fba | refs/heads/master | 2023-03-28T01:19:48.905505 | 2021-04-01T13:14:17 | 2021-04-01T13:14:17 | 352,979,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | # Labels and Pack
import tkinter as tk
# Define Window
root = tk.Tk()
root.title("Window Basics")
root.iconbitmap("hot_air_balloon.ico")
root.geometry("400x400")
root.resizable(0, 0)
root.config(bg='blue')
# Create Widgets
lbl_name_1 = tk.Label(root,text='Hello my name is Maria')
lbl_name_1.pack()
lbl_name_2 = tk.L... | [
"m2492141"
] | m2492141 |
9944b7a59ff1b20e079e84460f9acb8f095ddba7 | 68c51d14853d7a50fe28086904e89fdf6ceaeb2b | /user/views.py | a02d77889b62d4f905c4ccc18910588cdc7543c2 | [] | no_license | theballkyo/minecraft-web-py | bc52a5537b8d1bd3f782aa263a990a85a8b57837 | 9463b14218a774022f0e784249831ba7b3953ac2 | refs/heads/master | 2016-09-05T09:48:32.988994 | 2015-08-29T04:54:11 | 2015-08-29T04:54:11 | 40,349,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,052 | py | from django.shortcuts import render
from django.http import HttpResponse
from .forms import CreateForm
from .models import Account, Inv
from hashlib import sha256
import random
import string
def index(request):
return render(request, 'index.html')
def profile(request, username):
user = Inv.objects.filter(inv_... | [
"theballkyo@gmail.com"
] | theballkyo@gmail.com |
0b2848f9370c62928edbdd57d699b64764f320c8 | 155724583d851f5ac06c5f89705d0b34dda54390 | /analisys/random_forest_classifier.py | 24b22fd2ae48b4fa1c06a8558a87f02a0b2efa51 | [
"MIT"
] | permissive | chavdim/amazon_comments | 76e420207d45ca1fe19450cf8f11e6cc1f8df8e5 | 609beb66b0efa9c0d5fbc1def5f32a6c43afb15f | refs/heads/master | 2020-06-17T01:24:44.620743 | 2017-02-23T07:00:43 | 2017-02-23T07:00:43 | 75,053,294 | 0 | 2 | null | 2017-01-31T05:41:25 | 2016-11-29T07:05:17 | Python | UTF-8 | Python | false | false | 2,250 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 20 20:15:06 2016
@author: chavdar
"""
from sklearn.ensemble import RandomForestClassifier
from sklearn.cross_validation import train_test_split
from sklearn.preprocessing import normalize
import numpy as np
d = str(30)
with open('train_top'+d+'.c... | [
"chavdardim90@gmail.com"
] | chavdardim90@gmail.com |
838017f0c58cc85bce1826841deadf7fbdddce44 | 7dd1e2319c9edfb43181b141dbabe9cc5688e6de | /todo_list/project/urls.py | dfef677e5d2ea779dc27e0c20390d3dbd53f07e2 | [] | no_license | hshlepak/todo_list | 29ad840f49ecb6b8133d8b230c35f3702ce95468 | fda91d35f9f09a9ce21f9115bc27127c417f60ac | refs/heads/master | 2022-11-26T06:37:51.377945 | 2018-11-23T12:54:52 | 2018-11-23T12:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from django.conf.urls import url
from django.contrib import admin
from project import views
from .views import TodayTasksView, NextDaysTasksView, ProjectTasksView, ArchiveView, \
AddTaskView, AddProjectView, DeleteTaskView
urlpatterns = [
url(r'^today/$', TodayTasksView.as_view(), name='today-tasks'),
url... | [
"annashlepak@gmail.com"
] | annashlepak@gmail.com |
308f3a1b9d0fef144aca551c126510b5e4ebbb5c | 9f535db5cee5c861504789375744a02b6d00ff76 | /fm_proxpt.py | fee29e7d651b298e3c834529e8c9c0504aa76dbd | [
"BSD-2-Clause"
] | permissive | alexshtf/proxpt_fm | 96d5fe0c8e0073eaa56cec4b6515a912c96c8089 | 2b7a45d2f5fecdb83b74872c0a6a5b3af5ec5a04 | refs/heads/main | 2023-04-08T02:17:16.879663 | 2021-04-14T17:09:55 | 2021-04-14T17:09:55 | 357,981,107 | 0 | 0 | BSD-2-Clause | 2021-04-14T17:09:56 | 2021-04-14T17:02:53 | null | UTF-8 | Python | false | false | 2,802 | py | from golden_section import min_gss
import math
def neg_entr(z):
if z > 0:
return z * math.log(z)
else:
return 0
def loss_conjugate(z):
return neg_entr(z) + neg_entr(1 - z)
class ProxPtFMTrainer:
def __init__(self, fm, step_size):
# training parameters
self.b0 = fm.b... | [
"alex.shtoff@oath.com"
] | alex.shtoff@oath.com |
0775eeff28da04ac44eb9954ffe2d0417754463f | 3ab37c984a7a5bd1f190a7ba02c9f15840b9fa70 | /Test.py | 24716720705990e460c478fd16ae6479bc55a3c7 | [
"MIT"
] | permissive | junzhezhang/CommonModules | 1d4f6fea2e5ecf077ca28a909cedb7e740e6151d | 2411d47f8782539606187e2b30bc710021abceb0 | refs/heads/master | 2021-07-14T06:28:30.490683 | 2021-06-21T17:25:14 | 2021-06-21T17:25:14 | 172,190,655 | 0 | 0 | MIT | 2019-02-23T08:29:55 | 2019-02-23T08:29:55 | null | UTF-8 | Python | false | false | 637 | py | # -*- coding:utf-8 -*-
__author__ = "Wang Hewen"
import numpy as np
import CommonModules.DataStructureOperations
import CommonModules.IO
from CommonModules.Utilities import TimeElapsed
CM = CommonModules
logger = CM.Log.Initialize("test.log", WriteToStream = True)
def main():
logger.info("test info")
print(... | [
"wanghewen2@sina.com"
] | wanghewen2@sina.com |
b05980f3a55a6c7e642fdbcd2b31df57f6981ec7 | f098f26f882d30ec547e61c9c27c645c29f065e6 | /UserDev/RecoTool/ShowerReco3D/scripts/run_ShowerQuality_multishowers.py | c680a92bef72d2381aebd2f391fd44632a25dab7 | [] | no_license | wddgit/larlite | 59cfaa990c9df23c5645337c171933825339adfb | 8d159ff4259d88e66f769a2ad6df73eee994f306 | refs/heads/trunk | 2021-01-18T08:37:09.297897 | 2016-01-19T21:01:45 | 2016-01-19T21:01:45 | 42,332,618 | 0 | 0 | null | 2015-09-11T21:16:31 | 2015-09-11T21:16:30 | null | UTF-8 | Python | false | false | 1,043 | py | import sys
if len(sys.argv) < 2:
msg = '\n'
msg += "Usage 1: %s $INPUT_ROOT_FILE\n" % sys.argv[0]
msg += '\n'
sys.stderr.write(msg)
sys.exit(1)
from ROOT import larlite as fmwk
# Create ana_processor instance
my_proc = fmwk.ana_processor()
# Set input root files
for x in xrange(len(sys.argv)):... | [
"kaleko@nevis.columbia.edu"
] | kaleko@nevis.columbia.edu |
68602507ab106d19d4187d72e082b6ea487a2582 | ac6796175dcab9f1005eb5bf4147ee8291615ca4 | /command_tools.py | cbf3a0925806556c18b0f71474b287466f0bbb0f | [] | no_license | yhliao/util | 1c57c5e8cdadc9922a22992fcd517941fd27326d | ee3aeed328406bf920466b956931b11c61e176cc | refs/heads/master | 2022-12-07T05:42:46.282952 | 2020-08-26T23:21:54 | 2020-08-26T23:21:54 | 290,913,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | from datetime import datetime
import os, time
import numpy as np
def log_and_run(runfunc,path,logfile):
if not logfile is None:
startt = datetime.now()
logfile.write("{0}: Job started for {1}\n"
.format(startt,path))
logfile.flush()
code = runfunc(path)
if not logfile is N... | [
"yh_liao@berkeley.edu"
] | yh_liao@berkeley.edu |
cce0e27a550cf80d9004ca72625c9432b0d00e2c | a60fe6c89db97c07d0793be00552511750bf883b | /simulation/tcga/outcome_simulator.py | 1887841769ff5b8247572829e5ca0dc8d828a2e3 | [] | no_license | loucerac/GIN | 3f31c42f49b10b5fe10d4054b02384c937425ac8 | 0d2875bdfaa49dff37c0cfe6f930b8222def111d | refs/heads/main | 2023-06-14T18:41:25.587396 | 2021-07-09T14:31:46 | 2021-07-09T14:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | from typing import Union
import numpy as np
from experiments.utils import sample_uniform_weights
from simulation.outcome_generators import OutcomeGenerator, generate_outcome_tcga
class TCGASimulator(OutcomeGenerator):
def __init__(
self,
id_to_graph_dict: dict,
noise_mean: float = 0.0,
... | [
"jean.kaddour.20@ucl.ac.uk"
] | jean.kaddour.20@ucl.ac.uk |
b613c5d06b07f98bd6b9ce329835ac582b56b3dc | 4be63cdef3ae05a18e56c46e95fa1aa6bfcbb790 | /PycharmProjects/test_pro/config/__init__.py | 06f7a6a83153cacc242c2dcebe137978fc33e95c | [] | no_license | xuxu001/music | cc683450edad7b4583349854092d10a9c83b93ba | 40c53bd06208e10f02edeab78061f145397e2f8d | refs/heads/master | 2020-07-05T16:19:59.019175 | 2019-08-16T09:17:25 | 2019-08-16T09:17:25 | 202,697,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | #coding:utf-8
#__author__ =='xuxu'
import unit
import requests
from config.config import header, host, logger | [
"j18682948872@163.com"
] | j18682948872@163.com |
f05723369f6be025db307e9fe322e8f5ebd7775d | 10f51b68e0f98a761e68e4f3a72ca5f9723cc937 | /mysite/zad/urls.py | bd261eaa46949ff5dc6d2911422ed41ae52a48a3 | [] | no_license | CARLOS-AND-RABAB/zad | df88a06333f37b5fda86d2acf4bac30bc3b102f0 | 4e467231a42c70b7c778874eec5a3cb5c8bf493d | refs/heads/main | 2023-03-22T18:42:02.022050 | 2021-03-18T14:46:27 | 2021-03-18T14:46:27 | 345,817,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from django.urls import path
from . import views
from . import models
from django.conf.urls import url, include
from rest_framework import routers
app_name = 'zad'
urlpatterns = [
path('', views.home, name='home'),
path('AD_details/<int:pk>/', views.AD_details, name='AD_details'),
path('set_language/', vi... | [
"rababkhalifamohammed@gmail.com"
] | rababkhalifamohammed@gmail.com |
588fd89ceb2c26f8185620167f76a654f48d4862 | 54bd004dd18f23b46fd75288823977a93d6c7c9d | /Python_basics/English_poet.py | 25376846330552643db0128f53300bf3acfbf400 | [] | no_license | Gagangithub1988/Python | 13f914a200f6f4750c1b7da1467ca7e3f48814d0 | 8c9ba1902ac45841fd3145d49b08547420f15f2d | refs/heads/master | 2022-11-03T22:12:51.799829 | 2020-06-20T06:46:45 | 2020-06-20T06:46:45 | 273,642,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | print('Twinkle, twinkle, little star,\n\tHow I wonder what you are! \n\t\tUp above the world so high, \n\t\tLike a diamond in the sky. \nTwinkle, twinkle, little star, \n\tHow I wonder what you are') | [
"noreply@github.com"
] | Gagangithub1988.noreply@github.com |
9606307b2b8bd4d785fa242550533de26b9bf7f8 | b57bce6b9668ebad5c26452469ad5faf79fee5bf | /tasashop/migrations/0009_entries.py | 1d002a3e23b81bbc7a6ec9a6a704b05a1d201a4f | [] | no_license | DelaCernaJal/TasaShop | c86e95674a0d7727894b4f501a6166b7b06060fb | 2dc077ab2650659a979dc3e415cc8f0bd288442f | refs/heads/main | 2023-06-12T21:24:01.177354 | 2021-06-28T04:01:38 | 2021-06-28T04:01:38 | 377,349,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # Generated by Django 3.1.6 on 2021-06-23 10:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tasashop', '0008_auto_20210623_0440'),
]
operations = [
migrations.CreateModel(
name='Entries',... | [
"sharalyn.delacerna@gsfe.tupcavite.edu.ph"
] | sharalyn.delacerna@gsfe.tupcavite.edu.ph |
eeeb70c6908061359f8e8e66ec68d3f700d4b6b4 | 60d5a52944420c148baa3652fa921fda915e82a8 | /app.py | a28a782c944373aa83d3b95440fc2c8af7642753 | [] | no_license | morenoalex87/alm2301-final | 7da62f026935e08f4c0c7fce85262aa7a1c17f1b | 90c073b4fa1e97afbbf5c86bce4cdf32b3b6428f | refs/heads/master | 2022-06-30T16:51:39.517895 | 2020-05-15T19:12:57 | 2020-05-15T19:12:57 | 264,263,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 21 14:57:17 2020
@author: etill
"""
#import statements
from flask import Flask, render_template
#Flask app variable
app = Flask(__name__)
#static route
@app.route("/")
def hello():
return render_template("index.html")
@app.route("/classes")
def classes():
retu... | [
"m.alex028@yahoo.com"
] | m.alex028@yahoo.com |
a8777de0fff2f753f2a10440eda5dc07631663cd | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/dataflow/stream/handlers/dataflow_yaml_execute_log.py | ec10a68c37c3a15e1547efc90d0f256f3089bb28 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 1,629 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
695ede74ca316de3c91389ae6171cbaad557c2b8 | e1f0a05bb3b43d9234c6e4f1e9de52d6f1510699 | /Packages/anw/gui/system.py | 0ee3ee3f2dbc883841880b082ced07afd3c01367 | [] | no_license | colshag/play-cosmica | 5c9454e318045b292f539e7c4aae76782f403396 | 64af9b5c4e6c255fe43894cb3490428417043927 | refs/heads/master | 2020-04-25T12:54:15.641821 | 2019-04-08T01:47:17 | 2019-04-08T01:47:17 | 172,792,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,923 | py | # ---------------------------------------------------------------------------
# Cosmica - All rights reserved by NeuroJump Trademark 2018
# system.py
# Written by Chris Lewis
# ---------------------------------------------------------------------------
# The system represents one System object in map mode
# -----------... | [
"chrislewis@pop-os.localdomain"
] | chrislewis@pop-os.localdomain |
330964458b683417af13bb09e391dae363e3ee81 | 32e70912e65f34886dc89297e2551059703fa28f | /primes.py | f69e47351d60b120cfe85ee5321af83d3a9eea64 | [] | no_license | kaa-the-snake/tf_basics | 39bf01a3c9684e6eea88b378d766c8784d32576d | d377c585918d2eadaf38a51399e711ba9f34bbbf | refs/heads/master | 2021-01-25T05:57:34.651752 | 2017-02-01T20:08:31 | 2017-02-01T20:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | #!/usr/bin/python
import tensorflow as tf
import numpy as np
import random
def eratosphen(n):
res, mask = [], [True] * n
for i in xrange(2, n):
if not mask[i]:
continue
res.append(i)
for j in xrange(2 * i, n, i):
mask[j] = False
return res, mask
def gener... | [
"accs@vnik.me"
] | accs@vnik.me |
fbac00a832f23f89bb0f12e137cb3464bdaf6864 | eb051a9dd600024c54a81fae9e90b8bd1d54db4d | /erpnext_prime/erpnext_prime/doctype/prime_settings/prime_settings.py | 609dd37624ab68e45cd56773dcc8fc2b7e0b4e7d | [
"MIT"
] | permissive | techlift-tech/erpnext_prime | ce0fbc40797506d3e5194aa8da78106b808c6181 | 73e53e557eea9c46ba2caffdc983c630f00b643d | refs/heads/master | 2021-06-26T19:44:18.060729 | 2020-11-04T06:15:04 | 2020-11-04T06:15:04 | 183,427,158 | 0 | 1 | NOASSERTION | 2020-03-05T09:49:33 | 2019-04-25T12:11:31 | Python | UTF-8 | Python | false | false | 281 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Techlift Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class PrimeSettings(Document):
pass
| [
"palash@techlift.in"
] | palash@techlift.in |
2266c46d52769f067fd7f36262c25992404375db | 7d14cc8ffbc34b149981889fa1b3786b803b25b2 | /32_Inheritance.py | f1edc058e265e7deb0432da9d51a6dea024301a9 | [] | no_license | lcanalest/python_for_beginners | 30bfbdbb75b7ac0d753acb218c9b41789966929b | 9bdae7f8b33fe8ca25a6481ccc2e88bcfec65fab | refs/heads/master | 2020-12-21T09:44:13.844493 | 2020-01-28T17:34:04 | 2020-01-28T17:34:04 | 236,389,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # Inheritance (4:12:38)
from Chef import Chef
from ChineseChef import ChineseChef
normal_chef = Chef()
chinese_chef = ChineseChef()
normal_chef.make_chicken()
chinese_chef.make_chicken()
normal_chef.make_special_dish()
chinese_chef.make_special_dish() | [
"luis.canalest@gmail.com"
] | luis.canalest@gmail.com |
0ad030301724d26610e72fab67a331ea0cc126de | d41734a461b032d95cde30bf07061d4bc8e00b5b | /Code/utils.py | 75ed3cc7594753085975cd4f406f5d7e67d30c48 | [] | no_license | KamranMK/MG2Vec- | 65855f64b81e154631cf0d21cd8be625ed92c3f5 | 4662753bf42c295e8d8ce3a595aab46f8a5f0c4c | refs/heads/master | 2023-07-11T15:03:16.578057 | 2020-09-15T08:03:48 | 2020-09-15T08:03:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | import numpy as np
import scipy.sparse as sp
import torch
def encode_onehot(labels):
classes = set(labels)
classes_dict = {c: np.identity(len(classes))[i, :] for i, c in enumerate(classes)}
labels_onehot = np.array(list(map(classes_dict.get, labels)), dtype=np.int32)
return labels_onehot
def load_da... | [
"noreply@github.com"
] | KamranMK.noreply@github.com |
c5d0d0c338ada160cfe71dbf39008f8f29b820c2 | b347bc4b850dee4a8a9a171b563a3f31230ce1c7 | /sktime/transformations/series/detrend/_deseasonalize.py | a0bab72194a91c2333d9664f368666d36ad498a6 | [
"BSD-3-Clause"
] | permissive | sktime/sktime | 5963962df338c5931a2f9f1794d1203c50ddc27e | 70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f | refs/heads/main | 2023-08-22T18:20:08.022950 | 2023-08-22T15:24:39 | 2023-08-22T15:24:39 | 156,401,841 | 1,117 | 268 | BSD-3-Clause | 2023-09-14T20:44:21 | 2018-11-06T15:08:24 | Python | UTF-8 | Python | false | false | 21,903 | py | #!/usr/bin/env python3 -u
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Implements transformations to deseasonalize a timeseries."""
__author__ = ["mloning", "eyalshafran", "aiwalter"]
__all__ = ["Deseasonalizer", "ConditionalDeseasonalizer", "STLTransformer"]
import numpy as np
import pa... | [
"noreply@github.com"
] | sktime.noreply@github.com |
e509840b1f2036dd4d4fd2e934b4c8f66f9a6d4a | e7e800dc3de419e9636b3204da7c43a076bc4a89 | /webclient.py | 90d2471da9f6b20015c0b1e84170b4e116afad73 | [] | no_license | BasalGanglia/twistedfinger | 349c9626e60c92f1eb4a7e84ae819553ba21892d | 301ea29c1b980afe068e782f98e4011ff6ad9dba | refs/heads/master | 2020-03-19T13:57:17.070932 | 2018-06-12T08:51:45 | 2018-06-12T08:51:45 | 136,602,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from __future__ import print_function
from twisted.internet import reactor
from twisted.web.client import Agent
from twisted.web.http_headers import Headers
agent = Agent(reactor)
d = agent.request(
b'GET',
b'http://localhost/ilkka/test/:8000',
#b'GET',
#b'http://google.com',
Headers({'User-Agen... | [
"ilkka.kosunen@gmail.com"
] | ilkka.kosunen@gmail.com |
a5f0b3191bcadf185372843a5c817ae11372a54b | 146db0a1ba53d15ab1a5c3dce5349907a49217c3 | /omega_miya/plugins/nbnhhsh/__init__.py | 7866c153d40576e1b4b45923a629b974818a5e08 | [
"Python-2.0",
"MIT"
] | permissive | hailong-z/nonebot2_miya | 84d233122b2d785bfc230c4bfb29326844700deb | 7d52ef52a0a13c5ac6519199e9146a6e3c80bdce | refs/heads/main | 2023-03-26T14:59:31.107103 | 2021-03-09T17:01:08 | 2021-03-09T17:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | import re
from nonebot import on_command, export, logger
from nonebot.typing import T_State
from nonebot.adapters.cqhttp.bot import Bot
from nonebot.adapters.cqhttp.event import GroupMessageEvent
from nonebot.adapters.cqhttp.permission import GROUP
from omega_miya.utils.Omega_plugin_utils import init_export
from omega_... | [
"ailitonia@gmail.com"
] | ailitonia@gmail.com |
29d68c117848a99093caea9576f255c3fd233bb3 | c7fc1265dd09cae456c978c09643811bf3aa89d7 | /mileage_cal.py | 722bfc599c73d4858c72caed5ac2bbc36aa3fabd | [] | no_license | chandraprakashh/Data_Handling | e136c6bc188506ca6660becd434d5a17bed8e199 | 59f43288dea379f8fe0bb0fe01b17d0e5e99e057 | refs/heads/master | 2020-07-18T18:11:25.908312 | 2020-01-13T10:24:51 | 2020-01-13T10:24:51 | 206,290,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
"""
1.Code Challenge
Name:
Gas Mileage Calculator
Filename:
mileage_cal.py
Problem Statement:
Assume my car travels 100 Kilometres after putting 5 litres of fuel.
Calculate the average of my car.
... | [
"noreply@github.com"
] | chandraprakashh.noreply@github.com |
3b9c2b97c211502ed2c84f7a565b788565349690 | 9071b1dad5e1aee8d0246b07db767368a48a4542 | /PCC Chapter 5/5-4.py | 59c6a1dba791630ca2cceb3b4bc55429a3b477d2 | [] | no_license | usmansabir98/AI-Semester-101 | 01b4b2ae924f2fe9d6edf8ad260a741f1b0ba42c | 8b7e78ffd610b0712c5a3249a7fa1fbb99e0a24c | refs/heads/master | 2021-09-07T04:47:08.410275 | 2018-02-17T17:39:14 | 2018-02-17T17:39:14 | 115,215,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # 5-4. Alien Colors #2: Choose a color for an alien as you did in Exercise 5-3, and
# write an if-else chain.
# • If the alien’s color is green, print a statement that the player just earned
# 5 points for shooting the alien.
# • If the alien’s color isn’t green, print a statement that the player just earned
# 10 point... | [
"usmansabir98@hotmail.com"
] | usmansabir98@hotmail.com |
ea4a74d9db2d97d5f67d3b44f4e0dfad9d27cf2c | 5aa27ee23ca28e66a8590d44ec8287db26e59e99 | /venv/bin/stream_naver | a5a4ca992b0fa481c184d4a097779a8412c582ac | [] | no_license | denhur62/TFIDF_mecab | fe56191819ca1347fa5f91ceefc7447dd8e19a4c | e9eb17ac7de70798ee5621af24866c04604ca4b2 | refs/heads/main | 2023-07-01T11:34:06.492438 | 2021-08-08T07:31:28 | 2021-08-08T07:31:28 | 393,447,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/Users/denhur62/Documents/GitHub/TFIDF-mecab/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from konlpy.stream.naver import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"denhur62@naver.com"
] | denhur62@naver.com | |
8d4d1e3177e0d876bf1acd5a951eac101297b9f6 | 16c092aab67f1ff6a92adf48ce8b8054ce51d7ba | /simulator/processing/range_processing.py | 438a1feaa29e856c5049487f2ccdd7823c0505f0 | [] | no_license | yukkkkun/Radarsimulation | 3d40c8671a38b340178da76689336b974084aab9 | 23052c7869c113c962b600496b6392e3afa1b167 | refs/heads/master | 2022-12-19T04:19:29.745745 | 2020-10-04T09:52:51 | 2020-10-04T09:52:51 | 287,907,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | import numpy as np
def range_resolution(num_adc_samples, dig_out_sample_rate=2500, freq_slope_const=60.012):
""" Calculate the range resolution for the given radar configuration
Args:
num_adc_samples (int): The number of given ADC samples in a chirp
dig_out_sample_rate (int): The ADC sample ra... | [
"yutaka.higashis3@gmail.com"
] | yutaka.higashis3@gmail.com |
91d2c06e9e6783e4b3605f0da5fa10130d04e780 | b9c6ee69df8b1cf73ac468afe5b32eb2ececefb6 | /suitaby/data/__init__.py | 7fe2c41a665e74a4536aac47b387a58c3bf5258c | [] | no_license | velix/suitaby_python_tools | 7d068417b8a66a0477cb21a9a7b79e8f144a695b | 2aabc88f7f2880cbd029118ee53f76c6164ac82b | refs/heads/master | 2021-01-21T08:05:32.495106 | 2015-10-10T18:24:59 | 2015-10-10T18:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | #from IO import IO
#from FormatChecker import FormatChecker
#from Sizes import Sizes
#from Generator import Generator
#from DBHelper import DBHelper
#from Tester import Tester
#from People import People
#from SizeCatalog import SizeCatalog
| [
"panosracing@hotmail.com"
] | panosracing@hotmail.com |
4abd4f456948302874dfdc97f41babf31670d96a | 4786fe9537fbcb50b7490f7f95624e9c8589801f | /ex21a.py | b80932994d975a1f5b8f8cfd3bbc785b73fc603b | [] | no_license | dbialon/LPTHW | 075e5a82c541dd277ee30f5ebbc221e30c63e29e | 3e6674cded2bcd90d4a098efd00a71abeb33bdc5 | refs/heads/master | 2022-06-07T02:14:18.180807 | 2020-05-02T13:30:52 | 2020-05-02T13:30:52 | 259,911,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | def add(a, b):
print(f"ADDING {a} + {b}")
return a + b
def subtract(a, b):
print(f"SUBTRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return a / b
print("""
This programm will execute the... | [
"dbialon79@outlook.com"
] | dbialon79@outlook.com |
853783386fe7499ba2d42b810f0108c2fa98a501 | 5d02f39266d59d46a3b3b3526cdcbfa2b4089a8c | /db_excel/excel.py | 459b0f37c3dc01581f0aa1e72665eae7b9532128 | [] | no_license | gesang08/OperateMysqlAndExcel | dd4cbc2955cbbb982ed903ec7ccb5c2c12011e60 | 34502546d5fcb0058e5bf22178d4ed5290b021ab | refs/heads/master | 2020-05-27T21:31:09.518216 | 2019-10-12T11:56:42 | 2019-10-12T11:56:42 | 188,792,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,363 | py | #!/usr/bin/env python
# _*_ coding: UTF-8 _*_
"""
实现操作数据库的类,可将从数据库获得的以字段为键,以字段内容为值的存储格式数据;
实现对excel表的创建,读取,写入,追加的类
"""
import MySQLdb
import MySQLdb.cursors
import os
import xlwt
import xlrd
import xlutils.copy # xlutils 读入一个excel文件,然后进行修改或追加,不能操作xlsx,只能操作xls
SERVER_IP = '127.0.0.1'
USER = 'root'
PASSWORD = '123456... | [
"2199377508@qq.com"
] | 2199377508@qq.com |
0b1675281d2198123e759669b70a4f5c751a2d7f | 6cb5aee6af8351a5ca4b095a3e37eab2054c83bc | /Semana 5/ex5.py | 560e7b74a8ba83e5f40433846b6fb145fea86532 | [] | no_license | RafaelCsantos/AlgBionfo | 2e035f2f96f2c77780cde475d7bd8ce25d52056c | fd4b09d8edb409ae319864835904ed4ce94c2eba | refs/heads/main | 2023-04-23T19:42:48.372094 | 2021-04-29T03:15:49 | 2021-04-29T03:15:49 | 362,674,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | dados={}
pessoas=[]
peso=0
imc=0
altura=0
imctotal=0
cont=0
alttotal=0
pesototal=0
while True:
pessoas.clear()
dados['nome']= str(input('Nome:'))
while True:
dados['sexo']= str(input('Digite o Sexo M OU F:')).upper()
if dados['sexo'] in 'MF':
break
print("Digite apen... | [
"rafaelcssantos@hotmail.com"
] | rafaelcssantos@hotmail.com |
d279ed36d0bb5f3e739bcd41a7e7926ea816e47d | 9fa9ceac0db98e4a73c9bd7b7c93506fcd9d2261 | /my_SVM.py | f3ec16da1dbca8ad95314a144fe1869a4f0d6b89 | [] | no_license | cuihan1994/ML | 8363c69ac40d932381942b30953007a492294ead | 413b784a93a2ba698e762ad6a0481de1835f1f6b | refs/heads/master | 2020-04-12T15:26:25.046328 | 2018-12-20T13:09:00 | 2018-12-20T13:09:00 | 162,581,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
style.use('ggplot')
class Support_Vector_Machine:
def __init__(self,visualiazation = True):
self.visualization = visualiazation
self.colors = {1:'r',-1:'b'}
if self.visualization:
self.fig = plt.figu... | [
"1034084684@qq.com"
] | 1034084684@qq.com |
8f45532721df9ce375e512eac8e8b5d2f48bbfcc | fe2eef159f7e75b6a3b4ecbacab53a19df33b8eb | /setup.py | 3c3eff7248dd676186f2778a2b4149610c6dc6e0 | [
"MIT"
] | permissive | a1fred/django-model-render | 6b9572ff26ced93e6de0aa15ac97fef1217ebeba | 0912b2ec9d33bada8875a57f7af9eb18d24e1e84 | refs/heads/master | 2020-09-12T19:23:57.847976 | 2017-01-02T20:49:20 | 2017-01-02T20:49:20 | 32,887,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
requirements = [
'django>=1.4',
]
setup(
name='django-model-render',
version='0.5',
description='Django models extension that allows define default model templates',
author='a1fred',
author_email='demalf@gmail.com',
li... | [
"demalf@gmail.com"
] | demalf@gmail.com |
b8258a084ce7c4e00f53da32dc4f0012424731e4 | 83447f1c06244a5d1f62a5147a0dc3855b0142f4 | /main.py | ca795d368bd1813e37774082aba5d37a94bdae7a | [] | no_license | bhedavivek/linearregression | eeffa5709fc6cceed4d9229a6c43d07adcf74980 | 04ad15c26ad4e1d910b6f2d330e37d5900795ef3 | refs/heads/master | 2021-01-09T05:23:34.168593 | 2016-11-19T08:05:20 | 2016-11-19T08:05:20 | 80,758,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,996 | py | #IMPORTS
import csv;
import numpy as np;
from numpy.linalg import inv;
from scipy.spatial import distance
import math;
import random;
import scipy.cluster.vq as vq;
class dataSet():
def __init__(self):
self.training={'x_matrix':[],'target_vector':[]}
self.validation={'x_matrix':[],'target_vector':[]}
self.testin... | [
"krypton@Viveks-MBP.fios-router.home"
] | krypton@Viveks-MBP.fios-router.home |
aa29fd60858618da98f9bfe475b87bbcae300e96 | 2a7fb0ec4f3be86ec24bb8754229eaec8fff7141 | /random_nav/map_utils.py | c0abbd918aec640969db4cc33325449195eb27ab | [] | no_license | JMU-ROBOTICS-VIVA/random_nav_summer_expt | af4c479d64f753488f496655e05d8385cd70cfac | a9cbb1e491e015cb8f81d46005bc0472bdd493c8 | refs/heads/master | 2022-11-22T01:24:38.943973 | 2020-07-27T17:03:15 | 2020-07-27T17:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | #!/usr/bin/env python
"""
Map class that can generate and read OccupancyGrid messages.
Author: Nathan Sprague
Version: 2/14/19
"""
import numpy as np
import rclpy
from nav_msgs.msg import OccupancyGrid
from geometry_msgs.msg import Pose, Quaternion, Point
class Map(object):
""" The Map class represents an occ... | [
"noitsnotmridul@gmail.com"
] | noitsnotmridul@gmail.com |
824b982e5971777c7f478481c050559850dd8baa | aada3c89a69d3d24bd1526b60edefb7a17766fce | /serv/chats.py | 144a6d823cb8cea0cd13b0e2ade6102ca6fd8c25 | [] | no_license | liuyang9643/AI_toy | d67530a2ba89f725417ab30ef6494c40cc0a530e | dfb1f939aeecc591c318e4e49c3de9ff7328a068 | refs/heads/main | 2023-05-13T16:06:53.862771 | 2021-06-04T11:26:33 | 2021-06-04T11:26:33 | 373,808,200 | 0 | 0 | null | 2021-06-04T11:26:34 | 2021-06-04T10:38:53 | Python | UTF-8 | Python | false | false | 2,085 | py | import time
from bson import ObjectId
from flask import Blueprint, jsonify, request
from setting import MongoDB, RET
from baidu_ai import text2audio
from redis_msg import get_redis_msg, get_redis_msg_app
chat = Blueprint("chat", __name__)
# 获取聊天信息列表
@chat.route("/chat_list", methods=["POST"])
def chat_... | [
"1019798260@qq.com"
] | 1019798260@qq.com |
92d200c82f3f0e1c236dd751dfc38a84ec6d134f | d2b87736df0717de07b2940d25ef8125bc709965 | /CookBook.py | 56d36a8a0ddad932efb8e2eb653b02706f01e9a7 | [] | no_license | AlexP-1/CookBook | 358e8061db9d94ee6b54b97373e579abf6aa70b5 | 81d856dc0ffe9d51f7353b371a2871880ba37dc8 | refs/heads/master | 2022-07-07T02:39:59.336589 | 2020-05-20T19:02:43 | 2020-05-20T19:02:43 | 265,644,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | from pprint import pprint
def create_book(book_name):
with open('cook.txt', encoding='UTF-8') as fi:
cook_dict = {}
for line in fi:
dish_name = line.strip()
cook_dict[dish_name] = []
counter = int(fi.readline().strip())
for i in range(counter):
... | [
"panyushkin91@mail.ru"
] | panyushkin91@mail.ru |
cca894e770a3e8d3ac6e03569334283372f9d669 | 352e8838240161fbd421943a568fe9624167585a | /test/functional/dbcrash.py | 068e9e27ac06fc49254ef5d86ccbc4fda399afcc | [
"MIT"
] | permissive | starshipcoin/starshipsha | 3e405753796275cf8944a4e84109bd7936eb0996 | 7d7e2764c00a3dc4af08d77f175ffffc98c0c780 | refs/heads/master | 2020-03-27T05:06:38.919129 | 2018-08-24T13:25:04 | 2018-08-24T13:25:04 | 145,994,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,440 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test recovery from a crash during chainstate writing.
- 4 nodes
* node0, node1, and node2 will have diffe... | [
"khryptor@starshipcoin.com"
] | khryptor@starshipcoin.com |
c174a2e44b99cb6349ff944069b1b602555b46c7 | 892c35f72f46f145c3f3860c1c29f1f4503ef9a6 | /search/search.py | fb2fa2520ad49d842fb5e069fbe0011cfdf4eb90 | [] | no_license | pymmrd/tuangou | aaa2b857e352f75f2ba0aa024d2880a6adac21a8 | 8f6a35dde214e809cdd6cbfebd8d913bafd68fb2 | refs/heads/master | 2021-01-10T20:31:55.238764 | 2013-11-13T13:53:53 | 2013-11-13T13:53:53 | 7,911,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import re
import string
from django.db.models import Q
from django.conf import settings
from tuangou.search.models import SearchTerm
from tuangou.stats.utils import stats
from tuangou.utils.location import get_current_city
def store(request, q):
#if search term is at least three chars long, store in db
if len... | [
"zg163@zg163-Lenovo-IdeaPad-Y470.(none)"
] | zg163@zg163-Lenovo-IdeaPad-Y470.(none) |
f0f6ee583c0fbd31d8ee142af619d661daa1f4be | d613fdf2a0881b9749b8c0af40c178e5a1756c7f | /cross-check/scripts/generate_mastersim_projects.py | fb15363ad744363477dcbb799db2708fa3a1a0b1 | [] | no_license | mazbrili/mastersim | 07840c7f8320b48f8e12304c2627f74d95552c19 | 1b948471474659518c78c3886bd1aff51610e2b5 | refs/heads/master | 2022-12-11T21:58:06.379519 | 2020-04-23T10:26:50 | 2020-04-23T10:26:50 | 294,000,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,116 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Cross-check helper script, generates MasterSim project files and imports required files.
Copyright 2019, Andreas Nicolai <andreas.nicolai@gmx.net>
Run this script from within a directory that contains the content of the 'fmi-cross-check' github repository.
Script wil... | [
"ghorwin@dd098b5a-9c97-4e98-abe7-e951c7a10ce5"
] | ghorwin@dd098b5a-9c97-4e98-abe7-e951c7a10ce5 |
e280ebb8627684e99bd5176969d872b102c80446 | a301b758065ea4040533d21f9bf322a084e0689c | /wandb/internal/git_repo.py | 3a5e935b7105a9d2ccc0437710b644434cc40be9 | [] | no_license | nitin-test/client-ng | 813448c810698759760b3d842afbf91387c9ed41 | cde060e54caa99e4288cee17f15978ba647c7d04 | refs/heads/master | 2022-12-13T04:45:09.134606 | 2020-08-12T01:32:37 | 2020-08-12T01:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,495 | py | import logging
import os
from six.moves import configparser
logger = logging.getLogger(__name__)
class GitRepo(object):
def __init__(self, root=None, remote="origin", lazy=True):
self.remote_name = remote
self._root = root
self._repo = None
if not lazy:
self.repo
... | [
"noreply@github.com"
] | nitin-test.noreply@github.com |
326f5de126d44ed5c242cb25b5cef8c4788a9c97 | fffcc24d7c3fbadd615db1c2de632ebec72b92da | /cgi-bin/simpletemplate.py | 3551d703604abe395986350f77e0ad80b887ef96 | [] | no_license | kimihito/minpy | 35a5cf1596979e3bc57d6bfb6fcded03ae10f0d3 | 6273d43f65279d800a37a5dd9b34488d2cea54a1 | refs/heads/master | 2016-08-08T02:10:02.967527 | 2012-06-11T13:57:23 | 2012-06-11T13:57:23 | 4,147,292 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | #!/usr/bin/env python
# coding: utf-8
import re
if_pat=re.compile(r"\$if\s+(.*\:)")
endif_pat=re.compile(r"\$endif")
for_pat=re.compile(r"\$for\s+(.*)\s+in\s+(.*\:)")
endfor_pat=re.compile(r"\$endfor")
value_pat=re.compile(r"\${(.+?)}")
class SimpleTemplate(object):
"""
シンプルな機能を持つテンプレートエンジン
"""
def _... | [
"tatsurotamashiro@gmail.com"
] | tatsurotamashiro@gmail.com |
7f329a56f3c63d6f634c341fe1ee1a609f562304 | eef39fd96ef4ed289c1567f56fde936d5bc42ea4 | /BaekJoon/Bronze2/15969.py | 803573cbb6d19798b9968fcd14d2be7454bafc32 | [] | no_license | dudwns9331/PythonStudy | 3e17da9417507da6a17744c72835c7c2febd4d2e | b99b9ef2453af405daadc6fbf585bb880d7652e1 | refs/heads/master | 2023-06-15T12:19:56.019844 | 2021-07-15T08:46:10 | 2021-07-15T08:46:10 | 324,196,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # 행복
"""
2021-01-22 오전 1:37
안영준
문제
코이 초등학교에 새로 부임하신 교장 선생님은 어린 학생들의 행복감과 학생들의 성적 차이 관계를 알아보기로 했다.
그래서 이전 성적을 조사하여 학생 들의 시험 점수 차이 변화를 알아보려고 한다.
예를 들어서 2016년 학생 8명의 점수가 다음과 같다고 하자.
27, 35, 92, 75, 42, 53, 29, 87
그러면 가장 높은 점수는 92점이고 가장 낮은 점수는 27점이므로 점수의 최대 차이는 65이다.
한편 2017년 학생 8명의 점수가 다음과 같았다.
85, 42, 79, 95, 37, 11, 7... | [
"dudwns1045@naver.com"
] | dudwns1045@naver.com |
be53837e6f881208f6caffce7dcad68d8a4b39b7 | 37c6b326c3547c7ff89ade627d7d5a35a9d03025 | /Parser.py | 74c4d69c1b2da1b4cba092788d855321d1a8ed86 | [] | no_license | este6an13/XSSTrackerServers | e30836a203d6aecea0ac6f931aef09f91ce9096b | 191f67ee04ce853f129fd1e71d446e0c0709e4d6 | refs/heads/master | 2023-06-14T22:44:00.927187 | 2021-07-14T01:44:37 | 2021-07-14T01:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,789 | py | #import requests
#from bs4 import BeautifulSoup
# import re
from urllib.parse import urlparse
import esprima
class Parser():
keywords = ['XSS', 'banking', 'redirect', 'root', 'password', 'crypt',
'shell', 'spray', 'evil']
def url_len(self, url):
return len(url)
def html_len(sel... | [
"diego.quintero@sitel.com"
] | diego.quintero@sitel.com |
d830da1f9d9e07fe504090cca4bc6f96ec19b136 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/SsdataDataserviceRiskAntifraudscoreQueryResponse.py | eb88453a0ac5e908d0040c632adda75bafe8c3cc | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,247 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class SsdataDataserviceRiskAntifraudscoreQueryResponse(AlipayResponse):
def __init__(self):
super(SsdataDataserviceRiskAntifraudscoreQueryResponse, self).__init__()
self._b... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
4688bc5cb098e3bd45c811d3ce8103e7115bcac9 | e9bb041494a13478ce8a1561e6f762d971938cf9 | /icsv/tests/writeReadTests.py | da371d69505b69730f40531fa2a0a68abca05727 | [
"MIT"
] | permissive | bponsler/icsv | f960e482a0506a87bd5a2d1ada6642065781cacd | 3f306bf1cf69c1cad87f051424fcb985cba65e96 | refs/heads/master | 2016-09-06T10:20:31.184798 | 2015-04-22T15:53:57 | 2015-04-22T15:53:57 | 12,776,696 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | from os import unlink
from os.path import exists
from unittest import TestCase
from icsv import icsv, Row
class WriteReadTests(TestCase):
def setUp(self):
pass
def test_filter(self):
filename = "/tmp/testCsv.csv"
headers = ["one", "two", "three"]
csv = icsv(headers)
... | [
"ponsler@gmail.com"
] | ponsler@gmail.com |
8be84e7b162f60f07b18a5be2552aa8024cb5c75 | 336f751d1730e17b7fd4b645805988c3a30017d3 | /notes/serializers.py | b68bf8451fb92dc23bf5af3b730f313201e7cafc | [] | no_license | BasicPixel/marknote-live | 4a71905b341292630ca68b2988d82b17b389a5a9 | cb16ded8627859de23a62264d730c1a23af416ed | refs/heads/master | 2023-07-01T14:48:06.101120 | 2021-08-16T07:24:11 | 2021-08-16T07:24:11 | 396,673,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from rest_framework import serializers
from .models import *
class NoteSerializer(serializers.ModelSerializer):
class Meta:
model = Note
fields = '__all__'
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__'
| [
"69857856+BasicPixel@users.noreply.github.com"
] | 69857856+BasicPixel@users.noreply.github.com |
02da9c8b6242405e3f94f40ba7c4cb887583b3d9 | c2097c731cdfc57c8901437b27dcb5791bcd20f0 | /for loop.py | e64dc37592e8a4984acf129d1c9fdc74fb27e66e | [] | no_license | louismatsika/python | bf66250587febc90e0cbed5bceeca2ba934d77e2 | d7c87b2cd884ee549b4383a552f64c64e3e4a2ad | refs/heads/master | 2020-04-07T00:08:09.185213 | 2018-11-16T16:41:11 | 2018-11-16T16:41:11 | 157,892,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | for n in range (10):
print("loop",n)
| [
"noreply@github.com"
] | louismatsika.noreply@github.com |
7276838d2d32ee2a9bf909e88d930f4a84c9622f | 22e63f90d0ce8f03ac211b27735a1bac82b7401e | /mysite/blog/models.py | b065351bd518ea378bc615817607118a787661a3 | [] | no_license | binarever/Django | b4fc6673c5a5f06cfc4f903001b9b1886dc52961 | e86897f160c8e6085c27e78c493453dd246b9481 | refs/heads/master | 2020-12-02T17:40:33.626407 | 2017-07-06T08:47:39 | 2017-07-06T08:47:39 | 96,408,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
# Create your models here.
class Post(models.Model):
STATUS_CHOICES=(
('draft','Draft'),
('published','Published'),
... | [
"2360566454@qq.com"
] | 2360566454@qq.com |
90ba45a70b9dff2d3a4a23b4d0c354dc2f9321ac | 3314fb1c0104b39af03126ff418385cd348040bc | /tests/test_default.py | cf610432e3aaf1efa440a42fa7fb500ba5a10612 | [] | no_license | viniciusfs/ansible-role-tomcat | 4b174408aaa0f479609b9a9a34a9f70d1caf5086 | dce442c095e3fd97246222835fa68bc474b2a42d | refs/heads/master | 2020-05-23T07:59:50.334435 | 2017-02-03T18:03:38 | 2017-02-03T18:03:38 | 80,482,410 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
'.molecule/ansible_inventory').get_hosts('all')
def test_tomcat_group(Group):
tomcat = Group('tomcat')
assert tomcat.exists
assert tomcat.gid == 215
def test_tomcat_user(User):
tomcat = User('... | [
"viniciusfs@gmail.com"
] | viniciusfs@gmail.com |
19e567714b4187da2231b288858d1595bd421c34 | b2e0aaa09ada3335d44860bd15d0e8fd8182d332 | /palindrome.py | 0f4820a097ceb43aded774a1a420c1c3dcd3dda6 | [] | no_license | udayraj333/python3 | 7bff91ef8b76a589c4f22bc3516322df3e0e6ef3 | d8b07a85a8697de8b79079bab36597669fa0954b | refs/heads/master | 2022-07-23T19:10:49.247880 | 2020-02-01T14:46:32 | 2020-02-01T14:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py |
num=(input("Enter a number:"))
temp=num
rev=0
while(num>0):
dig=num%10
rev=rev*10+dig
num=num//10
if(temp==rev):
print("The number is palindrome!")
else:
print("Not a palindrome!")
| [
"noreply@github.com"
] | udayraj333.noreply@github.com |
675dda5c8c83bf0f987ede0d78116c521d6932a4 | a6c0bb39fe1f5218094f9d8a728d32c7348414b8 | /timesformer_pytorch/timesformer_pytorch.py | dfbbfbb447de3d906549636f03dc5833d4f4c0ce | [
"MIT"
] | permissive | Willforcv/TimeSformer-pytorch | 042f23cd4e02e973fc0374579f18a4b529309edb | 4e4a60d4876a45cceddcf8af514eb39eac40ff96 | refs/heads/main | 2023-03-20T16:54:42.934377 | 2021-03-21T19:14:02 | 2021-03-21T19:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange, repeat
# classes
class RMSNorm(nn.Module):
def __init__(self, dim, eps = 1e-8):
super().__init__()
self.scale = dim ** -0.5
self.eps = eps
self.g = nn.Parameter(torch.ones(1))
... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
a855cee959d104206a96609e4dc5641803ff210f | 622d20757e954d3af1b908d78182cf4ac033aa46 | /snippets/views.py | f92186751a7723a0ac5fd71c918b212a9397de1b | [] | no_license | bahatiphill/drf-pastebin | 7fd5e52423c93b73c6e323bdaae3fb515de5b914 | 57b58033cefcd515c0a292d23fe474a208bd45a3 | refs/heads/main | 2023-01-02T09:15:23.409128 | 2020-10-21T19:16:52 | 2020-10-21T19:16:52 | 306,122,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | #from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from rest_framework.parsers import JSONParser
from snippets.models import Snippet
from snippets.serializers import SnippetSerializer
# Create your views here.
@csrf_exempt
def... | [
"philbert@digitalumuganda.com"
] | philbert@digitalumuganda.com |
d17f19505910625e866744c9a735f156ba740958 | 18a0ee9af4df1673dea4aa8e6afb007aea8aea56 | /Projects/ESP32Micropython/20-12-14/webserver/imagetofile.py | 6992825e4e2c61998a1bd46865d95a6a68d92691 | [
"MIT"
] | permissive | TizioMaurizio/ArduinoWorkshop | f328fde497453919811b3621c2bffaae948ac61a | a614936f3ff8d221086eacf428f70d4502e833d7 | refs/heads/master | 2023-08-08T20:42:19.476233 | 2023-07-23T00:19:56 | 2023-07-23T00:19:56 | 209,500,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import camera
import os
import utime
import machine
def capture():
os.chdir('webserver')
f = open('data.jpg', 'w')
camera.init(1)
buf = camera.capture()
f.write(buf)
f.close()
f = open('data2.jpg', 'w')
buf = camera.capture()
f.write(buf)
camera.deinit()
f.close()
def c... | [
"maurizio.vetere@mail.polimi.it"
] | maurizio.vetere@mail.polimi.it |
ba6ca406d2ae588888b32ea75d43e5af2c5203b8 | 6f7169ca3a19b59d647b40abf339fee55c538a3d | /OnlineMovieBooking/OnlineMovieBooking/asgi.py | 9f4960d94a311c1ad1fd64aa89e8e4f9528311b5 | [] | no_license | Ajitkumar1995/Heptic_Project | 68ff9cac2844c1f80d86e3d7a574d6d1b81b56b6 | 781fc1cfd974510241dc8219fa19eca2c6332356 | refs/heads/main | 2023-05-07T06:36:50.718091 | 2021-05-24T04:30:42 | 2021-05-24T04:30:42 | 370,223,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | """
ASGI config for OnlineMovieBooking 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.... | [
"noreply@github.com"
] | Ajitkumar1995.noreply@github.com |
e131515b865f5b46e241f0d1f1fda18484cb88c4 | b67e2546888b125701f31404f51f0b43fa98a354 | /mv_gaussian/low_dim_w_five_obs/run_script_snpe_c.py | 863ff35eac0f6ab94f824b08e671751038882e61 | [
"BSD-3-Clause",
"MIT"
] | permissive | SamuelWiqvist/snpla | a20607d8ca2dc4d74cacbc9cf14c22f58f64d501 | 9d586c5d09de3eecd2536485af6fc28a915443e4 | refs/heads/main | 2022-07-29T22:22:51.873914 | 2021-06-14T08:29:28 | 2021-06-14T08:29:28 | 337,367,769 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,193 | py | # Imports
import sys
import torch
import os
import numpy as np
import time
from torch.distributions.multivariate_normal import MultivariateNormal
from sbi.inference import SNPE_C, prepare_for_sbi
# Initial set up
lunarc = int(sys.argv[1])
dim = int(sys.argv[2])
seed = int(sys.argv[3])
seed_data = int(sys.argv[4])
hp_t... | [
"swiqvist@gmail.com"
] | swiqvist@gmail.com |
4326b1fe39257d8c8cb75d3879444c596e400404 | a8df0f25f9d9ce3be141edb70c670b0c3e53bff2 | /1_python_basic_homework/20200714_8/1_final.py | 028a3ac98670db77b9dc805483e8077cae2eb104 | [] | no_license | IMTHERX/qytangpython | 8d99c25a68f66adf86c328ed98397bdc1a4e5992 | abfefbdaf559bcf1b9d0927480a26d1fce3aa729 | refs/heads/master | 2022-11-20T05:18:31.273526 | 2020-07-22T14:32:23 | 2020-07-22T14:32:23 | 272,198,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | #!/usr/bin/python3.6
# -*- coding=utf-8 -*-
# qytang Python V4
# WangTao
import os
import re
import time
while True:
# 输入netstat -tulnp,查看端口信息
netstat_result = os.popen('netstat -tulnp').read()
# 直接用findall检测需要的端口信息,findall比较灵活,不像match,IPv6定义需要区别处理,否则报错
# 匹配的信息,存储为(协议,端口号)
re_netstat_result = re.f... | [
"imtherx@foxmail.com"
] | imtherx@foxmail.com |
c8aa130be7fae098e4c52b4cee2c663da7e8857d | 50ba981bc65efea92f61c698cecfbbe3214a724e | /Django_DB_Backup/App/views.py | f634d2abf55cd3aa4e2af403c7b5c2c6d7ea4e24 | [] | no_license | shubhamjain31/demorepo | ff0a4283fc866ea94df1c340da430271daf93cb6 | 90639b8622e68155ff19bfec0bb6925b421f04cf | refs/heads/master | 2023-04-27T03:42:10.057387 | 2022-06-28T06:14:44 | 2022-06-28T06:14:44 | 229,792,545 | 1 | 0 | null | 2023-04-21T21:36:24 | 2019-12-23T17:04:22 | Python | UTF-8 | Python | false | false | 2,012 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from itertools import chain
from django.contrib.auth.models import User
from django.views.decorators.csrf import csrf_exempt
from django.core import serializers
from django.contrib.admin.utils import NestedObjects
from djan... | [
"sj27754@gmail.com"
] | sj27754@gmail.com |
61a1b709182ecc68826a3e0857fb7517e0aedc0f | 3ca9b9956716dd5bfa36613f36dbfe09926028aa | /venv/bin/pip | cc39fc95f9c4cdf5b33bc19223e5c45e58760789 | [] | no_license | renadh12/Scraping | 456de4fd8db1a4bd8c128b1310b42557d9524118 | 3c276d0838bf10b9a55ef70d31490c1154f21832 | refs/heads/master | 2020-12-10T03:45:33.849883 | 2020-09-02T07:25:07 | 2020-09-02T07:25:07 | 233,493,335 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 404 | #!/Users/renadhc/PycharmProjects/scraping/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"renadhc@gmail.com"
] | renadhc@gmail.com | |
fbb615f20b16ddb6c6a9e8c616808e38774076cb | a88882f03f8cf6d2099b45b293ad131b410419d7 | /plot_metric_allModels.py | 692265814c308da59be76499b60cdce472978c38 | [
"MIT"
] | permissive | gustavovaliati/pti01eval | 01a744b35d26df3837e0cdbfa735ec7bf432fac5 | 1dd27fa59b6c5569eb39c26f919a27e1a788d563 | refs/heads/master | 2021-04-15T13:38:49.846300 | 2018-04-26T16:19:44 | 2018-04-26T16:19:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,579 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import datetime, os
import numpy as np
from tqdm import tqdm
from PIL import Image
from chainercv.datasets import voc_bbox_label_names
from chainercv.evaluations import eval_detection_voc, calc_detection_voc_pr... | [
"gustavovaliati@gmail.com"
] | gustavovaliati@gmail.com |
051d133913f7b59c2ae435cf1b51db34072f09c4 | b34626709275615f893ea6bf37dab47a29427e63 | /src/whales/modules/pipelines/instructions_sets.py | 59c733aee39ae4d12f352b188795890dd35a8348 | [] | no_license | sergiolib/whales-backend | 176c3995e025554ae97f880e9870edccc3ce5921 | 85709bbdc6a71f5321a53f1d129eaec15af9a067 | refs/heads/master | 2022-12-31T07:57:19.975268 | 2018-07-09T21:48:50 | 2018-07-09T21:48:50 | 303,654,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,421 | py | """Computing heavy instructions for generating step results throughout the pipeline"""
import logging
import pandas as pd
from os.path import join
from whales.modules.data_files.audio import AudioDataFile
from whales.modules.data_files.feature import FeatureDataFile
from whales.modules.pipelines import getters
clas... | [
"sliberman@alges.cl"
] | sliberman@alges.cl |
84dbaf5645dcb48cc98a675f32511a1a18a0cab1 | ed029a779487f996df1ffc5873696542f084061d | /examples/chart_roi.py | ac96463c331677210d8eb973525bf159c7943c35 | [
"MIT"
] | permissive | haseeb00001/qplotutils | 1d4cee4744602d64b53398de9a81c073b203cb15 | 20156e35831608629936d0da5c9047f74ca5ccf5 | refs/heads/master | 2021-01-01T16:59:34.047898 | 2017-02-07T05:50:33 | 2017-02-07T05:50:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | #!/usr/bin/python
"""
Region of interest
------------------
Example for a region of interest (ROI) with different handles.
"""
import logging
import os
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
PKG_DIR = os.path.abspath(os.path.join(__file__, "..", ".."))
print(PKG_DIR)
if PKG_DIR not in sys.p... | [
"philipp.baust@gmail.com"
] | philipp.baust@gmail.com |
29f5a4ba9b7219b748f52e07f89157085e7a71a9 | 60c39402b6c957e5dfae0c63b5d7af13d9ba9350 | /man_in_the_middle.py | 8bd0947f1e8e9f0ddc3b0bb140e90309fd35c323 | [] | no_license | palex88/deauth | 91747ac1a0143c7601351ebdd874b5e748380d06 | 70365da4841b75d46223cb84aa154705aa482fdb | refs/heads/master | 2020-03-10T23:39:30.274222 | 2018-05-07T05:38:47 | 2018-05-07T05:38:47 | 129,645,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,989 | py | # !usr/bin/env/python
#
# File: man_in_the_middle.py
# Author: Alex Thompson
# Github: palex88@github.com
# Python Version: 2.7
# Purpose: This script runs a man in the middle attack. It finds the local network IP and MAC addresses, then displays
# to the user all the devices connected to the netw... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
26bc1342180ebbe498f0c43171c93b41246741b6 | 8f4c691f190a1d4ffd4261ea6dca6a2d3a96284c | /csa/csa/doctype/coach/test_coach.py | 0237f9215f3d3c946814d85ca059dd549fb3f4eb | [
"MIT"
] | permissive | Jishnu70055/usermanagement | 57abb738160fb213acdc2c71b40244eae4b06cee | f7b526335c2b99899afac188696071fa35df09ca | refs/heads/master | 2023-09-03T17:30:50.147750 | 2021-10-21T13:27:38 | 2021-10-21T13:27:38 | 399,362,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # Copyright (c) 2021, s and Contributors
# See license.txt
# import frappe
import unittest
class TestCoach(unittest.TestCase):
pass
| [
"jishnudq70055@gmail.com"
] | jishnudq70055@gmail.com |
4e7fae46c7716e5f2f01b9716619049be364d6d0 | 651cec6cbee315bd12c93364c0a721aeed0e02d2 | /pnldash/extra.py | f46daae861d5bffa21997cad87fcf599607cf9af | [] | no_license | pnlbwh/pnldash | 44e3f20b5515ebf0dacf110bf3ac1b8ebebc383f | 454aea60794ea5dfe1be820a6f23328c0345ace9 | refs/heads/master | 2020-03-22T18:23:50.658315 | 2017-08-31T15:34:34 | 2017-08-31T15:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | from __future__ import print_function
from plumbum import cli, local
import sys
import pandas as pd
import csv
import os
from .util import getsize
from .config import *
from .find import make_find
from .csvs import make_csvs
import logging
log = logging.getLogger(__name__)
def _heading(s):
return s + '\n' + len(s... | [
"reckbo@bwh.harvard.edu"
] | reckbo@bwh.harvard.edu |
979f192450c56835036ea1573a2650dab6f9db10 | 7cd3dafa74f596e5e68cc0c2334bf4035e8d3256 | /ex32.py | 4f56420339fb5b8b1bf24d7b0be07c8ca1a90f9a | [] | no_license | afitzmaurice/learnpython | e300d5a1524d9cab9a959b0f36f54ee6282e9db2 | 88ec6b612ad3f7cd63844d21e1288e3e987a7328 | refs/heads/master | 2016-08-12T07:38:57.028688 | 2015-12-05T22:37:38 | 2015-12-05T22:37:38 | 46,667,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | the_count = [1, 2, 3, 4, 5]
fruits = ['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
#this first kind of for loop goes through a list
#note that number is defined by the for loop when it starts
for number in the_count:
print "This is count %d" % number
#same as above
... | [
"ashfitzmaurice@gmail.com"
] | ashfitzmaurice@gmail.com |
f262c1884c06159a8d3c99fba9887b52ddab876d | 38da8d3b3dbeabc2e0cba77c8e8b18d2557460d9 | /Análisis exploratorio/analisis_exploratorio_imagenes.py | afd35813a828b71b065dada31f7d6d27386e2223 | [] | no_license | san13660/data-science-proyecto-2 | 8bab71516a4f097132894f688650123e44b7af5c | df6d396d2fdf8ee8fdfd43bcfe70fc6c80c344a4 | refs/heads/master | 2023-01-13T23:34:57.803243 | 2020-11-19T22:11:59 | 2020-11-19T22:11:59 | 293,656,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | from PIL import Image
import os.path
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from os import walk
### Se hace una lectura de las imagenes
heightArray = []
widthArray = []
cantidadPixeles = []
pathImagenPequena = ''
pathImagenGrande = ''
for (dirpath, dirnames, filenames) in walk('boneage-train... | [
"urielsonic@gmail.com"
] | urielsonic@gmail.com |
43d0b188562d1f33cfa7372f8ffe2841e9ddbcd3 | 39072c596e35ed011ee9a9a2e21598b5939aaa3e | /circle.py | cbdbe7bdd53b5ef80bdbe540215d9e1bd8b2a70a | [] | no_license | Jessica-Thomas/PythonPractice | da72922fb8834d903827e19af1f75afba76f2434 | a449c07f8fefac95cc2d4a89d90af304ce3357b9 | refs/heads/main | 2023-03-16T10:52:49.013659 | 2021-03-03T23:24:26 | 2021-03-03T23:24:26 | 330,848,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | class Circle:
def __init__(self, diameter):
self.diameter = diameter
@property
def radius(self):
return self.diameter / 2
@radius.setter
def radius(self, radius):
self.diameter = radius * 2
small = Circle(10)
print(small.diameter)
print(small.radius)
s... | [
"jessica.thomas648@gmail.com"
] | jessica.thomas648@gmail.com |
08615aac82ac581b68edd26ecccabf3cfe930fcd | e3349214c805f86f9958ab99bed4e7c54056a700 | /yundijie/ydj_transfer.py | 2641d60418cf2ccb87cb49a260cd07fe34f88d54 | [] | no_license | wwdd23/spider_script | 05461b0306aae2120c3dcf9afbf5578a56268f99 | 4a925f94bacff143e4c04b5e3296d2b2ec5e4651 | refs/heads/master | 2021-01-10T23:38:04.990672 | 2016-10-18T03:37:53 | 2016-10-18T03:37:53 | 70,413,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import httplib
import json
import StringIO
import gzip
import pymongo
import get_ua
import datetime
conn = httplib.HTTPConnection("yundijie.com")
def trans(params):
ua = get_ua.get_random_ua()
headers = {
'Content-Type':'application/json; charset... | [
"wudi@haihuilai.com"
] | wudi@haihuilai.com |
ac3b79bcd97dc02636e24488dfa93048a5395d63 | 53214f87d5de4d50ff42b218b6a169edde357315 | /airplane_calculations.py | d20a6f69e7ec84255064a696f1d640aa056e3908 | [] | no_license | brian-cuny/620project1 | 5f34a092cb9fc3cb6870ffada9b3b48d230fa631 | 3ef18966214ccac51e05c13b5545f7b3f6003bb1 | refs/heads/master | 2020-03-19T16:52:52.320302 | 2018-06-25T22:36:29 | 2018-06-25T22:36:29 | 136,734,504 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | import csv
import networkx as nx
import matplotlib.pyplot as plt
if __name__ == '__main__':
with open('airports_sub.csv') as read_file:
airports = {int(r[0]): r for r in csv.reader(read_file, delimiter=',')}
with open('connections_sub.csv') as read_file:
connections = [(int(r[0]), int(r[1])) ... | [
"brian.weinfeld@gmail.com"
] | brian.weinfeld@gmail.com |
5a091ab107c4e5d163d242d119c57c1fbd321eb4 | 10ca8a1d04eb2d95b5153725366d1483a21ce085 | /src/svviz/__init__.py | 8eede553f204534eeb5465c2d5329bdb6e786fdb | [
"MIT"
] | permissive | apregier/svviz | b5c04620d47eee4b92e61c0549294c07ace06e2b | e3e0cbee3eda104199f70142d0fc9264d613f1f7 | refs/heads/master | 2021-01-17T18:32:56.835803 | 2015-10-29T21:49:24 | 2015-10-29T21:49:24 | 45,568,368 | 1 | 0 | null | 2015-11-04T21:24:32 | 2015-11-04T21:24:32 | null | UTF-8 | Python | false | false | 25 | py | __version__ = "1.3.3dev"
| [
"nspies@stanford.edu"
] | nspies@stanford.edu |
9268005884d19f86e946b466114a10b7ff5c1c9e | e5beafe9aac8a90eb360ca46628d547d5c50677c | /tests/conftest.py | 257cca49f9554a5b3a4a27553bed4858d0fcdf38 | [
"MIT"
] | permissive | flask-dashboard/Flask-MonitoringDashboard | 84c3a479d6eb2bc16201984d3988e52091b23208 | bd41a2396d0770ad14e5b739db42c69ecd85cd49 | refs/heads/master | 2023-09-01T03:09:12.583145 | 2023-08-22T21:16:55 | 2023-08-22T21:16:55 | 87,939,708 | 747 | 168 | MIT | 2023-08-22T21:07:23 | 2017-04-11T13:50:14 | Python | UTF-8 | Python | false | false | 167 | py | """Import all fixtures here."""
from tests.fixtures.dashboard import * # noqa
from tests.fixtures.database import * # noqa
from tests.fixtures.models import * # noqa
| [
"patrick.vogel@seetickets.nl"
] | patrick.vogel@seetickets.nl |
e3a92cfa48a1c688c0d840416cf412ca89c8dfe9 | a57b6c021fe307a03f2bcbc79cb1dac848e94ee3 | /session_test.py | f0ba7aba45bb6545e51ac3acc43c330b2d59011b | [] | no_license | wangjunji1/tornado_footprint | 432e73a422c1676a8488ccc9a53606b116146bf6 | 5ecbb98e036327e36f26f149f9b31f85e7fada7e | refs/heads/master | 2021-01-21T20:26:05.065425 | 2016-12-07T00:01:33 | 2016-12-07T00:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | import tornado.ioloop
import tornado.web
import os,time
from hashlib import sha1
session_container = {}#全局字典用于保存每个登录用户的session
create_session_id = lambda: sha1(bytes('%s%s' % (os.urandom(6),time.time()),encoding='utf-8')).hexdigest()
class Session(object):
cookie_name = '__sessionID__'#客户端用于保存session_id的cookie字段名... | [
"815666124@qq.com"
] | 815666124@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.