<commit_before># -*- coding: utf-8 -*-

import os.path

from django.contrib.gis.gdal import DataSource
from django.contrib.gis.geos import fromstr, Point
from django.contrib.gis.geos.error import GEOSException
from django.core.management.base import BaseCommand, CommandError
from django.db import transaction

from geotrek.authent.models import default_structure
from geotrek.authent.models import Structure
from geotrek.core.helpers import TopologyHelper
from geotrek.signage.models import Signage, SignageType
from geotrek.infrastructure.models import InfrastructureCondition
from django.conf import settings


class Command(BaseCommand):
    help = 'Load a layer with point geometries in te structure model\n'
    can_import_settings = True
    counter = 0<commit_msg>Fix fromstf import<commit_after># -*- coding: utf-8 -*-

import os.path

from django.contrib.gis.gdal import DataSource
from django.contrib.gis.geos import Point
from django.contrib.gis.geos.error import GEOSException
from django.core.management.base import BaseCommand, CommandError
from django.db import transaction

from geotrek.authent.models import default_structure
from geotrek.authent.models import Structure
from geotrek.core.helpers import TopologyHelper
from geotrek.signage.models import Signage, SignageType
from geotrek.infrastructure.models import InfrastructureCondition
from django.conf import settings


class Command(BaseCommand):
    help = 'Load a layer with point geometries in te structure model\n'
    can_import_settings = True
    counter = 0
{'fraction_non_alphanumeric': 0.06428571428571428, 'fraction_numerical': 0.0025974025974025974, 'mean_word_length': 5.264227642276423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7481131', 'n_tokens_mistral': 434, 'n_tokens_neox': 425, 'n_words': 138}