Giter Club home page Giter Club logo

raistlic-lib-commons-core's People

Contributors

raistlic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

raistlic-lib-commons-core's Issues

Combination$DefaultAlgorithm#getCombinationCount have a problem

BigInteger pAll = Factorial.of(numberOfElements); BigInteger pPick = Factorial.of(numberToPick); BigInteger pRest = Factorial.of(numberOfElements - numberToPick); return pAll.divide(pPick.multiply(pRest));
when I use a amount of Elements ,Factorial's cache will cause a block or suspend ,I try to get a thread dump like below
` java.lang.Thread.State: RUNNABLE
at java.math.MutableBigInteger.divideMagnitude(MutableBigInteger.java:1494)
at java.math.MutableBigInteger.divideKnuth(MutableBigInteger.java:1227)
at java.math.MutableBigInteger.divideKnuth(MutableBigInteger.java:1163)
at java.math.MutableBigInteger.divideKnuth(MutableBigInteger.java:1221)
at java.math.BigInteger.divideKnuth(BigInteger.java:2065)
at java.math.BigInteger.divide(BigInteger.java:2046)
at com.mobi.utils.maths.Combination$DefaultAlgorithm.getCombinationCount(Combination.java:275)
at com.mobi.utils.maths.Combination$DefaultAlgorithm.fetchCombination(Combination.java:295)
Thanks you !

remove travis ci

just use GCP cloudbuild, easier, more powerful & mostly free.

migrate all unit test to use spock

  • refactor existing spock tests
  • rewrite all other unit tests in spock
  • package by package
  • fix coverage
  • fail build on coverage check failure

Combination.of(Arrays.asList(0,1,2,3,4,5,6,7,8,9),5) calls java.lang.NullPointerException in Factorial.java:60

Combination.of(Arrays.asList(0,1,2,3,4,5,6,7,8,9),5)

Exception in thread "main" java.lang.NullPointerException
at org.raistlic.common.permutation.Factorial.of(Factorial.java:60)
at org.raistlic.common.permutation.Combination$DefaultAlgorithm.getCombinationCount(Combination.java:207)
at org.raistlic.common.permutation.Combination.(Combination.java:116)
at org.raistlic.common.permutation.Combination.of(Combination.java:85)
at org.raistlic.common.permutation.Combination.of(Combination.java:59)
at NumMax.main(NumMax.java:25)

fix maven publish

The current maven central publish job does not generate/upload gpg signature files, so when promoting staging release in sonatype nexus, it fails with error message complaining signagure files missing.

It seems that maven plugin is pretty old and recent search suggests using maven-publish instead. This issue is to give it a try, also fix the gpg signing configuration.

add basic ci

  • add basic cloudbuild for gcp cloud build
  • protect master branch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.