text:
# Makefile.in generated by automake 1.11.1 from Makefile.am.
# magic/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
# Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

pkgincludedir = $(includedir)/file
pkglibdir = $(libdir)/file
pkglibexecdir = $(libexecdir)/file
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-unknown-linux-gnu
host_triplet = x86_64-unknown-linux-gnu
subdir = magic
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
	$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
	$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
	$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
AM_V_GEN = $(am__v_GEN_$(V))
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
am__v_GEN_0 = @echo "  GEN   " $@;
AM_V_at = $(am__v_at_$(V))
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
am__v_at_0 = @
SOURCES =
DIST_SOURCES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
  for p in $$list; do echo "$$p $$p"; done | \
  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
    if (++n[$$2] == $(am__install_max)) \
      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
    END { for (dir in files) print dir, files[dir] }'
am__base_list = \
  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__installdirs = "$(DESTDIR)$(pkgdatadir)"
DATA = $(pkgdata_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
pkgdatadir = $(datadir)/misc
ACLOCAL = ${SHELL} /home/davetaz/ref/tools/file/file-5.08/missing --run aclocal-1.11
AMTAR = ${SHELL} /home/davetaz/ref/tools/file/file-5.08/missing --run tar
AM_DEFAULT_VERBOSITY = 0
AR = ar
AUTOCONF = ${SHELL} /home/davetaz/ref/tools/file/file-5.08/missing --run autoconf
AUTOHEADER = ${SHELL} /home/davetaz/ref/tools/file/file-5.08/missing --run autoheader
AUTOMAKE = ${SHELL} /home/davetaz/ref/tools/file/file-5.08/missing --run automake-1.11
AWK = mawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS =
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DSYMUTIL =
DUMPBIN =
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
FGREP = /bin/grep -F
GREP = /bin/grep
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS =
LIBOBJS =  ${LIBOBJDIR}strlcpy$U.o ${LIBOBJDIR}strlcat$U.o
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIPO =
LN_S = ln -s
LTLIBOBJS =  ${LIBOBJDIR}strlcpy$U.lo ${LIBOBJDIR}strlcat$U.lo
MAKEINFO = ${SHELL} /home/davetaz/ref/tools/file/file-5.08/missing --run makeinfo
MINGW = 0
MKDIR_P = /bin/mkdir -p
NM = /usr/bin/nm -B
NMEDIT =
OBJDUMP = objdump
OBJEXT = o
OTOOL =
OTOOL64 =
PACKAGE = file
PACKAGE_BUGREPORT = christos@astron.com
PACKAGE_NAME = file
PACKAGE_STRING = file 5.08
PACKAGE_TARNAME = file
PACKAGE_URL =
PACKAGE_VERSION = 5.08
PATH_SEPARATOR = :
RANLIB = ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/bash
STRIP = strip
VERSION = 5.08
WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith        -Wmissing-declarations -Wredundant-decls -Wnested-externs        -Wsign-compare -Wreturn-type -Wswitch -Wshadow        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter
abs_builddir = /home/davetaz/ref/tools/file/file-5.08/magic
abs_srcdir = /home/davetaz/ref/tools/file/file-5.08/magic
abs_top_builddir = /home/davetaz/ref/tools/file/file-5.08
abs_top_srcdir = /home/davetaz/ref/tools/file/file-5.08
ac_ct_CC = gcc
ac_ct_DUMPBIN =
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu
build_alias =
build_cpu = x86_64
build_os = linux-gnu
build_vendor = unknown
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
fsect = 4
host = x86_64-unknown-linux-gnu
host_alias =
host_cpu = x86_64
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = ${SHELL} /home/davetaz/ref/tools/file/file-5.08/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
lt_ECHO = echo
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr/local
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_build_prefix = ../
top_builddir = ..
top_srcdir = ..

#
# $File: Makefile.am,v 1.70 2011/08/03 16:55:40 christos Exp $
#
MAGIC_FRAGMENT_BASE = Magdir
MAGIC_DIR = $(top_srcdir)/magic
MAGIC_FRAGMENT_DIR = $(MAGIC_DIR)/$(MAGIC_FRAGMENT_BASE)
pkgdata_DATA = magic.mgc
EXTRA_DIST = \
$(MAGIC_DIR)/Header \
$(MAGIC_DIR)/Localstuff \
$(MAGIC_FRAGMENT_DIR)/acorn \
$(MAGIC_FRAGMENT_DIR)/adi \
$(MAGIC_FRAGMENT_DIR)/adventure \
$(MAGIC_FRAGMENT_DIR)/allegro \
$(MAGIC_FRAGMENT_DIR)/alliant \
$(MAGIC_FRAGMENT_DIR)/amanda \
$(MAGIC_FRAGMENT_DIR)/amigaos \
$(MAGIC_FRAGMENT_DIR)/animation \
$(MAGIC_FRAGMENT_DIR)/apl \
$(MAGIC_FRAGMENT_DIR)/apple \
$(MAGIC_FRAGMENT_DIR)/applix \
$(MAGIC_FRAGMENT_DIR)/archive \
$(MAGIC_FRAGMENT_DIR)/asterix \
$(MAGIC_FRAGMENT_DIR)/att3b \
$(MAGIC_FRAGMENT_DIR)/audio \
$(MAGIC_FRAGMENT_DIR)/basis \
$(MAGIC_FRAGMENT_DIR)/bflt \
$(MAGIC_FRAGMENT_DIR)/blcr \
$(MAGIC_FRAGMENT_DIR)/blender \
$(MAGIC_FRAGMENT_DIR)/blit \
$(MAGIC_FRAGMENT_DIR)/bout \
$(MAGIC_FRAGMENT_DIR)/bsdi \
$(MAGIC_FRAGMENT_DIR)/bsi \
$(MAGIC_FRAGMENT_DIR)/btsnoop \
$(MAGIC_FRAGMENT_DIR)/c-lang \
$(MAGIC_FRAGMENT_DIR)/c64 \
$(MAGIC_FRAGMENT_DIR)/cad \
$(MAGIC_FRAGMENT_DIR)/cafebabe \
$(MAGIC_FRAGMENT_DIR)/cddb \
$(MAGIC_FRAGMENT_DIR)/chord \
$(MAGIC_FRAGMENT_DIR)/cisco \
$(MAGIC_FRAGMENT_DIR)/citrus \
$(MAGIC_FRAGMENT_DIR)/clarion \
$(MAGIC_FRAGMENT_DIR)/claris \
$(MAGIC_FRAGMENT_DIR)/clipper \
$(MAGIC_FRAGMENT_DIR)/commands \
$(MAGIC_FRAGMENT_DIR)/communications \
$(MAGIC_FRAGMENT_DIR)/compress \
$(MAGIC_FRAGMENT_DIR)/console \
$(MAGIC_FRAGMENT_DIR)/convex \
$(MAGIC_FRAGMENT_DIR)/cracklib \
$(MAGIC_FRAGMENT_DIR)/ctags \
$(MAGIC_FRAGMENT_DIR)/dact \
$(MAGIC_FRAGMENT_DIR)/database \
$(MAGIC_FRAGMENT_DIR)/diamond \
$(MAGIC_FRAGMENT_DIR)/diff \
$(MAGIC_FRAGMENT_DIR)/digital \
$(MAGIC_FRAGMENT_DIR)/dolby \
$(MAGIC_FRAGMENT_DIR)/dump \
$(MAGIC_FRAGMENT_DIR)/dyadic \
$(MAGIC_FRAGMENT_DIR)/ebml \
$(MAGIC_FRAGMENT_DIR)/editors \
$(MAGIC_FRAGMENT_DIR)/efi \
$(MAGIC_FRAGMENT_DIR)/elf \
$(MAGIC_FRAGMENT_DIR)/encore \
$(MAGIC_FRAGMENT_DIR)/epoc \
$(MAGIC_FRAGMENT_DIR)/erlang \
$(MAGIC_FRAGMENT_DIR)/esri \
$(MAGIC_FRAGMENT_DIR)/fcs \
$(MAGIC_FRAGMENT_DIR)/filesystems \
$(MAGIC_FRAGMENT_DIR)/flash \
$(MAGIC_FRAGMENT_DIR)/fonts \
$(MAGIC_FRAGMENT_DIR)/fortran \
$(MAGIC_FRAGMENT_DIR)/frame \
$(MAGIC_FRAGMENT_DIR)/freebsd \
$(MAGIC_FRAGMENT_DIR)/fsav \
$(MAGIC_FRAGMENT_DIR)/games \
$(MAGIC_FRAGMENT_DIR)/gcc \
$(MAGIC_FRAGMENT_DIR)/geo \
$(MAGIC_FRAGMENT_DIR)/geos \
$(MAGIC_FRAGMENT_DIR)/gimp \
$(MAGIC_FRAGMENT_DIR)/gnome-keyring \
$(MAGIC_FRAGMENT_DIR)/gnu \
$(MAGIC_FRAGMENT_DIR)/gnumeric \
$(MAGIC_FRAGMENT_DIR)/grace \
$(MAGIC_FRAGMENT_DIR)/graphviz \
$(MAGIC_FRAGMENT_DIR)/gringotts \
$(MAGIC_FRAGMENT_DIR)/hitachi-sh \
$(MAGIC_FRAGMENT_DIR)/hp \
$(MAGIC_FRAGMENT_DIR)/human68k \
$(MAGIC_FRAGMENT_DIR)/ibm370 \
$(MAGIC_FRAGMENT_DIR)/ibm6000 \
$(MAGIC_FRAGMENT_DIR)/iff \
$(MAGIC_FRAGMENT_DIR)/images \
$(MAGIC_FRAGMENT_DIR)/inform \
$(MAGIC_FRAGMENT_DIR)/intel \
$(MAGIC_FRAGMENT_DIR)/interleaf \
$(MAGIC_FRAGMENT_DIR)/island \
$(MAGIC_FRAGMENT_DIR)/ispell \
$(MAGIC_FRAGMENT_DIR)/isz \
$(MAGIC_FRAGMENT_DIR)/java \
$(MAGIC_FRAGMENT_DIR)/jpeg \
$(MAGIC_FRAGMENT_DIR)/karma \
$(MAGIC_FRAGMENT_DIR)/kde \
$(MAGIC_FRAGMENT_DIR)/kml \
$(MAGIC_FRAGMENT_DIR)/lecter \
$(MAGIC_FRAGMENT_DIR)/lex \
$(MAGIC_FRAGMENT_DIR)/lif \
$(MAGIC_FRAGMENT_DIR)/linux \
$(MAGIC_FRAGMENT_DIR)/lisp \
$(MAGIC_FRAGMENT_DIR)/llvm \
$(MAGIC_FRAGMENT_DIR)/lua \
$(MAGIC_FRAGMENT_DIR)/luks \
$(MAGIC_FRAGMENT_DIR)/mach \
$(MAGIC_FRAGMENT_DIR)/macintosh \
$(MAGIC_FRAGMENT_DIR)/magic \
$(MAGIC_FRAGMENT_DIR)/mail.news \
$(MAGIC_FRAGMENT_DIR)/maple \
$(MAGIC_FRAGMENT_DIR)/mathcad \
$(MAGIC_FRAGMENT_DIR)/mathematica \
$(MAGIC_FRAGMENT_DIR)/matroska \
$(MAGIC_FRAGMENT_DIR)/mcrypt \
$(MAGIC_FRAGMENT_DIR)/mercurial \
$(MAGIC_FRAGMENT_DIR)/metastore \
$(MAGIC_FRAGMENT_DIR)/mime \
$(MAGIC_FRAGMENT_DIR)/mips \
$(MAGIC_FRAGMENT_DIR)/mirage \
$(MAGIC_FRAGMENT_DIR)/misctools \
$(MAGIC_FRAGMENT_DIR)/mkid \
$(MAGIC_FRAGMENT_DIR)/mlssa \
$(MAGIC_FRAGMENT_DIR)/mmdf \
$(MAGIC_FRAGMENT_DIR)/modem \
$(MAGIC_FRAGMENT_DIR)/motorola \
$(MAGIC_FRAGMENT_DIR)/mozilla \
$(MAGIC_FRAGMENT_DIR)/msdos \
$(MAGIC_FRAGMENT_DIR)/msooxml \
$(MAGIC_FRAGMENT_DIR)/msvc \
$(MAGIC_FRAGMENT_DIR)/mup \
$(MAGIC_FRAGMENT_DIR)/natinst \
$(MAGIC_FRAGMENT_DIR)/ncr \
$(MAGIC_FRAGMENT_DIR)/netbsd \
$(MAGIC_FRAGMENT_DIR)/netscape \
$(MAGIC_FRAGMENT_DIR)/netware \
$(MAGIC_FRAGMENT_DIR)/news \
$(MAGIC_FRAGMENT_DIR)/nitpicker \
$(MAGIC_FRAGMENT_DIR)/oasis \
$(MAGIC_FRAGMENT_DIR)/ocaml \
$(MAGIC_FRAGMENT_DIR)/octave \
$(MAGIC_FRAGMENT_DIR)/ole2compounddocs \
$(MAGIC_FRAGMENT_DIR)/olf \
$(MAGIC_FRAGMENT_DIR)/os2 \
$(MAGIC_FRAGMENT_DIR)/os400 \
$(MAGIC_FRAGMENT_DIR)/os9 \
$(MAGIC_FRAGMENT_DIR)/osf1 \
$(MAGIC_FRAGMENT_DIR)/palm \
$(MAGIC_FRAGMENT_DIR)/parix \
$(MAGIC_FRAGMENT_DIR)/parrot \
$(MAGIC_FRAGMENT_DIR)/pbm \
$(MAGIC_FRAGMENT_DIR)/pdf \
$(MAGIC_FRAGMENT_DIR)/pdp \
$(MAGIC_FRAGMENT_DIR)/perl \
$(MAGIC_FRAGMENT_DIR)/pgp \
$(MAGIC_FRAGMENT_DIR)/pkgadd \
$(MAGIC_FRAGMENT_DIR)/plan9 \
$(MAGIC_FRAGMENT_DIR)/plus5 \
$(MAGIC_FRAGMENT_DIR)/printer \
$(MAGIC_FRAGMENT_DIR)/project \
$(MAGIC_FRAGMENT_DIR)/psdbms \
$(MAGIC_FRAGMENT_DIR)/pulsar \
$(MAGIC_FRAGMENT_DIR)/pyramid \
$(MAGIC_FRAGMENT_DIR)/python \
$(MAGIC_FRAGMENT_DIR)/revision \
$(MAGIC_FRAGMENT_DIR)/riff \
$(MAGIC_FRAGMENT_DIR)/rinex \
$(MAGIC_FRAGMENT_DIR)/rpm \
$(MAGIC_FRAGMENT_DIR)/rtf \
$(MAGIC_FRAGMENT_DIR)/ruby \
$(MAGIC_FRAGMENT_DIR)/sc \
$(MAGIC_FRAGMENT_DIR)/sccs \
$(MAGIC_FRAGMENT_DIR)/scientific \
$(MAGIC_FRAGMENT_DIR)/securitycerts \
$(MAGIC_FRAGMENT_DIR)/selinux \
$(MAGIC_FRAGMENT_DIR)/sendmail \
$(MAGIC_FRAGMENT_DIR)/sequent \
$(MAGIC_FRAGMENT_DIR)/sgi \
$(MAGIC_FRAGMENT_DIR)/sgml \
$(MAGIC_FRAGMENT_DIR)/sharc \
$(MAGIC_FRAGMENT_DIR)/sinclair \
$(MAGIC_FRAGMENT_DIR)/sisu \
$(MAGIC_FRAGMENT_DIR)/sketch \
$(MAGIC_FRAGMENT_DIR)/smalltalk \
$(MAGIC_FRAGMENT_DIR)/sniffer \
$(MAGIC_FRAGMENT_DIR)/softquad \
$(MAGIC_FRAGMENT_DIR)/spec \
$(MAGIC_FRAGMENT_DIR)/spectrum \
$(MAGIC_FRAGMENT_DIR)/sql \
$(MAGIC_FRAGMENT_DIR)/ssh \
$(MAGIC_FRAGMENT_DIR)/ssl \
$(MAGIC_FRAGMENT_DIR)/sun \
$(MAGIC_FRAGMENT_DIR)/sysex \
$(MAGIC_FRAGMENT_DIR)/tcl \
$(MAGIC_FRAGMENT_DIR)/teapot \
$(MAGIC_FRAGMENT_DIR)/terminfo \
$(MAGIC_FRAGMENT_DIR)/tex \
$(MAGIC_FRAGMENT_DIR)/tgif \
$(MAGIC_FRAGMENT_DIR)/ti-8x \
$(MAGIC_FRAGMENT_DIR)/timezone \
$(MAGIC_FRAGMENT_DIR)/troff \
$(MAGIC_FRAGMENT_DIR)/tuxedo \
$(MAGIC_FRAGMENT_DIR)/typeset \
$(MAGIC_FRAGMENT_DIR)/unicode \
$(MAGIC_FRAGMENT_DIR)/unknown \
$(MAGIC_FRAGMENT_DIR)/uuencode \
$(MAGIC_FRAGMENT_DIR)/varied.out \
$(MAGIC_FRAGMENT_DIR)/varied.script \
$(MAGIC_FRAGMENT_DIR)/vax \
$(MAGIC_FRAGMENT_DIR)/vicar \
$(MAGIC_FRAGMENT_DIR)/virtual \
$(MAGIC_FRAGMENT_DIR)/virtutech \
$(MAGIC_FRAGMENT_DIR)/visx \
$(MAGIC_FRAGMENT_DIR)/vms \
$(MAGIC_FRAGMENT_DIR)/vmware \
$(MAGIC_FRAGMENT_DIR)/vorbis \
$(MAGIC_FRAGMENT_DIR)/vxl \
$(MAGIC_FRAGMENT_DIR)/warc \
$(MAGIC_FRAGMENT_DIR)/weak \
$(MAGIC_FRAGMENT_DIR)/windows \
$(MAGIC_FRAGMENT_DIR)/wireless \
$(MAGIC_FRAGMENT_DIR)/wordprocessors \
$(MAGIC_FRAGMENT_DIR)/wsdl \
$(MAGIC_FRAGMENT_DIR)/xdelta \
$(MAGIC_FRAGMENT_DIR)/xenix \
$(MAGIC_FRAGMENT_DIR)/xilinx \
$(MAGIC_FRAGMENT_DIR)/xo65 \
$(MAGIC_FRAGMENT_DIR)/xwindows \
$(MAGIC_FRAGMENT_DIR)/zilog \
$(MAGIC_FRAGMENT_DIR)/zyxel

MAGIC = magic.mgc
CLEANFILES = ${MAGIC} $(MAGIC_FRAGMENT_DIR)/Localstuff
FILE_COMPILE = $(top_builddir)/src/file

# FIXME: Build file natively as well so that it can be used to compile
# the target's magic file; for now we bail if the local version does not match
#FILE_COMPILE = file
FILE_COMPILE_DEP = $(FILE_COMPILE)
#FILE_COMPILE_DEP =
all: all-am

.SUFFIXES:
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
	        && { if test -f $@; then exit 0; else break; fi; }; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu magic/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --gnu magic/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure:  $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs
install-pkgdataDATA: $(pkgdata_DATA)
	@$(NORMAL_INSTALL)
	test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)"
	@list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
	done

