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
Creates a new message with headers
public HeaderMessage(Map<String, AbstractHeader> headers, Object originalMessage) { this.headers = headers; this.originalMessage = originalMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Header createHeader();", "private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}", "private static MessageHeader createMetaHeader(byte[] meta) {\n\t\tObject[...
[ "0.6691414", "0.65118384", "0.649699", "0.6361791", "0.63551635", "0.63261974", "0.6324089", "0.62813187", "0.6279251", "0.6228606", "0.6132674", "0.61309373", "0.610907", "0.60755736", "0.6073596", "0.6073306", "0.604839", "0.6007115", "0.59679204", "0.5967494", "0.59643584"...
0.66185796
1
Returns the header map of this message
public Map<String, AbstractHeader> getHeaders() { return headers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Header> getHeaderMap() {\n return headerMap;\n }", "public Map<String,List<String>> getHeaderMap() {\n\n\t\treturn headers;\n\t}", "public Map<String, String> getHeaderList() {\n return headerMap;\n }", "public Map getHeaders() {\r\n if (headers == null) {\r\n ...
[ "0.85400814", "0.8461468", "0.8214169", "0.78122014", "0.76102614", "0.7600301", "0.7454891", "0.7382442", "0.7377497", "0.7346974", "0.73452526", "0.734447", "0.7325687", "0.7323158", "0.731287", "0.7286371", "0.7222356", "0.71402967", "0.7083358", "0.6938493", "0.67842805",...
0.75003844
6
Returns the original message, which was transported as a payload
public Object getOriginalMessage() { return originalMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Payload.Inbound getInboundPayload();", "public Object getPayload() {\n return payload;\n }", "Payload getMsg();", "com.google.protobuf.ByteString getPayload();", "com.google.protobuf.ByteString getPayload();", "public byte[] getPayload() {\r\n return Utilities.copyOf(payload);\r\n }"...
[ "0.7184482", "0.71613914", "0.7154784", "0.7145324", "0.7145324", "0.71291363", "0.7005046", "0.7005046", "0.6987429", "0.69704634", "0.69232345", "0.6859082", "0.6837943", "0.6834764", "0.68296206", "0.67941236", "0.67941236", "0.6729724", "0.6728434", "0.6728434", "0.672145...
0.77492887
0
Created by suneetsrivastava on 09/01/18.
@Dao @TypeConverters({DateConverter.class}) public interface DAO { @Insert(onConflict = OnConflictStrategy.REPLACE) void insert(DatabaseModel databaseModels); @Query("Select *from todoitem") LiveData<List<DatabaseModel>> getAllTask(); @Query("Select * from todoitem where id = :id") LiveData<D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\...
[ "0.61713934", "0.60158616", "0.5942988", "0.5927011", "0.5872769", "0.5868775", "0.58585805", "0.58486724", "0.58486724", "0.58133775", "0.5811819", "0.5789437", "0.576773", "0.5756081", "0.5740342", "0.5713469", "0.5687989", "0.5671289", "0.56546265", "0.56546265", "0.564068...
0.0
-1
Providing path of the Chrome driver
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe"); //creating an object to hold the chrome driver so we don't have to constantly call the chrome driver every time WebDriver driver = new ChromeDriver(); //Getting the URL - driver.get("https://www....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Selenium(String chromePath) {\n this.browserDriverPath = chromePath; \n }", "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "public static void setChromeDriverProperty() {...
[ "0.79314923", "0.758713", "0.737577", "0.7310422", "0.72644556", "0.7149517", "0.6822619", "0.6809245", "0.6738947", "0.6712025", "0.6651061", "0.6617965", "0.6609622", "0.6595428", "0.6537957", "0.6483031", "0.6448509", "0.6440631", "0.6428321", "0.640671", "0.63801265", "...
0.0
-1
For now we can return the first result from the list
public WeatherDataResponse getWeather() { return weather.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item getFirst();", "protected T getFirstValue(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(0) : null;\n\t}", "public T getFirst();", "public T getFirst();", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate...
[ "0.6996018", "0.6837179", "0.68192255", "0.68192255", "0.68027353", "0.6791435", "0.6781356", "0.6735721", "0.6714117", "0.66746986", "0.66702664", "0.66399765", "0.66250354", "0.6612888", "0.6600594", "0.65874106", "0.6580198", "0.65734524", "0.6558028", "0.6540613", "0.6522...
0.0
-1
getter ve setter fonksiyonlari.
public int getDepNo() { return depNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "String setValue();", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void setdat()\n {\n }", "p...
[ "0.6637426", "0.6600297", "0.64978033", "0.624952", "0.6221116", "0.61840385", "0.61642486", "0.6145126", "0.6141269", "0.6130721", "0.61184764", "0.61079097", "0.60643923", "0.60613596", "0.60357636", "0.6022706", "0.60078883", "0.6007764", "0.59907264", "0.59858686", "0.597...
0.0
-1
Still accepting a String
void setMyField(String val) { try { myField = Integer.parseInt(val); } catch (NumberFormatException e) { myField = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean accepts(String string);", "public boolean canProvideString();", "@Override\n public void handleString(String s) {\n\n }", "@Override\r\n\tpublic void acceptInput(String input) {\n\t\t\r\n\t}", "public static String acceptString() {\n\t\tString stringData = null;\r\n\t\...
[ "0.7348218", "0.70880884", "0.6742154", "0.67003393", "0.6569854", "0.65221435", "0.6390344", "0.63814366", "0.6373621", "0.6342101", "0.63335097", "0.63281924", "0.6306693", "0.6273002", "0.6243563", "0.6239266", "0.622927", "0.6215401", "0.6205175", "0.62039214", "0.6202943...
0.0
-1
Creates new form SearchEmployee
public SearchEmp() { initComponents(); jPanelWrongAge.setVisible(false); jPanelWrongEmail.setVisible(false); jPanelWrongID.setVisible(false); jPanelWrongName.setVisible(false); jPanelWrongPass.setVisible(false); jPanelWrongPhoneNo.setVisible(false); jPanel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/showNewEmpForm\")\n\tpublic String showNewEmpForm(Model model) {\n\t\tEmployees employee = new Employees();\n\t\tmodel.addAttribute(\"employee\", employee);\n\t\treturn \"new_employee\";\n\t}", "@RequestMapping(method=RequestMethod.POST ,value=\"/searchadminemployee\")\n\tpublic ModelAndView gettE...
[ "0.70475763", "0.62980884", "0.62710154", "0.61946505", "0.61633825", "0.6119846", "0.60433716", "0.6025577", "0.60091436", "0.600434", "0.59755933", "0.58910424", "0.58773893", "0.5873585", "0.5860666", "0.58182436", "0.5809245", "0.5765512", "0.57361674", "0.57301426", "0.5...
0.533805
71
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTextFieldSearchIDEmployee = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
GENFIRST:event_jTextFieldIDActionPerformed TODO add your handling code here:
private void jTextFieldIDActionPerformed(java.awt.event.ActionEvent evt) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jtxtIDActionPerformed(java.awt.event.ActionEvent evt) {\n \n }", "private void custIDTextFieldActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtCIdActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField4ActionPerformed(java.awt.even...
[ "0.8894681", "0.79855", "0.79741204", "0.7837954", "0.78222674", "0.78222674", "0.77156186", "0.77156186", "0.7700402", "0.76937973", "0.76609945", "0.76609945", "0.76609945", "0.7635679", "0.7635679", "0.7635679", "0.7635679", "0.76099896", "0.75917864", "0.75572324", "0.755...
0.9029014
0
GENFIRST:event_jLabelSearchMouseEntered TODO add your handling code here:
private void jLabelSearchMouseEntered(java.awt.event.MouseEvent evt) { setColor(jPanel1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseEntered(MouseEvent e) {\n SearchBox source = (SearchBox) e.getComponent();\n source.setFocusable(true);\n }", "private void searchBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchBtnMouseEntered\n searc...
[ "0.76712", "0.75409555", "0.7332581", "0.71502125", "0.709328", "0.686942", "0.68683225", "0.684454", "0.6830801", "0.6830801", "0.6830801", "0.6830801", "0.6771175", "0.6762995", "0.6733142", "0.67168105", "0.66772217", "0.66526926", "0.663908", "0.6631076", "0.6580323", "...
0.79652464
0
The constructor for the presenter
public ResultPresenter(ResultsView view, ArrayList<Integer> amountCorrect, int deckIndex, String mode, String filePath) { this.view = view; this.amountCorrect = amountCorrect; MemorizationTrainingTool mtt = MemorizationTrainingTool.getInstance(); deckTitle = mtt.getActiveUser().getDeck(d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void initializePresenter() {\n\r\n\t}", "private void initPresenter() {\n\n RequestQueue requestQueue = App.getInstance().getRequestQueue();\n CatsHttp catsHttp = new VolleyCatsHttp(requestQueue);\n\n CatsRepository catsRepository = new CatsRepository(catsHttp);\n\n ...
[ "0.7588895", "0.7573631", "0.75164104", "0.71108073", "0.7003973", "0.6922232", "0.68566597", "0.68318236", "0.6807164", "0.67897034", "0.6712112", "0.6691926", "0.6685189", "0.6673036", "0.6669458", "0.66547805", "0.6650918", "0.6634216", "0.6632001", "0.66115296", "0.660173...
0.0
-1
Tells the view the result Where the first element in amountCorrect is amount of correct answers And the second element is total amount of questions
public void onCreate() { view.initTexts(amountCorrect.get(0), amountCorrect.get(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showResults() {\n if (!sent) {\n if(checkAnswerOne()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerTwo()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerThree()) {\n nbOfCorrectAnswers++;\n ...
[ "0.73974186", "0.7071401", "0.69197387", "0.6768463", "0.67553216", "0.67515224", "0.6736245", "0.6709094", "0.6700548", "0.66505134", "0.6515911", "0.64246404", "0.64171606", "0.6408727", "0.6389216", "0.63706595", "0.63636136", "0.63455874", "0.6330908", "0.6318715", "0.629...
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { // TODO carregarTela("FXML_AdminHome.fxml"); btnHome.setStyle("-fx-background-color: #1d2a45; -fx-text-fill: #ce9e6d;"); btnReservas.setStyle("-fx-background-color: transparent; -fx-text-fill: #576271;"); btnQuart...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
TODO Autogenerated method stub public Rwalk(int sX, int xY, int mSteps, int squares)
public static void main(String[] args) { Rwalk p1 = new Rwalk( -3, 0, 10000000, 2000000); Rwalk p2 = new Rwalk( 3, 0, 10000000, 2000000); int collisions = 0; for(int i = 0; i < 10000000; i++) { collide(p1, p2); if(didCollide(p1, p2) == true) { collisions++; } } // End of For // O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void move(int steps);", "public void walk(Rectangle re, IWalkThrought<T> i);", "public void walk(int direction);", "private void move(String s) {\r\n String[] commands = s.split(\"\");\r\n for(int x=0; x<commands.length; x++){\r\n switch(commands[x]) {\r\n case \"L\":\...
[ "0.55488604", "0.5114626", "0.50688535", "0.497701", "0.49073744", "0.49026707", "0.487901", "0.4866929", "0.48275062", "0.48087528", "0.47811335", "0.477186", "0.47557408", "0.4721409", "0.46613544", "0.46447417", "0.46098852", "0.46017897", "0.45925364", "0.45816255", "0.45...
0.0
-1
Method to perform a right rotation.
protected Node<E> rotateRight( Node<E> root ) { if( root == null || root.left == null ) { return null; } Node<E> tempNode = root.left; root.left = tempNode.right; tempNode.right = root; return tempNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void rotateRight();", "public void rotateRight() {\n\t\tthis.direction = this.direction.rotateRight();\n\t}", "private void rotateRight() {\n robot.leftBack.setPower(TURN_POWER);\n robot.leftFront.setPower(TURN_POWER);\n robot.rightBack.setPower(-TURN_POWER);\n robot...
[ "0.85323465", "0.8022073", "0.8002977", "0.7919244", "0.78972703", "0.7891573", "0.7865101", "0.77358156", "0.76433384", "0.7575767", "0.74907935", "0.74845773", "0.74669814", "0.73579407", "0.7330528", "0.7262364", "0.7216286", "0.72060513", "0.7202097", "0.7130842", "0.7117...
0.6138661
99
Method to perform a left rotation.
protected Node<E> rotateLeft( Node<E> root ) { if( root == null || root.right == null) { return null; } Node<E> tempNode = root.right; root.right = tempNode.left; tempNode.left = root; return tempNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void rotateLeft();", "public void rotateLeft() {\n\t\tthis.direction = this.direction.rotateLeft();\n\t}", "public void rotateLeft() {\n\t\tif (rotLeft == null) {\n\t\t\tQuaternion quat = new Quaternion();\n\t\t\tquat.fromAngles(0f, (float) Math.toRadians(90), 0f);\n\t\t\trotLeft = quat.toRota...
[ "0.8542166", "0.82967585", "0.8241201", "0.81562203", "0.8127938", "0.8084228", "0.79085314", "0.7822214", "0.77895886", "0.7720236", "0.7675774", "0.7568301", "0.7340196", "0.7318705", "0.72043675", "0.7082608", "0.7079114", "0.70684963", "0.7023839", "0.7023823", "0.6967695...
0.64438665
64
/ / / / / / / / / / / / / / / / / / / / / / / / /
public interface IConnectionPointContainer /* */ extends IUnknown /* */ { /* 33 */ public static final Guid.IID IID_IConnectionPointContainer = new Guid.IID("B196B284-BAB4-101A-B69C-00AA00341D07"); /* */ /* */ WinNT.HRESULT FindConnectionPoint(Guid.REFIID paramREFIID, PointerByReference paramPointe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int getNumPatterns() { return 64; }", "double passer();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "private int parent(int i){return (i-1)/2;}", "void mo33732Px();", "public Integer getWidth(){return this.width;}", "private i...
[ "0.5139372", "0.51313776", "0.51177174", "0.5097944", "0.50429046", "0.5020976", "0.50177497", "0.4975741", "0.49648663", "0.49636397", "0.49458918", "0.49297336", "0.49219915", "0.49200952", "0.4919168", "0.49147594", "0.4914657", "0.48872775", "0.4886721", "0.48602197", "0....
0.0
-1
HACK better get rid of this method altogether!
@Override public BytesReceiver put(final ByteBuffer src) { return put(src.array()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void interr() {\n\t}", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }"...
[ "0.5850253", "0.5637089", "0.55861795", "0.5576416", "0.5451391", "0.5442709", "0.53848296", "0.5375943", "0.53618425", "0.5347583", "0.531278", "0.5255396", "0.52483904", "0.52435344", "0.52425987", "0.5234579", "0.5225885", "0.5224578", "0.5194762", "0.5194762", "0.5187079"...
0.0
-1
Return my NbaLogger implementation (e.g. NbaLogService).
protected NbaLogger getLogger() { if (logger == null) { try { logger = NbaLogFactory.getLogger(this.getClass()); } catch (Exception e) { NbaBootLogger.log(this.getClass().getName() + " could not get a logger from the factory."); e.printStackTrace(System.out); } } return logger; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static NbaLogger getLogger() {\n\t\tif (logger == null) {\n\t\t\ttry {\n\t\t\t\tlogger = NbaLogFactory.getLogger(NbaCyberPrintRequests.class.getName());\n\t\t\t} catch (Exception e) {\n\t\t\t\tNbaBootLogger.log(\"NbaCyberPrintRequests could not get a logger from the factory.\");\n\t\t\t\te.printStackTrac...
[ "0.75140125", "0.6898219", "0.6892901", "0.67883223", "0.67881256", "0.6745573", "0.67039585", "0.6591696", "0.6580939", "0.6569928", "0.6568218", "0.6540062", "0.65307087", "0.6509694", "0.649094", "0.6490446", "0.6421679", "0.6419893", "0.64093286", "0.63866895", "0.6379607...
0.7514215
0
Create a TX Request value object that will be used to retrieve the contract.
public NbaTXRequestVO createRequestObject(NbaDst nbaDst, int access, String businessProcess, NbaUserVO user) { NbaTXRequestVO nbaTXRequest = new NbaTXRequestVO(); nbaTXRequest.setTransType(NbaOliConstants.TC_TYPE_HOLDINGINQ); nbaTXRequest.setTransMode(NbaOliConstants.TC_MODE_ORIGINAL); nbaTXRequest.setInquiryLe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TxnRequestProto.TxnRequest getTxnrequest();", "private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerD...
[ "0.66469944", "0.62420845", "0.6139038", "0.61042666", "0.6039133", "0.59389484", "0.59118706", "0.5903413", "0.58025616", "0.57864565", "0.5769424", "0.5746127", "0.57288206", "0.57204825", "0.5700187", "0.5684559", "0.5662748", "0.5657215", "0.5633502", "0.5633114", "0.5609...
0.5609651
20
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jSeparator1 = new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73185146", "0.7290127", "0.7290127", "0.7290127", "0.7285798", "0.7247533", "0.7214021", "0.720785", "0.71952385", "0.71891224", "0.7184117", "0.7158779", "0.7147133", "0.70921415", "0.70792264", "0.7055538", "0.6986984", "0.6976409", "0.6955238", "0.69525516", "0.69452786...
0.0
-1
construct from FCNBase + double[] for parameters and errors with default strategy
public MnScan(FCNBase fcn, double[] par, double[] err) { this(fcn, par, err, DEFAULT_STRATEGY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainMo...
[ "0.534033", "0.51219845", "0.5100574", "0.5096892", "0.50754774", "0.50525606", "0.5038021", "0.5018085", "0.49902523", "0.49372077", "0.4892803", "0.4888679", "0.48772693", "0.48692667", "0.48614356", "0.4854686", "0.4846703", "0.48443177", "0.4820656", "0.47998717", "0.4794...
0.0
-1
construct from FCNBase + double[] for parameters and errors
public MnScan(FCNBase fcn, double[] par, double[] err, int stra) { this(fcn, new MnUserParameterState(par, err), new MnStrategy(stra)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float[] feedForward(float... inputs);", "public FunctionJet2Adapter(int baseDimension) \n {\n super(baseDimension); \n hessian = new double[baseDimension];\n }", "static Nda<Float> of( float... value ) { return Tensor.of( Float.class, Shape.of( value.length ), value ); }", "public ...
[ "0.5395414", "0.53691596", "0.5281515", "0.5275208", "0.5170026", "0.516202", "0.5097144", "0.5074413", "0.50641173", "0.49519697", "0.4950434", "0.49423265", "0.49206528", "0.49158964", "0.4908247", "0.49034214", "0.48854083", "0.48595974", "0.48534662", "0.48406473", "0.482...
0.0
-1
construct from FCNBase + double[] for parameters and MnUserCovariance with default strategy
public MnScan(FCNBase fcn, double[] par, MnUserCovariance cov) { this(fcn, par, cov, DEFAULT_STRATEGY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void useCovarianceMatrix(){\n this.covRhoOption = true;\n }", "public abstract double covariance(double x1, double x2);", "public MultivariateGaussianDM() {\n\t}", "private static native void covarianceEstimation_0(long src_nativeObj, long dst_nativeObj, int windowRows, int windowCols);", ...
[ "0.5172618", "0.5048253", "0.50228643", "0.47925228", "0.47330895", "0.47144538", "0.46749952", "0.46452865", "0.46333367", "0.46299955", "0.46096176", "0.45246643", "0.4519696", "0.4485311", "0.44784868", "0.44566593", "0.44560394", "0.44224", "0.44157368", "0.44142887", "0....
0.42344964
40
construct from FCNBase + double[] for parameters and MnUserCovariance
public MnScan(FCNBase fcn, double[] par, MnUserCovariance cov, int stra) { this(fcn, new MnUserParameterState(par, cov), new MnStrategy(stra)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double covariance(double x1, double x2);", "public MultivariateGaussianDM() {\n\t}", "public FunctionJet2Adapter(int baseDimension) \n {\n super(baseDimension); \n hessian = new double[baseDimension];\n }", "private static native void covarianceEstimation_0(long src...
[ "0.5535273", "0.5353012", "0.5047706", "0.50202745", "0.49313715", "0.4888688", "0.48655072", "0.4825943", "0.48124492", "0.47668883", "0.4677177", "0.46583068", "0.4615", "0.45558736", "0.45531377", "0.45531377", "0.45526516", "0.4545982", "0.45438495", "0.4537978", "0.45376...
0.0
-1
construct from FCNBase + MnUserParameters with default strategy
public MnScan(FCNBase fcn, MnUserParameters par) { this(fcn, par, DEFAULT_STRATEGY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NetworkFunctionUserConfiguration() {\n }", "public BaseParameters(){\r\n\t}", "public DefaultCniNetworkInner() {\n }", "public interface FmTrainParams<T> extends\n HasLabelCol<T>,\n HasVectorColDefaultAsNull<T>,\n HasWeightColDefaultAsNull<T>,\n HasEpsilonDv0000001<T>...
[ "0.5524966", "0.5341282", "0.5046131", "0.49963558", "0.49638945", "0.48632753", "0.48556793", "0.48224518", "0.4792745", "0.47655407", "0.47511733", "0.47185585", "0.4709954", "0.47030106", "0.46936804", "0.469001", "0.4663896", "0.46358803", "0.46100798", "0.4579174", "0.45...
0.44168258
43
construct from FCNBase + MnUserParameters
public MnScan(FCNBase fcn, MnUserParameters par, int stra) { this(fcn, new MnUserParameterState(par), new MnStrategy(stra)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseParameters(){\r\n\t}", "public NetworkFunctionUserConfiguration() {\n }", "public UserParameter() {\n }", "private void setIMUParameters(){\n BNO055IMU.Parameters parameters = getIMUParameters();\n imu.initialize(parameters);\n }", "public NetworkDevicePatchParameters() {\...
[ "0.5697088", "0.52865535", "0.51499236", "0.5112737", "0.5008592", "0.5002996", "0.49449816", "0.4932317", "0.49281055", "0.4900136", "0.4871351", "0.48700693", "0.48559487", "0.48399055", "0.47945672", "0.47719988", "0.4765163", "0.47556543", "0.47084448", "0.4687824", "0.46...
0.0
-1
construct from FCNBase + MnUserParameters + MnUserCovariance with default strategy
public MnScan(FCNBase fcn, MnUserParameters par, MnUserCovariance cov) { this(fcn, par, cov, DEFAULT_STRATEGY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Alg newInstance() {\n\t\treturn new BnetDistributedCF();\n\t}", "public NetworkFunctionUserConfiguration() {\n }", "Conector createConector();", "public DefaultCniNetworkInner() {\n }", "public BaseParameters(){\r\n\t}", "private DigitalNetBase2 initNetVar (boolean shiftFlag) {\...
[ "0.5121079", "0.48080912", "0.48020017", "0.46152225", "0.45606634", "0.4484537", "0.44761685", "0.44715425", "0.4453742", "0.44274324", "0.4415917", "0.4403979", "0.43966052", "0.43270147", "0.42936513", "0.42921862", "0.4287442", "0.4270025", "0.4257388", "0.4251269", "0.42...
0.41815683
28
construct from FCNBase + MnUserParameters + MnUserCovariance
public MnScan(FCNBase fcn, MnUserParameters par, MnUserCovariance cov, int stra) { this(fcn, new MnUserParameterState(par, cov), new MnStrategy(stra)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseParameters(){\r\n\t}", "public abstract void build(ClassifierData<U> inputData);", "public TwoClassConfusionMatrix() {\n\t}", "public interface CorrFeature2Feature extends TGGNode {\n}", "public UserParameter() {\n }", "public\nNuc2D(NucNode nuc)\nthrows Exception\n{\n\tsuper (nuc);\n}", ...
[ "0.46722075", "0.46067598", "0.45472988", "0.4539448", "0.4528096", "0.45199642", "0.4498121", "0.44095647", "0.4378131", "0.43679145", "0.43011203", "0.42932114", "0.42741644", "0.4227623", "0.42271903", "0.4225818", "0.4224299", "0.42088088", "0.41966453", "0.41906318", "0....
0.0
-1
construct from FCNBase + MnUserParameterState + MnStrategy
public MnScan(FCNBase fcn, MnUserParameterState par, MnStrategy str) { super(fcn, par, str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseParameters(){\r\n\t}", "public ConnectedComponentFromSeed()\r\n/* 25: */ {\r\n/* 26: 32 */ this.inputFields = \"input, seed\";\r\n/* 27: 33 */ this.outputFields = \"output\";\r\n/* 28: */ }", "CbpmniFactory getCbpmniFactory();", "protected abstract void construct();", "Ifac...
[ "0.52459896", "0.51713204", "0.5138162", "0.51374555", "0.5133587", "0.5001862", "0.49958897", "0.49772438", "0.49425915", "0.4920951", "0.49173704", "0.4912015", "0.48940578", "0.48751462", "0.4872513", "0.48461396", "0.483647", "0.48309696", "0.4822784", "0.47866118", "0.47...
0.45681226
57
Scans the value of the user function by varying parameter number par, leaving all other parameters fixed at the current value. If par is not specified, all variable parameters are scanned in sequence. The number of points npoints in the scan is 40 by default, and cannot exceed 100. The range of the scan is by default 2...
public List<Point> scan(int par, int maxsteps, double low, double high) { MnParameterScan scan = new MnParameterScan(theFCN, theState.parameters()); double amin = scan.fval(); List<Point> result = scan.scan(par, maxsteps, low, high); if (scan.fval() < amin) { theState.setVal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MnScan(FCNBase fcn, MnUserParameters par) {\n this(fcn, par, DEFAULT_STRATEGY);\n }", "public MnScan(FCNBase fcn, double[] par, MnUserCovariance cov) {\n this(fcn, par, cov, DEFAULT_STRATEGY);\n }", "public MnScan(FCNBase fcn, MnUserParameters par, MnUserCovariance cov) {\n th...
[ "0.6065177", "0.60216695", "0.5754342", "0.57474613", "0.55530065", "0.55249196", "0.5345598", "0.5300973", "0.51308835", "0.488448", "0.48695537", "0.48440602", "0.4838881", "0.48380265", "0.48127556", "0.48038787", "0.47708684", "0.4770779", "0.4756736", "0.472619", "0.4714...
0.6813885
0
Disallow construction of this utility class.
private UserParser() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Utility() {\n throw new IllegalAccessError();\n }", "private PluginUtils() {\n\t\t//\t\tthrow new IllegalAccessError(\"Don't instantiate me. I'm a utility class!\");\n\t}", "private ClassifierUtils() {\n throw new AssertionError();\n }", "private Utility() {\n\t}", "private Utils() {\...
[ "0.7776357", "0.7601009", "0.7553566", "0.75509214", "0.7500789", "0.7500789", "0.74677193", "0.7409863", "0.7406701", "0.73761624", "0.73761624", "0.73761624", "0.73761624", "0.73646915", "0.73575175", "0.7357186", "0.7330943", "0.73291206", "0.7326762", "0.7324111", "0.7324...
0.0
-1
TODO Autogenerated method stub
@Override protected Object clone() throws CloneNotSupportedException { Employee eClone = (Employee) super.clone(); eClone.setDeparment((Deparment) eClone.getDeparment().clone()); return eClone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table address_min_balance
int insert(AddressMinBalanceBean record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getMinimumBalance() {\n\treturn null;\n}", "int insertSelective(AddressMinBalanceBean record);", "public void setMinAmount(int min) {\n _min = min;\n }", "public M csmiMemberIdMin(Object min){this.put(\"csmiMemberIdMin\", min);return this;}", "public void setminimumBalance(double pa...
[ "0.60982156", "0.5928122", "0.5513083", "0.53418916", "0.5278522", "0.5255081", "0.51708925", "0.51707053", "0.5148263", "0.50680494", "0.5056196", "0.50482297", "0.5041446", "0.50261897", "0.50162363", "0.50162363", "0.50061417", "0.5001575", "0.49988028", "0.49870795", "0.4...
0.5707455
2
This method was generated by MyBatis Generator. This method corresponds to the database table address_min_balance
int insertSelective(AddressMinBalanceBean record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getMinimumBalance() {\n\treturn null;\n}", "int insert(AddressMinBalanceBean record);", "public void setMinAmount(int min) {\n _min = min;\n }", "public M csmiMemberIdMin(Object min){this.put(\"csmiMemberIdMin\", min);return this;}", "public void setminimumBalance(double parseDouble...
[ "0.60979617", "0.57080054", "0.5511758", "0.53425896", "0.52776027", "0.525494", "0.5171021", "0.51696557", "0.5147391", "0.5065731", "0.5056458", "0.5047758", "0.5040873", "0.5026686", "0.5014161", "0.5014161", "0.5005151", "0.5000295", "0.49985382", "0.49850884", "0.4985088...
0.5928294
1
TODO never used which is wrongs
public void setActive(boolean isActive) { this.isActive = isActive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private void strin() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "protected boolean func_70814_o() { return true; }", "public void ...
[ "0.5603249", "0.55655175", "0.5544374", "0.55260134", "0.549615", "0.54587775", "0.54502475", "0.54237515", "0.5414919", "0.54025924", "0.5385325", "0.53731036", "0.5338822", "0.53135914", "0.52710456", "0.52613974", "0.52550054", "0.5245807", "0.52017176", "0.5192691", "0.51...
0.0
-1
just adjust the type registration.
JavaOutputMapper(final ExecutableOutputField field, final TypeToken<?> javaType) { Preconditions.checkArgument(!javaType.getRawType().equals(Object.class)); // Preconditions.checkArgument(!TypeVariable.class.isAssignableFrom(javaType.getType().getClass())); this.javaType = javaType; this.modelType = jav...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void registerSuperTypes();", "@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}", "@Override\n\tpublic void type() {\n\t\t\n\t}", "protected Type adjustType(Type currentType, Type addedType, Range addedRange)...
[ "0.7067255", "0.6970627", "0.6615603", "0.6332699", "0.6273137", "0.6257393", "0.6172536", "0.6146243", "0.6124797", "0.6082216", "0.6037333", "0.6018756", "0.59827846", "0.59726644", "0.5966882", "0.593403", "0.5905505", "0.5887585", "0.5887585", "0.5885443", "0.5877105", ...
0.0
-1
the type which will be returned when invoking. this differs from the underlying type (which is what is returned directly from the invocation) by being the type returned after the type mappers are applied. so a
public TypeToken<?> returnType() { return this.modelType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Type type();", "public Type getType();", "abstract public Type getType();", "@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}", "public abstract Type getType();", "type getType();", "Type type();", "Type type();", "public JavaType getType() { return _type; }", "public...
[ "0.71226496", "0.7036243", "0.7009303", "0.69596624", "0.6931823", "0.68663585", "0.6843348", "0.6843348", "0.6810005", "0.679085", "0.6761153", "0.6725023", "0.6717459", "0.6710692", "0.66786283", "0.6676936", "0.6676936", "0.6676936", "0.6676936", "0.6676936", "0.6676936", ...
0.0
-1
how many dimensions the return type has. 0 for none.
public int returnTypeArity() { return this.arity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int numberOfDimensions();", "int getDimensionsCount();", "int dimensionality();", "int getNumSampleDimensions();", "@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}", "public long dimCount()\n\t{\n\t\treturn (long)multimemory.dims.length;\n\t}", "public int getNoDimensions() {\n return ...
[ "0.8343981", "0.8150689", "0.8072755", "0.76381123", "0.75706905", "0.7502604", "0.7482136", "0.7380353", "0.734503", "0.7336133", "0.7280827", "0.7280344", "0.71967137", "0.71784693", "0.71769994", "0.7056703", "0.6965557", "0.69451696", "0.6911719", "0.6911719", "0.69113845...
0.0
-1
the model type represented by this java type.
public TypeToken<?> modelType() { return this.modelType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ModelObjectType getType() {\n return type;\n }", "public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}", "public JavaType getType() { return _type; }", "public String getType() {\r\n return this.getClass().getName();\r\n }", "public ModelType getModelType() {\n\t\...
[ "0.7775296", "0.7613581", "0.75480807", "0.74422973", "0.7373534", "0.7330544", "0.732922", "0.7322462", "0.7322462", "0.7322462", "0.7322462", "0.7322462", "0.7322462", "0.731031", "0.731031", "0.731031", "0.73018086", "0.7299252", "0.7279681", "0.7271346", "0.7271346", "0...
0.78949624
0
unwrap this type to the next supported type.
JavaOutputMapper unwrap() { try { final TypeToken<?> wrapped = this.javaType; if (wrapped.getType() instanceof WildcardType) { // the wildcard type for a return can be mapped to the bounds. final WildcardType type = (WildcardType) wrapped.getType(); Preconditions.checkArgume...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Type unwrap() {\n return this;\n }", "@Override\n\tpublic <T> T unwrap(Class<T> type) {\n\t\tif ( type.isAssignableFrom( HibernateCrossParameterConstraintValidatorContext.class ) ) {\n\t\t\treturn type.cast( this );\n\t\t}\n\t\treturn super.unwrap( type );\n\t}", "@Override\n\tpublic <T> T unwrap(Cl...
[ "0.7003844", "0.5990618", "0.5760292", "0.55089474", "0.52970827", "0.5258516", "0.5252028", "0.5241874", "0.5241874", "0.52217245", "0.51937515", "0.5153381", "0.5153381", "0.5132005", "0.5131919", "0.5131919", "0.51236653", "0.50494504", "0.50494504", "0.50494504", "0.49894...
0.5720181
3
if the return value can be null.
public boolean isNullable() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canProcessNull() {\n return false;\n }", "boolean isNilValue();", "boolean checkNull();", "@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }", "default boolean hasValue() {\n\t\t\treturn getValue() != ...
[ "0.7214331", "0.7116604", "0.71157485", "0.7019456", "0.70142055", "0.6770774", "0.67620575", "0.67236114", "0.66012156", "0.6563285", "0.6534668", "0.6523556", "0.6474088", "0.6473226", "0.6472699", "0.6466505", "0.64425224", "0.64400107", "0.6425961", "0.64250135", "0.64250...
0.6437613
18
Creates a processing entry.
ProcessingEntry(int tasks, int executors, int workers) { this.tasks = Math.max(0, tasks); this.executors = Math.max(0, executors); this.workers = Math.max(0, workers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);", "public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;", "public DataEntry create(long dataEntryId);", "TarEntry CreateEntr...
[ "0.59846646", "0.5817961", "0.5695307", "0.5666062", "0.5503197", "0.54861104", "0.53885937", "0.5381199", "0.53501964", "0.5343474", "0.529517", "0.52907795", "0.5260688", "0.5244944", "0.52336806", "0.5207112", "0.5193691", "0.51928306", "0.51655126", "0.5151739", "0.514985...
0.5284475
12
Returns the number of tasks.
public int getTasks() { return tasks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumTasks() {\n return tasks.size();\n }", "public int getNumberOfTasks() {\n\t\treturn tasks.size();\n\t}", "public int countList() {\n return tasks.size();\n }", "int getTaskIdCount();", "public java.lang.Integer getTaskCount() {\n return taskCount;\n }", "lon...
[ "0.877286", "0.86861426", "0.8311506", "0.82434934", "0.82118577", "0.8195764", "0.81496596", "0.81310487", "0.81020856", "0.8060297", "0.80372125", "0.7880325", "0.7873777", "0.78493536", "0.78044206", "0.7760032", "0.7758073", "0.768922", "0.7660319", "0.76435083", "0.76253...
0.72533035
28
Returns the number of executors.
public int getExecutors() { return executors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getExecutorActiveCount();", "long getExecutorTaskCount();", "public Object getNumExecutors() {\n return this.numExecutors;\n }", "int getExecutorPoolSize();", "long getExecutorCompletedTaskCount();", "int getExecutorLargestPoolSize();", "public int getNumOfThreads() {\n return numO...
[ "0.7945359", "0.7850442", "0.77776504", "0.6991345", "0.68004817", "0.67850757", "0.67407745", "0.6653247", "0.66233283", "0.656619", "0.6553102", "0.6527788", "0.6524098", "0.65215987", "0.6502272", "0.6483257", "0.64731985", "0.6456513", "0.64461416", "0.6412932", "0.636230...
0.773495
3
Returns the number of workers.
public int getWorkers() { return workers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int workers() {\n return workers_;\n }", "int numberOfWorkingWorkers();", "int numberOfWorkers();", "public int getTotalWorkerCount() {\n return this.workerCount;\n }", "public int getWorkerThreads() {\n return workerThreads;\n }", "public int getNumOfThreads(...
[ "0.8457463", "0.8325552", "0.83117753", "0.8286849", "0.76088834", "0.7541331", "0.7483268", "0.73205733", "0.7259486", "0.7259486", "0.7259486", "0.72434855", "0.7236861", "0.71453625", "0.70951575", "0.7070406", "0.70430034", "0.6996974", "0.6981995", "0.69290805", "0.68735...
0.81744397
4
Projects processing entries according to type.
public static List<Integer> project(ProjectionType type, Collection<ProcessingEntry> processing) { List<Integer> result = new ArrayList<Integer>(); for (ProcessingEntry ent : processing) { switch (type) { case EXECUTOR: result.add(ent.getExecutors()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void preprocess() {\n \tLOG.info(\"Begin preprocessing of data.\");\n \t\n \tLOG.debug(\"Create a IterativeDirectoryReader.\");\n \t// Create a reader for directories\n \tIterativeDirectoryReader iterativeDirectoryReader = (IterativeDirectoryReader) ReaderFactory.instance().getIterati...
[ "0.52894914", "0.5238042", "0.5172724", "0.5169294", "0.5161562", "0.50625086", "0.50555396", "0.5043337", "0.50272804", "0.49711397", "0.49605176", "0.490895", "0.490895", "0.490895", "0.490895", "0.4891323", "0.4834943", "0.4821104", "0.48173186", "0.48063478", "0.48045024"...
0.5811673
0
Constructs an instance of CpFldMemo
public CpFldMemo() { super(10010, 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized CpFldMemo getInst() { \n\t\tif( me == null ) me = new CpFldMemo();\n\t\treturn me;\n\t}", "public DiaryMemo() {\n\t\tmId = -1;\n\t}", "@ModelAttribute(\"dto\")\n\tpublic MemoDTO newMemoDTO() {\n\t\treturn new MemoDTO();\n\t}", "@ModelAttribute(\"memoDTO\")\n\tpublic MemoDTO newMDTO...
[ "0.7340294", "0.6037162", "0.5971503", "0.58496183", "0.55890805", "0.55890805", "0.55890805", "0.5481616", "0.5480679", "0.5414813", "0.53848207", "0.5381992", "0.5381992", "0.5381992", "0.53376853", "0.53376853", "0.53376853", "0.5296526", "0.52774674", "0.5176812", "0.5176...
0.8441744
0
Returns an instance of CpFldMemo
public static synchronized CpFldMemo getInst() { if( me == null ) me = new CpFldMemo(); return me; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CpFldMemo() { super(10010, 5); }", "@java.lang.Override\n public java.lang.String getMemo() {\n return instance.getMemo();\n }", "@java.lang.Override\n public java.lang.String getMemo() {\n return instance.getMemo();\n }", "@java.lang.Override\n public java.lang....
[ "0.7697678", "0.6395675", "0.6395675", "0.6395675", "0.63289386", "0.62238854", "0.618011", "0.618011", "0.618011", "0.6116487", "0.6116487", "0.6116487", "0.60387325", "0.6029337", "0.6029337", "0.6029337", "0.6016988", "0.6016988", "0.6016988", "0.6016988", "0.59801424", ...
0.8072922
0
ToastUtil.getInstance().toastShow(context, "Click " + ((TextView) v).getText());
@Override public void onClick(View v) { dismiss(); switch (v.getId()) { case R.id.menu_item_remove: if (LauncherAppState.getInstance().isSystemApp(packageName)) { ToastUtil.getInstance().toastShow(context...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }", "@Override\n ...
[ "0.82479024", "0.77908844", "0.7741513", "0.7686567", "0.76315343", "0.75880665", "0.7505882", "0.74928063", "0.7403164", "0.7399027", "0.7389379", "0.73361313", "0.7321903", "0.73206764", "0.7309766", "0.7295058", "0.72865987", "0.7263999", "0.72258973", "0.72160363", "0.721...
0.0
-1
Helper function for making null strings safe for comparisons, etc.
public static String makeSafe(String s) { return (s == null) ? "" : s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String notNull(String value) {\n return value != null ? value : \"\";\n }", "public static String nullToEmpty ( final String n )\n {\n return null == n ? \"\" : n;\n }", "public static String convertNullToBlank(String s) {\n \tif(s==null) return \"\";\n \treturn s;\n }", "publ...
[ "0.7436522", "0.7405672", "0.73600847", "0.71371675", "0.7115061", "0.70766854", "0.7027515", "0.6975326", "0.69713825", "0.6966592", "0.6898738", "0.68633556", "0.6843282", "0.6828565", "0.6810152", "0.6809478", "0.6785304", "0.6734312", "0.6724235", "0.67240715", "0.6656669...
0.6991514
7
multiply by 12 (we run in voltage mode and use a 12v battery) and invert right side
public void tankDrive(double left, double right) { leftMaster.set(left * 12.0); rightMaster.set(right * -12.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getOutputVoltage();", "int getInverterCurrent();", "public static float pu2mvar(float pwr) {return pwr*100F;}", "int getOutputVoltageRaw();", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "private synchronized void updateBattery(){\n \tdouble battery = MathUtils.round(Battery.getVolta...
[ "0.56054157", "0.5499233", "0.5472652", "0.54666555", "0.54630953", "0.546138", "0.54531467", "0.5444196", "0.5434912", "0.5413515", "0.5361063", "0.5355292", "0.53536844", "0.5340196", "0.5339049", "0.531121", "0.5306907", "0.53013724", "0.52868485", "0.52734786", "0.5267645...
0.0
-1
Constructor for the QuinzicalModel class loads all necessary data from data so that the game is ready to go
public QuinzicalModel() throws Exception { initialiseCategories(); readCategories(); setFiveRandomCategories(); loadCurrentPlayer(); setAnsweredQuestions(); File winnings = new File("data/winnings"); if (!winnings.exists()) { BashCmdUtil.bashCmdNoOutput("touch data/winnings"); BashCmdUtil.bashCmdNoO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Model(JSONObject selfAsJson) {\n try {\n int width = selfAsJson.getInt(\"width\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n int height = selfAsJson.getInt(\"height\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n this.physModel = new Physics2D(selfAsJson.getJSONOb...
[ "0.6429586", "0.6421678", "0.6287004", "0.6156771", "0.61469764", "0.6101314", "0.60544485", "0.5989303", "0.59491897", "0.59358823", "0.59187233", "0.5886733", "0.5875868", "0.5834122", "0.58285606", "0.58278227", "0.5811324", "0.5808558", "0.58062166", "0.580135", "0.576744...
0.75920236
0
using bash command to find the names of the categories in the category folder each category is added to the list
private void initialiseCategories() { _nzCategories = BashCmdUtil.bashCmdHasOutput("ls categories/nz"); _intCategories = BashCmdUtil.bashCmdHasOutput("ls categories/international"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getCategories();", "public static ArrayList<String> catToCateg(String categ) throws Exception {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\tif (categOffsetIndex == null) {\n\t\t\tSystem.out.println(\"categ loading index...\");\n\t\t\tloadCategIndex();\n\t\t\tSystem.out.pri...
[ "0.62352705", "0.6049592", "0.59780836", "0.5945379", "0.5943151", "0.5940328", "0.5935036", "0.5875071", "0.58485407", "0.5833109", "0.57778764", "0.57481414", "0.573418", "0.5731366", "0.5724943", "0.5720205", "0.5705516", "0.5690719", "0.5686872", "0.5640051", "0.5595951",...
0.6283056
0
read the data from the category files and store into 2d array data in the form of i.e. [animals line line line line line countries line line line line line]
private void readCategories() throws Exception { //reads files in nz category if (_nzCategories.size() > 0) { for (String category: _nzCategories) { // read each individual line from the category files and store it try { File file = new File("categories/nz/", category); Scanner myReader = new S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readInCategories() {\n // read CSV file for Categories\n allCategories = new ArrayList<Category>();\n InputStream inputStream = getResources().openRawResource(R.raw.categories);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n ...
[ "0.7115148", "0.6852571", "0.66861326", "0.61404264", "0.60455245", "0.595911", "0.5858636", "0.58397454", "0.58297753", "0.5793288", "0.57436657", "0.563792", "0.5627143", "0.5622805", "0.5619649", "0.56072176", "0.5595179", "0.5587617", "0.55509007", "0.55490977", "0.554705...
0.68898535
1
Prepares 5 random categories to be played by the user in the game selected from all the category files within the categories folder
public void setFiveRandomCategories () { //create a file to store the selected five categories BashCmdUtil.bashCmdNoOutput("mkdir -p data"); File five_random_categories = new File ("data/five_random_categories"); if (!five_random_categories.exists()) { BashCmdUtil.bashCmdNoOutput("touch data/five_random_cate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFiveRandomClues (String category){\n\t\tFile file = new File(\"data/games_module\", category);\n\t\t// writing 5 random clues to the category file chosen if file is empty\n\t\tif (file.length() == 0) {\n\t\t\tList<String> clues = new ArrayList<String>();\n\t\t\tclues = _nzData.get(category);\n\t\t\t...
[ "0.7680871", "0.6671018", "0.6561593", "0.6168766", "0.6162255", "0.6043886", "0.58741957", "0.5761744", "0.5754439", "0.5723936", "0.5685908", "0.55816895", "0.5504362", "0.5478809", "0.5470728", "0.5445287", "0.538586", "0.53835756", "0.5298615", "0.5295615", "0.526217", ...
0.8453537
0
Get five random categories for the games module.
public List<String> getFiveRandomCategories () { return _fiveRandomCategories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFiveRandomCategories () {\n\t\t//create a file to store the selected five categories\n\t\tBashCmdUtil.bashCmdNoOutput(\"mkdir -p data\");\n\t\tFile five_random_categories = new File (\"data/five_random_categories\");\n\t\tif (!five_random_categories.exists()) {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"t...
[ "0.7409411", "0.69983673", "0.6918515", "0.60916406", "0.5612115", "0.555038", "0.54402226", "0.54267275", "0.5377354", "0.53699195", "0.53684336", "0.5339833", "0.5339027", "0.53254783", "0.53218246", "0.5301941", "0.5281753", "0.52616143", "0.5259891", "0.52438813", "0.5243...
0.77636725
0
Set five random clues for a given category
public void setFiveRandomClues (String category){ File file = new File("data/games_module", category); // writing 5 random clues to the category file chosen if file is empty if (file.length() == 0) { List<String> clues = new ArrayList<String>(); clues = _nzData.get(category); Collections.shuffle(clues); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFiveRandomCategories () {\n\t\t//create a file to store the selected five categories\n\t\tBashCmdUtil.bashCmdNoOutput(\"mkdir -p data\");\n\t\tFile five_random_categories = new File (\"data/five_random_categories\");\n\t\tif (!five_random_categories.exists()) {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"t...
[ "0.7304584", "0.7154592", "0.58709395", "0.58246845", "0.5822787", "0.5800308", "0.57983273", "0.56918126", "0.5680455", "0.5672815", "0.5641073", "0.56366456", "0.5624309", "0.5617872", "0.5599708", "0.55750406", "0.5552396", "0.54954535", "0.54823303", "0.54600775", "0.5416...
0.8038731
0
loading a random clue necessary for the practice module and the international module
public void loadRandomClue(String module, String category) { List<String> clues = new ArrayList<String>(); if (module == "nz") { clues = _nzData.get(category); } else if (module == "int"){ clues = _intData.get(category); } int size = clues.size(); Random rand = new Random(); int randomIndex = rand.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Clue getRandomClue()\n {\n HashMap<String, Clue> usableClues = getUseableClues();\n ArrayList<Clue> list = new ArrayList<>(usableClues.values());\n int i = rand.nextInt(usableClues.size());\n return list.get(i);\n }", "public void loadReel() {\n\t\treturnSymbol = reel[(in...
[ "0.60932875", "0.59138876", "0.5735523", "0.5717701", "0.56244975", "0.5611132", "0.5599201", "0.55754465", "0.55713695", "0.5569406", "0.55656147", "0.5557957", "0.5507272", "0.54931587", "0.54413605", "0.5414515", "0.54086655", "0.53604496", "0.5349609", "0.534924", "0.5341...
0.69007355
0
Load the clue from five randomly chosen clues.
public void loadClue(String category,int index) { String clue = _gamesData.get(category).get(index); try { _currentClue = new Clue (clue,(index+1)*100); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFiveRandomClues (String category){\n\t\tFile file = new File(\"data/games_module\", category);\n\t\t// writing 5 random clues to the category file chosen if file is empty\n\t\tif (file.length() == 0) {\n\t\t\tList<String> clues = new ArrayList<String>();\n\t\t\tclues = _nzData.get(category);\n\t\t\t...
[ "0.7200198", "0.678723", "0.6518305", "0.6034998", "0.6021407", "0.59953165", "0.5987586", "0.59777707", "0.58884925", "0.58239275", "0.5809815", "0.574874", "0.5746596", "0.5727658", "0.56777954", "0.56409186", "0.56354195", "0.5578596", "0.5536089", "0.5532625", "0.5530689"...
0.5686658
14
getter for the current clue selected for the game
public Clue getCurrentClue() { return _currentClue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}", "public int getSelected() {\n \t\treturn selected;\n \t}", "public Piece firstSelected()\n {\n return firstSelected;\n }", "public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }", "public Color getSelectedColor() ...
[ "0.708484", "0.6843089", "0.6770799", "0.67655677", "0.66899323", "0.6634083", "0.6552454", "0.6504057", "0.6494634", "0.64578336", "0.64318573", "0.6423032", "0.63979375", "0.6396874", "0.6388862", "0.6383036", "0.6369085", "0.63145244", "0.63137096", "0.63096386", "0.630483...
0.72666186
0
get how many questions in a category have been answered
public int getAnsweredQuestions(int index){ return _answeredQuestions[index]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfAllQuestions();", "int getNumberOfQuestions();", "Integer countAnswersByQuestionId(String questionId);", "Integer getNumQuestions();", "public int getQuestionCount() {\r\n\t\treturn this.question.size();\r\n\t}", "public int getTotalQuestions() {\r\n\t\treturn totalQuestions;\r\n\t}", "L...
[ "0.7338798", "0.72069955", "0.71711886", "0.6990458", "0.69008523", "0.6873881", "0.6840393", "0.678547", "0.6570847", "0.6541276", "0.6450747", "0.6433519", "0.64276314", "0.6423232", "0.64228374", "0.63198054", "0.63005435", "0.62983716", "0.62827736", "0.62827736", "0.6273...
0.56546855
49
getter for the current Player playing the game
public String getCurrentPlayer() { return _currentPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public String getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getCurrentPlayer(){\n return this.currentPlayer;\n }", ...
[ "0.80728257", "0.80728257", "0.80512816", "0.8011754", "0.8009444", "0.7884759", "0.786805", "0.78664786", "0.784063", "0.7830842", "0.78221244", "0.7820034", "0.7805125", "0.7796484", "0.77901995", "0.7788937", "0.77877337", "0.77877337", "0.77845997", "0.77749544", "0.77662...
0.79966646
5
sets the current player playing the game
public void setCurrentPlayer(String currentPlayer) { _currentPlayer = currentPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPlayer(Player player) {\n this.currentPlayer = player;\n }", "private void setPlayer() {\n player = Player.getInstance();\n }", "@Override\n\tpublic void startGame(){\n\t\tsuper.currentPlayer = 1;\n\t}", "public void setCurrentPlayer(Player P){\n this.currentPlayer = P;\n ...
[ "0.7870436", "0.7720162", "0.7649816", "0.76178455", "0.7453305", "0.73653054", "0.7329459", "0.7252279", "0.7244096", "0.7218776", "0.7182946", "0.71773434", "0.7170426", "0.7168829", "0.7164819", "0.7096378", "0.70647097", "0.7030999", "0.70298827", "0.70253897", "0.7022844...
0.7381591
5
save which questions have been answered already in the game in an external file in "data/answered_questions"
public void setAnsweredQuestions() { File file = new File("data/answered_questions"); if(!file.exists()) { BashCmdUtil.bashCmdNoOutput("touch data/answered_questions"); String answeredQuestions = ""; for (int i = 0;i<5;i++) { answeredQuestions = answeredQuestions + " " + String.valueOf(_answeredQuesti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveQuestion(){\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString setAnswerBox = Integer.toString(numAnswers);\n\n\t\ttestGenerator.setQuestionText(questionNo, ques.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 1, ans1.getText());\n\t\ttestGenerator.setAnswerText(q...
[ "0.6597172", "0.6463706", "0.6164701", "0.6118878", "0.60368294", "0.60261184", "0.59575677", "0.59253854", "0.5859511", "0.58507425", "0.573585", "0.5724934", "0.566834", "0.5659796", "0.5622738", "0.5611754", "0.5610031", "0.5607611", "0.5604672", "0.5595147", "0.55773896",...
0.73443437
0
how the questions being answered are being tracked, by adding 1 to the category index up to 5, where 5 means all questions have been asnwered
public void addAnsweredQuestions (int index) { _answeredQuestions[index]=_answeredQuestions[index]+1; BashCmdUtil.bashCmdNoOutput("rm data/answered_questions"); BashCmdUtil.bashCmdNoOutput("touch data/answered_questions"); String answeredQuestions = ""; for (int i = 0;i<5;i++) { answeredQuestions = answer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateActiveChallenge() {\n categories.get(indexOfActiveCategory).increaseIndexOfActiveChallenge();\n }", "public void cheakCategory(String category) {\n\n if (category.equals(\"1\")) {\n url_count += 1;\n } else if (category.equals(\"4\")) {\n sms_count...
[ "0.5699168", "0.562061", "0.55509984", "0.5446959", "0.5444114", "0.541975", "0.5407134", "0.53618896", "0.5252429", "0.5213753", "0.51976115", "0.51917934", "0.51613754", "0.51497227", "0.51394534", "0.5133283", "0.51133895", "0.511271", "0.5110544", "0.51053774", "0.5094896...
0.5951642
0
get previous scene, 1 for menu 2 for game question scene
public int getPreviousScene(){ return _previousScene; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goBackToPreviousScene() {\n\n scenesSeen.pop();\n currentScene = scenesSeen.peek();\n\n this.window.setScene(currentScene.createAndReturnScene());\n }", "public void setPreviousScene(int scene){\n\t\t_previousScene = scene;\n\t}", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(Gam...
[ "0.73588", "0.7206476", "0.7073632", "0.6694251", "0.66812074", "0.66630125", "0.66342103", "0.66275877", "0.65852576", "0.65045434", "0.6481261", "0.6456303", "0.64368045", "0.6395778", "0.6363715", "0.6314192", "0.6263701", "0.6196882", "0.61953175", "0.61502695", "0.614372...
0.73884827
0
set previous scene, 1 for menu 2 for game question scene
public void setPreviousScene(int scene){ _previousScene = scene; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}", "public void setPreviousScene(Scene scene) \n\t{\n\t\t// Note we do not create a new previous scene, because we want to save the state of the previous scene\n\t\tpreviousSce...
[ "0.75076854", "0.74099153", "0.7322218", "0.72661346", "0.70884347", "0.70144737", "0.69321537", "0.6879396", "0.68197805", "0.68032336", "0.6677762", "0.6601976", "0.65960485", "0.6559577", "0.6556431", "0.65150607", "0.6486355", "0.6462654", "0.6455447", "0.6452977", "0.641...
0.7702032
0
get all categories in the game as a list of strings
public List<String> getCategories(Boolean internationalSelected){ if (internationalSelected) { return _intCategories; } else { return _nzCategories; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getCategories();", "public static List<String> getAllCategoryName() {\n List<String> list = new ArrayList<>();\n List<Category> catList=getAllCategory();\n if(catList!=null && catList.size()>0) {\n for (Category category : catList)\n {\n ...
[ "0.7681918", "0.75162894", "0.73900187", "0.73340833", "0.7209633", "0.6943407", "0.69045067", "0.67991525", "0.67940366", "0.67925006", "0.6776616", "0.6746312", "0.6719483", "0.67159337", "0.67120194", "0.6700144", "0.6667771", "0.6642247", "0.66186166", "0.659996", "0.6595...
0.6257533
53
get the players winnings from "data/winnings"
public int getWinnings() { BufferedReader reader; try { reader = new BufferedReader(new FileReader("data/winnings")); String line = reader.readLine(); _winnings = Integer.parseInt(line.trim()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return _winnings;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Set<SteamUserNode> bindGames(Set<SteamUserNode> players) {\n\t\tString dest = \"http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?\" +\r\n\t\t\t\t\"key=%s&steamid=%d&include_appinfo=1&include_played_free_games=1&format=json\";\r\n\t\tString response = \"\";\r\n\t\tfor (SteamUserNode p : playe...
[ "0.6504561", "0.6443578", "0.6421224", "0.63755304", "0.6345159", "0.627053", "0.6257239", "0.61697525", "0.6166861", "0.6153384", "0.6152894", "0.61404115", "0.61351657", "0.6112472", "0.60969365", "0.60565966", "0.60303605", "0.5995046", "0.5991011", "0.59337765", "0.591760...
0.7199482
0
adds to the users current winnings by the input value
public void addWinnings(int value) { int winnings = getWinnings(); winnings = winnings + value; String strWinnings = Integer.toString(winnings); BashCmdUtil.bashCmdNoOutput("sed -i \"1s/.*/ "+strWinnings+" /\" data/winnings"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}", "public void winAccountant()\r\n {\r\n switch (Win)\r\n {case 1: //A tie with scissors\r\n ties++; uSci++; cSci++;\r\n break;\r\n case 2: //A tie with paper\r\n ...
[ "0.6685077", "0.66628456", "0.6582678", "0.6560307", "0.6452704", "0.6437567", "0.6432705", "0.6274724", "0.6257603", "0.62488025", "0.62188256", "0.6209772", "0.6203855", "0.6196321", "0.61587334", "0.6135728", "0.6127923", "0.6125179", "0.6084189", "0.601662", "0.59973687",...
0.75483626
0
decrease the users current winnings by the input value
public void decreaseWinnings(int value) { int winnings = getWinnings(); winnings = winnings - value; String strWinnings = Integer.toString(winnings); BashCmdUtil.bashCmdNoOutput("sed -i \"1s/.*/ "+strWinnings+" /\" data/winnings"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWins(int value) {\n this.wins = value;\n }", "void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}", "public void SZTToEveryOtherPlayer(int value) {\n\t\tfor(Player p:players) {\n\t\t\tif(p!=current) {\n\t\t\t\tp.r...
[ "0.6620154", "0.6484836", "0.6476902", "0.6457206", "0.63235074", "0.6309729", "0.63059664", "0.63043034", "0.62729037", "0.6259022", "0.6247579", "0.6230733", "0.61691386", "0.6166201", "0.6131783", "0.61282635", "0.6112394", "0.61104876", "0.6078324", "0.60725754", "0.60702...
0.7633091
0
resets the entire game except for player rankings
public void reset(){ BashCmdUtil.bashCmdNoOutput("rm -r data/games_module"); BashCmdUtil.bashCmdNoOutput("sed -i \"1s/.*/ "+"0"+" /\" data/winnings"); BashCmdUtil.bashCmdNoOutput("sed -i \"1s/.*/ "+"175"+" /\" data/tts_speed"); BashCmdUtil.bashCmdNoOutput("rm data/answered_questions"); BashCmdUtil.bashCmdNoOu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void resetGame() {\n rockList.clear();\n\n initializeGame();\n }", "public void resetGame() {\r\n\t\tfor(Player p : players) {\r\n\t\t\tp.reset();\r\n\t\t}\r\n\t\tstate.reset();\r\n\t}", "public void reset() {\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tfor (int j = 0; j<DIVISIONS; ...
[ "0.8235677", "0.8167676", "0.8091219", "0.80045646", "0.7917795", "0.7904252", "0.78969747", "0.7871065", "0.78634185", "0.78105104", "0.7792619", "0.7734514", "0.76265633", "0.76128244", "0.75935835", "0.7576025", "0.75672317", "0.75483716", "0.75154436", "0.75111014", "0.74...
0.77699614
11
returns true of the game is completed otherwise returns false
public boolean gameCompleted() { int[] expected = {5,5,5,5,5}; if(Arrays.equals(_answeredQuestions, expected)) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isGameComplete();", "protected abstract boolean isGameFinished();", "public boolean isGameFinished() {\n if (listaJogadores.size() - listaJogadoresFalidos.size() == 1) {\n return true;\n } else {\n return false;\n }\n\n }", "@Override\r\n\tboolean isFinis...
[ "0.88224477", "0.8370428", "0.8138072", "0.79391754", "0.7832314", "0.78107363", "0.7785088", "0.7603735", "0.7590743", "0.7569122", "0.7558627", "0.755046", "0.74969923", "0.74918884", "0.7480002", "0.74540097", "0.7441905", "0.742445", "0.742276", "0.73998064", "0.7382923",...
0.7470603
15
saves the name of the current player
public void saveCurrentPlayer() { BashCmdUtil.bashCmdNoOutput("touch data/current_player"); BashCmdUtil.bashCmdNoOutput(String.format("echo \"%s\" >> data/current_player",_currentPlayer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void SavePlayerName() {\r\n\t\tPlayer player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerName.txt\";\r\n\t\tString playerName = player.getName();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerName);\r\n\t\t}\r\n\t\t...
[ "0.87206423", "0.7471723", "0.745909", "0.7290819", "0.7066069", "0.7018179", "0.6980627", "0.6977841", "0.69769835", "0.6935111", "0.692065", "0.69171697", "0.6913481", "0.6906361", "0.68912745", "0.6863919", "0.6801588", "0.6796943", "0.67834127", "0.6735414", "0.6718789", ...
0.7806936
1
loads the name of the current player in 'data/current_player'
public void loadCurrentPlayer() { Scanner sc; File file = new File("data/current_player"); if(file.exists()) { try { sc = new Scanner(new File("data/current_player")); if(sc.hasNextLine()) { String player = sc.nextLine(); _currentPlayer= player; } else { _currentPlayer = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrentPlayer() {\n return currentPlayer;\n }", "private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n ...
[ "0.74340004", "0.7379885", "0.7330165", "0.73290735", "0.6999294", "0.6979169", "0.69770277", "0.6898778", "0.68960077", "0.68815845", "0.68697953", "0.68626636", "0.6853061", "0.6851267", "0.6851267", "0.684023", "0.6814043", "0.6814043", "0.6758615", "0.6751875", "0.6715629...
0.788963
0
returns true if the internation mode is unlocked, that is 2 full categories are completed in game returns false otherwise
public boolean InternationalUnlocked() { int count = 0; for (int category: _answeredQuestions) { if (category == 5) { count++; } } if (count >= 2) { _internationalUnlocked = true; } else { _internationalUnlocked = false; } saveInternationalUnlocked(); return _internationalUnlocked; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean canCrit();", "private boolean canEnlist() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "public static boolean own() {\n return InventoryManager.getAccessibleCount(ItemPool.COMBAT_LOV...
[ "0.62687045", "0.6122726", "0.59782857", "0.59060496", "0.58913773", "0.5869471", "0.5857352", "0.5700631", "0.5662154", "0.5645609", "0.5622061", "0.5620862", "0.56112427", "0.5591831", "0.556066", "0.5553437", "0.5553437", "0.55305505", "0.55228424", "0.55093825", "0.548837...
0.60621136
2
saves whether the international mode is unlocked
public void saveInternationalUnlocked() { BashCmdUtil.bashCmdNoOutput("touch data/internatonal_unlocked"); BashCmdUtil.bashCmdNoOutput("> data/internatonal_unlocked"); BashCmdUtil.bashCmdNoOutput(String.format("echo \"%s\" >> data/internatonal_unlocked",Boolean.toString(_internationalUnlocked))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void setNotSaved(){saved=false;}", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "void setShowUnlockOption(boolean b);", "private void toggleSave() {\n mNameBox.s...
[ "0.62415123", "0.6229254", "0.6141539", "0.60606396", "0.6047692", "0.59467787", "0.58843", "0.5837453", "0.58311284", "0.57858586", "0.5766708", "0.5756716", "0.5713097", "0.5710679", "0.5678579", "0.56692255", "0.56585234", "0.5651256", "0.5640363", "0.56353664", "0.5614095...
0.75773686
0
loads and stores whether the international mode is unlocked
public void loadInternationalUnlocked() { Scanner sc; File file = new File("data/internatonal_unlocked"); if(file.exists()) { try { sc = new Scanner(new File("data/internatonal_unlocked")); if(sc.hasNextLine()) { String interntionalUnlocked = sc.nextLine(); _internationalUnlocked = Boolean.pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveInternationalUnlocked() {\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/internatonal_unlocked\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"> data/internatonal_unlocked\");\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/internatonal_unlocked\",Boolean.toString(_internationalUnloc...
[ "0.6842529", "0.57844496", "0.56516457", "0.5571612", "0.54973143", "0.54551095", "0.5448763", "0.5274522", "0.5257078", "0.5225969", "0.52162397", "0.52144206", "0.5200085", "0.51662534", "0.51564157", "0.5147174", "0.5097682", "0.5097682", "0.50846934", "0.5072556", "0.5058...
0.7478827
0
this static method is for creating a singleton class of Quinzical
public static QuinzicalModel createInstance() throws Exception { if (instance == null) { instance = new QuinzicalModel(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SingletonSigar(){}", "private Singleton()\n\t\t{\n\t\t}", "private Singleton(){}", "static public SPARQLToSemQA getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SPARQLToSemQA();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "private SingletonSample() {}", "Reproducible newInstan...
[ "0.662917", "0.6338877", "0.6315262", "0.63110936", "0.6253726", "0.62297356", "0.62055844", "0.6187621", "0.6138564", "0.61055374", "0.6094646", "0.6034683", "0.6027834", "0.5944601", "0.5901331", "0.5886007", "0.5865133", "0.58579546", "0.58578163", "0.58343256", "0.5825131...
0.6753393
0
Interface of search index for efficient access to data elements.
protected interface ISearchIndex<T> extends Iterable<T> { List<T> radius(T center, double radius); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}", "public abstract long getIndex();", "public abstract int getIndex();", "public interface Indexed {\n\...
[ "0.73528093", "0.70830905", "0.6873576", "0.6817998", "0.67331356", "0.67331356", "0.67331356", "0.65954465", "0.65949225", "0.656533", "0.6527214", "0.6526883", "0.65248317", "0.65248317", "0.65248317", "0.65248317", "0.65248317", "0.65248317", "0.65248317", "0.65248317", "0...
0.6929171
2
Gets clusters of elements by density properties defined as epsilon and minimum.
protected static <T> Set<List<T>> cluster(ISearchIndex<T> index, double epsilon, int minimum) { Set<List<T>> clusters = new HashSet<List<T>>(); Set<T> visited = new HashSet<T>(); Set<T> noise = new HashSet<T>(); for (T element : index) { if (visited.contains(element)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<List<Double>> cluster(List<Double> elements, double epsilon, int minimum) {\n ISearchIndex<Double> index = new SearchIndex(elements);\n return cluster(index, epsilon, minimum);\n }", "public double findDensity() {\n\t\tdouble temp = 0.0;\n\t\tfor (int i = 0; i < neighbors.size(...
[ "0.74453497", "0.57027787", "0.5587524", "0.5410485", "0.5409936", "0.530205", "0.5283985", "0.520267", "0.5201489", "0.51926535", "0.51919276", "0.51665294", "0.5143779", "0.50443405", "0.503643", "0.49566305", "0.48834434", "0.48784938", "0.4852054", "0.48299998", "0.481844...
0.69028264
1
Constructs search index with a list of floating point values.
public SearchIndex(List<Double> elements) { sequence = new ArrayList<Double>(elements); Collections.sort(sequence); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<java.lang.Float> getInList();", "public ValueSetSegment(float[] v){\n values = v;\n }", "@Test\n public void getIndex(){\n List <Double> list = new ArrayList<>();\n list.add(1.0);\n list.add(2.0);\n list.add(3.0);\n list.add(4.0);\n\n assert...
[ "0.56142986", "0.5336028", "0.5311813", "0.5265053", "0.5179382", "0.50784177", "0.50573754", "0.50468516", "0.5045051", "0.49860933", "0.49484935", "0.49310425", "0.48907077", "0.48552555", "0.48435503", "0.48423734", "0.4841441", "0.48323768", "0.48142073", "0.48081082", "0...
0.652816
0
Gets index of the element, in the ordered list of floating point values, that is greater or equal than the given floating point value.
protected int search(double value) { int n = sequence.size(); int left = 0, right = n - 1, index = 0; while (left != right) { index = (right - left) / 2 + left; if (value >= sequence.get(index == left ? index + 1 : index)) { left = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getIndex(){\n List <Double> list = new ArrayList<>();\n list.add(1.0);\n list.add(2.0);\n list.add(3.0);\n list.add(4.0);\n\n assertEquals(0,list.indexOf(1.0));\n }", "int compareToFloat(floats f);", "@Override\n\tpublic int binarySearchXValue...
[ "0.60469294", "0.6020693", "0.59317976", "0.59114784", "0.5831461", "0.5803603", "0.57521546", "0.569185", "0.5687736", "0.56869316", "0.5674238", "0.566294", "0.56151617", "0.5573572", "0.55544126", "0.55469894", "0.55340135", "0.5496812", "0.54918385", "0.543835", "0.542390...
0.6122959
0
Gets index of the leftmost element, in the ordered list of floating point values, that is greater or equal than the given floating point value.
protected int searchLeft(double value) { int i = search(value); while (i > 0 && value == sequence.get(i - 1)) { i -= 1; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int findIndexOfSmallest(float[] vector) {\n\t\tint index = -1;\n\t\tfloat value = Float.MAX_VALUE;\n\t\tfloat temp;\n\t\tfor (int d=0; d<Constants.ACCEL_DIM; ++d) {\n\t\t\ttemp = vector[d];\n\t\t\tif (temp<0.0f)\n\t\t\t\ttemp = -temp;\n\t\t\t\n\t\t\tif (temp<value) {\n\t\t\t\tvalue = temp;\n\t\t\t\t...
[ "0.6115747", "0.61069936", "0.60964435", "0.60600793", "0.6015516", "0.57720584", "0.57487947", "0.56783706", "0.56583387", "0.5608664", "0.5605", "0.5597456", "0.5585905", "0.55749035", "0.55636245", "0.5532298", "0.55241805", "0.5505562", "0.54880375", "0.5460261", "0.54558...
0.64972746
0
Gets index of the rightmost element, in the ordered list of floating point values, that is greater or equal than the given floating point value.
protected int searchRight(double value) { int i = search(value); while (i < sequence.size() - 1 && value == sequence.get(i + 1)) { i += 1; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int BinarySerach_upperValue(ArrayList<Integer> list , int value){ \r\n\t\t\r\n\t\tint mid,l,r;\r\n\t\t\r\n\t\tl = 0;\r\n\t\tr = list.size()-1;\r\n\t\t\r\n\t\tif(value>=list.get(r))\r\n\t\t\treturn r;\r\n\t\tif(value<=list.get(l))\r\n\t\t\treturn l;\r\n\t\t\r\n\t\tmid = (l+r)/2;\r\n\t\t\r\n\t\twhile(l<r){\r\...
[ "0.6115444", "0.59163386", "0.58034617", "0.5717227", "0.56539816", "0.56224644", "0.55872744", "0.55829954", "0.5526434", "0.5519426", "0.5497608", "0.5496443", "0.5482492", "0.54610896", "0.54507816", "0.5434085", "0.54031074", "0.53983307", "0.5351555", "0.524027", "0.5216...
0.630758
0
Gets clusters of elements by density properties defined as epsilon and minimum.
public static Set<List<Double>> cluster(List<Double> elements, double epsilon, int minimum) { ISearchIndex<Double> index = new SearchIndex(elements); return cluster(index, epsilon, minimum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static <T> Set<List<T>> cluster(ISearchIndex<T> index, double epsilon, int minimum) {\n Set<List<T>> clusters = new HashSet<List<T>>();\n Set<T> visited = new HashSet<T>();\n Set<T> noise = new HashSet<T>();\n\n for (T element : index) {\n if (visited.contains(eleme...
[ "0.69042164", "0.56993246", "0.55882794", "0.5412203", "0.5410953", "0.53026104", "0.52817875", "0.5201848", "0.51996887", "0.51927316", "0.5192381", "0.51661897", "0.5142746", "0.5044609", "0.5036317", "0.49580172", "0.4884629", "0.48791155", "0.48530558", "0.48304588", "0.4...
0.7446088
0
TODO Autogenerated method stub
@Override public String getKey() { return getCid(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String getObjectKey() { return OBJECT_KEY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Returns an Observable that receives Data from the Sensor.
public Observable<Data> start(Sensor sensor){ return Observable.interval(DELAY, DELAY, TimeUnit.MILLISECONDS).map(aLong -> { DataTypeInt dataTypeInt = new DataTypeInt(DateTime.getDateTime(), getStatus()); return new Data(sensor, dataTypeInt); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Observable crearObservable(){\n /**\n * Hay otras muchas formas de crear el observable\n */\n return Observable.create(new ObservableOnSubscribe<String>() {\n\n @Override\n public void subscribe(ObservableEmitter<String> emitter) throws Exception {\n ...
[ "0.61897516", "0.6001808", "0.5798381", "0.56807405", "0.5595029", "0.55007076", "0.5447962", "0.54350656", "0.54190654", "0.54043", "0.5398198", "0.53955424", "0.53590024", "0.5313398", "0.5274066", "0.5257516", "0.52337396", "0.52328485", "0.5225538", "0.5221897", "0.52186"...
0.644547
0
Adds the given sample.
public synchronized void add(DataTypeDoubleArray sample) { samples.add(sample); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSample(Point punto) {\n\t\tthis.punti.add(punto); //non gestisco il ritorno booleano di add volutamente,\n\t\t//semplicemente non sono accettati valori duplicati poichè da quelli \n\t\t//non si otterrebbe una funzione\n\t}", "org.hl7.fhir.SampledData addNewValueSampledData();", "public DataResou...
[ "0.6997913", "0.67705417", "0.67209166", "0.6696336", "0.6566614", "0.65041494", "0.6468048", "0.6435071", "0.63705945", "0.6206816", "0.6188262", "0.61753047", "0.60585034", "0.582431", "0.57499886", "0.57067406", "0.5645926", "0.55294245", "0.548634", "0.5425022", "0.542502...
0.73007756
0
/ Currently we are indexing only Resources that represent collected records
public static <T extends DescriptiveData, A extends WithAdmin> Map<String, Object> basicTransformation(WithResource<T, A> rr) { JsonNode rr_json = Json.toJson(rr); ObjectNode idx_doc = Json.newObject(); Map<String, List<String>>lang_accumulators = new HashMap<String, List<String>>(); /* * Label */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void indexPersistable() {\n searchIndexService.indexAllResourcesInCollectionSubTreeAsync(getPersistable());\n }", "private void collect() {\n\n System.out.println(\"Getting IndexReader...\");\n final IndexReader reader = index.reader();\n\n System.out.println(...
[ "0.6396278", "0.5805322", "0.56983536", "0.5684332", "0.56273854", "0.5481324", "0.5472585", "0.54533297", "0.5434382", "0.5426868", "0.54180354", "0.5402291", "0.53776324", "0.5334034", "0.5310372", "0.5191553", "0.519085", "0.51873446", "0.5169208", "0.51669115", "0.5154876...
0.49079996
48
/ This method helps add a language specific value to the map containing the custom language specific _all fields
private static void addToLangAll(Map<String, List<String>> lang_acc, String lang, String value) { if(lang_acc.get(lang) != null) { lang_acc.get(lang).add(value); } else { List<String> lang_values = new ArrayList<String>(); lang_values.add(value); lang_acc.put(lang, lang_values); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addInLanguage(Language value);", "Builder addInLanguage(Text value);", "Builder addInLanguage(String value);", "public void addLanguage(String value) {\n/* 230 */ addStringToBag(\"language\", value);\n/* */ }", "Builder addInLanguage(Language.Builder value);", "void addDicItem(String la...
[ "0.66405576", "0.6566677", "0.6554258", "0.63923407", "0.6343879", "0.5968797", "0.5808754", "0.5593291", "0.5560098", "0.544431", "0.5413241", "0.54015553", "0.5392206", "0.53707534", "0.5366228", "0.5358564", "0.534012", "0.5297388", "0.52790457", "0.5254909", "0.5248294", ...
0.65680957
1
/ Define the type of that instance
public static <E> String defineInstanceOf(E doc) { String instanceName = doc.getClass().getSimpleName(); List<String> enumNames = new ArrayList<String>(); Arrays.asList(WithResourceType.values()).forEach( (t) -> {enumNames.add(t.toString()); return;} ); if(enumNames.contains(instanceName)) { if(!instanceNam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static $type () {\n }", "abstract public Type type();", "@Override\n public Class<?> getObjectType() {\n return this.type;\n }", "Type() {\n }", "type getType();", "public Class getType();", "protected abstract String getType();", "private String getType(){\r\n retu...
[ "0.68053895", "0.6686221", "0.6648136", "0.66368663", "0.66108674", "0.6589501", "0.6546466", "0.65109015", "0.65098095", "0.64968383", "0.64968383", "0.64968383", "0.64968383", "0.64968383", "0.64968383", "0.64968383", "0.64968383", "0.6482628", "0.6481466", "0.64766157", "0...
0.0
-1
/ Retrieve from DB the resources that where returned from an elastic query. Returns a Map of List of Resources per Type.
public static Map<String, List<?>> getResourcesPerType(SearchResponse resp) { Map<String, List<ObjectId>> idsOfEachType = new HashMap<String, List<ObjectId>>(); resp.getHits().forEach( (h) -> { if(!idsOfEachType.containsKey(h.getType())) { idsOfEachType.put(h.getType(), new ArrayList<ObjectId>() {{ add(new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getResources(Type type) {\n \t\treturn resources[type.ordinal()];\n \t}", "@Override\r\n\tpublic List<Resource> getAllResources(String category, String type) {\r\n\t\tList<Resource> getAll = resourceDao.findByCategoryAndType(category, type);\r\n\t\tlogger.info(\"Resources fetched by category: \" + cat...
[ "0.61398387", "0.6133664", "0.61095643", "0.5988766", "0.59765744", "0.59387136", "0.5886627", "0.58694696", "0.5835284", "0.58304363", "0.57639873", "0.57294583", "0.5667441", "0.5507182", "0.54850805", "0.5442065", "0.5426678", "0.54215115", "0.5413945", "0.5409956", "0.539...
0.72383887
0
/ JADX WARNING: Code restructure failed: missing block: B:5:0x0012, code lost: r0 = r0.getSubTypeRepresentative();
@org.jetbrains.annotations.NotNull /* Code decompiled incorrectly, please refer to instructions dump. */ public static final kotlin.reflect.jvm.internal.impl.types.KotlinType getSubtypeRepresentative(@org.jetbrains.annotations.NotNull kotlin.reflect.jvm.internal.impl.types.KotlinType r2) { /* ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final com.p111d.p112a.p121c.p134k.C7119d m3865a(com.p111d.p112a.p121c.aa r14, com.p111d.p112a.p121c.p128f.C1451n r15, com.p111d.p112a.p121c.C5354j r16, com.p111d.p112a.p121c.C1545o<?> r17, com.p111d.p112a.p121c.p131i.C1478f r18, com.p111d.p112a.p121c.p131i.C1478f r19, com.p111d.p112a.p121c.p128f.C5328e r...
[ "0.6069195", "0.6032226", "0.59744185", "0.59239256", "0.58839023", "0.5856266", "0.58367467", "0.57998174", "0.5795995", "0.57110846", "0.570009", "0.56880057", "0.56494164", "0.55858225", "0.5565508", "0.5560902", "0.55263764", "0.5524576", "0.5500021", "0.54616815", "0.545...
0.5738375
9
/ JADX WARNING: Code restructure failed: missing block: B:5:0x0012, code lost: r0 = r0.getSuperTypeRepresentative();
@org.jetbrains.annotations.NotNull /* Code decompiled incorrectly, please refer to instructions dump. */ public static final kotlin.reflect.jvm.internal.impl.types.KotlinType getSupertypeRepresentative(@org.jetbrains.annotations.NotNull kotlin.reflect.jvm.internal.impl.types.KotlinType r2) { /* ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final com.p111d.p112a.p121c.p134k.C7119d m3865a(com.p111d.p112a.p121c.aa r14, com.p111d.p112a.p121c.p128f.C1451n r15, com.p111d.p112a.p121c.C5354j r16, com.p111d.p112a.p121c.C1545o<?> r17, com.p111d.p112a.p121c.p131i.C1478f r18, com.p111d.p112a.p121c.p131i.C1478f r19, com.p111d.p112a.p121c.p128f.C5328e r...
[ "0.62494266", "0.6081061", "0.5997935", "0.5913925", "0.58950204", "0.587451", "0.5858873", "0.5851225", "0.5837627", "0.5806602", "0.57978225", "0.579461", "0.57361066", "0.57315874", "0.5726052", "0.5696958", "0.56861675", "0.5607479", "0.5577022", "0.5521802", "0.5519213",...
0.5710276
15
Write a test that proves that having an answer accepted gives the answerer a 15 point reputation boost
@Test public void acceptedAnswerGivesAnswererReputationPoints() throws Exception { alice.acceptAnswer(bobAnswer); assertEquals("Answer's reputation doesn't goes up by 15",15,bob.getReputation()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double scoreAnswer(Question question, Answer answer);", "@Test\n public void pickUpSomeGoldTest() {\n\tassertNotEquals(0,score);\n }", "@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n ...
[ "0.65650123", "0.64551693", "0.64467555", "0.6261438", "0.6253114", "0.62037486", "0.6182263", "0.61631066", "0.61027575", "0.60827464", "0.60260236", "0.6021406", "0.59927696", "0.59744084", "0.5968394", "0.59681106", "0.5956983", "0.5926544", "0.5906634", "0.5902414", "0.58...
0.77800804
0