blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
6a3a7048675b304dcd33bfc43e2653f82bcfb4f3
e1c73f1667f62ad28ba7ffeb495507c1ebd724a8
/old/misc/buoyDetector.py
5e29e631d3a92eeb9662e9ba07b4c9b29c2128c9
[]
no_license
yaleinve/sailbot
470dcf8a16935a9369ec87eec37571a164466b44
27b1f5398d2b43146c851b413020e2cc9950b2b1
refs/heads/master
2021-01-13T17:32:29.190697
2020-03-01T18:23:36
2020-03-01T18:23:36
27,408,679
3
1
null
2019-04-26T17:42:13
2014-12-02T01:18:54
C++
UTF-8
Python
false
false
3,954
py
buoyDetector.py
import cv2 import numpy as np import time import math #constants dependent on the camera. TODO update these constants. OBJECT_HEIGHT = 152.4 # object height in millimeters FOCAL_LENGTH = 5.0 #focal length of the camera in mm PIXELS_PER_MM = 600.0 #number of pixels per millimeter on the sensor CIRCULARITY_EPSILON_WIDTH...
ea4ec3f662373bcde54dbf0c7527cc2d63f57cdf
82f4ceb941ff19a65a44967eee15b44165a21adf
/Exercise2.py
3867724744d297986ad424247c8aa61f8d2897ee
[]
no_license
LiekeSpoelstra/Week3_LC_3
8aad488be099f7c4d43cdec43427af7368a62879
6ebd525ef52fa2cd01ff41bf9f24f73547a549e5
refs/heads/master
2021-02-18T15:30:47.903788
2020-03-05T16:15:54
2020-03-05T16:15:54
245,206,951
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
Exercise2.py
starting_day = int(input("What day will you be leaving? ")) length_of_stay = int(input("How many nights will you be staying? ")) number_of_weeks = length_of_stay // 7 # length of stay in weeks number_of_days = length_of_stay % 7 # remaining number of days returning_day = starting_day + number_of_days if retu...
0257ce8dc678cb4edbe7dc9c025a2764e806fc46
aa8742c8e0e8d33669a4e3e993b4547a7df01b7f
/Project2/Main.py
dda76e1c1d1941eaa152ec91c0eddeb23c148a21
[]
no_license
thyo9470/OOAD-Projects
00ea4ce3b35eea07a70b416c6e91a86013b758d7
f0d3ac8758e4863105faf70e331616ed55c03a61
refs/heads/master
2022-07-09T08:16:16.243323
2020-05-14T18:10:19
2020-05-14T18:10:19
236,791,122
1
0
null
null
null
null
UTF-8
Python
false
false
283
py
Main.py
from Zoo import Zoo from Zookeeper import Zookeeper from ZooAnnouncer import ZooAnnouncer if __name__ == '__main__': zoo = Zoo() zookeeper = Zookeeper() zookeeper.set_zoo(zoo) zoo_announcer = ZooAnnouncer() zoo_announcer.start_observing(zookeeper) zookeeper.work()
e7e9f68ea9a7644d34d6773619b0b382372ef66d
3818a09fdcb96c06458a5c3542dfb87412dfe27b
/features.py
79debaf37f6ceda43663b55f91e9a56d4e3de555
[]
no_license
crazydreamer/Auto-Language-Identification
bdfd8927d6e05f928c74fd47920c96d3df88fe01
179ec592a8f56f0311095a9038197c36a8c412c3
refs/heads/master
2021-01-18T13:16:25.195947
2014-04-16T05:30:28
2014-04-16T05:30:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
features.py
import librosa import matplotlib.pyplot as plt import numpy as np audio_file = 'theave.mp3' y, sr = librosa.load(audio_file) mfccs = librosa.feature.mfcc(y=y, sr=sr) delta_mfcc = librosa.feature.delta(mfccs) delta2_mfcc = librosa.feature.delta(mfccs, order=2) mfcc_vector = mfccs[:14] delta_vector = delta_mfcc[:14] d...
661045c21a96eb271a17ed19f030605247c45035
a92c0192af41a860def24a3a1c47f790fb40cab6
/commands/hardReload.py
c13f6619fb6ebd46ffcd92cf051a5f6f3dc1cfa1
[ "MIT" ]
permissive
NotEnoughMods/Renol-IRC
a5a6356a7617f7e842d8884f092d97081f51baf1
1b8177abffb96ee1432112ccbd684dec300df34c
refs/heads/master
2023-08-09T07:07:44.041517
2023-07-31T00:02:27
2023-08-02T21:31:19
364,713,933
0
0
MIT
2023-08-02T21:08:45
2021-05-05T21:48:37
Python
UTF-8
Python
false
false
258
py
hardReload.py
ID = "hardreload" permission = 3 def execute(self, name, params, channel, userdata, rank): self.sendChatMessage(self.send, channel, "Reloading..") self.Plugin = self.__LoadModules__("IRCpackets") self.sendChatMessage(self.send, channel, "Done!")
1f8a95686151c7ab0607456ea6e1343bda54d0d4
1ee25d63780bd73d5d50663da1d5ee3bcbe730b8
/Stack and Queues/simplifyDirectoryPath.py
654a967b54b0ef2fb4acfc7e04a4c40b66ad644b
[]
no_license
aakash2602/InterviewBit
91303d70c1d1ddb2d4b26e9773db7c61e409a44b
5a57bf5ce3922a7199f546b4d1185c1b9eff55af
refs/heads/master
2018-10-30T18:38:39.595204
2018-08-23T18:40:36
2018-08-23T18:40:36
108,646,034
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
simplifyDirectoryPath.py
class Solution(): def simplifyPath(self, A): paths = A[1:].split('/') queue = [] length = 0 for path in paths: if path == '.': continue elif path == '..': if length > 0: queue.pop(length-1) ...
68f52625d40d35ddfa6fbfb8659ac200f67db76e
6aa5497aa28010ab7add927e4c4a37952cf719fe
/gpxtoposition.py
a8a79aec6826314f3305dfd2d08912cdf193c82d
[]
no_license
ccera-astro/school_telescopes
529f0f5e8993ba4b0f59cb7b039d74079da3c266
e5c015d69631abd672f900407084aa0509b36463
refs/heads/master
2021-07-12T15:05:09.435589
2020-03-27T01:16:10
2020-03-27T01:16:10
124,319,069
4
1
null
null
null
null
UTF-8
Python
false
false
378
py
gpxtoposition.py
#!/usr/bin/env python2 from lxml import etree import json import sys import os top = etree.parse(sys.stdin) for element in top.iter("*"): if "trkpt" in element.tag: latitude = float(element.get("lat")) longitude = float(element.get("lon")) dicto = {"latitude" : latitude, "longitude" : long...
3021cf0bab6d908a6123b74f0c2fffe64faaa1b2
a9a276eb6caf0c0082a7d86ae37c6b9d18cdfd98
/pywave.py
5e564c5f05ca6d7ba61879631b64ea3ce42960c9
[]
no_license
bbrodriguez/pywave
b806b621892dabf58604be080cbde20e843811f5
dd04930864c1a974e4a3cc1a56dd5e49417af73c
refs/heads/master
2016-09-06T12:36:28.104031
2013-02-22T11:51:50
2013-02-22T11:51:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,381
py
pywave.py
#!/usr/bin/python import cherrypy import os import simplejson import sys import serial import json from irtoy import IrToy with open('AppleRemote.json', 'r') as inFile: codes = json.load(inFile) device = serial.Serial('/dev/ttyACM0') MEDIA_DIR = os.path.join(os.path.abspath('.'), 'media') class AjaxApp(object): ...
b9f47e1829a6e4d46b6c8d3f74d5de14702944f0
80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019
/data/CodeChef/CHNGOR.py
5e9610b75453341c4dc5bf0a733346a61926f367
[]
no_license
Ritvik19/CodeBook
ef7764d89b790e902ede5802f36d5ca910d8a50e
2b4ed7938bbf156553d6ba5cba6216449528f0fc
refs/heads/master
2021-07-04T08:25:52.478719
2020-08-08T06:54:14
2020-08-08T06:54:14
138,744,302
3
0
null
null
null
null
UTF-8
Python
false
false
174
py
CHNGOR.py
for i in range(int(input())): n = int(input()) a = [int(e) for e in input().split(" ")] bor = a[0] for j in range(1,n): bor = bor|a[j] print(bor)
a8734104476213181e221cf00a2e062bdaf66339
8f22f84b57c74c03ea0b244eab02e19301fa5b33
/z. practice/Practice05.py
d87fa3e3859decfc63d4bd4f215c5e9a9189a58f
[]
no_license
bitacademy-howl/python
540d6dfc830dddc435c264c75d072e897875e1df
7b8a61c91893369557db0588513d617d13ccd103
refs/heads/master
2020-03-25T12:52:43.417148
2018-08-07T00:41:30
2018-08-07T00:41:30
143,798,501
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
Practice05.py
# 문제5. # # 1)다음 문자열을 모든 소문자를 대문자로 변환하고, 문자 ',', '.','\n'를 없앤 후에 중복 # 없이 각 단어를 순서대로 출력하세요. def setTheSet(list): resultSet = set() for i in list: resultSet.add(i) return resultSet def setTheOnlyMap(list): resultMap = dict() for key in list: if key in resultMap.keys(): r...
ae8b0c470b1a42f167fd571a0e61a2a0d96222ab
5909a2ef7e3c624d3f6b28bb8b7fea670a7d6d36
/cryptohack/RSA/starter1.py
9eb93251e64967865f47e402a28365ea1a7d7c11
[]
no_license
ram-1732/cryptohack
830d39a4f9326f878769e815234e2c135551b209
901edc91c6c3ef4e78e516bddd5a2be372cb71c1
refs/heads/master
2023-02-12T23:46:16.148921
2021-01-10T01:40:34
2021-01-10T01:40:34
327,463,214
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
starter1.py
#find 10^117 mod 22663 print(pow(101,17,22663))
a8cb76787abd86fd618d78ae66432b27856b1e97
963ee246e27d14f839815e664b14e1f4ef1cee92
/shsa/engine/shsa.py
2adbe80e037cfafca7176d416d33968a50364813
[ "MIT" ]
permissive
dratasich/shsa
77dde66c5a8d0cca80b262220dea45c61a0bc60c
d00030e4e1fdfea65ef47b4dce7943db1d1f1003
refs/heads/master
2021-03-19T18:50:12.756470
2019-11-18T19:56:20
2019-11-18T19:57:04
86,790,051
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
shsa.py
"""Interface for search engines for Self-Healing by Structural Adaptation (SHSA). """ from model.shsamodel import SHSAModel class SHSA(object): """Self-Healing by Structural Adaptation (SHSA) engine.""" def __init__(self, model=None, graph=None, properties=None, configfile=None): "...
2dcfeb78ddc8a94470ad7494c811bdb5a193f2c5
3595df789e76934e0af81a08af022a83dd19bd4a
/app/routes/user_routes.py
831d25e880103fe8d3338fe77880e3021b7859e3
[ "MIT" ]
permissive
Suspir0n/botTelegram
67e0b9cc73cac3350ef0a22bd09be3ac0ec6bbd3
a37c7f06abc807a2f8221e1641e248e8989e3100
refs/heads/main
2023-05-26T21:13:34.074580
2021-06-18T16:45:40
2021-06-18T16:45:40
377,491,557
0
0
null
2021-06-18T16:20:34
2021-06-16T12:38:52
Dockerfile
UTF-8
Python
false
false
917
py
user_routes.py
from flask import Blueprint, jsonify from ..controllers import user_controller import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S') bp_users = Blueprint('users', __name__) @bp_users.route('/', methods=['GET']) def root(): ...
bc9c6b88874e145cddc948b1902a723591d317c2
e736cd6f47eede8d4828e65116e11edb092116dd
/src/app.py
1f63636bafe3188d81c66637d0073af06c564a43
[]
no_license
Marry-Zhang/CI-CD
901802111cb48a59e4ebaf1f381442a7296ba15c
6c3e6637e09c2f28f470ff6e301963403befaa5f
refs/heads/master
2023-03-23T14:31:57.989717
2021-03-18T20:32:20
2021-03-18T20:32:20
334,331,569
0
0
null
2021-03-09T07:27:53
2021-01-30T04:58:48
HTML
UTF-8
Python
false
false
4,638
py
app.py
from flask import Flask import sqlite3 from flask import Flask, flash, redirect, render_template, request, url_for, g, session import os app = Flask(__name__) # the database file we are going to communicate with DATABASE = './assignment1.db' # connects to the database def get_db(): # if there is a database, us...
4c7be387d65e7001f7dd353c1220397a8f8b8a6f
af836b3bffe8124d63d9e596b67345928188f838
/pythons/LiTE-DTU_FULL_Decoding.py
db5786a44e9b7fdd9206ccbcdb5c4f62e32c5c85
[]
no_license
dariosol/LiteDTU
8b88584045b17a0e1f7c35e86cfe7e919475c5db
72d78eb786651c4cf31797a92af4f5048576186e
refs/heads/main
2023-06-25T22:36:25.739128
2021-07-16T09:40:43
2021-07-16T09:40:43
330,920,163
0
1
null
2021-05-04T12:07:48
2021-01-19T08:59:08
Verilog
UTF-8
Python
false
false
8,130
py
LiTE-DTU_FULL_Decoding.py
# coding: utf-8 import os os.chdir('./') import matplotlib.lines as mlines import matplotlib.pyplot as plt import numpy as np import sys import argparse from matplotlib import cm from functions import * parser=argparse.ArgumentParser( description='''Script to decode data from Lite DTU. ''', epilog="""All is...
6ae07e88161a2e0357f63a55d3332b95c9dbc119
32c4fc05d3fb32555618b34137524fcd4c0cd725
/model.py
8c262b4ecf6ba311883f8c0a299e2a87e4822eb5
[]
no_license
tamara19-meet/y2l-individual-project
c8a168398ad0a8726a2b91b4e92ea73a61d3337d
2d04eeee3bb6d3d4197c4e7a0a73c2c4e55528d8
refs/heads/master
2020-04-19T13:19:01.598457
2019-01-31T14:56:11
2019-01-31T14:56:11
168,214,031
0
0
null
2019-01-29T19:23:54
2019-01-29T19:23:53
null
UTF-8
Python
false
false
572
py
model.py
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from sqlalchemy import create_engine Base = declarative_base() class User(Base): __tablename__="user" id=Column(Integer, primary_key=Tr...
1a1ab147bb8f9b8de4cdcd592a067d4a739dc696
f077000d7fe53a708a01553254f10fb9d78ff3d2
/python2/exam_statistics.py
d5d4f629fb4cef857e2e365a31537fd1b81cd23c
[]
no_license
LoganMorneault/codecademy
770f008beca7e6857af03be7bf6ff969a5a34be5
26bde35110a0269ea7b331f8fc4315b6e961c4a7
refs/heads/main
2023-04-30T16:28:20.494737
2021-05-04T17:09:33
2021-05-04T17:09:33
362,923,921
0
0
null
null
null
null
UTF-8
Python
false
false
1,252
py
exam_statistics.py
# This exercise is the 15th lesson in CodeCademy's Python 2 course # This isn't horribly complicated, but the intent is to educate rather than to impress. # prints a list of grades on separate lines def print_grades(grades_input): for grade in grades_input: print grade # sum a list of grades def grades_sum(scor...
32443f08ab1a9ff141c3968e967470a2b53c371f
130a98632d2ab4c171503b79e455b7aa27a1dda4
/models/research/seq_flow_lite/layers/base_layers.py
40e339986a6d7f7c8ce691d46136aa6e18cafb25
[ "Apache-2.0", "MIT" ]
permissive
aboerzel/German_License_Plate_Recognition
d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787
6fc53292b1d3ce3c0340ce724c2c11c77e663d27
refs/heads/master
2023-01-30T18:08:37.339542
2023-01-07T07:41:36
2023-01-07T07:41:36
245,586,430
34
12
MIT
2023-01-07T07:41:37
2020-03-07T07:16:51
Python
UTF-8
Python
false
false
4,138
py
base_layers.py
# Copyright 2020 The TensorFlow Authors 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 required by applicab...
a2f91b6f16fc1dc1ca128cb4f395f099904ceaeb
f44ec163b6663e7c6a70782903d0c950f0edd889
/python_algorithm_interview/Most_Common_Word/trial_1.py
2bef80be98a5d59a204c71aab8a00abe5edb04c9
[]
no_license
kimziont/grab-a-bite-algorithm
25ab955cfb2d31e49172f2c9a205c2e7f8e5ad94
9978b0e0d25848c6a839469b4d422a2854e48303
refs/heads/master
2023-09-04T06:15:02.478247
2021-10-14T20:41:59
2021-10-14T20:41:59
416,423,999
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
trial_1.py
# 819. 가장 흔한 단어 ''' 금지된 단어를 제외한 가장 빈도수가 높은 단어를 출력하라. 대소문자 구분을 하지 않으며, 구두점 또한 무시한다. ''' import re from collections import Counter class Solution: def mostCommonWord(self, paragraph, banned): paragraph = paragraph.lower() # .;,과 같은 다양한 부호로 단어가 구분될 수 있다 -> 띄어쓰기로 통일 paragraph = re.sub('[^a-z ...
dbaceab9182db515848ce06ff057fd2798ac3195
67c9d6fa4127b7d17296f06de5b70e70437bdd4b
/mainDeepNN.py
1ba472f3e4f500fff71e5e4f60a4eb0098ae6fce
[]
no_license
jannikwiessler/Deep-Neural-Network-for-image-classification
873b831ad6b30d2fd8028cc4ab022321671f940b
65f2685936b186bfcf2fc602588ed9f58e5b4d7a
refs/heads/master
2022-04-30T22:00:19.456735
2020-04-16T18:04:07
2020-04-16T18:04:07
256,291,571
0
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
mainDeepNN.py
import numpy as np import matplotlib.pyplot as plt from PIL import Image from scipy import ndimage from loadDataDeep import loadDataDeep from modelDeepNN import modelDeepNN, predict plt.rcParams['figure.figsize'] = (5.0, 4.0) # set default size of plots plt.rcParams['image.interpolation'] = 'nearest' plt.rcParams['im...
736fee6f9a46b8568b2dd217b81d54d689306630
808598978683bbc7a1e205c421b02b0cf5c979e4
/clash.py
1c965101a755e512d1ff0618c2e5c3e01d1cebe2
[]
no_license
pnovais/CLASH
992be9947c651384289ef5629581221d59c40229
028af1f6fa316a77868845b7dcb00710d004deec
refs/heads/master
2021-03-27T14:29:33.843249
2016-12-07T12:55:55
2016-12-07T12:55:55
75,671,624
0
0
null
null
null
null
UTF-8
Python
false
false
7,804
py
clash.py
#!/usr/bin/python # -*- coding: utf-8 -*- import pandas as pd import numpy as np import datetime import time from sys import exit from matplotlib import colors, pyplot as plt from functools import reduce import matplotlib.cm as cm import seaborn as sns from astropy.io import ascii, fits from astropy.wcs import wcs fr...
dbe3aa107de8e62822803d1740773a4b22f41edf
dd413fdf9753709d61804c72e16862608e71639a
/script/used/main_twoLayer.py
88216c106d0c6fdd5b1fb70f3fdfc35737f675ac
[]
no_license
saragai/Learning_Ex
affc798e0b01b648cde2fffc1049936d76aa9d3f
a2a548a5c4ad0ae40daf7be694f58f522bf5b791
refs/heads/master
2021-07-23T14:05:08.063690
2017-10-31T07:23:45
2017-10-31T07:23:45
105,108,282
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
main_twoLayer.py
import sys, os sys.path.append(os.pardir) import numpy as np from dataset.mnist import load_mnist from two_layer_net import TwoLayerNet (x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label = True) train_loss_list = [] #hiper param iters_num = 1000 train_size = x_train.shape[0] batch_size =...
3f9be81c86852a758440c6a144b8caba736b3868
312c66ec8058caf672bdb88b14ae2e3d72867878
/plataforma/migrations/0006_auto_20210219_2352.py
c6bc71eb8f967d7c0d69ddd02a0541ae019cf437
[]
no_license
sourcery-ai-bot/company-api
0805bcf1356a5210a2168925b9efa3568315a635
8bb661a9f93c9ca635f68b16b9b8842a01fcd400
refs/heads/main
2023-03-07T10:23:56.438960
2021-02-23T21:19:51
2021-02-23T21:19:51
341,986,656
0
0
null
2021-02-24T17:52:40
2021-02-24T17:52:39
null
UTF-8
Python
false
false
519
py
0006_auto_20210219_2352.py
# Generated by Django 3.1.7 on 2021-02-20 02:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('usuarios', '0001_initial'), ('plataforma', '0005_auto_20210219_2343'), ] operations = [ migrations....
e06b740f27e41b9f120c962fd76a38a29d54af3c
8edb75d209b71fd979fd1bca5cf4c963427347b5
/tests/test_body.py
0e1f0d2b32e321086ef1f39020bfc81fded83cc3
[]
no_license
tg-z/hpi
b6dafa0b9f56cde9e067503cafa7e7ed9413d15f
ac76eaca0fc6ca080010cae4dbc6e046b4ed7452
refs/heads/main
2023-04-06T08:37:50.477559
2021-04-24T08:08:04
2021-04-24T08:08:04
361,095,895
5
0
null
null
null
null
UTF-8
Python
false
false
189
py
test_body.py
from more_itertools import ilen from my.body import weight, shower, food, water def test_body() -> None: for func in (weight, shower, food, water): assert ilen(func()) >= 1
1fd4d1a44270ef29512e601af737accb916dc441
c7e77659be1b6af99c000f381b7cd6e8f136b99a
/src/estmd/estmd/estmd_simple_test.py
5fe15c5d608f1753d23b72be2a2f996fa8075ad8
[]
no_license
juancarlosfarah/anisopter
9b2c43bbe483fdb9d45338d0189f3332b97e1f96
86b7c99650f47c9170c2427c332d8e14fe3b71ae
refs/heads/master
2022-11-23T16:35:46.447951
2019-10-26T09:23:52
2019-10-26T09:23:52
49,007,749
1
3
null
2022-11-22T04:28:08
2016-01-04T16:07:53
TeX
UTF-8
Python
false
false
170
py
estmd_simple_test.py
from estmd import ESTMD input_directory = "test.avi" e = ESTMD() e.open_movie(input_directory) e.run(by_frame=True) r = e.create_list_of_arrays() print "Done testing!"
c7c412fe4e2d53af1b4f2a55bd3453496767890d
72a83c275a2b959803393088b6e23e180e6302bc
/tests/shedule_page/test_001_filters.py
8c96a5bbc9112a57f41977f2816fa2d59261e079
[]
no_license
nikit34/kassa-ios-ui-tests
d67b4108e4c3adf7da2197931d8cf69883180940
07b5f612925a10602573533534ccc302653ab883
refs/heads/master
2023-06-06T20:48:08.129512
2021-07-18T18:05:48
2021-07-18T18:05:48
384,764,752
0
0
null
2021-07-18T17:38:56
2021-07-10T18:26:32
Python
UTF-8
Python
false
false
4,451
py
test_001_filters.py
from time import sleep import pytest import allure from app.debug_api import DebugAPI from app.check_api import HandlersAPI from locators.movies_details_locators import MoviesDetailsPageLocators from locators.movies_locators import MoviesPageLocators from locators.shedule_locators import ShedulePageLocators from scree...
327371d373819273a2f77f63e0cedee6950dbc46
abb614790bdf41c7db9d09dfdea4385f78c2be52
/rtk-RQA/rtk/software/__gui/gtk/DevelopmentEnvironment.py
3dcc7b48da51f6dc4586d7fb8e941d1720b309fe
[ "BSD-3-Clause" ]
permissive
codacy-badger/rtk
f981bb75aadef6aaeb5a6fa427d0a3a158626a2a
bdb9392164b0b32b0da53f8632cbe6e3be808b12
refs/heads/master
2020-03-19T02:46:10.320241
2017-10-26T20:08:12
2017-10-26T20:08:12
135,659,105
0
0
null
2018-06-01T02:43:23
2018-06-01T02:43:23
null
UTF-8
Python
false
false
23,981
py
DevelopmentEnvironment.py
#!/usr/bin/env python """ ############################################################################## Software Package Risk Analysis Development Environment Specific Work Book View ############################################################################## """ # -*- coding: utf-8 -*- # # rtk.softw...
136215a3ba99f74160373181c458db9bec4bb6b7
db3048f21d31cdf5232f22743b6c764b85d2bc91
/Decrypter.py
22ff1bad9df0512759cc92f301e7d56e02fe63c9
[]
no_license
shauryasharma-05/PortableKanBan-Hash-Killer
51fe7738b161fe876b30b412237d63c20458a716
06a67f75c0d684825b90e475f5fe2597e8c49d99
refs/heads/main
2023-05-04T23:05:35.415347
2021-05-24T11:03:58
2021-05-24T11:03:58
370,320,108
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
Decrypter.py
#PortableKanban 4.3.6578.38136 - Encrypted Password Retrieval #Python3 -m pip install des #or #pip install des import json import base64 from des import * #python3 -m pip install des, pip install des import sys def decode(hash): hash = base64.b64decode(hash.encode('utf-8')) key = DesKey(b"7ly6UznJ") r...
cc46485a3b5c68e4f77a2f9a033fd2ee2859b52b
b93be8357e60f5ff37130e3d7ef470a49f63ac59
/IE598_F18_HW6/IE598_F18_HW6.py
6549b53b415d0b08384d89fe4a30c28ede108a46
[]
no_license
fengkai4/Fengkai-Xu
3a3dc0476dd92a7f53ba912a4916c2b22e0daf08
cdfff1c6dfe39335249511ac835772b1e568d3f3
refs/heads/master
2020-03-27T16:59:25.451925
2018-10-15T01:52:52
2018-10-15T01:52:52
146,821,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,867
py
IE598_F18_HW6.py
from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import train_test_split import pandas as pd import numpy as np from sklearn.datasets import load_iris from sklearn.model_selection import cross_val_score iris_dataset=load_iris() X=iris_dataset['data'] y=iris_dataset['target'] X_tra...
ce98c13555c474de0a9cb12e99a97b2316312b00
0b793bce2da8c3d09b7956c0672ddbffd46feaed
/yukicoder/yuki161.py
320baef65caa05b4fb5e3812679f00b92b8532fe
[ "MIT" ]
permissive
knuu/competitive-programming
c6c4e08fb231937d988bdc5a60a8ad6b31b97616
16bc68fdaedd6f96ae24310d697585ca8836ab6e
refs/heads/master
2021-01-17T09:39:02.647688
2020-11-07T03:17:22
2020-11-07T03:17:22
27,886,732
1
0
null
null
null
null
UTF-8
Python
false
false
331
py
yuki161.py
yuki = list(map(int, input().split())) S = input() enemy = [S.count('G'), S.count('C'), S.count('P')] ans = 0 for i in range(3): ans += min(yuki[i], enemy[(i+1)%3]) * 3 yuki[i], enemy[(i+1)%3] = max(0, yuki[i]-enemy[(i+1)%3]), max(0, enemy[(i+1)%3]-yuki[i]) for i in range(3): ans += min(yuki[i], enemy[i]) ...
4390864fdd105c09f2c6f7e1503debf6c5c93a26
bd1d989371a035cb532ac5028e447d92464d0596
/client.py
8270eff803be53f010516b99bf017e6f57552317
[]
no_license
SelvaKarthik17/SysAd-Task3
096c209b384d280da574ff3f509adaeade678fb2
bdaa8c1ab1207a1b906e19a1fe0e165a43d3c233
refs/heads/master
2022-10-28T17:59:45.926693
2020-06-14T19:46:27
2020-06-14T19:46:27
272,271,777
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
client.py
#This is a generic client side script. Run multiple instances of it after the server code starts running. import socket import _thread flag = 1 name = input("enter your name:") c=socket.socket() c.connect(('localhost',9999)) def send(): msg = input("enter:") while True: c.sen...
52a11681709dff149d60244178b2a14ec201639c
3b2ead608d71da663af69f8260d9b05312a10571
/Lesson_4/lesson4_4.py
4f8d0d2d221513d44a28a63d3b2e04a0dfed4b41
[]
no_license
ddobik/Introduction-Python
938f5c7dff0d51d0fe33c4ee1484747b27203805
1025e2c320671908595f6fccc16990756af9b6c4
refs/heads/main
2023-07-20T17:34:09.910739
2021-08-19T14:38:37
2021-08-19T14:38:37
376,647,120
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
lesson4_4.py
n = int(input('Enter n<=9:')) l: list = list(range(1, n + 1)) for item in l: s: list = list(range(1, item+1)) p = ''.join(str(x) for x in s) print(p)
ed6c2f76ded9cf4bb02c06358ecd451d4b6da6ea
55a311eb02403f8fa7e4d1e148e9bb5e80619984
/main_module/main.py
7c36efa46790342cc9c14fb8c3d72a2f3d700f62
[ "Apache-2.0" ]
permissive
kethan-kumar/Custom_Database
f5f3e5478a6b4c66f88fde5305f822ebacdb6ca2
0d44ab8748631b806b3711b8ae7d68e5f6474b1d
refs/heads/main
2023-05-07T15:12:27.703962
2021-05-12T11:37:35
2021-05-12T11:37:35
365,336,699
0
0
null
null
null
null
UTF-8
Python
false
false
6,397
py
main.py
import logging from businessLogic import Controller from main_module.AuthenticationMechanism import AuthenticationMechanism def get_user_option(): print("|************** Welcome to Custom My SQL Database **************|") print("1. New user") print("2. Existing user") print("3. MySQL Command prompt")...
81e3fe00de85d8b20f2b91494b65049b8dd130fb
6d53e6a8f96ee8d0e3a1b40dc7a8cebf7bf3357f
/HelloPY/ne1/fe.py
a27ecd089ca127ddfb45d8a6f7a1f70ee636bd01
[]
no_license
frank790626/python
8ba6e7e916706432bf30e652188182fca4a81217
4294eb59aacf249c7da1a2d341d9872274b3c980
refs/heads/master
2020-07-23T15:47:14.598215
2016-08-30T13:37:27
2016-08-30T13:37:27
66,938,023
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
fe.py
from v import call newFun = call.account('frank', 54, 6) print (newFun.name)
4ffd23db18a24e030e44adafe358ae8250bbe203
c8d2c66f2a424ceff36e23b402a222c83416db42
/CEM_cart_pole.py
6f35b94ba437eff2d01e042c0efdef0db2f1126f
[]
no_license
Pavelevivan/RL_Practices
78874737c72907dc54f63df971df28ebdb155688
69e5a4a2e7ad78370022475197dab13debbcd79d
refs/heads/master
2020-08-29T11:37:53.487166
2019-10-28T10:19:39
2019-10-28T10:19:39
218,021,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
CEM_cart_pole.py
import gym import torch from torch import nn import numpy as np #lunar lander # acrobat # mountain_car class Agent(nn.Module): def __init__(self, states_dim, actions_dim, epsilon): self.linear_1 = nn.Linear(states_dim, 50) self.linear_2 = nn.Linear(50, 20) self.linear_3 = nn.Linear(20, actio...
1f9faefa9a2854b8b007bd8eab0948230f7f1a27
6040ec2771a81654ac41f33ce5c4aa7e66d4e5d9
/src/파이썬코드(py)/Ch09/code_9_7_3.py
5f877c4eb7c98ba9a2ef2f364ce528ee47980675
[]
no_license
jinseoo/DataSciPy
a3462785ae094530141e66ead8de9e6519fbf193
de6127c0741f8d0cfc989e17ba3a5a65004e5d9c
refs/heads/master
2023-06-25T19:03:22.086126
2021-07-27T09:01:41
2021-07-27T09:01:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
code_9_7_3.py
# # 따라하며 배우는 파이썬과 데이터과학(생능출판사 2020) # 9.7 정보를 한눈에 보여주는 워드 클라우드 , 232쪽 # import matplotlib.pyplot as plt plt.figure(figsize=(40, 30)) # 화면에 이미지를 그려준다 plt.imshow(wordcloud) plt.show()
0d24ae730a25ee0a7d30387a63f97103732c7990
e86eb8ec2669a1b46268fc17d4eb47432f06e87e
/train.py
94ee8c6ab191d3a8fae1b17d6cca20783a130b8a
[]
no_license
vdeepak13/ContextualBias
9d9d0d1804cd16b206536a9c04ea199ba0815d06
be771b6b77c0fe1f6161a03804e64008b9825b28
refs/heads/main
2023-08-05T18:57:21.095459
2021-09-21T00:49:15
2021-09-21T00:49:15
381,631,570
0
0
null
2021-06-30T08:36:44
2021-06-30T08:36:44
null
UTF-8
Python
false
false
18,942
py
train.py
import pickle, time, argparse, random from os import path, makedirs import numpy as np import torch from torch.utils.tensorboard import SummaryWriter from sklearn.metrics import average_precision_score from classifier import multilabel_classifier from load_data import * from recall import recall3 def main(): p...
1a3df131e4b96b2bc32faac2f3fcd0c829958865
855b8f31187fbfb0ca9399af3ef4aec6cd0e0a6d
/take_photo.py
039754d5d97f700b899959540e27aeca4498eb49
[]
no_license
tigert1998/phone-detection
49394101632f364fb25bb73b8368e7803036c6eb
60234dae2ee6ffb4c09ac796aeef7efb5e3788ce
refs/heads/master
2020-03-27T14:56:22.974150
2018-09-23T03:46:03
2018-09-23T03:46:03
146,688,144
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
take_photo.py
import cv2 if __name__ == "__main__": pattern_size = (10, 9) total = 11 capture: cv2.VideoCapture = cv2.VideoCapture(1) cv2.namedWindow("chessboard", cv2.WINDOW_NORMAL) cv2.resizeWindow("chessboard", 1280, 720) while True: _, frame = capture.read() cv2.imshow("chessboard", frame...
71f626c09492031c90f130f4468edf4dd1501856
215e7cd3b5d15c8306fb8f8cae479eb5745fe110
/test/Feature_Visualization.py
29252dbcab78307b11c533deeb8e142d20712b1b
[]
no_license
Garvit244/Empatica_E4_Preprocessing
ff51abbf57e17cd5690ea6b589e8838a5aaa570b
9a350296c3a535b183d03569419821be5f895212
refs/heads/master
2021-03-27T14:55:50.061862
2018-06-27T08:30:32
2018-06-27T08:30:32
124,196,876
1
0
null
null
null
null
UTF-8
Python
false
false
815
py
Feature_Visualization.py
import pandas as pd from main.visualization import visualize_feature import matplotlib.pyplot as plt def visualize_scr_per_segment(file_path): pd_a = pd.read_csv(file_path) print pd_a.groupby(['Tags']).size() tags = pd_a.Tags.unique() tag_list = [] value_list = [] for tag in tags: tag_l...
f6d8037a7c6f718df3f0670818dac510289a58ae
8a37e624a18b06fefc39f645b83094ccff9706f0
/app.py
5ae1aa766e4bfd7b1bc76da785c8bdc3b22efe4b
[]
no_license
mbroomes22/basic-python-gui
6e08cf58f051d44e4408762b53d85ed56f1a30fe
3dd4f682c9274fe6bb2a905c45161e435f10664d
refs/heads/main
2023-01-29T09:09:11.470569
2020-12-11T01:30:48
2020-12-11T01:30:48
320,433,707
0
0
null
null
null
null
UTF-8
Python
false
false
1,312
py
app.py
import tkinter as tk from tkinter import filedialog, Text import subprocess import os root = tk.Tk() apps = [] if os.path.isfile('save.txt'): with open('save.txt', 'r') as f: tempApps = f.read() print(tempApps) def addApp(): for widget in frame.winfo_children(): widget.destroy() ...
a778276cad49e965117ed6e784944195d318d3d7
e28dd7cb2020c71f823b8bf5d289d0542dc56b10
/accounts/migrations/0005_auto_20210629_1816.py
6ebf4e04ce9b456640f2885aac96384a4357c2f6
[]
no_license
von2020/propertyBossLtd
57be9bc729665db58f66ef7654bd79e59ec64a63
a777feb07d951df847a46e09457a21a020021638
refs/heads/main
2023-06-28T22:24:41.061844
2021-07-28T09:03:19
2021-07-28T09:03:19
374,885,504
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
0005_auto_20210629_1816.py
# Generated by Django 3.1.2 on 2021-06-29 17:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_auto_20210628_1639'), ] operations = [ migrations.RemoveField( model_name='userregistration', name='id_card...
424d3b96a6545465423e348a5c9437677e627a20
7a8a633cfbe2b5c27ddce5c4c036be30d837ee2b
/modules/__init__.py
39f46130cca6b866f92fc5cc8bda4d01535e932e
[]
no_license
allan918/Edesia
28677aa21d5811409432941b366155e441003ba9
fa915c4b684b95ca4e9ae0197072eabc39837c2e
refs/heads/master
2023-03-26T04:34:40.011067
2021-03-25T21:43:59
2021-03-25T21:43:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
__init__.py
from modules.crawler import Crawler from modules.parsingHelper import ParsingHelper from modules.mongoHelper import MongoHelper from modules.recipe import Recipe from modules.website import Website
12451a8849d862329a1d2ecd10895abacff10ae9
6ab79ba7b216c5f84dfb618a612bedca000549dd
/sqmake/main.py
c7948337772c945e15012d409a44debd179a848f
[ "Apache-2.0" ]
permissive
mattwigway/sqmake
4b9cf569339d42b0ac2c6dcb2fe64d5fc420298c
b350cb70daa787e50a32cd3ca56d595d0892b404
refs/heads/master
2023-04-08T06:24:35.728776
2023-04-04T17:19:06
2023-04-04T17:19:06
265,368,396
3
1
null
null
null
null
UTF-8
Python
false
false
894
py
main.py
from argparse import ArgumentParser import logging import os from . import Makefile def main(): parser = ArgumentParser() parser.add_argument('task') parser.add_argument('--sqmakefile', default='sqmake.yml', help='Path to SQMake file (default: sqmake.yml)') parser.add_argument('--echo', action='store_t...
b929aed7d0f585935dfcc6afcab7d903a7625af6
5461dd309d12b40c7ffe603f4bc492e1fe7bddbd
/{{cookiecutter.project}}/src/lib/versionedLib/versions/ver_1_001/__init__.py
5382c244a7aac54a38a76d805231dd0cca37d454
[ "MIT" ]
permissive
sankhaMukherjee/myCutter
5ebf3c9dbb44d97b896404703ae8408bf8461642
f4db6c78e093f825569439127a56c579c6853e24
refs/heads/master
2021-06-03T03:23:43.224046
2021-03-20T07:27:22
2021-03-20T07:27:22
108,530,971
1
1
MIT
2018-05-31T03:09:03
2017-10-27T10:08:21
Python
UTF-8
Python
false
false
35
py
__init__.py
'''version 1.001 of the library '''
c88c40cb958a99ea0cffef7f1508b17de1f5ebca
d1565bf3b0829f7e7fa1a132e757481a57acae98
/carrotLand.py
ee32041079fe769484dfc00c5ddbd500a860ca75
[]
no_license
abdelaha/Google_Foobar_Challenge
7ccfd6c4553719351a4639f85e62948cbe0fcc41
e6a1c3b96a91e40a3b3f6c170c6abdbc44fe8c0a
refs/heads/master
2021-04-27T01:30:55.539598
2018-02-23T21:42:54
2018-02-23T21:42:54
122,675,667
0
0
null
null
null
null
UTF-8
Python
false
false
1,262
py
carrotLand.py
import fractions as fs __author__ = 'Hamzah' def areaOnly(vertices): # your code here A = vertices[0] B = vertices[1] C = vertices[2] #Just for fun area = float((A[0]*(B[1]-C[1])) + (B[0]*(C[1] - A[1])) +(C[0]*(A[1]-B[1]))) /2 area = abs(area) return area def answer(vertices): # y...
1882c6532dcdd567c87faa21935c101d5158dee2
40807c4bb7b1f0e1323c4309b482039dfd334039
/questions_factory/models/problem_models/statistics_problem.py
c2842e0903ad69793da729d5cd9f8bb14c8b73b9
[]
no_license
bduhoux/oscareducation
15e383e5479883a6a4d8b17b18c4dd1fb54716f9
bc189d0b959c56cf89283dc701e8bfd1d88cbf5f
refs/heads/master
2021-08-23T20:47:33.972664
2017-12-06T13:25:42
2017-12-06T13:25:42
107,121,228
0
5
null
2017-12-06T13:24:52
2017-10-16T11:58:25
HTML
UTF-8
Python
false
false
3,473
py
statistics_problem.py
# coding=utf-8 import random import numpy import yaml from collections import OrderedDict from examinations.models import * from questions_factory.models.problem_form import * from questions_factory.models.problem_models.problem import * from skills.models import Skill class StatisticsProblem(Problem): NAME = "...
50c1c5578337d2c0ac09cf62cb1dcad18b164151
1259b3ce40c8178059ca11eb4c2bd4b80a6b6d83
/pyBL/_conf.py
61439f4a274f244c7a3d548a78c3d751fe8e7285
[]
no_license
afluerasu/pyBL
3315a1403d6dcac0c524be49a0aa78e3b8adc121
6468e6b4e0ae71282b82baedcc285d7046fe31f6
refs/heads/master
2021-01-19T10:37:09.059327
2013-10-31T21:00:14
2013-10-31T21:00:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
_conf.py
''' Created on Aug 23, 2013 @author: arkilic ''' def __loadConfig(): import os.path import ConfigParser cf=ConfigParser.SafeConfigParser() cf.read([ '/etc/pyBL.conf', os.path.expanduser('~/pyBL.conf'), 'pyBL.conf' ]) return cf _confBL=__loadConfig() # print _confBL.secti...
92499d354c568443111985df433d76e35a00e249
4d8439664d716ce811046969f806ccfc3fbe1add
/singlecellmultiomics/features/__init__.py
f1bc13f61793bffc44c9345d010aeb61878272de
[ "MIT" ]
permissive
BuysDB/SingleCellMultiOmics
b32519be6d4a79d8c80050f91e600aceedb9983f
441f378cbfb0af165f1ada5b8596362412b3cc48
refs/heads/master
2023-07-25T17:39:18.371642
2023-06-21T07:30:31
2023-06-21T07:30:31
187,592,829
21
9
MIT
2023-06-21T07:30:32
2019-05-20T07:47:28
Python
UTF-8
Python
false
false
63
py
__init__.py
from .features import FeatureContainer, FeatureAnnotatedObject
c2d036b62ba6e8e7768919859f4ad28f42b58351
21779b3869fea7daa0c939b79784f6a9eef6a9a9
/code/convolutionalvae_app.py
20530806ce6ef494ab4736c851cb4f42da120c91
[]
no_license
adriankristanto/VAE
e0e56a3e9b6c2afab12e21d2676611949b49defa
372781a7be928e54e41efccd74a40475ef2bf248
refs/heads/master
2022-12-11T21:02:36.370193
2020-08-31T06:57:22
2020-08-31T06:57:22
286,161,059
0
0
null
null
null
null
UTF-8
Python
false
false
1,828
py
convolutionalvae_app.py
import torch import torch.nn as nn import torchvision from datetime import datetime from models.ConvolutionalVAE import ConvolutionalVAE import os device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # load the model MODEL_PATH = os.path.dirname(os.path.realpath(__file__)) + '/../saved_models/' MODE...
7cc2f4dfc02b1f233a396eb0269cb600db78e7cc
b683792dd1a1b5e206b53a79da45e12869c042b8
/16.py
881bac4261e85bd8d9a6baff2fdc285d2922eb42
[]
no_license
Vladislav1223/Colocvium
4f6dfb1fadc98481bb6128f4a1a43e703ac93736
e1a8d8ce8d8f4aa15c6c8dbc726589c676511e76
refs/heads/master
2022-05-18T11:09:25.360027
2020-04-23T15:51:41
2020-04-23T15:51:41
258,254,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,348
py
16.py
#Знайти добуток елементів масиву цілих чисел, які кратні 7. Розмірність #масиву - 15. Заповнення масиву здійснити випадковими числами від 10 до 50. #Павлюк Владислав import numpy as np#импортируем библиотеку нампи import random while True: b=np.zeros(15,dtype=int)#инициализируем матрицу нулями,и присваеиваем типу д...
374383428c14ece1cbd8f6565022501b05c551c2
fbc84db08a7ce208e2fc0095e74facca24e077b0
/scripts/volume_control.py
3c1c70afdfe090a7e214a7da8bd61c177dc79976
[]
no_license
PiotrProkop/dotfiles
a001763a8afd617717fb1814166036424cb583df
c1d0ef19efcf6a922aec02640a2ff28757ec0237
refs/heads/master
2023-08-30T09:44:55.373896
2023-08-30T06:33:11
2023-08-30T06:33:11
46,281,205
9
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
volume_control.py
#!/usr/bin/env python3 #Based on https://github.com/Airblader/dotfiles-manjaro/tree/master/scripts/volume_control.py import subprocess import sys from subprocess import call def execute(input): command = subprocess.call(input, shell=True) dupa = str(command).split('\n')[0] return dupa def get_active_sink()...
02475fe14c3d1fba2ce34fb2f306d8b111fc8e36
3d31d1ebeac4586a455c08d551e81e5596f4a8c4
/dev/3_25_2018/UPS_Main.py
7d8d981c17e205b6828d710bfc5211d5097a13f5
[ "Python-2.0" ]
permissive
npwebste/UPS_Controller
0ff9670abd6f4ff5d4f3a5ec3003e4f4ddfcf148
a90ce2229108197fd48f956310ae2929e0fa5d9a
refs/heads/master
2021-05-10T10:00:03.186490
2018-08-04T23:37:16
2018-08-04T23:37:16
118,942,833
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
UPS_Main.py
# Universal Power Supply Controller # USAID Middle East Water Security Initiative # # Developed by: Nathan Webster # Primary Investigator: Nathan Johnson # # Version History (mm_dd_yyyy) # 1.00 03_24_2018_NW # ###################################################### # Import Libraries import Config import time import sql...
45221f56cc697288da1919b0cb2a943701f5ccae
f7239079104bec972007a0dcb4962c984be1624d
/src/scripts/binclass_prep.py
04133820ffaee8a2fd8f30c1ba25a909e69fce75
[]
no_license
kaushik316/T2D_Models
bb75adb2a107dbd9959cad2dfded1c6fdde69247
5b20f3ad76eb21a04de8c84dc6cd2eb3636c63a2
refs/heads/master
2020-03-30T05:00:01.005392
2019-05-08T16:48:54
2019-05-08T16:48:54
150,773,587
0
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
binclass_prep.py
import pandas as pd import numpy as np import boto3 import s3fs import os import sys from sklearn.model_selection import train_test_split sys.path.insert(1, os.path.join(sys.path[0], '..')) from auth import access_key, secret_key # Read in data and compare class balances def show_counts(df, pos_col, neg_col): pos...
78e5d751094e9435ee9876afdc56f3782756d2d2
9431070f08eb587e00225b98cf27cf2f1494e519
/The-Python-Workbook/2-Decision-Making/exercise61.py
fdec4dd8e4b8158fe85f3deffaa0d5c4d4cdbdb3
[]
no_license
emilianot04/Exercise_Python
94908fd2612da077717de8907a4b9a39b9de9480
abc29498f4c7efe1c4e42ad24e3850ad2f330615
refs/heads/main
2023-06-24T12:37:02.167480
2021-07-21T16:29:07
2021-07-21T16:29:07
377,550,892
0
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
exercise61.py
""" In a particular jurisdiction, older license plates consist of three uppercase letters followed by three digits. When all of the license plates following that pattern had been used, the format was changed to four digits followed by three uppercase letters. Write a program that begins by reading a string of characte...
9bb4a7442c00f69aab35d68a878961ea248d7078
84b99814136f134fc2238a266225ed8342b6ede0
/artemis_pcie/nysa_platform.py
3436a99398d0ffc2175d590df4768849954ab1c9
[ "MIT" ]
permissive
CospanDesign/nysa-artemis-pcie-platform
1f25f3e940c43acc631d9c0cb1ecdee26e846af0
844be4b14b27520eb4bb15b8a2f18d7797b91943
refs/heads/master
2021-01-21T04:35:18.492160
2016-07-04T20:25:43
2016-07-04T20:25:43
48,339,973
0
0
null
null
null
null
UTF-8
Python
false
false
4,332
py
nysa_platform.py
#Distributed under the MIT licesnse. #Copyright (c) 2014 Dave McCoy (dave.mccoy@cospandesign.com) #Permission is hereby granted, free of charge, to any person obtaining a copy of #this software and associated documentation files (the "Software"), to deal in #the Software without restriction, including without limitati...
fc5683b52a58654b9f16348f1011147dd66570b2
58148e7a510e2f39402c2edc6ef79aa79eb65e4d
/22.栈的压入弹出序列.py
8fd606b8d235906ff057f294257e78a26ab61dd2
[]
no_license
gtxmobile/jzof
28eb48674e8641238dc775cc45c7b18fa36dbb2b
524a6b5df89e26206cb48bbd957c2d98cfaa9e18
refs/heads/master
2021-01-19T13:01:28.663803
2019-05-14T15:39:29
2019-05-14T15:39:29
23,761,491
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
22.栈的压入弹出序列.py
from random import randint def pushpop(a,b): j=0 i=0 ass=[] top=0 while j<len(b): if ass and ass[-1]==b[j]: print "pop ",ass.pop() j+=1 else: try: ass.append(a[i]) print "push ",a[i] i+=1 ...
b9872f7dc93fcaddec6e6d80d266ceaef2dfdfca
0643f06e82379ccb7da9fb4f391da947e7fd762a
/applications/webscraper/demo_web_scraper_requests.py
5b6d96318f818761d0705710469112de81572cbd
[]
no_license
plutoese/Robot
1196c1c5fa9ab83c896c48dd2b49d21c56c9de94
35b5271f0c27524a3150bf637209b90ba93e563e
refs/heads/master
2021-01-21T04:50:55.519117
2016-06-06T09:44:02
2016-06-06T09:44:02
50,476,684
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
demo_web_scraper_requests.py
# coding=UTF-8 import requests from bs4 import BeautifulSoup html = requests.get('http://econpapers.repec.org/article/aeaaecrev/') print(html.status_code) bsObj = BeautifulSoup(html.text, "lxml") print(bsObj.h1)
7cbef6825935c3eb9f83d717613ff90d3a9f5d12
cd17a375f78506d0770fe783ff0e7996eea3d0d7
/python/src/basic_type.py
07e8fe4a734cca00dd69b18fc110e7ae0095a338
[ "MIT" ]
permissive
zhudanfei/json-schema-dsl
19aad5902add05fd464501991968b02ab6149baf
26323e8440a404610998a67912ecefb243bf788c
refs/heads/master
2021-06-01T12:27:32.806817
2020-10-07T18:32:20
2020-10-07T18:32:20
145,325,982
0
0
null
null
null
null
UTF-8
Python
false
false
1,474
py
basic_type.py
from schema_dsl_common import * def any_type(value, path): return value def string_type(value, path): path = path or [] if value is None: return None if not isinstance(value, (str, unicode)): raise TypeError(get_message(path, 'Should be a string')) return value def integer_type...
86f93115f42eedf4f6ba39e7e4333de5bb82d9d5
27f633e7a77fd061231e92d0217056131d8fb10c
/test.py
8f5e6da6bb80ad3203344f43d99992c5883a4b69
[]
no_license
LucasFuentesValenzuela/CS224W
763ee7a2adf43be88dd01a4105828371146ed383
ca535c9b3714031abf0eac86d59f2d166decabe1
refs/heads/main
2023-03-25T07:17:19.277048
2021-03-21T01:54:55
2021-03-21T01:54:55
337,878,316
0
0
null
null
null
null
UTF-8
Python
false
false
4,672
py
test.py
import argparse import os from typing import Dict import numpy as np import torch from torch import nn from torch import optim from torch.utils import data from torch.utils.tensorboard import SummaryWriter import torch_geometric as pyg from tqdm import tqdm # type: ignore from ogb.linkproppred import Evaluator from ...
16296b04772fe27f462b4a319fbec806180fc729
448d5e28ed28b310527b87dc4fd77c8953ce623c
/CP/Keteki Quick Match 8/p2.py
0180c396d401320f98f4178d3463146fbcd35323
[]
no_license
sakshamjn/algorithms-in-python
7f76c65208b4a52373ce4e4e206b31c77753b0fe
b37bf08c7ac736ab3db0e3c1b6dddda51c3ae015
refs/heads/master
2020-03-31T22:56:05.409621
2018-07-17T10:18:34
2018-07-17T10:18:34
152,636,174
1
0
null
2018-10-11T18:19:43
2018-10-11T18:19:42
null
UTF-8
Python
false
false
716
py
p2.py
import math def readInts(): return list(map(int, raw_input().strip().split())) def readInt(): return int(raw_input()) def readIntsindex0(): return list(map(lambda x: int(x) - 1, input().split())) def readStrs(): return raw_input().split() def readStr(): return raw_input() for __ in range(readInt())...
f58aa972cde2b66001e13e8b921bcb5597a3d8cd
3afe8e5250fee124beb6d475ad2488729bdc49fa
/modules/marketplace/templates/apps/frappe/admin/fabfile.py
a4657b8503f59e8368dde29c145a6cbbf15ca5f7
[]
no_license
mozilla-services/svcops-puppet
2a59b13f23230cfbee37b1086b12cf28d1d58bdc
7976468dc920ff29ba1a79f4da4c31cddd7b8d65
refs/heads/dev
2021-01-10T18:51:01.747574
2015-10-09T19:15:48
2015-10-09T19:15:48
10,369,937
1
3
null
2019-03-28T02:24:41
2013-05-29T21:33:43
Ruby
UTF-8
Python
true
false
2,682
py
fabfile.py
import os from os.path import join as pjoin import fabdeploytools.envs from fabric.api import env, lcd, local, task, execute from fabdeploytools import helpers import deploysettings as settings env.key_filename = settings.SSH_KEY fabdeploytools.envs.loadenv(settings.CLUSTER) SCL_NAME = getattr(settings, 'SCL_NAME',...
a1660499fe8e3d888a8c735afa44198da0a51b1d
33c97317edb079f47e1e79cd0624aeab4cb9c558
/predictions.py
6e3f536b73032bd0f6b5626e113e2faa2818628a
[]
no_license
shivam6328/NewsProject
a648da3db9c412bce5b0007204333a7ec963b8dc
7d12d40da40c2f351fae8720874ed4be2945e17e
refs/heads/master
2023-01-29T11:28:53.044248
2020-12-13T07:38:56
2020-12-13T07:38:56
288,627,874
0
1
null
2020-10-16T13:57:47
2020-08-19T03:51:51
TypeScript
UTF-8
Python
false
false
1,412
py
predictions.py
import numpy as np import pandas as pd import keras from keras.models import load_model from keras.preprocessing.text import Tokenizer from keras.preprocessing import sequence from keras.models import load_model filename = "News_Category_Dataset_v2.json" df = pd.read_json(filename,lines=True) #TextCNN=load...
b41ff0df324ecfd312717a2526b611566f3a763c
84d9055adb9f32b160b3f5171dd5ea3d3af8197c
/cluster.py
efe76893e0c61fde140e046b59fac9c1d500999e
[]
no_license
lucasjuliano/brazilian_school_clusters
8d8dccf22c61dd01f048b1bc719b41fc28add3b7
2b44eccae4f22048b350e51b84a8c71f9e282b06
refs/heads/master
2020-04-06T23:23:03.147477
2019-04-07T18:25:07
2019-04-07T18:25:07
157,867,056
0
0
null
null
null
null
UTF-8
Python
false
false
3,668
py
cluster.py
# Dependencies import pandas as pd import numpy as np import collections from sklearn.cluster import KMeans from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import MinMaxScaler import seaborn as sns import matplotlib.pyplot as plt #Função recebe número de clusters e retorna um dataframe com os...
4ccbb9dcf46cbbfe9130ed6d6e82c371746f5871
1a5e022f52c007a070b39300e37e1d7f62bb24ce
/23-FuncioneReduce.py
f93013b5bbfdfdb45278c89e2aa26e3dacbaa694
[]
no_license
ngodoy/learned-python
ba950b16a1d66d16a7c929a12c5f58219cd5386d
83238f0617b496a6f6cc2da09fe4d1a6b3f15628
refs/heads/master
2020-05-16T20:59:41.667455
2013-05-02T02:02:03
2013-05-02T02:02:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
23-FuncioneReduce.py
def suma(a,b): return a+b def multi(a,b): return a*b def filtar(a): return (a=='o') li =[1,-2,1,-4] lo =[5,3,6,7] s ="hola mundo" print "sin lambda" print map(suma,li,lo) print filter(filtar,s) print reduce(multi, lo) print "con lambda" print map(lambda a,b:a+b,li,lo) print filter(lambda a: a=='o',s) pri...
bd77b56018885e22fd22221809053a2d16067981
cee5def1e698026d43aac4dbd2cc9e0ce343c7af
/funcoes/exercicio3.py
72b9c2f3631482f6bc38969034b7554758bd72db
[]
no_license
mariaEduarda-codes/Python
ed4ec4701fc45a8d9664472bb12b750f3488d542
c91fbf49b81af4ab41941c73460bb835b064147e
refs/heads/main
2023-04-23T10:51:20.893005
2021-05-13T04:59:50
2021-05-13T04:59:50
349,898,296
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
exercicio3.py
""" Faça uma função para verificar se um número é positivo ou negativo. Sendo que o valor de retorno será 1 se positivo, -1 se negativo e 0 se for igual a 0. """ def verifica(numero): if numero > 0: return 1 elif numero < 0: return -1 return 0 num = int(input("Digite um número: ")) print...
e4d61e693e7e4b2b0cd45222fd205b142ba56d3e
23685c9c3b9e31ce3b90c8bb4e7706e143e0c563
/mySpider.py
766b2be0e1030c91574845f8e91bcbac99e375d6
[]
no_license
GitLaDeng/pygame_test
ea78cc3d1b656fc250ba7e6e43afccae6817d7aa
18592e2c456846d9a68e48ddbde358e681184161
refs/heads/master
2020-04-12T09:16:03.690715
2018-12-19T09:24:15
2018-12-19T09:24:15
162,396,946
2
0
null
null
null
null
UTF-8
Python
false
false
2,889
py
mySpider.py
""" """ import random import time import os import re from lxml import etree import requests # 基础url BASEURL = 'http://www.jyeoo.com/chinese/ques/partialques?f=0&q=bb552884-64a5-47fd-b70a-d307f4731084~cc998ecf-bf57-430e-8e64-bbd215756604~&lbs=&pd=1&pi=undefined&r=0.7368134808426823' userAgent_list = [ 'Opera/9...
17d498716f4e674b3760d96597515d5edf780775
00c7cc067173bf0b4a0872507b3997624f694325
/eigen_vectors/scripts/create-random.py
729d9524e08d8c5a331a730dd44df31b57a86992
[]
no_license
sateeshperi/snakemake_examples
c3b2f321abb2a38bd05185626e859d264196c23b
1afc031c19c7a2e99867c68884f9397bcad13622
refs/heads/main
2023-01-28T19:36:07.821700
2020-12-02T18:37:44
2020-12-02T18:37:44
316,652,631
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
create-random.py
import numpy as np n = 8 size = 1000 for i in range(n): random_data = np.random.random((size,size)) savename = snakemake.output[0] np.save(savename, random_data)
e435e0ec3ca5fb9d3de15a24864b490bd7aa265a
a788de741e3f5875797a8b5b545e50f02699f6d6
/crawler/refactor_crawl.py
421485b630584b20f0903e8ca90788e5c8fff5e0
[]
no_license
kcy13930/Ontheway
6d736b21a2146e2e9d4b3261bd040856d3f49427
3139492edbb1c620e113b39b80b0c204fbc9584d
refs/heads/main
2023-02-20T23:32:51.570767
2021-01-14T12:14:03
2021-01-14T12:14:03
328,366,310
0
0
null
2021-01-10T11:25:37
2021-01-10T11:25:36
null
UTF-8
Python
false
false
6,512
py
refactor_crawl.py
# -*- coding: utf-8 -*- """ Created on Wed Jan 13 22:50:36 2021 @author: 170544 """ from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import glob, os import pandas as pd class Crawl_tripadvisor(): def __init__(self, url, options, path): self.url = url...
465e8fdefcee892bf46d41803ca730248cb73ff0
f190d3b0ebb534dc533ea0df8c5fdc568c96c4e0
/Fundamentals/test/bai2.py
2971f220e3b5837c7d8d830b27245eebcfb7b72f
[]
no_license
dothinhung/review_C4E19
7a15fb3b56964eab9fb03b270eb30259bcb2d923
2608f40ab80ef0c15b5a338e6867eb9f001d5381
refs/heads/master
2020-03-27T03:39:47.212956
2018-09-04T12:26:56
2018-09-04T12:26:56
145,879,390
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
bai2.py
numb = input("Nhập vào 1 dãy số: ") li = numb.split() print("Trong dãy số: ") print(*li, sep=", ") print() print("Có những cặp số sau có tích bằng 128 : ") for i in range(len(li)): for j in range(i, len(li)): res = int(li[i]) * int(li[j]) if res == 128: print("{0} và {1} tại vị trí số ...
4d6ebd33c9251c99b4cef39b8c557265e67a38e1
edbd725247d3c30b94febd06f66545db59fd4463
/tests/test_train.py
e0b8a968ce2e2410f07c86c76699cf0b2091a508
[]
no_license
Alhuin/linear_regression
fb9b6dff05152ccc11b90bf52a6d7ff686bb9a13
9d093daeed4d287061da2c344b40b2b7ed571b76
refs/heads/main
2023-08-15T23:43:08.814886
2021-10-17T13:08:58
2021-10-17T13:08:58
387,826,862
0
0
null
2021-10-17T13:06:47
2021-07-20T14:58:15
Python
UTF-8
Python
false
false
4,890
py
test_train.py
import csv import os import pytest from linear_regression.train import parse, export_globals, grid_search, main from linear_regression.models import LinearRegression, DataSet thetas = "data/thetas.csv" def test_parse_no_args(): args = parse([]) assert args.scale == 'standardize' assert args.visualize is...
04c91d64636a1605d5aa89ebfa55fc3a11694f07
634a6e7b03af97a0dc1a4bbf9fe7b25311a8a2e0
/pacman-contest/expectiNegamax.py
755ac35fe78b550272febad165623f041b4c203f
[]
no_license
keep-anonymous/comp90054-pacman
058739399f619056c0769b4eedddbc3a1f5601cd
18074b79129f52c3a92e2c4053d937bd119034b3
refs/heads/master
2022-05-17T13:40:28.283179
2019-10-01T01:49:07
2019-10-01T01:49:07
211,990,071
1
0
null
null
null
null
UTF-8
Python
false
false
10,495
py
expectiNegamax.py
# myTeam.py """ The author of agents is Yufei Gao This is the 3rd version for agents using expectiNegamax search, which is a variant of minmax algorithm. """ # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish ...
019a08922b1461e6af4d6fafa027c857ec92758d
2759cffcc9709cf127400332c052711e4de966d1
/backend/modules/errors.py
9230936ec3d18a8ef0f853126a323b4b3e4e2de6
[ "MIT" ]
permissive
miversen33/ProjectPsittacosaurus
5017391047e3c60c118e3e8d8108782162473ee9
0a97586a914e260b8570a10d0ab53ca73e2e9250
refs/heads/main
2021-06-13T06:04:36.590015
2021-03-13T20:58:03
2021-03-13T20:58:03
163,046,641
8
0
null
null
null
null
UTF-8
Python
false
false
424
py
errors.py
class AuthenticationError(Exception): def __init__(self, message='', *args): super().__init__(args) self.message = message class ParseError(Exception): pass class InactiveUserError(Exception): pass class OverFreeLimitError(Exception): def __init__(self, user_id, *args): messag...
bbf967db3c89e9e797b63e24f84b0e06412d91ae
eff23058a3658160d798c439cb0187c3bb0a160b
/user_code/lang_reducer.py
a61ddf66a0aa6c6a2843d28aa4c6779a9f299774
[]
no_license
slipstreamJumper/twitter_feature_extract
df519463fdaf3836458489ac7c2201b3066c8f83
06d9c1365390843f461a114feea8d718b05105bb
refs/heads/master
2020-12-06T17:49:45.006970
2016-09-02T13:29:45
2016-09-02T13:29:45
67,224,240
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
lang_reducer.py
#!/usr/bin/python import sys langTotal = 0 oldKey = None # Loop around the data # It will be in the format key\tval # Where key is the store name, val is the sale amount # # All the sales for a particular store will be presented, # then the key will change and we'll be dealing with the next store for line in sys.st...
883acd8ded4efadc6ab4c88e8bbb90fd1cf2b940
83fbd1736aa69e23c0ef66f61a89192a2f553de4
/shell_sort.py
25bcb877e446b2c3860ba6eef6e1d0162a5dac67
[]
no_license
brennobrenno/data-structures-and-algorithms-python
d3eafc275ee042f190760a37205e415ba1079a81
08a4f5d5cdbb26371ebff088faf25eee63dc9b4d
refs/heads/master
2022-01-05T19:06:04.650022
2019-05-06T03:03:25
2019-05-06T03:03:25
167,302,572
0
1
null
null
null
null
UTF-8
Python
false
false
709
py
shell_sort.py
def gap_insertion_sort(arr, start, gap): for i in range(start + gap, len(arr), gap): value = arr[i] pos = i while pos >= gap and arr[pos - gap] > value: arr[pos] = arr[pos - gap] pos -= gap arr[pos] = value return arr def shell_sort(arr): sublist...
a3f20fbd2ad9dbce59bf99cd51cf7aece34d18a0
ffe23a787537b9706c9ec4d5f7f6ada44ca658f5
/monkey_eatpink.py
256f0753ffd489d64d8bf5dfb36fc7f7ea4d8e9f
[]
no_license
zhouli01/python_test01
cf966d8d16167f3ab752254d66cef8a94663bbdf
658d69d33b8255d612ff79e1df0ffe734d8971bd
refs/heads/master
2020-03-07T03:15:33.608727
2018-04-21T03:47:06
2018-04-21T03:47:06
127,231,004
0
1
null
null
null
null
UTF-8
Python
false
false
702
py
monkey_eatpink.py
# x=1 # for i in range(0,9): # x =(x+1)*2 # print ("总数:",x) # coding:utf-8 # 猴子分桃,最少问题分析:问最少有多少只桃子,则岸上最后剩的桃子数目越小,则原岸上的桃子越少 # 假设最后岸上还剩4x只桃子,可以利用递归方法求解 num = int(input("输入猴子的数目:")) def fn(n): if n == num: return (4 * x) # 最后剩的桃子的数目 else: return (fn(n + 1) * 5 / 4 + 1) x = 1 wh...
0c5af6e9a5c33b593aea44d5672f5bf73a6055df
ab7b5483cd89b44d2285715931f8ba34add87e4d
/nist-privacy-framework/importer.py
22a364825bb3d63da96707c493d30d9d10285c38
[ "MIT" ]
permissive
syllogy/atlasify
6be9a22c411b702e0689ab7aa920e6244fcdaeae
8aa98eb39238fb40bbcb7c72c0c59a610744cf6b
refs/heads/master
2023-08-18T13:40:46.697996
2021-10-26T14:57:15
2021-10-26T14:57:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,660
py
importer.py
#!/usr/bin/python # This code sample uses the 'requests' library: # http://docs.python-requests.org import requests from requests.auth import HTTPBasicAuth import json import argparse class Logger: OK = '\033[92m' WARNING = '\033[93m' ERROR = '\033[91m' END = '\033[0m' # setup parser for command line ...
fcc0bb0f810f88acd417ffa31d451b0151fa2372
a8ceaf6ea128e88dbf4de47c89dac0a647e0151b
/video_datasets_api/ucf101/video_id.py
4dd91b0095ee2be449d2b239aafeb63b28502e51
[]
no_license
caiqixuan/video_datasets_api
6599d2eac1ac8cb22ecef733bf936a102f0eed39
1a6fa5a81c9ddd826ce7cdb790b1fd83b5daeaa8
refs/heads/master
2023-06-15T08:28:19.333877
2021-07-11T19:57:11
2021-07-11T19:57:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
video_id.py
import os def get_unique_video_ids_from_videos(videos_dir: str, search_dirs: bool = False): videos_dir = os.path.join(videos_dir, '') video_list = [] video_path_to_ids = {} current_video_id = 0 for root, dirs, files in os.walk(videos_dir): dirs.sort() files.sort() if search...
1dc249773168ced40cb3f089d558c3f0c40640bf
26275d7dd634cbbe78793583a4bcf8b1e991d7e0
/django/django_project/air/views.py
1e8b2f7d96e39af87f83a2f3612b4f2a0e5e9ea1
[]
no_license
alan924/WeatherMonitoring
16e6f102500925b69b9a6c2ce48d4ece35cbfc7d
dc61c6844e4bc7cb3730b01069b0601c431d6f61
refs/heads/master
2020-05-15T13:10:59.386724
2019-04-19T16:14:18
2019-04-19T16:14:18
182,290,672
0
0
null
null
null
null
UTF-8
Python
false
false
8,253
py
views.py
#-*- coding:utf-8 -*- from django.shortcuts import render, render_to_response from django.http import HttpResponseRedirect from django.http import HttpResponse from django.conf import settings from django.utils import timezone from django.views.generic.list import ListView from django.views.generic.detail import Detail...
51701d667a6c58a776dccf6cb2ae57458a203674
09cde88829fb20fcecab05cd70104f84aa05e834
/Searching/dfs.py
ea1191e2cae63df2353ddf5f3cf6fdcab26ce0e3
[]
no_license
vinod-designer1/competitive-programming
7cb933335c28dc0be7df20a6c9b0270d350968d9
01ed76cdedbcce8dfdb45e29ead9672657d41c8c
refs/heads/master
2021-01-19T17:17:33.646872
2014-09-03T13:50:18
2014-09-03T13:50:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
dfs.py
def DFS(adjList, st, V, E): parentV = [] distV = [] colorV = [] nextV = [] processed = [] for i in range(V): parentV.append(-1) distV.append(0) colorV.append(False) processed.append(False) nextV.append(st) time = 0 while nextV: crv = nextV.pop() colorV[crv] = True distV[crv] = time #proces...
dc8928c2fb41e4584c953d0da51e76b74fafe412
f0a7c64a9f5aa1516735648ccc72f531cebbd137
/addRecord.py
bf4193896fbe24bfcbe1b397c37fb0987992c633
[]
no_license
Jacob-Stahl/swe-project
8a5c8e73efe1940b2fe745f2cd6eb33556b322a9
6db29182063236e78fe4fb7fa2057fbe15b20c75
refs/heads/main
2023-01-22T21:07:51.570976
2020-11-29T01:12:58
2020-11-29T01:12:58
312,145,561
0
0
null
2020-11-29T01:06:46
2020-11-12T02:26:27
Python
UTF-8
Python
false
false
3,741
py
addRecord.py
# Adding support for python 2 & 3 try: # for Python2 from Tkinter import * except ImportError: # for Python3 from tkinter import * import tkinter as tk import tkinter.messagebox from DBInterface import * # tkinter window class App: def __init__(self, master): self.master = master ...
3f3ed0165120dc135a4ce1f282dbdf9dad57adf8
e0371608014c77d02915411ec6f5a584f566db4f
/DAPOS/settings.py
06ef2311013adbb15bc2ea132b69827788ab8090
[]
no_license
myaser/DAPOS
a5a775d2f36f2f598485790933f3d603ff461060
5e715a7770f6a0130ca18afd09332da70eb2def7
refs/heads/master
2020-04-06T07:09:47.320775
2013-10-26T14:49:35
2013-10-26T14:49:35
11,812,360
4
4
null
null
null
null
UTF-8
Python
false
false
5,647
py
settings.py
# coding: UTF-8 -*- import os.path PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) EMOTICONS = { "O:)": "angel", "o:)": "angel", "O:-)": "angel", "o:-)": "angel", "o:-3": "angel", "o:3": "angel", "O;^)": "angel", ">:[": "annoyed/disappointed", ":-(": "annoyed/disappointed...
3cc894570189fe545f5db3150d0b69c16dc211dc
c99d900df7c90c9fa095a871457f4bd73cf424f9
/player.py
192a385be87ad1a018e635e7f9bd53d5739a5520
[]
no_license
pratikpv/pyTicTacToe
b4ba8f8f9cd54ffd6e966e6721fe3b9390ca9b3a
538799f1c900a6a78322b66921b215da48da4ee7
refs/heads/master
2020-08-10T05:58:26.472902
2020-08-04T04:20:29
2020-08-04T04:20:29
214,276,009
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
player.py
class player: def __init__(self, name: str, symbol: str): self._name = name self._symbol = symbol def decide_next_move(self): """ Checks all possible combinations to decide best next move :return: board position """ pass def get_next_move(self): ...
3f8b8b8cfbe712f09734d0fb7302073187d65a73
4d8b1f901c62bbc1eeef673bf97e014d413663f2
/GeneralCode/Sort/insertionSort.py
616f995f568ddc186d0e4e56d0ac6c54d1a5709a
[]
no_license
nikhilcusc/HRP-1
995e1a0ec84d523221ed1f9ce4498192cc56e15a
f527a354589147dcb054fb83fe4474c70ed039aa
refs/heads/master
2021-05-21T07:57:24.453333
2020-06-20T22:33:02
2020-06-20T22:33:02
252,609,981
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
insertionSort.py
''' def Sort(a): i=1 while i<len(a): j=i while j>0 and a[j-1] > a[j]: temp = a[j-1] a[j-1] = a[j] a[j] = temp j-=1 i+=1 return a ''' def Sort(a): i=1 n=len(a) while i<len(a): j=i print(i-1,'\t',i) whi...
e95de58828c63dc8ae24efff314665a308f6ce0c
dcd0311b06d9d271555c072567c3f620d6771768
/backend/project_azucena/modules/assistants/migrations/0001_initial.py
46a5205d4bf5dad6fb46309febe48bde728e63eb
[]
no_license
RootDevOpsI/devfmexico
774353a92b585ed3ea2eb742160687d33a999134
4b7ea3e03e85652dbcbe2d963e58bbc0c0b125d6
refs/heads/master
2021-05-06T11:49:05.550757
2017-12-15T03:17:48
2017-12-15T03:17:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-13 02:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('stores', '0001_initial'), ...
a406efcab62b2af67484da776f01fc4e6d20b697
b5887d5e68cfee0e967c6bf7235dd07797518b2e
/Two_Number_Sum.p1/answer/sol_1.py
0c6c977016d63a8d83111e43f31fe6c44c9aa28b
[]
no_license
1dpiho0120/tibame_python_practice
fd434eadbdb719205695af3219c968a764e86e00
0e930eef2fef9e064082da793129066ff9e18ee4
refs/heads/master
2022-11-24T13:48:02.165162
2020-08-05T07:50:57
2020-08-05T07:50:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
948
py
sol_1.py
#!/usr/bin/env python3 def twoNumberSum(array, targetSum): # Write your code here. # O(n^2) time | O(1) space ''' Double for loop, quadratic run time No variables increase as the input size increases, therefore constant space complexity. ''' for i in range(len(array) - 1): firstNu...
d265781c6b618752a1afcf65ac137052c26388a6
3f2443dba35c42a296ffaef72c731f33c4892d07
/analysis_scripts/001_other_predictions.py
b52fd1e7ae9393858f1f363bb99f9111973da547
[]
no_license
tommylees112/esowc_notes
7cde6a373211647447084789fbee2597d81c0ce8
2a39c5c20ed50f3194ebb95aba720e48215c0dfd
refs/heads/master
2021-06-21T17:07:33.663693
2021-01-28T18:34:58
2021-01-28T18:34:58
184,609,893
3
0
null
2019-05-26T19:49:30
2019-05-02T15:54:31
Jupyter Notebook
UTF-8
Python
false
false
742
py
001_other_predictions.py
import xarray as xr import pandas as pd import numpy as np import matplotlib.pyplot as plt import pickle import seaborn as sns %load_ext autoreload %autoreload 2 %matplotlib data_dir = Path('/Volumes/Lees_Extend/data/ecmwf_sowc/data/') # READ in model (maybe want to do more predictions on historical data) from src.m...
15edb1c051ccbc6f927c0a859288511f94a3d853
4a9f0a430a0d4930ec13db07011bceaefdfaaaad
/dbt-env/lib/python3.8/site-packages/mashumaro/serializer/yaml.py
03c4c76d4241042c7b99f66ea49826bfd1f493e0
[ "Apache-2.0" ]
permissive
akarve/dbt_salesforce
4dbb152b400d842c8018deefbc822c270c8923aa
83550a55034de3c6e380334e62ae103dfba4bedc
refs/heads/master
2023-08-24T19:50:15.128086
2021-10-06T20:59:32
2021-10-06T20:59:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,373
py
yaml.py
from types import MappingProxyType from typing import Any, Dict, Mapping, Type, TypeVar, Union import yaml from typing_extensions import Protocol from mashumaro.serializer.base import DataClassDictMixin DEFAULT_DICT_PARAMS = { "use_bytes": False, "use_enum": False, "use_datetime": False, } EncodedData = ...
274185896ab5c11256d69699df69fc2c0dde4f2d
127f4d366646f15b0c5f24717c53a6b60b68acef
/extract.py
776222304e436ee2c38cc144ba9ccad157a094c2
[]
no_license
otech-nl/meteor-packages
625c443d3b97ac020d6b2c155df692bd773b8d34
82ed65ebb19f6dd92efd62e307f05409c0485075
refs/heads/master
2021-07-18T08:35:12.081299
2017-10-27T09:05:46
2017-10-27T09:05:46
108,447,508
0
0
null
null
null
null
UTF-8
Python
false
false
1,474
py
extract.py
''' extract package names from the Meteor guide and write them to packages-guide Uses the content folder of https://github.com/meteor/guide ''' from collections import defaultdict import os import sys import markdown from bs4 import BeautifulSoup def get_links_from_markdown(path, name): try: with op...
21e86e4719cda5c40f780aca6e56eb13c8c9b8e5
8e41486d690d545b8049200da9f8499ebff5867d
/src/pds/roundup/step.py
22aa0d60c43ab154a0921723af228ae7b1b74168
[ "Apache-2.0" ]
permissive
nutjob4life/roundup-action
3ac334bef0b28511e29f0df0af4225327374063c
6e0c99e9ebe08fd5f7c43e7bb1e25cca09b562f6
refs/heads/master
2023-03-09T11:49:29.960464
2021-01-10T19:46:04
2021-01-10T19:46:04
301,764,680
0
0
Apache-2.0
2020-10-06T15:02:49
2020-10-06T15:02:48
null
UTF-8
Python
false
false
6,186
py
step.py
# encoding: utf-8 '''🤠 PDS Roundup: A step takes you further towards a complete roundup''' from enum import Enum from .util import commit, invoke import logging, github3, tempfile, zipfile, os _logger = logging.getLogger(__name__) class Step(object): '''An abstract step; executing steps comprises a roundup'''...
333914f99face050376e4713ca118f2347e50018
09b96768cc38e89baa39744a7294f4dd1d74a3cb
/sandbox/staticpages_testapp/base_urls.py
e9337d108cdca331044d1f1f26fd93d939ed24e3
[ "MIT" ]
permissive
emencia/emencia-django-staticpages
e3241b2cf4395694d4f2d833d4c3dc931ece86a6
eca13c2f4340d44ec914b51ed225527e9369d591
refs/heads/master
2022-09-26T12:38:07.979164
2022-09-18T20:33:22
2022-09-18T20:33:22
21,673,318
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
base_urls.py
""" URL Configuration to test mounting created urls from registries """ from django.contrib import admin from django.urls import include, path from staticpages.loader import StaticpagesLoader staticpages_loader = StaticpagesLoader() urlpatterns = [ path("admin/", admin.site.urls), # Add base pages urls usi...
718c9bc0e52c73ddbde2cb07c9f4c1388c6b18b0
6810a482759afd585db7bb0b85fd0416f0450e6d
/Open Kattis/eulersnumber.py
4dcfe83b0aa7cc6d0c675449acbb08d734ad861a
[]
no_license
BenRStutzman/kattis
01b000ac2353c8b8000c6bddec3698f66b0198ef
005720f853e7f531a264227d0d9aaa19d4d7cf1b
refs/heads/master
2020-07-15T23:52:45.785021
2019-11-09T03:28:06
2019-11-09T03:28:06
205,675,532
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
eulersnumber.py
import math def main(): N = int(input()) if N > 20: print(math.e) else: e = 0 for i in range(N + 1): e += 1 / math.factorial(i) print(e) main()
6acc4ff67a33a7a48c3b04fb2420708e5c7a574e
34b64b530c63c29643bc1ab4312ae70ae218e668
/board_evaluator.py
781a8a6467dff6beba1837685b97f2ab2f377945
[]
no_license
statemachine/Tic-Tac-Toe
88f8f96b77cbf017f4859be6062e5904ffcf3c48
4e63409a61ddaba0dc87c14eefcc43a027f74cad
refs/heads/master
2021-01-21T00:00:52.078426
2011-05-28T03:11:54
2011-05-28T03:11:54
1,805,747
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
board_evaluator.py
def detect_win(board): #check for horizontal win for y in range(3): player = board[y][0] if player != 0 and player == board[y][1] and player == board[y][2]: return player #check for vertical win for x in range(3): player = board[0][x] if player != 0 and player...
6650e7559cd732c85036d1e023a629b86e23b191
6722e5eba85310b405221666b637956d35b9cd97
/player.py
7daad7b62e7a2b43d6dfdb5a63ad59ac8116ede2
[]
no_license
lcsvillela/Passe-dix
22a226104a6286bf4127521ac01bd669887d40e0
588050cc9735e1f4012fa7c998d090402901c859
refs/heads/main
2023-08-23T07:22:29.682478
2021-10-16T01:03:36
2021-10-16T01:03:36
417,677,297
2
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
player.py
from dice import Dice class Player: def __init__(self, name, quantity_dices=4, turns=100000, games=7): self.__results = {} self.__results["wins"] = 0 self.__results["lose"] = 0 self.__results["draw"] = 0 self.__results["name"] = name self.__results["information"] = ...
90b681d7c9483245a507ed8bb298f1d2a6394838
67f1e732a28eae917ef2f00a8f51e1543ebdcc10
/TeamA/Unit1/src/U1_1.py
9e68c48bf73c95412cb6ae8e186d98286a76cfe4
[]
no_license
maxprofs-llcio/Team-A-NLP
5e1760d8838093908d07fdfcd2f3010526bb8791
264338fef388d8bad7dce07171134674dddd6e71
refs/heads/master
2022-06-21T03:37:06.751458
2020-05-13T18:18:08
2020-05-13T18:18:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,483
py
U1_1.py
from __future__ import division from nltk.probability import FreqDist from nltk import FreqDist import nltk import operator from nltk.book import * from nltk.stem.porter import * listOfTexts= [text1,text2,text3,text4,text5,text6,text8,text9] stemmer = PorterStemmer() processedWords7 = [(stemmer.stem(wo...
b58ce42c796b4bf78f46dd97140c28f2dfe5feba
74bfe8cfb4cfceae2a6d435d692dad1111d34649
/back/test_data/5_hadoop/hadoop_train_predict.py
1813bc3fa99b8a3c6a9c88e8c3793f72a38303e6
[]
no_license
airhandsome/Steganalysis
5ef974f15573f58301abc80dc61ef9b18ac9207c
79ddea986b8aaac89b719d3b57c6dfc3f6a3db8f
refs/heads/master
2020-03-22T17:05:30.624290
2018-07-10T03:39:55
2018-07-10T03:39:55
140,371,965
0
0
null
null
null
null
UTF-8
Python
false
false
2,935
py
hadoop_train_predict.py
# coding=utf-8 # !/usr/bin/env python import sys import os hadoop_cmd="/usr/local/hadoop/bin/hadoop"#hadoop安装目录 data_root="/home/test_data/" hdfs_root="/user/hadoop/" def run_hadoopcmd(cmd): hadoopcmd = hadoop_cmd + " " + cmd os.system(hadoopcmd) def get_img_path(local_img_path, local_txt_path,taskid): ...
8edd4424dac4309051fb57b9a7796d97e46f57c1
d7a3f059c1a52e2bf2bbb874ed60296433aab56b
/hbi/client.py
f5492eb51cf9c3e0dbf569733d55a42334892ee2
[]
no_license
jhjaggars/host-inventory
24e5bd102f081ec8fb5707ff4a6f81dbf23904e7
aeaa80188108c990c1d63d046ba5b05506969528
refs/heads/master
2020-03-25T11:49:27.633975
2018-08-17T22:13:54
2018-08-17T22:13:54
143,750,063
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
client.py
import grpc from hbi.hbi_pb2 import Host, HostList, Fact from hbi import hbi_pb2_grpc, util def run(): with grpc.insecure_channel('localhost:50051') as channel: stub = hbi_pb2_grpc.HostInventoryStub(channel) for name in util.names(): display_name = "-".join(name) host_fact ...
8d9bd1a2448c6154d2d3f56e920d9e3a5b4a2a62
70e2567972adfa433648f1c8b85912eb344bfed5
/app/schemas.py
4da6342edc1097b813d9b7d31011e177c1c46ead
[]
no_license
vianabcc/bootcamp-demo
c4d60a704d9881a83d2f9ff44fd4659d8fa1e972
62709eb282777585fb0c3d8abdb7bcbf6109430c
refs/heads/main
2023-08-27T16:32:53.339667
2021-11-03T12:57:38
2021-11-03T12:57:38
423,024,875
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
schemas.py
from pydantic import BaseModel class BaseUser(BaseModel): email: str class AddUser(BaseUser): password: str class Config: orm_mode = True class UpdateUser(BaseUser): password: str is_active: bool class Config: orm_mode = True class User(BaseUser): id: int is_active...
d3f8c5e4e079cb7b8f7730bf6484c56e8416e5b3
d05a99823045efe58142ce031d4c4284a2228391
/Assembler/Blocks/RandomInt.py
0e5f949029df7ce90e8cf576c5cb3d12a5e6629f
[]
no_license
IanMatthewHuff/AAAAAA
635a3b13b65228f167fd3416693686f46b53e4c7
b5d735752da4db63ed2437910b89f7ae02389390
refs/heads/master
2021-07-16T20:50:34.246346
2021-03-10T13:12:49
2021-03-10T13:12:49
21,848,684
1
0
null
null
null
null
UTF-8
Python
false
false
182
py
RandomInt.py
def supported(): return ["single_value"] class RandomInt: """ Class to supply a single random integer (most to test plugin arch) """ def value(self): return 1
267909e18719f4e1de1988f86b92a9cec059d435
43ed419c457ee9eb28be4a30f41dffb6e46f6237
/instrukcje_warunkowe.py
cfb047c263072035c42e0a911d372e03c745cf60
[]
no_license
kbajka/test01
23ee673844742439093b6693ce3693952a9b9771
1b1fea8450ed8d36fe38bade74f269bed0927fcc
refs/heads/main
2023-09-01T22:16:36.719092
2021-09-27T20:08:02
2021-09-27T20:08:02
408,546,214
1
0
null
2021-09-27T20:08:03
2021-09-20T17:53:40
Python
UTF-8
Python
false
false
619
py
instrukcje_warunkowe.py
liczba1 = 2.01 liczba2 = 2 if liczba1 > liczba2: print("Pierwsza liczba jest większa") elif liczba1 == liczba2: print("Liczby są równe") else: print("Druga liczba jest większa") print("--------") liczba = (input("Podaj liczbę całkowitą")) print(type(liczba)) #if type(liczba) != class(int) # ...
e0af6e9ef80ace99ea8fb967af84bb5ea4dac8e2
6e8c00162af72a10c0e8da52bc2543a9821ab72b
/Tabla_de_5_a_15.py
32dd27f8b995bd2947795b071ff1c1fd6b04ae55
[]
no_license
TomasNiessner/Mi_primer_programa
79485bf574190b47ed701d0cbeb63c0b6243cd86
ddf82a8aaef47f624cbd190019472c03c71ab532
refs/heads/master
2020-05-03T12:17:08.932208
2019-10-05T15:08:58
2019-10-05T15:08:58
178,621,549
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
Tabla_de_5_a_15.py
#Modifica el programa de la tabla de multiplicar para que vaya del 5 al 15 en lugar del 1 al 10. numero_tabla = int(input("Ingrese un número para obtener su tabla de multiplicación: ")) for numero in range(5,16): print("{} * {} = {}".format(numero_tabla, numero, numero_tabla * numero))