<commit_before>from functools import partial
from warnings import warn

import fiona
from fiona.crs import from_epsg
import numpy as np
from pandas import Series, DataFrame
import pyproj
from shapely.geometry import shape, Polygon, Point
from shapely.geometry.collection import GeometryCollection
from shapely.geometry.base import BaseGeometry
from shapely.ops import cascaded_union, unary_union, transform
import shapely.affinity as affinity

from geopandas.plotting import plot_series

EMPTY_COLLECTION = GeometryCollection()
EMPTY_POLYGON = Polygon()
EMPTY_POINT = Point()


def _is_empty(x):
    try:
        return x.is_empty
    except:
        return False


def _is_geometry(x):
    return isinstance(x, BaseGeometry)


class GeoSeries(Series):
    """A Series object designed to store shapely geometry objects."""

    def __new__(cls, *args, **kwargs):
        kwargs.pop('crs', None)<commit_msg>CLN: Remove unused internal function<commit_after>from functools import partial
from warnings import warn

import fiona
from fiona.crs import from_epsg
import numpy as np
from pandas import Series, DataFrame
import pyproj
from shapely.geometry import shape, Polygon, Point
from shapely.geometry.collection import GeometryCollection
from shapely.geometry.base import BaseGeometry
from shapely.ops import cascaded_union, unary_union, transform
import shapely.affinity as affinity

from geopandas.plotting import plot_series

EMPTY_COLLECTION = GeometryCollection()
EMPTY_POLYGON = Polygon()
EMPTY_POINT = Point()


def _is_empty(x):
    try:
        return x.is_empty
    except:
        return False


class GeoSeries(Series):
    """A Series object designed to store shapely geometry objects."""

    def __new__(cls, *args, **kwargs):
        kwargs.pop('crs', None)
{'fraction_non_alphanumeric': 0.06711787930062042, 'fraction_numerical': 0.0, 'mean_word_length': 4.759740259740259, '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': '1741525', 'n_tokens_mistral': 530, 'n_tokens_neox': 511, 'n_words': 176}