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 |
|---|---|---|---|---|---|
checkov/gitlab/runner.py | pmalkki/checkov | 1 | 158875 | from checkov.common.output.report import CheckType
from checkov.gitlab.dal import Gitlab
from checkov.json_doc.runner import Runner as JsonRunner
from checkov.runner_filter import RunnerFilter
class Runner(JsonRunner):
check_type = CheckType.GITLAB_CONFIGURATION
def __init__(self):
self.gitlab = Gitl... | [
1,
515,
1423,
586,
29889,
9435,
29889,
4905,
29889,
12276,
1053,
5399,
1542,
13,
3166,
1423,
586,
29889,
5559,
8205,
29889,
12293,
1053,
11786,
8205,
13,
3166,
1423,
586,
29889,
3126,
29918,
1514,
29889,
27492,
1053,
7525,
1089,
408,
1435... |
qymel/core/__init__.py | hal1932/QyMEL | 6 | 16039 | <reponame>hal1932/QyMEL
# coding: utf-8
from .force_reload import *
from .scopes import *
| [
1,
529,
276,
1112,
420,
29958,
4077,
29896,
29929,
29941,
29906,
29914,
29984,
29891,
2303,
29931,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
3166,
869,
10118,
29918,
28120,
1053,
334,
13,
3166,
869,
21785,
267,
1053,
334,
13,
2
] |
app.py | ballmaK/StockPool_V2 | 0 | 1614390 | <filename>app.py
# -*- coding: utf-8 -*-
#!/usr/bin/python
import re
import os
import sys
import time
import random
import httplib
import json
import datetime
import traceback
import threadpool
import Queue
from math import ceil
from optparse import OptionParser,OptionGroup
DATADIR="data/historys"
DATEHIS="data/date-... | [
1,
529,
9507,
29958,
932,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
5215,
337,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
931,
... |
tests/mod_todo_tests.py | rockyhandsm2k/website | 0 | 79188 | from tests.app_tests import BaseTestCase
from app.mod_todo.models import *
from flask import url_for
import datetime
TODO = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ille enim occurrentia nescio quae comminiscebatur; Sin tantum modo ad indicia veteris memoriae cognoscenda, curiosorum. Duo Reges: constr... | [
1,
515,
6987,
29889,
932,
29918,
21150,
1053,
7399,
3057,
8259,
13,
3166,
623,
29889,
1545,
29918,
29873,
8144,
29889,
9794,
1053,
334,
13,
3166,
29784,
1053,
3142,
29918,
1454,
13,
5215,
12865,
13,
13,
4986,
3970,
353,
525,
29931,
3668... |
research/width_control.py | HewJhong/1st_Day_Hack | 1 | 106987 | import streamlit as st
def select_block_container_style():
"""Add selection section for setting setting the max-width and padding
of the main block container"""
st.sidebar.header("Block Container Style")
max_width_100_percent = st.sidebar.checkbox("Max-width: 100%?", False)
if not max_width_100_per... | [
1,
1053,
4840,
19411,
408,
380,
13,
13,
1753,
1831,
29918,
1271,
29918,
7611,
29918,
3293,
7295,
13,
1678,
9995,
2528,
9262,
4004,
363,
4444,
4444,
278,
4236,
29899,
2103,
322,
7164,
13,
1678,
310,
278,
1667,
2908,
5639,
15945,
29908,
... |
Part5/varargs3.py | BaiMoHan/LearningPython_ING_202002 | 0 | 111934 | <reponame>BaiMoHan/LearningPython_ING_202002
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/2/14 14:58
# @Author : Baimohan/PH
# @Site : https://github.com/BaiMoHan
# @File : varargs3.py
# @Software: PyCharm
def test(x, y, z=3, *books, **scores): # **代表收集关键字参数
print(x, y, z)
print(book... | [
1,
529,
276,
1112,
420,
29958,
29933,
1794,
22638,
29950,
273,
29914,
29931,
799,
1076,
11980,
29918,
4214,
29918,
29906,
29900,
29906,
29900,
29900,
29906,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
2989... |
Python3-world2/ex068.py | samirsaravia/Python_101 | 0 | 38161 | <filename>Python3-world2/ex068.py
import random
title = 'par ou ímpar'.upper()
print('~~' * 10)
print(f'\033[7;30m{title:^20}\033[m')
print('~~' * 10)
# poi = par ou impar
# vop = vitoria ou perda
poi = vop = ''
cont = 0
while True:
cont += 1
escolha_numero = int(input('Digite um número: '))
escolha_parinpa... | [
1,
529,
9507,
29958,
11980,
29941,
29899,
11526,
29906,
29914,
735,
29900,
29953,
29947,
29889,
2272,
13,
5215,
4036,
13,
3257,
353,
525,
862,
2123,
29871,
5487,
862,
4286,
21064,
580,
13,
2158,
877,
7377,
29915,
334,
29871,
29896,
29900,... |
pedantic/decorators/fn_deco_pedantic.py | LostInDarkMath/Pedantic-python-decorators | 15 | 109204 | from functools import wraps
from typing import Any, Optional
from pedantic.type_checking_logic.check_docstring import _check_docstring
from pedantic.constants import ReturnType, F
from pedantic.models.decorated_function import DecoratedFunction
from pedantic.models.function_call import FunctionCall
from pedantic.env_v... | [
1,
515,
2090,
312,
8789,
1053,
11463,
567,
13,
3166,
19229,
1053,
3139,
29892,
28379,
13,
13,
3166,
8939,
7716,
29889,
1853,
29918,
3198,
292,
29918,
19227,
29889,
3198,
29918,
1514,
1807,
1053,
903,
3198,
29918,
1514,
1807,
13,
3166,
8... |
dp/combination_sum.py | Ratione/Python-Algroithms | 0 | 186262 | <reponame>Ratione/Python-Algroithms
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.
Example:
nums = [1, 2, 3]
target = 4
The possible combination ways are:
(1, 1, 1, 1)
(1, 1, 2)
(1, 2, 1)
(1, 3)
(2, 1, 1)
(2, 2)
(... | [
1,
529,
276,
1112,
420,
29958,
29934,
362,
29872,
29914,
11980,
29899,
2499,
17170,
389,
1516,
13,
29954,
5428,
385,
6043,
1409,
411,
599,
6374,
3694,
322,
694,
20955,
29892,
1284,
278,
1353,
310,
1950,
18240,
393,
788,
701,
304,
263,
... |
run_evaluation.py | XiaoSanGit/wda_tracker | 24 | 62152 | <filename>run_evaluation.py<gh_stars>10-100
import sys
def append_to_pythonpath(paths):
for path in paths:
sys.path.append(path)
append_to_pythonpath(['/home/koehlp/Dokumente/JTA-MTMCT-Mod/deep_sort_mc/clustering',
'/home/koehlp/Dokumente/JTA-MTMCT-Mod/deep_sort_mc',
... | [
1,
529,
9507,
29958,
3389,
29918,
24219,
362,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
13,
13,
5215,
10876,
13,
13,
1753,
9773,
29918,
517,
29918,
4691,
2084,
29898,
24772,
1125,
13... |
src/list_screen/__init__.py | JeremyMoeglich/Python-Cmd-Screen | 0 | 184488 | from .main import Screen | [
1,
515,
869,
3396,
1053,
22666,
2
] |
crowdbotics_test/animal/serializers/dog.py | marslan390/DjangoModelInheritance | 0 | 160065 | from .animal import AnimalSerializer
from crowdbotics_test.animal.models import Dog
class DogSerializer(AnimalSerializer):
def create(self, validated_data):
return Dog.objects.create(**validated_data)
def update(self, instance, validated_data):
instance.name = validated_data.get('name', inst... | [
1,
515,
869,
273,
3039,
1053,
22809,
17679,
13,
3166,
11660,
2585,
327,
1199,
29918,
1688,
29889,
273,
3039,
29889,
9794,
1053,
18776,
13,
13,
13,
1990,
18776,
17679,
29898,
2744,
3039,
17679,
1125,
13,
13,
1678,
822,
1653,
29898,
1311,... |
bitey/cpu/flag/flag_json_decoder.py | jgerrish/bitey | 0 | 197405 | from dataclasses import dataclass
import json
from json import JSONDecoder
from typing import ClassVar
from bitey.cpu.flag.flag import Flag, Flags
from bitey.cpu.flag.carry_flag import CarryFlag
from bitey.cpu.flag.decimal_flag import DecimalFlag
from bitey.cpu.flag.negative_flag import NegativeFlag
from bitey.cpu.fla... | [
1,
515,
848,
13203,
1053,
848,
1990,
13,
5215,
4390,
13,
3166,
4390,
1053,
4663,
6185,
6119,
13,
3166,
19229,
1053,
4134,
9037,
13,
13,
3166,
289,
568,
29891,
29889,
21970,
29889,
15581,
29889,
15581,
1053,
28697,
29892,
2379,
810,
13,
... |
tests/test_game_map.py | brittleshinpass/mossbread | 1 | 15127 | import pytest
from array import array
from game_map import GameMap
from tests.conftest import get_relative_path
sample_map_data = tuple(
reversed(
(
array("I", (0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0)),
array("I", (0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0... | [
1,
1053,
11451,
1688,
13,
13,
3166,
1409,
1053,
1409,
13,
3166,
3748,
29918,
1958,
1053,
8448,
3388,
13,
3166,
6987,
29889,
535,
615,
342,
1053,
679,
29918,
22925,
29918,
2084,
13,
13,
13,
11249,
29918,
1958,
29918,
1272,
353,
18761,
... |
evernotebot/bot/storage.py | AuroraDysis/evernote-telegram-bot | 1 | 14550 | import json
import sqlite3
import typing
from typing import Optional, Dict
from copy import deepcopy
from contextlib import suppress
from bson.objectid import ObjectId
from pymongo import MongoClient
from pymongo.errors import ConfigurationError
class MongoStorageException(Exception):
pass
class Mongo:
def... | [
1,
1053,
4390,
13,
5215,
21120,
29941,
13,
5215,
19229,
13,
3166,
19229,
1053,
28379,
29892,
360,
919,
13,
3166,
3509,
1053,
6483,
8552,
13,
3166,
3030,
1982,
1053,
21301,
13,
13,
3166,
289,
1100,
29889,
3318,
333,
1053,
4669,
1204,
1... |
hubspot/crm/products/api/__init__.py | fakepop/hubspot-api-python | 117 | 43727 | <reponame>fakepop/hubspot-api-python
from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from hubspot.crm.products.api.associations_api import AssociationsApi
from hubspot.crm.products.api.basic_api import BasicApi
from hubspot.crm.products.api.batch_api import BatchApi
from hubspot.c... | [
1,
529,
276,
1112,
420,
29958,
29888,
1296,
7323,
29914,
29882,
431,
17500,
29899,
2754,
29899,
4691,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
13,
29937,
17422,
446,
29947,
29901,
694,
25621,
13,
13,
29937,
1053,
... |
yoon/stage1_kernel.py | yoon28/realsr-noise-injection | 17 | 6379 | <reponame>yoon28/realsr-noise-injection
import os, sys
import numpy as np
import cv2
import random
import torch
from configs import Config
from kernelGAN import KernelGAN
from data import DataGenerator
from learner import Learner
import tqdm
DATA_LOC = "/mnt/data/NTIRE2020/realSR/track2" # "/mnt/data/NTIRE2020/real... | [
1,
529,
276,
1112,
420,
29958,
29891,
6150,
29906,
29947,
29914,
276,
1338,
29878,
29899,
1217,
895,
29899,
262,
6929,
13,
5215,
2897,
29892,
10876,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
13850,
29906,
13,
5215,
4036,
13,
5215,
4842,... |
code/doubanUtils.py | verazuo/douban_crawler | 1 | 7143 | <gh_stars>1-10
import requests
import re
from bs4 import BeautifulSoup
def nextPageLink(sess,soup,page,head=""):
NextPage=soup.find(class_='next').link.get('href')
req=sess.get(head + NextPage)
print(f'第{page}页:',req.status_code)
return BeautifulSoup(req.text,'html.parser') | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
7274,
13,
5215,
337,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
13,
13,
1753,
2446,
5074,
6595,
29898,
29879,
404,
29892,
29879,
1132,
29892,
3488,
... |
flask_application/script.py | fmarella/dalie-flask | 8 | 1601425 | <reponame>fmarella/dalie-flask
from flask.ext.script import Command
from flask_application.populate import populate_data
from flask_application.models import db, User, Role
class ResetDB(Command):
"""Drops all tables and recreates them"""
def run(self, **kwargs):
for m in [User, Role]:
m.d... | [
1,
529,
276,
1112,
420,
29958,
24826,
598,
13520,
29914,
12293,
347,
29899,
1579,
1278,
13,
3166,
29784,
29889,
1062,
29889,
2154,
1053,
10516,
13,
3166,
29784,
29918,
6214,
29889,
7323,
5987,
1053,
19450,
29918,
1272,
13,
3166,
29784,
29... |
mat2py/core/specgraph.py | mat2py/mat2py | 0 | 181999 | # type: ignore
__all__ = [
"meshc",
"barh",
"trisurf",
"compass",
"isonormals",
"plotutils",
"ezcontour",
"streamslice",
"scatter",
"rgb2ind",
"usev6plotapi",
"quiver",
"streamline",
"triplot",
"tetramesh",
"rose",
"patch",
"comet",
"voronoi",... | [
1,
396,
1134,
29901,
11455,
13,
13,
1649,
497,
1649,
353,
518,
13,
1678,
376,
4467,
29882,
29883,
613,
13,
1678,
376,
1646,
29882,
613,
13,
1678,
376,
509,
275,
332,
29888,
613,
13,
1678,
376,
2388,
465,
613,
13,
1678,
376,
2285,
... |
tests/test_req_vars.py | fast01/falcon-python | 1 | 74446 | import datetime
import six
import testtools
import ddt
import falcon
from falcon.request import Request
import falcon.testing as testing
@ddt.ddt
class TestReqVars(testing.TestBase):
def before(self):
self.qs = 'marker=deadbeef&limit=10'
self.headers = {
'Content-Type': 'text/plain... | [
1,
1053,
12865,
13,
5215,
4832,
13,
5215,
1243,
8504,
13,
13,
5215,
270,
6008,
13,
13,
5215,
11092,
535,
13,
3166,
11092,
535,
29889,
3827,
1053,
10729,
13,
5215,
11092,
535,
29889,
13424,
408,
6724,
13,
13,
13,
29992,
1289,
29873,
... |
oop/data-hiding.py | sinhdev/python-demo | 0 | 58222 | <reponame>sinhdev/python-demo<gh_stars>0
#!/usr/bin/python
class JustCounter:
__secret_count = 0
def count(self):
self.__secret_count += 1
print(self.__secret_count)
counter = JustCounter()
counter.count()
counter.count()
# can't access
print(counter.__secret_count) | [
1,
529,
276,
1112,
420,
29958,
5223,
29882,
3359,
29914,
4691,
29899,
17482,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
13,
1990,
3387,
17779,
29901,
13,
259,
4770,
19024,
29918,
27... |
users/views.py | Slawomir-Kwiatkowski/auto-maniac | 3 | 1600297 | from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm, PasswordChangeForm
from django.contrib.auth import login, authenticate, update_session_auth_hash
from django.views.generic import CreateView
from django.contrib import messages
from django.contrib.auth.mixins import Lo... | [
1,
515,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
29892,
6684,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9514,
1053,
4911,
9832,
362,
2500,
29892,
25280,
7277,
2500,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
6464,
29892,
... |
atcoder/abc/abc135_b.py | knuu/competitive-programming | 1 | 125127 | N = int(input())
A = [int(x) for x in input().split()]
for i in range(N):
for j in range(i, N):
A[i], A[j] = A[j], A[i]
if sorted(A) == A:
print("YES")
quit()
A[i], A[j] = A[j], A[i]
print("NO")
| [
1,
405,
353,
938,
29898,
2080,
3101,
13,
29909,
353,
518,
524,
29898,
29916,
29897,
363,
921,
297,
1881,
2141,
5451,
580,
29962,
13,
1454,
474,
297,
3464,
29898,
29940,
1125,
13,
1678,
363,
432,
297,
3464,
29898,
29875,
29892,
405,
11... |
app/actions/campaigns.py | appliedbloc/cm-data-service | 0 | 116611 | <filename>app/actions/campaigns.py<gh_stars>0
from sqlalchemy.orm import Session
from sqlalchemy import update
from fastapi.encoders import jsonable_encoder
import models, schemas
def get_campaign(db: Session, campaign_id: int):
return db.query(models.Campaign).filter(models.Campaign.id == campaign_id).first()
... | [
1,
529,
9507,
29958,
932,
29914,
7387,
29914,
24821,
8729,
29879,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
4576,
284,
305,
6764,
29889,
555,
1053,
16441,
13,
3166,
4576,
284,
305,
6764,
1053,
2767,
13,
3166,
... |
test_vs_model_DEMs.py | drewleonard42/CoronaTemps | 1 | 34608 | <reponame>drewleonard42/CoronaTemps
# -*- coding: utf-8 -*-
"""
Script to produce synthetic AIA data based on arbitrary model DEMs and test the
results of the tempmap code against the model.
Created on Mon Jul 28 16:34:28 2014
@author: <NAME>
"""
import numpy as np
from matplotlib import use, rc
use('agg')
rc('savef... | [
1,
529,
276,
1112,
420,
29958,
29881,
3973,
280,
265,
538,
29946,
29906,
29914,
12521,
2681,
5776,
567,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
4081,
304,
7738,
14710,
7492... |
get_block_data/relation.py | cyclone923/blocks-world | 1 | 3997 | class SceneRelation:
def __init__(self):
self.on_ground = set()
self.on_block = {}
self.clear = set()
def print_relation(self):
print(self.on_ground)
print(self.on_block)
print(self.clear) | [
1,
770,
2522,
1600,
9662,
362,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
265,
29918,
2057,
353,
731,
580,
13,
4706,
1583,
29889,
265,
29918,
1271,
353,
6571,
13,
4706,
1583,
29889,
8551,
353,
731,
580... |
sigopt/cli/commands/run_base.py | emattia/sigopt-python | 67 | 143137 | import functools
import click
from ..arguments import commands_argument, run_file_option
def run_command(f):
@commands_argument
@run_file_option
@functools.wraps(f)
def wrapper(*args, commands, run_file, **kwargs):
if run_file:
run_options = run_file.data
else:
run_options = {}
if n... | [
1,
1053,
2090,
312,
8789,
13,
13,
5215,
2828,
13,
13,
3166,
6317,
25699,
1053,
8260,
29918,
23516,
29892,
1065,
29918,
1445,
29918,
3385,
13,
13,
13,
1753,
1065,
29918,
6519,
29898,
29888,
1125,
13,
13,
29871,
732,
26381,
29918,
23516,
... |
gen_api/generate_cpp_api.py | jordenson/nakama-cpp | 0 | 82955 | #!/usr/bin/env python
#
# Copyright 2019 The Nakama Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
450,
20962,
3304,
13189,
943,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
298... |
md.py | Tensai7/manga-dl | 0 | 51190 | <filename>md.py
import argparse
import os
import urllib.request
from urllib.error import HTTPError
from urllib.request import urlopen
from sys import exit
import extra
from parsers import Mangapanda, Mangasee
opener = urllib.request.build_opener()
opener.addheaders = [('User-Agent',
'Mozilla/5.0 ... | [
1,
529,
9507,
29958,
3487,
29889,
2272,
13,
5215,
1852,
5510,
13,
5215,
2897,
13,
5215,
3142,
1982,
29889,
3827,
13,
3166,
3142,
1982,
29889,
2704,
1053,
7331,
2392,
13,
3166,
3142,
1982,
29889,
3827,
1053,
5065,
417,
2238,
13,
3166,
... |
src/UQpy/Distributions/baseclass/DistributionContinuous1D.py | marrov/UQpy | 132 | 17858 | import numpy as np
import scipy.stats as stats
from UQpy.Distributions.baseclass.Distribution import Distribution
class DistributionContinuous1D(Distribution):
"""
Parent class for univariate continuous probability distributions.
"""
def __init__(self, **kwargs):
super().__init__(**kwargs)
... | [
1,
1053,
12655,
408,
7442,
13,
5215,
4560,
2272,
29889,
16202,
408,
22663,
13,
3166,
501,
29984,
2272,
29889,
13398,
3224,
29879,
29889,
3188,
1990,
29889,
13398,
3224,
1053,
17740,
13,
13,
13,
1990,
17740,
1323,
8675,
681,
29896,
29928,
... |
cwvae.py | juliuskunze/cwvae | 0 | 1603508 | <filename>cwvae.py
import tensorflow.compat.v1 as tf
import cnns
from cells import *
import tools
class CWVAE:
def __init__(
self,
levels,
tmp_abs_factor,
state_sizes,
embed_size,
cell_type,
lr,
min_stddev,
mean_only_cell=False,
rese... | [
1,
529,
9507,
29958,
29883,
29893,
1564,
29872,
29889,
2272,
13,
5215,
26110,
29889,
12667,
29889,
29894,
29896,
408,
15886,
13,
13,
5215,
274,
29876,
1983,
13,
3166,
9101,
1053,
334,
13,
5215,
8492,
13,
13,
13,
1990,
315,
29956,
29963,... |
app.py | varshithrajbasa/RetailBanking | 0 | 70964 | from flask import Flask, render_template, request,redirect, url_for,session
from flask_mysqldb import MySQL
app = Flask(__name__)
app.secret_key = "<KEY>"
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = '<PASSWORD>'
app.config['MYSQL_DB'] = 'retailbankin... | [
1,
515,
29784,
1053,
2379,
1278,
29892,
4050,
29918,
6886,
29892,
2009,
29892,
17886,
29892,
3142,
29918,
1454,
29892,
7924,
30004,
13,
3166,
29784,
29918,
19268,
430,
29890,
1053,
9254,
6756,
13,
30004,
13,
932,
353,
2379,
1278,
22168,
9... |
test/sortByMostFrequent.py | rootadminWalker/SearchByObjects | 0 | 161873 | <filename>test/sortByMostFrequent.py
#!/usr/bin/env python3
from os import path, listdir
import cv2 as cv
from operator import itemgetter
from core.Detection import YOLOPreprocessWithTarget, YOLODetect, yoloIMG
from core.basePaths import basePaths
from core.settings import Settings
from time import time
# Initialize... | [
1,
529,
9507,
29958,
1688,
29914,
6605,
2059,
29924,
520,
23923,
16011,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
3166,
2897,
1053,
2224,
29892,
1051,
3972,
13,
5215,
13850,
29906,
408,
13850,
13,... |
Find Minimum in Rotated Array.py | lisnb/leetcode | 2 | 164703 | <reponame>lisnb/leetcode
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: LiSnB
# @Date: 2015-01-09 11:01:40
# @Last Modified by: LiSnB
# @Last Modified time: 2015-01-09 11:21:54
# @Email: <EMAIL>
"""
# @comment here:
"""
class Solution:
# @param num, a list of integer
# @return an integer
de... | [
1,
529,
276,
1112,
420,
29958,
23443,
9877,
29914,
280,
300,
401,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
13720,
29901,
27... |
openstack_dashboard/test/integration_tests/steps.py | Mirantis/mos-horizon | 9 | 26888 | # 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
# d... | [
1,
396,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
13,
29937,
1678,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
887,
1... |
python_tamer/SpecificDoses.py | tch521/python-TAMER | 0 | 110206 | import pandas as pd
import numpy as np
import netCDF4 as nc
from .subroutines import *
class SpecificDoses(pd.DataFrame):
"""A class for specific dose estimates akin to dosimetry measurements
High resolution data allows for personal and ambient dose estimation without the need for
direct measurement. Thi... | [
1,
1053,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
7787,
29907,
4037,
29946,
408,
302,
29883,
13,
3166,
869,
1491,
14608,
1475,
1053,
334,
13,
13,
13,
1990,
21220,
29928,
15806,
29898,
15926,
29889,
17271,
1125,
13,
1678,... |
fabfile.py | codersquid/richard-deploy | 0 | 167972 | <filename>fabfile.py
"""deployment scripts for researchcompendia
with credit to scipy-2014 and researchcompendia fabric.py
fab <deploy|provision>[:<git ref>]
provision: provisions a box to run the site. is not idempotent. do not rerun.
deploy: deploys a update to the site. if no git ref is provided, deploys HEAD.
git... | [
1,
529,
9507,
29958,
16582,
1445,
29889,
2272,
13,
15945,
29908,
16519,
358,
12078,
363,
5925,
2388,
355,
423,
13,
2541,
16200,
304,
4560,
2272,
29899,
29906,
29900,
29896,
29946,
322,
5925,
2388,
355,
423,
18187,
29889,
2272,
13,
13,
1... |
spec/__init__.py | deep-spin/spec-blackboxnlp | 2 | 26623 | <gh_stars>1-10
"""
SpEC
~~~~~~~~~~~~~~~~~~~
Sparsity, Explainability, and Communication
:copyright: (c) 2019 by <NAME>
:licence: MIT, see LICENSE for more details
"""
# Generate your own AsciiArt at:
# patorjk.com/software/taag/#f=Calvin%20S&t=SpEC
__banner__ = """
_____ _____ _____
| __|___| __| |
|__ ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
5592,
11206,
13,
26594,
26594,
7377,
30022,
13,
29903,
862,
29879,
537,
29892,
12027,
7420,
3097,
29892,
322,
22365,
362,
13,
13,
29901,
8552,
1266,... |
httpd.py | bshah2016/web-processing | 250 | 70335 | #!/usr/bin/env python
PORT = 9914
SERVER = '127.0.0.1'
import SimpleHTTPServer
import BaseHTTPServer
import SocketServer
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
class Server(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer):
pass
httpd = Server((SERVER, PORT), Handler)
print "Web Server lis... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29871,
13,
15082,
353,
29871,
29929,
29929,
29896,
29946,
13,
18603,
353,
525,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
29915,
13,
29871,
13,
5215,
12545,
10493,
6004... |
scripts/junction_tree/generate_vocab.py | rtriangle/moses | 2 | 164523 | <reponame>rtriangle/moses<gh_stars>1-10
import argparse
import rdkit
import torch
import tqdm
from moses.junction_tree.datautils import JTreeVocab
from moses.junction_tree.jtnn.mol_tree import MolTree
from moses.script_utils import read_smiles_csv
lg = rdkit.RDLogger.logger()
lg.setLevel(rdkit.RDLogger.CRITICAL)
d... | [
1,
529,
276,
1112,
420,
29958,
2273,
374,
2521,
29914,
7681,
267,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
1852,
5510,
13,
13,
5215,
364,
29881,
7354,
13,
5215,
4842,
305,
13,
5215,
260,
29939,
18933,... |
tests/providers/apache/hive/transfers/test_s3_to_hive.py | gtossou/airflow | 2 | 197823 | <gh_stars>1-10
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
13,
29937,
10413,
21144,
304,
278,
13380,
18540,
10606,
313,
3289,
29943,
29897,
1090,
697,
13,
29937,
470,
901,
17737,
3406,
19405,
8571,
4110,
29889,
29871,
... |
Weltantschauung/__init__.py | area42/Weltanschauung- | 0 | 23286 | from .Weltantschauung import Weltantschauung
| [
1,
515,
869,
29956,
2152,
424,
29172,
686,
1053,
7633,
424,
29172,
686,
13,
2
] |
python算法/3.3如何从顶部开始逐层打印二叉树结点数据.py | RobinYaoWenbin/Python-CommonCode | 12 | 77879 | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 23 14:31:43 2019
@author: wenbin
"""
"""
给定一棵二叉树,要求逐层打印二叉树结点的数据,例如有如下二叉树:
1
2 3
4 5 6 7
对这棵二叉树层序遍历的结果为1,2,3,4,5,6,7;
"""
from collections import deque
class BiTNode:
# the node of the binary tree
def __init__(self , d... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
15945,
19451,
13,
20399,
373,
2598,
3826,
29871,
29906,
29941,
29871,
29896,
29946,
29901,
29941,
29896,
29901,
29946,
29941,
29871,
29906,
29900,
298... |
applications/FluidDynamicsApplication/tests/embedded_couette_flow_test.py | lkusch/Kratos | 778 | 1617996 | # Import kratos core and applications
import KratosMultiphysics
import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics.kratos_utilities as KratosUtilities
from KratosMultiphysics.FluidDynamicsApplication.fluid_dynamics_analysis import FluidDynamicsAnalysis
class EmbeddedCouetteTestFluidDy... | [
1,
396,
16032,
413,
3605,
359,
7136,
322,
8324,
13,
5215,
476,
3605,
359,
15329,
25105,
13,
5215,
476,
3605,
359,
15329,
25105,
29889,
29968,
3605,
359,
2525,
27958,
408,
476,
3605,
359,
2525,
27958,
13,
5215,
476,
3605,
359,
15329,
2... |
test.py | xiaohuaibaoguigui/EllSeg | 1 | 3001 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import tqdm
import torch
import pickle
import resource
import numpy as np
import matplotlib.pyplot as plt
from args import parse_args
from modelSummary import model_dict
from pytorchtools import load_from_file
from torch.utils.data import DataLoader
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
260,
29939,
18933,
13,
5215,
4842,
305,
13,
5215,
... |
pipeline/tests/engine/core/data/test_api.py | wkma/bk-sops | 2 | 12162 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
29911,
264,
1760,
338,
22301,
304,
2304,
278,
1722,
2752,
7881,
491,
3907,
29871,
235,
150,
160,
236,
181,
187,
31676,
31784,
29925,
... |
setup.py | NogaOs/wit | 0 | 168076 | <reponame>NogaOs/wit
from setuptools import find_packages, setup
setup(
name='Swit',
packages=find_packages(where='Swit'),
package_dir={"": "Swit"},
include_package_data=True,
version='0.2',
license='MIT',
description='Swit is a basic open-source implementation of Git, meant for experiment... | [
1,
529,
276,
1112,
420,
29958,
29940,
14895,
24768,
29914,
29893,
277,
13,
3166,
731,
21245,
8789,
1053,
1284,
29918,
8318,
29892,
6230,
13,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
10840,
277,
742,
13,
1678,
9741,
29922,
2886,
29918... |
wb/main/enumerates.py | openvinotoolkit/workbench | 23 | 82499 | """
OpenVINO DL Workbench
Enumerates classes
Copyright (c) 2020 Intel Corporation
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 requ... | [
1,
9995,
13,
4673,
29963,
1177,
29949,
360,
29931,
5244,
1785,
305,
13,
1174,
4680,
1078,
4413,
13,
13,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
18555,
15025,
13,
13,
10413,
21144,
1090,
278,
13380,
19245,
29892,... |
src/szz/map_bugs2snapshot/get_sha_pairs_from_deleted_linums.py | dSar-UVA/repoMiner | 9 | 97437 | import pandas, sys
data_dir = sys.argv[1] + '/'
project_name = sys.argv[2]
deleted_lines_filename = data_dir + 'lines_deleted_in_bf_shas/' + project_name + '.buggylines'
df = pandas.read_csv(deleted_lines_filename)
df = df[['bf_sha', 'bi_sha']]
grouped = df.groupby(['bf_sha', 'bi_sha'])
index = [gp_keys[0] for gp_key... | [
1,
1053,
11701,
29892,
10876,
13,
13,
1272,
29918,
3972,
353,
10876,
29889,
19218,
29961,
29896,
29962,
718,
8207,
29915,
13,
4836,
29918,
978,
353,
10876,
29889,
19218,
29961,
29906,
29962,
13,
311,
22742,
29918,
9012,
29918,
9507,
353,
... |
sdk/python/pulumi_azure/ad/service_principal_password.py | Frassle/pulumi-azure | 0 | 121342 | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
from .. import utilities, tables
class ServicePrincipalPassword(pulumi.CustomResource):
"""
... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29937,
18610,
399,
25614,
29901,
445,
934,
471,
5759,
491,
278,
27477,
15547,
20839,
689,
16230,
313,
13264,
1885,
29897,
21704,
29889,
18610,
13,
29937,
18610,
1938,
451,
3863,
491,
1361,
652... |
subjects/code_only/CodeOnly.py | ytyaru/Python.pylangstudy.Subjects.Template.201705221143 | 0 | 1604123 | <reponame>ytyaru/Python.pylangstudy.Subjects.Template.201705221143
#!python3
#encoding: utf-8
import HtmlWrapper
import HeaderNavi
#import Breadcrumbs
#import MetaNavi
import NextPrevNavi
class HeaderNavi(object):
def __init__(self):
nav_head = HeaderNavi.HeaderNavi(directional_icon_type='FontAwesome')
... | [
1,
529,
276,
1112,
420,
29958,
29891,
1017,
18071,
29914,
11980,
29889,
2272,
3893,
18082,
29891,
29889,
20622,
29879,
29889,
6733,
29889,
29906,
29900,
29896,
29955,
29900,
29945,
29906,
29906,
29896,
29896,
29946,
29941,
13,
29937,
29991,
4... |
main.py | tmespe/linkedin_adder | 0 | 197614 | import os
import time
from dotenv import load_dotenv
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException, ElementClickInterceptedException
load_dotenv()
driver = webdriver.Firefox()
LOGIN_URL = "https://www.linkedin.com/login?fromSignIn=true&trk=guest_homepage-basic_nav-head... | [
1,
1053,
2897,
13,
5215,
931,
13,
13,
3166,
8329,
6272,
1053,
2254,
29918,
6333,
6272,
13,
3166,
18866,
1053,
1856,
9465,
13,
3166,
18866,
29889,
9435,
29889,
11739,
29879,
1053,
1939,
29903,
987,
2642,
2451,
29892,
10619,
4164,
4074,
1... |
nova/tests/servicegroup/test_zk_driver.py | vmthunder/nova | 7 | 8838 | # Copyright (c) AT&T 2012-2013 <NAME> <<EMAIL>>
# Copyright 2012 IBM Corp.
#
# 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
#
# ... | [
1,
396,
14187,
1266,
313,
29883,
29897,
15531,
29987,
29911,
29871,
29906,
29900,
29896,
29906,
29899,
29906,
29900,
29896,
29941,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29906,
27955,
29... |
src/status_node.py | Faust-Wang/vswarm | 21 | 1498 | #!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
import curses
import sys
from collections import deque
from datetime import datetime
import numpy as np
import rospy
from diagnostic_msgs.msg import DiagnosticArray, DiagnosticStatus
from geometry_msgs.msg import PoseStamped
from ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
13,
13,
5215,
18580,
267,
13,
5215,
10876,
13,
3166,
16250,
1053,
316,
802,
13,
31... |
packages/submodopt/submodopt/__init__.py | toruurakawa/DiPS | 75 | 57882 | <filename>packages/submodopt/submodopt/__init__.py<gh_stars>10-100
"""submodopt - A package for maximizing submodular functions"""
__version__ = '0.1.0'
__author__ = '<NAME> <<EMAIL>>'
__all__ = []
| [
1,
529,
9507,
29958,
8318,
29914,
1491,
1545,
3670,
29914,
1491,
1545,
3670,
29914,
1649,
2344,
26914,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
15945,
29908,
1491,
1545,
3670,
448,
319,
3577... |
tests/mysensors-display.py | paulino/home-assistant-text-display | 0 | 193729 | """
Testing "gatewayserial.ino" at examples folder
Dep:
- https://github.com/theolind/pymysensors
- pip3 install pymysensors)
Raw commands using mysensors serial API
(https://www.mysensors.org/download/serial_api_20)
DISPLAY_OFF: 0;1;1;0;47;10
DISPLAY_ON: 0;1;1;0;47;11
... | [
1,
9995,
13,
1678,
4321,
292,
376,
17062,
1582,
15550,
29889,
1789,
29908,
472,
6455,
4138,
13,
13,
1678,
10034,
29901,
13,
4706,
448,
2045,
597,
3292,
29889,
510,
29914,
1552,
324,
513,
29914,
29886,
962,
952,
575,
943,
13,
4706,
448... |
flask_api_server/api_server.py | gdcrocx/CiscoDevNetHackathonToronto | 0 | 101283 | from flask import Flask, render_template, request, redirect, url_for
from bson import ObjectId
from pymongo import MongoClient
import os
app = Flask(__name__)
title = "Paste-Wise"
heading = "Paste-Wise Dashboard"
mongoClient = MongoClient("mongodb://10.4.64.209:27017") # host uri
dbObject = mongoClient.webex_teams ... | [
1,
515,
29784,
1053,
2379,
1278,
29892,
4050,
29918,
6886,
29892,
2009,
29892,
6684,
29892,
3142,
29918,
1454,
13,
3166,
289,
1100,
1053,
4669,
1204,
13,
3166,
282,
962,
7443,
1053,
18294,
4032,
13,
5215,
2897,
13,
13,
932,
353,
2379,
... |
hello_app/migrations/0002_auto_20160321_0846.py | Lessica/StatusHub | 0 | 148663 | <reponame>Lessica/StatusHub
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-21 08:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hello_app', '0001_initial'),
]
operations = [
mi... | [
1,
529,
276,
1112,
420,
29958,
29931,
404,
983,
29914,
5709,
16046,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29929,
29889,
29906,
373,
29871,
... |
create_sp_model.py | pwldj/nls | 0 | 99910 | <reponame>pwldj/nls
import sentencepiece as spm
import os
dir = 'raw_data'
files = os.listdir(dir)
files = ','.join([dir+'/'+x for x in files])
spm.SentencePieceTrainer.train(input='raw_data/0_wiki_en.txt', model_prefix='30k_spm', vocab_size=32000,
input_sentence_size=3000000, shuffle_i... | [
1,
529,
276,
1112,
420,
29958,
29886,
29893,
430,
29926,
29914,
29876,
3137,
13,
5215,
10541,
12343,
346,
408,
805,
29885,
13,
5215,
2897,
13,
13,
3972,
353,
525,
1610,
29918,
1272,
29915,
13,
13,
5325,
353,
2897,
29889,
1761,
3972,
2... |
threads/migrations/0002_auto_20170909_1106.py | GunnerJnr/we_are_social_project | 4 | 125461 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-09 10:06
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('threads', '0001_initial'),
]
operations = [
migrations.RenameField(
mod... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
29896,
29889,
29946,
373,
29871,
29906,
29900,
29896,
29955,
29899,
29900,
29929,
29899,
29900,
299... |
resize_lfw.py | corganhejijun/frontal-face-trans | 0 | 93623 | from src.resize_for_train import getTrainImg
DATA_SET = "datasets/lfw_trans"
OUT_DIR = "datasets/lfw_resize_for_train_128"
MARGIN_FILE = "datasets/lfw_resize_margin_128.txt"
IMAGE_SIZE = 128
getTrainImg(DATA_SET, IMAGE_SIZE, OUT_DIR, MARGIN_FILE) | [
1,
515,
4765,
29889,
21476,
29918,
1454,
29918,
14968,
1053,
679,
5323,
262,
25518,
13,
13,
14573,
29918,
10490,
353,
376,
14538,
1691,
29914,
29880,
25051,
29918,
3286,
29908,
13,
12015,
29918,
9464,
353,
376,
14538,
1691,
29914,
29880,
... |
demos/DPSRGAN/dpsrmodels/basicblock.py | hduba/MDF | 1 | 30650 | from collections import OrderedDict
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn import Module
'''
# ===================================
# Advanced nn.Sequential
# reform nn.Sequentials and nn.Modules
# to a single nn.Sequential
# ===================================
'''
def sequen... | [
1,
515,
16250,
1053,
8170,
287,
21533,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
29889,
15755,
29889,
2220,
284,
408,
383,
13,
3166,
4842,
305,
29889,
15755,
1053,
15591,
13,
13,
120... |
bot/utils/dma_api.py | webhp/discord-moderator-wumpus | 0 | 186214 | <reponame>webhp/discord-moderator-wumpus<gh_stars>0
import functools
import re
import textwrap
import aiohttp
from bs4 import BeautifulSoup
from loguru import logger
from bot.constants import DMA_API_URL, DMA_TITLE_REGEX
def get_api():
def wrapper(func):
@functools.wraps(func)
async def wrapped(... | [
1,
529,
276,
1112,
420,
29958,
2676,
28887,
29914,
2218,
16090,
29899,
1545,
261,
1061,
29899,
29893,
3427,
375,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2090,
312,
8789,
13,
5215,
337,
13,
5215,
1426,
6312,
13,
13,
5215,... |
trio/_core/tests/test_multierror.py | JefffHofffman/trio | 4 | 14733 | <gh_stars>1-10
import logging
import pytest
from traceback import extract_tb, print_exception, format_exception, _cause_message
import sys
import os
import re
from pathlib import Path
import subprocess
from .tutil import slow
from .._multierror import MultiError, concat_tb
from ..._core import open_nursery
class N... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12183,
13,
5215,
11451,
1688,
13,
13,
3166,
9637,
1627,
1053,
6597,
29918,
22625,
29892,
1596,
29918,
11739,
29892,
3402,
29918,
11739,
29892,
903,
29883,
1071,
... |
jw/custom_ml.py | JoonSeongLee/dss7-coupon | 0 | 179331 | <filename>jw/custom_ml.py
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import numpy as np
import scipy as sp
import pandas as pd
import statsmodels.api as sm
import statsmodels.formula.api as smf
import statsmodels.stats.api as sms
import sklearn as sk
import matplotlib as mpl
import m... | [
1,
529,
9507,
29958,
29926,
29893,
29914,
6341,
29918,
828,
29889,
2272,
13,
5215,
18116,
13,
25442,
886,
29889,
12857,
4572,
29898,
2467,
2433,
17281,
742,
7663,
29922,
20154,
22709,
29897,
13,
5215,
12655,
408,
7442,
13,
5215,
4560,
227... |
examples/PyGame/reaching_osc.py | Andrew-Luo1/ABR_Control_Prosthetic | 0 | 1609792 | """
Running the threelink arm with the pygame display. The arm will
move the end-effector to the target, which can be moved by
clicking on the background.
"""
import numpy as np
from abr_control.arms import threejoint as arm
# from abr_control.arms import twojoint as arm
from abr_control.interfaces import PyGame
from ... | [
1,
9995,
13,
27795,
278,
12455,
295,
682,
5075,
411,
278,
22028,
2479,
29889,
450,
5075,
674,
13,
11631,
278,
1095,
29899,
12352,
3019,
304,
278,
3646,
29892,
607,
508,
367,
6153,
491,
13,
3808,
292,
373,
278,
3239,
29889,
13,
15945,
... |
dspback/main.py | czcnhub/dsp | 1 | 177128 | import uvicorn as uvicorn
from fastapi import FastAPI, Request, Response
from fastapi.staticfiles import StaticFiles
from starlette.middleware.sessions import SessionMiddleware
from dspback.config import get_settings
from dspback.database.models import SessionLocal
from dspback.routers import authentication, repositor... | [
1,
1053,
318,
26311,
1398,
408,
318,
26311,
1398,
13,
3166,
5172,
2754,
1053,
23786,
8787,
29892,
10729,
29892,
13291,
13,
3166,
5172,
2754,
29889,
7959,
5325,
1053,
624,
2454,
10547,
13,
3166,
5810,
20200,
29889,
17662,
2519,
29889,
2987... |
module/bio/queue/demux.py | moonwatcher/tubo | 0 | 105200 | <reponame>moonwatcher/tubo<filename>module/bio/queue/demux.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import io
import logging
from ontology import Ontology
from material import Resource
from command import Command
from queue import Job, Task, Scanner
from queue import ResourceTask
from error import *
class ... | [
1,
529,
276,
1112,
420,
29958,
4346,
265,
12344,
261,
29914,
29873,
431,
29877,
29966,
9507,
29958,
5453,
29914,
24840,
29914,
9990,
29914,
2310,
1314,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
... |
zshoes/api/auth.py | andresgz/zshoes | 0 | 140341 | from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import get_user_model
from rest_framework.authentication import BasicAuthentication
from rest_framework.exceptions import AuthenticationFailed
class AuthenticationBasic(BasicAuthentication):
def authenticate_credentials(self, useri... | [
1,
515,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
657,
726,
29918,
433,
1537,
408,
903,
13,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
679,
29918,
1792,
29918,
4299,
13,
13,
3166,
1791,
29918,
4468,
29889,
23055,
1053,
19... |
dataloader.py | cviaai/TMJ-segment | 6 | 159873 | import numpy as np
np.random.seed(0)
import torch
torch.manual_seed(0)
from torch.utils.data import Dataset, DataLoader, ConcatDataset, RandomSampler
import torchvision
import imageio
import importlib
import random
import glob
import os
import transforms_3d
class patch_DS(Dataset):
"""Implementation of torch... | [
1,
1053,
12655,
408,
7442,
13,
9302,
29889,
8172,
29889,
26776,
29898,
29900,
29897,
13,
5215,
4842,
305,
13,
7345,
305,
29889,
11288,
29918,
26776,
29898,
29900,
29897,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
13373,
24541,
... |
src/code/static_network/globals.py | dvaruas/minority_recommendations | 0 | 43774 | <gh_stars>0
import os
PARAMETERS_PATH = os.path.join(os.path.dirname(__file__), os.pardir, "common", "parameters.ini")
STATIC_DATA_PATH = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir,
"data", "synthetic", "static")
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
13,
13,
16320,
25797,
4945,
29903,
29918,
10145,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
511,
2897,
29889,
29886,
53... |
base/base_trainer.py | yhung119/show-and-tell-image-captioning | 10 | 145888 | import os
import math
import shutil
import torch
from utils import ensure_dir, Early_stopping
class BaseTrainer:
""" Base class for all trainer.
Note:
Modify if you need to change logging style, checkpoint naming, or something else.
"""
def __init__(self, model, loss, vocab, optimizer, epochs... | [
1,
1053,
2897,
13,
5215,
5844,
13,
5215,
528,
4422,
13,
5215,
4842,
305,
13,
3166,
3667,
29879,
1053,
9801,
29918,
3972,
29892,
11095,
29918,
7864,
3262,
13,
13,
13,
1990,
7399,
5323,
4983,
29901,
13,
1678,
9995,
7399,
770,
363,
599,
... |
code/testbed/pde1/FemPde1.py | nicolai-schwartze/Masterthesis | 1 | 3954 | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 13 14:57:32 2020
@author: Nicolai
"""
import sys
import os
importpath = os.path.dirname(os.path.realpath(__file__)) + "/../"
sys.path.append(importpath)
from FemPdeBase import FemPdeBase
import numpy as np
# import from ngsolve
import ngsolve as ngs
from netgen.geom2d i... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
2598,
319,
558,
29871,
29896,
29941,
29871,
29896,
29946,
29901,
29945,
29955,
29901,
29941,
29906,
29871,
29906,
29900,
29906,... |
lightflow_rest/__main__.py | AustralianSynchrotron/lightflow-rest | 0 | 42389 | <reponame>AustralianSynchrotron/lightflow-rest
def main(args):
""" Main entry point for the extension. """
from lightflow_rest.service import app
app.run()
if __name__ == '__main__':
import sys
main(sys.argv[1:])
| [
1,
529,
276,
1112,
420,
29958,
22537,
713,
29216,
305,
307,
509,
265,
29914,
4366,
1731,
29899,
5060,
13,
13,
13,
1753,
1667,
29898,
5085,
1125,
13,
1678,
9995,
4241,
6251,
1298,
363,
278,
6081,
29889,
9995,
13,
1678,
515,
3578,
1731,... |
library/azure_rm_sqlvirtualnetworkrule.py | wray/azure_modules | 0 | 109749 | <filename>library/azure_rm_sqlvirtualnetworkrule.py
#!/usr/bin/python
#
# Copyright (c) 2018, <NAME>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_versi... | [
1,
529,
9507,
29958,
5258,
29914,
17688,
29918,
1758,
29918,
2850,
18714,
11618,
7491,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
2... |
neighborapp/models.py | Maureen-1998DEV/watch_Hood | 0 | 25766 |
from django.db import models
from django.contrib.auth.models import User
from cloudinary.models import CloudinaryField
# Create your models here.
class Neighborhood(models.Model):
name = models.CharField(max_length = 50)
location = models.ForeignKey('Location',on_delete = models.CASCADE,null = True)
admin ... | [
1,
29871,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
4911,
13,
3166,
9570,
3821,
29889,
9794,
1053,
14293,
3821,
3073,
13,
29937,
6204,
596,
4733,
1244,
29889,
13,
1990,
2448,
... |
assignment-section-05/classification_model/__init__.py | RostekA/deploying-machine-learning-models | 1 | 154920 | import logging
from classification_model.config.core import PACKAGE_ROOT, config
# It is strongly advised that you do not add any handlers other than
# NullHandler to your library’s loggers. This is because the configuration
# of handlers is the prerogative of the application developer who uses your
# library. The ap... | [
1,
1053,
12183,
13,
13,
3166,
12965,
29918,
4299,
29889,
2917,
29889,
3221,
1053,
349,
11375,
10461,
29918,
21289,
29892,
2295,
13,
13,
29937,
739,
338,
13818,
594,
11292,
393,
366,
437,
451,
788,
738,
25795,
916,
1135,
13,
29937,
19014... |
yt_dlp/extractor/zingmp3.py | mrBliss/yt-dlp | 80 | 72605 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
int_or_none,
)
class ZingMp3BaseIE(InfoExtractor):
_VALID_URL_TMPL = r'https?://(?:mp3\.zing|zingmp3)\.vn/(?:%s)/[^/]+/(?P<id>\w+)\.html'
_GEO_COUNTRIES = ['VN']
def _extract_item(self, it... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
869,
9435,
1053,
22140,
5647,
28891,
13,
3166,
6317,
13239,
1053,
313,
13,
1678,
938,
29918,
272,
29918,
9290,
... |
backend-example.py | MOSAIC-LoPoW/oss7-thingsboard-backend-example | 5 | 84318 | <gh_stars>1-10
#!/usr/bin/env python
from __future__ import print_function
import argparse
import socket
import subprocess
from datetime import datetime
import jsonpickle
import serial
import time
import paho.mqtt.client as mqtt
import signal
import struct
from d7a.alp.command import Command
from d7a.alp.operation... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
1852,
5510,
13,
5215,
9909,
13,
5215,
... |
lwc/views.py | codingforentrepreneurs/launch-with-code | 64 | 42341 | <reponame>codingforentrepreneurs/launch-with-code
from django.shortcuts import render
def testhome(request):
context = {}
template = "donotuse.html"
return render(request, template, context)
# def home2(request):
# context = {}
# template = "home2.html"
# return render(request, template, context) | [
1,
529,
276,
1112,
420,
29958,
29883,
3689,
1454,
14056,
558,
1600,
1295,
29914,
15343,
29899,
2541,
29899,
401,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
13,
13,
1753,
1243,
5184,
29898,
3827,
1125,
13,
12,
4703,
353,
... |
cassiopeia/datastores/riotapi/match.py | artemigkh/cassiopeia | 1 | 8266 | from time import time
from typing import Type, TypeVar, MutableMapping, Any, Iterable, Generator, Union
import arrow
import datetime
import math
from datapipelines import DataSource, PipelineContext, Query, NotFoundError, validate_query
from .common import RiotAPIService, APINotFoundError
from ...data import Platform... | [
1,
515,
931,
1053,
931,
13,
3166,
19229,
1053,
5167,
29892,
5167,
9037,
29892,
341,
9246,
15845,
29892,
3139,
29892,
20504,
519,
29892,
3251,
1061,
29892,
7761,
13,
5215,
16578,
13,
5215,
12865,
13,
5215,
5844,
13,
13,
3166,
1418,
481,
... |
queue_services/events-listener/tests/integration/test_worker_queue.py | karthik-aot/sbc-auth | 11 | 109679 | <reponame>karthik-aot/sbc-auth
# Copyright © 2019 Province of British Columbia
#
# 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,
5689,
386,
638,
29899,
29874,
327,
29914,
29879,
12328,
29899,
5150,
13,
29937,
14187,
1266,
29871,
30211,
29871,
29906,
29900,
29896,
29929,
17325,
310,
4908,
15411,
13,
29937,
13,
29937,
10413,
21144,
1090,
... |
PIVX-Discord-master/bot.py | Sieres/PIVX-Discord-Master | 1 | 198646 | <filename>PIVX-Discord-master/bot.py
import discord
from discord.ext import commands
from utils import output, parsing, checks, mysql_module
import os, traceback
config = parsing.parse_json('config.json')
Mysql = mysql_module.Mysql()
bot = commands.Bot(command_prefix="!", description=config["description"])
#command_... | [
1,
529,
9507,
29958,
2227,
29963,
29990,
29899,
4205,
16090,
29899,
6207,
29914,
7451,
29889,
2272,
13,
5215,
2313,
536,
13,
3166,
2313,
536,
29889,
1062,
1053,
8260,
13,
3166,
3667,
29879,
1053,
1962,
29892,
13755,
29892,
12747,
29892,
5... |
cwf2neo/tests/__init__.py | sintax1/cwf2neo | 1 | 27170 | <gh_stars>1-10
import sys # NOQA
import os
current_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, current_path + '/../')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
10876,
396,
11698,
29984,
29909,
13,
5215,
2897,
13,
13,
3784,
29918,
2084,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
370,
1028,
493... |
common/web_client.py | newsettle/ns4_chatbot | 51 | 26504 | # -*- coding=utf-8 -*-
import urllib2
import json
import logger
import traceback
def send(apiUrl,data,method=None):
logger.debug("调用内部系统[%s],data[%r]",apiUrl,data)
try:
data_json = json.dumps(data)
headers = {'Content-Type': 'application/json'} # 设置数据为json格式,很重要
request = urllib2.Reques... | [
1,
396,
448,
29930,
29899,
14137,
29922,
9420,
29899,
29947,
448,
29930,
29899,
13,
5215,
3142,
1982,
29906,
13,
5215,
4390,
13,
5215,
17927,
13,
5215,
9637,
1627,
13,
13,
1753,
3638,
29898,
2754,
5983,
29892,
1272,
29892,
5696,
29922,
... |
tests/test_write.py | Aquaveo/gsshapyorm | 0 | 116438 | <reponame>Aquaveo/gsshapyorm
"""
********************************************************************************
* Name: Write Tests
* Author: <NAME>
* Created On: May 16, 2013
* Copyright: (c) Brigham Young University 2013
* License: BSD 2-Clause
***********************************************************************... | [
1,
529,
276,
1112,
420,
29958,
29909,
339,
1351,
29877,
29914,
3174,
845,
27580,
555,
13,
15945,
29908,
13,
7775,
7775,
7775,
7775,
7775,
13,
29930,
4408,
29901,
14350,
4321,
29879,
13,
29930,
13361,
29901,
529,
5813,
29958,
13,
29930,
... |
image_extractor.py | IstoVisio/script_image_extractor | 0 | 21160 | import os
import sys
import syglass as sy
from syglass import pyglass
import numpy as np
import tifffile
import subprocess
def extract(projectPath):
project = sy.get_project(projectPath)
head, tail = os.path.split(projectPath)
# Get a dictionary showing the number of blocks in each level
#codebreak()
resolution_... | [
1,
1053,
2897,
13,
5215,
10876,
13,
5215,
269,
4790,
605,
408,
9878,
13,
3166,
269,
4790,
605,
1053,
19484,
605,
13,
5215,
12655,
408,
7442,
13,
5215,
260,
361,
600,
488,
13,
5215,
1014,
5014,
13,
13,
1753,
6597,
29898,
4836,
2605,
... |
src/TMscore_test.py | h3nnn4n/TMscore.py | 2 | 190954 | <filename>src/TMscore_test.py
import pytest
from TMscore import TMscore
def test_init():
tmscore = TMscore("./TMscore")
assert tmscore is not None
def test_init_no_args():
tmscore = TMscore()
assert tmscore is not None
def test_init_wrong_path():
with pytest.raises(FileNotFoundError):
... | [
1,
529,
9507,
29958,
4351,
29914,
23081,
13628,
29918,
1688,
29889,
2272,
13,
5215,
11451,
1688,
13,
3166,
323,
29924,
13628,
1053,
323,
29924,
13628,
13,
13,
13,
1753,
1243,
29918,
2344,
7295,
13,
1678,
260,
1516,
3221,
353,
323,
29924... |
src/apytizer/utils/__init__.py | seanssullivan/apytizer | 1 | 1614662 | <filename>src/apytizer/utils/__init__.py
# -*- coding: utf-8 -*-
# pylint: skip-file
from .generate_key import generate_key
from .merge import merge
| [
1,
529,
9507,
29958,
4351,
29914,
481,
3637,
3950,
29914,
13239,
29914,
1649,
2344,
26914,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
282,
2904,
524,
29901,
14383,
29899,
1445,
... |
lists_carousels/urls.py | snoop2head/exercise_curation_django | 3 | 122663 | <gh_stars>1-10
from django.urls import path
from . import views
# making separate urls.py for rooms
app_name = "lists_carousels"
# receiving "localhost/rooms/110230" to use it as primary key for database
urlpatterns = []
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
26045,
1053,
2224,
13,
3166,
869,
1053,
8386,
13,
13,
29937,
3907,
5004,
23942,
29889,
2272,
363,
19600,
13,
932,
29918,
978,
353,
376,
21513,
29... |
forms/TranslationForm.py | greshniksv/PBDatabaseGenerator | 0 | 198923 | <reponame>greshniksv/PBDatabaseGenerator
from .TranslationFormUi import Ui_TranslationForm
from PyQt5 import QtWidgets
from PyQt5.QtGui import QStandardItemModel, QStandardItem
from PyQt5.QtWidgets import QFileDialog
from PyQt5.QtWidgets import QMessageBox
from pydantic import ValidationError
from models.TranslationMo... | [
1,
529,
276,
1112,
420,
29958,
7201,
3123,
638,
4501,
29914,
29925,
29933,
9112,
21575,
13,
3166,
869,
4300,
18411,
2500,
29965,
29875,
1053,
501,
29875,
29918,
4300,
18411,
2500,
13,
3166,
10772,
17303,
29945,
1053,
14705,
8801,
29879,
1... |
src/client/pydaos/raw/conversion.py | gczsjdy/daos | 1 | 8558 | #!/usr/bin/python
"""
(C) Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
15945,
29908,
13,
29871,
313,
29907,
29897,
14187,
1266,
29871,
29906,
29900,
29896,
29947,
18555,
15025,
29889,
13,
13,
29871,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
... |
utils/pvacapi/controllers/database.py | mrichters/pVACtools | 96 | 24591 | import os
import re
import csv
import sys
import json
import yaml
import time
import socket
import connexion
import postgresql as psql
from flask import current_app
from urllib.parse import urlencode
from hashlib import md5
from bokeh.embed import server_document
from .processes import fetch_process, is_running, proce... | [
1,
1053,
2897,
13,
5215,
337,
13,
5215,
11799,
13,
5215,
10876,
13,
5215,
4390,
13,
5215,
343,
8807,
13,
5215,
931,
13,
5215,
9909,
13,
5215,
1826,
29916,
291,
13,
5215,
27035,
408,
282,
2850,
13,
13,
3166,
29784,
1053,
1857,
29918,... |
Loan-Approval-Analysis/code.py | pavanmakineni/ga-learner-dsb-repo | 0 | 133787 | <reponame>pavanmakineni/ga-learner-dsb-repo
# --------------
# Import packages
import numpy as np
import pandas as pd
from scipy.stats import mode
# code starts here
bank=pd.read_csv(path,sep=',',header='infer')
#print(bank)
categorical_var = bank.select_dtypes(include = 'object')
#print(categorical_var)
numeri... | [
1,
529,
276,
1112,
420,
29958,
29886,
29080,
29885,
557,
7026,
29875,
29914,
3249,
29899,
1945,
1089,
29899,
6289,
29890,
29899,
20095,
13,
29937,
448,
9072,
29899,
13,
29937,
16032,
9741,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,... |
Documentation_generator/ivml_documentation_from_file.py | jegentile/IVML | 8 | 51504 | __author__ = 'jgentile'
class IVMLDocumentationFromFile:
def __init__(self,file_name):
self.__file_name = file_name
self.__file = open(file_name)
print ' Document generator looking at ',file_name
self.__ivml_object_documentation = '\0'
self.__type = ''
self.__ivm... | [
1,
4770,
8921,
1649,
353,
525,
29926,
5362,
488,
29915,
13,
13,
13,
1990,
6599,
1988,
6268,
362,
4591,
2283,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1445,
29918,
978,
1125,
13,
4706,
1583,
17255,
1445,
29918,
978,
353,
9... |
bot_python/pwm_test.py | WillWagnerIV/gis_bot | 1 | 179294 | <reponame>WillWagnerIV/gis_bot
import time
from adafruit_servokit import ServoKit
# Set channels to the number of servo channels on your kit.
# 8 for FeatherWing, 16 for Shield/HAT/Bonnet.
kit = ServoKit(channels=8)
kit.servo[0].angle = 180
kit.continuous_servo[1].throttle = 1
time.sleep(1)
kit.continuous_servo[1].th... | [
1,
529,
276,
1112,
420,
29958,
12984,
29956,
18303,
5667,
29914,
29887,
275,
29918,
7451,
13,
5215,
931,
13,
3166,
594,
2142,
9216,
29918,
2140,
554,
277,
1053,
1816,
1365,
13117,
13,
13,
29937,
3789,
18196,
304,
278,
1353,
310,
724,
... |
Level/__init__.py | PyRectangle/GreyRectangle | 3 | 18786 | from Level.Render import Render
from Level.Data import Data
from Constants import *
import os
class Level:
def __init__(self, folder, main):
self.main = main
self.name = folder
self.folder = LEVEL_PATH + "/" + folder
self.dataFiles = []
files = os.listdir(self.folder)
... | [
1,
515,
21597,
29889,
10716,
1053,
26000,
13,
3166,
21597,
29889,
1469,
1053,
3630,
13,
3166,
5798,
1934,
1053,
334,
13,
5215,
2897,
13,
13,
13,
1990,
21597,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
4138,
29892,
1667,
1125,... |
example/declarative/custom_form.py | wilsaj/flask-admin-old | 2 | 106274 | import sys
from flask import Flask, redirect
from flask.ext import admin
from flask.ext.admin.datastore.sqlalchemy import SQLAlchemyDatastore
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Bool... | [
1,
1053,
10876,
13,
13,
3166,
29784,
1053,
2379,
1278,
29892,
29871,
6684,
13,
3166,
29784,
29889,
1062,
1053,
4113,
13,
3166,
29784,
29889,
1062,
29889,
6406,
29889,
4130,
579,
487,
29889,
2850,
284,
305,
6764,
1053,
3758,
2499,
305,
6... |
src/ml_analysis.py | UBC-MDS/DMC_Portuguese | 0 | 144125 | <gh_stars>0
# author: <NAME>
# date: 2020-01-24
'''This script does ML analysis by training multiple models, doing hyperparameter
tuning and reporting the results in a csv file.
Usage:
ml_analysis.py --train_csv=<train_csv> --test_csv=<test_csv> --output_csv=<output_csv> --output_png=<output_png>
ml_analysis... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
4148,
29901,
529,
5813,
29958,
13,
29937,
2635,
29901,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29896,
29899,
29906,
29946,
13,
13,
12008,
4013,
2471,
947,
23158,
7418,
491,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.