Project.md 2024-11-10
1 / 3
[CS209A-24Fall] Assignment2 (100 points)
Background
In the process of software development, many questions will arise. Developers may resort to Q&A website to
post questions and seek answers. Stack Overflow is such a Q&A website for programmers, and it belongs to the Stack Exchange Network. Stack
Overflow serves as a platform for users to ask and answer questions, and, through membership and active
participation, to vote questions and answers up or down and edit questions and answers in a fashion similar
to a wiki. Users of Stack Overflow can earn reputation points and "badges"; for example, a person is awarded
10 reputation points for receiving an "up" vote on a question or an answer to a question, and can receive
badges for their valued contributions. Users unlock new privileges with an increase in reputation, like the
ability to vote, comment, and even edit other people's posts. In this final project, we'll use Spring Boot to develop a web application that stores, analyzes, and visualizes
Stack Overflow Q&A data w.r.t. java programming, with the purpose of understanding the common
questions, answers, and resolution activities associated with Java programming. Data Collection (10 points)
On Stack Overflow, questions related to Java programming are typically tagged java. You could use this java
tag to identify java-related questions. A question and all of its answers and comments are together referred to
as a thread. For java-related threads on Stack Overflow, we are interested in answering a list of questions as described
below. You should first collect proper data from Stack Overflow to answer these questions. Please check the
official Stack Overflow REST API documentation to learn the REST APIs for collecting different types of data. . You may need to create a Stack Overflow account in order to use its full REST API service. · API requests are subject to rate limits. Please carefully design and execute your requests, otherwise
you may reach your daily quota quickly. . Connections to Stack Overflow REST service maybe unstable sometimes. So, please start the data
collection ASAP!
There are over 1 million threads tagged with java on Stack Overflow. You DON'T have to collect them all. Yet, you should collect data for at least 1000 threads in order to get meaningful insights from the data analysis. Important:
Data collection is offline, meaning that you need to collect and persist the data first. It is recommended that
you use a database (e.g., PostgreSQL, MySQL, etc.) to store the data. However, it is also fine if you store the
data in plain files. In other words, when users interact with your application, the server should get the data
from your local database (or local files), instead of sending REST requests to Stack Overflow on the fly. Hence, the data analysis for the below questions should be performed on the dataset you collected. That is, we first collect a subset of Stack Overflow data (e.g., 1000 threads tagged java) and then answer the
following questions using this subset.
Project.md 2024-11-10
2 / 3
Part I: Data Analysis (70 points)
For each question from this part, you should: . Figure out which data is needed to answer the question
. Design and implement the data analysis on the backend
. Visualize the results on the frontend using proper charts. In other words, when interacting with your web application from the browser, users could select interested
analysis, which sends requests to the server; the server performs corresponding data analysis and returns the
results back to the frontend, which visualizes the results on the webpages. Your work will be evaluated by: . whether the data analysis is meaningful and relevant, i.e., it can indeed answer the question with proper
they want
instantly by looking at the visualization. Take a look at the data visualization catalogue for inspirations. 1. Java Topics (10 points)
We have covered various topics in this course, e.g., generics, collections, I/O, lambda, multithreading, socket, etc. It's interesting to know, what are the top N (N>1, you may choose a proper N depending on your data
and your UI design, same below) topics that are most frequently asked on Stack Overflow?
2. User Engagement (15 points)
What are the top N topics that have the most engagement from users with higher reputation scores? User
engagement means any user activity (e.g., edit, answer, comment, upvote, downvote, etc.) on the thread. 3. Common Mistakes (15 points)
Developers make mistakes, which result in bugs in the code. Bugs manifest themselves as errors or
exceptions, which can be roughly classified as: . Fatal errors: errors like OutOfMemoryError that cannot be recovered at runtime. . Exceptions: checked exceptions and runtime exceptions that can be handled programmatically by
developers. What are the top N errors and exceptions that are frequently discussed by Java developers?
Note that, tags are high-level information and may not include low-level errors or exceptions. Hence, for this
question, you cannot only use tag information. You need to further analyze thread content (e.g., question text
and answer text) to identify error or exception related information, probably using advanced techniques such
as regular expression matching. 4. Answer Quality (30 points)
We consider an answer to be "high-quality" if it is accepted or has many upvotes. It's useful to know, what
factors contribute to high-quality answers?
3 / 3
Project.md 2024-11-10
Please investigate the following factors: . The elapsed time between question creation and answer creation (e.g., whether the first posted answer
tends to be accepted?). . The reputation of the user that creates the answer (e.g., whether answers created by high-reputation
users tend to be accepted or have more upvotes?). In addition to these 2 factors, you should also propose another 1 factor that may contribute to the quality of
answers. For each of the 3 factors, use proper data analysis and visualizations to demonstrate whether the factor
contributes to high-quality answers or not. Part II: RESTful Service (20 points)
Your application should also provide a REST service that answers the following two questions, so that users
may use RESTful APIs to GET the answers they want. The required REST services include: . Topic frequency: users could query for the frequency of a specific topic. Users could also query for the
top N topics sorted by frequency. . Bug frequency: users could query for the frequency of a specific error or exception. Users could also
query for the top N errors or exceptions sorted by frequency. Here, you could reuse the data analysis from Part I. Responses of the REST requests should be in json format. Requirements
Data Analysis
You should implement the data analysis by yourself, using Java features such as Collections, Lambda, and
Stream. You CANNOT feed the data to AI, ask AI to do the analysis, and use AI responses as your data analysis results. You will get 0 point for the question if you do so. Data analysis results should be dynamically generated by the server everytime clients send a request. You
SHOULD NOT precompute the results and stored it as a static content then simply display the precomputed
static content on the frontend. 20 points will be deducted if you do so. Web Framework
You should only use Spring Boot as the web framework. Frontend
Frontend functionalities, such as data visualization and interactive controls, could be implemented in any
programming language (e.g., JavaScript, HTML, CSS, etc.) with any 3rd-party libraries or framework.
相关推荐
【信息科学与工程学】计算机科学与自动化——第一百八十九篇 计算机硬件 系列一 微处理器01
在金融行业CDN流推送场景中,结合WebRTC over SD-RTN与SD-WAN Branch方案,需兼顾要求。
CS209A Java
1 / 3Background2 / 3they wantUser3 / 3。
【信息科学与工程学】计算机科学与自动化——第一百五十五篇 缓存系统设计02
编号176-190共15个条目,覆盖了缓存互连网络(环形/交叉开关)、硅光互连、散热设计、3D封装TSV、信号完整性、冗余设计、老化补偿、电磁兼容、时钟分布、JTAG测试、安全硬件、调试探针、容错路由、体偏置、共振时钟。:编号161-175共15个条目,聚焦于缓存硬件设计与配置,涵盖了MESI协议、多级TLB、分支预测BTB/BHT、自适应预取引擎、ECC纠错汉明码、路分区硬件、非暂时性存储旁路、缓存冲刷指令、缓存锁定、压缩硬件、嗅探过滤器、虚拟化EPT、QoS限速、内置自测BIST、电源管理DVFS。
mysql查找2个字段数据相等_mysql如何去除两个字段数据相同的记录
mysql如何去除两个字段数据相同的记录关注:209答案:5mip版解决时间 2021-01-16 00:22已解决2021-01-15 13:51mysql如何去除两个字段数据相同的记录最佳答案2021-01-15 14:17其实你会用英文搜索的话。可以很方便在stack overflow上 找到相关的信息 真的学CS的就不要用百度了 用google你会发现一个不一样的世界的随便贴一个s...
【信息科学与工程学】【通信工程】第八十六篇 通信网络设备及通信网络组网的所有学科知识01
编号001类型网络虚拟化与覆盖技术网络领域数据中心网络子领域大二层网络 / 网络虚拟化核心数学方程式/算法模型核心算法:VXLAN封装与解封装。关键在于24位VNI(虚拟网络标识符)到物理网络的三层IP地址的映射。封装:收到原始以太帧后,为其添加 VXLAN 头部(含 VNI)、外层 UDP 头(目的端口 4789)、外层 IP 头(源 IP 为本地 VTEP IP,目的 IP 为对端 VTEP IP)以及外层 MAC 头。解封装:对端 收到报文后,剥离外层头部,根据内层帧的目的 MAC 和 VNI 进行二
Rosenbrock 优化实验:GD、PSO 与 GA 的收敛对比matlab代码.rar
Rosenbrock 优化实验:GD、PSO 与 GA 的收敛对比matlab代码.rar
汇编语言学习笔记
本文系统整理了汇编语言的核心知识与调试实践,分为两大板块:第一部分为“汇编语言学习笔记”,包含思维导图、寄存器分类、指令集概览、Debug常用命令及调试流程;第二部分为“小甲鱼课程笔记”,详细记录了从基础知识到高级应用的17章内容,涵盖CPU工作原理、内存访问、程序结构、中断处理、端口操作及BIOS编程等核心主题,并附有大量代码示例与实验指导,是学习8086汇编语言的实用参考资料。
用于居民用水定价和工业废水成本优化的MATLAB与LINGO模型.rar
用于居民用水定价和工业废水成本优化的MATLAB与LINGO模型.rar
pwn 中堆的简单理解
Glibc 上的堆堆是每个程序被分配到的一块内存区域,和栈主要区别是 堆内存是动态分配,程序可以从 heap 段请求一块内存或释放一块内存同时,堆是全局的,在程序的任意位置都可以访问到堆,并不一定要调用 malloc 函数访问。这是因为C语言使用指针指向动态内存,但同时指针也带来了一定的开销。指针也很危险,而且指针真的很难啊……堆使用两个函数来原理内存,分别是 brk(),mmap()注意,申请内存时, Linux 内核只会先分配一段虚拟内存,真正使用时才会映射到物理内存上去。
电动汽车充电调度、到达行为以及考虑可再生能源的电价的MATLAB优化。.rar
电动汽车充电调度、到达行为以及考虑可再生能源的电价的MATLAB优化。.rar
CS209A集成电路金属定位器
本文介绍了CS209A集成电路金属定位器
快递驿站App的ArkUI架构与交互设计深度解析,基于HarmonyOS API 24以及promptAction提供的轻量交互反馈,构成了一套完整且高效的工具类应用开发框架
在移动互联网与智能穿戴设备高度普及的今天,"习惯养成"已经从一个模糊的自我管理理念,演变为一个可量化、可追踪、可视化的数字化产品赛道。越来越多的人希望借助手中的智能终端,把"早起、冥想、阅读、运动"这些抽象的自律行为,转化为一条条清晰的数据曲线和一张张可触摸的打卡卡片。而鸿蒙生态(HarmonyOS)凭借其跨设备协同、分布式软总线以及声明式 UI 开发框架 ArkUI,为这类注重"轻量化交互 + 即时反馈"的生活方式类应用提供了极为理想的生长土壤。本应用正是一款面向"晨间场景"深度打磨的习惯追踪工具。它聚焦
T17_低空经济试验区十五五通用航空机场与无人机物流网设计方案_技术方案版.pptx
T17_低空经济试验区十五五通用航空机场与无人机物流网设计方案_技术方案版.pptx
工作中使用到的单词(软件开发)
1.エイリアス alias 别名 powershell使用 get-help 命令时,会得到与此命令 相关(别名)的命令 2.プロキシ proxy 代 理 3.プロモート promote 促进,提升 开发的系统新功能上线发布,有时会使用到这个词,比如 STプロモート 还有使用リリース这个词的。比如STリリース。个人认为两者含义相同。 4.見逃し み................................................................
AI政务大模型数字人平台规划方案(技术方案版).pptx
AI政务大模型数字人平台规划方案(技术方案版).pptx
化学和超级电容混合储能双层容量配置平抑风电波动,采用RLMD分解风电功率,粒子群算法求解(Matlab代码实现)
内容概要:本文提出一种针对风电功率波动的混合储能系统双层容量配置方法,采用化学储能(如锂离子电池)与超级电容器构成混合储能系统,以充分发挥前者高能量密度与后者高功率密度及快速响应的优势。为实现精细化功率分配,引入可重复局部均值分解(RLMD)对风电功率序列进行多尺度分解,有效分离出不同时间尺度的波动分量,据此制定协调控制策略:高频波动由超级电容承担,低频波动由化学储能承担,从而减轻单一储能单元的压力,延长整体系统寿命。在此基础上,构建了一个双层优化模型:上层模型以系统全寿命周期成本最低和运行稳定性最高为优化目标,确定储能单元的最优额定容量;下层模型则以实时功率分配损耗最小为目标,实现储能间的动态功率分配。整个优化问题采用粒子群优化算法(PSO)进行高效求解,并通过Matlab代码实现了完整的仿真验证。仿真结果表明,该方法不仅能显著平抑风电并网带来的功率波动,改善电能质量,还能有效降低系统综合成本,并通过合理分配充放电任务,减少化学储能的循环次数,延长其使用寿命。; 适合人群:具备电力系统、新能源控制或优化算法基础,从事风电并网、储能系统设计与优化等相关领域的科研人员及工程技术人员。; 使用场景及目标:①解决风电功率波动对电网稳定性的影响;②优化混合储能系统中电池与超级电容的容量配置,实现成本与性能的平衡;③掌握RLMD信号分解与粒子群算法在能源系统优化中的应用; 阅读建议:此资源结合了信号处理、储能控制与智能优化算法,建议读者在学习过程中重点关注RLMD分解原理、双层优化模型的构建逻辑及粒子群算法的实现细节,并结合提供的Matlab代码进行仿真复现与参数调试,以深入理解各模块的协同机制。
【FDE知识库】(1):AI 编程时代开发语言选型分析,云使用go,企业用java,算法python,底层c
AI 编程时代,开发语言选型需综合考量AI适配度、编译速度、跨平台与学习成本。Python以海量语料和即时执行成首选,适用于AI/ML与原型开发;TypeScript凭借类型系统与秒级构建,成为前端及应用层主流;Go以极速编译与统一风格,契合AI代理高效迭代需求。Rust/C++虽性能强,但编译慢、学习成本高,不适于快速试错。综合推荐:优先选Python、TypeScript、Go,兼顾效率与生态,实现最优AI协作体验。
欧姆龙485通讯示例程序_【精品实验】PLC学习神器与温湿度变送器的通讯
BFH点击蓝字关注我们↑↑↑↑ PLC学习神器提供RS485接口,可支持无协议RS指令、无协议RS2指令、Modbus通讯功能,可通过设置通讯格式改变通讯协议,RS485对应的通讯格式地址是D8400; 本案例以RS485接口与温湿度变送器通讯,通讯格式如下一温湿度变送器的说明书介绍1.1主要技术参数1.2 通讯协议 1、所有通讯回路都应遵照主/从方式。依照主从方式,数据可以在一个主...
1059



被折叠的 条评论
为什么被折叠?



