This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get the description of a staging field value. This will work for any field with a lookup and will return the first | |
* description field from the matching row. It will return null if there is not a match on schema, field, or table row. | |
*/ | |
public static String getFieldValueDescription(StagingSchema schema, String field, String value) { | |
if (schema == null) | |
return null; | |
// get the correct staging module | |
Staging staging; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
/** | |
* Stretch project | |
*/ | |
public class Stretch { | |
private static char OPEN = 'O'; | |
private static char BLOCKED = 'X'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.internal.jvm.Jvm | |
plugins { | |
id 'java' | |
id 'checkstyle' | |
id 'findbugs' | |
id 'com.bmuschko.nexus' version '2.1.1' | |
} | |
group = 'com.imsweb' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import org.javers.core.Javers; | |
import org.javers.core.JaversBuilder; | |
import org.javers.core.MappingStyle; | |
import org.javers.core.changelog.SimpleTextChangeLog; | |
import org.javers.core.diff.Change; | |
import org.javers.core.metamodel.clazz.EntityDefinition; | |
import org.javers.core.metamodel.object.InstanceIdDTO; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import org.javers.core.Javers; | |
import org.javers.core.JaversBuilder; | |
import org.javers.core.MappingStyle; | |
import org.javers.core.changelog.SimpleTextChangeLog; | |
import org.javers.core.diff.Change; | |
import org.javers.core.metamodel.object.InstanceIdDTO; | |
import org.junit.Test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Comparator; | |
/** | |
* A Comparator for version strings. Version strings are assumed to be only numbers and periods. Here are | |
* some examples: | |
* <p/> | |
* 1.0 | |
* 3.4.1 | |
* 123.43.123.1 | |
* <p/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var appUrl = 'https://api.seer.cancer.gov/rest/'; | |
app.use('/api', function(req, res) { | |
url = apiUrl + req.url; | |
req.pipe(request(url)).pipe(res); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// configure nodemon | |
nodemon: { | |
dev: { | |
script: 'server.js' | |
} | |
} |