These programs are safe to refactor:
object p1 {
  val x = 1 + 123
  val y = 1 + 123
}| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| def label = "mypod-${UUID.randomUUID().toString()}" | |
| podTemplate(label: label, yaml: """ | |
| spec: | |
| containers: | |
| - name: mvn | |
| image: maven:3.3.9-jdk-8 | 
| // for multiple requests | |
| let isRefreshing = false; | |
| let failedQueue = []; | |
| const processQueue = (error, token = null) => { | |
| failedQueue.forEach(prom => { | |
| if (error) { | |
| prom.reject(error); | |
| } else { | |
| prom.resolve(token); | 
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "time" | |
| ) | |
| func main() { | |
| queue := NewQueue("amqp://guest:guest@localhost:5672/", "hello") | 
| https://www.api.bnk48.com/api/social-feeds?page=1&max=1000000000000000&limit=19&username= | 
| --- | |
| - hosts: all | |
| connection: local | |
| tasks: | |
| - name: Install Nginx | |
| apt: pkg=nginx state=installed update_cache=true | |
| notify: | |
| - Start Nginx | |
| handlers: | 
| --- | |
| - hosts: all | |
| connection: local | |
| tasks: | |
| - debug: msg="HelloWorld!" | 
| [localhost] | |
| 127.0.0.1 | |
| [webservers] | |
| someserver.foo.bar ansible_ssh_host=1.1.1.1 | 
| --- | |
| - hosts: webservers | |
| vars: | |
| http_port: 80 | |
| max_clients: 200 | |
| remote_user: root | |
| tasks: | |
| - name: ensure apache is at the latest version | |
| yum: name=httpd state=latest | |
| - name: write the apache config file |