blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M โ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
917de6faab233c63f9cc3b1ae92a0882556f9dfb | 702a7fbeb26f2ae2713472f63ce22a09c13ad357 | /๋ ๊ตฌ๋ถ.py | c6c935e46fd98fa8b1b2f2e55203646e6ea7e1c7 | [] | no_license | harruhi/all_project | e3d453f667bd6db0599cb9a951eacacac64c9183 | 4214653dcd9e02325a0521e39d06134d496e5fd7 | refs/heads/master | 2020-06-08T13:29:34.924516 | 2019-08-10T00:37:00 | 2019-08-10T00:37:00 | 193,235,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | print("์๊ณ ์ถ์ ์์์ ์ด๋ฆ์ ์ ์ด์ฃผ์ธ์.(๋ฐ์ด์ฐ๊ธฐ ์ ์ธ)")
rock_1[ํ๊ฐ์] = 'ํ์ฑ์'
rock_1[์ฌ๋ก์] = 'ํ์ฑ์'
rock_1[๋ฐ๋ ค์] = 'ํ์ฑ์'
rock_1[๊ฐ๋์] = 'ํ์ฑ์'
rock_1[์ ๋ฌธ์] = 'ํ์ฑ์'
rock_1[์์ฐ์] = 'ํ์ฑ์'
rock_1[ํ๋ฌด์] = 'ํ์ฑ์'
rock_1[ํ์์] = 'ํ์ฑ์'
rock_1[ํ๋ก์] = 'ํ์ฑ์'
rock_1[์ฌ๋ก๋ฐ์] = 'ํ์ฑ์'
rock_1[์์๋ฐ์] = 'ํ์ฑ์'
rock_2[๋๋ฆฌ์] = '๋ณ์ฑ์'
rock_2[๊ท์] = '๋ณ์ฑ์'
rock_2[์ฒ๋งค์] = '๋ณ์ฑ์'
... | [
"51483322+harruhi@users.noreply.github.com"
] | 51483322+harruhi@users.noreply.github.com |
33f386fa4ae0cf685ab62da52fc7c8b759b4cd0d | 48c65330f577d11cedb29fd970aee35788ab72c6 | /model_flfact_tpv__eg_cupones.py | 6f28705bd6ef39f7f6e6d8c6c9eafc90d2a08dcc | [] | no_license | yeboyebo/elganso_sync | 309ecbaba3127493abe001cd1704cc7098234baa | 66f033a0e27a05c1fc6704ec6ba2bd474d204b7e | refs/heads/master | 2023-07-22T00:17:48.201252 | 2023-07-19T07:48:40 | 2023-07-19T07:48:40 | 173,096,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # @class_declaration interna_eg_cupones #
import importlib
from YBUTILS.viewREST import helpers
from models.flfact_tpv import models as modelos
class interna_eg_cupones(modelos.mtd_eg_cupones, helpers.MixinConAcciones):
pass
class Meta:
proxy = True
# @class_declaration elganso_sync_eg_cupones #
... | [
"jesus.yeboyebo@gmail.com"
] | jesus.yeboyebo@gmail.com |
ecb296ed9808a44065674a2f4bd5bd1e6be1c2cd | 540901158b47cc8df43e45ba12de068782c5b5d1 | /SnP500/manipulate_data.py | 2af60ee8508218ca3ff063fa33e74c4aac7443ca | [
"MIT"
] | permissive | tillaczel/LSTM-GRU-RF-predicting-SP500 | e2f73703ed2be126e74b9d47693a4a2587a4686c | 165bda67dbd613181a52e73d014996a6035762fc | refs/heads/master | 2020-06-28T22:09:13.049625 | 2019-12-22T22:46:09 | 2019-12-22T22:46:09 | 200,353,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,338 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import random
def resample_data(df,frequency):
df['Date'] = pd.to_datetime(df['Date'])
df = (df.set_index('Date')
.resample(frequency).first()
.reset_index()
.reindex(columns=df.columns)).dropna()
ret... | [
"tillaczel@gmail.com"
] | tillaczel@gmail.com |
322a37cf0131836f7a7093c2ddcb5b15b9851a03 | a50e73d880fcea987cd2ddd4cc059a67cd7e22e0 | /day06/ๆฑๅบ้ด็ๆดๆฐๅๅฝๆฐ็.py | 400f1072c91905899a2f52dd43cd1e51e98234c1 | [] | no_license | Icecarry/learn | 31bed60d5b61201d30bfbaaf520e4e0146e10863 | 2af301b92c9143def9b4c278024d6d2d6e21f0b9 | refs/heads/master | 2021-04-06T07:45:11.938995 | 2018-03-13T06:40:54 | 2018-03-13T06:40:54 | 124,759,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # ็ผๅไธๆฎตไปฃ็ ๏ผๆฑ1-100ไน้ดๆๆๆดๆฐ็ๅ
# def sum1(m, n):
# return summer
# sum1(1, 50)
# ็จๆท่พๅ
ฅ
num1 = int(input("่ฏท่พๅ
ฅ่ตทๅงๆฐ๏ผ"))
num2 = int(input("่ฏท่พๅ
ฅ็ปๆ็ๆฐ๏ผ"))
# print("%d - %d ไน้ด็ๆๆๆดๆฐๅไธบ๏ผ" % (num1, num2), sum1(num1, num2))
# ่ฟ็จๅพช็ฏ็ดฏๅ
summer = 0
for x in range(num2 + 1):
if x >= num1:
summer += x
else:
continue
pri... | [
"tyj1035@outlook.com"
] | tyj1035@outlook.com |
24eadc9c9274419885fc044dff980c707a513460 | e2ce6b9b619377f5bd24ba28d85b193b6d2cbf40 | /project-euler/problem11.py | fbe8d8e86219b2c2f0e4adf1bd2133517e46f1cc | [] | no_license | ajuna/project-euler | 19db1e23efdcb4952f47bd4c54466c896a0cb7d8 | 61753881c63aab4c9ca866e9965e36ba16e24040 | refs/heads/master | 2020-06-04T01:00:39.455377 | 2013-03-07T18:59:03 | 2013-03-07T18:59:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #what is the first term in the Fibonacci sequence to contain 1000 digits?
a=1
b=1
c=0
i=0
s=0
count=0
z=2
while(count<1):
c=a+b
a=b
b=c
z=z+1
if len(str(c))==1000:
print"the term is",z
count=count+1
| [
"ajunasm@gmail.com"
] | ajunasm@gmail.com |
7c340ba01e3ae99a97e42accd11fd7d1995366a7 | 441d396e469d4d856b96439b37d2e79b93cc4279 | /hw4/app.py | c5eb22577e45dfee165e819ec14f4ee9951e54b5 | [] | no_license | kindacool/homework | ef0ff2d055073d94af9feb4b18302e12d55fd909 | 53688fd0f0140611d45eaf3386e02ff2c92433ff | refs/heads/master | 2023-01-06T12:48:20.860603 | 2020-11-02T08:49:30 | 2020-11-02T08:49:30 | 306,026,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from flask import Flask, render_template, jsonify, request
app = Flask(__name__)
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.dbhomework
## HTML ํ๋ฉด ๋ณด๊ธฐ
@app.route('/')
def hw4():
return render_template('index.html')
# ์ฃผ๋ฌธํ๊ธฐ(POST) API
@app.route('/order', methods=['POST']... | [
"50879666+kindacool@users.noreply.github.com"
] | 50879666+kindacool@users.noreply.github.com |
3b546ef703e547a90e960bccb42a87147a452ede | 3e5dba309ca4e3a1652df06d6799948f77224790 | /app.py | fac9f85fcea37fd0102fa3d356dbd4e78f5045d5 | [
"Apache-2.0"
] | permissive | amitjain9589/VEHICLE-NUMBER-PLATE-DETECTION | d6d2aff8f50e42a08a6093976ec3979cf9343fb0 | 9116e0adf6cd1d3c5cf4d957cd5bc7eaecaf4af9 | refs/heads/master | 2022-12-08T18:54:07.001612 | 2020-08-30T07:54:58 | 2020-08-30T07:54:58 | 291,422,628 | 0 | 0 | Apache-2.0 | 2020-08-30T07:33:35 | 2020-08-30T07:33:34 | null | UTF-8 | Python | false | false | 11,253 | py | # importing the necessary dependencies
from flask import Flask, render_template, request,send_file
from flask_cors import CORS,cross_origin
import numpy as np
import os
import tensorflow as tf
import easyocr as ocr
import cv2
from object_detection.utils import label_map_util
os.putenv('LANG', 'en_US.UTF-8')
... | [
"akshaykadam771@gmail.com"
] | akshaykadam771@gmail.com |
55d758c86721b7858d56921aa5add18d6ae86097 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Python/Core/Lib/email/_parseaddr.py | 853096ece7f0c40a593e0fe0820a7588fca4ed1f | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,230 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: _parseaddr.py
"""Email address parsing code.
Lifted directly from rfc822.py. This should eventually be rewritten.
"""
__all__ = [
'mktime_tz',
'p... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
828971b2073ded7e95799747a89c47f2ff1cfd24 | 116795c0cceb4348e60b9841baf81d4dcfffc34c | /scripts/code/district.py | 081d8a6ec9bb4d3ccaa2cd0892159a71ae6496d4 | [] | no_license | miriamcmcg1/ECAC | e0f1afd238edbcc926340e02e069fe237f9f711e | 706316b4a955d2f27ec6718a8568f8a7fa5c27fb | refs/heads/master | 2020-04-02T06:39:01.226453 | 2018-12-13T23:54:41 | 2018-12-13T23:54:41 | 154,161,377 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | class DistrictRaw:
def __init__(self, district_id, name, region, no_of_inhabitants, no_of_municipalities_with_inhabitants_lt_499, no_of_municipalities_with_inhabitants_gt_500_lt_1999, no_of_municipalities_with_inhabitants_gt2000_lt_9999, no_of_municipalities_with_inhabitants_gt_10000, no_of_cities, ratio_of_urban_i... | [
"lazaroosta@hotmail.com"
] | lazaroosta@hotmail.com |
5afb5e3a9b863cbe8b939d92d25cb0e51b0ed0b7 | 18301e13a7e17562e69222a5dca8607d32c2fd3d | /myfile.py | 50ce23bc10f46a4e9ec4fa04d771ab95421c965b | [] | no_license | ErnieMcFalls/JenkinsTest | 18bdacfe721ffb9c397147b0b9b4ccf0e6732460 | 9ce3fe6e75b250ed6072a8f02d1b53f92ec90dcc | refs/heads/main | 2023-04-13T01:40:12.860202 | 2021-05-03T08:05:03 | 2021-05-03T08:05:03 | 362,081,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | print("Hello World")
print("Cheese and Crackers for everyone!")
| [
"noreply@github.com"
] | noreply@github.com |
0978da57d0ba4dc9c9e4ad9473e300e1a92ead00 | fb9feb5e99dc0e648a9c8898039989e92e15101b | /data_extract.py | ecefe2dd533f323f61f19adcfe44a7e9ae1df809 | [] | no_license | tarun0409/generative-neural-network-based-image-compression | 9b4a92ebff0068c2400c5840662008524de51627 | 9d20fd546d17c55f318024290ee2fea64df3c999 | refs/heads/master | 2020-04-30T00:53:27.550444 | 2019-04-29T18:18:21 | 2019-04-29T18:18:21 | 176,513,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | import pickle
import os
import numpy as npy
from PIL import Image
from tensorflow.examples.tutorials.mnist import input_data
import cv2
folders = ['airplane','automobile','flowers_resized','mnist']
data = None
for folder_name in folders:
if folder_name == 'mnist':
data = input_data.read_data_sets("mnist", one_hot... | [
"tarun.mohandas@gmail.com"
] | tarun.mohandas@gmail.com |
7c750795de9d3f219415b026d20c979797d19970 | 43a090cc46fee798743ffc95fbca86cecb69bfb5 | /scrapers/medians_cron.py | 9897ad469c8670be3b53529b1b7b010112519ba6 | [] | no_license | jasonLaster/CoursePicker | 29df5fb5d1a150df3b32bc4bea21dc0317a70125 | 5b8d93506c791b071c503e984c4bb2c6606cbab0 | refs/heads/master | 2021-01-17T22:02:19.006538 | 2011-05-02T19:41:00 | 2011-05-02T19:41:00 | 1,692,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!/usr/bin/env python
#
# Imports median json information to database
#
import couchdb
import medians
COUCHDB_USER = 'mediancrawler'
COUCHDB_PASS = 'veQu6moh'
records = medians.load()
# Create database
couch = couchdb.Server()
if 'medians' in couch:
del couch['medians']
db = couch.create('medians')
# Populat... | [
"typppo@gmail.com"
] | typppo@gmail.com |
419c2a5f336d46136d581b7847fb23c29400c2e3 | fe62d139012bdde8431b1b9c2b36b2a1491c6ad6 | /temps1series0213plot.py | 011f2b595599cef85f2ad0777247c5330ad45954 | [] | no_license | Gattocrucco/locs12 | 923467db0f49b3bf9e45c6a45c548751c972b130 | fa99528fadc2d8e745486e427319ec67527cf866 | refs/heads/master | 2023-03-28T21:40:22.385179 | 2021-04-08T21:52:11 | 2021-04-08T21:52:11 | 356,057,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | import numpy as np
from matplotlib import pyplot as plt
from scipy import interpolate
import textbox
inphotons = 2 # in [3, 7, 10, 15, 20, 30, 40]
idcr = 1 # in [25, 250] cps/pdm
rate = 100 # cps
table = np.load('temps1series0213.npy')
figkw = dict(clear=True, sharex=True, figsize=[9, 7])
figs = []
axs = []
for wna... | [
"info@giacomopetrillo.com"
] | info@giacomopetrillo.com |
ad07a8e1e282bc95d40c4919f5deaba664fce5f2 | 77b7cd4ed377c716bfbb7eac412b4afbfea93aad | /page_classifier/__init__.py | c9b528923b18c4d7fd98ec9015f68cf0962f24a1 | [] | no_license | GuilhermeSCP/page-recognizer-iart | fb3852a91d29369231ce0171e7465a346ebb175a | aecda2803bef9e0d26915030d42b54281cb08f97 | refs/heads/master | 2021-01-10T17:40:11.997219 | 2015-10-24T14:55:20 | 2015-10-24T14:55:20 | 44,870,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | import optparse
import os
import mimetypes
from page_classifier import dataset, imagetools, ui
def classify(dataset_fname, image_fname):
c = dataset.Classifier(dataset_fname)
c.build()
print c.classify_one(imagetools.load(image_fname))
def generate(dataset_fname, image_dir):
data = dataset.Classifier("page-block... | [
"luisgui2007@gmail.com"
] | luisgui2007@gmail.com |
9646849781d203875f1ced09766100a950689cca | 166a6b4b1f8bac6e2a6fbcbe64b2c004b78e5538 | /MCMC.py | f0c45c85e041ccb3d997bddcc9339119324b5a0f | [] | no_license | WuShichao/gravitational-waves | dac672e8c15c7bdfd4ed4bef2dbbc337936799bb | 51072763316fda01aa5f4eefb386970e635e07ab | refs/heads/master | 2021-06-19T14:18:54.763335 | 2017-07-20T15:46:20 | 2017-07-20T15:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | # This script runs, non-interactively, the MCMC simulation
# also presented in the accompanything iPython notebook. It
# was used to generate the data available for loading in.
import numpy as np
import pymc
import math
import pandas as pd
np.random.seed(0) # For reproducibility
#def simple_signal(t, offset, A, f, df... | [
"marcotompitak@gmail.com"
] | marcotompitak@gmail.com |
965e2b37c890e43e67d37b33ba8795c63b0066c2 | 36f91527c1ff1ed42bf8b7bfaa9fb535f8eacd5e | /problems_from_nowcoder/hate_six.py | a30f760dfec744f202d5c39cd2c40b9f1aeedca4 | [] | no_license | FreeA7/AlgorithmProblems | 9cc9639224cbf7dddea757b73084a78c68d65a5f | 9bf8c2dd4a3d0380c56c67edfbccec262c2b15ca | refs/heads/master | 2022-11-16T21:30:58.232031 | 2020-07-16T15:27:21 | 2020-07-16T15:27:21 | 247,884,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 30 14:02:02 2020
@author: FreeA7
https://www.nowcoder.com/practice/05dab66e4e814e21a9a3496fbddb69f1
ไผๆๅจ็ฅ๏ผ็็ไธๅ6่ฟไธชๆฐๅญ๏ผๅ ไธบ็็ๅ66ๅ้ณ็ธ่ฟ
ไปฅไปๆณ็ฅ้๏ผไธ่ถ
่ฟnไฝๅ่ฟๅถๆฐไธญๆๅฐๆฐๅญไธๅซๆ่ฟ6๏ผไป1ๅง็ฎ็๏ผ
่พๅ
ฅๅ
ๅซๆญฃๆดๆฐn1<=n<20
็คบไพ1
่พๅ
ฅ
1
่พๅบ
10
่ฏดๆ
1,2,3,4,5,6,7,8,9,10 ่ฟๅๆฐๅญ้ฝๆปก่ถณๆก
็คบไพ2
่พๅ
ฅ
... | [
"987320967@qq.com"
] | 987320967@qq.com |
87ab68ad4f53266913c451ae4e3913018abb2b9c | 88c1f9ccb62e91d6b0574bcde1043921bdeb0126 | /lib_common/src/d1_common/type_conversions.py | 04d9b2723e4710e9fdf897485b15fcc9c73a449b | [
"Apache-2.0"
] | permissive | jevans97utk/d1_python | 83b8de8780287c655779844f367b9189413da074 | 3ac4d4f3ca052d3e8641a6a329cab526c8ddcb0d | refs/heads/master | 2020-05-21T01:16:50.677816 | 2019-04-22T16:09:44 | 2019-04-22T16:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,001 | py | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | [
"git@dahlsys.com"
] | git@dahlsys.com |
4a72bda7c332488f972b7536a685f1b2e2e9527e | d1cdc130480a18093dd8157fd9d887ad24ea56eb | /flask/bin/explode.py | 22f710be6a9bf54a74e1ed91bf1aaa6863b91888 | [] | no_license | prestonprice57/ForegroundWebApp | da2ffe57cf66993c1909d047f4658c5e53f2d248 | 66292efdb39883dafcbd86188ac11be4f6658487 | refs/heads/master | 2021-01-22T06:12:14.589942 | 2017-02-12T18:44:56 | 2017-02-12T18:44:56 | 81,746,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | #!/Users/prestonprice/Documents/ForegroundWebApp/flask/bin/python2.7
#
# The Python Imaging Library
# $Id$
#
# split an animation into a number of frame files
#
from __future__ import print_function
from PIL import Image
import os
import sys
class Interval(object):
def __init__(self, interval="0"):
se... | [
"pwprice57@gmail.com"
] | pwprice57@gmail.com |
75f3732ed49599b8afce33253f72a03e49169cc4 | 2e226ec3c269b790fca0751b9d88233dcdb61002 | /confirm_2.py | faa7289abe03d74f8a3f1f2cba2f51b3a7352cc4 | [] | no_license | zopcuk/TKG | 52e67a4185c0bbbfaec805f7356526355145c4c9 | 6e1ebdaba1c24dc845193ea79dd8752cfe5a8f17 | refs/heads/master | 2022-12-05T16:01:00.896150 | 2020-08-17T12:32:58 | 2020-08-17T12:32:58 | 276,630,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | from time import sleep
from os import walk
import serial
import json
import threading
from pyModbusTCP.client import ModbusClient
import fingerprintlib
SERVER_HOST = "192.168.1.5"
SERVER_PORT = 502
c = ModbusClient()
c.host(SERVER_HOST)
c.port(SERVER_PORT)
hid = {4: 'a', 5: 'b', 6: 'c', 7: 'd', 8: 'e', 9: 'f', 10: 'g'... | [
"f.zopck@gmail.com"
] | f.zopck@gmail.com |
fb180d2be409ce93dc97e95d6859e4c7449b1efe | a772cd9938b10bde209008617eac32c72641646a | /bookStore/accounts/middleware.py | 295638e95a94a828f3f7869b5443442ce3043158 | [] | no_license | somaiabahaa93/Django-BookStore | 3dd5432a85321d083c0b307310b7e48aee881a88 | 0c9fb77cd2a41160765036b63df29b9148af6a7e | refs/heads/master | 2023-04-10T13:42:36.590491 | 2021-04-24T23:50:47 | 2021-04-24T23:50:47 | 360,660,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from django.http import HttpResponseForbidden
class SimpleMiddleware:
def __init__(self, get_response):
self.get_response = get_response
# One-time configuration and initialization.
def __call__(self, request):
# Code to be executed for each request before
# the view (and later... | [
"somaianaggar93@gmail.com"
] | somaianaggar93@gmail.com |
bf7677c8f4286cc924043f01762d9e77cbe09937 | dacfe469fb4162ca0b78ec2a13cdcb644a58ced1 | /star2.py | f8854a73f94a13949b1fe7f7d43f8ccc4c19417c | [] | no_license | yujmiao-cd/yujma | 6b4abfe8f87981c1532918ffcdd06ae6b43a94dd | d8a55c9d1dcc96817fb1393e808d8866a34c26b5 | refs/heads/master | 2020-12-27T02:07:24.085641 | 2020-03-21T15:24:00 | 2020-03-21T15:24:00 | 237,729,516 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
* 1 1 2n-1 3
*** 2 3 2
***** 3 5 1
******* 4 7 0
*
***
*****
*******
*********
***********
*************
*************... | [
"root@angleyu.com"
] | root@angleyu.com |
4ac44ea7572c0f7f3ccbbb100cda5acbab08db23 | 70e75a0b0ca56fd8318606cc093e13fe3d700227 | /Programmers/2020_์นด์นด์ค_์๋ฐ๊ธฐ_๊ณต์ฑ/src/3.์๋ฌผ์ ์์ด์ .py | ac042fd66fc62a187dd6c8ce877832ab61ec41db | [] | no_license | hanameee/Algorithm | ba4632797ff8ea999f37d2578f32c3c00da02b0f | bf1203544e1b44d2bbf929fd729e263278260313 | refs/heads/master | 2023-02-04T19:22:44.845863 | 2023-01-27T17:05:26 | 2023-01-27T17:05:26 | 220,486,014 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from copy import deepcopy
def is_solved(graph, m, n):
for i in range(m-1, m-1+n):
for j in range(m-1, m-1+n):
if graph[i][j] != 1:
return False
return True
def rotate(key):
new_key = [[0]*len(key[0]) for _ in range(len(key[0]))]
for i in range(len(key)):
f... | [
"hanameee@gmail.com"
] | hanameee@gmail.com |
988d2257743e2021d7cad29c0152380cd0c564e8 | 7cab99b157e2b26a79b91b20cd8c89bc6eaa4009 | /nevergrad/functions/pyomo/core.py | 8296a52904dcd772d77dc3a0b1c2d2cc92c2e840 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mehrdad-shokri/nevergrad | 536a9f2d49f2b76f9abc9cdbead475e8f0645999 | 7b68b00c158bf60544bc45997560edf733fb5812 | refs/heads/master | 2021-07-05T11:13:03.262172 | 2020-08-21T19:20:21 | 2020-08-21T19:20:21 | 162,785,603 | 0 | 0 | MIT | 2020-08-20T10:23:46 | 2018-12-22T05:53:32 | Python | UTF-8 | Python | false | false | 7,957 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from functools import partial
import numpy as np
import pyomo.environ as pyomo
import nevergrad.common.typing as tp
from n... | [
"noreply@github.com"
] | noreply@github.com |
2bb89f735b7789b3fe3c0e3995cc2bbf484329da | 986a8c617725cb707dd21c5bd1487dd9d46adaa0 | /mutation/example_2.py | a9d60729aa1d8151f26eee7697bd93132e37abce | [] | no_license | tohfaakib/python_playground | 6ee497cc7011be798e68f74ce331c24bd7a4edab | 13f2b2e179e2c4f4198ac99965c53e1ddcf436e0 | refs/heads/master | 2020-09-16T09:46:24.231034 | 2019-12-24T05:06:24 | 2019-12-24T05:06:24 | 223,732,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | def add_to(num, target=[]):
target.append(num)
return target
print(add_to(1))
# output: [1]
print(add_to(2))
# output: [1, 2]
print(add_to(3))
# output: [1, 2, 3]
def add_to_2(num, target=None):
if target is None:
target = []
target.append(num)
return target
print(add_to_2(1))
# output... | [
"tohfaakib@my.smccd.edu"
] | tohfaakib@my.smccd.edu |
6a6d916c8e47840a9877f3d779d680da13921aa6 | a66ab94dc7e9a86f702174eb64d3a278d452e893 | /edit.py | 27344ba562587bcfce311814fb17a7f08a6d1db6 | [] | no_license | SamridhiPathak/python-programs | a91a392cbf8db882ce3c01cd081f0e883920992a | 96d599ac273ee0b02123ae0e9320db0f34de3dd7 | refs/heads/master | 2023-04-13T14:57:09.595757 | 2021-04-16T14:48:03 | 2021-04-16T14:48:03 | 358,631,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py | import sqlite
from tkinter import *
from tkinter import messagebox
class DB:
def __init__(self):
self.con=sqlite3.connect("books.db")
self.cursor=self.con.cursor()
self.con.execute("CREATE TABLE IF NOT EXISTS kitab(id INTEGER PRIMARY KEY,title TEXT,isbn INTEGER)")
self.con.c... | [
"samridhipathak5@gmail.com"
] | samridhipathak5@gmail.com |
441d4bbdaace79910f156d70a551c14308bf299b | bd9d600d028643067fa83a76c861ce5ee3e8456f | /venv/bin/sqlformat | 711bcd4c17afa46001321b7391c0028534dfc301 | [] | no_license | Baktybek0312/DjangoNews | 74cca4b59e494d9a0d2f66e7de52217bdf9de672 | fa11c513b048b2e11b9da5fbeb04475171a60727 | refs/heads/main | 2023-06-21T17:34:47.909761 | 2021-07-07T13:25:27 | 2021-07-07T13:25:27 | 378,978,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/tenthent/DjnagoNews/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kayratsagynbekov@gmail.com"
] | kayratsagynbekov@gmail.com | |
e2f19d1e3a15d19705248fffe9a5f27c5b2d5d95 | 02643b8c40f7e21d1cf45693107d93e63c0a823f | /Queue.py | 8031d443e629c39ed67d21f65f7c188fc21b193e | [] | no_license | Minjae4835/stacks-queues-template | 22296c196bdbb5092868a07de4fe44b38ec4a655 | b5b6003cdcd518a9786a615f4a06a105dbe6b077 | refs/heads/master | 2023-03-09T00:20:52.902614 | 2021-02-26T20:59:47 | 2021-02-26T20:59:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | # QUEUE IMPLEMENTATION
# DO NOT MODIFY
class Queue(object):
def __init__(self, list=None):
if list is None:
list = []
self.queue = list
def get_list(self):
return self.queue
def size(self):
return len(self.queue)
def front(self):
if self.is_empty()... | [
"emhill@drew.edu"
] | emhill@drew.edu |
0a986a18f032e5637525127a21e4de2be015ea00 | a5d48afa2d1c830a018adff027da4e544cb5be85 | /ghadoopreplication.py | 44df57662fd4140c6bfb2e994228161fef389127 | [] | no_license | goiri/greenhadoop | 876963a41497b6994dbb8fb12e19cbe8210e35d9 | 02f5243be7b2a19a4b083dee81b983bfd48ca9af | refs/heads/master | 2021-01-18T14:38:30.856195 | 2013-02-15T18:14:13 | 2013-02-15T18:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,192 | py | #!/usr/bin/env python2.5
"""
GreenHadoop makes Hadoop aware of solar energy availability.
http://www.research.rutgers.edu/~goiri/
Copyright (C) 2012 Inigo Goiri, Rutgers University
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | [
"elgoiri@gmail.com"
] | elgoiri@gmail.com |
8af58098a16f7c4b58e3049f703029d17be1afe1 | c475cd8531a94ffae69cc92371d41531dbbddb6c | /Projects/bullet3-2.89/examples/pybullet/gym/pybullet_data/laikago/laikago.py | 149c67714cd0441b6c31e290b2f2dca76dd6b712 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Zlib"
] | permissive | WolfireGames/overgrowth | 72d3dd29cbd7254337265c29f8de3e5c32400114 | 594a2a4f9da0855304ee8cd5335d042f8e954ce1 | refs/heads/main | 2023-08-15T19:36:56.156578 | 2023-05-17T08:17:53 | 2023-05-17T08:20:36 | 467,448,492 | 2,264 | 245 | Apache-2.0 | 2023-05-09T07:29:58 | 2022-03-08T09:38:54 | C++ | UTF-8 | Python | false | false | 3,056 | py | import pybullet as p
import time
p.connect(p.GUI)
plane = p.loadURDF("plane.urdf")
p.setGravity(0,0,-9.8)
p.setTimeStep(1./500)
#p.setDefaultContactERP(0)
#urdfFlags = p.URDF_USE_SELF_COLLISION+p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS
urdfFlags = p.URDF_USE_SELF_COLLISION
quadruped = p.loadURDF("laikago_toes.urd... | [
"max@autious.net"
] | max@autious.net |
1aa3293f0f6dade194eb63b0104f6ef1b168dc27 | 654f400751dfb180a937e0f18f6b722119a5b4f1 | /tests/unitario/zend_django/parametros/test_parametro_models.py | 8756743f0a08311b89c4a2e539506ed56101ebbb | [] | no_license | imagilex/tereapps | fae8bcb18ad4276f09a6ef6887d0c685c7a5522a | 51d4da8dab1d184cb7dcfe144ac8d2405a179028 | refs/heads/main | 2023-07-04T12:19:32.943411 | 2021-08-10T19:41:00 | 2021-08-10T19:41:00 | 343,847,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,310 | py | import pytest
from django.contrib.auth.models import User
from django.test import TestCase
from zend_django.models import ParametroSistema
from zend_django.models import ParametroUsuario
from zend_django.models import ParametroUsuarioValor
from zend_django.parametros_models import PARAM_TYPES
from zend_django.paramet... | [
"maths.unam@gmail.com"
] | maths.unam@gmail.com |
6aa0ae760fd80683ba9f8903f0892e7279ce20ec | f29e7445896792d4cede986563b1790eeb8e37de | /src/examples/tutorial/ascent_intro/python/ascent_extract_example4.py | f017aca5f7cebe3ee2586969378b2a4480c38463 | [
"BSD-3-Clause"
] | permissive | dpugmire2/ascent | c4f2aa68f3702e8b8580fa78ed40d846e8227440 | a9cfa757646d576189c06353db935ebb9c25812a | refs/heads/develop | 2023-06-07T16:00:30.318301 | 2021-05-24T16:33:14 | 2021-05-24T16:33:14 | 372,871,078 | 0 | 0 | NOASSERTION | 2021-06-23T12:01:42 | 2021-06-01T15:06:47 | null | UTF-8 | Python | false | false | 3,686 | py | ###############################################################################
# Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC.
#
# Produced at the Lawrence Livermore National Laboratory
#
# LLNL-CODE-716457
#
# All rights reserved.
#
# This file is part of Ascent.
#
# For details, see: http://asc... | [
"noreply@github.com"
] | noreply@github.com |
fcf5d11475484ccb07d2b5da69f96977f1da8e28 | b2072bfb1db1742f1ea7918ee7974b0dadb5dba6 | /src/Main.py | 3c33b71ad5f7f98122915c7903af88db7450b86c | [] | no_license | Ashwin1421/Network-Topology-Design---Alternate | 962e5791448210c6965f824d1dd6fbc793cfabb2 | 45f63435d8d9f16b1c451bfd531bc8788d27eca0 | refs/heads/master | 2021-01-01T20:19:56.021807 | 2017-07-30T20:36:46 | 2017-07-30T20:36:46 | 98,816,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,974 | py | from sys import argv
from math import sqrt, pow, sin, cos, radians
from time import localtime, strftime, time
from decimal import getcontext, Decimal
import networkx as nx, numpy as np
from matplotlib import pyplot as plt, pylab
class SolutionOne:
def __init__(self, N, d):
self.N = int(N)
self.dia... | [
"ashwin.joshi12@live.com"
] | ashwin.joshi12@live.com |
a1684729e68412351cbde34f69804fa3ea2ea20d | 50be66fb32a6a0a7ac2575ff801bfa3dbe229f7f | /tutorial/frmTUT4Online.py | 0cf0c0c2852f500e6b80e1f08f8076f8043566d6 | [] | no_license | Neurobotics/PyCorder | dab6005e191709248017f85d07d5cb6618b5c744 | cac419156ce556a224c5bfed65b61247340c1cc1 | refs/heads/main | 2023-06-09T23:34:09.850604 | 2023-06-06T11:44:46 | 2023-06-06T11:44:46 | 650,094,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,420 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'frmTUT4Online.ui'
#
# Created: Tue Feb 01 09:09:18 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_frmTUT4Online(object):
def setupUi(self,... | [
"a.belokopytov@neurobotics.ru"
] | a.belokopytov@neurobotics.ru |
931b28badc8e29c492e27998419342b19c1db54c | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch032/wiColorJ/Sob_k05_s001_EroM/pyr_Tcrop255_p60_j15/pyr_1s/L5/step09_1side_L5.py | 7219559e641a143505af65d8a2b9b3627b574ddb | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,182 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
e7d96c96a9aa6704fe23c365d72bc02676eb1dce | 72ec891c80858f8f95b1aad82027582cbb3d4a2f | /VeteriTec/calculadora/views.py | 031b7e4df8121234ec1181e3df030d9e1db08173 | [] | no_license | MauricioFurlan/Pi | ef9e28ce3021c609c44218b6f1b0ed46a8ea5130 | a74c01ad4176aa7834208d419a7c4a4f788f81cc | refs/heads/master | 2022-02-21T01:53:30.263625 | 2019-09-15T18:58:14 | 2019-09-15T18:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from django.shortcuts import render,redirect,get_object_or_404
from django.contrib.auth.decorators import login_required
from django.contrib.auth import logout
def calculadora(request):
return render(request, 'calculadora.html')
| [
"mauricio.furlan@hotmail.com"
] | mauricio.furlan@hotmail.com |
8396262accaa63d21c51eb76e62d5666af8de9c1 | bcd2f0725750a3a5ceec53d3ceb548010063da67 | /portfolio/settings.py | 761dbd23facea964502c9c92551f143d6648fc67 | [] | no_license | Rajwrita/Finalportfolio | ff16c6ec9e482987c17e3b8d7694b690dc4ee048 | d751a874b4632250c83c2c8f48ae4d309a429520 | refs/heads/master | 2021-01-05T06:02:43.488932 | 2020-02-17T14:16:24 | 2020-02-17T14:16:24 | 240,907,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | """
Django settings for portfolio project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"rajwritanath@gmail.com"
] | rajwritanath@gmail.com |
b2d95645d9364714bc8c5cf443fd169f1bf6aae7 | e7ca4fbd0e5ebb4ba84b5f1d2175a07668c02142 | /monitor.py | 099f67dc2e2f871fd29fcc13efe5914db8f35009 | [] | no_license | rlankenau/PiTimeLapse | 9acde21e4374d81d2df3952fb34519a26e6c6623 | a5b452bfc9782659a461843f3bb4fb1310f6e9e1 | refs/heads/master | 2021-01-10T05:14:00.880587 | 2015-06-23T14:45:38 | 2015-06-23T14:45:38 | 36,256,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python
import sys
import syslog
import RPi.GPIO as GPIO
import time
import picamera
import subprocess
started = False
running = True
run=0
frame=0
syslog.openlog("rpi-photo-monitor")
FRAMES_PER_HOUR = 4
try:
cam = picamera.PiCamera()
cam.resolution = (2592,1944)
cam.led = False
cam.vflip = True
... | [
"rlankenau@gmail.com"
] | rlankenau@gmail.com |
41b53f41856037ea284a52956201769f356fc171 | b1921588f03aa0bde7e4a9d70abaedcec94aeb7f | /liida.py | e7e686b3fed286a2c250eb68e81026ec9ccb46d8 | [] | no_license | JohannSaavaste/matrx | c19585c188fdc9742581a8d8ec986287dad0cde1 | 57c1f8da05994b45363621a0a1cbad4d2a3a7988 | refs/heads/main | 2023-05-14T12:59:24.539545 | 2020-12-16T20:49:29 | 2020-12-16T20:49:29 | 306,325,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | def liida(m1, m2):
if len(m1)!=len(m2) or len(m1[0])!=len(m2[0]):
return "Maatrikseid ei saa liita"
else:
summa=[]
for x in range(len(m1)):
rida=[]
for y in range(len(m1[0])):
arv=float(m1[x][y])+float(m2[x][y])
if arv%1==0... | [
"noreply@github.com"
] | noreply@github.com |
f4f308a62c0ffea508f9dc60f6e87e5ad8622ba1 | 05366626523703570014a10a3d170b6ced852ae2 | /main/urls.py | 65d2698491b11a920f0113a19533bc9e4f4f2c44 | [] | no_license | j-ollivier/cvligne | 8065c456be925ed84ba9ab28b200777f0975eaee | dc6379f57c7dd4a80fb3d699cf0fe5c83f9fd3dc | refs/heads/master | 2020-12-24T10:32:31.846911 | 2016-11-11T15:06:41 | 2016-11-11T15:06:41 | 73,153,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.CV, name='CV'),
url(r'^cv/', views.CV, name='CV'),
url(r'^projets/', views.Projets, name='Projets'),
url(r'^focus/(?P<project_uid>\d+)', views.ProjetFocus, name='focus'),
]
| [
"voxclam.indes@gmail.com"
] | voxclam.indes@gmail.com |
6e1abf43770036fca65015608bdcd3515273aa32 | 53efc8c9bcede3bf34ccef141ff11c02475b6276 | /mmdet/models/anchor_heads/anchor_head.py | ed7ab7553cfa692e4f8e5b84b8861b21794b47fe | [] | no_license | shiontao/SBLNet | 3096b7db84dc91427d5c0fe37090ea30342a30fd | 36aa302671efda1e5bcde5781e4146209f464c13 | refs/heads/master | 2022-03-12T00:47:40.504946 | 2019-11-14T07:19:59 | 2019-11-14T07:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,788 | py | from __future__ import division
import numpy as np
import torch
import torch.nn as nn
from mmcv.cnn import normal_init
from mmdet.core import (AnchorGenerator, anchor_target, delta2bbox, force_fp32,
multi_apply, multiclass_nms)
from ..builder import build_loss
from ..registry import ... | [
"yanhongchang@sensetime.com"
] | yanhongchang@sensetime.com |
cc47cf7d57fa133086e9fd19950f7804b7feb362 | 2f2d2ceb7eb79e1d441ed278a92ea484dee8501e | /analysis/python/scattering/gb_scatt_fit.py | a4edccd2010cf300912f2ac406c7cc461027e8bc | [] | no_license | rtreharne/SZO | b20943b1afaa10f0e4fc032a1f2955eda4fd54b5 | 2fb71f85cd3c19f46782c528d7357a1ae5dc49e5 | refs/heads/master | 2021-01-10T04:28:13.662690 | 2015-12-17T10:16:28 | 2015-12-17T10:16:28 | 48,166,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | #! /usr/bin/env python
from numpy import *
from pylab import *
from math import *
from pylab import *
from matplotlib.widgets import Slider
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.mlab as mlab
import tkFileDialog
import numpy as np
import nvsmob
import nelmin
from matplotlib.font_m... | [
"R.Treharne@liverpool.ac.uk"
] | R.Treharne@liverpool.ac.uk |
a55eb2498c338eae709672405c5607d332a40235 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/whitenoise/middleware.py | f359321a7b53c64e2d2620204bde7381490358d6 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 1,545 | py | from __future__ import absolute_import
from django.http import FileResponse
from whitenoise.django import DjangoWhiteNoise
class WhiteNoiseMiddleware(DjangoWhiteNoise):
"""
Wrap DjangoWhiteNoise to allow it to function as Django middleware, rather
than WSGI middleware
This functions as ... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
d1246c947c64668df345ab775ba635069af8759c | 60e8b8652618c4ea8ea07bdc1122ecb9dae7c63b | /shelves/migrations/0001_initial.py | bfb40bd37b7c26e273f4d69a7ac5b62dc2f58caf | [] | no_license | W1ckedD/book_reveiw_django_rest | 4a836582f6d3ff3dc6470baef0d434e8e0066c3c | af7b5b9359123ff6bb39bd177c89857234d82db3 | refs/heads/master | 2023-07-03T01:50:36.378256 | 2021-08-02T06:38:32 | 2021-08-02T06:38:32 | 389,914,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # Generated by Django 3.2.5 on 2021-07-26 06:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
('books', '0001_initial'),
]
operations = [
migrations... | [
"alirezachoobineh@ymail.com"
] | alirezachoobineh@ymail.com |
f6f6dc3868ac366d10910389c7e2c49c8457362e | a8466c7d434e9858aaafd332f810fe872e1fd61a | /max_and_min_number/test_max_and_min.py | 11815259a698d82365a46c3464cf898116b82557 | [] | no_license | nelmandela/day3 | 8a121bc1c3f8776930032a701f419e1469cffa18 | 2f4cae5303d377e8eaaa78fcb5f522f24acfbfad | refs/heads/master | 2020-09-11T09:43:31.017014 | 2017-06-15T20:46:00 | 2017-06-15T20:46:00 | 94,453,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | import unittest
from max_and_min_number import find_max_min
class MaxMinTest(unittest.TestCase):
"""docstring for MaxMinTest"""
def test_find_max_min_four(self):
self.assertListEqual([1, 4],
find_max_min([1, 2, 3, 4]),
msg='should return [1,4] f... | [
"nelsonmandela784@gmail.com"
] | nelsonmandela784@gmail.com |
cbf3d41f42f279aa5e5c174f6e3e9b128a4c313a | a1fd7be215a4660665c7dbdb2d1f27fbfba03205 | /extension.py | abf2607ef1a5703f45b55ef3d364a2db70e44516 | [] | no_license | codingXiang/AutoEncoder-for-MNIST | c9af4eb558c90f003ee0b809929ed4ce421543f9 | 625fcfbf00422bcef88ce29e157ef9e46f2533a2 | refs/heads/master | 2021-05-12T13:37:53.586586 | 2018-01-10T09:34:40 | 2018-01-10T09:34:40 | 116,936,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | import numpy as np
from sklearn.metrics import mean_squared_error, accuracy_score
import tensorflow as tf
from keras import backend as K
class SaveData(object):
@staticmethod
def save_npy(filename, data):
filename = filename + ".npy"
np.save(filename, data)
@staticmethod
def load_npy(fi... | [
"codingxiang@smail.nchu.edu.tw"
] | codingxiang@smail.nchu.edu.tw |
fc593f18e687cb291d60be67c2b8038adda0ff0a | c3c7398ec14865ea34c7f03aa5e012ddb19f0d5b | /app/models.py | e35cb5a4cf60d86793de1766edc457b72c9f70fa | [] | no_license | mzm5466/blog | 0e022f0ce85a0079cb72ffd9f472c7684f94d9fb | 13625fe7028a0df11a30d7de32751e34d681de00 | refs/heads/master | 2021-01-23T16:51:58.296591 | 2018-11-17T06:05:50 | 2018-11-17T06:05:50 | 102,748,039 | 0 | 0 | null | 2018-11-12T23:28:57 | 2017-09-07T14:36:32 | JavaScript | UTF-8 | Python | false | false | 1,318 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from DjangoUeditor.models import UEditorField
from django.core.urlresolvers import reverse
KIND_CHOICES=(
('python','python'),
('c++','c++'),
('java','java'),
('javascript','javascript'),
('html','ht... | [
"you@example.com"
] | you@example.com |
6ab2f8fd468ab7625e250d1df16426e4a8c6ed2d | 6389798d99e2b40a7ee0bb70f6a915aab943bf2e | /Part1/ๅ่็ญๆก/Project5/utils.py | 6cd4ec75ce0c50db28a4ade4a8e4c4e6a6557358 | [] | no_license | awake020/LA-beginner | c7c16c2588e338613f109603dbde96c8a6b33d41 | 5df10307af0b311bdc3b3c8caaa98e46d3db5b7a | refs/heads/main | 2023-07-24T02:23:38.086481 | 2021-09-04T08:08:59 | 2021-09-04T08:08:59 | 398,184,475 | 1 | 0 | null | 2021-09-02T14:58:46 | 2021-08-20T06:55:49 | null | UTF-8 | Python | false | false | 4,737 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CS224N 2018-19: Homework 5
nmt.py: NMT Model
Pencheng Yin <pcyin@cs.cmu.edu>
Sahil Chopra <schopra8@stanford.edu>
"""
import math
from typing import List
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def pad... | [
"noreply@github.com"
] | noreply@github.com |
b113374c074f9ff48b5efb71f0783554bc365763 | 3dd23bd87205ccb425709f3ec9dea6341425526d | /examples/texture_font.py | 9b5c4485c97860269b20fc0031f5afa8e653cd47 | [
"BSD-3-Clause"
] | permissive | titusz/freetype-py | ff05faef474534c24f20eaf0f53c9ce091c8eef0 | 72ac4c442251bc2b0d5617c5703eb48d3348e804 | refs/heads/master | 2021-01-18T08:26:04.215075 | 2012-05-21T14:59:29 | 2012-05-21T14:59:29 | 2,360,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,752 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
#
# FreeType high-level python API - Copyright 2011 Nicolas P. Rougier
# Distributed under the terms of the new BSD license.
#
# ---------------------------------------------------------------... | [
"david.daniel.cox@gmail.com"
] | david.daniel.cox@gmail.com |
f701316853c7f5200870fe88c19b2b2cad229c26 | c16382aa27085ae93be441e8f1a4947b88060af7 | /roles/supybot/files/plugin.py | 97fa3a54163d72cbc149366ad67159e7ab1ec3e7 | [] | no_license | lu-chi/fedora-infra-ansible | 81db8ceef6d15a73f79da2388d2eb3db466e6c3d | 66c7e2d8a18d8764a749a03e64eff7d18e6ef180 | refs/heads/master | 2020-12-28T22:45:42.825938 | 2014-09-23T08:55:26 | 2014-09-23T08:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,883 | py | # -*- coding: utf-8 -*-
###
# Copyright (c) 2007, Mike McGrath
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# ... | [
"kevin@scrye.com"
] | kevin@scrye.com |
6e993db147db5751f50233fc20288d75a6e436f8 | 36f01862bd843adbd67ff09660dfbd4d727ca852 | /tournament/models.py | 6091c7d4446109f864e2e8e449fd9b309ee061a4 | [] | no_license | stabbitystyle/tournamenttracker | 6079319d312c4db10c92eec71c7a1076510d505a | cd8ab96d6b3c404c7f72dd57877ff1a3b4bfdfa9 | refs/heads/master | 2020-05-15T14:17:44.487765 | 2019-04-20T01:41:41 | 2019-04-20T01:41:41 | 182,330,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,936 | py | from django.db import models
from datetime import datetime
from django.contrib.auth.models import User
from django.forms import ModelForm
from django import forms
# Create your models here.
class Tournament(models.Model):
""" Contains data about the overall tournament.
Associates the tournament with an own... | [
"stabbitystyle@gmail.com"
] | stabbitystyle@gmail.com |
16da551419f3613cbc07d62b78be4bba40cf08a6 | ce821528bd5f0158922aeb734d22db43b6334325 | /src/common/JudgeCase.py | 0c492a8d4daad6d5fe26187cd10d553074585202 | [] | no_license | master-walker/MobileAutoTest | d6b6e3f23c95ed3daa61ece43690da344ac5fc30 | dbe5dbfb88fdd71b549b95fbfc28e83bffe45af9 | refs/heads/master | 2021-07-05T21:27:09.280566 | 2017-09-28T13:10:14 | 2017-09-28T13:10:14 | 102,943,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #!/usr/bin/env python
#coding=utf-8
'''
Created on 2017๏ฟฝ๏ฟฝ3๏ฟฝ๏ฟฝ20๏ฟฝ๏ฟฝ
@author: Administrator
'''
#class JudgeCase():
def judgeInsertDataInList(insertData,list):
if insertData in list:
return True
else:
return False
def judgeEqual(insertData,data):
if insertData==data:
return True
els... | [
"1158620887@qq.com"
] | 1158620887@qq.com |
00bad4fab2c045772a95d54a753afeb470f5ac9d | 642d65c4606d2ea56be7a2544e33471b1ad7e300 | /backend/admingym/gyms/migrations/0003_auto_20200909_0508.py | 10fd538c1e9b6fd2668077d80094be203d83e7ee | [
"MIT"
] | permissive | Manuelhra/AdminGym | dec2889c32cb4412f39a54333c0ed59ef2c5679c | caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13 | refs/heads/master | 2022-12-11T10:06:17.513032 | 2020-09-14T17:28:00 | 2020-09-14T17:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.0 on 2020-09-09 05:08
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gyms', '0002_auto_20200903_1750'),
]
operations = [
migrations.AlterField(
model_name='gym',
... | [
"manuel.rivera1788@gmail.com"
] | manuel.rivera1788@gmail.com |
89022e29f8c2f470a383ec6c23b9562393bd56e0 | 44afd3b34399ee33218e157e1aab385254b92779 | /cloth_tools.py | 8b1bf749753e85633f7b3cda0dbb86c2f616cfee | [] | no_license | mattkushner/maya | 9daa1832e3955a900a5678c31d900b975c13ba57 | 624e8f4aaa9724159aa37e5059cee0b98a2be30c | refs/heads/master | 2021-08-17T00:11:47.917118 | 2020-04-17T14:32:19 | 2020-04-17T14:32:19 | 162,177,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,954 | py | """cloth_tools.py"""
import maya.cmds as mc
def disconnect_cache():
"""Delete clothSetup blendshape nodes if they exist."""
clothSetup = [f for f in mc.ls(type='blendShape') if mc.attributeQuery('clothSetup', exists=True, node=f)]
if clothSetup:
mc.delete(clothSetup)
def connect_cache(task='fx... | [
"noreply@github.com"
] | noreply@github.com |
4ca6068b46b9c2a75d60c5b221560e240b6d8acd | afd62c63fd6e56d21cd3b11b3770c7ba1431ce12 | /inter/contacts/views.py | f2c21261c9b849d38540423a96a48265dd155fd0 | [] | no_license | erisanolasheni/contact-monitor | 29ce944cb0bb5f19c8317dec40109f9b37925ee3 | 837afde7c8df8b4ffb2554f9b8c26cb8e20360e9 | refs/heads/master | 2020-05-14T17:15:47.974913 | 2019-04-17T12:37:44 | 2019-04-17T12:37:44 | 181,888,555 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | from django.shortcuts import render, redirect
from .models import Contact
import json
from django.contrib import messages
# Create your views here.
# view for homepage
def indexHome(request):
return render(request, 'contacts/index.html', {
})
# view for contacts lists
def indexContacts(request):
context =... | [
"chibuzordick94@gmail.com"
] | chibuzordick94@gmail.com |
21f24ea6ddca2a3fb1ffdbb15429ef55979c5e7d | 439f3bbc4b9a84b27052b2d1d5ea166bca2e1498 | /setup.py | dff003eddf7047204a0ae39f94ca37da91cabe76 | [
"Apache-2.0"
] | permissive | zeroyou/AndroidViewClient | dc52c821b11e96decf6066b670165c154101bc81 | 06cefca324d3ab255e4367990a5d1389b0a39d3d | refs/heads/master | 2022-12-25T00:57:29.432351 | 2020-09-20T00:41:47 | 2020-09-20T00:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='androidviewclient',
version='20.0.0b5',
description='''AndroidViewClient is a 100% pure python library and tools
that simplifies test script creation providing higher level
operations and the ability of obtaining... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
048da83cda17a4a360c09c39781995cf2d3af27f | 3691259d4be62b60d8d52f38b36d6a24e5fd4536 | /docs/examples/compute/cloudsigma/create_vlan_subscription.py | a29e2394267225a7fe1141d0ed6edefb84091bdc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chenjiang1985/libcloud | f385fac278777c2bbfedaf440d353c9ad9eb5c69 | 587212da626dfe0e2936737108bcc49d666cf4b4 | refs/heads/master | 2021-07-16T14:29:21.821490 | 2019-11-27T02:20:43 | 2019-11-27T02:20:43 | 222,844,781 | 1 | 2 | Apache-2.0 | 2020-10-27T22:06:36 | 2019-11-20T03:41:31 | Python | UTF-8 | Python | false | false | 376 | py | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
cls = get_driver(Provider.CLOUDSIGMA)
driver = cls('username', 'password', region='zrh', api_version='2.0')
subscription = driver.ex_create_subscription(amount=1, period='30 days',
... | [
"jacob.cj@alibaba-inc.com"
] | jacob.cj@alibaba-inc.com |
f4244c8b4db1fc620d1fccab8ccc5ed40b341eee | 7c69c27a1c6ff2a1552900f4c1001281f4447233 | /sword_offer_2/offer12.py | 83ff381c2abaa152acc92d51628de8f3f16f2c37 | [] | no_license | Hamiltonxx/pyalgorithms | 894a0228928819601a816c472689ce96a11e1d25 | 92284f6105c5deb7f843ff299ee3ceb6382cf879 | refs/heads/master | 2023-09-04T13:01:46.465661 | 2023-09-02T05:50:23 | 2023-09-02T05:50:23 | 231,999,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # board = [["A","B","C","E"],
# ["S","F","C","S"],
# ["A","D","E","E"]]
# word = "ABCCED"
# word = "ABCB"
board = [["C","A","A"],
["A","A","A"],
["B","C","D"]]
word = "AAB"
def exist(board,word):
m,n = len(board),len(board[0])
def dfs(i,j,word):
if not word:
... | [
"keke@KeKes-MacBook-Pro.local"
] | keke@KeKes-MacBook-Pro.local |
6e3f2e47c2ed5a706f1d067a9f662db2000287ca | 79e7569963b58818687875b584fa88864eee124e | /airl_state_scripts/no_transfer_scripts/half_cheetah_irl.py | 003bd18a523c3cef4bb36e738b3cda593421307e | [
"MIT"
] | permissive | hsilva664/nstep_airl | fe5ee6ecff66d0815917560ec61714d381b20108 | c08650d8fddf6a27081d2b63cb8f9eb23d746b6c | refs/heads/master | 2020-06-10T02:42:25.617243 | 2019-06-25T19:24:49 | 2019-06-25T19:24:49 | 193,558,581 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | import tensorflow as tf
from sandbox.rocky.tf.policies.gaussian_mlp_policy import GaussianMLPPolicy
from sandbox.rocky.tf.envs.base import TfEnv
from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline
from rllab.envs.gym_env import GymEnv
from inverse_rl.algos.irl_trpo import IRLTRPO
from inverse_r... | [
"hsilva664"
] | hsilva664 |
f449c5faf8a6df4678b7889fb55cdc346ba4a1fc | 645d1e9b73f382da28e2d0f6494b05fa5e278bf2 | /answers/reverseVowels.py | 8494557e105ed1fbe9a53c528e86b5d72099aa1d | [] | no_license | xxbeam/leetcode-python | 63efcba4f0fc1c09ceebca725778dacd9dfd27fd | 5f1282abb64651c4b67ce0b262456920827fe7dc | refs/heads/master | 2023-07-17T23:33:08.783011 | 2021-09-10T01:47:46 | 2021-09-10T01:47:46 | 345,580,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # 345. ๅ่ฝฌๅญ็ฌฆไธฒไธญ็ๅ
้ณๅญๆฏ
class Solution:
def reverseVowels(self, s: str) -> str:
def isVowel(ch: str) -> bool:
return ch in "aeiouAEIOU"
s = list(s)
n = len(s)
i, j = 0, n-1
while i < j:
while i < n and not isVowel(s[i]):
i += 1
... | [
"xiongxin@songxiaocai.com"
] | xiongxin@songxiaocai.com |
4307934750115b4f8f5d3b853ba1cdc23bfa0406 | 6f34648de1a61036720e4b5deca270daaec7cb89 | /gui/selectionPanelController.py | 08bfc8635a7f0d2e47be0ada1e2ca9414af8519b | [] | no_license | pekalam/hyperspectral-segmentation | 581fc59d67107ceeafb70db67f6254bf1d9f81f7 | 0598e18f713d4f7017672c13d5cc34e25a3ad362 | refs/heads/master | 2022-11-23T13:00:12.354035 | 2020-06-04T07:48:18 | 2020-06-04T07:48:18 | 268,948,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,911 | py | from typing import Callable
import numpy as np
from PyQt5.QtCore import QPoint, Qt, QCoreApplication
from PyQt5.QtGui import QPixmap, QPainterPath, QPen, QColor, QImage
from PyQt5.QtWidgets import QGraphicsView, QLabel, QGraphicsScene, QGraphicsPixmapItem, QSlider
from spectral import open_image, get_rgb
from spectral... | [
"marekbf3@gmail.com"
] | marekbf3@gmail.com |
5d7bd829917c0832143ca0d95c30692a6ad928a4 | 65b5eebe694175152f5d440365e7e1a0f94cd8c8 | /python/spark/print-words.py | e83fe7cb5753770ed91ac340af887c4defeca8cf | [
"Apache-2.0"
] | permissive | leakycup/stuff | c7967350b000a45cbcc3134942a5edc6d10e6135 | 5cce8cbd7057bf2598c8076ffc257606edb7141e | refs/heads/master | 2021-09-23T12:18:34.083663 | 2021-09-14T17:22:57 | 2021-09-14T17:22:57 | 23,305,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from __future__ import print_function
import sys
from pyspark.sql import SparkSession
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: try <file>", file=sys.stderr)
exit(-1)
input_file = sys.argv[1]
spark = SparkSession.builder.appName("PrintWords").getOrCreate()
line... | [
"soubhik@gmail.com"
] | soubhik@gmail.com |
34ae4058e8b7b076fbec0cd6c034ebe978798f7f | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/tornado-4.4.1-py27_0/lib/python2.7/site-packages/tornado/test/tcpserver_test.py | c01c04ddfb2baf903a76fbf5dfa182c3c2d21172 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,361 | py | from __future__ import absolute_import, division, print_function, with_statement
import socket
from tornado import gen
from tornado.iostream import IOStream
from tornado.log import app_log
from tornado.stack_context import NullContext
from tornado.tcpserver import TCPServer
from tornado.testing import AsyncTestCase, E... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
c07a98fad6e98a5fe25f91027a42337935fc15c8 | 5afbf3ca0e4435d696b49b0fa220680f65fec40a | /TriteEulerPython/Problems 001-025/Problem008.py | 88d90d175901a6d11f5199f67470739779f4a80e | [] | no_license | trite/tritepython | 503688f1d1c77c46ac8689f3e988a8cdd66d5216 | 5de5c35f81e43904f3afb9854523938cbbfffa31 | refs/heads/master | 2020-05-18T20:32:03.863716 | 2014-04-02T17:55:09 | 2014-04-02T17:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | print('''
Find the greatest product of five consecutive digits in the 1000-digit number.
''')
longNumber = '''
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
125406987471585238630507156932909632952274430... | [
"pbrunner@godaddy.com"
] | pbrunner@godaddy.com |
b4328f61f077d87793f58c3c84eb3f34d5b7bf26 | 607dc8df19fc5248f6289cdda97857b5d58ca16f | /smac/model/gaussian_process/kernels/rbf_kernel.py | 5bf20765886b3b5320be8d5b80fa8810a4ef6c68 | [
"BSD-3-Clause",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | automl/SMAC3 | 7dce243a33023c52d6819deff966f7b502e90ed0 | 541ee7e0383b491b86d1a23dcff669f2efad616d | refs/heads/main | 2023-08-31T17:36:06.067579 | 2023-08-01T13:02:51 | 2023-08-01T13:02:51 | 65,900,469 | 943 | 259 | NOASSERTION | 2023-09-11T02:36:57 | 2016-08-17T10:58:05 | Python | UTF-8 | Python | false | false | 2,738 | py | from __future__ import annotations
import numpy as np
import scipy.optimize
import scipy.spatial.distance
import scipy.special
import sklearn.gaussian_process.kernels as kernels
from smac.model.gaussian_process.kernels.base_kernels import AbstractKernel
from smac.model.gaussian_process.priors.abstract_prior import Ab... | [
"noreply@github.com"
] | noreply@github.com |
58b1d1422474f6027aa3f69edddb42e44fbb2a52 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /life_and_point/public_number/go_person_with_week/time/small_fact/tell_high_number.py | 8f2dcc2a9607cc6373040ba43be5bb60c8ac08a7 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py |
#! /usr/bin/env python
def thing(str_arg):
way(str_arg)
print('seem_great_time')
def way(str_arg):
print(str_arg)
if __name__ == '__main__':
thing('be_work_to_next_time')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
88c74ed89cfeb68d0c78794d60c877ac1661d577 | 788cd3ae0ca323f7a71003394690ce327e6ea493 | /problems/p042.py | 0ffbe5ab89226ebe796d0b2398352d911eddfe67 | [] | no_license | 3ximus/project-euler | f34f1a9f1d2ea8505cab282d473dfc92cafa4f83 | 38809387365a8a22e5e01c6bbf91f7ba0c0993ee | refs/heads/master | 2022-11-15T16:10:47.300964 | 2022-11-08T21:42:36 | 2022-11-08T21:42:36 | 108,572,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py |
triangle_set = [1]
def is_triangle(n):
k = len(triangle_set) + 1
while n > triangle_set[-1]:
triangle_set.append((k * (k +1)) // 2)
k += 1
return n == triangle_set[-1] or n in triangle_set
character_map = {chr(k):v+1 for (v,k) in enumerate(range(65,91))}
def word_value(word):
return sum([character_map[c] for ... | [
"fabio_r11@hotmail.com"
] | fabio_r11@hotmail.com |
75d64be1f65792d27759450166124d25bd15cfdf | 150d5e06f78c7ebc0971cbf87994ec1e3174ee03 | /selenium2.py | c173e73d42a31d112a0e420c9691fe86ae3e91b5 | [] | no_license | ohhoayu/scrapyspider | 14426bd4fcfe9dd2bd8b89b7211d90568ec8a1e6 | 301b129a493e749795c2f6d9f0488e7761f8f8c8 | refs/heads/master | 2020-04-22T21:57:49.415498 | 2019-02-27T15:37:15 | 2019-02-27T15:37:15 | 170,691,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py |
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
#ๆไปถๅฝๅๆณจๆไธ่ฆ้selenium,ไผๅๆจกๅๅ้ๅ๏ผๅฏผ่ดๆ ๆณๆญฃ็กฎๅฏผๅ
ฅseleniumๅ
driver = webdriver.Firefox()
#ๆฏwww.douban.comไธญๅตๅ
ฅ็html้กต้ข๏ผ็ดๆฅไฝฟ็จๅ
ถไธญ็srcๅฏผๅ็้พๆฅไธๆญฃ็กฎ
driver.get("https://www.douban.com/")
# ๆจกๆ็นๅป็ปๅฝ
driver.switch_to.frame(0)
driver.find_element_b... | [
"noreply@github.com"
] | noreply@github.com |
f958909a7a6b280c944a1b5dcfc27981d588a125 | 4f01328f202107399b5676c82be9d8fc246a7cf9 | /torch2trt_dynamic/converters/new_ones.py | b45d45eeac35741c2040f6444c7c52a79a7cbd40 | [
"MIT"
] | permissive | JasonDu1993/torch2trt_dynamic | cccc6570ba68399e902346c06f362f80d38b6239 | 24bbad2ea4977bb88ce2ade433058becc6980c82 | refs/heads/master | 2022-12-29T17:10:03.714226 | 2020-10-11T07:24:37 | 2020-10-11T07:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | from torch2trt_dynamic.torch2trt_dynamic import *
@tensorrt_converter('torch.Tensor.new_ones')
def convert_new_ones(ctx):
input = ctx.method_args[0]
size = get_arg(ctx, 'size', pos=1, default=None)
dtype = get_arg(ctx, 'dtype', pos=2, default=input.dtype)
output = ctx.method_return
if isinstance... | [
"streetyao@live.com"
] | streetyao@live.com |
64f5cee310873c89ed21559129631353a89625a7 | c3b1b5dc5740bfbdf19068ed50d80b34c5dff47b | /firstsite/urls.py | 42e607cd88ba2e1aec1216c3f2a5789705c14733 | [] | no_license | sid888gaur/FirstDjangoSite | e1116160c8be5bec84ae82b61f2d4828964c25eb | 614382d4d78e9e71cbef1e8d176f92d2680996ea | refs/heads/master | 2022-08-27T16:38:03.032095 | 2020-05-22T15:06:54 | 2020-05-22T15:06:54 | 266,137,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """firstsite 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-bas... | [
"siddharthgaur8@gmail.com"
] | siddharthgaur8@gmail.com |
df5fdd8502bafee22cd6422aadd62f41b6e93175 | ade047677ca695a8d27ff50645f1afe8cd1463df | /Entity.py | 74b0d2ab5a75cdc154d488c7aee0e35e161aff20 | [] | no_license | xuzhuo77/WorkSpace-FrameWork | 677f02eead801fb48e60d0411ea4dc5aa516af57 | 109c691c270020ef20f36f625c31166c49386351 | refs/heads/master | 2023-03-06T13:02:28.528231 | 2021-02-21T23:01:08 | 2021-02-21T23:01:08 | 337,577,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from sqlalchemy import Column, Integer, String,DateTime
from sqlalchemy.ext.declarative import declarative_base
import datetime
from Utils.UniqueIdUtil import gen_guid
base = declarative_base()
class Entity(base):
__abstract__ = True
# __tablename__ = "Entity"
id = Column(Integer, primary_key=True,autoi... | [
"403863214@qq.com"
] | 403863214@qq.com |
d97182e53a43ac43986a8185fd460720d7ca2d12 | 346493ada990c044420f04fd1927f3ba8f3f13c8 | /hcipy/constants.py | 3d4ec07dadadba90cf8ab3d8fb7649dcc5dd833d | [
"MIT"
] | permissive | SkarletKill/python-hcipy | f7d65a595ba9655eaf0bf25e22ad7e3423bc170a | db210db2bb7b3ffdf44e0c47a1d71bedb748bcf9 | refs/heads/master | 2020-04-05T03:27:50.503935 | 2018-02-12T13:14:41 | 2018-02-12T13:14:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/python
# Author: Wayne Keenan
# email: wayne@thebubbleworks.com
# Twitter: https://twitter.com/wkeenan
HCIPY_HCI_CMD_STRUCT_HEADER = "<BHB"
HCIPY_HCI_FILTER_STRUCT = "<LLLH"
# HCI ioctl Commands:
HCIDEVUP = 0x400448c9 # 201
HCIDEVDOWN = 0x400448ca # 202
HCIGETDEVINFO = -2147202861 #0x800448d3L # ... | [
"wayne.keenan@gmail.com"
] | wayne.keenan@gmail.com |
bafc466149d5f0450b62c93f7148f091d23bbbb0 | 3a95f1953dcd0387bb06c5ecdd6fccc12c640a00 | /model.py | d32b5d96e91f33d7a0abb26a09b9a2cb0b0385f6 | [] | no_license | cooliotonyio/predicting-media-memorability | 1a21e9dd410892c994253418b247108f866348c2 | 08b5b11e0a4a8520361197788f1f25bd10ade560 | refs/heads/master | 2023-01-31T23:40:16.193920 | 2020-12-19T21:14:15 | 2020-12-19T21:14:15 | 297,144,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Using Neural network
class FlatDataset(torch.utils.data.Dataset):
def __init__(self, features, targets):
self.features = features
self.targets = targets
def __len__(self):
return len(self.features)
def __getitem__(self, idx):
return self.features[idx], self.t... | [
"tony.ytzhao@gmail.com"
] | tony.ytzhao@gmail.com |
bfc3ec5234b14826d2b323b24f79a8ec77e4d416 | 8c7250260b8b48bdeb7a9ca8cd80fb5be0abd372 | /0x06-python-classes/2-square.py | 0647d41316320afec235d75167c34322b4e93a94 | [] | no_license | 4ions/holbertonschool-higher_level_programming | bd77a124f31152a257c15436ce0c011b363af542 | c2f6d1a00082b04145fe27440607d5f2c2646950 | refs/heads/main | 2023-04-21T22:08:31.905403 | 2021-05-13T02:39:52 | 2021-05-13T02:39:52 | 319,388,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #!/usr/bin/python3
""" Square Module """
class Square:
""" Class of Square """
def __init__(self, size=0):
""" check conditions of size """
if isinstance(size, int):
if size >= 0:
self.__size = size
... | [
"leovalenciasantana@gmail.com"
] | leovalenciasantana@gmail.com |
1226a667f0b6464f719672a6217d4ee0dab76c7b | 870d170eb20ad2739526ef33655efc7b3b12ca5f | /cuenta.py | da171079b2fe43553e1cd9765fb6f01869bbb9fa | [] | no_license | ItzelCastro14/Mision_02 | 75d726e48933d8eb5d22a57c93cc71f09a5cdb3e | 1582b6dfec419293d335e17a901490ddf3ec2641 | refs/heads/master | 2020-04-19T13:30:20.265087 | 2019-01-30T14:46:04 | 2019-01-30T14:46:04 | 168,219,363 | 0 | 0 | null | 2019-01-29T20:00:03 | 2019-01-29T20:00:02 | null | UTF-8 | Python | false | false | 278 | py | #Autor:Itzel Yanabany Castro Becerril
#Costo total de la cuenta
cuenta=int(input("Costo de tu cuenta: "))
propina=cuenta*0.13
iva= cuenta*0.16
total=cuenta+propina+iva
print("Propina: %.2f"%(propina))
print("IVA: %.2f" % (iva))
print("Total a pagar: %.2f" % (total))
| [
"noreply@github.com"
] | noreply@github.com |
d9321e070a2ee069f2025a010d87c992fc72c449 | 8ff682c31330326f01e65a60c435f1abc77e5f42 | /TuitionBD/wsgi.py | 0990247c47bc95b8f53c8fe6459b9e5996742862 | [] | no_license | towhidul-islam007/TuitionBD | 469ea5f643477ba5269db008d174b0ee59b17a67 | 3555cffa5b60d92c77dde4c21633feacc68f55b6 | refs/heads/master | 2021-09-20T06:26:23.460309 | 2018-08-05T22:49:26 | 2018-08-05T22:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for TuitionBD project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"im.towhidul@gmail.com"
] | im.towhidul@gmail.com |
2ce40fb648915746f6ecc33c1cc71037bc08e054 | 662f385a8e8e4cd68c2d57db67bed9bca10b06e8 | /tarefa_matplotlib.py | 717d65a3d2f9add05fb94223ff27f969e4808020 | [] | no_license | preciousakura/questoes-python | 038f3c22f70e20e47f42505f6e79828ee6896246 | 3cf03e0e3d5230de6a9bf3baf2b8206ec881d35a | refs/heads/main | 2023-07-14T09:07:39.611998 | 2021-08-22T15:12:16 | 2021-08-22T15:12:16 | 390,872,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | import numpy as np
import matplotlib.pyplot as plt
import time
np.set_printoptions(precision=3)
def insertionSort(arr):
for i in range(1, len(arr)):
key = np.copy(arr[i])
j = i-1
while j >= 0 and key < arr[j] :
arr[j + 1] = arr[j]
j -= 1
arr[j + 1] = key
def mergeSort(arr):
if l... | [
"noreply@github.com"
] | noreply@github.com |
b41743663f90d56f9a5f5a05e8350fd49c9a1adf | a361c3fe82445fda2ba3a557b59b209559c46c2a | /k_nearest_neighbours/k_nearest_neighbours.py | 7270dd5711bceebd63c39f6ecb01bb3f606e5682 | [] | no_license | emalgorithm/machine-learning-algorithms | 6917ab2e48f11e050bc6073b29afa31130108d2d | 2c404c17ebb29d4bbc0a232e3c8700a8e094c5a5 | refs/heads/master | 2020-04-01T11:07:49.781971 | 2019-03-29T15:51:12 | 2019-03-29T15:51:12 | 153,148,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | import numpy as np
from sklearn.preprocessing import scale
class KNN:
def __init__(self, k, n_classes):
self.k = k
self.n_classes = n_classes
def prob(self, x):
"""Probability vector for x belonging to any class"""
# Compute indexes of the k nearest neighbours
distance... | [
"emanuele.rossi1909@gmail.com"
] | emanuele.rossi1909@gmail.com |
1fce0f737f2c93d3e43dc0569be51848060f8394 | 7c9a70df135419c72cab193421f259f0adcb6605 | /SDSSData/observing_time.py | 20f1256b87ed7c11a824bdb0a0995c3bf91309fc | [] | no_license | tkconnors/Project | f43d5a14a8c2d8f4f990cf2e7d773859ccd3d37b | fb51d8ed0669c25afe978f2ac79e29b8255891ef | refs/heads/master | 2020-07-25T04:03:10.631693 | 2019-09-14T00:07:00 | 2019-09-14T00:07:00 | 208,159,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | #!/usr/bin/env python
import argparse
import sys, math, os
from astropy.io import fits
from Spectra_header import Spectra_header
# PYTHONPATH='/Users/tony/Desktop/Repositories/Project/'
# Argparse, still need to fix to take in a directory with multiple fit files
parser = argparse.ArgumentParser(description="This progr... | [
"tonyconnors57@gmail.com"
] | tonyconnors57@gmail.com |
b6ba6daa1bbf909a963e77ffe0f228d969888041 | 84f649683ac5245a686730d90779dedacd4fd926 | /school_system/media/files/exercise_aGapngb.py | 949fa2071c7eafd8861ceb9e228ce701d1b77c99 | [] | no_license | Sharonoito/School-System | bf6f1a9e3ab7fd4dffc5e07eb2c0dea3039e9410 | 7151ecfecbad751cc4054ab52666f8c002c62fdf | refs/heads/master | 2023-08-22T06:46:47.506237 | 2021-10-01T12:42:24 | 2021-10-01T12:42:24 | 380,290,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | fruits=("apple","mangoes","grapes","banana")
print(fruits)
x=()
print(x)
tuplex=tuple()
print(tuplex)
numbers=(1,2,3,4,5)
print(numbers[1])
n=(4,)
print(n)
y={0:10,1:20}
print(y[1])
a={0:10,1:20,}
a[2]=30
print(a)
students={"age":"sharon","status":"grace","name":"loyce"}
students["class"]="jane"
print(students)
country... | [
"oitosharonakoth@gmail.com"
] | oitosharonakoth@gmail.com |
cff9424dc8e372e6169ba4c863a69679d5b76bb4 | 8b0563d07d89e3eb27f3e740cf27fb26bf462c8a | /lib/eyed3/utils/log.py | 2c6e08dfe65fa3e1b63989c396f4c47ed0841c2c | [] | no_license | boukeversteegh/nebula | 1342e3d75501ad4856035e06d2fb9a79eb076f7d | 0f06bd61a357d9bb5230627c6993b73ba86b6f9b | refs/heads/master | 2020-06-09T03:48:33.937930 | 2016-02-24T14:32:21 | 2016-02-24T14:32:21 | 7,444,745 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # -*- coding: utf-8 -*-
################################################################################
# Copyright (C) 2011 Travis Shirk <travis@pobox.com>
#
# This program 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 So... | [
"boukeversteegh@gmail.com"
] | boukeversteegh@gmail.com |
f83fa49d5475aa107fb54496baa054affa656ec8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_truest.py | f2ef775949b9144ce37ca8397bf6342c1da23e39 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
from xai.brain.wordbase.adverbs._true import _TRUE
#calss header
class _TRUEST(_TRUE, ):
def __init__(self,):
_TRUE.__init__(self)
self.name = "TRUEST"
self.specie = 'adverbs'
self.basic = "true"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
81026946ea3022346dd16b919458822b14a2eb72 | ac2c3e8c278d0aac250d31fd023c645fa3984a1b | /saleor/saleor/graphql/core/enums.py | 8046ea0ca5905d638c87ce50b2abe62ae9f3c1c4 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | jonndoe/saleor-test-shop | 152bc8bef615382a45ca5f4f86f3527398bd1ef9 | 1e83176684f418a96260c276f6a0d72adf7dcbe6 | refs/heads/master | 2023-01-21T16:54:36.372313 | 2020-12-02T10:19:13 | 2020-12-02T10:19:13 | 316,514,489 | 1 | 1 | BSD-3-Clause | 2020-11-27T23:29:20 | 2020-11-27T13:52:33 | TypeScript | UTF-8 | Python | false | false | 5,088 | py | import graphene
from ...account import error_codes as account_error_codes
from ...app import error_codes as app_error_codes
from ...checkout import error_codes as checkout_error_codes
from ...core import JobStatus, error_codes as core_error_codes
from ...core.permissions import get_permissions_enum_list
from ...core.w... | [
"testuser@151-248-122-3.cloudvps.regruhosting.ru"
] | testuser@151-248-122-3.cloudvps.regruhosting.ru |
c06271bb752a2c4dc70750e4e08dce60ecb0e69f | 4137c317643a4f1040ae55c9deeb23798ee07371 | /src/UserInterface.py | 38f27c6d5626c516f87fa4748a284bc2c3779bc1 | [] | no_license | gold1740/cs1440-4 | ea953beb9a57b8b601bea04e7d16b62b183fa82b | 5a64e40d42f4085a0c2c9df40f6480bbbaa7b9c9 | refs/heads/master | 2023-01-04T08:37:26.420973 | 2020-11-03T23:08:10 | 2020-11-03T23:08:10 | 309,829,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | import Deck
import Menu
class UserInterface():
def __init__(self):
pass
def run(self):
"""Present the main menu to the user and repeatedly prompt for a valid command"""
print("Welcome to the Bingo! Deck Generator\n")
menu = Menu.Menu("Main")
menu.addOption("C", "Create a new deck")
keepGoing = True
... | [
"peterjeremy@cableone.net"
] | peterjeremy@cableone.net |
1ed875a7887551137a3c59aff1df2c37b7cafc44 | 93d650745d5f1a6551975838751291516e134807 | /indie_math/indie_collatz.py | 07e92cf1346fdb41eb3000d8a984e82de856adb0 | [] | no_license | ZR000X/IndieBot-1 | 8c301baa3bd88036357a98415b9781a455b511a8 | 4527cf2d2e78e4b528e534fe202eac792d4bafe4 | refs/heads/main | 2023-07-20T05:53:42.608532 | 2021-08-17T22:33:43 | 2021-08-17T22:33:43 | 369,688,420 | 3 | 1 | null | 2021-05-22T01:14:32 | 2021-05-22T01:14:31 | null | UTF-8 | Python | false | false | 1,806 | py | import math
def collatz(n: int) -> int:
if n % 2 == 0:
return n // 2
return 3 * n + 1
class collatz_info:
def __init__(self, root: int):
assert (root != 0)
self.collatz_trajectory = []
self.oddinity_trajectory = []
self.evenity_trajectory = []
self.limit_r... | [
"56779349+ZR000X@users.noreply.github.com"
] | 56779349+ZR000X@users.noreply.github.com |
6094483f87321a75060daaf05c3d8d4fb77a80b8 | 8e6c4ef3d2eb8f3a74c7528dc1f04393c993006f | /machine/urls.py | 85397b9006b8738df79eaff5925530491e6d3b8e | [] | no_license | chutchais/Equipment | 53b876d83a6470a1125e22f24c82bfafe691dfb4 | 78d71d643fffb97079e60bca207120bbf2137225 | refs/heads/master | 2021-06-27T03:49:14.856205 | 2017-08-11T04:22:10 | 2017-08-11T04:22:10 | 103,793,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | from django.conf.urls import url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from . import views
from django.contrib.auth import views as auth_views
from .forms import LoginForm
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^request/$', views.create, name='create'),
... | [
"Chutchai@NB_SecMGR.lcb1.com"
] | Chutchai@NB_SecMGR.lcb1.com |
b02412e2c9c19576006d6976161f216a0161704e | bbf79e8b9f19797c852d2c716ffdbcc2d6fe6d22 | /M5stack/M5stack Core 2/uarHID.py | 1bfaa6e725475649e2bd6a62d6c38addf208e782 | [
"MIT"
] | permissive | oBexwons/ESPwner | cfbb44361bc1a9ac571e2a4277bdec2d262d73e0 | 0bd197cab08e9ca92a2001c6f8df936658237b05 | refs/heads/main | 2023-07-17T20:49:08.013321 | 2021-05-26T14:05:41 | 2021-05-26T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | # UART HID library by BeBoX (c) 2021
# ----------------------------------
#
# Keyboard COMMANDS over UART
# PRESS:keycode : press key ex. PRESS:0x2c
# RLEAS:keycode : release key ex. RLEAS:0x2c
# TYPEK:keycode : press ans release key ex. TYPEK:0x2c
# WRITE:String : type a string ... | [
"33153857+beboxos@users.noreply.github.com"
] | 33153857+beboxos@users.noreply.github.com |
089cc627b0ee56e98b1c995bece77eec11b6c657 | 76e931912629c37beedf7c9b112b53e7de5babd7 | /1-mouth01/day14/exe01.py | e46e565f07c85e20b97d5613bbc0a84c048de75f | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from module_exe import data
import module_exe
from module_exe import MyClass
c1 = MyClass()
c1.func02()
c1.func03()
print(data)
module_exe.func01()
| [
"673248932@qq.com"
] | 673248932@qq.com |
c1583acd11a5c08f9e38b2b298e8363efc5f62d2 | de766c892f308240708f33aca21a1b40c3db3ebb | /035-Routine-Differencing/generateArray.py | f5f55979966189470dddc689763bb08270005f15 | [] | no_license | stephkoltun/Known-and-Strange-Places | f4fd47950150f92ff3d9827897115671e77275e5 | 03b5ffa0437c558c34cc88440aee4fc9e81cf310 | refs/heads/master | 2021-05-12T16:50:47.650829 | 2020-04-26T19:11:52 | 2020-04-26T19:11:52 | 117,025,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from os import listdir
from os.path import isfile, join
mypath = 'img/'
onlyfiles = [f for f in sorted(listdir(mypath)) if isfile(join(mypath, f))]
totalString = 'var imgArray = [\n'
for index, filename in enumerate(onlyfiles):
# create JSON structure
obj = "{\n\tpath: '" + mypath + filename +"',\n\tloaded: ... | [
"pburke@Patricks-MBP-2.home"
] | pburke@Patricks-MBP-2.home |
2c99815d97b01dd33b9f52fda6a4d4f27a943fe2 | d3af72e4c623dffeda95e662d495a95c8f2e317a | /scripts/gene_checker/annotations/glimmer_annotation.py | 53a169406e4c8d9a608689a2828ffe6aab7b0b88 | [] | no_license | bioinf/bi2014-mycoplasma-genitalium | 0e2fbf095a461339064ea38f1be4586897f7c2ac | bd8eb82bb8d883faeb0492d74deb7a396577b782 | refs/heads/master | 2016-09-05T11:34:00.325602 | 2014-12-06T12:37:12 | 2014-12-06T12:37:12 | 24,504,082 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | __author__ = 'nikita_kartashov'
from generic_annotation import GenericAnnotation
class GlimmerAnnotation(GenericAnnotation):
def __init__(self, line):
super(GlimmerAnnotation, self).__init__()
self.__parse_annotation(line.split())
self._length = self.end() - self.start()
def __parse_... | [
"snailandmail@gmail.com"
] | snailandmail@gmail.com |
ac56b5736cf0917fe2b9160feb6f7ef41e4c1803 | 23e844585f57be307bcf6313cbca743dc037bef6 | /ads/views.py | 233558195e6eaf627d41dd90e62254efadec3830 | [] | no_license | Code-Institute-Submissions/Golfites-Golf-Community | 2fa53792ddeb20e87a198f84cb7e41ad6d265e11 | a11b2d31535ed1b1746ca4562b698fc1cc082d0e | refs/heads/master | 2021-04-27T00:42:23.558463 | 2018-02-23T17:27:13 | 2018-02-23T17:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from django.shortcuts import render, get_object_or_404, redirect, reverse, HttpResponseRedirect
from .models import Ad
from .forms import NewAdForm
from django.contrib.auth.decorators import login_required
def all_ads(request):
ads = Ad.objects.all()
return render(request, "ads/ads.html", {"ads": ads})
def ... | [
"ed@velabri.co"
] | ed@velabri.co |
f36a1e345627df7fbe20ae6cbad4475bca76f9ef | d2c7c5096a290e09f45d62d326f2f41ceb72d238 | /Programas Python/calculadora/app.py | 1ac8acb04c8702cac4c34afb339f8ea73300fbb9 | [] | no_license | nadirbacapaunero/Programas-Python | e12a5d24492bcbabdf316d7c6d4de749e74b9c1a | ff07a59d49eb8e688c155d1bd764d460dc6fd191 | refs/heads/master | 2022-12-18T01:06:32.814133 | 2020-09-18T03:19:06 | 2020-09-18T03:19:06 | 294,491,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | from tkinter import *
import parser
root = Tk()
root.title = ('Calculadora')
display = Entry(root)
display.grid(row=1, columnspan=8, sticky=W+E)
i=0
def get_numbers(n):
global i
display.insert(i, n)
i+=1
def get_operation(operator):
global i
operator_length= len(operator)
... | [
"noreply@github.com"
] | noreply@github.com |
e1cb922f466a365e179cc8d75a31752d233a2cd6 | 58853817cd77692677fd1833a514f02226c1d2d3 | /Advanced/Bengali.AI_Image_Classification/src/train.py | de2266d2dc9281e6aa2cb0c8281779680d25cb56 | [
"Apache-2.0"
] | permissive | oke-aditya/kaggle_submissions | a8191dff812a18a4fc00729948542cd7298539a6 | 0aca072cb9a3a3a11f574c9dcc69804b7a5a5afe | refs/heads/master | 2022-11-08T20:35:29.814306 | 2020-06-25T11:52:11 | 2020-06-25T11:52:11 | 263,412,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | import os
import torch
import torch.nn as nn
import engine
from dataset import BengaliDatasetTrain
import config
from model_dispatcher import MODEL_DISPATCHER
from torch.utils.data import DataLoader
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
def run():
model = MODEL_DISPATCHER[config.B... | [
"47158509+oke-aditya@users.noreply.github.com"
] | 47158509+oke-aditya@users.noreply.github.com |
9e3b1da5a3fe55cbd4b708c74114095a43a6ea6a | f1748434c3a06e6005618afc1c1b259ce2c5b115 | /Learn/DataStructure/Graph/MinimumSpanningTree/kruskal.py | 04faf853259776ac7c8a87b5d0e1da488a7ebcec | [] | no_license | yue-yue-haha/Algorithm | f5175ae0e1339dba98c1bbd1c6b238634ced969c | 1f7a120d262b80f2b4fc452a33f698ccdd9e1fad | refs/heads/master | 2023-03-12T22:53:32.873956 | 2021-02-19T02:29:14 | 2021-02-19T02:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from functools import cmp_to_key
from Learn.DataStructure.UnionFindSet.template import UnionFindSet
def kruskal(graph: dict):
tree, n = [], len(graph.get("nodes"))
ufs = UnionFindSet(n + 1)
graph.get("edges").sort(key=cmp_to_key(lambda a, b: a[2] - b[2]))
for start, end, weight in graph.get("edges"):
... | [
"alex18812649207@gmail.com"
] | alex18812649207@gmail.com |
624100b026eaad7781debc16e181764583b89c1d | a22a51c1432320af199b3bd2c0b3f0f445d33bbc | /mod/migrations/0006_author_blog_entry.py | 90b25f97468b4d5105f2a378b97e1dea706832be | [] | no_license | gupeng351578076/djangomodel | 7ec7c7b0d379d78b84752f39773d7ef1911ffc6e | 00a76dd3f7e5314c37e6231a745bfba7eb4f6214 | refs/heads/master | 2021-05-04T16:31:18.473081 | 2018-02-05T04:03:54 | 2018-02-05T04:03:54 | 120,252,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | # Generated by Django 2.0.1 on 2018-02-01 06:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mod', '0005_auto_20180201_1418'),
]
operations = [
migrations.CreateModel(
name='Author',
... | [
"351578076@qq.com"
] | 351578076@qq.com |
8ea8856f2b966fb9741ebb367d89c1b8bf49edeb | 2c55a5cecf3d4644da21871557c3e70158276d1b | /src/simple_parser/bookmark/celery_tasks.py | d754a3b95ea82dbeaa7e1e23632816ff54a2e6c1 | [] | no_license | Pavaev/simple_parser | 3b292873e1f5adef20e1a9944e25602fb6756f1b | 928157dadc8ef7b02566ed43c269e0e13906e97c | refs/heads/master | 2022-11-28T02:58:59.542286 | 2019-08-13T12:20:20 | 2019-08-13T12:20:20 | 200,894,346 | 0 | 0 | null | 2022-11-22T04:10:56 | 2019-08-06T17:18:00 | Python | UTF-8 | Python | false | false | 1,678 | py | import logging
import requests
from celery.app import app_or_default
from django.conf import settings
from requests import RequestException
from simple_parser.core.contrib import parsing
from .models import Bookmark, EmbeddedMetadata
app = app_or_default()
@app.task(name='simple_parser.bookmark.parse_bookmark_url... | [
"panaev2853@gmail.com"
] | panaev2853@gmail.com |
8129ef48c263f3f47bf2203fe2e0ec5efd945b7e | 7da990bbdd5e2b6d1be4e1d6841628a1b45abf9f | /venv/Scripts/easy_install-3.6-script.py | 696f3b2cceecae468b5f04ade03bdf9ef2a4c125 | [] | no_license | zettravos321/UTS-CS2 | 427aa6e1bf486738662ee70f2875360fe3287a29 | fde27ba54796dedc64a2ac7f37155cc3455636b8 | refs/heads/master | 2022-05-27T13:00:34.957503 | 2020-04-24T03:16:43 | 2020-04-24T03:16:43 | 258,392,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!C:\Users\HP\PycharmProjects\UTS\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe... | [
"zidnazen@gmail.com"
] | zidnazen@gmail.com |
d8b885548793329fa5e3e4284d39db817b6d544e | 43421ec42d26fe3a8a1d9b204c3ae242b688b90c | /travelly/wsgi.py | 9ea99facc2c573b339247b9b45c3c4cb015c397e | [] | no_license | Scaledesk/travelly_redirector | 876951d25b19c2ee0935735bd5e7d3d639ace78d | 7a5e9cb517f95d85dc259a4fa0ed143994da2181 | refs/heads/master | 2020-12-29T03:45:41.881256 | 2016-04-23T14:08:18 | 2016-04-23T14:08:18 | 56,917,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for travelly project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"avneesh.chadha@gmail.com"
] | avneesh.chadha@gmail.com |
922b7c0d4bc508000a6871f9a08fe1b3f58e1b30 | b2cf5f6537141361e9b03e7bf33acffb3fac4f51 | /mysite/polls/migrations/0001_initial.py | 77beabec3e9c39f3c0ef9c17fbc9884cc9ea363b | [] | no_license | helboyserhiy/project | 645e5a3d668ecf7674aeddd7101741653b4685bd | 7db4b0014261e60f2eb6ea24ae0c82a7665a40ba | refs/heads/master | 2021-01-17T23:57:33.269711 | 2016-09-15T21:24:20 | 2016-09-15T21:24:20 | 68,328,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-15 11:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"helboyserhiy@yndex.ru"
] | helboyserhiy@yndex.ru |
2c89b1daf2c7579990a286147a8a2fafdc6db802 | 5f6423fbdbb587278300f5a1ba070c12608a4680 | /freenectExample.py | 304663f80c52ccf9bdaddf81abe937cf59d860ee | [] | no_license | yusuferkan91/PythonFreenectExample | ee455af1ab4b8e05ba8e3c7b25dee774417cd8c8 | a13c19245c051d4e4c0b6f7305902c510d86ea7d | refs/heads/main | 2023-07-13T09:13:24.132024 | 2021-08-25T18:39:09 | 2021-08-25T18:39:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from freenect2 import Device, FrameType
import numpy as np
import open3d as o3d
import cv2
def main():
device = Device()
frames = {}
with device.running():
for type_, frame in device:
frames[type_] = frame
if FrameType.Color in frames and FrameType.Depth in frames:
... | [
"noreply@github.com"
] | noreply@github.com |
795a88f021e67b571a81ee946bc1108a9a4f7243 | 336f11ee8934581f05ab620c5324c601ba864b05 | /python_unit_testing/Introduction/The possible test results/possible_test_results.py | 2f19b271168fe43ac4d72e877771ed0bb40c8b2c | [] | no_license | ancient-clever/sandbox | 01adeee2638a23533965cf57ca873a30e7dfad3d | 87dec3bf8860a67a36154ee5d7c826d919d3111b | refs/heads/master | 2022-05-17T04:49:54.703068 | 2020-01-19T17:44:27 | 2020-01-19T17:44:27 | 206,946,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import unittest
class TestPossibleResults(unittest.TestCase):
def test_success(self):
pass
def test_failure(self):
self.assertEqual(True, False)
def test_error(self):
raise Exception
| [
"ancient-clever@outlook.com"
] | ancient-clever@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.