liyuyi@c-top.com.cn 4 år sedan
förälder
incheckning
71671d3ef7

+ 145 - 0
.gitignore

@@ -0,0 +1,145 @@
+# Created by .ignore support plugin (hsz.mobi)
+### Python template
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+share/python-wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+*.py,cover
+.hypothesis/
+.pytest_cache/
+cover/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+db.sqlite3-journal
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+.pybuilder/
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+#   For a library or package, you might want to ignore these files since the code is
+#   intended to run in multiple environments; otherwise, check them in:
+# .python-version
+
+# pipenv
+#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
+#   However, in case of collaboration, if having platform-specific dependencies or dependencies
+#   having no cross-platform support, pipenv may install dependencies that don't work, or not
+#   install all needed dependencies.
+#Pipfile.lock
+
+# PEP 582; used by e.g. github.com/David-OConnor/pyflow
+__pypackages__/
+
+# Celery stuff
+celerybeat-schedule
+celerybeat.pid
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
+
+# Pyre type checker
+.pyre/
+
+# pytype static type analyzer
+.pytype/
+
+# Cython debug symbols
+cython_debug/
+
+# add
+*.xml
+.gitignore
+

+ 0 - 19
.idea/dataSources.local.xml

@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="dataSourceStorageLocal">
-    <data-source name="OnLine" uuid="ce40759c-9f24-450b-942c-5e6978faeda3">
-      <database-info product="MySQL" version="5.7.25-TiDB-v5.2.0" jdbc-version="4.2" driver-name="MariaDB Connector/J" driver-version="2.7.3" dbms="MYSQL" exact-version="5.7.25" exact-driver-version="2.7">
-        <extra-name-characters>#@</extra-name-characters>
-        <identifier-quote-string>`</identifier-quote-string>
-      </database-info>
-      <case-sensitivity plain-identifiers="mixed" quoted-identifiers="mixed" />
-      <secret-storage>master_key</secret-storage>
-      <user-name>data</user-name>
-      <schema-mapping>
-        <introspection-scope>
-          <node kind="schema" qname="@" />
-        </introspection-scope>
-      </schema-mapping>
-    </data-source>
-  </component>
-</project>

+ 0 - 11
.idea/dataSources.xml

@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
-    <data-source source="LOCAL" name="OnLine" uuid="ce40759c-9f24-450b-942c-5e6978faeda3">
-      <driver-ref>mariadb</driver-ref>
-      <synchronize>true</synchronize>
-      <jdbc-driver>org.mariadb.jdbc.Driver</jdbc-driver>
-      <jdbc-url>jdbc:mariadb://139.186.27.96:3390/jeecg-boot</jdbc-url>
-    </data-source>
-  </component>
-</project>

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 58413
.idea/dataSources/ce40759c-9f24-450b-942c-5e6978faeda3.xml


+ 0 - 22
.idea/deployment.xml

@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="PublishConfigData" autoUpload="On explicit save action" serverName="similar_material_remote_root@139.186.165.84" remoteFilesAllowedToDisappearOnAutoupload="false">
-    <serverData>
-      <paths name="ai_target_remote_root@139.186.165.84:22 password">
-        <serverdata>
-          <mappings>
-            <mapping deploy="/data/pythonProject/ai_target" local="$PROJECT_DIR$/../ai_target" web="/" />
-          </mappings>
-        </serverdata>
-      </paths>
-      <paths name="similar_material_remote_root@139.186.165.84">
-        <serverdata>
-          <mappings>
-            <mapping deploy="/data/pythonProject/similar_material" local="$PROJECT_DIR$" web="/" />
-          </mappings>
-        </serverdata>
-      </paths>
-    </serverData>
-    <option name="myAutoUpload" value="ON_EXPLICIT_SAVE" />
-  </component>
-</project>

+ 0 - 19
.idea/inspectionProfiles/Project_Default.xml

@@ -1,19 +0,0 @@
-<component name="InspectionProjectProfileManager">
-  <profile version="1.0">
-    <option name="myName" value="Project Default" />
-    <inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
-      <Languages>
-        <language minSize="120" name="Python" />
-      </Languages>
-    </inspection_tool>
-    <inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
-      <option name="ignoredErrors">
-        <list>
-          <option value="E131" />
-        </list>
-      </option>
-    </inspection_tool>
-    <inspection_tool class="SqlDialectInspection" enabled="false" level="WARNING" enabled_by_default="false" />
-    <inspection_tool class="SqlResolveInspection" enabled="false" level="ERROR" enabled_by_default="false" />
-  </profile>
-</component>

+ 0 - 6
.idea/inspectionProfiles/profiles_settings.xml

@@ -1,6 +0,0 @@
-<component name="InspectionProjectProfileManager">
-  <settings>
-    <option name="USE_PROJECT_PROFILE" value="false" />
-    <version value="1.0" />
-  </settings>
-</component>

+ 0 - 8
.idea/modules.xml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ProjectModuleManager">
-    <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/similar_material.iml" filepath="$PROJECT_DIR$/.idea/similar_material.iml" />
-    </modules>
-  </component>
-</project>

+ 0 - 215
.idea/workspace.xml

@@ -1,215 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ChangeListManager">
-    <list default="true" id="31704e56-aca5-4e2d-bea1-d331132222c4" name="Default Changelist" comment="">
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/historical_material.py" beforeDir="false" afterPath="$PROJECT_DIR$/historical_material.py" afterDir="false" />
-    </list>
-    <option name="SHOW_DIALOG" value="false" />
-    <option name="HIGHLIGHT_CONFLICTS" value="true" />
-    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
-    <option name="LAST_RESOLUTION" value="IGNORE" />
-  </component>
-  <component name="Git.Settings">
-    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
-  </component>
-  <component name="JupyterTrust" id="ca2d42e4-d722-44a7-b416-c78a02b293a2" />
-  <component name="ProjectId" id="1xtcY2zgL9PgwlsfQTItYSWSoLL" />
-  <component name="ProjectViewState">
-    <option name="hideEmptyMiddlePackages" value="true" />
-    <option name="showLibraryContents" value="true" />
-    <option name="showMembers" value="true" />
-  </component>
-  <component name="PropertiesComponent">
-    <property name="DatabaseDriversLRU" value="mariadb" />
-    <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
-    <property name="WebServerToolWindowFactoryState" value="true" />
-    <property name="WebServerToolWindowPanel.toolwindow.highlight.mappings" value="true" />
-    <property name="WebServerToolWindowPanel.toolwindow.highlight.symlinks" value="true" />
-    <property name="WebServerToolWindowPanel.toolwindow.show.date" value="false" />
-    <property name="WebServerToolWindowPanel.toolwindow.show.permissions" value="false" />
-    <property name="WebServerToolWindowPanel.toolwindow.show.size" value="false" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
-    <property name="node.js.detected.package.eslint" value="true" />
-    <property name="node.js.detected.package.tslint" value="true" />
-    <property name="node.js.path.for.package.eslint" value="project" />
-    <property name="node.js.path.for.package.tslint" value="project" />
-    <property name="node.js.selected.package.eslint" value="(autodetect)" />
-    <property name="node.js.selected.package.tslint" value="(autodetect)" />
-    <property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
-  </component>
-  <component name="RunManager">
-    <configuration name="historical_material" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
-      <module name="similar_material" />
-      <option name="INTERPRETER_OPTIONS" value="" />
-      <option name="PARENT_ENVS" value="true" />
-      <envs>
-        <env name="PYTHONUNBUFFERED" value="1" />
-        <env name="LYY_DEV" value="dev" />
-      </envs>
-      <option name="SDK_HOME" value="" />
-      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
-      <option name="IS_MODULE_SDK" value="true" />
-      <option name="ADD_CONTENT_ROOTS" value="true" />
-      <option name="ADD_SOURCE_ROOTS" value="true" />
-      <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
-      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/historical_material.py" />
-      <option name="PARAMETERS" value="" />
-      <option name="SHOW_COMMAND_LINE" value="false" />
-      <option name="EMULATE_TERMINAL" value="false" />
-      <option name="MODULE_MODE" value="false" />
-      <option name="REDIRECT_INPUT" value="false" />
-      <option name="INPUT_FILE" value="" />
-      <method v="2" />
-    </configuration>
-    <recent_temporary>
-      <list>
-        <item itemvalue="Python.historical_material" />
-      </list>
-    </recent_temporary>
-  </component>
-  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
-  <component name="TaskManager">
-    <task active="true" id="Default" summary="Default task">
-      <changelist id="31704e56-aca5-4e2d-bea1-d331132222c4" name="Default Changelist" comment="" />
-      <created>1631177869104</created>
-      <option name="number" value="Default" />
-      <option name="presentableId" value="Default" />
-      <updated>1631177869104</updated>
-      <workItem from="1631177870267" duration="1370000" />
-      <workItem from="1631516407803" duration="507000" />
-      <workItem from="1631518475799" duration="418000" />
-      <workItem from="1631518912011" duration="191000" />
-      <workItem from="1631519119181" duration="6843000" />
-      <workItem from="1631584529196" duration="124000" />
-      <workItem from="1631601848067" duration="64000" />
-      <workItem from="1631695590002" duration="1530000" />
-      <workItem from="1631757779061" duration="17549000" />
-      <workItem from="1631846187097" duration="1382000" />
-      <workItem from="1631861458465" duration="38000" />
-      <workItem from="1631861519848" duration="283000" />
-      <workItem from="1631861811445" duration="1804000" />
-      <workItem from="1631863643828" duration="12000" />
-    </task>
-    <servers />
-  </component>
-  <component name="TypeScriptGeneratedFilesManager">
-    <option name="version" value="3" />
-  </component>
-  <component name="WindowStateProjectService">
-    <state x="1348" y="345" width="1404" height="849" key="#Deployment" timestamp="1631695991505">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1073" y="361" key="#Deployment/0.30.3440.1410@0.30.3440.1410" timestamp="1631184746519" />
-    <state x="1348" y="345" width="1404" height="849" key="#Deployment/0.39.3440.1401@0.39.3440.1401" timestamp="1631695991505" />
-    <state x="1561" y="335" key="#Options" timestamp="1631695996481">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1238" y="398" key="#Options/0.30.3440.1410@0.30.3440.1410" timestamp="1631184627720" />
-    <state x="1561" y="335" key="#Options/0.39.3440.1401@0.39.3440.1401" timestamp="1631695996481" />
-    <state x="1331" y="719" width="1431" height="699" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1631521915391">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1331" y="719" width="1431" height="699" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.39.3440.1401@0.39.3440.1401" timestamp="1631521915391" />
-    <state x="1260" y="650" width="1118" height="734" key="#xdebugger.evaluate" timestamp="1631778697501">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1260" y="650" width="1118" height="734" key="#xdebugger.evaluate/0.39.3440.1401@0.39.3440.1401" timestamp="1631778697501" />
-    <state x="1809" y="461" width="824" height="601" key="EnvironmentVariablesDialog" timestamp="1631521912488">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1809" y="461" width="824" height="601" key="EnvironmentVariablesDialog/0.39.3440.1401@0.39.3440.1401" timestamp="1631521912488" />
-    <state x="1374" y="473" key="FileChooserDialogImpl" timestamp="1631861493770">
-      <screen x="0" y="30" width="3440" height="1410" />
-    </state>
-    <state x="1374" y="473" key="FileChooserDialogImpl/0.30.3440.1410@0.30.3440.1410" timestamp="1631861493770" />
-    <state x="1374" y="479" key="FileChooserDialogImpl/0.39.3440.1401@0.39.3440.1401" timestamp="1631695773220" />
-    <state width="1478" height="451" key="GridCell.Tab.0.bottom" timestamp="1631790340398">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1478" height="451" key="GridCell.Tab.0.bottom/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340398" />
-    <state width="1478" height="451" key="GridCell.Tab.0.center" timestamp="1631790340397">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1478" height="451" key="GridCell.Tab.0.center/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340397" />
-    <state width="1478" height="451" key="GridCell.Tab.0.left" timestamp="1631790340397">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1478" height="451" key="GridCell.Tab.0.left/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340397" />
-    <state width="1478" height="451" key="GridCell.Tab.0.right" timestamp="1631790340398">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1478" height="451" key="GridCell.Tab.0.right/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340398" />
-    <state width="1647" height="234" key="GridCell.Tab.1.bottom" timestamp="1631790340388">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1647" height="234" key="GridCell.Tab.1.bottom/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340388" />
-    <state width="1647" height="234" key="GridCell.Tab.1.center" timestamp="1631790340388">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1647" height="234" key="GridCell.Tab.1.center/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340388" />
-    <state width="1647" height="234" key="GridCell.Tab.1.left" timestamp="1631790340388">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1647" height="234" key="GridCell.Tab.1.left/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340388" />
-    <state width="1647" height="234" key="GridCell.Tab.1.right" timestamp="1631790340388">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1647" height="234" key="GridCell.Tab.1.right/0.39.3440.1401@0.39.3440.1401" timestamp="1631790340388" />
-    <state x="1055" y="341" width="1655" height="883" key="SettingsEditor" timestamp="1631695873267">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1055" y="341" width="1655" height="883" key="SettingsEditor/0.39.3440.1401@0.39.3440.1401" timestamp="1631695873267" />
-    <state width="1730" height="696" key="XDebugger.FullValuePopup" timestamp="1631758279917">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state width="1730" height="696" key="XDebugger.FullValuePopup/0.39.3440.1401@0.39.3440.1401" timestamp="1631758279917" />
-    <state x="1643" y="642" key="com.jetbrains.plugins.remotesdk.ui.RemoteMappingsConfiguration" timestamp="1631695750382">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1643" y="642" key="com.jetbrains.plugins.remotesdk.ui.RemoteMappingsConfiguration/0.39.3440.1401@0.39.3440.1401" timestamp="1631695750382" />
-    <state x="1651" y="304" width="768" height="667" key="ftp.server.browser" timestamp="1631695810714">
-      <screen x="0" y="39" width="3440" height="1401" />
-    </state>
-    <state x="1651" y="304" width="768" height="667" key="ftp.server.browser/0.39.3440.1401@0.39.3440.1401" timestamp="1631695810714" />
-  </component>
-  <component name="XDebuggerManager">
-    <breakpoint-manager>
-      <breakpoints>
-        <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
-          <url>file://$PROJECT_DIR$/historical_material.py</url>
-          <line>203</line>
-          <option name="timeStamp" value="24" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
-          <url>file://$PROJECT_DIR$/historical_material.py</url>
-          <line>186</line>
-          <option name="timeStamp" value="25" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
-          <url>file://$PROJECT_DIR$/historical_material.py</url>
-          <line>204</line>
-          <option name="timeStamp" value="26" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
-          <url>file://$PROJECT_DIR$/historical_material.py</url>
-          <line>173</line>
-          <option name="timeStamp" value="28" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
-          <url>file://$PROJECT_DIR$/historical_material.py</url>
-          <line>177</line>
-          <option name="timeStamp" value="29" />
-        </line-breakpoint>
-        <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
-          <url>file://$PROJECT_DIR$/historical_material.py</url>
-          <line>97</line>
-          <option name="timeStamp" value="33" />
-        </line-breakpoint>
-      </breakpoints>
-    </breakpoint-manager>
-  </component>
-  <component name="com.intellij.coverage.CoverageDataManagerImpl">
-    <SUITE FILE_PATH="coverage/similar_material$historical_material.coverage" NAME="historical_material Coverage Results" MODIFIED="1631787705424" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
-  </component>
-</project>