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
TODO Autogenerated method stub
@Override public List<TopicContent> findAllByExample(TopicContent entity) { return topicContentDao.findAllByExample(entity); }
{ "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 TopicContent findById(Serializable id) { return topicContentDao.findById(id); }
{ "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 @Transactional public Serializable save(TopicContent entity) { return topicContentDao.save(entity); }
{ "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 @Transactional public void saveOrUpdate(TopicContent entity) { topicContentDao.saveOrUpdate(entity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Constructors Create a detached OrderLogRecord
public OrderLogRecord() { super(OrderLog.ORDER_LOG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OrderLogRecord(Integer id, Integer orderId, Byte status, Timestamp changeTime) {\n super(OrderLog.ORDER_LOG);\n\n set(0, id);\n set(1, orderId);\n set(2, status);\n set(3, changeTime);\n }", "public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n ...
[ "0.6770165", "0.61447936", "0.6105364", "0.6032559", "0.6028659", "0.5946867", "0.59333056", "0.59249943", "0.5798283", "0.5709393", "0.5693065", "0.569222", "0.56332064", "0.56045175", "0.5598732", "0.55819243", "0.5571951", "0.5561362", "0.5540062", "0.5530701", "0.5515847"...
0.761623
0
Create a detached, initialised OrderLogRecord
public OrderLogRecord(Integer id, Integer orderId, Byte status, Timestamp changeTime) { super(OrderLog.ORDER_LOG); set(0, id); set(1, orderId); set(2, status); set(3, changeTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OrderLogRecord() {\n super(OrderLog.ORDER_LOG);\n }", "public ZLogRecord() {\n super(ZLog.Z_LOG);\n }", "public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n }", "private LogRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(b...
[ "0.73277926", "0.59309375", "0.5831095", "0.58150285", "0.55827177", "0.5573061", "0.5570217", "0.5560888", "0.55555016", "0.5441799", "0.5438781", "0.54356635", "0.5389416", "0.5379225", "0.5317166", "0.53099406", "0.5294844", "0.5284028", "0.528083", "0.52381873", "0.523758...
0.63250244
1
dialogue/EmitterOperations.java . Generated by the IDLtoJava compiler (portable), version "3.2" from emitter.idl samedi 3 janvier 2015 12 h 03 CET
public interface EmitterOperations { void sendMessage(String to, String message) throws dialogue.notExistingPseudo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Emitter getEmitter()\n {\n return emit;\n }", "public interface Emitter extends UnaryVoidFunction<MethodVisitor> {\n }", "public interface EventEmitter\n{\n\n public abstract void disable();\n\n public abstract void emit(String s);\n\n public abstract void emit(String s, Map map);\n\n ...
[ "0.6241647", "0.61170834", "0.57340086", "0.5703971", "0.56234765", "0.56144017", "0.5583701", "0.55080706", "0.5437371", "0.53772694", "0.535223", "0.5311493", "0.5302515", "0.5301275", "0.52413845", "0.523285", "0.5191391", "0.51545066", "0.5135305", "0.51284873", "0.509190...
0.65431654
0
Opens a popup window of instructions
public static void showInstr(Activity a) { // Get instructions layout LayoutInflater inflater = a.getLayoutInflater(); View layout = inflater.inflate(R.layout.instructions, (ViewGroup) a.findViewById(R.id.instructions1)); // initialize popup window final PopupWindow pw = new PopupWindow(layout, LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, true); pw.showAtLocation(layout, Gravity.CENTER | Gravity.TOP, 0, 500); // Set click event to close popup layout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { // do anything when popupWindow was clicked pw.dismiss(); // dismiss the window } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showInstructions() {\n Alert popUp = new Alert(Alert.AlertType.INFORMATION);\n popUp.setTitle(\"Instructions\");\n popUp.setContentText(\"The size field in the bottom let controls the board demensions.\" \n + \"The coord field in the bottom right controls the starting point of the tour...
[ "0.7289102", "0.70048505", "0.69443095", "0.67213815", "0.6657352", "0.65574443", "0.6480926", "0.6444788", "0.6397764", "0.63916564", "0.63732064", "0.63150454", "0.62634003", "0.62550616", "0.6235914", "0.62354046", "0.6222802", "0.6222695", "0.61974776", "0.617398", "0.615...
0.712577
1
do anything when popupWindow was clicked
@Override public void onClick(View view) { pw.dismiss(); // dismiss the window }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void triggerPopup();", "@Override\n\t\t\tpublic void onClickedPopup(int arg0) {\n\t\t\t\t\n\t\t\t}", "public void getPopup() {\n\t\t\tglobal.btnClick(popup);\n\t\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}", "public void createPopupWindow...
[ "0.8000939", "0.7730794", "0.7312978", "0.7297694", "0.7264843", "0.7245704", "0.70560133", "0.7027555", "0.69766414", "0.69193166", "0.6905391", "0.6862138", "0.68515307", "0.6842874", "0.6817827", "0.6747053", "0.6733237", "0.672802", "0.67094064", "0.67094064", "0.66971105...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int two[][] = { { 3, 2, 1 }, { 5, 4, 3, 2, 1 }, { 1, 2 } }; for (int i = 0; i <= two.length - 1; i++) { for (int j = 0; j <= two[i].length - 1; j++) { System.out.print(two[i][j] + "\t"); } System.out.println(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
A pool with a single task queue
public static SimplePool simplePool(int poolSize) { return new SimplePool(poolSize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Processor(int id, WorkStealingThreadPool pool) {\n this.id = id;\n this.pool = pool;\n this.tasks = new ArrayDeque<Task>();\n }", "OMMPool getPool();", "public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an...
[ "0.69124264", "0.69019365", "0.68559355", "0.6766047", "0.67325336", "0.66666394", "0.6644701", "0.65352875", "0.6451499", "0.64182645", "0.641022", "0.6389741", "0.63232446", "0.6284686", "0.623154", "0.615268", "0.6152039", "0.6112127", "0.6097306", "0.609038", "0.60900193"...
0.0
-1
The returned queue is not thread safe
public Queue getQueue() { return new Queue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void workOnQueue() {\n }", "T get() throws QueueEmpytException;", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "void processQueue();", "void runQueue();", "public void onQueue();", "protected abstract long waitOnQueue();", "public static Queue getQueue(){\r\n\t\treturn queueInstanc...
[ "0.7484572", "0.7328324", "0.7141822", "0.6984493", "0.68758136", "0.6861133", "0.68540335", "0.68244195", "0.678703", "0.67080104", "0.67080104", "0.66428447", "0.66310763", "0.6595444", "0.6569303", "0.65544456", "0.6523439", "0.64861286", "0.64861286", "0.6466363", "0.6454...
0.69644725
4
Mimic the old ThreadPool interface (saves the caller from having to create a temporary effectively final variable to pass to the lambda)
public <T> void submit(T workLoad, Consumer<T> workerFunction) { this.submit(() -> workerFunction.accept(workLoad)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void test3() {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(1,1,10L, TimeUnit.SECONDS,new LinkedBlockingDeque<>(2),new ThreadPoolExecutor.DiscardPolicy());\n for (int i = 0; i < 10; i++) {\n executor.execute(new Runnable() {\n @Override\n ...
[ "0.61536866", "0.61400664", "0.61264646", "0.6010197", "0.6008564", "0.5969267", "0.59422576", "0.5895566", "0.58351815", "0.5822975", "0.579513", "0.57804143", "0.57758677", "0.5743271", "0.57302517", "0.5723408", "0.5709262", "0.562965", "0.5601754", "0.55807906", "0.547133...
0.0
-1
TODO: is there a reason I didn't just use Comparator?
public interface EqualsOverride<T> { boolean isEqual(T t1, T t2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n ...
[ "0.682034", "0.6574746", "0.6537471", "0.64504206", "0.6434276", "0.63721824", "0.63660794", "0.6365769", "0.6358311", "0.6314118", "0.62931365", "0.62609524", "0.6241159", "0.6236253", "0.6203748", "0.6144584", "0.6133104", "0.6119511", "0.6109382", "0.6102122", "0.60912365"...
0.0
-1
TODO Autogenerated method stub
public List<Map<String, Object>> orderReport(Date stateDate,Date endDate) { return reportMapper.orderReport(stateDate,endDate); }
{ "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
Constructor that makes document with Document Model docModel and Title title.
public Document(String title, CopyOnWriteArrayList<String> docModel, String location, int id) { this.docModel = docModel; this.name = title; this.location = location; this.id = id; /* Starts up command listener for document */ Thread t = new Thread(new Runnable() { @Override public void run() { while (true) { if (!commandsQueue.isEmpty()) { String[] currCommand = commandsQueue.remove(); if (currCommand[0].equals("insert")) { insert(Integer.parseInt(currCommand[1]), currCommand[2]); } else if (currCommand[0].equals("remove")) { remove(Integer.parseInt(currCommand[1])); } updateActiveUsers(); } } } }); t.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Doc() {\n\n }", "public CouchDoc() {\n super();\n docType = getClass().getSimpleName();\n }", "public Document() {\n }", "public Model(CoreSession session, String parentPath, String title)\n throws ClientException {\n \tthis.session = session;\n this.doc =...
[ "0.67850393", "0.6596007", "0.6558568", "0.65254563", "0.6462364", "0.6432631", "0.6428108", "0.6347068", "0.6283546", "0.62461394", "0.62151855", "0.6176749", "0.6114954", "0.6097962", "0.60554224", "0.6045351", "0.5987858", "0.59221965", "0.59212357", "0.589833", "0.5895457...
0.65499717
3
Synchronized for good measure
private synchronized void remove(int index) { if (index >= 0 && index <= docModel.size()) try { docModel.remove(index - 1); } catch (ArrayIndexOutOfBoundsException e) { if (commandsQueue.size() == 0) updateActiveUsers(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void synchronize(){ \r\n }", "void contentsSynchronized();", "@Override\n public void sync(){\n }", "public boolean synchronize() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean isSynchronized() {\n\t\treturn false;\r\n\t}", "void beforeContentsSynchronized();", "@Override...
[ "0.72421104", "0.6999782", "0.67506534", "0.6646443", "0.6515706", "0.6345236", "0.62554467", "0.61064506", "0.6096856", "0.60748994", "0.6060692", "0.60446596", "0.60227007", "0.6015972", "0.5980698", "0.5968138", "0.596499", "0.5935962", "0.59232354", "0.5914658", "0.591287...
0.0
-1
Registers a user to be available to updates by adding the user to the ActiveUsers list.
public void addActiveUser(Socket socket) { if (!activeClients.contains(socket)) activeClients.add(socket); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void register(User user) {\n\t\tboolean exists = false ;\n\t\tfor ( User currentUser : users )\n\t\t\tif ( currentUser.getId().equals(user.getId()) )\n\t\t\t\texists = true ;\n\t\tif ( !exists ) {\n\t\t\taddUser(user) ;\n\t\t\tSystem.out.println(\"[USER CREATED]\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t...
[ "0.7163303", "0.6941543", "0.68976504", "0.6847833", "0.6802976", "0.67935634", "0.67932326", "0.67786455", "0.6747026", "0.67464125", "0.67142713", "0.6704769", "0.6664197", "0.66505164", "0.6646271", "0.66227955", "0.65923584", "0.65854686", "0.6526999", "0.65259296", "0.65...
0.0
-1
Updates all users of changes to the document model.
public void updateActiveUsers() { if (commandsQueue.isEmpty()) { String currentDoc = this.toString(); for (Socket socket : activeClients) { if (!socket.isClosed()) Server.outs.get(socket).println(id + "A" + currentDoc); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }", "private void updateUserDoc(){\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n\n Map<String, Object> userData =...
[ "0.7151659", "0.6768378", "0.6552698", "0.6387356", "0.6354012", "0.6263001", "0.62575686", "0.62538546", "0.62174964", "0.61992836", "0.6176315", "0.612777", "0.60927606", "0.60889065", "0.6085983", "0.6076445", "0.6076445", "0.6051182", "0.60434085", "0.60232735", "0.601517...
0.0
-1
Adds an insert command to this document's queue.
public void insertChar(int index, String charToInsert) { commandsQueue.add(new String[] { "insert", "" + index, charToInsert }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertCommand(iCommand c){\r\n\t\ttry {\r\n\t\t\tcommandQueue.put(c);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void insert()\n\t{\n\t}", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "@Override\n\tpublic void ins...
[ "0.6309835", "0.6004108", "0.5914999", "0.5878389", "0.57597035", "0.572755", "0.5708168", "0.5707288", "0.5663041", "0.5637867", "0.56252724", "0.56173897", "0.55496556", "0.55474293", "0.5506244", "0.55002195", "0.5492096", "0.5474236", "0.54619384", "0.5453816", "0.5446211...
0.552912
14
Add a remove command to this document's queue
public void removeChar(int index) { commandsQueue.add(new String[] { "remove", "" + index }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean remove(final String queueName, final String item);", "public E remove() throws FileQueueClosedException;", "void removeFromQueue(ActionEvent event){\n model.getQueueList().remove(podcast);\n podcast.setQueued(false);\n podcast.togglePlaying();\n cm.hide();\n }", ...
[ "0.63636386", "0.62891227", "0.6254015", "0.6225597", "0.61659455", "0.6156085", "0.6078197", "0.6073013", "0.6073013", "0.59982127", "0.5966731", "0.5966731", "0.5960517", "0.59487873", "0.5946178", "0.5946178", "0.5946178", "0.5946178", "0.5946178", "0.59317374", "0.5901643...
0.0
-1
Also updates the file.
@Override public String toString() { StringBuilder docAsStringtoSend = new StringBuilder(); for (String c : docModel) { if (!c.equals("a")) { docAsStringtoSend.append(c + "a"); } } String newFile = docAsStringtoSend.toString(); updateFile(newFile); return newFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateFile() throws IOException;", "private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }"...
[ "0.8506746", "0.77838236", "0.7551653", "0.7492907", "0.709788", "0.7092099", "0.7090458", "0.7089305", "0.7052082", "0.69570684", "0.69240427", "0.68568957", "0.67104405", "0.66449183", "0.6623295", "0.65701765", "0.65581506", "0.6549171", "0.6520574", "0.6510382", "0.647107...
0.0
-1
Returns the object with the settings used for calls to listWorkflows.
public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse> listWorkflowsSettings() { return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }", "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings()...
[ "0.77528334", "0.7351804", "0.73194444", "0.66365904", "0.6443085", "0.63540846", "0.6348518", "0.61353266", "0.606127", "0.60518575", "0.6038668", "0.589771", "0.5889098", "0.57902", "0.57498604", "0.56907505", "0.564059", "0.55879176", "0.55647624", "0.5517399", "0.5517399"...
0.7442203
1
Returns the object with the settings used for calls to getWorkflow.
public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() { return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }", "public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}", "public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse...
[ "0.7402797", "0.65829134", "0.6569188", "0.6482814", "0.6398887", "0.63577294", "0.6282311", "0.62547994", "0.6234278", "0.61531216", "0.6011736", "0.5980361", "0.59579873", "0.5951297", "0.59450155", "0.59450155", "0.5935413", "0.5860268", "0.58574396", "0.5848011", "0.58386...
0.72824514
1
Returns the object with the settings used for calls to createWorkflow.
public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() { return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }", "public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSetting...
[ "0.7088415", "0.70583254", "0.6937857", "0.6778521", "0.66879827", "0.6253988", "0.6237724", "0.58984935", "0.58694243", "0.58568114", "0.58123714", "0.5779357", "0.56780964", "0.5640501", "0.5629588", "0.5587648", "0.55853236", "0.5581309", "0.5578356", "0.552674", "0.548283...
0.70881844
1
Returns the object with the settings used for calls to createWorkflow.
public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata> createWorkflowOperationSettings() { return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }", "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflow...
[ "0.7089068", "0.70882386", "0.70592517", "0.69389886", "0.6687756", "0.6253731", "0.62370723", "0.58959717", "0.5870429", "0.585731", "0.58130985", "0.5777454", "0.5677465", "0.56424415", "0.56304806", "0.5585896", "0.55832237", "0.5582383", "0.55763704", "0.5525372", "0.5480...
0.6779816
4
Returns the object with the settings used for calls to deleteWorkflow.
public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() { return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }", "public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return...
[ "0.7204206", "0.7113482", "0.7046603", "0.59324473", "0.59294325", "0.57891876", "0.5586847", "0.5539097", "0.549363", "0.5449355", "0.54307806", "0.5260362", "0.525552", "0.5237126", "0.5196807", "0.5157873", "0.51537514", "0.51187193", "0.5111365", "0.5089065", "0.5045715",...
0.7255779
0
Returns the object with the settings used for calls to deleteWorkflow.
public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata> deleteWorkflowOperationSettings() { return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }", "public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().dele...
[ "0.72568613", "0.7205311", "0.7114713", "0.5935227", "0.59318686", "0.5789851", "0.55874646", "0.55400854", "0.54944783", "0.54523015", "0.54319644", "0.52624434", "0.5257416", "0.52390194", "0.5199755", "0.5160899", "0.5156044", "0.51215446", "0.51117474", "0.5092344", "0.50...
0.70480275
3
Returns the object with the settings used for calls to updateWorkflow.
public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() { return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }", "public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSetting...
[ "0.68545276", "0.67819655", "0.673139", "0.6724683", "0.6584358", "0.6244589", "0.6201408", "0.61656106", "0.6105529", "0.6073358", "0.6049008", "0.60259473", "0.60103047", "0.59513766", "0.58278644", "0.5808599", "0.5792222", "0.5745353", "0.5736903", "0.5634157", "0.5555235...
0.6741932
2
Returns the object with the settings used for calls to updateWorkflow.
public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata> updateWorkflowOperationSettings() { return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }", "public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSetting...
[ "0.6855602", "0.6782561", "0.674229", "0.67323506", "0.672563", "0.6245746", "0.6200383", "0.6163892", "0.61066645", "0.6071239", "0.60475016", "0.6027128", "0.6011912", "0.59527385", "0.5828671", "0.5807777", "0.5795284", "0.5744275", "0.57356274", "0.56329936", "0.5554239",...
0.6584894
5
Returns a builder for the default ExecutorProvider for this service.
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return WorkflowsStubSettings.defaultExecutorProviderBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return InstantiatingExecutorProvider.newBuilder();\n }", "public interface IExecutorBuilder {\n /**\n * Build IExecutor implementation.\n * @return IExecutor\n */\n IExecutor build();\n}", "public Bui...
[ "0.8677944", "0.6682121", "0.6461372", "0.6332824", "0.63082975", "0.62088513", "0.601971", "0.58458465", "0.5809147", "0.57288355", "0.57125473", "0.5704943", "0.5693507", "0.5648413", "0.56471133", "0.5575235", "0.55427766", "0.5485984", "0.53418726", "0.530021", "0.5290229...
0.81832516
1
Returns the default service endpoint.
public static String getDefaultEndpoint() { return WorkflowsStubSettings.getDefaultEndpoint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Endpoint getDefaultEndpoint();", "String serviceEndpoint();", "public static String getDefaultEndpoint() {\n return \"biglake.googleapis.com:443\";\n }", "void setDefaultEndpoint(Endpoint defaultEndpoint);", "public String getEndpoint() {\n\t\treturn null;\n\t}", "@Override\n public String getServ...
[ "0.82360005", "0.7306365", "0.72812724", "0.72709095", "0.6871711", "0.6836553", "0.67814", "0.6774995", "0.67027754", "0.66593266", "0.6637685", "0.66110706", "0.6443634", "0.6395922", "0.62653685", "0.6262007", "0.6262007", "0.6243032", "0.6125578", "0.60891914", "0.6080673...
0.79290885
1
Returns the default service scopes.
public static List<String> getDefaultServiceScopes() { return WorkflowsStubSettings.getDefaultServiceScopes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getDefaultServiceScopes() {\n return DEFAULT_SERVICE_SCOPES;\n }", "@Override\n public Set<String> getScopes() {\n return scopes;\n }", "@Override\n public Set<String> getScopes() {\n return scopes;\n }", "public Set<Scope> getScopes();", "public Str...
[ "0.8838099", "0.70479465", "0.70479465", "0.6645841", "0.65511924", "0.63649", "0.62581164", "0.61621046", "0.61239", "0.59535205", "0.5914394", "0.5779066", "0.5577611", "0.5551164", "0.5540299", "0.5518286", "0.5501896", "0.5490035", "0.54535854", "0.5405179", "0.53681076",...
0.8629756
1
Returns a builder for the default credentials for this service.
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { return WorkflowsStubSettings.defaultCredentialsProviderBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }", "public Builder credentials(String credentials) {\n this.credenti...
[ "0.8095155", "0.6680231", "0.6568603", "0.6552868", "0.6499091", "0.5929292", "0.5921872", "0.5905317", "0.5900194", "0.58983713", "0.5874745", "0.5817374", "0.5782903", "0.57620484", "0.573319", "0.5725992", "0.5674109", "0.56623924", "0.56036556", "0.5592997", "0.5561957", ...
0.79790014
1
Returns a builder for the default gRPC ChannelProvider for this service.
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return WorkflowsStubSettings.defaultGrpcTransportProviderBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelProvider.newBuilder()\n .setMaxInboundMessageSize(Integer.MAX_VALUE);\n }", "@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTran...
[ "0.8116084", "0.6873241", "0.6738578", "0.6543354", "0.6384416", "0.63446903", "0.6226921", "0.61498535", "0.6141121", "0.61226094", "0.6106959", "0.5979676", "0.58677787", "0.5786015", "0.56813663", "0.56702286", "0.56461805", "0.5577017", "0.54963803", "0.54963803", "0.5496...
0.79288757
1
Returns a builder for the default REST ChannelProvider for this service.
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder() { return WorkflowsStubSettings.defaultHttpJsonTransportProviderBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return InstantiatingHttpJsonChannelProvider.newBuilder();\n }", "public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return Instantiating...
[ "0.68654746", "0.6740239", "0.652506", "0.61222196", "0.59766525", "0.597628", "0.5784879", "0.574285", "0.5691427", "0.5686799", "0.5677721", "0.5603327", "0.55955297", "0.5592967", "0.5541249", "0.54883397", "0.54505414", "0.5448973", "0.54453456", "0.54361373", "0.5422098"...
0.6291537
3
Returns a new gRPC builder for this class.
public static Builder newBuilder() { return Builder.createDefault(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }", "...
[ "0.70312643", "0.70312643", "0.70312643", "0.70312643", "0.6872343", "0.67416406", "0.66941607", "0.66317827", "0.66317827", "0.66317827", "0.6595073", "0.65859413", "0.65859413", "0.65859413", "0.65859413", "0.6568152", "0.6565212", "0.6543041", "0.6543041", "0.6543041", "0....
0.65777
16
Returns a new REST builder for this class.
@BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Builder newHttpJsonBuilder() {\n return Builder.createHttpJsonDefault();\n }", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "RestClientBuilder(){\n\n }", "RESTElement createRESTElement();", "SourceBuilder createRestController();", "public Buil...
[ "0.64078236", "0.636161", "0.63031363", "0.6251662", "0.62214106", "0.6044236", "0.6012347", "0.6012347", "0.6012347", "0.6012347", "0.5986343", "0.59823984", "0.59722507", "0.59469396", "0.59469396", "0.59469396", "0.59469396", "0.59469396", "0.59469396", "0.59469396", "0.59...
0.0
-1
Returns a new builder for this class.
public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Bu...
[ "0.8275145", "0.8275145", "0.8275145", "0.8275145", "0.82421917", "0.82421917", "0.82421917", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.82274806", "0.81239426", "0.8064605", "...
0.0
-1
Returns a builder containing all the values of this settings class.
public Builder toBuilder() { return new Builder(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }", "public static Builder builder() {\n return new Builder().defaults();\n }", "public static Builder builder() {...
[ "0.720363", "0.7059011", "0.6967154", "0.6967154", "0.6967154", "0.6967154", "0.6910475", "0.69048744", "0.68553716", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6804492", "0.6759162", ...
0.6386135
40
Applies the given settings updater function to all of the unary API methods in this service. Note: This method does not support applying settings to streaming methods.
public Builder applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder applyToAllUnaryMethods(\n ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {\n super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);\n return this;\n }", "public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings(...
[ "0.7554154", "0.5765662", "0.53084767", "0.52201015", "0.4868081", "0.48139605", "0.46763456", "0.45671627", "0.45266584", "0.45204568", "0.4404755", "0.43892306", "0.4383607", "0.4331655", "0.42828378", "0.42635742", "0.4263556", "0.426203", "0.4252021", "0.42405784", "0.423...
0.7552495
1
Returns the builder for the settings used for calls to listWorkflows.
public PagedCallSettings.Builder< ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse> listWorkflowsSettings() { return getStubSettingsBuilder().listWorkflowsSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }", "public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSetting...
[ "0.75348645", "0.72261053", "0.6958047", "0.66622436", "0.65501153", "0.64925325", "0.6379752", "0.6367129", "0.62053734", "0.61442727", "0.61246425", "0.6031748", "0.59410465", "0.58692485", "0.5823588", "0.5728242", "0.5696486", "0.5696486", "0.5696486", "0.5696486", "0.569...
0.76900035
0
Returns the builder for the settings used for calls to getWorkflow.
public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() { return getStubSettingsBuilder().getWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }", "public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n ret...
[ "0.72987425", "0.7067054", "0.6798463", "0.67728484", "0.6632458", "0.6536525", "0.65170324", "0.63390607", "0.6282303", "0.62462133", "0.62442786", "0.62442786", "0.62442786", "0.62442786", "0.6232064", "0.6189585", "0.6155994", "0.61406547", "0.61406547", "0.61406547", "0.6...
0.77087456
0
Returns the builder for the settings used for calls to createWorkflow.
public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() { return getStubSettingsBuilder().createWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }", "public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStu...
[ "0.7307331", "0.7237078", "0.6840037", "0.6573413", "0.6500092", "0.64185345", "0.6354319", "0.62773484", "0.6274826", "0.6274826", "0.6274826", "0.6274826", "0.6264115", "0.6243668", "0.6238767", "0.6200253", "0.61949354", "0.61949354", "0.61949354", "0.61949354", "0.6194935...
0.7496752
0
Returns the builder for the settings used for calls to createWorkflow.
public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata> createWorkflowOperationSettings() { return getStubSettingsBuilder().createWorkflowOperationSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }", "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSetting...
[ "0.74976027", "0.73087215", "0.6839398", "0.65732574", "0.6501686", "0.64206153", "0.6355203", "0.6278317", "0.62732065", "0.62732065", "0.62732065", "0.62732065", "0.6263115", "0.62423384", "0.6237595", "0.62019664", "0.61932474", "0.61932474", "0.61932474", "0.61932474", "0...
0.723799
2
Returns the builder for the settings used for calls to deleteWorkflow.
public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() { return getStubSettingsBuilder().deleteWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }", "public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ...
[ "0.77001864", "0.66708815", "0.64944535", "0.6481094", "0.6338766", "0.61855394", "0.6064977", "0.60344726", "0.5996293", "0.5900081", "0.5863473", "0.5840561", "0.58114743", "0.57600796", "0.57350534", "0.5678445", "0.5633584", "0.5528899", "0.5523982", "0.5518807", "0.54841...
0.788844
0
Returns the builder for the settings used for calls to deleteWorkflow.
public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata> deleteWorkflowOperationSettings() { return getStubSettingsBuilder().deleteWorkflowOperationSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }", "public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).de...
[ "0.788844", "0.66708815", "0.64944535", "0.6481094", "0.6338766", "0.61855394", "0.6064977", "0.60344726", "0.5996293", "0.5900081", "0.5863473", "0.5840561", "0.58114743", "0.57600796", "0.57350534", "0.5678445", "0.5633584", "0.5528899", "0.5523982", "0.5518807", "0.5484152...
0.77001864
1
Returns the builder for the settings used for calls to updateWorkflow.
public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() { return getStubSettingsBuilder().updateWorkflowSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }", "public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStu...
[ "0.71115535", "0.70803565", "0.704893", "0.6864769", "0.68425846", "0.6687923", "0.6632983", "0.6406872", "0.6327836", "0.63113123", "0.6277428", "0.61280125", "0.61222637", "0.61222637", "0.61222637", "0.61222637", "0.6114015", "0.60347193", "0.60347193", "0.60347193", "0.60...
0.7274643
0
Returns the builder for the settings used for calls to updateWorkflow.
public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata> updateWorkflowOperationSettings() { return getStubSettingsBuilder().updateWorkflowOperationSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }", "public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSetting...
[ "0.7273282", "0.7111803", "0.70493084", "0.6864641", "0.68428123", "0.6688344", "0.66328233", "0.64066523", "0.63284016", "0.631149", "0.62780654", "0.61275214", "0.6122878", "0.6122878", "0.6122878", "0.6122878", "0.61145097", "0.6035396", "0.6035396", "0.6035396", "0.603539...
0.70789295
2
Get all the concepts complying with the given descriptor. Strict determines a filter for the concepts based on version info
public static IDescribable getFirst( Collection<? extends IDescribable> results ) { if(( results == null ) || ( results.size() == 0 )) return null; return results.iterator().next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<String> getValidDescriptors();", "@SuppressWarnings({\n \"static-method\", \"unchecked\"\n })\n private ConceptList findAvailableEditingConcepts(Translation translation,\n PfsParameter pfs, WorkflowService service) throws Exception {\n\n // Cleanse PFS parameter to turn \"concep...
[ "0.5236537", "0.5156919", "0.5106576", "0.48628634", "0.4821903", "0.47683027", "0.47395056", "0.47015387", "0.46872947", "0.46803406", "0.46738648", "0.46491268", "0.46438628", "0.4642038", "0.46387205", "0.4602838", "0.45861086", "0.45014352", "0.44868058", "0.4470419", "0....
0.0
-1
Constructor initializing geneSetElements ArrayList
public Geneset(){ this.geneSetElements=new ArrayList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "public Layer_ElementsCollection()\n\t{\n\t\tthis.elements = new ArrayList<GIS_element>();\n\t}", "public ZYA...
[ "0.7000186", "0.6482007", "0.643671", "0.6420645", "0.63557136", "0.6316284", "0.6307281", "0.6307083", "0.62883335", "0.6260298", "0.6241966", "0.6179871", "0.61777157", "0.61171913", "0.61143947", "0.61047393", "0.6091298", "0.6083577", "0.6064851", "0.6033747", "0.5987854"...
0.86701906
0
Adds an element (gene) to the geneSetElement arraylist
public void setGeneSetElement(IGeneSetElement element, int index) { geneSetElements.add(index, element); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}", "public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}", "public void addGene(BEDGene gene) {\n \r\n\t\t\tif (coordinate.equals(gene.coordinate) && (start <= gene.getEnd()) && (end >= gene.getS...
[ "0.72744966", "0.68369776", "0.654107", "0.6156609", "0.59677666", "0.5839736", "0.5784972", "0.5752807", "0.5746486", "0.5703434", "0.56745523", "0.5670546", "0.562323", "0.5602917", "0.5565153", "0.5539199", "0.5514513", "0.55065024", "0.548573", "0.54834837", "0.54800546",...
0.7375305
0
Returns arraylist containing genesetelements (aka genes )
public ArrayList<IGeneSetElement> getGenesetElements(){ return geneSetElements; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}", "public String getGeneList() {\n return geneList;\n }", "protected float[] getGenes() {\n\t\t\treturn genes;\n\t\t}", "public java.util.List<java.lang.String> getGeneIds() {\n return geneIds;\n }", "public java.util...
[ "0.7613713", "0.7136591", "0.7024264", "0.6953726", "0.68463945", "0.6362184", "0.6273455", "0.6252553", "0.6245469", "0.6240094", "0.61775833", "0.6173061", "0.6115659", "0.6037047", "0.60284704", "0.59960616", "0.595504", "0.5935298", "0.59254616", "0.5842262", "0.58255464"...
0.8035885
0
Set the name of the geneset
public void setGeneSetName(String name) { geneSetName=name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String string) {\n\t\t\n\t}", "public void setName(String newname) {\n name=newname;\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "void setName(String name_);", "public void setName(String name);", "public void setName(String name);", "public void setName(S...
[ "0.69011515", "0.6864512", "0.6858814", "0.6788945", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.6742871", "0.67219836", "0.67198014", "0.67198014", "0.67198014", "0.67198014", "0.6719801...
0.8168786
0
Returns a string array containing genes in each synexpression group. There may be multiple synExpressionGroups for a geneset.
public String[] getSynExpressionGroup(String name) { return synExpressionGroups.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getSimilarGenes(\r\n\t\t\tString synExpressionGroupName) {\r\n\t\t\r\n\t\treturn similarGeneGroups.get(synExpressionGroupName);\r\n\t}", "public int[] getGenes() {\r\n\t\tint[] genes = new int[9];\r\n\t\tgenes[0] = this.command.ordinal();\r\n\t\tif(this.senseDir == null){\r\n\t\t\tgenes[1] = -1;\...
[ "0.7249261", "0.62478304", "0.5878942", "0.58360845", "0.5829549", "0.57819754", "0.56982577", "0.5613286", "0.55350655", "0.5517679", "0.54880553", "0.54269594", "0.53836566", "0.5360303", "0.53267807", "0.53057903", "0.52610946", "0.52607673", "0.51872176", "0.517671", "0.5...
0.6285094
1
FloatMatrix containing average gene expression profile of genes in synexpression groups. Each row represents a synexpression group
public FloatMatrix getSynExpressionProfiles() { return synExpressionProfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}", "private double[] mean(Population pop) {\n double[] value = new double[pop.getIndividual(0).getNumGenes()];\n //for all individuals\n Iterator<Individual> it = pop.getIterator();\n ...
[ "0.62834704", "0.54425555", "0.5270386", "0.521526", "0.5032017", "0.50086963", "0.499759", "0.49710405", "0.4943159", "0.48937297", "0.4875009", "0.48046643", "0.47931883", "0.4774733", "0.47616", "0.47429466", "0.47092998", "0.47047696", "0.47023305", "0.46909133", "0.46811...
0.48585498
11
Sets genes present in a synexpression group
public void setSynExpressionGroup(String name, String[] groups) { if(!synExpressionGroups.containsKey(name)) { synExpressionGroups.put(name, groups); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mk...
[ "0.60668975", "0.6051176", "0.56451744", "0.5642881", "0.5580399", "0.5558432", "0.55379677", "0.5488075", "0.5312915", "0.5310065", "0.53020376", "0.52711105", "0.519564", "0.5127788", "0.50902003", "0.50878847", "0.5068151", "0.50506413", "0.5015784", "0.50070137", "0.49901...
0.58403957
2
Sets the average gene expression profile for genes in synexpression groups
public void setSynExpressionProfiles(FloatMatrix fm) { synExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension()); synExpressionProfile=fm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSimilarGeneExpressionProfile(FloatMatrix fm) {\r\n\t\taverageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\taverageExpressionProfile=fm;\r\n\t}", "public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}", "...
[ "0.6340892", "0.57601064", "0.5439786", "0.5385987", "0.5101949", "0.49801114", "0.49767798", "0.49723533", "0.49654403", "0.4879104", "0.48684123", "0.48495185", "0.48467427", "0.4795238", "0.47763664", "0.47516885", "0.47407085", "0.47076887", "0.4685882", "0.4684271", "0.4...
0.50353867
5
Returns genes having same profile as ones in present in requested synexpression group
public String[] getSimilarGenes( String synExpressionGroupName) { return similarGeneGroups.get(synExpressionGroupName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkAssociatedProfilesForDupeNames(Command command) {\n List<DeviceProfile> profiles = profileDao.getAssociatedProfilesForCommand(command);\n profiles.forEach(p -> profileDao.checkCommandNames(p.getCommands(), command.getName()));\n }", "private boolean equalGenotypes(String g1, String g2){\...
[ "0.4832562", "0.4792259", "0.4736929", "0.4735319", "0.4717676", "0.46938947", "0.46886307", "0.4676835", "0.46344563", "0.45839235", "0.4505737", "0.4494862", "0.44446754", "0.44419625", "0.4438101", "0.4403876", "0.4403044", "0.43661723", "0.4358583", "0.43533635", "0.43522...
0.48560354
0
FloatMatrix containing average gene expression profile of genes similar to ones in synexpression groups. Each row represents expression profile of a group similar to corresponding synexpression group
public FloatMatrix getSimilarGeneExpressionProfile( ) { return averageExpressionProfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSimilarGeneExpressionProfile(FloatMatrix fm) {\r\n\t\taverageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\taverageExpressionProfile=fm;\r\n\t}", "public Pairs[] getMeanOfGaussionsFromEM(String inputFolderPath, int numOfGaussions) throws Exception\n{\n\tdo...
[ "0.5630661", "0.53215265", "0.50786924", "0.49005705", "0.48687094", "0.48262435", "0.48058325", "0.4794619", "0.47107783", "0.46735853", "0.46731818", "0.4608861", "0.46086442", "0.46026874", "0.46001658", "0.45804903", "0.45679915", "0.45487806", "0.45255122", "0.45189056", ...
0.65712166
0
Sets average gene expression profile of genes similar to ones in synexpression groups. Each row represents expression profile of a group similar to corresponding synexpression group
public void setSimilarGeneExpressionProfile(FloatMatrix fm) { averageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension()); averageExpressionProfile=fm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n...
[ "0.60047936", "0.49998412", "0.49995297", "0.49943098", "0.49794868", "0.49451828", "0.48579407", "0.4766455", "0.47481173", "0.47464943", "0.47444606", "0.47427937", "0.4710991", "0.4643957", "0.4613184", "0.45928517", "0.4591761", "0.4578058", "0.45767847", "0.45683315", "0...
0.6236699
0
Sets genes having same profile as ones in present in requested synexpression group
public void setSimilarGenes(String name, String[] groups) { if(!similarGeneGroups.containsKey(name)) { similarGeneGroups.put(name, groups); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void syncProfileSelection() {\r\n\t\tfor (int i = 0; i < selectedProfiles.size(); i++) {\r\n\t\t\tselectedProfiles.set(i, tableSelectionPD.isProfileSelected(i));\r\n\t\t}\r\n\t}", "private void setProfileUNr(){\n Set<Hole> holeSet = createHoleSetWithUNr();\n\n for (Profile profile:profiles)...
[ "0.5225393", "0.5176617", "0.506406", "0.49331456", "0.49254194", "0.4918292", "0.48948118", "0.4846818", "0.48047802", "0.4804625", "0.47484598", "0.4676048", "0.46604475", "0.46588057", "0.46341407", "0.46011502", "0.45939702", "0.45904198", "0.45560515", "0.45520404", "0.4...
0.5100111
2
prepare a bunch of datetime objects
private static void testDuration() { LocalTime time1 = LocalTime.of(15, 20, 38); LocalTime time2 = LocalTime.of(21, 8, 49); LocalDateTime dateTime1 = time1.atDate(LocalDate.of(2014, 5, 27)); LocalDateTime dateTime2 = time2.atDate(LocalDate.of(2015, 9, 15)); Instant i1 = Instant.ofEpochSecond(1_000_000_000); Instant i2 = Instant.now(); // create duration between two points Duration d1 = Duration.between(time1, time2); Duration d2 = Duration.between(dateTime1, dateTime2); Duration d3 = Duration.between(i1, i2); Duration d4 = Duration.between(time1, dateTime2); // create duration from some random value Duration threeMinutes; threeMinutes = Duration.ofMinutes(3); threeMinutes = Duration.of(3, ChronoUnit.MINUTES); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void beforeTimeSlices()\n\t\tthrows DbCompException\n\t{\n dates = new ArrayList<Date>();\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "@Test\n public void testSetLocalDateTime() throws...
[ "0.58052653", "0.58043647", "0.56661403", "0.547128", "0.5469754", "0.5427309", "0.53592867", "0.5345362", "0.5334882", "0.5308328", "0.5276325", "0.52528715", "0.5189466", "0.51324785", "0.5128294", "0.50853276", "0.5076408", "0.5036697", "0.5011998", "0.49937513", "0.498892...
0.0
-1
implementarea return compacta e facuta in service
@PostMapping("/postCar") public ResponseEntity<Compacta> postCar(@RequestBody Compacta compacta){ return compactaService.postCar(compacta); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebService_Detalle_alquiler_factura() {\n }", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios...
[ "0.6708876", "0.63445014", "0.6331465", "0.6237047", "0.62259895", "0.6170757", "0.61602443", "0.61378706", "0.6131342", "0.6129244", "0.6128983", "0.61027265", "0.60795754", "0.60677284", "0.6067199", "0.60665154", "0.6064295", "0.6057673", "0.60210896", "0.5982439", "0.5979...
0.0
-1
Colors too close to black (e.g. 1, 0, 0), are to be converted using floats and thus counting as (255, 0, 0).
protected Color createColor(int red, int green, int blue, int alpha) { if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) { // rgba either 0 or 1 Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)alpha); // System.out.println(c); return c; } return super.createColor(red, green, blue, alpha); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int rgbColor(double u, double v);", "public static int countColorsAboveBrightnessThreshold(double bound) {\n int count = 0;\n\n if (bound >= luminanceOfRed255Green255Blue11()) {\n //If the bound is this high, no color value can be lower than 11, even if the other two are ...
[ "0.65912384", "0.63488305", "0.6290758", "0.6290381", "0.62033767", "0.61641836", "0.61399734", "0.6103646", "0.6066932", "0.6038863", "0.6031084", "0.6020753", "0.6009948", "0.5928065", "0.59061044", "0.5900362", "0.58941656", "0.58695567", "0.5857348", "0.5857348", "0.58525...
0.0
-1
not to be instantiated
private HepRepColor() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "private TMCourse() {\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private ...
[ "0.6897312", "0.6823182", "0.6513449", "0.6496372", "0.6442771", "0.6400153", "0.63860023", "0.6352101", "0.6349638", "0.6345327", "0.63452953", "0.63316935", "0.63316935", "0.6331587", "0.6314085", "0.6311126", "0.6294324", "0.6282171", "0.62642527", "0.62616545", "0.6260278...
0.0
-1
this method returns a Color. Colors are supposedly immutable and are returned from the same table. The RGBA formats, where Alpha is optional and defaults to 1, are: by name: "yellow" , where alpha is always 1.0 by int r,g,b,a: "128, 255, 64, 255" , where alpha (a) is optional by float r,g,b,a: "0.5, 1.0, 0.25, 1.0" , where alpha (a) is optional by single number: "64637" or "0x0FFF08" , where alpha is always 1.0
public static final Color get(String name) { try { return cc.stringToColor(name); } catch (ColorConverter.ColorConversionException x) { System.err.println(x.getMessage()+" defaulting to 'white'."); return Color.white; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Color createColor(int red, int green, int blue, int alpha) {\n if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) {\n // rgba either 0 or 1\n Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)...
[ "0.75474596", "0.65812004", "0.646732", "0.64516485", "0.64368045", "0.64063996", "0.63948447", "0.6333855", "0.6333855", "0.6333855", "0.6333855", "0.6333855", "0.63273126", "0.62911415", "0.62534726", "0.62534726", "0.62534726", "0.62418604", "0.6221301", "0.62057155", "0.6...
0.5946053
34
Converts color into string
public static String get(Color color) { return cc.colorToString(color); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public\n static\n String convertColorToString(Color val)\n {\n String ret_String;\n\n int a;\n try {\n a = val.getAlpha();\n }\n catch (NoSuchMethodError excp) {\n System.out.println(\"YutilProperties:convertColorToString:excp=[\" + excp + \"]\");\n...
[ "0.78138494", "0.7346295", "0.72585154", "0.72558063", "0.7248682", "0.7229038", "0.7139886", "0.713417", "0.7056529", "0.7027422", "0.69279593", "0.68791497", "0.6796463", "0.6763255", "0.6607346", "0.6602719", "0.65980196", "0.65935594", "0.6590814", "0.65392435", "0.653169...
0.726611
2
TODO: remove b4 publish
public ForwardRequest setInitiator() { this.isInitiator = true; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void publishMe();", "void publish();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n public void publishStart(Publisher publisher) {\n }", "@Override\n public void handleSnapshot(FarmUtilDomain.PublishUtilState snapshot) {\n \n }", "public String getPublish()...
[ "0.6655902", "0.6600833", "0.619524", "0.59749633", "0.58661246", "0.5661516", "0.5661516", "0.5655765", "0.5587999", "0.556117", "0.5527616", "0.5517744", "0.5494567", "0.5488161", "0.5488161", "0.54456913", "0.54414827", "0.54338187", "0.54338187", "0.54072964", "0.54043126...
0.0
-1
Overrides the toString method provided by Object
public String toString() { return _firstName + " " + _lastName + ": " + _balance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override String toString();", "@Override public String toString();", "@Override\r\n String toString();", "@Override\n String toString();", "@Override\n String toString();", "@Override\r\n public String toString();", "@Override\r\n\tpublic String toString();", "@Override\n\tString toStrin...
[ "0.87281114", "0.86668193", "0.86226207", "0.85165495", "0.85165495", "0.8486862", "0.8447938", "0.84249955", "0.8333846", "0.83197486", "0.83197486", "0.8265315", "0.8253768", "0.8223885", "0.8223885", "0.8223885", "0.8223885", "0.8223885", "0.8223885", "0.8223885", "0.81587...
0.0
-1
Overrides the equals method provided by Object compares the IDs of the accounts
public boolean equals(Object o) { // make sure the object passed is actually an account if (o instanceof Account) { // cast to account - this is safe because we checked for it above Account acct = (Account) o; // compare account IDs if (_id == acct._id) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Account)) {\r\n return false;\r\n }\r\n Account other = (Account) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return...
[ "0.8276439", "0.8276439", "0.78839105", "0.7703195", "0.764582", "0.7590996", "0.75296974", "0.7275063", "0.7211376", "0.71683204", "0.70972013", "0.70878375", "0.6962848", "0.69552827", "0.69544196", "0.692115", "0.68936384", "0.68810713", "0.6866773", "0.6859824", "0.685000...
0.7409559
7
Withdraws money from account
public double withdrawFrom(double amount) { _balance -= amount; return _balance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "public void withdrawMoney(int amount) {\n wallet.withdraw(amount);\n }", "@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}", "public void withdraw(long amount) {\n\t\n\tif(canWithdraw == ...
[ "0.7677394", "0.7639708", "0.7592199", "0.75583255", "0.7510291", "0.7484166", "0.7479514", "0.74781024", "0.74514127", "0.74493104", "0.7449128", "0.7437578", "0.7425303", "0.7396155", "0.7390852", "0.7367455", "0.73338825", "0.73336524", "0.731724", "0.73044634", "0.7257115...
0.7397701
13
Deposits money into account
public double depositInto(double amount) { _balance += amount; return _balance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user bal...
[ "0.7568161", "0.72843695", "0.7246718", "0.7190314", "0.7119765", "0.7028102", "0.6921008", "0.6867287", "0.685498", "0.6854115", "0.68163395", "0.68092453", "0.6788036", "0.6781404", "0.6755267", "0.6753179", "0.6747139", "0.6712431", "0.66882646", "0.66791886", "0.6669067",...
0.6411787
48
TODO Autogenerated method stub
@Override public void classroom() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void lab() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void conferenceroom() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void placementcell() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void runMBA() { }
{ "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
// calculate current aspect ratio double dy = (double) this.getHeight() / this.imageHeight; int currentWidth, currentHeight; // logger.debug("PAINT dx: " + dx + " / dy: " + dy + " \t>SCALE by Y"); currentWidth = (int) (this.imageWidth dy); currentHeight = this.getHeight(); return new Dimension(currentWidth, currentHeight);
@Override public Dimension getPreferredSize() { return new Dimension((int) (this.getHeight() * 0.8), this.getHeight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "private void refreshDimensions() {\n //tamano del canvas\n ...
[ "0.67353255", "0.6547496", "0.65427077", "0.6340918", "0.62789005", "0.62173873", "0.6203152", "0.6146469", "0.6119526", "0.608037", "0.60775393", "0.6072259", "0.60336834", "0.5974981", "0.5948519", "0.5932999", "0.59150916", "0.5905568", "0.5899941", "0.589791", "0.5892463"...
0.6024681
13
constructor for reference manager.
public ReferenceManager(Path base) { super(base); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Reference() {\n super();\n }", "protected LibReference() {\n\t}", "public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }", "public IDReferences()\n {\n idReferences = new Hashtable();\n ...
[ "0.7816663", "0.7270267", "0.6897762", "0.6605437", "0.64543736", "0.6376648", "0.6350971", "0.6332257", "0.63290066", "0.6266715", "0.6244885", "0.6205335", "0.61611897", "0.6158343", "0.6146827", "0.61393464", "0.6133466", "0.6122953", "0.60898036", "0.6074715", "0.6061965"...
0.74818736
1
Determines if the reference manager contains a given file.
public boolean contains(ReferenceType branch, String name) { return this.contains(Reference.class, branch.getBaseDir() + name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasFile(final String file);", "boolean hasFileLoc();", "boolean hasFileLocation();", "public boolean hasFile(String fileName) {\n return this.registry.containsKey(fileName);\n }", "@Override\n public boolean containsFile(IFile file) {\n // TODO Auto-generated method stub\n r...
[ "0.7459832", "0.7264013", "0.7056056", "0.6904761", "0.67967033", "0.6759112", "0.6603321", "0.6569889", "0.65521", "0.65521", "0.6518248", "0.64840657", "0.64491826", "0.63814", "0.6370381", "0.6355707", "0.6325607", "0.629494", "0.62934077", "0.6282496", "0.6274531", "0.6...
0.57217604
83
Iterates over the references of a certain type within the manager.
public void forEach(ReferenceType type, BiConsumer<? super String, Reference> action) { this.forEach(Reference.class, (file, ref) -> { if (file.startsWith(type.getBaseDir())) { action.accept(file.replace(type.getBaseDir(), ""), ref); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Pure\n\tprotected TypeReferences getTypeReferences() {\n\t\treturn this.typeReferences;\n\t}", "private Set getReferencers(Collection references, EReference reference, EClass type) {\n \t\tSet set = new HashSet();\n \t\tif (!references.isEmpty()) {\n \t\t\tfor (Iterator iter = references.iterator(); iter.hasNex...
[ "0.6317341", "0.59146684", "0.5639101", "0.5606109", "0.5606089", "0.54999554", "0.5444383", "0.54057103", "0.5309623", "0.52740633", "0.5241461", "0.5209034", "0.5171609", "0.5162048", "0.5146167", "0.5127924", "0.5111239", "0.5104945", "0.5085707", "0.507151", "0.5070997", ...
0.57212836
2
Returns the content of a form field identified by an XPath expression
public String getFieldContent(String fieldExpression) throws XPathExpressionException { Node node = evaluateXPath(inputDoc, fieldExpression); return node.getTextContent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String get(String fieldName) {\n\t\tString xpQuery = getXPathQuery(fieldName);\n\t\treturn getFieldUsingXPath(xpQuery);\n\t}", "private String getFieldUsingXPath(String xpathQuery) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"getFieldUsingXPath\");\n\t\t}\n\t\tString...
[ "0.6530517", "0.63672054", "0.6193307", "0.61258", "0.5846615", "0.58268034", "0.57504684", "0.567717", "0.5501697", "0.5446219", "0.5364716", "0.5349483", "0.53131497", "0.53101933", "0.5300876", "0.52818966", "0.52447456", "0.5233684", "0.52290493", "0.5172018", "0.51598066...
0.6943544
0
Adds an error to a form field
public void addFieldError(String fieldExpression, String errorMessage) throws XPathExpressionException { Node node = evaluateXPath(validationDoc, fieldExpression); NamedNodeMap attributes = node.getAttributes(); Attr validAttr = validationDoc.createAttribute("v:valid"); validAttr.setValue("false"); attributes.setNamedItem(validAttr); Attr alertAttr = validationDoc.createAttribute("v:alert"); alertAttr.setValue(errorMessage); attributes.setNamedItem(alertAttr); valid = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addError(String message);", "public void setFieldError(String field, String error) {\n\t\tif (field.equals(\"name\"))\n\t\t\tnameCG.setClassName(\"control-group error\");\n\n\t\telse if (field.equals(\"description\"))\n\t\t\tdescriptionCG.setClassName(\"control-group error\");\n\n\t\telse if (field.e...
[ "0.6976759", "0.6922888", "0.66773593", "0.63606745", "0.63081837", "0.62268203", "0.6226642", "0.61147976", "0.6094847", "0.6089832", "0.59905595", "0.5903763", "0.5870808", "0.5840065", "0.5834981", "0.5809798", "0.5795049", "0.5774134", "0.5750926", "0.5737545", "0.5735256...
0.7013193
0
Adds a global error to the form
public void addGlobalError(String errorMessage) { Node globalErrorsNode = validationDoc.getDocumentElement() .getElementsByTagName("v:global-errors").item(0); Element errorNode = validationDoc.createElement("v:global-error"); NamedNodeMap attributes = errorNode.getAttributes(); Attr alertAttr = validationDoc.createAttribute("v:alert"); alertAttr.setValue(errorMessage); attributes.setNamedItem(alertAttr); globalErrorsNode.appendChild(errorNode); valid = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addError(String message);", "private void addGlobalExceptionToPage(Exception exception, BindingResult bindingResult) {\n ObjectError error = new ObjectError(\"globalError\", exception.getMessage());\n bindingResult.addError(error);\n }", "void setError();", "public ErrorGUI() {\n...
[ "0.7159598", "0.700277", "0.65986943", "0.6585175", "0.6462041", "0.6450366", "0.6414776", "0.6321235", "0.6262145", "0.6239897", "0.6202119", "0.6182345", "0.6111637", "0.6094604", "0.608633", "0.6060551", "0.60516065", "0.6048425", "0.6046963", "0.6046078", "0.6037578", "...
0.7196616
0
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("enter cache size in KB among (1, 2, 4, 8, 16, 32)"); int cacheSize = sc.nextInt(); System.out.println("enter way associative value among(1,2,4,8)"); int wayAssociative = sc.nextInt(); System.out.println("enter cache line size in bytes among(2,4,8,16,32,64)"); int cacheLineSize = sc.nextInt(); sc.close(); long count_hit = 0, count_miss = 0; long count_hit_2 = 0, count_miss_2 = 0, clockCycle_2 = 0; long count_hit_4 = 0, count_miss_4 = 0, clockCycle_4 = 0; long count_hit_8 = 0, count_miss_8 = 0, clockCycle_8 = 0; int numberOfCacheLines = (int) ((cacheSize * 1024) / cacheLineSize); ArrayList<String> cacheKeys = new ArrayList<String>(numberOfCacheLines); ArrayList<String> cacheValues = new ArrayList<String>(numberOfCacheLines); ArrayList<String> cacheKeys_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheKeys_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheKeys_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheKeys_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheKeys_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheKeys_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheKeys_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheKeys_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative); ArrayList<String> cacheValues_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative); long clockCycle = 0; StringBuilder y = new StringBuilder(""); // creating main memory array to store all addresses in a 2d // array..mapping one // letter into one width length only..1 to 1 mapping. // so 2 width is one byte..to get value do block offset*2 String[][] mainMemory = new String[1743][32]; for (int i = 0; i < 1743; i++) { for (int j = 0; j < 32; j++) { mainMemory[i][j] = ""; } } try { // read all input files String instructionAddresses = new String( Files.readAllBytes(Paths .get("/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_addr_trace_hex_project_1.txt"))); String dataSizes = new String( Files.readAllBytes(Paths .get("/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_data_size_project_1.txt"))); String memoryAddresses = new String( Files.readAllBytes(Paths .get("/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_mem_hex_16byte_wide.txt"))); // copy all memory addresses into the 2d mainMemory array // split into each line of address String[] memoryAddress = memoryAddresses.split("\\s+"); for (int i = 0; i < 1743; i++) { // split address into each letter String[] oneBit = memoryAddress[i].split(""); int z = -1; for (int q = oneBit.length - 1; q >= 0; q--) { z++; // store each letter into the array as hex mainMemory[i][q] = oneBit[z]; } } // splitting the instruction addresses into lines String[] instructionAddress = instructionAddresses.split("\\s+"); // splitting dataSizes to get length of each data String[] dataSize = dataSizes.split("\\s+"); for (int i = 0; i < instructionAddress.length; i++) { try { String binaryIs = ""; String binaryOffset = ""; String blockNumber = ""; if (Integer.parseInt(instructionAddress[i], 16) > 15) { binaryIs = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16)); binaryOffset = binaryIs.substring(binaryIs.length() - 4); blockNumber = binaryIs.substring(0, binaryIs.length() - 4); } else { blockNumber = "0"; binaryOffset = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16)); } // check if hit or miss for 1 way if (wayAssociative == 1) { if (cacheKeys.contains(blockNumber + "," + binaryOffset)) { // cache hit situation count_hit++; clockCycle++; } else { // cache miss count_miss++; clockCycle += 15; // replacement for direct mapping. int newBlockNumber_Value = Integer.parseInt(blockNumber, 2); int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2); int length = Integer.parseInt(dataSize[i]); y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]); int p = -1, beta = 0; for (int alpha = 1; alpha < length; alpha++) { if ((alpha + newOffset_StartingPosition) % 31 == 0) { newBlockNumber_Value++; newOffset_StartingPosition = 0; beta = length - alpha; if (p < beta) { p++; y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]); } } else { y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]); } } y = y.reverse(); // if y is more than one byte then put it in next cache line if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys.add(blockNumber + "," + binaryOffset); cacheValues.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys.add(blockNumber + "," + binaryOffset); cacheValues.add(y.toString()); } else { // System.out.println("cache is full..."); } } } y.delete(0, y.length()); } else if (wayAssociative > 1) { if (wayAssociative == 2) { if (cacheKeys_0.contains(blockNumber + "," + binaryOffset) || (cacheKeys_1.contains(blockNumber + "," + binaryOffset))) { // cache hit situation count_hit_2++; clockCycle_2++; } else { // cache miss count_miss_2++; clockCycle_2 += 15; // replacement int newBlockNumber_Value = Integer.parseInt(blockNumber, 2); int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2); int length = Integer.parseInt(dataSize[i]); y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]); int p = -1, beta = 0; for (int alpha = 1; alpha < length; alpha++) { if ((alpha + newOffset_StartingPosition) % 31 == 0) { newBlockNumber_Value++; newOffset_StartingPosition = 0; beta = length - alpha; if (p < beta) { p++; y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]); } } else { y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]); } } y = y.reverse(); if (i % wayAssociative == 0) { if (cacheKeys.size() <= (numberOfCacheLines)) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); if (cacheKeys.size() <= numberOfCacheLines) { cacheKeys_0.add(blockNumber + "," + binaryOffset); cacheValues_0.add(yy); } } } else { cacheKeys_0.add(blockNumber + "," + binaryOffset); cacheValues_0.add(y.toString()); } } else { // System.out.println("cache is full..."); } } else if (i % wayAssociative == 1) { if (cacheKeys.size() <= (numberOfCacheLines)) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_1.add(blockNumber + "," + binaryOffset); cacheValues_1.add(yy); } } { cacheKeys_1.add(blockNumber + "," + binaryOffset); cacheValues_1.add(y.toString()); } } else { // System.out.println("cache is full..."); } } } y.delete(0, y.length()); } // way =4 if (wayAssociative == 4) { if (cacheKeys_0.contains(blockNumber + "," + binaryOffset) || cacheKeys_1.contains(blockNumber + "," + binaryOffset) || cacheKeys_2.contains(blockNumber + "," + binaryOffset) || cacheKeys_3.contains(blockNumber + "," + binaryOffset)) { // cache hit situation count_hit_4++; clockCycle_4++; } else { // cache miss count_miss_4++; clockCycle_4 += 15; // replacement int newBlockNumber_Value = Integer.parseInt(blockNumber, 2); int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2); int length = Integer.parseInt(dataSize[i]); y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]); int p = -1, beta = 0; for (int alpha = 1; alpha < length; alpha++) { if ((alpha + newOffset_StartingPosition) % 31 == 0) { newBlockNumber_Value++; newOffset_StartingPosition = 0; beta = length - alpha; if (p < beta) { p++; y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]); } } else { y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]); } } y = y.reverse(); if (cacheKeys.size() <= (numberOfCacheLines)) { if (i % wayAssociative == 0) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_0.add(blockNumber + "," + binaryOffset); cacheValues_0.add(yy); } } else { cacheKeys_0.add(blockNumber + "," + binaryOffset); cacheValues_0.add(y.toString()); } } // mod 1 else if (i % wayAssociative == 1) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_1.add(blockNumber + "," + binaryOffset); cacheValues_1.add(yy); } } else { cacheKeys_1.add(blockNumber + "," + binaryOffset); cacheValues_1.add(y.toString()); } } // mod 2 else if (i % wayAssociative == 2) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_2.add(blockNumber + "," + binaryOffset); cacheValues_2.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_2.add(blockNumber + "," + binaryOffset); cacheValues_2.add(y.toString()); } else { // System.out.println("cache is full..."); } } } // mmod 3 else if (i % wayAssociative == 3) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_3.add(blockNumber + "," + binaryOffset); cacheValues_3.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_3.add(blockNumber + "," + binaryOffset); cacheValues_3.add(y.toString()); } } } } else { // System.out.println("cache is full..."); } } y.delete(0, y.length()); } else if (wayAssociative == 8) { if (cacheKeys_0.contains(blockNumber + "," + binaryOffset) || (cacheKeys_1.contains(blockNumber + "," + binaryOffset)) || (cacheKeys_3.contains(blockNumber + "," + binaryOffset)) || (cacheKeys_3.contains(blockNumber + "," + binaryOffset)) || cacheKeys_4.contains(blockNumber + "," + binaryOffset) || (cacheKeys_5.contains(blockNumber + "," + binaryOffset)) || (cacheKeys_7.contains(blockNumber + "," + binaryOffset)) || (cacheKeys_6.contains(blockNumber + "," + binaryOffset))) { // cache hit situation count_hit_8++; clockCycle_8++; } else { // cache miss count_miss_8++; clockCycle_8 += 15; // replacement int newBlockNumber_Value = Integer.parseInt(blockNumber, 2); int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2); int length = Integer.parseInt(dataSize[i]); y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]); int p = -1, beta = 0; for (int alpha = 1; alpha < length; alpha++) { if ((alpha + newOffset_StartingPosition) % 31 == 0) { newBlockNumber_Value++; newOffset_StartingPosition = 0; beta = length - alpha; if (p < beta) { p++; y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]); } } else { y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]); } } y = y.reverse(); if (cacheKeys.size() <= (numberOfCacheLines)) { if (i % wayAssociative == 0) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_0.add(blockNumber + "," + binaryOffset); cacheValues_0.add(yy); } } else { cacheKeys_0.add(blockNumber + "," + binaryOffset); cacheValues_0.add(y.toString()); } } // mod 1 else if (i % wayAssociative == 1) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_1.add(blockNumber + "," + binaryOffset); cacheValues_1.add(yy); } } else { cacheKeys_1.add(blockNumber + "," + binaryOffset); cacheValues_1.add(y.toString()); } } // mod 2 else if (i % wayAssociative == 2) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_2.add(blockNumber + "," + binaryOffset); cacheValues_2.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_2.add(blockNumber + "," + binaryOffset); cacheValues_2.add(y.toString()); } else { // System.out.println("cache is full..."); } } } // mmod 3 else if (i % wayAssociative == 3) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_3.add(blockNumber + "," + binaryOffset); cacheValues_3.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_3.add(blockNumber + "," + binaryOffset); cacheValues_3.add(y.toString()); } } } // 4 else if (i % wayAssociative == 4) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_4.add(blockNumber + "," + binaryOffset); cacheValues_4.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_4.add(blockNumber + "," + binaryOffset); cacheValues_4.add(y.toString()); } } } // 5 else if (i % wayAssociative == 5) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_5.add(blockNumber + "," + binaryOffset); cacheValues_5.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_5.add(blockNumber + "," + binaryOffset); cacheValues_5.add(y.toString()); } } } // 6 else if (i % wayAssociative == 6) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_6.add(blockNumber + "," + binaryOffset); cacheValues_6.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_6.add(blockNumber + "," + binaryOffset); cacheValues_6.add(y.toString()); } } } // 7 else if (i % wayAssociative == 7) { if (y.length() > 4) { for (int o = 0; o < y.length(); o = o + 4) { String yy = y.substring(o, o + 4); cacheKeys_7.add(blockNumber + "," + binaryOffset); cacheValues_7.add(yy); } } else { if (cacheKeys.size() <= (numberOfCacheLines)) { cacheKeys_7.add(blockNumber + "," + binaryOffset); cacheValues_7.add(y.toString()); } } } // } else { // System.out.println("cache is full..."); } } y.delete(0, y.length()); } } // 3 } catch (Exception e) { e.printStackTrace(); } } // to print outputs if (wayAssociative == 1) { long cache_access = count_hit + count_miss; System.out.println("Total number of cache accesses is " + cache_access); System.out.println("Total number of clock cycles is " + clockCycle); System.out.println("Total number of hits " + count_hit); double hit_ratio = ((double) count_hit) / (count_hit + count_miss) * 100; System.out.println("cache hit ratio is " + hit_ratio + "%"); double ipc = ((double) instructionAddress.length) / clockCycle; System.out.println("IPC is " + ipc); } else if (wayAssociative == 2) { long cache_access = count_hit_2 + count_miss_2; System.out.println("Total number of cache accesses is " + cache_access); System.out.println("Total number of clock cycles is " + clockCycle_2); System.out.println("Total number of hits " + count_hit_2); double hit_ratio = ((double) count_hit_2) / (count_hit_2 + count_miss_2) * 100; System.out.println("cache hit ratio is " + hit_ratio + "%"); double ipc = ((double) instructionAddress.length) / clockCycle_2; System.out.println("IPC is " + ipc); } else if (wayAssociative == 4) { long cache_access = count_hit_4 + count_miss_4; System.out.println("Total number of cache accesses is " + cache_access); System.out.println("Total number of clock cycles is " + clockCycle_4); System.out.println("Total number of hits " + count_hit_4); double hit_ratio = ((double) count_hit_4) / (count_hit_4 + count_miss_4) * 100; System.out.println("cache hit ratio is " + hit_ratio + "%"); double ipc = ((double) instructionAddress.length) / clockCycle_4; System.out.println("IPC is " + ipc); } else if (wayAssociative == 8) { long cache_access = count_hit_8 + count_miss_8; System.out.println("Total number of cache accesses is " + cache_access); System.out.println("Total number of clock cycles is " + clockCycle_8); System.out.println("Total number of hits " + count_hit_8); double hit_ratio = ((double) count_hit_8) / (count_hit_8 + count_miss_8) * 100; System.out.println("cache hit ratio is " + hit_ratio + "%"); double ipc = ((double) instructionAddress.length) / clockCycle_8; System.out.println("IPC is " + ipc); } } catch (Exception e) { e.printStackTrace(); } }
{ "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
creates a list of all possible tiles that we can move to
public ArrayList<Coordinate> possibleTiles(Coordinate start) { HashMap<Coordinate, MapTile> wallMap = World.getMap(); LinkedList<Coordinate> queue = new LinkedList<Coordinate>(); ArrayList<Coordinate> visited = new ArrayList<Coordinate>(); queue.add(start); while (!queue.isEmpty()) { Coordinate temp = queue.poll(); for (int i = 0; i < 4; i++) { Coordinate next = new Coordinate(temp.toString()); switch(i) { case 0: next.y--; break; case 1: next.x++; break; case 2: next.y++; break; case 3: next.x--; break; } if (!visited.contains(next) && !wallMap.get(next).isType(MapTile.Type.WALL)) { queue.add(next); visited.add(next); } } } return visited; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1...
[ "0.75853664", "0.72728044", "0.7134463", "0.68748045", "0.6848434", "0.68291104", "0.68217766", "0.6791472", "0.6735211", "0.667555", "0.6660588", "0.6647227", "0.66133446", "0.66022146", "0.6599578", "0.65736717", "0.6545182", "0.65394306", "0.6535913", "0.6529509", "0.65024...
0.726712
2
Updates internal map representation as new tiles are discovered
public void updateMap(HashMap<Coordinate, MapTile> currentView) { for (Coordinate key : currentView.keySet()) { if (!map.containsKey(key)) { MapTile value = currentView.get(key); map.put(key, value); if (value.getType() == MapTile.Type.TRAP) { TrapTile value2 = (TrapTile) value; // downcast to find type if (value2.getTrap().equals("parcel") && possibleTiles.contains(key)) { parcelsFound++; parcels.add(key); if (parcelsFound == numParcels() && exitFound == true) { phase = "search"; } } else if (value2.getTrap().equals("lava")) { lava.add(key); } else if (value2.getTrap().equals("health")) { health.add(key); } else if (value2.getTrap().equals("water")) { water.add(key); } } else if (value.getType() == MapTile.Type.FINISH) { exitFound = true; exit.add(key); if (parcelsFound == numParcels() && exitFound == true) { phase = "search"; } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateMapGrid() {\n char[][] map = controller.getPopulatedMap();\n\t if (mapGrid == null) {\n mapGrid = new MapGrid(map.length, map[0].length, ICON_SIZE);\n }\n mapGrid.insertCharMap(map);\n }", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\...
[ "0.6955922", "0.68676955", "0.68552285", "0.68389076", "0.68201864", "0.6747051", "0.64983433", "0.63660914", "0.6317468", "0.6307362", "0.6248287", "0.61885726", "0.61860037", "0.61785984", "0.6174015", "0.61604", "0.6148205", "0.6132521", "0.61158997", "0.608591", "0.606875...
0.60627395
22
removes one off resources
public void updateResources(Coordinate coord) { if (parcels.contains(coord)) { parcels.remove(coord); } else if (water.contains(coord)) { water.remove(coord); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeResources() {\n\t\tresources.clear();\n\t}", "void unsetRequiredResources();", "public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse())...
[ "0.80536765", "0.7898204", "0.759273", "0.7309106", "0.7039271", "0.6999463", "0.68135065", "0.68108773", "0.67559105", "0.6613087", "0.6574354", "0.6554091", "0.65440637", "0.6523029", "0.6476641", "0.6443379", "0.6437158", "0.64294666", "0.6356466", "0.6348698", "0.63190466...
0.0
-1
Runs around the map, by following walls, looking for exits and required number of parcels
public void explore() { if(getSpeed() < CAR_MAX_SPEED){ // Need speed to turn and progress toward the exit applyForwardAcceleration(); // Tough luck if there's a wall in the way } if (isFollowingWall) { // if already been to this tile, stop following the wall if (travelled.contains(new Coordinate(getPosition()))) { isFollowingWall = false; } else { if(!checkFollowingWall(getOrientation(), map)) { turnLeft(); } else { // If wall on left and wall straight ahead, turn right if(checkWallAhead(getOrientation(), map)) { if (!checkWallRight(getOrientation(), map)) { turnRight(); isFollowingWall = true; } else if (!checkWallLeft(getOrientation(), map)){ turnLeft(); } else { applyReverseAcceleration(); } } } } } else { // Start wall-following (with wall on left) as soon as we see a wall straight ahead if(checkWallAhead(getOrientation(), map)) { if (!checkWallRight(getOrientation(), map) && !checkWallLeft(getOrientation(), map)) { // implementing some randomness so doesn't get stuck in loop Random rand = new Random(); int n = rand.nextInt(2); if (n==0) { turnLeft(); } else { turnRight(); isFollowingWall = true; } } else if (!checkWallRight(getOrientation(), map)) { turnRight(); isFollowingWall = true; } else if (!checkWallLeft(getOrientation(), map)){ turnLeft(); } else { applyReverseAcceleration(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i...
[ "0.65022105", "0.61947644", "0.6092777", "0.59925866", "0.5931633", "0.5928386", "0.5906917", "0.5904459", "0.5903355", "0.58852917", "0.5881369", "0.58790386", "0.58655083", "0.58560926", "0.5838795", "0.5807973", "0.57915777", "0.5789976", "0.57460004", "0.5745691", "0.5684...
0.57990146
16
Check if you have a wall in front of you!
private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){ switch(orientation){ case EAST: return checkEast(currentView); case NORTH: return checkNorth(currentView); case SOUTH: return checkSouth(currentView); case WEST: return checkWest(currentView); default: return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\tif(Physics.hitPlaceHolder(this, game.getPlaceHolderList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isWall();", "private boolean atLeastOneNonWallLocat...
[ "0.7227153", "0.7049104", "0.69106144", "0.6900205", "0.6897207", "0.680275", "0.679865", "0.6726485", "0.6714431", "0.6707391", "0.66994727", "0.66743356", "0.66565865", "0.665234", "0.66366166", "0.6623934", "0.6622642", "0.65902823", "0.6578194", "0.65777344", "0.65601844"...
0.6294072
34
Check if you have a wall on your right
private boolean checkWallRight(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){ switch(orientation){ case EAST: return checkSouth(currentView); case NORTH: return checkEast(currentView); case SOUTH: return checkWest(currentView); case WEST: return checkNorth(currentView); default: return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isWall();", "private boolean nextIsWall()\n {\n return this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].isHasWall();\n }", "public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true...
[ "0.76378214", "0.7490356", "0.7462261", "0.7458966", "0.74344563", "0.7352427", "0.7314924", "0.72780955", "0.72414684", "0.72249067", "0.72187185", "0.71324503", "0.7104222", "0.7049853", "0.7019081", "0.70065296", "0.6998147", "0.69636744", "0.6907693", "0.68296725", "0.679...
0.67679507
23
Check if you have a wall on your left
private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){ switch(orientation){ case EAST: return checkNorth(currentView); case NORTH: return checkWest(currentView); case SOUTH: return checkEast(currentView); case WEST: return checkSouth(currentView); default: return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }", "public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}", ...
[ "0.7761954", "0.77221394", "0.7531147", "0.7459015", "0.7452816", "0.7349326", "0.73058033", "0.72729427", "0.7241997", "0.720392", "0.7183268", "0.71089816", "0.70854825", "0.7083071", "0.70622677", "0.7033246", "0.6938625", "0.6930488", "0.6920729", "0.69201934", "0.6908573...
0.73166746
6
Check if the wall is on your left hand side given your orientation
private boolean checkFollowingWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) { switch(orientation){ case EAST: return checkNorth(currentView); case NORTH: return checkWest(currentView); case SOUTH: return checkEast(currentView); case WEST: return checkSouth(currentView); default: return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n...
[ "0.79967856", "0.7887571", "0.76196456", "0.75067633", "0.7490989", "0.7001556", "0.69835484", "0.69478095", "0.68024886", "0.67996705", "0.67904407", "0.6760078", "0.6753351", "0.67026454", "0.66957706", "0.669203", "0.66906273", "0.6672622", "0.6626829", "0.66256034", "0.66...
0.6401726
41
/ Checks if a tile is a lava tile
public boolean isLava(MapTile tile) { if (tile.isType(MapTile.Type.TRAP)) { TrapTile tile2 = (TrapTile) tile; if (tile2.getTrap().equals("lava")) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testTiles(EIfcfillareastyletiles type) throws SdaiException;", "public boolean hasTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){\n return t...
[ "0.71516657", "0.6906847", "0.652675", "0.6526024", "0.641775", "0.6383222", "0.63409007", "0.6324246", "0.6315705", "0.6298399", "0.6268818", "0.6231797", "0.62259734", "0.62087846", "0.61895126", "0.6176442", "0.61615044", "0.61570024", "0.6110222", "0.6023917", "0.5993682"...
0.7541377
0
Method below just iterates through the list and check in the correct coordinates. i.e. Given your current position is 10,10 checkEast will check up to wallSensitivity amount of tiles to the right. checkWest will check up to wallSensitivity amount of tiles to the left. checkNorth will check up to wallSensitivity amount of tiles to the top. checkSouth will check up to wallSensitivity amount of tiles below.
public boolean checkEast(HashMap<Coordinate, MapTile> currentView){ // Check tiles to my right Coordinate currentPosition = new Coordinate(getPosition()); for(int i = 0; i <= wallSensitivity; i++){ MapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y)); if(tile.isType(MapTile.Type.WALL)){ return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static ArrayList<int[]> searcherTopLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\...
[ "0.67679304", "0.6480226", "0.6479381", "0.641122", "0.64107513", "0.6397993", "0.6378562", "0.6356656", "0.63156533", "0.62809676", "0.61005104", "0.6020028", "0.5922439", "0.5852548", "0.58473414", "0.58017504", "0.5785433", "0.5717131", "0.5701732", "0.5700232", "0.5698672...
0.61085963
10
Check tiles to my left
public boolean checkWest(HashMap<Coordinate,MapTile> currentView){ Coordinate currentPosition = new Coordinate(getPosition()); for(int i = 0; i <= wallSensitivity; i++){ MapTile tile = currentView.get(new Coordinate(currentPosition.x-i, currentPosition.y)); if(tile.isType(MapTile.Type.WALL)){ return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean canMoveLeft()\n {\n // runs through board row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = 1; column < grid[row].length; column++ ) {\n\n // looks at tile directly to the left of the current tile\n int compare = column-1;\n ...
[ "0.7333483", "0.6978368", "0.6929845", "0.69127554", "0.6839184", "0.6803477", "0.67504114", "0.6676041", "0.66317695", "0.66090035", "0.6582108", "0.65718466", "0.65587926", "0.6546327", "0.65321934", "0.64595634", "0.6448624", "0.64451975", "0.6401906", "0.63804126", "0.637...
0.0
-1
Check tiles to towards the top
public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){ Coordinate currentPosition = new Coordinate(getPosition()); for(int i = 0; i <= wallSensitivity; i++){ MapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i)); if(tile.isType(MapTile.Type.WALL)){ return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpe...
[ "0.661871", "0.6542988", "0.64154565", "0.60840994", "0.6061309", "0.60298", "0.60119087", "0.59092236", "0.5900632", "0.5870859", "0.5817988", "0.5809258", "0.58082235", "0.5792411", "0.57745385", "0.5772713", "0.57345104", "0.5733943", "0.5731036", "0.5728317", "0.5702268",...
0.55852115
34
Check tiles towards the bottom
public boolean checkSouth(HashMap<Coordinate,MapTile> currentView){ Coordinate currentPosition = new Coordinate(getPosition()); for(int i = 0; i <= wallSensitivity; i++){ MapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y-i)); if(tile.isType(MapTile.Type.WALL)){ return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpe...
[ "0.6592975", "0.6575199", "0.6549407", "0.6345004", "0.6247037", "0.6214236", "0.61049867", "0.6038011", "0.60150504", "0.59821683", "0.59590465", "0.59503675", "0.5921564", "0.5919305", "0.5894885", "0.5890772", "0.58769464", "0.58638775", "0.58560365", "0.58393145", "0.5827...
0.58340895
20
TODO Autogenerated method stub
@Override public void afterInit() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1