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 |
|---|---|---|---|---|---|
strips/utils.py | cyclone923/pyplanners | 0 | 117539 | from .ff import ff_fn, plan_cost, first_goals
from misc.numerical import INF
from misc.functions import in_add
from planner.progression.best_first import a_star_search, best_first_search, deferred_best_first_search
def h_0(state, goal, operators):
return 0
def h_naive(state, goal, operators):
return sum(1 for ... | [
1,
515,
869,
600,
1053,
14336,
29918,
9144,
29892,
3814,
29918,
18253,
29892,
937,
29918,
1484,
1338,
13,
3166,
3984,
29883,
29889,
8058,
936,
1053,
2672,
29943,
13,
3166,
3984,
29883,
29889,
12171,
1053,
297,
29918,
1202,
13,
3166,
715,
... |
zero_padding.py | dcxSt/kaggle_mais | 0 | 110574 | #! /home/steve/anaconda3/bin/python3.7
import numpy as np
train_images = np.load("train_images.npy")
padded_train_images = []
print("padding train images")
for i in train_images:
entry=[]
entry.append(np.zeros(32))
entry.append(np.zeros(32))
for j in i:
entry.append([0,0]+list(j)+[0,0])
e... | [
1,
396,
29991,
847,
5184,
29914,
1655,
345,
29914,
1648,
18050,
29941,
29914,
2109,
29914,
4691,
29941,
29889,
29955,
13,
13,
5215,
12655,
408,
7442,
13,
14968,
29918,
8346,
353,
7442,
29889,
1359,
703,
14968,
29918,
8346,
29889,
29876,
2... |
medium/1780-check-if-number-is-a-sum-of-powers-of-three.py | wanglongjiang/leetcode | 2 | 184392 | '''
判断一个数字是否可以表示成三的幂的和
给你一个整数 n ,如果你可以将 n 表示成若干个不同的三的幂之和,请你返回 true ,否则请返回 false 。
对于一个整数 y ,如果存在整数 x 满足 y == 3x ,我们称这个整数 y 是三的幂。
提示:
1 <= n <= 107
'''
'''
思路:数学
对于一个整数x,如果是3的幂的和,说明x=y*3 or x= y*3+1
也就是x是3的整数倍或整数倍+1
不对,是3个不同的幂之和如果是21,3^2+3^2+3^1
TODO
'''
| [
1,
14550,
13,
31791,
31683,
30287,
30502,
30354,
30578,
30392,
31191,
30682,
30651,
30746,
30858,
30494,
30457,
30210,
232,
188,
133,
30210,
30503,
13,
31999,
30919,
30287,
30502,
233,
152,
183,
30354,
30081,
29876,
30081,
30214,
30847,
30801... |
test_tscribe.py | craigmayhew/aws_transcribe_to_docx | 0 | 135911 | <reponame>craigmayhew/aws_transcribe_to_docx
import tscribe
import os
def test_multiple_speakers():
"""
Test output exists with multiple speaker input
# GIVEN a sample file containing multiple speakers
# WHEN calling tscribe.write(...)
# THEN produce the .docx without errors
"""
# Setup... | [
1,
529,
276,
1112,
420,
29958,
26844,
335,
13029,
13636,
29914,
10467,
29918,
3286,
29581,
29918,
517,
29918,
1514,
29916,
13,
5215,
260,
13086,
13,
5215,
2897,
13,
13,
13,
1753,
1243,
29918,
20787,
29918,
5965,
21079,
7295,
13,
1678,
9... |
src/badd/__init__.py | wksmirnowa/badd | 1 | 145161 | <filename>src/badd/__init__.py<gh_stars>1-10
from .ad import AdDetector
from .toxic import ToxicDetector
from .obscene import ObsceneDetector
from .file_loader import FileLoader
| [
1,
529,
9507,
29958,
4351,
29914,
29890,
1202,
29914,
1649,
2344,
26914,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
869,
328,
1053,
2087,
6362,
3019,
13,
3166,
869,
517,
27375,
1053,
1763,
27375,
63... |
simpleml/classifiers/decisiontree.py | get9/ml-test | 1 | 1602078 | <gh_stars>1-10
import sys
import numpy as np
from .baseclassifier import BaseClassifier
# Calculate gini impurity of vector {f}
def gini(f):
return 1.0 - np.sum(np.square(f))
# Score the split given by {splitval} on {dim} according to gini impurity
def score_split(splitval, dim, left, right):
N = len(left) +... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
10876,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
869,
3188,
1990,
3709,
1053,
7399,
2385,
3709,
13,
13,
29937,
20535,
403,
330,
2172,
2411,
7710,
310,
4608,
... |
code/custom_utils.py | dataspider/momo | 4 | 63097 | import functools
import json
import re
from collections import Counter
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
import pandas as pd
import seaborn as sns
from statics import STRUCTURE_TYPES
sns.set_style("whitegrid")
plt.rcParams["figure.figsize"] = (18, 12)
plt.rcParams["font.size"] ... | [
1,
1053,
2090,
312,
8789,
13,
5215,
4390,
13,
5215,
337,
13,
3166,
16250,
1053,
315,
5336,
13,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
3564,
29916,
408,
302,
29916,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
... |
Exercicios-mundo-2/desafio044.py | talitadeoa/CEV-Exercicios-Python | 0 | 115342 | #Um gerenciador de pagementos simples
preco = float(input('Qual o valor da compra? '))
pagamento = int(input("""Qual será a forma de pagamento?
Digite 0 para pagamento à vista no dinheiro ou cheque
Digite 1 para pagamento à vista no cartão
Digite 2 para pagamento parcelado em até 2x
Digite 3 para pagamento parcelado ... | [
1,
396,
29965,
29885,
330,
4578,
455,
3136,
316,
282,
5049,
359,
1027,
2701,
13,
13,
1457,
1111,
353,
5785,
29898,
2080,
877,
24399,
288,
16497,
1146,
752,
336,
29973,
525,
876,
13,
13573,
4487,
353,
938,
29898,
2080,
703,
15945,
2439... |
3Sum15.py | Bit64L/LeetCode-Python- | 0 | 114876 | class Solution(object):
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums.sort()
n = len(nums)
ans = []
for i in range(0, n-2):
if i > 0 and nums[i] == nums[i-1]:
continue
j,k ... | [
1,
770,
24380,
29898,
3318,
1125,
13,
1678,
822,
2211,
11139,
29898,
1311,
29892,
954,
29879,
1125,
13,
4706,
9995,
13,
4706,
584,
1853,
954,
29879,
29901,
2391,
29961,
524,
29962,
13,
4706,
584,
29878,
1853,
29901,
2391,
29961,
1293,
2... |
TaskManager/profiles/views.py | Z0ltek/TaskManager_v2 | 0 | 129182 | <filename>TaskManager/profiles/views.py
from django.contrib.auth import login as auth_login
from django.http import Http404
from django.shortcuts import render, redirect, get_object_or_404
from django.views.generic import TemplateView
from django.contrib.auth import logout
from django.contrib.auth.models import User
f... | [
1,
529,
9507,
29958,
5398,
3260,
29914,
771,
5325,
29914,
7406,
29889,
2272,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
6464,
408,
4817,
29918,
7507,
13,
3166,
9557,
29889,
1124,
1053,
9056,
29946,
29900,
29946,
13,
3166,
9557,
2988... |
rest_framework_swagger/compat.py | kaitlin/django-rest-swagger | 0 | 1615886 | <filename>rest_framework_swagger/compat.py
import platform
if platform.python_version_tuple() < ('2', '7'):
import ordereddict
OrderedDict = ordereddict.OrderedDict
else:
import collections
OrderedDict = collections.OrderedDict
if platform.python_version_tuple() < ('3', '0'):
from HTMLParser import... | [
1,
529,
9507,
29958,
5060,
29918,
4468,
29918,
2774,
9921,
29914,
12667,
29889,
2272,
13,
5215,
7481,
13,
361,
7481,
29889,
4691,
29918,
3259,
29918,
23583,
580,
529,
6702,
29906,
742,
525,
29955,
29374,
13,
1678,
1053,
10372,
8977,
13,
... |
Packs/Netskope/Integrations/NetskopeAPIv1/NetskopeAPIv1.py | jrauen/content | 2 | 91008 | <gh_stars>1-10
# type: ignore
from copy import deepcopy
from typing import Any, Dict, List, Optional, Tuple
from urllib.parse import urljoin
import urllib3
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
# disable insecure warnings
urllib3.disable_warnings()
DEFAU... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
1134,
29901,
11455,
13,
3166,
3509,
1053,
6483,
8552,
13,
3166,
19229,
1053,
3139,
29892,
360,
919,
29892,
2391,
29892,
28379,
29892,
12603,
552,
13,
3166,
314... |
UQ/UQtutorial.py | ISR3D/ISR3D | 0 | 39100 | import subprocess
lib_list = ['numpy','ymmsl','sobol_seq','csv','seaborn','zenodo_get']
for lib_name in lib_list:
try:
import lib_name
except ImportError:
if lib_name == 'csv':
print(lib_name,' Module not installed')
subprocess.run(['pip','install','python-csv'])
else:
print(lib_name,' Module not inst... | [
1,
1053,
1014,
5014,
13,
1982,
29918,
1761,
353,
6024,
23749,
3788,
962,
1516,
29880,
3788,
578,
2095,
29918,
11762,
3788,
7638,
3788,
344,
370,
1398,
3788,
2256,
8144,
29918,
657,
2033,
13,
1454,
4303,
29918,
978,
297,
4303,
29918,
176... |
example/django_example/polls/tests.py | dmsimard/dynaconf | 0 | 24926 | from django.conf import settings
from django.test import TestCase
# Create your tests here.
class SettingsTest(TestCase):
def test_settings(self):
self.assertEqual(settings.SERVER, 'prodserver.com')
self.assertEqual(
settings.STATIC_URL, '/changed/in/settings.toml/by/dynaconf/')
... | [
1,
515,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
1688,
1053,
4321,
8259,
13,
13,
29937,
6204,
596,
6987,
1244,
29889,
13,
13,
13,
1990,
19215,
3057,
29898,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
29918,
11027,
29898,
1... |
app/workers/main.py | brotskydotcom/public-services.py | 0 | 114657 | # MIT License
#
# Copyright (c) 2020 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | [
1,
396,
29871,
341,
1806,
19245,
13,
29937,
13,
29937,
29871,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
529,
5813,
29958,
13,
29937,
13,
29937,
29871,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
2... |
eth_tester/normalization/common.py | PabloLefort/eth-tester | 215 | 12080 | from cytoolz.functoolz import (
curry,
)
from eth_utils import (
to_dict,
to_tuple,
)
@curry
@to_dict
def normalize_dict(value, normalizers):
for key, item in value.items():
normalizer = normalizers[key]
yield key, normalizer(item)
@curry
@to_tuple
def normalize_array(value, normali... | [
1,
515,
5094,
10154,
29920,
29889,
7692,
312,
1507,
29920,
1053,
313,
13,
1678,
3151,
719,
29892,
13,
29897,
13,
13,
3166,
11314,
29918,
13239,
1053,
313,
13,
1678,
304,
29918,
8977,
29892,
13,
1678,
304,
29918,
23583,
29892,
13,
29897,... |
bubble_sort.py | rogueleaderr/import_madness | 2 | 1614496 | import time
__author__ = 'rogueleaderr'
def bubble_sort(list_to_sort):
start_time = time.time()
while True:
list_len = len(list_to_sort)
max_index = (list_len - 1)
swaps = 0
for i in range(list_len):
j = i + 1
if j > max_index:
break
... | [
1,
1053,
931,
13,
13,
1649,
8921,
1649,
353,
525,
9102,
434,
280,
1664,
29878,
29915,
13,
13,
13,
1753,
289,
23232,
29918,
6605,
29898,
1761,
29918,
517,
29918,
6605,
1125,
13,
1678,
1369,
29918,
2230,
353,
931,
29889,
2230,
580,
13,
... |
DQM/L1TMonitorClient/python/L1TOccupancyClient_cff.py | ckamtsikis/cmssw | 852 | 1605203 | import FWCore.ParameterSet.Config as cms
from DQM.L1TMonitorClient.L1TOccupancyClient_cfi import *
| [
1,
1053,
383,
29956,
9203,
29889,
9329,
2697,
29889,
3991,
408,
274,
1516,
13,
13,
3166,
360,
29984,
29924,
29889,
29931,
29896,
29911,
7185,
2105,
4032,
29889,
29931,
29896,
4986,
617,
786,
6906,
4032,
29918,
6854,
29875,
1053,
334,
13,
... |
portfolio/gui/tabresults/righttable.py | timeerr/portfolio | 0 | 8509 | <filename>portfolio/gui/tabresults/righttable.py
#!/usr/bin/python3
from datetime import datetime
from PyQt5.QtWidgets import QTableWidgetItem, QTableWidget, QAbstractItemView, QMenu, QMessageBox
from PyQt5.QtGui import QCursor
from PyQt5.QtCore import Qt, pyqtSignal, QObject
from portfolio.db.fdbhandler import resu... | [
1,
529,
9507,
29958,
637,
25648,
29914,
23569,
29914,
3891,
9902,
29914,
1266,
2371,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
29941,
13,
13,
3166,
12865,
1053,
12865,
13,
13,
3166,
10772,
17303,
29945,
29889,
17303,
... |
util1.py | Daim-Akram/chat_app-Socket | 0 | 118510 | '''
This file contains basic utility functions that you can use.
'''
import binascii
MAX_NUM_CLIENTS = 10
TIME_OUT = 0.5 # 500ms
NUM_OF_RETRANSMISSIONS = 3
CHUNK_SIZE = 1400 # 1400 Bytes
def validate_checksum(message):
'''
Validates Checksum of a message and returns true/false
'''
try:
msg, ch... | [
1,
14550,
13,
4013,
934,
3743,
6996,
19725,
3168,
393,
366,
508,
671,
29889,
13,
12008,
13,
5215,
9016,
294,
18869,
13,
13,
12648,
29918,
13967,
29918,
27205,
3919,
29903,
353,
29871,
29896,
29900,
13,
15307,
29918,
12015,
353,
29871,
2... |
solutionbox/structured_data/mltoolbox/_structured_data/preprocess/local_preprocess.py | freyrsae/pydatalab | 198 | 18258 | <gh_stars>100-1000
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
5087,
9266,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
... |
3cw.py | lisoleg/pybancor | 0 | 58518 | import numpy as np
import matplotlib.pyplot as plt
import random
s0=4.96*10**8
mtop=5.04*10**8
oneday=24*60*60
oneyear=365
t=[i for i in range(1,oneyear*30)]
bprice0=6.4669
bprice=bprice0
bnum0=1000000
b0=1.0*bnum0
cw0=0.065
cw1=0.075
cw2=0.08
cw3=0.1
realmine=0
p0list=[]
b0list=[]
s0list=[]
p1list=[]
b1list=[]
s1lis... | [
1,
1053,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
4036,
13,
13,
29879,
29900,
29922,
29946,
29889,
29929,
29953,
29930,
29896,
29900,
1068,
29947,
13,
29885,
3332,
29922,
29945,
29889,
29900,
29946,
29930,... |
hackerrank/contests/30_days_of_code/operators-class-instance.py | spradeepv/dive-into-python | 0 | 111808 | """
Problem Statement
Welcome to Day 4! Check out a video review of logical operations here,
or just jump right into the problem.
Note: This task is focused on Object Oriented concepts, so it is only
enabled in a few languages.
You will create a class Person and write a constructor that takes an
integer, initial_Age... | [
1,
9995,
13,
26604,
6666,
882,
13,
13,
28862,
2763,
304,
8373,
29871,
29946,
29991,
5399,
714,
263,
4863,
9076,
310,
16667,
6931,
1244,
29892,
13,
272,
925,
12500,
1492,
964,
278,
1108,
29889,
13,
13,
9842,
29901,
910,
3414,
338,
2130... |
pyrobolearn/dynamics/nn.py | Pandinosaurus/pyrobolearn | 2 | 167349 | <reponame>Pandinosaurus/pyrobolearn
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provides dynamic transition neural network approximators
For instance, a dynamic network is a function represented by a neural network that maps a state-action to the next
state.
"""
from pyrobolearn.approximators import NNApproximat... | [
1,
529,
276,
1112,
420,
29958,
29925,
392,
262,
3628,
17142,
29914,
2272,
307,
833,
19668,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
159... |
FortiJson/rpcrequest.py | talbiston/fortijson-rpc | 0 | 72869 | <reponame>talbiston/fortijson-rpc
import json
from collections import OrderedDict
import requests
def sort_request(request):
"""
Sort a JSON-RPC request dict.
This has no effect other than making the request nicer to read.
>>> json.dumps(sort_request(
... {'id': 2, 'params': [2, 3]... | [
1,
529,
276,
1112,
420,
29958,
20411,
29890,
391,
265,
29914,
3921,
823,
1100,
29899,
29878,
6739,
13,
5215,
4390,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
5215,
7274,
13,
13,
13,
13,
13,
1753,
2656,
29918,
3827,
29898,
3827,
1125... |
liqian/crawl_dblp.py | doge-search/webdoge | 0 | 73232 | <gh_stars>0
#!/usr/bin/python
#coding=utf-8
import requests
from lxml import etree
from collections import namedtuple
import sys
#f_handler = open('out.log', 'w')
#sys.stdout = f_handler
DBLP_BASE_URL = 'http://dblp.uni-trier.de/'
DBLP_AUTHOR_SEARCH_URL = DBLP_BASE_URL + 'search/author'
DBLP_PERSON_URL = ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
30004,
13,
29937,
29883,
3689,
29922,
9420,
29899,
29947,
30004,
13,
5215,
7274,
30004,
13,
3166,
301,
3134,
1053,
634,
929,
30004,
13,
3166,... |
flashnrf.py | struempelix/flashnrf | 0 | 187726 | <filename>flashnrf.py
"""
This file contains example code meant to be used in order to test the
pynrfjprog API and Hex. If multiple devices are connected, pop-up will appear.
Sample program: program_hex.py
Requires nrf51-DK or nrf52-DK for visual confirmation (LEDs).
Run from command line... | [
1,
529,
9507,
29958,
28041,
29876,
9600,
29889,
2272,
13,
15945,
19451,
13,
30004,
13,
1678,
910,
934,
3743,
1342,
775,
6839,
304,
367,
1304,
297,
1797,
304,
1243,
278,
30004,
13,
1678,
282,
948,
9600,
29926,
29097,
3450,
322,
379,
73... |
ontquery/utils.py | tmsincomb/ontquery | 1 | 106656 | <gh_stars>1-10
import logging
from functools import wraps
red = '\x1b[31m{}\x1b[0m'
def makeSimpleLogger(name, level=logging.INFO):
logger = logging.getLogger(name)
logger.setLevel(level)
ch = logging.StreamHandler() # FileHander goes to disk
fmt = ('[%(asctime)s] - %(levelname)8s - '
'%(... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12183,
13,
3166,
2090,
312,
8789,
1053,
11463,
567,
13,
13,
1127,
353,
11297,
29916,
29896,
29890,
29961,
29941,
29896,
29885,
29912,
1012,
29916,
29896,
29890,
... |
Python code/isPrime.py | jlwgong/hangman | 0 | 101687 | # This function tells a user whether or not a number is prime
def isPrime(number):
# this will tell us if the number is prime, set to True automatically
# We will set to False if the number is divisible by any number less than it
number_is_prime = True
# loop over all numbers less than the input numb... | [
1,
396,
910,
740,
10603,
263,
1404,
3692,
470,
451,
263,
1353,
338,
6019,
13,
13,
1753,
338,
4040,
603,
29898,
4537,
1125,
13,
13,
1678,
396,
445,
674,
2649,
502,
565,
278,
1353,
338,
6019,
29892,
731,
304,
5852,
6336,
13,
1678,
3... |
ramjet/analysis/viewer/preloader.py | golmschenk/ramjet | 3 | 133160 | """
Code to load view entities in the background so they show up quickly when displayed.
"""
import pandas as pd
import asyncio
from asyncio import Task
from collections import deque
import warnings
from pathlib import Path
from typing import Union, Deque
from ramjet.analysis.viewer.view_entity import ViewEntity
from ... | [
1,
9995,
13,
3399,
304,
2254,
1776,
16212,
297,
278,
3239,
577,
896,
1510,
701,
9098,
746,
8833,
29889,
13,
15945,
29908,
13,
5215,
11701,
408,
10518,
13,
5215,
408,
948,
3934,
13,
3166,
408,
948,
3934,
1053,
9330,
13,
3166,
16250,
... |
qa327_test/backend/test_r1_post.py | winterNebs/HyperTextAssassins | 2 | 152751 | import pytest
from seleniumbase import BaseCase
from qa327.models import db, User
from qa327_test.conftest import base_url
from unittest.mock import patch
from werkzeug.security import generate_password_hash, check_password_hash
test_user = User(
email='<EMAIL>',
name='testuser',
password=generate_password... | [
1,
1053,
11451,
1688,
13,
3166,
18866,
3188,
1053,
7399,
8259,
13,
3166,
3855,
29874,
29941,
29906,
29955,
29889,
9794,
1053,
4833,
29892,
4911,
13,
3166,
3855,
29874,
29941,
29906,
29955,
29918,
1688,
29889,
535,
615,
342,
1053,
2967,
29... |
src/generator/AutoRest.Python.Azure.Tests/AcceptanceTests/xms_request_clientid_tests.py | yugangw-msft/AutoRest | 3 | 88681 | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""),... | [
1,
29871,
30143,
29937,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
7783,
15025,
29889,
2178,
10462,
21676,
29889,
13,
29937,
13,
29937,
450,
341,
1806,
19245,
313,
26349,
29897,
13,
299... |
intern/views/alliance.py | mrcrgl/gge-storage | 0 | 1612443 | <reponame>mrcrgl/gge-storage<filename>intern/views/alliance.py
from __future__ import unicode_literals
from django.views.generic import (ListView, DetailView, View)
from django.shortcuts import render_to_response, RequestContext, Http404, HttpResponseRedirect
from django.core.urlresolvers import reverse
from gge_proxy... | [
1,
529,
276,
1112,
420,
29958,
29885,
2214,
29878,
3820,
29914,
29887,
479,
29899,
12925,
29966,
9507,
29958,
14168,
29914,
7406,
29914,
284,
13036,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
... |
src/dispatch/tag/recommender.py | homebysix/dispatch | 0 | 86441 | """
.. module: dispatch.tag.recommender
:platform: Unix
:copyright: (c) 2019 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
"""
import logging
from typing import List, Any
from collections import defaultdict
import tempfile
import pandas as pd
from pandas.core.frame i... | [
1,
9995,
13,
636,
3883,
29901,
13916,
29889,
4039,
29889,
276,
2055,
1581,
13,
1678,
584,
12120,
29901,
26663,
13,
1678,
584,
8552,
1266,
29901,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
491,
12670,
20157,
29916,
9266,
1696,
1... |
examples/get_data_advanced.py | dark-vex/sysdig-sdk-python | 45 | 84301 | #!/usr/bin/env python
#
# This script shows an advanced Sysdig Monitor data request that leverages
# filtering and segmentation.
#
# The request returns the last 10 minutes of CPU utilization for the 5
# busiest containers inside the given host, with 1 minute data granularity
#
import json
import sys
from sdcclient i... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
910,
2471,
3697,
385,
12862,
317,
952,
7501,
2598,
2105,
848,
2009,
393,
26610,
1179,
13,
29937,
21166,
322,
10768,
362,
29889,
13,
29937,
13,
29937,
450,
2009,
3639,... |
Python/lc_497_random_point_nonoverlapping_rectangles.py | cmattey/leetcode_problems | 6 | 151020 | # Time: init: O(N), pick: O(logN)
# Space: O(N)
class Solution:
import random
def __init__(self, rects: List[List[int]]):
self.rects = rects
rect_areas = []
for rect in rects:
rect_areas.append(self.get_area(rect))
self.sum_areas = sum(rect_areas)
self.cum_... | [
1,
396,
5974,
29901,
2069,
29901,
438,
29898,
29940,
511,
5839,
29901,
438,
29898,
1188,
29940,
29897,
13,
29937,
14121,
29901,
438,
29898,
29940,
29897,
13,
13,
1990,
24380,
29901,
13,
1678,
1053,
4036,
13,
1678,
822,
4770,
2344,
12035,
... |
log/slack_sender.py | SmashKs/BarBarian | 0 | 2888 | <gh_stars>0
from slackclient import SlackClient
from external import SLACK_API_KEY
class SlackBot:
API_CHAT_MSG = 'chat.postMessage'
BOT_NAME = 'News Bot'
DEFAULT_CHANNEL = 'news_notification'
def __new__(cls, *p, **k):
if '_the_instance' not in cls.__dict__:
cls._the_instance = ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
269,
2364,
4645,
1053,
317,
2364,
4032,
13,
13,
3166,
7029,
1053,
27146,
11375,
29918,
8787,
29918,
10818,
13,
13,
13,
1990,
317,
2364,
29933,
327,
29901,
13,
1678,
3450,
29918,
... |
scripts/mlp/wholebody/croccodyl.py | JasonChmn/multicontact-locomotion-planning | 0 | 133067 | <filename>scripts/mlp/wholebody/croccodyl.py
import mlp.config as cfg
def generateWholeBodyMotion(cs,fullBody=None,viewer=None):
raise NotImplemented("TODO") | [
1,
529,
9507,
29958,
16713,
29914,
828,
29886,
29914,
15970,
280,
2587,
29914,
24077,
617,
1486,
29880,
29889,
2272,
13,
5215,
286,
22833,
29889,
2917,
408,
274,
16434,
13,
13,
1753,
5706,
22110,
280,
8434,
29924,
8194,
29898,
2395,
29892... |
impy/tests/test_new_interface.py | kotania/impy | 6 | 70127 | <filename>impy/tests/test_new_interface.py
import sys
import os
import numpy as np
root_dir = os.path.abspath(os.path.dirname(__file__) + "/..")
sys.path.append(root_dir)
sys.path.append(os.path.join(root_dir,'../DPMJET-III-gitlab'))
from impy.definitions import *
from impy.constants import *
from impy.kinematics im... | [
1,
529,
9507,
29958,
326,
2272,
29914,
21150,
29914,
1688,
29918,
1482,
29918,
13248,
29889,
2272,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
13,
4632,
29918,
3972,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29... |
src/modules/print.py | wuttinanhi/dumb-lang | 0 | 95812 | from typing import Dict
from src.token import Token
from src.modules.content import ContentParser
from src.variable_storage import VariableStorage
class PrintModule:
@staticmethod
def execute(token: Token, variable_storage: VariableStorage):
# seperate text by space
content = token.line.script.... | [
1,
515,
19229,
1053,
360,
919,
13,
3166,
4765,
29889,
6979,
1053,
25159,
13,
3166,
4765,
29889,
7576,
29889,
3051,
1053,
10576,
11726,
13,
3166,
4765,
29889,
11918,
29918,
12925,
1053,
28736,
10486,
13,
13,
1990,
13905,
7355,
29901,
13,
... |
10.py | tlgs/aoc-2021 | 1 | 157874 | """Day 10: Syntax Scoring"""
import sys
def syntax_error_score(lines):
pairs = {")": "(", "]": "[", "}": "{", ">": "<"}
points = {"(": 3, "[": 57, "{": 1197, "<": 25137}
total = 0
for line in lines:
stack = []
for c in line:
if c in points:
stack.append(c)
... | [
1,
9995,
12742,
29871,
29896,
29900,
29901,
21306,
2522,
8253,
15945,
29908,
13,
5215,
10876,
13,
13,
13,
1753,
5877,
29918,
2704,
29918,
13628,
29898,
9012,
1125,
13,
1678,
11000,
353,
426,
1159,
1115,
18227,
613,
376,
29962,
1115,
14704... |
donkeycar/parts/angle_adjust.py | hironorinaka99/donkeycar | 0 | 31211 | class angle_adjustclass(): #ステアリングの切れ角を調整する
def __init__(self):
self.angle_adjust = 1.0
return
def angleincrease(self):
self.angle_adjust = round(min(2.0, self.angle_adjust + 0.05), 2)
print("In angle_adjust increase",self.angle_adjust)
def angledecrease(self):
self... | [
1,
770,
10696,
29918,
328,
5143,
1990,
7295,
396,
30255,
30572,
30310,
30303,
30203,
30521,
30199,
31757,
30553,
31432,
30396,
235,
173,
194,
233,
152,
183,
30427,
30332,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889... |
armada_flexbe_states/src/armada_flexbe_states/concatenate_pointcloud_service_state.py | uml-robotics/armada_behaviors | 0 | 136889 | #!/usr/bin/env python
import rospy
from flexbe_core import EventState, Logger
from flexbe_core.proxy import ProxyServiceCaller
from sensor_msgs.msg import PointCloud2
from armada_flexbe_utilities.srv import ConcatenatePointCloud, ConcatenatePointCloudResponse, ConcatenatePointCloudRequest
class concatenatePointClou... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
696,
1028,
29891,
13,
13,
3166,
8525,
915,
29918,
3221,
1053,
6864,
2792,
29892,
28468,
13,
3166,
8525,
915,
29918,
3221,
29889,
14701,
1053,
1019,
3594,
3170,
5594,
261,
13,
316... |
scify/__init__.py | DanielBok/scify | 6 | 54133 | <filename>scify/__init__.py
# -*- coding: utf-8 -*-
"""Top-level package for scify."""
__author__ = """<NAME>"""
__email__ = '<EMAIL>'
__version__ = '0.1.0'
| [
1,
529,
9507,
29958,
1557,
1598,
29914,
1649,
2344,
26914,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
7031,
29899,
5563,
3577,
363,
885,
1598,
1213,
15945,
13,
13,
1649,... |
igem2017/sdin/views/main_views.py | StrickerLee/SYSU-Software-2017 | 40 | 113910 | <reponame>StrickerLee/SYSU-Software-2017
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from sdin.forms import *
from sdin.models import *
from django.contrib import messages
from django.db import IntegrityError
from django.core.exceptions import ObjectDo... | [
1,
529,
276,
1112,
420,
29958,
5015,
6541,
3226,
29872,
29914,
14816,
14605,
29899,
6295,
14093,
29899,
29906,
29900,
29896,
29955,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9... |
data_utils/split_train_val.py | aman0044/pytorch-classifier | 0 | 44524 | import torch
from torchvision import datasets
import shutil
import argparse
import os
import numpy as np
from tqdm import tqdm
########### Help ###########
'''
#size = (h,w)
python split_train_val.py \
--data_dir /Users/aman.gupta/Documents/self/datasets/blank_page_detection/letterbox_training_data/ \
--val... | [
1,
1053,
4842,
305,
13,
3166,
4842,
305,
4924,
1053,
20035,
13,
5215,
528,
4422,
13,
5215,
1852,
5510,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
7346,
2277,
29937,
22305,
835... |
custom_components/yoosee/const.py | shaonianzhentan/ha_yoosee_camera | 0 | 31054 | DOMAIN = "yoosee"
PLATFORMS = ["camera"]
DEFAULT_NAME = "Yoosee摄像头"
VERSION = "1.1"
SERVICE_PTZ = 'ptz' | [
1,
11662,
29032,
353,
376,
9029,
852,
29872,
29908,
13,
7390,
1299,
22051,
4345,
353,
6796,
26065,
3108,
13,
23397,
29918,
5813,
353,
376,
29979,
29877,
852,
29872,
233,
148,
135,
31551,
31584,
29908,
13,
16358,
353,
376,
29896,
29889,
... |
src/apps/devices/cubelib/emulator.py | ajintom/music_sync | 0 | 19048 | #!/bin/env python
#using the wireframe module downloaded from http://www.petercollingridge.co.uk/
import mywireframe as wireframe
import pygame
from pygame import display
from pygame.draw import *
import time
import numpy
key_to_function = {
pygame.K_LEFT: (lambda x: x.translateAll('x', -10)),
pygame.K_RIGHT... | [
1,
18787,
2109,
29914,
6272,
3017,
13,
29937,
4746,
278,
8014,
2557,
3883,
16532,
515,
1732,
597,
1636,
29889,
29886,
1308,
1054,
1847,
8605,
29889,
1111,
29889,
2679,
29914,
13,
5215,
590,
22376,
2557,
408,
8014,
2557,
13,
5215,
22028,
... |
xbbo/search_algorithm/multi_fidelity/BOHB.py | zhanglei1172/XBBO | 0 | 79643 | <reponame>zhanglei1172/XBBO<gh_stars>0
'''
Reference: https://github.com/automl/DEHB
'''
from typing import List
import numpy as np
# from xbbo.configspace.feature_space import Uniform2Gaussian
from xbbo.search_algorithm.multi_fidelity.hyperband import HB
from xbbo.configspace.space import DenseConfiguration, DenseCo... | [
1,
529,
276,
1112,
420,
29958,
17599,
2521,
29875,
29896,
29896,
29955,
29906,
29914,
29990,
29933,
8456,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
12008,
13,
7422,
29901,
2045,
597,
3292,
29889,
510,
29914,
17405,
29880,
29914,
228... |
lib/handlers/base.py | WXSD-Sales/APMBot | 0 | 73177 | import json
import tornado.web
class BaseHandler(tornado.web.RequestHandler):
def get_current_user(self):
cookie = self.get_secure_cookie("sessionId", max_age_days=1, min_version=1)
if cookie != None:
cookie = cookie.decode('utf-8')
cookie = json.loads(cookie)
return... | [
1,
1053,
4390,
13,
5215,
10146,
912,
29889,
2676,
13,
13,
1990,
7399,
4598,
29898,
29873,
1398,
912,
29889,
2676,
29889,
3089,
4598,
1125,
13,
1678,
822,
679,
29918,
3784,
29918,
1792,
29898,
1311,
1125,
13,
4706,
15327,
353,
1583,
2988... |
fhir.py | bionicles/playing_with_fhir | 0 | 179385 | "quantify shape and depth diversity of FHIR data"
# conda create -n py39 python=3.9
# conda activate py39
# pip install rich, numpy
# python fhir.py
from dataclasses import dataclass
from itertools import chain
from typing import Dict, List, Optional, Tuple
import json
import os
from plotly.subplots import make_subpl... | [
1,
376,
12150,
1598,
8267,
322,
10809,
6894,
537,
310,
383,
29950,
8193,
848,
29908,
13,
29937,
378,
1388,
1653,
448,
29876,
11451,
29941,
29929,
3017,
29922,
29941,
29889,
29929,
13,
29937,
378,
1388,
5039,
403,
11451,
29941,
29929,
13,
... |
tests/unit/utils/test_views.py | rolandgeider/OpenSlides | 0 | 37959 | from unittest import TestCase
from unittest.mock import MagicMock, patch
from openslides.utils import views
@patch('builtins.super')
class SingleObjectMixinTest(TestCase):
def test_get_object_cache(self, mock_super):
"""
Test that the method get_object caches his result.
Tests that get_o... | [
1,
515,
443,
27958,
1053,
4321,
8259,
13,
3166,
443,
27958,
29889,
17640,
1053,
26494,
18680,
29892,
13261,
13,
13,
3166,
13246,
29880,
2247,
29889,
13239,
1053,
8386,
13,
13,
13,
29992,
5041,
877,
16145,
1144,
29889,
9136,
1495,
13,
19... |
parsedmarc/template.py | dwt/dmarc-visualizer | 5 | 144748 | <reponame>dwt/dmarc-visualizer<gh_stars>1-10
#!/usr/bin/env python
import sys
import re
import os
possible_keys = os.environ.keys()
def substituter(match):
string_to_replace = match.group()
environment_variable_name = string_to_replace[1:]
if environment_variable_name in os.environ:
return os.en... | [
1,
529,
276,
1112,
420,
29958,
29881,
14554,
29914,
29881,
3034,
29883,
29899,
20119,
3950,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
10876,
13,
... |
Python/danger_mouse_game/character_profile.py | jastr945/PDXclass | 0 | 154482 | <filename>Python/danger_mouse_game/character_profile.py
"""
This portion of code begins the game play.
The user gets an introduction to the game
and chooses a major player character.
The code instantiates a Mouse object.
This instantiates an Inventory object
for the Mouse. And the code then adds
two Spell objects to ... | [
1,
529,
9507,
29958,
11980,
29914,
29881,
4600,
29918,
15769,
29918,
11802,
29914,
18609,
29918,
10185,
29889,
2272,
13,
15945,
29908,
13,
4013,
11910,
310,
775,
16410,
278,
3748,
1708,
29889,
13,
1576,
1404,
4947,
385,
18707,
304,
278,
3... |
src/sims4communitylib/enums/enumtypes/common_int.py | velocist/TS4CheatsInfo | 0 | 56186 | <reponame>velocist/TS4CheatsInfo<gh_stars>0
"""
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from sims4.util... | [
1,
529,
276,
1112,
420,
29958,
955,
542,
391,
29914,
9375,
29946,
26856,
1446,
3401,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
1576,
3439,
29879,
29871,
29946,
19184,
9538,
338,
7794,
21144,
1090,
278,
26635,
346... |
bmcs_beam/mxn/scripts/__init__.py | bmcs-group/bmcs_beam | 1 | 26043 | '''
Created on Dec 18, 2016
@author: rch
'''
| [
1,
14550,
13,
20399,
373,
3826,
29871,
29896,
29947,
29892,
29871,
29906,
29900,
29896,
29953,
13,
13,
29992,
8921,
29901,
364,
305,
13,
12008,
13,
2
] |
scripts/snippets/eval-clevr-instance-retrieval/eval-referential.py | Glaciohound/VCML | 52 | 33995 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : eval-referential.py
# Author : <NAME>, <NAME>
# Email : <EMAIL>, <EMAIL>
# Date : 30.07.2019
# Last Modified Date: 16.10.2019
# Last Modified By : Chi Han, Jiayuan Mao
#
# This file is part of the VCML codebase
# ... | [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3497,
795,
584,
19745,
29899,
20275,
2556,
29889,
2272,
13,
29937,
13361,
9651,
... |
eth/tools/factories/transaction.py | kclowes/py-evm | 0 | 164002 | <gh_stars>0
from eth_utils.toolz import curry
from eth.vm.spoof import (
SpoofTransaction,
)
@curry
def new_transaction(
vm,
from_,
to,
amount=0,
private_key=None,
gas_price=10,
gas=100000,
data=b'',
nonce=None,
chain_id=None):
"... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
11314,
29918,
13239,
29889,
10154,
29920,
1053,
3151,
719,
13,
13,
3166,
11314,
29889,
6925,
29889,
1028,
29877,
974,
1053,
313,
13,
1678,
24674,
974,
12460,
29892,
13,
29897,
13,
... |
main.py | jfmaes/transformationsuite | 0 | 113009 | <reponame>jfmaes/transformationsuite
import argparse
from transformer import Transformer
from format import Formatter
from Crypto.Hash import MD5
parser = argparse.ArgumentParser(description="Transformer next generation by jfmaes")
#DONT FORGET TO PUT REQUIRED TRUE
parser.add_argument("-f", "--file", help="the ... | [
1,
529,
276,
1112,
420,
29958,
29926,
29888,
655,
267,
29914,
9067,
800,
29884,
568,
13,
5215,
1852,
5510,
30004,
13,
3166,
4327,
261,
1053,
4103,
24784,
30004,
13,
3166,
3402,
1053,
3812,
2620,
30004,
13,
3166,
315,
17929,
29889,
10438... |
departure/provider/tfl_tube/commons.py | Woll78/departure-python | 4 | 60394 | import os
class TflTubeException(Exception):
pass
def check_env_vars():
if "TFL_APP_KEY" not in os.environ:
raise TflTubeException("missing env var TFL_APP_KEY")
| [
1,
1053,
2897,
13,
13,
13,
1990,
323,
1579,
13425,
2451,
29898,
2451,
1125,
13,
1678,
1209,
13,
13,
13,
1753,
1423,
29918,
6272,
29918,
16908,
7295,
13,
1678,
565,
376,
8969,
29931,
29918,
20576,
29918,
10818,
29908,
451,
297,
2897,
2... |
dss/stepfunctions/__init__.py | ucsc-cgp/cgp-data-store | 0 | 134594 | import json
import os
import typing
import logging
from dss.util.aws import ARN
from dss.util.aws.clients import stepfunctions # type: ignore
from dss.util.aws import send_sns_msg
"""
The keys used to transfer step function invocation data over SNS to the dss-sfn-* Lambda. dss-sfn starts step function
execution and ... | [
1,
1053,
4390,
13,
5215,
2897,
13,
5215,
19229,
13,
5215,
12183,
13,
13,
3166,
270,
893,
29889,
4422,
29889,
10467,
1053,
9033,
29940,
13,
3166,
270,
893,
29889,
4422,
29889,
10467,
29889,
11303,
1237,
1053,
4331,
12171,
29871,
396,
113... |
acictf/Move ZIG/code.py | benhunter/ctf | 0 | 36164 | #!/usr/bin/python3
import argparse
import socket
import base64
import binascii
# 'argparse' is a very useful library for building python tools that are easy
# to use from the command line. It greatly simplifies the input validation
# and "usage" prompts which really help when trying to debug your own code.
# parser =... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
13,
5215,
1852,
5510,
13,
5215,
9909,
13,
5215,
2967,
29953,
29946,
13,
5215,
9016,
294,
18869,
13,
13,
29937,
525,
1191,
5510,
29915,
338,
263,
1407,
5407,
3489,
363,
5214,
3017,
8492,
... |
confply/cpp_compiler/options/tool.py | graehu/confply | 0 | 111502 | echo = "echo"
gcc = "gcc"
gpp = "g++"
emcc = "emcc"
empp = "em++"
cl = "cl"
clang = "clang"
clangpp = "clang++"
| [
1,
2916,
353,
376,
8057,
29908,
13,
19644,
353,
376,
19644,
29908,
13,
29887,
407,
353,
376,
29887,
1817,
29908,
13,
331,
617,
353,
376,
331,
617,
29908,
13,
331,
407,
353,
376,
331,
1817,
29908,
13,
695,
353,
376,
695,
29908,
13,
... |
plugins/python/test/testCustomEntity.py | shotgunsoftware/cplusplus-api | 3 | 18104 | <gh_stars>1-10
#!/usr/bin/env python
import sys
from shotgun import *
try:
if len(sys.argv) > 1:
sg = Shotgun(sys.argv[1])
else:
sg = Shotgun()
#################################################################
# Find CustomEntity01 entities
########################################... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
10876,
13,
3166,
10322,
28798,
1053,
334,
13,
13,
2202,
29901,
13,
1678,
565,
7431,
29898,
9675,
2... |
tdd_wallet/views/get_wallet_balance/request_response_mocks.py | kapeed2091/tdd_practice | 0 | 164847 | <filename>tdd_wallet/views/get_wallet_balance/request_response_mocks.py
REQUEST_BODY_JSON = """
{
"customer_ids": [
"string"
]
}
"""
RESPONSE_200_JSON = """
{
"customers_balance": [
{
"balance": 1.1,
"customer_id": "string"
}
]
}
"""
| [
1,
529,
9507,
29958,
29873,
1289,
29918,
14625,
1026,
29914,
7406,
29914,
657,
29918,
14625,
1026,
29918,
5521,
749,
29914,
3827,
29918,
5327,
29918,
17640,
29879,
29889,
2272,
13,
13,
13,
16244,
29918,
8456,
29928,
29979,
29918,
7249,
353,... |
pgmpy/tests/test_models/test_SEM.py | predictive-analytics-lab/pgmpy | 0 | 10592 | <filename>pgmpy/tests/test_models/test_SEM.py
import os
import unittest
import numpy as np
import networkx as nx
import numpy.testing as npt
from pgmpy.models import SEM, SEMGraph, SEMAlg
class TestSEM(unittest.TestCase):
def test_from_graph(self):
self.demo = SEM.from_graph(
ebunch=[
... | [
1,
529,
9507,
29958,
4061,
1526,
29891,
29914,
21150,
29914,
1688,
29918,
9794,
29914,
1688,
29918,
1660,
29924,
29889,
2272,
13,
5215,
2897,
13,
5215,
443,
27958,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
3564,
29916,
408,
302,
29916,
... |
contessa/alembic/packages_migrations.py | mindartur/contessa | 15 | 1607600 | migration_map = {
"0.0.0": "54f8985b0ee5",
"0.2.4": "480e6618700d",
"0.2.5": "a179e5ca0ad2",
}
| [
1,
20332,
29918,
1958,
353,
426,
13,
1678,
376,
29900,
29889,
29900,
29889,
29900,
1115,
376,
29945,
29946,
29888,
29947,
29929,
29947,
29945,
29890,
29900,
3905,
29945,
613,
13,
1678,
376,
29900,
29889,
29906,
29889,
29946,
1115,
376,
2994... |
brambling/forms/invites.py | Shivanjain023/django-brambling | 8 | 98277 | <reponame>Shivanjain023/django-brambling
from django.forms import BaseFormSet
import floppyforms as forms
from brambling.utils.invites import (
get_invite_class,
OrganizationOwnerInvite,
OrganizationEditInvite,
OrganizationViewInvite,
EventEditInvite,
EventViewInvite,
)
class BaseInviteFormS... | [
1,
529,
276,
1112,
420,
29958,
2713,
20595,
29926,
475,
29900,
29906,
29941,
29914,
14095,
29899,
1182,
1117,
1847,
13,
3166,
9557,
29889,
9514,
1053,
7399,
2500,
2697,
13,
13,
5215,
5685,
23717,
9514,
408,
7190,
13,
13,
3166,
1506,
111... |
newsapp/migrations/0003_news.py | adi112100/newsapp | 0 | 8815 | # Generated by Django 3.0.8 on 2020-07-11 08:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsapp', '0002_auto_20200711_1124'),
]
operations = [
migrations.CreateModel(
name='News',
fields=[
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29900,
29889,
29947,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29955,
29899,
29896,
29896,
29871,
29900,
29947,
29901,
29896,
29900,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
bob/blitz/examples/bob.example.project/bob/example/project/test.py | bioidiap/bob.blitz | 0 | 106536 | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
"""Test Units
"""
def test_version():
from .script import version
assert version.main() == 0
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
325,
326,
29901,
731,
934,
22331,
29922,
9420,
29899,
29947,
584,
13,
13,
15945,
29908,
3057,
28386,
13,
15945,
29908,
13,
13,
1753,
1243,
29918,
3259,
7295,
13,
29871,
515,
869... |
src/TestBenchCliReporter/actions.py | StaudtEngineering/testbench-cli-reporter | 0 | 138081 | # Copyright 2021- imbus AG
#
# 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 writi... | [
1,
396,
29871,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
29899,
527,
8262,
16369,
13,
29937,
13,
29937,
29871,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13... |
python/ex23.py | kazushiyuuki/Lab-ICC | 0 | 191178 | <reponame>kazushiyuuki/Lab-ICC<gh_stars>0
n = int(input())
cont = 0
while cont < n:
num = int(input())
if cont == 0:
maior = num
elif num > maior:
maior = num
cont += 1
print(maior)
| [
1,
529,
276,
1112,
420,
29958,
8637,
1878,
19881,
29884,
19267,
29914,
28632,
29899,
2965,
29907,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29876,
353,
938,
29898,
2080,
3101,
13,
1285,
353,
29871,
29900,
13,
8000,
640,
529,
302,
... |
github/recorders/github/github_user_info_recorder.py | zvtvz/play-github | 2 | 18428 | # -*- coding: utf-8 -*-
import argparse
from github.accounts.github_account import GithubAccount
from github.domain.github import GithubUser
from github.recorders.github.common import get_result
from zvdata.api import get_entities
from zvdata.domain import get_db_session
from zvdata.recorder import TimeSeriesDataRecor... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
1852,
5510,
13,
13,
3166,
18546,
29889,
10149,
29879,
29889,
3292,
29918,
10149,
1053,
402,
2985,
10601,
13,
3166,
18546,
29889,
7247,
29889,
3292,
... |
new_test.py | kingsam91/Habari-zote | 0 | 147890 | <gh_stars>0
from news import News # Importing the contact class
class TestNews(unittest.TestCase):
'''
Test class that defines test cases for the news class behaviours.
Args:
unittest.TestCase: TestCase class that helps in creating test cases
''' | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
9763,
1053,
10130,
396,
16032,
292,
278,
6958,
770,
13,
13,
1990,
4321,
29328,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
14550,
13,
1678,
4321,
770,
393,
17645,
... |
MITx-6.00.2x/ProblemSet5/ps5.py | maistrovas/My-Courses-Solutions | 0 | 138643 | # 6.00.2x Problem Set 5
# Graph optimization
# Finding shortest paths through MIT buildings
#
import string
# This imports everything from `graph.py` as if it was defined in this file!
from graph import *
#
# Problem 2: Building up the Campus Map
#
# Before you write any code, write a couple of sentences here
# de... | [
1,
29871,
30143,
29937,
29871,
29953,
29889,
29900,
29900,
29889,
29906,
29916,
11583,
3789,
29871,
29945,
13,
29937,
12367,
13883,
13,
29937,
383,
4015,
3273,
342,
10898,
1549,
341,
1806,
13814,
13,
29937,
13,
13,
5215,
1347,
13,
29937,
... |
src/radical/pilot/agent/launch_method/srun.py | radical-cybertools/radical.pilot | 47 | 124033 | <filename>src/radical/pilot/agent/launch_method/srun.py
__copyright__ = "Copyright 2016, http://radical.rutgers.edu"
__license__ = "MIT"
import math
import radical.utils as ru
from .base import LaunchMethod
# ------------------------------------------------------------------------------
#
class Srun(LaunchMetho... | [
1,
529,
9507,
29958,
4351,
29914,
3665,
936,
29914,
29886,
309,
327,
29914,
14748,
29914,
15343,
29918,
5696,
29914,
29879,
3389,
29889,
2272,
13,
13,
1649,
8552,
1266,
1649,
353,
376,
11882,
1266,
29871,
29906,
29900,
29896,
29953,
29892,
... |
tests/uservirtualrackattack.py | shlomimatichin/rackattack-virtual | 0 | 102962 | import subprocess
import os
import shutil
import time
from rackattack import clientfactory
from tests import testlib
import rackattack
class UserVirtualRackAttack:
MAXIMUM_VMS = 4
def __init__(self):
assert '/usr' not in rackattack.__file__
self._requestPort = 3443
self._subscribePort... | [
1,
1053,
1014,
5014,
13,
5215,
2897,
13,
5215,
528,
4422,
13,
5215,
931,
13,
3166,
1153,
384,
1131,
547,
1053,
3132,
14399,
13,
3166,
6987,
1053,
1243,
1982,
13,
5215,
1153,
384,
1131,
547,
13,
13,
13,
1990,
4911,
21287,
29934,
547,... |
serve/api/predict.py | HalleyYoung/musicautobot | 402 | 13952 | import sys
from . import app
sys.path.append(str(app.config['LIB_PATH']))
from musicautobot.music_transformer import *
from musicautobot.config import *
from flask import Response, send_from_directory, send_file, request, jsonify
from .save import to_s3
import torch
import traceback
torch.set_num_threads(4)
data = ... | [
1,
1053,
10876,
13,
3166,
869,
1053,
623,
13,
9675,
29889,
2084,
29889,
4397,
29898,
710,
29898,
932,
29889,
2917,
1839,
5265,
29933,
29918,
10145,
25901,
13,
13,
3166,
27383,
329,
711,
327,
29889,
23596,
29918,
9067,
261,
1053,
334,
13... |
invo/LinearModels/AbsoluteDualityGap.py | rafidrm/invo | 7 | 132305 | <reponame>rafidrm/invo
""" Absolute Duality Gap Inverse Optimization
The absolute duality gap method for inverse optimization minimizes the aggregate
duality gap between the primal and dual objective values for each observed
decision. The problem is formulated as follows
.. math::
\min_{\mathbf{c, y},\epsilon_1,... | [
1,
529,
276,
1112,
420,
29958,
1929,
333,
1758,
29914,
262,
1365,
13,
15945,
29908,
1976,
14977,
360,
950,
537,
402,
481,
512,
3901,
20693,
326,
2133,
13,
13,
1576,
8380,
868,
2877,
17261,
1158,
363,
16402,
13883,
6260,
7093,
278,
204... |
helpers.py | old-school-vienna/predict-future-sales-py | 0 | 164133 | <reponame>old-school-vienna/predict-future-sales-py<gh_stars>0
import os
import typing
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
from typing import List, Dict
import numpy as np
import pandas as pd
import tensorflow.python.keras as keras
import tensorflow.python.keras.lay... | [
1,
529,
276,
1112,
420,
29958,
1025,
29899,
27041,
29899,
29894,
819,
1056,
29914,
27711,
29899,
29888,
9130,
29899,
29879,
2122,
29899,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
5215,
19229,
13,
3166,
848,
1... |
setup.py | zhanglabtools/CIRCLET | 1 | 103936 | # -*- coding: utf-8 -*-
"""
@author: <NAME>
"""
import os
import sys
import shutil
from subprocess import call
from warnings import warn
from setuptools import setup
setup(name='CIRCLET',
version='1.0',
package_dir={'': 'src'},
packages=['CIRCLET'],
package_data={
# And include any *.msg file... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
15945,
19451,
13,
29992,
8921,
29901,
529,
5813,
3238,
13,
15945,
19451,
13,
30004,
13,
5215,
2897,
30004,
13,
5215,
10876,
30004,
13,
5215,
528,
... |
Robofont-scripts/select/unsel Alternates.py | casasin/RobofontTools | 5 | 75654 | # unselectGlyphsWithExtension.py
f = CurrentFont()
for gname in f.selection:
if '.' in gname:
f[gname].selected = 0
| [
1,
396,
443,
2622,
29954,
27026,
29879,
3047,
17657,
29889,
2272,
13,
13,
29888,
353,
9626,
9824,
580,
13,
13,
1454,
330,
978,
297,
285,
29889,
21731,
29901,
13,
1678,
565,
525,
6169,
297,
330,
978,
29901,
13,
4706,
285,
29961,
29887,... |
get_data/get_tencent_data.py | blueberry686868/crawler_code | 0 | 168177 | import requests
import json
import time
# 获取腾讯疫情数据
def get_tencent_data():
"""
:return: 返回历史数据和当日详细数据
"""
url = 'https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5'
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.414... | [
1,
1053,
7274,
13,
5215,
4390,
13,
5215,
931,
13,
13,
13,
29937,
29871,
31024,
30683,
235,
136,
193,
235,
177,
178,
234,
153,
174,
30993,
30354,
30763,
13,
1753,
679,
29918,
841,
1760,
29918,
1272,
7295,
13,
1678,
9995,
13,
13,
1678... |
slacker/workers/django.py | kmike/tornado-slacker | 8 | 108353 | <filename>slacker/workers/django.py
from __future__ import absolute_import
from django.core.urlresolvers import reverse
from slacker.django_backend.conf import SLACKER_SERVER
from .http import HttpWorker
class DjangoWorker(HttpWorker):
""" HttpWorker with django's defaults """
def __init__(self, server=None... | [
1,
529,
9507,
29958,
29879,
2364,
261,
29914,
1287,
414,
29914,
14095,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
13,
3166,
9557,
29889,
3221,
29889,
2271,
9778,
874,
1053,
11837,
13,
3166,
269,
2364,
2... |
modules/GEM_500_COM3.py | ZeppW/ODMRGUI | 0 | 34780 | import pyvisa
import time
import numpy as np
from struct import unpack
import matplotlib.pyplot as plt
rm = pyvisa.ResourceManager()
rm.list_resources()
GEM = rm.open_resource('ASRL3::INSTR')
def Turn_on():
GEM.write('ON')
GEM.write('POWER=001')
print('Laser has initialized!!!')
def SetPower(pw_mw):
... | [
1,
1053,
11451,
1730,
29874,
13,
5215,
931,
13,
5215,
12655,
408,
7442,
13,
3166,
2281,
1053,
443,
4058,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
1758,
353,
11451,
1730,
29874,
29889,
6848,
3260,
580,
13,
1758,
29889,
1... |
dronecan/driver/timestamp_estimator.py | bugobliterator/pydronecan | 0 | 1608435 | #
# Copyright (C) 2014-2016 UAVCAN Development Team <dronecan.org>
#
# This software is distributed under the terms of the MIT License.
#
# Author: <NAME> <<EMAIL>>
# <NAME> <<EMAIL>>
#
from __future__ import division, absolute_import, print_function, unicode_literals
import decimal
class SourceTimeResolve... | [
1,
396,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29946,
29899,
29906,
29900,
29896,
29953,
29871,
501,
7520,
29907,
2190,
14650,
8583,
29871,
529,
7707,
650,
3068,
29889,
990,
29958,
13,
29937,
13,
29937,
910,
... |
pretalx_vimeo/recording.py | pretalx/pretalx-vimeo | 0 | 133579 | from pretalx.agenda.recording import BaseRecordingProvider
class VimeoProvider(BaseRecordingProvider):
def get_recording(self, submission):
vimeo = getattr(submission, "vimeo_link", None)
if vimeo:
return {"iframe": vimeo.iframe, "csp_header": "https://player.vimeo.com"}
| [
1,
515,
14794,
284,
29916,
29889,
351,
8395,
29889,
3757,
3278,
1053,
7399,
4789,
3278,
6980,
13,
13,
13,
1990,
478,
603,
29877,
6980,
29898,
5160,
4789,
3278,
6980,
1125,
13,
1678,
822,
679,
29918,
3757,
3278,
29898,
1311,
29892,
29240... |
hrnet/src/train.py | sentinel-hub/multi-temporal-super-resolution | 34 | 121877 | """ Python script to train HRNet + shiftNet for multi frame super resolution (MFSR)
Credits:
This code is adapted from ElementAI's HighRes-Net: https://github.com/ElementAI/HighRes-net
"""
import os
import gc
import json
import argparse
import datetime
from functools import partial
from collections import defaultdic... | [
1,
9995,
5132,
2471,
304,
7945,
379,
29934,
6779,
718,
9500,
6779,
363,
2473,
3515,
2428,
10104,
313,
29924,
9998,
29934,
29897,
29871,
13,
13,
15507,
1169,
29901,
13,
4013,
775,
338,
23430,
515,
10619,
23869,
29915,
29879,
5057,
1666,
... |
pedal/tifa/feedbacks.py | acbart/python-analysis | 14 | 73738 | """
All of the feedback responses generated by TIFA.
"""
from pedal.utilities.operators import OPERATION_DESCRIPTION
from pedal.core.report import MAIN_REPORT
from pedal.core.feedback import FeedbackResponse
class TifaFeedback(FeedbackResponse):
""" Base class for all TIFA feedback """
muted = False
categ... | [
1,
9995,
13,
3596,
310,
278,
16705,
20890,
5759,
491,
323,
29902,
4519,
29889,
13,
15945,
29908,
13,
3166,
8939,
284,
29889,
4422,
1907,
29889,
3372,
4097,
1053,
6418,
1001,
8098,
29918,
2287,
7187,
24290,
2725,
13,
3166,
8939,
284,
298... |
baseDeConversao.py | wcalazans81/Mundo_02_Python | 0 | 115280 | print('\033[34m^=\033[m' * 27)
print('Conversor de decimal para binário, octol e hexadecimal')
print('\033[34m=^\033[m' * 27)
print("""Opção [1] Binário
Opção [2] Octal
Opção [3] Hexadecimal""")
print('\033[34m^=\033[m' * 27)
num = int(input('Digite o valor que deseja converter: '))
op = int(input('Digite a opção de co... | [
1,
1596,
28909,
29900,
29941,
29941,
29961,
29941,
29946,
29885,
29985,
2013,
29900,
29941,
29941,
29961,
29885,
29915,
334,
29871,
29906,
29955,
29897,
13,
2158,
877,
1168,
874,
272,
316,
13677,
1702,
9016,
12288,
29892,
4725,
324,
321,
15... |
clinica/pipelines/pet_linear/pet_linear_utils.py | Raelag0112/clinica | 1 | 148024 | # coding: utf8
# Functions used by nipype interface.
# Initiate the pipeline
def init_input_node(pet):
from clinica.utils.filemanip import get_subject_id
from clinica.utils.ux import print_begin_image
# Extract image ID
image_id = get_subject_id(pet)
print_begin_image(image_id)
return pet
... | [
1,
396,
14137,
29901,
23616,
29947,
13,
13,
13,
29937,
6680,
29879,
1304,
491,
302,
666,
668,
5067,
29889,
13,
13,
29937,
512,
4812,
403,
278,
16439,
13,
1753,
2069,
29918,
2080,
29918,
3177,
29898,
10963,
1125,
13,
1678,
515,
24899,
... |
KNN/iris_knn.py | artalukd/Data_Mining_Lab | 2 | 199952 | <filename>KNN/iris_knn.py
# Example of kNN implemented from Scratch in Python
import numpy as np
from sklearn import datasets
'''
Before we actually start with writing a nearest neighbor classifier, we need to think about the data, i.e. the testset.
We will use the "iris" dataset provided by the datasets of the sklea... | [
1,
529,
9507,
29958,
29968,
10262,
29914,
381,
275,
29918,
3959,
29876,
29889,
2272,
13,
29937,
8741,
310,
413,
10262,
8762,
515,
2522,
29878,
905,
297,
5132,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
2071,
19668,
1053,
20035,
13,
12008... |
python/bigadd.py | seckcoder/lang-learn | 1 | 146483 | import itertools
def bigadd(a, b):
z = [x+y for x,y in itertools.izip_longest(reversed(a),reversed(b),fillvalue=0)]
res = [x+y for x,y in itertools.izip_longest([i%10 for i in z],[0] + [i/10 for i in z],fillvalue=0)]
[x for x in itertools.dropwhile(lambda x: x == 0, reversed(res))]
print bigadd([1,2,3], [4... | [
1,
1053,
4256,
8504,
13,
1753,
4802,
1202,
29898,
29874,
29892,
289,
1125,
13,
1678,
503,
353,
518,
29916,
29974,
29891,
363,
921,
29892,
29891,
297,
4256,
8504,
29889,
466,
666,
29918,
5426,
342,
29898,
276,
874,
287,
29898,
29874,
511... |
accounts/urls.py | mishrakeshav/Django-Real-Estate-Website | 0 | 22898 | <reponame>mishrakeshav/Django-Real-Estate-Website
from django.urls import path
from . import views
urlpatterns = [
path('login', views.login, name = 'login'),
path('register', views.register, name = 'register'),
path('logout', views.logout, name = 'logout'),
path('dashboard', views.dashboard, name = 'd... | [
1,
529,
276,
1112,
420,
29958,
29885,
728,
4442,
267,
8708,
29914,
29928,
5364,
29899,
21713,
29899,
29923,
3859,
29899,
3609,
2746,
13,
3166,
9557,
29889,
26045,
1053,
2224,
13,
3166,
869,
1053,
8386,
13,
13,
2271,
11037,
29879,
353,
5... |
models/cnn_stft.py | gumpy-hybridBCI/GUMPY- | 27 | 21827 | from .model import KerasModel
import keras
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from keras.layers import BatchNormalization, Dropout, Conv2D, MaxPooling2D
import kapre
from kapre.utils import Normalization2D
from kapre.time_frequency import Spectrogram
class CNN_STF... | [
1,
515,
869,
4299,
1053,
12693,
294,
3195,
13,
5215,
13023,
294,
13,
3166,
13023,
294,
29889,
9794,
1053,
922,
339,
2556,
13,
3166,
13023,
294,
29889,
29277,
1053,
360,
1947,
29892,
21775,
362,
29892,
2379,
8606,
13,
3166,
13023,
294,
... |
xsInterface/containers/datasettings.py | CORE-GATECH-GROUP/xs-interface | 0 | 165316 | <filename>xsInterface/containers/datasettings.py
# -*- coding: utf-8 -*-
"""datasettings.py
The user needs to define the required data to be stored on the containers.
This container stores all the attributes and settings for the required data.
Created on Sat Mar 19 18:30:00 2022 @author: <NAME> and <NAME>
Last updat... | [
1,
529,
9507,
29958,
10351,
10448,
29914,
1285,
475,
414,
29914,
14538,
7409,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
14538,
7409,
29889,
2272,
13,
13,
1576,
1404,
... |
src/CrossQuantilogram/__init__.py | wangys96/CrossQuantilogram | 12 | 197485 | from .stationarybootstrap import Bootstrap
from .crossquantilogram import CrossQuantilogram
from .qtests import BoxPierceQ,LjungBoxQ
from .utils import DescriptiveStatistics
from .api import CQBS,CQBS_alphas,CQBS_years
from .plot import bar_example,heatmap_example,rolling_example
__doc__ = """The `Cross-Quantilogram`(... | [
1,
515,
869,
19569,
653,
8704,
1053,
25746,
13,
3166,
869,
19128,
12150,
309,
13342,
1053,
11189,
22930,
309,
13342,
13,
3166,
869,
29939,
21150,
1053,
11773,
29925,
631,
346,
29984,
29892,
29931,
29926,
686,
3313,
29984,
13,
3166,
869,
... |
waitlist_parser/waitlist_parser.py | Itsindigo/waitlist-parser | 0 | 122255 | <reponame>Itsindigo/waitlist-parser
import os
import sys
from random import choice
from string import ascii_lowercase
from csv import DictReader, DictWriter
if __name__ == "__main__":
if len(sys.argv) > 1:
my_file = sys.argv[-1]
else:
print("File path not provided")
sys.exit(1)
_, ... | [
1,
529,
276,
1112,
420,
29958,
29902,
1372,
513,
5973,
29914,
10685,
1761,
29899,
16680,
13,
5215,
2897,
13,
5215,
10876,
13,
3166,
4036,
1053,
7348,
13,
3166,
1347,
1053,
408,
18869,
29918,
13609,
4878,
13,
3166,
11799,
1053,
360,
919,... |
content/migrations/0001_initial.py | Daniel-and-Zach/character_generator | 0 | 179648 | <gh_stars>0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Race',
fields=[
('id', models.AutoF... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
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,
9557,
29889,
2585,
1053,
... |
lab4_CNN_intro/create_dataset.py | j-adamczyk/Pattern_recognition | 1 | 54441 | from concurrent.futures.thread import ThreadPoolExecutor
from io import BytesIO
import os
import cv2
import numpy as np
import requests
def get_img(url):
try:
headers = {"User-Agent": "Mozilla/5.0 (Macintosh; "
"Intel Mac OS X 10_11_6) "
"... | [
1,
515,
21984,
29889,
29888,
329,
1973,
29889,
7097,
1053,
10480,
11426,
13366,
13,
3166,
12013,
1053,
2648,
2167,
5971,
13,
5215,
2897,
13,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
5215,
7274,
13,
13,
13,
1753,
679,
29... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.