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 |
|---|---|---|---|---|---|---|---|---|---|
697136d31177f2ef5bcbfe5348f3d9389d06e7d8 | src/test/groovy/bugs/groovy4585/Groovy4585Bug.groovy | src/test/groovy/bugs/groovy4585/Groovy4585Bug.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")... | Simplify the test for "GROOVY-4585: backslash can not be escaped by `SimpleTemplateEngine`" | Simplify the test for "GROOVY-4585: backslash can not be escaped by `SimpleTemplateEngine`"
| Groovy | apache-2.0 | shils/incubator-groovy,shils/groovy,paulk-asert/groovy,paulk-asert/groovy,paulk-asert/groovy,paulk-asert/groovy,paulk-asert/incubator-groovy,russel/groovy,armsargis/groovy,russel/groovy,armsargis/groovy,apache/incubator-groovy,paulk-asert/incubator-groovy,shils/groovy,traneHead/groovy-core,russel/incubator-groovy,shils... |
330bc7f3b3b2ba6c9d0ff44960907eea265f0fa3 | src/test/groovy/com/github/vbauer/yta/model/LanguageTest.groovy | src/test/groovy/com/github/vbauer/yta/model/LanguageTest.groovy | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Vladislav Bauer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to u... | Add unit test to check available languages | Add unit test to check available languages
| Groovy | mit | vbauer/yandex-translate-api,vbauer/yandex-translate-api | |
5f6ad1b9d67812f17dfe978d2ac94867e22bdacc | tapestry-json/src/test/groovy/org/apache/tapestry/json/CoercionTests.groovy | tapestry-json/src/test/groovy/org/apache/tapestry/json/CoercionTests.groovy | // Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | Add additional tests for tapestry-json | TAP5-1591: Add additional tests for tapestry-json
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1153704 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | agileowl/tapestry-5,agileowl/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 | |
eece7415ed0c3499012733b8f6bc0aa4383cb95f | src/groovy/com/hida/imms/DomainClassUtil.groovy | src/groovy/com/hida/imms/DomainClassUtil.groovy | package com.hida.imms
import org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
import org.codehaus.groovy.grails.orm.hibernate.cfg.CompositeIdentity
class DomainClassUtil {
def getPrimaryKey(DefaultGrailsDomainClass domainClass) {
def identity = (domainClass.hasProperty('mapping') ? domainClass.... | Add class to get composite key | Add class to get composite key
| Groovy | apache-2.0 | arief-hidayat/imms-ui-searchable-test,arief-hidayat/imms-ui-searchable-test | |
ffa026052794f0bdc53857e6fcb2a24b24737c10 | whelktool/scripts/cleanups/2021/04/lxl-3553-physicalDetails-and-modifiedRecord-validation.groovy | whelktool/scripts/cleanups/2021/04/lxl-3553-physicalDetails-and-modifiedRecord-validation.groovy | String where = """
(
(
data#>>'{@graph,1}' LIKE '%marc:otherPhysicalDetails%'
OR
data#>'{@graph,0,marc:modifiedRecord}' is not null
) AND collection = 'bib'
)
"""
selectBySqlWhere(where) { data ->
def (record, instance) = data.graph
boolean changed = false
changed |= remove... | Add script for fixing up data caught in validation. | Add script for fixing up data caught in validation.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
d79e585102e553653a0fefa11a86c1698d1be24b | subprojects/language-java/src/test/groovy/org/gradle/language/java/internal/DefaultJavaLanguageSourceSetTest.groovy | subprojects/language-java/src/test/groovy/org/gradle/language/java/internal/DefaultJavaLanguageSourceSetTest.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... | Add unit test for DefaultJavaLanguageSourceSet | Add unit test for DefaultJavaLanguageSourceSet
+review REVIEW-5503
| Groovy | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,grad... | |
7d14dcde2bf488ac12d7c312ad27920ae9d20928 | src/main/groovy/jenkins/automation/builders/FlowJobBuilder.groovy | src/main/groovy/jenkins/automation/builders/FlowJobBuilder.groovy | package jenkins.automation.builders
import javaposse.jobdsl.dsl.DslFactory
import javaposse.jobdsl.dsl.Job
/**
* The basic Flow Job builder
*
* @param name job name
* @param description job description
* @param jobs optional comma separated list of jobs to include in the build flow
* @param jobFlow optional ... | package jenkins.automation.builders
import javaposse.jobdsl.dsl.DslFactory
import javaposse.jobdsl.dsl.Job
/**
* The basic Flow Job builder
*
* @param name job name
* @param description job description
* @param jobs optional comma separated list of jobs to include in the build flow
* @param jobFlow optional ... | Make jobFlow string empty by default | Make jobFlow string empty by default
null shows up as a string.
| Groovy | cc0-1.0 | higs4281/jenkins-automation,lfatty/jenkins-automation,Scotchester/jenkins-automation,higs4281/jenkins-automation,Scotchester/jenkins-automation |
3be9897cd3e3b5259460aa7d1c86628c0ebc996d | grails-app/services/au/org/biodiversity/nsl/ConfigService.groovy | grails-app/services/au/org/biodiversity/nsl/ConfigService.groovy | /*
Copyright 2016 Australian National Botanic Gardens
This file is part of NSL services project.
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/L... | Create a config service to hold config and abstract the underlying config locations | Create a config service to hold config and abstract the underlying config locations
| Groovy | apache-2.0 | bio-org-au/services,bio-org-au/services,bio-org-au/services | |
8705bc97549e2f6285ba0a13081aa6faa22791bc | whelktool/scripts/cleanups/2021/05/lxl-3577-validationFixes.groovy | whelktool/scripts/cleanups/2021/05/lxl-3577-validationFixes.groovy | import whelk.util.DocumentUtil
String where = "collection = 'auth'"
selectBySqlWhere(where) { data ->
boolean changed = false
def (record, mainEntity) = data.graph
changed |= clearEmptyNationality(mainEntity)
changed |= clearRecordMarcGarbage(record)
changed |= clearGarbageProperties(data.graph)
... | Add script for cleaning up validation problems. | Add script for cleaning up validation problems.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
287f851d12969be7e469fa0a4d136cdf0e040466 | whelktool/scripts/cleanups/2022/06/lxl-3873-remove-classification-without-code.groovy | whelktool/scripts/cleanups/2022/06/lxl-3873-remove-classification-without-code.groovy | /**
* Removes local entities without the property 'code'.
*
* See LXL-3873 for more info.
*/
import whelk.util.Statistics
Statistics statistics = new Statistics(3).printOnShutdown()
String where = """
collection = 'bib' AND
deleted = false AND
EXISTS (
SELECT * FROM jsonb_array_elements(data->... | Add script for removing classification without code/@id | Add script for removing classification without code/@id
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
05fe23a5fcc54845966f92d70d32cb0c468d3e05 | subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy9105Test.groovy | subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy9105Test.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")... | Add a test for GROOVY-9105 | Add a test for GROOVY-9105
| Groovy | apache-2.0 | armsargis/groovy,shils/incubator-groovy,shils/incubator-groovy,shils/incubator-groovy,paulk-asert/groovy,apache/incubator-groovy,apache/incubator-groovy,apache/incubator-groovy,paulk-asert/incubator-groovy,shils/incubator-groovy,armsargis/groovy,apache/groovy,paulk-asert/groovy,paulk-asert/groovy,paulk-asert/incubator-... | |
b998b6859a6dfc454267ac2ec25b05f6a3f5a4fd | whelktool/scripts/2020/04/lxl-3077-translated-title.groovy | whelktool/scripts/2020/04/lxl-3077-translated-title.groovy | PrintWriter scheduledForUpdate = getReportWriter("scheduled-for-update")
PrintWriter failedBibIDs = getReportWriter("failed-to-update-bibIDs")
String where = "collection = 'bib' and data#>'{@graph,1}' ?? 'marc:hasTranslatedTitle'"
selectBySqlWhere(where) { data ->
def (record, mainEntity) = data.graph
if (ma... | Add tweaked version of lxl-1828 script | Add tweaked version of lxl-1828 script
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
48c8ff0ede1e3783701a99c14e758494552becf5 | subprojects/core/src/test/groovy/org/gradle/internal/filewatch/SingleFirePendingChangesListenerTest.groovy | subprojects/core/src/test/groovy/org/gradle/internal/filewatch/SingleFirePendingChangesListenerTest.groovy | /*
* Copyright 2022 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 unit test for SingleFirePendingChangesListener | Add unit test for SingleFirePendingChangesListener
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpira... | |
b2b36fed22a308ae5f3771ffccfc6611d4970081 | raml-model/src/test/groovy/io/vrap/rmf/raml/performance/PerformanceTest.groovy | raml-model/src/test/groovy/io/vrap/rmf/raml/performance/PerformanceTest.groovy | package io.vrap.rmf.raml.performance
import io.vrap.rmf.raml.model.RamlModelBuilder
import io.vrap.rmf.raml.model.RamlModelResult
import io.vrap.rmf.raml.model.modules.Api
import org.eclipse.emf.common.util.URI
import java.time.Duration
import java.time.temporal.ChronoUnit
class PerformanceTest {
static void ma... | Add class to run a simple performance test. | Add class to run a simple performance test.
| Groovy | mit | vrapio/rest-modeling-framework,vrapio/rest-modeling-framework | |
d70d0d8b55d22a99d7456e5db5cdbf0873de5d09 | src/test/groovy/ee/tuleva/onboarding/mandate/statistics/FundValueStatisticsSpec.groovy | src/test/groovy/ee/tuleva/onboarding/mandate/statistics/FundValueStatisticsSpec.groovy | package ee.tuleva.onboarding.mandate.statistics
import spock.lang.Specification
import java.time.Instant
import java.time.temporal.ChronoUnit
class FundValueStatisticsSpec extends Specification {
def "OnCreate: On creation set date truncated to today"() {
when:
FundValueStatistics fundValueStati... | Test fundvaluestatistic on creation date rounding | Test fundvaluestatistic on creation date rounding
| Groovy | mit | TulevaEE/onboarding-service,TulevaEE/onboarding-service,TulevaEE/onboarding-service,TulevaEE/onboarding-service | |
86542ede4deee94dac57dccae5478efc51227e48 | lenskit-eval/src/test/groovy/org/lenskit/eval/crossfold/CrossfoldSpecHandlerTest.groovy | lenskit-eval/src/test/groovy/org/lenskit/eval/crossfold/CrossfoldSpecHandlerTest.groovy | package org.lenskit.eval.crossfold
import org.grouplens.lenskit.specs.SpecificationContext
import org.grouplens.lenskit.util.test.MiscBuilders
import org.junit.Test
import static org.hamcrest.Matchers.equalTo
import static org.junit.Assert.assertThat
/**
* Created by michael on 5/22/2015.
*/
class CrossfoldSpecHan... | Add test for crossfold spec handler | Add test for crossfold spec handler
| Groovy | lgpl-2.1 | tajinder-txstate/lenskit,binweiwu/lenskit,vaibhav345/lenskit,vaibhav345/lenskit,chrysalag/lenskit,martinlaz/lenskit,amaliujia/lenskit,tajinder-txstate/lenskit,linjunleo/lenskit,kluver/lenskit,martinlaz/lenskit,vaibhav345/lenskit,blankazucenalg/lenskit,tajinder-txstate/lenskit,kluver/lenskit,linjunleo/lenskit,binweiwu/l... | |
9edc73951548190babfd20d7f34a824c08042482 | subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskOnlyIfReasonIntegrationTest.groovy | subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskOnlyIfReasonIntegrationTest.groovy | /*
* Copyright 2022 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 integration test for task onlyIf messages | Add integration test for task onlyIf messages
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle | |
9ecc2fdd8b411546803cce0976fbf4eac9f05bae | whelktool/scripts/cleanups/2020/03/lxl-3050/remove-obselete-marc-instance-fields.groovy | whelktool/scripts/cleanups/2020/03/lxl-3050/remove-obselete-marc-instance-fields.groovy | failedIDs = getReportWriter("failed-to-delete-bibIDs")
scheduledForChange = getReportWriter("scheduledForChange")
List<String> fieldsToRemove = ["marc:aspect", "marc:fileAspect", "marc:soundAspect", "marc:issn" , "marc:matter"]
selectByCollection('bib') { bib ->
fieldsToRemove.each {
removeFieldFromRecord(... | Add script for removing obselete marc instance fields | Add script for removing obselete marc instance fields
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
d89fa637464b9d698732553102fb3a9275603e3d | rice-middleware/kew/api/src/test/groovy/org/kuali/rice/kew/api/action/ValidActionsTest.groovy | rice-middleware/kew/api/src/test/groovy/org/kuali/rice/kew/api/action/ValidActionsTest.groovy | /*
* Copyright 2006-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by ap... | Fix invalid getter in org.kuali.rice.kew.api.action.ValidActions or invalid @XmlType propOrder * Committing marshal/unmarshal test case for ValidActions | KULRICE-7935: Fix invalid getter in org.kuali.rice.kew.api.action.ValidActions or invalid @XmlType propOrder
* Committing marshal/unmarshal test case for ValidActions
git-svn-id: 2a5d2b5a02908a0c4ba7967b726d8c4198d1b9ed@46413 7a7aa7f6-c479-11dc-97e2-85a2497f191d
| Groovy | apache-2.0 | kuali/rice-playground,ricepanda/rice-git2,ricepanda/rice-git3,ricepanda/rice-git2,ricepanda/rice-git3,ricepanda/rice-git3,ricepanda/rice-git2,kuali/rice-playground,ricepanda/rice-git3,ricepanda/rice-git2,kuali/rice-playground,kuali/rice-playground | |
f3779dbffca07ea4cf28eed83cb08eeb04e90ec7 | whelktool/scripts/cleanups/2021/02/lxl-3133-map-channel-record-fields.groovy | whelktool/scripts/cleanups/2021/02/lxl-3133-map-channel-record-fields.groovy | List channelRecs = Collections.synchronizedList([])
selectBySqlWhere("collection = 'bib' AND data#>>'{@graph,1,marc:mediaTerm}' = 'channel record'") { cRec ->
Map cRecData = [:]
cRecData["id"] = cRec.graph[1]["@id"]
cRecData["controlNumber"] = cRec.graph[0]["controlNumber"]
cRecData["655marcgt"] = cRe... | Add script for mapping fields 655 and 856 in 'channel records' to their linked catalogue records | Add script for mapping fields 655 and 856 in 'channel records' to their linked catalogue records
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
a1e53a67f22d1f5dd7dc0e58ab9bb7a79cc9d4a5 | jenkins/madcore_spark_cluster.groovy | jenkins/madcore_spark_cluster.groovy | job('madcore.spark.cluster') {
wrappers { preBuildCleanup() }
steps {
def command = """#!/bin/bash
sudo /opt/controlbox/spark/setup.sh
"""
shell(command)
}
}
| Add jenkins job to install spark cluster | Add jenkins job to install spark cluster
Former-commit-id: 1d4de20029bdcba032ecd279a710d795c6ae319c | Groovy | mit | madcore-ai/core,madcore-ai/core | |
3627372be2578b28e32c25cc47b43d6229abe76a | src/test/groovy/com/github/vbauer/yta/service/basic/ApiStatusTest.groovy | src/test/groovy/com/github/vbauer/yta/service/basic/ApiStatusTest.groovy | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Vladislav Bauer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to u... | Add unit test for API statuses | Add unit test for API statuses
| Groovy | mit | vbauer/yandex-translate-api,vbauer/yandex-translate-api | |
e41246bc0dfc7be10c0667d8d30ebdc768da87fe | src/durbin/weka/BootstrapNullModel.groovy | src/durbin/weka/BootstrapNullModel.groovy | import weka.core.*
import durbin.weka.*
import hep.aida.bin.DynamicBin1D;
/**
* A class to store and create a null model.
*/
class BootstrapNullModel implements Serializable{
static{
WekaAdditions.enable()
}
//def instances
static def err = System.err // sugar
def nullDistribution = []
def BootstrapNul... | Support class for computing bootstrap null models. | Support class for computing bootstrap null models.
| Groovy | mit | jdurbin/durbinlib,jdurbin/grapnel,jdurbin/durbinlib,jdurbin/grapnel,jdurbin/durbinlib,jdurbin/grapnel | |
8954f08222bea59fad917657733cd6a571ab8ddc | src/main/groovy/org/fundacionjala/gradle/plugins/enforce/tasks/credentialmanager/CredentialValidator.groovy | src/main/groovy/org/fundacionjala/gradle/plugins/enforce/tasks/credentialmanager/CredentialValidator.groovy | /*
* Copyright (c) Fundacion Jala. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package org.fundacionjala.gradle.plugins.enforce.tasks.credentialmanager
import org.fundacionjala.gradle.plugins.enforce.credentialmanagement.CredentialEnc... | Implement logic for validate credentials | Implement logic for validate credentials
| Groovy | mit | fundacionjala/enforce-gradle-plugin,fundacionjala/enforce-gradle-plugin,fundacionjala/enforce-gradle-plugin,fundacionjala/enforce-gradle-plugin | |
8f1f4aff39936022c402b2df7814f5cfd90b3394 | netci.groovy | netci.groovy | // Import the utility functionality.
import jobs.generation.Utilities;
import jobs.generation.InternalUtilities;
def project = 'dotnet/cli'
// Define build strings
def debugBuildString = '''build.sh'''
// Generate the builds for debug
def linuxDebugJob = job(InternalUtilities.getFullJobName(project, 'linux_debug',... | Add .Net CI job definition | Add .Net CI job definition
For a start there is only linux debug job defintions for git pushes and
pull requests. We can add more defintions as needed.
| Groovy | mit | blackdwarf/cli,schellap/cli,borgdylan/dotnet-cli,danquirk/cli,svick/cli,marono/cli,gkhanna79/cli,marono/cli,jaredpar/cli,johnbeisner/cli,mylibero/cli,livarcocc/cli-1,marono/cli,MichaelSimons/cli,borgdylan/dotnet-cli,jkotas/cli,MichaelSimons/cli,ravimeda/cli,jkotas/cli,JohnChen0/cli,borgdylan/dotnet-cli,piotrpMSFT/cli-o... | |
c0fe90339ad83afca3102fc6f25ce288e5fb6631 | subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedAdHocTaskExecutionIntegrationTest.groovy | subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedAdHocTaskExecutionIntegrationTest.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... | Add failing tests for ad hoc tasks not sharing cached results | Add failing tests for ad hoc tasks not sharing cached results
When two tasks share all their inputs, and have actions from the same classloaders, we allow them to share cached results. However, this is wrong when the actions are actually different. This can happen quite easily with ad hoc tasks, leading to incorrect r... | Groovy | apache-2.0 | lsmaira/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,rob... | |
943029834ee84c34f92eb9d9d8c3458b826aa855 | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ChangesDuringBuildContinuousIntegrationTest.groovy | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ChangesDuringBuildContinuousIntegrationTest.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... | Add test for changes during continuous build | Add test for changes during continuous build
- should trigger rebuild when java source file is changed during build
execution
+review REVIEW-5709
| Groovy | apache-2.0 | blindpirate/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpi... | |
d6c388c4b1d6027b0c5cbbdba2d22b46c9efc7d5 | subprojects/core/src/integTest/groovy/org/gradle/initialization/InitScriptIntegrationTest.groovy | subprojects/core/src/integTest/groovy/org/gradle/initialization/InitScriptIntegrationTest.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... | Add for passing init scripts on the command line | Add for passing init scripts on the command line
Looks like init scripts passed on the command line
are not applied to `buildSrc`.
| Groovy | apache-2.0 | blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gr... | |
e28e7d06d38922931039305de8eeaf598ad048d4 | whelktool/scripts/cleanups/2020/10/lxl-3392-remove-hasClassificationNumbersAssignedInCanada.groovy | whelktool/scripts/cleanups/2020/10/lxl-3392-remove-hasClassificationNumbersAssignedInCanada.groovy | /**
* Remove marc:hasClassificationNumbersAssignedInCanada from works.
*
* See LXL-3392 for more info.
*/
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
String where = "collection = 'bib' AND deleted = false AND data#>'{@graph... | Add script for removing leftover marc:hasClassificationNumbersAssignedInCanada from works | Add script for removing leftover marc:hasClassificationNumbersAssignedInCanada from works
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
01722cd66923edc92c388cd8cfa983de91aab33e | src/main/site/examples/3_UseJenkinsAPI.groovy | src/main/site/examples/3_UseJenkinsAPI.groovy | import hudson.model.*;
import jenkins.metrics.impl.TimeInQueueAction;
if (event == 'RunListener.onFinalized') {
// Current run/build
def build = Thread.currentThread().executable
// Action from Metrics-plugin
def queueAction = build.getAction(TimeInQueueAction.class)
def queuing = queueAction.getQu... | Add example how to use Jenkins API instead of `run` from context | Add example how to use Jenkins API instead of `run` from context
| Groovy | mit | nickgrealy/global-events,llaaiiqq/groovy-events-listener-plugin,jenkinsci/groovy-events-listener-plugin,nickgrealy/global-events,jenkinsci/groovy-events-listener-plugin,llaaiiqq/groovy-events-listener-plugin | |
d729319cf5c39eedfb11ac5f34557cb66c8007f1 | subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/InMemoryTaskArtifactsIntegrationTest.groovy | subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/InMemoryTaskArtifactsIntegrationTest.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... | Add integration test for GRADLE-3018 | Add integration test for GRADLE-3018
| Groovy | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gstev... | |
868dae38922ec138860cae9bcbf13eee42063ded | test/me/therin/mining/itemsets/apriori/CheckResultsTest.groovy | test/me/therin/mining/itemsets/apriori/CheckResultsTest.groovy | import me.therin.mining.itemsets.apriori.Apriori
import me.therin.brovine.Transfac
import me.therin.brovine.TransfacBaskets
import me.therin.mining.itemsets.fpgrowth.FPTree
// Initialize algorithms
def minSup = 0.84
def tfs = new TransfacBaskets()
def tfs2 = new TransfacBaskets()
def apriori = new Apriori<Transfac>(tf... | Check Apriori and FPGrowth give the same results | Check Apriori and FPGrowth give the same results
| Groovy | apache-2.0 | brovine-developers/freq-itemset-gen | |
fd0ca500ba985cf3073416f4cf723be63581ac93 | files/groovy_scripts/disable_all_plugins.groovy | files/groovy_scripts/disable_all_plugins.groovy | #!/usr/bin/env groovy
import jenkins.model.*
import groovy.json.*
def jenkins_instance = Jenkins.getInstance()
def jenkins_pm = jenkins_instance.getPluginManager()
def jenkins_plugins = jenkins_pm.getPlugins()
jenkins_plugins.each {
it.disable()
}
println JsonOutput.toJson(jenkins_instance.save())
| Add a Groovy script to disable all plugins | Add a Groovy script to disable all plugins
| Groovy | mit | infOpen/ansible-role-jenkins | |
1afcce9214a4985657d93f7bd10a43c0f224b9c1 | subprojects/wrapper/src/integTest/groovy/org/gradle/integtests/WrapperHttpsIntegrationTest.groovy | subprojects/wrapper/src/integTest/groovy/org/gradle/integtests/WrapperHttpsIntegrationTest.groovy | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Split out HTTPS test from `WrapperHttpIntegrationTest` | Split out HTTPS test from `WrapperHttpIntegrationTest`
| Groovy | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gr... | |
c880b63297d5432217e0d8c87193a0aaad80dc72 | paperwork-plugin/src/test/groovy/hu/supercluster/paperwork/plugin/PaperworkPluginExtensionTest.groovy | paperwork-plugin/src/test/groovy/hu/supercluster/paperwork/plugin/PaperworkPluginExtensionTest.groovy | package hu.supercluster.paperwork.plugin
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Before
import org.junit.Test
class PaperworkPluginExtensionTest {
private def extension;
@Before
public void setUp() {
def project = ProjectBuilder.builder().build()
extension = new Pap... | Add some very basic Tests for PaperworkPluginExtension in Paperwork plugin | Add some very basic Tests for PaperworkPluginExtension in Paperwork plugin
| Groovy | apache-2.0 | zsoltk/paperwork,zsoltk/paperwork | |
8170a66e427a4666b5a7825fbaa41722238678cb | problem1-groovy/problem1-groovy.groovy | problem1-groovy/problem1-groovy.groovy | /**
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these
multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
*/
/*
Iterates through the given Natural numbers collection.
If an element of the Natural numbers collections... | Check in solution to problem 1 - Groovy | Check in solution to problem 1 - Groovy
| Groovy | mit | jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler | |
a44ab585f648a3db4508730a96597791e3cf9753 | groovyNotesThree.groovy | groovyNotesThree.groovy | class GroovyNotesThree {
static void main(String[] args) {
// User Input
// print 'What\'s your name? '
// def fullName = System.console().readLine()
//
// print 'Enter a number: '
// def theNumber = System.console().readLine().toDouble()
// print 'Enter another number: '
// def anothe... | Add third file of notes | Add third file of notes
| Groovy | mit | nbkhope/groovy-notes | |
ff4246d3bae65814d41074cd8490534f9ca85c74 | src/main/groovy/com/github/yihtserns/groovy/deco/Intercept.groovy | src/main/groovy/com/github/yihtserns/groovy/deco/Intercept.groovy | /*
* Copyright 2016 yihtserns.
*
* 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 a... | Add convenience annotation that allows interception to be coded on the fly. | Add convenience annotation that allows interception to be coded on the fly. | Groovy | apache-2.0 | yihtserns/groovy-decorator | |
321c02f20530864252979b3d8520fad06bbd2113 | subprojects/core/src/integTest/groovy/org/gradle/api/tasks/InputPropertyAnnotationOverrideIntegrationTest.groovy | subprojects/core/src/integTest/groovy/org/gradle/api/tasks/InputPropertyAnnotationOverrideIntegrationTest.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... | Add input property override integration test | Add input property override integration test
+review REVIEW-6365
| Groovy | apache-2.0 | blindpirate/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,gradle/... | |
9667165a20a47f15757c27c3e9f435c421aa1264 | platform/jobs/pipelines/edxPlatformLettucePipelinePr.groovy | platform/jobs/pipelines/edxPlatformLettucePipelinePr.groovy | package platform
import org.yaml.snakeyaml.Yaml
import static org.edx.jenkins.dsl.JenkinsPublicConstants.JENKINS_PUBLIC_LOG_ROTATOR
import static org.edx.jenkins.dsl.JenkinsPublicConstants.JENKINS_PUBLIC_TEAM_SECURITY
import static org.edx.jenkins.dsl.JenkinsPublicConstants.JENKINS_PUBLIC_LOG_ROTATOR
/* stdout logger... | Add pipeline lettuce job to DSL | Add pipeline lettuce job to DSL
| Groovy | agpl-3.0 | edx/jenkins-job-dsl | |
e82bd2654536675c7abcf51f250921f44b5c44f1 | src/test/groovy/bugs/Groovy8337Bug.groovy | src/test/groovy/bugs/Groovy8337Bug.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")... | Add a test for GROOVY-8337 | Add a test for GROOVY-8337
| Groovy | apache-2.0 | russel/groovy,russel/groovy,russel/incubator-groovy,armsargis/groovy,russel/groovy,paulk-asert/groovy,paulk-asert/groovy,jwagenleitner/incubator-groovy,apache/incubator-groovy,paulk-asert/incubator-groovy,shils/incubator-groovy,paulk-asert/incubator-groovy,apache/groovy,russel/incubator-groovy,paulk-asert/incubator-gro... | |
50db48dcde6a3242212de6869697fe0080cd81eb | jobs/update-local-bootstrap-script.groovy | jobs/update-local-bootstrap-script.groovy | // Update the bootstrap script
@GrabResolver(name='jenkins-dsl-jobs', root='http://saltstack.github.io/jenkins-dsl-jobs/')
@Grab('com.saltstack:jenkins-dsl-jobs:1.2-SNAPSHOT')
import com.saltstack.jenkins.JenkinsPerms
job {
name = 'update-bootstrap'
displayName('Update Bootstrap Script')
description('Upda... | Add a job to update the master's bootstrap script | Add a job to update the master's bootstrap script
| Groovy | apache-2.0 | saltstack/jenkins-dsl-jobs | |
2ad2824392aad1bbfa5417cc5ae1b3c67be8745a | jenkins/config/init.groovy.d/configure-jnlp-agent-protocols.groovy | jenkins/config/init.groovy.d/configure-jnlp-agent-protocols.groovy | /*
Copyright (c) 2015-2017 Sam Gleske - https://github.com/samrocketman/jenkins-bootstrap-shared
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/LICE... | Disable all JNLP protocols except JNLP4 | Disable all JNLP protocols except JNLP4
Change-Id: Ie291dc1a68b974db4c7d775a4017c39301e8e025
| Groovy | apache-2.0 | bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration | |
51f2616285df4d9ce591ae956c7552da48a7d263 | testdata/essearch.groovy | testdata/essearch.groovy | @Grapes([
// @GrabResolver(name='central', root='http://central.maven.org/maven2/'),
@GrabResolver(name='mvnRepository', root='http://central.maven.org/maven2/'),
// @Grab(group='org.slf4j', module='slf4j-api', version='1.7.6'),
// @Grab(group='org.slf4j', module='jcl-over-slf4j', version='1.7.6'),
... | Test harness for http search of subscriptions | Test harness for http search of subscriptions
| Groovy | apache-2.0 | ianibo/AlertSpike,ianibo/AlertSpike,ianibo/AlertSpike | |
fe1cca940be62e4c8643533088460074da4e22c7 | whelktool/scripts/cleanups/2021/08/accession-number-as-identifier.groovy | whelktool/scripts/cleanups/2021/08/accession-number-as-identifier.groovy | String whereBib = """
collection = 'bib'
AND data#>>'{@graph,1,marc:hasImmediateSourceOfAcquisitionNote}' LIKE '%marc:accessionNumber%'
"""
selectBySqlWhere(whereBib) { data ->
Map thing = data.graph[1]
List hasImmediateSourceOfAcquisitionNote = asList(thing."marc:hasImmediateSourceOfAcquisitionNote")... | Add script for turning marc:accessionNumber values into AccessionNumber identifiers | Add script for turning marc:accessionNumber values into AccessionNumber identifiers
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
8cd9914fccc8940ec2736cc2455ceb55364559af | subprojects/core/src/test/groovy/org/gradle/util/NameValidatorTest.groovy | subprojects/core/src/test/groovy/org/gradle/util/NameValidatorTest.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... | Add unit test to for project and task name validate | Add unit test to for project and task name validate
| Groovy | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,blind... | |
233ed589d448f51ccdbeaf70e2e8df8033b0a9f7 | whelktool/scripts/cleanups/2021/02/lxl-2479-map-and-fix-encodingLevel.groovy | whelktool/scripts/cleanups/2021/02/lxl-2479-map-and-fix-encodingLevel.groovy | /**
* Adds default encodingLevel to bib records with missing encodingLevel
*
* See LXL-2479 for more info.
*/
String where = """
collection = 'bib' AND
deleted = false AND
data#>>'{@graph,0,encodingLevel}' IS NULL
"""
selectBySqlWhere(where) { data ->
if (!data.graph[0].encodingLevel) {
data.graph[0... | Add script for adding default encodingLevel to bib records where it's missing | Add script for adding default encodingLevel to bib records where it's missing
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
a4eaa0e35533980c41b5957357aac4e5be26b356 | whelktool/scripts/cleanups/2021/05/lxl-3599-instance-types-from-mediaterm.groovy | whelktool/scripts/cleanups/2021/05/lxl-3599-instance-types-from-mediaterm.groovy | String where = """
collection = 'bib'
AND data#>>'{@graph,1,@type}' = 'Instance'
AND data#>'{@graph,1,marc:mediaTerm}' IS NOT NULL
"""
selectBySqlWhere(where){ data ->
Map instance = data.graph[1]
String workType = instance.instanceOf?."@type"
String mediaTerm = instance."marc:mediaTerm"
b... | Add script for changing instance types | Add script for changing instance types
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
d561d12d5557e303aad2bf880daf37c563eb5f32 | whelktool/scripts/cleanups/2020/05/lxl-3185-delete-mo-records-without-hold.groovy | whelktool/scripts/cleanups/2020/05/lxl-3185-delete-mo-records-without-hold.groovy | /**
* See LXL-3185 for more information
*/
scheduledForDelete = getReportWriter("scheduled-for-delete")
failed = getReportWriter("failed-to-delete-holdIDs")
def bibQuery = """id in (select id from lddb l where
data#>>'{@graph,0,descriptionCreator,@id}' = 'https://libris.kb.se/library/Mo'
and colle... | Add script for deleting records held by mo without holdings | Add script for deleting records held by mo without holdings
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
8c1323e4669ae0878be5d2734282228ad0ba28f3 | roles/jenkins/templates/configureMaven.groovy | roles/jenkins/templates/configureMaven.groovy | //
// Configure Tool - Maven
//
// Installs a Maven installation named "maven-3" if one is not already found.
// References:
// * https://github.com/batmat/jez/blob/master/jenkins-master/init_scripts/add_maven_auto_installer.groovy
// * https://wiki.jenkins-ci.org/display/JENKINS/Add+a+Maven+Installation%2C+Tool+Inst... | Install and configure Maven in Jenkins. | Install and configure Maven in Jenkins.
CBBI-1 | Groovy | apache-2.0 | HHSIDEAlab/hhsdevcloud-ansible,HHSIDEAlab/hhsdevcloud-ansible | |
b593cef2ca16283df887f684ff697049d52346e9 | build.gocd.groovy | build.gocd.groovy | import cd.go.contrib.plugins.configrepo.groovy.dsl.*
import java.util.function.*
def buildStage = {
new Stage("Build", {
jobs {
job("BuildWebsite") {
tasks {
bash {
commandString = "bundle install --path .bundle --jobe 4"
}
bash {
commandString ... | Add groovy based build scripts for all releases | Add groovy based build scripts for all releases
| Groovy | apache-2.0 | gocd/docs.go.cd,gocd/docs.go.cd,ketan/docs.go.cd,gocd/docs.go.cd,ketan/docs.go.cd,ketan/docs.go.cd | |
39e969ae59bef6215121ed37f2431ba4dd279889 | subprojects/wrapper/src/integTest/groovy/org/gradle/integtests/WrapperUpgradeIntegrationTest.groovy | subprojects/wrapper/src/integTest/groovy/org/gradle/integtests/WrapperUpgradeIntegrationTest.groovy | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add test for overwriting wrapper | Add test for overwriting wrapper
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robin... | |
f7e12935ec82de9f408b7db11bb0a4bed5993748 | bin/compile-configs.groovy | bin/compile-configs.groovy | #!/usr/bin/env groovy
/*
* Copyright to 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... | Allow using compiled classes for configuration | Allow using compiled classes for configuration
| Groovy | apache-2.0 | dreedyman/Rio,dreedyman/Rio,dreedyman/Rio | |
c9a246118cdcc6b42c8efd9cff860570c30245aa | whelktool/scripts/2018/11/fix-musicMedium.groovy | whelktool/scripts/2018/11/fix-musicMedium.groovy | MUSICMEDIUM_TYPE = 'MusicMedium'
MUSICMEDIUM_PROPERTY = 'musicMedium'
boolean remodelToStructuredValue(term) {
def remodelledTerm = []
//Create musicMedium object and add to list
term[MUSICMEDIUM_PROPERTY].each {
def map = [:]
map << ['@type':MUSICMEDIUM_TYPE]
map << ['label':it]
... | Add script to remodel musicMedium to a structured value | Add script to remodel musicMedium to a structured value
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
14da0f3b1634f09687b65b237c03597a375ab3c3 | src/test/groovy/org/gosulang/gradle/functional/LocalBuildCacheTest.groovy | src/test/groovy/org/gosulang/gradle/functional/LocalBuildCacheTest.groovy | package org.gosulang.gradle.functional
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
import org.gradle.util.VersionNumber
import spock.lang.Unroll
import static org.gradle.testkit.runner.TaskOutcome.FROM_CACHE
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
@U... | Add test for local build cache | Add test for local build cache
| Groovy | bsd-3-clause | gosu-lang/gradle-gosu-plugin | |
1b5232f081b69044b90da6714849a5cc48cff555 | src/main/groovy/com/google/appengine/task/endpoints/EndpointsExtension.groovy | src/main/groovy/com/google/appengine/task/endpoints/EndpointsExtension.groovy | /*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Update client lib version for endpoints configurations | Update client lib version for endpoints configurations
| Groovy | apache-2.0 | ArseniKavalchuk/gradle-appengine-plugin,mpoehler/gradle-appengine-plugin,judeebene/gradle-appengine-plugin,GoogleCloudPlatform/gradle-appengine-plugin,loosebazooka/gradle-appengine-plugin,MGronber/gradle-appengine-plugin |
175939388192fea106c42b5e9c27cf0ef94a20e6 | subprojects/language-java/src/integTest/groovy/org/gradle/language/java/JavaJvmAssemblyIntegrationTest.groovy | subprojects/language-java/src/integTest/groovy/org/gradle/language/java/JavaJvmAssemblyIntegrationTest.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... | Introduce java integration test for `JvmAssembly` | Introduce java integration test for `JvmAssembly`
+review REVIEW-5733
| Groovy | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,gste... | |
1d1dd983fcde6821332945914faa1976d2af9cc6 | subprojects/performance/src/integTest/groovy/org/gradle/performance/OldJavaPluginBigProjectPerformanceTest.groovy | subprojects/performance/src/integTest/groovy/org/gradle/performance/OldJavaPluginBigProjectPerformanceTest.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... | Add a cross version perf test for big old java project | Add a cross version perf test for big old java project
+review REVIEW-5430
| Groovy | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,... | |
ce5ba86e826bf47a059ddf1e1f4bac3ec242e4de | src/test/groovy/com/c4soft/evaluanot/attachment/FormatTest.groovy | src/test/groovy/com/c4soft/evaluanot/attachment/FormatTest.groovy | package com.c4soft.evaluanot.attachment;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import org.junit.Test;
class FormatTest {
@Test
public void testCompareTo() {
Format format = new Format('format', 300, 400);
assertEquals(0, format.compareTo(new Format('format', 300, 400)));
a... | Add Format comparison unit tests | Add Format comparison unit tests | Groovy | apache-2.0 | ch4mpy/evaluanot-attachments-management | |
7fe3580d64cdd7f0c3f584cb78c04749dd499691 | modules/nf-commons/src/test/nextflow/plugin/DefaultPluginsTest.groovy | modules/nf-commons/src/test/nextflow/plugin/DefaultPluginsTest.groovy | /*
* Copyright (c) 2020-2021. Seqera Labs, S.L.
*
* All Rights reserved
*
*/
package nextflow.plugin
import spock.lang.Specification
/**
*
* @author Paolo Di Tommaso <paolo.ditommaso@gmail.com>
*/
class DefaultPluginsTest extends Specification {
def 'should validate get plugins' () {
given:
... | Add default plugins test [ci fast] | Add default plugins test [ci fast]
| Groovy | apache-2.0 | robsyme/nextflow,nextflow-io/nextflow,robsyme/nextflow,robsyme/nextflow,robsyme/nextflow,nextflow-io/nextflow,nextflow-io/nextflow,nextflow-io/nextflow,nextflow-io/nextflow,robsyme/nextflow | |
abc20abd585365a7d121c4e441405c2b1555b26f | src/test/groovy/gvm/CurlStub.groovy | src/test/groovy/gvm/CurlStub.groovy | package gvm
class CurlStub {
static prepareIn(String folder){
def file = new File("$folder/curl")
file.createNewFile()
file.write "#!/bin/bash\n"
file.executable = true
file
}
void primeWith(String bash){
file.append bash
}
}
| Introduce new Curl stub class for future testing. | Introduce new Curl stub class for future testing.
| Groovy | apache-2.0 | GsusRecovery/sdkman-cli,nobeans/gvm-cli,sdkman/sdkman-cli,DealerDotCom/gvm-cli,busches/gvm-cli,skpal/sdkman-cli,gvmtool/gvm-cli,nobeans/gvm-cli,DealerDotCom/gvm-cli,jbovet/gvm,shanman190/sdkman-cli,GsusRecovery/sdkman-cli,skpal/sdkman-cli | |
b234bb4249f1bf64e7779a28d451e6686e174a07 | .test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Spark_Java11.groovy | .test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Spark_Java11.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 ... | Add Spark 3 test jobs to the CI (Java 11) | [BEAM-9283] Add Spark 3 test jobs to the CI (Java 11)
| Groovy | apache-2.0 | lukecwik/incubator-beam,apache/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,chamikaramj/beam,lukecwik/incubator-beam,robertwb/incubator-beam,robertwb/incubator-beam,robertwb/incubator-beam,chamikaramj/beam,chamikaramj/beam,chamikaramj/beam,chamikaramj/beam,lukecwik/incubator-beam,apache/beam,lukecwik/incubator-... | |
7c7d526c57d2b1d4022bd1494a23573ac360bc14 | whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy | whelktool/scripts/cleanups/2021/03/lxl-3519-remove-marc-isPrivate-when-false.groovy | String where = """
collection = 'bib'
AND data#>>'{@graph,1,marc:hasImmediateSourceOfAcquisitionNote}' LIKE '%\"marc:isPrivate\"%'
"""
selectBySqlWhere(where) { data ->
boolean modified
asList(data.graph[1]["marc:hasImmediateSourceOfAcquisitionNote"]).each { note ->
modified |= note.removeAll... | Add script for removing isPrivate property in marc:hasImmediateSourceOfAcquisitionNote | Add script for removing isPrivate property in marc:hasImmediateSourceOfAcquisitionNote
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
42aa69f7467c26edbac3fe623b13c24a6adf9a1b | src/test/groovy/bugs/Groovy7031Bug.groovy | src/test/groovy/bugs/Groovy7031Bug.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")... | Add a test for "GROOVY-7031: @CompileStatic breaks assign in combination with dereferencing" | Add a test for "GROOVY-7031: @CompileStatic breaks assign in combination with dereferencing"
| Groovy | apache-2.0 | jwagenleitner/incubator-groovy,russel/groovy,shils/incubator-groovy,paulk-asert/groovy,russel/incubator-groovy,shils/groovy,armsargis/groovy,traneHead/groovy-core,armsargis/groovy,jwagenleitner/groovy,russel/groovy,paulk-asert/incubator-groovy,shils/groovy,russel/incubator-groovy,jwagenleitner/groovy,shils/incubator-gr... | |
a86aa33ed43551000faf544c3f9e5ed5d48e4fd4 | subprojects/shipkit/src/test/groovy/org/shipkit/internal/gradle/util/BranchUtilsTest.groovy | subprojects/shipkit/src/test/groovy/org/shipkit/internal/gradle/util/BranchUtilsTest.groovy | package org.shipkit.internal.gradle.util
import spock.lang.Specification
class BranchUtilsTest extends Specification {
def "getHeadBranch ('#forkRepositoryName', '#headBranch')"() {
expect:
BranchUtils.getHeadBranch(forkRepositoryName, headBranch) == expected
where:
forkRepositor... | Add test coverage for BranchUtils | Add test coverage for BranchUtils
| Groovy | mit | mockito/shipkit,mockito/mockito-release-tools,mockito/mockito-release-tools,mockito/shipkit | |
bff0672e91bfca1ee9281143eb3722326b2b9289 | db/migrate/005_ctmsi/002_expand_audit_event_values.groovy | db/migrate/005_ctmsi/002_expand_audit_event_values.groovy | class ExpandAuditEventValues extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
if (databaseMatches("postgresql")) {
execute("ALTER TABLE audit_event_values ALTER previous_value TYPE TEXT");
execute("ALTER TABLE audit_event_values ALTER current_value TYPE TEXT");
... | Expand the size of the value columns (DDLUtils was defaulting them to 254 characters, which is much too small) | Expand the size of the value columns (DDLUtils was defaulting them to 254 characters, which is much too small)
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc | |
a4a3d82c9b7a54e2dfb55cd81ea3bde0e58a7dcb | src/integ/groovy/com/msgilligan/bitcoin/rpc/BitcoinCLIAPISpec.groovy | src/integ/groovy/com/msgilligan/bitcoin/rpc/BitcoinCLIAPISpec.groovy | package com.msgilligan.bitcoin.rpc
import foundation.omni.BaseRegTestSpec
import spock.lang.Specification
/**
*
* Test of CLI API methods (all lowercase, matching RPC as closely as possible)
*
*/
class BitcoinCLIAPISpec extends BaseRegTestSpec {
def "return basic info" () {
when: "we request info"
... | Add a Spec for BTC CLI methods | Add a Spec for BTC CLI methods | Groovy | apache-2.0 | OmniLayer/OmniJ,dexX7/OmniJ,dexX7/bitcoin-spock,OmniLayer/OmniJ,dexX7/bitcoin-spock,dexX7/OmniJ,OmniLayer/OmniJ | |
263e9a6c86078bacf87d6ad828ac06f4ed898e71 | jruby-gradle-jar-plugin/src/integTest/groovy/com/github/jrubygradle/jar/JRubyJarIntegrationSpec.groovy | jruby-gradle-jar-plugin/src/integTest/groovy/com/github/jrubygradle/jar/JRubyJarIntegrationSpec.groovy | package com.github.jrubygradle.jar
import org.junit.Rule
import org.junit.rules.TemporaryFolder
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome
import spock.lang.*
class JRubyJarIntegrationSpec extends Specification {
@Rule
... | Introduce a very simple integration test for the default jrubyJar task | Introduce a very simple integration test for the default jrubyJar task
References #185
| Groovy | mit | raelik/jruby-gradle-plugin,raelik/jruby-gradle-plugin,raelik/jruby-gradle-plugin,MisumiRize/jruby-gradle-plugin,MisumiRize/jruby-gradle-plugin,MisumiRize/jruby-gradle-plugin,jamescway/jruby-gradle-plugin,jamescway/jruby-gradle-plugin,jamescway/jruby-gradle-plugin | |
8784ba7316b022f8a3184fcd9e151c778d80de11 | whelktool/scripts/cleanups/2021/03/lxl-3506-humor-to-humoristiska.groovy | whelktool/scripts/cleanups/2021/03/lxl-3506-humor-to-humoristiska.groovy | /**
* Changes genreForm 'Humor' (c9ps0zlw18d8n11) to 'Humoristiska skildringar'
* (cq2d5xpl9pl9zrst) for instances having one of the MARC fiction types.
*
* See LXL-3506 for more info.
*/
import whelk.util.DocumentUtil
List MARC_FICTION_TYPES = [
"https://id.kb.se/marc/FictionNotFurtherSpecified",
"https://i... | Add script for changing genreForm Humor to Humoristiska skildringar | Add script for changing genreForm Humor to Humoristiska skildringar
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
6e66202d3e8fae00804b1dcbc1d4e86b020c924a | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add cross-version performance test for local task output cache | Add cross-version performance test for local task output cache
+review REVIEW-6268
| Groovy | apache-2.0 | robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,blind... | |
5fba11a7dcb8e76e934c1aa78faa08a5ac99c295 | whelktool/scripts/cleanups/2021/11/lxl-2537-delete-broken-scb-links.groovy | whelktool/scripts/cleanups/2021/11/lxl-2537-delete-broken-scb-links.groovy | import whelk.util.DocumentUtil
PrintWriter removed = getReportWriter('removed.tsv')
selectByCollection('bib') { data ->
Map instance = data.graph[1]
String id = data.doc.shortId
List badPaths = []
// Remove broken links
boolean modified = DocumentUtil.traverse(instance) { value, path ->
... | Add script for removing broken SCB links | Add script for removing broken SCB links
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
50cac62861080de132d98288f49c565261fbe82f | src/test/groovy/bugs/Groovy8948.groovy | src/test/groovy/bugs/Groovy8948.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")... | Add a test for GROOVY-8948 | Add a test for GROOVY-8948
| Groovy | apache-2.0 | paulk-asert/groovy,armsargis/groovy,paulk-asert/incubator-groovy,paulk-asert/incubator-groovy,armsargis/groovy,shils/groovy,shils/groovy,shils/incubator-groovy,shils/groovy,apache/groovy,apache/incubator-groovy,apache/groovy,paulk-asert/incubator-groovy,shils/groovy,shils/incubator-groovy,apache/incubator-groovy,paulk-... | |
ad87e7822e728c1f823c77b48b8e15d516888747 | src/test/groovy/com/ofg/infrastructure/discovery/watcher/presence/DefaultDependencyPresenceOnStartupVerifierSpec.groovy | src/test/groovy/com/ofg/infrastructure/discovery/watcher/presence/DefaultDependencyPresenceOnStartupVerifierSpec.groovy | package com.ofg.infrastructure.discovery.watcher.presence
import com.ofg.infrastructure.discovery.watcher.presence.checker.NoInstancesRunningException
import org.apache.curator.x.discovery.ServiceCache
import org.apache.curator.x.discovery.ServiceInstance
import spock.lang.Specification
import static org.codehaus.gro... | package com.ofg.infrastructure.discovery.watcher.presence
import com.ofg.infrastructure.discovery.watcher.presence.checker.NoInstancesRunningException
import com.ofg.infrastructure.discovery.watcher.presence.checker.PresenceChecker
import org.apache.curator.x.discovery.ServiceCache
import org.apache.curator.x.discover... | Test checking interactions done by dependency verifier for optional service. | Test checking interactions done by dependency verifier for optional service.
| Groovy | apache-2.0 | ychulovskyy/micro-infra-spring,dstepanov/micro-infra-spring,ychulovskyy/micro-infra-spring,4finance/micro-infra-spring,RemboL/micro-infra-spring,spencergibb/micro-infra-spring,ofg-dmitrys/micro-infra-spring,ychulovskyy/micro-infra-spring,ofg-dmitrys/micro-infra-spring,sn0wolf/micro-infra-spring,ychulovskyy/micro-infra-... |
9b2386a2278c288ca911dfb22f2a0d1015ccd565 | src/test/groovy/bugs/Groovy3446Bug.groovy | src/test/groovy/bugs/Groovy3446Bug.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")... | Add a test for "GROOVY-3446: Method call resolves to statically imported method instead of equally named local method" | Add a test for "GROOVY-3446: Method call resolves to statically imported method instead of equally named local method"
| Groovy | apache-2.0 | paulk-asert/incubator-groovy,apache/groovy,armsargis/groovy,apache/incubator-groovy,paulk-asert/incubator-groovy,apache/incubator-groovy,jwagenleitner/incubator-groovy,shils/groovy,armsargis/groovy,jwagenleitner/incubator-groovy,paulk-asert/groovy,jwagenleitner/incubator-groovy,paulk-asert/groovy,apache/groovy,shils/in... | |
011660e232ce1a4c473716f80d24296368eb46a3 | whelktool/scripts/cleanups/2021/05/lxl-3594-move-hasNotation.groovy | whelktool/scripts/cleanups/2021/05/lxl-3594-move-hasNotation.groovy | Map langs = Collections.synchronizedMap([:])
selectBySqlWhere("collection = 'definitions' AND data#>>'{@graph,1,@type}' = 'Language'") { data ->
Map instance = data.graph[1]
String mainEntityId = instance."@id"
List prefLabels = instance.prefLabelByLang*.value
langs[mainEntityId] = prefLabels
}
Stri... | Add script for moving hasNotation | Add script for moving hasNotation
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
a9ead77b788b2ad852bead22a8029bf4ae870fa4 | 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/")
}
| Set up the instance URL | Set up the instance URL
| Groovy | agpl-3.0 | CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet | |
fc78fb8ef0c926a69b717b7568828594338f63a8 | scripts/_Events.groovy | scripts/_Events.groovy | eventCompileStart = { target ->
compileAST(basedir, classesDirPath)
}
def compileAST(def srcBaseDir, def destDir) {
ant.sequential {
println "Precompiling AST Transformations ..."
println "src ${srcBaseDir} ${destDir}"
path id: "grails.compile.classpath", compileClasspath
def cl... | Add hook to compile AST before project | Add hook to compile AST before project
| Groovy | apache-2.0 | ilopmar/grails-postgresql-extensions,Poundex/grails-postgresql-extensions,lmivan/grails-postgresql-extensions,davidbairdala/grails-postgresql-extensions,mochalov/grails-postgresql-extensions,PIWEEK/grails-postgresql-extensions,eamon316/grails-postgresql-extensions,gregopet/grails-postgresql-extensions,kaleidos/grails-p... | |
547e017fe4f0bdc55e0a2e7628fad4656429d097 | .test-infra/jenkins/job_bookkeeper_codecoverage.groovy | .test-infra/jenkins/job_bookkeeper_codecoverage.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Add Jenkins Configuration for Code Coverage nightly test | Add Jenkins Configuration for Code Coverage nightly test
Add a job using Jenkins DSL to run every night a JaCoCo code coverage report which runs tests and sends the report to Coveralls.io
Author: eolivelli <eolivelli@apache.org>
Reviewers: Sijie Guo <sijie@apache.org>, Venkateswararao Jujjuri (JV) <None>
This close... | Groovy | apache-2.0 | apache/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,ivankelly/bookkeeper,apache/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,ivankelly/bookkeeper,apache/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,ivankelly/bookkeeper,sijie/bookkeeper,sijie/bookkeeper,apache/bookkeeper,apache/bookkeeper,apache/bookkeeper | |
7921f71869d9858e39e2b4b7f36ede6f01ceaa4d | focused/closures.groovy | focused/closures.groovy | // Important: in Groovy, a closure is an object!
def myClosure = { println "Hello" }
myClosure()
// Closures can accept parameters, just like functions
def sayGreeting = { name -> println "Hello, ${name} !!!!" }
sayGreeting "John Doe"
// Timer function
def startTimer() {
def initialDate = new Date()
// return a... | Add file with examples about closure including timer | Add file with examples about closure including timer
| Groovy | mit | nbkhope/groovy-notes | |
7df5d6292debae68c8347e4a3eb2a27065f16885 | grails-app/taglib/net/kaleidos/shortener/ShortenerTagLib.groovy | grails-app/taglib/net/kaleidos/shortener/ShortenerTagLib.groovy | package net.kaleidos.shortener
class ShortenerTagLib {
static namespace = "shorter"
def urlShortenerService
private static final List EXCLUDE = ['action', 'controller', 'id', 'params']
private Map makeUri(Map attrs) {
def map = [:]
for (entry in attrs) {
if (!EXCLUDE.con... | Tag library that adds link and createLink tags that create (absolute) short links | Tag library that adds link and createLink tags that create (absolute) short links
| Groovy | apache-2.0 | kaleidos/grails-url-shortener | |
48fee743897664a2b5a923652ee39b3bb9410f2d | whelktool/scripts/2020/06/lxl-725-translationOf.groovy | whelktool/scripts/2020/06/lxl-725-translationOf.groovy | /*
* This remodels bib 041
*
* instanceOf.translationOf (041 $k) -> instanceOf.marc:intermediateLanguage
*
* instanceOf.originalVersion.language (041 $h)--> instanceOf.translationOf.language
*
* See LXL-725 for more info.
*/
PrintWriter scheduledForUpdate = getReportWriter("scheduled-for-update")
PrintWriter f... | Add script to change mapping of existing translations | Add script to change mapping of existing translations
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
a70c7635ced04a831d362ecd2dab0f1602e86d42 | src/test/groovy/bugs/Groovy8409Bug.groovy | src/test/groovy/bugs/Groovy8409Bug.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")... | Add a test and workaround for GROOVY-8409 | Add a test and workaround for GROOVY-8409
We should refine `GenericsTypeName` to distinguish different GenericsType with same name
GROOVY-8409 is not fixed yet...
| Groovy | apache-2.0 | paulk-asert/groovy,apache/groovy,shils/groovy,russel/incubator-groovy,russel/groovy,traneHead/groovy-core,russel/groovy,paulk-asert/incubator-groovy,paulk-asert/groovy,shils/incubator-groovy,paulk-asert/incubator-groovy,paulk-asert/incubator-groovy,armsargis/groovy,jwagenleitner/groovy,russel/groovy,paulk-asert/incubat... | |
2f3083d4b08355aad753e7884d046a43d06fe2ed | iris-api-tests/src/test/groovy/routerevision/RouteRevisionSpec.groovy | iris-api-tests/src/test/groovy/routerevision/RouteRevisionSpec.groovy | package routerevision
import groovyx.net.http.HttpResponseException
import spock.lang.Specification
import util.ClientFactory
class RouteRevisionSpec extends Specification {
def "request for route revision for terminal one"() {
def latKA = 49.008085
def lonKA = 8.403756
def uid = 130100... | Add api test for route revision api | Add api test for route revision api
refs #12548
| Groovy | agpl-3.0 | Contargo/iris,Contargo/iris,Contargo/iris | |
5eb41fe4cc9f60f996e46484e4142cd98315a799 | whelktool/scripts/2019/01/add-missing-marc-fulllevel.groovy | whelktool/scripts/2019/01/add-missing-marc-fulllevel.groovy | IMPORT_DATE = new Date().parse('yyyy-MM-dd', '2018-06-05')
boolean shouldSetFullLevel (record) {
createdDate = new Date().parse('yyyy-MM-dd', record.created)
if (createdDate.before(IMPORT_DATE))
return true
else if (record.technicalNote?.find { it['label']?.contains('Imported from')})
ret... | Add script to add encodingLevel: marc:FullLevel, where it is missing | Add script to add encodingLevel: marc:FullLevel, where it is missing
This global update of records is needed due to a incorrect
mapping, at the time of LibrisXL was released. All records that were
cataloged as marc:FullLevel, did not get any encodingLevel at all.
To correct this, the script adds encodingLvel: marc:Fu... | Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
c0cc256461a090889f5dcd6e2612408d8fd1134a | omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/activation/GracePeriodSpec.groovy | omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/activation/GracePeriodSpec.groovy | package foundation.omni.test.rpc.activation
import foundation.omni.BaseRegTestSpec
import org.junit.internal.AssumptionViolatedException
import spock.lang.Unroll
/**
* Specification for the grace period of feature activations.
*
* Features are activated at specific block heights, which must be within the range of ... | Add specification for the grace period of feature activations | Add specification for the grace period of feature activations
Features are activated at specific block heights, which must be within
the range of a grace period to ensure users have enough time to update
their clients.
The use of activation commands is restricted to whitelisted senders.
To whitelist a source to allo... | Groovy | apache-2.0 | OmniLayer/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ | |
12e4ae05b392e484c21cb29938596620a8e9675b | whelktool/scripts/cleanups/2020/11/lxl-3436-descriptionCreator-lists.groovy | whelktool/scripts/cleanups/2020/11/lxl-3436-descriptionCreator-lists.groovy | PrintWriter manualReview = getReportWriter("manualReview")
String where = "collection = 'bib' and jsonb_typeof( data#>'{@graph,0,descriptionCreator}' ) = 'array'"
selectBySqlWhere(where) { data ->
// The overwhelming majority:
if ( data.graph[0].descriptionCreator.any { it["@id"] == "https://libris.kb.se/lib... | Add a script for cleaning up 040a/descriptionCreator lists. | Add a script for cleaning up 040a/descriptionCreator lists.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
7a9c4e827369d07bb7b420b2e420cfaa08a0721a | whelktool/scripts/cleanups/2020/10/lxl-3412-remove-incorrect-carrierType-links.groovy | whelktool/scripts/cleanups/2020/10/lxl-3412-remove-incorrect-carrierType-links.groovy | import whelk.util.DocumentUtil
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
def incorrectUris = ['https://id.kb.se/marc/KitMaterialType-', 'https://id.kb.se/marc/BooksItemType-',
'https://id.kb.se/marc/Item... | Add script for removing incorrect carrierType links | Add script for removing incorrect carrierType links
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
f2e0f024a1a5f67f2ed48192195ac8c0d5c50776 | oort-aws/src/main/groovy/com/netflix/spinnaker/oort/aws/health/AwsHealthIndicator.groovy | oort-aws/src/main/groovy/com/netflix/spinnaker/oort/aws/health/AwsHealthIndicator.groovy | /*
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Add healthcheck for validity of AWS creds. | Add healthcheck for validity of AWS creds.
Fixes #132
| Groovy | apache-2.0 | duftler/clouddriver,spinnaker/clouddriver,cfieber/clouddriver,spinnaker/clouddriver,ajordens/clouddriver,ajordens/clouddriver,danveloper/clouddriver,ajordens/clouddriver,ajordens/clouddriver,cfieber/clouddriver,danveloper/clouddriver,stitchfix/clouddriver,duftler/clouddriver,lookout/clouddriver,spinnaker/clouddriver,cf... | |
3006b095d2a514f3783076cce3f195c6b8fb5934 | example-jobs/SampleBuildFlow-example.groovy | example-jobs/SampleBuildFlow-example.groovy | import jenkins.automation.builders.FlowJobBuilder
def flowJob = new FlowJobBuilder(
name: 'GeneratedFlowJob',
description: 'this is a simple build flow job',
jobs:['job1', 'job2'],
emails:['joe@example.com', 'jane@example.com']
).build(this);
flowJob.with{
logRotator{
numTo... | import jenkins.automation.builders.FlowJobBuilder
def flowJob = new FlowJobBuilder(
name: 'GeneratedFlowJob',
description: 'this is a simple build flow job',
jobs:['job1', 'job2'],
emails:['joe@example.com', 'jane@example.com']
).build(this);
flowJob.with{
logRotator{
numTo... | Update example build flow job to use a configure block for buildNeedsWorkspace that works with job-dsl 1.42, which now includes buildNeedsWorkspace; this new block is compatible with all versions of job-dsl, not just pre-1.42 | Update example build flow job to use a configure block for buildNeedsWorkspace that works with job-dsl 1.42, which now includes buildNeedsWorkspace; this new block is compatible with all versions of job-dsl, not just pre-1.42
| Groovy | cc0-1.0 | Scotchester/jenkins-automation,higs4281/jenkins-automation,lfatty/jenkins-automation,Scotchester/jenkins-automation,higs4281/jenkins-automation |
950b7cf4f4e35ab9653120da71fac3f02778f522 | .mvn/gradle-enterprise-custom-user-data.groovy | .mvn/gradle-enterprise-custom-user-data.groovy | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* th... | Add a Gradle Enterprise cache for faster builds * Add maven profiles as tags in ge.xwiki.org | XINFRA-338: Add a Gradle Enterprise cache for faster builds
* Add maven profiles as tags in ge.xwiki.org
| Groovy | lgpl-2.1 | xwiki/xwiki-commons,xwiki/xwiki-commons | |
6320d7bb80e06fff87523052e97a3cf66194494c | whelktool/scripts/cleanups/2020/12/lxl-2612-byggnadsstyrelsen-broken-links.groovy | whelktool/scripts/cleanups/2020/12/lxl-2612-byggnadsstyrelsen-broken-links.groovy | import whelk.util.DocumentUtil
String where = """
collection = 'bib'
AND (data#>>'{@graph,1,associatedMedia}' LIKE '%http://www.fastighetswiki.se/wiki%'
OR data#>>'{@graph,1,marc:versionOfResource}' LIKE '%http://www.fastighetswiki.se/wiki%'
OR data#>>'{@graph,1,isPrimaryTopicOf}' LIKE '%http... | Add script for handling instances with broken fastighetswiki links | Add script for handling instances with broken fastighetswiki links
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
a65ba2b6466e928ccf33723fbc9ee59d532ca334 | db/migrate/007_Phase2_Construction1/011_change_action_lookup.groovy | db/migrate/007_Phase2_Construction1/011_change_action_lookup.groovy | // Constraint table for the discriminator column in CHANGES
class ChangeActionLookup extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
createTable("change_actions") { t ->
t.setIncludePrimaryKey(false)
t.addColumn("action", "string", primaryKey: true, limit: 8)
... | Add LUT and constraint for change actions | Add LUT and constraint for change actions
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1263 0d517254-b314-0410-acde-c619094fa49f
| Groovy | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror | |
65c6d331d913e49bd3661456238fad3253ff52d6 | subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformContinuousBuildIntegrationTest.groovy | subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformContinuousBuildIntegrationTest.groovy | /*
* Copyright 2022 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 tests for Artifact Transforms and continuous build | Add tests for Artifact Transforms and continuous build
| Groovy | apache-2.0 | gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpira... | |
de3d5f2606d2c8346897a5894c2795aa79356043 | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy |
grails.project.dependency.resolution = {
inherits "global" // inherit Grails' default dependencies
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
repositories {
grailsPlugins()
grailsHome()
mavenCentral()
}
dependencies {
... | Upgrade to 1.0.6. Trunk / Scripts clean up. | Upgrade to 1.0.6. Trunk / Scripts clean up.
| Groovy | apache-2.0 | acampbell3000/grails-contact-form | |
1571be415fe7c123c21267d7090a077faa74dd1e | muon-core/src/test/groovy/io/muoncore/channel/ZipChannelSpec.groovy | muon-core/src/test/groovy/io/muoncore/channel/ZipChannelSpec.groovy | package io.muoncore.channel
import io.muoncore.channel.impl.ZipChannel
import io.muoncore.message.MuonInboundMessage
import io.muoncore.message.MuonMessageBuilder
import io.muoncore.message.MuonOutboundMessage
import spock.lang.Specification
import spock.util.concurrent.PollingConditions
class ZipChannelSpec extends ... | Add functional and performance check of ZipChannel | Add functional and performance check of ZipChannel
| Groovy | apache-2.0 | microserviceux/muon-java,microserviceux/muon-java | |
970acc01d545e6aa5ed7b2bbc81b06345cd75c7c | whelktool/scripts/cleanups/2020/06/lxl-3187-tgm-relink-saogf-links.groovy | whelktool/scripts/cleanups/2020/06/lxl-3187-tgm-relink-saogf-links.groovy | /**
*
* See LXL-3187 for more information
*/
report = getReportWriter("report.txt")
gmgpcPrefixSwe = "https://id.kb.se/term/gmgpc/swe/"
saogfPrefix = "https://id.kb.se/term/saogf/"
selectByCollection('auth') { data ->
def instance = data.graph[1]
if (!instance?.inScheme?.'@id'?.contains("https://id.kb.se/... | Add script for relinking tgm terms | Add script for relinking tgm terms
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
160c5d22969347d80a92429782aa1e183aac7a75 | src/test/groovy/sdkman/specs/InitialisationSpec.groovy | src/test/groovy/sdkman/specs/InitialisationSpec.groovy | package sdkman.specs
import sdkman.env.BashEnv
import sdkman.env.SdkManBashEnvBuilder
import sdkman.stubs.CurlStub
import spock.lang.Specification
import static sdkman.utils.TestUtils.prepareBaseDir
class InitialisationSpec extends Specification {
CurlStub curlStub
BashEnv bash
File sdkmanBaseDir
S... | Add test to prevent missing candidates | Add test to prevent missing candidates
| Groovy | apache-2.0 | shanman190/sdkman-cli,GsusRecovery/sdkman-cli,busches/gvm-cli,sdkman/sdkman-cli,skpal/sdkman-cli,GsusRecovery/sdkman-cli,skpal/sdkman-cli,gvmtool/gvm-cli,jbovet/gvm | |
077fc4937e9ede72b5b98be08ae05b13e6676a48 | whelktool/scripts/cleanups/2021/01/lxl-3484-redirect-genreForm-links.groovy | whelktool/scripts/cleanups/2021/01/lxl-3484-redirect-genreForm-links.groovy | import whelk.util.DocumentUtil
List<Map> genreForms = [['oldId': 'xv8cln7g41q4n6h', 'newId': 'gdsw32q030cdkdm'],
['oldId': 'wt7bkm6f11w8wkq', 'newId': 'xv8ckc8g43hck13']]
genreForms.each { gf ->
String where = "id in (SELECT id FROM lddb__dependencies WHERE dependsonid = '${gf['oldId']}')"... | Add script for redirecting genreForm links | Add script for redirecting genreForm links
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
f74c0dc3fb16a2b585434a21a79c440e4e8d22ac | src/main/groovy/gngs/tools/VCFtoPed.groovy | src/main/groovy/gngs/tools/VCFtoPed.groovy | package gngs.tools
import gngs.*
/**
* Simple utility to extract sample id and sex from VCF file,
* and then write that information as a PED file. Parents are left
* undefined.
*
* @author Simon Sadedin
*/
class VCFtoPed extends ToolBase {
List<VCF> vcfs = null
Map<String,VCF> samplesToVCF =... | Add simple tool to write VCF samples in PED format | Add simple tool to write VCF samples in PED format | Groovy | lgpl-2.1 | ssadedin/groovy-ngs-utils,ssadedin/groovy-ngs-utils,ssadedin/groovy-ngs-utils,ssadedin/groovy-ngs-utils | |
905ad6244375069b747c594e384857e00a43ad1d | jenkins/lib/vars/notifyStatus.groovy | jenkins/lib/vars/notifyStatus.groovy | // Copyright (C) 2017 The Bazel Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | Add a step to notify by mail about build status | Add a step to notify by mail about build status
That should allow us to customize the way we do
notification about build status in the future.
Change-Id: Ia3d1caaf84754a495034950491c82b4d905f8858
| Groovy | apache-2.0 | bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.