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 |
|---|---|---|---|---|---|---|
Private method for generating all possible steps that can be performed in each global state | private void generateSteps() {
for (GlobalState g : this.globalStates) {
List<String> faults = g.getPendingFaults();
if(faults.isEmpty()) {
// Identifying all available operation transitions (when there
// are no faults), and adding them as steps
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getSequentialPlan() {\n // ==========================================\n // Computing the (cheapest) sequence of steps\n // ==========================================\n \n // Maps of steps and cost from the global state s to the others\n Map<GlobalState,... | [
"0.6224529",
"0.61697567",
"0.60706884",
"0.5923241",
"0.58162487",
"0.5721451",
"0.5707097",
"0.56935203",
"0.5627575",
"0.5596782",
"0.5578239",
"0.5566124",
"0.5531312",
"0.5514238",
"0.5506183",
"0.5501952",
"0.5498498",
"0.546476",
"0.54579306",
"0.54579306",
"0.54518044... | 0.82326055 | 0 |
Method for retrieving the (cheapest) sequence of steps for changing the the configuration of the application from "start" to "target" | public List<String> getSequentialPlan() {
// ==========================================
// Computing the (cheapest) sequence of steps
// ==========================================
// Maps of steps and cost from the global state s to the others
Map<GlobalState,List<Step>>... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main (String[] args) {\n\n Config config = ConfigUtils.loadConfig(\"/home/gregor/git/matsim/examples/scenarios/pt-tutorial/0.config.xml\");\n// config.controler().setLastIteration(0);\n// config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWit... | [
"0.5420811",
"0.5416279",
"0.53591204",
"0.5338737",
"0.5222951",
"0.5180447",
"0.51508075",
"0.5074213",
"0.5045812",
"0.5026508",
"0.5003043",
"0.49788225",
"0.49781623",
"0.49466836",
"0.49278232",
"0.49038473",
"0.49004555",
"0.48418388",
"0.47849143",
"0.47668868",
"0.47... | 0.47402644 | 27 |
Private method for searching a global state corresponding to a given "stateMapping" (null, if not found) | private GlobalState search(Map<String,String> stateMapping) {
GlobalState desired = new GlobalState(nodes,binding);
desired.addMapping(stateMapping);
for(GlobalState g : globalStates) {
if(g.equals(desired))
return g;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic State qStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic State eStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}",
"public static String parseSelectedState(String s) {\n if (!fullMap.containsKey(s)) {\n return \"\";... | [
"0.5793493",
"0.57359505",
"0.5614117",
"0.55938673",
"0.5515383",
"0.55066735",
"0.54791087",
"0.54709",
"0.54442364",
"0.5413895",
"0.53495455",
"0.53363985",
"0.53074414",
"0.5282868",
"0.5255358",
"0.5213665",
"0.5211431",
"0.520898",
"0.5207788",
"0.5203801",
"0.51398885... | 0.87462854 | 0 |
called after bean construction | @PostConstruct
public void init() {
this.facts.addAll(checkExtractor.obtainFactList());
this.facts.addAll(facebookExtractor.obtainFactList());
this.facts.addAll(googleExtractor.obtainFactList());
this.facts.addAll(linkedinExtractor.obtainFactList());
this.facts.addAll(twitter... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostConstruct\n public void postConstruct() {\n \n }",
"@Override\n public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {\n return bean;\n }",
"@Override public void postInit()\n\t\t{\n\t\t}",
"@PostConstruct\n\tpublic void i... | [
"0.7332368",
"0.7309924",
"0.72492266",
"0.7206007",
"0.7206007",
"0.7186335",
"0.7186335",
"0.7157692",
"0.71407247",
"0.71133417",
"0.7100277",
"0.708613",
"0.7075258",
"0.7075258",
"0.7056183",
"0.70045906",
"0.6978766",
"0.69592047",
"0.69247836",
"0.679153",
"0.67902523"... | 0.0 | -1 |
Create an instance with overall features | @Override
public Instance createInstance(IdOSAPIFactory factory, Instances dataset, IUser user) {
Instance checkInst = this.checkExtractor.createInstance(factory, checkHeader, user);
Instance facebookInst = this.facebookExtractor.createInstance(factory, facebookHeader, user);
Instance googl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Feature createFeature();",
"private void createFeatures() {\n\t\tfeatures = new Feature[NUM_FEATURES];\n\n\t\t// Create dummy feature\n\t\tfeatures[0] = new DummyFeature(width, height, 0, 0 - THRESHOLD);\n\n\t\t// Create the rest of the features\n\t\tfor (int i = 1; i < NUM_FEATURES; i++) {\n\t\t\tfeatures[i] = ... | [
"0.7448475",
"0.7178418",
"0.70876545",
"0.6753025",
"0.6526324",
"0.63779265",
"0.63360906",
"0.6280575",
"0.6239544",
"0.60917044",
"0.6070799",
"0.6036933",
"0.5972219",
"0.59446895",
"0.5926935",
"0.5908712",
"0.58499306",
"0.5825129",
"0.58032197",
"0.58032197",
"0.57917... | 0.5608327 | 31 |
Creates new form AdmissionDetails | public AdmissionDetails() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic... | [
"0.6296938",
"0.6177433",
"0.58813876",
"0.57527435",
"0.56032676",
"0.5588216",
"0.54248095",
"0.53085715",
"0.5305403",
"0.5291991",
"0.527246",
"0.5262384",
"0.52410406",
"0.52348727",
"0.52341205",
"0.5216379",
"0.5153567",
"0.5151248",
"0.5133156",
"0.5132737",
"0.512680... | 0.6445684 | 0 |
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() {
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persis... | {
"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.7322098",
"0.7292275",
"0.7292275",
"0.7292275",
"0.72872275",
"0.72507876",
"0.7214814",
"0.7209056",
"0.7197325",
"0.71918863",
"0.71856284",
"0.7160448",
"0.7148918",
"0.7094831",
"0.70820963",
"0.70585436",
"0.6988433",
"0.6978755",
"0.69569016",
"0.6955245",
"0.694635... | 0.0 | -1 |
return new TokenStreamComponents(new KiteTokenizer(reader)); | @Override
protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
KiteTokenizer source = new KiteTokenizer(reader);
return new TokenStreamComponents(source, new KiteTokenFilter(source));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Tokenizer getTokenizer();",
"TokenReader reader(TokenType tokenType);",
"private Iterator tokenize(FreeTTSSpeakable speakable) {\n\treturn new FreeTTSSpeakableTokenizer(speakable).iterator();\n }",
"WikipediaTokenizerImpl(java.io.Reader in) {\n this.zzReader = in;\n }",
"public Templ... | [
"0.7040475",
"0.69054544",
"0.6741757",
"0.66931635",
"0.66552114",
"0.66389537",
"0.6562251",
"0.65609103",
"0.6552156",
"0.6539046",
"0.65269715",
"0.6486498",
"0.6432503",
"0.64272714",
"0.64272714",
"0.6424155",
"0.63991386",
"0.6374946",
"0.6345255",
"0.6314437",
"0.6254... | 0.7851767 | 0 |
pg2 wird Visible gemacht | @Override
public void run() {
pg2.setVisibility(View.VISIBLE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void view() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getCo... | [
"0.58768344",
"0.5636156",
"0.53533673",
"0.5350762",
"0.5342856",
"0.52844113",
"0.52081084",
"0.5159605",
"0.5095754",
"0.50852823",
"0.50613457",
"0.5056178",
"0.50542784",
"0.50495094",
"0.49595147",
"0.49586955",
"0.49581915",
"0.49478683",
"0.49440247",
"0.49440247",
"0... | 0.5211227 | 6 |
return new ModelAndView(new RedirectView(" | @RequestMapping("/")
public String startPage() {
return "redirect:/html/singlelamp/nnlightctl/Index.html";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(\"/\")\n public String order(){\n return \"redirect:/order/list\";\n }",
"@RequestMapping(\"\")\n\tpublic String redirectController()\n\t{\n\t\treturn \"redirect:financial/supplier/register\";\n\t}",
"@RequestMapping(value=\"/productforsale\")\r\npublic ModelAndView productforsale(... | [
"0.72006536",
"0.7059186",
"0.7040084",
"0.703923",
"0.68730253",
"0.6811156",
"0.66410494",
"0.65854275",
"0.6470899",
"0.64494234",
"0.6435975",
"0.6408917",
"0.64047873",
"0.63212305",
"0.63174164",
"0.62939644",
"0.6237778",
"0.6177573",
"0.6155328",
"0.607679",
"0.606540... | 0.5999715 | 26 |
we can get All the CRUD method of Topic using this interface that spring data jpa provide we need a method that takes a course id and returs lessons of that course | public List<Lesson> findByCourseId(String courseId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Course> findByTopicId(int topicId);",
"@Repository\npublic interface CourseRepository extends CrudRepository<Course, String> {\n\n\tpublic List<Course> findByTopicId(String topicId);\n}",
"public interface ITopicDao {\n public List<Topic> findTopicswithplatOption( platForumType type);\n\n}",
... | [
"0.70378053",
"0.6671556",
"0.6550332",
"0.62850314",
"0.6098824",
"0.6062238",
"0.6010867",
"0.6002946",
"0.59908056",
"0.5975984",
"0.59579414",
"0.58967555",
"0.5892682",
"0.58617723",
"0.58592236",
"0.5818239",
"0.57591534",
"0.5752471",
"0.5746539",
"0.5727235",
"0.56792... | 0.62719375 | 4 |
Get the transparency based on the scroll position. Transparency will approach 100% as the scroll reaches the height of the referenced view. | private float getAlphaForView(float position, float referenceHeight) {
if (position < 0) {
return 0;
}
if (position > referenceHeight) {
return 1;
}
return position / referenceHeight;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getOpacity(){\n\t\t\n\t\tif(this.isDestroyed()){\n\t\t\treturn 0;\n\t\t}\n\t\tlong time = System.currentTimeMillis() - creationTime;\n\t\t\n\t\tfloat opacity;\n\t\tif(time == 0 || time == visibleTime){\n\t\t\topacity = 0;\n\t\t}else if(time < visibleTime/4){\n\t\t\topacity = (float)easingInOut(time, 0... | [
"0.59833616",
"0.59317297",
"0.56543934",
"0.56142926",
"0.55986637",
"0.55664",
"0.5504932",
"0.5494172",
"0.5468317",
"0.5419264",
"0.5393558",
"0.5390127",
"0.53809696",
"0.53222203",
"0.52958345",
"0.52958345",
"0.526887",
"0.5232421",
"0.52236867",
"0.52230227",
"0.51855... | 0.6759734 | 0 |
Sets the alpha layer on a color. | public int adjustAlpha(int color, float factor) {
int alpha = Math.round(Color.alpha(color) * factor);
int red = Color.red(color);
int green = Color.green(color);
int blue = Color.blue(color);
return Color.argb(alpha, red, green, blue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int setAlpha(int color, int alpha) {\n return (color & 0x00FFFFFF) | (alpha << 24);\n }",
"public void setAlpha(int newAlpha)\n {\n setColor(getColor().withAlpha(newAlpha));\n }",
"public void setAlpha(float alpha);",
"public void setAlpha(float alpha) {\n\t\tthis.alph... | [
"0.7609637",
"0.7355942",
"0.7306572",
"0.7038351",
"0.70071644",
"0.69483143",
"0.6908164",
"0.68609107",
"0.6801161",
"0.6758781",
"0.6748846",
"0.6667216",
"0.6640538",
"0.66283035",
"0.6600191",
"0.6590564",
"0.65899694",
"0.6474488",
"0.6463243",
"0.6459605",
"0.64442766... | 0.5998075 | 34 |
TODO implement config loading | public void loadConfig() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Confi... | [
"0.7513585",
"0.7405284",
"0.7372355",
"0.7188981",
"0.70683855",
"0.6885738",
"0.6871203",
"0.67461026",
"0.66600233",
"0.6639825",
"0.6636984",
"0.6634406",
"0.6608958",
"0.6598537",
"0.6581985",
"0.65608555",
"0.65468985",
"0.65393686",
"0.6531403",
"0.6524871",
"0.6504388... | 0.7760854 | 0 |
Some how useless ~8> | public AncientEgyptianMultiplication( ) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void feladat8() {\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public final void zzc(T r7, T r8) {\n /*\n r6 = this;\n if (r8 == 0) goto L_0x0105;\n L_0x0002:\n r0 = 0;\n L_0x0003:\n r1 = r6.zzmi;\n r1 = r1.length;\n if (r0 >= r1) ... | [
"0.61910045",
"0.6069212",
"0.5892586",
"0.58596796",
"0.5850869",
"0.58111215",
"0.5802567",
"0.5798732",
"0.5785828",
"0.5769614",
"0.5762583",
"0.5734238",
"0.57201815",
"0.568772",
"0.5672403",
"0.56613624",
"0.5640159",
"0.56361055",
"0.56356317",
"0.56318134",
"0.562446... | 0.0 | -1 |
The method converts a positive integer to the ancient Egyptian multipliers which are actually the multipliers to display the number by a sum of the largest possible powers of two. E.g. 42 = 2^5 + 2^3 + 2^1 = 32 + 8 + 2. However, odd numbers always 2^0 = 1 as the last entry. Also see: | public int[ ] decompose( int number ) throws JWaveException {
if( number < 1 )
throw new JWaveFailure( "the supported number for decomposition is smaller than one" );
int power = getExponent( (double)number );
int[ ] tmpArr = new int[ power + 1 ]; // max no of possible multiplier... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int compose( int[ ] ancientEgyptianMultipliers ) throws JWaveException {\r\n \r\n if( ancientEgyptianMultipliers == null )\r\n throw new JWaveError( \"given array is null\" );\r\n \r\n int number = 0;\r\n \r\n int noOfAncientEgyptianMultipliers = ancientEgyptianMultipliers.length;\r\n... | [
"0.6123116",
"0.58450097",
"0.57759124",
"0.5756255",
"0.5748381",
"0.5681268",
"0.56294405",
"0.56258583",
"0.5616352",
"0.55858964",
"0.557519",
"0.5531495",
"0.54929227",
"0.5486164",
"0.5460657",
"0.545437",
"0.5416628",
"0.5408174",
"0.54073644",
"0.5381121",
"0.5373962"... | 0.5448022 | 16 |
The method converts a list of ancient Egyptian multipliers to the corresponding integer. The ancient Egyptian multipliers are actually the multipliers to display am integer by a sum of the largest possible powers of two. E.g. 42 = 2^5 + 2^3 + 2^1 = 32 + 8 + 2. Also see: | public int compose( int[ ] ancientEgyptianMultipliers ) throws JWaveException {
if( ancientEgyptianMultipliers == null )
throw new JWaveError( "given array is null" );
int number = 0;
int noOfAncientEgyptianMultipliers = ancientEgyptianMultipliers.length;
for( int m = 0; m <... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int[ ] decompose( int number ) throws JWaveException {\r\n \r\n if( number < 1 )\r\n throw new JWaveFailure( \"the supported number for decomposition is smaller than one\" );\r\n \r\n int power = getExponent( (double)number );\r\n \r\n int[ ] tmpArr = new int[ power + 1 ]; // max no o... | [
"0.54060733",
"0.53478533",
"0.5325452",
"0.53075993",
"0.5284022",
"0.5270446",
"0.52384174",
"0.5228707",
"0.51669055",
"0.5140944",
"0.5132191",
"0.5083469",
"0.5083469",
"0.5009017",
"0.49993727",
"0.49982858",
"0.4974575",
"0.49276564",
"0.4912409",
"0.49099442",
"0.4908... | 0.6829349 | 0 |
Replaced Math.getExponent due to google's Android OS is not supporting it in Math library. | public int getExponent( double f ) {
int exp = (int)( Math.log( f ) / Math.log( 2 ) );
return exp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getExponent();",
"public Integer getExponent();",
"public abstract String getExponent();",
"public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }",
"public String get_exponent_part();",
"public BigInteger getExponent() {\n return this.exponent;\n }",
"p... | [
"0.8349882",
"0.81818116",
"0.79892915",
"0.74429536",
"0.7368853",
"0.7116187",
"0.69742876",
"0.6764453",
"0.6764255",
"0.6731507",
"0.6667014",
"0.66483146",
"0.664269",
"0.6473554",
"0.64567655",
"0.6447152",
"0.64361477",
"0.64319026",
"0.63613594",
"0.6336943",
"0.63192... | 0.67126083 | 10 |
Replaced Math.scalb due to google's Android OS is not supporting it in Math library. | public double scalb( double f, int scaleFactor ) {
double res = f * Math.pow( 2, scaleFactor );
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public INDArray scal(float alpha, INDArray x) {\n NativeBlas.sscal(x.length(), alpha, x.data(), x.offset(), 1);\n return x;\n }",
"private static native double mul(int n);",
"@Override\n public double callJavaMath(String methodName, Object[] args) {\n\treturn 0;\n }",
"f... | [
"0.6036701",
"0.59307075",
"0.58919984",
"0.5707851",
"0.56428856",
"0.5435991",
"0.54063755",
"0.5289539",
"0.5252406",
"0.5249596",
"0.5218735",
"0.5196059",
"0.51411194",
"0.5134016",
"0.5122166",
"0.5109374",
"0.50854236",
"0.50803745",
"0.5068713",
"0.50428104",
"0.50366... | 0.61712784 | 0 |
TODO Autogenerated method stub | @Override
public void run() {
requestToNet(mGetJobDept, 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 |
TODO Autogenerated method stub | @Override
public void requestToNet(String url, ArrayList<NameValuePair> params) {
if (super.isConnected()) {
super.requestToNet(url, params);
}
} | {
"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 parseResponse(String result) {
try {
JSONTokener jsonParser = new JSONTokener(result);
// 此时还未读取任何json文本,直接读取就是一个JSONObject对象。
// 如果此时的读取位置在"name" : 了,那么nextValue就是"yuanzhifei89"(String)
JSONObject _ResultObject = (JSONObject) jsonParser.nextValue();
int _ResultId = _ResultObject... | {
"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 |
Default constructor creates a new instance with no values set. | public Schedule() {
// TODO Auto-generated constructor stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"private Default()\n {}",
"defaultConstructor(){}",
"void DefaultConstructor(){}",
"public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY... | [
"0.7847449",
"0.7320475",
"0.726083",
"0.7185618",
"0.7087912",
"0.7000259",
"0.69451714",
"0.68806934",
"0.6868302",
"0.68140405",
"0.68006545",
"0.67993426",
"0.6777166",
"0.6754818",
"0.6734452",
"0.6731622",
"0.6703459",
"0.6689686",
"0.6684698",
"0.6673776",
"0.66688704"... | 0.0 | -1 |
constructor creates a new instance. | public Schedule(String id, String eventName, String description,
String location, String eventType, Date startDate, Date endDate,
String startTime, String endTime, Integer remindBefore,
String remindTimeType, Integer repeatEvery, boolean sunday,
boolean monday, boolean tuesday, boolean wednesday,
bool... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"public Instance() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"Reproducible newInstance();",
"Instance createInstance();",
"public Factory() {\n\t\tsuper();\n\t}",
"public CyanSus() {\n\n }",
"protected abstract void construct();"... | [
"0.78934455",
"0.7612221",
"0.74372256",
"0.7297418",
"0.72882086",
"0.714418",
"0.6875179",
"0.68524325",
"0.67972785",
"0.6786665",
"0.675484",
"0.67524445",
"0.6733395",
"0.6733395",
"0.672838",
"0.6726671",
"0.67235583",
"0.6721021",
"0.66979986",
"0.66933835",
"0.6676814... | 0.0 | -1 |
visit classes just once each | private void visitAdditionalEntrypoints() {
LinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>();
for(jq_Method m: publicMethods) {
extraClasses.add(m.getDeclaringClass());
}
for(jq_Class cl: extraClasses) {
visitClass(cl);
jq_Method ctor = cl.getInitializer(new jq_NameAndDesc("<init>", "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object VisitClasses(ASTClasses classes){\n for (int i = 0; i <classes.size(); i++) {\n classes.elementAt(i).Accept(this);\n }\n return null;\n }",
"@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}",
"@Override\n\tpublic Void visit(ClassDef classDef) ... | [
"0.682031",
"0.646344",
"0.6416902",
"0.6367083",
"0.6316374",
"0.6232713",
"0.61572284",
"0.61201185",
"0.61008066",
"0.6070201",
"0.60411566",
"0.6027206",
"0.60239846",
"0.6011637",
"0.6010791",
"0.5930866",
"0.5911721",
"0.5818325",
"0.58086455",
"0.58086455",
"0.58075684... | 0.5541178 | 40 |
Spring Data CrudRepository for the competence entity. | @Transactional
public interface GroupDAO extends CrudRepository<Group, Long> {
public Group findByName(String name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Repository(value = \"competitionRepository\")\ninterface CompetitionRepository extends JpaRepository<CompetitionModel, Long> {\n\n}",
"public interface ShopperPersonRepository extends CrudRepository<ShopperPerson, Long> {\n}",
"@Repository\npublic interface ProductcategoryRepository extends CrudRepository<Pro... | [
"0.71862096",
"0.6878514",
"0.67298335",
"0.6706969",
"0.66931707",
"0.66413355",
"0.6601061",
"0.6597905",
"0.65950894",
"0.65882653",
"0.6580386",
"0.6572555",
"0.65622264",
"0.65595704",
"0.6556906",
"0.6544144",
"0.65422237",
"0.6537937",
"0.6537852",
"0.6531756",
"0.6519... | 0.0 | -1 |
TODO: does it need to return the name? | public String register(String string) throws IOException {
if (proxyPlayer.isRegistered()){
return proxyPlayer.getPlayerName();
}
openConnection();
JSONArray commandArray = new JSONArray();
commandArray.add("register");
System.out.println("register proxy fun... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getName() ;",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();... | [
"0.8033278",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"0.7893097",
"... | 0.0 | -1 |
TODO: does it need to return? | public String receiveStones(Stone stone) throws IOException {
openConnection();
JSONArray commandArray = new JSONArray();
commandArray.add("receive-stones");
commandArray.add(stone.getStone());
this.outputWriter.println(commandArray.toJSONString());
this.outputWriter.flus... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void per... | [
"0.5932989",
"0.58795583",
"0.5775279",
"0.5761677",
"0.5721946",
"0.5667628",
"0.55570537",
"0.5494886",
"0.5480378",
"0.5477159",
"0.5452294",
"0.5439794",
"0.54289675",
"0.5412111",
"0.5399151",
"0.5396096",
"0.5383804",
"0.5367922",
"0.53463286",
"0.5342585",
"0.53309244"... | 0.0 | -1 |
Constructor for FieldStation class. | public FieldStation(String id, String name){
this.id = id;
this.name = name;
//Initialises the SetOfSensors sensors.
sensors = new SetOfSensors();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Station(String name, float latitude, float longitude) { //Data is passed to this constructor via forms and a route.\n this.name = name;\n this.latitude = latitude;\n this.longitude = longitude;\n }",
"public Station(){\n\t\tthis.Name = \"\";\n\t\tthis.x_location = 0;\n\t\tthis.y... | [
"0.7015333",
"0.69973284",
"0.6960682",
"0.6946078",
"0.6712841",
"0.64806324",
"0.63186574",
"0.6240458",
"0.6230015",
"0.62223077",
"0.61904955",
"0.618065",
"0.61255294",
"0.6097561",
"0.6062417",
"0.6044843",
"0.6022939",
"0.60074717",
"0.59892434",
"0.5980678",
"0.597761... | 0.73334455 | 0 |
Gets the id of the FieldStation | public String getId(){
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStationId() {\n return location.getStationId();\n }",
"public int getStation_ID() {\n\t\treturn station_ID;\n\t}",
"public Object getStationId() {\n\t\treturn null;\n\t}",
"public int getStationID() {\n\t\treturn stationID;\n\t}",
"@Override\n protected String getStationId(St... | [
"0.7385759",
"0.719238",
"0.7176085",
"0.7093586",
"0.6644441",
"0.6613961",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.65482944",
"0.... | 0.0 | -1 |
Gets the name of the FieldStation | public String getName(){
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName(){\r\n return this.station.getName();\r\n }",
"public String get_station_name () {\n if (!this.on) {\n return null;\n }\n\n return this.stationName;\n }",
"public String getFromStationName();",
"public String getStationName(){\r\n retu... | [
"0.79111546",
"0.7696221",
"0.75989145",
"0.7305598",
"0.729639",
"0.7194226",
"0.71339065",
"0.67735195",
"0.6684861",
"0.66499645",
"0.6636085",
"0.6562818",
"0.65289116",
"0.64765596",
"0.64765596",
"0.64765596",
"0.64765596",
"0.64765596",
"0.64765596",
"0.64765596",
"0.6... | 0.0 | -1 |
Gets the sensors attached to the FieldStation | public SetOfSensors getSetOfSensors(){
return sensors;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Sensor> getSensorList()\n {\n return new ArrayList<>(sensors.values());\n }",
"List<Sensor> getTempSensors() {\n return Collections.unmodifiableList(this.tempSensors);\n }",
"protected Sensor[] getSensorValues() { return sensors; }",
"public List<SensorObject> getSensorData... | [
"0.73862463",
"0.72232527",
"0.71995044",
"0.7159567",
"0.6957924",
"0.6844911",
"0.6779049",
"0.6745347",
"0.66710603",
"0.6539049",
"0.64858955",
"0.6478133",
"0.6452102",
"0.63415086",
"0.6307565",
"0.62922114",
"0.62304384",
"0.62033427",
"0.6141221",
"0.6079278",
"0.6025... | 0.6709037 | 8 |
Adds a Sensor to the SetOfSensors sensors and sets the FieldStation on that Sensor. | public void addSensor(Sensor sensor){
sensors.addSensor(sensor);
sensor.setFieldStation(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n ... | [
"0.6877479",
"0.6541939",
"0.64219254",
"0.60309756",
"0.58243126",
"0.5783795",
"0.577285",
"0.5755717",
"0.5610711",
"0.5554779",
"0.5545797",
"0.54731786",
"0.5442079",
"0.54208535",
"0.54144895",
"0.54016584",
"0.5398009",
"0.5373768",
"0.5318577",
"0.53055286",
"0.528260... | 0.7899907 | 0 |
Removes a Sensor from the SetOfSensors sensors. | public void removeSensor(String id){
sensors.removeSensor(sensors.getSensor(id));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeSensor(String sensorID) {\n\n\t\tthis.sensors.removeIf(sensor -> sensor.getSensorID().equals(sensorID));\n\t}",
"public static void removeAllSensors() {\n\t\tmSensors.clear();\n\t}",
"public synchronized void removeSensor(int id) throws Exception{\n sList.deleteSensor(id);\n sen... | [
"0.6902894",
"0.68370587",
"0.6439764",
"0.6317683",
"0.6259968",
"0.6013496",
"0.5937425",
"0.5753663",
"0.5629914",
"0.5535003",
"0.545113",
"0.54477006",
"0.53981787",
"0.53862566",
"0.5336011",
"0.5320682",
"0.5211424",
"0.51945806",
"0.5185023",
"0.5177837",
"0.49653164"... | 0.6578437 | 2 |
Adds SensorData to the Buffer. Then tries to write that Buffer to the Server if there's a connection. | public void update(String filename, SensorData sensorData){
//Adds the sensor data to the buffer.
addToBuffer(filename, sensorData);
//Uploads the data to the server if it's turned on.
if (Server.getInstance().getServerIsOn())
if(uploadData()){
//If... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean uploadData(){\n ObjectInputStream instream = null;\n Vector<SensorData> dummyData = new Vector<SensorData>();\n \n try {\n //Tries to create an ObjectInStream for the buffer serialisation file.\n FileInputStream fileinput = new FileInputStream (\"dat... | [
"0.6620762",
"0.6564099",
"0.64496154",
"0.63810277",
"0.5822626",
"0.5740938",
"0.56566906",
"0.5604681",
"0.55432886",
"0.55423427",
"0.55322534",
"0.54665554",
"0.54310095",
"0.54123163",
"0.5400199",
"0.539479",
"0.5377168",
"0.53669965",
"0.52336717",
"0.5219757",
"0.521... | 0.6194843 | 4 |
Returns the SensorData from a found Sensor. | public SensorData getData(String sensorId){
return sensors.getData(sensorId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DataValue getLeastDataByDeviceIdAndSensorType(SensorValue sensorVal) throws Exception;",
"public Sensor parseSensor() {\n Element e = document.getDocumentElement();\n // found Sensor Element in XML\n if (e != null && e.getNodeName().equals(\"sensor\")) {\n // creates new Se... | [
"0.6816482",
"0.6806091",
"0.6718311",
"0.657181",
"0.65187526",
"0.64594984",
"0.6387394",
"0.62483203",
"0.6244288",
"0.62203455",
"0.6205102",
"0.6133808",
"0.6118583",
"0.6084674",
"0.60709447",
"0.6049228",
"0.6034595",
"0.59871334",
"0.597598",
"0.59596795",
"0.5932842"... | 0.74568886 | 0 |
Uploads the data from the Buffer to the Server. | public boolean uploadData(){
ObjectInputStream instream = null;
Vector<SensorData> dummyData = new Vector<SensorData>();
try {
//Tries to create an ObjectInStream for the buffer serialisation file.
FileInputStream fileinput = new FileInputStream ("data/buffer.ser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void upload() {\r\n\t\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\t\tFloatBuffer coordinates = shapePeer.shape.getVertexData().coordinates;\r\n\t\t\tint tempIdx=0;\r\n\t\t\tfor (int i=0; i<count; i++) {\r\n\t\t\t\ttempP3f.x = coordinates.get((minIn... | [
"0.6421902",
"0.6403028",
"0.63445807",
"0.6171765",
"0.6028488",
"0.5955824",
"0.58747506",
"0.58433664",
"0.5828545",
"0.5753865",
"0.5710479",
"0.5697197",
"0.5691961",
"0.5688271",
"0.5664398",
"0.5647581",
"0.56455094",
"0.56040496",
"0.55950296",
"0.5568899",
"0.5552153... | 0.6486645 | 0 |
Adds the SensorData to the Buffer. | public void addToBuffer(String filename, SensorData sensorData){
ObjectOutputStream outstream;
try {
File bufferFile = new File(filename);
//Checks to see if the buffer file already exists.
if(bufferFile.exists())
{
//Create an AppendableO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void addRawData (SensorData sensorData) {\n if (!isEnabled) {\n return;\n }\n\n rawData.add(sensorData);\n\n GarmentOSService.callback(CallbackFlags.VALUE_CHANGED, new ValueChangedCallback(sensorData.getLongUnixDate(), sensorData.getData()));\n\n if... | [
"0.70560825",
"0.62125516",
"0.6171762",
"0.61515266",
"0.5809755",
"0.5715037",
"0.57020503",
"0.56944877",
"0.5685842",
"0.5673848",
"0.5656822",
"0.5655638",
"0.5623923",
"0.5569626",
"0.55630034",
"0.55108327",
"0.54965675",
"0.54386806",
"0.5431872",
"0.5405618",
"0.5398... | 0.7095435 | 0 |
Clears down the Buffer after the content has been added to the Server to avoid replications. | public void clearBuffer(){
System.out.println("Clearning beffer");
//Deletes the buffer file
File bufferFile = new File("data/buffer.ser");
bufferFile.delete();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void flush(){\r\n mBufferData.clear();\r\n }",
"public void clear() {\n\t\tbufferLast = 0;\n\t\tbufferIndex = 0;\n\t}",
"public void resetBuffer() {\n this.response.resetBuffer();\n }",
"public void clearContent() {\n\t\tcontent.setLength(0);\n\t}",
"public void clear() {\n ... | [
"0.7328279",
"0.7258281",
"0.70938766",
"0.7025724",
"0.68326354",
"0.67168766",
"0.67098325",
"0.66245246",
"0.6585446",
"0.6502984",
"0.64860857",
"0.64698493",
"0.6448161",
"0.6384498",
"0.63830364",
"0.6381686",
"0.63800573",
"0.63720816",
"0.6354229",
"0.6353252",
"0.635... | 0.69403166 | 4 |
Adds a new Sensor to the SetOfSensors. | public void addSensor(String sensorId, String sensorType, String sensorUnits, int interval, int threshold, boolean upperlimit){
Sensor theSensor = new Sensor(sensorId, sensorType, sensorUnits, interval, threshold, upperlimit);
sensors.addSensor(theSensor);
theSensor.setFieldStation(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addSensor(Sensor sensor) {\n List<Sensor> listToAddTo;\n\n switch (sensor.getSensorType()) {\n case PM10:\n listToAddTo = this.pm10Sensors;\n break;\n case TEMP:\n listToAddTo = this.tempSensors;\n break;\n ... | [
"0.69899464",
"0.69529945",
"0.6869322",
"0.6344533",
"0.6098798",
"0.58566076",
"0.5697729",
"0.5514944",
"0.5501412",
"0.5373231",
"0.53408194",
"0.53302735",
"0.5304325",
"0.52936697",
"0.5277269",
"0.5241878",
"0.52103186",
"0.51740277",
"0.51733285",
"0.5157217",
"0.5058... | 0.64014506 | 3 |
Created by F on 2017/10/29. | public interface ArticleService {
public void save(Article article);
public void update(Article article);
public List<Article> queryAll();
public List<Article> queryByPage(@Param("pageNow") Integer pageNow, @Param("pageNum") Integer pageNum);
} | {
"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\n... | [
"0.5957865",
"0.58489656",
"0.58092165",
"0.57269377",
"0.5687755",
"0.5687755",
"0.56560034",
"0.5647196",
"0.5646699",
"0.5598488",
"0.5574387",
"0.5565917",
"0.55653715",
"0.55644006",
"0.552986",
"0.5526341",
"0.5511064",
"0.5507792",
"0.5507792",
"0.5507792",
"0.5507792"... | 0.0 | -1 |
if (!(message instanceof SerializableCall)) return false; SerializableCall serializableCall = (SerializableCall) message; Method method = serializableCall.getSerializableMethod().getMethod(); return ReflectionUtility.isGetter(method); | boolean isGetter(Object message) {
if (!(message instanceof RemoteCall)) return false;
RemoteCall serializableCall = (RemoteCall) message;
Method method = serializableCall.getMethod();
return RemoteReflectionUtility.isGetter(method);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String isGetter(final Method<?> method)\r\n {\r\n \r\n String methodName = method.getName();\r\n String propertyName;\r\n \r\n if (methodName.startsWith(ClassUtils.JAVABEAN_GET_PREFIX))\r\n {\r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_GET_PREFIX.length... | [
"0.5782584",
"0.5711523",
"0.56882477",
"0.56220055",
"0.5567959",
"0.5546078",
"0.5525566",
"0.5515475",
"0.5494062",
"0.5493194",
"0.54891413",
"0.5472849",
"0.54663116",
"0.54631495",
"0.54500073",
"0.54403657",
"0.5426834",
"0.5404446",
"0.5402146",
"0.5394305",
"0.539129... | 0.851657 | 0 |
param:id,set by SimpleCursorAdapter , is the id in database | public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
//TODO display phone number
//use Context get ContentResolver
ContentResolver resolver = getContentResolver();
//get phone number Uri to query
Uri uri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;
Cursor cursor = res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(int id){ this.id = id; }",
"private void setId(Integer id) { this.id = id; }",
"public void setId(long id) {\n id_ = id;\n }",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"publi... | [
"0.71265113",
"0.70902514",
"0.7053568",
"0.70380837",
"0.70380837",
"0.7016059",
"0.7016059",
"0.6997628",
"0.6997628",
"0.69802564",
"0.6971918",
"0.69596803",
"0.691548",
"0.6914555",
"0.6907077",
"0.68900424",
"0.6884245",
"0.68638873",
"0.68612224",
"0.68612224",
"0.6861... | 0.0 | -1 |
Set up a Properties object for the JMX connector attributes | private void createAdminClient(String address, Integer port, String user,
String password) throws Exception {
Properties connectProps = new Properties();
connectProps.setProperty(AdminClient.CONNECTOR_TYPE,
AdminClient.CONNECTOR_TYPE_SOAP);
connectProps.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setupProperties() {\n // left empty for subclass to override\n }",
"public void setConnectionProperties(String hostname, String dbName, String username, String password);",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"... | [
"0.6085047",
"0.59773123",
"0.5935141",
"0.59143424",
"0.5911585",
"0.58523595",
"0.57650334",
"0.57578516",
"0.57395244",
"0.570337",
"0.5688359",
"0.56701696",
"0.5633315",
"0.56239134",
"0.56181693",
"0.560898",
"0.5595138",
"0.55776435",
"0.55716217",
"0.5525669",
"0.5508... | 0.0 | -1 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
Log.i(TAG, "called onCreate");
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setContentView(R.layout.face_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivit... | [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",... | 0.0 | -1 |
TODO Autogenerated method stub super.handleMessage(msg); Log.i(tag, "handleMessage " + msg.what); | @Override
public void handleMessage(Message msg) {
switch (msg.what){
case 0:
Bitmap bmp = null;
bmp = Bitmap.createBitmap( mface.cols(), mface.rows(), Bitmap.Config.ARGB_8888);
Utils.matToBitmap(mface, bmp);
mFaceView.setImageBitmap(bmp);
mFaceVi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n Log.d(TAG,\"In Handler, Msg = \"+msg.arg1);\n }",
"@Override\r\n public void handleMessage(Message msg) {\n }",
"protected void handleMessage(Message msg)... | [
"0.88758236",
"0.83601844",
"0.7772958",
"0.76628274",
"0.7614718",
"0.75984544",
"0.7594098",
"0.75870323",
"0.75746274",
"0.7476359",
"0.7429814",
"0.7389917",
"0.7379726",
"0.73637646",
"0.7338346",
"0.7338254",
"0.7308269",
"0.7306681",
"0.73055047",
"0.7298462",
"0.72755... | 0.7203705 | 27 |
service method to modify source | public boolean modifySource(RouteDTO route) throws FRSException
{
return dao.modifySource(route);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSource (String source);",
"public void setSource(String source);",
"public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\... | [
"0.7061964",
"0.6935218",
"0.68059874",
"0.6734902",
"0.6716118",
"0.6681034",
"0.6669937",
"0.66327494",
"0.6628343",
"0.6628343",
"0.64707214",
"0.6441047",
"0.6332212",
"0.6321554",
"0.62903047",
"0.6281786",
"0.6274792",
"0.6250951",
"0.6244153",
"0.6227075",
"0.618229",
... | 0.6042598 | 25 |
service method to modify destination | public boolean modifyDestination(RouteDTO route) throws FRSException
{
return dao.modifyDestination(route);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDestination(String destination) {\r\n this.destination = destination;\r\n }",
"void setDestination(Locations destination);",
"Destination save(Destination destination);",
"public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }",
"public voi... | [
"0.66457105",
"0.6613919",
"0.64356494",
"0.6433405",
"0.63515913",
"0.634955",
"0.62989044",
"0.62889117",
"0.6264173",
"0.6241904",
"0.623588",
"0.62060344",
"0.6130493",
"0.60882396",
"0.6081396",
"0.6081022",
"0.6053672",
"0.603421",
"0.595902",
"0.5932439",
"0.5887551",
... | 0.60882854 | 13 |
TODO Autogenerated method stub | public List<RouteDTO> viewRouteDetails() throws FRSException
{
return dao.getRouteList();
} | {
"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 | public Object[] getMinPrice(RouteDTO dto) throws FRSException {
return dao.getMinPrice(dto);
} | {
"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 |
Gets identifier of source | public String getUuid() {
return _uuid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSourceID();",
"public String getSourceIdentifier() {\n return sourceIdentifier;\n }",
"long getSourceId();",
"public java.lang.Object getSourceID() {\n return sourceID;\n }",
"@Override\n\tpublic String getId()\n\t{\n\t\treturn source.getId();\n\t}",
"public long getSourceId... | [
"0.85130674",
"0.83132833",
"0.79668206",
"0.79639",
"0.77785397",
"0.77665913",
"0.77155566",
"0.7676666",
"0.7666894",
"0.7571216",
"0.7397257",
"0.7350888",
"0.7345683",
"0.7328937",
"0.73003936",
"0.72640616",
"0.72640616",
"0.71485263",
"0.71405184",
"0.71307474",
"0.712... | 0.0 | -1 |
Sets identifier of source | public void setUuid(String _uuid) {
this._uuid = _uuid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSourceIdentifier(String sourceIdentifier) {\n this.sourceIdentifier = sourceIdentifier;\n }",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"public void setName(Identifier name) throws SourceException;",
"public void setSourceID(java.lang.Obje... | [
"0.7296",
"0.7253309",
"0.72343427",
"0.71023214",
"0.6997034",
"0.6948663",
"0.69453615",
"0.69418263",
"0.6878834",
"0.68749255",
"0.6834802",
"0.67901766",
"0.6751152",
"0.67235297",
"0.66733634",
"0.66559756",
"0.66484594",
"0.6642241",
"0.65811425",
"0.6549093",
"0.65436... | 0.0 | -1 |
Gets description of source | public String getDescription() {
return _description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSource();",
"String getSource();",
"@Override\n public Optional<Text> getShortDescription(CommandSource source) {\n return desc;\n }",
"public String getSource ();",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n/* 312 */ return ge... | [
"0.7624",
"0.7593772",
"0.7574744",
"0.7540417",
"0.7530633",
"0.75232476",
"0.7473793",
"0.7471914",
"0.74666846",
"0.74666846",
"0.74666846",
"0.7391494",
"0.73904365",
"0.73904365",
"0.7379147",
"0.7377002",
"0.7323167",
"0.7274413",
"0.7274413",
"0.7274413",
"0.7274413",
... | 0.0 | -1 |
Sets description of source | public void setDescription(String _description) {
this._description = _description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSource (String source);",
"public void setSource(String source);",
"public void setSourceDescription(DataSourceDescription sourceDescription) {\n\t\tthis.sourceDescription = sourceDescription;\n\t}",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public ... | [
"0.799497",
"0.7948374",
"0.75337195",
"0.7518103",
"0.7497528",
"0.74653906",
"0.745291",
"0.745291",
"0.74510705",
"0.74374235",
"0.7218104",
"0.71468925",
"0.7030254",
"0.67864835",
"0.67487633",
"0.6699685",
"0.66949385",
"0.6683019",
"0.66693777",
"0.66644955",
"0.664995... | 0.63728184 | 98 |
Gets name of source | public String getName() {
return _name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getName() {\n return source.getName();\n }",
"@VTID(27)\n java.lang.String getSourceName();",
"public java.lang.String getSourceName() {\r\n return localSourceName;\r\n }",
"public String getSourceName() {\n\t\treturn fileName;\n\t}",
"private String getSou... | [
"0.846819",
"0.82155794",
"0.8097352",
"0.7981246",
"0.79774773",
"0.77908003",
"0.7713644",
"0.7669822",
"0.7596711",
"0.7557681",
"0.7557681",
"0.74464405",
"0.73966235",
"0.73915684",
"0.7376952",
"0.7362188",
"0.73587763",
"0.73540914",
"0.72973394",
"0.72973394",
"0.7297... | 0.0 | -1 |
Sets name of source | public void setName(String _name) {
this._name = _name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setSourceName(String name) {\n srcFileName = name;\n }",
"public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }",
"public abstract void setName( String name ) throws SourceE... | [
"0.85556513",
"0.8113247",
"0.7703442",
"0.76056355",
"0.7580835",
"0.7564808",
"0.72973704",
"0.7293404",
"0.7166907",
"0.71372455",
"0.71353364",
"0.70970625",
"0.70906466",
"0.70906466",
"0.70831203",
"0.70480645",
"0.70081383",
"0.6952432",
"0.6924383",
"0.69216233",
"0.6... | 0.0 | -1 |
Number of networks in source | public int getNumberOfNetworks() {
return _numberOfNetworks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getNumSources();",
"private int visitedNetworksCount() {\n final HashSet<String> visitedNetworksSet = new HashSet<>(mVisitedNetworks);\n return visitedNetworksSet.size();\n }",
"public int getNetworksCount() {\n return networks_.size();\n }",
"public int getNumNetworkCopies(){\... | [
"0.7640071",
"0.7470338",
"0.73766065",
"0.7319158",
"0.71903723",
"0.71479124",
"0.69825894",
"0.69825894",
"0.69516766",
"0.6892464",
"0.6882587",
"0.68570256",
"0.6835023",
"0.6824526",
"0.6779293",
"0.6684428",
"0.6666448",
"0.6659092",
"0.6630478",
"0.6595512",
"0.655766... | 0.71401787 | 6 |
Sets number of networks in source | public void setNumberOfNetworks(int _numberOfNetworks) {
this._numberOfNetworks = _numberOfNetworks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}",
"public void setSourceCount(int sourceCount) {\n this.sourceCount = sourceCount;\n }",
"public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}",
"void setPoolNumber(int poolNumber);",
... | [
"0.6643821",
"0.6441853",
"0.63815343",
"0.59575504",
"0.59310806",
"0.5866793",
"0.5840113",
"0.58392996",
"0.5813464",
"0.5806505",
"0.5806313",
"0.57404125",
"0.57374054",
"0.573374",
"0.5723413",
"0.56877023",
"0.5679834",
"0.5618022",
"0.5590891",
"0.5585244",
"0.5568266... | 0.67607117 | 0 |
Gets status of source | public String getStatus() {
return _status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSrcStatus() {\r\n return (String) getAttributeInternal(SRCSTATUS);\r\n }",
"String status();",
"String status();",
"public Status getStatus();",
"public Status getStatus() {\r\n\t return status;\r\n\t }",
"public Status getStatus() {\r\n return status;\r\n }... | [
"0.7456488",
"0.6710715",
"0.6710715",
"0.67036295",
"0.66976684",
"0.66387624",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66313106",
"0.66304",
"0.661634",
"0.661634",
"0.660... | 0.0 | -1 |
Sets status of source | public void setStatus(String _status) {
this._status = _status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSrcStatus(String value) {\r\n setAttributeInternal(SRCSTATUS, value);\r\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(Status status) {\r\n ... | [
"0.74721974",
"0.69880164",
"0.69550323",
"0.6927915",
"0.68650025",
"0.6852722",
"0.6852722",
"0.6852722",
"0.6852722",
"0.6758149",
"0.6756602",
"0.6738938",
"0.6738938",
"0.6734434",
"0.67063916",
"0.6700925",
"0.66998565",
"0.66857547",
"0.6685563",
"0.6685563",
"0.667776... | 0.65501195 | 84 |
Gets REST endpoint URL | public String getEndPoint() {
return _endPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract RestURL getURL();",
"public String endpointUrl() {\n return this.endpointUrl;\n }",
"private String getRestUrl() {\n return restUrl;\n }",
"public URL getEndPoint();",
"private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://loc... | [
"0.7652569",
"0.7532069",
"0.7526778",
"0.75224686",
"0.7508008",
"0.7476351",
"0.74414104",
"0.73491716",
"0.73282564",
"0.7317233",
"0.72914255",
"0.70616543",
"0.70312804",
"0.7029573",
"0.7027187",
"0.7010589",
"0.69503754",
"0.69313306",
"0.69313306",
"0.69291943",
"0.69... | 0.62136567 | 87 |
Sets REST endpoint URL | public void setEndPoint(String _endPoint) {
this._endPoint = _endPoint;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String setURL(String endpoint) {\n String url = hostName + endpoint;\n\n log.info(\"Enpoint: \" + endpoint);\n\n return url;\n\n }",
"public void setRestUrl(String url) {\n this.restUrl = url;\n }",
"void setEndpoint(String endpoint);",
"private String getRestUrl() {... | [
"0.74346524",
"0.73023766",
"0.7195438",
"0.70170563",
"0.6840534",
"0.6820351",
"0.67928725",
"0.67676973",
"0.6490758",
"0.64224696",
"0.63611645",
"0.6292661",
"0.6287851",
"0.62457234",
"0.6232375",
"0.62084806",
"0.6204174",
"0.61669964",
"0.6156548",
"0.61546284",
"0.61... | 0.58864903 | 44 |
Gets version of source | public String getVersion() {
return _version;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"java.lang.String getVersion()... | [
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7123584",
"0.7109928",
"0.7109928",
"0.7109928",
"0.7109928",
"0.7109928",
"0.7109928",
"0.7109928",
"0.7109928",
"0.70598656",
"0.6941513",
... | 0.62602055 | 91 |
Sets version of source | public void setVersion(String _version) {
this._version = _version;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSource (String source);",
"public void setSource(String source);",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public void setSource(String source) {\n _source = ... | [
"0.7054935",
"0.70530933",
"0.7051885",
"0.6944604",
"0.6746074",
"0.6706698",
"0.6637077",
"0.6637077",
"0.65978754",
"0.65412503",
"0.65006536",
"0.6459991",
"0.64467376",
"0.64153206",
"0.64033943",
"0.64033943",
"0.6372433",
"0.6343444",
"0.6328215",
"0.6325636",
"0.63005... | 0.0 | -1 |
Gets list of databases within source | public List<DatabaseResult> getDatabases() {
return _databases;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String [] listDatabases();",
"public List<String> getDatabaseList() throws SQLException {\n List<String> databaseList = new ArrayList<>();\n ResultSet databases = databaseStatement.executeQuery(\"SELECT datname FROM pg_database;\");\n while (databases.next()) {\n d... | [
"0.75503284",
"0.74345946",
"0.7311359",
"0.73079354",
"0.7157809",
"0.70919806",
"0.70790166",
"0.7044851",
"0.6917864",
"0.6916447",
"0.69156766",
"0.69144404",
"0.68533903",
"0.6767205",
"0.6644311",
"0.6623666",
"0.6591578",
"0.6428096",
"0.6378722",
"0.6367867",
"0.63129... | 0.6973462 | 8 |
Sets list of database within source | public void setDatabases(List<DatabaseResult> _databases) {
this._databases = _databases;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List fetchBySourceDatabase(String sourceDatabaseName) throws AdaptorException ;",
"public abstract String [] listDatabases();",
"public void setSourceDB(String sourceDB) {\n this.sourceDB = sourceDB;\n }",
"public static List<JdbcOption> getDatabaseList(String baseDir) throws Exception {\n\t\tProje... | [
"0.65335596",
"0.65118074",
"0.64332294",
"0.63497436",
"0.63192177",
"0.6300608",
"0.6176504",
"0.61384815",
"0.60604775",
"0.59653044",
"0.5868384",
"0.5852377",
"0.5851094",
"0.58121324",
"0.5803249",
"0.5736285",
"0.5733204",
"0.56995475",
"0.56805193",
"0.5653366",
"0.56... | 0.61398846 | 7 |
Instancia um novo EnumTipoPessoa. | private EnumTipoPessoa(Integer codigo, String descricao) {
this.codigo = codigo;
this.descricao = descricao;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Enum getType();",
"EEnum createEEnum();",
"EnumTypeDefinition createEnumTypeDefinition();",
"private TipoDocumentoEnum(String descripcion,String codigo) {\r\n\t\tthis.descripcion=descripcion;\r\n\t\tthis.codigo=codigo;\r\n\t}",
"public abstract Enum<?> getType();",
"public static TipoProductoEnum obtener... | [
"0.6504439",
"0.6342011",
"0.63301045",
"0.6284837",
"0.60383266",
"0.6026015",
"0.596157",
"0.596157",
"0.596157",
"0.5861713",
"0.584854",
"0.58382964",
"0.5784531",
"0.5770248",
"0.5730984",
"0.5707898",
"0.5695246",
"0.56944543",
"0.5691053",
"0.5677838",
"0.56713825",
... | 0.67455274 | 0 |
Recupera o valor de codigo. | public Integer getCodigo() {
return codigo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}",
"public String getCodigo() {\n return codigo;\n }",
"public String getCodigo() {\n return codigo;\n }",
"public String getCodigo() {\n\t\treturn codigo;\n\t}",
"@java.lang.Override\n public java.lang.String getCodigo() {\... | [
"0.7722133",
"0.77025694",
"0.77025694",
"0.7691142",
"0.76638913",
"0.76139325",
"0.7603618",
"0.75965047",
"0.7519445",
"0.74873674",
"0.74770033",
"0.7454447",
"0.7441128",
"0.740498",
"0.7399801",
"0.7399801",
"0.7399801",
"0.7399801",
"0.73845583",
"0.7369942",
"0.732979... | 0.76107526 | 6 |
Recupera o valor de descricao. | public String getDescricao() {
return descricao;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDescricao() {\n\t\treturn this.descricao;\n\t}",
"public java.lang.String getDescricao() {\r\n return descricao;\r\n }",
"public String getDescricao() {\n return descricao;\n }",
"public String getDescricao() {\n return descricao;\n }",
"public String getDesc(... | [
"0.7925677",
"0.79157704",
"0.78929895",
"0.78929895",
"0.7891746",
"0.78558075",
"0.78304183",
"0.7775091",
"0.7775091",
"0.7775091",
"0.7775091",
"0.7775091",
"0.77734774",
"0.77734774",
"0.7755042",
"0.77193683",
"0.76609474",
"0.76434976",
"0.75878245",
"0.7583227",
"0.75... | 0.79998696 | 1 |
Only draw for each bus once: | protected void paintBus(Graphics g, BusUI bus, Set<BusUI> hashSet)
{
if(hashSet.contains(bus))
return;
hashSet.add(bus);
// Draw labels:
int x = bus.getX()+bus.getWidth()+1;
int y = bus.getY()+bus.getHeight();
StringBuffer label = new StringBuffer(bus.bus.getName());
Collection<Unit> children = bus... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void drawFlights(){\n if(counter%180 == 0){ //To not execute the SQL request every frame.\n internCounter = 0;\n origins.clear();\n destinations.clear();\n internCounter = 0 ;\n ArrayList<String> answer = GameScreen.database.readDatas(\"SELECT O... | [
"0.6198949",
"0.61688286",
"0.6155376",
"0.6155376",
"0.6119492",
"0.6094614",
"0.60788006",
"0.60680676",
"0.6059616",
"0.6039053",
"0.6039053",
"0.6038455",
"0.60269815",
"0.602197",
"0.6019453",
"0.6018125",
"0.5994395",
"0.59890753",
"0.59890753",
"0.59801215",
"0.5974919... | 0.59714884 | 22 |
if(asuka == null) asuka = asukanormal; | public void move(){
switch(state){
case ATField.SPRITE_STAND:
spriteX = 0;
coords = standbySprite.get(spriteX);
spriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);
actualImg = new Rect(x, y, x + width, y + height);
break;
case ATField.SPRITE_WALK:
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }",
"private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensage... | [
"0.57525766",
"0.5734739",
"0.56947047",
"0.5661052",
"0.55444056",
"0.55096215",
"0.54079324",
"0.54079324",
"0.5404541",
"0.5394418",
"0.5357274",
"0.53518206",
"0.5323078",
"0.5315075",
"0.5310714",
"0.5300831",
"0.52982986",
"0.52791417",
"0.52764",
"0.52706623",
"0.52563... | 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() {
jPanel4 = new javax.swing.JPanel();
jPanel1 = new javax.swing.JPanel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new java... | {
"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.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"... | 0.0 | -1 |
Get the enable or disable RTCP. | public Boolean isRtcPEnable() {
return rtcPEnable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getMqttEnabledStateValue();",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"@JsonGetter(\"webRtcEnabled\")\r\n public boolean getWebRtcEnabled ( ) { \r\n return this.webRtcEnabled;\r\n }",
"public Boolean getEnable() {\n return enable;\n }",
"public Bo... | [
"0.5810881",
"0.5727363",
"0.5727363",
"0.5727363",
"0.5673606",
"0.5655893",
"0.5655487",
"0.563537",
"0.56305635",
"0.5578789",
"0.5578547",
"0.55756503",
"0.5571844",
"0.5488815",
"0.542313",
"0.5331298",
"0.53266925",
"0.5312384",
"0.52991396",
"0.5277847",
"0.5249599",
... | 0.63339525 | 0 |
Set the enable or disable RTCP. | public void setRtcPEnable(Boolean rtcPEnable) {
this.rtcPEnable = rtcPEnable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enableVideoCapture(boolean enable);",
"@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }",
"public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled... | [
"0.58781266",
"0.583993",
"0.5781427",
"0.57756674",
"0.5683621",
"0.5627597",
"0.56027055",
"0.5600037",
"0.55445534",
"0.5516365",
"0.55039537",
"0.5499092",
"0.54817444",
"0.54812443",
"0.5452707",
"0.5447017",
"0.5441114",
"0.5436548",
"0.5436036",
"0.5415648",
"0.5401378... | 0.6360613 | 0 |
Set the enable or disable RTCP. | public RealTime withRtcPEnable(Boolean rtcPEnable) {
this.rtcPEnable = rtcPEnable;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRtcPEnable(Boolean rtcPEnable) {\n\t\tthis.rtcPEnable = rtcPEnable;\n\t}",
"public void enableVideoCapture(boolean enable);",
"@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }",
"public void setEnabled (boole... | [
"0.6360613",
"0.58781266",
"0.583993",
"0.5781427",
"0.57756674",
"0.5683621",
"0.5627597",
"0.56027055",
"0.5600037",
"0.55445534",
"0.5516365",
"0.55039537",
"0.5499092",
"0.54817444",
"0.54812443",
"0.5452707",
"0.5447017",
"0.5441114",
"0.5436548",
"0.5436036",
"0.5415648... | 0.5086977 | 58 |
Get the number of sent RTP packets. | public Long getSentPackets() {
return sentPackets;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getNumSent() {\n\t\tint ret = 0;\n\t\tfor (int x=0; x<_sentPackets.getSize(); x++) {\n\t\t\tif (_sentPackets.bitAt(x)) {\n\t\t\t\tret++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;",
"public int countTra... | [
"0.79766935",
"0.78980815",
"0.744632",
"0.7070562",
"0.694665",
"0.68979794",
"0.6882354",
"0.68156385",
"0.6801996",
"0.666538",
"0.66435033",
"0.6625709",
"0.65524197",
"0.6546668",
"0.6518487",
"0.6502589",
"0.6488006",
"0.6469683",
"0.63708264",
"0.63575107",
"0.63230956... | 0.6962833 | 4 |
Set the number of sent RTP packets. | public void setSentPackets(Long sentPackets) {
this.sentPackets = sentPackets;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}",
"@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n ... | [
"0.6717366",
"0.6585423",
"0.62990034",
"0.61477625",
"0.60780644",
"0.60380936",
"0.60050875",
"0.60050875",
"0.60050875",
"0.5986865",
"0.5978415",
"0.59649986",
"0.59440154",
"0.58440596",
"0.5787898",
"0.5766091",
"0.57525694",
"0.5751251",
"0.57457757",
"0.57320046",
"0.... | 0.6039375 | 5 |
Set the number of sent RTP packets. | public RealTime withSentPackets(Long sentPackets) {
this.sentPackets = sentPackets;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}",
"@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n ... | [
"0.6717366",
"0.6585423",
"0.62990034",
"0.61477625",
"0.60780644",
"0.6039375",
"0.60380936",
"0.60050875",
"0.60050875",
"0.60050875",
"0.5986865",
"0.5978415",
"0.59649986",
"0.59440154",
"0.58440596",
"0.5787898",
"0.5766091",
"0.57525694",
"0.5751251",
"0.57457757",
"0.5... | 0.0 | -1 |
Get the number of received RTP packets. | public Long getRcvPackets() {
return rcvPackets;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;",
"public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}",
"int getPayloadCount();",
"public native long getRetransmittedPacketCount()\n throws IOException, IllegalArgumentExce... | [
"0.78860915",
"0.6842933",
"0.6824554",
"0.6799508",
"0.6773047",
"0.6735974",
"0.65523124",
"0.6488097",
"0.64731175",
"0.6338727",
"0.63381565",
"0.63302773",
"0.63195294",
"0.6305822",
"0.62554693",
"0.62548697",
"0.6249449",
"0.6249449",
"0.6249449",
"0.6192859",
"0.61517... | 0.670832 | 6 |
Set the number of received RTP packets. | public void setRcvPackets(Long rcvPackets) {
this.rcvPackets = rcvPackets;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}",
"@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n ... | [
"0.6554938",
"0.6017737",
"0.5990342",
"0.5969604",
"0.59456605",
"0.5941184",
"0.5803817",
"0.5803817",
"0.5803817",
"0.5731506",
"0.5712969",
"0.5707339",
"0.56630903",
"0.56630903",
"0.56526875",
"0.5645859",
"0.55934954",
"0.55717796",
"0.5563918",
"0.5547686",
"0.5546495... | 0.57571566 | 9 |
Set the number of received RTP packets. | public RealTime withRcvPackets(Long rcvPackets) {
this.rcvPackets = rcvPackets;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPacketsNum(long packets) {\n\t\tif (packets < 0)\n\t\t\tthrow new IllegalArgumentException(\"The packets number cannot be less than 0, \" + packets + \" given\");\n\t\tthis.packetsNum = packets;\n\t}",
"@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n ... | [
"0.6554938",
"0.6017737",
"0.5990342",
"0.5969604",
"0.59456605",
"0.5941184",
"0.5803817",
"0.5803817",
"0.5803817",
"0.57571566",
"0.5731506",
"0.5712969",
"0.5707339",
"0.56630903",
"0.56630903",
"0.56526875",
"0.5645859",
"0.55934954",
"0.55717796",
"0.5563918",
"0.554768... | 0.0 | -1 |
Get the total number of RTP payload bytes sent. | public Long getBytesSent() {
return bytesSent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTotalPayload() {\n return totalPayload;\n }",
"public native long getSentPacketCount()\n throws IOException, IllegalArgumentException;",
"public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\n } else {\n ret... | [
"0.7561212",
"0.7294042",
"0.72354126",
"0.72271407",
"0.7192883",
"0.7035568",
"0.6999376",
"0.69626623",
"0.69612473",
"0.6957684",
"0.69125265",
"0.67941755",
"0.6762794",
"0.67568284",
"0.6728945",
"0.67115986",
"0.66560096",
"0.66089475",
"0.66064906",
"0.6604592",
"0.65... | 0.6099785 | 43 |
Set the total number of RTP payload bytes sent. | public void setBytesSent(Long bytesSent) {
this.bytesSent = bytesSent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTotalPayload(int value) {\n this.totalPayload = value;\n }",
"public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }",
"public int getTotalPayload() {\n return totalPayload;\n }",
"@Override\n public int get... | [
"0.6927232",
"0.63575053",
"0.60952395",
"0.6019248",
"0.6006549",
"0.5990637",
"0.5989613",
"0.59581655",
"0.5900338",
"0.5864684",
"0.58495563",
"0.5783517",
"0.5772601",
"0.5748937",
"0.5681264",
"0.56584084",
"0.5656919",
"0.56448376",
"0.56448376",
"0.56396353",
"0.56311... | 0.56472975 | 17 |
Set the total number of RTP payload bytes sent. | public RealTime withBytesSent(Long bytesSent) {
this.bytesSent = bytesSent;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTotalPayload(int value) {\n this.totalPayload = value;\n }",
"public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }",
"public int getTotalPayload() {\n return totalPayload;\n }",
"@Override\n public int get... | [
"0.6927232",
"0.63575053",
"0.60952395",
"0.6019248",
"0.6006549",
"0.5990637",
"0.5989613",
"0.59581655",
"0.5900338",
"0.5864684",
"0.58495563",
"0.5783517",
"0.5772601",
"0.5748937",
"0.5681264",
"0.56584084",
"0.5656919",
"0.56472975",
"0.56448376",
"0.56448376",
"0.56396... | 0.0 | -1 |
Get the total number of RTP payload bytes received. | public Long getBytesReceived() {
return bytesReceived;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTotalPayload() {\n return totalPayload;\n }",
"int getPayloadCount();",
"public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;",
"public int getPayloadCount() {\n if (payloadBuilder_ == null) {\n return payload_.size();\... | [
"0.77152264",
"0.7322022",
"0.73027307",
"0.72124225",
"0.70248204",
"0.7011464",
"0.6998618",
"0.69906765",
"0.68478173",
"0.67684555",
"0.6670928",
"0.66195637",
"0.6585805",
"0.6558379",
"0.65074337",
"0.65056473",
"0.64401424",
"0.6406453",
"0.6404636",
"0.63817626",
"0.6... | 0.60717964 | 31 |
Set the total number of RTP payload bytes received. | public void setBytesReceived(Long bytesReceived) {
this.bytesReceived = bytesReceived;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTotalPayload(int value) {\n this.totalPayload = value;\n }",
"public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }",
"public int getTotalPayload() {\n return totalPayload;\n }",
"int getPayloadCount();",
... | [
"0.7102727",
"0.652656",
"0.6351674",
"0.61389",
"0.6130066",
"0.60837305",
"0.6051543",
"0.5990278",
"0.5920412",
"0.58372754",
"0.57904404",
"0.57531893",
"0.5722602",
"0.5688833",
"0.5681075",
"0.5675947",
"0.56222475",
"0.56175137",
"0.5616031",
"0.56032646",
"0.5581383",... | 0.5673843 | 16 |
Set the total number of RTP payload bytes received. | public RealTime withBytesReceived(Long bytesReceived) {
this.bytesReceived = bytesReceived;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTotalPayload(int value) {\n this.totalPayload = value;\n }",
"public void setBytesReceivedCount(long bytesReceived) {\n this.bytesReceivedCount.setCount(bytesReceived);\n }",
"public int getTotalPayload() {\n return totalPayload;\n }",
"int getPayloadCount();",
... | [
"0.7102727",
"0.652656",
"0.6351674",
"0.61389",
"0.6130066",
"0.60837305",
"0.6051543",
"0.5990278",
"0.5920412",
"0.58372754",
"0.57904404",
"0.57531893",
"0.5722602",
"0.5688833",
"0.5681075",
"0.5675947",
"0.5673843",
"0.56222475",
"0.56175137",
"0.5616031",
"0.56032646",... | 0.0 | -1 |
Get the this object contains performances relating to Real Time Transport using RTP. | public Perf getPerf() {
return perf;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPerformanceTime()\r\n {\r\n return performanceTime;\r\n }",
"public RTPSourceInfo getRTPSourceInfo() {\n return this.sourceInfo;\n }",
"public long getLatency() {\n return latency;\n }",
"public String getPerformanceName()\r\n {\r\n return performanceName... | [
"0.569412",
"0.5656624",
"0.52204",
"0.51863515",
"0.5175928",
"0.5157851",
"0.5142157",
"0.5099812",
"0.50756055",
"0.5071216",
"0.5060193",
"0.50434136",
"0.50216556",
"0.49830914",
"0.4964663",
"0.49549243",
"0.4946473",
"0.49285397",
"0.49181005",
"0.49077243",
"0.4905719... | 0.55810785 | 2 |
Set the this object contains performances relating to Real Time Transport using RTP. | public void setPerf(Perf perf) {
this.perf = perf;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSymmetricRtp(boolean symmetric_rtp)\n { this.symmetric_rtp=symmetric_rtp;\n }",
"public void setPerformanceTuningSettings(Properties aPerformanceTuningSettings) {\n mPerformanceTuningSettings = aPerformanceTuningSettings;\n }",
"abstract public void setPerformanceInfo() throws Exception... | [
"0.5395663",
"0.53215486",
"0.53161055",
"0.5259574",
"0.522001",
"0.5141514",
"0.5125759",
"0.5036543",
"0.49739486",
"0.49617764",
"0.49529958",
"0.49346825",
"0.49326992",
"0.4931585",
"0.4908053",
"0.48922828",
"0.48779863",
"0.48759493",
"0.48750207",
"0.4870479",
"0.486... | 0.5548517 | 0 |
Set the this object contains performances relating to Real Time Transport using RTP. | public RealTime withPerf(Perf perf) {
this.perf = perf;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPerf(Perf perf) {\n\t\tthis.perf = perf;\n\t}",
"public void setSymmetricRtp(boolean symmetric_rtp)\n { this.symmetric_rtp=symmetric_rtp;\n }",
"public void setPerformanceTuningSettings(Properties aPerformanceTuningSettings) {\n mPerformanceTuningSettings = aPerformanceTuningSettings;\n... | [
"0.5548517",
"0.5395663",
"0.53215486",
"0.53161055",
"0.5259574",
"0.522001",
"0.5141514",
"0.5125759",
"0.5036543",
"0.49739486",
"0.49617764",
"0.49529958",
"0.49346825",
"0.49326992",
"0.4931585",
"0.4908053",
"0.48922828",
"0.48779863",
"0.48759493",
"0.48750207",
"0.487... | 0.48512095 | 22 |
Walks in a straight line towards the destination. | public static boolean straightWalk(final RSTile tile) {
if (tile == null) {
return false;
}
if (compareGameDestination(tile) || comparePlayerPosition(tile)) {
return true;
}
return Walking.blindWalkTo(tile, new Condition() {
@Override
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void walk(int direction);",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public void jumpToNextLine() {\n int currentL... | [
"0.64093673",
"0.62268174",
"0.6101613",
"0.6082397",
"0.60567445",
"0.6010274",
"0.595551",
"0.59358996",
"0.5879683",
"0.5877147",
"0.5861672",
"0.58305216",
"0.5795899",
"0.5698164",
"0.5690787",
"0.5658417",
"0.5656863",
"0.5653399",
"0.56333286",
"0.56314236",
"0.5631238... | 0.55141747 | 32 |
Walks in a straight line towards the destination. | public static boolean straightWalk(final RSTile tile, final Condition condition) {
if (tile == null) {
return false;
}
if (compareGameDestination(tile) || comparePlayerPosition(tile)) {
return true;
}
return Walking.blindWalkTo(tile, new Condition() {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void walk(int direction);",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public void jumpToNextLine() {\n int currentL... | [
"0.64093673",
"0.62268174",
"0.6101613",
"0.6082397",
"0.60567445",
"0.6010274",
"0.595551",
"0.59358996",
"0.5879683",
"0.5877147",
"0.5861672",
"0.58305216",
"0.5795899",
"0.5698164",
"0.5690787",
"0.5658417",
"0.5656863",
"0.5653399",
"0.56333286",
"0.56314236",
"0.5631238... | 0.5519945 | 31 |
Walks to the destination via web walking. | public static boolean webWalk(final RSTile tile) {
if (tile == null) {
return false;
}
return WebWalking.walkTo(tile, new Condition() {
@Override
public boolean active() {
AntiBan.activateRun();
return compareGameDestination(til... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}",
"public void startCrawl() throws IOException {\n\t\tElements paragraphs = wf.fetchWikipedia(source);\n\t\tqueueInternalLinks(paragraphs);\n\n\t\t// loop until we index a new page\n\t\tString res;\n\t\tdo {\n\t\t\tres = crawl();\n\n\t\t... | [
"0.59007716",
"0.5839034",
"0.5824776",
"0.5783016",
"0.5656927",
"0.564742",
"0.55937177",
"0.55655473",
"0.5483212",
"0.54826367",
"0.5434545",
"0.5422263",
"0.5395133",
"0.53866124",
"0.5361579",
"0.53224164",
"0.52607095",
"0.5248249",
"0.52294517",
"0.5226961",
"0.521403... | 0.53397644 | 15 |
Compares the game destination to the specified tile to see if they are related. | private static boolean compareGameDestination(RSTile tile) {
RSTile game_destination = Game.getDestination();
if (tile == null || game_destination == null) {
return false;
}
return tile.distanceTo(game_destination) < 1.5;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean comparePlayerPosition(RSTile tile) {\n RSTile player_position = Player07.getPosition();\n if (tile == null || player_position == null) {\n return false;\n }\n return tile.equals(player_position);\n }",
"public boolean equals(Tile tile){\n\t if(tile... | [
"0.643892",
"0.64008814",
"0.6293628",
"0.62443894",
"0.59685",
"0.59142554",
"0.5906806",
"0.58783114",
"0.5856414",
"0.58304024",
"0.5827872",
"0.5793764",
"0.5667707",
"0.5667707",
"0.5644341",
"0.5608247",
"0.5604085",
"0.55921555",
"0.55779713",
"0.5577061",
"0.556725",
... | 0.8092375 | 0 |
Compares the player position to the specified tile to see if they are related. | private static boolean comparePlayerPosition(RSTile tile) {
RSTile player_position = Player07.getPosition();
if (tile == null || player_position == null) {
return false;
}
return tile.equals(player_position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean compareGameDestination(RSTile tile) {\n RSTile game_destination = Game.getDestination();\n if (tile == null || game_destination == null) {\n return false;\n }\n return tile.distanceTo(game_destination) < 1.5;\n }",
"public boolean equals(Tile tile)... | [
"0.66336817",
"0.6621375",
"0.6324292",
"0.62381303",
"0.6236126",
"0.6195358",
"0.6145573",
"0.6134339",
"0.6078479",
"0.6067036",
"0.59228694",
"0.5888793",
"0.587186",
"0.58635086",
"0.5861432",
"0.58442956",
"0.5839088",
"0.5828282",
"0.5696155",
"0.56554633",
"0.5625301"... | 0.79938275 | 0 |
rollover on women category and select casual dresses user should be able to navigate to women category from home page | public void navigateToWomanCategory(){
a = new Actions(driver);
a.moveToElement(driver.findElement(By.cssSelector("div[id ='block_top_menu'] a[title='Women']"))).build().perform();
driver.findElement(By.cssSelector("ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Casual Dresses'] ")).cli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selectCategory() {\n\t\t\r\n\t}",
"@When(\"^user click on apparel category from home page$\")\n public void userClickOnApparelCategoryFromHomePage() {\n homePage.clickOnAppareal();\n }",
"public void onSelectCategory(View view) {\n\n Intent intent = new Intent(this, SelectCatego... | [
"0.66034377",
"0.6270533",
"0.58101547",
"0.575171",
"0.5655496",
"0.5635773",
"0.56331605",
"0.5630341",
"0.5624405",
"0.55960476",
"0.55954266",
"0.5540623",
"0.55304307",
"0.5500015",
"0.5481124",
"0.546444",
"0.5440942",
"0.54056454",
"0.54003847",
"0.5387796",
"0.5375743... | 0.70118076 | 0 |
verify user is on Women category page | public String verifyUserOnWomenPage(){
WebElement womenPage = driver.findElement(By.cssSelector("div[class='breadcrumb clearfix'] a[title='Dresses']"));
String womenPageStatus = womenPage.getText();
return womenPageStatus;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean veirfyUserOnSummerDressesPage(){\n WebElement page = driver.findElement(By.cssSelector(\"div[class='cat_desc']\"));\n boolean pageStatus = page.isDisplayed();\n return pageStatus;\n }",
"boolean hasCategory();",
"boolean hasPageCategoryId();",
"@Test(suiteName = \"NowPlaying\", tes... | [
"0.5967759",
"0.589293",
"0.58871514",
"0.5714973",
"0.5685913",
"0.56765604",
"0.5595889",
"0.54782194",
"0.53701156",
"0.5344278",
"0.5293533",
"0.527103",
"0.5246506",
"0.51812655",
"0.51700634",
"0.51383996",
"0.5118221",
"0.51129407",
"0.51102895",
"0.510214",
"0.5078099... | 0.5685249 | 5 |
enter a product type in search field user should be able to enter a product & search using search field | public void searchProduct(String product){
driver.findElement(By.id("search_query_top")).sendKeys(product);
List<WebElement> options = driver.findElements(By.className("ac_results"));
for(WebElement option:options){
if(option.getText().equalsIgnoreCase("printed dress")){
option.click();
break;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void search(String product) {\n // ..\n }",
"public void searchProd(){\n\t\t\n\t\t// STEP 4:-\n\t\t// Enter 'mobile' in search bar.\n\t\tWebElement search = driver.findElement(By.name(\"q\"));\n\t\tsearch.sendKeys(\"mobiles\");\n\t\tsearch.sendKeys(Keys.ENTER);\n\t\tSystem.out.println(\"Enter n... | [
"0.78339994",
"0.7058392",
"0.6970282",
"0.694802",
"0.69180226",
"0.67235297",
"0.6687466",
"0.6683326",
"0.6612895",
"0.6582935",
"0.6547865",
"0.6541652",
"0.6492922",
"0.6485328",
"0.64819825",
"0.64586246",
"0.6457227",
"0.64007765",
"0.6398578",
"0.63820124",
"0.6365557... | 0.6671376 | 8 |
verify user is on printed dress page | public String verifyUserOnPrintedDressPage(){
WebElement page = driver.findElement(By.cssSelector("span[class='lighter']"));
String pageStatus = page.getText();
return pageStatus;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean Verifypage();",
"@Override\n\tpublic void checkPage() {\n\t}",
"public void verifyPrintPageOpenedInNewWindow() {\n\t Assert.assertTrue(printPreviewApp.isDisplayed());\n\t}",
"public void v_Verify_Guest4_Displayed(){\n\t}",
"private void checkPage() {\n Assert.assertTrue(\"El... | [
"0.6095072",
"0.59478676",
"0.58678347",
"0.5688211",
"0.56757146",
"0.56710196",
"0.56710196",
"0.56496394",
"0.56094766",
"0.5585991",
"0.55397505",
"0.55327165",
"0.5520644",
"0.5486691",
"0.5460352",
"0.54495466",
"0.544696",
"0.54449177",
"0.5428328",
"0.5426106",
"0.541... | 0.65789634 | 0 |
user should be able to click on summer dresses under Women category | public void clickOnSummerDresses(){
a = new Actions(driver);
a.moveToElement(driver.findElement(By.cssSelector("div[id ='block_top_menu'] a[title='Women']"))).build().perform();
driver.findElement(By.cssSelector("ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Summer Dresses']")).click()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void navigateToWomanCategory(){\n a = new Actions(driver);\n a.moveToElement(driver.findElement(By.cssSelector(\"div[id ='block_top_menu'] a[title='Women']\"))).build().perform();\n driver.findElement(By.cssSelector(\"ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Casual Dresse... | [
"0.7315352",
"0.5939127",
"0.59226537",
"0.5860338",
"0.58300436",
"0.57847404",
"0.5759359",
"0.5757838",
"0.56781745",
"0.56059617",
"0.55228126",
"0.54909974",
"0.5486478",
"0.5456487",
"0.54532474",
"0.5447356",
"0.5442811",
"0.5442566",
"0.5421218",
"0.5417098",
"0.54156... | 0.6990004 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.