$ANTLR start "TIME_INTERVAL"
516594
public final void mTIME_INTERVAL() throws RecognitionException {
		try {
			int _type = TIME_INTERVAL;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:5: ( ( ( '0' .. '9' )+ 'd' ) ( ( '0' .. '9' )+ 'h' )? ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 'h' ) ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 'm' ) ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ 's' ) ( ( '0' .. '9' )+ ( 'ms' )? )? | ( ( '0' .. '9' )+ ( 'ms' )? ) )
			int alt53=5;
			alt53 = dfa53.predict(input);
			switch (alt53) {
				case 1 :
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:7: ( ( '0' .. '9' )+ 'd' ) ( ( '0' .. '9' )+ 'h' )? ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:7: ( ( '0' .. '9' )+ 'd' )
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:8: ( '0' .. '9' )+ 'd'
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:8: ( '0' .. '9' )+
					int cnt23=0;
					loop23:
					while (true) {
						int alt23=2;
						int LA23_0 = input.LA(1);
						if ( ((LA23_0 >= '0' && LA23_0 <= '9')) ) {
							alt23=1;
						}

						switch (alt23) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
							{
							if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
								input.consume();
								state.failed=false;
							}
							else {
								if (state.backtracking>0) {state.failed=true; return;}
								MismatchedSetException mse = new MismatchedSetException(null,input);
								recover(mse);
								throw mse;
							}
							}
							break;

						default :
							if ( cnt23 >= 1 ) break loop23;
							if (state.backtracking>0) {state.failed=true; return;}
							EarlyExitException eee = new EarlyExitException(23, input);
							throw eee;
						}
						cnt23++;
					}

					match('d'); if (state.failed) return;
					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:25: ( ( '0' .. '9' )+ 'h' )?
					int alt25=2;
					alt25 = dfa25.predict(input);
					switch (alt25) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:26: ( '0' .. '9' )+ 'h'
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:26: ( '0' .. '9' )+
							int cnt24=0;
							loop24:
							while (true) {
								int alt24=2;
								int LA24_0 = input.LA(1);
								if ( ((LA24_0 >= '0' && LA24_0 <= '9')) ) {
									alt24=1;
								}

								switch (alt24) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt24 >= 1 ) break loop24;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(24, input);
									throw eee;
								}
								cnt24++;
							}

							match('h'); if (state.failed) return;
							}
							break;

					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:43: ( ( '0' .. '9' )+ 'm' )?
					int alt27=2;
					alt27 = dfa27.predict(input);
					switch (alt27) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:44: ( '0' .. '9' )+ 'm'
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:44: ( '0' .. '9' )+
							int cnt26=0;
							loop26:
							while (true) {
								int alt26=2;
								int LA26_0 = input.LA(1);
								if ( ((LA26_0 >= '0' && LA26_0 <= '9')) ) {
									alt26=1;
								}

								switch (alt26) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt26 >= 1 ) break loop26;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(26, input);
									throw eee;
								}
								cnt26++;
							}

							match('m'); if (state.failed) return;
							}
							break;

					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:61: ( ( '0' .. '9' )+ 's' )?
					int alt29=2;
					alt29 = dfa29.predict(input);
					switch (alt29) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:62: ( '0' .. '9' )+ 's'
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:62: ( '0' .. '9' )+
							int cnt28=0;
							loop28:
							while (true) {
								int alt28=2;
								int LA28_0 = input.LA(1);
								if ( ((LA28_0 >= '0' && LA28_0 <= '9')) ) {
									alt28=1;
								}

								switch (alt28) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt28 >= 1 ) break loop28;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(28, input);
									throw eee;
								}
								cnt28++;
							}

							match('s'); if (state.failed) return;
							}
							break;

					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:79: ( ( '0' .. '9' )+ ( 'ms' )? )?
					int alt32=2;
					int LA32_0 = input.LA(1);
					if ( ((LA32_0 >= '0' && LA32_0 <= '9')) ) {
						alt32=1;
					}
					switch (alt32) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:80: ( '0' .. '9' )+ ( 'ms' )?
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:80: ( '0' .. '9' )+
							int cnt30=0;
							loop30:
							while (true) {
								int alt30=2;
								int LA30_0 = input.LA(1);
								if ( ((LA30_0 >= '0' && LA30_0 <= '9')) ) {
									alt30=1;
								}

								switch (alt30) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt30 >= 1 ) break loop30;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(30, input);
									throw eee;
								}
								cnt30++;
							}

							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:92: ( 'ms' )?
							int alt31=2;
							int LA31_0 = input.LA(1);
							if ( (LA31_0=='m') ) {
								alt31=1;
							}
							switch (alt31) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:114:92: 'ms'
									{
									match("ms"); if (state.failed) return;

									}
									break;

							}

							}
							break;

					}

					}
					break;
				case 2 :
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:7: ( ( '0' .. '9' )+ 'h' ) ( ( '0' .. '9' )+ 'm' )? ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:7: ( ( '0' .. '9' )+ 'h' )
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:8: ( '0' .. '9' )+ 'h'
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:8: ( '0' .. '9' )+
					int cnt33=0;
					loop33:
					while (true) {
						int alt33=2;
						int LA33_0 = input.LA(1);
						if ( ((LA33_0 >= '0' && LA33_0 <= '9')) ) {
							alt33=1;
						}

						switch (alt33) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
							{
							if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
								input.consume();
								state.failed=false;
							}
							else {
								if (state.backtracking>0) {state.failed=true; return;}
								MismatchedSetException mse = new MismatchedSetException(null,input);
								recover(mse);
								throw mse;
							}
							}
							break;

						default :
							if ( cnt33 >= 1 ) break loop33;
							if (state.backtracking>0) {state.failed=true; return;}
							EarlyExitException eee = new EarlyExitException(33, input);
							throw eee;
						}
						cnt33++;
					}

					match('h'); if (state.failed) return;
					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:25: ( ( '0' .. '9' )+ 'm' )?
					int alt35=2;
					alt35 = dfa35.predict(input);
					switch (alt35) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:26: ( '0' .. '9' )+ 'm'
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:26: ( '0' .. '9' )+
							int cnt34=0;
							loop34:
							while (true) {
								int alt34=2;
								int LA34_0 = input.LA(1);
								if ( ((LA34_0 >= '0' && LA34_0 <= '9')) ) {
									alt34=1;
								}

								switch (alt34) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt34 >= 1 ) break loop34;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(34, input);
									throw eee;
								}
								cnt34++;
							}

							match('m'); if (state.failed) return;
							}
							break;

					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:43: ( ( '0' .. '9' )+ 's' )?
					int alt37=2;
					alt37 = dfa37.predict(input);
					switch (alt37) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:44: ( '0' .. '9' )+ 's'
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:44: ( '0' .. '9' )+
							int cnt36=0;
							loop36:
							while (true) {
								int alt36=2;
								int LA36_0 = input.LA(1);
								if ( ((LA36_0 >= '0' && LA36_0 <= '9')) ) {
									alt36=1;
								}

								switch (alt36) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt36 >= 1 ) break loop36;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(36, input);
									throw eee;
								}
								cnt36++;
							}

							match('s'); if (state.failed) return;
							}
							break;

					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:61: ( ( '0' .. '9' )+ ( 'ms' )? )?
					int alt40=2;
					int LA40_0 = input.LA(1);
					if ( ((LA40_0 >= '0' && LA40_0 <= '9')) ) {
						alt40=1;
					}
					switch (alt40) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:62: ( '0' .. '9' )+ ( 'ms' )?
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:62: ( '0' .. '9' )+
							int cnt38=0;
							loop38:
							while (true) {
								int alt38=2;
								int LA38_0 = input.LA(1);
								if ( ((LA38_0 >= '0' && LA38_0 <= '9')) ) {
									alt38=1;
								}

								switch (alt38) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt38 >= 1 ) break loop38;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(38, input);
									throw eee;
								}
								cnt38++;
							}

							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:74: ( 'ms' )?
							int alt39=2;
							int LA39_0 = input.LA(1);
							if ( (LA39_0=='m') ) {
								alt39=1;
							}
							switch (alt39) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:115:74: 'ms'
									{
									match("ms"); if (state.failed) return;

									}
									break;

							}

							}
							break;

					}

					}
					break;
				case 3 :
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:7: ( ( '0' .. '9' )+ 'm' ) ( ( '0' .. '9' )+ 's' )? ( ( '0' .. '9' )+ ( 'ms' )? )?
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:7: ( ( '0' .. '9' )+ 'm' )
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:8: ( '0' .. '9' )+ 'm'
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:8: ( '0' .. '9' )+
					int cnt41=0;
					loop41:
					while (true) {
						int alt41=2;
						int LA41_0 = input.LA(1);
						if ( ((LA41_0 >= '0' && LA41_0 <= '9')) ) {
							alt41=1;
						}

						switch (alt41) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
							{
							if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
								input.consume();
								state.failed=false;
							}
							else {
								if (state.backtracking>0) {state.failed=true; return;}
								MismatchedSetException mse = new MismatchedSetException(null,input);
								recover(mse);
								throw mse;
							}
							}
							break;

						default :
							if ( cnt41 >= 1 ) break loop41;
							if (state.backtracking>0) {state.failed=true; return;}
							EarlyExitException eee = new EarlyExitException(41, input);
							throw eee;
						}
						cnt41++;
					}

					match('m'); if (state.failed) return;
					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:25: ( ( '0' .. '9' )+ 's' )?
					int alt43=2;
					alt43 = dfa43.predict(input);
					switch (alt43) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:26: ( '0' .. '9' )+ 's'
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:26: ( '0' .. '9' )+
							int cnt42=0;
							loop42:
							while (true) {
								int alt42=2;
								int LA42_0 = input.LA(1);
								if ( ((LA42_0 >= '0' && LA42_0 <= '9')) ) {
									alt42=1;
								}

								switch (alt42) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt42 >= 1 ) break loop42;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(42, input);
									throw eee;
								}
								cnt42++;
							}

							match('s'); if (state.failed) return;
							}
							break;

					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:43: ( ( '0' .. '9' )+ ( 'ms' )? )?
					int alt46=2;
					int LA46_0 = input.LA(1);
					if ( ((LA46_0 >= '0' && LA46_0 <= '9')) ) {
						alt46=1;
					}
					switch (alt46) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:44: ( '0' .. '9' )+ ( 'ms' )?
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:44: ( '0' .. '9' )+
							int cnt44=0;
							loop44:
							while (true) {
								int alt44=2;
								int LA44_0 = input.LA(1);
								if ( ((LA44_0 >= '0' && LA44_0 <= '9')) ) {
									alt44=1;
								}

								switch (alt44) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt44 >= 1 ) break loop44;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(44, input);
									throw eee;
								}
								cnt44++;
							}

							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:56: ( 'ms' )?
							int alt45=2;
							int LA45_0 = input.LA(1);
							if ( (LA45_0=='m') ) {
								alt45=1;
							}
							switch (alt45) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:116:56: 'ms'
									{
									match("ms"); if (state.failed) return;

									}
									break;

							}

							}
							break;

					}

					}
					break;
				case 4 :
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:7: ( ( '0' .. '9' )+ 's' ) ( ( '0' .. '9' )+ ( 'ms' )? )?
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:7: ( ( '0' .. '9' )+ 's' )
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:8: ( '0' .. '9' )+ 's'
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:8: ( '0' .. '9' )+
					int cnt47=0;
					loop47:
					while (true) {
						int alt47=2;
						int LA47_0 = input.LA(1);
						if ( ((LA47_0 >= '0' && LA47_0 <= '9')) ) {
							alt47=1;
						}

						switch (alt47) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
							{
							if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
								input.consume();
								state.failed=false;
							}
							else {
								if (state.backtracking>0) {state.failed=true; return;}
								MismatchedSetException mse = new MismatchedSetException(null,input);
								recover(mse);
								throw mse;
							}
							}
							break;

						default :
							if ( cnt47 >= 1 ) break loop47;
							if (state.backtracking>0) {state.failed=true; return;}
							EarlyExitException eee = new EarlyExitException(47, input);
							throw eee;
						}
						cnt47++;
					}

					match('s'); if (state.failed) return;
					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:25: ( ( '0' .. '9' )+ ( 'ms' )? )?
					int alt50=2;
					int LA50_0 = input.LA(1);
					if ( ((LA50_0 >= '0' && LA50_0 <= '9')) ) {
						alt50=1;
					}
					switch (alt50) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:26: ( '0' .. '9' )+ ( 'ms' )?
							{
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:26: ( '0' .. '9' )+
							int cnt48=0;
							loop48:
							while (true) {
								int alt48=2;
								int LA48_0 = input.LA(1);
								if ( ((LA48_0 >= '0' && LA48_0 <= '9')) ) {
									alt48=1;
								}

								switch (alt48) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
									{
									if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
										input.consume();
										state.failed=false;
									}
									else {
										if (state.backtracking>0) {state.failed=true; return;}
										MismatchedSetException mse = new MismatchedSetException(null,input);
										recover(mse);
										throw mse;
									}
									}
									break;

								default :
									if ( cnt48 >= 1 ) break loop48;
									if (state.backtracking>0) {state.failed=true; return;}
									EarlyExitException eee = new EarlyExitException(48, input);
									throw eee;
								}
								cnt48++;
							}

							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:38: ( 'ms' )?
							int alt49=2;
							int LA49_0 = input.LA(1);
							if ( (LA49_0=='m') ) {
								alt49=1;
							}
							switch (alt49) {
								case 1 :
									// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:117:38: 'ms'
									{
									match("ms"); if (state.failed) return;

									}
									break;

							}

							}
							break;

					}

					}
					break;
				case 5 :
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:118:7: ( ( '0' .. '9' )+ ( 'ms' )? )
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:118:7: ( ( '0' .. '9' )+ ( 'ms' )? )
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:118:8: ( '0' .. '9' )+ ( 'ms' )?
					{
					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:118:8: ( '0' .. '9' )+
					int cnt51=0;
					loop51:
					while (true) {
						int alt51=2;
						int LA51_0 = input.LA(1);
						if ( ((LA51_0 >= '0' && LA51_0 <= '9')) ) {
							alt51=1;
						}

						switch (alt51) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:
							{
							if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
								input.consume();
								state.failed=false;
							}
							else {
								if (state.backtracking>0) {state.failed=true; return;}
								MismatchedSetException mse = new MismatchedSetException(null,input);
								recover(mse);
								throw mse;
							}
							}
							break;

						default :
							if ( cnt51 >= 1 ) break loop51;
							if (state.backtracking>0) {state.failed=true; return;}
							EarlyExitException eee = new EarlyExitException(51, input);
							throw eee;
						}
						cnt51++;
					}

					// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:118:20: ( 'ms' )?
					int alt52=2;
					int LA52_0 = input.LA(1);
					if ( (LA52_0=='m') ) {
						alt52=1;
					}
					switch (alt52) {
						case 1 :
							// src/main/resources/org/drools/compiler/lang/DRL5Lexer.g:118:20: 'ms'
							{
							match("ms"); if (state.failed) return;

							}
							break;

					}

					}

					}
					break;

			}
			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
