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 |
|---|---|---|---|---|---|
tools/config.py | emiliopomares/flow-separation-prediction | 0 | 87624 | import os
config = {
'project_path': os.getcwd() + '/../openfoam/run/Airfoil2D_full/'
} | [
1,
1053,
2897,
13,
13,
2917,
353,
426,
13,
1678,
525,
4836,
29918,
2084,
2396,
2897,
29889,
657,
29883,
9970,
580,
718,
8207,
6995,
3150,
1181,
314,
29914,
3389,
29914,
29909,
381,
1181,
309,
29906,
29928,
29918,
8159,
22208,
13,
29913,... |
sge/input.py | python-sge/sge | 7 | 91953 | # This file is part of the Pygame SGE.
#
# The Pygame SGE is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# The Pygame SGE i... | [
1,
396,
910,
934,
338,
760,
310,
278,
349,
4790,
420,
317,
1692,
29889,
13,
29937,
29871,
13,
29937,
450,
349,
4790,
420,
317,
1692,
338,
3889,
7047,
29901,
366,
508,
2654,
391,
2666,
372,
322,
29914,
272,
6623,
13,
29937,
372,
1090... |
qchem/qchem.py | SinaMostafanejad/MolSSI_project_FSHXF | 0 | 79457 | <filename>qchem/qchem.py
from __future__ import division
from qm.qm_calculator import QM_calculator
from misc import call_name
class QChem(QM_calculator):
""" Class for common parts of Q-Chem
:param string basis_set: Basis set information
:param string memory: Allocatable memory in the calculation... | [
1,
529,
9507,
29958,
29939,
14969,
29914,
29939,
14969,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
3855,
29885,
29889,
29939,
29885,
29918,
15807,
1061,
1053,
660,
29924,
29918,
15807,
1061,
13,
3166,
3984,
29883,... |
fused_biattention.py | utahnlp/layer_augmentation_qa | 6 | 38188 | import sys
import torch
from torch import nn
from torch.autograd import Variable
from view import *
from holder import *
from util import *
from join_table import *
from trilinear_prod import *
from fusion import *
# fused bidir attention
class FusedBiAttention(torch.nn.Module):
def __init__(self, opt, shared):
su... | [
1,
1053,
10876,
13,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
1053,
302,
29876,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
1053,
28736,
13,
3166,
1776,
1053,
334,
13,
3166,
19464,
1053,
334,
13,
3166,
3667,
1053,
334,
13,
3166,
59... |
src/residue.py | kabhel/Fold_U | 0 | 151709 | """
.. module:: Residue
:synopsis: This module implements the Residue class.
"""
# Third-party modules
import numpy as np
# Local modules
from src.atom import Atom
class Residue:
"""
.. class:: Residue
This class groups informations about a residue.
Attributes:
name (str): Name of the... | [
1,
9995,
13,
636,
3883,
1057,
2538,
333,
434,
13,
259,
584,
19274,
15368,
29901,
910,
3883,
10703,
278,
2538,
333,
434,
770,
29889,
13,
15945,
29908,
13,
13,
29937,
18008,
29899,
22633,
10585,
13,
5215,
12655,
408,
7442,
13,
13,
29937... |
credential_test.py | jmuema/password-locker | 0 | 139790 | import unittest # Importing the unittest module
from credential import Credential # Importing the credential class
class TestCredential(unittest.TestCase):
'''
Test class that defines test cases for the credential class behaviours.
Args:
unittest.TestCase: TestCase class that helps in creating te... | [
1,
1053,
443,
27958,
396,
16032,
292,
278,
443,
27958,
3883,
13,
3166,
6625,
2556,
1053,
24596,
2556,
396,
16032,
292,
278,
6625,
2556,
770,
13,
13,
1990,
4321,
15507,
2556,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
14... |
colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py | JGoldstone/colour | 0 | 17884 | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Defines the unit tests for the :mod:`colour.models.rgb.transfer_functions.\
panasonic_vlog` module.
"""
import numpy as np
import unittest
from colour.models.rgb.transfer_functions import (
log_encoding_VLog,
log_decoding_VLog,
)
from colour.utilities import domain_rang... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
3206,
1475,
278,
5190,
6987,
363,
278,
584,
1545,
18078,
1054,
473,
29889,
9794,
2988... |
get_data/__init__.py | LilySu/nyc-health-API | 0 | 128258 | from flask import Flask
from flask import jsonify
import pandas as pd
import markdown
import requests
import os
app = Flask(__name__)
@app.route("/")
def index():
with open(os.path.dirname(app.root_path) + '/README.md','r') as markdown_file:
content = markdown_file.read()
return markdown.markdown... | [
1,
515,
29784,
1053,
2379,
1278,
13,
3166,
29784,
1053,
4390,
1598,
13,
5215,
11701,
408,
10518,
13,
5215,
2791,
3204,
13,
5215,
7274,
13,
5215,
2897,
13,
13,
13,
932,
353,
2379,
1278,
22168,
978,
1649,
29897,
13,
13,
29992,
932,
29... |
src/cookbook/__init__.py | Vidreven/cookbook | 0 | 114374 | <reponame>Vidreven/cookbook<filename>src/cookbook/__init__.py
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from . import config
URL = (
f"{config.DB_DRIVER}://{config.DB_USER}:{config.DB_PWD}"
f"@{config.DB_HOST}:{config.DB_PORT}/{config.DB_NAME}"
)
engine = create_engine(URL,... | [
1,
529,
276,
1112,
420,
29958,
29963,
333,
27901,
29914,
15108,
2909,
29966,
9507,
29958,
4351,
29914,
15108,
2909,
29914,
1649,
2344,
26914,
2272,
13,
3166,
4576,
284,
305,
6764,
1053,
1653,
29918,
10599,
13,
3166,
4576,
284,
305,
6764,
... |
lib/arg.py | XanderXAJ/static-site-helpers | 0 | 122412 | import argparse
import typing
def generate_argument_parser(parser: argparse.ArgumentParser = None):
if parser is None:
parser = argparse.ArgumentParser()
parser.add_argument('--log_level', help='Set logging level', default='WARNING',
type=str.upper,
choi... | [
1,
1053,
1852,
5510,
13,
5215,
19229,
13,
13,
13,
1753,
5706,
29918,
23516,
29918,
16680,
29898,
16680,
29901,
1852,
5510,
29889,
15730,
11726,
353,
6213,
1125,
13,
1678,
565,
13812,
338,
6213,
29901,
13,
4706,
13812,
353,
1852,
5510,
2... |
quickcert.py | dedickinson/hub-util-tls | 0 | 149969 | #!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK
import quickcert
quickcert.QuickCertCli().run() | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
349,
29979,
4690,
1164,
29918,
1718,
29954,
21514,
18476,
29918,
8949,
13,
13,
5215,
4996,
6327,
13,
13,
24561,
6327,
29889,
2182,
860,
20455,
29907,
492,
2141,
3389,
580,
... |
HUGGINGFACE.py | mkingopng/NBME_score_clinical_patient_notes | 1 | 21252 | import os
TRANSFORMERS = '/home/noone/documents/github/transformers'
TOKENIZERS = '/home/noone/documents/github/tokenizers'
DATASETS = '/home/noone/documents/github/datasets'
MODELS = os.path.join(TRANSFORMERS, 'src/transformers/models')
DEBERTA_V2 = os.path.join(MODELS, 'deberta_v2')
DEBERTA_V3 = os.path.join(MO... | [
1,
1053,
2897,
13,
13,
26813,
29903,
19094,
23598,
353,
8207,
5184,
29914,
1217,
650,
29914,
3225,
29879,
29914,
3292,
29914,
9067,
414,
29915,
13,
13,
4986,
29968,
1430,
26664,
23598,
353,
8207,
5184,
29914,
1217,
650,
29914,
3225,
29879... |
orio/main/tuner/tuner.py | parsabee/Orio | 24 | 11361 | <reponame>parsabee/Orio
#
# The tuner class to initiate the empirical performance tuning process
#
import re, sys, os
from orio.main.util.globals import *
import orio.main.dyn_loader, orio.main.tspec.tspec, orio.main.tuner.ptest_codegen, orio.main.tuner.ptest_driver
#------------------------------------------------... | [
1,
529,
276,
1112,
420,
29958,
862,
29879,
370,
3905,
29914,
29949,
5378,
13,
29937,
13,
29937,
450,
18515,
261,
770,
304,
14511,
403,
278,
29190,
936,
4180,
18515,
292,
1889,
13,
29937,
13,
13,
5215,
337,
29892,
10876,
29892,
2897,
1... |
libcloud/extra/drivers/google.py | Scalr/libcloud | 0 | 42226 | <gh_stars>0
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
10413,
21144,
304,
278,
13380,
18540,
10606,
313,
3289,
29943,
29897,
1090,
697,
470,
901,
13,
29937,
17737,
3406,
19405,
8571,
4110,
29889,
29871,
2823,
278,
6058,
12107,
934,
132... |
ed2d/mesh.py | explosiveduck/cubix | 1 | 1612026 | <filename>ed2d/mesh.py<gh_stars>1-10
from gem import matrix
from gem import vector
from ed2d.opengl import gl, pgl
from ed2d.assets import objloader
def buffer_object(data, typeM):
if data or 0:
vbo = pgl.glGenBuffers(1)
gl.glBindBuffer(gl.GL_ARRAY_BUFFER, vbo)
pgl.glBufferData(gl.GL_ARRAY... | [
1,
529,
9507,
29958,
287,
29906,
29881,
29914,
4467,
29882,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
7055,
1053,
4636,
13,
3166,
7055,
1053,
4608,
13,
3166,
1226,
29906,
29881,
29889,
459,
... |
UNET_EM_DATASET/UNET_EM_DATASET_TERNARY/utility.py | hossein1387/U-Net-Fixed-Point-Quantization-for-Medical-Image-Segmentation | 69 | 34244 | ../UNET_EM_DATASET_BASE/utility.py | [
1,
29772,
3904,
2544,
29918,
12665,
29918,
25832,
8127,
29911,
29918,
25416,
29914,
329,
1793,
29889,
2272,
2
] |
jax_meta/datasets/transforms/functional.py | tristandeleu/jax-meta-learning | 5 | 189350 | import numpy as np
from numpy.random import default_rng
def random_crop(data, size, padding, rng=default_rng()):
x = rng.integers(2 * padding, size=data.shape[:-3] + (1, 1, 1))
y = rng.integers(2 * padding, size=data.shape[:-3] + (1, 1, 1))
arange = np.arange(size)
rows = x + arange.reshape((size, 1,... | [
1,
1053,
12655,
408,
7442,
13,
13,
3166,
12655,
29889,
8172,
1053,
2322,
29918,
29878,
865,
13,
13,
13,
1753,
4036,
29918,
29883,
1336,
29898,
1272,
29892,
2159,
29892,
7164,
29892,
364,
865,
29922,
4381,
29918,
29878,
865,
580,
1125,
1... |
initGame.py | Sabsterrexx/PingPongGame | 0 | 33010 | #Import required Modules:
import pygame
import constants
from paddle import Paddle
from ball import Ball
from score import Score
from text import Text
from screenState import ScreenState
#This function basically executes everything in the "screenState" module's class
def init():
#Initialize all the c... | [
1,
396,
17518,
3734,
3382,
2540,
29901,
30004,
13,
5215,
22028,
30004,
13,
5215,
17727,
30004,
13,
3166,
282,
22352,
1053,
349,
22352,
30004,
13,
3166,
8287,
1053,
13402,
30004,
13,
3166,
8158,
1053,
2522,
487,
30004,
13,
3166,
1426,
10... |
utils/model_trainer.py | heroclass728/alpr_egyptian | 0 | 142750 | <filename>utils/model_trainer.py
from darkflow.net.build import TFNet
if __name__ == '__main__':
options = {"model": "/media/mensa/Data/Task/EgyALPR/darkflow/cfg/yolo.cfg",
"load": "/media/mensa/Data/Task/EgyALPR/darkflow/bin/yolo.weights",
"batch": 8,
"epoch": 100,
... | [
1,
529,
9507,
29958,
13239,
29914,
4299,
29918,
3018,
4983,
29889,
2272,
13,
3166,
6501,
1731,
29889,
1212,
29889,
4282,
1053,
323,
29943,
6779,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
3987,
... |
src/utils/colors.py | ShounoLab/res-net-interpretation-open | 0 | 180623 | import numpy as np
def rgb2yuv(r, g, b, mode="ycbcr"):
# 8 bit full scale Y Cb Cr
Y = [0.299, 0.587, 0.114]
U = [-0.169, -0.331, 0.5]
V = [0.5, -0.419, -0.081]
yuv = np.asarray([Y, U, V])
if mode == "ycbcr":
return yuv.dot(np.asarray([r, g, b]))
elif mode == "yuv":
return ... | [
1,
1053,
12655,
408,
7442,
13,
13,
13,
1753,
15552,
29890,
29906,
29891,
4090,
29898,
29878,
29892,
330,
29892,
289,
29892,
4464,
543,
29891,
10702,
7283,
29908,
1125,
13,
1678,
396,
29871,
29947,
2586,
2989,
6287,
612,
315,
29890,
6781,
... |
src/opencmiss/neon/ui/misc/utils.py | hsorby/neon | 0 | 186953 | <gh_stars>0
'''
Copyright 2015 University of Auckland
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... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
12008,
13,
259,
14187,
1266,
29871,
29906,
29900,
29896,
29945,
3014,
310,
319,
2707,
1049,
13,
13,
259,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
3... |
local/models.py | rodrigondec/Open_CliEng | 3 | 124113 | <gh_stars>1-10
from django.db import models
# Create your models here.
class Predio(models.Model):
nome = models.CharField(max_length=200)
descricao = models.TextField(max_length=200, null=True)
def __str__(self):
return self.nome
class Setor(models.Model):
predio = models.ForeignKey(Predio, ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
13,
29937,
6204,
596,
4733,
1244,
29889,
13,
1990,
21099,
601,
29898,
9794,
29889,
3195,
1125,
13,
1678,
9235,
353,
4733,
2... |
tests/test_data.py | prabhathur/CF | 0 | 152544 | <filename>tests/test_data.py
import pytest
import dice_ml
from dice_ml.utils import helpers
def test_data_initiation(public_data_object, private_data_object):
assert isinstance(public_data_object, dice_ml.data_interfaces.public_data_interface.PublicData), "the given parameters should instantiate PublicData class"... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
1272,
29889,
2272,
13,
5215,
11451,
1688,
13,
13,
5215,
17629,
29918,
828,
13,
3166,
17629,
29918,
828,
29889,
13239,
1053,
1371,
414,
13,
13,
1753,
1243,
29918,
1272,
29918,
2344,
11685,
... |
tensor2tensor/trax/rlax/ppo.py | funtion/tensor2tensor | 1 | 4859 | # coding=utf-8
# Copyright 2019 The Tensor2Tensor Authors.
#
# 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... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
450,
323,
6073,
29906,
29911,
6073,
13189,
943,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29... |
google/appengine/tools/devappserver2/http_runtime.py | airamrguez/appengine-1.8.0-golang-1.4.3-os-x-64bit | 1 | 198422 | <gh_stars>1-10
#!/usr/bin/env python
#
# Copyright 2007 Google 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 a... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29900,
29955,
5087,
9266,
29889,
13,
29937,
13,
29937,
10413... |
main.py | omarkhaled850/photo_shop_for_pros | 0 | 93372 | <reponame>omarkhaled850/photo_shop_for_pros<filename>main.py<gh_stars>0
# Name : <NAME>
import imutils
from PyQt5 import QtCore, QtGui, QtWidgets
import cv2
import numpy as np
from PyQt5.QtGui import QPixmap
from PyQt5.QtWidgets import QAction, QFileDialog, QMainWindow, QDialog, QDialogButtonBox, QVBoxLayout... | [
1,
529,
276,
1112,
420,
29958,
290,
935,
29882,
7943,
29947,
29945,
29900,
29914,
21596,
29918,
19032,
29918,
1454,
29918,
771,
29879,
29966,
9507,
29958,
3396,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
4408,
584... |
src/setup.py | mjj4791/CCLLexer | 0 | 155425 | from setuptools import setup, find_packages
setup (
name='ccllexer',
packages=find_packages(),
entry_points =
"""
[pygments.lexers]
ccllexer = ccllexer.lexer:CCLLexer
""",
) | [
1,
515,
731,
21245,
8789,
1053,
6230,
29892,
1284,
29918,
8318,
13,
13,
14669,
313,
13,
29871,
1024,
2433,
617,
29880,
2506,
261,
742,
13,
29871,
9741,
29922,
2886,
29918,
8318,
3285,
13,
29871,
6251,
29918,
9748,
353,
13,
29871,
9995,
... |
scale/storage/serializers.py | stevevarner/scale | 0 | 57585 | """Defines the serializers for Scale files and workspaces"""
from __future__ import unicode_literals
import rest_framework.serializers as serializers
from rest_framework.fields import CharField
from util.rest import ModelIdSerializer
class DataTypeField(CharField):
"""Field for displaying the list of data type t... | [
1,
9995,
3206,
1475,
278,
7797,
19427,
363,
2522,
744,
2066,
322,
664,
22854,
15945,
29908,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
5215,
1791,
29918,
4468,
29889,
15550,
19427,
408,
7797,
19427,
13,
... |
models.py | nas3444/capstoneproject | 0 | 183397 | <reponame>nas3444/capstoneproject
from datetime import datetime
import os
from sqlalchemy import Column, String, Integer, create_engine, ForeignKey
from flask_sqlalchemy import SQLAlchemy
import json
from config import DatabaseURI
from flask_migrate import Migrate
# Creating DB
database_path = DatabaseURI.SQLALCHEMY_D... | [
1,
529,
276,
1112,
420,
29958,
22911,
29941,
29946,
29946,
29946,
29914,
5030,
12734,
4836,
13,
3166,
12865,
1053,
12865,
13,
5215,
2897,
13,
3166,
4576,
284,
305,
6764,
1053,
12481,
29892,
1714,
29892,
8102,
29892,
1653,
29918,
10599,
29... |
smsapi/__init__.py | maciejga/smsapi-python-client | 0 | 93023 | <reponame>maciejga/smsapi-python-client<gh_stars>0
# -*- coding: utf-8 -*-
name = 'smsapi-client'
version = '2.3.0'
lib_info = '%s/%s' % (name, version) | [
1,
529,
276,
1112,
420,
29958,
8628,
8586,
3249,
29914,
29879,
1516,
2754,
29899,
4691,
29899,
4645,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
... |
sagas/nlu/features.py | samlet/stack | 3 | 154658 | from typing import Text, Any, Dict, List, Union, Optional
from jsonpath_ng import jsonpath, parse
from pprint import pprint
from sagas.conf.conf import cf
def feats_for_path(path:Text):
if path=='_':
return '$.feats'
prefix = '$.'
suffix = '.feats'
parts = path.split('/')
parts_str = '.'.jo... | [
1,
515,
19229,
1053,
3992,
29892,
3139,
29892,
360,
919,
29892,
2391,
29892,
7761,
29892,
28379,
13,
3166,
4390,
2084,
29918,
865,
1053,
4390,
2084,
29892,
6088,
13,
3166,
282,
2158,
1053,
282,
2158,
13,
3166,
17233,
294,
29889,
5527,
2... |
school/eCornell/Python Cert/Controlling Programming Flow/for statements/exercise4/funcs.py | KyleGortych/sample_work | 0 | 125919 | """
funcs
Descript:
File name: funcs.py
Maintainer: <NAME>
created: 03-22-2022
"""
def skip(s,n):
"""
Returns a copy of s, only including positions that are multiples of n
A position is a multiple of n if pos % n == 0.
Examples:
skip('hello world',1) returns 'hello world'
skip('h... | [
1,
9995,
13,
7692,
2395,
13,
4002,
924,
29901,
13,
13,
13,
2283,
1024,
29901,
29871,
2090,
2395,
29889,
2272,
13,
29924,
2365,
4008,
29901,
529,
5813,
29958,
13,
11600,
29901,
268,
29900,
29941,
29899,
29906,
29906,
29899,
29906,
29900,
... |
networkx/generators/tests/test_random_graphs.py | SultanOrazbayev/networkx | 2 | 69006 | """Unit tests for the :mod:`networkx.generators.random_graphs` module."""
import networkx as nx
import pytest
_gnp_generators = [
nx.gnp_random_graph,
nx.fast_gnp_random_graph,
nx.binomial_graph,
nx.erdos_renyi_graph,
]
@pytest.mark.parametrize("generator", _gnp_generators)
@pytest.mark.parametrize(... | [
1,
9995,
8325,
6987,
363,
278,
584,
1545,
18078,
11618,
29916,
29889,
4738,
4097,
29889,
8172,
29918,
4262,
29879,
29952,
3883,
1213,
15945,
13,
5215,
3564,
29916,
408,
302,
29916,
13,
5215,
11451,
1688,
13,
13,
13,
29918,
5138,
29886,
... |
Problem116.py | Cleancode404/ProjectEuler | 0 | 132878 | <filename>Problem116.py
"""
Red, green or blue tiles
"""
def f(m, n):
ways = [0] * (n + 1)
for i in range(m):
ways[i] = 1
for i in range(m, n + 1):
ways[i] += ways[i - 1] + ways[i - m]
return ways[n] - 1
if __name__ == '__main__':
print(f(2, 50) + f(3, 50) + f(4, 50)) | [
1,
529,
9507,
29958,
26604,
29896,
29896,
29953,
29889,
2272,
13,
15945,
29908,
13,
9039,
29892,
7933,
470,
7254,
260,
5475,
13,
15945,
29908,
13,
13,
1753,
285,
29898,
29885,
29892,
302,
1125,
13,
1678,
5837,
353,
518,
29900,
29962,
33... |
app.py | ialjumah/python-helloworld | 0 | 40486 | <filename>app.py
Volume in drive C has no label.
Volume Serial Number is 30AD-FC05
Directory of C:\Users\HP\Documents\nd064_course_1-main\solutions\python-helloworld
13/07/2021 14:33 <DIR> .
13/07/2021 14:33 <DIR> ..
13/07/2021 14:34 0 app.log
13/07/2021 14:34 ... | [
1,
529,
9507,
29958,
932,
29889,
2272,
13,
16934,
297,
7899,
315,
756,
694,
3858,
22993,
13,
16934,
18896,
9681,
338,
29871,
29941,
29900,
3035,
29899,
8610,
29900,
29945,
30004,
13,
30004,
13,
18862,
310,
315,
3583,
5959,
29905,
3954,
... |
grafana/common/dashboards/aggregated/client_subnet_statistics_detail.py | MikeAT/visualizer | 6 | 11476 | # Copyright 2021 Internet Corporation for Assigned Names and Numbers.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
#
# Developed by Sinodun IT (sinodun.com)
#
# Ag... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
4685,
15025,
363,
4007,
12961,
14706,
322,
11848,
2596,
29889,
13,
29937,
13,
29937,
910,
7562,
5920,
3812,
338,
4967,
304,
278,
4958,
310,
278,
18129,
2911,
5236,
13,
29937,
19245,
... |
era_interim/Save_Min_Geop_Height_in_area_polygon_and_Above_Oro_era_i.py | peterwilletts24/Python-Scripts | 4 | 1614619 | import cPickle as pickle
from shapely.geometry import Point, Polygon
import numpy as np
from netCDF4 import Dataset
from scipy.interpolate import griddata
p_lev = 925
geopotential, longitude_dom, latitude_dom, time_dom, time_hour = pickle.load\
(open('/nfs/a90/eepdw/D... | [
1,
1053,
274,
29925,
860,
280,
408,
5839,
280,
13,
13,
3166,
528,
481,
873,
29889,
19156,
1053,
8984,
29892,
2043,
17125,
13,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
7787,
29907,
4037,
29946,
1053,
13373,
24541,
13,
13,
3166,
4560,
... |
tests/test_show.py | domi007/pigskin | 6 | 10398 | from collections import OrderedDict
import pytest
import vcr
try: # Python 2.7
# requests's ``json()`` function returns strings as unicode (as per the
# JSON spec). In 2.7, those are of type unicode rather than str. basestring
# was created to help with that.
# https://docs.python.org/2/library/func... | [
1,
515,
16250,
1053,
8170,
287,
21533,
13,
13,
5215,
11451,
1688,
13,
5215,
325,
7283,
13,
13,
13,
2202,
29901,
29871,
396,
5132,
29871,
29906,
29889,
29955,
13,
1678,
396,
7274,
29915,
29879,
4954,
3126,
2555,
29952,
740,
3639,
6031,
... |
backend/app/utils/fields/project.py | LiXuanqi/NuaaOversea-flask-react | 0 | 154739 | #!/usr/bin/env python
# encoding: utf-8
"""
File name: project.py
Function Des: ...
~~~~~~~~~~
author: 1_x7 <<EMAIL>> <http://lixuanqi.github.io>
"""
from flask_restful import fields
project_single_fields = {
'id': fields.Integer,
'name': fields.String,
'value': fields.Integer
}
projec... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
8025,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
1678,
3497,
1024,
29901,
2060,
29889,
2272,
13,
1678,
6680,
2726,
29901,
2023,
13,
1678,
3695,
26594,
30022,
13,
13,
... |
apps/backend/tests/components/collections/agent/utils.py | ZhuoZhuoCrayon/bk-nodeman | 0 | 135061 | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
29911,
264,
1760,
21319,
29968,
292,
338,
22301,
304,
2304,
278,
1722,
2752,
7881,
491,
3907,
29871,
235,
150,
160,
236,
181,
187,
31... |
dsharpy/tools.py | parttimenerd/dsharpy | 1 | 94166 | """ Utilities not directly related to formulas or CNFs """
import logging
import math
import os
import re
import shutil
import subprocess
import tempfile
from typing import TYPE_CHECKING, Dict, Set, Tuple, Iterable
from dsharpy.preprocess import preprocess_c_code
from pathlib import Path
from tempfile import NamedTem... | [
1,
9995,
22310,
1907,
451,
4153,
4475,
304,
26760,
470,
315,
22498,
29879,
9995,
13,
5215,
12183,
13,
5215,
5844,
13,
5215,
2897,
13,
5215,
337,
13,
5215,
528,
4422,
13,
5215,
1014,
5014,
13,
5215,
5694,
1445,
13,
3166,
19229,
1053,
... |
os_migrate/plugins/modules/import_workload_create_instance.py | jbadiapa/os-migrate | 35 | 13458 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}
DOCUMENTATION = '''
---
module: import_workload_create_instance
short_description: Create NBD ex... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
313,
23552,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
29897,
13,
1649,
2527,
562,
605,
1649,
353,
1134,
13,
13,
2190,
5425,
29933,
1307... |
pathlib__examples/syntax_path.py | DazEB2/SimplePyScripts | 117 | 187826 | <filename>pathlib__examples/syntax_path.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# C:\Windows\System32\Boot
import pathlib
path = pathlib.Path('C:/') / 'Windows' / 'System32' / 'Boot'
print(path) # C:\Windows\System32\Boot
| [
1,
529,
9507,
29958,
2084,
1982,
1649,
19057,
29914,
29562,
29918,
2084,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,... |
dialogs/mmread.py | swprojects/Serial-Sequence-Creator | 1 | 192505 | <gh_stars>1-10
"""
Description:
Requirements: pySerial, wxPython Phoenix
glossary and of other descriptions:
DMM - digital multimeter
PSU - power supply
SBC - single board computer
INS - general instrument commands
GEN - general sequence instructions
"""
import json
import logging
import serial
import serialfun... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
9868,
29901,
29871,
13,
1123,
1548,
1860,
29901,
11451,
9125,
29892,
26437,
11980,
29715,
13,
13,
3820,
2209,
653,
322,
310,
916,
2342,
1980,
29901,... |
test/test_jit_disabled.py | xiaohanhuang/pytorch | 183 | 136402 | # Owner(s): ["oncall: jit"]
import sys
import os
import contextlib
import subprocess
from torch.testing._internal.common_utils import TestCase, run_tests, TemporaryFileName
@contextlib.contextmanager
def _jit_disabled():
cur_env = os.environ.get("PYTORCH_JIT", "1")
os.environ["PYTORCH_JIT"] = "0"
try:
... | [
1,
396,
438,
23007,
29898,
29879,
1125,
6796,
265,
4804,
29901,
432,
277,
3108,
13,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
3030,
1982,
13,
5215,
1014,
5014,
13,
3166,
4842,
305,
29889,
13424,
3032,
7564,
29889,
9435,
29918,
13239,
... |
scripts/repo-format.py | vxfury/tabulate | 28 | 195288 | #!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
import os
import re
import sys
import time
import subprocess
import multiprocessing
import git
import typing
import itertools
import argparse
import string
import math
import tty
import ctypes
import termios
import xml.etree.ElementTree as ET
COPYRIGHT = b"""/**
* Cop... | [
1,
18787,
4855,
29914,
2997,
29914,
2109,
29914,
4691,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
2897,
13,
5215,
337,
13,
5215,
10876,
13,
5215,
931,
13,
5215,
1014,
5014,
1... |
Python programming/tail.py | fredffsixty/Medical_Imaging | 0 | 179038 | """
tail.py stringa [-c] carattere | [-]numero stampa la sottostringa a partire dall'ultima occorrenza
di carattere, opzionalmente specificato con il parametro '-c', ovvero stampa la sottostringa a partire
dalla posizione specificata da numero eventualmente anche negativo
"""
import sys
def lastIndexOf(s, c):
""... | [
1,
9995,
13,
18237,
29889,
2272,
1347,
29874,
21069,
29883,
29962,
20044,
29872,
891,
21069,
29962,
1949,
1489,
380,
20056,
425,
17217,
1807,
29874,
263,
760,
533,
8912,
29915,
499,
2946,
2179,
272,
1267,
1362,
13,
6051,
20044,
29872,
298... |
readthedocs/core/history.py | ashlyrclark/readthedocs.org | 0 | 83195 | <gh_stars>0
import logging
from functools import partial
from django import forms
from django.db import models
from django.utils.translation import ugettext_lazy as _
from simple_history.admin import SimpleHistoryAdmin
from simple_history.models import HistoricalRecords
from simple_history.utils import update_change_r... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12183,
13,
3166,
2090,
312,
8789,
1053,
7687,
13,
13,
3166,
9557,
1053,
7190,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,... |
src/dagos/core/package_managers.py | DAG-OS/dagos | 0 | 165812 | from __future__ import annotations
import os
import textwrap
import typing as t
from dagos.platform.command_runner import CommandRunner
class PackageManagerRegistry(type):
"""A metaclass responsible for registering supported package managers."""
managers: t.List[PackageManager] = []
def __call__(cls, ... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
5215,
2897,
13,
5215,
1426,
6312,
13,
5215,
19229,
408,
260,
13,
13,
3166,
12136,
359,
29889,
12120,
29889,
6519,
29918,
27492,
1053,
10516,
16802,
13,
13,
13,
1990,
22029,
3260,
2... |
infobip/api/model/sms/mt/logs/SMSLog.py | ubidreams/infobip-api-python-client | 0 | 1609322 | # -*- coding: utf-8 -*-
"""This is a generated class and is not intended for modification!
"""
from datetime import datetime
from infobip.util.models import DefaultObject, serializable
from infobip.api.model.Error import Error
from infobip.api.model.Status import Status
from infobip.api.model.Price import Price
cla... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
4013,
338,
263,
5759,
770,
322,
338,
451,
9146,
363,
21733,
29991,
13,
15945,
29908,
13,
13,
13,
3166,
12865,
1053,
12865,
13,
3166,
3041... |
envec/multipart.py | jwodder/envec | 0 | 130164 | from enum import Enum
import itertools
import json
import warnings
from ._util import cheap_repr, for_json
class CardClass(Enum):
normal = 1
split = 2
flip = 3
double_faced = 4
BFM = 5
def for_json(self):
return self.name
class MultipartDB:
... | [
1,
515,
259,
14115,
268,
1053,
1174,
398,
13,
5215,
4256,
8504,
13,
5215,
4390,
13,
5215,
18116,
13,
3166,
259,
869,
29918,
4422,
259,
1053,
28773,
29918,
276,
558,
29892,
363,
29918,
3126,
13,
13,
1990,
9160,
2385,
29898,
16854,
1125... |
splot.py | delvallem/specDS | 0 | 184444 | '''
Spectra plottings
'''
import numpy as np
import matplotlib.pyplot as plt
def singles(wn, spec):
'''
Individual spectra plot.
Parameters
----------
wn : ndarray
Wavenumber of shape [n_points].
spec : ndarray
Spectra of shape [n_spectra, n_points].
Returns
------... | [
1,
14550,
13,
29903,
1103,
336,
715,
1501,
886,
13,
12008,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
13,
1753,
22102,
29898,
1233,
29892,
1580,
1125,
13,
1678,
14550,
13,
1678,
1894,
23352... |
simple_object_detection/utils/video/sequence.py | RubenEu/simple-object-detection | 0 | 82467 | <gh_stars>0
from typing import List, Tuple, Optional
import cv2
from simple_object_detection.exceptions import SimpleObjectDetectionException
from simple_object_detection.typing import Image, VideoProperties
class StreamSequence:
"""Clase para cargar los frames de una secuencia de vídeo.
Se utiliza la nota... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
19229,
1053,
2391,
29892,
12603,
552,
29892,
28379,
13,
13,
5215,
13850,
29906,
13,
13,
3166,
2560,
29918,
3318,
29918,
29881,
2650,
428,
29889,
11739,
29879,
1053,
12545,
2061,
299... |
scripts/elements_monitoring.py | LoSk-p/robonomics_vacuum | 0 | 176955 | #!/usr/bin/env python3
import rospy
import rospkg
import typing as tp
import yaml
from robonomics_vacuum.srv import Element
from std_msgs.msg import String
from miio import RoborockVacuum
import os
import datetime
from robonomics_vacuum.utils import read_config
class ElementsMonitoring:
def __init__(self) -> None... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
696,
1028,
29891,
13,
5215,
696,
1028,
9415,
13,
5215,
19229,
408,
260,
29886,
13,
5215,
343,
8807,
13,
3166,
10832,
4917,
1199,
29918,
29894,
22061,
398,
29889,
29879... |
mgmt/src/constants.py | pcaruana/sombrio | 0 | 1122 | #! /usr/bin/env python3
"""
constants.py - Contains all constants used by the device manager
Author:
- <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>)
Date: 12/3/2016
"""
number_of_rows = 3 # total number rows of Index Servers
number_of_links = 5 # number of links to be sent to Cra... | [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
15945,
29908,
13,
1678,
17727,
29889,
2272,
448,
2866,
2708,
599,
17727,
1304,
491,
278,
4742,
8455,
13,
1678,
13361,
29901,
13,
4706,
448,
529,
5813,
29958,
313,
2996... |
handle.py | zhuangdx/timer_deleter | 0 | 132418 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2018/10/31 16:32
# @Author : duoxuan·zhuang
# @File : handle.py
"""
从配置文件读取指定路径,删除超过时间的过期指定类型文件 (适用于linux)
逻辑:
1.读取配置文件---多个路径
2.遍历路径,读取类型,时间
3.获取过期文件数量-删除文件
4.获取空文件夹数量-删除空文件夹
"""
import datetime
import json
import logging
import logging.config
import os... | [
1,
29871,
30143,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
2481,
1678,
584,
29871,
29906,
29900,
29896,
29947,
29914,
29896,
... |
salesforce/campaign.py | DemocracyLab/DemocracyLab-CivicTechExchange | 0 | 67808 | from common.helpers.collections import omit_falsy
from common.models import Tag
from .client import SalesforceClient
import json
import requests
import threading
''' Project model maps to the Campaign object in Salesforce '''
client = SalesforceClient()
def run(request):
response = SalesforceClient().send(request... | [
1,
515,
3619,
29889,
3952,
6774,
29889,
29027,
1053,
288,
2415,
29918,
29888,
1338,
29891,
13,
3166,
3619,
29889,
9794,
1053,
10522,
13,
3166,
869,
4645,
1053,
28389,
10118,
4032,
13,
5215,
4390,
13,
5215,
7274,
13,
5215,
3244,
292,
13,... |
exercise/ch04/mini_batch.py | HFTshoon/deep-learning-from-scratch | 0 | 189872 | <reponame>HFTshoon/deep-learning-from-scratch
import sys,os
sys.path.append(os.pardir)
from dataset.mnist import load_mnist
import numpy as np
(x_train,t_train),(x_test,t_test)=load_mnist(normalize=True,one_hot_label=True)
print(x_train.shape)
print(t_train.shape)
train_size = x_train.shape[0]
batch_size=10
batch_m... | [
1,
529,
276,
1112,
420,
29958,
29950,
7818,
845,
6150,
29914,
24535,
29899,
21891,
29899,
3166,
29899,
10526,
905,
13,
5215,
10876,
29892,
359,
13,
9675,
29889,
2084,
29889,
4397,
29898,
359,
29889,
29886,
538,
381,
29897,
13,
3166,
8783,... |
avatar2/protocols/jlink.py | ispras/avatar2 | 415 | 115861 | import sys
import pylink
from time import sleep
from threading import Thread, Event, Condition
import logging
import re
if sys.version_info < (3, 0):
import Queue as queue
# __class__ = instance.__class__
else:
import queue
from avatar2.archs.arm import ARM
from avatar2.targets import TargetStates
from av... | [
1,
1053,
10876,
13,
5215,
11451,
2324,
13,
3166,
931,
1053,
8709,
13,
3166,
3244,
292,
1053,
10480,
29892,
6864,
29892,
11790,
654,
13,
5215,
12183,
13,
5215,
337,
13,
13,
361,
10876,
29889,
3259,
29918,
3888,
529,
313,
29941,
29892,
... |
pollapp/forms.py | pesusieni999/mtgwebsite | 0 | 175085 | <reponame>pesusieni999/mtgwebsite<filename>pollapp/forms.py
"""
Define forms for Polls application.
"""
from django import forms
from .models import Poll, PollAnswer
__author__ = "pesusieni999"
__copyright__ = "Copyright 2017, MtG website Project"
__credits__ = ["pesusieni999"]
__license__ = "MIT"
__version__ = "0.... | [
1,
529,
276,
1112,
420,
29958,
5547,
375,
819,
29875,
29929,
29929,
29929,
29914,
4378,
29887,
22942,
29966,
9507,
29958,
3733,
433,
407,
29914,
9514,
29889,
2272,
13,
15945,
29908,
13,
3206,
457,
7190,
363,
2043,
3137,
2280,
29889,
13,
... |
crisiscleanup/calls/migrations/0011_merge_20180122_2308.py | CrisisCleanup/wcicp-call-service | 0 | 13871 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-22 23:08
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('calls', '0010_auto_20180119_2117'),
('calls', '0007_auto_20180122_2157'),
]
operati... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
29896,
29889,
29953,
373,
29871,
29906,
29900,
29896,
29947,
29899,
29900,
29896,
29899,
29906,
299... |
kitsune/gallery/models.py | jgmize/kitsune | 0 | 25810 | <gh_stars>0
from datetime import datetime
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from kitsune.sumo.models import ModelBase, LocaleField
from kitsune.sumo.urlresolvers import reverse
from kitsune.sumo.utils import auto_delete_files
class Media(ModelB... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
12865,
1053,
12865,
13,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
1... |
tests/test020_get_webhooks.py | Sila-Money/sila-sdk-python | 4 | 189321 | <gh_stars>1-10
import unittest
from silasdk.users import User
from tests.test_config import (app, user_handle, eth_private_key)
class Test020GetWebhooksTest(unittest.TestCase):
def test_001_get_webhooks_200(self):
payload = {
"user_handle": user_handle
}
response = ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
443,
27958,
13,
3166,
4047,
294,
8181,
29889,
7193,
1053,
4911,
13,
3166,
6987,
29889,
1688,
29918,
2917,
1053,
313,
932,
29892,
1404,
29918,
8411,
29892,
11314... |
weaver/execute.py | crim-ca/weaver | 16 | 85689 | EXECUTE_MODE_AUTO = "auto"
EXECUTE_MODE_ASYNC = "async"
EXECUTE_MODE_SYNC = "sync"
EXECUTE_MODE_OPTIONS = frozenset([
EXECUTE_MODE_AUTO,
EXECUTE_MODE_ASYNC,
EXECUTE_MODE_SYNC,
])
EXECUTE_CONTROL_OPTION_ASYNC = "async-execute"
EXECUTE_CONTROL_OPTION_SYNC = "sync-execute"
EXECUTE_CONTROL_OPTIONS = frozense... | [
1,
8528,
11206,
26027,
29918,
20387,
29918,
20656,
29949,
353,
376,
6921,
29908,
13,
5746,
11206,
26027,
29918,
20387,
29918,
3289,
29979,
15868,
353,
376,
12674,
29908,
13,
5746,
11206,
26027,
29918,
20387,
29918,
14816,
15868,
353,
376,
1... |
venv/lib/python3.6/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/facts/static_routes/static_routes.py | usegalaxy-no/usegalaxy | 1 | 128880 | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The iosxr static_routes fact class
It is in this file the configuration is collected from the device
for a given resource, parsed, and the facts tree is populated
based o... | [
1,
396,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
4367,
25966,
13,
29937,
15143,
4593,
5236,
19245,
325,
29941,
29889,
29900,
29974,
13,
29... |
ex066.py | thiagobachiega/python | 0 | 115502 | <reponame>thiagobachiega/python
num = soma = cont = 0
while True:
num = int(input('Digite um número: '))
if num == 999:
break
soma = soma + num
cont = cont + 1
print(f'A soma dos {cont} números digitados é: {soma}')
| [
1,
529,
276,
1112,
420,
29958,
386,
29875,
351,
711,
496,
347,
3249,
29914,
4691,
13,
1949,
353,
1047,
29874,
353,
640,
353,
29871,
29900,
13,
13,
8000,
5852,
29901,
13,
1678,
954,
353,
938,
29898,
2080,
877,
14991,
568,
1922,
13831,
... |
streams/blog/migrations/0012_auto_20200928_1212.py | Engerrs/ckan.org | 1 | 9300 | <filename>streams/blog/migrations/0012_auto_20200928_1212.py
# Generated by Django 3.1.1 on 2020-09-28 12:12
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0011_blogpostpage_featured'),
]
operations = [
migratio... | [
1,
529,
9507,
29958,
5461,
29879,
29914,
7312,
29914,
26983,
800,
29914,
29900,
29900,
29896,
29906,
29918,
6921,
29918,
29906,
29900,
29906,
29900,
29900,
29929,
29906,
29947,
29918,
29896,
29906,
29896,
29906,
29889,
2272,
13,
29937,
3251,
... |
sitri/providers/contrib/ini.py | Elastoo-Team/sitri | 11 | 12172 | import configparser
import os
import typing
from sitri.providers.base import ConfigProvider
class IniConfigProvider(ConfigProvider):
"""Config provider for Initialization file (Ini)."""
provider_code = "ini"
def __init__(
self,
ini_path: str = "./config.ini",
):
"""
... | [
1,
1053,
2295,
16680,
13,
5215,
2897,
13,
5215,
19229,
13,
13,
3166,
7845,
374,
29889,
771,
29454,
29889,
3188,
1053,
12782,
6980,
13,
13,
13,
1990,
512,
29875,
3991,
6980,
29898,
3991,
6980,
1125,
13,
1678,
9995,
3991,
13113,
363,
17... |
LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0 | 15359 | # -*- coding: utf-8 -*-
import items
class TxtFileWriter:
"""
Write the repository representation in the file.
"""
def __init__(self, file_path):
self.file_path = file_path
def __enter__(self):
self.file = open(self.file_path, 'w', encoding='utf-8')
return self
def ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
4452,
13,
13,
13,
1990,
323,
486,
2283,
10507,
29901,
13,
1678,
9995,
13,
1678,
14350,
278,
9810,
8954,
297,
278,
934,
29889,
13,
1678,
999... |
获取新冠肺炎实时数据/paqufeiyang.py | 13060923171/xianmu | 29 | 1616487 | <filename>获取新冠肺炎实时数据/paqufeiyang.py<gh_stars>10-100
import requests
from lxml import etree
import json
import time
import threading
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.62 Safari/537.36"
}
News_set = set()
#单线程版,获取网易新闻里面新冠肺炎的实时数... | [
1,
529,
9507,
29958,
31024,
30683,
30374,
232,
137,
163,
235,
133,
189,
234,
133,
145,
31195,
30594,
30354,
30763,
29914,
3274,
339,
1725,
19881,
574,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
... |
salt/matchers/nodegroup_match.py | casselt/salt | 0 | 1603574 | # -*- coding: utf-8 -*-
'''
This is the default nodegroup matcher.
'''
from __future__ import absolute_import, print_function, unicode_literals
import salt.utils.minions # pylint: disable=3rd-party-module-not-gated
import salt.loader
def match(tgt, nodegroups):
'''
This is a compatibility matcher and is NO... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
12008,
13,
4013,
338,
278,
2322,
2943,
2972,
1993,
261,
29889,
13,
12008,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
1596,
29918,... |
tests/integration/test_github.py | Hojang2/ogr | 0 | 133628 | <gh_stars>0
import os
import unittest
import pytest
from github import GithubException
from ogr import GithubService
from ogr.abstract import PRStatus, IssueStatus
from ogr.persistent_storage import PersistentObjectStorage
from ogr.exceptions import GithubAPIException
DATA_DIR = "test_data"
PERSISTENT_DATA_PREFIX = ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
5215,
443,
27958,
13,
5215,
11451,
1688,
13,
13,
3166,
18546,
1053,
402,
2985,
2451,
13,
13,
3166,
288,
629,
1053,
402,
2985,
3170,
13,
3166,
288,
629,
29889,
16595,
... |
day05/05_hydrothermal_venture.py | KDawid/AdventOfCode2021 | 0 | 1608832 | import re
class LineSegment:
X1_GROUP = 'x1'
X2_GROUP = 'x2'
Y1_GROUP = 'y1'
Y2_GROUP = 'y2'
INPUT_PATTERN = rf'(?P<{X1_GROUP}>\d+),(?P<{Y1_GROUP}>\d+) -> (?P<{X2_GROUP}>\d+),(?P<{Y2_GROUP}>\d+)'
MATCHER = re.compile(INPUT_PATTERN)
def __init__(self, str):
m = self.MATCHER.match(... | [
1,
1053,
337,
13,
13,
13,
1990,
7407,
17669,
358,
29901,
13,
1678,
1060,
29896,
29918,
26284,
353,
525,
29916,
29896,
29915,
13,
1678,
1060,
29906,
29918,
26284,
353,
525,
29916,
29906,
29915,
13,
1678,
612,
29896,
29918,
26284,
353,
52... |
data_io/export_camera_poses.py | tumcms/aerial2pdsm | 0 | 20670 | <gh_stars>0
import plyfile
from config import SparseModel, project_path
from colmap_scripts.read_model import Image
import numpy as np
project = SparseModel("/home/felix/pointclouds/_working/2019_11_07_Muenchen_26_10_2018",
model_path="/home/felix/pointclouds/_working/2019_11_07_Muenchen_26_10_2... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
282,
368,
1445,
13,
13,
3166,
2295,
1053,
317,
5510,
3195,
29892,
2060,
29918,
2084,
13,
3166,
784,
1958,
29918,
16713,
29889,
949,
29918,
4299,
1053,
7084,
13,
5215,
12655,
408,
... |
easytoken/blob.py | sayanmondal2098/tokenizer | 3 | 40386 | import sys
import json
import nltk
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize, sent_tokenize
class Partsofspeech():
def pos(txt):
tokens = nltk.word_tokenize(txt)
return (nltk.pos_tag(tokens))
# stop_words = set(stopwords.words('english')) | [
1,
1053,
10876,
13,
5215,
4390,
13,
13,
5215,
302,
1896,
29895,
13,
13,
5215,
302,
1896,
29895,
29871,
13,
3166,
302,
1896,
29895,
29889,
2616,
13364,
1053,
5040,
9303,
29871,
13,
3166,
302,
1896,
29895,
29889,
6979,
675,
1053,
1734,
... |
predix/admin/eventhub.py | BLaurent/predixpy | 28 | 52388 | <gh_stars>10-100
import os
import predix.config
import predix.security.uaa
import predix.admin.service
import predix.data.eventhub
class EventHub(object):
"""
Event Hub is a publisher/subscriber framework for getting information in, out and around the predix cloud
"""
def __init__(self, plan_name=Non... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
2897,
13,
13,
5215,
4450,
861,
29889,
2917,
13,
5215,
4450,
861,
29889,
8926,
29889,
3357,
29874,
13,
5215,
4450,
861,
29889,
6406,
29889,
5509,
... |
tnp/__init__.py | hydiant/tnp | 295 | 1609886 | version = '0.1.1'
| [
1,
1873,
353,
525,
29900,
29889,
29896,
29889,
29896,
29915,
13,
2
] |
aos/external_systems.py | azdolinski/apstra-api-python | 1 | 96144 | <filename>aos/external_systems.py
# Copyright 2020-present, Apstra, Inc. All rights reserved.
#
# This source code is licensed under End User License Agreement found in the
# LICENSE file at http://www.apstra.com/eula
import logging
from dataclasses import dataclass
from .aos import AosSubsystem
from typing import Opti... | [
1,
529,
9507,
29958,
29874,
359,
29914,
23176,
29918,
5205,
29879,
29889,
2272,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29900,
29899,
6338,
29892,
6225,
4151,
29892,
9266,
29889,
2178,
10462,
21676,
29889,
13,
29937,
13,
29937,
... |
art/attacks/fast_gradient.py | yalechang/adversarial-robustness-toolbox | 1 | 156793 | <reponame>yalechang/adversarial-robustness-toolbox
# MIT License
#
# Copyright (C) IBM Corporation 2018
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without ... | [
1,
529,
276,
1112,
420,
29958,
29891,
744,
305,
574,
29914,
328,
874,
27521,
29899,
13716,
504,
2264,
29899,
10154,
1884,
13,
29937,
341,
1806,
19245,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
27955,
15025,
29871,
29906,
29900... |
scripts/m2.py | byu-iot-security/cheeziot_webserver | 2 | 67220 | import pymongo
import os
import datetime
from base64 import decodestring
from bson.objectid import ObjectId
from pymongo import MongoClient
config_file = open("config", 'r')
collection = ''
database = ''
#Parse the configuration (config) file
for line in config_file:
field,val = line.split("=")
if(field == "COLL... | [
1,
1053,
282,
962,
7443,
13,
5215,
2897,
13,
5215,
12865,
13,
3166,
2967,
29953,
29946,
1053,
1602,
397,
342,
5393,
13,
13,
3166,
289,
1100,
29889,
3318,
333,
1053,
4669,
1204,
13,
13,
3166,
282,
962,
7443,
1053,
18294,
4032,
13,
13... |
examples/python/EventBuilder.py | jstrube/lcio | 0 | 132809 | <filename>examples/python/EventBuilder.py
'''
Created on May 17, 2013
Example for creating LCIO events and filling them with MCParticles and SimTrackerHits.
@author: <a href="mailto:<EMAIL>"><NAME></a>
'''
from pyLCIO import EVENT, IMPL, IOIMPL, UTIL
from ROOT import TVector3, TLorentzVector, TRandom3, TMath
from ti... | [
1,
529,
9507,
29958,
19057,
29914,
4691,
29914,
2624,
5627,
29889,
2272,
13,
12008,
13,
20399,
373,
2610,
29871,
29896,
29955,
29892,
29871,
29906,
29900,
29896,
29941,
13,
13,
14023,
363,
4969,
365,
29907,
5971,
4959,
322,
27523,
963,
41... |
759/Employee Free Time.py | cccccccccccccc/Myleetcode | 0 | 20318 | <filename>759/Employee Free Time.py<gh_stars>0
from typing import List
import heapq
# Definition for an Interval.
class Interval:
def __init__(self, start: int = None, end: int = None):
self.start = start
self.end = end
class Solution:
def employeeFreeTime(self, schedule: '[[Interval]]') -> '[... | [
1,
529,
9507,
29958,
29955,
29945,
29929,
29914,
19461,
12362,
5974,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
19229,
1053,
2391,
13,
5215,
16947,
29939,
13,
29937,
21940,
363,
385,
4124,
791,
29889,
13,
1990,
4... |
tests/data/Kind/Operations.py | aalireza/arep | 1 | 162098 | x = 1 + 2 * 3 - 3 ** 5 / 2
y = 3 ** 5 - 2
z = x / y
zz = x // y
z -= z
zz += zz
xx = -x
xx %= 10
if type(x) is int:
print(x and y)
| [
1,
921,
353,
29871,
29896,
718,
29871,
29906,
334,
29871,
29941,
448,
29871,
29941,
3579,
29871,
29945,
847,
29871,
29906,
13,
13,
29891,
353,
29871,
29941,
3579,
29871,
29945,
448,
29871,
29906,
13,
13,
29920,
353,
921,
847,
343,
13,
5... |
voxel_globe/websockets/views.py | ngageoint/voxel-globe | 28 | 150204 | from django.shortcuts import render
### Rest API setup
import rest_framework.routers
import rest_framework.viewsets
import rest_framework.filters
from voxel_globe.websockets.serializers import LogMessageSerializer
from voxel_globe.websockets.models import LogMessage
router = rest_framework.routers.DefaultRouter()
cl... | [
1,
515,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
13,
2277,
29937,
11654,
3450,
6230,
13,
5215,
1791,
29918,
4468,
29889,
27537,
2153,
13,
5215,
1791,
29918,
4468,
29889,
1493,
7224,
13,
5215,
1791,
29918,
4468,
29889,
26705,
13,
... |
twistedlilypad/packets/message_event_packet.py | flaminscotsman/TwistedLilypad | 1 | 60939 | <reponame>flaminscotsman/TwistedLilypad
from codecs import lookup
from struct import unpack_from, pack
from .abstract_packet import AbstractPacket, AbstractPacketCodec
from twistedlilypad.utilities import varint_prefixed_string_encoder, varint_prefixed_string_parser
utf8_decoder = lookup('UTF_8').decode
utf8_encoder... | [
1,
529,
276,
1112,
420,
29958,
1579,
314,
1144,
29883,
1862,
1171,
29914,
27418,
12652,
29931,
309,
1478,
328,
13,
3166,
775,
2395,
1053,
16280,
13,
3166,
2281,
1053,
443,
4058,
29918,
3166,
29892,
4870,
13,
13,
3166,
869,
16595,
29918,... |
spiral.py | Shubhra1906/pyturtle | 0 | 133165 | <gh_stars>0
import turtle
import colorsys
t=turtle.Turtle()
s=turtle.Screen()
s.bgcolor('black')
t.speed(0)
n=36
h=0
for i in range(360):
c=colorsys.hsv_to_rgb(h, 1, 0.8)
h+=1/n
t.color(c)
t.circle(180)
t.left(10) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
260,
4227,
280,
13,
5215,
11955,
952,
13,
13,
29873,
29922,
29873,
4227,
280,
29889,
29911,
4227,
280,
580,
13,
29879,
29922,
29873,
4227,
280,
29889,
11357,
580,
13,
29879,
29889... |
jj/middlewares/_base_middleware.py | TeoDV/jj | 0 | 92336 | from typing import Type, Union
from ..apps import AbstractApp
from ..handlers import HandlerFunction
from ._abstract_middleware import AbstractMiddleware
from ._middleware_type import MiddlewareType
__all__ = ("BaseMiddleware", "AppOrHandler",)
AppOrHandler = Union[Type[AbstractApp], HandlerFunction]
class BaseMi... | [
1,
515,
19229,
1053,
5167,
29892,
7761,
13,
13,
3166,
6317,
13371,
1053,
25513,
2052,
13,
3166,
6317,
3179,
9306,
1053,
5166,
1358,
6678,
13,
3166,
869,
29918,
16595,
29918,
17662,
2519,
1053,
25513,
25411,
2519,
13,
3166,
869,
29918,
1... |
rrs/tools/rrs_maintainer_history.py | WindRiver-OpenSourceLabs/layerindex-web | 0 | 13540 | #!/usr/bin/env python3
# Standalone script which rebuilds the history of maintainership
#
# Copyright (C) 2015 Intel Corporation
# Author: <NAME> <<EMAIL>>
#
# Licensed under the MIT license, see COPYING.MIT for details
import sys
import os.path
import optparse
import logging
sys.path.insert(0, os.path.realpath(os.p... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
6679,
18785,
2471,
607,
337,
4282,
29879,
278,
4955,
310,
7344,
10475,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29945,
18555,
1... |
data/logs_model/logs_producer/kafka_logs_producer.py | anwarchk/quay | 1 | 195823 | import logging
from kafka.errors import KafkaError, KafkaTimeoutError
from kafka import KafkaProducer
from data.logs_model.shared import epoch_ms
from data.logs_model.logs_producer.interface import LogProducerInterface
from data.logs_model.logs_producer.util import logs_json_serializer
from data.logs_model.logs_produ... | [
1,
1053,
12183,
13,
13,
3166,
413,
20817,
29889,
12523,
1053,
476,
20817,
2392,
29892,
476,
20817,
10851,
2392,
13,
3166,
413,
20817,
1053,
476,
20817,
23665,
2265,
13,
13,
3166,
848,
29889,
20756,
29918,
4299,
29889,
12366,
1053,
21502,
... |
Character.py | AvenirX/Meicraft | 0 | 170075 | # toImpr remove import?
from Skill import the_skill
class Hero:
def __init__(self, name, type_):
self.name = name
self.type_ = type_
self.level = 1
self.EXP = 0
self.__HP = 5
# self.__STR = 2
# self.__AGI = 1
# self.__INT = 1
... | [
1,
396,
304,
1888,
558,
3349,
1053,
29973,
30004,
13,
3166,
4971,
453,
1053,
278,
29918,
808,
453,
30004,
13,
30004,
13,
30004,
13,
1990,
22167,
29901,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1024,
29892,
1134,
29918,
1125... |
apps/views.py | Edwardhgj/meiduo | 0 | 7292 | <reponame>Edwardhgj/meiduo
from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth.hashers import check_password, make_password
from django.views import View
from utils.response_code import RET, error_map
from rest_framework.views import APIView
from rest_framework.response im... | [
1,
529,
276,
1112,
420,
29958,
3853,
1328,
29882,
29887,
29926,
29914,
1004,
333,
25608,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
3166,
9557,
29889,
1124,
1053,
9056,
5103,
13,
13,
3166,
9557,
29889,
21570,
29889,
5150,
... |
n_step_sarsa.py | SuperSaiyan-God/Reinforcement-Learning | 0 | 47375 | import numpy as np
import gym
poleThetaSpace = np.linspace(-0.209, 0.209, 10)
poleThetaVelSpace = np.linspace(-4, 4, 10)
cartPosSpace = np.linspace(-2.4, 2.4, 10)
cartVelSpace = np.linspace(-4, 4, 10)
def get_state(observation):
cartX, cartXdot, cartTheta, cartThetaDot = observation
cartX = int(np.digitize(ca... | [
1,
1053,
12655,
408,
7442,
13,
5215,
330,
962,
13,
13,
15831,
17458,
14936,
353,
7442,
29889,
1915,
3493,
6278,
29900,
29889,
29906,
29900,
29929,
29892,
29871,
29900,
29889,
29906,
29900,
29929,
29892,
29871,
29896,
29900,
29897,
13,
15831... |
smedl/parser/smedl_semantics.py | PRECISE/SMEDL | 0 | 68114 | # Copyright (c) 2021 The Trustees of the University of Pennsylvania
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, co... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
450,
20692,
12712,
310,
278,
3014,
310,
16636,
13,
29937,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,... |
client/__init__.py | georgemunyoro/code-jam | 1 | 174772 | """A TUI client to the snake game."""
# This file exists to denote to Python that the folder is a package.
| [
1,
9995,
29909,
323,
3120,
3132,
304,
278,
269,
21040,
3748,
1213,
15945,
13,
13,
29937,
910,
934,
4864,
304,
13530,
304,
5132,
393,
278,
4138,
338,
263,
3577,
29889,
13,
2
] |
PrelimDataAnalysis.py | Cian-Byrne/ML_Yacht_Performance | 0 | 102251 | import seaborn as sns
import pickle
import os
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
%matplotlib qt
sns.set()
# --------------------------------------------------------------------------------------------------
# Import both datasets separately
dfTP = pd.DataFrame()
dfTP = dfTP.append(... | [
1,
1053,
409,
370,
1398,
408,
269,
1983,
13,
5215,
5839,
280,
13,
5215,
2897,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
29995,
2922,
17357,
3855,
29873,
13,
29879,
198... |
covid/migrations/0023_spammer.py | vivekkhimani/LifeNest | 2 | 1604526 | <reponame>vivekkhimani/LifeNest
# Generated by Django 3.2.3 on 2021-05-26 05:24
from django.db import migrations, models
import django.db.models.deletion
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
('covid', '0022_delete_spammer'),
]
operations =... | [
1,
529,
276,
1112,
420,
29958,
29894,
573,
6859,
26994,
3270,
29914,
26754,
29940,
342,
13,
29937,
3251,
630,
491,
15337,
29871,
29941,
29889,
29906,
29889,
29941,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29945,
29899,
29906,
2... |
src/compas_rv2/datastructures/meshmixin.py | tkmmark/compas-RV2 | 0 | 177908 | <filename>src/compas_rv2/datastructures/meshmixin.py
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
# from compas.utilities import pairwise
from compas.geometry import angle_vectors
__all__ = ['MeshMixin']
class MeshMixin(object):
"""Mixin for all m... | [
1,
529,
9507,
29958,
4351,
29914,
2388,
294,
29918,
15291,
29906,
29914,
4130,
7614,
5313,
1973,
29914,
4467,
7184,
861,
262,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
3166,
4770,
29888,
9130,
1649,
1053... |
configs/mmdet/detection/detection_tensorrt_static-300x300.py | zhiqwang/mmdeploy | 746 | 774 | <reponame>zhiqwang/mmdeploy
_base_ = ['../_base_/base_tensorrt_static-300x300.py']
| [
1,
529,
276,
1112,
420,
29958,
29920,
2918,
29939,
29893,
574,
29914,
4317,
16519,
13,
29918,
3188,
29918,
353,
6024,
6995,
29918,
3188,
29918,
29914,
3188,
29918,
20158,
2273,
29918,
7959,
29899,
29941,
29900,
29900,
29916,
29941,
29900,
2... |
testfile.py | jordanwimb/kbpython | 0 | 86819 | <filename>testfile.py
print("Hellllo")
| [
1,
529,
9507,
29958,
1688,
1445,
29889,
2272,
13,
2158,
703,
29950,
514,
29880,
417,
1159,
13,
2
] |
tests/encoding/test_lib.py | Defense-Cyber-Crime-Center/dfvfs | 2 | 54845 | # -*- coding: utf-8 -*-
"""Shared test cases."""
import unittest
class DecoderTestCase(unittest.TestCase):
"""The unit test case for decoder object implementions."""
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
21741,
1243,
4251,
1213,
15945,
13,
13,
5215,
443,
27958,
13,
13,
13,
1990,
3826,
6119,
3057,
8259,
29898,
348,
27958,
29889,
3057,
8259,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.