blob_id
stringlengths
40
40
content_id
stringlengths
40
40
repo_name
stringlengths
5
114
path
stringlengths
5
318
language
stringclasses
5 values
extension
stringclasses
12 values
length_bytes
int64
200
200k
license_type
stringclasses
2 values
content
stringlengths
143
200k
d4686b4330e6bb46b4f3128a4c78011df3486b2b
7ffe9e573813a63edefecd99be0a0cf4c010036a
JulioCesar0180/GuiarSeguros
/Poll/migrations/0018_auto_20210505_2014.py
Python
py
1,260
no_license
# Generated by Django 3.1 on 2021-05-06 00:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Poll', '0017_auto_20210505_1642'), ] operations = [ migrations.AlterField( model_name='poliza', ...
2ceaa597b4679603f156d7075b67c978fa14881a
b6bed48801d0baa505f6ccda8ae8f936ae5b6abe
armory/spinnaker-aws-policy
/src/generate.py
Python
py
4,088
permissive
#!/usr/bin/env python3 import ec2 import elb import elbv2 import autoscaling import cloudwatch import os import sys import iam from collections import defaultdict policy_template = """ { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1486065689000", "Effect": "Allow", ...
ed216c2eb7ea92911ec741c2762ea2053584703b
6802db2a51e2de18223d5ab3a3991df13716cd74
stellaGK/stella
/stellapy/plot/linearFFS/gamma_vs_time.py
Python
py
8,870
permissive
""" #=============================================================================== # Plot gamma(time) or omega(time) # #=============================================================================== For the first simulation in <research>, created for <folder>, the time...
3f64405e05ee36155093a3b65100466b03820db6
f023faf59bebd6e028986cbf2920f8fbe8fd748f
pgtuk/inventory_managment
/src/Inventory.py
Python
py
1,542
no_license
import json import statistics import config class Inventory: """ Inventory Management system """ def __init__(self): self.items = self._load() def _load(self): with open(config.INVENTORY_PATH) as f: json_data = json.loads(f.read()) return json_data ...
9a251544c7710346be2481bdbd6220d8545c8252
182d8015255ef278f4d7e66c835f780f7f6d0fca
sunrabbit123/school-info_python
/schoolInfo/util/url_manager.py
Python
py
658
permissive
class url_manager: def __init__( self, type: str, auth_key: str = None, pIndex: int = 1, pSize: int = 100, additions: list = None, ): option_list: list = [f"pIndex={pIndex}", f"pSize={pSize}"] option: str = "&".join(option_list) try: ...
ada6c95f04e759f15cf94b001a15e6b9b160e045
ad311ac73fb3d596966949d04c7a966acfadb2f5
naototachibana/chainer-chemistry
/examples/tox21/predict_tox21_with_classifier.py
Python
py
5,073
permissive
import os import argparse import json import chainer import numpy from chainer import cuda import chainer.functions as F from chainer.iterators import SerialIterator from chainer.training.extensions import Evaluator from rdkit import RDLogger import six from chainer_chemistry.dataset.converters import concat_mols f...
4530415540cd621e83ce4b1702ff0dcab3f1e06a
d5554aef6c3cc30166d99c9f0977694384b4cd04
emilio-r/BACTpipe
/docs/source/conf.py
Python
py
4,928
permissive
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # BACTpipe documentation build configuration file, created by # sphinx-quickstart on Tue Sep 26 10:51:26 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
0340d899cefb339e1e244638353aa7277c282fee
6ea27c1af812a3bae9d972c4caba687a3c921233
nathan29849/pirogramming13
/algorithm_class_2_0711.py
Python
py
384
no_license
word = input() croatias = ("c=", "c-", "dz=", "d-", "lj", "nj", "s=", "z=") #변하지 않을 값이므로 튜플로 쓰는게 좋음 # ljc=aaa -> 5 # 00aaa -> len(word) : 5 # 모든 크로아티아 문자를 0으로 치환하고 문자 길이를 구하면 됨. for croatia in croatias: word = word.replace(croatia, "0") #변수지정을 해야 바뀜; print(len(word))
26dd6da6e2e8b12fc0e4f30a551e514cbf79825c
aaabce11216bba9ba63ffaaaffc31bf03fd397ec
jesse-toftum/python-projects
/project_euler/01_multiples_of_3_and_5.py
Python
py
544
no_license
""" Project Euler Statement for Problem 1: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. """ def project_euler_01() -> int: """ Calculates the sum of all the multiples of 3 or 5 below 1000. Returns ------- int ...
f61074ee9e610ddeb985ea38ab5f6cc24e4c889f
3e4539ffe606bcb4b901d5af084492450a029bb1
walloliveira/template-flask-api
/settings.py
Python
py
590
no_license
import os from dotenv import load_dotenv _dotenv_name = '.env.' _env = os.getenv('FLASK_ENV') if _env is None or not len(_env): _env = 'testing' _dotenv_file = os.path.join(os.path.dirname(__file__), _dotenv_name + _env.lower()) load_dotenv(dotenv_path=_dotenv_file, verbose=True) FLASK_APP = 'run' FLASK_ENV = _...
39a4b6efad2ddeef11c2e5c80595cd24d055303d
96efb2bfcbab25827beb557d536f4f79711427d1
aasensio/graphnet
/synthesis/test.py
Python
py
5,962
permissive
import numpy as np import matplotlib.pyplot as pl import torch import torch.nn as nn import torch.utils.data import torch.nn.utils.rnn from tqdm import tqdm import torch_geometric.data import model import glob import os from sklearn import neighbors import shortcar from sklearn.gaussian_process import GaussianProcessRe...
116ec27c47198fcd43baa183b454b3a47561d37e
14ff0efd8032ddd98ac742a6decd5bad9bd1071c
cloudzfy/euler
/src/52.py
Python
py
435
permissive
# It can be seen that the number, 125874, and its double, 251748, # contain exactly the same digits, but in a different order. # Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, # and 6x, contain the same digits. def is_permuted_multiple(num): for i in range(2, 7): if sorted(str(num * i)) <> sorted...
15d8eb340cb9e0d697e83c3019bac9fec3ab5429
085fbba786cb71afd4dccbbc375f7bb45010f49b
bopopescu/python_training
/conftest.py
Python
py
2,434
no_license
import pytest from fixture.application import Application from fixture.db import DbFixture import json import os.path import importlib import jsonpickle fixture = None target = None def load_config(file): global target if target is None: config_file = os.path.join(os.path.dirname(os.path.abspath(__...
735d74c985c73acab8758d74c37e3bf000690b5f
b11b77fb74c517faec0dbd6418f8bc3763e9522b
fergalmoran/dss
/spa/migrations/0023_auto__add_activityfollow.py
Python
py
17,300
permissive
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ActivityFollow' db.create_table(u'spa_activityfollow', ( (u'activity...
7897043378681e1409ee9a8d3508809c208afd04
a11026264e4da989030f67f12171e8fb36eab515
wangvsa/DPX10
/src/random_string.py
Python
py
907
no_license
#!/usr/bin/python ''' Generate random string with given length Each line has 100 charactors param 1 : output filename param 2 : string length ''' import os import sys import string import random ALL_CHARACTORS = "abcdefghijklmnopqrstuvwxyz" # get output filename and string length from command line def getParameter...
3e3d01d33e8b1d880ec1c9b70f954bbbe2a63873
730f10c985b0f858ed13df4161cb6bb9c3974d90
devonps/talesfromticronem
/utilities/spellHelp.py
Python
py
61,955
permissive
import random from bearlibterminal import terminal from loguru import logger from components import spells, items, mobiles from utilities import configUtilities, formulas, gamemap, input_handlers, itemsHelp, jsonUtilities, mobileHelp, display from utilities.common import CommonUtils from static.data import constants f...
fcad19c6359c497e642fd0f3c4b63bec1f352b2f
42b3d6f7d0533fd4e90c086fb49a2e444a46cd39
ezequiasOR/aa-iniciante
/lista7/f.py
Python
py
911
no_license
# erro import sys sys.setrecursionlimit(10**5) from collections import deque n, m = map(int, raw_input().split()) cor = [[0]*m]*n grid = [] g = [[0]*m]*n for i in range(n): row = list(raw_input()) grid.append(row) for i in range(n): for j in range(m): if i and grid[i][j] == grid[i-1][j]: g[i][j] = (i-1, j)...
8e61043935a5c5b59bcf9d8a388d601e479a60f0
96bb2f3090358b6f27a8b5b5a3826be38f500a2b
PureStorage-OpenConnect/py-pure-client
/pypureclient/flasharray/FA_2_4/models/support.py
Python
py
6,215
permissive
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
178e7899d3244417058fcffa88f9edf49fe0236c
f78e57ef8fd5b93b2323dcef7e4d6a5f48ce1512
TomVeniat/continuum
/continuum/scenarios/class_incremental.py
Python
py
6,617
permissive
import warnings from copy import copy from typing import Callable, List, Union import numpy as np from continuum.datasets import _ContinuumDataset from continuum.scenarios import _BaseScenario class ClassIncremental(_BaseScenario): """Continual Loader, generating datasets for the consecutive tasks. Scenari...
b3b336a56e578111417fd2906250bba431e4d73e
b494a6d10dcf1fd0e1dff216cd4c11989a787ab4
Shaobo-Xu/bottom-up-attention
/data/genome/create_splits.py
Python
py
4,328
permissive
#!/usr/bin/python ''' Determine visual genome data splits to avoid contamination of COCO splits.''' import json import os import random from random import shuffle random.seed(10) # Make dataset splits repeatable CURDIR = os.path.dirname(os.path.realpath(__file__)) # The root directory which holds all information...
aa8c33a0002c5b576f73ce77f04c1aa24def0ccd
572db884d16fb9ea39b9cce3f43ce9363c23e57a
nachomonkey/MatrixDemos
/matrixdemos/scripts/utils.py
Python
py
2,194
permissive
import sys import os from PIL import Image, ImageDraw, ImageFont, ImageColor from matrixdemos.scripts.get_file import get_file font_cache = {} def apply_alpha(image, background): try: if isinstance(image.getpixel((0, 0)), int): return image if len(image.getpixel((0, 0))) != 4: ...
d57323eb8d178882155d0ed1e593c3e88e26b748
8c18824c5d99f304fda4ce39b49128d4137e0d74
andrejeller/Learning_Python_FromStart
/Aulas/Mundo_03/Fase_17_Listas_Parte01.py
Python
py
1,618
no_license
""" O que foi visto na aula 17. - Listas Tuplas = () Listas = [] lanche = ['Hamburguer', 'Suco', 'Pizza', 'Pudim'] lanche[3] = 'b' # Agora sim funciona lanche.append('cookie') lanche.insert(0, 'Cachorro Quente') del lanche[3] lanche.pop(3) lanche.remove('pizza') if 'pizza' in lanche: lanche.remove('pizza') v...
10e322f0f930ba4ff22b3459e3e6272f717c5067
5ef87e227f4dc217441bd72773e3b8dc1efc9688
dashayushman/bhabana
/bhabana/models/scaled_dot_product_attention.py
Python
py
1,003
permissive
import torch import numpy as np import torch.nn as nn from bhabana.models import BottleSoftmax class ScaledDotProductAttention(nn.Module): ''' Scaled Dot-Product Attention ''' def __init__(self, d_model, attn_dropout=0.1): super(ScaledDotProductAttention, self).__init__() self.temper = np.p...
9e13f499fe926a7a68c446fe721e216cac0fe18b
b9a094d957500ab274387a1979db3e0cb11f3e94
CHING-TANG/dlib_py
/full_object_detection.py
Python
py
914
no_license
class mmod_rect(object): def __init__(self, rect, detection_confidence=0, ignore=False, label=None): self.rect = rect # rectangle self.detection_confidence = detection_confidence # double self.ignore = ignore # bool self.label = label # std::string mmod_rect() = def...
05c09096b6199d5ac6d38f06fd74bddcfd1eda2a
f842d4b91468645905bb0a428ea6b2def94074c7
qianyc1020/server
/game/douniu/mode/douniu_seat.py
Python
py
553
no_license
# coding=utf-8 from mode.game.seat import Seat class DouniuSeat(Seat): def __init__(self): super(DouniuSeat, self).__init__() self.playScore = -1 self.intoDate = None self.initialCards = [] self.openCard = False self.grab = -1 self.tuizhu = 0 self....
dd75dfd9067122ac98328f4d9a1a4e66e1f7d158
cd64d40d3b416d91a12e8d27ad99ecfbee8dbe8f
Jbydalek/SlidePuzzleGame
/SlidePuzzleGame_Test.py
Python
py
12,115
no_license
# Slide Puzzle import pygame, sys, random from pygame.locals import * # Create the constants BOARDWIDTH = 4 # number of columns in the board BOARDHEIGHT = 4 # number of rows in the board TILESIZE = 80 WINDOWWIDTH = 640 WINDOWHEIGHT = 480 FPS = 30 BLANK = None # R G B BLACK = ...
2f6a95c6eababf54c5d502dace915bfe4a6aa052
c15bfc926e5bd59e0640aa4a9dbdd6d0563c66f2
polykarposT/pedometer2
/pedometerapp/migrations/0005_auto_20200902_2239.py
Python
py
397
no_license
# Generated by Django 3.1 on 2020-09-02 19:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pedometerapp', '0004_auto_20200902_2235'), ] operations = [ migrations.AlterField( model_name='steps', n...
4cc9a7f664cb87644d12b2d047585d0f76e85a68
489d6380e604efad1c4d4bf44c580789e414c1fd
mkural/867_hw2
/hw2_resources/plotBoundary.py
Python
py
1,044
no_license
import pdb from numpy import * import pylab as pl # X is data matrix (each row is a data point) # Y is desired output (1 or -1) # scoreFn is a function of a data point # values is a list of values to plot def plotDecisionBoundary(X, Y, scoreFn, values, title = ""): # Plot the decision boundary. For that, we will ...
0aec72cc4f2223ff81a6b80875b0631802ace733
175684c19c6684318d9b26000afbf8108ad48b8b
Smit6/LinearRegressionModel
/simpleLinearRegression.py
Python
py
4,555
permissive
""" :file: simpleLinearRegression.py :author: Smitkumar Contractor :contact: smitcontractor@gmail.com :brief: SLR model with helper functions """ import numpy as np import patsy from scipy.optimize import minimize from joblib import Parallel, delayed def ll_norm(betas, yX): """ :func ll_norm: computes the mean s...
e69a23a845b7473618c68f4f624ca35df0f0428a
fec0ee2c1dd2eacbc789a8fa3f6acfa182bc5314
thiago1623/holbertonschool-higher_level_programming
/0x0B-python-input_output/mains/3-main.py
Python
py
252
no_license
#!/usr/bin/python3 import sys if __name__ == "__main__": sys.path.append("..") write_file = __import__('3-write_file').write_file nb_characters = write_file("my_first_file.txt", "Holberton School is so cool!\n") print(nb_characters)
e310a038948981f274530235837bbc865bc273c0
5d3550c33123d60f8ab58ffc89ef7309fb6e5841
francisliyy/fishery_mongo
/app/__init__.py
Python
py
959
no_license
import logging from flask import Flask from flask.ext.appbuilder.security.mongoengine.manager import SecurityManager from flask.ext.appbuilder import AppBuilder from flask_mongoengine import MongoEngine from app.index import MyIndexView """ Logging configuration """ logging.basicConfig(format='%(asctime)s:%(levelna...
f3d8554156335fd23805cce2e58ab91d069c0a2b
4590711d1e725038b307960fff7157c9b4db4742
m-novikov/hytra
/hytra/plugins/object_feature_computation/convex_hull_object_features.py
Python
py
833
permissive
from hytra.pluginsystem import object_feature_computation_plugin import vigra from vigra import numpy as np class ConvexHullObjectFeatures( object_feature_computation_plugin.ObjectFeatureComputationPlugin ): """ Computes the convex hull based vigra features """ worksForDimensions = [2] omitte...
75590c3ab5fb0e848ceb03a50e300927ab1b21c2
f1ff8e0f4e935979c25d3a5dccdfe54184ae7fcd
jorul/ITGK
/ITGK øvinger/kont 2017/3.py
Python
py
1,520
no_license
def enter_line(prompt, length): linja = '' while len(linja) != length: linja = input(prompt) if len(linja) != length: print(f'The text must be {length} characters long') return linja def adjust_string(text, length): if len(text) == length: return text elif len(te...
40da144ece97742a140edf9bb78a291c4dd603f1
08bd5713d2a178c92282a043b7310989eaaafbb7
DavidXubin/nlp_service
/pyspark_topic_analysis.py
Python
py
30,984
no_license
import os import re import json import jieba import datetime import heapq import config import pandas as pd import numpy as np from enum import Enum from multiprocessing import Process from pyspark.sql.functions import pandas_udf from pyspark.sql.functions import PandasUDFType from pyspark.sql.types import...
9022595915db0bbcdd17240cb8af3b05b8edff0e
e9b47621ca197371081f931f1be2150431b5fa67
abednego1979/abednegoOpenCV
/source/catchQRCode.py
Python
py
2,255
no_license
# -*- coding: utf-8 -*- #Python 3.6.x #V0.01 #family camera/monitor import os import datetime import cv2 from PIL import Image,ImageEnhance import pyzbar.pyzbar as pyzbar from pyzbar.pyzbar import ZBarSymbol __metaclass__ = type class myQrDetector(): def __init__(self, dbgFlag=False, saveFile="./qr_record"): ...
05a2c50d572d510284a5820c2237326af4a5e466
a860dffb09329806958dfb7999ff188a9fca0332
rikrdo89/cLoops
/cLoops/cModel.py
Python
py
12,809
permissive
#!/usr/bin/env python #--coding:utf-8 -- """ Stastical significance is tested for every chromosome using the local permutated background. 2018-02-01: improved data structure for genomecoverage,much faster and less memory than previouse version for significance calling,slightly changed the loops boundary. 2018-03-08: mo...
abe4158658d32003a195236acfae20de57672eb3
8e1fd21c03ac516a72853db0a7aba23e6c4cfb01
chilcote/unearth
/artifacts/active_directory_unc_path_status.py
Python
py
724
permissive
import plistlib import subprocess factoid = "active_directory_unc_path_status" def fact(): """Returns the status of Active Directory UNC path""" result = "None" try: proc = subprocess.Popen( ["/usr/sbin/dsconfigad", "-show", "-xml"], stdout=subprocess.PIPE, s...
7a28802eae6fdfa397166ba86bbeabb983d2f74f
543cd832d179e8d0c5437f60d4aa03195932d836
lunastar12/scouter
/scouter.host/hostperf.py
Python
py
6,289
permissive
# -*- coding: UTF-8 -*- ''' Copyright (c) 2015 Scouter Project. 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...
9fe43d639ce1bbc69566af050410d06447dd1983
1324f4ee331f68855313b402a8f07dd05aa546d4
eelectron/MiniBankingSystem
/banking/views.py
Python
py
2,452
no_license
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse from django.contrib.auth.hashers import make_password, check_password from . models import Customer # Create your views here. ''' Show the main page ''' def index(request): return render(r...
c706cad2a92f1118d0d229c6b890f52668a35da6
43989126c9ad4fb1c8b78ef763a92138c9035896
FAIKUE/DL4G
/source/jass/base/label_play.py
Python
py
1,425
no_license
# HSLU # # Created by Thomas Koller on 19.07.19 # import numpy as np class LabelPlay: """ Class to define (possible) training information for a specific action in the game when it is in the playing stage (i.e. not in the trump defining stage). This includes the card played, the points made in the cur...
834c3b933b2ed1fd2bfac28431304410804ffeec
bb94dbe1610618d6f61d6c60baafce5d7c214b18
webstyle/console-life
/server/app.py
Python
py
550
permissive
import pika from .handlers.connection_callback import connection_callback connection = pika.BlockingConnection(pika.ConnectionParameters(host='localhost')) channel = connection.channel() # queues channel.queue_declare(queue='connection') channel.queue_declare(queue='register') channel.queue_declare(queue='check_auth'...
ca146e3e37b2b95cf96ba621fa3b5541d0d521b9
3bf5d24f4bfaa5393338a4c7accb2cbf22b05451
takeratta/chainer
/examples/ptb/train_ptb.py
Python
py
10,575
permissive
#!/usr/bin/env python """Sample script of recurrent neural network language model. This code is ported from the following implementation written in Torch. https://github.com/tomsercu/lstm """ from __future__ import division from __future__ import print_function import argparse import numpy as np import chainer impo...
92890f0b9f72504cd6c345e2fa9fd66e8e92c9af
552d8b74b697672758f1b481d2bb21bb66ccf77c
medofadel100/AutoCar-master
/AutoRCCar-master/raspberryPi/ultrasonic_client.py
Python
py
1,203
no_license
#__author__ = 'Ahmed Fadel' from socket import * import time import RPi.GPIO as GPIO GPIO.setwarnings(False) # create a socket and bind socket to the host client_socket = socket(AF_INET, SOCK_STREAM) client_socket.connect(('192.168.1.100', 8002)) def measure(): """ measure distance """ GPIO.output(...
465f7487f619dca305866926022b91b7ca17d6ba
59ad0df580ba4444e1b8322d09dc0a505f8767ee
disposedtrolley/fullstack-nanodegree-vm
/vagrant/catalog/app/populate_db.py
Python
py
2,068
no_license
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from models import Category, Base, Item, User engine = create_engine('sqlite:///itemcatalog.db') Base.metadata.bind = engine DBSession = sessionmaker(bind=engine) session = DBSession() categories = ["Soccer", "Basketball", ...
94ead7131f53419feb5faa47fc23cb576fe07227
2a9dcbf1a9c4b543e77e5cbe6c5b61dea54f8fe7
G4te-Keep3r/HowdyHackers
/langs/1/cfi.py
Python
py
486
no_license
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
5f51f1ff2a630d328ecd005ab752ff9e37516f06
345ca39b544c2d714e1a0c75db0136c0b2ef1731
BBackJK/2020tech
/ve_python/pycharm/200521/03_forExample3.py
Python
py
346
no_license
## Display the names of the 52 cards in a deck of cards. ranks = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "jack", "queen", "king", "ace"] suits = ["spades", "hearts", "clubs", "diamonds"] deckOfCards = [] for rank in ranks: for suit in suits: deckOfCards.append(rank + " of " + suit) for card in dec...
93552e63f992a727a9a48a58a2eecf9cb393a941
19eaeda80034c2571ad1725930ac7d958ec9b9b2
melodist/CodingPractice
/src/Baekjoon/15654_N and M (5).py
Python
py
1,077
no_license
""" https://www.acmicpc.net/problem/15654 """ #1. Recursive Solution import sys n, m = map(int, input().split()) arr = [*map(int, sys.stdin.readline().strip().split())] arr.sort() visited = [False] * n def select(a, k, visited): if k == m: print(' '.join(map(str, a))) return for i, ...
75e7b86d8e0a2e6fa4fc69f408d842ba35237bea
ce37f49262f79cfd0cc38e9f32fa2d7207fecaf4
happz/ducky-legacy
/ducky/mm/__init__.py
Python
py
24,453
permissive
from six import iteritems, itervalues from six.moves import range from ..interfaces import ISnapshotable from ..errors import AccessViolationError, InvalidResourceError from ..util import align, sizeof_fmt, Flags from ..snapshot import SnapshotNode import enum DEFAULT_MEMORY_SIZE = 0x1000000 # Types from ctypes imp...
65ed410b7edfe9911e46b063bca9b6c5e0f39d87
f6b4546707559ea4cdf7ed38fa9e2ce91cb6bf99
compeit-open-source/dashboard
/app/auth/__init__.py
Python
py
676
permissive
# Copyright 2016 The COMPEIT Consortium # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
5f0cd5398efb8e4563949f98521f93f457d0d537
f9cfab116ad9d33af03aa14bf1d207c699d5b56f
71/styx-history
/styx.rs/src/arch/x86.py
Python
py
3,244
permissive
""" This file generates the X86-specific instruction parser for the Styx arch.rs module. """ from common import * prefix = """""" with output('x86') as out: write_head(prefix) define('add', 'r/m 8', 'r 8', 0x00) define('add', 'r/m 16/32', 'r 16/32', 0x01) define('add', 'r 8', ...
019b73933064223e110d93b693ccb9b021954a81
af2cb4d2b86ce0e16f37545e8bda55fbdfc5db22
psj8532/problem_solving
/Programmers/Lv3/카드짝맞추기.py
Python
py
2,654
no_license
# 10:45 ~ 12:28 # 틀림(구현 실패) def solution(board, r, c): def move_row(start, end): sy, sx, ey, ex = start[0], start[1], end[0], end[1] cy, cx = sy, sx cnt = 1 while cy != ey: if cy > ey: cy -= 1 else: cy += 1 if board[cy][cx] and not visit[board[cy][...
33df86c7bd18eea1587c4a54fd1d7da6592d7a42
083284baeee34ff60a105b7358622f1d131c8064
sagarpanchal0055/EminemStan
/albums/migrations/0005_auto_20200819_1249.py
Python
py
7,890
no_license
# Generated by Django 3.1 on 2020-08-19 07:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('albums', '0004_revival'), ] operations = [ migrations.RenameField( model_name='album', old_name='content', ...
15f6515f67e26d43f006eefa5f47d02236c29ad4
d5c73e271d1b96b8c969064a84190425b24c5bcf
sshamilton/IT394-Rowe-Prairie-Project
/AMIApp/migrations/0001_initial.py
Python
py
3,325
no_license
# Generated by Django 2.1.5 on 2020-05-04 00:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Cadet_Has_Superior', field...
48e2236e8f933f2978aa7eddce1a79612a4f4e31
b1a503e83a7a79ee675b3917d7615855f6308877
yongsu92/Django_FC
/1218/fc_community/board/migrations/0002_auto_20201219_1404.py
Python
py
590
no_license
# Generated by Django 3.1.3 on 2020-12-19 05:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tag', '0001_initial'), ('board', '0001_initial'), ] operations = [ migrations.AddField( model_name='board', ...
b20af36969ba42cbdd38fd7165cdaa40f4b0748a
6eb8094bce88872952e8d0f2b448a6c52d0da097
AnguseZhang/Input_TI
/ptp1b_input/L77/77-82_wat_20Abox/set_1ns_equi_m.py
Python
py
924
no_license
import os dir = '/mnt/scratch/songlin3/run/ptp1b/L77/wat_20Abox/ti_one-step/77_82/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_m.in' temp_pbs = filesdir + 'temp_1ns_equi_m.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for ...
e7cc386bde08cc66b2ecad197ff481d45eed2884
cb09a1c39da0baa00f180095f50edfe6f7e4ecfb
jackispm/bitcoin-abc
/test/functional/wallet_multiwallet.py
Python
py
18,385
permissive
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiwallet. Verify that a bitcoind node can load multiple wallet files """ from decimal import D...
85f4bf9c7b83af460b73dfb08d91144a4b64cf3c
39995ccbff18f95165ebd5433eff46ef092be967
netscaler/neutron
/neutron/extensions/extra_dhcp_opt.py
Python
py
2,811
permissive
# Copyright (c) 2013 OpenStack Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
02f5b4a43421df0a1e507e97ef8774728fd45df5
f9e83ec90eacd2737091882e707ba5a69a2295f5
mc25573/DrinkBot-Website
/drink_app/migrations/0002_auto_20200723_0236.py
Python
py
384
no_license
# Generated by Django 3.0.8 on 2020-07-23 07:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('drink_app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='drink', name='date_modified', ...
3b16b5dda8e4c83af4458921b462ba1caf94f739
f6f53d01c3a29ffa5eaa2be6fcf240e941355715
Spotify-tt69/Spotify
/spot/predict.py
Python
py
2,762
permissive
from joblib import load import pandas as pd from sklearn.neighbors import NearestNeighbors from sklearn.preprocessing import StandardScaler import numpy as np df = pd.read_csv('herokuspotify.csv') X = df.drop(['region', 'position', 'month','day','region.1', 'artist','track_name', 'track_id'], axis=1) s...
d661453dd1c0f44ad2dc96bfacf765ff1a8b8bf7
4659b148aa427d270614a76adc14c69a2cd71edf
kinect59/pose2image
/datageneration.py
Python
py
16,235
no_license
import os import numpy as np import json import cv2 import scipy.io as sio from scipy import interpolate import transformations import datareader limbs = [[0,1],[2,3],[3,4],[5,6],[6,7],[8,9],[9,10],[11,12],[12,13],[2,5,8,11]] def getPersonScale(joints): torso_size = (-joints[0][1] + (joints[8][1] + joints[11][1])/2...
13dd6c318b90b98e8095bdc80a1fd0968d72f094
7a2253c88aa03c39cd2919e7020a1c2b604abb19
Hodsonj/cs329-1
/src/quiz/quiz3_base.py
Python
py
6,776
no_license
# ======================================================================== # Copyright 2020 Emory University # # 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/lice...
8a7f74b07d2c03f3477484bbff7c2006c94437f8
22b15778384977ada96c0fb3b6eae460d4c7bb63
FBarto/contactos
/contactos/urls.py
Python
py
908
no_license
"""contactos URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
e5b9a54a361341f11cd458bbbc9f02b7da1ed1c2
57deda4f60da8630c6ed51ae746bdb652fb122f2
ghislainp/snowoptics
/snowoptics/snowoptics.py
Python
py
31,126
permissive
# -*- coding: utf-8 -*- # # Snowoptics (C) 2019-2020 Ghislain Picard # # MIT License # import datetime from .refractive_index import refice, refsoot_imag, refhulis_imag, refdust_imag, MAE_dust_caponi import numpy as np from numpy.polynomial import Polynomial import scipy.optimize try: import ephem except ImportEr...
3ba375cac55f57ac63adb9ab1788ee439354ed75
aef666b5b16e4184e9868ce61e9319fc9ce6d03a
rclmenezes/djangotogo
/build/gunicorn/setup.py
Python
py
3,108
permissive
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. import os from setuptools import setup, find_packages, Command import sys from gunicorn import __version__ CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Environment :: Other En...
9daaa182724db020200b77a061c152f10a8ba30f
487601a8b78b5301102ec5cba8ffb2a046ef2bb5
amars7works/double_critical
/double_critical/settings_nouse.py
Python
py
3,123
no_license
""" Django settings for double_critical project. Generated by 'django-admin startproject' using Django 1.11.1. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
eb81b840d35cc9afd687a71cc44bcba39b521e1e
0b401efafc18218f6719a97ffc81d2fbb50e3871
wenyifeng1123/GUI
/visualize/featureMapPart/InPy35WithH5/Ui_matplotlib_pyqt_ListButton.py
Python
py
3,511
no_license
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Ui_matplotlib_pyqt_ListButton.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self,...
b5c5c0d4fd9ddd76a422d2f233add2828ab62c5b
87d91676364435256e48615a3bcc50492beedd37
CaiYingFeng/Some_script
/pltpoints.py
Python
py
4,318
no_license
import matplotlib.pyplot as plt import time import os import sys import tty import termios # cam='cam03_sp' # f=open('/media/autolab/disk_4T/cyf/localization/out/eval/aachen/'+cam+'/'+'cam03.txt') # f=open('/media/autolab/disk_4T/cyf/localization/out/eval/aachen/0808_front_center50to1.txt') f=open('/media/autolab/disk_...
eb1e4c26104b32a29bca4d386daf6be8bdeee24b
c93007c9f80184ee589f79699e02fe847f09fe51
CrownCEO/MachineReadingComprehension
/pytensorflow/RMA/model.py
Python
py
10,559
permissive
import tensorflow as tf from tensorflow.contrib.keras import layers from pytensorflow.RMA.layers import align_block, summary_vector, start_logits, end_logits, rl_loss, total_params class Model(object): def __init__(self, config, batch, word_mat=None, char_mat=None, trainable=True, opt=True, demo=False, graph=Non...
c01e516a028189d832c3b3bca66031cd5aca0611
949e8c84efc8c9857dcd183b34e7ab860d883040
fanbyprinciple/face-finder
/recognize_faces_image.py
Python
py
2,662
no_license
# USAGE # python recognize_faces_image.py --encodings encodings.pickle --image examples/example_01.png # import the necessary packages import face_recognition import argparse import pickle import cv2 # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-e", "--encod...
ec8c46e2269c97a894c5d696ba197a4314e7821d
8d10b6f37b81ae7a9fa6c364e754022596fdcc99
mitchellrj/touchdown
/touchdown/goals/tail.py
Python
py
2,382
permissive
# Copyright 2015 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
4caac6881df16fd8166e360fb39285dcd33cb6d8
64e6e6d1775877dcdfefa3bb2400dd5d559ffc5f
LOLpredictor/LOL_API_WRAPPER
/sources/lib/match/game.py
Python
py
2,160
no_license
import json from sources.lib.match.player import Player from sources.lib.match.team import Team class Game: def __init__(self): self.seasonID = -1 self.queueId = -1 self.gameID = -1 self.players = [] self.teams = [] self.gameDuration = -1 self.gameCreation ...
1898be69561e1385638173ba99198d252298a98c
dfce02b49ad2e9852f7931acb4825dfe913c389e
mag004/CO-Assignment-MPH-
/SimpleSimulator/sim.py
Python
py
9,667
no_license
import numpy as np import matplotlib.pyplot as plt Dict = {"R0":"000","R1":"001","R2":"010","R3":"011","R4":"100","R5":"101","R6":"110","FLAGS":"111"} RegDict = {"000":"R0","001":"R1","010":"R2","011":"R3","100":"R4","101":"R5","110":"R6","111":"FLAGS"} Dict2 = {"R0":0,"R1":0,"R2":0,"R3":0,"R4":0,"R5":0,"R6":0 , "FLAG...
b9ecdd99cf8c6adcc7b0dcc691d36e705c1239a5
1f91601b87e7f8b8130750643e8f0a988fb836bf
mehalll/Programming-Fundaments-Detailed-Assignment-
/Ex 3.19 Mehal Rashid.py
Python
py
823
no_license
print("Mehal Rashid") print("18B-063-CS(A)") print("Assignment #1") print("Exercise 3.19") a, b, c = 3, 4, 5 if a<b: print("\n\nA is less than b? : OK") else: print("\n\nA is less than b? : NOT OK") if c<b: print("C is l...
0aa7d6d0b921be6cf4aab55bfe1d5132d8c5277b
863412d5e15c0f14febe1f4f91d2c384aa448a1c
crakama/andelabootcamp
/day2/super_sum.py
Python
py
815
no_license
def super_sum(A): ''' Takes a list A and: Halves every even number doubles every odd number and returns the sums of all ''' ls = [] for i in A: if i % 2 == 0: nw = i / 2 ls.append(nw) ...
46a1b83ae16a3021c8d8e01d8a0294d184849ff4
a75325e3e02a7c6db087a6f62b7cc20548cb0d2a
teymureyvaz/azersu-microservices-gateway
/mic/ldap_token/models.py
Python
py
493
no_license
from django.db import models from datetime import datetime from datetime import timedelta # Create your models here. class AD_token(models.Model): username = models.CharField(max_length=255) token = models.CharField(max_length=255) created_at = models.DateTimeField(default=datetime.now, blank=True) exp...
dfc3e1904c346f869cec50d6cd9c1150c76b82c7
c13a022c6c13c1bdf91f9a71a31bcadcb62c0ef8
TesterCC/Python3Scripts
/dev_demo/ctf/gen_ctf_flag_with_prefix.py
Python
py
309
no_license
# coding:utf-8 import uuid def gen_flags(flag_tag="flag", count=7): print(f"[+] Generate {count} flag(s): ") for i in range(count): print("{}{{{}}}".format(flag_tag, uuid.uuid4())) if __name__ == '__main__': # gen_flags(10) gen_flags(flag_tag="CyberSpace", count=3)
547c0eb18bb708de40260d28663548f6833aebd5
0ad0d5d0c2b6c26dc72d9fab95e9694cdab4a3c1
epicserve/django-base-site
/config/urls.py
Python
py
924
permissive
from typing import Union from django.conf import settings from django.contrib import admin from django.urls import URLPattern, URLResolver, include, path from django.views.generic import TemplateView from apps.accounts.views import NameChange from apps.base.views import http_404, http_500 # Includes urlpatterns: lis...
818b45e264536d6b7a8f26c1f947a600d42acd9a
243ce708e56dfd8aac783f3154ad67c99e579452
TintinOle/Svendepr-ve
/Resources.py
Python
py
6,802
no_license
class I18N(): def __init__(self,language): if language == 'en' : self.resourceLanguageEnglish() elif language == 'da' : self.resourceLanguageDanish() def resourceLanguageEnglish(self): self.title = "My Fridge" self.tabA = "This Day" self.tabB = "Thi...
412c2992e211412b7745232208bb5efb33cc2af8
c9bb5bbde777dbaae3fe6993ca2c2e4d814421b4
bogdan-s/TF_Segmentation
/Unet_custom_training_loop_EAGER.py
Python
py
17,107
permissive
#new loss function import os import sys from pathlib import Path import datetime # from IPython.display import clear_output # import IPython.display as display from glob import glob import matplotlib.pyplot as plt import tensorflow as tf from tensorflow import keras from tensorflow.keras.models import Model from tenso...
8f9fcb717e9f99068c0b463fb9ca4b94c7f42d1d
ce70cfbc2f6244511c9bf848c5f77104371a87c5
CheeseLord/smush
/src/graphics.py
Python
py
2,733
permissive
from panda3d.core import Point3 from src.logconfig import newLogger from src.utils import constrainToInterval log = newLogger(__name__) app = None playerNP = None playerHeadNP = None smileyIsFrowney = False smileyNP = None smileyModel = None frowneyModel = None def initGraphics(app_): global app ...
aca81fcdd87053b06c2f9a39e8637c99bd210717
1566d722037f6fbbefd5dc6cbe80376dc8044066
Octopus-Yu/gbvs
/gbvs.py
Python
py
4,135
no_license
import time import cv2 import colorFeatureMaps import orientationFeatureMaps import graphBasedActivation import numpy as np from matplotlib import pyplot as plt def calculateFeatureMaps(r, g, b, L, params): colorMaps = colorFeatureMaps.compute(r, g, b, L) orientationMaps = orientationFeatureMaps.compute(L, par...
d4f80b666547fce4090f1500808188af7bff3516
258909636cbd36ddc02e3dc1f3e13c1bbdbdd21c
i14564/Practice-2016
/src/checks/visitors.py
Python
py
565
no_license
import lxml.html as LH def check(url): try: doc = LH.parse('http://www.siteworthtraffic.com/report/' + url) rows = doc.xpath("//table")[1].findall("tr") except IndexError : return {'status': 'Ok', 'code': 0, 'value': 0} data = list() for row in rows: data.append([c.text...
4ac6170e7d89fe65ca32bcd4fa01daf998b4f46f
ee72b22412abce3467a99fe91bfb6a67cdcb6456
ZhaoJ9014/Anti-UAV
/Codes/detect_wrapper/Detectoruav.py
Python
py
5,754
permissive
import argparse import os import shutil import time from pathlib import Path import numpy as np import cv2 import torch import torch.backends.cudnn as cudnn from numpy import random from PIL import Image import pdb import sys from detect_wrapper.models.experimental import attempt_load from detect_wrap...
95f66f98931151c19d81f722622a49bafa3eedf8
3db339be451c3a81d2aebf7f853de9bace01f82f
hejoseph/ros
/devel/_setup_util.py
Python
py
12,307
no_license
#!/usr/bin/python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistrib...
fde0a4ace983cc0f3a895c52bd4a77baf6cdf75d
958c925a891ec90f5ee57ce6919de2141f813dec
tomershmul/CV_Project
/busColorPredict.py
Python
py
1,513
no_license
import tensorflow as tf import math import os import numpy as np from PIL import Image from busColorParameters import * from busColorDetection import generate_dataset def predict(test_images_set, test_image_labels_onehot): new_graph = tf.get_default_graph() with tf.Session() as sess: new_saver = ...
901bfd744f8a2e53f5085466ec14b61d689932cd
e02fddf358deb9ab5b3feccfa68fc0eb972392d6
hejia-v/table
/table.py
Python
py
6,450
no_license
# -*- coding:utf-8 -*- ''' Created on 2014年10月19日 @author: jia ''' import os import logging from collections import Counter import xlrd import log import datatype log.init_logger('table') logger = logging.getLogger('table') class Excel2Table(object): def __init__(self): self._templa...
91f6bb56f33592732a199b71e6f2bcf1237fa54f
46cf05d5e93bbeaa0fcdd92888bc74fa2ab8f0e2
yacowsproject/opps
/opps/articles/models.py
Python
py
7,880
permissive
# -*- coding: utf-8 -*- from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError from django.contrib.redirects.models import Redirect from taggit.managers import TaggableManager from googl.short import Goog...
50a8b0f06ae6109e2ff04afbff17002dc2c3be4e
809920abfcfb0122878e1b0b151b061f6b9b172f
sheikhahnaf/file_manipulators
/stripper.py
Python
py
536
no_license
# -*- coding: utf-8 -*- """ Created on Mon Aug 17 15:45:22 2020 @author: Sheikh Ahnaf Alvi """ import re import numpy as np import os import sys #load the twister file cwd=os.getcwd() print(cwd) file=sys.argv[1] out="lammps_"+file[:-4]+".txt" print(os.path.join(cwd,file)) with open(file,"r") as f: lines=f....
3d4038e3e52edba602dbeedee138030f7f3982bf
d182677e00e3d0c028f8123dbb277651ce5cfc24
RicardoAntonio24/otomi
/application/controllers/manos/index.py
Python
py
1,068
no_license
import config import hashlib import app class Index: def __init__(self): pass ''' def GET(self): if app.session.loggedin is True: # validate if the user is logged # session_username = app.session.username session_privilege = app.session.privilege # get the sessi...
7f3dd06984249bce43d87425adfcdd49eb13ddb8
a63135e4fe923e39440a7258f97cc6a770eadb54
crowdbotics-apps/mute-shape-26972
/backend/manage.py
Python
py
636
no_license
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mute_shape_26972.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: rai...
7adc40ef569e4c6d21a9fe7faca57602666ea907
248645358538926c935332416e68ad7561be7d52
kahlouie/Exercise6
/wordcount.py
Python
py
1,656
no_license
#lower all characters #for loop to run through text #split into a list with #strip the list items to get rid of non-word characters #set default to 1 (dict.setdefault) #iterate through list of words (dict.iteritems) #if not in list, set it to default #if in list +=1 def main(): f = open("twain.txt") ...
e4733492724d29423eb98082a6995b26ad259d6f
8648a0dcf88f91c3d80155ca5dcf8f5a8370ebf7
sarum9in/meson
/mesonbuild/mesonlib.py
Python
py
39,184
permissive
# Copyright 2012-2015 The Meson development team # 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 agree...
3037b78f50de4f9de9a75bbb44383345252e5641
d82b132c1f5fbf7d3176029ae434d6a02e531c37
fredericolcosta/StockTrades
/settings.py
Python
py
238
no_license
from dotenv import load_dotenv import os load_dotenv() TOKEN = os.getenv("TOKEN") USERNAME = os.getenv("USERNAME") PASSWORD = os.getenv("PASSWORD") ADDRESS = os.getenv("ADDRESS") PORT = os.getenv("PORT") DATABASE = os.getenv("DATABASE")
12bf2fda35ae67e859ab171f2547a7e635f3d22a
937358bf778540383874a7088c5e63c418c04161
clomia/airbnb-clone
/lists/migrations/0002_list_rooms.py
Python
py
465
no_license
# Generated by Django 2.2.5 on 2020-10-27 22:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('lists', '0001_initial'), ('rooms', '0001_initial'), ] operations = [ migrations.AddField( model_name...
0c4c635967cfc87c1d5055a24cb48aa938e58110
2133a7c69aec21cb30aca8df37761fc2e9895364
yuzhouxianzhi/JORLDY
/jorldy/config/dqn/atari.py
Python
py
960
permissive
### DQN Atari Config ### env = { # "name": it should be defined in the command. ex) python main.py --config config.AGENT.atari --env.name breakout "render": False, "gray_img": True, "img_width": 84, "img_height": 84, "stack_frame": 4, "no_op": False, "reward_clip": True, "dead_penal...
4e434ae83108dd5134031b83a306b3cfe02b05fc
1de4d3cbe845244560fe0e0e5bcfad4db5f2718f
Alex-Burgess/ewelists.com-tools-services
/Tools/tests/test_backup.py
Python
py
4,479
no_license
import os import json import mock from tools import backup, logger log = logger.setup_test_logger() LISTS_TABLE = 'lists-unittest' PRODUCTS_TABLE = 'products-unittest' mock_backup_response = { 'BackupDetails': { 'BackupArn': 'arn:aws:dynamodb:eu-west-1:123456789012:table/lists-unittest/backup/01589359875...
8e73d3d0dfa060006ea9450bdb290875f3d461ee
da27bd9cbd1b5707e231149369b9a6899cf4aa5d
Jung-Eric/rasmon3
/12_01 전송본/test001.py
Python
py
57,238
no_license
import sys import pygame import spritesheet import random #newsprite는 일단 필요 없는 파일 #슬라임 정보 #일단은 기본 크기에 해당 150,119의 세 배 SCREEN_WIDTH = 450 SCREEN_HEIGHT = 357 white = (255, 255, 255) black = (0, 0, 0) pygame.init() pygame.display.set_caption("Pymon_v001") screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGH...
4fb6c240e80d6700c19472c690bdf039dff219c7
aa1555751ecace72e538838b1f7cc208497dff7f
hms-dbmi/pic-sure-jupyter-widgets
/setup.py
Python
py
6,018
permissive
from __future__ import print_function from setuptools import setup, find_packages, Command from setuptools.command.sdist import sdist from setuptools.command.build_py import build_py from setuptools.command.egg_info import egg_info from subprocess import check_call import os import sys import platform here = os.path.d...
e66747e9db7f54a6306230d554e46236a545e8fa
dbd120b971e5d5bc53da3273054a94c17a7fbb84
beefoo/coloring-book
/thank-you/thank-you.py
Python
py
1,190
no_license
# -*- coding: utf-8 -*- import inspect import math import os import svgwrite import sys # add parent directory to sys path to import relative modules currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) import lib....
b84c0caad813e86124f312af84cb4cb0bf2dbdb1
ea8004fa446efb18d4dacf28828a720a5604fedf
hortonworksqe/sahara
/sahara/tests/unit/plugins/vanilla/v1_2_1/test_plugin.py
Python
py
11,035
permissive
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...