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
Index of parameter RC channel. Not equal to the RC channel id. Typically correpsonds to a potentiometerknob on the RC
public void parameter_rc_channel_index_SET(char src) { set_bytes((char)(src) & -1L, 1, data, 4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getChannel() {\r\n\t\treturn channel;\r\n\t}", "public int getChannel() {\n return channel;\n }", "public DmaChannel getChannelAt(int i);", "public int currentChannelIndex() {\n int i = 0;\n for (YouTubeData data : mChannels) {\n if (data.mChannel.equals(mCurrentChannelID))\n ...
[ "0.6276959", "0.6181517", "0.6131568", "0.60039806", "0.5934153", "0.59316355", "0.5885791", "0.5875464", "0.5834625", "0.582242", "0.5785713", "0.57811594", "0.57680285", "0.57473946", "0.57280177", "0.56419903", "0.56298727", "0.5617002", "0.5584652", "0.5577293", "0.555627...
0.5447716
25
Minimum param value. The protocol does not define if this overwrites an onboard minimum value. (Depends on implementation
public void param_value_min_SET(float src) { set_bytes(Float.floatToIntBits(src) & -1L, 4, data, 13); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getMinimumValue();", "public void SetMinVal(int min_val);", "public int GetMinVal();", "E minVal();", "public double getMinimumValue() { return this.minimumValue; }", "void printParamMinimalValue(Station station, Sensor minSensor, MeasurementValue minValue, LocalDateTime date);", "p...
[ "0.7339321", "0.73092604", "0.70538193", "0.6937678", "0.68819934", "0.687203", "0.6742833", "0.6734737", "0.6704373", "0.6704373", "0.6662278", "0.6656121", "0.663647", "0.6635823", "0.6629903", "0.6628614", "0.661173", "0.6604684", "0.6582873", "0.6576533", "0.65628976", ...
0.6603081
18
Maximum param value. The protocol does not define if this overwrites an onboard maximum value. (Depends on implementation
public void param_value_max_SET(float src) { set_bytes(Float.floatToIntBits(src) & -1L, 4, data, 17); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getMaximumValue();", "public void SetMaxVal(int max_val);", "public int getMaxValue(){\n\t\treturn maxValue;\n\t}", "public int getMaxValue() {\n return maxValue;\n }", "int getMaximum();", "public Long getMaxValue() {\n return maxValue;\n }", "public int getMaxi...
[ "0.77875227", "0.7682721", "0.7514091", "0.74050593", "0.7244893", "0.7237916", "0.72268593", "0.7214512", "0.7214512", "0.7203452", "0.7198554", "0.7192566", "0.7172101", "0.71289474", "0.710249", "0.70917267", "0.70881474", "0.7068462", "0.70679665", "0.7042028", "0.7033498...
0.0
-1
Onboard parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public void param_id_SET(String src, Bounds.Inside ph) {param_id_SET(src.toCharArray(), 0, src.length(), ph);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (in...
[ "0.6459863", "0.5974476", "0.5629082", "0.56222665", "0.55391604", "0.5534945", "0.55303097", "0.55170095", "0.5505557", "0.539647", "0.53809613", "0.53809613", "0.5352035", "0.53485733", "0.5348107", "0.533619", "0.53348225", "0.5301741", "0.52975863", "0.5276729", "0.527025...
0.0
-1
Onboard parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public void param_id_SET(char[] src, int pos, int items, Bounds.Inside ph) { if(ph.field_bit != 168 && insert_field(ph, 168, items) || ! try_visit_item(ph, 0)) insert_item(ph, 0, items); for(int BYTE = ph.BYTE, src_max = pos + ph.items; pos < src_max; pos++, BYTE += 2) set_bytes((short)(src[pos]) & -1L, 2, data, BYTE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (in...
[ "0.646023", "0.59741414", "0.56290704", "0.56226903", "0.5539953", "0.55353725", "0.5530206", "0.55183727", "0.550589", "0.5397569", "0.53821754", "0.53821754", "0.53534317", "0.5349348", "0.5348623", "0.5336329", "0.5334003", "0.53018564", "0.5298926", "0.5276295", "0.527015...
0.0
-1
Coordinate frame, as defined by MAV_FRAME enum in mavlink_types.h. Can be either global, GPS, righthanded with Z axis up or local, right handed, Z axis down
public void frame_SET(@MAV_FRAME int src) { set_bits(- 0 + src, 4, data, 208); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RMPoint getFrameXY() { return isRSS()? getFrame().getOrigin() : getXY(); }", "public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}", "public double getFrameY() { return isRSS()? getFrameXY().y : getY(); }", "@Override\n\tprotected void createFrameOrbit( String frameColor )\n\t{\n\t...
[ "0.6186863", "0.5694893", "0.5586466", "0.5573247", "0.5556284", "0.54571855", "0.5451729", "0.54335815", "0.5430069", "0.5429854", "0.53663826", "0.5355555", "0.5353491", "0.53254664", "0.5311365", "0.5298435", "0.5274908", "0.5254996", "0.5251737", "0.5240598", "0.5228314",...
0.0
-1
Coordinate frame, as defined by MAV_FRAME enum in mavlink_types.h. Can be either global, GPS, righthanded with Z axis up or local, right handed, Z axis down
public void frame_SET(@MAV_FRAME int src) { set_bits(- 0 + src, 4, data, 192); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RMPoint getFrameXY() { return isRSS()? getFrame().getOrigin() : getXY(); }", "public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}", "public double getFrameY() { return isRSS()? getFrameXY().y : getY(); }", "@Override\n\tprotected void createFrameOrbit( String frameColor )\n\t{\n\t...
[ "0.6186919", "0.5694942", "0.55863714", "0.5572336", "0.55576944", "0.5457737", "0.5452281", "0.54344755", "0.5431711", "0.5431043", "0.53664815", "0.535584", "0.53539926", "0.53265643", "0.5311854", "0.52987784", "0.52735686", "0.5255897", "0.52522916", "0.5240472", "0.52293...
0.0
-1
Covariance matrix upper right triangular (first nine entries are the first ROW, next eight entries are the second row, etc.
public void covariance_SET(float[] src, int pos) { for(int BYTE = 44, src_max = pos + 45; pos < src_max; pos++, BYTE += 4) set_bytes(Float.floatToIntBits(src[pos]) & -1L, 4, data, BYTE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[][] getCovarianceMatrix() {\n\tif (covariance == null) {\n\t createCovariance();\n\t}\n\tdouble[][]result = new double[covariance.length][covariance.length];\n\tint n = covariance.length;\n\tfor (int i = 0; i < n; i++) {\n\t System.arraycopy(covariance[i],0, result[i],0, n);\n\t}\n\treturn resu...
[ "0.6350126", "0.6106543", "0.5919152", "0.58156884", "0.5761484", "0.5761484", "0.5745513", "0.5338717", "0.5299935", "0.5267398", "0.52291125", "0.521445", "0.5191033", "0.5188004", "0.5119328", "0.50583893", "0.50171083", "0.49896297", "0.4982014", "0.49556586", "0.49276224...
0.43829054
77
Total number of RC channels being received. This can be larger than 18, indicating that more channels are available but not given in this message. This value should be 0 when no RC channels are available
public void chancount_SET(char src) { set_bytes((char)(src) & -1L, 1, data, 40); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @UInt32 int getChannelCount();", "public int getChannelCount() {\n return channel_.size();\n }", "public int getChannelCount();", "int getChannelsCount();", "public int getChannelCount() {\n return channelCount;\n }", "public int getChannelCount() {\n if (channelBuilder_ == null...
[ "0.78261125", "0.75871974", "0.7557395", "0.7499258", "0.7392971", "0.73268855", "0.7188078", "0.69969696", "0.68791044", "0.6783543", "0.6682286", "0.6370656", "0.63611037", "0.6323966", "0.6310774", "0.629348", "0.6181332", "0.6143043", "0.6116157", "0.6076585", "0.6018084"...
0.0
-1
A bitfield corresponding to the joystick buttons' current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 1
public void buttons_SET(char src) { set_bytes((char)(src) & -1L, 2, data, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean pressed() {\n return pressed;\n }", "@Override\r\n\tpublic int buttonPressed() {\n\t\tif ( state == 0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Total Button Pressed\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}", "public JoystickButton getButtonS...
[ "0.6767759", "0.6511105", "0.6466738", "0.64647233", "0.64575845", "0.63776314", "0.63580793", "0.63110447", "0.6297286", "0.6277592", "0.62250787", "0.6097501", "0.60871077", "0.60252434", "0.60245764", "0.60183424", "0.6014556", "0.5998459", "0.59780747", "0.5935798", "0.59...
0.0
-1
Xaxis, normalized to the range [1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to forward(1000)backward(1000) movement on a joystick and the pitch of a vehicle
public void x_SET(short src) { set_bytes((short)(src) & -1L, 2, data, 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkXAxis ()\n {\n if (player.getX() >= 599)\n {\n player.setLocation (0, player.getY());\n }\n else if (player.getX() <= 0)\n {\n player.setLocation (598, player.getY());\n }\n }", "public static NumberAxis calcAxisX() {\n ...
[ "0.60966766", "0.59710556", "0.5914317", "0.5655123", "0.5579131", "0.5520257", "0.54815465", "0.545802", "0.54416615", "0.54086554", "0.540173", "0.5395917", "0.53904796", "0.53311104", "0.5213429", "0.52015805", "0.519943", "0.5168218", "0.5165484", "0.5145997", "0.5144296"...
0.0
-1
Yaxis, normalized to the range [1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to left(1000)right(1000) movement on a joystick and the roll of a vehicle
public void y_SET(short src) { set_bytes((short)(src) & -1L, 2, data, 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setY(int y) {\r\n this.y = (short) y;\r\n }", "public int getY()\n {\n return yaxis;\n }", "public static NumberAxis calcAxisY() {\n double minY = Math.round(\n Collections.min(GlobalVariables.systemCorridor.getDistances()) / 100) * 100 - 100;\n double ma...
[ "0.6397972", "0.6325714", "0.611421", "0.60986847", "0.60592896", "0.6048733", "0.60377246", "0.60372984", "0.60335004", "0.59732944", "0.59730476", "0.5970046", "0.5969803", "0.593899", "0.5932408", "0.5929461", "0.5923497", "0.59202546", "0.58977085", "0.58702874", "0.58534...
0.0
-1
Zaxis, normalized to the range [1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a separate slider movement with maximum being 1000 and minimum being 1000 on a joystick and the thrust of a vehicle. Positive values are positive thrust, negative values are negative thrust
public void z_SET(short src) { set_bytes((short)(src) & -1L, 2, data, 7); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getZ()\n {\n return zaxis;\n }", "default void setZ(double z)\n {\n getAxis().setZ(z);\n }", "public void setZ(int z) {\r\n this.z = (short) z;\r\n }", "public void setZ(int value) {\n this.Z = value;\n }", "float zMax();", "@Override\n\tpublic int getZ() {\n\t\tret...
[ "0.62509537", "0.58201945", "0.5708778", "0.55572784", "0.53703636", "0.53688926", "0.5352172", "0.53214353", "0.53158444", "0.52942216", "0.5272693", "0.5187558", "0.5182488", "0.5172089", "0.51691604", "0.51573825", "0.5151276", "0.5129734", "0.5098278", "0.5091225", "0.504...
0.0
-1
Raxis, normalized to the range [1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a twisting of the joystick, with counterclockwise being 1000 and clockwise being 1000, and the yaw of a vehicle
public void r_SET(short src) { set_bytes((short)(src) & -1L, 2, data, 9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector2d getRrm() {\n return rrm;\n }", "public double getRightJoystickHorizontal() {\n\t\treturn getRawAxis(RIGHT_STICK_HORIZONTAL);\n\t}", "public double getRightJoystick() {\n\t\treturn HumanInput.getXboxAxis(HumanInput.xboxController, XboxButtons.XBOX_RIGHT_Y_AXIS);\n\t}", "public double...
[ "0.5638622", "0.54964113", "0.5463653", "0.5272726", "0.5234819", "0.5231962", "0.52039623", "0.51858336", "0.5155333", "0.5096878", "0.509476", "0.5060495", "0.50250435", "0.50179833", "0.4998778", "0.497388", "0.49642187", "0.49460015", "0.4932748", "0.4920615", "0.4910741"...
0.0
-1
Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4)
public void seq_SET(char src) { set_bytes((char)(src) & -1L, 2, data, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getNextID() {\n return persons.get(persons.size() - 1).getId() + 1;\n }", "private int getNextAirportID(){\n\t\treturn this.airportIDCounter++;\n\t}", "private static int nextID() {\r\n\t\treturn ID++;\r\n\t}", "long getNextSequenceNumber();", "public String nextAvalibleID()\r\...
[ "0.61569643", "0.592137", "0.59167254", "0.5827359", "0.5803353", "0.5714687", "0.5698373", "0.5636933", "0.5630038", "0.5620432", "0.5606248", "0.5596022", "0.55813235", "0.5567757", "0.55359274", "0.5527023", "0.55233294", "0.5502092", "0.5501497", "0.5488203", "0.5482541",...
0.0
-1
Actuator group. The "_mlx" indicates this is a multiinstance message and a MAVLink parser should use this field to difference between instances
public char group_mlx_GET() { return (char)((char) get_bytes(data, 8, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getActuatorType() \n\t{\n\t\treturn this.actuatorType;\n\t}", "Actuator createActuator();", "public String getGroup ()\n {\n return \"instances\";\n }", "public \n MRayInstGroupAction()\n {\n super(\"MRayInstGroup\", new VersionID(\"2.0.9\"), \"Temerity\",\n\t \"Builds an inst group...
[ "0.5478879", "0.50651485", "0.5050979", "0.5025492", "0.486851", "0.47931933", "0.47876936", "0.4737714", "0.47021818", "0.4636629", "0.46290535", "0.45662412", "0.4552267", "0.45369914", "0.45361954", "0.45153666", "0.45104155", "0.45073724", "0.4471393", "0.44421095", "0.44...
0.0
-1
Actuator controls. Normed to 1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 07): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a passthrough mixer to repurpose them as generic outputs
public float[] controls_GET(float[] dst_ch, int pos) { for(int BYTE = 11, dst_max = pos + 8; pos < dst_max ; pos++, BYTE += 4) dst_ch[pos] = (float)(Float.intBitsToFloat((int) get_bytes(data, BYTE, 4))); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public static final void control(float args_cmd_forward, float args_cmd_turn,\r\n\t\t\tfloat args_gyro, float args_gyro_offset, float args_theta_m_l,\r\n\t\t\tfloat args_theta_m_r, float args_battery) {\r\n\t\tfloat tmp_theta;\r\n\t\tfloat tmp_thet...
[ "0.53762996", "0.52804416", "0.5235046", "0.52206594", "0.5166582", "0.5145648", "0.5138813", "0.5123023", "0.5093662", "0.5066182", "0.5058605", "0.5036184", "0.49880552", "0.4986184", "0.49824432", "0.49794772", "0.49642107", "0.49618527", "0.49436533", "0.4929729", "0.4917...
0.0
-1
Actuator controls. Normed to 1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 07): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a passthrough mixer to repurpose them as generic outputs
public float[] controls_GET() {return controls_GET(new float[8], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public static final void control(float args_cmd_forward, float args_cmd_turn,\r\n\t\t\tfloat args_gyro, float args_gyro_offset, float args_theta_m_l,\r\n\t\t\tfloat args_theta_m_r, float args_battery) {\r\n\t\tfloat tmp_theta;\r\n\t\tfloat tmp_thet...
[ "0.53748107", "0.52800786", "0.52349436", "0.5222727", "0.5166439", "0.5146242", "0.51385534", "0.5122766", "0.5093881", "0.5067204", "0.5059199", "0.5035948", "0.49880928", "0.49873358", "0.49830577", "0.49805817", "0.49636582", "0.49621448", "0.49423048", "0.49311048", "0.4...
0.0
-1
Actuator group. The "_mlx" indicates this is a multiinstance message and a MAVLink parser should use this field to difference between instances
public char group_mlx_GET() { return (char)((char) get_bytes(data, 8, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getActuatorType() \n\t{\n\t\treturn this.actuatorType;\n\t}", "Actuator createActuator();", "public String getGroup ()\n {\n return \"instances\";\n }", "public \n MRayInstGroupAction()\n {\n super(\"MRayInstGroup\", new VersionID(\"2.0.9\"), \"Temerity\",\n\t \"Builds an inst group...
[ "0.5478879", "0.50651485", "0.5050979", "0.5025492", "0.486851", "0.47931933", "0.47876936", "0.4737714", "0.47021818", "0.4636629", "0.46290535", "0.45662412", "0.4552267", "0.45369914", "0.45361954", "0.45153666", "0.45104155", "0.45073724", "0.4471393", "0.44421095", "0.44...
0.0
-1
Actuator controls. Normed to 1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 07): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a passthrough mixer to repurpose them as generic outputs
public float[] controls_GET(float[] dst_ch, int pos) { for(int BYTE = 9, dst_max = pos + 8; pos < dst_max ; pos++, BYTE += 4) dst_ch[pos] = (float)(Float.intBitsToFloat((int) get_bytes(data, BYTE, 4))); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public static final void control(float args_cmd_forward, float args_cmd_turn,\r\n\t\t\tfloat args_gyro, float args_gyro_offset, float args_theta_m_l,\r\n\t\t\tfloat args_theta_m_r, float args_battery) {\r\n\t\tfloat tmp_theta;\r\n\t\tfloat tmp_thet...
[ "0.537549", "0.5279958", "0.5235457", "0.5223428", "0.5167876", "0.5147092", "0.51380557", "0.51231223", "0.509297", "0.5067574", "0.5059619", "0.50364065", "0.49885347", "0.4986058", "0.49829587", "0.49798113", "0.49647772", "0.49629515", "0.4942723", "0.49316105", "0.491762...
0.0
-1
Actuator controls. Normed to 1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. Standard mapping for attitude controls (group 0): (index 07): roll, pitch, yaw, throttle, flaps, spoilers, airbrakes, landing gear. Load a passthrough mixer to repurpose them as generic outputs
public float[] controls_GET() {return controls_GET(new float[8], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public static final void control(float args_cmd_forward, float args_cmd_turn,\r\n\t\t\tfloat args_gyro, float args_gyro_offset, float args_theta_m_l,\r\n\t\t\tfloat args_theta_m_r, float args_battery) {\r\n\t\tfloat tmp_theta;\r\n\t\tfloat tmp_thet...
[ "0.53762996", "0.52804416", "0.5235046", "0.52206594", "0.5166582", "0.5145648", "0.5138813", "0.5123023", "0.5093662", "0.5066182", "0.5058605", "0.5036184", "0.49880552", "0.4986184", "0.49824432", "0.49794772", "0.49642107", "0.49618527", "0.49436533", "0.4929729", "0.4917...
0.0
-1
This altitude measure is initialized on system boot and monotonic (it is never reset, but represents the local altitude change). The only guarantee on this field is that it will never be reset and is consistent within a flight. The recommended value for this field is the uncorrected barometric altitude at boot time. This altitude will also drift and vary between flights
public float altitude_monotonic_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 8, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getAltitude() {\n return altitude_;\n }", "public long getAltitude() {\n return altitude_;\n }", "public double getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return altitude;\n }", "public int getAltitude() {\n return alti...
[ "0.7740878", "0.773794", "0.76618856", "0.76618856", "0.7568623", "0.75686026", "0.7564535", "0.75599086", "0.7424804", "0.7396139", "0.727343", "0.72433853", "0.7219581", "0.71225584", "0.7108029", "0.7101269", "0.70776725", "0.7040644", "0.699909", "0.69889", "0.6932986", ...
0.7100907
16
This altitude measure is strictly above mean sea level and might be nonmonotonic (it might reset on events like GPS lock or when a new QNH value is set). It should be the altitude to which global altitude waypoints are compared to. Note that it is not the GPS altitude, however, most GPS modules already output AMSL by default and not the WGS84 altitude
public float altitude_amsl_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 12, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getAltitude() {\n return altitude_;\n }", "public long getAltitude() {\n return altitude_;\n }", "public double getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return altitude;\n }", "@Override\r\n\tpublic double getAltitude(){\r...
[ "0.75177985", "0.7513635", "0.75101715", "0.75101715", "0.7484772", "0.74670434", "0.73891383", "0.7381815", "0.73317164", "0.7331673", "0.7315917", "0.73043823", "0.72972906", "0.72496605", "0.7233475", "0.71973294", "0.7189581", "0.7172669", "0.7074562", "0.70464116", "0.70...
0.72876614
13
This is the local altitude in the local coordinate frame. It is not the altitude above home, but in reference to the coordinate origin (0, 0, 0). It is uppositive
public float altitude_local_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 16, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getAltitude() {\n\t\tBlockPos groundPos = world.getHeight(getPosition());\n\t\treturn posY - groundPos.getY();\n\t}", "@Override\n public double getAltitude()\n {\n return myPosition.getLocation().subtract(getClosestModelPosition()).getLength();\n }", "public double getAltitude();...
[ "0.7635735", "0.7574883", "0.74839586", "0.74310744", "0.74310744", "0.73886454", "0.73767585", "0.7361489", "0.7325042", "0.731466", "0.72555554", "0.72355247", "0.72353554", "0.7204192", "0.7181412", "0.7131829", "0.7127733", "0.7103461", "0.709362", "0.7017481", "0.6985978...
0.75109315
2
This is the altitude above terrain. It might be fed by a terrain database or an altimeter. Values smaller than 1000 should be interpreted as unknown
public float altitude_terrain_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 24, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getAltitude();", "@Override\r\n\tpublic double getAltitude(){\r\n\t\treturn altitude;\r\n\t}", "long getAltitude();", "int getAltitude();", "public int getAltitude() {\n return altitude;\n }", "public double getAltitude() {\n return altitude;\n }", "public double getAl...
[ "0.79064196", "0.78294307", "0.7784783", "0.77432126", "0.76971865", "0.76782006", "0.76782006", "0.76741934", "0.760927", "0.75847006", "0.7519804", "0.74772495", "0.7422414", "0.7421122", "0.7398714", "0.73813796", "0.7363999", "0.72654456", "0.71386313", "0.71091515", "0.7...
0.8090825
0
This is not the altitude, but the clear space below the system according to the fused clearance estimate. It generally should max out at the maximum range of e.g. the laser altimeter. It is generally a moving target. A negative value indicates no measurement available
public float bottom_clearance_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 28, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getMaxActiveAltitude();", "public float altitude_monotonic_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 8, 4))); }", "double getMinActiveAltitude();", "public double getAltitude();", "public Double getAltitude()\n\t{\n\t\treturn null;\n\t}", "@Override\n public d...
[ "0.7243897", "0.68456674", "0.6799431", "0.6773473", "0.6754456", "0.6666279", "0.66547304", "0.66334224", "0.66181326", "0.6612879", "0.6612175", "0.6562689", "0.6452267", "0.6443688", "0.6429943", "0.6398051", "0.6398051", "0.6371596", "0.6351548", "0.6315526", "0.6221554",...
0.56800765
54
The requested unique resource identifier (URI). It is not necessarily a straight domain name (depends on the URI type enum
public char[] uri_GET(char[] dst_ch, int pos) { for(int BYTE = 2, dst_max = pos + 120; pos < dst_max ; pos++, BYTE += 1) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }", "public URI getId();", "public URI getId();", "@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }", "URI uri();", "String getURI();", "Strin...
[ "0.7206765", "0.7184052", "0.7184052", "0.6944625", "0.67223537", "0.66986436", "0.66986436", "0.66986436", "0.6604114", "0.65152085", "0.65152085", "0.64955276", "0.64357305", "0.63923514", "0.6338623", "0.63160187", "0.6282132", "0.6261225", "0.62584174", "0.6256319", "0.62...
0.0
-1
The requested unique resource identifier (URI). It is not necessarily a straight domain name (depends on the URI type enum
public char[] uri_GET() {return uri_GET(new char[120], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }", "public URI getId();", "public URI getId();", "@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }", "URI uri();", "String getURI();", "Strin...
[ "0.7206765", "0.7184052", "0.7184052", "0.6944625", "0.67223537", "0.66986436", "0.66986436", "0.66986436", "0.6604114", "0.65152085", "0.65152085", "0.64955276", "0.64357305", "0.63923514", "0.6338623", "0.63160187", "0.6282132", "0.6261225", "0.62584174", "0.6256319", "0.62...
0.0
-1
The storage path the autopilot wants the URI to be stored in. Will only be valid if the transfer_type has a storage associated (e.g. MAVLink FTP)
public char[] storage_GET(char[] dst_ch, int pos) { for(int BYTE = 123, dst_max = pos + 120; pos < dst_max ; pos++, BYTE += 1) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStoragePath() {\n return this.storagePath;\n }", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "public Storage(String s){\n this.path=s;\n }", "java.lang.String getArtifactStorage();", "@Nonnull\n public Path getStoragePath(@Nonnull String o...
[ "0.6690633", "0.6415877", "0.6268958", "0.6265363", "0.62105453", "0.60473144", "0.5964253", "0.5943704", "0.5924628", "0.59061056", "0.5863212", "0.5850839", "0.5778677", "0.5718279", "0.57063055", "0.5626936", "0.5625374", "0.55585986", "0.54699135", "0.5452462", "0.5449507...
0.0
-1
The storage path the autopilot wants the URI to be stored in. Will only be valid if the transfer_type has a storage associated (e.g. MAVLink FTP)
public char[] storage_GET() {return storage_GET(new char[120], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStoragePath() {\n return this.storagePath;\n }", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "public Storage(String s){\n this.path=s;\n }", "java.lang.String getArtifactStorage();", "@Nonnull\n public Path getStoragePath(@Nonnull String o...
[ "0.6690317", "0.64161724", "0.62680036", "0.6266872", "0.6209402", "0.60481125", "0.5963964", "0.5943164", "0.5923354", "0.59059924", "0.58632666", "0.5851036", "0.57774407", "0.5718587", "0.57067287", "0.562691", "0.5625891", "0.55583024", "0.5470158", "0.5452228", "0.544998...
0.0
-1
Battery voltage of cells, in millivolts (1 = 1 millivolt). Cells above the valid cell count for this battery should have the UINT16_MAX value
public char[] voltages_GET(char[] dst_ch, int pos) { for(int BYTE = 0, dst_max = pos + 10; pos < dst_max ; pos++, BYTE += 2) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 2)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized float getVoltage(){\n\t\t getData(REG_MMXCOMMAND, buf, 1);\n\t\t // 37 is the constant given by Mindsensors support 5/2011 to return millivolts. KPT\n return (37f*(buf[0]&0xff))*.001f;\n\t}", "public DJIBatteryCell (int voltage)\n {\n _voltage = voltage;\n }", "EDataTyp...
[ "0.63031316", "0.6126596", "0.57538086", "0.5728056", "0.57052124", "0.56733197", "0.5509883", "0.5508797", "0.5494755", "0.5477324", "0.5451301", "0.5380458", "0.53174424", "0.5274013", "0.5273026", "0.5265094", "0.52257335", "0.5186799", "0.5168425", "0.5160493", "0.5144642...
0.0
-1
Battery voltage of cells, in millivolts (1 = 1 millivolt). Cells above the valid cell count for this battery should have the UINT16_MAX value
public char[] voltages_GET() {return voltages_GET(new char[10], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized float getVoltage(){\n\t\t getData(REG_MMXCOMMAND, buf, 1);\n\t\t // 37 is the constant given by Mindsensors support 5/2011 to return millivolts. KPT\n return (37f*(buf[0]&0xff))*.001f;\n\t}", "public DJIBatteryCell (int voltage)\n {\n _voltage = voltage;\n }", "EDataTyp...
[ "0.6302903", "0.61271954", "0.57544065", "0.57274026", "0.57062256", "0.56729347", "0.5509568", "0.55084103", "0.5496467", "0.5477207", "0.5451851", "0.5380178", "0.5317351", "0.527526", "0.5272457", "0.52644265", "0.52254057", "0.5186743", "0.5169538", "0.5160855", "0.514483...
0.48931816
35
Consumed energy, in HectoJoules (intergrated UIdt) (1 = 100 Joule), 1: autopilot does not provide energy consumption estimat
public int energy_consumed_GET() { return (int)((int) get_bytes(data, 29, 4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEnergy() { return energy; }", "@Override\n\tpublic double calcConsumedEnergy() {\n\t\treturn (getBasicEnergyCost() * 4);\n\t}", "int getEnergy();", "public double getEnergy(){\n\t\t return energy;\n\t}", "public int getEnergy()\n {\n return energy;\n }", "public double getEn...
[ "0.68892425", "0.68273497", "0.6796578", "0.6704421", "0.6541853", "0.64850605", "0.64833266", "0.64832574", "0.64743", "0.6459505", "0.6439424", "0.64267856", "0.6387513", "0.6374201", "0.6373379", "0.6334884", "0.6312391", "0.6311655", "0.6233452", "0.61253065", "0.6063974"...
0.6387691
12
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases
public char[] flight_custom_version_GET(char[] dst_ch, int pos) { for(int BYTE = 28, dst_max = pos + 8; pos < dst_max ; pos++, BYTE += 1) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "public String getVersionNum();", "String buildVersion();", "long getVersionNumber();", "public String getVersionNumber ();", "public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}", "java.lang.String getVer...
[ "0.65839946", "0.65483284", "0.6544341", "0.6540092", "0.65084815", "0.6345906", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63095", "0.63055193", "0.6295203", "0.6274915", "0.6274476", "0.6247626", "0.624...
0.0
-1
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases
public char[] flight_custom_version_GET() {return flight_custom_version_GET(new char[8], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "public String getVersionNum();", "String buildVersion();", "long getVersionNumber();", "public String getVersionNumber ();", "public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}", "java.lang.String getVer...
[ "0.65843004", "0.65492314", "0.65433484", "0.6540679", "0.6508978", "0.63466996", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63110065", "0.63063306", "0.6295261", "0.62753105", "0.6274676", "0.62484443", ...
0.0
-1
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases
public char[] middleware_custom_version_GET(char[] dst_ch, int pos) { for(int BYTE = 36, dst_max = pos + 8; pos < dst_max ; pos++, BYTE += 1) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "public String getVersionNum();", "String buildVersion();", "long getVersionNumber();", "public String getVersionNumber ();", "public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}", "java.lang.String getVer...
[ "0.65828073", "0.65480465", "0.65434146", "0.65393984", "0.6507918", "0.63453203", "0.6318086", "0.6318086", "0.6318086", "0.6318086", "0.6318086", "0.6318086", "0.6318086", "0.6318086", "0.6311738", "0.63050646", "0.62953156", "0.62755024", "0.62742156", "0.624728", "0.62452...
0.0
-1
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases
public char[] middleware_custom_version_GET() {return middleware_custom_version_GET(new char[8], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "public String getVersionNum();", "String buildVersion();", "long getVersionNumber();", "public String getVersionNumber ();", "public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}", "java.lang.String getVer...
[ "0.65842193", "0.6548956", "0.65432674", "0.6540311", "0.65087557", "0.63471764", "0.6318336", "0.6318336", "0.6318336", "0.6318336", "0.6318336", "0.6318336", "0.6318336", "0.6318336", "0.63118714", "0.6306943", "0.6294755", "0.62753785", "0.6274027", "0.6249034", "0.6244963...
0.0
-1
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases
public char[] os_custom_version_GET(char[] dst_ch, int pos) { for(int BYTE = 44, dst_max = pos + 8; pos < dst_max ; pos++, BYTE += 1) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "public String getVersionNum();", "String buildVersion();", "long getVersionNumber();", "public String getVersionNumber ();", "public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}", "java.lang.String getVer...
[ "0.65839946", "0.65483284", "0.6544341", "0.6540092", "0.65084815", "0.6345906", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63184196", "0.63095", "0.63055193", "0.6295203", "0.6274915", "0.6274476", "0.6247626", "0.624...
0.0
-1
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases
public char[] os_custom_version_GET() {return os_custom_version_GET(new char[8], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "public String getVersionNum();", "String buildVersion();", "long getVersionNumber();", "public String getVersionNumber ();", "public String versionNumber (){\r\n\t\t\treturn _versionNumber;\r\n\t\t}", "java.lang.String getVer...
[ "0.65843004", "0.65492314", "0.65433484", "0.6540679", "0.6508978", "0.63466996", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63182956", "0.63063306", "0.6295261", "0.62753105", "0.6274676", "0.62484443", "0.62449425", ...
0.63110065
14
UID if provided by hardware (supersedes the uid field. If this is nonzero, use this field, otherwise use uid
public char[] uid2_TRY(Bounds.Inside ph) { if(ph.field_bit != 433 && !try_visit_field(ph, 433)) return null; return uid2_GET(ph, new char[ph.items], 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getUid();", "long getUid();", "java.lang.String getUid();", "java.lang.String getUid();", "int getUid();", "int getUid();", "public int getUID() {\n return 0;\n }", "long getUID();", "@Override\n\tpublic UID getUid() {\n\t\treturn null;\n\t}", "public String getUid() { retu...
[ "0.7271778", "0.7271778", "0.72084343", "0.72084343", "0.7141909", "0.7141909", "0.71162236", "0.7034024", "0.6967127", "0.69548917", "0.6952196", "0.69466317", "0.6905286", "0.68925595", "0.6892522", "0.6885043", "0.6885043", "0.6885043", "0.6885043", "0.6885043", "0.6885043...
0.0
-1
UID if provided by hardware (supersedes the uid field. If this is nonzero, use this field, otherwise use uid
public char[] uid2_GET(Bounds.Inside ph, char[] dst_ch, int pos) { for(int BYTE = ph.BYTE, dst_max = pos + 18; pos < dst_max ; pos++, BYTE += 1) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getUid();", "long getUid();", "java.lang.String getUid();", "java.lang.String getUid();", "int getUid();", "int getUid();", "public int getUID() {\n return 0;\n }", "long getUID();", "@Override\n\tpublic UID getUid() {\n\t\treturn null;\n\t}", "public String getUid() { retu...
[ "0.7272893", "0.7272893", "0.7210062", "0.7210062", "0.71428597", "0.71428597", "0.7116788", "0.7034746", "0.69681716", "0.695608", "0.695305", "0.69475543", "0.6906828", "0.6893825", "0.68933785", "0.68858445", "0.68858445", "0.68858445", "0.68858445", "0.68858445", "0.68858...
0.0
-1
Boolean indicating known position (1) or default unkown position (0), for validation of positioning of the landing targe
public char position_valid_TRY(Bounds.Inside ph) { if(ph.field_bit != 242 && !try_visit_field(ph, 242)) return 0; return (char)((char) get_bytes(data, ph.BYTE, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasStartPosition();", "boolean hasStartPosition();", "public synchronized boolean isInPosition(){\r\n\t\tSystem.out.println(\"wheel: \" + flywheel.isFlywheelAtSpeed() + \r\n\t\t\t\t\" hood: \...
[ "0.76216245", "0.76216245", "0.76216245", "0.76216245", "0.72837365", "0.72837365", "0.68930864", "0.687785", "0.687785", "0.68408656", "0.68346167", "0.6834119", "0.6834119", "0.6834119", "0.67665124", "0.6738379", "0.6682811", "0.6682811", "0.66674405", "0.66674405", "0.666...
0.0
-1
LSB: 1 means message is fragmented, next 2 bits are the fragment ID, the remaining 5 bits are used for the sequence ID. Messages are only to be flushed to the GPS when the entire message has been reconstructed on the autopilot. The fragment ID specifies which order the fragments should be assembled into a buffer, while the sequence ID is used to detect a mismatch between different buffers. The buffer is considered fully reconstructed when either all 4 fragments are present, or all the fragments before the first fragment with a non full payload is received. This management is used to ensure that normal GPS operation doesn't corrupt RTCM data, and to recover from a unreliable transport delivery order
public char flags_GET() { return (char)((char) get_bytes(data, 0, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public boolean hasReceivingMajorFragmentId() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "@java.lang.Override\n public boolean hasReceivingMajorFragmentId() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "int getSendingMinorFragmentId();", "int get...
[ "0.5773177", "0.57724875", "0.5725307", "0.56957126", "0.56934685", "0.56846327", "0.55698806", "0.55331993", "0.5527109", "0.5510454", "0.55094236", "0.550209", "0.54914296", "0.5462376", "0.5433395", "0.54096556", "0.5381566", "0.5336142", "0.5331148", "0.53301674", "0.5267...
0.0
-1
failsafe (each bit represents a failsafe where 0=ok, 1=failsafe active (bit0:RC, bit1:batt, bit2:GPS, bit3:GCS, bit4:fence
public char failsafe_GET() { return (char)((char) get_bytes(data, 35, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }", "public boolean failedQC(){\n\t\treturn testBitwiseFlag(512);\n\t}", "public void fail(boolean hcf);", "@Override\n\tpublic void setFailureMode(boolean arg0) {\n\n\t}", "public void fail() {\r...
[ "0.61358696", "0.6131347", "0.6095004", "0.6001725", "0.5900228", "0.5896574", "0.58512735", "0.5782648", "0.5717641", "0.57051945", "0.57020795", "0.55920535", "0.557519", "0.5566651", "0.5553948", "0.5532843", "0.5501397", "0.5484865", "0.54590356", "0.54539174", "0.5433395...
0.0
-1
World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the groun
public float[] q_GET(float[] dst_ch, int pos) { for(int BYTE = 24, dst_max = pos + 4; pos < dst_max ; pos++, BYTE += 4) dst_ch[pos] = (float)(Float.intBitsToFloat((int) get_bytes(data, BYTE, 4))); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double normaliseHeading(double ang) {\r\n\t\tif (ang > 2 * PI)\r\n\t\t\tang -= 2 * PI;\r\n\t\tif (ang < 0)\r\n\t\t\tang += 2 * PI;\r\n\t\treturn ang;\r\n\t}", "public void thrust() {\n // Offset the angle since we drew the ship vertically\n float angle = heading - PI/2;\n // Polar to cartesian for force...
[ "0.57698447", "0.56213325", "0.5617616", "0.55132365", "0.5405637", "0.5404311", "0.5380529", "0.5365568", "0.53360254", "0.5303414", "0.5293989", "0.52450144", "0.5201862", "0.5191557", "0.5186233", "0.51834184", "0.5181372", "0.5162687", "0.5162687", "0.5162687", "0.5161023...
0.0
-1
World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the groun
public float[] q_GET() {return q_GET(new float[4], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double normaliseHeading(double ang) {\r\n\t\tif (ang > 2 * PI)\r\n\t\t\tang -= 2 * PI;\r\n\t\tif (ang < 0)\r\n\t\t\tang += 2 * PI;\r\n\t\treturn ang;\r\n\t}", "public void thrust() {\n // Offset the angle since we drew the ship vertically\n float angle = heading - PI/2;\n // Polar to cartesian for force...
[ "0.5770589", "0.5621463", "0.5617567", "0.55139613", "0.5408171", "0.54068977", "0.53829896", "0.53650004", "0.53346527", "0.53034645", "0.52939856", "0.524466", "0.5201478", "0.5192688", "0.51844436", "0.5182234", "0.51808333", "0.5162123", "0.5162123", "0.5162123", "0.51604...
0.0
-1
Local X position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grasslanding fixed wing aircraft should set it the same way as multicopters. Runwaylanding fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone
public float approach_x_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 40, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n ...
[ "0.60666865", "0.59156346", "0.59099984", "0.57457346", "0.5718395", "0.5685984", "0.5650379", "0.5611849", "0.5607366", "0.55892664", "0.55731994", "0.556098", "0.55467755", "0.5529224", "0.54816264", "0.54816264", "0.54816264", "0.5473155", "0.54644614", "0.5452042", "0.545...
0.0
-1
Local Y position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grasslanding fixed wing aircraft should set it the same way as multicopters. Runwaylanding fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone
public float approach_y_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 44, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getEndYCoordinate(){\n\tint y = getThymioEndField_Y(); \n\t\t\n\t\tif(y == 0){\n\t\t\n \t}else{\n \t y *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}", "public double getEndY() {\n\treturn v2.getY();\n }", "double getEndY();", "double motor_y () { return strut.span + DRIVING_FORCE_H...
[ "0.63942856", "0.62126553", "0.6207808", "0.616704", "0.60854363", "0.607687", "0.6057704", "0.602049", "0.6000594", "0.5976847", "0.5949418", "0.5902687", "0.5890103", "0.58695936", "0.5865846", "0.5854714", "0.5848071", "0.5842397", "0.58409435", "0.5838876", "0.5835973", ...
0.0
-1
Local Z position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grasslanding fixed wing aircraft should set it the same way as multicopters. Runwaylanding fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone
public float approach_z_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 48, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "public static Direction shouldBackOff () {\n RobotInfo[] nearby = rc.senseNearbyRobots();\n boolean nearbyEc = false;\n for (RobotInfo ri: nearby) {\n if (ri.team != mTe...
[ "0.58626264", "0.5702921", "0.56470865", "0.564695", "0.55959624", "0.55812585", "0.55712855", "0.5568784", "0.5556479", "0.5509254", "0.54544646", "0.5419293", "0.54115057", "0.5399983", "0.5376023", "0.53628904", "0.5333149", "0.53239757", "0.5318674", "0.52786964", "0.5239...
0.0
-1
World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the groun
public float[] q_GET(float[] dst_ch, int pos) { for(int BYTE = 25, dst_max = pos + 4; pos < dst_max ; pos++, BYTE += 4) dst_ch[pos] = (float)(Float.intBitsToFloat((int) get_bytes(data, BYTE, 4))); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double normaliseHeading(double ang) {\r\n\t\tif (ang > 2 * PI)\r\n\t\t\tang -= 2 * PI;\r\n\t\tif (ang < 0)\r\n\t\t\tang += 2 * PI;\r\n\t\treturn ang;\r\n\t}", "public void thrust() {\n // Offset the angle since we drew the ship vertically\n float angle = heading - PI/2;\n // Polar to cartesian for force...
[ "0.5770589", "0.5621463", "0.5617567", "0.55139613", "0.5408171", "0.54068977", "0.53829896", "0.53650004", "0.53346527", "0.53034645", "0.52939856", "0.524466", "0.5201478", "0.5192688", "0.51844436", "0.5182234", "0.51808333", "0.5162123", "0.5162123", "0.5162123", "0.51604...
0.0
-1
World to surface normal and heading transformation of the takeoff position. Used to indicate the heading and slope of the groun
public float[] q_GET() {return q_GET(new float[4], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double normaliseHeading(double ang) {\r\n\t\tif (ang > 2 * PI)\r\n\t\t\tang -= 2 * PI;\r\n\t\tif (ang < 0)\r\n\t\t\tang += 2 * PI;\r\n\t\treturn ang;\r\n\t}", "public void thrust() {\n // Offset the angle since we drew the ship vertically\n float angle = heading - PI/2;\n // Polar to cartesian for force...
[ "0.5773284", "0.5621386", "0.5619321", "0.5514799", "0.5409008", "0.5408418", "0.53838944", "0.53641766", "0.5334532", "0.53033733", "0.5293803", "0.5244882", "0.5201711", "0.5193141", "0.51842993", "0.51825154", "0.5182026", "0.51641876", "0.51641876", "0.51641876", "0.51591...
0.0
-1
Local X position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grasslanding fixed wing aircraft should set it the same way as multicopters. Runwaylanding fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone
public float approach_x_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 41, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n ...
[ "0.606652", "0.5916781", "0.5912308", "0.57474333", "0.57174027", "0.5687897", "0.56514037", "0.5609047", "0.5607553", "0.55910087", "0.55754566", "0.5562868", "0.55492467", "0.5531025", "0.54843575", "0.54843575", "0.54843575", "0.54757863", "0.5466209", "0.5454842", "0.5451...
0.0
-1
Local Y position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grasslanding fixed wing aircraft should set it the same way as multicopters. Runwaylanding fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone
public float approach_y_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 45, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getEndYCoordinate(){\n\tint y = getThymioEndField_Y(); \n\t\t\n\t\tif(y == 0){\n\t\t\n \t}else{\n \t y *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}", "public double getEndY() {\n\treturn v2.getY();\n }", "double getEndY();", "double motor_y () { return strut.span + DRIVING_FORCE_H...
[ "0.63962126", "0.6215011", "0.6209947", "0.6168515", "0.60877585", "0.6079498", "0.60588807", "0.60238004", "0.6003227", "0.5979153", "0.5950199", "0.59044534", "0.5892078", "0.5872057", "0.5867404", "0.5857", "0.58503413", "0.5844721", "0.5843774", "0.5840966", "0.5838333", ...
0.0
-1
Local Z position of the end of the approach vector. Multicopters should set this position based on their takeoff path. Grasslanding fixed wing aircraft should set it the same way as multicopters. Runwaylanding fixed wing aircraft should set it to the opposite direction of the takeoff, assuming the takeoff happened from the threshold / touchdown zone
public float approach_z_GET() { return (float)(Float.intBitsToFloat((int) get_bytes(data, 49, 4))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "public static Direction shouldBackOff () {\n RobotInfo[] nearby = rc.senseNearbyRobots();\n boolean nearbyEc = false;\n for (RobotInfo ri: nearby) {\n if (ri.team != mTe...
[ "0.5863548", "0.57036865", "0.564743", "0.5647161", "0.55956185", "0.5582581", "0.55720216", "0.5570316", "0.5557443", "0.55100393", "0.5455612", "0.54202366", "0.54117465", "0.54005265", "0.53743714", "0.5363178", "0.5334673", "0.5324083", "0.5318364", "0.5279085", "0.523929...
0.0
-1
A code that identifies the software component that understands this message (analogous to usb device classes or mime type strings). If this code is less than 32768, it is considered a 'registered' protocol extension and the corresponding entry should be added to https:github.com/mavlink/mavlink/extensionmessageids.xml. Software creators can register blocks of message IDs as needed (useful for GCS specific metadata, etc...). Message_types greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase
public char message_type_GET() { return (char)((char) get_bytes(data, 0, 2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProtoStreamTypeIds {\n\n // 1 byte Ids 0..127 -> Reserved for critical messages used a lot\n int WRAPPED_MESSAGE = WrappedMessage.PROTOBUF_TYPE_ID; // Id 0 is reserved for ProtoStream WrappedMessage class\n int WRAPPED_BYTE_ARRAY = 1;\n int MARSHALLABLE_USER_OBJECT = 2;\n int BYTE_STRING...
[ "0.6257186", "0.6253069", "0.6223001", "0.61935824", "0.5932174", "0.5910142", "0.5899528", "0.58904624", "0.58333355", "0.58333355", "0.5758619", "0.5690876", "0.56895345", "0.56649804", "0.5631567", "0.5616657", "0.5605688", "0.55940104", "0.55556643", "0.55484694", "0.5517...
0.0
-1
Variable length payload. The length is defined by the remaining message length when subtracting the header and other fields. The entire content of this block is opaque unless you understand any the encoding message_type. The particular encoding used can be extension specific and might not always be documented as part of the mavlink specification
public char[] payload_GET(char[] dst_ch, int pos) { for(int BYTE = 5, dst_max = pos + 249; pos < dst_max ; pos++, BYTE += 1) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long payloadLength();", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "long getFullMessageLength();", "com.google.protobuf.ByteString getPayload();", "com.google.protobuf.ByteString getPayload();", "public OctopusCollectedMsg(int data_length) {\n super(data_length)...
[ "0.6936861", "0.6409586", "0.62630135", "0.619822", "0.619822", "0.59292877", "0.58982885", "0.58536994", "0.57974666", "0.5780638", "0.5768997", "0.57595253", "0.57359606", "0.5729979", "0.5687705", "0.56859183", "0.5681392", "0.5674586", "0.5672973", "0.55968595", "0.559607...
0.0
-1
Variable length payload. The length is defined by the remaining message length when subtracting the header and other fields. The entire content of this block is opaque unless you understand any the encoding message_type. The particular encoding used can be extension specific and might not always be documented as part of the mavlink specification
public char[] payload_GET() {return payload_GET(new char[249], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long payloadLength();", "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "long getFullMessageLength();", "com.google.protobuf.ByteString getPayload();", "com.google.protobuf.ByteString getPayload();", "public OctopusCollectedMsg(int data_length) {\n super(data_length)...
[ "0.69342726", "0.6406807", "0.6260301", "0.61987704", "0.61987704", "0.5928629", "0.5899564", "0.5851016", "0.5797041", "0.5778614", "0.5769778", "0.576035", "0.5734602", "0.5726591", "0.5687117", "0.5685668", "0.56824434", "0.567417", "0.5673372", "0.559883", "0.5597761", ...
0.5166796
56
Current status of image capturing (0: idle, 1: capture in progress, 2: interval set but idle, 3: interval set and capture in progress
public char image_status_GET() { return (char)((char) get_bytes(data, 8, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean capture() {\n if (mCameraState == SNAPSHOT_IN_PROGRESS || mCameraDevice == null) {\n return false;\n }\n setCameraState(SNAPSHOT_IN_PROGRESS);\n\n return true;\n }", "public boolean captureImage(int[][] image_pos) {\r\n\t\tbuttonListener.dis...
[ "0.6348436", "0.62454826", "0.5971271", "0.59218353", "0.58577085", "0.58509016", "0.5820825", "0.57766664", "0.57193655", "0.56995064", "0.5652867", "0.56406343", "0.5579406", "0.55674213", "0.5547164", "0.5478688", "0.545934", "0.54354817", "0.54316294", "0.5417875", "0.540...
0.52256805
42
offset into data where first message starts. This can be used for recovery, when a previous message got lost (set to 255 if no start exists)
public char first_message_offset_GET() { return (char)((char) get_bytes(data, 5, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getStartOffset() {\n\t\treturn 0;\n\t}", "public int getStart() {\r\n\t\treturn this.offset;\r\n\t}", "public abstract long getStartOffset();", "public int getStartOffset() {\n return startOffset;\n }", "public Integer getBeginOffset() {\n return this.beginOffset;\n }"...
[ "0.69916195", "0.67061925", "0.65773225", "0.629797", "0.629202", "0.6281204", "0.6121886", "0.60669833", "0.60532176", "0.60445476", "0.60401857", "0.603596", "0.6020651", "0.6020651", "0.6020651", "0.59697646", "0.5937542", "0.5917686", "0.5901215", "0.5897928", "0.58969545...
0.74032164
0
offset into data where first message starts. This can be used for recovery, when a previous message got lost (set to 255 if no start exists)
public char first_message_offset_GET() { return (char)((char) get_bytes(data, 5, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getStartOffset() {\n\t\treturn 0;\n\t}", "public int getStart() {\r\n\t\treturn this.offset;\r\n\t}", "public abstract long getStartOffset();", "public int getStartOffset() {\n return startOffset;\n }", "public Integer getBeginOffset() {\n return this.beginOffset;\n }"...
[ "0.6991395", "0.67062813", "0.65769637", "0.62980443", "0.62918454", "0.6281122", "0.612166", "0.6066177", "0.60525167", "0.6044551", "0.6040349", "0.6036028", "0.602008", "0.602008", "0.602008", "0.5969773", "0.5937913", "0.5917176", "0.59008235", "0.58970565", "0.58965385",...
0.7402803
1
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public String param_id_TRY(Bounds.Inside ph) { if(ph.field_bit != 32 && !try_visit_field(ph, 32) || !try_visit_item(ph, 0)) return null; return new String(param_id_GET(ph, new char[ph.items], 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "public void setId(byte id){this.id = id;}", "@java.lang.Overrid...
[ "0.66063726", "0.60995215", "0.58704525", "0.58704525", "0.58315414", "0.57156205", "0.57141083", "0.5660854", "0.56129575", "0.56129575", "0.5598526", "0.55726427", "0.5568601", "0.55565333", "0.55099267", "0.5489945", "0.5489945", "0.5489945", "0.5489945", "0.5478347", "0.5...
0.5322156
34
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public char[] param_id_GET(Bounds.Inside ph, char[] dst_ch, int pos) { for(int BYTE = ph.BYTE, dst_max = pos + ph.items; pos < dst_max ; pos++, BYTE += 2) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 2)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "@java.lang.Override\n public com.google.protobuf.ByteString ...
[ "0.66087943", "0.6101949", "0.5869524", "0.5869524", "0.5832392", "0.5716837", "0.57162106", "0.56612045", "0.5612395", "0.5612395", "0.5601446", "0.5572344", "0.5569866", "0.5556184", "0.5512404", "0.54905945", "0.54905945", "0.54905945", "0.54905945", "0.5478948", "0.545331...
0.0
-1
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public String param_id_TRY(Bounds.Inside ph) { if(ph.field_bit != 38 && !try_visit_field(ph, 38) || !try_visit_item(ph, 0)) return null; return new String(param_id_GET(ph, new char[ph.items], 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "public void setId(byte id){this.id = id;}", "@java.lang.Overrid...
[ "0.66074663", "0.6099188", "0.58681464", "0.58681464", "0.58302784", "0.57163054", "0.57154876", "0.5660012", "0.56088763", "0.56088763", "0.5599869", "0.557037", "0.55663544", "0.55542046", "0.55105937", "0.5488503", "0.5488503", "0.5488503", "0.5488503", "0.54774165", "0.54...
0.49959588
92
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public char[] param_id_GET(Bounds.Inside ph, char[] dst_ch, int pos) { for(int BYTE = ph.BYTE, dst_max = pos + ph.items; pos < dst_max ; pos++, BYTE += 2) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 2)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "@java.lang.Override\n public com.google.protobuf.ByteString ...
[ "0.6607823", "0.6100921", "0.58689153", "0.58689153", "0.5829499", "0.57155067", "0.57154334", "0.5659714", "0.5610951", "0.5610951", "0.559989", "0.55711514", "0.5567882", "0.5554903", "0.5511174", "0.5488711", "0.5488711", "0.5488711", "0.5488711", "0.54773575", "0.5451405"...
0.0
-1
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public String param_id_TRY(Bounds.Inside ph) { if(ph.field_bit != 22 && !try_visit_field(ph, 22) || !try_visit_item(ph, 0)) return null; return new String(param_id_GET(ph, new char[ph.items], 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "public void setId(byte id){this.id = id;}", "@java.lang.Overrid...
[ "0.66063726", "0.60995215", "0.58704525", "0.58704525", "0.58315414", "0.57156205", "0.57141083", "0.5660854", "0.56129575", "0.56129575", "0.5598526", "0.55726427", "0.5568601", "0.55565333", "0.55099267", "0.5489945", "0.5489945", "0.5489945", "0.5489945", "0.5478347", "0.5...
0.50864017
70
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public char[] param_id_GET(Bounds.Inside ph, char[] dst_ch, int pos) { for(int BYTE = ph.BYTE, dst_max = pos + ph.items; pos < dst_max ; pos++, BYTE += 2) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 2)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "@java.lang.Override\n public com.google.protobuf.ByteString ...
[ "0.66087943", "0.6101949", "0.5869524", "0.5869524", "0.5832392", "0.5716837", "0.57162106", "0.56612045", "0.5612395", "0.5612395", "0.5601446", "0.5572344", "0.5569866", "0.5556184", "0.5512404", "0.54905945", "0.54905945", "0.54905945", "0.54905945", "0.5478948", "0.545331...
0.0
-1
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public String param_id_TRY(Bounds.Inside ph) { if(ph.field_bit != 8 && !try_visit_field(ph, 8) || !try_visit_item(ph, 0)) return null; return new String(param_id_GET(ph, new char[ph.items], 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "public void setId(byte id){this.id = id;}", "@java.lang.Overrid...
[ "0.66074663", "0.6099188", "0.58681464", "0.58681464", "0.58302784", "0.57163054", "0.57154876", "0.5660012", "0.56088763", "0.56088763", "0.5599869", "0.557037", "0.55663544", "0.55542046", "0.55105937", "0.5488503", "0.5488503", "0.5488503", "0.5488503", "0.54774165", "0.54...
0.51607627
61
Parameter id, terminated by NULL if the length is less than 16 humanreadable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars applications have to provide 16+1 bytes storage if the ID is stored as strin
public char[] param_id_GET(Bounds.Inside ph, char[] dst_ch, int pos) { for(int BYTE = ph.BYTE, dst_max = pos + ph.items; pos < dst_max ; pos++, BYTE += 2) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 2)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getParameterIdBytes();", "java.lang.String getParameterId();", "com.google.protobuf.ByteString\n getStringIdBytes();", "com.google.protobuf.ByteString\n getStringIdBytes();", "byte[] getId();", "@java.lang.Override\n public com.google.protobuf.ByteString ...
[ "0.6607823", "0.6100921", "0.58689153", "0.58689153", "0.5829499", "0.57155067", "0.57154334", "0.5659714", "0.5610951", "0.5610951", "0.559989", "0.55711514", "0.5567882", "0.5554903", "0.5511174", "0.5488711", "0.5488711", "0.5488711", "0.5488711", "0.54773575", "0.5451405"...
0.0
-1
Distance of obstacles in front of the sensor starting on the left side. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstace is present. A value of UINT16_MAX for unknown/not used. In a array element, each unit corresponds to 1cm
public char[] distances_GET(char[] dst_ch, int pos) { for(int BYTE = 0, dst_max = pos + 72; pos < dst_max ; pos++, BYTE += 2) dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 2)); return dst_ch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMaxDistance()\n\t{\n\t // Make sure it went some distance\n\t\tif(xPosList.size() > 0)\n\t\t{\n\t\t\treturn this.xPosList.get(xPosList.size() - 1);\n\t\t}\n\n\t\treturn 0;\n\t}", "public double getMaxSourceDistance();", "public int getMinDistance(){\n return totalDistance;\n }", "...
[ "0.57962805", "0.5775808", "0.55349505", "0.55276996", "0.55017084", "0.54819196", "0.5426678", "0.5407671", "0.5403845", "0.53910714", "0.5344122", "0.53438723", "0.53128093", "0.52767134", "0.5275394", "0.5229932", "0.51843387", "0.51570415", "0.5129175", "0.50881", "0.5080...
0.0
-1
Distance of obstacles in front of the sensor starting on the left side. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstace is present. A value of UINT16_MAX for unknown/not used. In a array element, each unit corresponds to 1cm
public char[] distances_GET() {return distances_GET(new char[72], 0);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMaxDistance()\n\t{\n\t // Make sure it went some distance\n\t\tif(xPosList.size() > 0)\n\t\t{\n\t\t\treturn this.xPosList.get(xPosList.size() - 1);\n\t\t}\n\n\t\treturn 0;\n\t}", "public double getMaxSourceDistance();", "public int getMinDistance(){\n return totalDistance;\n }", "...
[ "0.5792649", "0.5773406", "0.5532523", "0.55209714", "0.5503283", "0.5475485", "0.54248124", "0.54012203", "0.5397537", "0.5388477", "0.5339694", "0.53381544", "0.5309676", "0.52767295", "0.52698565", "0.522873", "0.5180768", "0.51551014", "0.5122993", "0.50886726", "0.507345...
0.0
-1
one pack send/receive buffer
void send(Pack pack) { testing_pack = pack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }", "public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = 1;\n this._sendData[1] = (byte) (this.iOIndex & 15);\n }", "public void doPack() {\n if (this._send...
[ "0.7410597", "0.7131593", "0.6994364", "0.66164434", "0.6480091", "0.6058957", "0.59868664", "0.5907261", "0.5881545", "0.5839203", "0.58309716", "0.58250934", "0.57985264", "0.578062", "0.5770907", "0.5770266", "0.5770211", "0.5756526", "0.57480454", "0.5726303", "0.5725407"...
0.6085986
5
Workhorse constructor. The internal table size is tableSize if tableSize is prime or the next prime number that is greater than tableSize if tableSize is not prime.
public MyHashTable( int tableSize ) { this.size = 0; this.tableSize = nextPrime(tableSize); table = new Object[this.tableSize]; for ( int i =0; i< this.tableSize; i++) { this.table[i] = new LinkedArrays<T>(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashTableChained() {\n size = 0;\n buckets = new SList[107];\n largePrime = findPrime(10000);\n for (int i = 0; i < 107; i++) {\n buckets[i] = new SList();\n }\n }", "public HashTableChained() {\r\n num_buckets = 101; //prime number close to 100\...
[ "0.71543175", "0.67899704", "0.66328317", "0.64319825", "0.640849", "0.6272514", "0.62701684", "0.6256939", "0.62140304", "0.6084977", "0.60365045", "0.60130054", "0.5973151", "0.59596264", "0.5959625", "0.59075993", "0.5866376", "0.5865483", "0.5854541", "0.5851933", "0.5846...
0.6573113
3
Convenience constructor. DEFAULTTABLESIZE is 101
public MyHashTable( ) { this(DEFAULTTABLESIZE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Table(int size) {\n\t\tsuper(size);\n\t}", "public HashTable( )\n\t{\n\t\tthis ( DEFAULT_TABLE_SIZE );\n\t}", "public HashTable() {\n\t\tthis(DEFAULT_TABLE_SIZE);\n\t}", "public MyHashTable( )\n {\n this( DEFAULT_TABLE_SIZE );\n }", "public HashTable(int tableSize){\n this.tableSiz...
[ "0.75970274", "0.7489804", "0.740699", "0.74029404", "0.7209452", "0.7074267", "0.7054582", "0.70262766", "0.69105065", "0.68961126", "0.6742663", "0.66939974", "0.6683512", "0.66532886", "0.660861", "0.65476155", "0.6540967", "0.6529013", "0.65147054", "0.6470291", "0.645346...
0.7549056
1
Make the hash table logically empty. Target Complexity: O(n)
@SuppressWarnings("unchecked") public void clear( ) { for (int i =0; i< this.tableSize; i++) { ((LinkedArrays<T>) table[i]).clear(); } this.size = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeEmpty() { \r\n for (int i = 0; i < hash_table.length; i++) {\r\n if (hash_table[i] != null) {\r\n hash_table[i] = null;\r\n }\r\n }\r\n size = 0;\r\n }", "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modifie...
[ "0.88105667", "0.7930842", "0.77420974", "0.756591", "0.736059", "0.71833944", "0.7138476", "0.70830846", "0.7003509", "0.7000075", "0.69709194", "0.69476104", "0.6921989", "0.6908022", "0.6852228", "0.6847487", "0.68461704", "0.6841597", "0.68328", "0.67996657", "0.67964756"...
0.6323623
51
Insert x into the hash table. If x is already present, then do nothing. Throws IllegalArgumentException if x is null.
@SuppressWarnings("unchecked") public void insert(T x) { if (x == null) throw new IllegalArgumentException(); if (!this.contains(x)) { int index = myhash(x); ((LinkedArrays<T>) table[index]).add(x); this.size++; if (this.size > this.tableSize/2) rehash(); } //System.out.println( this.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void insert(Item x) {\n int i = hash(x.sum);\n while (st[i] != null) {\n i++;\n if (i >= st.length) i -= st.length;\n }\n st[i] = x;\n }", "public boolean insert( AnyType x )\n { \n int currentPos = findPos( x );\n \n if( a...
[ "0.7815254", "0.7741942", "0.73540896", "0.726329", "0.6968756", "0.68857193", "0.6697846", "0.663457", "0.66305065", "0.65870047", "0.6582694", "0.6501581", "0.6387375", "0.628907", "0.6271032", "0.61709195", "0.6165154", "0.61467844", "0.6108887", "0.6094595", "0.6064537", ...
0.8134443
0
Remove x from the hash table. Throws IllegalArgumentException if x is null.
@SuppressWarnings("unchecked") public void remove( T x ) { if (x == null) throw new IllegalArgumentException(); for (int i =0; i< this.tableSize; i++) { LinkedArrays<T> L = (LinkedArrays<T>) table[i]; boolean b = L.contains(x); if (b) { L.remove(x);this.size--; return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove( Object x )\n {\n LinkedListItr p = findPrevious( x );\n\n if( p.current.next != null )\n p.current.next = p.current.next.next; // Bypass deleted node\n }", "public void binomialHeapDelete(Node x) {\n\t\tthis.binomialHeapDecreaseKey(x, Integer.MIN_VALUE);\n\t\tthis.binomialHeapEx...
[ "0.66970843", "0.66802686", "0.6658451", "0.6616476", "0.66097516", "0.6605606", "0.64291626", "0.63859993", "0.6361614", "0.634608", "0.6321811", "0.6195423", "0.6175079", "0.6067389", "0.6041469", "0.60387087", "0.5970338", "0.59546435", "0.59476113", "0.5942518", "0.594213...
0.772287
0
Return true if x is in the hash table Throws IllegalArgumentException if x is null.
@SuppressWarnings("unchecked") public boolean contains(T x ) { if (x == null) throw new IllegalArgumentException(); for (int i =0; i< this.tableSize; i++) { LinkedArrays<T> L = (LinkedArrays<T>) table[i]; boolean b = L.contains(x); if(b) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(Object x)\n {\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n while (current != null)\n {\n if (current.data.equals(x))\n {\n return true;\n ...
[ "0.74241847", "0.73795325", "0.6898365", "0.6829234", "0.66638947", "0.65329576", "0.6523965", "0.64579093", "0.64325905", "0.6419433", "0.6409965", "0.63981324", "0.63860935", "0.6339932", "0.6335333", "0.6335193", "0.63347274", "0.63210684", "0.63150555", "0.62729466", "0.6...
0.7470291
0
Return the first element in the hashedto LinkedArrays that equals x, or null if there is no such element. Throws IllegalArgumentException if x is null.
@SuppressWarnings("unchecked") public T getMatch(T x) { if (x == null) throw new IllegalArgumentException(); T result = null; for (int i =0; i< this.tableSize; i++) { LinkedArrays<T> L = (LinkedArrays<T>) table[i]; T y = L.getMatch(x); if(y != null) return y; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Optional<Identification> getIdentificationFor(X x) {\n Identification identification = map.get(x);\n if (identification == null || identification.equals(placeholder)) {\n return Optional.empty();\n } else {\n return Optional.of(identification);\n }\n }", ...
[ "0.583991", "0.5833324", "0.5759088", "0.5712375", "0.5671626", "0.56633013", "0.55935216", "0.5538128", "0.55377084", "0.55032444", "0.54846597", "0.5474107", "0.5452759", "0.54135305", "0.5410214", "0.5367302", "0.53652775", "0.52581483", "0.52574694", "0.5243449", "0.51813...
0.72185624
0
Returns the number of elements Target Complexity: O(1)
public int size() { return this.size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int sizeOfSpeedsArray();", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "public int size() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] != null) ...
[ "0.7010498", "0.68927056", "0.6845314", "0.68225205", "0.682117", "0.6771313", "0.6711685", "0.6676262", "0.666669", "0.66595966", "0.6649575", "0.65650934", "0.65475744", "0.65330046", "0.6517134", "0.6516902", "0.6491919", "0.6482807", "0.64646614", "0.64444625", "0.6443102...
0.0
-1
Returns true if there are no elements. Target Complexity: O(1)
public boolean isEmpty( ) { if (this.size == 0) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\n\t\treturn elements == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn numElements == 0; // Dummy return\n\t}", "public boolean isEmpty() {\n return elements == 0;\n }", "public boolean isEmpty()\n {\n return elements.isEmpty();\n }", "public boolean isE...
[ "0.8264033", "0.82215846", "0.8218648", "0.8146526", "0.8144615", "0.813087", "0.8110568", "0.8076228", "0.80681133", "0.80592734", "0.80396545", "0.8032548", "0.8031406", "0.79894155", "0.7988376", "0.7984954", "0.7984954", "0.7984954", "0.79821754", "0.79454815", "0.7942722...
0.0
-1
Returns a Set containing all of the T elements in the table. (Set is an interface implemented by classes HashSet and TreeSet.)
public Set<T> toSet() { Set<T> s = new HashSet<T>(); // System.out.println("in toSet method"); // System.out.println("thisTable.tostring " + this.toString()); Iterator<T> thisTableIter = this.iterator(); while (thisTableIter.hasNext()) { T e = thisTableIter.next(); // System.out.println(e + " "); s.add(e); } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Collection<V> values() {\n\t\tArrayList<V> valores = new ArrayList<V>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).valueSet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.nex...
[ "0.66880214", "0.63480544", "0.6310411", "0.6230815", "0.6209849", "0.61792374", "0.61412585", "0.61209774", "0.6112701", "0.6058534", "0.59545934", "0.5941696", "0.5853036", "0.5836781", "0.5832562", "0.5831661", "0.58049065", "0.580327", "0.57953113", "0.57750237", "0.57657...
0.75398993
0
Returns a pretty representation of the hash table. Uses toString() of LinkedArrays. Example: For a table of size 3 Table: 0: | two | 1: | one, four | 2:
@SuppressWarnings("unchecked") public String toString() { String result ="Table:\n"; for (int i =0; i< this.tableSize; i++) { LinkedArrays<T> L = (LinkedArrays<T>) table[i]; result+= i+": "; result+= L.toString() ; if(i<this.tableSize-1) { result +="\n"; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\tString HashTable=\"\";\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tHashTable=HashTable+k.value+\" \"+k.key+\"\\n\";\n\t }\n\t}\n\treturn HashTable;\n }", "public String toString() {\n StringBuilder sb = new StringBuilder();\n for (...
[ "0.77964413", "0.7685005", "0.75113046", "0.7025703", "0.6831398", "0.6752225", "0.6693293", "0.668127", "0.6615981", "0.6609855", "0.65977275", "0.6580725", "0.6563089", "0.6545497", "0.65107006", "0.6502254", "0.65007055", "0.6497008", "0.64735025", "0.647189", "0.6465922",...
0.7985918
0
Increases the size of the table by finding a prime number (nextPrime) at least as large as twice the current table size. Rehashes the elements of the hash table when size is greater than tableSize/2.
protected void rehash( ) { int newSize = nextPrime(this.tableSize*2); MyHashTable<T> newHashTable = new MyHashTable<T>(newSize); Iterator<T> thisTableIter = this.iterator(); while(thisTableIter.hasNext()) { T e = thisTableIter.next(); newHashTable.insert(e); } this.clear(); this.size = newHashTable.size; this.tableSize = newHashTable.tableSize; this.table = newHashTable.table; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enlargeHashTable()\n {\n TableEntry<K,V>[] oldTable = hashTable;\n int oldSize = hashTable.length;\n int newSize = getNextPrime(oldSize + oldSize);\n\n // The case is safe because the new array contains null entries\n @SuppressWarnings(\"unchecked\")\n Tabl...
[ "0.78419375", "0.7581204", "0.7439656", "0.7385941", "0.7257693", "0.7164831", "0.69940406", "0.69591665", "0.6957", "0.68876106", "0.6885811", "0.6848669", "0.68160766", "0.67617375", "0.67338294", "0.67321324", "0.6676224", "0.6670583", "0.6666532", "0.66324574", "0.6550634...
0.774341
1
Internal method for computing the hash value from the hashCode of x.
protected int myhash(T x) { int hashVal = x.hashCode( ); hashVal %= tableSize; if( hashVal < 0 ) hashVal += tableSize; return hashVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "public int hash1(int x)\n {\n return ((a1*(x)+b1)%n);\n...
[ "0.76312405", "0.7512547", "0.7336999", "0.72489685", "0.7195814", "0.7042257", "0.6896846", "0.67247546", "0.6581668", "0.65343153", "0.6445667", "0.63736755", "0.63736755", "0.6370311", "0.62943953", "0.6293585", "0.6289538", "0.6261148", "0.62437797", "0.6235985", "0.62034...
0.79320616
0
Internal method to find a prime number at least as large as n.
protected static int nextPrime(int n ) { if( n % 2 == 0 ) n++; for( ; !isPrime( n ); n += 2 ) ; return n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int findPrime(int n) {\n int bigN = n + 100;//give myself interval of 100 to find a prime.\n \n //Sieve all non-primes in [2, n + 100]\n boolean[] prime = new boolean[bigN + 1]; \n for (int i = 2; i <= bigN; i++) {\n prime[i] = true;\n }\n for (in...
[ "0.7655653", "0.73809946", "0.7370208", "0.72966146", "0.71577066", "0.7126932", "0.69772494", "0.69687355", "0.6953459", "0.6909505", "0.6875782", "0.6873301", "0.6864554", "0.6844001", "0.68319637", "0.682276", "0.68101645", "0.6802424", "0.68016756", "0.68015337", "0.67997...
0.6880312
10
Internal method to test if a number is prime. Not an efficient algorithm.
protected static boolean isPrime(int n ) { if( n == 2 || n == 3 ) return true; if( n == 1 || n % 2 == 0 ) return false; for( int i = 3; i * i <= n; i += 2 ) if( n % i == 0 ) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPrime()\r\n\t{\r\n\t\tif (currentNumber == 2 || currentNumber == 0)\r\n\t {\r\n\t \tprocessLastDigit();\r\n\t\t\treturn true;\r\n\t }\r\n\t\telse if (currentNumber % 2 == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n \r\n\t for (int factor = 3; factor <= Math.sqrt(currentNumber...
[ "0.78644556", "0.75645167", "0.75113523", "0.7458908", "0.7457505", "0.74555504", "0.7447374", "0.7431505", "0.7415545", "0.74085915", "0.7406529", "0.74026495", "0.7355632", "0.7337834", "0.72974735", "0.728749", "0.72786224", "0.7266361", "0.7256187", "0.7251352", "0.725131...
0.69947046
60
number of LinkedArrayNodes that have been visited Construct an iterator
@SuppressWarnings("unchecked") public MyHashTableIterator () { currentIndex =0; currentArray = (LinkedArrays<T>) table[currentIndex]; currentArrayItr= currentArray.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Iterator<T> iterator() {\n return new UsedNodesIterator<>(this);\n }", "int getNodeCount();", "int getNodeCount();", "public Iterator<LayoutNode> nodeIterator() {\n\treturn nodeList.iterator();\n }", "public Iterator<Integer> getPageCountIterator();", "public int nodeCo...
[ "0.62120533", "0.6073872", "0.6073872", "0.6040065", "0.60229516", "0.599543", "0.59438837", "0.5937668", "0.5927082", "0.5924087", "0.59148586", "0.59139335", "0.59109765", "0.58856875", "0.58841676", "0.5879324", "0.5879013", "0.58771515", "0.58748984", "0.58622754", "0.584...
0.0
-1
Returns true if this list iterator has more elements when traversing the list in the forward direction. (In other words, returns true if next() would return an element rather than throwing an exception.)
@SuppressWarnings("unchecked") public boolean hasNext( ) { if ( currentArrayItr.hasNext()) return true; else { while (currentIndex< tableSize-1) { currentIndex++; currentArray = (LinkedArrays<T>) table[currentIndex]; currentArrayItr= currentArray.iterator(); if ( currentArrayItr.hasNext()) return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasMoreElements() {\n/* 64 */ return this.iterator.hasNext();\n/* */ }", "@Override\r\n\tpublic boolean hasMoreElements() {\n\t\treturn it.hasNext();\r\n\t}", "public boolean hasNext() {\r\n if (current + 1 >= elem.length) {\r\n current = 0;\r\n }\r\...
[ "0.8387624", "0.8162293", "0.8085717", "0.80433434", "0.8007439", "0.79870415", "0.79368055", "0.7912251", "0.7873732", "0.7872645", "0.7851628", "0.7824536", "0.7824536", "0.78238195", "0.78144395", "0.7812171", "0.78044987", "0.77841425", "0.77783567", "0.7747997", "0.77473...
0.0
-1
Returns the next element in the list and advances the cursor position. Throws: NoSuchElementException if the iteration has no next element.
@SuppressWarnings("unchecked") public T next( ) { if (!hasNext()) throw new NoSuchElementException(); T result = currentArrayItr.next(); //System.out.println("in next iterator LinkedArray " + result); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }", "public T next() {\n\t\t\tif (hasNext()) {\n\t\t\t\tT nextItem = eleme...
[ "0.7634016", "0.7631527", "0.762553", "0.7571375", "0.7542154", "0.7526055", "0.74469566", "0.734718", "0.7343939", "0.7299639", "0.72991794", "0.7298906", "0.7295312", "0.7288147", "0.7274767", "0.7270925", "0.72342455", "0.72294295", "0.7228744", "0.721882", "0.7196639", ...
0.0
-1
Callbacks interface for send events to main activity of fragment
public interface Callbacks { /** * Item Processing - method which handling specified Note (save/update in current version) * @param noteModel instance of @{@link NoteModel} * @param actionAdd boolean */ void itemProcessing(NoteModel noteModel, boolean actionAdd); /** * ActionBack - method which get previous activity */ void actionBack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface FragmentListener {\n\n public void callbackEvento(Evento evento);\n public voi...
[ "0.72799426", "0.6668442", "0.65974694", "0.6533599", "0.6500285", "0.6354263", "0.6331862", "0.6279917", "0.6248357", "0.6240299", "0.6236659", "0.62177783", "0.6203029", "0.6188365", "0.61821246", "0.6176612", "0.61742693", "0.615764", "0.61054534", "0.60862297", "0.6086229...
0.0
-1
ActionBack method which get previous activity
void actionBack();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onGoBackButtonClick();", "public void back() {\n Views.goBack();\n }", "public void Back(View view) // back button pressed - go back to previous class\n {\n Intent intent = new Intent(ImportingOCR.this, AddedCmc.class); // back to previous page--which should be addedcmc.class and not i...
[ "0.76978993", "0.7595835", "0.75939995", "0.7548332", "0.7515821", "0.7407958", "0.7358763", "0.7330211", "0.73233104", "0.72835433", "0.72767675", "0.7259905", "0.7256454", "0.72431624", "0.72310865", "0.72310865", "0.7215374", "0.7197654", "0.71920973", "0.71761674", "0.716...
0.7912589
0
by default, we accept the alert
protected void handleAlert(Alert alert) { if (LOGGEER.isDebugEnabled()) { LOGGEER.debug("Accepting alert box with message: {}", alert.getText()); } alert.accept(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void AcceptAlertIfPresent() {\n if (isAlertPresent()) {\n AcceptAlert();\n log.info(\"alert accepted\");\n } else\n log.info(\"NoAlertPresent\");\n \n }", "@Override\r\n\tpublic void beforeAlertAccept(WebDriver arg0) {\n\t\t\r\n\t}", "public stati...
[ "0.7751142", "0.7518686", "0.7510928", "0.74722755", "0.7451816", "0.73413277", "0.73356503", "0.7205879", "0.7119709", "0.7098575", "0.69867164", "0.6985205", "0.6964729", "0.69259536", "0.6903837", "0.68741", "0.6860173", "0.683818", "0.678133", "0.67006934", "0.6695062", ...
0.69248307
14
Print array with a sort of alignment
static void printArr(int[][] a){ for(int i = 0; i < a.length; i++){ for(int j = 0; j < a[i].length; j++){ if(a[a.length/2][a[i].length/2] > 99) { if (a[i][j] < 10) System.out.print("00" + a[i][j] + " "); else if (a[i][j] < 100) System.out.print("0" + a[i][j] + " "); else if (a[i][j] < 1000) System.out.print(a[i][j] + " "); else System.out.print("XXX "); } else if (a[a.length/2][a[i].length/2] > 9){ if (a[i][j] < 10) System.out.print("0" + a[i][j] + " "); else System.out.print(a[i][j] + " "); } else System.out.print(a[i][j] + " "); } System.out.println(); } System.out.println("\n\n\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void printArray(Comparable[] arr) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}", "void printMergeSortArray(int[] arr) {\r\n for (int i=0; i<arr.length; i++)\r\n {\r\n System.out.print(arr[i] + ...
[ "0.6635744", "0.65572655", "0.6547904", "0.65449566", "0.6537357", "0.6489093", "0.63997525", "0.6373751", "0.63311374", "0.63274604", "0.6252984", "0.62456584", "0.6225851", "0.6223986", "0.62211263", "0.62177336", "0.6210087", "0.6207378", "0.6195128", "0.6144765", "0.61142...
0.5786601
61
Created by omerfarukcoban on 11.01.2020.
public interface ShoppingCartVisitor { double visit(Book book); double visit(DVD dvd); }
{ "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\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Overri...
[ "0.5896574", "0.5627198", "0.54417145", "0.54078436", "0.54078436", "0.5362774", "0.53420216", "0.5327255", "0.53098977", "0.53098977", "0.53098977", "0.53098977", "0.53098977", "0.53098977", "0.5303702", "0.5299124", "0.5296223", "0.5292579", "0.52505416", "0.52289", "0.5215...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Music m=new Music(); m.rank=1; m.icon='-'; m.idcrement=0; m.artist="숀(SHAUN)"; m.title="습관 (Bad Habits)"; Music2 m1=new Music2(); m1.rank=1; m1.icon='-'; m1.idcrement='0'; m1.title="이 노래가 클럽에서 나온다면"; m1.artist="우디 (Woody)"; m1.album="이 노래가 클럽에서 나온다면"; m1.poster="http://cmsimg.mnet.com/clipimage/album/1024/003/230/3230259.jpg"; System.out.println("순위:"+m.rank); System.out.println("제목:"+m.title); System.out.println("가수:"+m.artist); System.out.println("앨범:"+m.album.equals(" ".trim())); System.out.println("앨범:"+m.album.equals(" ")); /* * * int a; System.out.ptinln(a); * '' != ' ' * "" != " " * "" != null * * "" => 자체가 String * */ m=null; // 메모리 해제 System.out.println("앨범:"+m.poster.equals("")); System.out.println("앨범:"+m.album.charAt(0)); //주소는 존재하고 값이 없는 상태 System.out.println(m.poster.charAt(0)); //주소값이 없는 상태 System.out.println("=================================="); System.out.println("순위:"+m1.rank); System.out.println("제목:"+m1.title); System.out.println("가수:"+m1.artist); System.out.println("앨범:"+m1.album); }
{ "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
A common method to connect to the DB
public Connection connect() { Connection con = null; try { Class.forName("com.mysql.jdbc.Driver"); //Provide the correct details: DBServer/DBName, username, password con = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3308/paf", "root", ""); //For testing System.out.print("Successfully connected"); } catch (Exception e) {e.printStackTrace();} return con; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DBConnect() {\n \n }", "public void DBConnect() {\n \tdatabase = new DatabaseAccess();\n \tif (database != null) {\n \t\ttry {\n \t\t\tString config = getServletContext().getInitParameter(\"dbConfig\");\n \t\t\tdatabase.GetConnectionProperties(config);\n \t\t\tdatabase.DatabaseConnect...
[ "0.7849154", "0.77150613", "0.7597987", "0.75952226", "0.7544376", "0.748421", "0.7454211", "0.74458313", "0.7439286", "0.7410913", "0.73760444", "0.7359702", "0.7354896", "0.7319215", "0.72959423", "0.7294295", "0.7258999", "0.72541267", "0.72508615", "0.72452855", "0.723943...
0.6875488
67
Set particular attribute to a value
<T> Setter<R> set(Projection<T> projection, T value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setInt(int attributeValue);", "public ...
[ "0.80159754", "0.7797454", "0.77749306", "0.77749306", "0.7766266", "0.7706082", "0.77008605", "0.7693231", "0.75067437", "0.7439638", "0.7387966", "0.73740435", "0.7329538", "0.72880495", "0.7163586", "0.7130397", "0.70679504", "0.70618165", "0.7059053", "0.7048425", "0.7013...
0.0
-1
Replace matching element(s) with a new value
WriteExecutor<R> replace(T newValue);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SearchResult replace(SearchResult result, String replacement);", "public int[] replaceAll(int target, int replacement) {\n\t \t\t\tfor(int i = 0; i < size; i++) { //loop through the list and find the index(es) of the target\n\t \t\t\t\tif(elementData[i] == target) {\n\t \t\t\t\t\telementData[i] = replacement;...
[ "0.63616276", "0.59168607", "0.5792532", "0.5694954", "0.5678227", "0.5616553", "0.55625856", "0.5514324", "0.5462831", "0.5459246", "0.5396308", "0.53894913", "0.5386536", "0.53721094", "0.53688574", "0.53332764", "0.5328925", "0.53123033", "0.5280968", "0.5279832", "0.52739...
0.5492164
8
Set particular attribute to a value
<T> Setter<R> set(Projection<T> projection, T value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setInt(int attributeValue);", "public ...
[ "0.80159754", "0.7797454", "0.77749306", "0.77749306", "0.7766266", "0.7706082", "0.77008605", "0.7693231", "0.75067437", "0.7439638", "0.7387966", "0.73740435", "0.7329538", "0.72880495", "0.7163586", "0.7130397", "0.70679504", "0.70618165", "0.7059053", "0.7048425", "0.7013...
0.0
-1
Part of repository DSL used as a terminator (last) command before returning the result.
interface WriteExecutor<R> { /** * Execute previously defined operation */ R execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String nextCommand() {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void doLast() {\n\t\t\r\n\t}", "public void endCommand();", "public MethodBuilder returnCommand(String command) {\n\t\treturn command(\"return \" + command);\n\t}", "@Override\n\tpublic CommandProxy execute() {\n\...
[ "0.5802323", "0.53166187", "0.52667874", "0.522227", "0.5218565", "0.5162286", "0.51614696", "0.51321805", "0.5128607", "0.50960094", "0.50749236", "0.50710523", "0.50695115", "0.5064469", "0.5064139", "0.50372344", "0.5022964", "0.4997307", "0.49817112", "0.49720088", "0.496...
0.0
-1