Permalink
Browse files

added missing copyright headers

  • Loading branch information...
1 parent c835ab6 commit d8cafa13861d667906092bc66df5d7475ae10c48 @matthiaskramm committed Jan 9, 2011
Showing with 400 additions and 4 deletions.
  1. +1 −1 ast.c
  2. +21 −0 constant.c
  3. +21 −0 constant.h
  4. +21 −0 cvtools.h
  5. +21 −0 dataset.c
  6. +21 −0 dataset.h
  7. +21 −0 dict.c
  8. +21 −0 dict.h
  9. +21 −0 list.c
  10. +21 −0 list.h
  11. +21 −3 model.c
  12. +21 −0 model.h
  13. +21 −0 model_select.c
  14. +21 −0 model_select.h
  15. +21 −0 serialize.c
  16. +21 −0 serialize.h
  17. +21 −0 test_ast.c
  18. +21 −0 test_model.c
  19. +21 −0 wordmap.c
  20. +21 −0 wordmap.h
View
2 ast.c
@@ -2,7 +2,7 @@
AST representation of prediction programs.
- Copyright (c) 2010 Matthias Kramm <kramm@quiss.org>
+ Copyright (c) 2010,2011 Matthias Kramm <kramm@quiss.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
View
@@ -1,3 +1,24 @@
+/* constant.c
+ Implementation of primitive datatypes.
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
View
@@ -1,3 +1,24 @@
+/* constant.h
+ Primitive datatypes.
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __constant_h__
#define __constant_h__
View
@@ -1,3 +1,24 @@
+/* cvtools.h
+ Utility functions for interfacing with OpenCV
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __CVTOOLS_H__
#define __CVTOOLS_H__
View
@@ -1,3 +1,24 @@
+/* dataset.c
+ Conversion between representations of training data.
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
View
@@ -1,3 +1,24 @@
+/* dataset.h
+ Conversion between representations of training data (header file).
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __dataset_h__
#define __dataset_h__
View
21 dict.c
@@ -1,3 +1,24 @@
+/* dict.c
+ Hashtable implementation
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#include <string.h>
#include <stdlib.h>
#include <assert.h>
View
21 dict.h
@@ -1,3 +1,24 @@
+/* dict.h
+ Hash tables
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __dict_h__
#define __dict_h__
View
21 list.c
@@ -1,3 +1,24 @@
+/* list.c
+ Linked list implementation
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#include <stdlib.h>
#include <memory.h>
#include "list.h"
View
21 list.h
@@ -1,3 +1,24 @@
+/* list.h
+ Linked lists
+
+ Part of the data prediction package.
+
+ Copyright (c) 2009-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __list_h__
#define __list_h__
View
24 model.c
@@ -1,3 +1,24 @@
+/* model.c
+ Data prediction top level interface implementation.
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#include <stdlib.h>
#include <memory.h>
#include "model.h"
@@ -134,9 +155,6 @@ variable_t model_predict(model_t*m, row_t*row)
{
environment_t e;
e.row = row;
- if(m->wordmap) {
- wordmap_convert_row(m->wordmap, row);
- }
node_t*code = (node_t*)m->code;
constant_t c = node_eval(code, &e);
return constant_to_variable(&c);
View
21 model.h
@@ -1,3 +1,24 @@
+/* model.h
+ Data prediction top level API.
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __model_h__
#define __model_h__
#include <stdint.h>
View
@@ -1,3 +1,24 @@
+/* model_select.c
+ Automatic model selection.
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#include "model.h"
#include "model_select.h"
View
@@ -1,3 +1,24 @@
+/* model_select.h
+ Automatic model selection
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __model_select_h__
#define __model_select_h__
View
@@ -1,3 +1,24 @@
+/* serialize.c
+ Serialization of models and ast trees.
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#include <assert.h>
#include <stdlib.h>
#include <memory.h>
View
@@ -1,3 +1,24 @@
+/* serialize.h
+ Serialization of models and ASTs
+
+ Part of the data prediction package.
+
+ Copyright (c) 2010-2011 Matthias Kramm <kramm@quiss.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+
#ifndef __serialize_h__
#define __serialize_h__
Oops, something went wrong.

0 comments on commit d8cafa1

Please sign in to comment.