query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Add commands to control multiple words and some config thingies
@Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (cmd.getName().equalsIgnoreCase("notifier")) { // The menu and plugin info String[] say = { "/-------------------------/", "-" + PLUGIN_NAME + " is running version " + PLUGIN_VERSION, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void configureWord() {\n }", "private void addCustomWords() {\r\n\r\n }", "@Override\n\t\tpublic void configure(JobConf job) {\n\t\t\twords = job.get(\"search.word\").split(\"[ \\t]+\");\n\t\t}", "public void dictionaryBasic() {\n dictionaryManagement.insertFromCommandline();\n sho...
[ "0.7307329", "0.6460021", "0.5950315", "0.5914214", "0.5821888", "0.5778564", "0.57449794", "0.55836755", "0.5556308", "0.55255705", "0.55152965", "0.54904354", "0.54864347", "0.5484619", "0.5480117", "0.5464085", "0.5418893", "0.5407394", "0.54002315", "0.53769696", "0.53752...
0.0
-1
Notifies the specified player with a sound.
public void notifyPlayer(String playername){ for(PlayerHandler player : players){ if(player.getPlayerName().equalsIgnoreCase(playername)){ player.notify(1); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void playSound(int soundId) {\n\n }", "public void playSoundAt(IPos pos, String sound, float volume, float pitch);", "public static void playSound(Player p, Location loc, Sound sound, float pitch, float volume){\n p.playSound(loc, sound, volume, pitch);\n }", "public void s...
[ "0.682109", "0.678862", "0.66616803", "0.65695846", "0.65683514", "0.6560658", "0.6543257", "0.6438809", "0.64218956", "0.6408762", "0.63722163", "0.63688266", "0.63592243", "0.6354264", "0.6354059", "0.6342974", "0.6313367", "0.6278821", "0.62724274", "0.6258491", "0.6258305...
0.0
-1
Notifies all the admins with a sound.
public void notifyAdmins(){ for(PlayerHandler player : players){ if(player.isAdmin()){ player.notify(1); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void soundsEZ() {\n\t\tapplauseSound = EZ.addSound(\"applause.wav\");\n\t\twallSound = EZ.addSound(\"stone1.wav\");\n\t\tdiamondSound = EZ.addSound(\"glass1.wav\");\n\t}", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "public void registerS...
[ "0.6392791", "0.62817144", "0.6216034", "0.60370487", "0.60258645", "0.59373945", "0.5863506", "0.5826889", "0.58227116", "0.58195215", "0.58195215", "0.58089906", "0.5759574", "0.5755825", "0.57382965", "0.56956166", "0.5689376", "0.5651028", "0.56469345", "0.5634795", "0.56...
0.6542208
0
Interface for an OS upgrader.
public interface Upgrader { /** Trigger upgrade to given target */ void upgradeTo(OsVersionTarget target); /** Disable OS upgrade for all nodes of given type */ void disableUpgrade(NodeType type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void upgrade();", "public abstract void doUpgrade();", "public abstract void Upgrade(Tower t);", "public void cmdUpgrade(User teller) {\n exit(7, \"Deploying version update at the request of {0}. I''ll be right back!\", teller);\n }", "public interface UpgradeListener {\n\tpublic...
[ "0.61866426", "0.5933644", "0.58077854", "0.5513389", "0.5474992", "0.5440649", "0.53451383", "0.52175754", "0.5210487", "0.51805425", "0.51453155", "0.50779635", "0.5032008", "0.49240896", "0.49069676", "0.48705944", "0.48096108", "0.47851834", "0.47843906", "0.47789994", "0...
0.7207692
0
Trigger upgrade to given target
void upgradeTo(OsVersionTarget target);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void upgrade();", "public abstract void Upgrade(Tower t);", "public abstract void doUpgrade();", "public void targetUpdated(ITarget target) throws RemoteException {\n\n\t\tlogger.create().block(\"targetUpdated\").info().level(1).msg(\n\t\t\t\t\"Adding updateTarget request to update queue for ...
[ "0.62369406", "0.6043526", "0.59086776", "0.5712491", "0.5708426", "0.5634557", "0.562112", "0.55024725", "0.5452811", "0.5406356", "0.5394079", "0.53819436", "0.5361639", "0.53212875", "0.5250185", "0.5234782", "0.5226883", "0.5216124", "0.5181695", "0.51519614", "0.5144618"...
0.7050444
0
Disable OS upgrade for all nodes of given type
void disableUpgrade(NodeType type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void disableUpgrade(NodeType type) {\n }", "public interface Upgrader {\n\n /** Trigger upgrade to given target */\n void upgradeTo(OsVersionTarget target);\n\n /** Disable OS upgrade for all nodes of given type */\n void disableUpgrade(NodeType type);\n\n}", "void unsetIns...
[ "0.79602855", "0.5967948", "0.58792543", "0.5649652", "0.55492634", "0.5488582", "0.5474624", "0.54245144", "0.5327085", "0.52842", "0.51115584", "0.5094154", "0.50861514", "0.506252", "0.5034985", "0.5015165", "0.50064796", "0.500496", "0.49994606", "0.4992587", "0.498696", ...
0.8311689
0
Assume every photo is good
public void search() throws ParseException { for(Album a : user.getAlbums()){ for(Photo p : a.getPhotos()){ tempAlbum.addPhoto(p); } } fromDateFilter(); toDateFilter(); tagFilter(); ObservableList<Photo> filteredList = FXCollecti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void treatAllPhotos() throws IllegalArgumentException {\n for(Long currentID : idsToTest){\n String pathToPhoto = \"photo\\\\\" + currentID.toString();\n File currentPhotosFile = new File(pathToPhoto);\n\n if(currentPhotosFile.exists() && currentPhotosFile.isDirectory...
[ "0.6817893", "0.629349", "0.61871356", "0.6130089", "0.60730535", "0.60507065", "0.6034553", "0.6025839", "0.59239435", "0.58931375", "0.5885071", "0.5876214", "0.586405", "0.58465534", "0.5815705", "0.576504", "0.5742294", "0.57344407", "0.5727353", "0.5726267", "0.5720077",...
0.0
-1
TODO Autogenerated method stub
@Override public StockBO Load(Integer orgId, Integer pageindex, Integer pagesize) throws Exception { List<Stock> Stocks; LoginUserVM user = (LoginUserVM)_sessionHelper.GetSessionUser(); List<Org> orgs =user.getAccessedOrgs(); List<Integer> loginOrgs = new ArrayList<Integer>(); for (Org org : orgs) { log...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Stock Find(Integer id) { Stock stock = _stockDao.selectByPrimaryKey(id); if (stock == null) { return new Stock(); } return stock; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void Delete(Integer id) { _stockDao.deleteByPrimaryKey(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void AddOrUpdate(Stock model) { if (model.getId() == 0){ _stockDao.insert(model); } else { _stockDao.updateByPrimaryKey(model); } }
{ "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
Other than pawn at b7 and king at i8, Setting pieces of Player 2 as null.
@Test /* * Checking Stalemate by * deleteing all pieces of Player 2 except 1 pawn but keeping it trapped. * Moving the King of Player 2 to such a positon that its not a check but cannot move. * here we are using the Queen of Player 1 to achieve that situation. */ void testCheckStalemate() { m_oBoard.getP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPieces(){\r\n Pawn[] arrwPawn = new Pawn[8];\r\n for (int i=0 ; i<8 ; i++){\r\n pos.setPosition(6,i);\r\n arrwPawn[i] = new Pawn (pos , piece.Colour.WHITE);\r\n GameBoard.putPiece(arrwPawn[i]);\r\n }\r\n\r\n Pawn[] arrbPawn = new Pawn[8];\r\n for(i...
[ "0.71149105", "0.6720653", "0.66185606", "0.6531408", "0.6518063", "0.6484984", "0.64526373", "0.6391469", "0.6350297", "0.6348816", "0.627573", "0.6259276", "0.6194924", "0.6139488", "0.6108222", "0.6077299", "0.60752404", "0.604998", "0.60341775", "0.600657", "0.60032964", ...
0.6043624
18
Other than pawn at b7 and king at i8, Setting pieces of Player 2 as null.
@Test /* * Checking Stalemate by * deleteing all pieces of Player 2 except 1 pawn but keeping it trapped. * Moving the King of Player 2 to such a positon that it can make more than 1 movements. * here we are using the Queen of Player 1 to achieve that situation. * In this case its not a stalemate as the kin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPieces(){\r\n Pawn[] arrwPawn = new Pawn[8];\r\n for (int i=0 ; i<8 ; i++){\r\n pos.setPosition(6,i);\r\n arrwPawn[i] = new Pawn (pos , piece.Colour.WHITE);\r\n GameBoard.putPiece(arrwPawn[i]);\r\n }\r\n\r\n Pawn[] arrbPawn = new Pawn[8];\r\n for(i...
[ "0.71149814", "0.672149", "0.6619786", "0.65317655", "0.6519258", "0.64868575", "0.6453163", "0.63922185", "0.63510907", "0.63496435", "0.6276565", "0.6259242", "0.61949396", "0.61398816", "0.6108241", "0.6078078", "0.6076017", "0.60503024", "0.6044286", "0.6034437", "0.60026...
0.6007209
20
Other than pawn at b7 and king at i8, Setting pieces of Player 2 as null.
@Test /* * Checking Stalemate by * deleteing all pieces of Player 2 except 1 pawn, here pawn has movement and is not trapped. * Moving the King of Player 2 to such a positon that it cannot make a movement. * here we are using the Queen of Player 1 to achieve that situation. * In this case its not a stalemat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPieces(){\r\n Pawn[] arrwPawn = new Pawn[8];\r\n for (int i=0 ; i<8 ; i++){\r\n pos.setPosition(6,i);\r\n arrwPawn[i] = new Pawn (pos , piece.Colour.WHITE);\r\n GameBoard.putPiece(arrwPawn[i]);\r\n }\r\n\r\n Pawn[] arrbPawn = new Pawn[8];\r\n for(i...
[ "0.71161604", "0.67216253", "0.6619161", "0.6532306", "0.65176606", "0.6485526", "0.64522016", "0.63919514", "0.6350989", "0.63477165", "0.62758464", "0.62589115", "0.61945087", "0.6140685", "0.61092436", "0.60779697", "0.60496855", "0.60447776", "0.60348403", "0.60077494", "...
0.60763913
16
Create a new TestBinaryCacheStore that will use the specified binary entry expiry value.
public TestBinaryCacheStore(long expiry) { this(new ObservableHashMap()); this.m_cExpiryMillis = expiry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestBinaryCacheStore(String sName)\n {\n this(CacheFactory.getCache(sName));\n }", "public TestBinaryCacheStore(ObservableMap mapStorage)\n {\n super(mapStorage);\n }", "public static ByteArrayCache instance() {\n if (_instance == null) try {\n ...
[ "0.63967586", "0.56353086", "0.5125497", "0.50662744", "0.49895903", "0.48984644", "0.4663344", "0.46160287", "0.46109316", "0.45804724", "0.4564893", "0.45644665", "0.45468584", "0.44590333", "0.44544527", "0.44454277", "0.44417292", "0.44086543", "0.43577108", "0.43550476", ...
0.7927814
0
Create a new TestBinaryCacheStore that will use the NamedCache with the specified name to store items.
public TestBinaryCacheStore(String sName) { this(CacheFactory.getCache(sName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CacheStorage instance(String name) {\n return instance(App_.getInstance(), name);\n }", "public MLNKVMemoryCache(String name) {\n this.name = name;\n LRUCountLimit = 10000;\n FIFOCountLimit = 1000;\n memorySizeLimit = 100 << 20;\n releaseOnMainThread = f...
[ "0.59653383", "0.59111345", "0.57505584", "0.56521714", "0.55817455", "0.5564487", "0.54979354", "0.54257834", "0.5241085", "0.52219445", "0.52161926", "0.52107286", "0.51705724", "0.516694", "0.5132022", "0.5047899", "0.5043669", "0.50252414", "0.49047688", "0.48852038", "0....
0.7749083
0
Create a new TestBinaryCacheStore that will use the specified ObservableMap to store items.
public TestBinaryCacheStore(ObservableMap mapStorage) { super(mapStorage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestBinaryCacheStore(String sName)\n {\n this(CacheFactory.getCache(sName));\n }", "public TestBinaryCacheStore(long expiry)\n {\n this(new ObservableHashMap());\n this.m_cExpiryMillis = expiry;\n }", "public InMemoryKeyValueStorage(final Map<Bytes, Optio...
[ "0.6106355", "0.60656625", "0.5293001", "0.49920103", "0.49605298", "0.47269872", "0.47229436", "0.4722224", "0.4647708", "0.46403143", "0.46355033", "0.463213", "0.4617027", "0.46131033", "0.4585706", "0.45855176", "0.45828837", "0.45805418", "0.45673442", "0.45573565", "0.4...
0.79153144
0
helpers Set the store value.
public void setStoreValue(Object oStoreValue) { m_processor = oStoreValue == null ? NullImplementation.getEntryProcessor() : new ConditionalPut(AlwaysFilter.INSTANCE, oStoreValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void storeValue(Object value)\n {\n if (getParent() instanceof ValueSupport)\n {\n ((ValueSupport) getParent()).setValue(value);\n }\n\n if (getVar() != null)\n {\n getContext().setVariable(getVar(), value);\n }\n }", "protected void s...
[ "0.68879133", "0.67137045", "0.6630783", "0.65238714", "0.65154284", "0.64866424", "0.6485066", "0.64560676", "0.64457417", "0.64397466", "0.64397466", "0.64170283", "0.64116627", "0.640667", "0.6388709", "0.6307309", "0.6296123", "0.6281192", "0.62609994", "0.6260112", "0.62...
0.6872404
1
Return the EntryProcessor that will be executed for each entry in a store or storeAll request.
public EntryProcessor getProcessor() { return m_processor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ODataSingleProcessor createProcessor(ODataContext context);", "@FunctionalInterface\npublic interface RequestProcessor\n {\n public enum Status\n {\n CONTINUE, BREAK\n }\n\n /******************************************************************************************************************...
[ "0.5131597", "0.48620635", "0.47989568", "0.4758151", "0.47143227", "0.46815276", "0.46608168", "0.4614434", "0.46133003", "0.45729157", "0.45244935", "0.45136937", "0.4504176", "0.44869062", "0.44653162", "0.44557968", "0.44406122", "0.44028014", "0.4401408", "0.43901616", "...
0.63779896
0
Set the EntryProcessor that will be executed for each entry in a store or storeAll request.
public void setProcessor(EntryProcessor processor) { m_processor = processor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EntryProcessor getProcessor()\n {\n return m_processor;\n }", "public void setStoreValue(Object oStoreValue)\n {\n m_processor = oStoreValue == null ? NullImplementation.getEntryProcessor()\n : new ConditionalPut(AlwaysFilter.INST...
[ "0.5911898", "0.5708157", "0.56125164", "0.5429265", "0.5364546", "0.5202846", "0.51969594", "0.50862586", "0.5069341", "0.48194203", "0.4795533", "0.47423622", "0.47307506", "0.4717541", "0.4695799", "0.4674363", "0.46735024", "0.462084", "0.46145397", "0.4599952", "0.459869...
0.71759045
0
Construct an ExpireProcessor with the provided expiry time.
public ExpireProcessor(long cExpire) { m_cExpire = cExpire; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HeapCacheBuilder expiry(final long expiry) {\n checkPositive(expiry, \"expiry must be positive\");\n this.expiry = expiry;\n return this;\n }", "public void setExpiryTime(long expiryTime) {\n this.expiryTime = expiryTime;\n }", "public void setExpiry(int expiry)\n {\n this....
[ "0.5888027", "0.56507754", "0.5598706", "0.5533143", "0.5264058", "0.5072006", "0.50222296", "0.49075374", "0.4855892", "0.48398286", "0.47967044", "0.47852376", "0.47818768", "0.47717947", "0.47499242", "0.4728889", "0.47141805", "0.4686582", "0.46729082", "0.46534395", "0.4...
0.66849506
0
TODO Autogenerated method stub
@Override public List<ProjectFavoriteDM> getListMore(ProjectFavoriteDM record) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Constructor creating a random path for the TspSOlutionInstance
protected TspSolutionInstance(int amountOfCities) { List<Integer> list = new ArrayList<Integer>(); for (int i = 0; i < amountOfCities;i++) { list.add(i); } java.util.Collections.shuffle(list); this.path = list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyPathResource() {\r\n }", "private RandomLocationGen() {}", "public PathTest() {\r\n \tsuper(null);\r\n }", "public TSP() {\n // Build the graph\n this.graph = buildGraph();\n this.graphSize = this.graph.nodes().size();\n\n // Initialize route variable, shared across re...
[ "0.5906427", "0.58836645", "0.5823732", "0.57355744", "0.5724647", "0.5712214", "0.5661584", "0.56404847", "0.55585307", "0.54341745", "0.53971756", "0.5352805", "0.5317268", "0.5297227", "0.52888775", "0.52530235", "0.52390057", "0.5219977", "0.5211118", "0.52102387", "0.519...
0.5959399
0
what we want to do in this class? we want to assign value to variables. how we can do by new terms. by in cupsolution (getter and setter). first step: right click and click setter and getter and create it.
public int getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String setValue();", "private void assignment() {\n\n\t\t\t}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setU(String f){\n u = f;\n}", "public static void main(String[] args) {\n Student s1 = new Student();\r\n ...
[ "0.6739259", "0.6461952", "0.63085705", "0.6306062", "0.625301", "0.62488675", "0.618802", "0.6113434", "0.6090783", "0.6078419", "0.60658616", "0.60546136", "0.6043372", "0.60219437", "0.60055214", "0.5949282", "0.5925316", "0.59138346", "0.5912792", "0.5890105", "0.58661383...
0.0
-1
create object of our class here because of adding constructor to our object just click Ctrl + space automatically the constructor get add.
public static void main(String[] args) { Employee theEmployee = new Employee(); // what does it mean below setter? by this section we assign value to variables. theEmployee.setId(1000); theEmployee.setName("Ramesh"); theEmployee.setPosition("Mangaer"); theEmployee.setSalary(10000.88); // by thes gette...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private Instantiation(){}", "private void __sep__Constructors__() {}", "private SingleObject()\r\n {\r\n }", "public _355() {\n\n }", "public Classe() {\r\n }", "public ObjectFactoryMenu() {\n }", "private TMCours...
[ "0.71507007", "0.7095206", "0.70049655", "0.6979156", "0.69556004", "0.6835849", "0.6809288", "0.67966014", "0.6763766", "0.67635703", "0.6748493", "0.6726781", "0.67001086", "0.66843516", "0.66809106", "0.6625221", "0.6622121", "0.6610825", "0.6599108", "0.6578637", "0.65763...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column user_site.id
public Integer getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getSiteId() {\r\n return siteId;\r\n }", "public Integer getSiteId() {\r\n\t\treturn siteId;\r\n\t}", "public String siteId() {\n return this.siteId;\n }", "public String getSiteid() {\n return siteid;\n }", "public Integer getWebsiteId() {\n return (Inte...
[ "0.7317728", "0.7174469", "0.70608", "0.66912264", "0.6482781", "0.63884735", "0.6305037", "0.62738574", "0.62131625", "0.6103815", "0.6099701", "0.6079794", "0.6063669", "0.6053949", "0.60490054", "0.6022747", "0.5959405", "0.5959405", "0.5934484", "0.59161556", "0.5907187",...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column user_site.id
public void setId(Integer id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSiteId(final long siteid) {\r\n this.siteid = siteid;\r\n this.values.put(UserInfoTable.SITEID, siteid);\r\n }", "public void setSiteId(Integer siteId) {\r\n this.siteId = siteId;\r\n }", "public void setSiteId(Integer siteId) {\r\n\t\tthis.siteId = siteId;\r\n\t}", ...
[ "0.7034744", "0.69196683", "0.6727193", "0.65004605", "0.6479604", "0.6411178", "0.63485414", "0.6337132", "0.60674465", "0.6029138", "0.5987703", "0.59834886", "0.59460974", "0.5909086", "0.59056747", "0.5897501", "0.5894048", "0.58768797", "0.58738655", "0.5841573", "0.5840...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column user_site.user_id
public Integer getUserId() { return userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "Integer getUserId();", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "Long getUserId();", "public int getIdUser() {\n return idUser;\n }", "public int getIdUser() {\n return idUser;\n }", "public Long getUserI...
[ "0.7070816", "0.7066833", "0.6982026", "0.68855", "0.6845091", "0.6845091", "0.67945445", "0.6766733", "0.6766733", "0.6766733", "0.6766733", "0.6745037", "0.6745037", "0.6739658", "0.6706096", "0.6706096", "0.6706096", "0.6703398", "0.6703398", "0.6703398", "0.6703398", "0...
0.6601162
45
This method was generated by MyBatis Generator. This method sets the value of the database column user_site.user_id
public void setUserId(Integer userId) { this.userId = userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "publi...
[ "0.72839856", "0.71956176", "0.69390136", "0.68478334", "0.67774755", "0.67330134", "0.66899335", "0.6592395", "0.6592395", "0.6592395", "0.6592395", "0.6588544", "0.6568462", "0.6539196", "0.65256894", "0.6518538", "0.65065145", "0.64611745", "0.64410627", "0.64410627", "0.6...
0.6041806
90
This method was generated by MyBatis Generator. This method returns the value of the database column user_site.site_id
public Integer getSiteId() { return siteId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getSiteId() {\r\n return siteId;\r\n }", "public String siteId() {\n return this.siteId;\n }", "public String getSiteid() {\n return siteid;\n }", "public Integer getWebsiteId() {\n return (Integer) get(\"website_id\");\n }", "public String getSITE_ID(...
[ "0.75430965", "0.73112476", "0.694769", "0.65978175", "0.6559383", "0.65134114", "0.64673394", "0.6390123", "0.6259576", "0.6241117", "0.61865824", "0.59461874", "0.59240645", "0.58350414", "0.58064413", "0.5717614", "0.5714053", "0.5614638", "0.5566658", "0.5566658", "0.5538...
0.73893404
1
This method was generated by MyBatis Generator. This method sets the value of the database column user_site.site_id
public void setSiteId(Integer siteId) { this.siteId = siteId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSiteId(final long siteid) {\r\n this.siteid = siteid;\r\n this.values.put(UserInfoTable.SITEID, siteid);\r\n }", "public void setSiteId(Integer siteId) {\r\n this.siteId = siteId;\r\n }", "public void setSiteid(String siteid) {\n this.siteid = siteid;\n }", ...
[ "0.72777617", "0.72609186", "0.6705526", "0.6634888", "0.64918095", "0.6460785", "0.62751585", "0.6195768", "0.61146617", "0.5889384", "0.586474", "0.586474", "0.5850558", "0.58284247", "0.5810909", "0.58088136", "0.58035064", "0.58027816", "0.5772943", "0.56819284", "0.56624...
0.70544356
2
This method was generated by MyBatis Generator. This method returns the value of the database column user_site.del
public Integer getDel() { return del; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public String getDelUser() {\n return delUser;\n }", "public String...
[ "0.6209587", "0.60824406", "0.5963684", "0.5724646", "0.571784", "0.5715309", "0.5711515", "0.5641194", "0.56051695", "0.5601362", "0.55952543", "0.5586295", "0.55700064", "0.5567219", "0.5542139", "0.5536724", "0.55330247", "0.5519459", "0.5514811", "0.54841536", "0.5484105"...
0.5007639
100
This method was generated by MyBatis Generator. This method sets the value of the database column user_site.del
public void setDel(Integer del) { this.del = del; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void del(Userlogin u) throws IOException {\n\t\tInputStream is = Resources.getResourceAsStream(\"sqlMapConfig.xml\");\r\n\t\t sqlSessionFactory = new SqlSessionFactoryBuilder().build(is);\r\n\t\t SqlSession sqlsession = sqlSessionFactory.openSession();\r\n\t\t UserloginMapper mapper = sqlsession.getMapper(U...
[ "0.619702", "0.5988765", "0.57095045", "0.56213206", "0.5585888", "0.5578586", "0.5573684", "0.5565831", "0.5565321", "0.5558727", "0.5549704", "0.55482364", "0.5542149", "0.55337936", "0.5532896", "0.5527496", "0.5520412", "0.5502809", "0.54984975", "0.54844785", "0.54650646...
0.0
-1
from vid to dstId
public void addEdgeTo(int dstId){ currMethod.flowGraph.addEdge(vid, dstId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setDstId(String arg0) {\n\n\t}", "private Integer newDestination(Move m, int v, Graph g, Board B) {\n\n int final_dest_R = 0, final_dest_C = 0;\n\n int temp_id = 0;\n\n final_dest_R = (m.getY() + (v / B.width));\n final_dest_C = (m.getX() + (v % B.width));\n\n...
[ "0.5672363", "0.55747145", "0.5525832", "0.54058146", "0.5345491", "0.5308944", "0.5256157", "0.5229602", "0.52287066", "0.5142384", "0.5142384", "0.51246226", "0.5085023", "0.50809544", "0.5079931", "0.5079299", "0.50775635", "0.50529915", "0.50090444", "0.49949637", "0.4978...
0.5401658
4
/ / Linea Divisoria /
void LienaDivisoria(){ VerticalLayout LayoutLineaDivisoria = new VerticalLayout(); LayoutLineaDivisoria.setWidth("1024px"); LayoutLineaDivisoria.setHeight("5px"); LayoutLineaDivisoria.setStyleName(EstiloCSS + "LayoutLineaDicisoria"); layout.addComponent(LayoutLineaDiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void divideLine(int row, double div, double[][] matrix,\r\n double[] vector) {\r\n\r\n for (int column = 0; column < matrix[row].length; column++) {\r\n\r\n matrix[row][column] = matrix[row][column] / div;\r\n }\r\n\r\n vector[row] = vector[row] / div;\r\n }", "@SuppressWarning...
[ "0.6266936", "0.61616695", "0.6009079", "0.59859234", "0.5841844", "0.5793823", "0.5769227", "0.57656246", "0.57356787", "0.5705803", "0.56288075", "0.5621316", "0.56088346", "0.56072074", "0.55895084", "0.55842394", "0.5579524", "0.5572101", "0.55693394", "0.5564922", "0.556...
0.63202727
0
/ / Comunicaciones /
void Comunicasiones() { /* Comunicacion */ Button dComunicacion01 = new Button(); dComunicacion01.setWidth("73px"); dComunicacion01.setHeight("47px"); dComunicacion01.setIcon(ByosImagenes.icon[133]); dComunicacion01.setStyleName(EstiloCSS + "BotonCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Oficios> buscarActivas();", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public void Ordenamiento() {\n\n\t}", "public String getComentarios() {\n return comentarios;\n }", "public void aplicarDescuento(...
[ "0.6918906", "0.6698607", "0.6647333", "0.6575465", "0.654173", "0.6519686", "0.65161437", "0.6510833", "0.6500824", "0.647682", "0.6456527", "0.6443745", "0.64396924", "0.6432037", "0.6427269", "0.64200115", "0.63949984", "0.6392608", "0.6380881", "0.6378197", "0.63635904", ...
0.64780396
9
Constructor of a cell , set level = 0 and occupiedBy = null
public Cell(int x,int y){ this.x = x; this.y = y; level = 0; occupiedBy = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cell()\n\t{\n\t}", "public Cell(){}", "public Cell()\n\t{\n\t\tthis.alive = 0;\n\t\tthis.neighbors = 0;\n\t}", "public Cell() {\n\t\tthis.alive = false; // Initially dead\n\t\tthis.age = 0; // Initially age of 0\n\t}", "public Cell(int posX, int posY) {\n this.posX = posX;\n this.posY ...
[ "0.7275289", "0.7239194", "0.7200108", "0.7034338", "0.6987759", "0.6851671", "0.68368655", "0.6807553", "0.6794327", "0.6774989", "0.6701993", "0.663705", "0.6550144", "0.6537531", "0.6505286", "0.64637864", "0.6455458", "0.64406985", "0.6439403", "0.6423539", "0.6392556", ...
0.8337921
0
returns who is in this cell Used when a worker moves in the cell
public void setOccupiedBy(Worker occupiedBy) { this.occupiedBy = occupiedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cellAlreadyOccupied(int worker) {\n notifyCellAlreadyOccupied(worker, getCurrentTurn().getCurrentPlayer().getNickname());\n }", "public Thread getUsedBy()\n\t{\n\t\treturn usedBy;\n\t}", "@Override\n public int[] getPositionWorker() {\n return godPower.getPositionWorker();\n ...
[ "0.6434258", "0.6025276", "0.5882289", "0.5842107", "0.5835414", "0.5688349", "0.56240743", "0.56156033", "0.5598219", "0.5595917", "0.5594251", "0.5527386", "0.55147", "0.5493976", "0.54673296", "0.5467024", "0.5466061", "0.5424957", "0.5374278", "0.5351605", "0.53504527", ...
0.0
-1
/connect client to Google Play Services
@Override protected void onStart() { super.onStart(); Log.i(TAG, "In onStart() - connecting..."); googleApiClient.connect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connectApiClient()\n {\n googleApiClient.connect();\n }", "private void requestConnection() {\n getGoogleApiClient().connect();\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstanc...
[ "0.7487345", "0.7292005", "0.70878315", "0.70878315", "0.70878315", "0.6985947", "0.6977229", "0.69354224", "0.6925185", "0.67600894", "0.67433125", "0.6729625", "0.67222744", "0.6703541", "0.66300744", "0.6623489", "0.6592769", "0.65814245", "0.65768784", "0.6562352", "0.656...
0.6771945
9
/close connection to Google Play Services
@Override protected void onStop() { super.onStop(); if (googleApiClient != null) { Log.i(TAG, "In onStop() - disConnecting..."); googleApiClient.disconnect(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onStop() {\n if (null != googleClient && googleClient.isConnected()) {\n googleClient.disconnect();\n }\n super.onStop();\n }", "@Override\n protected void onStop() {\n mGoogleApiClient.disconnect();\n super.onStop();\n }", "@...
[ "0.7260263", "0.6872676", "0.6872676", "0.6792847", "0.6762089", "0.6743789", "0.66884375", "0.66870505", "0.6662184", "0.6638104", "0.65066195", "0.63368475", "0.62634826", "0.6207985", "0.6187656", "0.6170122", "0.61610955", "0.6149166", "0.61005324", "0.60740966", "0.60681...
0.67838156
4
/ /handles connection callbacks
@Override public void onConnected(Bundle bundle) { Log.i(TAG, "in onConnected() - we're connected, let's do the work in the background..."); Query query = new Query.Builder() .addFilter(Filters.eq(SearchableField.TITLE, "CSc258_backup.zip")) .build(); Drive.D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void handleConnectionOpened();", "public void onConnection();", "protected void connectionEstablished() {}", "protected void onConnect() {}", "protected abstract void onConnect();", "@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}", "abstract void onConnect();", "public abs...
[ "0.79472977", "0.77304846", "0.7550901", "0.7530287", "0.737345", "0.7364989", "0.7276995", "0.7263074", "0.720431", "0.71293026", "0.7099374", "0.70521754", "0.703803", "0.7029612", "0.6985086", "0.693268", "0.6916677", "0.6852193", "0.68499523", "0.68347335", "0.68073076", ...
0.0
-1
Iterate over the matching Metadata instances in mdResultSet
@Override public void onResult(DriveApi.MetadataBufferResult result) { Log.i(TAG, "Query success"); if (result != null && result.getStatus().isSuccess()) { MetadataBuffer mdb = null; try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<SequenceInformation> extractMetadata(ExtractionContext extractionContext) throws SQLException;", "public Iterator<IDatasetItem> iterateOverDatasetItems();", "void processMetaData(ResultSet rs) throws SQLException;", "@Override public Iterator<MetaExample<L>> iterator();", "@Override\n ...
[ "0.6330533", "0.60140246", "0.57208306", "0.5667314", "0.56429744", "0.5463235", "0.5440469", "0.5436845", "0.54091793", "0.53718436", "0.53151596", "0.5307911", "0.52466303", "0.5244087", "0.523403", "0.5173093", "0.5122212", "0.50676584", "0.50500274", "0.50301576", "0.5008...
0.0
-1
/handles suspended connection callbacks
@Override public void onConnectionSuspended(int cause) { switch (cause) { case 1: Log.i(TAG, "Connection suspended - Cause: " + "Service disconnected"); break; case 2: Log.i(TAG, "Connection suspended - Cause: " + "Connection lost"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onConnectionSuspended(int i) {\n\n }", "@Override\n public void onConnectionSuspended(int i) {\n }", "@Override\n\tpublic void onConnectionSuspended(int arg0) {\n\n\t}", "@Override\n\tpublic void onConnectionSuspended(int arg0) {\n\n\t}", "@Override\n ...
[ "0.78207135", "0.7793868", "0.75694287", "0.75694287", "0.7423101", "0.7423101", "0.73950374", "0.73773223", "0.73773223", "0.72630244", "0.7254921", "0.72383666", "0.7135006", "0.6965803", "0.67166793", "0.6685964", "0.6672516", "0.6620636", "0.65880513", "0.6545542", "0.650...
0.65356535
20
/get input stream from text file, read it and put into the output stream
private void addTextfileToOutputStream(OutputStream outputStream) { Log.i(TAG, "adding file to outputstream..."); byte[] buffer = new byte[1024]; int bytesRead; try { BufferedInputStream inputStream = new BufferedInputStream( new FileInputStream(Upload_Fil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void openInput(String file)\r\n\t{\n\t\ttry{\r\n\t\t\tfstream = new FileInputStream(file);\r\n\t\t\tin = new DataInputStream(fstream);\r\n\t\t\tis = new BufferedReader(new InputStreamReader(in));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\r\n\t}", "public InputStream readFil...
[ "0.6011752", "0.5989245", "0.58520794", "0.5785597", "0.5766047", "0.55983865", "0.5563871", "0.5562565", "0.5521959", "0.5505765", "0.5495963", "0.54834527", "0.5444402", "0.5429416", "0.5424547", "0.5424547", "0.5424547", "0.5417811", "0.5409965", "0.538626", "0.53570765", ...
0.54603803
12
/callback when there there's an error connecting the client to the service.
@Override public void onConnectionFailed(ConnectionResult result) { Log.i(TAG, "Connection failed"); if (!result.hasResolution()) { GooglePlayServicesUtil.getErrorDialog(result.getErrorCode(), this, 0).show(); return; } try { Log.i(TAG, "trying to ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onConnectionError()\n\t\t{\n\t\t}", "public void OnConnectionError();", "protected void onConnectionError() {\n\t}", "@Override\n public void onConnectFailed()\n {\n Log.e(\"Dudu_SDK\",\n \"获取NS 业务服务器失败...onConnectFailed ... reconnect()...5 seconds later ...\");\n ...
[ "0.70948976", "0.7036857", "0.70261496", "0.68509585", "0.6761128", "0.6552646", "0.65392977", "0.6495171", "0.64866996", "0.64866996", "0.64712536", "0.64431125", "0.64214635", "0.6407122", "0.6403472", "0.63670474", "0.63643664", "0.63249767", "0.6319277", "0.63061154", "0....
0.0
-1
/build the google api client
private void buildGoogleApiClient() { if (googleApiClient == null) { googleApiClient = new GoogleApiClient.Builder(this) .addApi(Drive.API) .addScope(Drive.SCOPE_FILE) .addConnectionCallbacks(this) .addOnConnectionFailed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void createGoogleAPIClient() {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }", "protected syn...
[ "0.7163289", "0.71462697", "0.7049741", "0.70277387", "0.6989837", "0.69522214", "0.69513416", "0.6937507", "0.6937426", "0.6935326", "0.69158125", "0.6902214", "0.6872713", "0.6856695", "0.68178123", "0.6804507", "0.68003976", "0.6726808", "0.6726119", "0.671925", "0.6710316...
0.6915982
10
Assigns a score to each vertex equal to its degree.
public HashMap<Integer, Double> getTopicWeights(DirectedSparseGraph<Vertex, Edge> graph) { HashMap<Integer, Double> topicWeights = new HashMap<Integer, Double>(); DegreeScorer<Vertex> ranker = new DegreeScorer<Vertex>(graph); for (Vertex vertex : graph.getVertices()) { if (vertex instanceof TopicVertex) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addPointsToScore(int points) {\n score += points;\n }", "public void setScore(int v1, int v2, int v3, int v4) {\n mScore[0] = v1;\n mScore[1] = v2;\n mScore[2] = v3;\n mScore[3] = v4;\n }", "public void addPoints(int earnedPoints) {score = score + earnedPoints;}", ...
[ "0.59433806", "0.5610815", "0.557771", "0.54877317", "0.5486818", "0.54829204", "0.54695445", "0.5464983", "0.5438343", "0.5358635", "0.5355651", "0.5351506", "0.5351057", "0.53431815", "0.5332745", "0.53208643", "0.53172", "0.529423", "0.5288896", "0.52888536", "0.5270942", ...
0.0
-1
Switches fragment by navigation menu item
void switchFragment(@IdRes int itemId) { Intent intent = getIntent(); // passing intent's extra to the fragment Bundle extras = intent.getExtras(); Bundle arguments = (extras != null ? new Bundle(extras) : new Bundle()); switch (itemId) { case ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectDrawerItem(MenuItem menuItem) {\n Fragment fragment = null;\n Class fragmentClass;\n switch(menuItem.getItemId()) {\n case R.id.nav_home:\n fragmentClass = MainFragment.class;\n startFragment(fragmentClass);\n break;\n ...
[ "0.7269388", "0.7222246", "0.72218627", "0.720574", "0.71163934", "0.7112772", "0.7092283", "0.7082019", "0.699114", "0.6977171", "0.6953278", "0.69497025", "0.6944473", "0.69314206", "0.6925215", "0.6905507", "0.6898874", "0.6881656", "0.68764454", "0.6870019", "0.68650633",...
0.75941455
0
Switches to passed fragment
private void switchFragment(Fragment fragment, Bundle arguments) { // replace the current showed fragment Fragment current = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT); if (current != fragment) { fragment.setArguments(arguments); g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View v) {\n switchFragmentTo(1);\n }", "void switchFragment(@IdRes int itemId) {\n Intent intent = getIntent();\n // passing intent's extra to the fragment\n Bundle extras = intent.getExtras();\n Bundle arguments = ...
[ "0.7204165", "0.717772", "0.7160979", "0.7160979", "0.71591544", "0.710043", "0.70979285", "0.7082589", "0.70069957", "0.70069957", "0.69964063", "0.6947125", "0.6947125", "0.67798215", "0.6758691", "0.6757679", "0.67058873", "0.6640019", "0.65462637", "0.6532956", "0.6478978...
0.74018264
0
Updates the current fragment
private void updateFragment() { Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT); if (fragment != null) { FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.detach(fragment).attach(fragment).commit(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void refreshFragment() {\n }", "private void updateCurrentFragment(Fragment newFragment, String tag) {\n FragmentTransaction ft = fm.beginTransaction();\n\n // remove current fragment\n if (currentFragment != null) {\n ft.remove(currentFragment);\n ...
[ "0.7030822", "0.701495", "0.6977118", "0.65463144", "0.64437914", "0.634865", "0.62936497", "0.6218586", "0.6169035", "0.6154162", "0.6150199", "0.6150199", "0.6150199", "0.6150199", "0.6150199", "0.6150199", "0.6130112", "0.6126799", "0.6122026", "0.611919", "0.60677403", ...
0.793563
0
Shows the activity of SMS sending
private void showSendSMSActivity() { Uri uri = getIntent().getData(); if (uri == null) { return; } // get phone number where to send the SMS String ssp = uri.getSchemeSpecificPart(); String number = ContactsAccessHelper.normalizePhoneNumber(ssp); if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void SendSms()\n {\n try {\n Intent i = new Intent();\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"sms:\" + number[index])));\n startActivity(i);\n Toast.makeText(this, \"Option sms Chosen...\", Toast.LENGTH_LONG).show();\n } catch ...
[ "0.6929962", "0.68800884", "0.68291646", "0.68248904", "0.6799606", "0.67785275", "0.6677644", "0.66575223", "0.6642503", "0.6625668", "0.660957", "0.65976566", "0.65623564", "0.65580994", "0.6526286", "0.6514753", "0.6493762", "0.64837766", "0.64677995", "0.6448853", "0.6434...
0.79501146
0
Get all the osiMenuEntries.
@Transactional(readOnly = true) public List<OsiMenuEntriesDTO> findAll() { log.debug("Request to get all OsiMenuEntries"); /* List<OsiMenuEntriesDTO> result = osiMenuEntriesRepository.findAll().stream() .map(osiMenuEntriesMapper::osiMenuEntriesToOsiMenuEntriesDTO) .colle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Menu> findAllMenuList() {\n\t\treturn (List<Menu>) menuDao.findAll();\n\t}", "@Override\n\tpublic List<Menu> getAllMenu() {\n\t\treturn this.menuDao.getAllMenu();\n\t}", "@Override\n\tpublic List<Menu> getAllMainMenu() {\n\t\treturn this.menuDao.getAllMainMenu();\n\t}", "public void ...
[ "0.7033589", "0.6988856", "0.69711983", "0.6893661", "0.6498213", "0.64744866", "0.6439396", "0.6390462", "0.6344469", "0.6297982", "0.6273535", "0.6264955", "0.62478644", "0.6240475", "0.61867434", "0.6092091", "0.60893303", "0.6084586", "0.60664105", "0.602825", "0.601465",...
0.65229374
4
Get one osiMenuEntries by id.
@Transactional(readOnly = true) public OsiMenuEntriesDTO findOne(Long id) { log.debug("Request to get OsiMenuEntries : {}", id); /* OsiMenuEntries osiMenuEntries = osiMenuEntriesRepository.findOne(id); OsiMenuEntriesDTO osiMenuEntriesDTO = osiMenuEntriesMapper.osiMenuEntriesToOsiMenuEntr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Menu findMenuById(Long id) {\n\t\treturn menuDao.findOne(id);\n\t}", "public Menu consultMenuXId(int id) throws Exception {\r\n\t\treturn em.find(Menu.class, id);\r\n\t}", "UmsMenu getItem(Long id);", "public List<MenuBean> queryMenuById(String id) {\n\t\treturn menuDao.queryMenuById(id);...
[ "0.71127677", "0.68521917", "0.6683002", "0.661026", "0.6506052", "0.6457337", "0.64258623", "0.6320854", "0.6277058", "0.6258487", "0.6132344", "0.609306", "0.6071839", "0.60645854", "0.6058907", "0.60583884", "0.600347", "0.5947044", "0.590927", "0.5726863", "0.5710833", ...
0.7221644
0
Delete the osiMenuEntries by id.
public void delete(Long id) { log.debug("Request to delete OsiMenuEntries : {}", id); osiMenuEntriesRepository.delete(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(String id) throws Exception {\n\t\tmenuMapper.deleteByKey(id);\n\t}", "public boolean delete(int menuId);", "ReturnCode deleteMenus(MmtConfig cfg);", "public void delete(int id) {\n\t\tMasterMenu masterMenu=new MasterMenu();\r\n\t\tmasterMenu.setId(id);\r\n\t\tmenuDao.delete(m...
[ "0.7411595", "0.6908363", "0.66456836", "0.66418105", "0.66362506", "0.6614399", "0.6593697", "0.6536838", "0.65112376", "0.64883775", "0.6400418", "0.63561916", "0.63518965", "0.6320923", "0.62759995", "0.6097095", "0.6089249", "0.6064864", "0.6050338", "0.60394007", "0.6001...
0.8423527
0
This method initializes jPanelListaCamaras
public FrmListaCamaras(SipManager manager,FrmPrincipal parent){ super(); setParent(parent); sipManager = manager; //instancio un objeto directorio File directorio = new File( System.getProperty("user.dir") + File.separator + sipManager.getUserName() ); //lo creo fisicamente en el filesystem ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel getJPanelCamaras() {\r\n\t\tif (jPanelCamaras == null) {\r\n\t\t\tjPanelCamaras = new JPanel();\r\n\t\t\tjPanelCamaras.setLayout(new BorderLayout());\r\n\t\t\tjPanelCamaras.add(getJScrollPaneListaCamaras(), java.awt.BorderLayout.CENTER);\r\n\t\t}else{\r\n\t\t\tjPanelCamaras.removeAll();\r\n\t\t\tjPa...
[ "0.7450866", "0.74295336", "0.6963774", "0.67992944", "0.67398614", "0.6676982", "0.665195", "0.65393734", "0.65372956", "0.65118474", "0.64962167", "0.6493431", "0.64592254", "0.64402676", "0.6424154", "0.63948935", "0.6373761", "0.63610536", "0.6361012", "0.63595617", "0.63...
0.0
-1
This method initializes jPanelCamaras
private JPanel getJPanelCamaras() { if (jPanelCamaras == null) { jPanelCamaras = new JPanel(); jPanelCamaras.setLayout(new BorderLayout()); jPanelCamaras.add(getJScrollPaneListaCamaras(), java.awt.BorderLayout.CENTER); }else{ jPanelCamaras.removeAll(); jPanelCamaras.add(getJScrollPaneListaCama...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public visualizar_camas() {\n initComponents();\n }", "private void init(){\n panel_principal = new JPanel();\r\n panel_principal.setLayout(new BorderLayout());\r\n //EN EL NORTE IRA LA CAJA DE TEXTO\r\n caja = new JTextField();\r\n panel_principal.add(\"North\",caja)...
[ "0.76937175", "0.7193048", "0.71684444", "0.7111173", "0.7041185", "0.670551", "0.6672071", "0.6641593", "0.6640501", "0.66376865", "0.66188514", "0.6613611", "0.66088176", "0.658344", "0.6576216", "0.65374315", "0.6525195", "0.6521432", "0.651396", "0.6501637", "0.6497622", ...
0.75469196
1
This method initializes jPanelVisualizar
private JPanel getJPanelVisualizar() { if (jPanelVisualizar == null) { jPanelVisualizar = new JPanel(); jPanelVisualizar.setBorder(javax.swing.BorderFactory.createMatteBorder(2,0,0,0,java.awt.Color.gray)); jPanelVisualizar.add(getJButtonVisualizar(), null); } return jPanelVisualizar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vistaPanelPelicula() {\r\n initComponents();\r\n }", "public VisualizarLlamada() {\n initComponents();\n }", "public Visualizador() {\n initComponents();\n inicializar();\n }", "protected final void setPanelDatos(){\n panel_datos.setBackground(fondo);\n ...
[ "0.7441649", "0.7303205", "0.72848475", "0.7041908", "0.70116174", "0.696974", "0.6902505", "0.6888697", "0.6857024", "0.68172663", "0.67227954", "0.6721325", "0.6720156", "0.6716574", "0.66969305", "0.6682622", "0.6682104", "0.6665912", "0.66648525", "0.6661005", "0.6658704"...
0.73259765
1
This method initializes jButtonVisualizar
private JButton getJButtonVisualizar() { if (jButtonVisualizar == null) { jButtonVisualizar = new JButton(); jButtonVisualizar.setText("Visualizar"); jButtonVisualizar.setIcon(new ImageIcon(getClass().getResource("img" + File.separator + "run.gif"))); jButtonVisualizar.addActionListener(this); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VisualizarLlamada() {\n initComponents();\n }", "public Visualizador() {\n initComponents();\n inicializar();\n }", "private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n\n setLayout(new java.awt.BorderLayout());\n\n org.openide.awt.M...
[ "0.73574555", "0.71326756", "0.70697623", "0.6985587", "0.69700664", "0.69682413", "0.696753", "0.68188834", "0.6807953", "0.6746474", "0.67377883", "0.6651282", "0.66088027", "0.6590011", "0.65553015", "0.65545064", "0.65461636", "0.65452117", "0.65448624", "0.6543892", "0.6...
0.7481434
0
This method initializes jListCamaras
public JList getJListCamaras() { camaras = xmlParser.getCamaras(fileXmlCamaras); // String data[] = new String[camaras.size()]; Iterator iterator = camaras.iterator(); String cam = null; String user = null; String domain = null; int sipCon = 0; DefaultListModel model = new DefaultListModel();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JScrollPane getJScrollPaneListaCamaras() {\r\n\t\tif (jScrollPaneListaCamaras == null) \r\n\t\t\tjScrollPaneListaCamaras = new JScrollPane();\r\n\t\t\t\t\r\n\t\tjScrollPaneListaCamaras.setViewportView(getJListCamaras());\r\n\t\t\t\t\r\n\t\treturn jScrollPaneListaCamaras;\r\n\t}", "public void inicializar...
[ "0.6495091", "0.64889884", "0.64022887", "0.64012307", "0.6383852", "0.63785696", "0.636021", "0.63442916", "0.6277706", "0.6239621", "0.62263924", "0.6160508", "0.61562395", "0.6148416", "0.61426395", "0.61233395", "0.6114069", "0.6105009", "0.61022127", "0.60708374", "0.605...
0.670464
0
This method initializes jScrollPaneListaCamaras
private JScrollPane getJScrollPaneListaCamaras() { if (jScrollPaneListaCamaras == null) jScrollPaneListaCamaras = new JScrollPane(); jScrollPaneListaCamaras.setViewportView(getJListCamaras()); return jScrollPaneListaCamaras; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tfrmEjemploUsoListas = new JFrame();\n\t\tfrmEjemploUsoListas.setTitle(\"Ejemplo uso listas\");\n\t\tfrmEjemploUsoListas.setBounds(100, 100, 447, 260);\n\t\tfrmEjemploUsoListas.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmEjemploUsoListas.getContentPane().setLayout(null);...
[ "0.666158", "0.66245663", "0.66079956", "0.6452163", "0.6382718", "0.633072", "0.62684983", "0.6266406", "0.6237475", "0.6221906", "0.6215706", "0.6207228", "0.6184636", "0.6176553", "0.61751634", "0.61665016", "0.61622936", "0.615639", "0.6144125", "0.6120503", "0.61106193",...
0.7791098
0
This method initializes jPopupMenuCamaras
private JPopupMenu getJPopupMenuCamaras() { if (jPopupMenuCamaras == null) { jPopupMenuCamaras = new JPopupMenu(); jPopupMenuCamaras.add(getJMenuItemEliminarCamara()); jPopupMenuCamaras.add(getJMenuItemAgregarCamara()); jPopupMenuCamaras.add(getJMenuItemPropiedadesCamara()); jPopupMenuCamaras.add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\r\n jPopupMenuCrosstabReporteElement = new javax.swing.JPopupMenu();\r\n jMenuItemElementProperties = new javax.swing.JMenuItem();\r\n jMenuItemCrosstabProperties = new javax.swing.JMenuItem();\r\n jMenuItemCellProperties = new javax.swing.JMenuItem();\r\...
[ "0.7659702", "0.7497818", "0.74863446", "0.7448134", "0.71538377", "0.710594", "0.70867485", "0.7085464", "0.70764685", "0.70429003", "0.7032004", "0.69857496", "0.68866646", "0.6869212", "0.68630284", "0.68610895", "0.6858506", "0.6843235", "0.68144053", "0.67703813", "0.674...
0.7905461
0
This method initializes jMenuItemEliminarCamara
private JMenuItem getJMenuItemEliminarCamara() { if (jMenuItemEliminarCamara == null) { jMenuItemEliminarCamara = new JMenuItemDeleteCameraPopup(); jMenuItemEliminarCamara.setText("Eliminar"); jMenuItemEliminarCamara.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jMenuItemEliminarCama...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MenuCriarArranhaCeus() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jpAlteracoesSistema = new javax.swing.JPanel();\n jLabel1...
[ "0.68301517", "0.67661214", "0.65831757", "0.6566522", "0.6558478", "0.6552842", "0.652504", "0.6521723", "0.6488762", "0.648563", "0.6480987", "0.64695597", "0.6460831", "0.6427703", "0.64191645", "0.6413425", "0.63987875", "0.63773125", "0.63599026", "0.63572234", "0.635224...
0.74024254
0
This method initializes jMenuItemAgregar
private JMenuItem getJMenuItemAgregarCamara() { if (jMenuItemAgregarCamara == null) { jMenuItemAgregarCamara = new JMenuItemAddCamera(); jMenuItemAgregarCamara.setText("Nueva camara"); jMenuItemAgregarCamara.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jMenuItemAgregarCamara.addActi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs...
[ "0.7382872", "0.72876024", "0.7201563", "0.7098213", "0.7091883", "0.70635754", "0.7003775", "0.6989362", "0.6977057", "0.69643515", "0.6934286", "0.69250625", "0.69193715", "0.6894101", "0.68924403", "0.6862193", "0.68400973", "0.6836391", "0.68262446", "0.6806304", "0.68063...
0.70885944
5
Este metodo atiende el evento generado al precionar el boton visualizar
public void actionPerformed(ActionEvent arg0) { if(list.getSelectedIndex()<0) return; ThrDialogInviter dialogInvite = new ThrDialogInviter(sipManager,getParent()); ListItem item = (ListItem) list.getModel().getElementAt(list.getSelectedIndex()); dialogInvite.setNombreUsuario(item.getValue()); dialogI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "private void createEvents() {\n\t\tbtnRetour.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tDashboard_Preteur dashboard_Preteur = new Dashboard_Preteur(currentPreteur)...
[ "0.69770545", "0.6780707", "0.65225995", "0.6418946", "0.63548625", "0.6331124", "0.6167522", "0.61318606", "0.61003083", "0.6073664", "0.60622716", "0.60517484", "0.59735996", "0.5965645", "0.59368277", "0.5927607", "0.5925158", "0.5919742", "0.5893459", "0.58843416", "0.588...
0.0
-1
Set the attributes of the class and return a reference
public Component getListCellRendererComponent( JList list, Object value, // value to display int index, // cell index boolean iss, // is selected boolean chf) // cell has focus? { // Set the text and //background color for rendering se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\npublic void setAttributes() {\n\t\n}", "public static void initializeClassAttributes() {\n\t\tAboraSupport.findAboraClass(IntegerVarArray.class).setAttributes( new Set().add(\"CONCRETE\").add(\"PSEUDOCOPY\"));\n\t}", "@Override\n\tpublic void buildAttributes(JDefinedClass cls) {\n\n\t}", "public A...
[ "0.63267857", "0.62379825", "0.6027198", "0.5694277", "0.5655868", "0.5637243", "0.5632792", "0.56294453", "0.5608523", "0.5608523", "0.55971944", "0.5582508", "0.55736", "0.55096847", "0.5500654", "0.5498312", "0.54524803", "0.5451365", "0.5442952", "0.54000884", "0.5387654"...
0.0
-1
Creates a new SeekInfoStruct with the specified arguments.
public SeekInfoStruct( boolean canAcceptSeek, int index, String name, int titles, int rating, char provshow, int time, int inc, boolean isRated, String matchType, char color, int minRating, int maxRating, boolean isAutomaticAccept, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FileInfo create(FileInfo fileInfo);", "public FileInfo(FileInfo v)\n \t{\n \t\ttitle = v.title;\n \t\tauthors = v.authors;\n \t\tseries = v.series;\n \t\tseriesNumber = v.seriesNumber;\n \t\tpath = v.path;\n \t\tfilename = v.filename;\n \t\tpathname = v.pathname;\n \t\tarcname = v.arcname;\n \t\tformat = v.forma...
[ "0.5276729", "0.5248036", "0.524173", "0.49146116", "0.4871119", "0.4709729", "0.45611894", "0.45585462", "0.45018935", "0.44675654", "0.44658512", "0.44562742", "0.44534335", "0.44419548", "0.43966895", "0.4389048", "0.43830016", "0.4370584", "0.43407285", "0.4340018", "0.43...
0.6251545
0
Parses the given seekinfo line and returns a corresponding SeekInfoStruct object. Here's an example seekinfo line: 29 w=Snaps ti=02 rt=1532 t=1 i=0 r=r tp=lightning c=? rr=09999 a=t f=t If the seek cannot be accepted by the user, the line identifier is "" and not "". More information about the format is available in th...
public static SeekInfoStruct parseSeekInfoLine(String line) { StringTokenizer tokens = new StringTokenizer(line, " -="); boolean canAcceptSeek; String identifier = tokens.nextToken(); if (identifier.equals("<s>")) // Skip the <s> identifier canAcceptSeek = true; else if (identifier.equals("<sn>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean handleSeekAdded(String line){\n if (!(line.startsWith(\"<s> \") || line.startsWith(\"<sn> \")))\n return false;\n \n SeekInfoStruct seekInfo = SeekInfoStruct.parseSeekInfoLine(line);\n\n if (!processSeekAdded(seekInfo))\n processLine(line);\n\n return true;\n }", "public...
[ "0.6027012", "0.5619389", "0.52507794", "0.51545215", "0.5009748", "0.49440825", "0.47447252", "0.47369248", "0.47303072", "0.47110656", "0.4679831", "0.46793568", "0.46628144", "0.46185762", "0.46178317", "0.46118453", "0.46028087", "0.46020982", "0.45855102", "0.4584461", "...
0.77202165
0
Checks that the next token for the given StringTokenizer is the specified String. Throws an IllegalArgumentException if it isn't.
private static void assertToken(StringTokenizer tokenizer, String token) { String realToken = tokenizer.nextToken(); if (!realToken.equals(token)) throw new IllegalArgumentException( "Bad token \"" + realToken + "\", expected \"" + token + "\" instead"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkToken(String token) throws InvalidTokenException;", "@Test\n\tpublic final void testNextToken() {\n\t\tst = new StringTokenizer(testString,\":\");\n\t\tString token = st.nextToken();\n\t\tString secondToken = st.nextToken();\n\t\tSystem.out.println(\"1. token = \" + token);\n\t\tSystem.out.println(\"2....
[ "0.64910716", "0.6064823", "0.5948057", "0.5728287", "0.5586231", "0.54827255", "0.54493695", "0.54465795", "0.54436123", "0.5430024", "0.54130185", "0.54119086", "0.5349141", "0.53309166", "0.5312934", "0.52425843", "0.521924", "0.51971614", "0.5166873", "0.51639104", "0.505...
0.677947
0
Returns true if the user account can accept the seek, returns false otherwise.
public boolean canAcceptSeek() { return getBooleanProperty("CanAcceptSeek"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isAccepting();", "boolean canAcceptTrade();", "boolean isSeekable();", "public boolean attempt(CommandSender sender) {\n boolean allowed = test(sender);\n if (!allowed) {\n sender.sendMessage(NO_PERMISSION);\n }\n return allowed;\n }", "private boolean isFi...
[ "0.628208", "0.60740066", "0.59024215", "0.58644354", "0.58468074", "0.57935315", "0.56990683", "0.5649587", "0.56450975", "0.56186146", "0.5589678", "0.55889124", "0.558268", "0.55659866", "0.5553675", "0.5544617", "0.5541661", "0.55383724", "0.55270576", "0.55270576", "0.55...
0.67032266
0
Returns the index of the seek.
public int getSeekIndex() { return getIntegerProperty("Index"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSeekPosition() {\n if(mMediaPlayer != null) {\n return mMediaPlayer.getCurrentPosition();\n }\n return 0;\n }", "@Override\n public long position() throws IOException {\n return _backing.getFilePointer() - _head.offset;\n }", "@DISPID(4) //= 0x4. Th...
[ "0.7167675", "0.69379145", "0.67218715", "0.66771924", "0.6596892", "0.6552746", "0.65497595", "0.65393853", "0.6513547", "0.6472665", "0.6439891", "0.6403668", "0.6392125", "0.63886464", "0.6314754", "0.6276277", "0.62431365", "0.62386876", "0.62369007", "0.6232431", "0.6209...
0.7992567
0
Returns the handle of the seeking player.
public String getSeekerHandle() { return getStringProperty("Name"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSeekPosition() {\n if(mMediaPlayer != null) {\n return mMediaPlayer.getCurrentPosition();\n }\n return 0;\n }", "public int getCurrentPlayerRealPosition();", "void seeked(MediaElementPlayer player);", "public final static PlayerHandler getPlayerHandler() {\r\n...
[ "0.64206797", "0.5931514", "0.5749211", "0.5687042", "0.56709796", "0.5552869", "0.5503187", "0.5503187", "0.5470153", "0.54591346", "0.5444882", "0.540732", "0.5344317", "0.53361404", "0.53361404", "0.53361404", "0.5334138", "0.53006405", "0.53006405", "0.53006405", "0.52733...
0.50239426
61
Returns the titles of the seeking player, ORed into an int. To find whether the player is GM, for example, use (getSeekerTitles() & SeekInfoStruct.GM) != 0.
public int getSeekerTitles() { return getIntegerProperty("Titles"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getPadTitles() {\r\n return getAttributeAsBoolean(\"padTitles\");\r\n }", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "@Override\n\tpublic int getTitle() {\n\t\t...
[ "0.5288658", "0.5133649", "0.5133649", "0.5133649", "0.5133649", "0.5133649", "0.5091312", "0.5089874", "0.50620466", "0.50596875", "0.50529623", "0.50436306", "0.49682146", "0.49221224", "0.48862788", "0.48522186", "0.48506448", "0.47985795", "0.47748336", "0.47685775", "0.4...
0.6409474
0
Returns the seeker's rating.
public int getSeekerRating() { return getIntegerProperty("Rating"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getRating();", "public double getRating() {\n return rating_;\n }", "public double getRating() {\n return rating_;\n }", "public Integer getGivenRating() {\n\t\treturn givenRating;\n\t}", "public double getRating(){\n\t\treturn this.rating;\n\t}", "public double getRating() {\n...
[ "0.7878892", "0.7800804", "0.77983", "0.7782004", "0.7764183", "0.7729442", "0.77108943", "0.7704953", "0.7661056", "0.76555973", "0.76555973", "0.7609544", "0.7600176", "0.7479287", "0.74452555", "0.74399805", "0.74348146", "0.72597957", "0.7190853", "0.7163436", "0.71633506...
0.82526827
0
Returns the seeker rating's provshow character. 'E' if the rating is estimated, 'P' if provisional, and ' ' if neither.
public char getSeekerProvShow() { return getCharProperty("ProvShow"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char getRepresentative_letter(){\n\t\treturn representative_letter;\n\t}", "public char getGrade() {\n if (super.getGrade() == 'F') return 'F';\n else return 'P';\n }", "public String getRating() {\r\n\t\tswitch (rating) {\r\n\t\tcase \"high\":\r\n\t\t\treturn \"high\";\r\n\t\tcase \"medi...
[ "0.5615365", "0.56105864", "0.55001765", "0.5497826", "0.5482375", "0.54776204", "0.54384357", "0.5419623", "0.5411426", "0.5410136", "0.53979194", "0.5376663", "0.53754413", "0.53675365", "0.5329591", "0.5318293", "0.5268648", "0.52609", "0.52564204", "0.5250694", "0.5230063...
0.738662
0
Returns the initial time of the sought match, in minutes.
public int getMatchTime() { return getIntegerProperty("Time"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public double getMatchTime() {\n return MATCH_DURATION_IN_SECONDS;\n }", "private int getMinute() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn In...
[ "0.6619592", "0.64781094", "0.6324364", "0.61747485", "0.6172503", "0.61695224", "0.61652195", "0.6075435", "0.6067245", "0.6034577", "0.60317075", "0.5986693", "0.5914064", "0.5877407", "0.5857059", "0.5841422", "0.58154833", "0.5809005", "0.58048177", "0.57939965", "0.57722...
0.6915609
0
Returns the increment of the sought match, in seconds.
public int getMatchIncrement() { return getIntegerProperty("Increment"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSecondsPassed()\n {\n return this.seconds;\n }", "@Override\n public int getTimeForNextTicInSeconds() {\n int seconds = Calendar.getInstance().get(Calendar.SECOND);\n return 60 - seconds;\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t...
[ "0.6336773", "0.6277276", "0.625938", "0.6192829", "0.6126613", "0.60673", "0.6063039", "0.6030428", "0.60142475", "0.6004099", "0.5965952", "0.59638566", "0.59254396", "0.5884006", "0.5824617", "0.57957083", "0.57802415", "0.5739942", "0.5734223", "0.5726821", "0.569965", ...
0.68469054
0
Returns true if the sought match is rated, false otherwise.
public boolean isMatchRated() { return getBooleanProperty("IsRated"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkiFRated(int newRate){\r\n\r\n\t\t//! ask the server if the user already voted this\r\n\t\treturn(FLAG_RATED);\r\n\t}", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }", "boolean ...
[ "0.6217683", "0.61116844", "0.60210645", "0.5963951", "0.59246725", "0.59191644", "0.5865156", "0.5843078", "0.5840975", "0.5803149", "0.5747314", "0.5743028", "0.57352614", "0.5707922", "0.5701171", "0.5687659", "0.567835", "0.5670619", "0.5664833", "0.5664047", "0.5660353",...
0.82312876
0
Returns the sought game type. Either the name of the wild variant, or the rating type, if the variant is chess. For example "suicide", "lightning", "blitz" etc.
public String getMatchType() { return getStringProperty("MatchType"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getGameType() {\n return gameType;\n }", "public static String choiceType(int choice) {\n String type = new String();\n switch(choice) {\n case rock: type = \"rock\"; break;\n case paper: type = \"paper\"; break;\n case scissors: type = \"sci...
[ "0.64206165", "0.62394345", "0.6198489", "0.60962856", "0.60755455", "0.6036182", "0.5994566", "0.5805334", "0.5780283", "0.5728858", "0.5643926", "0.5629242", "0.55752796", "0.5550595", "0.5531684", "0.5494899", "0.5413709", "0.5413709", "0.53994477", "0.5395729", "0.5378949...
0.520811
62
Returns a character specifying the desired color for the seeker. 'W' if white, 'B' if black, and '?' if the seeker doesn't care.
public char getSeekerColor() { return getCharProperty("RequestedColor"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wK\";\n\t\t}else{\n\t\t\treturn \"bK\";\n\t\t}\n\t}", "public char getColor();", "private String singleChar(RubiksColor color) {\n switch(color) {\n case RED:\n return \"R\";\n case G...
[ "0.70410013", "0.6746115", "0.6575284", "0.65429354", "0.64876586", "0.6282078", "0.62684244", "0.62337625", "0.6163574", "0.61022955", "0.60879105", "0.60475695", "0.5879213", "0.5858791", "0.585155", "0.5839851", "0.58006513", "0.57981855", "0.5746472", "0.5725208", "0.5719...
0.74649245
0
Returns the minimum rating of the desired opponent.
public int getOpponentMinRating() { return getIntegerProperty("MinRating"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinRating() {\n return minRating;\n }", "public double getMinRating() {\n return min;\n }", "public int minimum_rating() {\n\t\tint minimumRating = 0;\n\t\tfor(int i = 0; i<identifiedArray.length;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tminimumRating = identifiedArray...
[ "0.75926983", "0.757478", "0.7285955", "0.6753551", "0.66415465", "0.6586108", "0.65601087", "0.6396299", "0.6346611", "0.6323127", "0.6295433", "0.6290848", "0.6282604", "0.62804335", "0.62764657", "0.62747824", "0.62598693", "0.62584955", "0.62442493", "0.6240024", "0.62241...
0.8404688
0
Returns the maximum rating of the desired opponent.
public int getOpponentMaxRating() { return getIntegerProperty("MaxRating"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMaxRating() {\n return max;\n }", "public int getMaxRating() {\n return maxRating;\n }", "public double getMaximumScore() {\n return 0.9; // TODO: parameter\n }", "public int getOpponentMinRating() {\n return getIntegerProperty(\"MinRating\");\n }", "public int getBes...
[ "0.7624016", "0.75922173", "0.6926438", "0.69191265", "0.6603418", "0.65620685", "0.6486307", "0.6479947", "0.64777285", "0.6465327", "0.6431552", "0.6374261", "0.63258696", "0.632056", "0.6314889", "0.62925893", "0.6278811", "0.6272124", "0.62468314", "0.6238857", "0.6226551...
0.83682764
0
Returns true if the match will be accepted automatically, false if the seeker must confirm it manually.
public boolean isAutomaticAccept() { return getBooleanProperty("IsAutomaticAccept"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isAccepting();", "public boolean isAccepting() {\n\t\treturn isAccepting;\n\t}", "boolean getAccepted();", "public boolean accepted() {\r\n\r\n return m_bAccepted;\r\n\r\n }", "boolean supportsAccepts();", "public boolean getAccepted()\n {\n return accepted;\n }", "public bo...
[ "0.68866056", "0.6418277", "0.63096845", "0.63045466", "0.62614906", "0.6099184", "0.60656035", "0.60526603", "0.6034055", "0.595873", "0.5908712", "0.59058607", "0.58762544", "0.58374274", "0.58139575", "0.5795753", "0.5758343", "0.57506746", "0.5741313", "0.5731936", "0.572...
0.6921325
0
Returns true if in order to accept the seek, one must pass the formula of the seeker. Returns false otherwise.
public boolean isFormulaUsed() { return getBooleanProperty("IsFormulaUsed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canAcceptSeek() {\n return getBooleanProperty(\"CanAcceptSeek\");\n }", "public boolean takeControl() {\n\t\tif (Squirrel.us.getDistance() <= 30 && Squirrel.notDetected)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Override\n public boolean isFinished() {\n double[] positi...
[ "0.6488394", "0.62123835", "0.6042528", "0.5957924", "0.59571886", "0.5830126", "0.581362", "0.57375985", "0.5733135", "0.57086134", "0.57049316", "0.56811696", "0.5680257", "0.56789285", "0.56774306", "0.56747985", "0.5671545", "0.56699884", "0.56422484", "0.56250083", "0.56...
0.0
-1
Created by ejdej on 20170515.
public interface BoardService { class Post{ int id; int user; String title; String text; String post_date; } class Comment{ int id; int post; int user; String text; String post_date; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.5969385", "0.587134", "0.5798741", "0.5737226", "0.5701215", "0.5670672", "0.5670672", "0.56457204", "0.56152946", "0.5608512", "0.5592419", "0.55875146", "0.558475", "0.55841285", "0.55720353", "0.55590004", "0.5551825", "0.55454576", "0.5532526", "0.5527923", "0.5527923"...
0.0
-1
Constructor recomendado para crear un objeto del tipo.
public Cilindro(int idCilindro, int idCombustible, double longitud, double radio, String codigo, String combustible, double volumenFijo) { this.idCilindro = idCilindro; this.idCombustible = idCombustible; this.longitud = longitud; this.radio = radio; this.codigo = codigo; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TCubico(){}", "public Type() {\n super();\n }", "public Classe() {\r\n }", "Type() {\n }", "public org.python.types.Type __new__(org.python.types.Type cls);", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "private SingleObject(){}", "...
[ "0.690542", "0.6808631", "0.675881", "0.6666479", "0.66600907", "0.66358733", "0.6618839", "0.6609607", "0.6586782", "0.65796155", "0.65752596", "0.655393", "0.65125626", "0.6488463", "0.6456903", "0.6418162", "0.6416712", "0.64149976", "0.6413881", "0.6406042", "0.63998073",...
0.0
-1
Constructor for the Note, which calls helper methods
public Note(int note, char accidental, Pane notePane) { _note = note; _accidental = accidental; _accidentalImage = new ImageView(); this.setUpLedger(); this.setUpNote(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Note() {\n\t\tsuper();\n\t}", "public Note() {\n }", "public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }", "private Notes() {}", "public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\...
[ "0.8409291", "0.82036054", "0.80571955", "0.7998051", "0.7730359", "0.7557235", "0.7541554", "0.7473878", "0.71770674", "0.7022395", "0.68975854", "0.68467695", "0.6843614", "0.68016666", "0.67813283", "0.6757427", "0.67518157", "0.6725902", "0.66644067", "0.66539615", "0.660...
0.6760929
15
Instantiate the note head and set its location based on the pitch it represents. Only set the ledger line if the note is below or above the staff; only set the staff line if it's a note on a staff line, so that it doesn't seem to cover up the staff since whole notes are "transparent"; only set the accidental if the not...
private void setUpNote() { _noteHead = new Ellipse(Constants.NOTE_HEAD_WIDTH, Constants.NOTE_HEAD_HEIGHT); _noteHead.setFill(Color.WHITE); _noteHead.setStroke(Color.BLACK); _noteHead.setStrokeWidth(Constants.STROKE_WIDTH); _noteHead.setCenterX(Constants.NOTE_X_LOC); // sw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Point getHeadLocation (Note note)\r\n {\r\n return new Point(tailLocation.x, note.getReferencePoint().y);\r\n }", "@Override\n default void prependPitchRotation(double pitch)\n {\n AxisAngleTools.prependPitchRotation(pitch, this, this);\n }", "public void setPitch(int pitch) {\n...
[ "0.66566384", "0.5873616", "0.5832793", "0.5716843", "0.5663842", "0.5612226", "0.55683947", "0.55124843", "0.5460502", "0.54176974", "0.5400649", "0.53940576", "0.53750986", "0.5341078", "0.53278077", "0.5261533", "0.52592003", "0.525127", "0.5249246", "0.5248139", "0.523795...
0.7340109
0
helper method to set up the accidental image is a sharp
private void setUpSharp() { Image sharp = new Image(this.getClass().getResourceAsStream("Sharp.png")); _accidentalImage.setImage(sharp); _accidentalImage.setFitHeight(26); _accidentalImage.setFitWidth(26); _accidentalImage.setX(_noteHead.getCenterX() + Constants.SHARP_X_OFFSET); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getSharp();", "private void enhanceImage(){\n }", "public Image getBassClef();", "private void change_im_check(boolean boo){\r\n if(boo){ //IMAGEN SI EL MEASURE ES CORRECTO\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n ...
[ "0.62582684", "0.6224802", "0.61823404", "0.60513747", "0.60423595", "0.60091245", "0.58783394", "0.5847517", "0.58276033", "0.5756714", "0.5755266", "0.5746544", "0.5706698", "0.57037115", "0.5671047", "0.5669611", "0.5662404", "0.5605469", "0.55974156", "0.5590521", "0.5577...
0.75792253
0
helper method to set up the accidental image as a flat
private void setUpFlat() { Image flat = new Image(this.getClass().getResourceAsStream("Flat.png")); _accidentalImage.setImage(flat); _accidentalImage.setFitHeight(25); _accidentalImage.setFitWidth(12.5); _accidentalImage.setX(_noteHead.getCenterX() + Constants.FLAT_X_OFFSET); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpSharp() {\n Image sharp = new Image(this.getClass().getResourceAsStream(\"Sharp.png\"));\n _accidentalImage.setImage(sharp);\n _accidentalImage.setFitHeight(26);\n _accidentalImage.setFitWidth(26);\n _accidentalImage.setX(_noteHead.getCenterX() + Constants.SHARP...
[ "0.66690373", "0.6221073", "0.61528736", "0.6001227", "0.6000641", "0.58018327", "0.57285863", "0.57102245", "0.570371", "0.56908476", "0.567898", "0.567674", "0.56408733", "0.56340456", "0.56129587", "0.55637753", "0.5546849", "0.54962325", "0.54958326", "0.5477832", "0.5459...
0.79812723
0
helper method to set up the ledger line
private void setUpLedger() { _ledgerLine = new Line(); _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH); _staffLine = new Line(); _staffLine.setStrokeWidth(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void convertLeadLines(String... params) {\n // Set menu for the new Opportunity creation\n if (params.length == 0) {\n setMenuLines(\"\", 1, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21);\n setMenuLines(HIGHLIGHT_COLOR + \"Create New Opportunity\" + HIGHLIGHT_...
[ "0.6029784", "0.58773404", "0.58052313", "0.5803726", "0.56437844", "0.5632299", "0.5498426", "0.5478265", "0.5462942", "0.5409957", "0.53946054", "0.5383237", "0.53399515", "0.53397244", "0.5338718", "0.53380495", "0.5324543", "0.5323644", "0.527725", "0.52649283", "0.524883...
0.7403314
0
getter methods for the notehead, ledgerline, staffline, accidental, note (represented by integer), and notename
public Ellipse getHead() { return _noteHead; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNotes();", "java.lang.String getNotes();", "@Import(\"notedTemplate\")\n\tint getNote();", "String getNotes();", "String get_note()\n {\n return note;\n }", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public Note getNote() {\n\t \n\t //returns the objected...
[ "0.7021326", "0.7021326", "0.69165814", "0.68722105", "0.6801382", "0.6783941", "0.67492515", "0.6741219", "0.67206144", "0.6720445", "0.67203444", "0.669226", "0.669226", "0.6677822", "0.6637757", "0.6631768", "0.6599888", "0.6599888", "0.6599888", "0.6599888", "0.6599888", ...
0.5580292
92
TODO: Interest and provision rules
@PostMapping("/createAccount") public ModelAndView createNewAccount(AccountCreateDTO createDTO){ ModelAndView modelAndView = new ModelAndView(); accountService.createAccount(createDTO); modelAndView.addObject("successMessage", "Account has been created"); modelAndView.setViewName("a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Ove...
[ "0.61282617", "0.6122306", "0.60772556", "0.6064552", "0.6025996", "0.5984138", "0.59497035", "0.5945616", "0.5930354", "0.59257275", "0.59257275", "0.59257275", "0.5892504", "0.5792795", "0.5785837", "0.5735403", "0.5699749", "0.569647", "0.56790954", "0.56767976", "0.565730...
0.0
-1
This constructor will be used to start the execution of a ScratchTab stack. To start the execution of an Executable and it's successors just create an ExecutionHandler. The GUI Thread will create the ExecutionHander as answer to an event, which is defined to start the stack execution, e.g. double tap.
public ExecutionHandler(final Executable<E> executable, Activity guiThreadActivity){ //save the root executable rootExecutable=executable; //check if already running if(allExecutablesInProcess.contains(executable)){ return; } //remember the gui thread activity to run UI operations on it's ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Interpreter() {\n super();\n instructionsStack.push(new ArrayList<>());\n }", "public void start() {\n\t\tstack = new Stack<>();\t\t\n\t}", "public OpStack() {\n opStack = new Stack();\n }", "public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top ...
[ "0.59929395", "0.53826165", "0.53059167", "0.5288437", "0.5231749", "0.52108383", "0.52037096", "0.5166134", "0.5145826", "0.5074876", "0.5072212", "0.5065315", "0.5063907", "0.5021585", "0.49914336", "0.498562", "0.4957329", "0.49366915", "0.49282202", "0.49039835", "0.48948...
0.6268886
0
first reset the stack of executables, so their signalization is set back, if the stack was executed earlier and failed
@Override public void run() { rootExecutable.feedbackDisable(); if(executable instanceof ViewGroup){recursivelyResetExecutables((ViewGroup)rootExecutable);} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void reset() {\n\t\tstack.clear();\n\t}", "public void reset()\n {\n handler = new StackDynamic<T>(restart);\n }", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return true;\n}", "final boolean init_stacks()\n{\n stateptr = -1;\n val_init();\n return ...
[ "0.6210483", "0.6198085", "0.593515", "0.593515", "0.593515", "0.5933702", "0.59044695", "0.57202107", "0.5697297", "0.56589574", "0.56191", "0.55901194", "0.55783784", "0.5577342", "0.5474984", "0.5455636", "0.5455195", "0.54109687", "0.5394714", "0.5385827", "0.53537863", ...
0.51469636
38
give feedback about Executable's state
@Override public void run() { executable.feedbackExecutionProcessRunning(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void logPrgStateExec() throws FileNotFoundException, IOException;", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}", "ProgramState execute(ProgramState state) ;", "protected String status() {\n if (!hasStarted() && !hasRun()) {\n return \"...
[ "0.6256809", "0.61817133", "0.59510154", "0.58569324", "0.57126117", "0.57009614", "0.5663653", "0.5641163", "0.5582376", "0.55817246", "0.55784774", "0.55662227", "0.55485404", "0.5534803", "0.5534631", "0.5519011", "0.55163777", "0.5502936", "0.5501665", "0.54877794", "0.54...
0.6594441
0
if we are here, than no Exception occurred during the execution yuppiaieee!
@Override public void run() { executable.feedbackDisable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n ...
[ "0.67973375", "0.67973375", "0.67973375", "0.67973375", "0.67973375", "0.66939443", "0.65376", "0.6442525", "0.6319905", "0.62908226", "0.62727624", "0.62485474", "0.6189077", "0.61602145", "0.61602145", "0.61421996", "0.61216056", "0.6111673", "0.6106406", "0.60881037", "0.6...
0.0
-1
if we are here, than an Exception has occurred during the execution!
@Override public void run() { executable.feedbackExecutionError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute()\n/* */ throws Pausable, Exception\n/* */ {\n/* 378 */ errNotWoven(this);\n/* */ }", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia...
[ "0.6805835", "0.6652405", "0.6376278", "0.6376278", "0.6376278", "0.6376278", "0.6376278", "0.63620454", "0.6361109", "0.6345448", "0.62919974", "0.627672", "0.62675714", "0.62346834", "0.6231908", "0.61990327", "0.6189096", "0.6189096", "0.61337817", "0.6132253", "0.61194545...
0.65018475
2
This is the second most important execution method :) This method will be called by an Executable, when it is ready with whatever it was doing and wants to pass the execution process to the next executable This method will check do all the necessary checks about the Slot, if it's empty, if it contains an executable...
public <T> T executeExecutable(Slot<?,T> slotContainsNextExecutable){ //if slot doesn't exist - return if(slotContainsNextExecutable == null) return null; else{ //otherwise try to execute the slot as next executable Executable<T> nextExecutable = (Executable<T>)slotContainsNextExecutable; return th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\tif ((phase == 0) && (pState.equals(\"ru\"))) {\t\n\t\t\tPyOS.askForResource(PyOS.waitingList6, 6);\n\t\t\tneededResource = 6;\n\t\t\tphase = 1;\n\t\t}\n\t\t//2) asks for supervisor memory\n\t\tif ((phase == 1) && (receivedResource == 6) && (pState.equals(\"ru\"))) {\t\n\t\t\tPyOS.askForRes...
[ "0.5831439", "0.58110327", "0.5736536", "0.5688859", "0.56643414", "0.5644633", "0.5644167", "0.5448105", "0.544541", "0.5437716", "0.53999126", "0.53904647", "0.5387047", "0.5330487", "0.5316211", "0.53065586", "0.5287155", "0.5286623", "0.52511793", "0.52396184", "0.5232889...
0.6708117
0
used to stop a concrete given thread
public static void stopExecutionHandler(final ExecutionHandler<?> execHandler){ //first interrupt the ExecutionHandler, which is a thread execHandler.interrupt(); //and now let every executable, which was executed on this thread disable the "i'm running" signal AppRessources.context.runOnUiThread( new R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop(Thread arg0) {\n\t\t\n\t}", "public void stop() {\n thread.interrupt();\n }", "public void stop() {\n thread.interrupt();\n }", "public void stop() {\n thread = null;\n }", "public void Stop() {\r\n\t\t\r\n\t\tthread = null;\r\n\t}", "@Override\n public void st...
[ "0.8337239", "0.81679916", "0.8099021", "0.7913199", "0.79117787", "0.78614175", "0.7762094", "0.77420396", "0.7725113", "0.7716824", "0.7700584", "0.76981574", "0.7692663", "0.768508", "0.7673674", "0.7602308", "0.7552646", "0.74962944", "0.742854", "0.74076277", "0.7392469"...
0.0
-1
used to stop an execution stack by one concrete executable. For that the executable is handled as a block, and the root block of the given execution is found. through the mapping blockthread the right thread is found, and stopped
public static void stopExecutableTree(ExecutableDraggableBlockWithSlots<?,?> executableBlock){ //handle the executable as a block, to retrieve its root Block root = executableBlock.findRootBlock(); //use the block-thread mapping ExecutionHandler<?> execHandler = rootBlockToThread.get(root); //delete ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void stopEverything(){\r\n\t\tfor(final ExecutionHandler<?> execHandler:allThreads){\r\n\t\t\t//interrupt the stack execution, so that it wont be further executed \r\n\t\t\tstopExecutionHandler(execHandler);\r\n\t\t}\r\n\t\t//Now when all ExecutionHandlers should already be empty, but for sure - clea...
[ "0.60099435", "0.58419806", "0.5486839", "0.54746246", "0.5449576", "0.5441946", "0.5370235", "0.53539515", "0.5165925", "0.51344365", "0.5129354", "0.5125697", "0.5111934", "0.5111934", "0.5111934", "0.5105938", "0.5098231", "0.5080188", "0.5077999", "0.5069458", "0.5059612"...
0.7352055
0