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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3694eeaaf097d04a21fbf0aabbffbeded8ac2afd | 327d3c1b4f7cc7565da6b2f157e8fdfaf10ef953 | /Hill_function.py | 1b425a73d68e26eff9c7aa70e440bb18a3ffc3f7 | [] | no_license | mircobial-evolution-dynamic/governing-equations | 3937a3c8309bf8b6c4c3248654bed6b55d7752d7 | 765f54f2635fbebae3211e1de91c3f620717ba69 | refs/heads/master | 2021-01-09T16:13:54.279437 | 2020-08-27T11:05:00 | 2020-08-27T11:05:00 | 242,367,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,921 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy import integrate
from scipy import linalg
from sklearn.preprocessing import normalize
import csv
from sklearn.linear_model import lasso_path
# system size
n = 1
# parameters
def hillfunc(t, x):
k = 1
return np.divide(x**4, (2**4 + x**4))*x
def ne... | [
"yiruic@g.clemson.edu"
] | yiruic@g.clemson.edu |
f2b8c9a7622b4657969fb9800cd35901be8fe2e1 | e83df449e6956d5af8e4b98d535a9daacbbff477 | /main.py | 0215ec4d5e158a0c5cdccee9fcaa8569fd2549a5 | [] | no_license | LefterisJP/race_analyzer | 2f48edc34bb299f0d96e3a19a4f245b1b082f21d | 08a5041817e227969775a42656c2bce2030ed69f | refs/heads/master | 2020-03-28T22:40:01.078406 | 2018-09-18T07:47:53 | 2018-09-18T07:47:53 | 149,248,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import click
@click.group(invoke_without_command=True)
@click.pass_context
def main(ctx, threads, keyfile, input_file, respect_word_order, **kwargs):
pass
if __name__ == '__main__':
main()
| [
"lefteris@refu.co"
] | lefteris@refu.co |
2f6a455e356c43a3f644d394fdfcf5a6a01e4bfc | da97f5d59335859dfff09a5dad2d1819750c9bd8 | /phase1-text-modality-NetScale/DLmodel/deepANN/ANN.py | 167ba2627e0ba67b8f3fbb4cf55c297d8c11a5bc | [] | no_license | yindlib/DARPA_Phase1_SentimentAnalysis | 2b8cf44c19dad0ed88792c824e8938835473610f | 0f0d9e41cf2415e6e34b935e0af385862ec115e8 | refs/heads/master | 2020-02-26T14:26:13.726197 | 2014-01-07T09:08:57 | 2014-01-07T09:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,053 | py | import numpy, time, cPickle, gzip
import os
import sys
import theano
import theano.tensor as T
from theano.tensor.shared_randomstreams import RandomStreams
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from Activations import *
from Noise import *
from Regularization import *
from Reconstructio... | [
"glorotxa@iro.umontreal.ca"
] | glorotxa@iro.umontreal.ca |
3dcd7b4a5b15205b98dc36ef6d1fd925d9be13ee | 4aec5f54bd7b2ab06ab2b3e05767798ea1678182 | /Final_analysis/monte_carlo.py | 93ad8dbb3e01bd23520b049d883acf60ab35b705 | [] | no_license | anirudh217sharma/final_project_2020Sp | 10f752173457cf6365b56d281b9c2876431cf83c | d7ac83ec078219902883f7dd8f8cf2fa597063df | refs/heads/master | 2022-08-16T19:48:23.181516 | 2020-05-22T01:19:43 | 2020-05-22T01:19:43 | 255,766,305 | 0 | 1 | null | 2020-04-15T01:00:05 | 2020-04-15T01:00:04 | null | UTF-8 | Python | false | false | 7,595 | py | import random
from typing import Dict, List, Any, Union
import numpy as np
import pandas as pd
import random
import matplotlib.pyplot as plt
import math
import copy
def to_str(var): # https://stackoverflow.com/questions/24914735/convert-numpy-list-or-float-to-string-in-python
"""
:param var: inpu... | [
"noreply@github.com"
] | anirudh217sharma.noreply@github.com |
a3d7cbb516bade8830653b00d9a64990d27e9a98 | b8224f58c7c481f808f933b175b53dc0cf1fbcb8 | /tools/scan_log_dau.py | cbcf1b48c2d6ed98bb6fcd9c07141e82f9ec6395 | [] | no_license | waipbmtd/dwarf | 0ceebb1ef0265a88c66e508db8558fe523f4d5c9 | 9a31b4d57b50961bc3aab4bd7701fa9aad49bf97 | refs/heads/master | 2021-01-18T09:18:53.719434 | 2014-09-21T08:50:33 | 2014-09-21T08:50:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,118 | py | #!/usr/bin/env python
#coding: utf-8
#name: scan log
#by Camelsky 2012/02/19
import os
import re
import tornado
import time
import gzip
from bitarray import bitarray
from tornado.options import options, define
from datetime import date, datetime, timedelta
try:
import redis
except:
print("Need python module \'... | [
"camelsky@gmail.com"
] | camelsky@gmail.com |
bb2caed37e605c5250648871051bb3ede642a153 | 6dcff1b33a873a70a4a902861dbb5bc840a38c73 | /ncip.py | 6288e6aade969cd2eb4617eebbbb892f41ebd5ea | [] | no_license | aygumov-g/python-NumberCipher | 62017b9ec4feb49cbaf615f78e327b8377f4a9d3 | 3e3bff4f9282d6d6e504551cb75d7ede698a2f28 | refs/heads/main | 2023-07-03T03:07:19.491692 | 2021-08-07T17:39:04 | 2021-08-07T17:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from random import randint as ___
def _(_):
__ = {"_": [_, ""]}
_____ = 0
for _ in _:
____ = ___(1, 2)
if ____ == 1:
__["_"][1] += str(int(_) + 1)
__[f"{_____}_{_}"] = "+"
else:
__["_"][1] += str(int(_) - 1)
__[f"{_____}_{_}"] = "-"
_____ += 1
return __
| [
"noreply@github.com"
] | aygumov-g.noreply@github.com |
27b6bdd518263435054c9958b4f58b514197843e | dc7e8f371d82c2872735cb28ed6076d105d33b88 | /DICTIONARY-5.py | ae68af8f710e8a4358cbc22b4788709666aec950 | [] | no_license | Arf17BTEC004/myfiles | e98ec3ce35913edc6da36d2d0c036469910c2410 | 29af22ae8c881b647818235165d161258c6706ea | refs/heads/master | 2021-05-11T12:22:11.125542 | 2018-04-26T05:44:31 | 2018-04-26T05:44:31 | 117,656,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | #DICTIONARY-5
D={1:200,2:400,"PI":3.1416}
z=D[2]
print(z)
V=D["PI"]
print(V)
| [
"noreply@github.com"
] | Arf17BTEC004.noreply@github.com |
2531b746cd58d19a2a200cd4e67130b29fd1ce89 | 574999525b737f173411948954edb787ae185b86 | /Unit 1.py | ae0d9bf7567e5af01570d24329405cbb10883a76 | [] | no_license | tarunapraja/TA-SKT | fb09cbdd75b9dfc83a92574a51dd17e1ecf8100b | e1b4582bf2a5d7ebc74e0d23527431c1b7d0ac72 | refs/heads/master | 2020-05-26T00:09:25.617233 | 2019-05-22T13:51:10 | 2019-05-22T13:51:10 | 188,047,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from xmlrpc.server import SimpleXMLRPCServer
import xmlrpc.client
server = SimpleXMLRPCServer(("0.0.0.0", 5556))
def Emergency_Calls(namaLapor, alamatLapor) :
client_Pusat = xmlrpc.client.ServerProxy("http://127.0.0.1:5555")
notif = client_Pusat.laporan(1, namaLapor, alamatLapor)
if notif == "Laporan diter... | [
"noreply@github.com"
] | tarunapraja.noreply@github.com |
b6c80e7c951bf771e35b6eed2c5e9bd931b4952d | 69fa3beeb1b35be0d1b16ee519e6ec0844a43b18 | /client/urls.py | 9cda64eed2944e3160ad2e163dd255da8fb1c340 | [] | no_license | lw347347/intex2final | 626869d0b4671a8b45fc3aa25093d9910a8f1a54 | ec2532eace9bf80abdf0565d8b5acb6c0994865c | refs/heads/master | 2022-12-10T02:53:36.318385 | 2020-04-10T01:51:50 | 2020-04-10T01:51:50 | 254,377,110 | 0 | 1 | null | 2022-12-08T04:01:07 | 2020-04-09T13:21:11 | JavaScript | UTF-8 | Python | false | false | 164 | py | from django.urls import path
from django.views.generic import TemplateView
urlpatterns = [
path('', TemplateView.as_view(template_name='client/index.html')),
] | [
"lw347347@byu.edu"
] | lw347347@byu.edu |
c5f8396f5be58964491d8ccb9b3bb9a355d4c79c | 5d95b7bddb828407efdfd58f9cc25e9ae2d8f5b2 | /problem005.py | 3765c61254c58972773602c236397bce1dc2bea5 | [] | no_license | Carl-Aslund/project-euler | 3ec0ce9db1b91e3248c1f4eb4425a5f0de8ce975 | c36dc4e967707e141043f4a5cabd37ccafde49ce | refs/heads/master | 2021-09-13T07:41:34.359409 | 2018-04-26T17:29:09 | 2018-04-26T17:29:09 | 115,889,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | def gcd(x, y):
"""Returns the greatest common denominator of two integers."""
if y == 0:
return x
else:
r = x % y
return gcd(y, r)
def superLcm(num):
"""Returns the least common multiple of all numbers from 1 to num."""
lcm = 1
for i in range(2, num+1):
if lcm%i ... | [
"caslund@g.hmc.edu"
] | caslund@g.hmc.edu |
1f22d2db31666c1bd1fff6012090e64e0ed64f02 | 493869fbe452ad6524e9d1a4570a978f87a2c5c3 | /api/migrations/0004_auto_20190818_1125.py | 75b0dba2f29eb6268e8a86ec06019c41bc0decf4 | [] | no_license | NeKadgar/KIWIDO | 33491fa4fe78872ab9c3c76a4434ff6700ed687c | 3255c32406190e26b8804fe7524bb6b56e50cee7 | refs/heads/master | 2020-07-11T23:44:10.098551 | 2019-08-29T07:26:42 | 2019-08-29T07:26:42 | 204,668,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 2.0.6 on 2019-08-18 08:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20190818_1124'),
]
operations = [
migrations.AlterField(
model_name='note',
name='done',
... | [
"37880360+NeKadgar@users.noreply.github.com"
] | 37880360+NeKadgar@users.noreply.github.com |
ec86aee2863caad73625cec5b38ecb008e726e79 | 462c56e7454c97e0541588b9be66a4e216ea20fd | /399.evaluate-division.py | a3cfbdefe5a676c0fd3cfbca9f067f3686c034cf | [] | no_license | LouisYLWang/leetcode_python | d5ac6289e33c5d027f248aa3e7dd66291354941c | 2ecaeed38178819480388b5742bc2ea12009ae16 | refs/heads/master | 2020-05-27T08:38:48.532000 | 2019-12-28T07:08:57 | 2019-12-28T07:08:57 | 188,549,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | #
# @lc app=leetcode id=399 lang=python3
#
# [399] Evaluate Division
#
class Solution(object):
def calcEquation(self, equations, values, queries):
"""
:type equations: List[List[str]]
:type values: List[float]
:type queries: List[List[str]]
:rtype: List[float]
"""
... | [
"louis.yl.wang@outlook.com"
] | louis.yl.wang@outlook.com |
0f21630b7245ca179cf9e8e5fb6e5e94b4c702b8 | a6ade10bf4bca2bd8a86a614cdb8121501ceb1fe | /Homework 20.09.62_9.py | f6f6314d6f88355e065198eb75a361859a233e72 | [] | no_license | thitima20/Homework-20.09.62 | 1f6bdd20c5ee946f8b64b82e030d4ac4a1adc8f1 | 4f74e8b16de3dd9d01d14d2c484444bcb3e342ec | refs/heads/master | 2020-07-29T23:49:01.962490 | 2019-09-22T15:59:38 | 2019-09-22T15:59:38 | 210,006,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | sum = 0.0
n = 0
#Define of variable กำหนดให้ sum เท่ากับ 0.0 กำหนดให้ n เท่ากับ 0
number = int(input("Enter number :"))
#input รับค่าตัวเลขเข้ามาทางแป้นพิมพ์
while number > -1:
#process ทำเงื่อนไข while โดยให้รับตัวเลขเข้ามาเรื่อยๆจนกระทั่งมีการรับตัวเลข -1 เข้ามาจึงหยุดรับตัวเลขแล้วนำตัวเลขทั้งหมดมาบวกกันแล้วหาค่า... | [
"noreply@github.com"
] | thitima20.noreply@github.com |
928ddd4f81277a2748416b7bccc1aff34c828f94 | f36cfc095a978711e0b34781a6972a927558a542 | /Python practice/Numpy Dot and Cross (easy).py | bcfd3733b9ba79721ab123a0da9d475a5f0560a6 | [] | no_license | dmironov1993/hackerRank | 9ac2c83451fa4833f99969ef148b08918a4b2b6d | 6090e654254477eaea1840fa4b75a9a79a0548c2 | refs/heads/master | 2020-04-23T10:33:41.363235 | 2019-11-22T13:38:09 | 2019-11-22T13:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import numpy as np
n = int(input())
a,b = (np.array([input().strip().split() for _ in range(n)], dtype=np.int) for _ in range(2))
print (np.dot(a,b))
| [
"noreply@github.com"
] | dmironov1993.noreply@github.com |
3114c485da23751ff29c831da4c16036721032cc | f96a3e4c19672187184efd0fc67dec221aa6e2e7 | /utils.py | e7ddfc240efb1895d8f5d3baa4f59d4e394234f1 | [] | no_license | nowoodwar/nlp_final_project | 4b0c3da882d2d767b57dd55315543752b94b4391 | 341de88c49534bda6533f72e7a3eca8170f5d870 | refs/heads/master | 2022-06-24T07:44:13.730958 | 2020-05-09T03:42:03 | 2020-05-09T03:42:03 | 261,875,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import json
def f1_score(pred, answer):
pcnt = 0
for word in pred:
if word in answer:
pcnt += 1
rcnt = 0
for word in answer:
if word in pred:
rcnt += 1
precision = pcnt / len(pred)
recall = rcnt / len(answer)
# cover div... | [
"nathaniel.woodward1@gmail.com"
] | nathaniel.woodward1@gmail.com |
e5f2a3153a84e84c9df8be23e4b8958bcbd08513 | d88b6c430c293b9ad464de4f503b51da85be96cd | /python/第一周/user_login.py | da1d8bd1f633d2d87848e573f2e740267e413ea1 | [] | no_license | lww2020/linux | 346573bb48782da41ef14e92ef3afbbe039a71d5 | c8c799f6dad6bceaa5bdd6b4d980aaa26992305c | refs/heads/master | 2022-10-11T22:48:53.080419 | 2018-05-07T03:20:07 | 2018-05-07T03:20:07 | 119,628,170 | 0 | 1 | null | 2022-10-06T23:59:20 | 2018-01-31T03:15:37 | Python | UTF-8 | Python | false | false | 508 | py | # -*- coding:utf-8 -*-
# Author: davie
# 表达式if ... else
"""
场景一:用户登陆验证
1、提示用户输入用户名和密码
2、验证用户名和密码
如果错误,则输出用户名或密码错误
如果成功,则输出欢迎,xxx!
"""
import getpass
name = "davie"
pwd = "abc123"
_name = input("请输入用户名:")
_pwd = input("请输入密码:")
if _name == name and _pwd == pwd:
print("欢迎,{}".format(name),'!')
else:
prin... | [
"13439017540@163.com"
] | 13439017540@163.com |
0872b9077d049b94233d0fb75c56b78c011dc985 | 4fa160afca22f6c98db6566012fb17f84905471a | /flask_stream.py | 19b905ff4f5f864762d07cbb9ac2b11227c55ce7 | [] | no_license | aish058/Twitter-streaming-master | 591c01c4f5425a733bad4131a57f018e2885596b | a97d6b8bd07a44e87b5d3a774c542e7b248388d1 | refs/heads/master | 2023-01-28T01:28:08.412549 | 2020-12-13T07:56:15 | 2020-12-13T07:56:15 | 321,012,748 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,881 | py |
# import necessary modules
from tweepy.streaming import StreamListener
from flask import Flask, request, jsonify
from flask_restful import Resource, Api
from tweepy import OAuthHandler , Stream , API
from sqlalchemy import Table,select,insert,create_engine,MetaData,cast,desc
from sqlalchemy import Column,String,Integ... | [
"aishwaryanamballa@gmail.com"
] | aishwaryanamballa@gmail.com |
a7b8a5f71a4ce1617079c294f79021a5b598397a | a1519a7542babb21cc702a2548db05b4292b1524 | /models/base_model.py | ef5ab4045e5b23dc999367b4997c4cff56e6ec4a | [] | no_license | fabbrimatteo/VHA | d01ee2f2366a9d97d033e15084c1b875add5a05b | 95da5679f29937544ef6128d6dcd4f2a4a01dac7 | refs/heads/master | 2022-11-07T00:31:13.097395 | 2020-06-23T13:30:40 | 2020-06-23T13:30:40 | 273,720,548 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | # -*- coding: utf-8 -*-
# ---------------------
from typing import *
import torch
from path import Path
from torch import nn
class BaseModel(nn.Module):
def __init__(self):
super().__init__()
@property
def n_param(self):
# type: (BaseModel) -> int
"""
:return: number of parameters
"""
return sum(p... | [
"matteo.fabbri@unimore.it"
] | matteo.fabbri@unimore.it |
b27180e2c627edbd66d6a659a550743b4923a753 | 3e0bdaaabc8bd4837c37716ff45c703847601de6 | /show/views.py | 068afd583e58279f831a88508c2eb483e52ad95e | [] | no_license | komakao/junior | 69f042ab01e4f204587e2da755648d499a1e920c | 956127a1d0e5ed6fa2ae76a165c877ab1abb85e6 | refs/heads/master | 2018-11-02T06:00:22.831088 | 2018-08-27T03:20:11 | 2018-08-27T03:20:11 | 117,407,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,786 | py | # -*- coding: utf-8 -*-
from __future__ import division
from django.shortcuts import render
from show.models import ShowGroup, ShowReview, Round, ShowFile
from django.core.exceptions import ObjectDoesNotExist
from student.models import Enroll
from django.shortcuts import render_to_response, redirect
from django.templat... | [
"t005@mail.nksh.tp.edu.tw"
] | t005@mail.nksh.tp.edu.tw |
4cbb7136f4df01db845e675c4c192d0096913692 | 2145fc1a9b769cbf20dc2b14ea6ad1108533c69c | /src/EnginePDI2.py | edecf14b475bd387b40327f1f33daa2c9f971eee | [] | no_license | ErunamoJAZZ/Visor-Unal | c2b65810cebaded73496f12f6fe08b19f2bc4ffa | 8a2762063f883c3d2feac23d0c0846449599e6ad | refs/heads/master | 2020-05-20T06:51:05.966276 | 2011-05-25T21:11:18 | 2011-05-25T21:11:18 | 1,402,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
Created on 1/05/2011
@author: Carlos Daniel Sanchez Ramirez <ErunamoJAZZ>
@web: https://github.com/ErunamoJAZZ/Visor-Unal
'''
import wx, ImageChops, EngineGlobal
from EngineGlobal import ImgActual
#--Filtros 2
def invertir(event):
img_out= ImageChops.invert( Im... | [
"anonimato1990@gmail.com"
] | anonimato1990@gmail.com |
c76c365d2833d030743e5acd1e237a6437a9dc21 | 4c05b18026076bd3652561344950f82875d60715 | /commands/wallet.py | b3d9e9badf6b34f3209aa25f727632c9cef28034 | [] | no_license | hoomji/Cryptomon | 7a6a44d8c3f6bdff589e541ddb0d671fd133cc05 | 92d4ea1bd94f97b91bd036f8cb4af1232c8969d8 | refs/heads/main | 2023-04-22T00:45:09.986460 | 2021-05-16T22:38:40 | 2021-05-16T22:38:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py |
async def wallet(message, numGraphicCards, numDogecoin, numEthereum, numBitcoin):
await message.channel.send('You have **' + str(numGraphicCards) + '** graphic cards <:graphic_card:843320481905377320>. \n\
You have **' + str(numDogecoin) + '** dogecoin <:dogecoin:843319595086905374>. \n\
You have **' + str(numEthere... | [
"chris.lpher15@gmail.com"
] | chris.lpher15@gmail.com |
0e466f4ac716661f529c7dba7cacc70a9e2d454b | 5b9b2ec5fb3142609882a3320c6e64c6b912395c | /LeetCode/mostWaterContainer.py | b38ef468717fd38297251aa67b4e445ea5621a0e | [] | no_license | anildhaker/DailyCodingChallenge | 459ba7ba968f4394fb633d6ba8b749c1e4cb7fb0 | f1cfc52f156436dc7c0a6c43fa939cefac5cee36 | refs/heads/master | 2020-04-20T18:58:33.133225 | 2020-01-11T14:50:52 | 2020-01-11T14:50:52 | 169,036,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Given n non-negative integers a1, a2, ..., an , where each represents a point at
# coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line
# i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a
# container, such that the container contains the most water.
def maxA... | [
"anildhaker777@gmail.com"
] | anildhaker777@gmail.com |
c2f2895427ec8379e4299bb6ab2aeb011ad52e6c | c3d6dda3406eb8b5794afcfde0fcd8f61d763a21 | /algorithm/12-maxNum_number.py | 482dda9f673141854231e29f48532084dfa83104 | [] | no_license | xixijiushui/Python_algorithm | e3dd35ecb364e65e592ecfa322e444b7c371a8bc | 5789545fec82a2edc7f6a94aa55387eb736fca42 | refs/heads/master | 2020-04-02T08:21:46.995180 | 2018-10-23T02:24:18 | 2018-10-23T02:24:18 | 154,241,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | def printMaxOfnDigits(n):
'''
用字符串形式打印,防止大数
:param n:
:return:
'''
if n <= 0:
return
number = ['0'] * n
while not Increment(number):
PrintNumber(number)
def Increment(number):
# 从后往前遍历,首次+1,如果大于==10且不是第0位,则将本身做0处理,将上一位+1
# 如果第0位的值为10,则达到最大值
isOverflow = Fals... | [
"291940740@qq.com"
] | 291940740@qq.com |
d6ac249c0aeae1eca0533c3a797777ba69484826 | f99776ce9262682c3bf87c08576227545d456cba | /Principal.py | ef18a74c78fb04b196dc75325aea7d5b3514d4c3 | [] | no_license | alanperez43/EJER-integrador-unidad-2 | 6de3f23cb413e54a6ff0ab59fcd2289ad277a84e | b75acb30648f0912fcca5c32dcc6c70d0ecf687b | refs/heads/main | 2023-04-16T10:08:02.646738 | 2021-04-30T04:34:45 | 2021-04-30T04:34:45 | 363,026,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from Manejador_Integrante import Manejador_Integrante
from Manejadores_Proyecto import Manejador_Proyecto
if __name__ == "__main__":
ManejProyecto = Manejador_Proyecto()
ManejIntegrante = Manejador_Integrante()
ManejProyecto.Cargar_Archivo("proyectos.csv")
ManejIntegrante.Cargar_Archivo_Integrante... | [
"noreply@github.com"
] | alanperez43.noreply@github.com |
d6a3a4e4d4fb2734344f08d15a075ff36ef8792f | ec9e14cebaf5d00b73f2c25b00acab2885dbd706 | /models/keras_train.py | 1a74f92a00d93ee2e4ab623dc2e6abbd42491c1f | [
"Apache-2.0"
] | permissive | loopdigga96/quora-kaggle | d1af1e6697ab3161fae9c1028681a0ac3b4ccfba | 04883ea7052e342fd6b3ecdf8d1061f2de71fe55 | refs/heads/master | 2021-06-18T01:54:41.045297 | 2017-04-12T19:25:35 | 2017-04-12T19:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,028 | py |
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Input, Flatten, Dropout
from keras.layers import Conv1D, MaxPooling1D, Embedding
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
f... | [
"tretyak.1996@gmail.com"
] | tretyak.1996@gmail.com |
2abe2ec9dd5f8ad8d9bbdf25bbb40f3f4c1d8867 | be8027be5e57b51b9d26beab1e895707c0d8cc57 | /assignment1/svm.py | f8ff5e5497930675a87e14bc0bf41f3c5e021db0 | [] | no_license | akashanand93/cs231n | 7f13625ef15cfc5e278506bc69fb8dd9ac52b2f2 | 2868b96d852c518d04dc4db98dbacc78ab98c4e8 | refs/heads/master | 2020-03-19T06:21:28.796248 | 2018-06-05T06:02:02 | 2018-06-05T06:02:02 | 136,012,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,042 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 24 09:47:37 2017
@author: akash.a
"""
# Run some setup code for this notebook.
import random
import numpy as np
from cs231n.data_utils import load_CIFAR10
import matplotlib.pyplot as plt
from __future__ import print_function
# This is a bit of magic to make matplotlib... | [
"akashanand.iitd@gmail.com"
] | akashanand.iitd@gmail.com |
b8a549c3b7c45307883c792948da9e84bc74ed7d | 2180f68982790f7e1c1e201b314f9bb3a3a8bb00 | /hw4/saliency_map.py | 3e873aee799357a028f3515f2bcf9f05cf07d665 | [] | no_license | jimmycsie/Artificial_Intelligence | bee8eae316b105832c6677d118967f7728b371b9 | 476d3c50d85db27127a149a2d88f7d0c03927752 | refs/heads/master | 2022-03-28T00:47:40.359850 | 2019-12-23T04:35:41 | 2019-12-23T04:35:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | import sys, os
import csv
import numpy as np
from keras.models import load_model
import keras.backend as K
import matplotlib.pyplot as plt
import matplotlib
model = load_model('CNN.h5')
input_path = sys.argv[1] # "train.csv"
directory = sys.argv[2] # "picture/"
isget = [0]*7
sample_data = []
class_da... | [
"b06705057@ntu.edu.tw"
] | b06705057@ntu.edu.tw |
44ddb595fa8ac21513ee748b7c62de7f6f8ba96b | 94d5ef47d3244950a0308c754e0aa55dca6f2a0e | /migrations/versions/553c32c42187_removed_item_id_column_item_.py | 70b909a8c7a6a5a1625fc039afbe238d715c6a25 | [] | no_license | MUMT-IT/mis2018 | 9cbc7191cdc1bcd7e0c2de1e0586d8bd7b26002e | 69fabc0b16abfeba44173caa93d4f63fa79033fd | refs/heads/master | 2023-08-31T16:00:51.717449 | 2023-08-31T11:30:13 | 2023-08-31T11:30:13 | 115,810,883 | 5 | 5 | null | 2023-09-14T10:08:35 | 2017-12-30T17:06:00 | HTML | UTF-8 | Python | false | false | 1,832 | py | """removed item id column, item relationship, quantity, unit, note and status return procurement in ProcurementBorrowDetail model
Revision ID: 553c32c42187
Revises: 68a7bfa29b3a
Create Date: 2023-02-24 11:41:24.833000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revisi... | [
"91609845+AIMTYADA@users.noreply.github.com"
] | 91609845+AIMTYADA@users.noreply.github.com |
c9698f69a352b6a3843b8b47da144c699952fec5 | b6df7cda5c23cda304fcc0af1450ac3c27a224c1 | /data/codes/bluquar_cube.py | c9bc60edb49769e4a1e2ad2a9460bddc02746812 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | vieira-rafael/py-search | 88ee167fa1949414cc4f3c98d33f8ecec1ce756d | b8c6dccc58d72af35e4d4631f21178296f610b8a | refs/heads/master | 2021-01-21T04:59:36.220510 | 2016-06-20T01:45:34 | 2016-06-20T01:45:34 | 54,433,313 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 43,257 | py | # cube.py# Chris Barker# CMU S13 15-112 Term Project
from Tkinter import *from geometry import *import heapqimport copyimport randomimport solutionsimport mathfrom math import sin, cos, pi
class Struct(object): pass
def loadObject(path, index): with open(path) as file: try: data = file.read() except Exception as e: pri... | [
"thaisnviana@gmail.com"
] | thaisnviana@gmail.com |
54d11543ee75f0af1f4f83889eae2efd752b0fbd | ba6c64c6f8d348a86c16395aaa5f8fadc6cf4386 | /python/lab4/exercice3.py | 3315c352898877e66c2fcb152bf9491422c2eacb | [] | no_license | AmalM7/DataScienceAcademy | 875f00b1909a3b9ba76e178852db7aa6e851e220 | aa3719465f9582436f511ce56ad94cdf59354dca | refs/heads/master | 2020-03-30T19:21:32.129618 | 2018-10-07T19:59:39 | 2018-10-07T19:59:39 | 151,538,683 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
x=np.linspace(0, 10*np.pi, 100)
y=np.cos(x)
y2=np.exp(-x/10)*np.cos(x)
plt.plot(x,y, 'r', x, y2, 'g')
plt.title('Cos function and cos with exponentiel')
plt.xlabel('x')
plt.ylabel('y & y2')
plt.show()
| [
"noreply@github.com"
] | AmalM7.noreply@github.com |
404a81bab69f0ff9408a716756755d82973ea033 | c0f72a4c87794df5c4c239ddfc0392f7b9295d3f | /top/api/rest/TopatsTaskDeleteRequest.py | 162b86495235cb30dd4a04ecdb6d98d9891e873b | [
"MIT"
] | permissive | chenluzhong150394/taobao-top-python3_version | c37ec2093726212b49a84598becd183b9104bd99 | 61b262c46e48504754a9427986595bce0ae0e373 | refs/heads/master | 2020-11-27T16:28:46.526318 | 2020-06-29T14:32:16 | 2020-06-29T14:32:16 | 229,528,970 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | '''
Created by auto_sdk on 2013-06-03 16:32:57
'''
from top.api.base import RestApi
class TopatsTaskDeleteRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.task_id = None
def getapiname(self):
return 'taobao.topats.task.delete'
| [
"18438128833@163.com"
] | 18438128833@163.com |
f901db4af23a8c26750f616948c92326dd175944 | 4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8 | /python/decorator/6.py | 9daaa357949d9124d267fde893e0bbd950f06d36 | [
"MIT"
] | permissive | gozeon/code-collections | 464986c7765df5dca980ac5146b847416b750998 | 13f07176a6c7b6ac13586228cec4c1e2ed32cae4 | refs/heads/master | 2023-08-17T18:53:24.189958 | 2023-08-10T04:52:47 | 2023-08-10T04:52:47 | 99,432,793 | 1 | 0 | NOASSERTION | 2020-07-17T09:25:44 | 2017-08-05T15:56:53 | JavaScript | UTF-8 | Python | false | false | 310 | py | import logging
def user_logging(func):
def wrapper(*args, **kwargs):
logging.warn("%s is running" % func.__name__)
return func(*args, **kwargs)
return wrapper
@user_logging
def foo(name, age=None, height=None):
print('i am %s, age %s, height %s' % (name, age, height))
foo('haha', 12, 40)
| [
"goze.qiu@gmail.com"
] | goze.qiu@gmail.com |
72c6ba22b595645497c1256efaee42a15556634f | e27be3e6be1d68c1c4899c09d46dd15a10270ddd | /trainingData.py | 20102dc3fcd2068ed8e7718a230190cfd8b85c64 | [] | no_license | mewturn/capstone8_p16 | 3e79c160b5e74054da22f085db83553e8c09b821 | 5dd54d9275e8d1f146db8020cf52300e33c36107 | refs/heads/master | 2021-06-21T07:49:40.123947 | 2017-07-12T04:16:52 | 2017-07-12T04:16:52 | 92,831,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,106 | py | ## Milton Li 2017
## Capstone 8 - Project 16: Bio-waste Disposal
## Singapore University of Technology and Design
## Uses simple linear regression to determine if a pixel is green or non-green
from PIL import Image
import sys
import numpy as np
from time import sleep
from math import exp
# Requires imageAnalysis.py
... | [
"pathonice@hotmail.com"
] | pathonice@hotmail.com |
2bd22c0de567d1dbd8801755524271b751d1729a | 0fdf1ff89ca55a6b1f3f67d1c1ff5590cc6c0826 | /views.py | 96968b35baee7bba15ea70debb38f5e6a4ddd28e | [] | no_license | geminsky/simple-Student-management-system | 3b296463cf78623f2006f781915bb292c2d600b0 | 7e67fed588650ba1df01c40684eca8688d1556cd | refs/heads/master | 2020-03-24T17:38:42.578379 | 2018-08-28T06:09:51 | 2018-08-28T06:09:51 | 142,866,238 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,517 | py | from django.views import generic
from . import models
from . import forms
from django import urls
from django.urls import reverse_lazy
from django.shortcuts import get_object_or_404,redirect
from django.http import HttpResponseRedirect,HttpResponse
from django import http
from django.core.urlresolvers import reverse
f... | [
"noreply@github.com"
] | geminsky.noreply@github.com |
edde83793cbbb6f5ecd213edbf7171025f7c5995 | f603b0edb36f3578b99c49aea68c09acb222b5e2 | /exercicios/Curso_Udemy_Python/sec3_aula58.py | 6506bd25d840427c70745b94680fc8c9fb54c13b | [
"MIT"
] | permissive | igobarros/maratona-data-science-brasil | 260d8160a356dfdf5876cfef03a0aacc7f20340e | cc07476579134a2764f00d229d415657555dcdd1 | refs/heads/master | 2021-10-09T23:33:25.278361 | 2019-01-04T15:08:43 | 2019-01-04T15:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py |
class MyList(list):
def append(self, *args):
self.extend(args)
m = MyList()
m.append(0)
m.append(1,2,3,4,5,6)
print(m)
class MyList1(list):
def sort(self):
return 'eae vey? ta afim de ordenar?'
l = [4,1,78,34,4,9]
'''l.sort()
print(l)'''
lista = MyList1()
print(lista.sort())
| [
"igorestacioceut@gmail.com"
] | igorestacioceut@gmail.com |
d601062928f2c0c729a3a3eebf2c8f75763a9cb1 | 24a82d0870568d483d2662dbe10cca64e4fa1d5c | /cpo/tests/test_monitor.py | 17475aac2147164de76ccb9e3e2673767983d954 | [
"MIT"
] | permissive | worc3131/CPO | f62ad7e5ff8fd160f0343f4e7ad33e7a12e84e14 | de738f18188566327c407bd34f0683d827b5d5d5 | refs/heads/master | 2023-01-29T17:23:09.747953 | 2020-12-11T12:00:55 | 2020-12-11T12:00:55 | 312,937,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py |
from cpo import *
def test_monitor_init():
Monitor()
| [
"web.gwh@gmail.com"
] | web.gwh@gmail.com |
62e2d967a282ac5680b4914b1029424289056226 | b13a2f7fd32446e2f6ba9a0c0fffd11a413de07e | /models.py | 66f4050e234222e63fbd79163e8257df39c57dde | [] | no_license | zeehjr/peewee-example | 2c009e5734c6ba4cb155301530ee0493a7254d15 | c1f42247a94085e613b9033098f110c1dab3c363 | refs/heads/master | 2023-03-21T13:27:10.757741 | 2021-03-20T02:58:19 | 2021-03-20T02:58:19 | 349,611,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from peewee import *
db = PostgresqlDatabase('hello', user='postgres',
password='postgres', host='localhost', port=5455)
class Person(Model):
name = CharField()
birthday = DateField()
address = CharField()
class Meta:
database = db # This model uses the "people.db" d... | [
"zeehtecnologia@gmail.com"
] | zeehtecnologia@gmail.com |
873a1fe78becceec2ced01f6cd9255e19f8656f0 | 7044b8b5fbc27b9fe92e342b22bbc5948d4635a9 | /busan.py | 24e1ba5f97b4330aeddf3c43600f2efcc58add20 | [] | no_license | dannykbsoul/Train-To-Busan-Text | effcf375bade97a426c126ecc5721df61af069e5 | e2e7650d98e30f8758ce2265b0e01063c13c83a4 | refs/heads/master | 2021-09-08T10:54:46.953212 | 2018-03-09T10:36:34 | 2018-03-09T10:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | import os,sys
import jieba, codecs, math
import jieba.posseg as pseg
names = {} #姓名字典
relationships = {} #关系字典
lineNames = [] #每段内人物关系
jieba.load_userdict("dict.txt") #加载字典
with codecs.open("busan.txt","r","utf8") as f:
for line in f.readlines():#读取文件所有东西,每行作为列表的一个元素
poss = pseg.cut(line)#分... | [
"noreply@github.com"
] | dannykbsoul.noreply@github.com |
de91906e8d58d1f166cf343956e0f9b9d933f43d | 8678ab710d9b898d62ac46e189317fb8b19e57a8 | /models/attentive.py | 71c0e84c0ea325cb55dfa3294e4af3b1bf9de926 | [] | no_license | bdura/attentive-eligibility | 7efbd84912d3f62a43ea47f54a34d4b2a5290ebe | 42b23d35516b93ea0134a579f97107e0dba6def4 | refs/heads/master | 2020-04-30T23:17:22.194066 | 2019-09-03T22:50:23 | 2019-09-03T22:50:23 | 177,140,255 | 0 | 1 | null | 2019-08-23T21:20:36 | 2019-03-22T12:56:33 | Jupyter Notebook | UTF-8 | Python | false | false | 1,514 | py | from torch import nn
import math
import torch
class Attentive(nn.Module):
def __init__(self, input_dim, hidden_dimensions=(64, 64, 64, 64), memory_size=256, memory_dimension=32, key_dimension=16, output_dim=2):
super(Attentive, self).__init__()
self.memory = nn.Parameter(torch.randn(memory_siz... | [
"basile.dura@polytechnique.edu"
] | basile.dura@polytechnique.edu |
57b0f2d60e3bfda979abf47e6ea2d40de7d2e825 | a8d4602b1416d4f14c256b41fd004d605d57b6ed | /python/license_manage.py | 1a64aecee37422513f9e8d9f8a4e62c610be68d1 | [] | no_license | barnesry/junos-scripts | bc83486af8c50d27c4e16c5e47223053c3bc4626 | b698d3f318dede7e2366d2e5d9e9ae1aea749fa6 | refs/heads/master | 2023-02-05T10:18:43.452464 | 2023-02-01T17:43:36 | 2023-02-01T17:44:37 | 47,650,581 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | #! /usr/bin/python
# Retreive arbitrary information from remote devices using NETCONF RPC calls
import sys
import argparse
from jnpr.junos.utils.config import Config
from jnpr.junos.exception import *
from jnpr.junos import Device
from pprint import pprint as pp
from lxml import etree
def getArguments():
parse... | [
"barnesry@gmail.com"
] | barnesry@gmail.com |
ec46ebcaaa624f2ac7abf272df486a27cd2075fe | b25055503a8f0de13b4f7aece4f6cf1ba5c9d3ab | /tests/fixtures.py | 03ad2db59c5325385cda821694184a7a51d8a6c9 | [
"MIT"
] | permissive | mkturkcan/autobahn-sync | a340eb9f32c331a9b4331f0a1701e18ef78e3d9e | 2663520c032912c0769647de8fc5e47d9234cf07 | refs/heads/master | 2020-03-19T12:41:23.387271 | 2018-06-12T16:54:30 | 2018-06-12T16:54:30 | 136,533,456 | 0 | 0 | null | 2018-06-07T21:34:46 | 2018-06-07T21:34:46 | null | UTF-8 | Python | false | false | 1,294 | py | from os import path
from time import sleep
import subprocess
import pytest
from autobahn_sync import AutobahnSync, ConnectionRefusedError
CROSSBAR_CONF_DIR = path.abspath(path.dirname(__file__)) + '/.crossbar'
START_CROSSBAR = not pytest.config.getoption("--no-router")
@pytest.fixture(scope="module")
def crossbar(... | [
"emmanuel.leblond@gmail.com"
] | emmanuel.leblond@gmail.com |
975f89e11fb627f2f539de6588f134c33750d365 | bdc86421fea4d5cc7b15dea0911460d487803d52 | /NB/NB_data.py | 261c59c9c44837c69f4e1144b28acff13f9922d5 | [] | no_license | cherria96/BEST | a28506e16f2a2f2935078d0ffda93ed09dd9c539 | 8bd98dcb9f581c1169f36e7015b01f0844a9d22e | refs/heads/main | 2023-07-05T09:39:27.434773 | 2021-08-26T13:46:53 | 2021-08-26T13:46:53 | 315,267,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 22 17:19:08 2020
@author: sujin
"""
import pandas as pd
#import data
filename = 'NB_data.xlsx'
data = pd.read_excel(filename, index_col = 0, na_values= ['',' - ',0])
data = data.T
data.dropna(how = 'all', inplace=True)
data = data.fillna(0)
#feautres, lab... | [
"sujineeda@postech.ac.kr"
] | sujineeda@postech.ac.kr |
80a876d02aa0d4d1c1a901b0311bd3e3900c7ef4 | 7623386df02a52145b174700621fa70973e81d0e | /shakecastaebm/validation/generate.py | 7925da9b8f3a495b9c6fce24a65e5ca2affc39d0 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | dslosky-usgs/shakecast-aebm | f641f6a3bac3d466fb4e0f02b4913e0b63fa5ecb | bec1ad970989a7121096123f0b3a84c20ed0a0cc | refs/heads/master | 2021-06-24T07:02:27.539492 | 2018-08-08T20:51:08 | 2018-08-08T20:51:08 | 144,181,944 | 0 | 0 | null | 2018-08-09T17:09:24 | 2018-08-09T17:09:24 | null | UTF-8 | Python | false | false | 1,409 | py | import os
import sys
from . import shakecast
from . import workbook
from . import damping
from . import demand
if __name__ == '__main__':
pp_fig, capacity_fig, acc_diff_fig, disp_diff_fig = workbook.run()
cap_fig, haz_fig, dsf_fig, dem_fig, sc_pp_fig, impact_fig = shakecast.run()
damp1, damp2 = damping.ru... | [
"dslosky@usgs.gov"
] | dslosky@usgs.gov |
0d4f77554fb7d7a5b92a8ebcc2b46aeb23fd76a5 | ad6350f06a14f07ebcbe1b187cb0bb7cb2b69ea3 | /tts/utils/alphabet.py | cb5a0c370cf07cab2048ad1a747f2d5821c0649d | [
"MIT"
] | permissive | isadrtdinov/tacotron | 77b87d67ad6623371adf1fdddc22f97d1a77250f | 994716c0f731735b0edde57b920549b83bdd89ca | refs/heads/main | 2023-01-20T01:18:05.122722 | 2020-11-27T18:26:16 | 2020-11-27T18:26:16 | 313,932,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import torch
class Alphabet(object):
def __init__(self, tokens=''):
self.index_to_token = {}
self.index_to_token.update({i: tokens[i] for i in range(len(tokens))})
self.token_to_index = {token: index
for index, token in self.index_to_token.items()}
def s... | [
"ildussadrtdinov@MacBook-Pro-Ildus.local"
] | ildussadrtdinov@MacBook-Pro-Ildus.local |
4322ca67ffbdb44eb6b884bb802c4659eef90fc4 | e9333f51cf76e94b68cce9d0daf5da545ced54a7 | /HAR/lib/python3.7/site-packages/kivy_ios/recipes/flask/__init__.py | 0a559ccbc6ab96a59245dabc675c722b938fdee4 | [] | no_license | locnguyen14/HAR-data-collection | a5be42ebb261bedb3b62dd3b736b7b3c5da27467 | 681ccd94208f624fe224fa7e944c9437ee8d31ca | refs/heads/master | 2022-11-14T03:47:44.158681 | 2020-06-01T20:05:55 | 2020-06-01T20:05:55 | 268,619,084 | 0 | 1 | null | 2022-11-02T05:33:39 | 2020-06-01T19:57:10 | C | UTF-8 | Python | false | false | 999 | py | # pure-python package, this can be removed when we'll support any python package
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh
import os
class FlaskRecipe(PythonRecipe):
version = "master"
url = "https://github.com/mitsuhiko/flask/archive/{version}.zip"
depends = ... | [
"ndxloc1995@gmail.com"
] | ndxloc1995@gmail.com |
220dfaaeafb0194a281d372055511fb51b1ca888 | f7f2e8af3e9b19840396ab5da36bfa161cf03484 | /setup.py | 3466011a2a76c26eb5542750376251fd57f946c5 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Nevinoven/bcwallet | 2a4713f24505978f681d6d398300c144834bfbf0 | afaef09b3c3ac87de765cd9a915f98c046084b21 | refs/heads/master | 2021-01-15T23:50:56.911620 | 2015-12-08T18:29:22 | 2015-12-08T18:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # https://youtu.be/kNke39OZ2k0?t=65
from setuptools import setup
setup(
name='bcwallet',
version='1.2.3',
description='Simple BIP32 HD cryptocurrecy command line wallet',
author='Michael Flaxman',
author_email='mflaxman+blockcypher@gmail.com',
url='https://github.com/bl... | [
"mflaxman@gmail.com"
] | mflaxman@gmail.com |
0f89fce50eea8c4c073a162371547050cac89eab | e672b8a57d5224116e70e81cb1ad1ed56e62de0c | /Human/decoration.py | 90d7d968ff9836043b63250e334a81084229f36d | [] | no_license | ShiShuyang/LineMe-1 | a13616fd10bdec2c63e6d6fa648f23fc4d1dfb61 | 5eb4de329d0bf588edf8ad1684a4ec5fa529fecf | refs/heads/master | 2021-01-22T21:00:34.273257 | 2016-05-16T08:04:17 | 2016-05-16T08:04:17 | 58,914,351 | 0 | 0 | null | 2016-05-16T08:00:20 | 2016-05-16T08:00:19 | null | UTF-8 | Python | false | false | 110 | py | #!/usr/bin/env python
# coding: utf-8
# created by hevlhayt@foxmail.com
# Date: 2016/4/14
# Time: 20:23
#
| [
"hevlhayt@foxmail.com"
] | hevlhayt@foxmail.com |
08b920065a55018808faf3d41b34e60eed62fb80 | 53cf1ca9d6bd615280515ab0deacb43cd0521758 | /app/main.py | 1af0d5da3b9b7a8d77891096a247f001b2852c5d | [] | no_license | BaptPicxDev/gitlab-ci_cd-tuto | 33f3d7dcb3d5ab0c51d804681d00880790f5d81a | b1ce6ca85b15eca7115ba52345e026e6e9781216 | refs/heads/main | 2023-01-05T13:34:14.016749 | 2020-11-05T20:35:14 | 2020-11-05T20:35:14 | 310,262,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
#############################################
# author : Baptiste PICARD #
# date : 05/11/2020 #
# last modif : 05/11/2020 #
# contact : dev.baptpicxdev@gmail.com #
# #
# overview : Main code. #
#############################################
## Impor... | [
"picard.baptiste@laposte.net"
] | picard.baptiste@laposte.net |
164272c7c197a50b02def627df3852104c8d4b26 | 656341483ae8abe8792942d26556fdd4ff5ca7a9 | /Case/AS/Http/DocPolicyMgnt/test_AddPolicyPwdStrength201.py | ce8cafe542826cd32d85e60e6ce32d22c57ae029 | [] | no_license | GWenPeng/Apitest_framework | b57ded9be4ec896d4ba8e02e9135bc7c73d90034 | ab922c82c2454a3397ddbf4cd0771067734e1111 | refs/heads/master | 2022-11-26T05:54:47.168062 | 2020-08-06T01:45:12 | 2020-08-06T01:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import pytest
import allure
import sys
sys.path.append("../../../../")
from Common.readjson import JsonRead
from DB_connect.mysqlconnect import DB_connect
from Common.http_request import Http_client
@pytest.mark.ASP_344
@pytest.mark.high
@allure.severity('blocker') # 优先级
@allure.feature("文档域策略管控")
class Test_AddPol... | [
"gu.wenpeng@eisoo.com"
] | gu.wenpeng@eisoo.com |
fe2626a09fd3ab4d98545f44ebb333024eed4d3a | 97d78f39d39abcc54b1e71dea5338783fd1e27d6 | /userapp/forms.py | 02034118009fdcca7f83ad469c869c320e7b0c7c | [] | no_license | AmitMhamunkar/FoodMarket | 00242cd373fe98d65f32e4eacb996848c737a0be | 449528ae1070296b32d3e914a7b9b9c1d9882ddc | refs/heads/master | 2022-09-18T14:17:06.206568 | 2020-06-02T08:26:19 | 2020-06-02T08:26:19 | 268,738,764 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django import forms
from userapp.models import UserModel
class Userform(forms.ModelForm):
password=forms.CharField(widget=forms.PasswordInput)
class Meta:
model=UserModel
fields='__all__'
| [
"amitmhamunkar100@gmail.com"
] | amitmhamunkar100@gmail.com |
acaaee529a13bf693918e730895d0eb890816e9a | 11eaf88a3303188f9a50008510a2f662258ecef9 | /simplegrid/tests/test_pyproj.py | 8247c0d8fb4d05a1814bf771ce0b690e048edad5 | [] | no_license | turpinhill/simplegrid | 0694c274348c5d4705db68555809c1f05674a70a | afc3ede79839086821e107eb66e62e44ad245f2c | refs/heads/master | 2022-11-12T21:14:47.125304 | 2019-11-23T01:21:00 | 2019-11-23T01:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py |
import numpy as np
import numpy.testing as nptest
import pyproj
import unittest
class TestPyproj(unittest.TestCase):
def test_pyproj_1(self):
"""pyproj.Geod.inv and .npts validation test: N-S segment distance sums.
"""
# does the segment distance sum equal the total endpoint distance?:
... | [
"greg.moore@jpl.nasa.gov"
] | greg.moore@jpl.nasa.gov |
2677fc45376627ea6983a6097ff047b14fddf0d9 | eacd7d7e22c7f71435e1b2ce13d6c8c44eea1ca9 | /api/hpcpm/api/resources/endpoints/RuleTypes.py | 88a217bb2981da3c50f0718128abda5d95894863 | [
"MIT"
] | permissive | tomix86/hpcpm | d5af235571adcc03930a6161b950c98a1e2d2c81 | 9fa8341249deb8c5689d0f3743f9b76d46b2dd69 | refs/heads/master | 2021-03-16T10:12:44.751779 | 2017-09-07T18:13:39 | 2017-09-07T18:13:39 | 73,505,604 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from flask_restful import Resource
from flask_restful_swagger import swagger
from hpcpm.api.helpers.constants import AVAILABLE_RULE_TYPES
class RuleTypes(Resource):
@swagger.operation(
notes='This endpoint is used for returning available power management rule types',
nickname='/rule_types',
... | [
"bartekmp@outlook.com"
] | bartekmp@outlook.com |
effe7dc25476101643ced680af1b5b329b9d4308 | de27e6d143f40d5948244597b861d522a9a272f6 | /fjord/heartbeat/migrations/0009_answer_country.py | f824482bc7c9c38b3c33cf27d7df7e8ff5aaac97 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mozilla/fjord | 7f31af6dd80869ca856f8a02ff10e72c81685368 | 0fcb81e6a5edaf42c00c64faf001fc43b24e11c0 | refs/heads/master | 2023-07-03T18:20:01.651759 | 2017-01-10T20:12:33 | 2017-01-10T20:12:33 | 5,197,539 | 18 | 22 | null | 2016-08-22T14:56:11 | 2012-07-26T21:25:00 | Python | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
"""
Add country to heartbeat Answer table.
"""
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('heartbeat', '0008_auto_20150305_1442'),
]
operations = [
migrations.AddField(... | [
"willkg@mozilla.com"
] | willkg@mozilla.com |
ba62cc4936adb4692e0e0453711d19b420bee0ed | e03bce53de6f88c0e09f56e4fe11c36af0f1161f | /tests/functional/cfngin/hooks/test_awslambda/test_runner.py | d790a94e4e9319a5152fbf92403ed18fa28eec90 | [
"Apache-2.0"
] | permissive | onicagroup/runway | 20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f | 0763b06aee07d2cf3f037a49ca0cb81a048c5deb | refs/heads/master | 2023-08-30T22:35:54.113981 | 2023-08-29T14:13:35 | 2023-08-29T14:13:35 | 122,529,924 | 156 | 79 | Apache-2.0 | 2023-09-13T13:43:50 | 2018-02-22T20:12:55 | Python | UTF-8 | Python | false | false | 10,335 | py | """Test AWS Lambda hook."""
# pylint: disable=no-self-argument
# pylint: disable=redefined-outer-name,unexpected-keyword-arg,unused-argument
from __future__ import annotations
import json
import shutil
import sys
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, Generator, Optional
import boto3
im... | [
"noreply@github.com"
] | onicagroup.noreply@github.com |
7ba46c749dc56f61686678a649ead7e766863166 | a38889c0446f17cce43817b24925e3969a202509 | /jtop/gui/pinfo.py | 3e984bfced78256455f04f0183ace49f967667ed | [
"MIT"
] | permissive | sherief/jetson_stats | 46a4c108e27471a558f9b72dac2e0067dbd49767 | f8c669f5023820847d9c3ae4c8a6d3db13fec55f | refs/heads/master | 2020-06-22T04:41:17.759004 | 2019-07-15T17:51:00 | 2019-07-15T17:51:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,010 | py | # -*- coding: UTF-8 -*-
# Copyright (C) 2019, Raffaello Bonghi <raffaello@rnext.it>
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above cop... | [
"raffaello@rnext.it"
] | raffaello@rnext.it |
e83053677b773cf8fb2f40cc45a95b9496c8904b | 98e3f47c7730e5aa1546fc5a3ae1aa5d34bd55fd | /functions/sendmessage.py | 614e0281d234840b37df681d4387821d57eb59ce | [] | no_license | Philip-Nunoo/smsrequest | b68ac3748f2e216c9887004786624dea53ea8f20 | ed3e6e56675015a51adae087e32d5353b5c5bc60 | refs/heads/master | 2020-05-18T06:50:47.086437 | 2013-02-02T17:17:55 | 2013-02-02T17:17:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | #from requestPortal.models import Message#, Hospital, Patient, MessageLog
import datetime
key = "22ccfebddfe274033b29"
url = "http://bulk.mnotification.com/smsapi"
def sendMessage():
messages_object = Message.objects.filter(start_at_date = datetime.date.today())
if (messages_object):
for m... | [
"philip@Trek.(none)"
] | philip@Trek.(none) |
211af288fcd6aac7b3e766454a3c3c59daa490d5 | 13c9f25290bf455bb131e1a24467375e46001cef | /Alpha/input.py | 4fb7cce0b9073334c1e0e2ffbf07edddaa67cd62 | [] | no_license | JonesRobM/LoDiS_CC | 74ff1db563c7a3ee8f4bedefaddbce20a31c01e5 | b3900d3745121928254a0b2acbc92b1a7d9fa3f5 | refs/heads/master | 2020-12-10T18:10:49.171456 | 2020-03-10T11:42:55 | 2020-03-10T11:42:55 | 233,669,401 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | import Process
import pickle
Supported=[
'rdf', 'cna', 'adj', 'pdf', 'pdfhomo', 'agcn', 'nn',
'SimTime', 'EPot', 'ETot', 'EKin', 'EDelta', 'MeanETot', 'Temp'
]
System = {
'base_dir' : 'TestTraj/',
'movie_file_name' : 'movie.xyz',
'energy_file_name' : 'energy.out',
... | [
"noreply@github.com"
] | JonesRobM.noreply@github.com |
43fbed3229e50ebf22a3382519bb2c96007bb077 | 2d0c223226caefeca891162f04fa47a9cc4ce039 | /fabfile/__init__.py | deacab26bb21ba770797a0362a55441bb1c7afa6 | [
"MIT"
] | permissive | Halleck45/stage1 | 1ed195aa6ad9dada19ead838a20cee4ee4528357 | ddd443719a160364bde1cb6f5d0ff20c2e4aebca | refs/heads/master | 2021-01-17T22:31:13.680057 | 2014-08-09T14:11:14 | 2014-08-09T14:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,776 | py | from fabric.api import *
from time import sleep
import deploy
import service
# env.hosts = ['batcave.stage1.io', 'alpha.stage1.io', 'alom.fr']
env.roledefs = {
'web': ['batcave.stage1.io'],
'help': ['batcave.stage1.io'],
'blog': ['batcave.stage1.io'],
'router': ['alpha.stage1.io'],
'build': [
... | [
"grosfrais@gmail.com"
] | grosfrais@gmail.com |
309e77246c235fefa9e1854661928a6a02ab1d49 | fd0f1daa3a9ae9a8db894988f90767fdd9a97dde | /usbtest.py | 442087709a35cddc2eb732a8e6730daa7a846c40 | [] | no_license | handelxh/python | 28ea57e1fa5bd35e5d91148eb7cff71ce5e9680d | 3183fca68b686c794cf857d04af2c2345fb9f802 | refs/heads/master | 2016-09-05T12:39:35.462516 | 2014-09-09T02:00:35 | 2014-09-09T02:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | import usb.core
import usb.util
# find our device
dev = usb.core.find(idVendor=0x040d, idProduct=0x340a)
# # was it found?
# if dev is None:
# raise ValueError('Device not found')
# # set the active configuration. With no arguments, the first
# # configuration will be the active one
# dev.set_configuration()
# ... | [
"handelxh@163.com"
] | handelxh@163.com |
4a2670d464ccb643b28efd7bb90b6c5de24f027a | 3c037200d101bdfc3774d7ef05800fa0029f0b56 | /segmentation/Models/block.py | 2882928c195599965d5440da490f676a484d3d45 | [] | no_license | wzjialang/Semi-InstruSeg | 81a679cad4fb9a91a820d4b43f63efba02775cd5 | 5a2156eb1d5239d90ed2485a3bbc882db104d866 | refs/heads/master | 2023-03-15T20:47:07.682356 | 2020-10-09T04:28:48 | 2020-10-09T04:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | import torch
import torch.nn as nn
from torch.nn.modules.loss import _Loss
class SoftDiceLoss(_Loss):
def __init__(self, size_average=None, reduce=None, reduction='mean'):
super(SoftDiceLoss, self).__init__(size_average, reduce, reduction)
def forward(self, y_pred, y_gt):
numerator = torch.su... | [
"zixuzhao1218@gmail.com"
] | zixuzhao1218@gmail.com |
78018c0b4ab40290bfbc391b78e67bacb8a8651c | 8aced53327d2345d34fe64d76798a69593a3bc16 | /RandomPasswordGenerator.py | a536efe7f3d3380089b0d6f99ff2db1388a047fd | [] | no_license | joo7998/Python_NumberGenerator | 4b5c37b9e2358e6d10df50a57daa0f925a36fe85 | 0150fc6cb84ba60695adf50c66036af1a418b07f | refs/heads/main | 2023-08-07T04:49:29.839145 | 2021-09-21T09:02:01 | 2021-09-21T09:02:01 | 408,752,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | # 8 characters
# 2 upper, 2 lower, 2 numbers, 2 special letters
import random
# list = [1, 2, 5]
# random.shuffle(list)
# print(list)
def shuffle(string):
tempList = list(string)
random.shuffle(tempList)
return ''.join(tempList)
# print(random.randint(3, 9))
# chr : returns a str representi... | [
"noreply@github.com"
] | joo7998.noreply@github.com |
be6b292a523be3b7f2b1249bf1015b6cfcb24ed6 | 90af4fb4c23ea4ca72d0d47223abbde14662e550 | /Stark_account/mixins.py | e7839e35d6e98c7190ba7fc522b172181f9f45a7 | [] | no_license | saeedrezaghazanfari/stark_panel | 3ce0232d87da460dfcc1ec3e97e4b07f73d3b3d2 | 15a7466bfc51a30edae8c3fee6a42b28f52d8f41 | refs/heads/main | 2023-05-08T22:35:38.931495 | 2021-06-06T08:14:02 | 2021-06-06T08:14:02 | 372,149,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from django.contrib.auth.decorators import login_required, user_passes_test
# Decorators
# is_authenticated permission decorator
def authenticated_required_decorator(function=None, login_url=None):
actual_decorator = user_passes_test(
lambda u: not u.is_authenticated,
login_url=login_url,
)
... | [
"saeedreza.gh.1397@gmail.com"
] | saeedreza.gh.1397@gmail.com |
f6c28f792622e40fc67e2dfa9adebe9065bbe208 | 2da329f2893d97e40ed09ea07c8ce93c918afd8a | /Term 1/4. Introduction to TensorFlow/MINST_Training2/datasetMemoryTest.py | b67999322ede2773a3d04e4e6bbf99fc7ae4daa7 | [] | no_license | Abdilaziz/Self-Driving-NanoDegree | 4271726d30a830dbd9cf95c15346aecedac39771 | 2623fece4943181e32c6b814502dea0ffadbbfad | refs/heads/master | 2021-01-19T11:38:00.899885 | 2018-08-12T16:49:37 | 2018-08-12T16:49:37 | 82,256,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
n_input = 784 # MNIST data input (img shape: 28*28)
n_classes = 10 # MNIST total classes (0-9 digits)
# Import MNIST data
mnist = input_data.read_data_sets('/datasets/ud730/mnist', one_hot=True)
# The features are already scaled and... | [
"azizib2nd@gmail.com"
] | azizib2nd@gmail.com |
ed877d70208fb995c60c520bc27eebcce3ebbcba | dd6b960deef0c0f9c49403258020a641b3cafc69 | /rug/cli.py | c9754906f4b9210355912115ab6ec741a3f3dbb7 | [] | no_license | cou929/rug | 10506833bcda35c701bffe5acb935bcd2bb6cefb | 6b280c1572bd4c943f987257b2146f664f7d82a9 | refs/heads/master | 2021-01-22T06:58:46.766103 | 2020-04-08T15:43:07 | 2020-04-08T15:43:07 | 7,295,820 | 0 | 0 | null | 2012-12-25T09:22:58 | 2012-12-23T14:47:40 | Python | UTF-8 | Python | false | false | 2,367 | py | # -*- coding: utf-8 -*-
"""
rug.cli
CLI interface.
"""
import os
import sys
import optparse
from .articles import Articles
from .articles import ArticlesWithMeta
from .view import IndivisualPage, ArchivePage, AboutPage, RSS
def dispatch():
"""
Dispatcher.
Read stdin and command line options, then call ... | [
"cou929@gmail.com"
] | cou929@gmail.com |
c14edfee003af5a818b5ccbf447009ef28f6ca1f | a9785114ec98aca4b1a4230f7a400acadb9d7c7d | /loadpkl.py | 5924df8b7e374990e44f95cea1312e2498441002 | [] | no_license | prakharg05/Clustering-KMeans-and-Agglomerative | e44face5142f9f102916a13d7d6b48112fb4e239 | d1d2dc55efc2da772909a9699ea5d8aac8eb4188 | refs/heads/master | 2020-05-04T04:03:40.491017 | 2019-04-01T22:46:01 | 2019-04-01T22:46:01 | 178,958,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import pickle
scores=pickle.load(open("./scores.pkl","rb"))
c=0
for i in scores:
print(i,scores[i])
c+=1
if c==35:
break | [
"noreply@github.com"
] | prakharg05.noreply@github.com |
8fc0c61edc7dbd406d57b6c6026f8b0e6517aa08 | 0175db4235469cc197570e1fc1761af3d502950e | /code/env/gridworld.py | d229829c7f54d61e17db4780f9de8740735b1b8f | [] | no_license | dpstart/rl | defe9fff962b669ab9b02002b4896f367a19c03a | 514ff69ba14bf5f99cb548430fa563954ceaabfb | refs/heads/master | 2020-04-11T20:47:58.450673 | 2019-08-24T17:47:27 | 2019-08-24T17:47:27 | 162,083,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | # Code borrowed from https://github.com/dennybritz/reinforcement-learning/blob/master/lib/envs/gridworld.py
import numpy as np
import sys
from gym.envs.toy_text import discrete
UP = 0
RIGHT = 1
DOWN = 2
LEFT = 3
class GridworldEnv(discrete.DiscreteEnv):
"""
Grid World environment from Sutton's Reinforcement ... | [
"danielepaliotta96@gmail.com"
] | danielepaliotta96@gmail.com |
06ae81a4388c1262eae3644a03ca0ab1b791684a | 1a7456d2ca5d2e2db23b2e8dce7a9616a1efbab5 | /NN_for_dispatch/test_pytorch_nn_sigmoid_wsu_transfer_base.py | 5c54b1d9858be6c607f768a9f87c33e3bfe93cf0 | [] | no_license | nadiavp/NeuralNetwork | 093505e0fe4d68730632444372d09f799d410dc4 | 65be7a1e6e8a7296178b40e8ca35a55ae06b097e | refs/heads/master | 2020-03-25T19:15:36.763961 | 2019-11-12T20:42:27 | 2019-11-12T20:42:27 | 144,073,729 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,109 | py | #pytorch tests
import numpy as np
import xlrd
import torch
def train_nn_sigmoid(layers=4):
dtype = torch.float
#device = torch.device("cpu")
device = torch.device("cuda:0")
load_e = []
load_h = []
load_c = []
t_db = []
irrad = []
wb = xlrd.open_workbook('c:/Users/Nadia Panossian... | [
"nadia.panossian@wsu.edu"
] | nadia.panossian@wsu.edu |
2ca452bcbb76a5940af2d37e15ccbd301ac908f9 | 46af8b5c7d1790ee9ddef636c7428eb5f23de5e5 | /project/settings_local.py | d8b4e8f42916c8b50165d0ad17e924372de258a3 | [] | no_license | praekelt/speed-demo | f1370628ca9241ec5cb86ea76f6c615c1138fa9e | 782c9d7263bed59a7d2ab9dc5d169a7a348a277e | refs/heads/master | 2020-12-07T15:24:26.979572 | 2017-06-28T14:03:50 | 2017-06-28T14:03:50 | 95,519,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | import os
import raven
# Declare or redeclare variables here
FOOFOO = 1
# You should redefine the CACHE setting here
# Configure raven. Set "dsn" to None for your development environment. It must
# be None - anything else causes problems.
RAVEN_CONFIG = {
"dsn": None
# "dsn": "https://<key>:<secret>@sentry.i... | [
"hedleyroos@gmail.com"
] | hedleyroos@gmail.com |
3d8c9a6b8c16826dd47e2fa709ff4143b281e99e | 0bf234b5f9cda7085b98b92cf4f927f458cb82b7 | /hw/hw1/venv/bin/easy_install-3.6 | 42a154fbc5a777ac0700bf611b3898d20dc64dc9 | [] | no_license | zackmcnulty/CSE_446-Machine_Learning | 9a37ee60178d9237d502f270ecf0b8657e1ec700 | 8711ca0ffdd8e7df9d97b4b5db69bd66ac7cccf0 | refs/heads/master | 2020-05-03T20:03:08.531707 | 2019-06-13T20:13:22 | 2019-06-13T20:13:22 | 178,795,215 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | 6 | #!/Users/zackmcnulty/Desktop/CSE/446/hw/hw1/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zmcnulty@uw.edu"
] | zmcnulty@uw.edu |
a33352b695bd70175bb97b31eba91e1d62473697 | e15cbbde358b96ed0f7d2e0bf7e5e9d640251a6c | /frontend/urls.py | 1c6bdf4b0b38fb3a171572693a9c06274f5118bd | [] | no_license | jmrcastillo/djangoRest-javascript | 5fb5f7548217b6464325e2a95fe9d4c7d493243f | dfd2f45ab054a38d540c83506a6221ab023d1d27 | refs/heads/master | 2021-07-18T09:01:45.783743 | 2020-03-08T12:10:27 | 2020-03-08T12:10:27 | 245,807,881 | 0 | 0 | null | 2021-04-08T19:48:18 | 2020-03-08T12:11:38 | JavaScript | UTF-8 | Python | false | false | 249 | py | from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', views.list, name="list"),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| [
"jm.cass20@gmail.com"
] | jm.cass20@gmail.com |
d08e6121ee2290536a5b41e02083249be2e73fcf | 2ea17b7b5fe875821f05f2d148220cfe7082120f | /migrations/versions/59c170d304e0_.py | 5c39be4beaf508e801753d04c3316590d69575ae | [] | no_license | xilixjd/python_react_blog_back_end | b1c76759654847717846671906d9bd1a758cd8f7 | 6b88e8f9340d35988c948e7c9ca1dff74dcf75d6 | refs/heads/master | 2020-05-20T18:50:13.941816 | 2017-08-08T13:48:49 | 2017-08-08T13:48:49 | 88,735,190 | 19 | 1 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """empty message
Revision ID: 59c170d304e0
Revises: 390b63a723a6
Create Date: 2017-07-03 22:18:00.342518
"""
# revision identifiers, used by Alembic.
revision = '59c170d304e0'
down_revision = '390b63a723a6'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
# ##... | [
"349729220@qq.com"
] | 349729220@qq.com |
5afcc623ca168965aeb91214b9bcd6e332511aa8 | 455376ee634c6106cfbf9c82a24fc86522a94f5b | /models/BaseModelMail.py | d18fd7ffc21a2fae35a7fa7743e06dab1ea671ae | [] | no_license | dodancs/FIIT-BP-Canaries-Server | fc681f93f298473a7d3c4b8f403bb58dba8bf16f | dc3e48a6e40f210be7f82ef3b3dc01217855e6b7 | refs/heads/master | 2022-06-13T11:35:53.010541 | 2020-05-06T22:30:45 | 2020-05-06T22:30:45 | 214,129,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import peewee
import json
# Open configuration file
try:
with open('config.json', encoding='utf8') as config_file:
Config = json.load(config_file)
except:
print('Unable to open config.json!')
print('If you haven\'t created a configuration file, please use the example configuration file as a guide.'... | [
"dodancs@moow.info"
] | dodancs@moow.info |
a8eba0feb28aa882253f2324f18c0b5b36f77d7b | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_17350.py | 11db4fbe2ed5ba01f7114c7b6e2db2b35d8b6762 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | # Django Foreign Key QuerySet (join)
user_obj.student_set.all()
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
11c103e803f402c7cd6758bf438339493c44d684 | 5ed389c1f3fc175aa73478fc3dcba4101520b80b | /python/spoonacular/com/spoonacular/client/model/inline_object.py | c1d9417abc5018f9a5ae89fa133d67f82de5c73f | [
"MIT"
] | permissive | jvenlin/spoonacular-api-clients | fae17091722085017cae5d84215d3b4af09082aa | 63f955ceb2c356fefdd48ec634deb3c3e16a6ae7 | refs/heads/master | 2023-08-04T01:51:19.615572 | 2021-10-03T13:30:26 | 2021-10-03T13:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,531 | py | # coding: utf-8
"""
spoonacular API
The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural lang... | [
"davidurbansky@gmail.com"
] | davidurbansky@gmail.com |
2c30b5d149a45a1477fe25339ee8bfd87a8fa508 | 64552be25cf60634cb83ceff4d56087f7a148ba5 | /smtpbin/__main__.py | b15cbfac39caf41d06138322fa1fe9193d483a84 | [] | no_license | DisruptiveLabs/smtpbin | ccd348de8dcb8befe760cbfa1604d7394183dbed | 35acb3a56c05929f1a38349cd019cf3d20297b41 | refs/heads/master | 2021-03-16T10:13:09.405366 | 2016-09-09T23:27:17 | 2016-09-09T23:27:17 | 58,577,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | import argparse
import asyncore
import os
import uuid
from smtpbin.backend import DataBase
from .http.server import HTTPServer
from .smtp.server import SMTPServer
from .websocket.server import WebSocketServer
LISTEN_ADDR = os.environ.get('LISTEN_ADDR', '0.0.0.0')
HTTP_PORT = int(os.environ.get('HTTP_PORT', '8000'))
W... | [
"franklyn@tackitt.net"
] | franklyn@tackitt.net |
031c982fa9742c2d217e2ad4b5d9d71fa579951d | 6a7664887d6732ee44838b8cade9e675b8675f40 | /dialog.py | edead5baf1dbc6a58d9feedf0f20af14bc83657c | [] | no_license | nhatuan84/smarthome | 5a0cb6cc36bd4cf27bc7dee5120905d02981ca87 | 9a06a4bc389fef615d159912e4533447d05e4f55 | refs/heads/master | 2020-02-26T13:47:02.557395 | 2016-07-17T03:32:01 | 2016-07-17T03:32:01 | 59,874,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from Tkinter import *
#Note: if want to get return value by ref, use list as a param
class Dialog:
topic = None
ret = None
def __init__(self, parent, topic):
top = self.top = Toplevel(parent)
top.title('input value')
self.topic = topic
Label(top, text=self.topic).pack()
self.e = Entry(top, wi... | [
"noreply@github.com"
] | nhatuan84.noreply@github.com |
1d703d536cd58634814e73b82cb85c2077e52b3c | eeb84d194bc580ba13c3a909d443a8e59122041f | /serverdata/setup_server.py | ccc14011b35c8728290c6d24e72f15135ff9e35f | [
"Apache-2.0"
] | permissive | MelanX/Caelum | 15133fdcf8c3224bd6a3892dd27eae34436da573 | 5d4297889f50b31ba822857cb4c2c582949c10e1 | refs/heads/master | 2023-03-16T13:50:35.189704 | 2021-03-11T17:43:33 | 2021-03-11T17:43:33 | 346,451,201 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #!/usr/bin/env python3
import json
import os
import subprocess
import urllib.parse
from urllib.request import Request, urlopen
def downloadMods():
mods = []
with open('server.txt') as file:
for entry in file.read().split('\n'):
if not entry.strip() == '':
mods.append([x.str... | [
"info@melanx.de"
] | info@melanx.de |
606be63b920885b73c92569ba3f6c110cf29c23a | 377bf89b212a75076ed533c9e030d029170eb885 | /devel/lib/python2.7/dist-packages/rezwan_pack/msg/_MyEvent.py | 99ab9c4ce921bc735ebd1e622703327fea425734 | [] | no_license | rezwanshubh/rez2-robtech | b6552d84ed9066f708dd8f58530bb18daeef97b2 | 1bcf5a9192c5b6332e215bafcbe4db95f7a6750f | refs/heads/master | 2021-01-20T14:47:16.569917 | 2017-05-11T18:48:51 | 2017-05-11T18:48:51 | 90,658,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,695 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rezwan_pack/MyEvent.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class MyEvent(genpy.Message):
_md5sum = "2a533572c34f024512abad75ea2a34b4"
_type = "rezwan_pa... | [
"shubhbd@yahoo.com"
] | shubhbd@yahoo.com |
da7e60c923a0bead04c9bceed2b393379957799a | 82f38e3435630e9c0339ce68bd0086a16fea02c4 | /dex-net/src/dexnet/abstractstatic.py | daf799245459081374006f482e775d2cf0390b23 | [
"MIT"
] | permissive | peter0749/PointNetGPD | a9d2ad8d38ac6caf63879931a6c0f62c92b885d4 | 5e2be543057657f1faaef87e80074d392823e5df | refs/heads/master | 2020-09-24T14:40:48.139495 | 2020-05-28T13:13:42 | 2020-05-28T13:13:42 | 225,783,045 | 0 | 0 | MIT | 2019-12-04T05:01:25 | 2019-12-04T05:01:24 | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: utf-8 -*-
"""
Copyright ©2017. The Regents of the University of California (Regents). All Rights Reserved.
Permission to use, copy, modify, and distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a signed licensing agreement, is
he... | [
"lianghongzhuo@126.com"
] | lianghongzhuo@126.com |
48424c58d4841f72a346c4d91fa4d737bc3caba8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2648/60678/289889.py | 2502a253d156988e60af2cf0b3448f5e525988df | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | stringM = input()
stringS = input()
if stringM == 'whatthemomooofun' and stringS == 'moo':
print('whatthefun', end="")
if stringM == 'whatthemomooofun' and stringS == 'o':
print('whatthemmfun', end="")
if stringM == 'whatthemmfunwhatthemomooofun' and stringS == 'o':
print('whatthemmfun', end="")
else:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
896013857c56f8a33fba33190c2ac0b1ae04c62d | 4ba091b217faddd0ee053c6f5f49547a3fc2713d | /DBT/tools/show_offset.py | ae16f7d6025aa3c0500ec96cc2e189e806b92946 | [
"Apache-2.0"
] | permissive | Catchen98/SOT-Projects | 98cb90058c288596dbf516004777553e176a5250 | 352f43cd7d615fbdb08246fad9aefee03beca9e3 | refs/heads/master | 2022-12-19T00:56:43.095395 | 2020-09-17T13:30:23 | 2020-09-17T13:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,935 | py | # -*- coding: utf-8 -*-
#@Author: Lidong Yu
#@Date: 2019-12-11 16:41:28
#@Last Modified by: Lidong Yu
#@Last Modified time: 2019-12-11 16:41:28
import matplotlib.pyplot as plt
import numpy as np
import cv2
import mmcv
import matplotlib
def kernel_inv_map(vis_attr, target_point, map_h, map_w):
#-1,0,1
p... | [
"janey9503@126.com"
] | janey9503@126.com |
7a273b69ade85c025a308827da97ee147e75a0af | b26f62e1ae52df9e34c4ce27dc0f617416518e23 | /12-python-level-one/Part9_Functions_Exercises.py | fa8e0bc6622df3e7cfeea4082a548c026b1c314e | [] | no_license | Rutrle/udemy-django | 2ba5b39f69fc526c27d074818ff372c91f3b879b | 53502d8d87f9da907771bc044538844cf18f6895 | refs/heads/master | 2023-04-17T13:05:20.539842 | 2021-05-03T23:25:51 | 2021-05-03T23:25:51 | 339,551,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,332 | py | #####################################
#### PART 9: FUNCTION EXERCISES #####
#####################################
# Complete the tasks below by writing functions! Keep in mind, these can be
# really tough, its all about breaking the problem down into smaller, logical
# steps. If you get stuck, don't feel bad about ha... | [
"rutrle@seznam.cz"
] | rutrle@seznam.cz |
00d0463174ebb9bd3d0a46757234bdd844e44449 | 531ffe58ab1c63ed5922a4eaada71addca7ea8b6 | /WGAN_PINNs_Burgers/custom_layers/__init__.py | 0fa09705de299cd847287435a7b46704e8b1d1b9 | [] | no_license | yihang-gao/WGAN_PINNs | 7d68b3ae4c5d36e61d2a7da16d197c0c794c913b | 0ec4cfc061f7deb713d492655dc39deb08912daa | refs/heads/main | 2023-08-14T14:57:35.897867 | 2021-10-04T05:13:41 | 2021-10-04T05:13:41 | 391,309,696 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | from .bjorck_orthonormalize import bjorck_orthonormalize
| [
"noreply@github.com"
] | yihang-gao.noreply@github.com |
dbb75131e72c5c93512d4f11ded1c62172e744c7 | 0cd81e84ac066391f943a32c1a007aba4e670c0d | /subroutines/plot_gnomad_v_exome.py | 901ff43363e5215d29e37482d7aeedafacc71bc6 | [] | no_license | sarah-n-wright/UKBB-Exome-QC | d02036ac1e6f497a1fb49b5f458effcd86e11aad | 98b83b07b7c0d37f5a2ec7f1abd80fb395e3f794 | refs/heads/main | 2023-06-20T19:32:02.598126 | 2021-07-19T23:44:13 | 2021-07-19T23:44:13 | 387,558,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
outdir=str(sys.argv[1])
df = pd.read_csv(outdir+"/combined_data.txt", sep="\s+", header=None)
df.columns = ["CHR", "Gene", "UKBB", "gnomAD"]
plt.figure()
fig=sns.jointplot(y="gnomAD", x="UKBB", data=df, s=1, xlim=(-40, 3000), ylim=(... | [
"sarahwright474@gmail.com"
] | sarahwright474@gmail.com |
ba28e5188ef6f71a5dc3327b881ed6dea86b8314 | 8a21df340880276501cca60eae84d65d0b1ed807 | /c2cwsgiutils_test_print.py | 75bed059229586a039a58fc5bf80b06aaabc449f | [
"BSD-2-Clause-Views"
] | permissive | arnaud-morvan/c2cwsgiutils | 038f73cd6e3de0b0d88c89c12b1ae50f45a6bed6 | aa06b77b247bd8969b88225ee3ea109886aefeac | refs/heads/master | 2020-06-17T05:08:24.800772 | 2019-07-08T07:45:02 | 2019-07-08T07:45:02 | 195,807,504 | 0 | 0 | NOASSERTION | 2019-07-08T12:28:19 | 2019-07-08T12:28:19 | null | UTF-8 | Python | false | false | 1,603 | py | #!/usr/bin/env python3
"""
Test a MapfishPrint server.
"""
import c2cwsgiutils.setup_process # noqa # pylint: disable=unused-import
import argparse
import logging
import pprint
from c2cwsgiutils.acceptance.print import PrintConnection
LOG = logging.getLogger("c2cwsgiutils_test_print")
def _parse_args():
pars... | [
"patrick.valsecchi@camptocamp.com"
] | patrick.valsecchi@camptocamp.com |
0639d1ea3232f1ae2b4fe762575e6f81ce7ef187 | 567bf02488f07d4783d59f8064c980acc0d012b9 | /three_room/dash/migrations/0001_initial.py | c7f19f4f181b0b37ff88bfee5dc76965e114e345 | [
"MIT"
] | permissive | mfrasquet/IBM_Hackathon | 37516e25a8bd5203ddc73460a1286e8eadd6662c | a84710bfc5c4f7079b960d722050e8fd954660c1 | refs/heads/master | 2020-04-07T14:54:37.666167 | 2018-11-23T00:58:07 | 2018-11-23T00:58:07 | 158,465,794 | 0 | 1 | MIT | 2018-11-22T16:48:05 | 2018-11-20T23:51:03 | Python | UTF-8 | Python | false | false | 1,102 | py | # Generated by Django 2.0.5 on 2018-11-20 21:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"mfrasquetherraiz@gmail.com"
] | mfrasquetherraiz@gmail.com |
1762d5eb405a9283b28d8b9064e2eee1d484595e | 89ad7ee7bc30b57a0f66ec37ee525cac35b68677 | /bundle-workflow/src/manifests/build_manifest.py | 3962bcc25e9607e41cff231a7d07bb868065c7f4 | [
"Apache-2.0"
] | permissive | nknize/opensearch-build | 6760c1140a6706f994aaf208d4461fe2ab07f16b | 68e19a4c1c1005475ac070d583cdf0859f7807e0 | refs/heads/main | 2023-07-31T20:19:21.131817 | 2021-09-13T21:13:53 | 2021-09-13T21:13:53 | 406,205,917 | 0 | 0 | Apache-2.0 | 2021-09-14T03:05:13 | 2021-09-14T03:05:12 | null | UTF-8 | Python | false | false | 2,633 | py | # SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
from manifests.manifest import Manifest
"""
A BuildManifest is an immutable view of the outputs from a build step
The manifest... | [
"noreply@github.com"
] | nknize.noreply@github.com |
010a26f7bfb1b1f3463bd00b8d0ae188891fe3be | a717fc6da91824ead3198b84b1c565d5ff7efa23 | /farm/picker/migrations/0001_initial.py | 24026428043e1410120f8bb419464508c869760c | [] | no_license | IvankaCaron/projekt3 | 4a2e7a91ec2207b241f99858e0764abb1579b9a3 | 159e3f66313fe694b752c03e3864e27a2e75883d | refs/heads/master | 2021-09-05T02:39:30.698936 | 2018-01-23T17:55:15 | 2018-01-23T17:55:15 | 116,667,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # Generated by Django 2.0 on 2017-12-12 10:44
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Spot',
fields=[
... | [
"ivanka.caron@gmail.com"
] | ivanka.caron@gmail.com |
1b42f5efa62b619564371bcfd3bdcddf49e465b4 | 5b86f575e6e858cbcc098422fa9cb8db85e46e17 | /ihu/main/forms.py | 5c179a6b9c170b136632deb13be106821fb6dad5 | [] | no_license | Minard-NG/finalyear | 3902320fae7c9e786d6dd8327b10dc98a1828a64 | f3481ebccdf8e72d91a9fefb6a953fe4a105cc1f | refs/heads/master | 2022-10-08T21:51:26.229241 | 2020-06-08T20:00:56 | 2020-06-08T20:00:56 | 270,780,591 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SelectField, TextAreaField
from wtforms.validators import DataRequired, Length, Email
| [
"michael4sure20@gmail.com"
] | michael4sure20@gmail.com |
15871357f103326ade70ff1294562689ef8c5375 | 38dc0477ba472146f4fabe109826198705144d03 | /fastai/layer_optimizer.py | 1791659fe6e1b601fc2ebaac8a96eab91c43d304 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | dana-kelley/DeOldify | ad54a3a44e4a8d90f00ef3d7ee20e56b14683f47 | fa186f251b8a7dbc120d8a5901fdd0d065c60eec | refs/heads/master | 2020-05-17T04:52:54.795176 | 2019-12-11T05:53:01 | 2019-12-11T05:53:01 | 183,519,547 | 68 | 10 | MIT | 2020-02-18T15:44:14 | 2019-04-25T22:41:00 | Python | UTF-8 | Python | false | false | 3,313 | py | from .imports import *
from .torch_imports import *
from .core import *
def opt_params(parm, lr, wd):
return {'params': chain_params(parm), 'lr':lr, 'weight_decay':wd}
class LayerOptimizer():
def __init__(self, opt_fn, layer_groups, lrs, wds=None):
if not isinstance(layer_groups, (list,tuple)): layer_... | [
"jsa169@gmail.com"
] | jsa169@gmail.com |
609fcd0adf68d5900ff33d517a1b36069f8c7cae | 0405ab9b91d3eacf6de40de2b7cdeb8589487f77 | /movie.py | 1f5f10c327627949ca82d0321afbb8496513c729 | [] | no_license | miaomiaogamer/assignment-2---movies-2-miaomiaogamer-master | 13188e9b6a5a7df9b7913daa4bb0d307b2e3b577 | f076733cc9d05465eabef465fa6a4935243d7e56 | refs/heads/master | 2023-02-26T05:23:37.876591 | 2021-01-23T10:51:56 | 2021-01-23T10:51:56 | 332,184,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | """..."""
# TODO: Create your Movie class in this file
class Movie:
"""creat a Movie class"""
def __init__(self, title='', year=0, category='', is_watched=False):
self.title = title
self.category = category
self.year = year
self.is_watched = is_watched
def __str__(self):... | [
"344013468@qq.com"
] | 344013468@qq.com |
f5e5d39f21c2d2fa02284f4c70aec47a57b0fd5c | 7cc5b4b583028a777eb3617774cdb78ddf017c73 | /game.py | 0b4a14ef3bcb4652251e953219a6ba327d6c0819 | [] | no_license | b0bsky/Tic-Tac-Toe-AI | 7fd517e202d1e489c718cd1b910a17961e1ed235 | add423efb0cc43aa15a00c6b2d682a4dbc5c0ea1 | refs/heads/master | 2020-05-01T03:21:49.172390 | 2019-03-23T04:17:27 | 2019-03-23T04:17:27 | 177,243,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | # TIC TAC TOE GAME
# Board variables
BOARD_WIDTH = 3
BOARD_HEIGHT = 3
# Variables
current_player = 0
is_running = True
# Function that creates a new empty 3 x 3 board
def new_board():
board = []
# Loop that makes the board filling each tile with None Type
for row in range(0, BOARD_WIDTH):
... | [
"noreply@github.com"
] | b0bsky.noreply@github.com |
137d4b277d94a0dcf6824e72ce219e46b22536b7 | 44413721791e00e5e0d728d2063cce9d072680bc | /ate/__init__.py | d1e7384f8b2b29c065f18f9b536d3bfbe07a1f8f | [] | no_license | andriyka/term-extraction-and-ontology-learning | 5174ba52db93bc3dd22b75a41c998c5e23a3bcd5 | 2fa478f1f6f28949d461331f6e8348f86bd344e1 | refs/heads/master | 2020-03-21T19:05:07.755413 | 2018-07-09T16:46:58 | 2018-07-09T16:46:58 | 138,929,875 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,309 | py | import PyPDF2
import nltk
import textract
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
from nltk.stem import WordNetLemmatizer
import numpy as np
from os import listdir
from os.path import isdir
from os.path import isfile
from os.path import join
import pandas as pd
import random
import re
import... | [
"ankus@ciklum.com"
] | ankus@ciklum.com |
e0e7a32b985f115ea142a2f9d8d27e73ded0f0a2 | 306522802c5d5341647da6cdd2813ba68218334b | /Python3/120_Triangle.py | b5fa97cb0f88f1ca8d37c0a07c2f2c4558739659 | [] | no_license | Darion888/LeetCode | 9521bafedc61ea0eb268ce882efa639706dc230d | 78cba3fdca21097b567b10e0e0b9020e852ba87b | refs/heads/master | 2020-06-18T12:00:19.752769 | 2019-08-05T03:48:50 | 2019-08-05T03:48:50 | 196,297,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | # Time: O(sum(N))
# Space: O(1)
# N: 三角形每一行宽度
"""
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path sum from top to botto... | [
"noreply@github.com"
] | Darion888.noreply@github.com |
9a749daa1bbdbdc8e0f1d1bcbd849c2e4b405074 | 8cfcebd3c5961472e0edba46bf0b7b3230ce8c55 | /src/python/complex_linear_system.py | 7dc22cad6beeb902740f9623e088f3d655cca90b | [] | no_license | caiuamelo/helmholtz-solver | 1f8648f7bc5b3907a80d337d11e9b56ba8b4b936 | 309cfcfae7aed10234f594a81fbbd5449eca4d05 | refs/heads/master | 2022-09-09T15:05:02.435935 | 2020-05-31T22:36:27 | 2020-05-31T22:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | from scipy.sparse.coo import coo_matrix
import globals as g
import numpy as np
import _fwi_ls
def _build_extended_A(A_row, A_col, A_data, n_rows, n_cols):
big_A_coo_i = [None] * (4 * len(A_row))
big_A_coo_j = [None] * (4 * len(A_row))
big_A_coo_data = [None] * (4 * len(A_row))
for idx, (i, j, data) in... | [
"tarcisio.fischer.cco@gmail.com"
] | tarcisio.fischer.cco@gmail.com |
98203090674573513d470db819e8b86ba0d02a67 | 4bd5667e90a2fef582bfb1537d6755b5b4a9e0f8 | /Python_Files/Immune_Experiment_Run.py | 00de8dee6ca1c38ca7ba22a26a59a54261ff3aeb | [] | no_license | JMMaroulis/MVP2 | 483ebcb8b24f31af6a94c0a3e5e9ae2d7d618dba | 3196816c45137fe89bd0e70143b564504744eeef | refs/heads/master | 2021-07-05T01:26:37.139206 | 2017-09-30T14:07:13 | 2017-09-30T14:07:13 | 105,374,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,979 | py | import Methods
import Measurements
import numpy
import random
import sys
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import gc
import cProfile
import time
import copy
gc.disable()
# SIRS
# S = 0
# I = 1
# R = 2
# IMMUNE = 3
# p1 = p(S -> I)
# p2 = p(I -> R)
# p3 = p(R -> S)
width = int(sy... | [
"jamesmmaroulis@hotmail.com"
] | jamesmmaroulis@hotmail.com |
5bf84538a7388fbd2a9cc1ddcea0626ca3650cca | 75c3a5e1ec4b2e5b4c2fc876b1515e15d077e20d | /Preprocessing part/11.02.1.py | 0696ded4b18042091c43c9a02141e1e402d9451a | [] | no_license | William0111/Speech-separation | 1a2b2c2c0115ee7e054999e1c79dadaafb710413 | c60b37fd978624ac13a7ec55a303644d559e51ca | refs/heads/master | 2020-05-01T08:51:14.331098 | 2019-05-10T20:39:32 | 2019-05-10T20:39:32 | 177,387,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | # CNN first try
from __future__ import print_function
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
def compute_accuracy(v_xs, v_ys):
global prediction
y_pre = sess.run(prediction, feed_dict={xs: v_xs, keep_pro... | [
"44120449+William0111@users.noreply.github.com"
] | 44120449+William0111@users.noreply.github.com |
59070bc627dbf76d9d3ed807c63fd1a985c43649 | a0d02fbdc04c0b4cd24622b9eeddefe9bcacdda3 | /src/add_member.py | ed498d25acc37494f5c65eafdd96477fa6df8de1 | [] | no_license | jiayu520/lg5-selenium2 | 950227d4f80c9b94d992cbc9253d3f67e8e33443 | 46b2984d895d2720ae651f64d05d0ac70ee03a5a | refs/heads/master | 2023-02-23T12:45:45.321072 | 2021-01-22T02:51:28 | 2021-01-22T02:51:28 | 331,817,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from selenium.webdriver.common.by import By
from src.base_page import BasePage
from src.contact import Contact
class AddMember(BasePage):
def add_member(self):
'''输入成员信息,点击保存'''
self.find(By.ID,"username").send_keys('皮4')
self.find(By.ID,"memberAdd_acctid").send_keys('71899973')
s... | [
"jiayu520000@outtlook.com"
] | jiayu520000@outtlook.com |
cac02f47d1ecfbce494b5b3cccba8632db18a064 | 802770deb5a98e8e644e9aaf5a6fabc851e6eae1 | /quiz_test/migrations/0018_auto_20180704_1623.py | 3d78f9b8dbeb5d59fae13e7a420f414c4ff58225 | [] | no_license | Subhash1998/quiz | 1eaf7fe0338eee092f6a5af52d57718c61738930 | da4c11c4f9271200c63970ab1f90c240f5a10598 | refs/heads/master | 2022-12-12T17:34:04.450562 | 2018-07-12T19:41:52 | 2018-07-12T19:41:52 | 140,757,317 | 0 | 0 | null | 2021-06-10T20:33:39 | 2018-07-12T19:39:52 | Python | UTF-8 | Python | false | false | 802 | py | # Generated by Django 2.0.5 on 2018-07-04 16:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('quiz_test', '0017_category_test'),
]
operations = [
migrations.RenameField(
model_name='test',
old_name='question_amount',
... | [
"you@example.com"
] | you@example.com |
69ed49a41a2c6a4900604a92d2418f53858f8de8 | f555d440fefc1c15653e28ce8e5b53b4c6ece4d3 | /genericdelegates.py | 5c3d9bfeb8841d0d002ebf0ac4ca12281945a59b | [] | no_license | amithreddy/ground-control-tool | 6f56f819760da7b70d43e0eaea0354453dd31b63 | b8fe11b643da6495aab6f770c6fe5a978d781e52 | refs/heads/master | 2021-01-11T17:53:58.509019 | 2017-01-24T00:42:33 | 2017-01-24T00:42:33 | 79,864,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,434 | py | #!/usr/bin/env python
# Copyright (c) 2007-8 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 2 of the License, or
# version 3 of the Lice... | [
"amithmreddy@gmail.com"
] | amithmreddy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.