uninstall-pkgdataDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	test -n "$$files" || exit 0; \
	echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \
	cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files
tags: TAGS
TAGS:

ctags: CTAGS
CTAGS:

distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d "$(distdir)/$$file"; then \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
	  else \
	    test -f "$(distdir)/$$file" \
	    || cp -p $$d/$$file "$(distdir)/$$file" \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
installdirs:
	for dir in "$(DESTDIR)$(pkgdatadir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic clean-libtool mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic

dvi: dvi-am

dvi-am:

html: html-am

html-am:

info: info-am

info-am:

install-data-am: install-pkgdataDATA

install-dvi: install-dvi-am

install-dvi-am:

install-exec-am:

install-html: install-html-am

install-html-am:

install-info: install-info-am

install-info-am:

install-man:

install-pdf: install-pdf-am

install-pdf-am:

install-ps: install-ps-am

install-ps-am:

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic mostlyclean-libtool

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-pkgdataDATA

.MAKE: install-am install-strip

.PHONY: all all-am check check-am clean clean-generic clean-libtool \
	distclean distclean-generic distclean-libtool distdir dvi \
	dvi-am html html-am info info-am install install-am \
	install-data install-data-am install-dvi install-dvi-am \
	install-exec install-exec-am install-html install-html-am \
	install-info install-info-am install-man install-pdf \
	install-pdf-am install-pkgdataDATA install-ps install-ps-am \
	install-strip installcheck installcheck-am installdirs \
	maintainer-clean maintainer-clean-generic mostlyclean \
	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
	uninstall uninstall-am uninstall-pkgdataDATA

