max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
117
max_stars_count
int64
0
95.2k
id
stringlengths
1
7
content
stringlengths
12
593k
input_ids
listlengths
7
549k
server/src/db_test_read.py
frederik14/tabletennis_dashboard
0
1608920
<filename>server/src/db_test_read.py<gh_stars>0 from base import Session from game import Game from player import Player session = Session() # 3 - extract all movies players = session.query(Player).all() # 4 - print movies' details print('\n### All players:') for player in players: print(f'{player.name} has rank...
[ 1, 529, 9507, 29958, 2974, 29914, 4351, 29914, 2585, 29918, 1688, 29918, 949, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 2967, 1053, 16441, 13, 3166, 3748, 1053, 8448, 13, 3166, 4847, 1053, 14574, 13, 13, 7924, ...
src/6/reading_and_writing_binary_arrays_of_structures/readrecords.py
tuanavu/python-gitbook
14
78096
from struct import Struct def read_records(format, f): record_struct = Struct(format) chunks = iter(lambda: f.read(record_struct.size), b'') return (record_struct.unpack(chunk) for chunk in chunks) # Example if __name__ == '__main__': with open('data.b','rb') as f: for rec in read_records('<id...
[ 1, 515, 2281, 1053, 28771, 13, 13, 1753, 1303, 29918, 3757, 4339, 29898, 4830, 29892, 285, 1125, 13, 1678, 2407, 29918, 4984, 353, 28771, 29898, 4830, 29897, 13, 1678, 521, 18801, 353, 4256, 29898, 2892, 29901, 285, 29889, 949, 29898, 1...
restServiceTest.py
neueda/voting-machine
0
112494
<reponame>neueda/voting-machine import unittest import restService class RestServiceTest(unittest.TestCase): def test_valid_check_date(self): date_to_check = '2015-01-02' try: restService.check_date(date_to_check, 'valid date') except TypeError: self.fail('valid da...
[ 1, 529, 276, 1112, 420, 29958, 484, 6742, 29874, 29914, 29894, 11427, 29899, 23523, 13, 5215, 443, 27958, 13, 13, 5215, 1791, 3170, 13, 13, 13, 1990, 11654, 3170, 3057, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 1243, ...
2016/day_23.py
nabiirah/advent-of-code
24
97726
<filename>2016/day_23.py """Advent of Code Day 23 - Safe Cracking""" from collections import defaultdict def is_num(s): """Determine whether a string is a number or not.""" try: int(s) except ValueError: return False return True def do_ops(start_a): """Carry out operations and r...
[ 1, 529, 9507, 29958, 29906, 29900, 29896, 29953, 29914, 3250, 29918, 29906, 29941, 29889, 2272, 13, 15945, 29908, 3253, 794, 310, 5920, 8373, 29871, 29906, 29941, 448, 5701, 1725, 14279, 384, 292, 15945, 29908, 13, 13, 3166, 16250, 1053, ...
openeew/time_utils.py
waidyanatha/openeew-detection
1
193460
from time import time from numpy import arange, mean def set_time(times, sample_rate, samples): """ times = time stamps by fifo in each payload sample_rate = sample rate samples = number of data samples """ fifos = len(times) differences = [] if fifos > 1: for index, time in...
[ 1, 515, 931, 1053, 931, 13, 13, 3166, 12655, 1053, 564, 927, 29892, 2099, 13, 13, 13, 1753, 731, 29918, 2230, 29898, 3706, 29892, 4559, 29918, 10492, 29892, 11916, 1125, 13, 1678, 9995, 13, 1678, 3064, 353, 931, 380, 15092, 491, 8461,...
mnml.py
garethr/mnml
2
186346
#!/usr/bin/env python """ MNML WSGI Web Framework A small python glue framework for building web applications and services that run atop WSGI compliant servers. The emphasis is on HTTP best practices, readble code and allowing applications to be built with using whatever other python modules you like. MNML has bor...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 15945, 29908, 13, 29924, 29940, 1988, 399, 26016, 29902, 2563, 16657, 13, 13, 29909, 2319, 3017, 3144, 434, 6890, 363, 5214, 1856, 8324, 322, 5786, 393, 29871, 13, 3389, 472, 459, ...
JIG.py
mmg1/JIG
28
11846
<reponame>mmg1/JIG import re import sys from itertools import izip as zip import argparse import requests # argparse definitions parser = argparse.ArgumentParser(description='Jira attack script') parser.add_argument('URL', type=str , help='the URL of the Jira instance... ex. https://jira.organization.com/') p...
[ 1, 529, 276, 1112, 420, 29958, 4317, 29887, 29896, 29914, 29967, 6259, 13, 5215, 337, 30004, 13, 5215, 10876, 30004, 13, 3166, 4256, 8504, 1053, 5951, 666, 408, 14319, 30004, 13, 5215, 1852, 5510, 30004, 13, 5215, 7274, 30004, 13, 30004...
setup.py
agateau/nanoci
0
110905
#!/usr/bin/env python3 # encoding: utf-8 """ Nanoci, a minimalist continuous integration server :copyright: 2015 <NAME>. :license: BSD. """ import os from setuptools import setup import nanoci DESCRIPTION = 'Minimalist continuous integration server' setup(name=nanoci.__appname__, version=nanoci.__version__, ...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 8025, 29901, 23616, 29899, 29947, 13, 15945, 29908, 13, 29940, 1562, 455, 29892, 263, 13114, 391, 9126, 13465, 1923, 13, 13, 29901, 8552, 1266, 29901, 29871, 29906, 29900, ...
mindhome_alpha/erpnext/stock/doctype/batch/test_batch.py
Mindhome/field_service
1
28340
<reponame>Mindhome/field_service # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.exceptions import ValidationError import unittest from erpnext.stock.doctype.batch.batch imp...
[ 1, 529, 276, 1112, 420, 29958, 29924, 513, 5184, 29914, 2671, 29918, 5509, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29945, 29892, 7347, 4798, 8364, 11763, 349, 21908, 29889, 19806, 29889, 322, 2866, 1091, 29560...
pymatgen/io/lammps/tests/test_output.py
katherinelatimer2013/pymatgen
0
140194
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import import os import unittest import numpy as np from pymatgen.io.lammps.output import LammpsRun, LammpsLog, LammpsDump _...
[ 1, 396, 14137, 29901, 23616, 29899, 29947, 13, 29937, 14187, 1266, 313, 29883, 29897, 349, 962, 271, 1885, 14650, 8583, 29889, 13, 29937, 6652, 7541, 1090, 278, 4958, 310, 278, 341, 1806, 19245, 29889, 13, 13, 3166, 4770, 29888, 9130, 1...
atari/atari.py
neevparikh/lwm
17
41681
<filename>atari/atari.py<gh_stars>10-100 import torch from gym.spaces.box import Box from baselines import bench from baselines.common.vec_env.shmem_vec_env import ShmemVecEnv from baselines.common.atari_wrappers import wrap_deepmind, make_atari from baselines.common.vec_env import VecEnvWrapper def make_vec_envs(nam...
[ 1, 529, 9507, 29958, 271, 1306, 29914, 271, 1306, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 4842, 305, 13, 3166, 330, 962, 29889, 22854, 29889, 1884, 1053, 11773, 13, 3166, 236...
v401/python/rechnung.py
chrbeckm/anfaenger-praktikum
2
129164
import numpy as np import uncertainties.unumpy as unumpy from uncertainties import ufloat from scipy.stats import sem print('Wellenlaenge') dd1, za = np.genfromtxt('python/wellenlaenge.txt', unpack=True) dd = (dd1*10**(-3))/5.017 lam = 2 * dd / za mlam = np.mean(lam) slam = sem(lam) rlam = ufloat(mlam, slam) np.savetx...
[ 1, 1053, 12655, 408, 7442, 13, 5215, 443, 6327, 2365, 583, 29889, 348, 398, 2272, 408, 443, 398, 2272, 13, 3166, 443, 6327, 2365, 583, 1053, 318, 7411, 13, 3166, 4560, 2272, 29889, 16202, 1053, 3031, 13, 13, 2158, 877, 29956, 4919, ...
src/towerData.py
jahrmarkt/TowerGame
0
39552
from enum import Enum from pygame.sprite import * pygame.init() pygame.mixer.init() size = (width, height) = 512, 704 screen = pygame.display.set_mode(size) def loadTower(n): filename = "assets/sprites/towers/" + n + ".png" return pygame.image.load(filename).convert_alpha() def loadProjectile(n): ...
[ 1, 29871, 13, 3166, 14115, 1053, 1174, 398, 13, 3166, 22028, 29889, 15099, 568, 1053, 334, 13, 13, 13, 2272, 11802, 29889, 2344, 580, 13, 2272, 11802, 29889, 28084, 261, 29889, 2344, 580, 13, 2311, 353, 313, 2103, 29892, 3171, 29897, ...
skos/method.py
edmondchuc/voc-view
3
15192
<filename>skos/method.py from pyldapi.renderer import Renderer from pyldapi.view import View from flask import render_template, Response from rdflib import Graph, URIRef, BNode import skos from skos.common_properties import CommonPropertiesMixin from config import Config class Method(CommonPropertiesMixin): def ...
[ 1, 529, 9507, 29958, 808, 359, 29914, 5696, 29889, 2272, 13, 3166, 11451, 430, 2754, 29889, 9482, 261, 1053, 26000, 261, 13, 3166, 11451, 430, 2754, 29889, 1493, 1053, 4533, 13, 3166, 29784, 1053, 4050, 29918, 6886, 29892, 13291, 13, 31...
utils/tsne.py
rafarez/paiss
3
100597
from sklearn.decomposition import PCA from sklearn.manifold import TSNE import time import matplotlib import matplotlib.pyplot as plt import numpy as np import matplotlib.colors as colors import matplotlib.cm as cmx import os np.random.seed(0) def do_tsne(feats, labs, cls, show_unlabeled=False, sec='', savefig=True):...
[ 1, 515, 2071, 19668, 29889, 311, 510, 3283, 1053, 349, 5454, 13, 3166, 2071, 19668, 29889, 1171, 361, 1025, 1053, 323, 29903, 8186, 13, 5215, 931, 13, 5215, 22889, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 12655, 408, ...
thing_gym_ros/envs/utils.py
utiasSTARS/thing-gym-ros
1
4301
<gh_stars>1-10 """ Various generic env utilties. """ def center_crop_img(img, crop_zoom): """ crop_zoom is amount to "zoom" into the image. E.g. 2.0 would cut out half of the width, half of the height, and only give the center. """ raw_height, raw_width = img.shape[:2] center = raw_height // 2, raw_wid...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 9586, 681, 10035, 8829, 3667, 2938, 29889, 9995, 13, 13, 1753, 4818, 29918, 29883, 1336, 29918, 2492, 29898, 2492, 29892, 274, 1336, 29918, 2502, 290, 1...
anuga/file_conversion/tests/test_2pts.py
samcom12/anuga_core
136
124193
# external modules import unittest import tempfile import shutil import numpy as num # ANUGA modules from anuga.shallow_water.shallow_water_domain import Domain from anuga.coordinate_transforms.geo_reference import Geo_reference from anuga.file.sww import Write_sww, SWW_file from anuga.abstract_2d_finite_volumes.gene...
[ 1, 396, 7029, 10585, 13, 5215, 443, 27958, 13, 5215, 5694, 1445, 13, 5215, 528, 4422, 13, 5215, 12655, 408, 954, 13, 13, 29937, 319, 11601, 12739, 10585, 13, 3166, 385, 26281, 29889, 845, 9536, 29918, 13405, 29889, 845, 9536, 29918, 1...
1-mouth01/project_month01/exe01.py
gary-gggggg/gary
4
146119
<filename>1-mouth01/project_month01/exe01.py<gh_stars>1-10 class CommodityModel: def __init__(self, cid=0, name="", price=0, cm=0): self.cid = cid self.name = name self.price = price self.cm = cm def __str__(self): return f"商品名称是{self.name},编号是{self.cid},价格是{self.price},...
[ 1, 529, 9507, 29958, 29896, 29899, 21026, 29900, 29896, 29914, 4836, 29918, 10874, 29900, 29896, 29914, 8097, 29900, 29896, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1990, 422, 1545, 537, 3195, 29901,...
examples/simple.py
tomamore/AnyDeck
0
50405
from anydeck import AnyDeck # Create a default deck # A default deck consists of a standard deck of poker cards with four suits with cards numbered 2 through 10, as well # as a Jack, Queen, King, and Ace for each suit. The standard deck gives a value to the card equal to their # face value further Jack, Queen, and Kin...
[ 1, 515, 738, 16565, 1053, 3139, 2772, 384, 13, 13, 29937, 6204, 263, 2322, 19810, 13, 29937, 319, 2322, 19810, 11624, 310, 263, 3918, 19810, 310, 11293, 261, 15889, 411, 3023, 480, 1169, 411, 15889, 1353, 287, 29871, 29906, 1549, 29871,...
data-exporter/brix/settings.py
dzwiedziu-nkg/credo-api-tools
0
35066
<reponame>dzwiedziu-nkg/credo-api-tools import csv DIR = 'credo-data-export/detections' CSV = 'credo-data-export/credocut.tsv' PLOT = 'credo-data-export/credocut.plot' JSON = 'credo-data-export/credocut.json' DEVICES = 'credo-data-export/device_mapping.json' PNG = 'credo-data-export/png' CREDOCUT = 10069 DELIMITER='\...
[ 1, 529, 276, 1112, 420, 29958, 5601, 29893, 1000, 2526, 29884, 29899, 29876, 9415, 29914, 1037, 1867, 29899, 2754, 29899, 8504, 13, 5215, 11799, 13, 13, 9464, 353, 525, 1037, 1867, 29899, 1272, 29899, 15843, 29914, 29881, 2650, 1953, 2991...
python/python.py
TimVan1596/ACM-ICPC
1
38367
import xlwt if __name__ == '__main__': workbook = xlwt.Workbook(encoding='utf-8') # 创建workbook 对象 worksheet = workbook.add_sheet('sheet1') # 创建工作表sheet # 往表中写内容,第一各参数 行,第二个参数列,第三个参数内容 worksheet.write(0, 0, 'hello world') worksheet.write(0, 1, '你好') workbook.save('first.xls') # 保存表为students.x...
[ 1, 1053, 921, 29880, 14554, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 664, 2909, 353, 921, 29880, 14554, 29889, 26501, 29898, 22331, 2433, 9420, 29899, 29947, 1495, 29871, 396, 29871, 31441, 30886, 1287, ...
src/mount_efs/__init__.py
Sodki/efs-utils
0
3899
#!/usr/bin/env python # # Copyright 2017-2018 Amazon.com, Inc. and its affiliates. All Rights Reserved. # # Licensed under the MIT License. See the LICENSE accompanying this file # for the specific language governing permissions and limitations under # the License. # # # Copy this script to /sbin/mount.efs and make sur...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29955, 29899, 29906, 29900, 29896, 29947, 16631, 29889, 510, 29892, 9266, 29889, 322, 967, 23736, 1078, 29889, 2178, 26863, 2538, ...
pyjokes/jokes_pl.py
r0d0dendr0n/pyjokes
0
19112
<gh_stars>0 # -*- coding: utf-8 -*- """ Jokes below come from the "jokes_en.py" file. Translation to Polish: <NAME> - provided under CC BY-SA 3.0 """ neutral = [ "W 2030 roku Beata z ulgą usunęła Python'a 2.7 ze swoich maszyn. 'No!' westchnęła, by za chwilę przeczytać ogłoszenia na temat Python'a 4.4.", "Zapy...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 15945, 29908, 13, 29967, 23195, 2400, 2041, 515, 278, 376, 29926, 23195, 29918, 264, 29889, 2272, 2...
src/rank.py
pontushojer/NAIBR
10
192883
<filename>src/rank.py<gh_stars>1-10 from __future__ import print_function,division import os,sys,subprocess,pysam,collections,time,gc,math,json,copy import scipy.stats,operator,itertools import multiprocessing as mp from utils import * import numpy as np from global_vars import * import linecache class CandSplitM...
[ 1, 529, 9507, 29958, 4351, 29914, 10003, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 29892, 4563, 2459, 13, 5215, 2897, 29892, 9675, 29892, 1491...
twindb_backup/modifiers/gzip.py
akuzminsky/twindb-mysql-backup
1
14279
<gh_stars>1-10 # -*- coding: utf-8 -*- """ Module defines modifier that compresses a stream with gzip """ from contextlib import contextmanager from subprocess import Popen, PIPE from twindb_backup.modifiers.base import Modifier class Gzip(Modifier): """ Modifier that compresses the input_stream with gzip. ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 7355, 17645, 878, 3709, 393, 27122, 267, 263, 4840, 411, 330, 75...
DataAnalysis/GraphTools/GraphEditingTools.py
AdamSwenson/TwitterProject
0
90832
""" Tools for editing and reshaping graphs """ import networkx as nx def prune_below_degree(graph, minimum_degree=1): """ Trim nodes from graph below threshold Args: graph: NetworkX graph object to prune minimum_degree: Integer of the minimum connections a node must have Ret...
[ 1, 9995, 13, 24183, 363, 16278, 322, 620, 29882, 21430, 18445, 13, 15945, 29908, 13, 13, 5215, 3564, 29916, 408, 302, 29916, 13, 13, 13, 1753, 544, 1540, 29918, 22503, 29918, 12163, 929, 29898, 4262, 29892, 9212, 29918, 12163, 929, 2992...
constants.py
andodevel/rmbg
0
178590
from enum import Enum class TFLogLevel(Enum): ALL = '0' # All WARN = '1' # INFO not printed ERROR = '2' # INFO and WARN not printed OFF = '3' # OFF CPU_DEVICE = "-1"
[ 1, 515, 14115, 1053, 1174, 398, 13, 13, 13, 1990, 323, 29943, 3403, 10108, 29898, 16854, 1125, 13, 1678, 15149, 353, 525, 29900, 29915, 29871, 396, 2178, 13, 1678, 399, 15249, 353, 525, 29896, 29915, 29871, 396, 15233, 451, 13350, 13, ...
Industry_index/indexget.py
wisonhang/Shiny_report
0
100821
<gh_stars>0 import tushare as ts import os import pandas as pd import numpy as np from datetime import datetime as dt from datetime import timedelta import urllib import csv import datetime import json import sqlite3 import time import schedule os.chdir('/home/dwhang/project/dwhang/Industry_index/') def index_download...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 260, 1878, 598, 408, 18696, 13, 5215, 2897, 29871, 13, 5215, 11701, 408, 10518, 13, 5215, 12655, 408, 7442, 13, 3166, 12865, 1053, 12865, 408, 11636, 13, 3166, 12865, 1053, 5335, ...
CURSO PYTHON/exerciciosSecao1e2/exe004.py
Sabrinaparussoli/PYTHON
0
171681
<gh_stars>0 x = 0 soma = 0 i = 0 while x != -1: x = int(input('digite uma idade: ')) if x != -1: soma += x i += 1 print(soma/i)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29916, 353, 29871, 29900, 13, 29879, 4125, 353, 29871, 29900, 13, 29875, 353, 29871, 29900, 13, 8000, 921, 2804, 448, 29896, 29901, 13, 259, 921, 353, 938, 29898, 2080, 877, 7501, 568, ...
examples/session/session-reservation.py
tdunkle/grpc-device
0
135010
r"""Initiate a session and exercise some common reservation operations on the session. This particular example is using NI-SCOPE but the session reservation API should work for any driver session. The gRPC API is built from the C API. NI-SCOPE documentation is installed with the driver at: C:\Program Files (x86)\IV...
[ 1, 364, 15945, 29908, 797, 4812, 403, 263, 4867, 322, 15058, 777, 3619, 620, 20525, 6931, 373, 278, 4867, 29889, 13, 13, 4013, 3153, 1342, 338, 773, 405, 29902, 29899, 29903, 3217, 4162, 541, 278, 4867, 620, 20525, 3450, 881, 664, 363...
syft/utils.py
morgangiraud/PySyft
1
126388
<filename>syft/utils.py from IPython.display import display from IPython.html.widgets import IntProgress, HBox, HTML import signal import logging class Progress(object): def __init__(self,start,end): self.pbar = IntProgress(orientation='horizontal',min=start, max=end) self.ptext = HTML() ...
[ 1, 529, 9507, 29958, 29879, 29891, 615, 29914, 13239, 29889, 2272, 13, 3166, 5641, 1656, 29889, 4990, 1053, 2479, 13, 3166, 5641, 1656, 29889, 1420, 29889, 8030, 29879, 1053, 3159, 14470, 29892, 379, 3313, 29892, 4544, 13, 13, 5215, 7182,...
Sorts.py
rstenmark/SortVisualizer
1
117122
<reponame>rstenmark/SortVisualizer<gh_stars>1-10 ''' Graph2D/Sorts.py Author: <NAME> <<EMAIL>> (rstenmark.github.io) Date: May 16, 2019 ''' from random import randint from sys import maxsize import BarGraph as bg def swap(array, i, j): # Swaps the elements at self.array[i] and self.array[j] k = array...
[ 1, 529, 276, 1112, 420, 29958, 29878, 3510, 3502, 29914, 13685, 16227, 3950, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 12008, 12367, 29906, 29928, 29914, 13685, 29879, 29889, 2272, 13, 1678, 13361, 29901, 529, 5...
functions_advanced/exercise/02_odd_or_even.py
Galchov/python-advanced
0
112516
<reponame>Galchov/python-advanced command = input() numbers_sequence = [int(x) for x in input().split()] odd_numbers = [] even_numbers = [] for number in numbers_sequence: if number % 2 == 0: even_numbers.append(number) else: odd_numbers.append(number) if command == 'Odd': print(sum(odd_n...
[ 1, 529, 276, 1112, 420, 29958, 29954, 284, 305, 586, 29914, 4691, 29899, 328, 16858, 13, 6519, 353, 1881, 580, 13, 20326, 29918, 16506, 353, 518, 524, 29898, 29916, 29897, 363, 921, 297, 1881, 2141, 5451, 580, 29962, 13, 13, 22861, 29...
etl/parsers/etw/Microsoft_Windows_WiFiHotspotService.py
IMULMUL/etl-parser
104
83706
<reponame>IMULMUL/etl-parser<gh_stars>100-1000 # -*- coding: utf-8 -*- """ Microsoft-Windows-WiFiHotspotService GUID : 814182fe-58f7-11e1-853c-78e7d1ca7337 """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CStri...
[ 1, 529, 276, 1112, 420, 29958, 7833, 13309, 29924, 13309, 29914, 300, 29880, 29899, 16680, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899...
Twitter file.py
Vishal313-m/Live-Sentiment-analysis
0
57734
from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import StreamListener import time import json import sentiment_mod as s #consumer key, consumer secret, access token, access secret. ckey="<KEY>" csecret="<KEY>" atoken="<KEY>" asecret="<KEY>" class listener(StreamListener): def on_d...
[ 1, 515, 7780, 1022, 29891, 1053, 13763, 13, 3166, 7780, 1022, 29891, 1053, 438, 6444, 4598, 13, 3166, 7780, 1022, 29891, 29889, 5461, 292, 1053, 13763, 3962, 13, 5215, 931, 13, 5215, 4390, 13, 5215, 19688, 29918, 1545, 408, 269, 13, 1...
matplotlib_venn/_venn2.py
TRuikes/matplotlib-venn
306
32134
<gh_stars>100-1000 ''' Venn diagram plotting routines. Two-circle venn plotter. Copyright 2012, <NAME>. http://kt.era.ee/ Licensed under MIT license. ''' # Make sure we don't try to do GUI stuff when running tests import sys, os if 'py.test' in os.path.basename(sys.argv[0]): # (XXX: Ugly hack) import matplotlib ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 12008, 13, 29963, 2108, 13722, 6492, 1259, 6745, 1475, 29889, 13, 13985, 29899, 16622, 325, 2108, 6492, 357, 29889, 13, 13, 11882, 1266, 2...
src/main/java/refactoringminer/python/typeinference/pythonscripts/CheckTypeString.py
maldil/RefactoringMiner
6
1615026
<reponame>maldil/RefactoringMiner<filename>src/main/java/refactoringminer/python/typeinference/pythonscripts/CheckTypeString.py<gh_stars>1-10 from __future__ import print_function import ast import json import textwrap from pytype import config from pytype.tools.annotate_ast import annotate_ast pytype_out_path = '/p...
[ 1, 529, 276, 1112, 420, 29958, 29885, 2741, 309, 29914, 5620, 7168, 292, 29924, 4983, 29966, 9507, 29958, 4351, 29914, 3396, 29914, 1645, 29914, 999, 7168, 292, 1195, 261, 29914, 4691, 29914, 1853, 262, 1659, 29914, 29886, 1541, 787, 924,...
applications/nationality/management/commands/LoadNumbering.py
dev-easyshares/mighty
0
141551
<reponame>dev-easyshares/mighty<gh_stars>0 from django.conf import settings from mighty.management import ModelBaseCommand from mighty.models import Nationality from mighty.applications.nationality.apps import NationalityConfig as conf import os.path class Command(ModelBaseCommand): def get_queryset(self, *args, ...
[ 1, 529, 276, 1112, 420, 29958, 3359, 29899, 29872, 8995, 845, 5114, 29914, 29885, 523, 29891, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 27977, 29889, 21895, 1053, 8125, 5160, 6255, 13...
routes/web.py
girardinsamuel/api
12
73729
""" Web Routes """ from masonite.routes import Get, Post from src.api.routes import JWTRoutes, TokenRoutes from app.resources.UserResource import UserResource ROUTES = [ Get().route('/', 'WelcomeController@show').name('welcome'), UserResource('/api/user').routes(), TokenRoutes('/token'), JWTRoutes('/...
[ 1, 9995, 2563, 20829, 267, 9995, 13, 3166, 286, 1658, 568, 29889, 27894, 1053, 3617, 29892, 4918, 13, 13, 3166, 4765, 29889, 2754, 29889, 27894, 1053, 435, 29956, 5659, 449, 267, 29892, 25159, 24254, 267, 13, 3166, 623, 29889, 13237, 29...
Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py
moseskim/Expert-Python-Programming-Fourth-Edition
0
8347
<filename>Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py """ "멀티프로세싱"절 예시 `multiprocessing` 모듈을 이용해 새로운 프로세스들을 생성하는 방법을 설명한다. """ from multiprocessing import Process import os def work(identifier): print(f'Hey, I am the process ' f'{identifier}, pid: {os.getpid()}') def main(): ...
[ 1, 529, 9507, 29958, 1451, 3314, 29871, 29953, 29914, 29900, 29929, 448, 450, 4240, 29899, 262, 6674, 307, 985, 292, 3883, 29914, 16121, 29918, 18056, 307, 985, 292, 29889, 2272, 13, 15945, 29908, 13, 29908, 238, 172, 131, 240, 142, 179...
ava_cmds.py
fossabot/ava
0
117329
""" AVA's primary commands file Located here are all of AVA's core commands """ def speak(text=None): """ The voice of AVA """ import pyttsx3 # Initialize the engine engine = pyttsx3.init(driverName=None, debug=True) # Get and set female voice, because in this case Ava is a female. v...
[ 1, 9995, 13, 26612, 29915, 29879, 7601, 8260, 934, 13, 3524, 630, 1244, 526, 599, 310, 16884, 29909, 29915, 29879, 7136, 8260, 13, 15945, 29908, 13, 13, 1753, 7726, 29898, 726, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 450, 7314, 3...
storm_analysis/sa_library/analysis_io.py
bintulab/storm-analysis
0
129904
#/usr/bin/env python """ Input/Output classes that are used by 3D-DAOSTORM, sCMOS, Spliner and Multiplane analysis. Hazen 09/17 """ import numpy import os import sys from xml.etree import ElementTree import storm_analysis.sa_library.datareader as datareader import storm_analysis.sa_library.parameters as params impor...
[ 1, 396, 29914, 4855, 29914, 2109, 29914, 6272, 3017, 13, 15945, 29908, 13, 4290, 29914, 6466, 4413, 393, 526, 1304, 491, 29871, 29941, 29928, 29899, 7698, 3718, 12054, 29892, 269, 24494, 3267, 29892, 317, 572, 4983, 13, 392, 14974, 22116,...
lewis_emulators/neocera_ltc21/constants.py
ISISComputingGroup/EPICS-DeviceEmulator
2
166595
<reponame>ISISComputingGroup/EPICS-DeviceEmulator """ Constants associated with the NEOCERA. """ # Index in the arrays of the heater output HEATER_INDEX = 0 # Index in the arrays of the analog output ANALOG_INDEX = 1 # Minimum allowed output control type for the output index (see self.control) CONTROL_TYPE_MIN = [0,...
[ 1, 529, 276, 1112, 420, 29958, 3235, 3235, 20606, 292, 4782, 29914, 29923, 2227, 9295, 29899, 11501, 6026, 9183, 13, 15945, 29908, 13, 26570, 6942, 411, 278, 14693, 20166, 1001, 29909, 29889, 13, 15945, 29908, 13, 13, 29937, 11374, 297, ...
project1/srv/api/user.py
mission-liao/flask_template
0
121733
from __future__ import absolute_import from flask import Blueprint, request, jsonify from flask.views import MethodView from flask.ext.login import login_user, logout_user, login_required, current_user from sqlalchemy.exc import IntegrityError from ..api import sql, app from ..utils import hash_password from ...srv imp...
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 3166, 29784, 1053, 10924, 2158, 29892, 2009, 29892, 4390, 1598, 13, 3166, 29784, 29889, 7406, 1053, 8108, 1043, 13, 3166, 29784, 29889, 1062, 29889, 7507, 1053, 6464, 29918, 17...
savu/plugins/utils.py
elainehoml/Savu
39
147875
<filename>savu/plugins/utils.py # Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ 1, 529, 9507, 29958, 29879, 485, 29884, 29914, 12800, 29914, 13239, 29889, 2272, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29946, 22904, 898, 12790, 7562, 19806, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, ...
tests/test_app.py
inmanta/inmanta-core
6
6136
<reponame>inmanta/inmanta-core """ Copyright 2018 Inmanta 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 ...
[ 1, 529, 276, 1112, 420, 29958, 262, 29885, 6949, 29914, 262, 29885, 6949, 29899, 3221, 13, 15945, 29908, 13, 1678, 14187, 1266, 29871, 29906, 29900, 29896, 29947, 512, 29885, 6949, 13, 13, 1678, 10413, 21144, 1090, 278, 13380, 19245, 2989...
teleprox/tests/test_rpc.py
campagnola/teleprox
1
1612777
# -*- coding: utf-8 -*- # Copyright (c) 2016, French National Center for Scientific Research (CNRS) # Distributed under the (new) BSD License. See LICENSE for more info. import threading, time, logging from teleprox import RPCClient, RemoteCallException, RPCServer, QtRPCServer, ObjectProxy, ProcessSpawner from telepro...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29953, 29892, 5176, 3086, 7817, 363, 23753, 928, 10550, 313, 13778, 12445, 29897, 13, 29...
nn_patterns/utils/tests/dryrun.py
pikinder/nn-patterns
15
87952
# Begin: Python 2/3 compatibility header small # Get Python 3 functionality: from __future__ import\ absolute_import, print_function, division, unicode_literals from future.utils import raise_with_traceback, raise_from # catch exception with: except Exception as e from builtins import range, map, zip, filter from i...
[ 1, 396, 14893, 29901, 5132, 29871, 29906, 29914, 29941, 24521, 4839, 2319, 13, 29937, 3617, 5132, 29871, 29941, 9863, 29901, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29905, 13, 1678, 8380, 29918, 5215, 29892, 1596, 29918, 2220, 29892, 8542,...
leetcode/1394.py
GihwanKim/Baekjoon
0
178549
<gh_stars>0 """ File: 1394.py Title: Find Lucky Integer in an Array Difficulty: Easy URL: https://leetcode.com/problems/find-lucky-integer-in-an-array/ """ import unittest from typing import List class Solution: def findLucky(self, arr: List[int]) -> int: table = {} for n in arr:...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 13, 1678, 3497, 29901, 29871, 29896, 29941, 29929, 29946, 29889, 2272, 13, 1678, 18527, 29901, 10987, 365, 14395, 8102, 297, 385, 4398, 13, 1678, 360, 2593, 3953, 29891, 299...
currency.py
furkansahin/InvestmentMonitor
5
84945
<filename>currency.py from copy import deepcopy import requests import time import telepot users = {} token = raw_input('token:') bot = telepot.Bot(token) currencies = {"USD", "TRY", "GBP", "CHF", "JPY", "EUR"} currencies_in_usage = set() def fetch_currency(currencies, to_currency): cur_values = {} query_key...
[ 1, 529, 9507, 29958, 26095, 29889, 2272, 13, 3166, 3509, 1053, 6483, 8552, 13, 5215, 7274, 13, 5215, 931, 13, 5215, 4382, 17765, 13, 13, 7193, 353, 6571, 13, 6979, 353, 10650, 29918, 2080, 877, 6979, 29901, 1495, 13, 7451, 353, 4382, ...
Software for Other Building Blocks and Integration/TxBlockGen.py
fkerem/Cryptocurrency-Blockchain
0
114483
""" TxBlockGen.py """ import DSA from random import * def satoshi(): # To generate a satoshi amount arbitrarily. return str(randint(1, 999)) def BeforeSign(p, q, g, payer_b, payee_b): #The Lines of the Transaction to be Signed transaction = \ "*** Bitcoin transaction ***" + "\n" + \ "S...
[ 1, 9995, 30004, 13, 29911, 29916, 7445, 15462, 29889, 2272, 30004, 13, 30004, 13, 15945, 19451, 13, 30004, 13, 5215, 360, 8132, 30004, 13, 3166, 4036, 1053, 334, 30004, 13, 30004, 13, 1753, 3290, 26434, 7295, 396, 1763, 5706, 263, 3290,...
torchimage/utils/ragged.py
miaotianyi/torchimage
10
104556
<filename>torchimage/utils/ragged.py import torch import numpy as np def is_scalar(a) -> bool: """ Tests if a python object is a scalar (instead of an array) Parameters ---------- a : object Any object to be checked Returns ------- bool Whether the input object is a s...
[ 1, 529, 9507, 29958, 7345, 305, 3027, 29914, 13239, 29914, 1431, 3192, 29889, 2272, 13, 5215, 4842, 305, 13, 5215, 12655, 408, 7442, 13, 13, 13, 1753, 338, 29918, 19529, 279, 29898, 29874, 29897, 1599, 6120, 29901, 13, 1678, 9995, 13, ...
crane_controllers/external/casadi-3.4.5/test/python/simulator.py
tingelst/crane
2
68647
# # This file is part of CasADi. # # CasADi -- A symbolic framework for dynamic optimization. # Copyright (C) 2010-2014 <NAME>, <NAME>, <NAME>, # <NAME>. All rights reserved. # Copyright (C) 2011-2014 <NAME> # # CasADi is free software; you can redistribute it and/or # ...
[ 1, 396, 13, 29937, 268, 910, 934, 338, 760, 310, 6960, 3035, 29875, 29889, 13, 29937, 13, 29937, 268, 6960, 3035, 29875, 1192, 319, 5829, 293, 6890, 363, 7343, 13883, 29889, 13, 29937, 268, 14187, 1266, 313, 29907, 29897, 29871, 29906, ...
Hermes_T_Box/TransmitterCode/Transceiver.py
maguayo6/SeniorDesign_159
0
170218
""" Simple example of library usage. """ import time import struct import board import busio import digitalio as dio from circuitpython_nrf24l01 import RF24 # addresses needs to be in a buffer protocol object (bytearray) address = b'1Node' # change these (digital output) pins accordingly ce = dio.DigitalInOut(board.D...
[ 1, 9995, 13, 15427, 1342, 310, 3489, 8744, 29889, 13, 15945, 29908, 13, 5215, 931, 13, 5215, 2281, 13, 5215, 7613, 13, 5215, 3593, 601, 13, 5215, 13436, 601, 408, 20562, 13, 3166, 11369, 4691, 29918, 29876, 9600, 29906, 29946, 29880, ...
seggradcam/seggradcam.py
kiraving/SegGradCAM
47
1611425
<gh_stars>10-100 import numpy as np import cv2 from keras import backend as K from skimage import measure import matplotlib.pyplot as plt from operator import sub class SuperRoI: # or rename it to ClassRoI def __init__(self, image =None): self.image = image self.roi = 1 self.fullroi = Non...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 12655, 408, 7442, 13, 5215, 13850, 29906, 13, 3166, 13023, 294, 1053, 14998, 408, 476, 13, 3166, 2071, 3027, 1053, 5645, 13, 5215, 22889, 29889, ...
tests/test_models/test_general_gnn.py
JonaBecher/spektral
2,145
178420
<reponame>JonaBecher/spektral<filename>tests/test_models/test_general_gnn.py from spektral import models from tests.test_models.core import MODES, run_model config = { "model": models.GeneralGNN, "modes": [MODES["SINGLE"], MODES["DISJOINT"], MODES["MIXED"]], "kwargs": {"output": 32, "connectivity": "cat", ...
[ 1, 529, 276, 1112, 420, 29958, 29967, 2681, 3629, 4630, 29914, 5965, 12947, 284, 29966, 9507, 29958, 21150, 29914, 1688, 29918, 9794, 29914, 1688, 29918, 17492, 29918, 5138, 29876, 29889, 2272, 13, 3166, 961, 12947, 284, 1053, 4733, 13, 3...
app/geobox/model/project.py
omniscale/gbi-client
2
168895
<gh_stars>1-10 # This file is part of the GBI project. # Copyright (C) 2012 Omniscale GmbH & Co. KG <http://omniscale.com> # # 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.ap...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 910, 934, 338, 760, 310, 278, 402, 12809, 2060, 29889, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29906, 13352, 6994, 29883, 744, 1...
wx_send.py
Kenneth111/moyu_tools
4
98179
import sys, os, getopt, time, datetime from wxpy import * def filesExist(fileList): for i, aFile in enumerate(fileList): if not os.path.exists(aFile): print("warning: the {}th file, {}, doesn't exist.".format(i + 1, aFile)) return False return True def readFile(filename): ...
[ 1, 1053, 10876, 29892, 2897, 29892, 679, 3670, 29892, 931, 29892, 12865, 13, 3166, 26437, 2272, 1053, 334, 13, 13, 13, 1753, 2066, 1252, 391, 29898, 1445, 1293, 1125, 13, 1678, 363, 474, 29892, 263, 2283, 297, 26985, 29898, 1445, 1293, ...
setup.py
ckingdev/sortedcounter
0
1615227
from distutils.core import setup setup( name='sortedcounter', version='0.1', packages=['sortedcounter'], license='MIT', author='<NAME>', author_email = '<EMAIL>', url = 'https://github.com/ckingdev/sortedcounter', download_url = 'https://github.com/ckingdev/sortedcounter/archive/0.1.ta...
[ 1, 515, 1320, 13239, 29889, 3221, 1053, 6230, 13, 13, 13, 14669, 29898, 13, 1678, 1024, 2433, 24582, 11808, 742, 13, 1678, 1873, 2433, 29900, 29889, 29896, 742, 13, 1678, 9741, 29922, 1839, 24582, 11808, 7464, 13, 1678, 19405, 2433, 263...
src/core/tests/widgets/test_imageview.py
luizoti/toga
1,261
97494
<filename>src/core/tests/widgets/test_imageview.py<gh_stars>1000+ import toga import toga_dummy from toga_dummy.utils import TestCase class ImageViewTests(TestCase): def setUp(self): super().setUp() # We need a test app to trigger app module discovery self.app = toga.App( forma...
[ 1, 529, 9507, 29958, 4351, 29914, 3221, 29914, 21150, 29914, 8030, 29879, 29914, 1688, 29918, 3027, 1493, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 5215, 304, 3249, 13, 5215, 304, 3249, 29918...
tests/api/tests/test_route_text_payload.py
MyDataShare/access-gateway
1
56703
<reponame>MyDataShare/access-gateway<gh_stars>1-10 from unittest import main from .helpers import api, test_base text = """ Nocturne Ruislinnun laulu korvissani, tähkäpäiden päällä täysi kuu; kesä-yön on onni omanani, kaskisavuun laaksot verhouu. En ma iloitse, en sure, huokaa; mutta met...
[ 1, 529, 276, 1112, 420, 29958, 3421, 1469, 2713, 598, 29914, 5943, 29899, 17062, 1582, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 443, 27958, 1053, 1667, 13, 13, 3166, 869, 3952, 6774, 1053, 7882, 29892, ...
scripts/train.py
m-bain/pytorch-image-models
1
119068
from torchvision import datasets ds = datasets.UCF101(root='/datasets/UCF101-24', annotation_path='/datasets/UCF101-24/UCF101_24Action_Detection_Annotations/UCF101_24Action_Detection_Annotations', frames_per_clip=4) import pdb; pdb.set_trace()
[ 1, 515, 4842, 305, 4924, 1053, 20035, 13, 13, 6289, 353, 20035, 29889, 29965, 9207, 29896, 29900, 29896, 29898, 4632, 2433, 29914, 14538, 1691, 29914, 29965, 9207, 29896, 29900, 29896, 29899, 29906, 29946, 742, 13, 462, 268, 17195, 29918, ...
client/python/tests/hardware_test.py
lbarman/gaia
0
71521
<filename>client/python/tests/hardware_test.py #!/usr/bin/python3 import sys import os.path sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) import subprocess import datetime from os import listdir from os.path import join import gaia_client.gpio_init as gpios import gaia_clien...
[ 1, 529, 9507, 29958, 4645, 29914, 4691, 29914, 21150, 29914, 6800, 2519, 29918, 1688, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 29941, 13, 5215, 10876, 13, 5215, 2897, 29889, 2084, 13, 9675, 29889, 2084, 29889, 4397, ...
lab/migrations/0003_auto_20191202_1534.py
jtdub/prod2lab
11
25244
<filename>lab/migrations/0003_auto_20191202_1534.py # Generated by Django 2.2.8 on 2019-12-02 15:34 from django.db import migrations, models import django.db.models.deletion from lab.models import OperatingSystem def initial_os_data(app, schema_editor): data = [ {"os": "ios", "os_type": "cisco_ios", "ter...
[ 1, 529, 9507, 29958, 8205, 29914, 26983, 800, 29914, 29900, 29900, 29900, 29941, 29918, 6921, 29918, 29906, 29900, 29896, 29929, 29896, 29906, 29900, 29906, 29918, 29896, 29945, 29941, 29946, 29889, 2272, 13, 29937, 3251, 630, 491, 15337, 298...
Eidolon windowed.py
venaxyt/Eidolon-Windowed
1
113241
<reponame>venaxyt/Eidolon-Windowed import threading, requests, gratient, random, pygame, string, io banner = """ ▄███▄ ▄█ ██▄ ████▄ █ ████▄ ▄ █▀ ▀ ██ █ █ █ █ █ █ █ █ ██▄▄ ██ █ █ █ █ █ █ █ ██ █ █▄ ▄▀ ▐█ █ █ ▀████ ███▄ ▀████ █ █ █ ▀███▀ ▐ ███▀ ...
[ 1, 529, 276, 1112, 420, 29958, 854, 1165, 3637, 29914, 29923, 333, 324, 265, 29899, 5907, 287, 13, 5215, 3244, 292, 29892, 7274, 29892, 20715, 993, 29892, 4036, 29892, 22028, 29892, 1347, 29892, 12013, 13, 13, 29890, 7310, 353, 9995, 13...
Mac/Modules/ctl/ctledit.py
deadsnakes/python2.3
0
173001
# FindControlUnderMouse() returns an existing control, not a new one, # so create this one by hand. f = Function(ExistingControlHandle, 'FindControlUnderMouse', (Point, 'inWhere', InMode), (WindowRef, 'inWindow', InMode), (SInt16, 'outPart', OutMode), ) functions.append(f) f = Function(ControlHandle, 'as_C...
[ 1, 396, 10987, 4809, 29177, 14346, 580, 3639, 385, 5923, 2761, 29892, 451, 263, 716, 697, 29892, 13, 29937, 577, 1653, 445, 697, 491, 1361, 29889, 13, 29888, 353, 6680, 29898, 1252, 15423, 4809, 13554, 29892, 525, 12542, 4809, 29177, 14...
python/cvi_toolkit/utils/alphapose_util.py
sophgo/tpu_compiler
3
99686
import cv2 import math import numpy as np from utils.pPose_nms import pose_nms def get_3rd_point(a, b): """Return vector c that perpendicular to (a - b).""" direct = a - b return b + np.array([-direct[1], direct[0]], dtype=np.float32) def get_dir(src_point, rot_rad): """Rotate the point by `rot_rad` ...
[ 1, 1053, 13850, 29906, 13, 5215, 5844, 13, 5215, 12655, 408, 7442, 13, 3166, 3667, 29879, 29889, 29886, 29925, 852, 29918, 29876, 1516, 1053, 18593, 29918, 29876, 1516, 13, 13, 13, 1753, 679, 29918, 29941, 5499, 29918, 3149, 29898, 29874,...
data/python/pattern_10/code.py
MKAbuMattar/grammind-api
3
32177
<filename>data/python/pattern_10/code.py #MAIN PROGRAM STARTS HERE: num = int(input('Enter the number of rows and columns for the square: ')) for x in range(1, num + 1): for y in range(1, num - 2 + 1): print ('{} {} '.format(x, y), end='') print()
[ 1, 529, 9507, 29958, 1272, 29914, 4691, 29914, 11037, 29918, 29896, 29900, 29914, 401, 29889, 2272, 13, 29937, 29032, 13756, 29954, 25058, 6850, 8322, 29903, 379, 27267, 29901, 13, 1949, 353, 938, 29898, 2080, 877, 10399, 278, 1353, 310, ...
paper/plots.py
ii-research-yu/pgbm
79
112624
<reponame>ii-research-yu/pgbm # -*- coding: utf-8 -*- """ Created on Wed Jan 27 08:53:20 2021 @author: ospra """ #%% import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set(rc={'text.usetex' : True}, style='white') # sns.set_style("white") #%% Load values algorithms = ['pgbm_gpu','lightgbm_cp...
[ 1, 529, 276, 1112, 420, 29958, 2236, 29899, 690, 2842, 29899, 29891, 29884, 29914, 4061, 5838, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399, 373, 15050, 2627, 29871, 29906, ...
auth/views.py
KenMwaura1/zoo_pitch
2
36216
<reponame>KenMwaura1/zoo_pitch<gh_stars>1-10 from flask import flash, render_template, redirect, request, url_for from flask_login import login_required, login_user, logout_user from . import auth from .forms import UserLoginForm, UserRegForm from app.commands import db from app.models import User from app.send_email i...
[ 1, 529, 276, 1112, 420, 29958, 29968, 264, 29924, 2766, 2002, 29896, 29914, 2502, 29877, 29918, 29886, 2335, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 29784, 1053, 11013, 29892, 4050, 29918, 6886, 29892, 6...
aiotdlib/api/types/group_call_id.py
jraylan/aiotdlib
37
149197
<filename>aiotdlib/api/types/group_call_id.py # =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
[ 1, 529, 9507, 29958, 1794, 327, 29881, 1982, 29914, 2754, 29914, 8768, 29914, 2972, 29918, 4804, 29918, 333, 29889, 2272, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 29922, 396, 13, 29937, 462, 462, 462, 462, 462, 396, 13, 2993...
quiz06.py
hamukazu/python_quiz
10
1601133
####################################### # Counterクラスの使い方 ####################################### from collections import Counter # 引数に単語のリストが与えられたときに、各単語の出現数を表すCounterオブジェクトを返せ # 例:["a","b","a","b","c"] => Counter({"a":3, "b":2, "c":1}) # 以下を書きかえる def f1(l): return Counter() # ここまでを書きかえる #####################...
[ 1, 835, 13383, 13383, 4136, 13, 29937, 315, 5336, 30305, 30281, 30255, 30199, 30785, 30298, 30525, 13, 13383, 13383, 4136, 2277, 29937, 13, 13, 3166, 16250, 1053, 315, 5336, 13, 13, 29937, 29871, 31674, 30354, 30353, 232, 144, 155, 30968,...
laceworkreports/cli/ReportHandlers/VpcChartHandler/VpcChartHelper.py
laceworkps/laceworkreports
0
171824
<reponame>laceworkps/laceworkreports<filename>laceworkreports/cli/ReportHandlers/VpcChartHandler/VpcChartHelper.py<gh_stars>0 import csv import logging import matplotlib.pyplot as plt import networkx def build_graph(nodes, edges): Graph = networkx.Graph() labeldict = {} values = set() for node in no...
[ 1, 529, 276, 1112, 420, 29958, 1265, 1287, 567, 29914, 1265, 1287, 276, 4011, 29966, 9507, 29958, 1265, 1287, 276, 4011, 29914, 11303, 29914, 13020, 3481, 9306, 29914, 29963, 6739, 14732, 4598, 29914, 29963, 6739, 14732, 10739, 29889, 2272,...
opentsp/reducers.py
james-langbein/OpenTSP
0
61419
from opentsp import helpers def diamond_prune(instance): # def list_prune(ls): # var = True # may not be needed # while var is True: # may not be needed # bad_count = 0 # may not be needed # semi_pruned_ls = [i for i in ls if i.fitness == 'good'] # may not be needed ...
[ 1, 515, 1015, 296, 1028, 1053, 1371, 414, 13, 13, 13, 1753, 11502, 898, 29918, 558, 1540, 29898, 8758, 1125, 13, 13, 1678, 396, 822, 1051, 29918, 558, 1540, 29898, 3137, 1125, 13, 1678, 396, 268, 722, 353, 5852, 29871, 396, 1122, 45...
emotion-cause-extraction/RoBERTa Baseline/train_classification.py
NouamaneTazi/conv-emotion
488
189591
<reponame>NouamaneTazi/conv-emotion<gh_stars>100-1000 import numpy as np, pandas as pd import json, os, logging, pickle, argparse from sklearn.metrics import classification_report from simpletransformers.classification import ClassificationModel if __name__ == '__main__': global args parser = argparse.Argumen...
[ 1, 529, 276, 1112, 420, 29958, 29940, 283, 314, 1662, 29911, 18861, 29914, 20580, 29899, 331, 8194, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 5215, 12655, 408, 7442, 29892, 11701, 408...
awsherder.py
Kahn/awsherder
1
54810
<reponame>Kahn/awsherder from flask import Flask, request, redirect, session, json, g, render_template, flash, abort from flask_sqlalchemy import SQLAlchemy from flask_openid import OpenID from flask_sslify import SSLify from wtforms import Form, BooleanField, TextField, PasswordField, validators, SelectField import ur...
[ 1, 529, 276, 1112, 420, 29958, 29968, 5422, 29914, 1450, 845, 261, 672, 13, 3166, 29784, 1053, 2379, 1278, 29892, 2009, 29892, 6684, 29892, 4867, 29892, 4390, 29892, 330, 29892, 4050, 29918, 6886, 29892, 11013, 29892, 27450, 13, 3166, 297...
Q6/q6.py
Xascoria/AdventOfCode2021
0
155257
f = open("Q6/inputs.txt","r") # k = [*map(int,f.readline().split(","))] # d = {} # for i in k: # if i not in d: # d[i] = 0 # d[i] += 1 # for i in range(256): # p = {0:0,1:0,2:0,3:0,4:0,5:0,7:0,6:0,8:0} # for j in d: # if j == 0: # p[6] += d[j] # p[8] += d[j] # ...
[ 1, 285, 353, 1722, 703, 29984, 29953, 29914, 2080, 29879, 29889, 3945, 3284, 29878, 1159, 13, 13, 29937, 413, 353, 518, 29930, 1958, 29898, 524, 29892, 29888, 29889, 949, 1220, 2141, 5451, 29898, 3284, 28166, 13, 13, 29937, 270, 353, 65...
Tianchi-Taobao-clothes-retrieval-master/metric_sub/src_train/logger.py
MarcaWitt/Data_hackers
0
132467
import os import logging def create_folder(fd): if not os.path.exists(fd): os.makedirs(fd) def create_logging(log_dir, filemode): create_folder(log_dir) i1 = 0 while os.path.isfile(os.path.join(log_dir, '{:04d}.log'.format(i1))): i1 += 1 log_path = os.path.join(...
[ 1, 1053, 2897, 13, 5215, 12183, 13, 13, 13, 1753, 1653, 29918, 12083, 29898, 11512, 1125, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 11512, 1125, 13, 4706, 2897, 29889, 29885, 12535, 12935, 29898, 11512, 29897, 13, 308, ...
Python3/Exercises/DictionaryMethods/dictionary_methods.py
norbertosanchezdichi/TIL
0
37164
<reponame>norbertosanchezdichi/TIL<filename>Python3/Exercises/DictionaryMethods/dictionary_methods.py inventory = {'croissant': 19, 'bagel': 4, 'muffin': 8, 'cake': 1} print(f'{inventory =}') stock_list = inventory.copy() print(f'{stock_list =}') stock_list['hot cheetos'] = 25 stock_list.update({'cookie' : 18}) stoc...
[ 1, 529, 276, 1112, 420, 29958, 15459, 2151, 359, 20372, 8849, 18544, 29914, 29911, 6227, 29966, 9507, 29958, 11980, 29941, 29914, 1252, 261, 3476, 267, 29914, 11513, 26112, 29914, 27126, 29918, 23515, 29889, 2272, 13, 262, 23886, 353, 11117...
CLASSIC PUZZLE - EASY/robot-show.py
martincourtois/CodinGame
0
122966
<gh_stars>0 import sys import math size = int(input()) n = int(input()) bots = list(map(int, input().split())) left = min(bots) right = max(bots) t = max([size - left, right]) print(t)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 10876, 13, 5215, 5844, 13, 13, 2311, 353, 938, 29898, 2080, 3101, 13, 29876, 353, 938, 29898, 2080, 3101, 13, 29890, 1862, 353, 1051, 29898, 1958, 29898, 524, 29892, 1881, 2141, ...
apps/users/common.py
yhkl-dev/JAutoOps
0
197847
<filename>apps/users/common.py from django.contrib.auth import get_user_model User = get_user_model() def get_user_obj(uid): try: return User.objects.get(pk=uid) except User.DoesNotExist: return None
[ 1, 529, 9507, 29958, 13371, 29914, 7193, 29914, 9435, 29889, 2272, 13, 3166, 9557, 29889, 21570, 29889, 5150, 1053, 679, 29918, 1792, 29918, 4299, 13, 13, 2659, 353, 679, 29918, 1792, 29918, 4299, 580, 13, 13, 13, 1753, 679, 29918, 1792...
examples/buttons_raw.py
kalebolson/launchpad.py
0
141752
<filename>examples/buttons_raw.py #!/usr/bin/env python # # Quick button test. # Works with these Launchpads: Mk1, Mk2, Mini Mk3, S/Mini, Pro, Pro Mk3 # And these: <NAME> 64 # # # FMMT666(ASkr) 7/2013..8/2020 # www.askrprojects.net # import sys import time try: import launchpad_py as launchpad ex...
[ 1, 529, 9507, 29958, 19057, 29914, 4187, 7453, 29918, 1610, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 13, 29937, 26141, 2826, 1243, 29889, 13, 29937, 13976, 411, 1438, 997, 3322, 29886, 7925, 29901, 3...
hubcheck/pageobjects/widgets/tags_browse_form.py
codedsk/hubcheck
1
111146
from hubcheck.pageobjects.basepagewidget import BasePageWidget from hubcheck.pageobjects.basepageelement import TextReadOnly import re class TagsBrowseForm(BasePageWidget): def __init__(self, owner, locatordict=None): super(TagsBrowseForm,self).__init__(owner,locatordict) # load hub's classes ...
[ 1, 515, 19766, 3198, 29889, 3488, 12650, 29889, 3188, 3488, 8030, 1053, 7399, 5074, 8801, 13, 3166, 19766, 3198, 29889, 3488, 12650, 29889, 3188, 3488, 5029, 1053, 3992, 6359, 11730, 13, 13, 5215, 337, 13, 13, 1990, 917, 29933, 798, 344...
tools/extract_frames_from_videos.py
Jhong098/SignSense
5
85906
import cv2 import os from os.path import join, exists from tqdm import tqdm import numpy as np hc = [] def convert(gesture_folder, target_folder): rootPath = os.getcwd() majorData = os.path.abspath(target_folder) print(majorData) if not exists(majorData): os.makedirs(majorData) gesture_...
[ 1, 1053, 13850, 29906, 13, 5215, 2897, 13, 3166, 2897, 29889, 2084, 1053, 5988, 29892, 4864, 13, 3166, 260, 29939, 18933, 1053, 260, 29939, 18933, 13, 5215, 12655, 408, 7442, 13, 13, 29882, 29883, 353, 5159, 13, 13, 13, 1753, 3588, 29...
api/views.py
julianarchila/music_controller
1
99882
<reponame>julianarchila/music_controller """ Api views. """ # Django REST Framework from rest_framework.viewsets import GenericViewSet from rest_framework import mixins # Serializers from api.serializers import RoomModelSerializer # Models from api.models import Room class RoomViewSet( mixins.CreateModelMi...
[ 1, 529, 276, 1112, 420, 29958, 29926, 352, 713, 1279, 4233, 29914, 23596, 29918, 8299, 13, 15945, 29908, 29749, 8386, 29889, 9995, 13, 13, 29937, 15337, 16759, 16657, 13, 3166, 1791, 29918, 4468, 29889, 1493, 7224, 1053, 3251, 293, 1043, ...
gorden_crawler/settings.py
Enmming/gorden_cralwer
2
165073
<gh_stars>1-10 # -*- coding: utf-8 -*- from __future__ import absolute_import import logging import os from os.path import join, dirname from dotenv import load_dotenv from redis.sentinel import Sentinel dotenv_path = join(dirname(__file__), '.projectenv') if os.path.isfile(dotenv_path): load_dotenv(dotenv_path)...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 5215, 12183, 13, 5215, ...
cinder/volume/drivers/hitachi/hbsd_rest_api.py
cloudification-io/cinder
1
1614887
# Copyright (C) 2020, Hitachi, Ltd. # # 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...
[ 1, 396, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29906, 29900, 29892, 14309, 26213, 29892, 19806, 29889, 13, 29937, 13, 29937, 1678, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, ...
pybaselines/utils.py
abdelq/pybaselines
0
34818
# -*- coding: utf-8 -*- """Helper functions for pybaselines. Created on March 5, 2021 @author: <NAME> """ import numpy as np # the minimum positive float values such that a + _MIN_FLOAT != a _MIN_FLOAT = np.finfo(float).eps def relative_difference(old, new, norm_order=None): """ Calculates the relative d...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 10739, 3168, 363, 11451, 6500, 24210, 29889, 13, 13, 20399, 373, 4779, 29871, 29945, 29892, 29871, 29906, 29900, 29906, 29896, 13, 29992, 892...
setup.py
arrkiin/pymt5adapter
69
193318
from setuptools import find_packages from setuptools import setup import pymt5adapter with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='pymt5adapter', version=pymt5adapter.__version__.get('pymt5adapter'), description='A drop in replacement w...
[ 1, 515, 731, 21245, 8789, 1053, 1284, 29918, 8318, 13, 3166, 731, 21245, 8789, 1053, 6230, 13, 5215, 282, 962, 29873, 29945, 21412, 13, 13, 2541, 1722, 877, 16310, 2303, 29889, 3487, 1495, 408, 285, 29901, 13, 1678, 1303, 1004, 353, 2...
tksugar/widgets/__init__.py
TakamiChie/TkSugar
2
105316
<gh_stars>1-10 """ Widgets that require Generator-specific custom processing are stored in this package. For example, widgets such as tkinter.ttk.Notebook that do not display child elements on the GUI just by referencing them with the master argument of child elements are recorded here. This package is referenced with ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 13, 8801, 29879, 393, 1996, 3251, 1061, 29899, 14940, 2888, 9068, 526, 6087, 297, 445, 3577, 29889, 13, 2831, 1342, 29892, 11109, 29879, 1316, 408, 1888...
200116/Python/solution.py
ktaletsk/daily-problem
1
126841
<filename>200116/Python/solution.py class Solution(object): def findDisappearedNumbers(self, nums): return list(set(range(1,len(nums)+1)) - set(nums)) nums = [4, 6, 2, 6, 7, 2, 1] def test(): assert Solution().findDisappearedNumbers(nums) == [3, 5]
[ 1, 529, 9507, 29958, 29906, 29900, 29900, 29896, 29896, 29953, 29914, 11980, 29914, 2929, 918, 29889, 2272, 13, 1990, 24380, 29898, 3318, 1125, 13, 1678, 822, 1284, 4205, 932, 21128, 29478, 29898, 1311, 29892, 954, 29879, 1125, 13, 4706, ...
imagr_users/admin.py
sazlin/cfpydev-imagr
0
27405
<reponame>sazlin/cfpydev-imagr<gh_stars>0 from django.contrib import admin from models import ImagrUser, Relationship # Register your models here. class ImagrUserAdmin(admin.ModelAdmin): fields = ('username', 'first_name', 'last_name', 'email', ) searc...
[ 1, 529, 276, 1112, 420, 29958, 29879, 834, 1915, 29914, 6854, 2272, 3359, 29899, 326, 10312, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 29889, 21570, 1053, 4113, 13, 3166, 4733, 1053, 1954, 10312, 2659, 29892, 6376, 800...
legume/utils.py
shanham/legume
2
142691
""" Various utilities used in the main code. NOTE: there should be no autograd functions here, only plain numpy/scipy """ import numpy as np from scipy.linalg import toeplitz from scipy.optimize import brentq def ftinv(ft_coeff, gvec, xgrid, ygrid): """ Returns the discrete inverse Fourier transform over a ...
[ 1, 9995, 13, 10444, 681, 3667, 1907, 1304, 297, 278, 1667, 775, 29889, 13, 12256, 29923, 29901, 727, 881, 367, 694, 1120, 468, 3665, 3168, 1244, 29892, 871, 8656, 12655, 29914, 26167, 2272, 13, 15945, 29908, 13, 13, 5215, 12655, 408, ...
test.py
tom66/pirawcam
0
167223
#!/usr/bin/env python3 import numpy import rawcam import random from hashlib import md5 while True: rc = rawcam.init() # initializes camera interface, returns config object #rc.pack = rawcam.Pack.NONE #rc.unpack = rawcam.Unpack.NONE #rawcam.set_timing(0, 0, 0, 0, 0, 0, 0) rawcam.set_data_lanes(2) ...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 5215, 12655, 13, 5215, 10650, 11108, 13, 5215, 4036, 13, 3166, 6608, 1982, 1053, 22821, 29945, 13, 13, 8000, 5852, 29901, 13, 1678, 364, 29883, 353, 10650, 11108, 29889, 2344, 5...
base/lbfgs.py
bhillebrecht/CertifiedML-ODE
0
167827
################################################################################################### # Copyright (c) 2021 <NAME> # # 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 restr...
[ 1, 835, 13383, 13383, 13383, 13383, 13383, 13383, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29896, 529, 5813, 29958, 13, 29937, 13, 29937, 20894, 2333, 338, 1244, 1609, 16896, 29892, 3889, 310, 8323, 29892, 304,...
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_remote.py
msgis/swwat-gzp-template
3
192897
#!/usr/bin/python # -*- coding: utf-8 -*- from builtins import str from PyQt5.QtCore import Qt,QObject,QFileSystemWatcher #from PyQt5.QtGui import * import os import json import io from qgis.core import QgsProject,QgsFeatureRequest from .gto_info import gtoInfo class gtoRemote(QObject): def __init__(self, gtoma...
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 3166, 4240, 1144, 1053, 851, 13, 3166, 10772, 17303, 29945, 29889, 17303, 9203, 1053, 14705, 29892, 29984,...
pyslab/core/locations.py
benhorsburgh/pyslab
0
46816
from typing import List from .types import Cell def box_id(cell: Cell) -> int: return (cell.row // 3) * 3 + (cell.column // 3) def row_house_ids() -> List[int]: return list(range(9)) def column_house_ids() -> List[int]: return list(range(10, 18)) def box_house_ids() -> List[int]: return list(ra...
[ 1, 515, 19229, 1053, 2391, 13, 13, 3166, 869, 8768, 1053, 19413, 13, 13, 13, 1753, 3800, 29918, 333, 29898, 3729, 29901, 19413, 29897, 1599, 938, 29901, 13, 1678, 736, 313, 3729, 29889, 798, 849, 29871, 29941, 29897, 334, 29871, 29941, ...
tests/test_base.py
mrtovsky/estimium
1
186097
<reponame>mrtovsky/estimium<filename>tests/test_base.py import logging from typing import Optional from estimium.base import ClassLogger class DummyClass(ClassLogger): """Dummy class for testing inheritance from ClassLogger.""" def __init__(self, logger: Optional[logging.Logger] = None): super().__i...
[ 1, 529, 276, 1112, 420, 29958, 29885, 29878, 517, 29894, 7912, 29914, 342, 326, 1974, 29966, 9507, 29958, 21150, 29914, 1688, 29918, 3188, 29889, 2272, 13, 5215, 12183, 13, 3166, 19229, 1053, 28379, 13, 13, 3166, 4844, 1974, 29889, 3188, ...
exercicio3.py
cecilialourenco/Exercicios
0
57129
'''Faça um programa que leia 4 notas, mostre as notas e a média na tela.''' notas = [] nota1 = float(input('Digite a primeira nota: ')) notas.append(nota1) nota2 = float(input('Digite a segunda nota: ')) notas.append(nota2) nota3 = float(input('Digite a terceira nota: ')) notas.append(nota3) nota4 = float(input('Di...
[ 1, 14550, 14206, 4277, 1922, 16914, 712, 454, 423, 29871, 29946, 451, 294, 29892, 1556, 276, 408, 451, 294, 321, 263, 10283, 423, 1055, 260, 3100, 29889, 12008, 13, 1333, 294, 353, 5159, 13, 13, 1333, 29874, 29896, 353, 5785, 29898, 2...
environment/__init__.py
JannerM/spatial-reasoning
54
174967
import library, figure_library from MDP import * from ValueIteration import ValueIteration from SpriteFigure import SpriteFigure
[ 1, 1053, 3489, 29892, 4377, 29918, 5258, 13, 3166, 341, 11191, 1053, 334, 13, 3166, 7865, 13463, 362, 1053, 7865, 13463, 362, 13, 3166, 14314, 568, 13080, 545, 1053, 14314, 568, 13080, 545, 2 ]