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 |
|---|---|---|---|---|---|---|---|---|---|
778b4fc9fa7a4dd347acbd29399736e3b7e824f8 | springfox-swagger2/src/test/groovy/springfox/documentation/swagger2/mappers/LicenseMapperSpec.groovy | springfox-swagger2/src/test/groovy/springfox/documentation/swagger2/mappers/LicenseMapperSpec.groovy | package springfox.documentation.swagger2.mappers
import spock.lang.Specification
import springfox.documentation.builders.ApiInfoBuilder
import springfox.documentation.service.ApiInfo
class LicenseMapperSpec extends Specification {
def "License is mapped from ApiInfo" () {
given:
def apiInfo = ApiInfo.DEFA... | package springfox.documentation.swagger2.mappers
import spock.lang.Specification
import springfox.documentation.builders.ApiInfoBuilder
import springfox.documentation.service.ApiInfo
class LicenseMapperSpec extends Specification {
def "License is mapped from ApiInfo" () {
given:
def apiInfo = ApiInfo.DEFA... | Add test for the case that ApiInfo contains just a license url. | Add test for the case that ApiInfo contains just a license url.
| Groovy | apache-2.0 | thomsonreuters/springfox,thomsonreuters/springfox,yelhouti/springfox,springfox/springfox,yelhouti/springfox,springfox/springfox,thomsonreuters/springfox,springfox/springfox,springfox/springfox,yelhouti/springfox |
b9b3c29ee2797f19afdf2a59dd5b9a286a4607fd | src/test/groovy/nebula/test/functional/internal/classpath/ClasspathAddingInitScriptBuilderFixture.groovy | src/test/groovy/nebula/test/functional/internal/classpath/ClasspathAddingInitScriptBuilderFixture.groovy | package nebula.test.functional.internal.classpath
import org.gradle.util.GFileUtils
final class ClasspathAddingInitScriptBuilderFixture {
private ClasspathAddingInitScriptBuilderFixture() {}
static List<File> createLibraries(File projectDir, int numberOfLibs = 500) {
def libraries = []
(1..n... | package nebula.test.functional.internal.classpath
import org.gradle.util.GFileUtils
final class ClasspathAddingInitScriptBuilderFixture {
private ClasspathAddingInitScriptBuilderFixture() {}
static List<File> createLibraries(File projectDir, int numberOfLibs = 500) {
def libraries = []
(1..n... | Prepare test for future version of Gradle | Prepare test for future version of Gradle
| Groovy | apache-2.0 | nebula-plugins/nebula-test |
f541db600dd4d2891b9d5878f0538ed6dfd7a05b | plugin/src/main/groovy/com/github/ksoichiro/web/resource/node/TriremeNodeRunner.groovy | plugin/src/main/groovy/com/github/ksoichiro/web/resource/node/TriremeNodeRunner.groovy | package com.github.ksoichiro.web.resource.node
import io.apigee.trireme.core.NodeEnvironment
import io.apigee.trireme.core.NodeScript
import io.apigee.trireme.core.ScriptStatus
/**
* Wrapper class to run Node.js with Trireme/Rhino.
*/
class TriremeNodeRunner {
public static final String NODE_VERSION = "0.12"
... | package com.github.ksoichiro.web.resource.node
import io.apigee.trireme.core.NodeEnvironment
import io.apigee.trireme.core.NodeScript
import io.apigee.trireme.core.ScriptStatus
import org.gradle.api.GradleException
/**
* Wrapper class to run Node.js with Trireme/Rhino.
*/
class TriremeNodeRunner {
public static... | Throw exception for Trireme errors | Throw exception for Trireme errors
TriremeNodeRunner has status field but it has not been handled.
Related to #3, sometimes it actually fails.
Therefore it should be reported to the caller and treat as build failure.
| Groovy | apache-2.0 | ksoichiro/gradle-web-resource-plugin |
866bca8b3369804ca8d0dbbf8639ed9b54e7d75f | 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()
{
open("${baseURL}pagecatalog")
assertTitle "Tapestry Page Catalog"
... | 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")
... | Create an internal library, with an internal layout for builtin pages (PageCatalog, ServiceStatus) | TAP5-1678: Create an internal library, with an internal layout for builtin pages (PageCatalog, ServiceStatus)
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1177769 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5 |
ff0a0be09ac934ae69709300aa891f15a152e545 | src/it/mojo-1731/verify.groovy | src/it/mojo-1731/verify.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | Adjust IT: not interested in order, just in the Set of artifacts with duplicate classes | Adjust IT: not interested in order, just in the Set of artifacts with duplicate classes | Groovy | apache-2.0 | ryangardner/extra-enforcer-rules,maddingo/extra-enforcer-rules-ryangardner,mfriedenhagen/extra-enforcer-rules |
2c9e8e48f76be0404c7c2d70e27d871e994fd4b8 | subprojects/workers/src/integTest/groovy/org/gradle/workers/internal/WaitForCompletionWorkerExecutorSampleIntegrationTest.groovy | subprojects/workers/src/integTest/groovy/org/gradle/workers/internal/WaitForCompletionWorkerExecutorSampleIntegrationTest.groovy | /*
* 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... | /*
* 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... | Make test insensitive to file separators on windows | Make test insensitive to file separators on windows
| Groovy | apache-2.0 | lsmaira/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,lsmaira/grad... |
4a3d85007c2ff961433e5533cc24c9f7e797ffdb | test/jenkins.groovy | test/jenkins.groovy | def tests = [
test_ec2_k8s_basic,
test_noop
]
def getTextMatrix() {
return tests
}
def test_ec2_k8s_basic = {
node {
git url: 'https://github.com/Juniper/container-networking-ansible.git'
withCredentials([[$class: 'UsernamePasswordBinding', credentialsId: 'k8s-provisioner', 'AWS_ACCES... | def tests = [
test_ec2_k8s_basic,
test_noop
]
def getTextMatrix() {
return tests
}
def test_ec2_k8s_basic = {
node {
git url: 'https://github.com/Juniper/container-networking-ansible.git'
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usern... | Use MultiBinding in order to specify environment variables for AWS credentials. | Use MultiBinding in order to specify environment variables for AWS credentials.
| Groovy | apache-2.0 | Juniper/container-networking-ansible,rackn/container-networking-ansible,Juniper/container-networking-ansible,rackn/container-networking-ansible |
f6aab749e11ce512d44b357ff1a50d69913febbf | lenskit-eval/src/main/groovy/org/grouplens/lenskit/eval/config/AlgorithmBuilderDelegate.groovy | lenskit-eval/src/main/groovy/org/grouplens/lenskit/eval/config/AlgorithmBuilderDelegate.groovy | package org.grouplens.lenskit.eval.config
import org.grouplens.lenskit.eval.AlgorithmBuilder
import org.codehaus.groovy.runtime.MetaClassHelper
import org.grouplens.lenskit.core.LenskitRecommenderEngineFactory
/**
* @author Michael Ekstrand
*/
class AlgorithmBuilderDelegate {
private AlgorithmBuilder builder
... | package org.grouplens.lenskit.eval.config
import org.grouplens.lenskit.eval.AlgorithmBuilder
import org.codehaus.groovy.runtime.MetaClassHelper
import org.grouplens.lenskit.core.LenskitRecommenderEngineFactory
/**
* Groovy delegate for configuring {@code AlgorithmBuilder}s.
* @author Michael Ekstrand
* @since 0.10... | Improve algorithm builder delegate ocs | Improve algorithm builder delegate ocs
| Groovy | lgpl-2.1 | chrysalag/lenskit,vaibhav345/lenskit,kluver/lenskit,vijayvani/Lenskit,blankazucenalg/lenskit,tajinder-txstate/lenskit,vijayvani/Lenskit,aglne/lenskit,kluver/lenskit,blankazucenalg/lenskit,binweiwu/lenskit,amaliujia/lenskit,vaibhav345/lenskit,linjunleo/lenskit,linjunleo/lenskit,binweiwu/lenskit,kluver/lenskit,vaibhav345... |
a8a3dbd1d38b4cc1202b3d3ab1fd00aef6dc494b | netci.groovy | netci.groovy | // Import the utility functionality.
import jobs.generation.Utilities;
def project = 'dotnet/codeformatter'
// Define build string
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd'''
// Generate the builds for debug and release
def commitJo... | // Import the utility functionality.
import jobs.generation.Utilities;
def project = 'dotnet/codeformatter'
// Define build string
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd'''
// Generate the builds.
[true, false].each { isPR ->
... | Simplify job creation using new utility functionality | Simplify job creation using new utility functionality
| Groovy | mit | BradBarnich/codeformatter,michaelcfanning/codeformatter,mmitche/codeformatter,david-mitchell/codeformatter,dotnet/codeformatter,kharaone/codeformatter,dotnet/codeformatter,mmitche/codeformatter |
32111b372660a122351e1148fa2c8b38d5fcc299 | vars/ppgOperatingSystems.groovy | vars/ppgOperatingSystems.groovy | def call() {
return ['centos-7', 'centos8', 'debian-9', 'debian-10', 'ubuntu-focal', 'ubuntu-bionic', 'rhel8']
}
| def call() {
// centos8 - centos8.3
// rhel8 - rhel 8.0
return ['centos-7', 'centos8', 'debian-9', 'debian-10', 'ubuntu-focal', 'ubuntu-bionic', 'rhel8']
}
| Add comment for PPG operating systems | Add comment for PPG operating systems
| Groovy | agpl-3.0 | Percona-Lab/jenkins-pipelines,Percona-Lab/jenkins-pipelines,Percona-Lab/jenkins-pipelines,Percona-Lab/jenkins-pipelines |
aacd9e38b2c5b2dcca5250da76aadc3cfc5a9490 | test/jenkins.groovy | test/jenkins.groovy | def test_ec2_k8s_basic = {
node {
git url: 'https://github.com/Juniper/container-networking-ansible.git'
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) {
// c... | def test_ec2_k8s_basic = {
node {
git url: 'https://github.com/Juniper/container-networking-ansible.git'
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'k8s-provisioner', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) {
// c... | Declare test list inside getTestMatrix. | Declare test list inside getTestMatrix.
| Groovy | apache-2.0 | Juniper/container-networking-ansible,rackn/container-networking-ansible,Juniper/container-networking-ansible,rackn/container-networking-ansible |
5495a4f9351b1b6e1f43b8ae8da8d4e2f433e357 | grails-app/conf/cytomine/web/RequestFilters.groovy | grails-app/conf/cytomine/web/RequestFilters.groovy | package cytomine.web
/**
* Created by IntelliJ IDEA.
* User: lrollus
* Date: 19/08/11
* Time: 9:49
* To change this template use File | Settings | File Templates.
*/
class RequestFilters {
def springSecurityService
def filters = {
all(uri:'/api/**') {
before = {
request.currentTime = S... | package cytomine.web
/**
* Created by IntelliJ IDEA.
* User: lrollus
* Date: 19/08/11
* Time: 9:49
* To change this template use File | Settings | File Templates.
*/
class RequestFilters {
def springSecurityService
def filters = {
all(uri:'/api/**') {
before = {
if(actionName.equals("c... | Remove request filter for crop image | Remove request filter for crop image
| Groovy | apache-2.0 | charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,cytomine/Cytomine-core,cha... |
3bd7fca6f5dcefb043ae46a38211b1bbed3a8e49 | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excl... | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excl... | Add spock and code-coverage plugins | Add spock and code-coverage plugins
| Groovy | apache-2.0 | eamon316/grails-postgresql-extensions,mochalov/grails-postgresql-extensions,kaleidos/grails-postgresql-extensions,ilopmar/grails-postgresql-extensions,davidbairdala/grails-postgresql-extensions,lmivan/grails-postgresql-extensions,gregopet/grails-postgresql-extensions,PIWEEK/grails-postgresql-extensions,Poundex/grails-p... |
d87a05296d34c90ef2be50a47852a4d0706b36e0 | src/test/groovy/BindingTest.groovy | src/test/groovy/BindingTest.groovy | /*
* Copyright 2003-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright 2003-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Add test case for new hasVariable() method on Binding. | Add test case for new hasVariable() method on Binding.
| Groovy | apache-2.0 | eginez/incubator-groovy,genqiang/incubator-groovy,ebourg/incubator-groovy,eginez/incubator-groovy,pledbrook/incubator-groovy,apache/groovy,christoph-frick/groovy-core,paplorinc/incubator-groovy,ebourg/groovy-core,EPadronU/incubator-groovy,apache/groovy,paulk-asert/incubator-groovy,nobeans/incubator-groovy,sagarsane/gro... |
b353b653c8532481de0a191a98907fc19d4f0695 | src/test/groovy/com/dslexample/JobScriptsSpec.groovy | src/test/groovy/com/dslexample/JobScriptsSpec.groovy | package com.dslexample
import groovy.io.FileType
import javaposse.jobdsl.dsl.DslScriptLoader
import javaposse.jobdsl.dsl.JobManagement
import javaposse.jobdsl.dsl.MemoryJobManagement
import spock.lang.Specification
import spock.lang.Unroll
/**
* Tests that all dsl scripts in the jobs directory will compile.
*/
clas... | package com.dslexample
import groovy.io.FileType
import javaposse.jobdsl.dsl.DslScriptLoader
import javaposse.jobdsl.dsl.JobManagement
import javaposse.jobdsl.dsl.MemoryJobManagement
import spock.lang.Specification
import spock.lang.Unroll
/**
* Tests that all dsl scripts in the jobs directory will compile.
*/
clas... | Normalize paths in order to fix tests under Windows | Normalize paths in order to fix tests under Windows
PS: much thanks for this sample project!
| Groovy | apache-2.0 | RajeshNukala1/Learn-Jenkins,sheehan/job-dsl-gradle-example,neal295/job-dsl-gradle-example,tghcastro/job-dsl-gradle-example,daspilker/job-dsl-gradle-example |
c542c1c3fb870c2052114615f9669f9617f16e50 | src/main/resources/hudson/plugins/git/UserRemoteConfig/config.groovy | src/main/resources/hudson/plugins/git/UserRemoteConfig/config.groovy | package hudson.plugins.git.UserRemoteConfig
f = namespace(lib.FormTagLib)
c = namespace(lib.CredentialsTagLib)
f.entry(title:_("Repository URL"), field:"url") {
f.textbox(checkMethod: "post")
}
f.entry(title:_("Credentials"), field:"credentialsId") {
c.select(onchange="""{
var self = this.targetE... | package hudson.plugins.git.UserRemoteConfig
f = namespace(lib.FormTagLib)
c = namespace(lib.CredentialsTagLib)
f.entry(title:_("Repository URL"), field:"url") {
f.textbox(checkMethod: "post")
}
f.entry(title:_("Credentials"), field:"credentialsId") {
c.select(onchange="""{
var self = this.targetE... | Remove wasted space on Repository URL field | Remove wasted space on Repository URL field
The repeatable delete button in the groovy form should be consistent
with the repeatable delete button used in jelly files. No need to add
the extra div and waste vertical space.
The "show-if-not-only" class does not seem to have any affect on the
shipping version of the p... | Groovy | mit | jenkinsci/git-plugin,MarkEWaite/git-plugin,MarkEWaite/git-plugin,jenkinsci/git-plugin,jenkinsci/git-plugin,jenkinsci/git-plugin,MarkEWaite/git-plugin,MarkEWaite/git-plugin |
cb5e4e721612dc656f9c7562af4e9cf6bdc0c1a1 | src/integ/groovy/org/mastercoin/test/consensus/BaseConsensusSpec.groovy | src/integ/groovy/org/mastercoin/test/consensus/BaseConsensusSpec.groovy | package org.mastercoin.test.consensus
import org.mastercoin.BaseMainNetSpec
import org.mastercoin.CurrencyID
import org.mastercoin.consensus.ConsensusComparison
import org.mastercoin.consensus.MasterCoreConsensusTool
import org.mastercoin.consensus.OmniwalletConsensusTool
import spock.lang.Shared
import spock.lang.Unr... | package org.mastercoin.test.consensus
import org.mastercoin.BaseMainNetSpec
import org.mastercoin.CurrencyID
import org.mastercoin.consensus.ConsensusComparison
import org.mastercoin.consensus.MasterCoreConsensusTool
import org.mastercoin.consensus.OmniwalletConsensusTool
import spock.lang.Shared
import spock.lang.Unr... | Use proper camelCase on blockHeight (oops) | Use proper camelCase on blockHeight (oops) | Groovy | apache-2.0 | OmniLayer/OmniJ,dexX7/OmniJ,dexX7/bitcoin-spock,dexX7/bitcoin-spock,OmniLayer/OmniJ,OmniLayer/OmniJ,dexX7/OmniJ |
b01d76942690e85ecdd31007304ecf903c95b24c | ci/create_build_job.groovy | ci/create_build_job.groovy | // Install the following plugins in addition to recommended plugins when installing Jenkins
// - Job DSL
// - AnsiColor
//
// And set the "Markup Formatter" in "Manage Jenkins -> Configure Global Security" to "Safe HTML".
def buildSnapshotJob = freeStyleJob('vimr_build')
buildSnapshotJob.with {
description '''\
Bui... | // Install the following plugins in addition to recommended plugins when installing Jenkins
// - Job DSL
// - AnsiColor
//
// And set the "Markup Formatter" in "Manage Jenkins -> Configure Global Security" to "Safe HTML".
def buildSnapshotJob = freeStyleJob('vimr_build')
buildSnapshotJob.with {
description '''\
Bui... | Reorder jenkins build job params | Reorder jenkins build job params
| Groovy | mit | qvacua/vimr,qvacua/vimr,qvacua/vimr,qvacua/vimr,qvacua/vimr |
1b1d8d3b982c66f2fdb8511846002ef2b39ba771 | src/main/groovy/jetpacker/api/configuration/Kit.groovy | src/main/groovy/jetpacker/api/configuration/Kit.groovy | package jetpacker.api.configuration
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.AutoClone
import groovy.transform.CompileStatic
/**
* Created by donny on 25/10/16.
*/
@AutoClone
@CompileStatic
class Kit extends Application {
List<Kit> extensions
@JsonIgnore
Kit dependency... | package jetpacker.api.configuration
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.AutoClone
import groovy.transform.CompileStatic
/**
* Created by donny on 25/10/16.
*/
@AutoClone
@CompileStatic
class Kit extends Application {
List<Kit> extensions
// @JsonIgnore
Kit dependen... | Comment out JsonIgnore. Will decide later whether to hide it or not. | Comment out JsonIgnore. Will decide later whether to hide it or not.
| Groovy | mit | jetpacker/jetpacker-api |
6b051abb61e9cfb2a802ea8b15cfbb89c3cca16a | grails-app/conf/UrlMappings.groovy | grails-app/conf/UrlMappings.groovy | /*
* CollabNet Subversion Edge
* Copyright (C) 2010, CollabNet Inc. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (a... | /*
* CollabNet Subversion Edge
* Copyright (C) 2010, CollabNet Inc. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (a... | Add API for listing repos | [artf6692] : Add API for listing repos
adding constraints to api url
* grails-app/conf/UrlMappings
added constraint to api url mapping (now only accepts "1" for api version, 404 otherwise)
git-svn-id: ec3c21ed833430e32134c61539c75518a6355d4e@2641 03e8f217-bfc6-4b7c-bcb7-0738c91e2c5f
| Groovy | agpl-3.0 | marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console |
0fafd5eeb79faab72adf836045dcc72eeaba94cc | platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/KotlinMavenArtifactsBuilder.groovy | platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/KotlinMavenArtifactsBuilder.groovy | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.intellij.build.impl
import groovy.transform.CompileStatic
import org.jetbrains.intellij.build.BuildContext
import org.jetbrains.jps.model.module.JpsModule
... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.intellij.build.impl
import groovy.transform.CompileStatic
import org.jetbrains.intellij.build.BuildContext
import org.jetbrains.jps.model.module.JpsModule
... | Change kotlin-ide modules to deploy | Change kotlin-ide modules to deploy
GitOrigin-RevId: 8b419a1ad37109ff9e7384cc0a98c855d53c5ecb | Groovy | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
736652d749ceab9e6671054c1141209fefd1f0fb | subprojects/griffon-glazedlists-core-groovy/src/main/groovy/griffon/plugins/glazedlists/GlazedListsExtension.groovy | subprojects/griffon-glazedlists-core-groovy/src/main/groovy/griffon/plugins/glazedlists/GlazedListsExtension.groovy | /*
* Copyright 2014-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 app... | /*
* Copyright 2014-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 app... | Fix wrong self type in extension method | Fix wrong self type in extension method
GlazedListsExtension.withWriteLock seems to be an EventList extension in the same way as withReadLock. | Groovy | apache-2.0 | griffon-plugins/griffon-glazedlists-plugin |
41dbf0ec3fd96550c728de94cc7bcf6d67d9c3c9 | lib/WorkflowSraDownload.groovy | lib/WorkflowSraDownload.groovy | /*
* This file holds functions specific to the workflow/sra_download.nf in the nf-core/rnaseq pipeline
*/
class WorkflowSraDownload {
/*
* Print a warning after SRA download has completed
*/
public static void sraDownloadWarn(log) {
log.warn "===============================================... | /*
* This file holds functions specific to the workflow/sra_download.nf in the nf-core/rnaseq pipeline
*/
class WorkflowSraDownload {
/*
* Print a warning after SRA download has completed
*/
public static void sraDownloadWarn(log) {
log.warn "===============================================... | Add strandedness info to SRA warning | Add strandedness info to SRA warning
| Groovy | mit | ewels/NGI-RNAseq,ewels/NGI-RNAseq,ewels/NGI-RNAseq,ewels/NGI-RNAseq,ewels/NGI-RNAseq |
2ad1e3d429b129000a0b7f1c104e4d91eb7e3a21 | src/main/groovy/jetpacker/api/JetpackerApplication.groovy | src/main/groovy/jetpacker/api/JetpackerApplication.groovy | package jetpacker.api
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
class JetpackerApplication {
static void main(String[] args) {
SpringApplication.run JetpackerApplication, args
}
}
| package jetpacker.api
import groovy.transform.CompileStatic
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.scheduling.annotation.EnableScheduling
@SpringBootApplication
@EnableScheduling
@CompileStatic
class JetpackerApp... | Enable scheduling. Enable static compilation. | Enable scheduling.
Enable static compilation.
| Groovy | mit | jetpacker/jetpacker-api |
4de51b875518385066bce4e740d39b57e10a3091 | src/main/groovy/CodexResults.groovy | src/main/groovy/CodexResults.groovy | import groovy.lang.Closure;
import java.util.Map;
class CodexResults extends CNVResults {
CodexResults(String fileName) {
super(fileName, 1, 3, 4)
}
@Override
public RangedData load(Map options, Closure c = null) {
return super.load(options) { Region r ->
r... | import groovy.lang.Closure;
import java.util.Map;
class CodexResults extends CNVResults {
CodexResults(String fileName) {
super(fileName, 1, 3, 4)
}
@Override
public RangedData load(Map options, Closure c = null) {
return super.load(options) { Region r ->
r... | Fix CODEX duplications having type 'dup' instead of 'DUP' | Fix CODEX duplications having type 'dup' instead of 'DUP' | Groovy | lgpl-2.1 | ssadedin/ximmer,ssadedin/ximmer,ssadedin/ximmer,ssadedin/ximmer,ssadedin/ximmer |
7137ef0453c358df25e53caec96f153fcf39c622 | federationregistry/workflow/scripts/organization_delete.groovy | federationregistry/workflow/scripts/organization_delete.groovy | import fedreg.core.*
organizationService = ctx.getBean("organizationService")
workflowTaskService = ctx.getBean("workflowTaskService")
mailService = ctx.getBean("mailService")
messageSource = ctx.getBean("messageSource")
def org = Organization.get(env.organization.toLong())
if(org) {
def creator = Contact.get(env.... | import fedreg.core.*
organizationService = ctx.getBean("organizationService")
workflowTaskService = ctx.getBean("workflowTaskService")
mailService = ctx.getBean("mailService")
messageSource = ctx.getBean("messageSource")
def org = Organization.read(env.organization.toLong())
if(org) {
def creator = Contact.read(env.... | Make org delete script read-only to ensure no underlying locks cause faults | Make org delete script read-only to ensure no underlying locks cause faults
| Groovy | apache-2.0 | ausaccessfed/federationregistry,University-of-Auckland/federationregistry2-Tuakiri,ausaccessfed/federationregistry,REANNZ/federationregistry2-Tuakiri,REANNZ/federationregistry2-Tuakiri,ausaccessfed/federationregistry,REANNZ/federationregistry2-Tuakiri,University-of-Auckland/federationregistry2-Tuakiri,University-of-Auc... |
28dcc7808931a205ad4ad5c090dbe028abfc9b69 | scripts/_Events.groovy | scripts/_Events.groovy | // sets the scriptName so we know if we can automigrate
eventPackageAppEnd = {
try {
def MigrationUtils = classLoader.loadClass('grails.plugin.databasemigration.MigrationUtils')
MigrationUtils.scriptName = binding.variables.scriptName
}
catch (Throwable t) {
println "\nERROR setting MigrationUtils.scriptName, ... | // sets the scriptName so we know if we can automigrate
eventPackageAppEnd = {
try {
def MigrationUtils = classLoader.loadClass('grails.plugin.databasemigration.MigrationUtils')
MigrationUtils.scriptName = binding.variables.scriptName
}
catch (Throwable t) {
println "\nERROR setting MigrationUtils.scriptName, ... | Fix MPE when exception occurs. | Fix MPE when exception occurs. | Groovy | apache-2.0 | sbglasius/grails-database-migration,jako512/grails-database-migration |
d3750eeab26268724dcd21314a57c2e56687b7a0 | init.groovy.d/set-instance-url.groovy | init.groovy.d/set-instance-url.groovy | #!/usr/bin/env groovy
/* Configure the instance's URL based on the GITHUB_USER */
import jenkins.model.*
if (System.env.get('GITHUB_USER')) {
JenkinsLocationConfiguration.get().setUrl("https://${System.env.get('GITHUB_USER'}.codevalet.io/")
}
| #!/usr/bin/env groovy
/* Configure the instance's URL based on the GITHUB_USER */
import jenkins.model.*
if (System.env.get('GITHUB_USER')) {
JenkinsLocationConfiguration.get().setUrl("https://${System.env.get('GITHUB_USER')}.codevalet.io/")
}
| Fix broken setting of instance URL | Fix broken setting of instance URL
| Groovy | agpl-3.0 | CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet |
858e30657b6e7f0139a43cf37b87e599249640f7 | src/main/scripts/GenerateViews.groovy | src/main/scripts/GenerateViews.groovy | import org.grails.cli.interactive.completers.DomainClassCompleter
description( "Generates GSP views for the specified domain class" ) {
usage "grails generate-views [DOMAIN CLASS]|*"
argument name:'Domain Class', description:"The name of the domain class, or '*' for all", required:true
completer DomainClas... | import org.grails.cli.interactive.completers.DomainClassCompleter
description( "Generates GSP views for the specified domain class" ) {
usage "grails generate-views [DOMAIN CLASS]|*"
argument name:'Domain Class', description:"The name of the domain class, or '*' for all", required:true
completer DomainClas... | Fix broken view discovery for generate-views | Fix broken view discovery for generate-views
| Groovy | apache-2.0 | grails3-plugins/scaffolding |
bde15786b9ef8d8eaa9e4b495aa7afa00dab2b79 | ee-mdd-core/src/main/groovy/ee/mdd/model/component/Attribute.groovy | ee-mdd-core/src/main/groovy/ee/mdd/model/component/Attribute.groovy | /*
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Set a default type for Props if no type is specified | Set a default type for Props if no type is specified | Groovy | apache-2.0 | eugeis/ee-mdd,eugeis/ee-mdd,eugeis/ee-mdd |
b1b9021b033c2fa81a710caefe5846c7f9ab8c12 | src/main/groovy/edu/oregonstate/mist/mealcard/db/MealPlanDAO.groovy | src/main/groovy/edu/oregonstate/mist/mealcard/db/MealPlanDAO.groovy | package edu.oregonstate.mist.mealcard.db
import edu.oregonstate.mist.mealcard.core.MealPlanBalance
import edu.oregonstate.mist.mealcard.mapper.MealPlanBalanceMapper
import org.skife.jdbi.v2.sqlobject.Bind
import org.skife.jdbi.v2.sqlobject.SqlQuery
import org.skife.jdbi.v2.sqlobject.customizers.RegisterMapper
@Regist... | package edu.oregonstate.mist.mealcard.db
import edu.oregonstate.mist.mealcard.core.MealPlanBalance
import edu.oregonstate.mist.mealcard.mapper.MealPlanBalanceMapper
import org.skife.jdbi.v2.sqlobject.Bind
import org.skife.jdbi.v2.sqlobject.SqlQuery
import org.skife.jdbi.v2.sqlobject.customizers.RegisterMapper
@Regist... | Remove unused collumn in select statement | Remove unused collumn in select statement
CO-831
| Groovy | agpl-3.0 | osu-mist/meal-card-api |
a22c975e6885d3503a8f48a6118d5dfb346857d9 | src/main/groovy/jetpacker/api/configuration/Box.groovy | src/main/groovy/jetpacker/api/configuration/Box.groovy | package jetpacker.api.configuration
import groovy.transform.CompileStatic
import groovy.transform.ToString
/**
* Created by donny on 24/10/2016.
*/
@ToString(includeNames = true, includeSuper = true)
@CompileStatic
class Box extends Metadata {
List<String> images
String defaultImage
} | package jetpacker.api.configuration
import groovy.transform.CompileStatic
import groovy.transform.ToString
/**
* Created by donny on 24/10/2016.
*/
@ToString(includeNames = true, includeSuper = true)
@CompileStatic
class Box extends Metadata {} | Remove defaultImages and images fields. Instead use defaultVersion and versions Releases in Metadata | Remove defaultImages and images fields. Instead use defaultVersion and versions Releases in Metadata
| Groovy | mit | jetpacker/jetpacker-api |
33d59b7f640d646dfda9efa66659a058b8aa053a | src/main/groovy/com/github/aesteve/vertx/groovy/HttpClientResponseExtension.groovy | src/main/groovy/com/github/aesteve/vertx/groovy/HttpClientResponseExtension.groovy | package com.github.aesteve.vertx.groovy
import groovy.transform.TypeChecked
import io.vertx.core.Handler
import io.vertx.groovy.core.MultiMap
import io.vertx.groovy.core.http.HttpClientResponse
@TypeChecked
class HttpClientResponseExtension {
static void rightShiftUnsigned(HttpClientResponse self, Handler handler) {... | package com.github.aesteve.vertx.groovy
import groovy.transform.TypeChecked
import io.vertx.core.Handler
import io.vertx.groovy.core.MultiMap
import io.vertx.groovy.core.buffer.Buffer
import io.vertx.groovy.core.http.HttpClientResponse
@TypeChecked
class HttpClientResponseExtension {
static void rightShiftUnsigned(... | Add Closure support w/ delegate | Add Closure support w/ delegate
| Groovy | apache-2.0 | aesteve/vertx-groovy-sugar,aesteve/grooveex |
eda75bf4436ea9f4330aacbb5a4585ad6dd68e2c | vars/logContains.groovy | vars/logContains.groovy | def call(manager, regex, failure_message) {
if (!manager.logContains(regex)) {
manager.addWarningBadge(failure_message)
manager.createSummary("warning.gif").appendText("<h1>" + failure_message + "</h1>", false, false, false, "red")
manager.buildUnstable()
}
}
| def call(regex, failure_message) {
if (!manager.logContains(regex)) {
manager.addWarningBadge(failure_message)
manager.createSummary("warning.gif").appendText("<h1>" + failure_message + "</h1>", false, false, false, "red")
manager.buildUnstable()
}
}
| Remove manager from global function | Remove manager from global function
| Groovy | mit | MarkEWaite/jenkins-bugs |
26d6ec9107a121633fddd76947747621f02ba630 | src/it/site/verify.groovy | src/it/site/verify.groovy | /**
* Copyright 2011 Matthias Nuessler <m.nuessler@web.de>
*
* 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 a... | /**
* Copyright 2011 Matthias Nuessler <m.nuessler@web.de>
*
* 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 a... | Improve integration test to check for empty files. | Improve integration test to check for empty files.
| Groovy | apache-2.0 | mnuessler/cakupan-maven-plugin,mnuessler/cakupan-maven-plugin |
1af122908989e331b2287fd6d1450d8dd7a87083 | src/main/groovy/jetpacker/api/configuration/JetpackerConfiguration.groovy | src/main/groovy/jetpacker/api/configuration/JetpackerConfiguration.groovy | package jetpacker.api.configuration
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Configuration
/**
* Created by wolf on 30/10/16.
*/
@Configuration
@EnableConfigurationProperties(JetpackerProperties.class)
class JetpackerConfiguration... | package jetpacker.api.configuration
import groovy.text.StreamingTemplateEngine
import groovy.text.TemplateEngine
import groovy.transform.CompileStatic
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.Bean
import org.springframework.context.a... | Enable static compilation. Add @Bean StreamingTemplateEngine Add @Bean AsyncRestTemplate | Enable static compilation.
Add @Bean StreamingTemplateEngine
Add @Bean AsyncRestTemplate
| Groovy | mit | jetpacker/jetpacker-api |
654c360ba659e26ee7910e0db652cbd220fa97f1 | src/main/db/migrate/014_Phase3_Construction3/002_add_unique_constraint_to_label_tables.groovy | src/main/db/migrate/014_Phase3_Construction3/002_add_unique_constraint_to_label_tables.groovy | class AddUniqueConstraintToLabelTables extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
execute("ALTER TABLE labels ADD CONSTRAINT un_label_name UNIQUE (name)")
execute("ALTER TABLE planned_activity_labels ADD CONSTRAINT fk_label_id FOREIGN KEY (label_id) REFERENCES labels")
execut... | class AddUniqueConstraintToLabelTables extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
execute("ALTER TABLE labels ADD CONSTRAINT un_label_name UNIQUE (name)")
execute("ALTER TABLE planned_activity_labels ADD CONSTRAINT fk_label_id FOREIGN KEY (label_id) REFERENCES labels")
... | Modify to fit oracle identifier length limits | Modify to fit oracle identifier length limits
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
afda086958f0ad48c29ed8ce2adecdd159528f26 | 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 {
String serviceAccountEmail
File pk12File
boolean uploadImages = false
boolean errorOnSizeLimit = true
private String track = 'alpha'
void setTrack(String track) {
if (!(track in ['alpha', 'beta', 'rollout', 'produ... | package de.triplet.gradle.play
class PlayPublisherPluginExtension {
String serviceAccountEmail
File pk12File
boolean uploadImages = false
boolean errorOnSizeLimit = true
private String track = 'alpha'
void setTrack(String track) {
if (!(track in ['alpha', 'beta', 'rollout', 'produ... | Make userFraction a Groovy Bean | Make userFraction a Groovy Bean
| Groovy | mit | Triple-T/gradle-play-publisher,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1 |
54fa28fcb23275e6df8d602e3424aba63651ed13 | subprojects/cpp/src/main/groovy/org/gradle/nativebinaries/test/cunit/tasks/GenerateCUnitLauncher.groovy | subprojects/cpp/src/main/groovy/org/gradle/nativebinaries/test/cunit/tasks/GenerateCUnitLauncher.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... | Replace the entire file content when generating CUnit launcher files | Replace the entire file content when generating CUnit launcher files
| Groovy | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradl... |
cecee0dd85f84072d67febeb4fc16e53f05809c8 | grails-app/utils/DefaultJmsBeans.groovy | grails-app/utils/DefaultJmsBeans.groovy | import org.springframework.jms.support.converter.SimpleMessageConverter
templates {
standard {
connectionFactoryBean = "jmsConnectionFactory"
messageConverter = new SimpleMessageConverter()
}
}
containers {
standard {
concurrentConsumers = 1
subscriptionDurable = false
... | import org.springframework.jms.support.converter.SimpleMessageConverter
import org.springframework.jms.listener.DefaultMessageListenerContainer
templates {
standard {
connectionFactoryBean = "jmsConnectionFactory"
messageConverter = new SimpleMessageConverter()
}
}
containers {
standard {
... | Set the default cache level of the listener container to cache session. | Set the default cache level of the listener container to cache session.
| Groovy | apache-2.0 | MayGo/grails-jms |
80558e82a9ae5739c117bc78e110e9996eabc42a | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/MixedNativeAndJvmProjectIntegrationTest.groovy | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/MixedNativeAndJvmProjectIntegrationTest.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... | Fix integration test broken by package rename | Fix integration test broken by package rename
| Groovy | apache-2.0 | blindpirate/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,... |
54291c20de1ddbdd5841609936b30aedea90837a | src/test/org/codehaus/groovy/tools/stubgenerator/WrongCastForGenericReturnValueOfMethodStubsTest.groovy | src/test/org/codehaus/groovy/tools/stubgenerator/WrongCastForGenericReturnValueOfMethodStubsTest.groovy | package org.codehaus.groovy.tools.stubgenerator
/**
* GROOVY-5630:
* Java stub generator generates wrong cast for return value of generic method
*
* @author Guillaume Laforge
*/
class WrongCastForGenericReturnValueOfMethodStubsTest extends StringSourcesStubTestCase {
Map<String, String> provideSources() {
... | package org.codehaus.groovy.tools.stubgenerator
/**
* GROOVY-5630:
* Java stub generator generates wrong cast for return value of generic method
*
* (also covers GROOVY-5439)
*
* @author Guillaume Laforge
*/
class WrongCastForGenericReturnValueOfMethodStubsTest extends StringSourcesStubTestCase {
Map<Stri... | Add coverage for the examples from GROOVY-5439 (error: incompatible types on Java stubs returning generics) | Add coverage for the examples from GROOVY-5439 (error: incompatible types on Java stubs returning generics)
| Groovy | apache-2.0 | alien11689/groovy-core,bsideup/groovy-core,aaronzirbes/incubator-groovy,bsideup/incubator-groovy,upadhyayap/incubator-groovy,pledbrook/incubator-groovy,sagarsane/incubator-groovy,avafanasiev/groovy,avafanasiev/groovy,apache/incubator-groovy,alien11689/incubator-groovy,paulk-asert/incubator-groovy,aaronzirbes/incubator-... |
413cfd0f1aa11424b4310f1932aad72c99524c38 | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/NativeParallelPerformanceTest.groovy | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/NativeParallelPerformanceTest.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... | Mark a performance experiment as such | Mark a performance experiment as such
| Groovy | apache-2.0 | robinverduijn/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,gradl... |
e35861666dc58e609a00caa4263b175a34024571 | Jenkinsfile-insecure.groovy | Jenkinsfile-insecure.groovy | dir("packages/adminrouter/extra/src") {
stage('Prepare devkit container') {
sh 'make update-devkit'
}
try {
stage('make api-docs') {
sh 'make api-docs'
}
stage('make flake8') {
sh 'make flake8'
}
stage('make test') {
sh '... | dir("packages/adminrouter/extra/src") {
stage('Prepare devkit container') {
sh 'make update-devkit'
}
try {
stage('make check-api-docs') {
sh 'make check-api-docs'
}
stage('make flake8') {
sh 'make flake8'
}
stage('make test') {
... | Change jenkins to use make check-api-docs | Change jenkins to use make check-api-docs
| Groovy | apache-2.0 | mellenburg/dcos,surdy/dcos,dcos/dcos,mesosphere-mergebot/dcos,mellenburg/dcos,BenWhitehead/dcos,jeid64/dcos,amitaekbote/dcos,lingmann/dcos,amitaekbote/dcos,GoelDeepak/dcos,jeid64/dcos,mesosphere-mergebot/mergebot-test-dcos,dcos/dcos,dcos/dcos,asridharan/dcos,surdy/dcos,vishnu2kmohan/dcos,GoelDeepak/dcos,GoelDeepak/dcos... |
312580862f37d1cc62c1591b8cebc1a1f9002ee0 | main/src/main/groovy/org/grails/main/model/Profile.groovy | main/src/main/groovy/org/grails/main/model/Profile.groovy | package org.grails.main.model
import groovy.transform.CompileStatic
@CompileStatic
class Profile implements ProfileHtml {
String title
String href
String docsHref
String getSlug() {
title?.replace(' ', '-')?.toLowerCase()
}
String getHref() {
"profiles/${slug}/index.html"
... | package org.grails.main.model
import groovy.transform.CompileStatic
@CompileStatic
class Profile implements ProfileHtml {
String title
String href
String docsHref
String getSlug() {
title?.replace(' ', '-')?.toLowerCase()
}
String getHref() {
if ( this.href == null ) {
... | Fix link to third party profiles | Fix link to third party profiles
| Groovy | apache-2.0 | grails/grails-static-website,grails/grails-static-website,grails/grails-static-website,sbglasius/grails-static-website,grails/grails-static-website,sbglasius/grails-static-website,sbglasius/grails-static-website |
fb885bbd8e8cebc93693f65bc74fe6a322306ab0 | src/test/resources/core/For_05x.groovy | src/test/resources/core/For_05x.groovy | import groovy.transform.CompileStatic
@CompileStatic
def testCS() {
int result = 0
for (int i = 0, n = 5; i < n; i++) {
result += i
}
assert 10 == result
}
testCS();
def test() {
int result = 0
for (int i = 0, n = 5; i < n; i++) {
result += i
}
assert 10 == result
}
t... | import groovy.transform.CompileStatic
@CompileStatic
def testCS() {
int result = 0
for (int i = 0, n = 5; i < n; i++) {
result += i
}
assert 10 == result
result = 0;
int i;
int j;
for (i = 1, j = 5; i < j; i++, j--) {
result += i;
result += j;
}
assert 1... | Add more test cases for the standard "for" loop statement | Add more test cases for the standard "for" loop statement
| Groovy | apache-2.0 | danielsun1106/groovy-parser,danielsun1106/groovy-parser |
4b79c9e2357d03c0d167b11520cbb333d656199f | site/src/site/includes/bottommenu.groovy | site/src/site/includes/bottommenu.groovy |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... | Reword the bottom tagline on every page | Reword the bottom tagline on every page | Groovy | apache-2.0 | groovy/groovy-website,groovy/groovy-website |
2d96fe647f4e778f169f77f8cbc1db69f3e03976 | packages/java/rinfo-main/src/test/groovy/se/lagrummet/rinfo/main/storage/ErrorLevelSpec.groovy | packages/java/rinfo-main/src/test/groovy/se/lagrummet/rinfo/main/storage/ErrorLevelSpec.groovy | package se.lagrummet.rinfo.main.storage
import spock.lang.*
import static se.lagrummet.rinfo.main.storage.ErrorLevel.*
class ErrorLevelSpec extends Specification {
@Unroll
def "should stop on error level #stopOnLevel"() {
expect:
continueOnLevelMap.each { gotErrorLevel, shouldContinue ->
... | package se.lagrummet.rinfo.main.storage
import spock.lang.*
import static se.lagrummet.rinfo.main.storage.ErrorLevel.*
class ErrorLevelSpec extends Specification {
@Unroll
def "should stop on error level #stopOnLevel"() {
expect:
continueOnLevelMap.each { gotErrorLevel, shouldContinue ->
... | Clarify error level spec (or at least try to) | Clarify error level spec (or at least try to) | Groovy | bsd-2-clause | rinfo/rdl,rinfo/rdl,rinfo/rdl,rinfo/rdl,rinfo/rdl,rinfo/rdl |
bc8a4d398e9035d08f46424359acc118e3a40be5 | src/test/groovy/helios/HeliosSpec.groovy | src/test/groovy/helios/HeliosSpec.groovy | package helios
import static helios.Helios.validate;
import static helios.Validators.min;
import static helios.Validators.required;
import spock.lang.Specification
import helios.HeliosSpecProperties as PROPERTY
import helios.HeliosSpecValidators as VALIDATOR
import helios.HeliosSpecGenerators as GENERATOR
class Hel... | package helios
import static helios.Helios.validate;
import static helios.Validators.min;
import static helios.Validators.required;
import spock.lang.Specification
import helios.HeliosSpecProperties as PROPERTY
import helios.HeliosSpecValidators as VALIDATOR
import helios.HeliosSpecGenerators as GENERATOR
class Hel... | Add NPE case to fix it | Add NPE case to fix it
| Groovy | apache-2.0 | mariogarcia/helios |
346d5b351c2dd51f379e200f4ff1bc4261a8653e | pipelines/dax/docker/build_imgserv.groovy | pipelines/dax/docker/build_imgserv.groovy | node('jenkins-master') {
dir('jenkins-dm-jobs') {
checkout([
$class: 'GitSCM',
branches: scm.getBranches(),
userRemoteConfigs: scm.getUserRemoteConfigs(),
changelog: false,
poll: false
])
notify = load 'pipelines/lib/notify.groovy'
util = load 'pipelines/lib/util.groovy'
... | node('jenkins-master') {
dir('jenkins-dm-jobs') {
checkout([
$class: 'GitSCM',
branches: scm.getBranches(),
userRemoteConfigs: scm.getUserRemoteConfigs(),
changelog: false,
poll: false
])
notify = load 'pipelines/lib/notify.groovy'
util = load 'pipelines/lib/util.groovy'
... | Revert to running container as jenkins user | Revert to running container as jenkins user
| Groovy | apache-2.0 | jhoblitt/jenkins-dm-jobs,lsst-sqre/jenkins-dm-jobs |
926af7d6eb37bc0da9a59184ab0a3b4cb657ada6 | grails-app/migrations/2018-11-15-v500-hero-element-times.groovy | grails-app/migrations/2018-11-15-v500-hero-element-times.groovy | databaseChangeLog = {
changeSet(author: "fwieczorek", id: "20181115-hero-elements") {
addColumn(tableName: "job") {
column(name: "hero_element_times", type: "bit") {
constraints(nullable: "false")
}
column(name: "hero_elements", type: "text") {
... | databaseChangeLog = {
changeSet(author: "fwieczorek", id: "20181115-hero-elements") {
addColumn(tableName: "job") {
column(name: "hero_element_times", type: "boolean", valueBoolean: true) {
constraints(nullable: "false")
}
column(name: "hero_elements", t... | Enable heroTimes for all old jobs by default | Enable heroTimes for all old jobs by default
| Groovy | apache-2.0 | iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor |
aac264c45f6b8d994738e419bf224d14292b33c7 | grails-app/services/de/andreasschmitt/export/ExportService.groovy | grails-app/services/de/andreasschmitt/export/ExportService.groovy | package de.andreasschmitt.export
import de.andreasschmitt.export.exporter.Exporter
import de.andreasschmitt.export.exporter.ExportingException
import javax.servlet.http.*
class ExportService {
boolean transactional = false
def exporterFactory
def grailsApplication
public void export(String type, O... | package de.andreasschmitt.export
import de.andreasschmitt.export.exporter.Exporter
import de.andreasschmitt.export.exporter.ExportingException
import javax.servlet.http.*
class ExportService {
boolean transactional = false
def exporterFactory
def grailsApplication
public void export(String type, O... | Add quotation marks in filename for filenames with blank spaces. Firefox does not recognize the extension when filename contains blank spaces | Add quotation marks in filename for filenames with blank spaces. Firefox does not recognize the extension when filename contains blank spaces
| Groovy | apache-2.0 | puneetbehl/grails-export,gpc/export,jaredsieling/export,lgouger/export |
0168c08186f3afaa31d81b8fde8935348073cf01 | jenkins/workflow.groovy | jenkins/workflow.groovy | node {
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'
sh 'make build'
stage 'Build Runtime Artefacts'
sh 'make release'
ste... | def src = 'https://github.com/cloudhotspot/pypackage-docker.git'
node {
git url: src
stage 'Build Base Images'
sh 'make image docker/base'
sh 'make image docker/dev'
sh 'make image docker/agent'
stage 'Run Unit/Integration Tests'
sh 'make test'
stage 'Build Application Artefacts'
... | Add missing git clone tasks | Add missing git clone tasks
| Groovy | mit | cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker,cloudhotspot/pypackage-docker |
6cbd287808e1ea9f71a7d3d3ff413b2dfd540c8e | buildSrc/src/main/groovy/com/manning/gia/sanitycheck/processing/JsonTestSetBuildBatchProcessor.groovy | buildSrc/src/main/groovy/com/manning/gia/sanitycheck/processing/JsonTestSetBuildBatchProcessor.groovy | package com.manning.gia.sanitycheck.processing
import groovyx.gpars.GParsPool
import groovy.util.logging.Slf4j
import com.manning.gia.sanitycheck.input.TestSetReader
import com.manning.gia.sanitycheck.input.JsonTestSetReader
@Slf4j
class JsonTestSetBuildBatchProcessor implements BuildBatchProcessor {
BuildVerifi... | package com.manning.gia.sanitycheck.processing
import groovyx.gpars.GParsPool
import groovy.util.logging.Slf4j
import com.manning.gia.sanitycheck.input.TestSetReader
import com.manning.gia.sanitycheck.input.JsonTestSetReader
@Slf4j
class JsonTestSetBuildBatchProcessor implements BuildBatchProcessor {
BuildVerifi... | Scale down the number of Gradle connector forks | Scale down the number of Gradle connector forks
| Groovy | mit | bmuschko/gradle-in-action-source,bmuschko/gradle-in-action-source,bmuschko/gradle-in-action-source |
3112b444c2819a249916fcdc5d08c121ceb5e7b5 | functional-tests/src/test/groovy/pages/app/NotificationsPage.groovy | functional-tests/src/test/groovy/pages/app/NotificationsPage.groovy | package pages.app
import geb.Page
class NotificationsPage extends Page {
static at = { title == "Transportation Fuels Reporting System - Notifications" }
static url = "/notifications"
}
| package pages.app
import geb.Page
class NotificationsPage extends Page {
static at = { title == "Notifications" }
static url = "/notifications"
}
| Fix test for title of Notifications page | Fix test for title of Notifications page | Groovy | apache-2.0 | jeffmcnd/tfrs,swcurran/tfrs,jeffmcnd/tfrs,swcurran/tfrs,jeffmcnd/tfrs,jeffmcnd/tfrs,swcurran/tfrs,swcurran/tfrs |
abd2a664a89daca388706867a9addcbdeacd9b03 | db/migrate/001_release1/006_create_csm.groovy | db/migrate/001_release1/006_create_csm.groovy | class CreateCsm extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('oracle')) {
String fileName = "db/migrate/001_release1/CSMOracleSQL.sql"
File input = new File(fileName)
String content = input.text
execute(conte... | class CreateCsm extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('oracle')) {
String fileName = "db/migrate/001_release1/CSMOracleSQL.sql"
File input = new File(fileName)
String content = input.text
execute(conte... | Use PostgreSQL scripts in the generic case (including for HSQLDB) | Use PostgreSQL scripts in the generic case (including for HSQLDB)
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
fc286ca9afa0b113c7a29b97ff83a63e239f288e | module/geb-core/src/main/groovy/geb/internal/SimplePageContent.groovy | module/geb-core/src/main/groovy/geb/internal/SimplePageContent.groovy | /* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | /* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Make simple page content iterable. | Make simple page content iterable.
| Groovy | apache-2.0 | menonvarun/geb,pierre-hilt/geb,pierre-hilt/geb,onBass-naga/geb,kgeis/geb,menonvarun/geb,menonvarun/geb,kgeis/geb,geb/geb,kgeis/geb,geb/geb,madmas/geb,ntotomanov-taulia/geb,madmas/geb,madmas/geb,pierre-hilt/geb,ntotomanov-taulia/geb,onBass-naga/geb |
8ef49fb22349331d893499c1240c64034aef8580 | db/migrate/001_release1/008_modify_study.groovy | db/migrate/001_release1/008_modify_study.groovy | class ModifyStudy extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('oracle')) {
execute('ALTER TABLE studies ADD completed integer NOT NULL')
} else {
execute('ALTER TABLE studies ADD completed BOOLEAN NOT NULL')
}
... | class ModifyStudy extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('oracle')) {
execute('ALTER TABLE studies ADD completed integer NOT NULL DEFAULT \'0\'')
} else {
execute('ALTER TABLE studies ADD completed BOOLEAN NOT NULL DEFA... | Add default values in case there are already values in the table | Add default values in case there are already values in the table
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
46a37ad757259c17cc8c713424364ab9d3cfd049 | core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy | core/src/main/resources/jenkins/tools/GlobalToolConfiguration/index.groovy | package jenkins.tools.GlobalToolConfiguration
import hudson.Functions
import hudson.model.Descriptor
def f=namespace(lib.FormTagLib)
def l=namespace(lib.LayoutTagLib)
def st=namespace("jelly:stapler")
l.layout(norefresh:true, permission:app.ADMINISTER, title:my.displayName) {
l.side_panel {
l.tasks {
... | package jenkins.tools.GlobalToolConfiguration
import hudson.Functions
import hudson.model.Descriptor
def f=namespace(lib.FormTagLib)
def l=namespace(lib.LayoutTagLib)
def st=namespace("jelly:stapler")
l.layout(norefresh:true, permission:app.ADMINISTER, title:my.displayName) {
l.side_panel {
l.tasks {
... | Fix "Manage Jenkins" icon on Global Tool Configuration | Fix "Manage Jenkins" icon on Global Tool Configuration
All "Manage Jenkins" links from different pages use gear icon except this one. | Groovy | mit | stephenc/jenkins,ikedam/jenkins,viqueen/jenkins,DanielWeber/jenkins,damianszczepanik/jenkins,Vlatombe/jenkins,recena/jenkins,daniel-beck/jenkins,aldaris/jenkins,oleg-nenashev/jenkins,damianszczepanik/jenkins,aldaris/jenkins,sathiya-mit/jenkins,aldaris/jenkins,amuniz/jenkins,MarkEWaite/jenkins,jenkinsci/jenkins,ErikVerh... |
8d7b01fc9c60052eae5dce85755be04e7bdb72c8 | subprojects/model-core/src/test/groovy/org/gradle/model/internal/type/ModelTypesTest.groovy | subprojects/model-core/src/test/groovy/org/gradle/model/internal/type/ModelTypesTest.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... | Handle new constant types in Java 12 | Handle new constant types in Java 12
| Groovy | apache-2.0 | blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,r... |
7cd8b6a30590022864503b78fb954cb479e01db3 | integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-appcds/verify.groovy | integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-appcds/verify.groovy | import io.quarkus.deployment.util.ExecUtil
import io.quarkus.runtime.util.JavaVersionUtil
import java.util.concurrent.ThreadLocalRandom
if (!JavaVersionUtil.java11OrHigher) {
// AppCDS don't work in Java 8
return
}
try {
ExecUtil.exec("docker", "version", "--format", "'{{.Server.Version}}'")
} catch (Exc... | import io.quarkus.deployment.util.ExecUtil
import java.util.concurrent.ThreadLocalRandom
try {
ExecUtil.exec("docker", "version", "--format", "'{{.Server.Version}}'")
} catch (Exception ignored) {
return
}
String image = "${System.getProperty("user.name")}/container-build-jib-appcds:0.1-SNAPSHOT"
assert Exec... | Remove obsolete Java >= 11 check in jib AppCDS integration-test | Remove obsolete Java >= 11 check in jib AppCDS integration-test
| Groovy | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
f0fdf0137a7e32ecbfdbef88ec8626f5acdf52eb | folio-demo-module/grails-app/controllers/folio/demo/module/OkapiController.groovy | folio-demo-module/grails-app/controllers/folio/demo/module/OkapiController.groovy | ckage folio.demo.module
import grails.rest.*
import grails.converters.*
class OkapiController {
static responseFormats = ['json', 'xml']
def index() {
}
// GET And DELETE verbs with header X-Okapi-Tenant indicate activation of this module for a given tenant.
def tenant() {
println("OkapiController::... | package folio.demo.module
import grails.rest.*
import grails.converters.*
class OkapiController {
static responseFormats = ['json', 'xml']
def index() {
}
// GET And DELETE verbs with header X-Okapi-Tenant indicate activation of this module for a given tenant.
def tenant() {
println("OkapiController... | Fix syntax error in okapi controller | Fix syntax error in okapi controller
| Groovy | apache-2.0 | k-int/folio-grails-module-demo |
c6d4babb9a96540accc0121906ca4c4227c9b5f1 | src/main/groovy/com/ullink/IkvmPlugin.groovy | src/main/groovy/com/ullink/IkvmPlugin.groovy | package com.ullink
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.Task;
import org.gradle.api.plugins.BasePlugin;
import org.gradle.api.plugins.JavaBasePlugin;
class IkvmPlugin implements Plugin<Project> {
void apply(Project project) {
project.tasks.withType(Ikvm).whenTas... | package com.ullink
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.Task;
import org.gradle.api.plugins.BasePlugin;
import org.gradle.api.plugins.JavaBasePlugin;
class IkvmPlugin implements Plugin<Project> {
void apply(Project project) {
project.tasks.withType(Ikvm).whenTas... | Update ikvm version to the one on sourceforge | Update ikvm version to the one on sourceforge
On http://downloads.sourceforge.net/project/ikvm/ikvm/ :
* 7.2.4630.4 is no longer available
* 7.2.4630.5 is the version available
Without this fix, we have errors
Caused by: java.io.FileNotFoundException:
http://downloads.sourceforge.net/project/ikvm/ikvm/7.2.4630.4/
i... | Groovy | apache-2.0 | ngyukman/gradle-ikvm-plugin,nugetmonkey/gradle-nugetmonkey-plugin,Ullink/gradle-ikvm-plugin |
d89f59d969a8898fc6c0b82dd3d3b03156615c88 | pipelines/jobs/configurations/jdk10u.groovy | pipelines/jobs/configurations/jdk10u.groovy | targetConfigurations = [
"x64Mac" : [
"hotspot",
"openj9"
],
"x64MacXL" : [
"openj9"
],
"x64Linux" : [
"hotspot",
"openj9"
],
"x64Windows" : [
"hotspot",
... | targetConfigurations = [
"x64Mac" : [
"hotspot",
"openj9"
],
"x64MacXL" : [
"openj9"
],
"x64Linux" : [
"hotspot",
"openj9"
],
"x64Windows" : [
"hotspot",
... | Disable JDK 10u pipeline job | Disable JDK 10u pipeline job
This would be a step towards auto-detecting new pipelines and
generating them.
| Groovy | apache-2.0 | karianna/openjdk-build,AdoptOpenJDK/openjdk-build,AdoptOpenJDK/openjdk-build,karianna/openjdk-build |
4d8f99e9156079445ba85200a290f57ad4dd3742 | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/versions/KotlinGradlePluginVersions.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/versions/KotlinGradlePluginVersions.groovy | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Test latest Kotlin milestone as well | Test latest Kotlin milestone as well
this version seems to fix a bug for incremental kapt.
| Groovy | apache-2.0 | gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpira... |
a8b3336014cb94612c5ac6160552ba639170480d | tapestry-wro4j/src/test/groovy/t5/wro4j/tests/Wro4jSpec.groovy | tapestry-wro4j/src/test/groovy/t5/wro4j/tests/Wro4jSpec.groovy | package t5.wro4j.tests
import geb.spock.GebSpec
import org.apache.tapestry5.test.Jetty7Runner
import spock.lang.Shared
class Wro4jSpec extends GebSpec {
@Shared
def runner;
def setupSpec() {
runner = new Jetty7Runner("src/test/webapp", "/", 8080, 8081);
runner.start()
}
def cle... | package t5.wro4j.tests
import geb.spock.GebSpec
import org.apache.tapestry5.test.Jetty7Runner
import spock.lang.Shared
class Wro4jSpec extends GebSpec {
@Shared
def runner;
def setupSpec() {
runner = new Jetty7Runner("src/test/webapp", "/", 8080, 8081);
runner.start()
}
def cle... | Add tests for Less compilation | Add tests for Less compilation
| Groovy | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
e0190a5695c94e4bb77a31e9783058d6dd6b5ff6 | test/unit/be/cytomine/security/UserTests.groovy | test/unit/be/cytomine/security/UserTests.groovy | package be.cytomine.security
import grails.test.*
class UserTests extends GrailsUnitTestCase {
protected void setUp() {
super.setUp()
}
protected void tearDown() {
super.tearDown()
}
void testSomething() {
}
}
| package be.cytomine.security
import grails.test.*
class UserTests extends GrailsUnitTestCase {
protected void setUp() {
super.setUp()
}
protected void tearDown() {
super.tearDown()
}
void testSomething() {
}
void testValidEmail() {
mockDomain(User)
def t... | Test with Bamboo and a failed test | Test with Bamboo and a failed test
| Groovy | apache-2.0 | cytomine/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,chary... |
ccd7df2717c31a284fa7e3b99451b76f4c556f10 | sakura/jenkins-jobs/src/jobs/mail_p_txt.groovy | sakura/jenkins-jobs/src/jobs/mail_p_txt.groovy | String repo = P_TXT_REPOSITORY_URL
job("mail_p_txt") {
scm {
git repo
}
triggers {
scm 'H H * * *'
}
steps {
shell 'cat p.txt'
}
publishers {
extendedEmail {
// TODO: Set global sender address
recipientList('8.slashes@gmail.com')
... | String repo = P_TXT_REPOSITORY_URL
job("mail_p_txt") {
scm {
git repo
}
triggers {
scm 'H H * * *'
}
steps {
shell 'cat p.txt'
}
publishers {
extendedEmail {
// TODO: Set global sender address
recipientList('8.slashes@gmail.com')
... | Revert "Add encoding to content_type" | Revert "Add encoding to content_type"
This reverts commit 7b6b5a40347bea8756d1d8a1ec83673d2fef2a37.
| Groovy | unlicense | 10sr/machine-setups,10sr/machine-setups,10sr/machine-setups,10sr/server-provisions,10sr/server-provisions,10sr/machine-setups |
4eb6f7d5f7cf2f60efb55971457cabf57121c4f8 | site/src/site/pages/usage/remove.groovy | site/src/site/pages/usage/remove.groovy | article {
a(name: 'remove'){}
h2 { yield 'Remove Version' }
p {
yield 'Remove an installed version.'
pre { code '$ sdk remove scala 2.11.6' }
}
}
br()
| article {
a(name: 'remove'){}
h2 { yield 'Remove Version' }
p {
yield 'Remove an installed version.'
pre { code '$ sdk uninstall scala 2.11.6' }
}
}
br()
| Fix usage documentation for uninstalling | Fix usage documentation for uninstalling
Documentation contained `remove` instead of `uninstall` or `rm`. | Groovy | apache-2.0 | sdkman/sdkman-website,sdkman/sdkman-website,dmesu/sdkman-website,dmesu/sdkman-website |
6c660df3633ee8d27ee6e23651e13821a9e6124c | es55-test/src/test/groovy/pl/allegro/tech/embeddedelasticsearch/PluginsInstallationSpec.groovy | es55-test/src/test/groovy/pl/allegro/tech/embeddedelasticsearch/PluginsInstallationSpec.groovy | package pl.allegro.tech.embeddedelasticsearch
class PluginsInstallationSpec extends PluginsInstallationBaseSpec {
static final HTTP_PORT_VALUE = 9200
EmbeddedElastic.Builder baseEmbeddedElastic() {
return EmbeddedElastic.builder()
.withElasticVersion("5.5.1")
.withEsJa... | package pl.allegro.tech.embeddedelasticsearch
import static java.util.concurrent.TimeUnit.MINUTES
import static pl.allegro.tech.embeddedelasticsearch.EmbeddedElasticConfiguration.START_TIMEOUT_IN_MINUTES
import static pl.allegro.tech.embeddedelasticsearch.EmbeddedElasticConfiguration.TEST_ES_JAVA_OPTS
class PluginsIn... | Adjust start time out form PluginInstallaionSpec for ES5.5 | Adjust start time out form PluginInstallaionSpec for ES5.5
| Groovy | apache-2.0 | djarosz/embedded-elasticsearch |
0403d95893f20d3ae00dd45287bf773ca7780933 | src/main/groovy/slack/SlackAttachment.groovy | src/main/groovy/slack/SlackAttachment.groovy | package slack
class SlackAttachment {
String title = ''
String color = '#00D000'
List<SlackField> fields = []
def intoJson(json) {
json {
fallback title
pretext title
color color
fields fields*.intoJson(json)
}
}
}
| package slack
class SlackAttachment {
String title = ''
String color = '#00D000'
List<SlackField> fields = []
def intoJson(json) {
json {
fallback title
pretext title
color color
'mrkdwn_in' markdown()
fields fields*.intoJson(json)
... | Enable markdown in slack message | Enable markdown in slack message
| Groovy | mit | bitsetd4d/is-it-fish-day |
70c31593de6a3474b821f1e4c1a642751a165e73 | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ScriptExecuter.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ScriptExecuter.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... | Split assignment from declaration to try to overcome intermittent windows CI issue. | Split assignment from declaration to try to overcome intermittent windows CI issue.
| Groovy | apache-2.0 | gstevey/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,g... |
cb430402b8a5d71e1e0f19105742975c2da16d70 | grails-app/controllers/LogoutController.groovy | grails-app/controllers/LogoutController.groovy | import edu.sfsu.ntd.phenometrainer.Parasite
import edu.sfsu.ntd.phenometrainer.ParasiteTrainState
import edu.sfsu.ntd.phenometrainer.Users
import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
class LogoutController {
def springSecurityService
/**
* Index action. Redirects to the Spring sec... | import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
class LogoutController {
// def springSecurityService
def trainService
/**
* Index action. Redirects to the Spring security logout uri.
*/
def index = {
trainService.saveCurrentImageState(session["parasites"])
redirect uri: S... | Use save state service method | Use save state service method
| Groovy | agpl-3.0 | asarnow/qdrec,asarnow/qdrec,asarnow/qdrec |
de443436bddb05696e7f6ed4e802aecd9b022f2f | 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")
file.deleteOnExit()
def className = file.name-".groovy"
def cl = new GroovyClassLoader(this.class.classLoader);
def currentDir = file.parentFile.absolu... | 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... | Make sure the temporary file is created in the target directory, because otherwise on JDK 1.5, the temp file is created in groovy-core, and the test won't run properly because the file (for some unknown reason yet) is not deleted upon exit. | Make sure the temporary file is created in the target directory, because otherwise on JDK 1.5, the temp file is created in groovy-core, and the test won't run properly because the file (for some unknown reason yet) is not deleted upon exit.
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@3543 a5544e8c-8a19-0410-... | Groovy | apache-2.0 | groovy/groovy-core,apache/groovy,shils/incubator-groovy,apache/groovy,paulk-asert/incubator-groovy,graemerocher/incubator-groovy,PascalSchumacher/incubator-groovy,christoph-frick/groovy-core,PascalSchumacher/incubator-groovy,aim-for-better/incubator-groovy,gillius/incubator-groovy,upadhyayap/incubator-groovy,bsideup/in... |
44d8ba9c23af626e95e664bc6f631787df980620 | kato-core/src/main/groovy/com/netflix/spinnaker/kato/data/task/InMemoryTaskRepository.groovy | kato-core/src/main/groovy/com/netflix/spinnaker/kato/data/task/InMemoryTaskRepository.groovy | /*
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Create the task with the provided initial phase/status message | Create the task with the provided initial phase/status message
| Groovy | apache-2.0 | spinnaker/clouddriver,duftler/clouddriver,lookout/clouddriver,ajordens/clouddriver,danveloper/clouddriver,lookout/clouddriver,duftler/clouddriver,danveloper/clouddriver,ajordens/clouddriver,stitchfix/clouddriver,danveloper/clouddriver,stitchfix/clouddriver,spinnaker/clouddriver,ajordens/clouddriver,cfieber/clouddriver,... |
eff65eeccacef59f9919ee0f3821849cf7710506 | src/main/groovy/de/stups/slottool/Faculty.groovy | src/main/groovy/de/stups/slottool/Faculty.groovy | package de.stups.slottool
/**
* Created by David Schneider on 01.02.15.
*/
enum Faculty {
WiWi("wiwi", [(FileType.BMachine.name): "wiwi_data.mch.template"]),
PhilFak("philfak", [(FileType.BMachine.name): "data.mch.template", (FileType.Prolog.name): "data.pl.template"]);
private final name
private final ... | package de.stups.slottool
/**
* Created by David Schneider on 01.02.15.
*/
enum Faculty {
WiWi("wiwi", [(FileType.BMachine.name): "wiwi_data.mch.template", (FileType.Prolog.name): "data.pl.template"]),
PhilFak("philfak", [(FileType.BMachine.name): "data.mch.template", (FileType.Prolog.name): "data.pl.template"... | Set the prolog template for wiwi data to the same data.pl.template template as phil-fak | Set the prolog template for wiwi data to the same data.pl.template template as phil-fak
| Groovy | isc | plues/model-generator,plues/model-generator |
f743b55700ee5d6fad42308011d077c4e6fe6b9b | src/test/groovy/ru/d10xa/allure/JunitSpec.groovy | src/test/groovy/ru/d10xa/allure/JunitSpec.groovy | package ru.d10xa.allure
import groovy.transform.Memoized
import org.gradle.testkit.runner.GradleRunner
import ru.d10xa.allure.extension.GradlePluginClasspath
import ru.d10xa.allure.extension.TestProjectDir
import spock.lang.Shared
import spock.lang.Specification
import static org.gradle.testkit.runner.TaskOutcome.SUC... | package ru.d10xa.allure
import org.gradle.testkit.runner.GradleRunner
import ru.d10xa.allure.extension.GradlePluginClasspath
import ru.d10xa.allure.extension.TestProjectDir
import spock.lang.Shared
import spock.lang.Specification
import spock.lang.Unroll
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
@U... | Test junit with multiple versions of gradle | Test junit with multiple versions of gradle
| Groovy | apache-2.0 | d10xa/gradle-allure-plugin,d10xa/gradle-allure-plugin |
ce6e9783ea9c5e6c11d671c5147b1e373beff6b0 | whelktool/scripts/analysis/relation-paths.groovy | whelktool/scripts/analysis/relation-paths.groovy | import whelk.util.DocumentUtil
selectBySqlWhere('deleted = false') { doc ->
try {
DocumentUtil.findKey(doc.graph, '@id') { String value, List path ->
if (value.startsWith("https://libris") || value.startsWith("http://libris") || value.startsWith("https://id.kb.se")) {
incrementS... | import whelk.util.DocumentUtil
selectBySqlWhere('deleted = false') { doc ->
try {
DocumentUtil.findKey(doc.graph, '@id') { String value, List path ->
if (value.startsWith("https://libris") || value.startsWith("http://libris") || value.startsWith("https://id.kb.se")) {
def p = pa... | Add script for analyzing locations of links in documents | Add script for analyzing locations of links in documents
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
52cb0a6c7c16cf7df7bcbd1ce2733add8eee9625 | src/test/groovy/sdkman/support/UnixUtils.groovy | src/test/groovy/sdkman/support/UnixUtils.groovy | package sdkman.support
class UnixUtils {
private static platforms = [
"Linux": [
"amd64": "LinuxX64"
],
"Darwin": [
"X86_64": "DarwinX64",
],
"FreeBSD": [
"amd64": "FreeBSD_X64"
]
]
static getPlatform() {
def sdkmanPlatform = asSdkmanPlatform(System.getPr... | package sdkman.support
class UnixUtils {
private static platforms = [
"Linux": [
"amd64": "LinuxX64"
],
"Mac OS X": [
"x86_64": "DarwinX64",
],
"FreeBSD": [
"amd64": "FreeBSD_X64"
]
]
static getPlatform() {
def sdkmanPlatform = asSdkmanPlatform(System.get... | Fix broken tests on Mac OSX. | Fix broken tests on Mac OSX.
| Groovy | apache-2.0 | gvmtool/gvm-cli,sdkman/sdkman-cli |
b7369994831e53cbd9b8c508b736798046197ab6 | buildscripts/centosTestImages.groovy | buildscripts/centosTestImages.groovy | node('docker') {
checkout scm
sh './buildscripts/release.sh && ./buildscripts/cleanCentosontainers.sh'
try {
sh './buildscripts/release.sh && ./buildscripts/testSupportedCentosImages.sh'
} finally {
sh './buildscripts/release.sh && ./buildscripts/cleanCentosontainers.sh'
}
}
| node('docker') {
checkout scm
sh './buildscripts/release.sh && ./buildscripts/cleanCentosContainers.sh'
try {
sh './buildscripts/release.sh && ./buildscripts/testSupportedCentosImages.sh'
} finally {
sh './buildscripts/release.sh && ./buildscripts/cleanCentosContainers.sh'
}
}
| Fix for filename in buildscript. | Fix for filename in buildscript.
| Groovy | mit | blacklabelops/jenkins |
f3e9045bae9ad96b0ced9b41842a7f58ded99b76 | src/templates/artifacts/SimpleJpaDomainClass.groovy | src/templates/artifacts/SimpleJpaDomainClass.groovy | package ${packageName}
import groovy.transform.*
import simplejpa.DomainModel
import javax.persistence.*
import org.hibernate.annotations.Type
import javax.validation.constraints.*
import org.hibernate.validator.constraints.*
import org.joda.time.*
@DomainModel @Entity
@TupleConstructor @ToString
class ${className} {... | package ${packageName}
import groovy.transform.*
import simplejpa.DomainModel
import javax.persistence.*
import org.hibernate.annotations.Type
import javax.validation.constraints.*
import org.hibernate.validator.constraints.*
import org.joda.time.*
@DomainModel @Entity @Canonical
class ${className} {
// Example ... | Replace individual use of @TupleConstructor and @ToString with @Canonical | Replace individual use of @TupleConstructor and @ToString with @Canonical
| Groovy | apache-2.0 | JockiHendry/simple-jpa,JockiHendry/simple-jpa |
26e07f50d08c7728528cffa830de4162ac6e9d9f | scripts/jenkins.groovy | scripts/jenkins.groovy | pipeline
{
agent none
options
{
ansiColor('xterm')
buildDiscarder logRotator(artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10', daysToKeepStr: '30', numToKeepStr: '10')
timestamps()
}
stages
{
stage('Install and Validate')
{
pa... | pipeline
{
agent none
options
{
ansiColor('xterm')
buildDiscarder logRotator(artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10', daysToKeepStr: '30', numToKeepStr: '10')
timestamps()
}
stages
{
stage('Install and Validate')
{
parallel
{
s... | Fix syntax error. Add stage. | Fix syntax error. Add stage.
| Groovy | apache-2.0 | Graylog2/graylog-ansible-role |
154737aee078a0d4a82336e5a01d5d7493c00de9 | reports/ReportsProject.groovy | reports/ReportsProject.groovy | class ReportsProject {
// Plugin information
String title = "Reports"
String description = "Creates reports based on results from the MWS REST API."
String author = "Adaptive Computing Enterprises, Inc."
String website = "http://www.adaptivecomputing.com"
// Versioning properties
String version = "1.5-SNAPSHOT"... | class ReportsProject {
// Plugin information
String title = "Reports"
String description = "Creates reports based on results from the MWS REST API."
String author = "Adaptive Computing Enterprises, Inc."
String website = "http://www.adaptivecomputing.com"
Integer eventComponent = 2
// Versioning properties
Str... | Add event component code to reporting plugins | Add event component code to reporting plugins
| Groovy | apache-2.0 | adaptivecomputing/plugins-mws |
1ab8276ed80c8369cf0608c74532558f3bbbd35a | lib/Parse.groovy | lib/Parse.groovy | class Parse {
static Map defaults(db_name) {
return [
command: "rnac external $db_name",
produces: '*.csv',
directives: [
memory: 2.GB,
tag: db_name,
group: "/rnc/process/$db_name"
]
];
}
static Map build(String db_name, Map spec) {
def data = new Linke... | class Parse {
static Map defaults(db_name) {
return [
command: "rnac external $db_name",
produces: '*.csv',
directives: [
memory: 2.GB,
tag: db_name,
group: "/rnc/process/$db_name"
]
];
}
static Map build(String db_name, Map spec) {
def data = new Linke... | Handle databases with purely default settings | Handle databases with purely default settings
| Groovy | apache-2.0 | RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline |
61a2e6c10db70f0b34b360b58ea435897f63f9aa | site/src/site/sitemap.groovy | site/src/site/sitemap.groovy | menu {
group('sdkman') {
item 'Install', 'install.html'
item 'Usage', 'usage.html'
// item 'API', 'api.html'
item 'Vendors', 'vendors.html'
}
group('Socialize') {
item 'Discuss on Gi... | menu {
group('sdkman') {
item 'Install', 'install.html'
item 'Usage', 'usage.html'
// item 'API', 'api.html'
item 'Vendors', 'vendors.html'
}
group('Socialize') {
item 'Discuss on Gi... | Change status page link, remove graphic. | Change status page link, remove graphic.
| Groovy | apache-2.0 | sdkman/sdkman-website,dmesu/sdkman-website,sdkman/sdkman-website,dmesu/sdkman-website |
a2b1f9c2fd96711f3b960021ccb619582bcaab70 | raml-model/src/test/groovy/io/vrap/rmf/raml/model/resources/ResourceTest.groovy | raml-model/src/test/groovy/io/vrap/rmf/raml/model/resources/ResourceTest.groovy | package io.vrap.rmf.raml.model.resources
import com.damnhandy.uri.template.UriTemplate
import spock.lang.Specification
/**
* Unit tests for {@link Resource}
*/
class ResourceTest extends Specification {
Resource resource
def setup() {
resource = ResourcesFactory.eINSTANCE.createResource()
}
... | package io.vrap.rmf.raml.model.resources
import com.damnhandy.uri.template.UriTemplate
import spock.lang.Specification
/**
* Unit tests for {@link Resource}
*/
class ResourceTest extends Specification {
Resource parentResource
Resource resource
def setup() {
parentResource = ResourcesFactory.eI... | Add one more unit test. | Add one more unit test.
| Groovy | mit | vrapio/rest-modeling-framework,vrapio/rest-modeling-framework |
8a6b9d81b2071a154dd12771ea4b04f1861165fa | src/main/groovy/net/gvmtool/client/GvmClient.groovy | src/main/groovy/net/gvmtool/client/GvmClient.groovy | package net.gvmtool.client
import wslite.http.HTTPClientException
import wslite.rest.RESTClient
final class GvmClient {
static PRODUCTION_API = "http://api.gvmtool.net"
RESTClient restClient
private GvmClient(){}
static GvmClient instance(String apiUrl = PRODUCTION_API){
new GvmClient(rest... | package net.gvmtool.client
import wslite.http.HTTPClientException
import wslite.rest.RESTClient
final class GvmClient {
static final DEFAULT_API = "http://api.gvmtool.net"
RESTClient restClient
private GvmClient(){}
static GvmClient instance(String apiUrl = DEFAULT_API){
new GvmClient(rest... | Rename default api constant and make it final. | Rename default api constant and make it final.
| Groovy | apache-2.0 | gvmtool/gvm-sdk,sdkman/sdkman-java-sdk |
5d5cdabbb9faaf48c7325005b57eea5ea3415c21 | src/test/groovy/ru/d10xa/allure/JunitSpec.groovy | src/test/groovy/ru/d10xa/allure/JunitSpec.groovy | package ru.d10xa.allure
import org.gradle.testkit.runner.GradleRunner
import ru.d10xa.allure.extension.GradlePluginClasspath
import ru.d10xa.allure.extension.TestProjectDir
import spock.lang.Shared
import spock.lang.Specification
import spock.lang.Unroll
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
@U... | package ru.d10xa.allure
import org.gradle.testkit.runner.GradleRunner
import ru.d10xa.allure.extension.GradlePluginClasspath
import ru.d10xa.allure.extension.TestProjectDir
import spock.lang.Shared
import spock.lang.Specification
import spock.lang.Unroll
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
@U... | Decrease number of gradle versions in testKit | Decrease number of gradle versions in testKit
| Groovy | apache-2.0 | d10xa/gradle-allure-plugin,d10xa/gradle-allure-plugin |
5b77adb99fa0e9c45fa84a75b817beaa12eb6260 | src/main/groovy/swing/factory/ComponentFactory.groovy | src/main/groovy/swing/factory/ComponentFactory.groovy | /*
* Copyright 2003-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | /*
* Copyright 2003-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | Fix Java 6 bug with latest SwingBuilder refactoring | Fix Java 6 bug with latest SwingBuilder refactoring
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@8575 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | taoguan/incubator-groovy,pledbrook/incubator-groovy,i55ac/incubator-groovy,paulk-asert/groovy,aaronzirbes/incubator-groovy,ebourg/groovy-core,guangying945/incubator-groovy,tkruse/incubator-groovy,pickypg/incubator-groovy,adjohnson916/incubator-groovy,ChanJLee/incubator-groovy,russel/incubator-groovy,ebourg/groovy-core,... |
ede812e3ae571853bd8b5ed691bf52deb13f1fc5 | src/main/groovy/io/jetpacker/api/configuration/Kit.groovy | src/main/groovy/io/jetpacker/api/configuration/Kit.groovy | package io.jetpacker.api.configuration
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.CompileStatic
/**
* Created by donny on 25/10/16.
*/
@CompileStatic
class Kit extends Software {
List<Kit> extensions
@JsonIgnore
Kit dependency
}
| package io.jetpacker.api.configuration
import com.fasterxml.jackson.annotation.JsonIgnore
import groovy.transform.CompileStatic
/**
* Created by donny on 25/10/16.
*/
@CompileStatic
class Kit extends Software {
String alias
List<Kit> extensions
@JsonIgnore
Kit dependency
} | Add alias because Node extensions sometimes have name that is different than its GitHub's name. | Add alias because Node extensions sometimes have name that is different than its GitHub's name.
| Groovy | mit | jetpacker/jetpacker-api |
dc0c9043a100f5c89eb940e83595ab651d017185 | src/main/groovy/com/github/eerohele/DitaOtPlugin.groovy | src/main/groovy/com/github/eerohele/DitaOtPlugin.groovy | package com.github.eerohele
import org.gradle.api.Project
import org.gradle.api.Plugin
import org.gradle.api.file.FileCollection
class DitaOtPlugin implements Plugin<Project> {
static final String DITA = 'dita'
static final String DITA_OT = 'ditaOt'
FileCollection getClasspath(Project project) {
... | package com.github.eerohele
import org.gradle.api.Project
import org.gradle.api.Plugin
import org.gradle.api.file.FileCollection
class DitaOtPlugin implements Plugin<Project> {
static final String DITA = 'dita'
static final String DITA_OT = 'ditaOt'
Double getCurrentJavaVersion() {
System.getProp... | Print warning if using Java < 8 | Print warning if using Java < 8
| Groovy | apache-2.0 | eerohele/dita-ot-gradle,eerohele/dita-ot-gradle |
8d3018821688b47c6f93b206f5b5f9bc2858cb65 | module/geb-core/src/main/groovy/geb/driver/DriverRegistry.groovy | module/geb-core/src/main/groovy/geb/driver/DriverRegistry.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... | Add support for selecting Edge as the browser using name in configuration | Add support for selecting Edge as the browser using name in configuration
Issue https://github.com/geb/issues/issues/425 | Groovy | apache-2.0 | geb/geb,geb/geb |
1a8708b36c087c68b0fb086aa46a5f6f6a7aa31d | reports/ReportsProject.groovy | reports/ReportsProject.groovy | class ReportsProject {
// Plugin information
String title = "Reports"
String description = "Creates reports based on results from the MWS REST API."
String author = "Adaptive Computing Enterprises, Inc."
String website = "http://www.adaptivecomputing.com"
// Versioning properties
String version = "1.3-SNAPSHOT"... | class ReportsProject {
// Plugin information
String title = "Reports"
String description = "Creates reports based on results from the MWS REST API."
String author = "Adaptive Computing Enterprises, Inc."
String website = "http://www.adaptivecomputing.com"
// Versioning properties
String version = "1.3-SNAPSHOT"... | Set mwsVersion to 7.3 or higher. | Set mwsVersion to 7.3 or higher.
| Groovy | apache-2.0 | adaptivecomputing/plugins-mws |
c458077d86d28f4729a36ad266cd47f2f2231d39 | 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(st... | /*
* 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(st... | Use a socket connection instead of toURL. | Use a socket connection instead of toURL.
| Groovy | mit | rackerlabs/deproxy |
408aaaadf181bfe5d4f9785728601ffbe6e24f4a | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/samples/SamplesJUnitIntegrationTest.groovy | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/samples/SamplesJUnitIntegrationTest.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... | Fix sample dir locations for JUnit samples integration tests | Fix sample dir locations for JUnit samples integration tests
| Groovy | apache-2.0 | gradle/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,r... |
2efb27440354f19c15dcad840b221bd993abb515 | db/migrate/002_release2/007_modify_participants.groovy | db/migrate/002_release2/007_modify_participants.groovy | class ModifyParticipants extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('oracle')) {
execute('ALTER TABLE participants RENAME COLUMN social_security_number TO person_id ')
} else if (databaseMatches('postgresql') {
execute('ALTER TABLE part... | class ModifyParticipants extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches('hsqldb')) {
execute('ALTER TABLE participants ALTER COLUMN social_security_number RENAME TO person_id')
} else {
execute('ALTER TABLE participants RENAME ... | Add special cases for HSQLDB | Add special cases for HSQLDB
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@270 0d517254-b314-0410-acde-c619094fa49f
| Groovy | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror |
969234b7db905b8169b12313060beadc5bdfd87e | src/main/groovy/com/github/jrubygradle/JRubyPluginExtension.groovy | src/main/groovy/com/github/jrubygradle/JRubyPluginExtension.groovy | package com.github.jrubygradle
import org.gradle.api.Incubating
import org.gradle.api.Project
class JRubyPluginExtension {
/** The default version of jruby that will be used by jrubyWar
*
*/
String defaultVersion = '1.7.16'
/** Directory for jrubyPrepare to install .gem dependencies into
*... | package com.github.jrubygradle
import org.gradle.api.Incubating
import org.gradle.api.Project
class JRubyPluginExtension {
/** The default version of jruby that will be used by jrubyWar
*
*/
String defaultVersion = '1.7.15'
/** Directory for jrubyPrepare to install .gem dependencies into
*... | Revert back to 1.7.15 as the default | Revert back to 1.7.15 as the default
See <https://github.com/jruby/jruby/issues/2032>
| Groovy | mit | jamescway/jruby-gradle-plugin,MisumiRize/jruby-gradle-plugin,raelik/jruby-gradle-plugin,raelik/jruby-gradle-plugin,mkristian/jruby-gradle-plugin,jamescway/jruby-gradle-plugin,MisumiRize/jruby-gradle-plugin,raelik/jruby-gradle-plugin,jamescway/jruby-gradle-plugin,MisumiRize/jruby-gradle-plugin,mkristian/jruby-gradle-plu... |
80f8b1ebbc620d5e49f8242570eacf916423f2ab | src/main/groovy/io/jetpacker/api/common/VersionComparator.groovy | src/main/groovy/io/jetpacker/api/common/VersionComparator.groovy | package io.jetpacker.api.common
import org.apache.maven.artifact.versioning.DefaultArtifactVersion
/**
* Created by wolf on 23/11/16.
*/
class VersionComparator implements Comparator<String> {
@Override
int compare(String version1, String version2) {
return new DefaultArtifactVersion(version2)
... | package io.jetpacker.api.common
import org.apache.maven.artifact.versioning.DefaultArtifactVersion
/**
* Created by wolf on 23/11/16.
*/
class VersionComparator implements Comparator<String> {
@Override
int compare(String version1, String version2) {
return new DefaultArtifactVersion(version2) <=> n... | Use spaceship operator instead of compareTo | Use spaceship operator instead of compareTo
| Groovy | mit | jetpacker/jetpacker-api |
fc5911493c44117a87872bf2d4ac95bf99a44c8d | src/test/groovy/com/github/blindpirate/gogradle/support/WithMockGoProcessor.groovy | src/test/groovy/com/github/blindpirate/gogradle/support/WithMockGoProcessor.groovy | package com.github.blindpirate.gogradle.support
import com.github.blindpirate.gogradle.GogradleRunner
import com.github.blindpirate.gogradle.crossplatform.Os
import com.github.blindpirate.gogradle.util.IOUtils
import com.github.blindpirate.gogradle.util.ReflectionUtils
import org.junit.runners.model.FrameworkMethod
c... | package com.github.blindpirate.gogradle.support
import com.github.blindpirate.gogradle.GogradleRunner
import com.github.blindpirate.gogradle.crossplatform.Os
import com.github.blindpirate.gogradle.util.IOUtils
import com.github.blindpirate.gogradle.util.ReflectionUtils
import com.github.blindpirate.gogradle.util.Strin... | Use uniform slash in path | Use uniform slash in path
| Groovy | apache-2.0 | gogradle/gogradle,blindpirate/gogradle,gogradle/gogradle,gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle |
f79b6fa1c28adf86fc0e1a4dc0f88f2b61e3974b | groovy/grails-test/grails-app/domain/langpop/Score.groovy | groovy/grails-test/grails-app/domain/langpop/Score.groovy | package langpop
class Score {
Date date
Integer score
static belongsTo = [lang: Lang,
site: Site]
static constraints = {
}
}
| package langpop
class Score {
Date date
Integer score
static belongsTo = [lang: Lang,
site: Site]
static constraints = {
}
public void setDate(Date date) {
// Remove the time component since we only want the date
this.date = date.clearTime()
}
}
| Remove the time component when saving score dates | Remove the time component when saving score dates
| Groovy | mit | bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.