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 |
|---|---|---|---|---|---|
Download_test_data.py | yanhaidong1/TEmarker | 2 | 49490 | <reponame>yanhaidong1/TEmarker
#!/usr/bin/env python
##this script will download the testing data for step 1,2,3
##Also download the testing data for step 0
##BUILT-IN MODULES
import argparse
import sys
import os
import subprocess
from distutils.spawn import find_executable
##SCRIPTS
def get_parsed_args():
parse... | [
1,
529,
276,
1112,
420,
29958,
10094,
2350,
333,
549,
29896,
29914,
4330,
22976,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
2277,
1366,
2471,
674,
5142,
278,
6724,
848,
363,
4331,
29871,
29896,
29892,
29906,
29892,
... |
trueteam101.py | VinterMute/TrueTeam_clusterer | 1 | 1608915 | <filename>trueteam101.py
#!/home/alex/anaconda3/envs/comptech2020/bin/python3
from application import app
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80)
| [
1,
529,
9507,
29958,
509,
29884,
2650,
314,
29896,
29900,
29896,
29889,
2272,
13,
29937,
14708,
5184,
29914,
744,
29916,
29914,
1648,
18050,
29941,
29914,
264,
4270,
29914,
2388,
11345,
29906,
29900,
29906,
29900,
29914,
2109,
29914,
4691,
... |
FileIO/writing.py | zahraaliaghazadeh/python | 0 | 84067 | <reponame>zahraaliaghazadeh/python<filename>FileIO/writing.py
# cities = ["Adelaide", "Alice Springs", "Darwin", "Melbourne", "Sydney"]
#
# with open("cities.txt", 'w') as city_file:
# for city in cities:
# print(city, file=city_file)
# can add flush=True to line above
# cities = []
#
# with open("cities.t... | [
1,
529,
276,
1112,
420,
29958,
29920,
801,
336,
2606,
21705,
834,
1943,
29882,
29914,
4691,
29966,
9507,
29958,
2283,
5971,
29914,
16554,
29889,
2272,
13,
29937,
14368,
353,
6796,
3253,
3100,
680,
613,
376,
29909,
5897,
14314,
886,
613,
... |
spark/example/count.py | aryahadii/adb | 0 | 106142 | <filename>spark/example/count.py
import pyspark
print("*****", pyspark.SparkContext().parallelize(range(0, 10)).count(), "*****")
| [
1,
529,
9507,
29958,
12597,
29914,
4773,
29914,
2798,
29889,
2272,
13,
5215,
282,
952,
6378,
13,
13,
2158,
703,
2328,
29930,
613,
282,
952,
6378,
29889,
29903,
6378,
2677,
2141,
23482,
675,
29898,
3881,
29898,
29900,
29892,
29871,
29896,
... |
backend/StudentVillage/migrations/0003_studentvillage_templatewashlist.py | henrikhorluck/tdt4140-washlists | 0 | 79160 | # Generated by Django 3.0.3 on 2020-02-27 22:21
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("Washlist", "0002_auto_20200227_2219"),
("StudentVillage", "0002_auto_20200227_2219"),
]
operations = [
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29900,
29889,
29941,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29906,
29899,
29906,
29955,
29871,
29906,
29906,
29901,
29906,
29896,
13,
13,
5215,
9557,
29889,
2585,
29889,
9794,... |
docker/user_settings.py | puckk/Wooey | 0 | 115435 | import os
from .wooey_settings import *
# Whether to allow anonymous job submissions, set False to disallow 'guest' job submissions
WOOEY_ALLOW_ANONYMOUS = True
## Celery related options
INSTALLED_APPS += (
'django_celery_results',
)
WOOEY_CELERY = True
CELERY_RESULT_BACKEND = 'django-db'
CELERY_BROKER_URL = 'am... | [
1,
1053,
2897,
13,
3166,
869,
827,
29877,
1032,
29918,
11027,
1053,
334,
13,
13,
29937,
26460,
304,
2758,
21560,
4982,
11834,
6847,
29892,
731,
7700,
304,
766,
9536,
525,
2543,
342,
29915,
4982,
11834,
6847,
13,
29956,
29949,
29949,
132... |
DICOMOFFIS/admin.py | pfagomez/DICOMOFFIS | 0 | 150123 | <filename>DICOMOFFIS/admin.py<gh_stars>0
from django.contrib import admin
from .models import eintrag
# Register your models here.
admin.site.register(eintrag) | [
1,
529,
9507,
29958,
29928,
2965,
6488,
27681,
3235,
29914,
6406,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
3166,
869,
9794,
1053,
321,
27075,
13,
13,
29937,
12577,
596,
4733,... |
gamestonk_terminal/forex/oanda/oanda_api.py | minhhoang1023/GamestonkTerminal | 1 | 136150 | """Oanda context API."""
import os
from gamestonk_terminal.helper_classes import ModelsNamespace as _models
# flake8: noqa
# pylint: disable=unused-import
# Context menus
from gamestonk_terminal.forex.oanda.oanda_view import get_fx_price as price
from gamestonk_terminal.forex.oanda.oanda_view import get_account_summ... | [
1,
9995,
29949,
5863,
3030,
3450,
1213,
15945,
13,
5215,
2897,
13,
3166,
24988,
21496,
29895,
29918,
8489,
979,
29889,
20907,
29918,
13203,
1053,
3382,
1379,
23335,
408,
903,
9794,
13,
13,
29937,
17422,
446,
29947,
29901,
694,
25621,
13,
... |
tkinter/withTtk/showicon.py | terasakisatoshi/pythonCodes | 0 | 1607755 | import tkinter as tk
from tkinter import ttk
from PIL import ImageTk, Image
def main():
root=tk.Tk()
root.title('LabelwithIcon')
framettk=ttk.Frame(root)
framettk.grid()
icon = ImageTk.PhotoImage(Image.open('pen.png'))
pen_label=ttk.Label(
framettk,
image=icon)
pen_label.g... | [
1,
1053,
18883,
1639,
408,
18883,
29871,
13,
3166,
18883,
1639,
1053,
260,
11178,
29871,
13,
3166,
349,
6227,
1053,
7084,
29911,
29895,
29892,
7084,
13,
13,
1753,
1667,
7295,
13,
1678,
3876,
29922,
11178,
29889,
29911,
29895,
580,
13,
1... |
init.py | cbbing/stock | 31 | 1602407 | #coding:utf-8
__author__ = 'cbb'
import platform, os
from sqlalchemy import create_engine
from util.MyLogger import Logger
#DB_WAY:数据存储方式 'csv' # or 'mysql' or 'redis' or 'sqlite'
DB_WAY = 'mysql'
DB_USER = 'root'
DB_PWD = '<PASSWORD>' # or '<PASSWORD>' in win7
DB_NAME = 'stock'
DownloadDir = os.path.pardir + '/stoc... | [
1,
396,
29883,
3689,
29901,
9420,
29899,
29947,
13,
1649,
8921,
1649,
353,
525,
29883,
1327,
29915,
13,
13,
5215,
7481,
29892,
2897,
13,
3166,
4576,
284,
305,
6764,
1053,
1653,
29918,
10599,
13,
3166,
3667,
29889,
3421,
16363,
1053,
284... |
pint_wrapper/form.py | s-avni/dimensional-analysis | 0 | 115563 | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, FieldList, FormField
from wtforms.validators import DataRequired
MIN_VALIDATORS = 8
class VariablesForm(FlaskForm):
var_name = StringField('Name', validators=[DataRequired()])
var_dim = StringField('Dimension', validators=[DataRequ... | [
1,
515,
29784,
29918,
29893,
13264,
1053,
2379,
1278,
2500,
13,
3166,
281,
29873,
9514,
1053,
1714,
3073,
29892,
3323,
2415,
3073,
29892,
8989,
1293,
29892,
3812,
3073,
13,
3166,
281,
29873,
9514,
29889,
3084,
4097,
1053,
3630,
19347,
13,... |
display/__init__.py | dysfunctionals/soton-analytica-display | 1 | 110622 | from .text import Text | [
1,
515,
869,
726,
1053,
3992,
2
] |
b3files/cotacoeshistoricas.py | gbonesso/b3files | 0 | 1611064 | import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from datetime import datetime
import os
import zipfile
import logging
# Here we'll specify the columns width
__widths = [2, 8, 2, 12, 3, 12,
10, 3, 4, 13, 13, 13, 13, 13, 13, 13, 5, 18,
... | [
1,
1053,
12655,
408,
7442,
29871,
396,
5608,
9623,
13,
5215,
11701,
408,
10518,
29871,
396,
848,
9068,
29892,
16874,
934,
306,
29914,
29949,
313,
29872,
29889,
29887,
29889,
10518,
29889,
949,
29918,
7638,
29897,
13,
3166,
12865,
1053,
12... |
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py | erelcan/keras-transformer | 3 | 4531 | <gh_stars>1-10
import os
from keras.callbacks import ModelCheckpoint
from keras_transformer.training.custom_callbacks.CustomCallbackABC import CustomCallbackABC
from keras_transformer.utils.io_utils import save_to_pickle
class CustomCheckpointer(ModelCheckpoint, CustomCallbackABC):
def __init__(self, workspace_p... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
3166,
13023,
294,
29889,
14035,
29879,
1053,
8125,
5596,
3149,
13,
3166,
13023,
294,
29918,
9067,
261,
29889,
26495,
29889,
6341,
29918,
14035,
29879,
... |
functional/Decorator.py | sammffl/pythonPractice | 2 | 91490 | <gh_stars>1-10
# -*- coding: utf-8 -*-
import functools
# 装饰器
def log(func):
def wrapper(*args, **kw):
try:
print 'begin %s():' % func.__name__
return func(*args, **kw)
except Exception,e:
raise e
finally:
print 'end'
return wrapper
#... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
2090,
312,
8789,
13,
13,
13,
29937,
29871,
31905,
236,
168,
179,
30943,
13,
... |
ckanext/os/tests/model/test_spatial_data.py | datagovuk/ckanext-os | 2 | 1602575 | <reponame>datagovuk/ckanext-os
from ckanext.os import model.spatial_data as spatial_model
| [
1,
529,
276,
1112,
420,
29958,
4130,
351,
586,
2679,
29914,
384,
273,
1062,
29899,
359,
13,
3166,
274,
11052,
1062,
29889,
359,
1053,
1904,
29889,
1028,
15238,
29918,
1272,
408,
18652,
29918,
4299,
13,
2
] |
AmazonScraper/AmazonScraper/spiders/Deals.py | RyMaDe/Complete-Amazon-Scraper | 0 | 178301 | <filename>AmazonScraper/AmazonScraper/spiders/Deals.py
import scrapy
from ..items import DealsItem
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import time
class DealsSpider(scrapy.Spider):
name = 'deals'
allowed_domains = ['amazon.com', 'amazon.co.uk']
#To enable ... | [
1,
529,
9507,
29958,
29909,
655,
6626,
4421,
336,
546,
29914,
29909,
655,
6626,
4421,
336,
546,
29914,
1028,
11376,
29914,
2772,
1338,
29889,
2272,
13,
5215,
24559,
2272,
13,
3166,
6317,
7076,
1053,
897,
1338,
2001,
13,
13,
3166,
18866,... |
adapted_network.py | Hong-Ming/Adaptive_Network_Slimming | 0 | 28117 |
import sys
sys.path.append('./train_model')
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import numpy as np
import os
import argparse
parser = argparse.ArgumentParser(description='Adaptive Network Slimming')
parser.add_argument('-n... | [
1,
29871,
13,
5215,
10876,
13,
9675,
29889,
2084,
29889,
4397,
877,
6904,
14968,
29918,
4299,
1495,
13,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
29889,
15755,
29889,
2220,
284,
408,
... |
tests/test_request_helpers.py | fraymio/modis-tools | 2 | 1610352 | from datetime import timedelta
import sys
import pytest
try:
import shapely
import shapely.geometry
SHAPELY_TYPES = (
shapely.geometry.GeometryCollection,
shapely.geometry.LineString,
shapely.geometry.LinearRing,
shapely.geometry.MultiPolygon,
shapely.geometry.Poin... | [
1,
515,
12865,
1053,
5335,
287,
2554,
13,
5215,
10876,
13,
13,
5215,
11451,
1688,
13,
13,
2202,
29901,
13,
1678,
1053,
528,
481,
873,
13,
1678,
1053,
528,
481,
873,
29889,
19156,
13,
13,
1678,
24972,
3301,
6670,
29979,
29918,
15631,
... |
tests/resources/ok/ok.py | lleites/topyn | 10 | 31291 | <reponame>lleites/topyn
def my_function() -> str:
return "todo bien"
| [
1,
529,
276,
1112,
420,
29958,
19091,
3246,
29914,
3332,
948,
13,
1753,
590,
29918,
2220,
580,
1599,
851,
29901,
13,
1678,
736,
376,
29873,
8144,
6079,
29908,
13,
2
] |
TRMM/trmm_embrace_diurnal_mean.py | peterwilletts24/Python-Scripts | 4 | 1618053 | import cPickle as pickle
import numpy as np
from collections import defaultdict
from netCDF4 import Dataset
from scipy.interpolate import griddata
lon_high = 101.866
lon_low = 64.115
lat_high= 33.
lat_low=-6.79
#lon_high = 116
#lon_low = 30.5
#lat_high= 40
#lat_low=-11.25
pcp_dom, longitude_dom, latitude_dom, ti... | [
1,
1053,
274,
29925,
860,
280,
408,
5839,
280,
13,
5215,
12655,
408,
7442,
13,
3166,
16250,
1053,
2322,
8977,
13,
3166,
7787,
29907,
4037,
29946,
1053,
13373,
24541,
13,
3166,
4560,
2272,
29889,
1639,
3733,
403,
1053,
6856,
1272,
13,
... |
easiercfg/easiercfg.py | kistee/easiercfg | 0 | 146850 | from configparser import RawConfigParser
import os
import sys
class Config(RawConfigParser):
"""
Class for easy config file usage.
"""
def __init__(self):
"""
Initialize Class.
"""
# Parameter
self.filename = 'config.ini'
# Call parent constructor
... | [
1,
515,
2295,
16680,
1053,
22038,
3991,
11726,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
13,
1990,
12782,
29898,
22131,
3991,
11726,
1125,
13,
1678,
9995,
13,
1678,
4134,
363,
4780,
2295,
934,
8744,
29889,
13,
1678,
9995,
13,
13,
1678,... |
firedetectionserver/src/inferenceserver.py | aj-ames/NSAC-NULLPointers | 1 | 47297 | <gh_stars>1-10
from maven import Maven
import numpy as np
import ast
import multiprocessing as mp
import cv2
import random
from PIL import Image
from flask import Flask, request, jsonify
flaskserver = Flask(__name__)
num_classes = 94
thresh_conf = 0.2
global maven, athena
class Athena:
''' Class to hold member ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
18304,
1053,
26435,
13,
5215,
12655,
408,
7442,
13,
5215,
8717,
13,
5215,
6674,
307,
985,
292,
408,
22326,
13,
5215,
13850,
29906,
13,
5215,
4036,
13,
3166,
... |
day03/part1.py | joeeoj/adventofcode2020 | 0 | 172184 | def find_tree(row, index):
if index > len(row):
row = row * ((index // len(row)) + 1)
if row[index] == '#':
return 1
return 0
if __name__ == '__main__':
with open('input.txt') as f:
data = [r.strip() for r in f.readlines()]
indices = range(0, len(data) * 3, 3)
tree_cou... | [
1,
822,
1284,
29918,
8336,
29898,
798,
29892,
2380,
1125,
13,
1678,
565,
2380,
1405,
7431,
29898,
798,
1125,
13,
4706,
1948,
353,
1948,
334,
5135,
2248,
849,
7431,
29898,
798,
876,
718,
29871,
29896,
29897,
13,
1678,
565,
1948,
29961,
... |
tools/android/proguard_whitelister.py | brandonpollack23/bazel-buildfiles-upstream | 142 | 157456 | # Copyright 2015 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 applicable law or ag... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29945,
5087,
9266,
29889,
2178,
10462,
21676,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1... |
Blasting/Start.py | Erosion2020/SpaceCore | 4 | 34481 | <filename>Blasting/Start.py
import Blasting
name = "Blasting"
input_message = f"[{name} #]"
def menu():
print("-------------------------------弱口令爆破子模块-------------------------------")
print("1、SSH弱口令爆破")
print("2、MySQL弱口令爆破")
print("输入exit退出")
print("-----------------------------------END--------... | [
1,
529,
9507,
29958,
29933,
4230,
292,
29914,
4763,
29889,
2272,
13,
5215,
3164,
579,
292,
13,
13,
978,
353,
376,
29933,
4230,
292,
29908,
13,
2080,
29918,
4906,
353,
285,
29908,
19660,
978,
29913,
396,
18017,
13,
13,
13,
1753,
6143,
... |
PythonAPI/examples/spawn_assets.py | vishal-prgmr/carla | 0 | 171237 | <filename>PythonAPI/examples/spawn_assets.py
#!/usr/bin/env python
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
#
#This script is used for droppi... | [
1,
529,
9507,
29958,
11980,
8787,
29914,
19057,
29914,
1028,
18101,
29918,
16596,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
20972,
... |
query.py | IntimateMerger/dockerfile-aql | 0 | 47307 | <reponame>IntimateMerger/dockerfile-aql<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import time
import aerospike
from aerospike import predicates as p
if __name__ == "__main__":
if len(sys.argv) == 6:
as_host = str(sys.argv[1])
ns_name = str(sys.argv[2])
st_name = s... | [
1,
529,
276,
1112,
420,
29958,
2928,
6490,
15836,
914,
29914,
14695,
1445,
29899,
29874,
1519,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,... |
PYPI python package/multivicks/crud.py | imvickykumar999/100th-Repository-Morsetor-python-Package | 2 | 64261 | <gh_stars>1-10
# pip install imvickykumar999
# C:\Users\Vicky\anaconda3\Lib\site-packages\vicksbase
class HomeAutomation:
def __init__(self, link):
try:
from vicksbase import firebase as f
self.link = link
self.firebase_obj = f.FirebaseApplication(self.link, None)
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
13,
29937,
8450,
2601,
527,
29894,
860,
12072,
24540,
29929,
29929,
29929,
13,
29937,
315,
3583,
5959,
29905,
29963,
18219,
29905,
1648,
18050,
29941,
29905,
14868,
299... |
rpsls.py | cmckni3-org/rpsls | 0 | 173114 | <filename>rpsls.py
#!/usr/bin/env python
import random
# Rock-paper-scissors-lizard-Spock
# The key idea of this program is to equate the strings
# "rock", "paper", "scissors", "lizard", "Spock" to numbers
# as follows:
#
# 0 - rock
# 1 - Spock
# 2 - paper
# 3 - lizard
# 4 - scissors
# helper functions
NAME_MAPPING ... | [
1,
529,
9507,
29958,
29878,
567,
3137,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
4036,
13,
29937,
8027,
29899,
19773,
29899,
1557,
790,
943,
29899,
29880,
17909,
29899,
29903,
1129,
384,
13,
13,
... |
tests/test_lint.py | philvarner/stac-check | 8 | 120362 | <reponame>philvarner/stac-check
from re import L
from stac_check.lint import Linter
import pytest
def test_linter_bad_asset_requests():
file = "sample_files/1.0.0/core-item.json"
linter = Linter(file, assets=True)
asset_request_errors = [
"http://cool-sat.com/catalog/20201211_223832_CS2/20201211_22... | [
1,
529,
276,
1112,
420,
29958,
561,
309,
1707,
1089,
29914,
303,
562,
29899,
3198,
13,
3166,
337,
1053,
365,
13,
3166,
380,
562,
29918,
3198,
29889,
27854,
1053,
365,
1639,
13,
5215,
11451,
1688,
13,
13,
1753,
1243,
29918,
29880,
1639... |
code/meiduo_mall/apps/users/utils.py | Coding618/Django_base | 0 | 145226 | from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from meiduo_mall import settings
def generic_emial_verify_token(user_id):
# 1. 创建实例
s = Serializer(secret_key=settings.SECRET_KEY, expires_in=3600*24)
# 2. 加密数据
data = s.dumps({'user_id': user_id})
# 3. 返回数据
return data.deco... | [
1,
515,
967,
29881,
4600,
681,
1053,
7870,
287,
7249,
3609,
10140,
1535,
17679,
408,
18896,
3950,
13,
3166,
592,
333,
25608,
29918,
29885,
497,
1053,
6055,
13,
13,
1753,
10035,
29918,
331,
616,
29918,
27902,
29918,
6979,
29898,
1792,
29... |
odoo-13-docker/addons/odoo-debrand/models/models.py | kmrul/odoo-docker-ce | 1 | 86979 | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: <NAME>(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13383,
13383,
13383,
13383,
7346,
4136,
29937,
13,
29937,
13,
29937,
1678,
8045,
29890,
1883,
952,
8364,
11763,
349,
21908,
29889,
19806,
29889,
13,
29937,... |
pyproc/views/__init__.py | cmin764/pyproc | 0 | 41202 | <filename>pyproc/views/__init__.py
"""All views and routes exposed by the pyproc web app."""
from . import (
message,
)
| [
1,
529,
9507,
29958,
2272,
15439,
29914,
7406,
29914,
1649,
2344,
26914,
2272,
13,
15945,
29908,
3596,
8386,
322,
12049,
19884,
491,
278,
11451,
15439,
1856,
623,
1213,
15945,
13,
13,
13,
3166,
869,
1053,
313,
13,
1678,
2643,
29892,
13,... |
Heat_Transfer/4.3_Pipe_with_&_out_cover.py | Daz-Riza-Seriog/Transport_Phenomena | 4 | 50395 | # Code made for <NAME>
# 12 Abril 2021
# License MIT
# Transport Phenomena: Python Program-Assessment 4.3
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from scipy.optimize import minimize
sns.set()
# Solve for Temperature of Steam at given Pressure
class enviroment_convective:
def tem... | [
1,
396,
5920,
1754,
363,
529,
5813,
29958,
13,
29937,
29871,
29896,
29906,
27782,
309,
29871,
29906,
29900,
29906,
29896,
13,
29937,
19245,
341,
1806,
13,
29937,
15710,
1963,
264,
28342,
29901,
5132,
7835,
29899,
7900,
404,
358,
29871,
29... |
manage.py | Vanzct/xp | 0 | 38676 | <gh_stars>0
# coding=utf-8
__author__ = 'Van'
import os
import sys
from flask.ext.script import Manager, Shell
# from flask.ext.migrate import Migrate, MigrateCommand
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from app import create_app
mode = os.getenv('APP_CONFIG_MODE') or 'default'
if mode:
m... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
1649,
8921,
1649,
353,
525,
29963,
273,
29915,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
3166,
29784,
29889,
1062,
29889,
2154,
1053,
15629,
... |
json2csv.py | glvnst/json2csv | 3 | 161571 | #!/usr/bin/env python
"""
json2csv: Convert a json file into a csv file
"""
import argparse
import sys
import json
import csv
import codecs
import cStringIO
import os
import collections
class UnicodeWriter(object):
"""
A CSV writer which will write rows to output filehandle "stream",
which is encoded in t... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
13,
3126,
29906,
7638,
29901,
14806,
263,
4390,
934,
964,
263,
11799,
934,
13,
15945,
29908,
13,
5215,
1852,
5510,
13,
5215,
10876,
13,
5215,
4390,
13,
5215,
11799,
13,
... |
739.py | wilbertgeng/LeetCode_exercise | 0 | 79808 | """739. Daily Temperatures"""
class Solution(object):
def dailyTemperatures(self, T):
"""
:type T: List[int]
:rtype: List[int]
"""
## R2:
res = [0 for _ in range(len(T))]
stack = []
for pos, tem in enumerate(T):
while stack and T[stack[-1... | [
1,
9995,
29955,
29941,
29929,
29889,
23331,
6789,
546,
3698,
15945,
29908,
13,
13,
1990,
24380,
29898,
3318,
1125,
13,
1678,
822,
14218,
5776,
546,
3698,
29898,
1311,
29892,
323,
1125,
13,
4706,
9995,
13,
4706,
584,
1853,
323,
29901,
23... |
dateparser/data/numeral_translation_data/se.py | bazingarj/dateparser | 8 | 1608652 | <reponame>bazingarj/dateparser<gh_stars>1-10
# -*- coding: utf-8 -*-
info = {
"%spellout-cardinal": {
"0": "nolla;",
"1": "okta;",
"2": "guokte;",
"3": "golbma;",
"4": "njeallje;",
"5": "vihtta;",
"6": "guhtta;",
"7": "čieža;",
"8": "gávcci;",
... | [
1,
529,
276,
1112,
420,
29958,
27975,
292,
279,
29926,
29914,
1256,
16680,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3888,
353,... |
face.py | 1MT3J45/DS-StockAnalysis | 0 | 36263 | <reponame>1MT3J45/DS-StockAnalysis
from kivy.uix.boxlayout import BoxLayout
from kivy.lang import Builder
from kivy.app import App
import YP03
import sys
import dfgui
import pandas as pd
Builder.load_string('''
<faceTool>:
num1: num1
result: result
orientation: 'vertical'
BoxLayout:
orientation... | [
1,
529,
276,
1112,
420,
29958,
29896,
11490,
29941,
29967,
29946,
29945,
29914,
8452,
29899,
20754,
384,
21067,
4848,
13,
3166,
413,
440,
29891,
29889,
29884,
861,
29889,
1884,
2680,
1053,
11773,
3453,
13,
3166,
413,
440,
29891,
29889,
38... |
Basic Text/BasicTextEditor2.0.py | PyHubs/Workspace-UX | 0 | 169523 | <filename>Basic Text/BasicTextEditor2.0.py
from tkinter import*
from tkinter import filedialog
from tkinter import font
root=Tk()
root.title("Basictext2.0")
root.geometry("1199x650")
# creating main frame
my_frame = Frame(root).pack(pady=5)
# create main text box
my_text = Text(my_frame, width=97, height=25, font=("... | [
1,
529,
9507,
29958,
16616,
3992,
29914,
16616,
1626,
15280,
29906,
29889,
29900,
29889,
2272,
13,
3166,
18883,
1639,
1053,
29930,
13,
3166,
18883,
1639,
1053,
934,
15901,
13,
3166,
18883,
1639,
1053,
4079,
13,
13,
4632,
29922,
29911,
298... |
scraping codes/btis.py | shreyakupadhyay/prof-raj | 2 | 63459 | <gh_stars>1-10
import requests
import json
base_url = 'http://www.btis.in/bcity_issues_transport.txt'
headers = {"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/48.0.2564.82 Chrome/48.0.2564.82 Safari/537.36"}
html = requests.get(base_url,headers=headers)
htmltext =... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
7274,
13,
5215,
4390,
13,
3188,
29918,
2271,
353,
525,
1124,
597,
1636,
29889,
3116,
275,
29889,
262,
29914,
12328,
537,
29918,
12175,
29918,
27882,
29889,
3945... |
texion/utils/preprocess.py | AnjanaRita/texion | 1 | 99916 | """text preprocessing utility functions"""
from textacy import preprocess, preprocess_text
| [
1,
9995,
726,
758,
19170,
19725,
3168,
15945,
29908,
13,
13,
13,
3166,
1426,
4135,
1053,
758,
5014,
29892,
758,
5014,
29918,
726,
13,
2
] |
setup.py | nrecoder/CardioPy | 3 | 48255 | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name = 'cardiopy',
version = "1.0.0",
author = "<NAME>",
author_email = "<EMAIL>",
description = "Analysis package for single-lead clinical EKG data",
long_description = long_description,
long_description_conte... | [
1,
1053,
731,
21245,
8789,
13,
13,
2541,
1722,
703,
16310,
2303,
29889,
3487,
613,
376,
29878,
1159,
408,
285,
29882,
29901,
13,
12,
5426,
29918,
8216,
353,
285,
29882,
29889,
949,
580,
13,
13,
842,
21245,
8789,
29889,
14669,
29898,
1... |
release/stubs.min/System/ComponentModel/__init___parts/NullableConverter.py | tranconbv/ironpython-stubs | 0 | 1612823 | <reponame>tranconbv/ironpython-stubs
class NullableConverter(TypeConverter):
"""
Provides automatic conversion between a nullable type and its underlying primitive type.
NullableConverter(type: Type)
"""
def ZZZ(self):
"""hardcoded/mock instance of the class"""
return NullableConverter()
instance... | [
1,
529,
276,
1112,
420,
29958,
509,
273,
535,
29890,
29894,
29914,
381,
265,
4691,
29899,
303,
23954,
13,
1990,
19014,
519,
18545,
29898,
1542,
18545,
1125,
30004,
13,
9995,
30004,
13,
9133,
2247,
18428,
11301,
1546,
263,
1870,
519,
113... |
ihs/collector/tasks.py | la-mar/ihs-deo | 0 | 27085 | from __future__ import annotations
import logging
from datetime import date, datetime, timedelta
from typing import Dict, Generator, List, Optional, Union, Tuple
import pandas as pd
import metrics
from api.models import ( # noqa
ChangeDeleteLog,
County,
ProductionHorizontal,
ProductionMasterHorizont... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
5215,
12183,
13,
3166,
12865,
1053,
2635,
29892,
12865,
29892,
5335,
287,
2554,
13,
3166,
19229,
1053,
360,
919,
29892,
3251,
1061,
29892,
2391,
29892,
28379,
29892,
7761,
29892,
12603... |
code/advent_of_code_day3.py | erinleeryan/2020adventofcode | 0 | 3161 | <gh_stars>0
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import numpy as np
import math
# In[2]:
fileObj = open('../data/advent_of_code_input_day_three.txt', "r") #opens the file in read mode.
items = fileObj. read(). splitlines() #puts the file into an array.
# In[3]:
#print (items)
def split(line):
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
29937,
512,
29961,
29896,
5387,
13,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
5... |
PyOpdb/self_PyOpdb/format/handle.py | GodInLove/OPDB | 1 | 131641 | <filename>PyOpdb/self_PyOpdb/format/handle.py<gh_stars>1-10
import re
import os
import sys
import NCBI_API
def extract_Synonym(ref_path, result_path):
"""
:method: a method to change like "b0001" to "thrL"
:param ref_path: string
:param result_path: string
:return:void(some files in result_path... | [
1,
529,
9507,
29958,
19737,
11746,
2585,
29914,
1311,
29918,
19737,
11746,
2585,
29914,
4830,
29914,
8411,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
337,
13,
13,
5215,
2897,
13,
13,
5215,
10... |
crossvalidation_pipeline.py | ktian08/6784-drugs | 1 | 26643 | # -*- coding: utf-8 -*-
"""
<NAME>
Computational Biologist
Target Sciences
GSK
<EMAIL>
"""
import sys
import get_generalizable_features
import get_merged_features
import get_useful_features
def main(validation_rep=0, validation_fold=0):
print('VALIDATION_REP: {0!s}, VALIDATION_FOLD:{1!s}'.format(validation_r... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
29966,
5813,
29958,
13,
20606,
1288,
3457,
19915,
13,
8667,
17253,
13,
10749,
29968,
13,
29966,
26862,
6227,
29958,
13,
15945,
29908,
1... |
utils/nth_root.py | kbrose/project_euler | 1 | 1609301 | <filename>utils/nth_root.py
def nth_root(x,n): # credit http://stackoverflow.com/questions/356090/, <NAME>
"""Finds the integer component of the n'th root of x,
an integer such that y ** n <= x < (y + 1) ** n.
"""
high = 1
while high ** n < x:
high *= 2
low = high/2
while low < high:... | [
1,
529,
9507,
29958,
13239,
29914,
20800,
29918,
4632,
29889,
2272,
13,
1753,
302,
386,
29918,
4632,
29898,
29916,
29892,
29876,
1125,
396,
16200,
1732,
597,
2417,
29889,
510,
29914,
2619,
29914,
29941,
29945,
29953,
29900,
29929,
29900,
19... |
neo/test/coretest/test_irregularysampledsignal.py | alafuzof/python-neo | 0 | 130181 | # -*- coding: utf-8 -*-
"""
Tests of the neo.core.irregularlysampledsignal.IrregularySampledSignal class
"""
import unittest
import os
import pickle
import warnings
from copy import deepcopy
import numpy as np
import quantities as pq
from numpy.testing import assert_array_equal
from neo.core.dataobject import Array... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
24376,
310,
278,
452,
29877,
29889,
3221,
29889,
381,
15227,
368,
11249,
29881,
25436,
29889,
29902,
29878,
1727,
352,
653,
17708,
29881,... |
src/stactools/sentinel2/utils.py | constantinius/sentinel2 | 1 | 129896 | <gh_stars>1-10
def extract_gsd(image_path: str) -> float:
return float(image_path[-7:-5])
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1753,
6597,
29918,
3174,
29881,
29898,
3027,
29918,
2084,
29901,
851,
29897,
1599,
5785,
29901,
13,
1678,
736,
5785,
29898,
3027,
29918,
2084,
14352,
29955,
13018,
2994... |
services/scraper.py | AlperRehaYAZGAN/ytu-web-data-mining-termpaper | 0 | 109275 | from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
class Scraper():
Newlines = re.compile(r'[\r\n]\s+')
def __init__(self):
pass
def scrape_url_text_content(self,url):
return self.__get_page_text_content(url)
def __get_page_text_content(self,u... | [
1,
515,
3142,
1982,
29889,
3827,
1053,
5065,
417,
2238,
29871,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
5215,
337,
13,
13,
1990,
2522,
336,
546,
7295,
13,
1678,
1570,
9012,
353,
337,
29889,
12198,
29898,
29878,
29915,
7110,... |
Codigos Python/Contains_Duplicate_II.py | BrunoHarlis/Solucoes_LeetCode | 0 | 62387 | <filename>Codigos Python/Contains_Duplicate_II.py
# Fonte: https://leetcode.com/problems/contains-duplicate-ii/
# Autor: <NAME>
# Data: 21/09/2021
"""
PROBLEMA PROSPOSTO:
Dado um array inteiro nums e um inteiro k, retorna true se houver dois
índices distintos i e j no array tal nums[i] == nums[j] e abs(i - j) <= k.
... | [
1,
529,
9507,
29958,
29907,
397,
19336,
5132,
29914,
21409,
29918,
29928,
786,
5926,
29918,
2687,
29889,
2272,
13,
29937,
383,
9568,
29901,
2045,
597,
280,
300,
401,
29889,
510,
29914,
17199,
29879,
29914,
11516,
29899,
20908,
5926,
29899,
... |
atrous_conv.py | pit-ray/Anime-Semantic-Segmentation-GAN | 36 | 89013 | # coding: utf-8
import chainer.links as L
from spectral_norms import SNConv, SNHookConv
class AtrousConv(L.DilatedConvolution2D):
def __init__(self, in_channels, out_channels, ksize=None, rate=1, initialW=None):
super().__init__(in_channels, out_channels, ksize=ksize, stride=1, pad=rate, dilate=rate, init... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
5215,
521,
4008,
29889,
4965,
408,
365,
13,
3166,
23161,
29918,
12324,
29879,
1053,
21989,
1168,
29894,
29892,
21989,
29950,
2550,
1168,
29894,
13,
13,
13,
1990,
319,
509,
681,
1168,
29894,
... |
src/main.py | GiantBlargg/cbdl | 0 | 190548 | <gh_stars>0
import click
from squif import SquiCol
from sites import siteHandle
@click.command()
@click.option("--dest", "-d", type=click.Path(file_okay=False), default=".")
@click.option(
"--output", "-o", default="{{{series}}}/{{{title}}}.cbz/{{{name}}}.{{{ext}}}")
@click.argument("URL", nargs=-1, required=True)
d... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2828,
13,
3166,
10674,
361,
1053,
317,
6578,
1625,
13,
3166,
11840,
1053,
3268,
13554,
13,
13,
13,
29992,
3808,
29889,
6519,
580,
13,
29992,
3808,
29889,
3385,
703,
489,
7854,
6... |
py/tests/problems/linkedlist/partition_test.py | bmoretz/Daily-Coding-Problem | 1 | 146465 | import unittest
from dcp.problems.linkedlist.single import build_list
from dcp.problems.linkedlist.partition import partition1
class Test_Partition1(unittest.TestCase):
def setUp(self):
pass
def test_case1(self):
assert partition1(None, 0) == None
def test_case2(self):
... | [
1,
1053,
443,
27958,
13,
13,
3166,
270,
6814,
29889,
17199,
29879,
29889,
2324,
287,
1761,
29889,
14369,
1053,
2048,
29918,
1761,
13,
3166,
270,
6814,
29889,
17199,
29879,
29889,
2324,
287,
1761,
29889,
16707,
1053,
8877,
29896,
13,
13,
... |
spinup/algos/pytorch/dppo/test_hvp.py | XiaohanZhangCMU/spinningup | 2 | 191110 | <reponame>XiaohanZhangCMU/spinningup
# Demonstrate
# 1. Pearlmutter hvp theory works
# 2. j-towns 3 backward prop trick works
from autograd import numpy as np
import autograd.numpy.random as npr
from autograd.test_util import check_grads, check_equivalent
from autograd import (grad, elementwise_grad, jacobian, value_a... | [
1,
529,
276,
1112,
420,
29958,
29990,
423,
1148,
273,
29999,
11895,
24494,
29965,
29914,
1028,
262,
1076,
786,
13,
29937,
4432,
265,
710,
403,
13,
29937,
29871,
29896,
29889,
21265,
29880,
6149,
357,
298,
29894,
29886,
6368,
1736,
13,
2... |
draw_many_line.py | MeetDevin/WebCrawler | 3 | 98244 | <gh_stars>1-10
# coding: utf-8
# ---
# @File: draw_many_line.py
# @description: 用 matplotlib 在一幅图上绘多条折线,从读取 tensorboard 保存的数据,其在 eager_main 中保存
# @Author: <NAME>
# @E-mail: <EMAIL>
# @Time: 1月11, 2019
# ---
from tensorboard.backend.event_processing import event_accumulator
import matplotlib.pyplot as plt
import matplo... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
29937,
11474,
13,
29937,
732,
2283,
29901,
4216,
29918,
13011,
29918,
1220,
29889,
2272,
13,
29937,
732,
8216,
29901,
2987... |
anuga/structures/tests/test_inlet_operator.py | samcom12/anuga_core | 136 | 131945 | #!/usr/bin/env python
from __future__ import division
from past.utils import old_div
import unittest
import os.path
import sys
import numpy
import anuga
from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
from anuga.shallow_water.shallow_water_domain import Domain
from anuga.abstract_2d_fini... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
4940,
29889,
13239,
1053,
2030,
29918,
4563,
13,
5215,
443,
27958,
13,
5215,
2897,
29889,
2084,
13,
5215,
10876,
13,
13,
... |
gitgud/skills/basics/__init__.py | osai-mirrors/git-gud | 133 | 132803 | <gh_stars>100-1000
from gitgud.util import Skill
from gitgud.util.level_builder import BasicLevel
skill = Skill(
'Basics',
'basics',
[
BasicLevel('Introduction to Commits', 'committing', __name__),
BasicLevel('Branching in Git', 'branching', __name__),
BasicLevel('Merging in Git', '... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
3166,
6315,
29887,
566,
29889,
4422,
1053,
4971,
453,
13,
3166,
6315,
29887,
566,
29889,
4422,
29889,
5563,
29918,
16409,
1053,
19219,
10108... |
django_project/spa/urls.py | aliyaandabekova/DJANGO_PROJECT | 0 | 55060 | from django.urls import path
from .views import *
urlpatterns = [
path('',homepage,name='home'),
path('services/',services, name='services'),
path('masters/',masters, name='masters'),
path('register/',register_page,name='register'),
path('login/',login_page, name='login'),
path('master_detail/<... | [
1,
515,
9557,
29889,
26045,
1053,
2224,
13,
3166,
869,
7406,
1053,
334,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
2224,
877,
742,
5184,
3488,
29892,
978,
2433,
5184,
5477,
13,
1678,
2224,
877,
9916,
29914,
742,
9916,
29892,
1024... |
python/zephyr/datasets/score_dataset.py | r-pad/zephyr | 18 | 6946 | <filename>python/zephyr/datasets/score_dataset.py
import os, copy
import cv2
from functools import partial
import numpy as np
import torch
import torchvision
from torch.utils.data import Dataset
from zephyr.data_util import to_np, vectorize, img2uint8
from zephyr.utils import torch_norm_fast
from zephyr.ut... | [
1,
529,
9507,
29958,
4691,
29914,
911,
561,
4316,
29914,
14538,
1691,
29914,
13628,
29918,
24713,
29889,
2272,
13,
5215,
2897,
29892,
3509,
30004,
13,
5215,
13850,
29906,
30004,
13,
3166,
2090,
312,
8789,
1053,
7687,
30004,
13,
30004,
13,... |
test_mini_project6.py | chubbypanda/principles-of-computing | 22 | 127729 | # unit tests for Mini-project 6 (Tic-Tac-Toe), by k., 07/25/2014
import unittest
from mini_project6 import TTTBoard
from mini_project6 import mm_move
from mini_project6 import DRAW, EMPTY, PLAYERO, PLAYERX
class TestFunction(unittest.TestCase):
def setUp(self):
pass
def test_move_it(self):
bo... | [
1,
396,
5190,
6987,
363,
341,
2172,
29899,
4836,
29871,
29953,
313,
29911,
293,
29899,
29911,
562,
29899,
1762,
29872,
511,
491,
413,
1696,
29871,
29900,
29955,
29914,
29906,
29945,
29914,
29906,
29900,
29896,
29946,
13,
13,
5215,
443,
27... |
datastore/shared/postgresql_backend/create_schema.py | jsangmeister/openslides-datastore-service | 0 | 181707 | import os
from datastore.shared.di import injector
from datastore.shared.postgresql_backend import ConnectionHandler
def create_schema() -> None:
"""
Helper function to write the database schema into the database.
"""
connection_handler = injector.get(ConnectionHandler)
with connection_handler.ge... | [
1,
1053,
2897,
13,
13,
3166,
1418,
579,
487,
29889,
12366,
29889,
6051,
1053,
11658,
272,
13,
3166,
1418,
579,
487,
29889,
12366,
29889,
29272,
29918,
27852,
1053,
15160,
4598,
13,
13,
13,
1753,
1653,
29918,
11010,
580,
1599,
6213,
2990... |
iap/example_gce_backend.py | HoleCat/echarlosperros | 0 | 98685 | # 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 applicable... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29955,
5087,
9266,
29889,
2178,
26863,
2538,
9841,
22993,
13,
29937,
30004,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
... |
curious_classes.py | sebball/etsy-shop-manager-api-v3 | 1 | 185411 | import curious_functions as cf
import curious_variables as cv
import typing
import logging
import useful_functions
# import curious_variables as cv
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.CRITICAL)
log = logging.critical("Testing program:")
class Shop:
def __init__(s... | [
1,
1053,
12758,
29918,
12171,
408,
274,
29888,
30004,
13,
5215,
12758,
29918,
20897,
408,
13850,
30004,
13,
5215,
19229,
30004,
13,
5215,
12183,
30004,
13,
30004,
13,
30004,
13,
5215,
5407,
29918,
12171,
30004,
13,
29937,
1053,
12758,
299... |
Website Code/flask_backend/database/module_db.py | camillesanchez/history-movie-index2 | 0 | 99403 | from historical_periods.scraping_histo_periods_tt import get_dictionary_from_json, get_historical_dictionary, save_dictionary_as_json
import sys, os
sys.path.insert(0,"/Users/camillesanchez/Desktop/hmi/imdbpy-master/")
from imdb import IMDb
def getIMDbDataFromFields(IMDb_id, *fields):
""" Returns IMDb Datas from I... | [
1,
515,
15839,
29918,
19145,
29879,
29889,
1557,
2390,
292,
29918,
29882,
5137,
29918,
19145,
29879,
29918,
698,
1053,
679,
29918,
27126,
29918,
3166,
29918,
3126,
29892,
679,
29918,
16211,
936,
29918,
27126,
29892,
4078,
29918,
27126,
29918,... |
tests/unit/dynamodb/test_layer1.py | prufrax/boto | 0 | 1611099 | #!/usr/bin/env python
import json
import mock
import boto
from mock import Mock
try:
import unittest2 as unittest
except ImportError:
import unittest
from boto.dynamodb.layer1 import Layer1
class TestDDBConnectionProviderOverride(unittest.TestCase):
def test_provider_override(self):
alt_provider =... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
4390,
13,
5215,
11187,
13,
5215,
289,
3747,
13,
3166,
11187,
1053,
26297,
13,
2202,
29901,
13,
1678,
1053,
443,
27958,
29906,
408,
443,
27958,
13,
19499,
16032,
2392,
29901,
... |
afterglow_core/schemas/api/v1/jobs/photometry_job.py | SkynetRTN/afterglow-access-server | 2 | 71583 | <gh_stars>1-10
"""
Afterglow Core: batch photometry job schemas
"""
from typing import List as TList
from marshmallow.fields import Integer, List, Nested
from ..job import JobSchema, JobResultSchema
from ..photometry import PhotSettingsSchema, PhotometryDataSchema
from ..source_extraction import SourceExtractionData... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
13555,
29887,
677,
10239,
29901,
9853,
6731,
7843,
4982,
1364,
8609,
13,
15945,
29908,
13,
13,
3166,
19229,
1053,
2391,
408,
323,
1293,
13,
13,
31... |
cle/backends/externs/__init__.py | orion--/cle | 0 | 1616901 | import logging
from cle.backends import Backend, Symbol, Segment, SymbolType
from cle.backends.relocation import Relocation
from cle.utils import ALIGN_UP
from cle.errors import CLEOperationError, CLEError
from cle.address_translator import AT
l = logging.getLogger(name=__name__)
class ExternSegment(Segment):
de... | [
1,
1053,
12183,
13,
13,
3166,
4531,
29889,
1627,
1975,
1053,
7437,
355,
29892,
23858,
29892,
6667,
358,
29892,
23858,
1542,
13,
3166,
4531,
29889,
1627,
1975,
29889,
276,
5479,
1053,
6376,
10610,
13,
3166,
4531,
29889,
13239,
1053,
319,
... |
.frameworks/skdaccess/GLDAS_Data.py | MITeaps/codesnippets | 0 | 57365 | # Start and end date
gldas_start_date = '2010-01-01'
gldas_end_date = '2014-01-01'
# Location (Latitude and Longitude)
gldas_geo_point = AutoParam([(38, -117), (38, -118)])
# Create data fetcher
gldasdf = GLDASDF([gldas_geo_point],start_date=gldas_start_date,
end_date=gldas_end_date, resample=Fals... | [
1,
396,
7370,
322,
1095,
2635,
13,
29887,
430,
294,
29918,
2962,
29918,
1256,
353,
525,
29906,
29900,
29896,
29900,
29899,
29900,
29896,
29899,
29900,
29896,
29915,
13,
29887,
430,
294,
29918,
355,
29918,
1256,
259,
353,
525,
29906,
29900... |
polltask/tasks/task_execute_system_opt.py | xuweiliang/Codelibrary | 0 | 62772 | #-*- coding: utf-8 -*-
from polltask.task import Task
class TaskExecuteSystemOpt(Task):
def __init__(self, status_queue):
super(TaskExecuteSystemOpt, self).__init__(status_queue,
'TaskExecuteSystemOpt',
... | [
1,
396,
29899,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
29871,
13,
13,
3166,
1248,
1896,
1278,
29889,
7662,
1053,
9330,
13,
13,
13,
1990,
9330,
12296,
3924,
20624,
29898,
5398,
1125,
13,
1678,
822,
4770,
2344,
... |
util/import/raze/crates.bzl | silas-enf/rules_rust | 1 | 13202 | <reponame>silas-enf/rules_rust<gh_stars>1-10
"""
@generated
cargo-raze generated Bazel file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # bui... | [
1,
529,
276,
1112,
420,
29958,
25590,
294,
29899,
23578,
29914,
19238,
29918,
23575,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
29992,
13525,
13,
29883,
7921,
29899,
336,
911,
5759,
350,
834,
... |
eigenface.py | lion-tohiro/MyEigenface | 0 | 39249 | from cv2 import cv2
import numpy as np
import sys
import os
from base import normalize
# some parameters of training and testing data
train_sub_count = 40
train_img_count = 5
total_face = 200
row = 70
col = 70
def eigenfaces_train(src_path):
img_list = np.empty((row*col, total_face))
count = 0
... | [
1,
515,
13850,
29906,
1053,
13850,
29906,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
10876,
30004,
13,
5215,
2897,
30004,
13,
3166,
2967,
1053,
4226,
675,
30004,
13,
30004,
13,
29937,
777,
4128,
310,
6694,
322,
6724,
848,
30004... |
compiler/extensions/python/runtime/src/zserio/bitfield.py | PeachOS/zserio | 2 | 26963 | <filename>compiler/extensions/python/runtime/src/zserio/bitfield.py
"""
The module provides help methods for bit fields calculation.
"""
from zserio.exception import PythonRuntimeException
def getBitFieldLowerBound(length):
"""
Gets the lower bound of a unsigned bitfield type with given length.
:param le... | [
1,
529,
9507,
29958,
21789,
29914,
24299,
29914,
4691,
29914,
15634,
29914,
4351,
29914,
29920,
643,
601,
29914,
2966,
2671,
29889,
2272,
13,
15945,
29908,
13,
1576,
3883,
8128,
1371,
3519,
363,
2586,
4235,
13944,
29889,
13,
15945,
29908,
... |
functions/dissectData/lambda_handler.py | zinedine-zeitnot/anomaly-detection | 3 | 23678 | <filename>functions/dissectData/lambda_handler.py<gh_stars>1-10
from data_dissector import DataDissector
def handler(event, _):
switchpoint_trio = DataDissector.dissect_data(data=event['data'])
return {
"switchpoint": switchpoint_trio.switchpoint,
"preSwitchAverage": switchpoint_trio.pre_... | [
1,
529,
9507,
29958,
12171,
29914,
2218,
8803,
1469,
29914,
2892,
29918,
13789,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
848,
29918,
2218,
344,
2801,
1053,
3630,
4205,
344,
2801,
13,
13,
13... |
VkChatBot/bot.py | valerii-chirkov/PythonToolsAndPrograms | 0 | 69954 | import requests
from pony.orm import db_session
from chatbot import handlers
import _token
from chatbot.models import UserState, Registration
try:
import settings
except ImportError:
exit('Do cp settings.py.default settings.py and set token!')
from vk_api import VkApi
from vk_api.bot_longpoll import VkBotLon... | [
1,
1053,
7274,
13,
3166,
282,
2592,
29889,
555,
1053,
4833,
29918,
7924,
13,
13,
3166,
13563,
7451,
1053,
25795,
13,
5215,
903,
6979,
13,
3166,
13563,
7451,
29889,
9794,
1053,
4911,
2792,
29892,
2169,
8306,
13,
13,
2202,
29901,
13,
16... |
_conf.py | rohe/dstester | 1 | 61130 | <gh_stars>1-10
from saml2 import BINDING_HTTP_REDIRECT
from saml2 import BINDING_HTTP_POST
from saml2.extension.idpdisc import BINDING_DISCO
from saml2.saml import NAME_FORMAT_URI
#BASE= "http://localhost:8087"
BASE = "https://lingon.ladok.umu.se:8087"
CONFIG = {
"entityid": "%s/sp.xml" % BASE,
"description":... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
3514,
29880,
29906,
1053,
350,
22255,
4214,
29918,
10493,
29918,
1525,
4571,
26282,
13,
3166,
3514,
29880,
29906,
1053,
350,
22255,
4214,
29918,
10493,
29918,
543... |
import_data.py | arcyfelix/Object-Shape-Classification-Utilizing-Magnetic-Field-Disturbance-and-Supervised-Machine-Learning | 1 | 88381 | <filename>import_data.py<gh_stars>1-10
import pandas as pd
import numpy as np
from tflearn.data_utils import to_categorical
from import_data import *
def import_csv(file_path, shuffle = False):
data = pd.read_csv(file_path)
print('*' * 70)
print('Import CSV file has been successful!')
if shuffle == Tru... | [
1,
529,
9507,
29958,
5215,
29918,
1272,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
3166,
15886,
19668,
29889,
1272,
29918,
13239,
1053,
304,
... |
pynics/binparse/castep_bin_results.py | ThatPerson/pynics | 2 | 17712 | <filename>pynics/binparse/castep_bin_results.py
# Python 2-to-3 compatibility code
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import collections
from pynics.binparse.forbinfile import RecordError
def cbin_result... | [
1,
529,
9507,
29958,
29886,
948,
1199,
29914,
2109,
5510,
29914,
29883,
4350,
29886,
29918,
2109,
29918,
9902,
29889,
2272,
13,
29937,
5132,
29871,
29906,
29899,
517,
29899,
29941,
24521,
775,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
... |
common/read_fasta.py | christophfeinauer/PairwiseDistillations | 1 | 91315 | import numpy as np
from collections import defaultdict
import sys
import argparse
# we rely on ordered dictionaries here
assert sys.version_info >= (3, 6)
def read_fasta(fasta_path, alphabet='ACDEFGHIKLMNPQRSTVWY-', default_index=20):
# read all the sequences into a dictionary
seq_dict = {}
with open(fa... | [
1,
1053,
12655,
408,
7442,
13,
3166,
16250,
1053,
2322,
8977,
13,
5215,
10876,
13,
5215,
1852,
5510,
13,
13,
29937,
591,
19104,
373,
10372,
21503,
4314,
1244,
13,
9294,
10876,
29889,
3259,
29918,
3888,
6736,
313,
29941,
29892,
29871,
29... |
tpi1/tree_search.py | vascoalramos/ia | 1 | 78981 | <filename>tpi1/tree_search.py<gh_stars>1-10
# Module: tree_search
#
# This module provides a set o classes for automated
# problem solving through tree search:
# SearchDomain - problem domains
# SearchProblem - concrete problems to be solved
# SearchNode - search tree nodes
# SearchTree - s... | [
1,
529,
9507,
29958,
29873,
1631,
29896,
29914,
8336,
29918,
4478,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
30004,
13,
29937,
15591,
29901,
5447,
29918,
4478,
30004,
13,
29937,
6756,
13,
29937,
910... |
pbr/scene/shadowcatcher.py | vuvuzella/nubots-pbr | 1 | 173309 | #!/usr/local/blender -P
import bpy
from scene.blender_object import BlenderObject
class ShadowCatcher(BlenderObject):
def __init__(self):
bpy.ops.mesh.primitive_plane_add()
self.obj = bpy.data.objects["Plane"]
self.obj.name = "SC_Plane"
self.obj.cycles.is_shadow_catcher = True
... | [
1,
18787,
4855,
29914,
2997,
29914,
2204,
1581,
448,
29925,
13,
13,
5215,
289,
2272,
13,
13,
3166,
9088,
29889,
2204,
1581,
29918,
3318,
1053,
3164,
1581,
2061,
13,
13,
13,
1990,
1383,
6986,
29907,
905,
261,
29898,
10358,
1581,
2061,
... |
keystone/tests/unit/test_v3_assignment.py | crowdy/keystone | 0 | 101 | # 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
# distributed under t... | [
1,
396,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
13,
29937,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
887,
1122,
4017,
1... |
Other/pdf2imageTest.py | Wanganator414/python | 1 | 29291 | from pdf2image import convert_from_path, convert_from_bytes
from pdf2image.exceptions import (
PDFInfoNotInstalledError,
PDFPageCountError,
PDFSyntaxError
)
images = convert_from_path('.\git_cheat_sheet.pdf')
| [
1,
515,
13552,
29906,
3027,
1053,
3588,
29918,
3166,
29918,
2084,
29892,
3588,
29918,
3166,
29918,
13193,
13,
3166,
13552,
29906,
3027,
29889,
11739,
29879,
1053,
313,
13,
1678,
11328,
3401,
3664,
3379,
4212,
2392,
29892,
13,
1678,
11328,
... |
cmd_chess_util.py | ilius/chess-challange | 1 | 1603125 | """
contains some chess-related utility functions to use in command line
"""
from pieces import ChessPiece
from cmd_util import input_int
PIECE_SYMBOLS = 'KQBRN' # must not re-order
def input_pieces_count(row_count, col_count):
"""
ask the user the number or chess pieces of each type
return a dict { pi... | [
1,
9995,
13,
11516,
777,
521,
404,
29899,
12817,
19725,
3168,
304,
671,
297,
1899,
1196,
13,
15945,
29908,
13,
13,
3166,
12785,
1053,
678,
404,
29925,
347,
346,
13,
3166,
9920,
29918,
4422,
1053,
1881,
29918,
524,
13,
13,
2227,
29923,... |
var/spack/repos/builtin/packages/py-flit-core/package.py | zygyz/spack | 348 | 46740 | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import glob
import os
import zipfile
from spack import *
class PyFlitCore(PythonPackage):
"""Distribution-building ... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29941,
29899,
29906,
29900,
29906,
29896,
19520,
22469,
5514,
3086,
14223,
29892,
365,
12182,
322,
916,
13,
29937,
1706,
547,
8010,
10682,
414,
29889,
2823,
278,
2246,
29899,
5563,
315,
4590,... |
peekingduck/pipeline/nodes/draw/group_bbox_and_tag.py | ericleehy/PeekingDuck | 1 | 53931 | <gh_stars>1-10
# Copyright 2022 AI Singapore
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29906,
319,
29902,
25960,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
... |
inventory.py | Jongerr/vendor_receiving | 0 | 6705 | import json
import os
import random
import requests
from passlib.hash import pbkdf2_sha256 as pbk
from PyQt5.QtSql import QSqlDatabase, QSqlQuery
from pprint import pprint
ENCODING = 'utf-8'
DB_PATH = os.path.join(os.path.curdir, 'inventory.db')
def scrambleWord(word):
"""Randomize the letters in word and retur... | [
1,
1053,
4390,
13,
5215,
2897,
13,
5215,
4036,
13,
5215,
7274,
13,
3166,
1209,
1982,
29889,
8568,
1053,
282,
29890,
29895,
2176,
29906,
29918,
17051,
29906,
29945,
29953,
408,
282,
29890,
29895,
13,
3166,
10772,
17303,
29945,
29889,
17303... |
empire/server/database/base.py | iNoSec2/Empire | 0 | 72646 | <filename>empire/server/database/base.py
import subprocess
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from empire import arguments
from empire.server.common.config import empire_config
from empire.server.database import models
from empire.server.database.defaults impo... | [
1,
529,
9507,
29958,
3451,
533,
29914,
2974,
29914,
9803,
29914,
3188,
29889,
2272,
13,
5215,
1014,
5014,
13,
13,
3166,
4576,
284,
305,
6764,
1053,
1653,
29918,
10599,
13,
3166,
4576,
284,
305,
6764,
29889,
555,
1053,
16505,
287,
29918,... |
sdv/tabular/ctgan.py | joanvaquer/SDV | 0 | 16785 | <reponame>joanvaquer/SDV
"""Wrapper around CTGAN model."""
from sdv.tabular.base import BaseTabularModel
class CTGAN(BaseTabularModel):
"""Model wrapping ``CTGANSynthesizer`` model.
Args:
field_names (list[str]):
List of names of the fields that need to be modeled
and include... | [
1,
529,
276,
1112,
420,
29958,
2212,
273,
1564,
7808,
29914,
7230,
29963,
13,
15945,
29908,
15646,
2820,
26637,
29954,
2190,
1904,
1213,
15945,
13,
13,
3166,
28972,
29894,
29889,
9456,
29889,
3188,
1053,
7399,
8863,
1070,
3195,
13,
13,
... |
pyontutils/utils_extra.py | memartone/pyontutils | 0 | 80711 | <filename>pyontutils/utils_extra.py
"""
Reused utilties that depend on packages outside the python standard library.
"""
import hashlib
import rdflib
rdflib.plugin.register('librdfxml', rdflib.parser.Parser,
'pyontutils.librdf', 'libRdfxmlParser')
rdflib.plugin.register('libttl', rdflib.par... | [
1,
529,
9507,
29958,
2272,
609,
13239,
29914,
13239,
29918,
17833,
29889,
2272,
13,
15945,
29908,
13,
1678,
830,
3880,
3667,
2938,
393,
8839,
373,
9741,
5377,
278,
3017,
3918,
3489,
29889,
13,
15945,
29908,
13,
5215,
6608,
1982,
13,
521... |
HTBClient/models/machinedetails.py | BGrewell/HTBClient | 1 | 82127 |
class MachineDetails:
"""
Class to represent the HTB machine details
"""
def __init__(self, identifier, name, operating_system, ip, avatar, avatar_thumb, points, release, retired_date,
maker, maker2, ratings_pro, ratings_sucks, user_blood, root_blood, user_owns, root_owns):
s... | [
1,
29871,
13,
13,
1990,
6189,
10602,
29901,
13,
1678,
9995,
13,
1678,
4134,
304,
2755,
278,
3154,
29933,
4933,
4902,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
15882,
29892,
1024,
29892,
13598,
29918,
5205,
29892... |
tests/engine/test_scheduler.py | pronovic/vplan | 0 | 110570 | # -*- coding: utf-8 -*-
# vim: set ft=python ts=4 sw=4 expandtab:
import datetime
from unittest.mock import MagicMock, patch
import pytest
from apscheduler.triggers.cron import CronTrigger
from apscheduler.triggers.date import DateTrigger
from busypie import SECOND, wait
from tzlocal import get_localzone
from vplan.... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
325,
326,
29901,
731,
11791,
29922,
4691,
18696,
29922,
29946,
2381,
29922,
29946,
7985,
3891,
29901,
13,
13,
5215,
12865,
13,
3166,
443,
27958,
2... |
runoob100/022.py | GenweiWu/PythonDemo | 0 | 1603473 | <filename>runoob100/022.py
# _*_ coding:utf-8 _*_
#两个乒乓球队进行比赛,各出三人。甲队为a,b,c三人,乙队为x,y,z三人。
#已抽签决定比赛名单。有人向队员打听比赛的名单。a说他不和x比,c说他不和x,z比,
#请编程序找出三队赛手的名单。
#假设abc已经站在那儿了,就是xyz的组合了呀
for i in ['x','y','z']:
for j in ['x','y','z']:
for k in ['x','y','z']:
if i!=j and i!=k and j!=k:
if i!='x' and k!='x' and k!='z':
... | [
1,
529,
9507,
29958,
3389,
29877,
711,
29896,
29900,
29900,
29914,
29900,
29906,
29906,
29889,
2272,
13,
29937,
903,
29930,
29918,
14137,
29901,
9420,
29899,
29947,
903,
29930,
29918,
13,
29937,
31977,
30502,
231,
188,
149,
231,
188,
150,
... |
src/apps/trainings/migrations/0010_auto_20201012_2028.py | sanderland/katago-server | 27 | 157872 | # Generated by Django 3.0.6 on 2020-10-12 20:28
from django.db import migrations, models
import src.apps.trainings.models.network
import src.contrib.validators
class Migration(migrations.Migration):
dependencies = [
('trainings', '0009_auto_20200921_0314'),
]
operations = [
migrations.A... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29900,
29889,
29953,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29896,
29900,
29899,
29896,
29906,
29871,
29906,
29900,
29901,
29906,
29947,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
tensorlayer/googlenet.py | yellowei/AI | 0 | 91657 | <gh_stars>0
""" GoogLeNet.
Applying 'GoogLeNet' to Oxford's 17 Category Flower Dataset classification task.
References:
- Szegedy, Christian, et al.
Going deeper with convolutions.
- 17 Category Flower Dataset. <NAME> and <NAME>.
Links:
- [GoogLeNet Paper](http://www.cv-foundation.org/openaccess/content... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
2921,
468,
3226,
6779,
29889,
13,
2052,
5890,
525,
8120,
468,
3226,
6779,
29915,
304,
11045,
29915,
29879,
29871,
29896,
29955,
17943,
383,
13609,
13373,
24541,
12965,
3414,
... |
test/test_delete_contact.py | ann-drobysh/python_training | 0 | 41934 | from model.contact import Contact
import random
import allure
def test_delete_some_contact(app, db, check_ui):
if len(db.get_contacts_list()) == 0:
app.contact.add_new_contact(Contact(firstname="Testik", middlename="Midtest", lastname="Lasttest", nickname="Nickname test", title="Mrs", company="Test Company... | [
1,
515,
1904,
29889,
12346,
1053,
22387,
13,
5215,
4036,
13,
5215,
599,
545,
13,
13,
1753,
1243,
29918,
8143,
29918,
5372,
29918,
12346,
29898,
932,
29892,
4833,
29892,
1423,
29918,
1481,
1125,
13,
1678,
565,
7431,
29898,
2585,
29889,
6... |
papers/CS-F-LTR/src/convert.py | mindspore-ai/contrib | 2 | 119958 | """[summary]
Returns:
[type]: [description]
"""
import pickle
import sys
import numpy as np
def gen_label(x):
"""[summary]
Args:
x ([type]): [description]
Returns:
[type]: [description]
"""
if 1 <= x <= 10:
return 2
if 11 <= x <= 100:
return 1
return ... | [
1,
9995,
29961,
7727,
29962,
13,
13,
11609,
29879,
29901,
13,
1678,
518,
1853,
5387,
518,
8216,
29962,
13,
15945,
29908,
13,
5215,
5839,
280,
13,
5215,
10876,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
2531,
29918,
1643,
29898,
299... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.