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 |
|---|---|---|---|---|---|---|---|---|---|
6daf407cfe5a4ca4b68941ae60862d178685596d | Jenkinsfiles/demo.groovy | Jenkinsfiles/demo.groovy | stage('Build & push images') {
sh 'make build-kuma push-kuma'
}
stage('Deploy') {
env.KUBECONFIG = "${env.HOME}/.kube/virginia.kubeconfig"
env.DEIS_PROFILE = 'virginia'
env.DEIS_BIN = 'deis2'
env.DEIS_APP = 'mdn-demo-' + env.BRANCH_NAME
env.DJANGO_SETTINGS_MODULE = 'kuma.settings.prod'
assert env.BRANCH_... | stage('Build & push images') {
sh 'make build-kuma push-kuma'
}
stage('Deploy') {
env.KUBECONFIG = "${env.HOME}/.kube/virginia.kubeconfig"
env.DEIS_PROFILE = 'virginia'
env.DEIS_BIN = 'deis2'
env.DEIS_APP = 'mdn-demo-' + env.BRANCH_NAME
env.DJANGO_SETTINGS_MODULE = 'kuma.settings.prod'
assert env.BRANCH_... | Rework kubectl apply to work around namespace issue | Rework kubectl apply to work around namespace issue
| Groovy | mpl-2.0 | Elchi3/kuma,jwhitlock/kuma,a2sheppy/kuma,mozilla/kuma,SphinxKnight/kuma,mozilla/kuma,escattone/kuma,escattone/kuma,a2sheppy/kuma,jwhitlock/kuma,Elchi3/kuma,jwhitlock/kuma,a2sheppy/kuma,SphinxKnight/kuma,mozilla/kuma,a2sheppy/kuma,SphinxKnight/kuma,a2sheppy/kuma,SphinxKnight/kuma,SphinxKnight/kuma,escattone/kuma,jwhitlo... |
e06d53ad13c0958e7472aa7c6f11f2f1b8b444bb | profiles/base/commands/test-app.groovy | profiles/base/commands/test-app.groovy | import org.grails.cli.interactive.completers.*
description("Runs the applications tests") {
usage "grails test-app [TEST NAME]"
completer AllClassCompleter
synonyms 'test'
argument name:"Test Name", description:"The name of the test to run (optional)", required:false
flag name:'debug-jvm', target:"... | import org.grails.cli.interactive.completers.*
description("Runs the applications tests") {
usage "grails test-app [TEST NAME]"
completer AllClassCompleter
synonyms 'test'
argument name:"Test Name", description:"The name of the test to run (optional)", required:false
flag name:'debug-jvm', target:"... | Set environment to 'test' if not already configured and catch build exception from test failures | Set environment to 'test' if not already configured and catch build exception from test failures | Groovy | apache-2.0 | nobeans/grails-profile-repository,burtbeckwith/grails-profile-repository,scrain/grails-profile-repository,grails/grails-profile-repository,dmahapatro/grails-profile-repository,dmahapatro/grails-profile-repository,grails/grails-profile-repository,rlovtangen/grails-profile-repository,hakanernam/grails-profile-repository,... |
a554fd256c7c2335534073b26afcc13fb832528d | src/main/groovy/net/praqma/luci/model/StaticSlaveModel.groovy | src/main/groovy/net/praqma/luci/model/StaticSlaveModel.groovy | package net.praqma.luci.model
import groovy.transform.CompileStatic
import net.praqma.luci.docker.Containers
@CompileStatic
class StaticSlaveModel extends BaseServiceModel implements AuxServiceModel {
String dockerImage
String slaveName
List<String> labels = []
int executors = 2
void dockerIm... | package net.praqma.luci.model
import groovy.transform.CompileStatic
import net.praqma.luci.docker.Containers
@CompileStatic
class StaticSlaveModel extends BaseServiceModel implements AuxServiceModel {
String dockerImage
String slaveName
List<String> labels = []
int executors = 2
void dockerIm... | Call slaveConnect.sh with port of jenkins | Call slaveConnect.sh with port of jenkins
| Groovy | apache-2.0 | Praqma/luci-core,Praqma/luci-core |
2fe9fb2c4e43587c6b60074c966441c2e4be16e0 | src/test/groovy/com/netflix/nebula/lint/issues/Issue39Spec.groovy | src/test/groovy/com/netflix/nebula/lint/issues/Issue39Spec.groovy | package com.netflix.nebula.lint.issues
import com.netflix.nebula.lint.TestKitSpecification
class Issue39Spec extends TestKitSpecification {
def 'place dependencies in the correct configuration by source set'() {
when:
buildFile.text = """
plugins {
id 'nebula.lint'
... | package com.netflix.nebula.lint.issues
import com.netflix.nebula.lint.TestKitSpecification
class Issue39Spec extends TestKitSpecification {
def 'place dependencies in the correct configuration by source set'() {
when:
buildFile.text = """
plugins {
id 'nebula.lint'
... | Fix spec for guava library | Fix spec for guava library
| Groovy | apache-2.0 | nebula-plugins/gradle-lint-plugin,nebula-plugins/gradle-lint-plugin |
e9a6b35fcf9ec184403a9a27f8b792d8a366f938 | src/integ/groovy/com/msgilligan/bitcoin/rpc/BitcoinSpec.groovy | src/integ/groovy/com/msgilligan/bitcoin/rpc/BitcoinSpec.groovy | package com.msgilligan.bitcoin.rpc
import org.mastercoin.BaseRegTestSpec
class BitcoinSpec extends BaseRegTestSpec {
static final BigDecimal testAmount = 2.0
def "return basic info" () {
when: "we request info"
def info = getInfo()
then: "we get back some basic information"
i... | package com.msgilligan.bitcoin.rpc
import org.mastercoin.BaseRegTestSpec
class BitcoinSpec extends BaseRegTestSpec {
static final BigDecimal testAmount = 2.0
def "return basic info" () {
when: "we request info"
def info = getInfo()
then: "we get back some basic information"
i... | Fix missed rename of startCount -> startHeight | Fix missed rename of startCount -> startHeight | Groovy | apache-2.0 | OmniLayer/OmniJ,dexX7/bitcoin-spock,dexX7/bitcoin-spock,OmniLayer/OmniJ,OmniLayer/OmniJ,dexX7/OmniJ,dexX7/OmniJ |
fe5cb2554ebc88d394576166531b83ea0cd558e6 | db/migrate/002_release2/012_persistent_configuration.groovy | db/migrate/002_release2/012_persistent_configuration.groovy | class PersistentConfiguration extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
createTable("configuration") { t ->
t.includePrimaryKey = false
t.addColumn("key", "string", primaryKey: true)
t.addColumn("value", "string")
t.addVersionColum... | class PersistentConfiguration extends edu.northwestern.bioinformatics.bering.Migration {
void up() {
createTable("configuration") { t ->
t.includePrimaryKey = false
t.addColumn("key", "string", primaryKey: true)
t.addColumn("value", "string")
t.addVersionColum... | Use primaryKey hint to make down work (does not affect already-deployed systems) | Use primaryKey hint to make down work (does not affect already-deployed systems)
| Groovy | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
fb229a8ac5810c4ec6ce2495bba78bec13191086 | src/main/groovy/us/kirchmeier/capsule/spec/ReallyExecutableSpec.groovy | src/main/groovy/us/kirchmeier/capsule/spec/ReallyExecutableSpec.groovy | package us.kirchmeier.capsule.spec
import org.gradle.api.Project
class ReallyExecutableSpec {
File script
protected boolean _regular = true
protected boolean _trampoline = false
ReallyExecutableSpec regular() {
_regular = true
_trampoline = false
script = null
return this
}
/**
* Dep... | package us.kirchmeier.capsule.spec
import org.gradle.api.Project
class ReallyExecutableSpec {
File script
protected boolean _regular = true
protected boolean _trampoline = false
ReallyExecutableSpec regular() {
_regular = true
_trampoline = false
script = null
return this
}
/**
* Dep... | Add warning when reallyExectuble script is missing | Add warning when reallyExectuble script is missing
fixes #23
| Groovy | mit | danthegoodman/gradle-capsule-plugin,danthegoodman/gradle-capsule-plugin |
c58ff07692facaf63b8c1e8ff896702760822a00 | vars/jplCloseRelease.groovy | vars/jplCloseRelease.groovy | /**
Close release (Branch "release/*")
Merge code from release/vX.Y.Z to "master" and "develop", then "push" to the repository.
Create new tag with "vX.Y.Z" to the commit
The function uses "git promote" script
Fails if your repository is not in a "release/*" branch
*/
def call() {
timestamps {
... | /**
Close release (Branch "release/*")
Merge code from release/vX.Y.Z to "master" and "develop", then "push" to the repository.
Create new tag with "vX.Y.Z" to the commit
The function uses "git promote" script
Fails if your repository is not in a "release/*" branch
*/
def call() {
timestamps {
... | Add checkout scm on close release | Add checkout scm on close release
| Groovy | mit | red-panda-ci/jenkins-pipeline-library,pedroamador/jenkins-pipeline-library |
b5ac1a270ae997b4d87093a7131ed2964cb04a28 | demoscript.groovy | demoscript.groovy | // Run this with mvn args on each node
def mvn(args) {
sh "${tool 'Maven 3.x'}/bin/mvn ${args}"
}
def fetch_repo() {
sh 'repo init -u http://gerrit:8080/umbrella -m jenkins.xml'
sh 'repo sync'
sh 'repo download $GERRIT_PROJECT $GERRIT_CHANGE_NUMBER/$GERRIT_PATCHSET_NUMBER'
}
// TODO artifact passing
/... | // Run this with mvn args on each node
def mvn(args) {
sh "${tool 'Maven 3.x'}/bin/mvn ${args}"
}
def fetch_repo() {
sh 'repo init -u http://gerrit:8080/umbrella -m jenkins.xml'
sh 'repo sync'
sh 'repo download $GERRIT_PROJECT $GERRIT_CHANGE_NUMBER/$GERRIT_PATCHSET_NUMBER'
}
// TODO artifact passing
/... | Save demo script command for build | Save demo script command for build
| Groovy | apache-2.0 | cloudbees/gerrit-workflow-demo,svanoort/gerrit-workflow-demo,svanoort/gerrit-workflow-demo,cloudbees/gerrit-workflow-demo |
62dd8223f35a0c130bfb225888814d0f36cfb64d | src/main/groovy/io/github/robwin/jgitflow/tasks/ReleasePublishTask.groovy | src/main/groovy/io/github/robwin/jgitflow/tasks/ReleasePublishTask.groovy | /*
*
* Copyright 2016 Robert Winkler
*
* 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 la... | /*
*
* Copyright 2016 Robert Winkler
*
* 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 la... | Use version property in ReleasePublish task | Use version property in ReleasePublish task
If the releaseVersion property is not set, attempt to use the
project's version as releaseVersion.
If neither are set, throw exception.
| Groovy | apache-2.0 | RobWin/jgitflow-gradle-plugin |
0dda71ab195f96e2ee89380a408754257e4a1d75 | src/groovy/jobs/table/columns/SimpleConceptVariableColumn.groovy | src/groovy/jobs/table/columns/SimpleConceptVariableColumn.groovy | package jobs.table.columns
import com.google.common.collect.ImmutableMap
import groovy.transform.CompileStatic
import org.transmartproject.core.dataquery.clinical.ClinicalVariableColumn
import org.transmartproject.core.dataquery.clinical.PatientRow
@CompileStatic
class SimpleConceptVariableColumn extends AbstractColu... | package jobs.table.columns
import com.google.common.collect.ImmutableMap
import groovy.transform.CompileStatic
import org.transmartproject.core.dataquery.clinical.ClinicalVariableColumn
import org.transmartproject.core.dataquery.clinical.PatientRow
@CompileStatic
class SimpleConceptVariableColumn extends AbstractColu... | Fix handling of missing clinical data | Fix handling of missing clinical data
| Groovy | apache-2.0 | cdejonge/Rmodules,thehyve/Rmodules,thehyve/Rmodules_oncoprint,UMich-Transmart/Rmodules,baumjamin/Rmodules,UMich-Neptune-Transmart/Rmodules,UMich-Transmart/Rmodules,cdejonge/Rmodules,wimvanderlinden/Rmodules,cdejonge/Rmodules,thehyve/heim-Rmodules,baumjamin/Rmodules,UMich-Neptune-Transmart/Rmodules,baumjamin/Rmodules,cd... |
d23b6823cc237ddeba56f33b41156d376b3ad216 | src/main/groovy/com/github/dispader/manifesto/ManifestoPluginExtension.groovy | src/main/groovy/com/github/dispader/manifesto/ManifestoPluginExtension.groovy | package com.github.dispader.manifesto
import org.gradle.api.Project;
class ManifestoPluginExtension {
String vendor, vendor_id, url
ManifestoPluginExtension(Project project) {
this.vendor_id = project.group
}
}
| package com.github.dispader.manifesto
import org.gradle.api.Project
class ManifestoPluginExtension {
String vendor, vendor_id, url
ManifestoPluginExtension(Project project) {
this.vendor_id = project.group
}
}
| Resolve CodeNarc violation: unnecessary semicolon | Resolve CodeNarc violation: unnecessary semicolon
| Groovy | apache-2.0 | Dispader/manifesto |
c430f0a176a5ed8449737a756a9b2e66d1e3d291 | guava/src/test/groovy/com/bluecatcode/common/collections/Collections3Spec.groovy | guava/src/test/groovy/com/bluecatcode/common/collections/Collections3Spec.groovy | package com.bluecatcode.common.collections
import spock.lang.FailsWith
import spock.lang.Specification
import spock.lang.Unroll
/**
* @see Collections3Test
*/
class Collections3Spec extends Specification {
@FailsWith(IllegalArgumentException)
@Unroll("#methodName -> throw on null argument")
def "should... | package com.bluecatcode.common.collections
import com.google.common.base.Function
import spock.lang.FailsWith
import spock.lang.Specification
import spock.lang.Unroll
/**
* @see Collections3Test
*/
class Collections3Spec extends Specification {
@FailsWith(IllegalArgumentException)
@Unroll("#methodName -> t... | Update Collections3 with test coverage | Update Collections3 with test coverage
| Groovy | apache-2.0 | pawelprazak/java-extended,pawelprazak/java-extended |
d68f8b49300bf177cd31bea374b9a9672da1bd8b | CodeExamples/geb-example-gradle/src/test/groovy/GebishOrgSpec.groovy | CodeExamples/geb-example-gradle/src/test/groovy/GebishOrgSpec.groovy | import geb.spock.GebReportingSpec
class GebishOrgSpec extends GebReportingSpec {
def "can get to the current Book of Geb"() {
when:
to GebishOrgHomePage
and: //hover over to expand the menu
interact {
moveToElement(manualsMenu.toggle)
}
then: //first l... | import geb.spock.GebReportingSpec
class GebishOrgSpec extends GebReportingSpec {
def "can get to the current Book of Geb"() {
when:
to GebishOrgHomePage
and: //hover over to expand the menu
interact {
moveToElement(manualsMenu.toggle)
}
... | Add indents to spock code | Add indents to spock code
| Groovy | mit | eaglet3d/GebToGrid,eaglet3d/GebToGrid |
a5841c6f8098d5e83f189ff9bc554f11dcf13d19 | netci.groovy | netci.groovy | import jobs.generation.Utilities
def project = GithubProject
def branch = GithubBranchName
def isPR = true
def platformList = ['Ubuntu16.04:Debian', 'Windows_2016:WindowsServerCore', 'Windows Nano 2016:NanoServer']
platformList.each { platform ->
def(hostOS, containerOS) = platform.tokenize(':')
def newJobNam... | import jobs.generation.Utilities
def project = GithubProject
def branch = GithubBranchName
def isPR = true
def platformList = ['Ubuntu16.04:Debian', 'Windows_2016:WindowsServerCore', 'Windows Nano 2016:NanoServer']
platformList.each { platform ->
def(hostOS, containerOS) = platform.tokenize(':')
def newJobNam... | Clear machine label for nano runs | Clear machine label for nano runs
| Groovy | mit | naamunds/dotnet-docker-nightly,naamunds/dotnet-docker-nightly |
ad66e0d21b2c5e0a1553d272e2c36858ea21fbd2 | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy | grails.servlet.version = "2.5"
grails.project.work.dir = "target"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
grails.project.dependency.resolver = "maven"
grails.project.dependency.resolution = {
//legacyResolve true // if using Grails > 2.2
// inherit Grails' default dependencies
... | grails.servlet.version = "2.5"
grails.project.work.dir = "target"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
grails.project.dependency.resolver = "maven"
grails.project.dependency.resolution = {
//legacyResolve true // if using Grails > 2.2
// inherit Grails' default dependencies
... | Use latest ALA CAS library | Use latest ALA CAS library
| Groovy | mpl-2.0 | AtlasOfLivingAustralia/ala-bootstrap2 |
3d94b97382857cb074400d06c60bc60ed33b3b98 | src/main/groovy/de/stups/slottool/data/entities/Module.groovy | src/main/groovy/de/stups/slottool/data/entities/Module.groovy | package de.stups.slottool.data.entities
class Module extends Entity {
Date updated_at
int id
String key
String name
Date created_at
String title
Integer pordnr
Boolean mandatory
Set<Course> courses
Integer elective_units
Set<AbstractUnit> abstract_units
private Integer c... | package de.stups.slottool.data.entities
class Module extends Entity {
Date updated_at
int id
String key
String name
Date created_at
String title
Integer pordnr
Boolean mandatory
Set<Course> courses
Integer elective_units
Set<AbstractUnit> abstract_units
private Integer c... | Use hashset instead of hashmap | Use hashset instead of hashmap
| Groovy | isc | plues/model-generator,plues/model-generator |
078280befed2b397f657a9157babdf2cc384fdb7 | extra/src/test/java/brooklyn/entity/webapp/jboss/JBossNodeTest.groovy | extra/src/test/java/brooklyn/entity/webapp/jboss/JBossNodeTest.groovy | package brooklyn.entity.webapp.jboss;
import static org.junit.Assert.*
import java.security.*
import java.util.Map
import org.junit.Test
import brooklyn.entity.Application
import brooklyn.entity.basic.AbstractApplication
import brooklyn.entity.webapp.jboss.JBoss6SshSetup
import brooklyn.location.basic.SshMachineLoc... | package brooklyn.entity.webapp.jboss;
import static org.junit.Assert.*
import org.junit.Test
import brooklyn.entity.Application
import brooklyn.entity.basic.AbstractApplication
import brooklyn.entity.webapp.jboss.JBoss6SshSetup
import brooklyn.location.basic.SshMachineLocation
class JBossNodeTest {
static clas... | Remove unnecessary imports from JBoss test | Remove unnecessary imports from JBoss test
| Groovy | apache-2.0 | bmwshop/brooklyn,andreaturli/legacy-brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,andreaturli/legacy-brooklyn,andreaturli/legacy-brooklyn,bmwshop/brooklyn,neykov/incuba... |
0761730f2000b078e023436f47a2223c6e2aad9b | webtests/webtests-bootstrap/src/test/groovy/woko/webtests.bootstrap/WebTestBase.groovy | webtests/webtests-bootstrap/src/test/groovy/woko/webtests.bootstrap/WebTestBase.groovy | /*
* Copyright 2001-2012 Remi Vankeisbelck
*
* 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 ... | /*
* Copyright 2001-2012 Remi Vankeisbelck
*
* 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 ... | Fix webtests for search form in navBar | Fix webtests for search form in navBar
| Groovy | apache-2.0 | pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko,pojosontheweb/woko |
0ed7602f5d22d0f124d3e4c9fa91edbd91eaa2da | agent/src/test/groovy/nu/studer/teamcity/buildscan/agent/BuildScanInitScriptTest.groovy | agent/src/test/groovy/nu/studer/teamcity/buildscan/agent/BuildScanInitScriptTest.groovy | package nu.studer.teamcity.buildscan.agent
import static org.junit.Assume.assumeTrue
class BuildScanInitScriptTest extends BaseInitScriptTest {
def "does not fail build when using a Gradle version older than minimum version 4.1 (#jdkCompatibleGradleVersion)"() {
assumeTrue jdkCompatibleGradleVersion.isJv... | package nu.studer.teamcity.buildscan.agent
import static org.junit.Assume.assumeTrue
class BuildScanInitScriptTest extends BaseInitScriptTest {
def "does not fail build when using a Gradle version older than minimum version 4.1 (#jdkCompatibleGradleVersion)"() {
assumeTrue jdkCompatibleGradleVersion.isJv... | Remove redundant test setup code | Remove redundant test setup code
| Groovy | apache-2.0 | etiennestuder/teamcity-build-scan-plugin,etiennestuder/teamcity-build-scan-plugin,etiennestuder/teamcity-build-scan-plugin |
71689769da48aff70a68d25da330f4fd1405c176 | src/main/groovy/jetpacker/api/configuration/JetpackerProperties.groovy | src/main/groovy/jetpacker/api/configuration/JetpackerProperties.groovy | package jetpacker.api.configuration
import groovy.transform.CompileStatic
import org.springframework.boot.context.properties.ConfigurationProperties
/**
* Created by donny on 24/10/2016.
*/
@CompileStatic
@ConfigurationProperties(prefix = "jetpacker")
class JetpackerProperties {
Box ubuntu
Kit openjdk
... | package jetpacker.api.configuration
import groovy.transform.CompileStatic
import org.springframework.boot.context.properties.ConfigurationProperties
/**
* Created by donny on 24/10/2016.
*/
@CompileStatic
@ConfigurationProperties(prefix = "jetpacker")
class JetpackerProperties {
Box ubuntu
Kit openjdk
... | Rename databases and messageQueues to databaseEngines and queueEngines | Rename databases and messageQueues to databaseEngines and queueEngines
| Groovy | mit | jetpacker/jetpacker-api |
4a2dc93d238f9c7471797413451e22e2f4667b52 | src/main/groovy/sx/lambda/mstojcevich/voxel/tasks/RotationHandler.groovy | src/main/groovy/sx/lambda/mstojcevich/voxel/tasks/RotationHandler.groovy | package sx.lambda.mstojcevich.voxel.tasks
import groovy.transform.CompileStatic
import org.lwjgl.input.Mouse
import org.lwjgl.opengl.Display
import sx.lambda.mstojcevich.voxel.VoxelGame
@CompileStatic
class RotationHandler implements RepeatedTask {
private final VoxelGame game
public RotationHandler(VoxelGa... | package sx.lambda.mstojcevich.voxel.tasks
import groovy.transform.CompileStatic
import org.lwjgl.input.Mouse
import org.lwjgl.opengl.Display
import sx.lambda.mstojcevich.voxel.VoxelGame
@CompileStatic
class RotationHandler implements RepeatedTask {
private final VoxelGame game
public RotationHandler(VoxelGa... | Fix another null player related race | Fix another null player related race
| Groovy | mit | MilanNz/Radix,mstojcevich/Radix |
1a1a8e3071235bff647826c1a53c891a8e154f04 | src/main/groovy/com/partagames/resizer/webapp/controller/ImageProcessingController.groovy | src/main/groovy/com/partagames/resizer/webapp/controller/ImageProcessingController.groovy | package com.partagames.resizer.webapp.controller
import groovy.util.logging.Slf4j
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
@Slf4j
@Controller
class ImageProcessingController {
@RequestMapping("/imageprocessing")
void processImages() {
... | package com.partagames.resizer.webapp.controller
import groovy.util.logging.Slf4j
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@Slf4j
@RestController
class ImageProcessingController {
@RequestMapping("/")
public String index() {
... | Enable first response from RestController | Enable first response from RestController
| Groovy | apache-2.0 | PartaGames/resizer-webapp,PartaGames/resizer-webapp,PartaGames/resizer-webapp |
16620f6246b54662cef885e223fe97722720643a | clojuresque/src/main/groovy/clojuresque/ClojureRepositoryConvention.groovy | clojuresque/src/main/groovy/clojuresque/ClojureRepositoryConvention.groovy | /*-
* Copyright 2009,2010 © Meikel Brandmeyer.
* All rights reserved.
*
* 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 t... | /*-
* Copyright 2009,2010 © Meikel Brandmeyer.
* All rights reserved.
*
* 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 t... | Use new maven repo interface | Use new maven repo interface
| Groovy | mit | clojuresque/base |
f6afc97c5c2a86aea4f9947727af20a7f33371a2 | broker/core/src/main/groovy/com/swisscom/cloud/sb/broker/services/credhub/CredHubServiceProviderConfiguration.groovy | broker/core/src/main/groovy/com/swisscom/cloud/sb/broker/services/credhub/CredHubServiceProviderConfiguration.groovy | package com.swisscom.cloud.sb.broker.services.credhub
import com.swisscom.cloud.sb.broker.repository.ServiceBindingRepository
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.boot.autoconfigure.conditio... | package com.swisscom.cloud.sb.broker.services.credhub
import com.swisscom.cloud.sb.broker.repository.ServiceBindingRepository
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.boot.autoconfigure.conditio... | Create a ClientOptions for making CredHubTemplate happy | fix: Create a ClientOptions for making CredHubTemplate happy
We need ClientOptions for 'getBrokerDefault' Spring bean, and that bean
is conditional on property 'spring.credhub.url'. Instead of adding a
fake configuration for that, just create a new one (which is what Spring
does at the end).
| Groovy | apache-2.0 | swisscom/open-service-broker,swisscom/open-service-broker |
27be41a5a66bb49a063fffe50a21a1bcfa5615a7 | src/test/groovy/Base64Test.groovy | src/test/groovy/Base64Test.groovy | class Base64Test extends GroovyTestCase {
void testCodec() {
testString ="1234567890-=!@$%^&*()_+qwertyuiop[]QWERTYUIOP{}asdfghjkl;'\\ASDFGHJKL:\"|`zxcvbnm,./~ZXCVBNM<>?\u0000\u00ff\u00f0\u000f"
// get a byte array using the least significant eigth bits of each caharacter
testBytes = testString.getByt... | class Base64Test extends GroovyTestCase {
void testCodec() {
testString ="1234567890-=!@$%^&*()_+qwertyuiop[]QWERTYUIOP{}asdfghjkl;'\\ASDFGHJKL:\"|`zxcvbnm,./~ZXCVBNM<>?\u0000\u00ff\u00f0\u000f"
// get a byte array using the least significant eigth bits of each caharacter
testBytes = testString.getByt... | Remove the debugging lines as the DC build now works | Remove the debugging lines as the DC build now works
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@1170 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | adjohnson916/groovy-core,avafanasiev/groovy,genqiang/incubator-groovy,alien11689/groovy-core,fpavageau/groovy,christoph-frick/groovy-core,apache/groovy,groovy/groovy-core,paplorinc/incubator-groovy,pledbrook/incubator-groovy,jwagenleitner/incubator-groovy,ebourg/groovy-core,shils/incubator-groovy,armsargis/groovy,shils... |
56027e364ef432157a9ed56bf7940aa8df8c5c29 | src/main/groovy/com/saltstack/jenkins/PushHooksRecorder.groovy | src/main/groovy/com/saltstack/jenkins/PushHooksRecorder.groovy | package com.saltstack.jenkins
import groovy.json.*
import java.util.logging.Level
import java.util.logging.Logger
class PushHooksRecorder {
def cachefile;
private static final Logger LOGGER = Logger.getLogger(Project.class.getName());
PushHooksRecorder(build) {
this.cachefile = build.getWorkspac... | package com.saltstack.jenkins
import groovy.json.*
import java.util.logging.Level
import java.util.logging.Logger
class PushHooksRecorder {
def cachefile;
private static final Logger LOGGER = Logger.getLogger(Project.class.getName());
PushHooksRecorder(build) {
this.cachefile = build.getWorkspac... | Revert "We now need the project name" | Revert "We now need the project name"
This reverts commit bee047729708eefaa647b2dfd2bc66303273a6d5.
| Groovy | apache-2.0 | saltstack/jenkins-dsl-jobs |
64e33b4a2b739f9779c90fdfde36f758831ad282 | whelktool/scripts/cleanups/2021/09/datakbse-375-suecian.groovy | whelktool/scripts/cleanups/2021/09/datakbse-375-suecian.groovy | String where = """
collection = 'bib' and data#>>'{@graph,1,@type}' = 'Electronic' and
(
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAH"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAHF"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https:... | String where = """
collection = 'bib' and data#>>'{@graph,1,@type}' = 'Electronic' and
(
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAH"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAHF"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https:... | Add null check to script. | Add null check to script.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
e0feb72db14ac2c525522653969ef3db77b19930 | gremlin-groovy/src/test/groovy/com/tinkerpop/gremlin/process/graph/step/filter/GroovyDedupTestImpl.groovy | gremlin-groovy/src/test/groovy/com/tinkerpop/gremlin/process/graph/step/filter/GroovyDedupTestImpl.groovy | package com.tinkerpop.gremlin.process.graph.step.filter
import com.tinkerpop.gremlin.process.Traversal
import com.tinkerpop.gremlin.structure.Vertex
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
* @author Daniel Kuppitz (daniel at thinkaurelius.com)
*/
class GroovyDedupTestImpl extends DedupTest {
... | package com.tinkerpop.gremlin.process.graph.step.filter
import com.tinkerpop.gremlin.process.Traversal
import com.tinkerpop.gremlin.structure.Vertex
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
* @author Daniel Kuppitz (daniel at thinkaurelius.com)
*/
class GroovyDedupTestImpl extends DedupTest {
... | Fix broken gremlin groovy test given metaproperties refactoring. | Fix broken gremlin groovy test given metaproperties refactoring.
| Groovy | apache-2.0 | newkek/incubator-tinkerpop,mpollmeier/tinkerpop3,artem-aliev/tinkerpop,samiunn/incubator-tinkerpop,pluradj/incubator-tinkerpop,gdelafosse/incubator-tinkerpop,edgarRd/incubator-tinkerpop,rmagen/incubator-tinkerpop,velo/incubator-tinkerpop,vtslab/incubator-tinkerpop,samiunn/incubator-tinkerpop,apache/tinkerpop,edgarRd/in... |
3c37eee06b2ca94854d3012908b11a4fd52002e9 | site/src/site/includes/topmenu.groovy | site/src/site/includes/topmenu.groovy | div(class: 'navbar navbar-default navbar-static-top', role: 'navigation') {
div(class: 'container') {
div(class: 'navbar-header') {
button(type: 'button', class: 'navbar-toggle', 'data-toggle': 'collapse', 'data-target': '.navbar-collapse') {
span(class: 'sr-only') {}
... | div(class: 'navbar navbar-default navbar-static-top', role: 'navigation') {
div(class: 'container') {
div(class: 'navbar-header') {
button(type: 'button', class: 'navbar-toggle', 'data-toggle': 'collapse', 'data-target': '.navbar-collapse') {
span(class: 'sr-only') {}
... | Remove search from menu bar. | Remove search from menu bar.
| Groovy | apache-2.0 | dmesu/sdkman-website,rahulsom/sdkman-website,sdkman/sdkman-website,dmesu/sdkman-website,rahulsom/sdkman-website,sdkman/sdkman-website |
121d8bab075bd45bfeb961fceb09922df558f8f2 | src/test/resources/logback.groovy | src/test/resources/logback.groovy | import static ch.qos.logback.classic.Level.DEBUG
root(DEBUG, ["STDOUT"]) | import static ch.qos.logback.classic.Level.*
import ch.qos.logback.classic.encoder.PatternLayoutEncoder
import ch.qos.logback.core.ConsoleAppender
appender("console", ConsoleAppender) {
encoder (PatternLayoutEncoder) { pattern = "[%-5p] %c: %m%n" }
}
root(DEBUG, ["console"])
| Update the logger configuration for testing | Update the logger configuration for testing
| Groovy | apache-2.0 | trentontrees/zucchini,andrewbenton/zucchini,dimaj/zucchini |
2aec3d3f3272e7edb59af4272217a2b076ac6190 | subprojects/code-quality/src/testFixtures/groovy/org/gradle/quality/integtest/fixtures/CheckstyleCoverage.groovy | subprojects/code-quality/src/testFixtures/groovy/org/gradle/quality/integtest/fixtures/CheckstyleCoverage.groovy | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Fix JDK6 tests for checkstyle | Fix JDK6 tests for checkstyle
+review REVIEW-5574
| Groovy | apache-2.0 | lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,gstevey/gradle,b... |
6e4f6aa8110c472d4f63ecffc9c6457c69be58c3 | src/templates/scaffold/backendRestGrailsApp/dynamic/conf/spring/__resources.groovy | src/templates/scaffold/backendRestGrailsApp/dynamic/conf/spring/__resources.groovy | [
/(.*beans\s*\=\s*\{)/: {destFile->
String linesToAdd = ""
String line1 = "customMarshallerRegistrar(defpackage.CustomMarshallerRegistrar)"
if(!destFile.text.contains(line1)) {
linesToAdd += "\t\t" + line1 + "\n"
}
String line2 = """
for (domainClass in application.domainClasses) {
"json\${domain... | [
/(.*beans\s*\=\s*\{)/: {destFile->
String linesToAdd = ""
String line1 = "customMarshallerRegistrar(defpackage.CustomMarshallerRegistrar)"
if(!destFile.text.contains(line1)) {
linesToAdd += "\t\t" + line1 + "\n"
}
String line2 = """
for (domainClass in application.domainClasses) {
"json\${domain... | Comment out collectionrenderer when grails version is bigger than 2.4.3 | Comment out collectionrenderer when grails version is bigger than 2.4.3
| Groovy | mit | MayGo/grails-scaffold-angular,MayGo/grails-scaffold-angular,MayGo/grails-scaffold-angular |
1f998a88f847e456db8eaf464d28390bf98952ea | driver-core/src/test/functional/com/mongodb/operation/QueryOperationHelper.groovy | driver-core/src/test/functional/com/mongodb/operation/QueryOperationHelper.groovy | /*
* Copyright 2008-present MongoDB, 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 ag... | /*
* Copyright 2008-present MongoDB, 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 ag... | Fix flaky tests of explain command | Fix flaky tests of explain command
The server response now includes operationTime and $clusterTime, which
usually won't change in a test scenario but occasionally do. The
tests now remove those fields from explain responses before they are
compared.
| Groovy | apache-2.0 | jyemin/mongo-java-driver,rozza/mongo-java-driver,jyemin/mongo-java-driver,rozza/mongo-java-driver |
57bd333c6f86567bb520c44468f08e3a94052b8d | src/test/groovy/com/dicedmelon/gradle/jacoco/android/AndroidProjectFactory.groovy | src/test/groovy/com/dicedmelon/gradle/jacoco/android/AndroidProjectFactory.groovy | package com.dicedmelon.gradle.jacoco.android
import org.apache.commons.io.FileUtils
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
public class AndroidProjectFactory {
public static final File PROJECT_SOURCE_DIR = new File("src/test/resources");
static Project create() {
def pro... | package com.dicedmelon.gradle.jacoco.android
import org.apache.commons.io.FileUtils
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
public class AndroidProjectFactory {
public static final File PROJECT_SOURCE_DIR = new File("src/test/resources");
static Project create() {
def pro... | Fix test to use build tools 23 | Fix test to use build tools 23
| Groovy | apache-2.0 | arturdm/jacoco-android-gradle-plugin |
0939ea9de90f1d9dd55a575832844f6aafcfe5c7 | jgiven-spock2/src/test/groovy/com/tngtech/jgiven/spock/ShinySpockJGivenShould.groovy | jgiven-spock2/src/test/groovy/com/tngtech/jgiven/spock/ShinySpockJGivenShould.groovy | package com.tngtech.jgiven.spock
import com.tngtech.jgiven.annotation.ExtendedDescription
import com.tngtech.jgiven.spock.stages.Given
import com.tngtech.jgiven.spock.stages.Then
import com.tngtech.jgiven.spock.stages.When
import spock.lang.Unroll
class ShinySpockJGivenShould extends ScenarioSpec<Given, When, Then> {... | package com.tngtech.jgiven.spock
import com.tngtech.jgiven.annotation.ExtendedDescription
import com.tngtech.jgiven.spock.stages.Given
import com.tngtech.jgiven.spock.stages.Then
import com.tngtech.jgiven.spock.stages.When
class ShinySpockJGivenShould extends ScenarioSpec<Given, When, Then> {
def "something shou... | Remove Unroll because it is default behaviour | Remove Unroll because it is default behaviour
Signed-off-by: Javier Salinas <93f4051795330681b8e328b46eb591242bd9e859@gmail.com>
| Groovy | apache-2.0 | TNG/JGiven,TNG/JGiven,TNG/JGiven,TNG/JGiven |
310b7182b7cf970df80e9868340e80dc289f8d83 | src/test/groovy/CallInnerClassCtorTest.groovy | src/test/groovy/CallInnerClassCtorTest.groovy | import groovy.OuterUser
/**
* Checks that it's possible to call inner classes constructor from groovy
* @author Guillaume Laforge
*/
class CallInnerClassCtorTest extends GroovyTestCase {
void testCallCtor() {
user = new OuterUser()
user.name = "Guillaume"
user.age = 27
assert u... | import groovy.OuterUser
/**
* Checks that it's possible to call inner classes constructor from groovy
* @author Guillaume Laforge
*/
class CallInnerClassCtorTest extends GroovyTestCase {
void testCallCtor() {
user = new groovy.OuterUser()
user.name = "Guillaume"
user.age = 27
a... | Test case to check that it's possible to call inner classes ctors from groovy | Test case to check that it's possible to call inner classes ctors from groovy
git-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@1387 a5544e8c-8a19-0410-ba12-f9af4593a198
| Groovy | apache-2.0 | shils/groovy,aaronzirbes/incubator-groovy,jwagenleitner/groovy,alien11689/groovy-core,traneHead/groovy-core,genqiang/incubator-groovy,pickypg/incubator-groovy,antoaravinth/incubator-groovy,groovy/groovy-core,sagarsane/groovy-core,paulk-asert/groovy,aim-for-better/incubator-groovy,tkruse/incubator-groovy,russel/groovy,e... |
a2a4850617f427a7c7612a10bf1926335c01cb89 | test/unit/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistryTests.groovy | test/unit/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistryTests.groovy | package org.codehaus.groovy.grails.plugins.orm.auditable
import org.codehaus.groovy.grails.commons.GrailsApplication
import grails.test.GrailsUnitTestCase
/**
* Created by IntelliJ IDEA.
* User: hartsock
* Date: 2/2/12
* Time: 8:38 PM
* To change this template use File | Settings | File Templates.
*/
class Audi... | package org.codehaus.groovy.grails.plugins.orm.auditable
import org.codehaus.groovy.grails.commons.GrailsApplication
import grails.test.GrailsUnitTestCase
/**
* Created by IntelliJ IDEA.
* User: hartsock
* Date: 2/2/12
* Time: 8:38 PM
* To change this template use File | Settings | File Templates.
*/
class Audi... | Revert "helps diagnose where the stack fails when altering the abstract base class for this type of test." | Revert "helps diagnose where the stack fails when altering the abstract base class for this type of test."
This reverts commit 523ce11ceec2a429adf73bc2ac35c215facf46c6.
| Groovy | apache-2.0 | dmahapatro/grails-audit-logging-plugin,robertoschwald/grails-audit-logging-plugin,tkvw/grails-audit-logging-plugin,dmahapatro/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin |
95a15c63b062a2f401d3bf39411efca3c52d94fe | config.groovy | config.groovy | vertxVersion = '1.3.1.final'
gvmVersion = '1.0.0-SNAPSHOT'
environments {
local {
gvmService = 'http://localhost:8080'
gvmBroadcastService = 'http://localhost:8080'
}
master {
gvmService = 'http://dev.gvmtool.net'
gvmBroadcastService = 'http://cast-dev.gvm.io'
}
production {
gvmService = 'htt... | vertxVersion = '1.3.1.final'
gvmVersion = '1.0.0-SNAPSHOT'
environments {
local {
gvmService = 'http://localhost:8080'
gvmBroadcastService = 'http://localhost:8080'
}
master {
gvmService = 'http://dev.gvmtool.net'
gvmBroadcastService = 'http://devcast.cfapps.io'
}
production {
gvmService = 'h... | Change dev environment broadcast api address. | Change dev environment broadcast api address.
| Groovy | apache-2.0 | shanman190/sdkman-cli,sdkman/sdkman-cli,nobeans/gvm-cli,jbovet/gvm,busches/gvm-cli,skpal/sdkman-cli,DealerDotCom/gvm-cli,skpal/sdkman-cli,gvmtool/gvm-cli,DealerDotCom/gvm-cli,nobeans/gvm-cli,GsusRecovery/sdkman-cli,GsusRecovery/sdkman-cli |
91c9276ef3020452c1607e26c423b7b2085d2716 | modules/figurate-common/src/main/groovy/org/figurate/DelegateInvocationHandler.groovy | modules/figurate-common/src/main/groovy/org/figurate/DelegateInvocationHandler.groovy | package org.figurate
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
class DelegateInvocationHandler implements InvocationHandler {
private final DelegateSelector<?> selector
public DelegateInvocationHandler(DelegateSelector<?> selector) {
this.selector = selector
... | package org.figurate
import groovy.transform.CompileStatic
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
@CompileStatic
class DelegateInvocationHandler implements InvocationHandler {
private final DelegateSelector<?> selector
public DelegateInvocationHandler(DelegateSelecto... | Use CompileStatic annotation for type checking | Use CompileStatic annotation for type checking | Groovy | apache-2.0 | figurate/figurate-core |
5213f9ad0b3b1e95f29afaad65f4d4ad6f7a12d8 | grails-app/domain/org/grails/plugin/filterpane/nested/Function.groovy | grails-app/domain/org/grails/plugin/filterpane/nested/Function.groovy | package org.grails.plugin.filterpane.nested
import groovy.transform.ToString
@ToString(includes=['name'])
class Function {
String name = 'function'
static belongsTo = [Part]
}
| package org.grails.plugin.filterpane.nested
import groovy.transform.ToString
// Temporary fix due to groovy version
@ToString(includes='name')
class Function {
String name = 'function'
static belongsTo = [Part]
}
| Fix for older groovy version | Fix for older groovy version
| Groovy | apache-2.0 | Grails-Plugin-Consortium/grails-filterpane |
b1763a8464dc22167a55d03f308affb5d0a04299 | driver-core/src/test/unit/com/mongodb/internal/operation/WriteConcernHelperSpecification.groovy | driver-core/src/test/unit/com/mongodb/internal/operation/WriteConcernHelperSpecification.groovy | /*
* Copyright 2008-present MongoDB, 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 a... | /*
* Copyright 2008-present MongoDB, 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 a... | Add regression test for createWriteConcernHelper | JAVA-2843: Add regression test for createWriteConcernHelper
| Groovy | apache-2.0 | jyemin/mongo-java-driver,rozza/mongo-java-driver,jyemin/mongo-java-driver,rozza/mongo-java-driver |
35eb155379ed936f38df603bff5094cf6b900abc | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TapestryJavaScriptTests.groovy | tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TapestryJavaScriptTests.groovy | package org.apache.tapestry5.integration.app1
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
class TapestryJavaScriptTests extends TapestryCoreTestCase {
@Test
void basic_javascript_tests() {
openLinks "JavaScript Unit Tests"
def caption = get... | package org.apache.tapestry5.integration.app1
import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test
class TapestryJavaScriptTests extends TapestryCoreTestCase {
@Test
void basic_javascript_tests() {
openLinks "JavaScript Unit Tests"
def caption = get... | Fix error in JavaScript unit tests | TAP5-999: Fix error in JavaScript unit tests
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1141178 13f79535-47bb-0310-9956-ffa450edef68
| Groovy | apache-2.0 | apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,agileowl/tapestry-5 |
8224aae21d746c1b42846fe983b1254b17e4f070 | tapestry-ioc/src/test/groovy/org/apache/tapestry5/ioc/internal/services/FilterMethodAnalyzerSpec.groovy | tapestry-ioc/src/test/groovy/org/apache/tapestry5/ioc/internal/services/FilterMethodAnalyzerSpec.groovy | package org.apache.tapestry5.ioc.internal.services
import spock.lang.Specification
import spock.lang.Unroll
class FilterMethodAnalyzerSpec extends Specification {
def find(clazz, name) {
new MethodSignature(clazz.methods.find { it.name == name })
}
@Unroll
def "position of delegate parameter for #filte... | package org.apache.tapestry5.ioc.internal.services
import spock.lang.Specification
import spock.lang.Unroll
class FilterMethodAnalyzerSpec extends Specification {
private MethodSignature find(clazz, name) {
new MethodSignature(clazz.methods.find { it.name == name })
}
@Unroll
def "position of delegate p... | Fix incorrectly constructed feature method | Fix incorrectly constructed feature method
| Groovy | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5 |
6874e662c97f00dc5f6ad21362deb1b7e34d5121 | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/RichConsoleStyling.groovy | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/RichConsoleStyling.groovy | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Undo unneeded change to test trait | Undo unneeded change to test trait
| Groovy | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpira... |
583adecbf65d377716b54fb7d4c1b173fae836ab | micro-deps-spring-config/src/main/groovy/com/ofg/infrastructure/discovery/ZookeeperConnectorConditions.groovy | micro-deps-spring-config/src/main/groovy/com/ofg/infrastructure/discovery/ZookeeperConnectorConditions.groovy | package com.ofg.infrastructure.discovery
import com.ofg.config.BasicProfiles
import groovy.transform.CompileStatic
import org.springframework.context.annotation.Condition
import org.springframework.context.annotation.ConditionContext
import org.springframework.core.type.AnnotatedTypeMetadata
import static com.ofg.con... | package com.ofg.infrastructure.discovery
import com.ofg.config.BasicProfiles
import groovy.transform.CompileStatic
import org.springframework.context.annotation.Condition
import org.springframework.context.annotation.ConditionContext
import org.springframework.core.type.AnnotatedTypeMetadata
import static com.ofg.con... | Make inMemory connector condition a negation of production condition | Make inMemory connector condition a negation of production condition
| Groovy | apache-2.0 | ofg-dmitrys/micro-infra-spring,ychulovskyy/micro-infra-spring,4finance/micro-infra-spring,ychulovskyy/micro-infra-spring,spencergibb/micro-infra-spring,dstepanov/micro-infra-spring,4finance/micro-infra-spring,ofg-dmitrys/micro-infra-spring,adrian-wozniak/micro-infra-spring,ofg-dmitrys/micro-infra-spring,RemboL/micro-in... |
105416ef48fd2a887b495497da2411be89567ef6 | accurest-gradle-plugin/src/main/groovy/io/codearte/accurest/plugin/GenerateWireMockClientStubsFromDslTask.groovy | accurest-gradle-plugin/src/main/groovy/io/codearte/accurest/plugin/GenerateWireMockClientStubsFromDslTask.groovy | package io.codearte.accurest.plugin
import io.codearte.accurest.config.AccurestConfigProperties
import io.codearte.accurest.wiremock.DslToWireMockClientConverter
import io.codearte.accurest.wiremock.RecursiveFilesConverter
import org.gradle.api.internal.ConventionTask
import org.gradle.api.tasks.InputDirectory
import ... | package io.codearte.accurest.plugin
import io.codearte.accurest.config.AccurestConfigProperties
import io.codearte.accurest.wiremock.DslToWireMockClientConverter
import io.codearte.accurest.wiremock.RecursiveFilesConverter
import org.gradle.api.internal.ConventionTask
import org.gradle.api.tasks.CacheableTask
import o... | Make client stubs generation task in Gradle cacheable | Make client stubs generation task in Gradle cacheable
| Groovy | apache-2.0 | dstepanov/accurest,Codearte/accurest,dstepanov/accurest,Codearte/accurest |
c6d5c544bf3a88799d8516fb4c45cce241ea5a85 | grails-app/controllers/io/threeohone/ShortenerStatisticsController.groovy | grails-app/controllers/io/threeohone/ShortenerStatisticsController.groovy | package io.threeohone
import grails.converters.JSON
import grails.plugin.springsecurity.annotation.Secured
import org.springframework.security.access.annotation.Secured
@Secured(['isAuthenticated()'])
class ShortenerStatisticsController {
StatisticsService statisticsService
def show() {
def short... | package io.threeohone
import grails.converters.JSON
import grails.plugin.springsecurity.annotation.Secured
import org.springframework.security.access.annotation.Secured
@Secured(['isAuthenticated()'])
class ShortenerStatisticsController {
StatisticsService statisticsService
def show() {
def short... | Include month names and redirect counters in order to display chart when using api | Include month names and redirect counters in order to display chart when using api
| Groovy | mit | ManningPublications/3oh1,ManningPublications/3oh1,ManningPublications/3oh1 |
1ecd233a3eb739546de039e9372328d3d52c9065 | lazybones-gradle-plugin/src/main/groovy/uk/co/cacoethes/gradle/tasks/InstallTemplateRule.groovy | lazybones-gradle-plugin/src/main/groovy/uk/co/cacoethes/gradle/tasks/InstallTemplateRule.groovy | package uk.co.cacoethes.gradle.tasks
import org.gradle.api.Project
import org.gradle.api.Rule
import org.gradle.api.tasks.Copy
import org.gradle.api.tasks.bundling.Zip
import uk.co.cacoethes.gradle.util.NameConverter
/**
* A rule that creates tasks for installing a Lazybones template package into the
* template cac... | package uk.co.cacoethes.gradle.tasks
import org.gradle.api.Project
import org.gradle.api.Rule
import org.gradle.api.tasks.Copy
import org.gradle.api.tasks.bundling.Zip
import uk.co.cacoethes.gradle.util.NameConverter
/**
* A rule that creates tasks for installing a Lazybones template package into the
* template cac... | Remove '-template' from package name only if suffix. | Remove '-template' from package name only if suffix.
The rule/task for installing templates was removing the string '-template'
from any part of the template name, not just if it was a suffix.
| Groovy | apache-2.0 | pledbrook/lazybones-kotlin,danielgrycman/lazybones,pledbrook/lazybones,pledbrook/lazybones,danielgrycman/lazybones,aaronzirbes/lazybones,pledbrook/lazybones-kotlin,ctran/lazybones,ctran/lazybones |
734affc275add17fa427db2695d15644021ef55b | subprojects/language-groovy/src/testFixtures/groovy/org/gradle/testing/fixture/GroovyCoverage.groovy | subprojects/language-groovy/src/testFixtures/groovy/org/gradle/testing/fixture/GroovyCoverage.groovy | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add Groovy 2.4.15 to Groovy coverage tests | Add Groovy 2.4.15 to Groovy coverage tests
| Groovy | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,g... |
e1b663b73b9f7a6fcf51c16859ef19ec5ec9f7bf | subprojects/plugins/src/integTest/groovy/org/gradle/groovy/compile/InvokeDynamicGroovyCompilerSpec.groovy | subprojects/plugins/src/integTest/groovy/org/gradle/groovy/compile/InvokeDynamicGroovyCompilerSpec.groovy | /*
* Copyright 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 applica... | /*
* Copyright 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 applica... | Upgrade Groovy in one last place | Upgrade Groovy in one last place
+review REVIEW-6468
| Groovy | apache-2.0 | lsmaira/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,bli... |
3681246492d4ba94fb9bed404edbf6ae589cb610 | orca-echo/src/main/groovy/com/netflix/spinnaker/orca/echo/EchoService.groovy | orca-echo/src/main/groovy/com/netflix/spinnaker/orca/echo/EchoService.groovy | /*
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Add SLACK to Notification.Type enum | Add SLACK to Notification.Type enum
| Groovy | apache-2.0 | duftler/orca,ajordens/orca,Nagarajj/orca,ttomsu/orca,spinnaker/orca,cfieber/orca,ttomsu/orca,Nagarajj/orca,Nagarajj/orca,cfieber/orca,Nagarajj/orca,ajordens/orca,ajordens/orca,robfletcher/orca,ajordens/orca,robfletcher/orca,ttomsu/orca,cfieber/orca,spinnaker/orca,duftler/orca,cfieber/orca,robfletcher/orca,duftler/orca,... |
a2c17cfb8f30cff88974e59713cd80a9fb2ae702 | pipeline.groovy | pipeline.groovy | #!groovy
// This is the initial seed job for venicegeo which creates all of ther
// other pipeline jobs. Each repo must contain a JenkinsFile
// that denotes the steps to take when building.
evaluate(new File("beachfront.groovy"))
evaluate(new File("piazza.groovy"))
| #!groovy
// This is the initial seed job for venicegeo which creates all of ther
// other pipeline jobs. Each repo must contain a JenkinsFile
// that denotes the steps to take when building.
evaluate(new File("./beachfront.groovy"))
evaluate(new File("./piazza.groovy"))
| Fix typo patht to file | Fix typo patht to file
| Groovy | apache-2.0 | venicegeo/jenkins |
b61e61c720fda73c57a65a2149a7ee3bbf83c201 | jobdsl.groovy | jobdsl.groovy | #!groovy
folder('lightning')
['core', 'standalone', 'maven', 'gradle', 'lambda'].each { module ->
multibranchPipelineJob("lightning/${module}") {
branchSources {
git {
remote('git@github.com:automatictester/lightning.git')
credentialsId('github-creds')
... | #!groovy
folder('lightning')
['core', 'standalone', 'maven', 'gradle', 'lambda'].each { module ->
multibranchPipelineJob("lightning/${module}") {
branchSources {
git {
remote('git@github.com:automatictester/lightning.git')
credentialsId('github-creds')
... | Update JobDSL to account for non-master SharedLib execution | Update JobDSL to account for non-master SharedLib execution
| Groovy | mit | automatictester/lightning,automatictester/lightning |
417328846c290ecd8e6fec546f2785560b4f85b7 | vars/jplValidateCommitMessages.groovy | vars/jplValidateCommitMessages.groovy | /**
Validate commit messages on PR's using https://github.com/willsoto/validate-commit project
- Check a concrete quantity of commits on the actual PR on the code repository
- Breaks the build if any commit don'w follow the preset rules
Parameters:
* cfg jplConfig class object
* int quantity Number of co... | /**
Validate commit messages on PR's using https://github.com/willsoto/validate-commit project
- Check a concrete quantity of commits on the actual PR on the code repository
- Breaks the build if any commit don'w follow the preset rules
Parameters:
* cfg jplConfig class object
* int quantity Number of co... | Convert commit delimiter to '\n' string | Update: Convert commit delimiter to '\n' string
| Groovy | mit | red-panda-ci/jenkins-pipeline-library,pedroamador/jenkins-pipeline-library |
292ffffc156eb209a41843004cd27ac1d87cc168 | src/test/resources/core/EnumDeclaration_02.groovy | src/test/resources/core/EnumDeclaration_02.groovy | enum E {
A() {}, B(1) {{}},
C(1, 2) {
public void prt() {
println "$x, $y"
}
void prt2() {
println "$x, $y"
}
@Test2 prt3() {
println "$x, $y"
}
private void prt4() {
println "$x, $y"
}
pr... | /*
* 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 more tests for enum declaration | Add more tests for enum declaration
| Groovy | apache-2.0 | danielsun1106/groovy-parser,danielsun1106/groovy-parser |
6bfe1bd03e119ab482cc53ea6642d47cf8d86ffe | skeleton/grails-app/vaadin/@grails.codegen.defaultPackage.path@/@grails.codegen.projectClassName@GrailsUI.groovy | skeleton/grails-app/vaadin/@grails.codegen.defaultPackage.path@/@grails.codegen.projectClassName@GrailsUI.groovy | package @grails.codegen.defaultPackage.path@
import com.vaadin.server.VaadinRequest
import com.vaadin.annotations.Theme
import com.vaadin.spring.annotation.SpringUI
import com.vaadin.ui.Alignment
import com.vaadin.ui.Button
import com.vaadin.ui.HorizontalLayout
import com.vaadin.ui.Notification
import com.vaadin.ui.UI... | package @grails.codegen.defaultPackage.path@
import com.vaadin.server.VaadinRequest
import com.vaadin.annotations.Theme
import com.vaadin.spring.annotation.SpringUI
import com.vaadin.ui.Alignment
import com.vaadin.ui.Button
import com.vaadin.ui.HorizontalLayout
import com.vaadin.ui.Notification
import com.vaadin.ui.UI... | Add default path mapping to a Vaadin UI | Add default path mapping to a Vaadin UI
| Groovy | apache-2.0 | macprzepiora/web-vaadin8 |
7408d194933848f5b986b23bb1d6e1bdafbe3786 | jenkins_jobs.groovy | jenkins_jobs.groovy | // Jenkins build jobs for babel-standalone
job('babel-standalone-update') {
description 'Updates babel-standalone to the latest version of Babel'
label 'powershell'
scm {
git {
branch 'master'
remote {
github 'babel/babel-standalone', 'ssh'
}
extensions {
// Required s... | // Jenkins build jobs for babel-standalone
job('babel-standalone-update') {
description 'Updates babel-standalone to the latest version of Babel'
label 'powershell'
scm {
git {
branch 'master'
remote {
github 'babel/babel-standalone', 'ssh'
}
extensions {
// Required s... | Add GitHub Issue Notifier for automatic updates | Add GitHub Issue Notifier for automatic updates | Groovy | mit | Daniel15/babel-standalone |
2159655d2047bf980106f08c487fd71891ea1caf | tests/CoveragePercentileTest.groovy | tests/CoveragePercentileTest.groovy | import static org.junit.Assert.*;
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics
import org.junit.Test;
class CoveragePercentileTest {
@Test
public void testCoveragePercentile() {
def tests = [
[2,5,2,3,2,1,4,3,2,2,2],
[20] * 10 + [30]*15,
... | import static org.junit.Assert.*;
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics
import org.junit.Test;
class CoveragePercentileTest {
@Test
public void testCoveragePercentile() {
def tests = [
[2,5,2,3,2,1,4,3,2,2,2],
[20] * 10 + [30]*15,
... | Make api compatible with commons math descriptive statistics | Make api compatible with commons math descriptive statistics
| Groovy | lgpl-2.1 | ssadedin/groovy-ngs-utils,ssadedin/groovy-ngs-utils,ssadedin/groovy-ngs-utils,ssadedin/groovy-ngs-utils |
1560e32605c55d393fc7491bdcbd6bb6398abede | src/test/groovy/CVC4SolverTest.groovy | src/test/groovy/CVC4SolverTest.groovy | package janala.solvers
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertFalse
import static org.junit.Assert.assertTrue
import janala.config.Config
import janala.interpreters.Constraint;
import janala.interpreters.SymbolicInt;
import janala.interpreters.IntValue;
import org.junit.Test... | package janala.solvers
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertFalse
import static org.junit.Assert.assertTrue
import janala.config.Config
import janala.interpreters.Constraint;
import janala.interpreters.SymbolicInt;
import janala.interpreters.IntValue;
import org.junit.Test... | Disable CVC4 test as it requires file io. | Disable CVC4 test as it requires file io.
| Groovy | bsd-2-clause | zhihan/janala2-gradle,zhihan/janala2-gradle,zhihan/janala2-gradle,zhihan/janala2-gradle,zhihan/janala2-gradle |
ccec8cfe2c7c68d4c071f3b457df5b799f009fa8 | micro-deps-spring-config/src/main/groovy/com/ofg/infrastructure/discovery/ZookeeperConnectorConditions.groovy | micro-deps-spring-config/src/main/groovy/com/ofg/infrastructure/discovery/ZookeeperConnectorConditions.groovy | package com.ofg.infrastructure.discovery
import com.ofg.config.BasicProfiles
import groovy.transform.CompileStatic
import org.springframework.context.annotation.Condition
import org.springframework.context.annotation.ConditionContext
import org.springframework.core.env.Environment
import org.springframework.core.type.... | package com.ofg.infrastructure.discovery
import com.ofg.config.BasicProfiles
import groovy.transform.CompileStatic
import org.springframework.context.annotation.Condition
import org.springframework.context.annotation.ConditionContext
import org.springframework.core.env.Environment
import org.springframework.core.type.... | Update property name in javadoc | Update property name in javadoc
| Groovy | apache-2.0 | ychulovskyy/micro-infra-spring,RemboL/micro-infra-spring,4finance/micro-infra-spring,adrian-wozniak/micro-infra-spring,dstepanov/micro-infra-spring,sn0wolf/micro-infra-spring,ofg-dmitrys/micro-infra-spring,ofg-dmitrys/micro-infra-spring,adrian-wozniak/micro-infra-spring,spencergibb/micro-infra-spring,sn0wolf/micro-infr... |
7e88380b9a6f21374f240b29496a83272d76da8c | scripts/SetLicense.groovy | scripts/SetLicense.groovy | /*
* JBILLING CONFIDENTIAL
* _____________________
*
* [2003] - [2012] Enterprise jBilling Software Ltd.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Enterprise jBilling Software.
* The intellectual and technical concepts contained
* herein are proprie... | /*
* JBILLING CONFIDENTIAL
* _____________________
*
* [2003] - [2012] Enterprise jBilling Software Ltd.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Enterprise jBilling Software.
* The intellectual and technical concepts contained
* herein are proprie... | Remove default target since it is being explicitely called on compile startup eveny | Remove default target since it is being explicitely called on compile startup eveny
| Groovy | agpl-3.0 | liquidJbilling/LT-Jbilling-MsgQ-3.1,liquidJbilling/LT-Jbilling-MsgQ-3.1,liquidJbilling/LT-Jbilling-MsgQ-3.1,liquidJbilling/LT-Jbilling-MsgQ-3.1 |
a0a96a6fa72804f562cf51d1a34cadd21fda92e5 | groovyNotesFive.groovy | groovyNotesFive.groovy | class groovyNotesFive {
static void main(String[] args) {
// for the C-style switch,
// you can also use ranges:
def age = 13
switch (age) {
case 0..6:
println 'Kid'
break
case 7..12:
println 'Teen'
break
case 13..18:
println 'Almost Adult'
... | class groovyNotesFive {
static void main(String[] args) {
// for the C-style switch,
// you can also use ranges:
def age = 13
switch (age) {
case 0..6:
println 'Kid'
break
case 7..12:
println 'Teen'
break
case 13..18:
println 'Almost Adult'
... | Add further notes about looping using for-in groovy loop | Add further notes about looping using for-in groovy loop
| Groovy | mit | nbkhope/groovy-notes |
67643ab4bae89f06a1b810552ab68e335044f81d | grails-app/controllers/com/todoApp/TaskController.groovy | grails-app/controllers/com/todoApp/TaskController.groovy | package com.todoApp
import grails.converters.JSON
import java.text.SimpleDateFormat
/**
* Created by hitenpratap on 3/10/15.
*/
class TaskController {
def index={
render(view: '/tasks/index')
}
def create = {
render(template: '/tasks/create')
}
def save = {
def result... | package com.todoApp
import grails.converters.JSON
import java.text.SimpleDateFormat
/**
* Created by hitenpratap on 3/10/15.
*/
class TaskController {
def index={
render(view: '/tasks/index')
}
def create = {
render(template: '/tasks/create')
}
def save = {
def result... | Update to task load query to load task in task date ascending order | Update to task load query to load task in task date ascending order
| Groovy | mit | NexThoughts/ToDoApp_AngularJS |
19d467d553abd6714e30fc6b3aaefa76fb202903 | src/test/groovy/gvm/RunCukeTests.groovy | src/test/groovy/gvm/RunCukeTests.groovy | package gvm
import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith
@RunWith(Cucumber.class)
@Cucumber.Options(
format=["pretty", "html:build/reports/cucumber"],
strict=true,
features=["src/test/cucumber"],
glue=["src/test/steps"],
tags="~@manual"
)
public class RunCukesTest {
}
| package gvm
import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith
@RunWith(Cucumber.class)
@Cucumber.Options(
format=["pretty", "html:build/reports/cucumber"],
strict=true,
features=["src/test/cucumber"],
glue=["src/test/steps"],
tags=["~@manual", "~@review"]
)
public class RunCukesTest {
}
| Allow certain scenarios to be ignored for review. | Allow certain scenarios to be ignored for review.
| Groovy | apache-2.0 | sdkman/sdkman-cli,nobeans/gvm-cli,jbovet/gvm,DealerDotCom/gvm-cli,gvmtool/gvm-cli,GsusRecovery/sdkman-cli,nobeans/gvm-cli,skpal/sdkman-cli,GsusRecovery/sdkman-cli,shanman190/sdkman-cli,skpal/sdkman-cli,DealerDotCom/gvm-cli,busches/gvm-cli |
1d21a04f928a205782362b8f10ad6bf9f9c9eaec | test/me/therin/mining/itemsets/CompareAlgorithmsTest.groovy | test/me/therin/mining/itemsets/CompareAlgorithmsTest.groovy | package me.therin.mining.itemsets
import me.therin.mining.itemsets.fpgrowth.FPTree
import me.therin.mining.itemsets.apriori.Apriori
import me.therin.brovine.TestBaskets
def bs1 = new TestBaskets()
def bs2 = new TestBaskets()
def apriori = new Apriori<Character>(bs1)
def fpgrowth = new FPTree<Character>(bs2)
def ap_... | package me.therin.mining.itemsets
import me.therin.mining.itemsets.fpgrowth.FPTree
import me.therin.mining.itemsets.apriori.Apriori
import me.therin.brovine.TestBaskets
def minSups = [0.1, 0.2, 0.25, 0.88]
print("Running tests...")
for (def minSup : minSups) {
def bs1 = new TestBaskets()
def bs2 = new TestB... | Test that Apriori and FPGrowth return same result | Test that Apriori and FPGrowth return same result
| Groovy | apache-2.0 | brovine-developers/freq-itemset-gen |
fef972a936b4b966e54c02369ed6bf4ece77b231 | biz.aQute.bnd.gradle/test/aQute/bnd/gradle/TestHelper.groovy | biz.aQute.bnd.gradle/test/aQute/bnd/gradle/TestHelper.groovy | package aQute.bnd.gradle
import org.gradle.api.JavaVersion
import org.gradle.testkit.runner.GradleRunner
class TestHelper {
private TestHelper() { }
public static GradleRunner getGradleRunner() {
return GradleRunner.create()
.withGradleVersion(gradleVersion())
}
public static GradleRunner g... | package aQute.bnd.gradle
import aQute.bnd.version.MavenVersion
import org.gradle.api.JavaVersion
import org.gradle.testkit.runner.GradleRunner
class TestHelper {
private TestHelper() { }
public static GradleRunner getGradleRunner() {
return GradleRunner.create()
.withGradleVersion(gradleVersion... | Update test to support using default gradle version | gradle: Update test to support using default gradle version
If the requested gradle version is lower than the default version for
the current JDK, then use the default version.
Signed-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>
| Groovy | apache-2.0 | psoreide/bnd,psoreide/bnd,psoreide/bnd |
cc025110d7fe336817de2bef1e19cbd121bf5dfb | app/plugins/metadata/grails-app/controllers/aaf/fr/metadata/AttributeFilterController.groovy | app/plugins/metadata/grails-app/controllers/aaf/fr/metadata/AttributeFilterController.groovy | package aaf.fr.metadata
import groovy.xml.MarkupBuilder
import aaf.fr.foundation.*
import grails.converters.JSON
/**
* Provides AttributeFilter views.
*
* @author Bradley Beddoes
*/
class AttributeFilterController {
def attributeFilterGenerationService
def grailsApplication
def generate = {
if(!params.id)... | package aaf.fr.metadata
import groovy.xml.MarkupBuilder
import aaf.fr.foundation.*
import grails.converters.JSON
/**
* Provides AttributeFilter views.
*
* @author Bradley Beddoes
*/
class AttributeFilterController {
def attributeFilterGenerationService
def grailsApplication
def generate = {
if(!params.id)... | Fix for issue logged against FR 1 about content type not being set to xml correctly | Fix for issue logged against FR 1 about content type not being set to xml correctly
| Groovy | apache-2.0 | REANNZ/federationregistry2-Tuakiri,REANNZ/federationregistry2-Tuakiri,University-of-Auckland/federationregistry2-Tuakiri,REANNZ/federationregistry2-Tuakiri,University-of-Auckland/federationregistry2-Tuakiri,REANNZ/federationregistry2-Tuakiri,REANNZ/federationregistry2-Tuakiri,University-of-Auckland/federationregistry2-... |
0d2f0ae369ab6ab6cf49e88345fda6392ac337aa | init.groovy.d/configure-datadog.groovy | init.groovy.d/configure-datadog.groovy | #!/usr/bin/env groovy
/* Configure the Datadog plugin for this instance */
import jenkins.model.*
import org.datadog.jenkins.plugins.datadog.DatadogBuildListener
def dog = Jenkins.instance.getDescriptor('org.datadog.jenkins.plugins.datadog.DatadogBuildListener')
if (System.env.get('GITHUB_USER')) {
dog.hostnam... | #!/usr/bin/env groovy
/* Configure the Datadog plugin for this instance */
import jenkins.model.*
import org.datadog.jenkins.plugins.datadog.DatadogBuildListener
def dog = Jenkins.instance.getDescriptor('org.datadog.jenkins.plugins.datadog.DatadogBuildListener')
if (System.env.get('GITHUB_USER')) {
dog.hostnam... | Reformat the hostname for datadog | Reformat the hostname for datadog
| Groovy | agpl-3.0 | CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet |
73ea606695f2b1fdd3a2815d078c003f73586db1 | tools/jenkins/beta.groovy | tools/jenkins/beta.groovy | #!groovy
// Script to create a new beta of Nuxeo Drive.
// Pipeline properties
properties([
disableConcurrentBuilds(),
pipelineTriggers([]),
[$class: 'SchedulerPreference', preferEvenload: true],
[$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false],
[$class: 'ParametersDefinition... | #!groovy
// Script to create a new beta of Nuxeo Drive.
// Pipeline properties
properties([
disableConcurrentBuilds(),
pipelineTriggers([]),
[$class: 'SchedulerPreference', preferEvenload: true],
[$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false],
[$class: 'ParametersDefinition... | Work on a local branch to allow git push | NXDRIVE-571: Work on a local branch to allow git push
| Groovy | lgpl-2.1 | ssdi-drive/nuxeo-drive,ssdi-drive/nuxeo-drive,ssdi-drive/nuxeo-drive |
c0ae71b52281cdd107aacf56286af97d2b4b9d6b | src/main/groovy/com/bmuschko/gradle/docker/utils/IOUtils.groovy | src/main/groovy/com/bmuschko/gradle/docker/utils/IOUtils.groovy | package com.bmuschko.gradle.docker.utils
import groovy.transform.CompileStatic
import org.gradle.api.Project
import org.gradle.api.internal.GradleInternal
import org.gradle.internal.logging.progress.ProgressLogger
import org.gradle.internal.logging.progress.ProgressLoggerFactory
import org.gradle.internal.service.Serv... | package com.bmuschko.gradle.docker.utils
import groovy.transform.CompileStatic
import org.gradle.api.Project
import org.gradle.api.internal.GradleInternal
import org.gradle.internal.logging.progress.ProgressLogger
import org.gradle.internal.logging.progress.ProgressLoggerFactory
import org.gradle.internal.service.Serv... | Delete usage of removed method in Gradle 6.0 | Delete usage of removed method in Gradle 6.0
Issue #868
| Groovy | apache-2.0 | bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin |
03d1ba30ab603b9defb6a4b8b9135179515f2d87 | vars/goBuildNode.groovy | vars/goBuildNode.groovy | /*
Creates a node with the right label and checkout the source code.
*/
import org.istio.testutils.Utilities
def call(gitUtils, goImportPath, Closure body) {
utils = new Utilities()
def nodeLabel = utils.getParam('SLAVE_LABEL', gitUtils.DEFAULT_SLAVE_LABEL)
def buildNodeLabel = "${nodeLabel}-build"
node(buil... | /*
Creates a node with the right label and checkout the source code.
*/
import org.istio.testutils.Utilities
def call(gitUtils, goImportPath, Closure body) {
utils = new Utilities()
def nodeLabel = utils.getParam('SLAVE_LABEL', gitUtils.DEFAULT_SLAVE_LABEL)
def buildNodeLabel = "${nodeLabel}-build"
node(buil... | Set path only for build inside node. | Set path only for build inside node.
| Groovy | apache-2.0 | istio/test-infra,istio/test-infra,istio/test-infra,istio/test-infra |
8420dd23c315f46f10bf16fb6d3c4af11dfb9f84 | site/src/site/includes/bottommenu.groovy | site/src/site/includes/bottommenu.groovy |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... |
// footer
footer(id: 'footer') {
div(class: 'row') {
div(class: 'colset-3-footer') {
menu.entrySet().eachWithIndex { entry, i ->
def (name, menu) = [entry.key, entry.value]
div(class: "col-${i+1}") {
h1(name)
ul {
... | Add the class 'img-responsive' to Apache's image | Add the class 'img-responsive' to Apache's image | Groovy | apache-2.0 | groovy/groovy-website,groovy/groovy-website |
c23ed9019fe4e0da959f7325adff24609c5b71c3 | security/protectPropertiesEdit/protectPropertiesEdit.groovy | security/protectPropertiesEdit/protectPropertiesEdit.groovy | /*
* Copyright (C) 2014 JFrog 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 law or agreed to i... | /*
* Copyright (C) 2014 JFrog 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 law or agreed to i... | Add status code so CancelException doesn't fail | Add status code so CancelException doesn't fail
Discovered that the CancelException had no constructor. Fixed it so it now does.
TODO: Write a real test | Groovy | apache-2.0 | JFrogDev/artifactory-user-plugins |
feb997a032cff4e3dc14fae0bfd54b89f7bdbb85 | apps/omar/grails-app/conf/DataSource.groovy | apps/omar/grails-app/conf/DataSource.groovy | def useP6Spy = false // use this to enable p6spy logging
dataSource {
pooled = true
driverClassName = (useP6Spy) ? "com.p6spy.engine.spy.P6SpyDriver" : "org.postgis.DriverWrapper"
username = "postgres"
password = "postgres"
// dialect = "org.ossim.postgis.PostGISDialectNG"
dialect = org.hibernatespatial.pos... | def useP6Spy = false // use this to enable p6spy logging
dataSource {
pooled = true
driverClassName = (useP6Spy) ? "com.p6spy.engine.spy.P6SpyDriver" : "org.postgis.DriverWrapper"
username = "postgres"
password = "postgres"
// dialect = "org.ossim.postgis.PostGISDialectNG"
dialect = org.hibernatespatial.pos... | Put the names back temporarily | Put the names back temporarily
git-svn-id: 3b4b84547dfdca3638583abe8533e8c649d4f491@17510 b630af17-092b-0410-afba-a002956477a4
| Groovy | lgpl-2.1 | radiantbluetechnologies/omar,radiantbluetechnologies/omar,radiantbluetechnologies/omar,radiantbluetechnologies/omar |
b65dd92dd02f7d006c1f206232ef6b32e83a44ef | files/groovy_scripts/manage_jenkins_main_configuration.groovy | files/groovy_scripts/manage_jenkins_main_configuration.groovy | #!/usr/bin/env groovy
import jenkins.model.*
import groovy.json.*
/* FUNCTIONS */
def parse_data(String arg) {
try {
def jsonSlurper = new JsonSlurper()
return jsonSlurper.parseText(arg)
}
catch(e) {
throw new Exception("Parse data error, incoming data : ${arg}, "
... | #!/usr/bin/env groovy
import jenkins.model.*
import groovy.json.*
/* FUNCTIONS */
def parse_data(String arg) {
try {
def jsonSlurper = new JsonSlurper()
return jsonSlurper.parseText(arg)
}
catch(e) {
throw new Exception("Parse data error, incoming data : ${arg}, "
... | Change output main configuration script | Change output main configuration script
| Groovy | mit | infOpen/ansible-role-jenkins |
c35fac67e2f4b22df35e1149a97addc78cc9f21d | whelktool/scripts/cleanups/2020/01/lxl-2760.groovy | whelktool/scripts/cleanups/2020/01/lxl-2760.groovy | // A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy
subdivisionTypes = [
'GenreForm' : 'GenreSubdivision',
'Temporal' : 'TemporalSubdivision',
'Geographic' : 'GeographicSubdivision'
]
COMPLEX_SUBJECT_TYPE = 'ComplexSubject'
boolean changeToSubdivision(it, subdivisionTy... | // A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
subdivisionTypes = [
'GenreForm' : 'GenreSubdivision',
'Temporal' : 'TemporalSubdivision',
'Geographic' : 'GeographicSubdivision'
]
COMPLEX_SUBJE... | Add reporting to cleanup script. | Add reporting to cleanup script.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
7b2bfb50636a483f2232c568b8764c7d2af248ae | src/main/groovy/com/msgilligan/mastercoin/consensus/ConsensusTool.groovy | src/main/groovy/com/msgilligan/mastercoin/consensus/ConsensusTool.groovy | package com.msgilligan.mastercoin.consensus
/**
* User: sean
* Date: 7/11/14
* Time: 12:35 PM
*/
abstract class ConsensusTool implements ConsensusFetcher {
public static final Long currencyMSC = 1L
void run(List args) {
Long currency = args[0] ?: currencyMSC
String fileName = args[1]
... | package com.msgilligan.mastercoin.consensus
/**
* User: sean
* Date: 7/11/14
* Time: 12:35 PM
*/
abstract class ConsensusTool implements ConsensusFetcher {
public static final Long currencyMSC = 1L
void run(List args) {
String currencyString = args[0]
Long currency = currencyString ? Long.... | Convert currency arg from String to Long | Convert currency arg from String to Long | Groovy | apache-2.0 | OmniLayer/OmniJ,dexX7/bitcoin-spock,OmniLayer/OmniJ,dexX7/bitcoin-spock,OmniLayer/OmniJ,dexX7/OmniJ,dexX7/OmniJ |
886b1298b2799c424c4b517f538a7f28d30af336 | grails-app/conf/BuildConfig.groovy | grails-app/conf/BuildConfig.groovy | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
inherits("global") {
// uncomment to disable e... | grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.release.scm.enabled = false
grails.project.dependency.resolution = {
inherits("global")... | Add no scm flag that is picked up by the release plugin so we don't have to provide it when calling publish-plugin. | Add no scm flag that is picked up by the release plugin so we don't have to provide it when calling publish-plugin.
| Groovy | apache-2.0 | kjb/grails-spring-security-saml |
6ca03dc3d818bd53756551d7079379d15f393f88 | src/integration-test/groovy/geb/CustomUrlGebReportingSpec.groovy | src/integration-test/groovy/geb/CustomUrlGebReportingSpec.groovy | package geb
import de.iteratec.osm.util.OsmTestLogin
import geb.pages.de.iteratec.osm.LoginPage
import geb.spock.GebReportingSpec
import grails.plugin.springsecurity.SpringSecurityService
import grails.util.Holders
/**
* Sets the baseUrl for the test browser configured in the OpenSpeedMonitor-config.yml
*/
class Cu... | package geb
import de.iteratec.osm.util.OsmTestLogin
import geb.pages.de.iteratec.osm.LoginPage
import geb.spock.GebReportingSpec
import grails.buildtestdata.TestDataBuilder
import grails.plugin.springsecurity.SpringSecurityService
import grails.util.Holders
/**
* Sets the baseUrl for the test browser configured in ... | Add TestDataBuilder trait to geb tests | [IT-1681] Add TestDataBuilder trait to geb tests
http://longwa.github.io/build-test-data/index#integration-tests
| Groovy | apache-2.0 | iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor |
dd3c65f55725e36834a2436c665aaa8731565a02 | src/it/projects/run-no-module/verify.groovy | src/it/projects/run-no-module/verify.groovy | def log = new File(basedir, 'build.log').text
return log.contains('org.apache.maven.plugin.MojoExecutionException: Execution error')
| def log = new File(basedir, 'build.log').text
return log.contains('Could not find module: mymodule/1.0.0')
| Revert "Fix the `run-no-module` test" | Revert "Fix the `run-no-module` test"
This reverts commit d124333c8b9cb9f36c5a9fce9f27819e35f46f41.
| Groovy | apache-2.0 | ceylon/ceylon-maven-plugin |
0f409864156a1d65c4c4278af400efcb5d00a91b | test/app/plugin-installed/grails-app/services/SeparateTransactionsService.groovy | test/app/plugin-installed/grails-app/services/SeparateTransactionsService.groovy | import java.sql.SQLException
import javax.sql.DataSource
import groovy.sql.Sql
class SeparateTransactionsService {
static transactional = false
DataSource dataSourceUnproxied
void separate() {
Foo.withTransaction {
new Foo(name: 'plugh').save(failOnError: true, flush: true)
... | import java.sql.SQLException
import javax.sql.DataSource
import groovy.sql.Sql
class SeparateTransactionsService {
static transactional = false
DataSource dataSourceUnproxied
void separate() {
Foo.withTransaction {
new Foo(name: 'plugh').save(failOnError: true, flush: true)
... | Use 'sql.execute' instead of 'SQLException' in separate transactions test. | Use 'sql.execute' instead of 'SQLException' in separate transactions test.
| Groovy | mit | mbezjak/rollback-on-exception |
2816b21d9630f23f4c842abb208803140faad006 | plugin/src/main/groovy/com/github/fowlie/GradleJenkinsTestTask.groovy | plugin/src/main/groovy/com/github/fowlie/GradleJenkinsTestTask.groovy | package com.github.fowlie
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
/**
* Created by mfa on 22.09.2014.
*/
class GradleJenkinsTestTask extends DefaultTask {
@TaskAction
def jenkinsTest() {
inputs.files test.outputs.files
doLast {
def testResults = t... | package com.github.fowlie
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
class GradleJenkinsTestTask extends DefaultTask {
@TaskAction
def jenkinsTest() {
def testResults = project.test.getReports().getJunitXml().getDestination()
if (testResults.exists()) test... | Remove created by comment, input files and doLast closure | Remove created by comment, input files and doLast closure
| Groovy | mit | fowlie/gradle-jenkins-test |
51b0451adad7cbec83a24141afef88b22d90a2cc | spring-boot-cli/samples/http.groovy | spring-boot-cli/samples/http.groovy | package org.test
@Grab("org.codehaus.groovy.modules.http-builder:http-builder:0.5.2") // This one just to test dependency resolution
import groovyx.net.http.*
@Controller
class Example implements CommandLineRunner {
@RequestMapping("/")
@ResponseBody
public String helloWorld() {
return "World!"
}
void run(St... | package org.test
@Grab("org.codehaus.groovy.modules.http-builder:http-builder:0.5.2") // This one just to test dependency resolution
import groovyx.net.http.*
@Controller
class Example implements CommandLineRunner {
@Autowired
ApplicationContext context;
@RequestMapping("/")
@ResponseBody
public String helloWo... | Fix broken test due to random port change | Fix broken test due to random port change
| Groovy | apache-2.0 | nelswadycki/spring-boot,meloncocoo/spring-boot,afroje-reshma/spring-boot-sample,qq83387856/spring-boot,wilkinsona/spring-boot,candrews/spring-boot,sbuettner/spring-boot,M3lkior/spring-boot,nisuhw/spring-boot,cleverjava/jenkins2-course-spring-boot,fogone/spring-boot,DONIKAN/spring-boot,gauravbrills/spring-boot,prasenjit... |
fb3731dd5cba3c4b120b0d656882582d1fb9cc04 | distribution/src/main/config/start-service-bean-exec.groovy | distribution/src/main/config/start-service-bean-exec.groovy | /*
* This configuration is used to start a service that will exec a single service bean
*/
import org.rioproject.boot.RioServiceDescriptor
import org.rioproject.config.Component
import com.sun.jini.start.ServiceDescriptor
import org.rioproject.boot.ServiceDescriptorUtil
@Component('com.sun.jini.start')
class StartS... | /*
* This configuration is used to start a service that will exec a single service bean
*/
import org.rioproject.boot.RioServiceDescriptor
import org.rioproject.config.Component
import com.sun.jini.start.ServiceDescriptor
import org.rioproject.boot.ServiceDescriptorUtil
@Component('com.sun.jini.start')
class StartS... | Use the new forked_service configuration | Use the new forked_service configuration
| Groovy | apache-2.0 | dreedyman/Rio,dreedyman/Rio,dreedyman/Rio |
d280e7eb411a6f50f2dd9a3f7abc7f8272e3bcd5 | .test-infra/jenkins/job_PreCommit_Java_PortabilityApi.groovy | .test-infra/jenkins/job_PreCommit_Java_PortabilityApi.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Remove space from new Java PortabilityApi Jenkins job name. | Remove space from new Java PortabilityApi Jenkins job name.
Jenkins jobs should not include spaces; see:
https://brentlavelle.wordpress.com/2015/09/24/dont-put-spaces-in-your-jenkins-job-names/
| Groovy | apache-2.0 | charlesccychen/incubator-beam,rangadi/incubator-beam,markflyhigh/incubator-beam,robertwb/incubator-beam,iemejia/incubator-beam,charlesccychen/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,robertwb/incubator-beam,robertwb/incubator-beam,chamikaramj/beam,rangadi/beam,chamikaramj/beam,rangadi/beam,RyanSkraba/beam,c... |
8477b841032e78a973667d47c36cf28f4e6350ef | discops/apps/tilestore/grails-app/taglib/tilestore/TileCacheTagLib.groovy | discops/apps/tilestore/grails-app/taglib/tilestore/TileCacheTagLib.groovy | package tilestore
/**
* Created by gpotts on 4/8/15.
*/
class TileCacheTagLib
{
static namespace = "tilestore"
def securityClassificationBanner = {attrs ->
def level = grailsApplication.config.security.level
def levelMap = grailsApplication.config.security."${level}"
// def fontSize = attrs.... | package tilestore
/**
* Created by gpotts on 4/8/15.
*/
class TileCacheTagLib
{
static namespace = "tilestore"
def securityClassificationBanner = {attrs ->
def level = grailsApplication.config.security.level
def levelMap = grailsApplication.config.security."${level}"
// def fontSize = attrs.... | Modify .css on classification banner | Modify .css on classification banner
| Groovy | mit | radiantbluetechnologies/ossim-geotools,radiantbluetechnologies/ossim-geotools,radiantbluetechnologies/ossim-geotools,radiantbluetechnologies/ossim-geotools,radiantbluetechnologies/ossim-geotools |
1f40acaab24800bcfaa352381a1aff48ae36cc08 | modules/gradle-base/src/main/groovy/org/ajoberstar/semver/vcs/gradle/SemverExtension.groovy | modules/gradle-base/src/main/groovy/org/ajoberstar/semver/vcs/gradle/SemverExtension.groovy | package org.ajoberstar.semver.vcs.gradle
import org.ajoberstar.semver.vcs.Scope
import org.ajoberstar.semver.vcs.Stage
import org.ajoberstar.semver.vcs.Vcs
import org.ajoberstar.semver.vcs.Versioner
import java.util.function.Supplier
class SemverExtension {
Supplier<Versioner> versionerSupplier
Vcs vcs
... | package org.ajoberstar.semver.vcs.gradle
import org.ajoberstar.semver.vcs.Scope
import org.ajoberstar.semver.vcs.Stage
import org.ajoberstar.semver.vcs.Vcs
import org.ajoberstar.semver.vcs.Versioner
import java.util.function.Supplier
class SemverExtension {
Supplier<Versioner> versionerSupplier
Vcs vcs
... | Fix bug in *stages(Stage...) methods. | Fix bug in *stages(Stage...) methods.
| Groovy | apache-2.0 | ajoberstar/semver-vcs,ajoberstar/reckon,ajoberstar/reckon,ajoberstar/semver-vcs |
6b27db52ef14166f93c040721d3b389a7cb2a796 | src/main/groovy/org/rackspace/gdeproxy/Handlers.groovy | src/main/groovy/org/rackspace/gdeproxy/Handlers.groovy | package org.rackspace.gdeproxy
/**
* Created with IntelliJ IDEA.
* User: izrik
*
*/
class Handlers {
// Handler function.
// Returns a 200 OK Response, with no additional headers or response body.
static def simpleHandler(request) {
return new Response(200, 'OK')
}
// Handler functio... | package org.rackspace.gdeproxy
/**
* Created with IntelliJ IDEA.
* User: izrik
*
*/
class Handlers {
// Handler function.
// Returns a 200 OK Response, with no additional headers or response body.
static def simpleHandler(request) {
return new Response(200, 'OK')
}
// Handler functio... | Fix the Host header that Route sends. | Fix the Host header that Route sends.
| Groovy | mit | rackerlabs/deproxy |
a5811df15879e59efd3723bacb3e918c553474b8 | scripts/CreateApp_.groovy | scripts/CreateApp_.groovy | /*
* Copyright 2004-2005 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 ap... | /*
* Copyright 2004-2005 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 ap... | Add USAGE string to create-app command. | Add USAGE string to create-app command.
| Groovy | apache-2.0 | erdi/grails-core,clockworkorange/grails-core,clockworkorange/grails-core,erdi/grails-core,clockworkorange/grails-core,clockworkorange/grails-core,erdi/grails-core,clockworkorange/grails-core |
9638ffa947b2f292eb10cae23f3bab6d220a5022 | JcaptchaGrailsPlugin.groovy | JcaptchaGrailsPlugin.groovy | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | /**
* Simplest. Plugin. Class. Ever.
*
* @author LD <ld@ldaley.com>
*/
class JcaptchaGrailsPlugin {
def title = "Grails JCaptcha Plugin"
def description = 'Makes using JCaptcha within a Grails app simple'
def author = "Luke Daley"
def authorEmail = "ld@ldaley.com"
def documentation = "http://grails.org/plugin/... | Set the version to 1.4.0 | Set the version to 1.4.0
| Groovy | apache-2.0 | candrews/grails-jcaptcha-plugin |
92f9328b078c381f7f1d2bbdc6c607c3b833b6c4 | docker/examples/jobDsl.groovy | docker/examples/jobDsl.groovy | freeStyleJob('__seed-job') {
logRotator {
numToKeep(30)
}
triggers {
scm('* * * * *')
}
wrappers {
timestamps()
}
scm {
git {
remote {
url('https://github.com/unguiculus/job-dsl-sample.git')
name('origin')
... | multibranchPipelineJob('__seed-job') {
branchSources {
github {
repoOwner('unguiculus')
repository('job-dsl-sample')
buildForkPRHead(false)
buildForkPRMerge(true)
buildOriginBranch(true)
buildOriginBranchWithPR(false)
buildO... | Use multi-branch pipeline for seed job | Use multi-branch pipeline for seed job
| Groovy | apache-2.0 | unguiculus/docker-jenkins-bootstrap |
b95bc45ec9106963ec6cc67f7e41545d7677a93f | src/main/groovy/bot/control/BotshOpCommand.groovy | src/main/groovy/bot/control/BotshOpCommand.groovy | package bot.control
import bot.Bot
import bot.comm.Comm
import jline.Completor
import org.codehaus.groovy.tools.shell.*
public class BotshOpCommand extends CommandSupport {
public static final OP_COMMAND_NAME = "op"
public BotshOpCommand(Shell shell){
super(shell, OP_COMMAND_NAME, ":")
}
p... | package bot.control
import bot.Bot
import bot.comm.Comm
import jline.Completor
import org.codehaus.groovy.tools.shell.*
public class BotshOpCommand extends CommandSupport {
public static final OP_COMMAND_NAME = "bot"
public BotshOpCommand(Shell shell){
super(shell, OP_COMMAND_NAME, "!")
}
... | Change botsh op command to "bot" (less annoying than "op") | Change botsh op command to "bot" (less annoying than "op")
| Groovy | apache-2.0 | deanydean/gart,deanydean/bot-core |
1f6e5994bcbca51b268be4caa3162de29def272e | whelktool/scripts/cleanups/2021/09/datakbse-375-suecian.groovy | whelktool/scripts/cleanups/2021/09/datakbse-375-suecian.groovy | String where = """
collection = 'bib' and
(
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAH"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAHF"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAHT"}]'
) and not ... | String where = """
collection = 'bib' and data#>>'{@graph,1,@type}' = 'Electronic' and
(
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAH"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https://libris.kb.se/library/SAHF"}]' or
\tdata#>'{@graph,0,bibliography}' @> '[{"@id": "https:... | Fix a script, it should only affect Electronic. | Fix a script, it should only affect Electronic.
Also, the postgres construct "not .. @> .." does not work well on older
versions of postgres (like 9.6). It gives an "empty" result instead of
the expected 'false'.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
3a2ed4738414f819e1cbef1a7fe86a4805a7fa89 | 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... | class VmBuilder {
void build(String targetVm, String workingDirectory) {
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')
... | Fix vm build execution parameterisation | Fix vm build execution parameterisation
| Groovy | apache-2.0 | webdizz/sbs-gradle |
24cfc698645b21dc574dbdf43d60a7f4e0f7604e | src/main/groovy/com/rapidminer/gradle/ExtensionDependency.groovy | src/main/groovy/com/rapidminer/gradle/ExtensionDependency.groovy | package com.rapidminer.gradle;
/**
* Extension dependency definition
*
* @author Nils Woehler
*
*/
public class ExtensionDependency {
//FIXME remove .release
public static final String DEFAULT_GROUP = 'com.rapidminer.extension.release'
String group = DEFAULT_GROUP
String namespace
String version
}
| package com.rapidminer.gradle;
/**
* Extension dependency definition
*
* @author Nils Woehler
*
*/
public class ExtensionDependency {
public static final String DEFAULT_GROUP = 'com.rapidminer.extension'
String group = DEFAULT_GROUP
String namespace
String version
}
| Change default extension group to 'com.rapidminer.extension' | Change default extension group to 'com.rapidminer.extension'
| Groovy | apache-2.0 | rapidminer/gradle-plugin-rapidminer-extension |
d9f3af0d45fcfb8301e00ff0ce8bcfec3e5ae829 | .test-infra/jenkins/job_PreCommit_Kotlin_Examples.groovy | .test-infra/jenkins/job_PreCommit_Kotlin_Examples.groovy | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Add spark, direct, flink runners as triggers for Kotlin preCommit | [BEAM-14013] Add spark, direct, flink runners as triggers for Kotlin preCommit
| Groovy | apache-2.0 | apache/beam,apache/beam,apache/beam,lukecwik/incubator-beam,lukecwik/incubator-beam,lukecwik/incubator-beam,apache/beam,apache/beam,chamikaramj/beam,apache/beam,chamikaramj/beam,chamikaramj/beam,chamikaramj/beam,chamikaramj/beam,chamikaramj/beam,lukecwik/incubator-beam,apache/beam,apache/beam,lukecwik/incubator-beam,lu... |
21d3789fdea3de0a7d68dde3cf5ce52c5cb197d5 | 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 ... | /*
* 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 ... | Update values of encodingLevels to change: | Update values of encodingLevels to change:
Add marc:SystemIdentifiedMarcErrorInABatchloadedRecordLocal (e)
Remove marc:CoreLevel (4)
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
79b04a7d9ccf8021d21f035ed3e331edaf65ad6e | jenkins/basic-docker-build.groovy | jenkins/basic-docker-build.groovy | node {
def built_img = ''
def taggedImageName = ''
stage('Checkout git repo') {
git branch: 'master', url: params.git_repo
}
stage('Build Docker image') {
built_img = docker.build(params.docker_repository + ":${env.BUILD_NUMBER}", '.')
}
stage('Push Docker image to Azure Containe... | node {
def built_img = ''
def taggedImageName = ''
stage('Checkout git repo') {
git branch: 'master', url: params.git_repo
}
stage('Build Docker image') {
built_img = docker.build(params.docker_repository + ":${env.BUILD_NUMBER}", '.')
}
stage('Push Docker image to Azure Containe... | Update environment name to TAGGED_IMAGE_NAME | Update environment name to TAGGED_IMAGE_NAME
| Groovy | mit | TylerLu/hello-world,TylerLu/hello-world,TylerLu/hello-world |
1287d9980fbf3dcf77b86201d6967cd0730a6d12 | src/whelks-core/src/main/groovy/whelks/Converters.groovy | src/whelks-core/src/main/groovy/whelks/Converters.groovy | package se.kb.libris.conch.converter
import se.kb.libris.util.marc.Controlfield
import se.kb.libris.util.marc.MarcRecord
import se.kb.libris.util.marc.io.Iso2709MarcRecordReader
class MarcJSONConverter {
static String toJSONString(MarcRecord record) {
def builder = new groovy.json.JsonBuilder()
b... | package se.kb.libris.conch.converter
import se.kb.libris.util.marc.Controlfield
import se.kb.libris.util.marc.MarcRecord
import se.kb.libris.util.marc.io.Iso2709MarcRecordReader
/**
*
* A mechanical transcription of {@link MarcRecord}s into JSON. The result is
* compliant with the <a href="http://dilettantes.code4... | Make the result JSON compliant with MARC-in-JSON | Make the result JSON compliant with MARC-in-JSON
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.