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
Using a test, ensure that voting either up or down is not allowed on questions or answers by the original author, you know to avoid gaming the system. Ensure the proper exceptions are being thrown.
@Test(expected= VotingException.class) public void VotingMadeByAuthorThrowsException() throws Exception { bob.upVote(bobPost); bob.downVote(bobPost); alice.upVote(question); alice.downVote(question); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void downVotingQuestionsGetNoPoints() throws Exception {\n\n bob.upVote(question);\n charlie.downVote(question);\n\n assertEquals(5,alice.getReputation());\n }", "private void check4voteAndClean()\n\t{\n\t\tif( noBeepersPresent())\n\t\t{\tturnLeft();\n\t\t\tmove();\n\t\t...
[ "0.7085448", "0.6341703", "0.6309605", "0.6253146", "0.61927396", "0.6133216", "0.603896", "0.6031962", "0.59917873", "0.5975886", "0.5962263", "0.5958004", "0.59493876", "0.5889557", "0.577614", "0.5752902", "0.574784", "0.5687315", "0.5685376", "0.5667159", "0.5660526", "...
0.74969
0
Write a test to make sure that only the original questioner can accept an answer. Ensure the intended messaging is being sent to back to the caller.
@Test(expected= AnswerAcceptanceException.class) public void originalQuestionerCanAcceptAnswer() throws Exception { bob.acceptAnswer(bobAnswer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void acceptedAnswerGivesAnswererReputationPoints() throws Exception {\n\n alice.acceptAnswer(bobAnswer);\n\n assertEquals(\"Answer's reputation doesn't goes up by 15\",15,bob.getReputation());\n }", "@Test\n\tpublic void acceptedOfferCanNotBeRejected() {\n\t}", "@Test\n\tpubl...
[ "0.6742436", "0.66197836", "0.65240717", "0.65063405", "0.64075947", "0.6370028", "0.63206357", "0.6085129", "0.60715085", "0.6060608", "0.603971", "0.6005965", "0.5989582", "0.59463656", "0.5940901", "0.59320784", "0.5928962", "0.592731", "0.5857489", "0.5824558", "0.5798125...
0.73854554
0
Reviewing the User.getReputation method may expose some code that is not requested to be tested in the Meets Project instructions. Write the missing test(EXTRA CREDIT).
@Test public void downVotingQuestionsGetNoPoints() throws Exception { bob.upVote(question); charlie.downVote(question); assertEquals(5,alice.getReputation()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getReputation() {\n return reputation;\n }", "@Test\n public void acceptedAnswerGivesAnswererReputationPoints() throws Exception {\n\n alice.acceptAnswer(bobAnswer);\n\n assertEquals(\"Answer's reputation doesn't goes up by 15\",15,bob.getReputation());\n }", "public...
[ "0.694912", "0.6316922", "0.62031275", "0.60845476", "0.5722585", "0.5659994", "0.537451", "0.532266", "0.53216004", "0.5318524", "0.5315763", "0.5282342", "0.5282342", "0.5231312", "0.5202847", "0.51702446", "0.51620775", "0.51434886", "0.5115341", "0.5105961", "0.51038396",...
0.54494953
6
Constructor appends the group member names in a list passed as parameter.
public GroupName(List<String> theNames) { memberName = new StringBuilder(); for (int i = 0; i < theNames.size(); i++) { memberName.append(theNames.get(i)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Group(String name) {\n super(name);\n this.members = new HashSet<>();\n }", "Group(String name) {\n this(name, new ArrayList<>());\n }", "public Group()\n\t{\n\t\tthis.members = new ArrayList<>();\n\t\tthis.groupID= idCounter;\n\t\tidCounter++;\n\t}", "public Group() {\n\t\t\tmembers ...
[ "0.6991033", "0.68001735", "0.66040933", "0.63827395", "0.6073352", "0.6045", "0.5961561", "0.5916693", "0.5881474", "0.58401513", "0.58175874", "0.5770955", "0.5629205", "0.5625299", "0.562128", "0.55707455", "0.55690706", "0.55620044", "0.54686666", "0.54011893", "0.5345389...
0.6981538
1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_recipe3, container, false); ArrayList<Review_data> review_list = new ArrayList<>(); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
/ JADX INFO: super call moved to the top of the method (can break code semantics)
public HttpUrlFetcher(Call.Factory factory) { super(factory); Intrinsics.checkParameterIsNotNull(factory, "callFactory"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_6349() {\r\n super.method_6349();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "protected void method_3848() {\...
[ "0.7415376", "0.7120564", "0.7120564", "0.7120564", "0.71153504", "0.70223135", "0.7006699", "0.6959695", "0.69354844", "0.68295795", "0.6789057", "0.6759874", "0.6727165", "0.6727165", "0.6680012", "0.6670413", "0.6636899", "0.66286534", "0.6619911", "0.6605483", "0.6603786"...
0.0
-1
int[] a = null; a[0] = 0; lalalalalalalalala
public String t1() { return "111"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void l()\r\n/* 190: */ {\r\n/* 191:221 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 192:222 */ this.a[i] = null;\r\n/* 193: */ }\r\n/* 194: */ }", "public void l()\r\n/* 606: */ {\r\n/* 607:650 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 608:651 */ th...
[ "0.7517288", "0.6932732", "0.67371535", "0.67232054", "0.67232054", "0.6707203", "0.6707203", "0.6463264", "0.6453872", "0.6276032", "0.62591195", "0.62420297", "0.6216225", "0.6150016", "0.6012181", "0.5910668", "0.59086055", "0.5896112", "0.587971", "0.5845249", "0.5842951"...
0.0
-1
Setup the grid layout manager
@Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { GridLayoutManager glm = new GridLayoutManager(getContext(), 2); mRecyclerView.setLayoutManager(glm); mRecyclerView.setHasFixedSize(true); // TODO: Create the adapter // TODO: Set the adapt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupLayoutManager() {\n\n setLayout(new BorderLayout());\n add(directoryChooserPanel, BorderLayout.NORTH);\n add(splitPane, BorderLayout.CENTER);\n\n }", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Co...
[ "0.7365459", "0.7231014", "0.70464015", "0.7004862", "0.7002231", "0.6980822", "0.6933406", "0.69275874", "0.6822287", "0.6804537", "0.6801189", "0.6799766", "0.6791068", "0.67591786", "0.66807514", "0.66344583", "0.66240937", "0.6622727", "0.6613563", "0.65947366", "0.657963...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { tb_Actions = new javax.swing.JToolBar(); lbl_toRoot = new javax.swing.JLabel(); lbl_wizard = new javax.swing.JLabel(); lbl_add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7318948", "0.7290426", "0.7290426", "0.7290426", "0.7284922", "0.7247965", "0.7213206", "0.72080696", "0.7195916", "0.7189941", "0.71835536", "0.71579427", "0.7147217", "0.70927703", "0.7080282", "0.7055882", "0.6987108", "0.69770193", "0.6954159", "0.69529283", "0.6944756...
0.0
-1
if (n == 1) return 1; if (n < 3) return 2; return climbStairs (n1) + climbStairs (n2);
public int climbStairs(int n) { if (n == 1) return 1; if (n < 3) return 2; if (n == 0) return 0; int[] dp = new int[n+1]; dp[0] = 1; dp[1] = 2; dp[2] = 2; for (int i = 2; i < n; i++){ dp[i] = dp[i -1] +dp[i -2]; } return dp[n-1]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int climbStairs(int n){\n if(n<0)\n return 0;\n if(n==0)\n return 1;\n return climbStairs(n-1)+climbStairs(n-2);\n }", "public int climbStairs4(int n){\n if(n==1)\n return 1;\n int first=1;\n int second=2;\n for(int i=3;i...
[ "0.834371", "0.82454073", "0.8115144", "0.81112254", "0.79908586", "0.78786045", "0.78683615", "0.77719414", "0.77559716", "0.7708636", "0.75733846", "0.7478906", "0.7467492", "0.72521335", "0.7226858", "0.6892719", "0.67739403", "0.65951353", "0.6321294", "0.62819105", "0.61...
0.8149742
2
Test of addRound method, of class RoundDaoDBImpl.
@Test public void testAddRound() { Game g = new Game(); g.setGameId(1); g.setGameStatus(true); g.setGameKey(1234); gameDao.addGame(g); Round round = new Round(); round.setGuess(1234); round.setGuessTime(LocalDateTime.now()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetRoundById() {\n Game testGame = new Game();\n \n testGame.setCorrectSolution(\"1234\");\n testGame.setGameOver(false);\n gameDao.addGame(testGame);\n \n Round testRound1 = new Round();\n testRound1.setGameId(testGame.getGameId())...
[ "0.7024352", "0.7021484", "0.6236615", "0.61518025", "0.59098315", "0.58385324", "0.5824404", "0.5820099", "0.5817672", "0.57993233", "0.57833385", "0.5768384", "0.56602067", "0.565512", "0.56199825", "0.5542027", "0.55402684", "0.5531375", "0.55293405", "0.5526006", "0.55250...
0.77747226
0
Test of getRoundsByGameID method, of class RoundDaoDBImpl.
@Test public void testGetRoundsByGameID() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddGetAllRoundsByGameId() {\n Game testGame = new Game();\n \n testGame.setCorrectSolution(\"1234\");\n testGame.setGameOver(false);\n gameDao.addGame(testGame);\n \n Round testRound1 = new Round();\n testRound1.setGameId(testGame.g...
[ "0.79034245", "0.75018966", "0.64947075", "0.63049597", "0.6269305", "0.6183469", "0.594477", "0.5836095", "0.58280164", "0.57475066", "0.5725244", "0.5722827", "0.57146466", "0.5663037", "0.5657274", "0.56351054", "0.5561396", "0.5559315", "0.5529638", "0.5490142", "0.547614...
0.77249444
1
random.nextInt gives a int in the range of 0 to areaSum and ceilingKey returns a key greater than or equal to the argument passed to it.
public int[] pick() { int key = map.ceilingKey(random.nextInt(areaSum) + 1); int[] rectangle = map.get(key); int length = rectangle[2] - rectangle[0] + 1; int breadth = rectangle[3] - rectangle[1] + 1; //length denotes the no of x coordinates we can have. //breadth deno...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public K ceiling(K key);", "public Key ceiling(Key key)\t\t\t\t//smallest key greater than or equal to the given key\n\t{\n\t\tNode x=ceiling(root,key);\n\t\tif(x!=null)\n\t\t\treturn x.key;\n\t\telse return null;\n\t}", "public K floor(K key);", "int CalcKey(int g, int x, int n)\r\n {\r\n int rtn ...
[ "0.5943403", "0.5814456", "0.56181854", "0.5600514", "0.5478525", "0.540979", "0.5398603", "0.5384824", "0.53722227", "0.53439575", "0.5341303", "0.5263113", "0.526268", "0.52386165", "0.5206813", "0.5180169", "0.5171578", "0.5163573", "0.5107561", "0.5100204", "0.50746274", ...
0.52569884
13
acesses other methods and solves the question with step by step walkthrough
public static void solve(String question) { int add_function = 0; int sub_function = 0; String string_alpha = find_a(question); //finds the value of first input including x String string_beta = find_b(question); //finds the value of second input including x int var_alpha = find_a_num(q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solution() {\n\t\t\n\t}", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "public abstract void solve();", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "public void question() {\n\t\tlead.an...
[ "0.74163353", "0.7111618", "0.65530807", "0.64217824", "0.63977504", "0.6374271", "0.63715285", "0.6296686", "0.62907916", "0.6289423", "0.6282495", "0.6278425", "0.62609076", "0.619913", "0.6149276", "0.6096484", "0.6048747", "0.6025306", "0.5991478", "0.5983299", "0.5982996...
0.60290027
17
//finds the value of the first varaible including x and exports as a string
public static String find_a(String question) { int first_par = 0; int second_par = 0; String a = ""; first_par = question.indexOf("("); second_par = question.indexOf(")"); a = question.substring(first_par+1,second_par); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "private static int find_value(String b...
[ "0.57259333", "0.56370974", "0.5615063", "0.55286413", "0.55282164", "0.5411115", "0.5393505", "0.53167063", "0.53167063", "0.53167063", "0.5284504", "0.5272043", "0.52684635", "0.522583", "0.5180181", "0.51601183", "0.5117336", "0.5107552", "0.5106929", "0.51032794", "0.5096...
0.0
-1
//finds the value of the second varaible including x and exports as a string
public static String find_b(String question) { int first_par = 0; int second_par = 0; int third_par = 0; int fourth_par = 0; String b = ""; first_par = question.indexOf("("); second_par = question.indexOf(")"); third_par = question.indexOf("(", second_par+1); fourth_par = question.indexOf(")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n stor...
[ "0.5840773", "0.5467582", "0.54464066", "0.5353931", "0.5295838", "0.5248858", "0.5212492", "0.52095336", "0.5200376", "0.5167568", "0.5153029", "0.51099896", "0.5101984", "0.50757104", "0.50394756", "0.50394756", "0.50394756", "0.5031007", "0.5030517", "0.500802", "0.5006647...
0.0
-1
//finds the value of the first varaible not including x and exports as a string
public static int find_a_num(String question) { int first_par = 0; int second_par = 0; int a; first_par = question.indexOf("("); second_par = question.indexOf("x"); a = Integer.parseInt(question.substring(first_par+1,second_par)); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "String getSourceVariablePart();", "p...
[ "0.55687076", "0.55011207", "0.5432444", "0.5406583", "0.5326074", "0.52694786", "0.52407926", "0.5224551", "0.51834553", "0.51834553", "0.51834553", "0.51755565", "0.5070601", "0.5055603", "0.50362986", "0.5019124", "0.4999355", "0.4999209", "0.4958965", "0.49399137", "0.493...
0.0
-1
//finds the value of the second varaible not including x and exports as a string
public static int find_b_num(String question) { int first_par = 0; int second_par = 0; int third_par = 0; int fourth_par = 0; int b; first_par = question.indexOf("("); second_par = question.indexOf("x"); third_par = question.indexOf("(", second_par+1); fourth_par = question.indexOf("x", seco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n stor...
[ "0.5544299", "0.5465531", "0.53103757", "0.52875865", "0.5279732", "0.5269048", "0.52373105", "0.5221231", "0.515297", "0.5128893", "0.5103788", "0.5069898", "0.50628155", "0.5051984", "0.5014448", "0.49845836", "0.49673253", "0.49497813", "0.49473923", "0.494196", "0.494196"...
0.0
-1
/// returns the trig function of the equation purely for walk through
public static String function_1(String question) { int first_par = question.indexOf("("); String function_1 = question.substring(0, first_par); return function_1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double cosTheta();", "public double trigonometric(double value, Operator trigType) {\n switch (trigType) {\n case SIN -> { return Math.sin(StrictMath.toRadians(value)); }\n case COS -> { return Math.cos(StrictMath.toRadians(value)); }\n case TAN -> { return Math.tan(Strict...
[ "0.6596989", "0.6471253", "0.64023376", "0.6313095", "0.61471575", "0.6123229", "0.60355777", "0.5861918", "0.5860006", "0.5844154", "0.5834549", "0.5829669", "0.5824296", "0.582201", "0.57936734", "0.57715803", "0.5726146", "0.57234865", "0.571444", "0.57084435", "0.56639105...
0.0
-1
/// returns the trig function of the equation purely for walk through
public static String function_2(String question) { //int first_par = 0; //int second_par = question.indexOf(")"); //int third_par = question.indexOf("(", second_par); String function_2 = question.substring(find_par(2,question)+1,find_par(3,question)); return function_2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double cosTheta();", "public double trigonometric(double value, Operator trigType) {\n switch (trigType) {\n case SIN -> { return Math.sin(StrictMath.toRadians(value)); }\n case COS -> { return Math.cos(StrictMath.toRadians(value)); }\n case TAN -> { return Math.tan(Strict...
[ "0.659713", "0.6470827", "0.6402582", "0.6313157", "0.61461335", "0.61226094", "0.603533", "0.5862672", "0.5860246", "0.5844054", "0.58351386", "0.582866", "0.58235836", "0.5821619", "0.5793814", "0.57712203", "0.57261103", "0.5723308", "0.5715734", "0.5707428", "0.56627584",...
0.0
-1
Class constructor; opens a window.
public GUI(Graph G, List<double[]> V, List<Integer> P, double[] mapBounds) { this.P = P; initialize(G, V, mapBounds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open()...
[ "0.7322804", "0.7154923", "0.7103525", "0.68865854", "0.68834007", "0.6878085", "0.6711289", "0.6672427", "0.6621666", "0.6588469", "0.65777767", "0.6529149", "0.6497642", "0.64867157", "0.6479744", "0.64660984", "0.64313686", "0.6430655", "0.6429152", "0.64254034", "0.641003...
0.0
-1
Initializes JFrame and other necessary variables.
private void initialize(Graph G, List<double[]> V, double[] mapBounds) { mapContainer = new JLabel(); this.G = G; this.V = V; this.mapBounds = mapBounds; Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); setBounds(0, 0, screenSize.width, screenSize.height); setTitle("Street Map"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFr...
[ "0.8614073", "0.8589405", "0.8551635", "0.85244876", "0.8467194", "0.8466659", "0.84551644", "0.8313188", "0.8310872", "0.8224493", "0.82021844", "0.8165529", "0.81113034", "0.8109699", "0.8079177", "0.8073954", "0.8023344", "0.8012799", "0.8003333", "0.79982126", "0.79786", ...
0.0
-1
Sets the GUI title.
public void setTitle(String title) { this.title = title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setWindowTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "void setTitle(java.lang.String title);", "public void setTitle(String title)\r\n {\r\n frame.setTitle(title);\r\n }", "public void ...
[ "0.8293758", "0.8277485", "0.8152411", "0.81409514", "0.8101771", "0.80967325", "0.8091512", "0.8091512", "0.8091512", "0.8091512", "0.8091512", "0.8076659", "0.8076659", "0.8076659", "0.80172104", "0.7970564", "0.7970564", "0.7970564", "0.7970564", "0.7970564", "0.7954788", ...
0.78556705
73
Sets the GUI subtitle.
public void setSubtitle(String subtitle) { this.subtitle = subtitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSubtitle(String subtitle) {\n m_subTitle.setText(subtitle);\n }", "@Override\n\tpublic void setSubtitle(CharSequence subtitle) {\n\t\t\n\t}", "public void setSubtitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), SUBTITLE, value);\r\n\t}", "public ...
[ "0.78997064", "0.78284675", "0.7703012", "0.72320926", "0.72083676", "0.7074167", "0.7051759", "0.70353234", "0.7011717", "0.6937087", "0.6886297", "0.68783444", "0.68198794", "0.67470556", "0.66564786", "0.66156375", "0.66015524", "0.657569", "0.6503126", "0.6503126", "0.650...
0.73997587
4
Amplifies the zoom value.
public void zoom(double amplifier) { int width = mapContainer.getWidth()-60; int height = mapContainer.getHeight()-60; double nXF = (double)(MouseInfo.getPointerInfo().getLocation().x - (getLocation().x + mapContainer.getLocation().x + 30))/width; double nYF = (double)(MouseInfo.getPointerInfo().getLocation().y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void zoom() {\n\t\tdisp.zoom();\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "public void updateZoom() {\n camera.zoom = zoomLevel;\n }", "public void setZoom(float zoom){\r\n zoom = zoom * 100;\r\n zoom = Math.round(zoom);\r\n this.zoom ...
[ "0.7250031", "0.7174638", "0.7108521", "0.70918125", "0.7074113", "0.70725554", "0.7053633", "0.70442235", "0.70329595", "0.70302796", "0.7028718", "0.70263815", "0.6988761", "0.6976066", "0.69717425", "0.6961163", "0.69267946", "0.6902393", "0.688831", "0.6879147", "0.684237...
0.7109739
2
Updates the map image. Automatically revalidates the GUI JFrame.
public void updateMap(boolean animate) { getContentPane().add(mapContainer); revalidate(); // Setting up map int width = mapContainer.getWidth(); int height = mapContainer.getHeight(); BufferedImage I = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = I.createGraphics(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateLayer() {\n bufferedImage = null;\n repaint();\n panelResized();\n }", "public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}", "public void updateMapGrid() {\n char[][] map = controller.getPopu...
[ "0.6459642", "0.640347", "0.63828844", "0.63232315", "0.6304222", "0.62995094", "0.6220757", "0.6199114", "0.6049946", "0.6022898", "0.6018035", "0.59832716", "0.59716284", "0.59580016", "0.59338", "0.5932867", "0.59284544", "0.59255683", "0.5916071", "0.59081674", "0.587798"...
0.63629574
3
Draws a road with received parameters.
private void drawRoad(double xM, double yM, double xL, double yL, double xI, double yI, double xP, double yP, double lat1, double lon1, double lat2, double lon2, int highlight, Graphics2D g2d) { lat1 = 1-Math.abs(lat1-mapBounds[0])/yL; lon1 = Math.abs(lon1-mapBounds[1])/xL; lat2 = 1-Math.abs(lat2-mapBou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawRoad(int player, int location, Graphics g){\n\t}", "public void drawRoute(Set<Waypoint> waypoints, List<GeoPosition> track) {\r\n\t\tRoutePainter routePainter = new RoutePainter(track);\r\n\t\t\r\n WaypointPainter<Waypoint> waypointPainter = new WaypointPainter<Waypoint>();\r\n wayp...
[ "0.73886925", "0.63848263", "0.62449485", "0.6227694", "0.61910725", "0.6183093", "0.6112452", "0.60041624", "0.5953068", "0.5937819", "0.593684", "0.59269077", "0.590378", "0.5883489", "0.5870113", "0.5851824", "0.581839", "0.58177704", "0.5816476", "0.581202", "0.57674617",...
0.6667148
1
if a is having value 1 to 10 we are safe else thow some exception
public void myMethod(int a) throws Exception { if(a>=1 && a<=10) System.out.println("We are safe"); else throw new Exception("we are at danger"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateField(int[] a, int field) {\n\t\tboolean valid = true;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (a[i] >= field) {\n\t\t\t\tvalid = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}", "private boolean isValidOption(int option){\n return (option >= 0) && (opti...
[ "0.6007747", "0.5890609", "0.5780357", "0.57658994", "0.57599145", "0.57025915", "0.56595373", "0.56404954", "0.560988", "0.5582571", "0.555105", "0.55505806", "0.55314666", "0.5515112", "0.5502084", "0.54914904", "0.54708445", "0.5451678", "0.54354215", "0.5405738", "0.54046...
0.65286475
0
Creates a new FieldAccessFlag with the given name and value.
protected FieldAccessFlag(String name, int value) { this.name = name; this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FieldVisitor visitField(int access,\n String name,\n String desc,\n String signature,\n Object value) {\n Field f = new Field(access, className, name, desc, value);\n fields....
[ "0.54275", "0.5250351", "0.5239819", "0.51748174", "0.51689965", "0.5167626", "0.5163932", "0.5124091", "0.50904804", "0.5043787", "0.50180787", "0.49475124", "0.49333283", "0.49236247", "0.48574197", "0.48451152", "0.4817695", "0.48130512", "0.47774506", "0.4777444", "0.4755...
0.7866837
0
Returns all possible FieldAccessFlags.
public static Collection<FieldAccessFlag> getFlags() { return Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM, SYNTHETIC); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAccessFlags() {\n return access_flags;\n }", "public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(so...
[ "0.71113783", "0.66042125", "0.6147699", "0.6107978", "0.6107978", "0.6030945", "0.6001765", "0.5938815", "0.58930075", "0.58079493", "0.5807102", "0.57971776", "0.5756166", "0.57093996", "0.5702061", "0.56688684", "0.56564176", "0.5651163", "0.5649618", "0.56400245", "0.5602...
0.81275547
0
Returns the name used to represent the flag in Java source code. For example, "public", "protected", etc ...
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFlagMethodName() {\n return m_flagMethodName;\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "public String getFlags() {\r\n \t\treturn fl...
[ "0.7179086", "0.6296468", "0.6229729", "0.61131126", "0.60534436", "0.6050962", "0.59711236", "0.5966644", "0.5932875", "0.5874997", "0.5802879", "0.5802879", "0.570563", "0.57005525", "0.5694048", "0.5690475", "0.5686009", "0.5674492", "0.5673252", "0.5673252", "0.5673252", ...
0.0
-1
Returns the value used to represent the flag in a Java class file.
public int getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getFlag();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "public boolean getClassFlag() {\n return m_ClassFlag;\n }", "@Override\n public i...
[ "0.63519084", "0.6340455", "0.61765075", "0.60893303", "0.5939958", "0.5883051", "0.58156866", "0.58090806", "0.5738948", "0.5713693", "0.5698474", "0.5670556", "0.566885", "0.56419235", "0.56331676", "0.56326836", "0.56025374", "0.55763566", "0.5557601", "0.5554418", "0.5529...
0.0
-1
Methods to Check if the property is INVALID.
boolean isEnvironmentInvalid() { return StringUtils.isBlank(environment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isInvalid() {\n\t\treturn invalid;\n\t}", "public boolean wasInvalid() {\n return this.invalid;\n }", "@Override\n\t\tpublic boolean isInvalid() {\n\t\t\treturn false;\n\t\t}", "public Integer getIsInvalid() {\n return isInvalid;\n }", "Boolean getIsValid();", "public v...
[ "0.7163342", "0.6755404", "0.6742115", "0.6682884", "0.6492848", "0.64349335", "0.64011395", "0.6266327", "0.62555367", "0.61358565", "0.61353433", "0.61313146", "0.61015743", "0.6088631", "0.6088631", "0.6088631", "0.60682803", "0.6055246", "0.60535264", "0.6042677", "0.6018...
0.0
-1
Methods to Check if the property is Valid.
boolean isApiKeyValid() { return StringUtils.isNotBlank(apiKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean getIsValid();", "@java.lang.Override\n public boolean getValid() {\n return valid_;\n }", "@java.lang.Override\n public boolean getValid() {\n return valid_;\n }", "public boolean isValid() {\n\t\treturn valid;\n\t}", "public boolean isValid() {\n return valid;\n ...
[ "0.7499342", "0.7494278", "0.74695945", "0.7325819", "0.73056704", "0.73056704", "0.73056704", "0.7301821", "0.7296235", "0.729216", "0.729216", "0.72844434", "0.72788364", "0.7278756", "0.7257676", "0.72450405", "0.7199956", "0.71809566", "0.7174432", "0.7168927", "0.7162165...
0.0
-1
remove old Node System.out.println("removing old: " + myName + CLASSTYPE + " from: " + myPref.absolutePath());
public void persist(final int num) { myPref.remove(myName + CLASSTYPE); myName = String.valueOf(num); myPref.put(myName + CLASSTYPE, getClass().getSimpleName()); // System.out.println("saved: " + myName + getClass().getSimpleName() + " to: " + myPref.absolutePath()); extraPersi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeNode(NodeKey key);", "public void onRemoveNode(Node node) {\n\t}", "void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}", "void removeHasNodeID(...
[ "0.6431503", "0.63756496", "0.6193894", "0.6145357", "0.61280125", "0.6084062", "0.60667485", "0.60659915", "0.60610557", "0.6041235", "0.6036841", "0.5979225", "0.59639716", "0.5951191", "0.59510314", "0.5945771", "0.5929983", "0.59210664", "0.59157467", "0.59137744", "0.591...
0.0
-1
/ Moderator Control (Adminonly)
@RequestMapping(value = "/memberships/uris/**/moderate", method = RequestMethod.POST) public ModelAndView moderate_uri_access(HttpServletRequest request, @RequestParam("moderator") String email) throws Exception { checkAdmin(request); String moderatedUri = substringBetween(request.getRequestURI(), "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isModoAdmin() {\r\n\t\treturn this.modoAdmin;\r\n\t}", "public boolean Admin() {\n\t\tif (choiceAdmin.getSelectedIndex() == 0 || choiceAdmin.getSelectedIndex() == 2) {\n\t\t\tlblCorreoDelAdministrador.setVisible(true);\n\t\t\ttextField.setVisible(true);\n\t\t\tadmin = 0;\n\t\t\treturn false;\n\t\t...
[ "0.66912645", "0.6684301", "0.6592432", "0.6573201", "0.6482833", "0.6477532", "0.64371616", "0.64221984", "0.64055085", "0.640488", "0.63882357", "0.634125", "0.6312663", "0.63098425", "0.6299991", "0.624082", "0.6170042", "0.614739", "0.614739", "0.61293787", "0.61273897", ...
0.0
-1
/ ModeratedItem URI Control (Admin or Moderator)
@RequestMapping(value = "/memberships/uris", method = RequestMethod.GET) public ModelAndView uris_membership(HttpServletRequest request) throws Exception { if (isAdministrator(request)) { return new ModelAndView(new JsonItemsView()).addObject("json", getItems(getModeratedItems())); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/memberships/uris/**/moderate\", method = RequestMethod.POST)\n public ModelAndView moderate_uri_access(HttpServletRequest request, @RequestParam(\"moderator\") String email) throws Exception {\n checkAdmin(request);\n String moderatedUri = substringBetween(request.getReq...
[ "0.5920378", "0.5738549", "0.57058716", "0.5660255", "0.5480616", "0.5463289", "0.5454953", "0.54259837", "0.5413341", "0.53675556", "0.5348536", "0.5348536", "0.5348536", "0.5318354", "0.53006315", "0.5298374", "0.5282452", "0.52815384", "0.52666587", "0.5249223", "0.5248658...
0.0
-1
/ Applicants / Private Methods
private void checkAdminOrModerator(HttpServletRequest request, String uri) throws ForbiddenAccessException, ResourceNotFoundException { if (isAdministrator(request)) { return; } ModeratedItem moderatedItem = getModeratedItem(uri); if (moderatedItem == null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void credite() {\n\t\t\n\t}", "private void addApplicationsPermissionsToRegistry() throws APIManagementException {\n Registry tenantGovReg = getRegistry();\n String permissionResourcePath = CarbonConstants.UI_PERMISSION_NAME + RegistryConstants.PATH_SEPARATOR + APPLICATION_ROOT_...
[ "0.5948317", "0.5912051", "0.5850707", "0.56814194", "0.56521714", "0.56098896", "0.5604255", "0.5560081", "0.552591", "0.55088824", "0.54802614", "0.54759455", "0.5467662", "0.5464072", "0.54594857", "0.54498124", "0.54460174", "0.5445865", "0.54343504", "0.54261416", "0.541...
0.0
-1
Creates a new PasswordRecoveryItem and sets the given fields initially.
@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...) private PasswordRecoveryItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@com.exedio.cope.instrument.Generated\n\tprivate PasswordRecoveryItem(final com.exedio.cope.ActivationParameters ap){super(ap);}", "public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if...
[ "0.651649", "0.53618693", "0.5301269", "0.52644473", "0.51938283", "0.5048747", "0.5013557", "0.4993627", "0.49278396", "0.48378846", "0.48194999", "0.48015213", "0.47950968", "0.4751314", "0.47392625", "0.47342956", "0.47306886", "0.47270998", "0.47117564", "0.47052464", "0....
0.62361026
1
Activation constructor. Used for internal purposes only.
@com.exedio.cope.instrument.Generated private PasswordRecoveryItem(final com.exedio.cope.ActivationParameters ap){super(ap);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ActivationExpression createActivationExpression();", "public Node(ActivationFunction f) {\n\t\tnodeActivationFunction = f;\n\t}", "@com.exedio.cope.instrument.Generated\n\t\tprivate Source(final com.exedio.cope.ActivationParameters ap){super(ap);}", "@com.exedio.cope.instrument.Generated\n\t\tprivate Target(...
[ "0.68600374", "0.6726039", "0.672027", "0.67129", "0.66941833", "0.63149667", "0.6092942", "0.6033629", "0.5987031", "0.59864295", "0.5917566", "0.5917566", "0.5895549", "0.5881385", "0.58798814", "0.58750045", "0.5852409", "0.583583", "0.5828268", "0.58217293", "0.58216214",...
0.0
-1
Some sample method documentation
public Test(int someConstructorParameter) { //inlineTestComment }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "public void sampleOperation() {\n\t}", "String getDocumentation();", "String getDocumentation();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public abstract String commandDocumentation();", "public...
[ "0.6883155", "0.6661109", "0.6404679", "0.6404679", "0.6398635", "0.63592756", "0.6344095", "0.6297805", "0.62939215", "0.62939215", "0.62871003", "0.62844294", "0.6280634", "0.62772757", "0.6219992", "0.61509645", "0.61507523", "0.614779", "0.61120486", "0.60849375", "0.6084...
0.0
-1
Retrieves a user by username. An exception is thrown if now user is found.
public User getUser(String username);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User get(String username) throws UserNotFoundException, SQLException;", "User getUserByUsername(String name) throws InvalidUserException;", "User loadUser( String username ) throws UserNotFoundException;", "@Override\r\n\tpublic User getByUsername(String username) throws UsernameNotFoundException {\r\n\t\tQu...
[ "0.8232771", "0.8111923", "0.7921183", "0.79180855", "0.79028785", "0.78443813", "0.77453834", "0.77079225", "0.7695236", "0.76400083", "0.76103127", "0.7608385", "0.76033163", "0.75871474", "0.7577577", "0.7575672", "0.7567226", "0.75591105", "0.7508603", "0.7508494", "0.750...
0.7342603
42
Retrieves a list of users, filtering with parameters on a user object
public List getUsers(User user);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<User> getUsers();", "List<User> getUsers();", "public List<User> listUsers(String userName);", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "public List getAllUsers();", "public List<User> getUsers();", "java.u...
[ "0.78476834", "0.78476834", "0.78017604", "0.7695537", "0.7626518", "0.75998586", "0.75809574", "0.75238305", "0.74898356", "0.7471625", "0.7471625", "0.74289304", "0.7425406", "0.7386483", "0.73771", "0.7316952", "0.7279447", "0.726291", "0.72512335", "0.7230902", "0.7221087...
0.8196146
0
Saves a user's information
public void saveUser(User user);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void saveUserData(User user);", "private void saveUserInformation() {\n name.setText(nameInput.getText().toString());\n\n if (name.getText().toString().isEmpty()) {\n name.setError(\"Name required\");\n name.requestFocus();\n return;\n }\n\n FirebaseUs...
[ "0.8127559", "0.7992227", "0.7846971", "0.7844798", "0.7605599", "0.7578237", "0.75776654", "0.7562641", "0.74904245", "0.74457276", "0.7403727", "0.7266453", "0.7252148", "0.72372264", "0.72305274", "0.71992624", "0.7199073", "0.7195493", "0.7160186", "0.7156011", "0.7154871...
0.7895591
2
Removes a user from the database by their username
public void removeUser(String username);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeUser(String username) {\n PreparedStatement stmt;\n\n // SQL code for delete\n String deleteSQL = \"DELETE FROM USERS WHERE username = ?\";\n try {\n connect();\n // Create SQL statement for deleting\n stmt = this.connection.prepareStat...
[ "0.8294349", "0.82402205", "0.8233211", "0.78790957", "0.7801646", "0.77491814", "0.77392507", "0.768974", "0.75987726", "0.7583761", "0.75379527", "0.75316817", "0.75153506", "0.7478483", "0.7426356", "0.740365", "0.7371141", "0.7364432", "0.7359814", "0.734697", "0.7339328"...
0.8635507
0
Computes the number of degrees between given keys. Keys are flattened ( removed).
public static int getDistance(int startKey, int endKey) { // Rounding keys to the nearest (lower) white key startKey = PianoKeyboard.isWhite(startKey) ? startKey : startKey - 1; endKey = PianoKeyboard.isWhite(endKey) ? endKey : endKey - 1; // Computing distance of each from C0 // Moving notes in same octave ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int outDegree( VKeyT key );", "public int inDegree( VKeyT key );", "private void degrees() {\n\t\tnodesWithDegree = new TreeMap<Integer, IntOpenHashSet>();\n\n\t\t// fill the HashMap nodesWithDegree\n\t\tfor (Sommet entry : adjVertices) {\n\n\t\t\tif (entry == null)\n\t\t\t\tcontinue;\n\n\t\t\tint size ...
[ "0.612213", "0.588748", "0.5709234", "0.5682128", "0.5609793", "0.549206", "0.5436954", "0.536065", "0.5359339", "0.527586", "0.5096202", "0.5053862", "0.5046423", "0.50348717", "0.49804178", "0.4944957", "0.49370712", "0.49126554", "0.49115187", "0.48756725", "0.48646826", ...
0.0
-1
Created with IntelliJ IDEA.
public interface IGeneralMapper<T> { /** * 根据所传入的Map查询用户信息 * 如果传入的 Map 为空,会返回所有的用户信息(必须避免); * 如果没有查到符合条件的结果,返回的结果为空。 * * @param map key为所查询的字段名,value为对应的值(必须可以进行转换) * @param orderedKey 排序的键 * @param isDesc 是否反向 * @return 符合条件的所有用户的信息 */ List<T> select( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "private stendhal() {\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void mo21785J() {\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public void mo...
[ "0.62123495", "0.59639025", "0.59502053", "0.5890836", "0.587595", "0.5866678", "0.5801747", "0.57759166", "0.5718714", "0.5701379", "0.56720704", "0.5658173", "0.56524897", "0.5650609", "0.5633821", "0.5626124", "0.55860126", "0.5571761", "0.55655414", "0.5564941", "0.553310...
0.0
-1
Set the device to the given name.
abstract protected void setDeviceName(String deviceName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDeviceName(String newDeviceName) {\n deviceName = newDeviceName;\n }", "public void setDeviceName(String argDeviceName) {\n\t deviceName = argDeviceName;\n }", "public void setDeviceName(String deviceName) {\n this.deviceName = deviceName;\n }", "public DeviceDescripti...
[ "0.7455781", "0.7399359", "0.70824504", "0.7056481", "0.69215053", "0.6851689", "0.6779001", "0.6676863", "0.65448034", "0.6421242", "0.6317906", "0.6305719", "0.63051856", "0.62837225", "0.6278121", "0.62310624", "0.61973286", "0.6195251", "0.61898404", "0.6181956", "0.61812...
0.81964713
0
The compilation thread must call this method after it finishes with all calls to addFileToWrite.
public abstract void stopAcceptingFiles();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void addFileToWrite(AsynchronousFileWriter.FileData fileData, CompilerMessageLogger logger);", "public void startFileWrite() {\r\n this.setStatus(false);\r\n this.isFileOutStarted = true;\r\n if (!this.is_alg_started || (this.is_alg_started && ((this.is_already_read_from_DB &...
[ "0.6585053", "0.64682657", "0.64465374", "0.608221", "0.5961005", "0.5836857", "0.57786506", "0.572178", "0.564374", "0.564374", "0.5640453", "0.5640453", "0.56158584", "0.5566822", "0.5566822", "0.55436975", "0.55176866", "0.55138147", "0.55068964", "0.5475743", "0.5461285",...
0.0
-1
The compilation thread calls this method to add a file to write. This will return (almost) immediately if the AsynchronousFileWriter is not "full." Otherwise, this method will write the files on the calling thread until the pending number of bytes has been reduced and then notify the asynchronous saving thread. The fil...
public abstract void addFileToWrite(AsynchronousFileWriter.FileData fileData, CompilerMessageLogger logger);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startFileWrite() {\r\n this.setStatus(false);\r\n this.isFileOutStarted = true;\r\n if (!this.is_alg_started || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {...
[ "0.5756383", "0.5549855", "0.55225146", "0.5408975", "0.5397712", "0.5397224", "0.5390365", "0.52098584", "0.5157829", "0.5047948", "0.5030068", "0.5028227", "0.50148284", "0.5008972", "0.49874163", "0.4965273", "0.4943949", "0.49348235", "0.48897406", "0.48768684", "0.487423...
0.6911041
0
Wait for the file writer to meet the following conditions: stopAcceptingFiles() has been called all files have been written
public abstract void waitForFilesToBeWritten(CompilerMessageLogger logger) throws InterruptedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void waitToWrite();", "public void startFileWrite() {\r\n this.setStatus(false);\r\n this.isFileOutStarted = true;\r\n if (!this.is_alg_started || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this...
[ "0.689582", "0.60837877", "0.5886255", "0.57934654", "0.5702135", "0.5662053", "0.55570364", "0.55275", "0.5481065", "0.54794085", "0.5443328", "0.53587925", "0.5337912", "0.531111", "0.53051245", "0.52620393", "0.52616966", "0.52368116", "0.5203826", "0.51726395", "0.5160773...
0.6902738
0
Elect a block randomly from array of blocks given
public Block electBlock(Blockchain blockchain) { electedBlock = blockchain.get( randomizer.nextInt( blockchain.size() ) ); return electedBlock; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void randomBlock() {\n\t\t// map generate (int map)\n\t\tfor (int i = 0; i < mapX; i += 2) {\n\t\t\tfor (int j = 0; j < mapY; j += 2) {\n\t\t\t\tint r = (int) Math.random() * 4;\n\t\t\t\tif (r == 0) {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 1);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 1);\n\t\t\t\t\ttil...
[ "0.65989596", "0.65286803", "0.64947975", "0.6220274", "0.6013739", "0.59155726", "0.5734597", "0.57282686", "0.57085556", "0.57001895", "0.5623777", "0.5599505", "0.55214065", "0.55122423", "0.5492616", "0.5457973", "0.54505587", "0.543044", "0.54276824", "0.54254776", "0.53...
0.58477056
6
scegliere groupId e label per ogni server
@Override public boolean prepareOp() { Iterator<Server> iter = this.serverList.iterator(); Server current = null; /* * the first replicaNumber servers received the label 0. * then the label of other servers is calculated by sql.getNewLabel() */ int groupId = 0; long label = Constants.maxLabel; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GroupId groupId();", "java.lang.String getGroupId();", "java.lang.String getGroupId();", "String getGroupId();", "String getGroupId();", "public String getGroupId()\n {\n return groupId;\n }", "void setGroupId(String groupId);", "public String groupId() {\n return this.groupId;\n ...
[ "0.6725151", "0.67038715", "0.67038715", "0.6680424", "0.6680424", "0.6615642", "0.66090184", "0.64952785", "0.64470714", "0.6413281", "0.63901216", "0.637899", "0.637899", "0.637899", "0.637899", "0.637899", "0.637899", "0.62697023", "0.62510145", "0.62320673", "0.6228014", ...
0.0
-1
/ noone call this, noone need reply
@Override public void replyOperationCompleted() { ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void __getReply() throws IOException\n {\n __getReply(true); // tagged response\n }", "public void __getReplyNoReport() {\n __getReply(false);\n }", "public void request() {\n }", "void faild_response();", "protected void nop() throws Exception {\n reply_ok();\n ...
[ "0.6768514", "0.6576177", "0.65707517", "0.64967155", "0.64850235", "0.64270437", "0.64270437", "0.6421846", "0.6409165", "0.63110733", "0.6237063", "0.6212111", "0.6189324", "0.61734587", "0.6167997", "0.61336595", "0.61219406", "0.61161697", "0.61135334", "0.610895", "0.609...
0.5842979
53
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.user_list); lv = (ListView) findViewById(R.id.lvUserList); SharedPreferences sp = getSharedPreferences( Properties.CABSHARE_SHARED_PREFERENCES, M...
{ "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
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent i = new Intent("com.example.cabshare.PROFILE"); i.putExtra("position", position); startActivity(i); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Get the scroll pane from the popup list
public void run() { JScrollPane scrollPane = (JScrollPane) SwingUtilities.getAncestorOfClass(JScrollPane.class, popup.getList()); //Get the width of the popup list int popupWidth = popup.getList().getPreferredSize().width; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ScrollPane scrollPane() {\r\n return (ScrollPane) this.getParent();\r\n }", "public ListPopupWindow getListPopupWindow() {\n if (this.p == null) {\n this.p = new ListPopupWindow(getContext());\n this.p.setAdapter(this.a);\n this.p.setAnchorView(this);\n ...
[ "0.68676054", "0.6374207", "0.63137543", "0.6267722", "0.61136234", "0.60365397", "0.6010708", "0.59835654", "0.5965726", "0.5864607", "0.58496165", "0.5775531", "0.5755447", "0.5745801", "0.5740523", "0.57346237", "0.572305", "0.5714028", "0.57096046", "0.5705413", "0.569105...
0.56470406
24
makes frame, starts graphics
public static void main(String[] args) { RunGameOfLife frame = new RunGameOfLife(); frame.setSize(600,600); frame.setVisible(true); reset.doClick(); generateValues(-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildFrame();", "private static void draw() {\n\t\tinitField();\n\t\tview = new View(field);\n\t\tview.setSize(viewWidth, viewHeight);\n\t\tframe = new JFrame();\n\t\tframe.setSize(fwidth, fheight);\n\t\tframe.setTitle(\"Land Mine\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfr...
[ "0.73729765", "0.7073154", "0.706517", "0.70125", "0.70093006", "0.70010465", "0.69882846", "0.6987978", "0.69484484", "0.6942153", "0.69264305", "0.6897719", "0.6887596", "0.68825334", "0.68825006", "0.68739325", "0.68726474", "0.6872102", "0.6843607", "0.6838095", "0.683266...
0.0
-1
creating a JPanel on top of the screen with controls
private JPanel topBar() { //creating a top bar with controls JPanel topBar = new JPanel(); Color myPurp = new Color(191, 123, 123); topBar.setBackground(myPurp); //reset button with listener topBar.add(reset); reset.addActionListener(this); //creating button that starts simulation start.setSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildTopPanel() {\n \t\tJPanel panel = new JPanel();\n \t\tpanel.setLayout(new BorderLayout(10, 10));\n \t\t\n \t\t// this does not need to be referenced else where, only for layout\n \t\tJPanel paneButtons = new JPanel();\n \t\tGridLayout bl = new GridLayout(2, 1);\n \t\tpaneButtons.setLayout(bl);\n ...
[ "0.7386513", "0.7374907", "0.7370715", "0.7285876", "0.71751297", "0.71473676", "0.7100722", "0.7079666", "0.7054307", "0.7019911", "0.69502693", "0.693342", "0.69293", "0.69281214", "0.6922087", "0.6908607", "0.6897049", "0.6889216", "0.68760395", "0.68721586", "0.68716335",...
0.0
-1
creating a left bar with controls
private JPanel leftBar() { JPanel leftBar = new JPanel(); Color myPurp = new Color(191, 123, 123); leftBar.setBackground(myPurp); leftBar.setLayout(new BoxLayout(leftBar, BoxLayout.Y_AXIS)); //creating slider that determines speed JLabel milliSecs = new JLabel("ms between", JLabel.LEFT); JLabel generat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel topBar() {\n\t\t\n\t\t//creating a top bar with controls\n\t\tJPanel topBar = new JPanel();\n\t\tColor myPurp = new Color(191, 123, 123);\n\t\ttopBar.setBackground(myPurp);\n\t\t\n\t\t//reset button with listener\n\t\ttopBar.add(reset);\n\t\treset.addActionListener(this);\n\t\t\n\t\t//creating butto...
[ "0.6458948", "0.63143176", "0.62702227", "0.6249227", "0.62301564", "0.61870176", "0.61617583", "0.6153295", "0.61370534", "0.61272544", "0.6101876", "0.6079215", "0.60783535", "0.60745907", "0.606482", "0.6064573", "0.60635257", "0.60627764", "0.6058516", "0.604839", "0.6035...
0.75784236
0
state change listeners for JSlider
@Override public void stateChanged(ChangeEvent e) { //changes speed of animation if (e.getSource() == speed) { timer.stop(); timer.setDelay(speed.getValue()); stop.setSelected(true); } //changes # of boxes if (e.getSource() == gridSize) { timer.stop(); stop.setSelected(true); int [][] newGr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stateChanged(ChangeEvent e) {\n\n\t\tJSlider src = (JSlider) e.getSource();\n\n\t\tif (src == gainFactorSlider) {\n\t\t\tif (!src.getValueIsAdjusting()) {\n\t\t\t\tint val = (int) src.getValue();\n\t\t\t\tgainFactor = val * 0.25;\n\n\t\t\t}\n\t\t} else if (src == biasFactorSlider) {\n\t\t\tif (!src.get...
[ "0.74224126", "0.738917", "0.7358922", "0.7357282", "0.73538756", "0.72629625", "0.7259946", "0.7256799", "0.71868503", "0.71574605", "0.7105884", "0.7102194", "0.70654964", "0.70364696", "0.70011425", "0.6999564", "0.69806194", "0.696842", "0.69219965", "0.6836189", "0.68148...
0.60534406
52
/ method that generates the grid of values, either randomly or derived from the previous board following the rules of the game
public static int [][] generateValues (int sources) { Random rand = new Random(); int [][] tempGridValues = new int[gridSize.getValue()][gridSize.getValue()]; //holds new values temporarily //random 2D array of either ones and zeros if (sources == -1) { for (int i = 0; i < gridSize.getValue(); i++ )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateNextGeneration() {\n int neighbours;\n int minimum = Integer.parseInt(PreferencesActivity\n .getMinimumVariable(this._context));\n int maximum = Integer.parseInt(PreferencesActivity\n .getMaximumVariable(this._context));\n int spawn = In...
[ "0.729535", "0.71419805", "0.7115022", "0.70346516", "0.70220214", "0.69841003", "0.689586", "0.6751395", "0.6734576", "0.6712145", "0.67093754", "0.6707481", "0.666104", "0.6656446", "0.66335106", "0.655725", "0.65533245", "0.65429884", "0.6533386", "0.6459129", "0.6457506",...
0.71453047
1
allows GameOfLifeGraphics to get values of grid
public static int[][] GetValues() { return gridValues; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameObject[][] getGrid(){\n\t\t\r\n\t\treturn this.grid;\r\n\t}", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" ...
[ "0.72352445", "0.69467", "0.6937755", "0.6932786", "0.6843223", "0.68273205", "0.67677987", "0.6760044", "0.67455405", "0.67012703", "0.66779804", "0.6664596", "0.66453767", "0.66108733", "0.6543766", "0.6528118", "0.6524882", "0.6521714", "0.6520721", "0.65073395", "0.647995...
0.6292892
42
allows GameOfLifeGraphics to get size of grid
public static int GetSize() { return gridSize.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int getSize() {\n\t\treturn gridSize;\r\n\t}", "public int getSize() {\n\t\treturn grid.length;\n\t}", "public int getGridWidth() { return gridWidth; }", "public int getWidth(){\r\n\t\treturn grid.length;\r\n\t}", "public short getGridSize() {\n\t\treturn gridSize;\n\t}", "public G...
[ "0.7833804", "0.7607244", "0.7509249", "0.73789674", "0.7292877", "0.7291244", "0.72249705", "0.7204282", "0.71130353", "0.70436984", "0.6982772", "0.6982772", "0.6939516", "0.69150865", "0.6888716", "0.6827264", "0.68272066", "0.6783681", "0.67350566", "0.66889", "0.66631955...
0.7088706
9
/ this method counts the number of neighbors each cell has. it utilizes modular arithmetic to treat the side columns as neighbors to each other, and the top and bottom rows as neighbors
public static int checkAlive(int i, int j) { int counter = 0; for (int a = -1; a < 2; a++) { for(int b = -1; b < 2; b++) { int columnValue = (i + a + gridSize.getValue()) % gridSize.getValue(); int rowValue = (j + b + gridSize.getValue()) % gridSize.getValue(); counter += gridValues[columnV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void countCells() {\n\t\tvisitedCells = 0;\n\t\ttotalCells = 0;\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\ttotalCells++;\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tvisitedCells++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int neighborCount(i...
[ "0.7831656", "0.76969755", "0.76369005", "0.76221985", "0.7520165", "0.7469975", "0.7329765", "0.7308463", "0.72862947", "0.71264064", "0.70841694", "0.69925195", "0.68852836", "0.68556887", "0.67875034", "0.678685", "0.67771715", "0.6772747", "0.67288697", "0.6710358", "0.66...
0.0
-1
methods that determines state of board (random or not)
public static void SetState (int state) { source = state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void takeTurn(int[][] boardState)\n {\n \n }", "public GameState won() {\n if ( (board[0][0] != TileState.BLANK) && (board[0][0] == board[0][1]) && (board[0][0] == board[0][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n ...
[ "0.68925774", "0.6865234", "0.67012715", "0.6644733", "0.6642271", "0.6593003", "0.65903074", "0.6575017", "0.65453386", "0.6536116", "0.6503334", "0.6500399", "0.6484959", "0.6454841", "0.64447993", "0.6443566", "0.6440644", "0.6410966", "0.640561", "0.639737", "0.63703114",...
0.0
-1
Gets the employee details.
@GetMapping(value="/employes") public List<Employee> getEmployeeDetails(){ List<Employee> employeeList = employeeService.fetchEmployeeDetails(); return employeeList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Employee> getdetails() {\n\t\treturn empdao.findAll();\r\n\t}", "public List<Employee> getAllEmployeeDetail() {\n\t\treturn dao.getAllEmployeeDetail();\n\t}", "public Employeedetails getEmployeeDetailByName(String employeeId);", "@Override\n\tpublic EmployeeBean getEmployeeDetails(...
[ "0.79035574", "0.76193917", "0.7588068", "0.7512314", "0.7427224", "0.73315096", "0.7320529", "0.7320529", "0.7273256", "0.7271781", "0.72667855", "0.72198725", "0.7202375", "0.7156523", "0.7154912", "0.7154912", "0.7123293", "0.7057877", "0.7044644", "0.70254576", "0.7012964...
0.78201
1
Creates the employee deatils.
@PostMapping(value="/employes") public void createEmployeeDeatils(@RequestBody Employee employee){ employeeService.saveEmployeeDetails(employee); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "@Override\n public void seedData() throws EmployeeCreationException, DepartmentCreationException {\n\n }", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "private void DataCreator() {\n\t\t// Creation of...
[ "0.68020755", "0.66562605", "0.6645161", "0.6410243", "0.6307894", "0.6150241", "0.61350965", "0.5947059", "0.59165746", "0.5881591", "0.58551776", "0.5849859", "0.5785698", "0.578038", "0.5761925", "0.57310385", "0.5719029", "0.57184166", "0.5692818", "0.5687621", "0.5685211...
0.61006266
7
Gets the employee details by employee id.
@GetMapping(value="/employes/{Id}") public Employee getEmployeeDetailsByEmployeeId(@PathVariable Long Id){ Employee employee = employeeService.fetchEmployeeDetailsByEmployeeId(Id); return employee; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Employee getEmployeeDetailById(int id) {\n\t\treturn dao.getEmployeeDetailById(id);\n\t}", "@Override\n\tpublic EmployeeBean getEmployeeDetails(Integer id) throws Exception {\n\t\treturn employeeDao.getEmployeeDetails(id);\n\t}", "public Employeedetails getEmployeeDetailByName(String employeeId);", "p...
[ "0.8443186", "0.8347868", "0.8286421", "0.8147314", "0.80784464", "0.8056814", "0.80388296", "0.7965874", "0.79490453", "0.7943609", "0.79423505", "0.79332495", "0.7927506", "0.7837938", "0.7836701", "0.7809388", "0.7788266", "0.7766667", "0.7761074", "0.77273154", "0.7702065...
0.81194997
4
Delete employee details by employee id.
@DeleteMapping(value="/employes/{Id}") public void deleteEmployeeDetailsByEmployeeId(@PathVariable Long Id) { employeeService.deleteEmployeeDetails(Id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteEmployee(Long employeeId) throws ApiDemoBusinessException;", "public void deleteEmployee(Long id) {\n employeeRepository.deleteById(id);\n }", "public void deleteEmployee(int id) {\r\n\t\temployee1.remove(id);\r\n\t}", "@Override\n\tpublic void deleteEmployeeById(int id) {\n\t\t\n...
[ "0.8471577", "0.843938", "0.84372187", "0.8433651", "0.8296954", "0.8274478", "0.825691", "0.82422996", "0.8231343", "0.8227188", "0.8218308", "0.8211086", "0.82003015", "0.81270695", "0.8116793", "0.80765593", "0.8065863", "0.8064444", "0.8060767", "0.80556566", "0.80291295"...
0.8025059
21
TODO Autogenerated method stub
@Override public Map<String, Object> test(Integer id, String name) { Map<String,Object>map= new HashMap<String,Object>(); map.put("errcode", "200"); map.put("msg", "success"); map.put("data", "id: "+id+","+"name: "+name); return map; }
{ "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
TODO Autogenerated method stub
@Override public BaseResponse testResponse() { return setResultSuccess(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public BaseResponse setRedisTest(String key, String value) { baseRedisService.setString(key, value); return setResultSuccess(); }
{ "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
TODO Autogenerated method stub
@Override public BaseResponse getRedis(String key) { return null; }
{ "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
Mutes a user and saves it into the file
public void muteUser(User user, int seconds) { bot.getCreditsFile().set("Mutes." + user.getId() + ".Name", user.getName()); bot.getCreditsFile().set("Mutes." + user.getId() + ".Mute", seconds); data.saveFile(bot.getCreditsFile(), "credits"); GuildUtils.controller().modifyMemberRoles(Guil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean setLoggedUser(User user) \n {\n try\n {\n File file = new File(System.getProperty(\"user.home\")+\"\\\\user.ser\");\n \n File file_remember_me = new File(System.getProperty(\"user.home\")+\"\\\\remember.ser\");\n if(!file_rem...
[ "0.6105454", "0.6022642", "0.60095495", "0.5916301", "0.5850941", "0.5816129", "0.5810651", "0.5804824", "0.57349247", "0.57336867", "0.5725894", "0.57233286", "0.5720495", "0.57181686", "0.5703831", "0.5668101", "0.56667745", "0.5652993", "0.56523746", "0.56394774", "0.56328...
0.62463963
0
Returns the time left for the user, 0 if the user isn't muted.
private int getTimeLeftForMute(User u) { if (!isMuted(u)) return 0; return bot.getCreditsFile().getInt("Mutes." + u + ".Mute"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTimeLeft() {\n\t\treturn timeLeft;\n\t}", "public long getTimeLeft() {\n return getExpiration() - System.currentTimeMillis() / 1000L <= 0 ? 0 : getExpiration() - System.currentTimeMillis() / 1000L;\n }", "public long getTimeLeft() {\n return timeLeft;\n }", "public long getT...
[ "0.7157648", "0.7152993", "0.70933354", "0.70155114", "0.6843487", "0.6819924", "0.6706749", "0.6643891", "0.65729797", "0.6507416", "0.6350907", "0.6322662", "0.62641335", "0.6258594", "0.6229165", "0.61428696", "0.61358184", "0.6117286", "0.6102503", "0.607123", "0.60630774...
0.80780447
0
Returns true if the given user is muted
public boolean isMuted(User u) { return bot .getCreditsFile() .getInt("Mutes." + u + ".Mute") > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isUserMuted(Neighbor user){\n Iterator<Neighbor> it = mutedNeighbors.iterator();\n while (it.hasNext()) {\n Neighbor peer = it.next();\n if(peer.getDeviceAddress().equals(user.getDeviceAddress())) {\n Log.i(TAG,\"User is muted\");\n ...
[ "0.7655979", "0.7221378", "0.69124246", "0.63007873", "0.6124169", "0.6052919", "0.5970687", "0.58669436", "0.5776508", "0.57574224", "0.5711578", "0.56914985", "0.5645711", "0.55993146", "0.5593947", "0.5572939", "0.55568594", "0.5549152", "0.5518256", "0.5516704", "0.547410...
0.79022473
0
Updates the time mute for everyone (which is called every 4 seconds)
public void updateMuteTime() { for (Member m : GuildUtils.members()) { final User u = m.getUser(); if (isMuted(u)) { muteUser(u, getTimeLeftForMute(u) - 4); } else { GuildUtils.controller().modifyMemberRoles(GuildUtils.guild().getMember(u), Col...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void muteTimer(){\n\t\t//TODO: impl.\n\t\t/*\n\t\tThread worker;\n\t\t//do it in its own thread\n\t\tworker = new Thread() {\n \tpublic void run() {\n \t\t//mute and wait a bit (2s)\n \t\tmute();\n \t\ttry { Thread.sleep(2000); } catch (InterruptedException e) { e.printSt...
[ "0.7334468", "0.70764685", "0.6647209", "0.64725274", "0.62100255", "0.61750084", "0.6165773", "0.6154372", "0.6067745", "0.6062168", "0.60544276", "0.60175556", "0.59751755", "0.59353346", "0.58927155", "0.5889862", "0.58726764", "0.58260256", "0.5801954", "0.57919747", "0.5...
0.83057153
0
Name: SyncFirebaseToCalendar Description: Main method for handling syncing between Firebase and Calendar
public SyncFirebaseToCalendar (GoogleAccountCredential credential, Context context) { System.err.println("SYNCING FIREBASE TO CALENDAR"); final String[] SCOPES = {CalendarScopes.CALENDAR}; mContext = context; mActivity = (Activity) context; HttpTransport transport = AndroidHttp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pullData() {\n // Listener for changes in the database\n ValueEventListener postListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Log.d(TAG, \"Preparing to update the Calendar\");\n\n ...
[ "0.6188505", "0.5599011", "0.5346663", "0.52314496", "0.51892185", "0.50909954", "0.50617003", "0.50616074", "0.50362116", "0.49937087", "0.49861822", "0.49802795", "0.49463058", "0.49284086", "0.4927987", "0.49203062", "0.48990738", "0.4883957", "0.4870339", "0.48661092", "0...
0.7683975
0
Name: doInBackground Description: Handles events to be done asynchronously
@Override protected ArrayList<Event> doInBackground(Void... params) { ArrayList<Event> events = new ArrayList<Event>(); db.addValueEventListener( new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { String currClassName;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void inTheEndOfDoInBackground(NetworkResponse networkResponse);", "public void done() {\n try {\n C1000c.this.mo5101e(get());\n } catch (InterruptedException e) {\n Log.w(\"AsyncTask\", e);\n } catch (ExecutionException e2) {\n throw n...
[ "0.68156064", "0.679033", "0.67654246", "0.6584196", "0.6549309", "0.6508439", "0.6487233", "0.64317644", "0.64247805", "0.63206136", "0.62973905", "0.6293086", "0.6281616", "0.6240783", "0.6144983", "0.6137275", "0.61307454", "0.6100417", "0.6052531", "0.6050256", "0.6044844...
0.0
-1
Name: onPostExecute Description: Overridden out of necessity (unused)
@Override protected void onPostExecute (ArrayList<Event> result) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onPostExecute() {\r\n\t}", "@Override\n protected void onPostExecute(Void aVoid) {\n }", "protected void onPostExecute(Void v) {\n }", "protected void onPostExecute(Void v) {\n\n }", "protected void onPostExecute(Void v) {\n\n }", "pro...
[ "0.84239125", "0.8375051", "0.8333698", "0.8310339", "0.8310339", "0.82608944", "0.82608944", "0.8222406", "0.8184637", "0.8146689", "0.8117941", "0.808737", "0.8048098", "0.79703355", "0.79703355", "0.7951631", "0.7951631", "0.7942813", "0.7937648", "0.7923869", "0.7900557",...
0.0
-1
Name: getCalendarIdFromSummary Description: Gets Calendar ID from summary
private String getCalendarIdFromSummary (String summary) { try { String pageToken = null; do { CalendarList calendarList = mService.calendarList().list().setPageToken(pageToken).execute(); List<CalendarListEntry> items = calendarList.getItems(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getCalendarId();", "private long getExistingCalendarId() {\n\t\tlong calID = 0;\n\n\t\tCursor cur = null;\n\t\tContentResolver cr = getContentResolver();\n\t\tUri uri = Calendars.CONTENT_URI;\n\t\tString selection = \"((\" + Calendars.ACCOUNT_NAME + \" = ?) AND (\"\n\t\t\t\t+ Calendars.ACCOUNT_TYPE + \" = ?...
[ "0.71750027", "0.6599453", "0.5966577", "0.5883903", "0.5856999", "0.567343", "0.5662097", "0.55935353", "0.55483454", "0.55339086", "0.5508572", "0.5508535", "0.53936315", "0.5387405", "0.5328452", "0.5178895", "0.5126897", "0.5123448", "0.5109509", "0.5062751", "0.5030648",...
0.8718765
0
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { plusButton.setTooltip(new Tooltip("Agregar nuevo elemento")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { idart.setVisible(false); data = FXCollections.observableArrayList(); loadDataFromDatabase(); setsCllTable(); selected_prop(); btncommande.setOnAction(xx -> { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8126442", "0.78539085", "0.7832836", "0.77623755", "0.77623755", "0.76012474", "0.74504834", "0.7437387", "0.7431329", "0.74233705", "0.7406829", "0.7342683", "0.7329348", "0.72642463", "0.7223624", "0.7101346", "0.7058293", "0.6987611", "0.697182", "0.6943626", "0.6912216...
0.0
-1
/ renamed from: ayt / compiled from: PG
public interface ayt { /* renamed from: a */ int mo1635a(long j, List list); /* renamed from: a */ long mo1636a(long j, alb alb); /* renamed from: a */ void mo1637a(); /* renamed from: a */ void mo1638a(long j, long j2, List list, ayp ayp); /* renamed from: a */ void mo1639a(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String description()\n {\n return \"Generate Postgres C++ Code ODBC\";\n }", "BSQL2Java2 createBSQL2Java2();", "public static void main(String[] args) throws SQLException {\n\t\t\r\n\t}", "protected abstract NativeSQLStatement createNativeTransformStatement(int epsg);", "private String getCodeF...
[ "0.590005", "0.5693346", "0.55743724", "0.5508022", "0.5505597", "0.5475484", "0.53981584", "0.5390148", "0.5355006", "0.5328841", "0.5321719", "0.5319684", "0.53162545", "0.5274464", "0.5268581", "0.52671975", "0.52667934", "0.5248175", "0.5235341", "0.5193771", "0.5180127",...
0.0
-1
/ renamed from: a
int mo1635a(long j, List list);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
long mo1636a(long j, alb alb);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
void mo1637a();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
/ renamed from: a
void mo1638a(long j, long j2, List list, ayp ayp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
void mo1639a(ayl ayl);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Enlever la title bar de l'application
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.config_fullscreen); sharedPreferences = getSharedPreferences("My_pref", Activity.MODE_PRIVATE); login = (EditText)findViewById(R.id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showTitleScreen() {\n frame.showMenu();\n }", "@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n S...
[ "0.7652155", "0.72141725", "0.718534", "0.7040766", "0.6957053", "0.6957053", "0.6957053", "0.6957053", "0.6957053", "0.6933433", "0.69067395", "0.6863941", "0.68499035", "0.6843133", "0.68396825", "0.68379015", "0.6828339", "0.682504", "0.6817833", "0.681598", "0.6813584", ...
0.0
-1
TODO Autogenerated method stub
@Override public double getRate() { return 7; }
{ "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
Launch the application. Create the frame.
public SteamGui(ArrayList<Game>games) { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.games = games; setBounds(100, 100, 1411, 1030); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); contentPane.setLayout(null); tabbedPane.setBounds(27, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }", "public launchFrame() {\n \n initComponents();\n \n }", "public void launchFrame() {\n\t\tf.getContentPane().add(sbrText);\n\t\tf.getContentPane().add(btnQuit);\n\n\t\t// Close when the close button ...
[ "0.7721962", "0.7671579", "0.7566445", "0.7010299", "0.67865115", "0.6757913", "0.673126", "0.67256194", "0.667399", "0.66529185", "0.6631305", "0.6585976", "0.6559681", "0.64935666", "0.6491999", "0.6486304", "0.64726967", "0.64501196", "0.6412144", "0.6390983", "0.6369808",...
0.0
-1
escapes tikiwiki brackets that have no syntactical meaning
protected String escapeBrackets(String input) { String replacement = "\\\\[{group1}\\\\]"; return RegexUtil.loopRegex(input, doubleBrackets, replacement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void shouldRenderValidTags() throws Exception {\n MatcherAssert.assertThat(\n new Variable(\n new SquareIndicate()\n ).render(\n \"[[ aA0._ ]] \",\n new MapOf<>(\"aA0._\", \"XX\")\n ),\n Matchers.is(\"XX \")\...
[ "0.5758591", "0.564697", "0.547709", "0.54470384", "0.5374081", "0.53686315", "0.53533286", "0.5338853", "0.53379965", "0.5310661", "0.5251911", "0.5240094", "0.5208275", "0.5198992", "0.5163937", "0.5080073", "0.5059119", "0.5058224", "0.5055543", "0.50537866", "0.5013908", ...
0.6235916
0
Returns the center of the gap in the fence
public Point getGapCoordinates() { Point gap = new Point(50,50); return gap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "public Vec2 get...
[ "0.7031531", "0.6742292", "0.66370624", "0.638051", "0.6360404", "0.6359498", "0.6359498", "0.63454795", "0.6345397", "0.62867963", "0.6268514", "0.6246428", "0.6209144", "0.61911476", "0.61696404", "0.6158889", "0.6124263", "0.6122486", "0.6118784", "0.6100891", "0.6098243",...
0.6664009
2
Returns a new position of dog
public Point getBasicMove(Point[] dogs, Point[] sheeps) { Point me = dogs[mId]; //If dog on the left side of fence, move dog towards the gap if(Calculator.getSide(dogs[mId].x) == SIDE.WHITE_GOAL_SIDE) { return Calculator.getMoveTowardPoint(me, getGapCoordinates()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Position getNewPosition();", "Position getOldPosition();", "Object getPosition();", "int getPosition();", "public int getPosition();", "public int getPos();", "public int getPos();", "public int PositionGet();", "public int getOriginalPos() {\n return originalPos;\n }", "Position getPos...
[ "0.65832514", "0.6445841", "0.6351317", "0.6346009", "0.631291", "0.6275398", "0.6275398", "0.60566306", "0.59845483", "0.5977065", "0.5977065", "0.5965455", "0.59374785", "0.5929411", "0.5899614", "0.58833945", "0.58725053", "0.5846176", "0.5823589", "0.58163565", "0.580526"...
0.5397589
94
Do nothing, this brain is only for a basic player
@Override public Point getAdvancedMove(Point[] dogs, Point[] whiteSheep, Point[] blackSheep) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void playerWon()\r\n {\r\n \r\n }", "public void playerLost()\r\n {\r\n \r\n }", "@Override\n public void landedOn(Player player) {}", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "@Override\n\tpublic void play() {\n\t\t\n\t}", "public void play(){\n\t\t\n\t}", "p...
[ "0.719997", "0.6970534", "0.69540924", "0.69111913", "0.68908006", "0.6844081", "0.68082714", "0.6788702", "0.67699915", "0.6760969", "0.67106014", "0.6708876", "0.664945", "0.663499", "0.6632335", "0.66314703", "0.6595324", "0.6591967", "0.65911335", "0.65849954", "0.6582646...
0.0
-1
Fragment fragment = getFragmentManager().findFragmentById(R.id.fragmentlayout); FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.detach(fragment); ft.attach(fragment); ft.commit();
@Override public void onRequestFinished(Request<Object> request) { Intent i = new Intent(CabSharing.this, CabSharing.class); finish(); overridePendingTransition(0, 0); startActivity(i); override...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // rep...
[ "0.75881577", "0.755415", "0.7261173", "0.7243079", "0.7182614", "0.70909786", "0.7081198", "0.7030125", "0.7001046", "0.69880956", "0.69816554", "0.6920909", "0.68905956", "0.6883965", "0.6879337", "0.6868281", "0.6846343", "0.68381417", "0.6828096", "0.68175143", "0.6815872...
0.0
-1
/ GETTERS Y SETTERS
@Override public double getMaxX() { return this.getPosition().getX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "public void setdat()\n {\n }", "private void assignment() {\n\n\t\t\t}", "void setParameters() {\n\t\t\n\t}", "String setValue();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n prot...
[ "0.6853763", "0.6566471", "0.61641645", "0.60970545", "0.6088786", "0.608431", "0.6077973", "0.5996197", "0.5992376", "0.5941046", "0.5916055", "0.5899122", "0.5840344", "0.58308196", "0.5801569", "0.57986885", "0.57860744", "0.57772064", "0.5764398", "0.57620966", "0.57583",...
0.0
-1