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
verify user is on Summer Dresses page
public boolean veirfyUserOnSummerDressesPage(){ WebElement page = driver.findElement(By.cssSelector("div[class='cat_desc']")); boolean pageStatus = page.isDisplayed(); return pageStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasLandingPageView();", "public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }", "@Given(\"^That dante is in the flights page$\")\n\tpublic void thatDanteIsInTheFlightsPage() throws Exception {\n\t\tdante.wasAbleTo(OpenTheBrowser.on(viajesExitoHomePage...
[ "0.54869425", "0.545179", "0.5413343", "0.5412764", "0.54126745", "0.5376051", "0.534281", "0.53324205", "0.52801317", "0.5276821", "0.52481216", "0.5210208", "0.5185074", "0.5153891", "0.51530606", "0.51526815", "0.513037", "0.51152414", "0.5063612", "0.5053584", "0.50520176...
0.5560493
0
Create the HMAC (HMACSHA1) over a document.
@Override protected InputStream generateMAC(InputStream document, byte[] passwordMAC) { SecretKeySpec sKeySpec2 = new SecretKeySpec(passwordMAC, "HmacSHA1"); Mac m = null; try { m = Mac.getInstance("HmacSHA1"); } catch (NoSuchAlgorithmException e) { // TODO Auto-generated catch block e.printStackT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] hmacSha1(byte[] value) {\n try {\n // Get an hmac_sha1 key from the raw key bytes\n byte[] keyBytes = secretkey;\n SecretKeySpec signingKey = new SecretKeySpec(keyBytes, \"HmacSHA1\");\n // Get an hmac_sha1 Mac instance and initialize with the signin...
[ "0.6003117", "0.5930298", "0.58911526", "0.5797564", "0.5754968", "0.57305616", "0.5491401", "0.54908717", "0.5444924", "0.54104745", "0.53886855", "0.53364426", "0.5302448", "0.526071", "0.52255523", "0.51862735", "0.51272887", "0.5106269", "0.5097687", "0.5079069", "0.50534...
0.54195803
9
Create a new session key (and possibly iv).
@Override protected SessionKey generateSessionKey() { SessionKey sk = new SessionKey(); SecureRandom random = null; try { random = SecureRandom.getInstance("SHA1PRNG"); } catch (NoSuchAlgorithmException e) { // TODO Auto-generated catch block e.printStackTrace(); } byte bytes[] = new byte[1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SessionKey (int keyLength) throws NoSuchAlgorithmException {\n KeyGenerator key1 = KeyGenerator.getInstance(\"AES\");\n key1.init(keyLength);\n this.secretKey = key1.generateKey();\n }", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }",...
[ "0.6475034", "0.6374539", "0.6212031", "0.60842556", "0.6050658", "0.60139066", "0.59059507", "0.5897668", "0.5834795", "0.57370234", "0.573296", "0.5709835", "0.5700217", "0.5683779", "0.5670507", "0.56550944", "0.5649169", "0.55927926", "0.55787086", "0.5549191", "0.5545739...
0.71410024
0
Encrypts a session key.
@Override protected byte[] encryptSessionKey(SessionKey sessionKey, InputStream certificate) { CertificateFactory cf = null; Certificate cert = null; try { cf = CertificateFactory.getInstance("X.509"); } catch (CertificateException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void Encrypt(Object key) {\n\n\t}", "Encryption encryption();", "String encryption(Long key, String encryptionContent);", "private static String getEncryptedKey(String key) {\r\n\t\ttry {\r\n\t\t\treturn SimpleCrypto.encrypt(SimpleCrypto.getDeviceSeed(ctx), key);\r\n\t\t} catch (Exception...
[ "0.63224745", "0.6003183", "0.59280306", "0.5798162", "0.5723848", "0.57186764", "0.559605", "0.558947", "0.5571519", "0.5523285", "0.548215", "0.5476028", "0.54612106", "0.54428196", "0.5427214", "0.5421102", "0.53799677", "0.5363771", "0.5341547", "0.5334853", "0.53124475",...
0.51780295
30
Generates the encrypted file header.
@Override protected FileHeader generateFileHeader(byte[] encryptedSessionKey) { FileHeader fh = new FileHeader(); fh.setEncryptedSessionKey(encryptedSessionKey); fh.setVersion(1); return fh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeHEADER() throws IOException {\n\t\tmeta.compute_checksum();\n\t\tmeta.write();\n\t\t\n\t\t// We could also generate a non-aldus metafile :\n\t\t// writeClipboardHeader(meta);\n\t\t\n\t\t// Generate the standard header common to all metafiles.\n\t\thead.write();\n\t}", "OutputFile encryptingOutp...
[ "0.6530802", "0.64890605", "0.6100692", "0.6004047", "0.59693694", "0.5956075", "0.582526", "0.5613517", "0.5417825", "0.54078287", "0.54057926", "0.5320187", "0.5306847", "0.52945524", "0.5272953", "0.5246835", "0.5208043", "0.5204974", "0.5204286", "0.52002597", "0.51603514...
0.7636285
0
/ A test for finding race conditions in initializing InputSplits
@Test public void testSplits() throws Exception { BufferedWriter writer = new BufferedWriter(new FileWriter(IN)); for(int i = 0; i < 10000; i++) { writer.write("str1" + " " + "str2" + " " + "30" + " " + "4000" + "\n"); } writer.close(); Schema schema = new Schema("schema", Fields.parse("a:string, b:stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException {\n\t}", "public StreamInputSplit() {\n // No-op\n }", "@Override\n\tpublic void initialize(InputSplit arg0, TaskAttemptContext arg1)\n\t\t\tthrows IOException, InterruptedException ...
[ "0.6548804", "0.64628756", "0.6248292", "0.5783196", "0.56769145", "0.5672365", "0.5649027", "0.5603584", "0.55183375", "0.5506796", "0.5506796", "0.54917663", "0.54723525", "0.54646474", "0.5442337", "0.5437576", "0.5430381", "0.5430381", "0.5430381", "0.5430381", "0.5425582...
0.60071564
3
we should pass data
@Override public void onDataChange(@NonNull DataSnapshot snapshot) { ((globalShared)activity.getApplicationContext()).setPassingUserAccount(snapshot.getValue(userAccount.class)); Intent profileViewer = new Intent(activity, activity_profile_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "public void postData() {\n\n\t}", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r...
[ "0.6946152", "0.6906057", "0.6697764", "0.6604417", "0.64852667", "0.64521664", "0.6352306", "0.6284909", "0.6278538", "0.6278538", "0.6278538", "0.6278538", "0.6278538", "0.6278538", "0.6222632", "0.6200151", "0.6200151", "0.61786705", "0.6174597", "0.61735916", "0.6149013",...
0.0
-1
we should pass data
@Override public void onClick(View v) { Log.d(TAG, "onResume: reply has been clicked "); ((globalShared) activity.getApplicationContext()).setPassingReply(tempReply); Intent profileViewer = new Intent(activity, activity_reply_reply.class); acti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "public void postData() {\n\n\t}", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r...
[ "0.6946152", "0.6906057", "0.6697764", "0.6604417", "0.64852667", "0.64521664", "0.6352306", "0.6284909", "0.6278538", "0.6278538", "0.6278538", "0.6278538", "0.6278538", "0.6278538", "0.6222632", "0.6200151", "0.6200151", "0.61786705", "0.6174597", "0.61735916", "0.6149013",...
0.0
-1
Time: O(B lg B), Space: O(B)
public int leastBricks(List<List<Integer>> wall) { if (wall == null || wall.isEmpty()) { return 0; } int height = wall.size(); int wallWidth = 0; for (int brickWidth : wall.get(0)) { wallWidth += brickWidth; } List<List<Integer>> positions = getPositions(wall);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.66161", "0.6107229", "0.6065795", "0.56877404", "0.56256324", "0.5621128", "0.55983096", "0.55743927", "0.5523847", "0.5509487", "0.5475842", "0.5474793", "0.54627544", "0.5422682", "0.53713554", "0.5343324", "0.53314525", "0.5312595", "0.5310807", "0.52890104", "0.5270457...
0.0
-1
Time: O(B), Space: O(B)
private List<List<Integer>> getPositions(List<List<Integer>> wall) { List<List<Integer>> positions = new ArrayList<>(); for (List<Integer> row : wall) { List<Integer> positionRow = new ArrayList<>(); int position = 0; for (int x : row) { position += x; positionRow.add(position); } po...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.63132554", "0.60224694", "0.600404", "0.5640502", "0.5489345", "0.54708034", "0.5434405", "0.53485835", "0.5344551", "0.5299375", "0.52989036", "0.52589375", "0.5258173", "0.5256411", "0.52425814", "0.52392995", "0.52245605", "0.5217807", "0.52140546", "0.5212454", "0.5178...
0.0
-1
Time: O(B), Space: O(B)
private Map<Integer, Set<Integer>> getRowsPerPosition(List<List<Integer>> positions) { Map<Integer, Set<Integer>> map = new HashMap<>(); for (int rowIndex = 0; rowIndex < positions.size(); rowIndex++) { List<Integer> row = positions.get(rowIndex); for (int position : row) { if (!map.containsKey(posit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.63132554", "0.60224694", "0.600404", "0.5640502", "0.5489345", "0.54708034", "0.5434405", "0.53485835", "0.5344551", "0.5299375", "0.52989036", "0.52589375", "0.5258173", "0.5256411", "0.52425814", "0.52392995", "0.52245605", "0.5217807", "0.52140546", "0.5212454", "0.5178...
0.0
-1
A utility function to print the constructed MST stored in parent[]
public static void printMST(GraphAdjacencyMatrix graph, int parent[]) { System.out.println("Edge \tWeight"); for (int i = 1; i < graph.getV(); i++) System.out.println(parent[i] + " - " + i + "\t" + graph.getMatrix()[i][parent[i]]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void printMST(int[] parent) {\n System.out.println(\"Edge \\tWeight\");\n for (int i = 1; i < VERTICES; i++)\n System.out.println(parent[i] + \" - \" + i + \"\\t\" + graph[i][parent[i]]);\n }", "public void printMST() {\n\t\t\n\t\tString mstPath = \"\";\n\t\t\n\t\t/**Stores the parent...
[ "0.7891807", "0.7013739", "0.66564167", "0.6546545", "0.6512491", "0.6453969", "0.64472085", "0.6442776", "0.64180464", "0.64133406", "0.64049715", "0.63692474", "0.63692474", "0.63692474", "0.63491535", "0.63481706", "0.6342893", "0.634125", "0.6297111", "0.62408435", "0.624...
0.69796306
2
Test whether the hash function works
@Test public void testHash() { // the hash function does sha256, but I guess I don't care about implementation // test if two things hash to same value logger.trace("Equal strings hash to same value"); String hash1 = Util.hash("foobar"); String hash2 = Util.hash("foobar"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHash();", "@Test\n public void testHash() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\t\tint hash = l.hash(\"boo\");\n\t\tint result = 1428150834;\n\t\tassertEquals(result, hash);\n }", "int getHash();", "@Test\n\t\tpublic void testhashPassword() {\n\t\t\tString actual = Professor.hashPasswo...
[ "0.81342435", "0.78222156", "0.72689223", "0.7203043", "0.7113465", "0.7038031", "0.7023083", "0.69711775", "0.6941972", "0.6880813", "0.686216", "0.68514365", "0.68210256", "0.68045783", "0.6789483", "0.67702675", "0.6760595", "0.67431325", "0.67431325", "0.6724391", "0.6724...
0.8054987
1
Test whether stringToList function works
@Test public void testStringToList() { // test whether empty string converts to empty list logger.trace("Empty string handled?"); String string = ""; List<String> list = Util.stringToList(string); Assert.assertEquals(list.size(), 0); // test whether single space conv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testListToString() {\n // test whether empty list converts to some string\n logger.trace(\"Empty list handled?\");\n String string = \"\";\n List<String> list = Util.stringToList(string);\n String string2 = Util.listToString(list);\n Assert.assertTru...
[ "0.76368046", "0.6665588", "0.636456", "0.6214014", "0.61279255", "0.6105478", "0.60831136", "0.6071139", "0.6022357", "0.5996587", "0.597415", "0.5947384", "0.59438324", "0.58931565", "0.5875224", "0.5875119", "0.58543074", "0.5828484", "0.58237565", "0.58237565", "0.5815526...
0.84306973
0
Test whether getRandomRange works
@Test public void testGetRandomRange() { // XXX what should be tested? // bad values to the range? // min == max? Assert.assertTrue(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRanges() throws Exception {\n int num = atLeast(1000);\n for (int i = 0; i < num; i++) {\n BytesRef lowerVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n BytesRef upperVal = new BytesRef(TestUtil.randomUnicodeString(random()));\n if (upper...
[ "0.7323436", "0.7289777", "0.7287665", "0.7050892", "0.6903199", "0.6787398", "0.6683002", "0.6673291", "0.6608344", "0.65442127", "0.65304554", "0.65099174", "0.6445657", "0.64445066", "0.64372426", "0.6427381", "0.63524437", "0.6352018", "0.6316524", "0.63148236", "0.626058...
0.7932768
0
Test whether listToString works
@Test public void testListToString() { // test whether empty list converts to some string logger.trace("Empty list handled?"); String string = ""; List<String> list = Util.stringToList(string); String string2 = Util.listToString(list); Assert.assertTrue(string2.length...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testToString() {\r\n assertEquals(\"[]\",\r\n list.toString());\r\n list.add(\"A\");\r\n assertEquals(\"[A]\",\r\n list.toString());\r\n list.add(\"B\");\r\n assertEquals(\"[A, B]\",\r\n list.toString());\r\n }", "@Tes...
[ "0.8107013", "0.79784757", "0.7612131", "0.74735177", "0.73209536", "0.73209536", "0.7259525", "0.71866417", "0.7107781", "0.68637604", "0.6851361", "0.6814527", "0.6671095", "0.65408546", "0.6535013", "0.65019333", "0.64194894", "0.6381221", "0.6328194", "0.6296322", "0.6264...
0.81704056
0
should only be used by the ressource subsystem
public void SetID(int id) { TextureID = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Ressource createRessource();", "@Override\n public void refreshResources() {\n\n }", "public void softwareResources() {\n\t\t\r\n\t}", "protected abstract T createRessource();", "@Override\r\n public void loadResources() {\n\r\n }", "@Override\n public void onLoadResources() {\n }", "@Ove...
[ "0.69640946", "0.67081916", "0.66271365", "0.66003424", "0.65247065", "0.6453199", "0.63655335", "0.63215107", "0.62910235", "0.6281115", "0.6237964", "0.6159996", "0.61138976", "0.60779625", "0.60012054", "0.5984623", "0.5945079", "0.59258944", "0.5920257", "0.59149134", "0....
0.0
-1
Just wraps this texture in a material
public CubeMaterial asMaterial() { if(mat != null) return mat; mat = new CubeMaterial(); mat.setTexture(this); return mat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static PhongMaterial makeSpecialMaterial(Image texture) {\n PhongMaterial material = new PhongMaterial();\n material.setDiffuseColor(Color.BLACK);\n material.setSpecularColor(Color.BLACK);\n material.setDiffuseMap(texture);\n material.setSelfIlluminationMap(texture);\n ...
[ "0.662382", "0.6472454", "0.6387719", "0.62882495", "0.6168721", "0.6132725", "0.6092472", "0.6084425", "0.60364956", "0.60364956", "0.60095125", "0.597639", "0.59476936", "0.59233516", "0.5919734", "0.5916443", "0.5901159", "0.5826998", "0.5824183", "0.58181864", "0.58133435...
0.67862004
0
Created by gaowe on 2017/7/6.
public interface FacebookShareListener { void OnShareSuccess(Sharer.Result result); void onShareCancel(); void OnShareError(FacebookException error); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", ...
[ "0.6047531", "0.5900707", "0.5688597", "0.5688208", "0.56761163", "0.5669093", "0.5669093", "0.56293994", "0.55871725", "0.5569222", "0.5551367", "0.55493134", "0.5534977", "0.5528703", "0.55044055", "0.55004245", "0.5488785", "0.54805857", "0.5478061", "0.54702055", "0.54670...
0.0
-1
Construct a new TransportTruck instance
TransportTruck() { x = 0; y = 0; nrDoors = 2; enginePower = 1000; currentSpeed = 0; color = Color.red; modelName = "Transport Truck"; storage = new StorageUnit(this, 5); stopEngine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Truck(){\n }", "abstract public Transports createTransports();", "public TruckManager() {\r\n super(Truck.TRUCKS);\r\n }", "public Transportista() {\n }", "public FridgeTruck(){\n\t\tsuper();\n\t\tthis.maxTemp = 10; // degrees Celsius\n\t\tsetCost(maxTemp);\n\t\tthis.maxCapacity = 800;\n\t...
[ "0.7169042", "0.6914959", "0.6882888", "0.63294697", "0.6236058", "0.61357623", "0.603414", "0.5990533", "0.5906245", "0.58995456", "0.5865075", "0.5854827", "0.58517885", "0.5805814", "0.58040345", "0.5793995", "0.57682616", "0.5768069", "0.573844", "0.57254016", "0.570643",...
0.71901953
0
Gets the widht of the TransportTruck
@Override public int getWidth() { return 260; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getW() {\n\t\treturn this.width;\n\t}", "private float getRunwayWidth() {\n\t\treturn runwayWidth;\n\t}", "public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}", "public int getWidth(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n return w.getWidth();\n ...
[ "0.69050735", "0.6825385", "0.66488063", "0.6629443", "0.65797675", "0.6534079", "0.6503034", "0.64791065", "0.6465546", "0.64608055", "0.64537525", "0.64419", "0.6438984", "0.6438984", "0.6438984", "0.6438984", "0.6438984", "0.6438984", "0.6438984", "0.6438984", "0.6438984",...
0.0
-1
Gets the height of the TransportTruck
@Override public int getHeight() { return 320; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getHeight() {\n\t\t\treturn height.get();\n\t\t}", "public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }", "public double getHeight () {\n return height;\n }", "public double getHeight() {\n return height;\n }",...
[ "0.7319408", "0.725828", "0.72260976", "0.7214777", "0.7214777", "0.71990377", "0.71990377", "0.71990377", "0.7191862", "0.7191862", "0.71908087", "0.7189497", "0.7189497", "0.7189497", "0.7189497", "0.7189497", "0.7189497", "0.7189497", "0.7189497", "0.7189497", "0.7189497",...
0.0
-1
Gets the depth of the TransportTruck
@Override public int getDepth() { return 680; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getDepth();", "public float getDepth() {\r\n\t\treturn Float.parseFloat(getProperty(\"depth\").toString());\t\r\n\t}", "public static int getDepth() {\n return depth;\n }", "int getDepth();", "float getDepth();", "float getDepth();", "public int getDepth() {\n return dept...
[ "0.7597768", "0.7555179", "0.7502281", "0.7464199", "0.7458896", "0.7458896", "0.7398623", "0.73943824", "0.7391291", "0.7360066", "0.73393536", "0.7328079", "0.7303822", "0.7294611", "0.7285676", "0.72805196", "0.72805196", "0.7272995", "0.7262245", "0.72364503", "0.72274417...
0.60922235
57
TransportTruck is eligible to move if ramp is closed
@Override public boolean canMove() { return storage.isRampClosed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean shouldStopBeingCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount >= this.combatEngineerTriggerPercentageC...
[ "0.61672103", "0.6103579", "0.5982098", "0.592702", "0.5911595", "0.58448523", "0.5837405", "0.58192325", "0.5799895", "0.57953626", "0.57790077", "0.57262623", "0.5709278", "0.57042444", "0.5700513", "0.56426877", "0.56356776", "0.5631399", "0.5616553", "0.5604761", "0.56014...
0.67737174
0
Can drop the ramp if the TransportTruck is on standby
public void dropRamp() { if (currentSpeed == 0) { storage.dropRamp(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pump_water() {\n\t\t\r\n\t}", "private boolean deactivate() {\r\n // Automatically shutdown thruster if no input was given for a given interval\r\n if(state != State.Inactive) {\r\n state = State.Inactive;\r\n if(!isServer) {\r\n thruster.setParticl...
[ "0.58896893", "0.5888905", "0.5763726", "0.5724192", "0.57227314", "0.5713922", "0.5655584", "0.56311935", "0.56268764", "0.5599352", "0.5599284", "0.5566489", "0.554581", "0.55351216", "0.55199015", "0.55120885", "0.5497627", "0.5494043", "0.5493339", "0.54899704", "0.548880...
0.6906237
0
Can raise the ramp if the TransportTruck is on standby
public void raiseRamp() { if (currentSpeed == 0) { storage.raiseRamp(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkIfShowerOn(){\n double currentSMA = mySMA.currentAverage();\n Log.d(LOGTAG,\"currentSMA: \"+currentSMA);\n Log.d(LOGTAG,\"isShowerOn: \"+ isShowerOn);\n if (currentSMA>SMA_THRESHOLD && !isShowerOn){\n //Initialize stuff to do once shower is on\n is...
[ "0.6093843", "0.6069786", "0.59719723", "0.59512293", "0.5911891", "0.59096014", "0.58963233", "0.5830414", "0.58221996", "0.5772789", "0.5748853", "0.57467186", "0.57092893", "0.5704097", "0.5694865", "0.567321", "0.5637191", "0.5637114", "0.56216425", "0.5620192", "0.561314...
0.6569529
0
Loads vehicle on to the TransportTruck if ramp is down
public void loadVehicle(Vehicle vehicle) { storage.addVehicle(vehicle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TransportTruck() {\n x = 0;\n y = 0;\n nrDoors = 2;\n enginePower = 1000;\n currentSpeed = 0;\n color = Color.red;\n modelName = \"Transport Truck\";\n\n storage = new StorageUnit(this, 5);\n\n stopEngine();\n }", "@Override\n public void robotPe...
[ "0.5701024", "0.5399102", "0.5382063", "0.52918786", "0.5263452", "0.5219734", "0.5210132", "0.5197311", "0.5191869", "0.515798", "0.51397485", "0.51263535", "0.51202804", "0.51050955", "0.50870085", "0.5085115", "0.5031766", "0.5021695", "0.5014512", "0.4991924", "0.49882796...
0.5317467
3
Unloads last vehicle from the TransportTruck
public Vehicle unloadLastVehicle() { return storage.removeVehicleBack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeVehicle() {\n\t\tmVehicles.removeFirst();\n\t}", "public void unload(){ \n load.unloadFirst(); \n }", "public void vacateGarage() {\n\t\tvehicles.clear(); \n\t}", "public boolean removeVehicle(){\r\n veh = null;\r\n return true;\r\n }", "public voi...
[ "0.6608817", "0.5859541", "0.5829434", "0.5772216", "0.56538594", "0.5652143", "0.55916774", "0.55889386", "0.5573", "0.55706424", "0.5545625", "0.55127585", "0.5443617", "0.54292244", "0.5379656", "0.53524077", "0.5341001", "0.53219455", "0.5317272", "0.5304912", "0.52698904...
0.7772114
0
Sets the kind of compression and format of compression information of this sound essence data. This property is optional and if the property is not present then the described audio essence is not compressed. Set to null to indicate that the described audio essence is not compressed.
public void setSoundCompression( AUID compression);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAudioCompressionType() {\n return audioCompressionType;\n }", "public void setAudioCompressionType(String audioCompressionType) {\n this.audioCompressionType = audioCompressionType;\n }", "public DatasetCompression compression() {\n return this.innerTypeProperties() ...
[ "0.6164145", "0.60683304", "0.558304", "0.5446195", "0.54136765", "0.5362033", "0.53436744", "0.53376055", "0.52023226", "0.5135082", "0.5065239", "0.50600886", "0.50415456", "0.50402963", "0.4959288", "0.4897338", "0.4875385", "0.4864266", "0.48640794", "0.47647348", "0.4745...
0.62120634
0
Returns he kind of compression and format of compression information of this sound essence data. This property is optional.
public AUID getSoundCompression() throws PropertyNotPresentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAudioCompressionType() {\n return audioCompressionType;\n }", "public String getVideoCompressionType() {\n return videoCompressionType;\n }", "public String getInputCompressionType() {\n return this.inputCompressionType;\n }", "public DatasetCompression compress...
[ "0.74878657", "0.65151143", "0.64583087", "0.6458306", "0.62548137", "0.62114364", "0.6186002", "0.61159605", "0.600882", "0.5869252", "0.5864296", "0.57936466", "0.57392466", "0.57198066", "0.5681003", "0.562996", "0.56210876", "0.5570812", "0.5539752", "0.5522508", "0.55052...
0.6725062
1
Sets the number of audio channels described by this sound descriptor.
public void setChannelCount( @UInt32 int channelCount) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setAudioChannelCount(int value) {\n\n audioChannelCount_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setChannelCount(int value) {\n this.channelCount = value;\n }", "@java.lang.Override\n public int getAudioChannelCount(...
[ "0.7647237", "0.69188625", "0.6527847", "0.64442897", "0.64326894", "0.64183795", "0.62332416", "0.6187726", "0.61088276", "0.59951985", "0.5981632", "0.59056914", "0.5904498", "0.5816738", "0.57857066", "0.5677888", "0.56505513", "0.56457645", "0.559746", "0.55154616", "0.55...
0.6064975
9
Returns the number of audio channels described by this sound descriptor.
public @UInt32 int getChannelCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getChannelCount() {\r\n\t\tif (audioFile != null && audioFile.getFormat() != null) {\r\n\t\t\tif (showMono) {\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\treturn audioFile.getFormat().getChannels();\r\n\t\t}\r\n\t\treturn 1;\r\n\t}", "@java.lang.Override\n public int getAudioChannelCount() {\n return ...
[ "0.80246615", "0.78545094", "0.7842545", "0.73719764", "0.7172752", "0.708269", "0.70692414", "0.7013202", "0.7000543", "0.69418573", "0.6727139", "0.6696664", "0.65851015", "0.6363691", "0.6236435", "0.6232828", "0.6105809", "0.6105621", "0.6103244", "0.60905236", "0.6035399...
0.7619954
3
Sets the audio sampling rate of audio essence described by this sound descriptor.
public void setAudioSampleRate( Rational audioSamplingRate) throws NullPointerException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }", "public void setAudioSamplingRate(int audioSamplingRate) {\n this.audioSamplingRate = audioSamplingRate;\n }", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "p...
[ "0.7329726", "0.71364874", "0.71234834", "0.71152115", "0.71073765", "0.6913346", "0.6894639", "0.65691197", "0.62756443", "0.62352556", "0.6170063", "0.61694086", "0.61321884", "0.60824406", "0.60744387", "0.60299647", "0.6017284", "0.59881973", "0.5985753", "0.5981115", "0....
0.60432285
15
Returns the audio sampling rate of audio essence described by this sound descriptor.
public Rational getAudioSampleRate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSamplingRate( ) {\r\n return samplingRate;\r\n }", "@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}", "public int getAudioSampleRate() {\n\t\treturn mSampleRate;\n\t}", "public int getSamplingRate() {\n return samplingRate;\n }", "pu...
[ "0.7167871", "0.70838475", "0.70141596", "0.69526184", "0.6855609", "0.68549335", "0.67855066", "0.67706484", "0.655316", "0.6536773", "0.65166736", "0.64416033", "0.6438606", "0.64268726", "0.6422461", "0.60944057", "0.6090739", "0.60732895", "0.6064082", "0.60346", "0.60154...
0.7502391
0
Sets the locked flag for the audio essence described this sound descriptor, which indicates whether the number of samples per frame is locked. Set this optional property to null to omit it.
public void setIsLocked( @Bool Boolean locked);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocked(boolean locked)\n\t{\n\t\tthis.locked = locked;\n\t}", "public void setLocked(boolean value) {\n\t\tisLocked = value;\n\t}", "public final void setLocked(final boolean lockedNew) {\n this.locked = lockedNew;\n }", "public void setLockFlag(Integer aLockFlag) {\n lockFlag...
[ "0.67260885", "0.609486", "0.58972794", "0.5873111", "0.5873111", "0.5873111", "0.5732485", "0.570612", "0.57004786", "0.56972826", "0.55118114", "0.5464027", "0.5450532", "0.5443178", "0.5418735", "0.53666437", "0.5351603", "0.5311412", "0.5308476", "0.5281011", "0.52426976"...
0.5968228
2
Returns the locked flag for the audio essence described by this sound descriptor, which indicates whether the number of samples per frame is locked. This property is optional.
public @Bool boolean isLocked() throws PropertyNotPresentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean soundResourcesLocked();", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public boolean isLocked() { return RMUtils.boolValue(get(\"Lock...
[ "0.6442286", "0.6280924", "0.6280924", "0.6280924", "0.624422", "0.6216332", "0.6134882", "0.60906786", "0.60496116", "0.60496116", "0.6027179", "0.60212684", "0.5982768", "0.59725726", "0.59586674", "0.5930861", "0.59200317", "0.59200317", "0.591328", "0.58819014", "0.579665...
0.56099063
26
Returns the locked flag for the audio essence described by this sound descriptor, which indicates whether the number of samples per frame is locked. This property is optional.
public @Bool boolean getLocked() throws PropertyNotPresentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean soundResourcesLocked();", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public boolean isLocked() { return RMUtils.boolValue(get(\"Lock...
[ "0.6442286", "0.6280924", "0.6280924", "0.6280924", "0.624422", "0.6216332", "0.6134882", "0.60906786", "0.60496116", "0.60496116", "0.6027179", "0.60212684", "0.5982768", "0.59725726", "0.59586674", "0.5930861", "0.59200317", "0.59200317", "0.591328", "0.58819014", "0.579665...
0.5734978
22
Sets the audio reference level of the audio essence described by this sound descriptor. This property specifies the number of dBm for 0VU. Set this optional property to null to omit it.
public void setAudioReferenceLevel( @Int8 Byte level);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMicGainDb(float level);", "public void setPlaybackGainDb(float level);", "public @Int8 byte getAudioReferenceLevel()\r\n\t\tthrows PropertyNotPresentException;", "void onAudioLevel(float level);", "public void setAudioDescriptor( AudioDescriptor audioDescriptor );", "public SoundlevelMeasu...
[ "0.67890304", "0.6115946", "0.60902196", "0.59434724", "0.58546704", "0.57902575", "0.5751057", "0.5742149", "0.5736259", "0.5564246", "0.5371465", "0.53415185", "0.5264407", "0.52260476", "0.52219415", "0.5214178", "0.52094555", "0.52077854", "0.5203212", "0.5199302", "0.519...
0.76243216
0
Returns the audio reference level of this sound descriptor. This specifies the number of dBm for 0VU. This property is optional.
public @Int8 byte getAudioReferenceLevel() throws PropertyNotPresentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLevel() {\n if ( air != null )\n return air.sampleRSSI(CC1000Radio.this);\n else return ADC.VBG_LEVEL; // return a default value of some sort\n }", "@Override\r\n\tpublic float soundLevel() {\n\t\treturn 1f;\r\n\t}", "public float getMicGainDb();", ...
[ "0.68919367", "0.6698932", "0.6533242", "0.6488696", "0.6280264", "0.6216243", "0.6208074", "0.61638016", "0.6134922", "0.611903", "0.60595864", "0.60174227", "0.6005747", "0.59650534", "0.5951004", "0.59069043", "0.58487165", "0.58430785", "0.58418375", "0.5835717", "0.58356...
0.77935404
0
Sets the dial norm of this sound descriptor, which specifies the gain to be applied to normalize perceived loudness of the sound, as defined by ITUR Recommendation BS.1196 (1dB per step). Set this optional property to null to omit it.
public void setDialNorm( @Int8 Byte dialNorm);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNormalBuffer(ByteBuffer normBuf) {\n this.normBuf = normBuf;\n }", "public void normalize(){\n\tstrength = 50;\n\tdefense = 55;\n\tattRating = 0.4\t;\n }", "public @Int8 byte getDialNorm()\r\n\t\tthrows PropertyNotPresentException;", "public void normalize()\n\t{\n\t\tif (this.get...
[ "0.5874862", "0.5355171", "0.5313533", "0.50709504", "0.50531685", "0.494658", "0.4940346", "0.48866355", "0.48232752", "0.48119986", "0.4811139", "0.4695688", "0.46952003", "0.46922022", "0.46922022", "0.46265888", "0.4597341", "0.45844352", "0.454807", "0.45359775", "0.4497...
0.7234714
0
Returns the dial norm property of this sound descriptor, which specifies the gain to be applied to normalize perceived loudness of the sound, as defined by ITUR Recommendation BS.1196 (1dB per step). This property is optional.
public @Int8 byte getDialNorm() throws PropertyNotPresentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDialNorm(\r\n\t\t\t@Int8 Byte dialNorm);", "public Rational getAudioSampleRate();", "public Float getSpeechDrpr() {\n return speechDrpr;\n }", "public double getNormFrequency() {\n return normFrequency;\n }", "double getLuong();", "public NM getAdministeredDrugStrengthV...
[ "0.6228818", "0.55166966", "0.5481642", "0.5475496", "0.5467568", "0.5437962", "0.5421046", "0.54167074", "0.53733766", "0.52930415", "0.52915484", "0.527052", "0.5263404", "0.5238825", "0.52328044", "0.52246356", "0.52219564", "0.519544", "0.51769507", "0.5176183", "0.517128...
0.6777534
0
Sets the number of quantization bits used for the audio essence described by this sound descriptor.
public void setQuantizationBits( @UInt32 int bitsCount) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }", "public @UInt32 int getQuantizationBits();", "public void setNumberOfArticulationParameters(short pNumberOfArticulationParameters)\n{ numberOfArticulationParameters = pNumberOfArticulationParameters;\n}", "public void setQuant...
[ "0.61839515", "0.6006817", "0.6002003", "0.58990186", "0.5821734", "0.572576", "0.5687871", "0.5684631", "0.56441134", "0.55722344", "0.5560176", "0.5510849", "0.55081403", "0.5410833", "0.5388492", "0.53808254", "0.53715354", "0.53703", "0.5364725", "0.5356219", "0.5340458",...
0.6718886
0
Returns the number of quantization bits used for the audio essence described by this sound descriptor.
public @UInt32 int getQuantizationBits();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int cardinality() {\n\t\tint counter = 0;\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\twhile (i.hasNext()) {\n\t\t\tRunningLengthWord localrlw = i.next();\n\t\t\tif (localrlw.getRunningBit()) {\n\t\t\t\tcounter += wordinbits * localrlw.getRunningLength();\...
[ "0.64622456", "0.6288634", "0.6282337", "0.6258851", "0.62468874", "0.622592", "0.6188523", "0.6174264", "0.61504567", "0.6140779", "0.6078747", "0.6067984", "0.60371035", "0.60116357", "0.60067296", "0.6000486", "0.5995442", "0.5985503", "0.5982611", "0.595481", "0.5931109",...
0.72778994
0
Create a cloned copy of this sound descriptor.
public SoundDescriptor clone();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DescriptiveFramework clone();", "public Object clone(){\r\n\t\tSampleData obj = new SampleData(letter,getWidth(),getHeight());\r\n\t\tfor ( int y=0;y<getHeight();y++ )\r\n\t\t\tfor ( int x=0;x<getWidth();x++ )\r\n\t\t\t\tobj.setData(x,y,getData(x,y));\r\n\t\treturn obj;\r\n\t}", "public Card makeCopy(){...
[ "0.6855725", "0.67901236", "0.6531024", "0.65228814", "0.6513318", "0.6314575", "0.6226319", "0.62081575", "0.6140267", "0.6126684", "0.6101561", "0.60494107", "0.60166514", "0.6014254", "0.60134554", "0.59988624", "0.5996099", "0.59257036", "0.59237325", "0.59131444", "0.591...
0.87966263
0
O(n + e) + backtrackPath()
public ArrayList<String> shortestPath(String u, String v) { ArrayList<String> path = new ArrayList<>(); HashMap<String, Boolean> flag = new HashMap<>(); HashMap<String, String> prev = new HashMap<>(); Queue<GraphVertex> queue = new LinkedList<>(); HashMap<String, Boolean> vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n ...
[ "0.6337691", "0.6303008", "0.6248317", "0.61900675", "0.6102456", "0.60562104", "0.60041887", "0.59904873", "0.5971711", "0.59657764", "0.5938456", "0.59190875", "0.5907288", "0.5895066", "0.58878934", "0.5863186", "0.58440727", "0.5822726", "0.58129174", "0.57723117", "0.576...
0.0
-1
Gets min distance from a node to all other nodes, and stores it in nodeDistances Key = node, value = min distance Also stores amount of nodes at each distance in distances Key = distance, value = amount of nodes O(n + e) = O(nodes + edges) it's a BFS
private void getMinDistances(String u, HashMap<Integer, Integer> distances, HashMap<String, Integer> nodeDistances){ if(!graphVertexHashMap.containsKey(u)) return; Queue<String> queue = new LinkedList<>(); HashMap<String, Boolean> visited = new HashMap<>(); queue.add(u); visited...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node<Integer> minDistance(Map<Node<Integer>, Double> distances, Map<Node<Integer>, Double> unvisitedNodes) {\n Double min = Double.POSITIVE_INFINITY;\n\n Node<Integer> minNode = null;\n for (Map.Entry<Node<Integer>, Double> entry : distances.entrySet()) {\n Double d = entry....
[ "0.7048734", "0.68453205", "0.6761433", "0.66345596", "0.65546566", "0.63557214", "0.6322946", "0.62526834", "0.6236612", "0.6210339", "0.6191034", "0.6172588", "0.6137057", "0.6094233", "0.6089035", "0.6052574", "0.60518676", "0.6041192", "0.6034667", "0.6027773", "0.5993622...
0.7257185
0
Computes influence of a node, given its distances from all other nodes O(n)
private float getTotal(HashMap<Integer, Integer> distances){ float result = 0.0f; Iterator it = distances.entrySet().iterator(); while(it.hasNext()){ Map.Entry pair = (Map.Entry)it.next(); result += (1/(Math.pow(2, (Integer)pair.getKey()))) * (Integer)pair.getValue(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float influence(ArrayList<String> s)\n {\n HashMap<Integer, Integer> distances = new HashMap<>();\n HashMap<String, Integer> nodeDistances = new HashMap<>();\n\n for(String node : s){\n if(!graphVertexHashMap.containsKey(node)) continue;\n //At the end nodeDista...
[ "0.70283854", "0.61093956", "0.6019422", "0.5927096", "0.5855591", "0.57570165", "0.5732765", "0.5667724", "0.56621724", "0.5620132", "0.5609803", "0.55623984", "0.55450135", "0.55349857", "0.55298436", "0.5481707", "0.5468481", "0.5437973", "0.5423531", "0.53574127", "0.5353...
0.0
-1
O(n) or Best Case O(1) if node u has been calculated before
public float influence(String u) { if(influences.containsKey(u)) return influences.get(u); HashMap<Integer, Integer> distances = new HashMap<>(); HashMap<String, Integer> nodeDistances = new HashMap<>(); getMinDistances(u, distances, nodeDistances); if(distances.size() == 0)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void e_Neighbours(int u){ \n int edgeDistance = -1; \n int newDistance = -1; \n \n // All the neighbors of v \n for (int i = 0; i < adj.get(u).size(); i++) { \n Node v = adj.get(u).get(i); \n \n // If current node hasn't already been processed \n ...
[ "0.61839616", "0.5938072", "0.57084084", "0.56230855", "0.5541828", "0.5534436", "0.55127215", "0.5507333", "0.5487505", "0.54676324", "0.5433886", "0.543258", "0.54218954", "0.5421436", "0.5414456", "0.54060173", "0.53208125", "0.5314413", "0.5311504", "0.5295498", "0.528787...
0.0
-1
Non multi set O(s(n+e)) + O(n)+ O(n) to get total
public float influence(ArrayList<String> s) { HashMap<Integer, Integer> distances = new HashMap<>(); HashMap<String, Integer> nodeDistances = new HashMap<>(); for(String node : s){ if(!graphVertexHashMap.containsKey(node)) continue; //At the end nodeDistances will co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic MySet intersectSets(MySet[] t) {\r\n\t\tallElements = new ArrayList<Integer>();\r\n\r\n\t\t\r\n\t\tfor(Object element: t[0]) {\r\n\t\t\tallElements.add(element);\r\n\t\t}\r\n\t\r\n\t\tfor(Object e: allElements) {\r\n\t\t\tInteger c = map.getOrDefault(e, 0);\r\n\t\t\tmap.put((E)e, c + 1);\r\n\...
[ "0.6326504", "0.6208082", "0.6125647", "0.5959933", "0.5845171", "0.5835554", "0.5826625", "0.5774367", "0.5762074", "0.57428813", "0.56355846", "0.56328374", "0.557005", "0.55548006", "0.5545186", "0.5543762", "0.55432564", "0.55423355", "0.55282074", "0.55109143", "0.549637...
0.0
-1
Takes O(n) + Collections.sort()
public void getDegreeMaps(HashMap<Integer, ArrayList<String>> allValues, ArrayList<Integer> maxValues){ Iterator it = graphVertexHashMap.entrySet().iterator(); while(it.hasNext()){ Map.Entry pair = (Map.Entry) it.next(); String vertex = (String)pair.getKey(); int outD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sort();", "void sort();", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n ...
[ "0.6338632", "0.6338632", "0.62166876", "0.6203396", "0.6166537", "0.6139021", "0.6085457", "0.60511965", "0.6042732", "0.6036588", "0.60335547", "0.6028109", "0.6021967", "0.60026664", "0.5999322", "0.59242123", "0.5921562", "0.5903082", "0.5880479", "0.58681685", "0.5866899...
0.0
-1
Takes O(n) + O(n)
public void getInfluentialModularMaps(HashMap<Float, ArrayList<String>> allValues, ArrayList<Float> maxValues){ Iterator it = graphVertexHashMap.entrySet().iterator(); while(it.hasNext()){ Map.Entry pair = (Map.Entry) it.next(); String vertex = (String)pair.getKey(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.6789362", "0.6576443", "0.6196888", "0.591904", "0.57985973", "0.57792604", "0.576192", "0.57424575", "0.57237566", "0.5713545", "0.5703651", "0.56784695", "0.56579155", "0.5654762", "0.5647236", "0.5644685", "0.5597692", "0.5542499", "0.55402565", "0.55167305", "0.5512146...
0.0
-1
O( k ( n + ( s(n+e) + n + n) ) ) = O(k(n^2)(n+e)) approx.. O(kn^2)
public ArrayList<String> mostInfluentialSubModular(int k) { if(k >= graphVertexHashMap.size()){ return new ArrayList<String>(graphVertexHashMap.keySet()); } if(k ==0) return new ArrayList<String>(); double changling = (double)k/numVertices; // if(numVertices >= 90...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.6883014", "0.64022136", "0.63558567", "0.6322002", "0.6264173", "0.62484354", "0.61707276", "0.6162148", "0.61529624", "0.6143867", "0.60994166", "0.6092051", "0.60644543", "0.60373867", "0.5967092", "0.5920717", "0.59100246", "0.5903195", "0.5884141", "0.58307475", "0.582...
0.0
-1
TODO: Return the communication channel to the service.
@Override public IBinder onBind(Intent intent) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Channel channel() {\n return channel;\n }", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "SocketChannel getChannel();", "EzyChannel getChannel();", "public Channel getChannel()\n {\n return channel;\n }", "java.lang.String getChannel();", "protected Channel getC...
[ "0.7437254", "0.73157257", "0.7183302", "0.7135984", "0.7129005", "0.71285546", "0.7090409", "0.7070889", "0.7067624", "0.7038997", "0.6988283", "0.6917885", "0.68884337", "0.67946744", "0.67914945", "0.67852235", "0.677885", "0.674656", "0.67354923", "0.6681876", "0.66714543...
0.0
-1
Creates a new crime with random ID.
public Crime() { mId = UUID.randomUUID(); mDate = new Date(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Ignore\n public Crime(UUID id) {\n mId = id;\n mDate = new Date();\n }", "public org.oep.usermgt.model.Citizen create(long citizenId);", "public Person(String firstName, String lastName) {\r\n name = new Name(firstName, lastName); \r\n id = (int )(Math.random() * 200 + 100);...
[ "0.6989622", "0.6265634", "0.59244084", "0.5741468", "0.5730433", "0.55951834", "0.5568061", "0.554807", "0.5513965", "0.54934543", "0.5453546", "0.5448366", "0.5426751", "0.542031", "0.53988093", "0.53853095", "0.5356998", "0.53335875", "0.5307541", "0.5300922", "0.5281979",...
0.751254
0
Creates a new crime with the given id.
@Ignore public Crime(UUID id) { mId = id; mDate = new Date(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Crime() {\n mId = UUID.randomUUID();\n mDate = new Date();\n }", "public org.oep.usermgt.model.Citizen create(long citizenId);", "public Crime getCrime(UUID id) {\n CrimeCursorWrapper cursor = queryCrimes(CrimeTable.Cols.UUID + \" = ?\",\n new String[] {id.toString...
[ "0.6599532", "0.652831", "0.62332904", "0.6106619", "0.60000956", "0.5857791", "0.57927316", "0.5760283", "0.57229656", "0.57003194", "0.5681889", "0.5651635", "0.55579793", "0.5556354", "0.55441946", "0.55359167", "0.5490356", "0.5485772", "0.5471904", "0.5466683", "0.545176...
0.74898857
0
Returns the ID of the crime.
public UUID getId() { return mId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int get_crimeid() {\r\n return _crimeid;\r\n }", "public int getCineplexID() {\n return cineplexID;\n }", "public int getId() {\n return decision.getConsensusId();\n }", "public int getCodiceID() \r\n\t\t{\r\n\t\t\treturn CodiceID;\r\n\t\t}", "public Crime() {\n ...
[ "0.76215607", "0.675135", "0.67498934", "0.66715413", "0.662156", "0.6611651", "0.6610218", "0.6610218", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6558657", "0.6539704", "0.65336424", ...
0.0
-1
Returns the title of the crime.
public String getTitle() { return mTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "String title();", "String title();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String ...
[ "0.74641323", "0.74641323", "0.74641323", "0.74641323", "0.74641323", "0.7437632", "0.7437632", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217", "0.7394217"...
0.0
-1
Sets the title of the crime.
public void setTitle(String title) { mTitle = title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(java.lang.String title);", "public void setTitle(String title) { this.title = title; }", "public void setTitle(String title) {\r\n _title = title;\r\n }", ...
[ "0.7904788", "0.7904788", "0.7904788", "0.7886692", "0.78826654", "0.78775513", "0.78597736", "0.78597736", "0.78597736", "0.7858919", "0.7853336", "0.7851291", "0.7851291", "0.78510034", "0.7844868", "0.78416216", "0.7837412", "0.7837412", "0.7831039", "0.7828071", "0.782807...
0.7794694
45
Returns the date of the crime as a Date object.
public Date getDate() { return mDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "Date getDate();", "Date getDate();", "Date getDate();", "final public synchronized Date getDate() {\n return new Date(crtime) ;\n }", "public static Date date() {\n GregorianCalendar cal = new GregorianCalendar();\n ...
[ "0.7180956", "0.7079284", "0.7079284", "0.7079284", "0.7023979", "0.6885063", "0.6747182", "0.6621712", "0.6590226", "0.6566926", "0.6497039", "0.6475076", "0.64731884", "0.64222807", "0.63638544", "0.6356835", "0.63560647", "0.6335493", "0.6312403", "0.6308921", "0.6295867",...
0.6009489
83
Returns the date of the crime as a String object. The format depends on the locale of the device.
public String getDateString() { DateFormat format = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()); return format.format(mDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDateString(){\n return Utilities.dateToString(date);\n }", "public String getDateString() {\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display\n int day_of_month = date.get(Calen...
[ "0.74333197", "0.738239", "0.7201604", "0.71782905", "0.71396786", "0.70778084", "0.7068027", "0.7068027", "0.69936246", "0.6959156", "0.69274306", "0.68812096", "0.6814885", "0.68098885", "0.68039525", "0.6785859", "0.6738962", "0.66972536", "0.6682731", "0.66809577", "0.664...
0.73744535
2
Returns the time of the crime as a String object. The example format is 23:59.
public String getTimeString() { DateFormat format = new SimpleDateFormat("HH:mm"); return format.format(mDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n...
[ "0.7821647", "0.78085965", "0.7755939", "0.76641726", "0.7588905", "0.75016916", "0.7460997", "0.7404352", "0.7307479", "0.7275628", "0.7236121", "0.7234657", "0.71368134", "0.7124513", "0.711433", "0.7108794", "0.7070324", "0.7039515", "0.70260775", "0.70209116", "0.696509",...
0.73612106
8
Sets the date of the crime.
public void setDate(Date date) { mDate = date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SetDate(Date date);", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}...
[ "0.76730996", "0.76251787", "0.75306875", "0.75306875", "0.75306875", "0.75237733", "0.7518967", "0.7484504", "0.7481519", "0.7448491", "0.7448491", "0.7448491", "0.7448491", "0.7448491", "0.7448491", "0.7448491", "0.7448491", "0.7448491", "0.7421149", "0.7421149", "0.7421149...
0.75658053
2
Returns true if the crime has been solved.
public boolean isSolved() { return mSolved; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSolved()\r\n\t{\r\n\t\t\r\n\t}", "public boolean isSolved() {\n return (this.getCellNumber() != 0);\n }", "public boolean isSolved() {\n\t\tboolean solved = true;\n\t\tfor (int row = 0; row < Sudoku.ROWS; row++ ) {\n\t\t\tfor (int col = 0; col < Sudoku.COLUMNS; col++) {\n\t\t\t\tVari...
[ "0.7375292", "0.71506333", "0.7127173", "0.6885732", "0.6857899", "0.6831304", "0.6831071", "0.6821604", "0.6757921", "0.67558557", "0.66658545", "0.6631392", "0.6607896", "0.65799356", "0.65679485", "0.654578", "0.65393543", "0.65247256", "0.6522543", "0.651687", "0.6514835"...
0.6736985
10
Sets whether the crime is solved.
public void setSolved(boolean solved) { mSolved = solved; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsSuccessInSolving(Integer isSuccessInSolving)\n/* */ {\n/* 219 */ this.isSuccessInSolving = isSuccessInSolving;\n/* */ }", "private void setChemical(boolean chemical) {\n this.chemical = chemical;\n }", "public boolean isSolved()\r\n\t{\r\n\t\t\r\n\t}", "public voi...
[ "0.6238591", "0.6041768", "0.59106493", "0.59071326", "0.58639264", "0.58586854", "0.58139175", "0.5804128", "0.5790467", "0.5781439", "0.5768914", "0.57684684", "0.57669187", "0.57554644", "0.57175016", "0.56903", "0.56897926", "0.56889266", "0.5676154", "0.5656928", "0.5643...
0.71571136
0
Returns true if the crime requires police assistant.
public boolean isRequiresPolice() { return mRequiresPolice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean prereqCheck(Player p){\r\n\t\t\r\n\t\tif (p.getLearning() < prereqSkill[Chips.LEARNING.ordinal()] ||\r\n\t\t\tp.getCraft() < prereqSkill[Chips.CRAFTING.ordinal()] ||\r\n\t\t\tp.getIntegrity() < prereqSkill[Chips.INTEGRITY.ordinal()]){\r\n\t\t\treturn false;\r\n\t\t} else return true;\r\n\t}", "boo...
[ "0.65809727", "0.6525939", "0.62828135", "0.62394804", "0.6221136", "0.611795", "0.60872436", "0.60591996", "0.59438217", "0.59438217", "0.59323364", "0.591411", "0.5880286", "0.5874819", "0.58232874", "0.5783024", "0.5765624", "0.57467544", "0.5741113", "0.5714262", "0.57013...
0.703011
0
Sets whether the crime requires police assistant.
public void setRequiresPolice(boolean requiresPolice) { mRequiresPolice = requiresPolice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isRequiresPolice() {\n return mRequiresPolice;\n }", "private void SetInitialPoliticalParty() {\n\t\tif(debug) logger.info(\"SetInitialPoliticalParty: Entering\");\n\t\tint rand = Random.randomInt(100);\t\t \n\t\tif(debug) logger.info(\"SetInitialPoliticalParty: rand = \" + rand);\n\t\ti...
[ "0.67140967", "0.60833395", "0.6017485", "0.5936", "0.58123463", "0.57347566", "0.57211035", "0.55727595", "0.55600965", "0.5479672", "0.5462471", "0.54285854", "0.5402624", "0.5400314", "0.5383403", "0.5380922", "0.53534436", "0.5334981", "0.53280234", "0.52968144", "0.52905...
0.7307765
0
Returns the crime's suspect name.
public String getSuspect() { return mSuspect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\r\n return \"Boyer/Moore-Suche in Strings\";\r\n }", "private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) ...
[ "0.6466023", "0.6464554", "0.63427657", "0.6301697", "0.62828064", "0.62273604", "0.6207728", "0.6200361", "0.6153033", "0.6152493", "0.60900253", "0.6076098", "0.6065371", "0.6064367", "0.6064367", "0.6064367", "0.6064367", "0.6064367", "0.6064367", "0.6049381", "0.6024326",...
0.0
-1
Sets the crime's suspect name.
public void setSuspect(String suspect) { mSuspect = suspect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public final void setName(String name) {_name = name;}", "public void setName(String s) {\n this.name = s;\n }", "protected void setName(final String theName)\r\n {\r\n _theName = theName;\r\n }...
[ "0.71173763", "0.7047202", "0.7004318", "0.6977531", "0.69644207", "0.69502467", "0.69372064", "0.69351196", "0.6931499", "0.69140047", "0.69116575", "0.69015455", "0.68406457", "0.68182105", "0.681515", "0.6811779", "0.6804578", "0.67987406", "0.6798669", "0.67874676", "0.67...
0.0
-1
Returns the suspect's phone number.
public String getSuspectNum() { return mSuspectNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getUserPhone();", "java.lang.String getPhonenumber();", "java.lang.String getPhone();", "public String getPhoneNumber() throws NullPointerException {\n\n\t\tString phoneNum...
[ "0.76689667", "0.76689667", "0.76689667", "0.76665676", "0.7414219", "0.73933697", "0.7363194", "0.73272705", "0.72356653", "0.72354025", "0.7234851", "0.7204925", "0.71963763", "0.71885014", "0.7188366", "0.7179682", "0.7167839", "0.7160938", "0.7155018", "0.7153324", "0.715...
0.0
-1
Sets the suspect's phone number.
public void setSuspectNum(String suspectNum) { mSuspectNum = suspectNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.politrons.avro.AvroPerson.Builder setPhoneNumber(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.phone_number = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void setPhoneNumber(java.lang.CharSequence value) {\n this.phone_number = v...
[ "0.7712758", "0.7519289", "0.74979407", "0.7436905", "0.7434623", "0.7350863", "0.7320308", "0.73050624", "0.7266503", "0.72650766", "0.72650766", "0.72650766", "0.72650766", "0.72650766", "0.72638404", "0.7255357", "0.72504044", "0.723005", "0.7206924", "0.71892935", "0.7141...
0.659627
80
Returns the file name for the photo of the crime.
public String getPhotoFileName() { return "IMG_" + getId().toString() + ".jpg"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFilename() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String filename = getExternalStoragePublicDirectory(DIRECTORY_PICTURES).getPath().toString() + \"/\" + timeStamp + \".jpg\";\n\n return filename;\n }", "public String getFil...
[ "0.699538", "0.67597204", "0.66939", "0.66939", "0.66939", "0.66939", "0.66939", "0.66939", "0.66939", "0.66939", "0.66939", "0.664641", "0.6620513", "0.6620513", "0.6620513", "0.6620513", "0.6620513", "0.66084045", "0.6589689", "0.6578198", "0.65276045", "0.65257883", "0...
0.7617007
0
/ JADX INFO: this call moved to the top of the method (can break code semantics)
public BitmapEncoder() { this((Bitmap.CompressFormat) null, 90); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public voi...
[ "0.6830817", "0.66819465", "0.6609077", "0.6525115", "0.6517902", "0.6495668", "0.6465134", "0.6446171", "0.6385651", "0.6360214", "0.63249755", "0.63155377", "0.63088524", "0.62682533", "0.6254697", "0.62397885", "0.62229204", "0.61979973", "0.6189011", "0.61762315", "0.6176...
0.0
-1
Test case number: 0 / 1 covered goal: Goal 1. wheel.components.Component.col()Lwheel/components/Component;: rootBranch
@Test public void test000() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); // Undeclared exception! try { Component component0 = errorPage0.col(); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Col compo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testComponent() {\n System.out.println(\"**** component ****\");\n int v = 7;\n ConnectedComponentsDepthSearch instance = new ConnectedComponentsDepthSearch(g);\n int expResult = 1;\n int result = instance.component(v);\n assertEquals(expResult, resu...
[ "0.60825235", "0.5902429", "0.5877747", "0.5839439", "0.56362826", "0.5531141", "0.54336536", "0.5424704", "0.5378082", "0.53288114", "0.53234494", "0.5308773", "0.5290444", "0.52771205", "0.52626127", "0.52593255", "0.5249497", "0.5245973", "0.5238577", "0.52352244", "0.5231...
0.0
-1
Test case number: 1 / 1 covered goal: Goal 1. wheel.components.Component.pre(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test001() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Label label0 = (Label)errorPage0.pre((Object) errorPage0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.59651005", "0.5871104", "0.57724655", "0.57705724", "0.5755423", "0.56828696", "0.5668822", "0.5592742", "0.558691", "0.5537686", "0.553374", "0.5527968", "0.5508817", "0.5498191", "0.54814327", "0.5480638", "0.54720795", "0.5469013", "0.5467981", "0.5467321", "0.5462273",...
0.52503556
40
Test case number: 2 / 1 covered goal: Goal 1. wheel.components.Component.nbsp()Lwheel/components/Component;: rootBranch
@Test public void test002() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); ErrorPage errorPage1 = (ErrorPage)errorPage0.nbsp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGiantComponent()\n {\n assertEquals(MarkovModel.util.giantComponent(P1), giant1);\n assertEquals(MarkovModel.util.giantComponent(P2), giant2);\n assertEquals(MarkovModel.util.giantComponent(P3), giant3);\n }", "private void tests(Component comp){\n \n ...
[ "0.59463364", "0.57910424", "0.57749015", "0.56678605", "0.5608242", "0.5539121", "0.5537519", "0.5531893", "0.55083454", "0.5484992", "0.5482707", "0.54813355", "0.5478615", "0.54643536", "0.5452039", "0.5410417", "0.5408981", "0.53993446", "0.5398146", "0.5360672", "0.53555...
0.0
-1
Test case number: 3 / 1 covered goal: Goal 1. wheel.components.Component.getComponents()Ljava/util/Map;: I12 Branch 69 IFNE L1774 false
@Test public void test003() throws Throwable { Form form0 = new Form("Ir{`W#0r@'S$`m:"); // Undeclared exception! try { Map<String, Component> map0 = form0.getComponents(); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testComponent() {\n System.out.println(\"**** component ****\");\n int v = 7;\n ConnectedComponentsDepthSearch instance = new ConnectedComponentsDepthSearch(g);\n int expResult = 1;\n int result = instance.component(v);\n assertEquals(expResult, resu...
[ "0.613479", "0.6006852", "0.5941861", "0.57913697", "0.5781431", "0.5775363", "0.5774033", "0.5735537", "0.57323766", "0.5711616", "0.56537163", "0.55667925", "0.5560312", "0.5525218", "0.5495533", "0.5454848", "0.54448265", "0.54401195", "0.54389155", "0.54324675", "0.538284...
0.5625144
11
Test case number: 4 / 1 covered goal: Goal 1. wheel.components.Component.tr()Lwheel/components/Component;: rootBranch
@Test public void test004() throws Throwable { XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null); // Undeclared exception! try { Component component0 = xmlEntityRef0.tr(); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.6147549", "0.5781654", "0.5712166", "0.56991094", "0.5643271", "0.55979997", "0.54922676", "0.54676473", "0.5465767", "0.5454444", "0.54515404", "0.5434516", "0.54286367", "0.54244524", "0.5413534", "0.53937334", "0.53902304", "0.538777", "0.53844213", "0.5382536", "0.5380...
0.0
-1
Test case number: 5 / 1 covered goal: Goal 1. wheel.components.Component.dfn(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test005() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); ElExpression elExpression0 = new ElExpression("</featureFactory>"); RadioGroup radioGroup0 = new RadioGroup(errorPage0, "</featureFactory>", "</featureFactory>", (ISelectModel) null, elExpression0); Label ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testComponent() {\n System.out.println(\"**** component ****\");\n int v = 7;\n ConnectedComponentsDepthSearch instance = new ConnectedComponentsDepthSearch(g);\n int expResult = 1;\n int result = instance.component(v);\n assertEquals(expResult, resu...
[ "0.59507895", "0.55991364", "0.55500627", "0.5540594", "0.5537281", "0.5526906", "0.55059576", "0.5502549", "0.54724693", "0.5417405", "0.54032904", "0.5374074", "0.53720206", "0.5362617", "0.5322056", "0.5302185", "0.5293076", "0.5286921", "0.52790266", "0.527499", "0.527051...
0.0
-1
Test case number: 6 / 1 covered goal: Goal 1. wheel.components.Component.map(Ljava/lang/String;)Lwheel/components/Component;: rootBranch
@Test public void test006() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Block block0 = (Block)errorPage0.map("sR4{Di`r].gBOzFC"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.5921952", "0.5622706", "0.55824834", "0.551017", "0.532621", "0.52590567", "0.5242009", "0.523687", "0.51915544", "0.51819676", "0.51570255", "0.51565796", "0.51461416", "0.5135572", "0.51158744", "0.510075", "0.50636667", "0.50502", "0.50392944", "0.50376874", "0.5019997"...
0.5391885
4
Test case number: 7 / 1 covered goal: Goal 1. wheel.components.Component.kbd(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test007() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Label label0 = (Label)errorPage0.kbd((Object) errorPage0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tests(Component comp){\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - ======= Tested component=\"+comp.getClass().getName());\n \n \n testContainer(comp);\n \n /* H1 -> Hack for JLabels - JLabel isn't ...
[ "0.57729393", "0.5738192", "0.54289013", "0.5408749", "0.53356606", "0.5288901", "0.52886367", "0.52801293", "0.5230821", "0.5221939", "0.5204348", "0.5192142", "0.51906425", "0.5156684", "0.5151292", "0.51495725", "0.5145872", "0.5141918", "0.512957", "0.5127194", "0.5110326...
0.58948153
0
Test case number: 8 / 1 covered goal: Goal 1. wheel.components.Component.colgroup()Lwheel/components/Component;: rootBranch
@Test public void test008() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); // Undeclared exception! try { Component component0 = errorPage0.colgroup(); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // // Colg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test309() throws Throwable {\n Select select0 = new Select((Component) null, \"b^o1IoN.19~.aqo/\", \"'.\", \"'.\", (ISelectModel) null, true);\n // Undeclared exception!\n try { \n select0.colgroup();\n fail(\"Expecting exception: RuntimeException...
[ "0.5953806", "0.587541", "0.54870915", "0.5475021", "0.5472897", "0.5390604", "0.5379386", "0.53423965", "0.53226", "0.528588", "0.52841187", "0.527269", "0.52261686", "0.52088094", "0.5199626", "0.5172129", "0.5160771", "0.5151446", "0.5142429", "0.513587", "0.51334894", "...
0.5127293
21
Test case number: 9 / 1 covered goal: Goal 1. wheel.components.Component.numberInput(Ljava/lang/String;Ljava/lang/CharSequence;)Lwheel/components/FormElement;: rootBranch
@Test public void test009() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); // Undeclared exception! try { FormElement formElement0 = errorPage0.numberInput("2CVo`z1", (CharSequence) "2CVo`z1"); fail("Expecting exception: RuntimeException"); } catch(RuntimeE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test110() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n List<RenderableComponent> list0 = errorPage0._getRenderableChildren();\n NumberInput numberInput0 = new NumberInput(errorPage0, \"$.{\", \"$.{\", \"$.{\");\n // Undeclared exception!\n try {\n ...
[ "0.6201472", "0.61555475", "0.6122163", "0.60831565", "0.6077084", "0.58102846", "0.5770536", "0.57536316", "0.5710539", "0.5703935", "0.56749254", "0.56664294", "0.56606954", "0.56394583", "0.56355065", "0.56206477", "0.560629", "0.5602146", "0.5548696", "0.5521151", "0.5520...
0.56750685
10
Test case number: 10 / 1 covered goal: Goal 1. wheel.components.Component.code(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test010() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Label label0 = (Label)errorPage0.code((Object) errorPage0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.6216869", "0.60109246", "0.5902312", "0.5722406", "0.5672649", "0.56619877", "0.5512667", "0.5512004", "0.5451257", "0.5419802", "0.54033995", "0.53838634", "0.5378206", "0.5360174", "0.5357581", "0.53383565", "0.5324602", "0.5316526", "0.530037", "0.52943635", "0.5251474"...
0.53993297
11
Test case number: 11 / 3 covered goals: Goal 1. wheel.components.Component.id(Ljava/lang/String;)Lwheel/components/Component;: I27 Branch 47 IFEQ L1642 false Goal 2. wheel.components.Component.addChild(Lwheel/components/Component;Z)Lwheel/components/Component;: I227 Branch 83 IFEQ L1848 false Goal 3. wheel.components.C...
@Test public void test011() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); ActionExpression actionExpression0 = new ActionExpression("'tj#~9z"); Form form0 = new Form(errorPage0, "'tj#~9z", actionExpression0); Submit submit0 = (Submit)form0.submit("'tj#~9z"); Form form1 = f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test181() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n // Undeclared exception!\n try { \n hidden0._wrapComponentId(\"(vLoO6y2\\\"Vht&{{\");\n fail(\"Expecting exception: Run...
[ "0.63754106", "0.5996597", "0.5968549", "0.5961349", "0.5959176", "0.5822386", "0.58063906", "0.5793239", "0.57525814", "0.567844", "0.56781715", "0.563622", "0.5604906", "0.5593441", "0.5573529", "0.551234", "0.5498754", "0.5494243", "0.5481822", "0.5479608", "0.5478215", ...
0.0
-1
Test case number: 12 / 1 covered goal: Goal 1. wheel.components.Component.var(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test012() throws Throwable { Form form0 = new Form("XT0"); // Undeclared exception! try { Component component0 = form0.var((Object) form0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VariableCoefficientTuple suggestBranchingVariable (TwoIntegerTuple childRectCounts ) {\r\n \r\n VariableCoefficientTuple result= new VariableCoefficientTuple(null, ZERO) ;\r\n \r\n //first get the best lp rects\r\n List<Rectangle> rectanglesToConsiderForBranchingVarCalcul...
[ "0.5976384", "0.573836", "0.5615003", "0.5614323", "0.5431393", "0.5347478", "0.5342731", "0.5315951", "0.5263781", "0.5246056", "0.5235554", "0.52243775", "0.520971", "0.51997125", "0.5183801", "0.5180355", "0.51791847", "0.51681787", "0.5164577", "0.5137061", "0.5127519", ...
0.0
-1
Test case number: 13 / 1 covered goal: Goal 1. wheel.components.Component.textInput(Ljava/lang/String;)Lwheel/components/FormElement;: rootBranch
@Test public void test013() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); // Undeclared exception! try { FormElement formElement0 = errorPage0.textInput("V\"i%{rPYE$"); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test165() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.buttonInput(\"XYD6eL5K7VD|_+{7`{$\");\n fail(\"Expecting exception: Runtime...
[ "0.6252807", "0.6147161", "0.604046", "0.5931247", "0.5923304", "0.59229034", "0.5871383", "0.58711106", "0.5763329", "0.57255834", "0.5651298", "0.56497294", "0.5647598", "0.55800074", "0.5555125", "0.55395895", "0.5534646", "0.5521614", "0.5513358", "0.550031", "0.5499562",...
0.5551211
15
Test case number: 14 / 1 covered goal: Goal 1. wheel.components.Component.findAll(Lwheel/components/ElExpression;)Ljava/util/List;: I25 Branch 115 IFEQ L2029 true
@Test public void test014() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); ElExpression elExpression0 = errorPage0.el(" does not exist."); List<Component> list0 = errorPage0.findAll(elExpression0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test226() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"&!a0Q!<8UDk+%_*<Z'\");\n ElExpression elExpression0 = new ElExpression(\"\");\n List<Component> list0 = xmlEntityRef0.findAll(elExpression0);\n assertEquals(\"&!a0Q!<8UDk+%_*<Z'...
[ "0.6145437", "0.58690655", "0.56854534", "0.5648737", "0.552145", "0.5466813", "0.5307852", "0.5305054", "0.53028363", "0.5269953", "0.52209306", "0.52080333", "0.52078456", "0.5171528", "0.5169178", "0.51685447", "0.5165821", "0.5156639", "0.5155052", "0.51399857", "0.512452...
0.5477451
5
Test case number: 15 / 2 covered goals: Goal 1. wheel.components.Component._setParent(Lwheel/components/Component;)V: rootBranch Goal 2. wheel.components.Component.span()Lwheel/components/Component;: rootBranch
@Test public void test015() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Block block0 = (Block)errorPage0.span(); Hidden hidden0 = new Hidden(block0, "x_O/V", "x_O/V"); hidden0._setParent((Component) errorPage0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void addNewOuterComponentTest3()\n\t{\n\t\tString methodName = new Object()\n\t\t{}.getClass().getEnclosingMethod().getName();\n\t\t\n\t\tDate startDate = DateUtils.rightNowDate();\n\t\t\n\t\tTestUtils.logTestStart(methodName, watcher.getLogger());\n\t\t\n\t\tString fileName = \"smallBom.xml\";\n\t...
[ "0.6306612", "0.62478787", "0.6189558", "0.5992853", "0.57631207", "0.57493865", "0.56158227", "0.55814946", "0.55555063", "0.55477095", "0.5518211", "0.5501021", "0.54533356", "0.5447029", "0.5415803", "0.54061675", "0.54014593", "0.53943616", "0.53929603", "0.5380932", "0.5...
0.52747035
34
Test case number: 16 / 1 covered goal: Goal 1. wheel.components.Component.attributes([Ljava/lang/String;)Lwheel/components/Component;: I26 Branch 25 IFLE L192 false
@Test public void test016() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); String[] stringArray0 = new String[5]; // Undeclared exception! try { Component component0 = errorPage0.area(stringArray0); fail("Expecting exception: IllegalArgumentException"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test228() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"unsupported feature \", \"unsupported feature \");\n String[] stringArray0 = new String[2];\n Component component0 = checkbox0.attributes(stringArray0);\n assertSame(compo...
[ "0.6712613", "0.62370354", "0.6219595", "0.6165154", "0.60995674", "0.6029331", "0.59642315", "0.58807003", "0.57574064", "0.5668193", "0.56223226", "0.5581916", "0.5504202", "0.54986465", "0.5486771", "0.54689825", "0.54642344", "0.5453359", "0.5409264", "0.538719", "0.53510...
0.5266859
30
Test case number: 17 / 1 covered goal: Goal 1. wheel.components.Component.h6()Lwheel/components/Component;: rootBranch
@Test public void test017() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Block block0 = (Block)errorPage0.h6(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.6450329", "0.5779702", "0.5713845", "0.56315804", "0.55707985", "0.5543466", "0.55136204", "0.5489952", "0.54854804", "0.544328", "0.54121333", "0.5386154", "0.5371486", "0.53707", "0.5369555", "0.5350874", "0.5343873", "0.5336944", "0.5332336", "0.5330052", "0.5303282", ...
0.0
-1
Test case number: 18 / 1 covered goal: Goal 1. wheel.components.Component.p(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test018() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); TextInput textInput0 = new TextInput(errorPage0, (String) null, (String) null); ElExpression elExpression0 = new ElExpression((String) null); // Undeclared exception! try { Component componen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.61772215", "0.5906793", "0.57654417", "0.5711881", "0.5640435", "0.5557887", "0.55438787", "0.5455628", "0.5447079", "0.5355605", "0.5344369", "0.53416693", "0.53356665", "0.5304454", "0.5295998", "0.52842414", "0.5233004", "0.5206519", "0.5187106", "0.5173265", "0.5169232...
0.0
-1
Test case number: 19 / 1 covered goal: Goal 1. wheel.components.Component.numberInput(Ljava/lang/String;)Lwheel/components/FormElement;: rootBranch
@Test public void test019() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); // Undeclared exception! try { FormElement formElement0 = errorPage0.numberInput("$.{"); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test110() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n List<RenderableComponent> list0 = errorPage0._getRenderableChildren();\n NumberInput numberInput0 = new NumberInput(errorPage0, \"$.{\", \"$.{\", \"$.{\");\n // Undeclared exception!\n try {\n ...
[ "0.61166334", "0.6037756", "0.60343796", "0.6008111", "0.59540445", "0.57936627", "0.57785606", "0.57014805", "0.5619897", "0.55580777", "0.5553594", "0.553719", "0.55315685", "0.55300266", "0.55225974", "0.55199075", "0.5512988", "0.5478294", "0.5461988", "0.5438583", "0.543...
0.5594862
9
Test case number: 20 / 1 covered goal: Goal 1. wheel.components.Component.frame(Ljava/lang/CharSequence;)Lwheel/components/Component;: rootBranch
@Test public void test020() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Checkbox checkbox0 = new Checkbox(errorPage0, "LmHM9{y{68U,null,savored,null,null,null,null,null,null,null,null,null,null,null,null,", "LmHM9{y{68U,null,savored,null,null,null,null,null,null,null,null,null,null,null,n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test051() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n int[] intArray0 = new int[5];\n intArray0[0] = 1;\n intArray0[1] = 2;\n intArray0[2] = 1;\n intArray0[3] = 0;\n intArray0[4] =...
[ "0.5931353", "0.5886192", "0.587777", "0.5865047", "0.5830374", "0.58251023", "0.57955813", "0.57853514", "0.57845926", "0.57833433", "0.5781844", "0.577848", "0.5767922", "0.57388693", "0.5738667", "0.57366174", "0.5708524", "0.5699014", "0.56873", "0.5680674", "0.56719345",...
0.54010993
82
Test case number: 21 / 1 covered goal: Goal 1. wheel.components.Component.textarea(Ljava/lang/String;)Lwheel/components/FormElement;: rootBranch
@Test public void test021() throws Throwable { Hidden hidden0 = new Hidden((Component) null, "pJ", "pJ"); // Undeclared exception! try { FormElement formElement0 = hidden0.textarea("pJ"); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test165() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.buttonInput(\"XYD6eL5K7VD|_+{7`{$\");\n fail(\"Expecting exception: Runtime...
[ "0.63643783", "0.6277299", "0.56797767", "0.551471", "0.54289395", "0.54037565", "0.5375964", "0.5369713", "0.53673995", "0.53531957", "0.53345656", "0.53077126", "0.5301084", "0.52889323", "0.52385736", "0.523101", "0.52274716", "0.5226163", "0.52221763", "0.5220793", "0.520...
0.5212712
20
Test case number: 22 / 1 covered goal: Goal 1. wheel.components.Component.kbd()Lwheel/components/Component;: rootBranch
@Test public void test022() throws Throwable { TextInput textInput0 = new TextInput((Component) null, (String) null, "Failed to initialize SimpleDateFormat with pattern '"); // Undeclared exception! try { Component component0 = textInput0.kbd(); fail("Expecting exception: NullPoint...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tests(Component comp){\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <tests(Component)> - ======= Tested component=\"+comp.getClass().getName());\n \n \n testContainer(comp);\n \n /* H1 -> Hack for JLabels - JLabel isn't ...
[ "0.59401655", "0.5482178", "0.5423927", "0.5391457", "0.53845817", "0.5383734", "0.53152966", "0.5305858", "0.5299015", "0.52852476", "0.5252978", "0.5194968", "0.51861644", "0.5181138", "0.51318514", "0.5111927", "0.50818795", "0.5073143", "0.5043739", "0.5041456", "0.502089...
0.0
-1
Test case number: 23 / 1 covered goal: Goal 1. wheel.components.Component.b(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test023() throws Throwable { XmlEntityRef xmlEntityRef0 = new XmlEntityRef("i%mts"); // Undeclared exception! try { Component component0 = xmlEntityRef0.b((Object) "i%mts"); fail("Expecting exception: NullPointerException"); } catch(NullPointerExcepti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.6589841", "0.60462016", "0.59157014", "0.5860497", "0.584119", "0.5838489", "0.5802258", "0.5797502", "0.5784377", "0.57630986", "0.5727037", "0.57211983", "0.561326", "0.5595675", "0.55696476", "0.55641806", "0.55101824", "0.5491105", "0.5472038", "0.5458578", "0.5440715"...
0.0
-1
Test case number: 24 / 1 covered goal: Goal 1. wheel.components.Component.s()Lwheel/components/Component;: rootBranch
@Test public void test024() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Table table0 = new Table(errorPage0, ""); Block block0 = (Block)table0.s(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testComponent() {\n System.out.println(\"**** component ****\");\n int v = 7;\n ConnectedComponentsDepthSearch instance = new ConnectedComponentsDepthSearch(g);\n int expResult = 1;\n int result = instance.component(v);\n assertEquals(expResult, resu...
[ "0.5903385", "0.5849358", "0.56070924", "0.5565882", "0.5514163", "0.55133325", "0.54547614", "0.5392506", "0.53435504", "0.53248334", "0.5315982", "0.5281817", "0.5274594", "0.5244622", "0.5227961", "0.52220803", "0.5182382", "0.5174229", "0.51723754", "0.51721597", "0.51383...
0.0
-1
Test case number: 25 / 2 covered goals: Goal 1. wheel.components.Component.renderHint(Ljava/lang/CharSequence;)Lwheel/components/Component;: I98 Branch 18 IFLE L150 false Goal 2. wheel.components.Component.renderHint(Ljava/lang/CharSequence;)Lwheel/components/Component;: I110 Branch 19 IFNE L150 true
@Test public void test025() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); ArrayStringFilter.Mode arrayStringFilter_Mode0 = ArrayStringFilter.Mode.EXACT; String[] stringArray0 = new String[6]; stringArray0[0] = "iul "; stringArray0[1] = "iul "; stringArray0[2] = "iul ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test217() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component ca be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component ca be added only to a TableBlock.\", \"Col component ca be adde...
[ "0.6175339", "0.606179", "0.6007941", "0.59482265", "0.58272654", "0.5819824", "0.5744089", "0.57336956", "0.56774527", "0.56376123", "0.5483911", "0.5395942", "0.5388641", "0.5364474", "0.536062", "0.5341629", "0.53000987", "0.5291915", "0.529156", "0.52872795", "0.5246129",...
0.0
-1
Test case number: 26 / 1 covered goal: Goal 1. wheel.components.Component.strong()Lwheel/components/Component;: rootBranch
@Test public void test026() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Block block0 = (Block)errorPage0.strong(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBranch() throws Exception {\n IProject project = createProject(\"testBranch\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n branch(asResourceMapping(new IResource[] { project }, IResource....
[ "0.6105938", "0.57696575", "0.55212325", "0.5462074", "0.54527104", "0.545209", "0.5421446", "0.53901017", "0.5383101", "0.5362581", "0.53624755", "0.5353042", "0.52849585", "0.52537054", "0.5252258", "0.51983315", "0.51937103", "0.51767516", "0.51636046", "0.5162716", "0.515...
0.0
-1
Test case number: 27 / 1 covered goal: Goal 1. wheel.components.Component.passwordInput(Ljava/lang/String;)Lwheel/components/FormElement;: rootBranch
@Test public void test027() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); // Undeclared exception! try { FormElement formElement0 = errorPage0.passwordInput("H6U@J"); fail("Expecting exception: RuntimeException"); } catch(RuntimeException e) { // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@When(\"^password$\")\n public void password() throws Throwable {\n \tSystem.out.println(\"input password\");\n \t//Assert.assertEquals(34, 40);\n \t\n \t\n \n }", "@When(\"^user should enter the valid password in the loginpage$\")\n\tpublic void user_should_enter_the_valid_password_in_the...
[ "0.6917608", "0.6825172", "0.6691731", "0.6659425", "0.6570358", "0.6464534", "0.64072555", "0.63661766", "0.6317107", "0.6214044", "0.61754876", "0.61728173", "0.61192507", "0.60841584", "0.6065051", "0.5994083", "0.59789854", "0.59767336", "0.5975662", "0.59579873", "0.5948...
0.6238611
9