${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP)
	@rm -fr magic
	@mkdir magic && cp -p $(EXTRA_DIST) magic
	@(if expr "${FILE_COMPILE}" : '.*/.*' > /dev/null; then \
	    echo "Using ${FILE_COMPILE} to generate ${MAGIC}" > /dev/null; \
	  else \
	    v=$$(file --version | sed -e s/file-// -e q); \
	    if [ "$$v" != "${PACKAGE_VERSION}" ]; then \
		echo "Cannot use the installed version of file ($$v) to"; \
		echo "cross-compile file ${PACKAGE_VERSION}"; \
		echo "Please install file ${PACKAGE_VERSION} locally first"; \
		exit 1; \
	    fi; \
	  fi)
	$(FILE_COMPILE) -C -m magic
	@rm -fr magic

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:


text:
import subprocess

from tests.utils import BaseTestWithRepository, MockDirStructure
from gitviewfs_objects import Directory, TreeContextNames, TreeDirItem,\
	DIR_STRUCTURE_CONTEXT_NAME
from git_objects_parser import GitTreeParser

class TreeDirItemWithRepositoryTest(BaseTestWithRepository):

	def setUp(self):
		super(TreeDirItemWithRepositoryTest, self).setUp()
		self.filename, self.subdirname = self.create_and_commit_file_and_subdir()
		tree_sha1 = subprocess.check_output(['git', 'rev-parse', 'HEAD^{tree}']).strip()
		self.context_values = {TreeContextNames.SHA1:tree_sha1}

		parser = GitTreeParser()
		self.tree_items = parser.parse('HEAD^{tree}')

	def test_file_as_blob(self):
		file_sha1 = self.tree_items[self.filename].sha1

		context_values = self.context_values.copy()
		context_values[DIR_STRUCTURE_CONTEXT_NAME] = MockDirStructure(blobs_dir_items=[file_sha1])

		item = TreeDirItem(name=self.filename)
		Directory(name=None, items=[item], context_values=context_values)

		target = item.get_target_object()

		self.assertIsInstance(target, MockDirStructure.Item)

	def test_subdir_as_tree(self):
		subdir_sha1 = self.tree_items[self.subdirname].sha1

		context_values = self.context_values.copy()
		context_values[DIR_STRUCTURE_CONTEXT_NAME] = MockDirStructure(trees_dir_items=[subdir_sha1])

		item = TreeDirItem(name=self.subdirname)
		Directory(name=None, items=[item], context_values=context_values)

		target = item.get_target_object()

		self.assertIsInstance(target, MockDirStructure.Item)

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8"?>

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                                      http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"
                  xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping">

    <mapped-superclass name="Sylius\Component\Core\Model\Order" table="sylius_order">
        <field name="currency" length="3">
            <gedmo:versioned />
        </field>
        <field type="string" name="paymentState" column="payment_state" />
        <field type="string" name="shippingState" column="shipping_state" />

        <many-to-one field="shippingAddress" target-entity="Sylius\Component\Addressing\Model\AddressInterface">
            <cascade>
                <cascade-persist/>
            </cascade>
            <join-column name="shipping_address_id" referenced-column-name="id" nullable="true" />
            <gedmo:versioned />
        </many-to-one>

        <many-to-one field="billingAddress" target-entity="Sylius\Component\Addressing\Model\AddressInterface">
            <cascade>
                <cascade-all/>
            </cascade>
            <join-column name="billing_address_id" referenced-column-name="id" nullable="true" />
            <gedmo:versioned />
        </many-to-one>

        <many-to-many field="promotionCoupons" target-entity="Sylius\Component\Promotion\Model\CouponInterface">
            <join-table name="sylius_promotion_coupon_order">
                <join-columns>
                    <join-column name="order_id" referenced-column-name="id" />
                </join-columns>
                <inverse-join-columns>
                    <join-column name="promotion_coupon_id" referenced-column-name="id" />
                </inverse-join-columns>
            </join-table>
            <gedmo:versioned />
        </many-to-many>

        <one-to-many field="payments" target-entity="Sylius\Component\Payment\Model\PaymentInterface" mapped-by="order" orphan-removal="true">
            <cascade>
                <cascade-all/>
            </cascade>
        </one-to-many>

        <one-to-many field="shipments" target-entity="Sylius\Component\Shipping\Model\ShipmentInterface" mapped-by="order" orphan-removal="true">
            <cascade>
                <cascade-all/>
            </cascade>
        </one-to-many>

        <many-to-one field="user" target-entity="Sylius\Component\Core\Model\UserInterface" inversed-by="orders">
            <join-column name="user_id" referenced-column-name="id" nullable="true" />
        </many-to-one>

        <many-to-many field="promotions" target-entity="Sylius\Component\Promotion\Model\PromotionInterface">
            <join-table name="sylius_promotion_order">
                <join-columns>
                    <join-column name="order_id" referenced-column-name="id" />
                </join-columns>
                <inverse-join-columns>
                    <join-column name="promotion_id" referenced-column-name="id" />
                </inverse-join-columns>
            </join-table>
            <cascade>
                <cascade-persist />
            </cascade>
            <gedmo:versioned />
        </many-to-many>

        <gedmo:loggable />
    </mapped-superclass>

</doctrine-mapping>


text:
package com.pabhinav.zovido.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.pabhinav.zovido.R;

/**
 * @author pabhinav
 */
public class OnBoardOneFragmentTab extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.on_board_fragment_one, container, false);
    }

}


text:
package co.mewf.minirs.internal.javax.ws.rs.core;

import java.io.StringWriter;
import java.util.List;
import java.util.Locale;

/**
 * Abstraction for a resource representation variant.
 *
 * Contains information about media type, language and encoding of the resource representation.
 *
 * @author Paul Sandoz
 * @author Marc Hadley
 * @since 1.0
 */
public class Variant {

    private Locale language;
    private MediaType mediaType;
    private String encoding;

    /**
     * Create a new instance of Variant.
     *
     * @param mediaType the media type of the variant - may be {@code null}.
     * @param language  the language of the variant (two-letter ISO-639 code);
     *                  may be {@code null}.
     * @param encoding  the content encoding of the variant - may be {@code null}.
     * @throws java.lang.IllegalArgumentException
     *          if all the parameters are {@code null}.
     * @since 2.0
     */
    public Variant(MediaType mediaType, String language, String encoding) {
        if (mediaType == null && language == null && encoding == null) {
            throw new IllegalArgumentException("mediaType, language, encoding all null");
        }
        this.encoding = encoding;
        this.language = (language == null) ? null : new Locale(language);
        this.mediaType = mediaType;
    }

    /**
     * Create a new instance of Variant.
     *
     * @param mediaType the media type of the variant - may be {@code null}.
     * @param language  the language of the variant (two-letter ISO-639 code);
     *                  may be {@code null}.
     * @param country   uppercase two-letter ISO-3166 language code of the variant;
     *                  may be {@code null} provided {@code language} is {@code null} too.
     * @param encoding  the content encoding of the variant - may be {@code null}.
     * @throws java.lang.IllegalArgumentException
     *          if all the parameters are {@code null}.
     * @since 2.0
     */
    public Variant(MediaType mediaType, String language, String country, String encoding) {
        if (mediaType == null && language == null && encoding == null) {
            throw new IllegalArgumentException("mediaType, language, encoding all null");
        }
        this.encoding = encoding;
        this.language = (language == null) ? null : new Locale(language, country);
        this.mediaType = mediaType;
    }

    /**
     * Create a new instance of Variant.
     *
     * @param mediaType       the media type of the variant - may be {@code null}.
     * @param language        the language of the variant (two-letter ISO-639 code);
     *                        may be {@code null}.
     * @param country         uppercase two-letter ISO-3166 language code of the variant;
     *                        may be {@code null} provided {@code language} is {@code null} too.
     * @param languageVariant vendor and browser specific language code of the variant
     *                        (see also {@link Locale} class description);
     *                        may be {@code null} provided {@code language} and
     *                        {@code country} are {@code null} too.
     * @param encoding        the content encoding of the variant - may be {@code null}.
     * @throws java.lang.IllegalArgumentException
     *          if all the parameters are {@code null}.
     * @since 2.0
     */
    public Variant(MediaType mediaType, String language, String country, String languageVariant, String encoding) {
        if (mediaType == null && language == null && encoding == null) {
            throw new IllegalArgumentException("mediaType, language, encoding all null");
        }
        this.encoding = encoding;
        this.language = (language == null) ? null : new Locale(language, country, languageVariant);
        this.mediaType = mediaType;
    }

    /**
     * Create a new instance of Variant.
     *
     * @param mediaType the media type of the variant - may be {@code null}.
     * @param language  the language of the variant - may be {@code null}.
     * @param encoding  the content encoding of the variant - may be {@code null}.
     * @throws java.lang.IllegalArgumentException
     *          if all the parameters are {@code null}.
     */
    public Variant(MediaType mediaType, Locale language, String encoding) {
        if (mediaType == null && language == null && encoding == null) {
            throw new IllegalArgumentException("mediaType, language, encoding all null");
        }
        this.encoding = encoding;
        this.language = language;
        this.mediaType = mediaType;
    }

    /**
     * Get the language of the variant.
     *
     * @return the language or  {@code null} if none set.
     */
    public Locale getLanguage() {
        return language;
    }

    /**
     * Get the string representation of the variant language,
     * or {@code null} if no language has been set.
     *
     * @return the string representing variant language or {@code null}
     *         if none set.
     * @since 2.0
     */
    public String getLanguageString() {
        return (language == null) ? null : language.toString();
    }

    /**
     * Get the media type of the variant.
     *
     * @return the media type or {@code null} if none set.
     */
    public MediaType getMediaType() {
        return mediaType;
    }

    /**
     * Get the encoding of the variant.
     *
     * @return the encoding or {@code null} if none set.
     */
    public String getEncoding() {
        return encoding;
    }

    /**
     * Create a {@link VariantListBuilder} initialized with a set of supported
     * media types.
     *
     * @param mediaTypes the available mediaTypes. If specific char-sets
     *                   are supported they should be included as parameters of the respective
     *                   media type.
     * @return the initialized builder.
     * @throws java.lang.IllegalArgumentException
     *          if mediaTypes is null or
     *          contains no elements.
     */
    public static VariantListBuilder mediaTypes(MediaType... mediaTypes) {
        VariantListBuilder b = VariantListBuilder.newInstance();
        b.mediaTypes(mediaTypes);
        return b;
    }

    /**
     * Create a {@link VariantListBuilder} initialized with a set of supported
     * languages.
     *
     * @param languages the available languages.
     * @return the initialized builder.
     * @throws java.lang.IllegalArgumentException
     *          if languages is null or
     *          contains no elements.
     */
    public static VariantListBuilder languages(Locale... languages) {
        VariantListBuilder b = VariantListBuilder.newInstance();
        b.languages(languages);
        return b;
    }

    /**
     * Create a {@link VariantListBuilder} initialized with a set of supported
     * encodings.
     *
     * @param encodings the available encodings.
     * @return the initialized builder.
     * @throws java.lang.IllegalArgumentException
     *          if encodings is null or
     *          contains no elements.
     */
    public static VariantListBuilder encodings(String... encodings) {
        VariantListBuilder b = VariantListBuilder.newInstance();
        b.encodings(encodings);
        return b;
    }

