id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,700 | __init__.py | domlysz_BlenderGIS/core/__init__.py | import logging
logging.basicConfig(level=logging.getLevelName('INFO'))
from .checkdeps import HAS_GDAL, HAS_PYPROJ, HAS_IMGIO, HAS_PIL
from .settings import settings
from .errors import OverlapError
from .utils import XY, BBOX
from .proj import SRS, Reproj, reprojPt, reprojPts, reprojBbox, reprojImg
from .georaster... | 457 | Python | .py | 10 | 44.1 | 73 | 0.827664 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,701 | srv.py | domlysz_BlenderGIS/core/proj/srv.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This... | 5,146 | Python | .py | 137 | 34.591241 | 95 | 0.649809 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,702 | utm.py | domlysz_BlenderGIS/core/proj/utm.py |
#Original code from https://github.com/Turbo87/utm
#>simplified version that only handle utm zones (and not latitude bands from MGRS grid)
#>reverse coord order : latlon --> lonlat
#>add support for UTM EPSG codes
# more infos : http://geokov.com/education/utm.aspx
# formulas : https://en.wikipedia.org/wiki/Universa... | 5,844 | Python | .py | 172 | 30.819767 | 113 | 0.616262 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,703 | reproj.py | domlysz_BlenderGIS/core/proj/reproj.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This... | 11,580 | Python | .py | 293 | 36.501706 | 236 | 0.698495 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,704 | ellps.py | domlysz_BlenderGIS/core/proj/ellps.py | import math
class Ellps():
"""ellipsoid"""
def __init__(self, a, b):
self.a = a#equatorial radius in meters
self.b = b#polar radius in meters
self.f = (self.a-self.b)/self.a#inverse flat
self.perimeter = (2*math.pi*self.a)#perimeter at equator
GRS80 = Ellps(6378137, 6356752.314245)
def dd2meters(dst):
... | 565 | Python | .py | 19 | 27.526316 | 84 | 0.733826 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,705 | __init__.py | domlysz_BlenderGIS/core/proj/__init__.py | from .srs import SRS
from .reproj import Reproj, reprojPt, reprojPts, reprojBbox, reprojImg
from .srv import EPSGIO, TWCC
from .ellps import dd2meters, meters2dd, Ellps, GRS80
| 176 | Python | .py | 4 | 43 | 70 | 0.813953 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,706 | srs.py | domlysz_BlenderGIS/core/proj/srs.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This... | 5,093 | Python | .py | 178 | 25.455056 | 107 | 0.696864 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,707 | georaster.py | domlysz_BlenderGIS/core/georaster/georaster.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (... | 7,954 | Python | .py | 221 | 31.751131 | 111 | 0.666449 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,708 | __init__.py | domlysz_BlenderGIS/core/georaster/__init__.py | from .georef import GeoRef
from .georaster import GeoRaster
from .npimg import NpImage
from .bigtiffwriter import BigTiffWriter
from .img_utils import getImgFormat, getImgDim, isValidStream
| 190 | Python | .py | 5 | 37 | 61 | 0.864865 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,709 | npimg.py | domlysz_BlenderGIS/core/georaster/npimg.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (... | 15,054 | Python | .py | 400 | 32.99 | 120 | 0.687405 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,710 | img_utils.py | domlysz_BlenderGIS/core/georaster/img_utils.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (... | 3,817 | Python | .py | 115 | 28.826087 | 96 | 0.660229 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,711 | georef.py | domlysz_BlenderGIS/core/georaster/georef.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (... | 16,170 | Python | .py | 407 | 35.496314 | 117 | 0.677213 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,712 | bigtiffwriter.py | domlysz_BlenderGIS/core/georaster/bigtiffwriter.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | 4,094 | Python | .py | 109 | 34.541284 | 163 | 0.709123 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,713 | servicesDefs.py | domlysz_BlenderGIS/core/basemaps/servicesDefs.py | # -*- coding:utf-8 -*-
import math
####################################
# Tiles maxtrix definitions
####################################
# Three ways to define a grid (inpired by http://mapproxy.org/docs/1.8.0/configuration.html#id6):
# - submit a list of resolutions > "resolutions": [32,16,8,4] (This param... | 11,225 | Python | .py | 286 | 36.188811 | 163 | 0.587684 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,714 | mapservice.py | domlysz_BlenderGIS/core/basemaps/mapservice.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This... | 26,094 | Python | .py | 750 | 31.173333 | 157 | 0.698478 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,715 | gpkg.py | domlysz_BlenderGIS/core/basemaps/gpkg.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This... | 9,298 | Python | .py | 260 | 31.969231 | 137 | 0.688649 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,716 | __init__.py | domlysz_BlenderGIS/core/basemaps/__init__.py | from .servicesDefs import GRIDS, SOURCES
from .mapservice import MapService, TileMatrix, BBoxRequest, BBoxRequestMZ
from .gpkg import GeoPackage
| 145 | Python | .py | 3 | 47.333333 | 74 | 0.859155 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,717 | shapefile123.py | domlysz_BlenderGIS/core/lib/shapefile123.py | """
shapefile.py
Provides read and write support for ESRI Shapefiles.
author: jlawhead<at>geospatialpython.com
date: 2015/06/22
version: 1.2.3
Compatible with Python versions 2.4-3.x
version changelog: Reader.iterShapeRecords() bugfix for Python 3
"""
__version__ = "1.2.3"
from struct import pack, unpack, calcsize, e... | 46,005 | Python | .py | 1,123 | 29.004452 | 136 | 0.534446 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,718 | shapefile.py | domlysz_BlenderGIS/core/lib/shapefile.py | """
shapefile.py
Provides read and write support for ESRI Shapefiles.
author: jlawhead<at>geospatialpython.com
version: 2.1.0
Compatible with Python versions 2.7-3.x
"""
__version__ = "2.1.0"
from struct import pack, unpack, calcsize, error, Struct
import os
import sys
import time
import array
import t... | 76,938 | Python | .py | 1,747 | 31.916428 | 178 | 0.544488 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,719 | __init__.py | domlysz_BlenderGIS/core/lib/imageio/__init__.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
# This docstring is used at the index of the documentation pages, and
# gets inserted into a slightly larger description (in setup.py) for
# the page on Pypi:
"""
Imageio is a Python l... | 1,322 | Python | .py | 32 | 39.9375 | 74 | 0.775 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,720 | testing.py | domlysz_BlenderGIS/core/lib/imageio/testing.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
""" Functionality used for testing. This code itself is not covered in tests.
"""
from __future__ import absolute_import, print_function, division
import os
import sys
import i... | 7,102 | Python | .py | 205 | 26.336585 | 79 | 0.584276 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,721 | freeze.py | domlysz_BlenderGIS/core/lib/imageio/freeze.py | """
Helper functions for freezing imageio.
"""
import sys
def get_includes():
if sys.version_info[0] == 3:
urllib = ['email', 'urllib.request', ]
else:
urllib = ['urllib2']
return urllib + ['numpy', 'zipfile', 'io']
def get_excludes():
return []
| 284 | Python | .py | 12 | 19.5 | 46 | 0.602996 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,722 | util.py | domlysz_BlenderGIS/core/lib/imageio/core/util.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
"""
Various utilities for imageio
"""
from __future__ import absolute_import, print_function, division
import re
import os
import sys
import time
import struct
from warnings import w... | 18,976 | Python | .py | 473 | 31.350951 | 79 | 0.605476 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,723 | findlib.py | domlysz_BlenderGIS/core/lib/imageio/core/findlib.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# Copyright (C) 2013, Zach Pincus, Almar Klein and others
""" This module contains generic code to find and load a dynamic library.
"""
from __future__ import absolute_import, print_function, division
import os
import sys
import ctypes
LOCALDIR = o... | 6,260 | Python | .py | 142 | 36.492958 | 78 | 0.627552 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,724 | format.py | domlysz_BlenderGIS/core/lib/imageio/core/format.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
"""
.. note::
imageio is under construction, some details with regard to the
Reader and Writer classes may change.
These are the main classes of imageio. They expose an int... | 23,527 | Python | .py | 516 | 32.916667 | 79 | 0.592274 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,725 | request.py | domlysz_BlenderGIS/core/lib/imageio/core/request.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
"""
Definition of the Request object, which acts as a kind of bridge between
what the user wants and what the plugins can.
"""
from __future__ import absolute_import, print_function, ... | 17,094 | Python | .py | 384 | 32.666667 | 79 | 0.565786 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,726 | fetching.py | domlysz_BlenderGIS/core/lib/imageio/core/fetching.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# Based on code from the vispy project
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""Data downloading and reading functions
"""
from __future__ import absolute_import, print_function, division
from math import log
impor... | 7,943 | Python | .py | 187 | 34.112299 | 78 | 0.629913 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,727 | __init__.py | domlysz_BlenderGIS/core/lib/imageio/core/__init__.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
""" This subpackage provides the core functionality of imageio
(everything but the plugins).
"""
from .util import Image, Dict, asarray, image_as_uint, urlopen # noqa
from .uti... | 759 | Python | .py | 14 | 53.071429 | 78 | 0.772544 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,728 | functions.py | domlysz_BlenderGIS/core/lib/imageio/core/functions.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
"""
These functions represent imageio's main interface for the user. They
provide a common API to read and write image data for a large
variety of formats. All read and write functions... | 16,647 | Python | .py | 392 | 34.313776 | 79 | 0.633996 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,729 | freeimage.py | domlysz_BlenderGIS/core/lib/imageio/plugins/freeimage.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
""" Plugin that wraps the freeimage lib. The wrapper for Freeimage is
part of the core of imageio, but it's functionality is exposed via
the plugin system (therefore this plugin is very... | 16,988 | Python | .py | 376 | 33.640957 | 79 | 0.570798 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,730 | _freeimage.py | domlysz_BlenderGIS/core/lib/imageio/plugins/_freeimage.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
# styletest: ignore E261
""" Module imageio/freeimage.py
This module contains the wrapper code for the freeimage library.
The functions defined in this module are relatively thin; jus... | 51,955 | Python | .py | 1,126 | 33.701599 | 79 | 0.549735 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,731 | __init__.py | domlysz_BlenderGIS/core/lib/imageio/plugins/__init__.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, imageio contributors
# imageio is distributed under the terms of the (new) BSD License.
"""
Imagio is plugin-based. Every supported format is provided with a
plugin. You can write your own plugins to make imageio support
additional formats. And we would be interested in a... | 3,152 | Python | .py | 61 | 49.098361 | 77 | 0.748286 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,732 | decoders.py | domlysz_BlenderGIS/core/lib/Tyf/decoders.py | # -*- encoding:utf-8 -*-
# Copyright 2012-2015, THOORENS Bruno - http://bruno.thoorens.free.fr/licences/tyf.html
import datetime
###############
# type decoders
_1 = _3 = _4 = _6 = _8 = _9 = _11 = _12 = lambda value: value[0] if len(value) == 1 else value
_2 = lambda value: value[:-1]
def _5(value):
result = tuple... | 1,415 | Python | .py | 36 | 37.972222 | 110 | 0.666667 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,733 | gkd.py | domlysz_BlenderGIS/core/lib/Tyf/gkd.py | # -*- encoding: utf-8 -*-
# Copyright 2012-2015, THOORENS Bruno - http://bruno.thoorens.free.fr/licences/tyf.html
# ~ http://www.remotesensing.org/geotiff/spec/geotiffhome.html
from . import ifd, tags, values, __geotiff__, __PY3__
import collections
GeoKeyModel = {
33550: collections.namedtuple("ModelPixelScale", "S... | 8,330 | Python | .py | 188 | 41.281915 | 125 | 0.640039 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,734 | values.py | domlysz_BlenderGIS/core/lib/Tyf/values.py | # -*- encoding:utf-8 -*-
# Copyright 2012-2015, THOORENS Bruno - http://bruno.thoorens.free.fr/licences/tyf.html
## Tiff tag values
NewSubfileType = {
0: "bit flag 000",
1: "bit flag 001",
2: "bit flag 010",
3: "bit flag 011",
4: "bit flag 100",
5: "bit flag 101",
6: "bit flag 110",
7: "bit flag 111"
}
Subfil... | 267,167 | Python | .py | 7,222 | 35.001939 | 132 | 0.685649 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,735 | tags.py | domlysz_BlenderGIS/core/lib/Tyf/tags.py | # -*- encoding:utf-8 -*-
# Copyright 2012-2015, THOORENS Bruno - http://bruno.thoorens.free.fr/licences/tyf.html
# ~ http://wwwawaresystemsbe/imaging/tiff/tifftagshtml
from . import values
# Baseline TIFF tags
bTT = {
254: ("NewSubfileType", [1], 0, "A general indication of the kind of data contained in this subfil... | 26,866 | Python | .py | 308 | 85.188312 | 222 | 0.704557 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,736 | ifd.py | domlysz_BlenderGIS/core/lib/Tyf/ifd.py | # -*- encoding:utf-8 -*-
# Copyright 2012-2015, THOORENS Bruno - http://bruno.thoorens.free.fr/licences/tyf.html
from . import io, os, tags, encoders, decoders, reduce, values, TYPES, urllib, StringIO
import struct, fractions
class TiffTag(object):
# IFD entries values
tag = 0x0
type = 0
count = 0
value = None
... | 6,906 | Python | .py | 168 | 37.494048 | 154 | 0.657075 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,737 | __init__.py | domlysz_BlenderGIS/core/lib/Tyf/__init__.py | # -*- encoding:utf-8 -*-
__copyright__ = "Copyright © 2012-2015, THOORENS Bruno - http://bruno.thoorens.free.fr/licences/tyf.html"
__author__ = "THOORENS Bruno"
__tiff__ = (6, 0)
__geotiff__ = (1, 8, 1)
import io, os, sys, struct, operator, collections
__PY3__ = True if sys.version_info[0] >= 3 else False
... | 14,913 | Python | .py | 448 | 30.100446 | 115 | 0.675475 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,738 | encoders.py | domlysz_BlenderGIS/core/lib/Tyf/encoders.py | # -*- encoding:utf-8 -*-
# Copyright 2012-2015, THOORENS Bruno - http://bruno.thoorens.free.fr/licences/tyf.html
from . import reduce
import math, fractions, datetime
###############
# type encoders
_m_short = 0
_M_short = 2**8
def _1(value):
value = int(value)
return (_m_short, ) if value < _m_short else \
... | 3,139 | Python | .py | 100 | 28.84 | 142 | 0.633113 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,739 | bbox.py | domlysz_BlenderGIS/core/utils/bbox.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | 7,588 | Python | .py | 206 | 33.786408 | 133 | 0.677095 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,740 | gradient.py | domlysz_BlenderGIS/core/utils/gradient.py | # -*- coding:utf-8 -*-
import logging
log = logging.getLogger(__name__)
import os
import colorsys
from xml.dom.minidom import parse, parseString
from xml.etree import ElementTree as etree
from ..maths.interpo import scale, linearInterpo
from ..maths import akima
class Color(object):
def __init__(self, values=None, ... | 14,664 | Python | .py | 434 | 30.12212 | 146 | 0.674991 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,741 | xy.py | domlysz_BlenderGIS/core/utils/xy.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | 1,882 | Python | .py | 65 | 26.661538 | 72 | 0.678434 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,742 | __init__.py | domlysz_BlenderGIS/core/utils/__init__.py | from .xy import XY
from .bbox import BBOX
from .gradient import Color, Stop, Gradient
from .timing import perf_clock
| 117 | Python | .py | 4 | 28.25 | 43 | 0.814159 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,743 | timing.py | domlysz_BlenderGIS/core/utils/timing.py | import time
def perf_clock():
if hasattr(time, 'clock'):
return time.clock()
elif hasattr(time, 'perf_counter'):
return time.perf_counter()
else:
raise Exception("Python time lib doesn't contain a suitable clock function") | 259 | Python | .py | 8 | 26.875 | 84 | 0.669323 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,744 | interpo.py | domlysz_BlenderGIS/core/maths/interpo.py |
#Scale/normalize function : linear stretch from lowest value to highest value
#########################################
def scale(inVal, inMin, inMax, outMin, outMax):
return (inVal - inMin) * (outMax - outMin) / (inMax - inMin) + outMin
def linearInterpo(x1, x2, y1, y2, x):
#Linear interpolation = y1 + slope * ... | 430 | Python | .py | 11 | 37 | 77 | 0.623188 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,745 | kmeans1D.py | domlysz_BlenderGIS/core/maths/kmeans1D.py | """
kmeans1D.py
Author : domlysz@gmail.com
Date : february 2016
License : GPL
This file is part of BlenderGIS.
This is a kmeans implementation optimized for 1D data.
Original kmeans code :
https://gist.github.com/iandanforth/5862470
1D optimizations are inspired from this talking :
http://stats.stackexchange.com/que... | 6,816 | Python | .py | 151 | 41.900662 | 131 | 0.736421 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,746 | akima.py | domlysz_BlenderGIS/core/maths/akima.py | # -*- coding: utf-8 -*-
# akima.py
# Copyright (c) 2007-2015, Christoph Gohlke
# Copyright (c) 2007-2015, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modificat... | 6,341 | Python | .py | 146 | 38.554795 | 78 | 0.650302 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,747 | __init__.py | domlysz_BlenderGIS/core/maths/__init__.py | from .interpo import scale, linearInterpo
'''
from .maths.kmeans1D import kmeans1d, getBreaks
from . import akima
from fillnodata import replace_nans
'''
| 154 | Python | .py | 6 | 24.666667 | 47 | 0.817568 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,748 | fillnodata.py | domlysz_BlenderGIS/core/maths/fillnodata.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (... | 7,134 | Python | .py | 166 | 38.391566 | 235 | 0.65635 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,749 | setup.py | DEAP_deap/setup.py | #!/usr/bin/env python
import sys
from setuptools.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
DistutilsPlatformError
# read the contents of README file
from os import path
import codecs
import deap
warnings = list()
try:
from setuptools import setup,... | 3,749 | Python | .py | 91 | 33.648352 | 136 | 0.649615 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,750 | creator.py | DEAP_deap/deap/creator.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 7,187 | Python | .py | 154 | 39.720779 | 78 | 0.658707 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,751 | algorithms.py | DEAP_deap/deap/algorithms.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 23,000 | Python | .py | 415 | 48.00241 | 93 | 0.697871 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,752 | __init__.py | DEAP_deap/deap/__init__.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 761 | Python | .py | 17 | 43.764706 | 73 | 0.721774 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,753 | base.py | DEAP_deap/deap/base.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 14,167 | Python | .py | 284 | 40.475352 | 112 | 0.641611 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,754 | gp.py | DEAP_deap/deap/gp.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 52,433 | Python | .py | 1,112 | 37.576439 | 117 | 0.611766 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,755 | cma.py | DEAP_deap/deap/cma.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 41,801 | Python | .py | 725 | 46.982069 | 130 | 0.497349 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,756 | migration.py | DEAP_deap/deap/tools/migration.py | def migRing(populations, k, selection, replacement=None, migarray=None):
"""Perform a ring migration between the *populations*. The migration first
select *k* emigrants from each population using the specified *selection*
operator and then replace *k* individuals from the associated population
in the *m... | 2,726 | Python | .py | 45 | 52.022222 | 80 | 0.691215 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,757 | constraint.py | DEAP_deap/deap/tools/constraint.py |
from functools import wraps
from itertools import repeat
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence
class DeltaPenalty(object):
r"""This decorator returns penalized fitness for invalid individuals and the
original fitness value for valid individual... | 7,941 | Python | .py | 136 | 49.345588 | 589 | 0.669286 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,758 | mutation.py | DEAP_deap/deap/tools/mutation.py | import math
import random
from itertools import repeat
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence
######################################
# GA Mutations #
######################################
def mutGaussian(individual, mu, sigma, i... | 9,837 | Python | .py | 200 | 42.025 | 103 | 0.639312 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,759 | init.py | DEAP_deap/deap/tools/init.py | def initRepeat(container, func, n):
"""Call the function *func* *n* times and return the results in a
container type `container`
:param container: The type to put in the data from func.
:param func: The function that will be called n times to fill the
container.
:param n: The numbe... | 3,283 | Python | .py | 68 | 41.441176 | 84 | 0.661866 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,760 | __init__.py | DEAP_deap/deap/tools/__init__.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 1,338 | Python | .py | 30 | 43.566667 | 77 | 0.763581 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,761 | selection.py | DEAP_deap/deap/tools/selection.py | import random
import numpy as np
from functools import partial
from operator import attrgetter
######################################
# Selections #
######################################
def selRandom(individuals, k):
"""Select *k* individuals at random from the input *individuals* with... | 13,325 | Python | .py | 255 | 44.87451 | 112 | 0.686899 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,762 | support.py | DEAP_deap/deap/tools/support.py | from bisect import bisect_right
from collections import defaultdict
from copy import deepcopy
from functools import partial
from itertools import chain
from operator import eq
def identity(obj):
"""Returns directly the argument *obj*.
"""
return obj
class History(object):
"""The :class:`History` cla... | 26,498 | Python | .py | 545 | 38.111927 | 94 | 0.613557 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,763 | crossover.py | DEAP_deap/deap/tools/crossover.py | import random
import warnings
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence
from itertools import repeat
######################################
# GA Crossovers #
######################################
def cxOnePoint(ind1, ind2):
"""... | 17,311 | Python | .py | 365 | 40.054795 | 111 | 0.636002 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,764 | emo.py | DEAP_deap/deap/tools/emo.py | import bisect
from collections import defaultdict, namedtuple
from itertools import chain
import math
from operator import attrgetter, itemgetter
import random
import numpy
######################################
# Non-Dominated Sorting (NSGA-II) #
######################################
def selNSGA2(individuals, ... | 33,160 | Python | .py | 714 | 37.857143 | 126 | 0.623196 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,765 | indicator.py | DEAP_deap/deap/tools/indicator.py | import numpy
try:
# try importing the C version
from ._hypervolume import hv as hv
except ImportError:
# fallback on python version
from ._hypervolume import pyhv as hv
def hypervolume(front, **kargs):
"""Returns the index of the individual with the least the hypervolume
contribution. The pro... | 1,196 | Python | .py | 27 | 39.148148 | 81 | 0.701981 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,766 | __init__.py | DEAP_deap/deap/tools/_hypervolume/__init__.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 693 | Python | .py | 14 | 48.5 | 73 | 0.740795 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,767 | pyhv.py | DEAP_deap/deap/tools/_hypervolume/pyhv.py | # This file is part of DEAP.
#
# Copyright (C) 2010 Simon Wessing
# TU Dortmund University
#
# In personal communication, the original authors authorized DEAP team
# to use this file under the Lesser General Public License.
#
# You can find the original library here :
# http://ls11-www.cs.uni-dortm... | 11,652 | Python | .py | 276 | 32.09058 | 137 | 0.586091 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,768 | movingpeaks.py | DEAP_deap/deap/benchmarks/movingpeaks.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 18,331 | Python | .py | 337 | 43.264095 | 212 | 0.536085 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,769 | __init__.py | DEAP_deap/deap/benchmarks/__init__.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 25,820 | Python | .py | 553 | 39.952984 | 149 | 0.546444 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,770 | tools.py | DEAP_deap/deap/benchmarks/tools.py | """Module containing tools that are useful when benchmarking algorithms
"""
from math import hypot, sqrt
from functools import wraps
from itertools import repeat
try:
import numpy
numpy_imported = True
except ImportError:
numpy_imported = False
try:
import scipy.spatial
scipy_imported = True
except... | 12,172 | Python | .py | 270 | 36.825926 | 81 | 0.651667 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,771 | gp.py | DEAP_deap/deap/benchmarks/gp.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 3,825 | Python | .py | 103 | 31 | 122 | 0.523177 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,772 | binary.py | DEAP_deap/deap/benchmarks/binary.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 4,928 | Python | .py | 121 | 33.950413 | 86 | 0.611158 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,773 | bbob.py | DEAP_deap/examples/bbob.py |
# This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed... | 5,020 | Python | .py | 108 | 38.333333 | 91 | 0.650277 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,774 | fctmin.py | DEAP_deap/examples/es/fctmin.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 2,928 | Python | .py | 71 | 37.338028 | 98 | 0.716948 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,775 | cma_1+l_minfct.py | DEAP_deap/examples/es/cma_1+l_minfct.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 1,996 | Python | .py | 45 | 41.711111 | 81 | 0.744462 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,776 | cma_minfct.py | DEAP_deap/examples/es/cma_minfct.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 2,164 | Python | .py | 48 | 42.1875 | 94 | 0.739192 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,777 | cma_bipop.py | DEAP_deap/examples/es/cma_bipop.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 8,278 | Python | .py | 161 | 41.770186 | 154 | 0.618888 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,778 | onefifth.py | DEAP_deap/examples/es/onefifth.py |
# This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed... | 2,770 | Python | .py | 64 | 38.6875 | 88 | 0.698513 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,779 | cma_plotting.py | DEAP_deap/examples/es/cma_plotting.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 4,286 | Python | .py | 105 | 35.8 | 94 | 0.682616 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,780 | cma_mo.py | DEAP_deap/examples/es/cma_mo.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 5,971 | Python | .py | 133 | 38.789474 | 109 | 0.679993 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,781 | spambase.py | DEAP_deap/examples/gp/spambase.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 4,043 | Python | .py | 92 | 41.684783 | 83 | 0.75884 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,782 | ant.py | DEAP_deap/examples/gp/ant.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 6,844 | Python | .py | 164 | 33.609756 | 127 | 0.626206 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,783 | symbreg_numpy.py | DEAP_deap/examples/gp/symbreg_numpy.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 3,289 | Python | .py | 78 | 39.205128 | 83 | 0.731455 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,784 | parity.py | DEAP_deap/examples/gp/parity.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 2,949 | Python | .py | 76 | 35.644737 | 83 | 0.720336 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,785 | __init__.py | DEAP_deap/examples/gp/__init__.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 692 | Python | .py | 14 | 48.5 | 73 | 0.740795 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,786 | symbreg_epsilon_lexicase.py | DEAP_deap/examples/gp/symbreg_epsilon_lexicase.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 3,343 | Python | .py | 77 | 40.415584 | 91 | 0.736081 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,787 | symbreg.py | DEAP_deap/examples/gp/symbreg.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 3,374 | Python | .py | 78 | 40.269231 | 91 | 0.736585 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,788 | adf_symbreg.py | DEAP_deap/examples/gp/adf_symbreg.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 6,220 | Python | .py | 150 | 37.286667 | 79 | 0.719231 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,789 | symbreg_harm.py | DEAP_deap/examples/gp/symbreg_harm.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 3,371 | Python | .py | 77 | 40.779221 | 106 | 0.73315 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,790 | multiplexer.py | DEAP_deap/examples/gp/multiplexer.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 3,295 | Python | .py | 80 | 38.3 | 83 | 0.72403 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,791 | buildAntSimFast.py | DEAP_deap/examples/gp/ant/buildAntSimFast.py | from distutils.core import setup, Extension
module1 = Extension('AntC',
sources = ['AntSimulatorFast.cpp'])
setup (name = 'AntC',
version = '1.0',
description = 'Fast version of the Ant Simulator (aims to replace the AntSimulator class)',
ext_modules = [module1])
| 308 | Python | .py | 7 | 36.714286 | 98 | 0.648829 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,792 | sphere.py | DEAP_deap/examples/de/sphere.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 3,767 | Python | .py | 100 | 32.38 | 94 | 0.659353 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,793 | basic.py | DEAP_deap/examples/de/basic.py | # This file is part of EAP.
#
# EAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# EAP is distributed in ... | 2,816 | Python | .py | 71 | 34.661972 | 94 | 0.675211 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,794 | dynamic.py | DEAP_deap/examples/de/dynamic.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 5,807 | Python | .py | 125 | 38.416 | 94 | 0.65222 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,795 | multiswarm.py | DEAP_deap/examples/pso/multiswarm.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 9,309 | Python | .py | 195 | 37.687179 | 112 | 0.608815 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,796 | basic_numpy.py | DEAP_deap/examples/pso/basic_numpy.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 3,160 | Python | .py | 75 | 36.96 | 82 | 0.680782 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,797 | speciation.py | DEAP_deap/examples/pso/speciation.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 6,580 | Python | .py | 148 | 36.216216 | 102 | 0.618534 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,798 | basic.py | DEAP_deap/examples/pso/basic.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 3,352 | Python | .py | 76 | 38.986842 | 83 | 0.682306 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,799 | emna.py | DEAP_deap/examples/eda/emna.py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | 3,411 | Python | .py | 73 | 41.958904 | 96 | 0.710582 | DEAP/deap | 5,751 | 1,120 | 279 | LGPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |