- 博客(93)
- 资源 (13)
- 收藏
- 关注

原创 代码覆盖工具Jacoco使用示例及源码分析
Jacoco项目主页:http://www.eclemma.org/jacoco/ 本文地址:JacocoAnalyseContent调用的开源框架 AntASM测试源码对比 插入前源码插入后源码插入前字节码插入后字节码两种插桩模式 插桩方式OfflineOn-the-fly比较关于switch插桩分析 TableSwitchLookupswitchReport生
2017-11-01 17:07:01
27657
7

原创 Java代码覆盖工具
Code Coverage1. Introduction 代码覆盖(code coverage):为了全面地覆盖测试,必须测试程序的状态以及程序流程,设法进入和退出每一个模块,执行每一行代码,进入软件每一条逻辑和决策分支。——[Software Testing] Code coverage is An information on what source code is exercis
2017-10-15 13:07:47
3103
原创 Java-删除LIst中指定元素
删除List中指定元素两种方式第一种CandidateTS.remove((Integer) MaxIndex);第二种 Iterator iter = CandidateTS.iterator(); while (iter.hasNext()) { if (iter.next().equals(Max...
2020-01-13 14:59:30
5826
1
原创 ubuntu配置jdk
java_home和java_version不一致:sudo update-alternatives --install /usr/bin/java java /home/java/jdk1.8.0_171/bin/java 300 sudo update-alternatives --install /usr/bin/javac javac /home/java/jdk1.8.0_171/...
2019-12-28 17:22:42
257
原创 创建git
创建项目,并与远程连接提交,需要存在远程项目echo "# 4119-44441-Sorting" >> README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/MyName/test5.gitgit push -u orig...
2019-12-25 13:43:43
150
原创 Ubuntu JDK设置
mkdir /opt/Javasudo tar -zxvf jdk-8u171-linux-x64.tar.gz -C /opt/Javasudo gedit ~/.bashrcexport JAVA_HOME=/opt/Java/jdk1.8.0_171export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:JAVA_HOME/lib:JR...
2019-08-21 17:28:54
147
原创 Python-Json数据写入与可视化
Josn写入:priorizationTests = {}priorizationTests["Method1"]="1,2,3,4"with open("test.json",'w') as outfile: str=json.dumps(priorizationTests,indent=4) outfile.write(str) outfile.close()...
2018-12-19 10:15:01
4148
5
原创 Shell-转义
对于特殊字符不要转义: 写入; while IFS= read -r cmdLine 输出: while IFS= read -r cmdLine
2018-07-29 19:16:25
1639
原创 Ubuntu-匹配更新
ubuntu 16.04 pip更新 1.sudo apt-get update 2.sudo apt-get upgrade 3.wget https://bootstrap.pypa.io/get-pip.py 4.sudo python3 get-pip.py
2018-07-21 19:51:32
276
原创 Python数据可视化9-柱状图
随机生成数据,以柱状图形式显示import matplotlib.pyplot as pltimport numpy as npn = 12X = np.arange(n)# np.random.uniform(0.5, 1.0, n) 在[0.5 1.0)随机生成n个浮点数Y1 = (1 - X / float(n)) * np.random.uniform(0.5, 1.0,...
2018-06-13 15:34:06
1775
原创 Python数据可视化8-散点图
随机生成一些散点,并绘图import matplotlib.pyplot as pltimport numpy as npn = 1024 # data size# 正太分布X = np.random.normal(0, 1, n)Y = np.random.normal(0, 1, n)T = np.arctan2(Y, X) # 根据xy值设置颜色plt....
2018-06-13 15:20:37
1152
原创 Python数据可视化7-透明度设置
设置坐标刻度透明度import matplotlib.pyplot as pltimport numpy as np# 设置数据x = np.linspace(-3, 3, 50)y = 0.1*x# 绘图plt.figure()plt.plot(x, y, linewidth=10, zorder=1) # set zorder for ordering the ...
2018-06-13 15:04:04
30943
原创 Python数据可视化6-图表注释说明
在图表自定义相关的说明import matplotlib.pyplot as pltimport numpy as np# 设置数据x = np.linspace(-3, 3, 50)y = 2*x + 1# 定义figure,绘图plt.figure(num=1, figsize=(8, 5),)plt.plot(x, y,) # plt.scatter(x, y,) 散...
2018-06-13 14:46:47
1803
原创 Python数据可视化5-legend图例说明
对于每一个函数有自己的说明import matplotlib.pyplot as pltimport numpy as np# 设置数据x = np.linspace(-3, 3, 50)y1 = 2*x + 1y2 = x**2plt.figure()# set x limitsplt.xlim((-1, 2))plt.ylim((-2, 3))# set new...
2018-06-13 14:01:41
1856
原创 Python数据可视化4-坐标轴调整
将x轴或者y轴横移。import matplotlib.pyplot as pltimport numpy as np# 定义数据x = np.linspace(-3, 3, 50)y1 = 2*x + 1y2 = x**2# 定义figureplt.figure()# 绘图(x,y2)plt.plot(x, y2)# 绘图(x,y1)plt.plot(x, y1, ...
2018-06-13 13:52:01
8460
原创 Python数据可视化3-坐标轴设置
坐标轴设置import matplotlib.pyplot as pltimport numpy as np# 定义数据x = np.linspace(-3, 3, 50)y1 = 2*x + 1y2 = x**2# 定义figureplt.figure()# 绘图(x,y2)plt.plot(x, y2)# 绘图(x,y1)plt.plot(x, y1, color...
2018-06-13 13:08:16
13388
2
原创 Python数据可视化2-多figure显示
这里显示两个figure,即两个窗口,第一个figure显示一个函数,第二个figure显示两个函数 代码:import matplotlib.pyplot as pltimport numpy as np# 定义数据x = np.linspace(-3, 3, 50)y1 = 2*x + 1y2 = x**2# 第一个figureplt.figure()plt.plot...
2018-06-13 12:39:48
21215
4
原创 Python数据可视化1-简单画图
简单的画图 代码:import matplotlib.pyplot as pltimport numpy as np# 在[0,1]之间间隔相等取样x = np.linspace(0, 1, 5)y = 2*x + 1# 使用指定xy画图plt.plot(x, y)# 显示图像plt.show()...
2018-06-13 12:28:22
754
原创 Java-二维数组写入txt
将二维数组存入txt import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import java.io.FileWriter;import java.io.IOException;public class Hello { public static void main(...
2018-06-02 16:06:51
6124
1
转载 Shell变量处理
网上找到一篇文章,但是原作者不知道是谁了,记录下来 假设我们定义了一个变量为: 复制代码 代码如下:file=/dir1/dir2/dir3/my.file.txt可以用${ }分别替换得到不同的值: 复制代码 代码如下:${file#*/}:删掉第一个 / 及其左边的字符串:dir1/dir2/dir3/my.file.txt${file##*/}:删掉最后一个 / 及其左边的字符串:m
2018-04-22 14:50:36
419
原创 make[2]: Leaving directory `/home/imdb/gcc-4.8.2/gcc-build-4.8.2' make[1]: *** [stage1-bubble] 错误 2
装gcc4.8.1错误:make[2]: Leaving directory `/home/imdb/gcc-4.8.2/gcc-build-4.8.2'make[1]: *** [stage1-bubble] 错误 2make[1]: Leaving directory `/home/imdb/gcc-4.8.2/gcc-build-4.8.2'make: *** [all] 错误 2ubu
2018-03-09 14:16:35
16848
9
原创 软件测试
软件测试诞生阶段:软件调试独立的软件测试首次定义专门学科开发测试融合测试过程(阶段):测试需求分析与确定测试计划测试执行测试记录与跟踪回归测试测试总结与报告测试方法:是否需要执行被测软件 静态测试动态测试是否针对内部结构与实现算法 黑盒测试(功能测试、数据驱动测试、基于规格说明书测试)白盒测试(结构测试、玻璃盒测试、基于覆盖测试)灰盒测试(跟踪法测试)测试技
2018-01-28 19:27:48
522
原创 ant参考
Ant 读取TXT文件ant - Ant 任务多个文件循环博客,读取TXT对每行循环StackOverflow:How to read data line by line from a file using ant script?Ant调用Java程序函数CSDN:ant—调用java程序 Ant执行Java代码
2018-01-20 16:18:47
194
原创 Java-Runnable线程共享实例变量
/***测试Runnable线程可以共享实例变量*/public class TestRunnable implements Runnable{ private int i; public void run() { i++; System.out.println(Thread.currentThread().getName()+" i="+i
2017-12-17 12:56:06
2582
2
原创 434. Number of Segments in a String
434. Number of Segments in a StringCount the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.Please note that the string does not contain
2017-12-15 15:27:17
200
原创 算法-NDimension
NDimension 对N(N1….Nn)个一维数组,其中假设N1数组有X1个元素,N2数组有X2个元素…Nn数组有Xn个元素。我们想输出一个具有N个元素的数组,该数组中第一个元素来自N1数值,第二个元素来自N2数值….第n个元素来自Nn数组Example;input:double[] a={1,2,3};double[] d={10,11};output:[1.0, 10.0][1.
2017-12-14 16:31:12
537
原创 557. Reverse Words in a String III
557. Reverse Words in a String IIIGiven a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:Input: "L
2017-11-29 11:17:00
233
原创 58. Length of Last Word
58. Length of Last WordGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Not
2017-11-26 12:42:30
201
原创 13. Roman to Integer
13. Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.class Solution { public int romanToInt(String s) { char [
2017-11-22 17:06:22
174
原创 67. Add Binary
67. Add BinaryGiven two binary strings, return their sum (also a binary string).For example, a = "11" b = "1" Return "100".class Solution { public String addBinary(String a, String b) {
2017-11-18 17:24:38
192
原创 Jacoco覆盖率信息收集4-bundle之后
在得到bundle之后,会将bundle传入HTMLFormatter,依次产生bundlePage,SessionPage,PackageSourcePage,SourceFilePage,ClassPage,它们都是在ReportPage中render,具体覆盖信息在BarColumn中,得到各个层级传递过来的参数取得Counter,例:final ICounter counter = tot
2017-11-18 16:07:26
753
原创 Jacoco覆盖率信息收集-得到各个Counter信息
以bundle为界,之后则是根据bundle中的信息来各级render,生个各个html界面。 这里直接以TXT输出各个覆盖率信息。 //尝试直接输出覆盖率 ICounter bCounter=bundle.getCounter(CounterEntity.INSTRUCTION); System.out.println("bundle total:
2017-11-18 15:59:18
1873
现代信息检索 第二版
2018-09-04
官方jdk1.7 64位
2017-12-04
J2ME手机高级编程书上源码
2017-04-28
J2ME手机高级编程源码
2017-04-28
Android学习进阶路线图
2017-04-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人