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 |
|---|---|---|---|---|---|---|---|---|---|
ab4c0a88f82361d3ddfd8725f57af3f2a38f86f8 | src/main/groovy/com/bmuschko/gradle/docker/tasks/AbstractReactiveStreamsTask.groovy | src/main/groovy/com/bmuschko/gradle/docker/tasks/AbstractReactiveStreamsTask.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 internal Gradle Task type with public one | Replace internal Gradle Task type with public one
| Groovy | apache-2.0 | bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin |
a5859602fe936ee104161e61b6101d4b194ef217 | subprojects/plugins/src/integTest/groovy/org/gradle/testing/TestTaskIntegrationTest.groovy | subprojects/plugins/src/integTest/groovy/org/gradle/testing/TestTaskIntegrationTest.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 existing test: should not resolve configuration results when there are no tests | Fix existing test: should not resolve configuration results when there are no tests
We need to resolve the configuration for task dependencies, but we
should not resolve it for results in this case
| Groovy | apache-2.0 | gradle/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,robin... |
88afd4a0dbe69ae405583c9e974c0c727f9e761b | subprojects/scala/src/integTest/groovy/org/gradle/integtests/fixtures/ScalaCoverage.groovy | subprojects/scala/src/integTest/groovy/org/gradle/integtests/fixtures/ScalaCoverage.groovy | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Remove duplicated test coverage from Scala coverage | Remove duplicated test coverage from Scala coverage
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira... |
c2c7a667abb92d870bc64a04100e79f38abb5f8b | importers/src/main/groovy/whelk/importer/DefinitionsImporter.groovy | importers/src/main/groovy/whelk/importer/DefinitionsImporter.groovy | package whelk.importer
import org.codehaus.jackson.map.ObjectMapper
import sun.reflect.generics.reflectiveObjects.NotImplementedException
import whelk.Document
import whelk.IdGenerator
import whelk.Whelk
/**
* Created by markus on 2015-12-10.
*/
class DefinitionsImporter extends Importer {
static final ObjectM... | package whelk.importer
import org.codehaus.jackson.map.ObjectMapper
import sun.reflect.generics.reflectiveObjects.NotImplementedException
import whelk.Document
import whelk.IdGenerator
import whelk.Whelk
/**
* Created by markus on 2015-12-10.
*/
class DefinitionsImporter extends Importer {
static final ObjectM... | Fix ripple effect of proper Document.setId() | Fix ripple effect of proper Document.setId()
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
ed5bcbd923c658a69cdf474ef41abeda222fe683 | allure-report-data/src/test/groovy/ru/yandex/qatools/allure/data/plugins/MigrationPluginTest.groovy | allure-report-data/src/test/groovy/ru/yandex/qatools/allure/data/plugins/MigrationPluginTest.groovy | package ru.yandex.qatools.allure.data.plugins
import org.junit.Test
import ru.yandex.qatools.allure.config.AllureModelUtils
import ru.yandex.qatools.allure.model.SeverityLevel
import ru.yandex.qatools.allure.model.Status
import ru.yandex.qatools.allure.model.TestCaseResult
/**
* eroshenkoam
* 25/02/15
*/
class Mi... | package ru.yandex.qatools.allure.data.plugins
import org.junit.Test
import ru.yandex.qatools.allure.config.AllureModelUtils
import ru.yandex.qatools.allure.model.SeverityLevel
import ru.yandex.qatools.allure.model.Status
import ru.yandex.qatools.allure.model.TestCaseResult
/**
* eroshenkoam
* 25/02/15
*/
class Mi... | Use CRITICAL Severity instead of NORMAL (default) in test | Use CRITICAL Severity instead of NORMAL (default) in test
| Groovy | apache-2.0 | allure-framework/allure-core,allure-framework/allure-core,allure-framework/allure-core,allure-framework/allure1,wuhuizuo/allure-core,allure-framework/allure-core,allure-framework/allure1,wuhuizuo/allure-core,wuhuizuo/allure-core,wuhuizuo/allure-core,allure-framework/allure1,allure-framework/allure1 |
70487c504b5ba42809a34e3df7315dfd047b18cd | whelktool/scripts/cleanups/2022/07/lxl-3303-summary-to-instance.groovy | whelktool/scripts/cleanups/2022/07/lxl-3303-summary-to-instance.groovy | def where = """
collection = 'bib'
AND data['@graph'][1]['instanceOf']['@type'] = '"Text"'
AND data['@graph'][1]['instanceOf']['summary'] IS NOT NULL
AND deleted = false
"""
def badShape = ['@type', 'label', 'language'] as Set
selectBySqlWhere(where) { bib ->
if (bib.graph[0].descriptionCreator == ['@id'... | def where = """
collection = 'bib'
AND data['@graph'][1]['instanceOf']['@type'] = '"Text"'
AND data['@graph'][1]['instanceOf']['summary'] IS NOT NULL
AND deleted = false
"""
def badShape = ['@type', 'label', 'language'] as Set
selectBySqlWhere(where) { bib ->
if (bib.graph[0].descriptionCreator == ['@id'... | Move all summaries without language | Move all summaries without language
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
00604a77c3b7009e88756c5ff0cb4bc69638665a | plugins/git4idea/tests/git4idea/test/GitGTestUtil.groovy | plugins/git4idea/tests/git4idea/test/GitGTestUtil.groovy | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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 agre... | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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 agre... | Fix tests on Windows: change path to system independent | Fix tests on Windows: change path to system independent
| Groovy | apache-2.0 | FHannes/intellij-community,petteyg/intellij-community,caot/intellij-community,diorcety/intellij-community,jagguli/intellij-community,tmpgit/intellij-community,dslomov/intellij-community,asedunov/intellij-community,fitermay/intellij-community,holmes/intellij-community,diorcety/intellij-community,muntasirsyed/intellij-co... |
6147e94f5e721daaf1348ca4b3f71ae8f83ef768 | src/main/groovy/com/wiredforcode/zim/controllers/InvasionController.groovy | src/main/groovy/com/wiredforcode/zim/controllers/InvasionController.groovy | package com.wiredforcode.zim.controllers
import com.wiredforcode.zim.exception.InvaderNotFoundException
import com.wiredforcode.zim.model.Quote
import com.wiredforcode.zim.repos.QuoteRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springfra... | package com.wiredforcode.zim.controllers
import com.wiredforcode.zim.exception.InvaderNotFoundException
import com.wiredforcode.zim.model.Quote
import com.wiredforcode.zim.repos.QuoteRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springfra... | Remove obslete modifier from controller. | Remove obslete modifier from controller.
| Groovy | apache-2.0 | marc0der/zim-service,marcoVermeulen/zim-service |
a3240288b9b373fba44da1c527cc4e6e21ede6db | src/main/groovy/com/gitlab/artismarti/smartsmells/common/Defaults.groovy | src/main/groovy/com/gitlab/artismarti/smartsmells/common/Defaults.groovy | package com.gitlab.artismarti.smartsmells.common
/**
* @author artur
*/
class Defaults {
static def LONG_METHOD = 7
static def LONG_PARAMETER_LIST = 5
static def COMPLEX_METHOD = 10
static def WEIGHTED_METHOD_COUNT = 20
static def ACCESS_TO_FOREIGN_DATA = 4
static def TIED_CLASS_COHESION = 0.33
static def ON... | package com.gitlab.artismarti.smartsmells.common
/**
* @author artur
*/
class Defaults {
static int LONG_METHOD = 7
static int LONG_PARAMETER_LIST = 5
static int COMPLEX_METHOD = 10
static int WEIGHTED_METHOD_COUNT = 20
static int ACCESS_TO_FOREIGN_DATA = 4
static double TIED_CLASS_COHESION = 0.33
static bo... | Change defaults values from def to corresponding type | Change defaults values from def to corresponding type
| Groovy | apache-2.0 | arturbosch/SmartSmells,arturbosch/SmartSmells |
79287bfbfa84936b2e3a1671066123a15c6772bb | job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/Permissions.groovy | job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/Permissions.groovy | package javaposse.jobdsl.dsl.helpers
enum Permissions {
ItemConfigure('hudson.model.Item.Configure'),
ItemWorkspace('hudson.model.Item.Workspace'),
ItemDelete('hudson.model.Item.Delete'),
ItemBuild('hudson.model.Item.Build'),
ItemRead('hudson.model.Item.Read'),
ItemDiscover('hudson.model.Item.D... | package javaposse.jobdsl.dsl.helpers
enum Permissions {
ItemDelete('hudson.model.Item.Delete'),
ItemConfigure('hudson.model.Item.Configure'),
ItemRead('hudson.model.Item.Read'),
ItemDiscover('hudson.model.Item.Discover'),
ItemBuild('hudson.model.Item.Build'),
ItemWorkspace('hudson.model.Item.Wo... | Reorder enums to reflect ordering in the Jenkins GUI | Reorder enums to reflect ordering in the Jenkins GUI
This is more of a readability enhancement which could potentially be useful in the event that other permissions are added to Jenkins in the future.
| Groovy | apache-2.0 | anbreen/job-dsl-plugin,mmitche/job-dsl-plugin,arcivanov/job-dsl-plugin,smoyen/job-dsl-plugin,marcesher/job-dsl-plugin,jenkinsci/job-dsl-plugin,khuongdp/job-dsl-plugin,smoyen/job-dsl-plugin,kjmkznr/job-dsl-plugin,Tyrael/job-dsl-plugin,gjacquet/job-dsl-plugin,acceleanu/job-dsl-plugin,criteo-forks/job-dsl-plugin,gjacquet/... |
e274e7b3d81099210821f4bafc2cd8f73a4bb2e8 | src/test/groovy/io/gitlab/arturbosch/smartsmells/smells/longparam/LongParameterListTest.groovy | src/test/groovy/io/gitlab/arturbosch/smartsmells/smells/longparam/LongParameterListTest.groovy | package io.gitlab.arturbosch.smartsmells.smells.longparam
import io.gitlab.arturbosch.jpal.ast.source.SourcePath
import io.gitlab.arturbosch.jpal.ast.source.SourceRange
import io.gitlab.arturbosch.smartsmells.common.Test
import io.gitlab.arturbosch.smartsmells.smells.ElementTarget
import spock.lang.Specification
/**
... | package io.gitlab.arturbosch.smartsmells.smells.longparam
import io.gitlab.arturbosch.jpal.ast.source.SourcePath
import io.gitlab.arturbosch.jpal.ast.source.SourceRange
import io.gitlab.arturbosch.smartsmells.common.Test
import io.gitlab.arturbosch.smartsmells.smells.ElementTarget
import spock.lang.Specification
/**
... | Fix absolute path testing in long parameter list test | Fix absolute path testing in long parameter list test
| Groovy | apache-2.0 | arturbosch/SmartSmells,arturbosch/SmartSmells |
4f439cb280bb25ac601381c8dc38056908d151cb | subprojects/snapshots/src/test/groovy/org/gradle/internal/snapshot/VirtualFileSystemTestSpec.groovy | subprojects/snapshots/src/test/groovy/org/gradle/internal/snapshot/VirtualFileSystemTestSpec.groovy | /*
* Copyright 2019 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 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Use actual PathSuffix for VFSTestSpec | Use actual PathSuffix for VFSTestSpec
| Groovy | apache-2.0 | blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpira... |
e0fd3ff6cbdb9c70c05039e8a10cfcefbe039288 | modules/gradle-base/src/main/groovy/org/ajoberstar/semver/vcs/gradle/SemverExtension.groovy | modules/gradle-base/src/main/groovy/org/ajoberstar/semver/vcs/gradle/SemverExtension.groovy | package org.ajoberstar.semver.vcs.gradle
import org.ajoberstar.semver.vcs.Scope
import org.ajoberstar.semver.vcs.Stage
import org.ajoberstar.semver.vcs.Vcs
import org.ajoberstar.semver.vcs.Versioner
import java.util.function.Supplier
class SemverExtension {
Supplier<Versioner> versionerSupplier
Vcs vcs
... | package org.ajoberstar.semver.vcs.gradle
import org.ajoberstar.semver.vcs.Scope
import org.ajoberstar.semver.vcs.Stage
import org.ajoberstar.semver.vcs.Vcs
import org.ajoberstar.semver.vcs.Versioner
import java.util.function.Supplier
class SemverExtension {
Supplier<Versioner> versionerSupplier
Vcs vcs
... | Add a more friendly setter for stages. | Add a more friendly setter for stages.
| Groovy | apache-2.0 | ajoberstar/reckon,ajoberstar/semver-vcs,ajoberstar/reckon,ajoberstar/semver-vcs |
1b07de621315ed429f69240aa37142646150e952 | 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')
{
parallel
{
s... | pipeline
{
agent none
options
{
ansiColor('xterm')
buildDiscarder logRotator(artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10', daysToKeepStr: '30', numToKeepStr: '10')
timestamps()
}
stages
{
stage('Install and Validate')
{
parallel
{
s... | Add more OS's and stages. | Add more OS's and stages.
| Groovy | apache-2.0 | Graylog2/graylog-ansible-role |
0eed51c118324aebad8eb12cdc992838113ead78 | 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.resolver = 'maven'
grails.project.dependency.resolution = {
inherits('global') {
}
log 'warn'
repositories {
grail... | grails.project.class.dir = 'target/classes'
grails.project.test.class.dir = 'target/test-classes'
grails.project.test.reports.dir = 'target/test-reports'
grails.project.dependency.resolver = 'maven'
grails.project.dependency.resolution = {
inherits('global') {
}
log 'warn'
repositories {
grail... | Upgrade to Grails Spring Security OAuth 2.1.0-RC2. | Upgrade to Grails Spring Security OAuth 2.1.0-RC2.
| Groovy | apache-2.0 | donbeave/grails-spring-security-oauth-google |
8f46d18507d53ef83d6040f375f76c4c25baf8d0 | src/test/groovy/xml/StreamingMarkupTest.groovy | src/test/groovy/xml/StreamingMarkupTest.groovy | package org.codehaus.groovy.sandbox.markup
/**
* This test uses the concise syntax to test the building of
* textual markup (XML or HTML) using GroovyMarkup
*/
class MarkupTest extends groovy.xml.TestXmlSupport {
void testSmallTree() {
b = new StreamingMarkupBuilder()
m = {
... | package org.codehaus.groovy.sandbox.markup
/**
* This test uses the concise syntax to test the building of
* textual markup (XML or HTML) using GroovyMarkup
*/
class StreamingMarkupTest extends groovy.xml.TestXmlSupport {
void testSmallTree() {
b = new StreamingMarkupBuilder()
m =... | Change the name of the class to match the name of the file | Change the name of the class to match the name of the file
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@1018 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | adjohnson916/groovy-core,bsideup/groovy-core,paulk-asert/groovy,nobeans/incubator-groovy,ebourg/incubator-groovy,taoguan/incubator-groovy,mariogarcia/groovy-core,apache/groovy,kidaa/incubator-groovy,samanalysis/incubator-groovy,pickypg/incubator-groovy,shils/incubator-groovy,upadhyayap/incubator-groovy,ebourg/incubator... |
56495fe830fd5b66ed506ca30864f83f9188b383 | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InstantExecutionGradleExecuter.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InstantExecutionGradleExecuter.groovy | /*
* Copyright 2019 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 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Use daemon executer for :instantIntegTest | Use daemon executer for :instantIntegTest
As many tests don't behave on CI with OOMEs hanging builds and
UOEs "Cannot restore previous console" at OutputEventRenderer.java:107
Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpira... |
5722783f73b0f14aae59adc505f04b42b063062a | vars/jplConfig.groovy | vars/jplConfig.groovy | /**
Global config variables
*/
class jplConfig implements Serializable {
// Public properties (config values)
public String laneName
public String versionSuffix
public String targetPlatform
// Maybe can't use local variables because it's serializable (?)
private String branchName
d... | /**
Global config variables
*/
class jplConfig implements Serializable {
// Public properties (config values)
public String laneName
public String versionSuffix
public String targetPlatform
// Maybe can't use local variables because it's serializable (?)
private String branchName
d... | Remove unsigned jenkins method echo | Remove unsigned jenkins method echo
| Groovy | mit | red-panda-ci/jenkins-pipeline-library,pedroamador/jenkins-pipeline-library |
4975e091e2ff0e36eddc48d5336d47d6e99d8110 | src/main/templates/FunctionalSpec.groovy | src/main/templates/FunctionalSpec.groovy | package ${packageName}
import grails.test.mixin.integration.Integration
import grails.transaction.*
import spock.lang.*
import geb.spock.*
/**
* See http://www.gebish.org/manual/current/ for more instructions
*/
@Integration
@Rollback
class ${className}Spec extends GebSpec {
def setup() {
}
def clean... | package ${packageName}
import grails.test.mixin.integration.Integration
import grails.transaction.*
import spock.lang.*
import geb.spock.*
/**
* See http://www.gebish.org/manual/current/ for more instructions
*/
@Integration
@Rollback
class ${className}Spec extends GebSpec {
def setup() {
}
def clean... | Use "title" instead of expression | Use "title" instead of expression | Groovy | apache-2.0 | grails3-plugins/geb |
75d5fe226bac3ab86e2949498dfb59dbc7ecd643 | JesqueWebGrailsPlugin.groovy | JesqueWebGrailsPlugin.groovy | import net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
import net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
import net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl
import net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
class JesqueWebGrailsPlugin {
// the plugin version
def v... | import net.greghaines.jesque.meta.dao.impl.QueueInfoDAORedisImpl
import net.greghaines.jesque.meta.dao.impl.FailureDAORedisImpl
import net.greghaines.jesque.meta.dao.impl.KeysDAORedisImpl
import net.greghaines.jesque.meta.dao.impl.WorkerInfoDAORedisImpl
class JesqueWebGrailsPlugin {
// the plugin version
def v... | Change primary repository to github | Change primary repository to github
| Groovy | apache-2.0 | michaelcameron/grails-jesque-web |
c44d9078883c7dddac162404382cca5cad4edec1 | src/test/groovy/gql/test/util/Queries.groovy | src/test/groovy/gql/test/util/Queries.groovy | package gql.test.util
import groovy.json.JsonSlurper
import graphql.schema.DataFetchingEnvironment
class Queries {
@SuppressWarnings('UnusedMethodParameter')
static Map<String,Object> findLastFilm(DataFetchingEnvironment env) {
def datasetPath = SystemResources.classpath('data/bond.json')
def datasetData... | package gql.test.util
import groovy.json.JsonSlurper
import graphql.schema.DataFetchingEnvironment
import groovy.util.logging.Slf4j
@Slf4j
class Queries {
@SuppressWarnings('UnusedMethodParameter')
static Map<String,Object> findLastFilm(DataFetchingEnvironment env) {
def datasetPath = SystemResources.classpa... | Use log instead of println | Use log instead of println
| Groovy | apache-2.0 | grooviter/gql,grooviter/gql,grooviter/gql |
cd65ecf4b97d4228afad77e056da2b642a0f5f0b | grails-app/conf/LoadingFilters.groovy | grails-app/conf/LoadingFilters.groovy | /*
* Copyright 2012 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2012 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Allow cache view during server loading | Allow cache view during server loading
| Groovy | apache-2.0 | jeffbrown/asgard,rudymccomb/asgard,Eagles2F/asgard,domix/asgard,sensaid/asgard,themucha/asgard,jon077/asgard,syllaibr64/asgard,rapid7/asgard,jeffbrown/asgard,beamly/asgard,jon077/asgard,domix/asgard,rudymccomb/asgard,boomtrain/asgard,rapid7/asgard,jon077/asgard,syllaibr64/asgard,beamly/asgard,ccortezb/asgard,PicnicBask... |
2d8f66e3c5f80439e05ba97808a487bc2a7aa5f0 | spring-boot-cli/samples/jms.groovy | spring-boot-cli/samples/jms.groovy | package org.test
@Grab("org.apache.activemq:activemq-all:5.4.0")
@Grab("activemq-pool")
import java.util.concurrent.CountDownLatch
@Log
@Configuration
@EnableJmsMessaging
class JmsExample implements CommandLineRunner {
private CountDownLatch latch = new CountDownLatch(1)
@Autowired
JmsTemplate jmsTemplate
@Bea... | package org.test
@Grab("org.apache.activemq:activemq-all:5.4.0")
@Grab("activemq-pool")
import java.util.concurrent.CountDownLatch
@Log
@Configuration
@EnableJmsMessaging
class JmsExample implements CommandLineRunner {
private CountDownLatch latch = new CountDownLatch(1)
@Autowired
JmsTemplate jmsTemplate
@Bea... | Add more JMS sample log output | Add more JMS sample log output
| Groovy | apache-2.0 | xwjxwj30abc/spring-boot,mackeprm/spring-boot,cbtpro/spring-boot,designreuse/spring-boot,afroje-reshma/spring-boot-sample,master-slave/spring-boot,xwjxwj30abc/spring-boot,michael-simons/spring-boot,mebinjacob/spring-boot,mabernardo/spring-boot,mackeprm/spring-boot,mouadtk/spring-boot,raiamber1/spring-boot,lingounet/spri... |
01821ae899951555c84a732003366e1572474917 | src/test/groovy/DownUpStepTest.groovy | src/test/groovy/DownUpStepTest.groovy | public class DownUpStepTest extends GroovyTestCase {
void testDownto() {
z = 0.0
(10.5).downto(5.9) { z += it }
assert z == 10.5 + 9.5 + 8.5 + 7.5 + 6.5
assert z == 42.5
}
void testUpto() {
z = 0.0
(3.1).upto(7.2) { z += it }
assert z == 3.1 + 4.1 + 5... | public class DownUpStepTest extends GroovyTestCase {
void testDownto() {
z = 0.0
(10.5).downto(5.9) { z += it }
assert z == 10.5 + 9.5 + 8.5 + 7.5 + 6.5
assert z == 42.5
}
void testUpto() {
z = 0.0
(3.1).upto(7.2) { z += it }
assert z == 3.1 + 4.1 + 5... | Change the demo script for testing methods: upto, downto, and step. | Change the demo script for testing methods: upto, downto, and step.
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@2154 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | dpolivaev/groovy,groovy/groovy-core,shils/incubator-groovy,nobeans/incubator-groovy,alien11689/incubator-groovy,ebourg/incubator-groovy,rlovtangen/groovy-core,apache/incubator-groovy,jwagenleitner/groovy,rabbitcount/incubator-groovy,samanalysis/incubator-groovy,jwagenleitner/groovy,alien11689/groovy-core,traneHead/groo... |
5d3c4c2ff3ed1a14c9e33d86ff838027b8e87544 | 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')
{
parallel
{
s... | pipeline
{
agent none
options
{
ansiColor('xterm')
buildDiscarder logRotator(artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10', daysToKeepStr: '30', numToKeepStr: '10')
timestamps()
}
stages
{
stage('Install and Validate')
{
parallel
{
s... | Move stage inside parallel block. | Move stage inside parallel block.
| Groovy | apache-2.0 | Graylog2/graylog-ansible-role |
23d14c93d28d656fcbfced9dc033c53a59563c5f | subprojects/problems/src/testFixtures/groovy/org/gradle/problems/Closures.groovy | subprojects/problems/src/testFixtures/groovy/org/gradle/problems/Closures.groovy | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Fix compilation error in ProblemsVerifier | Fix compilation error in ProblemsVerifier
| Groovy | apache-2.0 | blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,grad... |
9c37afcea0f62501e92dbba784ffe02c84b7c5c4 | 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: 'clearfix', "© 2012-${Calendar.instance[Calendar.YEAR]} SDKman/GVM is Open Source Software licensed under ${$a(href: 'http://www.apache.org/licenses/LICENSE-2.0.html', 'Apache 2')}")
}
} | Remove sitemap from page footer. | Remove sitemap from page footer.
| Groovy | apache-2.0 | rahulsom/sdkman-website,dmesu/sdkman-website,sdkman/sdkman-website,sdkman/sdkman-website,rahulsom/sdkman-website,dmesu/sdkman-website |
9024537b1411df3b197cd2769c3695e2bfc164fb | apps/xap9x-tiny/xap9x-tiny-application.groovy | apps/xap9x-tiny/xap9x-tiny-application.groovy | /*******************************************************************************
* Copyright (c) 2012 GigaSpaces Technologies Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lic... | /*******************************************************************************
* Copyright (c) 2012 GigaSpaces Technologies Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lic... | Update xap9x-tiny app: butterfly dependsOn xap-container instead of xap-management | Update xap9x-tiny app: butterfly dependsOn xap-container instead of xap-management
| Groovy | apache-2.0 | ngkim/cloudify-recipes,ngkim/cloudify-recipes,CloudifySource/cloudify-recipes,ngkim/cloudify-recipes,CloudifySource/cloudify-recipes,CloudifySource/cloudify-recipes,CloudifySource/cloudify-recipes,ngkim/cloudify-recipes,ngkim/cloudify-recipes,ngkim/cloudify-recipes,ngkim/cloudify-recipes,CloudifySource/cloudify-recipes... |
e9c12fbe97bbe2bfc2921846e623b281ee02a7a5 | grails-app/conf/spring/resources.groovy | grails-app/conf/spring/resources.groovy | /*
* OpenSpeedMonitor (OSM)
* Copyright 2014 iteratec GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | /*
* OpenSpeedMonitor (OSM)
* Copyright 2014 iteratec GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Revert " replace deprecated beans" | Revert " replace deprecated beans"
This reverts commit cad0393b9bbe38f6642337a77a762cfeb62bbb81.
| Groovy | apache-2.0 | IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor |
9608ea347ff5a5e898ea62b267acfaabe41ec2b8 | src/main/groovy/whelk/converter/marc/MarcFrameCli.groovy | src/main/groovy/whelk/converter/marc/MarcFrameCli.groovy | package whelk.converter.marc
List fpaths
def cmd = "convert"
if (args.length > 1) {
cmd = args[0]
fpaths = args[1..-1]
} else {
fpaths = args[0..-1]
}
def converter = new MarcFrameConverter()
for (fpath in fpaths) {
def source = converter.mapper.readValue(new File(fpath), Map)
def result = null... | package whelk.converter.marc
import whelk.component.PostgreSQLComponent
import whelk.filter.LinkFinder
List fpaths
def cmd = "convert"
if (args.length > 1) {
cmd = args[0]
fpaths = args[1..-1]
} else {
fpaths = args[0..-1]
}
def converter = new MarcFrameConverter()
def addLinkFinder(converter) {
i... | Add support use of local LinkFinder if oaipmhSetSpecs are given in the input | Add support use of local LinkFinder if oaipmhSetSpecs are given in the input
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
b7cc8259b232dcb8e4a48d475ab01cd52a73a093 | rundeckapp/repository/grails-app/init/repository/BootStrap.groovy | rundeckapp/repository/grails-app/init/repository/BootStrap.groovy | package repository
class BootStrap {
RepositoryPluginService repositoryPluginService
def grailsApplication
def init = { servletContext ->
boolean enabled = grailsApplication.config.rundeck.features.repository.enabled in [true, 'true']
boolean sync = grailsApplication.config.rundeck.feature... | package repository
class BootStrap {
RepositoryPluginService repositoryPluginService
def grailsApplication
def init = { servletContext ->
boolean enabled = grailsApplication.config.rundeck.features.repository.enabled in [true, 'true']
boolean sync = grailsApplication.config.rundeck.feature... | Update log level for bootstrap message. | Update log level for bootstrap message.
| Groovy | apache-2.0 | rundeck/rundeck,rundeck/rundeck,rundeck/rundeck,rundeck/rundeck,rundeck/rundeck,variacode/rundeck,variacode/rundeck,variacode/rundeck,variacode/rundeck,variacode/rundeck |
97ae3a9760d2e78896b8efa16b653adaa0c76ce3 | spock-grails/grails-app/conf/BuildConfig.groovy | spock-grails/grails-app/conf/BuildConfig.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 applicab... | /*
* 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 applicab... | Trim repository list for grails plugin, and correct dependency on spock-grails-support | Trim repository list for grails plugin, and correct dependency on spock-grails-support
| Groovy | apache-2.0 | sebi-hgdata/spock,paplorinc/spock,Fuud/spock,psideleau/spock,paplorinc/spock,GeeChao/spock,siordache/spock,GeeChao/spock,spockframework/spock,alien11689/spock,sebi-hgdata/spock,GeeChao/spock,raphw/spock,psideleau/spock,Fuud/spock,lokinell/spock,paplorinc/spock,sebi-hgdata/spock,siordache/spock,lokinell/spock,lokinell/s... |
a5b16b7a50d2dd1cef649416833355fb0b14e64d | src/main/groovy/com/github/alexfu/Version.groovy | src/main/groovy/com/github/alexfu/Version.groovy | package com.github.alexfu
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
class Version {
private int buildNumber = 1
private int patch = 0
private int minor = 0
private int major = 0
private File file
Version(File file) {
if (file.exists()) {
def json = new J... | package com.github.alexfu
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
class Version {
private int buildNumber = 1
private int patch = 0
private int minor = 0
private int major = 0
private File file
Version(File file) {
this.file = file
if (file.exists()) {
... | Fix initial creating of version file. | Fix initial creating of version file.
| Groovy | mit | alexfu/androidautoversion |
e3541270de65ecbde29b2c24a2a91f262c0ffe11 | create_subjobs.groovy | create_subjobs.groovy | // add a useless comment to trigger a diff to trigger a commit to trigger a PR to trigger a mass rebuild
def PackagesFile = new File('/var/lib/jenkins/jobs/Arch Package Builder/workspace/aur-packages')
PackagesFile.eachLine { line ->
packageName = line.trim()
job("Arch_Package_${packageName}") {
description("Th... | // add a useless comment to trigger a diff to trigger a commit to trigger a PR to trigger a mass rebuild
readFileFromWorkspace('aur-packages').eachLine { line ->
packageName = line.trim()
job("Arch_Package_${packageName}") {
description("This Job builds the ${packageName} package for archlinux")
concurrentB... | Use readFileFrom workspace instead of fix path | Use readFileFrom workspace instead of fix path
| Groovy | agpl-3.0 | virtapi/arch-package-builder,virtapi/arch-package-builder,virtapi/arch-package-builder |
ab1dbe4feb73ed8e765bd1d02c8bd5c777858805 | test/unit/dsa/held/TalentTests.groovy | test/unit/dsa/held/TalentTests.groovy | package dsa.held
import grails.test.*
class TalentTests extends GrailsUnitTestCase {
protected void setUp() {
super.setUp()
}
protected void tearDown() {
super.tearDown()
}
void testSomething() {
}
}
| package dsa.held
import java.util.List;
import dsa.Quelle;
import dsa.steigerung.SKT;
import grails.test.*
class TalentTests extends GrailsUnitTestCase {
protected void setUp() {
super.setUp()
mockDomain(Talent)
}
protected void tearDown() {
super.tearDown()
}
void testGetByTyp() {
createTalent("Akro... | Test für Finder für Typ | Test für Finder für Typ | Groovy | agpl-3.0 | mvonrenteln/dsa-steigerung,mvonrenteln/dsa-steigerung |
0f774897fd733d9b4bd0b484289a177d58e9a2b6 | gradle-util/src/main/groovy/net/elehack/gradle/util/GnuPGSignatory.groovy | gradle-util/src/main/groovy/net/elehack/gradle/util/GnuPGSignatory.groovy | package net.elehack.gradle.util
import org.gradle.api.Project
import org.gradle.plugins.signing.signatory.SignatorySupport
import org.gradle.plugins.signing.signatory.pgp.PgpKeyId
/**
* Signatory using GnuPG command-line tool.
*/
class GnuPGSignatory extends SignatorySupport {
private Project project
privat... | package net.elehack.gradle.util
import org.gradle.api.Project
import org.gradle.plugins.signing.signatory.SignatorySupport
import org.gradle.plugins.signing.signatory.pgp.PgpKeyId
import org.slf4j.Logger
import org.slf4j.LoggerFactory
/**
* Signatory using GnuPG command-line tool.
*/
class GnuPGSignatory extends Si... | Add logging to GnuPG signatory. | Add logging to GnuPG signatory.
| Groovy | bsd-3-clause | mdekstrand/gradle-plugins,mdekstrand/gradle-plugins |
d34138e8de7b11458db1d496c0c41716dce95d6c | tvarkau-vilniu/src/main/groovy/lt/vilnius/tvarkau/user/UserResource.groovy | tvarkau-vilniu/src/main/groovy/lt/vilnius/tvarkau/user/UserResource.groovy | package lt.vilnius.tvarkau.user
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import static org.springframework.web.bind.annotation.RequestMethod.GET
@RestController(value = '/user')
class UserResource {
@RequestMapping(method = GET, ... | package lt.vilnius.tvarkau.user
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import static org.springframework.web.bind.annotation.RequestMethod.GET
@RestController
@RequestMapping(path = '/user')
class UserResource {
@RequestMapping... | Use relative path for method mappings | Use relative path for method mappings
| Groovy | mit | vilnius/tvarkau-vilniu-ms,vilnius/tvarkau-vilniu-ms,vilnius/tvarkau-vilniu-ms |
d511a80e63399b73c66a5527ece0ef434fc3a621 | JcaptchaGrailsPlugin.groovy | JcaptchaGrailsPlugin.groovy | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | Set the version to 1.3-SNAPSHOT | Set the version to 1.3-SNAPSHOT
| Groovy | apache-2.0 | candrews/grails-jcaptcha-plugin |
48ef9e4dbac8d11c60db66e1549fd11d19d9cddd | 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... | Fix test matrix method name. | Fix test matrix method name.
| Groovy | apache-2.0 | rackn/container-networking-ansible,Juniper/container-networking-ansible,rackn/container-networking-ansible,Juniper/container-networking-ansible |
cbf82e7d73523320aa984b0e63bf2eb4be8576c0 | accurest-core/src/main/groovy/io/coderate/accurest/FileSaver.groovy | accurest-core/src/main/groovy/io/coderate/accurest/FileSaver.groovy | package io.coderate.accurest
import groovy.transform.CompileStatic
import io.coderate.accurest.config.TestFramework
import io.coderate.accurest.util.NamesUtil
import java.nio.file.Files
import java.nio.file.Paths
import java.nio.file.StandardOpenOption
import static io.coderate.accurest.util.NamesUtil.capitalize
@C... | package io.coderate.accurest
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
import io.coderate.accurest.config.TestFramework
import io.coderate.accurest.util.NamesUtil
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import java.nio.file.StandardOpenOption
impor... | Add logging what class files were generated | Add logging what class files were generated
| Groovy | apache-2.0 | tdziurko/accurest,pfrank13/spring-cloud-contract,spring-cloud/spring-cloud-contract,spring-cloud/spring-cloud-contract,dstepanov/accurest,spring-cloud/spring-cloud-contract,spencergibb/accurest,Codearte/accurest,dstepanov/accurest,pfrank13/spring-cloud-contract,4finance/accurest,Codearte/accurest |
ba6388f7f8225b06442c8d7645759ddf6467eabb | groovy/reboot_agents.groovy | groovy/reboot_agents.groovy | /*
* DSL script for package builder Jenkins jobs
*/
def agents = "autopackager-1 autopackager-2 autopackager-4"
pipelineJob('reboot-agents') {
description '''
<p>Reboot packaging agents once a day.</p>
<p>The job is created by the DSL plugin from <i>reboot_agents.groovy</i> script.</p>
'''
logRotator(365, 100, 1... | /*
* DSL script for package builder Jenkins jobs
*/
def agents = "autopackager-1 || autopackager-2 || autopackager-4"
pipelineJob('reboot-agents') {
description '''
<p>Reboot packaging agents once a day.</p>
<p>The job is created by the DSL plugin from <i>reboot_agents.groovy</i> script.</p>
'''
logRotator(365, ... | Fix agents for reboot-agents script | Fix agents for reboot-agents script
Change-Id: I0c0bd11f2a907606672bbe6e5078d85603dd433b
| Groovy | mit | sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts |
741c3396bd8f03eca636cb35ca906215cc4c0c87 | src/main/groovy/jetpacker/api/service/TaskService.groovy | src/main/groovy/jetpacker/api/service/TaskService.groovy | package jetpacker.api.service
import org.springframework.stereotype.Service
/**
* Created by wolf on 30/10/16.
*/
@Service
class TaskService {
}
| package jetpacker.api.service
import com.github.zafarkhaja.semver.Version
import groovy.transform.CompileStatic
import jetpacker.api.configuration.Endpoint
import jetpacker.api.configuration.JetpackerProperties
import jetpacker.api.configuration.Kit
import jetpacker.api.configuration.Releases
import org.springframewor... | Add static compilation. Add Scheduler that updates cache every 30 seconds. Add getSdkManCandidates that returns list of kits. | Add static compilation.
Add Scheduler that updates cache every 30 seconds.
Add getSdkManCandidates that returns list of kits.
| Groovy | mit | jetpacker/jetpacker-api |
081352842db08a82c7efa459e7d2c070aa266d94 | grails-app/conf/DataSource.groovy | grails-app/conf/DataSource.groovy | dataSource {
pooled = true
driverClassName = "org.hsqldb.jdbcDriver"
username = "sa"
password = ""
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = true
cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments... | dataSource {
pooled = true
driverClassName = "org.h2.Driver"
username = "sa"
password = ""
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = true
cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
d... | Upgrade to Grails 2.0 standard H2 database | Upgrade to Grails 2.0 standard H2 database | Groovy | apache-2.0 | sronderos/grails-multi-tenant-single-db,pandeybk/grails-multi-tenant-single-db,multi-tenant/grails-multi-tenant-single-db |
22af0e6dde0b306098bc1813611ba1c3f3c18274 | groovy/pbuilder-jobs.groovy | groovy/pbuilder-jobs.groovy | /*
* DSL script for package builder Jenkins jobs
*/
job {
name 'PBuilder_Update-Linux-all-master-debug';
description '''
<p>Maintenance job that updates all chroot instances for pbuilder</p>
<p>The job is created by the DSL plugin from <i>pbuilder-jobs.groovy</i> script.</p>
''';
label 'packager';
logRo... | /*
* DSL script for package builder Jenkins jobs
*/
job {
name 'PBuilder_Update-Linux-all-master-debug';
description '''
<p>Maintenance job that updates all chroot instances for pbuilder</p>
<p>The job is created by the DSL plugin from <i>pbuilder-jobs.groovy</i> script.</p>
''';
label 'packager';
logRo... | Update utopic pbuilder chroot as well | Update utopic pbuilder chroot as well
Change-Id: I3c31427d7d420abbaf73be5abfe435cd93f2f921
| Groovy | mit | sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts |
2af1561442a1fc339082a8b447abb5b9aa07fd95 | src/functional/groovy/RunCukes.groovy | src/functional/groovy/RunCukes.groovy | import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith
@RunWith(Cucumber)
@Cucumber.Options(
format=["pretty", "html:build/reports/cucumber"],
strict=true,
features=["features"],
glue=["src/functional/steps"],
tags = ["~@ignore"]
)
class RunCukes {}
| import cucumber.api.CucumberOptions
import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith
@RunWith(Cucumber)
@CucumberOptions(
format=["pretty", "html:build/reports/cucumber"],
strict=true,
features=["features"],
glue=["src/functional/steps"],
tags = ["~@ignore"]
)
class RunCukes {}
| Use Cucumber Options instead of Cucumber.Options annotation. | Use Cucumber Options instead of Cucumber.Options annotation.
| Groovy | apache-2.0 | marc0der/zim-service,marcoVermeulen/zim-service |
d3979b41afe3cce9af958511efac3f2c2a9b77cd | core/src/main/java/brooklyn/entity/basic/Attributes.groovy | core/src/main/java/brooklyn/entity/basic/Attributes.groovy | package brooklyn.entity.basic
import brooklyn.event.basic.BasicAttributeSensor
import brooklyn.event.basic.BasicConfigKey;
/**
* This interface should be used to access {@link Sensor} definitions.
*/
public interface Attributes {
/*
* Application information sensors.
*/
BasicAttributeSensor<Integ... | package brooklyn.entity.basic
import java.util.List
import brooklyn.event.Sensor
import brooklyn.event.basic.BasicAttributeSensor
import brooklyn.event.basic.BasicConfigKey;
/**
* This interface should be used to access {@link Sensor} definitions.
*/
public interface Attributes {
/*
* Application informat... | Add more generic attribute sensors | Add more generic attribute sensors
| Groovy | apache-2.0 | andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,neykov/in... |
95a8927fd5be5689f03757d52c98e528424ad609 | wordpress/scripts/config_wordpress_for_mysql.groovy | wordpress/scripts/config_wordpress_for_mysql.groovy | import org.cloudifysource.utilitydomain.context.ServiceContextFactory
import java.util.concurrent.TimeUnit
context = ServiceContextFactory.getServiceContext()
evaluate(new File("${context.serviceDirectory}/scripts/chmod-init.groovy"))
builder = new AntBuilder()
def config = new ConfigSlurper().parse(new File("${conte... | import org.cloudifysource.utilitydomain.context.ServiceContextFactory
import java.util.concurrent.TimeUnit
context = ServiceContextFactory.getServiceContext()
evaluate(new File("${context.serviceDirectory}/scripts/chmod-init.groovy"))
builder = new AntBuilder()
def config = new ConfigSlurper().parse(new File("${conte... | Increase the time up of wordpress | Increase the time up of wordpress
| Groovy | apache-2.0 | alien4cloud/samples,alien4cloud/samples,alien4cloud/samples,alien4cloud/samples |
b66c06cdc6fd957fbee8cb1cf6a9517615c0f9eb | sakura/jenkins-jobs/src/jobs/dowwner.groovy | sakura/jenkins-jobs/src/jobs/dowwner.groovy | String basePath = 'dowwner'
String repo = '10sr/dowwner'
folder(basePath) {
description 'Dowwner job folder.'
}
job("$basePath/dowwner-check") {
scm {
github repo
}
// triggers {
// scm 'H/15 * * * *'
// }
steps {
shell 'make installdeps check'
}
}
job("$basePath/d... | String basePath = 'dowwner'
String repo = '10sr/dowwner'
folder(basePath) {
description 'Dowwner job folder.'
}
job("$basePath/dowwner-check") {
scm {
github repo, 'refs/heads/master'
}
triggers {
scm 'H/15 * * * *'
}
steps {
shell 'make installdeps check'
}
}
job(... | Enable triggers and use refs/heads/master only | Enable triggers and use refs/heads/master only
| Groovy | unlicense | 10sr/machine-setups,10sr/server-provisions,10sr/machine-setups,10sr/machine-setups,10sr/machine-setups,10sr/server-provisions |
bfec1a29629a095d91ab3752a6d26f2b650eb8c6 | examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.groovy | examples/monitored-cassandra-cluster/src/main/java/brooklyn/demo/MonitoredCassandraClusterExample.groovy | package brooklyn.demo
import java.util.List
import brooklyn.entity.basic.AbstractApplication
import brooklyn.entity.nosql.cassandra.CassandraNode
import brooklyn.location.Location
/** Cassandra Application */
public class MonitoredCassandraClusterExample extends AbstractApplication {
CassandraNode server = new ... | package brooklyn.demo
import java.util.List
import brooklyn.entity.basic.AbstractApplication
import brooklyn.entity.nosql.cassandra.CassandraCluster
import brooklyn.location.Location
/** Cassandra Application */
public class MonitoredCassandraClusterExample extends AbstractApplication {
CassandraCluster cluster... | Use CassandraCluster in demo application | Use CassandraCluster in demo application
| Groovy | apache-2.0 | aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,andreaturli/legacy-brooklyn,andreaturli/legacy-brooklyn,neykov/incubator-brooklyn,bmwshop/brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,aledsage/legacy-brooklyn,andreaturli/legacy-brooklyn,neykov/incubat... |
7289d253a3f92775b8295515117038928b170b0e | src/test/resources/gvm/aeroplane_mode_steps.groovy | src/test/resources/gvm/aeroplane_mode_steps.groovy | package gvm
import static cucumber.api.groovy.EN.*
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(baseDir, [GVM_DIR: gvmDirEnv, GVM_SERVICE: "http://localhost:0"])
bash.start()
bash.execute("source $binDir/gvm-init.sh")
}
And(~'^the internet is reachable$') {->
bash = new BashEnv(b... | package gvm
import static cucumber.api.groovy.EN.*
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(gvmBaseEnv, [GVM_DIR: gvmDirEnv, GVM_SERVICE: "http://localhost:0"])
bash.start()
bash.execute("source $binDir/gvm-init.sh")
}
And(~'^the internet is reachable$') {->
bash = new BashEn... | Rename base directory to gvm base environment variable in test environment. | Rename base directory to gvm base environment variable in test environment.
| Groovy | apache-2.0 | DealerDotCom/gvm-cli,skpal/sdkman-cli,nobeans/gvm-cli,busches/gvm-cli,shanman190/sdkman-cli,DealerDotCom/gvm-cli,skpal/sdkman-cli,GsusRecovery/sdkman-cli,GsusRecovery/sdkman-cli,nobeans/gvm-cli,jbovet/gvm,sdkman/sdkman-cli,gvmtool/gvm-cli |
b3e43ed5eb01622d22e9bb7070dc62b504880d0c | src/main/resources/logback.groovy | src/main/resources/logback.groovy | appender("CONSOLE", ConsoleAppender) {
encoder(PatternLayoutEncoder) {
pattern = "%date{E h:mm:ss.SSS} %logger{1}:%line [%level]: %msg\n"
}
}
root(INFO, ["CONSOLE"])
| appender("CONSOLE", ConsoleAppender) {
encoder(PatternLayoutEncoder) {
pattern = "%date{E h:mm:ss.SSS} %logger{1}:%line [%level]: %msg\n"
}
}
root(DEBUG, ["CONSOLE"])
| Set logging back to DEBUG for now. | Set logging back to DEBUG for now.
| Groovy | mit | Exide/tetris |
7c0a533fee84287802f656f38ebb9db465058475 | src/test/groovy/GebishOrgHomePage.groovy | src/test/groovy/GebishOrgHomePage.groovy | import geb.Page
class GebishOrgHomePage extends Page {
static at = { title == "Geb - Very Groovy Browser Automation" }
static content = {
manualsMenu { module MenuModule, $("#header-content ul li", 0) }
}
}
| import geb.Page
class GebishOrgHomePage extends Page {
static at = { title == "Geb - Very Groovy Browser Automation" }
static content = {
manualsMenu { $("#header-content ul li", 0).module(MenuModule) }
}
}
| Update page content definition after API change in Geb | Update page content definition after API change in Geb
| Groovy | apache-2.0 | geb/geb-example-gradle |
9121e14d90e4496053399b7ccea6df9f5be33408 | src/test/groovy/com/lesfurets/jenkins/unit/PipelineTestHelperTest.groovy | src/test/groovy/com/lesfurets/jenkins/unit/PipelineTestHelperTest.groovy | package com.lesfurets.jenkins.unit
import org.assertj.core.api.Assertions
import org.junit.Test;
class PipelineTestHelperTest {
@Test
void testRegisterAllowedMethodWithoutArgs() {
def helper = new PipelineTestHelper()
def closure = { println 'withoutArgs'}
helper.registerAllowedMethod... | package com.lesfurets.jenkins.unit
import org.assertj.core.api.Assertions
import org.junit.Test;
class PipelineTestHelperTest {
@Test
void testRegisterAllowedMethodWithoutArgs() {
// given:
def helper = new PipelineTestHelper()
def closure = { println 'withoutArgs' }
helper.re... | Format and add given/when/then comment sections | style: Format and add given/when/then comment sections
| Groovy | mit | lesfurets/JenkinsPipelineUnit |
aa38a2512e95a6a924ffc60ebc85f86a4d442bed | vars/pdmdbOperatingSystems.groovy | vars/pdmdbOperatingSystems.groovy | def call() {
return ['centos-6', 'centos-7', 'debian-9', 'debian-10', 'ubuntu-focal', 'ubuntu-bionic', 'rhel8']
}
| def call() {
return ['centos-7', 'debian-9', 'debian-10', 'ubuntu-focal', 'ubuntu-bionic', 'rhel8']
}
| Delete Centos 6 from supported PDMDB OSes. | Delete Centos 6 from supported PDMDB OSes.
| Groovy | agpl-3.0 | Percona-Lab/jenkins-pipelines,Percona-Lab/jenkins-pipelines,Percona-Lab/jenkins-pipelines,Percona-Lab/jenkins-pipelines |
4c666f993063eb847c18f80eb104126f3986981b | core/src/main/java/brooklyn/entity/basic/AbstractGroup.groovy | core/src/main/java/brooklyn/entity/basic/AbstractGroup.groovy | package brooklyn.entity.basic
import java.util.Collection
import java.util.Map
import brooklyn.entity.Entity
import brooklyn.entity.Group
import brooklyn.entity.trait.Changeable
public abstract class AbstractGroup extends AbstractEntity implements Group, Changeable {
public AbstractGroup(Map props=[:], Entity ow... | package brooklyn.entity.basic
import java.util.Collection
import java.util.Map
import brooklyn.entity.Entity
import brooklyn.entity.Group
import brooklyn.entity.trait.Changeable
public abstract class AbstractGroup extends AbstractEntity implements Group, Changeable {
public AbstractGroup(Map props=[:], Entity ow... | Fix return value for removeMember() to indicate whether members collection was changed as a result of the call | Fix return value for removeMember() to indicate whether members collection was changed as a result of the call
| Groovy | apache-2.0 | andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,neykov/incubator-brooklyn,bmwshop/brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,bmwshop/brooklyn,bmwshop... |
52dfaa41c3dbe8e5d74d0fd211bf2dd6adae7a7b | pwd-service/src/test/groovy/org/pwd/domain/websites/WebsiteRepositoryTest.groovy | pwd-service/src/test/groovy/org/pwd/domain/websites/WebsiteRepositoryTest.groovy | package org.pwd.domain.websites
import org.pwd.application.IntegrationTest
import org.pwd.domain.audit.AuditRepository
import org.springframework.beans.factory.annotation.Autowired
import spock.lang.Specification
/**
* @author bartosz.walacik
*/
class WebsiteRepositoryTest extends IntegrationTest {
@Autowired
... | package org.pwd.domain.websites
import org.pwd.application.IntegrationTest
import org.pwd.domain.audit.AuditRepository
import org.springframework.beans.factory.annotation.Autowired
import spock.lang.Specification
/**
* @author bartosz.walacik
*/
class WebsiteRepositoryTest extends IntegrationTest {
@Autowired
... | Add area code - error correction | Add area code - error correction
| Groovy | apache-2.0 | pwd-project/pwd,pwd-project/pwd,pwd-project/pwd |
c4bd43047c39bc4f2068850b9973bdcde59d9324 | analyzer/src/main/groovy/com/novoda/sqlite/generator/SqliteAnalyzerPlugin.groovy | analyzer/src/main/groovy/com/novoda/sqlite/generator/SqliteAnalyzerPlugin.groovy | package com.novoda.sqlite.generator
import org.gradle.api.Plugin
import org.gradle.api.Project
class SqliteAnalyzerPlugin implements Plugin<Project> {
void apply(Project project) {
ensurePluginDependencies(project)
def extension = project.extensions.create('sqliteAccess', SqliteAnalyzerExtension, ... | package com.novoda.sqlite.generator
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.ProjectConfigurationException
class SqliteAnalyzerPlugin implements Plugin<Project> {
void apply(Project project) {
ensurePluginDependencies(project)
def extension = project.extensi... | Add support for library variants | Add support for library variants
| Groovy | apache-2.0 | novoda/sqlite-analyzer |
960aae0f0e51a60dd8420d677fde1e4f8e42907a | src/groovy/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistry.groovy | src/groovy/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistry.groovy | package org.codehaus.groovy.grails.plugins.orm.auditable
/**
*
*/
class AuditableRegistry {
def registry = [:]
public boolean isAuditable(entity) {
boolean is = false
try {
if( entity.newInstance().auditable ) {
is = true
}
} catch (Throwa... | package org.codehaus.groovy.grails.plugins.orm.auditable
/**
*
*/
class AuditableRegistry {
def registry = [:]
public boolean isAuditable(entity) {
entity.properties['auditable']
}
AuditableConfig getConfiguration(Class clazz) {
registry[clazz.getCanonicalName()]
}
voi... | Revert "Functional (but inefficient) test." | Revert "Functional (but inefficient) test."
This reverts commit f4385f32433bbfd10b3c55f1abcc9faea5dfbaec.
| Groovy | apache-2.0 | dmahapatro/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin,dmahapatro/grails-audit-logging-plugin,robertoschwald/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin,tkvw/grails-audit-logging-plugin |
27bec50a0f50a86091212808f19902654c168c73 | 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("http://${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://codevalet.io/u/${System.env.get('GITHUB_USER')}/")
}
| Update the Jenkins instance URLs to reflect their hiding under codevalet.io | Update the Jenkins instance URLs to reflect their hiding under codevalet.io
| Groovy | agpl-3.0 | CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet |
0325ed388663cfa8a4891930f025186a72b8ca0d | src/groovy/sample/MapWidget.groovy | src/groovy/sample/MapWidget.groovy | package sample
import net.kaleidos.plugins.admin.widget.Widget
class MapWidget extends Widget {
String render() {
def html = new StringBuilder()
html.append("<div class='map-widget'>")
html.append("<div>")
html.append("<span class='map-container'>")
html.append("<iframe wi... | package sample
import net.kaleidos.plugins.admin.widget.Widget
class MapWidget extends Widget {
String render() {
def html = new StringBuilder()
html.append("<div class='map-widget'>")
html.append("<div>")
html.append("<span class='map-container'>")
html.append("<iframe wi... | Fix null values on mapwidget | Fix null values on mapwidget
| Groovy | apache-2.0 | kaleidos/grails-admin-interface-sample,kaleidos/grails-admin-interface-sample |
cd87ff1b4d51a2d5376884a8803d963e5874cbdd | gradle-plugin/src/main/groovy/io/realm/gradle/Realm.groovy | gradle-plugin/src/main/groovy/io/realm/gradle/Realm.groovy | package io.realm.gradle
import com.neenbedankt.gradle.androidapt.AndroidAptPlugin
import org.gradle.api.Plugin
import org.gradle.api.Project
class Realm implements Plugin<Project> {
@Override
void apply(Project project) {
project.plugins.apply(AndroidAptPlugin)
project.repositories.add(projec... | package io.realm.gradle
import com.neenbedankt.gradle.androidapt.AndroidAptPlugin
import org.gradle.api.Plugin
import org.gradle.api.Project
class Realm implements Plugin<Project> {
@Override
void apply(Project project) {
project.plugins.apply(AndroidAptPlugin)
project.repositories.add(projec... | Include dependency to the annotation for the AP | Include dependency to the annotation for the AP
| Groovy | apache-2.0 | horie1024/realm-java,realm/realm-java,realm/realm-java,teddywest32/realm-java,realm/realm-java,realm/realm-java,teddywest32/realm-java,horie1024/realm-java,realm/realm-java,ShikaSD/realm-java,teddywest32/realm-java,realm/realm-java,ShikaSD/realm-java,realm/realm-java,horie1024/realm-java,teddywest32/realm-java,ShikaSD/... |
44b27668ba40d59929f5fe670a651bf210839bae | groovy/grails-test/src/groovy/langpop/ImportUtil.groovy | groovy/grails-test/src/groovy/langpop/ImportUtil.groovy | package langpop
public class ImportUtil {
static final String STACKOVERFLOW_SITE_NAME = 'stackoverflow'
static String getStackoverflowLangName(Lang l) {
def a = LangAltName.find {
lang.id == l.id && site.id == Site.findByName(STACKOVERFLOW_SITE_NAME).id
}
if (a == null) {
... | package langpop
public class ImportUtil {
static final String STACKOVERFLOW_SITE_NAME = 'stackoverflow'
static String getStackoverflowLangName(Lang l) {
def a = LangAltName.find {
lang.id == l.id && site.id == Site.findByName(STACKOVERFLOW_SITE_NAME).id
}
if (a == null) {
... | Add function for getting github language name | Add function for getting github language name
| Groovy | mit | bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile |
b9a1dd4dc83b941ed8613db2034ab37e431a9033 | subprojects/distributions-integ-tests/src/integTest/groovy/org/gradle/DocsDistributionIntegrationSpec.groovy | subprojects/distributions-integ-tests/src/integTest/groovy/org/gradle/DocsDistributionIntegrationSpec.groovy | /*
* Copyright 2019 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 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Increase expected size of 'docs' distribution | Increase expected size of 'docs' distribution
Follow up to #14873
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpira... |
78b743e3e04d9badd360f1fadbc1e75eedcc583c | src/main/groovy/testBench/ids/kdd99/moa/TestAllModelsUsingMoaInTrainingDataSet.groovy | src/main/groovy/testBench/ids/kdd99/moa/TestAllModelsUsingMoaInTrainingDataSet.groovy | package testBench.ids.kdd99.moa
import java.util.List;
import testBench.ids.kdd99.*;
import testBench.ids.kdd99.dal.*;
import testBench.ids.kdd99.datasetHelpers.*;
import testBench.ids.kdd99.modelHelpers.*;
import testBench.ids.kdd99.helpers.*;
import groovy.io.FileType;
def dir = new File(Finals.MODELS_SAVE_FOLD... | package testBench.ids.kdd99.moa
import java.util.List;
import testBench.ids.kdd99.*;
import testBench.ids.kdd99.dal.*;
import testBench.ids.kdd99.datasetHelpers.*;
import testBench.ids.kdd99.modelHelpers.*;
import testBench.ids.kdd99.helpers.*;
import groovy.io.FileType;
def dir = new File(Finals.MODELS_SAVE_FOLD... | Test on training data set is ok | Test on training data set is ok
| Groovy | bsd-3-clause | ati-ozgur/KDD99,ati-ozgur/KDD99,ati-ozgur/KDD99 |
b5223eb5e46c98c40f783c1c9bb23e3955d446e1 | whelktool/scripts/2018/10/delete-bad-linkserver-import.groovy | whelktool/scripts/2018/10/delete-bad-linkserver-import.groovy | // Assuming the full list in: länkserver-borttagning_MASTER.tsv (but with column names removed)
// the holdids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f2 > hold-IDs
// the bibids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f1 | sort -u > bib-IDs
PrintWriter fai... | // Assuming the full list in: länkserver-borttagning_MASTER.tsv (but with column names removed)
// the holdids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f2 > hold-IDs
// the bibids are retrieved as such:
// cat länkserver-borttagning_MASTER.tsv | cut -f1 | sort -u > bib-IDs
PrintWriter fai... | Print failed hold and bib ids to separate files. | Linkserver-cleaning: Print failed hold and bib ids to separate files.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
b8d281384016fd7a3bfe67207b9d9ab084e159b2 | whelktool/scripts/cleanups/2020/10/lxl-2589-add-name-and-nationality-to-jurisdictions.groovy | whelktool/scripts/cleanups/2020/10/lxl-2589-add-name-and-nationality-to-jurisdictions.groovy | class Script {
static PrintWriter modified
static PrintWriter errors
}
Script.modified = getReportWriter("modified.txt")
Script.errors = getReportWriter("errors.txt")
query = "collection = 'auth' AND data#>>'{@graph,1,@type}' = 'Jurisdiction'"
selectBySqlWhere(query) { auth ->
try {
process(auth)... | class Script {
static PrintWriter modified
static PrintWriter errors
}
Script.modified = getReportWriter("modified.txt")
Script.errors = getReportWriter("errors.txt")
query = "collection = 'auth' AND data#>>'{@graph,1,@type}' = 'Jurisdiction'"
selectBySqlWhere(query) { auth ->
try {
process(auth)... | Add hasVariant for old name when transforming an organization to a jurisdiction. | Add hasVariant for old name when transforming an organization to a jurisdiction.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
b927c027a500b10bf1f2df1a7f7d1ebecd322b58 | buildSrc/src/main/groovy/plugins/AndroidConfigurationPlugin.groovy | buildSrc/src/main/groovy/plugins/AndroidConfigurationPlugin.groovy | package plugins
import org.gradle.api.Plugin
import org.gradle.api.Project
class AndroidConfigurationPlugin implements Plugin<Project> {
@Override
void apply(Project project) {
project.plugins.withId('com.android.application') {
addAndroidUtils(project.android, project.rootProject.version... | package plugins
import org.gradle.api.Plugin
import org.gradle.api.Project
class AndroidConfigurationPlugin implements Plugin<Project> {
@Override
void apply(Project project) {
project.plugins.withId('com.android.application') {
addAndroidUtils(project.android, project.rootProject.version... | Add Kotlin srcDirs as Java srcDirs | Add Kotlin srcDirs as Java srcDirs
| Groovy | apache-2.0 | mr-archano/Playground,mr-archano/Playground |
c19157c89488c868996e46bd4cfe70940ec6281f | subprojects/core/src/test/groovy/org/gradle/process/internal/streams/ExecOutputHandleRunnerTest.groovy | subprojects/core/src/test/groovy/org/gradle/process/internal/streams/ExecOutputHandleRunnerTest.groovy | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Use `@NotYetImplemented` instead of `@Ignore` | Use `@NotYetImplemented` instead of `@Ignore`
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/... |
f56733cdad5aff873c5191dcb89cf26411382d1a | grails-app/controllers/dk/sdu/tekvideo/ErrorController.groovy | grails-app/controllers/dk/sdu/tekvideo/ErrorController.groovy | package dk.sdu.tekvideo
import grails.util.Environment
import org.springframework.security.access.annotation.Secured
import java.time.LocalDateTime
@Secured("permitAll")
class ErrorController {
def mailService
def springSecurityService
def index() {
def exception = request.exception?.cause
... | package dk.sdu.tekvideo
import grails.util.Environment
import org.springframework.security.access.annotation.Secured
import java.time.LocalDateTime
@Secured("permitAll")
class ErrorController {
def mailService
def springSecurityService
def index() {
def exception = request.exception?.cause
... | Disable mail service from error controller | Disable mail service from error controller
| Groovy | mit | DanThrane/tekvideo.sdu.dk,DanThrane/tekvideo.sdu.dk,DanThrane/interactive-videoes-grails,DanThrane/tekvideo.sdu.dk,DanThrane/tekvideo.sdu.dk,DanThrane/interactive-videoes-grails |
f8c71887c929472fa2ecbbe03570cb6c82ac9b42 | src/test/groovy/org/kurron/domain/DataPopulationLearningTest.groovy | src/test/groovy/org/kurron/domain/DataPopulationLearningTest.groovy | package org.kurron.domain
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.mongodb.core.MongoOperations
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification
/**
* A learning test just to see how MongoDB might handle large amounts of... | package org.kurron.domain
import groovy.util.logging.Slf4j
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.mongodb.core.MongoOperations
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification
/**
* A learning test just to see how Mong... | Use logger instead of printouts. | Use logger instead of printouts.
| Groovy | apache-2.0 | kurron/mongodb-experiment |
167c1c97d261e5e73f4bd18784268d7392aeb865 | src/main/groovy/org/mastercoin/consensus/WaitForBlockchainSync.groovy | src/main/groovy/org/mastercoin/consensus/WaitForBlockchainSync.groovy | package org.mastercoin.consensus
import com.msgilligan.bitcoin.rpc.BitcoinClient
import groovy.json.JsonSlurper
/**
* Utility class that uses a reference (currently Blockchain.info API) and waits for an BitcoinClient
* to reach the current blockheight.
*/
class WaitForBlockchainSync {
static def waitForSync(B... | package org.mastercoin.consensus
import com.msgilligan.bitcoin.rpc.BitcoinClient
import groovy.json.JsonSlurper
/**
* Utility class that uses a reference (currently Blockchain.info API) and waits for an BitcoinClient
* to reach the current blockheight.
*/
class WaitForBlockchainSync {
static def waitForSync(B... | Use https to talk to blockchain.info | Use https to talk to blockchain.info
They started redirecting and that broke the tests.
| Groovy | apache-2.0 | dexX7/bitcoin-spock,dexX7/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ,dexX7/OmniJ,OmniLayer/OmniJ,dexX7/bitcoin-spock |
ba3b971068b929cabffc9707e4d3e1bb1d6d8438 | config.groovy | config.groovy | vertxVersion = '1.3.1.final'
gvmVersion = '1.0.0-SNAPSHOT'
environments {
local {
gvmService = 'http://localhost:8080'
gvmBroadcastService = 'http://localhost:8080'
}
master {
gvmService = 'http://dev.gvmtool.net'
gvmBroadcastService = 'http://devcast.cfapps.io'
}
production {
gvmService = 'h... | vertxVersion = '1.3.1.final'
gvmVersion = '1.0.0-SNAPSHOT'
environments {
local {
gvmService = 'http://localhost:8080'
gvmBroadcastService = 'http://localhost:8080'
}
master {
gvmService = 'http://dev.gvmtool.net'
gvmBroadcastService = 'http://cast-dev.cfapps.io'
}
production {
gvmService = '... | Update url for broadcast api in DEV env. | Update url for broadcast api in DEV env.
| Groovy | apache-2.0 | GsusRecovery/sdkman-cli,DealerDotCom/gvm-cli,nobeans/gvm-cli,shanman190/sdkman-cli,skpal/sdkman-cli,DealerDotCom/gvm-cli,nobeans/gvm-cli,gvmtool/gvm-cli,skpal/sdkman-cli,sdkman/sdkman-cli,GsusRecovery/sdkman-cli,busches/gvm-cli,jbovet/gvm |
9e780acfc65e6e79fd8eba80f2ec59db49820121 | src/groovy/com/collabnet/svnedge/ConcurrentBackupException.groovy | src/groovy/com/collabnet/svnedge/ConcurrentBackupException.groovy | /*
* CollabNet Subversion Edge
* Copyright (C) 2011, 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) 2011, 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... | Improve logging for skipped RepoDumpJobs | [artf6704] : Improve logging for skipped RepoDumpJobs
small correction to javadoc comment on the ConcurrentBackupException
* src/groovy/../ConcurrentBackupException (constructor)
changed javadoc description to indicate String arg is a message, not a key
git-svn-id: ec3c21ed833430e32134c61539c75518a6355d4e@2710 0... | Groovy | agpl-3.0 | marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console |
53097bc70e408d132bd729881fcb8c27de2894d8 | src/test/groovy/com/github/blindpirate/gogradle/task/BuildTaskTest.groovy | src/test/groovy/com/github/blindpirate/gogradle/task/BuildTaskTest.groovy | package com.github.blindpirate.gogradle.task
import com.github.blindpirate.gogradle.GogradleRunner
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(GogradleRunner)
class BuildTaskTest extends TaskTest {
BuildTask task
@Before
void setUp() {
task = buildTask(B... | package com.github.blindpirate.gogradle.task
import com.github.blindpirate.gogradle.GogradleRunner
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import static com.github.blindpirate.gogradle.task.GolangTaskContainer.*
import static org.mockito.Mockito.*
@RunWith(GogradleRunner)
class ... | Improve test of build task | Improve test of build task
| Groovy | apache-2.0 | gogradle/gogradle,gogradle/gogradle,gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle,blindpirate/gogradle |
70b984028451575f39f989c9670e8087c0f947bb | rundeckapp/grails-app/conf/UrlMappings.groovy | rundeckapp/grails-app/conf/UrlMappings.groovy | class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/job/$action?/$id?"( controller:'scheduledExecution')
"/resources/$action?/$id?"( controller:'framework')
"/events/$action?/$id?"( controller:'reports')
"500"(view:'/error... | class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/run/$id?"( controller:'framework',action:'nodes')
"/history/$id?"( controller:'reports',action:'index')
"/jobs/$id?"( controller:'menu',action:'jobs')
"/job/$action?/$id?... | Add url mappings for top level tabs | Add url mappings for top level tabs
| Groovy | apache-2.0 | rophy/rundeck,damageboy/rundeck,jamieps/rundeck,tjordanchat/rundeck,paul-krohn/rundeck,rophy/rundeck,rundeck/rundeck,damageboy/rundeck,variacode/rundeck,rophy/rundeck,damageboy/rundeck,patcadelina/rundeck,variacode/rundeck,jamieps/rundeck,rundeck/rundeck,patcadelina/rundeck,rundeck/rundeck,rophy/rundeck,variacode95/run... |
ac333a5b65dc4ae573a45b3235ca0a83de1813cb | groovy/FwSupport-jobs.groovy | groovy/FwSupport-jobs.groovy | /*
* DSL script to create FwSupport job
*/
/*
* Definition of jobs
*/
job {
name 'FwSupportTools-Linux-packager-debug-checkoutonly'
description '''
<p>This job keeps the <i>FwSupportTools</i> directory up-to-date on the packaging machine.</p>
<p>The job is created by the DSL plugin from <i>FwSupport-jobs... | /*
* DSL script to create FwSupport job
*/
/*
* Definition of jobs
*/
job {
name 'FwSupportTools-Linux-packager-debug-checkoutonly'
description '''
<p>This job keeps the <i>FwSupportTools</i> directory up-to-date on the packaging machine.</p>
<p>The job is created by the DSL plugin from <i>FwSupport-jobs... | Allow triggering builds without a change | Allow triggering builds without a change
Change-Id: Idb0cbe644a1ad78f34844dc5b7791376c02b0d8a
| Groovy | mit | sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts |
1b2849d299e2003b6a79513a2b3aa841a82bf21e | whelktool/scripts/cleanups/2022/07/lxl-3303-summary-to-instance.groovy | whelktool/scripts/cleanups/2022/07/lxl-3303-summary-to-instance.groovy | def where = """
collection = 'bib'
AND data['@graph'][1]['instanceOf']['@type'] = '"Text"'
AND data['@graph'][1]['instanceOf']['summary'] IS NOT NULL
AND deleted = false
"""
def badShape = ['@type', 'label', 'language'] as Set
selectBySqlWhere(where) { bib ->
if (bib.graph[0].descriptionCreator == ['@id'... | def where = """
collection = 'bib'
AND data['@graph'][1]['instanceOf']['@type'] = '"Text"'
AND data['@graph'][1]['instanceOf']['summary'] IS NOT NULL
AND deleted = false
"""
def badShape = ['@type', 'label', 'language'] as Set
selectBySqlWhere(where) { bib ->
if (bib.graph[0].descriptionCreator == ['@id'... | Add summaries to instance element by element, not entire array | Add summaries to instance element by element, not entire array
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
877dc9ca44eeba26cfe1a0e94c8fdad952e94f55 | githubcontributors-block-macro/src/test/groovy/GithubContributorsSpec.groovy | githubcontributors-block-macro/src/test/groovy/GithubContributorsSpec.groovy | package org.asciidoctor.extensionslab.githubcontributors
import groovy.util.logging.Log
import org.asciidoctor.Asciidoctor
import org.asciidoctor.OptionsBuilder
import spock.lang.Specification
@Log
class GithubContributorsSpec extends Specification {
def 'should create table of contributors'() {
given:
... | package org.asciidoctor.extensionslab.githubcontributors
import groovy.util.logging.Log
import org.asciidoctor.Asciidoctor
import org.asciidoctor.OptionsBuilder
import org.asciidoctor.SafeMode
import spock.lang.Specification
@Log
class GithubContributorsSpec extends Specification {
def 'should create table of co... | Set safe mode in test to have css in resulting html file | Set safe mode in test to have css in resulting html file
| Groovy | apache-2.0 | robertpanzer/asciidoctorj-extensions-lab |
5820b643b59144d7adfc629889f6ed2f9f0071da | src/main/groovy/nebula/plugin/clojuresque/tasks/DefaultClojureSourceSet.groovy | src/main/groovy/nebula/plugin/clojuresque/tasks/DefaultClojureSourceSet.groovy | package nebula.plugin.clojuresque.tasks
import org.gradle.api.file.SourceDirectorySet
import org.gradle.api.model.ObjectFactory
class DefaultClojureSourceSet implements ClojureSourceSet {
private final SourceDirectorySet clojure
DefaultClojureSourceSet(String name, ObjectFactory objects) {
this.cloju... | package nebula.plugin.clojuresque.tasks
import org.gradle.api.file.SourceDirectorySet
import org.gradle.api.model.ObjectFactory
class DefaultClojureSourceSet implements ClojureSourceSet {
private final SourceDirectorySet clojure
DefaultClojureSourceSet(String displayName, ObjectFactory objects) {
thi... | Fix clojure source set name | Fix clojure source set name
| Groovy | mit | nebula-plugins/nebula-clojure-plugin |
0207801090fa8e388832faa956833e4f7de8b238 | src/main/groovy/com/lesfurets/jenkins/unit/global/lib/GitSource.groovy | src/main/groovy/com/lesfurets/jenkins/unit/global/lib/GitSource.groovy | package com.lesfurets.jenkins.unit.global.lib
import java.util.concurrent.TimeUnit
import groovy.transform.builder.Builder
@Builder(builderMethodName = "gitSource")
class GitSource extends SourceRetriever {
String sourceURL
@Override
List<URL> retrieve(String repository, String branch, String targetPat... | package com.lesfurets.jenkins.unit.global.lib
import java.util.concurrent.TimeUnit
import groovy.transform.builder.Builder
@Builder(builderMethodName = "gitSource")
class GitSource extends SourceRetriever {
String sourceURL
@Override
List<URL> retrieve(String repository, String branch, String targetPat... | Fix directory not created on git source retriever | Fix directory not created on git source retriever
| Groovy | mit | vitalii-vitrenko/JenkinsPipelineUnit,lesfurets/JenkinsPipelineUnit |
6eb88382341177801f769f8f6de0a30351e67dbb | webtests/webtests-container-auth/src/test/groovy/woko/webtests/WebTestBase.groovy | webtests/webtests-container-auth/src/test/groovy/woko/webtests/WebTestBase.groovy | package woko.webtests
import com.canoo.webtest.WebtestCase
abstract class WebTestBase extends WebtestCase {
def homeUrl = 'http://localhost:8080/woko-webtests'
void goToPage(String url) {
ant.invoke(homeUrl + url)
}
void login() {
goToPage '/login'
ant.setInputField name:'j_username', value:'wd... | package woko.webtests
import com.canoo.webtest.WebtestCase
abstract class WebTestBase extends WebtestCase {
def homeUrl = 'http://localhost:8080/woko-webtests'
void goToPage(String url) {
ant.invoke(homeUrl + url)
}
void login() {
goToPage '/login'
ant.setInputField name:'j_username', value:'wd... | Add a common webtest for the search form which should be present in each page | Add a common webtest for the search form which should be present in each page
| Groovy | apache-2.0 | pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko |
48c192990cca19a6a8af8d3a531288b0072c24b4 | modules/govuk_jenkins/files/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy | modules/govuk_jenkins/files/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy | #!/usr/bin/env groovy
/*
* Common functions for GOVUK Jenkinsfiles
*/
/**
* Push tags to Github repository
*
* @param repository Github repository
* @param branch Branch name
* @param tag Tag name
*/
def pushTag(String repository, String branch, String tag) {
if (branch == 'master'){
echo "Tagging alph... | #!/usr/bin/env groovy
/*
* Common functions for GOVUK Jenkinsfiles
*/
/**
* Push tags to Github repository
*
* @param repository Github repository
* @param branch Branch name
* @param tag Tag name
*/
def pushTag(String repository, String branch, String tag) {
if (branch == 'master'){
echo "Tagging alph... | Update deploy job name in CI groovy lib | Update deploy job name in CI groovy lib
Update the CI job name to deploy applications in the CI Groovy
library.
| Groovy | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet |
c307924a238c0295f04641a3d8fcf0d6fe83c9ad | src/test/groovy/com/gitlab/artismarti/smartsmells/featureenvy/FeatureEnvyDetectorTest.groovy | src/test/groovy/com/gitlab/artismarti/smartsmells/featureenvy/FeatureEnvyDetectorTest.groovy | package com.gitlab.artismarti.smartsmells.featureenvy
import com.gitlab.artismarti.smartsmells.common.Test
import spock.lang.Specification
/**
* @author artur
*/
class FeatureEnvyDetectorTest extends Specification {
def "find one feature envy method"() {
expect:
smells.size() == 2
where:
smells = new Fe... | package com.gitlab.artismarti.smartsmells.featureenvy
import com.gitlab.artismarti.smartsmells.common.Test
import spock.lang.Specification
/**
* @author artur
*/
class FeatureEnvyDetectorTest extends Specification {
def "find one feature envy method"() {
expect:
smells.size() == 2
smells.get(0).methodName ... | Extend feature envy detector test | Extend feature envy detector test
| Groovy | apache-2.0 | arturbosch/SmartSmells,arturbosch/SmartSmells |
c8ef355ad4b73107a20d7fd04d8260eef1fb309b | src/test/groovy/geoscript/layer/CursorTestCase.groovy | src/test/groovy/geoscript/layer/CursorTestCase.groovy | package geoscript.layer
import org.junit.Test
import static org.junit.Assert.*
import geoscript.feature.Feature
/**
* The Cursor UnitTest
*/
class CursorTestCase {
@Test void constructors() {
File file = new File(getClass().getClassLoader().getResource("states.shp").toURI())
assertNotNull(file)... | package geoscript.layer
import org.junit.Test
import static org.junit.Assert.*
import geoscript.feature.Feature
/**
* The Cursor UnitTest
*/
class CursorTestCase {
@Test void constructors() {
File file = new File(getClass().getClassLoader().getResource("states.shp").toURI())
assertNotNull(file)... | Test of the Cursor reset method. | Test of the Cursor reset method. | Groovy | mit | geoscript/geoscript-groovy,sbortman/geoscript-groovy,geoscript/geoscript-groovy,sbortman/geoscript-groovy |
a92a8ed5eeebd3c3355d55929d8d70ac35f0171b | src/main/groovy/com/ceilfors/transform/gq/GqUtils.groovy | src/main/groovy/com/ceilfors/transform/gq/GqUtils.groovy | package com.ceilfors.transform.gq
/**
* @author ceilfors
*/
class GqUtils {
public static String TEMP_DIR = "GQTMP"
public static void printToFile(Object value) {
getGqFile().append("$value\n")
}
public static File getGqFile() {
String directory
if (System.getProperty(TEMP_D... | package com.ceilfors.transform.gq
/**
* @author ceilfors
*/
class GqUtils {
public static String TEMP_DIR = "GQTMP"
public static void printToFile(Object value) {
getGqFile().append("$value\n")
}
public static File getGqFile() {
String directory
if (System.getProperty(TEMP_D... | Remove Windows gqFile special handling and output to C:/tmp. | Remove Windows gqFile special handling and output to C:/tmp.
| Groovy | apache-2.0 | yihtserns/groovy-decorator |
186810cf7f004cf57f4f14ca36ff000e49724f24 | subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/spock/Spock2IntegrationSpec.groovy | subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/spock/Spock2IntegrationSpec.groovy | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Use Spock2 Groovy3 variant for Spock framework tests | Use Spock2 Groovy3 variant for Spock framework tests
So that they can be executed on JDK16.
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,grad... |
5beef93e312c9db9cc0efa33e4ca721fa6399189 | assemblies/geronimo-boilerplate-minimal/src/main/underlay/etc/rc.d/start-server,default.groovy | assemblies/geronimo-boilerplate-minimal/src/main/underlay/etc/rc.d/start-server,default.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Make a wee bit more groovy, add a comment too | Make a wee bit more groovy, add a comment too
git-svn-id: 0d16bf2c240b8111500ec482b35765e5042f5526@650100 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | apache/geronimo,apache/geronimo,apache/geronimo,apache/geronimo |
217f0bfb94dac853bde0df7dd04bdd135577e6af | modules/govuk_jenkins/files/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy | modules/govuk_jenkins/files/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy | #!/usr/bin/env groovy
/*
* Common functions for GOVUK Jenkinsfiles
*/
/**
* Push tags to Github repository
*
* @param repository Github repository
* @param branch Branch name
* @param tag Tag name
*/
def pushTag(String repository, String branch, String tag) {
if (branch == 'master'){
echo "Tagging alph... | #!/usr/bin/env groovy
/*
* Common functions for GOVUK Jenkinsfiles
*/
/**
* Push tags to Github repository
*
* @param repository Github repository
* @param branch Branch name
* @param tag Tag name
*/
def pushTag(String repository, String branch, String tag) {
if (branch == 'master'){
echo "Tagging alph... | Add function to deploy on Integration | Add function to deploy on Integration
Add new function to deploy application on the Integration environment. If
the build job or properties change, we only need to update this function.
| Groovy | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet |
93b80f2bd18c4f04d0f58443b45c59cb58a54e77 | src/main/groovy/com/bmuschko/gradle/docker/tasks/AbstractReactiveStreamsTask.groovy | src/main/groovy/com/bmuschko/gradle/docker/tasks/AbstractReactiveStreamsTask.groovy | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Remove @Input annotation from reactive-streams closures so gradle 4.3 wont attempt to execute/configure them AOT. | Remove @Input annotation from reactive-streams closures so gradle 4.3 wont attempt to execute/configure them AOT.
| Groovy | apache-2.0 | bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin |
9429b7a20ceb3a3b2c1c191a11758db704b392f6 | asciidoctor-gradle-js/src/main/groovy/org/asciidoctor/gradle/js/nodejs/AsciidoctorJSNpmExtension.groovy | asciidoctor-gradle-js/src/main/groovy/org/asciidoctor/gradle/js/nodejs/AsciidoctorJSNpmExtension.groovy | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright 2013-2019 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... | Move NPM workdirectory to buildDir/.npm | Move NPM workdirectory to buildDir/.npm
| Groovy | apache-2.0 | ysb33r/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,asc... |
1af644ba76f52848c5278dbb886291c4e548f7e0 | test/unit/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistryTests.groovy | test/unit/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistryTests.groovy | package org.codehaus.groovy.grails.plugins.orm.auditable
import org.codehaus.groovy.grails.commons.GrailsApplication
import grails.test.GrailsUnitTestCase
/**
* Created by IntelliJ IDEA.
* User: hartsock
* Date: 2/2/12
* Time: 8:38 PM
* To change this template use File | Settings | File Templates.
*/
class Audi... | package org.codehaus.groovy.grails.plugins.orm.auditable
import org.codehaus.groovy.grails.commons.GrailsApplication
import grails.test.GrailsUnitTestCase
/**
* Created by IntelliJ IDEA.
* User: hartsock
* Date: 2/2/12
* Time: 8:38 PM
* To change this template use File | Settings | File Templates.
*/
class Audi... | Revert "helps diagnose where the stack fails when altering the abstract base class for this type of test." | Revert "helps diagnose where the stack fails when altering the abstract base class for this type of test."
This reverts commit 523ce11ceec2a429adf73bc2ac35c215facf46c6.
| Groovy | apache-2.0 | dmahapatro/grails-audit-logging-plugin,tkvw/grails-audit-logging-plugin,dmahapatro/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin,robertoschwald/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin |
8875299d2383b70d1de562662b0a5c725e5fcb92 | .test-infra/jenkins/job_PreCommit_CommunityMetrics.groovy | .test-infra/jenkins/job_PreCommit_CommunityMetrics.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Remove space from Community Metrics pre-commit job name | Remove space from Community Metrics pre-commit job name
| Groovy | apache-2.0 | rangadi/beam,apache/beam,robertwb/incubator-beam,robertwb/incubator-beam,charlesccychen/beam,rangadi/beam,rangadi/beam,lukecwik/incubator-beam,rangadi/incubator-beam,lukecwik/incubator-beam,chamikaramj/beam,charlesccychen/beam,apache/beam,rangadi/beam,rangadi/beam,RyanSkraba/beam,apache/beam,markflyhigh/incubator-beam,... |
64f03943722aa0ebf1ec7cfccd964fcb3f7d6dae | src/main/groovy/Run.groovy | src/main/groovy/Run.groovy | import groovy.util.logging.Slf4j
import se.su.it.svc.server.Start
@Slf4j
class Run extends Start {
private static ConfigObject config
public static void main(String[] args) {
try {
log.info "Initializing Jetty server."
start(configuration.toProperties())
} catch (ex) {
System.err.printl... | import groovy.util.logging.Slf4j
import se.su.it.svc.server.Start
@Slf4j
class Run extends Start {
private static ConfigObject config
public static final String CONFIG_FILE_PROPERTY = 'config'
public static final String DEFAULT_CONFIG_FILE_PATH = "WEB-INF/classes/defaultApplicationConfig.groovy"
public stat... | Fix for missing custom config property. | DEVIDM: Fix for missing custom config property.
| Groovy | bsd-3-clause | janj-su/sukat-cxf-svc,stockholmuniversity/sukat-cxf-svc,stockholmuniversity/sukat-cxf-svc,janj-su/sukat-cxf-svc |
622799cd184cdbc4fb0e2bdfba52df6502b771e2 | 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 |
42144738d349ab8560dd89b43f2112bfaeceae27 | subprojects/test-kit/src/integTest/groovy/org/gradle/testkit/TestKitSamplesIntegrationTest.groovy | subprojects/test-kit/src/integTest/groovy/org/gradle/testkit/TestKitSamplesIntegrationTest.groovy | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Fix case in sample path. | Fix case in sample path.
+review REVIEW-5533
| Groovy | apache-2.0 | gstevey/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,lsm... |
1a97747f80a41bcac4e60afc1a61ac1ba3a9fba9 | tapestry-core/src/test/groovy/org/apache/tapestry5/services/javascript/ModuleAssetRequestHandlerTest.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/services/javascript/ModuleAssetRequestHandlerTest.groovy | package org.apache.tapestry5.services.javascript
import org.apache.tapestry5.internal.services.javascript.ModuleAssetRequestHandler
import org.apache.tapestry5.ioc.internal.QuietOperationTracker
import org.apache.tapestry5.ioc.test.TestBase
import org.apache.tapestry5.services.PathConstructor
import org.apache.tapestr... | package org.apache.tapestry5.services.javascript
import org.apache.tapestry5.internal.services.javascript.ModuleAssetRequestHandler
import org.apache.tapestry5.ioc.internal.QuietOperationTracker
import org.apache.tapestry5.ioc.test.TestBase
import org.testng.annotations.DataProvider
import org.testng.annotations.Test
... | Correct unit tests broken by recent refactorings | Correct unit tests broken by recent refactorings
| Groovy | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
351ba99d26a2924021cada24a2078dc8c7fcf775 | subprojects/performance/src/integTest/groovy/org/gradle/performance/ProjectDependenciesPerformanceTest.groovy | subprojects/performance/src/integTest/groovy/org/gradle/performance/ProjectDependenciesPerformanceTest.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... | Add more warm up runs to performance test benchmarking project dependencies in an effort to reduce fluctuation of results. | Add more warm up runs to performance test benchmarking project dependencies in an effort to reduce fluctuation of results.
+review REVIEW-5448
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/grad... |
7bb5aa9cc440c3b02ee58d3dbe10e034fad07e36 | subprojects/resources-http/src/integTest/groovy/org/gradle/internal/resource/transport/http/HttpResourceAccessorIntegrationTest.groovy | subprojects/resources-http/src/integTest/groovy/org/gradle/internal/resource/transport/http/HttpResourceAccessorIntegrationTest.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... | Use ConcurrentTestUtil to simplify a test | Use ConcurrentTestUtil to simplify a test
+review REVIEW-6323
| Groovy | apache-2.0 | gstevey/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,robinve... |
ae5d43d6bf332dce0f802206f1c225cae8bf0eb3 | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/experiment/nativeplatform/NativeParallelPerformanceTest.groovy | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/experiment/nativeplatform/NativeParallelPerformanceTest.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... | Use the daemon for native parallel tests | Use the daemon for native parallel tests
| Groovy | apache-2.0 | lsmaira/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/... |
5a1f27f17b663b55b69df6e85c0c0f7c1690a588 | 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
git-svn-id: 692b6b129b1c4657ced67b6e37159d75d66f68c6@18573 52ab4f32-60fc-0310-b215-8acea882cd1b
| Groovy | apache-2.0 | mojohaus/extra-enforcer-rules,mohanaraosv/extra-enforcer-rules |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.