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
| package csvvalidator | |
| import scala.util.parsing.combinator.syntactical.StandardTokenParsers | |
| import scala.io.Source; | |
| /** | |
| * Adam Retter | |
| */ | |
| object TestProblemParser extends StandardTokenParsers { |
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
| declare function local:_recurse_depth($element, $count) as xs:integer* | |
| { | |
| if($element[child::element()])then | |
| for $child in $element/child::element() return | |
| local:_recurse_depth($child, $count + 1) | |
| else | |
| $count | |
| }; | |
| declare function local:depth($x as node()?) as xs:integer |
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
| def withConnection[T](ds: ComboPooledDataSource, fn : Connection => T) : T = { | |
| var optConn : Option[Connection] = Option.empty; | |
| try { | |
| val conn = ds.getConnection | |
| optConn = Some(conn); | |
| fn(conn) | |
| } finally { |
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
| def Expr = (GlobalDirectiveExpr*) ~ (ColumnRuleExpr+) ^^ { | |
| case d ~ r => CsvSchema(d, r) | |
| } | |
| def GlobalDirectiveExpr = "@" ~> (SeparatorExpr | QuotedExpr | TotalColumnsExpr | NoHeaderExpr | IgnoreColumnNameCaseExpr) ^^ { | |
| case d => Directive(d) | |
| } |
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
| package hudson.plugins.scalabuilder; | |
| import hudson.Extension; | |
| import hudson.model.AbstractDescribableImpl; | |
| import hudson.model.Descriptor; | |
| import hudson.tasks.BuildStepDescriptor; | |
| import hudson.tasks.Builder; | |
| import org.kohsuke.stapler.DataBoundConstructor; | |
| /** |
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
| package hudson.plugins.scalabuilder; | |
| import hudson.EnvVars; | |
| import hudson.Extension; | |
| import hudson.Launcher; | |
| import hudson.FilePath; | |
| import hudson.model.BuildListener; | |
| import hudson.model.AbstractBuild; | |
| import hudson.model.AbstractProject; | |
| import hudson.model.Computer; |
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
| <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | |
| <!-- | |
| This jelly script is used for per-project configuration. | |
| See global.jelly for a general discussion about jelly script. | |
| --> | |
| <!-- | |
| Creates a checkbox that maps to the "remoteDebug" property. | |
| If selected, creates a checkbox that maps to the "suspend" property and a textbox that maps to the "port" property. |
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
| public abstract boolean isApplicable(Class<? extends AbstractProject> jobType); | |
| public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends AbstractBuild<P,R>> extends Job<P,R> | |
| implements BuildableItem, ModelObjectWithChildren { | |
| ... | |
| } |
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
| import scala.collection.generic.{GenericCompanion, GenericTraversableTemplate, SeqFactory} | |
| import scala.collection.mutable.{ArrayBuffer, Builder} | |
| class MyCollectionBuilder[A] extends Builder[A, MyCollection[A]] { | |
| val data = ArrayBuffer[A]() | |
| def +=(elem: A) = { | |
| data += elem | |
| this | |
| } |
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"; | |
| module namespace search = "http://xmlss/search"; | |
| import module namespace web = "http://xmlss/web" at "web.xqm"; | |
| declare namespace rest = "http://exquery.org/ns/restxq"; | |
| declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization"; | |
| declare |
OlderNewer