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
method that is ran by thread
@Override public void run() { String inMessage; String GET = null; String cookie = null; try { boolean coockieCheck = false; boolean validURL = false; boolean getRequest = false; this.in = new BufferedReader(new InputStreamReader(this....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "p...
[ "0.73185647", "0.73185647", "0.7248739", "0.72341675", "0.72341675", "0.720674", "0.71516216", "0.7132436", "0.71213824", "0.71213824", "0.71157086", "0.7077743", "0.7077743", "0.7068314", "0.7068314", "0.7068314", "0.7068314", "0.7068314", "0.7068314", "0.7068314", "0.706831...
0.0
-1
convert image data to bytes and stream it back
private void postImg(File index) { FileInputStream imgIn = null; byte[] imgData = new byte[(int)index.length()]; try { imgIn = new FileInputStream(index); imgIn.read(imgData); BufferedOutputStream imgOut = new BufferedOutputStream(connectionSocket.getOutputSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] encode(RenderedImage image) throws java.io.IOException;", "public byte[] getImageBytes()\n {\n byte[] buff = null;\n \n try\n {\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n ImageIO.write(img, \"jpg\", bos);\n bu...
[ "0.6420709", "0.6120296", "0.61124533", "0.60251147", "0.6003433", "0.5961868", "0.5920813", "0.5916354", "0.58286285", "0.5824116", "0.58079356", "0.5785377", "0.5736863", "0.57366276", "0.57179964", "0.5692126", "0.562578", "0.5624382", "0.55589384", "0.5534382", "0.5532147...
0.0
-1
check cookie situation and increase our count accordingly without messing with pre existing cookies
private void postHTML(File index, String cookie, boolean display) throws IOException { String my_cookie = null; if(cookie != null) { if (cookie.indexOf(" ") != -1) { String[] cookies = cookie.split(" "); for (String st : cookies) { if (st.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int storeCookies(URLConnection con) {\n\t\tString headerName = null;\n\n\t\tint totalNewCookies = 0;\n\n\t\tfor (int i = 1; (headerName = con.getHeaderFieldKey(i)) != null; i++) if (headerName.equals(\"Set-Cookie\")) totalNewCookies += addCookie(con.getHeaderField(i)); //add to the total the number of new ...
[ "0.7031306", "0.681713", "0.6494959", "0.6149703", "0.6091734", "0.60190475", "0.6003541", "0.59561527", "0.58728635", "0.5774621", "0.57182366", "0.5712543", "0.5690107", "0.56022686", "0.5541222", "0.54971457", "0.5491048", "0.5444065", "0.54315466", "0.5413241", "0.5409765...
0.0
-1
loads error.html for 404 error
private void postErrorPage() throws IOException { out.println(OK); System.out.println(NO); out.println(htmlType); out.println(closed); out.println("Content-Length: " + ERROR_FILE.length()); out.println(ENDLINE); String htmlLine = ERROR_READER.readLine(); w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\...
[ "0.6985027", "0.6687341", "0.6650605", "0.6575353", "0.6529488", "0.6468098", "0.6406094", "0.6367558", "0.6364432", "0.62872744", "0.6256946", "0.6193747", "0.61549836", "0.61088187", "0.61039394", "0.60887325", "0.6015626", "0.5975364", "0.5970233", "0.59558797", "0.5953315...
0.61453605
13
hard coded for displaying visted cookie count on visited.html
private void postHTMLDynamic(BufferedReader reader, int cnt) throws IOException { String htmlLine = reader.readLine(); while (htmlLine != null) { if(htmlLine.equals(VISITED_TEMPLATE)){ int indx = htmlLine.indexOf('X'); String tmp = htmlLine.substring(0, indx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printNumVisited()\r\n\t{\r\n\t\tSystem.out.println(\"\");\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t\tSystem.out.println(webVisited[0][i] + \" visited \" + webVisited[1][i] + \" time(s)\");\r\n\t}", "public int getVisits() {\n return visits;\n }", "public String getCuredCount()...
[ "0.6388506", "0.61576617", "0.6043217", "0.594862", "0.59199053", "0.59199053", "0.5896673", "0.58843464", "0.5808541", "0.5799504", "0.57392746", "0.5704308", "0.56452006", "0.56254804", "0.5618472", "0.55993533", "0.5581108", "0.5552131", "0.55418646", "0.5518676", "0.54926...
0.0
-1
parse get request header
private String processGetRequestHeader(String rq){ String ret = ""; int i = 4; if(rq.length() < i){ return null; } while(rq.charAt(i) != ' '){ ret += rq.charAt(i); i++; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHeader();", "public void parseHeader()\n {\n\n Hashtable table = new Hashtable();\n String[] lines = Utilities.splitString(header, \"\\r\\n\"); //Break everything into lines\n String[] line1 = Utilities.splitString(header, \" \"); //Break the 1st hea...
[ "0.7175737", "0.704043", "0.696123", "0.6959469", "0.6898553", "0.67831075", "0.6705447", "0.66362315", "0.6624292", "0.6590356", "0.65134233", "0.6499118", "0.6475855", "0.6475216", "0.6409993", "0.6328901", "0.6325601", "0.63077885", "0.6217565", "0.6176923", "0.61739695", ...
0.7091551
1
This domain object represents a translated value for a given property on an entity for a specific locale.
public interface Translation extends MultiTenantCloneable<Translation>, Serializable { public Long getId(); public void setId(Long id); public TranslatedEntity getEntityType(); public void setEntityType(TranslatedEntity entityType); public String getEntityId(); public void setEntityId(Stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GWTJahiaNodeProperty translate(GWTJahiaNodeProperty property, GWTJahiaItemDefinition definition, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;", "@ApiModelProperty(value = \"The locale of the contained data\")\n public String getLocale() {\n return locale;\n }", ...
[ "0.57367307", "0.5511194", "0.5258048", "0.5197999", "0.5126511", "0.5102394", "0.5064854", "0.5056423", "0.503836", "0.5035531", "0.5027978", "0.50225526", "0.4945667", "0.48733047", "0.48728496", "0.48445025", "0.4837523", "0.47903663", "0.47825035", "0.47742635", "0.477071...
0.4702241
30
Created by Min on 2017/5/5.
public interface IMorePersonalInfoView { void getMorePersonalInfoData(String userId); void setMorePersoalInfoData(MorePersonalInfo info); void showError(String errorString); void setHobby(String hobbys); void saveSucceed(); }
{ "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 public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overri...
[ "0.58857864", "0.5737228", "0.5651466", "0.56168145", "0.55968475", "0.5591622", "0.5586494", "0.5586494", "0.55698216", "0.55674607", "0.5542803", "0.5516095", "0.5501331", "0.545104", "0.5432239", "0.54198533", "0.5410276", "0.5402595", "0.5398907", "0.5390864", "0.53907406...
0.0
-1
make a new Node with the same node val but new children
Node<X> make(Node<X> left, Node<X> right);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node constructInternal(List<Node> children){\r\n\r\n // Base case: root found\r\n if(children.size() == 1){\r\n return children.get(0);\r\n }\r\n\r\n // Generate parents\r\n boolean odd = children.size() % 2 != 0;\r\n for(int i = 1; i < children.size(); ...
[ "0.63614905", "0.63189465", "0.62084794", "0.6191411", "0.6152936", "0.60860986", "0.60662043", "0.60203534", "0.59918886", "0.5989672", "0.59616226", "0.59344035", "0.59337115", "0.5929879", "0.59280616", "0.5889462", "0.58838165", "0.5872015", "0.5870922", "0.58523524", "0....
0.5412764
100
if the element is already in the set, it is guaranteed that this function returns the same Node reference.
default Node<X> insert(X x, Comparator<X> ord) { int comp = ord.compare(x, val()); if (comp == 0) return this; if (comp < 0) { Node<X> l = left().insert(x, ord); if (l == left()) return this; else return make(l, right()); } else { Node<X> r = right().insert(x, ord); if (r == righ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node<E> findSet(Node<E> x) {\n if (x != x.parent) {\n Node<E> p = findSet(x.parent);\n x.parent.children.remove(x);\n p.children.add(x);\n x.parent = p;\n }\n return x.parent;\n }", "public void putIfAbsent(T item) {\n sync...
[ "0.62163883", "0.6202888", "0.61144847", "0.60363215", "0.60164666", "0.59640676", "0.5956849", "0.58422947", "0.58079576", "0.58016074", "0.5794431", "0.5791727", "0.57827914", "0.57545954", "0.5750779", "0.57445455", "0.57366014", "0.57347447", "0.569069", "0.56551576", "0....
0.0
-1
Only reauthenticate if username doesn't match SecurityContextHolder and user isn't authenticated (see SEC53)
private boolean authenticationIsRequired(String username) { Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication(); if (existingAuth == null || !existingAuth.isAuthenticated()) { return true; } // Limit username comparison to providers which us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n ...
[ "0.6368408", "0.62293935", "0.6145738", "0.6097308", "0.60881466", "0.60708755", "0.6062199", "0.6017228", "0.5995228", "0.596356", "0.5960458", "0.5943242", "0.5941141", "0.59325176", "0.5901533", "0.5897362", "0.58831626", "0.5875035", "0.58223206", "0.5817763", "0.5801872"...
0.6836177
0
This is basis of polymorphism And it is supposed to work like that. Any method is dispatched (selected/invoked) dynamically according to the actual type of the object instead of the type by which it is being referred to. When you cast the object to another type, you just refer it using another type. The actual type of ...
public static void main(String[] args) { Charlie c1 = new Foxtrot(); Charlie c2 = new Tango(); Charlie c3 = (Charlie) new Tango(); System.out.println(c3 instanceof Foxtrot); System.out.println(c1.getType() + " " + c2.getType() + " " + c3.getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "public static void main(String[] args) {\n\t\tFirst ob1=new First();\n\t\tSecond obj2=new Second();\n\t...
[ "0.7077212", "0.7077212", "0.7077212", "0.6905448", "0.6172176", "0.60033196", "0.60025734", "0.5985755", "0.59740466", "0.59196913", "0.5903916", "0.59030384", "0.5889821", "0.5820745", "0.5802711", "0.5721378", "0.56199574", "0.5559312", "0.55124116", "0.5505463", "0.549441...
0.0
-1
/ check that a card is available to be given to somebody
public boolean isAvailable() { return available; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAlreadCheckCard();", "boolean CanBuyDevCard();", "boolean hasPlayCardRequest();", "boolean hasAlreadShowCard();", "private boolean canAcceptCard(Card card) {\n return cardSet.canAcceptCard(card);\n }", "boolean hasPassCardsResponse();", "public boolean canUseCard() {\n \t\tif (used...
[ "0.7512415", "0.719432", "0.71512085", "0.7150853", "0.70713234", "0.7034815", "0.7018913", "0.68658686", "0.68348", "0.6766778", "0.674535", "0.67217535", "0.6710583", "0.67041963", "0.6628485", "0.65809745", "0.6567631", "0.655124", "0.65363395", "0.6506535", "0.64682865", ...
0.0
-1
/ return index of the searched number if found, or 1 if not found
public static void bubbleSortNumberList(long[] list) { /*make N passes through the list (N is length of the list) */ for(int i=0;i<list.length-1;i++) { /* for index from 0 to N-1, compare item[index] to next item, swap if needed */ for(int j=0; j<list.length-1-i;j++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int findPosition(int num) {\n\t\t\n\t\tString s = new Integer(num).toString();\n\t\tSystem.out.println(\"After converting input number to string: \" + s);\n\t\t\n\t\tint i = 0, j = 0;\n\t\tint m = s.length(), n = input.length();\n\t\t\n\t\tfor(i = 0; i <= n - m; i++) {\n\t\t\tj = 0;\n\t\t\twhile(j < m && in...
[ "0.73777604", "0.73187584", "0.73048943", "0.73030126", "0.7296709", "0.7064577", "0.7058566", "0.7048943", "0.7035916", "0.70326376", "0.6975763", "0.6956965", "0.6904827", "0.6904827", "0.6904827", "0.6904827", "0.6904827", "0.6904827", "0.6904827", "0.6904827", "0.6904827"...
0.0
-1
Get CPU time in nanoseconds since the program(thread) started. from:
public static long getCpuTime(){ ThreadMXBean bean = ManagementFactory.getThreadMXBean(); return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : 0L; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long getCpuTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : 0L;\n }", "int getCPU_time();", "public static long getCpuTime () {\n\n ThreadMXBean bean = ManagementFactory.getThreadMX...
[ "0.8176747", "0.81601113", "0.80441415", "0.8008931", "0.7942945", "0.7931388", "0.7753877", "0.77089554", "0.7703248", "0.76123166", "0.75874054", "0.7577006", "0.75767624", "0.7570709", "0.74597114", "0.7455361", "0.7365115", "0.73627293", "0.7350398", "0.73068464", "0.7275...
0.80357605
3
setea transparente el background. setea transparentes los puntos iguales al (0,0) de la imagen
private Image takeBG(Image img) throws SlickException{ //NO SE PUEDE CAMBIAR UN COLOR QUE YA ESTÁ A TRANSPARENTE //SOLO ME QUEDA HACER UNA NUEVA Y DIBUJAR SIN EL FONDO Image result = new Image(img.getWidth(),img.getHeight()); Graphics g = result.getGraphics(); g.setColor(Color.transparent); g.fillR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawBackground() {\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(0,0,512, 512);\n\t\t\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(128, 0, 256, 512);\n\t}", "@Override\n\tpublic void setTransparency(float transparency) {\n\t\t\n\t}", "public void setAlpha(float alpha);", "public...
[ "0.6498154", "0.61975455", "0.605604", "0.5986696", "0.59636015", "0.5945888", "0.5940706", "0.59012717", "0.5901026", "0.5876571", "0.5862823", "0.58595955", "0.5823675", "0.5822707", "0.58138514", "0.58091044", "0.57683134", "0.5752206", "0.5734125", "0.5724955", "0.5720141...
0.5361886
62
This interface is called when an error was detected. It might, for example, add an error annotation, throw an exception, or ignore the error.
public interface ErrorHandler { /** * This method is called by the helper object when an error was detected. */ void onError(@NotNull PsiElement errorSource, @NotNull String message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onErrorImpl(Throwable e) {\n }", "abstract void onError(Exception e);", "public abstract void OnError(int code);", "public void error(Exception e);", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void onError(Exception e);", "@Ove...
[ "0.67235017", "0.6693192", "0.66630733", "0.65825486", "0.6566034", "0.65462965", "0.6531448", "0.6510876", "0.6503512", "0.64728683", "0.64515364", "0.64459866", "0.64424473", "0.6424346", "0.64066935", "0.6396703", "0.6388187", "0.63774407", "0.6373635", "0.6356359", "0.634...
0.0
-1
This method is called by the helper object when an error was detected.
void onError(@NotNull PsiElement errorSource, @NotNull String message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void inquiryError() {\n\t\t\n\t}", "@Override\n public void onError() {\n\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n public vo...
[ "0.7402682", "0.7323598", "0.7112806", "0.70631367", "0.69188875", "0.69188875", "0.68919945", "0.6860858", "0.68150896", "0.6807608", "0.6753464", "0.6750571", "0.67282486", "0.6711552", "0.668389", "0.66790783", "0.66728264", "0.6661756", "0.6656171", "0.66162264", "0.66075...
0.0
-1
Tao moi de binding sang view
@ModelAttribute("user") public UserRegistration userRegistration() { return new UserRegistration(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void bindingView();", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "@Override\r\n\tprotected void initView() {\n\t\...
[ "0.7084827", "0.681301", "0.6768624", "0.6768624", "0.67242175", "0.6695092", "0.6695092", "0.6544469", "0.65393794", "0.65393794", "0.65348893", "0.65177876", "0.65079045", "0.6492496", "0.6492496", "0.6451732", "0.6425546", "0.6419384", "0.6419384", "0.64064854", "0.6401055...
0.0
-1
Joe Schmoe plugged an xbox controller into port 1
public void autonomous() { robot.drive(0.5); //Drives in a square Timer.delay(0.5); robot.tankDrive(0.5, -0.5); Timer.delay(0.25); robot.drive(0.5); Timer.delay(0.5); robot.tankDrive(0.5, -0.5); Timer.delay(0.25); robot.drive(0.5); Timer.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XboxController(int port) {\n \tthis(port, 0, 0);\n }", "public XboxController(int port) {\n\t\tthis(10,port);\n\t}", "public void notifyControllerStart(int port);", "int getS1Port();", "public XboxJoystick1038(int port) {\n\t\tsuper(port);\n\t}", "public XboxController(int port,double leftDe...
[ "0.63165915", "0.624727", "0.616915", "0.5959613", "0.5914296", "0.58644366", "0.5861324", "0.56386137", "0.5632426", "0.56248325", "0.55663997", "0.55532974", "0.5538782", "0.5519919", "0.55195504", "0.5500657", "0.5483897", "0.54660875", "0.54660875", "0.543709", "0.5429802...
0.0
-1
Converti un boolean a en int (true = 1 / False = 0)
int boolToInt(boolean a) { return Boolean.compare(a, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int toInt(boolean b) {\n return b ? 1 : 0;\n }", "private void IntToBool()throws TokenException{\n\t\tif (getTkn()==TipeToken.Bilangan)\n\t\t\tif (getTipeBilangan()==Tipe._int)\n\t\t\t\tif (getBilanganInt()==0){\n\t\t\t\t\tSetBilangan(false);\n\t\t\t\t\treturn;\n\t\t\t\t}else if (getBila...
[ "0.8276888", "0.73951024", "0.7218838", "0.7120767", "0.7060739", "0.6583078", "0.62661904", "0.62055707", "0.6160846", "0.61543864", "0.61543864", "0.6074493", "0.6015292", "0.6012994", "0.59834886", "0.596119", "0.59220815", "0.59207004", "0.5844289", "0.5817784", "0.580979...
0.8001292
1
Fonction qui affiche une machine
public void afficher() { System.out.println(this.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\r\n\t\tMachine mac = new Machine();\r\n\t\t\r\n\t\tmac.start();\r\n\t\tmac.stop();\r\n\t\tSystem.out.println(\"----------------------\");\r\n\t\t\r\n\t\tCar bmw = new Car();\r\n\t\tbmw.start();\r\n\t\tbmw.stop();\r\n\t\tbmw.re_strat();\r\n\t\tSystem.out.println(\"--------...
[ "0.61706644", "0.5935584", "0.5914962", "0.59132755", "0.58988065", "0.57631505", "0.5750546", "0.5649992", "0.56317526", "0.5611252", "0.5590388", "0.5544834", "0.5541184", "0.5527549", "0.5525571", "0.5513306", "0.5490668", "0.54904485", "0.5486316", "0.54775584", "0.545700...
0.0
-1
A rajouter Fonction Data EnvoyerData(Noeud destinataire, String donnee)
Data EnvoyerData(Noeud destinataire, String donnee, Machine[] listeVerificateur) { Data data = new Data(this, destinataire, donnee, listeVerificateur); return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void EnvoyerRequete(Requete req) {\n\t\tmediateur.transmettreRequeteDeEtudiant(req);\n\t\tEtudiant etudiant = etudiantRepo.findOne(req.getExpediteur().getId());\n\t\tetudiant.getDemandes().add(req);\n\t\tthis.update(etudiant);\n\t}", "Aluno(String dataNascimento) {\n this.dataNasciment...
[ "0.6137841", "0.60937303", "0.6006471", "0.59721386", "0.58862597", "0.5884376", "0.58649635", "0.58028334", "0.5783843", "0.5756785", "0.5733549", "0.57324624", "0.57048196", "0.5698061", "0.5663364", "0.56508964", "0.56495464", "0.563176", "0.56130475", "0.5595593", "0.5582...
0.7781543
0
final int row = ( (int) ((raf.getFilePointer() getLengthOfHeader()) / getLengthOfRecord()) ); return (row > 1) ? row : 1;
@Override public int rowNumber() throws IOException { return recordNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int readFdocaOneByte() {\n checkForSplitRowAndComplete(1);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readUnsignedByte();\n }", "private int readFdocaTwoByteLength() {\n\n checkForSplitRowAndComplete(2);\n return dataBuffer_.readShort();\n// ...
[ "0.681897", "0.66562194", "0.6616827", "0.64277923", "0.63418233", "0.6175169", "0.6137117", "0.6125138", "0.60945135", "0.609352", "0.60822767", "0.6056864", "0.60401165", "0.60398966", "0.60159004", "0.6010181", "0.5968945", "0.59629357", "0.5951572", "0.5932683", "0.593163...
0.68997693
0
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { primary.showingProperty().addListener((obs, oldValue, newValue) -> { if (newValue) { AppBar appBar = MobileApplication.getInstance().getAppBar(); appBar.setVisible(true); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
Method that handles Button (btnSave) onAction. His work is to update the user information and credentials. Controlling the exceptions than can happen during this process
@FXML void handlerModifyProfile(){ //Checks if any field is empty so it can show an alert to the user. if(tfName.getText().equals("")||tfFirstSurName.getText().equals("")|| tfSecondSurName.getText().equals("")||tfDirection.getText().equals("")|| tfEmail.getText().equals("")){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void savebutton(ActionEvent event) throws Exception{\n\t\t\n\t\tdaocustomerview update = new daocustomerview();\n\t\tint res=update.modifyuser(loginController.getUsername(),loginController.getPassword(),txtfield2.getText(), txtfield3.getText(), (Integer.parseInt(txtfield4.getText())), txtfield5.getText(), t...
[ "0.7389384", "0.70748127", "0.6852386", "0.6837295", "0.67081517", "0.6685014", "0.6639619", "0.66011304", "0.6581822", "0.65281004", "0.65261406", "0.6524666", "0.64754915", "0.64425397", "0.6434861", "0.6431064", "0.64259315", "0.64243907", "0.6354025", "0.6351195", "0.6330...
0.60873455
45
Method to make sure that the solveMaze method of PathFinder has an appropriate runtime (no more than 10 seconds for any maze an 100X100 maze will be the largest size that needs to fit this time constraint).
public static void main(String[] args) { long startTime, stopTime; startTime = System.nanoTime(); PathFinder.solveMaze("tinyMaze.txt", "tinyMazeOutput.txt"); stopTime = System.nanoTime(); System.out.println("Run-time for tinyMaze.txt: " + (stopTime - startTime)/(Math.pow(10.0, 9)) + " seconds"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solveMaze() throws MazeException {\n\n long startTime = System.currentTimeMillis();\n List<Maze.Room> solution = path();\n long endTime = System.currentTimeMillis();\n\n double timeToSolve = (endTime - startTime) / 1000.0;\n\n setSolution(Optional.<List<Maze.Room>>of(...
[ "0.6572447", "0.598049", "0.5906574", "0.5866768", "0.58172107", "0.5673287", "0.56574905", "0.563643", "0.5623688", "0.5599059", "0.5591286", "0.55660844", "0.5558504", "0.5555241", "0.55384904", "0.55332106", "0.5511136", "0.55003285", "0.54345447", "0.5427358", "0.5394949"...
0.6550514
1
TODO Autogenerated method stub
public static void main(String[] args) { IfElseProgramForCaluculate obj = new IfElseProgramForCaluculate(); Scanner scanobj =new Scanner(System.in); int say; do{ System.out.println("enter ur choice"); System.out.println("press 1 for add"); System.out.println("press 2 for sub"); System.out.println...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Used if no constant is provided: limits on amount of notices are set using class constants.
public NoticeContainer() { this( MAX_TOTAL_VALIDATION_NOTICES, MAX_VALIDATION_NOTICES_TYPE_AND_SEVERITY, MAX_EXPORTS_PER_NOTICE_TYPE_AND_SEVERITY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LimitConfiguration() {\n try {\n yellowLimit = new AlertLimit((float) 0.75);\n redLimit = new AlertLimit((float)0.9);\n } catch(Exception e){\n //This exception should not happen\n System.out.println(e.getMessage());\n }\n }", "public int...
[ "0.6040618", "0.58708256", "0.5751147", "0.56755626", "0.56755626", "0.56394154", "0.5616516", "0.5549224", "0.5546411", "0.5484726", "0.5461922", "0.5453935", "0.5443453", "0.5434789", "0.5420709", "0.5327389", "0.53057057", "0.52879053", "0.5285506", "0.5226689", "0.5186885...
0.59789157
1
Adds a new validation notice to the container (if there is capacity).
public void addValidationNotice(ValidationNotice notice) { // TODO: This would be the spot to add customization of notice severity levels in the future. SeverityLevel severity = ValidationNotice.getDefaultSeverityLevel(notice.getClass()); addValidationNoticeWithSeverity(notice, severity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addValidRecord() {\r\n recordCount++;\r\n }", "public NoticeContainer() {\n this(\n MAX_TOTAL_VALIDATION_NOTICES,\n MAX_VALIDATION_NOTICES_TYPE_AND_SEVERITY,\n MAX_EXPORTS_PER_NOTICE_TYPE_AND_SEVERITY);\n }", "public final void AddError()\n\t{\n\t\terrorCount_++...
[ "0.55691516", "0.5565084", "0.55479133", "0.532586", "0.5316695", "0.5254019", "0.5248544", "0.5240781", "0.52081263", "0.5151872", "0.51400375", "0.51360935", "0.5133869", "0.51175743", "0.51104885", "0.5090596", "0.5047884", "0.50346285", "0.50346285", "0.50339353", "0.5009...
0.63634706
0
Adds a new system error to the container.
public void addSystemError(SystemError error) { ResolvedNotice<SystemError> resolved = new ResolvedNotice<>(error, SeverityLevel.ERROR); updateNoticeCount(resolved); systemErrors.add(resolved); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addError(Throwable t);", "public void addError(String message);", "public static void addError(Exception e) {\n errors.push(e);\n }", "public void addError(ShadowException exception) {\n if (exception != null) errorList.add(exception);\n }", "void addError(String message) {\n\t\ti...
[ "0.6654558", "0.6486399", "0.6364722", "0.59760046", "0.59589994", "0.5939204", "0.58459795", "0.58186305", "0.5735222", "0.5731058", "0.5663948", "0.5639014", "0.56316847", "0.56050855", "0.5571197", "0.55456144", "0.55260044", "0.5485627", "0.54829603", "0.54247236", "0.540...
0.7419843
0
Returns a list of all validation notices in the container.
public List<ValidationNotice> getValidationNotices() { return Lists.transform(validationNotices, ResolvedNotice::getContext); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection fullValidationCheck ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tIterator iterator = getFullValidationList().iterator();\n\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t((ValidationComponent)iterator.next()).validate();\n\t\t\t}\n\t\t\tcatch (ModelValidationException ...
[ "0.6442778", "0.6359435", "0.6079754", "0.6053193", "0.5988309", "0.59173876", "0.5874383", "0.58579314", "0.5824323", "0.58204883", "0.5765122", "0.56829894", "0.5681154", "0.56685776", "0.5654386", "0.56374323", "0.5626792", "0.5618393", "0.5606111", "0.5592516", "0.5573603...
0.7569657
0
Returns a list of all system errors in the container.
public List<SystemError> getSystemErrors() { return Lists.transform(systemErrors, ResolvedNotice::getContext); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<RemoteRenderingServiceError> listRootErrors() {\n return this.rootErrors;\n }", "public List<Exception> getErrors() {\n\t\treturn null;\n\t}", "public List<Throwable> getErrors() {\n\t\tfinal List<Throwable> retval = new ArrayList<Throwable>();\n\t\tfor (final TestInfo testInfo : contract...
[ "0.7143291", "0.69841534", "0.6967426", "0.6791921", "0.6780918", "0.66690385", "0.659387", "0.65657216", "0.6545468", "0.65433306", "0.645125", "0.64500415", "0.63896483", "0.6351565", "0.6340006", "0.6336692", "0.6332648", "0.6327902", "0.6297093", "0.62966084", "0.62831116...
0.7998969
0
Exports all validation notices as JSON.
public JsonObject exportValidationNotices() { return exportJson(validationNotices); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JsonObject exportSystemErrors() {\n return exportJson(systemErrors);\n }", "public void exportJSON()\n {\n Gson JSONConverter = new Gson();\n FileWriter writer;\n\n try\n {\n // wipe the file\n PrintWriter write = new PrintWriter(new File(fp));\n ...
[ "0.60760945", "0.52536106", "0.5249284", "0.511909", "0.5053304", "0.5043744", "0.49909213", "0.4928945", "0.48981243", "0.48957792", "0.48831764", "0.4872103", "0.48651838", "0.47838902", "0.47487396", "0.47384867", "0.46993586", "0.46987003", "0.46903658", "0.4686124", "0.4...
0.7504963
0
Exports all system errors as JSON.
public JsonObject exportSystemErrors() { return exportJson(systemErrors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n @ExceptionHandler(Exception.class)\n public String handleAllException() {\n\n return \"server_error\";\n }", "void reloadStandardErrorMessages();", "protected void finalizeSystemErr() {}", "private void _debugSystemOutAndErr() {\n try {\n...
[ "0.55262834", "0.54279536", "0.5326282", "0.52695954", "0.52012616", "0.5196195", "0.517119", "0.5162727", "0.5161481", "0.508816", "0.5037671", "0.5015347", "0.5004323", "0.4996523", "0.49708462", "0.49693108", "0.49635765", "0.49322423", "0.4922331", "0.48972917", "0.487815...
0.83869123
0
No UI update is alowwed in onether Thread so use runOnUiThread()
private void updateUI() { runOnUiThread(new Runnable() { @Override public void run() { if(timer_count==5) { //Animation Starts by Singing Si animateReceiveMoney(); animateSendMoney(); PlayIn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void runOnUiThread(Runnable r) {\n }", "private void m50364C() {\n m50412n().runOnUiThread(new C11092g(this));\n }", "public abstract void runOnUiThread(Runnable runnable);", "@Override\n\tpublic void runOnUiThread( final Runnable action ) {\n\t\tif ( mContext != null ) ( (...
[ "0.8158484", "0.72660595", "0.72636616", "0.71188825", "0.7107481", "0.70511836", "0.6950518", "0.67793906", "0.67644686", "0.67472094", "0.6712631", "0.6690769", "0.66419905", "0.66043866", "0.65854514", "0.65521157", "0.6544063", "0.6542534", "0.6531728", "0.6531202", "0.65...
0.68789
7
This Animation that feels natural is done by using the 3 Libraries AnimationPath , PathEvaluator , PathPoint It is published by a Google Developper on Youtube channel
public void animateSendMoney(){ tvSendMoney.setVisibility(View.VISIBLE); //Getting the Location of a View on the Screen int[] siLoc = new int[2]; tvSiOut.getLocationOnScreen(siLoc); int[] doLoc = new int[2]; tvDoOut.getLocationOnScreen(doLoc); // Set up the pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AnimationSVGView() {\n this.model = new BasicAnimationModel();\n this.out = new StringBuilder();\n this.speed = 1;\n }", "@Test\n public void testChangeCanvas() throws IOException {\n AnimationModel am = new SimpleAnimationModel();\n int[] i = {40, 40, 40};\n StringBuilder sb = new Str...
[ "0.63804126", "0.62874824", "0.6174012", "0.6101986", "0.60791856", "0.60788596", "0.60452604", "0.6040151", "0.60178566", "0.60154366", "0.5850884", "0.58275366", "0.57722497", "0.57670337", "0.5765467", "0.5748643", "0.57413095", "0.5730124", "0.5730124", "0.5725604", "0.57...
0.5568516
37
Always print errors to the command line.
public void error(String msg) { boolean doit = level == Level.NONE || level == Level.INFO; if (log != System.err || !doit) { System.err.println(msg); } if (!doit) return; write("ERROR", msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printErrors() {\r\n\t\tif (this.syntaxError) {\r\n\t\t\tSystem.err.println(\"\\nErrors found running the parser:\");\r\n\t\t\tfor (String error : errors) {\r\n\t\t\t\tSystem.err.println(\"\\t => \" + error);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printErrors() {\n final int size = _errors.s...
[ "0.67262363", "0.67158276", "0.66793257", "0.66017306", "0.6592855", "0.6575986", "0.65748954", "0.64469284", "0.6436956", "0.61682874", "0.615269", "0.6075232", "0.60579246", "0.6052674", "0.6041666", "0.6028691", "0.6009182", "0.59782904", "0.5954349", "0.59445614", "0.5941...
0.5618478
53
TODO Autogenerated method stub
@Override public View newView(Context context, Cursor cursor, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View v = inflater.inflate(R.layout.search_item, parent, false); TextView t = (TextView)v.findViewById(R.id.search_text); ...
{ "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 bindView(View view, Context context, Cursor cursor) { }
{ "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 setFilterQueryProvider(FilterQueryProvider filterQueryProvider) { super.setFilterQueryProvider(filterQueryProvider); }
{ "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
Static variables //////////////////////////////// Instance variables ////////////////////////////////
public TestBugReports(String name) { super(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void init() {}", "private Util() { }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private InstanceUtil() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "private StaticData() {\n\n }", "private Util() {\n }", "private Utils() {\n\t}...
[ "0.7191533", "0.70271754", "0.6807254", "0.6807254", "0.6807254", "0.6807254", "0.6741395", "0.67030394", "0.6689465", "0.66766465", "0.66194654", "0.66194654", "0.6581831", "0.65539116", "0.65539116", "0.65274507", "0.65244246", "0.6514098", "0.6510133", "0.64874446", "0.645...
0.0
-1
Constructors //////////////////////////////// External signature methods ////////////////////////////////
public void setUp() { // ensure the ont doc manager is in a consistent state OntDocumentManager.getInstance().reset( true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "private void __sep__Constructors__() {}", "public CSSTidier() {\n\t}", "private Instantiation(){}", "protected abstract void construct();", "public Pitonyak_09_02() {\r\n }", "public PSRelation()...
[ "0.81955415", "0.801424", "0.7478754", "0.7386194", "0.7298536", "0.72933143", "0.7223569", "0.71421844", "0.7119575", "0.7055508", "0.705282", "0.699617", "0.6982899", "0.6961705", "0.6948894", "0.69350845", "0.6925131", "0.69189876", "0.69116014", "0.69058186", "0.68904036"...
0.0
-1
Bug report by Danah Nada listIndividuals returning too many results
public void test_dn_0() { OntModel schema = ModelFactory.createOntologyModel( OntModelSpec.OWL_LITE_MEM_RULES_INF, null ); schema.read( "file:doc/inference/data/owlDemoSchema.xml", null ); int count = 0; for (Iterator i = schema.listIndividuals(); i.hasNext(); ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Individual> getListOfIndividuals(){\n \tList<Individual> individualList = new ArrayList<>();\n\t\tIndividual individualObject = null;\n\t\tMap<String, Object> myMap = null;\n\t\tObject obj = null;\n\t\tJSONObject jsonObject = null;\n\t\tJSONArray jsonArray = null;\n\t\tJSONObject jsonObj = null;\n...
[ "0.5694329", "0.56340814", "0.55455", "0.5528946", "0.5492359", "0.54387033", "0.54274106", "0.5354189", "0.5344312", "0.53352445", "0.5304161", "0.5243759", "0.5200151", "0.51912963", "0.51863766", "0.5150529", "0.5126602", "0.51261324", "0.51181746", "0.5112396", "0.5095287...
0.49489045
34
/ Bug report by Danah Nada duplicate elements in property domain
public void test_dn_01() { // direct reading for the model method 1 OntModel m0 = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null ); m0.read( "file:testing/ontology/bugs/test_hk_07B.owl" ); OntProperty p0 = m0.getOntProperty( "file:testing/ontology/bugs/tes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean requiresPropertyOrdering()\n/* */ {\n/* 377 */ return false;\n/* */ }", "@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceArrayList() {\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tTypePropertyColl...
[ "0.59263474", "0.58229536", "0.5793806", "0.5773219", "0.573585", "0.57344806", "0.57029545", "0.56798565", "0.5642006", "0.5621364", "0.55797607", "0.5543657", "0.55354273", "0.55099857", "0.5483394", "0.5441972", "0.54308665", "0.54171187", "0.5412242", "0.53929037", "0.538...
0.49290064
86
Bug report by Danah Nada cannot remove import
public void test_dn_02() { OntModel mymod = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM, null ); mymod.read( "file:testing/ontology/testImport3/a.owl" ); assertEquals( "Graph count..", 2, mymod.getSubGraphs().size() ); for (Iterator it = mymod.listImpor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unsetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IMPORT$0, 0);\n }\n }", "public void clear()\n {\n normalImports.clear();\n wildcardImports.clear();\n }", "public void importGraphU...
[ "0.61860317", "0.61465", "0.59524065", "0.59258205", "0.59024465", "0.5863701", "0.575258", "0.56075585", "0.558699", "0.5578181", "0.55758494", "0.5547878", "0.553415", "0.55161595", "0.5491864", "0.5474881", "0.54508126", "0.54458034", "0.54063", "0.54063", "0.5397684", "...
0.48574913
77
Bug report from Holger Knublauch on July 25th 2003. Cannot convert owl:Class to an OntClass
public void test_hk_01() { // synthesise a mini-document String base = "http://jena.hpl.hp.com/test#"; String doc = "<rdf:RDF" + " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"" + " xmlns:owl=\"http://www.w3.org/2002/07/owl#\">" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected OntClass obtainOntClass(String ontClass)\r\n\t{\r\n\t\tOntResource ontR = obtainOntResource(ontClass);\r\n\t\tif(ontR != null)\r\n\t\t\tif(ontR.canAs(OntClass.class))\r\n\t\t\t\treturn ontR.asClass();\r\n\t\treturn null;\t\r\n\t}", "public void test_sf_934528() {\n OntModel m = ModelFactory.cre...
[ "0.6484684", "0.5993686", "0.5988248", "0.5866387", "0.5850389", "0.56955135", "0.5671418", "0.5663304", "0.5639726", "0.55557144", "0.55164987", "0.54724807", "0.5446058", "0.5401518", "0.5381312", "0.5315096", "0.53133905", "0.52983826", "0.5281206", "0.5209614", "0.5209614...
0.57166785
5
Bug report from Hoger Knublauch on Aug 19th 2003. NPE when setting all distinct members
public void test_hk_02() { OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM); spec.setReasoner(null); OntModel ontModel = ModelFactory.createOntologyModel(spec, null); // ProfileRegistry.OWL_LANG); ontModel.createAllDifferent(); assertTrue(ontModel.listAllDifferent(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}", "...
[ "0.628982", "0.61802757", "0.615177", "0.58024764", "0.578766", "0.5686045", "0.56060797", "0.5574799", "0.5573333", "0.55250955", "0.5510157", "0.54917467", "0.5450633", "0.5447879", "0.5438393", "0.5406466", "0.53988564", "0.53973436", "0.53658223", "0.5353107", "0.53517336...
0.0
-1
Bug report from Holger Knublauch on Aug 19th, 2003. Initialisation error
public void test_hk_03() { OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM); spec.setReasoner(null); OntModel ontModel = ModelFactory.createOntologyModel(spec, null); OntProperty property = ontModel.createObjectProperty("http://www.aldi.de#property"); /* MinCardina...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {...
[ "0.701228", "0.70037806", "0.69097555", "0.69097555", "0.69097555", "0.69097555", "0.69097555", "0.6872802", "0.68249077", "0.68218255", "0.6817342", "0.6817342", "0.6817342", "0.6817342", "0.68105346", "0.67920923", "0.6785022", "0.6785022", "0.6785022", "0.678147", "0.67774...
0.0
-1
Bug report from Holger Knublauch on Aug 19th, 2003. Document manager alt mechanism breaks relative name translation
public void test_hk_04() { OntModel m = ModelFactory.createOntologyModel(); m.getDocumentManager().addAltEntry( "http://jena.hpl.hp.com/testing/ontology/relativenames", "file:testing/ontology/relativenames.rdf"); m.read("http://jena.hpl.hp.com/testing/ontology/rela...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MnemonicNameReference createMnemonicNameReference();", "private String resolveLabel(String aLabel){\n\t\t// Pre-condition\n\t\tif(aLabel == null) return aLabel;\n\t\t// Main code\n\t\tif (aLabel == \"univ\") return null;\n\t\tString actualName = aLabel.contains(\"this/\")?aLabel.substring(\"this/\".length()):aLa...
[ "0.5680752", "0.5531381", "0.54821396", "0.5424262", "0.5419801", "0.5383974", "0.53527284", "0.5351328", "0.53053874", "0.52851903", "0.52476406", "0.52474064", "0.5247077", "0.5234683", "0.5183763", "0.51808083", "0.5168182", "0.5163238", "0.51594144", "0.5157396", "0.51390...
0.48167747
72
Bug report from Holger Knublach: not all elements of a union are removed
public void test_hk_05() { OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM); spec.setReasoner(null); OntModel ontModel = ModelFactory.createOntologyModel(spec, null); String ns = "http://foo.bar/fu#"; OntClass a = ontModel.createClass(ns + "A"); OntClass b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void union(int p, int q) {}", "@Test\n\tpublic void testUnion5() {\n\n\t\tint[] arr = {};\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tint[] uni2 = { 0, 2, 3 };\n\t\tSLLSet listObj7 = new SLLSet(uni2);\n\t\tSLLSet listObj8 = listObj2.union(listObj7);\n\n\t\tString expected = \"0, 2, 3\";\n\t\tint expectedSize = ...
[ "0.6647736", "0.6597184", "0.65100104", "0.64949393", "0.6414737", "0.6407552", "0.6358547", "0.63571", "0.63311446", "0.61577183", "0.6139773", "0.6118107", "0.6101388", "0.6098091", "0.60634315", "0.60463345", "0.6036528", "0.6010859", "0.59984225", "0.5990614", "0.59903663...
0.0
-1
Bug report from Holger Knublach: moving between ontology models comes down to a test for a resource being in the base model
public void test_hk_06() throws Exception { OntModel ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null); ontModel.read("file:testing/ontology/bugs/test_hk_06/a.owl"); String NSa = "http://jena.hpl.hp.com/2003/03/testont/a#"; String NSb = "http://jena.hpl.hp.com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_sf_934528() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n \n Resource r = (Resource) OWL.Thing.inModel( m );\n OntClass thingClass = (OntClass) r.as( OntClass.class );\n assertNotNull( thingClass );\n \n r = (Re...
[ "0.69991106", "0.64872515", "0.64777446", "0.6471463", "0.62705654", "0.6268071", "0.62405485", "0.6086918", "0.5985408", "0.59333277", "0.59137195", "0.58753157", "0.5872665", "0.58510214", "0.5817298", "0.5798291", "0.57781637", "0.57169425", "0.5700158", "0.5694701", "0.55...
0.6763117
1
Bug report by Christoph Kunz, 26/Aug/03. CCE when creating a statement from a vocabulary
public void test_ck_02() { OntModel vocabModel = ModelFactory.createOntologyModel(); ObjectProperty p = vocabModel.createObjectProperty("p"); OntClass A = vocabModel.createClass("A"); OntModel workModel = ModelFactory.createOntologyModel(); Individual sub = workModel.creat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "QuoteTerm createQuoteTerm();", "java.lang.String getNewSentence();", "GeneralTerm createGeneralTerm();", "protected Sentence() {/* intentionally empty block */}", "public T caseLemmaStatement(LemmaStatement object) {\n\t\treturn null;\n\t}", "@Override\n public Predicate generateOutputStructure(Predic...
[ "0.56907034", "0.5470831", "0.5432763", "0.53478014", "0.5224758", "0.51880085", "0.5152516", "0.5137233", "0.5113096", "0.51094174", "0.5101511", "0.5088498", "0.5082556", "0.50765234", "0.5066641", "0.50469834", "0.50427884", "0.50380754", "0.5025703", "0.50013167", "0.4965...
0.5312614
4
Bug report from Christoph Kunz reification problems and UnsupportedOperationException
public void test_ck_03() { // part A - surprising reification OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null); OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null); Individual sub = model1.createIndividual("http://...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "public UnsupportedCycOperationException() {\n super();\n }", "private void habilitar() {\n thr...
[ "0.64473635", "0.63682926", "0.6118292", "0.61031723", "0.60034883", "0.5965616", "0.5920582", "0.5846466", "0.5803184", "0.5798667", "0.5782967", "0.5756689", "0.57469153", "0.5745526", "0.5745228", "0.5739288", "0.5733269", "0.57009196", "0.5700593", "0.56943333", "0.569258...
0.0
-1
Problem reported by Andy Seaborne combine abox and tbox in RDFS with ontmodel
public void test_afs_01() { String sourceT = "<rdf:RDF " + " xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'" + " xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'" + " xmlns:owl=\"http://www.w3.org/2002/07/owl#\">" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BoxModel getModel(int metadata)\r\n/* 121: */ {\r\n/* 122:127 */ ForgeDirection dir = ForgeDirection.getOrientation(metadata);\r\n/* 123:128 */ BoxModel boxes = new BoxModel();\r\n/* 124:129 */ float w = 0.125F;\r\n/* 125:130 */ boxes.add(new Box(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.0625F...
[ "0.5699599", "0.53466654", "0.5290348", "0.52421683", "0.51410985", "0.5117375", "0.5106757", "0.5084516", "0.507915", "0.50660443", "0.5045811", "0.5040852", "0.5015416", "0.49982005", "0.4969671", "0.49414104", "0.49388042", "0.49354208", "0.49241772", "0.4922084", "0.49053...
0.5082818
8
Bug report by Dave Reynolds SF bug report 810492
public void test_der_01() { OntModel m = ModelFactory.createOntologyModel(OntModelSpec.RDFS_MEM_TRANS_INF, null); Resource a = m.createResource("http://example.org#A"); Resource b = m.createResource("http://example.org#B"); OntClass A = new OntClassImpl(a.getNode(), (EnhGraph) m) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }"...
[ "0.62617165", "0.6161108", "0.6105981", "0.601318", "0.5896023", "0.5821794", "0.57625407", "0.575925", "0.5681507", "0.5643661", "0.5639221", "0.56164384", "0.554341", "0.5504057", "0.5486499", "0.5481931", "0.5470238", "0.5470084", "0.54620093", "0.54322624", "0.54139614", ...
0.0
-1
Bug report by Lawrence Tay missing datatype property
public void test_lt_01() { OntModel m = ModelFactory.createOntologyModel(); DatatypeProperty p = m.createDatatypeProperty(NS + "p"); OntClass c = m.createClass(NS + "A"); Individual i = m.createIndividual(NS + "i", c); i.addProperty(p, "testData"); int count =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initDatatypeProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n ontologie.add(ontologie);\n datatypeProperties.addAll(ontologie.listDatatypeProperties().toList());\n }", "public Str...
[ "0.6707502", "0.65003145", "0.6406118", "0.61700034", "0.61013055", "0.60936344", "0.60634446", "0.60568917", "0.6039084", "0.60320973", "0.59841675", "0.59752953", "0.5966294", "0.5957516", "0.5946796", "0.59448355", "0.59407634", "0.58953387", "0.5887884", "0.58768755", "0....
0.0
-1
Bug report by anon at SourceForge Bug ID 887409
public void test_anon_0() { String NS = "http://example.org/foo#"; String sourceT = "<rdf:RDF " + " xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'" + " xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'" + " xmlns:ex='http://example...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void method_4270() {}", "public final void mo91715d() {\n }", "private void m50366E() {\n }", "protected boolean func_70041_e_() { return false; }", "public vo...
[ "0.64422226", "0.6435748", "0.63026464", "0.62940997", "0.6280498", "0.6239986", "0.62349135", "0.6197201", "0.6185781", "0.6178558", "0.61361635", "0.61249185", "0.6102997", "0.60988677", "0.6092033", "0.60621697", "0.6052185", "0.6052185", "0.6052185", "0.6052185", "0.60521...
0.0
-1
Bug report by Harry Chen closed exception when reading many models
public void test_hc_01() throws Exception { for (int i = 0; i < 5; i++) { OntModel m = ModelFactory.createOntologyModel(); FileInputStream ifs = new FileInputStream("testing/ontology/relativenames.rdf"); //System.out.println("Start reading..."); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void modelRead(){\r\n\t\tthis.model.read(in, null);\r\n\t\tSystem.out.println(\"\\n -- model read finished --\\n\");\r\n\t}", "public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}", "public boolean loadModel() throw...
[ "0.6154889", "0.5647678", "0.56370723", "0.55342597", "0.5519318", "0.5393877", "0.53445196", "0.53428644", "0.53391993", "0.5324932", "0.52686757", "0.5267075", "0.524673", "0.52108806", "0.52094454", "0.5192155", "0.5192155", "0.51866436", "0.5167482", "0.5161062", "0.51159...
0.56404805
2
Bug report by sinclair bain (slbain) SF bugID 912202 NPE in createOntResource() when 2nd param is null
public void test_sb_01() { OntModel model= ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM_RDFS_INF, null); Resource result= null; Resource nullValueForResourceType= null; result= model.createOntResource( OntResource.class, nullValueForResourceType, "http://www.somewhere.co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract T getBlankResource();", "Network_Resource createNetwork_Resource();", "Resource createResource();", "ObjectResource createObjectResource();", "Service_Resource createService_Resource();", "public void testNullResource()\n\t\tthrows Exception\n\t\t{\n\t\ttry {\n\t\t\tFileStoreIvornFacto...
[ "0.6081469", "0.5915434", "0.5898497", "0.588536", "0.57518387", "0.56730133", "0.563996", "0.55960554", "0.55825317", "0.5563678", "0.5550209", "0.55175734", "0.54916114", "0.5473853", "0.54393524", "0.5378486", "0.5357276", "0.53570974", "0.5336975", "0.53167397", "0.530226...
0.6260808
0
/ Bug report from Dave Reynolds: listDeclaredProperties not complete
public void test_der_02() { String SOURCE= "<?xml version='1.0'?>" + "<!DOCTYPE owl [" + " <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >" + " <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >" + " <!ENTITY xsd 'http://www.w3.org...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<? extends T> getDeclaredProperties();", "public abstract List<BeanPropertyDefinition> findProperties();", "ArrayList<PropertyMetadata> getProperties();", "public Set<String> getDeclaredProperties() {\n \t\tfinal Set<String> ret = new HashSet<String>();\n \t\tret.addAll(complexProperties.keySet());\n \t\...
[ "0.8019972", "0.7396135", "0.72856396", "0.7218985", "0.7142752", "0.707889", "0.7017757", "0.68701595", "0.6828023", "0.6826083", "0.6792678", "0.6743483", "0.6692016", "0.66771054", "0.66596264", "0.6648058", "0.6642406", "0.6638734", "0.66154015", "0.6612184", "0.6608673",...
0.0
-1
Bug report from Ole Hjalmar direct subClassOf not reporting correct result with rule reasoner
public void xxtest_oh_01() { String NS = "http://www.idi.ntnu.no/~herje/ja/"; Resource[] expected = new Resource[] { ResourceFactory.createResource( NS+"reiseliv.owl#Reiseliv" ), ResourceFactory.createResource( NS+"hotell.owl#Hotell" ), ResourceFactory.createReso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_sf_927641() {\n String NS = \"http://example.org/test#\";\n OntModel m0 = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );\n OntClass c0 = m0.createClass( NS + \"C0\" );\n OntClass c1 = m0.createClass( NS + \"C1\" );\n OntClass c2 = m0.createClass( ...
[ "0.69069886", "0.6470291", "0.6394809", "0.6239125", "0.6151987", "0.6123878", "0.6096734", "0.60889167", "0.60889167", "0.60889167", "0.60833156", "0.58997685", "0.5898393", "0.58652514", "0.58652514", "0.58652514", "0.58652514", "0.58652514", "0.58652514", "0.58652514", "0....
0.0
-1
Test case for SF bug 927641 list direct subclasses
public void test_sf_927641() { String NS = "http://example.org/test#"; OntModel m0 = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM ); OntClass c0 = m0.createClass( NS + "C0" ); OntClass c1 = m0.createClass( NS + "C1" ); OntClass c2 = m0.createClass( NS + "C2" ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection getSuperclasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "private List<ICl...
[ "0.6571754", "0.646135", "0.6440412", "0.6440412", "0.6440412", "0.6394533", "0.6388098", "0.63366914", "0.63155025", "0.6248408", "0.6248408", "0.6248408", "0.6229613", "0.6229613", "0.6229613", "0.6229613", "0.6229613", "0.6229613", "0.6229613", "0.6229613", "0.6229613", ...
0.5514017
89
Test case for SF bug 934528 conversion exception with owl:Thing and owl:Nothing when no reasoner
public void test_sf_934528() { OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM ); Resource r = (Resource) OWL.Thing.inModel( m ); OntClass thingClass = (OntClass) r.as( OntClass.class ); assertNotNull( thingClass ); r = (Resource) OWL....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_sf_948995() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM ); // OWL dl\n DatatypeProperty dp = m.createDatatypeProperty( NS + \"dp\" );\n dp.addRDFType( OWL.InverseFunctionalProperty );\n \n boolean ex = false;\n try {\n...
[ "0.6652174", "0.6017963", "0.5914218", "0.5903002", "0.58885825", "0.5886599", "0.58726454", "0.58533806", "0.57744056", "0.5711608", "0.56954247", "0.5693521", "0.5625518", "0.5613341", "0.560807", "0.56044304", "0.56009895", "0.5597732", "0.55951977", "0.55950826", "0.55925...
0.66747224
0
Test case for SF bug 937810 NPE from ModelSpec.getDescription()
public void test_sf_937810() throws IllegalAccessException { Field[] specs = OntModelSpec.class.getDeclaredFields(); for (int i = 0; i < specs.length; i++) { if (Modifier.isPublic( specs[i].getModifiers()) && Modifier.isStatic( specs[i].getModifiers()) && ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String describe() {\n return null;\n }", "public String getDescription() {\n/* 179 */ return getDescription((String)null);\n/* */ }", "@org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getDescription();", "public String describe() { return n...
[ "0.67708546", "0.66372466", "0.6585078", "0.64486724", "0.64480835", "0.64025193", "0.63895804", "0.6344542", "0.6335464", "0.6295764", "0.62891954", "0.62891954", "0.628143", "0.62565076", "0.62565076", "0.62565076", "0.62565076", "0.62565076", "0.62565076", "0.62536615", "0...
0.66904575
1
Test case for SF bug 940570 listIndividuals not working with RDFS_INF
public void test_sf_940570() { OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM_RDFS_INF ); OntClass C = m.createClass( NS + "C" ); Resource a = m.createResource( NS + "a", C ); TestUtil.assertIteratorValues( this, m.listIndividuals(), new Object[] {a} );...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_dn_0() {\n OntModel schema = ModelFactory.createOntologyModel( OntModelSpec.OWL_LITE_MEM_RULES_INF, null );\n \n schema.read( \"file:doc/inference/data/owlDemoSchema.xml\", null );\n \n int count = 0;\n for (Iterator i = schema.listIndividuals(); i.hasNext()...
[ "0.58056194", "0.51906383", "0.5163249", "0.5148693", "0.51171523", "0.50939554", "0.50355893", "0.50344837", "0.50237304", "0.5022655", "0.49765676", "0.4950531", "0.49142542", "0.49142542", "0.48902476", "0.4880998", "0.48671788", "0.48594737", "0.4853692", "0.483634", "0.4...
0.6795768
0
Test case for SF bug 945436 a xml:lang='' in the dataset causes sring index exception in getLabel()
public void test_sf_945436() { String SOURCE= "<?xml version='1.0'?>" + "<!DOCTYPE owl [" + " <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >" + " <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >" + " <!ENTITY ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test106() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n ElExpression elExpression0 = new ElExpression(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n xmlEntityRef0.label((Object) elExpressio...
[ "0.63235956", "0.6131725", "0.586801", "0.5793364", "0.57810366", "0.5733914", "0.5725221", "0.57140565", "0.5621407", "0.5612729", "0.55543745", "0.54941416", "0.54478735", "0.54120344", "0.541021", "0.53926355", "0.5390178", "0.5386003", "0.53660476", "0.5352013", "0.534697...
0.5631078
8
Test case for SF bug 948995 OWL full should allow inverse functional datatype properties
public void test_sf_948995() { OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM ); // OWL dl DatatypeProperty dp = m.createDatatypeProperty( NS + "dp" ); dp.addRDFType( OWL.InverseFunctionalProperty ); boolean ex = false; try { d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_sf_969475() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n ...
[ "0.7152424", "0.6365233", "0.6259501", "0.62567806", "0.6230997", "0.620028", "0.6153486", "0.611042", "0.60756814", "0.60049963", "0.59697455", "0.59568834", "0.5950737", "0.592484", "0.58430374", "0.5720488", "0.56007135", "0.5553939", "0.5547216", "0.55458117", "0.5522458"...
0.80833876
0
Test case for SF bug 969475 the return value for getInverse() on an ObjectProperty should be an object property
public void test_sf_969475() { String SOURCE= "<?xml version='1.0'?>" + "<!DOCTYPE owl [" + " <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >" + " <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >" + " <!ENTITY ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInverseFunctionalLinkProperty();", "public String getInverseRelationshipName ();", "@Override\n\tpublic void visit(InverseExpression arg0) {\n\n\t}", "@Property\n @Report(Reporting.GENERATED)\n public boolean broken_reverse_property(@ForAll List<?> original) {\n return Lists.reverse(or...
[ "0.6503424", "0.59724087", "0.58382773", "0.57187545", "0.568958", "0.5520011", "0.55072695", "0.5475193", "0.5466565", "0.546624", "0.54431856", "0.5442426", "0.54395604", "0.5408262", "0.5407834", "0.53924775", "0.5379385", "0.5374767", "0.53687555", "0.53659046", "0.534859...
0.6364157
1
Test case for SF bug 978259 missing supports() checks in OWL DL and Lite profiles
public void test_sf_978259() { OntModel md = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM ); OntModel ml = ModelFactory.createOntologyModel( OntModelSpec.OWL_LITE_MEM ); DataRange drd = md.createDataRange( md.createList( new Resource[] {OWL.Thing}) ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void initUnSupportedFeatures();", "boolean supports(Object descriptor);", "@Test\n public void checkIfSupportedTest() {\n assertTrue(EngineController.checkIfSupported(\"getMaxRotateSpeed\"));\n assertTrue(EngineController.checkIfSupported(\"rotate 10 1\"));\n assertTr...
[ "0.610839", "0.5882667", "0.56948435", "0.56561226", "0.56503123", "0.56405294", "0.56278765", "0.5584111", "0.554156", "0.5514908", "0.5500957", "0.54867834", "0.54614997", "0.5453212", "0.5436375", "0.541535", "0.5361394", "0.53580606", "0.53499955", "0.5344645", "0.5340864...
0.52620775
28
Internal implementation methods ////////////////////////////////
private int getStatementCount(OntModel ontModel) { int count = 0; for (Iterator it = ontModel.listStatements(); it.hasNext(); it.next()) { count++; } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initSelfData(...
[ "0.62845993", "0.6252478", "0.6222747", "0.61359704", "0.61304694", "0.6078507", "0.6078507", "0.6073275", "0.6061482", "0.6026212", "0.59834045", "0.59834045", "0.59834045", "0.59834045", "0.59834045", "0.59834045", "0.59604263", "0.5921257", "0.5921257", "0.59160393", "0.58...
0.0
-1
Only used by SettingsXMLopneSaver().
Saver() throws IOException { this(new File(file.getParentFile(), "#" + file.getName() + "#save#")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void saveSettings() {\n\n\t}", "private void saveSettings() {\n SettingsModel settingsModel = new SettingsModel();\n settingsModel.saveState(NJNPStartActivity.this);\n\n File NJNPSettingsDirectory = new File(NJNPConstants.DIRECTORY_PATH + NJNPConstants.SETTINGS_FOLDER);\n...
[ "0.6828336", "0.631373", "0.61461097", "0.60595727", "0.605392", "0.60509574", "0.60193217", "0.5959812", "0.59361136", "0.59335303", "0.5915226", "0.5910267", "0.588285", "0.5848074", "0.58368665", "0.582159", "0.58069664", "0.580276", "0.5790048", "0.57819414", "0.57737255"...
0.0
-1
A workaround for a restriction of super().
private Saver(File twoStageSaveFile) throws IOException { super(new OutputStreamWriter( new FileOutputStream(twoStageSaveFile) , encoding)); this.twoStageSaveFile = twoStageSaveFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", ...
[ "0.6709019", "0.6701645", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.6505796", "0.65048575", "0.65048575", ...
0.0
-1
Default constructor used when a post request is made
public Branch() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Post() {\n\t\t\n\t}", "public Post(){\n\n }", "public Postoj() {}", "private Request() {}", "private Request() {}", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "public Post() {\n }", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "public Post...
[ "0.73193", "0.7157657", "0.715366", "0.70845634", "0.70845634", "0.70843375", "0.70573425", "0.7001106", "0.6989935", "0.69764775", "0.6887765", "0.68860775", "0.6759417", "0.6735371", "0.651846", "0.6476664", "0.64489543", "0.6445956", "0.6354163", "0.6340268", "0.6337493", ...
0.0
-1
create an empty config
public RelativeResourceHandlerConfig getRelativeResourceHandlerConfig() throws FacesException { RelativeResourceHandlerConfig config = new RelativeResourceHandlerConfig(); // parse the standard config file RelativeResourceHandlerConfigParser configParser = new RelativeResourceHandlerConfigP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}", "public GameConfig createDefaultConfig() {\n\n return null;\n }", "private Config() {\n }", "public MecBasicsConfig()\n {\n\n }", "public abstract CONFIG build();", "@Override\n\tpublic DataConfig createDef...
[ "0.6872974", "0.68273354", "0.6672257", "0.66200703", "0.6574466", "0.6571913", "0.65362173", "0.653021", "0.6469782", "0.639636", "0.6386916", "0.6357662", "0.6338481", "0.63177866", "0.6310947", "0.6287323", "0.6209118", "0.6166047", "0.61320287", "0.61239755", "0.6113322",...
0.0
-1
ADD BY FJC oyzh has deleted FJC's code since the structure of StdScore was changed.
public void setVolume(int volume) { this.volume = volume; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void saveScore() {\n\t\t\n\t}", "@Override\n\tpublic void saveScore() {\n\n\t}", "@Override\n\tpublic void readScore() {\n\t\t\n\t}", "@Override\n\tpublic void readScore() {\n\t\t\n\t}", "public static void createScore(){\n\t}", "public void addScore(int score);", "@Override\n\tpubl...
[ "0.7140929", "0.7098488", "0.6935898", "0.6935898", "0.6902279", "0.68640226", "0.6832157", "0.6745205", "0.6727245", "0.6689802", "0.66592526", "0.66391444", "0.6609736", "0.6589511", "0.65839267", "0.6553135", "0.6538292", "0.65294117", "0.6512081", "0.6501308", "0.64991546...
0.0
-1
088 0 5 1 00 100 1 6 1 00 name author 08805100 08805100 08805100 C Dm Em C4 Cadd
public String scoreTo8BitsStringNotes(){ String str = "", placeholder = "00",seperator = " "; for(StdNote tNote : musicTrack.get(0).noteTrack){ str += String.format("%03d",tNote.absolutePosition) + tNote.downFlatSharp + tNote.octave + tNote.dot + placeholder + seperator; //这里要这样写么?? ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "C2451d mo3408a(C2457e c2457e);", "void mo304a(C0366h c0366h);", "java.lang.String getField1697();", "java.lang.String getField1305();", "java.lang.String getField1128();", "java.lang.String getField1281();", "String mo20731c();", "private static String authorLine()\n {\n return String.forma...
[ "0.63072395", "0.57791543", "0.57195795", "0.5700043", "0.5678305", "0.566649", "0.5663433", "0.56301033", "0.56213635", "0.5616", "0.56061006", "0.55987865", "0.55914664", "0.55899924", "0.55867726", "0.5581711", "0.5573568", "0.55671304", "0.5567055", "0.5566515", "0.555773...
0.0
-1
find coordinae of matching cab
int matchingLandmark(int x, int y) { System.out.println("matching lansg " + x + " " + y); for (int i = 0; i < 50; i++) { if (landmarks[i][0] == x && landmarks[i][1] == y) { return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getCrs(TrackPoint p) {\r\n\t\tint crsindex = 0;\r\n\t\tif (coordinateReferenceSystem.length > 1) {\r\n\t\t\tint ls = TransformCoordinates.getLocalProjectionSystem(coordinateReferenceSystem[0]);\r\n\t\t\tProjectedPoint gkbl = TransformCoordinates.wgs84ToLocalsystem(p, ls); // TODO: think / read about wh...
[ "0.6023743", "0.59054726", "0.5834595", "0.57342595", "0.57340133", "0.56455946", "0.5638828", "0.5635655", "0.55921847", "0.555717", "0.55302906", "0.54943645", "0.5478973", "0.54070616", "0.53934187", "0.53534365", "0.5340681", "0.5318282", "0.5312153", "0.52843916", "0.528...
0.5136489
33
to find the index of free cab which is shortest to the request position
int freecabInd(int dest) { int index = 0; int min = 0; int minIndex = 0; for(int i=0;i<freeCab.length;i++){ int matLandmark = matchingLandmark(freeCab[index][0], freeCab[index][1]); int dis = distance.dijkstra(adjancy, matLandmark, dest)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getMinIndex(List<Integer> cost) {\n int min = cost.get(0);\n int index = 0;\n for (int i = 1; i < cost.size(); i++) {\n if (cost.get(i) < 0) {\n continue;\n }\n if (cost.get(i) < min) {\n min = cost.get(i);\n ...
[ "0.66738516", "0.65594906", "0.6389559", "0.6373197", "0.6095473", "0.59477204", "0.58931834", "0.58853525", "0.5884598", "0.5841047", "0.5824418", "0.58193964", "0.58115804", "0.58087665", "0.58087665", "0.58087665", "0.58087665", "0.58087665", "0.58087665", "0.58087665", "0...
0.78415287
0
Creates new bot instance.
public BotPlayer(int ID) { super.setNick("Bot#" + ID); playerID = ID; bestMove = new Field[2]; destinationFields = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Bot newInstance(final String className) throws ClassNotFoundException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t NoSuchMethodException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t InstantiationException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t IllegalAccessException, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ...
[ "0.63598627", "0.5949736", "0.5770842", "0.57383114", "0.57077515", "0.5700138", "0.5685626", "0.5661163", "0.56293404", "0.5551168", "0.55034727", "0.54803956", "0.54504406", "0.54355454", "0.54355454", "0.54344785", "0.5429212", "0.5379246", "0.5324176", "0.5309355", "0.530...
0.0
-1
Server reads message from bot
@Override public String[] read() { String [] message = new String[]{ "MOVE", Integer.toString(bestMove[0].getX()), Integer.toString(bestMove[0].getY()), Integer.toString(bestMove[1].getX()), Integer.toString(bestMove[1].getY()) }; if(!canMove()) { message[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) p...
[ "0.68083644", "0.67547965", "0.67227525", "0.67125314", "0.6669955", "0.6632236", "0.65245366", "0.6522857", "0.6521792", "0.64956796", "0.6337857", "0.63193125", "0.6315533", "0.6312637", "0.6312472", "0.6286723", "0.6283068", "0.6263801", "0.6258521", "0.6247235", "0.623691...
0.0
-1
Server sends message to the bot
@Override public void sendMessage(String message) { if("YOURMOVE".equals(message)) { makeMove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void send(String message);", "public void send(Message msg);", "public void sendMessage(String message) {}", "public void sendMessage(String message);", "private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage...
[ "0.7300937", "0.72518444", "0.7222886", "0.72205454", "0.7171817", "0.7130298", "0.711346", "0.708167", "0.7042152", "0.700116", "0.697788", "0.6944942", "0.6943767", "0.6928294", "0.6901767", "0.68923134", "0.6892191", "0.6885085", "0.68849593", "0.6884278", "0.68798894", ...
0.0
-1
Bot plays a game. Makes some moves.
public void makeMove() { ArrayList<Field> myFields = new ArrayList<>(); for (Field[] fieldsRow : fields) { for (Field field : fieldsRow) { if(field != null && this.equals(field.getPlayer())) { myFields.add(field); } } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void playTurn()\n {\n try\n {\n XMLHandler.saveGame(game, GAME_CLONE_PATH);\n }\n catch(IOException | JAXBException | SAXException ex)\n {\n // TODO... ConsoleUtils.message(\"An internal save error has occured, terminating current game\");\n ...
[ "0.7882032", "0.7750897", "0.7683599", "0.76018745", "0.74930656", "0.7428573", "0.7304277", "0.72801965", "0.71961766", "0.71775925", "0.7169694", "0.7132023", "0.7129813", "0.709345", "0.70650625", "0.7060682", "0.70266", "0.7016351", "0.7012349", "0.69928384", "0.69460136"...
0.0
-1
Defines whether player decided to move or not
private boolean canMove() { return !(bestMove[0].getX() == bestMove[1].getX() && bestMove[0].getY() == bestMove[1].getY()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean changeMove();", "void setMoving(boolean isMoving);", "boolean canMove();", "boolean makeMove();", "boolean isMoving();", "private static boolean canMove() {\n return GameManager.getCurrentTurn();\r\n }", "public boolean moveOn() {\n\t\t\n\t}", "public abstract boolea...
[ "0.77205783", "0.75165236", "0.7461292", "0.74598086", "0.7309347", "0.7276388", "0.72487617", "0.7232875", "0.71907514", "0.717491", "0.71612674", "0.7148271", "0.7077771", "0.7076608", "0.7072041", "0.70238537", "0.7023768", "0.6973905", "0.69709283", "0.69458556", "0.68914...
0.6531507
55
Search for jump moves and judge their value.
private void correctJumpPaths(Field origin, Field lastField, Field currentField) { Field [] neighbours = currentField.getNeighbours(); Random random = new Random(); for(int i = 0; i < neighbours.length; ++i) { // jump move validation if((neighbours[i] != null) && (neighbours[i].getPl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<...
[ "0.6464137", "0.64124614", "0.6292719", "0.62354255", "0.62319225", "0.6173455", "0.61646426", "0.6141445", "0.6019937", "0.60168815", "0.5978496", "0.5971064", "0.5945976", "0.59437186", "0.59330326", "0.591635", "0.5914893", "0.58931893", "0.58862394", "0.5828063", "0.58211...
0.0
-1
Calculates the value of the move. It is the difference in distance between origin/destination and the field that the pawn is going to.
private int valueOfMove(Field origin, Field destination) { return distance(origin, destinationField) - distance(destination, destinationField); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMove2Value();", "private static int getMoveValue(CellData[][] cells, int fromX, int fromY,\n\t\t\tint toX, int toY) {\n\t\tPair<Boolean, Intersection> moveResult = isMoveLegal(cells,\n\t\t\t\tPair.of(fromX, fromY), Pair.of(toX, toY));\n\t\tif (!moveResult.getLeft()) {\n\t\t\tthrow new IllegalArgumentExcep...
[ "0.67300177", "0.66679186", "0.657394", "0.6477867", "0.6468025", "0.6420551", "0.64123124", "0.6380347", "0.63498986", "0.634226", "0.6315953", "0.62151355", "0.6193713", "0.6176751", "0.6175649", "0.6126212", "0.61222583", "0.61062574", "0.60676163", "0.6066475", "0.602326"...
0.7068331
0
Calculates the shortest distance in simple jumps between two fields.
private int distance(Field origin, Field destination) { int horizontalLength = Math.abs(destination.getY() - origin.getY()); int verticalLength = Math.abs(destination.getX() - origin.getX()); return (horizontalLength + verticalLength)/2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);", "public static int editDistance(String s1, String s2) {\n int[] costs = new int[s2.length() + 1];\n for (int i = 0; i <= s1.length(); i++) {\n int lastValue = i;\n for (int j = 0; j <= s2.length(...
[ "0.644504", "0.64073706", "0.63128346", "0.62722814", "0.61757845", "0.60637796", "0.60524213", "0.6034628", "0.60311896", "0.59855014", "0.59800684", "0.59793067", "0.5952905", "0.59351707", "0.591757", "0.59082645", "0.5905368", "0.5875826", "0.586958", "0.5863358", "0.5857...
0.0
-1
Sets all destination parameters according to a given arm.
public void setDestinationArm(int destinationArm) { switch (destinationArm) { case 0: destinationFields.add(fields[0][12]); for(int i = 1; i < 4; ++i) { for(Field field : fields[i]) { if(field != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDestination(Locations destination);", "protected void setArmState(int arm) {\r\n if(arm == KSGripperStates.ARM_UP)\r\n armState = arm;\r\n else if(arm == KSGripperStates.ARM_DOWN)\r\n armState = arm;\r\n }", "private void setArmorPoint (int arm)\r\n {\r\n if (arm < 1 || arm >...
[ "0.5512566", "0.5480178", "0.53279686", "0.5305018", "0.5294305", "0.51606095", "0.51524717", "0.5138326", "0.5136946", "0.5129984", "0.5127477", "0.5073163", "0.50726116", "0.50575256", "0.5040394", "0.50073546", "0.4932836", "0.4928057", "0.49032462", "0.48950517", "0.48947...
0.6890084
0
Builds a new representation containing the given string.
public StringRepresentation(String representation) { this.representation = representation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String build();", "public String build();", "public abstract String construct();", "StringContent createStringContent();", "public abstract Builder zza(String str);", "private static void subBuild(String string, StringBuilder builder) {\r\n\t\tbuilder.append(\"[\");\r\n\t\tbuilder.append(string);\...
[ "0.65313506", "0.65313506", "0.63497776", "0.6233297", "0.6193524", "0.5975795", "0.5887681", "0.57910997", "0.57894295", "0.5759762", "0.5712318", "0.569953", "0.5634284", "0.5619986", "0.55705255", "0.5528114", "0.54924226", "0.54868215", "0.54779345", "0.5427088", "0.54022...
0.5185582
31
write your code in Java SE 8 recursive?
public static int solution(int[] A) { if( A.length <= 1){ return 0; } int reverseCount = 0; int compareElement = 0; int sequenceStart = A[0]; int i = 0; while(i < A.length){ int firstElement = A[i]; // array has current and next index should be if(i == A....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "public void inOrderTraverseIterative();", "public void inOrderTraverseRecursive();", "static void p(){\n System.out.println(\"My recursion e...
[ "0.58867586", "0.5790049", "0.5755408", "0.565006", "0.5648478", "0.5630098", "0.55922717", "0.55877316", "0.5538595", "0.54680455", "0.5450379", "0.54493964", "0.5440047", "0.5440047", "0.5440047", "0.54159987", "0.5407029", "0.5401046", "0.53561294", "0.5285176", "0.5273899...
0.0
-1
Adds new entity to Team table.
void create(Team team);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}", "public void insertTeam(Team t) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction(...
[ "0.73873055", "0.738171", "0.7035984", "0.69917905", "0.6957811", "0.6580629", "0.65098727", "0.64657426", "0.6416753", "0.6372632", "0.6359155", "0.63395345", "0.62236995", "0.62019056", "0.6199356", "0.61964065", "0.6092031", "0.6082065", "0.6036818", "0.6024431", "0.602309...
0.6369858
10
Removes entity from Team table.
void remove(Team team);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}", "public void deleteTeam(Team team) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransacti...
[ "0.714651", "0.71201885", "0.68708295", "0.67095155", "0.663773", "0.65598655", "0.6498214", "0.6473926", "0.6433683", "0.6287702", "0.6280389", "0.62679124", "0.62626076", "0.626247", "0.62298423", "0.6160677", "0.6108166", "0.60877347", "0.60636586", "0.60507286", "0.604537...
0.72138375
0
Find and return Team by name.
Team findByName(String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}", "public Team findTeamFromName(String name) {\r\n Iterator<Team> itr = this.getTeamTreeFromMatchTree().iterator();\r\n Team team;\r\n while (itr.hasNext()){\r\n team = i...
[ "0.8358751", "0.8064203", "0.7966975", "0.76864696", "0.754009", "0.74579203", "0.7346206", "0.70153224", "0.6996715", "0.69926363", "0.6985463", "0.69177026", "0.6894896", "0.68685466", "0.68503046", "0.67440164", "0.67360574", "0.6668795", "0.6568165", "0.65599084", "0.6539...
0.87953717
0
Find and return Team by id.
Team findById(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Team get(Long id);", "@Override\n\tpublic TeamInfo findById(String id) {\n\t\treturn repository.findOne(id);\n\t}", "public Teams getTeamById(UUID id)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if(!optionalTeam.isPresent())\n throw new TeamNotFoundException...
[ "0.89555395", "0.8646454", "0.8621022", "0.86071646", "0.82415175", "0.8120568", "0.80171704", "0.7941846", "0.77423304", "0.76871663", "0.7331012", "0.7301277", "0.7202841", "0.7139312", "0.6941993", "0.6929879", "0.69214267", "0.6890302", "0.67385566", "0.67286843", "0.6633...
0.86186564
3
Find and return all Teams.
List<Team> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Team> getTeams() {\n return find().all();\n }", "@Override\n\tpublic List<TeamInfo> findAll() {\n\t\treturn repository.findAll();\n\t}", "@Override\r\n\tpublic ArrayList<TeamPO> getAllTeams() {\n\t\treturn teams.getAllTeams() ;\r\n\t}", "public List<Team> getAllTeams() { \r\n\t\t\tif(...
[ "0.7540103", "0.7030998", "0.70124114", "0.6967293", "0.6897498", "0.6757091", "0.67497635", "0.6696436", "0.66950595", "0.6679333", "0.66632086", "0.6651767", "0.6521972", "0.6381139", "0.637556", "0.6337917", "0.6315982", "0.6315762", "0.6313158", "0.62722087", "0.6247913",...
0.67726016
5
Update team in database.
void update(Team team);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Team update(TeamDTO teamForm) throws TeamNotFoundException;", "@Override\n @Transactional\n public boolean updateTeam(Team team) {\n String sql = \"UPDATE Team SET teamname = ? WHERE teamid = ?\";\n return jdbc.update(sql, team.getName(), team.getId()) > 0;\n }", "private static v...
[ "0.74666274", "0.72788066", "0.7157154", "0.7138274", "0.70316446", "0.69923913", "0.6708385", "0.6598317", "0.65836096", "0.6531948", "0.65234864", "0.6437243", "0.63924664", "0.6385156", "0.6382326", "0.63175064", "0.62504613", "0.6232968", "0.6211431", "0.6161564", "0.6097...
0.72502136
2
Las siguientes variables estan definidas como estaticas en la clase Datum: Datum DatumED50 = Datum(6378388D, 6356911.94612795); Datum DatumWGS84 = Datum(6378137D, 6356752.31424518); UTM:
public Coordenada (Datum _d, double x, double y, double z, byte _zona, boolean _hemisferio_N) { d = _d; X = x; Y = y; Z = z; // Altura ortometrica, sobre NMMA zona = _zona; zona_ori = _zona; hemisferio_N = _hemisferio_N; GenerarCoordenadasGeograficas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Datum() {\n this.tag = 1;\n this.monat = 1;\n this.jahr = 1;\n }", "public Datum(Datum datum) {\n this.tag = datum.tag;\n this.monat = datum.monat;\n this.jahr = datum.jahr;\n }", "public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina ...
[ "0.71406245", "0.6667765", "0.63393617", "0.59873694", "0.5973272", "0.59194416", "0.580447", "0.55413026", "0.5456279", "0.53017956", "0.5300688", "0.525645", "0.52516234", "0.52393764", "0.51570326", "0.515365", "0.5149092", "0.5143257", "0.51345855", "0.5127496", "0.512529...
0.5783787
7
Decimos si es hemisferio NORTE de acuerdo a lo dicho al definir la coordenada UTM:
boolean EsHemisferioNorte() { return hemisferio_N; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "boolean EsHemisferioSur()\r\n {\r\n if (getL...
[ "0.61698794", "0.61256224", "0.61053175", "0.61053175", "0.6074363", "0.60386246", "0.6015028", "0.5986668", "0.5930123", "0.59266305", "0.59230316", "0.58980423", "0.5897007", "0.58704287", "0.5856878", "0.58305526", "0.5820925", "0.58102375", "0.5809194", "0.58014584", "0.5...
0.0
-1
Decimos si es hemisferio SUR teniendo en cuenta la latitud de las Canarias: Esto es un error porque las Canarias estan en el hemisferio Norte !!!
boolean EsHemisferioSur() { if (getLat() < 29.46) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHasLatitude();", "@Test\n public void testPulkovo19953DegreeGKZone59() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone59());\n }", "boolean hasHasLongitude();", "@Test\n public void testPulkovo19953DegreeGKZone47() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKZone47());\n }...
[ "0.56486654", "0.55035514", "0.54973", "0.5486427", "0.54863423", "0.54863113", "0.54840356", "0.54768115", "0.54768115", "0.54766107", "0.54758763", "0.54737467", "0.54661316", "0.5462527", "0.5455284", "0.5453501", "0.5453444", "0.5449378", "0.5448796", "0.54375964", "0.543...
0.70339656
0
System.out.println("Inicio..."); Coordenada utm = new Coordenada(new Datum(6378388, 6356911.946130), 435157.59, 4815453.64, 0, (byte)30, true); Coordenada utm = new Coordenada(new Datum(6378388, 6356911.946130), 448500759, 4377580.93, 0, (byte)30, true); System.out.println("UTM a geograficas: x="+utm.X+" y="+utm.Y); ut...
public static void main (String[] args) { Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795), 481742, 4770800, 700, (byte)29, true); //System.out.println("lon="+utm.getLon()+" lat="+utm.getLat()); //System.out.println(utm.getGrados(utm.getLon())+"¦ "+utm.getMinutos(utm.getLon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coordenada (Datum _d, double x, double y, double z,\r\n\t\t byte _zona, boolean _hemisferio_N)\r\n {\r\n d = _d;\r\n X = x;\r\n Y = y;\r\n Z = z; // Altura ortometrica, sobre NMMA\r\n zona = _zona;\r\n zona_ori = _zona;\r\n hemisferio_N = _hemisferio_N;\r\n GenerarCoordenadasGeograficas(...
[ "0.6937738", "0.6497548", "0.64515364", "0.6197519", "0.6173302", "0.614245", "0.61329377", "0.6096343", "0.609454", "0.6089048", "0.6088626", "0.6085112", "0.60821664", "0.6063271", "0.60596496", "0.60515046", "0.6045809", "0.6043715", "0.6034559", "0.6034193", "0.60336906",...
0.8784624
0