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 |
|---|---|---|---|---|---|---|---|---|---|
e475ac3343f51b7ee0796eebecad829330baa92a | .test-infra/jenkins/job_bookkeeper_codecoverage.groovy | .test-infra/jenkins/job_bookkeeper_codecoverage.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Fix bookkeeper post commit CI | Fix bookkeeper post commit CI
Descriptions of the changes in this PR:
*Motivation*
apache/bookkeeper#1422 includes stream storage integration tests in tests/integration.
so we need to include `-Dstream` on building the tests.
*Solution*
Update the bookkeeper post commit CI jobs to include `-Dstream`
Author: Sijie... | Groovy | apache-2.0 | apache/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,ivankelly/bookkeeper,sijie/bookkeeper,apache/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,ivankelly/bookkeeper,apache/bookkeeper,apache/bookkeeper,apache/bookkeeper,apache/bookkeeper,sijie/bookkeeper,ivankelly/bookkeeper |
9a9f045a3e70db8f01ecc9f7fefbf51efd99168e | .test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow.groovy | .test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Reduce Java Examples Dataflow Precommit timeout | Reduce Java Examples Dataflow Precommit timeout
| Groovy | apache-2.0 | lukecwik/incubator-beam,lukecwik/incubator-beam,apache/beam,chamikaramj/beam,lukecwik/incubator-beam,robertwb/incubator-beam,apache/beam,lukecwik/incubator-beam,RyanSkraba/beam,chamikaramj/beam,robertwb/incubator-beam,robertwb/incubator-beam,apache/beam,apache/beam,chamikaramj/beam,RyanSkraba/beam,chamikaramj/beam,ieme... |
cb09490d11f728b1b2a94ced9e0f9f253a4cce90 | src/main/groovy/com/netflix/gradle/plugins/utils/GradleUtils.groovy | src/main/groovy/com/netflix/gradle/plugins/utils/GradleUtils.groovy | package com.netflix.gradle.plugins.utils
import org.gradle.api.file.FileCopyDetails
import java.nio.file.Path
final class GradleUtils {
private GradleUtils() {}
static String getRootPath(FileCopyDetails details) {
"/${details.path}".toString()
}
static <T> T lookup(def specToLookAt, String ... | package com.netflix.gradle.plugins.utils
import org.gradle.api.file.FileCopyDetails
import java.nio.file.Path
final class GradleUtils {
private GradleUtils() {}
static String getRootPath(FileCopyDetails details) {
"/${details.path}".toString()
}
static <T> T lookup(def specToLookAt, String ... | Use pathString for backwards compatibility | Use pathString for backwards compatibility
| Groovy | apache-2.0 | sghill/gradle-ospackage-plugin,nebula-plugins/gradle-ospackage-plugin |
d223d1f6512e3a3c4c603474a17f87c7744eca56 | examples/layer_geocommons.groovy | examples/layer_geocommons.groovy | /**
* Create a Layer from the GeoCommons Washington Landfill
* Locations.
* http://finder.geocommons.com/overlays/6086
*/
import geoscript.layer.*
import geoscript.feature.*
import geoscript.geom.*
import geoscript.workspace.*
// Get a Directory Workspace because we want to create a shapefile
Workspace workspace =... | /**
* Create a Layer from the GeoCommons Washington Landfill
* Locations.
* http://finder.geocommons.com/overlays/6086
*/
import geoscript.layer.*
import geoscript.feature.*
import geoscript.geom.*
import geoscript.workspace.*
// Get a Directory Workspace because we want to create a shapefile
File dir = new File("... | Remove pull path from geocommons example | Remove pull path from geocommons example
| Groovy | mit | sbortman/geoscript-groovy,geoscript/geoscript-groovy,sbortman/geoscript-groovy,geoscript/geoscript-groovy |
493647adcbb506ff278c7936ad50b288b6bf3927 | jenkins/dsl_seed/madcore_jenins_dsl_plugins.groovy | jenkins/dsl_seed/madcore_jenins_dsl_plugins.groovy | job('madcore.jenkins.dsl.seed.plugins') {
customWorkspace('/opt/plugins')
scm {
git {
remote {
url('https://github.com/madcore-ai/plugins')
}
branch('master')
}
}
steps {
dsl {
external('**/*.groovy')
remov... | job('madcore.jenkins.dsl.seed.plugins') {
customWorkspace('/opt/plugins')
parameters {
stringParam('BRANCH', 'master', '')
}
scm {
git {
remote {
url('https://github.com/madcore-ai/plugins')
}
branch(params.BRANCH)
}
}
... | Add branch name as input for plugin dsl seed | Add branch name as input for plugin dsl seed
| Groovy | mit | madcore-ai/core,madcore-ai/core |
9b2c905cedb3c5597c8939cf55f1df828e198f07 | src/main/groovy/com/netflix/nebula/lint/GradleLintInfoBrokerAction.groovy | src/main/groovy/com/netflix/nebula/lint/GradleLintInfoBrokerAction.groovy | package com.netflix.nebula.lint
import groovy.transform.Canonical
import nebula.plugin.info.InfoBrokerPlugin
import org.gradle.api.Project
@Canonical
class GradleLintInfoBrokerAction extends GradleLintViolationAction {
Project project
@Override
void lintFinished(Collection<GradleViolation> violations) {
... | package com.netflix.nebula.lint
import groovy.transform.Canonical
import nebula.plugin.info.InfoBrokerPlugin
import org.gradle.api.Project
@Canonical
class GradleLintInfoBrokerAction extends GradleLintViolationAction {
Project project
@Override
void lintFinished(Collection<GradleViolation> violations) {
... | Add message to info broker report item | Add message to info broker report item
| Groovy | apache-2.0 | nebula-plugins/gradle-lint-plugin,nebula-plugins/gradle-lint-plugin |
b67c16b5e721456e38a0e2c6e228b0004054944f | src/main/groovy/nebula/plugin/clojuresque/ClojurePluginConvention.groovy | src/main/groovy/nebula/plugin/clojuresque/ClojurePluginConvention.groovy | /*-
* Copyright 2009-2015 © Meikel Brandmeyer.
* All rights reserved.
*
* Licensed under the EUPL V.1.1 (cf. file EUPL-1.1 distributed with the
* source code.) Translations in other european languages available at
* https://joinup.ec.europa.eu/software/page/eupl.
*
* Alternatively, you may choose to use the sof... | /*-
* Copyright 2009-2015 © Meikel Brandmeyer.
* All rights reserved.
*
* Licensed under the EUPL V.1.1 (cf. file EUPL-1.1 distributed with the
* source code.) Translations in other european languages available at
* https://joinup.ec.europa.eu/software/page/eupl.
*
* Alternatively, you may choose to use the sof... | Fix call to use new ExecAction | Fix call to use new ExecAction
| Groovy | mit | nebula-plugins/nebula-clojure-plugin |
9a5c0866f2b50ba3bc712f57e2752fa6b6659ef3 | buildSrc/src/main/groovy/org/gradle/testing/ScenarioReportRenderer.groovy | buildSrc/src/main/groovy/org/gradle/testing/ScenarioReportRenderer.groovy | package org.gradle.testing
import groovy.util.slurpersupport.NodeChildren
import groovy.xml.MarkupBuilder
class ScenarioReportRenderer {
void render(List<Object> finishedBuilds, Writer writer) {
def markup = new MarkupBuilder(writer)
markup.html{
table {
thead {
... | package org.gradle.testing
import groovy.util.slurpersupport.NodeChildren
import groovy.xml.MarkupBuilder
class ScenarioReportRenderer {
void render(List<Object> finishedBuilds, Writer writer) {
def markup = new MarkupBuilder(writer)
markup.html{
table {
thead {
... | Add statusText and direct link to junit html report | Add statusText and direct link to junit html report
| Groovy | apache-2.0 | lsmaira/gradle,gstevey/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/g... |
44b86b8ddcaa8647e970a5c7e01a0b638e4d3137 | scripts/_Events.groovy | scripts/_Events.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 applicab... | /*
* 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 applicab... | Exclude GrailsChartsConsole from assets compiler. | Exclude GrailsChartsConsole from assets compiler.
| Groovy | apache-2.0 | donbeave/grails-console-charts,donbeave/grails-console-charts |
b2b85f1174028fc1b7d910ab0e42ed9838992387 | 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.dependency.resolution = {
inherits("global")
log "warn"
repositories {
grailsCentral()
mavenCentral()
}
dependencies {
compile 'org.scri... | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.dependency.resolution = {
inherits("global")
log "warn"
repositories {
grailsCentral()
mavenCentral()
}
dependencies {
compile 'org.scri... | Exclude dependencies in plugin to try and get app compiling on Travis. (It's okay locally.) | Exclude dependencies in plugin to try and get app compiling on Travis. (It's okay locally.)
| Groovy | mit | enrobsop/grails-quickbooks-online |
42af798a21d1d3dadf723a4ee012f5385738edbf | src/test/groovy/si/dlabs/gradle/manager/SoterPluginTest.groovy | src/test/groovy/si/dlabs/gradle/manager/SoterPluginTest.groovy | package si.dlabs.gradle.manager
import org.gradle.api.Project
import org.gradle.api.internal.plugins.PluginApplicationException
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Test
import static org.junit.Assert.assertTrue
import static org.junit.Assert.fail
/**
* Created by blazsolar on 18/04/15.
*/
... | package si.dlabs.gradle.manager
import org.gradle.api.Project
import org.gradle.api.internal.plugins.PluginApplicationException
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Test
import static org.junit.Assert.assertTrue
import static org.junit.Assert.fail
/**
* Created by blazsolar on 18/04/15.
*/
... | Fix typo in test method name | Fix typo in test method name
| Groovy | mit | WilliamRen/soter,dlabs/soter |
59a05e0a2c1c40c774cc82e96a1c19cda1b9761f | src/main/simplejpa/swing/MVCPopupButtonFactory.groovy | src/main/simplejpa/swing/MVCPopupButtonFactory.groovy | package simplejpa.swing
import javax.swing.JButton
import javax.swing.JDialog
import javax.swing.JOptionPane
import javax.swing.SwingUtilities
import java.awt.Dialog
import java.awt.Window
import java.awt.event.ActionEvent
import static griffon.util.GriffonNameUtils.*
class MVCPopupButtonFactory extends AbstractFact... | package simplejpa.swing
import javax.swing.JButton
import javax.swing.JDialog
import javax.swing.JOptionPane
import javax.swing.SwingUtilities
import java.awt.Dialog
import java.awt.Window
import java.awt.event.ActionEvent
import static griffon.util.GriffonNameUtils.*
class MVCPopupButtonFactory extends AbstractFact... | Rename 'arguments' attribute to 'args'. | Rename 'arguments' attribute to 'args'.
| Groovy | apache-2.0 | JockiHendry/simple-jpa,JockiHendry/simple-jpa |
eb8daa234ec3952b95654c0c85b1bee8cc9973a3 | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/samples/UserGuideSamplesIntegrationTest.groovy | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/samples/UserGuideSamplesIntegrationTest.groovy | /*
* Copyright 2010 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 2010 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 documentation about how to have a sample executed | Add documentation about how to have a sample executed
| Groovy | apache-2.0 | blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,blindpirate/gra... |
46736d7b1e7d3b2b8d897b16451c866de4ed6443 | 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 | jthelin/dotnet-buildtools,maririos/buildtools,roncain/buildtools,tarekgh/buildtools,AlexGhiondea/buildtools,JeremyKuhne/buildtools,weshaggard/buildtools,ericstj/buildtools,maririos/buildtools,alexperovich/buildtools,chcosta/buildtools,naamunds/buildtools,schaabs/buildtools,schaabs/buildtools,roncain/buildtools,naamunds... |
62ca54ca2471e76249fe59f6a0a9e99cbe9054a0 | subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/HttpsProxyResolveIntegrationTest.groovy | subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/HttpsProxyResolveIntegrationTest.groovy | /*
* Copyright 2015 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 2015 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 test breakage on Windows | Fix test breakage on Windows
+review REVIEW-5736
| Groovy | apache-2.0 | gstevey/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle... |
c091b437d7ec5d9675b66333f9cc15761f3395ec | server/engine/src/test/groovy/com/amee/smoke/admin/AdminSmokeTest.groovy | server/engine/src/test/groovy/com/amee/smoke/admin/AdminSmokeTest.groovy | package com.amee.smoke.admin
import com.amee.smoke.BaseSmokeTest
import org.junit.Test
import groovyx.net.http.HttpResponseException
import static org.junit.Assert.*
import org.junit.Ignore
class AdminSmokeTest extends BaseSmokeTest {
@Ignore("Ignore until 2.18.1 is deployed.")
@Test
void viewUsers() {
... | package com.amee.smoke.admin
import com.amee.smoke.BaseSmokeTest
import org.junit.Test
import groovyx.net.http.HttpResponseException
import static org.junit.Assert.*
import org.junit.Ignore
class AdminSmokeTest extends BaseSmokeTest {
@Test
void viewUsers() {
try {
client.get(path: '/admi... | Enable admin user tests. PL-10978. | Enable admin user tests. PL-10978.
| Groovy | mit | OpenAMEE/amee.platform.api |
27537a35d7f85665fffb629fd8225ee545a34a04 | subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/spock/Spock2IntegrationSpec.groovy | subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/spock/Spock2IntegrationSpec.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... | Make Spock tests use newer Groovy | Make Spock tests use newer Groovy
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle |
3f9ae4da2efa542c3e9884310940b83e4b593887 | extra/src/main/java/brooklyn/entity/group/AbstractController.groovy | extra/src/main/java/brooklyn/entity/group/AbstractController.groovy | package brooklyn.entity.group
import groovy.util.ObservableList.ChangeType
import groovy.util.ObservableList.ElementEvent
import java.beans.PropertyChangeListener
import java.util.Map
import brooklyn.entity.Entity
import brooklyn.entity.Group
import brooklyn.entity.basic.AbstractEntity
import brooklyn.entity.group.C... | package brooklyn.entity.group
import groovy.util.ObservableList.ChangeType
import groovy.util.ObservableList.ElementEvent
import java.beans.PropertyChangeListener
import java.util.Map
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import brooklyn.entity.Entity
import brooklyn.entity.Group
import brooklyn.en... | Update cluster controller with more change events | Update cluster controller with more change events
| Groovy | apache-2.0 | bmwshop/brooklyn,neykov/incubator-brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,neykov/incubator-brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,bmwshop/brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,bmwsho... |
c08dcf771f4758796cddb7fa882cb6fb1455c0b1 | functional-tests/src/test/groovy/pages/app/OpportunityDetail.groovy | functional-tests/src/test/groovy/pages/app/OpportunityDetail.groovy | package pages.app
import geb.Page
class OpportunityDetail extends Page {
static at = { $("h1", text:"Show that BDD testing works!") }
static url = "/opportunities/opp-show-that-bdd-testing-works-"
}
| package pages.app
import geb.Page
class OpportunityDetail extends Page {
static at = { $("h1", text:"Show that BDD testing works!!!") }
static url = "/opportunities/opp-show-that-bdd-testing-works-"
}
| Update Opportunity Detail to match latest content | Update Opportunity Detail to match latest content
| Groovy | apache-2.0 | BCDevExchange/devex,BCDevExchange/devex,BCDevExchange/devex,BCDevExchange/devex,BCDevExchange/devex |
71632e7042c18b8bb90eaca0d9a7cdc122dbcf90 | src/test/groovy/es/sandbox/spike/Connect4GameSpec.groovy | src/test/groovy/es/sandbox/spike/Connect4GameSpec.groovy | package es.sandbox.spike
import es.sandbox.spike.connectn.Color
import spock.lang.Specification
import static es.sandbox.spike.connectn.BoardMother.connect4Board
import static es.sandbox.spike.connectn.BoardMother.playTheGame
/**
* Created by jeslopalo on 10/3/16.
*/
class Connect4GameTest extends Specification {
... | package es.sandbox.spike
import es.sandbox.spike.connectn.Color
import spock.lang.Specification
import static es.sandbox.spike.connectn.BoardMother.connect4Board
import static es.sandbox.spike.connectn.BoardMother.playTheGame
/**
* Created by jeslopalo on 10/3/16.
*/
class Connect4GameTest extends Specification {
... | Add a new game simulation test | Add a new game simulation test
| Groovy | mit | jeslopalo/connectn |
bdbe51936e6727afd246879327707dd6ae442c71 | asteroid-test/src/main/groovy/asteroid/global/samples/ChangeMethodsTransformation.groovy | asteroid-test/src/main/groovy/asteroid/global/samples/ChangeMethodsTransformation.groovy | package asteroid.global.samples
import groovy.transform.CompileStatic
import asteroid.A
import asteroid.global.Transformer
import asteroid.global.GlobalTransformation
import asteroid.global.GlobalTransformationImpl
/**
* This {@link GlobalTransformationImpl} only applies a
* transformer of type {@link ChangeTriple... | package asteroid.global.samples
import groovy.transform.CompileStatic
import asteroid.A
import asteroid.global.Transformer
import asteroid.global.GlobalTransformation
import asteroid.global.GlobalTransformationImpl
/**
* This {@link GlobalTransformationImpl} only applies a
* transformer of type {@link ChangeTriple... | Fix typo in generic type | Fix typo in generic type
| Groovy | apache-2.0 | januslynd/asteroid,grooviter/asteroid |
d3fed30c0447e45a4a70949a53625e8dc7d921b5 | LightweightDeployGrailsPlugin.groovy | LightweightDeployGrailsPlugin.groovy | class LightweightDeployGrailsPlugin {
def version = "0.14.0"
def grailsVersion = "2.0 > *"
def title = "Lightweight Deploy Plugin"
def description = '''\
This plugin is intended to produce a lightweight, deployable grails application. It embeds jetty, and uses a number of
the conventions from Dropwizar... | class LightweightDeployGrailsPlugin {
def version = "0.14.0"
def grailsVersion = "2.0 > *"
def title = "Lightweight Deploy Plugin"
def description = '''\
This plugin is intended to produce a lightweight, deployable grails application. It embeds jetty, and uses a number of
the conventions from Dropwizar... | Add Wotif as the organisation. | Add Wotif as the organisation.
| Groovy | apache-2.0 | wotifgroup/grails-lightweight-deploy,wotifgroup/grails-lightweight-deploy |
8287c56e3e83ab95a1ec4b226ab7be113e78d63d | src/main/groovy/com/github/dispader/manifesto/Version.groovy | src/main/groovy/com/github/dispader/manifesto/Version.groovy | package com.github.dispader.manifesto
class Version {
final static String MSG_NO_REPO = 'The Manifesto plugin is only useful for projects using git source control.'
final static String MSG_NO_COMMITS = 'The Manifesto plugin couldn\'t find any git commits.'
final static String MSG_NO_TAGS = 'The Manifesto ... | package com.github.dispader.manifesto
class Version {
final static String MSG_NO_REPO = 'The Manifesto plugin is only useful for projects using git source control.'
final static String MSG_NO_COMMITS = 'The Manifesto plugin couldn\'t find any git commits.'
final static String MSG_NO_TAGS = 'The Manifesto ... | Resolve final field CodeNarc violation | Resolve final field CodeNarc violation
| Groovy | apache-2.0 | Dispader/manifesto |
2e00a145819dae092901eda696810fd10f71334f | src/main/groovy/org/kurron/example/rest/inbound/MessageProcessor.groovy | src/main/groovy/org/kurron/example/rest/inbound/MessageProcessor.groovy | /*
* Copyright (c) 2015. Ronald D. Kurr kurr@jvmguy.com
*
* 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 appl... | /*
* Copyright (c) 2015. Ronald D. Kurr kurr@jvmguy.com
*
* 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 appl... | Use annotations instead of pulling things out of the raw message. | Use annotations instead of pulling things out of the raw message.
| Groovy | apache-2.0 | kurron/monitor-rabbitmq,kurron/monitor-rabbitmq |
8c00f63ca264e73c7ab7cfc760ef7748edbb6f60 | .jenkins/job_beam_PostCommit_Java_RunnableOnService_Apex.groovy | .jenkins/job_beam_PostCommit_Java_RunnableOnService_Apex.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Fix mvn command args in Apex postcommit Jenkins job | Fix mvn command args in Apex postcommit Jenkins job
| Groovy | apache-2.0 | eljefe6a/incubator-beam,rangadi/beam,apache/beam,tgroh/incubator-beam,charlesccychen/beam,wtanaka/beam,amarouni/incubator-beam,apache/beam,eljefe6a/incubator-beam,RyanSkraba/beam,xsm110/Apache-Beam,peihe/incubator-beam,apache/beam,chamikaramj/beam,chamikaramj/beam,chamikaramj/beam,amitsela/beam,robertwb/incubator-beam,... |
9487c6a67926575a6ee4db15fbb598a315cee8b3 | test/unit/outofbounds/QuestionControllerSpec.groovy | test/unit/outofbounds/QuestionControllerSpec.groovy | package outofbounds
import grails.test.mixin.*
import spock.lang.*
import grails.plugin.springsecurity.SpringSecurityUtils
@TestFor(QuestionController)
@Mock([Question, User, Tag, Post])
class QuestionControllerSpec extends Specification {
def user
void setup() {
defineBeans {
questi... | package outofbounds
import grails.test.mixin.*
import spock.lang.*
import grails.plugin.springsecurity.SpringSecurityUtils
import grails.validation.ValidationException
@TestFor(QuestionController)
@Mock([Question, User, Tag, Post])
class QuestionControllerSpec extends Specification {
def user
void setup()... | Add test when creating question with invalid text | [Test] Add test when creating question with invalid text
| Groovy | apache-2.0 | jeremieCouturier/outOfBounds,jeremieCouturier/outOfBounds |
a2c4d505966505d2bb1e4bd02b1f35541c297109 | subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r20/GradleProjectModelCrossVersionSpec.groovy | subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r20/GradleProjectModelCrossVersionSpec.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... | Fix for test breakage against 2.0-rc-1 | Fix for test breakage against 2.0-rc-1
| Groovy | apache-2.0 | gstevey/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gstevey/grad... |
ab0e8d2bdfc77d329e93898ab6609df8656258ba | .test-infra/jenkins/job_PreCommit_RAT.groovy | .test-infra/jenkins/job_PreCommit_RAT.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Add missing build() statement to new RAT PreCommit. | Add missing build() statement to new RAT PreCommit.
| Groovy | apache-2.0 | mxm/incubator-beam,rangadi/beam,lukecwik/incubator-beam,apache/beam,lukecwik/incubator-beam,apache/beam,robertwb/incubator-beam,chamikaramj/beam,robertwb/incubator-beam,charlesccychen/beam,RyanSkraba/beam,lukecwik/incubator-beam,charlesccychen/beam,rangadi/beam,charlesccychen/beam,lukecwik/incubator-beam,apache/beam,ap... |
25f8d1a3968370043cbcc0115da805dde6777324 | .test-infra/jenkins/job_PostCommit_Go_GradleBuild.groovy | .test-infra/jenkins/job_PostCommit_Go_GradleBuild.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Disable build parallelization for Go due to flakiness | Disable build parallelization for Go due to flakiness
| Groovy | apache-2.0 | chamikaramj/beam,robertwb/incubator-beam,lukecwik/incubator-beam,rangadi/beam,rangadi/incubator-beam,lukecwik/incubator-beam,lukecwik/incubator-beam,robertwb/incubator-beam,charlesccychen/beam,apache/beam,robertwb/incubator-beam,apache/beam,markflyhigh/incubator-beam,rangadi/beam,charlesccychen/beam,lukecwik/incubator-... |
c3f8cbf591b8d322ebf866c25710b2f1a759a88d | 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
def OBSOLETE_TYPE_NOTES = ['isni', 'orcid', 'viaf', 'wikidata']
selectByCollection('auth') { auth ->
def (_record, thing) = auth.graph
boolean needsUpdate = false
thing.identifiedBy?.with {
asList(it).forEach { Map id ->
id.typeNote?.with { String tn ->
... | import whelk.Document
OBSOLETE_TYPE_NOTES = [
'ansi',
'doi',
'hdl',
'isan',
'isni',
'iso',
'istc',
'iswc',
'orcid',
'urn',
'viaf',
'wikidata',
]
selectByCollection('auth') { auth ->
process(auth)
}
selectByCollection(... | Check bib docs in typeNote-vs-type script | Check bib docs in typeNote-vs-type script
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
fb8e14855ad46b12f7ab5f7838fb81b7437c09b5 | rundeckapp/grails-app/taglib/rundeck/PluginTagLib.groovy | rundeckapp/grails-app/taglib/rundeck/PluginTagLib.groovy | package rundeck
import com.dtolabs.rundeck.core.common.Framework
import rundeck.services.FrameworkService
class PluginTagLib {
def static namespace = "stepplugin"
def FrameworkService frameworkService
def display={attrs,body->
def step=attrs.step
def Framework framework = frameworkService... | package rundeck
import com.dtolabs.rundeck.core.common.Framework
import rundeck.services.FrameworkService
class PluginTagLib {
def static namespace = "stepplugin"
def FrameworkService frameworkService
def display={attrs,body->
def step=attrs.step
if(request.session?.user && request?.sessi... | Allow render mail notification gsp without session | Allow render mail notification gsp without session
for #325
| Groovy | apache-2.0 | damageboy/rundeck,tjordanchat/rundeck,patcadelina/rundeck,patcadelina/rundeck,paul-krohn/rundeck,damageboy/rundeck,tjordanchat/rundeck,rundeck/rundeck,rophy/rundeck,jgpacker/rundeck,patcadelina/rundeck,rundeck/rundeck,rophy/rundeck,rundeck/rundeck,damageboy/rundeck,variacode/rundeck,tjordanchat/rundeck,paul-krohn/runde... |
3ad32fb5b1bde20d622f485220a8d60824c90891 | src/main/groovy/jaci/openrio/gradle/sim/NativeSimulationTask.groovy | src/main/groovy/jaci/openrio/gradle/sim/NativeSimulationTask.groovy | package jaci.openrio.gradle.sim
import groovy.transform.CompileStatic
import jaci.openrio.gradle.ExternalLaunchTask
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.TaskAction
import org.gradle.deployment.internal.Deployment
import or... | package jaci.openrio.gradle.sim
import groovy.transform.CompileStatic
import jaci.openrio.gradle.ExternalLaunchTask
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.TaskAction
import org.gradle.deployment.internal.Deployment
import or... | Fix merge issue with simulation (Gradle 4.7) | Fix merge issue with simulation (Gradle 4.7)
| Groovy | mit | Open-RIO/GradleRIO,Open-RIO/GradleRIO,Open-RIO/GradleRIO,Open-RIO/GradleRIO |
d141c4142e957b4f66bd3bf7a9ec3f1d86e6b70d | src/whelks-core/src/test/groovy/libris/whelks/component/RiakStorageSpec.groovy | src/whelks-core/src/test/groovy/libris/whelks/component/RiakStorageSpec.groovy | /*package se.kb.libris.whelks.component
import spock.lang.*
import se.kb.libris.whelks.basic.BasicDocument
import java.net.URI
class RiakStorageSpec extends Specification {
def rs = new RiakStorage("bib")
def doc = new BasicDocument().withIdentifier("/bib/777").withData("test").withContentType("text/plain")
... | package se.kb.libris.whelks.component
import spock.lang.*
import se.kb.libris.whelks.basic.BasicDocument
import java.net.URI
class RiakStorageSpec extends Specification {
def rs = new RiakStorage("bib")
def doc = new BasicDocument().withIdentifier("/bib/777").withData("test").withContentType("text/plain")
... | Test excluded in build.gradle instead | Test excluded in build.gradle instead
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
bf1358d1ed47c651d0d5e6d28a2ba24d4a43dd2d | scripts/CreateTestSuite.groovy | scripts/CreateTestSuite.groovy | /*
* Copyright 2004-2005 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... | /*
* Copyright 2004-2005 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... | Test suites now created with correct artifact stem name - GRAILS-438 | Test suites now created with correct artifact stem name - GRAILS-438
git-svn-id: 29aad96320b2a07b98332cd568fc1316025c072f@2341 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
| Groovy | apache-2.0 | jeffbrown/grailsnolib,jeffbrown/grailsnolib |
17fd1f73508beeca47900feb66e903a9447ddee2 | jobs/utilities/StatusUpdater.groovy | jobs/utilities/StatusUpdater.groovy | package utilities
class StatusUpdater {
static updateStatus(Map args) {
"""
#!/usr/bin/env bash
set -eo pipefail
curl\
--user deis-admin:"\${GITHUB_ACCESS_TOKEN}"\
--data '{\
"state":"${args.commitStatus}",\
"target_url":"'"\${BUILD_URL}"'",\
"des... | package utilities
class StatusUpdater {
static updateStatus(Map args) {
"""
#!/usr/bin/env bash
set -eo pipefail
curl\
--user deis-admin:"\${GITHUB_ACCESS_TOKEN}"\
--data '{\
"state":"${args.commitStatus}",\
"target_url":"'"\${BUILD_URL}"'",\
"description":"${args.description}",\
"context":"ci/jenkins/pr"}'\
"http... | Remove indents from status updater This should help in the config UI for jenkins | fix(status): Remove indents from status updater
This should help in the config UI for jenkins
| Groovy | mit | deis/jenkins-jobs |
d283021235484b11cedf579655504367a58d7aa6 | scripts/SetLicense.groovy | scripts/SetLicense.groovy | /*
* JBILLING CONFIDENTIAL
* _____________________
*
* [2003] - [2012] Enterprise jBilling Software Ltd.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Enterprise jBilling Software.
* The intellectual and technical concepts contained
* herein are proprie... | /*
* JBILLING CONFIDENTIAL
* _____________________
*
* [2003] - [2012] Enterprise jBilling Software Ltd.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Enterprise jBilling Software.
* The intellectual and technical concepts contained
* herein are proprie... | Remove the necessity of license.txt file since the license is alredy stored in jbilling.properties | Remove the necessity of license.txt file since the license is alredy stored in jbilling.properties
| Groovy | agpl-3.0 | liquidJbilling/LT-Jbilling-MsgQ-3.1,liquidJbilling/LT-Jbilling-MsgQ-3.1,liquidJbilling/LT-Jbilling-MsgQ-3.1,liquidJbilling/LT-Jbilling-MsgQ-3.1 |
d146bda87db8f34d92bc21251f67d6f96daa1bde | scripts/_Events.groovy | scripts/_Events.groovy | includeTargets << new File(assetPipelinePluginDir, "scripts/_AssetCompile.groovy")
eventCreateWarStart = {warName, stagingDir ->
assetCompile()
def assetCompileDir = new File(basedir, "target/assets")
def assetPathDir = new File(stagingDir, 'assets')
assetPathDir.mkdirs()
ant.copy(todir:assetPathDir.path, verb... | includeTargets << new File(assetPipelinePluginDir, "scripts/_AssetCompile.groovy")
eventCreateWarStart = {warName, stagingDir ->
assetCompile()
def assetCompileDir = new File(basedir, "target/assets")
def assetPathDir = new File(stagingDir, 'assets')
assetPathDir.mkdirs()
ant.copy(todir:assetPathDir.path, verb... | Delete the compiled assets as part of the grails clean target | Delete the compiled assets as part of the grails clean target
| Groovy | apache-2.0 | bertramdev/grails-asset-pipeline,Grails-Plugin-Consortium/asset-pipeline,scrain/asset-pipeline,rgoldberg/grails-asset-pipeline,rgoldberg/grails-asset-pipeline,tedder/asset-pipeline,bertramdev/grails-asset-pipeline |
08d770bff3043981866e2afdc060f1ff9d95828b | whelktool/scripts/cleanups/2021/02/lxl-3473-remove-complex-preflabels.groovy | whelktool/scripts/cleanups/2021/02/lxl-3473-remove-complex-preflabels.groovy | import whelk.Document;
import whelk.Whelk;
String where = """
( collection = 'bib' and data#>'{@graph,1,instanceOf,subject}' @> '[{"@type":"ComplexSubject"}]' )
or
( collection = 'auth' and data#>'{@graph,1,subject}' @> '[{"@type":"ComplexSubject"}]' )
"""
selectBySqlWhere(where) { data ->
def mainEnt... | import whelk.Document;
import whelk.Whelk;
String where = """
( collection = 'bib' and data#>'{@graph,1,instanceOf,subject}' @> '[{"@type":"ComplexSubject"}]' )
or
( collection = 'auth' and data#>'{@graph,1,subject}' @> '[{"@type":"ComplexSubject"}]' )
"""
selectBySqlWhere(where) { data ->
def mainEnt... | Fix a nullpointer mistake in a script. | Fix a nullpointer mistake in a script.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
774a1bd487490c4456650b540f3100f57e38329e | biz.aQute.bnd.gradle/test/aQute/bnd/gradle/TestHelper.groovy | biz.aQute.bnd.gradle/test/aQute/bnd/gradle/TestHelper.groovy | package aQute.bnd.gradle
import aQute.bnd.version.MavenVersion
import org.gradle.api.JavaVersion
import org.gradle.testkit.runner.GradleRunner
class TestHelper {
private TestHelper() { }
public static GradleRunner getGradleRunner() {
return GradleRunner.create()
.withGradleVersion(gradleVersion... | package aQute.bnd.gradle
import aQute.bnd.version.MavenVersion
import org.gradle.api.JavaVersion
import org.gradle.testkit.runner.GradleRunner
class TestHelper {
private TestHelper() { }
public static GradleRunner getGradleRunner() {
return GradleRunner.create()
.withGradleVersion(gradleVersion... | Use Gradle 5 as the base Gradle version for JDK 11 | gradle: Use Gradle 5 as the base Gradle version for JDK 11
Signed-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>
| Groovy | apache-2.0 | psoreide/bnd,psoreide/bnd,psoreide/bnd |
fb21180d038dd7080eeac4564697135d57c8bde8 | jenkins.groovy | jenkins.groovy | pipeline
{
agent
{
label 'linux'
}
options
{
ansiColor('xterm')
buildDiscarder logRotator(artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10', daysToKeepStr: '30', numToKeepStr: '10')
timestamps()
}
tools
{
maven 'Maven'
}
environment
{
MAVEN_OP... | pipeline
{
agent
{
label 'linux'
}
options
{
ansiColor('xterm')
buildDiscarder logRotator(artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10', daysToKeepStr: '30', numToKeepStr: '10')
timestamps()
}
tools
{
maven 'Maven'
}
environment
{
MAVEN_OP... | Add release profile to maven command in Jenkins Pipeline. | Add release profile to maven command in Jenkins Pipeline.
| Groovy | apache-2.0 | Graylog2/gelfclient |
6fb3c93b33a57586efeffd9ceed0ccfb9f59ebb5 | spock-grails/src/groovy/grails/plugin/spock/FunctionalSpec.groovy | spock-grails/src/groovy/grails/plugin/spock/FunctionalSpec.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 applicable... | /* 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 applicable... | Make all functional tests non transactional. | Make all functional tests non transactional.
| Groovy | apache-2.0 | Fuud/spock,GeeChao/spock,psideleau/spock,GeeChao/spock,raphw/spock,Fuud/spock,paplorinc/spock,lokinell/spock,lokinell/spock,sebi-hgdata/spock,siordache/spock,alien11689/spock,spockframework/spock,psideleau/spock,paplorinc/spock,psideleau/spock,GeeChao/spock,alien11689/spock,Fuud/spock,Fuud/spock,siordache/spock,leonard... |
db9ce964af4049fbecb51b7e739879cbf831947f | bitcoinj-rpcclient/src/test/groovy/org/consensusj/jsonrpc/RPCClientSpec.groovy | bitcoinj-rpcclient/src/test/groovy/org/consensusj/jsonrpc/RPCClientSpec.groovy | package org.consensusj.jsonrpc
import spock.lang.Specification
import spock.lang.Unroll
/**
* RPCClient test specification
*/
class RPCClientSpec extends Specification {
def "constructor works correctly" () {
when:
def client = new RPCClient("http://localhost:8080".toURI(), "user", "pass")
... | package org.consensusj.jsonrpc
import spock.lang.Ignore
import spock.lang.Specification
import spock.lang.Unroll
/**
* RPCClient test specification
*/
class RPCClientSpec extends Specification {
def "constructor works correctly" () {
when:
def client = new RPCClient("http://localhost:8080".toU... | Fix test failure — ignore test of not-yet-implemented method | Fix test failure — ignore test of not-yet-implemented method | Groovy | apache-2.0 | msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons |
391f76e83f60db57c5fa14849553b60df0065450 | native/NativeProject.groovy | native/NativeProject.groovy | import com.adaptc.mws.plugins.Suite
class NativeProject {
// Plugin information
String title = "Native"
String description = "Native basic plugin implementation"
String author = "Adaptive Computing Enterprises, Inc."
String website = "http://www.adaptivecomputing.com"
// Versioning properties
String version = ... | import com.adaptc.mws.plugins.Suite
class NativeProject {
// Plugin information
String title = "Native"
String description = "Native basic plugin implementation"
String author = "Adaptive Computing Enterprises, Inc."
String website = "http://www.adaptivecomputing.com"
// Versioning properties
String version = ... | Move to snapshot version for native again | Move to snapshot version for native again
| Groovy | apache-2.0 | adaptivecomputing/plugins-mws |
4ba0b72b2c6c418f22fe2ab6fb7a8b4e5c36d381 | subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy | subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | Add one more test case for GROOVY-8511 | Add one more test case for GROOVY-8511
| Groovy | apache-2.0 | armsargis/groovy,armsargis/groovy,paulk-asert/incubator-groovy,shils/incubator-groovy,armsargis/groovy,shils/incubator-groovy,shils/incubator-groovy,apache/groovy,jwagenleitner/incubator-groovy,paulk-asert/incubator-groovy,russel/groovy,russel/incubator-groovy,traneHead/groovy-core,russel/groovy,traneHead/groovy-core,a... |
b03a4ae6ae6cd2cad68332ab3230ca7681ba8f19 | micro-deps/micro-deps-spring-config/src/main/groovy/com/ofg/config/BasicProfiles.groovy | micro-deps/micro-deps-spring-config/src/main/groovy/com/ofg/config/BasicProfiles.groovy | package com.ofg.config
import groovy.transform.CompileStatic
/**
* 4finance default Spring profiles
*/
@CompileStatic
class BasicProfiles {
public static final String DEVELOPMENT = 'dev'
public static final String PRODUCTION = 'prod'
public static final String TEST = 'test'
public static List<St... | package com.ofg.config
import groovy.transform.CompileStatic
/**
* 4finance default Spring profiles
*/
@CompileStatic
class BasicProfiles {
/**
* Profile used for development. Starts Zookeeper and stubs.
*/
public static final String DEVELOPMENT = 'dev'
/**
* Profile used for any enviro... | Add smokeTests profile to mock third party services. | Add smokeTests profile to mock third party services.
| Groovy | apache-2.0 | dstepanov/micro-infra-spring,sn0wolf/micro-infra-spring,ychulovskyy/micro-infra-spring,spencergibb/micro-infra-spring,4finance/micro-infra-spring,ofg-dmitrys/micro-infra-spring,dstepanov/micro-infra-spring,ofg-dmitrys/micro-infra-spring,ofg-dmitrys/micro-infra-spring,adrian-wozniak/micro-infra-spring,dstepanov/micro-in... |
223e012ed188b0f8f4d8db61c1984388eb7c3640 | plugins/intellij/src/com/ideaflow/intellij/action/OpenInBrowserAction.groovy | plugins/intellij/src/com/ideaflow/intellij/action/OpenInBrowserAction.groovy | package com.ideaflow.intellij.action
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.Presentation
import com.intellij.openapi.vfs.VirtualFile
@Mixin(ActionSupport)
class OpenInBrowserA... | package com.ideaflow.intellij.action
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.Presentation
import com.intellij.openapi.vfs.VirtualFile
@Mixin(ActionSupport)
class OpenInBrowserA... | Change default port to 8989 | Change default port to 8989
| Groovy | apache-2.0 | openmastery/plugins |
f6986dfdf5adb92ee9bc8252459b1212db8c19f3 | src/test/groovy/bugs/Groovy5185Bug.groovy | src/test/groovy/bugs/Groovy5185Bug.groovy | package groovy.bugs
class Groovy5185Bug extends GroovyTestCase {
void testShouldNotThrowMethodMissingException() {
assertScript '''
enum Foo {
foo,
bar,
baz
}
List<Closure> closures = []
5000.times { int index ... | package groovy.bugs
class Groovy5185Bug extends GroovyTestCase {
void testShouldNotThrowMethodMissingException() {
assertScript '''
enum Foo {
foo,
bar,
baz
}
List<Closure> closures = []
500.times { int index -... | Reduce nb of concurrent threads for build to pass on Bamboo | GROOVY-5198: Reduce nb of concurrent threads for build to pass on Bamboo
| Groovy | apache-2.0 | ChanJLee/incubator-groovy,genqiang/incubator-groovy,taoguan/incubator-groovy,jwagenleitner/incubator-groovy,jwagenleitner/groovy,samanalysis/incubator-groovy,alien11689/incubator-groovy,bsideup/groovy-core,pledbrook/incubator-groovy,ChanJLee/incubator-groovy,paplorinc/incubator-groovy,EPadronU/incubator-groovy,traneHea... |
001976a917f4915875404403a8ed67f5b68ef2c8 | src/main/groovy/com/google/appengine/task/endpoints/EndpointsExtension.groovy | src/main/groovy/com/google/appengine/task/endpoints/EndpointsExtension.groovy | /*
* Copyright 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 applica... | /*
* Copyright 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 applica... | Update client lib depedency version | Update client lib depedency version
| Groovy | apache-2.0 | GoogleCloudPlatform/gradle-appengine-plugin |
88de6f4b92156e991638fe9be790f40157c2322f | init.groovy.d/setup-git.groovy | init.groovy.d/setup-git.groovy | #!/usr/bin/env groovy
/*
* Pre-configure the Git plugin and the default git tooling in Jenkins
*/
import org.jenkinsci.plugins.gitclient.*
import jenkins.model.Jenkins
def gitConfig = Jenkins.instance.getDescriptor('hudson.plugins.git.GitSCM')
def tools = Jenkins.instance.getDescriptor('hudson.plugins.git.GitTool')
... | #!/usr/bin/env groovy
/*
* Pre-configure the Git plugin and the default git tooling in Jenkins
*/
import org.jenkinsci.plugins.gitclient.*
import jenkins.model.Jenkins
def gitConfig = Jenkins.instance.getDescriptor('hudson.plugins.git.GitSCM')
def tools = Jenkins.instance.getDescriptor('hudson.plugins.git.GitTool')
... | Remove the default git tool | Remove the default git tool
| Groovy | agpl-3.0 | CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet |
6dd081bdb99843574132679bacf081a17129f2b0 | subprojects/performance/src/integTest/groovy/org/gradle/performance/ManyEmptyProjectsHelpPerformanceTest.groovy | subprojects/performance/src/integTest/groovy/org/gradle/performance/ManyEmptyProjectsHelpPerformanceTest.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... | Increase the allowed amount of execution time regression in many empty projects performance benchmark. | Increase the allowed amount of execution time regression in many empty projects performance benchmark.
+review REVIEW-5441
| Groovy | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,g... |
9fd22821e1c23efaf726f566f08c62b9928ec33c | integration-test/src/test/groovy/de/gesellix/docker/testutil/NpipeExecutable.groovy | integration-test/src/test/groovy/de/gesellix/docker/testutil/NpipeExecutable.groovy | package de.gesellix.docker.testutil
import de.gesellix.docker.client.DockerClientImpl
import de.gesellix.docker.client.LocalDocker
import de.gesellix.docker.client.container.ArchiveUtil
import de.gesellix.docker.remote.api.ContainerCreateRequest
class NpipeExecutable {
File createNpipeExe(DockerClientImpl docker) ... | package de.gesellix.docker.testutil
import de.gesellix.docker.client.DockerClientImpl
import de.gesellix.docker.client.container.ArchiveUtil
import de.gesellix.docker.remote.api.ContainerCreateRequest
class NpipeExecutable {
File createNpipeExe(DockerClientImpl docker) {
String repository = "gesellix/npipe:202... | Use the multi-platform gesellix/npipe image | Use the multi-platform gesellix/npipe image
| Groovy | mit | gesellix/docker-client,gesellix/docker-client,gesellix/docker-client |
8d4ea2df880ca3fff333c8332e7caab7ba1438eb | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/AbstractIncrementalExecutionPerformanceTest.groovy | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/AbstractIncrementalExecutionPerformanceTest.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... | Improve comment about Windows test runtime | Improve comment about Windows test runtime
| Groovy | apache-2.0 | gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,grad... |
b3da1a4d5c90d9614cf7d72046c4ab94eb35183b | bitcoinj-rpcclient/src/main/groovy/com/msgilligan/bitcoinj/test/BTCTestSupport.groovy | bitcoinj-rpcclient/src/main/groovy/com/msgilligan/bitcoinj/test/BTCTestSupport.groovy | package com.msgilligan.bitcoinj.test
import com.msgilligan.bitcoinj.rpc.BitcoinClientDelegate
import com.msgilligan.bitcoinj.rpc.Loggable
import com.msgilligan.bitcoinj.rpc.conversion.BitcoinMath
import org.bitcoinj.core.Coin
/**
* Test support functions intended to be mixed-in to Spock test specs
*/
trait BTCTestS... | package com.msgilligan.bitcoinj.test
import com.msgilligan.bitcoinj.rpc.BitcoinClientDelegate
import com.msgilligan.bitcoinj.rpc.Loggable
import com.msgilligan.bitcoinj.rpc.conversion.BitcoinMath
import org.bitcoinj.core.Coin
import org.bitcoinj.core.Transaction
/**
* Test support functions intended to be mixed-in t... | Use bitcoinj constant for stdTxFee | Use bitcoinj constant for stdTxFee | Groovy | apache-2.0 | msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons |
eb4fb7f2c6952309ce3630262d82b2c291c3d802 | 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 |
b2f6d04ef838dc7c7b59c141aa6e81510a0fe30a | init.groovy | init.groovy | gate.Gate.init()
import static gate.plugin.evaluation.tests.TestUtils.*;
import gate.plugin.evaluation.api.*;
| gate.Gate.init()
import static gate.plugin.evaluation.tests.TestUtils.*;
import gate.plugin.evaluation.api.*;
import static gate.Utils.*;
| Make the gate.Utils methods available. | Make the gate.Utils methods available.
| Groovy | lgpl-2.1 | johann-petrak/gateplugin-Evaluation,johann-petrak/gateplugin-Evaluation,johann-petrak/gateplugin-Evaluation |
847f9053c71d141e960cce53d01f70984453f4b1 | plugins/src/main/groovy/com/verificationgentleman/gradle/reflection/SvunitBuildPlugin.groovy | plugins/src/main/groovy/com/verificationgentleman/gradle/reflection/SvunitBuildPlugin.groovy | package com.verificationgentleman.gradle.reflection
import org.gradle.api.initialization.*
import org.gradle.api.file.*
import org.gradle.api.tasks.*
import org.gradle.api.attributes.*
import org.gradle.api.*
class SvunitBuildPlugin implements Plugin<Settings> {
void apply(Settings settings) {
settings.wi... | package com.verificationgentleman.gradle.reflection
import org.gradle.api.initialization.*
import org.gradle.api.file.*
import org.gradle.api.tasks.*
import org.gradle.api.attributes.*
import org.gradle.api.*
class SvunitBuildPlugin implements Plugin<Settings> {
void apply(Settings settings) {
settings.wi... | Remove explicit value of 'version' property when injecting plugin | Remove explicit value of 'version' property when injecting plugin
This doesn't seem to be needed, since the version is handled via the Git repo
(either branch of tag).
| Groovy | apache-2.0 | tudortimi/reflection |
a60e03bd220f83d5eb0f89c81f0e4d82fa3b5854 | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/FailsWithDsl.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/FailsWithDsl.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... | Rename `instant execution => configuration cache` in javadoc | Rename `instant execution => configuration cache` in javadoc
| Groovy | apache-2.0 | blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,grad... |
0e7846b8886d64ec8d590ac3dbb80a34d5b718c0 | src/main/simplejpa/swing/TemplateRenderer.groovy | src/main/simplejpa/swing/TemplateRenderer.groovy | package simplejpa.swing
import groovy.text.SimpleTemplateEngine
import groovy.text.Template
import java.text.NumberFormat
class TemplateRenderer extends SimpleTemplateEngine {
static Writable make(Template template, def value) {
template.make([
"value": value,
"numberFormat": th... | package simplejpa.swing
import groovy.text.SimpleTemplateEngine
import groovy.text.Template
import java.text.NumberFormat
class TemplateRenderer extends SimpleTemplateEngine {
static String make(Template template, def value) {
StringWriter result = new StringWriter()
template.make([
... | Change result type from Writable to String. | Change result type from Writable to String.
| Groovy | apache-2.0 | JockiHendry/simple-jpa,JockiHendry/simple-jpa |
ce7ae645978b7b94e3fa33cae1d0bae0cb1bd9fa | jobs/build_sciplatlab.groovy | jobs/build_sciplatlab.groovy | import util.Plumber
def p = new Plumber(
name: 'sqre/infra/build-sciplatlab',
dsl: this
)
p.pipeline().with {
description('Constructs docker LSST Science Platform Notebook Aspect images.')
parameters {
stringParam('TAG', null, 'eups distrib tag')
booleanParam('NO_PUSH', false, 'Do not push image to do... | import util.Plumber
def p = new Plumber(
name: 'sqre/infra/build-sciplatlab',
dsl: this
)
p.pipeline().with {
description('Constructs docker LSST Science Platform Notebook Aspect images.')
parameters {
stringParam('TAG', null, 'eups distrib tag')
booleanParam('NO_PUSH', false, 'Do not push image to do... | Revert "Bump build timeout up." | Revert "Bump build timeout up."
This reverts commit d8d46a7bdd5423eab33c9370d5ec1682156d9c74.
| Groovy | apache-2.0 | jhoblitt/jenkins-dm-jobs,lsst-sqre/jenkins-dm-jobs |
962278ce56497266135eb0805e5fa69027efb3a5 | src/durbin/stat/Sampling.groovy | src/durbin/stat/Sampling.groovy |
import com.google.common.collect.*
import cern.jet.random.sampling.RandomSampler
import cern.jet.random.engine.MersenneTwister
class Sampling{
/**
* Returns a random subset of the given list.
*/
public static def randomSubset(list,n){
def values = new long[n]
RandomSampler.sample(n,list.size(),n,0,... |
import com.google.common.collect.*
import cern.jet.random.sampling.RandomSampler
import cern.jet.random.engine.MersenneTwister
class Sampling{
/**
* Returns a random subset of the given list.
*/
public static def randomSubset(list,n){
def values = new long[n]
RandomSampler.sample(n,list.size(),n,0,... | Add method to return random selection and indices | Add method to return random selection and indices
| Groovy | mit | jdurbin/durbinlib,jdurbin/durbinlib,jdurbin/grapnel,jdurbin/grapnel,jdurbin/grapnel,jdurbin/durbinlib |
05a5474a4318f061bf9fb7a42d6e09736b8db787 | 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 old comments from the beta days | Remove old comments from the beta days | Groovy | apache-2.0 | groovy/groovy-website,groovy/groovy-website |
800cf6928fb9ab0198894abd97d2025af02e4422 | srv/templates/broadcast.gtpl | srv/templates/broadcast.gtpl | GVM server ${gvmVersion} on vertx ${vertx}
=== BROADCAST ==========================================
This application is currently in beta.
Report issues: https://github.com/freshgroovy/gvm/issues
--------------------------------------------------------
Latest update:
Lots of bug fixes.
Issue list, latest fixes on top:... | GVM server ${gvmVersion} on vertx ${vertx}
=== BROADCAST ==========================================
This application is currently in beta.
Report issues: https://github.com/gvmtool/gvm/issues
--------------------------------------------------------
Latest update:
We now have groovy, grails, griffon and gradle
candidat... | Change any display references from freshgroovy to gvmtool. | Change any display references from freshgroovy to gvmtool.
| Groovy | apache-2.0 | nobeans/gvm-cli,GsusRecovery/sdkman-cli,jbovet/gvm,dsyer/gvm,skpal/sdkman-cli,skpal/sdkman-cli,gvmtool/gvm-cli,nobeans/gvm-cli,shanman190/sdkman-cli,DealerDotCom/gvm-cli,dsyer/gvm,busches/gvm-cli,DealerDotCom/gvm-cli,sdkman/sdkman-cli,GsusRecovery/sdkman-cli |
8711f31100e633a12b77fa61aa1a40ae1f624ce0 | src/test/groovy/bugs/Groovy5185Bug.groovy | src/test/groovy/bugs/Groovy5185Bug.groovy | package groovy.bugs
class Groovy5185Bug extends GroovyTestCase {
void testShouldNotThrowMethodMissingException() {
assertScript '''
enum Foo {
foo,
bar,
baz
}
List<Closure> closures = []
5000.times { int index ... | package groovy.bugs
class Groovy5185Bug extends GroovyTestCase {
void testShouldNotThrowMethodMissingException() {
assertScript '''
enum Foo {
foo,
bar,
baz
}
List<Closure> closures = []
500.times { int index -... | Reduce nb of concurrent threads for build to pass on Bamboo | GROOVY-5198: Reduce nb of concurrent threads for build to pass on Bamboo
| Groovy | apache-2.0 | sagarsane/incubator-groovy,EPadronU/incubator-groovy,ebourg/groovy-core,russel/incubator-groovy,genqiang/incubator-groovy,paplorinc/incubator-groovy,ebourg/groovy-core,i55ac/incubator-groovy,adjohnson916/groovy-core,graemerocher/incubator-groovy,rabbitcount/incubator-groovy,adjohnson916/incubator-groovy,upadhyayap/incu... |
1f7a99348c26713899b1fb4f9d7857c27e2c985f | src/durbin/util/CounterMap.groovy | src/durbin/util/CounterMap.groovy | #!/usr/bin/env groovy
/***
* Eventually I'd like to do something where this syntax works whether
* or not 'bob' has already been added to the map...
*
* cm = new CounterMap()
*
* cm['bob']++
*
* Not sure if that is even possible because getAt() has no way to know
* if it's being invoked in a case where the value sho... | #!/usr/bin/env groovy
/***
* Eventually I'd like to do something where this syntax works whether
* or not 'bob' has already been added to the map...
*
* cm = new CounterMap()
*
* cm['bob']++
*
* Not sure if that is even possible because getAt() has no way to know
* if it's being invoked in a case where the value sho... | Add default value for CountMap | Add default value for CountMap
| Groovy | mit | jdurbin/durbinlib,jdurbin/durbinlib,jdurbin/grapnel,jdurbin/grapnel,jdurbin/grapnel,jdurbin/durbinlib |
e0b588ebc64de7e69ad5cb3d434d89e0433f3139 | src/funtest/groovy/utils/HttpHelper.groovy | src/funtest/groovy/utils/HttpHelper.groovy | /*
* Copyright 2014 Marco Vermeulen
*
* 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... | /*
* Copyright 2014 Marco Vermeulen
*
* 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... | Remove redundant test helper code. | Remove redundant test helper code.
| Groovy | apache-2.0 | sdkman/sdkman-broadcast-api,gvmtool/gvm-broadcast-api |
f76247e7c15708da037ee13eec938d443fc57d7c | src/test/groovy/BindingTest.groovy | src/test/groovy/BindingTest.groovy | /*
* Copyright 2003-2010 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 2003-2010 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 test case for new hasVariable() method on Binding. | Add test case for new hasVariable() method on Binding.
| Groovy | apache-2.0 | mariogarcia/groovy-core,avafanasiev/groovy,jwagenleitner/groovy,alien11689/incubator-groovy,nobeans/incubator-groovy,alien11689/incubator-groovy,alien11689/groovy-core,aaronzirbes/incubator-groovy,ebourg/groovy-core,eginez/incubator-groovy,gillius/incubator-groovy,ChanJLee/incubator-groovy,kidaa/incubator-groovy,pickyp... |
34f6281fb2c704a6468d1732156164ef15aefe03 | jenkins/workflow.groovy | jenkins/workflow.groovy | def src = 'https://github.com/cloudhotspot/pypackage-docker.git'
node {
git url: src
stage 'Build Base Images'
sh 'make image docker/base'
sh 'make image docker/dev'
sh 'make image docker/agent'
stage 'Run Unit/Integration Tests'
sh 'make test'
stage 'Build Application Artefacts'
... | def src = 'https://github.com/cloudhotspot/pypackage-docker.git'
node {
git url: src
stage 'Build Base Images'
sh 'make image docker/base'
sh 'make image docker/dev'
sh 'make image docker/agent'
stage 'Run Unit/Integration Tests'
sh 'make test'
stage 'Build Application Artefacts'
... | Add step for publishing test reports | Add step for publishing test reports
| Groovy | mit | cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker |
9ad4811273e4b19bd98221136b99e21a4486a0ec | db/migrate/001_release1/006_create_csm.groovy | db/migrate/001_release1/006_create_csm.groovy | class CreateCsm extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('oracle')) {
String fileName = "db/migrate/001_release1/CSMOracleSQL.sql"
File input = new File(fileName)
String content = input.text
execute(conte... | class CreateCsm extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('oracle')) {
String fileName = "db/migrate/001_release1/CSMOracleSQL.sql"
File input = new File(fileName)
String content = input.text
execute(conte... | Use PostgreSQL scripts in the generic case (including for HSQLDB) | Use PostgreSQL scripts in the generic case (including for HSQLDB)
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@214 0d517254-b314-0410-acde-c619094fa49f
| Groovy | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror |
6f20d40bc6c7a304d820f11bd37184cc041f0d07 | src/test/groovy/com/demo/ControllerFunctionalTest.groovy | src/test/groovy/com/demo/ControllerFunctionalTest.groovy | package com.demo
import groovyx.net.http.RESTClient
import spock.lang.Specification
import spock.lang.Unroll
class ControllerFunctionalTest extends Specification {
@Unroll
def "Should return 200 & some json"() {
setup:
def client = new RESTClient("http://localhost:8080/")
when:
... | package com.demo
import groovyx.net.http.RESTClient
import spock.lang.Specification
import spock.lang.Unroll
class ControllerFunctionalTest extends Specification {
@Unroll
def "Should return 200 & some json"() {
setup:
def host = getHost();
def client = new RESTClient("http://${host}:... | Update functional test to allow for overriding host name of the service being tested. | Update functional test to allow for overriding host name of the service being tested.
ie. mvn verify -P functional-tests -DHOST=127.0.0.1
Will default to localhost
| Groovy | mit | starmer/demo-service |
5452c92f6a21a1fe4e6fcaebbc3bdb83c20afc0b | create_subjobs.groovy | create_subjobs.groovy | // add a useless comment to trigger a diff to trigger a commit to trigger a PR to trigger a mass rebuild
def PackagesFile = new File('/var/lib/jenkins/jobs/Arch Package Builder/workspace/aur-packages')
PackagesFile.eachLine { line ->
packageName = line.trim()
job("Arch_Package_${packageName}") {
description("Th... | // add a useless comment to trigger a diff to trigger a commit to trigger a PR to trigger a mass rebuild
def PackagesFile = new File('/var/lib/jenkins/jobs/Arch Package Builder/workspace/aur-packages')
PackagesFile.eachLine { line ->
packageName = line.trim()
job("Arch_Package_${packageName}") {
description("Th... | Copy file directly without Artifact Deployer | Copy file directly without Artifact Deployer
Artifact Deployer removed in version 1.2 the ability to use it in the
dsl script.
So, we need to replace Artifact Deployer
| Groovy | agpl-3.0 | virtapi/arch-package-builder,virtapi/arch-package-builder,virtapi/arch-package-builder |
47a2e5df53399d8418abe83f8b5e60f4553ae356 | scripts/configure-csrf-protection.groovy | scripts/configure-csrf-protection.groovy | /*
Copyright (c) 2015-2017 Sam Gleske - https://github.com/samrocketman/jenkins-bootstrap-jervis
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/LI... | /*
Copyright (c) 2015-2017 Sam Gleske - https://github.com/samrocketman/jenkins-bootstrap-jervis
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/LI... | Fix missing import of jenkins.model.Jenkins | Fix missing import of jenkins.model.Jenkins
Without this import I get an error saying:
groovy.lang.MissingPropertyException: No such property: Jenkins for class ...
| Groovy | apache-2.0 | samrocketman/jenkins-bootstrap-jervis,samrocketman/jenkins-bootstrap-jervis |
05648787f99cc4525f54e15bf2763fd9e8faa3bf | 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.dependency.resolution = {
inherits("global")
log "warn"
repositories {
grailsCentral()
mavenCentral()
}
dependencies {
compile 'org.scri... | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
def inlinePluginsDir = ".."
grails.plugin.location.'oauth' = "${inlinePluginsDir}/grails-oauth-scribe" // Fork and clone: https://github.com/aiten/grails-oauth-scrib... | Add dependency on latest version of Grails OAuth plugin. (To do: change to fixed version once plugin > 2.4 is released.) | Add dependency on latest version of Grails OAuth plugin. (To do: change to fixed version once plugin > 2.4 is released.)
| Groovy | mit | enrobsop/grails-quickbooks-online |
e812762902c09036b02c71d23482cc3fe6ad4607 | arp_aggloprogramme_pub/gretl-job.groovy | arp_aggloprogramme_pub/gretl-job.groovy | def dbUriSogis = ''
def dbCredentialNameSogis = ''
def dbUriPub = ''
def dbCredentialNamePub = ''
node("master") {
dbUriSogis = "${env.DB_URI_SOGIS}"
dbCredentialNameSogis = "${DB_CREDENTIAL_GRETL}"
dbUriPub = "${env.DB_URI_PUB}"
dbCredentialNamePub = "${DB_CREDENTIAL_GRETL}"
}
node ("gretl") {
gi... | def dbUriSogis = ''
def dbCredentialNameSogis = ''
def dbUriPub = ''
def dbCredentialNamePub = ''
def gretljobsRepo = ''
node("master") {
dbUriSogis = "${env.DB_URI_SOGIS}"
dbCredentialNameSogis = "${DB_CREDENTIAL_GRETL}"
dbUriPub = "${env.DB_URI_PUB}"
dbCredentialNamePub = "${DB_CREDENTIAL_GRETL}"
... | Use GRETL_JOB_REPO_URL environment variable instead of hard coded repo URL | Use GRETL_JOB_REPO_URL environment variable instead of hard coded repo URL
| Groovy | mit | sogis/gretljobs |
14bb4d4a06f14c4dc5efe2fc6c08d41fc29d1087 | src/main/org/codehaus/groovy/tools/shell/ShellLog.groovy | src/main/org/codehaus/groovy/tools/shell/ShellLog.groovy | /*
* Copyright 2003-2007 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 2003-2007 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... | Use a completly custom log, GroovyLog est no good IMO | Use a completly custom log, GroovyLog est no good IMO
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@7511 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | ebourg/groovy-core,aim-for-better/incubator-groovy,shils/groovy,dpolivaev/groovy,bsideup/groovy-core,ChanJLee/incubator-groovy,yukangguo/incubator-groovy,samanalysis/incubator-groovy,nkhuyu/incubator-groovy,alien11689/incubator-groovy,ebourg/groovy-core,EPadronU/incubator-groovy,apache/groovy,paplorinc/incubator-groovy... |
2e2541c55a98c090035174cf5e8fd770a5051f02 | scripts/_Events.groovy | scripts/_Events.groovy | eventWarStart = { warName ->
def stagingFixtures = "${grailsSettings.projectWorkDir}/staging/fixtures"
ant.mkdir(dir: stagingFixtures)
ant.copy(todir: stagingFixtures) {
fileset(dir: "${grailsSettings.baseDir}/fixtures")
}
} | eventWarStart = { warName ->
def stagingFixtures
if (grailsSettings.metaClass.hasProperty(grailsSettings, 'projectWarExplodedDir')) {
stagingFixtures = grailsSettings.projectWarExplodedDir.path
} else {
stagingFixtures = grailsSettings.projectWorkDir.path + '/staging'
}
stagingF... | Support including fixtures in WAR deployment on Grails 1.1.1+ | Support including fixtures in WAR deployment on Grails 1.1.1+
Grails 1.1.1 introduced the build setting “projectWarExplodedDir” and changed the actual name of this directory from “staging” to “stage”. Or implementation gracefully handles both versions.
| Groovy | apache-2.0 | sbglasius/fixtures,gpc/fixtures |
dbd011706ae0921c0af5a5c181dee565874e6e7e | core/src/test/groovy/org/strykeforce/thirdcoast/telemetry/grapher/MeasureTest.groovy | core/src/test/groovy/org/strykeforce/thirdcoast/telemetry/grapher/MeasureTest.groovy | package org.strykeforce.thirdcoast.telemetry.grapher
import spock.lang.Specification
class MeasureTest extends Specification {
def "find by id"() {
expect:
Measure.valueOf("SETPOINT") == Measure.SETPOINT
}
}
| package org.strykeforce.thirdcoast.telemetry.grapher
import spock.lang.Specification
class MeasureTest extends Specification {
def "find by id"() {
expect:
Measure.valueOf("SETPOINT") == Measure.SETPOINT
}
def "measure does not exist"() {
when:
Measure.valueOf("MISSING")
... | Add test for missing Measure | Add test for missing Measure
| Groovy | mit | strykeforce/thirdcoast,strykeforce/thirdcoast,strykeforce/thirdcoast |
bbe7f8ed7e158f4e4d4d9f3a6b6b06fbb530f946 | test/integration/be/cytomine/security/UserControllerTests.groovy | test/integration/be/cytomine/security/UserControllerTests.groovy | package be.cytomine.security;
import grails.test.ControllerUnitTestCase;
/**
* Cytomine @ GIGA-ULG
* User: stevben
* Date: 8/01/11
* Time: 01:10
*/
class UserControllerTests extends ControllerUnitTestCase {
void testIndex() {
def uc = new UserController()
uc.index()
assertEquals "/user/... | package be.cytomine.security;
import grails.test.ControllerUnitTestCase;
/**
* Cytomine @ GIGA-ULG
* User: stevben
* Date: 8/01/11
* Time: 01:10
*/
class UserControllerTests extends ControllerUnitTestCase {
void testIndex() {
}
void testList() {
assertTrue true
}
void testCreate() {
... | Remove unused test code for user controller | Remove unused test code for user controller
| Groovy | apache-2.0 | cytomine/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cyt... |
42087d428ab8bb8d874b0885da29bc5178022aec | build-pipeline/pipelinejobs.groovy | build-pipeline/pipelinejobs.groovy | import org.dotnet.ci.pipelines.Pipeline
def windowsPipeline = Pipeline.createPipeline(this, 'windows-pipeline.groovy')
// Images that can only build on RS1, not RS3
['1.*', '2.1/nanoserver-sac2016/*', '2.1/nanoserver-sac2016/*'].each { folderFilter ->
windowsPipeline.triggerPipelineOnEveryGithubPR(['folderFilter'... | import org.dotnet.ci.pipelines.Pipeline
def windowsPipeline = Pipeline.createPipeline(this, 'windows-pipeline.groovy')
// Images that can only build on RS1, not RS3
['1.*', '2.1/nanoserver-sac2016/*', '2.1/nanoserver-sac2016/*'].each { folderFilter ->
def triggerName = "Windows SAC2016 ${folderFilter[0..-2]} Buil... | Add names to pipeline triggers | Add names to pipeline triggers
| Groovy | mit | aspnet/aspnet-docker |
6263610bd55a96e24d766bace894f41eb23b6037 | 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,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor |
6157f4ba83bb2ea0ae3b0bd12f5cf1e7e8dff2c8 | src/main/groovy/jetpacker/api/configuration/Kit.groovy | src/main/groovy/jetpacker/api/configuration/Kit.groovy | package jetpacker.api.configuration
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.AutoClone
import groovy.transform.CompileStatic
/**
* Created by donny on 25/10/16.
*/
@AutoClone
@CompileStatic
class Kit extends Application {
List<Kit> extensions
// @JsonIgnore
Kit dependen... | package jetpacker.api.configuration
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.AutoClone
import groovy.transform.CompileStatic
/**
* Created by donny on 25/10/16.
*/
@AutoClone
@CompileStatic
class Kit extends Application {
List<Kit> extensions
@JsonIgnore
Kit dependency... | Hide dependency from UI, because they are not going to be 'hardcoded' to their latest version | Hide dependency from UI, because they are not going to be 'hardcoded' to their latest version
| Groovy | mit | jetpacker/jetpacker-api |
754df5cb9eae831b28f0d8d97ffa5afc69fccd31 | 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
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
4e79a0529b7d8fbe8ecb56086c3e2ca0dada7c10 | grgit-gradle/src/main/groovy/org/ajoberstar/grgit/gradle/GrgitPlugin.groovy | grgit-gradle/src/main/groovy/org/ajoberstar/grgit/gradle/GrgitPlugin.groovy | package org.ajoberstar.grgit.gradle
import org.ajoberstar.grgit.Grgit
import org.gradle.api.Plugin
import org.gradle.api.Project
/**
* Plugin adding a {@code grgit} property to all projects
* that searches for a Git repo from the project's
* directory.
* @since 2.0.0
*/
class GrgitPlugin implements Plugin<Projec... | package org.ajoberstar.grgit.gradle
import org.ajoberstar.grgit.Grgit
import org.gradle.api.Plugin
import org.gradle.api.Project
/**
* Plugin adding a {@code grgit} property to all projects
* that searches for a Git repo from the project's
* directory.
* @since 2.0.0
*/
class GrgitPlugin implements Plugin<Projec... | Remove error log when git repo not found | Remove error log when git repo not found
This log was probably more noisy than it needed to be. You can still get
details by turning on debug logs, so this is probably good enough.
This fixes #250.
| Groovy | apache-2.0 | ajoberstar/grgit,ajoberstar/grgit |
19153107e4b1e210e21cc507766a79dddc7db055 | grails-app/controllers/streama/SettingsController.groovy | grails-app/controllers/streama/SettingsController.groovy | package streama
import static org.springframework.http.HttpStatus.*
import grails.transaction.Transactional
@Transactional(readOnly = true)
class SettingsController {
def settingsService
static responseFormats = ['json', 'xml']
static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE"]
def in... | package streama
import static org.springframework.http.HttpStatus.*
import grails.transaction.Transactional
@Transactional(readOnly = true)
class SettingsController {
def settingsService
static responseFormats = ['json', 'xml']
static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE"]
def in... | Remove limit of 10 items in admin setting page. | Remove limit of 10 items in admin setting page.
| Groovy | mit | dularion/streama,dularion/streama,Jeronimo95/streama,Jeronimo95/streama |
03ca5d0afbb00ec4fe54922082d456396cfd6ef6 | consumer/src/main/groovy/au/com/dius/pactworkshop/consumer/Consumer.groovy | consumer/src/main/groovy/au/com/dius/pactworkshop/consumer/Consumer.groovy | package au.com.dius.pactworkshop.consumer
import java.time.LocalDateTime
println new Client('http://localhost:8080').fetchAndProcessData(LocalDateTime.now().toString())
| package au.com.dius.pactworkshop.consumer
import java.time.LocalDateTime
println new Client('http://localhost:8080').fetchAndProcessData(args ? args[0] : LocalDateTime.now().toString())
| Update the consumer script to take the date as a parameter | Update the consumer script to take the date as a parameter
| Groovy | apache-2.0 | DiUS/pact-workshop-jvm |
2ec071af3a9fb0f83949df8410558d2e1f9d226d | spring-boot-cli/samples/integration.groovy | spring-boot-cli/samples/integration.groovy | package org.test
@Configuration
@EnableIntegration
@Grab("jackson-databind")
class SpringIntegrationExample implements CommandLineRunner {
@Autowired
private ApplicationContext context;
@Bean
DirectChannel input() {
new DirectChannel();
}
@Override
void run(String... args) {
println()
println '>>>> ' +... | package org.test
@Configuration
@EnableIntegration
class SpringIntegrationExample implements CommandLineRunner {
@Autowired
private ApplicationContext context;
@Bean
DirectChannel input() {
new DirectChannel();
}
@Override
void run(String... args) {
println()
println '>>>> ' + new MessagingTemplate(inp... | Revert "Add temporary work around for regression in Spring Integration" | Revert "Add temporary work around for regression in Spring Integration"
This reverts commit 71b53e816d5831ad6872757ad2ee99e1f878d752.
| Groovy | apache-2.0 | bbrouwer/spring-boot,mbenson/spring-boot,michael-simons/spring-boot,mbenson/spring-boot,olivergierke/spring-boot,isopov/spring-boot,isopov/spring-boot,ihoneymon/spring-boot,donhuvy/spring-boot,ihoneymon/spring-boot,dreis2211/spring-boot,rweisleder/spring-boot,kdvolder/spring-boot,ptahchiev/spring-boot,michael-simons/sp... |
d1f8bb70551d0fcc5760ff94f4cd0451f311edfe | src/groovy/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistry.groovy | src/groovy/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistry.groovy | package org.codehaus.groovy.grails.plugins.orm.auditable
/**
*
*/
class AuditableRegistry {
def registry = [:]
public boolean isAuditable(entity) {
entity.properties['auditable']
}
AuditableConfig getConfiguration(Class clazz) {
registry[clazz.getCanonicalName()]
}
voi... | package org.codehaus.groovy.grails.plugins.orm.auditable
/**
*
*/
class AuditableRegistry {
def registry = [:]
public boolean isAuditable(entity) {
boolean is = false
try {
if( entity.newInstance().auditable ) {
is = true
}
} catch (Throwa... | Revert "Revert "Functional (but inefficient) test."" | Revert "Revert "Functional (but inefficient) test.""
This reverts commit 960aae0f0e51a60dd8420d677fde1e4f8e42907a.
| Groovy | apache-2.0 | tkvw/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin,dmahapatro/grails-audit-logging-plugin,robertoschwald/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin,dmahapatro/grails-audit-logging-plugin |
f10dff9f449e5ce9a451b73ccfc77d46737a028a | infrastructure/roles/credentials/tasks/aws_credentials.j2.groovy | infrastructure/roles/credentials/tasks/aws_credentials.j2.groovy | import jenkins.model.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.jenkins.plugins.awscredentials.*
domain = Domain.global()
provider = Jenkins.instance.getExtensionList("com.cloudbees.plugins.credentials.SystemCredentialsProvider")[0]
store = prov... | import jenkins.model.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
domain = Domain.global()
provider = Jenkins.instance.getExtensionList("com.cloudbees.plugins.credentials.SystemCredentialsProvider")[0]
store = provider.g... | Use username/passwd rather than aws-credentials. | Use username/passwd rather than aws-credentials.
| Groovy | cc0-1.0 | pedro-r-marques/examples,pedro-r-marques/examples,pedro-r-marques/examples |
ce265de18305cfc01175ef308fd2d1a3153ba49e | extra/src/main/java/brooklyn/entity/dns/AbstractGeoDnsService.groovy | extra/src/main/java/brooklyn/entity/dns/AbstractGeoDnsService.groovy | package brooklyn.entity.dns
import java.util.Map;
import java.util.Set
import brooklyn.entity.Entity
import brooklyn.entity.basic.AbstractEntity
import brooklyn.entity.basic.AbstractGroup
import brooklyn.entity.group.AbstractMembershipTrackingPolicy
import brooklyn.policy.Policy
abstract class AbstractGeoDnsService... | package brooklyn.entity.dns
import java.util.Map;
import java.util.Set
import brooklyn.entity.Entity
import brooklyn.entity.basic.AbstractEntity
import brooklyn.entity.basic.AbstractGroup
import brooklyn.entity.group.AbstractMembershipTrackingPolicy
import brooklyn.policy.Policy
abstract class AbstractGeoDnsService... | Expand method visibility to work around presumed Groovy inner-class bug | Expand method visibility to work around presumed Groovy inner-class bug
| Groovy | apache-2.0 | neykov/incubator-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,bmwshop/brooklyn,andreaturli/... |
204f657239ea6d710a3ff2bfd3fb3b3748d6932a | src/main/db/migrate/014_Phase3_Construction3/002_add_unique_constraint_to_label_tables.groovy | src/main/db/migrate/014_Phase3_Construction3/002_add_unique_constraint_to_label_tables.groovy | class AddUniqueConstraintToLabelTables extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
execute("ALTER TABLE labels ADD CONSTRAINT un_label_name UNIQUE (name)")
execute("ALTER TABLE planned_activity_labels ADD CONSTRAINT fk_label_id FOREIGN KEY (label_id) REFERENCES labels")
execut... | class AddUniqueConstraintToLabelTables extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
execute("ALTER TABLE labels ADD CONSTRAINT un_label_name UNIQUE (name)")
execute("ALTER TABLE planned_activity_labels ADD CONSTRAINT fk_label_id FOREIGN KEY (label_id) REFERENCES labels")
... | Modify to fit oracle identifier length limits | Modify to fit oracle identifier length limits
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@3059 0d517254-b314-0410-acde-c619094fa49f
| Groovy | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror |
f7c3641cc23c2ada20731ef141bf6979db787015 | src/main/db/migrate/014_Phase3_Construction3/006_add_labels_to_scheduled_activities.groovy | src/main/db/migrate/014_Phase3_Construction3/006_add_labels_to_scheduled_activities.groovy | class AddLabelsToScheduledActivities extends edu.northwestern.bioinformatics.bering.Migration {
public void up() {
createTable("scheduled_activity_labels") { t ->
t.includePrimaryKey = false
t.addColumn("scheduled_activity_id", "integer", nullable: false)
t.addColumn("lab... | class AddLabelsToScheduledActivities extends edu.northwestern.bioinformatics.bering.Migration {
public void up() {
createTable("scheduled_activity_labels") { t ->
t.includePrimaryKey = false
t.addColumn("scheduled_activity_id", "integer", nullable: false)
t.addColumn("lab... | Reorder constraint definitions to work around weird HSQLDB bug. (In the other order, HSQLDB named both the PK and FK constraints with the name given for the FK.) | Reorder constraint definitions to work around weird HSQLDB bug. (In the other order, HSQLDB named both the PK and FK constraints with the name given for the FK.)
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
7fabfa5f8b9af063c0b8dfcad7a00088ee63055c | grails-app/utils/DefaultJmsBeans.groovy | grails-app/utils/DefaultJmsBeans.groovy | /*
* Copyright 2010 Grails Plugin Collective
*
* 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 ... | /*
* Copyright 2010 Grails Plugin Collective
*
* 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 ... | Upgrade the cache level to also cache the consumer. | Upgrade the cache level to also cache the consumer.
| Groovy | apache-2.0 | MayGo/grails-jms |
c7b9fb24f9f02f7237fb5f50ad8b09a3f7eee2ad | src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy | src/main/groovy/edu/oregonstate/mist/api/BuildInfoManager.groovy | package edu.oregonstate.mist.api
import io.dropwizard.lifecycle.Managed
class BuildInfoManager implements Managed {
Info getInfo() {
info
}
private Info info = new Info()
/**
* Loads builds.properties.
* DW App will halt during startup if FileNotFoundException is thrown.
*
... | package edu.oregonstate.mist.api
import io.dropwizard.lifecycle.Managed
class BuildInfoManager implements Managed {
Info getInfo() {
info
}
private Info info = new Info()
/**
* Loads builds.properties.
* DW App will halt during startup if FileNotFoundException is thrown.
*
... | Fix bug brought in by commit 5254c03 | Fix bug brought in by commit 5254c03
Fix bug brought in by commit 5254c03
| Groovy | agpl-3.0 | osu-mist/osu-events-api,osu-mist/locations-frontend-api,osu-mist/locations-api,osu-mist/meal-card-api,osu-mist/osu-events-api,osu-mist/locations-frontend-api,osu-mist/alexa-api,osu-mist/web-api-skeleton |
91fa8457177e14dce0d2163a88ff56e42857ace3 | whelktool/scripts/analysis/relation-paths.groovy | whelktool/scripts/analysis/relation-paths.groovy | import whelk.util.DocumentUtil
selectBySqlWhere('deleted = false') { doc ->
try {
DocumentUtil.findKey(doc.graph, '@id') { String value, List path ->
if (value.startsWith("https://libris") || value.startsWith("http://libris") || value.startsWith("https://id.kb.se")) {
def p = pa... | import whelk.util.DocumentUtil
import whelk.Whelk
uris = [
getWhelk().baseUri.toString(),
"https://id.kb.se",
]
selectBySqlWhere('deleted = false') { doc ->
try {
DocumentUtil.findKey(doc.graph, '@id') { String value, List path ->
if (uris.any{value.startsWith(it)}) {
... | Add script for analyzing locations of links in documents | Add script for analyzing locations of links in documents
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
5f41744187993604174ceeda29486cfa5a404157 | module/geb-spock/src/main/groovy/geb/spock/MethodExecutionRule.groovy | module/geb-spock/src/main/groovy/geb/spock/MethodExecutionRule.groovy | package geb.spock
import org.junit.rules.MethodRule
import org.junit.runners.model.FrameworkMethod
import org.junit.runners.model.Statement
/**
* Created by leo-13 on 11/11/2015.
*/
public class MethodExecutionRule implements MethodRule {
public static failedTests = [] //list of failed tests
public Statem... | /* Copyright 2015 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 code style issues according to codeNarc report | Fix code style issues according to codeNarc report
| Groovy | apache-2.0 | geb/geb,ntotomanov-taulia/geb,ntotomanov-taulia/geb,geb/geb |
eddeec13464af00f7724a33bd3d6726be250ddb2 | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy | /*
* Copyright 2010 Grails Plugin Collective
*
* 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 ... | /*
* Copyright 2010 Grails Plugin Collective
*
* 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 ... | Update to newer versions of testing libraries | Update to newer versions of testing libraries
| Groovy | apache-2.0 | MayGo/grails-jms |
94072012bf8fd92cbce08d025b3909d79719d94d | src/test/groovy/dev/kkorolyov/sqlob/integration/MysqlSessionInt.groovy | src/test/groovy/dev/kkorolyov/sqlob/integration/MysqlSessionInt.groovy | package dev.kkorolyov.sqlob.integration
import com.mysql.cj.jdbc.MysqlDataSource
import javax.sql.DataSource
class MysqlSessionInt extends SessionInt {
protected DataSource buildDataSource() {
MysqlDataSource ds = new MysqlDataSource()
ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false&serverTi... | package dev.kkorolyov.sqlob.integration
import com.mysql.cj.jdbc.MysqlDataSource
import javax.sql.DataSource
class MysqlSessionInt extends SessionInt {
protected DataSource buildDataSource() {
MysqlDataSource ds = new MysqlDataSource()
ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false")
ds.s... | Handle collections: Remove mysql serverTimezone property | Handle collections: Remove mysql serverTimezone property
| Groovy | bsd-3-clause | kkorolyov/SQLOb |
977cf0ab5e63119821729573d208676419fb3c57 | src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy | src/test/groovy/cz/swsamuraj/gradle/fortify/FortifyPluginTest.groovy | package cz.swsamuraj.gradle.fortify
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import static org.junit.Assert.assertTrue
public class FortifyPluginTest {
@Ru... | package cz.swsamuraj.gradle.fortify
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.UnexpectedBuildFailure
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import static org.junit.Asse... | Add a test for missing sourceanalyzer | Add a test for missing sourceanalyzer
| Groovy | bsd-3-clause | sw-samuraj/gradle-fortify-plugin |
0334448f4aa96b4362f57b3d556596fffdb0d0a9 | whelktool/scripts/cleanups/2020/10/lxl-2134-descriptionUpgrader-must-be-list.groovy | whelktool/scripts/cleanups/2020/10/lxl-2134-descriptionUpgrader-must-be-list.groovy | /**
* Turn descriptionUpgrader into a list.
*
* See LXL-2134 for more info.
*/
import whelk.util.DocumentUtil
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
String where = "data#>>'{@graph,0,descriptionUpgrader}' IS NOT NULL"... | /**
* Turn descriptionUpgrader into a list.
*
* See LXL-2134 for more info.
*/
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
String where = "data#>>'{@graph,0,descriptionUpgrader}' IS NOT NULL"
selectBySqlWhere(where) { data... | Modify descriptionUpgrader only in record | Modify descriptionUpgrader only in record
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
c6eb9f14817493625ef57a18a6c790a16ff9638b | search/grails-app/services/ElasticSearchService.groovy | search/grails-app/services/ElasticSearchService.groovy | import org.elasticsearch.groovy.node.GNode
import org.elasticsearch.groovy.node.GNodeBuilder
import static org.elasticsearch.groovy.node.GNodeBuilder.*
import org.codehaus.groovy.grails.commons.ApplicationHolder
class ElasticSearchService {
static transactional = false
def gNode = null;
@javax.annotation.Pos... | import org.elasticsearch.groovy.node.GNode
import org.elasticsearch.groovy.node.GNodeBuilder
import static org.elasticsearch.groovy.node.GNodeBuilder.*
import org.codehaus.groovy.grails.commons.ApplicationHolder
class ElasticSearchService {
static transactional = false
def gNode = null;
@javax.annotation.Pos... | Update discovery for es in search service | Update discovery for es in search service
| Groovy | agpl-3.0 | ianibo/OpenLocalInformationDirectory,ianibo/OpenLocalInformationDirectory,ianibo/OpenLocalInformationDirectory |
9f60557cc58759ffaacded4e60475002b5e63e63 | src/test/groovy/com/srs/tetris/game/PieceTest.groovy | src/test/groovy/com/srs/tetris/game/PieceTest.groovy | package com.srs.tetris.game
import org.junit.Test
class PieceTest {
@Test
void board() {
}
@Test
void moveDown() {
// check that the piece moves, and the original is not changed
}
@Test
void rotateLeft() {
}
@Test
void rotateRight() {
}
}
| package com.srs.tetris.game
import org.junit.Test
class PieceTest {
@Test
void board() {
def piece = new Piece(PieceType.L, Color.Red)
assert piece.board.grid == PieceType.L.getBoard(0).grid
piece = piece.rotateLeft()
assert piece.board.grid == PieceType.L.getBoard(1).grid
}
@Test
void moveDown() {
d... | Add tests for the piece class | Add tests for the piece class
| Groovy | mit | seanstephenson/tetris-bob |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.