100+ results results for 're.compile repo:wantsomechocolate/MosaicMaker' (877 ms)
23# link.exe. 24_LINK_EXE_OUT_ARG = re.compile('/OUT:(?P<out>.+)$', re.IGNORECASE) 25gcycsbplot.py https://gitlab.com/abushoeb/gc-v1 | Python | 332 lines
53 54 line_re = re.compile(regex, re.I) 55 lines = ycsb_file.split("\n") 130 regex = "ops/sec;" 131 line_re = re.compile(regex, re.I) 132 lines = ycsb_file.split("\n")gchelpers.py https://gitlab.com/abushoeb/gc-v1 | Python | 539 lines
147 cmd = "ps axo pid,command" 148 ps_re = re.compile(".*" + process_name + ".*") 149 out, err = execute_remote_command_sync(host, USERNAME, cmd)design_analysis.py https://gitlab.com/vim-IDE/python-mode | Python | 331 lines
27# regexp for ignored argument name 28IGNORED_ARGUMENT_NAMES = re.compile('_.*') 29views.py https://gitlab.com/cyrilbrulebois/ishtar | Python | 261 lines
46 47RE_YEAR_INDEX = re.compile(r"([1-2][0-9]{3})-([0-9]+)") # eg.: 2014-123 48introspection.py https://gitlab.com/Guy1394/django | Python | 273 lines
7 8field_size_re = re.compile(r'^\s*(?:var)?char\s*\(\s*(\d+)\s*\)\s*$') 9FieldInfo = namedtuple('FieldInfo', FieldInfo._fields + ('default',))build_perf.py https://gitlab.com/adam.lukaitis/fplutil | Python | 822 lines
44## build perf and perfhost. 45REPO_PROJECTS_RE = re.compile( 46 r'(' 67## Regular expression which matches the OSX host toolchain projects. 68REPO_PROJECTS_DARWIN_HOST_GCC_RE = re.compile( 69 r'^prebuilts/gcc/darwin-x86/host/.*') 76## check. 77MAIN_MK_JAVA_VERSION_RE = re.compile( 78 r'[^#]?ifn?eq *\(.*\$\((java_version|java_version_str|javac_version|' 81## Regular expression which matches a Android lunch (build tool) option string. 82LUNCH_OPTION_RE = re.compile(r'\s*([0-9]+)\.\s*([a-zA-Z0-9_-]+)') 83 102## Regular expression which matches API levels in BUILD_NUMBERS_URL. 103ANDROID_API_LEVEL_RE = re.compile(r'API level ([0-9]+)($|, NDK ([0-9]+))') 104android.py https://gitlab.com/adam.lukaitis/fplutil | Python | 1342 lines
67 68_MATCH_DEVICES = re.compile(r'^List of devices attached\s*') 69_MATCH_PACKAGE = re.compile(r'^package:(.*)') 69_MATCH_PACKAGE = re.compile(r'^package:(.*)') 70_GTEST_FAILED = re.compile(r'(\[\s*FAILEDs\*\]|.*FAILED TESTS)') 71android_ndk_perf.py https://gitlab.com/adam.lukaitis/fplutil | Python | 1467 lines
78HOST_SYSTEM_TO_OS_NAME = ( 79 (re.compile(r'Darwin'), 'darwin'), 80 (re.compile(r'Linux'), 'linux'), 80 (re.compile(r'Linux'), 'linux'), 81 (re.compile(r'Windows'), 'windows'), 82 (re.compile(r'CYGWIN.*'), 'windows') 163## "perf buildid-list --with-hits -i ${input_file}". 164PERF_BUILDID_LIST_MATCH_OBJ_RE = re.compile(r'^[^ ]* ([^\[][^ ]*[^\]])') 165 167## /sys/devices/system/cpu. 168SYS_DEVICES_CPU_NUMBER_RE = re.compile( 169 r'/sys/devices/system/cpu/cpu([0-9]+)/.*') 172## e.g the output of "perf script -D". 173PERF_DUMP_EVENT_SAMPLE_RE = re.compile( 174 r'^(?P<unknown>\d+)\s+'element.py https://gitlab.com/adam.lukaitis/muzei | Python | 1334 lines
9 10whitespace_re = re.compile("\s+") 11 66 67 CHARSET_RE = re.compile("((^|;)\s*charset=)([^;]*)", re.M) 68dammit.py https://gitlab.com/adam.lukaitis/muzei | Python | 829 lines
44 45xml_encoding_re = re.compile( 46 '^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode(), re.I) 46 '^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode(), re.I) 47html_meta_re = re.compile( 48 '<\s*meta[^>]+charset\s*=\s*["\']?([^>]*?)[ /;\'">]'.encode(), re.I) 68 re_definition = "[%s]" % "".join(characters_for_re) 69 return lookup, reverse_lookup, re.compile(re_definition) 70 (CHARACTER_TO_HTML_ENTITY, HTML_ENTITY_TO_CHARACTER, 80 81 BARE_AMPERSAND_OR_BRACKET = re.compile("([<>]|" 82 "&(?!#\d+;|#x[0-9a-fA-F]+;|\w+;)" 84 85 AMPERSAND_OR_BRACKET = re.compile("([<>&])") 86content.py https://gitlab.com/adam.lukaitis/tango-examples-c | Python | 584 lines
27# 28re_code_start = re.compile( r"(\s*){\s*$" ) 29re_code_end = re.compile( r"(\s*)}\s*$" ) 34# 35re_identifier = re.compile( r'(\w*)' ) 36 41# 42re_header_macro = re.compile( r'^#define\s{1,}(\w{1,}_H)\s{1,}<(.*)>' ) 43 227# 228re_field = re.compile( r"\s*(\w*|\w(\w|\.)*\w)\s*::" ) 229variables.py https://gitlab.com/vim-IDE/python-mode | Python | 1069 lines
36 37SPECIAL_OBJ = re.compile("^_{2}[a-z]+_{2}$") 38python3.py https://gitlab.com/vim-IDE/python-mode | Python | 581 lines
26 27_ZERO = re.compile("^0+$") 28base.py https://gitlab.com/vim-IDE/python-mode | Python | 1140 lines
52# regex for class/function/variable/constant name 53CLASS_NAME_RGX = re.compile('[A-Z_][a-zA-Z0-9]+$') 54MOD_NAME_RGX = re.compile('(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$') 54MOD_NAME_RGX = re.compile('(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$') 55CONST_NAME_RGX = re.compile('(([A-Z_][A-Z0-9_]*)|(__.*__))$') 56COMP_VAR_RGX = re.compile('[A-Za-z_][A-Za-z0-9_]*$') 56COMP_VAR_RGX = re.compile('[A-Za-z_][A-Za-z0-9_]*$') 57DEFAULT_NAME_RGX = re.compile('[a-z_][a-z0-9_]{2,30}$') 58CLASS_ATTRIBUTE_RGX = re.compile(r'([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$') 59# do not require a doc string on system methods 60NO_REQUIRED_DOC_RGX = re.compile('__.*__') 61REVERSED_METHODS = (('__getitem__', '__len__'),utils.py https://gitlab.com/vim-IDE/python-mode | Python | 924 lines
74 75OPTION_RGX = re.compile(r'\s*#.*\bpylint:(.*)') 76specifiers.py https://gitlab.com/vim-IDE/python-mode | Python | 784 lines
225 226 _regex = re.compile( 227 r""" 286 287 _regex = re.compile( 288 r"""__init__.py https://gitlab.com/vim-IDE/python-mode | Python | 1436 lines
155 def __iter__(self): 156 component_re = re.compile(r'(\d+ | [a-z]+ | \.| -)', re.VERBOSE) 157 replace = { 482 483macosVersionString = re.compile(r"macosx-(\d+)\.(\d+)-(.*)") 484darwinVersionString = re.compile(r"darwin-(\d+)\.(\d+)\.(\d+)-(.*)")rope.py https://gitlab.com/vim-IDE/python-mode | Python | 915 lines
60 61FROM_RE = re.compile(r'^\s*from\s+[\.\w\d_]+$') 62autopep8.py https://gitlab.com/vim-IDE/python-mode | Python | 1475 lines
76 77PYTHON_SHEBANG_REGEX = re.compile(r'^#!.*\bpython[23]?\b\s*$') 78exportlib.py https://gitlab.com/Aaeinstein54/specfem3d | Python | 855 lines
76 import re 77 rule_st=re.compile("(.+)_[0-9]+\.") 78 rule_ex=re.compile(".+_[0-9]+\.(.+)") 78 rule_ex=re.compile(".+_[0-9]+\.(.+)") 79 rule_int=re.compile(".+_([0-9]+)\.") 80 filenames=glob.glob(cubfiles) 237 # 238 rule_st=re.compile("(.+)_[0-9]+\.") 239 rule_ex=re.compile(".+_[0-9]+\.(.+)") 239 rule_ex=re.compile(".+_[0-9]+\.(.+)") 240 rule_int=re.compile(".+_([0-9]+)\.") 241 boundary_dict={}pcre.m https://gitlab.com/Aaeinstein54/linguist | Objective C | 511 lines
98 n erropt,ref,err,erroffset,code 99 s code=$&pcre.compile(.pattern,$g(options),.erropt,.ref,.err,.erroffset,$g(locale),$g(mlimit,0),$g(reclimit,0)) 100 s:code $ec=",U"_(-code)_","pastWeather.py https://gitlab.com/abushoeb/ghadoop-v1 | Python | 589 lines
147 148 timeRe = re.compile('<td valign="middle" class="inDentA".*<b>(.*)</b></font></td>') 149 tempRe = re.compile('<td valign="middle" align="left".*>(.+)<b>(-?\d+)°F</b></td>') 149 tempRe = re.compile('<td valign="middle" align="left".*>(.+)<b>(-?\d+)°F</b></td>') 150 feltRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+"><b>(\-*\d+)°F</b></td>') 151 dewpRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+">(\-*\d+)°F</td>') #<td align="center" valign="middle" class="blueFont10" bgcolor="#f1f4f5">30°F</td> 151 dewpRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+">(\-*\d+)°F</td>') #<td align="center" valign="middle" class="blueFont10" bgcolor="#f1f4f5">30°F</td> 152 humiRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+">(\d+)%</td>') #<td align="center" valign="middle" class="blueFont10" bgcolor="#f1f4f5">92%</td> 153 visiRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+">(\d+\.\d+)<BR>miles</td>') #<td align="center" valign="middle" class="blueFont10" bgcolor="#f1f4f5">9.0<BR>miles</td> 153 visiRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+">(\d+\.\d+)<BR>miles</td>') #<td align="center" valign="middle" class="blueFont10" bgcolor="#f1f4f5">9.0<BR>miles</td> 154 presRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+">(\d+\.\d+)$') #<td align="center" valign="middle" class="blueFont10" bgcolor="#f1f4f5">30.01 155 windRe = re.compile('<td align="center" valign="middle" class="blueFont10" bgcolor="#.+">(.+)</td>') #<td align="center" valign="middle" class="blueFont10" bgcolor="#f1f4f5">CALM</td>msvs.py https://gitlab.com/boxnia/NFU_MOVIL | Python | 1384 lines
44# letters. 45VALID_MSVS_GUID_CHARS = re.compile(r'^[A-F0-9\-]+$') 46 123 config = call.communicate()[0] 124 username_re = re.compile(r'^User name\s+(\S+)', re.MULTILINE) 125 username_match = username_re.search(config) 127 username = username_match.group(1) 128 domain_re = re.compile(r'^Logon domain\s+(\S+)', re.MULTILINE) 129 domain_match = domain_re.search(config)xcode_emulation.py https://gitlab.com/boxnia/NFU_MOVIL | Python | 1256 lines
46 # Match variable like $(ARCHS_STANDARD). 47 variable_pattern = re.compile(r'\$\([a-zA-Z_][a-zA-Z0-9_]*\)$') 48 181 # Used by _AdjustLibrary to match .a and .dylib entries in libraries. 182 self.library_re = re.compile(r'^lib([^/]+)\.(a|dylib)$') 183msvs_emulation.py https://gitlab.com/boxnia/NFU_MOVIL | Python | 1087 lines
19 20windows_quoter_regex = re.compile(r'(\\*)"') 21mac_tool.py https://gitlab.com/boxnia/NFU_MOVIL | Python | 610 lines
80 '--output-format', 'human-readable-text', '--compile', dest, source] 81 ibtool_section_re = re.compile(r'/\*.*\*/') 82 ibtool_re = re.compile(r'.*note:.*is clipping its content') 155 # the file. 156 IDENT_RE = re.compile(r'[/\s]') 157 for key in os.environ: 230 symbols'.""" 231 libtool_re = re.compile(r'^.*libtool: file: .* has no symbols$') 232 libtool_re5 = re.compile(quoprimime.py https://gitlab.com/atom-k/android-plus-plus | Python | 336 lines
56 57hqre = re.compile(r'[^-a-zA-Z0-9!*+/ ]') 58bqre = re.compile(r'[^ !-<>-~\t]')utils.py https://gitlab.com/msapiro/hyperkitty | Python | 196 lines
67 68IN_BRACKETS_RE = re.compile("[^<]*<([^>]+)>.*") 69build.py https://gitlab.com/Drulenium-test/pantheon-travis | Python | 468 lines
319 # Delete this in a few months if the licences don't return. 320 LICENSE = re.compile("""/\\* 321do_dp_plots.py git://pkgs.fedoraproject.org/E | Python | 407 lines
67 68cvc_sc_pat = re.compile("storecomm_[^i].*nf_ai") 69cvc_scf_pat = re.compile("storecomm_[^i].*sf_ai") 69cvc_scf_pat = re.compile("storecomm_[^i].*sf_ai") 70e_sc_pat = re.compile("storecomm_[^i].*sf_ai") 71e_sc_ni_pat = re.compile("storecomm_[^i].*sf_ni") 72 73cvc_si_pat = re.compile("storeinv_[^i].*nf_ai") 74cvc_sif_pat = re.compile("storeinv_[^i].*sf_ai") 74cvc_sif_pat = re.compile("storeinv_[^i].*sf_ai") 75e_si_pat = re.compile("storeinv_[^i].*sf_ai") 76 76 77cvc_sw_pat = re.compile("swap_[^i].*nf_ai") 78cvc_swf_pat = re.compile("swap_[^i].*sf_ai")__init__.py https://gitlab.com/llunved/sos | Python | 456 lines
76 """ 77 reg = re.compile(regex_name, flags) 78 return [pkg for pkg in self.all_pkgs().keys() if reg.match(pkg)]__init__.py https://gitlab.com/ismailam/openexport | Python | 298 lines
20 21_striptags_re = re.compile(r'(<!--.*?-->|<[^>]*>)') 22_entity_re = re.compile(r'&([^;]+);')dl_cleanup.py https://gitlab.com/gl-xinshouyong/1407-mifi-customer-tmp | Python | 231 lines
89versionRegex = ( 90 (re.compile(r"(.+)[-_](\d+)\.(\d+)\.(\d+)\.(\d+)"), parseVer_1234), # xxx-1.2.3.4 91 (re.compile(r"(.+)[-_](\d\d\d\d)-?(\d\d)-?(\d\d)"), parseVer_ymd), # xxx-YYYY-MM-DD 91 (re.compile(r"(.+)[-_](\d\d\d\d)-?(\d\d)-?(\d\d)"), parseVer_ymd), # xxx-YYYY-MM-DD 92 (re.compile(r"(.+)[-_]([0-9a-fA-F]{40,40})"), parseVer_GIT), # xxx-GIT_SHASUM 93 (re.compile(r"(.+)[-_](\d+)\.(\d+)\.(\d+)(\w?)"), parseVer_123), # xxx-1.2.3a 93 (re.compile(r"(.+)[-_](\d+)\.(\d+)\.(\d+)(\w?)"), parseVer_123), # xxx-1.2.3a 94 (re.compile(r"(.+)[-_](\d+)_(\d+)_(\d+)"), parseVer_123), # xxx-1_2_3 95 (re.compile(r"(.+)[-_](\d+)\.(\d+)(\w?)"), parseVer_12), # xxx-1.2a 95 (re.compile(r"(.+)[-_](\d+)\.(\d+)(\w?)"), parseVer_12), # xxx-1.2a 96 (re.compile(r"(.+)[-_]r?(\d+)"), parseVer_r), # xxx-r1111 97) 99blacklist = [ 100 ("linux", re.compile(r"linux-.*")), 101 ("gcc", re.compile(r"gcc-.*")),tags.py https://gitlab.com/18runt88/uliweb | Python | 286 lines
8 9r_links = re.compile('<link\s+.*?\s*href\s*=\s*"?(.*?)["\s>]|<script\s+.*?\s*src\s*=\s*"?(.*?)["\s>]', re.I) 10r_head = re.compile('(?i)<head>(.*?)</head>', re.DOTALL) 10r_head = re.compile('(?i)<head>(.*?)</head>', re.DOTALL) 11r_top = re.compile('<!--\s*toplinks\s*-->') 12r_bottom = re.compile('<!--\s*bottomlinks\s*-->')splitter.py https://gitlab.com/18runt88/ansible | Python | 273 lines
27_HEXCHAR = '[a-fA-F0-9]' 28_ESCAPE_SEQUENCE_RE = re.compile(r''' 29 ( \\U{0} # 8-digit hex escapessessions.py https://gitlab.com/ismailam/openexport | Python | 352 lines
70 71_sha1_re = re.compile(r'^[a-f0-9]{40}$') 72 287 before, after = self.filename_template.split('%s', 1) 288 filename_re = re.compile(r'%s(.{5,})%s$' % (re.escape(before), 289 re.escape(after)))zmatrix.py https://gitlab.com/oschuett/ase | Python | 247 lines
11# split on newlines or semicolons 12_re_linesplit = re.compile(r'\n|;') 13# split definitions on whitespace or on "=" (possibly also with whitespace) 13# split definitions on whitespace or on "=" (possibly also with whitespace) 14_re_defs = re.compile(r'\s*=\s*|\s+') 15validators.py https://gitlab.com/ismailam/openexport | Python | 561 lines
265 if isinstance(regex, string_types): 266 regex = re.compile(regex, flags) 267 self.regex = regexutils.py https://gitlab.com/ismailam/openexport | Python | 628 lines
27 28_format_re = re.compile(r'\$(?:(%s)|\{(%s)\})' % (('[a-zA-Z_][a-zA-Z0-9_]*',) * 2)) 29_entity_re = re.compile(r'&([^;]+);') 29_entity_re = re.compile(r'&([^;]+);') 30_filename_ascii_strip_re = re.compile(r'[^A-Za-z0-9_.-]') 31_windows_device_files = ('CON', 'AUX', 'COM1', 'COM2', 'COM3', 'COM4', 'LPT1', 140 141 _entity_re = re.compile(r'&([^;]+);') 142 _entities = name2codepoint.copy()compiler.py https://gitlab.com/ismailam/openexport | Python | 1389 lines
51 52LEGAL_CHARACTERS = re.compile(r'^[A-Z0-9_$]+$', re.I) 53ILLEGAL_INITIAL_CHARACTERS = set([str(x) for x in range(0, 10)]).union(['$']) 54 55BIND_PARAMS = re.compile(r'(?<![:\w\$\x5c]):([\w\$]+)(?![:\w\$])', re.UNICODE) 56BIND_PARAMS_ESC = re.compile(r'\x5c(:[\w\$]*)(?![:\w\$])', re.UNICODE)wheel.py https://gitlab.com/ismailam/openexport | Python | 976 lines
70 71FILENAME_RE = re.compile(r''' 72(?P<nm>[^-]+) 80 81NAME_VERSION_RE = re.compile(r''' 82(?P<nm>[^-]+) 86 87SHEBANG_RE = re.compile(br'\s*#![^\r\n]*') 88SHEBANG_DETAIL_RE = re.compile(br'^(\s*#!("[^"]+"|\S+))\s+(.*)$')util.py https://gitlab.com/ismailam/openexport | Python | 1536 lines
47COMMA = r'\s*,\s*' 48COMMA_RE = re.compile(COMMA) 49 73 CONSTRAINTS + ')?$') 74REQUIREMENT_RE = re.compile(REQUIREMENT) 75 79RELOP_IDENT = '(?P<op>' + RELOP + r')\s*(?P<vn>' + VERSPEC + ')' 80RELOP_IDENT_RE = re.compile(RELOP_IDENT) 81compat.py https://gitlab.com/ismailam/openexport | Python | 1102 lines
49 import re 50 _userprog = re.compile('^(.*)@(.*)$') 51 134 135 pat = re.compile(r'\A' + r'\.'.join(pats) + r'\Z', re.IGNORECASE) 136 return pat.match(hostname) 352 353 cookie_re = re.compile("coding[:=]\s*([-\w.]+)") 354__init__.py https://gitlab.com/ismailam/openexport | Python | 1001 lines
51 52_camelcase_re = re.compile(r'([A-Z]+)(?=[a-z0-9])') 53_signals = Namespace()parser.py https://gitlab.com/Guy1394/kitsune | Python | 495 lines
26 'section'] 27TEMPLATE_ARG_REGEX = re.compile('{{{([^{]+?)}}}') 28 96PATTERNS = [ 97 (re.compile(pattern, re.DOTALL), replacement) for 98 pattern, replacement in ( 208 209 _FOR_OR_CLOSER = re.compile(r'(\s*)' 210 r'(\{for(?: +([^\}]*))?\}|{/for})' 293 # on a line by itself, so tolerate and consume that foolishness: 294 _PARSED_STRIPPED_FOR = re.compile( 295 # Whitespace, a {for} token, then more whitespace (including <br>s): 302 r'|\x07(\d+)\x07') 303 _PARSED_STRIPPED_FOR_CLOSER = re.compile( 304 # Similar to above, a {/for} token wrapped in <p> and whitespace:models.py https://gitlab.com/Guy1394/kitsune | Python | 641 lines
32 33SHA1_RE = re.compile('^[a-f0-9]{40}$') 34CONTRIBUTOR_GROUP = 'Registered as contributor'forms.py https://gitlab.com/Guy1394/kitsune | Python | 428 lines
44# Enforces at least one digit and at least one alpha character. 45password_re = re.compile(r'(?=.*\d)(?=.*[a-zA-Z])') 46app.py https://gitlab.com/Guy1394/gaia | Python | 465 lines
83 # Pattern for import sim contacts message 84 _pattern_contacts = re.compile("^No contacts detected on SIM to import$|^Imported one contact$|^Imported [0-9]+ contacts$") 85 _pattern_contacts_0 = re.compile("^No contacts detected on SIM to import$") 85 _pattern_contacts_0 = re.compile("^No contacts detected on SIM to import$") 86 _pattern_contacts_1 = re.compile("^Imported one contact$") 87 _pattern_contacts_N = re.compile("^Imported ([0-9]+) contacts$")tests.py https://gitlab.com/Guy1394/django | Python | 1102 lines
122 paths = [] 123 first_package_re = re.compile(r'(^[^\.]+)\.') 124 for backend in settings.DATABASES.values():cache.py https://gitlab.com/Guy1394/django | Python | 373 lines
35 36cc_delim_re = re.compile(r'\s*,\s*') 37client.py https://gitlab.com/Guy1394/django | Python | 693 lines
36MULTIPART_CONTENT = 'multipart/form-data; boundary=%s' % BOUNDARY 37CONTENT_TYPE_RE = re.compile('.*; charset=([\w\d-]+);?') 38base.py https://gitlab.com/Guy1394/django | Python | 1086 lines
112# delimiters 113tag_re = (re.compile('(%s.*?%s|%s.*?%s|%s.*?%s)' % 114 (re.escape(BLOCK_TAG_START), re.escape(BLOCK_TAG_END),compiler.py https://gitlab.com/Guy1394/django | Python | 1137 lines
30 self.klass_info = None 31 self.ordering_parts = re.compile(r'(.*)\s(ASC|DESC)(.*)') 32 self.subquery = Falseoperations.py https://gitlab.com/Guy1394/django | Python | 449 lines
113 # This regexp matches all time zone names from the zoneinfo database. 114 _tzname_re = re.compile(r'^[\w/:+-]+$') 115base.py https://gitlab.com/Guy1394/django | Python | 366 lines
85# http://dev.mysql.com/doc/refman/5.0/en/news.html . 86server_version_re = re.compile(r'(\d{1,2})\.(\d{1,2})\.(\d{1,2})') 87validators.py https://gitlab.com/Guy1394/django | Python | 425 lines
22 if isinstance(regex, six.string_types): 23 return re.compile(regex, flags) 24 else:operations.py https://gitlab.com/Guy1394/django | Python | 382 lines
55 geom_func_prefix = 'ST_' 56 version_regex = re.compile(r'^(?P<major>\d)\.(?P<minor1>\d)\.(?P<minor2>\d+)') 57 354 """ 355 proj_regex = re.compile(r'(\d+)\.(\d+)\.(\d+)') 356 proj_ver_str = self.postgis_proj_http.py https://gitlab.com/Mashamba/rethinkdb | Python | 980 lines
41_cookie_charset = 'latin1' 42_accept_re = re.compile(r'([^\s;,]+)(?:[^,]*?;\s*q=(\d*(?:\.\d+)?))?') 43_token_chars = frozenset("!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 44 '^_`abcdefghijklmnopqrstuvwxyz|~') 45_etag_re = re.compile(r'([Ww]/)?(?:"(.*?)"|(.*?))(?:\s*,\s*|$)') 46_unsafe_header_chars = set('()<>@,;:\"/[]?={} \t') 47_quoted_string_re = r'"[^"\\]*(?:\\.[^"\\]*)*"' 48_option_header_piece_re = re.compile(r';\s*(%s|[^\s;=]+)\s*(?:=\s*(%s|[^;]+))?\s*' % 49 (_quoted_string_re, _quoted_string_re))ext.py https://gitlab.com/Mashamba/rethinkdb | Python | 459 lines
23 24_gettext_re = re.compile(r'_\((.*?)\)(?s)') 25utils.py https://gitlab.com/Mashamba/rethinkdb | Python | 520 lines
17 18_word_split_re = re.compile(r'(\s+)') 19_punctuation_re = re.compile( 24) 25_simple_email_re = re.compile(r'^\S+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+$') 26_striptags_re = re.compile(r'(<!--.*?-->|<[^>]*>)') 26_striptags_re = re.compile(r'(<!--.*?-->|<[^>]*>)') 27_entity_re = re.compile(r'&([^;]+);') 28_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'filters.py https://gitlab.com/Mashamba/rethinkdb | Python | 987 lines
23 24_word_re = re.compile(r'\w+(?u)') 25 185 rv = [] 186 for item in re.compile(r'([-\s]+)(?u)').split(s): 187 if not item:utils.py https://gitlab.com/aw1231/nupic | Python | 755 lines
182 # Find all keys that match this regular expression 183 matchObj = re.compile(keyRE) 184 found = Falseservice.py https://gitlab.com/karambir/gdata | Python | 618 lines
86 87 __FILE_EXT_PATTERN = re.compile('.*\.([a-zA-Z]{3,}$)') 88 __RESOURCE_ID_PATTERN = re.compile('^([a-z]*)(:|%3A)([\w-]*)$')FastaIO.py https://gitlab.com/smilefreak/biopython | Python | 579 lines
123# regex for program name 124_RE_FLAVS = re.compile(r't?fast[afmsxy]|pr[sf][sx]|lalign|[gs]?[glso]search') 125# regex for sequence ID and length ~ deals with both \n and \r\n 126_PTR_ID_DESC_SEQLEN = r'>>>(.+?)\s+(.*?) *- (\d+) (?:aa|nt)\s*$' 127_RE_ID_DESC_SEQLEN = re.compile(_PTR_ID_DESC_SEQLEN) 128_RE_ID_DESC_SEQLEN_IDX = re.compile(_as_bytes(_PTR_ID_DESC_SEQLEN)) 129# regex for qresult, hit, or hsp attribute value 130_RE_ATTR = re.compile(r'^; [a-z]+(_[ \w-]+):\s+(.*)$') 131# regex for capturing excess start and end sequences in alignments 131# regex for capturing excess start and end sequences in alignments 132_RE_START_EXC = re.compile(r'^-*') 133_RE_END_EXC = re.compile(r'-*$')__init__.py https://gitlab.com/smilefreak/biopython | Python | 1266 lines
69_within_position = r"\(\d+\.\d+\)" 70_re_within_position = re.compile(_within_position) 71_within_location = r"([<>]?\d+|%s)\.\.([<>]?\d+|%s)" \ 73assert _re_within_position.match("(3.9)") 74assert re.compile(_within_location).match("(3.9)..10") 75assert re.compile(_within_location).match("26..(30.33)") 75assert re.compile(_within_location).match("26..(30.33)") 76assert re.compile(_within_location).match("(13.19)..(20.28)") 77 78_oneof_position = r"one\-of\(\d+(,\d+)+\)" 79_re_oneof_position = re.compile(_oneof_position) 80_oneof_location = r"([<>]?\d+|%s)\.\.([<>]?\d+|%s)" \ 82assert _re_oneof_position.match("one-of(6,9)") 83assert re.compile(_oneof_location).match("one-of(6,9)..101") 84assert re.compile(_oneof_location).match("one-of(6,9)..one-of(101,104)")__init__.py https://gitlab.com/smilefreak/biopython | Python | 752 lines
36#be valid as Python properties or arguments 37_re_prop_name = re.compile(r"^[a-zA-Z][a-zA-Z0-9_]*$") 38assert _re_prop_name.match("t")maec41.py https://gitlab.com/hounge.mobile/cuckoo-android | Python | 822 lines
70 raise CuckooDependencyError("Unable to import cybox and maec (install with `pip install maec`)") 71 self._illegal_xml_chars_RE = re.compile(u"[\x00-\x08\x0b\x0c\x0e-\x1F\uD800-\uDFFF\uFFFE\uFFFF]") 72 # Map of PIDs to the Actions that they spawned.parser.py https://gitlab.com/akila-33/Sick-Beard | Python | 390 lines
63 try: 64 cur_regex = re.compile(cur_pattern, re.VERBOSE | re.IGNORECASE) 65 except re.error, errormsg: 71 try: 72 cur_regex = re.compile(cur_pattern, re.VERBOSE | re.IGNORECASE) 73 except re.error, errormsg:__init__.py https://gitlab.com/akila-33/Sick-Beard | Python | 393 lines
51 52PROXY_REGEX = re.compile(r"^(([^:/?#]+):)?(//([^/?#]*):([^/?#]*))?") 53__init__.py https://gitlab.com/akila-33/Sick-Beard | Python | 1215 lines
87 88re_nameIndex = re.compile(r'\(([IVXLCDM]+)\)') 89 339 _translateget = _translate.get 340 _re_non_ascii = re.compile(r'^[^a-z]*', re.I) 341 SOUNDEX_LEN = 5__init__.py https://gitlab.com/akila-33/Sick-Beard | Python | 844 lines
45# Strip html. 46re_unhtml = re.compile(r'<.+?>') 47re_unhtmlsub = re_unhtml.sub 48# imdb person or movie ids. 49re_imdbID = re.compile(r'(?<=nm|tt|ch)([0-9]{7})\b') 50 51# movie AKAs. 52re_makas = re.compile('(<p class="find-aka">.*?</p>)') 53 54# Remove episode numbers. 55re_filmo_episodes = re.compile('<div class="filmo-episodes">.*?</div>', 56 re.M | re.I)utils.py https://gitlab.com/akila-33/Sick-Beard | Python | 876 lines
37# Year, imdbIndex and kind. 38re_yearKind_index = re.compile(r'(\([0-9\?]{4}(?:/[IVXLCDM]+)?\)(?: \(mini\)| \(TV\)| \(V\)| \(VG\))?)') 39 40# Match imdb ids in href tags 41re_imdbid = re.compile(r'(title/tt|name/nm|character/ch|company/co)([0-9]+)') 42 122 123re_entcharrefs = re.compile('&(%s|\#160|\#\d{1,5}|\#x[0-9a-f]{1,4});' % 124 '|'.join(map(re.escape, entcharrefs)), re.I) 128 ('#60', u'<'), ('#62', u'>'), ('#39', u"'")])) 129re_sgmlref = re.compile('&(%s);' % '|'.join(map(re.escape, sgmlentity))) 130re_sgmlrefsub = re_sgmlref.sub 133# but widely used by IMDb web site. :-/ 134re_xmltags = re.compile('<([a-zA-Z]+)/>') 135utils.py https://gitlab.com/akila-33/Sick-Beard | Python | 1296 lines
43# XXX: probably L, C, D and M are far too much! ;-) 44re_year_index = re.compile(r'\(([0-9\?]{4}(/[IVXLCDM]+)?)\)') 45re_extended_year_index = re.compile(r'\((TV episode|TV Series|TV mini-series|TV|Video|Video Game)? ?((?:[0-9\?]{4})(?:-[0-9\?]{4})?)(?:/([IVXLCDM]+)?)?\)') 45re_extended_year_index = re.compile(r'\((TV episode|TV Series|TV mini-series|TV|Video|Video Game)? ?((?:[0-9\?]{4})(?:-[0-9\?]{4})?)(?:/([IVXLCDM]+)?)?\)') 46re_remove_kind = re.compile(r'\((TV episode|TV Series|TV mini-series|TV|Video|Video Game)? ?') 47 48# Match only the imdbIndex (for name strings). 49re_index = re.compile(r'^\(([IVXLCDM]+)\)$') 50 51# Match things inside parentheses. 52re_parentheses = re.compile(r'(\(.*\))') 53 54# Match the number of episodes. 55re_episodes = re.compile('\s?\((\d+) episodes\)', re.I) 56re_episode_info = re.compile(r'{\s*(.+?)?\s?(\([0-9\?]{4}-[0-9\?]{1,2}-[0-9\?]{1,2}\))?\s?(\(#[0-9]+\.[0-9]+\))?}')__init__.py https://gitlab.com/akila-33/Sick-Beard | Python | 1352 lines
73import re 74quoted_slash = re.compile("(?i)%2F") 75import rfc822scons.py https://gitlab.com/18runt88/CocosBuilder | Python | 1072 lines
155import SCons.Platform.posix 156needs_shell = re.compile('["\\'><!^&]') 157def gyp_spawn(sh, escape, cmd, args, env):__init__.py https://gitlab.com/18runt88/jedi | Python | 531 lines
21 _sep += os.path.altsep 22_path_re = re.compile('(?:\.[^{0}]+|[{0}]__init__\.py)$'.format(re.escape(_sep))) 23del _sep 437 # get result type, which can contain newlines 438 pattern = re.compile(r'(,\n|[^\n-])+') 439 ret_str = pattern.match(doc, index).group(0).strip()__init__.py https://gitlab.com/18runt88/biopython | Python | 755 lines
38# be valid as Python properties or arguments 39_re_prop_name = re.compile(r"^[a-zA-Z][a-zA-Z0-9_]*$") 40assert _re_prop_name.match("t")__init__.py https://gitlab.com/18runt88/bazel | Python | 1536 lines
105 import re 106 regex = re.compile(r'^[a-z_][a-z0-9_]*$', re.I) 107 def _isidentifier(string):module_formatter.py https://gitlab.com/18runt88/ansible | Python | 442 lines
55 56_ITALIC = re.compile(r"I\(([^)]+)\)") 57_BOLD = re.compile(r"B\(([^)]+)\)") 57_BOLD = re.compile(r"B\(([^)]+)\)") 58_MODULE = re.compile(r"M\(([^)]+)\)") 59_URL = re.compile(r"U\(([^)]+)\)") 59_URL = re.compile(r"U\(([^)]+)\)") 60_CONST = re.compile(r"C\(([^)]+)\)") 61facts.py https://gitlab.com/18runt88/ansible | Python | 1098 lines
86 # i86pc is a Solaris and derivatives-ism 87 _I386RE = re.compile(r'i([3456]86|86pc)') 88 # For the most part, we assume that platform.dist() will tell the truth.__init__.py https://gitlab.com/18runt88/ansible | Python | 447 lines
50 51 _ITALIC = re.compile(r"I\(([^)]+)\)") 52 _BOLD = re.compile(r"B\(([^)]+)\)") 52 _BOLD = re.compile(r"B\(([^)]+)\)") 53 _MODULE = re.compile(r"M\(([^)]+)\)") 54 _URL = re.compile(r"U\(([^)]+)\)") 54 _URL = re.compile(r"U\(([^)]+)\)") 55 _CONST = re.compile(r"C\(([^)]+)\)") 56template.py https://gitlab.com/18runt88/ansible | Python | 404 lines
83FILTER_PLUGINS = None 84_LISTRE = re.compile(r"(\w+)\[(\d+)\]") 85 87# expand is just a single variable name. 88SINGLE_VAR = re.compile(r"^{{\s*(\w*)\s*}}$") 89__init__.py https://gitlab.com/18runt88/ansible | Python | 1360 lines
61# to check for lookup calls within data 62LOOKUP_REGEX = re.compile(r'lookup\s*\(') 63PRINT_CODE_REGEX = re.compile(r'(?:{[{%]|[%}]})') 63PRINT_CODE_REGEX = re.compile(r'(?:{[{%]|[%}]})') 64CODE_REGEX = re.compile(r'(?:{%|%})') 65__init__.py https://gitlab.com/18runt88/ansible | Python | 654 lines
80 self.groups = [ all ] 81 ipv6_re = re.compile('\[([a-f:A-F0-9]*[%[0-z]+]?)\](?::(\d+))?') 82 for x in host_list: 164 if not pattern_str.startswith('~'): 165 pattern = re.compile(fnmatch.translate(pattern_str)) 166 else: 166 else: 167 pattern = re.compile(pattern_str[1:]) 168 except Exception, e: 271 # The regex used to match on the range, which can be [x] or [x-y]. 272 pattern_re = re.compile("^(.*)\[([-]?[0-9]+)(?:(?:-)([0-9]+))?\](.*)$") 273 m = pattern_re.match(pattern)filters.py https://gitlab.com/doublebits/osf.io | Python | 389 lines
54 55 QUERY_PATTERN = re.compile(r'^filter\[(?P<field>\w+)\](\[(?P<op>\w+)\])?$') 56 68 DATE_FIELDS = (ser.DateTimeField, ser.DateField) 69 DATETIME_PATTERN = re.compile(r'^\d{4}\-\d{2}\-\d{2}(?P<time>T\d{2}:\d{2}(:\d{2}(\.\d{1,6})?)?)$') 70__init__.py https://gitlab.com/tlevine/lxml | Python | 1451 lines
79 if sys.version_info[0] >= 3: 80 sub = re.compile(r"^(\s*)u'", re.M).sub 81 else: 81 else: 82 sub = re.compile(r"^(\s*)b'", re.M).sub 83 return sub(r"\1'", s) 97_collect_string_content = etree.XPath("string()") 98_iter_css_urls = re.compile(r'url\(('+'["][^"]*["]|'+"['][^']*[']|"+r'[^)]*)\)', re.I).finditer 99_iter_css_imports = re.compile(r'@import "(.*?)"').finditer 101 namespaces={'x':XHTML_NAMESPACE}) 102_archive_re = re.compile(r'[^ ]+') 103_parse_meta_refresh_url = re.compile(bucket.py https://gitlab.com/smoke.torez/python-mysql-dump-to-amazon-s3 | Python | 988 lines
45LIFECYCLE_ARG = 'lifecycle' 46ERROR_DETAILS_REGEX = re.compile(r'<Details>(?P<details>.*)</Details>') 47__init__.py https://gitlab.com/smoke.torez/ansible | Python | 763 lines
161 if not pattern_str.startswith('~'): 162 pattern = re.compile(fnmatch.translate(pattern_str)) 163 else: 163 else: 164 pattern = re.compile(pattern_str[1:]) 165 except Exception: 377 378 pattern_with_subscript = re.compile( 379 r'''^data_importer.py https://gitlab.com/cyrilbrulebois/ishtar | Python | 1292 lines
37 38RE_FILTER_CEDEX = re.compile("(.*) *(?: *CEDEX|cedex|Cedex|Cédex|cédex *\d*)") 39 335 new_values = [] 336 r = re.compile(self.many_split) 337 for value in values:common.py https://gitlab.com/adam.lukaitis/muzei | Python | 397 lines
43_GCS_BUCKET_REGEX_BASE = r'[a-z0-9\.\-_]{3,63}' 44_GCS_BUCKET_REGEX = re.compile(_GCS_BUCKET_REGEX_BASE + r'$') 45_GCS_BUCKET_PATH_REGEX = re.compile(r'/' + _GCS_BUCKET_REGEX_BASE + r'$') 45_GCS_BUCKET_PATH_REGEX = re.compile(r'/' + _GCS_BUCKET_REGEX_BASE + r'$') 46_GCS_PATH_PREFIX_REGEX = re.compile(r'/' + _GCS_BUCKET_REGEX_BASE + r'.*') 47_GCS_FULLPATH_REGEX = re.compile(r'/' + _GCS_BUCKET_REGEX_BASE + r'/.*')app.py https://gitlab.com/joostl/docker-stuff | Python | 262 lines
69 70_punct_re = re.compile(r'[\t !"#$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+') 71toc.py git://github.com/quicksilver/Quicksilver.git | Python | 310 lines
31 32IDCOUNT_RE = re.compile(r'^(.*)_([0-9]+)$') 33 139 140 self.header_rgx = re.compile("[Hh][123456]") 141gitutil.py git://pkgs.fedoraproject.org/uboot-tools | Python | 391 lines
90 stdout, stderr = pipe.communicate() 91 re_error = re.compile('^error: patch failed: (.+):(\d+)') 92 for line in stderr.splitlines():file_parsers.py https://github.com/woutersmet/Molmodsummer.git | Python | 375 lines
71 ThermoChemParser.__init__(self, label, 72 activator=re.compile("Force constants in Cartesian coordinates:"), 73 deactivator=re.compile(r"^\s*\b[^0-9+\-]"), 140 ThermoChemParser.__init__(self, label, 141 activator=re.compile("Temperature\s+\S+\s+Kelvin.\s+Pressure\s+\S+\s+Atm."), 142 deactivator=re.compile("Molecular mass:\s+\S+\s+amu."), 144 ) 145 self.re = re.compile("Atom\s*\d+\s+has atomic number\s+\d+\s+and mass\s+(?P<mass>\S+)") 146 168 ThermoChemParser.__init__(self, label, activator, deactivator, condition) 169 self.re = re.compile("\d+\s+\d+\s+(?P<fx>\S+)\s+(?P<fy>\S+)\s+(?P<fz>\S+)") 170 196 GradientParser.__init__(self, label, 197 activator=re.compile("\*\*\*\*\* Axes restored to original set \*\*\*\*\*"), 198 deactivator=re.compile("Cartesian Forces:"),web_control.py https://gitlab.com/xiaozefeng/XX-Net | Python | 260 lines
58 def load(self): 59 ConfigParser.RawConfigParser.OPTCRE = re.compile(r'(?P<option>[^=\s][^=]*)\s*(?P<vi>[=])\s*(?P<value>.*)$') 60 CONFIG = ConfigParser.ConfigParser()__init__.py https://gitlab.com/18runt88/biopython | Python | 281 lines
29header_records = { 30 'database': re.compile('^DATABASE'), 31 'pdbid': re.compile('^PDBID'), 31 'pdbid': re.compile('^PDBID'), 32 'header': re.compile('^HEADER'), 33 'compnd': re.compile('^COMPND'), 33 'compnd': re.compile('^COMPND'), 34 'author': re.compile('^AUTHOR'), 35 'source': re.compile('^SOURCE'), 35 'source': re.compile('^SOURCE'), 36 'seqlength': re.compile('^SEQLENGTH'), 37 'nalign': re.compile('^NALIGN') 39 40summary_title = re.compile('## +SUMMARY') 41summary_rec = re.compile(' *[0-9]+: +[1-9][0-9a-z]{3,3}')SimpleJSONRPCServer.py http://apple-tv2-xbmc.googlecode.com/svn/trunk/ | Python | 283 lines
159# try: 160# urlParts = re.compile(r'/(.+?)/(.+?)\?(.*)').findall(self.path) 161# self.path = '/' + urlParts[0][0]transform.py https://gitlab.com/vim-IDE/python-mode | Python | 285 lines
272 def _find_occurrence(self, name, source): 273 pattern = re.compile(r'^\s*class\s*' + name + r'\b') 274 lines = source.split('\n')default.py https://gitlab.com/TheVibeTeam/repository.thevibe | Python | 431 lines
45 link = link.encode('ascii', 'ignore') 46 match=re.compile('<input class="genre-ids" value="(.*?)" name=".*?"\n.*?type="checkbox" >(.*?)</label>').findall(link) 47 for url2,name in match: 58 link = link.encode('ascii', 'ignore') 59 match=re.compile('<input class="country-ids" value="(.*?)" name=".*?"\n.*?type="checkbox" >(.*?)</label>').findall(link) 60 for url2,name in match: 71 link = link.encode('ascii', 'ignore') 72 match=re.compile('value="(.*?)" name="year"\n.*?>(.*?)</label>').findall(link) 73 for url2,name in match: 99 try: 100 nextp=re.compile('<li class="next"><a href="(.*?)" data-ci-pagination-page=".*?" rel="next">').findall(link)[0] 101 addDir('[B][COLOR red]Next Page>>>[/COLOR][/B]',nextp,1,icon,fanart,'') 116 try: 117 nextp=re.compile('<li class="next"><a href="(.*?)" data-ci-pagination-page=".*?" rel="next">').findall(link)[0] 118 addDir('[B][COLOR red]Next Page>>>[/COLOR][/B]',nextp,2,icon,fanart,'')thread.py https://gitlab.com/liuzceecs/hyperkitty | Python | 417 lines
46 47REPLY_RE = re.compile(r'^(re:\s*)*', re.IGNORECASE) 48petsc.py https://gitlab.com/nikoloutsa/CodeVault | Python | 459 lines
138 yield ('Default compiler locations', ('', petscArch)) 139 petscDirRE = re.compile(r'(PETSC|pets)c(-.*)?') 140 trialDirs = []