!function(){function O(O,T){for(var n=0,t=O.length;n<t;++n)T(O[n])}function T(T,n,I){var N=T.getCursor(),i=I(T,N),r=i;if(/^[\w$_]*$/.test(i.string)||(i=r={start:N.ch,end:N.ch,string:"",state:i.state,className:":"==i.string?"pig-type":null}),!L)var L=[];L.push(r);var M=function(T,n){function I(O){0!=O.indexOf(i)||function(O,T){if(!Array.prototype.indexOf){for(var n=O.length;n--;)if(O[n]===T)return!0;return!1}return-1!=O.indexOf(T)}(N,O)||N.push(O)}var N=[],i=T.string;if(n){var r,L=n.pop();for("variable"==L.type?r=L.string:"variable-3"==L.type&&(r=":"+L.string);null!=r&&n.length;)r=r[n.pop().string];null!=r&&function(T){":"==T?O(S,I):(O(o,I),O(e,I),O(R,I),O(A,I),O(S,I),O(t,I),O(E,I))}(r)}return N}(i,L);return 1==(M=M.sort()).length&&M.push(" "),{list:M,from:{line:N.line,ch:i.start},to:{line:N.line,ch:i.end}}}CodeMirror.pigHint=function(O){return T(O,0,function(O,T){return O.getTokenAt(T)})};var n="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE",t=n.split(" "),E=n.toLowerCase().split(" "),I="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP",A=I.split(" "),S=I.toLowerCase().split(" "),N="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA  PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER",o=N.split(" ").join("() ").split(" "),e=N.toLowerCase().split(" ").join("() ").split(" "),R="BagSize BinStorage Bloom BuildBloom ConstantSize CubeDimensions DoubleAbs DoubleAvg DoubleBase DoubleMax DoubleMin DoubleRound DoubleSum FloatAbs FloatAvg FloatMax FloatMin FloatRound FloatSum GenericInvoker IntAbs IntAvg IntMax IntMin IntSum InvokeForDouble InvokeForFloat InvokeForInt InvokeForLong InvokeForString Invoker IsEmpty JsonLoader JsonMetadata JsonStorage LongAbs LongAvg LongMax LongMin LongSum MapSize MonitoredUDF Nondeterministic OutputSchema PigStorage PigStreaming StringConcat StringMax StringMin StringSize TextLoader TupleSize Utf8StorageConverter".split(" ").join("() ").split(" ")}();