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 |
|---|---|---|---|---|---|
src/classes.py | gartunius/PygameSnakeOOP | 0 | 125029 | #!/pygame_snake_oop/bin python
import pygame
from random import randint
from time import sleep
class Snake():
def __init__(self, screen_width, screen_height):
self.snake_ate = 0
self.snake_life = 'alive'
self.snake_direction = 'rigth'
self.snake_body = [[10, 30], [10, 20], [10, 10]]
self.snake_color = (... | [
1,
18787,
2272,
11802,
29918,
29879,
21040,
29918,
26793,
29914,
2109,
3017,
13,
13,
5215,
22028,
13,
13,
3166,
4036,
1053,
20088,
524,
13,
3166,
931,
1053,
8709,
13,
13,
13,
1990,
317,
21040,
7295,
13,
13,
12,
1753,
4770,
2344,
12035... |
mathipy/functions/linearithmic.py | BatiDyDx/maths-tools-python | 1 | 17272 | <reponame>BatiDyDx/maths-tools-python<filename>mathipy/functions/linearithmic.py<gh_stars>1-10
import math
import numpy as np
from mathipy.math import calculus
class Linearithmic(calculus.Function):
"""
f(x) = (mx + h)log_b(kx + a)
"""
function_type = 'Linearithmic'
def __init__(self, m = 1, h = 0... | [
1,
529,
276,
1112,
420,
29958,
29933,
2219,
29928,
29891,
29928,
29916,
29914,
755,
29879,
29899,
8504,
29899,
4691,
29966,
9507,
29958,
755,
666,
29891,
29914,
12171,
29914,
10660,
389,
13076,
29889,
2272,
29966,
12443,
29918,
303,
1503,
2... |
stylegan/sampling/legacy/visualize_neighbors.py | VITA-Group/BlackBoxGANCollapse | 3 | 1602897 | import pickle
import itertools
import os
import math
from sklearn.preprocessing import normalize
import re
from operator import add
import matplotlib.pyplot as plt
import numpy as np
import argparse
import pylab as pl
from utils import compute_embds_matrix
if __name__ == "__main__":
parser = argparse.ArgumentPa... | [
1,
1053,
5839,
280,
13,
5215,
4256,
8504,
13,
5215,
2897,
13,
5215,
5844,
13,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
4226,
675,
13,
5215,
337,
13,
3166,
5455,
1053,
788,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
... |
fast_rcnn/test.py | GraphaQL-Neo4J/orientation-aware-firearm-detection | 38 | 97536 | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by <NAME>
# --------------------------------------------------------
# Modified by CVML group @ITU- Punjab
"""Test a Fast R-CNN network on an imdb... | [
1,
396,
448,
2683,
2683,
2683,
26589,
13,
29937,
23786,
390,
29899,
29907,
10262,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29945,
7783,
13,
29937,
10413,
21144,
1090,
450,
341,
1806,
19245,
518,
4149,
365,
29... |
tests/test_utils.py | mk-fg/aetcd | 2 | 117401 | import aetcd.utils
def test_prefix_range_end():
assert aetcd.utils.prefix_range_end(b'foo') == b'fop'
assert aetcd.utils.prefix_range_end(b'ab\xff') == b'ac\xff'
assert aetcd.utils.prefix_range_end(
b'a\xff\xff\xff\xff\xff') == b'b\xff\xff\xff\xff\xff'
def test_to_bytes():
assert isinstance(... | [
1,
1053,
263,
300,
2252,
29889,
13239,
13,
13,
13,
1753,
1243,
29918,
13506,
29918,
3881,
29918,
355,
7295,
13,
1678,
4974,
263,
300,
2252,
29889,
13239,
29889,
13506,
29918,
3881,
29918,
355,
29898,
29890,
29915,
5431,
1495,
1275,
289,
... |
robot_overlord/program.py | PurpleMyst/robot_overlord | 0 | 61481 | #!/usr/bin/env python3
import os
import shlex
import subprocess
class Program:
def __init__(self, name, requires, location, setup, start):
self.name = name
self.requires = requires
self.location = location
self.setup_commands = setup
self.start = start
self._fetche... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
5215,
2897,
13,
5215,
528,
2506,
13,
5215,
1014,
5014,
13,
13,
13,
1990,
7835,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1024,
29892,
6858,
29892,
4423,
29892,
6230,... |
dags/mailsdag.py | rvacaru/airflow-training-skeleton | 0 | 6848 | <filename>dags/mailsdag.py
# -*- coding: utf-8 -*-
#
# 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 ... | [
1,
529,
9507,
29958,
29881,
810,
29914,
2549,
4928,
351,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
13,
29937,
10413,
21144,
304,
278,
13380,
18540,
10606,
313,
3289,
29943,
... |
python/pohuAPI.py | aiwarrior-23/revised_serps | 0 | 75096 | <gh_stars>0
import json
from pymongo import MongoClient
from flask import jsonify, request, Flask
from flask_cors import CORS
import flask
from utils.utils import *
from bson import ObjectId
import copy
import requests
import datetime
app = Flask(__name__)
CORS(app)
@app.route("/login",methods=['POST'])
def loginUse... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
13,
5215,
4390,
13,
3166,
282,
962,
7443,
1053,
18294,
4032,
13,
3166,
29784,
1053,
4390,
1598,
29892,
2009,
29892,
2379,
1278,
13,
3166,
29784,
29918,
29883,
943,
1053,
315,
24125,
13,... |
tiles/test_deactivate.py | MiroK/tieler | 1 | 1608682 | <filename>tiles/test_deactivate.py
from dolfin import *
import sys
mesh_file = 'tile_1_hein_GMSH307_4_4_noBdry.h5'
parameters['ghost_mode'] = 'shared_facet'
comm = MPI.comm_world # FIXME!
h5 = HDF5File(comm, mesh_file, 'r')
mesh = Mesh()
h5.read(mesh, 'mesh', False)
surfaces = MeshFunction('size_t', mesh, mesh.to... | [
1,
529,
9507,
29958,
1376,
267,
29914,
1688,
29918,
311,
11236,
403,
29889,
2272,
13,
3166,
270,
4369,
262,
1053,
334,
13,
5215,
10876,
13,
13,
13,
4467,
29882,
29918,
1445,
353,
525,
29873,
488,
29918,
29896,
29918,
12880,
29918,
29954... |
tests/test_supervised/test_algorithms/test_optimization_algorithms/test_services/test_optimizers.py | j2slab/MLStudio | 1 | 179124 | # -*- coding:utf-8 -*-
# =========================================================================== #
# Project : MLStudio #
# File : \test_optimizers copy.py #
# Python : 3.8.3 ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
29922,
396,
13,
29937,
8010,
584,
23158,
28867,
462,
462,
462,
3986,
396,
13,
29937,
3497,
1678,
584,
320,
16... |
scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py | kzbnb/numerical_bugs | 8 | 1749 | import typing
import numpy as np
import scripts.study_case.ID_5.matchzoo as mz
from scripts.study_case.ID_5.matchzoo.engine.base_metric import BaseMetric
from .tuner import Tuner
def tune(
params: 'mz.ParamTable',
optimizer: str = 'adam',
trainloader: mz.dataloader.DataLoader = None,
validloader: mz... | [
1,
1053,
19229,
13,
13,
5215,
12655,
408,
7442,
13,
13,
5215,
12078,
29889,
18082,
29891,
29918,
4878,
29889,
1367,
29918,
29945,
29889,
4352,
2502,
29877,
408,
286,
29920,
13,
3166,
12078,
29889,
18082,
29891,
29918,
4878,
29889,
1367,
2... |
src/bls/python-impl/hkdf.py | chasingkirkjufell/navcoin-core | 103 | 81143 | <reponame>chasingkirkjufell/navcoin-core
from math import ceil
import hmac
import hashlib
BLOCK_SIZE = 32
def extract(salt: bytes, ikm: bytes) -> bytes:
h = hmac.new(salt, ikm, hashlib.sha256)
return h.digest()
def expand(L: int, prk: bytes, info: bytes) -> bytes:
N: int = ceil(L / BLOCK_SIZE)
byte... | [
1,
529,
276,
1112,
420,
29958,
305,
5832,
29895,
6793,
29926,
1137,
514,
29914,
6654,
1111,
262,
29899,
3221,
13,
3166,
5844,
1053,
2257,
309,
13,
5215,
298,
8628,
13,
5215,
6608,
1982,
13,
13,
29933,
21339,
29918,
14226,
353,
29871,
... |
OED/MP.py | adrianomundo/II2202-research-methodology-scientific-writing | 1 | 195598 | import os
import sys
import numpy as np
import time
import matplotlib.pyplot as plt
import pandas as pd
from utils import *
def sliding_dot_product(q, t):
n = t.size
m = q.size
# Append t with n zeros
ta = np.append(t, np.zeros(n))
# Reverse Q
qr = np.flip(q, 0)
# Append qra
qra = ... | [
1,
1053,
2897,
13,
5215,
10876,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
931,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
11701,
408,
10518,
13,
3166,
3667,
29879,
1053,
334,
13,
13,
13,
1753,
2243,
4821,
29918,
6333,
... |
posts/views.py | ionesu/hw05_final | 0 | 64058 | from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from django.shortcuts import get_object_or_404, redirect, render
from django.views.decorators.cache import cache_page
from .forms import CommentForm, PostForm
from .models import Follow, Group, Post, User
@cache_page... | [
1,
515,
9557,
29889,
21570,
29889,
5150,
29889,
19557,
4097,
1053,
6464,
29918,
12403,
13,
3166,
9557,
29889,
3221,
29889,
13573,
262,
1061,
1053,
349,
26584,
1061,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
679,
29918,
3318,
29918,
... |
cryptomon/ascii.py | S0L1DUS/cryptocoinmon | 0 | 9197 | # -*- coding: utf-8 -*-
import sys
from cryptomon.common import Colors
if sys.version_info >= (3, 0):
import io
else:
import StringIO as io
ascii_title = """
/$$$$$$ /$$ /$$ /$$
/$$__ $$ | $$ ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
10876,
13,
3166,
24941,
18192,
29889,
9435,
1053,
29183,
13,
361,
10876,
29889,
3259,
29918,
3888,
6736,
313,
29941,
29892,
29871,
29900,
1125,
... |
src/crawl/unicrawl/spiders/he-ferrer_courses.py | DeLeb86/unicrawl | 5 | 100696 | <reponame>DeLeb86/unicrawl
# -*- coding: utf-8 -*-
from abc import ABC
from pathlib import Path
import pandas as pd
import scrapy
from settings import YEAR, CRAWLING_OUTPUT_FOLDER
from src.crawl.utils import cleanup
BASE_URL = "https://fiches-ue.icampusferrer.eu/etatV2.php?id={}&annee={}"
PROG_DATA_PATH = Path(__f... | [
1,
529,
276,
1112,
420,
29958,
2772,
29931,
774,
29947,
29953,
29914,
2523,
1610,
29880,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
25638,
1053,
16417,
13,
3166,
2224,
1982,
1053,
10802,
... |
apps/monitor/views/newsblur_users.py | Paul3MK/NewsBlur | 3,073 | 115326 | <reponame>Paul3MK/NewsBlur
import datetime
from django.contrib.auth.models import User
from django.shortcuts import render
from django.views import View
from apps.profile.models import Profile, RNewUserQueue
class Users(View):
def get(self, request):
last_month = datetime.datetime.utcnow() - datetime.ti... | [
1,
529,
276,
1112,
420,
29958,
18275,
29941,
29924,
29968,
29914,
29328,
10358,
332,
13,
5215,
12865,
13,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
3166,... |
doc2cube-master/caseolap/utils.py | sustcjudgement/Judgement_information_extraction | 1 | 199045 | from pandas import DataFrame as DF
import codecs
from pandas import to_datetime
class Hierarchy:
def __init__(self):
self.nid = {} # node name -> id
self.ind = {} # node id -> name
self.idd = {} # parent -> [node id]
self.ipd = {} # node id -> [parent id]
def load_data(data_file):
df = DF.from_csv(dat... | [
1,
515,
11701,
1053,
3630,
4308,
408,
360,
29943,
13,
5215,
775,
2395,
13,
3166,
11701,
1053,
304,
29918,
12673,
13,
13,
1990,
12433,
12040,
29901,
13,
13,
12,
1753,
4770,
2344,
12035,
1311,
1125,
13,
12,
12,
1311,
29889,
29876,
333,
... |
BMI Calculator/main.py | mrif449/Python-GUI-Projects | 0 | 135402 | from operator import le
import tkinter as tr
from tkinter import messagebox
default_font = "Arial Rounded MT"
font_size = 12
button_color = "white"
root = tr.Tk()
root.title("BMI Calculator")
def Calculate():
try:
weight = float(entry_weight.get())
height = float(entry_height.get())... | [
1,
515,
5455,
1053,
454,
30004,
13,
5215,
18883,
1639,
408,
534,
30004,
13,
3166,
18883,
1639,
1053,
2643,
1884,
30004,
13,
30004,
13,
4381,
29918,
5657,
353,
376,
29909,
9315,
390,
7261,
341,
29911,
19451,
13,
5657,
29918,
2311,
353,
... |
src/morphocut/contrib/ecotaxa.py | ammark100/morphocut | 0 | 54141 | <filename>src/morphocut/contrib/ecotaxa.py
"""
Read and write EcoTaxa archives.
"`EcoTaxa`_ is a web application dedicated to the visual exploration
and the taxonomic annotation of images that illustrate the
beauty of planktonic biodiversity."
.. _EcoTaxa: https://ecotaxa.obs-vlfr.fr/
"""
import fnmatch
i... | [
1,
529,
9507,
29958,
4351,
29914,
29885,
5676,
542,
329,
29914,
21570,
29914,
687,
327,
1165,
29874,
29889,
2272,
13,
15945,
29908,
13,
6359,
322,
2436,
382,
1111,
29911,
1165,
29874,
3190,
3145,
29889,
13,
13,
1678,
29724,
29923,
1111,
... |
src/main/python/apache/aurora/executor/common/resource_manager.py | jeremyvdw/aurora | 479 | 80885 | <gh_stars>100-1000
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
1... |
auto_ria_client/search.py | DSAdv/auto-ria-python | 2 | 152593 | <filename>auto_ria_client/search.py
class Search:
def __init__(self):
pass
def execute(self):
pass
def __repr__(self):
pass
def __str__(self):
pass
class QueryBuilder:
pass
class Query:
pass
| [
1,
529,
9507,
29958,
6921,
29918,
2849,
29918,
4645,
29914,
4478,
29889,
2272,
13,
13,
1990,
11856,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
6222,
29898,
1311,
1125,
13,
4706,
1209,
13,
1... |
Assignment 1 n 2 Day 8.py | paju3125/LetsUpgrade-Python-B7 | 0 | 1197 | <gh_stars>0
# Assignment 1 Day 8
# write a decorator function for taking input for you
# any kind of function you want to build
def getInput(calculate_arg_fuc):
def wrap_function():
print("Enter two numbers ")
a=int(input("Enter first number = "))
b=int(input("Enter second numbe... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
4007,
10194,
29871,
29896,
8373,
29871,
29947,
30004,
13,
30004,
13,
29937,
2436,
263,
10200,
1061,
740,
363,
5622,
1881,
363,
366,
6756,
13,
29937,
738,
2924,
310,
740,
366,
864... |
blaze/data/tests/test_open.py | chdoig/blaze | 1 | 1604018 |
import sys
from functools import partial
from blaze.data import CSV, JSON
from blaze.utils import tmpfile, raises
from blaze.data.utils import tuplify
from blaze.compatibility import xfail
import gzip
is_py2_win = sys.platform == 'win32' and sys.version_info[:2] < (3, 0)
@xfail(is_py2_win, reason='Win32 py2.7 unic... | [
1,
29871,
13,
5215,
10876,
13,
3166,
2090,
312,
8789,
1053,
7687,
13,
3166,
12995,
911,
29889,
1272,
1053,
16874,
29892,
4663,
13,
13,
3166,
12995,
911,
29889,
13239,
1053,
13128,
1445,
29892,
1153,
4637,
13,
3166,
12995,
911,
29889,
12... |
obs-src/build/lib/obs/bulktasks.py | OOXXXXOO/DARTH | 11 | 159651 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Copyright 2019 Huawei Technologies Co.,Ltd.
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unle... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
379,
3357,
26599,
8364,
11763,
3189,
1696,
29931,
... |
assignment/sets/max_min_set.py | arc-arnob/256131 | 0 | 70758 | <filename>assignment/sets/max_min_set.py
s = set(map(int, input().split()))
print(s)
print("max is: ",max(s))
print("min is: ",min(s))
| [
1,
529,
9507,
29958,
465,
10194,
29914,
7224,
29914,
3317,
29918,
1195,
29918,
842,
29889,
2272,
13,
29879,
353,
731,
29898,
1958,
29898,
524,
29892,
1881,
2141,
5451,
22130,
13,
2158,
29898,
29879,
29897,
13,
13,
2158,
703,
3317,
338,
... |
RLBotPack/BotimusPrime/source/maneuvers/air/fast_recovery.py | DaCoolOne/RLBotPack | 0 | 28263 | <gh_stars>0
from maneuvers.kit import *
from maneuvers.driving.arrive import Arrive
class FastRecovery(Maneuver):
def __init__(self, car: Car):
super().__init__(car)
self.turn = AerialTurn(car, look_at(vec3(0, 0, -1)))
self.landing = False
def step(self, dt):
self... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
767,
12932,
874,
29889,
7354,
1053,
334,
30004,
13,
30004,
13,
3166,
767,
12932,
874,
29889,
29881,
1150,
292,
29889,
279,
4401,
1053,
826,
4401,
30004,
13,
30004,
13,
1990,
23786... |
jtv2xmltv/main.py | tataranovich/jtv2xmltv | 11 | 114563 | <reponame>tataranovich/jtv2xmltv
from __future__ import print_function
import argparse
import sys
from jtv2xmltv.convert import convert_jtv_to_xmltv
def main():
if int(sys.version[0]) == 2:
# Undefined variable 'reload'
# pylint: disable=E0602
reload(sys)
# Module 'sys' has no 'set... | [
1,
529,
276,
1112,
420,
29958,
8101,
23029,
586,
436,
29914,
29926,
12427,
29906,
3134,
12427,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
1852,
5510,
13,
5215,
10876,
13,
3166,
432,
12427,
29906,
3134,
12427,
... |
crits/notifications/handlers.py | frbapolkosnik/crits | 22 | 70022 | import datetime
import threading
from django.utils.html import escape as html_escape
from mongoengine import EmbeddedDocument
try:
from mongoengine.base import ValidationError
except ImportError:
from mongoengine.errors import ValidationError
from mongoengine.base.datastructures import BaseList
from mongoengi... | [
1,
1053,
12865,
13,
5215,
3244,
292,
13,
13,
3166,
9557,
29889,
13239,
29889,
1420,
1053,
10169,
408,
3472,
29918,
21587,
13,
13,
3166,
19476,
10599,
1053,
2812,
2580,
7176,
6268,
13,
2202,
29901,
13,
1678,
515,
19476,
10599,
29889,
318... |
pydicer/input/web.py | ShuchaoPangUNSW/pydicer | 1 | 160723 | <filename>pydicer/input/web.py
import zipfile
import urllib.request
import tempfile
from pathlib import Path
from pydicer.input.base import InputBase
def download_and_extract_zip_file(zip_url, output_directory):
"""Downloads a zip file from the URL specified and extracts the contents to the output
directory... | [
1,
529,
9507,
29958,
2272,
27774,
261,
29914,
2080,
29914,
2676,
29889,
2272,
13,
5215,
14319,
1445,
13,
5215,
3142,
1982,
29889,
3827,
13,
5215,
5694,
1445,
13,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
3166,
282,
2941,
293,
261,
29... |
code/preprocess/data_process.py | hms-dbmi/VarPPUD | 0 | 34223 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 9 15:38:54 2020
@author: rayin
"""
# pic-sure api lib
import PicSureHpdsLib
import PicSureClient
# python_lib for pic-sure
# https://github.com/hms-dbmi/Access-to-Data-using-PIC-SURE-API/tree/master/NIH_Undiagnosed_Diseases_Network
from python_li... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
15050,
3826,
259,
29929,
29871,
29896,
29945,
29901,
29941,
29947,
... |
shop_mollie/modifiers.py | bartpijn/djangoshop-mollie | 0 | 1615795 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import date
from django.utils.translation import ugettext_lazy as _
from shop.payment.modifiers import PaymentModifier
from .payment import MolliePayment
class MolliePaymentModifier(PaymentModifier):
payment_provider = MolliePayment()
... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
12865,
1053,
2635,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
... |
qutebrowser/fkd/tiparoj-vulpo.py | ebzzry/dotfiles | 30 | 167276 | <filename>qutebrowser/fkd/tiparoj-vulpo.py
#---------------------------------------------------------------------------------------------------
# Tiparoj
#---------------------------------------------------------------------------------------------------
c.fonts.completion.category = "bold 8pt monospace"
c.fonts.compl... | [
1,
529,
9507,
29958,
29939,
329,
774,
8777,
29914,
29888,
29895,
29881,
29914,
12632,
279,
3848,
29899,
29894,
352,
1129,
29889,
2272,
13,
29937,
2683,
2683,
2683,
2683,
2683,
2683,
5634,
13,
29937,
323,
666,
279,
3848,
13,
29937,
2683,
... |
jake/test/test_audit.py | lvcarlosja/jake | 0 | 23803 | #
# Copyright 2019-Present Sonatype 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 ... | [
1,
396,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
29899,
13504,
296,
5791,
23179,
9266,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
29... |
cogs/moderation.py | chenghaoli36/covid-help-bot-bridgehacks | 0 | 102822 | # moderation.py
# houses all the moderation code. very useful other than the fact that 80% of bots have these commands.
import discord
from discord.ext import commands
class Moderation(commands.Cog):
def __init__(self,client):
self.client = client
@commands.command()
@commands.has_permissions(man... | [
1,
396,
17768,
362,
29889,
2272,
13,
13,
29937,
12955,
599,
278,
17768,
362,
775,
29889,
1407,
5407,
916,
1135,
278,
2114,
393,
29871,
29947,
29900,
29995,
310,
289,
1862,
505,
1438,
8260,
29889,
13,
13,
5215,
2313,
536,
13,
3166,
231... |
tests/L0/run_optimizers/test_lamb.py | Muflhi01/apex | 6,523 | 152101 | import unittest
import os
import torch
from torch.optim import Optimizer
import apex
from apex.multi_tensor_apply import multi_tensor_applier
from itertools import product
class RefLAMB(Optimizer):
r"""Implements Lamb algorithm.
It has been proposed in `Large Batch Optimization for Deep Learning: Training BE... | [
1,
1053,
443,
27958,
13,
5215,
2897,
13,
13,
5215,
4842,
305,
13,
3166,
4842,
305,
29889,
20640,
1053,
20693,
326,
3950,
13,
5215,
263,
412,
29916,
13,
3166,
263,
412,
29916,
29889,
9910,
29918,
20158,
29918,
7302,
1053,
2473,
29918,
... |
apps/publications/translation.py | remocrevo/celus | 7 | 118232 | from modeltranslation.translator import translator, TranslationOptions
from .models import Platform
class PlatformTranslationOptions(TranslationOptions):
fields = ('name', 'provider')
translator.register(Platform, PlatformTranslationOptions)
| [
1,
515,
1904,
3286,
18411,
29889,
3286,
29880,
1061,
1053,
5578,
1061,
29892,
4103,
18411,
5856,
13,
3166,
869,
9794,
1053,
28096,
13,
13,
13,
1990,
28096,
4300,
18411,
5856,
29898,
4300,
18411,
5856,
1125,
13,
1678,
4235,
353,
6702,
97... |
intropy/tutorials/week_1/tests.py | ToscaBeijaert/introPy | 1 | 130583 | import numpy as np
def test_list_indexing(todo_list):
try:
assert(todo_list[2] == 'REPLACED')
except AssertionError as e:
print("The element 'TO_REPLACE_1' is not correctly replaced!")
raise(e)
try:
assert(todo_list[-1][-1][-1] == 'REPLACED')
except AssertionError... | [
1,
1053,
12655,
408,
7442,
13,
13,
1753,
1243,
29918,
1761,
29918,
2248,
292,
29898,
29873,
8144,
29918,
1761,
1125,
13,
268,
13,
1678,
1018,
29901,
13,
4706,
4974,
29898,
29873,
8144,
29918,
1761,
29961,
29906,
29962,
1275,
525,
1525,
... |
Chapter08/chapter8_sflowtool_1.py | stavsta/Mastering-Python-Networking-Second-Edition | 107 | 29309 | #!/usr/bin/env python3
import sys, re
for line in iter(sys.stdin.readline, ''):
if re.search('agent ', line):
print(line.strip())
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
10876,
29892,
337,
13,
13,
1454,
1196,
297,
4256,
29898,
9675,
29889,
4172,
262,
29889,
949,
1220,
29892,
6629,
1125,
13,
1678,
565,
337,
29889,
4478,
877,
14748,
1342... |
examples/example1.py | mtasic85/pynogil | 0 | 179076 | N = 1_000_000
a = list(range(N))
b = list(range(N))
# c = [0] * N
# c = [a[i] + b[i] for i in range(N)]
c = [x + y for x, y in zip(a, b)]
s = sum(c)
print(s)
| [
1,
405,
353,
29871,
29896,
29918,
29900,
29900,
29900,
29918,
29900,
29900,
29900,
13,
13,
29874,
353,
1051,
29898,
3881,
29898,
29940,
876,
13,
29890,
353,
1051,
29898,
3881,
29898,
29940,
876,
13,
29937,
274,
353,
518,
29900,
29962,
334... |
server/www/packages/packages-windows/x86/ldap3/utils/asn1.py | zhoulhb/teleport | 640 | 1635 | """
"""
# Created on 2015.08.19
#
# Author: <NAME>
#
# Copyright 2015 - 2018 <NAME>
#
# This file is part of ldap3.
#
# ldap3 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... | [
1,
9995,
30004,
13,
15945,
19451,
13,
30004,
13,
29937,
6760,
630,
373,
29871,
29906,
29900,
29896,
29945,
29889,
29900,
29947,
29889,
29896,
29929,
30004,
13,
29937,
30004,
13,
29937,
13361,
29901,
529,
5813,
3238,
13,
29937,
30004,
13,
... |
app/logic/gitrepo/controllers/__init__.py | imvu/bluesteel | 10 | 87751 | <reponame>imvu/bluesteel<filename>app/logic/gitrepo/controllers/__init__.py
""" Automatic file """
from app.logic.gitrepo.controllers.GitController import GitController
| [
1,
529,
276,
1112,
420,
29958,
326,
24845,
29914,
2204,
29884,
4196,
295,
29966,
9507,
29958,
932,
29914,
19227,
29914,
5559,
20095,
29914,
1285,
11897,
29914,
1649,
2344,
26914,
2272,
13,
15945,
29908,
15854,
2454,
934,
9995,
13,
13,
316... |
ancilla/ancilla/foundation/node/api/api.py | frenzylabs/ancilla | 7 | 51127 | <filename>ancilla/ancilla/foundation/node/api/api.py
'''
api.py
ancilla
Created by <NAME> (<EMAIL>) on 01/08/20
Copyright 2019 FrenzyLabs, LLC.
'''
import time
import json
from ...data.models import Service, ServiceAttachment
from ..response import AncillaError
class Api(object):
def __init__(self, se... | [
1,
529,
9507,
29958,
4564,
2911,
29914,
4564,
2911,
29914,
11940,
362,
29914,
3177,
29914,
2754,
29914,
2754,
29889,
2272,
13,
12008,
13,
7882,
29889,
2272,
13,
10359,
2911,
13,
13,
6760,
630,
491,
529,
5813,
29958,
313,
29966,
26862,
6... |
hook_faster_rcnn.py | ratkhohieu/Context-aware-emotion-recognition-based-on-visual-relationship-detection | 0 | 186696 | import pandas as pd
import torchvision
from torch.utils.data import DataLoader
from tqdm import tqdm
from pre_process import *
from utils import *
warnings.filterwarnings("ignore")
parser = argparse.ArgumentParser(description='MuSE Training')
parser.add_argument('--lr', default=1e-3, type=float, help='learning rate'... | [
1,
1053,
11701,
408,
10518,
13,
5215,
4842,
305,
4924,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
3630,
10036,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
13,
3166,
758,
29918,
5014,
1053,
334,
13,
3166,
3667,
... |
keras_bert/activations/gelu_tensorflow.py | Saumitra-Shukla/keras-bert | 9 | 85661 | <reponame>Saumitra-Shukla/keras-bert
from tensorflow.python.ops.math_ops import erf, sqrt
__all__ = ['gelu']
def gelu(x):
return 0.5 * x * (1.0 + erf(x / sqrt(2.0)))
| [
1,
529,
276,
1112,
420,
29958,
17618,
398,
277,
336,
29899,
2713,
2679,
433,
29914,
3946,
294,
29899,
2151,
13,
3166,
26110,
29889,
4691,
29889,
3554,
29889,
755,
29918,
3554,
1053,
23467,
29892,
18074,
2273,
13,
13,
1649,
497,
1649,
35... |
day14.py | dos1/AoC21 | 0 | 96723 | <reponame>dos1/AoC21
def I(d,i,v):d[i]=d.setdefault(i,0)+v
L=open("inputday14").readlines();t,d,p=L[0],dict([l.strip().split(' -> ')for l in L[2:]]),{};[I(p,t[i:i+2],1)for i in range(len(t)-2)]
def E(P):o=dict(P);[(I(P,p,-o[p]),I(P,p[0]+n,o[p]),I(P,n+p[1],o[p]))for p,n in d.items()if p in o.keys()];return P
def C(P):e=... | [
1,
529,
276,
1112,
420,
29958,
29881,
359,
29896,
29914,
29909,
29877,
29907,
29906,
29896,
13,
1753,
306,
29898,
29881,
29892,
29875,
29892,
29894,
1125,
29881,
29961,
29875,
13192,
29881,
29889,
842,
4381,
29898,
29875,
29892,
29900,
7240,
... |
P05/ex04_rand.py | ChanganXLTZ/project_test | 1 | 163367 | # -*- coding:UTF-8 -*-
#! /usr/bin/python3
import random
list_a = [1,2,3,4,1,2,3,4,5,1,4,3,4,1,10]
print(range(10))
print('将range(10)转化成数组:',list(range(10)))
print(random.choice(list_a))
print(random.choice(range(10)))
# print(random.randrange(-10,10,1.5)) # randrange ([start,] stop [,step])
print(random.ran... | [
1,
396,
448,
29930,
29899,
14137,
29901,
10496,
29899,
29947,
448,
29930,
29899,
30004,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
4691,
29941,
30004,
13,
5215,
4036,
30004,
13,
30004,
13,
1761,
29918,
29874,
353,
518,
29896,
29892,
... |
time_wizard/mixins.py | wfehr/django-time-wizard | 5 | 32327 | <filename>time_wizard/mixins.py<gh_stars>1-10
from django.contrib.contenttypes.fields import GenericRelation
from django.db import models
from django.utils.timezone import now
class TimeWizardInlineMixin(models.Model):
"""
Mixin for the inline support of PeriodModel.
"""
periods = GenericRelation(
... | [
1,
529,
9507,
29958,
2230,
29918,
29893,
17909,
29914,
28084,
1144,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
21570,
29889,
3051,
8768,
29889,
9621,
1053,
3251,
293,
9662,
362,
13... |
scraper/storage_spiders/sieuthisua365vn.py | chongiadung/choinho | 0 | 109019 | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//h1[@class='titleProduct']",
'price' : "//div[@class='desc3']/span[@class='price']",
'category' : "//div[@class='inner']/a",
... | [
1,
396,
11133,
5759,
491,
15299,
29889,
2272,
29889,
21267,
445,
1196,
565,
366,
1207,
21733,
29889,
13,
3166,
24559,
2272,
29889,
1028,
11376,
1053,
27308,
13,
3166,
24559,
2272,
29889,
1915,
446,
486,
1461,
943,
1053,
6645,
5647,
28891,... |
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_6.py | apcarrik/kaggle | 0 | 6729 | def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Gender, obj[4]: Age, obj[5]: Education, obj[6]: Occupation, obj[7]: Bar, obj[8]: Coffeehouse, obj[9]: Restaurant20to50, obj[10]: Direction_same, obj[11]: Distance
# {"feature": "Age", "instances": 51, "metric_value": 0.9662, "depth": 1}
... | [
1,
822,
1284,
6185,
2459,
29898,
5415,
1125,
396,
5415,
29961,
29900,
5387,
6978,
4600,
29892,
5446,
29961,
29896,
5387,
5974,
29892,
5446,
29961,
29906,
5387,
19565,
1112,
29892,
5446,
29961,
29941,
5387,
402,
1581,
29892,
5446,
29961,
299... |
label_wav_lebhoryi.py | Lebhoryi/ML-KWS-for-MCU | 1 | 78704 | <reponame>Lebhoryi/ML-KWS-for-MCU<filename>label_wav_lebhoryi.py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | [
1,
529,
276,
1112,
420,
29958,
29931,
774,
29882,
706,
29875,
29914,
1988,
29899,
29968,
7811,
29899,
1454,
29899,
12513,
29965,
29966,
9507,
29958,
1643,
29918,
29893,
485,
29918,
19982,
29882,
706,
29875,
29889,
2272,
13,
29937,
14187,
12... |
custom_tools/encoder/sub_encoder.py | danf42/vulnserver | 0 | 1612782 | import argparse
import binascii
import sys
import os
"""
For the type of encoder we are going to use, this is a list of characters that
will conflict with the bad character list
first, check if there are no bad char conflicts - AND eAX, SUB r8, SUB eAX, XOR r/m16/32, XOR r8, XOR eAX,
DEC eDX , DEC eBP, DEC eSI
PUSH ... | [
1,
1053,
1852,
5510,
13,
5215,
9016,
294,
18869,
13,
5215,
10876,
13,
5215,
2897,
13,
13,
15945,
29908,
13,
2831,
278,
1134,
310,
2094,
6119,
591,
526,
2675,
304,
671,
29892,
445,
338,
263,
1051,
310,
4890,
393,
13,
14043,
14529,
41... |
Scripts/Preprocessing/pre04_map_domains_id.py | mattiasu96/recsys-challenge-2021-twitter | 6 | 115444 | from preprocessing_utilities import create_and_save_uniques, load_uniques_create_dict_map, count_array_feature
from Scripts.utilities import start_correct_cluster, read_dataset, save_dataset, parse_args
from preprocessing_utilities import dict_path, temp_output_path, dataset_path
import numpy as np
import pyarrow as p... | [
1,
515,
758,
19170,
29918,
4422,
1907,
1053,
1653,
29918,
392,
29918,
7620,
29918,
348,
3783,
29892,
2254,
29918,
348,
3783,
29918,
3258,
29918,
8977,
29918,
1958,
29892,
2302,
29918,
2378,
29918,
14394,
13,
3166,
14415,
29879,
29889,
4422,... |
data/tileset_loader.py | Firecharmlily/CyberEdu | 5 | 157945 | import pygame
from data.clip import clip
def load_tileset(path):
tileset_img = pygame.image.load(path + 'tileset.png').convert()
tileset_img.set_colorkey((0, 0, 0))
width = tileset_img.get_width()
tile_size = [16, 16]
tile_count = int((width + 1) / (tile_size[0] + 1))
images = [clip(tileset_img... | [
1,
1053,
22028,
13,
3166,
848,
29889,
24049,
1053,
20102,
13,
13,
1753,
2254,
29918,
1376,
267,
300,
29898,
2084,
1125,
13,
1678,
260,
5475,
300,
29918,
2492,
353,
22028,
29889,
3027,
29889,
1359,
29898,
2084,
718,
525,
1376,
267,
300,
... |
tests/rest_kubectl/flask_rest_test.py | estuaryoss/estuary-deployer | 1 | 172226 | <filename>tests/rest_kubectl/flask_rest_test.py<gh_stars>1-10
#!/usr/bin/env python3
import unittest
import requests
import yaml
from flask import json
from parameterized import parameterized
from requests_toolbelt.utils import dump
from rest.api.constants.api_code import ApiCode
from rest.api.responsehelpers.error_m... | [
1,
529,
9507,
29958,
21150,
29914,
5060,
29918,
29895,
431,
522,
29880,
29914,
1579,
1278,
29918,
5060,
29918,
1688,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
... |
3_Retazce/3.44_SpajRetaz.py | ViktoriaGallikova/basic-python | 0 | 121574 | # Spajanie reťazcov
# Na vstupe získate dve frázy. Na výstup vypíšte výhovorku vygenerovanú z týchto fráz.
str1 = input() # umyť riad
str2 = input() # musím chytať Pokémony
print(f'Bohužiaľ nemôžem {str1}, pretože {str2}.')
# Bohužiaľ nemôžem umyť riad, pretože musím chytať Pokémony. | [
1,
396,
1706,
1175,
6067,
337,
30182,
834,
24542,
13,
13,
29937,
4465,
325,
303,
29884,
412,
503,
29983,
808,
403,
270,
345,
1424,
29976,
1537,
29889,
4465,
9660,
303,
786,
325,
1478,
29983,
30039,
371,
9660,
23294,
548,
29884,
10195,
... |
Taller Control de estructuras 2/Ejercicio_2.py | Majito17/Trabajos-Majo | 0 | 120104 | <filename>Taller Control de estructuras 2/Ejercicio_2.py
"""
for i in range(1,101,2):
if(i%7==0):
continue
print(i)
"""
c=0
while c<=100:
if(c%2!=0 and c%7!=0):
print(c)
c=c+1 | [
1,
529,
9507,
29958,
29911,
12572,
11264,
316,
26530,
10939,
29871,
29906,
29914,
29923,
29926,
6269,
11088,
29918,
29906,
29889,
2272,
13,
15945,
29908,
13,
1454,
474,
297,
3464,
29898,
29896,
29892,
29896,
29900,
29896,
29892,
29906,
1125,
... |
heat/common/environment_util.py | larsks/heat | 0 | 76738 | <reponame>larsks/heat<filename>heat/common/environment_util.py
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | [
1,
529,
276,
1112,
420,
29958,
4675,
808,
29879,
29914,
354,
271,
29966,
9507,
29958,
354,
271,
29914,
9435,
29914,
20944,
29918,
4422,
29889,
2272,
13,
29937,
13,
29937,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
2... |
models/edhoc/draftedhoc-20200301/oracle.py | hoheinzollern/EDHOC-Verification | 0 | 38670 | <filename>models/edhoc/draftedhoc-20200301/oracle.py<gh_stars>0
#!/usr/bin/python3
import sys, re
from functools import reduce
DEBUG = False
#DEBUG = True
# Put prios between 0 and 100. Above 100 is for default strategy
MAXNPRIO = 200 # max number of prios, 0 is lowest prio
FALLBACKPRIO = MAXNPRIO # max number ... | [
1,
529,
9507,
29958,
9794,
29914,
287,
29882,
542,
29914,
29881,
4154,
287,
29882,
542,
29899,
29906,
29900,
29906,
29900,
29900,
29941,
29900,
29896,
29914,
11347,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
... |
drawM.py | bshrram/Graduation-Project---Omnidirectional-Conveyor-Table | 1 | 174767 | <filename>drawM.py
import time
import sys
sys.path.insert(1, './feedback_system')
sys.path.insert(2, './control_system')
from common import *
from data.cellDatabase import *
from table import Table
from feedback_system.findTable import *
from feedback_system.tracker import Tracker
from feedback_system.detector import D... | [
1,
529,
9507,
29958,
4012,
29924,
29889,
2272,
13,
5215,
931,
13,
5215,
10876,
13,
9675,
29889,
2084,
29889,
7851,
29898,
29896,
29892,
19283,
18798,
1627,
29918,
5205,
1495,
13,
9675,
29889,
2084,
29889,
7851,
29898,
29906,
29892,
19283,
... |
tests/test_running.py | Zaab1t/simple-language | 0 | 52261 | <reponame>Zaab1t/simple-language
import functools
import pytest
from simplelang import ast_tree, tokenizer, objects
from simplelang.run import Interpreter
# run a bunch of code in the same interpreter and context
@pytest.fixture(scope='function')
def run_code():
interp = Interpreter()
def run(code):
... | [
1,
529,
276,
1112,
420,
29958,
29999,
29874,
370,
29896,
29873,
29914,
12857,
29899,
11675,
13,
5215,
2090,
312,
8789,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
2560,
3893,
1053,
8717,
29918,
8336,
29892,
5993,
3950,
29892,
3618,
13,
316... |
data_management/databases/classification/cropped_camera_trap_dataset_statistics.py | shelviaandi/CameraTraps | 1 | 176982 | <filename>data_management/databases/classification/cropped_camera_trap_dataset_statistics.py<gh_stars>1-10
from pycocotools.coco import COCO
import json
import numpy as np
import argparse
parser = argparse.ArgumentParser('Tools for getting dataset statistics. It is written for datasets generated with ' + \
... | [
1,
529,
9507,
29958,
1272,
29918,
21895,
29914,
29503,
2129,
29914,
1990,
2450,
29914,
24077,
2986,
29918,
26065,
29918,
29873,
2390,
29918,
24713,
29918,
6112,
6765,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29... |
piecrust/wsgiutil/__init__.py | airbornemint/PieCrust2 | 0 | 26283 | from piecrust.serving.server import WsgiServer
def get_app(root_dir, cache_key='prod', enable_debug_info=False):
app = WsgiServer(root_dir,
cache_key=cache_key,
enable_debug_info=enable_debug_info)
return app
| [
1,
515,
5036,
7283,
504,
29889,
643,
1747,
29889,
2974,
1053,
399,
29879,
3146,
6004,
13,
13,
13,
1753,
679,
29918,
932,
29898,
4632,
29918,
3972,
29892,
7090,
29918,
1989,
2433,
10633,
742,
9025,
29918,
8382,
29918,
3888,
29922,
8824,
... |
erpnext_chinese/utils.py | eanfs/erpnext_chinese | 0 | 150478 | import frappe
import json
from erpnext.stock.get_item_details import get_item_details
from six import string_types
@frappe.whitelist()
def get_user_default():
return frappe.get_all("User Default",
filters = {'user': frappe.session.user},
fields = ["setting_key", "setting_value"])
@frappe.whiteli... | [
1,
1053,
5227,
4798,
13,
5215,
4390,
13,
3166,
604,
29886,
4622,
29889,
17712,
29889,
657,
29918,
667,
29918,
14144,
1053,
679,
29918,
667,
29918,
14144,
13,
3166,
4832,
1053,
1347,
29918,
8768,
13,
13,
13,
29992,
20910,
4798,
29889,
13... |
medicalseg/utils/utils.py | onecatcn/MedicalSeg | 0 | 27855 | <filename>medicalseg/utils/utils.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | [
1,
529,
9507,
29958,
2168,
936,
10199,
29914,
13239,
29914,
13239,
29889,
2272,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
349,
22352,
29925,
22352,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
2... |
cgi-bin/paint_x2_unet/unet.py | ohong/pretty-whale | 2,990 | 72418 | #!/usr/bin/env python
import numpy as np
import math
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import cuda, optimizers, serializers, Variable
from chainer import function
from chainer.utils import type_check
class UNET(chainer.Chain):
def __init__(self):
super... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
5844,
13,
5215,
521,
4008,
13,
5215,
521,
4008,
29889,
12171,
408,
383,
13,
5215,
521,
4008,
29889,
4965,
408,
365,
13,
3166,
521,
4008,
1053,
... |
cohesity_management_sdk/models/office_365_env_job_parameters.py | nick6655/management-sdk-python | 18 | 165479 | # -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
import cohesity_management_sdk.models.one_drive_env_job_parameters
import cohesity_management_sdk.models.outlook_env_job_parameters
class Office365EnvJobParameters(object):
"""Implementation of the 'Office365EnvJobParameters' model.
Specifies Office365 ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
315,
1148,
267,
537,
9266,
29889,
13,
13,
5215,
16165,
267,
537,
29918,
21895,
29918,
15348,
29889,
... |
data_science_app/app.py | Johne-DuChene/data_science_learning_app | 0 | 4050 | <gh_stars>0
from flask import Flask
# initialize the app
app = Flask(__name__)
# execute iris function at /iris route
@app.route("/iris")
def iris():
from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
X, y = load_iris(return_X_y=True)
clf = LogisticRegression(
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
29784,
1053,
2379,
1278,
13,
13,
29937,
11905,
278,
623,
13,
932,
353,
2379,
1278,
22168,
978,
1649,
29897,
13,
13,
29937,
6222,
3805,
275,
740,
472,
847,
381,
275,
5782,
13,
... |
demo_viskp.py | Jillyyy/SPINN | 0 | 110497 | """
Demo code
To run our method, you need a bounding box around the person. The person needs to be centered inside the bounding box and the bounding box should be relatively tight. You can either supply the bounding box directly or provide an [OpenPose](https://github.com/CMU-Perceptual-Computing-Lab/openpose) detecti... | [
1,
9995,
13,
23444,
775,
13,
13,
1762,
1065,
1749,
1158,
29892,
366,
817,
263,
3216,
292,
3800,
2820,
278,
2022,
29889,
450,
2022,
4225,
304,
367,
24764,
2768,
278,
3216,
292,
3800,
322,
278,
3216,
292,
3800,
881,
367,
13774,
19932,
... |
Real_Estate/Configs/app_config.py | Divya-Madhuri/ppty_mgmnt | 0 | 120228 | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import event
from sqlalchemy.engine import Engine
from sqlite3 import Connection as SQLite3Connection
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////Users/divyamadhuri/Documents/Python/ppty_mgmnt/Real_Estate/RES... | [
1,
515,
29784,
1053,
2379,
1278,
13,
3166,
29784,
29918,
2850,
284,
305,
6764,
1053,
3758,
2499,
305,
6764,
13,
3166,
4576,
284,
305,
6764,
1053,
1741,
13,
3166,
4576,
284,
305,
6764,
29889,
10599,
1053,
10863,
13,
3166,
21120,
29941,
... |
crud_app/urls.py | DeeAjayi/djaroku1 | 1 | 124468 | from django.conf.urls import url
from . import views
app_name = 'crud_app'
urlpatterns = [
# /students/
url(r'^$', views.index, name='index'),
# /students/id<1>
url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'),
# /students/add
url(r'add/$', views.StudentCreate.as_view(), ... | [
1,
515,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
3166,
869,
1053,
8386,
13,
13,
932,
29918,
978,
353,
525,
7283,
566,
29918,
932,
29915,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
396,
847,
18082,
1237,
29914,
13,
1678,
... |
graphic_convergence_topology.py | win7/parallel_social_spider_optimization | 1 | 37922 | # -*- coding: utf-8 -*-
"""
============================================================================
Authors:
<NAME> and <NAME>*
*Department of Informatics
Universidad Nacional de San Antonio Abad del Cusco (UNSAAC) - Perú
============================================================================
"""
# Python... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
9166,
9166,
9166,
9166,
4936,
2751,
13,
6444,
943,
29901,
13,
12,
29966,
5813,
29958,
322,
529,
5813,
29958,
29930,
13,
12,
29930,
84... |
mundo2-EstruturasDeControle/047 - Contagem de pares.py | jonasht/CursoEmVideo-CursoDePython3 | 0 | 80953 | <filename>mundo2-EstruturasDeControle/047 - Contagem de pares.py
#Exercício Python 047:
#Crie um programa que mostre na tela todos os números pares que estão no intervalo entre 1 e 50.
for i in range(1, 50+1, 2):
print(i, end=' ') | [
1,
529,
9507,
29958,
29885,
6201,
29906,
29899,
29923,
710,
329,
10939,
2772,
1323,
12154,
29914,
29900,
29946,
29955,
448,
2866,
13904,
316,
610,
267,
29889,
2272,
13,
29937,
1252,
6269,
24394,
5132,
29871,
29900,
29946,
29955,
29901,
13,
... |
pybliometrics/scopus/classes/__init__.py | fabiosangregorio/scopus | 11 | 189783 | <reponame>fabiosangregorio/scopus<gh_stars>10-100
from pybliometrics.scopus.classes.retrieval import *
from pybliometrics.scopus.classes.search import *
| [
1,
529,
276,
1112,
420,
29958,
16582,
2363,
574,
1727,
10893,
29914,
21785,
375,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
11451,
29890,
492,
3297,
10817,
29889,
21785,
375,
29889,
13203,
298... |
corehq/apps/data_interfaces/views.py | johan--/commcare-hq | 0 | 98499 | <reponame>johan--/commcare-hq
import csv
import io
import uuid
from couchdbkit import ResourceNotFound
from django.contrib import messages
from django.core.cache import cache
from corehq import privileges, toggles
from corehq.apps.accounting.decorators import requires_privilege_with_fallback
from corehq.apps.casegroups... | [
1,
529,
276,
1112,
420,
29958,
29926,
1148,
273,
489,
29914,
2055,
18020,
29899,
29882,
29939,
13,
5215,
11799,
13,
5215,
12013,
13,
5215,
318,
5416,
13,
3166,
274,
3222,
2585,
7354,
1053,
18981,
17413,
13,
3166,
9557,
29889,
21570,
105... |
test/toolkit/test_config.py | babatana/stograde | 0 | 65425 | import datetime
import os
import textwrap
from unittest import mock
import pytest
from stograde.common import chdir
from stograde.toolkit.config import Config
_dir = os.path.dirname(os.path.realpath(__file__))
def test_setup(tmpdir):
with tmpdir.as_cwd():
assert not os.path.exists('stograde.ini')
... | [
1,
1053,
12865,
13,
5215,
2897,
13,
5215,
1426,
6312,
13,
3166,
443,
27958,
1053,
11187,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
380,
468,
15464,
29889,
9435,
1053,
521,
3972,
13,
3166,
380,
468,
15464,
29889,
10154,
7354,
29889,
291... |
producemeta.py | aireveries/pix-plot | 1 | 104397 | import csv
import sys
import glob
import xml.etree.ElementTree as ET
path = sys.argv[1]
with open('test.csv', 'w', newline='') as csvfile:
writer = csv.writer(csvfile, delimiter=",",
quotechar="|", quoting=csv.QUOTE_MINIMAL)
# write the header
writer.writerow(['filename', 'tags', 'd... | [
1,
1053,
11799,
13,
5215,
10876,
13,
5215,
13149,
13,
5215,
4903,
29889,
300,
929,
29889,
2642,
9643,
408,
382,
29911,
13,
13,
2084,
353,
10876,
29889,
19218,
29961,
29896,
29962,
13,
2541,
1722,
877,
1688,
29889,
7638,
742,
525,
29893,... |
leetcode/smallest_string_with_a_given_numeric_value/smallest_string_with_a_given_numeric_value.py | sagasu/python-algorithms | 0 | 119577 | class Solution:
def getSmallestString(self, n: int, k: int) -> str:
result = ""
for index in range(n):
digitsLeft = n - index - 1
for c in range(1, 27):
if k - c <= digitsLeft * 26:
k -= c
result += chr(ord('a') + c -1... | [
1,
770,
24380,
29901,
13,
1678,
822,
679,
12636,
497,
342,
1231,
29898,
1311,
29892,
302,
29901,
938,
29892,
413,
29901,
938,
29897,
1599,
851,
29901,
13,
4706,
1121,
353,
5124,
13,
13,
4706,
363,
2380,
297,
3464,
29898,
29876,
1125,
... |
rapidflask/app/main/views.py | TM-KUNGFOOO/rapidflask-orchestra | 0 | 145786 | <reponame>TM-KUNGFOOO/rapidflask-orchestra
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = '<NAME>'
from datetime import datetime
from flask import render_template, redirect, url_for, abort, flash, make_response, jsonify, session, g
from . import main
from app import db
from .forms import *
from app.decor... | [
1,
529,
276,
1112,
420,
29958,
23081,
29899,
29968,
3904,
29954,
5800,
29949,
29949,
29914,
2390,
333,
1579,
1278,
29899,
272,
15554,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,... |
python/aad/plot_anomalies_rectangle.py | rislam/ad_examples | 1 | 42074 | import os
import numpy as np
import numpy.random as rnd
import matplotlib.pyplot as plt
import logging
from pandas import DataFrame
from common.gen_samples import *
from common.data_plotter import *
from aad.aad_globals import *
from aad.aad_support import *
from aad.forest_description import *
from aad.anomaly_data... | [
1,
1053,
2897,
13,
5215,
12655,
408,
7442,
13,
5215,
12655,
29889,
8172,
408,
364,
299,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
5215,
12183,
13,
3166,
11701,
1053,
3630,
4308,
13,
13,
3166,
3619,
29889,
1885,
29918,
27... |
lesson_planner/migrations/0014_auto_20200811_2219.py | Hogwarts250/lesson-discussion | 0 | 167159 | # Generated by Django 3.1 on 2020-08-12 05:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('lesson_planner... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29947,
29899,
29896,
29906,
29871,
29900,
29945,
29901,
29896,
29929,
13,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
95... |
mars/worker/storage/procmemhandler.py | sighingnow/mars | 0 | 113073 | # Copyright 1999-2019 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
1,
396,
14187,
1266,
29871,
29896,
29929,
29929,
29929,
29899,
29906,
29900,
29896,
29929,
319,
1982,
5363,
6431,
21771,
292,
19806,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,... |
authdata/views.py | mpassid/MPASSid-data | 0 | 132946 |
# -*- encoding: utf-8 -*-
# The MIT License (MIT)
#
# Copyright (c) 2014-2015 <NAME>, http://haltu.fi
#
# 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 withou... | [
1,
29871,
13,
29937,
448,
29930,
29899,
8025,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
450,
341,
1806,
19245,
313,
26349,
29897,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29946,
... |
CDARTS_segmentation/segmentation/data/samplers/distributed_sampler.py | penghouwen/CDARTS | 21 | 194745 | <reponame>penghouwen/CDARTS
# ------------------------------------------------------------------------------
# Reference: https://github.com/facebookresearch/detectron2/blob/master/detectron2/data/samplers/distributed_sampler.py
# Modified by <NAME> (<EMAIL>)
# ----------------------------------------------------------... | [
1,
529,
276,
1112,
420,
29958,
29886,
996,
29882,
21630,
29914,
6530,
8322,
29903,
13,
29937,
448,
2683,
2683,
2683,
2683,
9072,
29899,
13,
29937,
12105,
29901,
2045,
597,
3292,
29889,
510,
29914,
15445,
690,
2842,
29914,
4801,
522,
1617,... |
src/NodeGenerators/GenerateNodeProfile.py | jmikeowen/Spheral | 22 | 160459 | from math import *
import numpy as np
from NodeGeneratorBase import *
from Spheral import (Vector1d, Tensor1d, SymTensor1d,
Vector2d, Tensor2d, SymTensor2d, rotationMatrix2d, testPointInBox2d,
Vector3d, Tensor3d, SymTensor3d, rotationMatrix3d, testPointInBox3d)
from SpheralTe... | [
1,
515,
5844,
1053,
334,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
9071,
21575,
5160,
1053,
334,
13,
13,
3166,
317,
8096,
284,
1053,
313,
12877,
29896,
29881,
29892,
323,
6073,
29896,
29881,
29892,
10667,
29911,
6073,
29896,
29881,
2989... |
build/full_test.py | wanghuan578/chrome-gn | 10 | 101212 | #!/usr/bin/env python3
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import shutil
import subprocess
import sys
import timeit
IS_WIN = sys.platform.startswith('win')
def RemoveDir(d):
if ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29947,
450,
678,
456,
1974,
13189,
943,
29889,
2178,
10462,
21676,
29889,
13,
29937,
4803,
310,
445,
2752,
775,
338,
4095,
287,
491... |
module4/solution/detect_brands.py | axel-sirota/getting-started-azure-computer-vision | 0 | 166931 | <reponame>axel-sirota/getting-started-azure-computer-vision<filename>module4/solution/detect_brands.py<gh_stars>0
import os
from azure.cognitiveservices.vision.computervision import ComputerVisionClient
from msrest.authentication import CognitiveServicesCredentials
# Authenticate
subscription_key = os.environ["AZURE... | [
1,
529,
276,
1112,
420,
29958,
1165,
295,
29899,
1039,
307,
941,
29914,
29264,
29899,
2962,
287,
29899,
17688,
29899,
12097,
261,
29899,
4924,
29966,
9507,
29958,
5453,
29946,
29914,
2929,
918,
29914,
4801,
522,
29918,
1182,
4167,
29889,
... |
src/utilities/NumpyHelper.py | AndMu/Market-Wisdom | 14 | 33931 | import numpy as np
class NumpyDynamic:
def __init__(self, dtype, array_size=(100,)):
self.data = np.zeros(array_size, dtype)
self.array_size = list(array_size)
self.size = 0
def add(self, x):
if self.size == self.array_size[0]:
self.array_size[0] *= 2
... | [
1,
1053,
12655,
408,
7442,
13,
13,
13,
1990,
11848,
2272,
24001,
29901,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
26688,
29892,
1409,
29918,
2311,
7607,
29896,
29900,
29900,
29892,
22164,
13,
4706,
1583,
29889,
1272,
353,
7442,
... |
mitmirror/data/security/password_hash.py | Claayton/mitmirror-api | 0 | 107192 | """Caso de uso: PasswordHash"""
import bcrypt
from mitmirror.domain.usecases import PasswordHashInterface
class PasswordHash(PasswordHashInterface):
"""Classe responsavel por realizar o hash de senhas de usuarios"""
@staticmethod
def hash(password: str) -> str:
"""Realiza o procesos de hash da se... | [
1,
9995,
29907,
17764,
316,
17448,
29901,
25280,
10438,
15945,
29908,
13,
5215,
289,
29883,
4641,
13,
3166,
1380,
11038,
729,
29889,
7247,
29889,
1509,
11436,
1053,
25280,
10438,
10448,
13,
13,
13,
1990,
25280,
10438,
29898,
10048,
10438,
... |
tools/show_workenv.py | violas-core/bvexchange | 0 | 74127 | #!/usr/bin/python3
import operator
import sys
import json
import os
sys.path.append(os.getcwd())
sys.path.append("..")
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../"))
import log
import log.logger
import traceback
import datetime
import sqlalchemy
import stmanage
import requests
import r... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
13,
5215,
5455,
13,
5215,
10876,
13,
5215,
4390,
13,
5215,
2897,
13,
9675,
29889,
2084,
29889,
4397,
29898,
359,
29889,
657,
29883,
9970,
3101,
13,
9675,
29889,
2084,
29889,
4397,
703,
63... |
moe/tests/bandit/__init__.py | dstoeckel/MOE | 966 | 50446 | # -*- coding: utf-8 -*-
r"""Testing code for the (Python) bandit library.
Testing is done via the Testify package:
https://github.com/Yelp/Testify
This package includes:
* Test cases/test setup files
* Tests for bandit/epsilon: :mod:`moe.tests.bandit.epsilon`
* Tests for bandit/ucb: :mod:`moe.tests.bandit.ucb`
* Tes... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29878,
15945,
29908,
3057,
292,
775,
363,
278,
313,
11980,
29897,
3719,
277,
3489,
29889,
13,
13,
3057,
292,
338,
2309,
3025,
278,
4321,
1598,
3577,
29... |
src/CmdArgsMgr.py | yasserprogamer/POSI-SW | 1 | 1603928 | import sys
import colors
def getArg(number:int = 1):
try:
return sys.argv[number]
except IndexError:
return False
def is_passed_max(max:int = 5):
ArgsLength = len(sys.argv)
if ArgsLength == max+1:
print(f"{colors.Color.White}=> {colors.Color.Red}You can't pass more ... | [
1,
1053,
10876,
30004,
13,
5215,
11955,
30004,
13,
30004,
13,
1753,
679,
8559,
29898,
4537,
29901,
524,
353,
29871,
29896,
1125,
30004,
13,
1678,
1018,
29901,
30004,
13,
4706,
736,
10876,
29889,
19218,
29961,
4537,
29962,
30004,
13,
1678,... |
nn.py | sumitsk/cspace_belief | 3 | 25468 | <reponame>sumitsk/cspace_belief
#!/usr/bin/env python -W ignore::DeprecationWarning
import numpy as np
import os
import knn
import warnings
warnings.filterwarnings("ignore")
from sklearn.neighbors import NearestNeighbors, LSHForest
if __name__ == '__main__':
files = (['env_shelf01', 'env_table1', 'env_table3',... | [
1,
529,
276,
1112,
420,
29958,
2083,
277,
808,
29914,
29883,
3493,
29918,
6596,
2575,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
448,
29956,
11455,
1057,
8498,
3757,
362,
22709,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
289... |
TempDataProcess/ComputeMonthAvg.py | jmcgra1/Global-Warming-Visualization | 0 | 110011 | import psycopg2
#Connects to db
con = psycopg2.connect(
host = "localhost",
database = "tempdata",
user = "jack",
password = "<PASSWORD>")
#Create Cursor
cur = con.cursor()
#Execute Query
cur.execute("select distinct(country) from temperatures;")
#Catch all results as c... | [
1,
1053,
6529,
29891,
9708,
29887,
29906,
13,
13,
29937,
17918,
29879,
304,
4833,
13,
535,
353,
6529,
29891,
9708,
29887,
29906,
29889,
6915,
29898,
13,
9651,
3495,
353,
376,
7640,
613,
13,
9651,
2566,
353,
376,
7382,
1272,
613,
13,
9... |
speechdb/migrations/0019_work_lang.py | bmverhel/dices | 0 | 120037 | # Generated by Django 3.1.8 on 2021-06-21 13:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('speechdb', '0018_auto_20210621_0958'),
]
operations = [
migrations.AddField(
model_name='work',
name='lang',
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
29889,
29947,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29953,
29899,
29906,
29896,
29871,
29896,
29941,
29901,
29945,
29941,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
picdown/picdown/items.py | gamegrd/discuz_spider | 3 | 76392 | <gh_stars>1-10
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class PicdownItem(Item):
# define the fields for your item here like:
# name = Field()
#text = Field()
image_urls = Field()
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
22402,
1244,
278,
4733,
363,
596,
885,
2390,
287,
4452,
13,
29937,
13,
29937,
2823,
5106,
297,
29901,
13,
29937,
1732,
597,
1514,
29889,
1557,
336,
2272,
298... |
setup.py | myyc/cruijff | 0 | 143511 | <reponame>myyc/cruijff<filename>setup.py<gh_stars>0
from setuptools import setup
from cruijff.constants import __version__
DESC = """
TBD
"""
setup(
name="cruijff",
version=__version__,
author="myyc",
description="Some football data",
license="BSD",
keywords="data mining football python pand... | [
1,
529,
276,
1112,
420,
29958,
1357,
11078,
29914,
29883,
582,
823,
600,
29966,
9507,
29958,
14669,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
731,
21245,
8789,
1053,
6230,
13,
13,
3166,
7618,
823,
600,
29889,
... |
olfactometer/smell_engine_communicator.py | asu-meteor/The-Smell-Engine | 1 | 33935 | <gh_stars>1-10
import struct
import select
import socket
import sys
import binascii
import getopt
import time
import quantities as pq
from collections import deque
import numpy as np
import datetime
import typer
from typing import Optional
from pprint import pprint
from olfactometer.smell_engine import SmellEngine
fr... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2281,
13,
5215,
1831,
13,
5215,
9909,
13,
5215,
10876,
13,
5215,
9016,
294,
18869,
13,
5215,
679,
3670,
13,
5215,
931,
13,
5215,
26855,
408,
282,
29939,
13,... |
tests/models/test_model.py | d-cat-support/fusion-platform-python-sdk | 0 | 159177 | #
# Model base class test file.
#
# @author <NAME>
#
# (c) Digital Content Analysis Technology Ltd 2022
#
from datetime import datetime, timezone
from functools import partial
import json
from mock import patch
import pytest
import requests
import requests_mock
import uuid
from tests.custom_test_case import CustomTes... | [
1,
396,
13,
29937,
8125,
2967,
770,
1243,
934,
29889,
13,
29937,
13,
29937,
732,
8921,
529,
5813,
29958,
13,
29937,
13,
29937,
313,
29883,
29897,
15918,
10576,
24352,
17968,
19806,
29871,
29906,
29900,
29906,
29906,
13,
29937,
13,
13,
3... |
setup.py | MarkLark/dstore-acl | 1 | 1612688 | from setuptools import setup
from os import path
from codecs import open
root_dir = path.abspath(path.dirname(__file__))
with open( path.join( root_dir, 'README.rst' ), encoding = 'utf-8' ) as f:
long_description = f.read()
setup(
name='DStore-ACL',
version='0.1.1',
url = 'https://github.com/MarkLar... | [
1,
515,
731,
21245,
8789,
1053,
6230,
13,
3166,
2897,
1053,
2224,
13,
3166,
775,
2395,
1053,
1722,
13,
13,
4632,
29918,
3972,
353,
2224,
29889,
370,
1028,
493,
29898,
2084,
29889,
25721,
22168,
1445,
1649,
876,
13,
13,
2541,
1722,
298... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.