commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
04ce507b3b0920f4d1c53995eb8646ae99311090 | src/groovy/com/hida/imms/DomainClassUtil.groovy | src/groovy/com/hida/imms/DomainClassUtil.groovy | package com.hida.imms
import grails.util.Holders
import org.codehaus.groovy.grails.commons.GrailsClass
class DomainClassUtil {
static def getPrimaryKey(def domainClass) {
GrailsClass domainClz = domainClass instanceof GrailsClass ? domainClass :
Holders.grailsApplication.domainClasses.find... | package com.hida.imms
import grails.util.Holders
import org.codehaus.groovy.grails.commons.GrailsClass
import org.codehaus.groovy.grails.orm.hibernate.cfg.CompositeIdentity
import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsDomainBinder
import org.codehaus.groovy.grails.orm.hibernate.cfg.Mapping
class DomainCl... | Fix the way to determine composite key | Fix the way to determine composite key
| Groovy | apache-2.0 | arief-hidayat/imms-ui-plugin,arief-hidayat/imms-ui-plugin |
83659f94e61ed5e77985104d7fb59c8a2b080641 | catalysts-gradle-plugins-legacy/src/test/groovy/cc/catalysts/gradle/plugins/grails/GrailsPluginTest.groovy | catalysts-gradle-plugins-legacy/src/test/groovy/cc/catalysts/gradle/plugins/grails/GrailsPluginTest.groovy | package cc.catalysts.gradle.plugins.grails
import org.gradle.api.Project
import org.gradle.sonar.runner.plugins.SonarRunnerPlugin
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Test
import static org.junit.Assert.assertEquals
/**
* @author Catalysts GmbH, www.catalysts.cc
*/
class GrailsPluginTest ... | package cc.catalysts.gradle.plugins.grails
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Test
import org.sonarqube.gradle.SonarQubePlugin
import static org.junit.Assert.assertEquals
/**
* @author Catalysts GmbH, www.catalysts.cc
*/
class GrailsPluginTest {
@Test
... | Update plugin test to reflect sonar qube update changes | Update plugin test to reflect sonar qube update changes
| Groovy | unknown | Catalysts/catalysts-gradle-plugins,Catalysts/cat-gradle-plugins |
0c23263b8ad04af82ea1c367a268a6ee81256e5d | subprojects/language-java/src/integTest/groovy/org/gradle/language/java/SampleJavaLanguageIntegrationTest.groovy | subprojects/language-java/src/integTest/groovy/org/gradle/language/java/SampleJavaLanguageIntegrationTest.groovy | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Consolidate example used in integration tests | Consolidate example used in integration tests
+review REVIEW-5567
| Groovy | apache-2.0 | gradle/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/grad... |
03fd20db1eca4eafba1f87a2414ae676c853c9f7 | whelktool/scripts/cleanups/2019/10/lxl-2594-fix-faulty-encodingLevels/set-correct-bib-encodingLevel-value.groovy | whelktool/scripts/cleanups/2019/10/lxl-2594-fix-faulty-encodingLevels/set-correct-bib-encodingLevel-value.groovy | /*
* This removes auth and hold specific values of encodingLevel
* and set correct valid bib level
*
* See LXL-2594 for more info.
*
*/
PrintWriter failedBibIDs = getReportWriter("failed-to-update-bibIDs")
PrintWriter scheduledForUpdate = getReportWriter("scheduled-for-update")
VALID_BIB_ENCODING_LEVELS = ["marc... | /*
* This removes auth and hold specific values of encodingLevel
* and set correct valid bib level
*
* See LXL-2594 for more info.
*
*/
PrintWriter failedBibIDs = getReportWriter("failed-to-update-bibIDs")
PrintWriter scheduledForUpdate = getReportWriter("scheduled-for-update")
BIB_ENCODING_LEVEL = "marc:Abbrevi... | Adjust sql query to speed up performance | Adjust sql query to speed up performance
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
e5ae62fa957b87f766cf59944a1cfdfca439d266 | site/src/site/includes/bottommenu.groovy | site/src/site/includes/bottommenu.groovy |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... | Add a link to the ASL 2 license | Add a link to the ASL 2 license
| Groovy | apache-2.0 | kevintanhongann/groovy-website,webkaz/groovy-website,rahulsom/sdkman-website,marc0der/groovy-website,kevintanhongann/groovy-website,sdkman/sdkman-website,dmesu/sdkman-website,sdkman/sdkman-website,benignbala/groovy-website,webkaz/groovy-website,dmesu/sdkman-website,marcoVermeulen/groovy-website,marcoVermeulen/groovy-we... |
487587e5446fb9c94cac7a7a256adc6df44b4f34 | src/main/groovy/org/rackspace/gdeproxy/Request.groovy | src/main/groovy/org/rackspace/gdeproxy/Request.groovy | package org.rackspace.gdeproxy
/**
* A simple HTTP Request, with method, path, headers, and body.
*/
class Request {
String method
String path
HeaderCollection headers
def body
public Request(method, path, headers=[:], body=null) {
"""Parameters:
method - The HTTP method to use... | package org.rackspace.gdeproxy
/**
* A simple HTTP Request, with method, path, headers, and body.
*/
class Request {
String method
String path
HeaderCollection headers
def body
/**
*
* Creates a Request object
*
* @param method The HTTP method to use, such as 'GET', 'POST', ... | Replace constructor docstring with javadoc. | Replace constructor docstring with javadoc.
| Groovy | mit | rackerlabs/deproxy |
68d6f2755ad8137a62e760f57287ef9f245877f7 | openedx/jobs/openedxReleaseJob.groovy | openedx/jobs/openedxReleaseJob.groovy | package openedx
import static org.edx.jenkins.dsl.JenkinsPublicConstants.JENKINS_PUBLIC_LOG_ROTATOR
// This is the job DSL responsible for creating the main pipeline job.
pipelineJob('openedx-release-ci') {
definition {
parameters {
stringParam('OPENEDX_RELEASE_NAME', 'test-release',
... | package openedx
import static org.edx.jenkins.dsl.JenkinsPublicConstants.JENKINS_PUBLIC_LOG_ROTATOR
import static org.edx.jenkins.dsl.JenkinsPublicConstants.JENKINS_PUBLIC_TEAM_SECURITY
// This is the job DSL responsible for creating the main pipeline job.
pipelineJob('openedx-release-ci') {
definition {
... | Add security rules for openedx job | Add security rules for openedx job
| Groovy | agpl-3.0 | edx/jenkins-job-dsl |
3c8d09b492736043fe75f400ea49d93f4e26c51c | src/main/groovy/cz/siret/prank/utils/Formatter.groovy | src/main/groovy/cz/siret/prank/utils/Formatter.groovy | package cz.siret.prank.utils
import groovy.transform.CompileStatic
import java.text.DecimalFormat
@CompileStatic
class Formatter {
static List<DecimalFormat> DECIMAL_FORMATS = (0..6).collect { new DecimalFormat("#."+("#"*it)) }.asList()
static String format(double d, int places) {
DECIMAL_FORMATS[p... | package cz.siret.prank.utils
import groovy.transform.CompileStatic
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols
@CompileStatic
class Formatter {
static DecimalFormatSymbols formatSymbols;
static List<DecimalFormat> DECIMAL_FORMATS;
static {
formatSymbols = new DecimalFo... | Use dot as decimal separator regardless of locale | Use dot as decimal separator regardless of locale
| Groovy | mit | rdk/p2rank,rdk/p2rank,rdk/p2rank |
c8e355f19a4f0b75e4235601b5b4f4f1be47e86d | buildSrc/src/test/groovy/com/fizzpod/gradle/plugins/sweeney/rules/JdkVersionRuleSpec.groovy | buildSrc/src/test/groovy/com/fizzpod/gradle/plugins/sweeney/rules/JdkVersionRuleSpec.groovy | package com.fizzpod.gradle.plugins.sweeney.rules
import nebula.test.ProjectSpec
class JdkVersionRuleSpec extends ProjectSpec {
JdkVersionRule jdkVersionRule = new JdkVersionRule();
def 'jdk rule should not allow jdks less than 1.7'() {
setup:
def stringDefinition = "jdk:[1.7,)"
def definition = new String... | package com.fizzpod.gradle.plugins.sweeney.rules
import nebula.test.ProjectSpec
class JdkVersionRuleSpec extends ProjectSpec {
JdkVersionRule jdkVersionRule = new JdkVersionRule();
def 'jdk rule should not allow jdks less than 1.7'() {
setup:
def stringDefinition = "jdk:[1.7,)"
def definition = new String... | Check whether it is actually using Java 10 | Check whether it is actually using Java 10
| Groovy | apache-2.0 | boxheed/gradle-sweeney-plugin |
99f27c00d3541d9f0bcf405dead8ce80810053d1 | src/main/groovy/de/stups/slottool/data/dao/ModuleDAO.groovy | src/main/groovy/de/stups/slottool/data/dao/ModuleDAO.groovy | package de.stups.slottool.data.dao
import de.stups.slottool.data.entities.Level
import de.stups.slottool.data.entities.Module
class ModuleDAO extends AbstractDAO {
HashMap<Integer, Module> modules
LevelDAO levelDAO
def ModuleDAO(def sql, def levelDAO) {
super(sql)
this.levelDAO = levelDAO... | package de.stups.slottool.data.dao
import de.stups.slottool.data.entities.Module
class ModuleDAO extends AbstractDAO {
HashMap<Integer, Module> modules
LevelDAO levelDAO
def ModuleDAO(def sql, def levelDAO) {
super(sql)
this.levelDAO = levelDAO
this.modules = new HashMap<Integer, ... | Remove level_id from module table dao | Remove level_id from module table dao
| Groovy | isc | plues/model-generator,plues/model-generator |
105c217bba37722122d3850588cc9f94220d39df | ExtendedDependencyManagerGrailsPlugin.groovy | ExtendedDependencyManagerGrailsPlugin.groovy | class ExtendedDependencyManagerGrailsPlugin {
// the plugin version
def version = "0.5.4"
def grailsVersion = "2.0 > *"
def title = "Extended Dependency Manager Plugin"
def author = "David Dawson"
def authorEmail = "david.dawson@simplicityitself.com"
def description = '''\
Provides a si... | class ExtendedDependencyManagerGrailsPlugin {
// the plugin version
def version = "0.5.5"
def grailsVersion = "2.0 > *"
def title = "Extended Dependency Manager Plugin"
def author = "David Dawson"
def authorEmail = "david.dawson@simplicityitself.com"
def description = '''\
Provides a si... | Tweak ivy to download all the deps and add them to the classpath, not just a few of them | Tweak ivy to download all the deps and add them to the classpath, not just a few of them
| Groovy | apache-2.0 | simplicityitself/grails-dependency-manager |
b32b57418785e7817dd4350bcec0d4115c88c4f3 | MergeConfigGrailsPlugin.groovy | MergeConfigGrailsPlugin.groovy | import grails.plugin.mergeconfig.Configuration
class MergeConfigGrailsPlugin {
// the plugin version
def version = "0.1"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.4 > *"
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-ap... | import grails.plugin.mergeconfig.Configuration
class MergeConfigGrailsPlugin {
// the plugin version
def version = "0.1"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.4 > *"
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-ap... | Remove Configuration merge on application startup. | Remove Configuration merge on application startup.
This caused an error in the application using the plugin about using it outside the context of a Grails application. This will need to be moved to the Bootstrap.groovy file in the application using the plugin.
| Groovy | mit | caseyscarborough/grails-merge-config |
b153273e3200877db9a2818de8b59729e95a38db | src/test/groovy/org/scoverage/AcceptanceTestUtils.groovy | src/test/groovy/org/scoverage/AcceptanceTestUtils.groovy | package org.scoverage
import org.gradle.tooling.BuildLauncher
import org.gradle.tooling.GradleConnector
import org.hamcrest.core.Is
import org.junit.Assert
enum CoverageType {
Line('cobertura.xml', 'line-rate'),
Statement('scoverage.xml', 'statement-rate'),
Branch('scoverage.xml', 'branch-rate')
Stri... | package org.scoverage
import org.gradle.tooling.BuildLauncher
import org.gradle.tooling.GradleConnector
import org.hamcrest.core.Is
import org.junit.Assert
/**
* Some utils for easy acceptance testing.
*/
class AcceptanceTestUtils {
XmlParser parser
AcceptanceTestUtils() {
parser = new XmlParser()... | Fix bad PR merge: remove old test class | Fix bad PR merge: remove old test class
| Groovy | apache-2.0 | scoverage/gradle-scoverage |
c56a103530ae0a26abab814b8860b54794d595c8 | src/main/groovy/no/g_v/timesheet/JettyServer.groovy | src/main/groovy/no/g_v/timesheet/JettyServer.groovy | package no.g_v.timesheet
import com.google.inject.servlet.GuiceFilter
import no.g_v.timesheet.guice.GuiceServletConfig
import org.eclipse.jetty.server.Server
import org.eclipse.jetty.webapp.WebAppContext
import javax.servlet.DispatcherType
class JettyServer {
static void main(String... args) {
def serve... | package no.g_v.timesheet
import com.google.inject.servlet.GuiceFilter
import no.g_v.timesheet.guice.GuiceServletConfig
import org.eclipse.jetty.server.Server
import org.eclipse.jetty.webapp.WebAppContext
import javax.servlet.DispatcherType
class JettyServer {
static void main(String... args) {
def serve... | Set shutdown behaviour to ensure the server instance will be explicitly stopped when the JVM is shutdown and contextDestroyed() is called on ServletContextListener(s). | Set shutdown behaviour to ensure the server instance will be explicitly stopped when the JVM is shutdown and contextDestroyed() is called on ServletContextListener(s).
| Groovy | mit | apgv/timesheet,mecolombiano/timesheet |
40f798c085bd25fa4995d8a1534fa6bbff753335 | RelationallyScopedQueryGrailsPlugin.groovy | RelationallyScopedQueryGrailsPlugin.groovy | class RelationallyScopedQueryGrailsPlugin {
// the plugin version
def version = "0.1"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.2.1 > *"
// the other plugins this plugin depends on
def dependsOn = [:]
// resources that are excluded from plugin pac... | class RelationallyScopedQueryGrailsPlugin {
// the plugin version
def version = "0.1"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.2.0 > *"
// the other plugins this plugin depends on
def dependsOn = [:]
// resources that are excluded from plugin pac... | Allow 1.2 or higher grails version. | Allow 1.2 or higher grails version.
| Groovy | mit | jcoleman/RelationalScopeQueryPlugin,jcoleman/RelationalScopeQueryPlugin |
511e9e61184bdd285a67b52e79d04d74e0b0e8fd | site/src/site/layouts/main.groovy | site/src/site/layouts/main.groovy | /**
* This layout accepts the following parameters:
*
* @param menu the navigation menu
* @param pageTitle the page title
* @param extraStyles , a list of CSS files to be added in the header
* @param scripts , a list of scripts to be imported
* @param extraFooter , a section to be added before closing body
*/
l... | /**
* This layout accepts the following parameters:
*
* @param menu the navigation menu
* @param pageTitle the page title
* @param extraStyles , a list of CSS files to be added in the header
* @param scripts , a list of scripts to be imported
* @param extraFooter , a section to be added before closing body
*/
l... | Remove the temporary warning as the old site is back up | Remove the temporary warning as the old site is back up
| Groovy | apache-2.0 | marcoVermeulen/groovy-website,groovy/groovy-website,sdkman/sdkman-website,webkaz/groovy-website,rahulsom/sdkman-website,kevintanhongann/groovy-website,marc0der/groovy-website,m-ullrich/groovy-website,dmesu/sdkman-website,benignbala/groovy-website,kevintanhongann/groovy-website,groovy/groovy-website,marcoVermeulen/groov... |
fdd90a2c325dd43427387aeb99aa660deb044d3c | src/main/jervis/lang/lifecycleGenerator.groovy | src/main/jervis/lang/lifecycleGenerator.groovy | package jervis.lang
import jervis.exceptions.MissingLifecyclesException
import jervis.exceptions.UnsupportedLanguageException
import jervis.lang.lifecycleValidator
import org.yaml.snakeyaml.Yaml
class lifecycleGenerator {
def jervis_yaml
def language
def lifecycle_obj
def lifecycleGenerator() {
}
... | package jervis.lang
import jervis.exceptions.MissingLifecyclesException
import jervis.exceptions.UnsupportedLanguageException
import jervis.lang.lifecycleValidator
import org.yaml.snakeyaml.Yaml
class lifecycleGenerator {
def jervis_yaml
def language
def lifecycle_obj
def lifecycleGenerator() {
}
... | Check for missing lifecycles file. | Check for missing lifecycles file.
| Groovy | apache-2.0 | samrocketman/jervis,samrocketman/jervis |
ca87a631306b171e80b9df5b9c5dbf85c6984320 | groovy/geckofx29-jobs.groovy | groovy/geckofx29-jobs.groovy | /*
* DSL script for geckofx29 Jenkins jobs
*/
import utilities.common
// Variables
def packagename = 'geckofx29';
def subdir_name = packagename;
def distros_tobuild = 'precise trusty';
def revision = "\$(echo \${MERCURIAL_REVISION_SHORT} | cut -b 1-6)";
/*
* Definition of jobs
*/
job {
common.defaultPackagin... | /*
* DSL script for geckofx29 Jenkins jobs
*/
import utilities.common
// Variables
def packagename = 'geckofx29';
def subdir_name = packagename;
def distros_tobuild = 'precise trusty utopic';
def revision = "\$(echo \${MERCURIAL_REVISION_SHORT} | cut -b 1-6)";
/*
* Definition of jobs
*/
job {
common.defaultP... | Build geckofx29 also for utopic by default | Build geckofx29 also for utopic by default
Change-Id: Ide692fbdac488978ad1f7617d41b51f6acf1b803
| Groovy | mit | sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts |
e0ed2d822c215436ec6be4d655efbc376d41b356 | src/main/script/release_tweet.groovy | src/main/script/release_tweet.groovy | // Send a Twitter update when a release is made. Cool!
import groovyx.net.http.HTTPBuilder
import static groovyx.net.http.Method.*
import static groovyx.net.http.ContentType.*
def http = new HTTPBuilder('http://twitter.com/statuses/')
http.auth.basic pom.properties.twitter_user, pom.properties.twitter_passwd
def ... | // Send a Twitter update when a release is made. Cool!
import groovyx.net.http.HTTPBuilder
import static groovyx.net.http.Method.*
import static groovyx.net.http.ContentType.*
def http = new HTTPBuilder('http://twitter.com/statuses/')
http.auth.basic pom.properties.'twitter.user',
pom.properties.'twitter.pass... | Fix for GMOD-61 and twitter credentials. | Fix for GMOD-61 and twitter credentials.
git-svn-id: c771e6b5c05ab968a5a6d22a86aeb76f40bf2d1c@643 f908d50e-8e36-0410-ac0a-93754bd5008d
| Groovy | apache-2.0 | dwclark/http-builder-ng,http-builder-ng/http-builder-ng,http-builder-ng/http-builder-ng,dwclark/http-builder-ng |
8832a965217a30c1d88435c3fb1ccab650a67477 | devops/jobs/AppPermissionsFailure.groovy | devops/jobs/AppPermissionsFailure.groovy | package devops.jobs
import static org.edx.jenkins.dsl.Constants.common_wrappers
import static org.edx.jenkins.dsl.Constants.common_logrotator
import static org.edx.jenkins.dsl.DevopsConstants.common_read_permissions
class AppPermissionsFailure {
public static def job = { dslFactory, extraVars ->
dslFactory.... | package devops.jobs
import static org.edx.jenkins.dsl.Constants.common_wrappers
import static org.edx.jenkins.dsl.Constants.common_logrotator
import static org.edx.jenkins.dsl.DevopsConstants.common_read_permissions
class AppPermissionsFailure {
public static def job = { dslFactory, extraVars ->
dslFactory.... | Include jenkins job URL in failed build message | Include jenkins job URL in failed build message
| Groovy | agpl-3.0 | edx/jenkins-job-dsl |
b65959068b2567493424658ee5fdc05dbcbd77d0 | gradle-science/src/main/groovy/net/elehack/gradle/science/Rscript.groovy | gradle-science/src/main/groovy/net/elehack/gradle/science/Rscript.groovy | package net.elehack.gradle.science
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
/**
* Task to run an R script.
*
* @author <a href="http://www.grouplens.org">GroupLens Research</a>
*/
class Rscript extends DefaultTask {
String rscriptExecutable = null
def script = null
List... | package net.elehack.gradle.science
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.TaskAction
/**
* Task to run an R script.
*
* @author <a href="http://www.grouplens.org">GroupLens Research</a>
*/
class Rscript extends DefaultTask {
String rscriptExecutable... | Use script as input file | Use script as input file
| Groovy | bsd-3-clause | mdekstrand/gradle-plugins,mdekstrand/gradle-plugins |
a0ddb4f86b879407b93069821a7b3d5d2d0c2e5b | pipelines/dax/docker/build_imgserv.groovy | pipelines/dax/docker/build_imgserv.groovy | node('jenkins-master') {
dir('jenkins-dm-jobs') {
checkout([
$class: 'GitSCM',
branches: scm.getBranches(),
userRemoteConfigs: scm.getUserRemoteConfigs(),
changelog: false,
poll: false
])
notify = load 'pipelines/lib/notify.groovy'
util = load 'pipelines/lib/util.groovy'
... | node('jenkins-master') {
dir('jenkins-dm-jobs') {
checkout([
$class: 'GitSCM',
branches: scm.getBranches(),
userRemoteConfigs: scm.getUserRemoteConfigs(),
changelog: false,
poll: false
])
notify = load 'pipelines/lib/notify.groovy'
util = load 'pipelines/lib/util.groovy'
... | Make Jenkins create tmp dir before docker run | Make Jenkins create tmp dir before docker run
| Groovy | apache-2.0 | jhoblitt/jenkins-dm-jobs,lsst-sqre/jenkins-dm-jobs |
bc51e5f700728cad4ce88a42cec0d84663b4d1d3 | pipelines/dax/docker/build_imgserv.groovy | pipelines/dax/docker/build_imgserv.groovy | node('jenkins-master') {
dir('jenkins-dm-jobs') {
checkout([
$class: 'GitSCM',
branches: scm.getBranches(),
userRemoteConfigs: scm.getUserRemoteConfigs(),
changelog: false,
poll: false
])
notify = load 'pipelines/lib/notify.groovy'
util = load 'pipelines/lib/util.groovy'
... | node('jenkins-master') {
dir('jenkins-dm-jobs') {
checkout([
$class: 'GitSCM',
branches: scm.getBranches(),
userRemoteConfigs: scm.getUserRemoteConfigs(),
changelog: false,
poll: false
])
notify = load 'pipelines/lib/notify.groovy'
util = load 'pipelines/lib/util.groovy'
... | Simplify and fix the Jenkins script for Imgserv | Simplify and fix the Jenkins script for Imgserv
| Groovy | apache-2.0 | jhoblitt/jenkins-dm-jobs,lsst-sqre/jenkins-dm-jobs |
209df5c75f84df31c35ef172f19bde641f08e926 | whelktool/scripts/2018/11/fix-musicMedium.groovy | whelktool/scripts/2018/11/fix-musicMedium.groovy | MUSICMEDIUM_TYPE = 'MusicMedium'
MUSICMEDIUM_PROPERTY = 'musicMedium'
boolean remodelToStructuredValue(term) {
def remodelledTerm = []
//Create musicMedium object and add to list
term[MUSICMEDIUM_PROPERTY].each {
def map = [:]
map << ['@type':MUSICMEDIUM_TYPE]
map << ['label':it]
... | MUSICMEDIUM_TYPE = 'MusicMedium'
MUSICMEDIUM_PROPERTY = 'musicMedium'
boolean remodelToStructuredValue(term) {
def remodelledTerm = []
//Create musicMedium object and add to list
term[MUSICMEDIUM_PROPERTY].each {
def map = [:]
map << ['@type':MUSICMEDIUM_TYPE]
map << ['label':it]
... | Add else clause with return. Only Map and List are interesting | Add else clause with return. Only Map and List are interesting
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
fd2b3420dc971277aa8f66c85941cb2af307ef0d | src/main/groovy/com/github/benmanes/gradle/versions/VersionsPlugin.groovy | src/main/groovy/com/github/benmanes/gradle/versions/VersionsPlugin.groovy | /*
* Copyright 2012-2014 Ben Manes. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright 2012-2014 Ben Manes. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Remove try/catch around tasks.register (that method was added in 4.9) | Remove try/catch around tasks.register (that method was added in 4.9)
Signed-off-by: Alex Saveau <723124b8530f56d61c698ee8e046fd23dfade9b3@gmail.com>
| Groovy | apache-2.0 | ben-manes/gradle-versions-plugin |
3a6f1947043274961648f742a1a743ee276ba8e4 | grails-app/domain/be/cytomine/security/User.groovy | grails-app/domain/be/cytomine/security/User.groovy | package be.cytomine.security
class User extends SecUser {
String firstname
String lastname
String email
Date dateCreated
static constraints = {
firstname blank : false
lastname blank : false
email blank : false
dateCreated blank : false
}
}
| package be.cytomine.security
class User extends SecUser {
String firstname
String lastname
String email
Date dateCreated
static constraints = {
firstname blank : false
lastname blank : false
email (blank : false, email:true)
dateCreated blank : false
}
}
| Add email constraint for user email | Add email constraint for user email
| Groovy | apache-2.0 | cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,cytomine/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,chary... |
d23eaf1a83c0730e562b5f81984b33a10f0f1dd2 | groovy/Support_jobs.groovy | groovy/Support_jobs.groovy | /*
* DSL script to create some support jobs
*/
/*
* Definition of jobs
*/
pipelineJob('FwSupportTools-checkoutOnly') {
description '''<p>This job keeps the <i>FwSupportTools</i> directory up-to-date on the packaging agents.</p>
<p>The job is created by the DSL plugin from <i>Support-jobs.groovy</i> script.<p>'''... | /*
* DSL script to create some support jobs
*/
/*
* Definition of jobs
*/
for (job in [
[name: 'FwSupportTools', branch: 'develop'],
[name: 'ci-builder-scripts', branch: 'master']])
{
pipelineJob("${job.name}-checkoutOnly") {
description """<p>This job keeps the <i>${job.name}</i> directory up-to-date on the... | Add quiet period to support-jobs | Add quiet period to support-jobs
We have to wait a certain time so that the jobs get synced to
GitHub before we try to checkout on the agents.
Change-Id: If6781f2fea36cc21eb1fdf690dc556df0091e77e
| Groovy | mit | sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts |
0b9df12f8d051c4d096db6779ae9ce7183535c14 | whelktool/scripts/cleanups/2020/01/lxl-2868.groovy | whelktool/scripts/cleanups/2020/01/lxl-2868.groovy | PrintWriter failedBibIDs = getReportWriter("failed-to-delete-holdIDs")
PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion")
String where =
"id in (" +
"select id\n" +
"from lddb l\n" +
"where data#>'{@graph,0,technicalNote,0,label}' @> '[\... | PrintWriter failedBibIDs = getReportWriter("failed-to-delete-holdIDs")
PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion")
String where =
"id in (" +
"select id\n" +
"from lddb l\n" +
"where (\n" +
"data#>'{@graph,0,techni... | Fix a cleanup SQL mistake. | Fix a cleanup SQL mistake.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
e90d94971766e487dd65aef169fe9f304a30d499 | src/test/groovy/green/bunny/ExchangeBindSpec.groovy | src/test/groovy/green/bunny/ExchangeBindSpec.groovy | package green.bunny
class ExchangeBindSpec extends IntegrationSpec {
def "binding an exchange to another exchange"(int n) {
given: "a queue and three exchanges"
def q = ch.queue()
def x1 = ch.fanout("x1", durable: false)
def x2 = ch.fanout("x2", durable: false)
def x3 = ch.fanout("x3", durable: ... | package green.bunny
class ExchangeBindSpec extends IntegrationSpec {
def "binding an exchange to another exchange"(int n) {
given: "a queue and three exchanges"
def q = ch.queue()
def x1 = ch.fanout("x1", durable: false)
def x2 = ch.fanout("x2", durable: false)
def x3 = ch.fanout("x3", durable: ... | Delete the queue, just to be more explicit | Delete the queue, just to be more explicit
It is exclusive and would go away with
the connection closure anyway.
| Groovy | apache-2.0 | michaelklishin/green_bunny |
8f07584cfeb41da63db91d70d7486c56a4173f77 | src/main/groovy/com/ofg/reporting_service/controller/LoanApplicationController.groovy | src/main/groovy/com/ofg/reporting_service/controller/LoanApplicationController.groovy | package com.ofg.reporting_service.controller
import com.wordnik.swagger.annotations.Api
import groovy.util.logging.Slf4j
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.b... | package com.ofg.reporting_service.controller
import com.wordnik.swagger.annotations.Api
import groovy.util.logging.Slf4j
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.b... | Add params to new loan application notification | Add params to new loan application notification
| Groovy | apache-2.0 | microhackathon-2015-01-Riga/ReportingService |
7e8fc8352d204456266eb670e53dfc29245462ab | tapestry-ioc/src/test/groovy/ioc/specs/ClasspathScannerImplSpec.groovy | tapestry-ioc/src/test/groovy/ioc/specs/ClasspathScannerImplSpec.groovy | package ioc.specs
import java.io.File;
import java.net.URL;
import org.apache.tapestry5.ioc.Locatable;
import org.apache.tapestry5.ioc.internal.services.ClasspathScannerImpl;
import org.apache.tapestry5.ioc.internal.services.ClasspathURLConverterImpl
import org.apache.tapestry5.ioc.internal.util.InternalUtils;
import... | package ioc.specs
import org.apache.tapestry5.ioc.Locatable
import org.apache.tapestry5.ioc.internal.BasicTypeCoercions
import org.apache.tapestry5.ioc.internal.services.ClasspathScannerImpl
import org.apache.tapestry5.ioc.internal.services.ClasspathURLConverterImpl
import org.apache.tapestry5.ioc.services.ClasspathMa... | Update for code split out of tapestry-ioc | Update for code split out of tapestry-ioc
| Groovy | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
b19d17646e78a3baa667314c6a838ff16343f24c | docker/jenkins-master/init.groovy.d/pingthread.groovy | docker/jenkins-master/init.groovy.d/pingthread.groovy | import jenkins.model.*
// Bump these to 10x the default values to try and alleviate Ping Thread timeouts.
System.setProperty("hudson.slaves.ChannelPinger.pingIntervalSeconds", "3000")
System.setProperty("hudson.slaves.ChannelPinger.pingTimeoutSeconds", "2400")
// vim: tabstop=4 shiftwidth=4 expandtab textwidth=112 co... | import jenkins.model.*
/*
* Disable the Ping Thread to alleviate timeout with slaves, and resultant test failures.
* See also: https://wiki.jenkins.io/display/JENKINS/Ping+Thread
*/
Jenkins.instance.injector.getInstance(hudson.slaves.ChannelPinger.class).@pingIntervalSeconds = -1
Jenkins.instance.injector.getInstan... | Disable Ping thread; hopefully fix disconnections | Disable Ping thread; hopefully fix disconnections
| Groovy | apache-2.0 | prakashsurya/openzfs-ci,prakashsurya/openzfs-ci,openzfs/openzfs-ci,openzfs/openzfs-ci,prakashsurya/openzfs-ci,openzfs/openzfs-ci |
0dedb864428652b1959d978a1abfa5015ee823e6 | src/main/groovy/com/github/aesteve/vertx/groovy/ReadStreamExtension.groovy | src/main/groovy/com/github/aesteve/vertx/groovy/ReadStreamExtension.groovy | package com.github.aesteve.vertx.groovy
import groovy.transform.TypeChecked
import io.vertx.core.Handler
import io.vertx.groovy.core.streams.Pump
import io.vertx.groovy.core.streams.ReadStream
import io.vertx.groovy.core.streams.WriteStream
@TypeChecked
class ReadStreamExtension {
static <T> ReadStream rightShift(R... | package com.github.aesteve.vertx.groovy
import groovy.transform.TypeChecked
import io.vertx.core.Handler
import io.vertx.groovy.core.streams.Pump
import io.vertx.groovy.core.streams.ReadStream
import io.vertx.groovy.core.streams.WriteStream
@TypeChecked
class ReadStreamExtension {
static <T> ReadStream rightShift(R... | Add closure support w/ delegate | Add closure support w/ delegate
| Groovy | apache-2.0 | aesteve/grooveex,aesteve/vertx-groovy-sugar |
57f932c847af5d7b198341cd0b16e36ced0bc10f | master/list-jobversions.groovy | master/list-jobversions.groovy | // we need this script to gerenate a jobname:package-version matching very fast
// if there is a better way to do this, please implement it! :)
hudsonInstance = hudson.model.Hudson.instance
allItems = hudsonInstance.items
pkgJobs = allItems.findAll{job -> job.name.contains("pkg+")}
for (job in pkgJobs) {
lastBuild... | // we need this script to gerenate a jobname:package-version matching very fast
// (relatively ugly, but fast - better ideas for version-handling are welcome!)
hudsonInstance = hudson.model.Hudson.instance
allItems = hudsonInstance.items
pkgJobs = allItems.findAll{job -> job.name.contains("pkg+")}
for (job in pkgJob... | Improve groovy script to never ever fail | Improve groovy script to never ever fail
This was required, because we can now determine installed
and not-installed packages by comparing versions.
| Groovy | mit | tanglu-org/jenkins-tanglu-buildkit,tanglu-org/jenkins-tanglu-buildkit,tanglu-org/jenkins-tanglu-buildkit |
c2eddc1ab4f69c465662f777848567bcbfff52d8 | src/integration-test/groovy/GebConfig.groovy | src/integration-test/groovy/GebConfig.groovy | import org.openqa.selenium.Dimension
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
/*
This is the geb configuration file
@see http://www.gebish.org/manual/current/#configuration
*/
reportsDir = "target/geb-report... | import org.openqa.selenium.Dimension
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver
/*
This is the geb configuration file
@see http://www.gebish.org/manual/current/#configuration
*/
reportsDir = "target/geb-report... | Disable GPU acceleration in chrome headless mode | [IT-1682] Disable GPU acceleration in chrome headless mode
| Groovy | apache-2.0 | iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor |
6296581f5838c1c0af9838e8801b99f93a0baba7 | JasperGrailsPlugin.groovy | JasperGrailsPlugin.groovy | class JasperGrailsPlugin {
def version = "1.9.0"
def grailsVersion = "2.1.0 > *"
def author = "Craig Andrews"
def authorEmail = "candrews@integralblue.com"
def license = "Apache License 2.0"
def issueManagement = [system: "JIRA", url: "http://jira.grails.org/browse/GPJASPER"]
def scm = [url:... | class JasperGrailsPlugin {
def version = "1.10.0-SNAPSHOT"
def grailsVersion = "2.1.0 > *"
def author = "Craig Andrews"
def authorEmail = "candrews@integralblue.com"
def license = "Apache License 2.0"
def issueManagement = [system: "JIRA", url: "http://jira.grails.org/browse/GPJASPER"]
def s... | Set the version to 1.10.0-SNAPSHOT | Set the version to 1.10.0-SNAPSHOT
| Groovy | apache-2.0 | candrews/grails-jasper,candrews/grails-jasper |
7915c2c4cc22f6df3b3ac5de23d74bf9fb0688cb | netci.groovy | netci.groovy | // Import the utility functionality.
import jobs.generation.Utilities;
// Defines a the new of the repo, used elsewhere in the file
def project = GithubProject
def branch = GithubBranchName
// Generate the builds for commit and PRJob
[true, false].each { isPR ->
['Windows_NT', 'Ubuntu16.04', 'OSX',].each { osName... | // Import the utility functionality.
import jobs.generation.Utilities;
// Defines a the new of the repo, used elsewhere in the file
def project = GithubProject
def branch = GithubBranchName
// Generate the builds for commit and PRJob
[true, false].each { isPR ->
['Windows_NT', 'Ubuntu16.04', 'OSX10.12',].each { o... | Update CI to use OSX10.12, needed to move to the 2.0 CLI | Update CI to use OSX10.12, needed to move to the 2.0 CLI
| Groovy | mit | weshaggard/standard,ericstj/standard,ericstj/standard,weshaggard/standard |
813ad70b2d980b2e0e4c6fe4280aaa84cc56c3e5 | escenic-plugin/src/main/groovy/de/ethinking/gradle/contenttype/ContentTypeProcessingException.groovy | escenic-plugin/src/main/groovy/de/ethinking/gradle/contenttype/ContentTypeProcessingException.groovy | package de.ethinking.gradle.contenttype
/**
* Exception occured while processing the content type XML fragments.
* @author jho
*/
class ContentTypeProcessingException extends RuntimeException {
ContentTypeProcessingException(String message) {
super(message)
}
ContentTypeProcessingException(Stri... | /*
* Copyright 2015 eThinking GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... | Add license to exception too. | Add license to exception too.
| Groovy | apache-2.0 | oss-ethinking/gradle-escenic-plugin,oss-ethinking/gradle-escenic-plugin |
013afd5dd21fd14a39c559433c53d8c487f094be | src/test/groovy/org/gradle/plugins/signing/SignOperationSpec.groovy | src/test/groovy/org/gradle/plugins/signing/SignOperationSpec.groovy | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Test for adhoc signing of artifacts. | Test for adhoc signing of artifacts.
| Groovy | apache-2.0 | blindpirate/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,r... |
6520e6fa5a9762e61c5c23e218d09cd884711a4a | netci.groovy | netci.groovy | // Import the utility functionality.
import jobs.generation.Utilities;
def project = 'dotnet/buildtools'
// Define build string
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd /p:SkipTests=true'''
// Generate the builds for debug and releas... | // Import the utility functionality.
import jobs.generation.Utilities;
def project = GithubProject
def branch = GithubBranchName
// Define build string
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd /p:SkipTests=true'''
// Generate the bu... | Simplify and move to the branch CI model | Simplify and move to the branch CI model
| Groovy | mit | stephentoub/buildtools,MattGal/buildtools,joperezr/buildtools,ChadNedzlek/buildtools,dotnet/buildtools,ChadNedzlek/buildtools,ericstj/buildtools,naamunds/buildtools,tarekgh/buildtools,roncain/buildtools,roncain/buildtools,jhendrixMSFT/buildtools,alexperovich/buildtools,MattGal/buildtools,ianhays/buildtools,tarekgh/buil... |
a90b140f8abfc2714896b9c38265cd00699e1cf7 | src/main/groovy/net/rdrei/android/buildtimetracker/reporters/SysInfo.groovy | src/main/groovy/net/rdrei/android/buildtimetracker/reporters/SysInfo.groovy | package net.rdrei.android.buildtimetracker.reporters;
public class SysInfo {
String getOSIdentifier() {
["os.name", "os.version", "os.arch"].collect { System.getProperty(it) }.join(" ")
}
long getMaxMemory() {
MemoryUtil.physicalMemoryAvailable
}
String getCPUIdentifier() {
... | package net.rdrei.android.buildtimetracker.reporters;
public class SysInfo {
String getOSIdentifier() {
["os.name", "os.version", "os.arch"].collect { System.getProperty(it) }.join(" ")
}
long getMaxMemory() {
MemoryUtil.physicalMemoryAvailable
}
String getCPUIdentifier() {
... | Trim sysinfo output on OS X | Trim sysinfo output on OS X
| Groovy | apache-2.0 | passy/build-time-tracker-plugin,gpie3k/build-time-tracker-plugin |
73097ed3b8070679bb4bd3a881cc5135443f64e4 | db/migrate/003_release3/006_change_column_attributes_for_periods.groovy | db/migrate/003_release3/006_change_column_attributes_for_periods.groovy | class ChangeColumnAttributesForPeriods extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
setDefaultValue("periods", "duration_unit", "day");
setDefaultValue("periods", "start_day", "1");
setNullable("periods", "name", true);
}
void down() {
setDefaultVal... | class ChangeColumnAttributesForPeriods extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
setDefaultValue("periods", "duration_unit", "day");
setDefaultValue("periods", "start_day", "1");
setNullable("periods", "name", true);
}
void down() {
setDefaultVal... | Modify so that down() will run | Modify so that down() will run
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1006 0d517254-b314-0410-acde-c619094fa49f
| Groovy | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror |
b3d87ffd9353f1778dd696a5ca543edbe7e9997b | src/main/groovy/de/triplet/gradle/play/TaskHelper.groovy | src/main/groovy/de/triplet/gradle/play/TaskHelper.groovy | package de.triplet.gradle.play
import com.google.api.client.http.AbstractInputStreamContent
import com.google.api.client.http.FileContent
class TaskHelper {
def static readAndTrimFile(File file, int maxCharLength) {
def message = ""
if (file.exists()) {
message = file.text
... | package de.triplet.gradle.play
import com.google.api.client.http.AbstractInputStreamContent
import com.google.api.client.http.FileContent
class TaskHelper {
def static readAndTrimFile(File file, int maxCharLength) {
def message = ""
if (file.exists()) {
message = file.text
... | Fix upload order of the screenshots | Fix upload order of the screenshots | Groovy | mit | Triple-T/gradle-play-publisher,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher |
c7e4d19442f0d831354f4776ded80b663993690d | src/test/resources/core/Lambda_01x.groovy | src/test/resources/core/Lambda_01x.groovy | assert 9 == [1, 2, 3].stream().map((e) -> e + 1).reduce(0, (r, e) -> r + e)
assert 9 == [1, 2, 3].stream().map((e) -> e + 1).reduce(0, (r, e) -> {r + e})
assert 32 == ((e) -> e + 1)(2) + ((e, f) -> e + f)(2, 3) + ((e, f, g) -> e * f * g)(2, 3, 4)
assert 24 == ((e, f, g) -> {e * f * g})(2, 3, 4) | assert 9 == [1, 2, 3].stream().map((e) -> e + 1).reduce(0, (r, e) -> r + e)
assert 9 == [1, 2, 3].stream().map((e) -> e + 1).reduce(0, (r, e) -> {r + e})
assert 32 == ((e) -> e + 1)(2) + ((e, f) -> e + f)(2, 3) + ((e, f, g) -> e * f * g)(2, 3, 4)
assert 24 == ((e, f, g) -> {e * f * g})(2, 3, 4)
assert 24 == ((int e, i... | Add more test cases for lambda expression | Add more test cases for lambda expression
| Groovy | apache-2.0 | danielsun1106/groovy-parser,danielsun1106/groovy-parser |
d5db3eb46988a25271743228ec2164d6d1b6c58f | whelktool/scripts/2018/10/delete-bad-linkserver-import.groovy | whelktool/scripts/2018/10/delete-bad-linkserver-import.groovy | // Assuming the full list in: länkserver-borttagning_MASTER.tsv (but with column names removed)
// the holdids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f2 > hold-IDs
// the bibids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f1 | sort -u > bib-IDs
PrintWriter fai... | // Assuming the full list in: länkserver-borttagning_MASTER.tsv (but with column names removed)
// the holdids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f2 > hold-IDs
// the bibids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f1 | sort -u > bib-IDs
PrintWriter fai... | Update linkserver cleanup script to use getReportWriter(). | Update linkserver cleanup script to use getReportWriter().
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
7658d7e553b1c18f39f23fb77b8b3aaa2cc41983 | ci/checkAppCatalogLight.groovy | ci/checkAppCatalogLight.groovy | import hudson.model.Result
import jenkins.model.Jenkins
def check_light = build.buildVariables["CHECK_LIGHT"]
if (check_light == "false") {
print "\n* Not checking the App Catalog light! *\n\n"
} else if (Jenkins.instance.getItem('master-app-catalog-continuous').lastCompletedBuild.result != Result.SUCCESS) {
p... | import hudson.model.Result
import jenkins.model.Jenkins
def jobName = build.buildVariables["DOWNSTREAM_JOB_NAME"]
def job = Jenkins.instance.getItem(jobName)
if (!job) {
println "\n*** CAN'T FIND JOB ${jobName}! ***\n\n"
return 1
}
def check_light = build.buildVariables["CHECK_LIGHT"]
if (check_light == "fals... | Resolve job via job_name parameter rather than hard-coded value | S69214: Resolve job via job_name parameter rather than hard-coded value
| Groovy | mit | wrackzone/app-catalog,kcorkan/app-catalog,wrackzone/app-catalog,JackBaxter/test-report,KilobytesandBits/app-catalog,JackBaxter/test-report,wrackzone/app-catalog,travisc5/app-catalog,JackBaxter/test-report,RallyApps/app-catalog,travisc5/app-catalog,KilobytesandBits/app-catalog,RallyApps/app-catalog,KilobytesandBits/app-... |
2b51d660e17b0a4cb7260f4b22e6fbabacb2c15d | modules/govuk_jenkins/files/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy | modules/govuk_jenkins/files/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy | #!/usr/bin/env groovy
/*
* Common functions for GOVUK Jenkinsfiles
*/
/**
* Push tags to Github repository
*
* @param repository Github repository
* @param branch Branch name
* @param tag Tag name
*/
def pushTag(String repository, String branch, String tag) {
if (branch == 'master'){
echo "Tagging alph... | #!/usr/bin/env groovy
/*
* Common functions for GOVUK Jenkinsfiles
*/
/**
* Push tags to Github repository
*
* @param repository Github repository
* @param branch Branch name
* @param tag Tag name
*/
def pushTag(String repository, String branch, String tag) {
if (branch == 'master'){
sshagent(['govuk-c... | Fix CI Groovy pushTag function to update release branch | Fix CI Groovy pushTag function to update release branch
In our CI pipeline we need to update the release branch of
each repository every time we push a release tag. This is
needed for automated deployments, so the release branch
always contains a version of the code that has passed all
the tests.
| Groovy | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet |
2f70cc67f581cd40b2617b27cde46730fea79c9c | maven/bnd-indexer-maven-plugin/src/test/resources/integration-test/test/setup.groovy | maven/bnd-indexer-maven-plugin/src/test/resources/integration-test/test/setup.groovy | import java.nio.file.*;
Path source = Paths.get("${pluginBasedir}/src/test/resources/integration-test/local-repo/org/objenesis");
Path target = Paths.get("${pluginBuildDirectory}/integration-test/repo/org/objenesis");
target.deleteDir();
source.toFile().eachFileRecurse({ f ->
Path s = Paths.get(f.toURI());
... | import java.nio.file.*;
Path source = Paths.get("${pluginBasedir}/src/test/resources/integration-test/local-repo/org/objenesis");
Path target = Paths.get("${pluginBuildDirectory}/integration-test/repo/org/objenesis");
target.deleteDir();
source.toFile().eachFileRecurse({ f ->
Path s = Paths.get(f.toURI());
... | Fix file content comparison to work on azure pipelines | maven: Fix file content comparison to work on azure pipelines
Signed-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>
| Groovy | apache-2.0 | psoreide/bnd,psoreide/bnd,psoreide/bnd |
3c2acbbaa5ec32d64d685d79b9136aeaa421ec8e | vars/jplBuildAPK.groovy | vars/jplBuildAPK.groovy | /**
Build APK with Fastlane within docker into Jenkins, based on jpl project configuration
Parameters:
* jplConfig project config class
*/
def call(jplConfig) {
timestamps {
ansiColor('xterm') {
sh "ci-scripts/.jenkins_library/bin/buildApk.sh --sdkVersion=${jplConfig.projectName} --comm... | /**
Build APK with Fastlane within docker into Jenkins, based on jpl project configuration
Parameters:
* jplConfig project config class
*/
def call(jplConfig,command='') {
if (command == '') {
command="fastlane ${jplConfig.laneName} versionSuffix:${jplConfig.versionSuffix}"
}
timestamps {
... | Add command parameter to builApk | Add command parameter to builApk
| Groovy | mit | pedroamador/jenkins-pipeline-library,red-panda-ci/jenkins-pipeline-library |
05630fcc87dbe186dd9896564be836c5db4201c3 | src/recipes/git-commit.groovy | src/recipes/git-commit.groovy | def commitId
try {
commitId = 'git rev-parse --verify HEAD'.execute().text.trim()
} catch (ignore) {
// ignore
}
if (commitId) {
buildScan.value "Git Commit ID", commitId
if (params.baseUrl) {
buildScan.link 'Sources', "${params.baseUrl}/$commitId"
}
}
| def commitId
try {
commitId = ['git', 'rev-parse' ,'--verify' , 'HEAD'].execute().text.trim()
} catch (ignore) {
// ignore
}
if (commitId) {
buildScan.value "Git Commit ID", commitId
if (params.baseUrl) {
buildScan.link 'Sources', "${params.baseUrl}/$commitId"
}
}
| Use list to execute usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> | Use list to execute usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command... | Groovy | apache-2.0 | melix/gradle-buildscan-recipes |
ed3b1c2532f7d6c972536c0ce80e287f5e623128 | src/main/groovy/org/rackspace/gdeproxy/HandlerContext.groovy | src/main/groovy/org/rackspace/gdeproxy/HandlerContext.groovy | package org.rackspace.gdeproxy
class HandlerContext {
// boolean requestWasChunked;
// boolean sendChunkedResponse = false;
boolean sendDefaultResponseHeaders = false;
}
| package org.rackspace.gdeproxy
class HandlerContext {
// boolean requestWasChunked;
// boolean sendChunkedResponse = false;
boolean sendDefaultResponseHeaders = true;
}
| Send default response headers by default. | Send default response headers by default.
| Groovy | mit | rackerlabs/deproxy |
52f2ff944d372eb1af9b2f0c6e7c8633b7908f89 | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy | package org.apache.tapestry5.integration.app3
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
class PageCatalogTests extends TapestryCoreTestCase
{
/** There's not a lot we can do, because some of the pages in the test application have deliberate errors. */
@Tes... | package org.apache.tapestry5.integration.app3
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.apache.tapestry5.test.TapestryTestConfiguration
import org.testng.annotations.Test
@TapestryTestConfiguration(webAppFolder = "src/test/app1")
class PageCatalogTests extends TapestryCoreTestCase
{
... | Allow test to run outside of suite | Allow test to run outside of suite
| Groovy | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
f31de2723411024701da2cb503ed64eadd6313c2 | vars/jplCheckoutSCM.groovy | vars/jplCheckoutSCM.groovy | /**
Checkout SCM
Get the code from SCM and init / update submodules
Leave the repository on the actual branch, instead of "deatached"
Parameters:
* jplConfig project config class
*/
def call(jplConfig) {
timestamps {
ansiColor('xterm') {
script {
// The commented co... | /**
Checkout SCM
Get the code from SCM and init / update submodules
Leave the repository on the actual branch, instead of "deatached"
Parameters:
* jplConfig project config class
*/
def call(jplConfig) {
timestamps {
ansiColor('xterm') {
script {
// The commented co... | Make ci-scripts binary executables after download | Make ci-scripts binary executables after download
| Groovy | mit | pedroamador/jenkins-pipeline-library,red-panda-ci/jenkins-pipeline-library |
5486df7c4789e6a31f9d44c576588c38a0bc9d77 | JcaptchaGrailsPlugin.groovy | JcaptchaGrailsPlugin.groovy | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | Set the version to 1.5.0 | Set the version to 1.5.0
| Groovy | apache-2.0 | candrews/grails-jcaptcha-plugin |
b47feb8122cbfb9b56ab135402a4be0f94bbc46c | mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy | mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy | import static org.junit.Assert.assertFalse
def file = new File(basedir, "build.log")
assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database")
assertFalse 'MariaDB4j Should not attempt to stop', file.text.contains('Shutdown Hook Deletion Thread for Temporary DB')
| import static org.junit.Assert.assertFalse
def file = new File(basedir, "build.log")
assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database")
assertFalse 'MariaDB4j Should not attempt to stop', file.text.contains('ShutdownHook quietly deleting temporary DB data directory')
| Update assertion to use current shutdown thread log message | Update assertion to use current shutdown thread log message
| Groovy | apache-2.0 | vorburger/MariaDB4j,vorburger/MariaDB4j |
3584f8360fd7b0597d013273c7e582d20cf5cf34 | grails-app/conf/DataSource.groovy | grails-app/conf/DataSource.groovy | environments {
development {
grails {
neo4j {
type = "rest"
location = "http://localhost:7474/db/data/"
}
}
}
test {
grails {
neo4j {
type = "rest"
location = "http://localhost:7474/db... | environments {
development {
grails {
neo4j {
type = "rest"
location = "http://localhost:7474/db/data/"
}
}
}
test {
grails {
neo4j {
type = "rest"
location = "http://localhost:7474/db... | Switch to GrapheneDB addon for neo4j | Switch to GrapheneDB addon for neo4j
| Groovy | bsd-2-clause | luanne/flavorwocky,luanne/flavorwocky,luanne/flavorwocky |
41068c4f74ff6b0b012f84e350f69323f6ba505e | src/main/groovy/kotka/gradle/utils/DelayedTransformation.groovy | src/main/groovy/kotka/gradle/utils/DelayedTransformation.groovy | package kotka.gradle.utils
import org.codehaus.groovy.ast.ASTNode
import org.codehaus.groovy.ast.ClassHelper
import org.codehaus.groovy.ast.ClassNode
import org.codehaus.groovy.ast.MethodNode
import org.codehaus.groovy.ast.Parameter
import org.codehaus.groovy.ast.expr.FieldExpression
import org.codehaus.groovy.ast.exp... | package kotka.gradle.utils
import org.codehaus.groovy.ast.ASTNode
import org.codehaus.groovy.ast.ClassHelper
import org.codehaus.groovy.ast.ClassNode
import org.codehaus.groovy.ast.MethodNode
import org.codehaus.groovy.ast.Parameter
import org.codehaus.groovy.ast.expr.FieldExpression
import org.codehaus.groovy.ast.exp... | Make Delayed field getter always public | Make Delayed field getter always public
| Groovy | mit | kotkade/gradle-utils |
f83aba149557b06595c3766a11cbd214d9f3c682 | groovy/edit-description.groovy | groovy/edit-description.groovy | def str_view = "QA Maint"
def view = Hudson.instance.getView(str_view)
//copy all projects of a view
for(item in view.getItems())
{
//create the new project name
item.description = '<a href="http://jenkins.qa1.eucalyptus-systems.com/job/' + item.getName() + '/lastBuild/downstreambuildview/?">Latest Result</a><br... | def str_view = "QA Mainline"
def view = Hudson.instance.getView(str_view)
//copy all projects of a view
for(item in view.getItems())
{
//Get all properties of the project
prop = item.getProperty(ParametersDefinitionProperty.class)
item.description = '<a href="http://jenkins.qa1.eucalyptus-systems.com/job/' + i... | Include a property in the description | Include a property in the description
| Groovy | apache-2.0 | eucalyptus/micro-qa,eucalyptus/micro-qa,eucalyptus/micro-qa,eucalyptus/micro-qa |
b87b77532142f814e449e64aed397c112c7cd7b5 | src/test/groovy/gldapo/PasswordOperationsIntegrationTest.groovy | src/test/groovy/gldapo/PasswordOperationsIntegrationTest.groovy | package gldapo
import gldapo.schema.annotation.GldapoNamingAttribute
public class PasswordOperationsIntegrationTest extends AbstractGldapoIntegrationTest
{
def schemaClasses = [PasswordOperationsIntegrationTestPerson]
def newPerson(name, password) {
new PasswordOperationsIntegrationTestPerson(
... | package gldapo
import gldapo.schema.annotation.GldapoSynonymFor
import gldapo.schema.annotation.GldapoNamingAttribute
public class PasswordOperationsIntegrationTest extends AbstractGldapoIntegrationTest
{
def schemaClasses = [PasswordOperationsIntegrationTestPerson]
def newPerson(name, password) {
new... | Test for reading an object with an existing password | [GLDP-77] Test for reading an object with an existing password
| Groovy | apache-2.0 | alkemist/Gldapo |
f36d7f9217d7024adb2f4b638bff238567b56b57 | src/test/groovy/se/su/it/svc/commons/LdapAttributeValidatorSpec.groovy | src/test/groovy/se/su/it/svc/commons/LdapAttributeValidatorSpec.groovy | package se.su.it.svc.commons
import spock.lang.Shared
import spock.lang.Specification
class LdapAttributeValidatorSpec extends Specification
{
@Shared
LdapAttributeValidator lav
def setup()
{
lav = new LdapAttributeValidator()
}
def "checkValidMailAddress: email patterns"()
{
... | package se.su.it.svc.commons
import spock.lang.Shared
import spock.lang.Specification
import spock.lang.Unroll
class LdapAttributeValidatorSpec extends Specification
{
@Shared
LdapAttributeValidator lav
def setup()
{
lav = new LdapAttributeValidator()
}
@Unroll
def "validateUid: ... | Add unit test for validateUid. | IDM-1274: Add unit test for validateUid.
| Groovy | bsd-3-clause | stockholmuniversity/sukat-cxf-svc,stockholmuniversity/sukat-cxf-svc,janj-su/sukat-cxf-svc,janj-su/sukat-cxf-svc |
769498ec4d05aab224728de4f04a9e35514b7092 | src/main/groovy/org/asciidoctor/gradle/AsciidoctorBackend.groovy | src/main/groovy/org/asciidoctor/gradle/AsciidoctorBackend.groovy | /*
* Copyright 2013-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright 2013-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Add epub3 as a built-in backend name | Add epub3 as a built-in backend name
| Groovy | apache-2.0 | ysb33r/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,mojavelinux/asciidoctor-gradle-plugi... |
477fb62e6f140aac0452d935f82c3e5c3517d4cc | examples/bookStore/src/test/groovy/base/AbstractRelatedUnitTests.groovy | examples/bookStore/src/test/groovy/base/AbstractRelatedUnitTests.groovy | package base
import abstractclass.ConcreteSubClass
import abstractclass.RelatedToAbstract
import grails.buildtestdata.BuildDataTest
import spock.lang.Specification
class AbstractRelatedUnitTests extends Specification implements BuildDataTest {
void testSuccessfulBuild() {
mockDomains(RelatedToAbstract, Co... | package base
import abstractclass.ConcreteSubClass
import abstractclass.RelatedToAbstract
import grails.buildtestdata.BuildDataTest
import grails.buildtestdata.TestDataConfigurationHolder
import spock.lang.Specification
class AbstractRelatedUnitTests extends Specification implements BuildDataTest {
void setup() {... | Reset TDCH for abstract test | Reset TDCH for abstract test
| Groovy | apache-2.0 | longwa/build-test-data,tednaleid/build-test-data |
de6dc4a2e3304ea6af6f4a5a0554d12362b51a68 | src/main/groovy/jetpacker/api/controller/GeneratorController.groovy | src/main/groovy/jetpacker/api/controller/GeneratorController.groovy | package jetpacker.api.controller
import org.springframework.web.bind.annotation.RestController
/**
* Created by donny on 30/10/16.
*/
@RestController
class GeneratorController {
}
| package jetpacker.api.controller
import jetpacker.api.cache.Jetpacker
import jetpacker.api.service.CacheService
import jetpacker.api.service.GeneratorService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annot... | Add endpoint '/items' which returns available items for generator | Add endpoint '/items' which returns available items for generator
| Groovy | mit | jetpacker/jetpacker-api |
f043b4f90191f0ff5cf49194ee02fcbee32e85b1 | src/main/groovy/com/github/aesteve/vertx/groovy/HttpServerRequestExtension.groovy | src/main/groovy/com/github/aesteve/vertx/groovy/HttpServerRequestExtension.groovy | package com.github.aesteve.vertx.groovy
import groovy.transform.TypeChecked
import io.vertx.core.Handler
import io.vertx.core.http.HttpMethod
import io.vertx.groovy.core.MultiMap
import io.vertx.groovy.core.http.HttpServerRequest
@TypeChecked
class HttpServerRequestExtension {
static MultiMap getParams(HttpServerRe... | package com.github.aesteve.vertx.groovy
import groovy.transform.TypeChecked
import io.vertx.core.Handler
import io.vertx.core.http.HttpMethod
import io.vertx.groovy.core.MultiMap
import io.vertx.groovy.core.buffer.Buffer
import io.vertx.groovy.core.http.HttpServerRequest
@TypeChecked
class HttpServerRequestExtension ... | Add Closure support w/ delegate | Add Closure support w/ delegate
| Groovy | apache-2.0 | aesteve/grooveex,aesteve/vertx-groovy-sugar |
43873fae814a5d57d4962b4eb6fd18b099c7cdee | src/test/groovy/org/codenarc/rule/unused/UnusedPrivateFieldRuleTest.groovy | src/test/groovy/org/codenarc/rule/unused/UnusedPrivateFieldRuleTest.groovy | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Fix a copy-paste error in javadoc | Fix a copy-paste error in javadoc
| Groovy | apache-2.0 | erdi/CodeNarc,erdi/CodeNarc,darxriggs/CodeNarc,CodeNarc/CodeNarc,darxriggs/CodeNarc,CodeNarc/CodeNarc,erdi/CodeNarc,erdi/CodeNarc |
e2b78f13fe45f0396f7b6df94a6efb8e38aa48ba | functional-tests/src/test/groovy/modules/HeaderModule.groovy | functional-tests/src/test/groovy/modules/HeaderModule.groovy | /*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distrib... | /*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distrib... | Update for new keycloak ID | Update for new keycloak ID
| Groovy | apache-2.0 | bcgov/gwells,bcgov/gwells,bcgov/gwells,bcgov/gwells |
dd360c1d20504bdd02b42c6edb077b8b6cec3870 | smuggler-plugin/src/main/groovy/io/mironov/smuggler/plugin/SmugglerPlugin.groovy | smuggler-plugin/src/main/groovy/io/mironov/smuggler/plugin/SmugglerPlugin.groovy | package io.mironov.smuggler.plugin
import org.gradle.api.Plugin
import org.gradle.api.Project
public class SmugglerPlugin implements Plugin<Project> {
@Override
public void apply(final Project project) {
onPrepareDependencies(project)
onPrepareTransforms(project)
}
private static void onPrepareDepend... | package io.mironov.smuggler.plugin
import org.gradle.api.Plugin
import org.gradle.api.Project
public class SmugglerPlugin implements Plugin<Project> {
@Override
public void apply(final Project project) {
onPrepareDependencies(project)
onPrepareTransforms(project)
}
private static void onPrepareDepend... | Add runtime as androidTestCompile dependency | Add runtime as androidTestCompile dependency
| Groovy | mit | nsk-mironov/smuggler |
3286175cd1dc9cb67c7cd014ddadb9d304ed91b8 | extra/src/main/java/brooklyn/entity/group/AbstractMembershipTrackingPolicy.groovy | extra/src/main/java/brooklyn/entity/group/AbstractMembershipTrackingPolicy.groovy | package brooklyn.entity.group
import java.net.InetAddress
import java.util.List
import java.util.Map
import brooklyn.entity.Entity
import brooklyn.entity.basic.AbstractGroup
import brooklyn.location.MachineLocation
import brooklyn.management.SubscriptionHandle
import brooklyn.policy.basic.AbstractPolicy
import com.g... | package brooklyn.entity.group
import java.net.InetAddress
import java.util.List
import java.util.Map
import brooklyn.entity.Entity
import brooklyn.entity.basic.AbstractGroup
import brooklyn.location.MachineLocation
import brooklyn.management.SubscriptionHandle
import brooklyn.policy.basic.AbstractPolicy
import com.g... | Change Group initialisation to call onEntityAdded for all members | Change Group initialisation to call onEntityAdded for all members
| Groovy | apache-2.0 | aledsage/legacy-brooklyn,andreaturli/legacy-brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,bmwshop/brooklyn,andreaturli/legacy-brooklyn,bmwshop/brooklyn,neykov/incubator-brooklyn,aledsage/legacy-brooklyn,andreaturli/legacy-brooklyn... |
b370ce85c7141697c44759bd2f8af26e145edacc | src/main/groovy/org/xtext/gradle/XtextPlugin.groovy | src/main/groovy/org/xtext/gradle/XtextPlugin.groovy | package org.xtext.gradle;
import javax.inject.Inject;
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.internal.file.FileResolver
import org.gradle.api.plugins.BasePlugin
import org.xtext.gradle.tasks.XtextExtension
import org.xtext.gradle.tasks.XtextGenerate
class XtextPlugin impleme... | package org.xtext.gradle;
import javax.inject.Inject;
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.internal.file.FileResolver
import org.gradle.api.plugins.BasePlugin
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.JavaPluginConvention;
import org.gradle.api... | Add main java sources to Xtext sources if a language needs Java and the Java plugin is found | Add main java sources to Xtext sources if a language needs Java and the Java plugin is found
| Groovy | epl-1.0 | franzbecker/xtext-gradle-plugin,franzbecker/xtext-gradle-plugin,xtext/xtext-gradle-plugin |
51e6470664782768a78b8895dd08cbff85cd38b4 | jenkins/docker/madcore_docker_image_build.groovy | jenkins/docker/madcore_docker_image_build.groovy | job('madcore.docker.image.build') {
parameters {
stringParam('REPO_URL', '', '')
stringParam('APP_NAME', '', '')
}
steps {
def command = """#!/bin/bash
pushd /opt/madcore/bin
python docker_image_build.py "\$REPO_URL" "\$APP_NAME"
popd
"""
shell(command)
}
}
| job('madcore.docker.image.build') {
wrappers { preBuildCleanup() }
parameters {
stringParam('REPO_URL', '', '')
stringParam('APP_NAME', '', '')
}
steps {
def command = """#!/bin/bash
pushd /opt/madcore/bin
python docker_image_build.py "\$REPO_URL" "\$APP_NAME"
popd
"""
... | Clear docker build workspace before build | Clear docker build workspace before build
| Groovy | mit | madcore-ai/core,madcore-ai/core |
002bc013285c8dde01f28ceb77094b58786ab26a | subprojects/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/MicronautPluginsSmokeTest.groovy | subprojects/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/MicronautPluginsSmokeTest.groovy | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Use the version of Micronaut and not the version of the Micronaut Gradle plugin | Use the version of Micronaut and not the version of the Micronaut Gradle plugin
| Groovy | apache-2.0 | gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira... |
0d2f182b8e4e7f959e02654d7ddd6da91ed6e2a5 | src/integTest/groovy/com/github/sherter/googlejavaformatgradleplugin/AbstractIntegrationSpec.groovy | src/integTest/groovy/com/github/sherter/googlejavaformatgradleplugin/AbstractIntegrationSpec.groovy | package com.github.sherter.googlejavaformatgradleplugin
import com.github.sherter.googlejavaformatgradleplugin.test.Project
import org.gradle.testkit.runner.GradleRunner
import org.junit.Rule
import org.junit.rules.TemporaryFolder
import spock.lang.Specification
abstract class AbstractIntegrationSpec extends Specific... | package com.github.sherter.googlejavaformatgradleplugin
import com.github.sherter.googlejavaformatgradleplugin.test.Project
import org.gradle.testkit.runner.GradleRunner
import org.junit.Rule
import org.junit.rules.TemporaryFolder
import spock.lang.Specification
abstract class AbstractIntegrationSpec extends Specific... | Increase max heap size of testkit daemon | Increase max heap size of testkit daemon
On Travis the testkit daemon sometimes disappears unexpectedly. It is
not possible to turn the daemon off without losing functionality (see
https://discuss.gradle.org/t/testkit-how-to-turn-off-daemon/17843). However,
increasing the max heap size of the testkit daemon seems to h... | Groovy | mit | sherter/google-java-format-gradle-plugin,sherter/google-java-format-gradle-plugin |
806a04c3232228e4c8d0a2c3a7881b9a7471120a | src/integTest/groovy/com/bmuschko/gradle/docker/tasks/container/DockerStartContainerIntegrationTest.groovy | src/integTest/groovy/com/bmuschko/gradle/docker/tasks/container/DockerStartContainerIntegrationTest.groovy | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Remove test case as container ID would not exist without previous setup. | Remove test case as container ID would not exist without previous setup.
| Groovy | apache-2.0 | cdancy/gradle-docker-plugin,llamahunter/gradle-docker-plugin,odybour/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,mjacques/gradle-docker-plugin,childnode/gradle-docker-plugin,llamahunter/gradle-docker-plugin,bmuschko/gradle-docker-plugin,cdancy/gradle-docker-plugin,orzeh/gradle-docke... |
b3ae76dd077024ab390dd4052a1c0dc56728d607 | src/main/groovy/nebula/plugin/release/git/opinion/TimestampUtil.groovy | src/main/groovy/nebula/plugin/release/git/opinion/TimestampUtil.groovy | /*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Change precision of immutable snapshot to YYYYMMddHHmmss | Change precision of immutable snapshot to YYYYMMddHHmmss
| Groovy | apache-2.0 | nebula-plugins/nebula-release-plugin |
13baed3ae8629885f42f92de9b7ca95dd2b1c409 | src/main/groovy/edu/oregonstate/mist/api/jsonapi/IOExceptionMapper.groovy | src/main/groovy/edu/oregonstate/mist/api/jsonapi/IOExceptionMapper.groovy | package edu.oregonstate.mist.api.jsonapi
import edu.oregonstate.mist.api.Error
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import javax.ws.rs.core.Response
import javax.ws.rs.ext.ExceptionMapper
import javax.ws.rs.ext.Provider
/**
* Created by georgecrary on 8/4/16.
*/
@Provider
class IOExceptionMapper ... | package edu.oregonstate.mist.api.jsonapi
import edu.oregonstate.mist.api.Error
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import javax.ws.rs.core.Response
import javax.ws.rs.ext.ExceptionMapper
import javax.ws.rs.ext.Provider
/**
* Created by georgecrary on 8/4/16.
*/
@Provider
class IOExceptionMapper ... | Fix IOExceptionMApper's error code to match d.o.e error ref | Fix IOExceptionMApper's error code to match d.o.e error ref
Fix IOExceptionMApper's error code to match d.o.e error ref
| Groovy | agpl-3.0 | osu-mist/locations-api,osu-mist/meal-card-api,osu-mist/locations-frontend-api,osu-mist/web-api-skeleton,osu-mist/osu-events-api,osu-mist/osu-events-api,osu-mist/alexa-api,osu-mist/locations-frontend-api |
2eeaf7a14a41a27513e5d292ea3b4436afba7e8d | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add task output cache cross-build test with enterprise-large | Add task output cache cross-build test with enterprise-large
+review REVIEW-6274
| Groovy | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate... |
e39128e3272463cebc769b3337bf6d6d6671f857 | whelktool/scripts/analysis/validator-statistics.groovy | whelktool/scripts/analysis/validator-statistics.groovy | import whelk.JsonValidator
import whelk.JsonValidator.Error as JsonError
import whelk.util.Statistics
class Script {
static PrintWriter report
static Statistics s = new Statistics(3).printOnShutdown()
static JsonValidator v
static boolean isInitialized = false
}
Script.report = getReportWriter("report... | import whelk.JsonLdValidator
import whelk.JsonLdValidator.Error as JsonError
import whelk.util.Statistics
class Script {
static PrintWriter report
static Statistics s = new Statistics(3).printOnShutdown()
static JsonValidator v
static boolean isInitialized = false
}
Script.report = getReportWriter("re... | Rename validator class in analysis script | Rename validator class in analysis script
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
25bddb7299b477caa9b44c8787a9b871a20ddd4a | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy | // Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | // Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Improve test to dismiss the alert | TAP5-1421: Improve test to dismiss the alert
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1152051 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | agileowl/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
f2cf9a12b53aeb4ddd3ce093449a7ace94f8775e | core/src/main/resources/jenkins/security/s2m/MasterKillSwitchConfiguration/config.groovy | core/src/main/resources/jenkins/security/s2m/MasterKillSwitchConfiguration/config.groovy | package jenkins.security.s2m.MasterKillSwitchConfiguration
def f=namespace(lib.FormTagLib)
if (instance.isRelevant()) {
f.optionalBlock(field:"masterToSlaveAccessControl", title:_("Enable Slave \u2192 Master Access Control")) {
f.nested() {
raw _("Rules can be tweaked <a href='${rootURL}/admin... | package jenkins.security.s2m.MasterKillSwitchConfiguration
def f=namespace(lib.FormTagLib)
if (instance.isRelevant()) {
f.optionalBlock(field:"masterToSlaveAccessControl", title:_("Enable Agent \u2192 Master Access Control")) {
f.nested() {
raw _("Rules can be tweaked <a href='${rootURL}/admin... | Update a reference to "Agent => Master Access Control" | Update a reference to "Agent => Master Access Control"
Considering all the verbiage updates that happened last year, this reference
appears to have been missed and as such can be confusing to newer users.
| Groovy | mit | DanielWeber/jenkins,kohsuke/hudson,rsandell/jenkins,viqueen/jenkins,wuwen5/jenkins,v1v/jenkins,aldaris/jenkins,rsandell/jenkins,v1v/jenkins,dariver/jenkins,kohsuke/hudson,azweb76/jenkins,olivergondza/jenkins,andresrc/jenkins,godfath3r/jenkins,godfath3r/jenkins,lilyJi/jenkins,olivergondza/jenkins,ajshastri/jenkins,oleg-... |
481629c25610316addf9a7f22f336d31a50b4d85 | buildSrc/src/main/groovy/org/codehaus/groovy/gradle/WriteExtensionDescriptorTask.groovy | buildSrc/src/main/groovy/org/codehaus/groovy/gradle/WriteExtensionDescriptorTask.groovy | /*
* Copyright 2008-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2008-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Fix place where extension module file should be written | Fix place where extension module file should be written
| Groovy | apache-2.0 | aim-for-better/incubator-groovy,pickypg/incubator-groovy,ebourg/incubator-groovy,adjohnson916/incubator-groovy,bsideup/incubator-groovy,guangying945/incubator-groovy,kenzanmedia/incubator-groovy,groovy/groovy-core,nkhuyu/incubator-groovy,yukangguo/incubator-groovy,aaronzirbes/incubator-groovy,groovy/groovy-core,jwagenl... |
14d0650ba2bfe5be7aa7013c9a12a48ff57e714e | micro-infra-spring-base/src/test/groovy/com/ofg/infrastructure/web/resttemplate/fluent/ServiceRestClientCustomizationSpec.groovy | micro-infra-spring-base/src/test/groovy/com/ofg/infrastructure/web/resttemplate/fluent/ServiceRestClientCustomizationSpec.groovy | package com.ofg.infrastructure.web.resttemplate.fluent
import com.ofg.infrastructure.base.BaseConfiguration
import com.ofg.infrastructure.web.resttemplate.fluent.common.response.executor.RestExecutor
import com.ofg.infrastructure.web.resttemplate.fluent.config.ServiceRestClientConfigurer
import com.ofg.infrastructure.... | package com.ofg.infrastructure.web.resttemplate.fluent
import com.ofg.infrastructure.base.BaseConfiguration
import com.ofg.infrastructure.base.MvcCorrelationIdSettingIntegrationSpec
import com.ofg.infrastructure.web.resttemplate.fluent.config.ServiceRestClientConfigurer
import com.ofg.infrastructure.web.resttemplate.f... | Switch dependencies resolving in stub-runner to jCenter | Switch dependencies resolving in stub-runner to jCenter
| Groovy | apache-2.0 | RemboL/micro-infra-spring,sn0wolf/micro-infra-spring,sn0wolf/micro-infra-spring,adrian-wozniak/micro-infra-spring,sn0wolf/micro-infra-spring,RemboL/micro-infra-spring,dstepanov/micro-infra-spring,ychulovskyy/micro-infra-spring,spencergibb/micro-infra-spring,4finance/micro-infra-spring,4finance/micro-infra-spring,adrian... |
c77560e5ad6643ce511f2bb535752825ef2d5564 | subprojects/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/verbose/VerboseConsoleVerboseRenderingFunctionalTest.groovy | subprojects/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/verbose/VerboseConsoleVerboseRenderingFunctionalTest.groovy | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Deal with java7 deprecation warnings | Deal with java7 deprecation warnings
| Groovy | apache-2.0 | blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,robin... |
e411c994d2a47872067c041fcb41c5454de350c2 | muon-transport-amqp/src/test/groovy/io/muoncore/extension/amqp/AmqpMessageTransformersSpec.groovy | muon-transport-amqp/src/test/groovy/io/muoncore/extension/amqp/AmqpMessageTransformersSpec.groovy | package io.muoncore.extension.amqp
import io.muoncore.protocol.requestresponse.RRPTransformers
import io.muoncore.transport.TransportInboundMessage
import io.muoncore.transport.TransportOutboundMessage
import spock.lang.Specification
class AmqpMessageTransformersSpec extends Specification {
def "outboundToQueue"... | package io.muoncore.extension.amqp
import io.muoncore.protocol.requestresponse.RRPTransformers
import io.muoncore.transport.TransportInboundMessage
import io.muoncore.transport.TransportOutboundMessage
import spock.lang.Specification
class AmqpMessageTransformersSpec extends Specification {
def "outboundToQueue"... | Update with transport event consturctor update. | Update with transport event consturctor update.
| Groovy | apache-2.0 | microserviceux/muon-java,microserviceux/muon-java |
544ccc194e5baa37fa85c19b0cc63b1dbe6f518e | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/JavaProjectCrossVersionIntegrationTest.groovy | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/JavaProjectCrossVersionIntegrationTest.groovy | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Fix removed “usePlugin()” method usage. | Fix removed “usePlugin()” method usage.
| Groovy | apache-2.0 | blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,lsmai... |
2c48cf1d276415788247b513a133c921f6759520 | subprojects/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/TestProjectLocator.groovy | subprojects/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/TestProjectLocator.groovy | /*
* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Improve error message when perf test project is not found | Improve error message when perf test project is not found
| Groovy | apache-2.0 | gradle/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,blindpirat... |
7dbf0c4c86556b299ac2f7e3e165cfd3b7dc36a3 | services/src/functional-tests/src/test/groovy/org/openkilda/functionaltests/extension/TestDataLoggingExtension.groovy | services/src/functional-tests/src/test/groovy/org/openkilda/functionaltests/extension/TestDataLoggingExtension.groovy | package org.openkilda.functionaltests.extension
import groovy.util.logging.Slf4j
import org.spockframework.runtime.extension.AbstractGlobalExtension
import org.spockframework.runtime.extension.IMethodInterceptor
import org.spockframework.runtime.extension.IMethodInvocation
import org.spockframework.runtime.model.SpecI... | package org.openkilda.functionaltests.extension
import groovy.util.logging.Slf4j
import org.spockframework.runtime.extension.AbstractGlobalExtension
import org.spockframework.runtime.extension.IMethodInterceptor
import org.spockframework.runtime.extension.IMethodInvocation
import org.spockframework.runtime.model.SpecI... | Improve test name logging in functional-tests module | Improve test name logging in functional-tests module
| Groovy | apache-2.0 | telstra/open-kilda,jonvestal/open-kilda,telstra/open-kilda,jonvestal/open-kilda,jonvestal/open-kilda,telstra/open-kilda,telstra/open-kilda,telstra/open-kilda,telstra/open-kilda,jonvestal/open-kilda,jonvestal/open-kilda,telstra/open-kilda |
5196a2c5da85d59cab46414f8b825dc0dca9900b | subprojects/griffon-scripts/src/main/groovy/UsageStats_.groovy | subprojects/griffon-scripts/src/main/groovy/UsageStats_.groovy | /*
* Copyright 2012-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright 2012-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Fix evaluation of boolean settings in UsageStats | Fix evaluation of boolean settings in UsageStats
| Groovy | apache-2.0 | levymoreira/griffon,levymoreira/griffon,griffon/griffon,tschulte/griffon,tschulte/griffon,tschulte/griffon,levymoreira/griffon,griffon/griffon |
dfaccf91eeb1aa1417c80b793856c58e62c2cb51 | groovy_pi_dir/pi.groovy | groovy_pi_dir/pi.groovy | class pi {
public static void main(String[] argv) {
long i, start, stop, difference;
double step, x, psum, mypi, time;
long numsteps = 500000000;
if (argv.length > 0) {
numsteps = Integer.parseInt(argv[0]);
}
println("Calculating PI using:");
p... | public class pi {
public static void main(String[] argc) {
long i, numsteps, start, stop, difference;
double step, x, psum, mypi, time;
numsteps = 500000000;
if (argc.length > 0) {
numsteps = Long.parseLong(argc[0]);
}
println("Calculating PI using:");
... | Make similarity to java even more obvious. | Make similarity to java even more obvious.
| Groovy | cc0-1.0 | UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-R... |
4713b9718d1e0f43f9ae30d0eff8d509212f59c7 | netci.groovy | netci.groovy | // Import the utility functionality.
import jobs.generation.Utilities;
def project = GithubProject
def branch = GithubBranchName
[true, false].each { isPR ->
['Debug', 'Release'].each { configuration ->
def newJob = job(Utilities.getFullJobName(project, configuration.toLowerCase(), isPR)) {
s... | // Import the utility functionality.
import jobs.generation.Utilities;
def project = GithubProject
def branch = GithubBranchName
[true, false].each { isPR ->
['Debug', 'Release', 'Desktop.Debug', 'Desktop.Release'].each { configuration ->
def newJob = job(Utilities.getFullJobName(project, configuration.t... | Add Desktop.* configurations to CI build list | Add Desktop.* configurations to CI build list
| Groovy | mit | csiusers/MIEngine,edumunoz/MIEngine,Microsoft/MIEngine,csiusers/MIEngine,orbitcowboy/MIEngine,faxue-msft/MIEngine,wesrupert/MIEngine,rajkumar42/MIEngine,faxue-msft/MIEngine,orbitcowboy/MIEngine,wesrupert/MIEngine,rajkumar42/MIEngine,orbitcowboy/MIEngine,faxue-msft/MIEngine,edumunoz/MIEngine,pieandcakes/MIEngine,pieandc... |
4d2feef31a8b5120c08161dae205661993f716c1 | grails-app/taglib/streama/AssetSettingTagLib.groovy | grails-app/taglib/streama/AssetSettingTagLib.groovy | package streama
class AssetSettingTagLib {
def getAssetFromSetting(setting){
if(setting.startsWith("upload:")){
def id = setting.split(":")[1]
def file = File.get(id)
return file.getSrc()
}else{
return setting
}
}
def linkRelIconSetting = { attribs ->
... | package streama
class AssetSettingTagLib {
def getAssetFromSetting(setting){
if(setting.startsWith("upload:")){
def id = setting.split(":")[1]
def file = File.get(id)
return file.getSrc()
}else{
return setting
}
}
def linkRelIconSetting = { attribs ->
... | Add alt text to imgSetting tag | Add alt text to imgSetting tag
| Groovy | mit | dularion/streama,dularion/streama |
a815fa6e3aa06d5b0858c683c175828722de0cdc | functional-test-app/test/functional/GebConfig.groovy | functional-test-app/test/functional/GebConfig.groovy | // See: http://www.gebish.org/manual/current/configuration.html
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import org.openqa.selenium.remote.DesiredCapabilities
//System.setProperty 'webdriver.chrome.driver', 'c:... | // See: http://www.gebish.org/manual/current/configuration.html
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import org.openqa.selenium.remote.DesiredCapabilities
//System.setProperty 'webdriver.chrome.driver', 'c:... | Allow running Geb tests from IDE | Allow running Geb tests from IDE
| Groovy | apache-2.0 | codeconsole/grails-spring-security-core,tcrossland/grails-spring-security-core,grails-plugins/grails-spring-security-core,ColinHarrington/grails-spring-security-core,tcrossland/grails-spring-security-core,bhagwat/spring-security-forked-for-grails3,bhagwat/spring-security-forked-for-grails3,tcrossland/grails-spring-secu... |
fc5af8b114229e3989530bbd09649713b9006435 | whelktool/scripts/cleanups/2021/05/lxl-586-typeNote-vs-type.groovy | whelktool/scripts/cleanups/2021/05/lxl-586-typeNote-vs-type.groovy | import whelk.Document
Set<String> OBSOLETE_TYPE_NOTES = [
'ansi',
'doi',
'hdl',
'isan',
'isni',
'iso',
'istc',
'iswc',
'orcid',
'urn',
'viaf',
'wikidata',
] as Set
def where = """
data #>> '{@graph,1,identifiedBy}' LI... | import whelk.Document
Set<String> OBSOLETE_TYPE_NOTES = [
'ansi',
'doi',
'hdl',
'isan',
'isni',
'iso',
'istc',
'iswc',
'orcid',
'urn',
'viaf',
'wikidata',
] as Set
def where = """
data #>> '{@graph,1,identifiedBy}' LI... | Fix isni/orcid check in script as well | Fix isni/orcid check in script as well
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
befa1a3dde85c2475b0b63d44ab65dcfa98fb89b | templates/jvm-guy-jpa-application/src/main/groovy/org/kurron/example/jpa/persistence/Child.groovy | templates/jvm-guy-jpa-application/src/main/groovy/org/kurron/example/jpa/persistence/Child.groovy | package org.kurron.example.jpa.persistence
import groovy.transform.Canonical
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.validation.constraints.NotNull
import javax.validation.constraints.Size
/**
* This is an entity, meaning it can stand on its ow... | package org.kurron.example.jpa.persistence
import groovy.transform.Canonical
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.validation.constraints.NotNull
import javax.validation.constraints.Size
import org.hibernate.annotations.Type as HibernateType
/*... | Use Y or N instead of 1/0 for booleans. | Use Y or N instead of 1/0 for booleans.
| Groovy | apache-2.0 | kurron/lazybones-experiment,kurron/lazybones-experiment,kurron/lazybones-experiment,kurron/lazybones-experiment |
1d3c987420887fc801a6696b242994c6f0d2fa1b | src/main/groovy/jaci/gradle/deploy/artifact/NativeArtifact.groovy | src/main/groovy/jaci/gradle/deploy/artifact/NativeArtifact.groovy | package jaci.gradle.deploy.artifact
import groovy.transform.CompileStatic
import jaci.gradle.deploy.DeployContext
import jaci.gradle.deploy.cache.Cacheable
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.TaskOutputs
import org.gradle.nativeplatform.tasks.AbstractLinkTask
... | package jaci.gradle.deploy.artifact
import groovy.transform.CompileStatic
import jaci.gradle.deploy.DeployContext
import jaci.gradle.deploy.cache.Cacheable
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.TaskOutputs
import org.gradle.nativeplatform.tasks.AbstractLinkTask
... | Add unncessary comment (false issue) | Add unncessary comment (false issue)
| Groovy | mit | JacisNonsense/EmbeddedTools,JacisNonsense/EmbeddedTools |
2cd84f03a3dd507ee8a1a53e50819349f3d2da0f | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits( "... | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits( "... | Fix GPRABBITMQ-49: add export = false for Release plugin. | Fix GPRABBITMQ-49: add export = false for Release plugin.
Also updated the spring-amqp library to 1.1.3.RELEASE.
| Groovy | apache-2.0 | grails-plugins/grails-rabbitmq |
b024999e010a7a096d158c75c73c93a5c6b80e08 | whelk-extensions/src/main/groovy/converters/JsonLDLinkFinder.groovy | whelk-extensions/src/main/groovy/converters/JsonLDLinkFinder.groovy | package se.kb.libris.whelks.plugin
import se.kb.libris.whelks.*
import se.kb.libris.whelks.basic.*
import groovy.util.logging.Slf4j as Log
import org.codehaus.jackson.map.ObjectMapper
@Log
class JsonLDLinkFinder extends BasicPlugin implements LinkFinder {
ObjectMapper mapper
@Override
Set<Link> findLi... | package se.kb.libris.whelks.plugin
import se.kb.libris.whelks.*
import se.kb.libris.whelks.basic.*
import groovy.util.logging.Slf4j as Log
import org.codehaus.jackson.map.ObjectMapper
@Log
class JsonLDLinkFinder extends BasicPlugin implements LinkFinder {
ObjectMapper mapper
@Override
Set<Link> findLi... | Make sure the contentType is correct before trying to find links. | Make sure the contentType is correct before trying to find links.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
0576c47fab332dcbeee8713b616ebc387548e22c | src/test/gls/syntax/ParsingTest.groovy | src/test/gls/syntax/ParsingTest.groovy | package gls.syntax
public class ParsingTest extends gls.CompilableTestSupport {
void testExpressionParsingWithCastingInFrontOfAClosure() {
int[] numbers = new int[3]
shouldCompile """
(String) {-> print ""}.call()
"""
shouldCompile """
(Strin... | package gls.syntax
public class ParsingTest extends gls.CompilableTestSupport {
void testExpressionParsingWithCastingInFrontOfAClosure() {
int[] numbers = new int[3]
shouldCompile """
(String) {-> print ""}.call()
"""
shouldCompile """
(Strin... | Test for GROOVY-4058: Unexpected compilation error with MapEntryExpression usage - groovy grammar issue? | Test for GROOVY-4058: Unexpected compilation error with MapEntryExpression usage - groovy grammar issue?
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@19706 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | apache/incubator-groovy,yukangguo/incubator-groovy,bsideup/incubator-groovy,nobeans/incubator-groovy,russel/groovy,ebourg/incubator-groovy,dpolivaev/groovy,armsargis/groovy,alien11689/groovy-core,gillius/incubator-groovy,russel/incubator-groovy,kidaa/incubator-groovy,guangying945/incubator-groovy,adjohnson916/groovy-co... |
5bed58e93b287326eff874d8449c94c3e33f1f0f | src/test/resources/core/GString_03.groovy | src/test/resources/core/GString_03.groovy | def a = """hello${a}
world
"""
a = """
hello
${a}
world
"""
a =~ $/(${123}hello) \/
${a}world\1
\u9fa5 \r
/$
a =~ $/\
x $
$$
$/
/$
a =~ $/\
$x $
$$
$/
/$
a = $/
Hello name,
today we're date.
$ dollar sign
$$ escaped dollar sign
... | def a = """hello${a}
world
"""
a = """
hello
${a}
world
"""
a =~ $/(${123}hello) \/
${a}world\1
\u9fa5 \r
/$
a =~ $/\
x $
$$
$/
/$
a =~ $/\
$x $
$$
$/
/$
a = $/
Hello name,
today we're date.
$ dollar sign
$$ escaped dollar sign
... | Add more tests for "GROOVY-8171" | Add more tests for "GROOVY-8171"
compare the AST with the one generated by old parser
| Groovy | apache-2.0 | danielsun1106/groovy-parser,danielsun1106/groovy-parser |
8baffce4c22f95cb49c9d368417ace3e6e6ad077 | JasperGrailsPlugin.groovy | JasperGrailsPlugin.groovy | class JasperGrailsPlugin {
def version = "1.10.0"
def grailsVersion = "2.1.0 > *"
def author = "Craig Andrews"
def authorEmail = "candrews@integralblue.com"
def license = "Apache License 2.0"
def issueManagement = [system: "JIRA", url: "http://jira.grails.org/browse/GPJASPER"]
def scm = [url... | class JasperGrailsPlugin {
def version = "1.11.0-SNAPSHOT"
def grailsVersion = "2.1.0 > *"
def author = "Craig Andrews"
def authorEmail = "candrews@integralblue.com"
def license = "Apache License 2.0"
def issueManagement = [system: "JIRA", url: "http://jira.grails.org/browse/GPJASPER"]
def s... | Set the version to 1.11.0-SNAPSHOT | Set the version to 1.11.0-SNAPSHOT | Groovy | apache-2.0 | candrews/grails-jasper,candrews/grails-jasper |
a3b24f34622efeab55ba4c877457e62e28b4ea6f | src/main/groovy/com/saltstack/jenkins/JenkinsPerms.groovy | src/main/groovy/com/saltstack/jenkins/JenkinsPerms.groovy | package com.saltstack.jenkins
class JenkinsPerms {
static usernames = [
'thatch45',
's0undt3ch',
'cachedout',
'rallytime',
]
static permissions = [
'com.cloudbees.plugins.credentials.CredentialsProvider.Create',
'com.cloudbees.plugins.credentials.Credentials... | package com.saltstack.jenkins
class JenkinsPerms {
static usernames = [
'thatch45',
's0undt3ch',
'cachedout',
'rallytime',
'salt-testing'
]
static permissions = [
'com.cloudbees.plugins.credentials.CredentialsProvider.Create',
'com.cloudbees.plugins.... | Allow `salt-jenkins` to trigger builds | Allow `salt-jenkins` to trigger builds
| Groovy | apache-2.0 | saltstack/jenkins-dsl-jobs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.