From 77bc53299b1365634539ac29999b63fa8dc958d4 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Fri, 5 Aug 2022 21:36:04 +0200 Subject: [PATCH 01/11] Reconfigure and revise licensing --- .editorconfig | 129 ++++++++++++++++++++++++++++++++++++++++++ .gitattributes | 2 +- .gitignore | 1 + LICENSE | 21 +++++++ license.txt => NOTICE | 4 ++ 5 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 LICENSE rename license.txt => NOTICE (76%) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8301daf --- /dev/null +++ b/.editorconfig @@ -0,0 +1,129 @@ +# To learn more about .editorconfig see https://aka.ms/editorconfigdocs +############################### +# Core EditorConfig Options # +############################### +# All files +[*] +end_of_line = lf +indent_style = space +insert_final_newline = true +indent_size = 2 +trim_trailing_whitespace = true + +# XML project files +[*.{csproj,proj,projitems,shproj}] +indent_size = 2 + +# XML config files +[*.{props,targets,ruleset,config,nuspec,resx}] +indent_size = 2 + +# Code files +[*.{cs,csx}] +indent_size = 4 +insert_final_newline = true +charset = utf-8-bom +############################### +# .NET Coding Conventions # +############################### +[*.cs] +# Organize usings +dotnet_sort_system_directives_first = true +# this. preferences +dotnet_style_qualification_for_field = false:silent +dotnet_style_qualification_for_property = false:silent +dotnet_style_qualification_for_method = false:silent +dotnet_style_qualification_for_event = false:silent +# Language keywords vs BCL types preferences +dotnet_style_predefined_type_for_locals_parameters_members = true:silent +dotnet_style_predefined_type_for_member_access = true:silent +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent +dotnet_style_readonly_field = true:suggestion +# Expression-level preferences +dotnet_style_object_initializer = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_explicit_tuple_names = true:suggestion +dotnet_style_null_propagation = true:suggestion +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent +dotnet_style_prefer_inferred_tuple_names = true:suggestion +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_auto_properties = true:silent +dotnet_style_prefer_conditional_expression_over_assignment = true:silent +dotnet_style_prefer_conditional_expression_over_return = true:silent +############################### +# Naming Conventions # +############################### +# Style Definitions +dotnet_naming_style.pascal_case_style.capitalization = pascal_case +# Use PascalCase for constant fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style +dotnet_naming_symbols.constant_fields.applicable_kinds = field +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * +dotnet_naming_symbols.constant_fields.required_modifiers = const +############################### +# C# Coding Conventions # +############################### +# var preferences +csharp_style_var_for_built_in_types = true:silent +csharp_style_var_when_type_is_apparent = true:silent +csharp_style_var_elsewhere = true:silent +# Expression-bodied members +csharp_style_expression_bodied_methods = false:silent +csharp_style_expression_bodied_constructors = false:silent +csharp_style_expression_bodied_operators = false:silent +csharp_style_expression_bodied_properties = true:silent +csharp_style_expression_bodied_indexers = true:silent +csharp_style_expression_bodied_accessors = true:silent +# Pattern matching preferences +csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion +csharp_style_pattern_matching_over_as_with_null_check = true:suggestion +# Null-checking preferences +csharp_style_throw_expression = true:suggestion +csharp_style_conditional_delegate_call = true:suggestion +# Modifier preferences +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion +# Expression-level preferences +csharp_prefer_braces = true:silent +csharp_style_deconstructed_variable_declaration = true:suggestion +csharp_prefer_simple_default_expression = true:suggestion +csharp_style_pattern_local_over_anonymous_function = true:suggestion +csharp_style_inlined_variable_declaration = true:suggestion +############################### +# C# Formatting Rules # +############################### +# New line preferences +csharp_new_line_before_open_brace = all +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_between_query_expression_clauses = true +# Indentation preferences +csharp_indent_case_contents = true +csharp_indent_switch_labels = true +csharp_indent_labels = flush_left +# Space preferences +csharp_space_after_cast = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_parameter_list_parentheses = false +csharp_space_between_parentheses = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_around_binary_operators = before_and_after +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +# Wrapping preferences +csharp_preserve_single_line_statements = true +csharp_preserve_single_line_blocks = true diff --git a/.gitattributes b/.gitattributes index 412eeda..49e3350 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ # Auto detect text files and perform LF normalization -* text=auto +* text=auto eol=lf # Custom for Visual Studio *.cs diff=csharp diff --git a/.gitignore b/.gitignore index db31450..0031f95 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,7 @@ local.properties *.vspscc .builds *.dotCover +.vs/ ## TODO: If you have NuGet Package Restore enabled, uncomment this #packages/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4b11c4c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Demerzel Solutions Limited + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/license.txt b/NOTICE similarity index 76% rename from license.txt rename to NOTICE index c1d7f8a..730e0d4 100644 --- a/license.txt +++ b/NOTICE @@ -1,3 +1,7 @@ +This software is derived from Dirichlet .NET Number Theory Library +(https://github.com/ricksladkey/Dirichlet) +covered by the following copyright and permission notice: + Copyright 2014 Rick Sladkey Licensed under the Apache License, Version 2.0 (the "License"); From 4495b6819ee14c381848161e648ba3f184bd4438 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Fri, 5 Aug 2022 23:57:26 +0200 Subject: [PATCH 02/11] Prepare for packaging --- .../Nethermind.Dirichlet.Numerics.csproj | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj index 4cb8cd9..5c2e8c2 100644 --- a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj +++ b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj @@ -3,4 +3,26 @@ netstandard2.1 8 + + + Nethermind + Demerzel Solutions Limited + true + true + Nethermind.Dirichlet.Numerics + MIT + https://github.com/nethermindeth/dirichlet + git + https://github.com/nethermindeth/dirichlet + snupkg + 1.0.0 + preview.1 + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + From 8b02546606cec599ce83fafcda9823cec6d35f0a Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Sat, 6 Aug 2022 00:19:19 +0200 Subject: [PATCH 03/11] Add GitHub Actions --- .github/workflows/publish-dirichlet.yml | 29 ++++++++++++++++++ .github/workflows/test.yml | 39 +++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/publish-dirichlet.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/publish-dirichlet.yml b/.github/workflows/publish-dirichlet.yml new file mode 100644 index 0000000..6567e57 --- /dev/null +++ b/.github/workflows/publish-dirichlet.yml @@ -0,0 +1,29 @@ +name: Publish Nethermind.Dirichlet.Numerics + +on: + workflow_dispatch: + +jobs: + publish-dirichlet: + env: + BUILD_CONFIG: release + PROJECT_NAME: Nethermind.Dirichlet.Numerics + name: Publish + runs-on: ubuntu-latest + steps: + + - name: Check out repository + uses: actions/checkout@v3 + + - name: Set up .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + + - name: Pack + working-directory: ${{ env.PROJECT_NAME }} + run: dotnet pack -c ${{ env.BUILD_CONFIG }} -p:ContinuousIntegrationBuild=true + + - name: Publish + working-directory: ${{ env.PROJECT_NAME }} + run: dotnet nuget push bin/${{ env.BUILD_CONFIG }}/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a6ea5b7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: Test + +on: + push: + paths: + - '.github/workflows/test.yml' + - 'Nethermind.*/**' + workflow_dispatch: + +jobs: + test: + env: + BUILD_CONFIG: release + name: Test + runs-on: ubuntu-latest + steps: + + - name: Check out repository + uses: actions/checkout@v3 + + - name: Set up .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + + - name: Install dependencies + run: dotnet restore + + - name: Build Nethermind.Dirichlet.Numerics + working-directory: Nethermind.Dirichlet.Numerics + run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore + + - name: Build Nethermind.Decompose.Numerics + working-directory: Nethermind.Decompose.Numerics + run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore + + #- name: Test + # working-directory: Nethermind.Decompose.Numerics.Test + # run: dotnet test -c ${{ env.BUILD_CONFIG }} --no-restore From 5f7782a3de0dd09202a4d82bbf99e81879237b81 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Sat, 6 Aug 2022 10:58:00 +0200 Subject: [PATCH 04/11] Update package info --- .../Nethermind.Dirichlet.Numerics.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj index 5c2e8c2..a079af8 100644 --- a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj +++ b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj @@ -5,11 +5,11 @@ - Nethermind - Demerzel Solutions Limited + Nethermind, Rick Sladkey + Demerzel Solutions Limited, Rick Sladkey true true - Nethermind.Dirichlet.Numerics + Nethermind.Numerics.Dirichlet MIT https://github.com/nethermindeth/dirichlet git From 2eb7c81ea1961cc4cc768720159ae0eec443af3d Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Sat, 6 Aug 2022 13:01:21 +0200 Subject: [PATCH 05/11] Revise workflows --- .github/workflows/build-publish-dirichlet.yml | 44 +++++++++++++++++++ .../{test.yml => build-test-decompose.yml} | 22 ++++------ .github/workflows/publish-dirichlet.yml | 29 ------------ 3 files changed, 53 insertions(+), 42 deletions(-) create mode 100644 .github/workflows/build-publish-dirichlet.yml rename .github/workflows/{test.yml => build-test-decompose.yml} (52%) delete mode 100644 .github/workflows/publish-dirichlet.yml diff --git a/.github/workflows/build-publish-dirichlet.yml b/.github/workflows/build-publish-dirichlet.yml new file mode 100644 index 0000000..b377f2d --- /dev/null +++ b/.github/workflows/build-publish-dirichlet.yml @@ -0,0 +1,44 @@ +name: Build and publish Dirichlet + +on: + push: + paths: + - '.github/workflows/build-publish-dirichlet.yml' + - 'Nethermind.Dirichlet.Numerics/**' + workflow_dispatch: + inputs: + publish: + description: 'Publish package' + default: false + required: false + type: boolean + +jobs: + build-publish: + env: + BUILD_CONFIG: release + name: Build and publish if required + runs-on: ubuntu-latest + steps: + + - name: Check out repository + uses: actions/checkout@v3 + + - name: Set up .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + + - name: Install dependencies + run: dotnet restore + + - name: Build Nethermind.Dirichlet.Numerics + working-directory: Nethermind.Dirichlet.Numerics + run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore -p:ContinuousIntegrationBuild=true + + - name: Publish + if: ${{ inputs.publish }} + working-directory: Nethermind.Dirichlet.Numerics + run: | + dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build + dotnet nuget push bin/${{ env.BUILD_CONFIG }}/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json diff --git a/.github/workflows/test.yml b/.github/workflows/build-test-decompose.yml similarity index 52% rename from .github/workflows/test.yml rename to .github/workflows/build-test-decompose.yml index a6ea5b7..7adc0da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/build-test-decompose.yml @@ -1,17 +1,17 @@ -name: Test +name: Build and test Decompose on: push: paths: - - '.github/workflows/test.yml' - - 'Nethermind.*/**' + - '.github/workflows/build-test-decompose.yml' + - 'Nethermind.Decompose.*/**' workflow_dispatch: jobs: - test: + build-test: env: BUILD_CONFIG: release - name: Test + name: Build and test runs-on: ubuntu-latest steps: @@ -25,15 +25,11 @@ jobs: - name: Install dependencies run: dotnet restore - - - name: Build Nethermind.Dirichlet.Numerics - working-directory: Nethermind.Dirichlet.Numerics - run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore - - name: Build Nethermind.Decompose.Numerics + - name: Build working-directory: Nethermind.Decompose.Numerics run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore - #- name: Test - # working-directory: Nethermind.Decompose.Numerics.Test - # run: dotnet test -c ${{ env.BUILD_CONFIG }} --no-restore + - name: Test + working-directory: Nethermind.Decompose.Numerics.Test + run: dotnet test -c ${{ env.BUILD_CONFIG }} --no-restore diff --git a/.github/workflows/publish-dirichlet.yml b/.github/workflows/publish-dirichlet.yml deleted file mode 100644 index 6567e57..0000000 --- a/.github/workflows/publish-dirichlet.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Publish Nethermind.Dirichlet.Numerics - -on: - workflow_dispatch: - -jobs: - publish-dirichlet: - env: - BUILD_CONFIG: release - PROJECT_NAME: Nethermind.Dirichlet.Numerics - name: Publish - runs-on: ubuntu-latest - steps: - - - name: Check out repository - uses: actions/checkout@v3 - - - name: Set up .NET - uses: actions/setup-dotnet@v2 - with: - dotnet-version: 6.0.x - - - name: Pack - working-directory: ${{ env.PROJECT_NAME }} - run: dotnet pack -c ${{ env.BUILD_CONFIG }} -p:ContinuousIntegrationBuild=true - - - name: Publish - working-directory: ${{ env.PROJECT_NAME }} - run: dotnet nuget push bin/${{ env.BUILD_CONFIG }}/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json From 4d560df8e3a4f981c83e2bb8839898f53fdbda99 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Sat, 6 Aug 2022 15:31:16 +0200 Subject: [PATCH 06/11] Update project URL --- .../Nethermind.Dirichlet.Numerics.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj index a079af8..b0c74f4 100644 --- a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj +++ b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj @@ -11,7 +11,7 @@ true Nethermind.Numerics.Dirichlet MIT - https://github.com/nethermindeth/dirichlet + https://nethermind.io git https://github.com/nethermindeth/dirichlet snupkg From ea48e5c820a3d835e95c9a3e4954caa1f158066d Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Sun, 7 Aug 2022 01:31:51 +0200 Subject: [PATCH 07/11] Update .gitignore --- .gitignore | 412 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 320 insertions(+), 92 deletions(-) diff --git a/.gitignore b/.gitignore index 0031f95..6cc9b0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,57 +1,84 @@ -################# -## Eclipse -################# - -*.pydevproject -.project -.metadata -bin/ -tmp/ -*.tmp -*.bak -*.swp -*~.nib -local.properties -.classpath -.settings/ -.loadpath - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# CDT-specific -.cproject - -# PDT-specific -.buildpath - - -################# -## Visual Studio -################# - ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore # User-specific files +*.rsuser *.suo *.user +*.userosscache *.sln.docstates -*.VC.opendb + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* # Build results [Dd]ebug/ +[Dd]ebugPublic/ [Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio *_i.c *_p.c +*_h.h *.ilk *.meta *.obj +*.iobj *.pch *.pdb +*.ipdb *.pgc *.pgd *.rsp @@ -60,30 +87,85 @@ local.properties *.tli *.tlh *.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog *.vspscc +*.vssscc .builds -*.dotCover -.vs/ +*.pidb +*.svclog +*.scc -## TODO: If you have NuGet Package Restore enabled, uncomment this -#packages/ +# Chutzpah Test files +_Chutzpah* # Visual C++ cache files ipch/ *.aps *.ncb +*.opendb *.opensdf *.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb # Visual Studio profiler *.psess *.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState # ReSharper is a .NET coding add-in -_ReSharper* +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user +*.DotSettings + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ # Installshield output folder -[Ee]xpress +[Ee]xpress/ # DocProject is a documentation generator add-in DocProject/buildhelp/ @@ -96,77 +178,223 @@ DocProject/Help/Html2 DocProject/Help/html # Click-Once directory -publish +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ # Others -[Bb]in -[Oo]bj -sql -TestResults -*.Cache -ClientBin -stylecop.* +ClientBin/ ~$* +*~ *.dbmdl -Generated_Code #added for RIA/Silverlight projects - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs +# OpenCover UI analysis results +OpenCover/ -############ -## Windows -############ +# Azure Stream Analytics local run output +ASALocalRun/ -# Windows image file caches -Thumbs.db +# MSBuild Binary and Structured Log +*.binlog -# Folder config file -Desktop.ini +# NVidia Nsight GPU debugger configuration file +*.nvuser +# MFractors (Xamarin productivity tool) working folder +.mfractor/ -############# -## Python -############# +# Local History for Visual Studio +.localhistory/ -*.py[co] +# Visual Studio History (VSHistory) files +.vshistory/ -# Packages -*.egg -*.egg-info -dist -build -eggs -parts -bin -var -sdist -develop-eggs -.installed.cfg +# BeatPulse healthcheck temp database +healthchecksdb -# Installer logs -pip-log.txt +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ -# Unit test / coverage reports -.coverage -.tox +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ -#Translations -*.mo +# Fody - auto-generated XML schema +FodyWeavers.xsd -#Mr Developer -.mr.developer.cfg +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace -# Mac crap -.DS_Store +# Local History for Visual Studio Code +.history/ -# MinGW files -*.o -*.exe +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp -# Idea +# JetBrains Rider .idea/ +*.sln.iml From 7e68a0a67f1d8ebd08765d281852b4e78de40455 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Sun, 7 Aug 2022 11:59:16 +0200 Subject: [PATCH 08/11] Update package info --- .../Nethermind.Dirichlet.Numerics.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj index b0c74f4..894e21d 100644 --- a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj +++ b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj @@ -5,8 +5,8 @@ - Nethermind, Rick Sladkey - Demerzel Solutions Limited, Rick Sladkey + Nethermind + Demerzel Solutions Limited true true Nethermind.Numerics.Dirichlet From 3265c5b8a6eaeaaf533029480102a7cbde18bc39 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Thu, 18 Aug 2022 19:36:03 +0200 Subject: [PATCH 09/11] Revise NOTICE --- NOTICE | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NOTICE b/NOTICE index 730e0d4..4c148f8 100644 --- a/NOTICE +++ b/NOTICE @@ -1,6 +1,6 @@ This software is derived from Dirichlet .NET Number Theory Library -(https://github.com/ricksladkey/Dirichlet) -covered by the following copyright and permission notice: +located at https://github.com/ricksladkey/Dirichlet +and covered by the following copyright and permission notice: Copyright 2014 Rick Sladkey From 19b5dc6ba5cdf7406bb456bdb300471a2d52a1ae Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Thu, 18 Aug 2022 19:43:29 +0200 Subject: [PATCH 10/11] Update version --- .../Nethermind.Dirichlet.Numerics.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj index 894e21d..d90aa8f 100644 --- a/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj +++ b/Nethermind.Dirichlet.Numerics/Nethermind.Dirichlet.Numerics.csproj @@ -16,7 +16,7 @@ https://github.com/nethermindeth/dirichlet snupkg 1.0.0 - preview.1 + From 90bc9bbee71c3736499e2d2e23e2fdae40665775 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Thu, 18 Aug 2022 23:42:56 +0200 Subject: [PATCH 11/11] Add badges --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 090e543..e4d3777 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -### Dirichlet .NET Number Theory Library +# Dirichlet .NET Number Theory Library + +[![Test and publish](https://github.com/nethermindeth/dirichlet/actions/workflows/build-publish-dirichlet.yml/badge.svg)](https://github.com/nethermindeth/dirichlet/actions/workflows/build-publish-dirichlet.yml) +[![Nethermind.Numerics.Dirichlet](https://img.shields.io/nuget/v/Nethermind.Numerics.Dirichlet)](https://www.nuget.org/packages/Nethermind.Numerics.Dirichlet) This is a fork of ricksladkey/Dirichlet with significant structural and code changes. Please refer to the original repo. This fork is work in progress and should not be considered stable or correct. @@ -10,6 +13,6 @@ Features: - High-performance Factorization - Optimized Arithmetic Functions and Algorithms -Although it is fairly complete and well tested, it lacks the organization of a released library due to its evolution and the inclusion of various experimental ideas and highly-specialized applications. In the algorithms in particular there are often many flavors of same thing in various attempts to increase performance. +Although it is fairly complete and well tested, it lacks the organization of a released library due to its evolution and the inclusion of various experimental ideas and highly-specialized applications. In the algorithms in particular there are often many flavors of same thing in various attempts to increase performance. If there is any interest, I might separate things out and migrate more of the core to [Dirichlet.Numerics](https://github.com/ricksladkey/dirichlet-numerics).