GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — RecRankJavaEmersion/src/BigDataTest.java at master · coderZMR/RecRankJavaEmersion

Expand file tree

/

BigDataTest.java

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
20 lines (19 loc) · 669 Bytes
/

BigDataTest.java

Copy path

File metadata and controls

executable file
·
20 lines (19 loc) · 669 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.io.*;
public class BigDataTest {
public static void main(String[] args) throws IOException {
File sourceFile = new File("train.dat");
FileWriter fileWriter = new FileWriter(sourceFile, true);
PrintWriter pw = new PrintWriter(fileWriter);
for (int i = 2; i <= 7000000; ++i) {
if (i == 2) pw.print("\n");
pw.println("3 qid:" + i + " 1:1 2:1 3:0 4:0.2 5:0");
for (int j = 1; j <= 9; ++j) {
pw.println("1 qid:" + i + " 1:2 2:3 3:1 4:0.1 5:1");
}
}
pw.flush();
fileWriter.flush();
pw.close();
fileWriter.close();
}
}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.