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 |
|---|---|---|---|---|---|---|---|---|---|
85e9d8f4c19cb7cf201e6bae5aaebf10846fa912 | subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildCleanupIntegrationTest.groovy | subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildCleanupIntegrationTest.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 integ test for running build cleanup for composite builds | Add integ test for running build cleanup for composite builds
+review REVIEW-6424
| Groovy | apache-2.0 | gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle... | |
a21ffd7ea2ce989e69fdfcdaf9979f538a1569ef | examples/map_states_function.groovy | examples/map_states_function.groovy | import geoscript.layer.Shapefile
import geoscript.render.Map
import geoscript.style.*
import geoscript.filter.*
def myCentroid = new Function("myCentroid(the_geom)", {g ->
g.centroid
})
def statesShp = new Shapefile("states.shp")
statesShp.style = (new Fill("#E6E6E6") + new Stroke("#4C4C4C",0.5)) +
(new S... | Add an example of creating a custom Filter using a Groovy closure and then using it in a Symbolizer to create a Map | Add an example of creating a custom Filter using a Groovy closure and then using it in a Symbolizer to create a Map
| Groovy | mit | sbortman/geoscript-groovy,geoscript/geoscript-groovy,geoscript/geoscript-groovy,sbortman/geoscript-groovy | |
2169a0024aa2ddb83a4ab975f061f8a14f4c1c11 | whelktool/scripts/cleanups/2019/02/delete-weeded-holdings-for-Li/delete-weeded-holdings-for-Li.groovy | whelktool/scripts/cleanups/2019/02/delete-weeded-holdings-for-Li/delete-weeded-holdings-for-Li.groovy | /*
* This deletes all holdings for Li with availability 'UTGALLRAD'.
*
* See LXL-2275 for more info.
*
*/
PrintWriter failedHoldIDs = getReportWriter("failed-to-delete-holdIDs")
PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion")
selectBySqlWhere("""
collection = 'hold' AND
... | Add script to delete weeded holdings for Li | Add script to delete weeded holdings for Li
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
58c67d56dc3570834365541540f96e8f92e2b675 | tinbo-finance/console_output_to_finance_input.groovy | tinbo-finance/console_output_to_finance_input.groovy | import java.nio.file.Files
import java.nio.file.Paths
import java.time.format.DateTimeFormatter
base = "/home/artur/Tinbo/finance/"
file = "${base}Finance__"
save = "${base}Recovered"
before_formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")
after_formatter = DateTimeFormatter.ISO_DATE_TIME
def recoverDateT... | Add recover script for finance | Add recover script for finance
If accidentally you modify a filtered list in memory and saves the modification, all your data is lost :O.
To recover make sure to use `ls --all` before any modification :). Now you can recover by parsing the console output.
| Groovy | apache-2.0 | arturbosch/TiNBo,arturbosch/TiNBo,arturbosch/TiNBo | |
659c59ba4481d0e36d03a00fabeecc2ee30d0904 | whelktool/scripts/cleanups/2020/10/lxl-2134-descriptionUpgrader-must-be-list.groovy | whelktool/scripts/cleanups/2020/10/lxl-2134-descriptionUpgrader-must-be-list.groovy | /**
* Turn descriptionUpgrader into a list.
*
* See LXL-2134 for more info.
*/
import whelk.util.DocumentUtil
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
String where = "data#>>'{@graph,0,descriptionUpgrader}' IS NOT NULL"... | Add script for turning descriptionUpgrader into a list | Add script for turning descriptionUpgrader into a list
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
942b0e929cb51057e390e5044137861d9e2b7246 | rundeckapp/grails-app/taglib/rundeck/PluginTagLib.groovy | rundeckapp/grails-app/taglib/rundeck/PluginTagLib.groovy | package rundeck
import com.dtolabs.rundeck.core.common.Framework
import rundeck.services.FrameworkService
class PluginTagLib {
def static namespace = "stepplugin"
def FrameworkService frameworkService
def display={attrs,body->
def step=attrs.step
def Framework framework = frameworkService... | package rundeck
import com.dtolabs.rundeck.core.common.Framework
import rundeck.services.FrameworkService
class PluginTagLib {
def static namespace = "stepplugin"
def FrameworkService frameworkService
def display={attrs,body->
def step=attrs.step
def Framework framework = frameworkService... | Handle unloadable plugin descriptor in taglib | Handle unloadable plugin descriptor in taglib
| Groovy | apache-2.0 | rundeck/rundeck,tjordanchat/rundeck,tjordanchat/rundeck,variacode95/rundeck,rophy/rundeck,damageboy/rundeck,jgpacker/rundeck,variacode/rundeck,jamieps/rundeck,variacode/rundeck,rundeck/rundeck,rophy/rundeck,damageboy/rundeck,rundeck/rundeck,jamieps/rundeck,rundeck/rundeck,damageboy/rundeck,variacode95/rundeck,tjordanch... |
53b655740c23f67f51bea60089b771b8769c0ff9 | src/test/groovy/org/yatech/jedis/utils/lua/LuaLocalSpec.groovy | src/test/groovy/org/yatech/jedis/utils/lua/LuaLocalSpec.groovy | package org.yatech.jedis.utils.lua
import spock.lang.Specification
/**
* Created by yinona on 16/10/15.
*/
class LuaLocalSpec extends Specification {
def 'equals'() {
given:
def local1a = new LuaLocalValue('local1')
def local1b = new LuaLocalValue('local1')
def local2 = new LuaL... | Add unit tests for lua local | Add unit tests for lua local
| Groovy | mit | yatechorg/jedis-utils,yatechorg/jedis-utils | |
50992eb66a412994ea411038adc4c76a39a10f1d | subprojects/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/GradleBuildSmokeTest.groovy | subprojects/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/GradleBuildSmokeTest.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... | Add Gradle build smoke test that would fail on deprecations | Add Gradle build smoke test that would fail on deprecations
This traverses only a small path in our build logic catching any deprecations
only in that path.
To really catch all possible deprecations in our own build logic we should
run nearly the whole pipeline using newly built Gradle distribution and exercise
as muc... | Groovy | apache-2.0 | blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira... | |
f832288017ab46d0ce50a7f5e68c6644b0e39f7b | varnish-exec-spring/src/test/groovy/com/github/platan/varnishexec/spring/NoAnnotationSpec.groovy | varnish-exec-spring/src/test/groovy/com/github/platan/varnishexec/spring/NoAnnotationSpec.groovy | package com.github.platan.varnishexec.spring
import org.springframework.boot.test.context.SpringBootTest
import spock.lang.Specification
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class NoAnnotationSpec extends Specification {
def "check if varnish is not running on default port ... | Check if varnishd process is not running | Check if varnishd process is not running
| Groovy | mit | platan/varnish-exec,platan/varnish-exec | |
cfa7955c84bd7b305c298bb13b5757fe65dfbf94 | subprojects/language-native/src/integTest/groovy/org/gradle/language/cpp/CppSystemHeaderDiscoveryIntegrationTest.groovy | subprojects/language-native/src/integTest/groovy/org/gradle/language/cpp/CppSystemHeaderDiscoveryIntegrationTest.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 an int test to verify that the C and C++ standard libraries are discovered for each tool chain. | Add an int test to verify that the C and C++ standard libraries are discovered for each tool chain.
| Groovy | apache-2.0 | lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,grad... | |
ffb159a6931a82c8b761cd05dc03ed43e6ac78e2 | src/test/groovy/graphql/IssueNonNullDefaultAttribute.groovy | src/test/groovy/graphql/IssueNonNullDefaultAttribute.groovy | package graphql
import graphql.language.SourceLocation
import graphql.schema.DataFetcher
import graphql.schema.DataFetchingEnvironment
import spock.lang.Specification
import static graphql.schema.idl.RuntimeWiring.newRuntimeWiring
import static graphql.schema.idl.TypeRuntimeWiring.newTypeWiring
// See https://github... | Add a failing test case to illustrate new behaviour for non-null attributes with default values. | Add a failing test case to illustrate new behaviour for non-null attributes with default values.
See https://github.com/facebook/graphql/pull/418
| Groovy | mit | graphql-java/graphql-java,graphql-java/graphql-java | |
41168f927ae33557416aa16837c83d290c2d43b8 | src/groovy/ozone/owf/grails/services/model/StackServiceModel.groovy | src/groovy/ozone/owf/grails/services/model/StackServiceModel.groovy | package ozone.owf.grails.services.model
class StackServiceModel extends AbstractServiceModel {
Long id
String name
Integer stackPosition
String description
String stackContext
String imageUrl
String descriptorUrl
Integer totalDashboards = 0
Integer totalUsers = 0
Integer totalGr... | Develop controllers and services (5) | OWF-6299: Develop controllers and services (5) | Groovy | apache-2.0 | dotunolafunmiloye/owf-framework,ozoneplatform/owf-framework,ozoneplatform/owf-framework,dotunolafunmiloye/owf-framework,ozoneplatform/owf-framework,dotunolafunmiloye/owf-framework,ozoneplatform/owf-framework,dotunolafunmiloye/owf-framework,dotunolafunmiloye/owf-framework,dotunolafunmiloye/owf-framework,dotunolafunmiloy... | |
c9630a13f803f263465e0970fbcb3397d90134cb | src/test/org/codehaus/groovy/tools/shell/expr/TimeItTest.groovy | src/test/org/codehaus/groovy/tools/shell/expr/TimeItTest.groovy | /*
* Copyright 2003-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Add tests for 'time = { it() }' | Add tests for 'time = { it() }'
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@8435 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | ebourg/groovy-core,groovy/groovy-core,adjohnson916/incubator-groovy,guangying945/incubator-groovy,adjohnson916/incubator-groovy,russel/incubator-groovy,adjohnson916/incubator-groovy,nobeans/incubator-groovy,paplorinc/incubator-groovy,paulk-asert/incubator-groovy,pickypg/incubator-groovy,bsideup/groovy-core,jwagenleitne... | |
ef959022e1fd2f2b08cb26805766b47bbd2743d8 | whelktool/scripts/cleanups/2020/11/lxl-3379-link-isPartOf.groovy | whelktool/scripts/cleanups/2020/11/lxl-3379-link-isPartOf.groovy | /*
This script is a partial copy of: librisxl/whelktool/scripts/2020/link-local-things/script.groovy
The intended purpose is to link up "isPartOf" relations.
*/
selectBySqlWhere("""
data#>>'{@graph,1}' LIKE '%"controlNumber":%'
OR data#>>'{@graph,2}' LIKE '%"controlNumber":%'
AND collection = 'bib'
"""... | Add script for linking up isPartOf. | Add script for linking up isPartOf.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
2e2dfae4d658e7800735c800f3ba87be745863a9 | whelktool/scripts/cleanups/2019/02/move-holding-Jox-to-Jo/move-jox-holdings.groovy | whelktool/scripts/cleanups/2019/02/move-holding-Jox-to-Jo/move-jox-holdings.groovy | /*
* This moves all holdings for Jox to Jo.
*
* See LXL-2248 for more info.
*
*/
String CURRENT_SIGEL = 'https://libris.kb.se/library/Jox'
String NEW_SIGEL = 'https://libris.kb.se/library/Jo'
PrintWriter scheduledForMove = getReportWriter("scheduled-for-move")
PrintWriter notMoved = getReportWriter("refused-to-mo... | Add script for moving Jox holdings to Jo | Add script for moving Jox holdings to Jo
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
23d445a3a276a5602bff3653d6ea9e705139ae94 | whelktool/scripts/cleanups/2019/10/lxl-2292-remove-sweb-holds/delete-sweb-holdings.groovy | whelktool/scripts/cleanups/2019/10/lxl-2292-remove-sweb-holds/delete-sweb-holdings.groovy | PrintWriter failedHoldIDs = getReportWriter("failed-to-delete-holdIDs")
PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion")
String query = "data#>>'{@graph,1,heldBy,@id}' = 'https://libris.kb.se/library/Sweb')"
selectBySqlWhere(query, silent: false) { hold ->
if (hold.doc.sigel == "Sweb") ... | Delete all holding posts with sigel Sweb. | Delete all holding posts with sigel Sweb.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
c49ce585ddcd8ff8aa26b91f569d0438bc8c7c53 | impl/src/main/java/org/dukecon/server/impl/ServletCustomizer.groovy | impl/src/main/java/org/dukecon/server/impl/ServletCustomizer.groovy | package org.dukecon.server.impl
import groovy.util.logging.Slf4j
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
import org.springframework.boot.context.embedded.MimeMappings
import org.springfram... | Set correct MIME Type for cache manifest | Set correct MIME Type for cache manifest
| Groovy | mit | jugda/dukecon_server,dukecon/dukecon_server,jugda/dukecon_server,dukecon/dukecon_server,dukecon/dukecon_server,jugda/dukecon_server | |
4fff216fd49b206060ca1bdf413a49c5fb8d3c8e | whelktool/scripts/cleanups/2020/10/lxl-2628-saogf-to-barngf.groovy | whelktool/scripts/cleanups/2020/10/lxl-2628-saogf-to-barngf.groovy | /**
* Change saogf Ljudböcker to barngf Ljudböcker for anything that has intendedAudience Juvenile
*
* See LXL-2628 for more info.
*/
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
String where = """
collection = 'bib'... | Add script for changing genreForm saogf -> barngf for Juvenile works | Add script for changing genreForm saogf -> barngf for Juvenile works
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
eb5e35eedd4b48e8c3925a477bb45cbb4d9ab73b | src/test/groovy/com/github/vbauer/yta/model/TranslationSpec.groovy | src/test/groovy/com/github/vbauer/yta/model/TranslationSpec.groovy | package com.github.vbauer.yta.model
import spock.lang.Specification
/**
* Tests for {@link Translation}.
*
* @author Vladislav Bauer
*/
class TranslationSpec extends Specification {
def "Check factory method"() {
def direction = Direction.of(Language.EN, Language.RU)
def text = "text"
... | Add unit tests for translation model | Add unit tests for translation model
| Groovy | mit | vbauer/yandex-translate-api,vbauer/yandex-translate-api | |
8694bb33fac97a1a09ac47ee83f8fb7fd5340667 | src/test/groovy/com/devsoap/plugin/integration/PluginVersionCheckTest.groovy | src/test/groovy/com/devsoap/plugin/integration/PluginVersionCheckTest.groovy | package com.devsoap.plugin.integration
import com.devsoap.plugin.tasks.CreateProjectTask
import org.junit.Test
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertFalse
import static org.junit.Assert.assertTrue
/**
* Created by john on 7/17/17.
*/
class PluginVersionCheckTest extends I... | Add test for plugin version check | Add test for plugin version check
| Groovy | apache-2.0 | johndevs/gradle-vaadin-plugin | |
3d4971518c34bafde90714451929ae14e783b60a | whelktool/scripts/cleanups/2021/06/lxl-3591-uncompleted-751.groovy | whelktool/scripts/cleanups/2021/06/lxl-3591-uncompleted-751.groovy | String where = """
collection = 'auth'
AND data#>>'{@graph,0,_marcUncompleted}' LIKE '%\"751\"%'
"""
Map SUBFIELD_MAPPINGS =
[
"0": "marc:recordControlNumber",
"a": "marc:geographicName",
"x": "marc:generalSubdivision",
"y": "marc:chronolo... | Add script for mapping uncompleted 751 | Add script for mapping uncompleted 751
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
c35f1e7ef8183b4267674076bb77c0f7e3cc6d19 | docs/web_services/examples/groovy/export_annotations_to_chado.groovy | docs/web_services/examples/groovy/export_annotations_to_chado.groovy | #!/usr/bin/env groovy
@Grab(group = 'org.json', module = 'json', version = '20140107')
@Grab(group = 'org.codehaus.groovy.modules.http-builder', module = 'http-builder', version = '0.7.2')
import groovyx.net.http.RESTClient
import org.json.JSONObject
String usageString = "Example: " +
"./export_annotations_t... | Add a example script that utilizes the webservices for Chado export | Add a example script that utilizes the webservices for Chado export
| Groovy | bsd-3-clause | erasche/Apollo,erasche/Apollo,erasche/Apollo,erasche/Apollo,erasche/Apollo | |
2edc21a3916f3d4aca00dbc93d6816023ce144ea | whelktool/scripts/cleanups/2021/05/lxl-3583-remove-hold-unhandled-541-583.groovy | whelktool/scripts/cleanups/2021/05/lxl-3583-remove-hold-unhandled-541-583.groovy | /**
* Removes 541 and 583 from _marcUncompleted in holds.
*
* See LXL-3583 for more info.
*/
where = "collection = 'hold' AND deleted = false AND data#>>'{@graph,0,_marcUncompleted}' ~ '\"541\"|\"583\"'"
selectBySqlWhere(where) { data ->
List marcUncompleted = asList(data.graph[0]._marcUncompleted)
boolean... | Add script for removing 541/583 from _marcUncompleted in holds | Add script for removing 541/583 from _marcUncompleted in holds
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
8d727f21980dc9ebb23c864be8ec3f6300a81028 | ReferenceLibrary/src/test/easyb/remove_reference_by_name_Story.groovy | ReferenceLibrary/src/test/easyb/remove_reference_by_name_Story.groovy | /**
* @author rimi
*/
import referencelibrary.io.StubIO
import referencelibrary.App
import referencelibrary.data.StubDao
import referencelibrary.ui.UI
description 'A reference can be removed by name'
scenario "removing by correct name removes reference", {
given 'removing reference is selected and reference na... | Add remove reference easyb test | Add remove reference easyb test
| Groovy | mit | Mahtimursut/ohtu | |
c4e144f9cc9738644ba9697ad2d93ff81375c977 | rest-tests/src/test/groovy/org/hawkular/metrics/rest/CORSITest.groovy | rest-tests/src/test/groovy/org/hawkular/metrics/rest/CORSITest.groovy | /*
* Copyright 2014-2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | Add a simple test for CORS filters, the response status should always be 200, because the request should never reach the routers since this is a pre-flight call. | [HWKMETRICS-225] Add a simple test for CORS filters, the response status should always be 200, because the request should never reach the routers since this is a pre-flight call.
| Groovy | apache-2.0 | burmanm/hawkular-metrics,spadgett/hawkular-metrics,burmanm/hawkular-metrics,jotak/hawkular-metrics,hawkular/hawkular-metrics,mwringe/hawkular-metrics,pilhuhn/rhq-metrics,burmanm/hawkular-metrics,tsegismont/hawkular-metrics,pilhuhn/rhq-metrics,spadgett/hawkular-metrics,burmanm/hawkular-metrics,mwringe/hawkular-metrics,h... | |
160944cd63c063e8e201613310ad4e491fa60a8e | whelktool/scripts/cleanups/2021/10/lxl3681-clean-gov-404-uris.groovy | whelktool/scripts/cleanups/2021/10/lxl3681-clean-gov-404-uris.groovy | import whelk.util.Statistics
import whelk.util.DocumentUtil
class Script {
static Statistics s = new Statistics(10)
}
selectByCollection('bib') { bib ->
boolean saveMe = false
def whelk = bib.whelk
DocumentUtil.traverse(bib.doc.data, { value, path ->
if (!value || !(value instanceof Map) || !v... | Add script for removing links to 404ing marc types | Add script for removing links to 404ing marc types
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
a7ef6a56a4bcd1ee6c377338556c5648624b0205 | test/integration/org/tsaap/directory/ActivationKeyServiceSpec.groovy | test/integration/org/tsaap/directory/ActivationKeyServiceSpec.groovy | package org.tsaap.directory
import org.apache.commons.lang.time.DateUtils
import spock.lang.*
/**
*
*/
class ActivationKeyServiceSpec extends Specification {
ActivationKey activationKey
ActivationKeyService activationKeyService
User user1
User user2
def setup() {
user1 = new User(firstN... | Create test for removing old activation keys | Create test for removing old activation keys
| Groovy | agpl-3.0 | TSaaP/tsaap-notes,TSaaP/tsaap-notes,elaastic/elaastic-questions,elaastic/elaastic-questions,elaastic/elaastic-questions | |
d65b0faa6b99516fd00be8e04c121420ce33263c | whelktool/scripts/cleanups/2021/03/lxl-3512-remove-sameAs-from-closeMatch-in-auth.groovy | whelktool/scripts/cleanups/2021/03/lxl-3512-remove-sameAs-from-closeMatch-in-auth.groovy | /**
* Removes sameAs from closeMatch in auth records.
*
* See LXL-3512 for more info.
*/
String where = """
collection = 'auth' AND
deleted = false AND
data#>>'{@graph,1,closeMatch}' LIKE '%"sameAs":%'
"""
selectBySqlWhere(where) { data ->
boolean modified = false
data.graph[1].closeMatch?.each {
... | Add script for removing sameAs from closeMatch in auth records | Add script for removing sameAs from closeMatch in auth records
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
9bc87e30097510cf6a74d0f3a82ae324e39385a0 | plugin/src/test/groovy/digital/wup/android_maven_publish/DefaultPublishConfigurationTest.groovy | plugin/src/test/groovy/digital/wup/android_maven_publish/DefaultPublishConfigurationTest.groovy | package digital.wup.android_maven_publish
import org.junit.Assert
import org.junit.Test
class DefaultPublishConfigurationTest {
@Test
void testExample() {
Assert.assertTrue(true)
}
} | Add an empty unit test | Add an empty unit test
| Groovy | apache-2.0 | wupdigital/android-maven-publish | |
4348a261842f1b65ab4c2d40f4fcbe64ef69c203 | scripts/AdditionalSubsets.groovy | scripts/AdditionalSubsets.groovy | import edu.sfsu.ntd.phenometrainer.Dataset
import edu.sfsu.ntd.phenometrainer.Image
import edu.sfsu.ntd.phenometrainer.Subset
import edu.sfsu.ntd.phenometrainer.SubsetImage
/*
* Copyright (c) 2013 Daniel Asarnow
*/
/**
*
* @author Daniel Asarnow
*/
def ds = Dataset.get(5)
def subset = new Subset()
ds.addToSubs... | Add the day 2-3 subset | Add the day 2-3 subset
| Groovy | agpl-3.0 | asarnow/qdrec,asarnow/qdrec,asarnow/qdrec | |
a5b0947b9186c35b61535b3b41c3ad21d339ae2c | projects/core/src/main/db/migrate/007_construction_5/001_rename_ae_report_expedited_for_csm.groovy | projects/core/src/main/db/migrate/007_construction_5/001_rename_ae_report_expedited_for_csm.groovy | class RenameAeReportExpeditedForCsm extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
execute("UPDATE csm_protection_group "
+ "SET protection_group_name='gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport' "
+ "WHERE protection_group_id=-3")
exe... | Rename CSM PGs, PEs, and Roles for AER -> Expedited AER rename | Rename CSM PGs, PEs, and Roles for AER -> Expedited AER rename
SVN-Revision: 2037
| Groovy | bsd-3-clause | CBIIT/caaers,CBIIT/caaers,NCIP/caaers,NCIP/caaers,NCIP/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,CBIIT/caaers | |
ae463cd8e9a488d501d884598a806ee0d10a8b8a | src/test/groovy/bugs/Groovy5852Bug.groovy | src/test/groovy/bugs/Groovy5852Bug.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-5852: Static import on demand resolves capitalised reference" | Add a test for "GROOVY-5852: Static import on demand resolves capitalised reference"
| Groovy | apache-2.0 | jwagenleitner/incubator-groovy,shils/groovy,armsargis/groovy,jwagenleitner/groovy,armsargis/groovy,jwagenleitner/incubator-groovy,paulk-asert/incubator-groovy,paulk-asert/groovy,paulk-asert/groovy,paulk-asert/incubator-groovy,apache/incubator-groovy,armsargis/groovy,shils/incubator-groovy,apache/groovy,apache/incubator... | |
8be958eeb418b4107053d76a55e0dd022288cdbf | subprojects/plugins/src/integTest/groovy/org/gradle/groovy/GroovySecurityManagerIssuesIntegrationTest.groovy | subprojects/plugins/src/integTest/groovy/org/gradle/groovy/GroovySecurityManagerIssuesIntegrationTest.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 a test to reproduce a SecurityManager issue with groovy tests | [GRADLE-2170] Add a test to reproduce a SecurityManager issue with groovy tests
+review
| Groovy | apache-2.0 | robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,ls... | |
7f613e9c746699f13449ea89b67dd47c8196d50f | src/test/groovy/com/netflix/gradle/plugins/deb/DebPluginLauncherSpec.groovy | src/test/groovy/com/netflix/gradle/plugins/deb/DebPluginLauncherSpec.groovy | package com.netflix.gradle.plugins.deb
import com.netflix.gradle.plugins.packaging.SystemPackagingPlugin
import nebula.test.IntegrationSpec
import spock.lang.Ignore
class DebPluginLauncherSpec extends IntegrationSpec {
/**
* This is sorta cheating since a Gradle copy task will always be up to date if there'... | Test that shows that inputs can work, but it proves that delegate annotations are not being included. | Test that shows that inputs can work, but it proves that delegate annotations are not being included.
| Groovy | apache-2.0 | ykirpichev/gradle-ospackage-plugin,Turbo87/gradle-ospackage-plugin,nebula-plugins/gradle-ospackage-plugin,sc1478/gradle-ospackage-plugin,danveloper/gradle-ospackage-plugin,rspieldenner/gradle-ospackage-plugin,bozaro/gradle-ospackage-plugin,sghill/gradle-ospackage-plugin | |
2623dcefaf36fb6b240cd1d228561beb0269cba8 | subprojects/cpp/src/integTest/groovy/org/gradle/nativebinaries/language/cpp/WindowsResourcesUnsupportedIntegrationTest.groovy | subprojects/cpp/src/integTest/groovy/org/gradle/nativebinaries/language/cpp/WindowsResourcesUnsupportedIntegrationTest.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... | Test that windows resources are ignored on non-windows platforms | Test that windows resources are ignored on non-windows platforms | Groovy | apache-2.0 | gradle/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn... | |
9eb1de0a81224994d8b9daa388699fc0ccc1df2b | smartapps/natecj/multi-tenant-mode-changer.src/multi-tenant-mode-changer.groovy | smartapps/natecj/multi-tenant-mode-changer.src/multi-tenant-mode-changer.groovy | /**
* Copyright 2015 Nathan Jacobson <natecj@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Add new smartapp for automatically changing modes based on presence virtual switches. | Add new smartapp for automatically changing modes based on presence virtual switches.
| Groovy | apache-2.0 | natecj/SmartThings,natecj/SmartThings | |
0f477d6610433fab53684198ba7c6dc3b6d40c71 | whelktool/scripts/cleanups/2021/05/lxl-3578-marc-ParticipantOrPerfomerNote.groovy | whelktool/scripts/cleanups/2021/05/lxl-3578-marc-ParticipantOrPerfomerNote.groovy | String where = """
collection = 'bib'
AND data#>'{@graph,1,instanceOf,hasNote}' @> '[{\"@type\":\"marc:ParticipantOrPerformerNote\"}]'
"""
selectBySqlWhere(where) { data ->
Map work = data.graph[1].instanceOf
List hasNote = work.hasNote
List contribution = work.contribution
List ppNotes = has... | Add script for removing superfluous marc:ParticipantOrPerformerNote | Add script for removing superfluous marc:ParticipantOrPerformerNote
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
ec004ab2333fc4adfc9aa17d30e2b3ea679654b6 | webtests/webtests-container-auth/src/test/groovy/woko/webtests/CreatePageTest.groovy | webtests/webtests-container-auth/src/test/groovy/woko/webtests/CreatePageTest.groovy | package woko.webtests
class CreatePageTest extends WebTestBase{
void testFindPage(){
webtest('test Create page'){
login()
clickLink label:'create'
verifyTitle 'Woko - Create object'
verifyText 'Create a new object'
verifyText 'Select the the class of the object to cr... | Add a webtest for the create object page | Add a webtest for the create object page
| Groovy | apache-2.0 | pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko | |
5be1adf46187e805a507b697a36c6d187ec57b79 | projects/core/src/main/db/migrate/008_construction_6/008_migrate_identifier_data.groovy | projects/core/src/main/db/migrate/008_construction_6/008_migrate_identifier_data.groovy | class MigrateIdentifiers extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
execute("UPDATE identifiers set discriminator_column='2'")
execute("UPDATE identifiers set system_name='test'")
}
void down() {
// No deleting of data necessary will be gone b... | Migrate Identifiers to match new schema | Migrate Identifiers to match new schema
SVN-Revision: 2655
| Groovy | bsd-3-clause | NCIP/caaers,CBIIT/caaers,NCIP/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers | |
bc18551f3e18b2764025fd5457b5e6cb0d409ae0 | omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/mdex/MetaDexSpec.groovy | omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/mdex/MetaDexSpec.groovy | package foundation.omni.test.rpc.mdex
import com.msgilligan.bitcoin.BTC
import foundation.omni.BaseRegTestSpec
import foundation.omni.CurrencyID
import foundation.omni.Ecosystem
import foundation.omni.PropertyType
import org.bitcoinj.core.Address
import org.junit.internal.AssumptionViolatedException
import spock.lang.... | Add simple test for the distributed token exchange | Add simple test for the distributed token exchange
Tests whether an offer on the distributed token exchange can be created.
This does not test, whether the created offer is correct.
| Groovy | apache-2.0 | OmniLayer/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ | |
eb7ce0a4d57b4926b7c61e2ae4ad79ad48dea734 | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.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 ... | Add test for basic traditional (non-Ajax) alerts | TAP5-1521: Add test for basic traditional (non-Ajax) alerts
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1152050 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5 | |
2bc0d51ad76bc20e9e67483e5539647013fedc28 | src/test/groovy/net/researchgate/release/GitReleasePluginMultiProjectTests.groovy | src/test/groovy/net/researchgate/release/GitReleasePluginMultiProjectTests.groovy | package net.researchgate.release
import org.gradle.api.GradleException
import org.gradle.testfixtures.ProjectBuilder
@Mixin(PluginHelper)
class GitReleasePluginMultiProjectTests extends GitSpecification {
def setup() {
final subproject = new File(localGit.repository.getWorkTree(), "subproject")
pr... | Add tests for running git release in a subProject | Add tests for running git release in a subProject
| Groovy | mit | gusvmx/gradle-release | |
881318386637c93b03811cce54710f5eb85c977a | whelktool/scripts/cleanups/2020/10/lxl-3391-remove-unhandled-375-and-377-from-auth.groovy | whelktool/scripts/cleanups/2020/10/lxl-3391-remove-unhandled-375-and-377-from-auth.groovy | PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
String where = "collection = 'auth' and deleted = false and data#>>'{@graph,0,_marcUncompleted}' ~ '\"375\"|\"377\"'"
selectBySqlWhere(where) { auth ->
// Make '_marcUncompleted' ... | Add script for removing '375 and '377' from auth data | Add script for removing '375 and '377' from auth data
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
80c75c0b138eaab09ca5ae230f3d4b0b5938e622 | subprojects/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/ConstructorComparatorTest.groovy | subprojects/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/ConstructorComparatorTest.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... | Add unit test for ConstructorComparator | Add unit test for ConstructorComparator
| Groovy | apache-2.0 | blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpira... | |
9d33c895432fa0161cd8a26aba60d7af32344d25 | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/continuous/BuildScriptChangesContinuousBuildIntegrationTest.groovy | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/continuous/BuildScriptChangesContinuousBuildIntegrationTest.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 changing build scripts and continuous build | Add tests for changing build scripts and continuous build
| Groovy | apache-2.0 | gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,grad... | |
38be159b793d1ad0deece8f396392e5460400f4a | subprojects/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/SwiftToolChainDiscoveryIntegrationTest.groovy | subprojects/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/SwiftToolChainDiscoveryIntegrationTest.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 swift toolchain discovery integration test | Add swift toolchain discovery integration test
| Groovy | apache-2.0 | blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gra... | |
76b47646e7685cbb1cc541d6aca72ec5af027743 | orca-core/src/test/groovy/com/netflix/spinnaker/orca/pipeline/PipelineConfigParsingSpec.groovy | orca-core/src/test/groovy/com/netflix/spinnaker/orca/pipeline/PipelineConfigParsingSpec.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 ... | Test for parsing mayo JSON into a pipeline | Test for parsing mayo JSON into a pipeline
Would like to do this with Jackson directly but it's proving difficult. Postponing until we have a pipeline/stage model we're 100% happy with.
| Groovy | apache-2.0 | duftler/orca,robfletcher/orca,spinnaker/orca,duftler/orca,Nagarajj/orca,robfletcher/orca,ajordens/orca,HaishiBai/orca,robfletcher/orca,Nagarajj/orca,duftler/orca,Nagarajj/orca,ajordens/orca,spinnaker/orca,ajordens/orca,ttomsu/orca,duftler/orca,cfieber/orca,ttomsu/orca,cfieber/orca,ttomsu/orca,ajordens/orca,ttomsu/orca,... | |
d7535d495ab00ab3c1e6e4f7c99995f700699d8e | subprojects/jvm-services/src/integTest/groovy/org/gradle/jvm/toolchain/MavenToolchainsIntegrationTest.groovy | subprojects/jvm-services/src/integTest/groovy/org/gradle/jvm/toolchain/MavenToolchainsIntegrationTest.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 to ensure invalid toolchain file is logged | Add integration test to ensure invalid toolchain file is logged
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,grad... | |
afb76200d6bd4233b91c33c99ad57e60ef6e6f81 | whelktool/scripts/2020/01/remodel-link-fields/remove-repeated-editionstatements.groovy | whelktool/scripts/2020/01/remodel-link-fields/remove-repeated-editionstatements.groovy | EXPECTED = [TYPE, 'editionStatement', 'editionStatementRemainder'] as Set
selectBySqlWhere(""" data#>'{@graph,1,otherEdition}' notnull """) { data ->
def instance = data.graph[1]
//def stmts = []
def iter = instance.otherEdition?.iterator()
for (other in iter) {
if ((other.keySet() - EXPECTED)... | Add script for removing repeated edition statements | Add script for removing repeated edition statements
This could do with logging of record id plus dropped data instead of the
commented moving to a note.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
5e8f81e977fb8aff2fd438f276907031715f420e | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/daemon/configuration/DaemonParametersIntegrationTest.groovy | subprojects/launcher/src/integTest/groovy/org/gradle/launcher/daemon/configuration/DaemonParametersIntegrationTest.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... | Test use of gradleUserHomeDir in GradleParameters to launch new daemon. | Test use of gradleUserHomeDir in GradleParameters to launch new daemon.
| Groovy | apache-2.0 | lsmaira/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle... | |
53379ad69a245fb67a92b44ac331362e4ec0bca0 | src/test/groovy/gvm/TestUtils.groovy | src/test/groovy/gvm/TestUtils.groovy | package gvm
class TestUtils {
static File prepareBaseDir() {
def counter = "${(Math.random() * 10000).toInteger()}".padLeft(4, "0")
def baseDir = "build/base/gvm-$counter" as File
baseDir.mkdirs()
baseDir
}
}
| Introduce test utils for creating base directory. | Introduce test utils for creating base directory.
| Groovy | apache-2.0 | shanman190/sdkman-cli,DealerDotCom/gvm-cli,DealerDotCom/gvm-cli,sdkman/sdkman-cli,gvmtool/gvm-cli,nobeans/gvm-cli,skpal/sdkman-cli,GsusRecovery/sdkman-cli,busches/gvm-cli,GsusRecovery/sdkman-cli,jbovet/gvm,skpal/sdkman-cli,nobeans/gvm-cli | |
eaeadad3b837066c2697881141f6eac97406efdd | whelktool/scripts/cleanups/2020/09/lxl-3343-language-must-be-list.groovy | whelktool/scripts/cleanups/2020/09/lxl-3343-language-must-be-list.groovy | import whelk.util.DocumentUtil
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
String where = "data::text like '%\"language\": {%'"
selectBySqlWhere(where) { data ->
boolean changed = DocumentUtil.findKey(data.doc.data, 'lang... | Add script for making all languages into lists. | Add script for making all languages into lists.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
9efc17eb89acc3485950ee7c0e1b1c836d854605 | whelktool/scripts/cleanups/2021/02/lxl-3489-fix-incorrect-adlibris.groovy | whelktool/scripts/cleanups/2021/02/lxl-3489-fix-incorrect-adlibris.groovy | /**
* Fixes Adlibris records that for some time got incorrect language and/or genreForm
*
* See LXL-3489 for more info.
*/
String where = """
collection = 'bib' AND
deleted = false AND
created >= '2020-03-20' AND
created < '2021-01-20' AND
data#>>'{@graph,0,identifiedBy}' like '%Adlibris%' AND
(
d... | Add script for cleaning broken Adlibris records | Add script for cleaning broken Adlibris records
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
149aa39248019760ec3f1d1bb83458efb640e9f5 | src/test/groovy/co/bitwatch/libbitcoinconsensus/DataDrivenBitcoinJSpec.groovy | src/test/groovy/co/bitwatch/libbitcoinconsensus/DataDrivenBitcoinJSpec.groovy | package co.bitwatch.libbitcoinconsensus
import groovy.util.logging.Slf4j
import org.bitcoinj.core.ScriptException
import org.bitcoinj.core.Transaction
import org.bitcoinj.script.Script
import spock.lang.Ignore
/**
* Data driven tests for script verification with BitcoinJ
*/
@Ignore('BitcoinJ is currently not able t... | Add ignored tests for script verification with BitcoinJ | Add ignored tests for script verification with BitcoinJ
Optionally the data driven script verification tests can also be used
to test the verification via BitcoinJ, however, this is currently
disabled, because BitcoinJ understands only a subset of the scripts
properly. In particular the support for certain (not consen... | Groovy | mit | dexX7/java-libbitcoinconsensus,dexX7/java-libbitcoinconsensus | |
99e77e72254902a012abd4ff36119077904a94f1 | tools/logGen.groovy | tools/logGen.groovy | pages = ['/home', '/account', '/login', '/logout', '/history', '/contact' ]
statusCodes = [200, 401, 403, 500]
rnd = new Random()
def getIpAddress() {
return "${rnd.nextInt(256)}.${rnd.nextInt(256)}.${rnd.nextInt(256)}.${rnd.nextInt(256)}"
}
def getPage() {
return pages.get(rnd.nextInt(pages.size))
}
def get... | Add fake log data generator | Add fake log data generator
| Groovy | mit | joeattardi/tailstreamer,joeattardi/tailstreamer,joeattardi/tailstreamer | |
abfe36685d3f9baec5e63e47852dd5541a57580c | subprojects/internal-performance-testing/src/test/groovy/org/gradle/performance/results/BaselineVersionTest.groovy | subprojects/internal-performance-testing/src/test/groovy/org/gradle/performance/results/BaselineVersionTest.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 a unit test for the new logic | Add a unit test for the new logic
| Groovy | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,grad... | |
c321ec989b495c2fd9261c23cfacdb2a23b879fe | src/test/groovy/bugs/Groovy8059Bug.groovy | src/test/groovy/bugs/Groovy8059Bug.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-8059: STC overloaded generic method selection not using resolved types" | Add a test for "GROOVY-8059: STC overloaded generic method selection not using resolved types"
| Groovy | apache-2.0 | traneHead/groovy-core,paulk-asert/incubator-groovy,armsargis/groovy,paulk-asert/incubator-groovy,apache/groovy,russel/groovy,apache/incubator-groovy,jwagenleitner/groovy,apache/incubator-groovy,armsargis/groovy,apache/incubator-groovy,paulk-asert/incubator-groovy,armsargis/groovy,shils/groovy,jwagenleitner/incubator-gr... | |
5dd1e132dddee8ccdbd7d9e666622389631b3519 | groovyNotesSix.groovy | groovyNotesSix.groovy | class groovyNotesSix {
static void main(String[] args) {
println getGreeting()
def numbers = [1, 2, 3, 4, 5]
println numbers
println doubleNumbers(numbers)
}
// Defining a method
static def getGreeting() {
// last evaluated expression is implicitly returned, like in Ruby
'Hello Everybo... | Add sixth file of notes illustrating functions / methods | Add sixth file of notes illustrating functions / methods
| Groovy | mit | nbkhope/groovy-notes | |
9c195511de47d3c7de14a07d031183ea02224475 | whelktool/scripts/examples/deletebyid.groovy | whelktool/scripts/examples/deletebyid.groovy | selectByIds([
'https://libris-qa.kb.se/3mffslbf5r9snhq',
'https://libris-qa.kb.se/k3ww822w3f5631r',
'https://libris-qa.kb.se/6qjjvcvj2fddtjz',
'https://libris-qa.kb.se/7rkkxr6k07n94zh',
'http://libris.kb.se/bib/7149593',
'https://id.kb.se/term/rda/Unmediated',
'p711q7q11nf01k0'
]) {
it.s... | Add delete by id example to whelktool | Add delete by id example to whelktool
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
50c6ac3b36b5a32c244b96184268f87a582f9d60 | integrations/jenkins/glue-pipeline.groovy | integrations/jenkins/glue-pipeline.groovy | node {
stage("Checkout"){
git url: "https://github.com/Jemurai/triage.git"
}
stage("Glue-Static"){
sh '''echo "Starting Glue"
echo "Script executed from: ${PWD}"
eval $(docker-machine env default)
GUID="$RANDOM"
docker run --rm=true --name=glue_ci_code -v ${PWD}:/tmp/$GUID/ owasp/glue -z -t... | Add start of Glue for Jenkins pipeline. | Add start of Glue for Jenkins pipeline.
| Groovy | apache-2.0 | OWASP/pipeline,OWASP/pipeline,OWASP/pipeline | |
2f19aae17600d421788ff45d63109d176e63f801 | versionTest.groovy | versionTest.groovy | #!/usr/bin/env groovy
def javaHome = System.getenv("JAVA_HOME")
File logFile
def cli = new CliBuilder(usage:'versionTest -m maven.top.directory -p path <-l logfile>')
cli.h(longOpt: 'help', 'usage information')
cli.m(argName: 'maven.top.directory', longOpt: 'maven', required: true, args: 1, type:GString, 'Maven top... | Add test script to test plugin with different versions of Maven | Add test script to test plugin with different versions of Maven
git-svn-id: 6eb7a1758c58ed2699b14067b4bf7f7df636cc53@8514 52ab4f32-60fc-0310-b215-8acea882cd1b
| Groovy | apache-2.0 | mojohaus/findbugs-maven-plugin-old,mohanaraosv/findbugs-maven-plugin,mohanaraosv/findbugs-maven-plugin,mojohaus/findbugs-maven-plugin-old,mohanaraosv/findbugs-maven-plugin,mojohaus/findbugs-maven-plugin-old | |
07390e9d726f6982f02429c064168f5d86204d16 | src/test/groovy/org/crygier/graphql/JavaScalarsTest.groovy | src/test/groovy/org/crygier/graphql/JavaScalarsTest.groovy | package org.crygier.graphql
import graphql.schema.Coercing
import spock.lang.Specification
import java.time.Instant
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.Month
import java.time.ZoneId
class JavaScalarsTest extends Specification {
def 'Long to LocalDateTime'() {
given... | Test for LocalDate/Time scalar serialization | Test for LocalDate/Time scalar serialization
| Groovy | mit | jcrygier/graphql-jpa,jcrygier/graphql-jpa,stomf/graphql-jpa,stomf/graphql-jpa | |
bc91ffc2e56a7aa13539c239f6c1d43f249f0c6b | whelktool/scripts/cleanups/2020/08/lxl-3294-move-bearer-like-gfs-from-work-to-instance.groovy | whelktool/scripts/cleanups/2020/08/lxl-3294-move-bearer-like-gfs-from-work-to-instance.groovy | /**
* Move bearer-like genre/form terms from work to instance.
*
* See LXL-3294 for more information.
*/
gfsToMove = [
"E-böcker",
"E-single",
"E-textbok",
"Electronic books",
"Ljudbok cd",
"Ljudbok kassett",
"Ljudbok mp3",
"Musik cd",
"Tal cd... | Add script for moving bearer related gfs from work to instance | Add script for moving bearer related gfs from work to instance
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
603b3215435c78976a1d03d514a7a93f74a92f96 | lib/Utils.groovy | lib/Utils.groovy | static def orderedScripts(names) {
return names.sort(false) { raw ->
def parts = raw.split("__");
return parts[0].toInteger();
};
}
static def write_ordered(output, scriptNames) {
output.withWriter { t ->
orderedScripts(scriptNames).each { s ->
t << s << "\n"
}
}
return output;
}
| Fix logic for ordering SQL scripts | Fix logic for ordering SQL scripts
This will write the SQL scripts in the correct order to run.
| Groovy | apache-2.0 | RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline | |
4a809a57c422f79cc0e5ecf916e4523894fbc866 | src/integration-test/groovy/com/github/blindpirate/gogradle/NoTransitiveInLockIntegrationTest.groovy | src/integration-test/groovy/com/github/blindpirate/gogradle/NoTransitiveInLockIntegrationTest.groovy | package com.github.blindpirate.gogradle
import com.github.blindpirate.gogradle.core.dependency.lock.GogradleLockModel
import com.github.blindpirate.gogradle.support.IntegrationTestSupport
import com.github.blindpirate.gogradle.support.WithMockGo
import com.github.blindpirate.gogradle.support.WithResource
import com.gi... | Add an integration test for transitive:false in gogradle.lock | Add an integration test for transitive:false in gogradle.lock
| Groovy | apache-2.0 | gogradle/gogradle,gogradle/gogradle,gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle,blindpirate/gogradle | |
2feb5a37fc0ab077bd98e6c2c0fac2db4c8c3571 | db/migrate/001_release1/003_create_activities.groovy | db/migrate/001_release1/003_create_activities.groovy | class CreateActivities extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
createTable('activities') { t ->
t.addColumn('version', 'integer', nullable:false)
t.addColumn('name', 'string', nullable:false)
t.addColumn('type', 'string', nullable:false)
... | Add table for actions library | Add table for actions library
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc | |
ca5a930929d2e851079e7a6d8f2418c0e34363d5 | jobs/jac.groovy | jobs/jac.groovy | job('generate docs') {
scm {
git {
remote {
name('origin')
url("https://github.com/cfpb/jenkins-automation")
credentials('009c8c9d-3cf5-4b2a-89f3-286977cabddf')
clean()
wipeOutWorkspace()
}
}
... | job('generate docs') {
scm {
git {
remote {
name('origin')
url("https://github.com/cfpb/jenkins-automation")
credentials('009c8c9d-3cf5-4b2a-89f3-286977cabddf')
clean()
wipeOutWorkspace()
}
}
... | Clear out local commit, in a proper context | Clear out local commit, in a proper context
| Groovy | cc0-1.0 | lfatty/jenkins-automation,Scotchester/jenkins-automation,Scotchester/jenkins-automation,higs4281/jenkins-automation,higs4281/jenkins-automation |
9eed9f432a21615753cf19e1b1c386b24a66f93c | whelktool/scripts/analysis/relation-paths.groovy | whelktool/scripts/analysis/relation-paths.groovy | import whelk.util.DocumentUtil
selectBySqlWhere('deleted = false') { doc ->
try {
DocumentUtil.findKey(doc.graph, '@id') { String value, List path ->
if (value.startsWith("https://libris") || value.startsWith("http://libris") || value.startsWith("https://id.kb.se")) {
incrementS... | Add script for analyzing locations of links in documents | Add script for analyzing locations of links in documents
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
2c0222db012279d7b47819e85b448f56ae5059bf | test/integration/org/tsaap/directory/UserRoleSpec.groovy | test/integration/org/tsaap/directory/UserRoleSpec.groovy | package org.tsaap.directory
import spock.lang.*
/**
*
*/
class UserRoleSpec extends Specification {
UserAccountService userAccountService
User user
UserRole userRole = new UserRole()
def setup() {
user = userAccountService.addUser(new User(
firstName: "moghite", lastName: ... | Add tests for UserRole class | Add tests for UserRole class
| Groovy | agpl-3.0 | elaastic/elaastic-questions,TSaaP/tsaap-notes,TSaaP/tsaap-notes,elaastic/elaastic-questions,elaastic/elaastic-questions | |
6f6956e3fdf3475ef569dbdf0ba84e3ded5b67d5 | rundeckapp/test/unit/rundeck/StorageTests.groovy | rundeckapp/test/unit/rundeck/StorageTests.groovy | package rundeck
import grails.test.mixin.*
import org.junit.*
/**
* See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
*/
@TestFor(Storage)
class StorageTests {
void testGetPath() {
assertEquals('abc',new Storage(dir:'',name: 'abc').path)
assertEq... | Add test for Storage domain | Add test for Storage domain
| Groovy | apache-2.0 | variacode95/rundeck,paul-krohn/rundeck,variacode95/rundeck,paul-krohn/rundeck,jamieps/rundeck,jamieps/rundeck,variacode95/rundeck,damageboy/rundeck,paul-krohn/rundeck,variacode/rundeck,tjordanchat/rundeck,variacode/rundeck,variacode/rundeck,variacode/rundeck,rundeck/rundeck,rophy/rundeck,damageboy/rundeck,jgpacker/rund... | |
54aeaa1ccedc83efe58e66f1c17f44ff8d55957d | jobs/ansible-deploy-aws/ansible-deploy-aws.groovy | jobs/ansible-deploy-aws/ansible-deploy-aws.groovy | job {
name 'ansible-deploy-aws'
description('Run ansible against Amazon EC2')
parameters {
choiceParam("DEPLOY_ENV", ["ci"],
"Select which environment you wish to run ansible against")
}
scm {
git {
remote {
url('https://github.com/alphagov/tsuru-ansible.git')
}
branch('... | Create jenkins job to run ansible against ec2 | Create jenkins job to run ansible against ec2
* Create `Jenkins` job to run `Ansible` against:
* [Amazon EC2](https://aws.amazon.com/)
| Groovy | mit | alphagov/multicloud-deploy,alphagov/multicloud-deploy,alphagov/multicloud-deploy | |
40643b0069d19bc48874b965c4130da3ef413a7e | subprojects/cpp/src/test/groovy/org/gradle/nativecode/toolchain/internal/gpp/AssemblerTest.groovy | subprojects/cpp/src/test/groovy/org/gradle/nativecode/toolchain/internal/gpp/AssemblerTest.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... | Test coverage for GCC assembler | REVIEW-2881: Test coverage for GCC assembler
| Groovy | apache-2.0 | robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/... | |
3d3a7837b9a3ac0a540e6f6ca263f1a8f4e47809 | groovy/grails-test/scripts/ImportGithubHistory.groovy | groovy/grails-test/scripts/ImportGithubHistory.groovy | import langpop.*
def OLDEST_GITHUB_DATE = '2007-10-29'
def searchDate = Date.parse('yyyy-MM-dd', OLDEST_GITHUB_DATE)
// This is the last date of data that isn't in the DB already
def lastDate = Date.parse('yyyy-MM-dd', '2015-07-15')
def ghSite = Site.findByName(ImportUtil.GITHUB_SITE_NAME)
// Build the list of lan... | Add script for importing github history | Add script for importing github history
| Groovy | mit | bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile,bmaupin/junkpile | |
c6c2a2a84f64c0ed929bf62e925d944c588532c0 | src/test/groovy/com/github/vbauer/yta/model/LanguagesSpec.groovy | src/test/groovy/com/github/vbauer/yta/model/LanguagesSpec.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 tests for "Languages" model | Add unit tests for "Languages" model
| Groovy | mit | vbauer/yandex-translate-api,vbauer/yandex-translate-api | |
0626b1148881460b2c7a2ed8b67796af485bf2be | webtests/webtests-localization/src/test/groovy/woko/webtests/localization/ConfirmDeletePageTest.groovy | webtests/webtests-localization/src/test/groovy/woko/webtests/localization/ConfirmDeletePageTest.groovy | package woko.webtests.localization
import woko.webtests.WebTestBase
/**
* Test the UI of the confirmDelete jsp.<br/>
* Feature only available for devel user
*/
class ConfirmDeletePageTest extends WebTestBase {
void testAuthenticationWithHome() {
webtest("test confimDelete") {
login()
... | Add a web test for confirm delete | Add a web test for confirm delete
| Groovy | apache-2.0 | pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko | |
d14b0d9b8a7278f58c2153e0a833decb94e6c9fe | whelktool/scripts/2019/02/change-type-of-local-geographic-subjects.groovy | whelktool/scripts/2019/02/change-type-of-local-geographic-subjects.groovy | /*
* This changes the type of local geographic subjects from Place to Geographic
*
* See LXL-1621 for more info.
*
*/
String INCORRECT_TYPE = 'Place'
String CORRECT_TYPE = 'Geographic'
PrintWriter scheduledToUpdateGeographicSubject = getReportWriter("scheduled-to-update-geographic-subject")
selectBySqlWhere("""... | Add script to change type of local geographic subjects | Add script to change type of local geographic subjects
* Change type from Place to Geographic
* For bib records
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
39c4a8efb3be0204a57f708b9ea99e3189ca1ef7 | grails-burst-plugin/grails-app/conf/spring/resources.groovy | grails-burst-plugin/grails-app/conf/spring/resources.groovy | import grails.util.Environment
import ox.softeng.burst.grails.plugin.test.BrokenXmlDataBindingSourceCreator
beans = {
if (Environment.current == Environment.TEST) {
xmlDataBindingSourceCreator(BrokenXmlDataBindingSourceCreator)
}
} | Set spring beans for testing | Set spring beans for testing
| Groovy | mit | jamesrwelch/BuRST | |
9c0c0d4aff60e374d5f5bb72327c8a6b912e58c9 | src/integ/groovy/foundation/omni/test/consensus/OmniCoreConsensusToolSpec.groovy | src/integ/groovy/foundation/omni/test/consensus/OmniCoreConsensusToolSpec.groovy | package foundation.omni.test.consensus
import com.msgilligan.bitcoin.rpc.RPCURI
import foundation.omni.consensus.OmniCoreConsensusTool
import spock.lang.Specification
/**
* Test Spec for OmniCoreConsensusTool
*/
class OmniCoreConsensusToolSpec extends Specification {
def "Can access RPC given a URI and get bl... | Add URI constructor test for OmniCoreConsensusTool | Add URI constructor test for OmniCoreConsensusTool | Groovy | apache-2.0 | OmniLayer/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ | |
7a5fcd1b4e29dc2fb6933685e050b515c8841bdd | whelktool/scripts/cleanups/2020/04/lxl-2142-tgm-fixing.groovy | whelktool/scripts/cleanups/2020/04/lxl-2142-tgm-fixing.groovy | PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
PrintWriter failedUpdating = getReportWriter("failed-updates")
// Update the terms
String where = "data#>>'{@graph,1,inScheme,@id}' = 'https://id.kb.se/term/gmgpc%2F%2Fswe'"
selectBySqlWhere(where) { data ->
data.graph[1].inScheme["@id"] = "h... | Add TGM ID cleanup script. | Add TGM ID cleanup script.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
02d2c5a6776b2670426337c1a6c59dab00bc4de6 | src/test/groovy/org/osiam/resources/provisioning/SCIMExtensionProvisioningSpec.groovy | src/test/groovy/org/osiam/resources/provisioning/SCIMExtensionProvisioningSpec.groovy | package org.osiam.resources.provisioning
import org.osiam.resources.provisioning.model.ExtensionDefinition
import org.osiam.resources.scim.ExtensionFieldType
import org.osiam.storage.dao.ExtensionDao
import org.osiam.storage.entities.ExtensionEntity
import org.osiam.storage.entities.ExtensionFieldEntity
import spock.l... | Write unit tests for extension service | Write unit tests for extension service
Resolves #57
| Groovy | mit | osiam/osiam,tkrille/osiam-osiam,tkrille/osiam-osiam,fwilhe/osiam,osiam/osiam,osiam/osiam,tkrille/osiam-osiam,fwilhe/osiam,fwilhe/osiam | |
c7bf00ccff33020479d85e705a19af5e3dbb948f | whelktool/scripts/cleanups/2022/08/lxl-3886-reexport-iso639-3.groovy | whelktool/scripts/cleanups/2022/08/lxl-3886-reexport-iso639-3.groovy | /*
Re-export (save loud) any document that might have been exported with an ISO-639-3 language code instead of MARC21 code
See LXL-3886 for more information
*/
import java.util.concurrent.ConcurrentLinkedQueue
import static whelk.util.DocumentUtil.findKey
def LANGUAGES = [
'https://id.kb.se/language/9ft',
... | Add script for re-exporting bibs which might have been exported with ISO-639-3 lang codes | Add script for re-exporting bibs which might have been exported with ISO-639-3 lang codes
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
36e9aaae731d18e574bcaa49114386e52489e40a | subprojects/plugins/src/integTest/groovy/org/gradle/java/ParallelTestTaskIntegrationTest.groovy | subprojects/plugins/src/integTest/groovy/org/gradle/java/ParallelTestTaskIntegrationTest.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 parallel Test execution integ test | Add parallel Test execution integ test
+review REVIEW-6156
| Groovy | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gr... | |
544b6ea362e5fd095d7cb3dfabb166c8d5754636 | subprojects/performance/src/integTest/groovy/org/gradle/performance/ConfigurationPerformanceTest.groovy | subprojects/performance/src/integTest/groovy/org/gradle/performance/ConfigurationPerformanceTest.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... | Add a performance test for project configuration time. | Add a performance test for project configuration time.
| Groovy | apache-2.0 | robinverduijn/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/grad... | |
7215db4e45bdd08b9eaa77be67d8cf4fe0050364 | subprojects/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCacheIntegrationTest.groovy | subprojects/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCacheIntegrationTest.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... | Test for FROM_CACHE task result from Gradle TestKit | Test for FROM_CACHE task result from Gradle TestKit
| Groovy | apache-2.0 | gradle/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpir... | |
85d0dc13ec78d2ef070234142da3761bacc5e7fd | test/src/test/groovy/org/zstack/test/integration/networkservice/provider/virtualrouter/eip/VirtualRouterVipsCase.groovy | test/src/test/groovy/org/zstack/test/integration/networkservice/provider/virtualrouter/eip/VirtualRouterVipsCase.groovy | package org.zstack.test.integration.networkservice.provider.virtualrouter.eip
import org.zstack.sdk.EipInventory
import org.zstack.sdk.L3NetworkInventory
import org.zstack.sdk.VirtualRouterVmInventory
import org.zstack.sdk.VmInstanceInventory
import org.zstack.test.integration.networkservice.provider.NetworkServicePro... | Add vr vips when eip attach | Add vr vips when eip attach
Resolve ZSTAC-8183
| Groovy | apache-2.0 | zstackorg/zstack,zstackio/zstack,AlanJager/zstack,camilesing/zstack,zstackio/zstack,AlanJager/zstack,camilesing/zstack,MatheMatrix/zstack,camilesing/zstack,zstackorg/zstack,MatheMatrix/zstack,AlanJager/zstack,zstackio/zstack,MatheMatrix/zstack | |
b839447a04f01b13f263d6396e804e91661c4ca2 | testeng/jobs/seedViews.groovy | testeng/jobs/seedViews.groovy | package testeng
import static org.edx.jenkins.dsl.JenkinsPublicConstants.JENKINS_PUBLIC_LOG_ROTATOR
job('seed-views') {
description('Run the platform views dsl on Jenkins startup.')
logRotator JENKINS_PUBLIC_LOG_ROTATOR()
concurrentBuild(false)
steps {
downstreamParameterized {
... | Add job that runs platform views dsl | Add job that runs platform views dsl
| Groovy | agpl-3.0 | edx/jenkins-job-dsl | |
29410c85d3aa036f168e26963bb00bc10bddb9ef | 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
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc | |
d05548d866b406c0c34a82426f461c12b85248f3 | kato-web/src/main/groovy/com/netflix/spinnaker/kato/controllers/ProvidersController.groovy | kato-web/src/main/groovy/com/netflix/spinnaker/kato/controllers/ProvidersController.groovy | /*
* Copyright 2015 Google, 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 /providers endpoint. Currently derives set of providers (e.g. ['aws', 'gce']) from classes of registered accountCredentials. There is a companion PR in amos to define a getProvider() entry-point on AccountCredentials. We can eventually switch to using that. | Add /providers endpoint.
Currently derives set of providers (e.g. ['aws', 'gce']) from classes of registered accountCredentials.
There is a companion PR in amos to define a getProvider() entry-point on AccountCredentials. We can eventually switch to using that.
| Groovy | apache-2.0 | lookout/clouddriver,stitchfix/clouddriver,ajordens/clouddriver,cfieber/clouddriver,spinnaker/clouddriver,cfieber/clouddriver,lookout/clouddriver,lookout/clouddriver,ajordens/clouddriver,spinnaker/clouddriver,lookout/clouddriver,cfieber/clouddriver,danveloper/clouddriver,stitchfix/clouddriver,duftler/clouddriver,duftler... | |
3ed2d5c1278f5486f1cfcad6140ebbc01b842b73 | whelktool/scripts/cleanups/2020/12/lxl-3466-remove-empty-in-hasComponent.groovy | whelktool/scripts/cleanups/2020/12/lxl-3466-remove-empty-in-hasComponent.groovy | String where = "collection = 'bib' AND data#>'{@graph,1,hasComponent}' @> '[{}]'"
selectBySqlWhere(where) { data ->
List hasComponent = data.graph[1].hasComponent
hasComponent.removeAll{ !it }
if (!hasComponent)
data.graph[1].remove('hasComponent')
data.scheduleSave()
}
| Add script for removing empty hasComponent | Add script for removing empty hasComponent
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
0d68d4203e5179a041425eb9e0dde27dca338ccc | subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildIsolationIntegrationTest.groovy | subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildIsolationIntegrationTest.groovy | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add reproducer for "The root project is not yet available for build." problem | Add reproducer for "The root project is not yet available for build." problem
| Groovy | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad... | |
dcdcab4d6615a7ba1b6da8fd083ae715df6bb408 | tapestry-yuicompressor/src/test/groovy/org/apache/tapestry5/yuicompressor/itest/YUICompressorIntegrationTests.groovy | tapestry-yuicompressor/src/test/groovy/org/apache/tapestry5/yuicompressor/itest/YUICompressorIntegrationTests.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 basic tests to demonstrate compression of JavaScript stacks and individual JavaScript files | TAP5-73: Add basic tests to demonstrate compression of JavaScript stacks and individual JavaScript files
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1087495 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | agileowl/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5 | |
86e91068450f5df284f1a625189f11585fb7f95c | front50-web/src/main/groovy/com/netflix/spinnaker/front50/config/TomcatConfiguration.groovy | front50-web/src/main/groovy/com/netflix/spinnaker/front50/config/TomcatConfiguration.groovy | /*
* Copyright 2015 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Create a legacy http connector if ssl is enabled | Create a legacy http connector if ssl is enabled
| Groovy | apache-2.0 | spinnaker/front50,cfieber/front50,cfieber/front50,robfletcher/front50,spinnaker/front50,cfieber/front50,robfletcher/front50,spinnaker/front50,HaishiBai/front50,robfletcher/front50 | |
36a837ce73f2a10356f4a2e5b8d646dee78a07b4 | whelktool/scripts/cleanups/2021/01/lxl-3483-delete-broken-concepts.groovy | whelktool/scripts/cleanups/2021/01/lxl-3483-delete-broken-concepts.groovy | /**
* Delete a few broken concepts that can't be removed manually.
*
* See LXL-3483 for more information.
*/
selectByIds(['zw9dnp7h40687jl', 'xv8cmn6g4zvsx4j', '0xbfpq8j180wzbd', '1zcgqr9k1g72mhn', 'dbqtz11x3xcmqjg']) {
it.scheduleDelete()
}
| Add script for deleting a few broken concepts | Add script for deleting a few broken concepts
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
d63425626a5bab087a5bd6c418da92121a08fe40 | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/ClosureScopeIntegrationTest.groovy | subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/ClosureScopeIntegrationTest.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 failing test for closure scope problem | Add failing test for closure scope problem
| Groovy | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,g... | |
57101f04438cf860235adc1399884cf8d7cc4274 | subprojects/launcher/src/test/groovy/org/gradle/launcher/daemon/context/DaemonCompatibilitySpecFactorySpec.groovy | subprojects/launcher/src/test/groovy/org/gradle/launcher/daemon/context/DaemonCompatibilitySpecFactorySpec.groovy | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add spec for checking that two daemon contexts are not considered compatible if the java home location is different. | Add spec for checking that two daemon contexts are not considered compatible if the java home location is different.
| Groovy | apache-2.0 | gstevey/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/g... | |
9735fdf653a3b1f3ca0c04a4640bb208c470b19f | subprojects/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/DefaultMutableVersionConstraintTest.groovy | subprojects/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/DefaultMutableVersionConstraintTest.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 basic test coverage for `DefaultMutableVersionConstraint` | Add basic test coverage for `DefaultMutableVersionConstraint`
| Groovy | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,robinve... | |
c1086f32c8c6c51dbeae0d8005468dac58501dca | .jenkins/job_beam_PostCommit_Java_RunnableOnService_Apex.groovy | .jenkins/job_beam_PostCommit_Java_RunnableOnService_Apex.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Add Jenkins postcommit for RunnableOnService in Apex runner | Add Jenkins postcommit for RunnableOnService in Apex runner
| Groovy | apache-2.0 | amitsela/beam,markflyhigh/incubator-beam,robertwb/incubator-beam,wangyum/beam,staslev/incubator-beam,robertwb/incubator-beam,wtanaka/beam,mxm/incubator-beam,charlesccychen/incubator-beam,apache/beam,rangadi/incubator-beam,jbonofre/incubator-beam,robertwb/incubator-beam,staslev/beam,vikkyrk/incubator-beam,robertwb/incub... | |
ae1220cc05499bb258a3504c6c6eb15a7831248f | oort-gce/src/main/groovy/com/netflix/spinnaker/oort/gce/health/GceHealthIndicator.groovy | oort-gce/src/main/groovy/com/netflix/spinnaker/oort/gce/health/GceHealthIndicator.groovy | /*
* Copyright 2014 Google, 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 ... | Implement GCE HealthIndicator following model defined in AWS HealthIndicator. | Implement GCE HealthIndicator following model defined in AWS HealthIndicator.
| Groovy | apache-2.0 | duftler/clouddriver,spinnaker/clouddriver,lookout/clouddriver,ajordens/clouddriver,spinnaker/clouddriver,danveloper/clouddriver,cfieber/clouddriver,cfieber/clouddriver,ajordens/clouddriver,duftler/clouddriver,cfieber/clouddriver,lookout/clouddriver,spinnaker/clouddriver,lookout/clouddriver,danveloper/clouddriver,stitch... | |
99ffabc8cda77f496464a30ccdce8b938575acbd | whelktool/scripts/cleanups/2019/02/set-missing-bib-encodingLevel/set-missing-encodingLevel-to-AbbreviatedLevel.groovy | whelktool/scripts/cleanups/2019/02/set-missing-bib-encodingLevel/set-missing-encodingLevel-to-AbbreviatedLevel.groovy | /*
* This sets encodingLevel to marc:AbbreviatedLevel for all remaining bibliographic
* records with no property encodingLevel.
*
* See LXL-2225 for more info.
*
*/
String ENCODING_LEVEL_VALUE = 'marc:AbbreviatedLevel'
PrintWriter scheduledToSetEncodingLevel = getReportWriter("scheduled-to-set-encodingLevel")
s... | Add script to add encodingLevel to remaining bib records that lack the property | Add script to add encodingLevel to remaining bib records that lack the property
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | |
1fe78709d5c153756a87b943680ac84dbe3597c1 | subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r24/BuildInvocationsCrossVersionSpec.groovy | subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r24/BuildInvocationsCrossVersionSpec.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 cross-version test for description selection | Add cross-version test for description selection
+review REVIEW-5289
| Groovy | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.