id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
43,500
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java
ValidationDataRepository.findByParentId
public List<ValidationData> findByParentId(Long id) { return this.datas.stream().filter(d -> d.getParentId() != null && d.getParentId().equals(id)).collect(Collectors.toList()); }
java
public List<ValidationData> findByParentId(Long id) { return this.datas.stream().filter(d -> d.getParentId() != null && d.getParentId().equals(id)).collect(Collectors.toList()); }
[ "public", "List", "<", "ValidationData", ">", "findByParentId", "(", "Long", "id", ")", "{", "return", "this", ".", "datas", ".", "stream", "(", ")", ".", "filter", "(", "d", "->", "d", ".", "getParentId", "(", ")", "!=", "null", "&&", "d", ".", "g...
Find by parent id list. @param id the id @return the list
[ "Find", "by", "parent", "id", "list", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java#L225-L227
43,501
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java
ValidationDataRepository.findByMethodAndUrlAndNameAndParentId
public ValidationData findByMethodAndUrlAndNameAndParentId(String method, String url, String name, Long parentId) { if (parentId == null) { return this.findByMethodAndUrlAndName(method, url, name).stream().filter(d -> d.getParentId() == null).findAny().orElse(null); } return this.fin...
java
public ValidationData findByMethodAndUrlAndNameAndParentId(String method, String url, String name, Long parentId) { if (parentId == null) { return this.findByMethodAndUrlAndName(method, url, name).stream().filter(d -> d.getParentId() == null).findAny().orElse(null); } return this.fin...
[ "public", "ValidationData", "findByMethodAndUrlAndNameAndParentId", "(", "String", "method", ",", "String", "url", ",", "String", "name", ",", "Long", "parentId", ")", "{", "if", "(", "parentId", "==", "null", ")", "{", "return", "this", ".", "findByMethodAndUrl...
Find by method and url and name and parent id validation data. @param method the method @param url the url @param name the name @param parentId the parent id @return the validation data
[ "Find", "by", "method", "and", "url", "and", "name", "and", "parent", "id", "validation", "data", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java#L239-L246
43,502
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java
ValidationDataRepository.saveAll
public List<ValidationData> saveAll(List<ValidationData> pDatas) { pDatas.forEach(this::save); return pDatas; }
java
public List<ValidationData> saveAll(List<ValidationData> pDatas) { pDatas.forEach(this::save); return pDatas; }
[ "public", "List", "<", "ValidationData", ">", "saveAll", "(", "List", "<", "ValidationData", ">", "pDatas", ")", "{", "pDatas", ".", "forEach", "(", "this", "::", "save", ")", ";", "return", "pDatas", ";", "}" ]
Save all list. @param pDatas the p datas @return the list
[ "Save", "all", "list", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java#L255-L258
43,503
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java
ValidationDataRepository.save
public ValidationData save(ValidationData data) { if (data.getParamType() == null || data.getUrl() == null || data.getMethod() == null || data.getType() == null || data.getTypeClass() == null) { throw new ValidationLibException("mandatory field is null ", HttpStatus.BAD_REQUEST); } ...
java
public ValidationData save(ValidationData data) { if (data.getParamType() == null || data.getUrl() == null || data.getMethod() == null || data.getType() == null || data.getTypeClass() == null) { throw new ValidationLibException("mandatory field is null ", HttpStatus.BAD_REQUEST); } ...
[ "public", "ValidationData", "save", "(", "ValidationData", "data", ")", "{", "if", "(", "data", ".", "getParamType", "(", ")", "==", "null", "||", "data", ".", "getUrl", "(", ")", "==", "null", "||", "data", ".", "getMethod", "(", ")", "==", "null", ...
Save validation data. @param data the data @return the validation data
[ "Save", "validation", "data", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/ValidationDataRepository.java#L302-L315
43,504
reinert/requestor
requestor/core/requestor-api/src/main/java/io/reinert/requestor/uri/UriBuilder.java
UriBuilder.fromPath
public static UriBuilder fromPath(String path) { if (path == null) throw new IllegalArgumentException("Path cannot be null"); final UriBuilder builder = newInstance(); builder.path(path); return builder; }
java
public static UriBuilder fromPath(String path) { if (path == null) throw new IllegalArgumentException("Path cannot be null"); final UriBuilder builder = newInstance(); builder.path(path); return builder; }
[ "public", "static", "UriBuilder", "fromPath", "(", "String", "path", ")", "{", "if", "(", "path", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"Path cannot be null\"", ")", ";", "final", "UriBuilder", "builder", "=", "newInstance", "(", ...
Create a new instance representing a relative URI initialized from a URI path. @param path a URI path that will be used to initialize the UriBuilder, may contain URI template parameters. @return a new UriBuilder @throws IllegalArgumentException if path is null
[ "Create", "a", "new", "instance", "representing", "a", "relative", "URI", "initialized", "from", "a", "URI", "path", "." ]
40163a75cd17815d5089935d0dd97b8d652ad6d4
https://github.com/reinert/requestor/blob/40163a75cd17815d5089935d0dd97b8d652ad6d4/requestor/core/requestor-api/src/main/java/io/reinert/requestor/uri/UriBuilder.java#L39-L46
43,505
lightblue-platform/lightblue-client
core/src/main/java/com/redhat/lightblue/client/util/JSON.java
JSON.toJson
public static String toJson(Object obj) { StringWriter sw = new StringWriter(); ObjectMapper mapper = getDefaultObjectMapper(); try { JsonGenerator jg = mapper.getFactory().createGenerator(sw); mapper.writeValue(jg, obj); } catch (JsonMappingException e) { ...
java
public static String toJson(Object obj) { StringWriter sw = new StringWriter(); ObjectMapper mapper = getDefaultObjectMapper(); try { JsonGenerator jg = mapper.getFactory().createGenerator(sw); mapper.writeValue(jg, obj); } catch (JsonMappingException e) { ...
[ "public", "static", "String", "toJson", "(", "Object", "obj", ")", "{", "StringWriter", "sw", "=", "new", "StringWriter", "(", ")", ";", "ObjectMapper", "mapper", "=", "getDefaultObjectMapper", "(", ")", ";", "try", "{", "JsonGenerator", "jg", "=", "mapper",...
Convert object to json. If object contains fields of type date, they will be converted to strings using lightblue date format. @param obj @return
[ "Convert", "object", "to", "json", ".", "If", "object", "contains", "fields", "of", "type", "date", "they", "will", "be", "converted", "to", "strings", "using", "lightblue", "date", "format", "." ]
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/core/src/main/java/com/redhat/lightblue/client/util/JSON.java#L72-L86
43,506
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java
HashIntSet.remove
@Override public boolean remove(int element) { if (element < 0) { throw new IndexOutOfBoundsException("element < 0: " + element); } int index = findElementOrEmpty(element); if (index < 0) { return false; } cells[index] = REMOVED; modCount++; size--; ret...
java
@Override public boolean remove(int element) { if (element < 0) { throw new IndexOutOfBoundsException("element < 0: " + element); } int index = findElementOrEmpty(element); if (index < 0) { return false; } cells[index] = REMOVED; modCount++; size--; ret...
[ "@", "Override", "public", "boolean", "remove", "(", "int", "element", ")", "{", "if", "(", "element", "<", "0", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", "\"element < 0: \"", "+", "element", ")", ";", "}", "int", "index", "=", "findEleme...
Removes the specified element from the set.
[ "Removes", "the", "specified", "element", "from", "the", "set", "." ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java#L297-L312
43,507
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java
HashIntSet.clear
@Override public void clear() { size = 0; Arrays.fill(cells, EMPTY); freecells = cells.length; modCount++; }
java
@Override public void clear() { size = 0; Arrays.fill(cells, EMPTY); freecells = cells.length; modCount++; }
[ "@", "Override", "public", "void", "clear", "(", ")", "{", "size", "=", "0", ";", "Arrays", ".", "fill", "(", "cells", ",", "EMPTY", ")", ";", "freecells", "=", "cells", ".", "length", ";", "modCount", "++", ";", "}" ]
Removes all of the elements from this set.
[ "Removes", "all", "of", "the", "elements", "from", "this", "set", "." ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java#L317-L324
43,508
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java
HashIntSet.rehash
protected void rehash() { // do we need to increase capacity, or are there so many // deleted objects hanging around that rehashing to the same // size is sufficient? if 5% (arbitrarily chosen number) of // cells can be freed up by a rehash, we do it. int gargagecells = cells.length - (siz...
java
protected void rehash() { // do we need to increase capacity, or are there so many // deleted objects hanging around that rehashing to the same // size is sufficient? if 5% (arbitrarily chosen number) of // cells can be freed up by a rehash, we do it. int gargagecells = cells.length - (siz...
[ "protected", "void", "rehash", "(", ")", "{", "// do we need to increase capacity, or are there so many\r", "// deleted objects hanging around that rehashing to the same\r", "// size is sufficient? if 5% (arbitrarily chosen number) of\r", "// cells can be freed up by a rehash, we do it.\r", "int...
Figures out correct size for rehashed set, then does the rehash.
[ "Figures", "out", "correct", "size", "for", "rehashed", "set", "then", "does", "the", "rehash", "." ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java#L329-L346
43,509
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java
HashIntSet.rehash
protected void rehash(int newCapacity) { HashIntSet rehashed = new HashIntSet(newCapacity); @SuppressWarnings("hiding") int[] cells = rehashed.cells; for (int element : this.cells) { if (element < 0) // removed or empty { continue; } // add the elemen...
java
protected void rehash(int newCapacity) { HashIntSet rehashed = new HashIntSet(newCapacity); @SuppressWarnings("hiding") int[] cells = rehashed.cells; for (int element : this.cells) { if (element < 0) // removed or empty { continue; } // add the elemen...
[ "protected", "void", "rehash", "(", "int", "newCapacity", ")", "{", "HashIntSet", "rehashed", "=", "new", "HashIntSet", "(", "newCapacity", ")", ";", "@", "SuppressWarnings", "(", "\"hiding\"", ")", "int", "[", "]", "cells", "=", "rehashed", ".", "cells", ...
Rehashes to a bigger size.
[ "Rehashes", "to", "a", "bigger", "size", "." ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/intset/HashIntSet.java#L351-L369
43,510
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/helper/CheckPointHelper.java
CheckPointHelper.replaceExceptionCallback
public CheckPointHelper replaceExceptionCallback(BasicCheckRule checkRule, ValidationInvalidCallback cb) { this.msgChecker.replaceCallback(checkRule, cb); return this; }
java
public CheckPointHelper replaceExceptionCallback(BasicCheckRule checkRule, ValidationInvalidCallback cb) { this.msgChecker.replaceCallback(checkRule, cb); return this; }
[ "public", "CheckPointHelper", "replaceExceptionCallback", "(", "BasicCheckRule", "checkRule", ",", "ValidationInvalidCallback", "cb", ")", "{", "this", ".", "msgChecker", ".", "replaceCallback", "(", "checkRule", ",", "cb", ")", ";", "return", "this", ";", "}" ]
Replace the callback to be used basic exception. @param checkRule basic rule type ex,, BasicCheckRule.Mandatory @param cb callback class with implement ValidationInvalidCallback @return CheckPointHeler check point helper
[ "Replace", "the", "callback", "to", "be", "used", "basic", "exception", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/helper/CheckPointHelper.java#L49-L52
43,511
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/helper/CheckPointHelper.java
CheckPointHelper.addValidationRule
public CheckPointHelper addValidationRule(String ruleName, StandardValueType standardValueType, BaseValidationCheck validationCheck, AssistType assistType) { ValidationRule rule = new ValidationRule(ruleName, standardValueType, validationCheck); if (assistType == null) { assistType = AssistT...
java
public CheckPointHelper addValidationRule(String ruleName, StandardValueType standardValueType, BaseValidationCheck validationCheck, AssistType assistType) { ValidationRule rule = new ValidationRule(ruleName, standardValueType, validationCheck); if (assistType == null) { assistType = AssistT...
[ "public", "CheckPointHelper", "addValidationRule", "(", "String", "ruleName", ",", "StandardValueType", "standardValueType", ",", "BaseValidationCheck", "validationCheck", ",", "AssistType", "assistType", ")", "{", "ValidationRule", "rule", "=", "new", "ValidationRule", "...
Add the fresh user rule @param ruleName use rule name - must uniqueue @param standardValueType rule check standardvalue type @param validationCheck rule check class with extends BaseValidationCheck and overide replace or check method and exception method @param assistType input field type @return Che...
[ "Add", "the", "fresh", "user", "rule" ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/helper/CheckPointHelper.java#L63-L71
43,512
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
MapCore/src/main/java/org/wwarn/mapcore/client/utils/Track.java
Track.track
private static void track(String historyToken) { if (historyToken == null) { historyToken = "historyToken_null"; } historyToken = URL.encode("/WWARN-GWT-Analytics/V1.0/" + historyToken); boolean hasErrored = false; try{ trackGoogleAnalytics(historyToken)...
java
private static void track(String historyToken) { if (historyToken == null) { historyToken = "historyToken_null"; } historyToken = URL.encode("/WWARN-GWT-Analytics/V1.0/" + historyToken); boolean hasErrored = false; try{ trackGoogleAnalytics(historyToken)...
[ "private", "static", "void", "track", "(", "String", "historyToken", ")", "{", "if", "(", "historyToken", "==", "null", ")", "{", "historyToken", "=", "\"historyToken_null\"", ";", "}", "historyToken", "=", "URL", ".", "encode", "(", "\"/WWARN-GWT-Analytics/V1.0...
track an event @param historyToken
[ "track", "an", "event" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/MapCore/src/main/java/org/wwarn/mapcore/client/utils/Track.java#L74-L89
43,513
lightblue-platform/lightblue-client
core/src/main/java/com/redhat/lightblue/client/Projection.java
Projection.addToArray
private void addToArray(JsonNode j) { if (j instanceof ArrayNode) { for (Iterator<JsonNode> itr = ((ArrayNode) j).elements(); itr.hasNext();) { addToArray(itr.next()); } } else { ((ArrayNode) node).add(j); } }
java
private void addToArray(JsonNode j) { if (j instanceof ArrayNode) { for (Iterator<JsonNode> itr = ((ArrayNode) j).elements(); itr.hasNext();) { addToArray(itr.next()); } } else { ((ArrayNode) node).add(j); } }
[ "private", "void", "addToArray", "(", "JsonNode", "j", ")", "{", "if", "(", "j", "instanceof", "ArrayNode", ")", "{", "for", "(", "Iterator", "<", "JsonNode", ">", "itr", "=", "(", "(", "ArrayNode", ")", "j", ")", ".", "elements", "(", ")", ";", "i...
Adds p into this array projection
[ "Adds", "p", "into", "this", "array", "projection" ]
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/core/src/main/java/com/redhat/lightblue/client/Projection.java#L211-L219
43,514
OpenCompare/OpenCompare
org.opencompare/api-java/src/main/java/org/opencompare/api/java/PCMMetadata.java
PCMMetadata.getFeaturePosition
public int getFeaturePosition(AbstractFeature feature) { AbstractFeature result = feature; if (!featurePositions.containsKey(feature)) { if (feature instanceof FeatureGroup) { FeatureGroup featureGroup = (FeatureGroup) feature; List<Feature> features = feature...
java
public int getFeaturePosition(AbstractFeature feature) { AbstractFeature result = feature; if (!featurePositions.containsKey(feature)) { if (feature instanceof FeatureGroup) { FeatureGroup featureGroup = (FeatureGroup) feature; List<Feature> features = feature...
[ "public", "int", "getFeaturePosition", "(", "AbstractFeature", "feature", ")", "{", "AbstractFeature", "result", "=", "feature", ";", "if", "(", "!", "featurePositions", ".", "containsKey", "(", "feature", ")", ")", "{", "if", "(", "feature", "instanceof", "Fe...
Returns the absolute position of the feature or create if not exists @param feature @return the absolution position of 'feature' or -1 if it is not specified
[ "Returns", "the", "absolute", "position", "of", "the", "feature", "or", "create", "if", "not", "exists" ]
6cd776466b375cb8ecca08fcd94e573d65e20b14
https://github.com/OpenCompare/OpenCompare/blob/6cd776466b375cb8ecca08fcd94e573d65e20b14/org.opencompare/api-java/src/main/java/org/opencompare/api/java/PCMMetadata.java#L68-L86
43,515
OpenCompare/OpenCompare
org.opencompare/api-java/src/main/java/org/opencompare/api/java/PCMMetadata.java
PCMMetadata.getSortedProducts
public List<Product> getSortedProducts() { ArrayList<Product> result = new ArrayList<>(pcm.getProducts()); Collections.sort(result, new Comparator<Product>() { @Override public int compare(Product o1, Product o2) { Integer op1 = getProductPosition(o1); ...
java
public List<Product> getSortedProducts() { ArrayList<Product> result = new ArrayList<>(pcm.getProducts()); Collections.sort(result, new Comparator<Product>() { @Override public int compare(Product o1, Product o2) { Integer op1 = getProductPosition(o1); ...
[ "public", "List", "<", "Product", ">", "getSortedProducts", "(", ")", "{", "ArrayList", "<", "Product", ">", "result", "=", "new", "ArrayList", "<>", "(", "pcm", ".", "getProducts", "(", ")", ")", ";", "Collections", ".", "sort", "(", "result", ",", "n...
Return the sorted products concordingly with metadata @return an ordered list of products
[ "Return", "the", "sorted", "products", "concordingly", "with", "metadata" ]
6cd776466b375cb8ecca08fcd94e573d65e20b14
https://github.com/OpenCompare/OpenCompare/blob/6cd776466b375cb8ecca08fcd94e573d65e20b14/org.opencompare/api-java/src/main/java/org/opencompare/api/java/PCMMetadata.java#L101-L113
43,516
OpenCompare/OpenCompare
org.opencompare/api-java/src/main/java/org/opencompare/api/java/PCMMetadata.java
PCMMetadata.getSortedFeatures
public List<Feature> getSortedFeatures() { ArrayList<Feature> result = new ArrayList<>(pcm.getConcreteFeatures()); Collections.sort(result, new Comparator<Feature>() { @Override public int compare(Feature f1, Feature f2) { Integer fp1 = getFeaturePosition(f1); ...
java
public List<Feature> getSortedFeatures() { ArrayList<Feature> result = new ArrayList<>(pcm.getConcreteFeatures()); Collections.sort(result, new Comparator<Feature>() { @Override public int compare(Feature f1, Feature f2) { Integer fp1 = getFeaturePosition(f1); ...
[ "public", "List", "<", "Feature", ">", "getSortedFeatures", "(", ")", "{", "ArrayList", "<", "Feature", ">", "result", "=", "new", "ArrayList", "<>", "(", "pcm", ".", "getConcreteFeatures", "(", ")", ")", ";", "Collections", ".", "sort", "(", "result", "...
Return the sorted features concordingly with metadata @return an ordered list of features
[ "Return", "the", "sorted", "features", "concordingly", "with", "metadata" ]
6cd776466b375cb8ecca08fcd94e573d65e20b14
https://github.com/OpenCompare/OpenCompare/blob/6cd776466b375cb8ecca08fcd94e573d65e20b14/org.opencompare/api-java/src/main/java/org/opencompare/api/java/PCMMetadata.java#L119-L130
43,517
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/facet/FacetBuilder.java
FacetBuilder.setItemsList
public FacetBuilder setItemsList(Map<String, String> items) { ArrayList<FacetWidgetItem> facetWidgetItems = new ArrayList<FacetWidgetItem>(); for (String key : items.keySet()){ String label = items.get(key); FacetWidgetItem facetWidgetItem = new FacetWidgetItem(key, label); ...
java
public FacetBuilder setItemsList(Map<String, String> items) { ArrayList<FacetWidgetItem> facetWidgetItems = new ArrayList<FacetWidgetItem>(); for (String key : items.keySet()){ String label = items.get(key); FacetWidgetItem facetWidgetItem = new FacetWidgetItem(key, label); ...
[ "public", "FacetBuilder", "setItemsList", "(", "Map", "<", "String", ",", "String", ">", "items", ")", "{", "ArrayList", "<", "FacetWidgetItem", ">", "facetWidgetItems", "=", "new", "ArrayList", "<", "FacetWidgetItem", ">", "(", ")", ";", "for", "(", "String...
Takes a map of value to labels and the unique name of the list @param items map of value to labels @return a Builder instance to allow chaining
[ "Takes", "a", "map", "of", "value", "to", "labels", "and", "the", "unique", "name", "of", "the", "list" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/facet/FacetBuilder.java#L113-L123
43,518
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java
ValidationRule.updateRuleBasicInfo
public void updateRuleBasicInfo(ValidationRule rule) { this.orderIdx = rule.orderIdx; this.parentDependency = rule.parentDependency; this.standardValueType = rule.standardValueType; this.validationCheck = rule.validationCheck; this.overlapBanRuleName = rule.overlapBanRuleName; ...
java
public void updateRuleBasicInfo(ValidationRule rule) { this.orderIdx = rule.orderIdx; this.parentDependency = rule.parentDependency; this.standardValueType = rule.standardValueType; this.validationCheck = rule.validationCheck; this.overlapBanRuleName = rule.overlapBanRuleName; ...
[ "public", "void", "updateRuleBasicInfo", "(", "ValidationRule", "rule", ")", "{", "this", ".", "orderIdx", "=", "rule", ".", "orderIdx", ";", "this", ".", "parentDependency", "=", "rule", ".", "parentDependency", ";", "this", ".", "standardValueType", "=", "ru...
Update rule basic info. @param rule the rule
[ "Update", "rule", "basic", "info", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java#L66-L73
43,519
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java
ValidationRule.isUse
public boolean isUse() { if (!this.use) { return this.use; } return !(this.standardValueType != null && !this.standardValueType.equals(StandardValueType.NONE) && this.standardValue == null); }
java
public boolean isUse() { if (!this.use) { return this.use; } return !(this.standardValueType != null && !this.standardValueType.equals(StandardValueType.NONE) && this.standardValue == null); }
[ "public", "boolean", "isUse", "(", ")", "{", "if", "(", "!", "this", ".", "use", ")", "{", "return", "this", ".", "use", ";", "}", "return", "!", "(", "this", ".", "standardValueType", "!=", "null", "&&", "!", "this", ".", "standardValueType", ".", ...
Is use boolean. @return the boolean
[ "Is", "use", "boolean", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java#L80-L86
43,520
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java
ValidationRule.isUsedMyRule
public boolean isUsedMyRule(ValidationData item) { List<ValidationRule> usedRules = item.getValidationRules(); if (usedRules == null || usedRules.isEmpty()) { return false; } return usedRules.stream().filter(ur -> ur.getRuleName().equals(this.ruleName) && ur.isUse()).findAny(...
java
public boolean isUsedMyRule(ValidationData item) { List<ValidationRule> usedRules = item.getValidationRules(); if (usedRules == null || usedRules.isEmpty()) { return false; } return usedRules.stream().filter(ur -> ur.getRuleName().equals(this.ruleName) && ur.isUse()).findAny(...
[ "public", "boolean", "isUsedMyRule", "(", "ValidationData", "item", ")", "{", "List", "<", "ValidationRule", ">", "usedRules", "=", "item", ".", "getValidationRules", "(", ")", ";", "if", "(", "usedRules", "==", "null", "||", "usedRules", ".", "isEmpty", "("...
Is used my rule boolean. @param item the item @return the boolean
[ "Is", "used", "my", "rule", "boolean", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java#L152-L158
43,521
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java
ValidationRule.filter
public List<ValidationData> filter(List<ValidationData> allList) { return allList.stream().filter(vd -> this.isUsedMyRule(vd)).collect(Collectors.toList()); }
java
public List<ValidationData> filter(List<ValidationData> allList) { return allList.stream().filter(vd -> this.isUsedMyRule(vd)).collect(Collectors.toList()); }
[ "public", "List", "<", "ValidationData", ">", "filter", "(", "List", "<", "ValidationData", ">", "allList", ")", "{", "return", "allList", ".", "stream", "(", ")", ".", "filter", "(", "vd", "->", "this", ".", "isUsedMyRule", "(", "vd", ")", ")", ".", ...
Filter list. @param allList the all list @return the list
[ "Filter", "list", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/component/validationRule/rule/ValidationRule.java#L166-L168
43,522
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/msg/MethodSyncor.java
MethodSyncor.updateMethodKey
public void updateMethodKey() { Arrays.stream(ParamType.values()).forEach(paramType -> this.syncMethodKey(paramType)); this.validationDataRepository.flush(); this.validationStore.refresh(); log.info("[METHOD_KEY_SYNC] Complete"); }
java
public void updateMethodKey() { Arrays.stream(ParamType.values()).forEach(paramType -> this.syncMethodKey(paramType)); this.validationDataRepository.flush(); this.validationStore.refresh(); log.info("[METHOD_KEY_SYNC] Complete"); }
[ "public", "void", "updateMethodKey", "(", ")", "{", "Arrays", ".", "stream", "(", "ParamType", ".", "values", "(", ")", ")", ".", "forEach", "(", "paramType", "->", "this", ".", "syncMethodKey", "(", "paramType", ")", ")", ";", "this", ".", "validationDa...
Update method key.
[ "Update", "method", "key", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/msg/MethodSyncor.java#L46-L52
43,523
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/facet/FacetListBoxWidget.java
FacetListBoxWidget.setSelected
public void setSelected(String s) { for (int i = 0; i < listBox.getItemCount(); i++) { if (listBox.getItemText(i).equals(s)) listBox.setSelectedIndex(i); } }
java
public void setSelected(String s) { for (int i = 0; i < listBox.getItemCount(); i++) { if (listBox.getItemText(i).equals(s)) listBox.setSelectedIndex(i); } }
[ "public", "void", "setSelected", "(", "String", "s", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "listBox", ".", "getItemCount", "(", ")", ";", "i", "++", ")", "{", "if", "(", "listBox", ".", "getItemText", "(", "i", ")", ".", "e...
Given a string will find an item in the list box with matching text and select it.
[ "Given", "a", "string", "will", "find", "an", "item", "in", "the", "list", "box", "with", "matching", "text", "and", "select", "it", "." ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/facet/FacetListBoxWidget.java#L319-L326
43,524
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/view/template/TemplateBasedViewBuilder.java
TemplateBasedViewBuilder.draw
public Panel draw(TemplateViewNodesConfig config, RecordList recordList){ // setup basic layout // has a reference to builders from plot to do rest of the plots final TemplateViewNodesConfig.TemplateNode rootTemplateNode = config.getRootTemplateNode(); if(rootTemplateNode == null){ ...
java
public Panel draw(TemplateViewNodesConfig config, RecordList recordList){ // setup basic layout // has a reference to builders from plot to do rest of the plots final TemplateViewNodesConfig.TemplateNode rootTemplateNode = config.getRootTemplateNode(); if(rootTemplateNode == null){ ...
[ "public", "Panel", "draw", "(", "TemplateViewNodesConfig", "config", ",", "RecordList", "recordList", ")", "{", "// setup basic layout", "// has a reference to builders from plot to do rest of the plots", "final", "TemplateViewNodesConfig", ".", "TemplateNode", "rootTemplateNode", ...
call this with config to initialize the view
[ "call", "this", "with", "config", "to", "initialize", "the", "view" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/view/template/TemplateBasedViewBuilder.java#L75-L84
43,525
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/view/template/TemplateBasedViewBuilder.java
TemplateBasedViewBuilder.fixedWidthAndHeightPanel
private VerticalPanel fixedWidthAndHeightPanel() { final VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setHeight("300px"); verticalPanel.setWidth("500px"); return verticalPanel; }
java
private VerticalPanel fixedWidthAndHeightPanel() { final VerticalPanel verticalPanel = new VerticalPanel(); verticalPanel.setHeight("300px"); verticalPanel.setWidth("500px"); return verticalPanel; }
[ "private", "VerticalPanel", "fixedWidthAndHeightPanel", "(", ")", "{", "final", "VerticalPanel", "verticalPanel", "=", "new", "VerticalPanel", "(", ")", ";", "verticalPanel", ".", "setHeight", "(", "\"300px\"", ")", ";", "verticalPanel", ".", "setWidth", "(", "\"5...
Need fix width and height to ensure info widget panel is drawn correctly @return
[ "Need", "fix", "width", "and", "height", "to", "ensure", "info", "widget", "panel", "is", "drawn", "correctly" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/view/template/TemplateBasedViewBuilder.java#L90-L95
43,526
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/server/core/FileChangeMonitor.java
FileChangeMonitor.initNewThread
protected void initNewThread(Path monitoredFile, CountDownLatch start, CountDownLatch stop) throws IOException { final Runnable watcher = initializeWatcherWithDirectory(monitoredFile, start, stop); final Thread thread = new Thread(watcher); thread.setDaemon(false); thread.start(); }
java
protected void initNewThread(Path monitoredFile, CountDownLatch start, CountDownLatch stop) throws IOException { final Runnable watcher = initializeWatcherWithDirectory(monitoredFile, start, stop); final Thread thread = new Thread(watcher); thread.setDaemon(false); thread.start(); }
[ "protected", "void", "initNewThread", "(", "Path", "monitoredFile", ",", "CountDownLatch", "start", ",", "CountDownLatch", "stop", ")", "throws", "IOException", "{", "final", "Runnable", "watcher", "=", "initializeWatcherWithDirectory", "(", "monitoredFile", ",", "sta...
Added countdown latches as a synchronization aid to allow better unit testing Allows one or more threads to wait until a set of operations being performed in other threads completes, @param monitoredFile @param start calling start.await() waits till file listner is active and ready @param stop calling stop.await() allo...
[ "Added", "countdown", "latches", "as", "a", "synchronization", "aid", "to", "allow", "better", "unit", "testing", "Allows", "one", "or", "more", "threads", "to", "wait", "until", "a", "set", "of", "operations", "being", "performed", "in", "other", "threads", ...
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/server/core/FileChangeMonitor.java#L101-L106
43,527
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/server/core/FileChangeMonitor.java
FileChangeMonitor.initSynchronous
public void initSynchronous(Path monitoredFile) throws IOException { final Runnable watcher = initializeWatcherWithDirectory(monitoredFile, new CountDownLatch(1), new CountDownLatch(1)); watcher.run(); }
java
public void initSynchronous(Path monitoredFile) throws IOException { final Runnable watcher = initializeWatcherWithDirectory(monitoredFile, new CountDownLatch(1), new CountDownLatch(1)); watcher.run(); }
[ "public", "void", "initSynchronous", "(", "Path", "monitoredFile", ")", "throws", "IOException", "{", "final", "Runnable", "watcher", "=", "initializeWatcherWithDirectory", "(", "monitoredFile", ",", "new", "CountDownLatch", "(", "1", ")", ",", "new", "CountDownLatc...
A blocking method to start begin the monitoring of a directory, only exists on thread interrupt @param monitoredFile @throws IOException
[ "A", "blocking", "method", "to", "start", "begin", "the", "monitoring", "of", "a", "directory", "only", "exists", "on", "thread", "interrupt" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/server/core/FileChangeMonitor.java#L113-L116
43,528
lightblue-platform/lightblue-client
hystrix/src/main/java/com/redhat/lightblue/client/hystrix/graphite/ServoGraphiteSetup.java
ServoGraphiteSetup.registerGraphiteMetricObserver
protected static void registerGraphiteMetricObserver(List<MetricObserver> observers, String prefix, String host, String port) { // verify at least hostname is set, else cannot configure this observer if (null == host || host.trim().isEmpty()) { LOGGER.info("GraphiteMetricObserver not configu...
java
protected static void registerGraphiteMetricObserver(List<MetricObserver> observers, String prefix, String host, String port) { // verify at least hostname is set, else cannot configure this observer if (null == host || host.trim().isEmpty()) { LOGGER.info("GraphiteMetricObserver not configu...
[ "protected", "static", "void", "registerGraphiteMetricObserver", "(", "List", "<", "MetricObserver", ">", "observers", ",", "String", "prefix", ",", "String", "host", ",", "String", "port", ")", "{", "// verify at least hostname is set, else cannot configure this observer",...
If there is sufficient configuration, register a Graphite observer to publish metrics. Requires at a minimum a host. Optionally can set prefix as well as port. The prefix defaults to the host and port defaults to '2004'. @param observers the list of observers to add any new observer to @param prefix the graphite prefi...
[ "If", "there", "is", "sufficient", "configuration", "register", "a", "Graphite", "observer", "to", "publish", "metrics", ".", "Requires", "at", "a", "minimum", "a", "host", ".", "Optionally", "can", "set", "prefix", "as", "well", "as", "port", ".", "The", ...
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/hystrix/src/main/java/com/redhat/lightblue/client/hystrix/graphite/ServoGraphiteSetup.java#L102-L151
43,529
lightblue-platform/lightblue-client
hystrix/src/main/java/com/redhat/lightblue/client/hystrix/graphite/ServoGraphiteSetup.java
ServoGraphiteSetup.registerStatsdMetricObserver
protected static void registerStatsdMetricObserver(List<MetricObserver> observers, String prefix, String host, String port) { // verify at least hostname is set, else cannot configure this observer if (null == host || host.trim().isEmpty()) { LOGGER.info("StatdsMetricObserver not configured,...
java
protected static void registerStatsdMetricObserver(List<MetricObserver> observers, String prefix, String host, String port) { // verify at least hostname is set, else cannot configure this observer if (null == host || host.trim().isEmpty()) { LOGGER.info("StatdsMetricObserver not configured,...
[ "protected", "static", "void", "registerStatsdMetricObserver", "(", "List", "<", "MetricObserver", ">", "observers", ",", "String", "prefix", ",", "String", "host", ",", "String", "port", ")", "{", "// verify at least hostname is set, else cannot configure this observer", ...
If there is sufficient configuration, register a StatsD metric observer to publish metrics. Requires at a minimum a host. Optionally can set prefix as well as port. The prefix defaults to an empty string and port defaults to '8125'.
[ "If", "there", "is", "sufficient", "configuration", "register", "a", "StatsD", "metric", "observer", "to", "publish", "metrics", ".", "Requires", "at", "a", "minimum", "a", "host", ".", "Optionally", "can", "set", "prefix", "as", "well", "as", "port", ".", ...
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/hystrix/src/main/java/com/redhat/lightblue/client/hystrix/graphite/ServoGraphiteSetup.java#L159-L190
43,530
lightblue-platform/lightblue-client
hystrix/src/main/java/com/redhat/lightblue/client/hystrix/graphite/ServoGraphiteSetup.java
ServoGraphiteSetup.findVariable
private static String findVariable(String key) { String value = System.getProperty(key); if (value == null) { return System.getenv(key); } return value; }
java
private static String findVariable(String key) { String value = System.getProperty(key); if (value == null) { return System.getenv(key); } return value; }
[ "private", "static", "String", "findVariable", "(", "String", "key", ")", "{", "String", "value", "=", "System", ".", "getProperty", "(", "key", ")", ";", "if", "(", "value", "==", "null", ")", "{", "return", "System", ".", "getenv", "(", "key", ")", ...
Looks for the value of the key as a key firstly as a JVM argument, and if not found, to an environment variable. If still not found, then null is returned. @param key @return
[ "Looks", "for", "the", "value", "of", "the", "key", "as", "a", "key", "firstly", "as", "a", "JVM", "argument", "and", "if", "not", "found", "to", "an", "environment", "variable", ".", "If", "still", "not", "found", "then", "null", "is", "returned", "."...
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/hystrix/src/main/java/com/redhat/lightblue/client/hystrix/graphite/ServoGraphiteSetup.java#L247-L253
43,531
wcm-io/wcm-io-config
core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java
ParameterOverrideInfoLookup.addOverrideMap
public void addOverrideMap(Map<String, String> overrideMap) { if (sealed) { throw new IllegalStateException("Instance is sealed."); } for (Map.Entry<String, String> entry : overrideMap.entrySet()) { try { ParameterOverrideInfo info = new ParameterOverrideInfo(entry.getKey()); if ...
java
public void addOverrideMap(Map<String, String> overrideMap) { if (sealed) { throw new IllegalStateException("Instance is sealed."); } for (Map.Entry<String, String> entry : overrideMap.entrySet()) { try { ParameterOverrideInfo info = new ParameterOverrideInfo(entry.getKey()); if ...
[ "public", "void", "addOverrideMap", "(", "Map", "<", "String", ",", "String", ">", "overrideMap", ")", "{", "if", "(", "sealed", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Instance is sealed.\"", ")", ";", "}", "for", "(", "Map", ".", "Entr...
Adds map containing parameter override definitions. Can be called multiple times. New calls do not override settings from previous calls, only add new settings. Thus maps with highest priority should be added first. @param overrideMap Override map
[ "Adds", "map", "containing", "parameter", "override", "definitions", ".", "Can", "be", "called", "multiple", "times", ".", "New", "calls", "do", "not", "override", "settings", "from", "previous", "calls", "only", "add", "new", "settings", ".", "Thus", "maps", ...
9a03d72a4314163a171c7ef815fb6a1eba181828
https://github.com/wcm-io/wcm-io-config/blob/9a03d72a4314163a171c7ef815fb6a1eba181828/core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java#L56-L93
43,532
wcm-io/wcm-io-config
core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java
ParameterOverrideInfoLookup.seal
public void seal() { lockedParameterNamesSet = ImmutableSet.copyOf(lockedParameterNamesSet); lockedParameterNamesScopeMap = ImmutableMap.copyOf(Maps.transformValues(lockedParameterNamesScopeMap, new Function<Set<String>, Set<String>>() { @Override public Set<String> apply(Set<String> input) { ...
java
public void seal() { lockedParameterNamesSet = ImmutableSet.copyOf(lockedParameterNamesSet); lockedParameterNamesScopeMap = ImmutableMap.copyOf(Maps.transformValues(lockedParameterNamesScopeMap, new Function<Set<String>, Set<String>>() { @Override public Set<String> apply(Set<String> input) { ...
[ "public", "void", "seal", "(", ")", "{", "lockedParameterNamesSet", "=", "ImmutableSet", ".", "copyOf", "(", "lockedParameterNamesSet", ")", ";", "lockedParameterNamesScopeMap", "=", "ImmutableMap", ".", "copyOf", "(", "Maps", ".", "transformValues", "(", "lockedPar...
Make all maps and sets immutable.
[ "Make", "all", "maps", "and", "sets", "immutable", "." ]
9a03d72a4314163a171c7ef815fb6a1eba181828
https://github.com/wcm-io/wcm-io-config/blob/9a03d72a4314163a171c7ef815fb6a1eba181828/core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java#L98-L107
43,533
wcm-io/wcm-io-config
core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java
ParameterOverrideInfoLookup.getOverrideForce
public String getOverrideForce(String configurationId, String parameterName) { Map<String, String> overrideForceScopeMapEntry = overrideForceScopeMap.get(configurationId); if (overrideForceScopeMapEntry != null) { return overrideForceScopeMapEntry.get(parameterName); } return null; }
java
public String getOverrideForce(String configurationId, String parameterName) { Map<String, String> overrideForceScopeMapEntry = overrideForceScopeMap.get(configurationId); if (overrideForceScopeMapEntry != null) { return overrideForceScopeMapEntry.get(parameterName); } return null; }
[ "public", "String", "getOverrideForce", "(", "String", "configurationId", ",", "String", "parameterName", ")", "{", "Map", "<", "String", ",", "String", ">", "overrideForceScopeMapEntry", "=", "overrideForceScopeMap", ".", "get", "(", "configurationId", ")", ";", ...
Lookup force override for given configuration Id. @param parameterName Parameter name @return Override value or null
[ "Lookup", "force", "override", "for", "given", "configuration", "Id", "." ]
9a03d72a4314163a171c7ef815fb6a1eba181828
https://github.com/wcm-io/wcm-io-config/blob/9a03d72a4314163a171c7ef815fb6a1eba181828/core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java#L144-L150
43,534
wcm-io/wcm-io-config
core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java
ParameterOverrideInfoLookup.getLockedParameterNames
public Set<String> getLockedParameterNames(String configurationId) { Set<String> lockedParameterNamesScopeMapEntry = lockedParameterNamesScopeMap.get(configurationId); if (lockedParameterNamesScopeMapEntry != null) { return lockedParameterNamesScopeMapEntry; } else { return ImmutableSet.of()...
java
public Set<String> getLockedParameterNames(String configurationId) { Set<String> lockedParameterNamesScopeMapEntry = lockedParameterNamesScopeMap.get(configurationId); if (lockedParameterNamesScopeMapEntry != null) { return lockedParameterNamesScopeMapEntry; } else { return ImmutableSet.of()...
[ "public", "Set", "<", "String", ">", "getLockedParameterNames", "(", "String", "configurationId", ")", "{", "Set", "<", "String", ">", "lockedParameterNamesScopeMapEntry", "=", "lockedParameterNamesScopeMap", ".", "get", "(", "configurationId", ")", ";", "if", "(", ...
Get locked parameter names for specific configuration Id. @param configurationId Configuration Id @return Parameter names
[ "Get", "locked", "parameter", "names", "for", "specific", "configuration", "Id", "." ]
9a03d72a4314163a171c7ef815fb6a1eba181828
https://github.com/wcm-io/wcm-io-config/blob/9a03d72a4314163a171c7ef815fb6a1eba181828/core/src/main/java/io/wcm/config/core/management/impl/override/ParameterOverrideInfoLookup.java#L165-L173
43,535
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java
MsgSettingController.downloadApiJsonAll
@GetMapping("/setting/download/api/json/all") public void downloadApiJsonAll(HttpServletRequest req, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); List<ValidationData> list = this.msgSettingService.getAllValidationData(); ValidationFileUtil.sendFileToHttpServi...
java
@GetMapping("/setting/download/api/json/all") public void downloadApiJsonAll(HttpServletRequest req, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); List<ValidationData> list = this.msgSettingService.getAllValidationData(); ValidationFileUtil.sendFileToHttpServi...
[ "@", "GetMapping", "(", "\"/setting/download/api/json/all\"", ")", "public", "void", "downloadApiJsonAll", "(", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ")", "{", "this", ".", "validationSessionComponent", ".", "sessionCheck", "(", "req", ")", "...
Download api json all. @param req the req @param res the res
[ "Download", "api", "json", "all", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java#L74-L79
43,536
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java
MsgSettingController.downloadApiJson
@GetMapping("/setting/download/api/json") public void downloadApiJson(HttpServletRequest req, @RequestParam("method") String method, @RequestParam("url") String url, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); url = new String(Base64.getDecoder().decode(url)); ...
java
@GetMapping("/setting/download/api/json") public void downloadApiJson(HttpServletRequest req, @RequestParam("method") String method, @RequestParam("url") String url, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); url = new String(Base64.getDecoder().decode(url)); ...
[ "@", "GetMapping", "(", "\"/setting/download/api/json\"", ")", "public", "void", "downloadApiJson", "(", "HttpServletRequest", "req", ",", "@", "RequestParam", "(", "\"method\"", ")", "String", "method", ",", "@", "RequestParam", "(", "\"url\"", ")", "String", "ur...
Download api json. @param req the req @param method the method @param url the url @param res the res
[ "Download", "api", "json", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java#L89-L95
43,537
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java
MsgSettingController.downloadApiAll
@GetMapping("/setting/download/api/excel/all") public void downloadApiAll(HttpServletRequest req, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); PoiWorkBook workBook = this.msgExcelService.getAllExcels(); workBook.writeFile("ValidationApis_" + System.currentTim...
java
@GetMapping("/setting/download/api/excel/all") public void downloadApiAll(HttpServletRequest req, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); PoiWorkBook workBook = this.msgExcelService.getAllExcels(); workBook.writeFile("ValidationApis_" + System.currentTim...
[ "@", "GetMapping", "(", "\"/setting/download/api/excel/all\"", ")", "public", "void", "downloadApiAll", "(", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ")", "{", "this", ".", "validationSessionComponent", ".", "sessionCheck", "(", "req", ")", ";",...
Download api all. @param req the req @param res the res
[ "Download", "api", "all", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java#L103-L108
43,538
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java
MsgSettingController.downloadApi
@GetMapping("/setting/download/api/excel") public void downloadApi(HttpServletRequest req, @RequestParam("method") String method, @RequestParam("url") String url, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); url = new String(Base64.getDecoder().decode(url)); ...
java
@GetMapping("/setting/download/api/excel") public void downloadApi(HttpServletRequest req, @RequestParam("method") String method, @RequestParam("url") String url, HttpServletResponse res) { this.validationSessionComponent.sessionCheck(req); url = new String(Base64.getDecoder().decode(url)); ...
[ "@", "GetMapping", "(", "\"/setting/download/api/excel\"", ")", "public", "void", "downloadApi", "(", "HttpServletRequest", "req", ",", "@", "RequestParam", "(", "\"method\"", ")", "String", "method", ",", "@", "RequestParam", "(", "\"url\"", ")", "String", "url",...
Download api. @param req the req @param method the method @param url the url @param res the res
[ "Download", "api", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java#L118-L124
43,539
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java
MsgSettingController.uploadSetting
@PostMapping("/setting/upload/json") public void uploadSetting(HttpServletRequest req) { this.validationSessionComponent.sessionCheck(req); this.msgSettingService.updateValidationData((MultipartHttpServletRequest) req); }
java
@PostMapping("/setting/upload/json") public void uploadSetting(HttpServletRequest req) { this.validationSessionComponent.sessionCheck(req); this.msgSettingService.updateValidationData((MultipartHttpServletRequest) req); }
[ "@", "PostMapping", "(", "\"/setting/upload/json\"", ")", "public", "void", "uploadSetting", "(", "HttpServletRequest", "req", ")", "{", "this", ".", "validationSessionComponent", ".", "sessionCheck", "(", "req", ")", ";", "this", ".", "msgSettingService", ".", "u...
Upload setting. @param req the req
[ "Upload", "setting", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java#L131-L135
43,540
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java
MsgSettingController.reqUrlAllList
@GetMapping("/setting/url/list/all") public List<ReqUrl> reqUrlAllList(HttpServletRequest req) { this.validationSessionComponent.sessionCheck(req); return this.msgSettingService.getAllUrlList(); }
java
@GetMapping("/setting/url/list/all") public List<ReqUrl> reqUrlAllList(HttpServletRequest req) { this.validationSessionComponent.sessionCheck(req); return this.msgSettingService.getAllUrlList(); }
[ "@", "GetMapping", "(", "\"/setting/url/list/all\"", ")", "public", "List", "<", "ReqUrl", ">", "reqUrlAllList", "(", "HttpServletRequest", "req", ")", "{", "this", ".", "validationSessionComponent", ".", "sessionCheck", "(", "req", ")", ";", "return", "this", "...
Req url all list list. @param req the req @return the list
[ "Req", "url", "all", "list", "list", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java#L144-L148
43,541
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java
MsgSettingController.getValidationDataLists
@GetMapping("/setting/param/from/url") public List<ValidationData> getValidationDataLists(HttpServletRequest req) { this.validationSessionComponent.sessionCheck(req); ValidationData data = ParameterMapper.requestParamaterToObject(req, ValidationData.class, "UTF-8"); return this.msgSettingSer...
java
@GetMapping("/setting/param/from/url") public List<ValidationData> getValidationDataLists(HttpServletRequest req) { this.validationSessionComponent.sessionCheck(req); ValidationData data = ParameterMapper.requestParamaterToObject(req, ValidationData.class, "UTF-8"); return this.msgSettingSer...
[ "@", "GetMapping", "(", "\"/setting/param/from/url\"", ")", "public", "List", "<", "ValidationData", ">", "getValidationDataLists", "(", "HttpServletRequest", "req", ")", "{", "this", ".", "validationSessionComponent", ".", "sessionCheck", "(", "req", ")", ";", "Val...
Gets validation data lists. @param req the req @return the validation data lists
[ "Gets", "validation", "data", "lists", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/controller/MsgSettingController.java#L156-L161
43,542
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.transactionToIndex
private int transactionToIndex(T t) { Integer r = allTransactions.absoluteIndexOf(t); return r == null ? -1 : r.intValue(); }
java
private int transactionToIndex(T t) { Integer r = allTransactions.absoluteIndexOf(t); return r == null ? -1 : r.intValue(); }
[ "private", "int", "transactionToIndex", "(", "T", "t", ")", "{", "Integer", "r", "=", "allTransactions", ".", "absoluteIndexOf", "(", "t", ")", ";", "return", "r", "==", "null", "?", "-", "1", ":", "r", ".", "intValue", "(", ")", ";", "}" ]
maps a transaction to its index and returns -1 if not found
[ "maps", "a", "transaction", "to", "its", "index", "and", "returns", "-", "1", "if", "not", "found" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L77-L80
43,543
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.itemToIndex
private int itemToIndex(I i) { Integer r = allItems.absoluteIndexOf(i); return r == null ? -1 : r.intValue(); }
java
private int itemToIndex(I i) { Integer r = allItems.absoluteIndexOf(i); return r == null ? -1 : r.intValue(); }
[ "private", "int", "itemToIndex", "(", "I", "i", ")", "{", "Integer", "r", "=", "allItems", ".", "absoluteIndexOf", "(", "i", ")", ";", "return", "r", "==", "null", "?", "-", "1", ":", "r", ".", "intValue", "(", ")", ";", "}" ]
maps an item to its index and returns -1 if not found
[ "maps", "an", "item", "to", "its", "index", "and", "returns", "-", "1", "if", "not", "found" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L83-L86
43,544
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.add
public boolean add(T transaction, I item) { return matrix.add(transactionToIndex(transaction), itemToIndex(item)); }
java
public boolean add(T transaction, I item) { return matrix.add(transactionToIndex(transaction), itemToIndex(item)); }
[ "public", "boolean", "add", "(", "T", "transaction", ",", "I", "item", ")", "{", "return", "matrix", ".", "add", "(", "transactionToIndex", "(", "transaction", ")", ",", "itemToIndex", "(", "item", ")", ")", ";", "}" ]
Adds a single transaction-item pair @param transaction the transaction of the pair @param item the item of the pair @return <code>true</code> if the set has been changed
[ "Adds", "a", "single", "transaction", "-", "item", "pair" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L295-L297
43,545
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.contains
public boolean contains(T transaction, I item) { int t = transactionToIndex(transaction); if (t < 0) return false; int i = itemToIndex(item); if (i < 0) return false; return matrix.contains(t, i); }
java
public boolean contains(T transaction, I item) { int t = transactionToIndex(transaction); if (t < 0) return false; int i = itemToIndex(item); if (i < 0) return false; return matrix.contains(t, i); }
[ "public", "boolean", "contains", "(", "T", "transaction", ",", "I", "item", ")", "{", "int", "t", "=", "transactionToIndex", "(", "transaction", ")", ";", "if", "(", "t", "<", "0", ")", "return", "false", ";", "int", "i", "=", "itemToIndex", "(", "it...
Checks if the given transaction-item pair is contained within the set @param transaction the transaction of the pair @param item the item of the pair @return <code>true</code> if the given transaction-item pair is contained within the set
[ "Checks", "if", "the", "given", "transaction", "-", "item", "pair", "is", "contained", "within", "the", "set" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L384-L392
43,546
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.remove
public boolean remove(T transaction, I item) { return matrix.remove(transactionToIndex(transaction), itemToIndex(item)); }
java
public boolean remove(T transaction, I item) { return matrix.remove(transactionToIndex(transaction), itemToIndex(item)); }
[ "public", "boolean", "remove", "(", "T", "transaction", ",", "I", "item", ")", "{", "return", "matrix", ".", "remove", "(", "transactionToIndex", "(", "transaction", ")", ",", "itemToIndex", "(", "item", ")", ")", ";", "}" ]
Removes a single transaction-item pair @param transaction the transaction of the pair @param item the item of the pair @return <code>true</code> if the pair set has been changed
[ "Removes", "a", "single", "transaction", "-", "item", "pair" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L524-L526
43,547
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.removeAll
public boolean removeAll(Collection<T> trans, Collection<I> items) { if (trans == null || trans.isEmpty() || items == null || items.isEmpty()) return false; return matrix.removeAll(allTransactions.convert(trans).indices(), allItems.convert(items).indices()); }
java
public boolean removeAll(Collection<T> trans, Collection<I> items) { if (trans == null || trans.isEmpty() || items == null || items.isEmpty()) return false; return matrix.removeAll(allTransactions.convert(trans).indices(), allItems.convert(items).indices()); }
[ "public", "boolean", "removeAll", "(", "Collection", "<", "T", ">", "trans", ",", "Collection", "<", "I", ">", "items", ")", "{", "if", "(", "trans", "==", "null", "||", "trans", ".", "isEmpty", "(", ")", "||", "items", "==", "null", "||", "items", ...
Removes the pairs obtained from the Cartesian product of transactions and items @param trans collection of transactions @param items collection of items @return <code>true</code> if the set set has been changed
[ "Removes", "the", "pairs", "obtained", "from", "the", "Cartesian", "product", "of", "transactions", "and", "items" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L554-L558
43,548
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.retainAll
public boolean retainAll(Collection<T> trans, I item) { if (isEmpty()) return false; if (trans == null || trans.isEmpty() || item == null) { clear(); return true; } return matrix.retainAll(allTransactions.convert(trans).indices(), itemToIndex(item)); }
java
public boolean retainAll(Collection<T> trans, I item) { if (isEmpty()) return false; if (trans == null || trans.isEmpty() || item == null) { clear(); return true; } return matrix.retainAll(allTransactions.convert(trans).indices(), itemToIndex(item)); }
[ "public", "boolean", "retainAll", "(", "Collection", "<", "T", ">", "trans", ",", "I", "item", ")", "{", "if", "(", "isEmpty", "(", ")", ")", "return", "false", ";", "if", "(", "trans", "==", "null", "||", "trans", ".", "isEmpty", "(", ")", "||", ...
Retains the pairs obtained from the Cartesian product of transactions and items @param trans collection of transactions @param item the item @return <code>true</code> if the set set has been changed
[ "Retains", "the", "pairs", "obtained", "from", "the", "Cartesian", "product", "of", "transactions", "and", "items" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L642-L650
43,549
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.itemsOf
public IndexedSet<I> itemsOf(T transaction) { IndexedSet<I> res = allItems.empty(); res.indices().addAll(matrix.getRow(transactionToIndex(transaction))); return res; }
java
public IndexedSet<I> itemsOf(T transaction) { IndexedSet<I> res = allItems.empty(); res.indices().addAll(matrix.getRow(transactionToIndex(transaction))); return res; }
[ "public", "IndexedSet", "<", "I", ">", "itemsOf", "(", "T", "transaction", ")", "{", "IndexedSet", "<", "I", ">", "res", "=", "allItems", ".", "empty", "(", ")", ";", "res", ".", "indices", "(", ")", ".", "addAll", "(", "matrix", ".", "getRow", "("...
Lists all items contained within a given transaction @param transaction the given transaction @return items contained within the given transaction
[ "Lists", "all", "items", "contained", "within", "a", "given", "transaction" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L710-L714
43,550
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java
PairSet.transactionsOf
public IndexedSet<T> transactionsOf(I item) { IndexedSet<T> res = allTransactions.empty(); res.indices().addAll(matrix.getCol(itemToIndex(item))); return res; }
java
public IndexedSet<T> transactionsOf(I item) { IndexedSet<T> res = allTransactions.empty(); res.indices().addAll(matrix.getCol(itemToIndex(item))); return res; }
[ "public", "IndexedSet", "<", "T", ">", "transactionsOf", "(", "I", "item", ")", "{", "IndexedSet", "<", "T", ">", "res", "=", "allTransactions", ".", "empty", "(", ")", ";", "res", ".", "indices", "(", ")", ".", "addAll", "(", "matrix", ".", "getCol"...
Lists all transactions involved with a specified item @param item the given item @return transactions involved with a specified item
[ "Lists", "all", "transactions", "involved", "with", "a", "specified", "item" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/matrix/PairSet.java#L723-L727
43,551
OpenCompare/OpenCompare
org.opencompare/pcmdata-importers/src/main/java/data_off/OFFDumpRetriever.java
OFFDumpRetriever.unTar
private List<File> unTar(final File inputFile, final File outputDir) throws FileNotFoundException, IOException, ArchiveException { _log.info(String.format("Untaring %s to dir %s.", inputFile.getAbsolutePath(), outputDir.getAbsolutePath())); final List<File> untaredFiles = new LinkedList<File>(); final ...
java
private List<File> unTar(final File inputFile, final File outputDir) throws FileNotFoundException, IOException, ArchiveException { _log.info(String.format("Untaring %s to dir %s.", inputFile.getAbsolutePath(), outputDir.getAbsolutePath())); final List<File> untaredFiles = new LinkedList<File>(); final ...
[ "private", "List", "<", "File", ">", "unTar", "(", "final", "File", "inputFile", ",", "final", "File", "outputDir", ")", "throws", "FileNotFoundException", ",", "IOException", ",", "ArchiveException", "{", "_log", ".", "info", "(", "String", ".", "format", "...
Untar an input file into an output file. The output file is created in the output folder, having the same name as the input file, minus the '.tar' extension. @param inputFile the input .tar file @param outputDir the output directory file. @throws IOException @throws FileNotFoundException @return The {@link ...
[ "Untar", "an", "input", "file", "into", "an", "output", "file", "." ]
6cd776466b375cb8ecca08fcd94e573d65e20b14
https://github.com/OpenCompare/OpenCompare/blob/6cd776466b375cb8ecca08fcd94e573d65e20b14/org.opencompare/pcmdata-importers/src/main/java/data_off/OFFDumpRetriever.java#L56-L85
43,552
wcm-io/wcm-io-config
core/src/main/java/io/wcm/config/core/management/impl/ParameterOverrideImpl.java
ParameterOverrideImpl.updateLoockup
private void updateLoockup() { synchronized (parameterOverrideProviders) { ParameterOverrideInfoLookup newLookup = new ParameterOverrideInfoLookup(); for (ParameterOverrideProvider provider : parameterOverrideProviders) { newLookup.addOverrideMap(provider.getOverrideMap()); } newLook...
java
private void updateLoockup() { synchronized (parameterOverrideProviders) { ParameterOverrideInfoLookup newLookup = new ParameterOverrideInfoLookup(); for (ParameterOverrideProvider provider : parameterOverrideProviders) { newLookup.addOverrideMap(provider.getOverrideMap()); } newLook...
[ "private", "void", "updateLoockup", "(", ")", "{", "synchronized", "(", "parameterOverrideProviders", ")", "{", "ParameterOverrideInfoLookup", "newLookup", "=", "new", "ParameterOverrideInfoLookup", "(", ")", ";", "for", "(", "ParameterOverrideProvider", "provider", ":"...
Update lookup maps with override maps from all override providers.
[ "Update", "lookup", "maps", "with", "override", "maps", "from", "all", "override", "providers", "." ]
9a03d72a4314163a171c7ef815fb6a1eba181828
https://github.com/wcm-io/wcm-io-config/blob/9a03d72a4314163a171c7ef815fb6a1eba181828/core/src/main/java/io/wcm/config/core/management/impl/ParameterOverrideImpl.java#L106-L115
43,553
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
gwt-localforage/src/main/java/org/wwarn/localforage/client/LocalForage.java
LocalForage.load
public static void load() { if (!isLoaded()) { ScriptInjector.fromString(LocalForageResources.INSTANCE.js().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject(); } }
java
public static void load() { if (!isLoaded()) { ScriptInjector.fromString(LocalForageResources.INSTANCE.js().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject(); } }
[ "public", "static", "void", "load", "(", ")", "{", "if", "(", "!", "isLoaded", "(", ")", ")", "{", "ScriptInjector", ".", "fromString", "(", "LocalForageResources", ".", "INSTANCE", ".", "js", "(", ")", ".", "getText", "(", ")", ")", ".", "setWindow", ...
Loads the offline library. You normally never have to do this manually
[ "Loads", "the", "offline", "library", ".", "You", "normally", "never", "have", "to", "do", "this", "manually" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/gwt-localforage/src/main/java/org/wwarn/localforage/client/LocalForage.java#L176-L180
43,554
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/utilities/IntSetStatistics.java
IntSetStatistics.resetCounters
public static void resetCounters() { unionCount = intersectionCount = differenceCount = symmetricDifferenceCount = complementCount = unionSizeCount = intersectionSizeCount = differenceSizeCount = symmetricDifferenceSizeCount = complementSizeCount = equalsCount = hashCodeCount = containsAllCount = contains...
java
public static void resetCounters() { unionCount = intersectionCount = differenceCount = symmetricDifferenceCount = complementCount = unionSizeCount = intersectionSizeCount = differenceSizeCount = symmetricDifferenceSizeCount = complementSizeCount = equalsCount = hashCodeCount = containsAllCount = contains...
[ "public", "static", "void", "resetCounters", "(", ")", "{", "unionCount", "=", "intersectionCount", "=", "differenceCount", "=", "symmetricDifferenceCount", "=", "complementCount", "=", "unionSizeCount", "=", "intersectionSizeCount", "=", "differenceSizeCount", "=", "sy...
Resets all counters
[ "Resets", "all", "counters" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/utilities/IntSetStatistics.java#L177-L181
43,555
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/map/GenericMapWidget.java
GenericMapWidget.setMarkers
public void setMarkers(List<GenericMarker> m){ this.markers = m; for (GenericMarker marker : m) { marker.setMap(this); } //setup any clustering options clusterMarkers(); }
java
public void setMarkers(List<GenericMarker> m){ this.markers = m; for (GenericMarker marker : m) { marker.setMap(this); } //setup any clustering options clusterMarkers(); }
[ "public", "void", "setMarkers", "(", "List", "<", "GenericMarker", ">", "m", ")", "{", "this", ".", "markers", "=", "m", ";", "for", "(", "GenericMarker", "marker", ":", "m", ")", "{", "marker", ".", "setMap", "(", "this", ")", ";", "}", "//setup any...
Set markers would be a better description of this method behaviour, effectively replaces the references to all markers @param m
[ "Set", "markers", "would", "be", "a", "better", "description", "of", "this", "method", "behaviour", "effectively", "replaces", "the", "references", "to", "all", "markers" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/map/GenericMapWidget.java#L74-L81
43,556
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/map/OfflineMapWidget.java
OfflineMapWidget.load
public static void load() { if (!isLoaded()) { // ScriptInjector.fromString(OpenLayersV3Resources.INSTANCE.proj4js().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject(); // ScriptInjector.fromString(OpenLayersV3Resources.INSTANCE.supercluster().getText()).setWindow(ScriptInjector.TOP_...
java
public static void load() { if (!isLoaded()) { // ScriptInjector.fromString(OpenLayersV3Resources.INSTANCE.proj4js().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject(); // ScriptInjector.fromString(OpenLayersV3Resources.INSTANCE.supercluster().getText()).setWindow(ScriptInjector.TOP_...
[ "public", "static", "void", "load", "(", ")", "{", "if", "(", "!", "isLoaded", "(", ")", ")", "{", "// ScriptInjector.fromString(OpenLayersV3Resources.INSTANCE.proj4js().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject();", "// ScriptInjector.fromString(Op...
Loads the offline library.
[ "Loads", "the", "offline", "library", "." ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/map/OfflineMapWidget.java#L95-L102
43,557
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/SurveyorAppController.java
SurveyorAppController.display
protected void display() { new FilterPresenter(new FilterViewUI()).go(layout); resultPresenter = new ResultPresenter(getResultView()); loadStatusListener.registerObserver(resultPresenter); resultPresenter.go(layout); }
java
protected void display() { new FilterPresenter(new FilterViewUI()).go(layout); resultPresenter = new ResultPresenter(getResultView()); loadStatusListener.registerObserver(resultPresenter); resultPresenter.go(layout); }
[ "protected", "void", "display", "(", ")", "{", "new", "FilterPresenter", "(", "new", "FilterViewUI", "(", ")", ")", ".", "go", "(", "layout", ")", ";", "resultPresenter", "=", "new", "ResultPresenter", "(", "getResultView", "(", ")", ")", ";", "loadStatusL...
Display home screen
[ "Display", "home", "screen" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/SurveyorAppController.java#L117-L123
43,558
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/store/ValidationRuleStore.java
ValidationRuleStore.getValidationChecker
public BaseValidationCheck getValidationChecker(ValidationRule rule) { ValidationRule existRule = this.rules.stream().filter(r -> r.getRuleName().equals(rule.getRuleName())).findFirst().orElse(null); if (existRule == null) { throw new ValidationLibException("rulename : " + rule.getRuleName()...
java
public BaseValidationCheck getValidationChecker(ValidationRule rule) { ValidationRule existRule = this.rules.stream().filter(r -> r.getRuleName().equals(rule.getRuleName())).findFirst().orElse(null); if (existRule == null) { throw new ValidationLibException("rulename : " + rule.getRuleName()...
[ "public", "BaseValidationCheck", "getValidationChecker", "(", "ValidationRule", "rule", ")", "{", "ValidationRule", "existRule", "=", "this", ".", "rules", ".", "stream", "(", ")", ".", "filter", "(", "r", "->", "r", ".", "getRuleName", "(", ")", ".", "equal...
Gets validation checker. @param rule the rule @return the validation checker
[ "Gets", "validation", "checker", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/store/ValidationRuleStore.java#L58-L64
43,559
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/store/ValidationRuleStore.java
ValidationRuleStore.addRule
public synchronized ValidationRuleStore addRule(ValidationRule rule) { rule.setOrderIdx(this.rules.size()); this.rules.add(rule); this.checkHashMap.put(rule.getRuleName(), rule.getValidationCheck()); return this; }
java
public synchronized ValidationRuleStore addRule(ValidationRule rule) { rule.setOrderIdx(this.rules.size()); this.rules.add(rule); this.checkHashMap.put(rule.getRuleName(), rule.getValidationCheck()); return this; }
[ "public", "synchronized", "ValidationRuleStore", "addRule", "(", "ValidationRule", "rule", ")", "{", "rule", ".", "setOrderIdx", "(", "this", ".", "rules", ".", "size", "(", ")", ")", ";", "this", ".", "rules", ".", "add", "(", "rule", ")", ";", "this", ...
Add rule validation rule store. @param rule the rule @return the validation rule store
[ "Add", "rule", "validation", "rule", "store", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/store/ValidationRuleStore.java#L85-L90
43,560
OpenCompare/OpenCompare
org.opencompare/pcmdata-importers/src/main/java/pcm_Filter/mutate/PCMMutate.java
PCMMutate.clear_ligne
private static PCM clear_ligne(PCM pcm, PCM pcm_return){ List<Product> pdts = pcm.getProducts(); List<Cell> cells = new ArrayList<Cell>() ; for (Product pr : pdts) { float nbCellsEmpty = 0 ; // On ajoute les cellules du product dans une liste cells = pr.getCells(); // On traite les infos des ce...
java
private static PCM clear_ligne(PCM pcm, PCM pcm_return){ List<Product> pdts = pcm.getProducts(); List<Cell> cells = new ArrayList<Cell>() ; for (Product pr : pdts) { float nbCellsEmpty = 0 ; // On ajoute les cellules du product dans une liste cells = pr.getCells(); // On traite les infos des ce...
[ "private", "static", "PCM", "clear_ligne", "(", "PCM", "pcm", ",", "PCM", "pcm_return", ")", "{", "List", "<", "Product", ">", "pdts", "=", "pcm", ".", "getProducts", "(", ")", ";", "List", "<", "Cell", ">", "cells", "=", "new", "ArrayList", "<", "Ce...
Enlever les lignes inutiles @param pcm : Le pcm @return Le pcm avec les lignes inutiles en moins
[ "Enlever", "les", "lignes", "inutiles" ]
6cd776466b375cb8ecca08fcd94e573d65e20b14
https://github.com/OpenCompare/OpenCompare/blob/6cd776466b375cb8ecca08fcd94e573d65e20b14/org.opencompare/pcmdata-importers/src/main/java/pcm_Filter/mutate/PCMMutate.java#L53-L80
43,561
OpenCompare/OpenCompare
org.opencompare/pcmdata-importers/src/main/java/pcm_Filter/mutate/PCMMutate.java
PCMMutate.clear_colonne
private static PCM clear_colonne(PCM pcm, PCM pcm_return){ List<Feature> pdts = pcm.getConcreteFeatures(); List<Cell> cells = new ArrayList<Cell>() ; for (Feature pr : pdts) { float nbCellsEmpty = 0 ; // On ajoute les cellules du product dans une liste cells = pr.getCells(); // On traite les infos des...
java
private static PCM clear_colonne(PCM pcm, PCM pcm_return){ List<Feature> pdts = pcm.getConcreteFeatures(); List<Cell> cells = new ArrayList<Cell>() ; for (Feature pr : pdts) { float nbCellsEmpty = 0 ; // On ajoute les cellules du product dans une liste cells = pr.getCells(); // On traite les infos des...
[ "private", "static", "PCM", "clear_colonne", "(", "PCM", "pcm", ",", "PCM", "pcm_return", ")", "{", "List", "<", "Feature", ">", "pdts", "=", "pcm", ".", "getConcreteFeatures", "(", ")", ";", "List", "<", "Cell", ">", "cells", "=", "new", "ArrayList", ...
Enlever les colonnes inutiles @param pcmic : Le pcm info container du pcm @param pcm : Le pcm @return Le pcm avec les colonnes inutiles en moins
[ "Enlever", "les", "colonnes", "inutiles" ]
6cd776466b375cb8ecca08fcd94e573d65e20b14
https://github.com/OpenCompare/OpenCompare/blob/6cd776466b375cb8ecca08fcd94e573d65e20b14/org.opencompare/pcmdata-importers/src/main/java/pcm_Filter/mutate/PCMMutate.java#L88-L112
43,562
OpenCompare/OpenCompare
org.opencompare/pcmdata-importers/src/main/java/JSONformating/model/JFeature.java
JFeature.sameFeature
public boolean sameFeature(JFeature f){ return this.name.equals(f.name) && this.type.equals(f.type); }
java
public boolean sameFeature(JFeature f){ return this.name.equals(f.name) && this.type.equals(f.type); }
[ "public", "boolean", "sameFeature", "(", "JFeature", "f", ")", "{", "return", "this", ".", "name", ".", "equals", "(", "f", ".", "name", ")", "&&", "this", ".", "type", ".", "equals", "(", "f", ".", "type", ")", ";", "}" ]
Compares the name and type of the 2 features @param f the feature to compare @return true if name and type are the same, omits id
[ "Compares", "the", "name", "and", "type", "of", "the", "2", "features" ]
6cd776466b375cb8ecca08fcd94e573d65e20b14
https://github.com/OpenCompare/OpenCompare/blob/6cd776466b375cb8ecca08fcd94e573d65e20b14/org.opencompare/pcmdata-importers/src/main/java/JSONformating/model/JFeature.java#L35-L37
43,563
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
MapCore/src/main/java/org/wwarn/mapcore/client/utils/XMLUtils.java
XMLUtils.nodeWalker
public static void nodeWalker(NodeList childNodes, NodeElementParser parser) throws ParseException { for (int i = 0; i < childNodes.getLength(); i++) { Node item = childNodes.item(i); String node = item.getNodeName(); if(item.getNodeType() == Node.ELEMENT_NODE){ ...
java
public static void nodeWalker(NodeList childNodes, NodeElementParser parser) throws ParseException { for (int i = 0; i < childNodes.getLength(); i++) { Node item = childNodes.item(i); String node = item.getNodeName(); if(item.getNodeType() == Node.ELEMENT_NODE){ ...
[ "public", "static", "void", "nodeWalker", "(", "NodeList", "childNodes", ",", "NodeElementParser", "parser", ")", "throws", "ParseException", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "childNodes", ".", "getLength", "(", ")", ";", "i", "++", ...
nodeWalker walker implementation, simple depth first recursive implementation @param childNodes take a node list to iterate @param parser an observer which parses a node element @throws ParseException
[ "nodeWalker", "walker", "implementation", "simple", "depth", "first", "recursive", "implementation" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/MapCore/src/main/java/org/wwarn/mapcore/client/utils/XMLUtils.java#L56-L65
43,564
reinert/requestor
requestor/core/requestor-api/src/main/java/io/reinert/requestor/serialization/json/JsonObjectSerdes.java
JsonObjectSerdes.isObject
protected boolean isObject(String text) { final String trim = text.trim(); return trim.startsWith("{") && trim.endsWith("}"); }
java
protected boolean isObject(String text) { final String trim = text.trim(); return trim.startsWith("{") && trim.endsWith("}"); }
[ "protected", "boolean", "isObject", "(", "String", "text", ")", "{", "final", "String", "trim", "=", "text", ".", "trim", "(", ")", ";", "return", "trim", ".", "startsWith", "(", "\"{\"", ")", "&&", "trim", ".", "endsWith", "(", "\"}\"", ")", ";", "}...
Checks if the serialized content is a JSON Object. @param text Serialized response @return {@code true} if argument is a JSON object, {@code false} otherwise
[ "Checks", "if", "the", "serialized", "content", "is", "a", "JSON", "Object", "." ]
40163a75cd17815d5089935d0dd97b8d652ad6d4
https://github.com/reinert/requestor/blob/40163a75cd17815d5089935d0dd97b8d652ad6d4/requestor/core/requestor-api/src/main/java/io/reinert/requestor/serialization/json/JsonObjectSerdes.java#L119-L122
43,565
reinert/requestor
requestor/core/requestor-api/src/main/java/io/reinert/requestor/RequestDispatcher.java
RequestDispatcher.evalResponse
@SuppressWarnings("unchecked") protected <D> void evalResponse(Request request, Deferred<D> deferred, Class<D> resolveType, Class<?> parametrizedType, RawResponse response) { if (parametrizedType != null) { processor.process(request, response, parametrizedType...
java
@SuppressWarnings("unchecked") protected <D> void evalResponse(Request request, Deferred<D> deferred, Class<D> resolveType, Class<?> parametrizedType, RawResponse response) { if (parametrizedType != null) { processor.process(request, response, parametrizedType...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "<", "D", ">", "void", "evalResponse", "(", "Request", "request", ",", "Deferred", "<", "D", ">", "deferred", ",", "Class", "<", "D", ">", "resolveType", ",", "Class", "<", "?", ">", "param...
Evaluates the response and resolves the deferred. This method must be called by implementations after the response is received. @param request Dispatched request @param deferred Promise to be resolved @param resolveType Class of the expected type in the promise @param parametrizedType Class o...
[ "Evaluates", "the", "response", "and", "resolves", "the", "deferred", ".", "This", "method", "must", "be", "called", "by", "implementations", "after", "the", "response", "is", "received", "." ]
40163a75cd17815d5089935d0dd97b8d652ad6d4
https://github.com/reinert/requestor/blob/40163a75cd17815d5089935d0dd97b8d652ad6d4/requestor/core/requestor-api/src/main/java/io/reinert/requestor/RequestDispatcher.java#L109-L118
43,566
reinert/requestor
requestor/core/requestor-api/src/main/java/io/reinert/requestor/uri/UriBuilderImpl.java
UriBuilderImpl.assertNotNull
private void assertNotNull(Object value, String message) throws IllegalArgumentException { if (value == null) { throw new IllegalArgumentException(message); } }
java
private void assertNotNull(Object value, String message) throws IllegalArgumentException { if (value == null) { throw new IllegalArgumentException(message); } }
[ "private", "void", "assertNotNull", "(", "Object", "value", ",", "String", "message", ")", "throws", "IllegalArgumentException", "{", "if", "(", "value", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "message", ")", ";", "}", "}" ]
Assert that the value is not null. @param value the value @param message the message to include with any exceptions @throws IllegalArgumentException if value is null
[ "Assert", "that", "the", "value", "is", "not", "null", "." ]
40163a75cd17815d5089935d0dd97b8d652ad6d4
https://github.com/reinert/requestor/blob/40163a75cd17815d5089935d0dd97b8d652ad6d4/requestor/core/requestor-api/src/main/java/io/reinert/requestor/uri/UriBuilderImpl.java#L317-L321
43,567
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java
ValidationDataIndexMap.getUrlList
public List<ReqUrl> getUrlList() { List<ReqUrl> reqUrls = new ArrayList<>(); for (String key : this.methodAndUrlIndex.getMap().keySet()) { List<ValidationData> datas = this.methodAndUrlIndex.getMap().get(key); if (!datas.isEmpty()) { reqUrls.add(new ReqUrl(datas.g...
java
public List<ReqUrl> getUrlList() { List<ReqUrl> reqUrls = new ArrayList<>(); for (String key : this.methodAndUrlIndex.getMap().keySet()) { List<ValidationData> datas = this.methodAndUrlIndex.getMap().get(key); if (!datas.isEmpty()) { reqUrls.add(new ReqUrl(datas.g...
[ "public", "List", "<", "ReqUrl", ">", "getUrlList", "(", ")", "{", "List", "<", "ReqUrl", ">", "reqUrls", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "String", "key", ":", "this", ".", "methodAndUrlIndex", ".", "getMap", "(", ")", ".", ...
Gets url list. @return the url list
[ "Gets", "url", "list", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java#L29-L38
43,568
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java
ValidationDataIndexMap.findById
public ValidationData findById(Long id) { List<ValidationData> datas = this.idIndex.get(ValidationIndexUtil.makeKey(String.valueOf(id))); if (datas.isEmpty()) { return null; } return datas.get(0); }
java
public ValidationData findById(Long id) { List<ValidationData> datas = this.idIndex.get(ValidationIndexUtil.makeKey(String.valueOf(id))); if (datas.isEmpty()) { return null; } return datas.get(0); }
[ "public", "ValidationData", "findById", "(", "Long", "id", ")", "{", "List", "<", "ValidationData", ">", "datas", "=", "this", ".", "idIndex", ".", "get", "(", "ValidationIndexUtil", ".", "makeKey", "(", "String", ".", "valueOf", "(", "id", ")", ")", ")"...
Find by id validation data. @param id the id @return the validation data
[ "Find", "by", "id", "validation", "data", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java#L46-L52
43,569
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java
ValidationDataIndexMap.addIndex
public void addIndex(ValidationData data) { for (ValidationDataIndex idx : this.idxs) { ValidationIndexUtil.addIndexData(data, idx); } }
java
public void addIndex(ValidationData data) { for (ValidationDataIndex idx : this.idxs) { ValidationIndexUtil.addIndexData(data, idx); } }
[ "public", "void", "addIndex", "(", "ValidationData", "data", ")", "{", "for", "(", "ValidationDataIndex", "idx", ":", "this", ".", "idxs", ")", "{", "ValidationIndexUtil", ".", "addIndexData", "(", "data", ",", "idx", ")", ";", "}", "}" ]
Add index. @param data the data
[ "Add", "index", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java#L70-L74
43,570
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java
ValidationDataIndexMap.removeIndex
public void removeIndex(ValidationData data) { for (ValidationDataIndex idx : this.idxs) { ValidationIndexUtil.removeIndexData(data, idx); } }
java
public void removeIndex(ValidationData data) { for (ValidationDataIndex idx : this.idxs) { ValidationIndexUtil.removeIndexData(data, idx); } }
[ "public", "void", "removeIndex", "(", "ValidationData", "data", ")", "{", "for", "(", "ValidationDataIndex", "idx", ":", "this", ".", "idxs", ")", "{", "ValidationIndexUtil", ".", "removeIndexData", "(", "data", ",", "idx", ")", ";", "}", "}" ]
Remove index. @param data the data
[ "Remove", "index", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/core/repository/index/map/ValidationDataIndexMap.java#L81-L85
43,571
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/setting/service/MsgSettingServiceImpl.java
MsgSettingServiceImpl.updateFromFile
public void updateFromFile(MultipartFile file) { ObjectMapper objectMapper = ValidationObjUtil.getDefaultObjectMapper(); try { String jsonStr = new String(file.getBytes(), "UTF-8"); List<ValidationData> list = objectMapper.readValue(jsonStr, objectMapper.getTypeFactory().constru...
java
public void updateFromFile(MultipartFile file) { ObjectMapper objectMapper = ValidationObjUtil.getDefaultObjectMapper(); try { String jsonStr = new String(file.getBytes(), "UTF-8"); List<ValidationData> list = objectMapper.readValue(jsonStr, objectMapper.getTypeFactory().constru...
[ "public", "void", "updateFromFile", "(", "MultipartFile", "file", ")", "{", "ObjectMapper", "objectMapper", "=", "ValidationObjUtil", ".", "getDefaultObjectMapper", "(", ")", ";", "try", "{", "String", "jsonStr", "=", "new", "String", "(", "file", ".", "getBytes...
Update from file. @param file the file
[ "Update", "from", "file", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/setting/service/MsgSettingServiceImpl.java#L73-L104
43,572
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/TypeCheckUtil.java
TypeCheckUtil.isNotScanClass
public static boolean isNotScanClass(String className) { String block = BASIC_PACKAGE_PREFIX_LIST.stream().filter(prefix -> className.startsWith(prefix)).findAny().orElse(null); return block != null; }
java
public static boolean isNotScanClass(String className) { String block = BASIC_PACKAGE_PREFIX_LIST.stream().filter(prefix -> className.startsWith(prefix)).findAny().orElse(null); return block != null; }
[ "public", "static", "boolean", "isNotScanClass", "(", "String", "className", ")", "{", "String", "block", "=", "BASIC_PACKAGE_PREFIX_LIST", ".", "stream", "(", ")", ".", "filter", "(", "prefix", "->", "className", ".", "startsWith", "(", "prefix", ")", ")", ...
Is not scan class boolean. @param className the class name @return the boolean
[ "Is", "not", "scan", "class", "boolean", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/TypeCheckUtil.java#L70-L73
43,573
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/TypeCheckUtil.java
TypeCheckUtil.isObjClass
public static boolean isObjClass(Class<?> type) { if (type.isPrimitive() || type.isEnum() || type.isArray()) { return false; } String block = BASIC_PACKAGE_PREFIX_LIST.stream().filter(prefix -> type.getName().startsWith(prefix)).findAny().orElse(null); if (block != null) { ...
java
public static boolean isObjClass(Class<?> type) { if (type.isPrimitive() || type.isEnum() || type.isArray()) { return false; } String block = BASIC_PACKAGE_PREFIX_LIST.stream().filter(prefix -> type.getName().startsWith(prefix)).findAny().orElse(null); if (block != null) { ...
[ "public", "static", "boolean", "isObjClass", "(", "Class", "<", "?", ">", "type", ")", "{", "if", "(", "type", ".", "isPrimitive", "(", ")", "||", "type", ".", "isEnum", "(", ")", "||", "type", ".", "isArray", "(", ")", ")", "{", "return", "false",...
Is obj class boolean. @param type the type @return the boolean
[ "Is", "obj", "class", "boolean", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/TypeCheckUtil.java#L81-L92
43,574
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/TypeCheckUtil.java
TypeCheckUtil.isListClass
public static boolean isListClass(Class<?> type) { if (type.isPrimitive() || type.isEnum()) { return false; } return type.equals(List.class); }
java
public static boolean isListClass(Class<?> type) { if (type.isPrimitive() || type.isEnum()) { return false; } return type.equals(List.class); }
[ "public", "static", "boolean", "isListClass", "(", "Class", "<", "?", ">", "type", ")", "{", "if", "(", "type", ".", "isPrimitive", "(", ")", "||", "type", ".", "isEnum", "(", ")", ")", "{", "return", "false", ";", "}", "return", "type", ".", "equa...
Is list class boolean. @param type the type @return the boolean
[ "Is", "list", "class", "boolean", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/TypeCheckUtil.java#L100-L105
43,575
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/AnnotationScanner.java
AnnotationScanner.initBeans
public void initBeans(Object[] beans) { this.controllers = Arrays.stream(beans).filter(bean -> this.getController(bean) != null).map(bean -> this.getController(bean)).collect(Collectors.toList()); }
java
public void initBeans(Object[] beans) { this.controllers = Arrays.stream(beans).filter(bean -> this.getController(bean) != null).map(bean -> this.getController(bean)).collect(Collectors.toList()); }
[ "public", "void", "initBeans", "(", "Object", "[", "]", "beans", ")", "{", "this", ".", "controllers", "=", "Arrays", ".", "stream", "(", "beans", ")", ".", "filter", "(", "bean", "->", "this", ".", "getController", "(", "bean", ")", "!=", "null", ")...
Init beans. @param beans the beans
[ "Init", "beans", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/AnnotationScanner.java#L44-L46
43,576
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/AnnotationScanner.java
AnnotationScanner.getParameterFromMethodWithAnnotation
public List<DetailParam> getParameterFromMethodWithAnnotation(Class<?> parentClass, Method method, Class<?> annotationClass) { List<DetailParam> params = new ArrayList<>(); if (method.getParameterCount() < 1) { return params; } for (Parameter param : method.getParameters()) ...
java
public List<DetailParam> getParameterFromMethodWithAnnotation(Class<?> parentClass, Method method, Class<?> annotationClass) { List<DetailParam> params = new ArrayList<>(); if (method.getParameterCount() < 1) { return params; } for (Parameter param : method.getParameters()) ...
[ "public", "List", "<", "DetailParam", ">", "getParameterFromMethodWithAnnotation", "(", "Class", "<", "?", ">", "parentClass", ",", "Method", "method", ",", "Class", "<", "?", ">", "annotationClass", ")", "{", "List", "<", "DetailParam", ">", "params", "=", ...
Gets parameter from method with annotation. @param parentClass the parent class @param method the method @param annotationClass the annotation class @return the parameter from method with annotation
[ "Gets", "parameter", "from", "method", "with", "annotation", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/AnnotationScanner.java#L56-L74
43,577
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/AnnotationScanner.java
AnnotationScanner.getParameterFromClassWithAnnotation
public List<DetailParam> getParameterFromClassWithAnnotation(Class<?> baseClass, Class<?> annotationClass) { List<DetailParam> params = new ArrayList<>(); Arrays.stream(baseClass.getDeclaredMethods()).forEach(method -> params.addAll(this.getParameterFromMethodWithAnnotation(baseClass, method, annotation...
java
public List<DetailParam> getParameterFromClassWithAnnotation(Class<?> baseClass, Class<?> annotationClass) { List<DetailParam> params = new ArrayList<>(); Arrays.stream(baseClass.getDeclaredMethods()).forEach(method -> params.addAll(this.getParameterFromMethodWithAnnotation(baseClass, method, annotation...
[ "public", "List", "<", "DetailParam", ">", "getParameterFromClassWithAnnotation", "(", "Class", "<", "?", ">", "baseClass", ",", "Class", "<", "?", ">", "annotationClass", ")", "{", "List", "<", "DetailParam", ">", "params", "=", "new", "ArrayList", "<>", "(...
Gets parameter from class with annotation. @param baseClass the base class @param annotationClass the annotation class @return the parameter from class with annotation
[ "Gets", "parameter", "from", "class", "with", "annotation", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/AnnotationScanner.java#L83-L87
43,578
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/AnnotationScanner.java
AnnotationScanner.getParameterWithAnnotation
public List<DetailParam> getParameterWithAnnotation(Class<?> annotation) { List<DetailParam> params = new ArrayList<>(); this.controllers.stream().forEach(cla -> params.addAll(this.getParameterFromClassWithAnnotation(cla, annotation))); return params; }
java
public List<DetailParam> getParameterWithAnnotation(Class<?> annotation) { List<DetailParam> params = new ArrayList<>(); this.controllers.stream().forEach(cla -> params.addAll(this.getParameterFromClassWithAnnotation(cla, annotation))); return params; }
[ "public", "List", "<", "DetailParam", ">", "getParameterWithAnnotation", "(", "Class", "<", "?", ">", "annotation", ")", "{", "List", "<", "DetailParam", ">", "params", "=", "new", "ArrayList", "<>", "(", ")", ";", "this", ".", "controllers", ".", "stream"...
Gets parameter with annotation. @param annotation the annotation @return the parameter with annotation
[ "Gets", "parameter", "with", "annotation", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/AnnotationScanner.java#L95-L100
43,579
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java
PoiWorkSheet.nextRow
public Row nextRow(int cnt) { Row lastrow = null; for (int i = 0; i < cnt; i++) { lastrow = this.nextRow(); } return lastrow; }
java
public Row nextRow(int cnt) { Row lastrow = null; for (int i = 0; i < cnt; i++) { lastrow = this.nextRow(); } return lastrow; }
[ "public", "Row", "nextRow", "(", "int", "cnt", ")", "{", "Row", "lastrow", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "cnt", ";", "i", "++", ")", "{", "lastrow", "=", "this", ".", "nextRow", "(", ")", ";", "}", "return...
Next row row. @param cnt the cnt @return the row
[ "Next", "row", "row", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java#L50-L56
43,580
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java
PoiWorkSheet.createTitleCells
public List<Cell> createTitleCells(String... strs) { List<Cell> cells = new ArrayList<>(); for (String s : strs) { Cell cell = this.createTitleCell(s, DEFAULT_WIDTH); cells.add(cell); } return cells; }
java
public List<Cell> createTitleCells(String... strs) { List<Cell> cells = new ArrayList<>(); for (String s : strs) { Cell cell = this.createTitleCell(s, DEFAULT_WIDTH); cells.add(cell); } return cells; }
[ "public", "List", "<", "Cell", ">", "createTitleCells", "(", "String", "...", "strs", ")", "{", "List", "<", "Cell", ">", "cells", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "String", "s", ":", "strs", ")", "{", "Cell", "cell", "=", ...
Create title cells list. @param strs the strs @return the list
[ "Create", "title", "cells", "list", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java#L105-L113
43,581
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java
PoiWorkSheet.createTitleCells
public void createTitleCells(double width, String... strs) { for (String s : strs) { this.createTitleCell(s, width); } }
java
public void createTitleCells(double width, String... strs) { for (String s : strs) { this.createTitleCell(s, width); } }
[ "public", "void", "createTitleCells", "(", "double", "width", ",", "String", "...", "strs", ")", "{", "for", "(", "String", "s", ":", "strs", ")", "{", "this", ".", "createTitleCell", "(", "s", ",", "width", ")", ";", "}", "}" ]
Create title cells. @param width the width @param strs the strs
[ "Create", "title", "cells", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java#L121-L125
43,582
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java
PoiWorkSheet.createTitleCell
public Cell createTitleCell(String str, double width) { int cellCnt = this.getCellCnt(); Cell cell = this.getLastRow().createCell(cellCnt); cell.setCellValue(str); cell.setCellType(CellType.STRING); cell.setCellStyle(this.style.getStringCs()); sheet.setColumnWidth(cell...
java
public Cell createTitleCell(String str, double width) { int cellCnt = this.getCellCnt(); Cell cell = this.getLastRow().createCell(cellCnt); cell.setCellValue(str); cell.setCellType(CellType.STRING); cell.setCellStyle(this.style.getStringCs()); sheet.setColumnWidth(cell...
[ "public", "Cell", "createTitleCell", "(", "String", "str", ",", "double", "width", ")", "{", "int", "cellCnt", "=", "this", ".", "getCellCnt", "(", ")", ";", "Cell", "cell", "=", "this", ".", "getLastRow", "(", ")", ".", "createCell", "(", "cellCnt", "...
Create title cell cell. @param str the str @param width the width @return the cell
[ "Create", "title", "cell", "cell", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java#L134-L146
43,583
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java
PoiWorkSheet.createValueCells
public void createValueCells(Object... values) { for (Object value : values) { if (value == null) { this.createCell(""); continue; } if (value instanceof String) { this.createCell((String) value); } else if (value i...
java
public void createValueCells(Object... values) { for (Object value : values) { if (value == null) { this.createCell(""); continue; } if (value instanceof String) { this.createCell((String) value); } else if (value i...
[ "public", "void", "createValueCells", "(", "Object", "...", "values", ")", "{", "for", "(", "Object", "value", ":", "values", ")", "{", "if", "(", "value", "==", "null", ")", "{", "this", ".", "createCell", "(", "\"\"", ")", ";", "continue", ";", "}"...
Create value cells. @param values the values
[ "Create", "value", "cells", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/excel/PoiWorkSheet.java#L154-L175
43,584
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/client/util/SurveyorUncaughtExceptionHandler.java
SurveyorUncaughtExceptionHandler.printStackTrace
private String printStackTrace(Object[] stackTrace) { StringBuilder output = new StringBuilder(); for (Object line : stackTrace) { output.append(line); output.append(newline); } return output.toString(); }
java
private String printStackTrace(Object[] stackTrace) { StringBuilder output = new StringBuilder(); for (Object line : stackTrace) { output.append(line); output.append(newline); } return output.toString(); }
[ "private", "String", "printStackTrace", "(", "Object", "[", "]", "stackTrace", ")", "{", "StringBuilder", "output", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "Object", "line", ":", "stackTrace", ")", "{", "output", ".", "append", "(", "line",...
Given a stack trace, turn it into a HTML formatted string - to improve its display @param stackTrace - stack trace to convert to string @return String with stack trace formatted with HTML line breaks
[ "Given", "a", "stack", "trace", "turn", "it", "into", "a", "HTML", "formatted", "string", "-", "to", "improve", "its", "display" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/client/util/SurveyorUncaughtExceptionHandler.java#L110-L117
43,585
metamx/extendedset
src/main/java/it/uniroma3/mat/extendedset/wrappers/IndexedSet.java
IndexedSet.universe
public IndexedSet<T> universe() { IntSet allItems = indices.empty(); allItems.fill(0, indexToItem.length - 1); return createFromIndices(allItems); }
java
public IndexedSet<T> universe() { IntSet allItems = indices.empty(); allItems.fill(0, indexToItem.length - 1); return createFromIndices(allItems); }
[ "public", "IndexedSet", "<", "T", ">", "universe", "(", ")", "{", "IntSet", "allItems", "=", "indices", ".", "empty", "(", ")", ";", "allItems", ".", "fill", "(", "0", ",", "indexToItem", ".", "length", "-", "1", ")", ";", "return", "createFromIndices"...
Returns the collection of all possible elements @return the collection of all possible elements
[ "Returns", "the", "collection", "of", "all", "possible", "elements" ]
0f77c28057fac9c1bd6d79fbe5425b8efe5742a8
https://github.com/metamx/extendedset/blob/0f77c28057fac9c1bd6d79fbe5425b8efe5742a8/src/main/java/it/uniroma3/mat/extendedset/wrappers/IndexedSet.java#L452-L456
43,586
reinert/requestor
requestor/ext/requestor-oauth2/src/main/java/io/reinert/requestor/oauth2/Auth.java
Auth.expiringSoon
boolean expiringSoon(TokenInfo info) { // TODO(jasonhall): Consider varying the definition of "soon" based on the // original expires_in value (e.g., "soon" = 1/10th of the total time before // it's expired). return Double.valueOf(info.getExpires()) < (clock.now() + TEN_MINUTES); }
java
boolean expiringSoon(TokenInfo info) { // TODO(jasonhall): Consider varying the definition of "soon" based on the // original expires_in value (e.g., "soon" = 1/10th of the total time before // it's expired). return Double.valueOf(info.getExpires()) < (clock.now() + TEN_MINUTES); }
[ "boolean", "expiringSoon", "(", "TokenInfo", "info", ")", "{", "// TODO(jasonhall): Consider varying the definition of \"soon\" based on the", "// original expires_in value (e.g., \"soon\" = 1/10th of the total time before", "// it's expired).", "return", "Double", ".", "valueOf", "(", ...
Returns whether or not the token will be expiring within the next ten minutes.
[ "Returns", "whether", "or", "not", "the", "token", "will", "be", "expiring", "within", "the", "next", "ten", "minutes", "." ]
40163a75cd17815d5089935d0dd97b8d652ad6d4
https://github.com/reinert/requestor/blob/40163a75cd17815d5089935d0dd97b8d652ad6d4/requestor/ext/requestor-oauth2/src/main/java/io/reinert/requestor/oauth2/Auth.java#L101-L106
43,587
lightblue-platform/lightblue-client
core/src/main/java/com/redhat/lightblue/client/request/DataBulkRequest.java
DataBulkRequest.insertBefore
public DataBulkRequest insertBefore(CRUDRequest request, CRUDRequest before) { this.requests.add(requests.indexOf(before), request); return this; }
java
public DataBulkRequest insertBefore(CRUDRequest request, CRUDRequest before) { this.requests.add(requests.indexOf(before), request); return this; }
[ "public", "DataBulkRequest", "insertBefore", "(", "CRUDRequest", "request", ",", "CRUDRequest", "before", ")", "{", "this", ".", "requests", ".", "add", "(", "requests", ".", "indexOf", "(", "before", ")", ",", "request", ")", ";", "return", "this", ";", "...
Inserts a request before another specified request. This guarantees that the first request parameter will be executed, sequentially, before the second request parameter. It does not guarantee consecutive execution. @param request @param before @return
[ "Inserts", "a", "request", "before", "another", "specified", "request", ".", "This", "guarantees", "that", "the", "first", "request", "parameter", "will", "be", "executed", "sequentially", "before", "the", "second", "request", "parameter", ".", "It", "does", "no...
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/core/src/main/java/com/redhat/lightblue/client/request/DataBulkRequest.java#L85-L88
43,588
lightblue-platform/lightblue-client
core/src/main/java/com/redhat/lightblue/client/request/DataBulkRequest.java
DataBulkRequest.insertAfter
public DataBulkRequest insertAfter(CRUDRequest request, CRUDRequest after) { this.requests.add(requests.indexOf(after) + 1, request); return this; }
java
public DataBulkRequest insertAfter(CRUDRequest request, CRUDRequest after) { this.requests.add(requests.indexOf(after) + 1, request); return this; }
[ "public", "DataBulkRequest", "insertAfter", "(", "CRUDRequest", "request", ",", "CRUDRequest", "after", ")", "{", "this", ".", "requests", ".", "add", "(", "requests", ".", "indexOf", "(", "after", ")", "+", "1", ",", "request", ")", ";", "return", "this",...
Inserts a request after another specified request. This guarantees that the first request parameter will be executed, sequentially, after the second request parameter. It does not guarantee consecutive execution. @param request @param after @return
[ "Inserts", "a", "request", "after", "another", "specified", "request", ".", "This", "guarantees", "that", "the", "first", "request", "parameter", "will", "be", "executed", "sequentially", "after", "the", "second", "request", "parameter", ".", "It", "does", "not"...
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/core/src/main/java/com/redhat/lightblue/client/request/DataBulkRequest.java#L99-L102
43,589
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/ValidationFileUtil.java
ValidationFileUtil.readFileToString
public static String readFileToString(File file, final Charset charset) throws IOException { String line = null; BufferedReader reader = getBufferReader(file, charset); StringBuffer strBuffer = new StringBuffer(); while ((line = reader.readLine()) != null) { strBuffer.append...
java
public static String readFileToString(File file, final Charset charset) throws IOException { String line = null; BufferedReader reader = getBufferReader(file, charset); StringBuffer strBuffer = new StringBuffer(); while ((line = reader.readLine()) != null) { strBuffer.append...
[ "public", "static", "String", "readFileToString", "(", "File", "file", ",", "final", "Charset", "charset", ")", "throws", "IOException", "{", "String", "line", "=", "null", ";", "BufferedReader", "reader", "=", "getBufferReader", "(", "file", ",", "charset", "...
Read file to string string. @param file the file @param charset the charset @return the string @throws IOException the io exception
[ "Read", "file", "to", "string", "string", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/ValidationFileUtil.java#L37-L46
43,590
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/ValidationFileUtil.java
ValidationFileUtil.writeStringToFile
public static void writeStringToFile(File file, String content) throws IOException { OutputStream outputStream = getOutputStream(file); outputStream.write(content.getBytes()); }
java
public static void writeStringToFile(File file, String content) throws IOException { OutputStream outputStream = getOutputStream(file); outputStream.write(content.getBytes()); }
[ "public", "static", "void", "writeStringToFile", "(", "File", "file", ",", "String", "content", ")", "throws", "IOException", "{", "OutputStream", "outputStream", "=", "getOutputStream", "(", "file", ")", ";", "outputStream", ".", "write", "(", "content", ".", ...
Write string to file. @param file the file @param content the content @throws IOException the io exception
[ "Write", "string", "to", "file", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/ValidationFileUtil.java#L63-L66
43,591
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/ValidationFileUtil.java
ValidationFileUtil.getEncodingFileName
public static String getEncodingFileName(String fn) { try { return URLEncoder.encode(fn, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new ValidationLibException("unSupported fiel encoding : " + e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); } }
java
public static String getEncodingFileName(String fn) { try { return URLEncoder.encode(fn, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new ValidationLibException("unSupported fiel encoding : " + e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); } }
[ "public", "static", "String", "getEncodingFileName", "(", "String", "fn", ")", "{", "try", "{", "return", "URLEncoder", ".", "encode", "(", "fn", ",", "\"UTF-8\"", ")", ";", "}", "catch", "(", "UnsupportedEncodingException", "e", ")", "{", "throw", "new", ...
Gets encoding file name. @param fn the fn @return the encoding file name
[ "Gets", "encoding", "file", "name", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/ValidationFileUtil.java#L74-L80
43,592
ckpoint/CheckPoint
src/main/java/hsim/checkpoint/util/ValidationFileUtil.java
ValidationFileUtil.initFileSendHeader
public static void initFileSendHeader(HttpServletResponse res, String filename, String contentType) { filename = getEncodingFileName(filename); if (contentType != null) { res.setContentType(contentType); } else { res.setContentType("applicaiton/download;charset=utf-8"); ...
java
public static void initFileSendHeader(HttpServletResponse res, String filename, String contentType) { filename = getEncodingFileName(filename); if (contentType != null) { res.setContentType(contentType); } else { res.setContentType("applicaiton/download;charset=utf-8"); ...
[ "public", "static", "void", "initFileSendHeader", "(", "HttpServletResponse", "res", ",", "String", "filename", ",", "String", "contentType", ")", "{", "filename", "=", "getEncodingFileName", "(", "filename", ")", ";", "if", "(", "contentType", "!=", "null", ")"...
Init file send header. @param res the res @param filename the filename @param contentType the content type
[ "Init", "file", "send", "header", "." ]
2c2b1a87a88485d49ea6afa34acdf16ef4134f19
https://github.com/ckpoint/CheckPoint/blob/2c2b1a87a88485d49ea6afa34acdf16ef4134f19/src/main/java/hsim/checkpoint/util/ValidationFileUtil.java#L89-L101
43,593
lightblue-platform/lightblue-client
core/src/main/java/com/redhat/lightblue/client/model/DataError.java
DataError.fromJson
public static DataError fromJson(ObjectNode node) { DataError error = new DataError(); JsonNode x = node.get("data"); if (x != null) { error.entityData = x; } x = node.get("errors"); if (x instanceof ArrayNode) { error.errors = new ArrayList<>(); ...
java
public static DataError fromJson(ObjectNode node) { DataError error = new DataError(); JsonNode x = node.get("data"); if (x != null) { error.entityData = x; } x = node.get("errors"); if (x instanceof ArrayNode) { error.errors = new ArrayList<>(); ...
[ "public", "static", "DataError", "fromJson", "(", "ObjectNode", "node", ")", "{", "DataError", "error", "=", "new", "DataError", "(", ")", ";", "JsonNode", "x", "=", "node", ".", "get", "(", "\"data\"", ")", ";", "if", "(", "x", "!=", "null", ")", "{...
Parses a Json object node and returns the DataError corresponding to it. It is up to the client to make sure that the object node is a DataError representation. Any unrecognized elements are ignored.
[ "Parses", "a", "Json", "object", "node", "and", "returns", "the", "DataError", "corresponding", "to", "it", ".", "It", "is", "up", "to", "the", "client", "to", "make", "sure", "that", "the", "object", "node", "is", "a", "DataError", "representation", ".", ...
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/core/src/main/java/com/redhat/lightblue/client/model/DataError.java#L72-L87
43,594
lightblue-platform/lightblue-client
core/src/main/java/com/redhat/lightblue/client/model/DataError.java
DataError.findErrorForDoc
public static DataError findErrorForDoc(List<DataError> list, JsonNode node) { for (DataError x : list) { if (x.entityData == node) { return x; } } return null; }
java
public static DataError findErrorForDoc(List<DataError> list, JsonNode node) { for (DataError x : list) { if (x.entityData == node) { return x; } } return null; }
[ "public", "static", "DataError", "findErrorForDoc", "(", "List", "<", "DataError", ">", "list", ",", "JsonNode", "node", ")", "{", "for", "(", "DataError", "x", ":", "list", ")", "{", "if", "(", "x", ".", "entityData", "==", "node", ")", "{", "return",...
Returns the data error for the given json doc in the list
[ "Returns", "the", "data", "error", "for", "the", "given", "json", "doc", "in", "the", "list" ]
03790aff34e90d3889f60fd6c603c21a21dc1a40
https://github.com/lightblue-platform/lightblue-client/blob/03790aff34e90d3889f60fd6c603c21a21dc1a40/core/src/main/java/com/redhat/lightblue/client/model/DataError.java#L92-L99
43,595
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/view/map/MapViewComposite.java
MapViewComposite.setMarkers
public void setMarkers(QueryResult queryResult){ mapWidget.clearMarkers(); RecordList recordList = queryResult.getRecordList(); List<RecordList.Record> records = recordList.getRecords(); List<GenericMarker> markers = new ArrayList<GenericMarker>(); final MarkerCoordinateSource ma...
java
public void setMarkers(QueryResult queryResult){ mapWidget.clearMarkers(); RecordList recordList = queryResult.getRecordList(); List<RecordList.Record> records = recordList.getRecords(); List<GenericMarker> markers = new ArrayList<GenericMarker>(); final MarkerCoordinateSource ma...
[ "public", "void", "setMarkers", "(", "QueryResult", "queryResult", ")", "{", "mapWidget", ".", "clearMarkers", "(", ")", ";", "RecordList", "recordList", "=", "queryResult", ".", "getRecordList", "(", ")", ";", "List", "<", "RecordList", ".", "Record", ">", ...
Contain logic for getting records, building marker from results Called on start and when filters are changed @param queryResult records from query
[ "Contain", "logic", "for", "getting", "records", "building", "marker", "from", "results", "Called", "on", "start", "and", "when", "filters", "are", "changed" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/client/mvp/view/map/MapViewComposite.java#L144-L173
43,596
reinert/requestor
requestor/core/requestor-api/src/main/java/io/reinert/requestor/WebTarget.java
WebTarget.getUri
public Uri getUri() { if (uri == null) { try { uri = uriBuilder.build(); } catch (Exception e) { throw new IllegalStateException("Could not build the URI.", e); } } return uri; }
java
public Uri getUri() { if (uri == null) { try { uri = uriBuilder.build(); } catch (Exception e) { throw new IllegalStateException("Could not build the URI.", e); } } return uri; }
[ "public", "Uri", "getUri", "(", ")", "{", "if", "(", "uri", "==", "null", ")", "{", "try", "{", "uri", "=", "uriBuilder", ".", "build", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "IllegalStateException", "(", "\"C...
Get the URI identifying the resource. @return the resource URI. @throws IllegalStateException if the URI could not be built from the current state of the resource target.
[ "Get", "the", "URI", "identifying", "the", "resource", "." ]
40163a75cd17815d5089935d0dd97b8d652ad6d4
https://github.com/reinert/requestor/blob/40163a75cd17815d5089935d0dd97b8d652ad6d4/requestor/core/requestor-api/src/main/java/io/reinert/requestor/WebTarget.java#L112-L121
43,597
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/map/GoogleV3Marker.java
GoogleV3Marker.setupMarkerFixedNoRepeatHack
private <T> void setupMarkerFixedNoRepeatHack(GoogleV3Marker<T> genericMarker) { final Marker marker1 = genericMarker.getMarker(); final LatLng[] initialPosition = new LatLng[1]; marker1.addDragStartHandler(new DragStartMapHandler() { @Override public void onEvent(DragSta...
java
private <T> void setupMarkerFixedNoRepeatHack(GoogleV3Marker<T> genericMarker) { final Marker marker1 = genericMarker.getMarker(); final LatLng[] initialPosition = new LatLng[1]; marker1.addDragStartHandler(new DragStartMapHandler() { @Override public void onEvent(DragSta...
[ "private", "<", "T", ">", "void", "setupMarkerFixedNoRepeatHack", "(", "GoogleV3Marker", "<", "T", ">", "genericMarker", ")", "{", "final", "Marker", "marker1", "=", "genericMarker", ".", "getMarker", "(", ")", ";", "final", "LatLng", "[", "]", "initialPositio...
Prevent marker from repeating horizontally by setting marker drag and adjusting drag behaviour to reset @param genericMarker @param <T>
[ "Prevent", "marker", "from", "repeating", "horizontally", "by", "setting", "marker", "drag", "and", "adjusting", "drag", "behaviour", "to", "reset" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/MapCore/src/main/java/org/wwarn/mapcore/client/components/customwidgets/map/GoogleV3Marker.java#L545-L561
43,598
WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor
SurveyorCore/src/main/java/org/wwarn/surveyor/client/core/SortedCellTable.java
SortedCellTable.setComparator
public void setComparator(Column<T, ?> column, Comparator<T> comparator) { columnSortHandler.setComparator(column, comparator); }
java
public void setComparator(Column<T, ?> column, Comparator<T> comparator) { columnSortHandler.setComparator(column, comparator); }
[ "public", "void", "setComparator", "(", "Column", "<", "T", ",", "?", ">", "column", ",", "Comparator", "<", "T", ">", "comparator", ")", "{", "columnSortHandler", ".", "setComparator", "(", "column", ",", "comparator", ")", ";", "}" ]
Sets a comparator to use when sorting the given column @param column @param comparator
[ "Sets", "a", "comparator", "to", "use", "when", "sorting", "the", "given", "column" ]
224280bcd6e8045bda6b673584caf0aea5e4c841
https://github.com/WorldwideAntimalarialResistanceNetwork/WWARN-Maps-Surveyor/blob/224280bcd6e8045bda6b673584caf0aea5e4c841/SurveyorCore/src/main/java/org/wwarn/surveyor/client/core/SortedCellTable.java#L174-L176
43,599
reinert/requestor
requestor/ext/requestor-oauth2/src/main/java/io/reinert/requestor/oauth2/AuthRequest.java
AuthRequest.toUrl
String toUrl(Auth.UrlCodex urlCodex) { return new StringBuilder(authUrl) .append(authUrl.contains("?") ? "&" : "?") .append("client_id").append("=").append(urlCodex.encode(clientId)) .append("&").append("response_type").append("=").append("token") ...
java
String toUrl(Auth.UrlCodex urlCodex) { return new StringBuilder(authUrl) .append(authUrl.contains("?") ? "&" : "?") .append("client_id").append("=").append(urlCodex.encode(clientId)) .append("&").append("response_type").append("=").append("token") ...
[ "String", "toUrl", "(", "Auth", ".", "UrlCodex", "urlCodex", ")", "{", "return", "new", "StringBuilder", "(", "authUrl", ")", ".", "append", "(", "authUrl", ".", "contains", "(", "\"?\"", ")", "?", "\"&\"", ":", "\"?\"", ")", ".", "append", "(", "\"cli...
Returns a URL representation of this request, appending the client ID and scopes to the original authUrl.
[ "Returns", "a", "URL", "representation", "of", "this", "request", "appending", "the", "client", "ID", "and", "scopes", "to", "the", "original", "authUrl", "." ]
40163a75cd17815d5089935d0dd97b8d652ad6d4
https://github.com/reinert/requestor/blob/40163a75cd17815d5089935d0dd97b8d652ad6d4/requestor/ext/requestor-oauth2/src/main/java/io/reinert/requestor/oauth2/AuthRequest.java#L61-L68