410579
def tointerval(s):
    
    if isinstance(s, basestring):
        m = coord_re.search(s)
        if m.group('strand'):
            return pybedtools.create_interval_from_list([
                m.group('chrom'),
                m.group('start'),
                m.group('stop'),
                '.',
                '0',
                m.group('strand')])
        else:
            return pybedtools.create_interval_from_list([
                m.group('chrom'),
                m.group('start'),
                m.group('stop'),
            ])
    return s
1132351
public final void mTIME_STRING_FUN_NAME() throws RecognitionException {
        try {
            int _type = TIME_STRING_FUN_NAME;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // EventFilter.g:50:22: ( 'time-string' )
            // EventFilter.g:50:24: 'time-string'
            {
            match("time-string"); 



            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
758247
def parsetime(text):
    '''
    

    '''
    mins, maxs = text.split('-', 1)
    minv = s_time.parse(mins)
    maxv = s_time.parse(maxs, base=minv)
    return minv, maxv
64171
def schedule(options)
      raise "Couldn't parse start time from attributes" if options[:at].nil?
      raise "Couldn't parse interval from attributes" unless options[:every].nil? || options[:every].is_a?(AS::Duration)

      at_ltz = Time.parse(options[:at]) || Time.now
      at_utc = Time.utc(*at_ltz) || Date.today.to_time.utc

      @metadata[:schedule] = {
        at:    at_utc,
        every: options[:every]
      }
    end
310491
function parseDoubleGroupedInterval(){
  var options = Array.prototype.slice.call(arguments);
  if (!options[0]) throw 'Requested parser requires a sequential list (array) of properties to target as a second argument';
  return function(res){
    var dataset = new Dataset()
      .type('double-grouped-interval');
    each(res.result, function(record, i){
      var index = options[1] && options[1] === 'timeframe.end' ? record.timeframe.end : record.timeframe.start;
      each(record['value'], function(value, j){
        var label = value[options[0][0]] + ' ' + value[options[0][1]];
        dataset.set([ label, index ], value.result);
      });
    });
    return dataset;
  }
}
95446
def parse_time(t):
    
    if isinstance(t, (str, unicode)):
        b = re_time.match(t)
        if b:
            v, unit = int(b.group(1)), b.group(2)
            if unit == 's':
                return v*1000
            elif unit == 'm':
                return v*60*1000
            elif unit == 'h':
                return v*60*60*1000
            else:
                return v
        else:
            raise TimeFormatError(t)
    elif isinstance(t, (int, long)):
        return t
    else:
        raise TimeFormatError(t)
445792
function (inst, timeVal) {
            var retVal = new Object();
            retVal.hours = -1;
            retVal.minutes = -1;

            if(!timeVal)
                return '';

            var timeSeparator = this._get(inst, 'timeSeparator'),
                amPmText = this._get(inst, 'amPmText'),
                showHours = this._get(inst, 'showHours'),
                showMinutes = this._get(inst, 'showMinutes'),
                optionalMinutes = this._get(inst, 'optionalMinutes'),
                showPeriod = (this._get(inst, 'showPeriod') == true),
                p = timeVal.indexOf(timeSeparator);

            // check if time separator found
            if (p != -1) {
                retVal.hours = parseInt(timeVal.substr(0, p), 10);
                retVal.minutes = parseInt(timeVal.substr(p + 1), 10);
            }
            // check for hours only
            else if ( (showHours) && ( !showMinutes || optionalMinutes ) ) {
                retVal.hours = parseInt(timeVal, 10);
            }
            // check for minutes only
            else if ( ( ! showHours) && (showMinutes) ) {
                retVal.minutes = parseInt(timeVal, 10);
            }

            if (showHours) {
                var timeValUpper = timeVal.toUpperCase();
                if ((retVal.hours < 12) && (showPeriod) && (timeValUpper.indexOf(amPmText[1].toUpperCase()) != -1)) {
                    retVal.hours += 12;
                }
                // fix for 12 AM
                if ((retVal.hours == 12) && (showPeriod) && (timeValUpper.indexOf(amPmText[0].toUpperCase()) != -1)) {
                    retVal.hours = 0;
                }
            }

            return retVal;
        }
1137079
function grammarSyntaxError(matchFailure) {
  var e = new Error();
  Object.defineProperty(e, 'message', {get: function() { return matchFailure.message; }});
  Object.defineProperty(e, 'shortMessage', {get: function() {
    return 'Expected ' + matchFailure.getExpectedText();
  }});
  e.interval = matchFailure.getInterval();
  return e;
}
1244223
public final void mT__121() throws RecognitionException {
		try {
			int _type = T__121;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:102:8: ( '{' )
			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:102:10: '{'
			{
			match('{'); 
			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
389980
public final void mID() throws RecognitionException {
        try {
            int _type = ID;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // com/dyuproject/protostuff/parser/ProtoLexer.g:231:5: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )* )
            // com/dyuproject/protostuff/parser/ProtoLexer.g:231:9: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
            {
            if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
                input.consume();

            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;}

            // com/dyuproject/protostuff/parser/ProtoLexer.g:231:33: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
            loop2:
            do {
                int alt2=2;
                switch ( input.LA(1) ) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':
                    {
                    alt2=1;
                    }
                    break;

                }

                switch (alt2) {
            	case 1 :
            	    // com/dyuproject/protostuff/parser/ProtoLexer.g:
            	    {
            	    if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
            	        input.consume();

            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;}


            	    }
            	    break;

            	default :
            	    break loop2;
                }
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        }
    }
564431
static String getIntervalPattern(ChronoParser<?> parser) {

        AttributeQuery attrs = parser.getAttributes();

        if (attrs.contains(Attributes.LANGUAGE)) {
            Locale locale = attrs.get(Attributes.LANGUAGE);
            return CalendarText.patternForInterval(locale);
        }

        return "{0}/{1}";

    }
56326
def interval_timed(interval):
    '''
    '''
    def decorator(f):
        @wraps(f)
        def wrapper(*args, **kwargs):
            stopped = Event()

            def loop():  # executed in another thread
                while not stopped.wait(interval):  # until stopped
                    f(*args, **kwargs)

            t = Thread(name='IntervalTimerThread', target=loop)
            t.daemon = True  # stop if the program exits
            t.start()
            return stopped.set
        return wrapper
    return decorator
904569
def compile_timedelta(rule):
    
    if isinstance(rule.value, datetime.timedelta):
        return rule
    try:
        # Try numeric type
        return TimedeltaRule(datetime.timedelta(seconds = int(rule.value)))
    except:
        pass
    # Try RFC3339 timestamp string
    res = DURATION_RE.match(str(rule.value))
    if res is not None:
        days, hours, minutes, seconds = (int(n or 0) for n in res.group('days','hrs','mins','secs'))
        return TimedeltaRule(datetime.timedelta(days = days, hours = hours, minutes = minutes, seconds = seconds))
    raise ValueError("Wrong timedelta format '{}'".format(rule.value))
212790
public final void mPERIOD() throws RecognitionException {
		try {
			int _type = PERIOD;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// druidG.g:617:8: ( ( 'PERIOD' ) )
			// druidG.g:617:10: ( 'PERIOD' )
			{
			// druidG.g:617:10: ( 'PERIOD' )
			// druidG.g:617:11: 'PERIOD'
			{
			match("PERIOD"); 

			}

			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
539492
def QA_util_time_stamp(time_):
    
    if len(str(time_)) == 10:
        # yyyy-mm-dd格式
        return time.mktime(time.strptime(time_, '%Y-%m-%d'))
    elif len(str(time_)) == 16:
        # yyyy-mm-dd hh:mm格式
        return time.mktime(time.strptime(time_, '%Y-%m-%d %H:%M'))
    else:
        timestr = str(time_)[0:19]
        return time.mktime(time.strptime(timestr, '%Y-%m-%d %H:%M:%S'))
455444
function parseGroupedInterval(){
  var options = Array.prototype.slice.call(arguments);
  return function(res){
    var dataset = new Dataset()
      .type('grouped-interval');
    each(res.result, function(record, i){
      var index = options[0] && options[0] === 'timeframe.end' ? record.timeframe.end : record.timeframe.start;
      if (record.value.length) {
        each(record.value, function(group, j){
          var label;
          each(group, function(value, key){
            if (key !== 'result') {
              label = key;
            }
          });
          dataset.set([ String(group[label]), index ], group.result);
        });
      }
      else {
        dataset.appendRow(index);
      }
    });
    return dataset;
  }
}