<commit_before># -*- coding: utf-8 -*-
from sys import version_info
import csv, platform, argparse
from ..QtModules import *
from .Ui_info import Ui_About_Dialog

VERSION = ('0.6.5', 'dev')
from PyQt5.QtCore import qVersion
from PyQt5.QtCore import PYQT_VERSION_STR as pyqtVersion
from sip import SIP_VERSION_STR as sipVersion
from PyQt5.Qsci import QSCINTILLA_VERSION_STR as qsciVersion
INFO = ["Pyslvs {}({})".format(VERSION[0], VERSION[1]),
    "OS Type: {} {} [{}]".format(platform.system(), platform.release(), platform.machine()),
    "Python Version: {v.major}.{v.minor}.{v.micro}({v.releaselevel})".format(v=version_info),
    "Python Compiler: {}".format(platform.python_compiler()),
    "Qt Version: {}".format(qVersion().strip()),
    "PyQt Version: {}".format(pyqtVersion.strip()),
    "Sip Version: {}".format(sipVersion.strip()),
    "QScintilla Version: {}".format(qsciVersion.strip())]

parser = argparse.ArgumentParser(
    description="Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.",
    epilog="Power by Python IDE Eric-6, PyQt-5, dxfwrite.")
parser.add_argument('-v', '--version', action='version', help="show version infomations and exit", version='{}({})'.format(VERSION[0], VERSION[1]))
parser.add_argument('-r', metavar='File Path', default=False, nargs='?', type=str, help="read csv file from the file path")
parser.add_argument('-i', metavar='Start Path', default=False, nargs='?', type=str, help="start Pyslvs in the specified path")
parser.add_argument('-w', action='store_true', help="show rebuild warning of canvas")
parser.add_argument('-f', '--fusion', action='store_true', help="run Pyslvs in Fusion style")
parser.add_argument('-d', '--file-data', action='store_true', help="display the file data in command-line when opening")
parser.add_argument('-g', '--show-args', action='store_true', help="display the arguments when starting")
args = parser.parse_args()

def show_info():
    print('\n'.join(INFO))
    print('-'*7)
    return args

class Pyslvs_Splash(QSplashScreen):
    def __init__(self, parent=None):
        super(Pyslvs_Splash, self).__init__(parent, QPixmap(":/icons/Splash.png"))
        self.showMessage("Version {}({})".format(VERSION[0], VERSION[1]), (Qt.AlignBottom|Qt.AlignRight))

## Turn simple string to html format.
def html(script): return '<html><head/><body>{}</body></html>'.format(script)
def title(name, *others): return '<h2>{}</h2>'.format(name)+('<h3>{}</h3>'.format('</h3><h3>'.join(others)) if others else '')
def content(*text): return '<p>{}</p>'.format('</p><p>'.join(text))
def orderList(*List): return '<ul><li>{}</li></ul>'.format('</li><li>'.join(List))

class version_show(QDialog, Ui_About_Dialog):
    def __init__(self, parent=None):
        super(version_show, self).__init__(parent)
        self.setupUi(self)
        self.Title.setText(html(title("Pyslvs", "Version {}({})".format(VERSION[0], VERSION[1]))))
        self.Content.setText(html(content(
        "Pyslvs is a Open Source support tools to help user solving 2D linkage problem.",
        "It can use in Mechanical Design and Simulation.",
        "This program using Python 3 with Python Solvespace.",
        "Pyslvs just like a ordinary CAD software, but use table to add and edit points.",
        "Within changing points location, finally give the answer to designer.",
        "We have these features:")+orderList(
        "2D Linkages dynamic simulation.",
        "Dimensional Synthesis of Planar Four-bar Linkages.",
        "Output points coordinate to Data Sheet (*.csv) format.",
        "Change canvas appearance.",
        "Draw dynamic simulation path with any point in the machinery.",
        "Using triangle iterate the mechanism results.")+content(
        "If you want to know about more, you can reference by our website.")))
        self.Versions.setText(html(orderList(*INFO)))
<commit_msg>Changed version.<commit_after># -*- coding: utf-8 -*-
from sys import version_info
import csv, platform, argparse
from ..QtModules import *
from .Ui_info import Ui_About_Dialog

