repo_name stringlengths 7 104 | file_path stringlengths 13 198 | context stringlengths 67 7.15k | import_statement stringlengths 16 4.43k | code stringlengths 40 6.98k | prompt stringlengths 227 8.27k | next_line stringlengths 8 795 |
|---|---|---|---|---|---|---|
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/ErrorsParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | import com.ccreanga.bitbucket.rest.client.http.dto.BitBucketError;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.List;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers.errorParser;
import static com.ccreanga.bitbu... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | return listParser(errorParser()).apply(jsonObject.get("error")); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommentParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | import com.ccreanga.bitbucket.rest.client.model.Comment;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers.commentParser;
import static com.ccreanga.bitbucket.res... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | userParser().apply(json.getAsJsonObject("author")), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommentParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | import com.ccreanga.bitbucket.rest.client.model.Comment;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers.commentParser;
import static com.ccreanga.bitbucket.res... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | listParser(commentParser()).apply(json.get("comments")), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommentParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | import com.ccreanga.bitbucket.rest.client.model.Comment;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers.commentParser;
import static com.ccreanga.bitbucket.res... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | listParser(commentParser()).apply(json.get("comments")), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommentParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | import com.ccreanga.bitbucket.rest.client.model.Comment;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers.commentParser;
import static com.ccreanga.bitbucket.res... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Comment.java
// public class Comment implements Serializable {
//
// private long id;
// private long version;
// private String text;
// private User author;
// private Date created;
// private Date updated;
// private List<Co... | permittedOperationsParser().apply(json.getAsJsonObject("permittedOperations")) |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/TaskParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | import com.ccreanga.bitbucket.rest.client.model.Task;
import com.ccreanga.bitbucket.rest.client.model.TaskState;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import java.util.function.Function;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | TaskState.valueOf(json.get("state").getAsString()), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/TaskParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | import com.ccreanga.bitbucket.rest.client.model.Task;
import com.ccreanga.bitbucket.rest.client.model.TaskState;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import java.util.function.Function;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | commentParser().apply(json.getAsJsonObject("anchor")), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/TaskParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | import com.ccreanga.bitbucket.rest.client.model.Task;
import com.ccreanga.bitbucket.rest.client.model.TaskState;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import java.util.function.Function;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | userParser().apply(json.getAsJsonObject("author")), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/TaskParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | import com.ccreanga.bitbucket.rest.client.model.Task;
import com.ccreanga.bitbucket.rest.client.model.TaskState;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Date;
import java.util.function.Function;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Task.java
// public class Task implements Serializable {
//
// private long id;
// private TaskState taskState;
// private String text;
// private Date created;
// private Comment comment;
// private User user;
// private TaskO... | taskOperationsParser().apply(json.getAsJsonObject("permittedOperations")) |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/GenericException.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | import com.ccreanga.bitbucket.rest.client.http.dto.BitBucketError;
import javax.annotation.Nullable;
import java.util.List; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | public GenericException(List<BitBucketError> errors, int statusCode, String statusMessage, String responseBody) { |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommitParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Commit.java
// public class Commit implements Serializable {
//
// private String id;
// private String displayId;
// private String authorName;
// private String authorEmail;
// private long authorTimestamp;
// private String mess... | import com.ccreanga.bitbucket.rest.client.model.Commit;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers.listParser;
import static com.ccreanga.bitbucket.rest.client.http.responseparse... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Commit.java
// public class Commit implements Serializable {
//
// private String id;
// private String displayId;
// private String authorName;
// private String authorEmail;
// private long authorTimestamp;
// private String mess... | listParser(minimalCommitParser()).apply(json.get("parents")) |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommitParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Commit.java
// public class Commit implements Serializable {
//
// private String id;
// private String displayId;
// private String authorName;
// private String authorEmail;
// private long authorTimestamp;
// private String mess... | import com.ccreanga.bitbucket.rest.client.model.Commit;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers.listParser;
import static com.ccreanga.bitbucket.rest.client.http.responseparse... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Commit.java
// public class Commit implements Serializable {
//
// private String id;
// private String displayId;
// private String authorName;
// private String authorEmail;
// private long authorTimestamp;
// private String mess... | listParser(minimalCommitParser()).apply(json.get("parents")) |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/SshClient.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Page.java
// public class Page<T> implements Serializable {
// private int size;
// private int limit;
// private boolean lastPage;
// private int start;
// @Nullable
// private Integer nextPageStart;
// @Nonnull
// private ... | import com.ccreanga.bitbucket.rest.client.model.Page;
import com.ccreanga.bitbucket.rest.client.model.RepositorySshKey;
import com.ccreanga.bitbucket.rest.client.model.UserSshKey; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Page.java
// public class Page<T> implements Serializable {
// private int size;
// private int limit;
// private boolean lastPage;
// private int start;
// @Nullable
// private Integer nextPageStart;
// @Nonnull
// private ... | Page<UserSshKey> getCurrentUserKeys(Range range); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/ProjectParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | import com.ccreanga.bitbucket.rest.client.model.Project;
import java.util.function.Function;
import com.ccreanga.bitbucket.rest.client.model.ProjectType;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonBo... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | selfUrl = linkParser().apply(json.getAsJsonObject("links").get("self").getAsJsonArray().get(0)).getHref(); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/ProjectParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | import com.ccreanga.bitbucket.rest.client.model.Project;
import java.util.function.Function;
import com.ccreanga.bitbucket.rest.client.model.ProjectType;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonBo... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | optionalJsonString(json, "description"), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/ProjectParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | import com.ccreanga.bitbucket.rest.client.model.Project;
import java.util.function.Function;
import com.ccreanga.bitbucket.rest.client.model.ProjectType;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonBo... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | optionalJsonBoolean(json, "public"), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/ProjectParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | import com.ccreanga.bitbucket.rest.client.model.Project;
import java.util.function.Function;
import com.ccreanga.bitbucket.rest.client.model.ProjectType;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonBo... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Project.java
// public class Project implements Serializable {
// private String key;
// private long id;
// private String name;
// @Nullable
// private String description;
// private boolean isPublic;
// private boolean isPers... | ProjectType.valueOf(json.get("type").getAsString()), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestApprovedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | public PullRequestApprovedActivity(Long id, Date createdDate, User user, long pullRequestId) { |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/ResourceNotFoundException.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | import com.ccreanga.bitbucket.rest.client.http.dto.BitBucketError;
import java.util.Collections; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | super(Collections.<BitBucketError>emptyList(),statusCode,message, statusMessage); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestOpenedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | public PullRequestOpenedActivity(Long id, Date createdDate, User user, long pullRequestId) { |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestUnapprovedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.util.Date;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | protected User user; |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestReOpenedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.util.Date;
import java.util.Objects; | package com.ccreanga.bitbucket.rest.client.model.pull.activity;
public class PullRequestReOpenedActivity extends PullRequestActivity{
protected Long id;
protected Date createdDate; | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | protected User user; |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/PullRequestParticipantParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import com.ccreanga.bitbucket.rest.client.model.pull.PullRequestParticipant;
import com.ccreanga.bitbucket.rest.client.model.pull.PullRequestRole;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import stati... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | User user = userParser().apply(jsonObject.getAsJsonObject("user")); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/PullRequestParticipantParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import com.ccreanga.bitbucket.rest.client.model.pull.PullRequestParticipant;
import com.ccreanga.bitbucket.rest.client.model.pull.PullRequestRole;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import stati... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | User user = userParser().apply(jsonObject.getAsJsonObject("user")); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/PullRequestParticipantParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import com.ccreanga.bitbucket.rest.client.model.pull.PullRequestParticipant;
import com.ccreanga.bitbucket.rest.client.model.pull.PullRequestRole;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import stati... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | PullRequestRole.valueOf(jsonObject.get("role").getAsString()), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/DiffSegmentParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/diff/DiffSegment.java
// public class DiffSegment implements Serializable {
//
// @Nonnull
// private List<DiffLine> lines;
// @Nonnull
// private DiffSegmentType type;
// private boolean truncated;
//
// private DiffSegment() {
... | import com.ccreanga.bitbucket.rest.client.model.diff.DiffSegment;
import com.ccreanga.bitbucket.rest.client.model.diff.DiffSegmentType;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/diff/DiffSegment.java
// public class DiffSegment implements Serializable {
//
// @Nonnull
// private List<DiffLine> lines;
// @Nonnull
// private DiffSegmentType type;
// private boolean truncated;
//
// private DiffSegment() {
... | listParser(diffLineParser()).apply(json.get("lines")), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/DiffSegmentParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/diff/DiffSegment.java
// public class DiffSegment implements Serializable {
//
// @Nonnull
// private List<DiffLine> lines;
// @Nonnull
// private DiffSegmentType type;
// private boolean truncated;
//
// private DiffSegment() {
... | import com.ccreanga.bitbucket.rest.client.model.diff.DiffSegment;
import com.ccreanga.bitbucket.rest.client.model.diff.DiffSegmentType;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/diff/DiffSegment.java
// public class DiffSegment implements Serializable {
//
// @Nonnull
// private List<DiffLine> lines;
// @Nonnull
// private DiffSegmentType type;
// private boolean truncated;
//
// private DiffSegment() {
... | listParser(diffLineParser()).apply(json.get("lines")), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/DiffSegmentParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/diff/DiffSegment.java
// public class DiffSegment implements Serializable {
//
// @Nonnull
// private List<DiffLine> lines;
// @Nonnull
// private DiffSegmentType type;
// private boolean truncated;
//
// private DiffSegment() {
... | import com.ccreanga.bitbucket.rest.client.model.diff.DiffSegment;
import com.ccreanga.bitbucket.rest.client.model.diff.DiffSegmentType;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.Parsers... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/diff/DiffSegment.java
// public class DiffSegment implements Serializable {
//
// @Nonnull
// private List<DiffLine> lines;
// @Nonnull
// private DiffSegmentType type;
// private boolean truncated;
//
// private DiffSegment() {
... | DiffSegmentType.valueOf(json.get("type").getAsString()), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/UnauthorizedException.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | import com.ccreanga.bitbucket.rest.client.http.dto.BitBucketError;
import java.util.Collections;
import java.util.List; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/http/dto/BitBucketError.java
// public class BitBucketError {
// private String message;
// private String context;
// private String exceptionName;
//
// public BitBucketError(String message, String context, String exceptionName) {
// t... | super(Collections.<BitBucketError>emptyList(),statusCode,message, statusMessage); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/PageParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Page.java
// public class Page<T> implements Serializable {
// private int size;
// private int limit;
// private boolean lastPage;
// private int start;
// @Nullable
// private Integer nextPageStart;
// @Nonnull
// private ... | import com.ccreanga.bitbucket.rest.client.model.Page;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.List;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonBoolean;
import static com.ccreanga.bitbuck... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Page.java
// public class Page<T> implements Serializable {
// private int size;
// private int limit;
// private boolean lastPage;
// private int start;
// @Nullable
// private Integer nextPageStart;
// @Nonnull
// private ... | optionalJsonBoolean(json, "isLastPage"), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/PageParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Page.java
// public class Page<T> implements Serializable {
// private int size;
// private int limit;
// private boolean lastPage;
// private int start;
// @Nullable
// private Integer nextPageStart;
// @Nonnull
// private ... | import com.ccreanga.bitbucket.rest.client.model.Page;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.List;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonBoolean;
import static com.ccreanga.bitbuck... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Page.java
// public class Page<T> implements Serializable {
// private int size;
// private int limit;
// private boolean lastPage;
// private int start;
// @Nullable
// private Integer nextPageStart;
// @Nonnull
// private ... | (int) optionalJsonLong(json, "nextPageStart"), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestUpdatedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.util.Date; | package com.ccreanga.bitbucket.rest.client.model.pull.activity;
public class PullRequestUpdatedActivity extends PullRequestActivity {
public PullRequestUpdatedActivity() {
}
| // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | public PullRequestUpdatedActivity(Long id, Date createdDate, User user, long pullRequestId) { |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/PullRequestBranchParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/PullRequestBranch.java
// public class PullRequestBranch implements Serializable {
//
// private String id;
// private String repositorySlug;
// private String repositoryName;
// private String projectKey;
//
// private PullRequ... | import com.ccreanga.bitbucket.rest.client.model.pull.PullRequestBranch;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonString; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/PullRequestBranch.java
// public class PullRequestBranch implements Serializable {
//
// private String id;
// private String repositorySlug;
// private String repositoryName;
// private String projectKey;
//
// private PullRequ... | optionalJsonString(repository, "name"), |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/LinkParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Link.java
// public class Link implements Serializable {
// private String href;
// private String name;
//
// private Link() {
// }
//
// public Link(String href, String name) {
// this.href = href;
// this.name = nam... | import com.ccreanga.bitbucket.rest.client.model.Link;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbucket.rest.client.http.responseparsers.ParserUtil.optionalJsonString; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/Link.java
// public class Link implements Serializable {
// private String href;
// private String name;
//
// private Link() {
// }
//
// public Link(String href, String name) {
// this.href = href;
// this.name = nam... | String href = optionalJsonString(json,linkName); |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestDeclinedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | public PullRequestDeclinedActivity(Long id, Date createdDate, User user, long pullRequestId) { |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.io.Serializable;
import java.util.Date; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | protected User user; |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/UserParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import com.ccreanga.bitbucket.rest.client.model.UserType;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | UserType.valueOf(json.get("type").getAsString()) |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/PullRequestChange.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/FileChangeType.java
// public enum FileChangeType implements Serializable {
//
// MOVE,MODIFY,ADD
// }
//
// Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/NodeType.java
// public enum NodeType implements Serializable {
//
// FILE
... | import com.ccreanga.bitbucket.rest.client.model.FileChangeType;
import com.ccreanga.bitbucket.rest.client.model.NodeType;
import com.ccreanga.bitbucket.rest.client.model.Path;
import java.io.Serializable;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/FileChangeType.java
// public enum FileChangeType implements Serializable {
//
// MOVE,MODIFY,ADD
// }
//
// Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/NodeType.java
// public enum NodeType implements Serializable {
//
// FILE
... | private Path path; |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/PullRequestChange.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/FileChangeType.java
// public enum FileChangeType implements Serializable {
//
// MOVE,MODIFY,ADD
// }
//
// Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/NodeType.java
// public enum NodeType implements Serializable {
//
// FILE
... | import com.ccreanga.bitbucket.rest.client.model.FileChangeType;
import com.ccreanga.bitbucket.rest.client.model.NodeType;
import com.ccreanga.bitbucket.rest.client.model.Path;
import java.io.Serializable;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/FileChangeType.java
// public enum FileChangeType implements Serializable {
//
// MOVE,MODIFY,ADD
// }
//
// Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/NodeType.java
// public enum NodeType implements Serializable {
//
// FILE
... | private FileChangeType type; |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/PullRequestChange.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/FileChangeType.java
// public enum FileChangeType implements Serializable {
//
// MOVE,MODIFY,ADD
// }
//
// Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/NodeType.java
// public enum NodeType implements Serializable {
//
// FILE
... | import com.ccreanga.bitbucket.rest.client.model.FileChangeType;
import com.ccreanga.bitbucket.rest.client.model.NodeType;
import com.ccreanga.bitbucket.rest.client.model.Path;
import java.io.Serializable;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/FileChangeType.java
// public enum FileChangeType implements Serializable {
//
// MOVE,MODIFY,ADD
// }
//
// Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/NodeType.java
// public enum NodeType implements Serializable {
//
// FILE
... | private NodeType nodeType; |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestMergedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.util.Date;
import java.util.Objects; | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | public PullRequestMergedActivity(Long id, Date createdDate, User user, long pullRequestId) { |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommentAnchorParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/CommentAnchor.java
// public class CommentAnchor implements Serializable {
//
// private String fromHash;
// @Nonnull
// private String toHash;
// private long line;
// private LineType lineType;
// private FileType fileType;
// ... | import com.ccreanga.bitbucket.rest.client.model.CommentAnchor;
import com.ccreanga.bitbucket.rest.client.model.FileType;
import com.ccreanga.bitbucket.rest.client.model.LineType;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbuck... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/CommentAnchor.java
// public class CommentAnchor implements Serializable {
//
// private String fromHash;
// @Nonnull
// private String toHash;
// private long line;
// private LineType lineType;
// private FileType fileType;
// ... | json.has("lineType")?LineType.valueOf(json.get("lineType").getAsString()):null, |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/http/responseparsers/CommentAnchorParser.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/CommentAnchor.java
// public class CommentAnchor implements Serializable {
//
// private String fromHash;
// @Nonnull
// private String toHash;
// private long line;
// private LineType lineType;
// private FileType fileType;
// ... | import com.ccreanga.bitbucket.rest.client.model.CommentAnchor;
import com.ccreanga.bitbucket.rest.client.model.FileType;
import com.ccreanga.bitbucket.rest.client.model.LineType;
import java.util.function.Function;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import static com.ccreanga.bitbuck... | /*
*
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writ... | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/CommentAnchor.java
// public class CommentAnchor implements Serializable {
//
// private String fromHash;
// @Nonnull
// private String toHash;
// private long line;
// private LineType lineType;
// private FileType fileType;
// ... | json.has("fileType")?FileType.valueOf(json.get("fileType").getAsString()):null, |
cornelcreanga/bitbucket-rest-client | src/main/java/com/ccreanga/bitbucket/rest/client/model/pull/activity/PullRequestReviewedActivity.java | // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | import com.ccreanga.bitbucket.rest.client.model.User;
import java.util.Date; | package com.ccreanga.bitbucket.rest.client.model.pull.activity;
public class PullRequestReviewedActivity extends PullRequestActivity {
public PullRequestReviewedActivity() {
}
| // Path: src/main/java/com/ccreanga/bitbucket/rest/client/model/User.java
// public class User implements Serializable {
//
// private long id;
// private String name;
// private String emailAddress;
// private String displayName;
// private boolean active;
// private String slug;
// privat... | public PullRequestReviewedActivity(Long id, Date createdDate, User user, long pullRequestId) { |
josedab/spring-cloud-examples | zuul-proxy/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import com.josedab.example.model.SocialProfile;
import com.josedab.example.repository.SocialProfileRepository; | package com.josedab.example.clr;
@Component
public class SocialProfileClr implements CommandLineRunner {
@Autowired | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | private SocialProfileRepository socialProfileRepository; |
josedab/spring-cloud-examples | zuul-proxy/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import com.josedab.example.model.SocialProfile;
import com.josedab.example.repository.SocialProfileRepository; | package com.josedab.example.clr;
@Component
public class SocialProfileClr implements CommandLineRunner {
@Autowired
private SocialProfileRepository socialProfileRepository;
@Override
public void run(String... arg0) throws Exception {
Stream.<String>of("Kanye West",
... | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); |
josedab/spring-cloud-examples | zipkin-distributed-tracing/zuul-service/src/main/java/com/josedab/example/controller/SocialProfileApiGatewayController.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import java.util.ArrayList;
import java.util.Collection;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.hateoas.Resources;
import org.springframework.http.HttpMethod;
import org.spr... | package com.josedab.example.controller;
@RestController
@RequestMapping("/profiles")
public class SocialProfileApiGatewayController {
private static final String SERVICE_A = "svca-service";
private static final String SERVICE_B = "svcb-service";
@Autowired
private RestTemplate restTemplate;
... | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | ParameterizedTypeReference<Resources<SocialProfile>> typeReference = new ParameterizedTypeReference<Resources<SocialProfile>>() {}; |
josedab/spring-cloud-examples | zuul-proxy/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import com.josedab.example.model.SocialProfile;
import com.josedab.example.repository.SocialProfileRepository; | package com.josedab.example.clr;
@Component
public class SocialProfileClr implements CommandLineRunner {
@Autowired | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | private SocialProfileRepository socialProfileRepository; |
josedab/spring-cloud-examples | zuul-proxy/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import com.josedab.example.model.SocialProfile;
import com.josedab.example.repository.SocialProfileRepository; | package com.josedab.example.clr;
@Component
public class SocialProfileClr implements CommandLineRunner {
@Autowired
private SocialProfileRepository socialProfileRepository;
@Override
public void run(String... arg0) throws Exception {
Stream.<String>of("Katy Perry",
... | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); |
josedab/spring-cloud-examples | zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/processor/SocialProfileProcessor.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.integration.annotation.MessageEndpoint;
import org.springframework.integration.annotation.ServiceActivator;
import com.josedab.example.model.SocialProfile;
import com.josedab... | package com.josedab.example.processor;
@MessageEndpoint
public class SocialProfileProcessor {
@Autowired | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | private SocialProfileRepository socialProfileRepository; |
josedab/spring-cloud-examples | zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/processor/SocialProfileProcessor.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.integration.annotation.MessageEndpoint;
import org.springframework.integration.annotation.ServiceActivator;
import com.josedab.example.model.SocialProfile;
import com.josedab... | package com.josedab.example.processor;
@MessageEndpoint
public class SocialProfileProcessor {
@Autowired
private SocialProfileRepository socialProfileRepository;
@ServiceActivator(inputChannel = Sink.INPUT)
public void acceptNewProfiles(String profileName) {
System.out.println("Got new prof... | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | socialProfileRepository.save(new SocialProfile(profileName)); |
josedab/spring-cloud-examples | zuul-proxy/zuul-service/src/main/java/com/josedab/example/controller/SocialProfileApiGatewayController.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import java.util.ArrayList;
import java.util.Collection;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.hateoas.Resources;
import org.springframework.http.HttpMethod;
import org.spr... | package com.josedab.example.controller;
@RestController
@RequestMapping("/profiles")
public class SocialProfileApiGatewayController {
private static final String SERVICE_A = "svca-service";
private static final String SERVICE_B = "svcb-service";
@Autowired
private RestTemplate restTemplate;
... | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | ParameterizedTypeReference<Resources<SocialProfile>> typeReference = new ParameterizedTypeReference<Resources<SocialProfile>>() {}; |
josedab/spring-cloud-examples | zuul-proxy-cloud-bus/zuul-service/src/main/java/com/josedab/example/controller/SocialProfileApiGatewayController.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import java.util.ArrayList;
import java.util.Collection;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.cloud.stream... | package com.josedab.example.controller;
@RestController
@RequestMapping("/profiles")
public class SocialProfileApiGatewayController {
private static final String SERVICE_A = "svca-service";
private static final String SERVICE_B = "svcb-service";
@Autowired
private RestTemplate restTemplate;
... | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | ParameterizedTypeReference<Resources<SocialProfile>> typeReference = new ParameterizedTypeReference<Resources<SocialProfile>>() { |
josedab/spring-cloud-examples | zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/processor/SocialProfileProcessor.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.integration.annotation.MessageEndpoint;
import org.springframework.integration.annotation.ServiceActivator;
import com.josedab.example.model.SocialProfile;
import com.josedab... | package com.josedab.example.processor;
@MessageEndpoint
public class SocialProfileProcessor {
@Autowired | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | private SocialProfileRepository socialProfileRepository; |
josedab/spring-cloud-examples | zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/processor/SocialProfileProcessor.java | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.integration.annotation.MessageEndpoint;
import org.springframework.integration.annotation.ServiceActivator;
import com.josedab.example.model.SocialProfile;
import com.josedab... | package com.josedab.example.processor;
@MessageEndpoint
public class SocialProfileProcessor {
@Autowired
private SocialProfileRepository socialProfileRepository;
@ServiceActivator(inputChannel = Sink.INPUT)
public void acceptNewProfiles(String profileName) { | // Path: zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java
// @Entity
// public class SocialProfile {
//
// @Id
// @GeneratedValue
// private Long id;
// private String name;
//
// public SocialProfile() {}
//
// public SocialProfile(String name) {
// ... | socialProfileRepository.save(new SocialProfile(profileName)); |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts1CollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1Transformer.java
// public class Struts1Transformer extends AbstractLeechTransformer {
//
// public Struts1Transformer() {
// super("org/apache/struts/action/ActionServlet");
// addImportPackage(collectPackages());
// }
//... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts1Transformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static org.fest.a... | package com.highway2urhell.collector;
public class Struts1CollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException { | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1Transformer.java
// public class Struts1Transformer extends AbstractLeechTransformer {
//
// public Struts1Transformer() {
// super("org/apache/struts/action/ActionServlet");
// addImportPackage(collectPackages());
// }
//... | assertThat(Struts1Transformer.collectBody()) |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts1CollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1Transformer.java
// public class Struts1Transformer extends AbstractLeechTransformer {
//
// public Struts1Transformer() {
// super("org/apache/struts/action/ActionServlet");
// addImportPackage(collectPackages());
// }
//... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts1Transformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static org.fest.a... | package com.highway2urhell.collector;
public class Struts1CollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException {
assertThat(Struts1Transformer.collectBody()) | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1Transformer.java
// public class Struts1Transformer extends AbstractLeechTransformer {
//
// public Struts1Transformer() {
// super("org/apache/struts/action/ActionServlet");
// addImportPackage(collectPackages());
// }
//... | .isEqualTo(extractBody("./src/test/java/com/highway2urhell/collector/Struts1Collector.java", "collectBody")); |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts1CollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1Transformer.java
// public class Struts1Transformer extends AbstractLeechTransformer {
//
// public Struts1Transformer() {
// super("org/apache/struts/action/ActionServlet");
// addImportPackage(collectPackages());
// }
//... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts1Transformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static org.fest.a... | package com.highway2urhell.collector;
public class Struts1CollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException {
assertThat(Struts1Transformer.collectBody())
.isEqualTo(extractBody("./src/test/java/com/highway2urhell/collector/Struts1Collector.... | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1Transformer.java
// public class Struts1Transformer extends AbstractLeechTransformer {
//
// public Struts1Transformer() {
// super("org/apache/struts/action/ActionServlet");
// addImportPackage(collectPackages());
// }
//... | .isEqualTo(extractPackages("./src/test/java/com/highway2urhell/collector/Struts1Collector.java")); |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/agent/H2hellAgent.java | // Path: h2hell-core/src/main/java/com/highway2urhell/PluginUtils.java
// public class PluginUtils {
//
// private PluginUtils() {
// }
//
// public static <T> Set<T> autodiscoverPlugin(Class<T> pluginClass) {
// Set pluginList = new HashSet();
// Reflections reflections = new Reflections(... | import com.highway2urhell.PluginUtils;
import com.highway2urhell.transformer.AbstractLeechTransformer;
import java.io.File;
import java.lang.instrument.Instrumentation;
import java.lang.reflect.Method;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util... | package com.highway2urhell.agent;
public class H2hellAgent {
public static void premain(String agentArgs, Instrumentation inst) {
// Hack for load Jar
findJarAndLoadIfNecessary(); | // Path: h2hell-core/src/main/java/com/highway2urhell/PluginUtils.java
// public class PluginUtils {
//
// private PluginUtils() {
// }
//
// public static <T> Set<T> autodiscoverPlugin(Class<T> pluginClass) {
// Set pluginList = new HashSet();
// Reflections reflections = new Reflections(... | for (AbstractLeechTransformer transformer : PluginUtils.autodiscoverPlugin(AbstractLeechTransformer.class)) { |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/agent/H2hellAgent.java | // Path: h2hell-core/src/main/java/com/highway2urhell/PluginUtils.java
// public class PluginUtils {
//
// private PluginUtils() {
// }
//
// public static <T> Set<T> autodiscoverPlugin(Class<T> pluginClass) {
// Set pluginList = new HashSet();
// Reflections reflections = new Reflections(... | import com.highway2urhell.PluginUtils;
import com.highway2urhell.transformer.AbstractLeechTransformer;
import java.io.File;
import java.lang.instrument.Instrumentation;
import java.lang.reflect.Method;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util... | package com.highway2urhell.agent;
public class H2hellAgent {
public static void premain(String agentArgs, Instrumentation inst) {
// Hack for load Jar
findJarAndLoadIfNecessary(); | // Path: h2hell-core/src/main/java/com/highway2urhell/PluginUtils.java
// public class PluginUtils {
//
// private PluginUtils() {
// }
//
// public static <T> Set<T> autodiscoverPlugin(Class<T> pluginClass) {
// Set pluginList = new HashSet();
// Reflections reflections = new Reflections(... | for (AbstractLeechTransformer transformer : PluginUtils.autodiscoverPlugin(AbstractLeechTransformer.class)) { |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/TransformerService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | import com.highway2urhell.domain.EntryPathData;
import com.highway2urhell.domain.FilterEntryPath;
import java.lang.instrument.Instrumentation;
import java.lang.instrument.UnmodifiableClassException;
import java.util.*; | package com.highway2urhell.service;
public class TransformerService {
public void transformAllClassScanByH2h(Instrumentation inst,
Set<String> entryClassName) {
for (String classNameNormalized : entryClassName) {
String className = classNameNormali... | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | private Boolean filterEntry(FilterEntryPath filterEntryPath, EntryPathData entryPath) { |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/TransformerService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | import com.highway2urhell.domain.EntryPathData;
import com.highway2urhell.domain.FilterEntryPath;
import java.lang.instrument.Instrumentation;
import java.lang.instrument.UnmodifiableClassException;
import java.util.*; | package com.highway2urhell.service;
public class TransformerService {
public void transformAllClassScanByH2h(Instrumentation inst,
Set<String> entryClassName) {
for (String classNameNormalized : entryClassName) {
String className = classNameNormali... | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | private Boolean filterEntry(FilterEntryPath filterEntryPath, EntryPathData entryPath) { |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/RmiService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | import com.highway2urhell.domain.EntryPathData;
import com.highway2urhell.service.AbstractLeechService;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.List; | package com.highway2urhell.service.impl;
public class RmiService extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "RMI";
public RmiService() {
super(FRAMEWORK_NAME);
}
@Override | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | protected void gatherData(List<EntryPathData> incoming) { |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/AbstractLeechService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | import com.highway2urhell.domain.EntryPathData;
import com.highway2urhell.domain.FrameworkInformations;
import org.objectweb.asm.Type;
import java.lang.reflect.Method;
import java.util.List; | package com.highway2urhell.service;
public abstract class AbstractLeechService implements LeechService {
private FrameworkInformations frameworkInformations = new FrameworkInformations();
private boolean triggeredAtStartup = false;
public AbstractLeechService(String frameworkName) {
framework... | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | public void receiveData(List<EntryPathData> incoming) { |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/Struts1Service.java | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | import com.highway2urhell.VersionUtils;
import com.highway2urhell.service.AbstractLeechService; | package com.highway2urhell.service.impl;
public class Struts1Service extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "STRUTS_1";
public Struts1Service() { | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | super(FRAMEWORK_NAME, VersionUtils.getVersion( |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts1WithSpringCollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1WithSpringTransformer.java
// public class Struts1WithSpringTransformer extends AbstractLeechTransformer {
//
// public Struts1WithSpringTransformer() {
// super("org/springframework/web/struts/ContextLoaderPlugIn");
// addImp... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts1WithSpringTransformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static ... | package com.highway2urhell.collector;
public class Struts1WithSpringCollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException { | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1WithSpringTransformer.java
// public class Struts1WithSpringTransformer extends AbstractLeechTransformer {
//
// public Struts1WithSpringTransformer() {
// super("org/springframework/web/struts/ContextLoaderPlugIn");
// addImp... | assertThat(Struts1WithSpringTransformer.collectBody()) |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts1WithSpringCollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1WithSpringTransformer.java
// public class Struts1WithSpringTransformer extends AbstractLeechTransformer {
//
// public Struts1WithSpringTransformer() {
// super("org/springframework/web/struts/ContextLoaderPlugIn");
// addImp... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts1WithSpringTransformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static ... | package com.highway2urhell.collector;
public class Struts1WithSpringCollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException {
assertThat(Struts1WithSpringTransformer.collectBody()) | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1WithSpringTransformer.java
// public class Struts1WithSpringTransformer extends AbstractLeechTransformer {
//
// public Struts1WithSpringTransformer() {
// super("org/springframework/web/struts/ContextLoaderPlugIn");
// addImp... | .isEqualTo(extractBody("./src/test/java/com/highway2urhell/collector/Struts1WithSpringCollector.java", "collectBody")); |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts1WithSpringCollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1WithSpringTransformer.java
// public class Struts1WithSpringTransformer extends AbstractLeechTransformer {
//
// public Struts1WithSpringTransformer() {
// super("org/springframework/web/struts/ContextLoaderPlugIn");
// addImp... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts1WithSpringTransformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static ... | package com.highway2urhell.collector;
public class Struts1WithSpringCollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException {
assertThat(Struts1WithSpringTransformer.collectBody())
.isEqualTo(extractBody("./src/test/java/com/highway2urhell/collect... | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts1WithSpringTransformer.java
// public class Struts1WithSpringTransformer extends AbstractLeechTransformer {
//
// public Struts1WithSpringTransformer() {
// super("org/springframework/web/struts/ContextLoaderPlugIn");
// addImp... | .isEqualTo(extractPackages("./src/test/java/com/highway2urhell/collector/Struts1WithSpringCollector.java")); |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/StrutsSpring1Service.java | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | import com.highway2urhell.VersionUtils;
import com.highway2urhell.service.AbstractLeechService; | package com.highway2urhell.service.impl;
public class StrutsSpring1Service extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "STRUTS_SPRING_1";
public StrutsSpring1Service() { | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | super(FRAMEWORK_NAME, VersionUtils.getVersion( |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/GwtService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | import com.highway2urhell.VersionUtils;
import com.highway2urhell.service.AbstractLeechService; | package com.highway2urhell.service.impl;
public class GwtService extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "GWT";
public GwtService() { | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | super(FRAMEWORK_NAME, VersionUtils.getVersion( |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts2CollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts2Transformer.java
// public class Struts2Transformer extends AbstractLeechTransformer {
//
// public Struts2Transformer() {
// super("org/apache/struts2/dispatcher/ng/filter/StrutsPrepareAndExecuteFilter");
// addImportPackage(... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts2Transformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static org.fest.a... | package com.highway2urhell.collector;
public class Struts2CollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException { | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts2Transformer.java
// public class Struts2Transformer extends AbstractLeechTransformer {
//
// public Struts2Transformer() {
// super("org/apache/struts2/dispatcher/ng/filter/StrutsPrepareAndExecuteFilter");
// addImportPackage(... | assertThat(Struts2Transformer.collectBody()) |
highway-to-urhell/highway-to-urhell | h2hell-core/src/test/java/com/highway2urhell/collector/Struts2CollectorTest.java | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts2Transformer.java
// public class Struts2Transformer extends AbstractLeechTransformer {
//
// public Struts2Transformer() {
// super("org/apache/struts2/dispatcher/ng/filter/StrutsPrepareAndExecuteFilter");
// addImportPackage(... | import com.github.javaparser.ParseException;
import com.highway2urhell.transformer.Struts2Transformer;
import org.junit.Test;
import java.io.FileNotFoundException;
import static com.highway2urhell.utils.ParsingUtil.extractBody;
import static com.highway2urhell.utils.ParsingUtil.extractPackages;
import static org.fest.a... | package com.highway2urhell.collector;
public class Struts2CollectorTest {
@Test
public void checkScript() throws FileNotFoundException, ParseException {
assertThat(Struts2Transformer.collectBody()) | // Path: h2hell-core/src/main/java/com/highway2urhell/transformer/Struts2Transformer.java
// public class Struts2Transformer extends AbstractLeechTransformer {
//
// public Struts2Transformer() {
// super("org/apache/struts2/dispatcher/ng/filter/StrutsPrepareAndExecuteFilter");
// addImportPackage(... | .isEqualTo(extractBody("./src/test/java/com/highway2urhell/collector/Struts2Collector.java", "collectBody")); |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/Struts2Service.java | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | import com.highway2urhell.VersionUtils;
import com.highway2urhell.service.AbstractLeechService; | package com.highway2urhell.service.impl;
public class Struts2Service extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "STRUTS_2";
public Struts2Service() { | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | super(FRAMEWORK_NAME, VersionUtils.getVersion( |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/JSF2Service.java | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | import com.highway2urhell.VersionUtils;
import com.highway2urhell.service.AbstractLeechService; | package com.highway2urhell.service.impl;
public class JSF2Service extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "JSF_2";
public JSF2Service() { | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | super(FRAMEWORK_NAME, VersionUtils.getVersion( |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/LeechService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | import com.highway2urhell.domain.EntryPathData;
import com.highway2urhell.domain.FrameworkInformations;
import java.util.List; | package com.highway2urhell.service;
public interface LeechService {
void receiveData(List<EntryPathData> incoming);
| // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | FrameworkInformations getFrameworkInformations(); |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/ActiveMQConnectionFactoryService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | import com.highway2urhell.VersionUtils;
import com.highway2urhell.service.AbstractLeechService; | package com.highway2urhell.service.impl;
public class ActiveMQConnectionFactoryService extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "ACTIVEMQ_CONNECTION_FACTORY";
public ActiveMQConnectionFactoryService() { | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | super(FRAMEWORK_NAME, VersionUtils.getVersion( |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/PortService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | import com.highway2urhell.domain.EntryPathData;
import com.highway2urhell.domain.TypePath;
import com.highway2urhell.service.AbstractLeechService;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List; | package com.highway2urhell.service.impl;
public class PortService extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "SYSTEM-PORT";
private static final int MIN_PORT = 1024;
private static final int MAX_PORT = 65535;
public PortService() {
super(FRAMEWORK_NAME);
... | // Path: h2hell-core/src/main/java/com/highway2urhell/domain/EntryPathData.java
// public class EntryPathData {
// private String uri;
// private String methodName;
// private String className;
// private String classNameNormalized;
// private String signatureName;
// private TypePath typePath =... | protected void gatherData(List<EntryPathData> incoming) { |
highway-to-urhell/highway-to-urhell | h2hell-core/src/main/java/com/highway2urhell/service/impl/JmsQueueService.java | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | import com.highway2urhell.VersionUtils;
import com.highway2urhell.service.AbstractLeechService; | package com.highway2urhell.service.impl;
public class JmsQueueService extends AbstractLeechService {
public static final String FRAMEWORK_NAME = "JMS_11_CTX";
public JmsQueueService() { | // Path: h2hell-core/src/main/java/com/highway2urhell/VersionUtils.java
// public class VersionUtils {
//
// public static final String UNKNOWN_VERSION = "UNKNOWN";
// public static final String NO_FRAMEWORK = "NO_FRAMEWORK";
//
// private VersionUtils() {
// }
//
// public static String getVersi... | super(FRAMEWORK_NAME, VersionUtils.getVersion( |
google/git-appraise-eclipse | ui/src/com/google/appraise/eclipse/ui/editor/AppraiseDiffViewerPart.java | // Path: core/src/com/google/appraise/eclipse/core/AppraiseReviewTaskSchema.java
// public class AppraiseReviewTaskSchema extends AbstractTaskSchema {
// private static final AppraiseReviewTaskSchema instance = new AppraiseReviewTaskSchema();
//
// public static AppraiseReviewTaskSchema getDefault() {
// retur... | import com.google.appraise.eclipse.core.AppraiseReviewTaskSchema;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jgit.diff.DiffEntry.ChangeType;
import org.eclipse.mylyn.commons.ui.FillWidthLayout;
import org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil;
import org.eclipse.mylyn.tasks.core.da... | /*******************************************************************************
* Copyright (c) 2015 Google and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | // Path: core/src/com/google/appraise/eclipse/core/AppraiseReviewTaskSchema.java
// public class AppraiseReviewTaskSchema extends AbstractTaskSchema {
// private static final AppraiseReviewTaskSchema instance = new AppraiseReviewTaskSchema();
//
// public static AppraiseReviewTaskSchema getDefault() {
// retur... | AppraiseReviewTaskSchema.TYPE_DIFF); |
google/git-appraise-eclipse | ui/src/com/google/appraise/eclipse/ui/wizard/AppraiseRepositorySettingsPage.java | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | import com.google.appraise.eclipse.core.AppraiseConnectorPlugin;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.mylyn.internal.tasks.core.RepositoryTemplateManager;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.tasks... | /*******************************************************************************
* Copyright (c) 2015 Google and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | return AppraiseConnectorPlugin.CONNECTOR_KIND; |
google/git-appraise-eclipse | ui/src/com/google/appraise/eclipse/ui/editor/AppraiseReviewTaskEditorPageFactory.java | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | import com.google.appraise.eclipse.core.AppraiseConnectorPlugin;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPageFactory;
import org.eclipse.mylyn.tasks.ui.ed... | /*******************************************************************************
* Copyright (c) 2015 Google and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | return (input.getTask().getConnectorKind().equals(AppraiseConnectorPlugin.CONNECTOR_KIND) |
google/git-appraise-eclipse | ui/src/com/google/appraise/eclipse/ui/AppraiseConnectorUi.java | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | import com.google.appraise.eclipse.core.AppraiseConnectorPlugin;
import com.google.appraise.eclipse.ui.wizard.AppraiseRepositorySettingsPage;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.co... | /*******************************************************************************
* Copyright (c) 2015 Google and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | return AppraiseConnectorPlugin.CONNECTOR_KIND; |
google/git-appraise-eclipse | ui/src/com/google/appraise/eclipse/ui/AppraiseConnectorUi.java | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | import com.google.appraise.eclipse.core.AppraiseConnectorPlugin;
import com.google.appraise.eclipse.ui.wizard.AppraiseRepositorySettingsPage;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.co... | /*******************************************************************************
* Copyright (c) 2015 Google and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | return new AppraiseRepositorySettingsPage(repository); |
google/git-appraise-eclipse | ui/src/com/google/appraise/eclipse/ui/AppraiseReviewsQueryPage.java | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | import com.google.appraise.eclipse.core.AppraiseConnectorPlugin;
import org.eclipse.mylyn.commons.workbench.forms.SectionComposite;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositoryQueryPage2;
import org... | /*******************************************************************************
* Copyright (c) 2015 Google and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | // Path: core/src/com/google/appraise/eclipse/core/AppraiseConnectorPlugin.java
// public class AppraiseConnectorPlugin extends Plugin {
// /**
// * The global plugin instance.
// */
// public static AppraiseConnectorPlugin plugin;
//
// /**
// * The plugin id.
// */
// public static final String P... | String requester = query.getAttribute(AppraiseConnectorPlugin.QUERY_REQUESTER); |
IMAGINARY/jsurf | src/main/java/de/mfo/jsurf/grid/RotationGrid.java | // Path: src/main/java/de/mfo/jsurf/rendering/cpu/CPUAlgebraicSurfaceRenderer.java
// public enum AntiAliasingMode
// {
// SUPERSAMPLING,
// ADAPTIVE_SUPERSAMPLING;
// }
| import java.net.URL;
import java.util.*;
import java.io.*;
import org.apache.commons.cli.*;
import de.mfo.jsurf.algebra.*;
import de.mfo.jsurf.parser.*;
import de.mfo.jsurf.rendering.*;
import de.mfo.jsurf.rendering.cpu.*;
import de.mfo.jsurf.util.*;
import static de.mfo.jsurf.rendering.cpu.CPUAlgebraicSurfaceRenderer.... | /*
* Copyright 2008 Christian Stussak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: src/main/java/de/mfo/jsurf/rendering/cpu/CPUAlgebraicSurfaceRenderer.java
// public enum AntiAliasingMode
// {
// SUPERSAMPLING,
// ADAPTIVE_SUPERSAMPLING;
// }
// Path: src/main/java/de/mfo/jsurf/grid/RotationGrid.java
import java.net.URL;
import java.util.*;
import java.io.*;
import org.apache.comm... | static AntiAliasingMode aam; |
mobilejazz/CacheIO | cacheio-serializers/cacheio-gson-serializer/src/main/java/com/mobilejazz/cacheio/serializers/gson/GsonValueMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-core/src/main/jav... | import com.google.gson.Gson;
import com.mobilejazz.cacheio.mappers.ValueMapper;
import com.mobilejazz.cacheio.exceptions.SerializerException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream; | package com.mobilejazz.cacheio.serializers.gson;
public class GsonValueMapper implements ValueMapper {
private Gson gson;
public GsonValueMapper(Gson gson) {
this.gson = gson;
}
@Override | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-core/src/main/jav... | public void write(Object value, OutputStream out) throws SerializerException { |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/key/StringKeyMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | import com.mobilejazz.cacheio.mappers.KeyMapper;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | package com.mobilejazz.cacheio.mappers.key;
public class StringKeyMapper implements KeyMapper<String> {
@Override public String toString(String model) { | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | checkArgument(model, "key cannot be null"); |
mobilejazz/CacheIO | cacheio-repository/src/main/java/com/mobilejazz/cacheio/StringKeyedRxRepository.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/Query.java
// public interface Query {
//
// String getId();
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T object, String message) {
// if (object == null) {... | import com.mobilejazz.cacheio.query.Query;
import rx.Single;
import rx.functions.Func1;
import java.util.*;
import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument;
import static com.mobilejazz.cacheio.helper.Preconditions.checkIsEmpty; | /*
* Copyright (C) 2016 Mobile Jazz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/Query.java
// public interface Query {
//
// String getId();
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T object, String message) {
// if (object == null) {... | checkArgument(query, "Query == null"); |
mobilejazz/CacheIO | cacheio-repository/src/main/java/com/mobilejazz/cacheio/StringKeyedRxRepository.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/Query.java
// public interface Query {
//
// String getId();
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T object, String message) {
// if (object == null) {... | import com.mobilejazz.cacheio.query.Query;
import rx.Single;
import rx.functions.Func1;
import java.util.*;
import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument;
import static com.mobilejazz.cacheio.helper.Preconditions.checkIsEmpty; | /*
* Copyright (C) 2016 Mobile Jazz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/Query.java
// public interface Query {
//
// String getId();
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T object, String message) {
// if (object == null) {... | checkIsEmpty(id, "Id == null OR empty"); |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/key/IntegerKeyMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | import com.mobilejazz.cacheio.mappers.KeyMapper;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | package com.mobilejazz.cacheio.mappers.key;
public class IntegerKeyMapper implements KeyMapper<Integer> {
@Override public String toString(Integer model) { | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | checkArgument(model, "key cannot be null"); |
mobilejazz/CacheIO | cacheio-core/src/test/java/com/mobilejazz/cacheio/wrappers/FutureCacheWrapperTest.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | import com.mobilejazz.cacheio.RxCache;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import rx.Single;
import rx.SingleSubscriber;
import java.util.*;
import java.util.concurrent.*;
import static org.assertj.core.... | package com.mobilejazz.cacheio.wrappers;
@SuppressWarnings("unchecked") @RunWith(MockitoJUnitRunner.class)
public class FutureCacheWrapperTest {
| // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | @Mock private RxCache<String, String> delegate; |
mobilejazz/CacheIO | cacheio-repository/src/test/java/com/mobilejazz/cacheio/DefaultQueryMapperTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | import com.mobilejazz.cacheio.mappers.DefaultQueryMapper;
import com.mobilejazz.cacheio.query.DefaultQuery;
import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat; | /*
* Copyright (C) 2016 Mobile Jazz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | DefaultQuery query = mapper.fromString(FAKE_QUERY); |
mobilejazz/CacheIO | cacheio-core/src/test/java/com/mobilejazz/cacheio/caches/TestValueMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-core/src/main/jav... | import com.mobilejazz.cacheio.mappers.ValueMapper;
import com.mobilejazz.cacheio.exceptions.SerializerException;
import java.io.*;
import java.util.*;
import java.util.concurrent.*; | /*
* Copyright (C) 2016 Mobile Jazz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-core/src/main/jav... | @Override public void write(Object value, OutputStream out) throws SerializerException { |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/caches/SQLiteRxCache.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.mobilejazz.cacheio.RxCache;
import com.mobilejazz.cacheio.mappers.KeyMapper;
import com.... | private final SingleSubscriber<? super Map<K, V>> subscriber;
private final Date now = new Date();
public GetAll(Collection<K> keys, SingleSubscriber<? super Map<K, V>> subscriber) {
this.keys = keys;
this.subscriber = subscriber;
}
@Override public void run() {
try {
f... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | final ValueMapper valueValueMapper = config.valueMapper; |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/caches/SQLiteRxCache.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.mobilejazz.cacheio.RxCache;
import com.mobilejazz.cacheio.mappers.KeyMapper;
import com.... |
subscriber.onSuccess(result);
} catch (Throwable t) {
subscriber.onError(t);
}
}
}
private final class PutAll implements Runnable {
private final Map<K, V> map;
private final long expiry;
private final TimeUnit expiryUnit;
private final SingleSubscriber<? super M... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | final KeyMapper<K> keyMapper = config.keyMapper; |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/caches/SQLiteRxCache.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.mobilejazz.cacheio.RxCache;
import com.mobilejazz.cacheio.mappers.KeyMapper;
import com.... | subscriber.onSuccess(result);
} catch (Throwable t) {
subscriber.onError(t);
}
}
}
private final class PutAll implements Runnable {
private final Map<K, V> map;
private final long expiry;
private final TimeUnit expiryUnit;
private final SingleSubscriber<? super Ma... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | final VersionMapper<V> versionMapper = config.versionMapper; |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/caches/SQLiteRxCache.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.mobilejazz.cacheio.RxCache;
import com.mobilejazz.cacheio.mappers.KeyMapper;
import com.... | try {
final Map<K, V> result = new HashMap<>(map.size());
final long createdAt = now.getTime();
final long expiresAt =
expiry == Long.MAX_VALUE ? expiry : createdAt + expiryUnit.toMillis(expiry);
db.beginTransaction();
final Set<K> keys = map.keySet();
... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | if (valueVersion != NoOpVersionMapper.UNVERSIONED |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/caches/SQLiteRxCache.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.mobilejazz.cacheio.RxCache;
import com.mobilejazz.cacheio.mappers.KeyMapper;
import com.... | public Builder<K, V> setValueMapper(ValueMapper valueMapper) {
this.valueMapper = valueMapper;
return this;
}
public Builder<K, V> setVersionMapper(VersionMapper<V> versionMapper) {
this.versionMapper = versionMapper;
return this;
}
private void removeExpired() {
fina... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/RxCache.java
// public interface RxCache<K, V> {
//
// Single<V> get(K key);
//
// Single<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Single<K> remove(K key);
//
// Single<Map<K, V>> getAll(Collection<K> keys);
//
// Single<Map<K, V... | checkArgument(db, "Database cannot be null"); |
mobilejazz/CacheIO | cacheio-repository/src/test/java/com/mobilejazz/cacheio/PaginatedQueryMapperTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/PaginatedQueryMapper.java
// public class PaginatedQueryMapper implements KeyMapper<PaginatedQuery> {
//
// private final static String DELIMITER = "_";
//
// @Override public String toString(PaginatedQuery model) {
// checkArgument(mode... | import com.mobilejazz.cacheio.mappers.PaginatedQueryMapper;
import com.mobilejazz.cacheio.query.PaginatedQuery;
import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat; | /*
* Copyright (C) 2016 Mobile Jazz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/PaginatedQueryMapper.java
// public class PaginatedQueryMapper implements KeyMapper<PaginatedQuery> {
//
// private final static String DELIMITER = "_";
//
// @Override public String toString(PaginatedQuery model) {
// checkArgument(mode... | private PaginatedQueryMapper mapper; |
mobilejazz/CacheIO | cacheio-repository/src/test/java/com/mobilejazz/cacheio/PaginatedQueryMapperTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/PaginatedQueryMapper.java
// public class PaginatedQueryMapper implements KeyMapper<PaginatedQuery> {
//
// private final static String DELIMITER = "_";
//
// @Override public String toString(PaginatedQuery model) {
// checkArgument(mode... | import com.mobilejazz.cacheio.mappers.PaginatedQueryMapper;
import com.mobilejazz.cacheio.query.PaginatedQuery;
import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat; | /*
* Copyright (C) 2016 Mobile Jazz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/PaginatedQueryMapper.java
// public class PaginatedQueryMapper implements KeyMapper<PaginatedQuery> {
//
// private final static String DELIMITER = "_";
//
// @Override public String toString(PaginatedQuery model) {
// checkArgument(mode... | PaginatedQuery query = |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.