    /**
     * Generate hash code from variant properties.
     *
     * @return the hash code.
     */
    @Override
    public int hashCode() {
        int hash = 7;
        hash = 29 * hash + (this.language != null ? this.language.hashCode() : 0);
        hash = 29 * hash + (this.mediaType != null ? this.mediaType.hashCode() : 0);
        hash = 29 * hash + (this.encoding != null ? this.encoding.hashCode() : 0);
        return hash;
    }

    /**
     * Compares obj to this variant to see if they are the same
     * considering all property values.
     *
     * @param obj the object to compare to.
     * @return true if the two variants are the same, false otherwise.
     */
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Variant other = (Variant) obj;
        if (this.language != other.language && (this.language == null || !this.language.equals(other.language))) {
            return false;
        }
        if (this.mediaType != other.mediaType && (this.mediaType == null || !this.mediaType.equals(other.mediaType))) {
            return false;
        }
        //noinspection StringEquality
        return this.encoding == other.encoding || (this.encoding != null && this.encoding.equals(other.encoding));
    }

    @Override
    public String toString() {
        StringWriter w = new StringWriter();
        w.append("Variant[mediaType=");
        w.append(mediaType == null ? "null" : mediaType.toString());
        w.append(", language=");
        w.append(language == null ? "null" : language.toString());
        w.append(", encoding=");
        w.append(encoding == null ? "null" : encoding);
        w.append("]");
        return w.toString();
    }

    /**
     * A builder for a list of representation variants.
     */
    public static abstract class VariantListBuilder {

        /**
         * Protected constructor, use the static {@code newInstance}
         * method to obtain an instance.
         */
        protected VariantListBuilder() {
        }

        /**
         * Create a new builder instance.
         *
         * @return a new builder instance.
         */
        public static VariantListBuilder newInstance() {
            return new MiniRsVariantListBuilder();
        }

        /**
         * Add the current combination of metadata to the list of supported variants
         * (provided the current combination of metadata is not empty) and
         * build a list of representation variants from the current state of
         * the builder. After this method is called the builder is reset to
         * an empty state.
         *
         * @return a list of representation variants.
         */
        public abstract List<Variant> build();

        /**
         * Add the current combination of metadata to the list of supported variants,
         * after this method is called the current combination of metadata is emptied.
         *

         * If more than one value is supplied for one or more of the variant properties
         * then a variant will be generated for each possible combination. E.g.
         * in the following {@code list} would have five (4 + 1) members:
         *

         *
List<Variant> list = VariantListBuilder.newInstance()
         *         .languages(Locale.ENGLISH, Locale.FRENCH).encodings("zip", "identity").add()
         *         .languages(Locale.GERMAN).mediaTypes(MediaType.TEXT_PLAIN_TYPE).add()
         *         .build()

         *

         * Note that it is not necessary to call the {@code add()} method immediately before
         * the build method is called. E.g. the resulting list produced in the example above
         * would be identical to the list produced by the following code:
         *

         *
List<Variant> list = VariantListBuilder.newInstance()
         *         .languages(Locale.ENGLISH, Locale.FRENCH).encodings("zip", "identity").add()
         *         .languages(Locale.GERMAN).mediaTypes(MediaType.TEXT_PLAIN_TYPE)
         *         .build()

         *
         * @return the updated builder.
         * @throws IllegalStateException if there is not at least one
         *                               mediaType, language or encoding set for the current variant.
         */
        public abstract VariantListBuilder add();

        /**
         * Set the language(s) for this variant.
         *
         * @param languages the available languages.
         * @return the updated builder.
         */
        public abstract VariantListBuilder languages(Locale... languages);

        /**
         * Set the encoding(s) for this variant.
         *
         * @param encodings the available encodings.
         * @return the updated builder.
         */
        public abstract VariantListBuilder encodings(String... encodings);

        /**
         * Set the media type(s) for this variant.
         *
         * @param mediaTypes the available mediaTypes. If specific charsets
         *                   are supported they should be included as parameters of the respective
         *                   media type.
         * @return the updated builder.
         */
        public abstract VariantListBuilder mediaTypes(MediaType... mediaTypes);
    }
}


text:
package clish

import "fmt"

type Controller struct {
	Stage *ControllerStage `flagly:"handler"`
}

type ControllerStage struct{}

func (*ControllerStage) FlaglyHandle(c Client) error {
	info, err := c.ShowControllerStage()
	if err != nil {
		return err
	}
	return fmt.Errorf("staging: %v", len(info))
}


text:
package net.java.sip.communicator.impl.gui.customcontrols;

import java.awt.*;

import javax.swing.*;
import javax.swing.table.*;

public class RadioButtonTableCellRenderer
    implements TableCellRenderer
{
    public Component getTableCellRendererComponent(JTable table, Object value,
        boolean isSelected, boolean hasFocus, int row, int column)
    {
      return (Component) value;
    }
}


text:
package com.github.anba.es6draft.ast;

/**
 *
12 ECMAScript Language: Expressions

 *
12.1 Primary Expressions

 *

 *
12.1.3 Literals
 *

 */
public final class NullLiteral extends Literal {
    public NullLiteral(long beginPosition, long endPosition) {
        super(beginPosition, endPosition);
    }

    @Override
    public <R, V> R accept(NodeVisitor<R, V> visitor, V value) {
        return visitor.visit(this, value);
    }
}


text:
/
	private static final long serialVersionUID = 1L;

	private Properties properties;

	protected static Logger TRACE = Logger.getLogger(AbstractService.class);

	public AbstractService() {

		initializeService();
	}

	protected void initializeService() {
		// Properties is serializable.  This code is called twice.
		// At the first time, when the Java application is run, it is called locally to generate
		// the SPL file.  At this time, the properties file should be accessible
		// and we read the data into a properties object.
		// At the second time, the Java object is being deserialized.  At this time, the properties
		// object is sent to the remote host as part of the seraizlied object.  We do not need
		// to read the file again and the properties attributes will still be available.
		if (properties == null)
			properties = readProperties();
	}

	protected  Properties readProperties()
	{
		try {
			FileInputStream iStream = new FileInputStream("service.properties");
			Properties properties = new Properties();
			properties.load(iStream);
			iStream.close();

			return properties;

		} catch (FileNotFoundException e) {
			TRACE.error("Unable to find service.properties");
		} catch (IOException e) {
			TRACE.error("Unable to read service.properties");
		}
		return null;
	}

	public Properties getProperties() {
		return properties;
	}

	protected void addDependencies(Topology topology) {

		File dir = new File("opt/lib");

		// only include the required Jar files in classpath
		// exclude any IBM Streams jar files and topology jar files
		File[] jarFiles = dir.listFiles(new FilenameFilter() {
			@Override
			public boolean accept(File dir, String name) {
				return name.endsWith("jar") && (name.indexOf("streams.") == -1)
						&& (name.indexOf("com.ibm.streamsx.topology") == -1);
			}
		});

		if (jarFiles != null) {
			for (File file : jarFiles) {
				topology.addJarDependency(file.getAbsolutePath());
			}
		}
	}

	protected boolean isDebug()
	{
		String property = getProperties().getProperty(IServiceConstants.KEY_DEBUG);
		if (property!=null && !property.isEmpty())
		{
			return Boolean.valueOf(property);
		}
		return false;
	}

	protected String getStreamsContext() {
		String property = getProperties().getProperty(IServiceConstants.KEY_STREAMS_CONTEXT);
		if (property !=null && !property.isEmpty())
		{
			return property.toUpperCase();
		}
		return "DISTRIBUTED";
	}

	protected String getVmArgs()
	{
		return getProperties().getProperty(IServiceConstants.KEY_VMARGS);
	}

	protected void submit(Topology topology) {
		try {
			Map<String, Object> subProperties = new HashMap<>();

			String vmArgs = getVmArgs();

			if (vmArgs != null && !vmArgs.isEmpty()) {
				// Add addition VM Arguments as specified in properties file
				subProperties.put(ContextProperties.VMARGS, vmArgs);
			}

			if (isDebug())
				subProperties.put(ContextProperties.TRACING_LEVEL, TraceLevel.DEBUG);

			addSubmssionTimeParams(subProperties);

			StreamsContextFactory.getStreamsContext(getStreamsContext()).submit(topology, subProperties);
		} catch (Exception e) {
			TRACE.error("Unable to submit topology", e);
		}
	}

	protected Map<String, Object> addSubmssionTimeParams(Map<String, Object> params) {
		return params;
	}

	protected void run() {

		Topology topo = createTopology();
		addDependencies(topo);
		submit(topo);

	}

	protected abstract Topology createTopology();

}


text:
package com.dolphinmum.web.db.model;

/**
 * Created by meajhlp on 15/4/30.
 * 商品用户标签关系
 */
public class T_good_usertags {
    private int good_id;
    private int usertags_id;

    public int getGood_id() {
        return good_id;
    }

    public void setGood_id(int good_id) {
        this.good_id = good_id;
    }

    public int getUsertags_id() {
        return usertags_id;
    }

    public void setUsertags_id(int usertags_id) {
        this.usertags_id = usertags_id;
    }
}


text:
using System.Collections.Generic;
using System.Collections.Immutable;

namespace NukedBit.JsonApi
{
    public class SourceObject
    {
        internal SourceObject(string pointer, string parameter, ImmutableDictionary<string, object> meta)
        {
            Pointer = pointer;
            Parameter = parameter;
            Meta = meta;
        }

        public string Pointer { get; }
        public string Parameter { get; }
        public ImmutableDictionary<string, object> Meta { get; }
    }
}


