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
0ec5d6ce11851a577046cf73cf98c91b6dfb9f67
b5122821a4b59081cf0ac17f9a673fafcee0b2ec
/conix-demo/original/visualizer.py
6f481bbbac5480030dfb3b811bacce3c62fbdbf2
[]
no_license
sugartom/miniature-winner
94051cceca38202a694df385ad2e1696f47ef228
b1f8fb4d568e56facf1356003203dfb0b1f98f2c
refs/heads/master
2021-06-13T00:33:54.747844
2021-05-19T21:35:27
2021-05-19T21:35:27
175,060,615
0
0
null
2019-03-11T18:29:39
2019-03-11T18:29:38
null
UTF-8
Python
false
false
3,402
py
visualizer.py
from concurrent import futures import time import math import logging import grpc import tensorflow as tf from tensorflow_serving.apis import predict_pb2 from tensorflow_serving.apis import prediction_service_pb2_grpc import sys sys.path.append('/home/yitao/Documents/fun-project/tensorflow-related/miniature-winner/')...
b4b4dad5cf630dc1a627e323ea63577583d1e1c3
a1a8f39c6ed361dc70f68d70d05e9f9cc83c71fb
/hs2018/twitter_stock_correlation/util/yahoo_helper.py
b2e3a1779a729f12c8a80effbc20ffc6f8b787dc
[]
no_license
romanutti/twitter-stock-correlation
1455ed104c8ae4ce781486c4b4643861423b1e99
1aaaab0a16ed40d7b28a0619800881937dfb30e3
refs/heads/master
2021-07-13T09:24:16.364496
2020-09-22T07:41:25
2020-09-22T07:41:25
198,760,369
1
0
null
null
null
null
UTF-8
Python
false
false
2,966
py
yahoo_helper.py
from pandas_datareader import data as pdr from datetime import date class YahooHelper: """ Class to fetch Yahoo data """ def __init__(self): """ Default constructor which initiates object """ pass def get_data(self, symbol): """ Function to collect...
b6dbed95b321ac93c712c4735d601a00650b8dc4
ef92c2706bde6f78baa96063f63778dadb63e28e
/gen/PlSqlLexer.py
1f4604f9e9efed2a43432284831157ca345e34fd
[]
no_license
imran-iitp/BTP_2k18-19
f5b459511ccefb885518a991feebec340489ca2c
59a58e6356402dfb68c5c0aa2e0ca3e7df72d1c1
refs/heads/master
2020-05-20T02:35:48.107688
2019-05-04T17:02:48
2019-05-04T17:02:48
185,336,655
1
0
null
2019-05-07T06:34:03
2019-05-07T06:34:03
null
UTF-8
Python
false
false
269,790
py
PlSqlLexer.py
# Generated from /home/mridul/PycharmProjects/BTP_2k18-19/PlSql.g4 by ANTLR 4.7.2 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\u020e") buf.write("\u...
c6357e6e0656388fc3fd849879aa6000e0bee1ee
d0a5dba5d0f7a14228cfc6c501e332c8ca3588ef
/src/python/learning/learn.py
ac3076e5566c7c8b5aeb521ade8c504caa1cfa34
[ "Apache-2.0" ]
permissive
yazanobeidi/sentience
47a20d3bfc6d4d19c59353d034390796799deb1a
629ec22c896c6f5df8dee597963ab4b4e578eb9d
refs/heads/master
2021-01-01T19:48:15.303963
2017-12-26T18:21:04
2017-12-26T18:21:04
98,690,077
0
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
learn.py
# # o o # 8 # .oPYo. .oPYo. odYo. o8P o8 .oPYo. odYo. .oPYo. .oPYo. # Yb.. 8oooo8 8' `8 8 8 8oooo8 8' `8 8 ' 8oooo8 # 'Yb. 8. 8 8 8 8 8. 8 8 8 . 8. # `YooP' `Yooo' 8 8 8 ...
193dcf7bd658f88afe0a1f2fa28605f262e45bc2
9c3a762cb28d30e8e96bbee51773d081cd1d004d
/lava/session.py
de076cf96c434cf7d8f05d2a1a0157342af48dc4
[]
no_license
KingWeeb/lava
1ccf32beda8bb6655987d5e480f006a6b5e418fe
8c92a2870187053970cc033c7966e3f8ba345522
refs/heads/master
2022-11-10T15:31:11.121130
2020-06-29T22:15:57
2020-06-29T22:15:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,365
py
session.py
# -*- coding: UTF-8 -*- import lava from lava.api.constants.vk import QueueType from lava.api.device import Device from lava.api.util import Destroyable __all__ = ["Session"] sessions = set() class Session(Destroyable): def __init__(self, physical_device, queue_index=None): super(Session, self).__init...
38e616e35f165d458d774dd0b6837a733b8402d7
e6e5141787917abdb07308f832a36a467cc664f6
/source/analysisSupport/identifyComponent/script/CrudAccessValue.py
e7aae311b18988bed1d37c904b43beca6e665169
[]
no_license
temp9999gi/projectautomation
a34ef13dc371c018bbb5808e0d8dec285e396dc9
4e1f3eed5fb481956d045019034d5fb4bd5828dd
refs/heads/master
2020-05-17T10:58:45.758691
2007-08-21T14:36:14
2007-08-21T14:36:14
33,873,113
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
CrudAccessValue.py
# -*- coding: utf-8 -*- import sys #from Constants import * # start import CrudMatrixDao class CrudAccessValue: def __init__(self): self.crudAccessValue = {} self.__run() def __run(self): aCrudMatrixDao = CrudMatrixDao.CrudMatrixDao() # print aCrudMatrixDao.selectCrudAccessValueAction() ...
385dccfab4d7c37d10d968658b51e231691a7b49
02bc354e0b3b922c75fa79d5560521c9d79878a6
/scripts/test_svm.py
14b926dc3f826a83597d54cf30cc66551b5e143a
[]
no_license
SoyChae/11775-hw2_code
02fa392ec32a381dbcb385f5712ef9d3d1835d9a
50d7b87ad3bda43070f9f618f9f8e2b60e7bfa09
refs/heads/master
2022-07-30T21:37:39.079215
2020-05-19T02:57:40
2020-05-19T02:57:40
265,122,153
0
0
null
null
null
null
UTF-8
Python
false
false
2,630
py
test_svm.py
#!/bin/python import numpy as np import os from sklearn.svm.classes import SVC import pickle import sys # Apply the SVM model to the testing videos; Output the score for each video if __name__ == '__main__': if len(sys.argv) != 5: print("Usage: {0} model_file feat_dir feat_dim output_file".format(sys.ar...
cddd5deba0ddc59a604d2926bdc687716e08f226
a36eb4685fd050c8e1ecb4a333470724bd76df60
/Leetcode/Aug20/300820/q3/q3.py
42ea07331ad84a23c415d84be6d5722aa494783e
[]
no_license
phibzy/Contests
c9cff976909234cfafc51db9d9dde01c26123168
24aac4c81f34916945be03ed0b7c916dae4dbbb4
refs/heads/master
2023-01-20T06:23:06.837937
2020-11-30T06:54:58
2020-11-30T06:54:58
265,750,701
0
0
null
null
null
null
UTF-8
Python
false
false
2,892
py
q3.py
#!/usr/bin/python3 """ @author : Chris Phibbs @created : Sunday Aug 30, 2020 14:05:56 AEST @file : q3 """ class Solution: def minDays(self, grid: List[List[int]]) -> int: # bfs - find 1, run bfs. Then loop through - if any other ones found then disconnected i, j = 0...
06dd963b62c0a746438dcf01c67ef5de1a4c5e8f
0e6887b44b1a83e293569447151348b80c2979bf
/dist/untitled0.py
dc11d8a196f7f121dd26bb41327605356e9d5364
[ "MIT" ]
permissive
starwh03/computerscienceproject
42d4d9f82b4dad3cd15aae27ffeb5171367b0afa
a3a3e6ecb3274f4bc4ce39a0fcf5b8647a7c6f29
refs/heads/main
2023-07-24T12:42:58.268954
2021-09-08T14:03:18
2021-09-08T14:03:18
404,349,291
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
untitled0.py
from pytube import YouTube, Playlist import json import sys import os import urllib.request p = os.path.abspath('appdata') def collect(yt, dir): code = yt.thumbnail_url urllib.request.urlretrieve(code, os.path.join(dir, yt.title + '.jpg')) out = yt.streams.filter(only_audio = True, file_extension ...
314f6cc97f53fa5bd8bf0ec0e1e305ca6384f1a2
450d1413e323dc98c32d7e071e0fcf2f40900b15
/dojo_book_app/apps.py
314ce01edc176fba62d81a2ab6bea4d9679b98fa
[]
no_license
RebeRobles/Dojo_Reads
a6bcecb5d54e46473ef4a70b0611d3e7370a3a68
8c249a3255dbbf829396d8a4a9964038bc1d8b89
refs/heads/master
2023-08-15T11:30:47.490571
2021-09-13T13:11:56
2021-09-13T13:11:56
405,976,765
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
apps.py
from django.apps import AppConfig class DojoBookAppConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'dojo_book_app'
369952126e8a5fb6768b2bded6ae5ca77adfdc25
05c5f5bbc2ddfa850d4ae28148f176c5d63a4a7b
/tbkt/apps/sx_normal/views.py
2fff24513390ffff6e0a8c0f45a13a1952945697
[]
no_license
GUAN-YE/hd_api_djs
f7234643c06f47c03c348c7740266d45989c5e77
1f08cbfccc1ae2123d92670c0afed9b59ae645b8
refs/heads/master
2020-03-25T02:32:03.613535
2018-08-02T12:52:45
2018-08-02T12:52:45
143,294,216
1
0
null
null
null
null
UTF-8
Python
false
false
5,712
py
views.py
# coding:utf-8 from com import com_award from com.com_user import need_login from libs.utils import ajax, ajax_json, ajax_try, Struct, db from . import common STU_LOTTERY_COST = 1000 TEA_LOTTERY_COST = 2000 STU_ACTIVE_ID = 8 TEA_ACTIVE_ID = 9 def base(request): user = request.user active_id = STU_ACTIVE_ID ...
9f5411cf63f5bb536f593f575ddf9e2fc9775f36
f8dd240e5087b70e99a0e29e004c66259af205ff
/demo.py
c46608337c8f54723ba05777ce0b1b561bedcb51
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
mklkun/proactive-python-client
b56b99ba9c604f7c9b9df62d6bacdbe10894d890
653c295801210a2f9af075a189a05caf5bcfd7f2
refs/heads/master
2022-08-22T09:23:05.214994
2022-07-20T16:11:28
2022-07-20T16:11:28
176,296,319
0
0
null
2019-03-18T13:50:45
2019-03-18T13:50:45
null
UTF-8
Python
false
false
2,801
py
demo.py
import os import proactive import getpass print("Logging on proactive-server...") proactive_url = input("Server (default: https://try.activeeon.com:8443): ") if proactive_url == "": proactive_url = "https://try.activeeon.com:8443" if not proactive_url.startswith("http"): proactive_url = "https://"+proactive_...
ea1acaebce3a49cb9d05486946b3632025f5b582
eaa882e60b2a097e3033b09e8e77676972788091
/Code/challenge_2/graph_test.py
85afa3751d329c555a710338efd05c8e7f0462d9
[]
no_license
anselb/Advanced-Recursion-and-Graphs
cc8f0859c52502c0560bacc92329dd90c4c1f650
4e3e0825c60cc861dcc05901622536ccf6044dfb
refs/heads/master
2020-06-17T22:32:13.123159
2019-08-12T00:39:57
2019-08-12T00:39:57
196,082,223
0
0
null
null
null
null
UTF-8
Python
false
false
14,968
py
graph_test.py
#!python from graph import Graph, Vertex import unittest # Python 2 and 3 compatibility: unittest module renamed this assertion method if not hasattr(unittest.TestCase, 'assertCountEqual'): unittest.TestCase.assertCountEqual = unittest.TestCase.assertItemsEqual class VertexTest(unittest.TestCase): def test_...
a9b9f7b3c70ea46e753c312cc369bf06d8d6bfd8
640238f02c280e48949f5999fde0bef2549a8149
/main.py
d1586d35f63104aeb342a76169c3d34b6a0d921c
[]
no_license
vatsalcode/Comparative-study-of-BERT-models-for-Open-QA-using-CORD-19
2ac2ceb207be187b32b4822727786a8833549fbe
6030d6327e60fdcda72df0336123337550dc207a
refs/heads/main
2023-06-18T08:37:40.801441
2021-07-16T18:44:09
2021-07-16T18:44:09
386,732,981
0
0
null
null
null
null
UTF-8
Python
false
false
2,918
py
main.py
import torch from transformers import BertTokenizer, BertModel, BertConfig import os, os.path, shutil import json import pickle from COVIDModel import COVIDModel # loop through all files to : # 1. fetch abstract and paper id. # 2. get embeddings for all windows for the abstract. # 3. pool them (default = mean). # 3. s...
696fdb4679133d188d68273efe6ea328c0863ed8
23f216f4f503bb7a7bef30b9525c053c7f5d12a4
/experiment/run_context_generator_pricing.py
9d789aaf93b3d07f4d6fb3a9069eb4309fe11d07
[ "MIT" ]
permissive
riccardopoiani/pricing-and-advertising-machine-learning
d88592150521b17d0a3b37bdbc5c34b917c5ea5f
0ba1e0ee67a570bb53ad02e9481e0c58ffc69249
refs/heads/master
2023-01-08T09:04:07.194888
2020-11-06T14:39:52
2020-11-06T14:39:52
248,194,659
3
1
null
null
null
null
UTF-8
Python
false
false
10,757
py
run_context_generator_pricing.py
import argparse import os import pickle import sys from collections import defaultdict import matplotlib.pyplot as plt import numpy as np from joblib import Parallel, delayed os.environ["OPENBLAS_NUM_THREADS"] = "1" sys.path.append("../") from bandit.context.BruteforceContextGenerator import BruteforceContextGenerat...
6c3b013af9c57d4330822155890dcbfe618e55ea
8814787f928814406aba23fa9ba2665fa39cdcef
/shodan_search.py
49f847db185a54e5d87d39142c64780aa103090b
[]
no_license
totoPouet/shodan
31f3e8ed4fced6bd844bd0e7d2068c014ee7d633
36735d80f1d4112be1987e7ec277be4a2e6cefaa
refs/heads/master
2021-01-09T21:57:18.178162
2016-04-04T10:13:33
2016-04-04T10:13:33
55,078,053
0
0
null
null
null
null
UTF-8
Python
false
false
2,716
py
shodan_search.py
#!/usr/bin/env python # # shodan_ips.py # Search SHODAN and print a list of IPs matching the query # # Author: achillean import shodan import sys import codecs # Configuration API_KEY = "OefcMxcunkm72Po71vVtX8zUN57vQtAC" output_file="" def generate_output(filepath,message): f = open(filepath,"w+") f.writelin...
820b3badfd2a94f4f05688e087c0d43abe6902e0
3f5acac70a03bda02aa8503ab3d2091576e6427c
/randomguess.py
28264571d50a03c207c85059dff2cf88e298dfad
[]
no_license
KevinGinJunYang/Python101
e53036d788eb93159f86389c12ade6ae364f9d1f
c77a01184a545dddd3d0dfb0644079bae0f0708b
refs/heads/master
2020-03-13T05:29:54.863354
2018-04-25T09:52:08
2018-04-25T09:52:08
130,985,475
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
randomguess.py
import random guesses_made = 0 name = raw_input('Hello! What is your name?\n') number = random.randint(1, 20) print 'Hi, {0}, Guess my number between 1 and 20.'.format(name) while guesses_made < 6: guess = int(raw_input('Guess my number: ')) guesses_made += 1 if guess < number: ...
17347392f2fd5702f3942ab920930cee7aff670a
8ca6483afd68a378a3725a41d86d935a03ab24ba
/onlineshop/store/views/signup.py
e58d446b91c6b91ad0ce17e77d97152682690d98
[]
no_license
dpuman/eshop
266845dd9fe02f645c319f5643e8431970193899
d11a2347ad465c10469ac4c0c870f913bc242bd4
refs/heads/master
2023-02-17T15:54:57.318177
2021-01-16T12:50:56
2021-01-16T12:50:56
326,386,693
0
0
null
null
null
null
UTF-8
Python
false
false
2,320
py
signup.py
from django.shortcuts import render, redirect from django.contrib.auth.hashers import make_password from store.models.customer import Customer from django.views import View class Signup(View): def get(self, request): return render(request, 'store/signup.html') def post(self, request): return ...
0291511b905457f2475445ac7235aceefbe407e5
4dc97590378dda9e59e241ccbe31f5fe06c7b095
/Codechef_long/DEC20/evenpsum.py
128da35f3d0697391379b5ccf752537cf2249e57
[]
no_license
AABHINAAV/Codes
ffb7bf0a03332594f81e84fca8800eac938222e5
afd50bfe812c299b46c0af00d41cc50f18915d08
refs/heads/master
2023-08-21T14:53:48.448889
2021-09-15T11:22:05
2021-09-15T11:22:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
evenpsum.py
for _ in range (int(input())): #n=int(input()) a,b=list(map (int,input ().split())) #a=list(map (int,input ().split())) #b=list(map (int,input ().split())) c=0 '''for i in range (1,a+1): for j in range (1,b+1): if (i+j)%2==0: c=c+1 print(c)''' if a%2!=...
90125c18251259c7affca9b792a3ce7bd3d05fb6
7a11792dfb5acae2d3e32a20bc0c40e64ce4cbc4
/Math.py
b6c481bc5e844837d85e44cb9e89ad6f7201215f
[]
no_license
collinskoech11/Python-Learning
340eed6e7b5a9548433d5844cebbcf5273054638
14b8d9dff85c33837a9b4f105dc9366e4b5fd6fa
refs/heads/master
2023-06-29T14:44:04.004819
2021-07-22T16:28:41
2021-07-22T16:28:41
363,305,765
0
0
null
2021-07-22T16:28:42
2021-05-01T02:26:35
Python
UTF-8
Python
false
false
20
py
Math.py
x=8 y=10 print(x**y)
ec249a27bb20f205750a1d3988f0182f9fbb1b40
3dbf351bcfd8277ae879a591fb05437e9c1d605b
/article_preprocessor.py
eba59c52aefeb7a9cd132f66e1fddfc075aea480
[]
no_license
volkmaster/news-article-classifier
28433bcca619e01dab397387d75311ebe17747a2
94fbeb20a0405106b39c09cf36e0e0f7868f577f
refs/heads/master
2020-04-01T15:06:34.346749
2018-10-16T17:07:07
2018-10-16T17:07:07
153,321,537
0
0
null
null
null
null
UTF-8
Python
false
false
5,973
py
article_preprocessor.py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Ziga Vucko' import os from os.path import basename from sys import argv import time from mllib import DataLoader from Data import ppr, WikiOriginal, WikiScraped, WikiJoint, Guardian, GuardianJoint, WikiGuardian from Util import NELLDict def main(): nell...
5c7f44a42445d122137bbe2e2b2ec877497b82ab
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_cameras.py
296b75c0beccc211ed68fe36e2f1aa743eaf4e9e
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
_cameras.py
#calss header class _CAMERAS(): def __init__(self,): self.name = "CAMERAS" self.definitions = camera self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['camera']
1800cdb7d38574e9f47dcdc804bf47b9db0f9b2a
9ed9fb3a473d4a6e22eb27a8873e1301984caaaa
/ThuHelper/menu.py
97537c9792e5ebb2e8357539bd8fc0579d6db957
[]
no_license
syb1001/ThuHelper
909ad0816e0efcf928629bd8403980b690f39092
12089807a86ccfa15b7b81ea919ae70f7e39f26b
refs/heads/master
2021-01-18T17:40:37.520561
2014-02-17T03:30:30
2014-02-17T03:30:30
14,611,450
2
3
null
null
null
null
UTF-8
Python
false
false
2,293
py
menu.py
# coding=utf-8 # menu.py # 设置微信服务号菜单 # 菜单变化时需手动运行 import urllib2, json, sys from ThuHelper.settings import APPID, APP_SECRET, URL_ABOUT reload(sys) sys.setdefaultencoding('UTF-8') url_get_token = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=' + APPID + '&secret=' + APP_SECRET f = urll...
59918929725d19dac646eb6b52af465dc56147cf
b1fbeab31bfd93d204ca767fd0fb79719fef64df
/she_codes_news/users/models.py
6f429bd21b5af99dafe1f366e33209e129294385
[]
no_license
hellokirilee/django_project
97e6c15229653a8636deefbc5a395db58ff01d92
3a65d6c81457c0dec6843880bed33190d8ea1b8a
refs/heads/main
2023-08-04T20:52:13.658785
2020-08-14T16:12:49
2020-08-14T16:12:49
283,462,143
0
0
null
2021-09-22T19:30:52
2020-07-29T09:56:29
Python
UTF-8
Python
false
false
505
py
models.py
from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class CustomUser(AbstractUser): pass #this is where custom fields could be added """As the User/Author is sometimes referred to by username(urls), and other times their fullname is displayed, have d...
b310afb0b7afd3b66a8cd14544c4dba73e317a16
ba339b836daac6b996edcc70387d61ccfe245136
/object_detection/signpost_segmentation.py
f4c1f25062710469bc6b3ec9a3e0905571ac83b7
[]
no_license
tomstrain92/Asset_Localisation
4cbaaeb6d5087bde654bd561e90217866bc9a41c
f86850a1f7117d59b45027e59c6a4d0be3207bdf
refs/heads/master
2021-02-17T16:32:28.647480
2020-04-08T12:59:50
2020-04-08T12:59:50
245,111,718
1
0
null
null
null
null
UTF-8
Python
false
false
3,902
py
signpost_segmentation.py
import numpy as np import cv2 import argparse import os, glob import sys sys.path.insert(0,'..') from survey import Survey from imantics import Polygons, Mask, BBox import pdb from image_processing import * def blue_mask(hsv): lower_blue = np.array([70, 100, 2]) upper_blue = np.array([160,255,255]) mask_blue = ...
47ec0930cc4c99b7ff97b73c24a9a3a4e8367c4f
d726643b940bd8c99f340d3979afe635ef0c872a
/perceptron/perceptron.py
73c7a19eafe64f06130cf90b1550c963b58af7f3
[]
no_license
Omarito2412/DeepLearning
195751f006089da9ac712b4b5d3ebcd06c0d3608
0b0053928a0bc6c2526d84fc927bfc281ace48fe
refs/heads/master
2021-01-18T22:05:37.031649
2016-09-14T16:18:11
2016-09-14T16:18:11
53,280,059
2
0
null
null
null
null
UTF-8
Python
false
false
1,967
py
perceptron.py
import theano import theano.tensor as T import numpy as np import matplotlib.pyplot as plt # Draw the training data and the classifier def plotClassifier(x, y, w): # Gather the two classes ones = x[np.where(y == 1)[0]] n_ones = x[np.where(y == -1)[0]] # Plot them plt.scatter(ones[:, 1], ones[:, 2...
38ccaaa6e855f8c64ad32755040553f33ba75192
fec19ea6bd1a541a14b133d128a01924949556ee
/acornaccounting/accounts/forms.py
a35edc3d68d40581280ce81c160ce748855eaee8
[]
no_license
thewonderofsteve/AcornAccounting
d24240a6fab4b74b417c0f4fc326c6609f2cf167
1e1aa91df38e66aca052a28228f9f7675b709de9
refs/heads/develop
2021-01-13T12:35:01.421399
2016-05-16T21:34:20
2016-06-10T15:50:34
72,577,791
0
0
null
2016-11-01T21:21:26
2016-11-01T21:21:26
null
UTF-8
Python
false
false
3,658
py
forms.py
from django import forms from django.forms.formsets import (INITIAL_FORM_COUNT, TOTAL_FORM_COUNT) from django.forms.models import (modelformset_factory, BaseModelFormSet) from parsley.decorators import parsleyfy from entries.models import Transaction from .models import Account clas...
4663c3b87ec62e407f6f76aa9074e841490e986f
b7f004e64b7d5e450be3edbd9fc232bf1ffcb457
/check.py
659b11432768ef4fd482399d9aa9e1cd0fece996
[]
no_license
pc-coholic/c19ac
bc395a0bccf583b3b5a1e588052bc7a7a57a6830
f738e9caef6ff4e8e863cd08b0356eb76e117c9e
refs/heads/main
2023-04-10T06:10:43.079200
2021-04-23T10:33:22
2021-04-23T10:33:22
354,797,151
6
1
null
null
null
null
UTF-8
Python
false
false
4,498
py
check.py
#!/usr/bin/env python3 import json import smtplib import sys from datetime import datetime from email.message import EmailMessage import requests import io class C19AppointmentCheck(object): def __init__(self, userid, starttoken, mailserver, mailport, mailuser, mailpass): self.userid = userid se...
b564845c0a96637e371f5fec1a1fb8c58c5e3242
a0cc796046ef2cb8a602d7c9918e47c78f588120
/rabbit.py
86f0f5ae5b0e5104b36b72f01b832cb1ac3d2529
[]
no_license
cuongbangoc/protocol_buffers_python
c538e8a24b4fcff8adb4b85385cdf76fd57e7f20
43e94ddbdff82de0f8325d40471ad2b7a3328f16
refs/heads/master
2016-09-06T13:16:47.110109
2015-08-26T08:17:23
2015-08-26T08:17:23
41,359,032
1
0
null
null
null
null
UTF-8
Python
false
false
1,080
py
rabbit.py
import pika import config as cfg class Rabbit(): def __init__(self): self.conn = None self.channel = None def connect(self): self.conn = pika.BlockingConnection(pika.ConnectionParameters(host=cfg.RABBIT_HOST)) self.channel = self.conn.channel() def close(self): sel...
43d61158cc875daf7a994abb5adfbe3527ed36e4
31d856cfc69013ec317cf540f4679f0df231f923
/models.py
d5b763178bc172cd58ab6433b5231b13b99c53c3
[]
no_license
Margaux-F/SQLAlchemy
6a6013319732b2ae28da08cee51a813873b0c0fe
cdcc8fd0263358c278384bd23e66736d48b5bcb8
refs/heads/main
2023-01-20T09:08:21.815855
2020-12-01T16:46:12
2020-12-01T16:46:12
314,378,729
2
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
models.py
# UTF8 # Date: 26 Nov. 2020 # Author: Margaux Faurie from sqlalchemy import Column, Integer, Float, String, ForeignKey from sqlalchemy import DateTime, Boolean from sqlalchemy.ext.declarative import declarative_base from connection import connect session = connect('aam_test_301') Base = declarative_base() class b...
33ea1f817640d45ff4c67d75b5dd532627576a1a
0989bf30f5aa34052c9791bb708cd6ed381a054f
/data_models/migrations/0016_privacy_policy_in_settings.py
7a0b1892a3a90bbfec79a814d2ac4ce00c3265dd
[]
no_license
Studentmediene/kapina-backend
19f7ee7004ff0876ba161ca87f2801b7e6f8d4e1
e00bc4faedabed4b0635d0bdae607db59c395ed0
refs/heads/dev
2022-12-07T14:43:21.774195
2021-04-07T15:45:33
2021-04-07T15:45:33
67,445,894
0
1
null
2022-11-22T04:28:08
2016-09-05T19:28:16
JavaScript
UTF-8
Python
false
false
433
py
0016_privacy_policy_in_settings.py
# Generated by Django 2.0.2 on 2018-10-01 17:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_models', '0015_editors_in_settings'), ] operations = [ migrations.AddField( model_name='settings', name='privac...
745f22fa8055440d6654aabeb7d22bd621ec887b
7a438c49cd0aaab5c89e9ce647f190c9a0c1e819
/pythonTasks/testReduce.py
233893b1cac2589f98a7d07c242034ae32fa4e01
[]
no_license
TokarAndrii/PythonStuff
bfdb22fa97411be53c478b79f7c3b1360dbe14f9
afc47790d18cf4245d2e3944b588460f2bce5664
refs/heads/master
2020-08-09T21:08:50.309606
2019-10-10T13:21:10
2019-10-10T13:21:10
214,174,969
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
testReduce.py
from functools import reduce array = [1, 3, 5, 6, 2] result = reduce(lambda current, total: current + total, array, 100) print(result, ' - result')
077152e1eff3e576b6e09200767197f685b016d7
27206e566786a207dfbb4b352ea4533cf72694a5
/CDR_SmartFilter.py
dcd93ceef1d3c1d654c5b59ebec74b0a6c1907c0
[]
no_license
OsirisDevelopment/CDR-Management
20f40ce3ab37f4993ff7ff7b4fdfb7ea04171b29
210200c3317874e2eb3c6e6b1f6bc3713956fa9b
refs/heads/master
2021-01-11T06:16:24.216700
2016-10-24T15:55:13
2016-10-24T15:55:13
71,805,616
0
0
null
null
null
null
UTF-8
Python
false
false
13,490
py
CDR_SmartFilter.py
import Tkinter, Tkconstants, tkFileDialog import Image, ImageTk import datetime import time import ttk import os #"01/12/2011" def dateTimestamp(string): return time.mktime(datetime.datetime.strptime(string, "%d/%m/%Y").timetuple()) def timestampDate(timestamp): return datetime.datetime.fromtimestamp(int(ti...
ff1097bf390cffc618ef20a14a0c452c51626e4e
87144fa8989061d7050e3f9ae43d6446707f4e41
/docker.py
c06df2f7bacdadf22a10da11712a3f34bed0e2cf
[]
no_license
Kaushik255/DevOps-Docker-K8s-WebApp
6254cd23ac32668ee57332fdcd06398f79d0e013
50e66b7389f5f53d5ac90b5e72c7688e1c2eae28
refs/heads/main
2023-06-09T08:05:40.667922
2021-07-01T10:24:02
2021-07-01T10:24:02
381,950,753
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
docker.py
#!/usr/bin/python3 print("content-type:text/html \n") print() import cgi import subprocess y = cgi.FieldStorage() cmd = y.getvalue("x") output = subprocess.getoutput("sudo "+c`md) print(output)
52c7a575a46011296b4b61e11bfc9ee5f0528839
97461f6f08a9b714ff47f7e706bec46579c0965e
/scrapy/yiching/GNN.py
010d83971f78a10fadce5fa5e8a735cb07bdd98c
[]
no_license
koten0224/python_volume_analyse
bfae9d400baccb6bc16590510fc237c45e7531a9
2d45a338d22a2956605abf176d91785222be3e43
refs/heads/master
2021-03-14T11:58:22.429157
2020-03-12T06:58:18
2020-03-12T06:58:18
246,764,416
1
0
null
null
null
null
UTF-8
Python
false
false
2,535
py
GNN.py
# -*- coding: utf-8 -*- """ Created on Sun Jun 30 18:04:05 2019 @author: pipiching """ import requests from bs4 import BeautifulSoup as bs import datetime import pandas as pd import queue import threading headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, lik...
cd3368220fd82f804f4233e6a34605066e7ff08d
4328b0a0c3141520619d84b342050e603c73aae6
/edabit/largest Number.py
1b80f827be5641b2077f5ea68948166f6bd546e7
[]
no_license
Ankit-Developer143/Programming-Python
d0d9a7bd1e19c5af1822e59fb7dad35a2aa4ca3c
55851abe951d5a338bf8ee02d8a9371fec4c1df9
refs/heads/master
2023-02-18T22:13:47.406099
2021-01-20T11:03:07
2021-01-20T11:03:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
largest Number.py
def findLargestNum(nums): nums.sort() return(nums[-1]) print(findLargestNum([4, 5, 1, 3]))
c0db86f3ed8bde672e418ddd483c609390bb9a35
9a32a7f1555a0e399b7d63faa79750814598053b
/echo_server.py
e919f6b72b9d9a6d4f7c00ba1aeabce014a7be1c
[]
no_license
ghglavan/universal_socket
f3a3251909732333268b6e3b5c6c151b30834933
0017608f32dd4063697a9a426e20927ef2c9a9cd
refs/heads/master
2020-04-23T12:02:21.275709
2019-02-23T12:42:35
2019-02-23T12:42:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
echo_server.py
import socket def listen(): connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM) connection.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) connection.bind(('localhost', 5555)) connection.listen(1) while True: current_connection, address = connection.accept() data = ...
3478547c2311edf25c7e3148dc4eb55d60644cb0
58926d2c497e499c75706b4bcc0391a46465823b
/App/controller.py
e144e3669e6b30041c49870bf8968ac424308630
[]
no_license
EDA2021-1-SEC06-G09/Reto3-G09
32a9bcd95eac8a295290bc364ce7dea7e0b370ac
5c1943758621d6a706dce84a53bbb5169ce23eed
refs/heads/master
2023-05-12T20:48:27.034273
2021-05-22T19:00:13
2021-05-22T19:00:13
359,944,206
0
0
null
null
null
null
UTF-8
Python
false
false
3,248
py
controller.py
""" * Copyright 2020, Departamento de sistemas y Computación, * Universidad de Los Andes * * * Desarrolado para el curso ISIS1225 - Estructuras de Datos y Algoritmos * * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
4c46f2123fc80efa9c7f4a2eca218104bbad1565
c21df9427b4573fbb36e923543b61eeb84e2d1e6
/Python_Basic_script/Python_Basic/5.try_exception.py
b740331e7071237b12f248c5284ecd6050f5b97f
[]
no_license
ucandoitrohit/Python3
db56d60604752b6eb3c9037432df9dfc7fe6ed19
2e93a9cf352394e04bffda93065df15cb85508de
refs/heads/master
2023-07-22T02:11:26.557496
2023-07-11T04:38:22
2023-07-11T04:38:22
175,063,714
0
1
null
2022-12-17T03:33:55
2019-03-11T18:47:43
PowerShell
UTF-8
Python
false
false
99
py
5.try_exception.py
num1 = int(input("Enter the Num ")) num2 = int(input("Enter the Num ")) print("Sum is " num1+num2)
1ca893c04570eeefec07b75d0e6b803a56466316
aa9902781198643cd55b070fd2677bd124482ec3
/selenium.py
fc562a4cbad1922ac75ba434f9aeefed1f8141a7
[]
no_license
maiiaindustries/maika
764db284cf8e1ae32a7a4ec353595559af63880f
3b49b3e016bb46c1a1dd7eb79b12d7cce51c18b5
refs/heads/master
2020-06-20T08:51:31.346877
2019-10-09T12:22:25
2019-10-09T12:22:25
197,066,146
0
1
null
2019-10-09T12:22:26
2019-07-15T20:16:41
null
UTF-8
Python
false
false
1,370
py
selenium.py
from selenium import webdriver from selenium.webdriver.chrome.options import Options import time def get_upcoming_events(url): chrome_options = Options() # chrome_options.add_argument("--headless") chrome_options.add_argument("--window-size=1920x1080") chrome_driver = "C:\Google Drive\scripts\python3\...
08717147a2a63fd8a2f33efa25003dc8f2d71d37
8975ac8bd6b49b5eeadeba600672ce95f02b774d
/Código fuente/Sistema seguridad/Hilo.py
1888b62548957484d50de6911a2fe7d905843086
[]
no_license
domenss/Sistema-de-videovigilancia-a-trav-s-de-una-Raspberry-Pi
e6b2b7d4bcd6964d0355984b51a664c2fa35fc32
cb35d1a5b7fd72d2cc00d8a8fc0297172d1e5fb1
refs/heads/master
2020-04-05T12:09:41.002962
2017-07-05T06:34:21
2017-07-05T06:34:21
95,240,596
0
0
null
null
null
null
UTF-8
Python
false
false
4,355
py
Hilo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import threading import logging from time import localtime, strftime import os from Data_Server import URL_Token My_ID = '117224417' logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) from Server import Server class Hilo_...
a6c323892ee35f719a2ee70332ffba8256b51bee
263170e7dca79883314273bb35aef1449e018361
/tests/utils/test_exceptions.py
b7f9635a11a4623e0fdb8865be74f869e2503942
[ "CC-BY-4.0", "LGPL-2.1-or-later", "MIT" ]
permissive
se2p/pynguin
029cfd9c43c08a2f687a816749828054e409646e
cc083252c7054824bfaf200533a8b7ad45f7c4fb
refs/heads/main
2023-08-23T16:58:04.568755
2023-08-18T13:11:44
2023-08-18T13:11:44
282,944,472
1,223
65
MIT
2023-08-18T13:12:29
2020-07-27T15:50:19
Python
UTF-8
Python
false
false
1,363
py
test_exceptions.py
# This file is part of Pynguin. # # SPDX-FileCopyrightText: 2019–2023 Pynguin Contributors # # SPDX-License-Identifier: MIT # import pytest from pynguin.utils.exceptions import ConfigurationException from pynguin.utils.exceptions import ConstructionFailedException from pynguin.utils.exceptions import GenerationExce...
9d60a2db869646892a5cebd406f267367bde9bf6
21b29e9bf4193b0cbb1883728701df767f6a8195
/testing/region-growing/Region_Growing_pytest.py
e4351e3c14af349a39053d484d9a30140d76fecf
[]
no_license
NitinMa2/mammography-muscle-removal
36751206b6705e6dbb0e20a53bf8bc55f86e64c3
95e1e6b3db6305f45eb7721cdd0f384e76ff7d9a
refs/heads/main
2023-08-31T21:56:33.663749
2021-10-22T08:25:13
2021-10-22T08:25:13
390,800,200
1
1
null
null
null
null
UTF-8
Python
false
false
3,425
py
Region_Growing_pytest.py
import pytest import numpy as np import cv2 from Region_Growing import Region_Growing class TestClass: def test_explore_neighbours_with_conn_4_middle(self): image_data = cv2.imread("mdb001.pgm", 0) rg = Region_Growing(image_data, 6200, threshold=40, conn=4) unexplored_neighbours = rg.explor...
08ad57e02d4aefe48eb50d86f10b6cda182d83e1
6bbaa488c93619ee7ac76c061b84956c23eeb688
/week0/problem01.py
d308259363c8a0c7d24157e4661a06542a120c48
[]
no_license
minh26799/DiveIntoCodePreML
d46548d989afd1d0daf4087f4fccc459a0c340ae
1c5e30af6a1e85987b316ecd489e138f28f6e403
refs/heads/main
2023-04-04T03:43:43.369092
2021-04-08T11:57:49
2021-04-08T11:57:49
345,300,354
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
problem01.py
THICKNESS = 0.00008 folded_thickness = THICKNESS * pow(2,43) print("Thichness: {} meters".format(folded_thickness))
c67909a46299c3d977deb1f1bcc7da8b468dc9c2
062ee1e1806ec4aa9939f09afc39363ed84cb656
/Graphics/lib/Android/platform-tools/systrace/catapult/devil/devil/android/tools/system_app_test.py
f72aa166383d481c6103f4761816a7c123b14e5f
[ "GPL-2.0-or-later", "LicenseRef-scancode-pcre", "OpenSSL", "LicenseRef-scancode-unicode", "curl", "MIT", "bzip2-1.0.6", "ICU", "LicenseRef-scancode-oracle-openjdk-exception-2.0", "blessing", "LicenseRef-scancode-unknown-license-reference", "IJG", "W3C-19980720", "W3C", "NICTA-1.0", "NC...
permissive
max-96/Tresette-AI
112d4724f86400a4fb87e9294df331c24dd57c18
15b769e02ae5a16a8f4148d4e9779259c090ae46
refs/heads/master
2021-10-27T12:35:41.430266
2021-10-24T17:17:47
2021-10-24T17:17:47
148,899,918
3
1
MIT
2019-10-30T23:21:51
2018-09-15T12:27:25
C++
UTF-8
Python
false
false
2,262
py
system_app_test.py
#!/usr/bin/env python # Copyright 2017 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 os import sys import unittest if __name__ == '__main__': sys.path.append(os.path.abspath( os.path.join(os.path.dirname(...
8d82fdc5bd8f14a07131cb3054fee6753637a852
c800ae962e2b82a87386a080687f8d24c2dd2513
/pytest-test/calcuration_test.py
6c6c9fb831d5b4e91b6188b4e6c75fda8d4c828a
[]
no_license
kirinnsan/python-test-sample
6a2882fa076926faec5a5611146cdb192c434d2e
384ea81af6423bebaf12ee1075dc449f056e28f9
refs/heads/master
2023-04-12T14:49:20.676468
2021-05-15T15:25:33
2021-05-15T15:25:33
354,874,360
0
0
null
null
null
null
UTF-8
Python
false
false
1,405
py
calcuration_test.py
import os import shutil import pytest import calcuration is_release = False class Test: @classmethod def setup_class(cls): print('start') cls.cal = calcuration.Cal() cls.test_dir = 'test_dir' cls.test_file_name = 'test.txt' @classmethod def teardown_class(cls): ...
c3e39628de7fd3cf623313eb617e278d8d82f8e5
a3926c09872e1f74b57431fbb3e711918a11dc0a
/python/string/0520_detect_capital.py
2581d679dea83b93fcb7fc1021b3246480f7fde9
[ "MIT" ]
permissive
linshaoyong/leetcode
e64297dc6afcebcee0614a153a566323bf223779
57080da5fbe5d62cbc0b8a34e362a8b0978d5b59
refs/heads/main
2022-09-15T00:05:36.476268
2022-08-16T14:09:11
2022-08-16T14:09:11
196,914,051
6
1
null
null
null
null
UTF-8
Python
false
false
742
py
0520_detect_capital.py
class Solution(object): def detectCapitalUse(self, word): """ :type word: str :rtype: bool """ if self.is_upper(word[0]): if len(word) < 3: return True b = self.is_upper(word[1]) for c in word[2:]: if self.is...
0aca36afa528ecfdd70985fae2bfc20d3709c72f
3591f10883a2bbb79722e118808cd1665ec334b9
/main.py
dfda1075e04e4dbb28af338c602b6014cd8e9bdf
[]
no_license
michaelbertino/GPS
011266a78b2990a99861e06fe2f3926643847ca5
db84ddf0fd15751b6950c2e45aca4b065fddd21f
refs/heads/master
2020-04-02T06:16:23.557939
2016-06-15T22:41:19
2016-06-15T22:41:19
61,232,243
0
0
null
null
null
null
UTF-8
Python
false
false
1,862
py
main.py
# main.py -- put your code here! from pyb import UART from micropyGPS import MicropyGPS from pyb import LED # Setting up UART # This example uses UART 2 with RX on pin X4 # Baudrate is 9600bps, with the standard 8 bits, 1 stop bit, no parity uart = UART(2, 9600) # Initiate my_gps = Mi...
91b337db3de4250b1c952c84dc5a8a942d53a794
58bdaabc6abf6653c2fec59f35351a5050d4adcf
/revisedFiles/guiTest.py
c49f11d2c5b24f43d690e1c07570a8a63cf075b1
[]
no_license
JattMones/cs600work
25e10dbd017b9029c8f02401fbfeda3a84bc2b83
86779c94a144c1e487f83e548fbac59f314b711d
refs/heads/master
2020-04-01T18:41:35.820355
2018-11-26T16:19:56
2018-11-26T16:19:56
153,508,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
guiTest.py
from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.image import Image from kivy.uix.behaviors import ButtonBehavior from kivy.uix.button import Button from kivy.config import Config Config.set('graphics', 'width', '200') Config.set('graphics', 'height', '2...
fd65a6a42b83ca15459507d63708a8d48b92fdc2
36da86092b9fe0425f2a897b8c594576f0e82584
/teaching/bioc4010/lab5/newcodetest.py
d3ce1cf4a8659596ae10baa025d1a22de883f673
[]
no_license
mlangill/mlangill.github.com
f7491c3cfe94ec9b11f1a8df1201f61c774b59a2
a6fef8e40e5a2c9664bfe20c56ac9bf38218114d
refs/heads/master
2023-05-23T12:40:26.699178
2023-05-03T13:43:10
2023-05-03T13:43:10
1,579,329
0
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
newcodetest.py
# Set some key constants minGeneLength = 100 * 3 readmaxlength = 50000 # Get Genome fin = open('NC_003997.fna') fin.readline() genome = fin.read(readmaxlength) genome = genome.replace('\n','') fin.close() # Open an outfile fout = open('prediction.txt', 'w') # Set some variables lastSTOP = 0 start = 0 stop = 0 wh...
b4a31e409673736a7b3f0a3d31a48267d72cfe60
963058a0de28bc1ed50bfaf46643101ca8dacb7f
/retrieve_user_json.py
e124d1ce1cc404a766838882dd69b2b3bbac58f5
[]
no_license
joemac51/user-probability-stats
4f410633266ba2304af27a3c02f698adb036a261
894a239ec80da075a4fa9153be8a215d76263d0a
refs/heads/master
2021-03-04T01:04:11.932452
2020-03-10T12:19:54
2020-03-10T12:19:54
246,000,368
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
retrieve_user_json.py
import requests import json import sys FILE_PATH = "/Users/daniel/Documents/AREA 22/user-prob-stats/prob_json" MY_USER_ID = "ed05c06f79baa07b" def get_json(user_id: str) -> list: '''Returns a list of dicts containing TMSID and their corresponding probabilities for the user's top 1000 of titles''' try: ...
f8c8ff2b0b0e4d156a295a3a612808f2f5d670c3
1e31b7ef4407e912bf986f17ee0c0d43843a5d37
/src/python/scripts/manager.py
314bcf34ee4a9450115c10d36fe07b4b74de5543
[ "Beerware" ]
permissive
LeHack/SPSP
29d7d5e94a23d5e434f1894eb962927a90702ef8
ff790bb5a3bfc839d8451f29df7af95594180e23
refs/heads/master
2022-12-11T07:10:33.128829
2019-03-04T13:16:06
2019-03-04T13:16:06
173,503,932
3
1
NOASSERTION
2022-12-08T01:39:49
2019-03-02T22:05:45
VHDL
UTF-8
Python
false
false
1,975
py
manager.py
#!/usr/bin/env python import datetime, django, json, os, sys # load django context and settings, so we can use gatherer below sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/../") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "smogtrac.settings") django.setup() from optparse import OptionParser fro...
541d494583c5a580d704b8a051c64adda5e7b35a
3bc1b74773e15d5eefa170fed4b6fb2e6e66f9be
/helper.py
61d3c3072cb8ce36ef9917b2058d7407a7b37102
[]
no_license
charlesjansen/coinmarketcapwatch
a8629b54d4d4f90e7aee254b3e45805373c135b6
d7440159a09f58714b2b768b2c428b8dc6674a83
refs/heads/master
2021-05-14T16:11:20.023393
2018-01-02T18:57:39
2018-01-02T18:57:39
116,013,977
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
helper.py
# -*- coding: utf-8 -*- def die(): raise Exception("die")
0fe316fad510a1da8195c888f5fce113c79c169c
11e9525952d69f83418a4ee67219062400389e6d
/magicranker/stock/migrations/0001_initial.py
776bd2a72573b202befa78af1cca9925fe2ac7eb
[]
no_license
gordl/magicranker
67be4764403d3449fb31ef84c0149018e9a93172
bcf929e76739595f4f9da022be1fd6794575d810
refs/heads/master
2020-12-25T11:31:40.496324
2015-08-03T04:42:18
2015-08-03T04:42:18
40,030,073
0
0
null
2015-08-01T00:30:16
2015-08-01T00:30:16
null
UTF-8
Python
false
false
13,764
py
0001_initial.py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Detail' db.create_table(u'stock_detail', ( (u'id', self.gf('django.db.models.fie...
fbfad1699af54522247661d780fef098b8fe22a1
4fcdbbbeee181878e463e15bdf87e6710fadb276
/olympics/olympics.py
2be3fa6352f22a299c82de609003067bf93e7bed
[]
no_license
levshuster/cs257
160cab46acbfc085d1d4b39d4383e41f395452de
61fc1c4b8fca846fb31843cbef28ebc72c42c3e9
refs/heads/main
2023-08-26T01:14:02.697087
2021-10-29T00:38:54
2021-10-29T00:38:54
407,336,479
0
0
null
null
null
null
UTF-8
Python
false
false
5,332
py
olympics.py
''' code by Lev Shuster due oct 21 2021 for cs257 started oct 17th 2021 ''' import argparse, sys, psycopg2, config # set to false if you don't want my program to install the dependency that my third option # relies on (you can test all the required content besides the "create your own operation" # witho...
76087f65bb5282e6086e7178805f9ce7b1bf5aec
3ccf0b33cb6282ec31c725ec2a58ac977a364395
/0x1C-makefiles/5-island_perimeter.py
a02865323d2eb95f20bfa974fd97da67cd32ce04
[]
no_license
VictorXRivera/holbertonschool-low_level_programming
1b87bf3bef56445d513c5e1cd0f2d29fa024b509
fd0693954e1b5145856e5ae3c1d9fdb23dd06646
refs/heads/master
2020-12-28T18:22:10.797165
2020-08-28T01:24:52
2020-08-28T01:24:52
209,308,471
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
5-island_perimeter.py
#!/usr/bin/python3 """ Island perimeter """ def island_perimeter(grid): """ Function to find island perimeter """ W_zone = 0 L_zone = 0 for h in range(len(grid)): for b in range(len(grid[h])): if grid[h][b] == 1: W_zone += 1 if h != len(grid) - 1: ...
1777ec4a02362a071c1b85cee580211b60118f99
17b7a8b4e50adc45a74b5a47bb4b2379b8297d1d
/regression_1/regression_1.py
1e876b1c8067acbd7422845d992e247764870a2e
[]
no_license
breckbaldwin/user-guide-code
b672e75a57e22c353e66b6f1bf908778e6f78c5d
559e464b05e98b39edab0e5dd30a73b30cde2e40
refs/heads/master
2021-05-26T20:37:17.563611
2020-04-08T18:43:00
2020-04-08T18:43:00
254,161,417
0
0
null
2020-04-08T18:43:01
2020-04-08T17:53:46
R
UTF-8
Python
false
false
526
py
regression_1.py
import os from cmdstanpy import cmdstan_path, CmdStanModel import numpy as np import fileinput import sys # Run from command line: Python regression_1.py alpha = 2 beta = 3 sigma = 5 N = 100 x = np.random.uniform(size = N) y = np.random.normal(size = N, loc=alpha + beta * x, scale = sigma) stan_data = {'N': N, 'x': x...
1854954fb132700692265294ffd202de1faebed1
1b59c9c95f30393f69f7d30eb62e612a875d6ca3
/pglet/dialog.py
cec38547b314d4d71a54c5ff33889eb0ffff47af
[ "MIT" ]
permissive
InesaFitsner/pglet-python
de7c4ec1abee66cfdd4fcb8e4473a3acf2f17a72
487575736023421c42de01839c850ebe36244eb7
refs/heads/main
2023-04-04T05:30:08.778398
2021-03-24T16:42:19
2021-03-24T16:42:19
337,182,570
0
0
MIT
2021-02-08T19:13:42
2021-02-08T19:13:42
null
UTF-8
Python
false
false
4,676
py
dialog.py
from .utils import encode_attr from .control import Control # Footer class Footer(Control): def __init__(self, id=None, controls=[]): Control.__init__(self, id=id) self._controls = [] if controls and len(controls) > 0: for control in controls: self.add_contr...
247808402380fcad2489859006fda0607c6273ba
8f48df55f7a733b6c883546ba65751a489777f6e
/q2_funcoes.py
3a8829c85fe2b80dc5fa473a735b8b8e5ca50825
[]
no_license
xValentim/Revisao_Inflames_12_06
89eff31e6fe202a41b7c57238d8335cdb6858b62
40f5c2d0cb123e4be03cbb0bd912d4aaaaa322f0
refs/heads/main
2023-05-23T22:22:57.377265
2021-06-12T20:13:59
2021-06-12T20:13:59
376,375,796
0
0
null
null
null
null
UTF-8
Python
false
false
780
py
q2_funcoes.py
''' Na química orgânica, um alcano possui a seguinte fórmula molecular: C(n) H(2n+2) Ou seja, para cada "n" átomos de carbono, existirão 2n+2 átomos de hidrogênio Faça uma função que recebe o numero de átomos de carbono e o numero de átomos de Hidrogênio e devolve True se o composto for alcano e False caso contrário....
e87eb95af389e38e987557705f3a4a883c8211e7
f60b0c051d8ba5088dc4246679b870f577646bb0
/84 Thu, 29 Mar 2012 12:02:34.py
6d78242ab2882d19f6081c97ec2c3e503e067f10
[]
no_license
joopeed/lp1
bbd11fe7749356828a16fc45703e010db5d35464
117bf769a048ec1dff53f779b26c9e7adec052ba
refs/heads/master
2021-01-02T22:50:08.600553
2014-04-03T21:15:40
2014-04-03T21:15:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
84 Thu, 29 Mar 2012 12:02:34.py
# Date: Thu, 29 Mar 2012 12:02:34 +0000 # Question 84 # JOAO PEDRO FERREIRA # 21211940 ok =0 for i in raw_input(): if i.lower() in "aeiou": ok = 1 break if ok ==0: print "-" else: print i
98bf0a332a6753e500b24bed2af16fe4a1cb9568
dfda2ed1baaf9bc52b3f2586f3d506123d8835ef
/Engine/regulators/velocity_regulators.py
601755b5d6ad5c8587e64a937a596421cba965fb
[ "MIT" ]
permissive
stephenYan/StrategyAI
152aa70bdba058d4c57b5823edbc1d53f037245c
ba2fac530d9dd381cf5455351b8bc17d4fc7d5e7
refs/heads/master
2020-05-19T10:16:52.157169
2018-08-22T22:28:21
2018-08-22T22:28:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,185
py
velocity_regulators.py
from math import sqrt from Engine.regulators.PID import PID from Engine.regulators.regulator_base_class import RegulatorBaseClass from Engine.robot import Robot, MAX_LINEAR_ACCELERATION, MAX_ANGULAR_SPEED from Util import Pose from Util.geometry import clamp, normalize from Util.pose import Position from config.config...
a486ec6b27a6b84e454a1bed096be9fe22d91612
576d9eff7a721b5d30c4e17df7387498536b58b8
/makeimage.py
27ece28bfe1a9831e92e7706021477e83658d818
[]
no_license
redflaglan/Tech-Support-Screen
9a7d2119c93bddcea14cf2ef5ffd87a9a4ab39af
38881a3bb6d53d7c800481e426499b9cabd174cf
refs/heads/master
2020-06-15T04:34:33.443447
2014-09-01T06:21:08
2014-09-01T06:21:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
makeimage.py
#!/usr/bin/env python2 import os import sys import textwrap COMMAND = ( 'convert -size 1920x1080 canvas:"rgb(149, 1, 1)" ' '-font Dejavu-Sans-Bold -pointsize {0} -gravity center -stroke none ' '-fill white -annotate 0 "{1}" -size 1920x1080 "{2}.png"' ) def makeimage(text, point_size=100, width=30): t...
8cba57e3552e0072720fe42fa1949534f29d71b5
8c16e882a89e89bd363a662c36e5c038f162e07d
/cmake_templates.py
49dbdc5b58b93bb2f65d45f10b99705f20c01c67
[]
no_license
NickCullen/Mathlib
613a87d0e0c46ada810252fbad58e9f9e0ada7d8
549d40a5e7298487edf21184967ac864e7cc212b
refs/heads/master
2021-01-17T06:01:30.392630
2016-07-07T13:11:05
2016-07-07T13:11:05
47,850,629
0
0
null
null
null
null
UTF-8
Python
false
false
10,941
py
cmake_templates.py
from string import Template import os #-----template objects----- #for putting a template inside an ifdef guard TIfGuard = Template("""if(${condition}) ${innerbody} endif()\n""") #For minimum cmake version and project name TProjectSettings = Template("""cmake_minimum_required (VERSION ${MinCmakeVer}) project(${Name}...
602d2c545c6e3eabe5c6285d2ab0c7f4216a00f5
3629764ba0d3a3ee1433a0ef26987a2bb9545d9f
/A_star/main.py
30c1e86935a0d3fecea266555af4aec62f458c37
[]
no_license
mihyr/Artificial-Intelligence
681215af5ab38f55f74e4ece9072b8f71803fc90
5303ee60d81e4a4d33264d60f5bd1fe397f49863
refs/heads/master
2023-05-14T04:34:38.427073
2021-06-06T11:23:09
2021-06-06T11:23:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,242
py
main.py
import common import student_code class bcolors: RED = "\x1b[31m" GREEN = "\x1b[32m" NORMAL = "\x1b[0m" def check_result(title, map1, map2): result=True print(title) for y in range(0,common.constants.MAP_HEIGHT): v="" for x in range(0,common.constants.MAP_WIDTH): if (map1[y][x]==map2[y]...
27d5ff5b0253eea36d6b492e929c4220f4b4a5eb
2e4e26a8b43af98a65494af0bad02c469db3a482
/parlai/torchscript/modules.py
5e7c88e9699ba553cc2f3e5bf7b27cf54e60382a
[ "MIT" ]
permissive
klshuster/ParlAI
eb28f74982993de3b996ced48415abb3083274bd
d23ac2cf8ae685a6ed31c7dce5f984e58a224f4d
refs/heads/master
2021-07-18T08:05:58.452542
2021-07-16T12:57:20
2021-07-16T12:57:20
104,381,545
5
0
MIT
2021-07-16T12:57:21
2017-09-21T18:03:42
Python
UTF-8
Python
false
false
30,652
py
modules.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from collections import defaultdict from typing import List, Dict, Optional, Tuple import torch.jit from torch import n...
74aa93bf3731d4e3ddb920bedc7daced50b4f2c3
6eb61cc768634c5354158947fc8e08f218cdefc0
/portfolioapp/run.py
38600be22029924114d1e42b5d760c96d0923081
[]
no_license
sujeong-jang/investment-portfolio-python
8cd193259713b35e4b22ad84981e761b421172a3
b3c25f0e8c771f1ae92ded8d8f9db9d4ad783332
refs/heads/main
2023-07-06T04:54:45.137536
2021-08-02T05:43:35
2021-08-02T05:43:35
377,418,061
0
0
null
null
null
null
UTF-8
Python
false
false
7,371
py
run.py
import json import joblib import numpy as np import datetime import sqlalchemy as sa import cx_Oracle import pandas as pd from flask import Flask, render_template, session, request, redirect, url_for app = Flask(__name__) oracle_engine = sa.create_engine('oracle://ft:1234@localhost:1522/xe') @app.route("/") def inde...
a6154c5d855dc53d73db08bbb5b5d7437056e156
1e19163e3b2c03761187d017b57243a00df57404
/Predict.py
5fa72dd709ac6fbfa2c7c22197ed495cfb0a916b
[]
no_license
an78920/pdms_lstm
5c57ccbd8bed4c77c9da1cca7cae83a3e4b2f0db
785933bdb93b43468bf972a8f573979f826514a3
refs/heads/master
2022-12-12T00:07:21.073065
2019-11-19T07:27:50
2019-11-19T07:27:50
222,634,804
0
0
null
2022-11-22T04:50:28
2019-11-19T07:27:38
Python
UTF-8
Python
false
false
451
py
Predict.py
from keras.models import load_model from DataManager import * def loadModel(name): model = load_model('./Model/%s.h5' % name) return model def predict(tag): test = getPIData(tag, '2019-11-05', '2019-11-06') test_arg = addFeature(test) test_norm = normalize(test_arg) X_test, Y_test = buildTr...
09f2fabaf3c19aa0d4cb522c6dbf5fd8d720b4df
3bd0df7e73d7ed1ecb78da2929d59c5e09043379
/hackerrank/domain/python/regex/validating-credit-card-number.py
2ae80083fc22126f69640e62c4336110fceda4af
[ "MIT" ]
permissive
spradeepv/dive-into-python
89fb33794494b0da0639636e4901a5a72dc9e9a2
ec27d4686b7b007d21f9ba4f85d042be31ee2639
refs/heads/master
2021-01-21T04:27:51.287637
2017-09-18T10:32:35
2017-09-18T10:32:35
40,643,456
0
0
null
null
null
null
UTF-8
Python
false
false
3,477
py
validating-credit-card-number.py
""" Problem Statement You and Fredrick are good friends. Yesterday, Fredrick received N credit cards from ABCD Bank. He wants to verify whether his credit card numbers are valid or not. You happen to be great at regex so he is asking for your help! A valid credit card from ABCD Bank has the following characteristics:...
3a88ff479e3b01518d79e9930c29514863f96f9b
3e600966adc8f0fe7114d5d988b32ead395edff2
/tests/test_selection.py
06b14cfaa84c04f7b1b9e04aa84555517d5f99b4
[ "Apache-2.0" ]
permissive
johnbachman/pybel-tools
cadf407609462b9c2faaa62e5d35464fa27c1b7f
c691d7b33d449501142eb011bc2b8f63830645cf
refs/heads/develop
2021-09-14T20:30:07.873760
2018-05-10T14:07:08
2018-05-10T14:07:08
105,606,597
0
0
null
2017-10-03T02:23:24
2017-10-03T02:23:23
null
UTF-8
Python
false
false
4,450
py
test_selection.py
# -*- coding: utf-8 -*- import itertools as itt import random import unittest from collections import Counter from uuid import uuid4 import numpy as np from pybel import BELGraph from pybel.constants import INCREASES, PROTEIN from pybel.dsl import protein from pybel_tools.selection import get_random_subgraph from py...
b16c847912944e0563492d35768b5b5bf3a506c7
fe38d9b485a7e800ce68b68a135085bf402223e1
/presta/utils/__init__.py
ccfbedbb17071aa78d96a8e7dd448333b7385a64
[ "MIT" ]
permissive
gmauro/presta
c2089f43c9d2703858168cd7d109e1f763b39bd7
3b2a82c186386b7b534b7e176054946e5a7ebed8
refs/heads/master
2021-01-19T05:31:28.071268
2018-11-21T11:40:21
2018-11-21T11:40:21
59,555,450
0
4
null
2017-05-17T10:30:12
2016-05-24T08:35:54
Python
UTF-8
Python
false
false
11,341
py
__init__.py
""" Utilities used by other modules. """ import csv import datetime import hashlib import json import re import string import subprocess import uuid import xml.etree.ElementTree as ET from alta import ConfigurationFromYamlFile from pkg_resources import resource_filename from ..__details__ import __appname__ from appd...
bb032f40662b1e329a24cd73d6cbb44886ac5e8d
703c5f55e8d5eb285c676651dc665b64fa96140e
/DeepSentiment/Dataset/ImdbSentiment.py
9875e61cf43430d6ac100660296e7fe5942cbede
[ "MIT" ]
permissive
NiklasHoltmeyer/sentiment-analysis
21e51d513d7a2398949f5bb2246ecdf5486de424
705c3a5ebe75fd89b2fe9c38c9611cae3695c8db
refs/heads/main
2023-02-10T07:41:24.022595
2021-01-08T15:02:02
2021-01-08T15:02:02
317,649,222
0
0
null
null
null
null
UTF-8
Python
false
false
3,367
py
ImdbSentiment.py
import os import shutil import tensorflow as tf from random import shuffle from glob import glob from itertools import chain import csv from pathlib import Path import pandas as pd import pathlib import numpy as np class Dataset: cacheFiles = [] fileEncodig = 'UTF-8' columns = ['text', 'sentiment', 'ds...
3246503fffc142853b48e871f0a413ceec22a5c6
4422be853985fdc459ee0f9f296739e4365c849c
/code/functions.py
2eb477450cdd102e3dd875760b91db538aac361c
[]
no_license
Lvdl1999/Amstelhaege
dd3c9acb799a59daf32026b0890079e95a0fc2d3
77a15c9252e5e540c73783e0ab2d64c4fe75d6c3
refs/heads/master
2020-05-22T16:08:44.276912
2018-06-01T14:28:13
2018-06-01T14:28:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,696
py
functions.py
# Authors: # Amy van der Gun (10791760) # Bas Katsma (10787690) # Felicia van Gastel (11096187) # # Amstelhaege # Programmeertheorie # # functions.py # File that contains functions used by the algorithms in algorithms.py import csv import glob import math import matplotlib.patches as patches import matplotlib.pyplot a...
d1c2cc5f2bc85cc5a54fd8362dcd22712b72daca
5a545262f7c053c1cfd1f7984664e3220c745161
/spec_pythonizer/utils/hash.py
da5b4d97905e5f9948433454b86f889fd8b99c65
[ "MIT" ]
permissive
ethereum/research
2c523e5796cfdb6055e0107dc1768fbf164ecad0
bb873f8ad0e673803ec6a55be26678e1f99b9ece
refs/heads/master
2023-09-04T19:11:51.507361
2023-08-30T01:52:05
2023-08-30T01:52:05
42,808,596
1,774
603
MIT
2023-04-21T07:20:21
2015-09-20T10:13:12
Python
UTF-8
Python
false
false
129
py
hash.py
from hashlib import sha256 from eth_utils import keccak # def hash(x): return sha256(x).digest() def hash(x): return keccak(x)
03d5f867dff02adf1d45fcb51da9f357b354c6f4
93bc926bbdd762a977af87d1e04e48bace093f00
/myworkspace/translate_tutorial/cnn_test.py
efb2d1adf361b529e58e1c6b94bb838d993bca43
[ "Apache-2.0" ]
permissive
haochen12/dpPython
20871b91bf217df8f0800d205d93e7a26ab92fb0
c6b58c12786e8b17728b9683f665efebcada43ec
refs/heads/master
2021-07-12T05:38:57.088420
2020-07-01T08:39:55
2020-07-01T08:39:55
150,862,137
0
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
cnn_test.py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from tensorflow.keras import datasets, models from tensorflow.keras.layers import Dense, Conv2D, MaxPooling2D, Dropout, Flatten from tensorflow.keras.utils import to_categorical (train_images, train_labels), (t...
dcfe3b198070591e687e2d8aa846fffcf3a136ce
cb8781a10172d4b4b2a7216afeefd0856c3b2656
/SessionAPIExample3/registerndetail/views.py
35cbd79a0d6bd83cd645fcd9ccc4536fad17d897
[]
no_license
Padmaraj1983/TZ
de92c853ed66dced8813eaeb836de5b51c81defa
833f3a9daab3d00096750fe36f680d2db3c94bd1
refs/heads/master
2020-04-09T01:54:30.187305
2018-11-28T07:05:18
2018-11-28T07:05:18
159,921,807
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
views.py
from django.shortcuts import render from registerndetail.forms import EmployeeForm from . import forms # Create your views here. def emp_admin_view(request): form=EmployeeForm() emp_list if request.method=='POST': form=forms.EmployeeForm(request.POST) if form.is_valid(): form.sav...
dd483a6fa21637afee054d51b18590f0d3c455c6
7d501bf111f863e06331e187ef677a97e3a17e8c
/src/ktcut/isolation_branching.py
c0c7b98a31ac7be7b2a010e8a49350cc30375f02
[ "Apache-2.0" ]
permissive
marvel2010/k-terminal-cut
dceb458d964e6ff8151ae5f87b822136e2ba5926
0b587a1ab4ff7c74ceab0c8f873e47e43b7027a4
refs/heads/master
2021-07-04T14:22:12.527610
2019-03-13T22:13:49
2019-03-13T22:13:49
87,125,667
3
0
null
2018-07-23T22:16:55
2017-04-03T22:11:03
Python
UTF-8
Python
false
false
1,944
py
isolation_branching.py
""" Solves the k-Terminal Cut Problem with Isolation Branching. """ from ktcut.lp_algorithm import lp_algorithm from ktcut.isolation_branching_tree import IsolationBranchingTree def isolation_branching(graph, terminals, persistence=None, reporting=True, time_limit=600): """Solves k-Terminal Cut for given graph an...
d13e00cdacc7b3719844768de56d1cdbfa965e26
87fd96b00afcf21df09aa6f12a91003022ab4fbc
/learn/migrations/0002_auto_20150715_2125.py
944f9bd589bc4675cf50fa336c3c7498fd48c354
[]
no_license
author135135/djbook
9c84d673d7179aba55a98061937516c6d11d82ae
9f5b54679ad2a8f348a1f848a71ac52459a24d50
refs/heads/master
2021-05-29T05:12:56.399784
2015-09-02T17:25:32
2015-09-02T17:25:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,466
py
0002_auto_20150715_2125.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('learn', '0001_initial'), ] operations = [ migrations.CreateModel( name='Tasks', ...
9d48e3ede9f21ba9a4bf5da114e7748d41c47805
11ebc8b2645c246a3b372c38343ee1dd1f339bac
/Python/Uri - 1078 - Tabuada.py
ac6aafc1079b844d54fef254e162f60a0f6f4b3f
[]
no_license
RaulCavalcante/Uri-Online-Judge
501dd950cef14a7794f01e7d56fb7401660a6e71
86084545b4df5036f841168a49b55034dc588cb4
refs/heads/master
2023-03-16T22:45:20.907712
2021-03-10T13:24:10
2021-03-10T13:24:10
326,726,931
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
Uri - 1078 - Tabuada.py
''' Leia 1 valor inteiro N (2 < N < 1000). A seguir, mostre a tabuada de N: 1 x N = N 2 x N = 2N ... 10 x N = 10N Entrada A entrada contém um valor inteiro N (2 < N < 1000). Saída Imprima a tabuada de N, conforme o exemplo fornecido. ''' numero = int(input()) i = 1 while i <= 10: result...
fec74ba86f23883ed28349326929d6b5694cdc95
82161903ffc9bdebae3a2d29fdba495720a74dba
/app.py
af70dd848bfe038baaa9731b22d991b268a7d176
[]
no_license
bsmiller25/inspiro-slack-bot
7a58e8342a1460d494fed804bb635b007261eee0
9c5b68f3733f714572f22c2f0633be11bfe4056b
refs/heads/master
2020-12-13T20:51:38.072868
2017-06-28T13:52:55
2017-06-28T13:52:55
95,500,024
0
1
null
null
null
null
UTF-8
Python
false
false
1,272
py
app.py
from __future__ import print_function from slackclient import SlackClient import time import requests import datetime class Bot(object): def __init__(self, token): self.client = SlackClient(token) self.username = {} self.user_id = {} def run(self): if self.client.rtm_connect(...
f8452d7e0a4a964055fbaaae57e9d365fa5e34c8
27de8d717ee6f71e413779e28d6038e6646655b4
/app.py
8780df7a16940563e0e4a8ed91db02ae809ff61a
[]
no_license
srujanreddyj/netflix_dashbaord
1dca1377780aefc38191e6a1d7db8fcfdb725cda
bf3631bef2ddfe2c1e29c02df323f85c0dd4d190
refs/heads/main
2023-05-06T00:00:08.688098
2021-05-28T21:36:39
2021-05-28T21:36:39
371,822,433
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
app.py
# -*- coding: utf-8 -*- import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from pages import ( overview, RatingDuration, WorldContent, Genre, correlations, Cast, ) app = dash.Dash( __name__, meta_tags...
8d70c517722f6b1e1ac07f39e9c6181ed5f3faed
5a06b4ecc5283f64d2eec1da879c31b0d54b2d86
/wflow2/antiquated2/initializeBulkJobs.py
74e257e749d2d6f7445aaee0fd926af097030a16
[]
no_license
statt8900/ksb_scripts
31c94b69a554db0654c9d9e8be5ba61f73fe9460
f3caa5505457c309b453161da1d6f169e1ed7bec
refs/heads/master
2021-07-16T20:29:05.854303
2017-10-20T03:52:38
2017-10-20T03:52:38
107,474,694
0
0
null
2017-10-19T21:08:10
2017-10-18T23:34:50
Python
UTF-8
Python
false
false
3,107
py
initializeBulkJobs.py
#external modules import os,sys,pickle,itertools,ase,json,operator,readJobs,misc #internal modules import jobs,printParse,details,misc """ Launch a bunch of bulk jobs to the Fireworks Queue Inputs: - DOMAINS for all relevant DFT inputs (xcDomain,pspDomain,pwDomain, etc.) - FILTERS to narrow the combinatorial searc...
5d09ab3346eb88d4866d7ff6143fa4ef6ea3fe22
3f8215e5a4626e3baa22c3cc6682674e1c760fb3
/string-methods/reg-numbers.py
ae3a488e433d4dc87e9d5305a56070658c6a65fe
[]
no_license
amos1969/tough-topics
3ca763554ae97f7f6263886f185d03796adaa55f
61cb5622015f8c516716be67c1c9b59d3f92dc71
refs/heads/master
2021-10-08T02:37:17.741504
2018-12-06T16:00:26
2018-12-06T16:00:26
113,313,395
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
reg-numbers.py
def is_reg_number(reg_num): valid = True if len(reg_num) != 8: valid = False elif not reg_num[0].isalpha(): valid = False elif not reg_num[1].isalpha(): valid = False elif not reg_num[2].isnumeric(): valid = False elif not reg_num[3].isnumeric(): valid = F...
74b384d3162282039c15baaf45cdc709ddb80d24
09596c782a1723641a1325998df6812f2db6f685
/python_scripts/ec2_volume_snapshot.py
2cc665b20e3417198adbebdc1727e90918b20d36
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sanket-bengali/aws-backup-ssm
b3777bd197821c2fce7e6cf2c1c33ec080bbb510
56f2496263d692e5a960437b8b97b6e029157f80
refs/heads/master
2020-05-30T21:53:31.555880
2019-06-04T07:28:53
2019-06-04T07:28:53
189,983,131
1
0
null
null
null
null
UTF-8
Python
false
false
1,233
py
ec2_volume_snapshot.py
import subprocess import sys import boto3 def execute_shell_commands(commands): MyOut = subprocess.Popen(commands, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout,stderr = MyOut.communicate() #for command in commands: command_string = " ".join(commands)...
4d3361fe55c4f82473a8af0f7afcb16c1588e400
5c12160167e6be97f6d93bbb0758e2dd59caffd8
/python/Warmup-1/front3.py
e82fdd67345a3e9cc769429edbca6bc51bd0de7a
[]
no_license
kazumihirata/codingbat
83b47886fa8e2dcf3d77d0d637d7ab6372f9623a
a9ff184ee980b46cc7f46361560c9730e88b0976
refs/heads/master
2020-03-19T20:36:51.450709
2018-06-19T10:54:37
2018-06-19T10:54:37
136,909,031
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
front3.py
# Given a string, we'll say that the front is the first 3 chars of the string. If the string length is less than 3, the front is whatever is there. Return a new string which is 3 copies of the front. def front3(str): front = str[:3] return front * 3
9115104c3c83bc690636ddcca9c89dfcd6a4cdf1
18c396764e3750a58ddbd1141c151bc89b141937
/readmission-prediction/clinical_note_utils.py
d19dfda85439dd76f548b9c979fdc980b981f532
[]
no_license
ryannetwork/MIMIC-NLP
09a447a294303d9af939715c359063424c91211c
edce8146b7ceebd826b60630b1b407e62f4407c1
refs/heads/master
2022-11-19T19:42:38.638610
2020-07-12T23:57:42
2020-07-12T23:57:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,307
py
clinical_note_utils.py
import numpy as np import pandas as pd import sklearn.metrics as metrics import matplotlib.pyplot as plt import os def extract_notes(path, naming_conv, notes, ds_type="train", label="pos"): """ Extract clinical notes and store each in its own file. This makes it easier to work with fast.ai""" compiled_pat...
53fc2ac92642fb41431eca0c65d42372437ca432
97be97c88e52ee1fc38bd409fd4710db8e14f5c5
/Debug.py
e2fda7fb86977df43608cef4834bec20fa381c6f
[]
no_license
wbutler/beyondtv-podcast-app
02b88bde298075de3738ce0ff2faedb8ea172264
527fb0446e24ac48c7e50c2a20705d4ca374ff10
refs/heads/master
2021-01-23T15:42:16.179369
2008-12-02T04:29:54
2008-12-02T04:29:54
35,943
1
1
null
null
null
null
UTF-8
Python
false
false
1,896
py
Debug.py
import Config import os import sys import time # Available logging levels; output at higher values is a # superset of output at lower levels. Use these values as # input to SetLogLevel ERROR = 0 NORMAL = 1 DEBUG = 2 # Default level of logging for the application RUNTIME_LOG_LEVEL = DEBUG # If this file is present in...
07b653c75d1a2a469e7819b0562676eb9ff287e4
131d8a26357efd869a87123892bb8d6027f2961d
/celery_queue/tasks.py
1bc03effb773073cdfa77179474d8f90705bca2f
[]
no_license
rabbit72/image_resize_api
d1ea235585db6d656a1fc2e1d9860eb24b1f52b9
47f84f3d76da099db7e16922707dd9219a99c387
refs/heads/master
2022-12-08T08:45:47.767319
2019-02-04T21:27:33
2019-02-04T21:27:33
168,030,960
0
0
null
2022-11-22T03:26:48
2019-01-28T20:22:33
Python
UTF-8
Python
false
false
889
py
tasks.py
import os from PIL import Image from celery import Celery app = Celery("tasks") app.conf.update( BROKER_URL=os.environ.get("CELERY_BROKER_URL", "redis://"), CELERY_RESULT_BACKEND=os.environ.get("CELERY_RESULT_BACKEND", "redis://"), CELERY_ACCEPT_CONTENT=["json", "pickle"], CELERY_TASK_SERIALIZER="pickl...
0e3d3a00263356c23b8e9477fe47c38b2cdf52f6
275e800b2f277c0c71bf37640b073cc0edeea8f5
/process_code/python/scale_enhance_rotate_image.py
a0b34f74b7524e4afb751097d526adf879990f32
[]
no_license
yupinghuinuaa/kaggle-demo
0f92eab46a221a41b2dd488ffb068945895e72a4
6e0159b363cd3761505ff20750f5fbcd3362bd3c
refs/heads/master
2021-01-20T13:06:55.720909
2017-08-29T11:30:29
2017-08-29T11:30:29
101,736,661
0
0
null
null
null
null
UTF-8
Python
false
false
5,531
py
scale_enhance_rotate_image.py
import csv import cv2 import glob import os import numpy as np import concurrent.futures import socket scale = 500 pool_size = 20 def get_dir(directory): if not os.path.exists(directory): os.makedirs(directory) return directory if socket.gethostname() == 'dl-T8520-G10': path = '/home/liuwen/ssd/k...
8fa46ff9c3b382d99aa3ee8e391317530d5f9c47
ec8d982371037317c59b1492650902fc67cd4afc
/Object_Detection.py
d2258c86cbd1eb0b74b68f2475014f4bab25abe0
[]
no_license
Ryanlimfc/running-leader
54233d11cb67d6596a5312f0ee4fc3586e5cd88c
d1b99d63e84827c6b65134cd3a33bdf39b78a20c
refs/heads/main
2023-03-25T05:27:21.274673
2021-03-03T04:39:22
2021-03-03T04:39:22
345,579,841
0
0
null
2021-03-08T08:15:55
2021-03-08T08:15:55
null
UTF-8
Python
false
false
2,796
py
Object_Detection.py
import cv2 import numpy as np import math import time net = cv2.dnn.readNet('yolov3_training_final.weights', 'yolov3_testing.cfg') classes = ['User'] #with open("classes.txt", "r") as f: # classes = f.read().splitlines() #cap = cv2.VideoCapture('video4.mp4') #cap = 'test_images/<your_test_image>.jpg' f...
28da4acb2e010944ba9f972d4bc2ead571f1e2e1
76f884e7c21f8999d1ddd73f75f146c91db4dc99
/algorithms/SPLC.py
6a82c230636f0649d93825f88e41995a89845087
[ "MIT" ]
permissive
ChengyuanSha/Smart-Alignment
4b3cf91e69f487e60d02627bf2f02d7a7c7ca3d6
4c75e3952917bcb5d0608a9abd6ccfccc05c57d8
refs/heads/master
2023-04-15T06:21:30.281870
2021-04-23T22:08:08
2021-04-23T22:08:08
352,764,369
0
2
MIT
2021-03-29T21:42:39
2021-03-29T19:41:05
Python
UTF-8
Python
false
false
576
py
SPLC.py
from algorithms.RNA import main_RNA from algorithms.PROT import main_PROT from algorithms.utils import read_fasta def main_SPLC(infile): dna = max(infile, key=len) introns = [s for s in infile if s != dna] for i in introns: dna = dna.replace(i, "") rna = main_RNA(dna) pep = main_PROT(rna)...
a21bc41764bb4782882c0b7b73a6c459f6c81674
581780e2d294dd9d73d0a733c81738b5af3dbd40
/2B/B. Дома и магазины.py
e582dc66b29b66bcd99bac2946ab6dd48de92f44
[]
no_license
insydegh/yandex_algorithms
9651b156a37956ef78115d2301101b6270d07909
69f0fb4b2abc81289edbfe6c1f67b2c3b2bf2a4a
refs/heads/main
2023-08-29T21:42:18.089980
2021-10-24T12:58:46
2021-10-24T12:58:46
417,493,720
0
0
null
null
null
null
UTF-8
Python
false
false
2,739
py
B. Дома и магазины.py
''' B. Дома и магазины Ограничение времени 1 секунда Ограничение памяти 64Mb Ввод стандартный ввод или input.txt Вывод стандартный вывод или output.txt На Новом проспекте построили подряд 10 зданий. Каждое здание может быть либо жилым домом, либо магазином, либо офисным зданием. Но оказалось, что жителям некот...
f7de6fcbbaa31f816167880e4710fbf7988a9c9f
6f409de32e16e053acf0fe69d7854c754d34d279
/docker-res/run.py
8f59efb3c4d241edf1ace1d73b366a3eb5cad248
[ "Apache-2.0" ]
permissive
JaceHo/ml-workspace
ab3853db4ec983041d1e527223a70360f9e69377
099eb256743acb5bc5248285f2e2a138623d9ecf
refs/heads/master
2020-06-26T06:31:16.702898
2019-07-26T20:34:17
2019-07-26T20:34:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,267
py
run.py
#!/usr/bin/python """ Main Workspace Run Script """ from subprocess import call import os import math import logging, sys print("Starting Workspace") logging.basicConfig(stream=sys.stdout, format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) log = logging.getLogger(__name__) def set_env_variable...
7a9ef2671db65ecb18296b94feee809c82e427c1
65cf97bfb1e9b6d84419c2ac030f6bec0a145a8c
/import_test.py
b0d3e605f981e2b25c2e7366bb799f4f5c98bab4
[]
no_license
dlotnyk/cia_home
f295134bd4f0dabc140d04743828c03b353e800b
a04c6e98271691dc9f66004c6e42694d7e6b42e8
refs/heads/master
2020-03-21T14:45:48.979992
2018-08-08T14:23:53
2018-08-08T14:23:53
138,674,514
0
0
null
2018-07-16T13:40:14
2018-06-26T02:31:47
Python
UTF-8
Python
false
false
1,136
py
import_test.py
# -*- coding: utf-8 -*- """ Created on Tue Jul 10 18:43:50 2018 @author: dmytr """ from bs4 import BeautifulSoup as BS import numpy as np #from shutil import copyfile notesb=[["A","45 17","57 19"],["B","47 19","59 19"],["C","48 17","60 14"],["D","50 16","62 16"],["E","52 18","64 18"],["F","53 13","65 13"],["G","55 1...
a9b174acaff9a90d2f8ed54d7875ec052e0f8be7
70738ea6f8d209f37e75a9f6e9885efefa8fb2bd
/pages/issue_edit_page.py
dd05ddea4dad07e83403513c8cb73eec21d825ec
[]
no_license
vs-odessa/PythonAutomationTraining
1fa243ae2a5982812d1e08a71bda95bbc7fdb441
c9696082a808cec68fb7ed39890b7b7b65212cb0
refs/heads/master
2020-05-04T17:13:09.369366
2019-06-03T11:25:40
2019-06-03T11:25:40
179,302,791
0
0
null
2019-06-03T11:25:41
2019-04-03T14:04:03
Python
UTF-8
Python
false
false
2,802
py
issue_edit_page.py
from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.support import expected_conditions as ec from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support.select import...
ff4af13580af2f7d3ed073f070ca220a4108c449
db578b3ce25a01c2bed6e96ffeae3c21dd8fe40f
/tools/utils/screenshot_scraper.py
9202cfdc0b998138c4f2936c01459115dfc88e14
[ "MIT" ]
permissive
p3t3r67x0/purple_jo
ae2773b26fc1e1f42084fea967f72ff12cb912d0
60dfeb7d90a8042fb7156481bdc96c5408a20671
refs/heads/master
2023-08-15T17:08:58.187820
2023-06-13T16:12:31
2023-06-13T16:12:31
224,940,105
9
3
MIT
2023-08-02T02:04:48
2019-11-30T00:41:49
Python
UTF-8
Python
false
false
3,474
py
screenshot_scraper.py
#!/usr/bin/env python3 import requests import argparse from requests.exceptions import SSLError from selenium import webdriver from selenium.webdriver.common.by import By from selenium.common.exceptions import TimeoutException from selenium.common.exceptions import JavascriptException # from selenium.common.exceptio...
465e6f8aa11c366699a601e5fc6ca787f34ff2a0
1d216dd2167b6075711dfda8f97a81193f6319d6
/mwcp_api_example.py
cda15027c48eb4cbec3329c86e780e57849512b6
[ "LicenseRef-scancode-us-govt-public-domain", "MIT" ]
permissive
mlaferrera/DC3-MWCP
97b8d86403cf724d88a0196df9704a19ecfa7f1f
17273d9411fe0a897128cf81e80fa9dae0c8c73b
refs/heads/master
2021-01-11T14:00:46.700630
2017-06-23T15:29:40
2017-06-23T15:29:40
94,923,226
0
0
null
2017-06-20T18:33:11
2017-06-20T18:33:11
null
UTF-8
Python
false
false
1,175
py
mwcp_api_example.py
#!/usr/bin/env python """ Simple example to demonstrate use of the API provided by DC3-MWCP framework. """ # first, import the malwareconfigreporter class from mwcp.malwareconfigreporter import malwareconfigreporter # create an instance of the malwareconfigreporter class reporter = malwareconfigreporter() """ The mal...
7d10f13cc83f8bcc7ba2fb9072ba9eff4ed1cb14
16b6aa85a7a2f09c4081b762c8d9542b1e9909a4
/examples/main2.py
9afe49b39e7ea4a3819f4ffc29e7ab5ca4feebb2
[ "BSD-2-Clause" ]
permissive
cis-ncbj/git-introduction
1284031d2d6753f31687a7d00b05c9d374254859
c0b050e2363a201dd3ef00f31de96a65bc473db2
refs/heads/master
2021-04-03T05:23:40.925112
2019-12-11T07:32:06
2019-12-11T07:32:06
124,894,157
0
0
BSD-2-Clause
2020-09-04T00:58:09
2018-03-12T13:34:33
CSS
UTF-8
Python
false
false
293
py
main2.py
DATA = [ { "imię": "Filemon", "gatunek": "Kot", "waga": 1, "wiek": 0.5 }, { "imię": "Szarik", "gatunek": "Pies", "waga": 30, "wiek": 2 } ] def display(data): print(data) print("Git Handson") display(DATA)
d72cb78d9ac9f0cf438ba44cd9dcfe473d37112a
3e5b47b57c726572df4f46e9fabff15cf06b6da3
/setup.py
13482bf6468ab29d973d2ee45a510c7e933bb9f7
[ "MIT" ]
permissive
scottjab/imhotep_foodcritic
18fb6f6dff44ab3364dcc2fe742abcac37b5e53a
ac1cc41e45cf6b7a6cec6f45859cb86d65c39789
refs/heads/master
2020-05-03T05:31:44.858677
2014-02-18T17:39:46
2014-02-18T17:39:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
setup.py
from setuptools import setup, find_packages setup( name='imhotep_foodcritic', version='0.0.1', packages=find_packages(), url='https://github.com/scottjab/imhotep_foodcritic', license='MIT', author='James Scott', author_email='scottjab@gmail.com', description='An imhotep plugin for chef ...
ed11d65d097dc32d5c520c4d486e6711451a086a
0e7f435ae1f5e5eb0fa7ec03dd440e7b4d50b04f
/myspider/spiders/proxy_kuaidaili.py
ba49d123ed32e64cd51bfbf060e42c375700749b
[]
no_license
AaronChiu2017/scrapy_demo
193b3f56fcf17d209ab4a7ca3841f4c70366a157
7d104f92a9a2a0ecd35fad4d2019fe4f6eb5c782
refs/heads/master
2020-11-26T19:41:24.402821
2019-04-13T11:38:14
2019-04-13T11:38:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
proxy_kuaidaili.py
# coding=utf-8 from scrapy.http import Request import scrapy from myspider.items import ProxyItem class KuaiSpider(scrapy.Spider): name = 'proxy' allowed_domains = ['www.kuaidaili.com'] headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Acc...
37459fc1c1ee7dd022601a1940a7e7fe591cbae2
a456bd0cf8f11c9afc5a12563adb11a55abf4164
/ficosa_exam_scg/question2/main.py
87cf065c93342ed46d56cc030f66dc759af92d2f
[ "MIT" ]
permissive
scamposgallego/ficosa_exam_scg
5954268acba69ec0e0563e4c5907ff0b294874b5
164fb4bedfc87636273a70e3d62e36f73b7473a8
refs/heads/main
2023-08-17T17:47:46.521836
2021-10-08T20:26:48
2021-10-08T20:26:48
414,949,385
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
main.py
from .ShapeFactory import ShapeFactory import PySimpleGUI as sg class FactoryPatternDemo(): def __init__(self): sf = ShapeFactory() sh1 = sf.get_shape('circle') sh2 = sf.get_shape('rectangle') sh3 = sf.get_shape('square') sg.popup(sh1.draw(), sh2.draw(), ...