VERSION = ('0.6.5', 'stable')
from PyQt5.QtCore import qVersion
from PyQt5.QtCore import PYQT_VERSION_STR as pyqtVersion
from sip import SIP_VERSION_STR as sipVersion
from PyQt5.Qsci import QSCINTILLA_VERSION_STR as qsciVersion
INFO = ["Pyslvs {}({})".format(VERSION[0], VERSION[1]),
    "OS Type: {} {} [{}]".format(platform.system(), platform.release(), platform.machine()),
    "Python Version: {v.major}.{v.minor}.{v.micro}({v.releaselevel})".format(v=version_info),
    "Python Compiler: {}".format(platform.python_compiler()),
    "Qt Version: {}".format(qVersion().strip()),
    "PyQt Version: {}".format(pyqtVersion.strip()),
    "Sip Version: {}".format(sipVersion.strip()),
    "QScintilla Version: {}".format(qsciVersion.strip())]

parser = argparse.ArgumentParser(
    description="Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.",
    epilog="Power by Python IDE Eric-6, PyQt-5, dxfwrite.")
parser.add_argument('-v', '--version', action='version', help="show version infomations and exit", version='{}({})'.format(VERSION[0], VERSION[1]))
parser.add_argument('-r', metavar='File Path', default=False, nargs='?', type=str, help="read csv file from the file path")
parser.add_argument('-i', metavar='Start Path', default=False, nargs='?', type=str, help="start Pyslvs in the specified path")
parser.add_argument('-w', action='store_true', help="show rebuild warning of canvas")
parser.add_argument('-f', '--fusion', action='store_true', help="run Pyslvs in Fusion style")
parser.add_argument('-d', '--file-data', action='store_true', help="display the file data in command-line when opening")
parser.add_argument('-g', '--show-args', action='store_true', help="display the arguments when starting")
args = parser.parse_args()

def show_info():
    print('\n'.join(INFO))
    print('-'*7)
    return args

class Pyslvs_Splash(QSplashScreen):
    def __init__(self, parent=None):
        super(Pyslvs_Splash, self).__init__(parent, QPixmap(":/icons/Splash.png"))
        self.showMessage("Version {}({})".format(VERSION[0], VERSION[1]), (Qt.AlignBottom|Qt.AlignRight))

## Turn simple string to html format.
def html(script): return '<html><head/><body>{}</body></html>'.format(script)
def title(name, *others): return '<h2>{}</h2>'.format(name)+('<h3>{}</h3>'.format('</h3><h3>'.join(others)) if others else '')
def content(*text): return '<p>{}</p>'.format('</p><p>'.join(text))
def orderList(*List): return '<ul><li>{}</li></ul>'.format('</li><li>'.join(List))

class version_show(QDialog, Ui_About_Dialog):
    def __init__(self, parent=None):
        super(version_show, self).__init__(parent)
        self.setupUi(self)
        self.Title.setText(html(title("Pyslvs", "Version {}({})".format(VERSION[0], VERSION[1]))))
        self.Content.setText(html(content(
        "Pyslvs is a Open Source support tools to help user solving 2D linkage problem.",
        "It can use in Mechanical Design and Simulation.",
        "This program using Python 3 with Python Solvespace.",
        "Pyslvs just like a ordinary CAD software, but use table to add and edit points.",
        "Within changing points location, finally give the answer to designer.",
        "We have these features:")+orderList(
        "2D Linkages dynamic simulation.",
        "Dimensional Synthesis of Planar Four-bar Linkages.",
        "Output points coordinate to Data Sheet (*.csv) format.",
        "Change canvas appearance.",
        "Draw dynamic simulation path with any point in the machinery.",
        "Using triangle iterate the mechanism results.")+content(
        "If you want to know about more, you can reference by our website.")))
        self.Versions.setText(html(orderList(*INFO)))

{'fraction_non_alphanumeric': 0.16966812451762284, 'fraction_numerical': 0.0072034988422948285, 'mean_word_length': 4.662782228696286, 'pattern_counts': {'":': 2, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2593456', 'n_tokens_mistral': 2460, 'n_tokens_neox': 2401, 'n_words': 657}