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 |
|---|---|---|---|---|---|---|---|---|---|
5eb07fd78b503fcbda2ea65b5fa75790a9fcad20 | groovy_metadata_registry/src/groovy/uk/co/mdc/model/ExtensibleObject.groovy | groovy_metadata_registry/src/groovy/uk/co/mdc/model/ExtensibleObject.groovy | package uk.co.mdc.model
import org.json.simple.JSONObject;
abstract class ExtensibleObject {
JSONObject extension
static constraints = {
}
static mapping = {
extension sqlType: 'blob'
}
public boolean addExtraAttribute(String name, Object obj)
{
try{
if(extension==null)
{
extension... | package uk.co.mdc.model
import org.json.simple.JSONObject;
abstract class ExtensibleObject {
JSONObject extension
static constraints = {
}
static mapping = {
extension sqlType: 'blob'
}
public boolean addExtraAttribute(String name, Object obj)
{
try{
if(extension==null)
{
extension... | Make the extensible object return null if none have been set yet. [Rather than throwing a null pointer exception.] | Make the extensible object return null if none have been set yet.
[Rather than throwing a null pointer exception.]
| Groovy | mit | amilward/MDR,amilward/MDR,ModelCatalogue/modelcatalogue,ModelCatalogue/modelcatalogue |
992add8312ee78c0c56a2ba41e5e6483a81cbf64 | src/main/groovy/com/github/jengelman/gradle/plugins/shadow/internal/MinimizeDependencyFilter.groovy | src/main/groovy/com/github/jengelman/gradle/plugins/shadow/internal/MinimizeDependencyFilter.groovy | package com.github.jengelman.gradle.plugins.shadow.internal
import groovy.util.logging.Slf4j
import org.gradle.api.Project
import org.gradle.api.artifacts.ResolvedDependency
@Slf4j
class MinimizeDependencyFilter extends AbstractDependencyFilter {
MinimizeDependencyFilter(Project project) {
super(proj... | package com.github.jengelman.gradle.plugins.shadow.internal
import groovy.util.logging.Slf4j
import org.gradle.api.Project
import org.gradle.api.artifacts.ResolvedDependency
@Slf4j
class MinimizeDependencyFilter extends AbstractDependencyFilter {
MinimizeDependencyFilter(Project project) {
super(proj... | Fix issue with infinite dependency resolve | Fix issue with infinite dependency resolve
| Groovy | apache-2.0 | johnrengelman/shadow,johnrengelman/shadow,johnrengelman/shadow |
317c5bbcf7bb5d0909f9b14941f40b1b85d7f638 | src/site/includes/bottommenu.groovy | src/site/includes/bottommenu.groovy |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... | Make the copyright year automatically be computed | Make the copyright year automatically be computed
| Groovy | apache-2.0 | dmesu/sdkman-website,m-ullrich/groovy-website,marcoVermeulen/groovy-website,marcoVermeulen/groovy-website,benignbala/groovy-website,sdkman/sdkman-website,groovy/groovy-website,rahulsom/sdkman-website,groovy/groovy-website,webkaz/groovy-website,kevintanhongann/groovy-website,marc0der/groovy-website,webkaz/groovy-website... |
2c0ecf3f107d6678365f9151b67444336e6ac66a | broker/core/database/src/main/groovy/com/swisscom/cloud/sb/broker/repository/ServiceInstanceRepository.groovy | broker/core/database/src/main/groovy/com/swisscom/cloud/sb/broker/repository/ServiceInstanceRepository.groovy | /*
* Copyright (c) 2018 Swisscom (Switzerland) Ltd.
*
* 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 l... | /*
* Copyright (c) 2018 Swisscom (Switzerland) Ltd.
*
* 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 l... | Add method for fetch eagerly children of instance | feat: Add method for fetch eagerly children of instance
We need to know the number of children in certain steps and places that
are not sharing same hibernate session, so with this method we can fetch
them eagerly.
| Groovy | apache-2.0 | swisscom/open-service-broker,swisscom/open-service-broker |
1201c265230b9606e113b4c11b895da895048aeb | src/testFunctional/steps/net/gvmtool/json_response_steps.groovy | src/testFunctional/steps/net/gvmtool/json_response_steps.groovy | import static cucumber.api.groovy.EN.And
And(~'^has a single result$') { ->
assert json(response).size() == 1
}
And(~'^the first json message is "(.*)"$') { String message ->
assert message == json(response).first().text
}
And(~'^the "([^"]*)" json message is "([^"]*)"$') { String number, String message ->
... | import static cucumber.api.groovy.EN.And
And(~'^has a single result$') { ->
assert json(response).size() == 1
}
And(~'^the first json message is "(.*)"$') { String message ->
assert message == json(response).first().text
}
And(~'^the "([^"]*)" json message is "([^"]*)"$') { String number, String message ->
... | Rename id field in json response steps. | Rename id field in json response steps.
| Groovy | apache-2.0 | gvmtool/gvm-broadcast-api,sdkman/sdkman-broadcast-api |
360439e09e5f0bb014cf15a05b0824fcb8df3ce4 | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy | package org.apache.tapestry5.integration.app1
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.apache.tapestry5.test.TapestryTestConfiguration
import org.testng.annotations.Test
@TapestryTestConfiguration(webAppFolder = "src/test/app1")
class MiscTests extends TapestryCoreTestCase {
@Test
... | package org.apache.tapestry5.integration.app1
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.apache.tapestry5.test.TapestryTestConfiguration
import org.testng.annotations.Test
@TapestryTestConfiguration(webAppFolder = "src/test/app1")
class MiscTests extends TapestryCoreTestCase {
@Test
... | Correct test of FieldGroup mixin | Correct test of FieldGroup mixin
| Groovy | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
ed11185592f69b1400d58455c8190163dd232432 | src/main/groovy/com/jetpackr/api/configuration/kit/Kits.groovy | src/main/groovy/com/jetpackr/api/configuration/kit/Kits.groovy | package com.jetpackr.api.configuration.kit
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.CompileStatic
import javax.validation.Valid
import javax.validation.constraints.NotNull
/**
* Created by donny on 24/1/17.
*/
@CompileStatic
class Kits {
@Valid
@NotNull
Kit jdk
@V... | package com.jetpackr.api.configuration.kit
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.CompileStatic
import javax.validation.Valid
import javax.validation.constraints.NotNull
/**
* Created by donny on 24/1/17.
*/
@CompileStatic
class Kits {
@Valid
@NotNull
Kit jdk
@V... | Hide Ruby for first release version. | Hide Ruby for first release version.
| Groovy | mit | jetpacker/jetpacker-api |
1a897441bfc7e1084c3019f4a4bf6065c393e8b6 | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/PersistentBuildProcessIntegrationTest.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/PersistentBuildProcessIntegrationTest.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 killing of daemons at the end of persistent build process tests. | Fix killing of daemons at the end of persistent build process tests.
| Groovy | apache-2.0 | gstevey/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gr... |
8de3be8b51fe32d17d50b00c11a51391a15d732d | src/test/groovy/com/msgilligan/bitcoin/rpc/MastercoinSpec.groovy | src/test/groovy/com/msgilligan/bitcoin/rpc/MastercoinSpec.groovy | package com.msgilligan.bitcoin.rpc
/**
* User: sean
* Date: 6/16/14
* Time: 5:32 PM
*/
class MastercoinSpec extends BaseRPCSpec {
Long currencyMSC = 1L
def "mastercoin is present"() {
when: "we call getbalance_MP on a newly generated address"
def destAddr = client.getNewAddress() ... | package com.msgilligan.bitcoin.rpc
/**
* User: sean
* Date: 6/16/14
* Time: 5:32 PM
*/
class MastercoinSpec extends BaseRPCSpec {
Long currencyMSC = 1L
def "mastercoin is present"() {
when: "we call getbalance_MP on a newly generated address"
def destAddr = client.getNewAddress() ... | Change mastercoreversion test to >= 10003 | Change mastercoreversion test to >= 10003 | Groovy | apache-2.0 | OmniLayer/OmniJ,dexX7/bitcoin-spock,dexX7/OmniJ,dexX7/bitcoin-spock,OmniLayer/OmniJ,dexX7/OmniJ,OmniLayer/OmniJ |
56bf92bfd999a1fe1215676c5729171abc9ef25a | src/main/groovy/com/github/dispader/manifesto/Repository.groovy | src/main/groovy/com/github/dispader/manifesto/Repository.groovy | package com.github.dispader.manifesto
import org.ajoberstar.grgit.Grgit
import org.eclipse.jgit.errors.RepositoryNotFoundException
class Repository {
static Grgit getGrgit(String directory) {
Grgit.open(dir: '.')
}
Repository(String directory) {
try {
Repository.getGrgit(dire... | package com.github.dispader.manifesto
import org.ajoberstar.grgit.Grgit
import org.eclipse.jgit.errors.RepositoryNotFoundException
class Repository {
private final String directory
static Grgit getGrgit(String directory) {
Grgit.open(dir: '.')
}
Repository(String directory) {
try {
... | Store directory location for repositories | Store directory location for repositories
| Groovy | apache-2.0 | Dispader/manifesto |
17031ca41bc1d2fada1700b0807227c9ad1dfaa0 | jenkins/jobs/step_regression_tests.groovy | jenkins/jobs/step_regression_tests.groovy | pipelineJob('00-regression-tests') {
concurrentBuild(true)
throttleConcurrentBuilds {
maxTotal 8
}
parameters {
stringParam('OPENZFSCI_REPOSITORY', System.getenv('OPENZFSCI_REPOSITORY'))
stringParam('OPENZFSCI_BRANCH', System.getenv('OPENZFSCI_BRANCH'))
stringParam('OPEN... | pipelineJob('00-regression-tests') {
concurrentBuild(true)
throttleConcurrentBuilds {
maxTotal 8
}
parameters {
stringParam('OPENZFSCI_REPOSITORY', System.getenv('OPENZFSCI_REPOSITORY'))
stringParam('OPENZFSCI_BRANCH', System.getenv('OPENZFSCI_BRANCH'))
stringParam('OPEN... | Expire DCenter VMs after 1 day instead of 7 | Expire DCenter VMs after 1 day instead of 7
To help alleviate storage capacity issues on DCenter, the expiration for
VMs was decreased from 7 days, to a single day. Since we're uploading
zloop and zfstest results to Joyents Manta, the VMs are of limited
benefit after the tests complete.
| Groovy | apache-2.0 | openzfs/openzfs-ci,openzfs/openzfs-ci,openzfs/openzfs-ci,prakashsurya/openzfs-ci,prakashsurya/openzfs-ci,prakashsurya/openzfs-ci |
810862dbe0c2d05334c4777fab53fa2ede638ee3 | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy | package org.apache.tapestry5.integration.app3
import org.apache.tapestry5.test.SeleniumTestCase
import org.testng.annotations.Test
class PageCatalogTests extends SeleniumTestCase
{
@Test
void load_page_catalog_page()
{
def title = "Tapestry 5: Page Catalog"
open("${baseURL}pagecatalog")
... | package org.apache.tapestry5.integration.app3
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
class PageCatalogTests extends TapestryCoreTestCase
{
@Test
void load_page_catalog_page()
{
def title = "Tapestry 5: Page Catalog"
open("${baseURL}... | Fix problems in test suite | TAP5-1678: Fix problems in test suite
Update for links converted to use Ajax partial page updates
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1178608 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | apache/tapestry-5,agileowl/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5 |
794b9512562f55f14f2cd70d74ef53683653e32e | 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.target.level = 1.6
grails.project.dependency.resolution = {
inherits 'global'
log 'warn'
repositories {
grailsCentral()
mavenLo... | 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.resolver = 'maven'
grails.project.dependency.resolution = {
inherits('global') {
}
log 'warn'
repositories {
maven... | Use maven as dependency resolver. Some Grails plugins updated to latest version. | Use maven as dependency resolver. Some Grails plugins updated to latest version.
| Groovy | apache-2.0 | donbeave/grails-font-awesome |
db06504e1c1a41d4343dcf5951c6f4a1b0feb2ec | buildSrc/src/test/groovy/org/mockito/release/notes/improvements/GitHubTicketFetcherTest.groovy | buildSrc/src/test/groovy/org/mockito/release/notes/improvements/GitHubTicketFetcherTest.groovy | package org.mockito.release.notes.improvements
import spock.lang.IgnoreIf
import spock.lang.Specification
import spock.lang.Subject
import testutil.OfflineChecker
@IgnoreIf({ OfflineChecker.isOffline()})
class GitHubTicketFetcherTest extends Specification {
@Subject fetcher = new GitHubTicketFetcher()
//Thi... | package org.mockito.release.notes.improvements
import spock.lang.IgnoreIf
import spock.lang.Specification
import spock.lang.Subject
import testutil.OfflineChecker
@IgnoreIf({ OfflineChecker.isOffline()})
class GitHubTicketFetcherTest extends Specification {
@Subject fetcher = new GitHubTicketFetcher()
//Thi... | Fix GitHub integration test because an issue was closed as fixed | Fix GitHub integration test because an issue was closed as fixed
| Groovy | mit | terebesirobert/mockito,hansjoachim/mockito,ze-pequeno/mockito,mockito/mockito,bric3/mockito,bric3/mockito,mockito/mockito,ze-pequeno/mockito,bric3/mockito,hansjoachim/mockito,mockito/mockito |
962d72482ebd708a2be0a30f925ac835c48b6de1 | examples/grails31-hibernate5/src/integration-test/groovy/functional/tests/ProductSpec.groovy | examples/grails31-hibernate5/src/integration-test/groovy/functional/tests/ProductSpec.groovy | package functional.tests
import another.Item
import grails.test.mixin.integration.Integration
import grails.transaction.Rollback
import groovy.transform.NotYetImplemented
import spock.lang.Specification
/**
* Created by graemerocher on 02/01/2017.
*/
@Integration
class ProductSpec extends Specification {
@Roll... | package functional.tests
import another.Item
import grails.test.mixin.integration.Integration
import grails.transaction.Rollback
import groovy.transform.NotYetImplemented
import spock.lang.Specification
/**
* Created by graemerocher on 02/01/2017.
*/
@Integration
class ProductSpec extends Specification {
@Roll... | Remove @NotYetImplemented for test that is now implemented | Remove @NotYetImplemented for test that is now implemented
| Groovy | apache-2.0 | grails/gorm-hibernate5 |
202aa63e64e56e95dbaa7c981da62f29c8ee2db2 | gradle-lombok-plugin/src/test/groovy/io/franzbecker/gradle/lombok/CompatibilityIntegrationTest.groovy | gradle-lombok-plugin/src/test/groovy/io/franzbecker/gradle/lombok/CompatibilityIntegrationTest.groovy | package io.franzbecker.gradle.lombok
import org.gradle.testkit.runner.GradleRunner
import spock.lang.Unroll
@Unroll
class CompatibilityIntegrationTest extends AbstractIntegrationTest {
String theGradleVersion
@Override
protected GradleRunner createGradleRunner() {
def runner = super.createGradle... | package io.franzbecker.gradle.lombok
import org.gradle.testkit.runner.GradleRunner
import spock.lang.Unroll
@Unroll
class CompatibilityIntegrationTest extends AbstractIntegrationTest {
String theGradleVersion
@Override
protected GradleRunner createGradleRunner() {
def runner = super.createGradle... | Add Gradle 5.4 to compatibility test | Add Gradle 5.4 to compatibility test
| Groovy | apache-2.0 | franzbecker/gradle-lombok,franzbecker/gradle-lombok |
4ebe8cfd3358325df66604323b564682707eb378 | orca-clouddriver/src/main/groovy/com/netflix/spinnaker/orca/kato/tasks/azure/TerminateAzureInstancesTask.groovy | orca-clouddriver/src/main/groovy/com/netflix/spinnaker/orca/kato/tasks/azure/TerminateAzureInstancesTask.groovy |
package com.netflix.spinnaker.orca.kato.tasks.azure
import com.netflix.spinnaker.orca.clouddriver.tasks.AbstractCloudProviderAwareTask
import groovy.transform.CompileStatic
import com.netflix.spinnaker.orca.DefaultTaskResult
import com.netflix.spinnaker.orca.ExecutionStatus
import com.netflix.spinnaker.orca.Task
impo... |
package com.netflix.spinnaker.orca.kato.tasks.azure
import com.netflix.spinnaker.orca.clouddriver.tasks.AbstractCloudProviderAwareTask
import groovy.transform.CompileStatic
import com.netflix.spinnaker.orca.DefaultTaskResult
import com.netflix.spinnaker.orca.ExecutionStatus
import com.netflix.spinnaker.orca.Task
impo... | Remove @CompileStatic from Azure classes that broke after commit 5d177fe5 | Remove @CompileStatic from Azure classes that broke after commit 5d177fe5
| Groovy | apache-2.0 | HaishiBai/orca |
e3cdb8d21272612064ec2e03d6e8ce573572c326 | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/GradleScriptKotlinBuildPerformanceTest.groovy | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/GradleScriptKotlinBuildPerformanceTest.groovy | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Fix GSK perf test IDs to distinguish them | Fix GSK perf test IDs to distinguish them
See gradle/gradle-script-kotlin#184
| Groovy | apache-2.0 | lsmaira/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,gradl... |
69fe7c6e37c97fbb8d196877778c1d0e8615887f | src/test/groovy/net/rdrei/android/buildtimetracker/TaskStateBuilder.groovy | src/test/groovy/net/rdrei/android/buildtimetracker/TaskStateBuilder.groovy | package net.rdrei.android.buildtimetracker
import org.gradle.api.tasks.TaskState
class TestTaskState implements TaskState {
boolean executed = false
Throwable failure = null
boolean didWork = false
boolean skipped = false
String skipMessage = null
@java.lang.Override
boolean getExecuted()... | package net.rdrei.android.buildtimetracker
import org.gradle.api.tasks.TaskState
class TestTaskState implements TaskState {
boolean executed = false
Throwable failure = null
boolean didWork = false
boolean skipped = false
String skipMessage = null
@Override
boolean getExecuted() {
... | Remove java.lang prefixes added by tooling. | Remove java.lang prefixes added by tooling.
| Groovy | apache-2.0 | gpie3k/build-time-tracker-plugin,passy/build-time-tracker-plugin |
4d29682dd17cf2e3103377ee4db42a648d4e1d79 | grooves-api/src/main/groovy/com/github/rahulsom/grooves/api/EventsDsl.groovy | grooves-api/src/main/groovy/com/github/rahulsom/grooves/api/EventsDsl.groovy | package com.github.rahulsom.grooves.api
import java.util.concurrent.atomic.AtomicLong
import java.util.function.Consumer
import java.util.function.Supplier
/**
* DSL to simplify writing code with Events
*/
class EventsDsl {
static AtomicLong defaultPositionSupplier = new AtomicLong()
static class OnSpec<A e... | package com.github.rahulsom.grooves.api
import java.util.concurrent.atomic.AtomicLong
import java.util.function.Consumer
import java.util.function.Supplier
/**
* DSL to simplify writing code with Events
*/
class EventsDsl {
static AtomicLong defaultPositionSupplier = new AtomicLong()
static class OnSpec<A e... | Allow override in event dsl | Allow override in event dsl
| Groovy | apache-2.0 | rahulsom/grooves,rahulsom/grooves,rahulsom/grooves |
8e5699b5f2dfd3ec757e09da4e476b169dc89ce0 | db/migrate/007_Phase2_Construction1/021_add_index_user_roles.groovy | db/migrate/007_Phase2_Construction1/021_add_index_user_roles.groovy | class AddIndexUserRoles extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
dropTable('user_roles')
createTable('user_roles') { t ->
t.addColumn('csm_group_name', 'string', nullable: false)
t.addColumn('user_id', 'integer', nullable:false)
}
}... | class AddIndexUserRoles extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
dropTable('user_roles', primaryKey:false)
createTable('user_roles') { t ->
t.addColumn('csm_group_name', 'string', nullable: false)
t.addColumn('user_id', 'integer', nullable:fals... | Fix dropping of table for oracle. Must specify no primary key. | Fix dropping of table for oracle. Must specify no primary key.
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
ddcd58471f7d156e2ef8572b931761d431b74a70 | src/main/groovy/org/rackspace/gdeproxy/PortFinder.groovy | src/main/groovy/org/rackspace/gdeproxy/PortFinder.groovy | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.rackspace.gdeproxy;
import groovy.util.logging.Log4j;
/**
*
* @author richard-sartor
*/
@Log4j
public class PortFinder {
def basePort = 10000
def currentPort = null
def getNextOpenPort(star... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.rackspace.gdeproxy;
import groovy.util.logging.Log4j;
/**
*
* @author richard-sartor
*/
@Log4j
public class PortFinder {
public PortFinder(start=null) {
if (start == null) {
sta... | Add a constructor that sets currentPort. Remove the basePort field. | Add a constructor that sets currentPort. Remove the basePort field.
| Groovy | mit | rackerlabs/deproxy |
1e74686921b69bed58e51fe85dcbd280b129230f | pipelines/openjdk8_nightly_pipeline.groovy | pipelines/openjdk8_nightly_pipeline.groovy | /*
* DO NOT EDIT DIRECTLY! This code comes from https://github.com/AdoptOpenJDK/openjdk-build/pipelines/
* please create a PR there before copying the code over
*/
println "building ${JDK_VERSION}"
stage('build OpenJDK') {
def Platforms = [:]
Platforms["Mac"] = {
build job: 'openjdk8_build_x86-64_ma... | /*
* DO NOT EDIT DIRECTLY! This code comes from https://github.com/AdoptOpenJDK/openjdk-build/pipelines/
* please create a PR there before copying the code over
*/
println "building ${JDK_VERSION}"
stage('build OpenJDK') {
def Platforms = [:]
Platforms["Mac"] = {
def buildJob = build job: 'openjdk8_... | Add test build in pipeline | Add test build in pipeline
Signed-off-by: Sophia Guo <cb587105e643fe05dcb0f8427cf77b5992d572d3@ca.ibm.com> | Groovy | apache-2.0 | AdoptOpenJDK/openjdk-build,AdoptOpenJDK/openjdk-build,karianna/openjdk-build,karianna/openjdk-build |
b525fc2e37a4042982f4874b77a596abb01f2dd1 | workspace/src/main/groovy/jetpacker/configuration/Application.groovy | workspace/src/main/groovy/jetpacker/configuration/Application.groovy | package jetpacker.configuration
import groovy.transform.CompileStatic
import groovy.transform.ToString
/**
* Created by donny.wijaya on 24/10/2016.
*/
@ToString(includeNames = true, includeSuper = true)
@CompileStatic
class Application extends Metadata {
String namespace
Endpoint endpoint
} | package jetpacker.configuration
import groovy.transform.CompileStatic
import groovy.transform.ToString
/**
* Created by donny.wijaya on 24/10/2016.
*/
@ToString(includeNames = true, includeSuper = true)
@CompileStatic
class Application extends Metadata {
String namespace
Endpoint endpoint = Endpoint.None
} | Set default Endpoint to None | Set default Endpoint to None
| Groovy | mpl-2.0 | forseti/jetpacker,forseti/jetpacker,forseti/jetpacker |
3380a40a33b8899777efeebc7d37716b8a3d0e1e | jenkins/basic-docker-build.groovy | jenkins/basic-docker-build.groovy | node {
def built_img = ''
def taggedImageName = ''
stage('Checkout git repo') {
git branch: 'master', url: params.git_repo
}
stage('Build Docker image') {
built_img = docker.build(params.docker_repository + ":${env.BUILD_NUMBER}", '.')
}
stage('Push Docker image to Azure Containe... | node {
def built_img = ''
def taggedImageName = ''
stage('Checkout git repo') {
git branch: 'master', url: params.git_repo
}
stage('Build Docker image') {
built_img = docker.build(params.docker_repository + ":${env.BUILD_NUMBER}", '.')
}
stage('Push Docker image to Azure Containe... | Update Jenkins pipeline script: add IMAGE_NAME enviroment variable | Update Jenkins pipeline script: add IMAGE_NAME enviroment variable
| Groovy | mit | TylerLu/hello-world,TylerLu/hello-world,TylerLu/hello-world |
993fc120632793ab27c35f080fce8c0d7c8c64f6 | src/test/groovy/VarargsMethodTest.groovy | src/test/groovy/VarargsMethodTest.groovy | class VarargsMethodTest extends GroovyTestCase {
void testVarargsOnly() {
// assertEquals 0, varargsOnlyMethod() // todo: fix. throws NPE
assertEquals 1, varargsOnlyMethod('')
assertEquals 1, varargsOnlyMethod(1)
assertEquals 2, varargsOnlyMethod('','')
assertEquals 1, varar... | /**
* VarargsMethodTest.groovy
*
* Test the feature that the length of arguments can be variable
* when invoking methods with or without parameters.
*
* @author Dierk Koenig
* @author Pilho Kim
* @version $Revision$
*/
class VarargsMethodTest extends GroovyTestCase {
void testVarargsOnly() { ... | Test the feature that the length of arguments can be variable when invoking methods with or without parameters. | GROOVY-1023: Test the feature that the length of arguments can be variable when invoking methods with or without parameters.
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@2731 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | upadhyayap/incubator-groovy,nobeans/incubator-groovy,paulk-asert/incubator-groovy,antoaravinth/incubator-groovy,christoph-frick/groovy-core,paplorinc/incubator-groovy,samanalysis/incubator-groovy,mariogarcia/groovy-core,eginez/incubator-groovy,pledbrook/incubator-groovy,rlovtangen/groovy-core,paplorinc/incubator-groovy... |
ec4eee9c8ad59b1e925c63074444b104cf01d755 | vars/sanityChecks.groovy | vars/sanityChecks.groovy | def linux_build() {
sh 'echo "works"'
}
def windows_build() {
bat 'echo \'works\''
}
stage('Verify VMAgents templates') {
parallel 'Custom Ubuntu without init script': {
node('s-cust-no-init-ubuntu') {
linux_build()
}
},
/*'Custom Ubuntu with init script': {
node(... | def linux_build() {
sh 'echo "works"'
}
def windows_build() {
bat 'echo \'works\''
}
timeout(60) {
stage('Verify VMAgents templates') {
parallel 'Custom Ubuntu without init script': {
node('s-cust-no-init-ubuntu') {
linux_build()
}
},
/*'Custom... | Add timeout in sanity checks | Add timeout in sanity checks
| Groovy | mit | azure-devops/ci |
fefce745380a3a9da68d9bb895d1ae526386490f | src/test/resources/testtreeprocessorextension.groovy | src/test/resources/testtreeprocessorextension.groovy | treeprocessor {
document ->
def blocks = document.blocks()
(0..<blocks.size()).each {
def block = blocks[it]
def lines = block.lines()
if (lines.size() > 0 && lines[0].startsWith('$')) {
Map attributes = block.attributes
attributes["role"] = "terminal"
... | treeprocessor {
document ->
def blocks = document.blocks()
(0..<blocks.size()).each {
def block = blocks[it]
def lines = block.lines()
if (lines.size() > 0 && lines[0].startsWith('$')) {
Map attributes = block.attributes
attributes["role"] = "terminal"
... | Fix String/GString confusion in extensions | Fix String/GString confusion in extensions
| Groovy | apache-2.0 | asciidoctor/asciidoctorj-groovy-dsl |
3076017fdbf15089de6a52d2fe4f72f14c663d50 | whelktool/scripts/cleanups/2021/06/lxl-3640-add-mimer-uri-identifiers/script.groovy | whelktool/scripts/cleanups/2021/06/lxl-3640-add-mimer-uri-identifiers/script.groovy | List idList = new File(scriptDir, 'suecia-group-idlist.yaml').readLines()
Map mimerUriById = [:]
String id
idList.each { String line ->
if (line =~ "libris_id:")
id = line.replaceFirst(/.*libris_id:/, "").trim()
else if (line =~ /uri:/) {
String uri = line.replace("uri:", "").trim()
... | List idList = new File(scriptDir, 'suecia-group-idlist.yaml').readLines()
Map mimerUriById = [:]
String id
idList.each { String line ->
if (line =~ "libris_id:")
id = line.replaceFirst(/.*libris_id:/, "").replaceAll(/\W/, "")
else if (line =~ /uri:/) {
String uri = line.replace("uri:", "").tr... | Remove all non-alphanumeric chars to obtain id string | Remove all non-alphanumeric chars to obtain id string
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
8495b9fab253ad0705b18b50fcc5c34fe51518ee | LightweightDeployGrailsPlugin.groovy | LightweightDeployGrailsPlugin.groovy | class LightweightDeployGrailsPlugin {
def version = "0.13.9"
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... | Prepare for release of 0.14.0 | Prepare for release of 0.14.0
| Groovy | apache-2.0 | wotifgroup/grails-lightweight-deploy,wotifgroup/grails-lightweight-deploy |
03de3d6465662081d8c9e9788f2cbccca4d79c2a | broker/src/main/groovy/com/swisscom/cloud/sb/broker/util/LogContextEnrichInterceptor.groovy | broker/src/main/groovy/com/swisscom/cloud/sb/broker/util/LogContextEnrichInterceptor.groovy | package com.swisscom.cloud.sb.broker.util
import groovy.util.logging.Slf4j
import org.slf4j.MDC
import org.springframework.web.servlet.HandlerMapping
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
@Sl... | package com.swisscom.cloud.sb.broker.util
import groovy.util.logging.Slf4j
import org.slf4j.MDC
import org.springframework.web.servlet.HandlerMapping
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
@Sl... | Set empty guid as a fallback. | Set empty guid as a fallback.
| Groovy | apache-2.0 | swisscom/open-service-broker,swisscom/open-service-broker |
24807ddc1bb0d8193216e334138294e352658111 | subprojects/launcher/src/test/groovy/org/gradle/launcher/EmbeddedDaemonRegistrySpec.groovy | subprojects/launcher/src/test/groovy/org/gradle/launcher/EmbeddedDaemonRegistrySpec.groovy | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Put back the missing unit test | Put back the missing unit test
| Groovy | apache-2.0 | robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,l... |
6347dd589b1dfd4d925ecd631fcd2e40478358f0 | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TapestryJavaScriptTests.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TapestryJavaScriptTests.groovy | package org.apache.tapestry5.integrati.app1
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
class TapestryJavaScriptTests extends TapestryCoreTestCase {
@Test
void basic_javascript_tests() {
openLinks "JavaScript Unit Tests"
def resultClass = g... | package org.apache.tapestry5.integration.app1
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
class TapestryJavaScriptTests extends TapestryCoreTestCase {
@Test
void basic_javascript_tests() {
openLinks "JavaScript Unit Tests"
def resultClass =... | Fix corrupted package name in JavaScriptTests.groovy | Fix corrupted package name in JavaScriptTests.groovy
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1140275 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,agileowl/tapestry-5 |
5771e36f412c03749ae9ff7a93746f44e05a09d6 | jaxrs-restlet/src/integration-test/groovy/org/grails/plugins/jaxrs/restlet/RestletIntegrationSpec.groovy | jaxrs-restlet/src/integration-test/groovy/org/grails/plugins/jaxrs/restlet/RestletIntegrationSpec.groovy | package org.grails.plugins.jaxrs.restlet
import grails.test.mixin.integration.Integration
import org.grails.plugins.jaxrs.test.implementation.JaxrsControllerIntegrationSpec
@Integration
class RestletIntegrationSpec extends JaxrsControllerIntegrationSpec {
}
| package org.grails.plugins.jaxrs.restlet
import grails.testing.mixin.integration.Integration
import org.grails.plugins.jaxrs.test.implementation.JaxrsControllerIntegrationSpec
@Integration
class RestletIntegrationSpec extends JaxrsControllerIntegrationSpec {
}
| Fix integration annotation in restlet tests | Fix integration annotation in restlet tests
| Groovy | apache-2.0 | budjb/grails-jaxrs,budjb/grails-jaxrs,budjb/grails-jaxrs |
f43f8f0ab766681636c88622eb3b68f0663c64d0 | jenkins-job-dsl-gradle-plugin/src/test/groovy/com/aoe/gradle/jenkinsjobdsl/GradleVersionsSmokeSpec.groovy | jenkins-job-dsl-gradle-plugin/src/test/groovy/com/aoe/gradle/jenkinsjobdsl/GradleVersionsSmokeSpec.groovy | package com.aoe.gradle.jenkinsjobdsl
import org.gradle.testkit.runner.GradleRunner
import spock.lang.Unroll
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
class GradleVersionsSmokeSpec extends AbstractGradleProjectSpec {
def setup() {
def sample = new File(jobsDir, 'sample.groovy')
... | package com.aoe.gradle.jenkinsjobdsl
import org.gradle.testkit.runner.GradleRunner
import spock.lang.Unroll
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
class GradleVersionsSmokeSpec extends AbstractGradleProjectSpec {
def setup() {
def sample = new File(jobsDir, 'sample.groovy')
... | Remove 5.6.4 and 6.0.1 from smoke test -- they both fail | Remove 5.6.4 and 6.0.1 from smoke test -- they both fail
| Groovy | mit | AOEpeople/gradle-jenkins-job-dsl-plugin |
e1daa97c620e9cdc71bcfe393a57d0cfc0210ea6 | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy | grails.project.work.dir = "target"
grails.project.dependency.resolver = "maven"
grails.project.dependency.resolution = {
inherits "global"
log "warn"
repositories {
grailsCentral()
mavenCentral()
}
plugins {
compile ":hibernate:3.6.10.1", {
export = false
... | grails.project.work.dir = "target"
grails.project.dependency.resolver = "maven"
grails.project.dependency.resolution = {
inherits "global"
log "warn"
repositories {
grailsCentral()
mavenCentral()
}
plugins {
compile ":hibernate:3.6.10.1", {
export = false
... | Update release plugin to 3.0.1 | Update release plugin to 3.0.1
| Groovy | apache-2.0 | gpc/searchable,gpc/searchable,gpc/searchable,gpc/searchable |
58f8bce0e11ae57e257d7d7da7845ac51b02f7d1 | src/main/resources/com/groupon/jenkins/dynamic/build/PullRequestRebuildProperty/config.groovy | src/main/resources/com/groupon/jenkins/dynamic/build/PullRequestRebuildProperty/config.groovy | /*
The MIT License (MIT)
Copyright (c) 2014, Groupon, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | /*
The MIT License (MIT)
Copyright (c) 2014, Groupon, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | Read pullrequest rebuild property only if its already set | Read pullrequest rebuild property only if its already set
| Groovy | mit | DotCi/DotCi,DotCi/DotCi,bschmeck/DotCi,bschmeck/DotCi,suryagaddipati/DotCi,bschmeck/DotCi,groupon/DotCi,erikdw/DotCi,dimacus/DotCi,suryagaddipati/DotCi,suryagaddipati/DotCi,groupon/DotCi,dimacus/DotCi,dimacus/DotCi,groupon/DotCi,erikdw/DotCi,erikdw/DotCi,DotCi/DotCi |
0dbf7b0c33301b39a0d04c743f6ae921b0bd603a | 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 memory regression in many empty projects performance benchmark to allow for classloader caching overhead. | Increase the allowed amount of memory regression in many empty projects performance benchmark to allow for classloader caching overhead.
+review REVIEW-5441
| Groovy | apache-2.0 | lsmaira/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,lsm... |
cd72e9ab33e3e6c8d427e8680ee50b3ad37fffe3 | integration-test/src/it/remote-dependency-management-null/verify.groovy | integration-test/src/it/remote-dependency-management-null/verify.groovy | /**
* Copyright (C) 2012 Red Hat, Inc. (jcasey@redhat.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 ... | /**
* Copyright (C) 2012 Red Hat, Inc. (jcasey@redhat.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 ... | Fix regression test for a502aca | Fix regression test for a502aca
| Groovy | apache-2.0 | release-engineering/pom-manipulation-ext,rnc/pom-manipulation-ext |
621e62f281d1747d7625fc2f3c8511206a594018 | src/test/groovy/lang/ClassReloadingTest.groovy | src/test/groovy/lang/ClassReloadingTest.groovy | package groovy.lang
class ClassReloadingTest extends GroovyTestCase {
public void testRealoding() {
def file = File.createTempFile("TestReload",".groovy", new File("target"))
file.deleteOnExit()
def className = file.name-".groovy"
def cl = new GroovyClassLoader(this.class.classLoader);
def currentDir = fi... | package groovy.lang
class ClassReloadingTest extends GroovyTestCase {
public void testRealoding() {
def file = File.createTempFile("TestReload",".groovy", new File("target"))
file.deleteOnExit()
def className = file.name-".groovy"
def cl = new GroovyClassLoader(this.class.classLoader);
def currentDir = fi... | Add delay time before modifying the file so that the last Modified timestamps are different. | Add delay time before modifying the file so that the last Modified timestamps
are different.
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@3727 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | armsargis/groovy,fpavageau/groovy,taoguan/incubator-groovy,fpavageau/groovy,PascalSchumacher/incubator-groovy,groovy/groovy-core,bsideup/incubator-groovy,apache/incubator-groovy,mariogarcia/groovy-core,gillius/incubator-groovy,apache/incubator-groovy,eginez/incubator-groovy,alien11689/incubator-groovy,russel/groovy,ali... |
d6bb11c0faa415e34f128018fd1cb3e1f318d5dc | JcaptchaGrailsPlugin.groovy | JcaptchaGrailsPlugin.groovy | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | Change the plugin descriptor to point to my (candrews) github repository | Change the plugin descriptor to point to my (candrews) github repository
| Groovy | apache-2.0 | candrews/grails-jcaptcha-plugin |
16fa0f13860236aed2fc1613544359a258b0e8f1 | src/main/groovy/org/strangeway/disttest/KernelRepo.groovy | src/main/groovy/org/strangeway/disttest/KernelRepo.groovy | package org.strangeway.disttest
class KernelRepo {
private static final gitUrl = "git@server.home:/home/git/linux-stable.git"
static String getRepoPath() {
File repoDir = new File("kernelRepo/linux-stable")
if (repoDir.isDirectory()) {
return repoDir.getPath()
}
Pro... | package org.strangeway.disttest
class KernelRepo {
private static final gitUrl = "git@server.home:/home/git/linux-stable.git"
static String getRepoPath() {
File repoDir = new File("kernelRepo/linux-stable")
if (repoDir.isDirectory()) {
return repoDir.getPath()
}
Pro... | Include tagged commit into commits list. | Include tagged commit into commits list.
| Groovy | mit | nazarov-yuriy/disttest |
25750c51ddaec2dc0be2d77da1f998546110449e | grails-app/services/org/bbop/apollo/OrganismService.groovy | grails-app/services/org/bbop/apollo/OrganismService.groovy | package org.bbop.apollo
import grails.transaction.Transactional
import org.hibernate.Hibernate
import org.hibernate.Session
@Transactional
class OrganismService {
def featureService
def deleteAllFeaturesForOrganism(Organism organism) {
// the very slow way
int count = 0
//final Sess... | package org.bbop.apollo
import grails.transaction.Transactional
import org.hibernate.Hibernate
import org.hibernate.Session
@Transactional
class OrganismService {
def featureService
def deleteAllFeaturesForOrganism(Organism organism) {
def list=Feature.withCriteria() {
featureLocations {
... | Remove some old comments and fix feature count returned from deleteAllFeaturesForOrganism | Remove some old comments and fix feature count returned from deleteAllFeaturesForOrganism
| Groovy | bsd-3-clause | erasche/Apollo,erasche/Apollo,erasche/Apollo,erasche/Apollo,erasche/Apollo |
2c2ca8e6778c84dbfbffc14ce5ee962c1fac2e53 | lib/DataSource.groovy | lib/DataSource.groovy | class DataSource {
static Map build(db_name, database) {
def inputs = database.get('inputs', []).inject([]) { acc, input_entry ->
acc << Input.build(db_name, acc.length + 1, input_entry.key, input_entry.value)
}
Map process = Parse.build(db_name, database.process);
return [
name: db_name,... | class DataSource {
static Map build(db_name, database) {
def inputs = database.get('inputs', []).inject([]) { acc, input_entry ->
acc << Input.build(db_name, acc.length + 1, input_entry.key, input_entry.value)
}
Map process = Parse.build(db_name, database.process);
return [
name: db_name,... | Fix generation of process commands | Fix generation of process commands
| Groovy | apache-2.0 | RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline |
6d400878da6b8cbf7092bd57c5eefac935d6cff8 | src/main/groovy/org/geocommands/vector/LayerOutCommand.groovy | src/main/groovy/org/geocommands/vector/LayerOutCommand.groovy | package org.geocommands.vector
import geoscript.layer.Layer
import geoscript.workspace.Memory
import org.geocommands.Command
/**
* A Command base class for writing Layers.
* @author Jared Erickson
*/
abstract class LayerOutCommand<T extends LayerOutOptions> extends Command<T> {
abstract String getName()
... | package org.geocommands.vector
import geoscript.layer.Layer
import geoscript.workspace.Memory
import org.geocommands.Command
/**
* A Command base class for writing Layers.
* @author Jared Erickson
*/
abstract class LayerOutCommand<T extends LayerOutOptions> extends Command<T> {
abstract String getName()
... | Fix output layer default name calculation. | Fix output layer default name calculation.
| Groovy | mit | jericks/geoc,jericks/geoc |
2bcd46b20c0e9504f7106fc44780dc536fdcd606 | grails-app/domain/shopping/list/User.groovy | grails-app/domain/shopping/list/User.groovy | package shopping.list
class User {
transient springSecurityService
String username
String password
boolean enabled
boolean accountExpired
boolean accountLocked
boolean passwordExpired
static constraints = {
username blank: false, unique: true
password blank: false
}
static mapping = {
password colu... | package shopping.list
class User {
transient springSecurityService
String username
String password
boolean enabled
boolean accountExpired
boolean accountLocked
boolean passwordExpired
static constraints = {
username blank: false, unique: true
password blank: false
}
static mapping = {
table 'sluser'... | Fix table mapping for PostgreSQL (CloudFoundry) | Fix table mapping for PostgreSQL (CloudFoundry) | Groovy | apache-2.0 | kylesm/shopping-list |
b6ac27f2f874faf92e50c5f95f32d49784fea829 | bookStore/grails-app/domain/standalone/ChildWithAssignedKey.groovy | bookStore/grails-app/domain/standalone/ChildWithAssignedKey.groovy | package standalone
/**
* Test parent domain object with assigned key
*/
class ChildWithAssignedKey extends AssignedKey {
String attribute
}
| package standalone
/**
* Test parent domain object with assigned key
*/
class ChildWithAssignedKey extends ParentWithAssignedKey {
String attribute
}
| Fix issue where a child with an assigned key defined in parent wasn't flagged as isAssigned | Fix issue where a child with an assigned key defined in parent wasn't flagged as isAssigned
| Groovy | apache-2.0 | sbglasius/build-test-data,tednaleid/build-test-data,burtbeckwith/build-test-data,burtbeckwith/build-test-data,longwa/build-test-data,sbglasius/build-test-data |
af2385a8e492ae4348785a026c954105b54720c1 | examples/Basic.groovy | examples/Basic.groovy | #!/usr/bin/env groovy
@Grab(group = 'com.urswolfer.gerrit.client.rest', module = 'gerrit-rest-java-client', version = '0.8.8')
import com.google.gerrit.extensions.api.GerritApi
import com.google.gerrit.extensions.common.ChangeInfo
import com.urswolfer.gerrit.client.rest.GerritAuthData
import com.urswolfer.gerrit.clie... | #!/usr/bin/env groovy
@Grab('com.urswolfer.gerrit.client.rest:gerrit-rest-java-client:0.8.8')
import com.google.gerrit.extensions.api.GerritApi
import com.google.gerrit.extensions.common.ChangeInfo
import com.urswolfer.gerrit.client.rest.GerritAuthData
import com.urswolfer.gerrit.client.rest.GerritRestApiFactory
/**... | Make the example a bit more Groovy-ish | Make the example a bit more Groovy-ish
- Use the short-hand notation for the Grape dependency manager.
- Remove trailing semicolons.
- Use single-quoted strings where no variable interpolation is needed.
- Use variable interpolation to print the changeId and subject.
| Groovy | apache-2.0 | uwolfer/gerrit-rest-java-client,sstafford/gerrit-rest-java-client,uwolfer/gerrit-rest-java-client,sstafford/gerrit-rest-java-client |
6d23a08c96ba0728fa50e619429b4d620d9940dd | 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'
try {
stage 'Run Unit/Integration Tests'
sh 'make test'
} catch(all) {
... | Add error handling for test failures | Add error handling for test failures
| Groovy | mit | cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker |
9dacbab6a68e801ae37085420dcfd4e9607b1afa | src/integration-test/groovy/com/github/dispader/manifesto/RepositorySpecification.groovy | src/integration-test/groovy/com/github/dispader/manifesto/RepositorySpecification.groovy | package com.github.dispader.manifesto
import org.ajoberstar.grgit.Grgit
import org.eclipse.jgit.errors.RepositoryNotFoundException
import spock.lang.Ignore
import spock.lang.Specification
public class RepositorySpecification extends Specification {
def repository = new Repository('.')
@Ignore
def 'can ... | package com.github.dispader.manifesto
import org.ajoberstar.grgit.Grgit
import org.eclipse.jgit.errors.RepositoryNotFoundException
import spock.lang.Ignore
import spock.lang.Specification
public class RepositorySpecification extends Specification {
def repository = new Repository('.')
@Ignore
def 'can ... | Fix regex for testing valid returns from describe | Fix regex for testing valid returns from describe
I'm not sure if we want all elements of a describe proper (the
equivalent to 'git describe' or 'git describe --tags') to be valid
for version numbers we'll accept, but this test is concerned with
getting a valid output from describe.
The new regex more accurately test... | Groovy | apache-2.0 | Dispader/manifesto |
c1f109c9de726e8b46e6dc07da20f9b85c379217 | init.groovy.d/pipeline-global-configuration.groovy | init.groovy.d/pipeline-global-configuration.groovy | #!/usr/bin/env groovy
/*
* This file is responsible for setting Global Pipeline configurations to the
* sensible defaults which are necessary
*/
import jenkins.model.GlobalConfiguration
import org.jenkinsci.plugins.pipeline.modeldefinition.config.GlobalConfig
/* Set the default Docker label for Declarative Pipel... | #!/usr/bin/env groovy
/*
* This file is responsible for setting Global Pipeline configurations to the
* sensible defaults which are necessary
*/
import jenkins.model.*
import jenkins.plugins.git.GitSCMSource
import org.jenkinsci.plugins.workflow.libs.*
import jenkins.model.GlobalConfiguration
import org.jenkinsci... | Add the Code Valet Shared Libraries by default to instances. | Add the Code Valet Shared Libraries by default to instances.
Fixes #11
| Groovy | agpl-3.0 | CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet |
5778e537783206db3b480bb4a5c996c1568cb7cf | jenkins/pipeline/_utils.groovy | jenkins/pipeline/_utils.groovy | def sendSlackNotification(String branch_name, String color) {
withCredentials([string(credentialsId: 'slack-bot-token', variable: 'slack_token')]) {
message = "Gold Digger $branch_name is deployed."
slackSend channel: 'python-alerts', message: message, color: "$color", token: slack_token, botUser: t... | def sendSlackNotification(String branch_name, String color) {
withCredentials([string(credentialsId: 'slack-bot-token', variable: 'slack_token')]) {
message = "Gold Digger $branch_name is deployed. Please release changes at https://py.b.cz/helpers/releaser/gold-digger/"
slackSend channel: 'python-al... | Add releaser URL to slack notification | Add releaser URL to slack notification
| Groovy | apache-2.0 | business-factory/gold-digger |
4de15cc396b82062d8fef3ef8a595ec7881abfb7 | focused/closures.groovy | focused/closures.groovy | // Important: in Groovy, a closure is an object!
def myClosure = { println "Hello" }
myClosure()
// Closures can accept parameters, just like functions
def sayGreeting = { name -> println "Hello, ${name} !!!!" }
sayGreeting "John Doe"
// Timer function
def startTimer() {
def initialDate = new Date()
// return a... | // Important: in Groovy, a closure is an object!
def myClosure = { println "Hello" }
myClosure()
// Closures can accept parameters, just like functions
def sayGreeting = { name -> println "Hello, ${name} !!!!" }
sayGreeting "John Doe"
// Timer function
def startTimer() {
def initialDate = new Date()
// return a... | Add comment about startTimer returning a closure | Add comment about startTimer returning a closure
| Groovy | mit | nbkhope/groovy-notes |
cfd9fa419abd572301a63ea92b0ab1034e053bad | subprojects/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.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... | Add comment about thread-safety of test fixture | Add comment about thread-safety of test fixture
| Groovy | apache-2.0 | gstevey/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,gsteve... |
41a87295d3de51ac5a784e9f9bd9c06e1ee69112 | subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/fixture/ToolingApiLoggingSpecification.groovy | subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/fixture/ToolingApiLoggingSpecification.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... | Disable broken tooling api logging tests. | Disable broken tooling api logging tests.
| Groovy | apache-2.0 | robinverduijn/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,robinverd... |
9c31a103439723ee8787f4704204eed640d548c1 | samples/orders/grails-app/test/OrderService.groovy | samples/orders/grails-app/test/OrderService.groovy | package test
class OrderService {
@Property transactional = true
def findAllOrders() {
return OrderEntry.findAll()
}
def addOrder(orderEntry) {
orderEntry.save()
}
} | package test
class OrderService {
@Property transactional = true
def findAllOrders() {
println(getClass().getClassLoader().loadClass("test.OrderEntry"))
return OrderEntry.findAll()
}
def addOrder(orderEntry) {
orderEntry.save()
}
} | Load test.OrderEntry from class classloader. | Load test.OrderEntry from class classloader.
git-svn-id: 29aad96320b2a07b98332cd568fc1316025c072f@197 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
| Groovy | apache-2.0 | erdi/grails-core,clockworkorange/grails-core,erdi/grails-core,erdi/grails-core,clockworkorange/grails-core,clockworkorange/grails-core,clockworkorange/grails-core,clockworkorange/grails-core |
0ae156b291c6ee80e071bf74e17889023346ea93 | src/test/groovy/nebula/core/ProjectTypeSpec.groovy | src/test/groovy/nebula/core/ProjectTypeSpec.groovy | package nebula.core
import nebula.test.ProjectSpec
import org.gradle.testfixtures.ProjectBuilder
class ProjectTypeSpec extends ProjectSpec {
def 'single project is properly identified as a root and leaf'() {
when:
def singleProject = new ProjectType(project)
then:
singleProject.is... | package nebula.core
import nebula.test.ProjectSpec
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
class ProjectTypeSpec extends ProjectSpec {
def 'single project is properly identified as a root and leaf'() {
when:
def singleProject = new ProjectType(project)
... | Improve ProjectType tests to also test a deeper nesting structure | Improve ProjectType tests to also test a deeper nesting structure
| Groovy | apache-2.0 | nebula-plugins/nebula-core |
f4ca7e54e16df11d61e78d284e8ae1ab841b3e8e | bitcoin-rpc/src/integ/groovy/com/msgilligan/bitcoin/rpc/BitcoinStepwiseSpec.groovy | bitcoin-rpc/src/integ/groovy/com/msgilligan/bitcoin/rpc/BitcoinStepwiseSpec.groovy | package com.msgilligan.bitcoin.rpc
import com.msgilligan.bitcoin.BaseRegTestSpec
import spock.lang.Shared
import java.security.SecureRandom
class BitcoinStepwiseSpec extends BaseRegTestSpec {
final static BigDecimal sendAmount = 10.0
final static BigDecimal extraAmount = 0.10
@Shared
def accountname... | package com.msgilligan.bitcoin.rpc
import com.msgilligan.bitcoin.BaseRegTestSpec
import org.bitcoinj.core.Address
import spock.lang.Shared
class BitcoinStepwiseSpec extends BaseRegTestSpec {
final static BigDecimal sendAmount = 10.0
final static BigDecimal extraAmount = 0.10
@Shared
Address wealthyA... | Use getBitcoinBalance() and sendBitcoin() rather… | Use getBitcoinBalance() and sendBitcoin() rather…
… than direct RPC calls that use Bitcoin Core account system | Groovy | apache-2.0 | OmniLayer/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ |
0dd0d263f3f20e56d7cf3638e48e46bd5a0a019c | utils/src/main/groovy/uk/ac/ox/ndm/grails/utils/marshalling/MarshallerRegistrar.groovy | utils/src/main/groovy/uk/ac/ox/ndm/grails/utils/marshalling/MarshallerRegistrar.groovy | package uk.ac.ox.ndm.grails.utils.marshalling
import grails.converters.JSON
import grails.converters.XML
import javax.annotation.PostConstruct
import javax.xml.datatype.DatatypeFactory
import java.time.LocalDate
import java.time.OffsetDateTime
import java.time.format.DateTimeFormatter
/**
* @since 22/09/2015
*/
cl... | package uk.ac.ox.ndm.grails.utils.marshalling
import grails.converters.JSON
import grails.converters.XML
import javax.annotation.PostConstruct
import javax.xml.datatype.DatatypeFactory
import java.time.LocalDate
import java.time.OffsetDateTime
import java.time.ZoneOffset
import java.time.format.DateTimeFormatter
/**... | Fix marshalled offsetdatetime to UTC | Fix marshalled offsetdatetime to UTC
| Groovy | apache-2.0 | olliefreeman/grails-utils,olliefreeman/grails-utils |
2f4163f7e1ce4dd7b8ea97e0e5e9e38aa5fa04af | src/test/groovy/com/tidyjava/bp/GitPostReaderSpec.groovy | src/test/groovy/com/tidyjava/bp/GitPostReaderSpec.groovy | package com.tidyjava.bp
import spock.lang.Specification
import java.nio.file.Files
import java.nio.file.Paths
class GitPostReaderSpec extends Specification {
static final CONTENTS_DIRECTORY = ".contents"
static final CLONE_BLOCKER = Paths.get(CONTENTS_DIRECTORY + "/would-block-clone.txt");
def gitPostRe... | package com.tidyjava.bp
import spock.lang.Specification
import java.nio.file.Files
import java.nio.file.Paths
class GitPostReaderSpec extends Specification {
static final CONTENTS_DIRECTORY = ".contents"
static final CLONE_BLOCKER = CONTENTS_DIRECTORY + "/would-block-clone.txt";
def gitPostReader = new ... | Fix cloning test when contents directory doesn't exist | Fix cloning test when contents directory doesn't exist
| Groovy | unlicense | tidyjava/blogging-platform |
257a3e0c922b0cbffba24db74f7a13292e1819d9 | paperwork-plugin/src/main/groovy/hu/supercluster/paperwork/plugin/PaperworkPluginExtension.groovy | paperwork-plugin/src/main/groovy/hu/supercluster/paperwork/plugin/PaperworkPluginExtension.groovy | package hu.supercluster.paperwork.plugin
class PaperworkPluginExtension {
private final Object project
def String filename = "src/main/assets/paperwork.json"
def Map set = [:]
PaperworkPluginExtension(project) {
this.project = project
}
public String gitSha() {
'git rev-parse ... | package hu.supercluster.paperwork.plugin
class PaperworkPluginExtension {
private final Object project
def String filename = "src/main/assets/paperwork.json"
def Map set = [:]
PaperworkPluginExtension(project) {
this.project = project
}
public String gitSha() {
'git rev-parse ... | Add buildTime() helper to generate unix timestamp | Add buildTime() helper to generate unix timestamp
| Groovy | apache-2.0 | zsoltk/paperwork,zsoltk/paperwork |
2b7d735e201f3f8235c9a7014ff819861dab3cc4 | whelktool/scripts/cleanups/2020/03/lxl-3047.groovy | whelktool/scripts/cleanups/2020/03/lxl-3047.groovy | PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
String where = "collection = 'bib' and data#>>'{@graph,2}' is not null"
selectBySqlWhere(where) { data ->
def (record, instance, work) = data.graph
if (work.note != null) {
if (work.hasNote == null) {
work["hasNote"] ... | PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
String where = "collection = 'bib' and data#>>'{@graph,2}' is not null"
selectBySqlWhere(where) { data ->
def (record, instance, work) = data.graph
if (work.note != null) {
if (work.hasNote == null) {
work["hasNote"] ... | Make cleanup script resistant to the fact the 'note' could be a list. | Make cleanup script resistant to the fact the 'note' could be a list.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
c3776734ab21fb4a4fba4f4e9304d1411f013f76 | src/main/groovy/com/github/dispader/manifesto/Version.groovy | src/main/groovy/com/github/dispader/manifesto/Version.groovy | package com.github.dispader.manifesto
import org.gradle.api.ProjectConfigurationException
class Version {
private static getGit() {
try {
org.ajoberstar.grgit.Grgit.open()
} catch(Exception ex) {
throw new IllegalStateException('This project is not controlled by git.')
... | package com.github.dispader.manifesto
import org.gradle.api.ProjectConfigurationException
class Version {
private static getGit() {
try {
org.ajoberstar.grgit.Grgit.open()
} catch(Exception ex) {
throw new IllegalStateException('This project is not controlled by git.')
... | Update error message for unversioned projects | Update error message for unversioned projects
| Groovy | apache-2.0 | Dispader/manifesto |
068b9f67070728fd29578eaaf2e7e39b478fb27e | common.groovy | common.groovy | repos = [
[name: 'builder', slackChannel: 'builder'],
[name: 'dockerbuilder', slackChannel: 'builder'],
[name: 'fluentd', slackChannel: 'logger'],
[name: 'logger', slackChannel: 'logger'],
[name: 'minio', slackChannel: 'object-store'],
[name: 'postgres', slackChannel: 'postgres'],
[name: 'registry', slack... | repos = [
[name: 'builder', slackChannel: 'builder'],
[name: 'dockerbuilder', slackChannel: 'builder'],
[name: 'fluentd', slackChannel: 'logger'],
[name: 'logger', slackChannel: 'logger'],
[name: 'minio', slackChannel: 'object-store'],
[name: 'postgres', slackChannel: 'postgres'],
[name: 'registry', slack... | Add stdout-metrics to jobs list | chore: Add stdout-metrics to jobs list
| Groovy | mit | deis/jenkins-jobs |
bf5f1206e7a8c27e29db32309599774e16b88081 | groovy/grails-test/grails-app/services/langpop/CountService.groovy | groovy/grails-test/grails-app/services/langpop/CountService.groovy | package langpop
import grails.transaction.NotTransactional
import grails.transaction.Transactional
@Transactional
class CountService {
// My arbitrary list of non-languages
def nonLangs = [
'AppleScript',
'ASP',
'Arduino',
'Batchfile',
'CMake',
'CSS',
'C... | package langpop
class CountService {
static transactional = false
// My arbitrary list of non-languages
def nonLangs = [
'AppleScript',
'ASP',
'Arduino',
'Batchfile',
'CMake',
'CSS',
'Cuda',
'HTML',
'HTTP',
'JSON',
'Ma... | Disable transactions until we explicitly need them | Disable transactions until we explicitly need them
| Groovy | mit | bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile |
6421f7f256d8c6f060dfc14c2964fe9b088d1ad0 | modules/core/src/model/builder/core/ImportRevisionFromMenuFactory.groovy | modules/core/src/model/builder/core/ImportRevisionFromMenuFactory.groovy | package model.builder.core
import model.builder.web.api.APIManager
import org.cytoscape.model.CyNetwork
import org.cytoscape.task.NetworkTaskFactory
import org.cytoscape.work.TaskIterator
import org.openbel.kamnav.core.AddBelColumnsToCurrentFactory
class ImportRevisionFromMenuFactory implements NetworkTaskFactory {
... | package model.builder.core
import groovy.transform.TupleConstructor
import model.builder.web.api.APIManager
import model.builder.web.api.AuthorizedAPI
import org.cytoscape.model.CyNetwork
import org.cytoscape.task.NetworkTaskFactory
import org.cytoscape.work.TaskIterator
import org.openbel.kamnav.core.AddBelColumnsToC... | Revert "replaced TupleConstructor with java style constructor" | Revert "replaced TupleConstructor with java style constructor"
This reverts commit eb271099c4cba7ac3ec6d632edf52f50b0687b61.
| Groovy | apache-2.0 | Selventa/model-builder,Selventa/model-builder |
271a9cfcbb866ae3f313f2cfc32e472a48d0a4d2 | src/main/groovy/de/triplet/gradle/play/PlayPublisherPluginExtension.groovy | src/main/groovy/de/triplet/gradle/play/PlayPublisherPluginExtension.groovy | package de.triplet.gradle.play
class PlayPublisherPluginExtension {
private String serviceAccountEmail
private String track = 'alpha'
private File pk12File
private boolean uploadImages = false
void setUploadImages(boolean uploadImages) {
this.uploadImages = uploadImages
}
bool... | package de.triplet.gradle.play
class PlayPublisherPluginExtension {
String serviceAccountEmail
File pk12File
boolean uploadImages = false
private String track = 'alpha'
void setTrack(String track) {
if (!(track in ['alpha', 'beta', 'production'])) {
throw new IllegalArgumen... | Use Groovy Beans in our plugin extension | Use Groovy Beans in our plugin extension
| Groovy | mit | Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher |
2f05f94b52637befc19878abbc19bd0a48b62aa7 | test/functional/org/bbop/apollo/RequestHandlingServiceFunctionalSpec.groovy | test/functional/org/bbop/apollo/RequestHandlingServiceFunctionalSpec.groovy | package org.bbop.apollo
import geb.spock.GebSpec
import grails.plugins.rest.client.RestBuilder
import grails.plugins.rest.client.RestResponse
import net.sf.json.JSONObject
//class RequestHandlingServiceFunctionalSpec extends IntegrationSpec {
class RequestHandlingServiceFunctionalSpec extends GebSpec {
// @Share... | package org.bbop.apollo
import geb.spock.GebSpec
import grails.plugins.rest.client.RestBuilder
import grails.plugins.rest.client.RestResponse
//class RequestHandlingServiceFunctionalSpec extends IntegrationSpec {
class RequestHandlingServiceFunctionalSpec extends GebSpec {
// @Shared
// def grailsApplication
... | Remove net.sf json for now in RequestHandleingServiceFunctionalSpec | Remove net.sf json for now in RequestHandleingServiceFunctionalSpec
| Groovy | bsd-3-clause | erasche/Apollo,erasche/Apollo,erasche/Apollo,erasche/Apollo,erasche/Apollo |
813752f53a52bee9b7d59521541ee6ae3b3cc0b4 | test/initGroovySh.groovy | test/initGroovySh.groovy | import gate.*
import gate.plugin.evaluation.tests.*
import static gate.plugin.evaluation.tests.TestUtils.*
import static gate.Utils.*;
import gate.plugin.evaluation.api.*
import gate.plugin.evaluation.resources.*
Gate.init()
println("Hello World")
| import gate.*
import gate.plugin.evaluation.tests.*
import static gate.plugin.evaluation.tests.TestUtils.*
import static gate.Utils.*;
import gate.plugin.evaluation.api.*
import gate.plugin.evaluation.resources.*
Gate.init()
def docFromFile(String file) {
def fm = Factory.newFeatureMap()
fm.put("sourceUrl",new Fi... | Add a utility method for getting a document. | Add a utility method for getting a document.
| Groovy | lgpl-2.1 | johann-petrak/gateplugin-Evaluation,johann-petrak/gateplugin-Evaluation,johann-petrak/gateplugin-Evaluation |
668b6b2560d2ca7110b22087316f820d31524ff9 | whelktool/scripts/cleanups/2019/02/move-holding-Jox-to-Jo/move-jox-holdings.groovy | whelktool/scripts/cleanups/2019/02/move-holding-Jox-to-Jo/move-jox-holdings.groovy | /*
* This moves all holdings for Jox to Jo.
*
* See LXL-2248 for more info.
*
*/
String CURRENT_SIGEL = 'https://libris.kb.se/library/Jox'
String NEW_SIGEL = 'https://libris.kb.se/library/Jo'
PrintWriter scheduledForMove = getReportWriter("scheduled-for-move")
PrintWriter notMoved = getReportWriter("refused-to-mo... | /*
* This moves all holdings for Jox to Jo.
*
* See LXL-2248 for more info.
*
*/
String CURRENT_SIGEL = 'https://libris.kb.se/library/Jox'
String NEW_SIGEL = 'https://libris.kb.se/library/Jo'
PrintWriter scheduledForMove = getReportWriter("scheduled-for-move")
PrintWriter notMoved = getReportWriter("refused-to-mo... | Make Jox->Jo holding move loud | Make Jox->Jo holding move loud
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
f2f98238fafb7bad6e3cba6e8306e401cfcc4c40 | src/main/groovy/nebula/plugin/responsible/NebulaResponsiblePlugin.groovy | src/main/groovy/nebula/plugin/responsible/NebulaResponsiblePlugin.groovy | package nebula.plugin.responsible
import nebula.plugin.publishing.NebulaJavadocJarPlugin
import nebula.plugin.publishing.NebulaSourceJarPlugin
import nebula.plugin.publishing.NebulaTestJarPlugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.logging.Logger
import org.gradle.api.loggin... | package nebula.plugin.responsible
import nebula.plugin.publishing.NebulaJavadocJarPlugin
import nebula.plugin.publishing.NebulaSourceJarPlugin
import nebula.plugin.publishing.NebulaTestJarPlugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.logging.Logger
import org.gradle.api.loggin... | Expand exceptions to their full stack | Expand exceptions to their full stack
| Groovy | apache-2.0 | rspieldenner/nebula-project-plugin,cylon/nebula-project-plugin |
7b090cac1314a36510ce77ec4530b12843611b82 | src/groovy/grails/plugin/melody/GrailsMelodyUtil.groovy | src/groovy/grails/plugin/melody/GrailsMelodyUtil.groovy | package grails.plugin.melody
import grails.util.Environment
import org.codehaus.groovy.grails.commons.GrailsApplication
class GrailsMelodyUtil {
static ConfigObject getGrailsMelodyConfig(GrailsApplication application) {
def config = application.config
GroovyClassLoader classLoader = new GroovyClassLoader(appli... | package grails.plugin.melody
import grails.util.Environment
import org.codehaus.groovy.grails.commons.GrailsApplication
class GrailsMelodyUtil {
static ConfigObject getGrailsMelodyConfig(GrailsApplication application) {
def config = application.config
GroovyClassLoader classLoader = new GroovyClassLoader(appli... | Fix uppercase environment names to lowercase. As was it done in grails config. | Fix uppercase environment names to lowercase. As was it done in grails config.
| Groovy | apache-2.0 | javamelody/grails-melody-plugin,javamelody/grails-melody-plugin |
80c8714890c4769b63b107bdb04eeeaa48f10b4a | FixturesGrailsPlugin.groovy | FixturesGrailsPlugin.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 ... | Set a snapshot version targeting 1.0.8. | Set a snapshot version targeting 1.0.8. | Groovy | apache-2.0 | sbglasius/fixtures,gpc/fixtures |
debc20e31fb1b99a7bfeeede4cfd21a3eccee8f6 | src/main/groovy/net/rdrei/android/buildtimetracker/reporters/TerminalInfo.groovy | src/main/groovy/net/rdrei/android/buildtimetracker/reporters/TerminalInfo.groovy | package net.rdrei.android.buildtimetracker.reporters
import groovy.transform.Memoized
/**
* Singleton info class for determining the width of the terminal we run in.
*/
class TerminalInfo {
@Memoized
public int getWidth(int fallback) {
def cols = System.getenv("COLUMNS")
if (cols != null) {
... | package net.rdrei.android.buildtimetracker.reporters
import groovy.transform.Memoized
/**
* Singleton info class for determining the width of the terminal we run in.
*/
class TerminalInfo {
@Memoized
public int getWidth(int fallback) {
// Start by trying to get the `COLUMNS` env variable, which is s... | Add working columns detection for Linux and Mac | Add working columns detection for Linux and Mac
| Groovy | apache-2.0 | gpie3k/build-time-tracker-plugin,passy/build-time-tracker-plugin |
71c0e240c93e6806f98e19c1d7417fbc49ec5a73 | subprojects/publish/src/integTest/groovy/org/gradle/api/publish/PublishIssuesIntegrationTest.groovy | subprojects/publish/src/integTest/groovy/org/gradle/api/publish/PublishIssuesIntegrationTest.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... | Use `@NotYetImplemented` instead of `@Ignore` | Use `@NotYetImplemented` instead of `@Ignore`
| Groovy | apache-2.0 | blindpirate/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,lsmai... |
449662297a7f123b55af5ca71572053969c40868 | grails-app/conf/BootStrap.groovy | grails-app/conf/BootStrap.groovy | import org.powertac.common.Broker
import org.powertac.common.Competition
import org.powertac.common.Product
import org.powertac.common.Timeslot
import org.powertac.common.enumerations.ProductType
import org.powertac.common.Role
import org.powertac.common.BrokerRole
class BootStrap {
def springSecurityService
def... | import org.powertac.common.Broker
import org.powertac.common.Competition
import org.powertac.common.Product
import org.powertac.common.Timeslot
import org.powertac.common.enumerations.ProductType
import org.powertac.common.Role
import org.powertac.common.BrokerRole
class BootStrap {
def springSecurityService
def... | Create default competition on startup with broker | Create default competition on startup with broker
| Groovy | apache-2.0 | powertac/powertac-server,powertac/powertac-server,powertac/powertac-server,powertac/powertac-server |
2f01e85793959b56b7cc46e32853b0a953cbb521 | markup/src/main/groovy/grails/plugin/markup/view/MarkupViewConfiguration.groovy | markup/src/main/groovy/grails/plugin/markup/view/MarkupViewConfiguration.groovy | package grails.plugin.markup.view
import grails.util.Environment
import grails.views.GenericViewConfiguration
import grails.views.ViewConfiguration
import groovy.text.markup.TemplateConfiguration
import groovy.transform.CompileStatic
import org.springframework.beans.BeanUtils
import java.beans.PropertyDescriptor
/**... | package grails.plugin.markup.view
import grails.util.Environment
import grails.views.GenericViewConfiguration
import grails.views.ViewConfiguration
import groovy.text.markup.TemplateConfiguration
import groovy.transform.CompileStatic
import org.springframework.beans.BeanUtils
import java.beans.PropertyDescriptor
/**... | Integrate `prettyPrint` config with Markup views | Integrate `prettyPrint` config with Markup views
| Groovy | apache-2.0 | grails/grails-views |
c22367dfbc340ea8a11fa98eae8f2a7027e1cf90 | SpectrumGrailsPlugin.groovy | SpectrumGrailsPlugin.groovy | class SpectrumGrailsPlugin {
// the plugin version
def version = "1.5.0"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.4 > *"
// resources that are excluded from plugin packaging
def pluginExcludes = []
// TODO Fill in these fields
def title = "S... | class SpectrumGrailsPlugin {
// the plugin version
def version = "1.5.0"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.4 > *"
// resources that are excluded from plugin packaging
def pluginExcludes = [ ]
// TODO Fill in these fields
def title = "... | Add source control and issue management URLs to plugin descriptor. | Add source control and issue management URLs to plugin descriptor.
| Groovy | mit | caseyscarborough/grails-spectrum |
c6c279ee0b8ea414d3af4f9bad9ec21aafcc90b8 | grails-app/controllers/stackoverflow/user/UserController.groovy | grails-app/controllers/stackoverflow/user/UserController.groovy | package stackoverflow.user
import grails.plugin.springsecurity.annotation.Secured
@Secured(['ROLE_ANONYMOUS'])
class UserController extends grails.plugin.springsecurity.ui.UserController {
}
| package stackoverflow.user
import grails.plugin.springsecurity.annotation.Secured
import grails.rest.RestfulController
import grails.transaction.Transactional
import grails.web.http.HttpHeaders
import stackoverflow.Feature
import stackoverflow.User
import static org.springframework.http.HttpStatus.CREATED
@Secured([... | Improve User Controller for creating users | Improve User Controller for creating users
| Groovy | mit | StackOverflowZZ/StackOverflowAPI |
d822fc51e562fd39d24b15cc42fef822c3a3989a | jenkins/jenkins-build-images.groovy | jenkins/jenkins-build-images.groovy | def run_test(dockerImg, python_name, version) {
def id = dockerImg.id
echo "My id is $id"
try {
dockerImg.inside {
sh "$python_name /tmp/verify_image.py"
}
dockerImg.tag(version, true)
dockerImg.tag('latest', true)
} catch (Exception e) {
error('BUILD FAILED FOR IMAGENAME '+id)
} fin... | def run_test(dockerImg, python_name, version) {
def id = dockerImg.id
echo "My id is $id"
try {
dockerImg.inside {
sh "$python_name /tmp/verify_image.py"
}
dockerImg.tag(version, true)
dockerImg.tag('latest', true)
} catch (Exception e) {
error('BUILD FAILED FOR IMAGENAME '+id)
} fin... | Comment on more brittle python3 image build | Comment on more brittle python3 image build
| Groovy | apache-2.0 | netjunki/pyresttest,svanoort/pyresttest,svanoort/pyresttest,satish-suradkar/pyresttest,satish-suradkar/pyresttest,netjunki/pyresttest |
41404108453857e65a47943b6351003b6822dd2a | subprojects/logging/src/test/groovy/org/gradle/internal/logging/events/OperationIdentifierTest.groovy | subprojects/logging/src/test/groovy/org/gradle/internal/logging/events/OperationIdentifierTest.groovy | /**
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /*
* Copyright 2017 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 multiline comment to make checkstyle pass | Fix multiline comment to make checkstyle pass
| Groovy | apache-2.0 | blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,gradle/gradle,... |
591bf5f98944c33638a75eb50dad65a83728074f | pipeline.groovy | pipeline.groovy | properties([disableConcurrentBuilds()])
node {
try {
stage('Checkout') {
checkout scm
}
if (!utils.skip()) {
docker.image("node:8").inside {
stage('Setup') {
git.authenticate()
npm.authenticate()
... | properties([disableConcurrentBuilds()])
node {
try {
stage('Checkout') {
checkout scm
}
if (!utils.skip()) {
docker.image("node:8").inside {
stage('Setup') {
git.authenticate()
npm.authenticate()
... | Disable automatic deployment of public package | Disable automatic deployment of public package
| Groovy | mit | Fundflow/apollo-redux-form,Fundflow/apollo-redux-form,Fundflow/apollo-redux-form |
1a10a57951afe64adde4f7bc2bff8ce5240a3df5 | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
inherits "global" // inherit Grails' default dependenc... | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
inherits "global" // inherit Grails' default dependenc... | Upgrade to release plugin 2.0.0 | Upgrade to release plugin 2.0.0
| Groovy | apache-2.0 | julyantonicheva/grails-ckeditor,stefanogualdi/grails-ckeditor,stefanogualdi/grails-ckeditor,julyantonicheva/grails-ckeditor,julyantonicheva/grails-ckeditor,vinco/grails-ckeditor,stefanogualdi/grails-ckeditor,julyantonicheva/grails-ckeditor,stefanogualdi/grails-ckeditor,stefanogualdi/grails-ckeditor |
7175ebcaadda437b2c3064a0c041c0421e671871 | src/main/groovy/com/getkeepsafe/dexcount/DexMethodCountExtension.groovy | src/main/groovy/com/getkeepsafe/dexcount/DexMethodCountExtension.groovy | package com.getkeepsafe.dexcount
class DexMethodCountExtension {
private boolean includeClasses
private boolean printAsTree
private boolean verbose
public boolean getIncludeClasses() {
return includeClasses
}
public void setIncludeClasses(boolean includeClasses) {
this.include... | package com.getkeepsafe.dexcount
class DexMethodCountExtension {
private boolean includeClasses
private boolean orderBy
private boolean countFields
private boolean printAsTree
private boolean verbose
public boolean getIncludeClasses() {
return includeClasses
}
public void setI... | Add extra fields to the plugin extension | Add extra fields to the plugin extension
| Groovy | apache-2.0 | MaTriXy/dexcount-gradle-plugin,benjamin-bader/dexcount-gradle-plugin,benjamin-bader/dexcount-gradle-plugin,KeepSafe/dexcount-gradle-plugin,MaTriXy/dexcount-gradle-plugin,MaTriXy/dexcount-gradle-plugin,MaTriXy/dexcount-gradle-plugin,KeepSafe/dexcount-gradle-plugin,benjamin-bader/dexcount-gradle-plugin,KeepSafe/dexcount-... |
22806b38467301bc5d24e06543d1a310b5c8892a | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/GradleNativeIntegrationTest.groovy | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/GradleNativeIntegrationTest.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 integration test that tests the creation of the native-services directory | Fix integration test that tests the creation of the native-services directory | Groovy | apache-2.0 | robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle... |
70b68a0708c9640d92663bb5ad1651408950c08d | src/main/groovy/com/mindera/gradle/slack/SlackPluginExtension.groovy | src/main/groovy/com/mindera/gradle/slack/SlackPluginExtension.groovy | package com.mindera.gradle.slack
/**
* Created by joaoprudencio on 05/05/15.
*/
class SlackPluginExtension {
String url
List<Object> dependsOnTasks
String title
boolean enabled
void dependsOnTasks(Object... paths) {
this.dependsOnTasks = Arrays.asList(paths)
}
} | package com.mindera.gradle.slack
/**
* Created by joaoprudencio on 05/05/15.
*/
class SlackPluginExtension {
String url
List<Object> dependsOnTasks
String title
boolean enabled = true
void dependsOnTasks(Object... paths) {
this.dependsOnTasks = Arrays.asList(paths)
}
} | Set enabled property default value to true | Set enabled property default value to true
| Groovy | mit | Mindera/gradle-slack-plugin |
a5b3beb44eb666501ab2530910256ce4e1ba4ae6 | it/includeFileDependencies/verify.groovy | it/includeFileDependencies/verify.groovy | { project ->
def wanted = [
'system.properties',
'compile.properties'
]
def jar = file("${buildDir}/distributions/${project.name}-${currentVersion}.jar")
assert jar.exists()
def jarFile = zipTree(jar)
wanted.each { item ->
assert !jarFile.matching {
... | { project ->
def wanted = [
'system.properties',
'compile.properties',
'runtime.properties'
]
def jar = file("${buildDir}/distributions/${project.name}-${currentVersion}.jar")
assert jar.exists()
def jarFile = zipTree(jar)
wanted.each { item ->
ass... | Add an extra asserition in integration test | Add an extra asserition in integration test
| Groovy | apache-2.0 | johnrengelman/shadow,rdsr/shadow,johnrengelman/shadow,MaTriXy/shadow,rdsr/shadow,johnrengelman/shadow,MaTriXy/shadow |
1f618941387cb0086bc0aebf681ad3e7399241ba | subprojects/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSoakTest.groovy | subprojects/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSoakTest.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 soak test following API changes | Fix soak test following API changes
Issue #14080
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad... |
a0bea8d1007cfa4f6e1ea50c0ecac66b0dba8bb2 | assemblies/geronimo-boilerplate-minimal/src/main/underlay/etc/rc.d/start-server,default.groovy | assemblies/geronimo-boilerplate-minimal/src/main/underlay/etc/rc.d/start-server,default.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 commented javaFlags to enable remote debug. | Add commented javaFlags to enable remote debug.
git-svn-id: 0d16bf2c240b8111500ec482b35765e5042f5526@591532 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | apache/geronimo,apache/geronimo,apache/geronimo,apache/geronimo |
f5a4b923cedd2fd6bd55d0df824a31e3a0274815 | issue-views-182/src/integration-test/groovy/views182/CustomErrorSpec.groovy | issue-views-182/src/integration-test/groovy/views182/CustomErrorSpec.groovy | package views182
import grails.gorm.transactions.Rollback
import grails.testing.mixin.integration.Integration
import io.micronaut.http.HttpRequest
import io.micronaut.http.HttpResponse
import io.micronaut.http.HttpStatus
@Integration
@Rollback
class CustomErrorSpec extends HttpClientCommonSpec {
void 'it is poss... | package views182
import grails.gorm.transactions.Rollback
import grails.testing.mixin.integration.Integration
import io.micronaut.core.type.Argument
import io.micronaut.http.HttpRequest
import io.micronaut.http.HttpResponse
import io.micronaut.http.HttpStatus
import io.micronaut.http.client.exceptions.HttpClientRespon... | Correct test to capture HttpClientResponseException | Correct test to capture HttpClientResponseException
| Groovy | apache-2.0 | grails/grails3-functional-tests,grails/grails3-functional-tests |
922562c6d27ba193d3123ffa7340a6a40ea803fd | broker/src/main/groovy/com/swisscom/cloud/sb/broker/util/test/DummyExtension/DummyExtensionsServiceProvider.groovy | broker/src/main/groovy/com/swisscom/cloud/sb/broker/util/test/DummyExtension/DummyExtensionsServiceProvider.groovy | package com.swisscom.cloud.sb.broker.util.test.DummyExtension
import com.swisscom.cloud.sb.broker.binding.BindRequest
import com.swisscom.cloud.sb.broker.binding.BindResponse
import com.swisscom.cloud.sb.broker.binding.UnbindRequest
import com.swisscom.cloud.sb.broker.model.DeprovisionRequest
import com.swisscom.cloud... | package com.swisscom.cloud.sb.broker.util.test.DummyExtension
import com.swisscom.cloud.sb.broker.binding.BindRequest
import com.swisscom.cloud.sb.broker.binding.BindResponse
import com.swisscom.cloud.sb.broker.binding.UnbindRequest
import com.swisscom.cloud.sb.broker.model.DeprovisionRequest
import com.swisscom.cloud... | Add update method to DummyExtensnionsServicePRovider | Add update method to DummyExtensnionsServicePRovider
| Groovy | apache-2.0 | swisscom/open-service-broker,swisscom/open-service-broker |
01a2a7984daaad331fac4648df305b7226b8b5e6 | examples/example-groovy-notification-plugins/MinimalNotificationPlugin.groovy | examples/example-groovy-notification-plugins/MinimalNotificationPlugin.groovy | import com.dtolabs.rundeck.plugins.notification.NotificationPlugin;
/**
* This example is a minimal Notification plugin for Rundeck
*/
rundeckPlugin(NotificationPlugin){
onstart {
println("success: data ${execution}")
true
}
onfailure {
println("failure: data ${execution}")
... | import com.dtolabs.rundeck.plugins.notification.NotificationPlugin;
/**
* This example is a minimal Notification plugin for Rundeck
*/
rundeckPlugin(NotificationPlugin){
onstart {
println("job start: data ${execution}")
true
}
onfailure {
println("failure: data ${execution}")
... | Fix typos in println statements for example | Fix typos in println statements for example | Groovy | apache-2.0 | jgpacker/rundeck,paul-krohn/rundeck,damageboy/rundeck,patcadelina/rundeck,variacode95/rundeck,tjordanchat/rundeck,rundeck/rundeck,rundeck/rundeck,rundeck/rundeck,rundeck/rundeck,tjordanchat/rundeck,tjordanchat/rundeck,paul-krohn/rundeck,damageboy/rundeck,patcadelina/rundeck,rophy/rundeck,patcadelina/rundeck,jamieps/run... |
770ee1189af250b63f95dfdc5a6ef619b1f96550 | whelktool/scripts/cleanups/2020/03/lxl-2957.groovy | whelktool/scripts/cleanups/2020/03/lxl-2957.groovy | PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
String where = "collection = 'bib' and deleted = false and ( " +
"data#>'{@graph,2,classification}' @> '[{\"edition\":\"No information provided\"}]' or " +
"data#>'{@graph,2,classification}' @> '[{\"@type\":\"ClassificationLcc\"}]'... | PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
String where = "collection = 'bib' and deleted = false and ( " +
"data#>'{@graph,2,classification}' @> '[{\"edition\":\"No information provided\"}]' or " +
"data#>'{@graph,2,classification}' @> '[{\"@type\":\"ClassificationLcc\"}]'... | Remove only select properties, not entire classification entities. | Remove only select properties, not entire classification entities.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
a41fcbfaa699dfe2af1becbcf5a47084d631ea92 | bitcoinj-rpcclient/src/main/groovy/com/msgilligan/bitcoinj/rpc/BlockCypherSyncing.groovy | bitcoinj-rpcclient/src/main/groovy/com/msgilligan/bitcoinj/rpc/BlockCypherSyncing.groovy | package com.msgilligan.bitcoinj.rpc
import groovy.json.JsonSlurper
/**
* Implementation of BlockchainSyncing that uses BlockCypher.com API
*/
trait BlockCypherSyncing extends BlockchainSyncing {
Integer getReferenceBlockHeight() {
Integer height = new JsonSlurper().parse(new URL("https://api.blockcyphe... | package com.msgilligan.bitcoinj.rpc
import groovy.json.JsonSlurper
/**
* Implementation of BlockchainSyncing that uses BlockCypher.com API
*
* Note: 5 requests/sec and 600 requests/hr without API token.
*/
trait BlockCypherSyncing extends BlockchainSyncing {
Integer getReferenceBlockHeight() {
Intege... | Add note about BlockCypher API rate limit | Add note about BlockCypher API rate limit | Groovy | apache-2.0 | msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons |
8705718dff6896605fe6a08183bd85ff2bc3c1d7 | ExtendedDependencyManagerGrailsPlugin.groovy | ExtendedDependencyManagerGrailsPlugin.groovy | class ExtendedDependencyManagerGrailsPlugin {
// the plugin version
def version = "0.5.2"
def grailsVersion = "2.0 > *"
def title = "Extended Dependency Manager Plugin"
def author = "David Dawson"
def authorEmail = "david.dawson@simplicityitself.com"
def description = '''\
Provides a si... | class ExtendedDependencyManagerGrailsPlugin {
// the plugin version
def version = "0.5.3"
def grailsVersion = "2.0 > *"
def title = "Extended Dependency Manager Plugin"
def author = "David Dawson"
def authorEmail = "david.dawson@simplicityitself.com"
def description = '''\
Provides a si... | Tweak ivy to download all the deps and add them to the classpath, not just a few of them | Tweak ivy to download all the deps and add them to the classpath, not just a few of them
| Groovy | apache-2.0 | simplicityitself/grails-dependency-manager |
7d894506c6b4748d6bc63878e83c4b98e1afc150 | client/src/test/groovy/de/gesellix/docker/client/config/DockerVersionSpec.groovy | client/src/test/groovy/de/gesellix/docker/client/config/DockerVersionSpec.groovy | package de.gesellix.docker.client.config
import spock.lang.Specification
import spock.lang.Unroll
class DockerVersionSpec extends Specification {
@Unroll
def "parse version #versionString"() {
expect:
DockerVersion.parseDockerVersion(versionString) == version
where:
versionStr... | package de.gesellix.docker.client.config
import spock.lang.Specification
import spock.lang.Unroll
class DockerVersionSpec extends Specification {
@Unroll
def "parse version #versionString"() {
expect:
DockerVersion.parseDockerVersion(versionString) == version
where:
versionStr... | Verify compatibility with new versioning scheme. | Verify compatibility with new versioning scheme.
See https://github.com/docker/docker/pull/31075 for details.
| Groovy | mit | gesellix/docker-client,gesellix-docker/docker-client,gesellix-docker/docker-client,gesellix-docker/docker-client,gesellix-docker/docker-client,gesellix/docker-client,gesellix/docker-client |
d74679be6e0d0757611e2d2684b2256daade7c71 | src/main/groovy/geoscript/Application.groovy | src/main/groovy/geoscript/Application.groovy | package geoscript
import groovy.ui.GroovyMain as Script
import groovy.ui.Console
import org.codehaus.groovy.tools.shell.Main as Shell
import org.geotools.util.factory.GeoTools
/**
* The GeoScript Application that can run scripts, shell, or console.
* @author Jared Erickson
*/
class Application {
/**
* Ru... | package geoscript
import groovy.ui.GroovyMain as Script
import groovy.ui.Console
import org.codehaus.groovy.tools.shell.Main as Shell
import org.geotools.geometry.jts.JTS
import org.geotools.util.factory.GeoTools
import org.locationtech.jts.JTSVersion
/**
* The GeoScript Application that can run scripts, shell, or c... | Add JTS version to the uber jar application version subcommand | Add JTS version to the uber jar application version subcommand
| Groovy | mit | geoscript/geoscript-groovy,geoscript/geoscript-groovy |
c70d50b69ae810cf95136b0eb9418070f8a6ac7a | src/main/groovy/edu/oregonstate/mist/locations/core/DiningLocation.groovy | src/main/groovy/edu/oregonstate/mist/locations/core/DiningLocation.groovy | package edu.oregonstate.mist.locations.core
import com.fasterxml.jackson.annotation.JsonProperty
class DiningLocation implements Comparable {
@JsonProperty("concept_title")
String conceptTitle
String zone
@JsonProperty("calendar_id")
String calendarId
@JsonProperty("concept_coord")
String ... | package edu.oregonstate.mist.locations.core
import com.fasterxml.jackson.annotation.JsonProperty
class DiningLocation implements Comparable {
@JsonProperty("concept_title")
String conceptTitle
String zone
@JsonProperty("calendar_id")
String calendarId
@JsonProperty("concept_coord")
String ... | Fix bug in lat/long parsing | Fix bug in lat/long parsing
CO-259
| Groovy | agpl-3.0 | osu-mist/locations-api |
96ced7ee696975d9b970759e934348a4a712289a | mariaDB4j-maven-plugin/src/it/start-stop/verify.groovy | mariaDB4j-maven-plugin/src/it/start-stop/verify.groovy | import static org.junit.Assert.assertFalse
import static org.junit.Assert.assertTrue
def file = new File(basedir, "build.log")
assertFalse 'MariaDB4j should have run', file.text.contains("Installing a new embedded database")
assertFalse 'MariaDB4j Should attempt to stop', file.text.contains('Shutdown Hook Deletion Thr... | import static org.junit.Assert.assertTrue
def file = new File(basedir, "build.log")
assertTrue 'MariaDB4j should have run: ', file.text.contains("Installing a new embedded database")
assertTrue 'MariaDB4j Should attempt to stop', file.text.contains('ShutdownHook quietly deleting temporary DB data directory')
| Fix copy/paste error. The log lines should be present in the build log | Fix copy/paste error. The log lines should be present in the build log
| Groovy | apache-2.0 | vorburger/MariaDB4j,vorburger/MariaDB4j |
d8962a84b0c96295630d321e82bd93815d466a45 | src/test/groovy/com/github/blindpirate/gogradle/core/GolangConfigurationTest.groovy | src/test/groovy/com/github/blindpirate/gogradle/core/GolangConfigurationTest.groovy | package com.github.blindpirate.gogradle.core
import com.github.blindpirate.gogradle.util.ReflectionUtils
import org.junit.Test
class GolangConfigurationTest {
GolangConfiguration configuration = new GolangConfiguration('build')
@Test
void 'explicit exception should be thrown when invoking unsupported met... | package com.github.blindpirate.gogradle.core
import com.github.blindpirate.gogradle.util.ReflectionUtils
import org.junit.Test
class GolangConfigurationTest {
GolangConfiguration configuration = new GolangConfiguration('build')
@Test
void 'explicit exception should be thrown when invoking unsupported met... | Complete tests for GolangConfiguration hack methods | Complete tests for GolangConfiguration hack methods
| Groovy | apache-2.0 | gogradle/gogradle,gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle,gogradle/gogradle,blindpirate/gogradle |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.