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
e5fba27f719358418a0c49fc1915b4001ac92c66
c8840568a65930d8d34ac722a30b05779b1c8bbe
/week4/polinomial/utils_tests.py
2b7d53e848510e5ec607e9fc4d57fe7b3ec39364
[]
no_license
nikolovv97/HackBulgariaPython101
9e38a0bed43f952e810713b7f50fbb3adbeeb936
a08d9ce98ff7961d07f5b0243ca418d4be0cbf72
refs/heads/master
2020-03-19T08:44:34.341351
2018-06-05T20:37:31
2018-06-05T20:37:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
utils_tests.py
import unittest from utils import extract_variable_and_power, extract_term class UtilsTests(unittest.TestCase): def test_extract_variable_and_power(self): with self.subTest("works with coeff 1"): self.assertEqual(extract_variable_and_power('x^2'), ('x', 2)) with self.subTest('works wit...
5d6383211b36415e6821d5a3fa724bf7992741e0
ceb2222617252e5b40de53b3108338f3e84a9c34
/src/백트래킹/Baekjoon_14889_스타트와 링크.py
f651ced9df307184b671e751397d16f96967e3e7
[]
no_license
gkcksrbs/Baekjoon_CodingTest
d9fbf0c0d0c929336376d3bbf7d01643872742b4
60219f9cde7c5951c28b336d56473ff24c5f7747
refs/heads/master
2023-06-19T00:15:53.836980
2021-07-23T11:59:55
2021-07-23T11:59:55
335,213,257
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
Baekjoon_14889_스타트와 링크.py
import sys from itertools import combinations N = int(sys.stdin.readline()) player = [i for i in range(N)] stats = [list(map(int, sys.stdin.readline().split())) for i in range(N)] start = [] link = [] sum_stats_lst = [] sum_stats_lst_link = [] div = [] for i in list(combinations(player, int(N/2))): start.append(i...
0b10630c66fdf177989d67ac812a2dd7738c547b
3b99e3daab61960e1628ce6556571735ac8973e0
/tests/test_Gameboard.py
b0eeb6b1b9bbdc3f41267794d955c6bce0b95b48
[]
no_license
szwank/Game-of-live
0217d359563f470b06bf50490abe7c332ff6aa89
9ab5146952a412f76370c7a7b39a1db0fc6b847c
refs/heads/master
2022-11-24T17:11:41.162278
2020-07-25T13:51:02
2020-07-25T13:51:02
282,456,065
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
test_Gameboard.py
from Gameboard import Gameboard class TestGameboard: def test_fields_correct_creation(self): gameboard = Gameboard(5, 5) assert len(gameboard.fields.values()) == 25 for coordinates, field in gameboard.fields.items(): assert self.__field_have_correct_position(field, coordinates)...
5e021907d7d402d88709555d09783d1bf2cff24b
c7d9d4894b2510d2a4dea4b64ac11f12b09fa880
/tb/test_high_counter.py
0d193988c5767825fdf7a1c415fd3172272b9e26
[ "ISC" ]
permissive
nmi-leipzig/sim-x-pll
01925cb50c14e599f09970ca439d9e0900591227
850f59a0d1315716aadc2b7415d4895df71b9bbd
refs/heads/master
2022-06-21T21:29:28.973905
2020-04-30T14:19:18
2020-04-30T14:19:18
227,648,855
4
0
null
null
null
null
UTF-8
Python
false
false
1,461
py
test_high_counter.py
import test_base import shutil import os from avocado import Test class HighCounterTest(Test, test_base.Mixin): """ This class tests the high_counter.v module. """ def setUp(self): """ This function is needed in every test class. """ # main directory of the project ...
69b993eda05cd810ba84328a4c29342ea15eddac
f3c4fab7d6d79366c5fa1dcf973a30dfb9741cd8
/PYTHON/SSAFY/29_day_191010/1231_중위순회.py
453e55cca66ccc9b59b4ca7c7430762e7b1e2c87
[]
no_license
eprj453/algorithm
03874747a4cef041721a0b6dc1d7ee16e86edfa9
abf6f7bc319737bbeecba9d88caaab952bf7d4d9
refs/heads/master
2023-01-09T10:36:02.231703
2022-12-26T16:10:50
2022-12-26T16:10:50
196,233,891
0
0
null
null
null
null
UTF-8
Python
false
false
985
py
1231_중위순회.py
import sys sys.stdin = open('1231_input.txt', 'r') def in_order(node): if len(linked[node]) == 2: in_order(linked[node][0]) print(nodes[node][0], end='') in_order(linked[node][1]) else: if len(linked[node]) == 1: in_order(linked[node][0]) print...
c0cf15005871d208661c8d285efb204961a87ccb
fa3f6d4e9169fb95f828013d179d03accdff381b
/grr/client/grr_response_client/unprivileged/filesystem/filesystem.py
eab53b7ddfa02c50f3b993b005f1bc41a94f0708
[ "Apache-2.0" ]
permissive
google/grr
c51a2bd251ed2f7adae538541990a2cc01fdcc8c
44c0eb8c938302098ef7efae8cfd6b90bcfbb2d6
refs/heads/master
2023-09-05T20:02:36.823914
2023-07-26T09:34:09
2023-07-26T09:34:09
14,909,673
4,683
927
Apache-2.0
2023-07-26T09:34:10
2013-12-04T00:17:53
Python
UTF-8
Python
false
false
2,639
py
filesystem.py
#!/usr/bin/env python """Common code and abstractions for filesystem implementations.""" import abc from typing import Dict, Optional, Iterable from grr_response_client.unprivileged.proto import filesystem_pb2 class Error(Exception): """Base class for filesystem error.""" pass class StaleInodeError(Error): ...
144dad889637aa290d73215dba6dac9944fd6496
71b6495c16859d2d6c61b5f56c51fad53a23feb9
/AppStore_logic/migrations/0001_initial.py
39c60d12822bda8b9eb9edd2d76e9d5b1d7c435b
[]
no_license
didghwns0514/Learning_Django
46368ac21f802886150691a6a636116da3fae529
8f731c7f885fe5e51e4970bdc7882e7825217723
refs/heads/master
2023-03-07T02:03:42.427154
2021-02-15T08:30:32
2021-02-15T08:30:32
338,614,736
0
0
null
null
null
null
UTF-8
Python
false
false
1,295
py
0001_initial.py
# Generated by Django 3.1.6 on 2021-02-15 02:37 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AddOrder', fields=[ ('id', models.AutoField...
8ad2f7fa540d42a483b99f7a21e075f96be18c69
3427fcd6e0778047333224304cdf731850df3892
/Annual_values_API.py
eaf1c0a9575d9e0ba75229316181ecd39d3b4c31
[]
no_license
r0bertLiu/Data-Service-for-world-bank
15fdcb5710616bd44e2b18485147cfb6a17c33de
cf6a75ac6732477cfba192e175c5b68cd40e2455
refs/heads/master
2021-07-07T10:30:08.165723
2020-02-21T07:19:03
2020-02-21T07:19:03
242,070,465
0
0
null
2021-05-06T19:55:27
2020-02-21T06:29:07
Python
UTF-8
Python
false
false
13,076
py
Annual_values_API.py
''' COMP9321 2019 Term 1 Assignment Two Code Template Student Name: Yubai Liu Student ID: z5143109 ''' import sqlite3 from sqlite3 import Error import json import requests import datetime from flask import Flask from flask import request from flask_restplus import Resource, Api from flask_restplus import fields from f...
2c10376c91e197e84f74d8408bb879d9a9abb6fb
ec6ef562c5ff469e26725ca7092062c109a99048
/mnist_expert.py
90ee8e91a32d57d5de3bec38c595b2115f39bdc5
[]
no_license
rubenmulero/deeplearning
ee1ab1a11266f6b2ea37a688a1fb8e81d7866e59
d8222796e455a13318d43f26ab70c02189f743bf
refs/heads/master
2021-08-28T13:38:02.768439
2017-12-12T10:04:30
2017-12-12T10:04:30
112,384,152
0
0
null
null
null
null
UTF-8
Python
false
false
7,364
py
mnist_expert.py
# -*- coding: utf-8 -*- """ In this file a Mnist based model is going to be used using advanced algorithms from tensorflow. """ __author__ = 'Rubén Mulero' import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data # Loading mnisg data mnist = input_data.read_data_sets('MNIST_data', one_h...
47d9fd704fac0f67137b31f0e7967aafe455ee80
00c6921f5fae8b993f542940fca408ef8cffff11
/stock.py
07299ca1f57d14faf4b4597effdb98703ee8e8c4
[]
no_license
Andresggomez/stockPredictor
87eee0d6ed1b97261adeeba9568e6c605647d25d
82b73765cd642b32b8b244c663af62291b54ae76
refs/heads/master
2023-03-16T19:37:34.033099
2020-07-20T16:38:43
2020-07-20T16:38:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,419
py
stock.py
import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.preprocessing import MinMaxScaler from keras.models import Sequential from keras.layers import Dense, LSTM, Dropout def visualizar(real, prediccion): plt.plot(real[0:len(prediccion)],color='red', label='Precio máximo real d...
70b4b796cdd00ade784164184a71b4d5f07c32a4
5bb2805e6ec6b004558b62fec1a74125d8d97fdf
/images2ColorsBBxes.py
168251fe20e0d267eee7d5dda302263161f3fd8a
[]
no_license
AlessioZoccoli/inCode
5e3c02cf24e8365dd76272ce4d8b200b72169704
205d92e1454b6f7ef1efd0e343b9609f10f33308
refs/heads/master
2020-03-18T12:45:54.601241
2019-02-20T09:50:02
2019-02-20T09:50:02
134,742,719
1
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
images2ColorsBBxes.py
from json import load, dump from config import * def image2ColorsBBxes(): """ Joining <annotationsCleanJSON> and <wordsRichDoublesAndUppercase> so that a file associating sorted, clean tokens to its colors is produced output: 'path/image.png': { 'cco...
53b14e373be1e924fdb55998721696cd6edc2412
140763fca4777144b6fa4abbc67941ef7667319c
/src/engine.py
b655ca51796e33fa66b8094372156d4c671dad11
[]
no_license
kwerenda/granturismo2000
2c46af7170e4058ec7218be13faf7d917a3851b7
8d33641193f9aff13c32bef451d2b2ef8922c20f
refs/heads/master
2016-09-06T11:18:06.189648
2015-01-26T12:43:15
2015-01-26T12:43:15
28,005,801
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
engine.py
import abc class Engine(object): def __init__(self, model): self._model = model self._dims = model.n_turns self._best_fitness = float("inf") @abc.abstractmethod def solve(self, iterations): """Perform all steps""" return @abc.abstractmethod def step(self...
c7bfa8979e7940839ca5ce7d3dcd7787b510d682
6268a19db5d7806b3a91d6350ec2777b3e13cee6
/old_stuff/code/hpe-feb2019/qi2016/holi_multi_reso/src/utils/directory.py
fdacc6b0548532e4e16d2e6cb031555e0797e557
[]
no_license
aaronlws95/phd_2019
3ae48b4936f039f369be3a40404292182768cf3f
22ab0f5029b7d67d32421d06caaf3e8097a57772
refs/heads/master
2023-03-22T14:38:18.275184
2021-03-21T11:39:29
2021-03-21T11:39:29
186,387,381
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
directory.py
DATA_DIR = '/media/aaron/SHAREDDATA/data/'
d6276347e728b22bd6995f5c856d6c11b609f8bf
5a82795c3860745112b7410d9060c5ef671adba0
/leetcode/Single Number.py
d596606c9f4effc7cf6e305f06742255c08d103b
[]
no_license
ashishvista/geeks
8e09d0f3a422c1c9a1c1b19d879ebafa31b62f44
1677a304fc7857a3054b574e8702491f5ce01a04
refs/heads/master
2023-03-05T12:01:03.911096
2021-02-15T03:00:56
2021-02-15T03:00:56
336,996,558
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
Single Number.py
class Solution: def singleNumber(self, nums: List[int]) -> int: res = 0 for v in nums: res ^= v return res
f763f9d94cd22fe8572d7b690b3ea511b7d8706d
0d0d24f7f2da47fada5174ffe21ae15f502f1070
/main.py
a8a12d29787970c6d64a439727b50b4b328564b8
[]
no_license
AdrianaCieslak/Python-challenge
e1a46267a7ce295c9e23f4b78cf69d00d1340904
71f43a6b53a1cd8a1da17cbb9dbf39f63b57712e
refs/heads/master
2022-12-12T18:40:13.108623
2020-09-01T20:20:33
2020-09-01T20:20:33
290,806,299
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
main.py
import os import csv csvpath = os.path.join("..", "Resources", "budget_data.csv") with open(csvpath) as csvfile: csvreader = csv.reader(csvfile, delimiter = ",") next(csvfile) #List to store data months = [] total_months = [] row = [] date = [] count = 0 ...
889352c7c33e9f9bcd639ecf85e824f5b85ff24d
ac0857be77f4af02369502d011b90e3726bf3f4b
/app/seeds/likes.py
01e4de6054c7dcabe2037464e2789115722874b8
[]
no_license
miguelalvinflores/catflix
9e4d2d33020b39c702d4f051c3985171d23f75d4
b637dc01cf903aa528de6ad18bf0e465e1e645c4
refs/heads/main
2023-08-27T07:47:42.636863
2021-10-13T22:45:46
2021-10-13T22:45:46
368,347,691
0
0
null
2021-10-13T22:45:47
2021-05-17T23:33:37
Python
UTF-8
Python
false
false
1,017
py
likes.py
import random from app.models import db, Like # Adds a movie, you can add other movies here if you want def like_chance(): chance = random.randint(1, 100) if chance > 60: return True elif chance > 50: return False return None def seed_likes(): for profile_id in range(1, 30): ...
0e3164458df9abfa14459a2438c860d59fdfabe9
801ffeb057670562efeae9f4249aeefea2d2dd8e
/src/demo1.py
e4f67a7e5e3a0ecaa2bdf44d23ba613074194677
[ "MIT" ]
permissive
lorenzobini/3D-shape-retrieval-search-engine
1492139668e04f4dbc952893001ccc53bc5f1c45
d8cb5887457424f170580f9f961c5f574da0788f
refs/heads/master
2023-01-12T22:07:04.732134
2020-11-14T15:28:53
2020-11-14T15:28:53
293,620,749
4
0
null
null
null
null
UTF-8
Python
false
false
1,471
py
demo1.py
import os import numpy as np import matplotlib.pyplot as plt from shape import Shape from visualize import visualize from normalize import normalize_data, normalize_shape from dataLoader import import_dataset, import_normalised_data from featureExtraction import * from featureMatching import * from utils import pick_f...
bca1c9a44cd43c6d0c9c4437e5553f3a799195f3
23914a4020b434a35bfee660beadf07dbdcdc79d
/src/Database/DbHandler.py
237e5fa29a18ed9f87cc85e3707cd5c4bb7f01b2
[ "Apache-2.0" ]
permissive
nogebour/PereBlaiseBot
1e2e8185a97136e457d5db72941b793a5f8ddd94
d648993780672bab53d1c5bab418054dd9e2a200
refs/heads/master
2021-05-11T05:40:46.410431
2018-05-04T15:07:23
2018-05-04T15:07:23
117,966,603
0
0
Apache-2.0
2018-05-04T15:11:16
2018-01-18T10:15:35
Python
UTF-8
Python
false
false
3,362
py
DbHandler.py
import pymongo import pymongo.errors import datetime import os from src.Error.ErrorManager import ErrorManager, ErrorCode class DbHandler: snapshot_pattern = "%Y%m%d_%H%M" snapshot_name = "snapshot" key_game = "kornettoh" key_name = 'name' def __init__(self, party_name=key_game): self.pa...
b0ed60ea4959cee70ee219a11143d6222d76115a
7d4353ce777cc09a1a11600cb15342e200644a8d
/run_test.py
ba25fbc4691f0bed02caf5cc780e90f0699c1b76
[ "MIT" ]
permissive
sagardsaxena/cyclegan-1
e2b642c185e88033fb7dcb18093e90e570048fd3
5405a558ae6ce8d115c99a57c4efc789feee74c2
refs/heads/master
2023-02-03T16:56:57.259241
2020-12-13T16:38:55
2020-12-13T16:38:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,043
py
run_test.py
import argparse import os parser = argparse.ArgumentParser(description='Generate Test Results While Training') parser.add_argument("--models_dir", type=str, required=True, help="") parser.add_argument("--log_dir", type=str, required=True, help="") parser.add_argument("--config_filename", type=str, required=True, help=...
054092c4bd8440e4e60012479f048563cd8a18f5
ce61ea2f9003eb0db581af2c0e39275f41584a17
/tests/test_user.py
213e758951a424215343b51e7178b52101e04a20
[ "Apache-2.0" ]
permissive
ofir96/calendar
dfe2bcd1887ec51b563d31702ac37a2c269192ac
23a33703a0038d0eae8ce7299a93ad172c8f68e9
refs/heads/main
2023-03-08T07:49:24.956684
2021-02-18T17:16:23
2021-02-18T17:16:23
341,860,303
1
0
Apache-2.0
2021-02-24T10:18:43
2021-02-24T10:18:43
null
UTF-8
Python
false
false
4,992
py
test_user.py
from datetime import datetime import pytest from app.routers.user import ( create_user, does_user_exist, get_users ) from app.internal.user.availability import disable, enable from app.internal.utils import save from app.database.models import UserEvent, Event from app.routers.event import create_event @pytest.f...
941bd77cf2ce8ff4433e23b5136b7dc6a52ded76
895859e2ae87b40b1d907a66f33c1a27d8934d78
/Month2/Week3/ServicesWebsite/homeservice/migrations/0008_auto_20170815_1815.py
e66ec812d451586699fdbffbc661f6dc27bbd800
[]
no_license
shoaibsattar823/ArbisoftProjects
7b192147bc898e7c689394a043d0d5ba6aac59ef
372fde7466c2215534512bd42ccca8734e376d18
refs/heads/master
2021-06-28T06:41:01.324391
2020-02-17T07:47:57
2020-02-17T07:47:57
97,679,159
0
0
null
2020-02-17T07:53:14
2017-07-19T06:10:26
Python
UTF-8
Python
false
false
539
py
0008_auto_20170815_1815.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-15 13:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('homeservice', '0007_auto_20170815_1804'), ] operations = [ migrations.Delet...
3a544484524491b29fd9febaafca175f91b85387
6953210bf02602a999be46e1b665a4f31a6c9036
/bin/AnyCPU/Debug/evaluate.py
4a83f83ce35e3a96d82f14c18c2435c7c4e41684
[]
no_license
JMOsborne10/Diss
28cf70b40c0168b433d19cae3755675a82e60ab7
db5cde6c5cee6d52cb64a23c431ef5b71ea9ce29
refs/heads/master
2020-06-25T10:26:03.361993
2019-07-28T12:47:47
2019-07-28T12:47:47
199,283,170
0
0
null
null
null
null
UTF-8
Python
false
false
6,114
py
evaluate.py
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile from distutils.version import StrictVersion from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image # This is nee...
09017f044ee7d42a3294a2db04f8138205f0bcb9
a95664f1909f5d5d51d38ab1d69266be0653d79a
/list2/task3.py
3c379edf7d03df06b430fd5b1f45056f85808a20
[ "MIT" ]
permissive
ErykKrupa/python-course
a319af41067adf35e7760d3a06592e5373372fd4
1e664786dda890a9330179e5627ab9f7a36939bf
refs/heads/master
2022-11-05T08:34:29.815975
2020-06-17T08:07:11
2020-06-17T08:07:11
248,542,121
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
task3.py
from sys import argv, stderr from os import walk, rename from os.path import isdir, join if __name__ == '__main__': if len(argv) == 1: print("Dictionary name not passed.", file=stderr) exit(1) if not isdir(argv[1]): print(f"Dictionary {argv[1]} not found.", file=stderr) exit(2) ...
014992d35152afbc92e6e6cd7fd87c7e621b78c9
6a6cedc0f1aa373e0f4b3384225f6a4fd6b32886
/python_xml_parsing.py
c0be36f1000863e8cb5b29165effaa6eea78c270
[]
no_license
ShabiniRajadas/python_xml_parsing
fbb05ab3997c98e3841bea1ad74547f93b3327ca
a94ded692e09b6b763edd164db1544c33b1f4402
refs/heads/master
2016-08-05T08:54:28.771265
2013-12-26T11:31:03
2013-12-26T11:31:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
python_xml_parsing.py
from xml.dom import minidom import pymongo # Create a mongodb connection client = pymongo.MongoClient() db = client['xml_qburst1'] urlcollection = db.urlcollection # Parse the xmldoc xmldoc = minidom.parse('qburst.xml') itemlist = xmldoc.getElementsByTagName('loc') # Store the data in mongodb for s in itemlist : ...
a5c5f6d042367ddcef25f54d9fcb3c66b8dd1ade
768841b706f5f220e958944ddb62c48c44da71b4
/tests/python/reduced_namedtuple_dataclass_test.py
da1472935d8162e7591f51dc1574d0085b54b3bf
[]
no_license
RobinLeeCarter/Windy_Gridworld
d6f02f22e43540c41354815ec5c86aa573ad30cd
ec622edfa0097453209b97e66a6fc0d0980f5ac9
refs/heads/master
2023-02-25T21:26:33.601772
2021-01-31T10:59:12
2021-01-31T10:59:12
333,799,127
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
reduced_namedtuple_dataclass_test.py
from dataclasses import dataclass from collections import namedtuple XY = namedtuple('XY', ['x', 'y']) @dataclass(frozen=True) class Action: move: XY test: str my_action = Action(move=XY(3, 4), test="hello") print(my_action.test) print(my_action.move.x) my_action = Action(move=(3, 4), test=56) print(my_act...
4a4a90f27315e12ab14e8bc4701d519b218d9357
51278d90eece9fbadd5e2f0078514a04881a704c
/FasterRCNN.py
49348ac485ebd6c6d89e719f04401eacdffaf01f
[]
no_license
Suke0/FasterRCNN
d0dc6533c6637dcf46e02294518701820ae416ac
cbb593fc201281cc99017fd0dab17b074859adee
refs/heads/master
2020-12-14T14:04:42.365385
2020-03-02T16:38:05
2020-03-02T16:38:05
234,765,715
0
0
null
null
null
null
UTF-8
Python
false
false
20,366
py
FasterRCNN.py
# -*- coding: utf-8 -*- # @Time : 2020/2/20 3:55 # @Author : Suke0 # @Email : 652434288@qq.com # @File : FasterRCNN.py # @Software: PyCharm import tensorflow as tf import numpy as np import cv2 from PIL import ImageDraw,Image from BodyNet import BodyNet from RPNet import RPNet from DetectNet import DetectNet ...
c2c0e0e402398e820216705c4dda2659003e75a8
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/netex/models/types_of_travel_documents_rel_structure.py
15b205c1d22252401585b0d79e8ea1526e73c2ff
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
1,109
py
types_of_travel_documents_rel_structure.py
from dataclasses import dataclass, field from typing import List from .containment_aggregation_structure import ContainmentAggregationStructure from .type_of_travel_document import TypeOfTravelDocument from .type_of_travel_document_ref import TypeOfTravelDocumentRef __NAMESPACE__ = "http://www.netex.org.uk/netex" @d...
bc2933491316f91e2844159e953c32d37ee82c36
688660218a3a90d7d0bb3c66eb58aaa34d8af52e
/intent/igt/references.py
75e5693614069926e5825c6d116f2270aa40f98e
[ "MIT" ]
permissive
rgeorgi/intent
ff88d1cb9b9c9ee25b2d68a74426de21f0849304
b1d89e7bce684bd8bc53f937a88f19d6550d6927
refs/heads/master
2020-04-12T06:19:49.524468
2018-04-13T19:03:25
2018-04-13T19:03:25
46,454,576
4
1
null
null
null
null
UTF-8
Python
false
false
9,291
py
references.py
import re import string import sys from intent.consts import * from xigt import ref, Tier, Item, Igt from xigt.ref import ids from xigt.consts import SEGMENTATION, CONTENT, ALIGNMENT from xigt.mixins import XigtContainerMixin # ------------------------------------------- # FIND # ------------------------------------...
e57fc016440b6c4a88b429d31bce9506cd3de76c
d02f2f610ee2649396937dbf9e51a7483c8139f6
/partile/partiledetectmethod3.py
467a2509f187c82996a5123c62562d319469f457
[]
no_license
x1ng-z/partiledetect
4358dd24e4bef7430fa8903a0013cfed55bfb45a
e6b6796c7cda9eefde2fc6b2e4381964861516b0
refs/heads/master
2022-12-23T00:30:45.682894
2020-08-31T23:47:05
2020-08-31T23:47:05
290,431,998
0
0
null
null
null
null
UTF-8
Python
false
false
8,564
py
partiledetectmethod3.py
import cv2 as cv import numpy as np import socket import numpy as np import cv2 as cv import ctypes import struct import time import imagepost DEBUG = False def read(size): ret = memoryview(bytearray(size)) remain = size # 30 while True: data = client.recv(remain) length = len(data) # 1...
5fb54f52140a41ce0a84a042f928d6056fc7f7de
ba9a985fe0d9ca58d5bb422656cd7ffd0cf258fb
/src/mockserver/web_backend.py
794db1f55758cf57f2b0893695a2a1dacd05484e
[]
no_license
p141592/nginx-auth
a2ff888254531dd2a7ac415ce6e31ceac61dfbfe
30ca117e20c7d032a2d15e0c0aaf93666ae768f2
refs/heads/master
2020-05-16T06:22:50.817488
2019-05-07T20:41:32
2019-05-07T20:41:32
182,845,145
1
1
null
null
null
null
UTF-8
Python
false
false
601
py
web_backend.py
from aiohttp import web routes = web.RouteTableDef() @routes.get('/ping') async def ping(request): return web.Response(text="web_backend") @routes.get('/get-data') async def get_data(request): return web.Response(text="get_data") @routes.get('/auth-request') async def auth_request(request): _auth = r...
8ae5046420eadf1895780a4c66b7f1d13672a993
05286bed9c2573334f32676ad52d1d76fc526fd8
/fromzero/dict_.py
0dbaa1bb8c39b4954ad13d3136b609886a0b8a55
[]
no_license
yanhuilee/l_python3
2cd20e2f36f2bcf1c75dbe49a72f62d50218bbce
465b1303f1488a349ce773fd603b1e1a1a10dd45
refs/heads/master
2021-06-12T16:28:12.781895
2021-03-06T15:05:43
2021-03-06T15:05:43
137,432,216
1
0
null
null
null
null
UTF-8
Python
false
false
751
py
dict_.py
# append()/insert()/ pop(index=-1) / remove(obj) # 将元组转换为列表 list(seq) # list.append(obj) / list.extend(seq) / clear() # list.sort(cmp=None, key=None, reverse=False) # copy() # 日期和时间 # 文件操作 # 比起os模块的path方法,python3标准库的pathlib模块的Path处理起路径更加的容易 import os print(os.path.dirname(__file__)) #/ print(os.getcwd()) #\ import p...
96112544df4f22df13da477f2e58f456a1470123
6fb6dd5d196f70134a2ede0a64074fd4bdb8c4f3
/chainspaceapi/chainspaceapi/api.py
495e9f4b5a8ee4e076a30383206708a5ca14774f
[]
no_license
musalbas/chainspace
6f3fae1fde1764385ba34f9025d66ec7510268eb
5c930bee0f3c7e7945f270ccf303252a9a5a855d
refs/heads/master
2021-09-09T00:17:55.108163
2018-03-12T21:18:28
2018-03-12T21:18:28
93,544,833
8
8
null
null
null
null
UTF-8
Python
false
false
601
py
api.py
import requests class ChainspaceClient(object): def __init__(self, host='127.0.0.1', port=5000): self.host = host self.port = port @property def url(self): return 'http://{}:{}'.format(self.host, self.port) def process_transaction(self, transaction): endpoint = self.ur...
d5df130b28400ddc1cd92aa7959521f8a1f4050d
8cfcd97373569618fa75b880eeba665bf84b512d
/trustly/api/api.py
47a505688a36b411238d7cb6407cb8bdc7be4d7e
[ "MIT" ]
permissive
smarkets/trustly-client-python
8116ba00630fed30bcf258b1e6305e0784e57448
03050870e5787976ff23d648d28d0ba8892676df
refs/heads/master
2022-11-12T02:10:10.900209
2020-07-09T13:31:23
2020-07-09T14:11:08
277,776,654
0
1
MIT
2020-07-07T09:40:55
2020-07-07T09:40:55
null
UTF-8
Python
false
false
8,890
py
api.py
""" The MIT License (MIT) Copyright (c) 2014 Trustly Group AB Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
0074a640f9240eb6b2519d43deff64050979ec6b
1c9d9b3c2b9f9a7a393071d2964e492404eff62b
/fine_tune.py
2fe77d8572893197e8aa42d66b30f366e96ac1cc
[]
no_license
thu-xd/image-classification
3910051f546abff6fc98fbec84f272d69d29c2c9
1f52fba4816ce91cae849895300c74c8385225d2
refs/heads/master
2021-09-18T14:23:27.709664
2018-07-15T11:41:03
2018-07-15T11:41:03
139,088,927
0
0
null
2018-06-29T02:18:18
2018-06-29T02:04:31
null
UTF-8
Python
false
false
286
py
fine_tune.py
from experiment import ex from data_fetch import build_dataset from AlexNet.AlexNet import AlexNet @ex.automain def main(): train_dataset,valid_dataset,num_examples_per_epoch=build_dataset() model=AlexNet(train_dataset,valid_dataset,num_examples_per_epoch) model.train()
698f93b479eb745307dee14a310d587b1bf7c96d
8891e6745daaf409972a007735312da0a6e6dd6b
/src/python/zoundry/appframework/ui/events/detailspanel.py
7d3e6f191b42e2a1932efb30c07472485bc81d9a
[]
no_license
mpm2050/Raven
4f605b97c3d046002dd052681443f0b6e9b9ae54
f1096a02a3dbb25a79d5c4e6a2f71a3d469631eb
refs/heads/master
2021-05-05T17:08:17.218202
2018-01-14T08:25:13
2018-01-14T08:25:13
117,413,841
1
0
null
2018-01-14T08:25:14
2018-01-14T08:19:03
Python
UTF-8
Python
false
false
1,299
py
detailspanel.py
import wx DETAILSPANELEXPANDEDEVENT = wx.NewEventType() DETAILSPANELCOLLAPSEDEVENT = wx.NewEventType() ZEVT_DP_EXPANDED = wx.PyEventBinder(DETAILSPANELEXPANDEDEVENT, 1) ZEVT_DP_COLLAPSED = wx.PyEventBinder(DETAILSPANELCOLLAPSEDEVENT, 1) # ------------------------------------------------------------------------...
c1fad4576d644375837ebcb9204f4dd5833464c7
de644b254b17a28f82e9212d80872a3d9eca2149
/gii_cfg.py
2bf8c358c41ae540b226f41034d7ecb383d9c6c6
[ "MIT" ]
permissive
pixpil/gii
506bee02b11eb412016b583d807dcfcc485e189c
ba6d94ada86d82bacae06f165567a02585264440
refs/heads/master
2021-12-03T06:30:31.503481
2021-11-24T03:02:49
2021-11-24T03:02:49
431,331,021
4
1
null
null
null
null
UTF-8
Python
false
false
408
py
gii_cfg.py
import logging ##----------------------------------------------------------------## #CONFIG LOG_LEVEL = logging.WARNING # LOG_LEVEL = logging.INFO # LOG_LEVEL = logging.DEBUG ##----------------------------------------------------------------## ##APPLY CONFIG logging.addLevelName( logging.INFO, 'STATUS' ) logging.basi...
37265f523aad34467f01f06659a56b2b71ea8df1
eacccbe3037ce9527f9683a1a674ed7e9db6e889
/pytest_demo/testCases/test_suite_1.py
4ea6ab06de7527caaea0f0622550c93072278ac5
[]
no_license
madhu4mobile/API_Automation
94b8a9a796c682d12dd4b55e4b9db1ce1a7466d3
42928c3d345ce477acb15a16bef9e717ae3a7d03
refs/heads/master
2023-02-07T19:26:07.049047
2020-12-29T18:42:29
2020-12-29T18:42:29
325,330,238
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
test_suite_1.py
def test_valid_user(): print("this is valid user") print("from Function : test_valid_user") def test_invalid_user(): print("this is to test invalid user") print("from Function : test_invalid_user") # assert 1 == 2, 'one is not two'
8f2885b0ed54431ecbae13fe11a3efd26b493a69
dd38f7dbe3065c168c4297ecdbc07ac558c4f12c
/app/users/models.py
02dc683873f05871c83be77896b49832e4c12b5f
[]
no_license
jeffeck/docker-app
a479c9d6690c95d8496ed3d48a5dc464ee68b2a8
aa33e57be4005fadbddea98a6de977f6d113642b
refs/heads/master
2020-05-23T10:40:36.035704
2019-05-18T16:20:01
2019-05-18T16:20:01
186,723,418
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
models.py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Users(models.Model): username = models.CharField(max_length=100) email = models.EmailField(max_length=100) last_name = models.CharField(max_length=100) first_name = models.CharField(max_length=1...
d5b018e056b057ff645eddd841b2a2f9690de071
fdef47cb81c18e2b0e01c8eadd0f375f05bba735
/lyrics/fuzzy.py
52deaccd4737faba157f47d759692e6f2cc1eeda
[]
no_license
GiuseppeMarra/lyrics
c974b556e0333fe16b141223f066405645cc2ffa
0c3fd3cbb8a5000cd22b353307299b0b64d9a4bf
refs/heads/master
2021-06-19T13:04:16.230892
2019-09-12T14:06:56
2019-09-12T14:06:56
113,959,644
15
2
null
null
null
null
UTF-8
Python
false
false
12,403
py
fuzzy.py
import abc import tensorflow as tf class FuzzyLogic(object): __metaclass__ = abc.ABCMeta @staticmethod @abc.abstractmethod def weak_conj(args): raise NotImplementedError('users must define "weak_conj" to use this base class') @staticmethod @abc.abstractmethod def strong_disj(args...
55228939865f6bc206b9a5ff9401c53ea2fe9c9f
dea03c40255d99bf89242e738b7cee0ba52da550
/record_label_project/record_label/management/commands/print_users.py
7eb6f7faaf252f47bb7513230275a3caa3706a41
[]
no_license
SebastianRichiteanu/GAD-project
c6e02e81fa7b8f86f609de8eb412544a7b0e0922
d5ed42f8f976df66d9de64ce385558fcb7a9d053
refs/heads/main
2023-08-29T04:20:04.325531
2021-11-02T11:58:56
2021-11-02T11:58:56
388,415,538
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
print_users.py
from django.core.management.base import BaseCommand, CommandError from django.contrib.auth import get_user_model from tabulate import tabulate class Command(BaseCommand): help = "Print all users in console." def handle(self, *args, **options): users = get_user_model().objects.all() users_list...
3642dd82ed993b3492687519e03c1ff62b22dc58
9e2f083825ec84d642ef7760fcded0a6e516732c
/sorting/quicksort.py
8046e1fb8bbe8266aa8cb87d8118157043fc2efd
[]
no_license
jonathanmann/review_problems
9b88ce1de3426fa9d9ef287bfed242cc972ff463
1a78e64abc554e035748561e25f3d3fef14f0051
refs/heads/master
2021-01-01T05:40:21.087469
2015-05-25T15:42:57
2015-05-25T15:42:57
34,594,640
0
1
null
null
null
null
UTF-8
Python
false
false
317
py
quicksort.py
#!/usr/bin/env python def quicksort(l): if l == []: return [] else: pivot = l[0] lesser = quicksort([x for x in l[1:] if x < pivot]) greater = quicksort([x for x in l[1:] if x >= pivot]) return lesser + [pivot] + greater lst = [33,6,43,32,63,66,3,45,8,201,98,78,98,23,43,12,36,72] print quicksort(lst)
ade2b343c3e3cb433c5f5035677bf7331f9a8b8f
e232de1f42a922dc0c94d889c1f72d4f66b325d6
/archived/old-scripts/fetch_package.py
f938a60cd2ba87f805e930ccd6db326f986fc4b5
[]
no_license
rec/slow_gold
b19fcd684e469978bf20cd0638fa83786fc5ffae
f4551785cf7f9cf45605a850d013eef5d80f4ea6
refs/heads/master
2022-10-20T06:37:00.370927
2017-02-04T11:39:59
2017-02-04T11:39:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,522
py
fetch_package.py
#!/usr/local/bin/python import copy import optparse import os import platform import subprocess def get_os(): if platform.platform().startswith('Darwin'): return 'mac' else: return 'windows' FLAGS = ( ('name', {'help': 'This'}), ('version', {}), ('cwd', {'default': os.getcwd()}), ('os', {'default...
e541279d82dede4e88c65358e7a4a01d0b0cd78a
e58b0bbb10afa5346924cc2321aa776dde9d4cf3
/double_check/filter.py
468ff261ebba70f3a63f7e98b02f41c819145d10
[]
no_license
GermanDemidov/NIR2
1753e82d3ea1cda6b7fe1867c8f6e80ffe675938
497ba8b31dec44705c034691b0a42fa164fd9ead
refs/heads/master
2021-01-19T06:50:34.669183
2014-04-23T16:49:15
2014-04-23T16:49:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
filter.py
# -*- coding: utf-8 -*- import sys import re import os __author__ = 'Sergey Aganezov Jr.' __email__ = 'aganezov@gwu.edu' __status__ = 'develop' def different_genome_check(sb_raw_data_list): return len(set(x.split(".")[0] for x in sb_raw_data_list)) == len(sb_raw_data_list) def filtration(source_file, output_f...
a10d48d0c55b4e2d1724902910bb9b4f7263d6f5
c9edc3f8d536fd73d8905848d0d18ce613a14f62
/two-stream-tests.py
1461bead9caceb5103108d273fbaf13f2594a781
[]
no_license
David-Stephens/two-stream-mixing
d311f93a71516eca60b81501aa36f2df61465433
33cfa95da475645c6ae7c9d38306307478fd5bf4
refs/heads/master
2020-08-27T01:52:19.319056
2020-02-13T18:11:54
2020-02-13T18:11:54
217,210,622
0
0
null
null
null
null
UTF-8
Python
false
false
4,907
py
two-stream-tests.py
from utils import defaults, testcases import shutil import argparse import os import collections class TwoStreams(object): """ Create and choose the corresponding testcase. Run the simulation """ # simulation objects that can be made with their testcase key all_sims = dict(zip(defaults.Params.test...
3f819ff5b4ef230e3441220e9cb5165eb4ad8742
487f8dfca37930e492f166a1dc2d8bcf926acf4f
/zabbix_alert/zabbix/models.py
7a5effac25aafa5e1d74fc5d74f9675f03e54435
[]
no_license
xiaosong372089396/learning_django
2a45e237b4445bfafa76ae721d8cae23e952d989
f5f6e686fa4720c39ad29976f4ef0f8bac0e948d
refs/heads/master
2021-09-11T15:06:00.439641
2018-04-09T02:37:22
2018-04-09T02:37:22
108,624,439
0
0
null
null
null
null
UTF-8
Python
false
false
3,675
py
models.py
#-*-coding:utf-8-*- from __future__ import unicode_literals from django.db import models # Create your models here. class Groups(models.Model): '''主机分组表''' groupid = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=64) internal = models.IntegerField(null=...
4b4e736a3abd628ea4a9a06f852e50b2318d7065
292c6ad0f8670c2d0ef6bc62cdb9f19ca4b3d79f
/objectTrack/back.py
8612ee5c6e84e9e36ba2d23780fe90010e3a9ec4
[]
no_license
im-aditya30/Era_projects
f18d91d9650501ad3cc4c2012a64db957ada1ee5
563ecb84deff56b827f8256b3445dc311426f827
refs/heads/master
2022-04-08T00:23:38.632606
2020-02-10T18:49:59
2020-02-10T18:49:59
239,587,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
back.py
import numpy as np import cv2 cap = cv2.VideoCapture('Shots.mp4') fgbg = cv2.createBackgroundSubtractorKNN() # kernal = cv2.getStructuringElement(cv2.MORPH_RECT, (7, 7)) while cap.isOpened(): kernel = np.ones((5,5), np.uint8) ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) eros...
6ea741a3c5190f1d50fafede572dc8b07428b146
ec9af134e18a2e1ff2317a03ca7cdb73e58ddc95
/find_context.py
90d43790c55debf5842d8c9733001dc682827ab0
[]
no_license
UTSA-CS-3793/Chatbot-AutomatedTA
6cce79a1429f4bf312adee5aac7fdc6c01b2bb63
c1c90da2be961221eecd3c3bf26d74ba8a74292f
refs/heads/master
2021-04-06T10:02:24.244637
2018-05-01T03:15:15
2018-05-01T03:15:15
125,148,660
1
0
null
null
null
null
UTF-8
Python
false
false
1,535
py
find_context.py
from bs4 import BeautifulSoup as Soup from urllib import request import sys from tqdm import tqdm ''' NEED TO LEARN STACK EXCHANGE API cause fuck stackoverflow ''' url1 = 'https://stackoverflow.com/search?q=[java]' stack = 'https://stackoverflow.com' def get_question_url(q, t): url = url1 + "[" + t + "]" + q.re...
4440b2647c0ef13ed34e358cb529f306cb10145c
9fa08cef58b72a60f121aae807bee1c3ed8fb4c3
/content/en/modules/python_scripts/correction/bonus_ex.py
e3ee545984780c9384478b0f5f3a4ca4424aea50
[ "MIT" ]
permissive
catherinelandry/psy6983_2021
dba90465f1abe1acb4df2677c6bc7cf10627a900
c31b632bd6439fc5f975384713e935fc4f9e4661
refs/heads/master
2023-07-14T04:10:18.099724
2021-08-28T00:37:31
2021-08-28T00:37:31
400,628,835
1
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
bonus_ex.py
import argparse import os def base_k(n, k): assert 0 < k and k < 10 r = 0 p = 0 while n > 0: r += 10**p * (n % k) p += 1 n = n // k return r def base_10(n, k): r = 0 digits = [int(i) for i in str(n)] digits.reverse() for i, d in enumerate(digits): r ...
b0734f33f28c2f8f7e5a330418d3c772183e5988
a3c84866bb3b785e430e82f2a33d02f154905149
/orgmailadmin/migrations/0002_alias_unique.py
cfdfab2ac843b0c3ab7d0ce38d0be9b899cc531c
[]
no_license
TK-IT/orgmail
8fd049054e6327db82c15850719755938326b939
cad6c53ba2a53df36b15e39b6b882b1aa7ea7ec2
refs/heads/master
2021-01-01T16:59:33.725874
2020-08-22T08:34:17
2020-08-22T08:35:18
97,972,963
0
0
null
2017-10-21T16:43:51
2017-07-21T17:43:24
Python
UTF-8
Python
false
false
672
py
0002_alias_unique.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-23 11:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orgmailadmin', '0001_initial'), ] operations = [ # Set Alias.name.unique = ...
93bd5774ea9782fde03a05c8595f6b669af9cf01
10fee6094cdfc26aa4992025ce104e250c579c9a
/test.py
c260a1288f30a64db04607a1181e77a866eec28b
[]
no_license
ParsiSaiteja/MobileNumberTracer
fd88f5f2880c0d1220377fa7e9889321f239de1a
71c8d82a8c86f24889adf6fe1fcd08aa58389fa2
refs/heads/main
2023-09-05T02:42:51.103092
2021-11-22T11:41:50
2021-11-22T11:41:50
430,682,679
1
1
null
null
null
null
UTF-8
Python
false
false
24
py
test.py
number = "91xxxxxxxxxx"
a784055286ba89ec68f0f4d72226f0d1118d7c5b
7f08eb1e5a7ee5e87888a2905dd4f7638f3c5154
/common/gameobj/map/tilemaps.py
eb22a5562f9702f6929553d62f626c3cd62a9fa3
[]
no_license
flokipus/rgl-game
cc9c45af6f41bc0fcdda079413c94a343b86e3af
f4506730c7a0c5ea4e7da95bdb5051d71c6bf527
refs/heads/master
2021-07-09T08:42:43.119764
2021-06-17T19:27:10
2021-06-17T19:27:10
246,132,632
0
0
null
null
null
null
UTF-8
Python
false
false
3,577
py
tilemaps.py
from __future__ import annotations import pygame from typing import overload, Union, Dict, ValuesView from common.gameobj.basegobj import GameObject from common.utils.utils import Vec2i from gamelogic.view.settings import screen from gamelogic.view.settings import colors def to_pixel_xy(xy: Vec2i, screen_height) -> ...
0937f0ba67819fc56f8eb6b6c8c96260fecc443d
314eeaa2e19298c8c86c63f6b45b7d31f882a8d7
/tensorflow_api_tutorials/programming_models/sequential.py
9d1f2ec9762ecb62db851ef39f32a13f470bc5d1
[]
no_license
swathi-juvvi/tf
8058b33787c75f96ef1edc6318df18f0f10a5b63
86b36edfbff45c30b68d288dba02f050edd37399
refs/heads/master
2023-03-23T20:47:15.662973
2020-07-22T11:55:43
2020-07-22T11:55:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
sequential.py
import tensorflow as tf # Network and training. EPOCHS = 200 BATCH_SIZE = 128 VERBOSE = 1 NB_CLASSES = 10 # number of outputs = number of digits N_HIDDEN = 128 VALIDATION_SPLIT = 0.2 # how much TRAIN is reserved for VALIDATION DROPOUT = 0.3 RESHAPED = 784 model = tf.keras.models.Sequential() model.add(tf.keras.lay...
a8cea1a3e34407b9f614e482466a3997018b5433
a5a51414b262bd559a0dc75618e14a66bef21407
/lib/utils.py
78809bd57cff916f31fc1bdb4f5347b6867c23fe
[]
no_license
MWitkovsky/Advent-Of-Code-2017
5e0d18a3d6425a6e7bc11df3a9544e1ac1a2baea
f18cd155c15a5a01ca6a339199fb985376e06b5f
refs/heads/master
2023-02-16T23:11:14.883296
2021-01-14T16:11:55
2021-01-14T16:11:55
113,458,432
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
utils.py
def read_file_to_string_by_path(path): f = open(path, "r") contents = f.read() f.close() return contents[:-1] if contents.endswith("\n") else contents def lines_to_array(string): return string.splitlines()
65bc575b3c3fa932540bd9a995321d99b5ff4b30
7117b141eb3d8d42a7beff88cb68182cc4180ffd
/experience/tests.py
e5e2fcd8ebb3aab867d8848cb312448febd7c1d8
[]
no_license
cmsommerville/django-experience
6b71cd9ed4b9ab026254c7f238447c3fcf0939c9
430605186eab5dbcea4cd74f6304b278d3328fdc
refs/heads/master
2021-02-13T04:33:15.304372
2020-03-26T01:01:00
2020-03-26T01:01:00
244,661,431
0
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
tests.py
from django.test import TestCase import json import os import psycopg2 import keyring from models.report import Report from models.reportset import ReportSet from models.batch import Batch # Create your tests here. os.environ['DJANGO_SETTINGS_MODULE'] = 'first_django.settings' def test_reports(): with open("./t...
c8ce4463279b96bec52329653de3fb0d6987e8cd
beb8b7ccc333997adb4b1100da05e687ae17ee1a
/tutorial_5/emit_log_topic.py
3df4a7e4008902d8e858a5774f86dc0c8801edf5
[]
no_license
keshavvinayak01/RabbitMQ-Tutorials
45d912573ea7af1f59a6eca72fbae75599ec3961
a56f8785f61409b29704621ee7e320e5654bde90
refs/heads/master
2020-08-06T04:20:51.880419
2019-10-04T19:52:39
2019-10-04T19:52:39
212,831,518
1
0
null
null
null
null
UTF-8
Python
false
false
529
py
emit_log_topic.py
import pika import sys connection = pika.BlockingConnection( pika.ConnectionParameters(host = 'localhost') ) channel = connection.channel() channel.exchange_declare( exchange = 'topic_logs', exchange_type = 'topic' ) routing_key = sys.argv[1] if len(sys.argv) > 2 else 'anonymous.info' message = ' '.join...
305522fa684e199b344895563c79ab498b2d351a
2826418660a3834b2f0efb7e0021dfbf1473c511
/pykd/test.py
2da8ab3e95a6b7a963af1c9abab8f6927849718d
[]
no_license
Junch/debug
ed23f7b1b76a3c8388c45e5d336bc28cb55fc1ea
c774c5a3996cef19b3f1f49ba4d7d0507a52619a
refs/heads/master
2020-12-23T08:24:26.780034
2016-12-09T01:59:59
2016-12-09T01:59:59
18,367,365
2
3
null
null
null
null
UTF-8
Python
false
false
50
py
test.py
from pykd import * print pykd.dbgCommand("!teb")
45d3835612d34fd723f2f3efab5f264c0beeb8db
4190df6c6ebf7e230894f126d92750d1c2815d33
/rigolFG.py
55d4bfca156ca68ba6d2448ea1339d3b8d27f832
[]
no_license
joaquincasanova/rigol
3e806e73d51e82cd6b1b20e1022e2711a83751c0
39bd7f0a5edfc801143953c8ecbe699e6dad24fb
refs/heads/master
2021-01-13T14:56:12.116050
2017-01-19T19:46:15
2017-01-19T19:46:15
76,661,890
0
0
null
null
null
null
UTF-8
Python
false
false
2,863
py
rigolFG.py
import usbtmc import time nameQ = '*IDN?' channel1 = "CH1" channel2 = "CH2" app = "APPL" sine = "SIN" square = "SQU" function = "FUNC" freq = "FREQ" volt = "VOLT" phase = "PHAS" unit = "UNIT" vpp = " VPP" duty = "DCYC" loc = "SYST:LOC" rem = "SYST:REM" class RigolFunctionGenerator: """Class to control a Rigol DS10...
86564f070a7535791c2104df494623a0887c9098
f9bed2fc184fa3bdc234a074bf19544a6f2ef5c1
/2016/Systemprogramming/4/20141597.py
933028cf42ff40839437146dd71a7b5e80c27542
[]
no_license
hdenni/univ
aa530a91eb3213c5c13d1710aa059471a7f3ac33
860108aa9bba42ff1aa31012dbd398deebbd1e09
refs/heads/master
2020-05-16T23:20:44.778781
2019-04-25T05:42:57
2019-04-25T05:42:57
183,362,217
0
0
null
null
null
null
UTF-8
Python
false
false
1,253
py
20141597.py
# global a = 0 url = open('URL.txt', 'w') urltmp = 0 text = [] root = "http://cspro.sogang.ac.kr/~gr120160213" def f(x): global urltmp global a global url global text global main r = requests.get(x) # If page is not found, do not write URL if r.status_code != 200: return # If the page is already visited...
33782c27f3a0122608f8f6b8738ba62e93315017
cff45bac1e43b02fea2720e4969470b4db1b49a1
/mission_to_mars/functions_scrape_mars.py
03bd84e0e729cb9750fd2f0c8e44c36818c8b6ff
[ "MIT" ]
permissive
ykrasnikov/web-scraping-challenge
e0bdfa4043980b853d7f1c4e1e8a670113f08945
c8ede84d68b102a68625b091345765823dbb1c56
refs/heads/main
2023-03-11T07:44:44.858435
2021-02-21T01:14:55
2021-02-21T01:14:55
335,048,173
1
0
null
null
null
null
UTF-8
Python
false
false
6,834
py
functions_scrape_mars.py
###################################################################### ########## import libraries from bs4 import BeautifulSoup as bs import pandas as pd import re from pymongo.mongo_client import MongoClient from splinter import Browser # as a playground - we will try selenium as well from selenium import webdriver ...
95478e10550c1c98946ccb1fc569205a86649a47
b74556f7926a89e453334b6dd38f83e5d4e6fd3e
/QueryApp/decorators.py
3feb416e5caae61dc91b81afe11769fd294abfd5
[]
no_license
alamintpi/Django-Basic-List
f9885084d442395553c8c8e0bf5c15a3233a2769
80d09c8b0a871d0cea4f0b330602f939b6eb42bf
refs/heads/master
2023-05-31T20:43:08.299520
2021-07-09T12:53:40
2021-07-09T12:53:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
decorators.py
from functools import wraps from django.contrib import messages from django.contrib.auth.views import redirect_to_login from django.contrib.auth import REDIRECT_FIELD_NAME from django.shortcuts import resolve_url from urllib.parse import urlparse import Project.settings as settings import requests from QueryApp.mode...
4913d6a2d7454dd2c2ed26f697f5b5a5e7919db4
35fba842ab59f323959bf3b0a2e4d53754c4061d
/nonlinear-data-analysis/surrogate-data.py
4fc2983903e63ba2d6b008ede9ba858d61ae667a
[]
no_license
ntaka19/time-series-analysis
3379c41a05ff020d64e1ada46f0a93a22141f205
1306d15a6e57666069be8d655badba387fdf5447
refs/heads/master
2020-06-21T21:55:51.535091
2019-07-18T09:59:28
2019-07-18T09:59:28
163,366,726
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
surrogate-data.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.read_csv(r'northwind20041025130835.csv',header=None) t=np.arange(0,len(df.values)) f=np.array(df.values,dtype='float').flatten() def d(series,i,j): return abs(series[i]-series[j]) series=f N=len(series) #eps=input('Initial diameter b...
ad66a3c08c25299b7631143447fd82845565034d
6bec899ddc668c794e6097b80eebe033adebce31
/tests/unit_tests.py
d80cc367804010fc420a8c9e08910ca7722e7bf5
[ "Apache-2.0" ]
permissive
nextflow-io/udocker
7ceb03350bc1594beda99a627eb939e62210127a
0afa22228b808798577632e7ffe363d6c168cc05
refs/heads/master
2021-01-12T11:48:34.997574
2016-10-07T09:35:13
2016-10-07T09:35:13
70,150,111
0
0
null
2016-10-06T12:04:23
2016-10-06T12:04:23
null
UTF-8
Python
false
false
41,497
py
unit_tests.py
#!/usr/bin/env python """ ================== udocker unit tests ================== Unit tests for udocker, a wrapper to execute basic docker containers without using docker. 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...
00e5e30f9a063c149b446bdebde548d6cdc51dc3
43cf9b1019df60c2f3d49f1b0e654847262a4c3a
/utils/_hyperopt.py
d53f9e906c53f69209401e7c5e625a4be0437658
[]
no_license
Ahmed-Fathalla/LSTM-DPS-for-IoT
7deec7133aedab26355da42f1ed067c4fad932ba
6968babe213d2fe703531af5fcad627c38750554
refs/heads/master
2022-04-30T17:54:32.211842
2022-04-09T17:00:43
2022-04-09T17:00:43
224,177,235
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
_hyperopt.py
from hyperopt import hp hyperopt_space = \ { 'nb_epochs' : hp.choice('nb_epochs',[10]), 'lstm_cells' : hp.choice('lstm_cells',[8,16]), 'd1_nodes' : hp.choice('d1_nodes',[4,8]), 'd2_nodes' : hp.choice('d2_nodes',[0,4]), 'batch_size' : hp.choice('batch_size',[4,8,16]), 'dropout1': hp.choice('d...
959417cbe97a7ecc69f44f17a0efca1c9173521e
af5d3741a7f43d4fd7b942d8411a08b4e4a93d19
/Drawing Machine.py
a1cf20736f2648fc89d73909e3d5315a331643ba
[]
no_license
ntuchol/Python-Projects
e12633394355ad37aacb9ae588df89d71574a14b
49121049746497e8dfb3a71c5ac9b094279d86c2
refs/heads/master
2021-01-10T22:42:29.574693
2019-05-21T02:28:46
2019-05-21T02:28:46
69,703,764
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
Drawing Machine.py
#Drawing Machine program = 'N-L90-F100-R45-F70-R90-F70-R45-F100-R90-F100' cmd_list = program.split('-'); cmd_list def string_artist(program): cmd_list = program.split('-') for command in cmd_list: cmd_len = len(command) if cmd_len == 0: continue cmd_type = command[0] ...
0b6eff3c3b4b1ee8e57380f8cea582a770b3b302
ec9cd56fe5b601931c68a4d5d8c340062ed600c4
/courseraS/week5/3_edit_distance/edit_distance.py
7825658ae0c793e1cf0096057e74ebe6935c9780
[]
no_license
kene111/DS-ALGOS
8b57e88a38deffcdf1b545bcc1fd58f135d58191
fddcaa31b3355791de67edaa626f164c75425886
refs/heads/master
2023-02-28T08:41:09.783199
2021-02-03T11:20:44
2021-02-03T11:20:44
254,516,486
0
1
null
null
null
null
UTF-8
Python
false
false
1,070
py
edit_distance.py
# Uses python3 def edit_distance(s, t): #write your code here len_s = len(s) len_t = len(t) # so many issues occured while trying to use a list, i.e out of range issues. #backtrack = [[0 for x in range(len_s+1)] for x in range(len_t+1)] backtrack = {} for i in range(len_s+1): bac...
8444b3d532631e82b68ba83dcc98dee762b32206
a8b37bd399dd0bad27d3abd386ace85a6b70ef28
/airbyte-cdk/python/airbyte_cdk/sources/file_based/config/abstract_file_based_spec.py
531502e66206f7be5a7e42c8e471335682bc89a8
[ "MIT", "LicenseRef-scancode-free-unknown", "Elastic-2.0" ]
permissive
thomas-vl/airbyte
5da2ba9d189ba0b202feb952cadfb550c5050871
258a8eb683634a9f9b7821c9a92d1b70c5389a10
refs/heads/master
2023-09-01T17:49:23.761569
2023-08-25T13:13:11
2023-08-25T13:13:11
327,604,451
1
0
MIT
2021-01-07T12:24:20
2021-01-07T12:24:19
null
UTF-8
Python
false
false
3,940
py
abstract_file_based_spec.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import copy from abc import abstractmethod from typing import Any, Dict, List, Optional from airbyte_cdk.sources.file_based.config.file_based_stream_config import FileBasedStreamConfig from airbyte_cdk.sources.utils import schema_helpers from pydantic impor...
7475b6694aeccb5ca272b0e2d595da01a50ba7f5
0cf5bfb5eabbdfa5f29d42ea3e9fd214deb0e209
/modules/Enphase.py
7f95a9c43d7fe0060089c57285005da013a6ba33
[]
no_license
nate998877/UUI_DashBoard
576167b6044dedd3ac010a123668846621c7f319
05468efa30f90e55d5b6ed4ee69d3ea4626521a1
refs/heads/master
2022-12-12T06:10:16.057437
2019-05-16T01:16:14
2019-05-16T01:16:14
131,935,113
3
1
null
2022-12-08T01:16:46
2018-05-03T03:10:07
Python
UTF-8
Python
false
false
3,534
py
Enphase.py
import requests import sqlite3 import datetime import pytz import pandas as pd from modules.APIInterface import APIInterface class Enphase(APIInterface): def __init__(self, api_key, user_id): super().__init__('https://api.enphaseenergy.com/api/v2/systems', api_key, user_id) self.database = EnphaseDB() de...
aa5e8ec4011baef9a954f36bd9c650e6a0ea54e1
564075dc923eca9543c222d2fa146caee2db9080
/must_do_gfg/array/missing_number.py
4f7acd0a2e3a7f40aefa748b51a115c5677757dc
[]
no_license
faisal-git/Data_Structure
f3aa6c398e055b1060682ad3fb1d18856a9e9ff0
c217699de2fbc4efdec7bea1df1cea91a3a25d72
refs/heads/master
2022-12-11T22:26:16.484705
2020-08-28T04:56:23
2020-08-28T04:56:23
287,116,424
1
0
null
null
null
null
UTF-8
Python
false
false
364
py
missing_number.py
# https://practice.geeksforgeeks.org/problems/missing-number-in-array/0 # the idea is simple to calculate the sum of given arrray # apply n*(n+1)/2 for finding the sum of first n natural number # subtract arr sum from n natural number sum # Time O(N) for _ in range(int(input())): n=int(input()) print((n*(n+1...
163e36bf3d49c8ba1de567d2198beddab2466731
e8b2ebdda52c3e60ec8cfc7b112e66be35b87402
/python_library/StarKiller/StarKiller/examples/call_integrator.py
78f920604a5f241c65aaabd487b61d3bfb6babd6
[ "BSD-3-Clause" ]
permissive
shardi2/Microphysics
2a64105879d1420abe9eb5354a19d88577610345
b4200043ebccc051205ea1408cc6c983c7fd68fb
refs/heads/master
2022-12-08T00:32:10.849225
2020-07-08T19:39:12
2020-07-08T19:39:12
274,239,652
0
0
NOASSERTION
2020-07-08T19:39:14
2020-06-22T20:51:35
Jupyter Notebook
UTF-8
Python
false
false
1,582
py
call_integrator.py
import numpy as np import argparse from StarKiller.initialization import starkiller_initialize from StarKiller.interfaces import BurnType from StarKiller.integration import Integrator from StarKiller.network import Network parser = argparse.ArgumentParser() parser.add_argument('-r', '--density', type=float, default=1....
e7ef9121428b6dbaa84b09e3246007c3086753bb
113453fb7b484aceac030642e752c9d6d1309a84
/ssapy/scpp/__init__.py
c729dfe375a872101dadef28c286009470b0838b
[]
no_license
brandonmayer-zz/ssapy
79ed713eafbbc743ed394829cb228fd65227e93d
141d8124979bbd8ac637dab078fb022958af1fb1
refs/heads/master
2021-05-27T14:31:43.343150
2013-08-06T04:16:22
2013-08-06T04:16:22
2,851,722
1
0
null
null
null
null
UTF-8
Python
false
false
165
py
__init__.py
""" this is /ssapy/scpp Author: Brandon A. Mayer Date: 1/1/2013 Module for Self-Confirming Price Prediction algorithms. Moved from /ssapy/pricePrediction/algo """
01e0eff8612645680eb06e626150c13918daf57e
f231ef01f4067405c890e11e40ceb86c56177b61
/python/feminists.py
66a420dd0425f8c78e346f70556ef233527e3f50
[]
no_license
holhartman/wcc
5462e7828e94db9cedd8b510ac26d0c833028d1b
767abf80b138d7602731a2356679fcc8dade1c85
refs/heads/master
2020-04-17T07:33:47.568939
2017-04-26T18:56:07
2017-04-26T18:56:07
66,658,523
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
feminists.py
import random #Setup answers = ['\n“Something which we think is impossible now is not impossible in another decade." —Constance Baker Motley,' '“Lifes a bitch. Youve got to go out and kick ass." —Maya Angelou,' '“If the first woman God ever made was strong enough to turn the world upside down all alone, these women t...
7535fc2e01e84a0194e1a0ddd20d2f52f2477e2f
f7a2863e92b358a77feb280a5c299345f51595c3
/software/studio50_fly/studio50_fly/calibration.py
efce0125c7ad0f5e87a85b7a28d287aabbb3223e
[ "CC-BY-4.0" ]
permissive
willdickson/studio50_fly
41032926ac4d35f9e7a05ed3fa24fb8032a01b05
30c6bd7ded493ff49288c53abf78185163825b06
refs/heads/main
2023-06-10T09:29:27.923181
2021-06-28T20:19:14
2021-06-28T20:19:14
360,674,279
1
0
null
null
null
null
UTF-8
Python
false
false
9,877
py
calibration.py
import os import cv2 import time import pickle import numpy as np from .config import Config from .camera import Camera from .display import DisplayMode from .display import DisplayController from .homography import Homography from .blob_finder import BlobFinder from .utility import get_user_monitor class Calibration...
389dba5dd8e4c03135bf1e5242157f607e0ec008
d87966f007fe2ccb9bc3d4c57dbf90b75b781166
/Examples/SolverDiagnostics/demo.py
8cdb73ed8d1cc95f114657d1de770419894f4e3f
[ "BSD-3-Clause" ]
permissive
pombreda/pyamg
9e3758d22367df324e7fde0fc5b4426425aaef8a
ecd464de4d16e16bc905d84df181025ddf3c1958
refs/heads/master
2021-01-01T16:13:54.862468
2013-05-14T16:50:34
2013-05-14T16:50:34
32,209,504
1
0
null
null
null
null
UTF-8
Python
false
false
4,256
py
demo.py
''' Example driver script for solver_diagnostics.py, which tries different parameter combinations for smoothed_aggregation_solver(...) and rootnode_solver(...). The goal is to find appropriate parameter settings for an arbitrary matrix. Explore 4 different matrices: CSR matrix for basic isotropic diffusion ...
b0d76c881efdcb2341dd28949302dd3364d76c06
a9ed5a222aa6690d3b8f2884c05f05815cba1bd3
/week14/WebCrawler/controller.py
e78c6f9fad5f1347a426cf66af93a7a582cf852c
[]
no_license
Jor0Stam/HackBulgaria
9eefab385f3b4bc17d9d1e976c80bfdbff39457e
336adcfff781a6ac005dc44c47149cd7223a3ec6
refs/heads/master
2021-01-12T11:00:57.696724
2017-03-14T17:11:01
2017-03-14T17:11:01
72,790,736
1
0
null
null
null
null
UTF-8
Python
false
false
2,391
py
controller.py
from bs4 import BeautifulSoup from requests import get, session from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from servers import a import matplotlib.pyplot as plt Base = declarative_base() engine = create_engine('sqlite:///Crawl...
69d12cb085b683755fb949f1f81d409e73e543a7
6b1b506139088aa30de9fd65cff9e3b6a3a36874
/sofia_redux/pipeline/sofia/tests/__init__.py
6542b9e6d81a488f6f0bd17ba9b75b6435964cee
[ "BSD-3-Clause" ]
permissive
SOFIA-USRA/sofia_redux
df2e6ad402b50eb014b574ea561734334d70f84d
493700340cd34d5f319af6f3a562a82135bb30dd
refs/heads/main
2023-08-17T11:11:50.559987
2023-08-13T19:52:37
2023-08-13T19:52:37
311,773,000
12
2
null
null
null
null
UTF-8
Python
false
false
121
py
__init__.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Tests for the sofia_redux.pipeline.sofia package."""
032eb7bd26e61c9529d7c5bc4387e4708274449a
3c3dc8f70e36da69131be7aa262ef63d7517bf8f
/Python_Interview_Questions.py
f86f33255051cd7aad35db0d2662c58c120c106c
[]
no_license
thdevine/Study-Python-Examples
c31e21db27dae723c191796c7d5e42e77443b6b4
4c5d7d4fdbbbd23f3440370cdfffb11f8af2b2a5
refs/heads/main
2023-04-09T08:17:35.039557
2021-04-01T18:17:47
2021-04-01T18:17:47
351,520,658
0
0
null
null
null
null
UTF-8
Python
false
false
5,003
py
Python_Interview_Questions.py
""" Created on Thu Mar 25 15:07:41 2021 @author: Thomas Devine @Description: The goal of this script is to track interview questions I've solved using python to demonstrate working knowledge of python. There is no overlap for the questions in the SQL_interview_queries.sql file in https://github.com/thdevine...
018d011ae377d3f1de83922d6afb3de36a7d7671
6cf690056e46a91dc5d5ae7f2ef4581b764e52fb
/dijkstras_algorithm.py
6bea0f2d70de0f2c664787420ce6b7a5ef3f1548
[]
no_license
riccardorestagno/Dijkstras_Algorithm
99a0de40966b47668a8922aaa28449fbfc2e434b
1b690edb54d522fc0b30ed4eead42892f71e16bc
refs/heads/master
2020-04-16T11:48:40.736581
2019-01-13T20:45:02
2019-01-13T20:45:02
165,552,272
0
1
null
null
null
null
UTF-8
Python
false
false
1,509
py
dijkstras_algorithm.py
def dijkstra(map, start, end): distance_dictionary = {start: 0} next_nodes = [start] for node in map: if node[0] not in distance_dictionary: distance_dictionary[node[0]] = -1 if node[1] not in distance_dictionary: distance_dictionary[node[1]] = -1 if not [nod...
f72e7044fbdd9487a00bf97e3edc3896d39e5dd2
38d76f3950bb2c9c8c6e932627ca7bdd96435d89
/Sorting and Searching/SparseSearch.py
5ccbe2088d31525a987ce64545416c581d892778
[]
no_license
pranita-s/CTCI
06b508c3c2f57ac7994dc7901c1c223826bbc969
305543d5b39c530655492afeeb8684adcea4d231
refs/heads/master
2020-03-20T10:08:14.432863
2018-10-03T22:23:48
2018-10-03T22:23:48
137,360,564
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
SparseSearch.py
# TIME - O(n) def searchHelper(arr,target,first,last): if first > last: return -1 mid = (first+last)//2 if arr[mid] == "": left = mid - 1 right = mid + 1 while True: if left < first and right > last: return -1 elif right <= last and a...
05a382efd8452a1112d19a76cbd2ccc76ee41ad4
d0900f144b9deb46594b10d9d655d8724fe137b3
/week28/question5week28.py
199a1fc979f34a90878edbd4552bea474cef7a42
[]
no_license
UzayPoyraz/Comsci_ISAK_unit3
b93e39c6d19604080fc80873c3243f4819746d94
4999f4d127be980742dbd249607da6523d526be3
refs/heads/master
2022-06-03T15:48:02.155071
2020-04-30T18:26:00
2020-04-30T18:26:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
question5week28.py
# Write a Python program to calculate a dog's age in dog's years. Go to the editor # Note: For the first two years, a dog year is equal to 10.5 human years. After that, each dog year equals 4 human years. human = int(input("Please input a dog's age in human years: ")) if human < 0: print("Incorrect, age must be posit...
e05bf6b22cfa063ed6c1b57e05ee42cc780759aa
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow_nightly/source2.7/tensorflow/contrib/timeseries/examples/known_anomaly.py
e77628ddd390374d6336e3583e07ce03cdec7aea
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
6,905
py
known_anomaly.py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33d9770b2610d6c86adeb8ce0b36438519735b55
fdde0fa76eea56f9aac6b944a42072dd93e5d71e
/synpost/objects/site.py
0729ab53bad8ae7b106d7a8dab3a1784d7a5600a
[ "MIT" ]
permissive
blakev/synpost
0268fa6849dedd90865ce6c14764e3acd6404259
7db705463499e9ea609b9864b769d482b4f34a5d
refs/heads/master
2021-01-23T07:02:30.893361
2015-02-27T19:57:56
2015-02-27T19:57:56
31,346,024
0
0
null
null
null
null
UTF-8
Python
false
false
4,406
py
site.py
__author__ = 'Blake' import os import json from synpost.fn.io import generic_collect from synpost.fn.bootstrapping import load_from_list from synpost.fn.serialization import TupleEncoder from synpost.plugins.core import PluginMeta as PluginType from synpost.objects.theme import DefaultTheme, Theme from synpost.objec...
1706e5a7456c3317800f5669316b94402cc896eb
527cccd0f5a5e3ff8e457c9d85256e2c1cacfd32
/HaoPy/develop/deploy_intranet.py
120e9611c42b1c7682b7ace0fc7687230cd9ddca
[]
no_license
haosky/HaoDT
ebdda5d1cc6021f03c8c534e1799921b1b278ab3
fb8e3b4636a46edf8cd6ac32b55e060883ea5936
refs/heads/master
2021-01-22T22:34:04.044946
2017-09-12T05:56:26
2017-09-12T05:56:26
85,549,886
0
0
null
null
null
null
UTF-8
Python
false
false
1,854
py
deploy_intranet.py
# -*- coding: utf-8 -*- from fabric.api import * from fabric.context_managers import * __author__ = 'hao' #指定需要部署的机器 # env.host_string = "gx.master" env.host_string = "192.168.1.122" #指定部署机器的用户 env.user = "root" #指定部署的机器的path dist_dir = "/extDisk/work" #指定启动的入口 # run_py = "gxthrift/eshandler/services/search_data_...
8f904aa392a2d6d6ec7323ea8db4cc00c782c11e
28f83582f02bfbec4e0ee32924913260093549ee
/fercam/transport/migrations/0005_auto_20201008_1153.py
eac9a93065443b0d20d0037dd8e4a9ccbc7aee35
[]
no_license
fabianomobono/transport
9b8ce8457d1edc3bb1479e3efb4870ba64060403
302821b8423ba4ef5e60971a50521a0a31729cb1
refs/heads/main
2023-02-09T11:40:54.875356
2021-01-04T15:07:58
2021-01-04T15:07:58
314,293,625
1
0
null
null
null
null
UTF-8
Python
false
false
649
py
0005_auto_20201008_1153.py
# Generated by Django 3.1.1 on 2020-10-08 15:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('transport', '0004_auto_20201008_1135'), ] operations = [ migrations.RemoveField( model_name='order', name='internati...
087052cbfddf6ee9dbfafc6caa68df34889e334e
2eac99a2c8a46d0058e2a8b4cf7d9a8083769aae
/ChatBotFile.py
bde635b42e751bda8f75f47c99f7c7deecdeb81b
[]
no_license
Sagar409-conflict/Interview-By-Machine
3a781caa28f1a03f0baba8aedc7ebb4460d43051
a0f3e0b6c0181f83a67b4fb156405cfac4f5ce3f
refs/heads/main
2023-04-18T22:41:40.304108
2021-05-08T12:16:32
2021-05-08T12:16:32
365,471,664
0
0
null
null
null
null
UTF-8
Python
false
false
1,924
py
ChatBotFile.py
# -*- coding: utf-8 -*- """ Created on Thu Apr 1 15:21:27 2021 @author: SAGAR """ from chatterbot import ChatBot from chatterbot.trainers import ListTrainer my_bot = ChatBot(name='PyBot', read_only=True, logic_adapters = ['chatterbot.logic.MathematicalEvaluation', 'chatterbot.logic...
6373daee43e8cfe09a6ceb9cb41a11637d6faab4
82db9b4899f30b37666534f870b56d3ff99bec26
/leetcode/linked/leetcode_206.py
aad04545bb56e698b2b6f2ed112571c01fcff416
[]
no_license
xp-zhao/learn-python
291835d7b5a5780d16e5c99f123f2ebaa9b52da0
ea234966354a322d175a96641a9e3638f315970a
refs/heads/master
2022-05-31T22:35:36.239878
2022-03-25T09:05:18
2022-03-25T09:47:18
197,163,887
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
leetcode_206.py
class ListNode(object): def __init__(self, val=None): self.val = val self.next = None def __str__(self): return "{val}->{next}".format(val=self.val, next=self.next) def reverse(head_node): pre_node = None while head_node is not None: next_node = head_node.next ...
1572f5bb34e1257479eeff2ed54679de4efab6da
f06279fed0d9d6d409659835686a3d4e8b483bb0
/历史文件/python学习.py
6c9a837d89bf6c13ddeb0504ea96d7bee0ab16d0
[]
no_license
hanpiness/history_study
83a3fecfaead9ba0c36464fa8c63f9dc7893ec92
e3f911ec35d51226d8ee3d8e4e09e8e03b631d5f
refs/heads/main
2023-02-25T00:06:00.813285
2021-01-24T00:46:14
2021-01-24T00:46:14
330,544,362
0
0
null
null
null
null
UTF-8
Python
false
false
19,859
py
python学习.py
#输出输入 #print("HELLO WORLD") #print("hello","world")#遇到逗号,输出一个空格 #print("100+200=",100+200) #name=input()#输入 #print(name)#输出 #name=input("please enter your name:")#不可回车 #print("hello,",name) #print("1024 * 768 = ",1024*768) #print("i\'m learning\npython") #用r''表示''中的字符不需要转义 #print(r'\\\t\\') #print('...
f03f11f1d311f4b00f86c55a86654a6560e63379
90dde0567a4c14025ff0845fd48704216a3213da
/tests/test_base/test_models.py
202a33ca8ae10714060625eb296c7478cfafdf66
[]
no_license
Actionb/MIZDB
f8d0e8b2abc15ac4c87c505c5e0a8906a27f3113
53b5b5aa8da6790fe96d515a743aaba311981032
refs/heads/master
2023-09-04T02:00:50.382422
2023-08-01T07:45:28
2023-08-01T07:45:28
98,796,822
0
0
null
2023-07-03T07:01:08
2017-07-30T12:44:54
Python
UTF-8
Python
false
false
10,567
py
test_models.py
from unittest import mock from unittest.mock import Mock, patch from django.contrib.auth import get_permission_codename from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.core import checks from django.db import models as django_models from dbentry...
3b38871ad85d9595fd4040761f875a1a84d93d2a
51c4f588c5692edf802d5aecff89de2e92ba7464
/webconfig/models.py
d1543063be604f727dfce5677bae6871b143dead
[]
no_license
esnet/eZeeKonfigurator
e884e0fda4c6283a2837a61a6ef5442d771e1b21
d4b0d2382be550e2af46aeaf0ac02aab9b694668
refs/heads/main
2023-08-15T06:15:14.742422
2022-07-05T23:26:57
2022-07-05T23:26:57
212,345,025
3
1
null
2023-07-22T17:45:47
2019-10-02T13:11:01
Python
UTF-8
Python
false
false
34,200
py
models.py
import datetime import ipaddress import json import re from django.contrib.contenttypes.fields import GenericForeignKey, \ GenericRelation from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.db i...
0f5de0df8b880188592c0e6be3c32c80e59e0cdd
06e897ed3b6effc280eca3409907acc174cce0f5
/plugins/i18n_subsites/__init__.py
7dfbde09e42950bbd35d7f575da35cede36fd141
[ "AGPL-3.0-only", "MIT" ]
permissive
JackMcKew/jackmckew.dev
ae5a32da4f1b818333ae15c6380bca1329d38f1e
b5d68070b6f15677a183424c84e30440e128e1ea
refs/heads/main
2023-09-02T14:42:19.010294
2023-08-15T22:08:19
2023-08-15T22:08:19
213,264,451
15
8
MIT
2023-02-14T21:50:28
2019-10-07T00:18:15
JavaScript
UTF-8
Python
false
false
29
py
__init__.py
from .i18n_subsites import *
f728286fd4ee26683f11457c4fb77c88d083b79c
3363b930ab04129b64b60ed45f867342602c4ece
/Skydipper/utils.py
4e736966fe4b4f3f84ee1d2f40f9848eebf8457a
[ "MIT" ]
permissive
Skydipper/Skydipper
6741d70f18b59336880caed6beb71ce9ed7025f2
4e3a5e474706df7272ffc11ef4e0bcc5d46ed36a
refs/heads/master
2020-06-03T14:28:38.811429
2020-05-20T16:13:22
2020-05-25T10:50:34
191,604,454
0
0
MIT
2020-03-24T02:15:43
2019-06-12T16:07:55
Python
UTF-8
Python
false
false
24,878
py
utils.py
import json import math import ee from time import sleep from google.cloud import storage def html_box(item): """Returns an HTML block with template strings filled-in based on item attributes.""" is_layer = str(type(item)) == "<class 'Skydipper.layer.Layer'>" is_dataset = str(type(item)) == "<class 'Skydip...
cda4aaf9a89c4b75827c6ccb62234e6cf0b6669e
4e37061987692e53faa6ed12c81d546154992081
/2017/day1.py
fd9cebd0652f3ac464df3e193276393743bf6c1d
[]
no_license
varunagrawal/advent-of-code
e1745cbc97de06f927ab1bfde1036fa49f0a864e
9f0a452f742f3d37da51a116ef0d79fa04a37415
refs/heads/master
2021-03-27T09:09:41.335140
2018-12-07T20:36:24
2018-12-07T20:36:24
113,606,443
0
0
null
null
null
null
UTF-8
Python
false
false
2,399
py
day1.py
def part1(s): sum = 0 for i in range(len(s)): if s[i] == s[(i+1) % len(s)]: sum += int(s[i]) return sum input = """683763347952248558274598352939674972954641755898815882568823446994735954139126882786472358625661232339839216625787929174539127953527464265126499656159195885121255671868374...
3eae5f651b02ea979a589037febe0defd3674e34
6a609bc67d6a271c1bd26885ce90b3332995143c
/exercises/string/substring_minimum_window.py
825e3d4d989a422f93d838f3aaba5ac0d973de60
[]
no_license
nahgnaw/data-structure
1c38b3f7e4953462c5c46310b53912a6e3bced9b
18ed31a3edf20a3e5a0b7a0b56acca5b98939693
refs/heads/master
2020-04-05T18:33:46.321909
2016-07-29T21:14:12
2016-07-29T21:14:12
44,650,911
0
0
null
null
null
null
UTF-8
Python
false
false
2,004
py
substring_minimum_window.py
# -*- coding: utf-8 -*- """ Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers all characters in T, return the empty string ...
4121d5e0664a299668eebb0882c75f4ad2af031b
771d0def5238a2b311639853d784841ccd57ce4e
/BTRNN-release/experiment_UCF11.py
dfb7219f134bf3c2cff75330509cb3c46d003a75
[]
no_license
TripleEss/Block-term-Tensor-Neural-Networks
4869c7d786425803b29698615000ccbd686e7664
9c0f4a64b4a3eb76a56f272feccbcca7469faa23
refs/heads/master
2023-01-11T10:28:39.117990
2020-02-19T10:11:17
2020-02-19T10:11:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,167
py
experiment_UCF11.py
# Created by ay27 at 08/10/2017 from keras.optimizers import Adam import utils from dataset.UCF11 import * from BT_RNN.BTRNN import * from TT_RNN.TTRNN import * import sys from keras.layers import Input, SimpleRNN, LSTM, GRU, Dense, Masking from keras.models import Model from keras.regularizers import l2 from keras.ca...
b422bc3b1b94e79ad9c8895ab7266d131a5758dc
13d91576bea5bde4d0eeb3dddefde4846737cb7e
/tests/cli/test_cli.py
2fbcd9c27159504f048da227eed0635a155cfd96
[ "Apache-2.0" ]
permissive
awesome-archive/BentoML
50d2bcf0c954cc84d5921132d00f8ba20a809bea
9a1d21a014ab11dc235ddf878d590ec7c496f291
refs/heads/master
2021-12-15T16:04:36.558934
2019-09-18T00:47:45
2019-09-18T00:47:45
209,198,692
0
0
Apache-2.0
2020-01-10T11:06:44
2019-09-18T02:23:10
null
UTF-8
Python
false
false
846
py
test_cli.py
import os import tempfile import json from click.testing import CliRunner from bentoml.cli import create_bento_service_cli def generate_test_input_file(): import uuid random_id = uuid.uuid4().hex tempdir = tempfile.mkdtemp() file_path = os.path.join(tempdir, random_id + ".json") with open(file_...
d76f00198751c74c945c6e88b8303998e3e75ac9
b39135db26ecb962d6585471dad936032e685c08
/config/__init__.py
8216dc5f806a9abb46ab3acdf58492041a3d0fa9
[]
no_license
ncfSupplyChian/supplyChainAI
1734a89d8a1764c9d2e4d2fbce77f8f041797c5d
ad06819274ff3cec6aebbfd7872be86ed9c61cfa
refs/heads/master
2021-09-03T16:14:05.232047
2018-01-10T10:16:48
2018-01-10T10:16:48
115,499,555
2
2
null
null
null
null
UTF-8
Python
false
false
912
py
__init__.py
# -*- coding:utf-8 -*- import importlib # use development by default config = { 'development': ['development', 'DevelopmentConfig'], 'testing': ['testing', 'TestingConfig'], 'production': ['production', 'ProductionConfig'], 'default': ['development_sample', 'DevelopmentConfig'], } def load_default():...
850475ef2a4358622d4513e96e1a65b44bf1823b
05e3c7d0db58cd11680afd2390d9cf2e382b2f93
/GUI.py
76260bd4e230aa613713f88e90cde59a7e0abf36
[]
no_license
marius-ne/MailSort
9850faaa0334e2272b6aed27d942d6ccbde6f194
416f18e63df4747a2f8212ed7b3bd8d03a12b99c
refs/heads/master
2023-04-24T01:09:48.672601
2021-05-14T14:51:11
2021-05-14T14:51:11
317,361,862
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
GUI.py
from ReadPhone import ReadPhone import tkinter import serial import time class GUI(object): def __init__(self): self.gui() def _take_photo(self): _ = ReadPhone() def gui(self): gui = tkinter.Tk() gui.title('PhoneGui') msg = tkinter.Label(text='Take photo'...
80eb7e50784cefefdea88362bff7206131646eb2
94c793592bcfb0617031c4ebe4b7e67f5fbba681
/src/clearbit.py
7ca54b4137c070ea0952cbecc078313f15e09266
[ "MIT" ]
permissive
davidkowalk/UkGov-Company-Harvest
6b1c497df9c293a1849255548da4e896bea24123
caf943416c0c65b84a6d99040d98627e6dae5d7d
refs/heads/master
2022-04-18T16:57:04.517463
2020-04-18T22:39:27
2020-04-18T22:39:27
229,499,951
1
0
null
null
null
null
UTF-8
Python
false
false
371
py
clearbit.py
from json import loads as parse import webloader from urllib.parse import quote_plus as url def autocomplete(name): try: http_name = url(name) content = webloader.load(f"https://autocomplete.clearbit.com/v1/companies/suggest?query={http_name}") json = parse(content) return json ...
18341652269b29700a20c681c4a5c955c092bfa6
fa3b05e49e002936bd7ce7788baf3ae953e222f2
/setup.py
e83f4df84afbc90e321ec58dafcc3f1c50b781a4
[ "BSD-2-Clause" ]
permissive
stephenfin/rst2txt
3199e7f6a3e06fdde9788c858ad8d194463802bb
db1465a90325d2a0800f5a9efdc4149f18f06aef
refs/heads/master
2021-06-13T07:47:27.478699
2021-04-01T07:35:40
2021-04-01T07:35:40
157,217,523
3
1
BSD-2-Clause
2021-04-01T07:35:41
2018-11-12T13:26:14
Python
UTF-8
Python
false
false
194
py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup setup( entry_points={ 'console_scripts': [ 'rst2txt = rst2txt:main', ], }, use_scm_version=True, )
bbcc9f18913ae558cefc44b40ad56c506e829f86
031734b39ec4729a78e5382764f771ff77d4b291
/const.py
598a979affa980852c9d858203112dff42f8cfbf
[]
no_license
JoaoFelipe/Flappybot
9b9484a129f6e92d24cfda7a23306bc9c9a760d4
01211b9dea99a4b8cda98ae8ee93b3dfe818edb4
refs/heads/master
2016-09-06T11:27:51.833553
2014-02-13T17:47:50
2014-02-13T17:47:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
const.py
X_PAD = 1060 Y_PAD = 309 WIDTH = 500 HEIGHT = 700 GET_READY = (245, 224) START_BUTTON = (147, 572) END_GAME_OK = (169, 502) FLOOR_Y = 616 FLOOR_SECURITY = 80 BIRD_X = 119 BIRD_FRONT_X = 155 DILATE_COLLISION = 10 PLAYABLE_BOX = (X_PAD+1, Y_PAD+1, X_PAD+WIDTH, Y_PAD+FLOOR_Y) GAME_OVER_BOX = (X_PAD+55, Y_PAD+268, X_PAD...
b6caf6f57028dfe06b44b4df22c9dae287009fe5
1e4d57c3e4bc39e06a70bd88fa085d82a3b7ba14
/Exercise 4.py
579800b6d7442440512215b6d669cdc58d6ec605
[]
no_license
Sameer-472/Python-Exercises
9c71eb090c004fc1c990e1922363509220100822
10f9a39841cc8861ba7c74912ce95b42f5101719
refs/heads/main
2023-03-21T02:24:45.393285
2021-03-06T06:12:42
2021-03-06T06:12:42
326,356,989
1
0
null
null
null
null
UTF-8
Python
false
false
327
py
Exercise 4.py
# Astro star program a = int(input("Enter no of rows:")) b = bool(int(input("Entr 1 for True and 0 for False:"))) def star(a,b): c = 1 if b == True: while c <= a: print(c*"*") c = c+1 else: while a > 0: print(a*"*") a = a-1 st...