<commit_before>#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <math.h>
#include <time.h>
#include <sys/mman.h>

int main()
{
  FILE *fp;
  int fd, offset, i, j;
  time_t t;
  struct tm *gmt;
  void *cfg, *sts;
  uint64_t *fifo[8];
  uint8_t *rst;
  uint16_t *cntr;
  int32_t type = 2;
  uint64_t buffer[8][45000];
  char date[12];
  char name[32];
  char zeros[15] = "000000_0000.c2";
  double dialfreq;
  double corr = 9;
  double freq[8] = {
//     0.137500,
//     0.475100,
//     1.838100,
     3.594100,
     5.288700,
     7.040100,
    10.140200,
    14.097100,
    18.106100,
    21.096100,
    24.926100,
//    28.126100,
//    50.294500,
  };

  t = time(NULL);
  if((gmt = gmtime(&t)) == NULL)
  {
    perror("gmtime");
    return EXIT_FAILURE;
  }

  if((fd = open("/dev/mem", O_RDWR)) < 0)
  {
    perror("open");
    return EXIT_FAILURE;
  }

  sts = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x40000000);
  cfg = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x40001000);

  for(i = 0; i < 8; ++i)
  {<commit_msg>set frequency correction to 20 ppm, enable 10m and 6m bands in write-c2-files.c<commit_after>#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <math.h>
#include <time.h>
#include <sys/mman.h>

int main()
{
  FILE *fp;
  int fd, offset, i, j;
  time_t t;
  struct tm *gmt;
  void *cfg, *sts;
  uint64_t *fifo[8];
  uint8_t *rst;
  uint16_t *cntr;
  int32_t type = 2;
  uint64_t buffer[8][45000];
  char date[12];
  char name[32];
  char zeros[15] = "000000_0000.c2";
  double dialfreq;
  double corr = 20;
  double freq[8] = {
//     0.137500,
//     0.475100,
//     1.838100,
     3.594100,
     5.288700,
     7.040100,
    10.140200,
    14.097100,
    18.106100,
//    21.096100,
//    24.926100,
    28.126100,
    50.294500,
  };

  t = time(NULL);
  if((gmt = gmtime(&t)) == NULL)
  {
    perror("gmtime");
    return EXIT_FAILURE;
  }

  if((fd = open("/dev/mem", O_RDWR)) < 0)
  {
    perror("open");
    return EXIT_FAILURE;
  }

  sts = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x40000000);
  cfg = mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x40001000);

  for(i = 0; i < 8; ++i)
  {
{'fraction_non_alphanumeric': 0.17330595482546202, 'fraction_numerical': 0.13018480492813142, 'mean_word_length': 2.941747572815534, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1876584', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1108, 'n_words': 230}