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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39,000 | sliderwidget.py | mypaint_mypaint/gui/sliderwidget.py | # This file is part of MyPaint.
# Copyright (C) 2020 by the MyPaint Development Team
#
# 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 2 of the License, or
# (at your option) any ... | 9,718 | Python | .py | 201 | 40.0199 | 79 | 0.661883 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,001 | brushcolor.py | mypaint_mypaint/gui/brushcolor.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team
#
# 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 2 of the License, or
# (at your option)... | 2,709 | Python | .py | 60 | 37.566667 | 76 | 0.654663 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,002 | scratchwindow.py | mypaint_mypaint/gui/scratchwindow.py | # This file is part of MyPaint.
# Copyright (C) 2011-2018 by the MyPaint Development Team.
# Copyright (C) 2011 by Ben O'Steen <bosteen@gmail.com>
#
# 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 Foundatio... | 2,129 | Python | .py | 51 | 35.019608 | 76 | 0.675558 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,003 | tileddrawwidget.py | mypaint_mypaint/gui/tileddrawwidget.py | # This file is part of MyPaint.
# Copyright (C) 2008-2013 by Martin Renold <martinxyz@gmx.ch>
# Copyright (C) 2008-2018 by the MyPaint Development Team
#
# 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 Foun... | 52,801 | Python | .py | 1,242 | 33.270531 | 88 | 0.622261 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,004 | drawwindow.py | mypaint_mypaint/gui/drawwindow.py | # -*- coding: utf-8 -*-
#
# This file is part of MyPaint.
# Copyright (C) 2007-2019 by the MyPaint Development Team.
# Copyright (C) 2007-2014 by Martin Renold <martinxyz@gmx.ch>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published ... | 34,526 | Python | .py | 766 | 35.665796 | 88 | 0.636864 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,005 | framewindow.py | mypaint_mypaint/gui/framewindow.py | # This file is part of MyPaint.
# Copyright (C) 2010-2020 by the MyPaint Development Team
# Copyright (C) 2012-2013 by Martin Renold <martinxyz@gmx.ch>
#
# 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 Foun... | 37,321 | Python | .py | 881 | 32.216799 | 88 | 0.583037 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,006 | layers.py | mypaint_mypaint/gui/layers.py | # This file is part of MyPaint.
# Copyright (C) 2014-2017 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 43,474 | Python | .py | 1,029 | 31.878523 | 82 | 0.590641 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,007 | inktool.py | mypaint_mypaint/gui/inktool.py | # This file is part of MyPaint.
# Copyright (C) 2015 by Andrew Chadwick <a.t.chadwick@gmail.com>
#
# 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 2 of the License, or
# (at your ... | 50,807 | Python | .py | 1,210 | 30.829752 | 87 | 0.567533 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,008 | viewmanip.py | mypaint_mypaint/gui/viewmanip.py | # This file is part of MyPaint.
# Copyright (C) 2014 by Andrew Chadwick <a.t.chadwick@gmail.com>
#
# 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 2 of the License, or
"""Modes ... | 4,273 | Python | .py | 103 | 34.951456 | 82 | 0.674008 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,009 | pixbuflist.py | mypaint_mypaint/gui/pixbuflist.py | # This file is part of MyPaint.
# Copyright (C) 2008-2013 by Martin Renold <martinxyz@gmx.ch>
# Copyright (C) 2010-2018 by the MyPaint Development Team.
#
# 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 Fou... | 15,159 | Python | .py | 377 | 29.198939 | 82 | 0.565775 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,010 | layermanip.py | mypaint_mypaint/gui/layermanip.py | # This file is part of MyPaint.
# Copyright (C) 2014-2016 by the MyPaint Development Team.
#
# 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 2 of the License, or
"""Modes for mo... | 7,547 | Python | .py | 184 | 31.994565 | 88 | 0.623311 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,011 | document.py | mypaint_mypaint/gui/document.py | # -*- coding: utf-8 -*-
# This file is part of MyPaint.
# Copyright (C) 2010-2019 by the MyPaint Development Team.
# Copyright (C) 2007-2013 by Martin Renold <martinxyz@gmx.ch>
#
# 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... | 90,463 | Python | .py | 2,010 | 34.622388 | 88 | 0.612994 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,012 | linemode.py | mypaint_mypaint/gui/linemode.py | # This file is part of MyPaint.
# -*- coding: utf-8 -*-
# Copyright (C) 2012 by Richard Jones
# Copyright (C) 2012-2018 by the MyPaint Development Team.
#
# 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 Fou... | 35,730 | Python | .py | 914 | 29.205689 | 88 | 0.559589 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,013 | toolstack.py | mypaint_mypaint/gui/toolstack.py | # This file is part of MyPaint.
# Copyright (C) 2014-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 49,183 | Python | .py | 1,063 | 35.031985 | 88 | 0.605746 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,014 | quickchoice.py | mypaint_mypaint/gui/quickchoice.py | # This file is part of MyPaint.
# Copyright (C) 2013-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 12,315 | Python | .py | 286 | 34.587413 | 78 | 0.653061 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,015 | freehand.py | mypaint_mypaint/gui/freehand.py | # This file is part of MyPaint.
# Copyright (C) 2008-2013 by Martin Renold <martinxyz@gmx.ch>
# Copyright (C) 2013-2018 by the MyPaint Development Team.
#
# 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 Fou... | 35,364 | Python | .py | 845 | 30.87574 | 87 | 0.572073 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,016 | layermodes.py | mypaint_mypaint/gui/layermodes.py | # This file is part of MyPaint.
# Copyright (C) 2014 by Andrew Chadwick <a.t.chadwick@gmail.com>
#
# 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 2 of the License, or
# (at your ... | 2,987 | Python | .py | 72 | 33 | 77 | 0.639655 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,017 | displayfilter.py | mypaint_mypaint/gui/displayfilter.py | # This file is part of MyPaint.
# Copyright (C) 2015 by Andrew Chadwick <a.t.chadwick@gmail.com>
#
# 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 2 of the License, or
# (at your ... | 2,740 | Python | .py | 60 | 42.533333 | 75 | 0.644955 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,018 | curve.py | mypaint_mypaint/gui/curve.py | # This file is part of MyPaint.
# Copyright (C) 2007-2011 by Martin Renold <martinxyz@gmx.ch>
# Copyright (C) 2011-2013 by Andrew Chadwick <a.t.chadwick@gmail.com>
# Copyright (C) 2014-2019 by The MyPaint Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Gener... | 10,757 | Python | .py | 269 | 29.64684 | 85 | 0.548328 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,019 | objfactory.py | mypaint_mypaint/gui/objfactory.py | # This file is part of MyPaint.
# Copyright (C) 2013-2018 by the MyPaint Development Team
#
# 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 2 of the License, or
# (at your option)... | 8,616 | Python | .py | 195 | 35.876923 | 79 | 0.650442 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,020 | widgets.py | mypaint_mypaint/gui/widgets.py | # This file is part of MyPaint.
# Copyright (C) 2011-2018 by the MyPaint Development Team
#
# 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 2 of the License, or
# (at your option)... | 6,130 | Python | .py | 168 | 29.589286 | 81 | 0.644917 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,021 | autorecover.py | mypaint_mypaint/gui/autorecover.py | # -*- coding: utf-8 -*-
# This file is part of MyPaint.
# Copyright (C) 2015-2018 by the MyPaint Development Team
#
# 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 2 of the Licens... | 8,858 | Python | .py | 207 | 32.014493 | 78 | 0.598329 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,022 | layervis.py | mypaint_mypaint/gui/layervis.py | # This file is part of MyPaint.
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by the MyPaint Development Team
#
# 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 2 of the License, or... | 6,790 | Python | .py | 185 | 27.621622 | 77 | 0.595586 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,023 | builderhacks.py | mypaint_mypaint/gui/builderhacks.py | # -*- coding: utf-8 -*-
# This file is part of MyPaint.
# Copyright (C) 2013-2018 by the MyPaint Development Team.
#
# 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 2 of the Licen... | 4,245 | Python | .py | 105 | 34.6 | 79 | 0.663263 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,024 | brushmanip.py | mypaint_mypaint/gui/brushmanip.py | # This file is part of MyPaint.
# -*- coding: utf-8 -*-
# Copyright (C) 2020 by the Mypaint Development Team
#
# 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 2 of the License, or... | 10,794 | Python | .py | 248 | 34.439516 | 88 | 0.595943 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,025 | colorpreview.py | mypaint_mypaint/gui/colorpreview.py | # This file is part of MyPaint.
# Copyright (C) 2013-2018 by the MyPaint Development Team
#
# 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 2 of the License, or
"""Color preview... | 1,728 | Python | .py | 41 | 34.609756 | 75 | 0.656716 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,026 | mode.py | mypaint_mypaint/gui/mode.py | # This file is part of MyPaint.
# Copyright (C) 2014-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
"""Canvas input ... | 57,328 | Python | .py | 1,253 | 35.715084 | 88 | 0.623302 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,027 | spinbox.py | mypaint_mypaint/gui/spinbox.py | # This file is part of MyPaint.
# Copyright (C) 2011-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 6,229 | Python | .py | 156 | 31.147436 | 88 | 0.603411 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,028 | brushselectionwindow.py | mypaint_mypaint/gui/brushselectionwindow.py | # This file is part of MyPaint.
# -*- coding: utf-8 -*-
# Copyright (C) 2007-2013 by Martin Renold <martinxyz@gmx.ch>
# Copyright (C) 2009-2019 by the MyPaint Development Team.
#
# 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... | 21,859 | Python | .py | 563 | 28.57016 | 88 | 0.586121 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,029 | gtkexcepthook.py | mypaint_mypaint/gui/gtkexcepthook.py | # -*- coding: utf-8 -*-
# (c) 2003 Gustavo J A M Carneiro gjc at inescporto.pt
# 2004-2005 Filip Van Raemdonck
#
# http://www.daa.com.au/pipermail/pygtk/2003-August/005775.html
# Message-ID: <1062087716.1196.5.camel@emperor.homelinux.net>
# "The license is whatever you want."
#
# This file was downloaded from h... | 11,628 | Python | .py | 298 | 30.369128 | 80 | 0.607415 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,030 | application.py | mypaint_mypaint/gui/application.py | # This file is part of MyPaint.
# -*- coding: utf-8 -*-
# Copyright (C) 2007-2013 by Martin Renold <martinxyz@gmx.ch>
# Copyright (C) 2013-2018 by the MyPaint Development Team.
#
# 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... | 31,542 | Python | .py | 723 | 35.089903 | 88 | 0.6558 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,031 | main.py | mypaint_mypaint/gui/main.py | # This file is part of MyPaint.
# Copyright (C) 2007-2013 by Martin Renold <martinxyz@gmx.ch>
# Copyright (C) 2013-2018 by the MyPaint Development Team.
#
# 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 Fou... | 9,990 | Python | .py | 241 | 33.692946 | 79 | 0.660103 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,032 | fill.py | mypaint_mypaint/gui/fill.py | # This file is part of MyPaint.
# Copyright (C) 2018 by the Mypaint Development Team
# Copyright (C) 2013 by Andrew Chadwick <a.t.chadwick@gmail.com>
#
# 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 Founda... | 41,148 | Python | .py | 1,020 | 30.476471 | 87 | 0.593727 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,033 | colorpicker.py | mypaint_mypaint/gui/colorpicker.py | # This file is part of MyPaint.
# Copyright (C) 2010-2020 by the MyPaint Development Team
# Copyright (C) 2009-2013 by Martin Renold <martinxyz@gmx.ch>
#
# 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 Foun... | 11,243 | Python | .py | 282 | 31.62766 | 88 | 0.614119 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,034 | filehandling.py | mypaint_mypaint/gui/filehandling.py | # -*- coding: utf-8 -*-
# This file is part of MyPaint.
# Copyright (C) 2009-2019 by the MyPaint Development Team
# Copyright (C) 2007-2014 by Martin Renold <martinxyz@gmx.ch>
#
# 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
... | 58,407 | Python | .py | 1,437 | 28.487126 | 86 | 0.555916 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,035 | overlays.py | mypaint_mypaint/gui/overlays.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team
#
# 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 2 of the License, or
# (at your option)... | 8,452 | Python | .py | 224 | 30.098214 | 79 | 0.608025 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,036 | windowing.py | mypaint_mypaint/gui/windowing.py | # This file is part of MyPaint.
# Copyright (C) 2010-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 30,623 | Python | .py | 726 | 32.195592 | 88 | 0.585656 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,037 | compatconfig.py | mypaint_mypaint/gui/compatconfig.py | # -*- coding: utf-8 -*-
# This file is part of MyPaint.
# Copyright (C) 2019 by the MyPaint Development Team
#
# 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 2 of the License, or... | 1,358 | Python | .py | 39 | 30.487179 | 70 | 0.705882 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,038 | hcywheel.py | mypaint_mypaint/gui/colors/hcywheel.py | # -*- coding: utf-8 -*-
# This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team
#
# 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 2 of the Licens... | 49,268 | Python | .py | 1,200 | 30.17 | 87 | 0.561764 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,039 | combined.py | mypaint_mypaint/gui/colors/combined.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 2,001 | Python | .py | 48 | 35.729167 | 79 | 0.70646 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,040 | uimisc.py | mypaint_mypaint/gui/colors/uimisc.py | # This file is part of MyPaint.
# Copyright (C) 2012 by Andrew Chadwick <andrewc-git@piffle.org>
#
# 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 2 of the License, or
# (at your ... | 1,489 | Python | .py | 44 | 29.954545 | 79 | 0.725244 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,041 | hsvsquare.py | mypaint_mypaint/gui/colors/hsvsquare.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team.
# Copyright (C) 2015 by ShadowKyogre <shadowkyogre@aim.com>
#
# 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 Found... | 14,366 | Python | .py | 366 | 30.226776 | 78 | 0.576937 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,042 | sliders.py | mypaint_mypaint/gui/colors/sliders.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 9,889 | Python | .py | 270 | 27.648148 | 85 | 0.594394 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,043 | hsvwheel.py | mypaint_mypaint/gui/colors/hsvwheel.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 3,999 | Python | .py | 103 | 31.737864 | 86 | 0.647713 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,044 | util.py | mypaint_mypaint/gui/colors/util.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 1,637 | Python | .py | 42 | 34.571429 | 74 | 0.678662 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,045 | bases.py | mypaint_mypaint/gui/colors/bases.py | # This file is part of MyPaint.
# Copyright (C) 2012-2014 by Andrew Chadwick <andrewc-git@piffle.org>
#
# 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 2 of the License, or
# (at ... | 5,012 | Python | .py | 117 | 33.709402 | 74 | 0.614309 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,046 | adjbases.py | mypaint_mypaint/gui/colors/adjbases.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 46,664 | Python | .py | 1,092 | 33.042125 | 82 | 0.597847 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,047 | hsvcube.py | mypaint_mypaint/gui/colors/hsvcube.py | # This file is part of MyPaint.
# Copyright (C) 2012-2013 by Andrew Chadwick <a.t.chadwickgmail.com>
# Copyright (C) 2014-2018 by the MyPaint Development Team.
#
# 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 Softw... | 8,598 | Python | .py | 225 | 30.391111 | 88 | 0.605092 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,048 | __init__.py | mypaint_mypaint/gui/colors/__init__.py | # This file is part of MyPaint.
# Copyright (C) 2012-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 644 | Python | .py | 18 | 33.666667 | 70 | 0.78135 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,049 | paletteview.py | mypaint_mypaint/gui/colors/paletteview.py | # This file is part of MyPaint.
# Copyright (C) 2012-2019 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 54,988 | Python | .py | 1,400 | 29.228571 | 88 | 0.578882 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,050 | changers.py | mypaint_mypaint/gui/colors/changers.py | # This file is part of MyPaint.
# Copyright (C) 2015 by Andrew Chadwick <a.t.chadwick@gmail.com>
#
# 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 2 of the License, or
# (at your ... | 4,620 | Python | .py | 125 | 29.664 | 76 | 0.625112 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,051 | mypaintlib.py | mypaint_mypaint/tests/mypaintlib.py | #!/usr/bin/env python
# Imports:
from time import time
from os.path import join
from itertools import product
import unittest
import sys
import os
import tempfile
import shutil
import numpy as np
from . import paths
from lib import mypaintlib
from lib import tiledsurface
from lib import brush
from lib import docume... | 14,320 | Python | .py | 362 | 28.30663 | 79 | 0.523597 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,052 | compositeops.py | mypaint_mypaint/tests/compositeops.py | #!/usr/bin/env python
# Tests the layer compositing/blending code for correctness of its
# advertized optimization flags.
from random import random
import unittest
import numpy as np
from . import paths
from lib import mypaintlib
from lib.tiledsurface import N
from lib.modes import MODE_STRINGS
from lib.pycompat imp... | 5,162 | Python | .py | 119 | 29.689076 | 82 | 0.505875 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,053 | localedata.py | mypaint_mypaint/tests/localedata.py | import unittest
from glob import glob
from lib import localecodes as lc
class LocaleTest(unittest.TestCase):
def test_langcodes(self):
"""Verify existence of ui strings for all codes"""
modname = "lib.localecodes"
self.assertEqual(
lc.__name__,
modname,
... | 1,077 | Python | .py | 28 | 28.785714 | 79 | 0.571702 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,054 | rendering.py | mypaint_mypaint/tests/rendering.py | #!/usr/bin/env python
# Imports:
from os.path import join
import sys
import time
import math
import cairo
from collections import namedtuple
import unittest
from . import paths
from lib import mypaintlib
from lib.document import Document
from lib.pycompat import xrange, PY3
TEST_BIGIMAGE = "bigimage.ora"
# Helpe... | 9,477 | Python | .py | 305 | 21.596721 | 83 | 0.545694 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,055 | paths.py | mypaint_mypaint/tests/paths.py | import os
import sys
TESTS_DIR = os.path.abspath(os.path.dirname(__file__))
TOP_DIR = os.path.dirname(TESTS_DIR)
sys.path.insert(0, TOP_DIR)
| 143 | Python | .py | 5 | 27.2 | 54 | 0.75 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,056 | fill.py | mypaint_mypaint/tests/fill.py | #!/usr/bin/env python
# Imports:
from time import time
import os
import sys
from os.path import join
import unittest
import contextlib
import copy
from itertools import repeat, chain, product
from . import paths
from lib import mypaintlib
from lib import document
from lib import floodfill
from lib import fill_common... | 19,194 | Python | .py | 505 | 26.49703 | 82 | 0.523051 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,057 | saved-with-py2.7.zip | mypaint_mypaint/tests/brushpacks/saved-with-py2.7.zip | PK ªbLT¡×X X brushlib-test/basic.myb{
"comment": "MyPaint brush file",
"description": "Boring test brush",
"group": "",
"notes": "No fancy characters in any names.",
"parent_brush_name": "brushlib-test/basic",
"settings": {
"anti_aliasing": {
"base_value... | 58,999 | Python | .py | 941 | 52.137088 | 1,688 | 0.476196 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,058 | guicontrol.py | mypaint_mypaint/tests/unported/guicontrol.py | import traceback
import tempfile
import os
import sys
import numpy as np
import gi
try:
gi.require_version("Gtk", "3.0")
from lib.gibindings import Gtk
from lib.gibindings import GObject
except:
raise
class GUI:
"""
Class for driving the MyPaint GUI.
"""
def __init__(self):
... | 3,048 | Python | .py | 93 | 24.032258 | 76 | 0.585009 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,059 | performance.py | mypaint_mypaint/tests/unported/performance.py | #!/usr/bin/env python
import sys
import os
import subprocess
import cProfile
from time import time, sleep
import shutil
import numpy as np
import guicontrol
start_measurement = -1
stop_measurement = -2
all_tests = {}
def run_test(testfunction, profile=None):
"""Run a single test
testfunction must be a gen... | 11,181 | Python | .py | 382 | 22.332461 | 83 | 0.596138 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,060 | memory_leak.py | mypaint_mypaint/tests/unported/memory_leak.py | #!/usr/bin/env python
from time import time
import sys
import os
import gc
import numpy as np
os.chdir(os.path.dirname(__file__))
sys.path.insert(0, "..")
from lib import mypaintlib, tiledsurface, brush, document, command, helpers
import guicontrol
# loadtxt is known to leak memory, thus we run it only once
# http... | 7,765 | Python | .py | 257 | 22.599222 | 87 | 0.578058 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,061 | rgb_to_spectral.py | mypaint_mypaint/doc/spectral/rgb_to_spectral.py | # -*- coding: utf-8 -*-
"""RGB_to_Spectral
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/16mwE57LUxwMQFwyHuZ2I--fD9YgS0uK8
"""
# !pip install git+git://github.com/colour-science/colour
import colour
import numpy as np
from scipy.optimize import mini... | 4,482 | Python | .py | 140 | 26.771429 | 94 | 0.66868 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,062 | mypaint-ora-thumbnailer.py | mypaint_mypaint/desktop/mypaint-ora-thumbnailer.py | #!/usr/bin/env python
# Thumbnailer for GNOME/Cinnamon Nautilus, and compatible desktops.
#
# Copyright (c) 2010 Jon Nordby <jononor@gmail.com>
# (c) 2013-2017 the MyPaint Development Team
# This program is distributed under the same terms as MyPaint itself.
# OpenRaster specification:
# http://freedesktop... | 2,656 | Python | .py | 65 | 36.769231 | 77 | 0.711792 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,063 | mypaint-copy-symbolic.svg | mypaint_mypaint/desktop/icons/hicolor/scalable/actions/mypaint-copy-symbolic.svg | <?xml version="1.0" encoding="UTF-8"?>
<svg width="16" height="16" fill="#bebebe" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="m8.97 2h-6.97v7.97l4 0.03v-4h3zm-1.97 5v6.97h5l2-1.99-0.03-4.98z"/></svg>
| 214 | Python | .py | 2 | 106 | 174 | 0.65566 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,064 | toolstack.py | mypaint_mypaint/gui/toolstack.py | # This file is part of MyPaint.
# Copyright (C) 2014-2018 by the MyPaint Development Team.
#
# 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 2 of the License, or
# (at your option... | 49,183 | Python | .tac | 1,063 | 35.031985 | 88 | 0.605746 | mypaint/mypaint | 2,661 | 385 | 198 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,065 | __init__.py | Radivarig_UvSquares/__init__.py | # <Uv Squares, Blender addon for reshaping UV vertices to grid.>
# Copyright (C) <2020> <Reslav Hollos>
# 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 Lic... | 1,138 | Python | .py | 25 | 43.16 | 74 | 0.70117 | Radivarig/UvSquares | 1,854 | 435 | 10 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,066 | uv_squares.py | Radivarig_UvSquares/uv_squares.py | # <Uv Squares, Blender addon for reshaping UV vertices to grid.>
# Copyright (C) <2020> <Reslav Hollos>
# 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... | 33,336 | Python | .py | 821 | 30.298417 | 220 | 0.57335 | Radivarig/UvSquares | 1,854 | 435 | 10 | GPL-2.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,067 | setup.py | jasonstrimpel_volatility-trading/setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='volatility-trading',
version='0.0.1',
url='https://github.com/jasonstrimpel/volatility-trading/',
license='GPL-3.0-or-later',
packages=['volatility','volatility/models'],
)
| 258 | Python | .py | 9 | 25.333333 | 63 | 0.709677 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,068 | volest.py | jasonstrimpel_volatility-trading/volatility/volest.py | import datetime
import os
import pandas
import numpy
from scipy.stats import norm
import statsmodels.api as sm
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from volatility import models
ESTIMATORS = [
'GarmanKlass',
'HodgesTompkins',
... | 25,522 | Python | .py | 579 | 31.53886 | 117 | 0.554906 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,069 | data.py | jasonstrimpel_volatility-trading/volatility/data.py | import pandas
def yahoo_helper(symbol, data_path, *args):
"""
Returns DataFrame/Panel of historical stock prices from symbols, over date
range, start to end.
Parameters
----------
symbol : string
Single stock symbol (ticker)
data_path: string
... | 943 | Python | .py | 34 | 16.411765 | 79 | 0.471445 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,070 | GarmanKlass.py | jasonstrimpel_volatility-trading/volatility/models/GarmanKlass.py | import math
import numpy as np
def get_estimator(price_data, window=30, trading_periods=252, clean=True):
log_hl = (price_data['High'] / price_data['Low']).apply(np.log)
log_co = (price_data['Close'] / price_data['Open']).apply(np.log)
rs = 0.5 * log_hl**2 - (2*math.log(2)-1) * log_co**2
... | 549 | Python | .py | 13 | 34.076923 | 75 | 0.614173 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,071 | Skew.py | jasonstrimpel_volatility-trading/volatility/models/Skew.py | import numpy as np
def get_estimator(price_data, window=30, clean=True):
log_return = (price_data['Close'] / price_data['Close'].shift(1)).apply(np.log)
result = log_return.rolling(
window=window,
center=False
).skew()
if clean:
return result.dropna()
e... | 349 | Python | .py | 11 | 23.727273 | 84 | 0.614198 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,072 | api.py | jasonstrimpel_volatility-trading/volatility/models/api.py | from volatility.models import GarmanKlass
from volatility.models import HodgesTompkins
from volatility.models import Kurtosis
from volatility.models import Parkinson
from volatility.models import Raw
from volatility.models import RogersSatchell
from volatility.models import Skew
from volatility.models import YangZhang
... | 471 | Python | .py | 18 | 23.333333 | 44 | 0.785398 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,073 | Parkinson.py | jasonstrimpel_volatility-trading/volatility/models/Parkinson.py | import math
import numpy as np
def get_estimator(price_data, window=30, trading_periods=252, clean=True):
rs = (1.0 / (4.0 * math.log(2.0))) * ((price_data['High'] / price_data['Low']).apply(np.log))**2.0
def f(v):
return (trading_periods * v.mean())**0.5
result = rs.rolling(
... | 474 | Python | .py | 14 | 25.714286 | 103 | 0.584475 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,074 | YangZhang.py | jasonstrimpel_volatility-trading/volatility/models/YangZhang.py | import math
import numpy as np
def get_estimator(price_data, window=30, trading_periods=252, clean=True):
log_ho = (price_data['High'] / price_data['Open']).apply(np.log)
log_lo = (price_data['Low'] / price_data['Open']).apply(np.log)
log_co = (price_data['Close'] / price_data['Open']).apply(np... | 1,229 | Python | .py | 29 | 34.448276 | 106 | 0.563574 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,075 | Raw.py | jasonstrimpel_volatility-trading/volatility/models/Raw.py | import math
import numpy as np
def get_estimator(price_data, window=30, trading_periods=252, clean=True):
log_return = (price_data['Close'] / price_data['Close'].shift(1)).apply(np.log)
result = log_return.rolling(
window=window,
center=False
).std() * math.sqrt(trading_... | 413 | Python | .py | 12 | 26.75 | 84 | 0.641558 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,076 | RogersSatchell.py | jasonstrimpel_volatility-trading/volatility/models/RogersSatchell.py | import math
import numpy as np
def get_estimator(price_data, window=30, trading_periods=252, clean=True):
log_ho = (price_data['High'] / price_data['Open']).apply(np.log)
log_lo = (price_data['Low'] / price_data['Open']).apply(np.log)
log_co = (price_data['Close'] / price_data['Open']).appl... | 656 | Python | .py | 17 | 30.235294 | 75 | 0.591433 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,077 | HodgesTompkins.py | jasonstrimpel_volatility-trading/volatility/models/HodgesTompkins.py | import math
import numpy as np
def get_estimator(price_data, window=30, trading_periods=252, clean=True):
log_return = (price_data['Close'] / price_data['Close'].shift(1)).apply(np.log)
vol = log_return.rolling(
window=window,
center=False
).std() * math.sqrt(trading_per... | 569 | Python | .py | 16 | 27.9375 | 84 | 0.578154 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,078 | Kurtosis.py | jasonstrimpel_volatility-trading/volatility/models/Kurtosis.py | import numpy as np
def get_estimator(price_data, window=30, clean=True):
log_return = (price_data['Close'] / price_data['Close'].shift(1)).apply(np.log)
result = log_return.rolling(
window=window,
center=False
).kurt()
if clean:
return result.dropna()
else:... | 345 | Python | .py | 11 | 23.727273 | 84 | 0.614198 | jasonstrimpel/volatility-trading | 1,521 | 357 | 4 | GPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,079 | setup.py | privacyidea_privacyidea/setup.py | from setuptools import setup, find_packages
import os
import stat
import sys
#VERSION = "2.1dev4"
VERSION = "3.10"
# Taken from kennethreitz/requests/setup.py
package_directory = os.path.realpath(os.path.dirname(__file__))
def get_file_contents(file_path):
"""Get the context of the file using full path name."""... | 5,276 | Python | .py | 154 | 25.662338 | 98 | 0.576742 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,080 | script.py.mako | privacyidea_privacyidea/migrations/script.py.mako | """${message}
Revision ID: ${up_revision}
Revises: ${down_revision}
Create Date: ${create_date}
"""
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
def upgrade():
${upgra... | 412 | Python | .py | 15 | 25.466667 | 43 | 0.730769 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,081 | env.py | privacyidea_privacyidea/migrations/env.py | from alembic import context
from sqlalchemy import engine_from_config, pool
from sqlalchemy.engine.url import make_url
from logging.config import fileConfig
from urllib.parse import quote
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
#... | 3,509 | Python | .py | 86 | 33.94186 | 90 | 0.677552 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,082 | 49a04e560d96_.py | privacyidea_privacyidea/migrations/versions/49a04e560d96_.py | """Enlarge serial column in audit table
Revision ID: 49a04e560d96
Revises: 2118e566df16
Create Date: 2018-02-14 16:20:20.609200
"""
# revision identifiers, used by Alembic.
revision = '49a04e560d96'
down_revision = '2118e566df16'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
op.al... | 896 | Python | .py | 26 | 28 | 63 | 0.658933 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,083 | a63df077051a_.py | privacyidea_privacyidea/migrations/versions/a63df077051a_.py | """Add column for triggered policies in Audit Table.
Revision ID: a63df077051a
Revises: d2ae8e54b628
Create Date: 2018-10-31 16:00:49.219821
"""
# revision identifiers, used by Alembic.
revision = 'a63df077051a'
down_revision = 'd2ae8e54b628'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
... | 678 | Python | .py | 18 | 34.166667 | 97 | 0.737327 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,084 | 5cb310101a1f_.py | privacyidea_privacyidea/migrations/versions/5cb310101a1f_.py | """v3.9: Create sequences needed for SQLAlchemy 1.4
E.g. mariadb now needs sequences.
Revision ID: 5cb310101a1f
Revises: 4a0aec37e7cf
Create Date: 2023-09-08 15:59:01.374626
"""
# revision identifiers, used by Alembic.
revision = '5cb310101a1f'
down_revision = '4a0aec37e7cf'
from alembic import op, context
from sq... | 3,207 | Python | .py | 70 | 33.028571 | 111 | 0.580026 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,085 | 36428afb2457_.py | privacyidea_privacyidea/migrations/versions/36428afb2457_.py | """Add table privacyideaserver
Revision ID: 36428afb2457
Revises: 205bda834127
Create Date: 2017-08-24 09:02:52.507395
"""
# revision identifiers, used by Alembic.
revision = '36428afb2457'
down_revision = '205bda834127'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
op.create_tabl... | 968 | Python | .py | 27 | 30.296296 | 78 | 0.687768 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,086 | 006d4747f858_.py | privacyidea_privacyidea/migrations/versions/006d4747f858_.py | """v3.8: Add thread_id to audit_log
Revision ID: 006d4747f858
Revises: d3c0f0403a84
Create Date: 2022-11-30 22:37:42.163199
"""
# revision identifiers, used by Alembic.
revision = '006d4747f858'
down_revision = 'd3c0f0403a84'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.exc import OperationalError... | 830 | Python | .py | 22 | 33.818182 | 98 | 0.7375 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,087 | 3236a1abf1c6_.py | privacyidea_privacyidea/migrations/versions/3236a1abf1c6_.py | """Add startdate and duration to audit log
Revision ID: 3236a1abf1c6
Revises: 140ba0ca4f07
Create Date: 2020-10-10 12:00:09.291665
"""
# revision identifiers, used by Alembic.
revision = '3236a1abf1c6'
down_revision = '140ba0ca4f07'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
op... | 730 | Python | .py | 20 | 32.75 | 90 | 0.722617 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,088 | 50adc980d625_.py | privacyidea_privacyidea/migrations/versions/50adc980d625_.py | """Add eventhandler tables
Revision ID: 50adc980d625
Revises: 239995464c48
Create Date: 2016-05-04 17:11:51.776440
"""
# revision identifiers, used by Alembic.
revision = '50adc980d625'
down_revision = '239995464c48'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.exc import OperationalError, Program... | 1,928 | Python | .py | 44 | 37.25 | 76 | 0.677333 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,089 | e5cbeb7c177_.py | privacyidea_privacyidea/migrations/versions/e5cbeb7c177_.py | """Add column 'priority' to table 'resolverealm'
Revision ID: e5cbeb7c177
Revises: 2181294eed0b
Create Date: 2015-04-26 17:02:09.578608
"""
# revision identifiers, used by Alembic.
revision = 'e5cbeb7c177'
down_revision = '2181294eed0b'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.exc import Opera... | 951 | Python | .py | 25 | 31.52 | 76 | 0.683751 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,090 | fa07bd604a75.py | privacyidea_privacyidea/migrations/versions/fa07bd604a75.py | """v3.6: move PUSH registration URL from Firebase Config to policies
Revision ID: fa07bd604a75
Revises: 3ba618f6b820
Create Date: 2021-05-18 23:29:59.273457
"""
# revision identifiers, used by Alembic.
revision = 'fa07bd604a75'
down_revision = '3ba618f6b820'
from privacyidea.lib.smsprovider.SMSProvider import get_s... | 3,224 | Python | .py | 57 | 43.982456 | 108 | 0.618746 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,091 | a28f2733897b_.py | privacyidea_privacyidea/migrations/versions/a28f2733897b_.py | """v3.8: Sequence for cusstomuserattribute, tokengroup and tokentokengroup
Revision ID: a28f2733897b
Revises: 89e57ed16379
Create Date: 2022-11-24 11:05:42.572284
"""
# revision identifiers, used by Alembic.
revision = 'a28f2733897b'
down_revision = '89e57ed16379'
from alembic import op, context
import sqlalchemy a... | 1,044 | Python | .py | 35 | 25.028571 | 74 | 0.71988 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,092 | d6b40a745e5_.py | privacyidea_privacyidea/migrations/versions/d6b40a745e5_.py | """Add table usercache
Revision ID: d6b40a745e5
Revises: 307a4fbe8a05
Create Date: 2017-04-13 15:25:44.050719
"""
# revision identifiers, used by Alembic.
revision = 'd6b40a745e5'
down_revision = '307a4fbe8a05'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
op.create_table('usercac... | 875 | Python | .py | 25 | 30 | 80 | 0.685273 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,093 | 2551ee982544_.py | privacyidea_privacyidea/migrations/versions/2551ee982544_.py | """Add column Type to the TokenInfo
Revision ID: 2551ee982544
Revises: 4f32a4e1bf33
Create Date: 2015-02-02 18:05:02.480354
"""
# revision identifiers, used by Alembic.
revision = '2551ee982544'
down_revision = '4f32a4e1bf33'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.exc import OperationalError... | 1,033 | Python | .py | 28 | 30.392857 | 76 | 0.671687 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,094 | 0c7123345224_.py | privacyidea_privacyidea/migrations/versions/0c7123345224_.py | """Store privacyIDEA node in clientapplication table
Revision ID: 0c7123345224
Revises: d756b34061ff
Create Date: 2019-09-06 13:27:12.020779
"""
# revision identifiers, used by Alembic.
revision = '0c7123345224'
down_revision = 'd756b34061ff'
from alembic import op
import sqlalchemy as sa
from sqlalchemy import orm... | 1,381 | Python | .py | 29 | 41.586207 | 113 | 0.701415 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,095 | 48ee74b8a7c8_.py | privacyidea_privacyidea/migrations/versions/48ee74b8a7c8_.py | """Add tokenowner table and move tokenuser data to new table
Revision ID: 48ee74b8a7c8
Revises: cb6d7b7bae63
Create Date: 2019-01-09 16:58:03.968193
"""
# revision identifiers, used by Alembic.
revision = '48ee74b8a7c8'
down_revision = 'cb6d7b7bae63'
from alembic import op, context
import sqlalchemy as sa
from sql... | 10,216 | Python | .py | 170 | 40.094118 | 126 | 0.516013 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,096 | 3ba618f6b820_.py | privacyidea_privacyidea/migrations/versions/3ba618f6b820_.py | """v3.6: add fraction to MySQL DateTime type in audit table
Revision ID: 3ba618f6b820
Revises: 59ef3e03bc62
Create Date: 2021-05-05 11:27:13.705851
"""
# revision identifiers, used by Alembic.
revision = '3ba618f6b820'
down_revision = '59ef3e03bc62'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dia... | 1,788 | Python | .py | 37 | 35.972973 | 83 | 0.602983 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,097 | 59ef3e03bc62_.py | privacyidea_privacyidea/migrations/versions/59ef3e03bc62_.py | """v3.6: Add column retry_if_failed to periodictask
Revision ID: 59ef3e03bc62
Revises: 888b56ed5dcb
Create Date: 2021-04-28 11:14:27.181828
"""
# revision identifiers, used by Alembic.
revision = '59ef3e03bc62'
down_revision = '888b56ed5dcb'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
... | 769 | Python | .py | 21 | 30.857143 | 96 | 0.668919 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,098 | 2c9430cfc66b_.py | privacyidea_privacyidea/migrations/versions/2c9430cfc66b_.py | """create periodictask, periodictaskoption, periodictasklastrun tables
Revision ID: 2c9430cfc66b
Revises: 204d8d4f351e
Create Date: 2018-06-20 09:55:52.086626
"""
# revision identifiers, used by Alembic.
revision = '2c9430cfc66b'
down_revision = '204d8d4f351e'
from alembic import op
import sqlalchemy as sa
def up... | 2,324 | Python | .py | 52 | 37.769231 | 76 | 0.664753 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |
39,099 | 204d8d4f351e_.py | privacyidea_privacyidea/migrations/versions/204d8d4f351e_.py | """Add priority to policy
Revision ID: 204d8d4f351e
Revises: 145ce80decd
Create Date: 2018-05-09 15:30:39.878219
"""
# revision identifiers, used by Alembic.
revision = '204d8d4f351e'
down_revision = '145ce80decd'
from alembic import op
import sqlalchemy as sa
def upgrade():
try:
# As we defined 'prio... | 730 | Python | .py | 20 | 32.55 | 104 | 0.714083 | privacyidea/privacyidea | 1,470 | 314 | 197 | AGPL-3.0 | 9/5/2024, 5:15:38 PM (Europe/Amsterdam) |