<commit_before>/**
 * Populate DB with sample data on server start
 * to disable, edit config/environment/index.js, and set `seedDB: false`
 */
import { client } from '../cassandra-db';
import DbModel from './db.model';
import UserModel from './api/user/user.model';
import { devKeyspace, testKeyspace } from './prepared.statements';
import { usersTable, truncateUsers, seedUsers } from './api/user/prepared.statements';
import { insertUser } from './api/user/prepared.statements';

export default function cassandraSeed(env?: string): void {

  // Insert seeds below
  switch (env) {
    case "development":
      DbModel.seed(devKeyspace, usersTable, truncateUsers, seedUsers)
        .then(result => console.log('Dev keyspace seeded successfully!'))
        .catch(err => console.error(err));
      break;<commit_msg>server(cassandra) remove unecessary import statement<commit_after>/**
 * Populate DB with sample data on server start
 * to disable, edit config/environment/index.js, and set `seedDB: false`
 */
import { client } from '../cassandra-db';
import DbModel from './db.model';
import { devKeyspace, testKeyspace } from './prepared.statements';
import { usersTable, truncateUsers, seedUsers } from './api/user/prepared.statements';
import { insertUser } from './api/user/prepared.statements';

export default function cassandraSeed(env?: string): void {

  // Insert seeds below
  switch (env) {
    case "development":
      DbModel.seed(devKeyspace, usersTable, truncateUsers, seedUsers)
        .then(result => console.log('Dev keyspace seeded successfully!'))
        .catch(err => console.error(err));
      break;
{'fraction_non_alphanumeric': 0.13480392156862744, 'fraction_numerical': 0.0, 'mean_word_length': 4.103125, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '7362360', 'n_tokens_mistral': 478, 'n_tokens_neox': 452, 'n_words': 137}