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
f860ee32e82f769adc4d151c529e2bb447209bee
2c8f662a105dac59f4c5511191cf62db137348ed
/set6/challenge46/rsa_parity_oracle.py
b0184133eb20d818383b750fc605fa7bd291dc3b
[]
no_license
sayx1/cryptopals
5154d4e10d63ea51f4dedd85a80dd6cb5fa57130
b78ec1b02da2c43c7c16e41cc74b270a41dd41de
refs/heads/master
2023-01-12T23:22:10.825159
2020-11-19T08:21:05
2020-11-19T08:21:05
291,901,384
0
0
null
null
null
null
UTF-8
Python
false
false
2,568
py
rsa_parity_oracle.py
import gensafeprime from base64 import b64decode from Crypto.Util.number import inverse,bytes_to_long,long_to_bytes from gmpy2 import f_div import math def gen_keys(): ''' generates public and private key for RSA encryption with crypto safe prime numbers (1024 bits) returns -> ( publi...
27d72a572f15ccb1cfd224c38f4b619322e70501
490cd642d522ab512ab435580ea92bbae789414c
/tdepps/utils/phys.py
3c3a5ba78f8394f694936a1af5f173d01483d416
[]
no_license
mennthor/tdepps
c4f86d11e61b99c1e27d6df2a8f013ea8f1c0a78
100035f95321506057677806d25f1695cfea58a9
refs/heads/master
2021-09-22T21:05:21.801613
2018-08-06T09:38:26
2018-08-06T09:38:26
90,803,720
0
0
null
null
null
null
UTF-8
Python
false
false
9,915
py
phys.py
# coding: utf-8 """ Collection of statistics related helper methods. """ from __future__ import division, absolute_import from future import standard_library standard_library.install_aliases() import sys import numpy as np from astropy.time import Time as astrotime from .io import fill_dict_defaults, logger log = l...
fd23536f9e671508bda4b5f39c1342f4100b601a
796c298d2382a16861ecd5064fe16752494f1deb
/Codes/Section 2_Code.py
b1576000ca83996b7e9b9c5c873c3a9a52b23342
[]
no_license
ArunSudhakaran/Database-and-Analytics-Programming
3068d84a76f87906f75a174d2ee731fea3c25b24
dde9576e50baf73267ae6e38284c3ac3b4e40780
refs/heads/master
2022-12-17T14:01:46.357411
2020-09-22T23:40:37
2020-09-22T23:40:37
297,796,158
0
0
null
null
null
null
UTF-8
Python
false
false
5,565
py
Section 2_Code.py
#!/usr/bin/env python # coding: utf-8 # In[4]: import pymongo from pymongo import MongoClient import json import pandas as pd import pprint from pandas.io.json import json_normalize import numpy as np # MONGODB CONNECTION client=MongoClient('mongodb://localhost:27017') #CREATE DATABASE IN MONGODB population_db=cl...
e80082c4153404df6cf6e45894fbe7e350bc38f0
35a59798df079c4553743e4505e1df6824dd3473
/TP2/jguwekarest/autoscale.py
51b232087414858b9742985dce8a2f087bcf1e23
[]
no_license
heyitsmik/LOG8371
005c694831d1ece46051ae7278980d26f931c3c4
1ee2177c8300592e8bee895ee34bf56d01a2c716
refs/heads/master
2020-04-18T00:08:03.417780
2019-03-28T15:44:07
2019-03-28T15:44:07
167,064,250
0
0
null
null
null
null
UTF-8
Python
false
false
2,677
py
autoscale.py
# -*- coding: utf-8 -*- import subprocess import time CPU_THRESHOLD = 80 CPU_THRESHOLD_DOWN = 5 INIT_TIME = 10 class Container: def __init__(self, name, cpu_usage): self.name = name self.cpu_usage = float(cpu_usage) self.init_time = time.time() def update(self, cpu_usage): se...
232b068107ec746bdec79c4aac6c15c77a66736f
4b9a204be08f142ab775a54f2561a587c70366ea
/standardize.py
1d072826e432efbc31dcd12d19377f39abc2570b
[]
no_license
ngminhluong/Lab01-DataMining
d2bc897ee559d41872e0606c096b22ea2b0a07f8
ddd5a9c0a11ce2cd53d9df52f0e02f21a566b970
refs/heads/master
2023-09-03T03:52:42.781260
2021-11-18T14:39:23
2021-11-18T14:39:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,586
py
standardize.py
''' 7. Chuẩn hóa một thuộc tính numeric bằng phương pháp min-max và Z-score. ''' from math import sqrt import pandas as pd import argparse import sys import re def mean(col): '''calculate mean of one column Parameters ----------- col (...): 1 column in a dataframe. Returns ------...
0e84d13e7898f33d46246ed67f1a3d78936427bb
dff4ca341f1c8dc97265f94fabb6f1e49cdaa43a
/Project4/stomp-test.py
dec80ae90c46ba48c8db5e3edd0f45d99fff462d
[]
no_license
Ksld154/Intro.-to-Network-Programming
4f9eed6cdfe7cabe9cc6bd90565f1f32960b98e1
078c8ae394fec6ba6dbb19d6091b599f0f552fd4
refs/heads/master
2020-03-28T20:45:06.480733
2019-03-16T09:26:29
2019-03-16T09:26:29
149,098,369
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
stomp-test.py
import time import sys import stomp class MyListener(object): def on_error(self, headers, message): print('received an error %s' % message) def on_message(self, headers, message): print('received a message %s' % message) conn = stomp.Connection(host_and_ports=[('localhost', 61616)]) conn.set_l...
c0a7cd070868ca94028631893e1677557ffbbec4
f94b979aaa3ff54070053c27ca36cd8a731e5172
/greatest_integer.py
db7fdde610d3e1f45b85b5d45132a3fc6d356586
[]
no_license
Aditya-Ankur/Practice-Python
fd98b9fc64325920bdaa0ee80f8fa915f0a8fcf3
2e0a37ab11a9a35874b66f778762ffa231354fda
refs/heads/master
2023-06-05T07:29:14.495322
2021-06-21T15:40:30
2021-06-21T15:40:30
357,598,748
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
greatest_integer.py
#this will return the greatest integer of some real number greatestInt = lambda n : int(n // 1) def recursion(): try: num = float(input("Enter a number : ")) print(f"Greatest Integer of {num} : {greatestInt(num)}") except Exception: print("You are a fricking fool, get lost") ex...
432ded3f4aa52a7dbc2239f2c8f5d21b92641b74
53e510f15261483f494d188f056808fcf4b2dd64
/pricelocationalgo.py
64ddc27b79eff1f454be615ef94a7875fd34470e
[]
no_license
Cheese-5040/python_projects
c9d3d054235c60fcde3fa715d05a6bb5b1a0a6f2
f7d74545cc9529149527cced770feb6bbd5c3d80
refs/heads/master
2023-04-13T10:22:58.042010
2021-04-15T08:27:53
2021-04-15T08:27:53
274,085,679
1
0
null
null
null
null
UTF-8
Python
false
false
6,315
py
pricelocationalgo.py
import numpy as np import scipy import matplotlib.pyplot as plt import seaborn as sns import pandas as pd # pip install ppprint from pprint import pprint from pymongo import MongoClient #import the client from backend from sklearn.model_selection import train_test_split from sklearn import metrics from sklearn.metrics ...
7171934d444e2024e7796cea399bad991d753d1b
f88ad901731330cd8e55b2eb4fcfd76a05ed7da7
/core.py
30c3b8a1261d1ad03844a2340136bddb6f4be183
[]
no_license
dberenbaum/santorini
68559189aa013ea114f3d7b16e4ce47b8e3bdb9e
f92c925c7b17e489deba9fe88bfea636bffe973c
refs/heads/master
2021-05-26T07:04:11.398003
2020-10-23T23:44:21
2020-10-23T23:44:21
127,836,436
0
0
null
null
null
null
UTF-8
Python
false
false
8,206
py
core.py
import collections import itertools def xchar(x): """Convert x coordinate to character representation.""" return chr(x+65) class Space(object): """Board space.""" def __init__(self, x, y): self.x = x self.y = y self.level = 0 self.player = None def __str__(self)...
89d1b3d2be3682784ca15cd0be700875e431a462
70eca663a27e9c8de47a539a1e288f11c1cf0a7d
/DICEgame.py
d671fa94263e407dbe4f805205b0e447cc0f6f90
[]
no_license
eliyahoo957/pythonProject
49f1fbad6dbfa5f997d1d75a57c290a51cb4a91a
a501a19c75f262161cdb9f28cc63a3e95741c857
refs/heads/master
2023-07-16T09:08:32.384895
2021-08-31T14:28:02
2021-08-31T14:28:02
397,884,185
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
DICEgame.py
from time import sleep from random import randint money = int(input("this is a game of dice(: every throw cost 3$\nhow much money you have? ")) print("you can to throw:" + str(money//3) + " times\n" + "your change: " + str(money%3)) prise=0 for x in range(money//3): num1=randint(1,6) num2=randint(1,6) prin...
b2a507dcb28df894c6fd350113dfe3a8eb6e20f9
86c27cf01d91ff8990e5a6fb02870bfa0ae7ee98
/Middle.py
ab92a1070791371cbc78c724a148a29646555c0d
[]
no_license
GodlyGaben/Cat
ac637ccbb89ee9926a5ff1c29c2fd2223771179f
51705b7a594c67a1b224c30bff089189bc4a3c16
refs/heads/master
2020-03-29T20:59:57.631628
2018-11-07T01:25:45
2018-11-07T01:25:45
150,343,424
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
Middle.py
def wine(s): x=len(s) x=x-1 s1=s[1:x] return s1 print (wine("Hello")) print (wine("java")) print (wine("coding"))
71fcfb07d3fa90bba8c6d12711cf6ed2d62a23a0
24b842bbb089e44ebc3ce6ffd4b8e36b1906331a
/requests/get.py
18bf281dae289e18e2addf43c866886865b9ce27
[]
no_license
Lapetina/python-521
dc7f784e85f38651cc34d94274fd783dcb31b4e8
501b82ecf13ee1d62f52f224788601b4ea0933a1
refs/heads/master
2020-05-02T01:36:16.412267
2019-04-03T01:27:54
2019-04-03T01:27:54
177,689,003
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
get.py
#!/usr/bin/python3 #Pegar o CEP do temrinal -> input #Exibir apenas o logradouro -> ? import requests cep = input(str("Informe um cep: ")) response = requests.get('http://viacep.com.br/ws/{0}/json/'.format(cep)) if response.status_code == 200: json = response.json() print(json['logradouro'])
68686a62c3b99bd1acb4838e8ae1b7abaedac4fa
8a7499db68f3ade890be0a7927bffc531d9e18f8
/test/utils/test_misc.py
d34920cdf563168ce245d0c6e58f22604ef6bebf
[ "Apache-2.0" ]
permissive
JMatica/apitestframework
ea4a7745769d58fd7bf78fb7d28d063479297820
4e195a3a4862cf50562ed21a4564e14d66c712b5
refs/heads/master
2022-12-02T07:54:15.366272
2020-08-07T10:29:49
2020-08-07T10:31:37
285,787,763
2
1
null
null
null
null
UTF-8
Python
false
false
7,638
py
test_misc.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2018 JMatica Srl # # This file is part of apitestframework. # # 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.apa...
cf48f2396d3ebfde7b482a92c1216f38294254e1
59bc8b722acd560841b681157e2c84989df939c2
/filter/urls.py
d4699071f314e530caf452bcb7fa9cbbf4ea9c50
[]
no_license
vicc-dssr/filter
9e58af1123e10d9604b408929bdb52a6d743d428
969e55000dd42e5f2d417ba96fc91448f2800205
refs/heads/main
2023-05-05T02:21:56.441823
2021-05-25T20:42:59
2021-05-25T20:42:59
370,727,045
0
0
null
null
null
null
UTF-8
Python
false
false
1,572
py
urls.py
"""filter URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
16f57bf2d0888fd4d5fdf84dc9a0952063f03459
f7152e44bd767495cef0d0420e60998d55a1614c
/cdd_hca/cdd_read.py
2185d7e3076ef0611536affad8bfeb0e08976ef2
[]
no_license
Issa900/AP_Intern
c91f2891e338524ee57d5d0e5b08778d6f582640
8abc2f4583c99c83bfc2c86aeeb20b7f8c0b4597
refs/heads/master
2021-06-06T10:42:41.946111
2016-09-02T02:46:54
2016-09-02T02:46:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,918
py
cdd_read.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys from collections import defaultdict def read_cdd_outF (cdd_in, read_out): """summerize domain match in sequences by CDD scan in a output file """ domain_cdd = defaultdict(set) with open(cdd_in, 'r') as cdd, open (read_out, 'w') as f: ...
eb0223ad24c7ed003dba7395e49c54a0a1e54e18
dec1094229f9cc96b733847b00e99d583c186927
/lunch_and_learn.py
5d0153b9451653bcbbdd26cb7c50dca59d57263d
[]
no_license
rongkaixu/demo
348de9efbaee4b4f191e1ab8682cf93b54a46575
10968899f2bd594bd945ba65135edaee33a8f897
refs/heads/master
2022-12-19T18:13:57.400631
2020-09-22T17:45:34
2020-09-22T17:45:34
297,726,552
0
0
null
null
null
null
UTF-8
Python
false
false
5,145
py
lunch_and_learn.py
#Step 1: Import TensorFlow and Keras, the high-level API to build and train models in TensorFlow # TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pyplot as plt print(tf.__version__) input("Import done! Press Enter to continue...") ...
e1713d15148aaa34be47314615f07acfae007746
6f67904e034ba4681e02de9639f24edd03956eab
/lumiml/examples/test_install.py
63b74e81b6f53eff608012a1702c68a61beff2a0
[ "BSD-3-Clause" ]
permissive
syyunn/lumiml
db69e042e5af6186101ad27a4f0ab9854eb2e939
7a36657c28ad3ed50dcae53597d6d582c93364de
refs/heads/master
2020-11-29T21:57:56.240274
2019-12-28T11:56:58
2019-12-28T11:56:58
230,224,926
1
0
null
2019-12-26T08:22:38
2019-12-26T08:22:37
null
UTF-8
Python
false
false
1,841
py
test_install.py
def TestInstall(): from ..base import DeltaBasisFeatures, TriangBasisFeatures, HistBasisFeatures from ..models import PoissonElasticNet from ..model_selection import PoissonElasticNetCV from ..simulator import StretchedExponentialDistribution, Simulator import numpy as np # generate st_exp...
e305794bce02d19fb9690a4ec11525c8261f9c2f
90f89163cd07d58d88ba4845b5c87f0f2e3b5afb
/lotofacil.py
fd9eda4a712730ac7275eecadd774ac6346660e8
[ "MIT" ]
permissive
kennyaires/lotofacil-crawler
4f3d1c9cb0869cc9399f592500306b94081a2e8c
2679954d0aeec1947b84c2a5dc6b157e5671331e
refs/heads/master
2022-06-02T11:06:58.112883
2020-04-28T03:32:58
2020-04-28T03:32:58
259,521,618
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
lotofacil.py
import requests import csv from bs4 import BeautifulSoup url = 'https://asloterias.com.br/resultados-da-lotofacil-2020?ordenacao=sorteio' html = requests.get(url) bs = BeautifulSoup(html.text, "lxml") if __name__ == "__main__": result = bs.find_all('span', class_='dezenas dezenas_lfacil') sorteios = [] ...
9133bfc6829f917a8ea077b8e8c094770860d3e2
04a812d1c3be6ac285f383fb0a00e1d5c73ffddd
/py100道题/py第90题.py
50070b92ad9e494be160d6724d38092e54d53da2
[]
no_license
Pinyk/study
e046e03e3c9096ef47b1221d0125f6293fbdf705
1051e4c3424bdab918421fb062cc6ca82b96d5c5
refs/heads/master
2022-12-27T00:11:05.468069
2019-11-14T13:27:56
2019-11-14T13:27:56
166,974,464
2
1
null
2022-12-16T09:44:31
2019-01-22T10:26:25
Java
UTF-8
Python
false
false
80
py
py第90题.py
import itertools a="gao" b=list(a) c=list(itertools.permutations(b,3)) print(c)
cbcfd8705d42324e9ec41e4c7fd06fe853b03864
bf5160ab7fd23869f9583bbf2e9332495a8fff83
/setup.py
93a0083479b71a36826164f3165450410605ab40
[ "MIT" ]
permissive
yieldsfalsehood/rng_fdw
247eac7f002a071248c3d865317378d98d3b6e8b
31a181a6a912f0b1072c7ed9f09c5bd0afa052b8
refs/heads/master
2021-01-22T02:48:10.705931
2014-10-01T11:36:07
2014-10-01T11:36:07
24,596,153
1
0
null
null
null
null
UTF-8
Python
false
false
179
py
setup.py
#!/usr/bin/env python from setuptools import setup setup(name='rng_fdw', version='0.0.0', author='Elliot S', license='Postgresql', packages=['rng_fdw'])
32d91d1688876db04d4723fa84a3d6f4a4b63028
1a18cb3aaa4abc944dff36952d8e2d2f78f121aa
/classify.py
6c7d9cbe89797ada4b92f6a3a936ad5968804bc2
[]
no_license
pexmar/DSCNN_document
a3c1d5ce6a654efdabe7990e440632170ffbfb70
b6a3943ac57ef5542314cafdf78ca8fc1ec34fc1
refs/heads/master
2020-12-30T13:09:09.500076
2017-06-30T13:49:48
2017-06-30T13:49:48
91,334,242
5
0
null
null
null
null
UTF-8
Python
false
false
5,189
py
classify.py
import argparse import time from keras.callbacks import EarlyStopping, ModelCheckpoint from keras.models import load_model from keras.preprocessing.text import Tokenizer from os.path import join from model import create_model from os import path, makedirs, environ from preprocessing_imdb import * from w2v import get_em...
505af1d0061ec6fb293459bf59303ba4d2af59c0
de6c6e917c54795b3b7bf2e361f03d6d14712082
/paintings_scrape/scrape_mnk.py
2eacef6bb55de11a6bcd1d24a3a5fbe98502760c
[]
no_license
kubapi/ai_for_museums
5483f8232d48b75874403e741730558304aa3c65
c08172996bfaf9a296f2d24e874113b1dfb347f6
refs/heads/master
2022-07-01T15:09:39.271809
2020-05-12T22:22:04
2020-05-12T22:22:04
260,910,907
0
0
null
null
null
null
UTF-8
Python
false
false
2,282
py
scrape_mnk.py
from selenium import webdriver import time from bs4 import BeautifulSoup as Soup from tqdm import tqdm import pandas as pd import random driver = webdriver.Chrome("C:\chromedriver.exe") url = "https://zbiory.mnk.pl/pl/katalog?filter=JTdCJTIyb25seUltYWdlJTIyOiU3QiUyMm5hbWUlMjI6JTIyb25seUltYWdlJTIyLCUyMnZhbHVlJTIyOnRyd...
d2a313cc356d17c4172030ee06958fa24e8a5c36
92463bde8097b17d158c8eccf0755f5f6de333c3
/Test.py
b6bd9b9407f0a9b6297a3c3bc07431059e5575d1
[]
no_license
zibrahim/KDStackedPredictor
7553a86ed25cd4d0ac9acd4898de4f9bfe3aa9cf
8e37977ab74b525e749a4278467d7a6706fe1bc8
refs/heads/master
2022-12-29T06:25:40.684891
2020-10-11T13:55:50
2020-10-11T13:55:50
303,117,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
Test.py
import os import json from Models.LSTMAutoEncoder.LSTMAutoEncoder import LSTMAutoEncoder from Models.LSTMAutoEncoder.Utils import process_data, flatten from Models.RiskScore.VisualisePopulation import DecisionMaker import matplotlib.pyplot as plt import pandas as pd import numpy as np from pylab import rcParams from...
49c71db046304ea86efac9f78386df45393b332f
05eb225a7fdb5f827ec2aab5de751bbd41d63d65
/AcctNum.py
49ffd814607c5db90c3df3ab388bc2ef50d926a7
[]
no_license
ExpertSeahorse/DataScrubber
219a12f2819a4b3ba7e73738f89f9c7a69d216c5
22fb01ef469c4255d912361f161bb3f215da9d08
refs/heads/master
2020-06-04T22:57:50.912623
2019-06-16T18:13:53
2019-06-16T18:13:53
192,221,909
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
AcctNum.py
import re import random acct = re.compile(r'(\d{16}\s)') name = [] with open('celebraties.txt', 'r') as names: for i in names: name.append(i.rstrip()) with open('BC460-Cloned.txt') as fin: with open('OUTPUT.txt', 'w') as fout: for line in fin: if acct.match(line): ...
504a264f67a3c9bc7fefac631e79840f2483989f
348b15d1f8a0bbe96fc063c3f7ff5b929e94d28a
/myapp/handlers/data.py
d2715babc862ed64bd392572a70e02ffc6143683
[]
no_license
tmarcy/letsfly
19f845024e0a92678d88ae0a5a4ca9e169017ec6
c8d771186c3476d4d9377816aa6e6411ba66a487
refs/heads/master
2020-03-18T03:37:41.802679
2018-05-21T09:41:26
2018-05-21T09:41:26
134,248,360
0
0
null
null
null
null
UTF-8
Python
false
false
3,441
py
data.py
from myapp import app from flask import render_template, request, redirect, make_response, session from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, PasswordField, BooleanField from wtforms.validators import required, length, Email import logging import json import urllib, urllib2 from myapp...
5e5822b8ef42c0f81925046e8923bd96f83e0617
b989431b05a924c7750021929adbd07a42d75637
/bunnyhop/url_settings.py
bc4ae8edae6c1382cd755995402b538e827a67ac
[ "Apache-2.0" ]
permissive
jefford-qwigo/bunnyhop
d720e240ca918be66c9fa26293d555610f36dc2d
b039f1a713a234d02aae4d9371133768001095ff
refs/heads/master
2023-02-10T18:29:48.482883
2020-11-08T21:10:42
2020-11-08T21:10:42
285,328,151
0
0
Apache-2.0
2020-12-14T02:54:27
2020-08-05T15:18:21
Python
UTF-8
Python
false
false
169
py
url_settings.py
bunnycdn_url = "https://private-anon-6e7694596b-bunnycdn.apiary-mock.com/api/" bunnycdn_storage_url = "https://private-anon-3bc35a36a9-bunnycdnstorage.apiary-mock.com/"
e769bbaa51398d48f64b1611c3cf3e2ff32c9b25
6e631bd7f138abb9f7eb0d936a8615287248b697
/Home/DateandTimeConverter.py
cfe8e858af44353457d0ed44f6b9dc80228981c3
[]
no_license
ankiwoong/Check_Io
24494390a851fad91f173c5e81a4eedfad7cfe6e
f417dbf1c1cce316ca25d51d645e228e7b03bf9c
refs/heads/master
2022-06-03T14:59:04.571112
2020-04-25T11:29:55
2020-04-25T11:29:55
254,514,447
0
0
null
null
null
null
UTF-8
Python
false
false
2,781
py
DateandTimeConverter.py
''' Date and Time Converter Computer date and time format consists only of numbers, for example: 21.05.2018 16:30 Humans prefer to see something like this: 21 May 2018 year, 16 hours 30 minutes Your task is simple - convert the input date and time from computer format into a "human" format. example Input: Date and t...
899b602ab9947ca1ba617d99bd85dd9e8c413e45
26c7704ee79824addcf93e10f1dd0947a6dd6f5c
/gitTest1/DoubanMovie/pipelines.py
ee7bd591f29667fb88cffb0d8db3117e4739b4cc
[]
no_license
Wynne-nuo/production-practice
69afcc950160b1249bedcab8eef4e6ca7a4ee579
2499828d6e03c3e299a9b637e3d8e8b9f25e568a
refs/heads/master
2021-01-01T13:09:00.091399
2020-02-10T10:22:20
2020-02-10T10:22:20
239,293,061
0
0
null
null
null
null
UTF-8
Python
false
false
2,249
py
pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html #采集后数据的处理 import csv import os import time import logging class DoubanmoviePipeline(object): def __init__(self): p...
0e856863c18b0935a8609982c76f1fa265c9ca5d
978cac823628b6661d6e579ca0fdac5275a494c6
/histo_slow.py
94966c773ea6912b606ef2f7fb44b7e885685532
[]
no_license
mbirostris/technologiainformacyjna
af31facca58c87d0cdbd823ceaee842e53e14bcc
60e111d8a66fb560f1fbdd702b2f1b0615db95cf
refs/heads/master
2021-01-10T07:26:39.459043
2016-01-25T15:44:02
2016-01-25T15:44:02
44,103,387
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
histo_slow.py
#! /usr/bin/python3 import numpy as np import matplotlib.pyplot as plt from sys import argv f = open(argv[1]) l = [] for line in f: l.append(len(line.strip('\n'))) f.close() dl = np.array(l, dtype=np.int) print(dl) print('statystyki pliku {}:'.format(argv[1])) print('liczba linii: {}'.format(len(dl))) print('maksym...
539bead471fa486638509b6076f07386896d6534
d7b324dfc9fa74d951aa80be1e4190263a207fe6
/app.py
168e3600fc051329610e8056eaadc3290b5e80fe
[]
no_license
Jamshid-Mamatov/weather-with-city
b68df20ffa56010a4c2d16edc32283cf36640ebd
f6ece5f9bb64e1cbb0aacd675c5bc75e1101c024
refs/heads/master
2023-03-23T08:35:44.568700
2021-03-08T10:16:37
2021-03-08T10:16:37
345,339,329
0
0
null
null
null
null
UTF-8
Python
false
false
2,425
py
app.py
from flask import Flask,render_template,request from pprint import pprint import os import requests import json import datetime key=os.environ['key'] app=Flask(__name__) @app.route("/") def home(): content="weather home" return render_template("home.html",content=content) @app.route("/day") def day_weather(...
29f204d437c03d6dfb6534a34f5f0b04168a3399
28fb51d17c0f8561a27a0a62898ef765d4ab9b99
/dojo/unittests/test_microfocus_webinspect_parser.py
2aa468104ac52fa593d0f9a52f7f6f3e6be7d156
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
dsever/django-DefectDojo
bd5273e7a6492bd8edc509f25c4d5389b1f6d706
800e0f33556aae43fbb7af9ea0a7861cbe604689
refs/heads/master
2023-06-01T01:18:50.738550
2020-08-04T14:53:38
2020-08-04T14:53:38
272,365,571
1
0
BSD-3-Clause
2023-04-03T07:46:31
2020-06-15T07:01:51
HTML
UTF-8
Python
false
false
1,176
py
test_microfocus_webinspect_parser.py
from django.test import TestCase from dojo.tools.microfocus_webinspect.parser import MicrofocusWebinspectXMLParser from dojo.models import Test class TestMicrofocusWebinspectXMLParser(TestCase): def test_parse_without_file_has_no_findings(self): parser = MicrofocusWebinspectXMLParser(None, Test()) ...
3699bae97dda4894fb36ca8a6df5cef169cb246c
16e842bcb73638586d93c17e9838fb89bc2b60bc
/Module-9/9.2 Server/9.2.1 server.py
cf8f2314aaf70f5c00d0410660d4ea846f1b1e07
[]
no_license
krupa-thakkar/Python
dcbda2fe8296ffdd25641cf1e039132f41e0e44e
cbf0ec0399084a9a0a4ba5cebe739580bff4ce06
refs/heads/master
2023-03-24T05:43:58.799704
2021-01-25T06:20:44
2021-01-25T06:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
9.2.1 server.py
# server side import socket serversocket=socket.socket(socket.AF_INET,socket.SOCK_STREAM) host=socket.gethostname() port=9999 serversocket.bind((host,port)) serversocket.listen(5) while True: clientsocket,addr=serversocket.accept() print("Got connection from %s" % str(addr)) msg="Thnak you for connectin...
0497f9f0c9614483eb5c8a9effa42be6925f90b2
a394b1053f018ff8be63221c61682df03af4937b
/osf/migrations/0083_add_file_fields_for_target.py
e3cbdb11c92e4c057f0317001a1ab7d8792d5804
[ "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "MIT", "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
RCOSDP/RDM-osf.io
81b11d9511f6248ec9bccb6c586b54a58429e1e7
5d632eb6d4566d7d31cd8d6b40d1bc93c60ddf5e
refs/heads/develop
2023-09-01T09:10:17.297444
2023-08-28T04:59:04
2023-08-28T04:59:04
123,298,542
12
24
Apache-2.0
2023-09-12T08:58:28
2018-02-28T14:46:05
Python
UTF-8
Python
false
false
1,109
py
0083_add_file_fields_for_target.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-12 17:36 from __future__ import unicode_literals import logging from django.db import migrations, models import django.db.models.deletion logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) class Migration(migrations.Migration)...
2f6fc5525ae94267e281216f33338f9f4bbe9257
e9a92b53fd21c688a2cfbf094fcc1caf24a2d6ed
/cryptography/affine_shift_cypher.py
c5a5b10139d01e5797e6afb942321f2ac4abc45d
[]
no_license
skytreader/programming_praxis
64fdb10ca08a24f30a299353cff197d241efe00b
f75500a8f235c439b3bf9a7a70efe7bab80a40f8
refs/heads/master
2021-01-17T08:44:32.033363
2016-06-13T18:52:38
2016-06-13T18:52:38
6,104,687
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
affine_shift_cypher.py
#! /usr/bin/env python3 import string import unittest """ http://programmingpraxis.com/2009/12/15/affine-shift-cipher/ UNFINISHED All indices are zero-based. """ def to_letters(numlist): """ Returns in uppercase. """ return "".join([string.ascii_uppercase[i] for i in numlist]) def to_numbers(letter...
02c8cd5c41d56e783f73c87fdde00b3b61765408
0252f89a995e99e49d8ca228d8a96bed090f44ce
/robot_project/robots/views.py
d90017f22a5569bd63c7e16cdef0c1500b15f203
[]
no_license
ismasanchez/robot_adoption
61c37534bc2ab2c915aa81900852cd268562bfe7
f225084648c6ca9bb702197ca79cef1e2394d451
refs/heads/master
2020-03-26T22:22:17.984601
2018-08-20T19:08:04
2018-08-20T19:08:04
145,453,079
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
views.py
from flask import Blueprint, render_template, url_for, redirect, request, jsonify from robot_project import db from robot_project.robots.models import Robot from robot_project.robots.forms import AddForm robots_blueprint = Blueprint("robots", __name__, template_folder="templates") @robots_blueprint.route('/add_robot...
1246e36e875c360058f5ef9e968f21d9da25d37d
836aa70c6db27618d6b0e76d5bd5ae3ad02472f4
/find_best_factor.py
baf8b453f59bbc7574b8be75dd49baafb032df42
[]
no_license
pletelli/EmbedViz
9171be9493d0af76e841653e4c5ae4a5c3bd47f3
9a6591320ee13720736083a49969f1c86fbba608
refs/heads/master
2021-01-19T20:21:44.350147
2013-06-05T12:34:11
2013-06-05T12:34:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,719
py
find_best_factor.py
#!/usr/bin/python2.7 from rsvd import RSVD,MovieLensDataset import matplotlib.pyplot as plt import numpy as np def findFactorsAndErrors(ratingsDataset): ratings=ratingsDataset.ratings() # create train, validation and test sets. n = int(ratings.shape[0]*0.8) train = ratings[:n] test = ratings[n:]...
f711b64a3da22b0da38684efad7efd951b6750be
6a60968d28d78aa610ea1568ea27be75188113fd
/14-11-19_pallindrom.py
041e188e24b3011ddfce740ef72bfa2e4687a982
[]
no_license
majumder-man/Python_files
c002044174c4cfe23b1dd94ee8487dfa90d37824
04c69d829100f43f1143144880d4a0ab3c290780
refs/heads/master
2020-09-07T04:59:05.636117
2019-12-15T04:30:37
2019-12-15T04:30:37
220,662,785
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
14-11-19_pallindrom.py
string1=input("Write a word: ") string2 = string1[ : :-1] if string2==string1: print("It is a pallindromic Word") else : print ("It is not pallindromic word")
03d743328d205b53c5188ac1958a1cb43e13276a
a14a1d9f625870a9066d156a1310e08bbc69e396
/Assignments/A08/old_tv.py
5de7eddfe6114c621fc830334a9879fe68739f16
[]
no_license
dcortez0817/4883-Software-Tools
5624a0f43eadac7fb3dee20bf200c098ff1053c2
c0ad065966afb9cc26113b3dc8bec94890aa60a9
refs/heads/master
2020-04-28T14:20:25.325905
2019-03-07T02:56:48
2019-03-07T02:56:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,471
py
old_tv.py
#!/usr/local/bin/python3 import sys,os os.chdir('/Users/griffin/Code/Courses/1-Current_Courses/4883-Software-Tools/Assignments/A08') from PIL import Image, ImageDraw from image_package.color_functions import color_distance import glob import random def tv_pixel(draw,x,y,rgb): x *= 3 y *= 3 red = (rgb[0]...
3535393c0922d1db761120dd47add9cfee5366a3
30917a1f400c67b48c8ef6bfaf67022628bf2d6a
/Largertable.py
2d80ab5f0faecc75b987973264a31efad663fb3b
[]
no_license
mailyathish/PGDevops
e399dc603220a51f9eca2efd66f720bba3434a75
ed146c1d07d1ec4236d13fdd5964419b7ac70f17
refs/heads/master
2023-06-17T07:12:13.720615
2021-07-11T15:25:04
2021-07-11T15:25:04
384,743,509
0
0
null
null
null
null
UTF-8
Python
false
false
3,676
py
Largertable.py
from reportlab.lib.pagesizes import letter, A4, landscape from reportlab.lib.enums import TA_JUSTIFY, TA_LEFT, TA_CENTER, TA_RIGHT from reportlab.lib.styles import ParagraphStyle, StyleSheet1 from reportlab.lib import colors from reportlab.platypus import Frame, PageTemplate, KeepInFrame, Paragraph from reportlab.lib.u...
d77bea29c7a9ac876d5e99af92c7b9a4d7e7efb7
9bc542566b5409267fb00ca9e0993cca27f46b7b
/layer/conv2d.py
14e7a30099475c054dd07c1707f59ff15c7a8b8b
[]
no_license
FateScript/numpy_deeplearning
67d40354ae9994743c24b05196fe22f83c95b303
e2bb2eac1bf82772dcf540b8120e864262e0fdda
refs/heads/master
2020-05-30T16:35:14.681722
2019-06-05T11:36:59
2019-06-05T11:36:59
189,849,189
0
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
conv2d.py
#!/usr/bin/python3 # -*- coding:utf-8 -*- import numpy as np from IPython import embed class Conv2d: def __init__(self, k_size, in_channel, out_channel, stride=1, padding=0, bias=True): self.weight = np.random.normal(size=(out_channel, in_channel, k_size, k_size)) self.weight_grad = np.zeros(sel...
ef6f55bf27982f53441215da6822cfcdc80706a5
43b6073870f3b40990d5f99cfdba4e526b441bb7
/DjangoBookTest2/views.py
5b79494f8f9fdb7cd3afea8a4a7169bc68b5c7d9
[]
no_license
YZhuAndrew/DjangoBookTest2
8ed1e0f36e241365d083044c31a673471f8aa47d
2c3e69a19c38b71ccaf6fef0934c3794384d89bd
refs/heads/master
2016-09-05T23:26:41.875192
2015-01-08T14:08:09
2015-01-08T14:08:09
28,968,773
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
views.py
# -*- coding: utf-8 -*- __author__ = 'Yun' __project__ = 'DjangoBookTest2' # from django.template import Template, Context # from django.template.loader import get_template # from django.http import HttpResponse from django.shortcuts import render_to_response import datetime def current_datetime(request): # now ...
e8226ab6be5c21335d843cba720e66646a2dee4e
8fca3e1f7779d18a0729c6910eec9cf80e6a88f4
/JAXapp/populate.py
ce420ee0f4d0f238024d7302e21442f57c0c92db
[]
no_license
pvdri/JF5-Analytics
8de7b66ed9960d8d84e7dfb89504b6da1f8013a3
7410a148a6494e6806ba02cb74241f870a619974
refs/heads/master
2021-01-19T06:06:39.987096
2016-06-05T15:15:17
2016-06-05T15:15:17
60,284,806
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
populate.py
import os import requests import sqlite3 from models import analytics, jcanalytics def populate(): url = 'https://api.clicky.com/api/stats/4?site_id=100716069&sitekey=93c104e29de28bd9&type=visitors-list' date = '&date=last-30-days' limit = '&limit=all' output = '&output=json' total = url+date+limi...
e616d14827beaa08ab08219421cbf7990cf163fd
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayInsSceneEcommerceInsureCheckModel.py
824c674242972410f7e6a918a6a53dc1ce95c41b
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
3,884
py
AlipayInsSceneEcommerceInsureCheckModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.InsureAdmitDTO import InsureAdmitDTO class AlipayInsSceneEcommerceInsureCheckModel(object): def __init__(self): self._insure_admit_dto_list = None self._partn...
c4ca4b5c77c3c912b44a4853be30298ec845c4fd
c5ce5c923eab5298a12b0e2c416e8353772fd154
/app.py
04a506f6a8fdc369c387f77f53b12a3de44ecbac
[]
no_license
Nemuun/emuu
5c6d495a54f1c70dd68eaaa1ce5a302339563580
b3b8f41818b173b2e00e1b1c851605d8ff43ed83
refs/heads/master
2020-12-21T01:42:56.147992
2020-01-26T06:15:26
2020-01-26T06:15:26
236,269,724
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
app.py
#str owog="Delger" # len()- urt # lower()- jijigruuleh # upper()- tomruulah # capitalize()- ehnii useg tomruulah # replace()- temdegt solih print(owog.find("e")) print(owog.count("e")) print(owog[2:10]) a=21 b=21 if a>b: print("a too ih") elif a==b: print("tentsuu") else: print("b to...
050e2207ac7331444d39305869c4b25bcbc53907
be8de33e48e6d5d98c8caad897cbae558f85337f
/practice3.py
2ce809a89fb977b855d43df0a9603d2004bb6e7a
[]
no_license
chizbob/ML100
35aac4ce8b5eda0bbdcda5135c73902563e97b13
a9b30cabcc0e7443376fc4abe426bdefa9c0df9b
refs/heads/master
2021-05-25T21:04:54.930961
2020-04-09T05:23:30
2020-04-09T05:23:30
253,916,020
0
0
null
null
null
null
UTF-8
Python
false
false
968
py
practice3.py
import pandas as pd from sklearn.preprocessing import MinMaxScaler #loading data from CSV training_data_df = pd.read_csv("sales_data_training.csv") test_data_df = pd.read_csv("sales_data_test.csv") #scaler scaler = MinMaxScaler(feature_range=(0,1)) #scale both inputs and outputs scaled_training = scaler.fit_transfor...
df64d769ffba8cddac34282a526122e3c941249d
a623ba768aac053d523d903a111d58bc0b79dc03
/bin/irank-export
46fb88626c819e23cc5975f9127985de315252e8
[]
no_license
afcarl/python-irank
3369939be1622e59bc45a05796c88d88b5e3a504
e23502f7f99f48c46a1c7b5e4ba68a837a352b37
refs/heads/master
2020-03-21T06:35:21.229825
2018-04-05T01:46:03
2018-04-05T01:46:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,406
irank-export
#!/usr/bin/env python import os import tempfile import shutil import math import sys import subprocess from irank.config import IrankOptionParser, IrankApp from irank import db as irank_db STATUS = 0 def main(): p = IrankOptionParser('%prog -d DEST playlist_name [playlist_name ...]') p.add_option('-d', '--dest', he...
21b295e28a7e4443ea116df1b22ff5074dca955a
ab278798c1a6ebe1c24df542074accbff858126a
/sission2/session2_intro.py
c487151dc20cb4d9e5b3a10171f52ccaf2f8c140
[]
no_license
nguyenducmanh1206/nguyenducmanh-fundamental-c4e21
475fcf5696f3496db55c42a31f2495bf615780d1
68b8b8912203f62f35c361f55cf80b8065677e83
refs/heads/master
2020-03-26T20:26:41.220184
2018-08-28T06:27:44
2018-08-28T06:27:44
145,324,091
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
session2_intro.py
n =int(input("nhap gia tri")) for i in range(1,n+1): print(i)
93737e4c409d0efb1ae2263cb60d4b03d9aad0d8
d7f91c58027f412eabb9f7f9568f9ec911377bf0
/sort_directory.py
ec12039f1690abeae23a1a5509029c154b4def82
[ "Apache-2.0" ]
permissive
PradyumnVikram/Directory-Sorter
9a8942592cef2acb7ae4f162c15c0061e3429af5
3c5887abfd545a03e8aacd59d20fde72182f9c2e
refs/heads/master
2022-06-24T03:25:37.684991
2020-05-10T18:27:09
2020-05-10T18:27:09
262,849,761
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
sort_directory.py
import os import shutil import argparse ap = argparse.ArgumentParser() ap.add_argument('-D','--dir', required=False, help='Directory to sort') args = vars(ap.parse_args()) if args['dir'] == None: DIR = os.getcwd() elif os.path.exists(args['dir']): DIR = args['dir'] for file in os.listdir(DIR): if not os....
b5611c668a40e1735c92d6d00867885023ad713f
c1c5cc7bf2e149d37bee38c777555a9ecb702a70
/test.py
abbb1e5ede0fc4ee8b9b4f51a1c2107b4b1aba32
[]
no_license
sdfs1231/algorithm
2dd77a49cc5d9686e3fc395d78207d1416f53a0c
2699e88e90dd08d128059dfa8a2dfb0b2ff23617
refs/heads/master
2020-07-29T12:45:05.238268
2019-12-04T17:22:16
2019-12-04T17:22:16
209,807,180
0
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
test.py
target=[] with open('IntegerArray.txt','r') as f: target=f.readlines() for x in range(len(target)): target[x]=int(target[x]) def f(A): if len(A)==1: return 0 else: rightStart=len(A)//2 leftArray=A[0:rightStart] righArray=A[rightStart:] B,b=count_and_sort(leftArray) C,c=count_and_sort(righA...
09f032301fa9389f6b07687e0ee13844e0b4ddf3
c9b9d457ffaad7d9a157ae8323fa357de53ba923
/fabfile/config.py
9577604c032487e4e4d137998124237bf8c53b2d
[]
no_license
mmenafra/app-control
ec492d9f27071aaa4083bfe5745f4abc50663337
b92dbbb071daaa21e6e757783756058111bf7411
refs/heads/master
2016-09-10T22:17:17.204718
2013-04-20T20:14:09
2013-04-20T20:14:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,046
py
config.py
from artichoke import DefaultManager, Config from artichoke.helpers import read, prompt from fabric.api import env, task, run import os chars = ''.join(chr(c) if chr(c).isupper() or chr(c).islower() else '_' for c in range(256)) class MagicDefaultManager(DefaultManager): def __init__(self, env): self.en...
ab93b3ba86982843dd9197dccd1862a77e234ee5
f9b0f5e0474198c184d2d37b5f31851ee0ca5c96
/Exam Review/Q6.py
afc9c995a9c7dec0c185535f774bf2fa6fb84f74
[]
no_license
Ti1mmy/ICS-201
2d4cf954152b33757dc6bb0d94f246c22d79b838
1e33fc832e5e1e0553a7d20bd2e38ddb885f623d
refs/heads/master
2022-07-09T06:49:59.953938
2019-06-12T16:55:50
2019-06-12T16:55:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
Q6.py
""" Given some string, create a new string that is a copy of the original string but without vowels. Use a loop to do this. """ string = (input('Please type in a string: ')) vowels = ['a', 'e', 'i', 'o', 'u'] for vowel in vowels: string = string.replace(vowel, "") print(vowel) print(string)
5ce74ee1d11d4f536864b759ee03fdcfb62068d4
038f501725f4435b07bbcd711c8ae1e2b9e3db92
/socialite/apps/linkedin/tests.py
cce6e56a5597f9b6666bdf97e736e26c3eec8527
[ "MIT" ]
permissive
dpnova/django-socialite
54510534271185f5f06d98462be5d5508dbd1fbb
4ec4efd43d2e54ca533143c4db1788dd6b0f896a
refs/heads/master
2021-01-17T06:56:29.882804
2012-09-09T09:06:52
2012-09-09T09:06:52
1,030,134
1
0
null
null
null
null
UTF-8
Python
false
false
195
py
tests.py
from django.test.testcases import TestCase class TestLinkedInOAuth(TestCase): def test_authenticate(self): resp = self.client.get('/auth/linkedin/authenticate/') print resp
0a5d319305c70bffe84a5b9de32ef95e941cc1db
7eea52a1e52f949076a96d707e528da14f4bbb32
/foxes/utils/plotly_helpers.py
f984beb0dc051f715631843324f638fa8ba64bf2
[ "MIT" ]
permissive
FraunhoferIWES/foxes
94a71381219aae33e95b9f0991c3c1a086248c89
65b01a4d33c40065d1b19900d8238b173700653c
refs/heads/main
2023-08-08T08:31:11.559340
2023-07-31T13:04:17
2023-07-31T13:04:17
486,452,507
14
4
MIT
2023-09-05T13:17:02
2022-04-28T05:02:11
Python
UTF-8
Python
false
false
369
py
plotly_helpers.py
import plotly.io as pio import io from PIL import Image def show_plotly_fig(fig): """ Displays a plotly figure in a window Reference: https://stackoverflow.com/questions/53570384/plotly-how-to-make-a-standalone-plot-in-a-window :group: utils """ buf = io.BytesIO() pio.write_image(fi...
55b2e78dcb34fa33bcafa6d557a7e34f647bd50e
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/CISCO-LWAPP-AAA-MIB.py
b0a29c94db5af51b3d11d0fb9fe6905b4c703561
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
44,086
py
CISCO-LWAPP-AAA-MIB.py
# # PySNMP MIB module CISCO-LWAPP-AAA-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-AAA-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:04:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
0e1616aa115a60140b1892546be9599ded280d8a
8e7dc681f8d83bc301986243c7f6dc95f90afeca
/options/19-callbacks_for_validation.py
d285152594d046941a12fb741baba502b9241fb7
[]
no_license
dimitriacosta/click-examples
4f6a1fc39018a780aec6fe554bd36b174d89704e
bdd56649bc6d6a15a660d55867ef953c1acb22ad
refs/heads/main
2023-08-17T20:18:02.098419
2021-10-15T00:02:48
2021-10-15T00:02:48
347,313,945
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
19-callbacks_for_validation.py
# pylint: disable=C0103 """ Click callbacks from validation """ import click # pylint: disable=E0401 def validate_rolls(ctx, param, value): # pylint: disable=W0613 """Validate rolls""" try: rolls, dice = map(int, value.split('d', 2)) return dice, rolls except ValueError: raise cl...
6a699b1662cb85c9c670e82c2fdeb2f73680199e
c13283faa134d15792a2fa59f07426a309b83bd9
/tests/test_hvacbuilder.py
1faf00dd4b7c75ad8d11767dc71bb90b20590090
[ "MIT" ]
permissive
santoshphilip/eppy
29b5b29a54a9132b3cd6c1f65fdc5f5ddb6ac30c
0d99f8be881e7cf998208edb5e86c0654aaf5dc8
refs/heads/master
2023-07-08T19:18:12.245366
2023-06-30T02:16:41
2023-06-30T02:16:41
6,002,572
141
70
MIT
2023-04-05T22:52:01
2012-09-28T20:17:52
Python
UTF-8
Python
false
false
25,396
py
test_hvacbuilder.py
# Copyright (c) 2012 Santosh Philip # ======================================================================= # Distributed under the MIT License. # (See accompanying file LICENSE or copy at # http://opensource.org/licenses/MIT) # ======================================================================= """py.test fo...
d4d07fbd63f776c112deb07a72bd3ab958fef48c
50a06da34fd4eb2d6295f217c7f8df4972bb4757
/tools/ConvStorage/scripts/recreate_database.py
a736ba419841f3209e171163bc90cb69c4a5c40d
[]
no_license
dormouse-jenny/smart_parser
4ef05b6e392e5d7dc0d0dd887712a11038c810d1
1954822935ab9154edbdee8d000442758604a731
refs/heads/master
2022-12-05T21:32:26.655260
2020-08-20T05:28:17
2020-08-20T05:28:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
recreate_database.py
import argparse from ConvStorage.conv_storage_server import TConvertStorage import logging def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--input-folder", dest='db_input_files', default='db_input_files') parser.add_argument("--converted-folder", dest='db_converted_files', default...
7cb7e195b100c0073f6688bd43221ed42b3c27f2
74e30f17f31ad87c474867f891189240f2023ebc
/Clustering/code.py
218b02a432cf344db079a7a48ff5f7c53c1e075f
[ "MIT" ]
permissive
nish700/ga-learner-dsmp-repo
60c8f4a6f2d5046b5b8804e7405acb77bed05d9e
b1618be5bede8002161e6c19ff9ce092e6ca8455
refs/heads/master
2021-07-15T01:34:30.068290
2020-08-31T12:50:40
2020-08-31T12:50:40
204,426,718
0
0
null
null
null
null
UTF-8
Python
false
false
3,304
py
code.py
# -------------- # import packages import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # Load Offers offers = pd.read_excel(path, sheet_name=0) # Load Transactions transactions = pd.read_excel(path, sheet_name=1) transactions['a'] = 1 # Merge dataframes df = pd.merge(lef...
d80951a02e66f15a03757daa46a5d424dfa393f0
b50c35421bd3533c8e0544f2c5c8774b541ee764
/binominal tree by list.py
56ad5b0f208830cd2c40a63d87c6175ac4223fbe
[]
no_license
ithelga/OptionMonteCarlo
a7559c704115ebfe7342fc29e69cb6befe17902d
77f2080af560c7730fd641e6d17c86694f09c6d2
refs/heads/master
2023-04-07T00:43:46.988470
2021-04-19T13:03:32
2021-04-19T13:03:32
359,461,844
0
0
null
null
null
null
UTF-8
Python
false
false
983
py
binominal tree by list.py
import time from pympler import asizeof import random start_time = time.time() N=1000 total=0 def calcut(s, c): list = [] list.append(s) prcUp = random.uniform(0.08, 0.12) p = random.uniform(0.4, 0.7) prcDown = random.uniform(0.07, 0.1) for m in range(c): next = [] for i in ra...
6c377f59c9d8a29aa149df47bf6ecde95f7824d0
553f5ed7d9252d5d16932e0d651465bc543b6900
/general_com.py
b0612b0b9dcc8b2f994fec570bca5ebd052f880f
[]
no_license
IsaiahSama/Isaiahs_parade
372142c334c3d230b2c52893c6bc1b34eaaff1da
7e152faa4c06f25dd5e00221577a9bd02c4a99b3
refs/heads/master
2023-07-26T19:39:09.131215
2023-07-26T13:49:34
2023-07-26T13:49:34
286,758,330
0
0
null
null
null
null
UTF-8
Python
false
false
14,387
py
general_com.py
import discord from discord.embeds import Embed from discord.ext import commands from random import randint import asyncio import random import math class afkuser: def __init__(self, user, id, guild, message): self.user = user self.id = id self.guild = guild self.message = message ...
0b1c9dc0eef0951ba28cc30bbcc597ccb1e83307
207d587bd9c233d0a653c555c45542cabd48ac38
/old versions/testcode_forvsstudio.py
9ee3998f7efc17e8ff263f669123c4998bd1e9f7
[]
no_license
cutiebananaface/Thesis-code
d2bc9f930527884c2ff08f3a2210e6fe2b2f136b
b74535a199d5bf5e529d7a718a105b9b11c1b527
refs/heads/master
2022-11-23T06:35:35.908722
2020-07-31T23:49:33
2020-07-31T23:49:33
267,811,806
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
testcode_forvsstudio.py
import numpy as np import pandas as pd arr = np.array(['hello', 'world']) series = pd.Series(arr) print(series)
854261eb8821bdf4eab6f03da031f96cc12a3b43
71e70b6d0b7e70582aa955a8ba7950f2b5b85d0d
/Analytics and Data/Model_Training_Files/ModelTraining_RANSAC.py
6f2844465365f27e08c9cb040028148a3bcb52e2
[]
no_license
ryan-gr/predix-renewable
693b9784a8e2f8c42283a12e46c4e444d1af7a9f
f90c33da0fa7444b2901719c1600192e7b175096
refs/heads/master
2020-03-27T19:06:37.892248
2018-09-16T10:00:43
2018-09-16T10:00:43
146,966,116
0
2
null
null
null
null
UTF-8
Python
false
false
1,096
py
ModelTraining_RANSAC.py
#alternate reg using RANSAC, doesnt work as well from sklearn import metrics from sklearn import linear_model from sklearn.model_selection import train_test_split import pandas as pd import numpy as np import pickle df = pd.read_csv('../raw_data/DataPredix.csv',index_col=0) DataForAugust = pd.read_csv('./DataPredixFo...
7d6c83e7d1d8909bf08e1fcc2d4ba8c72a205617
20fd93736273f9905d95bc5bc07102a8c31ccacd
/demo/training_graph.py
628821de581ad24a6be878831f3924735ba6c5bc
[ "Apache-2.0" ]
permissive
MaxInGaussian/ZS-VAFNN
df6fac08052178c498459d5f1798a5bc8b0df4e7
d80846248eb244adf3c56560b15155d1682550cc
refs/heads/master
2021-08-24T05:01:56.054737
2017-12-08T04:14:17
2017-12-08T04:14:17
107,205,647
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
training_graph.py
''' training_graph.py ''' import numpy as np import tensorflow as tf from SGPA_graph import build_SGPA_graph from sklearn.neighbors import KernelDensity ## Computation graph for training def build_training_graph(layers_width, n_basis, learn_rate, Y_std): n_samples = tf.placeholder(tf.int32, shape=()) X = ...
c892d6063ecb012fb9f5f51e4b13f700dc37c526
4b7bebcf64d565359c2ad9ce3fe1fda6330cb127
/emmet/vasp/topology_summary.py
f30ed7aa77db116ab05b01caa4992931e1a4c940
[ "LicenseRef-scancode-hdf5", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
montoyjh/emmet
59c9e6be794ae899fba972bce4995f3a429607d0
d7b8eeae6d1f3f4a250b9d46bb6e3e4a3ae00533
refs/heads/master
2020-07-09T19:53:02.360492
2018-05-15T20:01:48
2018-05-15T20:01:48
94,261,165
0
0
null
2017-06-13T21:50:00
2017-06-13T21:49:59
null
UTF-8
Python
false
false
6,092
py
topology_summary.py
import numpy as np from pymatgen.analysis.graphs import StructureGraph from maggma.builder import Builder from maggma.validator import StandardValidator __author__ = "Matthew Horton <mkhorton@lbl.gov>" class TopologySummaryValidator(StandardValidator): @property def schema(self): return { ...
cfb4a28d4f0ed26e6e56cd2033c335eee75c0ff0
7722718c0e8d07a712e41c0310a9990144428333
/upper_body.py
59453aa705693cedef03902184100e4929e8c486
[]
no_license
vaibhavgeek/smartmirror
dfdf30a1dfa8316c812b53d2ef64220eef0b0f93
f968fdff2ad4f4f890da409f22d74caa5beb8b10
refs/heads/master
2020-04-16T06:35:48.374311
2019-01-13T11:53:28
2019-01-13T11:53:28
165,353,736
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
upper_body.py
import cv2 import numpy as np # sys #simple upperbody detection imgPath = input("image_path") cascPath = "haarcascade_upperbody.xml" # Create the haar cascade upperbodyCascade = cv2.CascadeClassifier(cascPath) img = cv2.imread(imgPath,0) upperBody_cascade = cv2.CascadeClassifier('haarcascade_upperbody.xml') arrUppe...
20e13cf4058aa4c1587842751c22d7003dfa3659
8015f1c62a2cb4efd21aa8938336913bf8117868
/bamap/ba3758.pngMap.py
0b7eba8f55622c9b19bcc242a1502b6d3ecf9edd
[]
no_license
GamerNoTitle/Beepers-and-OLED
675b5e3c179df0f0e27b42bf594c43860d03b9af
afe1340e5394ae96bda5f9022a8a66824368091e
refs/heads/master
2020-04-20T00:09:47.122471
2019-04-29T04:59:35
2019-04-29T04:59:35
168,515,579
4
2
null
null
null
null
UTF-8
Python
false
false
8,468
py
ba3758.pngMap.py
ba3758.pngMap = [ '11111111111111111111111111111111111111111111111111110000000000000000000000000000000000111111111111111100000000000000000000000000', '11111111111111111111111111111111111111111111111111111100000000000000000000000000000000111111111111111100000000000000000000000000', '1111111111111111111111111111111111111...
2102b62e52f23640664bf07fadf7b82b0ee292f6
2e5bda2c9812cd1669ba990762fd96dfc358940e
/Organization/Scheduler/Scheduling.py
5f72a422f221da7b139e9cdd9cc9b50828c5cc1a
[]
no_license
mj-bvtc/pythonTest
4fe66bdce084d241f2b2b7897bbe428c502fa08d
310d3b7941529f3220be26270f97d48fe9dcb884
refs/heads/master
2021-01-22T18:15:14.349797
2019-12-06T17:07:06
2019-12-06T17:07:06
85,069,109
0
1
null
null
null
null
UTF-8
Python
false
false
1,012
py
Scheduling.py
class Task: """A clear objective with a start and end date""" def __init__(self, title, objective, start=None, end=None, duration=None, complete=False): self.title = title self.objective = objective self.start = start self.end = end self.duration = duration self....
ff30328b97c994a4461d57c08fa088eddd3695a6
32e2c18eae22c0693d54c99aa8c500855c6961ed
/13.py
e01a331f7784832d4819e38f68070ec51c0f2bdb
[]
no_license
gbw-ops/gbw-ops
5051a31d160b71a0afc860dcf35a7efcc7a67e1b
f5fcba8af9ac1f17c3761bbbe7fc15e08e02a72e
refs/heads/main
2023-07-17T16:26:57.180400
2021-08-28T03:46:12
2021-08-28T03:46:12
328,089,289
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
13.py
print(251 + 394)
b136628a5d35cc6ad057d812c8218258900647ae
fb0e7bf333ad1e220bde6691750e40c036443e9e
/QA_IRIS_automation-master/Python_Data_Discrepancy/Scripts/Obselete_Scripts/Institution_profile_hedge_fund.py
67777ddab8a86164b98b881fa9c3f2107c196fa0
[]
no_license
EricOQ4/QA_IRIS_automation-master
3c0cf05cf4fd7139bcf5bb253d1ad5bc3362e57f
cd7ecca1a5dcaa20ef03983cc6a7365459806347
refs/heads/master
2021-06-30T05:58:48.822771
2020-02-10T15:42:44
2020-02-10T15:42:44
239,547,884
0
0
null
2021-06-15T16:03:45
2020-02-10T15:42:20
Java
UTF-8
Python
false
false
2,299
py
Institution_profile_hedge_fund.py
""" Checking if the all the institutions in the Hedge Fund list match as Hedge Fund """ import pandas as pd import requests import ssl import json import sys import pymongo from bson.objectid import ObjectId ssl._create_default_https_context = ssl._create_unverified_context def main(argv): data = pd.read_csv("../Ex...
a6f8329aec0d0445e00dbc853223e11388c98002
2c2fbf9183644ab043c2394766ad60d04a587afb
/raspi_mon_sys/Utils.py
c995864c40c2e0ba60bf9ccf12fea4451894dc0e
[ "MIT" ]
permissive
pakozm/raspi-monitoring-system
1138b2b606d34b54e073741f0946cace43cc2fd1
193bf370186c8178dcc1954ee122258b0af4b35c
refs/heads/master
2021-06-06T08:14:11.739445
2016-10-23T16:31:02
2016-10-23T16:31:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,597
py
Utils.py
#!/usr/bin/env python2.7 """Several utilities shared between different modules. This module uses /etc/default/raspimon_auth to get a MongoDB connection URI: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] """ from email.mime.text import MIMEText from uuid im...
3374b30f78532054ce9e17c8a3690169fdd4229d
08983fc47e24d224ed38a0f257078b2dc2faa55f
/Projects/FirstNN/MLP - Copy.py
199a7c934f75faefd910a323c41726aa289751fe
[]
no_license
vanyamil/PersonalLibraries
b272c1e98eb2f0b338767f7408a4bfb88ad15d3b
ac4f8bc2e3d8c669efca8d75705592b4d8c18de6
refs/heads/master
2023-04-25T23:45:07.845800
2021-06-05T15:40:45
2021-06-05T15:40:45
110,909,305
0
0
null
null
null
null
UTF-8
Python
false
false
5,123
py
MLP - Copy.py
#Built for HackerRank's 'Office Prices' challenge import numpy as np from time import time from numpy.random import random as rndarray class RegLayer(): def __init__(self, numInputs=1, numNeurons=1, actType="sigmoid"): self.weights = rndarray((numInputs+1, numNeurons)) self.size = numNeurons self.setAc...
069c081991874888abd6d8cefce523c3469e6b87
c4a8ae8dc7a1ca947e50b13a5b06d470680c44d3
/TP4/Ej2/hh_test.py
b05d068b15fbd153e4157e39a8c86be8188de6e6
[]
no_license
AlanVek/TPS_MN
a2028939a747d032f8326f87734ed518abfbfd0d
082feef16e69e4e49e74f422d4ab1ac90b27caad
refs/heads/main
2023-06-04T17:58:17.760300
2021-06-28T23:39:09
2021-06-28T23:39:09
351,918,479
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
hh_test.py
from Ej1.ruku4 import * from Ej2.Hodgkin_Huxley import gen_hh import matplotlib.pyplot as plt def plot_hh(v_0, n_0 = 0, m_0 = 0, h_0 = 0, i_0 = 0, delta_t = .1, t_f = 200): i = lambda t: i_0 t_0 = 0 x_0 = [v_0, n_0, m_0, h_0] HH = gen_hh(i) t, res = ruku4(HH, t_0, t_f, delta_t, x_0) v, n, ...
4f1df0688cf60612940ba527a93f904bde0c46ac
9542df5e5dae74b81ff9ee928ea5bc49cfa645a6
/app/exceptions.py
2fc4613b17f32c893a9c6da232946f95869ee793
[]
no_license
aaaandrzej/CV_Editor
6503c5d00fa76ac70404d5cc44c09658c3d578fe
30c0ea978ee44645c4e408a92c09e4c4d360fdd1
refs/heads/master
2023-02-23T14:43:30.407640
2020-11-09T11:50:45
2020-11-09T11:50:45
249,537,900
1
0
null
2023-02-08T00:00:13
2020-03-23T20:32:45
Python
UTF-8
Python
false
false
139
py
exceptions.py
class ExpiredTokenError(Exception): pass class InvalidTokenError(Exception): pass class MissingTokenError(Exception): pass
90c0b14381fb0e2d72974512ce0c5fb45d3744de
123fff3eca7cdfd3788db73f32bd2cff5b185f04
/election/views.py
4226e9c760b00090cfbbacb2c809ecfa69b5542a
[]
no_license
sherrywilly/DPL-election-app
681d16446dfca85cca5ab7dbe1f4ee098db79a7a
8f09feeeb46262c335098b040552696f56ba1a2f
refs/heads/master
2023-08-01T03:43:05.729135
2021-09-17T12:53:37
2021-09-17T12:53:37
407,539,669
0
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
views.py
import json from django.db import transaction from django.db.models import Count from django.http import JsonResponse from django.shortcuts import render # Create your views here. from django.views.decorators.csrf import csrf_exempt from election.decorators import auth_user from election.models import Vote, Candidat...
858fbcaf353b724dcb84713a01c03e9c5b0100d5
e46e203c2079abcb14db92fe06b2857ea1420584
/app/cui/rss_config.py
79551bb9472e93218eb08487ee1a3d6fb2f3f025
[]
no_license
Heersin/ruadar
1994fe00d6b7e2ec241b01fd60b95c7747db8be4
07428addf9cc3f0ab0c35fcb72c7749dd2690923
refs/heads/master
2022-04-24T18:11:06.016794
2020-04-18T03:46:48
2020-04-18T03:46:48
256,663,924
1
0
null
null
null
null
UTF-8
Python
false
false
142
py
rss_config.py
rss_file_path = "./app/cui/contents/rss_list.txt" store_dir = "./contents/" rss_list = "RuanYiFeng|%|http://www.ruanyifeng.com/blog/atom.xml"
6ce5cd33ec98d39fd7b5a99413024b3628a417e4
481641e0179b5d416a7c48481455874767ae2575
/Valid Anagram.py
b3e4087a9d613da3b32cca4fa717c1ffe7fb450b
[]
no_license
nixonpj/leetcode
776dad03a9de43a8c046b1ea1bbb3dd5e9f256ca
de756337b11e578e25f6d0cc0c70a22ae0b8fdc5
refs/heads/main
2023-05-01T11:38:44.530120
2021-05-17T15:13:16
2021-05-17T15:13:16
304,484,517
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
Valid Anagram.py
class Solution: def isAnagram(self, s: str, t: str) -> bool: counts = {} for char in s: counts[char] = counts.get(char, 0) + 1 for char in t: try: counts[char] = counts[char] - 1 except KeyError: return False res = ...
589d8ebd4309db8b06d00e910d6fe7da6eaf33f7
efcbead704616292065b663b305ce410e0c56bfa
/certify/models.py
780176ee920e689af4d69b2c699e17d1b4c28517
[ "MIT" ]
permissive
benrpinto/ausimin
e117ddc61dd9495182de087114308d2a1d9e602a
37d9879a729f637ff03d030168904737fd415776
refs/heads/master
2023-04-28T17:02:24.002852
2021-05-23T03:30:32
2021-05-23T03:30:32
283,147,176
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
models.py
from django.db import models from home.models import FeatureContent # Create your models here. class CertifyHeader(FeatureContent): pass class CertifyContent(FeatureContent): pass
567c47f639f556e82c2d29c0f630fad5f0beeb4d
193d45b86dd85d4f64e531ab781f0ad60524003c
/calc_compiler.py
e1f5222dd84208b6377fe6eaee0527e49ee289ad
[]
no_license
wsg36236/calc_compiler
1a3d701f9fbdfc044bd058aba12ef11475258f3f
5c9708acb9e4676112b7a6ad1bd05b0237bc74e5
refs/heads/master
2020-08-22T05:19:09.523486
2019-10-20T10:56:21
2019-10-20T10:56:21
216,325,485
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
calc_compiler.py
#!/usr/bin/python # -*- coding: UTF-8 -*- ############################################################### # # This script is used to # Version : 1.0.0.1 # usage : # # ############################################################### import argparse import sys from logging import basicConfig, DEBUG from calc_syntax_tre...
d5694ed235a19f1f6cdf66ecae47ade392b20313
bea1dd0c508af776cb1717813ae72faaed2c17af
/Python Code/Violent Python/SSH Bots/nmap_nomad.py
b4df006ad6c81a13acf0dfed1c64434036005a4f
[]
no_license
sahle123/Personal-References
b34683dcfea84ebe7c2cbbd0e7abb1e7b5a3b5ff
9bd615a6356f1f8c3eb34a326496ad611d06cf3d
refs/heads/master
2020-12-11T17:08:11.423090
2017-02-14T10:17:52
2017-02-14T10:17:52
43,253,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,168
py
nmap_nomad.py
# nmap_nomad.py # # Des: Port scanner that uses the Nmap module for # the actual port scanning. # Status: Functional - WIP # # Ref: Violent Python, TJ O'Conner (Modified) # # LU: 12/23/15 import nmap import argparse def nmapScan(tgtHost, tgtPort): nmObj = nmap.PortScanner() nmObj.scan(tgtHost, tgtPort) state...
867650bd7804e17d95c0f54307a6256026a4095c
ce910ae2233dd4303192bffcc87461180b6101ed
/Id97Demo/spiders/Id97Index.py
184f18e3cb380c3edc84c3c5e721dea649f8292d
[]
no_license
thornbutterfly/Spider_Movie
d9585fe7bfa16d847a843aa0067944de4478ba2f
08d3903aa533ae2680cfb2c183452a1e53938e03
refs/heads/master
2020-03-28T22:49:20.339137
2017-11-27T08:30:47
2017-11-27T08:30:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
Id97Index.py
# -*- coding: utf-8 -*- from scrapy import Request from scrapy.spiders import CrawlSpider from scrapy.selector import Selector from Id97Demo.items import Id97DemoItem import re class Id97Movie(CrawlSpider): name = 'id97' host = 'http://www.id97.com' allowed_domains = ['www.id97.com'] start_urls = ['ht...
95f01ffb99af366686d0d3c27303360a715e5b76
1df35c541e4dff07c57598937ace4837f309372f
/wechat/page/test.py
daef83f287af1b80e654db571a36119255e907eb
[]
no_license
wagchu/FlaskProject
fe1823f0c078df54adae15064e3e08d410f7b604
e122ff934a694af8c83bc84e54c032a2d61e1123
refs/heads/master
2021-01-21T11:56:50.751249
2017-05-19T06:07:41
2017-05-19T06:07:41
91,766,205
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
test.py
import requests from random import randint from lxml import etree from flask import Flask, request, make_response import hashlib url="http://www.qiushibaike.com/text/" print("here1") r = requests.get(url) tree = etree.HTML(r.text) contentlist = tree.xpath('//div[@class="content"]/span/text()') jokes = [] #print("here...
c22912e9f1214050733c3d7d86999ad9180cf933
0464e5ea665a4dc21a40f74e544d9ced01161bd1
/jira/create_jiras.py
a9e160c07ddc02264b34bd6168e0ed3139fcc85f
[ "CC-BY-4.0" ]
permissive
cc10512/swdevelmodel
51d129a4ae4f3bf8f0ecb8ca07cc337e9aec70c4
9d992688ad82063a9a1c0aea17e37ca54e37ad0a
refs/heads/master
2020-12-15T16:56:47.858190
2020-02-15T23:13:36
2020-02-15T23:13:36
235,186,462
0
0
null
null
null
null
UTF-8
Python
false
false
4,446
py
create_jiras.py
#! /usr/bin/env python3 import logging import subprocess import shlex import traceback import json debug = 0 issues = { "issue summary": "issue description" } logging.basicConfig(level = logging.DEBUG) apiToken = "..." credentials = '"cascaval@barefootnetworks.com:{}"'.format(apiToken) def runCmd(cmd, logg...
12b7262159815e5b0fe6e4eff8d7f12c8f8c6c8c
4784d0c918a75a1e0909ea329d724a18d63b1275
/converters/__init__.py
87dd3597162b1f373c3d87b9f1dffa1d5cce0ac6
[]
no_license
billyninja/manga_feed
84d3a613df2479fb372ea04cb795c3e71df1099b
5f506bc74c665f8ba77843a167162cf78d4b5b4e
refs/heads/master
2016-09-06T11:03:01.464025
2014-12-06T19:42:24
2014-12-06T19:42:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
__init__.py
import sys sys.path += ['/home/ventures/', '/home/ventures/manga_feed', '/home/ventures/manga_feed/converters', '/home/ventures/manga_feed/tests'] print(sys.path)
68734126a44006a367d33fa9f57f4ada63d9016e
09aa87c3b9dfcc8862551e8e8e0945290afd8bb7
/answer/287.寻找重复数.py
d7843d7a1b0a37f5f76b46b91d34e2bbd1ffc192
[]
no_license
mecthew/LeetcodeTop100
0e159aa39978298d9924d152aac95acff31f7b82
50b4fea1b0c1e359fa373f0018961ae5eb261034
refs/heads/main
2023-06-28T01:12:05.356273
2021-07-31T11:49:20
2021-07-31T11:49:20
352,072,603
5
0
null
null
null
null
UTF-8
Python
false
false
635
py
287.寻找重复数.py
from typing import List # Medium # 要求O(1)空间复杂度,这里有个前提是num \in [1, n],长度为n+1 class Solution: def findDuplicate(self, nums: List[int]) -> int: ans = -1 left, right = 1, len(nums)-1 while left <= right: mid = (left + right) >> 1 cnt = 0 for num in nums: ...
bcc99e55bbb2c6c0e5d5cddbd03fa64af65612f5
39db296ad715c7ab8d57547d6014364ed903ba95
/predictor.py
fda3bf352d8f58802acb263e2278222c6600edb9
[]
no_license
RamziAgou/BDAProject
af5fdb1835c3b8b8a6efe4eef91e881e20d1f00c
060878c11812bb71ed50726c19789b11aeee44dc
refs/heads/master
2023-02-05T05:25:22.165700
2020-12-30T22:21:03
2020-12-30T22:21:03
325,617,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,743
py
predictor.py
import sys, os, re import findspark findspark.init() from pyspark.sql.functions import col, udf from pyspark.sql.types import * from pyspark.ml import Pipeline from pyspark.ml.feature import HashingTF, IDF, IDFModel, StopWordsRemover from pyspark.ml.classification import RandomForestClassifier, RandomForestClassificati...
d8794dbeaedf16eaafdf0f517060bf30b3ddd187
904c8f7a29b2466687046181a66333fa7487bad9
/player_class.py
a60c103f597d93bd4d882bb844e48cf1ca441d0d
[]
no_license
TeaCup404/Snake-and-Bitches
232e5fe817d2e6547e828e9f6bbdcdfc47f5407d
c74ba3c2b3a1424a26e6b93f932fc1f3ff376ba4
refs/heads/master
2022-01-05T06:04:33.652678
2018-06-12T07:52:18
2018-06-12T07:52:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,482
py
player_class.py
import pygame import socket import select from Tkinter import * import easygui import random import time class Player: def __init__(self): pygame.init() self.Username = "" self.places = {} self.Players = {} self.master = Tk() self.entry = None ...
6e42f397220d8176158a13a0a158f81361fd6a38
01d25e7a54e2550fe7ee3cc5239b2c9764f1dcce
/cat.py
cbc994f49ef5539d500dcd55d7622384fea8b9f7
[]
no_license
luoluoxx0115/python_oop
5b85dfbb2f1e3b66efc002bf2093ca101f47a866
6395fe2fa7139a03adb77e50c3be6fc83348c7c2
refs/heads/master
2023-03-02T22:07:41.169689
2021-02-14T09:04:12
2021-02-14T09:04:12
338,509,093
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
cat.py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ @Time : 2021/02/13 14:00 @Auth : luoluo @File :cat.py @Description: 重写父类的 Animal 的__init__方法,继承父类的属性, 添加一个新的属性,毛发 = 短毛, 添加一个新的方法, 会捉老鼠, 重写父类的【会叫】的方法,改成【喵喵叫】 """ from pyton_oop.animal import Animal class Cat(Animal): def __init__(self, name, color, age, gender): ...
b3ed7014c049f0ad6ab4d7a52f73bfa5ae3f1443
4f4631bc9fac672badb5e98d0f8907b2eb56266b
/test/functional/feature_fork_choice_parallel_justifications.py
d22fc5cf08e95c980d3da21663cf3ab5eb612454
[ "MIT" ]
permissive
Ruteri/unit-e
28e4b0a9bf2cc5518ed6a9fb79191419d51db67b
d3d12508b915986841bd19c4dee9e50dd662a112
refs/heads/master
2020-05-15T04:32:21.220451
2019-04-17T16:25:03
2019-04-17T16:25:03
182,087,190
0
0
null
2019-04-18T12:51:34
2019-04-18T12:51:34
null
UTF-8
Python
false
false
16,250
py
feature_fork_choice_parallel_justifications.py
#!/usr/bin/env python3 # Copyright (c) 2019 The Unit-e developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test fork choice rule between parallel justification forks The following checks are performed: 1. node re-orgs t...
a4046103bef39eba33bd2d0c219138cf886b8649
0260f18ba0e719f3de691f380653d96bf987c126
/VRBApplication.py
4c9c72b958734fe0b9b5bb7af539a940b7cf896c
[]
no_license
inf0mike/module_1
b3f2f8f1d16d5e935f01b5c4d3c0bbc48d604565
c58c3f86131bbab23b30734b117e4076ddb8da45
refs/heads/master
2023-07-01T15:03:34.394540
2019-11-01T09:40:44
2019-11-01T09:40:44
391,623,658
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
VRBApplication.py
# Sports Village Registration and Booking System # Prototype for Membership management # Copyright 2019 Michael Stuart <mike@inf0web.com> # Part of MSc Software Development 2019 from vrb.gui import * import wx if __name__ == '__main__': app = wx.App() frame = ManagerUI() frame.Show() app.MainLoop()
62203e360e4247600301ef7b421328de9438d83c
7794857eaedc7a8bfabb766c0908b0d9d5a45519
/a2/calc.py
9781d1c21fcfc1bd56c33cdd0c4789e4f3a92ef2
[]
no_license
AlRasheed/CS265
e8f70ddd122491eb5a224e0722d02bc8fa045a23
5fd4e448e83866d28d1d7550fe03e741ad9334d3
refs/heads/master
2020-04-11T02:59:26.338086
2013-07-28T14:36:27
2013-07-28T14:36:27
20,338,289
0
1
null
null
null
null
UTF-8
Python
false
false
2,225
py
calc.py
#!/usr/bin/python import sys file = '' def main(): if len(sys.argv) > 1 : file = sys.argv[1] fh = open( file, "r" ) for line in fh : line = line.strip( "\n" ) line = "( " + line + " )" print line postfix = infix2postfix( line ) evaluated_postfix = evalPostfix( postfix ) print ' '.join( post...
7e663921a5978a45b93681ebd83e4dc862b84425
11e1be54f893050e5e4e7e9058a741902de6853d
/main.py
abd3db70ad8b99f2dd3ba43e2c3fd6d7d1a755a0
[]
no_license
statistics-exercises/central-limit-theorem-4
4738f18294752bbf127fc6b89c166a11ef386355
88010d48d858281abc679bf578b9a6df08663739
refs/heads/main
2023-01-06T15:34:25.841523
2020-10-31T14:00:14
2020-10-31T14:00:14
308,892,371
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
main.py
import matplotlib.pyplot as plt import numpy as np def normal(mu,sigma2) : # Add code to generate a normal random variable here expectation, variance = 1, 0.5 indices, svariance = np.zeros(200), np.zeros(200) val = normal( expectation, variance ) n, ssum, ssum2 = 1, val, val*val for i in range(1,200) : # Add ...
376aa40b82bf341498ce5e0be0d2a872e96e86ec
8f410ad83ef085d2c00ce62ea346cce451548866
/highlow.py
d2b84f76b8f006afd0f3dc0c7dc2eff5e04bcaa0
[]
no_license
Xancett/RandomPython
a7c17909f8a22b5b304aab75cb658556a837ab2b
b2dfae8256b00a39e8bdb7fcde02ff49f35bc6b1
refs/heads/main
2023-02-27T13:25:00.530197
2021-02-09T14:28:59
2021-02-09T14:28:59
337,430,362
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
highlow.py
import random def PlayGame(): turns = 0 number = random.randint(1, 101) while (turns < 5): guess = int(input("Enter a guess: ")) if (guess > number): print("Too high") if (guess < number): print("Too low") if (guess == number): ...
f5f18c67cdc961347597f4e13aad74bf75a46ada
77a3bfde9c7d8c16b52081bc11a7cade75e971a8
/stestr/repository/abstract.py
c992c4f9d89271efcd2608bac09ebe378dbb05d1
[ "Apache-2.0" ]
permissive
mtreinish/stestr
8fcbe90564212deae8a3f5778920aad925819f5a
d24afcaf5e9a9677a47a4968e99067496e81ef86
refs/heads/main
2023-08-03T19:25:01.604076
2023-04-07T21:38:19
2023-04-07T21:38:19
74,060,146
25
42
Apache-2.0
2023-09-07T23:01:16
2016-11-17T19:27:58
Python
UTF-8
Python
false
false
7,794
py
abstract.py
# 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 applicable law or agreed to in writing, software # distributed under th...
abe49386ffeb6db4bdbbdc9bbb169e7a1e208393
32150af04590afe11f5c1229faf840e2e8c2a9ab
/Old Materials/Additional Github/Amitdeb008/IIT-CS584-Machine-Learning/Assignment 1/Solution 1/assignment1_Bhattacharya_Amitdeb.py
940ed8185e31095bbd6d59f041056c6fff84cce8
[]
no_license
nsbgit/IIT-S21-CS-484
f595f67dd72e0c0f65f9cbaafe581ab41ea4cab3
1850f0e571d0c72d875baedf87aae3d6943af382
refs/heads/main
2023-05-06T23:26:30.687201
2021-05-31T23:40:22
2021-05-31T23:40:22
332,584,584
2
1
null
null
null
null
UTF-8
Python
false
false
10,669
py
assignment1_Bhattacharya_Amitdeb.py
#!/usr/bin/env python # coding: utf-8 # In[88]: #importing required python libraries import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt get_ipython().run_line_magic('matplotlib', 'inline') # In[90]: #importing given datasets fraud_dataset = pd.read_csv("C:\\Users\\Machin...
c4315e268c135b69e14a2f4cb92d20292c2f7955
7ce544a765666d290cbbf13394f93fe753a16284
/seguimiento/migrations/0011_auto_20170107_1846.py
58ea86ab622eeed03ce314e4de25293da929dd25
[]
no_license
llovizna-labs/elcinaro-backend
57ef6bf5616988bad97d73f460c65dd2fe5ea76a
a037bb25a366368d0c836687d71abed8a027124c
refs/heads/master
2020-12-28T21:40:07.623458
2017-03-24T23:32:16
2017-03-24T23:32:16
68,340,646
0
0
null
null
null
null
UTF-8
Python
false
false
1,297
py
0011_auto_20170107_1846.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2017-01-07 18:46 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('seguimiento', '0010_auto_20160915_2238'), ] operati...
8af42eae5a6c70c48452df713b612d448777c86a
2a341178a7a204cc686c1529d2e9d4e810f53d0c
/week16/simplePlot_ubu.py
9e5c8bec0fd8d9d5740f85066a71c80fe36438c4
[]
no_license
AsterioM/FabAcademy
7163322b9501fdc26db159a4d20cddbe49cfe293
df3820e219b2e6c0d61ea7c35b9568954a95a08b
refs/heads/master
2021-01-25T05:57:32.686349
2018-02-10T16:54:41
2018-02-10T16:54:41
80,715,419
0
0
null
null
null
null
UTF-8
Python
false
false
2,357
py
simplePlot_ubu.py
import serial import matplotlib import matplotlib.pyplot as plt import time import numpy as np def plotea(): xdata = range(101) # get serial port connection ser = serial.Serial("/dev/ttyUSB1", 4800) # create the list to store data dataList = [] print(len(dataList)) while len(dataList) < ...
94135b4ea3a6de7d4b90ef1793a3ad3fd3afc5d8
48ca6f9f041a1e9f563500c8a7fa04dbb18fa949
/tests/core/test_infer_ftypes.py
56dd60eab479df2fce13b2a3c065a91ccdd5b9a9
[ "MIT" ]
permissive
bogdanvuk/pygears
71404e53d4689ec9cdd9db546bfc0f229a7e02da
705b11ab6de79868b25753fa9d0ce7128791b346
refs/heads/master
2023-07-08T11:38:54.625172
2022-03-07T12:29:00
2022-03-07T12:29:00
124,890,922
146
16
MIT
2022-08-15T07:57:08
2018-03-12T13:10:06
Python
UTF-8
Python
false
false
3,406
py
test_infer_ftypes.py
from pygears.typing import Int, Tuple, Uint, Queue, Any, Array, T, Number, Maybe from pygears.core.infer_ftypes import infer_ftypes def test_simple_deduction(): params = {'din': b'T1', 'return': b'T1'} args = {'din': Uint[2]} params = infer_ftypes(params, args) assert params['din'] == Uint[2] as...
48de02c7f4cc0c4dcc544070238140b7a2943e50
bae76a8e1d2fdefdd660f44b770ddbdb8184d682
/check_item_page/item_page.py
060b4b55cd9eab5236b34bb2814f6c331d4b6999
[]
no_license
a-chernyshova/selenium_test_practice
0024f32d1022bfb6f1fbdb87ae99b907a6dffa7c
927b99e9a43f6e453348f9cd1db67d9e59b003bf
refs/heads/master
2021-06-18T07:52:10.098499
2017-07-07T20:02:07
2017-07-07T20:02:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,391
py
item_page.py
from selenium import webdriver URL = 'http://127.0.0.1:8080/litecart/en/' def find_items(browser): page = browser.find_element_by_css_selector('div.middle') elements = page.find_elements_by_css_selector('a.link') return len(elements) def parse_color(color): # rgba(204, 0, 0, 1) - make list to compa...
2e49e2779e67a8c8b389ee331c9b670048ab383b
2937f5eb0152ac2429557368be63b8540cff6660
/venv/FindDirected.py
cce01f0afa1a009b6d2f4411e48efee7fe5c2ad7
[]
no_license
colingoodman/TwitterResearch
307e38a766db70009dfba10e555c7109d261dc82
ea778b502a1722cf8f05f2431f6f343ce43b106d
refs/heads/master
2020-03-28T11:19:43.544271
2018-11-28T23:30:32
2018-11-28T23:30:32
148,202,370
0
0
null
null
null
null
UTF-8
Python
false
false
1,365
py
FindDirected.py
# Colin Goodman # this file combs through a given user file and finds where other users have been mentioned # 2018 user = input("User: ") try: file = open(user, 'r') except FileNotFoundError: print("Unknown user. Perhaps their file has not been made yet?") exit() loop = True users_mentioned = [] # list ...
dee5258d5a0b34d69cb5f0cd9f8b603c1ff4226c
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/eye/do_government/eye_or_problem/government.py
b71d45a2918acf5393dd8018b21cc719953697d8
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
government.py
#! /usr/bin/env python def try_high_number(str_arg): seem_last_place_on_child(str_arg) print('government') def seem_last_place_on_child(str_arg): print(str_arg) if __name__ == '__main__': try_high_number('little_eye')