[ Launch: reddit base ] dd2d3955bb66fccd1baf by JamWils[ Launch: reddit base ] 6633418 by enjalot[ Launch: simple histogram ] 6631652 by enjalot
[ Launch: reddit base ] 6152f2d350793edff244 by JamWils[ Launch: reddit base ] dd2d3955bb66fccd1baf by JamWils[ Launch: reddit base ] 6633418 by enjalot[ Launch: simple histogram ] 6631652 by enjalot
[ Launch: reddit base ] 009d23ba39528063a241 by JamWils[ Launch: reddit base ] 6152f2d350793edff244 by JamWils[ Launch: reddit base ] dd2d3955bb66fccd1baf by JamWils[ Launch: reddit base ] 6633418 by enjalot[ Launch: simple histogram ] 6631652 by enjalot
[ Launch: reddit base ] f7005ac1e14af5fb659b by JamWils[ Launch: reddit base ] 009d23ba39528063a241 by JamWils[ Launch: reddit base ] 6152f2d350793edff244 by JamWils[ Launch: reddit base ] dd2d3955bb66fccd1baf by JamWils[ Launch: reddit base ] 6633418 by enjalot[ Launch: simple histogram ] 6631652 by enjalot
[ Launch: reddit base ] 5c61a7b98eb5c4841823 by JamWils[ Launch: reddit base ] f7005ac1e14af5fb659b by JamWils[ Launch: reddit base ] 009d23ba39528063a241 by JamWils[ Launch: reddit base ] 6152f2d350793edff244 by JamWils[ Launch: reddit base ] dd2d3955bb66fccd1baf by JamWils[ Launch: reddit base ] 6633418 by enjalot[ Launch: simple histogram ] 6631652 by enjalot
| def h_levelsum(self) -> int: | |
| '''The sum of the level costs of the individual goals (admissible if goals independent) | |
| :return: int | |
| ''' | |
| level_sum = 0 | |
| # TODO implement | |
| # for each goal in the problem, determine the level cost, then add them together | |
| for goal in self.problem.goal: | |
| levels = [level for level in range(len(self.s_levels)) for state in self.s_levels[level] if goal == state.literal] |
| const item = {} | |
| item.uid = chance.guid(); | |
| item.email = chance.email(); | |
| item.profileImageUrl = chance.avatar(); | |
| item.username = chance.name(); |
| function randomIntInc(low, high) { | |
| return Math.floor(Math.random() * (high - low + 1) + low); | |
| } | |
| function createUsers(low, high) { | |
| let items = {}; | |
| const generatedItems = randomIntInc(low, high); | |
| for (let i = 0; i < generatedItems; i++) { | |
| const item = {} |
| exports.schema = function () { | |
| let parent = {} | |
| parent.users = createUsers(3, 7); | |
| return parent; | |
| } |
| const json = mockDataSchema.schema(); | |
| const jsonFormatted = JSON.stringify(json); | |
| fs.writeFile("./mockData/db.json", jsonFormatted, (err) => { | |
| if (err) { | |
| return console.log(chalk.red(err)); | |
| } else { | |
| console.log(chalk.green("Mock data generated.")); | |
| } | |
| }); |