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
Metodo....: logComponente Descricao.: Grava uma linha no arquivo de LOG para log de componentes de negocio
public void logComponente(long idProcesso, int aTipo, String aComponente, String aMensagem, String aStatus) { StringBuffer mensagemFinal = new StringBuffer("<Servidor> ").append( getHostName()); mensagemFinal.append(" <ID> " ).append(idProcesso); mensagemFinal.append(" <Mensagem> " ).append(aMensagem); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logComponente (int aTipo, String aComponente, String aMensagem )\n\t{\n\t\tlogComponente(0,aTipo,aComponente,aMensagem,\" \");\n\t}", "String getLogContinued();", "String getLogHandled();", "public void componentStartInfo(INode node) {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append...
[ "0.66562235", "0.56832486", "0.5658161", "0.54110116", "0.52694917", "0.52594835", "0.5186603", "0.51820415", "0.5169697", "0.5169697", "0.5169697", "0.51575214", "0.5142037", "0.51323396", "0.5063728", "0.5045303", "0.5041811", "0.50417346", "0.5039992", "0.50293744", "0.500...
0.6174222
1
Metodo....: logComponente Descricao.: Grava uma linha de informacoes de componentes de negocio. OBS: Este metodo foi mantido para compatibilidade com versoes anteriores. deprecated Favor utilizar o metodo logComponente(idProcesso,tipo,nomeComponente,mensagem,status)
public void logComponente (int aTipo, String aComponente, String aMensagem ) { logComponente(0,aTipo,aComponente,aMensagem," "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logComponente(long idProcesso, int aTipo, String aComponente, String aMensagem, String aStatus)\n\t{\n\t\tStringBuffer mensagemFinal = new StringBuffer(\"<Servidor> \").append( getHostName()); \n mensagemFinal.append(\" <ID> \" ).append(idProcesso);\n\t\tmensagemFinal.append(\" <Mensagem> \" ).a...
[ "0.7959309", "0.63956106", "0.6310262", "0.60513324", "0.5637144", "0.5265936", "0.5137876", "0.5120149", "0.5062507", "0.5009757", "0.49726766", "0.49693862", "0.4893555", "0.48868263", "0.48713925", "0.48400736", "0.48212472", "0.48128885", "0.48017827", "0.47894976", "0.47...
0.7382337
1
Metodo....: registraLog Descricao.: Este metodo efetiva o registro do Log nos Appenders do Log4j
private void registraLog(int aTipo, String aMensagem) { ArquivoConfiguracaoGPP arqConf = ArquivoConfiguracaoGPP.getInstance(); if (aTipo == Definicoes.FATAL) logger.fatal(aMensagem); else if (aTipo == Definicoes.ERRO) logger.error(aMensagem); else if (aTipo == Definicoes.WARN) logger.warn(aMensagem)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registraLog(int aTipo, String aMensagem)\n\t{\n\t\tif (aTipo == Definicoes.FATAL)\n\t\t\tlogger.fatal(aMensagem);\n\t\telse if (aTipo == Definicoes.ERRO)\n\t\t\t\tlogger.error(aMensagem);\n\t\telse if (aTipo == Definicoes.WARN)\n\t\t\t\tlogger.warn(aMensagem);\n\t\telse if (aTipo == Definicoes.INFO)\n...
[ "0.6616909", "0.65041244", "0.6372452", "0.6372452", "0.6372452", "0.63671213", "0.6319371", "0.6160509", "0.6122056", "0.6091333", "0.60300654", "0.5976172", "0.59697586", "0.5853747", "0.58472866", "0.58133805", "0.58086246", "0.5798693", "0.57965016", "0.5793573", "0.57499...
0.67627364
0
a serverside persistent linked list interface.
public interface PersistentLinkedListModel { boolean isEmpty() throws PhysicalResourceException; int size() throws PhysicalResourceException; void add(byte[] item) throws PhysicalResourceException; void remove() throws PhysicalResourceException; void removeAll() throws PhysicalResourceException; byte[] take...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList )...
[ "0.60220605", "0.6003366", "0.5877006", "0.58464", "0.58282256", "0.57889736", "0.5776674", "0.5768559", "0.57487273", "0.5729102", "0.5723742", "0.5700809", "0.56961733", "0.56944996", "0.5676375", "0.5663846", "0.56376654", "0.5635204", "0.561708", "0.5616416", "0.56085646"...
0.68429536
0
get the segment data for the given locator.
byte[] getSegmentData(Locator locator) throws PhysicalResourceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getSegment(K node);", "private RecordedService getRecordedService(final RecordedServiceLocator locator)\n {\n // TODO(Todd): What kind of security check should be done here?\n\n if (log.isDebugEnabled())\n {\n log.debug(\"getRecordedService for \" + locator);\n ...
[ "0.54849744", "0.5204074", "0.51483893", "0.5120178", "0.51145875", "0.49306226", "0.49301243", "0.48790368", "0.48746943", "0.48664212", "0.4863594", "0.48634988", "0.4843385", "0.4836435", "0.48091453", "0.4792197", "0.4774053", "0.47703472", "0.47700855", "0.47569308", "0....
0.8149713
0
crateAndShowGUI method which calla initcomponrnt method
private void createAndShowGUI(){ initComponents(); openMazefile.addActionListener(this); solveMaze.addActionListener(this); clearSolution.addActionListener(this); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); pack(); setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initAndShowGUI() {\n }", "public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"createGUI didn't compl...
[ "0.8480098", "0.7806668", "0.77624536", "0.7741652", "0.7740828", "0.7693792", "0.7607682", "0.7607682", "0.76051444", "0.75639844", "0.7555557", "0.7551753", "0.7535653", "0.7535653", "0.75193185", "0.75087136", "0.75040853", "0.7502618", "0.7484135", "0.7474913", "0.7473196...
0.6930974
96
initcomponent method to initialize jframe components
private void initComponents(){ JPanel mainPanel=new JPanel(new BorderLayout()); mainPanel.setPreferredSize(new Dimension(600,600)); mainPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); mainPanel.setBackground(Color.LIGHT_GRAY); mainPanel.add(mazePanel, Borde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "public void initComponents();", "private void initcomponent() {\n\r\n\t}", "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "private void initMyComponents() {\n this.jPanel1.setLay...
[ "0.82662046", "0.82662046", "0.81144494", "0.8003483", "0.7816289", "0.77415437", "0.7723887", "0.7681508", "0.76777273", "0.7511491", "0.7511491", "0.750007", "0.7460865", "0.7358176", "0.7346595", "0.7330486", "0.72797245", "0.7276444", "0.7261864", "0.72598773", "0.7257779...
0.0
-1
actionPerformrd method called when button is clicked
public void actionPerformed(ActionEvent ae) { if(ae.getSource()==openMazefile){ JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory()); FileNameExtensionFilter filter = new FileNameExtensionFilter("TEXT FILES", "txt", "text"); j.setFileFi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "public void performAction() {\n\t\t// TODO Auto-generated method...
[ "0.73483115", "0.7288863", "0.7288863", "0.72728217", "0.7227184", "0.7223184", "0.7223184", "0.7204628", "0.71946466", "0.7178697", "0.7178255", "0.71649075", "0.7135138", "0.7114336", "0.71069396", "0.7087141", "0.7082831", "0.70582485", "0.704907", "0.7045917", "0.7045917"...
0.0
-1
Creates a new memory viewer synchronizer.
public CMemoryViewerSynchronizer(final JHexView hexView, final CMemoryProvider provider, final CDebugPerspectiveModel debugPerspectiveModel) { Preconditions.checkNotNull(hexView, "IE01406: Hex view argument can not be null"); Preconditions.checkNotNull(provider, "IE01407: Provider argument can not be nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GUIMemoryView(EventManager eventManager) {\r\n super(\"Memory View\");\r\n\r\n this.eventManager = eventManager;\r\n\r\n setup();\r\n\r\n // add events to listen to\r\n EventManager.EVENT[] events = {\r\n EventManager.EVENT.MEMORY_CHANGE,\r\n EventManager.EVENT.EMULATOR_CLEAR,\r\n ...
[ "0.5345097", "0.5275076", "0.51687783", "0.51404446", "0.5137624", "0.508099", "0.5080719", "0.50199", "0.49132177", "0.4888927", "0.48882785", "0.48744354", "0.48630792", "0.48421478", "0.48216435", "0.4809519", "0.48057607", "0.48048973", "0.4774303", "0.47706196", "0.47668...
0.58455855
0
Determines the lowest address that can be shown for a given memory map.
private IAddress getFirstAddress(final MemoryMap memoryMap) { for (final MemorySection memorySection : memoryMap) { return memorySection.getStart(); } return new CAddress(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int minMapQ() {\n return mMinMapQ;\n }", "static int findraslot(Memory mem, int addr) {\r\n\t\t// afbf0020 sw [sp +32] = ra\r\n\t\tfor (int n = 0; n < 8; n++) {\r\n\t\t\tint isn = mem.load_word(addr + (n * 4));\r\n\t\t\tif ((isn & 0xffff0000) == 0xafbf0000) {\r\n\t\t\t\tshort imm = (short) isn;...
[ "0.57551706", "0.5715829", "0.5705726", "0.5653993", "0.5530469", "0.55277216", "0.55198306", "0.551107", "0.55081886", "0.5491215", "0.54318696", "0.538154", "0.5365744", "0.53300536", "0.5300336", "0.5252973", "0.5248841", "0.52470475", "0.52361125", "0.5200018", "0.5193875...
0.62411064
0
Adjusts size, base offset, and current offset of the hex view depending on a given address and the memory sections known to the debugger.
private boolean resizeData(final IAddress address) { if (address == null) { return true; } final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger(); if (debugger != null) { final MemorySection section = ProcessHelpers.getSectionWith(debugger.getProcessManag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBaseAddress(int targetAddress, int baseAddress);", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public void setAddress(int address)\n {\n this.address = address;\n }", "void setAddress(long address) throw...
[ "0.54886657", "0.5111099", "0.5039299", "0.50077987", "0.50041264", "0.5002547", "0.4974935", "0.4921155", "0.4882381", "0.48686463", "0.48665902", "0.4863958", "0.4819551", "0.4758164", "0.47574627", "0.473516", "0.47286296", "0.47241968", "0.47157735", "0.4710795", "0.46959...
0.6021372
0
Makes sure that the synchronizer is listening on the active debugger.
private void synchronizeDebugger(final IDebugger oldDebugger, final IDebugger newDebugger) { if (oldDebugger != null) { oldDebugger.getProcessManager().removeListener(m_debuggerListener); final TargetProcessThread activeThread = oldDebugger.getProcessManager().getActiveThread(); if (activeThread...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }", "private void startDebugControlThread() {\n String dbgCtrlFile = System.getProperty(\"DEBUG_CONTROL\");\n dbgCtrlThread = new DebugControlThread(this, dbgCtrlFile, 1000);\n executorService.submit(dbgCtrlThread);\n }", "pu...
[ "0.6031989", "0.57323784", "0.5707055", "0.56907225", "0.55781037", "0.55557895", "0.55156374", "0.54440093", "0.5429324", "0.54229176", "0.53653926", "0.5349516", "0.5344997", "0.53349334", "0.53215927", "0.53104436", "0.53050333", "0.52786183", "0.5269023", "0.52325344", "0...
0.0
-1
Keeps listeners synchronized with current threads.
private void synchronizeThreads(final TargetProcessThread oldThread, final TargetProcessThread newThread) { if (oldThread != null) { oldThread.removeListener(m_threadListener); } if (newThread != null) { newThread.addListener(m_threadListener); } updateGui(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startThreads() {\n Listener listener = new Listener();\n Thread listenerThread = new Thread(listener);\n\n listenerThread.start();\n }", "public void notifyListeners() {\n Handler handler = new Handler(Looper.getMainLooper()); // TODO reuse\n ...
[ "0.591322", "0.590361", "0.584275", "0.5773296", "0.5740795", "0.57107645", "0.5581765", "0.5563621", "0.5529067", "0.5527334", "0.5525213", "0.5517249", "0.54943943", "0.5486417", "0.54689574", "0.5408304", "0.535344", "0.5347301", "0.533574", "0.53259283", "0.53258675", "...
0.0
-1
Updates the GUI depending on the state of the active debugger.
private void updateGui() { final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger(); final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread(); final boolean connected = debugger != null && debugger.isConnected(); final boolean su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateGUIStatus() {\r\n\r\n }", "private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();...
[ "0.70180744", "0.6903343", "0.68910134", "0.6648204", "0.6518828", "0.62837934", "0.61666065", "0.61576515", "0.61266744", "0.6124783", "0.6099545", "0.6085751", "0.60603", "0.60155296", "0.5969654", "0.5948715", "0.59392256", "0.591637", "0.59031767", "0.58927774", "0.588031...
0.7363359
0
Adds a listener that is notified about events in the memory synchronizer.
public void addListener(final IMemoryViewerSynchronizerListener listener) { m_listeners.addListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void addListener(IIpcEventListener listener) {\n\t\tlisteners.add(listener);\n\t}", "@Override\n public void attach(IObserver observer) {\n listeners.add(observer);\n }", "public void addListener(EventListener listener);", "public void addListener(\n IListener listener\n ...
[ "0.6604124", "0.6584455", "0.6480991", "0.6339974", "0.6316543", "0.62772775", "0.6238053", "0.61371815", "0.61209863", "0.61200666", "0.61038893", "0.60706866", "0.60624284", "0.6051027", "0.6047217", "0.6032923", "0.60299367", "0.60216874", "0.602114", "0.60146934", "0.6012...
0.77282727
0
Removes a listener from the memory viewer synchronizer.
public void removeListener(final IMemoryViewerSynchronizerListener listener) { m_listeners.removeListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeListener() {\n this.mListener = null;\n }", "public void removeListener(T listener);", "@Override\n public void removeListener(DisplayEventListener listener) {\n listenerList.remove(DisplayEventListener.class, listener);\n }", "public void removeListene...
[ "0.8016262", "0.7695855", "0.7588861", "0.755065", "0.7540229", "0.7442447", "0.73628044", "0.73241025", "0.7322344", "0.7318868", "0.7318373", "0.7272956", "0.7245561", "0.72044396", "0.71732527", "0.717142", "0.71697736", "0.7161627", "0.7151682", "0.7145423", "0.7133809", ...
0.8691159
0
Internal to package code. External code should ignore.
PlfsDirNativeGeneric.PlfsDir getNative() { assert this.dir != null; return this.dir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private SourcecodePackage() {}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "private NaturePackage() {}", "public final void mo51373a() {\n }", "private VarietyPackage() {}", "private SolutionsPackage() {}", "protected MetadataUGWD() {/* in...
[ "0.64090997", "0.63174766", "0.61641955", "0.60549337", "0.5994965", "0.59840465", "0.5972244", "0.59692013", "0.5921819", "0.5915373", "0.5915373", "0.591035", "0.5871021", "0.5868906", "0.58305997", "0.58210903", "0.58144474", "0.5809713", "0.57985604", "0.5790906", "0.5778...
0.0
-1
TODO: place custom component creation code here
private void createUIComponents() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Component createComponent();", "Component createComponent();", "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "Component getComponent() {\n/* 224 */ return this.component;\n/* */ }", "@Override\r\n public void initComponent() {\n...
[ "0.748043", "0.748043", "0.710925", "0.710925", "0.70801723", "0.70445067", "0.69780385", "0.6929074", "0.69076335", "0.6886755", "0.67288405", "0.65718913", "0.65718913", "0.65703416", "0.65284145", "0.65241957", "0.6444727", "0.643084", "0.643084", "0.643084", "0.643084", ...
0.69689584
24
Get the data item for this position
@Override public View getView(int position, View convertView, ViewGroup parent) { String dataModel = getItem(position); // Check if an existing view is being reused, otherwise inflate the view ViewHolder viewHolder; // view lookup cache stored in tag final View result; if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}", "public E getData(int pos) {\n\t\tif (pos >= 0 && pos < dataSize()) {\n\t\t\treturn data.get(pos);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn mDatas.get(position);\n\t\t}",...
[ "0.7668654", "0.731151", "0.72089416", "0.71677965", "0.7130208", "0.7076344", "0.70645505", "0.70532256", "0.7042189", "0.7042189", "0.7042189", "0.70360523", "0.7032629", "0.6959", "0.6956786", "0.6956786", "0.69467556", "0.69467556", "0.69104123", "0.6871041", "0.6827699",...
0.0
-1
/ Here startAction needs to be overrided to allow for the uuid argument to be passed from one instance to another and to remove the alreadyPending limitation. Here we need to be able to call multiple instances of this at the same time
public void startAction(String s_) { this.startAction(incomingConnection, incomingMsg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void action(UUID uuid);", "private void execStartAction(String action){\n\n if (action.length() == 0) { return; }\n\n if (startTask != null ){\n startTask.interrupt();\n startTask = null;\n }\n\n RunningTask rt = new RunningTask(this,action.split(\" \")...
[ "0.58047456", "0.57830673", "0.56776243", "0.5401034", "0.54006016", "0.5364999", "0.5332097", "0.52911633", "0.52471596", "0.52413297", "0.5232007", "0.5230774", "0.52069545", "0.51999265", "0.51931214", "0.51714194", "0.51348937", "0.5123264", "0.509739", "0.5095373", "0.50...
0.47072592
83
/ We also have to override the responseReceived package, because this action has to finish only if the correct uuid has been received
public void responseReceived(Connection conn, Object msg) { this.endConnection = conn; this.endMsg = msg; if (((UpdateForcedPlayerPositionOk) endMsg).uuid.equals(uuid)) { detachFromParent(); server().setUpdatePos(uuid, true); System.out.println("Response received for " + this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void receiveResponse(String invocationId, HttpResponse response);", "public abstract void onReceiveResponse(ExchangeContext context);", "void responseReceived(byte[] response);", "public abstract void action(UUID uuid);", "@Override\n public void onResponse(String response, int id) {\n ...
[ "0.66537", "0.65351427", "0.6408824", "0.6316407", "0.6298074", "0.6274689", "0.6228698", "0.6171877", "0.61152333", "0.6104544", "0.60509145", "0.60431427", "0.6027321", "0.5975671", "0.59630877", "0.5956907", "0.59375155", "0.59347135", "0.59129417", "0.5902392", "0.5855573...
0.56290674
46
Refund is created using the payment id and amount details.
@Test public void create() throws RazorpayException{ JSONObject request = new JSONObject("{" + "\"amount\":\"100\"," + "\"speed\":\"normal\"," + "\"notes\":{\"notes_key_1\":\"BeammeupScotty.\"," + "\"notes_key_2\":\"Engage\"}," + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FeeRefund create(Map<String, Object> params) throws StripeException {\n return create(params, (RequestOptions) null);\n }", "public FeeRefund create(Map<String, Object> params, RequestOptions options)\n throws StripeException {\n return ApiResource.request(ApiResource.RequestMethod.POST, Strin...
[ "0.67485976", "0.64840716", "0.64594907", "0.6238347", "0.6125729", "0.6059347", "0.60248953", "0.58475405", "0.57802075", "0.5732882", "0.569515", "0.567121", "0.5665027", "0.5662124", "0.56130135", "0.5590688", "0.55866563", "0.554725", "0.55263215", "0.5496998", "0.5483516...
0.52684253
30
Retrieve all refund details using refund id.
@Test public void fetch() throws RazorpayException{ String mockedResponseJson = "{\n" + " \"id\": "+REFUND_ID+",\n" + " \"entity\": \"refund\",\n" + " \"amount\": 300100,\n" + " \"currency\": \"INR\",\n" + " \"payment_id\":...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRefundId() {\n return refundId;\n }", "public FeeRefund retrieve(String id) throws StripeException {\n return retrieve(id, (RequestOptions) null);\n }", "public int getRefundId() {\n return refundId;\n }", "@Override\n\tpublic List<WxOrderDetail> queryOrderRefundGiftL...
[ "0.73002964", "0.7103542", "0.70836043", "0.6904482", "0.68177176", "0.66581976", "0.6638831", "0.6594498", "0.6549849", "0.65124285", "0.6314341", "0.61661845", "0.6164372", "0.61581177", "0.61492354", "0.6124882", "0.6109658", "0.60858566", "0.6044676", "0.60203046", "0.601...
0.49915096
52
Details of all the refund can be retrieved.
@Test public void fetchAll() throws RazorpayException{ String mockedResponseJson = "{\n" + " \"entity\": \"collection\",\n" + " \"count\": 1,\n" + " \"items\": [\n" + " {\n" + " \"id\": \"rfnd_FFX6AnnIN3puqW\",\n" + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Map<String, Object> listRefund(int refundNo) throws Exception {\n\t\treturn null;\r\n\t}", "public Integer getRefund() {\n return refund;\n }", "public String getRefundId() {\n return refundId;\n }", "@Override\n\tpublic List<PageData> getRefund(PageData pd) throws E...
[ "0.7008352", "0.6719393", "0.653554", "0.6491386", "0.64671963", "0.63691884", "0.63558275", "0.63360703", "0.6263256", "0.62335545", "0.6199441", "0.61914086", "0.61519116", "0.6146157", "0.6095398", "0.5961172", "0.5868471", "0.5854801", "0.5854343", "0.5846184", "0.5765340...
0.55143
33
Details of mutiple refunds for a payment can be retrieved.
@Test public void fetchMultipleRefund() throws RazorpayException{ String mockedResponseJson = "{\n" + " \"entity\": \"collection\",\n" + " \"count\": 1,\n" + " \"items\": [\n" + " {\n" + " \"id\": \"rfnd_FP8DDKxqJif6c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.dogecoin.protocols.payments.Protos.Output> \n getRefundToList();", "@Override\n\tpublic List<PageData> getRefund(PageData pd) throws Exception {\n\t\treturn (List<PageData>) dao.findForList(\"SummaryStatMapper.getRefund\",\n\t\t\t\tpd);\n\n\t}", "@Override\r\n\tpublic Map<String, Obje...
[ "0.62290627", "0.61912614", "0.6019187", "0.58885556", "0.5796889", "0.5685429", "0.5683554", "0.56625694", "0.5610062", "0.5504482", "0.5476099", "0.54718316", "0.54443973", "0.54095286", "0.5390352", "0.5355345", "0.52877307", "0.52835613", "0.52487236", "0.5225021", "0.521...
0.5915062
3
Update an refund details using refund id with object of that properties
@Test public void edit() throws RazorpayException{ JSONObject request = new JSONObject("" + "{\"notes\":" + "{\"notes_key_1\":\"BeammeupScotty.\"," + "\"notes_key_2\":\"Engage\"}}"); String mockedResponseJson = "{\n" + " \"id\": "+REF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateRefund(Refund refund) throws Exception {\n\t\t\r\n\t}", "int updateByPrimaryKey(TRefundOrder record);", "public void setRefundId(int value) {\n this.refundId = value;\n }", "public void setRefund(Integer refund) {\n this.refund = refund;\n }", "int updat...
[ "0.7642522", "0.69422877", "0.6926489", "0.68726116", "0.67061836", "0.6476267", "0.64711696", "0.63407767", "0.61163884", "0.61022335", "0.59540015", "0.5941326", "0.5904181", "0.58553386", "0.57059467", "0.57040334", "0.56989926", "0.56545115", "0.56329864", "0.5630809", "0...
0.56677485
17
TODO Autogenerated method stub
public static void main(String[] args) { Node a = new Node(10); Node b = new Node(-5); Node c = new Node(-10); Node d = new Node(5); Node e = new Node(25); Node f = new Node(36); a.left = b; b.left = c; b.right = d; a.right = e; e.right = f; boolean found1 = search(a,22); boolean f...
{ "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
private static boolean search(Node root, int key) { if(root == null) { return false; } else { if(key == root.data) { return true; } else if(key < root.data ) { return search(root.left,key); } else if(key > root.data) { return search(root.right,key); } else { r...
{ "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
Gap heuristic Numbers of pancakes which are not of adjacent size to the pancake below
private static int heuristic(int[] unsortedPancakes) { int h = 0; for (int i = 0; i < unsortedPancakes.length - 1; i++) { if (Math.abs(unsortedPancakes[i] - unsortedPancakes[i + 1]) > 1) { h++; } } return h; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }", "private static int arrayDpHopper(int[] array) {\n\t\tint[] jumps = new int[array.length];\n\t\...
[ "0.63066506", "0.6005303", "0.595927", "0.59014904", "0.58589596", "0.5655578", "0.5653885", "0.56485844", "0.56290585", "0.5595989", "0.5577895", "0.551914", "0.55137396", "0.5505139", "0.5498751", "0.5488567", "0.54797465", "0.5475145", "0.54596066", "0.54436713", "0.544123...
0.6968551
0
/ Create a class Game which allows a user to play "Guess The Number" game once. Game should have following methods: 1. Constructor to generate the random number 2. takeUSerInput() to take a user input of number 3. isCorrectNumber() to detect whether the number entered by the user is true 4. getters and setters for numb...
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Welcome to the very generic game of...Guess the Number!\");\r\n\t\t\r\n\t\tScanner difficultyChoice = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Select parameters below. 1 = 1-15, 2 = 1-25, and 3 = 1-50\");\r\n\t\t\r\n\t\tS...
[ "0.6983741", "0.6813709", "0.67895275", "0.6729638", "0.66918635", "0.6605714", "0.65999407", "0.6519689", "0.6508522", "0.65045017", "0.6499328", "0.64987063", "0.6490076", "0.6480177", "0.6480058", "0.64685124", "0.6462557", "0.64441234", "0.642927", "0.63987243", "0.637546...
0.0
-1
If we know the parent of every node x, we know all nodes that are distance 1 from x. We can then perform a breadth first search from the target node to find the answer. We first do a depth first search where we annotate every node with information about it's parent. After, we do a breadth first search to find all nodes...
public List<Integer> distanceK(TreeNode root, TreeNode target, int K) { List<Integer> res = new ArrayList(); if (root == null || target == null || K < 0) return res; map = new HashMap(); buildChildParentMap(root, null); Queue<TreeNode> q = new LinkedList(); q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int dfs(TreeNode node, TreeNode target, int K, List<Integer> res) {\r\n if (node == null) return -1;\r\n\r\n if (node.val == target.val) {\r\n // add nodes from current subtree\r\n addNodes(node, K, res);\r\n return 0;\r\n }\r\n\r\n int left = df...
[ "0.6578503", "0.5975008", "0.5951113", "0.58189064", "0.5761184", "0.57286555", "0.5710582", "0.5661377", "0.5653593", "0.56292826", "0.56186", "0.56095827", "0.56026655", "0.55927426", "0.5582312", "0.55645597", "0.5533985", "0.55206543", "0.55204403", "0.55188006", "0.55183...
0.68864655
0
Create an array to store objects of class Building
public static void main(String[] args) { Building building[] = new Building[5]; //Populate the array building[0] = new Building("MSB",3,4,"white"); building[1] = new Building("STM",5,4,"white"); building[2] = new Building("SBS",6,4,"blue"); building[3] = new Building...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BuildingList() {\n Building temp = new Building(1);\n temp.createSubAreas(6);\n temp.setSystemPass(\"0000\");\n URL url = this.getClass().getClassLoader()\n .getResource(\"singleHouse.jpg\");\n temp.setImage(url);\n\n buildings.add(temp);\n tem...
[ "0.6170417", "0.5944964", "0.5913196", "0.5889156", "0.5882357", "0.58768326", "0.58384746", "0.57742447", "0.56602013", "0.5640148", "0.5633379", "0.5571676", "0.55716586", "0.55671173", "0.55637777", "0.5558168", "0.55493265", "0.55423915", "0.551214", "0.5487149", "0.54838...
0.0
-1
endregion region Private Methods
private Set<String> getContextRelevantLabels(CompositeControllerContext context) { if (context.getVertexControllerContext().isPresent()) { return getVertexContextRelevantLabels(context); } return getElementContextRelevantLabels(context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void co...
[ "0.65270585", "0.6388565", "0.62739754", "0.6255089", "0.6251729", "0.6216305", "0.6199533", "0.61808753", "0.6116142", "0.6116142", "0.6053167", "0.6046995", "0.60004693", "0.59820765", "0.5960422", "0.5960422", "0.59574", "0.5925643", "0.59235185", "0.5919939", "0.59197676"...
0.0
-1
currently assuming homogeneous bulk
private Set<String> getVertexContextRelevantLabels(VertexControllerContext context) { return Stream.ofAll(context.getBulkVertices()) .take(1) .map(Element::label) .toJavaSet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<BulkLoadElementTO> populateBulkLoadElementTO( int numElements ) {\n List<BulkLoadElementTO> lTOList = new ArrayList<BulkLoadElementTO>();\n\n for ( int i = 0; i < numElements; i++ ) {\n lTOList.add( new BulkLoadElementTO( i, WAREHOUSE_STOCK_LEVEL, QUEUED, \"\", C0, C1, C2 ) );\n ...
[ "0.5621326", "0.5610368", "0.51877433", "0.51570743", "0.51517266", "0.51514596", "0.5001242", "0.4959352", "0.49474055", "0.4913765", "0.4903194", "0.4884098", "0.48784786", "0.48603734", "0.48563582", "0.48344785", "0.48270828", "0.48105076", "0.47895968", "0.4783529", "0.4...
0.0
-1
/ Construtor do Cliente
public ResultBusca(int pontFolha, int pos, boolean encontrou) { this.pontFolha = pontFolha; this.pos = pos; this.encontrou = encontrou; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cliente(){}", "public Interfaz_RegistroClientes() {\n initComponents();\n limpiar();\n }", "public Cliente() {\n\t\tsuper();\n\t}", "public TelaCliente() {\n initComponents();\n conexao=ModuloConexao.conector();\n }", "public GerenciarCliente() {\n initComponents();...
[ "0.7723482", "0.76770616", "0.76337236", "0.7605895", "0.74944013", "0.7439284", "0.7375117", "0.73412234", "0.7325702", "0.7301214", "0.72385097", "0.72320056", "0.7160857", "0.71540153", "0.71510077", "0.7135075", "0.71208596", "0.71208596", "0.7110555", "0.7041568", "0.704...
0.0
-1
constructor; public so we can instantiate instances; name matches the class
public Fraction(){ numerator = 0; denominator = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "Reproducible newInstance();", "public MyClass1(String name) {\n\t\tsuper();\n\t\tthis.name = name;\n\t}", "Instance createInstance();", "public Name() {\n\n }", "public Instance() {\n }", "private SomePojoClass(String name) {\n this.name = name;\n }", "priva...
[ "0.7536449", "0.7176174", "0.67975605", "0.6795441", "0.67638075", "0.671935", "0.66798", "0.66592044", "0.66535634", "0.664889", "0.6610141", "0.6544287", "0.6464062", "0.6451994", "0.6441928", "0.642795", "0.641051", "0.6396511", "0.63874924", "0.63811135", "0.6376553", "...
0.0
-1
second constructor with parameters
public Fraction(int num, int den){ numerator = num; if (den != 0){ denominator = den; } else{ denominator = 1; } reduce(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void __sep__Constructors__() {}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public Constructor(){\n\t\t\n\t}", "Reproducible newInstance();", "protected abstract void construct();", "Constructor() {\r\n\t\t \r\n\t }", "public Video( int arg1, ...
[ "0.67057794", "0.6670783", "0.6511239", "0.6504086", "0.64539593", "0.6435065", "0.64331794", "0.64084715", "0.6335842", "0.6326897", "0.6320715", "0.6279636", "0.624311", "0.6232865", "0.61944497", "0.6189587", "0.6181447", "0.6164037", "0.6155848", "0.61310184", "0.6093873"...
0.0
-1
a method like __str__
public String toString(){ return numerator + "/" + denominator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "Str...
[ "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.808237", "0.80823...
0.0
-1
new location data has been received and can be accessed
public void onPositionChanged() { latPeriodic = location.getLatitude(); lonperiodic = location.getLongitude(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);", "@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n ...
[ "0.71324795", "0.7090135", "0.7090135", "0.7090129", "0.6920941", "0.690132", "0.689085", "0.68868077", "0.6839888", "0.6837929", "0.67416996", "0.67335063", "0.670364", "0.6653464", "0.66399324", "0.66298306", "0.6628944", "0.66187453", "0.661309", "0.6606783", "0.65901554",...
0.0
-1
Get extra data included in the Intent
@Override public void onReceive(Context context, Intent intent) { String message = intent.getStringExtra("message"); Log.d("receiver", "Got message: " + message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getExtra();", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "public String[] getEx...
[ "0.79771703", "0.7306866", "0.72960824", "0.7218317", "0.7154258", "0.7118799", "0.6927503", "0.68553144", "0.6653539", "0.6604859", "0.6603409", "0.6529914", "0.64611626", "0.6429498", "0.64109373", "0.64089173", "0.6393858", "0.63900703", "0.6353799", "0.63495857", "0.63381...
0.0
-1
Unregister since the activity is about to be closed.
@Override protected void onDestroy() { LocalBroadcastManager.getInstance(this).unregisterReceiver(mMessageReceiver); super.onDestroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (wt != null && !wt.isCancelled()) {\r\n\t\t\twt.cancel(true);\r\n\t\t}\r\n\t\t\r\n\t\tactivity.unregisterReceiver(receiver);...
[ "0.7217402", "0.7125425", "0.70916736", "0.7064202", "0.6860367", "0.68240356", "0.6783008", "0.6780462", "0.67653275", "0.668459", "0.66663325", "0.6627609", "0.66210103", "0.66128397", "0.6587351", "0.6507484", "0.6500504", "0.64992726", "0.6493547", "0.6490803", "0.6489979...
0.65046155
16
To check whether the side menu is open or not
private boolean isDrawerOpen() { return mDrawerLayout != null && mDrawerLayout.isDrawerOpen(Gravity.LEFT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOnMenu ();", "boolean isMenuShowing() {\n return game.r != null;\n }", "private void checkMenuItemStatus() {\n\t\tif (VozCache.instance().getCookies() == null) { // not logged in yet\n\t\t\tlogoutMenu.setVisible(false);\t\t\t\n\t\t\tloginMenu.setVisible(true);\n\t\t\tloginWithPresetM...
[ "0.7686657", "0.70293343", "0.6810236", "0.67819303", "0.67661804", "0.6684287", "0.6651842", "0.6614019", "0.65893847", "0.6562337", "0.64763105", "0.64114213", "0.64035285", "0.63848877", "0.6382535", "0.63735354", "0.6348183", "0.632941", "0.63123196", "0.629843", "0.62984...
0.66689205
6
new location data has been received and can be accessed
public void onPositionChanged() { currentLat = location.getLatitude(); currentLng = location.getLongitude(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);", "@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n ...
[ "0.71324795", "0.7090135", "0.7090135", "0.7090129", "0.6920941", "0.690132", "0.689085", "0.68868077", "0.6839888", "0.6837929", "0.67416996", "0.67335063", "0.670364", "0.6653464", "0.66399324", "0.66298306", "0.6628944", "0.66187453", "0.661309", "0.6606783", "0.65901554",...
0.6114195
99
new location data has been received and can be accessed
public void onPositionChanged() { currentLat = location.getLatitude(); currentLng = location.getLongitude(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);", "@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n ...
[ "0.713382", "0.7093146", "0.70930594", "0.70930594", "0.6922424", "0.6901475", "0.68911076", "0.6887811", "0.68403774", "0.68376344", "0.6743193", "0.67335135", "0.67045635", "0.6656822", "0.6642936", "0.6632277", "0.66312045", "0.66230476", "0.66158974", "0.66088617", "0.659...
0.6115328
98
Load the proper sounds from the audiomanager
public Gun(AppStateManager stateManager) { super(stateManager); AudioManager am = stateManager.getState(GameManager.class).getUtilityManager().getAudioManager(); gunShot = am.getSound("Gunshot"); reload = am.getSound("Reloading"); gunControl = new GunControl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void loadSounds() {\n\t\ttry {\n\t\t\tSoundPlayer.load(\"bounce.wav\");\n\t\t\tSoundPlayer.load(\"laser1.wav\");\n\t\t\tSoundPlayer.load(\"hit1.wav\");\n\t\t\tSoundPlayer.load(\"speedup.wav\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void loadAu...
[ "0.7982309", "0.76572955", "0.74626523", "0.7420866", "0.73922163", "0.7200148", "0.7199041", "0.7053843", "0.70274734", "0.6825017", "0.67969525", "0.67750543", "0.6771904", "0.6741896", "0.6631146", "0.66281575", "0.6590812", "0.6566668", "0.65542144", "0.6545849", "0.65004...
0.0
-1
Initiates the Smoke Particles
public void initModel() { gunControl.initSmoke(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setup() {\n\t\ttestUpdateParticle();\n\t\ttestRemoveOldParticles();\n\t\t\n\t\tif (testUpdateParticle() == true || testRemoveOldParticles() == true) {\n\t\t\tSystem.out.println(\"FAILED\");\n\t\t}\n\t\t\n\t\t// Build a new random field.\n\t\trandGen = new Random();\n\n\t\tpositionX = 400; // mid...
[ "0.6801799", "0.6199531", "0.6153909", "0.6148029", "0.608671", "0.60800683", "0.60112906", "0.5906025", "0.58836323", "0.5881474", "0.58694285", "0.5846197", "0.5841729", "0.58132696", "0.57776994", "0.57731855", "0.57634693", "0.5694092", "0.563845", "0.5626715", "0.5609441...
0.6085912
5
Starts the reloading of the weapon and plays the sound
public void startReloading() { reload.setTimeOffset(1); reload.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reloadWeapon() {\r\n Timer timer = new Timer();\r\n Colt.playReloadSound();\r\n timer.schedule(new FinishReload(), 2000);\r\n }", "public void startShower(){\n Log.d(LOGTAG,\"Shower is on.\");\n playSound();\n\n\n }", "public static void playerRun()\n {\n ...
[ "0.7843109", "0.70015854", "0.68341565", "0.6815458", "0.6773917", "0.6750238", "0.6705467", "0.6687442", "0.6647111", "0.66166043", "0.6616393", "0.661072", "0.6580112", "0.64729476", "0.64620125", "0.64528114", "0.6448786", "0.64340717", "0.64259684", "0.6421794", "0.641523...
0.673655
6
Returns the Gun Control Haha Gun Control
public GunControl getGunControl() { return gunControl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CSugangsincung getsugangsincung() {\n\t\tCSugangsincung sugangsincung = new CSugangsincung();\r\n\t\tsugangsincung.setMoklok(\"123\");\r\n//\t\tgangjwa.setGyosuID(gyosuID);\r\n\t\treturn sugangsincung;\r\n\t}", "public final int getG() {\n\t\treturn green;\n\t}", "int getG();", "public int getG() {\r\...
[ "0.6191904", "0.60288477", "0.6005204", "0.5989148", "0.59399974", "0.59396815", "0.59278834", "0.5909971", "0.5909971", "0.59039843", "0.5840216", "0.57775885", "0.577634", "0.5770829", "0.57467276", "0.57463914", "0.571744", "0.5690696", "0.56876475", "0.56870264", "0.56769...
0.7097452
0
Gets the Entity out of a Node. For Shooting an Entity
private Entity findEntity(Node node) { if (node instanceof Entity) { return (Entity) node; } else if (node != ((SimpleApplication) stateManager.getApplication()).getRootNode()){ return findEntity(node.getParent()); } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Entity> retrieve(Entity entity){\n int index = this.getIndex(entity);\n if (index != -1){\n // Recursiveley find its real node\n return this.getNodes().get(index).retrieve(entity);\n }else{\n // It is part of the current node\n Array...
[ "0.6396164", "0.6380235", "0.6353628", "0.61790925", "0.6154075", "0.61325246", "0.61325246", "0.61325246", "0.6105485", "0.6094486", "0.60743266", "0.6051207", "0.6035036", "0.6002966", "0.5953867", "0.59475183", "0.59419614", "0.58763874", "0.5720055", "0.5696102", "0.55817...
0.6307821
3
TODO Autogenerated method stub
@Override protected Dialog onCreateDialog(int id) { if (id == 999) { return new DatePickerDialog(this, myDateListener, year, month, day); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub arg1 = year arg2 = month arg3 = day
@Override public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) { showDate(arg1, arg2+1, arg3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "public DateIn(int day, int month, int year){\n\tthis.day = day;\n\tthis.month = month;\n\tthis.year = year;\n\t}", "public Date(int day, int month, int year) {\r\n this.d...
[ "0.72876316", "0.7029987", "0.6991329", "0.691297", "0.6876343", "0.6872958", "0.6864731", "0.67960936", "0.67881924", "0.66840476", "0.6677789", "0.66685945", "0.66605824", "0.6573567", "0.65725625", "0.6564439", "0.6536562", "0.64900434", "0.64361215", "0.6425609", "0.64207...
0.0
-1
this function initiates the switch between two candies when it is valid
public void ValidSwitch(int x, int y) { SaveState(); int temp = pictures[x][y - 1]; pictures[x][y - 1] = pictures[previousX][previousY - 1]; pictures[previousX][previousY - 1] = temp; for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { picture...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Check()\r\n {\r\n if (c1.getId() == c2.getId())\r\n {\r\n c1.setEnabled(false); \r\n c2.setEnabled(false);\r\n \r\n c1.setMatched(true); \r\n c2.setMatched(true);\r\n \r\n if(Converter(SecondInput)==1 && label...
[ "0.5913025", "0.5809006", "0.5705216", "0.5692205", "0.5651889", "0.56140506", "0.5602921", "0.55978096", "0.5588105", "0.5569946", "0.55569637", "0.5535411", "0.55023795", "0.54634964", "0.54365104", "0.54294616", "0.54247445", "0.5401437", "0.539032", "0.5385171", "0.538019...
0.61842614
0
this function will label candies that have a 3 or more combination
public void LabelingCandiesToDestroy() { int i; int j; int checkIfSame = 1; int NumOfSame = 1; System.out.println(" "); //the two sets of nested for loops are used to check for combinations in different directions (top-bottom, left-right) for (i = 0; i < 9; i+...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "WinningCombination getDescription();", "public static void main(String[] args){\n\t\t\n\t\tLabelSet cLabelSet=new LabelSet();\n\t\tLabelSet tLabelSet=new LabelSet();\n\t\t\n\t\tList<Label> cLabels=new ArrayList<Label>();\n\t\tList<Label> tLabels=new ArrayList<Label>();\n\t\t\n\t\tcLabels.add(cLabelSet.newLabel(\...
[ "0.5684731", "0.5641531", "0.55537456", "0.54724026", "0.54167426", "0.5389143", "0.5359319", "0.53479886", "0.53360814", "0.5307247", "0.52750266", "0.52641964", "0.5258166", "0.5253414", "0.5231642", "0.5210355", "0.5199985", "0.5187462", "0.51504844", "0.51472735", "0.5125...
0.6632048
0
this will delete the candies that have a 3 or more combination the nine that are previously labeled are deleted
public void DestroyCandies() { NineExists = 0; for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { if (pictures2[i][j] == 9) { scorevalue += 10; NineExists = 1; combinationValid = 1; NoMov...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void LabelingCandiesToDestroy() {\n int i;\n int j;\n int checkIfSame = 1;\n int NumOfSame = 1;\n System.out.println(\" \");\n //the two sets of nested for loops are used to check for combinations in different directions (top-bottom, left-right)\n for (i ...
[ "0.6689393", "0.5937539", "0.58253366", "0.5725434", "0.56887776", "0.5573971", "0.53876734", "0.5371556", "0.5316808", "0.53145385", "0.52986836", "0.52962136", "0.52903235", "0.5277582", "0.524447", "0.5237959", "0.52352446", "0.5229582", "0.5221394", "0.5207219", "0.519140...
0.6839048
0
checks if there are playable moves left by shifting each candy up, down, left, and right until it finds a valid combination
public void MovesRemainingExists() { InsideMovesRemainingExists = 1; NoMovesRemaining = 1; Beginning: for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { previousX = i; previousY = j + 1; if ((i + 1) < 9) { ValidSwit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moveLeft()\n {\n // runs through row first, column second\n for ( int row = 0; row < grid.length; row++) {\n\n // check is set to false, meaning no combinations have been made\n boolean check = false;\n for ( int column = 1; column < grid[row].length; column++) {\n int com...
[ "0.6375459", "0.63641626", "0.6279337", "0.6233056", "0.6209589", "0.61921394", "0.6185494", "0.61742616", "0.6167036", "0.61406684", "0.61247796", "0.60934854", "0.60744977", "0.6037396", "0.60201114", "0.6006333", "0.59886587", "0.59871495", "0.59805703", "0.59535867", "0.5...
0.6991228
0
it resets the original state if the switch is not valid
public void ResetState() { for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { pictures[i][j] = temp_pictures[i][j]; pictures2[i][j] = pictures[i][j]; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetState() {\n \ts = State.STRAIGHT;\n }", "@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}", "public void resetState();", "protected void resetState()\n {\n // Nothing to do by default.\n }", "private void breakSpecialState() {\n this.inSpecial...
[ "0.7059974", "0.69173646", "0.68087745", "0.6731838", "0.66933084", "0.6646969", "0.66361636", "0.6632558", "0.65306795", "0.64208627", "0.6406266", "0.6384592", "0.6361587", "0.63102925", "0.6310054", "0.6252022", "0.62239486", "0.6222278", "0.61928564", "0.61879045", "0.617...
0.0
-1
it saves the state to be used for the reset state
public void SaveState() { for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { temp_pictures[i][j] = pictures[i][j]; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "public void saveState() { }", "private void saveState() {\n // Increase capacity if necessary\n if (nSaved == savedC.length) {\n Object tmp;\n tmp = save...
[ "0.7874834", "0.7761095", "0.7641857", "0.7313699", "0.71581835", "0.70955807", "0.7082394", "0.70330334", "0.6999341", "0.6939999", "0.69205016", "0.6911713", "0.68394977", "0.683384", "0.6779901", "0.6771297", "0.67688155", "0.676108", "0.67384547", "0.67249686", "0.6722748...
0.61855966
59
Constructor for the poem generator object. Creates scanner and a list for PoetAndThemeobjects
public SecretPoemGenerator(){ scanner = new Scanner(System.in); poetsAndThemesList = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readPoemFiles(){\n try (Scanner fileScan = new Scanner(new File(\"poems.txt\"))) {\n //Poems.txt consist of a header (poet and theme) plus verse lines.\n //First loop reads the header and creates object 'PoetAndTheme'.\n while (fileScan.hasNextLine()){\n ...
[ "0.61604387", "0.5826526", "0.5756371", "0.5542798", "0.5498588", "0.54418856", "0.537471", "0.5349563", "0.530934", "0.5305058", "0.5295868", "0.52899534", "0.5286523", "0.5279725", "0.520978", "0.5196911", "0.51966774", "0.51932377", "0.5191816", "0.51889527", "0.5182899", ...
0.71542716
0
Starts poem generator. Presents welcome message, calls methods readPoemFiles, askPoets and fetchVerseLines.
public void startPoemGenerator(){ PoemWindow win = new PoemWindow(); System.out.println("\nYou found a Secret Poem Generator."); System.out.println("Welcome, Friend!"); System.out.println("\n **************************************"); System.out.println(); readPoem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n\t\tFile splashFile = new File(\"Splash\", \"title\");\r\n\t\tsplashString = TextFileReader.getContents(splashFile);\r\n\t\tsendOutput(splashString);\r\n\t\tsendOutput(\"Version \" + versionNum);\r\n\t\tsendOutput(\"by \" + author);\r\n\t\tprintMenu();\r\n\t}", "public void startProgram()...
[ "0.54188055", "0.51491797", "0.5083735", "0.5066377", "0.50655735", "0.5046163", "0.5005249", "0.49987802", "0.4963723", "0.49524763", "0.49294722", "0.4902641", "0.4893258", "0.48921078", "0.48554268", "0.48368683", "0.4832176", "0.4828823", "0.48165128", "0.48126727", "0.47...
0.7975337
0
Ask user input for two poets and a theme. Print out summary of user's picks.
public void askPoets(){ System.out.println("Walt Whitman William Shakespeare John Keats Emily Dickinson"); System.out.println("Pick a poet and press enter: "); String poet1_input = scanner.nextLine(); if (poet1_input.toLowerCase().contains("whitman") || poet1_input.toLowerCase(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String userInputToPoet(String poet, String theme) throws IncorrectInput{\n String returnable = \"\";\n if(poet.equals(\"Whitman\")){\n if(theme.equals(\"Love\")){\n returnable = \"love Whitman\";\n }else{\n returnable = \"death Whitman\";\n ...
[ "0.6484122", "0.626534", "0.5906632", "0.56154877", "0.5547192", "0.55216247", "0.5471261", "0.5461403", "0.5458834", "0.5401516", "0.53983104", "0.5389467", "0.5369944", "0.5333522", "0.5328146", "0.53123015", "0.53009254", "0.53009206", "0.5272101", "0.5264078", "0.5245239"...
0.76905924
0
Read lines in 'poems' text file (located in project root directory). Create PoetAndTheme objects from lines and add objects to an array list 'poetsAndThemesList'.
public void readPoemFiles(){ try (Scanner fileScan = new Scanner(new File("poems.txt"))) { //Poems.txt consist of a header (poet and theme) plus verse lines. //First loop reads the header and creates object 'PoetAndTheme'. while (fileScan.hasNextLine()){ Strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs =...
[ "0.5651232", "0.5560198", "0.54061973", "0.53513664", "0.5232113", "0.51958084", "0.5186931", "0.51778287", "0.5134997", "0.5106615", "0.5092412", "0.506221", "0.5060974", "0.50496525", "0.50411993", "0.5039559", "0.49974167", "0.49839842", "0.49665987", "0.49353597", "0.4917...
0.8379908
0
Generates the actual printable poem. Decides the length of generated poem and fetches every other verse line from desired poet and every other from another desired poet.
public void fetchVerseLines() throws IncorrectInput{ String strObject1 = ""; PoetAndTheme object1 = poetsAndThemesList.get(0); String strObject2 = ""; PoetAndTheme object2 = poetsAndThemesList.get(0); strObject1 = userInputToPoet(poet1, theme); strObject2 = userInputToPoe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTest(){\n\r\n p.resetAll();\r\n p.initialize();\r\n p.feedBack((byte)2);\r\n// p.color(1);\r\n p.alignCenter();\r\n p.setText(\"The Dum Dum Name\");\r\n p.newLine();\r\n p.setText(\"Restaurant Dining\");\r\n p.newLine();\r\n p.a...
[ "0.5891402", "0.56924474", "0.565544", "0.56343853", "0.56315976", "0.55876356", "0.5423861", "0.5414381", "0.52296215", "0.5147898", "0.511276", "0.510926", "0.51079994", "0.5107107", "0.5043014", "0.5034918", "0.5017594", "0.5005708", "0.5004873", "0.4988595", "0.49661735",...
0.60302997
0
Reformats user input to match the name of desired PoetAndTheme object (for purpose of fetching the correct PoetAndTheme object.)
public String userInputToPoet(String poet, String theme) throws IncorrectInput{ String returnable = ""; if(poet.equals("Whitman")){ if(theme.equals("Love")){ returnable = "love Whitman"; }else{ returnable = "death Whitman"; } }e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void askPoets(){\n System.out.println(\"Walt Whitman William Shakespeare John Keats Emily Dickinson\");\n System.out.println(\"Pick a poet and press enter: \");\n\n String poet1_input = scanner.nextLine();\n if (poet1_input.toLowerCase().contains(\"whitman\") || poet1_in...
[ "0.637292", "0.5062306", "0.49723536", "0.46916708", "0.46782863", "0.464013", "0.4621002", "0.45381778", "0.45165253", "0.4515437", "0.4513491", "0.44819102", "0.4481576", "0.44705418", "0.44529244", "0.4423998", "0.44213766", "0.4413711", "0.44028756", "0.4401036", "0.43967...
0.6898477
0
Decides the length of generated poem.
public int getRandomPoemLength(){ double poemLengthDouble = Math.random() * 4 + 6; int poemLength = (int) poemLengthDouble; return poemLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLength(){\n return textQuestions.length;\n }", "public int getLength(){\n return sequence.length(); \n\t}", "public int getProtein_length() {\n return protein_length;\n }", "public static long getPrepositionLength(){\n\t\treturn prepositionLength;\n\t}", "public int ...
[ "0.62075937", "0.615097", "0.6133263", "0.6085752", "0.5950983", "0.59263873", "0.5890112", "0.5878226", "0.5874588", "0.58627206", "0.5858906", "0.5858906", "0.58580506", "0.584963", "0.58058596", "0.5804284", "0.5803863", "0.5803863", "0.5788746", "0.57863754", "0.57849133"...
0.7156521
0
Fetches the last poem line and checks that it ends with '.', '!' or '?'.
public String getLastPoemLine(PoetAndTheme object){ boolean lastCharDot = false; String lastVerseLine = ""; while(!lastCharDot){ lastVerseLine = object.getRandomVerseLine(); if(lastVerseLine.substring(lastVerseLine.length() - 1).equals(".") || lastVerseLin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean definitelyNotLastLine(String message);", "private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}", "private static String getLastToken(String s)\r\n {\r\n int index = s.lastIndexOf('.');\r\n if (index == -1)\r\n {\r\n r...
[ "0.65454537", "0.6528631", "0.5719587", "0.56174165", "0.561416", "0.5585858", "0.554086", "0.5429874", "0.54154664", "0.54089713", "0.5408789", "0.54058784", "0.54046875", "0.54024225", "0.5371129", "0.53550875", "0.5354374", "0.5284095", "0.5262537", "0.52605635", "0.523433...
0.73474383
0
sorting the array using bubble sort
void bubbleSort(int arr[]) { int n = arr.length; boolean swapped; for(int i = 0; i < n-1; i++) { //denotes pass # for(int j = 0; j < n-i-1; j++) { //denotes element in the pass if(arr[j] > arr[j+1]) { //swapping of the element ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bubbleSort() {\n\t\tint n = data.size();\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tfor (int j = 1; j < n - i; j++) {\n\t\t\t\tif (data.get(j - 1) > data.get(j)) {\n\t\t\t\t\tswap(j, j - 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "public void bubbleSort() {\n boolean unordered = false;\n ...
[ "0.80037326", "0.7748423", "0.767007", "0.7627617", "0.7617527", "0.75071055", "0.74969584", "0.7456769", "0.7453551", "0.74195796", "0.7407863", "0.73909545", "0.735769", "0.7357232", "0.735272", "0.73512524", "0.7333602", "0.73138535", "0.72983706", "0.7296635", "0.72949433...
0.6990847
50
to print the array
void printArray(int arr[]) { //enhanced for loop for (int item:arr) { System.out.print(item + " "); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t...
[ "0.83761543", "0.7817703", "0.7816766", "0.7791281", "0.77802056", "0.77353376", "0.7691468", "0.7691232", "0.76466817", "0.7604845", "0.7602411", "0.7551739", "0.75349706", "0.7509735", "0.7491882", "0.74903286", "0.7466219", "0.7461517", "0.74162537", "0.74090475", "0.74029...
0.0
-1
Created by paride on 24/08/15. Commentable interface, needs to be implemented if a class supports a feedback
public interface Commentable { /** * set a comment for the item * @param comment string to comment */ public void setComment(String comment); /** * set comment and rating for the item * @param comment string comment * @param rating int rating */ public void setComment...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comment() {\n\t\t\n\t}", "Feedback getFeedback();", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "@Override\n\t/**\n\t * returns false because comments ar...
[ "0.6988434", "0.6944449", "0.670051", "0.6576237", "0.6569255", "0.6523992", "0.6522711", "0.6518419", "0.6518419", "0.6518419", "0.6518419", "0.6518419", "0.6518419", "0.62835294", "0.6249001", "0.62360764", "0.62169635", "0.6098049", "0.6083903", "0.607763", "0.6053334", ...
0.57515633
44
set a comment for the item
public void setComment(String comment);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String c) {\n comment = c ;\n }", "public void setComments(java.lang.String value);", "publ...
[ "0.73425925", "0.72609234", "0.7205977", "0.7186698", "0.7146257", "0.7127913", "0.7066143", "0.70034593", "0.69466186", "0.69428694", "0.6940052", "0.6924813", "0.69197786", "0.6910918", "0.6910918", "0.69037366", "0.6885423", "0.6882284", "0.6875417", "0.6844539", "0.684453...
0.78036475
1
set comment and rating for the item
public void setComment(String comment, int rating);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRating(int rating);", "public void setRating(int rating)\n {\n this.rating = rating;\n }", "public void setRating(int rating) {\r\n this.rating = rating;\r\n }", "public void setRating(int rating) {\n this.rating = rating;\n }", "public void ratePoItem(int pi...
[ "0.7001854", "0.6871212", "0.68385583", "0.6796028", "0.6702328", "0.66653645", "0.65133977", "0.65100384", "0.64111924", "0.6346869", "0.63358116", "0.6325636", "0.6313214", "0.6304311", "0.62812227", "0.62429744", "0.6237247", "0.61943805", "0.6193095", "0.61928445", "0.614...
0.7931292
0
set a rating for the item
public void setRating(int rating);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRating(int rating)\n {\n this.rating = rating;\n }", "public void setRating(int rating) {\r\n this.rating = rating;\r\n }", "public void setRating(Integer value)\n\t{\n\t}", "public void setRating(int rating) {\n this.rating = rating;\n }", "public void setRa...
[ "0.7947639", "0.79247284", "0.7855962", "0.78522867", "0.7822658", "0.777543", "0.7662606", "0.7644664", "0.7642056", "0.759116", "0.7522286", "0.74860984", "0.74185777", "0.7310986", "0.7295264", "0.71304107", "0.7126988", "0.71057546", "0.71022105", "0.7090783", "0.70533913...
0.8370158
0
returns the comment of the item
public String getComment();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getComment()\n {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return c...
[ "0.74138385", "0.7379837", "0.7379837", "0.7379837", "0.7379837", "0.7379837", "0.7379837", "0.7379837", "0.7353038", "0.73526126", "0.7344236", "0.7340548", "0.73314893", "0.7293577", "0.72918576", "0.72918576", "0.7256651", "0.72294617", "0.72294617", "0.7215987", "0.721598...
0.7310501
18
returns the rating of the item
public int getRating();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getRating();", "public double getRating(){\n\t\treturn this.rating;\n\t}", "public Integer getRating() {\n return this.rating;\n }", "public double getRating() {\n return rating_;\n }", "public double getRating() {\n return rating_;\n }", "public double getRating() {\...
[ "0.8234478", "0.80350393", "0.7980102", "0.79293454", "0.79271716", "0.79258", "0.7860612", "0.7763224", "0.77629066", "0.7738143", "0.7738143", "0.768941", "0.7684007", "0.7458509", "0.7419617", "0.73795766", "0.73404676", "0.7325921", "0.7314049", "0.72839504", "0.7262208",...
0.801551
2
very dirty way, simplest mode to make few code and avoid problems with parcelable items
public void setSerializer(Object serializer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo5336a(Parcelable parcelable) {\n }", "private void readFromParcel(Parcel in) \r\n\t{\n\t\tthis.id \t\t\t= in.readInt();\r\n\t\tthis.desc\t\t\t= in.readString();\r\n\t\tthis.titulo_imagem \t= in.readString();\r\n\t\tthis.titulo_som\t\t= in.readString();\r\n\t\tthis.ext\t\t\t= in.readString();\r\n...
[ "0.6352748", "0.63305175", "0.63287014", "0.6285225", "0.6236257", "0.62093014", "0.6202414", "0.6179538", "0.6150787", "0.6113592", "0.6085015", "0.605195", "0.60475254", "0.60347116", "0.5970246", "0.59634316", "0.59491163", "0.5898552", "0.58952963", "0.58952963", "0.58788...
0.0
-1
private EntityManager em = DAOGeneral.getManager(); Constructor that is invoked when page is invoked without a session.
public SnippetBook() { MyAuthenticatedWebSession app_session = MyAuthenticatedWebSession.getYourAppSession(); logger.info("web session is: "+app_session.toString()); EntityManager em = app_session.getEntityManager(); List<Snip> tmp_snip_list= em.createQuery( "SELEC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected EntityManager getEntityManager() {\n\t return em;\n\t}", "@Override\n protected EntityManager getEntityManager() {\n return em;\n }", "@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn em;\n\t}", "@Override\n\tprotected EntityManager getEntityManager...
[ "0.7041094", "0.69883984", "0.6941129", "0.6941129", "0.6809824", "0.6802529", "0.6739876", "0.67268175", "0.6683626", "0.66758156", "0.6600909", "0.6580875", "0.6575373", "0.65355855", "0.6531087", "0.6516418", "0.6514423", "0.6470734", "0.64706993", "0.6466512", "0.6459248"...
0.0
-1
Show the resulting valid edit
@Override @Transactional public void onSubmit() { ValueMap values = getModelObject(); // check if the honey pot is filled if (StringUtils.isNotBlank((String)values.get("comment"))) { error("Caught a spammer!!!"); return; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showThatEditable() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"You may now edit this recipe!\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Edit Mode\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickLi...
[ "0.73575115", "0.72330564", "0.7004577", "0.6775767", "0.66926587", "0.6636516", "0.6560771", "0.6531381", "0.65281", "0.6500563", "0.6480932", "0.64170885", "0.6416468", "0.6347081", "0.63169795", "0.6314029", "0.6305645", "0.62585616", "0.6245871", "0.6232414", "0.6232309",...
0.0
-1
Notifies the service to update the local checkpoint for the shard with the provided allocation ID. If the checkpoint is lower than the currently known one, this is a noop. If the allocation ID is not in sync, it is ignored. This is to prevent late arrivals from shards that are removed to be readded.
public synchronized void updateLocalCheckpoint(final String allocationId, final long checkpoint) { final int indexOfKey = inSyncLocalCheckpoints.indexOf(allocationId); if (indexOfKey >= 0) { final long current = inSyncLocalCheckpoints.indexGet(indexOfKey); if (current < checkpoin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void markAllocationIdAsInSync(final String allocationId) {\n if (assignedAllocationIds.contains(allocationId) == false) {\n // master has removed this allocation, ignore\n return;\n }\n logger.trace(\"marked [{}] as in sync\", allocationId);\n i...
[ "0.6473404", "0.5550946", "0.5384732", "0.53195953", "0.53189856", "0.5258512", "0.5144136", "0.510205", "0.50633395", "0.49794102", "0.49195683", "0.48520777", "0.46700713", "0.45364654", "0.44592166", "0.443182", "0.442402", "0.43478253", "0.4336916", "0.4336916", "0.433691...
0.7558305
0
Returns the global checkpoint for the shard.
public synchronized long getCheckpoint() { return globalCheckpoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Checkpoint lastCheckpoint(){\n if(!checkpointRecordFile.exists()){\n return null;\n }\n return lastCheckpoint(rootDir);\n }", "private static HashMap<String, String> getLastCheckpoint() {\n return checkpoints.remove(Thread.currentThread());\n }", "private Parameter...
[ "0.6068443", "0.5821556", "0.57984257", "0.5706482", "0.55592984", "0.548863", "0.5420951", "0.53661793", "0.52422893", "0.51925015", "0.51258683", "0.5116392", "0.51139766", "0.5112382", "0.50556505", "0.5019973", "0.49790356", "0.49599892", "0.49299964", "0.49218217", "0.49...
0.7667132
0
Updates the global checkpoint on a replica shard after it has been updated by the primary.
synchronized void updateCheckpointOnReplica(final long checkpoint) { /* * The global checkpoint here is a local knowledge which is updated under the mandate of the primary. It can happen that the primary * information is lagging compared to a replica (e.g., if a replica is promoted to primary ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flushCheckpoint(long checkpoint)\r\n/* 124: */ {\r\n/* 125:155 */ this.checkpoint = checkpoint;\r\n/* 126: */ }", "protected void checkpoint() {\n checkpoint = internalBuffer().readerIndex();\n }", "private void restoreToCheckpoint(Parameters checkpoint) {\n assert geomet...
[ "0.6076575", "0.6018492", "0.57934207", "0.56978077", "0.5696277", "0.56734467", "0.56623757", "0.54469365", "0.5406213", "0.5350238", "0.531504", "0.5276884", "0.5243401", "0.5227994", "0.5118696", "0.50910836", "0.5039242", "0.5038713", "0.50335556", "0.49924254", "0.495414...
0.82425183
0
Notifies the service of the current allocation ids in the cluster state. This method trims any shards that have been removed.
public synchronized void updateAllocationIdsFromMaster(final Set<String> activeAllocationIds, final Set<String> initializingAllocationIds) { assignedAllocationIds.removeIf( aId -> activeAllocationIds.contains(aId) == false && initializingAll...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteFromCloud() {\n\t\tfor (CustomerRequest r: mPendingRequests) {\n\t\t\tr.deleteFromCloud();\n\t\t}\n\n\t\t// We keep the orders in the cloud for later analytics\n\n\t\tsuper.deleteFromCloud();\n\t}", "public void deleteCopiedPendingLedgerEntries();", "public void removeAllProducer...
[ "0.5390505", "0.5316857", "0.5235045", "0.5215106", "0.5212032", "0.5200254", "0.50953454", "0.50810796", "0.50726634", "0.50706404", "0.5010391", "0.5005096", "0.49891874", "0.49777743", "0.4977254", "0.49624124", "0.49624124", "0.49624124", "0.49624124", "0.49496228", "0.49...
0.0
-1
Marks the shard with the provided allocation ID as insync with the primary shard. This should be called at the end of recovery where the primary knows all operations below the global checkpoint have been completed on this shard.
public synchronized void markAllocationIdAsInSync(final String allocationId) { if (assignedAllocationIds.contains(allocationId) == false) { // master has removed this allocation, ignore return; } logger.trace("marked [{}] as in sync", allocationId); inSyncLocalChe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void markShardCopyAsStaleIfNeeded(ShardId shardId, String allocationId, long primaryTerm, ActionListener<Void> listener) {\n listener.onResponse(null);\n }", "public synchronized void updateAllocationIdsFromMaster(final Set<String> activeAllocationIds,\n ...
[ "0.5378697", "0.53580976", "0.5333123", "0.50785583", "0.49434257", "0.48679218", "0.48538423", "0.4787702", "0.47237065", "0.47066373", "0.46399844", "0.46348453", "0.46286282", "0.46267155", "0.45938265", "0.45923945", "0.45456862", "0.45452136", "0.45296946", "0.4511324", ...
0.7348139
0
use lock with entityId as key to avoid concurrent entity modification
public void modifyEntity(String entityId) { Lock lock = lockMap.computeIfAbsent(entityId, m -> new ReentrantLock()); try { lock.lock(); // simulate long entity modification Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void lock(Object entity, LockModeType lockMode) {\n\t\t\n\t}", "public void lock(int key);", "protected void lockEntry(PersistentEntity persistentEntity, Serializable id, int timeout) {\n // do nothing,\n }", "@Override\n\tpublic void lock(Object entity, LockModeType lockMode, M...
[ "0.6952761", "0.6877243", "0.683668", "0.68018836", "0.6181282", "0.61163354", "0.6082137", "0.6079825", "0.6075558", "0.6057201", "0.60171336", "0.59491026", "0.59118414", "0.5876734", "0.58499175", "0.5824788", "0.5817028", "0.58116376", "0.58113474", "0.58097094", "0.58075...
0.70529634
0
This method set a new status to the phase
void setPhaseStatus(GeneralStatus phaseStatus);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setPhaseStatus(ProjectPhaseStatus phaseStatus) {\r\n this.phaseStatus = phaseStatus;\r\n }", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public void setStatus( short newStatus )\...
[ "0.7117886", "0.6947157", "0.67823863", "0.6765126", "0.67453533", "0.67340356", "0.6721293", "0.66957885", "0.6689429", "0.66727173", "0.66710865", "0.6665544", "0.661769", "0.661769", "0.6613146", "0.6604505", "0.6590093", "0.6568846", "0.65631586", "0.65345263", "0.6530291...
0.81373715
0
Suppress default constructor for noninstantiability.
private TedCorrigendumHandler() { throw new AssertionError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "defaultConstructor(){}", "private Instantiation(){}", "void DefaultConstructor(){}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new Asse...
[ "0.82670325", "0.7635687", "0.7544629", "0.7500964", "0.7452601", "0.7449513", "0.72489494", "0.71992016", "0.7179479", "0.7091578", "0.7035374", "0.70110184", "0.6986614", "0.69856423", "0.6914095", "0.6891218", "0.6879011", "0.68582505", "0.68539506", "0.6841544", "0.682085...
0.0
-1
Parses corrigendum form specific data.
public static ParsedTender parse(final ParsedTender parsedTender, final Document document) { final Element originNode = TedTenderParserUtils.getOriginNode(document); parsedTender .addPublication(TedTenderParserUtils.initMainPublication(document) .setSource(PUBLICATIONS_SOURC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }", "private void parseData() {\n\t\t\r\n\t}", "private void parseData() throws IOException {\n // The data section ends with a dashed line...\n //\n ...
[ "0.5325338", "0.5164326", "0.50570256", "0.49713483", "0.47745126", "0.47485703", "0.47307613", "0.47185844", "0.47084117", "0.47051454", "0.46722803", "0.46589637", "0.46473923", "0.4618903", "0.4587504", "0.4577613", "0.45687318", "0.4558048", "0.4554017", "0.45534134", "0....
0.0
-1
/mBundle.putString("key", etCreate.getText().toString()); openService(MyIntentService.class,mBundle); openActivityForResult(PayActivity.class,REQUEST_PAY_CODE,mBundle); NotificationUtil.getNotificationUtils(MainActivity.this).showNotification(null,null);
@SuppressLint("RestrictedApi") @Override public void call(Void aVoid) { initRemoteViews(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \t public void onClick(View v) {\n \t\tRegno=(EditText) findViewById(R.id.regno);\n \t\tRouteno=(EditText) findViewById(R.id.routeno);\n \t\tDriver =(EditText) findViewById(R.id.name);\n \t\tPhone = (EditText) findViewById(R.id.phone);\n \t\t\n \t\tmrg = Regno.getTex...
[ "0.661432", "0.6425577", "0.635154", "0.6349238", "0.6270685", "0.6251447", "0.624086", "0.62367785", "0.6232767", "0.622005", "0.6202881", "0.6180342", "0.61631393", "0.6156657", "0.6155747", "0.6138749", "0.6137114", "0.61206377", "0.60934985", "0.60930496", "0.6090637", ...
0.0
-1
openActivity(FirstActivity.class); /String a = RSAUtil.getRSAUtil().myEncrypt(etCreate.getText().toString()); String b = RSAUtil.getRSAUtil().myDecryption(a); LogUtils.i(a); LogUtils.i(b);
@Override public void call(Void aVoid) { NotificationUtil.getNotificationUtils(MainActivity.this).closeNotification(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test() {\n\t\t// super.onCreate(savedInstanceState);\n\t\t// setContentView(R.layout.main);\n\t\tString masterPassword = \"abcdefghijklmn\";\n\t\tString originalText = \"i see qinhubao eat milk!\";\n\t\tbyte[] text = new byte[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };\n\t\tbyte[] password ...
[ "0.70158887", "0.64266604", "0.6020494", "0.59974605", "0.59838957", "0.5910563", "0.5886788", "0.58788496", "0.58752304", "0.58693767", "0.58579785", "0.58359027", "0.5811747", "0.5806614", "0.58012986", "0.57940406", "0.5783951", "0.57547957", "0.5713548", "0.5688353", "0.5...
0.0
-1
send oauth request /SendAuth.Req req = new SendAuth.Req(); req.scope = "snsapi_userinfo"; req.state = "wechat_sdk_demo_test"; api.sendReq(req);
@Override public void call(Void aVoid) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getUserInfo(boolean checkAccessTokenResult, final AccessToken accessToken) {\n if (!checkAccessTokenResult) {\n //access token is not valid refresh\n RequestParams params = new RequestParams(WeChatManager.getRefreshAccessTokenUrl(sURLRefreshAccessToken, accessToken));\n ...
[ "0.5753749", "0.57170093", "0.570248", "0.56622094", "0.5648376", "0.5617101", "0.5613002", "0.5564436", "0.55135995", "0.5507116", "0.54698694", "0.5453604", "0.5449773", "0.54492044", "0.54072815", "0.53793865", "0.5376597", "0.5362779", "0.53117526", "0.5299517", "0.529422...
0.0
-1
load all the sprites from the images folder
public static void load(){ try { // load and set all sprites setBlueGarbage(ImageIO.read(classPath.getResourceAsStream("/images/blueGarbage.png"))); setRank(ImageIO.read(classPath.getClass().getResourceAsStream("/images/rank.png"))); setRedGarbage(ImageIO.read(classPath.getResourceAsStream...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void loadImages() {\n PonySprite.loadImages(imgKey, \"graphics/ponies/GrannySmith.png\");\n }", "private void loadSprites() throws IOException {\n \t\tsprites.put(\"fullBin\", ImageIO.read(new File(\"user-trash-full64.png\")));\n \t\tsprites.put(\"emptyBin\", ImageIO.read(new File(\"user-trash6...
[ "0.7965051", "0.7787473", "0.7733941", "0.7645384", "0.7559833", "0.754288", "0.7454749", "0.74373186", "0.7418593", "0.73960686", "0.73852944", "0.7358035", "0.73379725", "0.73100656", "0.7300563", "0.7283239", "0.72817034", "0.7214118", "0.7108134", "0.6984256", "0.6901343"...
0.76516956
3
Parses a path into segments Wildcards are not permitted in paths parsed by this method.
public static Object[] parse(final String path) { final boolean allowWildcards = false; return parse(path, allowWildcards); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList<PathItem> parsePath(String path) {\n\t\tArrayList<PathItem> pathItems = new ArrayList<PathItem>();\n\t\tString[] items = path.split(\"~\\\\\\\\\");\n\t\tString[] item;\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\titem = items[i].split(\"~\");\n\t\t\tif (item.length >= 2)\n\t\t\t\tpathItem...
[ "0.6213344", "0.60207367", "0.5676899", "0.5652066", "0.5529787", "0.5350379", "0.5304408", "0.52347785", "0.5230724", "0.52230203", "0.5211109", "0.5200282", "0.519164", "0.5103823", "0.50985193", "0.50327814", "0.4979258", "0.49512964", "0.4943677", "0.49231148", "0.4918684...
0.5736525
2
Encodes the specified path segments as a path string
public static String toString(final Object[] segments) { final StringBuilder builder = new StringBuilder(); for (final Object segment: segments) { if (segment instanceof Integer) { builder.append('[').append(segment).append(']'); } else if (segment == ANY_INDEX) { builder.append(segment); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String pathBuilder(String... segments) {\n\t\t\n\t\tStringBuffer path = new StringBuffer();\n\t\tfor(String seg : segments){\n\t\t\tif(seg != null){\n\t\t\t\tpath.append(seg);\n\t\t\t\tpath.append(\"/\");\n\t\t\t}\n\t\t}\n\t\treturn path.toString();\n\t}", "public static final String toPath(final List<...
[ "0.6874245", "0.6234454", "0.61291814", "0.59175706", "0.5892942", "0.58780795", "0.5731367", "0.56402904", "0.5592618", "0.5564757", "0.54915744", "0.54705244", "0.5464945", "0.54534477", "0.53953403", "0.5393836", "0.53448784", "0.52830124", "0.5253351", "0.5213516", "0.520...
0.538605
16
Tests if the specified segments contains a wildcard (ANY_KEY or ANY_INDEX)
public static boolean containsWildcard(final Object[] segments) { return containsWildcard(segments, 0, segments.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean containsWildcard(final Object[] segments, final int startIndex, final int length) {\r\n\t\tfor (int index = startIndex; index < startIndex + length; index++) {\r\n\t\t\tfinal Object segment = segments[index];\r\n\t\t\tif (isWildcard(segment)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n...
[ "0.7620412", "0.6299548", "0.5678907", "0.55680096", "0.54081535", "0.53962076", "0.53494793", "0.5256893", "0.51781994", "0.51361346", "0.51275635", "0.51202977", "0.5107727", "0.51053786", "0.50956506", "0.50956506", "0.5075832", "0.50285757", "0.49666718", "0.49585173", "0...
0.73642
1
Tests if the specified segments contains a wildcard (ANY_KEY or ANY_INDEX)
private static boolean containsWildcard(final Object[] segments, final int startIndex, final int length) { for (int index = startIndex; index < startIndex + length; index++) { final Object segment = segments[index]; if (isWildcard(segment)) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean containsWildcard(final Object[] segments) {\r\n\t\treturn containsWildcard(segments, 0, segments.length);\r\n\t}", "private boolean containsWildcard(final String min) {\n return min.contains(\"*\")\r\n || min.contains(\"+\")\r\n || min.contains(\"%\")\r\n || min.cont...
[ "0.73637915", "0.6299532", "0.5677498", "0.5566645", "0.5409565", "0.5396304", "0.5347541", "0.52564985", "0.51782286", "0.51365244", "0.5127244", "0.5118705", "0.51051986", "0.51039267", "0.5096437", "0.5096437", "0.5075797", "0.502852", "0.49675328", "0.49595454", "0.494822...
0.7620405
0
Recursively finds selected key/value pairs and adds them to the results map The results map is 'partially flattened' i.e. the key values are encoded paths, however selected values may have nested maps/lists (determined by the structure of the incoming data)
private static <T> void findAndAddSelected(final Class<T> type, final List<Entry<Object[], T>> results, final List<Object> prefix, final Object value, final Object[] segments, final int index) { if (value == null) { return; } else if (index >= segments.length) { // Found a potential match if (type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Object> getValues(boolean deep);", "public abstract boolean apply( String inputKey, Object input, WalkedPath walkedPath, Map<String,Object> output );", "public static Map<String, String> expand(Map<String, String> props){\r\n\t\tMap<String, String> result = new HashMap<String, String>();\r\n\t\tSet...
[ "0.5776276", "0.5510767", "0.53244495", "0.496922", "0.49438757", "0.4886112", "0.48518214", "0.4831373", "0.4823634", "0.47575748", "0.47391683", "0.4735033", "0.4665696", "0.46571004", "0.46533594", "0.46306527", "0.46117473", "0.46106938", "0.460681", "0.46067378", "0.4599...
0.5747332
1
regex to replace all special characters . [ ] \ with \. \[ \] \\
private static String encodeSegment(final String segment) { final Matcher matcher = SPECIAL_CHARACTERS_PATTERN.matcher(segment); return matcher.replaceAll("\\\\$1"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String replaceEscapeChars(final String input) {\n if (input == null) return null;\n\n String retValue = LEFT_SQUARE_BRACKET_PATTERN.matcher(input).replaceAll(\"[\");\n retValue = RIGHT_SQUARE_BRACKET_PATTERN.matcher(retValue).replaceAll(\"]\");\n retValue = LEFT_BRACKET_PA...
[ "0.56431186", "0.5615086", "0.5552592", "0.5236536", "0.5214548", "0.5195243", "0.51925915", "0.51713455", "0.51446813", "0.5139351", "0.5072082", "0.5000332", "0.49827546", "0.49814546", "0.49484882", "0.4937315", "0.4930446", "0.4919704", "0.4909636", "0.4902856", "0.490075...
0.43379956
84
Show the RPC error message to the user
public void onFailure(Throwable caught) { System.out.println("XMLStreamTracer: Failed to start a new trace."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showError(String error);", "void showError(String message);", "void showError(String message);", "@Override\n public void showError() {\n }", "public void showError(String errorMessage);", "void showError(String errorMessage);", "void errorResponse( String error );", "void showError...
[ "0.7293027", "0.718913", "0.718913", "0.7031218", "0.7026386", "0.7019833", "0.6972712", "0.6963187", "0.6954285", "0.6914848", "0.68660134", "0.68660134", "0.680891", "0.67909193", "0.6767904", "0.67615235", "0.67615235", "0.67615235", "0.6734825", "0.6732274", "0.6649559", ...
0.0
-1
Write the XML document to the file trace.xml from
@Override public boolean close() { // TODO Auto-generated method stub xmlStreamTracerService.postEndOfTrace(mURL, mTraceID, mCookie, new AsyncCallback<String>() { public void onFailure(Throwable caught) { // Show the RPC error message to the user System.out.println("XMLStreamTracer: Failed t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstant...
[ "0.6742781", "0.6382843", "0.6339708", "0.6150678", "0.6116198", "0.61128247", "0.59130543", "0.58660376", "0.58539265", "0.58252233", "0.57485807", "0.5748456", "0.5736121", "0.56798977", "0.5643867", "0.5639742", "0.562006", "0.5614816", "0.56133115", "0.56059134", "0.55663...
0.0
-1
Show the RPC error message to the user
public void onFailure(Throwable caught) { System.out.println("XMLStreamTracer: Failed to end the trace."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showError(String error);", "void showError(String message);", "void showError(String message);", "@Override\n public void showError() {\n }", "public void showError(String errorMessage);", "void showError(String errorMessage);", "void errorResponse( String error );", "void showError...
[ "0.729417", "0.7190209", "0.7190209", "0.7032782", "0.702754", "0.70209455", "0.69728166", "0.69641274", "0.69545954", "0.69153816", "0.68666023", "0.68666023", "0.68092376", "0.67919785", "0.676801", "0.6760941", "0.6760941", "0.6760941", "0.6736302", "0.67330396", "0.665087...
0.0
-1
Create an event that can be populated using its reference.
@Override public Element newEvent(String source, String type, int t) { // TODO Auto-generated method stub if(!mEventStarted) { mRoot = mDocument.createElement("slice"); mRoot.setAttribute("date", Integer.toString(t)); mDocument.appendChild(mRoot); } else if (t != mLastCycle) { this.finishEven...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event createEvent();", "Event createEvent();", "BasicEvent createBasicEvent();", "EventUse createEventUse();", "private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t}", "com.walgreens....
[ "0.72216874", "0.72216874", "0.6629205", "0.6603441", "0.6360137", "0.6234062", "0.61354786", "0.61113656", "0.60618603", "0.60402304", "0.6038997", "0.60081756", "0.6005787", "0.59852326", "0.5979449", "0.59792864", "0.58511204", "0.584247", "0.5812372", "0.5773969", "0.5761...
0.0
-1
Create a new event that can be populated with elements later.
@Override public void startNewEvent(int t) { // TODO Auto-generated method stub this.newEvent("Ernest", "action", t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event createEvent();", "Event createEvent();", "private void createEvents() {\n\t}", "BasicEvent createBasicEvent();", "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.create...
[ "0.77708745", "0.77708745", "0.7255182", "0.72101206", "0.7185832", "0.70874", "0.7059883", "0.67776257", "0.66582763", "0.66369873", "0.6614427", "0.65443283", "0.6509435", "0.64276916", "0.64128643", "0.64017916", "0.63862973", "0.63851255", "0.6281225", "0.6252637", "0.625...
0.0
-1