44+ results for 're.compile' (0 ms)
Not the results you expected?
cmd_line.py (https://github.com/SublimeText/VintageEx.git) Python · 340 lines
144 offsets = []
145 sign = 1
146 is_num_or_sign = re.compile('^[0-9+-]')
147 while self.c != EOF and is_num_or_sign.match(self.c):
148 if self.c in '+-':
176 def consume_while_match(self, regex):
177 rv = ''
178 r = re.compile(regex)
179 while self.c != EOF and r.match(self.c):
180 rv += self.c
298 offsets = []
299 sign = 1
300 is_num_or_sign = re.compile('^[0-9+-]')
301 while self.c != EOF and is_num_or_sign.match(self.c):
302 if self.c in '+-':
utils.py (https://github.com/9h37/delikatess.git) Python · 221 lines
sgml.py (https://github.com/sabren/scrapy.git) Python · 158 lines
88 return True
90 _re_type = type(re.compile("", 0))
92 _matches = lambda url, regexs: any((r.search(url) for r in regexs))
98 tags=('a', 'area'), attrs=('href'), canonicalize=True, unique=True, process_value=None,
99 deny_extensions=None):
100 self.allow_res = [x if isinstance(x, _re_type) else re.compile(x) for x in arg_to_iter(allow)]
101 self.deny_res = [x if isinstance(x, _re_type) else re.compile(x) for x in arg_to_iter(deny)]
prettifiers.py (https://github.com/vis-netlausnir/visutils.git) Python · 308 lines
SBTypeCategory.i (https://gitlab.com/jorjpimm/lldb) Swig · 237 lines
buildinator_common.py (https://github.com/vasi/kdelibs.git) Python · 152 lines
load_phonon.py (https://github.com/wdzhou/mantid.git) Python · 185 lines
transformations.py (https://gitlab.com/oytunistrator/snowscript) Python · 353 lines
DownloadData.py (https://github.com/JasonAng/ResearchScripts.git) Python · 150 lines
titletranslate.py (https://github.com/malectro/Project-OPEN.git) Python · 162 lines
check_style_c_test.py (https://github.com/mgschwan/blensor.git) Python · 414 lines
apiclient-rax.py (https://gitlab.com/kawsark/pyrestclient) Python · 178 lines
19 #Load credentials from credentials_file variable
20 f = open(credentials_file, 'r')
21 pattern = re.compile("\s*\[rackspace_cloud\]\s*username\s*=\s*(\S*)\s*api_key\s*=\s*(\S*)")
22 match = pattern.search(f.read())
23 if match:
38 #Extract token from response:
39 p1 = re.compile("token.*\"id\":\"(.*?)\",")
40 m1 = p1.search(r.text)
41 token = m1.group(1)
43 #Extract tenantId from response:
44 p2 = re.compile("\"tenantId\":\"(\d*?)\",")
45 m2 = p2.search(r.text)
46 tenantId = m2.group(1)
marshal.py (https://github.com/nltk/nltk_contrib.git) Python · 206 lines
74 handler = file(filename, "r")
76 pattern = re.compile(r'^(.+):(.+?)$', re.UNICODE)
77 for line in handler.readlines():
78 m = re.match(pattern, line)
120 self._minlength = int(lines[1].split("minlength ")[1])
122 pattern = re.compile(r'^(.+):(.+?)$', re.UNICODE)
123 for line in lines[2:]:
124 m = re.match(pattern, line)
174 pattern = re.compile(r'^\[(.+)\]:(.+):(.+?)$', re.UNICODE)
176 # As the separator-char ":" can be used as a tag or as a text,
test_selector.py (https://github.com/mozilla/kuma-lib.git) Python · 200 lines
25 """Override the configuration to skip only specified files."""
26 c = Config()
27 c.ignoreFiles = [re.compile(r'^test_favourite_colour\.py$')]
28 s = Selector(c)
36 s = Selector(Config())
37 c = Config()
38 c.exclude = [re.compile(r'me')]
39 s2 = Selector(c)
47 s = Selector(Config())
48 c = Config()
49 c.include = [re.compile(r'me')]
50 s2 = Selector(c)
base.py (https://github.com/lithium/pyjirc.git) Python · 155 lines
BindingComparator.java (https://github.com/vazexqi/CodingSpectator.git) Java · 313 lines
fields.py (https://github.com/asdahlborg/epiwork-website.git) Python · 182 lines
test_mypy_plugin_py3k.py (https://bitbucket.org/zzzeek/sqlalchemy.git) Python · 210 lines
runner.py (https://github.com/argodev/BiLab.git) Python · 204 lines
po-merge.py (https://github.com/yuvrajm/subversion.git) Python · 191 lines
UnusedCodeCleanUp.java (https://gitlab.com/unofficial-mirrors/eclipse-che) Java · 227 lines
15 import org.eclipse.jdt.core.ICompilationUnit;
16 import org.eclipse.jdt.core.JavaCore;
17 import org.eclipse.jdt.core.compiler.IProblem;
18 import org.eclipse.jdt.core.dom.CompilationUnit;
19 import org.eclipse.jdt.internal.corext.fix.CleanUpConstants;
105 if (isEnabled(CleanUpConstants.REMOVE_UNUSED_CODE_IMPORTS) && !isEnabled(CleanUpConstants.ORGANIZE_IMPORTS))
106 result.put(JavaCore.COMPILER_PB_UNUSED_IMPORT, JavaCore.WARNING);
108 boolean removeMembers= isEnabled(CleanUpConstants.REMOVE_UNUSED_CODE_PRIVATE_MEMBERS);
112 isEnabled(CleanUpConstants.REMOVE_UNUSED_CODE_PRIVATE_FELDS) ||
113 isEnabled(CleanUpConstants.REMOVE_UNUSED_CODE_PRIVATE_TYPES)))
114 result.put(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER, JavaCore.WARNING);
116 if (isEnabled(CleanUpConstants.REMOVE_UNUSED_CODE_LOCAL_VARIABLES))
SearchIndex.py (https://github.com/mobyle2-legacy/mobyle2.core.git) Python · 133 lines
Inference.fs (https://github.com/mausch/fsharpx.git) F# · 176 lines
main.py (https://github.com/yasulab/author-evaluator.git) Python · 234 lines
MemberDeclarationVisitor.java (https://github.com/vazexqi/CodingSpectator.git) Java · 327 lines
EvaluationResult.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 232 lines
utility.py (https://bitbucket.org/Nitesh_Rajpurohit/app-engine.git) Python · 493 lines
policy.py (https://gitlab.com/ryandub/yoke) Python · 178 lines
middleware.py (https://github.com/joskid/ella.git) Python · 166 lines
gtest_help_test.py (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 169 lines
IDocumentElementRequestor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 412 lines
ASTVisitor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 914 lines
CompletionRequestorWrapper.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 340 lines
ICompletionRequestor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 426 lines
DefaultBytecodeVisitor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 1837 lines
IDocumentElementRequestor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 412 lines
ASTVisitor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 894 lines
ICompletionRequestor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 426 lines
ISelectionRequestor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 260 lines
TokenScanner.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 238 lines
15 import org.eclipse.core.runtime.Status;
16 import org.aspectj.org.eclipse.jdt.core.JavaCore;
17 import org.aspectj.org.eclipse.jdt.core.compiler.IScanner;
18 import org.aspectj.org.eclipse.jdt.core.compiler.ITerminalSymbols;
19 import org.aspectj.org.eclipse.jdt.core.compiler.InvalidInputException;
21 /**
RecoveryScanner.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 261 lines
encoder.py
(git://github.com/darwin/drydrop.git)
Python · 434 lines
✨ Summary
This code defines a custom JSON encoder for Python, allowing for more control over how complex data types are serialized to JSON. It provides a way to customize the encoding of various data types, such as lists, dictionaries, and floats, by implementing custom _iterencode
functions. This can be useful for specific use cases where standard JSON serialization does not meet requirements.
This code defines a custom JSON encoder for Python, allowing for more control over how complex data types are serialized to JSON. It provides a way to customize the encoding of various data types, such as lists, dictionaries, and floats, by implementing custom _iterencode
functions. This can be useful for specific use cases where standard JSON serialization does not meet requirements.
notification.py
(git://github.com/linkedin/indextank-service.git)
Python · 95 lines
✨ Summary
This is a Python class that represents a notification message from Amazon Mechanical Turk (MTurk) and its associated events. It provides methods for verifying the authenticity of the notification message and accessing the event data.
This is a Python class that represents a notification message from Amazon Mechanical Turk (MTurk) and its associated events. It provides methods for verifying the authenticity of the notification message and accessing the event data.
Magic.py
(http://editra-plugins.googlecode.com/svn/trunk/)
Python · 3382 lines
✨ Summary
This is a Python class that defines a set of magic commands for an IPython shell. The magic commands allow users to interact with the shell in various ways, such as toggling doctest mode, executing code snippets, and customizing prompt behavior. The class provides a way to extend the functionality of the IPython shell through these magic commands.
This is a Python class that defines a set of magic commands for an IPython shell. The magic commands allow users to interact with the shell in various ways, such as toggling doctest mode, executing code snippets, and customizing prompt behavior. The class provides a way to extend the functionality of the IPython shell through these magic commands.
281 # Characters that need to be escaped for latex:
282 escape_re = re.compile(r'(%|_|\$|#|&)',re.MULTILINE)
283 # Magic command names as headers:
284 cmd_name_re = re.compile(r'^(%s.*?):' % self.shell.ESC_MAGIC,
285 re.MULTILINE)
286 # Magic commands
287 cmd_re = re.compile(r'(?P<cmd>%s.+?\b)(?!\}\}:)' % self.shell.ESC_MAGIC,
288 re.MULTILINE)
289 # Paragraph continue
290 par_re = re.compile(r'\\$',re.MULTILINE)
292 # The "\n" symbol