blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
71ebe5d419fded0ab53a1753b8fc2126ccbcff49
7c1badc28768370bca5782e3d540984b80aac3ed
/newblogs/newblogs/mysqlstore.py
9ba20e6ae649b795ac1dd705f0b095d0c9c77fe2
[ "Apache-2.0" ]
permissive
luckyTang168/spider_study
1b66f712c57e3ddf97d1e08bf5d375f1f79ce469
d0534c28f784f553924137d98c60c8a0198f8c8d
refs/heads/master
2021-05-29T22:30:14.525296
2015-04-27T16:27:54
2015-04-27T16:27:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,147
py
# -*- coding: utf-8 -*- # __author__ = 'gavin' import MySQLdb import sys def save_blog(blog): try: conn = MySQLdb.connect(host='localhost',user='root',passwd='123456',port=3306) cur = conn.cursor() conn.select_db('newblogs') # cur.execute('SET NAMES \'utf8\';') command = 'i...
[ "gavin42333@hotmail.com" ]
gavin42333@hotmail.com
bd9d88f2c4b2d02cd056f7cd917cf2dad1473002
ae83eeae91ef5cc55f48e1c30bedda8c96f5daec
/kaynak/kod3.py
03dcc6096eb8288664a03d6055e7b8bb8f473cfd
[ "MIT" ]
permissive
MimVavKaf/pgn2gif
967d0397b8e6e6be8e0c3b1c2ed81306127fea0b
d2b374ea1e918a3c4fa3b550dc32b6bae1e71c6c
refs/heads/master
2021-01-10T16:24:15.584867
2016-03-15T12:16:32
2016-03-15T12:16:32
53,724,510
0
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
#!/usr/bin/python from PIL import Image, ImageDraw, ImageFont, ImageSequence from images2gif import writeGif import os, subprocess, sys, time FRAMES = 12 FRAME_DELAY = 0.75 WIDTH, HEIGHT = 650, 300 PIE_POS = (WIDTH-50,10, WIDTH-10,50) FONT = ImageFont.truetype('/usr/share/fonts/truetype/liberation/LiberationMono-Regu...
[ "m.vahit.kapar@gmail.com" ]
m.vahit.kapar@gmail.com
74be05a906bcc6451b5e7fabb397130bb0a870f7
78e336c290ce3d5e5b7ad31694fe4af9092fc562
/enfermeras.py
ed07f6dd4edb6a726509ccd6bf3a03c0875c6e5c
[]
no_license
Ivvnh/BackendPr2
7478e5672b65ce247eae0d38ca51fda8a552f2cb
e3f532263115b7b16c37718a31191de6f353944c
refs/heads/main
2023-04-15T18:25:44.895932
2021-05-02T04:04:07
2021-05-02T04:04:07
359,986,334
0
0
null
null
null
null
UTF-8
Python
false
false
1,318
py
class enfermeras: def __init__(self,nombre,apellido,nacimiento,sexo,usuario,contraseña,telefono): self.nombre = nombre self.apellido = apellido self.nacimiento = nacimiento self.sexo = sexo self.usuario = usuario self.contraseña = contraseña self.te...
[ "noreply@github.com" ]
Ivvnh.noreply@github.com
589b652b926f92d384451364fae341e07839509c
9ad5d8450027f53f05ea1ec90b7bc2673168ff76
/src/decimalConversion.py
ebcbdacac574ff4f972ac9aa00196cb16c49a02d
[]
no_license
LordNewt/romanNumeralTest
615edaa8f7960a3e5a6be50e4a360eb9e19a48ce
7f52e4879fe88d9d0f573c8973e67fc9862e2735
refs/heads/master
2020-04-02T05:25:08.824089
2016-07-29T03:09:06
2016-07-29T03:09:06
64,433,613
0
0
null
2016-07-29T03:09:07
2016-07-28T23:00:03
null
UTF-8
Python
false
false
3,927
py
class DecimalConversion(): decimalValues = { 'M': { 'value': 1000, 'repeats': 3, 'reductor': 'C' }, 'D': { 'value': 500, 'repeats': 0, 'reductor': 'C' }, 'C': { 'value': 100, 'repeats': 3, 'reductor': 'X' }, 'L': { 'value': 50, 'repeats': 0, 'reductor': 'X' }, 'X': { 'value'...
[ "sschmit@gmail.com" ]
sschmit@gmail.com
aea29e49c0f2a470d0ba6f4f9b9b6f855fcff52b
648a6e11bea6a15bd677ecf152592edd71203734
/Lab9/task7/task7_images/task7_background.py
463225397c9b59f3a2857c760735db9d25e7d2de
[]
no_license
paulkirwan6/AllLabs
70975233c2a545e0acf116f9326bc1153fd4d497
5c660eb352e61047519e87deaa5a3f0a0155785e
refs/heads/master
2020-09-20T12:13:17.593871
2019-11-27T18:59:30
2019-11-27T18:59:30
224,473,008
0
0
null
null
null
null
UTF-8
Python
false
false
8,179
py
# ROSHAN GEORGE 2 # Copyright (c) 2017 Andrey Voroshilov # Modifications made by Joseph Lemley for use in EE5116 MDT lab. 25/10/2017 import os import tensorflow as tf import numpy as np import scipy.io import time import sys import csv from PIL import Image def imread_resize(path): img_orig = scipy.misc.imread(pa...
[ "paulkirwan6@gmail.com" ]
paulkirwan6@gmail.com
c382fb6f31fe22160db0400fc69095f40f7bd880
d2312dcdb1ce5e823f3a1d10594f33cc99bcdf19
/users/admin.py
2c0405e6b8d311551036ccac20bed4330d011e2f
[]
no_license
danik-tro/Django-dev-Shop
6c82cb23c1ed243b81d655d578a613399c241b6a
701d0a80a486d97ee9707d2aaed80ad485feda5c
refs/heads/master
2023-02-24T10:11:51.402482
2021-01-22T14:28:55
2021-01-22T14:28:55
331,242,529
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User class CustomAdmin(UserAdmin): fieldsets = (("User", {"fields": ("image",)}),) + UserAdmin.fieldsets admin.site.register(User, CustomAdmin)
[ "s.danik.tro.c@gmail.com" ]
s.danik.tro.c@gmail.com
e4871b3dedd337522eb56878d15c3f912bdf166a
63d30d928631494863cd8f40a86c6e51f01d076e
/core/__init__.py
4417f09f5dd824a8655044a1b32d5f69ab86c751
[ "MIT" ]
permissive
akshitgupta2029/Portfolio_CCS
9e5430304d408b56a4a44e56eabba0be5668a70d
ab5794d14a07e33c5559f125b6cd2e9a789c420a
refs/heads/main
2023-08-31T06:17:27.849253
2021-10-12T08:07:23
2021-10-12T08:07:23
415,581,330
0
0
MIT
2021-10-10T12:36:22
2021-10-10T12:36:22
null
UTF-8
Python
false
false
618
py
import os from flask import Flask def get_context(): context = [] for file in os.listdir("templates/pages"): if file.endswith(".html"): title = file.split(".")[0].replace("_", " ") name = title.split(" ")[1:] name = " ".join(name) name = name.upper() ...
[ "rupanshijain45678@gmail.com" ]
rupanshijain45678@gmail.com
b79d85a95efe3acf2be9f2b266ceb524f9dabe32
a16f791e5cf1196d4b1cb47c8098b6f9ae4aba65
/cleanStream.py
e1bc968774d74210c1b4f3a575d10ed9b0c9a15f
[]
no_license
circumlocutory/pytwybot
4a1eb648acf21ead18d8464ae0c2382e5d8f2954
c4b86a400d3a9c153b537ffcfbf0ad683f20b090
refs/heads/master
2021-01-11T22:27:08.083304
2017-01-15T01:13:03
2017-01-15T01:13:03
78,964,595
0
0
null
null
null
null
UTF-8
Python
false
false
3,745
py
#This script follows a user's Twitter stream and messages them when they tweet. #The interval between tweets can be adjusted using the sleep() function from twython import TwythonStreamer, Twython from datetime import date import random import time #auth.py is the second file, containing your dev.twitter.com credenti...
[ "hello@christopherfloyd.net" ]
hello@christopherfloyd.net
28a0c224413f20e7bf9dc36fdc29fe4cc09204be
4a238068e29a1f6871cc049a0486b20b27e781de
/Graphcore/benchmarks/bert/implementations/popart/create_submission.py
ddf8731745cc7b133b05ae92aeabe36a4686f711
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Pixelz-Inc/training_results_v1.0
61b4555ad482b189d1966be3edd127858addd628
c507130c4e04c1f274a9ae8b7284aac79f26325a
refs/heads/master
2023-08-18T22:46:13.316503
2021-10-22T04:01:57
2021-10-22T04:01:57
399,047,712
0
0
NOASSERTION
2021-08-23T09:37:25
2021-08-23T09:37:25
null
UTF-8
Python
false
false
1,146
py
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. import argparse import numpy as np import subprocess import os import re # Specify which pod to run parser = argparse.ArgumentParser("Config Parser", add_help=False) parser.add_argument("--pod", type=int, choices=[16, 64], default=16) parser.add_argument("--sub...
[ "vsb@fb.com" ]
vsb@fb.com
250aa6a87d1c1c48865dcffcdf97c902d333221a
6d47251d3c0238ea6bfe71dc38bf1d303f3fa5ee
/lpfhpfbilinear.py
b88e12850858d037f9e21f0e02d7360d5fa34bb2
[ "Unlicense" ]
permissive
raneavit/signal-processing
4de8aa3d274e0ccc73a3bfbc9d4a9f1db6015b85
8be6d8a1d53589549c25d7f2f16743bff80bd104
refs/heads/main
2023-04-16T04:07:13.040292
2021-04-04T13:10:13
2021-04-04T13:10:13
354,471,827
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
# Low pass filter and High pass filter using Bilinear transform import numpy as np import math from matplotlib import pyplot as plt R = 10 C = 100e-6 Toe = 10e-3 Ts = 0.1e-3 h = Ts/Toe dt = 0.1e-3 f = 100 w = 2*(math.pi)*f t = list() t.append(0.0) u = list() u.append(0.0) v = list() v.append(1.0) HP =...
[ "noreply@github.com" ]
raneavit.noreply@github.com
9b9f7826b5bcb857fba59c2c6fdcb94b0b4bc2cb
627b497ec17062654ba9c84ddd49d2372f016611
/week10/Informatics/1/module3.py
39b874b62115ac65382a9e35e96549188e312660
[]
no_license
madinamantay/webdev2019
d25fcedf4920bc90f6e9309150fb46a4ce005921
55cad68fdfde1fbf69d0d792493fc8fee0548037
refs/heads/master
2022-11-13T21:43:07.563310
2019-04-22T22:43:46
2019-04-22T22:43:46
169,204,888
0
1
null
2022-10-23T22:49:03
2019-02-05T07:32:35
Python
UTF-8
Python
false
false
54
py
a = int(input()) b = int(input()) c=b//a print(c)
[ "madinamantay@gmail.com" ]
madinamantay@gmail.com
251fe325f06001deee40e6b87d71240c28d5b55d
4fbb25aaa1ec149ebc3fd99c57ccdc892890036c
/ovmc2.py
014495a143d3de0a2c9e33aaaff97082d5876398
[]
no_license
hpersh/oovm40
705d552dd2a270846ce80f3d417464e77511d234
3df78d1712ad8c1593b607fea7a159416ceb8f97
refs/heads/master
2021-04-07T12:56:12.318473
2020-11-20T07:08:28
2020-11-20T07:08:28
248,677,290
0
0
null
null
null
null
UTF-8
Python
false
false
6,205
py
#!/usr/bin/python # Compiler pass 2 - Optimize parse tree # # - Flatten operations like add, sub, etc. # - Collect constants in arithmetic expressions # - Highlight assignments to local variables import sys import copy import xml.etree.ElementTree as et outf = None line_num = 0 def copy_node(nd): return et.Ele...
[ "hpersh@yahoo.com" ]
hpersh@yahoo.com
6d913c96f57de466f1ae308dfc7f3356ce6f2a8f
e5325df2e1257bc552f474c61c153a67dc78bbeb
/online/section05-1.py
5726615c8ca075de91afb243af1cbfd9bdff1268
[]
no_license
O-Seok/python_basic
2733719ef6942d4f9d90b3c0cfefc397583bcfe3
7e0786c5a1d16c464ed0c9c3242cbd16e75030e1
refs/heads/master
2022-09-12T19:14:02.959532
2020-05-27T06:51:53
2020-05-27T06:51:53
267,207,509
0
0
null
null
null
null
UTF-8
Python
false
false
1,874
py
# Section05-1 # python 흐름제어(제어문) # 조건문 실습 # boolean print(type(True), type(False)) print('boolean') # example 1 if True: print('Yes') # example 2 if False: print('No') # example 3 if False: print('No') else: print('Yes') # 관계연산자 # >, >=, <, <=, ==, != print() print('관계연산자') a = 10 b = 0 print(a == b) p...
[ "totkfa789@gmail.com" ]
totkfa789@gmail.com
6f5f440ff15c9ebb1f90e81dfbae8583fd351f0f
b8ab7943e6d3daa033f0436574f350c12be08830
/SpeechConverter.py
808d1d082be2fcb205af421c85f7b7172254ba30
[]
no_license
Manan-Rastogi/Speech-Text-Converter
bba83841a39d6a67ff1d2e4617a7c3a3beb9351d
89559adc7ec408c5b6eff6329377d50eb9d1a46a
refs/heads/main
2023-01-21T09:06:52.931925
2020-12-03T15:12:07
2020-12-03T15:12:07
318,208,077
1
0
null
null
null
null
UTF-8
Python
false
false
417
py
import speech_recognition as sr from tkinter import * r = sr.Recognizer() def Convert(label1): with sr.Microphone() as s2: label1.config(text="Talk .... ") r.adjust_for_ambient_noise(s2,duration=0.2) audio2 = r.listen(s2) try: label1.config(text = f"Text: {r.recognize...
[ "mananras87@gmail.com" ]
mananras87@gmail.com
dd706abd123163b2c7bfa7004b9a46bfd4c21a3b
4f6b68af8fdca18ac31d01e131fdc4e9a99b07de
/suche/engine/result.py
2a05a1dafc8fec4541c1160e8cf4dcb50311ce57
[]
no_license
gpsgroup/suche
cdda90a16d02e44caa09c58550a7a70d9f3ae5e8
adb31db6fdb6913b7e92a3e8164b330bd130bf61
refs/heads/master
2021-01-21T13:11:57.622249
2014-09-07T14:48:10
2014-09-07T14:48:10
21,489,542
1
0
null
null
null
null
UTF-8
Python
false
false
2,124
py
''' result.py contains class for search result ''' from indexer.models import SucheURL from linguistic.queryhandler import QueryHandler import string import re class SucheResult: def __init__(self): self.title = '' def getHighlightedTitle(self): pass def setQuery(self,query): self...
[ "virtualanup@gmail.com" ]
virtualanup@gmail.com
0c3c1376b7dde485487ea32f0df347686f32d7bb
257802d6f3bd5433aab09c870333de4451bb347e
/src/models/optimized_model.py
7b6101a6d61803b41faaa2cb1a67812a80b1a5aa
[]
no_license
DavidColasRomanos/Minsait_Land_Classification
a9971e833500f46360b864efccf5920f122cca75
378f04a0bde095225330c62aae90f56d647715a8
refs/heads/master
2021-06-10T20:12:34.710738
2020-04-06T20:47:54
2020-04-06T20:47:54
254,346,828
1
0
null
null
null
null
UTF-8
Python
false
false
13,618
py
# -*- coding: utf-8 -*- """ Created on Fri Feb 28 11:25:25 2020 @author: javier.moral.hernan1 """ import pandas as pd from sklearn.metrics import f1_score from sklearn.metrics import accuracy_score from sklearn.metrics import confusion_matrix import matplotlib.pyplot as plt import seaborn as sns from xgboost import XG...
[ "javier.moral.hernan1@SCMS.ms.corp" ]
javier.moral.hernan1@SCMS.ms.corp
4ceace8e8c5366914edf2306319b88873fdc68cd
ed7636f2e3df24370ce7d05b63b0ded939c18d6a
/app/models.py
43ece4709c3ab556b059c6d8f44fe84814b816fc
[]
no_license
kflavin/stock_screener_web
977117f6451ea7b6948b64accf34f070529323d9
3d59179c298c243246ed6f66ac555cbabbd39c7e
refs/heads/master
2021-05-24T03:08:53.310277
2017-10-06T06:02:51
2017-10-06T06:02:51
49,934,242
2
0
null
2017-10-06T06:02:52
2016-01-19T07:19:30
Python
UTF-8
Python
false
false
22,448
py
import json import uuid from calendar import timegm import jwt import datetime from datetime import date import re import requests import sys from sqlalchemy import UniqueConstraint, desc, func, Float #from flask.ext.security.utils import verify_password #from flask.ext.security import UserMixin, RoleMixin from flask_...
[ "Kyle.Flavin@gmail.com" ]
Kyle.Flavin@gmail.com
fa064ee2e57c586c0511f9e1c6c95c722e976f1f
c2531698ec9469613a392ed0b3252a7386d06f75
/python/raindrops/raindrops.py
ebda893e87cf32344e8ad9bb80850a6a88963539
[]
no_license
KlimDos/exercism_traning
058eb36c90499c7fbf76c5b11dcdf0500dfe3475
22c3b1e8c3e5d25f96840cc6283eaf20ddfaeee4
refs/heads/master
2022-12-15T18:58:55.566046
2020-07-08T19:24:37
2020-07-08T19:24:37
161,189,724
0
0
null
2022-12-11T07:41:40
2018-12-10T14:45:16
Python
UTF-8
Python
false
false
237
py
def convert(number: int): result = "" if number % 3 == 0: result += "Pling" if number % 5 == 0: result += "Plang" if number % 7 == 0: result += "Plong" return result if result else str(number)
[ "aalimov@wiley.com" ]
aalimov@wiley.com
ea7399fbabd16da51234a2ea1af4e28de0718045
5a357e80a49438e68f8a0d6497864e0616d39a0f
/mac/google-cloud-sdk/lib/surface/compute/networks/peerings/list_routes.py
e025b21fd3d77b96ff6b6678ef664fccd2e8146a
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bopopescu/cndw
2dc443644a69ee6ef132414916bd14fe5cd7e60d
ee432efef88a4351b355f3d6d5350defc7f4246b
refs/heads/master
2022-11-23T16:11:46.077619
2019-12-16T04:51:01
2019-12-16T04:51:01
282,462,882
0
0
Apache-2.0
2020-07-25T14:42:23
2020-07-25T14:42:23
null
UTF-8
Python
false
false
4,161
py
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "raphael.carrier@gmail.com" ]
raphael.carrier@gmail.com
43cf537caaa7f052df58fdc82cf6db71f6b4dfa8
4ed3a2d59267a8c5acae1364e786856f0fdc12c6
/app.py
b9b00d4382cb185e3cec188f3674db8be489ebea
[]
no_license
brunnoaraujo/folhinha
5033ffc1dd079e648de36c63d10122a944b049d7
036937862d6e64754bd12d8300b2e90558030b3d
refs/heads/master
2021-01-13T10:22:14.988715
2016-10-31T04:22:56
2016-10-31T04:22:56
72,214,589
0
0
null
null
null
null
UTF-8
Python
false
false
924
py
from flask import Flask, request, g, render_template import datetime import time import sqlite3 import json app = Flask(__name__) lista = {} @app.route("/" , methods=['GET', 'POST']) def index(): global lista te = datetime.datetime.utcnow() t = time.mktime(te.timetuple()) temp = request.values.get("temp") ldr =...
[ "brunnobaraujo@gmail.com" ]
brunnobaraujo@gmail.com
8a790c71e531e5c37c1d97879cb3ef664a329ffd
952dbac03b90b23a2f56e7f43ca1fc7a2df31555
/.buildkite/images/docker/test_project/test_pipelines/test_pipelines/schedules.py
8e8504611192372750f1ec773a939cb4fce48130
[ "Apache-2.0" ]
permissive
zzztimbo/dagster
2b5c5413d16d4ca726259ed0b9f1e48648f5f7ec
5cf8f159183a80d2364e05bb30362e2798a7af37
refs/heads/master
2020-12-23T07:40:27.230870
2020-03-28T19:35:56
2020-03-30T22:34:47
251,444,191
1
0
Apache-2.0
2020-03-30T22:37:49
2020-03-30T22:37:49
null
UTF-8
Python
false
false
372
py
import datetime from dagster import schedules from dagster.core.definitions.decorators import daily_schedule from .repo import optional_outputs @daily_schedule( pipeline_name=optional_outputs.name, start_date=datetime.datetime(2020, 1, 1), ) def daily_optional_outputs(_date): return {} @schedules def defi...
[ "nate@elementl.com" ]
nate@elementl.com
e5905f69989260dab29aaa542a08875f02775413
88c67aed0f059523f545053286c92ed78f82227c
/lib/config.py
4c9e728449b76c911f8680937a0bba294de824f8
[]
no_license
dravix/pyventa
bcc173342d3880fff4a77eb22f115447e6a2f744
2080925db7198ce9e799863c261671cef37b05d0
refs/heads/master
2021-01-01T18:38:11.089306
2018-07-17T22:59:59
2018-07-17T22:59:59
7,473,803
0
0
null
null
null
null
UTF-8
Python
false
false
20,921
py
# -*- coding: utf-8 -*- import sys,os, base64, datetime, tarfile, ftplib from os import listdir from os.path import isfile, join, expanduser, exists, basename from PyQt4 import QtCore, QtGui from ui.ui_config import Ui_Form from lib.utileria import Respaldo, editorSimple from lib.librerias.configurador import Configura...
[ "dravix@gmail.com" ]
dravix@gmail.com
35bab64ed3684cc4d00f55c9dd9187cd697362c4
d6274dbccbb0e414d23f177288d03c2573835ead
/pythontest/venv/bin/pytest
b44661daa0f68c0b0d0dc845bea49ef5a528e70b
[]
no_license
MoTo-LaBo/Python-Guideline
79d24aa1326a167b76856c5d4c6a45ee55254388
cca5ce5b901c13ba4a3428168bffd192016259ba
refs/heads/main
2023-09-01T09:55:34.744971
2021-10-11T14:36:38
2021-10-11T14:36:38
374,849,182
0
0
null
null
null
null
UTF-8
Python
false
false
271
#!/Users/moto/Dropbox/udemy/PythonLecture/pythontest/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pytest import console_main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(console_main())
[ "moto.labo.desgin@gmail.com" ]
moto.labo.desgin@gmail.com
c5d0fe317f2faff7cf4a4bf824c2bdf6f19d51fe
9ac42ea56826dfdb8a584dc6dedd2b181dc5cffa
/opl/transportation_CPLEX_C_C++_Python/transport.py
61f4a468dfd7c9826214e5a330cd519df095ce56
[]
no_license
claudiosa/CCS
e8f731bf108d1221ae62017f82d088cb49d5c948
08bb0f32aba6a1a6b2ea605552d15f9cbc06d2be
refs/heads/master
2023-09-01T01:28:14.685489
2023-08-27T03:48:57
2023-08-27T03:48:57
44,081,079
41
23
null
2021-12-06T22:11:57
2015-10-12T03:03:43
TeX
UTF-8
Python
false
false
5,150
py
#!/usr/bin/python # -------------------------------------------------------------------------- # File: examples/src/python/transport.py # Version 12.9.0 # -------------------------------------------------------------------------- # Licensed Materials - Property of IBM # 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724...
[ "claudio.sa@udesc.br" ]
claudio.sa@udesc.br
a8e9b3a419e89b46c333a6c66a40139256b425cf
28957cec8b6f2a4e9c1f9e9ff794e40a3be44af0
/skk-gradient_method -0.py
2bae77e298c63fbe91dd8aaa5453b7adebcebe3e
[]
no_license
chanmin07/SKK_py
892c2f85309177b2833f9d4f97944d3c4b712159
c075bfb9d2246d9510a7325e0263f1c9ee68e3fd
refs/heads/master
2023-09-03T14:45:18.868555
2021-10-21T00:25:06
2021-10-21T00:25:06
414,959,576
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
# coding: utf-8 import numpy as np def numerical_gradient(f, x): h = 1e-4 # 0.0001 grad = np.zeros_like(x) # x와 형상이 같은 배열을 생성 for idx in range(x.size): tmp_val = x[idx] # f(x+h) 계산 x[idx] = float(tmp_val) + h fxh1 = f(x) # f(x-h) 계산 x[i...
[ "cksals2589@naver.com" ]
cksals2589@naver.com
66b6863e2c5b5b8478fe87707f387a7bf7465e05
cd49a02f2cd3b5fbce7afb035eaf82d613b6d1ca
/build/franka_visualization/catkin_generated/generate_cached_setup.py
86c2be0d38399384481e0502cb199a73ea072a3b
[]
no_license
robwoidi/ws_ur10e_hand
f7f1f00f61e0378e893469b3574bc13c72b8beb1
96d49c2a925309e478d937bb84c417cf6a3f9f7d
refs/heads/master
2023-08-20T14:56:04.057416
2021-10-28T08:35:58
2021-10-28T08:35:58
397,485,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
# -*- coding: utf-8 -*- from __future__ import print_function import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/noetic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, o...
[ "woidi@t-online.de" ]
woidi@t-online.de
836715d187fc3691f73986fa79e836102e97c9bf
1c390cd4fd3605046914767485b49a929198b470
/leetcode/stone-game-ii.py
13afc8289559c47c9c0592b37951de3d6573ad25
[]
no_license
wwwwodddd/Zukunft
f87fe736b53506f69ab18db674311dd60de04a43
03ffffee9a76e99f6e00bba6dbae91abc6994a34
refs/heads/master
2023-01-24T06:14:35.691292
2023-01-21T15:42:32
2023-01-21T15:42:32
163,685,977
7
8
null
null
null
null
UTF-8
Python
false
false
490
py
class Solution: def stoneGameII(self, a: List[int]) -> int: n = len(a) f = [[-9**9 for j in range(n+1)]for i in range(n+1)] for i in range(n + 1): f[n][i] = 0 for i in range(n)[::-1]: for j in range(1, n + 1): s = 0 for k in ran...
[ "wwwwodddd@gmail.com" ]
wwwwodddd@gmail.com
00237c737bbd82f3c298d93497fbbacd3a708295
0cb8c0b66c3f514ffb028d91eb7c2c3e114ac102
/simpleFrameId/main.py
c39b8bc1fefc622948c1a50f442e826cb534b5d3
[ "Apache-2.0", "MIT", "BSD-3-Clause" ]
permissive
UKPLab/eacl2017-oodFrameNetSRL
5ec373e5976d08c8d28eaad8834796631cddc361
d30e23d724c911d001cc5ca8f28bdac86eee1ce4
refs/heads/master
2023-09-04T04:37:35.600024
2017-04-03T14:55:21
2017-04-03T14:55:21
78,657,081
11
2
null
null
null
null
UTF-8
Python
false
false
6,207
py
from globals import * from data import get_graphs from extras import Lexicon, VSM from representation import DependentsBowMapper, SentenceBowMapper, DummyMapper from classifier import SharingDNNClassifier, DataMajorityBaseline, LexiconMajorityBaseline, WsabieClassifier from evaluation import Score from reporting import...
[ "iokuznetsov@gmail.com" ]
iokuznetsov@gmail.com
68d3953ebbdc68af663548b9cb935710c1d4e410
1f3f2778e82b49e722cfdec123261760129f1778
/python-T3H-baitap/Bai9-wxFormbuilder/baitap_7_5_menu.spec
a97bb33750641410cad6346bc8c9e9ca6b4c67df
[]
no_license
chuongnh1709/Python-Baitap
3d720e53edd34b541f6e0946dc79397dbb4ae6b4
cb643b451f711842d16f0cb2e40a4f0abad5c5a5
refs/heads/master
2022-12-15T00:11:41.983217
2018-11-24T11:11:08
2018-11-24T11:11:08
158,926,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,020
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['baitap_7_5_menu.py'], pathex=['D:\\PYTHON\\Python-T3H\\ThucHanh\\Bai9-wxFormbuilder'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], ...
[ "chuong_ngn@yahoo.com" ]
chuong_ngn@yahoo.com
a72af10701b785c3b85506a80fbf8c8a54581c94
334fe3f67d23028fe136d04815513b5cd214bffa
/home/migrations/0001_load_initial_data.py
ea31e35ea2075d1959a900809a0e92ff75d6ba16
[]
no_license
crowdbotics-apps/chaindomains-27569
08b77f59ac96e3e388550ee09269009c0f9278a0
4940abad1aad9751a78a961ec18314b3847419bc
refs/heads/master
2023-05-02T16:41:53.135585
2021-05-29T19:37:43
2021-05-29T19:37:43
372,056,492
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "chaindomains-27569.botics.co" site_params = { "name": "ChainDomains", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_o...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
201ffed9384800043371543a3a0d1d1766fb3c67
eaee21263de64696dbfc10e8fb8dfdaad4777e2f
/iris-species-engine/marvin_iris_species_engine/data_handler/acquisitor_and_cleaner.py
f1c24604001f5ab92c17aea387f617f6e0640077
[]
no_license
cctruc/engines
8d849113312cc4978243f7a37ae12669dfa3616d
50af53ef250b7f980ed7c11f3500b3b3c14bab78
refs/heads/master
2021-05-08T07:29:45.458697
2017-10-10T19:25:21
2017-10-10T19:25:21
106,857,050
0
1
null
2017-10-13T18:01:37
2017-10-13T18:01:37
null
UTF-8
Python
false
false
805
py
#!/usr/bin/env python # coding=utf-8 """AcquisitorAndCleaner engine action. Use this module to add the project main code. """ import pandas as pd from .._compatibility import six from .._logging import get_logger from marvin_python_toolbox.engine_base import EngineBaseDataHandler from marvin_python_toolbox.common.d...
[ "daniel.takabayashi@gmail.com" ]
daniel.takabayashi@gmail.com
b6e58cdb991e28ed538b347209a111b84b668cf4
242f9594cf03345e79965fd0c6eff9f5ed3042a9
/chapter08 - Functions/exercise8.5_cities.py
d73684d842352a09ced167d84df4681a899fc6e7
[]
no_license
Eqliphex/python-crash-course
f32c9cd864b89ac8d7b1ba0fe612a3a29081ed32
952ce3554129a37d0b6ff8a35757f3ddadc44895
refs/heads/master
2021-04-03T09:05:31.397913
2018-08-29T09:14:41
2018-08-29T09:14:41
124,416,384
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
def describe_city(city_name, city_country='europa'): print(city_name.title() + " is in " + city_country.title()) describe_city('reykjavik', 'iceland') describe_city('paris') describe_city('copenhagen')
[ "tbt_paddik@hotmail.com" ]
tbt_paddik@hotmail.com
acfcd4dcb8bb44c5ec44309b14b0f624ae7e5f75
0487c30d3d2a26ee62eb9e82c1b1e6edb7cb8b36
/tests/mclag/conftest.py
9f598fdbba64b9fc824d26f6ac91d4138c23757d
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
gord1306/sonic-mgmt
e4047cbcdb600591816215e765c7f30664cc4543
05094321ed58270ac06d1a0ef575a4ab9ea3ddd6
refs/heads/master
2022-12-17T08:05:58.944208
2022-06-06T02:34:48
2022-06-06T02:34:48
195,778,851
1
0
NOASSERTION
2019-07-08T09:21:07
2019-07-08T09:21:07
null
UTF-8
Python
false
false
7,879
py
import pytest import ipaddress import os from collections import defaultdict from natsort import natsorted from tests.common.reboot import reboot from mclag_helpers import get_dut_routes from mclag_helpers import get_interconnected_links from mclag_helpers import get_vm_links from mclag_helpers import DUT1_INDEX, DUT2...
[ "noreply@github.com" ]
gord1306.noreply@github.com
ee4999edd4bfd08c05a04db6537fefa5a7bfa1ed
b5b057f010788881e6120bded01acb54f77b2067
/api/serializers.py
5d08852fcd061a93a70eb51031a273ff9eb346f9
[ "MIT" ]
permissive
Fit-Tracker/api
b2cda63899e7ce0e60aa511db625be7fb756ae6a
417893e7c2b8d8e6f0e03cb97e52c25b59db0437
refs/heads/master
2021-01-10T17:21:53.861673
2015-10-28T18:14:51
2015-10-28T18:14:51
44,998,478
0
0
null
2015-10-28T18:14:52
2015-10-26T21:28:27
JavaScript
UTF-8
Python
false
false
983
py
from rest_framework import serializers from django.contrib.auth.models import User from .models import Activity, Stat class StatSerializer(serializers.HyperlinkedModelSerializer): activity_id = serializers.PrimaryKeyRelatedField( many=False, read_only=True, source='activity') timestamp = serializers.D...
[ "rryanburton@gmail.com" ]
rryanburton@gmail.com
dd942f1eee93ca0253b83d71cb58b50e1288383a
572f5a0020b6794e20f779c6efd34a9ef28c7cfe
/script/fixfa.py
29a044335c4b45150272cb0c7edb24082437b7ac
[]
no_license
xutaodeng/virushunter
43609b9f8cc8d81c5a3e7cfacccadf952057c3d0
7370d54ec20ec530be59185a79f8ddc248a25ab8
refs/heads/master
2022-11-16T16:50:49.176479
2020-07-12T07:52:51
2020-07-12T07:52:51
279,016,293
1
0
null
null
null
null
UTF-8
Python
false
false
596
py
#!/usr/bin/env python from collections import defaultdict import operator import sys import os import re def fixfa(infile, outfile): #illumina 33 or 64 f = open(infile, 'r') of = open(outfile, 'w') of.write(f.readline())#header seq=[] for line in f: seq.append(line.strip()) seq=''.join(seq) nrow = len(seq)/8...
[ "xutaodeng@gmail.com" ]
xutaodeng@gmail.com
30eefc0707aa5dc23ce0de03dd31963a50e58873
1850e13cf529af92674c8aad7393d6454cb47742
/backend/urls.py
35497cc732fbff9dd31afe917a6e64122b9d10c3
[]
no_license
Jerodsun/random-walk-backend
a6620d33e8ad6525852fdb29468053f7d01aa75e
3197bbddf004f3f04be5fd4e62a9481ca6724f4f
refs/heads/develop
2020-06-29T16:28:14.126842
2019-09-13T15:38:29
2019-09-13T15:38:29
196,791,917
0
0
null
2019-08-05T01:56:49
2019-07-14T04:05:33
Python
UTF-8
Python
false
false
1,424
py
"""backend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "Jerod.sun@live.com" ]
Jerod.sun@live.com
936274e923f6341006ab6fdf3427539c4177ef82
32d1171d05a42948410c939f03a03b7c9090d5ef
/migrations/0001_initial.py
2ea7bc1ac9e75a8377f5fe09ff52a9cc3909cf73
[]
no_license
RUTNIX/mainapp
9ee275c928bd520abf7e1f609bae0405b3b092fe
258c1cb9dc1ac61b7b48c5aa200702e370db6c2a
refs/heads/master
2023-04-22T22:00:36.534947
2021-05-08T09:28:45
2021-05-08T09:28:45
365,471,925
0
0
null
null
null
null
UTF-8
Python
false
false
4,422
py
# Generated by Django 3.2.2 on 2021-05-06 08:30 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Cart', ...
[ "alibejsenbekov@MacBook-Air-Ali.local" ]
alibejsenbekov@MacBook-Air-Ali.local
89bfa7186290914ff768759d71d15559b85d231c
de99915c1da74e79db3f06e7b01adac05c0978e1
/password_encrypt_test.py
25eb278110f70a017b068a9de02e2aa4c3a6e057
[]
no_license
Handosonic/Python
fdcaef7bf2dcdc3bd9532246d386afc6121f79e2
b0808d50ffe574d61dd6b14d8f3a95408943e05d
refs/heads/master
2020-08-07T19:07:44.307419
2019-11-29T16:11:00
2019-11-29T16:11:00
213,560,055
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
from password_encrypt import encrypt_pass pas = "12345" Aa = encrypt_pass(pas) name = Aa.enco() print('1-р үеийн Encode', name) name1 = Aa.encrypt_passv2(name) print('2-р үеийн Encode', name1) # Aa = encrypt_pass(name1) de_name = Aa.deco() print('real word:' ,de_name) de2_name = Aa.deco_v2() print(de2_n...
[ "noreply@github.com" ]
Handosonic.noreply@github.com
9f8807d34899ca34601903ded7198753894c9c7f
443f527f203742d7de7514e0a296b8a4dbc0e09d
/manage.py
f8a86f680feec46f4c4dbe3e8d5e5c4570184008
[ "Apache-2.0" ]
permissive
joelghill/fu_rss_feeds
b9bef3855ee8cb448c67c1e7a02dce617be12307
400c5b684f828d034592895f7cfcf6f0c7ec81ed
refs/heads/master
2021-01-01T07:25:45.051801
2020-02-08T17:14:14
2020-02-08T17:14:14
239,170,013
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fu_rss_feeds.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
[ "joel.hill.87@gmail.com" ]
joel.hill.87@gmail.com
2e3ebefefe3b64903a6ca5bffb0294fad122990f
8143175ba4c0cbd53eeaad407700d685adb16d10
/build/sshros/build/lib/sshros/test_ssh.py
51d2b076073a9400d5665a24b4d4ba70f250653f
[]
no_license
Hessy99/test
0007401ccde2fea6532b3f7294684b88a798bb2c
7fb44a1bd3e80647e65b74e33babd11c42704b53
refs/heads/main
2023-06-05T03:42:20.604532
2021-06-25T12:26:11
2021-06-25T12:26:11
379,245,520
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
import rclpy from rclpy.node import Node import paramiko from blackboard_interfaces.msg import TaskMsg hostname = "145.93.112.105" username = "student" password = "student" port = 22 class TestSubscriber(Node): def __init__(self): super().__init__('test_subscriber') self.subscription = self.create_subscription...
[ "hessy99@hotmail.com" ]
hessy99@hotmail.com
ff5e1fdb3decc270f83d5692506c228ba3c44406
3b9b4049a8e7d38b49e07bb752780b2f1d792851
/src/third_party/catapult/telemetry/telemetry/internal/backends/chrome/chrome_browser_backend_unittest.py
80ed7ad8d9e5b0b4ab91b06883ab712b52ce4cae
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
webosce/chromium53
f8e745e91363586aee9620c609aacf15b3261540
9171447efcf0bb393d41d1dc877c7c13c46d8e38
refs/heads/webosce
2020-03-26T23:08:14.416858
2018-08-23T08:35:17
2018-09-20T14:25:18
145,513,343
0
2
Apache-2.0
2019-08-21T22:44:55
2018-08-21T05:52:31
null
UTF-8
Python
false
false
4,001
py
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import mock from telemetry.internal import forwarders from telemetry.internal.backends.chrome import chrome_browser_backend from telemetry.i...
[ "changhyeok.bae@lge.com" ]
changhyeok.bae@lge.com
88964c824ca496d230f8260acabdb714a35f2bee
dded486ab2037e2ca4ea6c05439e1b434c6e9de9
/setup.py
a3b9d26e315c814e95dd9a525cede00d1ff0683f
[ "Apache-2.0" ]
permissive
istarion/changelog-helper
963eec600c7083986dc7b0e2d39722008184c9f3
2c99e7bbc898e98901d0d7209b8a1b68163f6329
refs/heads/master
2021-01-20T05:48:41.869107
2017-09-18T11:27:03
2017-09-18T11:27:03
89,812,131
0
1
null
2017-07-24T09:48:16
2017-04-29T20:49:36
Python
UTF-8
Python
false
false
1,971
py
import os from setuptools import setup, find_packages from setuptools.command.sdist import sdist from wheel.bdist_wheel import bdist_wheel from changelog_helper.version import __version__ as app_version def info(message): print('\033[92m{0}\033[0m'.format(message)) def error(message): print('\033[91m{0}\033...
[ "s.zavgorodniy@i-dgtl.ru" ]
s.zavgorodniy@i-dgtl.ru
cab76a33db11d3b5de6be283ceb925e455d40c0f
17ca5bae91148b5e155e18e6d758f77ab402046d
/analysis_SWarp/CID206/analysis/cutout.py
c896308c2a91b456da25ec34bdd083cd890e458b
[]
no_license
dartoon/QSO_decomposition
5b645c298825091c072778addfaab5d3fb0b5916
a514b9a0ad6ba45dc9c3f83abf569688b9cf3a15
refs/heads/master
2021-12-22T19:15:53.937019
2021-12-16T02:07:18
2021-12-16T02:07:18
123,425,150
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Mar 5 14:04:02 2018 @author: Dartoon Cut PSF and QSO for CID206 """ import numpy as np import sys sys.path.insert(0,'../../../py_tools') from cut_image import cut_image, cut_center_bright, save_loc_png, grab_pos import astropy.io.fits as pyfits ID = '...
[ "dingxuheng@mail.bnu.edu.cn" ]
dingxuheng@mail.bnu.edu.cn
a016e5c45666df7933632d619a5309801ae01cb5
6ec8a9edfba0a2619ede68250d4bda705d0d0893
/1/venv-36-mauro/bin/2to3-3.6
2eba472557ae2bd18cb3360fbe4e966cdb7e61c7
[]
no_license
lgdc-ufpa/predictive-immunogenetic-markers-in-covid-19
f7499b8e8fad0f4da79296044697f38babdfb3fc
06d58bd9921a758deb4951dfadf388d86c127dc0
refs/heads/master
2023-02-17T08:43:20.639751
2021-01-17T17:14:55
2021-01-17T17:14:55
330,265,115
0
0
null
null
null
null
UTF-8
Python
false
false
136
6
#!/home/bruno/Documents/dev/mauro/venv-36-mauro/bin/python3.6 import sys from lib2to3.main import main sys.exit(main("lib2to3.fixes"))
[ "brunoconde.ufpa@gmail.com" ]
brunoconde.ufpa@gmail.com
2657edc60d57e8e33385efd223c4450cfd5bd141
2ec57e04b5c96eeb2c596d7743b221c0aeb9d109
/pyphism/polybench/pb_flow_test.py
7dc8d29aed98f496850a557d6df0df6380dc5acd
[ "MIT" ]
permissive
fossabot/phism
2b0078407bf105ae1f6ddcbdf97de5da0ed723fa
e3f2250fdcdbe8bb86c3a422ad99832c67f5cb99
refs/heads/main
2023-08-20T11:04:36.976218
2021-10-07T09:22:02
2021-10-07T09:22:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
from pyphism.polybench import pb_flow
[ "vincentzhaorz@gmail.com" ]
vincentzhaorz@gmail.com
385c4385d31beef76f811ee26d6b414d50c4b3be
e51ed583d29f3d110df082d5378bb0dd49bec65b
/models.py
fbf2d105d0c1a3d7ce457b976f1739f149e3adcb
[ "Apache-2.0" ]
permissive
NithinKumaraNT/DNN_Quantizer
d3188232d7c624a79ae4e5b1202a80cc9f39caec
3a6885f77aabb9b539e554a34a1c7ad358a39336
refs/heads/master
2020-05-04T03:37:53.038149
2019-04-01T22:00:39
2019-04-01T22:00:39
178,950,333
2
0
null
null
null
null
UTF-8
Python
false
false
61,621
py
import numpy as np import tensorflow as tf from itertools import cycle import bayesian_dnn.stochastic as stochastic from bayesian_dnn.quantization import quant_convolution as qc from bayesian_dnn.quantization import quant_tensordot as qt from bayesian_dnn.quantization import quant_add as qa from bayesian_dnn.quantizati...
[ "nt.nithinkumara@gmail.com" ]
nt.nithinkumara@gmail.com
683e22478f7e3482dff2e0a08fef92edb548b1cf
863e6c320deedac962c7a27bfdaedf120e0ab7cf
/Design and Analysis of Algorithms II/week 1/jobschedule.py
6290947bdfce763e540b5c3d724f5dbb86175b61
[]
no_license
zhouyuzju/online_course
2206b0ced5d8d1ab86d904f509587a97a324db66
02e327d51cdf2c5433bcf0bd19bd61269eac5158
refs/heads/master
2020-06-04T03:24:45.518174
2013-05-24T13:36:44
2013-05-24T13:36:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
def subcmp(x,y): if x[0] - x[1] != y[0] - y[1]: return (y[0] - y[1]) - (x[0] - x[1]) else: return y[0] - x[0] file = open('./jobs.txt','r') num = file.readline() data = file.readlines() data = [(int(line.split(' ')[0]),int(line.split(' ')[1])) for line in data] #data = sorted(data,rev...
[ "Administrator@zhouyu-pc.(none)" ]
Administrator@zhouyu-pc.(none)
b46766095c65ea50ef86a2f12db87f3b0da13ea4
d05a813a38ce872f9fb8ba09f11e11cb6126664e
/CreateView/CreateView/wsgi.py
39c5c99bfd308648b1afdb2084428171f0d6efa2
[]
no_license
divyadivyaj19/proj6
d59aef6086457ccd0006851db93b113c573bc777
59b8e255da977ab5a5202b240ab5aa44215a594b
refs/heads/master
2020-09-21T02:34:58.593609
2019-11-28T13:10:33
2019-11-28T13:10:33
224,655,605
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for CreateView 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
[ "57679523+divyadivyaj19@users.noreply.github.com" ]
57679523+divyadivyaj19@users.noreply.github.com
d56e5dad4b73e0fec992181febaa033c0a55963c
1c1f7202b014aa71600e50c59539265b647c809e
/app/modules/core/service.py
4ccbadb085f2fc8cda18985a7031685289580c12
[ "MIT" ]
permissive
nguyennp/nhsx-website
9ec4dec07fc9f9dab781191ca2c8421f364c9161
03d43501a88794e613659b7d3148f7372f6b4754
refs/heads/master
2022-07-03T20:57:29.170159
2020-05-18T11:25:17
2020-05-18T11:25:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
from helpers.service import Service from django.contrib.auth.models import Group from wagtail.core.models import Collection, Page from django.utils.functional import cached_property from modules.core.models.pages import SectionPage, ArticlePage class GroupService(Service): __model__ = Group def ensure(self...
[ "andy@andybeaumont.com" ]
andy@andybeaumont.com
ee336fb20619a84e01df1019401d59013c3ea364
8d62f82999f8566678afdafdb9a79352943151d9
/scripts/national/nps/merge_sources.py
d329e42caeda6b25932bb8f08776921a838b7756
[]
no_license
MonumentLab/national-monument-audit
693abddd13b8d0c79a2bd83ac61cbb35b7544118
6364ad04369e4357f79a651519f50d344c063831
refs/heads/main
2023-08-15T00:17:04.215549
2021-09-29T14:56:28
2021-09-29T14:56:28
302,441,032
3
0
null
null
null
null
UTF-8
Python
false
false
6,739
py
# -*- coding: utf-8 -*- import argparse import inspect import os from pprint import pprint import sys import time # add parent directory to sys path to import relative modules currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) parentdir = os....
[ "brian@youaremyjoy.org" ]
brian@youaremyjoy.org
907bd681dcc3acfbbac66faa6a98806dd3b45c8c
35dcc3c3b24282d5a0246cc6eb919433ed6a43ed
/Metodo de Lagrange/Codigo de Metodo de Lagrange.py
8475db9877b9d9c68521dbb5a1dd1a94811d7b6b
[]
no_license
Azazyro/Metodos-Numericos-
73342aee74f34c41bcc37e6b02260953d52e2b33
383172608680f1d907631f3ec860b78cd01f93b2
refs/heads/master
2020-03-25T15:52:29.370153
2018-11-25T23:33:07
2018-11-25T23:33:07
143,904,901
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
from sympy import * import matplotlib.pyplot as plt import numpy as np x = [1950, 1960, 1970, 1980, 1990, 2000] y = [123.5, 131.2, 150.7, 141.3, 203.2, 240.5] pL = '' for k in range(len(y)): pL += str(y[k])+'*' Lxk = 1 for i in range(len(x)): if (i==k): continue pL += '(x - %f)...
[ "noreply@github.com" ]
Azazyro.noreply@github.com
58b31803381c6be3d170820f7e1603a527a02656
e0ef8aeddfdd82fa1333dca854bd664bd910ed2e
/columns/lib/authorization/__init__.py
f443a541ab2fca94998bf25c098dfe278f2c195d
[ "BSD-3-Clause" ]
permissive
yoshrote/Columns
afdb8f5b9e053133ca2ae3f81bb097da13023c98
c5784a286a8aac5bceb42de39ad3245239b53a7c
refs/heads/master
2021-01-10T21:08:57.538013
2011-07-19T00:34:52
2011-07-19T00:34:52
2,069,216
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
from columns.lib.authorization.exceptions import * from columns.lib.authorization.middleware import * from columns.lib.authorization.predicates import * #import logging #log = logging.getLogger(__name__)
[ "josh@yoshrote.com" ]
josh@yoshrote.com
69da7b313be8e430bf33a9018289bdb69cf7fe5b
0af29dc561a34a8191f456ec24f6a77bea104b89
/recurrent-neural-networks/neural-language-models/character-language-model-generator/generate.py
c49de28b1a5d4f2ac110f1b51257182cf72eb43b
[]
no_license
cheeyeo/Machine_learning_portfolio
c4eea8390b2540706d9b8e9df0b491f3f434494b
927cc9eb3de394dcaa00a4178d873df9798921e4
refs/heads/master
2020-05-04T11:16:22.188024
2019-05-25T14:18:58
2019-05-25T14:18:58
179,104,765
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
from pickle import load from keras.models import load_model import numpy as np from utils import sample, print_sample # load the model model = load_model('model-final.h5') # model.summary() # load the mapping char_to_ix = load(open('char_to_ix.pkl', 'rb')) print(char_to_ix) ix_to_char = load(open('ix_to_char.pkl', 'rb...
[ "ckyeo.1@gmail.com" ]
ckyeo.1@gmail.com
1235d9367d5c72763a0801847544933032038078
e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6
/venv/Lib/site-packages/pybrain/tools/xml/__init__.py
4136b124af01058151d4f10e6b7bd26739fe710f
[ "MIT" ]
permissive
ishatserka/MachineLearningAndDataAnalysisCoursera
cdf0f23a58617e17d6b938e3a9df17daae8585e4
e82e772df2f4aec162cb34ac6127df10d14a625a
refs/heads/master
2021-09-11T01:39:26.228392
2018-04-05T14:33:39
2018-04-05T14:33:39
117,153,454
0
0
MIT
2018-03-27T05:20:37
2018-01-11T21:05:33
Python
UTF-8
Python
false
false
88
py
from networkreader import NetworkReader from networkwriter import NetworkWriter
[ "shatserka@gmail.com" ]
shatserka@gmail.com
b5349516c8d7066980c07a5272e58b52de0c6b95
a857d1911a118b8aa62ffeaa8f154c8325cdc939
/toontown/coghq/CountryClubLayout.py
83fb00d222c51e6a044eb1391c9493d314910f27
[ "MIT" ]
permissive
DioExtreme/TT-CL-Edition
761d3463c829ec51f6bd2818a28b667c670c44b6
6b85ca8352a57e11f89337e1c381754d45af02ea
refs/heads/main
2023-06-01T16:37:49.924935
2021-06-24T02:25:22
2021-06-24T02:25:22
379,310,849
0
0
MIT
2021-06-22T15:07:31
2021-06-22T15:07:30
null
UTF-8
Python
false
false
8,370
py
from direct.directnotify import DirectNotifyGlobal from direct.showbase.PythonUtil import invertDictLossless from toontown.coghq import CountryClubRoomSpecs from toontown.toonbase import ToontownGlobals from direct.showbase.PythonUtil import normalDistrib, lerp import random def printAllBossbotInfo(): print 'roomI...
[ "devinhall4@gmail.com" ]
devinhall4@gmail.com
d0de3f7c1b1efdf289890092a2f58153bb5ff800
18465378796d46c3158548d376a55ab47400c388
/examples/deep_learning/human_pose_estimation/openpose.py
9f7b064e6c370fcc17605f6c16c3818800597050
[ "BSD-3-Clause" ]
permissive
chokobole/felicia-examples
0b8a9a2a3f1885edad0bd50b01862a47dd467dc6
83303cf0f4bf688e9794ee574394d98619a16007
refs/heads/master
2020-09-05T16:18:38.788277
2019-11-30T06:42:14
2019-12-05T11:17:11
220,153,764
0
0
null
null
null
null
UTF-8
Python
false
false
1,595
py
# Copyright (c) 2019 The Felicia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import cv2 import pyopenpose as op from felicia.python.command_line_interface.flag_parser_delegate import FlagParserDelegate import felicia_p...
[ "chokobole33@gmail.com" ]
chokobole33@gmail.com
5c2f0601e40d435b7a245bf5cbd6fe6bc4c0bb4b
fdf19f2fffcc0efc92e214b7adf07a1b28e513f2
/news/news/asgi.py
a714c79dd757e955fa28c1be367966aa0fcb3f84
[]
no_license
nsr888/django_news
f991d15c906c206f10187a7af808b2302306a43a
33924d141a1029a3061865f0a4f395093b6a61b3
refs/heads/master
2023-08-30T19:59:20.116926
2021-09-27T18:31:59
2021-09-27T18:31:59
399,358,637
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
import os import django from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "news.settings") django.setup() from chat import routing application = ProtocolTypeRoute...
[ "sun604@gmail.com" ]
sun604@gmail.com
24fcd3ca7a366ffab5b4baefde01550aceb4ff7e
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/7ZWinyRcC4AoxbqdG_15.py
bd2e9e8972e49ccc358f2f1668e443796bebcb70
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
""" Given a positive integer `n`, compute the nth term in the Fibonacci sequence. For those of you that have been living under a rock in the mathematical world, here's the definition: * The first and second terms are 1. * nth term is the (n-1)th term + the (n-2)th term. So the 3rd term is the 1st term + the 2nd...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
67e81eb550afba48adaa128eed4fd749a1e9de28
49f70d315c4a0824c513a1b093e577dcaa3b76ff
/Ejercicios/DesdeCero/10.- Modulos Paquetes Archivos/2.- Modulo 2/inicio.py
1108fbf86898492a87307f10e68bd8b9ecbfac28
[]
no_license
JavierEsteban/TodoPython
acda6c3a9b9ee69255ca5bfe0c2163e886a2f29b
ba09e2f8ea336f17880e61a2d3e192e92ffa1d66
refs/heads/main
2023-03-24T21:27:56.507323
2021-03-23T06:00:56
2021-03-23T06:00:56
350,537,430
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
import datos2 nombre = str(input("ingrese su nombre..")) datos2.saludar(nombre)
[ "jaestior@gmail.com" ]
jaestior@gmail.com
467285dff10e1f7735fe251a800312f3f385587e
02c488d803bfea79f51c555e9d32fbfdae5866bc
/scripts/procedures/QuickAr.py
b5beee2d9a793a99ed2a3ffd9e1680d243c706c4
[]
no_license
ANGLPychron/support
20f51f44fd71ba1826556056270c977532e20e73
5aa55e222e87ff82a135127c05569c17df4eff05
refs/heads/master
2020-07-24T08:39:08.074359
2019-09-30T20:18:37
2019-09-30T20:18:37
207,869,065
0
0
null
null
null
null
UTF-8
Python
false
false
1,605
py
''' ''' def main(): ########################################### # UA ANGL Thermo Ar cocktail script (gettered air) info('Argus VI Ar Procedure Script') #reset valving, pump prep/MS close('8') # MS inlet open('1') # Prep ion open('9') # MS ion close('2') # Aux 1 ...
[ "ANGL-pychron@ariz.edu" ]
ANGL-pychron@ariz.edu
bcf04cfc3600dc60c912ad51f41c9b6f7ea89ee2
a79e7562e573222930ecccaedf4239d108717ba3
/sockets.py
0367f5fdfdc4c5e86894c57d70fdfb5e739bd0cd
[]
no_license
atilasos/pythonlearning
f21e2516ffd3135007d48585292c9b35d14bf413
cbcbb41184685c49cdcfc96b1b44e1deff51d3ba
refs/heads/master
2021-01-10T14:01:34.099926
2015-11-29T17:30:04
2015-11-29T17:30:04
47,004,059
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
import socket import re url = raw_input('Enter url - ') # shortcut for ass data if len(url) < 1: url = 'http://www.pythonlearn.com/code/intro-short.txt' host = (re.findall('http://(.+?)/', url))[0] print 'Connecting to host:', host url = 'GET ' + url + ' HTTP/1.0\n\n' mysock = socket.socket(socket.AF_INET, socket....
[ "Igor Almeida" ]
Igor Almeida
9b111038bda66c834b7cebbdc7b6c5728f2a9351
138909a17b9f4b82ec91a209443864fbd18c1248
/FlippingBits.py
504c12daade03190387d36e00544086e1d9dd07e
[]
no_license
surbhilakhani/Hackerrank
70fc0a7bf85e73dbc6bd1f4695e148f7080a0c59
f6cea99c5787c10ea5817bb9c4f3be8da1f6a73c
refs/heads/master
2021-01-19T03:03:05.435417
2016-07-01T13:45:19
2016-07-01T13:45:19
62,326,553
0
0
null
null
null
null
UTF-8
Python
false
false
82
py
for i in xrange(int(raw_input())): print 4294967296 - long(raw_input()) - 1
[ "noreply@github.com" ]
surbhilakhani.noreply@github.com
a08f6e963a4605590dcaaa35d2ee5f8f542c6f94
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/l3/lbrtdif.py
b71a0b6e545d3f336fa9d52dc80329859f9e8a59
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
9,696
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
bd3c6b494860eff351aa8ddd54c4b441aaca6f19
38a6d81f2a75d147ce82487197c10e15c2266db8
/main.py
350824f2628e52584aa686c841e8f55b87628c5d
[]
no_license
LinarAbdrazakov/Autopilot_ver2
9302aba804346191c85d96a742c306e5fbe5023f
0e26ee7da0a3fa35bd815656ee92203eef4f7303
refs/heads/master
2020-04-25T23:35:56.137688
2019-02-28T16:57:00
2019-02-28T16:57:00
173,151,062
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
import io import socket import struct import time from picamera.array import PiRGBArray from picamera import PiCamera import numpy as np import cv2 import NeuralNetwork camera = PiCamera() camera.resolution = (640, 480) camera.framerate = 10 rawCapture = PiRGBArray(camera, size=(640, 480)) time.sleep(0.1) print "[I...
[ "linar200015@gmail.com" ]
linar200015@gmail.com
43b3937f37516322caec140b93e86cb05ce9a0f0
ce8bb40bf2b688f19ab8bcc20cfd58994413bc0f
/session_and_cookie/session_and_cookie/session_and_cookie/settings.py
5f33906bebe357ef0bc4e9f6c12fabc14535a727
[]
no_license
Fover21/project1
457f452d7f6e7ecbfc81a18512377ebc5457f3f6
84d596caf5701d7d76eee8c50f61bcb6150c57f2
refs/heads/master
2020-03-24T20:01:51.506348
2018-12-26T06:07:45
2018-12-26T06:07:45
142,955,917
2
0
null
null
null
null
UTF-8
Python
false
false
3,253
py
""" Django settings for session_and_cookie project. Generated by 'django-admin startproject' using Django 1.11.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ ""...
[ "850781645@qq.com" ]
850781645@qq.com
b110a452693ee2f5d626be0e4fabfd183f8ffe29
8178df63d0d2ff21587d200c6c5b124bc438d140
/strategy/Test1.py
a348076875dae9a09d50732c45e69d9aecb366e0
[]
no_license
CrazyMoney/backtreader_python
8c4937a817f3280d0ad8403257dd16b887fbd4ad
c085f8f6913b0cc1cbdeb4fd65c5de8f0bc714b0
refs/heads/master
2023-04-26T12:01:02.555935
2021-05-10T08:17:33
2021-05-10T08:17:33
365,119,587
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
# import baostock as bs # import pandas as pd # # # def download_data(date): # bs.login() # # # 获取指定日期的指数、股票数据 # stock_rs = bs.query_all_stock(date) # stock_df = stock_rs.get_data() # data_df = pd.DataFrame() # print(stock_df) # # for code in stock_df["code"]: # # print("Downloading ...
[ "1277582508@qq.com" ]
1277582508@qq.com
396556eb2dfaf94d2ba0f13b43c91fd1a0ef439b
65c5037c7a554760a8fbf1c5f89e3de8fceab23f
/tests/test_cgcnn.py
31574c13b3f67331a0997d2f6c25cadc869b82c6
[]
no_license
UON-comp-chem/GNNforCatalysis-DGL
22dedf04e58cffa43d2a9fbbf82ff050ae0a5dee
5175e05a8825003e3d3483b1ab43ebdddc086518
refs/heads/main
2023-04-17T10:17:10.585720
2021-04-30T01:18:50
2021-04-30T01:18:50
362,988,363
2
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
#!/usr/bin/env python # coding: utf-8 # Author Xinyu Li # Modify the python path so that we find/use the .gaspyrc.json in the testing # folder instead of the main folder import os import sys sys.path.append(('/home/xinyu/WSL-workspace/Repos/GNNforCatalysis-DGL')) def test_model_cgcnn1(): import dgl import torc...
[ "lixy52@qq.com" ]
lixy52@qq.com
01f9c6b23a8ab69cd0f6440c3da080c5423e4374
698b80c71e859bbdf9743363c4800be0b8ffd8aa
/parse_weapons.py
0071d3ce95f8da5acb89ccd60f48e3e2abe55673
[ "MIT" ]
permissive
mkristofik/starfighter
0abcd971ab1bbd96910ee200012252970ac40426
1ec4c67a6356995ce624a966567ea4fca8638999
refs/heads/master
2021-08-30T05:13:02.772347
2017-12-16T04:28:06
2017-12-16T04:28:06
111,362,262
0
0
null
null
null
null
UTF-8
Python
false
false
1,698
py
"""Convert a weapons data file in VB6 format to JSON.""" import json import struct import sys from vb6_stuff import * def get_locations(locs): ret = [] txt_locs = str(locs) if '1' in txt_locs: ret.append('cockpit') if '2' in txt_locs: ret.append('fuselage') if '3' i...
[ "kristo605@gmail.com" ]
kristo605@gmail.com
6fa914d96fdd4d51fdb541e868b7bcc1c3173c10
603d371b0fb34cb71182a5433e35a61112e4442f
/voice_recog.py
c1974da6b73ffa5570e36706f5dfb5c61e9bc812
[]
no_license
Ant2000/FreeCam
9f2da50cae6cab3b37bacc80cf1cff29f7417c79
c1f9719dc5359003d8400b736f5c2e32443a8945
refs/heads/main
2023-04-24T17:26:57.040008
2021-05-14T06:39:36
2021-05-14T06:39:36
354,518,104
1
0
null
null
null
null
UTF-8
Python
false
false
4,815
py
""" This code is for obtaining voice recognition results from google cloud. """ import speech_recognition as sr import sqlite3 as sq3 with open("./key.json", 'r') as f: GOOGLE_CLOUD_SPEECH_CREDENTIALS = f.read() connection = sq3.connect("Parameters.db") cursor = connection.cursor() cursor.execute("UPDA...
[ "ajosekuruvilla@gmail.com" ]
ajosekuruvilla@gmail.com
a0bc5776b6315165b542ab97826bd7deab9f5951
081fa33cad653555a1b9dca4ccb07b8946b31108
/Map Filter Reduce/Map.py
56686a66eac19181963322521b997651098156e3
[]
no_license
ArtheadCourses/AltenGbg
fe0e5de8680d42da3cbba69be99888783988186d
cbb688b799acc5934c308b1b17da2c9d4f4b3e41
refs/heads/master
2020-07-07T11:09:03.376063
2016-11-17T21:13:55
2016-11-17T21:13:55
74,036,087
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
def c2f(t): return (9.0/5) * t + 32 def f2c(t): return (5.0/9) * (t-32) def main(): temp_in_c = [16.3, 21.3, 19.7, 15.4] #f_temp = list(map(lambda t:(9.0/5) * t + 32, temp_in_c)) f_temp = [(9.0/5) * t + 32 for t in temp_in_c] c_temp = list(map(f2c, f_temp)) print(f_temp) print(c_temp...
[ "joakim.wassberg@arthead.se" ]
joakim.wassberg@arthead.se
0cf9ec89e897b2cf2d407a7449bff2e420657f5f
01e4f0720c32bc9f935a7d1588ad5e80eb6dc33a
/Django/Project1_1_5_4/pineapple/views.py
49c74693131e24f22375a9cfaa2c283f767c4f1f
[]
no_license
nguyenvu2589/Python
b65601e3c1e2d996087bb4fba36f3c30ebf5e4b7
9e295266d6aa2d84d9409fa9f9117030aad5fd4b
refs/heads/master
2020-06-29T07:05:39.260148
2017-01-28T19:57:04
2017-01-28T19:57:04
74,441,488
0
0
null
null
null
null
UTF-8
Python
false
false
4,822
py
# Create your views here. from django.http import HttpResponse from django.template import RequestContext from django.shortcuts import render_to_response from pineapple.models import Category, Document from pineapple.models import Page from pineapple.form import CategoryForm from pineapple.form import PageForm, Documen...
[ "noreply@github.com" ]
nguyenvu2589.noreply@github.com
eb9393b0f5d36abf9af3eb9be421adb79d467f9f
07870a9ea2b2354f0b2bf5c336b58d58cbb0969f
/Level2Code/lesson7page/HomeworkNeed/firstapp/models.py
baf95d8e6f58883e3a5a2f2e762b018cb1895724
[]
no_license
Kathylovepdf/Python-Web
24cf359323f973e95585bec5dcf89616e07d6946
43ae05ff2d4c602fdb8f4285418bdd3f0b26ff7f
refs/heads/master
2020-03-17T12:50:50.022464
2019-06-20T07:57:00
2019-06-20T07:57:00
133,605,699
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
from django.db import models from faker import Factory # Create your models here. class Article(models.Model): title = models.CharField(max_length=500) img = models.CharField(max_length=250) content = models.TextField(null=True, blank=True) views = models.IntegerField(default=0) likes = models.Int...
[ "287778678@qq.com" ]
287778678@qq.com
e92e7215b424397a8125ce7fa0b0d06457ba4f01
bb0b75941b431da605f0aeca334d6c2f0289a779
/day11/part1.py
fdfd9b0548644c578ae2ef83647c0d7c7f4d4d3c
[]
no_license
Danis98/AdventOfCode2017
d6a6f0d57e9de12cbffd553afdf9cf0d02992df0
df719ae684d62c73cb21aef94fc58b7c7e4410e8
refs/heads/master
2021-09-01T06:21:16.389957
2017-12-25T09:39:59
2017-12-25T09:39:59
112,966,823
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
cmds = open('day11.input').read().rstrip().split(',') off = { 'n': (0, 1), 's': (0, -1), 'se': (1, -.5), 'ne': (1, .5), 'sw': (-1, -.5), 'nw': (-1, .5) } pos = (0, 0) for cmd in cmds: pos = tuple(map(sum, zip(pos, off[cmd]))) dx, dy = float(abs(pos[0])), float(abs(pos[1])) dist = dx + ((d...
[ "danielevenier1998@gmail.com" ]
danielevenier1998@gmail.com
f75d6c451ee477af383d38927f032c58996f2f34
42081a2e76ef711cdd8f0fb01dcf7eab77036e43
/py/ForDeepLearning/신경망내적_구현정리.py
66c18103b07cc484b2abaafa5d6c31833a0abcff
[]
no_license
suyeony0/Junior2ndSemester
a9564ba9d3d7bf045635bf5f64e8da4d6f220f91
0c1dc5ce151b4e0d35bb882ae0687b3d296dc6e7
refs/heads/master
2022-01-14T19:57:05.681723
2019-06-22T04:34:11
2019-06-22T04:34:11
193,189,864
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
import numpy as np from sigmoidFunc import sigmoid def init_network(): network={} network['W1']=np.array([[0.1,0.3,0.5],[0.2,0.4,0.6]]) network['b1']=np.array([0.1,0.2,0.3]) network['W2']=np.array([[0.1,0.4],[0.2,0.5],[0.3,0.6]]) network['b2']=np.array([0.1,0.2]) network['W3']=np.array([[0.1,0....
[ "gjsgud2@gmail.com" ]
gjsgud2@gmail.com
ac09a157c61df12e34aabe40f75dba7a1c21edc9
592e97ebecdeba71c6b4782c439077b9a19a790e
/lib/python3.7/site-packages/numdifftools/nd_scipy.py
b53f6dd857b79d7cc2f3ebcacc27996751cfef12
[]
no_license
ChiLi90/LifetimeFit
d9d194d1727727c515c3f64c9d48dd19ff0131e0
c6d7392bbe910387acf4552db67fdcb09cf01211
refs/heads/master
2023-03-24T07:44:18.125777
2021-03-21T22:31:02
2021-03-21T22:31:02
350,130,250
0
0
null
null
null
null
UTF-8
Python
false
false
4,477
py
from __future__ import division, print_function from scipy.optimize._numdiff import approx_derivative from scipy.optimize import approx_fprime import numpy as np class _Common(object): def __init__(self, fun, step=None, method='central', order=2, bounds=(-np.inf, np.inf), sparsity=None): ...
[ "chili@Chis-iMac.local" ]
chili@Chis-iMac.local
4085071c89dee09290ed07614c62dadf4a3a40e3
1390903cd5308a8c88efaf369160d78d6230ef58
/xunlei-lixian/lixian.py
c3490432b5b7d4a45bc629b29e4884f75bf787c8
[ "MIT", "BSD-3-Clause" ]
permissive
twotreeszf/AriaThunder
119fdddce951cf3d21aa6b7badea40d7c8fcb441
c6e052b0e10e9d4c18b4cf996b1d79fd9fb1eb22
refs/heads/master
2021-01-10T21:20:43.229629
2013-12-06T05:17:05
2013-12-06T05:17:05
14,971,878
19
8
null
null
null
null
UTF-8
Python
false
false
42,934
py
__all__ = ['XunleiClient'] import urllib import urllib2 import cookielib import re import time import os.path import json from ast import literal_eval def retry(f_or_arg, *args): #retry_sleeps = [1, 1, 1] retry_sleeps = [1, 2, 3, 5, 10, 20, 30, 60] + [60] * 60 def decorator(f): def withretry(*ar...
[ "zhangfan@xiaomi.com" ]
zhangfan@xiaomi.com
40a43128f37987e7fb6d5d88c9328c2e06f19768
85185d1f8151d2c9cc8ab14bdf41ced54bf22a81
/Python 2.7/Windows/File Handling Projects/FileCopy.py
a47c4ad29d214a13810ffbf7b5c8efcd03802af7
[]
no_license
giefko/Python
a3ec7df9d67f1c5befbe9adb0ffaddb5fcdf65e5
ab0a4dbda45a0da315056be3eecb59a24bb70f00
refs/heads/master
2023-06-07T15:52:36.333622
2023-06-02T10:44:54
2023-06-02T10:44:54
60,038,281
3
1
null
null
null
null
UTF-8
Python
false
false
96
py
import shutil shutil.copy2('C:path\\filetocopy.file', 'C:\\destinationpath\filetocopy2.file')
[ "noreply@github.com" ]
giefko.noreply@github.com
ba76db70515883d184b8a3e17bb109a334de04b3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03088/s073225556.py
2e6dc49100efed193992418a7fe03b5008474337
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
n = int(input()) memo = [{} for i in range(n+1)] mod = 10**9+7 #想定解法の写経 def ok(last4): #隣接する二つを入れ替えてAGC二ならないかどうかをチェック for i in range(4): t = list(last4) if i >= 1: t[i], t[i-1] = t[i-1], t[i] if "".join(t).count('AGC') >= 1: return False return True def dfs(no...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2bcba6fe8c0b61474bdd88ac3bca8d433864894c
eb38517d24bb32cd8a33206d4588c3e80f51132d
/def_filter2.py
f9fe2bfdae95b7b81052c6604ab9bcd876040533
[]
no_license
Fernando23296/l_proy
2c6e209892112ceafa00c3584883880c856b6983
b7fdf99b9bd833ca1c957d106b2429cbd378abd3
refs/heads/master
2020-04-01T18:01:41.333302
2018-12-04T23:45:53
2018-12-04T23:45:53
153,466,681
2
0
null
null
null
null
UTF-8
Python
false
false
3,537
py
import numpy as np from matplotlib import pyplot as plt from scipy import interpolate import cv2 import imutils from operator import is_not from functools import partial from pylab import * from random import * img = cv2.imread('ex2_ppp.png', cv2.IMREAD_COLOR) dimensions = img.shape altura = img.shape[0] width = img....
[ "fernando23296@gmail.com" ]
fernando23296@gmail.com
4e4c1fe5871fcd7f67396dca52b856ccb920e14d
c958b2dcb95ec9c57ba5142723adee0a1db6a4cf
/belajarpython1.py
f3a31760eef083633f12f20bb98927881fbf5c06
[]
no_license
romstay/belajarpython
f2591a9a85d545e0e50a51e46f63b80f030b6d46
03995b3549784f5251c9a3fba97632492ed10039
refs/heads/main
2023-08-24T10:50:14.930735
2021-10-25T08:10:10
2021-10-25T08:10:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
nama = input (" nama lengkap : ") panggilan = input (' nama panggilan : ') ttl = input (' tempat dan tanggal lahir: ') umur = input (' umur: ') alamat = input (' alamat: ') namauniversitas = input (' nama universitas: ') nim = input (' nim: ') prodi = input (' prodi: ') nohp = input (' no hp: ') print (" jadi nama leng...
[ "romikhoiril@gmail.com" ]
romikhoiril@gmail.com
dbde8a8adcdc8fc7e35a9f9a01feccb0711f4d86
5dea4c0e1edae0d7b1fe18382d163994381acd09
/fivetimes.py
c7b9fdca0da649765a7981b01c69e73502a6b5a4
[]
no_license
cesarcamarena/automate-the-boring-stuff-with-python
8bf8df0801a0255423d9d121c7f3f9e5800f1ae0
5334bf41f484c215a15b943a501d009aea4c24ab
refs/heads/main
2023-08-24T17:25:09.895110
2021-10-26T22:13:39
2021-10-26T22:13:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
print('My name is') for i in range(5, -1, -1): print('Jimmy Five Times ' + str(i))
[ "itscesarcamarena@gmail.com" ]
itscesarcamarena@gmail.com
771e67da9791e83017cf0282bf8a2f46b78ff598
210c034c4903fd4254632e4b2975044188ef4c0d
/poke/views.py
24384c166d4ee942189d649e482df71da9f14002
[]
no_license
EwgenyKuzmenko/Poke_test
b8ddcf22224b2f161dbe30a38e059a040d07355a
e5d89f2e9e4175a1a365ee6a820ecb111ae4639c
refs/heads/master
2023-06-24T16:02:49.048818
2021-07-26T07:32:17
2021-07-26T07:32:17
389,429,331
0
0
null
null
null
null
UTF-8
Python
false
false
2,739
py
from rest_framework import generics as apigeneric from .forms import RegisterFormUser from django.contrib.auth.views import LoginView, LogoutView from django.views import generic from django.contrib.auth.mixins import LoginRequiredMixin from .models import PokemonModel import requests import json from django.shortcuts ...
[ "jekajeka63@MacBook-Pro-AnyMac.local" ]
jekajeka63@MacBook-Pro-AnyMac.local
7070f85803c6e3000a291224b57c0c5e5c857558
9daa81d37546145eddd039d9d409e1e6f217ebf7
/noise2noise/trainer.py
c8c0567a96239095fbe204cf7bfa7a851be51f35
[]
no_license
ver228/vesicle_contours
e4850ffc571ac515850378b9ec5c5621a76bc085
d6619673d8804bb4752c9dbd083dc299ae68304c
refs/heads/master
2020-03-15T22:18:06.765956
2019-01-04T11:15:18
2019-01-04T11:15:18
132,370,438
0
0
null
null
null
null
UTF-8
Python
false
false
3,493
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 17 16:46:42 2018 @author: avelinojaver """ from .flow import CroppedFlow, _root_dir from .models import UNet from tensorboardX import SummaryWriter import torch from torch import nn from torch.utils.data import DataLoader import os import datetime ...
[ "ver228@gmail.com" ]
ver228@gmail.com
616fcb5f71f73126b13f14583f8a2a4ecebc3c9f
93408557fe012551095256108f20390e874a2077
/find_smallest_largest_num_p3.py
20592b30537ed61b4e1b7f2afcff111eef584eb7
[]
no_license
mamonraab/python-scripts
2ed279fb28afae548b0070a6daa0b9f1e967788e
7f4b02e9cbf01c163dfda95e476765cf1c4f095f
refs/heads/master
2021-05-08T15:30:03.366827
2016-06-13T08:05:30
2016-06-13T08:05:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
# Find the smallest and largest numbers # This allows the user to enter a list of numbers until the user types done or press enter then the prompt would stop # Author: Ritchie Ng largest = None smallest = None while True: num = input('Enter a number: ') # Handle edge cases if num == 'done': break...
[ "ritchieng@u.nus.edu" ]
ritchieng@u.nus.edu
73acb3c61758d2f0f0d38d86153818d8982d72a0
a7bdc804b393ee93c5008b7ff54f1fe764c42d5c
/test.py
89bb3514936efa1b6925057fed06e21c8db552bc
[]
no_license
dbdmsdn10/python
800edf08e883a0702493bfd492a6193cf86cac05
7e50c25e8c252886f2665b4dbf8a8c2c727ca8ea
refs/heads/master
2022-12-27T09:37:35.610351
2020-10-13T11:09:41
2020-10-13T11:09:41
299,592,844
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
46
py
print("korean") print("52") print("ÇѱÛ")
[ "dbdmsdn10@gmail.com" ]
dbdmsdn10@gmail.com
845b58817b301ff27abb99723bdaa9be18f325ff
a5afef3c1e71baeae348a02f8a75479faa6f1dff
/Serial_output/Host/lidar_visualizer.py
b627e0dcc59b7d81bbf7c19f2b9c83210b3cfdee
[]
no_license
xinanhuang/SCOUT_LiDAR
73df397706ed95b1ae4f7daaa6711e64e25885bb
46eceee7ee2eef5d78a961ba494e0adf218b310a
refs/heads/master
2022-12-04T00:03:51.458505
2020-08-04T02:53:32
2020-08-04T02:53:32
284,855,853
0
0
null
null
null
null
UTF-8
Python
false
false
2,120
py
##!/usr/bin/env python from PyQt5 import QtCore, QtWidgets import pyqtgraph as pg import numpy as np import serial com_port = "/dev/cu.usbmodem38A2377D30391" # This is on mac os x. For Windows/Linux: 5 == "COM6" == "/dev/tty5" baudrate = 1440000 class MyWidget(pg.GraphicsWindow): def __init__(self, parent...
[ "noreply@github.com" ]
xinanhuang.noreply@github.com
fb48a6638a09ad3cfd2c1102328953beea4067f7
061d89229db5a2aef1c033c64df0864fb921dc2e
/vaccine_solution_01.py
f8a093ace935a30f6a671fefbb26427f55eb680c
[]
no_license
abribanez/public_stuff
a837abc69b2b1863860a9925de3d0357cb8a47fe
ceb9c48770e8734168516754bb28994beb29325a
refs/heads/main
2023-03-13T16:28:35.820723
2021-03-04T03:52:11
2021-03-04T03:52:11
344,341,729
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
# 1. Check for any vaccine.py and delete if any. # 2. Verify that the userSetup.py is not infected, if so rename to userSetup.backup and notify user (email) # 3. Change ~/maya/script/ folder permissions to read only using os.chmod ? # 4. Create scriptJob: def remove_unwanted_script_nodes(): # Delete unwanted scrip...
[ "noreply@github.com" ]
abribanez.noreply@github.com
64cc4841d5467f994155c4141a61d3a96dbad42d
fa0349f061e07e5b0d060568ac393a00b7ae88cb
/models/syntaxsql/modules/having_predictor.py
7c7dd8f76f4a392b98f6aef3b0f57b780bc75afe
[]
no_license
inyukwo1/text-to-sql-models
ea99b1d43c2a26f5f2170f4682d4580998a8c23b
fea45ae250531ea60a29c8fe23e2562a0188d7b8
refs/heads/master
2020-06-13T12:54:12.785392
2019-09-09T07:35:22
2019-09-09T07:35:22
194,660,177
2
0
null
null
null
null
UTF-8
Python
false
false
4,891
py
import os import torch import numpy as np import torch.nn as nn from torch.autograd import Variable from commons.utils import run_lstm, col_tab_name_encode, encode_question, SIZE_CHECK, plain_conditional_weighted_num from models.syntaxsql.net_utils import to_batch_seq, to_batch_tables class HavingPredictor(nn.Module):...
[ "hkkang@dblab.postech.ac.kr" ]
hkkang@dblab.postech.ac.kr
ef605e1ca662f2873971f6027708de8746a86c63
8f84abe87489cf4d054097d3101603bf63768b32
/ICP-5/Source/LinearRegression.py
c55dde00daff992bb8494aec103e24c2b9f6136d
[]
no_license
SASLEENREZA/Python_DeepLearning
4777a8b474a9e96e4f075c369979085428ddbc52
b8d61989b52dc9af22cdea43e0ab273e998e26ee
refs/heads/master
2020-03-27T05:41:26.218544
2018-12-08T04:52:46
2018-12-08T04:52:46
146,040,145
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
import numpy as num import matplotlib.pyplot as mat a=num.array([2.9,6.7,4.9,7.9,9.8,6.9,6.1,6.2,6,5.1,4.7,4.4,5.8]) b=num.array([4,7.4,5,7.2,7.9,6.1,6,5.8,5.2,4.2,4,4.4,5.2]) #calc mean for two lists mean_a=num.mean(a) mean_b=num.mean(b) #calc deviations for slope x=num.sum((a-mean_a)*(b-mean_b)) y=num.sum(pow(a-mean...
[ "35543680+SASLEENREZA@users.noreply.github.com" ]
35543680+SASLEENREZA@users.noreply.github.com
12074642230d4b54034d58f55c5f371df6cb2997
876cfcdd0eb947b90ca990694efd5a4d3a92a970
/Python_stack/python/OOP/users _bankaccts.py
3b7d912111cd992471493c4f946a9c9b698ffe81
[]
no_license
lindseyvaughn/Dojo-Assignments
1786b13a6258469a2fd923df72c0641ce60ccbb2
3b37284cdd813b6702f5843c113f7bc7137a56c0
refs/heads/master
2023-01-13T20:19:50.152115
2019-12-13T23:16:48
2019-12-13T23:16:48
209,396,128
0
0
null
2023-01-07T11:56:19
2019-09-18T20:15:24
Python
UTF-8
Python
false
false
1,764
py
class BankAccount: def __init__(self, int_rate=0.01, balance=0): self.int_rate = int_rate self.balance = balance def make_deposit(self,amount): self.balance += amount return self def make_withdrawl(self,amount): self.balance -= amount return self def...
[ "lindsey.l.vaughn@gmail.com" ]
lindsey.l.vaughn@gmail.com
53447d8c889bf04c409aed89efe7dfc477f7aa3f
40e4b8e883af056979536e703edd8ee503dd35ca
/main_w.py
1091593b8702db5395d686ba115c568041b6dc94
[]
no_license
bjzhh/zhh
1d84ef97a28d37913e1962fc2f56baa140889b8e
fdc70c821e7717863dc93006f89a6ae779dacca3
refs/heads/master
2020-08-04T18:27:06.476637
2019-10-02T02:03:07
2019-10-02T02:03:07
212,236,794
0
0
null
null
null
null
UTF-8
Python
false
false
4,542
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main_w.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWin...
[ "510809889@qq.com" ]
510809889@qq.com
8ef7a09f3a19933bcc30991ae03e1390bdadf03b
8728634f466d92d1ff5b80fb360f3b169ba7f4ce
/dictionary_exm2.py
b9127b4b1b201c2fa1d794336c46dc68faf14b24
[]
no_license
raj13aug/python-refresher-nataraj
b385a402eed8ce07895b2bc44875e3e7d85969be
e3da2574e7b412c34435ac3586e5f791250e6237
refs/heads/master
2023-04-26T00:24:13.033546
2021-06-07T13:51:33
2021-06-07T13:51:33
365,724,737
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
my_friend = { "jose": {"last_seen": 6}, "anne":6 } print(my_friend["jose"]["last_seen"])
[ "noreply@github.com" ]
raj13aug.noreply@github.com
fbb0912e91ce99d03fdd24a6b432f951b473b3a7
740ec70e2374d0743e92e0149cbca79e02e0f221
/powcoin/data.py
0bd6613335f23ac8183c79cd5ff34e38782531c7
[]
no_license
jason-me/BUIDL-Week1
b0402d1b4299047fc4b7435df82e71f0986934e5
c4358c052b4e5a920a4f49a596aa9ae2ebe885bf
refs/heads/master
2022-11-26T03:29:34.664295
2019-09-15T00:06:51
2019-09-15T00:06:51
156,129,889
1
0
null
2022-11-22T03:17:56
2018-11-04T22:08:43
Python
UTF-8
Python
false
false
6,412
py
from powcoin import * from pprint import pprint import identities as ids from copy import deepcopy node = Node("x") alice_node = Node("x") bob_node = Node("x") def send_tx(n, sender_private_key, recipient_public_key, amount): utxos = n.fetch_utxos(sender_private_key.get_verifying_key()) return prepare_simple_...
[ "jamoen7@gmail.com" ]
jamoen7@gmail.com
d0ac9a0df121380d9572471ed8141c2ebd36aa74
beb72fa812b9751bf4a1ae748dcb710fefb622da
/python_work/venv/Scripts/pip3-script.py
123f6da8d04f4cc12fa378809362a9a6a13313d5
[]
no_license
lustudent/Python
9c5745557c31679f8d5dcfa237d11847b950a011
a368766adb04650f3d07a39f62476f841f569889
refs/heads/master
2020-05-17T21:35:29.386159
2018-05-02T08:42:47
2018-05-02T10:06:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
#!G:\python_work\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( ...
[ "542487083@qq.com" ]
542487083@qq.com
bbc6b93f4afd37cade8251c3dc9fdba0cc7d8962
01d24f7494981b278de61e0f76e9893c15680052
/manage.py
da660dfdbf25c0cb5fa9fcee293944744dc7dcca
[]
no_license
mamurjon/mydj_bot
66cc34defa30f4963d0bef5412af4e25a01c35c4
bf2de591492274950761c8ffa219f1cfd766f2b1
refs/heads/master
2022-12-21T14:33:20.394960
2017-05-27T12:56:35
2017-05-27T12:56:35
92,585,790
0
0
null
2022-12-07T23:56:18
2017-05-27T08:52:16
Python
UTF-8
Python
false
false
806
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mydj_bot.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the...
[ "m.kodirov@student.inha.uz" ]
m.kodirov@student.inha.uz
48319a3066b2839a18b404a5c7367571de80acd0
8bf20553b6b4bac94fb43057bc271ab7b0a6d8cd
/confidence_classifier/models/gan.py
ae30a9eb51b82557eb7c993ea89692499fd945d5
[]
no_license
hrvojebusic/ms_thesis
10bfd9fe625a1d645d5176e3d2f743a1bd84baf0
3d58276942e929efb1bd7397aaf0935474954632
refs/heads/master
2020-06-19T13:31:14.285160
2019-07-16T19:13:55
2019-07-16T19:13:55
196,726,801
0
0
null
null
null
null
UTF-8
Python
false
false
2,853
py
# Reference code is https://github.com/pytorch/examples/blob/master/dcgan/main.py import torch import torch.nn as nn def weights_init(m): classname = m.__class__.__name__ if classname.find('Conv') != -1: m.weight.data.normal_(0.0, 0.02) elif classname.find('BatchNorm') != -1: m.weight.data...
[ "hrv.busic@gmail.com" ]
hrv.busic@gmail.com
7e1cdc31b9825a8badb2b995852760e6fc516f62
b3f5c9941447b958ea1cfa69eb84f1866791dc52
/2-convolutional-neural-networks/intro-to-tensorflow/mini-batch/batches.py
317f950a989e3fe26f4694c21da62b4c8eaf7034
[ "MIT" ]
permissive
ivan-magda/deep-learning-foundation
b8704941601cd578b1b0589a219ecc85df0107f2
05a0df56c8223547bd7e8b62653a67f265c8e5ca
refs/heads/master
2023-03-27T09:56:50.785186
2021-03-30T23:28:11
2021-03-30T23:28:11
82,394,012
3
0
MIT
2021-03-30T23:28:12
2017-02-18T14:57:52
Jupyter Notebook
UTF-8
Python
false
false
1,070
py
from pprint import pprint import math def batches(batch_size, features, labels): """ Create batches of features and labels :param batch_size: The batch size :param features: List of features :param labels: List of labels :return: Batches of (Features, Labels) """ assert len(features) =...
[ "imagda15@gmail.com" ]
imagda15@gmail.com
587bbd0c59a5546f193f2c2687af0a168361196a
cb8338aa7144633caefa4a5cab5846e6edb75948
/Entrega 7/MatmulD.py
a804ad271613e5cd319e06e39a4a66781c359e86
[]
no_license
jtcastellani/MCOC2020-P0
58fcb35ad6f8b70b9027ca3d7303cc94e27adb60
6a6d0f6dbef075cbd9cca3c1a84401bea44f75c4
refs/heads/master
2022-12-06T14:17:58.867090
2020-08-22T03:47:19
2020-08-22T03:47:19
284,736,070
0
1
null
null
null
null
UTF-8
Python
false
false
1,373
py
from time import perf_counter import numpy as np from numpy import double from scipy.linalg import solve as spsolve, inv as spinv from scipy.sparse.linalg import inv as SparseInv, spsolve as SparseSolve from scipy.sparse import csr_matrix as disp def mlp(N, dtype=double): #script para crear ...
[ "noreply@github.com" ]
jtcastellani.noreply@github.com
2a8f5e13d4ba4e54f3d64ea74a7efc6e1b8f2818
d383e171a136d0999551684fbfa8092c61c066f4
/curriculum design/CommandLine.py
6034cfa369bd7f6e3b95847fb65cc5ad0a67a866
[]
no_license
EdSP29/OperatingSystem
54e253b1c94b56ad285f24b93c3f32692767bee8
33fbfab3f56841c6de1ab5d1284dba8f657a9c5b
refs/heads/master
2020-06-11T03:40:43.489614
2019-06-25T07:22:01
2019-06-25T07:22:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
from os import system from Kernel import my_kernel class CommandLine: """ 用于用户交互的命令行界面 """ def __init__(self): self.user = CommandLine.login_in() # todo 当前工作目录初始化 self._current_directory = '/' def parse_user_input(self, user_input): """ 处理用户输入 """...
[ "757320383@qq.com" ]
757320383@qq.com
fdb341f2db343d61ad77718b2804d85d91577ffa
af5d36407ac920a6ac1e826c70fe3acafd53948b
/tests/python/unittest/test_auto_scheduler_common.py
078e1ae8e854db6bbbe38427288866d5e91283a8
[ "Apache-2.0", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
ZihengJiang/tvm-hago
e91f2ac46c9f34e981af6d443cc66459d6715fe9
6e71860aeb502de2366ff6c39f513f16dbaf0924
refs/heads/hago
2023-08-12T19:20:32.444311
2021-09-28T17:42:21
2021-09-28T17:42:21
288,336,264
4
1
Apache-2.0
2021-09-28T17:42:22
2020-08-18T02:36:24
Python
UTF-8
Python
false
false
3,513
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
ZihengJiang.noreply@github.com