# -*- coding: utf-8 -*-
import uuid, json
from .encrypt import *
from .response import *

def generate_uuid():
    id = uuid.uuid4()
    return str(id)

def get_data(request):
    data = getattr(request, 'data', None)
    if not data:
        return None
    return json.loads(request.data)

def capwords(words):
    result = list(words)
    result[0] = result[0].capitalize()
    return "".join(result)

def get_unique(id_list):
    if len(id_list) == 0:
        return tuple()
    result = id_list[0]
    for ids in id_list[1:]:
        if len(ids) == 0:
            continue
        result.extend(ids)

    return tuple(set(result))

c91c1a8c5c0724c3168d738b1b648904b826a7b4
<mask token>


def capwords(words):
    result = list(words)
    result[0] = result[0].capitalize()
    return ''.join(result)


def get_unique(id_list):
    if len(id_list) == 0:
        return tuple()
    result = id_list[0]
    for ids in id_list[1:]:
        if len(ids) == 0:
            continue
        result.extend(ids)
    return tuple(set(result))

<mask token>


def generate_uuid():
    id = uuid.uuid4()
    return str(id)


<mask token>


def capwords(words):
    result = list(words)
    result[0] = result[0].capitalize()
    return ''.join(result)


def get_unique(id_list):
    if len(id_list) == 0:
        return tuple()
    result = id_list[0]
    for ids in id_list[1:]:
        if len(ids) == 0:
            continue
        result.extend(ids)
    return tuple(set(result))

<mask token>


def generate_uuid():
    id = uuid.uuid4()
    return str(id)


def get_data(request):
    data = getattr(request, 'data', None)
    if not data:
        return None
    return json.loads(request.data)


def capwords(words):
    result = list(words)
    result[0] = result[0].capitalize()
    return ''.join(result)


def get_unique(id_list):
    if len(id_list) == 0:
        return tuple()
    result = id_list[0]
    for ids in id_list[1:]:
        if len(ids) == 0:
            continue
        result.extend(ids)
    return tuple(set(result))

import uuid, json
from .encrypt import *
from .response import *


def generate_uuid():
    id = uuid.uuid4()
    return str(id)


def get_data(request):
    data = getattr(request, 'data', None)
    if not data:
        return None
    return json.loads(request.data)


def capwords(words):
    result = list(words)
    result[0] = result[0].capitalize()
    return ''.join(result)


def get_unique(id_list):
    if len(id_list) == 0:
        return tuple()
    result = id_list[0]
    for ids in id_list[1:]:
        if len(ids) == 0:
            continue
        result.extend(ids)
    return tuple(set(result))

# -*- coding: utf-8 -*-
import uuid, json
from .encrypt import *
from .response import *

def generate_uuid():
    id = uuid.uuid4()
    return str(id)

def get_data(request):
    data = getattr(request, 'data', None)
    if not data:
        return None
    return json.loads(request.data)

def capwords(words):
    result = list(words)
    result[0] = result[0].capitalize()
    return "".join(result)

def get_unique(id_list):
    if len(id_list) == 0:
        return tuple()
    result = id_list[0]
    for ids in id_list[1:]:
        if len(ids) == 0:
            continue
        result.extend(ids)

    return tuple(set(result))
