query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Constructs a new board, that take the dimension as its only parameter, and initialize a game board with the empty slot at (0,0). Added in Abstract model, thus passing in new Triangle board as parameter to super. | public TriangleSolitaireModelImpl(int dimensions) throws IllegalArgumentException {
super(new TriangleBoard(dimensions));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}",
"public Board(float width, float height) {\r\n tablero = new Array<BlockDrawable>();\r\n this.width = width;\r\n this.height = height;\r\n del... | [
"0.71569955",
"0.7112845",
"0.7063192",
"0.7047477",
"0.6914882",
"0.68455386",
"0.68211436",
"0.6806238",
"0.6802017",
"0.67800575",
"0.6731257",
"0.6726614",
"0.67080355",
"0.6684902",
"0.6662173",
"0.66570705",
"0.6641485",
"0.66276366",
"0.66216636",
"0.66160506",
"0.6612... | 0.63717765 | 35 |
Constructs a new board, that take two parameters: emptyRow and emptyCol and initialize the game board, so that the dimension is 5 and the empty slot is at the position (emptyRow, emptyCol). Added in Abstract model, thus passing in new Triangle board as parameter to super. | public TriangleSolitaireModelImpl(int emptyRow, int emptyCol) throws IllegalArgumentException {
super(new TriangleBoard(emptyRow, emptyCol));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TriangleSolitaireModelImpl(int dimensions, int emptyRow, int emptyCol)\r\n throws IllegalArgumentException {\r\n super(new TriangleBoard(dimensions, emptyRow, emptyCol));\r\n }",
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"public Board() {\n\t\tintializeBoard(_RowCountDefault, _Col... | [
"0.7225159",
"0.7035086",
"0.68230116",
"0.6774548",
"0.6730465",
"0.67280644",
"0.67258894",
"0.6716293",
"0.67070687",
"0.6631399",
"0.66302985",
"0.659501",
"0.65634847",
"0.65586066",
"0.65561086",
"0.6540908",
"0.6495746",
"0.6482492",
"0.64731336",
"0.6455855",
"0.64271... | 0.7367744 | 0 |
Constructs a new board, that take the arm thickness, row and column of the empty slot in that order. Added in Abstract model, thus passing in new Triangle board as parameter to super. | public TriangleSolitaireModelImpl(int dimensions, int emptyRow, int emptyCol)
throws IllegalArgumentException {
super(new TriangleBoard(dimensions, emptyRow, emptyCol));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Board(float width, float height) {\r\n tablero = new Array<BlockDrawable>();\r\n this.width = width;\r\n this.height = height;\r\n deletedRowsInfo.ordered = true;\r\n reset();\r\n }",
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"public TriangleSolitaireModel... | [
"0.7037925",
"0.6919455",
"0.6713483",
"0.65818614",
"0.6564189",
"0.6477053",
"0.6472673",
"0.6471659",
"0.64450175",
"0.6435265",
"0.63999075",
"0.6396576",
"0.6369632",
"0.63419485",
"0.63361263",
"0.6320465",
"0.63151556",
"0.6314669",
"0.6314669",
"0.6300046",
"0.6297682... | 0.6537393 | 5 |
Check if locations are outside board size. | @Override
public void move(int fromRow, int fromCol, int toRow, int toCol) throws IllegalArgumentException {
if (checkOutOfBounds(fromRow, fromCol, toRow, toCol)) {
throw new IllegalArgumentException("Can't have location outside the board limits");
}
// Check if locations, from and to, are invalid in the board.
if (board.getPiece(fromRow, fromCol).isInvalid() || board.getPiece(toRow, toCol).isInvalid()) {
throw new IllegalArgumentException("Can't move from or to invalid position");
}
// Check if the move from and to locations are two spots away for horizontal and vertical moves.
int rowDiff = Math.abs(fromRow - toRow);
int colDiff = Math.abs(fromCol - toCol);
if (!(rowDiff == 0 && colDiff == 2) && !(rowDiff == 2 && colDiff == 0)
&& !(rowDiff == 2 && colDiff == 2)) {
throw new IllegalArgumentException("From & To locations aren't 2 spots away from each other");
}
// Get the middle marble position.
int middleRow = getTriangleMiddleRow(fromRow, fromCol, toRow, toCol);
int middleCol = getTriangleMiddleCol(fromRow, fromCol, toRow, toCol);
// Make the move by setting correct pieces in the positions.
makeMove(fromRow, fromCol, middleRow, middleCol, toRow, toCol);
this.score = this.score - 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head... | [
"0.6736974",
"0.66058093",
"0.6552176",
"0.653413",
"0.64209837",
"0.6372751",
"0.6312451",
"0.62958914",
"0.62657857",
"0.62498856",
"0.6248635",
"0.6237445",
"0.6235955",
"0.61736137",
"0.6159208",
"0.6153791",
"0.61370015",
"0.6136782",
"0.611492",
"0.61108834",
"0.6108331... | 0.0 | -1 |
If accessed without an user's authorization sends to authorization page, otherwise prepares and displays current user's profile page. | @Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
helper.init(req, resp);
Language locale = Language.getByLocale(
(String) helper.getSessionAttribute(SESSION_LANGUAGE));
User user = (User) helper.getSessionAttribute(SESSION_CURRENT_USER);
if (user != null) {
Optional<User> opt = userService.findById(user.getUserId(), locale);
if (opt.isPresent()) {
user = opt.get();
prepareLevel(user, req, locale);
prepareAchievements(user, req, locale);
prepareProgression(user, req, locale);
helper.setSessionAttribute(SESSION_CURRENT_USER, user);
}
helper.dispatch(Destination.GOTO_PROFILE);
} else {
helper.redirect(Destination.GOTO_AUTHORIZATION);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = {\"/profile\"})\n @PreAuthorize(\"hasRole('logon')\")\n public String showProfile(HttpServletRequest request, ModelMap model)\n {\n User currentUser = userService.getPrincipalUser();\n model.addAttribute(\"currentUser\", currentUser);\n return \"protected/profi... | [
"0.712764",
"0.68719107",
"0.68031806",
"0.62909055",
"0.62334365",
"0.6223077",
"0.614743",
"0.6065636",
"0.6020295",
"0.5982296",
"0.5917201",
"0.58919567",
"0.58806634",
"0.58780307",
"0.58580613",
"0.5845319",
"0.57250905",
"0.57096153",
"0.57096034",
"0.56684655",
"0.563... | 0.63787264 | 3 |
Prepares current user's level information. | private void prepareLevel(User user,
HttpServletRequest req,
Language lang) {
LocalizedLevel level = userService.getLevelByUserId(user.getUserId(), lang);
req.getSession().setAttribute("currentLocalizedLevel", level);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }",
"public void setUserLevel(int userLevel) {\n\t\t\tthis.userLevel = userLevel;\n\t\t}",
"public void setLevelInfo(){\n setTitle(\"\");\n Objects.requireNonNull(getSupportActionBar()).setElevation(0);\n// ... | [
"0.612737",
"0.5894323",
"0.5887148",
"0.5860362",
"0.5689308",
"0.5620872",
"0.558161",
"0.5503914",
"0.5467846",
"0.5467255",
"0.5463999",
"0.5437683",
"0.5411873",
"0.5349347",
"0.5338598",
"0.5330793",
"0.5299341",
"0.5250931",
"0.524147",
"0.5233182",
"0.5233073",
"0.5... | 0.724378 | 0 |
Prepares current user's achievements. | private void prepareAchievements(User user,
HttpServletRequest req,
Language lang) {
List<Achievement> achievements = achService.findAllAchForUser(
user.getUserId(), lang);
req.getSession().setAttribute("currentUserAch", achievements);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startAchievementActivity(Achievement achievement){\n\n setHeadline(achievement.getName());\n\n /*\n // Load all post items into the jorunal\n for(PostItem tmpPostItem : allPostItems){\n\n if(tmpPostItem.achievementName.equals(achievement.getName()) && tmpPostItem.... | [
"0.5991319",
"0.59573615",
"0.5862238",
"0.57606053",
"0.5650534",
"0.54807657",
"0.5472183",
"0.54604614",
"0.5458231",
"0.54532963",
"0.53749204",
"0.52679247",
"0.52630675",
"0.52592206",
"0.518778",
"0.5184596",
"0.5180215",
"0.51249355",
"0.51221424",
"0.5111789",
"0.504... | 0.7756677 | 0 |
Prepares current user's tasks overall progression. | private void prepareProgression(User user,
HttpServletRequest req,
Language lang) {
var countedSolvedAndAll = taskService
.countProgression(user.getUserId(), lang);
req.getSession().setAttribute("currentCountedTasks", countedSolvedAndAll);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Prepare() {\n\t\tfor(String user: users) {\n\t\t\tbyte[] content = ProcessMsg.serialize(needVote.get(user));\n\t\t\tProjectLib.Message msgSend = new ProjectLib.Message(user,content);\n\t\t\tPL.sendMessage(msgSend);\n\t\t\tneedVote.remove(user);\n\t\t}\n\t}",
"protected void startProcessAndCompleteUse... | [
"0.5800983",
"0.56687033",
"0.5546875",
"0.54977185",
"0.5456486",
"0.54549867",
"0.5428783",
"0.5426357",
"0.5426357",
"0.54153067",
"0.5412494",
"0.54052436",
"0.5378593",
"0.53755486",
"0.53589237",
"0.53385806",
"0.5309768",
"0.52986944",
"0.5295171",
"0.52887183",
"0.528... | 0.7165815 | 0 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Gradiliste)) {
return false;
}
Gradiliste other = (Gradiliste) object;
if ((this.idGradiliste == null && other.idGradiliste != null) || (this.idGradiliste != null && !this.idGradiliste.equals(other.idGradiliste))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
Constructor. NOTE: Please use RequestUtils.decodeParameters() if you wish to properly decode a request URL. | public ValueMap(final String keyValuePairs)
{
this(keyValuePairs, ",");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Request() {}",
"private Request() {}",
"public HTTPGetUtility(String requestURL) {\n super(requestURL, \"GET\");\n }",
"private HttpRequestRouterParametersMap(final HttpRequest request) {\n super();\n this.request = request;\n }",
"private Request() {\n initF... | [
"0.64766115",
"0.64766115",
"0.6462339",
"0.6420431",
"0.63789386",
"0.6355192",
"0.63436115",
"0.630731",
"0.63042974",
"0.6245687",
"0.62238824",
"0.6221545",
"0.6217876",
"0.615979",
"0.60607153",
"0.6044586",
"0.6039728",
"0.60096985",
"0.60045844",
"0.59700596",
"0.59503... | 0.0 | -1 |
Constructor. NOTE: Please use RequestUtils.decodeParameters() if you wish to properly decode a request URL. | public ValueMap(final String keyValuePairs, final String delimiter)
{
super();
int start = 0;
int equalsIndex = keyValuePairs.indexOf('=');
int delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);
if (delimiterIndex == -1)
{
delimiterIndex = keyValuePairs.length();
}
while (equalsIndex != -1)
{
if (delimiterIndex < keyValuePairs.length())
{
int equalsIndex2 = keyValuePairs.indexOf('=', delimiterIndex + 1);
if (equalsIndex2 != -1)
{
delimiterIndex = keyValuePairs.lastIndexOf(delimiter, equalsIndex2);
}
else
{
delimiterIndex = keyValuePairs.length();
}
}
String key = keyValuePairs.substring(start, equalsIndex);
String value = keyValuePairs.substring(equalsIndex + 1, delimiterIndex);
add(key, value);
if (delimiterIndex < keyValuePairs.length())
{
start = delimiterIndex + 1;
equalsIndex = keyValuePairs.indexOf('=', start);
if (equalsIndex != -1)
{
delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);
if (delimiterIndex == -1)
{
delimiterIndex = keyValuePairs.length();
}
}
}
else
{
equalsIndex = -1;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Request() {}",
"private Request() {}",
"public HTTPGetUtility(String requestURL) {\n super(requestURL, \"GET\");\n }",
"private HttpRequestRouterParametersMap(final HttpRequest request) {\n super();\n this.request = request;\n }",
"private Request() {\n initF... | [
"0.64746314",
"0.64746314",
"0.6460837",
"0.6417543",
"0.637722",
"0.635597",
"0.6340915",
"0.6306205",
"0.6302491",
"0.62434655",
"0.6221155",
"0.62208587",
"0.6217345",
"0.6157125",
"0.605934",
"0.604289",
"0.60381573",
"0.60094655",
"0.6003856",
"0.59676456",
"0.594802",
... | 0.0 | -1 |
Adds the value to this ValueMap with the given key. If the key already is in the ValueMap it will combine the values into a String array, else it will just store the value itself. | public final Object add(final String key, final String value)
{
checkMutability();
final Object o = get(key);
if (o == null)
{
return put(key, value);
}
else if (o.getClass().isArray())
{
int length = Array.getLength(o);
String destArray[] = new String[length + 1];
for (int i = 0; i < length; i++)
{
final Object arrayValue = Array.get(o, i);
if (arrayValue != null)
{
destArray[i] = arrayValue.toString();
}
}
destArray[length] = value;
return put(key, destArray);
}
else
{
return put(key, new String[] { o.toString(), value });
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void add(K key, V value) {\n if(containsKey(key)){\n List<V> v = getValues(key);\n if(v.contains(value)){return;}\n }\n internalGetValue(key).add(value);\n }",
"public void addToValueAtKey(String aKey, String aValue) {\n if (cars.containsKey(aKey)) {\n cars.ge... | [
"0.69976634",
"0.6525393",
"0.64108944",
"0.63789964",
"0.630283",
"0.6287074",
"0.6187362",
"0.61569774",
"0.61559945",
"0.6143997",
"0.606798",
"0.6053254",
"0.6020712",
"0.60206765",
"0.6011262",
"0.59706485",
"0.59673125",
"0.5961348",
"0.5943385",
"0.59413016",
"0.590899... | 0.71866035 | 0 |
Generates a String representation of this object. | @Override
public String toString()
{
final AppendingStringBuffer buffer = new AppendingStringBuffer();
boolean first = true;
for (Map.Entry<String, Object> entry : entrySet())
{
if (first == false)
{
buffer.append(' ');
}
first = false;
buffer.append(entry.getKey());
buffer.append(" = \"");
final Object value = entry.getValue();
if (value == null)
{
buffer.append("null");
}
else if (value.getClass().isArray())
{
buffer.append(Arrays.asList((Object[])value));
}
else
{
buffer.append(value);
}
buffer.append('\"');
}
return buffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"public String toString() { return stringify(this, true); }",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"@Override\n ... | [
"0.8036225",
"0.7878638",
"0.78235054",
"0.7797589",
"0.77370137",
"0.77114594",
"0.77071726",
"0.7672415",
"0.7651887",
"0.76494217",
"0.764361",
"0.764361",
"0.7636319",
"0.7528525",
"0.7527102",
"0.7526945",
"0.75225836",
"0.7485144",
"0.7464781",
"0.7445109",
"0.7430353",... | 0.0 | -1 |
Throws an exception if ValueMap is immutable. | private void checkMutability()
{
if (immutable)
{
throw new UnsupportedOperationException("Map is immutable");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void valuesTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.values());\n }",
"public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }",
"public voi... | [
"0.5848175",
"0.5799151",
"0.5795686",
"0.568999",
"0.56448436",
"0.5575968",
"0.5433646",
"0.53797287",
"0.5352769",
"0.5323945",
"0.5267376",
"0.52602714",
"0.5235766",
"0.520441",
"0.5204145",
"0.5182645",
"0.5161088",
"0.5138792",
"0.5135178",
"0.5113841",
"0.5108089",
... | 0.7424752 | 0 |
// // getAs convenience methods // | @Override
public Boolean getAsBoolean(final String key)
{
if (!containsKey(key))
{
return null;
}
try
{
return getBoolean(key);
}
catch (StringValueConversionException ignored)
{
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T as(String alias);",
"public <T> T get(Class<T> as) {\n if (content == null) {\n return null;\n }\n if (as == null) {\n throw new IllegalArgumentException(\"Cannot cast content to null class\");\n }\n if (!as.isAssignableFrom(content.getClass())) {\n throw new IllegalArgumentExcept... | [
"0.5838183",
"0.5755754",
"0.5390174",
"0.53646016",
"0.52194005",
"0.51351684",
"0.5080793",
"0.50504196",
"0.49208182",
"0.4813299",
"0.4813299",
"0.4813299",
"0.4741518",
"0.47184572",
"0.46942103",
"0.468979",
"0.4688799",
"0.46466473",
"0.46174145",
"0.4606633",
"0.45960... | 0.0 | -1 |
explicitly pass T as type to be able to build with JDK 1.8. WICKET5427 | @Override
public <T extends Enum<T>> T getAsEnum(final String key, final Class<T> eClass)
{
return this.getEnumImpl(key, eClass, (T)null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo40877a(T t);",
"void mo16691c(T t);",
"void mo11495a(T t);",
"void mo83698a(T t);",
"void mo83696a(T t);",
"int mo16689b(T t);",
"void mo83695a(T t);",
"void mo3312a(T t);",
"int mo16684a(T t);",
"public void testGenericMethod() {\n \n }",
"void mo30271a(C11961o<T> oVar) throws... | [
"0.7051287",
"0.6936863",
"0.684229",
"0.678198",
"0.6708296",
"0.670292",
"0.6568682",
"0.6482914",
"0.62775195",
"0.58885634",
"0.58641493",
"0.5861468",
"0.5814807",
"0.5692822",
"0.5667701",
"0.56458294",
"0.555838",
"0.5533792",
"0.5489544",
"0.5486636",
"0.5436773",
"... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Product p1 = new Product();
System.out.println("Informe o produto");
p1.nome = sc.next();
System.out.println("Informe o valor do produto");
p1.preco = sc.nextDouble();
System.out.println("Informe a quantidade em estoque");
p1.quant = sc.nextInt();
System.out.println("Produto: " + p1.nome);
System.out.println("O prešo do produto Ú: " + p1.preco);
System.out.println("Quantidade em estoque: " + p1.quant);
System.out.println("Valor total em estoque: " + p1.totalValueStock());
//Para adicionar a quantidade do mesmo produto
//int quant = sc.nextInt();
//p1.addProduct(quant);
//Para diminuir a quantidade do mesmo produto
//int quant =sc.nextInt();
//p1.removeProduct(quant);
sc.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Created by User on 20160512. | public interface GetDialogResultListener {
void getDialogResult(int mode, String result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"public void mo38117a() {\n }",
"private stendhal() {\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m... | [
"0.5995015",
"0.5874905",
"0.580878",
"0.57814336",
"0.5693129",
"0.5693129",
"0.5693129",
"0.5693129",
"0.5693129",
"0.5693129",
"0.5693129",
"0.5658688",
"0.56495863",
"0.5635134",
"0.55993104",
"0.5597559",
"0.5580534",
"0.5553641",
"0.55245465",
"0.55062705",
"0.55044234"... | 0.0 | -1 |
/ Will print out the instructions for this particular project and how the user will be able to utilize this program | public static void help(){
System.out.println("myRepositories USERNAME | --help\n");
System.out.println("\'myReposities\' returns a list of repositories based on username\n");
System.out.println("Version\t: 1.0.0");
System.out.println("Author\t: Miguel Menjivar");
System.out.println("Contact\t: mamenjivar@cpp.edu");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n System.out.println(\"Hi Everyone\");\n //it is needed to be able to work with the team remotely\n System.out.println(\"I am happy to learn something new\");\n //i need to focus on practicing\n }",
"private static void help() {\n Sys... | [
"0.73653996",
"0.73086774",
"0.7183156",
"0.7154332",
"0.7150216",
"0.71369636",
"0.7065674",
"0.7038566",
"0.698768",
"0.69765985",
"0.6953331",
"0.6933147",
"0.6931159",
"0.6902168",
"0.68985605",
"0.68958336",
"0.6891637",
"0.6873645",
"0.68164945",
"0.6808313",
"0.6806841... | 0.65704304 | 46 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.id | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}",
"public Integer getUser_id() {\n\t\treturn user_id;\n\t}",
"Integer getUserId();",
"public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}",
"Long getUserId();",
"public int getIdUser() {\n return idUser;\n }",
"public int getId... | [
"0.7426905",
"0.73667943",
"0.7356737",
"0.7293998",
"0.7268484",
"0.71508896",
"0.71508896",
"0.70977414",
"0.70977414",
"0.70977414",
"0.70977414",
"0.70789707",
"0.7066421",
"0.7061277",
"0.70410776",
"0.70410776",
"0.70267195",
"0.6994408",
"0.6994408",
"0.6973708",
"0.69... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.id | public void setId(Long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}",
"public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }... | [
"0.7717202",
"0.75210536",
"0.73440766",
"0.72820354",
"0.7247767",
"0.71366644",
"0.70673156",
"0.7054328",
"0.70278174",
"0.70278174",
"0.70278174",
"0.70278174",
"0.69791865",
"0.696398",
"0.6939535",
"0.69093806",
"0.68832195",
"0.6852578",
"0.68229914",
"0.67886776",
"0.... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.name | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUser_name() {\n return user_name;\n }",
"public String getuserName() {\r\n return (String)getNamedWhereClauseParam(\"userName\");\r\n }",
"public String getName() {\n return user.getName();\n }",
"@AutoEscape\n\tpublic String getUser_name();",
"public String g... | [
"0.69681174",
"0.6902906",
"0.6882616",
"0.6822542",
"0.68148047",
"0.6644521",
"0.6644521",
"0.6644521",
"0.66209996",
"0.6593828",
"0.6593828",
"0.6559034",
"0.6528046",
"0.6506284",
"0.64950126",
"0.6486422",
"0.6462972",
"0.6451985",
"0.64451176",
"0.6416343",
"0.6407941"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.name | public void setName(String name) {
this.name = name == null ? null : name.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setUser_name(String user_name);",
"public void setUser_name(String user_name) {\n this.user_name = user_name;\n }",
"public void setName(final java.lang.String name) {\r\n th... | [
"0.6855326",
"0.68204397",
"0.6776534",
"0.6703559",
"0.6582025",
"0.6556657",
"0.64921904",
"0.6434038",
"0.6430046",
"0.64267427",
"0.6398451",
"0.6383041",
"0.6383041",
"0.6310872",
"0.62817",
"0.62409717",
"0.6233853",
"0.62247866",
"0.62045664",
"0.6202792",
"0.61911756"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.password | public String getPassword() {
return password;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPassword() {\n return jdbcPassword;\n }",
"@Override\n\tpublic String getPassword() {\n\t\treturn user.getUserPwd();\n\t}",
"public String getUserPassword() {\n return sp.getString(USER_PASSWORD, null);\n }",
"public String getJdbcPassword()\n {\n return getStri... | [
"0.7656398",
"0.76335037",
"0.762836",
"0.76049626",
"0.7600737",
"0.75975835",
"0.7513614",
"0.74719",
"0.74123615",
"0.7391019",
"0.73619777",
"0.7316492",
"0.73063797",
"0.7304169",
"0.73007697",
"0.72941977",
"0.72776276",
"0.72776276",
"0.72776276",
"0.72776276",
"0.7277... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.password | public void setPassword(String password) {
this.password = password == null ? null : password.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPassword(String password) throws SQLException\r\n\t{\r\n\t\tif (password == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET password =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getC... | [
"0.7392245",
"0.715583",
"0.7138791",
"0.70200807",
"0.6999173",
"0.69804025",
"0.69199705",
"0.69032204",
"0.6874533",
"0.68713665",
"0.68713665",
"0.68713665",
"0.6863997",
"0.68635756",
"0.68541497",
"0.6816944",
"0.68119824",
"0.67953694",
"0.67736626",
"0.6762877",
"0.67... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.gender | public String getGender() {
return gender;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v14.common.GenderInfo getGender();",
"public Integer getGender() {\r\n return gender;\r\n }",
"public Integer getGender() {\n return gender;\n }",
"public Integer getGender() {\n return gender;\n }",
"public int getGenderValue() {\n return gender_... | [
"0.72360456",
"0.7226597",
"0.72015285",
"0.72015285",
"0.71863735",
"0.7183594",
"0.7135148",
"0.7123131",
"0.71207905",
"0.70985013",
"0.70826626",
"0.70704687",
"0.7053282",
"0.7053282",
"0.7038895",
"0.702833",
"0.702833",
"0.702833",
"0.7027214",
"0.70264363",
"0.7022349... | 0.7138925 | 10 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.gender | public void setGender(String gender) {
this.gender = gender == null ? null : gender.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setGender(String gender){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyGender, gender);\n }",
"public void setGender(String value) {\n this.gender = value;\n }",
"public void setGender(String gender);",
"public void setGender(String gender);",
"publi... | [
"0.75700796",
"0.740747",
"0.7298162",
"0.7298162",
"0.7298162",
"0.7233138",
"0.7201996",
"0.7150106",
"0.71334785",
"0.71223766",
"0.7086943",
"0.70401454",
"0.699634",
"0.6996106",
"0.6996106",
"0.6995501",
"0.69587535",
"0.69587535",
"0.69538707",
"0.6951163",
"0.6932644"... | 0.6525029 | 33 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.class_name | public String getClassName() {
return className;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StrColumn getClazz() {\n return delegate.getColumn(\"class\", DelegatingStrColumn::new);\n }",
"public String getName_Class() {\n\t\treturn name;\n\t}",
"private String getClassName(final Class<?> clazz) {\n return EntityType.getEntityType(clazz).map(e -> e.getEntityName(clazz)).orElse(... | [
"0.6634434",
"0.63574433",
"0.6340963",
"0.6189397",
"0.61443424",
"0.61170787",
"0.6091475",
"0.60894066",
"0.6083115",
"0.6056769",
"0.6039608",
"0.6020874",
"0.5981796",
"0.59756386",
"0.5973526",
"0.5968244",
"0.5957737",
"0.59543145",
"0.5939702",
"0.5936264",
"0.5915391... | 0.5862884 | 39 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.class_name | public void setClassName(String className) {
this.className = className == null ? null : className.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setClass_(String newValue);",
"public void setClazzName(String clazz);",
"void setClassType(String classType);",
"public void setClassName(String className) { this.className=className; }",
"@Transactional\n\t@Override\n\tpublic void changeDocumentsClassName(String newClassName, String oldClassN... | [
"0.6117224",
"0.6030434",
"0.6004258",
"0.59589165",
"0.5850029",
"0.58374935",
"0.5812897",
"0.5678583",
"0.56509674",
"0.56423527",
"0.5608806",
"0.5562918",
"0.55488056",
"0.55309635",
"0.5513544",
"0.5487395",
"0.54724073",
"0.5470563",
"0.54650354",
"0.5419666",
"0.54148... | 0.5260475 | 40 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.icon | public String getIcon() {
return icon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserIcon() {\n return userIcon;\n }",
"public FSIcon getIcon() {\n return icon;\n }",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"public char getIcon() {\n return this.icon;\n }",
"public EntityIcon getIcon() {\r\n return icon;\r\n }",
"publ... | [
"0.7274282",
"0.67109525",
"0.66868055",
"0.6568229",
"0.64716923",
"0.6466664",
"0.64595497",
"0.64595497",
"0.64319366",
"0.64120406",
"0.64120406",
"0.6395467",
"0.6394533",
"0.6377236",
"0.63737696",
"0.63737696",
"0.6360845",
"0.6360845",
"0.63298225",
"0.63298225",
"0.6... | 0.6747309 | 4 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.icon | public void setIcon(String icon) {
this.icon = icon == null ? null : icon.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserIcon(String userIcon) {\n this.userIcon = userIcon == null ? null : userIcon.trim();\n }",
"public void setIcon(FSIcon icon) {\n this.icon = icon;\n }",
"protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = r... | [
"0.67727965",
"0.6573197",
"0.6522298",
"0.64775807",
"0.64775807",
"0.6399635",
"0.63977766",
"0.6363234",
"0.63557804",
"0.6251724",
"0.6235143",
"0.6161256",
"0.60941577",
"0.6021108",
"0.6021108",
"0.59157753",
"0.584985",
"0.5837011",
"0.5833168",
"0.5831387",
"0.5765183... | 0.6153935 | 13 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.city | public String getCity() {
return city;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCity() {\n return (String) get(\"city\");\n }",
"public String getCity() {\n\t\treturn this.city;\n\t}",
"public String getCity() {\n return this.city;\n }",
"public String getCity() {\n return this.city;\n }",
"public String getCity() {\n return this.city;\n }",
"p... | [
"0.74451464",
"0.710265",
"0.70925355",
"0.70925355",
"0.70925355",
"0.7082192",
"0.7082192",
"0.7082192",
"0.70791155",
"0.70729625",
"0.70729625",
"0.704701",
"0.7023141",
"0.7012921",
"0.70115143",
"0.70115143",
"0.7007074",
"0.6995575",
"0.6995575",
"0.6995575",
"0.699557... | 0.7004206 | 26 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.city | public void setCity(String city) {
this.city = city == null ? null : city.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCity(String city);",
"public void setCity(String city) {\r\n this.city = city;\r\n }",
"public void setCity(String city) {\r\n this.city = city;\r\n }",
"public void setCity(String city){\n this.city = city;\n }",
"public void setCity(String city) {\n thi... | [
"0.71354496",
"0.7133134",
"0.7133134",
"0.7087632",
"0.7053955",
"0.7053955",
"0.7053955",
"0.7053955",
"0.7053955",
"0.7053955",
"0.70335776",
"0.7032927",
"0.70213157",
"0.7004563",
"0.6977036",
"0.69677424",
"0.69677424",
"0.691083",
"0.6879378",
"0.68687814",
"0.68687814... | 0.66648185 | 33 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.profile | public String getProfile() {
return profile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProfile();",
"@ModelNodeBinding(detypedName = \"profile\")\n\tpublic String profile() {\n\t\treturn this.profile;\n\t}",
"public int getProfile_id() {\n return profileID;\n }",
"@ManyToOne(fetch = FetchType.LAZY)\n\t@JoinColumn(name = \"ID_SECURITY_PROFILE\", referencedColumn... | [
"0.7076209",
"0.6846538",
"0.6828984",
"0.6824985",
"0.67321527",
"0.65179116",
"0.6507937",
"0.6490759",
"0.64571774",
"0.6454155",
"0.6453698",
"0.6409957",
"0.63562095",
"0.6349913",
"0.6346381",
"0.6318839",
"0.62899727",
"0.62590927",
"0.62413824",
"0.62121236",
"0.61600... | 0.7011741 | 1 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.profile | public void setProfile(String profile) {
this.profile = profile == null ? null : profile.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setProfile(Profile profile) {\n Login.profile = profile;\n Login.profile.setUserId(getUserId());\n }",
"public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}",
"public void setProfile(Profile profile) {\n _profile = profile;\n }",
... | [
"0.67980343",
"0.6711539",
"0.6492331",
"0.6479213",
"0.645414",
"0.6407602",
"0.64008695",
"0.639671",
"0.621693",
"0.6205142",
"0.61433494",
"0.6115502",
"0.5926296",
"0.5900723",
"0.58943963",
"0.58741105",
"0.58523715",
"0.5845229",
"0.583679",
"0.5832835",
"0.58107996",
... | 0.6282494 | 8 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.gmt_create | public Date getGmtCreate() {
return gmtCreate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getUserCreate() {\n return userCreate;\n }",
"public Long getGmtCreate() {\n return gmtCreate;\n }",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public Long getCreateUser() {\r\n return createUser;\r\n }",
"public Long getCreateDatetime... | [
"0.6688684",
"0.654136",
"0.64561427",
"0.64561427",
"0.6278172",
"0.6278172",
"0.6247608",
"0.62423295",
"0.62423295",
"0.6237458",
"0.62190413",
"0.62190413",
"0.6218813",
"0.6218813",
"0.6218813",
"0.6218813",
"0.62110156",
"0.6207185",
"0.6163072",
"0.6163072",
"0.6160825... | 0.6166794 | 30 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.gmt_create | public void setGmtCreate(Date gmtCreate) {
this.gmtCreate = gmtCreate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }",
"public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}",
"public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}",
"public void setGmtCreate(Date gmtCreate) {\n\t\... | [
"0.6707578",
"0.6528233",
"0.6528233",
"0.6528233",
"0.6528233",
"0.64711636",
"0.61140573",
"0.6094136",
"0.6094136",
"0.5981273",
"0.5952548",
"0.59263396",
"0.59263396",
"0.589909",
"0.589909",
"0.5855467",
"0.5849238",
"0.58451647",
"0.57937956",
"0.57477266",
"0.57477266... | 0.6675155 | 12 |
This method was generated by MyBatis Generator. This method returns the value of the database column user.gmt_modified | public Date getGmtModified() {
return gmtModified;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getGmtModified() {\r\n return gmtModified;\r\n }",
"public java.sql.Timestamp getModified() {\n return modified;\n }",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public Date getGmtModified() {\n\... | [
"0.7095091",
"0.7067637",
"0.70429504",
"0.70429504",
"0.70429504",
"0.697635",
"0.6963949",
"0.69132996",
"0.68948764",
"0.68514764",
"0.68439406",
"0.68151695",
"0.6808598",
"0.67932665",
"0.67549217",
"0.67482185",
"0.6693625",
"0.66250956",
"0.6624741",
"0.6619395",
"0.65... | 0.70777303 | 9 |
This method was generated by MyBatis Generator. This method sets the value of the database column user.gmt_modified | public void setGmtModified(Date gmtModified) {
this.gmtModified = gmtModified;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGmtModified(Date gmtModified) {\r\n this.gmtModified = gmtModified;\r\n }",
"public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}",
"public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}",
"public void setGmtModif... | [
"0.691889",
"0.6686567",
"0.6686567",
"0.6686567",
"0.66246414",
"0.65255123",
"0.6513737",
"0.6409134",
"0.6384815",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.6363812",
"0.63519496",
... | 0.68592334 | 9 |
Returns the x coordinate. | public int getX() {
return x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int x() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}",
"public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}",
"public int getxCoord() {\n\t\treturn xCoord;\n\t}",
"public int getxCoordinate() {\n\t\tre... | [
"0.86971724",
"0.85522085",
"0.84759545",
"0.84759545",
"0.84737825",
"0.84605116",
"0.84428775",
"0.84428775",
"0.84372723",
"0.842527",
"0.83836216",
"0.83780277",
"0.83515143",
"0.83336747",
"0.82971114",
"0.82911944",
"0.8285763",
"0.82676095",
"0.82393634",
"0.8215025",
... | 0.0 | -1 |
Sets the x coordinate. | public void setX(int x) {
this.x = x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tthis.x = x;\n\t}",
"protected void setX(final Number x) {\n this.xCoordinate = x;\n }",
"@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}",
"public void setX(int x)\n\t{\n\t\tt... | [
"0.87481",
"0.8546123",
"0.8511487",
"0.8453639",
"0.8312749",
"0.827706",
"0.82330173",
"0.8216174",
"0.8187381",
"0.81740785",
"0.8113074",
"0.8113074",
"0.8113074",
"0.8113074",
"0.8112025",
"0.8103678",
"0.8070222",
"0.8070222",
"0.8070222",
"0.8070222",
"0.8070222",
"0... | 0.791014 | 29 |
Returns the y coordinate. | public int getY() {
return y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int y() {\r\n\t\treturn yCoord;\r\n\t}",
"protected Number getY() {\n return this.yCoordinate;\n }",
"public int getY() {\r\n\t\treturn ycoord;\r\n\t}",
"public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}",
"public int getY() {\n return yCoord;\n }",
"public int getY()\r\n ... | [
"0.8976905",
"0.89298165",
"0.8875568",
"0.88092124",
"0.880383",
"0.87972784",
"0.8794167",
"0.877774",
"0.8770715",
"0.8770715",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
"0.8769137",
... | 0.8697089 | 63 |
Sets the y coordinate. | public void setY(int y) {
this.y = y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}",
"void setY(final Number y) {\n this.yCoordinate = y;\n }",
"public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}",... | [
"0.88450015",
"0.880961",
"0.8802495",
"0.87572986",
"0.87572986",
"0.87572986",
"0.87572986",
"0.8749793",
"0.8731236",
"0.8696311",
"0.8689779",
"0.8689779",
"0.8689779",
"0.8689779",
"0.8673167",
"0.8666041",
"0.86481184",
"0.8641362",
"0.8636967",
"0.8622961",
"0.8622961"... | 0.8718098 | 11 |
The class holding records for this type | @Override
public Class<JournalEntryLineRecord> getRecordType() {
return JournalEntryLineRecord.class;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}",
"public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}",
"public DataRecord() {\n super(DataTable.DATA);\n }",
"@Override\n public Class<Record> getRecordType() {\n return Re... | [
"0.68004626",
"0.66954035",
"0.64103794",
"0.6398801",
"0.6398801",
"0.6398801",
"0.6398801",
"0.6393993",
"0.6354873",
"0.6192012",
"0.61258304",
"0.61258304",
"0.61258304",
"0.6104736",
"0.60470754",
"0.60470754",
"0.60470754",
"0.6040716",
"0.6029211",
"0.6020949",
"0.6008... | 0.55692416 | 81 |
Create a JOURNAL_ENTRY_LINE table reference | public JournalEntryLine() {
this(DSL.name("JOURNAL_ENTRY_LINE"), null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JournalEntryLine(Name alias) {\n this(alias, JOURNAL_ENTRY_LINE);\n }",
"private static DataBaseEntry createEntry(String line) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) {\n System.err.println(\"not found '=' in line \" + line);\n }\n int hash = line.i... | [
"0.585661",
"0.57882553",
"0.56981903",
"0.5436283",
"0.5430669",
"0.53652453",
"0.53499657",
"0.533185",
"0.5303204",
"0.530107",
"0.52439964",
"0.52305096",
"0.5218754",
"0.5209659",
"0.5115156",
"0.5114253",
"0.5113914",
"0.50213015",
"0.4998691",
"0.49967545",
"0.49836186... | 0.5837206 | 1 |
Create an aliased JOURNAL_ENTRY_LINE table reference | public JournalEntryLine(String alias) {
this(DSL.name(alias), JOURNAL_ENTRY_LINE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JournalEntryLine(Name alias) {\n this(alias, JOURNAL_ENTRY_LINE);\n }",
"private static DataBaseEntry createEntry(String line) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) {\n System.err.println(\"not found '=' in line \" + line);\n }\n int hash = line.i... | [
"0.63796943",
"0.5332689",
"0.5316359",
"0.5198467",
"0.4989316",
"0.49793717",
"0.4952755",
"0.48826933",
"0.4853944",
"0.48176202",
"0.47946033",
"0.47765112",
"0.4759116",
"0.47529298",
"0.47223195",
"0.4686311",
"0.4674164",
"0.4658765",
"0.46557269",
"0.46546587",
"0.464... | 0.62937796 | 1 |
Create an aliased JOURNAL_ENTRY_LINE table reference | public JournalEntryLine(Name alias) {
this(alias, JOURNAL_ENTRY_LINE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JournalEntryLine(String alias) {\n this(DSL.name(alias), JOURNAL_ENTRY_LINE);\n }",
"private static DataBaseEntry createEntry(String line) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) {\n System.err.println(\"not found '=' in line \" + line);\n }\n int h... | [
"0.629171",
"0.53315973",
"0.53144914",
"0.51978827",
"0.49897715",
"0.4978106",
"0.495248",
"0.4883171",
"0.48550293",
"0.48181716",
"0.47952554",
"0.47758582",
"0.47580242",
"0.47538728",
"0.47231475",
"0.46855995",
"0.4672591",
"0.46592727",
"0.46545193",
"0.46537685",
"0.... | 0.63780403 | 0 |
Created by IntelliJ IDEA. User: stsyhanou Date: 22.12.12 Time: 2:37 To change this template use File | Settings | File Templates. | public interface UserService {
public void add(User user);
public void remove(Integer id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\t... | [
"0.6164781",
"0.5919886",
"0.5868808",
"0.5863922",
"0.5863922",
"0.58362687",
"0.5834371",
"0.5812304",
"0.58089954",
"0.57991993",
"0.57895565",
"0.57869315",
"0.57608175",
"0.57386357",
"0.57386357",
"0.57385916",
"0.57322204",
"0.5730471",
"0.5703378",
"0.5698621",
"0.568... | 0.0 | -1 |
/ WARNING void declaration | @Override
public void drawScreen(int n, int n2) {
void mouseY;
void mouseX;
super.drawScreen((int)mouseX, (int)mouseY);
float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);
Color color = Color.getHSBColor(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(6.4887953f) ^ 0x7F4FA436), Float.intBitsToFloat(Float.floatToIntBits(4.629535f) ^ 0x7F142527));
Gui.drawRect((int)this.getX(), (int)this.getY(), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 14), (int)new Color(40, 40, 40).getRGB());
Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 2), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 12), (int)this.setting.getValue().getRGB());
RenderUtils.drawOutline(this.getX() + this.getWidth() - 12, this.getY() + 2, this.getX() + this.getWidth() - 2, this.getY() + 12, Float.intBitsToFloat(Float.floatToIntBits(2.7144578f) ^ 0x7F2DB9AD), new Color(20, 20, 20).getRGB());
if (this.open) {
Gui.drawRect((int)this.getX(), (int)(this.getY() + 14), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 28), (int)new Color(40, 40, 40).getRGB());
float i = Float.intBitsToFloat(Float.floatToIntBits(1.3378998E38f) ^ 0x7EC94E07);
while (i + Float.intBitsToFloat(Float.floatToIntBits(13.8331995f) ^ 0x7EDD54C9) < Float.intBitsToFloat(Float.floatToIntBits(0.07128618f) ^ 0x7F51FE7D)) {
RenderUtils.drawRecta((float)(this.getX() + 2) + i, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(7.249331f) ^ 0x7F67FA85), Float.intBitsToFloat(Float.floatToIntBits(1.7045807f) ^ 0x7EEA2FB3), Color.getHSBColor(i / Float.intBitsToFloat(Float.floatToIntBits(0.115068644f) ^ 0x7F2BA91C), Float.intBitsToFloat(Float.floatToIntBits(4.3161592f) ^ 0x7F0A1DFA), Float.intBitsToFloat(Float.floatToIntBits(21.075346f) ^ 0x7E289A4F)).getRGB());
i += Float.intBitsToFloat(Float.floatToIntBits(3.807338f) ^ 0x7E95CD0B);
}
RenderUtils.drawOutline(this.getX() + 2, this.getY() + 16, this.getX() + 2 + this.getWidth() - 4, this.getY() + 27, Float.intBitsToFloat(Float.floatToIntBits(2.7503529f) ^ 0x7F3005C8), new Color(0, 0, 0).getRGB());
RenderUtils.drawRecta((float)(this.getX() + 2) + this.hueWidth, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(5.200255f) ^ 0x7F26687D), Float.intBitsToFloat(Float.floatToIntBits(1.2665411f) ^ 0x7E921E05), new Color(255, 255, 255).getRGB());
Gui.drawRect((int)this.getX(), (int)(this.getY() + 28), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 42), (int)new Color(40, 40, 40).getRGB());
RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 29, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.19645536f) ^ 0x7F792B98), new Color(255, 255, 255), color, 255, 255);
RenderUtils.drawOutline(this.getX() + 2, this.getY() + 29, this.getX() + 2 + this.getWidth() - 4, this.getY() + 40, Float.intBitsToFloat(Float.floatToIntBits(103.69628f) ^ 0x7DCF647F), new Color(0, 0, 0).getRGB());
RenderUtils.drawRecta((float)(this.getX() + 2) + this.satWidth, this.getY() + 29, Float.intBitsToFloat(Float.floatToIntBits(7.3489017f) ^ 0x7F6B2A34), Float.intBitsToFloat(Float.floatToIntBits(0.1948352f) ^ 0x7F7782E1), new Color(255, 255, 255).getRGB());
Gui.drawRect((int)this.getX(), (int)(this.getY() + 42), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 56), (int)new Color(40, 40, 40).getRGB());
RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 42, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(1.5246161f) ^ 0x7EF3269F), new Color(0, 0, 0), color, 255, 255);
RenderUtils.drawOutline(this.getX() + 2, this.getY() + 42, this.getX() + 2 + this.getWidth() - 4, this.getY() + 53, Float.intBitsToFloat(Float.floatToIntBits(3.7803736f) ^ 0x7F71F1A4), new Color(0, 0, 0).getRGB());
RenderUtils.drawRecta((float)(this.getX() + 2) + this.briWidth, this.getY() + 42, Float.intBitsToFloat(Float.floatToIntBits(8.346171f) ^ 0x7E8589EB), Float.intBitsToFloat(Float.floatToIntBits(0.08925866f) ^ 0x7C86CD3F), new Color(255, 255, 255).getRGB());
Gui.drawRect((int)this.getX(), (int)(this.getY() + 56), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 70), (int)new Color(40, 40, 40).getRGB());
this.renderAlphaBG(this.getX() + 2, this.getY() + 55, this.alphaBG);
RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 55, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.13166903f) ^ 0x7F36D43F), new Color(0, 0, 0), color, 0, 255);
RenderUtils.drawOutline(this.getX() + 2, this.getY() + 55, this.getX() + 2 + this.getWidth() - 4, this.getY() + 66, Float.intBitsToFloat(Float.floatToIntBits(19.69502f) ^ 0x7E9D8F67), new Color(0, 0, 0).getRGB());
RenderUtils.drawRecta((float)(this.getX() + 2) + this.alphaWidth, this.getY() + 55, Float.intBitsToFloat(Float.floatToIntBits(6.702013f) ^ 0x7F5676E4), Float.intBitsToFloat(Float.floatToIntBits(0.13652846f) ^ 0x7F3BCE1E), new Color(255, 255, 255).getRGB());
Gui.drawRect((int)this.getX(), (int)(this.getY() + 70), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 84), (int)new Color(40, 40, 40).getRGB());
Europa.FONT_MANAGER.drawString("Rainbow", this.getX() + 3, (float)(this.getY() + 78) - Europa.FONT_MANAGER.getHeight() / Float.intBitsToFloat(Float.floatToIntBits(0.8730777f) ^ 0x7F5F8205), Color.WHITE);
Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 72), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 82), (int)new Color(30, 30, 30).getRGB());
if (this.setting.getRainbow().booleanValue()) {
RenderUtils.prepareGL();
GL11.glShadeModel((int)7425);
GL11.glEnable((int)2848);
GL11.glLineWidth((float)Float.intBitsToFloat(Float.floatToIntBits(0.2713932f) ^ 0x7EAAF40D));
GL11.glBegin((int)1);
GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015137452f) ^ 0x7F070313)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(1.1948546f) ^ 0x7CE7F0FF)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.36357376f) ^ 0x7DC52657)));
GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));
GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015521388f) ^ 0x7F014D6B)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.01025841f) ^ 0x7F5712E4)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.10675689f) ^ 0x7EA5A35B)));
GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8 + 4), (double)(this.getY() + 74));
GL11.glEnd();
GL11.glBegin((int)1);
GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.009417259f) ^ 0x7F654AD9)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.07014828f) ^ 0x7EF0A9E7)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.013465701f) ^ 0x7F239F3E)));
GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));
GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.0155056f) ^ 0x7F010B33)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.011914493f) ^ 0x7F3C3501)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.012230922f) ^ 0x7F376434)));
GL11.glVertex2d((double)(this.getX() + this.getWidth() - 10), (double)(this.getY() + 77));
GL11.glEnd();
RenderUtils.releaseGL();
}
}
Gui.drawRect((int)(this.getX() - 1), (int)this.getY(), (int)this.getX(), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());
Gui.drawRect((int)(this.getX() + this.getWidth()), (int)this.getY(), (int)(this.getX() + this.getWidth() + 1), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());
Europa.FONT_MANAGER.drawString(this.setting.getName(), this.getX() + 3, this.getY() + 3, Color.WHITE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration | @Override
public void mouseClicked(int n, int n2, int n3) {
block4: {
void mouseButton;
void mouseY;
void mouseX;
block7: {
block6: {
block5: {
block3: {
super.mouseClicked((int)mouseX, (int)mouseY, (int)mouseButton);
if (mouseX >= this.getX() && mouseX <= this.getX() + this.getWidth() && mouseY >= this.getY()) {
if (mouseY <= this.getY() + this.getHeight() && mouseButton == true) {
boolean bl = this.open = !this.open;
}
}
if (!this.isMouseOnHue((int)mouseX, (int)mouseY) || mouseButton != false) break block3;
if (!this.open) break block3;
this.hueDragging = true;
break block4;
}
if (!this.isMouseOnSat((int)mouseX, (int)mouseY) || mouseButton != false) break block5;
if (!this.open) break block5;
this.saturationDragging = true;
break block4;
}
if (!this.isMouseOnBri((int)mouseX, (int)mouseY) || mouseButton != false || !this.open) break block6;
this.brightnessDragging = true;
break block4;
}
if (!this.isMouseOnAlpha((int)mouseX, (int)mouseY) || mouseButton != false) break block7;
if (!this.open) break block7;
this.alphaDragging = true;
break block4;
}
if (!this.isMouseOnRainbow((int)mouseX, (int)mouseY) || mouseButton != false) break block4;
if (this.open) {
this.setting.setRainbow(this.setting.getRainbow() == false);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration | @Override
public void mouseReleased(int n, int n2, int n3) {
void state;
void mouseY;
void mouseX;
super.mouseReleased((int)mouseX, (int)mouseY, (int)state);
this.hueDragging = false;
this.saturationDragging = false;
this.brightnessDragging = false;
this.alphaDragging = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration | public void renderAlphaBG(int n, int n2, ResourceLocation resourceLocation) {
void y;
void x;
void texture;
mc.getTextureManager().bindTexture((ResourceLocation)texture);
GL11.glPushMatrix();
GL11.glColor4f((float)Float.intBitsToFloat(Float.floatToIntBits(84.80346f) ^ 0x7D299B5F), (float)Float.intBitsToFloat(Float.floatToIntBits(356.26364f) ^ 0x7C3221BF), (float)Float.intBitsToFloat(Float.floatToIntBits(4.4841223f) ^ 0x7F0F7DEE), (float)Float.intBitsToFloat(Float.floatToIntBits(6.9323945f) ^ 0x7F5DD62D));
Gui.drawScaledCustomSizeModalRect((int)x, (int)y, (float)Float.intBitsToFloat(Float.floatToIntBits(1.9387513E38f) ^ 0x7F11DAFE), (float)Float.intBitsToFloat(Float.floatToIntBits(1.7625584E38f) ^ 0x7F0499A4), (int)104, (int)16, (int)(this.getWidth() - 4), (int)11, (float)Float.intBitsToFloat(Float.floatToIntBits(0.112598404f) ^ 0x7F3699FE), (float)Float.intBitsToFloat(Float.floatToIntBits(0.60222334f) ^ 0x7E9A2B4F));
GL11.glPopMatrix();
GlStateManager.clear((int)256);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration Enabled force condition propagation Lifted jumps to return sites | public boolean isMouseOnHue(int n, int n2) {
void y;
void x;
if (x <= this.getX() + 2) return false;
if (x >= this.getX() + 2 + this.getWidth() - 4) return false;
if (y <= this.getY() + 16) return false;
if (y >= this.getY() + 27) return false;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}",
"void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }",
"public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }",
"public void noReturnOnVoid() {\n\t\tretu... | [
"0.6354968",
"0.62372243",
"0.6197124",
"0.6154875",
"0.6135175",
"0.5924401",
"0.59136486",
"0.59055716",
"0.5900109",
"0.5855695",
"0.58514315",
"0.58497983",
"0.583783",
"0.58320373",
"0.58297753",
"0.5823078",
"0.58097535",
"0.580116",
"0.5794453",
"0.5792954",
"0.5785150... | 0.0 | -1 |
/ WARNING void declaration | public boolean isMouseOnSat(int n, int n2) {
void y;
void x;
return x > this.getX() + 2 && x < this.getX() + 2 + this.getWidth() - 4 && y > this.getY() + 29 && y < this.getY() + 40;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration Enabled force condition propagation Lifted jumps to return sites | public boolean isMouseOnBri(int n, int n2) {
void y;
void x;
if (x <= this.getX() + 2) return false;
if (x >= this.getX() + 2 + this.getWidth() - 4) return false;
if (y <= this.getY() + 42) return false;
if (y >= this.getY() + 53) return false;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}",
"void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }",
"public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }",
"public void noReturnOnVoid() {\n\t\tretu... | [
"0.6354968",
"0.62372243",
"0.6197124",
"0.6154875",
"0.6135175",
"0.5924401",
"0.59136486",
"0.59055716",
"0.5900109",
"0.5855695",
"0.58514315",
"0.58497983",
"0.583783",
"0.58320373",
"0.58297753",
"0.5823078",
"0.58097535",
"0.580116",
"0.5794453",
"0.5792954",
"0.5785150... | 0.0 | -1 |
/ WARNING void declaration | public boolean isMouseOnAlpha(int n, int n2) {
void y;
void x;
return x > this.getX() + 2 && x < this.getX() + 2 + this.getWidth() - 4 && y > this.getY() + 55 && y < this.getY() + 66;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration Enabled force condition propagation Lifted jumps to return sites | public boolean isMouseOnRainbow(int n, int n2) {
void y;
void x;
if (x <= this.getX() + this.getWidth() - 12) return false;
if (x >= this.getX() + this.getWidth() - 2) return false;
if (y <= this.getY() + 72) return false;
if (y >= this.getY() + 82) return false;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}",
"void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }",
"public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }",
"public void noReturnOnVoid() {\n\t\tretu... | [
"0.6354968",
"0.62372243",
"0.6197124",
"0.6154875",
"0.6135175",
"0.5924401",
"0.59136486",
"0.59055716",
"0.5900109",
"0.5855695",
"0.58514315",
"0.58497983",
"0.583783",
"0.58320373",
"0.58297753",
"0.5823078",
"0.58097535",
"0.580116",
"0.5794453",
"0.5792954",
"0.5785150... | 0.0 | -1 |
/ WARNING void declaration | @Override
public void update(int n, int n2) {
void mouseY;
void mouseX;
super.update((int)mouseX, (int)mouseY);
float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);
double difference = Math.min(95, Math.max(0, (int)(mouseX - this.getX())));
this.hueWidth = Float.intBitsToFloat(Float.floatToIntBits(0.012939732f) ^ 0x7EEB012B) * (hsb[0] * Float.intBitsToFloat(Float.floatToIntBits(0.22324012f) ^ 0x7DD0990F) / Float.intBitsToFloat(Float.floatToIntBits(0.07544195f) ^ 0x7E2E814F));
this.satWidth = Float.intBitsToFloat(Float.floatToIntBits(0.009555363f) ^ 0x7EA18E19) * (hsb[1] * Float.intBitsToFloat(Float.floatToIntBits(0.021556562f) ^ 0x7F049763) / Float.intBitsToFloat(Float.floatToIntBits(0.026331188f) ^ 0x7F63B481));
this.briWidth = Float.intBitsToFloat(Float.floatToIntBits(0.02392782f) ^ 0x7E790447) * (hsb[2] * Float.intBitsToFloat(Float.floatToIntBits(0.09763377f) ^ 0x7E73F437) / Float.intBitsToFloat(Float.floatToIntBits(0.019418718f) ^ 0x7F2B1401));
this.alphaWidth = Float.intBitsToFloat(Float.floatToIntBits(0.010174015f) ^ 0x7E9BB0E9) * ((float)this.setting.getValue().getAlpha() / Float.intBitsToFloat(Float.floatToIntBits(0.0089911735f) ^ 0x7F6C4FB7));
this.changeColor(difference, new Color(Color.HSBtoRGB((float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.15404371830294214) ^ 0x7F9477B45E21F7BFL) * Double.longBitsToDouble(Double.doubleToLongBits(0.050973544293479105) ^ 0x7FDC99345367453FL) / Double.longBitsToDouble(Double.doubleToLongBits(0.03014217321508198) ^ 0x7FE85D9700C1AF0AL)), hsb[1], hsb[2])), new Color(Color.HSBtoRGB(Float.intBitsToFloat(Float.floatToIntBits(1.8279414E38f) ^ 0x7F0984DF), hsb[1], hsb[2])), this.hueDragging);
this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.1223112785883676) ^ 0x7FE88FCABD780F54L) * Double.longBitsToDouble(Double.doubleToLongBits(0.026943886254004668) ^ 0x7FED172D9927021DL) / Double.longBitsToDouble(Double.doubleToLongBits(0.05427001644334754) ^ 0x7FDD4947938E1C55L)), hsb[2])), new Color(Color.HSBtoRGB(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(1.1082437E38f) ^ 0x7EA6BFFF), hsb[2])), this.saturationDragging);
this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.12328622126775308) ^ 0x7FE84FAF90647595L) * Double.longBitsToDouble(Double.doubleToLongBits(0.09854681448488288) ^ 0x7FCFBA5D315669BFL) / Double.longBitsToDouble(Double.doubleToLongBits(0.029067112480345214) ^ 0x7FEB43C4E5F80CC0L)))), new Color(Color.HSBtoRGB(hsb[0], hsb[1], Float.intBitsToFloat(Float.floatToIntBits(3.3573391E38f) ^ 0x7F7C9400))), this.brightnessDragging);
this.changeAlpha(difference, (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.014823398455503097) ^ 0x7FD99BBADCA7DC11L) * Double.longBitsToDouble(Double.doubleToLongBits(0.013271171619186513) ^ 0x7FE4CDEA80AC0D24L) / Double.longBitsToDouble(Double.doubleToLongBits(0.08218747250746601) ^ 0x7FDAEA3CFA8F7AADL)), this.alphaDragging);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration | public void changeColor(double d, Color color, Color color2, boolean bl) {
block2: {
void difference;
void dragging;
if (dragging == false) break block2;
if (difference == Double.longBitsToDouble(Double.doubleToLongBits(1.2749872908217061E308) ^ 0x7FE6B20E10D32E17L)) {
void zeroColor;
this.setting.setValue(new Color(zeroColor.getRed(), zeroColor.getGreen(), zeroColor.getBlue(), this.setting.getValue().getAlpha()));
} else {
void color3;
this.setting.setValue(new Color(color3.getRed(), color3.getGreen(), color3.getBlue(), this.setting.getValue().getAlpha()));
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
/ WARNING void declaration | public void changeAlpha(double d, float f, boolean bl) {
block2: {
void difference;
void dragging;
if (dragging == false) break block2;
if (difference == Double.longBitsToDouble(Double.doubleToLongBits(7.977172206938858E307) ^ 0x7FDC6651265A7509L)) {
this.setting.setValue(new Color(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), 0));
} else {
void alpha;
this.setting.setValue(new Color(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), (int)(alpha * Float.intBitsToFloat(Float.floatToIntBits(0.015395311f) ^ 0x7F033C9D))));
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void berechneFlaeche() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"public void m23075a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"public void mo38117a() {\n }",
"... | [
"0.72114015",
"0.71405566",
"0.71401",
"0.7021417",
"0.69780886",
"0.6972193",
"0.6960773",
"0.69401586",
"0.69401586",
"0.69123584",
"0.69039416",
"0.68747616",
"0.6874215",
"0.68522483",
"0.6835249",
"0.6830557",
"0.68150365",
"0.68104607",
"0.67968935",
"0.67965853",
"0.67... | 0.0 | -1 |
Repository for TV series. | @Repository
public interface SeriesRepository extends BaseRepository<SeriesEntity, Long> {
/**
* Query target entity by the given imdb id.
*
* @param imdbId imdb id
* @return optional entity
*/
Optional<SeriesEntity> findByImdbId(String imdbId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface TickerRepository {\n}",
"public Series( String t, String s, String r){\n title = t;\n studio = s;\n rating = r;\n}",
"public Series (String t, String s){\n title = t;\n studio = s;\n rating = \"PG\";\n}",
"public List<TVShow> getAllShows(){\n\tList<TVShow> shows = new Array... | [
"0.5890966",
"0.5632263",
"0.5450344",
"0.53406674",
"0.53299505",
"0.53119296",
"0.5304912",
"0.5304549",
"0.5191747",
"0.51797664",
"0.51424056",
"0.5122542",
"0.51191527",
"0.5113303",
"0.50256914",
"0.5019153",
"0.5017113",
"0.49985027",
"0.49965477",
"0.4991151",
"0.4968... | 0.5445404 | 3 |
Query target entity by the given imdb id. | Optional<SeriesEntity> findByImdbId(String imdbId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Query(\"{id : ?0}\")\n Movie findMovieById(String id);",
"@Test\r\n public void testGetMovieInfoImdb() throws MovieDbException {\r\n LOG.info(\"getMovieInfoImdb\");\r\n MovieDb result = tmdb.getMovieInfoImdb(\"tt0076759\", \"en-US\");\r\n assertTrue(\"Error getting the movie from ... | [
"0.61766964",
"0.58312154",
"0.57846624",
"0.5781111",
"0.57330155",
"0.5720712",
"0.5633806",
"0.5561511",
"0.5438822",
"0.5433504",
"0.5386496",
"0.5368018",
"0.53058213",
"0.5303831",
"0.5212519",
"0.51864856",
"0.517704",
"0.51624215",
"0.51606214",
"0.51541865",
"0.51275... | 0.62258244 | 0 |
DropHandler will process data objects dropped on to the scrollpane and the treetable | DropHandler(FileUploaderApplet container) {
this.container = container;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void dragDropped() {\n\n\t}",
"@Override\r\n public void drop(DropTargetDropEvent dtde) {\r\n onDropFile(dtde);\r\n }",
"public void handle(DragEvent event) {\n if (currentlyDraggedType == draggableType) {\n // problem = event is dr... | [
"0.6541509",
"0.6346943",
"0.6320959",
"0.6253968",
"0.62107563",
"0.61959696",
"0.6165745",
"0.6058334",
"0.60200286",
"0.6010603",
"0.5991182",
"0.5982714",
"0.595394",
"0.59511393",
"0.5933491",
"0.59241605",
"0.5923593",
"0.5894186",
"0.58750236",
"0.5855218",
"0.5845407"... | 0.5977429 | 12 |
Test if not currently emailing & dropped content is a File | public boolean canImport(JComponent comp, DataFlavor[] flavors) {
return (!container.isEmailing() && FileList.hasAnyFileFlavor(flavors));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFile() { return false; }",
"public boolean isFile() { return true; }",
"@Override\n\tpublic boolean isFile() {\n\t\treturn true;\n\t}",
"boolean hasMimeType();",
"public boolean isAttachment() {\n return isAttachment;\n }",
"@Override\r\n public boolean isFile() throws FileSyste... | [
"0.670667",
"0.66668504",
"0.61936903",
"0.61490566",
"0.6055442",
"0.57452774",
"0.5722307",
"0.5679017",
"0.5605991",
"0.55965585",
"0.5572307",
"0.55598396",
"0.5555447",
"0.5535373",
"0.54992944",
"0.5456238",
"0.5445876",
"0.5406614",
"0.5383352",
"0.5383352",
"0.5383086... | 0.5129475 | 41 |
After approval from canImport, | public boolean importData(JComponent comp, Transferable transfer) {
FileList fileList = new FileList(transfer);
FileWorker worker = new FileWorker(container, fileList.getList());
worker.execute();
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getImported();",
"public boolean isImported();",
"public boolean getImported();",
"protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}",
"public void setImported(boolean imported);",
"protected void executePostImportExtension(AfterCreateOccurrenceContext context)\n\t\tthrows ... | [
"0.59140825",
"0.58879507",
"0.5715854",
"0.56692505",
"0.566519",
"0.56420255",
"0.56045574",
"0.55265695",
"0.5518774",
"0.5503796",
"0.54338646",
"0.5402046",
"0.5263104",
"0.52399147",
"0.52399147",
"0.5223552",
"0.5212178",
"0.5179696",
"0.5167814",
"0.51582724",
"0.5135... | 0.0 | -1 |
Constructor method for the PlayerDataReceiver class, message used to select the the PlayedData of a certain player | public PlayerDataReceiver(String playerID) {
this.type = ServerMessageType.PLAYER_DATA_RECEIVER;
this.playerID = playerID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void processPlayer(Player sender, CDPlayer playerData, String[] args) {\n }",
"public PlayerData getPlayerData() {\n return player;\n }",
"public ChatRoomDataPacket(M data, IChatUser sender) {\n\t\tsuper(data, sender);\n\t}",
"public PlayerFunctionality getPlayerData()\r\n\... | [
"0.6193456",
"0.61049175",
"0.60346776",
"0.6025187",
"0.59408915",
"0.58624566",
"0.5798126",
"0.57779896",
"0.5771192",
"0.5770687",
"0.57638717",
"0.57185453",
"0.5705349",
"0.56633157",
"0.5660252",
"0.5649958",
"0.5612536",
"0.56049395",
"0.55995786",
"0.5555378",
"0.555... | 0.7393707 | 0 |
Return a string with playerID | public String getPlayerID() {
return playerID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getPlayerId();",
"public java.lang.String getPlayerId() {\n java.lang.Object ref = playerId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringU... | [
"0.8905255",
"0.8164062",
"0.80361557",
"0.78389764",
"0.7824868",
"0.7824868",
"0.7802843",
"0.7573853",
"0.75729495",
"0.75049984",
"0.74983716",
"0.7470963",
"0.7395487",
"0.7380577",
"0.728844",
"0.7265361",
"0.71353817",
"0.71305233",
"0.71078384",
"0.7028816",
"0.701945... | 0.75825536 | 7 |
Builds a player socket connection | public PlayerSocket(String name, PrintWriter output, BufferedReader input) throws IOException {
super(name);
this.input= input;
this.output= output;
validResponse = false;
ponged = false;
Thread t = new Thread(this::listen);
t.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void connectToServerPVP() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsPLAYER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t... | [
"0.65580994",
"0.6469405",
"0.641417",
"0.6193299",
"0.61163294",
"0.5936171",
"0.58993846",
"0.5889687",
"0.5888557",
"0.58721256",
"0.57897055",
"0.5769428",
"0.5764941",
"0.57625794",
"0.57561415",
"0.57277554",
"0.5705244",
"0.5705185",
"0.5693366",
"0.569186",
"0.5685202... | 0.5728318 | 15 |
listens for communications from client. Intercepts disconnection requests. | private void listen() {
String message;
while(true){
try {
message = input.readLine();
if (message == null) continue;
if(message.equals("disconnect")){
Thread t = new Thread(this::disconnect);
t.start();
return;
} else if(message.contains("PUSH")) {
parseMessage(message);
} else if (message.equals("pong")){
ponged = true;
} else if(!validResponse) {
synchronized (this) {
response = message;
validResponse = true;
notifyAll();
}
}
} catch (IOException e) {
Thread t = new Thread(this::disconnect);
t.start();
try {
t.join();
} catch (InterruptedException e1) {
e1.printStackTrace();
}
synchronized (this) {
response = null;
validResponse = true;
notifyAll();
}
return;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void notifyDisconnection(String username){\r\n for(SocketClientHandlerObserver obs:observers){\r\n obs.onDisconnection(username);\r\n }\r\n }",
"@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n ... | [
"0.6161293",
"0.6153697",
"0.60808855",
"0.6077009",
"0.60558635",
"0.60499793",
"0.6010629",
"0.5947787",
"0.59453785",
"0.59421253",
"0.5924541",
"0.58959055",
"0.58942354",
"0.58914983",
"0.5876856",
"0.5870005",
"0.5821221",
"0.5808788",
"0.58022076",
"0.5786974",
"0.5781... | 0.6358754 | 0 |
parses message in case it's a push message from client | private void parseMessage(String message) {
JSONObject msg = (JSONObject) JSONValue.parse(message);
switch(msg.get("type").toString()){
case "join_match":
int id = Integer.parseInt(msg.get("match_id").toString());
try {
getServerLobby().joinMatch(this, id);
} catch (TooManyPlayersException e) {
this.alert("Cannot join match: match is full");
} catch (MatchAlreadyStartedException e) {
this.alert("Cannot join match: match already started");
} catch (PlayerAlreadyExistsException e) {
e.printStackTrace();
} catch (PlayerNotExistsException e) {
e.printStackTrace();
}
break;
case "create_match":
int maxPlayers = Integer.parseInt(msg.get("max_players").toString());
int maxDeaths = Integer.parseInt(msg.get("max_deaths").toString());
int turnDuration = Integer.parseInt(msg.get("turn_duration").toString());
int mapID = Integer.parseInt(msg.get("map_id").toString());
try {
getServerLobby().hostMatch(this,maxPlayers,maxDeaths,turnDuration,mapID);
} catch (TooManyMatchesException e) {
this.alert("Cannot create match: server is full");
} catch (PlayerNotExistsException e) {
e.printStackTrace();
} catch (MatchAlreadyStartedException e) {
e.printStackTrace();
} catch (PlayerAlreadyExistsException e) {
e.printStackTrace();
} catch (TooManyPlayersException e) {
e.printStackTrace();
}
break;
case "ready":
getCurrentMatch().setPlayerReady(this, true);
break;
case "not_ready":
getCurrentMatch().setPlayerReady(this, false);
break;
case "update_lobby":
if(getServerLobby()!=null) {
this.updateLobby(getServerLobby().lobby);
} else {
output.print("NOT_IN_LOBBY");
}
break;
case "back_to_lobby":
try {
this.backToLobby();
} catch (MatchAlreadyStartedException | PlayerNotExistsException e) {
alert("Error leaving waiting room");
}
break;
default:
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMessage(String channel, String message) {\n if (redisHandler.isAuth()) redisHandler.getJedisPool().getResource().auth(redisHandler.getPassword());\n if (!channel.equalsIgnoreCase(redisHandler.getChannel())) return;\n\n executor.execute(() -> {\n String[]... | [
"0.6931123",
"0.65564847",
"0.6436311",
"0.6301544",
"0.62054855",
"0.6201609",
"0.6187409",
"0.6156175",
"0.6060565",
"0.6060377",
"0.6017687",
"0.6007637",
"0.5971908",
"0.59717363",
"0.5957208",
"0.59504014",
"0.59465194",
"0.59288675",
"0.59265685",
"0.5913435",
"0.590954... | 0.61671305 | 7 |
Gets last message sent from client or waits for it until it comes. | private String getResponse(){
String msg;
synchronized (this){
while(!validResponse) {
try {
wait();
} catch (InterruptedException e) {
e.printStackTrace();
return null;
}
}
msg = response;
validResponse = false;
notifyAll();
}
return msg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized ClientMessage readClientMessage(){\n while ( !currClient.isUpdatingClientMessage() ) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n currClient.setUpdateClientMessage(... | [
"0.7150894",
"0.66024387",
"0.6532133",
"0.65185404",
"0.6448422",
"0.64318174",
"0.6259546",
"0.6243527",
"0.61754674",
"0.6130718",
"0.60750365",
"0.60474676",
"0.6009561",
"0.59900457",
"0.59565294",
"0.5926258",
"0.59183496",
"0.58735096",
"0.587339",
"0.58655816",
"0.585... | 0.58235234 | 23 |
select a player in a given list | @Override
public Player selectPlayer(List<Player> selectable) {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "player");
JSONArray jArray = new JSONArray();
selectable.forEach(s->jArray.add(s.getNickname()));
message.put("list", jArray);
this.sendInstruction(message);
String selected = this.getResponse();
if (selected == null || selected.isEmpty()) return null;
return selectable.stream().filter(p->p.getNickname().equals(selected))
.collect(Collectors.toList()).get(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Player getSelectedPlayer();",
"void selectPlayerFrom(List<Player> players, String title, Consumer<Player> callback);",
"private void selectRandomPlayer() {\n Random rand = new Random();\n // Restrict random number range to available indexes in the players list.\n // - 1 to offset zero-based inde... | [
"0.7260274",
"0.7202891",
"0.688444",
"0.6639816",
"0.6556595",
"0.6382567",
"0.63482",
"0.6336608",
"0.6294229",
"0.6215869",
"0.6193167",
"0.6078412",
"0.6063245",
"0.605987",
"0.6002986",
"0.5990856",
"0.59811366",
"0.59659964",
"0.59489155",
"0.5865721",
"0.5856001",
"0... | 0.7799841 | 0 |
select a cell in a given list | @Override
public Cell selectCell(List<Cell> selectable) {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "cell");
JSONArray jArray = createJSONCoordinateList(selectable);
message.put("list", jArray);
this.sendInstruction(message);
JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());
if (selected.get("x").equals("none")) return null;
return selectable.stream().filter(c->c.getCoordX() == Integer.parseInt(selected.get("x").toString()) &&
c.getCoordY() == Integer.parseInt(selected.get("y").toString()))
.collect(Collectors.toList()).get(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void selectCells(String... cellList) /*-{\r\n\t var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n\t self.selectCells(cellList);\r\n\t }-*/;",
"public void setSelectedCell(Coord c) {\n this.selected = c;\n }",
"public native void selectCell(Record ce... | [
"0.68682855",
"0.6604316",
"0.6471954",
"0.634111",
"0.6285213",
"0.62276274",
"0.6106245",
"0.60070693",
"0.5997247",
"0.5978703",
"0.5942719",
"0.5867301",
"0.5828461",
"0.56830055",
"0.55493826",
"0.55437565",
"0.55371785",
"0.55292124",
"0.5522787",
"0.5521359",
"0.550650... | 0.7900962 | 0 |
select a room in a given list | @Override
public List<Cell> selectRoom(List<List<Cell>> selectable) {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "room");
JSONArray jArray = new JSONArray();
selectable.forEach(r -> {
JSONArray room = createJSONCoordinateList(r);
jArray.add(room);
});
message.put("list", jArray);
this.sendInstruction(message);
JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());
if (selected.get("room").toString().equals("none")) return new ArrayList<>();
JSONArray room = (JSONArray) selected.get("room");
for(List<Cell> r : selectable){
for(Cell c : r){
if(c.getCoordX() == Integer.parseInt((((JSONObject) room.get(0)).get("x").toString())) &&
c.getCoordY() == Integer.parseInt((((JSONObject) room.get(0)).get("y").toString())))
return r;
}
}
return new ArrayList<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selectroom() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Select_Room);\r\n\t\t//SeleniumRepo.waitForElementPresent(Select_Room);\r\n\r\n\t\tif (Select_Room.isDisplayed()) \r\n\t\t{\r\n\t\t\tSelect_Room.click();\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tSystem.out.println(\"Clicked on select room... | [
"0.6566501",
"0.63750625",
"0.63383806",
"0.62878186",
"0.6184748",
"0.6105617",
"0.60650253",
"0.6017856",
"0.58635694",
"0.585207",
"0.5811877",
"0.5807638",
"0.5804834",
"0.578247",
"0.575863",
"0.575425",
"0.575425",
"0.57382846",
"0.5728933",
"0.5694375",
"0.5685264",
... | 0.74621165 | 0 |
builds a JSONArray of coordinates | private JSONArray createJSONCoordinateList(List<Cell> r) {
JSONArray room = new JSONArray();
r.forEach(s -> {
JSONObject coords = new JSONObject();
coords.put("x", s.getCoordX());
coords.put("y", s.getCoordY());
room.add(coords);
});
return room;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double[] getCoordinates(){\n\t\tdouble[] coord = new double[2];\n\t\tdouble xcoord = (double)position[0]/9;\n\t\tdouble zcoord = (double)position[1]/9;\n\t\tcoord[0] = xcoord;\n\t\tcoord[1] = zcoord;\t\t\n\t\treturn coord;\n\t}",
"public List<Float[]> getCoordinates() {\n return coordinates;\n }... | [
"0.6373055",
"0.6112799",
"0.60934865",
"0.609305",
"0.6073598",
"0.6038836",
"0.5923042",
"0.59210646",
"0.5859696",
"0.57860786",
"0.5781289",
"0.5751681",
"0.5712569",
"0.56939507",
"0.5653981",
"0.5646565",
"0.564479",
"0.56439596",
"0.56411016",
"0.5619396",
"0.55944717"... | 0.7299178 | 0 |
select a powerup card from a given list | @Override
public Powerup choosePowerup(List<Powerup> selectable) {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "powerup");
JSONArray jArray = new JSONArray();
selectable.forEach(s->jArray.add(s.toJSON()));
message.put("list", jArray);
this.sendInstruction(message);
String selected = this.getResponse();
if (selected == null || selectable.isEmpty()) return null;
List<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected))
.collect(Collectors.toList());
return matching.isEmpty() ? null : matching.get(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Card> selectByExample(CardExample example);",
"void chooseCards(List<SortedBag<Card>> options,\n ChooseCardsHandler handler);",
"public static String chooseCardsFromCollection() {\n System.out.println(\"Please select the pokemons you want. By their number and separated by a ... | [
"0.63331616",
"0.62234056",
"0.6163574",
"0.61245453",
"0.61166537",
"0.61116934",
"0.60843617",
"0.60738236",
"0.60471207",
"0.5983314",
"0.58907086",
"0.58741367",
"0.5869999",
"0.58467096",
"0.58098745",
"0.5803102",
"0.57751715",
"0.5732347",
"0.56732804",
"0.5644718",
"0... | 0.6728084 | 0 |
select a weapon card from a given list | @Override
public WeaponSelection chooseWeapon(List<Weapon> selectable) {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "weapon");
JSONArray jArray = new JSONArray();
selectable.forEach(s->jArray.add(s.getName()));
message.put("list", jArray);
this.sendInstruction(message);
JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());
return parseWeaponSelection(selected);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selectWeaponFromInventory(int weaponIndex) {\n }",
"private Card murderWeapon(UI ui, Player currentPlayer) {\n CardPanel cardPanel = new CardPanel(ui.getBoard(), ui.getCmd(), \"weapons\");\n ui.getLayers().add(cardPanel, Integer.valueOf(6));\n cardPanel.showPanel();\n u... | [
"0.6823554",
"0.63266",
"0.63047075",
"0.6288161",
"0.62780464",
"0.6247104",
"0.62310743",
"0.61971104",
"0.61731976",
"0.605939",
"0.603188",
"0.59692097",
"0.59234357",
"0.59008926",
"0.58771133",
"0.57878596",
"0.5759624",
"0.57526946",
"0.57489336",
"0.57244396",
"0.5716... | 0.66621506 | 1 |
select a weapon to reload | @Override
public WeaponSelection reload(List<Weapon> canLoad) {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "load");
return getWeaponSelection(canLoad, message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reloadWeapon() {\r\n Timer timer = new Timer();\r\n Colt.playReloadSound();\r\n timer.schedule(new FinishReload(), 2000);\r\n }",
"public void toSelectingWeapon() {\n }",
"public void equipSelectedWeapon() {\n }",
"public void selectWeaponFromInventory(int weaponInde... | [
"0.7143796",
"0.7033036",
"0.6934688",
"0.6927594",
"0.6874646",
"0.6846469",
"0.67511743",
"0.6590335",
"0.62399846",
"0.61700535",
"0.61237615",
"0.6099305",
"0.6089382",
"0.6058182",
"0.6022985",
"0.5948493",
"0.58921903",
"0.5838828",
"0.58279556",
"0.58093435",
"0.580419... | 0.75014967 | 0 |
select a weapon and effect to shoot with | @Override
public WeaponSelection shoot(List<Weapon> loaded) {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "shoot");
return getWeaponSelection(loaded, message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void toSelectingWeapon() {\n }",
"public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}",
"public void equipSelectedWeapon() {\n }",
"private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage =... | [
"0.7118549",
"0.7037145",
"0.68443006",
"0.675274",
"0.64771324",
"0.6435424",
"0.6428431",
"0.6372801",
"0.63582945",
"0.6346749",
"0.63402605",
"0.6281745",
"0.6260977",
"0.6198667",
"0.6181857",
"0.61790496",
"0.61668646",
"0.6143513",
"0.6143167",
"0.61378986",
"0.6137299... | 0.6983048 | 2 |
Completes the message and parses client response | private WeaponSelection getWeaponSelection(List<Weapon> weapons, JSONObject message) {
JSONArray jArray = createJSONWeaponList(weapons);
message.put("list", jArray);
this.sendInstruction(message);
JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());
return parseWeaponSelection(selected);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endResponse() throws IOException {\n out.println();\n //out.println(\"--End\");\n out.flush();\n endedLastResponse = true;\n }",
"public void endResponse()\n\t\t\t{\n\t\t\t\tsend(\"</response>\", false);\n\t\t\t}",
"@Override\n public void onCompleted() {\n Sy... | [
"0.64204776",
"0.6367694",
"0.6345734",
"0.63350725",
"0.6275108",
"0.6161082",
"0.6087877",
"0.60663384",
"0.60558015",
"0.60492814",
"0.6019498",
"0.59491277",
"0.59113634",
"0.58994496",
"0.58835834",
"0.588142",
"0.5838772",
"0.58381844",
"0.5829782",
"0.5822082",
"0.5802... | 0.0 | -1 |
creats a JSONArray with weapons in a given list | private JSONArray createJSONWeaponList(List<Weapon> weapons) {
JSONArray jArray = new JSONArray();
weapons.forEach(s -> jArray.add(s.getName()));
return jArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private HashMap<String, Weapon> readWeapons() {\n JSONObject weaponsData = getAssetJson(\"weapons.json\").getJSONObject(\"weapons\");\n HashMap<String, Weapon> weapons = new HashMap<>();\n\n for(String categoryName : weaponsData.keySet()) {\n Weapon.CATEGORY category = Weapon.CATEGO... | [
"0.6027258",
"0.59584117",
"0.5937051",
"0.59283394",
"0.579138",
"0.56842506",
"0.5660165",
"0.55887294",
"0.5568918",
"0.5563778",
"0.5542684",
"0.55288714",
"0.55271226",
"0.5467656",
"0.5340235",
"0.53031355",
"0.5293616",
"0.52430177",
"0.5239771",
"0.5232196",
"0.522092... | 0.79027367 | 0 |
select a turn action in a given list | @Override
public TurnAction selectAction() {
JSONObject message = new JSONObject();
message.put("function", "select");
message.put("type", "action");
this.sendInstruction(message);
String selected = this.getResponse();
return TurnAction.valueOf(selected);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selected(String action);",
"public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\... | [
"0.65993613",
"0.62833476",
"0.6242347",
"0.6209014",
"0.61974",
"0.5964571",
"0.590535",
"0.58608764",
"0.5808802",
"0.577856",
"0.5776629",
"0.57755345",
"0.57676196",
"0.5757782",
"0.57442415",
"0.566433",
"0.5661582",
"0.56566054",
"0.5655516",
"0.56385857",
"0.5625875",
... | 0.6846896 | 0 |
Updates the client match view | @Override
public void updateMatch(AdrenalinaMatch toGetUpdateFrom) {
JSONObject message = new JSONObject();
message.put("function", "update");
message.put("type", "match");
message.put("match", toGetUpdateFrom.toJSON());
this.sendInstruction(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateView(ClientView view);",
"public void updateMatch(Match match){\n setMatch(match);\n Platform.runLater( () -> {\n firstPage.setMatch(match);\n firstPage.refreshPlayersInLobby();\n });\n if(mainPage != null) {\n Platform.runLat... | [
"0.73181516",
"0.67359877",
"0.6251066",
"0.6251066",
"0.6224087",
"0.6165555",
"0.60889447",
"0.6013109",
"0.6008025",
"0.5987322",
"0.5981707",
"0.5941554",
"0.5766093",
"0.57660735",
"0.57492477",
"0.57451344",
"0.5703543",
"0.56585497",
"0.5653496",
"0.56470656",
"0.56461... | 0.54102516 | 36 |
Updates the client lobby view | public void updateLobby(Lobby toGetUpdateFrom) {
JSONObject message = new JSONObject();
message.put("function", "update");
message.put("type", "lobby");
message.put("lobby", toGetUpdateFrom.toJSON());
this.sendInstruction(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateView(ClientView view);",
"public void updateConnectedPlayers(ArrayList<Player> connectedPlayers) throws RemoteException{\n match.setPlayers(connectedPlayers);\n for (int i=0;i<match.getPlayers().size();i++){\n System.out.println(\"[LOBBY]: Player \"+ match.getPlayers().... | [
"0.6596501",
"0.62613225",
"0.6141269",
"0.60885364",
"0.60390097",
"0.6025572",
"0.59963256",
"0.5941971",
"0.5853243",
"0.58529645",
"0.5850486",
"0.58271575",
"0.57598865",
"0.57532305",
"0.57522833",
"0.57509315",
"0.5735196",
"0.5674904",
"0.56655097",
"0.5609763",
"0.56... | 0.6096705 | 3 |
Socket doesn't use ping to detect disconnections but methods are provided to prevent usless casts | @Override
public boolean getPinged() {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSoLinger()\r\n/* 123: */ {\r\n/* 124: */ try\r\n/* 125: */ {\r\n/* 126:149 */ return this.javaSocket.getSoLinger();\r\n/* 127: */ }\r\n/* 128: */ catch (SocketException e)\r\n/* 129: */ {\r\n/* 130:151 */ throw new ChannelException(e);\r\n/* 131: ... | [
"0.65940905",
"0.63911",
"0.6103202",
"0.6077244",
"0.6050692",
"0.59638494",
"0.59634197",
"0.59388316",
"0.59171695",
"0.58559126",
"0.58508456",
"0.5802039",
"0.57895815",
"0.5786642",
"0.578389",
"0.5758714",
"0.5752872",
"0.57522523",
"0.5747881",
"0.57062167",
"0.570109... | 0.0 | -1 |
check every half second for updates for 10 seconds | @Override
protected Location doInBackground(final Void... unused) {
for (int i = 0; true; i++) {
if (location == null)
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// can't do anything here but continue
}
else
break;
// if the user has waited more then 2 seconds tell them we are still
// waiting
if (i > 5)
publishProgress("waiting for location.");
else if (i > 10)
publishProgress("still waiting for location.");
}
return location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void periodicUpdate();",
"public void checkLavaTileUpdates() {\n // 1 second (1 bn nanoseconds) between each tick\n long timeBetweenTicks = 1000;\n long newTime = System.currentTimeMillis();\n\n // if it has been 1 second: decrement ticks, set a new time and return true\n ... | [
"0.6842927",
"0.6833404",
"0.6773372",
"0.6773372",
"0.6773372",
"0.6704941",
"0.6663575",
"0.65265805",
"0.6509081",
"0.6474917",
"0.6375316",
"0.6353642",
"0.63329256",
"0.63325524",
"0.63133466",
"0.63120335",
"0.62863606",
"0.6252479",
"0.62472624",
"0.6244817",
"0.622620... | 0.0 | -1 |
Created by Asomir on 01.10.2016. | public interface Action { //придумываем интерфейс для описания действий, присущих роботу
Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.59450966",
"0.58269155",
"0.58062005",
"0.5741484",
"0.5696639",
"0.5696639",
"0.5632754",
"0.56316566",
"0.5624304",
"0.56053853",
"0.5598542",
"0.55898505",
"0.5569074",
"0.5549824",
"0.5539326",
"0.55051357",
"0.5497738",
"0.54796267",
"0.54733634",
"0.54699564",
"0.546... | 0.0 | -1 |
Returns the default dialog title for the case when an action is disabled by policy on a managed device. | String getDefaultDisabledByPolicyTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDefaultDisabledByPolicyContent();",
"String getDisabledByPolicyTitleForFinancedDevice();",
"PreferenceDialogTitleAttribute getDialogTitle();",
"String getDisallowAdjustVolumeTitle();",
"@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context... | [
"0.71434057",
"0.68649304",
"0.6463208",
"0.6187975",
"0.6055983",
"0.605399",
"0.5912825",
"0.5904155",
"0.5845989",
"0.5729996",
"0.56702656",
"0.56015146",
"0.5571314",
"0.54401916",
"0.54200745",
"0.54109514",
"0.53955734",
"0.5369723",
"0.5354882",
"0.5317431",
"0.528446... | 0.79106045 | 0 |
Returns the dialog title for the case when volume adjusting is disabled. | String getDisallowAdjustVolumeTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"PreferenceDialogTitleAttribute getDialogTitle();",
"String getDisableScreenCaptureTitle();",
"int getCancelledVolume();",
"String getDisableCameraTitle();",
"public String getTitleChoice() {\n return io.readStri... | [
"0.6252502",
"0.6144802",
"0.5824237",
"0.578736",
"0.5771396",
"0.576508",
"0.5500449",
"0.5468832",
"0.53480345",
"0.5288698",
"0.52668625",
"0.52201575",
"0.5216078",
"0.52013",
"0.5178737",
"0.51653236",
"0.5145589",
"0.5121579",
"0.5105303",
"0.504319",
"0.5041405",
"0... | 0.8444277 | 0 |
Returns the dialog title for the case when outgoing calls are disabled. | String getDisallowOutgoingCallsTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDisallowSmsTitle();",
"PreferenceDialogTitleAttribute getDialogTitle();",
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"String getDisableScreenCaptureTitle();",
"String getDisabledByPolicyTitleForFinancedDevice();",
"String getDisableCameraTitle();",
... | [
"0.67519873",
"0.63545823",
"0.6349194",
"0.6130479",
"0.5974113",
"0.5862216",
"0.5837779",
"0.5794673",
"0.57639045",
"0.5694599",
"0.55071014",
"0.5405284",
"0.5346377",
"0.5318964",
"0.5317805",
"0.5310275",
"0.529932",
"0.5229698",
"0.51773244",
"0.51570594",
"0.5121346"... | 0.8123848 | 0 |
Returns the dialog title for the case when sending SMS is disabled. | String getDisallowSmsTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDisallowOutgoingCallsTitle();",
"boolean isSMSPromptEnabled();",
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"PreferenceDialogTitleAttribute getDialogTitle();",
"String getDisableScreenCaptureTitle();",
"String getDisableCameraTitle();",
"public Stri... | [
"0.6701287",
"0.6536706",
"0.64575607",
"0.64030546",
"0.6305101",
"0.5821373",
"0.57968134",
"0.57475764",
"0.5695276",
"0.56790507",
"0.5613332",
"0.5588291",
"0.55753994",
"0.5575069",
"0.55524665",
"0.5543841",
"0.5471739",
"0.54358065",
"0.54357237",
"0.5429874",
"0.5416... | 0.8113939 | 0 |
Returns the dialog title for the case when the camera is disabled. | String getDisableCameraTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDisableScreenCaptureTitle();",
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"PreferenceDialogTitleAttribute getDialogTitle();",
"String getDisallowAdjustVolumeTitle();",
"String getDefaultDisabledByPolicyTitle();",
"String getDisallowSmsTitle();",
"@O... | [
"0.75201803",
"0.67001015",
"0.64893883",
"0.6406941",
"0.62087643",
"0.58083534",
"0.57262915",
"0.56995595",
"0.5687961",
"0.5666503",
"0.5485517",
"0.5470919",
"0.54289883",
"0.540989",
"0.53452134",
"0.5313293",
"0.530489",
"0.5248636",
"0.52346146",
"0.52203196",
"0.5199... | 0.81549406 | 0 |
Returns the dialog title for the case when screen capturing is disabled. | String getDisableScreenCaptureTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDisableCameraTitle();",
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"PreferenceDialogTitleAttribute getDialogTitle();",
"private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\... | [
"0.6942801",
"0.64841557",
"0.64688724",
"0.62174106",
"0.6078851",
"0.59218574",
"0.59108144",
"0.58725727",
"0.57349247",
"0.5676761",
"0.5640427",
"0.5605424",
"0.56040823",
"0.5588851",
"0.55474615",
"0.5532819",
"0.5531597",
"0.5502443",
"0.5491632",
"0.54902667",
"0.548... | 0.82551026 | 0 |
Returns the dialog title for the case when suspending apps is disabled. | String getSuspendPackagesTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDisabledByPolicyTitleForFinancedDevice();",
"String getDefaultDisabledByPolicyTitle();",
"String getDisableScreenCaptureTitle();",
"PreferenceDialogTitleAttribute getDialogTitle();",
"String getDisallowAdjustVolumeTitle();",
"String getDisallowSmsTitle();",
"String getDisallowOutgoingCallsTit... | [
"0.6983512",
"0.66496885",
"0.6581036",
"0.6564412",
"0.65380716",
"0.6254784",
"0.60747015",
"0.5934651",
"0.59184384",
"0.5913387",
"0.5897348",
"0.57765156",
"0.5724151",
"0.5597789",
"0.5594334",
"0.5593004",
"0.55174965",
"0.5490426",
"0.5481715",
"0.54764915",
"0.546991... | 0.6950794 | 1 |
Returns the default dialog content for the case when an action is disabled by policy. | String getDefaultDisabledByPolicyContent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDefaultDisabledByPolicyTitle();",
"String getDisabledByPolicyTitleForFinancedDevice();",
"public static Action getDisabledAction() {\n Action action = new Action() {\n };\n action.setEnabled(false);\n return action;\n }",
"public PolicyBinderPage endorsementFromAction... | [
"0.6888971",
"0.5668122",
"0.5373545",
"0.5340534",
"0.53224504",
"0.5293927",
"0.5162081",
"0.5149293",
"0.5147435",
"0.5126336",
"0.5110128",
"0.50648177",
"0.499664",
"0.49650645",
"0.49637038",
"0.49539044",
"0.49344444",
"0.49314374",
"0.4925945",
"0.49107614",
"0.487419... | 0.74317545 | 0 |
Returns the URL for the page to be shown when the learn more button is chosen. | String getLearnMoreHelpPageUrl(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPreViewUrl();",
"public void onLearnMoreClickedListener(View view) {\n Toast.makeText(this, \"Go to service page on the website . . . \", Toast.LENGTH_SHORT).show();\n }",
"public void learnMoreOnClick(View view) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"htt... | [
"0.6213276",
"0.62008625",
"0.6122096",
"0.60288393",
"0.5989105",
"0.5899682",
"0.5849906",
"0.57287663",
"0.5728144",
"0.57203513",
"0.5647559",
"0.5632284",
"0.56279594",
"0.5619494",
"0.5616641",
"0.56079364",
"0.55978614",
"0.5591593",
"0.5591593",
"0.5591593",
"0.559159... | 0.8129015 | 0 |
Returns the default dialog title for the case when an action is disabled by policy on a financed device. | String getDisabledByPolicyTitleForFinancedDevice(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDefaultDisabledByPolicyTitle();",
"String getDefaultDisabledByPolicyContent();",
"PreferenceDialogTitleAttribute getDialogTitle();",
"String getDisallowAdjustVolumeTitle();",
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"public String getPrompt() {\r\n\... | [
"0.77378166",
"0.6799463",
"0.66986483",
"0.62263507",
"0.6161878",
"0.60552585",
"0.58441675",
"0.57713646",
"0.5650599",
"0.5623975",
"0.5578858",
"0.5551747",
"0.54910326",
"0.544617",
"0.5438708",
"0.5348175",
"0.53392637",
"0.53390014",
"0.53316146",
"0.5306647",
"0.5305... | 0.72073644 | 1 |
Returns the dialog title for when biometrics require parental consent. | String getDisabledBiometricsParentConsentTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PreferenceDialogTitleAttribute getDialogTitle();",
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"String getDisabledBiometricsParentConsentContent();",
"public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }",
"stat... | [
"0.66449255",
"0.6400603",
"0.61244583",
"0.5794645",
"0.5723346",
"0.56845534",
"0.56459266",
"0.5644873",
"0.563775",
"0.5636196",
"0.56199753",
"0.56134653",
"0.5600034",
"0.5592597",
"0.5550282",
"0.55191743",
"0.54454976",
"0.544473",
"0.54242355",
"0.54134893",
"0.54119... | 0.7655384 | 0 |
Returns the dialog contents for when biometrics require parental consent. | String getDisabledBiometricsParentConsentContent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getDisabledBiometricsParentConsentTitle();",
"public String getConsentHTML();",
"public String getConsentPDF();",
"void onOpenCMPConsentToolActivity(ServerResponse response, CMPSettings settings);",
"public String[] showAccusationDialog() {\n\t\tframe.enableAccuseBtn(false);\n\t\treturn new String[]... | [
"0.64354104",
"0.62976575",
"0.5417809",
"0.507562",
"0.50256395",
"0.49821436",
"0.4884333",
"0.48382145",
"0.4822296",
"0.4813085",
"0.47825825",
"0.47815886",
"0.47737744",
"0.47565377",
"0.47418",
"0.47138157",
"0.4672604",
"0.46586868",
"0.464342",
"0.4635018",
"0.463011... | 0.729245 | 0 |
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity. | public static InventoryProvider createEntity(EntityManager em) {
InventoryProvider inventoryProvider = new InventoryProvider()
.idInventoryProvider(DEFAULT_ID_INVENTORY_PROVIDER)
.code(DEFAULT_CODE)
.name(DEFAULT_NAME)
.price(DEFAULT_PRICE)
.cuantity(DEFAULT_CUANTITY);
return inventoryProvider;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity createEntity();",
"T createEntity();",
"protected abstract ENTITY createEntity();",
"void create(E entity);",
"void create(T entity);",
"E create(E entity);",
"E create(E entity);",
"TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Te... | [
"0.772318",
"0.75051135",
"0.74880123",
"0.7361846",
"0.7314592",
"0.71563506",
"0.71563506",
"0.715137",
"0.7150589",
"0.70789564",
"0.70169926",
"0.68033403",
"0.6752896",
"0.67390555",
"0.67390555",
"0.6711267",
"0.6681522",
"0.66659015",
"0.6640632",
"0.6624671",
"0.66241... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.