The info below is valid for at least Java 25 and Chronicle Queue v2026.2.
See details in my blog or Telegram channel.
--enable-native-access=ALL-UNNAMED
The info below is valid for at least Java 25 and Chronicle Queue v2026.2.
See details in my blog or Telegram channel.
--enable-native-access=ALL-UNNAMED
По имеющейся кодовой базе сформируй словарь предметной области и сохрани его в terms.md.
Словарь должен иметь три колонки:
Термин - это слово или словосочетание на русском или английском языке, аббревиатура на русском или английском языке, которая имеет однозначный смысл в терминологии предметной области.
| import java.time.Instant; | |
| import static java.lang.System.currentTimeMillis; | |
| public class SnowflakeID { | |
| private static final byte DATACENTER_ID_BITS = 5; | |
| private static final byte MACHINE_ID_BITS = 5; | |
| private static final byte SEQUENCE_BITS = 12; |
| package ru.mos.emias.simi.cdc.repositories; | |
| import java.util.UUID; | |
| import com.datastax.oss.driver.api.core.CqlSession; | |
| import com.datastax.oss.driver.api.core.cql.PreparedStatement; | |
| import static com.datastax.oss.driver.api.querybuilder.QueryBuilder.*; | |
| import static com.datastax.oss.driver.api.querybuilder.condition.Condition.column; |
| using System; | |
| using System.Diagnostics; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| public static class ProcessAsyncHelper | |
| { | |
| public static async Task<ProcessResult> ExecuteShellCommand(string command, string arguments, int timeout) | |
| { | |
| var result = new ProcessResult(); |
| public static class ProcessHelper | |
| { | |
| public static ProcessResult ExecuteShellCommand(string command, string arguments, int timeout) | |
| { | |
| var result = new ProcessResult(); | |
| using (var process = new Process()) | |
| { | |
| process.StartInfo.FileName = command; | |
| process.StartInfo.Arguments = arguments; |
| public static void SetContentDispositionInline(this HttpResponse response, string fileName, string userAgent) | |
| { | |
| SetContentDisposition(response, "inline", fileName, userAgent); | |
| } | |
| public static void SetContentDispositionAttachment(this HttpResponse response, string fileName, string userAgent) | |
| { | |
| SetContentDisposition(response, "attachment", fileName, userAgent); | |
| } |