<commit_before>'''
    Copyright 2014-2016 PTIN

    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 the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
'''
from .database import db
from .nfvi import NFVI
from .nap import NAP
from .interface import Interface
from .port import Port
from sqlalchemy.exc import IntegrityError

available_vlans = set(range(400, 600))


class ServiceInterface(db.Model):
    id = db.Column(db.Integer, primary_key=True, nullable=False)
    service_refid = db.Column(db.Integer, db.ForeignKey('service.id'),
                              nullable=False)

    index = db.Column(db.Integer, nullable=False)

    nfvi_refid = db.Column(db.Integer, db.ForeignKey('NFVI.id'), nullable=False)

    ce_interface_refid = db.Column(db.Integer, db.ForeignKey('interface.id'),
                                   nullable=False)
    pe_interface_refid = db.Column(db.Integer, db.ForeignKey('interface.id'),
                                   nullable=False)

    __table_args__ = (
        db.UniqueConstraint('service_refid', 'index',<commit_msg>Change max vlan aligning with athens testbed restrictions.<commit_after>'''
    Copyright 2014-2016 PTIN

    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 the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
'''
from .database import db
from .nfvi import NFVI
from .nap import NAP
from .interface import Interface
from .port import Port
from sqlalchemy.exc import IntegrityError
=`=jedi=0, =`=     (start, *_*stop=None*_*, step=1) =`=jedi=`=
available_vlans = set(range(400, 501))


class ServiceInterface(db.Model):
    id = db.Column(db.Integer, primary_key=True, nullable=False)
    service_refid = db.Column(db.Integer, db.ForeignKey('service.id'),
                              nullable=False)

    index = db.Column(db.Integer, nullable=False)

    nfvi_refid = db.Column(db.Integer, db.ForeignKey('NFVI.id'), nullable=False)

    ce_interface_refid = db.Column(db.Integer, db.ForeignKey('interface.id'),
                                   nullable=False)
    pe_interface_refid = db.Column(db.Integer, db.ForeignKey('interface.id'),
                                   nullable=False)

    __table_args__ = (
        db.UniqueConstraint('service_refid', 'index',
{'fraction_non_alphanumeric': 0.0921262352566146, 'fraction_numerical': 0.012113484220592923, 'mean_word_length': 3.107329842931937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4076453', 'n_tokens_mistral': 917, 'n_tokens_neox': 864, 'n_words': 285}