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
Does not modify bb
public static CharSequence asHexString( ByteBuffer bb ) { inputs.notNull( bb, "bb" ); ByteBuffer slice = bb.slice(); CharBuffer res = CharBuffer.allocate( slice.remaining() * 2 ); while ( slice.hasRemaining() ) { byte b = slice.get(); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public void mergeBlock(BasicBlock bb){\n this.tail.remove();\n if(bb.getParent().getExitBB() == bb){\n bb.getParent().setExitBB(this);\n }\n\n Instruction ptr = bb.getHead();\n while(ptr != null){\n if(ptr ins...
[ "0.6995717", "0.6133169", "0.61253345", "0.6006366", "0.59985197", "0.59883595", "0.5982077", "0.5878086", "0.58156604", "0.5810636", "0.57335436", "0.572797", "0.5717635", "0.5622544", "0.5617538", "0.55888903", "0.555049", "0.552512", "0.5523857", "0.55203176", "0.55154485"...
0.0
-1
could make this public at some point
private static boolean isHexChar( char ch ) { return ( ch >= '0' && ch <= '9' ) || ( ch >= 'a' && ch <= 'f' ) || ( ch >= 'A' && ch <= 'F' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n protected void prot() {\n }", "@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\tpublic void grabar() {\n\t\t\n\t}", "public fi...
[ "0.67120284", "0.66142225", "0.6512455", "0.6466605", "0.64194655", "0.6368553", "0.6342545", "0.62971526", "0.62971526", "0.6266523", "0.6246427", "0.62149924", "0.6207397", "0.6175678", "0.6175678", "0.61465615", "0.61429846", "0.61209714", "0.6119989", "0.6109647", "0.6093...
0.0
-1
Only tested now for unixlike systems
public static String which( CharSequence cmd ) { String cmdStr = inputs.notNull( cmd, "cmd" ).toString(); String path = System.getenv( ENV_PATH ); if ( path != null ) { for ( String dir : PAT_PATH_SEP.split( path ) ) { File f = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSystem();", "private boolean osIstLinux() {\n\t\treturn System.getProperty(\"os.name\").equals(\"Linux\");\n\t}", "String operatingSystem();", "public native String canopenUtils(String[] cmd);", "public int findIndexOfFirstEolBetter(String source) {\n char[] sourceChars = source....
[ "0.55487555", "0.5517064", "0.54482687", "0.53771615", "0.5355023", "0.5327143", "0.5223906", "0.51532674", "0.5141862", "0.51231354", "0.5099469", "0.50971544", "0.5077452", "0.5073335", "0.5054886", "0.5044852", "0.50050366", "0.50035614", "0.49562097", "0.48947015", "0.486...
0.0
-1
The methods which follow are support methods for converting java strings to json strings. The method is included here instead of in the JSON libs since JSON strings are also a very convenient, safe, and meaningful way to serialize unicode strings in general
private static void appendUnicodeEscape( char ch, StringBuilder sb ) { sb.append( "\\u" ); String numStr = Integer.toString( ch, 16 ); if ( ch <= '\u000F' ) sb.append( "000" ); else if ( ch <= '\u00FF' ) sb.append( "00" ); else if ( ch <...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONString(String stringIn)\n {\n this.string = stringIn;\n }", "public abstract String toJsonString();", "static String getStringJsonEscaped(String str) {\n JsonStringEncoder e = JsonStringEncoder.getInstance();\n StringBuilder sb = new StringBuilder();\n e.quoteAsString(str, ...
[ "0.7163834", "0.71413463", "0.6817635", "0.6750428", "0.66676396", "0.64996904", "0.6474623", "0.64507866", "0.63077027", "0.62921506", "0.62142193", "0.61749035", "0.61234707", "0.60989195", "0.60886544", "0.6059833", "0.60468614", "0.604117", "0.601524", "0.5983991", "0.596...
0.0
-1
Invio del turno di gioco ai client.
public void sendTurno() throws RemoteException, InterruptedException, IOException ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void action(BotInstance bot, Message message);", "@Test\n public void play() {\n System.out.println(client.botBegin());\n }", "public void nuevoTurno(Integrante i, String act, String sig);", "void askTurn();", "private void sendGameCommand(){\n\n }", "@Override\n public void...
[ "0.5753302", "0.5669856", "0.56693375", "0.56423026", "0.5593687", "0.55909175", "0.55883986", "0.55815876", "0.553919", "0.5521702", "0.5508172", "0.54552513", "0.5454281", "0.54504097", "0.54172474", "0.5409939", "0.5391959", "0.53800035", "0.537359", "0.5368816", "0.536153...
0.67016715
0
Invio dell'oggetto partita (stato della), aggiornato, ai client.
public void sendPartita(Partita partita) throws InterruptedException, RemoteException, IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void crearPedidoGenerandoOPC() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25, 29, 33 };\n\t\tint[] cantidades = { 6, 8, 11 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 3\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(ped...
[ "0.61833423", "0.60005164", "0.595572", "0.5853232", "0.58352953", "0.5826589", "0.56930274", "0.5689244", "0.5620356", "0.5619636", "0.5592562", "0.55328023", "0.5505119", "0.5498442", "0.54615706", "0.5442159", "0.5435876", "0.54320765", "0.54293984", "0.5416221", "0.540634...
0.5675389
8
Invio della stringa conclusiva del gioco (es: "hai vinto!")
public void sendString(String string) throws RemoteException, IOException, InterruptedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"...
[ "0.66510147", "0.65051067", "0.64147145", "0.61802423", "0.6149822", "0.6145028", "0.59975755", "0.5941711", "0.59097266", "0.58957124", "0.58898276", "0.5839314", "0.5838608", "0.5811042", "0.57719773", "0.57567793", "0.5746255", "0.57279795", "0.5716242", "0.5705655", "0.56...
0.0
-1
private static final Logger logger = Logger.getLogger(CutStringMethodModel.class);
@Override public Object exec(List args) throws TemplateModelException { String result=""; String content=""; String delpatstr=""; int len=0; if (args.size()!=2 && args.size() != 3) { throw new TemplateModelException( "Error: 参数个数不正确 CutStringMe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private StringUtilities() {\n // nothing to do\n }", "interface Solution {\n\n// use this Object to print the log (call from slf4j facade)\nstatic Logger log = LoggerFactory.getLogger(Solution.class);\n\n String decodeString(String s);\n}", "private StringUtil() {\n\t\tsuper();\n\t}", "private StringU...
[ "0.59585106", "0.57073057", "0.5674245", "0.5637476", "0.5637476", "0.56339145", "0.5537245", "0.5537245", "0.5536425", "0.5471827", "0.5437362", "0.5409098", "0.5405012", "0.53719646", "0.5360674", "0.5318343", "0.5318343", "0.5318343", "0.5318343", "0.5312656", "0.52731454"...
0.5705517
2
A KVStore that also maintains a index of documents for arbitrary retrieval.
@Deprecated public interface LegacyIndexedStore<K, V> extends LegacyKVStore<K, V> { String ID_FIELD_NAME = "_id"; /** * Creates a lazy iterable over items that match the provided condition, in * the order requested. Exposing the appropriate keys and values. Note that * each iterator is independent and go...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface KeyValueStore {\n\n\t/**\n\t * Put a value into the database with an associated key\n\t * @param key The key of the value\n\t * @param value The value to store\n\t * @return True if successful\n\t */\n\tpublic HasID put(@SuppressWarnings(\"rawtypes\") Class type, HasID value);\n\t\n\t/**\n\t * Get...
[ "0.592473", "0.5850358", "0.5791037", "0.57760316", "0.5637345", "0.560403", "0.5576636", "0.5435871", "0.5358258", "0.5353926", "0.53494424", "0.5346597", "0.5326765", "0.5289848", "0.52765083", "0.5270063", "0.5234265", "0.5227621", "0.52166176", "0.5213363", "0.51998353", ...
0.6214632
0
Creates a lazy iterable over items that match the provided condition, in the order requested. Exposing the appropriate keys and values. Note that each iterator is independent and goes back to the source data to collect data. As such, if you need to use multiple iterators, it is better to cache the results. Note that th...
Iterable<Entry<K, V>> find(LegacyFindByCondition find);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator<T> iterator(T instance, M matchCondition);", "CollectIteratorEvaluator(BooleanValue condition) {\n this.condition = condition;\n }", "private static List<Car> getCarsByCriteria(Iterable<Car> iter, CarCriteria criteria) {\n List<Car> returnCars = new ArrayList<>();\n\n ...
[ "0.5528109", "0.54889095", "0.51243263", "0.49070707", "0.47870177", "0.47486165", "0.46798262", "0.46716508", "0.46403146", "0.45790064", "0.4561077", "0.45496464", "0.45382166", "0.45366618", "0.4509135", "0.45063353", "0.45042482", "0.44092584", "0.43990338", "0.43864518", ...
0.5033964
3
Provide a count of the number of documents that match each of the requested conditions.
List<Integer> getCounts(SearchQuery... conditions);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTravelGroupListCount(Map conditions);", "int findCountByCriteria(String eCriteria, Object... parameters);", "int getAndConditionGroupsCount();", "public int count(T instance, M matchCondition);", "int getCountForConditionCompany(Long companyId);", "int countByExample(CfgSearchRecommendExamp...
[ "0.70493287", "0.6987408", "0.66857904", "0.66565204", "0.6643406", "0.64895415", "0.6484304", "0.6479639", "0.6457718", "0.6361185", "0.6322621", "0.63103455", "0.62916553", "0.62611306", "0.62497246", "0.6242646", "0.6227531", "0.6217969", "0.62140185", "0.62138975", "0.616...
0.7474167
0
Constructor. Take the main controller and all the panel needed for displaying.
public MainWindow(MainController controller, JPanel roadMapPanel, JPanel deliveryOrderPanel, JPanel tourPanel, JPanel tourEditorPanel, JPanel currentInterectionDisplayPanel) { super(controller, "Optimod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainMenuPanel() {\n\t\tinitComponents();\n\t}", "public ControladorPanel() { }", "public mainLayoutController() {\n\t }", "public DashboardFrame() {\n WebLookAndFeel.install ();\n Controller = new Controller();\n initComponents();\n }", "public MainScreen(GproToolControlle...
[ "0.7535382", "0.7473224", "0.74027884", "0.73970133", "0.73420817", "0.73063165", "0.72683126", "0.72427887", "0.71629196", "0.71599936", "0.71141285", "0.7101423", "0.70935214", "0.70685256", "0.7063032", "0.7032557", "0.7023615", "0.7023512", "0.70134467", "0.6997548", "0.6...
0.73977375
3
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings) { super(readings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n ...
[ "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.5077160...
0.6481133
0
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.50771606...
0.58696353
7
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition) { super(readings); mInitialPosition = initialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceE...
[ "0.64814204", "0.62118185", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5743539", "0.5732371", "0.57290286", "0.55367625", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.5192859", "0.50...
0.6094828
2
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); mInitialPosition = initialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.64814204", "0.62118185", "0.6094828", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5743539", "0.5732371", "0.57290286", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.5192859", "0.507...
0.55367625
12
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final Double initialTransmittedPowerdBm) { super(readings); mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.50771606...
0.59260625
6
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final Double initialTransmittedPowerdBm, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54584324", "0.5358521", "0.5193017", "0.50771606...
0.54676616
17
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, Double initialTransmittedPowerdBm) { super(readings); mInitialPosition = initialPosition; mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.64814204", "0.62118185", "0.6094828", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5732371", "0.57290286", "0.55367625", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.5192859", "0.50...
0.5743539
9
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final Double initialTransmittedPowerdBm, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); mInitialPosition = initialPositio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.64814204", "0.62118185", "0.6094828", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5743539", "0.5732371", "0.57290286", "0.55367625", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.50...
0.5192859
20
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final Double initialTransmittedPowerdBm, final double initialPathLossExponent) { this(readings, initialPosition, initialTransmittedPowerdBm); mInitialPathLossE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.5077160...
0.5492369
15
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final Double initialTransmittedPowerdBm, final double initialPathLossExponent, final MixedRadioSourceEstimatorListener<S, P> listener) { this(readings, ini...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstima...
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017...
0.4905657
27
Gets initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitt...
public Double getInitialTransmittedPowerdBm() { return mInitialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(...
[ "0.7101164", "0.7101164", "0.64035726", "0.6352203", "0.61967164", "0.6099152", "0.5962396", "0.5880042", "0.5840612", "0.583905", "0.58370316", "0.5826514", "0.58080226", "0.5807924", "0.57713133", "0.5614726", "0.56024206", "0.551177", "0.5509179", "0.5475459", "0.5450272",...
0.6599556
3
Sets initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitt...
public void setInitialTransmittedPowerdBm(final Double initialTransmittedPowerdBm) throws LockedException { if (isLocked()) { throw new LockedException(); } mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInitialTransmittedPower(\n final Double initialTransmittedPower) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n thro...
[ "0.63793755", "0.6316994", "0.61951005", "0.60723245", "0.60723245", "0.58750296", "0.58214605", "0.5793441", "0.5793441", "0.57496", "0.5707685", "0.5678667", "0.5678667", "0.5668518", "0.5668343", "0.5440295", "0.5352785", "0.5316241", "0.5312862", "0.5300397", "0.52846754"...
0.6082655
3
Gets initial transmitted power to start the estimation of radio source transmitted power (expressed in mW). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitted ...
public Double getInitialTransmittedPower() { return mInitialTransmittedPowerdBm != null ? Utils.dBmToPower(mInitialTransmittedPowerdBm) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowe...
[ "0.66172427", "0.66172427", "0.6459144", "0.64056474", "0.6140352", "0.5964726", "0.59582925", "0.5945495", "0.59201694", "0.59105706", "0.5865067", "0.5842863", "0.58173376", "0.5813044", "0.58082944", "0.5634152", "0.55766803", "0.55603635", "0.55271125", "0.54776675", "0.5...
0.7165111
0
Sets initial transmitted power to start the estimation of radio source transmitted power (expressed in mW). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitted ...
public void setInitialTransmittedPower(final Double initialTransmittedPower) throws LockedException { if (isLocked()) { throw new LockedException(); } if (initialTransmittedPower != null) { if (initialTransmittedPower < 0.0) { throw new Illegal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInitialTransmittedPower(\n final Double initialTransmittedPower) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n thro...
[ "0.64076173", "0.61517555", "0.6128587", "0.6128587", "0.60381687", "0.5896681", "0.5845866", "0.579655", "0.579655", "0.57387257", "0.57295465", "0.5709389", "0.5709389", "0.56745714", "0.56534284", "0.54461706", "0.540039", "0.5328053", "0.52973515", "0.5281895", "0.5248421...
0.63459337
1
Indicates whether transmitted power estimation is enabled or not.
public boolean isTransmittedPowerEstimationEnabled() { return mTransmittedPowerEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTxpower();", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean hasPower() {\n return ((bitField0_ & 0x00000040) == 0x00000040);...
[ "0.77198046", "0.76293635", "0.746722", "0.71896756", "0.71725994", "0.7170476", "0.71526307", "0.7021836", "0.69846857", "0.69509786", "0.6916793", "0.6880654", "0.6836319", "0.68102026", "0.6735375", "0.6735375", "0.6703527", "0.6676435", "0.6594986", "0.65598595", "0.65162...
0.8123883
0
Specifies whether transmitted power estimation is enabled or not.
public void setTransmittedPowerEstimationEnabled( final boolean transmittedPowerEstimationEnabled) throws LockedException { if (isLocked()) { throw new LockedException(); } mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public void setPower(boolean power){\n this.power = power;\n }", ...
[ "0.74934965", "0.74934965", "0.7171968", "0.694972", "0.68274826", "0.67900056", "0.6762475", "0.67556304", "0.66846454", "0.6622021", "0.6512167", "0.6447805", "0.64302063", "0.64181656", "0.6278528", "0.6274689", "0.62619525", "0.620653", "0.62028605", "0.6191253", "0.61823...
0.7375324
3
Gets initial position to start the estimation of radio source position. If not defined, centroid of provided readings will be used. If position estimation is enabled, estimation will start at this value and will converge to the most appropriate value. If position estimation is disabled, this value will be assumed to be...
public P getInitialPosition() { return mInitialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getInitialPosition()\n {\n return this.initialPosition;\n }", "public P getEstimatedPosition() {\n return mRssiPositionEnabled ?\n mRssiInnerEstimator.getEstimatedPosition() :\n mRangingInnerEstimator.getEstimatedPosition();\n }", "public float getIniti...
[ "0.6694582", "0.65368646", "0.6484903", "0.63230926", "0.61538637", "0.60951126", "0.5884715", "0.58485866", "0.58123976", "0.57877356", "0.5786005", "0.5754542", "0.56934583", "0.5668735", "0.5609791", "0.56007296", "0.55951", "0.55458283", "0.55438", "0.5541988", "0.5524626...
0.6395115
3
Sets initial position to start the estimation of radio source position. If not defined, centroid of provided fingerprints will be used. If position estimation is enabled, estimation will start at this value and will converge to the most appropriate value. If position estimation is disabled, this value will be assumed t...
public void setInitialPosition(final P initialPosition) throws LockedException { if (isLocked()) { throw new LockedException(); } mInitialPosition = initialPosition; }
{ "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.6178364", "0.58801115", "0.5766542", "0.56166273", "0.5605407", "0.55682963", "0.5553936", "0.5505569", "0.5482246", "0.5448305", "0.54338133", "0.54229116", "0.5402559", "0.535844", "0.5350671", "0.5346399", "0.53439814", "0.53121746", "0.5308585", "0.5274028", "0.5270997...
0.5549323
9
Gets initial exponent typically used on free space for path loss propagation in terms of distance. On different environments path loss exponent might have different value: Free space: 2.0 Urban Area: 2.7 to 3.5 Suburban Area: 3 to 5 Indoor (lineofsight): 1.6 to 1.8 If path loss exponent estimation is enabled, estimatio...
public double getInitialPathLossExponent() { return mInitialPathLossExponent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}", "public BigInteger getExponent() {\n return this.ex...
[ "0.74925584", "0.6988336", "0.63794285", "0.6156439", "0.6140804", "0.6140804", "0.6106955", "0.60846555", "0.60846555", "0.6053028", "0.6023308", "0.6014212", "0.59504914", "0.59502596", "0.5927183", "0.5872367", "0.58487743", "0.5742985", "0.5640294", "0.5624876", "0.562453...
0.78050524
0
Sets initial exponent typically used on free space for path loss propagation in terms of distance. On different environments path loss exponent might have different value: Free space: 2.0 Urban Area: 2.7 to 3.5 Suburban Area: 3 to 5 Indoor (lineofsight): 1.6 to 1.8 If path loss exponent estimation is enabled, estimatio...
public void setInitialPathLossExponent(final double initialPathLossExponent) throws LockedException { if (isLocked()) { throw new LockedException(); } mInitialPathLossExponent = initialPathLossExponent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public void setPathLossExponent(final Integer pathLossExponent) {\n this.pathLossExponent = pathLossExponent;\...
[ "0.72019297", "0.72019297", "0.67942524", "0.6650358", "0.64074665", "0.6335549", "0.60146886", "0.59947085", "0.5644056", "0.56061053", "0.5521441", "0.54849", "0.54635185", "0.54300666", "0.5389662", "0.53675747", "0.5326475", "0.53205955", "0.5303408", "0.5294502", "0.5280...
0.7175833
3
Indicates whether path loss estimation is enabled or not.
public boolean isPathLossEstimationEnabled() { return mPathLossEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPathLossEstimationEnabled(\n final boolean pathLossEstimationEnabled) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mPathLossEstimationEnabled = pathLossEstimationEnabled;\n }", "public void setPathLossEstimationEnab...
[ "0.6652956", "0.6487929", "0.6008754", "0.57333314", "0.55906594", "0.555369", "0.5529828", "0.54888177", "0.53637916", "0.5363345", "0.5352621", "0.5347501", "0.5343311", "0.5343311", "0.5334969", "0.53245264", "0.5300994", "0.52958155", "0.5273759", "0.5194151", "0.5183252"...
0.83572876
0
Specifies whether path loss estimation is enabled or not.
public void setPathLossEstimationEnabled(final boolean pathLossEstimationEnabled) throws LockedException { if (isLocked()) { throw new LockedException(); } mPathLossEstimationEnabled = pathLossEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "public void setPathLossEstimationEnabled(\n final boolean pathLossEstimationEnabled) throws Locked...
[ "0.77806324", "0.77806324", "0.7043334", "0.57933325", "0.54477215", "0.5365954", "0.5307162", "0.5289407", "0.5223418", "0.5178521", "0.5098739", "0.49711272", "0.49406815", "0.48545122", "0.48419523", "0.48369008", "0.48346257", "0.48343542", "0.48235416", "0.48140776", "0....
0.69068104
3
Indicates whether position covariances of readings must be taken into account to increase the amount of standard deviation of each ranging measure by the amount of position standard deviation assuming that both measures are statistically independent.
public boolean getUseReadingPositionCovariance() { return mUseReadingPositionCovariances; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHas_certainty();", "public void setUseReadingPositionCovariances(\n final boolean useReadingPositionCovariances) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mUseReadingPositionCovariances = useReadingPositionCovariances;\...
[ "0.5623582", "0.5527307", "0.5474307", "0.5466129", "0.5379636", "0.5206684", "0.51936376", "0.51730067", "0.5068372", "0.50303715", "0.5024339", "0.49861455", "0.49398106", "0.49165806", "0.4849584", "0.48479503", "0.48465136", "0.4830106", "0.48000303", "0.47820455", "0.477...
0.62895834
0
Specifies whether position covariances of readings must be taken into account to increase the amount of standard deviation of each ranging measure by the amount of position standard deviation assuming that both measures are statistically independent.
public void setUseReadingPositionCovariances( final boolean useReadingPositionCovariances) throws LockedException { if (isLocked()) { throw new LockedException(); } mUseReadingPositionCovariances = useReadingPositionCovariances; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getUseReadingPositionCovariance() {\n return mUseReadingPositionCovariances;\n }", "public void useCovarianceMatrix(){\n this.covRhoOption = true;\n }", "public void setDrawVariances(boolean draw) {\r\n this.drawVariances = draw;\r\n }", "public boolean isCovarian...
[ "0.6339323", "0.62357277", "0.53762335", "0.5365792", "0.50494736", "0.49365246", "0.49301806", "0.4861124", "0.48514855", "0.4843952", "0.4843952", "0.4843556", "0.47899023", "0.47718602", "0.47247767", "0.46675676", "0.465908", "0.465908", "0.46068645", "0.45931652", "0.458...
0.6177731
2
Indicates whether an homogeneous linear solver is used to estimate an initial position for the internal ranging radio source estimator.
public boolean isHomogeneousRangingLinearSolverUsed() { return mUseHomogeneousRangingLinearSolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSolvable() {\n\n return initialSolvable;\n }", "public boolean hasStartPositions(int player)\r\n/* 399: */ {\r\n/* 400:470 */ ArrayList<StartPositionModel> models = getStartPositions(player);\r\n/* 401:472 */ for (StartPositionModel model : models) {\r\n/* 402:474 */ ...
[ "0.6091947", "0.5843257", "0.57663447", "0.5751357", "0.55224895", "0.54923916", "0.54848385", "0.54846585", "0.5413559", "0.5396457", "0.53585786", "0.5354669", "0.5354669", "0.53345984", "0.53334427", "0.53099656", "0.53000194", "0.52977264", "0.5277878", "0.52359873", "0.5...
0.6789143
0
Specifies whether an homogeneous linear solver is used to estimate an initial position for the internal ranging radio source estimator.
public void setHomogeneousRangingLinearSolverUsed( final boolean useHomogeneousLinearSolver) throws LockedException { if (isLocked()) { throw new LockedException(); } mUseHomogeneousRangingLinearSolver = useHomogeneousLinearSolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHomogeneousRangingLinearSolverUsed() {\n return mUseHomogeneousRangingLinearSolver;\n }", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n doub...
[ "0.63652766", "0.537876", "0.53371114", "0.5335817", "0.5226324", "0.5071665", "0.50592375", "0.504658", "0.5023143", "0.49760997", "0.49746543", "0.4973776", "0.49544144", "0.4926236", "0.4911817", "0.49090505", "0.48502934", "0.4835843", "0.48351002", "0.48319376", "0.48301...
0.55575126
1
Gets minimum required number of ranging or ranging+rssi readings required to start estimation.
public int getMinRangingReadings() { return getNumberOfDimensions() + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getMinReadings() {\n createInnerEstimatorsIfNeeded();\n\n int result = getNumberOfDimensions();\n if (mRssiInnerEstimator != null &&\n (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled)) {\n try {\n mRssiInnerEs...
[ "0.73537403", "0.72593814", "0.6272812", "0.5897874", "0.5780457", "0.57521266", "0.5742518", "0.5710175", "0.5691527", "0.5654247", "0.564989", "0.5643292", "0.56370944", "0.56285787", "0.5619515", "0.558959", "0.5587953", "0.55609775", "0.5532947", "0.55216265", "0.5512455"...
0.74117726
0
Gets minimum required number of rssi or ranging+rssi readings required to start estimation.
public int getMinRssiReadings() { return getMinReadings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getMinReadings() {\n createInnerEstimatorsIfNeeded();\n\n int result = getNumberOfDimensions();\n if (mRssiInnerEstimator != null &&\n (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled)) {\n try {\n mRssiInnerEs...
[ "0.7347736", "0.6618656", "0.6322032", "0.61013377", "0.60909104", "0.60705817", "0.60296124", "0.60108626", "0.60006255", "0.5985318", "0.59741956", "0.58786404", "0.5807055", "0.5789555", "0.5699802", "0.56606734", "0.5656345", "0.56551933", "0.5634204", "0.5610835", "0.558...
0.7678918
0
Gets minimum required number of readings to estimate power, position and pathloss exponent. This value depends on the number of parameters to be estimated, but for position only, this is 3 readings.
@Override public int getMinReadings() { createInnerEstimatorsIfNeeded(); int result = getNumberOfDimensions(); if (mRssiInnerEstimator != null && (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled)) { try { mRssiInnerEstimator.setPo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinRangingReadings() {\n return getNumberOfDimensions() + 1;\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "public int getMinimumPoints() {\n return mWeakMinimumSizeAllowed ? WEAK_MINIMUM_SIZE : MINIMUM_SIZE;\n }", "int getMinimalIterati...
[ "0.667022", "0.6311207", "0.6261829", "0.6082578", "0.5982742", "0.5908845", "0.5879706", "0.58708185", "0.5834527", "0.58243454", "0.5785689", "0.57649904", "0.57526535", "0.5749281", "0.5702464", "0.5693629", "0.5668183", "0.56432277", "0.5631044", "0.5629631", "0.5529603",...
0.74089456
0
Gets estimated radio source position.
public P getEstimatedPosition() { return mRssiPositionEnabled ? mRssiInnerEstimator.getEstimatedPosition() : mRangingInnerEstimator.getEstimatedPosition(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PositionSource getPositionSource() {\n return _positionSource;\n }", "public double GetPositionRaw()\n {\n double position = GetPosition();\n\n if (position == -1)\n {\n double CurrentDistance = GetDistance();\n\n // we aren't close to a position, so get t...
[ "0.63814974", "0.6295032", "0.62892663", "0.6173708", "0.6157917", "0.60707676", "0.6048494", "0.6034645", "0.5996081", "0.5948117", "0.5946673", "0.58987683", "0.5892201", "0.58891845", "0.58789045", "0.5876973", "0.5860166", "0.5854145", "0.5849305", "0.58480453", "0.584087...
0.67640615
0
Indicates whether readings are valid or not. Readings are considered valid when there are enough readings.
@Override public boolean areValidReadings( final List<? extends ReadingLocated<P>> readings) { if (readings == null) { return false; } checkReadings(readings); //if enough ranging data is available, we check validity both for ranging and RSSI readings ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }", "private void checkReadings(final List<? extends ReadingLocated<P>> readings) {\n mNumRangingReadings = mNumRssiReadings = 0;\n\n if (readings == null) {\n return;\n }\n\n for (f...
[ "0.7279101", "0.6738899", "0.66851735", "0.6592083", "0.65366185", "0.6526527", "0.6511287", "0.64841473", "0.6467632", "0.6464509", "0.63888973", "0.63803595", "0.63491267", "0.63379294", "0.6330951", "0.6285929", "0.62447906", "0.62410784", "0.6197404", "0.61810404", "0.614...
0.72425586
1
Indicates whether this instance is ready to start the estimation.
@Override public boolean isReady() { return areValidReadings(mReadings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isReady() {\n return ready;\n }", "public boolean isReady()\r\n {\r\n return _isReady;\r\n }", "public boolean isReady() {\n return isReady;\n }", "@Override\r\n\tpublic boolean isReady() {\n\t\treturn !finish;\r\n\t}", "public boolean isReady();", "public ...
[ "0.7378661", "0.73626095", "0.73512393", "0.73396647", "0.72758067", "0.72758067", "0.7206278", "0.71628755", "0.7141484", "0.713858", "0.7131988", "0.7127628", "0.7082015", "0.707158", "0.7061348", "0.70078874", "0.70078874", "0.70073813", "0.7004109", "0.69354355", "0.69354...
0.6814416
28
Estimate position, transmitted power and path loss exponent.
@Override public void estimate() throws RadioSourceEstimationException, NotReadyException, LockedException { if (isLocked()) { throw new LockedException(); } if (!isReady()) { throw new NotReadyException(); } try { mLocked = tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public double getIni...
[ "0.6654963", "0.64316565", "0.583752", "0.583752", "0.58313876", "0.58313876", "0.5675543", "0.56249624", "0.55848306", "0.55231744", "0.5496086", "0.5483416", "0.5481296", "0.5391171", "0.5389853", "0.5370638", "0.5369286", "0.5345783", "0.5300489", "0.52412665", "0.52371615...
0.0
-1
Gets estimated transmitted power expressed in milli watts (mW) or null if not available.
public Double getEstimatedTransmittedPower() { return mEstimatedTransmittedPowerdBm != null ? Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n c...
[ "0.72271293", "0.7198087", "0.71924794", "0.7171316", "0.7014814", "0.6987574", "0.6953567", "0.6902308", "0.68002254", "0.66868514", "0.6673339", "0.6660919", "0.65923494", "0.6541641", "0.6445348", "0.6445348", "0.64262813", "0.6408374", "0.6391754", "0.63644296", "0.632938...
0.7394533
0
Gets estimated transmitted power expressed in dBm's or null if not available.
public Double getEstimatedTransmittedPowerdBm() { return mEstimatedTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTxpower();", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedT...
[ "0.73773944", "0.71541125", "0.6927781", "0.69214267", "0.6903758", "0.68277055", "0.6815276", "0.67914003", "0.6744376", "0.6663798", "0.66633415", "0.66401994", "0.66062653", "0.6592778", "0.6510563", "0.6395419", "0.63721627", "0.634206", "0.6207373", "0.62059486", "0.6190...
0.66667444
9
Gets estimated transmitted power variance. This value will only be available when transmitted power estimation is enabled.
public Double getEstimatedTransmittedPowerVariance() { return mEstimatedTransmittedPowerVariance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getVariance()\r\n\t{\r\n\t\tlong tmp = lastSampleTime - firstSampleTime;\r\n\t\treturn ( tmp > 0 ? (sumPowerTwo/tmp - getMean()*getMean()) : 0);\r\n\t}", "public Double getVariance() {\n return variance;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEsti...
[ "0.6620267", "0.66094285", "0.6316336", "0.6316336", "0.61414385", "0.611429", "0.6108419", "0.60461277", "0.60231555", "0.6006708", "0.5950302", "0.58699125", "0.58669746", "0.5854454", "0.58282024", "0.58242184", "0.5809752", "0.5793905", "0.5792295", "0.57903403", "0.57338...
0.77967876
0
Gets estimated path loss exponent variance. This value will only be available when pathloss exponent estimation is enabled.
public Double getEstimatedPathLossExponentVariance() { return mEstimatedPathLossExponentVariance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public double varianceExponent()\n\t{\n\t\treturn _dblVarianceExponent;\n\t}", "public double getInitialPathLossExpon...
[ "0.7032936", "0.70261854", "0.7007824", "0.5920023", "0.5920023", "0.581464", "0.5811901", "0.5811901", "0.57995766", "0.575716", "0.5756444", "0.5691542", "0.56877524", "0.5508404", "0.54970247", "0.54675764", "0.5435142", "0.5411603", "0.53995305", "0.5313908", "0.5283243",...
0.86718273
0
Creates inner estimators if needed.
protected abstract void createInnerEstimatorsIfNeeded();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTopology() {\n deviceService = createMock(DeviceService.class);\n linkService = createMock(LinkService.class);\n\n deviceService.addListener(anyObject(DeviceListener.class));\n linkService.addListener(anyObject(LinkListener.class));\n\n createDevices(NUM_DEVICE...
[ "0.53621674", "0.5171497", "0.5167787", "0.5085121", "0.5048217", "0.49968553", "0.49583906", "0.49537373", "0.4940326", "0.49315867", "0.4901596", "0.4896896", "0.4887858", "0.4880666", "0.48607832", "0.482629", "0.48044315", "0.47593784", "0.47524172", "0.4710815", "0.47098...
0.87638545
0
Creates a ranging reading from a ranging and RSSI reading.
private RangingReadingLocated<S, P> createRangingReading( final RangingAndRssiReadingLocated<S, P> reading) { return new RangingReadingLocated<>(reading.getSource(), reading.getDistance(), reading.getPosition(), reading.getDistanceStandardDeviation(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading...
[ "0.74648786", "0.5889299", "0.5714345", "0.54755956", "0.54442334", "0.5101017", "0.5041771", "0.49833718", "0.48769173", "0.48665342", "0.48417392", "0.48342323", "0.47666433", "0.47393575", "0.47327617", "0.4725444", "0.4665143", "0.465044", "0.4578598", "0.4562866", "0.453...
0.7949619
0
Creates an RSSI reading from a ranging and RSSI reading.
private RssiReadingLocated<S, P> createRssiReading( final RangingAndRssiReadingLocated<S, P> reading) { return new RssiReadingLocated<>(reading.getSource(), reading.getRssi(), reading.getPosition(), reading.getRssiStandardDeviation(), reading.getPositi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RangingReadingLocated<S, P> createRangingReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RangingReadingLocated<>(reading.getSource(),\n reading.getDistance(), reading.getPosition(),\n reading.getDistanceStandardDeviation(),\n ...
[ "0.6760385", "0.57224596", "0.57080346", "0.56388354", "0.54007727", "0.53779465", "0.5366733", "0.5272243", "0.5219474", "0.51878965", "0.5182021", "0.5134431", "0.50954294", "0.5086206", "0.4990973", "0.4869827", "0.48582926", "0.48329005", "0.479303", "0.47777995", "0.4606...
0.7519122
0
Checks number of available ranging readings and number of available RSSI readings. Also determines whether position must be estimated using ranging data or RSSI data.
private void checkReadings(final List<? extends ReadingLocated<P>> readings) { mNumRangingReadings = mNumRssiReadings = 0; if (readings == null) { return; } for (final ReadingLocated<P> reading : readings) { if (reading instanceof RangingReadingLocated) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean areValidReadings(\n final List<? extends ReadingLocated<P>> readings) {\n if (readings == null) {\n return false;\n }\n\n checkReadings(readings);\n\n //if enough ranging data is available, we check validity both for ranging and RSSI r...
[ "0.7021597", "0.5945103", "0.5763812", "0.53003", "0.52589905", "0.5239555", "0.52002233", "0.5105105", "0.51016635", "0.5058082", "0.5035911", "0.5013666", "0.5008365", "0.4993128", "0.48572052", "0.48533502", "0.48451653", "0.48238903", "0.4822938", "0.48151705", "0.4813344...
0.742098
0
return super.onCreateView(inflater, container, savedInstanceState);
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View v = inflater.inflate(R.layout.classifieds_liting, null); rv = (RecyclerView) v.findViewById(R.id.rv); id_list = new ArrayList<>(); swip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState...
[ "0.8521086", "0.8521086", "0.8470297", "0.844018", "0.82390475", "0.82390475", "0.82019675", "0.8171322", "0.81422734", "0.81091815", "0.80201185", "0.79594934", "0.7933955", "0.7910876", "0.79049486", "0.79015666", "0.789198", "0.78882235", "0.78876203", "0.78756505", "0.783...
0.0
-1
Toast.makeText(getActivity(), "loading", Toast.LENGTH_SHORT).show(); Load_Data(cm.Serv_Address + "Pagination?", last_advt_id, true);
@Override public void onRefresh() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n loading = ProgressDialog.show(this.context, \"Fetching Data\",\"Please Wait...\",true,true);\n }", "@Override\n public void showLoading() {\n Log.i(Tag, \"showLoading\");\n }", ...
[ "0.69005454", "0.67028046", "0.665442", "0.6645439", "0.6620362", "0.6511366", "0.6511366", "0.6498679", "0.6498679", "0.6465354", "0.6448429", "0.6417339", "0.64120144", "0.6366906", "0.6341993", "0.63417727", "0.63314605", "0.6325917", "0.63221383", "0.63215655", "0.6293105...
0.0
-1
this method enters a new row corresponding to every recharge
public void enterRecharge(int rechargeId,String mobileNo,int PlanId) { Context ctx; try { ctx = new InitialContext(); DataSource ds=(DataSource)ctx.lookup("java:OracleDS"); Connection con=ds.getConnection(); Statement stmt=con.createStatement(); stmt.executeUpdate("Insert into recharge va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }", "private void addRow() throws CoeusException{\r\n // PDF is not mandatory\r\n// String fileName = displayPDFFileDialog();\r\n// if(fileName == null) {\r\n// //Cancelled\r\n// return ;\r\n// ...
[ "0.5932825", "0.5764046", "0.57275116", "0.57111055", "0.5702886", "0.5668302", "0.56202656", "0.55920994", "0.5591935", "0.55525935", "0.5520451", "0.5511939", "0.5511907", "0.5506691", "0.5423493", "0.54155785", "0.54034525", "0.5395643", "0.53912526", "0.53902364", "0.5365...
0.578363
1
this method retrieves the current balance of a particular number
public int getBalance(String mobileNo) { ResultSet rs; Context ctx; int balance=0; try { ctx = new InitialContext(); DataSource ds=(DataSource)ctx.lookup("java:OracleDS"); Connection con=ds.getConnection(); Statement stmt=con.createStatement(); rs=stmt.executeQuery("se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String balance() {\n\t\treturn this.apiCall(\"balance\", \"\", \"\", true);\n\t}", "double getBalance();", "double getBalance();", "public int getBalance()\n {\n return balance;\n }", "public int getBalance() {\n return balance;\n }", "public int getBalance() {\n return b...
[ "0.7513216", "0.7469154", "0.7469154", "0.7405803", "0.7321912", "0.7321912", "0.7313576", "0.7313576", "0.73117983", "0.73035556", "0.7287316", "0.72790486", "0.7256122", "0.72135633", "0.7200869", "0.7195302", "0.7187673", "0.7184392", "0.7155719", "0.7149153", "0.7136656",...
0.6609789
76
this method updates the balance of the number
public void updateBalance(String mobileNo,int balance) { Context ctx; try { ctx = new InitialContext(); DataSource ds=(DataSource)ctx.lookup("java:OracleDS"); Connection con=ds.getConnection(); Statement stmt=con.createStatement(); stmt.executeUpdate("update mobile set balance="+balance+"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "public void updateBal(int value) {\r\n bal = bal + value;\r\n }", "public void changeBalance (int amount){\n balance += amount;\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n b...
[ "0.8293271", "0.79910326", "0.78677887", "0.76622635", "0.7473835", "0.7326761", "0.7281158", "0.7248081", "0.7234366", "0.7124801", "0.71213096", "0.71143764", "0.7101514", "0.7073623", "0.7032503", "0.70214367", "0.69984704", "0.69979465", "0.6991248", "0.69722974", "0.6968...
0.67635334
43
set hadoop cassandra connection settings
protected void setConnectionInformation() throws IOException { StorageHelper.setConnectionInformation(conf); if (System.getenv(StorageHelper.PIG_INPUT_FORMAT) != null) inputFormatClass = getFullyQualifiedClassName(System.getenv(StorageHelper.PIG_INPUT_FORMAT)); else i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConnectionProperties(String hostname, String dbName, String username, String password);", "public void initializeConnection() {\n\n cluster = Cluster.builder().addContactPoint(host).build();\n session = cluster.connect(keyspaceName);\n session.execute(\"USE \".concat(keyspaceName));\n }"...
[ "0.6096431", "0.5963143", "0.58067137", "0.5656161", "0.5654059", "0.5598599", "0.5553459", "0.5533096", "0.5522535", "0.5455439", "0.534061", "0.53231126", "0.53231126", "0.5281748", "0.5247434", "0.524663", "0.5204989", "0.51987267", "0.51810586", "0.5156936", "0.5155321", ...
0.48609316
40
get the full class name
protected String getFullyQualifiedClassName(String classname) { return classname.contains(".") ? classname : "org.apache.cassandra.hadoop." + classname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "java.lang.String getClassName();", "public String getClassName() {\n...
[ "0.8649212", "0.85047287", "0.8420065", "0.8261254", "0.8161003", "0.8161003", "0.8161003", "0.7943591", "0.79410255", "0.7936999", "0.7909252", "0.784939", "0.7793615", "0.7722043", "0.7722043", "0.77217203", "0.76898634", "0.7652028", "0.7646331", "0.7634703", "0.7582276", ...
0.0
-1
set read configuration settings
public void setLocation(String location, Job job) throws IOException { conf = HadoopCompat.getConfiguration(job); setLocationFromUri(location); if (ConfigHelper.getInputSlicePredicate(conf) == null) { SliceRange range = new SliceRange(slice_start, slice_end, slice_revers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setConfiguration() throws IOException{\n\t\tString confPath = \"mapreduce.conf\";\n\t\tFileInputStream fis = new FileInputStream(confPath);\n\t\tthis.load(fis);\n\t\tfis.close();\n\t}", "void setConfiguration();", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = Co...
[ "0.6803825", "0.6602744", "0.6467366", "0.64196783", "0.6407438", "0.6254745", "0.6192563", "0.6095234", "0.6089839", "0.60617185", "0.6056783", "0.6047338", "0.6026689", "0.60161614", "0.59997046", "0.59925216", "0.59845793", "0.5976927", "0.5970576", "0.59358263", "0.587914...
0.0
-1
set store configuration settings
public void setStoreLocation(String location, Job job) throws IOException { conf = HadoopCompat.getConfiguration(job); // don't combine mappers to a single mapper per node conf.setBoolean("pig.noSplitCombination", true); setLocationFromUri(location); if (username !=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setStore(String store) {\n this.store = store;\n }", "public void setConfiguration(Properties props);", "void setConfiguration();", "private synchronized void storeAppSettings() {\n\t \n\t\n \tif(_appSettings != null){\t\n \t\tAppLogger.debug2(\"AppFrame.storeAppSettings saving.\"...
[ "0.66335225", "0.65655273", "0.6329356", "0.6323459", "0.6169671", "0.6126457", "0.6110011", "0.6075936", "0.60237604", "0.5991422", "0.59848017", "0.5948313", "0.59209114", "0.5918126", "0.5901383", "0.5895685", "0.58677435", "0.58677435", "0.58603495", "0.5823013", "0.58225...
0.0
-1
Methods to get the column family schema from Cassandra
protected void initSchema(String signature) throws IOException { Properties properties = UDFContext.getUDFContext().getUDFProperties(CassandraStorage.class); // Only get the schema if we haven't already gotten it if (!properties.containsKey(signature)) { try ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Column> getSchema();", "public Schema getSchema();", "protected CfDef getCfDef(Cassandra.Client client)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n TimedOutException,\n SchemaDisagreementException,\n ...
[ "0.6207973", "0.61058366", "0.6050251", "0.5895904", "0.5893289", "0.58852977", "0.58849674", "0.5880807", "0.58396703", "0.58266985", "0.58024305", "0.5689311", "0.5650047", "0.564978", "0.56038046", "0.5597682", "0.55256724", "0.550905", "0.5439867", "0.541647", "0.5396963"...
0.51103985
49
we don't care about types, they all get casted to ByteBuffers
public void checkSchema(ResourceSchema schema) throws IOException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte [] getBuffer ();", "protected abstract ByteBuffer toMedia(Object object) throws BeanConversionException;", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "public abstract byte[] toBytes() throws Exception;", "@Override\n\tpublic void interpre...
[ "0.6550674", "0.64456385", "0.63875157", "0.63864446", "0.63247406", "0.6309023", "0.630344", "0.6299295", "0.62723106", "0.62723106", "0.6259924", "0.6128957", "0.6111764", "0.6111764", "0.6070121", "0.6069689", "0.6067946", "0.6005163", "0.59987515", "0.59679264", "0.586312...
0.0
-1
convert object to ByteBuffer
protected ByteBuffer objToBB(Object o) { if (o == null) return nullToBB(); if (o instanceof java.lang.String) return ByteBuffer.wrap(new DataByteArray((String)o).get()); if (o instanceof Integer) return Int32Type.instance.decompose((Integer)o); if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return EN...
[ "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.72288567", "0.6943703",...
0.71935076
19
write tuple data to cassandra
private void writeColumnsFromTuple(ByteBuffer key, Tuple t, int offset) throws IOException { ArrayList<Mutation> mutationList = new ArrayList<Mutation>(); for (int i = offset; i < t.size(); i++) { if (t.getType(i) == DataType.BAG) writeColumnsFromBag(key, (DataBag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected void writeTuple(Tuple tuple) throws IOException;", "public abstract boolean writeDataItem(BDTuple tuple) throws RollbackException;", "public void putNext(Tuple tuple) throws IOException {\n\t\tint sqlPos = 1;\n\t\ttry {\n\t\t\tint size = tuple.size();\n\t\t\tfor (int i = 0; i < size; i++) {\...
[ "0.67874354", "0.66470736", "0.6579441", "0.57488894", "0.57320356", "0.5728966", "0.5663143", "0.5637589", "0.56008244", "0.55752546", "0.5540476", "0.5535293", "0.5530282", "0.5504453", "0.549771", "0.5497134", "0.54850197", "0.5462409", "0.5412513", "0.5389826", "0.5376603...
0.59321636
3
compose Cassandra mutation from tuple
private Mutation mutationFromTuple(Tuple t) throws IOException { Mutation mutation = new Mutation(); if (t.get(1) == null) { if (allow_deletes) { mutation.deletion = new Deletion(); mutation.deletion.predicate = new org.apache.cassandra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Expr apply(Context ctx, Expr tuple, Expr val) {\n throw new UnsupportedOperationException(\"Unsupported z3 operation\");\n /*return em.tupleUpdateExpr(tuple, index, val);*/\n }", "private void introduceMutations() {\n }", "TupleExpr createTupleExpr();", "private ...
[ "0.59798354", "0.5738407", "0.5653028", "0.5521302", "0.5490331", "0.5434461", "0.5270924", "0.52706367", "0.51797163", "0.5136693", "0.50882375", "0.4934436", "0.49038962", "0.48821366", "0.48778144", "0.4867835", "0.48589355", "0.48561114", "0.48536047", "0.47933888", "0.47...
0.72368586
0
write bag data to Cassandra
private void writeColumnsFromBag(ByteBuffer key, DataBag bag) throws IOException { List<Mutation> mutationList = new ArrayList<Mutation>(); for (Tuple pair : bag) { Mutation mutation = new Mutation(); if (DataType.findType(pair.get(1)) == DataType.BAG) // supercolumn ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> void write(MDSKey id, T value) {\n try {\n table.put(new Put(id.getKey()).add(COLUMN, serialize(value)));\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "@Override\n\t\tpublic void write(K key, V value) throws IOException, InterruptedException {\n\t\t\t// TODO...
[ "0.56537104", "0.5638152", "0.5590291", "0.5447406", "0.54381907", "0.5436958", "0.54180324", "0.54008764", "0.533655", "0.53138524", "0.52670807", "0.5263338", "0.5261708", "0.5226049", "0.5186954", "0.5166502", "0.51554585", "0.5152684", "0.5147982", "0.5131343", "0.5100661...
0.6447438
0
write mutation to Cassandra
private void writeMutations(ByteBuffer key, List<Mutation> mutations) throws IOException { try { writer.write(key, mutations); } catch (InterruptedException e) { throw new IOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.spanner.v1.Mutation.Write getUpdate();", "com.google.spanner.v1.Mutation.Write getInsertOrUpdate();", "com.google.spanner.v1.Mutation.Write getReplace();", "com.google.spanner.v1.Mutation.Write getInsert();", "private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMe...
[ "0.6548927", "0.6006653", "0.59108853", "0.5868185", "0.5766662", "0.57200366", "0.5613993", "0.55400544", "0.54618055", "0.54172117", "0.53348356", "0.5326072", "0.5303245", "0.5289352", "0.5288329", "0.5283504", "0.5268903", "0.5257727", "0.5257727", "0.52432793", "0.520735...
0.60953426
1
get a list of columns with defined index
protected List<ColumnDef> getIndexes() throws IOException { CfDef cfdef = getCfDef(loadSignature); List<ColumnDef> indexes = new ArrayList<ColumnDef>(); for (ColumnDef cdef : cfdef.column_metadata) { if (cdef.index_type != null) indexes.add(cdef); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Column getColumns(int index);", "@Override\n public Column getColumns(int index) {\n return columns_.get(index);\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDef...
[ "0.844253", "0.7730856", "0.7493082", "0.7026316", "0.7016669", "0.6928064", "0.6831051", "0.68059236", "0.680113", "0.66224", "0.66124725", "0.6603581", "0.6603581", "0.6603502", "0.65915823", "0.6569837", "0.6557038", "0.6293882", "0.62905896", "0.6257748", "0.623333", "0...
0.62039167
26
get a list of Cassandra IndexExpression from Pig expression
private List<IndexExpression> filterToIndexExpressions(Expression expression) throws IOException { List<IndexExpression> indexExpressions = new ArrayList<IndexExpression>(); Expression.BinaryExpression be = (Expression.BinaryExpression)expression; ByteBuffer name = ByteBuffer.wrap(be.getLhs(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<IndexExpression> indexExpressionsFromString(String ie) throws IOException\n {\n assert ie != null;\n TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory());\n IndexClause indexClause = new IndexClause();\n try\n {\n deseria...
[ "0.68170136", "0.679842", "0.6752806", "0.61515236", "0.58727777", "0.57673335", "0.5756821", "0.5687236", "0.5635919", "0.56316817", "0.54991966", "0.54773825", "0.54525954", "0.54022473", "0.5377054", "0.5330347", "0.52369046", "0.5235171", "0.52259046", "0.5157765", "0.515...
0.69071984
0
convert a list of index expression to string
private static String indexExpressionsToString(List<IndexExpression> indexExpressions) throws IOException { assert indexExpressions != null; // oh, you thought cfdefToString was awful? IndexClause indexClause = new IndexClause(); indexClause.setExpressions(indexExpressions); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String indexFormat();", "Expression getIndexExpr();", "public String indexStr(int index) {\n\t\tif (index == TYPE_ANY) return \"*\";\n\t\tif (index == TYPE_ALL) return \"ALL\";\n\t\treturn Integer.toString(index);\n\t}", "public ATExpression base_indexExpression();", "public static String formatIndexed(Str...
[ "0.6669052", "0.62580335", "0.6187144", "0.5947889", "0.5934663", "0.5664372", "0.55542284", "0.55207413", "0.5500099", "0.54603153", "0.54494685", "0.54443544", "0.5415316", "0.53841513", "0.53840375", "0.5335962", "0.53285426", "0.5311014", "0.52941495", "0.524872", "0.5237...
0.72252756
0
convert string to a list of index expression
private static List<IndexExpression> indexExpressionsFromString(String ie) throws IOException { assert ie != null; TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory()); IndexClause indexClause = new IndexClause(); try { deserializer.deseri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<String> parseArgsAsIndexParam(String args) throws ParseException {\n Matcher stp1 = CHK_INDEX_FORMAT_STEP_1.matcher(args.trim());\n if (!stp1.matches()) {\n throw new ParseException(\"Couldn't match the index, the index part should only contain integer and '-',\"\n ...
[ "0.66002667", "0.6311849", "0.6004993", "0.5839112", "0.57950807", "0.5688023", "0.54039335", "0.53603244", "0.53521854", "0.5279057", "0.52665293", "0.521517", "0.519805", "0.5178481", "0.51560795", "0.5117545", "0.51023513", "0.5094219", "0.50893515", "0.507633", "0.5065332...
0.72342825
0
get a list of index expression
private List<IndexExpression> getIndexExpressions() throws IOException { UDFContext context = UDFContext.getUDFContext(); Properties property = context.getUDFProperties(CassandraStorage.class); if (property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE) != null) return ind...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression getIndexExpr();", "public ATExpression base_indexExpression();", "public Expression getIndex()\n {\n return index;\n }", "Index getIndices(int index);", "public List<Index> getIndexes();", "java.util.List<Index>\n getIndicesList();", "private List<IndexExpression>...
[ "0.78198165", "0.72530633", "0.6980704", "0.69424695", "0.68083423", "0.6677548", "0.66742766", "0.6481662", "0.6363471", "0.6348046", "0.6251286", "0.62123626", "0.6192797", "0.61737525", "0.6173646", "0.617085", "0.617085", "0.617085", "0.61561114", "0.6155153", "0.6104331"...
0.64511985
8
get a list of column for the column family
protected List<ColumnDef> getColumnMetadata(Cassandra.Client client) throws TException, CharacterCodingException, InvalidRequestException, ConfigurationException { return getColumnMeta(client, true, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Column> getColumns();", "java.util.List<Column>\n getColumnsList();", "List<String> getColumns();", "public List<String> getColumns();", "java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();", "public List getColumns() {...
[ "0.80494857", "0.77865624", "0.7722452", "0.7623284", "0.74557704", "0.73004586", "0.72875077", "0.72545916", "0.7215828", "0.719709", "0.7159851", "0.7092295", "0.70837766", "0.70658165", "0.7060869", "0.697172", "0.6970743", "0.694947", "0.6900517", "0.68969", "0.6885259", ...
0.0
-1
get column meta data
protected List<ColumnDef> getColumnMeta(Cassandra.Client client, boolean cassandraStorage, boolean includeCompactValueColumn) throws org.apache.cassandra.thrift.InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, TExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ColumnMeta getColumnMeta() {\n return cmeta_;\n }", "public Map<String, ColumnMetaData> getColumns();", "@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }", "public ColumnMetadata getColumn() {\r\n return m_column;\r\n }", "public abstract Lis...
[ "0.7982592", "0.71302867", "0.71195614", "0.69217354", "0.68334806", "0.6697036", "0.6619375", "0.6586441", "0.64122736", "0.64107317", "0.6402945", "0.6364951", "0.63527983", "0.6313676", "0.63092065", "0.630082", "0.6270877", "0.62707037", "0.6268282", "0.62662977", "0.6265...
0.59558475
72
get CFMetaData of a column family
protected CFMetaData getCFMetaData(String ks, String cf, Cassandra.Client client) throws NotFoundException, org.apache.cassandra.thrift.InvalidRequestException, TException, org.apache.cassandra.exceptions.InvalidRequestException, ConfigurationException { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<ColumnSpecification> metadata();", "public Map<String, ColumnMetaData> getColumns();", "public MetaData getMetaData();", "protected CfDef getCfDef(Cassandra.Client client)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n ...
[ "0.6844179", "0.6460133", "0.63943964", "0.6271038", "0.62396294", "0.62317336", "0.60984206", "0.6094993", "0.6071326", "0.60278535", "0.6011575", "0.58727324", "0.58676606", "0.58247036", "0.58029646", "0.578882", "0.5786323", "0.5772686", "0.57606924", "0.57364064", "0.562...
0.6758139
1
get index type from string
protected IndexType getIndexType(String type) { type = type.toLowerCase(); if ("keys".equals(type)) return IndexType.KEYS; else if("custom".equals(type)) return IndexType.CUSTOM; else if("composites".equals(type)) return IndexType.COMPOSITES; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IndexType type();", "public int typeIndex();", "private String mapIndexType(int type) {\n\t\tString indexType = null;\n\t\tswitch (type) {\n\t\tcase 0:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_HEAP;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_CLUSTERED;\n\t\t\tbreak;\n\t\t...
[ "0.7174289", "0.7015684", "0.6980689", "0.6769561", "0.6566994", "0.65475184", "0.6360165", "0.6219432", "0.612191", "0.6052042", "0.60410756", "0.60336137", "0.5992216", "0.598999", "0.59889275", "0.597542", "0.5928572", "0.59188795", "0.5907387", "0.58667266", "0.5853588", ...
0.76248264
0
convert key to a tuple
private Tuple keyToTuple(ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException { Tuple tuple = TupleFactory.getInstance().newTuple(1); addKeyToTuple(tuple, key, cfDef, comparator); return tuple; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tuple get(Key k) throws RelationException;", "private void addKeyToTuple(Tuple tuple, ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException\n {\n if( comparator instanceof AbstractCompositeType )\n {\n StorageHelper.setTupleValue(tuple, 0, composeComposite((A...
[ "0.66620976", "0.62839955", "0.59047025", "0.57495874", "0.57074326", "0.5612703", "0.55814356", "0.55432403", "0.5534108", "0.543542", "0.5400171", "0.5380315", "0.53311276", "0.5301507", "0.52723557", "0.52679455", "0.52679455", "0.52679455", "0.52679455", "0.52679455", "0....
0.6901293
0
add key to a tuple
private void addKeyToTuple(Tuple tuple, ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException { if( comparator instanceof AbstractCompositeType ) { StorageHelper.setTupleValue(tuple, 0, composeComposite((AbstractCompositeType) comparator, key)); } else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Key insert(Transaction tx,Tuple t) throws RelationException;", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "void add(String key);", "public void addTuple(Tuple tup) {\n table.add(tup);\n }", "public void add(Tuple t) {\n\t\tgetTuples().add(t);\...
[ "0.66012377", "0.6464579", "0.6432921", "0.63795066", "0.6257634", "0.61763906", "0.59320706", "0.5894303", "0.58836794", "0.58250165", "0.57744044", "0.57294166", "0.5704326", "0.5702622", "0.5679857", "0.5653132", "0.5615306", "0.5592336", "0.5591259", "0.5584772", "0.55807...
0.7418138
0
Deconstructs a composite type to a Tuple.
protected Tuple composeComposite(AbstractCompositeType comparator, ByteBuffer name) throws IOException { List<AbstractCompositeType.CompositeComponent> result = comparator.deconstruct(name); Tuple t = TupleFactory.getInstance().newTuple(result.size()); for (int i=0; i<result.size(); i++) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "TupleTypeRule createTupleTypeRule();", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "public static Tuple toTuple(Object o) throws ExecException {\n if (o == null)...
[ "0.58867824", "0.56663376", "0.5625366", "0.5613145", "0.55868894", "0.556699", "0.5541185", "0.5486098", "0.53649443", "0.53571945", "0.53211653", "0.52642936", "0.5235354", "0.5226492", "0.5221703", "0.51980543", "0.5193301", "0.51782554", "0.51727045", "0.5087873", "0.5063...
0.590007
0
decompose the query to store the parameters in a map
public static Map<String, String> getQueryMap(String query) throws UnsupportedEncodingException { String[] params = query.split("&"); Map<String, String> map = new HashMap<String, String>(params.length); for (String param : params) { String[] keyValue = param.split("="); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<String, String> queryToMap(String query){\n Map<String, String> result = new HashMap<String, String>();\n for (String param : query.split(\"&\")) {\n String pair[] = param.split(\"=\");\n if (pair.length>1) {\n result.put(pair[0], pair[1]);\n ...
[ "0.699404", "0.6668359", "0.6668359", "0.64421964", "0.6412091", "0.63452774", "0.621926", "0.6204302", "0.5844701", "0.58135265", "0.57985467", "0.5774542", "0.57499266", "0.5737957", "0.57125586", "0.5695749", "0.5674182", "0.5621249", "0.5572464", "0.55521584", "0.55521584...
0.5843489
9
return the CfInfo for the column family
protected CfDef getCfDef(Cassandra.Client client) throws org.apache.cassandra.thrift.InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, TException, NotFoundException, org.apache.cassandra.exce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CFMetaData getCFMetaData(String ks, String cf, Cassandra.Client client)\n throws NotFoundException,\n org.apache.cassandra.thrift.InvalidRequestException,\n TException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationExcepti...
[ "0.5958459", "0.59284073", "0.55948126", "0.55498207", "0.552016", "0.5493376", "0.54807806", "0.5363934", "0.53530383", "0.53489786", "0.53466666", "0.5335848", "0.5289768", "0.52827597", "0.52807224", "0.5240601", "0.5237857", "0.5230128", "0.521224", "0.5203389", "0.519609...
0.64303637
0
get the columnfamily definition for the signature
protected CfDef getCfDef(String signature) throws IOException { UDFContext context = UDFContext.getUDFContext(); Properties property = context.getUDFProperties(CassandraStorage.class); String prop = property.getProperty(signature); return cfdefFromString(prop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<ColumnSpecification> metadata();", "protected void initSchema(String signature) throws IOException\n {\n Properties properties = UDFContext.getUDFContext().getUDFProperties(CassandraStorage.class);\n\n // Only get the schema if we haven't already gotten it\n if (!prop...
[ "0.6163313", "0.59198797", "0.5672286", "0.5669904", "0.5660651", "0.5607494", "0.55679077", "0.553131", "0.53917885", "0.53777206", "0.5359548", "0.53582", "0.5352197", "0.5342324", "0.5341032", "0.5330743", "0.5318132", "0.5313399", "0.5305974", "0.52813977", "0.5279122", ...
0.6684656
0
convert string back to CfDef
protected static CfDef cfdefFromString(String st) throws IOException { assert st != null; TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory()); CfDef cfDef = new CfDef(); try { deserializer.deserialize(cfDef, Hex.hexToBytes(st)); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "C12000e mo41091f(String str);", "public C6987b mo21798a(String str, float f, boolean z, char[] cArr) {\n Typeface typeface;\n String lowerCase = str.toLowerCase();\n if (lowerCase.endsWith(\".otf\") || lowerCase.endsWith(\".ttf\")) {\n typeface = Typeface.createFromAsset(this.f245...
[ "0.5875143", "0.55192506", "0.54222405", "0.5422026", "0.52650017", "0.5259987", "0.5240363", "0.51543784", "0.51534677", "0.51522595", "0.5130554", "0.5073374", "0.5070447", "0.50658864", "0.50471395", "0.50334924", "0.50190306", "0.500766", "0.50076425", "0.5005797", "0.498...
0.7076596
0
convert CfDef to string
protected static String cfdefToString(CfDef cfDef) throws IOException { assert cfDef != null; // this is so awful it's kind of cool! TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory()); try { return Hex.bytesToHex(serializer.serialize(cfDef)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String toFactString() {\n\t\tStringBuffer buf = new StringBuffer();\n\t\tbuf.append(\"f-\" + id + \" (\" + this.temp...
[ "0.5891149", "0.5891149", "0.5868893", "0.58054036", "0.5782299", "0.576485", "0.5736215", "0.5723345", "0.572315", "0.5717281", "0.5709088", "0.5708661", "0.56967086", "0.5692102", "0.5691833", "0.5671641", "0.5669247", "0.56570894", "0.56523967", "0.5649179", "0.5644245", ...
0.73371255
0
parse the string to a cassandra data type
protected AbstractType parseType(String type) throws IOException { try { // always treat counters like longs, specifically CCT.compose is not what we need if (type != null && type.equals("org.apache.cassandra.db.marshal.CounterColumnType")) return LongType.ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.apache.spark.sql.catalyst.types.DataType parseDataType (java.lang.String dataTypeString) { throw new RuntimeException(); }", "public static JavaDataType fromString(String type) {\r\n switch (type) {\r\n case \"String\":\r\n return STRING;\r\n case \"Integer...
[ "0.7162399", "0.6716358", "0.63759255", "0.62385535", "0.6181499", "0.6175078", "0.6102705", "0.60879964", "0.60794026", "0.606816", "0.605267", "0.59990704", "0.5978109", "0.59647095", "0.5903822", "0.58876663", "0.58129966", "0.5783849", "0.5677445", "0.565642", "0.5585197"...
0.62441254
3
convert a column to a tuple
protected Tuple columnToTuple(ColumnFamilyRecordReader.Column column, CfDef cfDef, AbstractType comparator) throws IOException { Tuple pair = TupleFactory.getInstance().newTuple(2); // name if(comparator instanceof AbstractCompositeType) StorageHelper.setTupleValue(pair, 0, comp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ColumnPair columnPair();", "public abstract T getTuple(Record record);", "TupleExpr createTupleExpr();", "@Override\n\t\t\tpublic Object invoke(Tuple tuple) {\n\t\t\t\treturn type.cast( col.invoke(tuple) );\n\t\t\t}", "@VTID(13)\r\n java.lang.String getTuple();", "@Override\n\t\t\tpublic ColumnMetaData ...
[ "0.64158595", "0.6105184", "0.5994017", "0.583753", "0.5789424", "0.5659082", "0.5601636", "0.5583318", "0.54933846", "0.5441207", "0.54015905", "0.5364403", "0.53629756", "0.53170776", "0.5271643", "0.52589273", "0.5253562", "0.5216328", "0.5201708", "0.516942", "0.5145164",...
0.65916157
0
construct a map to store the mashaller type to cassandra data type mapping
protected Map<MarshallerType, AbstractType> getDefaultMarshallers(CfDef cfDef) throws IOException { Map<MarshallerType, AbstractType> marshallers = new EnumMap<MarshallerType, AbstractType>(MarshallerType.class); AbstractType comparator; AbstractType subcomparator; AbstractType defau...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n...
[ "0.70021963", "0.65343326", "0.6499513", "0.64210683", "0.63529474", "0.6243956", "0.6232435", "0.6198081", "0.6103721", "0.60057974", "0.59868276", "0.58789134", "0.5867471", "0.58364445", "0.57318395", "0.5716134", "0.57043743", "0.5700592", "0.568911", "0.5639885", "0.5622...
0.0
-1
Execute toString on every object stored on page.
@Override public String toString() { StringBuilder stb = new StringBuilder(); for (int i = 0; i < elements.size(); i++) { stb.append("Element " + i + ":" + elements.get(i) + " "); } return stb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String toString()\r\n {\r\n return \"Page \"+name;\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor(GameObject object : this.objects) {\r\n\t\t\tsb.append(object.toString() + \"\\n\");\r\n\t\t}\r\n\t\treturn sb.toStr...
[ "0.6478938", "0.61475265", "0.5835574", "0.57358056", "0.5691025", "0.5690682", "0.56815696", "0.5640263", "0.5628207", "0.56158394", "0.55829024", "0.5576445", "0.5571697", "0.5560265", "0.5541089", "0.55371296", "0.5532334", "0.55220526", "0.55220354", "0.55186874", "0.5516...
0.0
-1
Sets whether to connect to disconnect from hardware.
public synchronized void setConnect(boolean connect) { wantConnect = connect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDisconnect(boolean disconnect) {\n this.disconnect = disconnect;\n }", "public void disconnect()\n {\n isConnected = false;\n }", "public Builder setDisconnect(boolean value) {\n bitField0_ |= 0x00000008;\n disconnect_ = value;\n onChanged();\n retu...
[ "0.7090503", "0.6887313", "0.67608416", "0.675639", "0.6545749", "0.6510391", "0.64739347", "0.62576777", "0.6230276", "0.6212184", "0.61921805", "0.6153017", "0.6122828", "0.61069864", "0.6105758", "0.6082055", "0.60544115", "0.60067976", "0.6002806", "0.6000493", "0.5978399...
0.70674354
1
Broadcasts connection status change on the event bus.
private void sendConnectionMessage(EventMessage.EventType eventType) { EventMessage message = new EventMessage(eventType); EventBus.getDefault().post(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void notifyConnectionStateChanged(State state);", "private void setupConnStateBroadcastReceiver() {\n connStateBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.CONNECTION_...
[ "0.6885758", "0.6533883", "0.65295863", "0.6435707", "0.62037206", "0.62034935", "0.608443", "0.6075701", "0.6039496", "0.6037239", "0.59978455", "0.5915648", "0.5888232", "0.5863592", "0.5862478", "0.58423364", "0.5832732", "0.582089", "0.58128256", "0.5807284", "0.5784017",...
0.5452979
40
Makes sure that we're connected. If not, tries to connect.
private boolean verifyBTConnected() { if (btSocket != null && btSocket.isConnected()) { return true; } sendConnectionMessage(EventMessage.EventType.HW_CONNECTING); try { if (btDevice == null) { btDevice = btAdapter.getRemoteDevice(btAddress); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void attemptToConnect() {\n LOG.warn(\"Attempting to connect....\");\n \n if (// No connection configuration\n getConnectionConfiguration() == null &&\n (getServerHostname() == null || getServerPort() == 0 ||\n getServiceName() == null || getFromAddress() == null ||\n ...
[ "0.76970303", "0.7615232", "0.7500187", "0.735776", "0.73511934", "0.7345556", "0.7138713", "0.7108822", "0.69431305", "0.6904944", "0.6838642", "0.6833227", "0.6813874", "0.68032646", "0.6783984", "0.6783984", "0.6777995", "0.67771065", "0.6775878", "0.67569333", "0.6747688"...
0.0
-1
Verifies that we're not connected. If we are, then disconnects.
private boolean verifyBTClosed() { if (btSocket != null) { try { btSocket.close(); btSocket = null; } catch (IOException e) { Log.d(TAG, "Exception closing BT socket in BT thread: " + e.toString()); } finally { s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDisconnect();", "public void disconnect()\n {\n isConnected = false;\n }", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "private boolean validateConnection() {\n boolean success = _vcVlsi.testConnection();\n if (!success) {\n _log.log(Level.WAR...
[ "0.74778205", "0.7035717", "0.6962319", "0.67668533", "0.67426485", "0.67426485", "0.67328274", "0.65919393", "0.654777", "0.654777", "0.6482686", "0.64080256", "0.640347", "0.640333", "0.639562", "0.6380644", "0.63804895", "0.63726336", "0.6371678", "0.6364393", "0.6325768",...
0.6012245
57
Broadcast the received data on the event bus.
private void sendData(SensorData sensorData) { EventMessage message = new EventMessage(EventMessage.EventType.RECEIVED_RAW_DATA); message.setSensorData(sensorData); EventBus.getDefault().post(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void broadcast()\n\t{\n\t\ttopic.broadcast(originalMessage);\n\t}", "public void broadcast() {\n for (int i = 1; i <= nbMessagesToBroadcast; i++) {\n Message broadcastMsg = new Message(pid, pid, i,false, null);\n lcb.broadcast(broadcastMsg);\n logs.add(String....
[ "0.64186144", "0.6392569", "0.6387547", "0.62312037", "0.60645485", "0.5863174", "0.5858464", "0.5828157", "0.57581633", "0.5720424", "0.57093745", "0.5704554", "0.56762314", "0.5659334", "0.5656252", "0.56477934", "0.56444126", "0.56219393", "0.5582206", "0.55729854", "0.556...
0.50960803
82
Gets the str label name.
public String getStrLabelName() { return strLabelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getLabel() {\n return name().toLowerCase().repl...
[ "0.8098949", "0.8083376", "0.8004047", "0.7895781", "0.77826816", "0.7641063", "0.76186967", "0.75427586", "0.7532369", "0.75230145", "0.7498025", "0.7478027", "0.74713576", "0.7463299", "0.743822", "0.74159044", "0.73958117", "0.73958117", "0.73958117", "0.73947334", "0.7394...
0.8240897
0
Sets the str label name.
public void setStrLabelName(String strLabelName) { this.strLabelName = strLabelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNameLabel(String nameLabel) {\r\n this.nameLabelText = nameLabel;\r\n this.nameLabel.setText(this.nameLabelText);\r\n }", "public void setLabelName(String labelName){\n m_labelName = labelName;\n }", "void setLabel(String label);", "public static void setLabel(Label ...
[ "0.8064597", "0.80197036", "0.78402436", "0.76443535", "0.7643892", "0.7488307", "0.74532557", "0.74244905", "0.7342548", "0.7320873", "0.7270356", "0.7255069", "0.7242706", "0.7227038", "0.7223305", "0.71846986", "0.71686125", "0.7168412", "0.7156522", "0.71446645", "0.71349...
0.79027045
2
Gets the str label value.
public String getStrLabelValue() { return strLabelValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLabel();", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n ...
[ "0.7751211", "0.770079", "0.76693296", "0.75820154", "0.7539102", "0.7514892", "0.7507691", "0.7506253", "0.74759597", "0.74612534", "0.74555266", "0.7415474", "0.7411214", "0.7411214", "0.7411214", "0.7410111", "0.74062115", "0.73991406", "0.7394844", "0.7394844", "0.739332"...
0.8289119
0
Sets the str label value.
public void setStrLabelValue(String strLabelValue) { this.strLabelValue = strLabelValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLabel(String label);", "public void setLabel( String label ) {\r\n lbl = label;\r\n }", "public void setLabel(String s) {\n if (s == null && label == null) {\n return;\n }\n\n if (s == null || !s.equals(label)) {\n String oldLabel = label;\n ...
[ "0.7862323", "0.75503314", "0.7412686", "0.74003017", "0.73824424", "0.73718274", "0.7329873", "0.727274", "0.7266538", "0.7264917", "0.72572976", "0.72432864", "0.7191876", "0.7191876", "0.71779025", "0.7173369", "0.7156253", "0.7125122", "0.71199405", "0.7087996", "0.707926...
0.7906176
0
Gets the str profile attrib id.
public String getStrProfileAttribId() { return strProfileAttribId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProfileAttribute() {\r\r\n\t\treturn _profileAttribute;\r\r\n\t}", "public int getProfile_id() {\n return profileID;\n }", "public void setStrProfileAttribId(String strProfileAttribId) {\r\n\t\tthis.strProfileAttribId = strProfileAttribId;\r\n\t}", "public String getProfileId() {\n ...
[ "0.68827635", "0.6739489", "0.66211617", "0.65727496", "0.6500068", "0.6378529", "0.6378529", "0.6341917", "0.6247033", "0.623297", "0.6108102", "0.60061944", "0.59828293", "0.59518707", "0.5945974", "0.5920822", "0.58976686", "0.5890026", "0.5882206", "0.5877017", "0.5846938...
0.83705765
0