text:
"""Utility functions for Holparam code."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import tensorflow as tf

class Params(dict):
  """Very simple Hyperparameter wrapper around dictionaries."""

  def __init__(self, *args, **kwargs):
    super(Params, self).__init__(*args, **kwargs)
    self.__dict__ = self

def vocab_table_from_file(filename, reverse=False):
  with tf.gfile.Open(filename, 'r') as f:
    keys = [s.strip() for s in f.readlines()]
    values = tf.range(len(keys), dtype=tf.int64)
    if not reverse:
      init = tf.contrib.lookup.KeyValueTensorInitializer(keys, values)
      return tf.contrib.lookup.HashTable(init, 1)
    else:
      init = tf.contrib.lookup.KeyValueTensorInitializer(values, keys)
      return tf.contrib.lookup.HashTable(init, '')


text:
<?php

namespace InstagramAPI;

class UserFeedResponse extends Response
{
    public $num_results;
    public $auto_load_more_enabled;
    /**
     * @var Item[]
     */
    public $items;
    public $more_available;
    public $next_max_id = null;
}


text:
/*	$NetBSD: pass3.c,v 1.21 2013/01/22 09:39:12 dholland Exp $	*/

/*
 * Copyright (c) 1980, 1986, 1993
 *	The Regents of the University of California.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)pass3.c	8.2 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: pass3.c,v 1.21 2013/01/22 09:39:12 dholland Exp $");
#endif
#endif /* not lint */

#include <sys/param.h>
#include <sys/time.h>
#include <string.h>

#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>

#include <dirent.h>

#include "fsck.h"
#include "extern.h"
#include "fsutil.h"

void
pass3(void)
{
	struct inoinfo *inp, **inpp;
	int loopcnt, state;
	ino_t orphan;
	struct inodesc idesc;
	char namebuf[MAXNAMLEN+1];
	union dinode *dp;

	for (inpp = &inpsort[inplast - 1]; inpp >= inpsort; inpp--) {
		int inpindex = inpp - inpsort;
		if (got_siginfo) {
			fprintf(stderr,
			    "%s: phase 3: dir %d of %d (%d%%)\n", cdevname(),
			    (int)(inplast - inpindex - 1), (int)inplast,
			    (int)((inplast - inpindex - 1) * 100 / inplast));
			got_siginfo = 0;
		}
#ifdef PROGRESS
		progress_bar(cdevname(), preen ? NULL : "phase 3",
			    inplast - inpindex - 1, inplast);
#endif /* PROGRESS */
		inp = *inpp;
		state = inoinfo(inp->i_number)->ino_state;
		if (inp->i_number == UFS_ROOTINO ||
		    (inp->i_parent != 0 && state != DSTATE))
			continue;
		if (state == DCLEAR)
			continue;
		/*
		 * If we are running with soft updates and we come
		 * across unreferenced directories, we just leave
		 * them in DSTATE which will cause them to be pitched
		 * in pass 4.
		 */
		if (preen &&
		    resolved && usedsoftdep && state == DSTATE) {
			if (inp->i_dotdot >= UFS_ROOTINO)
				inoinfo(inp->i_dotdot)->ino_linkcnt++;
			continue;
		}
		for (loopcnt = 0; ; loopcnt++) {
			orphan = inp->i_number;
			if (inp->i_parent == 0 ||
			    inoinfo(inp->i_parent)->ino_state != DSTATE ||
			    loopcnt > countdirs)
				break;
			inp = getinoinfo(inp->i_parent);
		}
		if (loopcnt <= countdirs) {
			if (linkup(orphan, inp->i_dotdot, NULL))
				inoinfo(lfdir)->ino_linkcnt--;
			continue;
		}
		pfatal("ORPHANED DIRECTORY LOOP DETECTED I=%lu",
		    (u_long)orphan);
		if (reply("RECONNECT") == 0)
			continue;
		dp = ginode(inp->i_parent);
		memset(&idesc, 0, sizeof(struct inodesc));
		idesc.id_type = DATA;
		idesc.id_number = inp->i_parent;
		idesc.id_parent = orphan;
		idesc.id_func = findname;
		idesc.id_name = namebuf;
		idesc.id_uid = iswap32(DIP(dp, uid));
		idesc.id_gid = iswap32(DIP(dp, gid));
		if ((ckinode(dp, &idesc) & FOUND) == 0)
			pfatal("COULD NOT FIND NAME IN PARENT DIRECTORY");
		if (linkup(orphan, inp->i_parent, namebuf)) {
			idesc.id_func = clearentry;
			if (ckinode(ginode(inp->i_parent), &idesc) & FOUND)
				inoinfo(orphan)->ino_linkcnt++;
			inoinfo(lfdir)->ino_linkcnt--;
		}
	}
#ifdef PROGRESS
	if (!preen)
		progress_done();
#endif /* PROGRESS */
}


text:
package org.c4sg.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import org.c4sg.dto.SkillDTO;
import org.c4sg.exception.NotFoundException;
import org.c4sg.service.SkillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/api/skills")
@Api(description = "Operations about Skills", tags = "skill")
public class SkillController {

    @Autowired
    private SkillService skillService;

    @CrossOrigin
    @RequestMapping(produces = {"application/json"}, method = RequestMethod.GET)
    @ApiOperation(value = "Get all skills", notes = "Returns a collection of skills based on the user ranking")
    public List<SkillDTO> getSkills() {

    	System.out.println("************** SkillController.getSkills() **************");

        return skillService.findSkillsbyCount();
    }

    @CrossOrigin
    @RequestMapping(value="/user",produces = {"application/json"}, method = RequestMethod.GET)
    @ApiOperation(value = "Get skills for an user by id", notes = "Returns a collection of skills for an user by id")
    public List<String> getSkillsForUser(
    		@ApiParam(value = "ID of user to return", required = true) @RequestParam Integer id) {

    	System.out.println("************** UserController.getSkillsForUser()"
                + ": id=" + id
                + " **************");

        return skillService.findSkillsForUser(id);
    }

    @CrossOrigin
    @RequestMapping(value="/project", produces = {"application/json"}, method = RequestMethod.GET)
    @ApiOperation(value = "Get skills for a project by id", notes = "Returns a collection of skills for a project")
    public List<String> getSkillsForProject(
    		@ApiParam(value = "ID of project to return", required = true) @RequestParam Integer id) {

    	System.out.println("************** UserController.getSkillsForProject()"
                + ": id=" + id
                + " **************");

        return skillService.findSkillsForProject(id);
    }

    @CrossOrigin
    @RequestMapping(value="/user/skills", method = RequestMethod.PUT)
    @ApiOperation(value = "Add skills for a user", notes = "Adds skills for the user with display order")
    public void createSkillsForUser(
    		@ApiParam(value = "ID of user to add skills",name="id", required = true) @RequestParam Integer id,
    		@ApiParam(value = "Skills in display order",name="skillsList", required = true) @RequestParam List<String> skillsList) {

    	System.out.println("************** UserController.createSkillsForUser()"
                + ": id=" + id
                + ": skillsList=" + skillsList
                + " **************");

    	try {
    		skillService.saveSkillsForUser(id,skillsList);
    	} catch (NullPointerException e) {
        	throw new NotFoundException(e.getMessage());
        }
    }

    @CrossOrigin
    @RequestMapping(value="/project/skills", method = RequestMethod.PUT)
    @ApiOperation(value = "Add skills for a project", notes = "Adds skills for the project with display order")
    public void createSkillsForProject(
    		@ApiParam(value = "ID of project to add skills", required = true) @RequestParam Integer id,
    		@ApiParam(value = "Skills in display order", required = true) @RequestParam List<String> skillsList) {

    	System.out.println("************** UserController.createSkillsForProject()"
                + ": id=" + id
                + ": skillsList=" + skillsList
                + " **************");

    	try {
    		skillService.saveSkillsForProject(id,skillsList);
    	} catch (NullPointerException e) {
            throw new NotFoundException(e.getMessage());
        }
    }
}


text:
const $document = $(document);
const $window = $(window);
const $html = $(document.documentElement);
const $body = $(document.body);

export { $document, $window, $html, $body };


text:
module Bootsy
  # Public: Module to include Bootsy in `ActionView::Base`.
  module FormHelper
    # Public: Return a textarea element with proper attributes to
    # be loaded as a WYSIWYG editor.
    #
    # object_name - The String or Symbol identifier of the object assigned
    #               to the template.
    #
    # method      - The Symbol attribute name on the object assigned to the
    #               form builder that will tailor the editor.
    #
    # options     - The Hash of options used to enable/disable features of
    #               the editor (default: {}):
    #               :container      - The `Bootsy::Container` instance model
    #                                 that will be referenced by the editor's
    #                                 image gallery. Defaults to the object
    #                                 assigned to the template, if it is a
    #                                 `Container`.
    #               :uploader       - The Boolean value used to enable/disable
    #                                 the image upload feature. Default: true,
    #                                 if a`Container` is found, false otherwise.
    #               :editor_options - The Hash of options with Boolean values
    #                                 usedto enable/disable features of the
    #                                 editor. Available options are described ib
    #                                 the Bootsyinitializer file (which is the
    #                                 default for this argument).
    def bootsy_area(object_name, method, options = {})
      container = options[:container] || options[:object]

      set_gallery_id(container, options)

      text_area(object_name, method, text_area_options(options)) +
        modal(options, container) +
        gallery_id_param(object_name, container, options)
    end

    private

    def enable_uploader?(options)
      if options[:uploader] == false
        false
      elsif options[:container].is_a?(Container)
        true
      elsif options[:container].blank? && options[:object].is_a?(Container)
        true
      else
        false
      end
    end

    def tag_class(options)
      classes =
        if options[:class].blank?
          []
        elsif options[:class].is_a?(Array)
          options[:class]
        else
          [options[:class]]
        end

      classes << 'bootsy_text_area'
    end

    def data_options(options)
      (options[:data] || {}).deep_merge(
        Hash[bootsy_options(options).map do |key, value|
          ["bootsy-#{key}", value]
        end]
      )
    end

    def bootsy_options(options)
      Bootsy.editor_options.merge(options[:editor_options] || {})
            .merge(uploader: enable_uploader?(options))
    end

    def text_area_options(options)
      options.except(
        :container,
        :uploader,
        :editor_options
      ).merge(
        data: data_options(options),
        class: tag_class(options)
      )
    end

    def set_gallery_id(container, options)
      return unless enable_uploader?(options)

      container.bootsy_image_gallery_id ||= Bootsy::ImageGallery.create!.id
      options.deep_merge!(
        data: { gallery_id: container.bootsy_image_gallery_id }
      )
    end

    def gallery_id_param(object_name, container, options)
      return unless enable_uploader?(options) && container.new_record?

      hidden_field(
        object_name,
        :bootsy_image_gallery_id,
        class: 'bootsy_image_gallery_id'
      )
    end

    def modal(options, container)
      return unless enable_uploader?(options)
      render('bootsy/images/modal', container: container)
    end
  end
end


text:
package org.unicamp.mc626.example;

public class ConcurrentCounterWithBug {

	private int count = 0;

	public int getNext() {
		return ++count;
	}

	public synchronized int getCurrent() {
		return count;
	}
}


text:
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SpeechSynthesis
       (js_speak, speak, js_cancel, cancel, js_pause, pause, js_resume,
        resume, js_getVoices, getVoices, js_getPending, getPending,
        js_getSpeaking, getSpeaking, js_getPaused, getPaused,
        SpeechSynthesis, castToSpeechSynthesis, gTypeSpeechSynthesis)
       where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord)
import Data.Typeable (Typeable)
import GHCJS.Types (JSVal(..), JSString)
import GHCJS.Foreign (jsNull)
import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..))
import GHCJS.Marshal (ToJSVal(..), FromJSVal(..))
import GHCJS.Marshal.Pure (PToJSVal(..), PFromJSVal(..))
import Control.Monad.IO.Class (MonadIO(..))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import GHCJS.DOM.Types
import Control.Applicative ((<$>))
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName)
import GHCJS.DOM.JSFFI.Generated.Enums

foreign import javascript unsafe "$1[\"speak\"]($2)" js_speak ::
        SpeechSynthesis -> Nullable SpeechSynthesisUtterance -> IO ()

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.speak Mozilla SpeechSynthesis.speak documentation>
speak ::
      (MonadIO m) =>
        SpeechSynthesis -> Maybe SpeechSynthesisUtterance -> m ()
speak self utterance
  = liftIO (js_speak (self) (maybeToNullable utterance))

foreign import javascript unsafe "$1[\"cancel\"]()" js_cancel ::
        SpeechSynthesis -> IO ()

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.cancel Mozilla SpeechSynthesis.cancel documentation>
cancel :: (MonadIO m) => SpeechSynthesis -> m ()
cancel self = liftIO (js_cancel (self))

foreign import javascript unsafe "$1[\"pause\"]()" js_pause ::
        SpeechSynthesis -> IO ()

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.pause Mozilla SpeechSynthesis.pause documentation>
pause :: (MonadIO m) => SpeechSynthesis -> m ()
pause self = liftIO (js_pause (self))

foreign import javascript unsafe "$1[\"resume\"]()" js_resume ::
        SpeechSynthesis -> IO ()

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.resume Mozilla SpeechSynthesis.resume documentation>
resume :: (MonadIO m) => SpeechSynthesis -> m ()
resume self = liftIO (js_resume (self))

foreign import javascript unsafe "$1[\"getVoices\"]()" js_getVoices
        :: SpeechSynthesis -> IO JSVal

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.getVoices Mozilla SpeechSynthesis.getVoices documentation>
getVoices ::
          (MonadIO m) => SpeechSynthesis -> m [Maybe SpeechSynthesisVoice]
getVoices self
  = liftIO ((js_getVoices (self)) >>= fromJSValUnchecked)

foreign import javascript unsafe "($1[\"pending\"] ? 1 : 0)"
        js_getPending :: SpeechSynthesis -> IO Bool

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.pending Mozilla SpeechSynthesis.pending documentation>
getPending :: (MonadIO m) => SpeechSynthesis -> m Bool
getPending self = liftIO (js_getPending (self))

foreign import javascript unsafe "($1[\"speaking\"] ? 1 : 0)"
        js_getSpeaking :: SpeechSynthesis -> IO Bool

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.speaking Mozilla SpeechSynthesis.speaking documentation>
getSpeaking :: (MonadIO m) => SpeechSynthesis -> m Bool
getSpeaking self = liftIO (js_getSpeaking (self))

foreign import javascript unsafe "($1[\"paused\"] ? 1 : 0)"
        js_getPaused :: SpeechSynthesis -> IO Bool

-- | <https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis.paused Mozilla SpeechSynthesis.paused documentation>
getPaused :: (MonadIO m) => SpeechSynthesis -> m Bool
getPaused self = liftIO (js_getPaused (self))


text:
/*
 * MinIO Cloud Storage, (C) 2015, 2016, 2017 MinIO, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cmd

import (
	"encoding/json"
	"errors"
	"fmt"
	"net/http"
	"reflect"
	"strconv"
	"strings"
	"time"
)

// startWithConds - map which indicates if a given condition supports starts-with policy operator
var startsWithConds = map[string]bool{
	"$acl":                     true,
	"$bucket":                  false,
	"$cache-control":           true,
	"$content-type":            true,
	"$content-disposition":     true,
	"$content-encoding":        true,
	"$expires":                 true,
	"$key":                     true,
	"$success_action_redirect": true,
	"$redirect":                true,
	"$success_action_status":   false,
	"$x-amz-algorithm":         false,
	"$x-amz-credential":        false,
	"$x-amz-date":              false,
}

// Add policy conditionals.
const (
	policyCondEqual         = "eq"
	policyCondStartsWith    = "starts-with"
	policyCondContentLength = "content-length-range"
)

// toString - Safely convert interface to string without causing panic.
func toString(val interface{}) string {
	switch v := val.(type) {
	case string:
		return v
	default:
		return ""
	}
}

// toLowerString - safely convert interface to lower string
func toLowerString(val interface{}) string {
	return strings.ToLower(toString(val))
}

// toInteger _ Safely convert interface to integer without causing panic.
func toInteger(val interface{}) (int64, error) {
	switch v := val.(type) {
	case float64:
		return int64(v), nil
	case int64:
		return v, nil
	case int:
		return int64(v), nil
	case string:
		i, err := strconv.Atoi(v)
		return int64(i), err
	default:
		return 0, errors.New("Invalid number format")
	}
}

// isString - Safely check if val is of type string without causing panic.
func isString(val interface{}) bool {
	_, ok := val.(string)
	return ok
}

// ContentLengthRange - policy content-length-range field.
type contentLengthRange struct {
	Min   int64
	Max   int64
	Valid bool // If content-length-range was part of policy
}

// PostPolicyForm provides strict static type conversion and validation for Amazon S3's POST policy JSON string.
type PostPolicyForm struct {
	Expiration time.Time // Expiration date and time of the POST policy.
	Conditions struct {  // Conditional policy structure.
		Policies []struct {
			Operator string
			Key      string
			Value    string
		}
		ContentLengthRange contentLengthRange
	}
}

// parsePostPolicyForm - Parse JSON policy string into typed PostPolicyForm structure.
func parsePostPolicyForm(policy string) (ppf PostPolicyForm, e error) {
	// Convert po into interfaces and
	// perform strict type conversion using reflection.
	var rawPolicy struct {
		Expiration string        `json:"expiration"`
		Conditions []interface{} `json:"conditions"`
	}

	err := json.Unmarshal([]byte(policy), &rawPolicy)
	if err != nil {
		return ppf, err
	}

	parsedPolicy := PostPolicyForm{}

	// Parse expiry time.
	parsedPolicy.Expiration, err = time.Parse(time.RFC3339Nano, rawPolicy.Expiration)
	if err != nil {
		return ppf, err
	}

	// Parse conditions.
	for _, val := range rawPolicy.Conditions {
		switch condt := val.(type) {
		case map[string]interface{}: // Handle key:value map types.
			for k, v := range condt {
				if !isString(v) { // Pre-check value type.
					// All values must be of type string.
					return parsedPolicy, fmt.Errorf("Unknown type %s of conditional field value %s found in POST policy form", reflect.TypeOf(condt).String(), condt)
				}
				// {"acl": "public-read" } is an alternate way to indicate - [ "eq", "$acl", "public-read" ]
				// In this case we will just collapse this into "eq" for all use cases.
				parsedPolicy.Conditions.Policies = append(parsedPolicy.Conditions.Policies, struct {
					Operator string
					Key      string
					Value    string
				}{
					policyCondEqual, "$" + strings.ToLower(k), toString(v),
				})
			}
		case []interface{}: // Handle array types.
			if len(condt) != 3 { // Return error if we have insufficient elements.
				return parsedPolicy, fmt.Errorf("Malformed conditional fields %s of type %s found in POST policy form", condt, reflect.TypeOf(condt).String())
			}
			switch toLowerString(condt[0]) {
			case policyCondEqual, policyCondStartsWith:
				for _, v := range condt { // Pre-check all values for type.
					if !isString(v) {
						// All values must be of type string.
						return parsedPolicy, fmt.Errorf("Unknown type %s of conditional field value %s found in POST policy form", reflect.TypeOf(condt).String(), condt)
					}
				}
				operator, matchType, value := toLowerString(condt[0]), toLowerString(condt[1]), toString(condt[2])
				if !strings.HasPrefix(matchType, "$") {
					return parsedPolicy, fmt.Errorf("Invalid according to Policy: Policy Condition failed: [%s, %s, %s]", operator, matchType, value)
				}
				parsedPolicy.Conditions.Policies = append(parsedPolicy.Conditions.Policies, struct {
					Operator string
					Key      string
					Value    string
				}{
					operator, matchType, value,
				})
			case policyCondContentLength:
				min, err := toInteger(condt[1])
				if err != nil {
					return parsedPolicy, err
				}

				max, err := toInteger(condt[2])
				if err != nil {
					return parsedPolicy, err
				}

				parsedPolicy.Conditions.ContentLengthRange = contentLengthRange{
					Min:   min,
					Max:   max,
					Valid: true,
				}
			default:
				// Condition should be valid.
				return parsedPolicy, fmt.Errorf("Unknown type %s of conditional field value %s found in POST policy form",
					reflect.TypeOf(condt).String(), condt)
			}
		default:
			return parsedPolicy, fmt.Errorf("Unknown field %s of type %s found in POST policy form",
				condt, reflect.TypeOf(condt).String())
		}
	}
	return parsedPolicy, nil
}

// checkPolicyCond returns a boolean to indicate if a condition is satisified according
// to the passed operator
func checkPolicyCond(op string, input1, input2 string) bool {
	switch op {
	case policyCondEqual:
		return input1 == input2
	case policyCondStartsWith:
		return strings.HasPrefix(input1, input2)
	}
	return false
}

// checkPostPolicy - apply policy conditions and validate input values.
// (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html)
func checkPostPolicy(formValues http.Header, postPolicyForm PostPolicyForm) error {
	// Check if policy document expiry date is still not reached
	if !postPolicyForm.Expiration.After(UTCNow()) {
		return fmt.Errorf("Invalid according to Policy: Policy expired")
	}
	// map to store the metadata
	metaMap := make(map[string]string)
	for _, policy := range postPolicyForm.Conditions.Policies {
		if strings.HasPrefix(policy.Key, "$x-amz-meta-") {
			formCanonicalName := http.CanonicalHeaderKey(strings.TrimPrefix(policy.Key, "$"))
			metaMap[formCanonicalName] = policy.Value
		}
	}
	// Check if any extra metadata field is passed as input
	for key := range formValues {
		if strings.HasPrefix(key, "X-Amz-Meta-") {
			if _, ok := metaMap[key]; !ok {
				return fmt.Errorf("Invalid according to Policy: Extra input fields: %s", key)
			}
		}
	}

	// Flag to indicate if all policies conditions are satisfied
	var condPassed bool

	// Iterate over policy conditions and check them against received form fields
	for _, policy := range postPolicyForm.Conditions.Policies {
		// Form fields names are in canonical format, convert conditions names
		// to canonical for simplification purpose, so `$key` will become `Key`
		formCanonicalName := http.CanonicalHeaderKey(strings.TrimPrefix(policy.Key, "$"))
		// Operator for the current policy condition
		op := policy.Operator
		// If the current policy condition is known
		if startsWithSupported, condFound := startsWithConds[policy.Key]; condFound {
			// Check if the current condition supports starts-with operator
			if op == policyCondStartsWith && !startsWithSupported {
				return fmt.Errorf("Invalid according to Policy: Policy Condition failed")
			}
			// Check if current policy condition is satisfied
			condPassed = checkPolicyCond(op, formValues.Get(formCanonicalName), policy.Value)
			if !condPassed {
				return fmt.Errorf("Invalid according to Policy: Policy Condition failed")
			}
		} else {
			// This covers all conditions X-Amz-Meta-* and X-Amz-*
			if strings.HasPrefix(policy.Key, "$x-amz-meta-") || strings.HasPrefix(policy.Key, "$x-amz-") {
				// Check if policy condition is satisfied
				condPassed = checkPolicyCond(op, formValues.Get(formCanonicalName), policy.Value)
				if !condPassed {
					return fmt.Errorf("Invalid according to Policy: Policy Condition failed: [%s, %s, %s]", op, policy.Key, policy.Value)
				}
			}
		}
	}

	return nil
}


text:
module Xcodeproj
  class Command
    class ProjectDiff < Command
      self.summary = 'Shows the difference between two projects'

      self.description = summary + <<-EOS.gsub(/ {8}/, '')

        It shows the difference in a UUID agnostic fashion.

        To reduce the noise (and to simplify implementation) differences in the
        order of arrays are ignored.
      EOS

      def self.options
        [
          ['--ignore=KEY', 'A key to ignore in the comparison. Can be specified multiple times.'],
        ].concat(super)
      end

      self.arguments = [
        CLAide::Argument.new('PROJECT1', true),
        CLAide::Argument.new('PROJECT2', true),
      ]

      def initialize(argv)
        @path_project1  = argv.shift_argument
        @path_project2  = argv.shift_argument
        @keys_to_ignore = argv.all_options('ignore')
        super
      end

      def validate!
        super
        @project1, @project2 = open_project!(@path_project1, @path_project2)
      end

      def run
        hash_1 = @project1.to_tree_hash.dup
        hash_2 = @project2.to_tree_hash.dup
        @keys_to_ignore.each do |key|
          Differ.clean_hash!(hash_1, key)
          Differ.clean_hash!(hash_2, key)
        end

        diff = Differ.project_diff(hash_1, hash_2, @path_project1, @path_project2)

        require 'yaml'
        yaml = diff.to_yaml
        yaml.gsub!(@path_project1, @path_project1.cyan)
        yaml.gsub!(@path_project2, @path_project2.magenta)
        yaml.gsub!(':diff:', 'diff:'.yellow)
        puts yaml
      end
    end
  end
end


text:
    sudo service gitlab stop

### 2. Backup

```bash
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
```

### 3. Get latest code

```bash
sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
```

For GitLab Community Edition:

```bash
sudo -u git -H git checkout 8-5-stable
```

OR

For GitLab Enterprise Edition:

```bash
sudo -u git -H git checkout 8-5-stable-ee
```

### 4. Update gitlab-shell

```bash
cd /home/git/gitlab-shell
sudo -u git -H git fetch --all
sudo -u git -H git checkout v2.6.10
```

### 5. Update gitlab-workhorse

Install and compile gitlab-workhorse. This requires
[Go 1.5](https://golang.org/dl) which should already be on your system from
GitLab 8.1.

```bash
cd /home/git/gitlab-workhorse
sudo -u git -H git fetch --all
sudo -u git -H git checkout 0.6.4
sudo -u git -H make
```

### 6. Install libs, migrations, etc.

```bash
cd /home/git/gitlab

# MySQL installations (note: the line below states '--without postgres')
sudo -u git -H bundle install --without postgres development test --deployment

# PostgreSQL installations (note: the line below states '--without mysql')
sudo -u git -H bundle install --without mysql development test --deployment

# Optional: clean up old gems
sudo -u git -H bundle clean

# Run database migrations
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

# Clean up assets and cache
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production

```

### 7. Update configuration files

#### New configuration options for `gitlab.yml`

There are new configuration options available for [`gitlab.yml`](config/gitlab.yml.example). View them with the command below and apply them manually to your current `gitlab.yml`:

```sh
git diff origin/8-4-stable:config/gitlab.yml.example origin/8-5-stable:config/gitlab.yml.example
```

#### Nginx configuration

Ensure you're still up-to-date with the latest NGINX configuration changes:

```sh
# For HTTPS configurations
git diff origin/8-4-stable:lib/support/nginx/gitlab-ssl origin/8-5-stable:lib/support/nginx/gitlab-ssl

# For HTTP configurations
git diff origin/8-4-stable:lib/support/nginx/gitlab origin/8-5-stable:lib/support/nginx/gitlab
```

If you are using Apache instead of NGINX please see the updated [Apache templates].
Also note that because Apache does not support upstreams behind Unix sockets you
will need to let gitlab-workhorse listen on a TCP port. You can do this
via [/etc/default/gitlab].

[Apache templates]: https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/web-server/apache
[/etc/default/gitlab]: https://gitlab.com/gitlab-org/gitlab-ce/blob/8-5-stable/lib/support/init.d/gitlab.default.example#L37

#### Init script

Ensure you're still up-to-date with the latest init script changes:

    sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab

### 8. Start application

    sudo service gitlab start
    sudo service nginx restart

### 9. Check application status

Check if GitLab and its environment are configured correctly:

    sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

To make sure you didn't miss anything run a more thorough check:

    sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

If all items are green, then congratulations, the upgrade is complete!

## Things went south? Revert to previous version (8.4)

### 1. Revert the code to the previous version

Follow the [upgrade guide from 8.3 to 8.4](8.3-to-8.4.md), except for the
database migration (the backup is already migrated to the previous version).

### 2. Restore from the backup

```bash
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production
```

If you have more than one backup `*.tar` file(s) please add `BACKUP=timestamp_of_backup` to the command above.


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Consp. fung. (Leipzig) 62 (1805)

#### Original name
Xyloma salicinum var. umbonatum Alb. & Schwein.

### Remarks
null


text:
package com.dremio.dac.service.errors;

import static javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;

import com.dremio.dac.server.GenericErrorMessage;

/**
 * Thrown when a source is in bad state or got permission issues.
 */
public class SourceBadStateException extends WebApplicationException {
  private static final long serialVersionUID = 1L;

  private static Response newResponse(Object entity) {
    return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
      .entity(entity)
      .type(APPLICATION_JSON_TYPE)
      .build();
  }

  public SourceBadStateException(String sourceName, String details, Exception e) {
    super(e, newResponse(new GenericErrorMessage(
        String.format("The source [%s] is in bad state. Please check the detailed error message.", sourceName),
        details, null)));
  }
}


text:
#ifndef SSHTUNNELDATACONNECTOR_H
#define SSHTUNNELDATACONNECTOR_H

#include <QObject>
#include <QLoggingCategory>
#include "sshchannel.h"
class QTcpSocket;

#define BUFFER_SIZE (128*1024)

Q_DECLARE_LOGGING_CATEGORY(logxfer)

class SshTunnelDataConnector : public QObject
{
    Q_OBJECT

    SshClient *m_sshClient  {nullptr};
    LIBSSH2_CHANNEL *m_sshChannel {nullptr};
    QTcpSocket *m_sock  {nullptr};
    QString m_name;

    /* Transfer functions */

    /* TX Channel */
    char m_tx_buffer[BUFFER_SIZE] {0,};
    char *m_tx_start_ptr {nullptr};
    char *m_tx_stop_ptr {nullptr};
    size_t _txBufferLen() const;

    bool m_tx_data_on_sock {false};
    ssize_t _transferSockToTx();
    ssize_t m_total_sockToTx {0};
    bool m_tx_eof {false};

    ssize_t _transferTxToSsh();
    ssize_t m_total_TxToSsh {0};
    bool m_tx_closed {false};

    /* RX Channel */
    char m_rx_buffer[BUFFER_SIZE] {0,};
    char *m_rx_start_ptr {nullptr};
    char *m_rx_stop_ptr {nullptr};
    size_t _rxBufferLen() const;

    bool m_rx_data_on_ssh {false};
    ssize_t _transferSshToRx();
    ssize_t m_total_SshToRx {0};
    bool m_rx_eof {false};

    ssize_t _transferRxToSock();
    ssize_t m_total_RxToSock {0};
    bool m_rx_closed {false};

public slots:
    void sshDataReceived();
    bool process();
    void close();
    bool isClosed();
    void flushTx();

public:
    explicit SshTunnelDataConnector(SshClient *client, const QString &name, QObject *parent = nullptr);
    virtual ~SshTunnelDataConnector();
    void setChannel(LIBSSH2_CHANNEL *channel);
    void setSock(QTcpSocket *sock);

signals:
    void sendEvent();
    void processed();

private slots:
    void _socketDisconnected();
    void _socketDataRecived();
    void _socketError();
};

#endif // SSHTUNNELDATACONNECTOR_H


text:
<?php

class ModelMysqlImpl implements Model{

	protected $dbHandler;
	protected $conn;

	public function __construct() {
		$this->dbHandler = new DBHandler();
		$this->conn = $this->dbHandler->getConn();
	}
	public function getConn(){
		return $this->conn;
	}
	public function getDBHandler(){
		return $this->dbHandler;
	}

	public function create() {
		$result = null;
		try {
			$_id = -1;
			$_p_sql = "";
			$_v_sql = "";
			foreach($_REQUEST['data'] as $key=>$value) {
				if($key=='id') {
					unset($_REQUEST['data'][$key]);
					continue;
				}
				$_p_sql = $_p_sql.",".$key;
				$_v_sql = $_v_sql.",:".$key;
			}
			$sql = "INSERT INTO ".$_REQUEST['model']."(".substr($_p_sql,1).") VALUES (".substr($_v_sql,1).");";
			SQLHandler::executeSQL($this->conn, 'put', $sql, $_REQUEST['data']);
			$result = $this->conn->lastInsertId();
		} catch(Exception $e){
			$result = array("error"=>$e->getMessage());
			//throw $e;
		}
		return $result;
	}

	public function remove($id) {
		$result = array("exec"=>true);
		try {
			$sql = "DELETE FROM ".$_REQUEST['model']." WHERE id=:id";
			SQLHandler::executeSQL($this->conn, 'delete', $sql, array("id"=>$id));
		} catch(Exception $e){
			$result = array("error"=>$e->getMessage());
		}
		return $result;
	}

	public function update($id) {
		$result = array("exec"=>true);
		try {
			$_sql = "";
			foreach($_REQUEST['data'] as $key=>$value) {
				if($key=='_id')
					continue;
				$_sql = $_sql.",".$key."=:".$key;
			}
			$sql = "UPDATE ".$_REQUEST['model']." SET ".substr($_sql,1)." WHERE id=:_id";
			SQLHandler::executeSQL($this->conn, 'put', $sql, $_REQUEST['data']);
		} catch(Exception $e){
			throw $e;
		}
		return $result;
	}

	public function all() {
		$result = array();
		try {
			$sql = "SELECT * FROM ".$_REQUEST['model'];
			$result = SQLHandler::executeSQL($this->conn, 'get', $sql);
		} catch(Exception $e){
			$result = array("error"=>$e->getMessage());
		}
		return $result;
	}

    public function read($id) {
    	$result = array();
    	try {
    		$sql = "SELECT * FROM ".$_REQUEST['model']." WHERE id=".$id;
    		$res = SQLHandler::executeSQL($this->conn, 'get', $sql);
    		$result = $res[0];
    	} catch(PDOException $e){
    		$result = array("error"=>$e->getMessage());
    	}
		return $result;
	}

}


text:
package com.cspinformatique.kubik.kos.model.account;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.springframework.security.core.GrantedAuthority;

@Entity
public class Role implements GrantedAuthority {
	private static final long serialVersionUID = 1872845603045776256L;

	public enum Type {
		ADMIN, CUSTOMER
	}

	private int id;
	private String name;
	private Type type;

	public Role() {

	}

	public Role(int id, String name, Type type) {
		this.id = id;
		this.name = name;
		this.type = type;
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	@Transient
	public String getAuthority() {
		return this.getName();
	}

	@Enumerated(EnumType.STRING)
	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}
}


text:
    <ion-nav-bar class="bar-stable"></ion-nav-bar>

    <ion-nav-view></ion-nav-view>


text:
package com.betfair.publicapi.types.global.v3;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for ValidationErrorsEnum.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *

 *

 * <simpleType name="ValidationErrorsEnum">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="DUPLICATE_USERNAME"/>
 *     <enumeration value="FUNDS_TRANSFER_CANCEL"/>
 *     <enumeration value="FUNDS_TRANSFER_CURRENCY_MISMATCH"/>
 *     <enumeration value="INCOMPLETE_DETAILS"/>
 *     <enumeration value="INSUFFICIENT_FUNDS"/>
 *     <enumeration value="INVALID_ACCOUNT_TYPE"/>
 *     <enumeration value="INVALID_ADDRESS_LINE1"/>
 *     <enumeration value="INVALID_ADDRESS_LINE2"/>
 *     <enumeration value="INVALID_ADDRESS_LINE3"/>
 *     <enumeration value="INVALID_ANSWER1"/>
 *     <enumeration value="INVALID_ANSWER2"/>
 *     <enumeration value="INVALID_BROWSER"/>
 *     <enumeration value="INVALID_CITY"/>
 *     <enumeration value="INVALID_COUNTRY_OF_RESIDENCE"/>
 *     <enumeration value="INVALID_COUNTY_STATE"/>
 *     <enumeration value="INVALID_CURRENCY"/>
 *     <enumeration value="INVALID_DEPOSIT_LIMIT"/>
 *     <enumeration value="INVALID_DEPOSIT_LIMIT_FREQUENCY"/>
 *     <enumeration value="INVALID_DETAILS"/>
 *     <enumeration value="INVALID_DOB"/>
 *     <enumeration value="INVALID_EMAIL"/>
 *     <enumeration value="INVALID_FIRSTNAME"/>
 *     <enumeration value="INVALID_GENDER"/>
 *     <enumeration value="INVALID_HOME_PHONE"/>
 *     <enumeration value="INVALID_IP_ADDRESS"/>
 *     <enumeration value="INVALID_LANGUAGE"/>
 *     <enumeration value="INVALID_LOCALE"/>
 *     <enumeration value="INVALID_LOSS_LIMIT"/>
 *     <enumeration value="INVALID_LOSS_LIMIT_FREQUENCY"/>
 *     <enumeration value="INVALID_MASTER_ID"/>
 *     <enumeration value="INVALID_MOBILE_PHONE"/>
 *     <enumeration value="INVALID_PARTNERID"/>
 *     <enumeration value="INVALID_PASSWORD"/>
 *     <enumeration value="INVALID_POSTCODE"/>
 *     <enumeration value="INVALID_PRIVICY_VERSION"/>
 *     <enumeration value="INVALID_PRODUCT_ID"/>
 *     <enumeration value="INVALID_REFERRER_CODE"/>
 *     <enumeration value="INVALID_REGION"/>
 *     <enumeration value="INVALID_SECURITY_QUESTION1"/>
 *     <enumeration value="INVALID_SECURITY_QUESTION2"/>
 *     <enumeration value="INVALID_SUBPARTNERID"/>
 *     <enumeration value="INVALID_SUPERPARTNERID"/>
 *     <enumeration value="INVALID_SURNAME"/>
 *     <enumeration value="INVALID_TC_VERSION"/>
 *     <enumeration value="INVALID_TIMEZONE"/>
 *     <enumeration value="INVALID_TITLE"/>
 *     <enumeration value="INVALID_USERNAME"/>
 *     <enumeration value="INVALID_WORK_PHONE"/>
 *     <enumeration value="RESERVED_PASSWORD"/>
 *   </restriction>
 * </simpleType>
 *

 *
 */
@XmlType(name = "ValidationErrorsEnum")
@XmlEnum
public enum ValidationErrorsEnum {

    DUPLICATE_USERNAME("DUPLICATE_USERNAME"),
    FUNDS_TRANSFER_CANCEL("FUNDS_TRANSFER_CANCEL"),
    FUNDS_TRANSFER_CURRENCY_MISMATCH("FUNDS_TRANSFER_CURRENCY_MISMATCH"),
    INCOMPLETE_DETAILS("INCOMPLETE_DETAILS"),
    INSUFFICIENT_FUNDS("INSUFFICIENT_FUNDS"),
    INVALID_ACCOUNT_TYPE("INVALID_ACCOUNT_TYPE"),
    @XmlEnumValue("INVALID_ADDRESS_LINE1")
    INVALID_ADDRESS_LINE_1("INVALID_ADDRESS_LINE1"),
    @XmlEnumValue("INVALID_ADDRESS_LINE2")
    INVALID_ADDRESS_LINE_2("INVALID_ADDRESS_LINE2"),
    @XmlEnumValue("INVALID_ADDRESS_LINE3")
    INVALID_ADDRESS_LINE_3("INVALID_ADDRESS_LINE3"),
    @XmlEnumValue("INVALID_ANSWER1")
    INVALID_ANSWER_1("INVALID_ANSWER1"),
    @XmlEnumValue("INVALID_ANSWER2")
    INVALID_ANSWER_2("INVALID_ANSWER2"),
    INVALID_BROWSER("INVALID_BROWSER"),
    INVALID_CITY("INVALID_CITY"),
    INVALID_COUNTRY_OF_RESIDENCE("INVALID_COUNTRY_OF_RESIDENCE"),
    INVALID_COUNTY_STATE("INVALID_COUNTY_STATE"),
    INVALID_CURRENCY("INVALID_CURRENCY"),
    INVALID_DEPOSIT_LIMIT("INVALID_DEPOSIT_LIMIT"),
    INVALID_DEPOSIT_LIMIT_FREQUENCY("INVALID_DEPOSIT_LIMIT_FREQUENCY"),
    INVALID_DETAILS("INVALID_DETAILS"),
    INVALID_DOB("INVALID_DOB"),
    INVALID_EMAIL("INVALID_EMAIL"),
    INVALID_FIRSTNAME("INVALID_FIRSTNAME"),
    INVALID_GENDER("INVALID_GENDER"),
    INVALID_HOME_PHONE("INVALID_HOME_PHONE"),
    INVALID_IP_ADDRESS("INVALID_IP_ADDRESS"),
    INVALID_LANGUAGE("INVALID_LANGUAGE"),
    INVALID_LOCALE("INVALID_LOCALE"),
    INVALID_LOSS_LIMIT("INVALID_LOSS_LIMIT"),
    INVALID_LOSS_LIMIT_FREQUENCY("INVALID_LOSS_LIMIT_FREQUENCY"),
    INVALID_MASTER_ID("INVALID_MASTER_ID"),
    INVALID_MOBILE_PHONE("INVALID_MOBILE_PHONE"),
    INVALID_PARTNERID("INVALID_PARTNERID"),
    INVALID_PASSWORD("INVALID_PASSWORD"),
    INVALID_POSTCODE("INVALID_POSTCODE"),
    INVALID_PRIVICY_VERSION("INVALID_PRIVICY_VERSION"),
    INVALID_PRODUCT_ID("INVALID_PRODUCT_ID"),
    INVALID_REFERRER_CODE("INVALID_REFERRER_CODE"),
    INVALID_REGION("INVALID_REGION"),
    @XmlEnumValue("INVALID_SECURITY_QUESTION1")
    INVALID_SECURITY_QUESTION_1("INVALID_SECURITY_QUESTION1"),
    @XmlEnumValue("INVALID_SECURITY_QUESTION2")
    INVALID_SECURITY_QUESTION_2("INVALID_SECURITY_QUESTION2"),
    INVALID_SUBPARTNERID("INVALID_SUBPARTNERID"),
    INVALID_SUPERPARTNERID("INVALID_SUPERPARTNERID"),
    INVALID_SURNAME("INVALID_SURNAME"),
    INVALID_TC_VERSION("INVALID_TC_VERSION"),
    INVALID_TIMEZONE("INVALID_TIMEZONE"),
    INVALID_TITLE("INVALID_TITLE"),
    INVALID_USERNAME("INVALID_USERNAME"),
    INVALID_WORK_PHONE("INVALID_WORK_PHONE"),
    RESERVED_PASSWORD("RESERVED_PASSWORD");
    private final String value;

    ValidationErrorsEnum(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ValidationErrorsEnum fromValue(String v) {
        for (ValidationErrorsEnum c: ValidationErrorsEnum.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}


text:
package modtweaker2.mods.botania;

import java.util.List;

import vazkii.botania.api.BotaniaAPI;
import vazkii.botania.api.lexicon.KnowledgeType;
import vazkii.botania.api.lexicon.LexiconCategory;
import vazkii.botania.api.lexicon.LexiconEntry;

public class BotaniaHelper {
	public static LexiconCategory findCatagory(String name)
	{
		List<LexiconCategory> catagories=BotaniaAPI.getAllCategories();
		for(int i=0;i<catagories.size();i++)
		{
			if(catagories.get(i).getUnlocalizedName().equalsIgnoreCase(name))
				return catagories.get(i);
		}
		return null;
	}

	public static LexiconEntry findEntry(String name)
	{
		List<LexiconEntry> entries=BotaniaAPI.getAllEntries();
		for(int i=0;i<entries.size();i++)
		{
			if(entries.get(i).getUnlocalizedName().equalsIgnoreCase(name))
				return entries.get(i);
		}
		return null;
	}

	public static KnowledgeType findKnowledgeType(String name)
	{
		if(BotaniaAPI.knowledgeTypes.containsKey(name))
			return BotaniaAPI.knowledgeTypes.get(name);
		return null;
	}
}


text: grails test-app && cd test/projects/default && grails test-app && cd -