This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a Repos=( | |
"https://github.com/canonical/go-dqlite.git" "https://github.com/canonical/ubuntu-image" | |
) | |
# That is not a fault-proof TODO counting, just something that give a good enough counting. | |
# There might be multiple edge cases not considered here. Leave a comment for improvements. | |
for val in ${Repos[@]}; do | |
git clone $val counting > /dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import cv2 | |
addr = 'http://localhost:5000' | |
test_url = addr + '/api/test' | |
# prepare headers for http request | |
content_type = 'image/jpeg' | |
headers = {'content-type': content_type} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.dmg.pmml.FieldName; | |
import org.jpmml.evaluator.FieldValue; | |
import org.jpmml.evaluator.ModelEvaluator; | |
import org.jpmml.evaluator.ProbabilityDistribution; | |
import java.util.Map; | |
import java.util.concurrent.Callable; | |
class ParallelPredictor implements Callable { |