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
5ad833855e877f3bce5a7669e738ce26b7697abb
samples/orders/grails-app/test/OrderService.groovy
samples/orders/grails-app/test/OrderService.groovy
package test class OrderService { @Property transactional = true def findAllOrders() { return OrderEntry.findAll() } def addOrder(orderEntry) { orderEntry.save() } }
package test class OrderService { @Property transactional = true def findAllOrders() { println(getClass().getClassLoader().loadClass("test.OrderEntry")) return OrderEntry.findAll() } def addOrder(orderEntry) { orderEntry.save() } }
Load test.OrderEntry from class classloader.
Load test.OrderEntry from class classloader. git-svn-id: 29aad96320b2a07b98332cd568fc1316025c072f@197 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
Groovy
apache-2.0
jeffbrown/grailsnolib,jeffbrown/grailsnolib
45d18cb0b1ecdb2fb1b558ce73a76dd3e5b79665
src/main/groovy/me/champeau/gradle/JapicmpTask.groovy
src/main/groovy/me/champeau/gradle/JapicmpTask.groovy
/* * Copyright 2003-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright 2003-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Remove unused imports after refactor
Remove unused imports after refactor
Groovy
apache-2.0
melix/japicmp-gradle-plugin
fa3f071b411976614e31165097bb01746a1039c4
src/main/resources/script_templates/Intro/Greeting.groovy
src/main/resources/script_templates/Intro/Greeting.groovy
// @String name // @OUTPUT String greeting // A Groovy script with parameters. // It is the duty of the scripting framework to harvest // the 'name' parameter from the user, and then display // the 'greeting' output parameter, based on its type. greeting = "Hello, " + name + "!"
#@ String name #@output String greeting // A Groovy script with parameters. // It is the duty of the scripting framework to harvest // the 'name' parameter from the user, and then display // the 'greeting' output parameter, based on its type. greeting = "Hello, " + name + "!"
Update to current script parameter syntax
Update to current script parameter syntax
Groovy
bsd-2-clause
scijava/scripting-groovy
e46295394d494920ac67f2b527699b380d727ece
functional-tests/src/integration-test/groovy/functional/tests/TestControllerSpec.groovy
functional-tests/src/integration-test/groovy/functional/tests/TestControllerSpec.groovy
package functional.tests import geb.spock.GebSpec import grails.test.mixin.integration.Integration import grails.transaction.Rollback import spock.lang.Issue @Integration @Rollback class TestControllerSpec extends GebSpec { @Issue('https://github.com/grails/grails-core/issues/10582') void 'test responding af...
package functional.tests import geb.spock.GebSpec import grails.plugins.rest.client.RestBuilder import grails.test.mixin.integration.Integration import grails.transaction.Rollback import spock.lang.Issue @Integration @Rollback class TestControllerSpec extends GebSpec { @Issue('https://github.com/grails/grails-co...
Use RestBuilder instead of URL
Use RestBuilder instead of URL
Groovy
apache-2.0
grails/grails-views
4be3a844cc8d392e7777a92e95a4a74c111c3c73
src/test/groovy/kotka/groovy/zweig/TestZweigBuilder.groovy
src/test/groovy/kotka/groovy/zweig/TestZweigBuilder.groovy
package kotka.groovy.zweig import org.codehaus.groovy.ast.Parameter import org.codehaus.groovy.ast.expr.ConstantExpression import org.codehaus.groovy.ast.expr.VariableExpression import spock.lang.Specification class TestZweigBuilder extends Specification { def "Strings and Numbers are constants"() { when:...
package kotka.groovy.zweig import org.codehaus.groovy.ast.Parameter import org.codehaus.groovy.ast.expr.ConstantExpression import org.codehaus.groovy.ast.expr.VariableExpression import spock.lang.Specification class TestZweigBuilder extends Specification { def "Strings and Numbers are constants"() { when:...
Use AstAssert utility in tests
Use AstAssert utility in tests
Groovy
mit
kotkade/zweig
ec6b1605c62d723103406f5c3fa36c679cf14041
db/migrate/004_release4/006_modify_audit_events.groovy
db/migrate/004_release4/006_modify_audit_events.groovy
class ModifyAuditEvents extends edu.northwestern.bioinformatics.bering.Migration { void up() { renameColumn("audit_events", "user_name", "username"); renameColumn("audit_events", "class_name", "object_class"); renameColumn("audit_event_values", "new_value", "current_value"); // exis...
class ModifyAuditEvents extends edu.northwestern.bioinformatics.bering.Migration { void up() { // have to delete current contents b/c changing nullabilities execute("DELETE FROM audit_events") renameColumn("audit_events", "user_name", "username"); renameColumn("audit_events", "class...
Modify so that down() will run
Modify so that down() will run git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1004 0d517254-b314-0410-acde-c619094fa49f
Groovy
bsd-3-clause
NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror
2215d5cb4a504af9b6dbd18956c3af00446dd819
src/main/groovy/io/gitlab/arturbosch/smartsmells/smells/godclass/FieldAccessVisitor.groovy
src/main/groovy/io/gitlab/arturbosch/smartsmells/smells/godclass/FieldAccessVisitor.groovy
package io.gitlab.arturbosch.smartsmells.smells.godclass import com.github.javaparser.ast.expr.NameExpr import com.github.javaparser.ast.visitor.VoidVisitorAdapter /** * @author artur */ class FieldAccessVisitor extends VoidVisitorAdapter<Set<String>> { private Set<String> fieldNames = new ArrayList<>() private ...
package io.gitlab.arturbosch.smartsmells.smells.godclass import com.github.javaparser.ast.expr.NameExpr import com.github.javaparser.ast.visitor.VoidVisitorAdapter /** * @author artur */ class FieldAccessVisitor extends VoidVisitorAdapter<Set<String>> { private Set<String> fieldNames = new HashSet<>() private Se...
Use sets in field access visitor for performance
Use sets in field access visitor for performance
Groovy
apache-2.0
arturbosch/SmartSmells,arturbosch/SmartSmells
5560c33fea88c1888f42bc488a8a332ee4298bf2
src/it/mexec-86/verify.groovy
src/it/mexec-86/verify.groovy
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
Fix IT, filter out Java home (required for non-Windows OS)
Fix IT, filter out Java home (required for non-Windows OS) git-svn-id: a42be30bf39bb82b816ad91cda7e6b839e90f325@17285 52ab4f32-60fc-0310-b215-8acea882cd1b
Groovy
apache-2.0
ninthnails/exec-maven-plugin,mohanaraosv/exec-maven-plugin,mojohaus/exec-maven-plugin,mojohaus/exec-maven-plugin,mohanaraosv/exec-maven-plugin,ninthnails/exec-maven-plugin
3d25f4cd38c4b2dd679648e89152fe80c5192253
scripts/CreateRelationshipType.groovy
scripts/CreateRelationshipType.groovy
/* * Copyright 2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Remove depends on redundat targets
Remove depends on redundat targets
Groovy
agpl-3.0
griffon/griffon-neo4j-plugin
cd608db69a6f38fd874c92419d1816a762a6bd6f
src/test/resources/core/For_02.groovy
src/test/resources/core/For_02.groovy
for (int i = 0; true; false) {} for (int i = 0; true; false) { } for (int i = 0; true; false) { } for (int i = 0; true; false) { } for(;;) { }
for (int i = 0; true; false) {} for (int i = 0; true; false) { } for (int i = 0; true; false) { } for (int i = 0; true; false) { } for(;;) { } for(int i = 0;;) { } for(;true;) { } for(;;false) { }
Add more test case for classic for statement
Add more test case for classic for statement
Groovy
apache-2.0
danielsun1106/groovy-parser,danielsun1106/groovy-parser
1987b85ee8a4d7c29fe2d334c8585339568a5b96
gremlin-console/src/main/resources/com/tinkerpop/gremlin/console/plugin/UtilitiesGremlinPluginScript.groovy
gremlin-console/src/main/resources/com/tinkerpop/gremlin/console/plugin/UtilitiesGremlinPluginScript.groovy
/** * @author Daniel Kuppitz (http://thinkaurelius.com) * @author Marko A. Rodriguez (http://markorodriguez.com) */ clock = { int loops = 100, Closure closure -> closure.call() // warmup (1..loops).collect { t = System.nanoTime() closure.call() ((System.nanoTime() - t) * 0.000001) ...
/** * @author Daniel Kuppitz (http://thinkaurelius.com) * @author Marko A. Rodriguez (http://markorodriguez.com) * @author Stephen Mallette (http://stephen.genoprime.com) */ clock = { int loops = 100, Closure closure -> closure.call() // warmup (1..loops).collect { t = System.nanoTime() cl...
Add describeGraph utility function to plugin.
Add describeGraph utility function to plugin.
Groovy
apache-2.0
rmagen/incubator-tinkerpop,dalaro/incubator-tinkerpop,Lab41/tinkerpop3,velo/incubator-tinkerpop,n-tran/incubator-tinkerpop,BrynCooke/incubator-tinkerpop,RussellSpitzer/incubator-tinkerpop,gdelafosse/incubator-tinkerpop,artem-aliev/tinkerpop,jorgebay/tinkerpop,jorgebay/tinkerpop,apache/incubator-tinkerpop,krlohnes/tinke...
5ba051aa7034067fd3595eb9200533d2342d6cc5
samples/xml/cas/cassample/src/integration-test/groovy/org/springframework/security/samples/cas/AbstractCasTests.groovy
samples/xml/cas/cassample/src/integration-test/groovy/org/springframework/security/samples/cas/AbstractCasTests.groovy
/* * Copyright 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Reset browser to accomidate every domain
Reset browser to accomidate every domain Fixes gh-4304
Groovy
apache-2.0
pwheel/spring-security,djechelon/spring-security,pwheel/spring-security,kazuki43zoo/spring-security,pwheel/spring-security,olezhuravlev/spring-security,spring-projects/spring-security,thomasdarimont/spring-security,jgrandja/spring-security,kazuki43zoo/spring-security,fhanik/spring-security,fhanik/spring-security,eddume...
c172b681c3faa673eab9ababc35948ae9c72d87f
src/main/groovy/whelk/plugin/libris/JsonLdTermReducer.groovy
src/main/groovy/whelk/plugin/libris/JsonLdTermReducer.groovy
package whelk.plugin.libris import groovy.util.logging.Slf4j as Log import whelk.Document import whelk.plugin.BasicFilter @Log class JsonLdTermReducer extends BasicFilter { JsonLdTermReducer() { } boolean valid(Document doc) { return doc && doc.isJson() && doc.contentType == "application/ld+jso...
package whelk.plugin.libris import groovy.util.logging.Slf4j as Log import whelk.Document import whelk.plugin.BasicFilter @Log class JsonLdTermReducer extends BasicFilter { JsonLdTermReducer() { } boolean valid(Document doc) { return doc && doc.isJson() && doc.contentType == "application/ld+jso...
Add note about treating value as a set
Add note about treating value as a set
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
b4e39956e4c484a2e4fd3e9d0c8859f7771def4b
buildSrc/src/main/groovy/jp/leafytree/gradle/GradleWrapper.groovy
buildSrc/src/main/groovy/jp/leafytree/gradle/GradleWrapper.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 app...
/* * 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 app...
Use absolute path for gradlew
Use absolute path for gradlew
Groovy
apache-2.0
saturday06/gradle-android-scala-plugin,felixvf/gradle-android-mirah-plugin
942bd15a7384ccca26507712c67461a9853cf1f0
src/main/groovy/cz/alenkacz/gradle/marathon/deploy/DeployTask.groovy
src/main/groovy/cz/alenkacz/gradle/marathon/deploy/DeployTask.groovy
package cz.alenkacz.gradle.marathon.deploy import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction class DeployTask extends DefaultTask { def PluginExtension pluginExtension public DeployTask() { group = 'publishing' description = 'Deploys your application to Marathon' } ...
package cz.alenkacz.gradle.marathon.deploy import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction class DeployTask extends DefaultTask { def PluginExtension pluginExtension public DeployTask() { group = 'publishing' description = 'Deploys your application to Marathon' } ...
Use java.io File class directly
Use java.io File class directly
Groovy
mit
alenkacz/gradle-marathon-deployer
566fee3b9d09f95d5d1789e5fc4ad47da11d7ab7
gateway/src/test/groovy/io/rhiot/gateway/heartbeat/HeartbeatVerticleTest.groovy
gateway/src/test/groovy/io/rhiot/gateway/heartbeat/HeartbeatVerticleTest.groovy
/** * Licensed to the Rhiot under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in co...
/** * Licensed to the Rhiot under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in co...
Test should stop gateway after it is finished.
Test should stop gateway after it is finished.
Groovy
apache-2.0
rimolive/rhiot,rimolive/rhiot,krissman/rhiot,krissman/rhiot,jasonchaffee/camel-labs,lasombra/rhiot,jasonchaffee/camel-labs,rhiot/rhiot,rhiot/rhiot,rimolive/rhiot,rhiot/rhiot,lasombra/rhiot,krissman/rhiot,rhiot/rhiot,krissman/rhiot,rhiot/rhiot,finiteloopme/rhiot,krissman/rhiot,lasombra/rhiot,krissman/rhiot,rimolive/rhio...
7abee96d3723bc2dcd72c77a014684e6a4bfac57
src/groovy/sample/MapWidget.groovy
src/groovy/sample/MapWidget.groovy
package sample import net.kaleidos.plugins.admin.widget.Widget class MapWidget extends Widget { String render() { def html = new StringBuilder() html.append("<div class='map-widget'>") html.append("<div>") html.append("<span class='map-container'>") html.append("<iframe wi...
package sample import net.kaleidos.plugins.admin.widget.Widget class MapWidget extends Widget { String render() { def html = new StringBuilder() html.append("<div class='map-widget'>") html.append("<div>") html.append("<span class='map-container'>") html.append("<iframe wi...
Fix customwidget for new assets format
Fix customwidget for new assets format
Groovy
apache-2.0
kaleidos/grails-admin-interface-sample,kaleidos/grails-admin-interface-sample
501e8c4ef055d75150b492d7128a08d6eb582112
grails-app/controllers/ozone/owf/grails/controllers/MergedDirectoryResourceController.groovy
grails-app/controllers/ozone/owf/grails/controllers/MergedDirectoryResourceController.groovy
package ozone.owf.grails.controllers /* * This controller looks for the specified resource in two places. * First, it looks in the external directory specified in params.fileRoot. * If not found, it then looks where the file would be if it were static * content from the war. * If neither location are successful...
package ozone.owf.grails.controllers /* * This controller looks for the specified resource in two places. * First, it looks in the external directory specified in params.fileRoot. * If not found, it then looks where the file would be if it were static * content from the war. * If neither location are successful...
Fix for OWF-7265 - XSS Vulnerability Finding - OWF 6.0.1 New Finding 2
Fix for OWF-7265 - XSS Vulnerability Finding - OWF 6.0.1 New Finding 2 I fixed this by adding an encodeAsHTML() around the message that is outputted if a resource is not found.
Groovy
apache-2.0
ozoneplatform/owf-framework,dotunolafunmiloye/owf-framework,dotunolafunmiloye/owf-framework,ozoneplatform/owf-framework,dotunolafunmiloye/owf-framework,dotunolafunmiloye/owf-framework,dotunolafunmiloye/owf-framework,ozoneplatform/owf-framework,dotunolafunmiloye/owf-framework,ozoneplatform/owf-framework,ozoneplatform/ow...
593fe5889a9546661c2d50f272de8d359f69dac5
modules/sepal-server/src/main/groovy/org/openforis/sepal/component/files/query/GbUsed.groovy
modules/sepal-server/src/main/groovy/org/openforis/sepal/component/files/query/GbUsed.groovy
package org.openforis.sepal.component.files.query import org.openforis.sepal.query.Query import org.openforis.sepal.query.QueryHandler import org.openforis.sepal.util.Terminal import org.openforis.sepal.util.annotation.ImmutableData @ImmutableData class GbUsed implements Query<Double> { String username } class G...
package org.openforis.sepal.component.files.query import org.apache.commons.lang.SystemUtils import org.openforis.sepal.query.Query import org.openforis.sepal.query.QueryHandler import org.openforis.sepal.util.Terminal import org.openforis.sepal.util.annotation.ImmutableData @ImmutableData class GbUsed implements Que...
Allow home directory size check in Windows.
Allow home directory size check in Windows.
Groovy
mit
openforis/sepal,openforis/sepal,openforis/sepal,openforis/sepal,openforis/sepal,openforis/sepal
d6447cab4b3225419380a3054188bb4287541b6c
src/test/groovy/com/jenjinstudios/io/concurrency/WriteTaskSpec.groovy
src/test/groovy/com/jenjinstudios/io/concurrency/WriteTaskSpec.groovy
package com.jenjinstudios.io.concurrency import com.jenjinstudios.io.Message import com.jenjinstudios.io.MessageWriter import spock.lang.Specification public class WriteTaskSpec extends Specification { def "WriteTask should write all outgoing messages from queue"() { given: def queue = Mock(Me...
package com.jenjinstudios.io.concurrency import com.jenjinstudios.io.Message import com.jenjinstudios.io.MessageWriter import spock.lang.Specification public class WriteTaskSpec extends Specification { def "WriteTask should write all outgoing messages from queue"() { given: def queue = Mock(Me...
Add spec for error in write task
Add spec for error in write task
Groovy
mit
floralvikings/jenjin-io
1bfde6a087a2600109961234709d85830406ceaf
whelk-core/src/test/groovy/whelk/LegacyIntegrationToolsSpec.groovy
whelk-core/src/test/groovy/whelk/LegacyIntegrationToolsSpec.groovy
package whelk.util import spock.lang.Specification class LegacyIntegrationToolsSpec extends Specification { static idBase = 'https://id.kb.se/marc' def tool = new LegacyIntegrationTools() def "should encode and crc32 hash identifier"() { expect: tool.generateId(data) == id where...
package whelk.util import spock.lang.Specification class LegacyIntegrationToolsSpec extends Specification { static idBase = 'https://id.kb.se/marc' def tool = new LegacyIntegrationTools() def "should encode and crc32 hash identifier"() { expect: tool.generateId(data) == id where...
Fix last second rename lost in stash
Fix last second rename lost in stash
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
aa811476171e44238494d4f036d3c656a061cbc8
grails-app/services/wirc/ClassifierService.groovy
grails-app/services/wirc/ClassifierService.groovy
package wirc import com.heikkiv.ml.thomas.* import com.heikkiv.ml.thomas.mongo.* import javax.annotation.PostConstruct class ClassifierService { def grailsApplication Classifier classifier ClassifierService() { classifier = new NaiveBayesClassifier() classifier.repository = new MongoBay...
package wirc import com.heikkiv.ml.thomas.* import com.heikkiv.ml.thomas.mongo.* import javax.annotation.PostConstruct class ClassifierService { def grailsApplication Classifier classifier ClassifierService() { classifier = new NaiveBayesClassifier() } @PostConstruct void setThresh...
Use in memory classifier db
Use in memory classifier db
Groovy
mit
heikkiv/wirc,heikkiv/wirc
32a85145cb71c363bdfb396e7270bc4f5c8bf2c4
db/migrate/001_release1/008_modify_study.groovy
db/migrate/001_release1/008_modify_study.groovy
class ModifyStudy extends edu.northwestern.bioinformatics.bering.Migration { void up() { if (databaseMatches('oracle')) { execute('ALTER TABLE studies ADD completed integer NOT NULL') } else { execute('ALTER TABLE studies ADD completed BOOLEAN NOT NULL') } ...
class ModifyStudy extends edu.northwestern.bioinformatics.bering.Migration { void up() { if (databaseMatches('oracle')) { execute('ALTER TABLE studies ADD completed integer NOT NULL DEFAULT \'0\'') } else { execute('ALTER TABLE studies ADD completed BOOLEAN NOT NULL DEFA...
Add default values in case there are already values in the table
Add default values in case there are already values in the table git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1176 0d517254-b314-0410-acde-c619094fa49f
Groovy
bsd-3-clause
NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror
0998a8581e2087f42b05c964bbb4cc4776dc28e3
app1/src/integration-test/groovy/functionaltests/ConfigTestControllerSpec.groovy
app1/src/integration-test/groovy/functionaltests/ConfigTestControllerSpec.groovy
package functionaltests import geb.spock.GebSpec import grails.gorm.transactions.Rollback import grails.testing.mixin.integration.Integration @Integration(applicationClass = Application) @Rollback class ConfigTestControllerSpec extends GebSpec { void "Test that configuration properties are correctly read"() { ...
package functionaltests import geb.spock.GebSpec import grails.gorm.transactions.Rollback import grails.testing.mixin.integration.Integration @Integration(applicationClass = Application) @Rollback class ConfigTestControllerSpec extends GebSpec { void "Test that configuration properties are correctly read"() { ...
Adjust failing tests due to map keys order
Adjust failing tests due to map keys order
Groovy
apache-2.0
grails/grails3-functional-tests,grails/grails3-functional-tests
aa0bc3c9c4e31852f7442867265168073d94257d
netci.groovy
netci.groovy
// Import the utility functionality. import jobs.generation.Utilities; def project = GithubProject def branch = GithubBranchName // Define build string def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd''' // Generate the builds for debug and...
// Import the utility functionality. import jobs.generation.Utilities; def project = GithubProject def branch = GithubBranchName // Generate the builds for debug and release ["Windows_NT", "Ubuntu14.04"].each { os -> [true, false].each { isPR -> def newJob = job(Utilities.getFullJobName(project, os, isP...
Add *nix build during PR
Add *nix build during PR
Groovy
mit
MattGal/buildtools,dotnet/buildtools,karajas/buildtools,ChadNedzlek/buildtools,alexperovich/buildtools,JeremyKuhne/buildtools,weshaggard/buildtools,jthelin/dotnet-buildtools,weshaggard/buildtools,stephentoub/buildtools,alexperovich/buildtools,stephentoub/buildtools,MattGal/buildtools,tarekgh/buildtools,jthelin/dotnet-b...
fee7600d88b57648db87be77892f326481cf6079
src/test/groovy/org/codehaus/gant/tests/GantBuilder_Test.groovy
src/test/groovy/org/codehaus/gant/tests/GantBuilder_Test.groovy
// Gant -- A Groovy build framework based on scripting Ant tasks. // // Copyright © 2008 Russel Winder // // 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/lice...
// Gant -- A Groovy build framework based on scripting Ant tasks. // // Copyright © 2008 Russel Winder // // 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/lice...
Correct a trivial spelling error.
Correct a trivial spelling error. git-svn-id: 09612c73960e3111da5f49d785ce6caca2747963@9766 d02f77da-47a5-474d-b610-f18e4bea325a
Groovy
apache-2.0
Gant/Gant,russel/Gant,codehaus/gant,codehaus/gant,Gant/Gant,codehaus/gant,Gant/Gant,russel/Gant,russel/Gant
2e77b861a3186ac7d54d3eb3c86bafa8e63913e5
src/test/groovy/com/github/vbauer/yta/model/DirectionSpec.groovy
src/test/groovy/com/github/vbauer/yta/model/DirectionSpec.groovy
package com.github.vbauer.yta.model import spock.lang.Specification /** * Tests for {@link Direction}. * * @author Vladislav Bauer */ class DirectionSpec extends Specification { def "Check separator"() { expect: Direction.SEPARATOR == "-" } def "Check factory method with source ...
package com.github.vbauer.yta.model import spock.lang.Specification /** * Tests for {@link Direction}. * * @author Vladislav Bauer */ class DirectionSpec extends Specification { def "Check separator"() { expect: Direction.SEPARATOR == "-" } def "Check factory method with source ...
Add unit tests for `Direction` model
Add unit tests for `Direction` model
Groovy
mit
vbauer/yandex-translate-api,vbauer/yandex-translate-api
ffac9ed0def4a74b7cb0357eb5f2b2ffd1743e97
src/test/groovy/geoscript/filter/ExpressionTestCase.groovy
src/test/groovy/geoscript/filter/ExpressionTestCase.groovy
package geoscript.filter import org.junit.Test import static org.junit.Assert.* /** * The Expression UnitTest * @author Jared Erickson */ class ExpressionTestCase { @Test void constructors() { // Create an Expression from a value Expression e = new Expression(12) assertTrue e.expr ins...
package geoscript.filter import org.junit.Test import static org.junit.Assert.* /** * The Expression UnitTest * @author Jared Erickson */ class ExpressionTestCase { @Test void constructors() { // Create an Expression from a value Expression e = new Expression(12) assertTrue e.expr ins...
Add test for fromCQL static method.
Add test for fromCQL static method.
Groovy
mit
sbortman/geoscript-groovy,geoscript/geoscript-groovy,sbortman/geoscript-groovy,geoscript/geoscript-groovy
6679202ca979a5aceae34cde66174fb748fff530
examples/hospital/hospital-service/src/main/resources/HospitalConfig.groovy
examples/hospital/hospital-service/src/main/resources/HospitalConfig.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 required by applicabl...
/* * 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 required by applicabl...
Create one jar with dependencies for simpler artifact based service UI declaration
Create one jar with dependencies for simpler artifact based service UI declaration
Groovy
apache-2.0
dreedyman/Rio,dreedyman/Rio,dreedyman/Rio
db47ea40d775d8da4d43c5129afcaa8dc2729458
src/main/groovy/vdecl/ClojureRenderStrategy.groovy
src/main/groovy/vdecl/ClojureRenderStrategy.groovy
package vdecl import clojure.java.api.Clojure import com.vaadin.ui.Component import com.vaadin.ui.declarative.Design import groovy.util.logging.Slf4j import org.apache.commons.io.input.ReaderInputStream import java.util.regex.Pattern @org.springframework.stereotype.Component @Slf4j class ClojureRenderStrategy extend...
package vdecl import clojure.java.api.Clojure import com.vaadin.ui.Component import com.vaadin.ui.declarative.Design import groovy.util.logging.Slf4j import org.apache.commons.io.input.ReaderInputStream import java.util.regex.Pattern @org.springframework.stereotype.Component @Slf4j class ClojureRenderStrategy extend...
Use clojure.main/load-script to allow for multi-line files (last statement will get rendered)
Use clojure.main/load-script to allow for multi-line files (last statement will get rendered)
Groovy
bsd-3-clause
christoph-frick/vdecl,christoph-frick/vdecl
e07562139d7fb0f0803ae24974929046703f1205
groovy/main-jenkins-job-seed-post-build.groovy
groovy/main-jenkins-job-seed-post-build.groovy
import jenkins.model.Jenkins import org.kohsuke.github.GHEvent import com.cloudbees.jenkins.GitHubRepositoryName [['libnacl', 'saltstack/libnacl'], ['raet', 'saltstack/raet'], ['salt', 'saltstack/salt'], ['sorbic', 'thatch45/sorbic']].each { project, github_repo -> job = Jenkins.instance.getJob(project).get('pr...
Add the main dsl post build script
Add the main dsl post build script
Groovy
apache-2.0
saltstack/jenkins-dsl-jobs
1888c2dda6fcb723f43f2ac46d7e7a404f9fb088
subprojects/plugins/src/integTest/groovy/org/gradle/groovy/compile/GroovyJavaJointCompileSourceOrderIntegrationTest.groovy
subprojects/plugins/src/integTest/groovy/org/gradle/groovy/compile/GroovyJavaJointCompileSourceOrderIntegrationTest.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 test to reproduce GROOVY-7966
Add test to reproduce GROOVY-7966 +review REVIEW-6300
Groovy
apache-2.0
lsmaira/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/grad...
bd55a65611f98e40386e60bd8ec563bec2dca977
subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r24/TestProgressDaemonErrorsCrossVersionSpec.groovy
subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r24/TestProgressDaemonErrorsCrossVersionSpec.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 case for test progress to check what happens if the daemon disappears unexpectedly
Add test case for test progress to check what happens if the daemon disappears unexpectedly
Groovy
apache-2.0
lsmaira/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira...
d860c4330b389f55a7b72e5d755807af8c159c1d
testeng/jobs/cleanUpWorkers.groovy
testeng/jobs/cleanUpWorkers.groovy
package testeng job('clean-up-workers') { logRotator { daysToKeep(10) numToKeep(25) } label('micro-worker') scm { git { remote { url('https://github.com/edx/testeng-ci.git') } branch('*/master') browser() ...
Add dsl for clean-up-workers job
Add dsl for clean-up-workers job add groovy script and log rotator add testeng package config remove config
Groovy
agpl-3.0
edx/jenkins-job-dsl
37b59602467067726344fdf35c3a99fa5ab2d338
grails-app/migrations/changelog-7-40.groovy
grails-app/migrations/changelog-7-40.groovy
/* * Copyright (c) 2019 Kagilum SAS * * This file is part of iceScrum. * * iceScrum is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License. * * iceScrum is distributed in the ho...
Migrate task & feature color
Migrate task & feature color
Groovy
agpl-3.0
icescrum/iceScrum,icescrum/iceScrum
58b33699ef8917ebed8d62d7ec42de6eb651639c
.test-infra/jenkins/job_seed_standalone.groovy
.test-infra/jenkins/job_seed_standalone.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 standalone version of seed job
Add standalone version of seed job
Groovy
apache-2.0
tgroh/beam,apache/beam,jbonofre/beam,lukecwik/incubator-beam,charlesccychen/beam,wangyum/beam,RyanSkraba/beam,markflyhigh/incubator-beam,jbonofre/incubator-beam,staslev/beam,jbonofre/beam,wangyum/beam,robertwb/incubator-beam,charlesccychen/beam,rangadi/incubator-beam,staslev/incubator-beam,RyanSkraba/beam,robertwb/incu...
8938b497aa48afb8b6699a39c00bcfc0873c3f4d
subprojects/platform-jvm/src/integTest/groovy/org/gradle/jvm/JavaSourceSetIntegrationTest.groovy
subprojects/platform-jvm/src/integTest/groovy/org/gradle/jvm/JavaSourceSetIntegrationTest.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 an integration test for Java source set dependencies
Add an integration test for Java source set dependencies +review REVIEW-5503
Groovy
apache-2.0
blindpirate/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,gstevey/grad...
970469e1f5e91b0d4ecfc87db6fdb28916331a93
subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/TestTaskJdkRelocationIntegrationTest.groovy
subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/TestTaskJdkRelocationIntegrationTest.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 using Java 7 to run tests form two different locations
Test using Java 7 to run tests form two different locations +review REVIEW-6364
Groovy
apache-2.0
blindpirate/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,...
c67b9a786deefdaeab83b968cce5ef4138a533ea
gradle-plugin/src/main/groovy/io/realm/gradle/Realm.groovy
gradle-plugin/src/main/groovy/io/realm/gradle/Realm.groovy
package io.realm.gradle import com.neenbedankt.gradle.androidapt.AndroidAptPlugin import org.gradle.api.Plugin import org.gradle.api.Project class Realm implements Plugin<Project> { @Override void apply(Project project) { project.plugins.apply(AndroidAptPlugin) project.repositories.add(projec...
package io.realm.gradle import com.neenbedankt.gradle.androidapt.AndroidAptPlugin import org.gradle.api.Plugin import org.gradle.api.Project class Realm implements Plugin<Project> { @Override void apply(Project project) { project.plugins.apply(AndroidAptPlugin) project.repositories.add(projec...
Fix the transitive dependency issue
Fix the transitive dependency issue Adding @aar at the end of a dependency turns off the transitive dependencies. See https://docs.gradle.org/current/userguide/dependency_management.html , specifically the "Artifact only notation" section
Groovy
apache-2.0
realm/realm-java,teddywest32/realm-java,realm/realm-java,ShikaSD/realm-java,ShikaSD/realm-java,realm/realm-java,ShikaSD/realm-java,ShikaSD/realm-java,realm/realm-java,realm/realm-java,teddywest32/realm-java,teddywest32/realm-java,realm/realm-java,teddywest32/realm-java,ShikaSD/realm-java,realm/realm-java,teddywest32/re...
847648db1c67613aadfbf2c67c326a186476289a
whelktool/scripts/cleanups/2020/03/lxl-3058.groovy
whelktool/scripts/cleanups/2020/03/lxl-3058.groovy
PrintWriter failedBibIDs = getReportWriter("failed-to-delete-bibIDs") PrintWriter scheduledForUpdate = getReportWriter("scheduled-for-update") String where = "collection = 'bib' and data#>>'{@graph,2}' is not null" selectBySqlWhere(where, silent: true) { bib -> def (record, mainEntity, oldWork) = bib.graph ...
Add a script for moving @graph,2 into embedded/framed form in @graph,1.
Add a script for moving @graph,2 into embedded/framed form in @graph,1.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
001c7cce855019478ecd0c7ea542fc308c4bedc5
db/migrate/002_release2/009_set_default_for_version_columns.groovy
db/migrate/002_release2/009_set_default_for_version_columns.groovy
class SetDefaultForVersionColumns extends edu.northwestern.bioinformatics.bering.Migration { void up() { setDefaultValue("activity_types", "version", "0"); setDefaultValue("arms", "version", "0"); setDefaultValue("activities", "version", "0"); setDefaultValue("par...
Set defaults for all version columns
Set defaults for all version columns git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@323 0d517254-b314-0410-acde-c619094fa49f
Groovy
bsd-3-clause
NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror
8b6c9001b2dc44577e7aa96a1b31efcc3d7a63d9
grails-app/jobs/cytomine/web/ExtractImageMetadataJob.groovy
grails-app/jobs/cytomine/web/ExtractImageMetadataJob.groovy
package cytomine.web import be.cytomine.image.AbstractImage class ExtractImageMetadataJob { def imagePropertiesService def startDelay = 5000 //start 5 seconds after server is running def timeout = 1000*60*10 //each 10 minutes def execute() { Collection<AbstractImage> abstractIma...
Add cron job to retrieve image metadata
Add cron job to retrieve image metadata
Groovy
apache-2.0
charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,charybdeBE/Cytomine-core,cytomine/Cytomine-core,cytom...
d49b79957d244d40515102b3a1e78059c4cb9f03
whelktool/scripts/2019/05/delete-unused-encodingLevel.groovy
whelktool/scripts/2019/05/delete-unused-encodingLevel.groovy
/* * This script sets obsolete or OCLC specfic encodingLevels to marc:AbbreviatedLevel * * See LXL-2546 for more info. * */ NEW_ENCODING_LEVEL_VALUE = "marc:AbbreviatedLevel" PrintWriter scheduledToUpdateEncodingLevel = getReportWriter("scheduled-to-update-encodingLevel") selectBySqlWhere(""" collection ...
Add script to change encodingLevel of obsolete or OCLC specific values
Add script to change encodingLevel of obsolete or OCLC specific values
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
ebc3e4bc562ff7eab8ab3c4de24e6b142e4c53a1
src/test/groovy/wooga/gradle/unity/batchMode/BatchModeFlagsSpec.groovy
src/test/groovy/wooga/gradle/unity/batchMode/BatchModeFlagsSpec.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 stupid test for Const class
Add stupid test for Const class
Groovy
apache-2.0
wooga/atlas-unity,wooga/atlas-unity
34cda3e6592a619384a33216410765639304c8dd
src/main/groovy/jenkins/automation/utils/ScmUtils.groovy
src/main/groovy/jenkins/automation/utils/ScmUtils.groovy
package jenkins.automation.utils /** * Utility class to provide nicer, terser DSL for common tasks * @see <a href="https://github.com/imuchnik/jenkins-automation/blob/gh-pages/docs/examples.md#using-multiscm-utility" target="_blank">Using Utility Class example</a> */ class ScmUtils { static void project_rep...
package jenkins.automation.utils /** * Utility class to provide nicer, terser DSL for common tasks * @see <a href="https://github.com/imuchnik/jenkins-automation/blob/gh-pages/docs/examples.md#using-multiscm-utility" target="_blank">Using Utility Class example</a> */ class ScmUtils { static void project_rep...
Use ternary for shallow clone
Use ternary for shallow clone
Groovy
cc0-1.0
higs4281/jenkins-automation,lfatty/jenkins-automation,Scotchester/jenkins-automation,higs4281/jenkins-automation,Scotchester/jenkins-automation
cea46e7d801d6a33a1d2c27e03a7cdc566bda422
test/integration/RembrandtClinicalServiceTests.groovy
test/integration/RembrandtClinicalServiceTests.groovy
package gov.nih.nci.cma.services.rembrandt class RembrandtClinicalServiceTests extends GroovyTestCase { def rembrandtClinicalService void testSomething() { // Try getting ids for race List ids = rembrandtClinicalService.getIdsForRace('WHITE') println("Query returned numResults=${ids.size()}") ...
Test for the rembrandt clinical service.
Test for the rembrandt clinical service. SVN-Revision: 5168
Groovy
bsd-3-clause
NCIP/cma,NCIP/cma,NCIP/cma,NCIP/cma,NCIP/cma
12276d434be5d652a7f565da3f96c7976e9cf784
subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildSettingsPluginIntegrationTest.groovy
subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildSettingsPluginIntegrationTest.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 failing tests for settings plugins from included builds
Add failing tests for settings plugins from included builds
Groovy
apache-2.0
gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpira...
6ebaf0d91eb0b83e6612e5931ffbbd1dea244ab5
whelktool/scripts/cleanups/2020/08/lxl-2920-2921-2922-remove-linkservrecord.groovy
whelktool/scripts/cleanups/2020/08/lxl-2920-2921-2922-remove-linkservrecord.groovy
PrintWriter scheduledForDeletion = getReportWriter("scheduled-deletes") PrintWriter failedUpdating = getReportWriter("failed-deletes") def linkServers = ["EBZ", "SFX", "WaSeSS"] for (String linkserver : linkServers) { String where = "id in\n" + "(\n" + "select id from lddb l where\n" + ...
Add a linkserver delete script.
Add a linkserver delete script.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
2cace3cef12f6f558d9b60b51df34bdb5fe6de40
whelktool/scripts/2019/05/fix-smushed-bibliographies.groovy
whelktool/scripts/2019/05/fix-smushed-bibliographies.groovy
LIBRARY = 'Library' selectBySqlWhere(""" deleted = false AND collection = 'bib' AND data#>>'{@graph,0,bibliography,0,sigel}' LIKE '%,%' """) { data -> def record = data.graph[0] record.bibliography.each { assert it.keySet() == [TYPE, 'sigel'] as Set assert it[TYPE] == LIBRARY }...
Change bibliographies with multiple codes to multiple bibliographies
Change bibliographies with multiple codes to multiple bibliographies This makes some assertions based on expected (and tested) limitations on how the entities are described to simplify the changes.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
86e4c62cab19320abbeb3a6f84ad4154735ee0b1
broker/src/test/groovy/com/swisscom/cloud/sb/broker/util/RestTemplateProxySpec.groovy
broker/src/test/groovy/com/swisscom/cloud/sb/broker/util/RestTemplateProxySpec.groovy
package com.swisscom.cloud.sb.broker.util import org.apache.http.auth.AuthScope import spock.lang.Specification class RestTemplateProxySpec extends Specification { def "when proxy is requested, RestTemplate should have it configured"() { given: String proxyHost = 'localhost' String proxyPo...
Create base for unit test
Create base for unit test
Groovy
apache-2.0
swisscom/open-service-broker,swisscom/open-service-broker
19df1e26e5427bdd379bd76191976a9e58c02824
tools/kotlin-native-gradle-plugin/src/test/groovy/org/jetbrains/kotlin/gradle/plugin/test/DefaultSpecification.groovy
tools/kotlin-native-gradle-plugin/src/test/groovy/org/jetbrains/kotlin/gradle/plugin/test/DefaultSpecification.groovy
package org.jetbrains.kotlin.gradle.plugin.test import org.gradle.testkit.runner.TaskOutcome import org.junit.Rule import org.junit.rules.TemporaryFolder import spock.lang.Specification class DefaultSpecification extends Specification { @Rule TemporaryFolder tmpFolder = new TemporaryFolder() def 'Plugi...
Add a test for default values
gradle-plugin: Add a test for default values
Groovy
apache-2.0
JetBrains/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native...
9c6296cc189a72920db13e26a9db233da90590d6
job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContextSpec.groovy
job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContextSpec.groovy
package javaposse.jobdsl.dsl.helpers.publisher import javaposse.jobdsl.dsl.Item import javaposse.jobdsl.dsl.JobManagement import spock.lang.Specification class MavenPublisherContextSpec extends Specification { JobManagement jobManagement = Mock(JobManagement) Item item = Mock(Item) MavenPublisherContext c...
package javaposse.jobdsl.dsl.helpers.publisher import javaposse.jobdsl.dsl.Item import javaposse.jobdsl.dsl.JobManagement import spock.lang.Specification class MavenPublisherContextSpec extends Specification { JobManagement jobManagement = Mock(JobManagement) Item item = Mock(Item) MavenPublisherContext c...
Add test to make sure no static analysis publishers throws an exception.
Add test to make sure no static analysis publishers throws an exception.
Groovy
apache-2.0
daspilker/job-dsl-plugin,jenkinsci/job-dsl-plugin,rahulsom/job-dsl-plugin,jenkinsci/job-dsl-plugin,v1v/job-dsl-plugin,kamilszymanski/job-dsl-plugin,v1v/job-dsl-plugin,rahulsom/job-dsl-plugin,daspilker/job-dsl-plugin,jenkinsci/job-dsl-plugin,pauxus/job-dsl-plugin,kamilszymanski/job-dsl-plugin,pauxus/job-dsl-plugin,rahul...
471919ba4b65fd8951e96cb05cca95b3a4f1f56e
subprojects/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonLoggingIntegrationTest.groovy
subprojects/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonLoggingIntegrationTest.groovy
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Add integration test for late-arriving log messages
Add integration test for late-arriving log messages
Groovy
apache-2.0
gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blin...
27c2ea1bb0bb6ddc106e5224f4e93dba1bab93d0
whelktool/scripts/cleanups/2020/10/lxl-2842-replaces-date.groovy
whelktool/scripts/cleanups/2020/10/lxl-2842-replaces-date.groovy
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") PrintWriter failedUpdating = getReportWriter("failed-updates") String where = "collection = 'bib' and data#>'{@graph,1,replaces}' @> '[{\"@type\":\"Serial\"}]'" selectBySqlWhere(where) { data -> boolean changed = false data.graph[1]["rep...
Add script for moving 'date' from replaces to embedded 'frequency'.
Add script for moving 'date' from replaces to embedded 'frequency'.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
ea1e0be76b564d9844e73055b0f71361f17814f6
whelktool/scripts/cleanups/2020/10/lxl-3288-mimer-descriptionCreator.groovy
whelktool/scripts/cleanups/2020/10/lxl-3288-mimer-descriptionCreator.groovy
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") PrintWriter failedUpdating = getReportWriter("failed-updates") String where = "collection = 'bib' and ( " + "data#>>'{@graph,0,descriptionCreator,@id}' = 'https://libris.kb.se/library/MimerProd' OR " + "data#>>'{@graph,0,descriptio...
Add a script for cleaning up old descriptionCreator values (these are no longer being created).
Add a script for cleaning up old descriptionCreator values (these are no longer being created).
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
f58a7639ec2b7dbdcf0da0ebe91c53b87f4083f8
whelktool/scripts/cleanups/2020/10/lxl-2136-musicFormat.groovy
whelktool/scripts/cleanups/2020/10/lxl-2136-musicFormat.groovy
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") PrintWriter failedUpdating = getReportWriter("failed-updates") String where = "collection = 'bib' and deleted = false and data#>>'{@graph,0,_marcUncompleted}' LIKE '%\"348\"%'" selectBySqlWhere(where) { data -> def instance = data.graph[1] ...
Add script for saving MusicFormat data out of unhandled.
Add script for saving MusicFormat data out of unhandled.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
c7e03ff069122bd6acd65a59f602fa1b5be92b89
whelktool/scripts/cleanups/2019/10/fix-auth-auth-links/fix-auth-auth-links.groovy
whelktool/scripts/cleanups/2019/10/fix-auth-auth-links/fix-auth-auth-links.groovy
/* * This script takes broken links for auth records in 'broader', 'narrower' and 'related' objects such as * * { "@type" : "Topic", "sameAs" : [{ "@id" : "https://id.kb.se/term/barn/Vardagsliv" }], * "prefLabel" : "Vardagsliv" } * * and repairs them, i.e. transforms them to * * { "@id" : "https://id.kb.se...
Add script for repairing broken auth-to-auth links for the relations 'broader', 'narrower' and 'related'
Add script for repairing broken auth-to-auth links for the relations 'broader', 'narrower' and 'related'
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
77d674e95eee189004d623dfcec7447be532785e
whelktool/scripts/cleanups/2021/06/lxl-3603-marc-otherIdentifier.groovy
whelktool/scripts/cleanups/2021/06/lxl-3603-marc-otherIdentifier.groovy
String where = """ collection = 'bib' AND ( data#>>'{@graph,1,identifiedBy}' LIKE '%marc:OtherIdentifier%' OR data#>>'{@graph,1,indirectlyIdentifiedBy}' LIKE '%marc:OtherIdentifier%' OR data#>>'{@graph,1,instanceOf,identifiedBy}' LIKE '%marc:OtherIdentifier%' ) OR collection = 'hold' AND ( data#>>'{@graph,1,ide...
Add script for removing marc:OtherIdentifier
Add script for removing marc:OtherIdentifier
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
8f63bb4260228ae820d40fc8708357f39d72e530
src/test/groovy/com/commercehub/gradle/plugin/avro/ExamplesFunctionalSpec.groovy
src/test/groovy/com/commercehub/gradle/plugin/avro/ExamplesFunctionalSpec.groovy
/* * Copyright © 2018 Commerce Technologies, LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Add test to validate examples
Add test to validate examples
Groovy
apache-2.0
commercehub-oss/gradle-avro-plugin,commercehub-oss/gradle-avro-plugin
f91b619f4f0be7367a282730e0af14dc027923fa
env/vm/buildVm.groovy
env/vm/buildVm.groovy
class VmBuilder { void build(String targetVm) { String[] command = ["/usr/bin/make", targetVm] ProcessBuilder pb = new ProcessBuilder(command) def env = pb.environment() env.put('PACKER_DEBUG', 'true') env.put('PACKER_CACHE_DIR', '/opt/packer_cache') env.put('PATH', S...
Add script to build VM with Packer for Jenkins
Add script to build VM with Packer for Jenkins
Groovy
apache-2.0
webdizz/sbs-gradle
cb872c80ea66acae5733142eb988221ec977844c
whelktool/scripts/cleanups/2019/10/lxl-2741-remove-properties-from-genreform/main.groovy
whelktool/scripts/cleanups/2019/10/lxl-2741-remove-properties-from-genreform/main.groovy
/* See LXL-2741 & LXL-2395 for more info. */ PrintWriter failedIDs = getReportWriter("failed-to-delete-bibIDs") PrintWriter scheduledForChange = getReportWriter("scheduledForChange") selectBySqlWhere("collection = 'auth' AND data#>>'{@graph,1,@type}' = 'GenreForm'", silent: false) { documentItem -> def record = d...
Add script for removal of marc properties in GenreForm adminmetadata
Add script for removal of marc properties in GenreForm adminmetadata
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
b32c5b3b16464a614d7c3bc7ec1575e234efe1cf
subprojects/launcher/src/integTest/groovy/org/gradle/launcher/cli/MaxWorkersIntegrationTest.groovy
subprojects/launcher/src/integTest/groovy/org/gradle/launcher/cli/MaxWorkersIntegrationTest.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 integration test for max workers change between builds
Add integration test for max workers change between builds
Groovy
apache-2.0
robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,blindpi...
1100cd5084c700738e34f0f66317c429ed369ad7
whelktool/scripts/cleanups/2020/02/lxl-3025/hasSeries-hasSubSeries-move-displayTitle.groovy
whelktool/scripts/cleanups/2020/02/lxl-3025/hasSeries-hasSubSeries-move-displayTitle.groovy
/* * This moves marc:displayText for hasSeries and hasSubSeries. Eg: * * Instance.hasSeries.Instance.instanceOf.marc:displayText will become * Instance.hasSeries.Instance.marc:displayText * * * See LXL-3025 for more info. */ PrintWriter failedIDs = getReportWriter("failed-to-update") scheduledForChange = getRe...
Add script to move displayText for hasSeries and hasSubseries
Add script to move displayText for hasSeries and hasSubseries
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
1f0392821e982df0e97d2854cac846de5f93f3bb
grails-app/controllers/com/collabnet/svnedge/controller/api/RepositoryRestController.groovy
grails-app/controllers/com/collabnet/svnedge/controller/api/RepositoryRestController.groovy
/* * CollabNet Subversion Edge * Copyright (C) 2011, CollabNet Inc. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or ...
Add API for listing repos
[artf6692] : Add API for listing repos Repo listing service endpoint. Mostly done, but output structure might need cleanup. * controllers/../RepositoryRestController.groovy (restRetrieve) new api controller for listing repos. git-svn-id: ec3c21ed833430e32134c61539c75518a6355d4e@2635 03e8f217-bfc6-4b7c-bcb7-0738c91e...
Groovy
agpl-3.0
marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console
30e4549e0f3eb019e0e2d43c6bd345197c694991
src/integration-test/groovy/com/github/blindpirate/gogradle/ide/IdeaPluginIntegrationTest.groovy
src/integration-test/groovy/com/github/blindpirate/gogradle/ide/IdeaPluginIntegrationTest.groovy
package com.github.blindpirate.gogradle.ide import com.github.blindpirate.gogradle.GogradleRunner import com.github.blindpirate.gogradle.support.IntegrationTestSupport import com.github.blindpirate.gogradle.support.WithResource import com.github.blindpirate.gogradle.util.IOUtils import org.gradle.tooling.BuildControll...
Test for IDEA plugin integration
Test for IDEA plugin integration
Groovy
apache-2.0
gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle,gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle
c3da6c4c0cf7549586a3a110305c8d17c588f72a
puppet-squid/src/test/groovy/com/iadams/sonarqube/puppet/parser/simple_statements/ParameterStatement.groovy
puppet-squid/src/test/groovy/com/iadams/sonarqube/puppet/parser/simple_statements/ParameterStatement.groovy
/* * Sonar Puppet Plugin * The MIT License (MIT) * * Copyright (c) 2015 Iain Adams * * 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 ...
Add unit test on PARAMETER
Add unit test on PARAMETER
Groovy
mit
iwarapter/sonar-puppet,iwarapter/sonar-puppet
798fa4120f9d533a811889f82268a511bfd3937d
bitcoinj-spock/src/test/groovy/com/msgilligan/bitcoinj/spock/CoinSpec.groovy
bitcoinj-spock/src/test/groovy/com/msgilligan/bitcoinj/spock/CoinSpec.groovy
package com.msgilligan.bitcoinj.spock import org.bitcoinj.core.Coin import spock.lang.Specification /** * Basic tests/demo of bitcoinj Coin class. */ class CoinSpec extends Specification { def "valueOf can make ZERO correctly"() { expect: Coin.valueOf(0,0) == Coin.ZERO } def "valueOf ...
Add a couple basic tests of the Coin class
Add a couple basic tests of the Coin class
Groovy
apache-2.0
msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons,msgilligan/bitcoinj-addons
19256ec7e817f3d4031d940e53d7b7e7c555cab8
whelktool/scripts/cleanups/2021/04/lxl-3531-tag-dataset.groovy
whelktool/scripts/cleanups/2021/04/lxl-3531-tag-dataset.groovy
/** * Example of setting meta.inDataset based on query */ def suecia = [ dataset: '6l5swjj84dcg9rhw', query : [ // This doesn't find everything as currently the Electronic records are not in the bibliographies... ...
Add example script for setting meta.inDataset based on query
Add example script for setting meta.inDataset based on query
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
ee7b8f7e769da6a09c5302f94a14b7f05288c60b
subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/TaskUpToDateIntegrationTest.groovy
subprojects/integ-test/src/integTest/groovy/org/gradle/integtests/TaskUpToDateIntegrationTest.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 order of files in plural output property
Test order of files in plural output property +review REVIEW-6205
Groovy
apache-2.0
gstevey/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,lsma...
fc3af82cf681116d160aec0f59cb743938f46113
whelktool/scripts/cleanups/2020/09/lxl-3341-complexsubject-in-sao.groovy
whelktool/scripts/cleanups/2020/09/lxl-3341-complexsubject-in-sao.groovy
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") PrintWriter failedUpdating = getReportWriter("failed-updates") String where = "data#>>'{@graph,1,@type}' = 'ComplexSubject' and not data#>'{@graph,1}' @> " + "'{\"inScheme\":{\"@id\":\"https://id.kb.se/term/sao\"}}'" selectBySqlWhere(wher...
Add inScheme sao to ComplexSubject
Add inScheme sao to ComplexSubject
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
b6f731396944a52e428942ac74a2df81124759f6
subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsCompositeBuildsIntegrationTest.groovy
subprojects/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/typesafe/TypeSafeProjectAccessorsCompositeBuildsIntegrationTest.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 test case for composite builds + project accessors
Add test case for composite builds + project accessors
Groovy
apache-2.0
blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpira...
c86ecaa9f69e16a2e15d4c07d8d65df892a620df
api-examples/src/test/groovy/org/openweathermap/api/example/RunExamples.groovy
api-examples/src/test/groovy/org/openweathermap/api/example/RunExamples.groovy
/* * Copyright 2021, Yurii Serhiichuk * * 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 an example runner that ensures validity of the examples.
Add an example runner that ensures validity of the examples.
Groovy
apache-2.0
xSAVIKx/openweathermap-java-api,xSAVIKx/openweathermap-java-api
ff5a7fe84280d0ef1220a4c50756718e8b55e0a0
subprojects/plugin-use/src/integTest/groovy/org/gradle/plugin/use/CustomRepositoryPluginResolverSpec.groovy
subprojects/plugin-use/src/integTest/groovy/org/gradle/plugin/use/CustomRepositoryPluginResolverSpec.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 tests for the new PluginResolver
Add integration tests for the new PluginResolver
Groovy
apache-2.0
blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,grad...
98bab7482ba05b81c45deb9a7d723e74015be51d
subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/CachingTreeVisitorCleanerTest.groovy
subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/CachingTreeVisitorCleanerTest.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 CachingTreeVisitorCleaner
Add integration test for CachingTreeVisitorCleaner +review REVIEW-5972
Groovy
apache-2.0
blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,g...
8a3cd2d2f59857528dcbaf2cb29c3546970e4ba1
src/test/groovy/com/bmuschko/gradle/docker/tasks/image/DockerfileTest.groovy
src/test/groovy/com/bmuschko/gradle/docker/tasks/image/DockerfileTest.groovy
package com.bmuschko.gradle.docker.tasks.image import spock.lang.Specification import spock.lang.Unroll import static Dockerfile.* class DockerfileTest extends Specification { @Unroll def "#instructionInstance String representation is built correctly"() { expect: instructionInstance.build() ==...
Add unit testing for all Dockerfile instructions.
Add unit testing for all Dockerfile instructions.
Groovy
apache-2.0
orzeh/gradle-docker-plugin,odybour/gradle-docker-plugin,llamahunter/gradle-docker-plugin,mjacques/gradle-docker-plugin,cdancy/gradle-docker-plugin,bmuschko/gradle-docker-plugin,orzeh/gradle-docker-plugin,childnode/gradle-docker-plugin,bmuschko/gradle-docker-plugin,Salmondx/gradle-docker-plugin,bmuschko/gradle-docker-pl...
df8f07a07ddd9d1f94f8d45f84f0d7d07cd83ba0
subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r23/ImplicitTasksToolingApiCrossVersionSpec.groovy
subprojects/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/r23/ImplicitTasksToolingApiCrossVersionSpec.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 test which verifies that implicit/placeholder tasks are visible to Tooling API via GradleProject model
Add a test which verifies that implicit/placeholder tasks are visible to Tooling API via GradleProject model +review REVIEW-5370
Groovy
apache-2.0
lsmaira/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gr...
f723b1e77e2f005a25ab9e5cf8c15767c64620fe
subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/CachingTreeVisitorCleanerTest.groovy
subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/CachingTreeVisitorCleanerTest.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 CachingTreeVisitorCleaner
Add integration test for CachingTreeVisitorCleaner +review REVIEW-5972
Groovy
apache-2.0
gradle/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gr...
d0c2fa5087d2c5dae2ea710953ef74596429ff5c
resources/init.groovy.d/adop_slave_master_access_control.groovy
resources/init.groovy.d/adop_slave_master_access_control.groovy
import jenkins.model.* import jenkins.security.s2m.AdminWhitelistRule Thread.start { sleep 3000 println "--> Enabling slave master access control" Jenkins.instance.injector.getInstance(AdminWhitelistRule.class).setMasterKillSwitch(false); Jenkins.instance.save() }
Enable Jenkins agent to master access control
Enable Jenkins agent to master access control
Groovy
apache-2.0
Accenture/adop-jenkins,dsingh07/adop-jenkins,dsingh07/adop-jenkins,Accenture/adop-jenkins
f2dc78cce4c697e83fb33d67a1eafd896a483c98
rundeckapp/scripts/_Events.groovy
rundeckapp/scripts/_Events.groovy
String savedUserDir; /** * WORKAROUND FOR GRAILS BUG: http://jira.grails.org/browse/MAVEN-154 */ eventTestPhasesStart = {args -> println "Setting user.dir (${basedir})" savedUserDir = System.getProperty("user.dir") System.setProperty("user.dir", "${basedir}") } /** * WORKAROUND FOR GRAILS BUG: http://j...
Use workaround script for maven grails test bug
Use workaround script for maven grails test bug [#489 state:needs_verification]
Groovy
apache-2.0
damageboy/rundeck,tjordanchat/rundeck,rundeck/rundeck,variacode/rundeck,jgpacker/rundeck,variacode/rundeck,variacode95/rundeck,damageboy/rundeck,patcadelina/rundeck,rophy/rundeck,patcadelina/rundeck,jgpacker/rundeck,paul-krohn/rundeck,jamieps/rundeck,rophy/rundeck,variacode/rundeck,variacode95/rundeck,paul-krohn/rundec...
9ed4b9db1f6f37147a2c719b2074cff768530cba
grails-app/conf/BuildConfig.groovy
grails-app/conf/BuildConfig.groovy
/** * This module defines the build dependencies for the plugin to support such items as the OSCache functionality, etc. */ grails.project.dependency.resolution = { inherits "global" // inherit Grails' default dependencies log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'd...
Add buildconfig to support including the oscache jar to support the multi tenant oscache implementation
Add buildconfig to support including the oscache jar to support the multi tenant oscache implementation git-svn-id: 94392b6a321d1e6a370aa2a8ed75272a04b7b503@60700 832c1c66-4827-0410-8465-ccb17913cd09
Groovy
apache-2.0
multi-tenant/grails-multi-tenant-core,multi-tenant/grails-multi-tenant-core
25230258669cb2f77070f4cda5321a2fc12e9e4d
whelktool/scripts/cleanups/2021/04/lxl-3537-sab-dokb-gf.groovy
whelktool/scripts/cleanups/2021/04/lxl-3537-sab-dokb-gf.groovy
/** * For all bibliographic records with SAB code "Dokb" (or a variant like "Dokb=foo", "Dokb/LC", "Dokb(p)", * this script ensures that they * - have genreForm "Personlig utveckling" (3gxp6ws01bjvn3qr) * - *don't* have subject "Personlig utveckling" (42gjhgln1gbxsdc) */ String GF_PERSONLIG_UTVECKLING = 'https://...
Add script for adding genreForm Personlig utveckling to SAB Dokb
Add script for adding genreForm Personlig utveckling to SAB Dokb
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
59ca4cc5ef83c62e8084967c80c4154e40337bea
init.groovy.d/pipeline-global-configuration.groovy
init.groovy.d/pipeline-global-configuration.groovy
#!/usr/bin/env groovy /* * This file is responsible for setting Global Pipeline configurations to the * sensible defaults which are necessary */ import jenkins.model.GlobalConfiguration import org.jenkinsci.plugins.pipeline.modeldefinition.config.GlobalConfig /* Set the default Docker label for Declarative Pipel...
Set the default Docker Label for Pipeline
Set the default Docker Label for Pipeline Now that there is more than one kind of agent available, we need to explicitly state where a Docker workload should run. Fixes #33
Groovy
agpl-3.0
CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet
b2db942d0eef7c54f24b410c9a5a68e427ddbe2b
whelktool/scripts/analysis/validator-statistics-hold.groovy
whelktool/scripts/analysis/validator-statistics-hold.groovy
import whelk.JsonLdValidator import whelk.JsonLdValidator.Error as JsonError import whelk.util.Statistics class Script { static PrintWriter report static Statistics s = new Statistics(6).printOnShutdown() static JsonLdValidator v static boolean isInitialized = false } Script.report = getReportWriter("...
Add hold version of validator statistics
Add hold version of validator statistics
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
5d24df5a112e96a4ffa4a5a3f696f34186387234
examples/layer_create_from_geom.groovy
examples/layer_create_from_geom.groovy
str = "MULTIPOINT (1 1, 2 2)" new geoscript.workspace.Directory('.').create(new geoscript.feature.Schema("random", [['the_geom','Point','EPSG:4326']])).add(geoscript.geom.Geometry.fromWKT(str).geometries.collect{it})
Add an example of creating a Layer from a Geometry.
Add an example of creating a Layer from a Geometry.
Groovy
mit
sbortman/geoscript-groovy,geoscript/geoscript-groovy,sbortman/geoscript-groovy,geoscript/geoscript-groovy
55faf7fb4c5bdcf642397d6cafbdd6508f2061f8
whelktool/scripts/cleanups/2020/10/lxl-3184-imageBitDepth-to-digitalCharacteristic.groovy
whelktool/scripts/cleanups/2020/10/lxl-3184-imageBitDepth-to-digitalCharacteristic.groovy
/** * Change imageBitDepth to digitalCharacteristic in instances where the value of imageBitDepth is * 008 or 024. * * See LXL-3184 for more info. */ PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") PrintWriter failedUpdating = getReportWriter("failed-updates") String where = "collection =...
Add script for moving imageBitDepth to digitalCharacteristic
Add script for moving imageBitDepth to digitalCharacteristic
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
6328c9947fd8cbc55244b9b0ae8f121a68beac41
subprojects/performance/src/performanceTest/groovy/org/gradle/performance/regression/android/RealLifeAndroidDexingTransformsPerformanceTest.groovy
subprojects/performance/src/performanceTest/groovy/org/gradle/performance/regression/android/RealLifeAndroidDexingTransformsPerformanceTest.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 a cross build performance test
Add a cross build performance test
Groovy
apache-2.0
gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robi...
d5ae320040d55f2934eb8f4f37b0a07bfe3e9f9f
webtests/webtests-localization/src/test/groovy/woko/webtests/localization/SavePageTest.groovy
webtests/webtests-localization/src/test/groovy/woko/webtests/localization/SavePageTest.groovy
package woko.webtests.localization import woko.webtests.WebTestBase /** * @author Alexis Boissonnat - alexis.boissonnat 'at' gmail.com */ class SavePageTest extends WebTestBase{ void testSavePage(){ webtest('test Save page'){ login() goToPage '/save/MyBook' verifyX...
Test if the Hibernate validation errors has been well transformed in Stripes validation errors'
Test if the Hibernate validation errors has been well transformed in Stripes validation errors'
Groovy
apache-2.0
pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko
9ec8f75c0dd93b9f4a2405e9147b68eb82d27e1e
src/test/groovy/de/ollihoo/httptogo/ApplicationUndertowBuilderCustomizerTest.groovy
src/test/groovy/de/ollihoo/httptogo/ApplicationUndertowBuilderCustomizerTest.groovy
package de.ollihoo.httptogo import io.undertow.Undertow import io.undertow.UndertowOptions import spock.lang.Specification class ApplicationUndertowBuilderCustomizerTest extends Specification { private ApplicationUndertowBuilderCustomizer customizer = new ApplicationUndertowBuilderCustomizer() def "Undertow get...
Add test for ApplicationUndertowBuilderCustomizer; this test is special for me: it spies on a static final class Undertow.Builder; it has to work with GroovySpy
Add test for ApplicationUndertowBuilderCustomizer; this test is special for me: it spies on a static final class Undertow.Builder; it has to work with GroovySpy
Groovy
apache-2.0
ollihoo/http2go,ollihoo/http2go
cac739f4dfca1b160c4400248c6b543d5077834d
plugins/groovy/test/org/jetbrains/plugins/groovy/codeInsight/hint/GroovyImplicitNullArgumentHintProviderTest.groovy
plugins/groovy/test/org/jetbrains/plugins/groovy/codeInsight/hint/GroovyImplicitNullArgumentHintProviderTest.groovy
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.groovy.codeInsight.hint import com.intellij.testFramework.utils.inlays.InlayHintsProviderTestCase import groovy.transform.CompileStatic @CompileSta...
Add tests for implicit null argument hint
[groovy] IDEA-251327: Add tests for implicit null argument hint GitOrigin-RevId: 6e27454b6ac29dfa0c54d08c6b73dfcfbb58b879
Groovy
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
e913e29ca4948d5040f39939d746bbf2a1d8aaea
src/cucumber/groovy/deploydb/cucumber/AppHelper.groovy
src/cucumber/groovy/deploydb/cucumber/AppHelper.groovy
package deploydb.cucumber import deploydb.DeployDBApp import com.sun.jersey.api.client.Client import com.sun.jersey.api.client.ClientResponse import org.hibernate.SessionFactory class AppHelper { private StubAppRunner runner = null private Client jerseyClient = null SessionFactory getSessionFactory() { ...
package deploydb.cucumber import deploydb.DeployDBApp import com.sun.jersey.api.client.Client import com.sun.jersey.api.client.ClientResponse import org.hibernate.Session import org.hibernate.SessionFactory import org.hibernate.Transaction import org.hibernate.context.internal.ManagedSessionContext class AppHelper { ...
Add the withSession helper method for wrapping a hibernate session in the cukes
Add the withSession helper method for wrapping a hibernate session in the cukes
Groovy
mit
GiriDandu/deploydb,lookout/deploydb,maheshkelkar/deploydb,rmoorman/deploydb,rmoorman/deploydb,lookout/deploydb,rtyler/deploydb
b4250f8b0cf493022b39bfddb37981b8ce6c8224
broker/src/test/groovy/com/swisscom/cloud/sb/broker/util/LoggingRequestInterceptorSpec.groovy
broker/src/test/groovy/com/swisscom/cloud/sb/broker/util/LoggingRequestInterceptorSpec.groovy
/* * Copyright (c) 2018 Swisscom (Switzerland) Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of the * License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Remove tests which are checking log content.
MPSPHOENIX-324: Remove tests which are checking log content.
Groovy
apache-2.0
swisscom/open-service-broker,swisscom/open-service-broker
1d098cc928c8ce53986d0eb63765d517a0140f7a
whelktool/scripts/cleanups/2020/09/lxl-3152-linkOnlyMainEntity.groovy
whelktool/scripts/cleanups/2020/09/lxl-3152-linkOnlyMainEntity.groovy
import whelk.Whelk PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates") PrintWriter failedUpdating = getReportWriter("failed-updates") PrintWriter linkChanges = getReportWriter("link-changes") String where = "collection <> 'definitions'" selectBySqlWhere(where) { data -> boolean changed = trav...
Add a script that replaces all links to records with links to the corresponding mainEntities.
Add a script that replaces all links to records with links to the corresponding mainEntities.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
91f44d85916861e762be5f4aa87b8f4f27e948d3
src/test/groovy/bugs/Groovy8138Bug.groovy
src/test/groovy/bugs/Groovy8138Bug.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 test for "GROOVY-8138: Compile static to support streams"
Add test for "GROOVY-8138: Compile static to support streams"
Groovy
apache-2.0
armsargis/groovy,paulk-asert/incubator-groovy,apache/incubator-groovy,russel/incubator-groovy,shils/groovy,paulk-asert/incubator-groovy,jwagenleitner/incubator-groovy,armsargis/groovy,apache/incubator-groovy,russel/groovy,russel/groovy,paulk-asert/groovy,shils/groovy,armsargis/groovy,apache/incubator-groovy,jwagenleitn...
81ba61191b6365609edc805a53ef182defa6fcd8
test/integration/org/tsaap/directory/UserIntegrationSpec.groovy
test/integration/org/tsaap/directory/UserIntegrationSpec.groovy
package org.tsaap.directory import spock.lang.* /** * */ class UserIntegrationSpec extends Specification { UserAccountService userAccountService def setup() { } def cleanup() { } def "test about user role"() { when: "create new user with a student role" User studentUser ...
Add tests for User class
Add tests for User class
Groovy
agpl-3.0
elaastic/elaastic-questions,TSaaP/tsaap-notes,elaastic/elaastic-questions,elaastic/elaastic-questions,TSaaP/tsaap-notes
ed51ee36a3ac698ef44e60565099c0365dce585f
init.groovy.d/configure-sentry.groovy
init.groovy.d/configure-sentry.groovy
#!/usr/bin/env groovy /* * This file will annotate all loggers in the system witha Sentry Handler to * make sure that important errors are getting surfaced off the instance */ import io.sentry.jul.SentryHandler import java.util.logging.* SentryHandler sentry = new SentryHandler() /* Default everything to the warni...
Add a SentryHandler to all logger instances inside of the Jenkins instance on boot
Add a SentryHandler to all logger instances inside of the Jenkins instance on boot I attempted to incorporate via `-Djava.util.logging.config.file=/path/to/app.properties` by adding the sentry-1.5.0.jar into /var/jenkins_home/war/WEB-INF/libs. Unfortunately it looks like that's not added to the classpath early enough....
Groovy
agpl-3.0
CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet
529950cca1c052cc81f3324a1840fbe1cb636c65
subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/BuildCacheConfigurationIntegrationTest.groovy
subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/BuildCacheConfigurationIntegrationTest.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 more coverage for precedence of settings.gradle vs init script
Add more coverage for precedence of settings.gradle vs init script +review REVIEW-6445
Groovy
apache-2.0
robinverduijn/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/grad...
d64624edccffb16dc77ddcc34b9f3ba4576d0ea1
example-jobs/bdd-security-job-example.groovy
example-jobs/bdd-security-job-example.groovy
import jenkins.automation.builders.BddSecurityJobBuilder def projectName ='foo' new BddSecurityJobBuilder( name: "${projectName}-bdd-security-tests", description: "Sample bdd security job", baseUrl: "http:\\/\\/google.com", bddSecurityRepo: "${bddSecurityRepo}", chromedriverPath...
import jenkins.automation.builders.BddSecurityJobBuilder def bddSecurityRepo ='some repo to scan' def projectName ='foo' new BddSecurityJobBuilder( name: "${projectName}-bdd-security-tests", description: "Sample bdd security job", baseUrl: "http:\\/\\/google.com", bddSecurityRepo: "${bd...
Add variable declaration to fix syntax error
Add variable declaration to fix syntax error
Groovy
cc0-1.0
higs4281/jenkins-automation,Scotchester/jenkins-automation,Scotchester/jenkins-automation,lfatty/jenkins-automation,higs4281/jenkins-automation
5fb42095abb09277a673e3e642f76124a6f05ff2
subprojects/platform-jvm/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadIntegrationTest.groovy
subprojects/platform-jvm/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadIntegrationTest.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 integration test for toolchain download
Add integration test for toolchain download
Groovy
apache-2.0
blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,grad...
19cb59aafe8757ce3f907a8b7c644a88194e5508
whelktool/scripts/cleanups/2019/10/lxl-2594-fix-faulty-encodingLevels/set-correct-bib-encodingLevel-value.groovy
whelktool/scripts/cleanups/2019/10/lxl-2594-fix-faulty-encodingLevels/set-correct-bib-encodingLevel-value.groovy
/* * This removes auth and hold specific values of encodingLevel * and set correct valid bib level * * See LXL-2594 for more info. * */ PrintWriter failedBibIDs = getReportWriter("failed-to-update-bibIDs") PrintWriter scheduledForUpdate = getReportWriter("scheduled-for-update") VALID_BIB_ENCODING_LEVELS = ["marc...
Add script to fix faulty values of encodingLevel
Add script to fix faulty values of encodingLevel
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
af3836532c6b1fa1250a7e4cd0121638ac5af3fb
src/durbin/stat/Sampling.groovy
src/durbin/stat/Sampling.groovy
import com.google.common.collect.* import cern.jet.random.sampling.RandomSampler import cern.jet.random.engine.MersenneTwister class Sampling{ /** * Returns a random subset of the given list. */ public static def randomSubset(list,n){ def values = new long[n] RandomSampler.sample(n,list.size(),n,0,...
Add class to simplify getting statistically random subsets of lists.
Add class to simplify getting statistically random subsets of lists.
Groovy
mit
jdurbin/durbinlib,jdurbin/grapnel,jdurbin/grapnel,jdurbin/durbinlib,jdurbin/durbinlib,jdurbin/grapnel