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
Register a new tick callback
public void registerTickCallback(final BitfinexTickerSymbol symbol, final BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException { tickerCallbacks.registerCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EngineTickCallback {\n\t/**\n\t * The method the engine calls when it ticks.\n\t */\n\tvoid tick();\n}", "public interface OnTickListener {\r\n void onTick();\r\n}", "@Override\n public void onTick(long arg0) {\n }", "public boolean onTick();"...
[ "0.68207455", "0.6751216", "0.67103225", "0.6688099", "0.66807276", "0.6617441", "0.6548646", "0.6519665", "0.64598423", "0.64547", "0.64547", "0.64547", "0.64198637", "0.6394068", "0.6378133", "0.6371842", "0.6371842", "0.63616574", "0.63282555", "0.6314355", "0.62979305", ...
0.63860434
14
Remove the a tick callback
public boolean removeTickCallback(final BitfinexTickerSymbol symbol, final BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException { return tickerCallbacks.removeCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void decrementTick();", "public void o() {\n this.f760a.p().removeCallbacks(this.g);\n }", "public synchronized void stop(){\n\t\tif (tickHandle != null){\n\t\t\ttickHandle.cancel(false);\n\t\t\ttickHandle = null;\n\t\t}\n\t}", "KeyFrame removeKeyFrame(int tick) throws IllegalArgumentException;", ...
[ "0.6819692", "0.6701239", "0.6372053", "0.6353342", "0.6327274", "0.623736", "0.6226006", "0.6203567", "0.6160556", "0.6156078", "0.61147416", "0.61024594", "0.60976833", "0.60349655", "0.60336906", "0.60321826", "0.59972936", "0.5996787", "0.59666425", "0.5946731", "0.593191...
0.6121142
10
Process a list with ticks
public void handleTicksList(final BitfinexTickerSymbol symbol, final List<BitfinexTick> ticksBuffer) { tickerCallbacks.handleEventsList(symbol, ticksBuffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addIsochronesToChart(ArrayList<ArrayList<Star>> list) {\n int isoCounter = 0;\n int MAX_ISOCHRONES = 400;\n int SKIPPING_COUNT = list.size() / MAX_ISOCHRONES + 1;\n for (ArrayList<Star> isochrone : list) {\n isoCounter++;\n\n if (isoCounter % SKIPPING_...
[ "0.61147636", "0.6096034", "0.5726157", "0.57235247", "0.56197727", "0.55852616", "0.55293185", "0.5443821", "0.54153776", "0.5393939", "0.5390276", "0.53707784", "0.53517425", "0.5307535", "0.5306781", "0.53053916", "0.5302831", "0.5292519", "0.526061", "0.52570885", "0.5233...
0.60838336
2
Handle a new tick
public void handleNewTick(final BitfinexTickerSymbol currencyPair, final BitfinexTick tick) { synchronized (lastTick) { lastTick.put(currencyPair, tick); lastTickTimestamp.put(currencyPair, System.currentTimeMillis()); } tickerCallbacks.handleEvent(currencyPair, tick); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tick() {\r\n }", "public void tick() {\n\t}", "public void tick() {\n\t}", "protected abstract void tick();", "public void tick() {\r\n tick++;\r\n }", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tick() {\n\t\t\r\n\t}", "@Override\n\tpublic...
[ "0.7747767", "0.76781917", "0.76781917", "0.76431495", "0.7617846", "0.76048255", "0.76048255", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.7494305", "0.74939644", "0.74742496", "0.7454437", "0.7422855", "0.74099535", "0.7396583", "0.73965...
0.6939017
33
Register a new candlestick callback
public void registerCandlestickCallback(final BitfinexCandlestickSymbol symbol, final BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException { candleCallbacks.registerCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) {\n\t\t\n\t\tsynchronized (lastTick) {\n\t\t\tlastTick.put(currencyPair, tick);\n\t\t\tlastTickTimestamp.put(currencyPair, System.currentTimeMillis());\n\t\t}\n\t\t\n\t\tcandleCallbacks.handleEvent(currencyPair,...
[ "0.63930833", "0.6150585", "0.5877286", "0.5625623", "0.5571117", "0.55417824", "0.5521258", "0.5407095", "0.5271131", "0.52508783", "0.52490425", "0.52391213", "0.5180217", "0.5086798", "0.5086552", "0.5084306", "0.5057405", "0.5027935", "0.49913907", "0.49768236", "0.496022...
0.72646624
0
Remove the a candlestick callback
public boolean removeCandlestickCallback(final BitfinexCandlestickSymbol symbol, final BiConsumer<BitfinexCandlestickSymbol, BitfinexTick> callback) throws APIException { return candleCallbacks.removeCallback(symbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }", "public boolean removeTickCallback(final BitfinexTickerSymbol symbol, \n\t\t\tfinal BiConsumer<BitfinexTickerSymbol, BitfinexTick> callback) throws APIException {\n\t\t\n\t\treturn tickerCallback...
[ "0.6412099", "0.59908307", "0.59476537", "0.5915005", "0.57888126", "0.5786033", "0.57707167", "0.5756887", "0.5754537", "0.57027817", "0.5628704", "0.5613855", "0.55823433", "0.558137", "0.55460745", "0.5542916", "0.55426514", "0.5534133", "0.5533953", "0.5528448", "0.552352...
0.6582518
0
Process a list with candlesticks
public void handleCandlestickList(final BitfinexCandlestickSymbol symbol, final List<BitfinexTick> ticksBuffer) { candleCallbacks.handleEventsList(symbol, ticksBuffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addIsochronesToChart(ArrayList<ArrayList<Star>> list) {\n int isoCounter = 0;\n int MAX_ISOCHRONES = 400;\n int SKIPPING_COUNT = list.size() / MAX_ISOCHRONES + 1;\n for (ArrayList<Star> isochrone : list) {\n isoCounter++;\n\n if (isoCounter % SKIPPING_...
[ "0.610655", "0.57495916", "0.55582285", "0.546075", "0.5440791", "0.5433714", "0.5418134", "0.5221096", "0.5182995", "0.51789105", "0.5154544", "0.51254946", "0.5092494", "0.508589", "0.5081988", "0.5050682", "0.5044552", "0.5031104", "0.5025828", "0.50187755", "0.5015271", ...
0.65429413
0
Handle a new candlestick
public void handleNewCandlestick(final BitfinexCandlestickSymbol currencyPair, final BitfinexTick tick) { synchronized (lastTick) { lastTick.put(currencyPair, tick); lastTickTimestamp.put(currencyPair, System.currentTimeMillis()); } candleCallbacks.handleEvent(currencyPair, tick); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(Candle candle) {\n\t\t\n\t}", "public Candle createCandle(String type) {\n\t\tCandle candle = null;\n\t\t\n\t\tif (type.equals(\"jarCandle\")) {\n\t\t\tcandle = new JarCandle();\n\t\t} else if (type.equals(\"freeStandingCandle\")){\n\t\t\tcandle = new FreeStandingCandle();\n\t\t}\n...
[ "0.63442427", "0.5826768", "0.562042", "0.55568093", "0.5392971", "0.5383517", "0.530117", "0.5163708", "0.504933", "0.49612027", "0.49038863", "0.48911878", "0.4868232", "0.48467278", "0.48281753", "0.48125437", "0.4797989", "0.47538188", "0.4749103", "0.4741742", "0.4703499...
0.7034306
0
Subscribe candles for a symbol
public void subscribeCandles(final BitfinexCandlestickSymbol symbol) { final SubscribeCandlesCommand command = new SubscribeCandlesCommand(symbol); bitfinexApiBroker.sendCommand(command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSubscribedSymbol(String symbol) {\n\t\tunrecoginzedSymbols.put(symbol, System.currentTimeMillis());\n\t}", "public interface CandlestickCollector {\n Candlestick collectCandlestick(String symbolPair, String timeFrame);\n}", "private void startAggTradesEventStreaming(String symbol) {\r\n\t\tBi...
[ "0.6351371", "0.59177667", "0.57089406", "0.5523533", "0.5455521", "0.54537284", "0.5416309", "0.5404525", "0.53952664", "0.53049326", "0.52986985", "0.5257204", "0.5226686", "0.51891106", "0.5176374", "0.51622546", "0.5123582", "0.51060194", "0.5025521", "0.5023767", "0.5004...
0.8352372
0
Register a new executed trade callback
public void registerExecutedTradeCallback(final BitfinexExecutedTradeSymbol orderbookConfiguration, final BiConsumer<BitfinexExecutedTradeSymbol, ExecutedTrade> callback) throws APIException { tradesCallbacks.registerCallback(orderbookConfiguration, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onTrade(Trade trade) throws Exception {\n\t\t\r\n\t}", "public static void registerCallbackHandler(com.sybase.persistence.CallbackHandler handler)\n {\n DELEGATE.registerCallbackHandler(handler);\n }", "public void onTrade(Trade event) {\n tradeCount++;\n ...
[ "0.63503385", "0.6029472", "0.57348514", "0.57207286", "0.56795496", "0.567577", "0.5655272", "0.56041986", "0.5549428", "0.54818416", "0.5443938", "0.5429298", "0.5357445", "0.53384554", "0.5297455", "0.52712244", "0.52614063", "0.5219087", "0.5209897", "0.51927054", "0.5178...
0.6219222
1
Remove a executed trade callback
public boolean removeExecutedTradeCallback(final BitfinexExecutedTradeSymbol tradeSymbol, final BiConsumer<BitfinexExecutedTradeSymbol, ExecutedTrade> callback) throws APIException { return tradesCallbacks.removeCallback(tradeSymbol, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }", "public void removeCallback(EventCallback<T> callback) {\n callbacks.remove(callback);\n }", "@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n ...
[ "0.65809065", "0.61123484", "0.5955383", "0.5946569", "0.58393383", "0.5771419", "0.5759206", "0.57476366", "0.5740284", "0.5668382", "0.5648047", "0.562884", "0.56287366", "0.5621541", "0.561736", "0.5600223", "0.5593667", "0.5579935", "0.5548889", "0.55427593", "0.55131084"...
0.64110696
1
Subscribe a executed trade channel
public void subscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) { final SubscribeTradesCommand subscribeOrderbookCommand = new SubscribeTradesCommand(tradeSymbol); bitfinexApiBroker.sendCommand(subscribeOrderbookCommand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void subscribe(Player player);", "@Override\n public void onSubscribe(String channel, int subscribedChannels) {\n System.out.println(\"Client is Subscribed to channel : \"+ channel);\n }", "public Subscription subscribeForDistributorDeliveries(ClockListener list...
[ "0.637545", "0.62522274", "0.6106475", "0.60488546", "0.60337645", "0.59899217", "0.58839774", "0.58789265", "0.58458006", "0.5751657", "0.5721923", "0.5705675", "0.56942856", "0.5672796", "0.56701416", "0.56159705", "0.55830973", "0.55743253", "0.5498347", "0.54739034", "0.5...
0.67206943
0
Unsubscribe a executed trades channel
public void unsubscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) { final int channel = bitfinexApiBroker.getChannelForSymbol(tradeSymbol); if(channel == -1) { throw new IllegalArgumentException("Unknown symbol: " + tradeSymbol); } final UnsubscribeChannelCommand command = new Uns...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onUnsubscribe(String channel, int subscribedChannels) {\n super.onUnsubscribe(channel, subscribedChannels);\n System.out.println(\"Channel unsubscribed at : \" + channel);\n }", "public void unsubscribe(ClientAddress addr...
[ "0.68692285", "0.6834892", "0.6705573", "0.659147", "0.65191704", "0.6515372", "0.6451663", "0.6324014", "0.62848294", "0.62575537", "0.6231198", "0.61890835", "0.6144049", "0.6121692", "0.61128616", "0.6080996", "0.6078775", "0.6073299", "0.60606855", "0.6032352", "0.601139"...
0.74625343
0
Handle a new executed trade
public void handleExecutedTradeEntry(final BitfinexExecutedTradeSymbol tradeSymbol, final ExecutedTrade entry) { tradesCallbacks.handleEvent(tradeSymbol, entry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onTrade(Trade trade) throws Exception {\n\t\t\r\n\t}", "@Override\r\n\tpublic void saveASNew(Trade trade) {\n\t\ttradeid.setText(new Integer(trade.getId()).toString());\r\n\t\ttradestatus.setText(trade.getStatus());\r\n\t\tactionstatus.removeAllElements();\r\n\t\t\r\n\t//\tprocessActio...
[ "0.7090677", "0.67505515", "0.6435194", "0.6400208", "0.63061285", "0.6262683", "0.62363416", "0.6117755", "0.5917968", "0.5805658", "0.5788369", "0.5748778", "0.57441884", "0.5696448", "0.569186", "0.56672853", "0.5662553", "0.56482697", "0.56368256", "0.5616593", "0.5615435...
0.5939472
8
Creates new form NewJFrame
public NewJFrame() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewJFrame() {\n Connect();\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "public NewJFrame() {\n ...
[ "0.796484", "0.7945892", "0.79161865", "0.78647804", "0.7763172", "0.76817715", "0.7648401", "0.75705475", "0.7474783", "0.7441117", "0.7441071", "0.7381736", "0.7241864", "0.7152069", "0.71234715", "0.7093774", "0.70620316", "0.7046038", "0.7001353", "0.6876144", "0.68730295...
0.7931828
8
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel7 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jTabbedP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.6945...
0.0
-1
Score a square matrix of final hands. Evaluates all possible pairs except the diagonal; returns the sum of first against second. NOTE: These must be in the same order, that is, first[i] and second[i] each contain the same final card for each i.
int score(OfcHandMatrix matrix);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int stoneGameII(int[] piles) {\n int n = piles.length;\n memo = new int[n][n];\n sums = new int[n];\n sums[n-1] = piles[n-1];\n for(int i = n -2; i>=0;i--) {\n sums[i] = sums[i+1] + piles[i]; //the sum from piles[i] to the end\n }\n int score = he...
[ "0.5825692", "0.5698206", "0.5447694", "0.5344034", "0.5336705", "0.53269416", "0.5288192", "0.52861494", "0.52594906", "0.52244526", "0.52198553", "0.5181286", "0.51602674", "0.5155257", "0.5154617", "0.51385456", "0.5108851", "0.5082835", "0.50759053", "0.5053871", "0.50502...
0.5558696
2
NOTE: actually never mind, these must be the same. Don't mess with this
public String getKey() { return getCacheFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void...
[ "0.56367296", "0.5419299", "0.5401485", "0.5393026", "0.52620876", "0.5261317", "0.52525395", "0.5155126", "0.51161397", "0.5112078", "0.50971144", "0.50820607", "0.5072888", "0.5064829", "0.5063029", "0.5061489", "0.5041713", "0.50390923", "0.50291806", "0.5027162", "0.50047...
0.0
-1
Base royalty value use for back, or multiply by 2 for middle.
public final int get5CardRoyaltyValue(int player, int hand, OfcHandMatrix matrix) { int total = 0; int count = 0; count = matrix.numHandsOfRank(player, hand, StupidEval.STRAIGHT); if (count == 0) return total; total += 2 * count; // straight = 2 count = matrix.numHandsOfRank(player...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public double getBaseCost() {\n return BASE_COST;\n }", "@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n ...
[ "0.6572446", "0.6259477", "0.62445694", "0.6238806", "0.6231125", "0.6207034", "0.61568815", "0.61230093", "0.6060842", "0.60584474", "0.60336363", "0.5965375", "0.5965375", "0.5944571", "0.5923856", "0.59187096", "0.59073323", "0.59061784", "0.5871933", "0.58712435", "0.5844...
0.0
-1
instantiate a TaxOffice object
public static void main(String[] args) { TaxOffice tallinnOffice = new TaxOffice(); System.out.println(tallinnOffice.getTaxRate()); // we have to limit access to taxRate // defined taxRate as private // provided getter method for reading its value tallin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PostOffice() {\n }", "public Smart_officeFactoryImpl() {\n\t\tsuper();\n\t}", "public ISalesTax getTaxObject();", "public EasytaxTaxations() {\n this(\"easytax_taxations\", null);\n }", "Foco createFoco();", "public com.vodafone.global.er.decoupling.binding.request.TaxType createTaxType...
[ "0.64497566", "0.6188354", "0.6061615", "0.59404653", "0.58851856", "0.58810395", "0.572219", "0.56963205", "0.56536955", "0.55161107", "0.5446165", "0.5398174", "0.5332733", "0.5332597", "0.532768", "0.53207564", "0.53180134", "0.5270175", "0.52483344", "0.52348316", "0.5206...
0.5403691
11
Creates new content title
public ContentTitle createContentTitle(String language, String value, Content content) { return contentTitleDAO.create(language, value, content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }", "public void setTitle(String titleTemplate);", "TITLE createTITLE();", "public void setTitle(String title) { this.title = title; }", "private String addTitle(StringBuilder finalText) {\n\t\t// One Para...
[ "0.7549879", "0.7294628", "0.6993876", "0.69935054", "0.6979596", "0.6970039", "0.69380915", "0.69366914", "0.6930008", "0.6930008", "0.6930008", "0.6901374", "0.68580383", "0.68578416", "0.68105584", "0.67811406", "0.67782986", "0.6775645", "0.6774353", "0.6774353", "0.67743...
0.7033015
2
Creates new content content
public ContentData createContentData(String language, String value, Content content) { return contentDataDAO.create(language, value, content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Content createContent();", "abstract public Content createContent();", "protected abstract Content newContent();", "protected void createContents() {\n\n\t}", "public abstract String getNewContent();", "public String createContent(String spaceId, String contentId);", "public com.walgreens.rxit.c...
[ "0.83580136", "0.79715306", "0.7968385", "0.7584083", "0.7103119", "0.6786911", "0.67328864", "0.6669257", "0.64251524", "0.6308039", "0.62588257", "0.6251603", "0.6241577", "0.6220137", "0.6091411", "0.6065729", "0.6056179", "0.60413206", "0.6032642", "0.59946454", "0.598610...
0.5723476
64
Finds content with contentId
public Content findContentById(Long contentId) { return contentDAO.findById(contentId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserContent findContentById(@Param(\"contentUid\") long contentUid);", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotF...
[ "0.72715807", "0.6946184", "0.6945614", "0.65661573", "0.64910465", "0.64877886", "0.64357203", "0.6401637", "0.6232019", "0.6189105", "0.6176879", "0.6175351", "0.613291", "0.6121633", "0.60757816", "0.60748935", "0.6000212", "0.59728116", "0.5949413", "0.58392674", "0.58045...
0.7547005
0
Finds content with origin id
public Content findContentByOriginId(String originId) { return contentDAO.findByOriginId(originId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserContent findContentById(@Param(\"contentUid\") long contentUid);", "public Optional<Content> findContentById(Integer contentID){\n\n Optional<Content> content = contentRepository.findById(contentID);\n\n if(content.isPresent()){\n return content;\n }\n throw new HubNotF...
[ "0.58875245", "0.5791549", "0.5703001", "0.56610817", "0.5529834", "0.548873", "0.54435784", "0.5434778", "0.54215807", "0.53761166", "0.52679974", "0.5179149", "0.5178427", "0.51698655", "0.51313496", "0.51237905", "0.51065195", "0.50885606", "0.5069672", "0.5061355", "0.503...
0.732545
0
List contents optionally filtered by parent, type, firsresults and/or max results
public List<Content> listContents(Content parent, List<ContentType> types, Integer firstResult, Integer maxResults) { return contentDAO.listByParentAndTypesAndArchived(parent, types, Boolean.FALSE, firstResult, maxResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultMap<BaseNode> listChildren(Pagination pagination);", "public List<Content> listRootContents(List<ContentType> types, Integer firstResult, Integer maxResults) { \n return contentDAO.listByNullParentAndTypesAndArchived(types, Boolean.FALSE, firstResult, maxResults);\n }", "Results getResultsPage...
[ "0.58739674", "0.5844292", "0.57218343", "0.56493264", "0.5611232", "0.55338335", "0.55242974", "0.548885", "0.5472217", "0.5457452", "0.53972065", "0.5389486", "0.5193801", "0.5170238", "0.5167961", "0.51473707", "0.5107472", "0.50975806", "0.50959784", "0.5085141", "0.50845...
0.6156387
0
List root contents, optionally filtered by type, first result and max results
public List<Content> listRootContents(List<ContentType> types, Integer firstResult, Integer maxResults) { return contentDAO.listByNullParentAndTypesAndArchived(types, Boolean.FALSE, firstResult, maxResults); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Content> listContents(Content parent, List<ContentType> types, Integer firstResult, Integer maxResults) {\n return contentDAO.listByParentAndTypesAndArchived(parent, types, Boolean.FALSE, firstResult, maxResults);\n }", "java.util.List<entities.Torrent.NodeSearchResult>\n getResultsList();...
[ "0.5926171", "0.5860174", "0.58484304", "0.5835814", "0.5634566", "0.5630298", "0.5522109", "0.5386247", "0.5280986", "0.52781945", "0.523231", "0.5229175", "0.5211695", "0.5193879", "0.51725537", "0.51681864", "0.51661265", "0.51614743", "0.5158755", "0.51504946", "0.5150184...
0.69893974
0
Filters content by category slug
public List<Content> filterByCategorySlug(List<Content> contents, String categorySlug) { return contents .stream() .filter(content -> content.getCategory().equals(categorySlug)) .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/filterAdminSide\")\n public List<BannerDTO> filterByCategory(@RequestParam(\"category\") String categoryName){\n return bannerService.findAllByCategory(categoryName);\n }", "@Override\n\tpublic List<Literature> searchCategory(String category) {\n\t\treturn null;\n\t}", "private void...
[ "0.5676467", "0.53262633", "0.5281431", "0.52104205", "0.51214474", "0.51173526", "0.5115744", "0.51128644", "0.5097522", "0.5073411", "0.50554657", "0.49446362", "0.49275443", "0.49275443", "0.4882224", "0.48694348", "0.48618084", "0.484928", "0.48492527", "0.48454618", "0.4...
0.73598886
0
Lists content titles by content
public List<ContentTitle> listContentTitlesByContent(Content content) { return contentTitleDAO.listByContent(content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String listTitle();", "public abstract List<String> getContent( );", "@Override\n\tpublic List<Object> searchTitleContentList(String searchVar, int pageNo) {\n\t\tBoardVO vo = new BoardVO(searchVar,searchVar,pageNo);\n\t\treturn template.selectList(\"board.searchTitleContentList\",vo);\n\t}", "public ...
[ "0.64923805", "0.6181383", "0.6140776", "0.5952848", "0.5935613", "0.5864366", "0.58330524", "0.577091", "0.5766931", "0.5766931", "0.5766931", "0.5766931", "0.5766931", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255054", "0.57255...
0.75404716
0
Lists content content by content in all available languages
public List<ContentData> listContentDataByContent(Content content) { return contentDataDAO.listByContent(content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Language> getAll();", "@Override\n public String getContentLang() {\n return \"en\";\n }", "List<Language> findAll();", "public ArrayList<Book> getListBooklanguage(String laguage);", "public List<PageContent> getAllPageContent();", "@PermitAll\n @Override\n public List<Language> getLangua...
[ "0.6701373", "0.6172511", "0.6165597", "0.6054917", "0.60530925", "0.60014415", "0.59606457", "0.59209895", "0.58235335", "0.5739104", "0.5716091", "0.56936306", "0.5686238", "0.5601398", "0.55524474", "0.55519885", "0.5533608", "0.55332476", "0.55287296", "0.55240256", "0.55...
0.5214615
41
Finds content image metadata by imageId and content
public ContentImageMeta findContentImageMetaByIdAndContent(Long imageId, Content content) { return contentImageMetaDAO.findByIdAndContent(imageId, content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ImageContentData findContentData(String imageId);", "public ContentImageData findContentImageDatabyContentImageMeta(ContentImageMeta contentImageMeta) {\n return contentImageDataDAO.findByContentImageMeta(contentImageMeta);\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHan...
[ "0.8116066", "0.6467489", "0.6448796", "0.63160354", "0.62916154", "0.6235458", "0.6200222", "0.6182089", "0.595357", "0.5950213", "0.5645259", "0.5624444", "0.55663806", "0.54990244", "0.54886305", "0.5481693", "0.54532355", "0.54223275", "0.5335167", "0.5317409", "0.5298319...
0.7644686
1
Finds content images data with image metadata
public ContentImageData findContentImageDatabyContentImageMeta(ContentImageMeta contentImageMeta) { return contentImageDataDAO.findByContentImageMeta(contentImageMeta); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ImageContentData findContentData(String imageId);", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransfo...
[ "0.718179", "0.6723135", "0.6689388", "0.66375303", "0.6607423", "0.62004995", "0.6112258", "0.6073198", "0.6044367", "0.5977704", "0.597671", "0.59594744", "0.59444165", "0.59314287", "0.5897156", "0.58901453", "0.58249927", "0.5785783", "0.57530195", "0.5721371", "0.5691559...
0.6123573
6
List content image metadatas by content or by content and type
public List<ContentImageMeta> listContentImageMetaByContentFilterByType(Content content, String type) { if (type == null) { return contentImageMetaDAO.listByContent(content); } return contentImageMetaDAO.listByContentAndType(content, type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index);", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByHandlerList();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "java.util.List<? extends com.yahoo...
[ "0.6162841", "0.6140021", "0.61014956", "0.60520154", "0.6027209", "0.60037565", "0.5989634", "0.59575", "0.59383595", "0.58700496", "0.5769392", "0.57564735", "0.5651216", "0.55990404", "0.5578359", "0.5558569", "0.5520445", "0.5514604", "0.55005634", "0.54412806", "0.524901...
0.7880705
0
Lists non archived origin ids by contentType and origin
public List<String> listOriginIds(ContentType contentType, String origin) { return contentDAO.listOriginIdsByContentTypeOriginAndArchived(contentType, origin, Boolean.FALSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<OriginEntryFull> getGeneratedOriginEntries();", "public Content findContentByOriginId(String originId) {\n return contentDAO.findByOriginId(originId);\n }", "public void setOriginType(String originType) {\n this.originType = originType;\n }", "Origins(String origin){\n\t\tt...
[ "0.54699856", "0.54544973", "0.54107106", "0.51173294", "0.5085098", "0.5056006", "0.5044765", "0.50022995", "0.49708343", "0.49351993", "0.49351993", "0.48785332", "0.4863125", "0.48565733", "0.47048822", "0.46860388", "0.46100786", "0.45887822", "0.45855194", "0.4568501", "...
0.7746285
0
TODO Autogenerated method stub
public static void main(String[] args) { int number=123,reverse=0; while(number!=0) { int remainder=number%10; reverse=reverse*10+remainder; number=number/10; } System.out.println("The reverse of the given number is:" +reverse); }
{ "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
ElMayorCucapah.cat start: 01012010 end: 12092010
public static void main(String[] args) { Catalog catOut = null; try { File in = new File("tmp/cat_gen/El-Mayor-Cucapah.cat"); File out = new File("tmp/cat_gen/El-Mayor-Cucapah_Mgt3.js"); MutableCatalog cat = new MutableCatalog(in, new Reader_SCEDC(20000)); System.out.println(" Source Size: " + cat.size...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n int i =2003;\n long d = 13220100526L;\n System.out.println(new Date(d));\n System.out.println(i / 20 + (i % 20 > 0 ? 1 : 0));\n }", "public void visitCAT( DevCat devCat ) {}", "@Override public void map( Chunk c, NewChunk nc ) {\n ...
[ "0.5087139", "0.50498194", "0.49376902", "0.49376902", "0.48692864", "0.4846383", "0.48227918", "0.47974437", "0.47970673", "0.47805473", "0.47142902", "0.47135204", "0.47125924", "0.46995422", "0.46821272", "0.46710837", "0.46627665", "0.4657533", "0.46403107", "0.46305665", ...
0.5331968
0
/ Container lifecycle callbacks from SessionBean interface
public void ejbActivate() { System.out.println("ejbActivate"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface BeanInitListener {\n void initialize();\n}", "void sessionCreated(SessionEvent se);", "@Override\r\npublic void sessionCreated(HttpSessionEvent arg0) {\n\t\r\n}", "public void contextInitialized(ServletContextEvent event) { \n super.contextInitialized(event); \n Applicatio...
[ "0.66691077", "0.6360668", "0.62641174", "0.62082565", "0.61866385", "0.6115214", "0.6097885", "0.6088028", "0.6084961", "0.60791373", "0.6076908", "0.60579383", "0.603728", "0.60302436", "0.60252535", "0.6023796", "0.6004116", "0.5991277", "0.5947972", "0.5944562", "0.593354...
0.0
-1
/ Container lifecycle callback from home interface (Stateless EJB must have only this)
public void ejbCreate() { System.out.println("ejbCreate"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void lifeCycle();", "@Override\n\tLifecycle on();", "public interface LifeCycleHandler {\n\n\tvoid beginning() throws Exception;\n\n\tvoid ending() throws Exception;\n\n}", "public abstract void onContainerStopped(ContainerId containerId);", "void onEvent(GuiceyLifecycleEvent event);", "E...
[ "0.64545864", "0.6403073", "0.63612926", "0.6311018", "0.6206444", "0.6088547", "0.6027306", "0.60143155", "0.59744143", "0.59744143", "0.59744143", "0.59744143", "0.59744143", "0.59744143", "0.59706527", "0.5964959", "0.5962467", "0.5955818", "0.5955818", "0.5948596", "0.588...
0.0
-1
TODO Autogenerated method stub
@Transactional public void delete(ComplaintVO complaintVO) { complaintDAO.delete(complaintVO); }
{ "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: Let min, max value of a specific type be a part of definition of Type may be much better.By doing that, We would be able to abstract code in this block to a method.
private Expr process(Type type, long rightValue, long min, long max, Expr expr, Expr childOfCast) throws AnalysisException { // TODO: We could do constant folding here. if (rightValue < min || rightValue > max) { return expr; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}", "public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}", "public void MakeRep(int type, int min, int max)\n\t{\n\t\t_type += ...
[ "0.6798772", "0.6721411", "0.618273", "0.59548414", "0.5824804", "0.57246524", "0.5653693", "0.5581012", "0.55732137", "0.5554075", "0.5520936", "0.5495913", "0.54950416", "0.5493575", "0.54493546", "0.5444922", "0.5442243", "0.54060173", "0.5398136", "0.53694326", "0.5360627...
0.54722077
14
Is not supported by RefactoringMiner yet
@Override public RefactoringInfo specify(Refactoring refactoring, RefactoringInfo info) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Refactoring createRefactoring();", "protected abstract Refactoring createRefactoring();", "public Problem prepare(RefactoringElementsBag refactoringElements) {\n if (semafor.get() != null) {\n return null;\n }\n semafor.set(new Object());\n try {\n ...
[ "0.65831226", "0.65831226", "0.5901177", "0.5890599", "0.58077073", "0.5760844", "0.56282866", "0.56282866", "0.55874276", "0.55874276", "0.5557312", "0.5557312", "0.5532849", "0.55295205", "0.55295205", "0.55120337", "0.5504304", "0.5504304", "0.54805696", "0.5470952", "0.54...
0.52461606
40
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_privacy_politic, container, false); unbinder = ButterKnife.bind(this, view); setTexto(); return view; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Metodo para cambiar el texto
private void setTexto() { textViewPolitica.setText(Html.fromHtml(politica)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void txt() {\n\n\t}", "String getToText();", "public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String ...
[ "0.6957875", "0.6623323", "0.6538857", "0.64835554", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.6433522", "0.64099324", "0.6370774", "0.63410324", "0.6332441", "0.6315632", "0.6297714", "0.62586457", "0.62586457", "0.62586457...
0.0
-1
void hitBlock(GVector2f scale, int damage);
default void onHitPlayer(@NotNull String name, int damage) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}", "@Override\n public void hit(int ...
[ "0.68639195", "0.68639195", "0.68639195", "0.68234295", "0.6731923", "0.6686967", "0.6686967", "0.6636251", "0.64063007", "0.6391076", "0.6361029", "0.6334267", "0.62992597", "0.6290544", "0.6258954", "0.62255526", "0.6200185", "0.6193539", "0.6158172", "0.6150212", "0.613714...
0.5939458
34
Tato funkcia sa vola pri presusenie hry aby sa dalo ostatnym hracom vediet ze bola hra prerusena
void setCloseConnection();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void orina() {\n System.out.println(\"Que bien m...
[ "0.6696462", "0.6495379", "0.6425535", "0.6406178", "0.62808186", "0.6275628", "0.6273064", "0.6231423", "0.62275296", "0.6198841", "0.6197375", "0.6162817", "0.616114", "0.6159761", "0.6155713", "0.61511075", "0.61501175", "0.61354995", "0.6130652", "0.6126044", "0.61092204"...
0.0
-1
verbose:gc Xms300M Xmx300M Xss1M XX:+UseSerialGC XX:+PrintGCDetails XX:+PrintGCDateStamps XX:InitialHeapSize=314572800 XX:MaxHeapSize=314572799 Xss1M XX:+UseSerialGC XX:+PrintGCDetails
public static void main(String[] args) { for(int i=0;i<200000000;i++){ test(); if(i == 9 || i == 19){ Runtime.getRuntime().gc(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tRuntime rt = Runtime.getRuntime();\n\t\n\tSystem.out.println(\"Available Free Memory: \" + rt.freeMemory());\n\t\n\tfor(int i=0; i<10000; i++ ) {\n\tGC1 x = new GC1(i);\n\t}\n\n\tSystem.out.println(\"Free Memory before call to gc(): \" +rt.freeMemory());\n\tSystem.runFin...
[ "0.6814655", "0.66230756", "0.65885574", "0.65472203", "0.6325013", "0.6264202", "0.62365824", "0.6230103", "0.6110051", "0.60697293", "0.60516113", "0.6011595", "0.60076344", "0.59897816", "0.5988785", "0.59844524", "0.59181523", "0.5858513", "0.5791678", "0.5759726", "0.572...
0.5536803
25
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); combo = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73213893", "0.72913563", "0.72913563", "0.72913563", "0.7286415", "0.724936", "0.72132975", "0.72076875", "0.71963966", "0.7190991", "0.7184836", "0.71593595", "0.71489584", "0.709429", "0.7080468", "0.70567", "0.6987573", "0.69780385", "0.69556123", "0.69538146", "0.69455...
0.0
-1
GENFIRST:event_btn_ReturnActionPerformed TODO add your handling code here:
private void btn_ReturnActionPerformed(java.awt.event.ActionEvent evt) { Filight_Details FD = new Filight_Details(); FD.setVisible(true); this.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void keyPressed(KeyEvent e) {\n int key;\n key = e.getKeyCode();\n if(key == KeyEvent.VK_ENTER){\n if(e.getSource().toString().contains(\"Return\")){\n try{\n // System.out.println(\"walal\");\n if(\"\".equals(issueReturnV...
[ "0.7255962", "0.72538877", "0.72393316", "0.6961143", "0.69024354", "0.6803738", "0.6801007", "0.6781234", "0.67586356", "0.6756985", "0.66935563", "0.66832256", "0.6657512", "0.66453826", "0.6622331", "0.6598139", "0.6574769", "0.6570583", "0.6567137", "0.6563895", "0.656257...
0.6164435
90
Cria um validador com uma mensagem geral vazia.
public Validador() { this.msgGeral = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Validador(String msgGeral) {\n this.msgGeral = msgGeral + \": \";\n }", "private Validador() {\r\n }", "private ValidationError() {\n }", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.set...
[ "0.6857255", "0.6665864", "0.6201551", "0.60978514", "0.604538", "0.5988796", "0.5984059", "0.5856381", "0.57916325", "0.572916", "0.569138", "0.5660189", "0.5626628", "0.5617347", "0.561272", "0.5534841", "0.55294424", "0.5526024", "0.5525048", "0.5507096", "0.5506766", "0...
0.75184095
0
Cria um validador com uma mensagem geral passada como parametro.
public Validador(String msgGeral) { this.msgGeral = msgGeral + ": "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Validador() {\n this.msgGeral = \"\";\n }", "private Validador() {\r\n }", "public Validacion(String descripcion) {\n super(descripcion);\n }", "public ValidationMessage() {\n }", "void validateActivoCreate(Activo activo);", "void AlertaValidacion(String title, String message){...
[ "0.7182677", "0.63996524", "0.60570616", "0.60220337", "0.6016797", "0.5970686", "0.59143966", "0.5792211", "0.57846624", "0.5784161", "0.57706213", "0.5758053", "0.57426906", "0.56973577", "0.56702334", "0.5640074", "0.56057966", "0.56008804", "0.558807", "0.55760384", "0.55...
0.6934749
1
Verifica se o parametro eh nulo. Se for lanca um erro com a mensagem passada.
public void verificaNulo(Object parametro, String mensagem) { if (parametro == null) { throw new NullPointerException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaStringVazia(String parametro, String mensagem) {\n if (parametro.trim().isEmpty()) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void verificaInteiroNegativo(int parametro, String mensagem) {\n if (parametro < 0) {\n throw new IllegalA...
[ "0.67316705", "0.66154635", "0.6507646", "0.6487178", "0.6375387", "0.6198602", "0.6175052", "0.6174003", "0.6143704", "0.6107341", "0.6101536", "0.6036875", "0.60352194", "0.6013773", "0.6013773", "0.6003254", "0.59595394", "0.5950606", "0.59045255", "0.589227", "0.5802587",...
0.7084431
0
Verifica se a string eh vazia. Se for lanca um erro com a mensagem passada.
public void verificaStringVazia(String parametro, String mensagem) { if (parametro.trim().isEmpty()) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaStringNulaOuVazia(String parametro, String mensagem) {\n verificaNulo(parametro, mensagem);\n verificaStringVazia(parametro, mensagem);\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() {\n Util.checkS...
[ "0.6923225", "0.65725744", "0.65725744", "0.63950324", "0.6103774", "0.6097375", "0.6069514", "0.60482824", "0.60229677", "0.596474", "0.59488136", "0.5938211", "0.5938211", "0.5887017", "0.5883698", "0.58548844", "0.5848072", "0.58451086", "0.5830031", "0.582974", "0.5826235...
0.7030801
0
Verifica se a string eh vazia ou nula. Se for lanca um erro com a mensagem passada.
public void verificaStringNulaOuVazia(String parametro, String mensagem) { verificaNulo(parametro, mensagem); verificaStringVazia(parametro, mensagem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaStringVazia(String parametro, String mensagem) {\n if (parametro.trim().isEmpty()) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() ...
[ "0.68880504", "0.6712616", "0.6712616", "0.6687217", "0.6654941", "0.64992774", "0.6419269", "0.6418627", "0.6399831", "0.6222465", "0.62218374", "0.61667156", "0.61602014", "0.61470634", "0.61470634", "0.6144496", "0.6132341", "0.6116774", "0.60979235", "0.6028006", "0.60007...
0.711638
0
Verifica se o parametro eh um inteiro negativo. Se for, lanca um erro com a mensagem passada.
public void verificaInteiroNegativo(int parametro, String mensagem) { if (parametro < 0) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaInteiroMaiorQueZero(int parametro, String mensagem) {\n if (parametro <= 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Cons...
[ "0.69462395", "0.61316", "0.6088088", "0.5960555", "0.5952524", "0.5934911", "0.59276414", "0.5853924", "0.56770766", "0.56514746", "0.5631914", "0.552959", "0.5529408", "0.5485018", "0.5435773", "0.54228467", "0.53876024", "0.53817266", "0.53740877", "0.5369953", "0.53675044...
0.79988897
0
Verifica se o inteiro passado eh maior que zero. Se for, lanca um erro com a mensagem passada.
public void verificaInteiroMaiorQueZero(int parametro, String mensagem) { if (parametro <= 0) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaInteiroNegativo(int parametro, String mensagem) {\n if (parametro < 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj...
[ "0.6769921", "0.6393826", "0.6345837", "0.6290215", "0.5952778", "0.595081", "0.5884153", "0.5845087", "0.5813885", "0.5811954", "0.57944995", "0.57857305", "0.57644975", "0.5763043", "0.5743737", "0.5702283", "0.562739", "0.55920863", "0.5578951", "0.5558609", "0.5557244", ...
0.7154615
0
Verifica se um mapa contem a chave passada. Se tiver, lanca um erro com a mensagem passada.
public void verificaContem(Object chave, Map<?, ?> mapa, String mensagem) { if (mapa.containsKey(chave)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaNaoContem(Object chave, Map<?, ?> mapa, String mensagem) {\n if (!mapa.containsKey(chave)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y <...
[ "0.64621973", "0.55255455", "0.5410476", "0.53024167", "0.5278165", "0.52178997", "0.52076524", "0.51680076", "0.51613253", "0.51065236", "0.51029897", "0.509166", "0.5084108", "0.5084108", "0.507646", "0.50566643", "0.50558925", "0.5045119", "0.50291115", "0.5009194", "0.499...
0.6990102
0
Verifica se nao contem a chave no mapa. Se nao tiver, lanca um erro com a mensagem passada.
public void verificaNaoContem(Object chave, Map<?, ?> mapa, String mensagem) { if (!mapa.containsKey(chave)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaContem(Object chave, Map<?, ?> mapa, String mensagem) {\n if (mapa.containsKey(chave)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+...
[ "0.72908217", "0.57202166", "0.5605954", "0.5539856", "0.5503956", "0.53997177", "0.53141236", "0.5311781", "0.5300107", "0.52756745", "0.52735406", "0.5264744", "0.5256259", "0.5251697", "0.52513427", "0.5236532", "0.52092034", "0.5196929", "0.5178811", "0.517862", "0.516427...
0.7004799
1
Verifica se um objeto nao existe num Set. Se nao existir, lanca um erro com a mensagem passada.
public void verificaContem(Object obj, Set<?> set, String mensagem) { if (set.contains(obj)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaNaoContem(Object obj, Set<?> set, String mensagem) {\n if (!set.contains(obj)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public int sizeOfSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp)....
[ "0.6083511", "0.5993349", "0.5725305", "0.5653197", "0.5624254", "0.55827403", "0.5503247", "0.5502513", "0.54844815", "0.54819334", "0.54775596", "0.5457455", "0.539219", "0.5320676", "0.53172344", "0.5298731", "0.5240982", "0.519531", "0.5188959", "0.518781", "0.5182286", ...
0.6174912
0
Verifica se um objeto existe num Set. Se existir, lanca um erro com a mensagem passada.
public void verificaNaoContem(Object obj, Set<?> set, String mensagem) { if (!set.contains(obj)) { throw new IllegalArgumentException(this.msgGeral + mensagem); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaContem(Object obj, Set<?> set, String mensagem) {\n if (set.contains(obj)) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "public int sizeOfSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).size...
[ "0.62260437", "0.5962493", "0.57247853", "0.5698628", "0.5676222", "0.5653869", "0.5611903", "0.55399734", "0.55200005", "0.5507013", "0.5425139", "0.53772724", "0.53328276", "0.53161716", "0.53145003", "0.53137", "0.52765274", "0.5266046", "0.52535975", "0.5243466", "0.52429...
0.61339056
1
polos objekpolos = new polos(); System.out.println(objekpolos.dataString);
public static void main(String[] args) { Siswa objek1 = new Siswa("roby", "A2.1900158","TI"); Siswa objek2 = new Siswa("otong","A2.00001","SI"); objek1.nama="fuad"; objek2.nama="mh ihsan"; System.out.println(objek1.nama); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDataCandidatura(){\n return dataCandidatura;\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public String toString() {\r\n\treturn data;\r\n }", "public String getData() {...
[ "0.6842167", "0.6812194", "0.6802741", "0.6648115", "0.66316324", "0.6541359", "0.6520244", "0.6446612", "0.6436401", "0.6427678", "0.6406123", "0.63920987", "0.6391996", "0.636234", "0.6354876", "0.6345929", "0.6345677", "0.6325662", "0.63200927", "0.63098437", "0.6309317", ...
0.62389445
31
Creates new form Test_GUI
public Test_GUI() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "public GUIForm() { \n initComponents();\n }", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t...
[ "0.707545", "0.7031111", "0.6953872", "0.6942052", "0.6873817", "0.685949", "0.6829192", "0.6789587", "0.6744508", "0.6743821", "0.6726552", "0.66457105", "0.66380066", "0.6634901", "0.66272366", "0.66178536", "0.66178536", "0.66178536", "0.6611468", "0.66060513", "0.6605498"...
0.7612381
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Sepsis)) { return false; } Sepsis other = (Sepsis) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Transform images in the source directory applying transform files from a specific directory.
public boolean exec( final String source_dir, final String target_dir, final String transf_dir) { // Get source file listing final String exts = ".tif.jpg.png.gif.tiff.jpeg.bmp.pgm"; final String[] src_names = new File(source_dir).list(new FilenameFilter() { public boolean accept(File dir, Stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean exec(\n\t\t\tfinal String source_dir, \n\t\t\tfinal String target_dir, \n\t\t\tfinal String transf_dir,\n\t\t\tfinal boolean interpolate) \n\t{\n\t\t// Get source file listing\n\t\tfinal String exts = \".tif.jpg.png.gif.tiff.jpeg.bmp.pgm\";\n\t\tfinal String[] src_names = new File(source_dir)...
[ "0.5830635", "0.5817454", "0.5450687", "0.54119754", "0.5375225", "0.53667825", "0.5323804", "0.5307083", "0.5303102", "0.5294894", "0.52732307", "0.5246289", "0.5195791", "0.51512533", "0.51466745", "0.51404214", "0.5119098", "0.5112208", "0.5059302", "0.50146836", "0.495502...
0.6060715
0
Read coordinate transform from file (generated in Register_Virtual_Stack)
public CoordinateTransform readCoordinateTransform(String filename) { final CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>(); try { final FileReader fr = new FileReader(filename); final BufferedReader br = new BufferedReader(fr); String line = null;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static CoordinateTransform readCoordTransform(String filename) \n\t{\n\t\tfinal CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>();\n\t\ttry \n\t\t{\n\t\t\tfinal FileReader fr = new FileReader(filename);\n\t\t\tfinal BufferedReader br = new BufferedReader(fr);\n\t...
[ "0.69474775", "0.62777257", "0.5760549", "0.55225414", "0.54703885", "0.54644614", "0.5461362", "0.5454338", "0.5454123", "0.5445342", "0.54090935", "0.54085845", "0.5398845", "0.5355612", "0.53327346", "0.5313973", "0.52953756", "0.5261212", "0.52530473", "0.52332026", "0.52...
0.6690353
1
Transform images in the source directory applying transform files from a specific directory.
public static boolean exec( final String source_dir, final String target_dir, final String transf_dir, final boolean interpolate) { // Get source file listing final String exts = ".tif.jpg.png.gif.tiff.jpeg.bmp.pgm"; final String[] src_names = new File(source_dir).list(new FilenameFilter() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean exec(\n\t\t\tfinal String source_dir, \n\t\t\tfinal String target_dir, \n\t\t\tfinal String transf_dir) \n\t{\n\t\t// Get source file listing\n\t\tfinal String exts = \".tif.jpg.png.gif.tiff.jpeg.bmp.pgm\";\n\t\tfinal String[] src_names = new File(source_dir).list(new FilenameFilter() \n\t\t{\n\t\t\...
[ "0.6060715", "0.5817454", "0.5450687", "0.54119754", "0.5375225", "0.53667825", "0.5323804", "0.5307083", "0.5303102", "0.5294894", "0.52732307", "0.5246289", "0.5195791", "0.51512533", "0.51466745", "0.51404214", "0.5119098", "0.5112208", "0.5059302", "0.50146836", "0.495502...
0.5830635
1
Read coordinate transform from file (generated in Register_Virtual_Stack)
static CoordinateTransform readCoordTransform(String filename) { final CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>(); try { final FileReader fr = new FileReader(filename); final BufferedReader br = new BufferedReader(fr); String line = null; w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CoordinateTransform readCoordinateTransform(String filename) \n\t{\n\t\tfinal CoordinateTransformList<CoordinateTransform> ctl = new CoordinateTransformList<CoordinateTransform>();\n\t\ttry \n\t\t{\n\t\t\tfinal FileReader fr = new FileReader(filename);\n\t\t\tfinal BufferedReader br = new BufferedReader(fr)...
[ "0.6690353", "0.62777257", "0.5760549", "0.55225414", "0.54703885", "0.54644614", "0.5461362", "0.5454338", "0.5454123", "0.5445342", "0.54090935", "0.54085845", "0.5398845", "0.5355612", "0.53327346", "0.5313973", "0.52953756", "0.5261212", "0.52530473", "0.52332026", "0.523...
0.69474775
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_teacher_homepage, container, false); enableBackArrow(false); buttonLogOut = view.findViewById(R.id.ButtonL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Interface que permite desarrollar la logica del proyecto. Permite conectarse con los datos almacenados en algun repositorio para su modificacion, visualizacion o busqueda
public interface ITripulanteService { /** * Metodo que permite guardar un tripulante en el gestor de Base de datos * * @param tripulante objeto de tipo tripulante que se desea guardar */ public void guardarTripulante(Tripulante tripulante); /** * Metodo que permite guardar un Tripulante encont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ProcesoEDURegistroCalificacionEjecutivaDAO extends DAO {\n\n\n\t/** \n\t * Devuelve una lista de registros de cabeceras de cursos dictados\n\t * @param historicoCursoDictado\n\t * \t\t\tobjeto HistoricoCursoDictado poblado\n\t */\n\tpublic List getHistoricoCursoDictado(HistoricoCursoDictado histor...
[ "0.60207605", "0.57216245", "0.5705187", "0.56639785", "0.5637443", "0.562992", "0.5629703", "0.5615566", "0.5611755", "0.5555431", "0.55513024", "0.5531215", "0.55255055", "0.5474183", "0.5473961", "0.54683226", "0.54401225", "0.5422502", "0.5410081", "0.54019874", "0.540194...
0.0
-1
Metodo que permite guardar un tripulante en el gestor de Base de datos
public void guardarTripulante(Tripulante tripulante);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardarTripulanteEncontrado(Tripulante tripulante);", "void saveTrip(Trip parTrip);", "@Override\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante) {\r\n\t\tlistadoAuxiliar.add(tripulante);\r\n\t}", "public void insert(final Trip t) throws SQLException {\n long v;\n if(...
[ "0.71914756", "0.6649861", "0.61716825", "0.5725365", "0.5663216", "0.5531901", "0.539107", "0.5320714", "0.5281335", "0.52239645", "0.5176644", "0.51603645", "0.5148185", "0.51187176", "0.5114581", "0.5077629", "0.5044767", "0.5020581", "0.50177974", "0.5014596", "0.5014546"...
0.7376014
0
Metodo que permite guardar un Tripulante encontrado, recibe un objeto de tipo tripulante
public void guardarTripulanteEncontrado(Tripulante tripulante);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void guardarTripulante(Tripulante tripulante);", "void saveTrip(Trip parTrip);", "@Override\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante) {\r\n\t\tlistadoAuxiliar.add(tripulante);\r\n\t}", "public interface ITripulanteService {\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un t...
[ "0.7698121", "0.6616273", "0.6505458", "0.5873485", "0.5814439", "0.5538269", "0.55361736", "0.5512748", "0.54657567", "0.5351962", "0.5331325", "0.532518", "0.5214438", "0.5204211", "0.5178474", "0.51429754", "0.51307875", "0.5127594", "0.51162255", "0.5084953", "0.5083504",...
0.742144
1
Metodo que permite listar los Tripulantes almacenados
public List<Tripulante> obtenerTripulantes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Tripulante> buscarTodosTripulantes();", "@GET\n\t@Path(\"/tipos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoAutoDTO> listarTipos(){\n\t\tSystem.out.println(\"ini: listarTipos()\");\n\t\t\n\t\tTipoAutoService tipoService = new TipoAutoService();\n\t\tArrayList<TipoAutoDTO> list...
[ "0.7498455", "0.6503266", "0.63824826", "0.62241715", "0.62007254", "0.6200307", "0.61905825", "0.61831415", "0.61341906", "0.6132241", "0.6110961", "0.6085274", "0.6049176", "0.60264564", "0.6005057", "0.59344995", "0.59260565", "0.5925697", "0.59164584", "0.59162706", "0.59...
0.77513397
0
Metodo que permite listar todos los Tripulantes almacenados
public List<Tripulante> buscarTodosTripulantes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Tripulante> obtenerTripulantes();", "@GET\n\t@Path(\"/tipos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<TipoAutoDTO> listarTipos(){\n\t\tSystem.out.println(\"ini: listarTipos()\");\n\t\t\n\t\tTipoAutoService tipoService = new TipoAutoService();\n\t\tArrayList<TipoAutoDTO> lista = ...
[ "0.78378785", "0.6632353", "0.64385253", "0.6420053", "0.6419102", "0.6414438", "0.641217", "0.6382873", "0.6361794", "0.63444805", "0.6324172", "0.63140213", "0.6306735", "0.62921447", "0.62824094", "0.62807405", "0.62668717", "0.6258803", "0.62062925", "0.6184877", "0.61796...
0.77711254
1
Metodo para hacer una busqueda de Tripulante por su id ingresado por parametro
public Optional<Tripulante> obtenerUnTripulante(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Tripulante> buscarTodosTripulantes();", "RespuestaRest<ParqueaderoEntidad> consultar(String id);", "public List<Tripulante> obtenerTripulantes();", "@Override\n @SuppressWarnings(\"unchecked\")\n public List<PontoTuristico> searchByID(Integer pIdPonto)\n {\n List<PontoTuristico> t...
[ "0.648924", "0.64352614", "0.6352825", "0.6264281", "0.626238", "0.62376064", "0.6207325", "0.6143112", "0.61411446", "0.6102873", "0.6033426", "0.596112", "0.59263134", "0.58935755", "0.58770317", "0.58672583", "0.58382326", "0.579293", "0.57800484", "0.5779107", "0.5730063"...
0.53702927
72
Metodo para hacer una eliminacion de un Tripulante almacenado en la Base de datos
public void eliminarTripulante(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "@Override\r\n\tpublic void remover(Tipo tipo) {\n String sql = \"delete from tipos_servicos where id = ?\";\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, tipo.ge...
[ "0.7086499", "0.7048344", "0.6911951", "0.68979", "0.6886911", "0.68450195", "0.6836249", "0.6779891", "0.6759906", "0.6709471", "0.669924", "0.6692729", "0.6667812", "0.6666792", "0.6661603", "0.66607565", "0.6653685", "0.6652238", "0.6647895", "0.6628604", "0.6625969", "0...
0.757305
0
Metodo que implementara la eliminacion de los tripulantes almacenados en la Base de datos, no recibe parametros
public void borrarTodosTripulantes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminarTripulante(Long id);", "@Override\n\tpublic void eliminar() {\n\n\t}", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "public void eliminar(DetalleArmado detallearmado);", "public abstract void borrarEstadosPropuestas();...
[ "0.7176836", "0.6709724", "0.670932", "0.67092496", "0.65745604", "0.6483863", "0.6396537", "0.63370556", "0.62709826", "0.61857146", "0.6181278", "0.617864", "0.61673653", "0.6122176", "0.6122176", "0.6117096", "0.60791874", "0.60306436", "0.6028752", "0.60264754", "0.601260...
0.677626
1
Metodo para hacer una busqueda de un tripulante por su atributo de tipo String y nombre documento
public Tripulante buscarTripulante(String documento) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Videogioco> retriveByPiattaforma(String piattaforma);", "java.lang.String getFkocs();", "List<Videogioco> retriveByNome(String nome);", "com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();", "public Libro recupera(String nombre);", "GestionPrecioDTO findCampania(String codigo...
[ "0.53144044", "0.5271892", "0.52176183", "0.51788616", "0.5157606", "0.51519597", "0.5124785", "0.5099058", "0.5077277", "0.50708234", "0.5059299", "0.50207484", "0.5012631", "0.49769598", "0.49718872", "0.49689057", "0.49526337", "0.492853", "0.49224606", "0.49223346", "0.49...
0.69833136
0
A method to move the player left and right.
public void movement() { // If the player wants to move left ie presses 'a' key.. if (spaceInvadersGame.getKeyManager().left) { // If the player is on the left bound of the window do not move. if (xPosition <= 0) { // Move the player's xPosition left. } else { xPosition -= playerSpeed; } }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveLeft();", "private void playerMoveRight()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() + 1);\n if (this.getCurrentX() < 11) {\n if (!nextIsWall()) {\n...
[ "0.752213", "0.7429651", "0.73746544", "0.73440135", "0.73134017", "0.72198313", "0.718159", "0.7161624", "0.7089616", "0.7084331", "0.7042111", "0.7019037", "0.7012901", "0.7012871", "0.69813055", "0.6973591", "0.6944132", "0.6886698", "0.68719363", "0.68614954", "0.67910546...
0.6872745
18
A method to fire a bullet.
public void fire() { // A player cannot continually fire, there is a delay between each bullet. if (isAbleToFire) { audio.playMusic("Audio/Fire.wav"); if (multiBulletIsActive) { multiBulletFire(); } else if (speedBulletIsActive) { speedBulletFire(); } else if (quickFireBulletIsActive) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fireBullet(){\n\t\tBullet bullet = new Bullet(ship);\n\t\tbullets.add(bullet);\n\t\tsoundMan.playBulletSound();\n\t}", "void fireBullet() {\n\r\n\t\tif (count > 0)\r\n\t\t\treturn;\r\n\t\t// ...and if all the bullets aren't currently in use...\r\n\t\tint slot = getAvailableBullet();\r\n\t\tif (slot <...
[ "0.8667224", "0.8214", "0.7751054", "0.7725838", "0.77133226", "0.7711541", "0.76624453", "0.7653102", "0.7548972", "0.73098046", "0.72987664", "0.7243323", "0.7164095", "0.7105038", "0.70851034", "0.70737314", "0.70737314", "0.7056106", "0.70478326", "0.7038665", "0.70145994...
0.7753737
2
A method to check if the player is able to fire.
private void checkIsAbleToFire() { if (ticksToNextFire <= currentTickCount) { isAbleToFire = true; } else { isAbleToFire = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "boolean isAllowFriendlyFire();", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "public boolean isFireDamage();", "private boolean canSetOnFire(EntityPlaye...
[ "0.7306037", "0.7188345", "0.69950265", "0.6841507", "0.67332476", "0.6710541", "0.6679234", "0.66459554", "0.66406345", "0.66334385", "0.6620673", "0.6591944", "0.6587484", "0.65841424", "0.6553215", "0.6553215", "0.6553215", "0.6553215", "0.6553215", "0.6526305", "0.6464320...
0.7448662
0
A method to fire blue color multiplebullets at once when the multibullet power up has been activated.
private void multiBulletFire() { bulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth, bulletHeight, "Blue")); bulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth, bulletHeight, "Blue")); bu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n ...
[ "0.6191632", "0.608872", "0.60278374", "0.5729581", "0.5727041", "0.56831414", "0.56618845", "0.5573246", "0.5543165", "0.5518286", "0.5504891", "0.5500993", "0.54570204", "0.5381914", "0.53601956", "0.5325442", "0.5314819", "0.5313523", "0.52837896", "0.52812874", "0.5276003...
0.77145374
0
A method to fire yellow color speed bullets. Speed bullets travel distance faster.
private void speedBulletFire() { bulletArrayList.add( new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, "Yellow")); for (int i = 0; i < bulletArrayList.size(); i++) { bulletArrayList.get(i).setSpeed(5); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbull...
[ "0.6929035", "0.674409", "0.6722419", "0.6603789", "0.64049274", "0.6263195", "0.6224064", "0.62009203", "0.6188222", "0.6142695", "0.61278987", "0.6098795", "0.6064556", "0.6059505", "0.6046006", "0.6032988", "0.60206944", "0.6007033", "0.59935844", "0.59515905", "0.5935529"...
0.78556246
0
A method to fire pink color quickfire bullets. Quick fire bullets have a reduced waiting time between each fire.
private void quickFireBulletFire() { bulletArrayList.add( new Bullet(xPosition + ((width / 2) - bulletWidth / 2), bulletYPosition, bulletWidth, bulletHeight, "Pink")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void multiBulletFire() {\n\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) + 20, bulletYPosition, bulletWidth,\n\t\t\t\tbulletHeight, \"Blue\"));\n\t\tbulletArrayList.add(new Bullet(xPosition + ((width / 2) - bulletWidth / 2) - 10, bulletYPosition, bulletWidth,\n\t\t\t\tbull...
[ "0.68607724", "0.68287593", "0.67244184", "0.65802866", "0.62837124", "0.5949326", "0.5924888", "0.5883695", "0.5877565", "0.5808073", "0.5766419", "0.57370424", "0.5704763", "0.56755316", "0.5658519", "0.56065613", "0.56042826", "0.5598637", "0.5581485", "0.55707026", "0.555...
0.77638996
0
A method to deduct a life from the player. Player becomes invincible for a set amount of time.
public void lifeLost() { if (invincipleTimer <= currentTickCount) { System.out.println("Life Lost!"); health--; invincipleTimer = currentTickCount + invicibleLength; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deductLife() {\n\t\t\n\t\t// If player01 is currently active.. \n\t\tif(player01.getIsCurrentlyPlaying()) {\n\t\t\t\n\t\t\t// Deduct a life.\n\t\t\tplayer01.deductlife();\n\t\t\t\n\t\t\t// Display message.\n\t\t\tSystem.out.println(\"Player 01 has lost a life!\");\n\t\t\tSystem.out.println(\"Player 01 ...
[ "0.7627788", "0.7550031", "0.70706224", "0.6894742", "0.6872909", "0.6856062", "0.684112", "0.68353224", "0.6820396", "0.6815276", "0.6709107", "0.66644996", "0.66427946", "0.6611294", "0.6582622", "0.6576929", "0.65160006", "0.6470278", "0.64517426", "0.64334583", "0.6425419...
0.7108522
2
Draw main player block.
@Override public void render(Graphics g) { g.setColor(Color.RED); g.drawRect((int) xPosition, (int) yPosition, width, height); if (health == 3) { g.setColor(Color.RED); g.fillRect((int) xPosition + 1, (int) yPosition + 1, width / 3, height - 2); g.setColor(Color.RED); g.fillRect((int) xPosition + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\...
[ "0.67873496", "0.6756593", "0.6651504", "0.64247805", "0.63934505", "0.63892156", "0.6335345", "0.62876385", "0.6280771", "0.6256752", "0.62504536", "0.6247135", "0.6231595", "0.6215079", "0.61441344", "0.6137381", "0.61208457", "0.61111236", "0.61057305", "0.6097496", "0.608...
0.0
-1
A method to reset the player variables back to their default.
public void resetPlayer() { health = 3; playerSpeed = 5f; multiBulletIsActive = false; speedBulletIsActive = false; quickFireBulletIsActive = false; invincipleTimer = 0; xPosition = 230; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetPlayer() {\n\t\tthis.carrotCards = 65;\n\t\tthis.playerSpace = 0;\n\n\t}", "private void resetParameters() {\n\t\twKeyDown = false;\n\t\taKeyDown = false;\n\t\tsKeyDown = false;\n\t\tdKeyDown = false;\n\t\tmouseDown = false;\n\t\t// reset mouse\n\t\tMouse.destroy();\n\t\ttry {\n\t\t\tMouse.creat...
[ "0.8199863", "0.7695793", "0.75960416", "0.7587892", "0.7552359", "0.7547437", "0.75199264", "0.75141126", "0.7368844", "0.7364576", "0.73611844", "0.73610556", "0.73514974", "0.7336463", "0.7323359", "0.7230542", "0.72136366", "0.7167224", "0.7122534", "0.7102501", "0.710131...
0.8385202
0
Get the hash code for the key. To keep things simple, here is a dummy hash function : it get the key, then simply return the key. If as example the entry key was a phone number associated to employee I can use the last 3 number as hashcode, and then hashtable index would be taken from this in computeHash
public int getHashCode(int key){ return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getHash(Object key) {\n return key.hashCode();\n }", "int hash(final K key);", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\tha...
[ "0.76262283", "0.7385535", "0.73463553", "0.73045725", "0.7264474", "0.7258242", "0.7213768", "0.7211644", "0.7208913", "0.7151492", "0.7092062", "0.7086782", "0.70811313", "0.7071085", "0.7055622", "0.70398974", "0.6965717", "0.69323826", "0.6926298", "0.6919386", "0.691131"...
0.7562769
1
reduce the hashcode value (here making the mod of it), and getting the index inside the hashtable to make index range smaller and array dimension not too big
public int computeHash(int key){ int hashValue = 0; hashValue = getHashCode(key); return hashValue % tableSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "private int hashFunction(int hashCode) {\n int location = hashCode % capacity;\n return location;\n }", "private int hash...
[ "0.72368294", "0.693665", "0.6823827", "0.68067825", "0.67773765", "0.67577165", "0.6753713", "0.66482836", "0.6598423", "0.6569473", "0.6558032", "0.65342337", "0.6531929", "0.65271103", "0.6520734", "0.64878833", "0.6485542", "0.64779776", "0.6471098", "0.64552957", "0.6440...
0.62479657
39
to keep things simple, the key and the data associated are the same, here the field could have been only one
public void insert( int key, Integer data ){ if (data == null) data = key; int index = computeHash(key); Node head = list[index]; while( head != null ){ // Collision : key already in hashtable, put it in the linked list if(compare(head.key, key) == 0){ // Update : In case ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getKey()\n {\n return id; \n }", "private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contac...
[ "0.6159119", "0.5871483", "0.5802996", "0.5800713", "0.5766739", "0.57246804", "0.5672371", "0.5671002", "0.5666942", "0.5632492", "0.5624617", "0.56128037", "0.55951476", "0.55951476", "0.55748177", "0.5567946", "0.55644137", "0.55411416", "0.5518242", "0.5488608", "0.548546...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } else if (id == R.id.action_cart) { goToShoppingCartActivity(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.7346...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_camera) { goToMobileScanGoActivity(); } else if (id == R.id.nav_deal) { goToDealsListActivity(); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
End of variables declaration
public Display(String [] entry, Double [] price, String name) { super(); initializeComponent(entry,price,name); // // TODO: Add any constructor code after initializeComponent call // this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "protected void initVars() {}", "private void assignment() {\n\n\t\t\t}", "private void declareLocals() {\r\n\t\t/...
[ "0.6759361", "0.6568837", "0.62458223", "0.61133546", "0.60982347", "0.6087512", "0.60586846", "0.5882926", "0.5873854", "0.5771458", "0.5769804", "0.57594293", "0.57517105", "0.57495594", "0.5749265", "0.5725298", "0.57189494", "0.5666249", "0.5654246", "0.5628506", "0.56269...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Windows Form Designer. Otherwise, retrieving design might not work properly. Tip: If you must revise this method, please backup this GUI file for JFrameBuil...
private void initializeComponent(String [] entry, Double [] price, String name) { jLabel1 = new JLabel(); jLabel2 = new JLabel(); jTextPane1 = new JTextPane(); jScrollPane1 = new JScrollPane(); jTextPane2 = new JTextPane(); jScrollPane2 = new JScrollPane(); contentPane = (JPanel)this.getCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FrameDesign() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);...
[ "0.7796981", "0.7723488", "0.7675623", "0.76435983", "0.76435983", "0.76435983", "0.7626685", "0.762129", "0.75486535", "0.7548353", "0.75265634", "0.7524274", "0.75191545", "0.75169665", "0.75148994", "0.7499954", "0.7463714", "0.7461873", "0.7457862", "0.7428806", "0.741748...
0.0
-1
Add Component Without a Layout Manager (Absolute Positioning)
private void addComponent(Container container,Component c,int x,int y,int width,int height) { c.setBounds(x,y,width,height); container.add(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLayoutComponent(Component comp, Object constraints) {}", "public void addLayoutComponent(Component component, Object constraints) { }", "@Override\n\tpublic void addLayoutComponent(Component comp, Object constraints) {\n\t\tif (!(constraints instanceof Position)) \n\t\t\tthrow new IllegalArgumen...
[ "0.7151409", "0.7044975", "0.69083256", "0.6826906", "0.6786801", "0.67583275", "0.6726499", "0.6714082", "0.67080116", "0.66908765", "0.6683277", "0.6594568", "0.65766793", "0.653032", "0.65038896", "0.64740515", "0.64433736", "0.6423072", "0.6388109", "0.63703084", "0.63607...
0.6413347
18
How long to wait before flipping to the next view
@android.view.RemotableViewMethod public void setFlipInterval(int milliseconds) { mFlipInterval = milliseconds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void timePassed() {\n this.moveOneStep();\n }", "@Override\n public void timePassed() {\n moveOneStep();\n }", "protected abstract long waitToTravel();", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmVideoContrl.seekTo((int) time);\r\n\r\n\t\t\t\t\t\t}", "void ...
[ "0.6123593", "0.6029815", "0.6018474", "0.6014221", "0.5927799", "0.5821549", "0.5767648", "0.56828713", "0.5664195", "0.56542206", "0.55894613", "0.5575205", "0.55618936", "0.55359167", "0.5527708", "0.552224", "0.552033", "0.5502497", "0.54970366", "0.548431", "0.54703295",...
0.0
-1
Start a timer to cycle through child views
public void startFlipping() { if (!mKeepFlipping) { mKeepFlipping = true; showOnly(mWhichChild); Message msg = mHandler.obtainMessage(FLIP_MSG); mHandler.sendMessageDelayed(msg, mFlipInterval); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void timerMethod() {\n getActivity().runOnUiThread(refreshListView);\n }", "private void timerFired() {\n\t\t\n\t\tArrayList<CedView> tempList = _pendingRefresh;\n\t\t_pendingRefresh = new ArrayList<>();\n\t\t\n\t\tfor (CedView view : tempList) {\n\t\t\tview.refresh();\n\t\t}\n\t\ttempList = nu...
[ "0.60256696", "0.6023869", "0.60028327", "0.59285015", "0.59019196", "0.57532567", "0.56287396", "0.5581807", "0.55709374", "0.5541576", "0.5497457", "0.54766357", "0.5473465", "0.539004", "0.5381466", "0.536656", "0.53628933", "0.5361688", "0.535895", "0.5348549", "0.530766"...
0.0
-1
Returns true if the child views are flipping.
public boolean isFlipping() { return mKeepFlipping; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n ...
[ "0.6422571", "0.63261735", "0.55772054", "0.555346", "0.55243486", "0.55243486", "0.5518759", "0.54312134", "0.5426817", "0.54029787", "0.5336901", "0.53071254", "0.5306316", "0.5305871", "0.52667683", "0.52632207", "0.52338487", "0.52324057", "0.52058697", "0.52012736", "0.5...
0.67075205
0
Use this factory method to create a new instance of this fragment using the provided parameters.
public static ProfileInsuranceInfoFragment newInstance(String param1, String param2) { ProfileInsuranceInfoFragment fragment = new ProfileInsuranceInfoFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArgum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_profile_insurance_info, container, false); inflateView(view); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewG...
[ "0.685214", "0.6803351", "0.67748415", "0.67409474", "0.6735214", "0.67227083", "0.671929", "0.6713345", "0.67067665", "0.6702749", "0.6695068", "0.66896886", "0.66870844", "0.66784394", "0.6671157", "0.666992", "0.666846", "0.6668084", "0.666806", "0.6663189", "0.66624117", ...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onImagesSelected(Uri uri, int selectedImageView, Bitmap bitmapImage, String base64Path) { if (mListener != null) { mListener.onInsuranceFragmentInteraction(uri, selectedImageView, bitmapImage, base64Path); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name public void onInsuranceFragmentInteraction(Uri uri, int selectedImageView, Bitmap croppedBitmapImage, String base64Path); public void getCroppedImageBitmapForIsurance(Bitmap bitmap, int selectedImageView); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.7324869", "0.7207734", "0.7135081", "0.71245605", "0.71223444", "0.7015339", "0.6975947", "0.6975947", "0.6975947", "0.6974237", "0.69678", "0.69657534", "0.6961255", "0.6953781", "0.69433004", "0.6934407", "0.6929365", "0.69274956", "0.6922845", "0.6909957", "0.69027823",...
0.0
-1