This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unicodedata import category | |
import os | |
class FileSet: | |
def __init__(self, path): | |
self.path = path | |
self.bad_files = self.__check_files() | |
@staticmethod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(: wolfgang :) | |
for $i in (1, 5, 2, 4, 5) | |
group by $j := $i | |
return | |
$j || ": " || count($i) | |
(: adam :) | |
let $seq := (1, 5, 2, 4, 5) | |
return | |
distinct-values( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(:~ | |
: XQuery to display the dependencies of an Ant target. | |
: | |
: There are two modes of operation: | |
: 1) Display all targets and immediate dependencies, specified by $project-file | |
: 2) Show a tree of a single targets dependencies, this happens when $target-name is set as well. | |
: | |
: External parameters: | |
: $project-file The initial Ant file to start parsing from (imports will be expanded) | |
: $target-name If specified we examine only a single target and produce a tree of all dependencies (recursively) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tables> | |
<table name="Sheet 1"> | |
<thead> | |
<tr> | |
<td>A</td> | |
<td>B</td> | |
<td>C</td> | |
</tr> | |
</thead> | |
<tbody> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
(: Construct a tab-separated value (TSV) file and save it to the file system. | |
: | |
: This should work in any XQuery 3.0-enabled processor that supports the EXPath File | |
: Module. | |
: | |
: Tested in oXygen 16.1 in the "XPath/XQuery Builder" view, using the "Saxon-EE XQuery" | |
: engine, with "Enable XQuery 3.0 support" option selected (in the "Saxon-HE/PE/EE" | |
: portion of oXygen's preferences). |