Skip to content

Instantly share code, notes, and snippets.

@theo-m
theo-m / error.log
Last active April 28, 2021 10:14
bug-description
[Nest] 85816 - 04/28/2021, 11:57:39 AM [InstanceLoader] NestjsQueryGraphQLModule dependencies initialized +0ms
[Nest] 85816 - 04/28/2021, 11:57:39 AM [InstanceLoader] NestjsQueryGraphQLModule dependencies initialized +0ms
[Nest] 85816 - 04/28/2021, 11:57:39 AM [RoutesResolver] AppController {}: +6ms
[Nest] 85816 - 04/28/2021, 11:57:39 AM [RouterExplorer] Mapped {, GET} route +2ms
(node:85816) UnhandledPromiseRejectionWarning: Error: Cannot determine a GraphQL output type for the "findOwner". Make sure your class is decorated with an appropriate decorator.
at OutputTypeFactory.create (/Users/theo/Code/monorepo/back/node_modules/@nestjs/graphql/dist/schema-builder/factories/output-type.factory.js:19:23)
at /Users/theo/Code/monorepo/back/node_modules/@nestjs/graphql/dist/schema-builder/factories/object-type-definition.factory.js:77:53
at Array.forEach (<anonymous>)
at /Users/theo/Code/monorepo/back/node_modules/@nestjs/graphql/dist/schema-builder/factories/object-type-definition.f
@theo-m
theo-m / errors.txt
Last active March 24, 2021 08:57
huggingface/datasets validation errors
$ ./scripts/datasets_metadata_validator.py --check_all
WARNING:root:❌ Failed to validate 'datasets/acronym_identification/README.md':
1 validation error for DatasetMetadata
task_ids
'structure-prediction-other-acronym-identification' is not a registered tag for 'tasks_ids', reference at https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources/tasks.json (type=value_error)
WARNING:root:❌ Failed to validate 'datasets/ade_corpus_v2/README.md':
3 validation errors for DatasetMetadata
size_categories
none is not an allowed value (type=type_error.none.not_allowed)
task_categories
import re
import argparse
import collections
class TermColors:
header = '\033[95m'
okblue = '\033[94m'
okgreen = '\033[92m'
@theo-m
theo-m / unwrapwiki.py
Created October 4, 2017 16:41
unwrap wiki
#-- this script is not my own, I modified it from a Gensim tutorial --#
import logging
import os.path
import sys
from gensim.corpora import WikiCorpus
if __name__ == '__main__':
program = os.path.basename(sys.argv[0])
@theo-m
theo-m / conkyrc
Created February 23, 2017 17:16
Dots
conky.config = {
alignment = 'bottom_middle',
background = true,
border_outer_margin = 25,
border_width = 1,
cpu_avg_samples = 2,
default_color = white,
default_outline_color = '#555',
draw_borders = false,
draw_graph_borders = true,