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
Constructs the swing components for the interface and adds them to the pane.
private void addComponentsToPane(final Container pane) { pane.setLayout(new BorderLayout()); JScrollPane header = getHeader(); JScrollPane center = getCenter(); pane.add(header, BorderLayout.PAGE_START); pane.add(center, BorderLayout.CENTER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "p...
[ "0.7612649", "0.7522567", "0.7485233", "0.7484145", "0.7459157", "0.7421608", "0.73983675", "0.7363626", "0.73631865", "0.73142046", "0.73076165", "0.7282613", "0.71932507", "0.71830624", "0.71763545", "0.712361", "0.71084106", "0.7100141", "0.70947134", "0.7066694", "0.70647...
0.0
-1
Update the port number in the port label.
public void updatePortLabel(String newPort) { if (portLabel == null) { portLabel = new JLabel(); } portLabel.setText("Port: " + newPort); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public void setPort(int value) {\n this.port = value;\n }", "public Builder setPort(int value) {\n\n port_ = value;\n ...
[ "0.7063673", "0.7063673", "0.70571196", "0.6979757", "0.6979757", "0.69076604", "0.69076604", "0.69042224", "0.6810534", "0.6810534", "0.679259", "0.67683566", "0.67588854", "0.67225933", "0.6714476", "0.6713164", "0.67052126", "0.6686371", "0.6680433", "0.6680433", "0.668043...
0.77700984
0
Centres the frame in the middle of the screen. Found on stackoverflow: //
private void centreFrameInScreen() { Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void centerFrame() {\n Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\n int x = (int) ((dimension.getWidth() - this.getWidth()) / 2);\n int y = (int) ((dimension.getHeight() - this.getHeight()) / 2);\n\n this.setLocation(x, y);\n }", "public void cente...
[ "0.85721606", "0.8518409", "0.8429975", "0.8306353", "0.8283388", "0.81357616", "0.80861896", "0.80709416", "0.79567367", "0.787246", "0.7833885", "0.7581006", "0.7241625", "0.7241292", "0.72360677", "0.72166866", "0.717151", "0.71225864", "0.70907706", "0.70571256", "0.70360...
0.85988444
0
Tests one scenario with no conflict, and one scenario that should result in a scheduling conflict
@Test public void testcheckConflict() { Activity a1 = new Course("CSC216", "Programming Concepts - Java", "001", 4, "sesmith5", 12, "MW", 1330, 1445); Activity a2 = new Course("CSC216", "Programming Concepts - Java", "001", 4, "sesmith5", 12, "TH", 1330, 1445); try { a1.checkConflict(a2); assertEquals("Incorrect meeting string for this Activity.", "MW 1:30PM-2:45PM", a1.getMeetingString()); assertEquals("Incorrect meeting string for possibleConflictingActivity.", "TH 1:30PM-2:45PM", a2.getMeetingString()); a2.checkConflict(a1); assertEquals("Incorrect meeting string for this Activity.", "MW 1:30PM-2:45PM", a1.getMeetingString()); assertEquals("Incorrect meeting string for possibleConflictingActivity.", "TH 1:30PM-2:45PM", a2.getMeetingString()); } catch (ConflictException e) { fail("A ConflictException was thrown when two Activities at the same time on completely distinct days were compared."); } a1.setMeetingDays("TH"); a1.setActivityTime(1445, 1530); try { a1.checkConflict(a2); fail(); //ConflictException should have been thrown, but was not. } catch (ConflictException e) { //Check that the internal state didn't change during method call. assertEquals("TH 2:45PM-3:30PM", a1.getMeetingString()); assertEquals("TH 1:30PM-2:45PM", a2.getMeetingString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void TEAM3_CONTROLLER_UT04() {\n\t\t// PRECONDITIONS\n\t\tClassDetailsStub c1 = new ClassDetailsStub(TEST_CONFIG.SatOnly),\n\t\t\t\t\t\t c2 = new ClassDetailsStub(TEST_CONFIG.MonWedFri2);\n\t\t\n\t\tArrayList<ClassDetailsStub> s1 = new ArrayList<ClassDetailsStub>();\n\t\ts1.add(c1);\n\t\t\n\t\tArra...
[ "0.6378035", "0.6347679", "0.6275696", "0.6156491", "0.61072534", "0.60900503", "0.60074127", "0.5999528", "0.59688634", "0.5920724", "0.5915417", "0.5894704", "0.5845152", "0.5832783", "0.5806939", "0.58007765", "0.57939994", "0.5769514", "0.5681234", "0.5673408", "0.5673185...
0.6627933
0
Checks conflict when it's only on one day
@Test public void testCheckCoflictOneDay() { Activity a1 = new Course("CSC216", "Programming Concepts - Java", "001", 4, "sesmith5", 12, "MWF", 1330, 1445); Activity a2 = new Course("CSC216", "Programming Concepts - Java", "001", 4, "sesmith5", 12, "TWH", 1330, 1445); try { a1.checkConflict(a2); fail(); //ConflictException should have been thrown, but was not. } catch (ConflictException e) { //Check that the internal state didn't change during method call. assertEquals("MWF 1:30PM-2:45PM", a1.getMeetingString()); assertEquals("TWH 1:30PM-2:45PM", a2.getMeetingString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkConflict(Course c1, Course c2) {\n\n\t\tString day1 = c1.getDay1();\n\t\tString day2 = c1.getDay2();\n\t\tString cday1 = c2.getDay1();\n\t\tString cday2 = c2.getDay2();\n\n\t\tfloat startTime = Float.parseFloat(c1.getStarttime());\n\t\tfloat endTime = Float.parseFloat(c1.getEndtime());\n\t\tfl...
[ "0.62186354", "0.5989323", "0.5983656", "0.5978123", "0.58196837", "0.5764532", "0.57468057", "0.5692332", "0.5668459", "0.5550438", "0.54198736", "0.53581893", "0.53393173", "0.53389055", "0.5337708", "0.5321542", "0.53142685", "0.5281269", "0.5268781", "0.52162707", "0.5181...
0.6501988
0
Checks for when end time of one activity is the same as the start time as another
@Test public void testCheckConflictOverlappingTimes() { Activity a1 = new Course("CSC216", "Programming Concepts - Java", "001", 4, "sesmith5", 12, "MW", 1330, 1445); Activity a2 = new Course("CSC226", "Discrete Math", "001", 3, "sesmith5", 12, "MW", 1445, 1545); try { a1.checkConflict(a2); fail(); //ConflictException should have been thrown, but was not. } catch (ConflictException e) { //Check that the internal state didn't change during method call. assertEquals("MW 1:30PM-2:45PM", a1.getMeetingString()); assertEquals("MW 2:45PM-3:45PM", a2.getMeetingString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int compareEndTimes(TaskItem task1, TaskItem task2) {\n\t\tif (task1 instanceof FloatingTask) {\n\t\t\tif (task2 instanceof FloatingTask) {\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t} else if (task1 instanceof DeadlinedTask) {\n\t\t\tif (task2 instanceof FloatingTask) {\n\...
[ "0.68488234", "0.66636", "0.65641034", "0.6508839", "0.6472157", "0.6378062", "0.6312356", "0.6305131", "0.6305131", "0.6216845", "0.6201946", "0.61813515", "0.6122374", "0.6117291", "0.6114799", "0.6082463", "0.6051279", "0.60489064", "0.60473335", "0.60339767", "0.6014233",...
0.5703608
39
TODO Autogenerated method stub
public static void main(String[] args) { String[][] strArray1 = new String [][] { {"H", "e", "l", "l", "o"}, {"W", "o", "r", "l", "d"} }; String printString = ""; String[][] strArray2 = new String[][] { {"H", "W"}, {"e", "o"}, {"l", "r"}, {"l", "l"}, {"o", "d"} }; String printString2 = ""; String[][] strArray3 = new String[][] { {"o", "l", "l", "e", "H"}, {"d", "l", "r", "o", "W"} }; String printString3 = ""; String[][] strArray4 = new String[][] { {"W", "H"}, {"o", "e"}, {"r", "l"}, {"l", "l"}, {"d", "o"} }; String printString4 = ""; //printString = arrManip1(strArray1); //System.out.println(printString); //printString2 = arrManip2(strArray2); //System.out.println(printString2); //printString3 = arrManip3(strArray3); //System.out.println(printString3); printString4 = arrManip4(strArray4); System.out.println(printString4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Creates a new CyanSus.
public CyanSus() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.oep.usermgt.model.Citizen create(long citizenId);", "public CSSTidier() {\n\t}", "Clase createClase();", "public void create(){}", "public Crate(){}", "Secuencia createSecuencia();", "public CasterSite() {\n\t}", "@Override\n\tSauce createSauce() {\n\t\treturn new NYSauce();\n\t}", "SUP ...
[ "0.5749011", "0.56754416", "0.55078924", "0.54735416", "0.5432237", "0.5410228", "0.54071456", "0.5396294", "0.53804004", "0.5371729", "0.5350337", "0.5339122", "0.5334922", "0.53215456", "0.52886724", "0.52854437", "0.5281787", "0.5268373", "0.5235665", "0.5225053", "0.52187...
0.7304548
0
This method will be called once per scheduler run
@Override public void periodic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduler_i...
[ "0.79959375", "0.71370137", "0.7053971", "0.6965585", "0.69561255", "0.6893155", "0.68800586", "0.6876765", "0.67826825", "0.67659134", "0.6764156", "0.67577356", "0.6701485", "0.6687244", "0.6663779", "0.6658108", "0.6658108", "0.6658108", "0.6658108", "0.6644757", "0.664475...
0.62594575
95
//InviteOrderRequest a = new InviteOrderRequest("loushuai4","AABBCC",1); //InviteOrderRequest b = new InviteOrderRequest("loushuai2","AABBCC",1); //InviteOrderRequest c = new InviteOrderRequest("loushuai3","AABBCC",1); List orderList = new ArrayList(); orderList.add(a); orderList.add(b); orderList.add(c); String s=inviteCreateOrderCmsProxy.addPointsByList(JsonEntityTransform.Object2Json(orderList));
@Test public void addPointsByListTest(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int processingContract(String json,List<Object[]> list);", "private static JSONObject placeOrderByPost(org.json.simple.JSONObject shipMent) throws org.json.simple.parser.ParseException {\n\t\tJSONObject jObject = new JSONObject();\n\t\tString line = \"\";\n\t\tJSONParser parser = new JSONParser();\n\t\tJS...
[ "0.623526", "0.6091975", "0.573639", "0.5729013", "0.57071", "0.5673751", "0.56596476", "0.5650961", "0.560119", "0.55856586", "0.55802095", "0.5550199", "0.5528391", "0.54999924", "0.5496712", "0.5456676", "0.54535544", "0.54358417", "0.5432455", "0.5411623", "0.5380968", ...
0.6111831
1
Code for drawing our shapes doesn't change at all! Since we intended to take advantage of polymorphism, we coded this "in general" with respect to the superclass, and not specific to any subclass.
public void paint(Graphics g) { super.paint(g); // don't remove - required for GUI widgets to draw correctly /************************ * Late Binding Demo ************************/ for (int i = 0; i < myShapes.length; i++) { // which draw method is invoked here? // There are many forms of the method (polymorphic), // so which is chosen? // Java has RTTI (run-time type info) // about every object, // and it uses this info to choose // the correct method to invoke! myShapes[i].draw(g); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void drawShape(Shape s) {\n }", "public Shapes draw ( );", "public void drawShape(Shape shape);", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Ov...
[ "0.75524443", "0.74066657", "0.73555034", "0.7346724", "0.7346724", "0.7346724", "0.714594", "0.7137643", "0.71057975", "0.7056042", "0.70454824", "0.7012357", "0.69970524", "0.69970524", "0.6971376", "0.69597375", "0.69424933", "0.69147027", "0.69147027", "0.69147027", "0.68...
0.71268696
8
Gets the id of the city of the event.
public static String getWoeid(String city) { try { String inline = useAPI("https://www.metaweather.com/api/location/search/?query=" + city); if (!inline.equals("[]")) { String[] words = inline.split(","); String[] erg = words[2].split(":"); return erg[1]; } } catch (IOException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "public String getCityId() {\n return cityId;\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public String getCity_id() {\n re...
[ "0.7131815", "0.6918243", "0.68325585", "0.68238443", "0.68047357", "0.6774589", "0.6774589", "0.677058", "0.6732492", "0.6678382", "0.6608744", "0.6600183", "0.6596887", "0.63221794", "0.62982965", "0.6179509", "0.609342", "0.60329056", "0.5993422", "0.5939346", "0.5926275",...
0.54097384
97
Sends a get request to the weatherAPI.
private static String useAPI(String urlString) throws IOException { String inline = ""; URL url = new URL(urlString); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); conn.connect(); int responsecode = conn.getResponseCode(); if(responsecode == 200) { Scanner sc = new Scanner(url.openStream()); while(sc.hasNext()) { inline += sc.nextLine(); } sc.close(); conn.disconnect(); return inline; } conn.disconnect(); return "[]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getWeatherData() {\n System.out.println(\"at getWeather\");\n String url = \"https://api.openweathermap.org/data/2.5/onecall/timemachine?lat=\";\n url += databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE);\n url += \"&lon=\" + da...
[ "0.67201716", "0.64397955", "0.635942", "0.6269713", "0.6246299", "0.6242069", "0.6074545", "0.6033388", "0.60289615", "0.59417075", "0.59267145", "0.5879859", "0.58219653", "0.5798934", "0.5789417", "0.5761625", "0.57401377", "0.5732224", "0.5722418", "0.5709952", "0.5700456...
0.0
-1
handle reflection incompatible reference properties
private String toPropertyName(String element) { String refPropertyName = handleRefProperty(element); if (refPropertyName != null) { return refPropertyName; } StringBuilder sb = new StringBuilder(); char[] chars = element.toCharArray(); boolean upper = true; for (char c : chars) { if (c == '_' || c == '-' || c == '.') { upper = true; } else if (upper) { sb.append(Character.toUpperCase(c)); upper = false; } else { sb.append(c); } } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }", "private void resolveReferenceableStringProperties() throws IOException {\n List<String> undefinedStringProperties = new ArrayList<>();\n ObjectMapper objectMapper = new Obj...
[ "0.5764944", "0.5761372", "0.5646338", "0.55778086", "0.55508024", "0.55287373", "0.54987586", "0.54078025", "0.5385536", "0.5320769", "0.5315107", "0.5314116", "0.52936846", "0.5280528", "0.5274432", "0.52687603", "0.5267457", "0.5255393", "0.52475494", "0.52422017", "0.5240...
0.0
-1
Returns the list of translatable packages in the module that caused the generator to run (the module under compilation).
public static Set<String> findTranslatablePackagesInModule(final GeneratorContext context) { final Set<String> packages = new HashSet<String>(); try { final StandardGeneratorContext stdContext = (StandardGeneratorContext) context; final Field field = StandardGeneratorContext.class.getDeclaredField("module"); field.setAccessible(true); final Object o = field.get(stdContext); final ModuleDef moduleDef = (ModuleDef) o; if (moduleDef == null) { return Collections.emptySet(); } // moduleName looks like "com.foo.xyz.MyModule" and we just want the package part // for tests .JUnit is appended to the module name by GWT final String moduleName = moduleDef.getCanonicalName().replace(".JUnit", ""); final int endIndex = moduleName.lastIndexOf('.'); final String modulePackage = endIndex == -1 ? "" : moduleName.substring(0, endIndex); for (final String packageName : findTranslatablePackages(context)) { if (packageName != null && packageName.startsWith(modulePackage)) { packages.add(packageName); } } } catch (final NoSuchFieldException e) { logger.error("the version of GWT you are running does not appear to be compatible with this version of Errai", e); throw new RuntimeException("could not access the module field in the GeneratorContext"); } catch (final Exception e) { throw new RuntimeException("could not determine module package", e); } return packages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<String> findTranslatablePackages(final GeneratorContext context) {\n if (context.equals(_lastTranslatableContext) && _translatablePackagesCache != null) {\n return _translatablePackagesCache;\n }\n _lastTranslatableContext = context;\n\n final JPackage[] jPackages = context.getTy...
[ "0.7052466", "0.6551231", "0.6275992", "0.6082084", "0.58724946", "0.58089036", "0.57980376", "0.57897234", "0.5780761", "0.57561404", "0.5685806", "0.5601869", "0.5566305", "0.5544789", "0.55068505", "0.5489947", "0.54735035", "0.54588807", "0.5429777", "0.5404902", "0.53858...
0.7865346
0
Returns a list of all translatable packages accessible to the module under compilation (including inherited modules).
public static Set<String> findTranslatablePackages(final GeneratorContext context) { if (context.equals(_lastTranslatableContext) && _translatablePackagesCache != null) { return _translatablePackagesCache; } _lastTranslatableContext = context; final JPackage[] jPackages = context.getTypeOracle().getPackages(); final Set<String> packages = new HashSet<String>(jPackages.length * 2); for (final JPackage p : jPackages) { packages.add(p.getName()); } return _translatablePackagesCache = Collections.unmodifiableSet(packages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Set<String> findTranslatablePackagesInModule(final GeneratorContext context) {\n final Set<String> packages = new HashSet<String>();\n try {\n final StandardGeneratorContext stdContext = (StandardGeneratorContext) context;\n final Field field = StandardGeneratorContext.class.getDeclar...
[ "0.7151653", "0.65328485", "0.5974629", "0.590003", "0.57629675", "0.5757065", "0.5727868", "0.5681301", "0.55954397", "0.55755943", "0.55112094", "0.54864234", "0.54669195", "0.5466805", "0.5411586", "0.54076767", "0.54061574", "0.5401494", "0.5396549", "0.5396455", "0.53904...
0.67275375
1
Busca todos los choferes del centro de distribucion y a demas agrega una instancia que en los combobox de ZK permitira seleccionar todos.
@Transactional(readOnly = true) List<Acondicionador> getAcondicionadoresForCombobox();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void construirTercerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet3ReglaCompleja = new JComboBox(dominio);// creamos el Tercer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet3ReglaCompleja.setSelectedIndex(0);// por defecto quiero visu...
[ "0.7005987", "0.69182366", "0.68673116", "0.6831602", "0.6654719", "0.6541505", "0.6516228", "0.6513608", "0.6437911", "0.639201", "0.6385542", "0.6380939", "0.6362846", "0.6353962", "0.6340075", "0.62681764", "0.6217849", "0.6209727", "0.6201849", "0.6184852", "0.6176444", ...
0.0
-1
Instantiates a new update record listener.
public UpdateRecordListener(MainView view) { // TODO Auto-generated constructor stub this.view = view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void registerUpdateListener(IUpdateListener listener);", "Future<UpdateListenerResponse> updateListener(\n UpdateListenerRequest request,\n AsyncHandler<UpdateListenerRequest, UpdateListenerResponse> handler);", "public void addUpdateListener(StoreUpdateListener listener);", "void updat...
[ "0.6070151", "0.6034779", "0.5918965", "0.58359075", "0.54963654", "0.54073125", "0.53195214", "0.5304316", "0.5273332", "0.52340096", "0.5226209", "0.51566255", "0.5145681", "0.51185274", "0.5103789", "0.508836", "0.5061147", "0.50400305", "0.50214756", "0.50214374", "0.4996...
0.6324719
0
TODO Autogenerated method stub
@Override public List<ShopCategory> queryList(ShopCategory shopCategoryCondition) { return shopCategoryMapper.queryShopCategory(shopCategoryCondition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
recupere le secteur dans lequel est l'avion dans le plan de vol
public Sector getSectorFromDate(Date date) { return m_flightplan.getSectorFromDate(date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) cont...
[ "0.6013089", "0.5976342", "0.5852488", "0.57620835", "0.5722279", "0.56738025", "0.563719", "0.5610369", "0.5572732", "0.5535498", "0.5460905", "0.54560393", "0.54531807", "0.54512626", "0.5440823", "0.5419828", "0.54142684", "0.5385924", "0.5381659", "0.5362135", "0.5348064"...
0.0
-1
TODO Autogenerated method stub
public void setAOC(AOC aoc) { this.aoc = aoc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public AOC getAOC() { return aoc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub Deklarisanje niza (niza stringova)
public static void main(String[] args) { String[] Ime={"Marko", "Petar", "Milan"}; String[] Prezime= {"Markovic", "Petrovic","Milanovic"}; // kratka forma for petlje // ovo ce biti dovoljno za sad for(int i=0;i<Ime.length;i++){ System.out.println(Ime[i]+" "+Prezime[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNota(String nota) {\n this.nota = nota;\n }", "java.lang.String getNume();", "java.lang.String getNume();", "public String getNota() {\n return nota;\n }", "public String getnAsignatura() {\r\n return nAsignatura;\r\n }", "public void setNaziv(String naziv) {\r\n\t\tthis....
[ "0.6935054", "0.6809921", "0.6809921", "0.6775519", "0.66431206", "0.6629637", "0.6608307", "0.65930885", "0.6515669", "0.64796096", "0.6455698", "0.6451479", "0.6434301", "0.6410573", "0.63891256", "0.63460934", "0.625141", "0.62461716", "0.6235814", "0.621813", "0.6192617",...
0.0
-1
Gets the unique id.
public Long getId () { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getUniqueIdentifier() {\r\n UUID uuid = UUID.randomUUID();\r\n return uuid.toString();\r\n }", "String getUniqueId();", "@NonNull\n public final synchronized String getId() {\n if (id == null) {\n id = UUID.randomUUID().toString();\n }\n ...
[ "0.831817", "0.82763946", "0.8244867", "0.82186836", "0.82077813", "0.81292814", "0.81154215", "0.8057151", "0.804915", "0.7984324", "0.7899833", "0.7886772", "0.7877522", "0.7875297", "0.7862932", "0.7788896", "0.7776494", "0.7710699", "0.7695828", "0.76905245", "0.7682747",...
0.0
-1
Gets the text body.
public String getBody () { return body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBodyText() {\n return bodyText;\n }", "public String getBody(){\n return bodiesText;\n }", "String getBody();", "String getBody();", "String getBody();", "String getBody();", "public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}", "protected Text getText() {...
[ "0.814471", "0.77711", "0.73306376", "0.73306376", "0.73306376", "0.73306376", "0.72668225", "0.72303677", "0.7226477", "0.7203019", "0.71874076", "0.7149787", "0.7141223", "0.7134842", "0.7130592", "0.71297336", "0.71175265", "0.71126026", "0.7109087", "0.71046734", "0.71046...
0.7106059
19
Gets the annotation category.
public AnnotationCategory getCategory () { return category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.ads.googleads.v14.services.AudienceInsightsCategory getCategory();", "public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}", "public EntityCategory getCategory ( ) {\n\t\treturn extract ( handle -> handle.getCategory ( ) );\n\t}", "CodeType getCateg...
[ "0.73596555", "0.7127264", "0.67755896", "0.6726239", "0.6697474", "0.669267", "0.66646814", "0.6651415", "0.6651415", "0.6649914", "0.6631021", "0.6611612", "0.6611612", "0.65991926", "0.6586138", "0.65858644", "0.6582956", "0.65759146", "0.6569336", "0.6569336", "0.6561582"...
0.85198927
0
Gets the work part.
public WorkPart getWorkPart () { if(workPart==null && annotates!=null) {workPart = WorkUtils.getWorkPartByTag(annotates);} return workPart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Part getPart() {\n if ( isZombie( part ) ) {\n Part part = segment.getDefaultPart();\n getCommander().requestLockOn( part );\n return part;\n } else {\n return part;\n }\n }", "@Override\r\n\tpublic IWorkbenchPart getPart() {\n\t\treturn ...
[ "0.6777695", "0.6523489", "0.65144914", "0.6502655", "0.64873934", "0.6397133", "0.63248444", "0.6291106", "0.6281837", "0.62741435", "0.62687", "0.6262469", "0.62213", "0.6183339", "0.61695063", "0.61343294", "0.61338896", "0.6112323", "0.6086072", "0.6075661", "0.60526294",...
0.81984335
0
Gets the web page URL.
public String getWebPageURL() { return webPageURL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPageUrl() {\n\t\tLOG.info(\"Reading current page URL.\");\n\t\treturn Constants.driver.getCurrentUrl();\n\n\t}", "public String getPageUrl() {\n return pageUrl;\n }", "public String getPageUrl() {\n\t\treturn pageUrl;\n\t}", "java.lang.String getUrl();", "java.lang.String ...
[ "0.77639884", "0.765572", "0.76510924", "0.75999445", "0.75999445", "0.75999445", "0.75999445", "0.75999445", "0.75999445", "0.7480167", "0.7463519", "0.7440362", "0.7424049", "0.7413946", "0.74103016", "0.7385706", "0.7353191", "0.7350854", "0.7349679", "0.73212934", "0.7306...
0.7989837
0
Gets the creation date.
public Date getCreationTime() { return creationTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getCreationDate();", "public long getCreationDate() {\n return creationDate_;\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreationDate();", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "@java.lang.Override\n pu...
[ "0.87533367", "0.85429907", "0.84840727", "0.84804815", "0.8415665", "0.84149456", "0.84121567", "0.8393098", "0.8385261", "0.83340985", "0.8330943", "0.8284062", "0.82623315", "0.825937", "0.8240863", "0.8234622", "0.8231846", "0.82235813", "0.8196122", "0.8189712", "0.81642...
0.8220795
18
Gets the modification date.
public Date getModificationTime() { return modificationTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "Date getModifyDate();", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getModificationDate() {\n return m_module.getConfigur...
[ "0.80771303", "0.805083", "0.8045645", "0.8045645", "0.8037399", "0.7999814", "0.7930169", "0.7906378", "0.78841764", "0.7869331", "0.7869331", "0.7869331", "0.7832929", "0.77413183", "0.77413183", "0.77413183", "0.7734089", "0.7734089", "0.7734089", "0.7710298", "0.7683495",...
0.7899476
8
Get the public flag.
public boolean getIsPublic() { return isPublic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getPublicAccess() {\n return publicAccess;\n }", "public boolean getIsPublic()\n {\n return isPublic;\n }", "public Boolean getIsPublic() {\n\t\treturn isPublic;\n\t}", "public boolean isPublic()\n {\n ensureLoaded();\n return m_flags.isPublic();\n ...
[ "0.80914605", "0.79108864", "0.7769144", "0.74628663", "0.72994477", "0.69358236", "0.68684036", "0.68501854", "0.6777439", "0.6745917", "0.6736378", "0.6711548", "0.6660388", "0.66585773", "0.66462433", "0.6642446", "0.6637136", "0.6623201", "0.6620293", "0.6620234", "0.6618...
0.78198105
2
Get the active flag.
public boolean getIsActive() { return isActive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getActiveflag() {\n return activeflag;\n }", "public Boolean getActiveFlag() {\n\t\treturn activeFlag;\n\t}", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public String getActiveFlag() {\n return (String) getAttributeInte...
[ "0.879628", "0.86549187", "0.8135618", "0.80850214", "0.80675864", "0.8038435", "0.8038435", "0.800672", "0.7989136", "0.79696196", "0.7886929", "0.7827759", "0.7739305", "0.76888263", "0.768414", "0.7678738", "0.76069045", "0.75899094", "0.75763494", "0.7571176", "0.75603", ...
0.7519252
29
Sets the web page URL.
public void setWebPageURL( String webPageURL ) { this.webPageURL = webPageURL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUrl(URL url)\n {\n this.url = url;\n }", "public void setURL(String url);", "public void setUrl(String url);", "public void setUrl(String url);", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t\tthis.handleConfig(\"url\", url);\n\t}", "public void setUrl(String url) {\n ...
[ "0.7520856", "0.7518418", "0.73993194", "0.73993194", "0.7396683", "0.73820615", "0.72936517", "0.719276", "0.7175365", "0.7147459", "0.71412593", "0.71224314", "0.7107289", "0.7096435", "0.7096435", "0.7046453", "0.70326257", "0.70326257", "0.70326257", "0.7028603", "0.70054...
0.7499597
2
Sets the creation time.
public void setCreationTime( Date creationTime ) { this.creationTime = creationTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "public void setCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreationTime(Date creationTime) {\n this.creationTime = creationTime;\n }", "public void ...
[ "0.8039692", "0.7951611", "0.78391606", "0.78391606", "0.7712172", "0.76413643", "0.76413643", "0.76413643", "0.7609519", "0.7602472", "0.7599823", "0.7575495", "0.75379366", "0.753599", "0.7463073", "0.7452752", "0.7452752", "0.73968244", "0.73712087", "0.737059", "0.7357722...
0.78627926
2
Sets the modification time.
public void setModificationTime( Date modificationTime ) { this.modificationTime = modificationTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLastModifiedTime( long modTime ) throws FileSystemException;", "public void setMtime(Date mtime) {\n this.mtime = mtime;\n }", "public void setMtime(DateTime mtime) {\r\n this.mtime = mtime;\r\n }", "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = ...
[ "0.78427875", "0.7688834", "0.7656017", "0.76275337", "0.7167296", "0.701547", "0.6970136", "0.69548106", "0.6942071", "0.69231975", "0.69212407", "0.6876111", "0.6866178", "0.6860423", "0.6860423", "0.6860423", "0.6860423", "0.6860423", "0.6860423", "0.6860423", "0.6860423",...
0.7445348
4
Sets the text body.
public void setBody (String body) { resetText(body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBodyText(String bodyText) {\n this.bodyText = bodyText;\n }", "public void setBody_(String body_) {\n this.body_ = body_;\n }", "public void setBody(String body)\n\t{\n\t\tm_sBody=body;\t\n\t}", "public void setBody(String body) {\r\n this.body = body;\r\n }", ...
[ "0.8273643", "0.7273032", "0.7272095", "0.7251217", "0.7235103", "0.7164813", "0.7111492", "0.70238847", "0.69398516", "0.6914262", "0.6881615", "0.684163", "0.68262213", "0.6819538", "0.68127346", "0.6702956", "0.6685167", "0.6640411", "0.66096854", "0.65866745", "0.6516464"...
0.7942036
1
Reset the Text from a String.
public void resetText (String textString) { body=textString; TextLine line = new TextLine(); Context context = new Context(); Text textobj = new Text(); line = genText(textString,textobj,line,context); textobj.copyLine(line); textobj.finalize(); MemoryTextWrapper textWrapper = new MemoryTextWrapper(textobj); this.text = textWrapper; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InputBox setText(String text) {\n\t\tthis.text = text;\n\t\tfontRenderer.reallocateText(text);\n\t\t\n\t\treturn this;\n\t}", "public void setText(String t) {\n\t\t\ttext.set(t);\n\t\t}", "private void resetText() {\n\t\tpass.setText(\"\");\n\t}", "private void clearText() {\n \n text_ = getDefa...
[ "0.66553336", "0.65278375", "0.6522479", "0.6505646", "0.64921045", "0.6428914", "0.6371186", "0.6364046", "0.6350342", "0.6263012", "0.62604725", "0.6226389", "0.62180567", "0.6213717", "0.6210491", "0.6204783", "0.6204783", "0.61992997", "0.6196104", "0.6193629", "0.6191785...
0.8324285
0
Gets the text as a String.
public String getTextAsString () { String val = null; if(text!=null) { Text t = text.getText(); TextLine[] lines = t.getLines(); if(lines.length >0) { int endline = lines.length - 1; TextLine lastline = lines[endline]; if(lastline!= null) { int endOffset = lastline.getLength(); TextRange tr = new TextRange(new TextLocation(0,0), new TextLocation(endline,endOffset)); val = t.getText(tr); } } } return val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getText() {\n \t\treturn text;\n \t}", "public java.lang.String getText() {\n return text_;\n }", "public String getText() {\n if (text == null) {\n return \"NO TEXT IN MEMORY.\";\n }\n return text.getTextPart();\n }", "public final String getTex...
[ "0.8093728", "0.8042384", "0.7952757", "0.7943578", "0.79239", "0.79123694", "0.79065347", "0.79033667", "0.7894856", "0.78749347", "0.78701407", "0.78701407", "0.78701407", "0.78699553", "0.78699553", "0.7832113", "0.7832113", "0.7832113", "0.7819817", "0.7810928", "0.781092...
0.8021996
2
True if italic style
public Object clone () { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isItalic() {\n\treturn (style & ITALIC) != 0;\n }", "public boolean getItalic()\n {\n return font.isItalic();\n }", "public boolean isItalic() throws PDFNetException {\n/* 594 */ return IsItalic(this.a);\n/* */ }", "public boolean getItalic() {\r\n return...
[ "0.8289931", "0.7986443", "0.7973214", "0.7927483", "0.78892875", "0.77802336", "0.74896777", "0.7478268", "0.7093381", "0.7077165", "0.68354857", "0.67879635", "0.67832893", "0.67581344", "0.6667652", "0.6567818", "0.65573996", "0.65489405", "0.6401492", "0.6384536", "0.6196...
0.0
-1
Generates a string of text.
protected TextLine genText (String str, Text text, TextLine line, Context context) { TextLine tLine = line; String[] parts = str.split("\\n"); byte charset = TextParams.ROMAN; byte size = TextParams.ILIAD_SCHOLIA_FONT_SIZE; String part = parts[0]; part = part.replaceAll("\\s+", " "); TextRun run = new TextRun(part, charset, size); if (context.bold) run.setBold(); if (context.italic) run.setItalic(); tLine.appendRun(run); if(parts.length > 1) { text.copyLine(tLine); for(int i =1;i<parts.length;i++) { part = parts[i]; part = part.replaceAll("\\s+", " "); tLine = new TextLine(); run = new TextRun(part, charset, size); if (context.bold) run.setBold(); if (context.italic) run.setItalic(); tLine.appendRun(run); if(i<parts.length -1) { text.copyLine(tLine); } } } return tLine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "public abstract String generate(Object... args);", "public String generateString() {\n List<Trip<String, String, String>> sequence = super.generateSequence(st...
[ "0.734342", "0.6910644", "0.6811731", "0.67321724", "0.6613825", "0.64647275", "0.63788915", "0.6276808", "0.6275961", "0.62387514", "0.61614203", "0.6160049", "0.6128071", "0.6106345", "0.6093538", "0.6092203", "0.6087966", "0.6060064", "0.6060064", "0.5997197", "0.5994596",...
0.5671647
47
Sets the annotation category.
public void setCategory (AnnotationCategory category) { this.category = category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AnnotationCategory getCategory () {\n\t\treturn category;\n\t}", "public void setCategory(AttributeCategory category) {\n if (category == null) {\n throw new NullPointerException();\n }\n this.category = category;\n }", "@Override\n public void setCategory(String category) {\n t...
[ "0.6798092", "0.6391641", "0.62833315", "0.62792087", "0.62219346", "0.6188193", "0.6135166", "0.61322093", "0.60037756", "0.5993203", "0.5960008", "0.59559244", "0.59549224", "0.58934736", "0.58533746", "0.58533746", "0.58533746", "0.58533746", "0.58474076", "0.58106214", "0...
0.7982446
0
Sets the work part.
public void setWorkPart (WorkPart workPart) { this.workPart = workPart; this.annotates = workPart.getTag(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPart(java.lang.String part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);\n ...
[ "0.6739959", "0.6685286", "0.660982", "0.6414583", "0.6269844", "0.6207552", "0.6164031", "0.6133376", "0.59023446", "0.58628875", "0.5848301", "0.58405244", "0.5824886", "0.5804947", "0.5783047", "0.5656514", "0.56211144", "0.56121784", "0.5609335", "0.560241", "0.557735", ...
0.74580806
0
Set the public flag.
public void setIsPublic( boolean isPublic ) { this.isPublic = isPublic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }", "public void setPublicAccess(Boolean publicAccess) {\n this.publicAccess = publicAccess;\n }", "public void setIsPublic(boolean isPublic)\n {\n this.isPublic = ...
[ "0.85220283", "0.8105357", "0.80138195", "0.7788494", "0.72227615", "0.711936", "0.6933275", "0.6927777", "0.68859386", "0.68469685", "0.6814006", "0.67872876", "0.67465", "0.6715878", "0.66597533", "0.66551685", "0.6579945", "0.65193653", "0.65053046", "0.6467883", "0.640381...
0.7840478
3
Set the active flag.
public void setIsActive( boolean isActive ) { this.isActive = isActive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void active(boolean value) {\n\t\tactive = value;\n\t}", "protected synchronized void setActive(final boolean b) {\n active = b;\n }", "public void setActive() {\n\t\tactive = true;\n\t}", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void se...
[ "0.82658803", "0.8258513", "0.81567115", "0.8089745", "0.8089745", "0.8089745", "0.8079628", "0.80782807", "0.80511177", "0.80396736", "0.8023621", "0.80210876", "0.80034006", "0.79921806", "0.798577", "0.7929925", "0.78832114", "0.7869722", "0.7849121", "0.78470975", "0.7845...
0.68830955
74
Set values from DOM document node.
public boolean setFromDOMDocumentNode( org.w3c.dom.Node wordSetNode ) { // If word set node is null, quit. return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValuesFromXML_local(Document dom) {\n\n\t}", "public static void documentToValue( Document document, Value value )\n\t{\n\t\tsetAttributes( value, document.getDocumentElement() );\n\t\telementsToSubValues(\n\t\t\tvalue,\n\t\t\tdocument.getDocumentElement().getChildNodes()\n\t\t);\n\t}", "@Overri...
[ "0.70477515", "0.6458556", "0.63936794", "0.62286496", "0.62034506", "0.616795", "0.6126086", "0.601443", "0.6005679", "0.59809095", "0.59531146", "0.5671602", "0.56238693", "0.56071913", "0.5477634", "0.54659176", "0.54396915", "0.5417967", "0.54141605", "0.5372662", "0.5361...
0.5681366
11
Add word set to DOM document.
public boolean addToDOMDocument ( org.w3c.dom.Document document ) { boolean result = false; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void addWordsToDoc(int doc,List<VocabWord> w...
[ "0.610965", "0.6074614", "0.59296256", "0.59035075", "0.5861478", "0.58432114", "0.5836497", "0.58355904", "0.5833298", "0.58179045", "0.58140755", "0.578215", "0.57648516", "0.5734368", "0.57308835", "0.5720895", "0.56077373", "0.55994064", "0.5596804", "0.5587058", "0.55092...
0.0
-1
Gets a string representation of the word set.
public String toString() { return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n if (size == 0) {\n return \"{}\";\n }\n String str = \"{\";\n for (int i = 0; i < size - 1; i++) {\n str = str + set[i] + \", \";\n } str = str + set[size - 1] + \"}\";\n return str;\n }", "public String toString() {\...
[ "0.7118288", "0.6899277", "0.6877511", "0.6828678", "0.67659616", "0.6763281", "0.6742713", "0.66445017", "0.6639193", "0.65287113", "0.6518794", "0.64471716", "0.64359164", "0.6395197", "0.63845974", "0.63328916", "0.63207734", "0.63020974", "0.62852156", "0.6158517", "0.614...
0.0
-1
Returns true if some other object is equal to this one. The two objects are equal if their ids are equal.
public boolean equals( Object obj ) { if ( ( obj == null ) || !( obj instanceof AuthoredTextAnnotation ) ) return false; AuthoredTextAnnotation other = (AuthoredTextAnnotation)obj; return id.equals( other.getId() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Object otherObject) {\n if (!(otherObject instanceof ID)) {\n return false;\n }\n return (this.UID.equals(otherObject.toString()));\n }", "public boolean equals( Object other){\n \tif( other instanceof Person){\n \t\treturn personId == ((Person)other...
[ "0.76143086", "0.7452096", "0.7446728", "0.72181", "0.7213331", "0.71304667", "0.7083422", "0.7051343", "0.70289814", "0.7015659", "0.7014023", "0.7013621", "0.7006212", "0.70005417", "0.6988349", "0.69854945", "0.6985296", "0.6976759", "0.6967118", "0.69642156", "0.69288605"...
0.0
-1
Returns a hash code for the object.
public int hashCode() { return id.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashcode();", "public String getHashCode();", "public int hashCode() {\n\t\treturn hash(objects); //return the hash code of the objects\n\t}", "final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins h...
[ "0.79413044", "0.76237893", "0.7557217", "0.75335544", "0.74712676", "0.745404", "0.7421876", "0.7377069", "0.73469484", "0.73353344", "0.73353344", "0.73353344", "0.73353344", "0.7331826", "0.7327737", "0.7309166", "0.7306997", "0.7285496", "0.72830015", "0.72729987", "0.727...
0.0
-1
Writes the annotation to an object output stream (serializes the object).
public void writeExternal( ObjectOutput out ) throws IOException { out.writeObject( id ); out.writeObject( title ); out.writeObject( description ); out.writeObject( webPageURL ); out.writeObject( creationTime ); out.writeObject( modificationTime ); out.writeObject( owner ); out.writeBoolean( isPublic ); out.writeBoolean( isActive ); out.writeObject(category); out.writeObject(body); out.writeObject(target); out.writeObject(author); out.writeObject(annotates); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeObject(OutputSerializer out) throws java.io.IOException;", "public void writeObject(OutputStream stream, Object object, int format) throws IOException;", "private void writeObject(final ObjectOutputStream out) throws IOException {\n try {\n if (location == null) location = IOHelper.serializeD...
[ "0.70746607", "0.65073395", "0.6443535", "0.6433569", "0.6428349", "0.6313881", "0.62534106", "0.62473387", "0.62454885", "0.6217713", "0.62007105", "0.6184222", "0.61823034", "0.6114441", "0.60889256", "0.60843414", "0.608254", "0.5992135", "0.59774554", "0.5966944", "0.5961...
0.5689458
32
Reads the annotation from an object input stream (deserializes the object).
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { id = (Long)in.readObject(); title = (String)in.readObject(); description = (String)in.readObject(); webPageURL = (String)in.readObject(); creationTime = (Date)in.readObject(); modificationTime = (Date)in.readObject(); owner = (String)in.readObject(); isPublic = in.readBoolean(); isActive = in.readBoolean(); isActive = true; category = (AnnotationCategory)in.readObject(); body = (String)in.readObject(); resetText(body); target = (TextRange)in.readObject(); author = (String)in.readObject(); annotates = (String)in.readObject(); workPart = WorkUtils.getWorkPartByTag(annotates); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readObject(InputSerializer in) throws java.io.IOException;", "private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {\n stream.defaultReadObject();\n answerMarks_.clear();\n }", "private void readObject(ObjectInputStream in) throws IOException,...
[ "0.681835", "0.6768265", "0.6645285", "0.6557482", "0.6550703", "0.6522833", "0.65128523", "0.63723403", "0.6293689", "0.6276195", "0.62759775", "0.6265466", "0.6261393", "0.625802", "0.6216201", "0.6175575", "0.6175575", "0.6175575", "0.61699295", "0.6134376", "0.60996187", ...
0.6295332
8
Add read permission for userGroup
public void addReadPermission(UserGroup userGroup) { UserGroupPermissionUtils.addReadPermission(this,userGroup); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPermissionRead();", "public int getUserModificationPermission() {\n return permission;\n }", "int getPermissionWrite();", "@Override\n public boolean hasAccessPermission(String user, NamespaceKey key, DatasetConfig datasetConfig) {\n return userPredicate.test(user);\n }", "@Override\n...
[ "0.63777053", "0.60387075", "0.59436333", "0.58106273", "0.5779556", "0.56809884", "0.56704193", "0.56246376", "0.5602949", "0.5511392", "0.5507972", "0.54923064", "0.54641646", "0.5453943", "0.54285425", "0.54022", "0.539397", "0.5381605", "0.53681564", "0.5364172", "0.53398...
0.8048547
0
this is only called by a test right now, but ImmutableList.copyOf won't tolerate null elements
public Object[] getArguments() { if (args.length == 0) { return args; } Object[] copy = new Object[args.length]; System.arraycopy(args, 0, copy, 0, args.length); return copy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assertImmutableList() {\n\t\tassertImmutableList(wc);\n\t}", "private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newLi...
[ "0.6664571", "0.61960804", "0.61637026", "0.59997845", "0.5970626", "0.5896328", "0.5810334", "0.5749002", "0.56958884", "0.5674229", "0.5660354", "0.5659473", "0.560452", "0.55664355", "0.5563732", "0.5543976", "0.5529697", "0.55120283", "0.55015594", "0.54924625", "0.547166...
0.0
-1
TODO: this should be a readonly view?
public Map<String, Object> getAnnotations() { return ImmutableMap.copyOf(annotations); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void view() {\n\t\t\n\t}", "protected ReliedOnView() {}", "private View() {}", "public abstract View mo2155b();", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "StableView view();", "public interface View {\n\t\n\tpublic DifferenceOperators...
[ "0.63198626", "0.6210617", "0.6203891", "0.5928756", "0.590406", "0.58498895", "0.58186275", "0.579148", "0.57777506", "0.5755384", "0.5735023", "0.57278794", "0.5705391", "0.5705391", "0.5705391", "0.5700697", "0.5697281", "0.56904525", "0.5639241", "0.5617448", "0.5604647",...
0.0
-1
This is a helper method that makes sure that the script waits until the clicked element's text matches the h3 tag text
private void helperMethod(WebElement element, WebElement categoryIndicator) { try { wait.until(ExpectedConditions.textToBePresentInElement(element, categoryIndicator.getText())); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \n\t@Description(\"Wait for Loader to finish TC\")\n\tpublic void waitText() {\n\t\therokuappNavigate();\n\t\therokuapp hero = new herokuapp(driver);\n\t\thero.dynamicloadclick();\n\t\thero.example2click();\n\t\thero.start();\n\t\t//hero.waitToFinish();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 40)...
[ "0.60177916", "0.57662904", "0.57323563", "0.5719076", "0.5612172", "0.54901344", "0.5468897", "0.54511744", "0.5432421", "0.54102135", "0.53874475", "0.534785", "0.5285353", "0.5281015", "0.5278248", "0.5247762", "0.5241619", "0.52191347", "0.5214405", "0.5213721", "0.519758...
0.58177155
1
Returns a JavaSpace service with a given name.
public static JavaSpace05 getSpace(String spaceName) { return getSpace(spaceName, SorcerEnv.getSpaceGroup()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Service getServiceForName(String name) throws SessionQueryException\n {\n Service returnedService = null;\n\n try\n {\n ComponentStruct component = getSessionManagementAdminService().getComponent(name);\n returnedService = new Service(name, component.isRunning, ...
[ "0.6864391", "0.639956", "0.62005633", "0.6138541", "0.6137388", "0.6137388", "0.6124086", "0.6124086", "0.6041123", "0.60154843", "0.5917549", "0.5910612", "0.5909416", "0.5892745", "0.5808703", "0.57752657", "0.5773419", "0.57594645", "0.5741868", "0.5723943", "0.57230824",...
0.5774308
16
Returns a JavaSpace service with a given name and group.
public static JavaSpace05 getSpace(String spaceName, String spaceGroup) { return instance.doGetSpace(spaceName, spaceGroup); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JavaSpace05 doGetSpace(String spaceName, String spaceGroup) {\n JavaSpace05 javaSpace = (JavaSpace05) cache.get(JavaSpace05.class.getName());\n if (javaSpace != null) {\n try {\n javaSpace.readIfExists(new Name(\"_SORCER_\"), null,\n JavaSp...
[ "0.6571192", "0.6086898", "0.5857931", "0.5769837", "0.5769837", "0.574503", "0.574503", "0.5730671", "0.5609526", "0.5577799", "0.5547791", "0.53259593", "0.5324036", "0.5316085", "0.53135306", "0.5290421", "0.5284229", "0.5270031", "0.524638", "0.524638", "0.524638", "0.5...
0.6582485
0
first test if our cached JavaSpace is alive and if it's the case then return it, otherwise get a new JavSpace proxy
public JavaSpace05 doGetSpace(String spaceName, String spaceGroup) { JavaSpace05 javaSpace = (JavaSpace05) cache.get(JavaSpace05.class.getName()); if (javaSpace != null) { try { javaSpace.readIfExists(new Name("_SORCER_"), null, JavaSpace.NO_WAIT); return javaSpace; } catch (Exception e) { //log.error("error", e.getMessage()); cache.remove(JavaSpace05.class.getName()); } } Entry[] attrs = null; if (spaceName != null) { attrs = new Entry[] { new Name(spaceName) }; } String sg = spaceGroup; if (spaceGroup == null) { sg = SorcerEnv.getSpaceGroup(); } javaSpace = (JavaSpace05) Accessor.getService(null, new Class[]{JavaSpace05.class}, attrs, new String[]{sg}); try { javaSpace.readIfExists(new Name("_SORCER_"), null, JavaSpace.NO_WAIT); cache.put(JavaSpace05.class.getName(), javaSpace); log.info("JavaSpace is back!"); return javaSpace; } catch (Exception e) { log.error("Problem connecting to JavaSpace"); cache.remove(JavaSpace05.class.getName()); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HttpProxyCacheServer getProxy() {\n\n return proxy == null ? (proxy = newProxy()) : proxy;\n }", "Proxy getProxy();", "private NodeMgrService.Proxy getProxy(int node) { \n Object obj = ServiceManager.proxyFor(node);\n if (! (obj instanceof NodeMgrService.Proxy)) {\n i...
[ "0.66062677", "0.5874005", "0.56836313", "0.535959", "0.5333917", "0.5263202", "0.5238546", "0.52141327", "0.5205748", "0.5093468", "0.5080504", "0.5073704", "0.50722533", "0.50694865", "0.50607", "0.50579274", "0.50041115", "0.49999747", "0.4993505", "0.49773985", "0.4974239...
0.56439835
3
Returns a Jini JavaSpace service.
public static JavaSpace05 getSpace() { return instance.doGetSpace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ServicesPackage getServicesPackage();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "String getServiceName();", "String getServiceName();", "public String getServiceNa...
[ "0.6220799", "0.5925747", "0.5925747", "0.5925747", "0.58514816", "0.58514816", "0.58469903", "0.5813748", "0.5813748", "0.5813748", "0.5672397", "0.5672397", "0.5617142", "0.5609885", "0.5609885", "0.5609885", "0.5581923", "0.55277723", "0.552211", "0.547022", "0.545343", ...
0.5208091
39
Initializes a new instance of the ConditionConnective class with the specified type.
public ConditionConnective(ConditionConnectiveType type) { conditions = new LinkedList<Condition>(); this.type = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConditionConnectiveType getType() {\n\t\treturn type;\n\t}", "public SimpleCondition() {\n\n\t}", "public Condition(ConditionManager condition)\r\n\t{\r\n\t\tthis.condition = condition;\r\n\t\tinit();\r\n\t}", "public ClassOperator(Class type) {\n this(new StaticArgument(simplify(type.getName()...
[ "0.6778281", "0.59067386", "0.58138776", "0.55303407", "0.5492523", "0.54728377", "0.5323419", "0.52992946", "0.52894086", "0.52557695", "0.52478683", "0.5218961", "0.5199727", "0.51701254", "0.516775", "0.51633346", "0.5146737", "0.51358867", "0.5094531", "0.5056289", "0.500...
0.81583846
0
Creates and returns a deep copy of the connective.
@Override public ConditionConnective clone() { final ConditionConnective clone = new ConditionConnective(type); for (final Condition c : conditions) { clone.conditions.add(c.clone()); } return clone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }", "@Override\r\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS();\r\n for (node_info curr : this.Graph.getV()) { ...
[ "0.66491425", "0.64675415", "0.6400842", "0.6375208", "0.6260606", "0.6152741", "0.61510855", "0.60737056", "0.6059383", "0.6029395", "0.60209507", "0.60198534", "0.5980889", "0.59781", "0.59558624", "0.59444547", "0.59294397", "0.59294397", "0.5886943", "0.5876558", "0.58638...
0.64288634
2
Gets the connected conditions.
public List<Condition> getConditions() { return conditions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Condition [] getConditions() {\n return this.Conditions;\n }", "public List<ICondition> getConditions()\r\n\t{\r\n\t\treturn conditions;\r\n\t}", "public Conditions getConditions() {\n // Lazy initialization with double-check.\n Conditions c = this.conditions;\n if (c == n...
[ "0.7007598", "0.69032484", "0.68701625", "0.6791428", "0.6681174", "0.6597397", "0.6526084", "0.6524915", "0.6379228", "0.62167835", "0.6096806", "0.59802806", "0.59723586", "0.59654254", "0.59640765", "0.59251547", "0.5866057", "0.57994056", "0.5733805", "0.57170016", "0.569...
0.6911478
1
Gets the type of the connective.
public ConditionConnectiveType getType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable ConnectionPointType getType();", "public final int getConnectionType()\n\t{\n\t\treturn connType;\n\t}", "public int getType() {\n validify();\n return Client.INSTANCE.pieceGetType(ptr);\n }", "public String getType() {\n\t\t\n\t\tif(this instanceof Friend_Connection) {\n\t\t\tretu...
[ "0.7030181", "0.6888207", "0.6872952", "0.68324107", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.68005747", "0.6772687", "0.6759134", "0.6754277", "0...
0.7454995
0
Deploys the coreJar and the project file to the remote device
public synchronized Promise<DeployedInstanceManager, Throwable, Double> deploy() { final DeployedInstanceManager self = this; JSch.setConfig("StrictHostKeyChecking", "no"); final DeferredManager deferred = new DefaultDeferredManager(); return deferred.when(new DeferredCallable<DeployedInstanceManager, Double>() { @Override public DeployedInstanceManager call() throws IOException { notify(0.2); scpFileToTarget(coreJar); notify(0.5); scpFileToTarget(projectFile); notify(1.0); return self; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute()\n throws MojoExecutionException\n {\n this.checkOperatingSystem();\n\n final File folderApp =\n new File( this.data.getTargetDirectory(), this.data.getAppName() + \"-\" + this.data.getAppVersion() + \".app\" );\n final File folderContents = new File( ...
[ "0.58741623", "0.5857434", "0.56515354", "0.56358576", "0.55266124", "0.54508996", "0.5430898", "0.53973967", "0.5351815", "0.52839595", "0.52675164", "0.5255157", "0.5151132", "0.5136889", "0.5053034", "0.5050026", "0.5033171", "0.50302523", "0.50228024", "0.5013481", "0.500...
0.5052122
15
Starts GRIP running on the device specified by the secure shell details
public synchronized void start() throws IOException { if (isStarted()) { throw new IllegalStateException("The program has already been started and must be stopped before restarting"); } // Ensure that the project isn't running from a previous instance. runStop(); Thread launcher = new Thread(() -> { try { final Shell gripShell = new Shell.Safe(details.createSSHShell()); gripShell.exec("nohup " + deploymentCommands.getJARLaunchCommand(coreJar.getName(), projectFile.getName()) + " &", new NullInputStream(0L), stdOut.get(), stdErr.get()); } catch (IOException e) { throw new IllegalStateException("The program failed to start", e); } finally { // This thread is done, shut it down. synchronized (this) { sshThread = Optional.empty(); } eventBus.post(new StartedStoppedEvent(this)); } }, "SSH Monitor Thread"); launcher.setUncaughtExceptionHandler((thread, exception) -> { eventBus.post(new UnexpectedThrowableEvent(exception, "Failed to start the remote instance of the application")); try { runStop(); } catch (IOException e) { eventBus.post(new UnexpectedThrowableEvent(e, "Failed to stop the remote instance of the program")); } }); launcher.setDaemon(true); launcher.start(); this.sshThread = Optional.of(launcher); eventBus.post(new StartedStoppedEvent(this)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startTracking()\n\t{\t\n\t\tProcessBuilder starterProcess = new ProcessBuilder(\"ssh\", \n\t\t\t\t\t\t\t\t\t\t\"pi@\" + RASPBERRY_PI_LOCATION,\n\t\t\t\t\t\t\t\t\t\t\"\\\"sudo /home/pi/code/stop_vision.sh && /home/pi/code/start_vision.sh \" + \n\t\t\t\t\t\t\t\t\t\tFPS + \" \" + \n\t\t\t\t\t\t\t\t\t\tIMA...
[ "0.62323946", "0.5722656", "0.5544207", "0.53131115", "0.5265879", "0.5221377", "0.52021956", "0.5170055", "0.515983", "0.51483065", "0.514805", "0.5137658", "0.51330805", "0.5128145", "0.5061863", "0.50538576", "0.50538576", "0.50538576", "0.5012276", "0.49807602", "0.497835...
0.47720522
58
Stops the program running on the remote device
public synchronized void stop() throws IOException { if (!isStarted()) { throw new IllegalStateException("The program hasn't started yet."); } runStop(); do { try { // Since we hold the mutex on this we can wait wait(50); } catch (InterruptedException e) { Thread.currentThread().interrupt(); logger.log(Level.WARNING, "Wait interrupted", e); } runStop(); } while (isStarted() && !Thread.interrupted()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n\t\texec.stop();\n\t}", "@GET\n @Path(\"/stop\")\n @Produces(MediaType.TEXT_PLAIN)\n public String stop() {\n Device device = getDevice();\n try {\n transportService.stop(device.getId());\n } catch (UnknownDeviceException e) {\n re...
[ "0.71078086", "0.68548524", "0.6755268", "0.67487466", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.66979134", "0.6676721", ...
0.0
-1
Makes an SSH connection to the remote and runs the kill command. Should block until the command has executed.
private void runStop() throws IOException { final Shell.Plain gripShell = new Shell.Plain(new Shell.Safe(details.createSSHShell())); gripShell.exec(deploymentCommands.getKillCommand(coreJar.getName())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void kill() {\n disconnect = true;\n }", "protected abstract void doKill();", "@Override\r\n public void executeCommand() {\r\n shell.stopRunning();\r\n }", "public void disconnectSSH(){\n\t log.info(\"Trying to disconnect to device \"+deviceIP+\" ...\\n\");\n\t session.disconnec...
[ "0.5775085", "0.56756616", "0.5639907", "0.5630653", "0.56268036", "0.5610159", "0.5610159", "0.55913675", "0.557923", "0.5500153", "0.53349644", "0.53262806", "0.5290421", "0.5279824", "0.51833785", "0.5137731", "0.513507", "0.5063746", "0.50577635", "0.5034059", "0.5032567"...
0.50340784
19
JMX MBean interface for ETL task. This interface specifies attributes and operations available via JMX. The ETL mbeans have the following naming convention: scriptella:type=etl,url=&lt;ETL_XML_FILE_URL&gt;[,n=&lt;COLLISION_ID&gt;] The collision ID is appended only if the same file is executed simultaneously.
public interface JmxEtlManagerMBean { /** * Returns the number of executed statements by all connections of the ETL task. * @return non-negative number of executed statements. */ long getExecutedStatementsCount(); /** * Returns the date/time when ETL was started. * @return date/time. */ Date getStartDate(); /** * Returns the throughput of the managed ETL task. * @return statements/sec throughput or 0 if undefined. */ double getThroughput(); /** * Cancels the managed ETL task. */ void cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TestMBean {\n\n /**\n * Returns the value of a string attribute.\n * \n * @return String\n */\n public String getStringAttribute();\n\n /**\n * Returns the value of a double attribute.\n * \n * @return Double\n */\n public Double getDoubleAttribute();\n\...
[ "0.5405782", "0.5391532", "0.5219036", "0.5164778", "0.5093429", "0.49712297", "0.49429256", "0.4782894", "0.46725336", "0.46629155", "0.46535674", "0.45919743", "0.456917", "0.45588893", "0.4540063", "0.45068118", "0.44450605", "0.4440109", "0.44283798", "0.44126716", "0.440...
0.6765925
0
Returns the number of executed statements by all connections of the ETL task.
long getExecutedStatementsCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getAllStatementCount();", "int getTotalCreatedConnections();", "int getConnectionsCount();", "public int getStatementCount() {\n return this.statementCount;\n }", "int getExecutorActiveCount();", "int getConnectionCount();", "long getExecutorTaskCount();", "public int connection...
[ "0.7571226", "0.69219214", "0.6866065", "0.68066126", "0.6730715", "0.67300904", "0.66003436", "0.65675676", "0.65564895", "0.6553981", "0.65387636", "0.6533295", "0.6490006", "0.64771867", "0.6451707", "0.6424958", "0.64187425", "0.6401828", "0.63775986", "0.63566536", "0.63...
0.7960448
0
Returns the date/time when ETL was started.
Date getStartDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getStartTime() {\n\t\treturn getOriginatingTime();\n\t}", "public long getStartTime();", "public long getStartTime();", "Date getStartedOn();", "long getStartTime();", "public long getStartTime () {\n if (isPerformance) {\n return System.currentTimeMillis();\n }\n else\n {\n ...
[ "0.7287523", "0.7214511", "0.7214511", "0.72072625", "0.7191693", "0.7139352", "0.7137566", "0.7137566", "0.7137566", "0.71175915", "0.71062905", "0.70796186", "0.70796186", "0.7035355", "0.6942779", "0.6924029", "0.6920852", "0.69156164", "0.69154435", "0.69139606", "0.69139...
0.0
-1
Returns the throughput of the managed ETL task.
double getThroughput();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected long getThroughput() {\n\t\treturn producerThreadPool.getThroughput();\n\t}", "public Long getThroughput() {\n return this.throughput;\n }", "public Integer getThroughput() {\n return this.throughput;\n }", "public double getThroughput () {\n\t\treturn throughputRequired;\n\t}",...
[ "0.6685814", "0.66606426", "0.6555685", "0.6207804", "0.60364354", "0.6000551", "0.5909931", "0.5900903", "0.5847722", "0.5782092", "0.5771057", "0.56740856", "0.56527025", "0.56423235", "0.563121", "0.56301516", "0.5629111", "0.55903244", "0.5585272", "0.55783516", "0.556419...
0.65548205
3
Cancels the managed ETL task.
void cancel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}", "public void cancelTask(String id);", "public static void cancelTask() {\n try {\n if (Utils.isNotNull(tt)) {\n ...
[ "0.7039367", "0.68750685", "0.68643", "0.67663336", "0.66523886", "0.6622323", "0.6523763", "0.6521327", "0.6512644", "0.64938176", "0.6491162", "0.648832", "0.64761466", "0.6441246", "0.64234453", "0.64234453", "0.64234453", "0.64234453", "0.64234453", "0.64234453", "0.64179...
0.62207735
47
Creates new form studentPortal2
public studentPortal2() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "@GetMapping(\"/students/new\")\n\tpublic String createStudentForm(Model model) throws ParseException\...
[ "0.6895535", "0.65243566", "0.61962086", "0.6107609", "0.6021668", "0.6020675", "0.5942684", "0.59305507", "0.59107214", "0.5892284", "0.57943356", "0.57579744", "0.57217705", "0.5715699", "0.57069945", "0.57029253", "0.5681783", "0.5656474", "0.5629626", "0.5628714", "0.5613...
0.6409628
2
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); label1 = new java.awt.Label(); jLabel2 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jButton3 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); MainLayer = new javax.swing.JLabel(); jPanel1.setLayout(null); jPanel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); label1.setText("Search Criteria"); jLabel2.setText("Title: "); jTextField1.setText("jTextField1"); jLabel3.setText("Author: "); jTextField2.setText("jTextField2"); jLabel4.setText("ISBN: "); jTextField3.setText("jTextField3"); jButton1.setText("Search"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setText("Clear"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel3) .addGap(18, 18, 18) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel2) .addGap(31, 31, 31) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel4) .addGap(28, 28, 28) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(36, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(32, 32, 32) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(40, 40, 40) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1) .addComponent(jButton2)) .addContainerGap(445, Short.MAX_VALUE)) ); jPanel1.add(jPanel2); jPanel2.setBounds(10, 60, 360, 670); jPanel3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jTable1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title: ", "Author:", "ISBN", "Avalibility " } )); jScrollPane1.setViewportView(jTable1); jButton3.setText("Reserve Book"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 746, Short.MAX_VALUE) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jButton3) .addGap(0, 0, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 543, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton3) .addGap(0, 89, Short.MAX_VALUE)) ); jPanel1.add(jPanel3); jPanel3.setBounds(380, 60, 750, 670); jButton4.setText("Logout"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jPanel1.add(jButton4); jButton4.setBounds(1050, 30, 73, 23); jLabel5.setFont(new java.awt.Font("Tekton Pro Cond", 1, 24)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("Student Portal"); jPanel1.add(jLabel5); jLabel5.setBounds(10, 10, 160, 40); MainLayer.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/images/screen.jpg"))); // NOI18N jPanel1.add(MainLayer); MainLayer.setBounds(0, 0, 1160, 750); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7320782", "0.72918797", "0.72918797", "0.72918797", "0.728645", "0.72498447", "0.7214492", "0.720934", "0.7197145", "0.71912014", "0.71852076", "0.7160113", "0.71487373", "0.70943654", "0.70820624", "0.7058153", "0.69883204", "0.6978216", "0.69558746", "0.6955715", "0.6945...
0.0
-1
Check file if need (for import batch job)
private boolean checkFile(String batchName) { String message = ""; boolean found=true; if (batchName.equals(Constant.POS_EMPLOYEE)) { found= ut.isExistFile( Constant.POS_EMPLOYEE_FILE ,Constant.IMPORT_PATH); message = lang.getString("MS100_RunAfterSimEm"); } else if (batchName.equals(Constant.POS_EXCHANGE_RATE)) { found= ut.isExistFile(Constant.POS_EXCHANGE_RATE_FILE,Constant.IMPORT_PATH); message = lang.getString("MS101_RunAfterSimExchangeRatem"); } else if (batchName.equals(Constant.POS_ITEM_PRICE)) { found= ut.isExistFile(Constant.POS_ITEM_PRICE_FILE,Constant.IMPORT_PATH); message = lang.getString("MS102_RunAfterSimItemPrice"); } if (!found) { ut.showMessage(frmMain, lang.getString("TT001"), message +" "+ lang.getString("MS103_RunFTP")); } return found; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkFile() {\n \ttry {\n \t\tdata = new BufferedReader(\n \t\t\t\t new FileReader(textFile));\n \t\t\n \t}\n \tcatch(FileNotFoundException e)\n \t{\n \t\tSystem.out.println(\"The mentioned File is not found.\");\n System.out.println(\"\");\n\t\t\tSystem.exit(1...
[ "0.6945891", "0.67444444", "0.6465874", "0.64557546", "0.64108235", "0.63987017", "0.6369232", "0.6353183", "0.63374287", "0.6320172", "0.63071203", "0.6297924", "0.628092", "0.62243223", "0.61973786", "0.61973786", "0.61873865", "0.6173036", "0.60802794", "0.60741246", "0.60...
0.71037185
0
convert "dd/MM/yyyy" > "yyyyMMdd"
private String convertDate(String date){ String arrDate[] = date.split("/"); date = arrDate[2] + "-" + arrDate[1] + "-" + arrDate[0]; return date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "private String ...
[ "0.6879749", "0.6554801", "0.6234372", "0.62197804", "0.6176946", "0.6039741", "0.5971498", "0.59238565", "0.59167886", "0.58988976", "0.5876482", "0.5869429", "0.58245695", "0.5771946", "0.57642597", "0.5761171", "0.57498384", "0.5747255", "0.5695408", "0.568824", "0.5682465...
0.677729
1
convert "dd/MM/yyyy" > "yyyyMMdd"
private String convertDateVN(String date) { String arrDate[] = date.split("-"); date = arrDate[2] + "/" + arrDate[1] + "/" + arrDate[0]; return date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "private String ...
[ "0.6879749", "0.677729", "0.6554801", "0.6234372", "0.6176946", "0.6039741", "0.5971498", "0.59238565", "0.59167886", "0.58988976", "0.5876482", "0.5869429", "0.58245695", "0.5771946", "0.57642597", "0.5761171", "0.57498384", "0.5747255", "0.5695408", "0.568824", "0.56824654"...
0.62197804
4
/ set up the maps:
private void registerKeyboardActions() { InputMap inputMap = getInputMap(WHEN_IN_FOCUSED_WINDOW); ActionMap actionMap = getActionMap(); // F1 Integer key = new Integer(KeyEvent.VK_F1); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), key); actionMap.put(key, new KeyAction(key)); // F2 key = new Integer(KeyEvent.VK_F2); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), key); actionMap.put(key, new KeyAction(key)); // F3 key = new Integer(KeyEvent.VK_F3); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0), key); actionMap.put(key, new KeyAction(key)); // F4 key = new Integer(KeyEvent.VK_F4); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), key); actionMap.put(key, new KeyAction(key)); // F12 key = new Integer(KeyEvent.VK_F12); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F12, 0), key); actionMap.put(key, new KeyAction(key)); // ESCAPE key = new Integer(KeyEvent.VK_ESCAPE); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), key); actionMap.put(key, new KeyAction(key)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "private void initMaps()\...
[ "0.8026643", "0.74403274", "0.7302134", "0.71868837", "0.71198267", "0.71162474", "0.7114183", "0.71035904", "0.70561963", "0.70495456", "0.70390415", "0.70355576", "0.70246375", "0.70114756", "0.69734347", "0.6970287", "0.69627774", "0.6945385", "0.689244", "0.6891806", "0.6...
0.0
-1
Invoked when an action occurs.
public void actionPerformed(ActionEvent e) { if (identifier.intValue() == KeyEvent.VK_F1) { btnSearch.doClick(); } else if (identifier.intValue() == KeyEvent.VK_F2) { btnRun.doClick(); } else if (identifier.intValue() == KeyEvent.VK_F3) { btnFtp.doClick(); } else if (identifier.intValue() == KeyEvent.VK_F12 || identifier.intValue() == KeyEvent.VK_ESCAPE) { btnCancel.doClick(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract void onAction();", "public void action() {\n action.action();\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }",...
[ "0.7907701", "0.7775921", "0.7644247", "0.76119846", "0.76119846", "0.76119846", "0.751699", "0.74891174", "0.74193674", "0.7412826", "0.7402896", "0.738321", "0.7359403", "0.7359403", "0.73438245", "0.73412704", "0.73412704", "0.73412704", "0.73412704", "0.73412704", "0.7341...
0.0
-1
FTP: get files from SIm to POS and put files from POS to SIM
void sendReceive(){ String remotePath="Batch\\Export\\" + DAL.getStoreID(); String localPath="Batch\\Import\\"; String filename=""; File dir; String[] children;//list of files at local CustomFtpClient ftpClient = new CustomFtpClient(); try { //1---------- connect Ftp //System.out.println(DAL.getStoreID()+" "+DAL.getFtpServer()+" "+DAL.getFtpUser()+" "+DAL.getFtpPassword()); ftpClient.openServer(DAL.getFtpServer()); ftpClient.login(DAL.getFtpUser(), DAL.getFtpPassword()); ftpClient.cd(remotePath); ftpClient.binary(); //2---------- copy from SIM Export to POS Export StringBuffer pathList = new StringBuffer(); InputStream is = ftpClient.list(); int c; //read all file and directory at remote while ( (c = is.read()) != -1) { String s = (new Character( (char) c)).toString(); pathList.append(s); } StringTokenizer st = new StringTokenizer(pathList.toString(),"\r\n"); //get file from SIM Export while (st.hasMoreTokens()){ filename=st.nextToken().substring(55); if(filename.indexOf(".txt")!=-1){ is = ftpClient.get(filename); File file_out = new File(localPath + filename); FileOutputStream os = new FileOutputStream(file_out); byte[] bytes = new byte[1024]; while ( (c = is.read(bytes)) != -1) { os.write(bytes, 0, c); } is.close(); os.close(); //3--------- delete SIM Export ftpClient.delete(filename); } } //4--------- copy POS Import to SIM Backup remotePath="..\\..\\..\\Batch\\Backup\\Export"; localPath="Batch\\Import\\"; ftpClient.cd(remotePath); //get list of file dir = new File(localPath); children = dir.list(); if (children != null) { for (int i = 0; i < children.length; i++) { // Get filename of file or directory filename = children[i]; TelnetOutputStream os = ftpClient.put(filename); File file_in = new File(localPath + filename); is = new FileInputStream(file_in); byte[] bytes = new byte[1024]; while ( (c = is.read(bytes)) != -1) { os.write(bytes, 0, c); } is.close(); os.close(); } } //5--------- copy from POS Export to SIM Import remotePath="..\\..\\..\\Batch\\Import"; localPath="Batch\\Export\\"; ftpClient.cd(remotePath); //get list of file dir = new File(localPath); children = dir.list(); if (children != null) { for (int i = 0; i < children.length; i++) { // Get filename of file or directory filename = children[i]; TelnetOutputStream os = ftpClient.put(filename); File file_in = new File(filename); is = new FileInputStream(localPath + file_in); byte[] bytes = new byte[1024]; while ( (c = is.read(bytes)) != -1) { os.write(bytes, 0, c); } is.close(); os.close(); } } //---------- close ftp ftpClient.closeServer(); } catch (Exception ex) { ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int send2FtpServer()\n\t{\n\t\tCoFile file = null;\n\t\tCoFile to = null;\n\t\tString filename = \"\";\n\t\tString dest_filename = \"\";\n\t\tString sum_line = \"\";\n\t\tboolean loadResult = false;\n\t\tboolean renameFileResult = false;\n\t\tfor (int i = 0; i < vFiles.size(); i++)\n\t\t{\n\t\t\tfilename = ...
[ "0.7169089", "0.67940146", "0.6103314", "0.6081732", "0.5887052", "0.5782595", "0.56683946", "0.56661624", "0.56534183", "0.5650579", "0.5649938", "0.56103694", "0.5568175", "0.5561011", "0.5541318", "0.5535913", "0.5531758", "0.55302644", "0.5512602", "0.5498536", "0.5497895...
0.7333836
0
Count files in the path
public int countFile(String path){ int count=0; String filename; File dir = new File(path); String[] children = dir.list(); if (children == null) { count = 0; }else { count = children.length; } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int countFile(String path) {\n return readFile(path).length;\n }", "int getFilesCount();", "int getFilesCount();", "int getFileInfoCount();", "int getFileCount();", "int getFileNamesCount();", "int getFileNamesCount();", "int getPathsCount();", "int countFile(File file) {\n return ...
[ "0.86199844", "0.8010091", "0.8010091", "0.7708927", "0.7559877", "0.72459173", "0.72459173", "0.72103626", "0.7186584", "0.71329904", "0.70101494", "0.6936081", "0.6918192", "0.6873046", "0.68627805", "0.6839761", "0.68338525", "0.6816054", "0.681297", "0.67725015", "0.67658...
0.85127395
1
Initialize the contents of the frame.
public void OpenDB() { String JDriver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";// 数据库驱动 System.out.println("数据库驱动成功"); String connectDB = "jdbc:sqlserver://localhost:1433;DatabaseName=bookstoreDB";// 数据库连接 try { Class.forName(JDriver);// 加载数据库引擎,返回给定字符串名的类 } catch (ClassNotFoundException e) {// e.printStackTrace(); System.out.println("加载数据库引擎失败"); System.exit(0); } try { conDB = DriverManager.getConnection(connectDB, "sa", "123456");// 连接数据库对象 System.out.println("连接数据库成功"); staDB = conDB.createStatement(); } // 创建SQL命令对象 catch (SQLException e) { e.printStackTrace(); System.out.println("数据库连接错误"); System.exit(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_image, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904043", "0.780547", "0.7765812", "0.7727281", "0.7631724", "0.76220447", "0.7583647", "0.75300074", "0.7487301", "0.7457336", "0.7457336", "0.74384063", "0.7421303", "0.7403516", "0.7391635", "0.7386828", "0.73791105", "0.737036", "0.73622394", "0.7355855", "0.7345513", ...
0.0
-1
Returns the opcode stored in this cell.
public int getOpcode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOpCode() {\n return opCode;\n }", "public int getOp() {\n\t\treturn op;\n\t}", "public final SymbolNode getOperator() { return this.operator; }", "public Cell getEnumCell() {\n\n\t\tString player = getNextPlayer();\n\n\t\tCell value;\n\n\t\tif(player.equals(\"X\"))\n\t\t\tvalue = Cell...
[ "0.66553825", "0.63966566", "0.62955195", "0.6246043", "0.6226239", "0.62125695", "0.62125695", "0.62125695", "0.62125695", "0.62125695", "0.62125695", "0.6204496", "0.6204496", "0.6204496", "0.6204496", "0.6204496", "0.6204496", "0.6193623", "0.6193623", "0.61563647", "0.612...
0.69580525
0
Returns the operand A stored in this cell.
public int getOperandA();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }", "public String getArithmeticOperator() {\n return (String)getAttributeInternal(ARITHMETICOPERATOR);\n }", "public int getOperandB();", "public String operator() {\n return this.operator;\n }", "...
[ "0.69244945", "0.680378", "0.6492", "0.62987214", "0.6210817", "0.6203268", "0.6145139", "0.6042868", "0.60246015", "0.602309", "0.59872276", "0.590336", "0.5894735", "0.5891941", "0.5888677", "0.58712536", "0.58699834", "0.58681154", "0.5862678", "0.5862", "0.58583075", "0...
0.6936342
0
Returns the operand B stored in this cell.
public int getOperandB();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }", "public double getB() {\n return b;\n }", "public int getB() {\n\t\treturn b;\n\t}", "public int getB() {\r\n\t\treturn b;\r\n\t}", "public int getB() {\n return b_;\n }", "public int getB()...
[ "0.6776481", "0.66286176", "0.6625705", "0.65899175", "0.6545538", "0.6545538", "0.6545538", "0.6477526", "0.6477526", "0.6477526", "0.6475997", "0.6368305", "0.6336387", "0.6283473", "0.6258804", "0.6239939", "0.6237181", "0.620047", "0.6028333", "0.59902763", "0.5939493", ...
0.7347529
0
Changes the value of the opcode stored in this cell.
public void setOpcode(int val);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOpcode(short op);", "public void setOpcode(final int opcode) {\n this.opcode = opcode;\n }", "public abstract void setCellValue(int cellValue, int row, int col);", "public void send(Opcode opcode);", "public void setValue(Instruction val) {\n this.val = checkNotNull(val, \"v...
[ "0.6830563", "0.67310184", "0.5841465", "0.5662078", "0.56569695", "0.56354415", "0.5535973", "0.5347938", "0.53082645", "0.5305646", "0.53026325", "0.5283278", "0.5277357", "0.52514493", "0.5250778", "0.52217406", "0.5214651", "0.5193076", "0.51928574", "0.51571345", "0.5152...
0.73441297
0
Changes the value of the operand A stored in this cell.
public void setOperandA(int val);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOperandB(int val);", "void setActiveOperand(double activeOperand);", "public void setOperand(Number value) {\n setAttributeInternal(OPERAND, value);\n }", "public void SetA(byte num) {\r\n\t\tm_numA = num;\r\n\t}", "public void setValue(A value) {this.value = value; }", "public v...
[ "0.6637446", "0.6239936", "0.60729456", "0.5812056", "0.57713586", "0.56817555", "0.56783974", "0.5608256", "0.55837405", "0.5509264", "0.54878044", "0.54015034", "0.53983253", "0.5393886", "0.53665376", "0.53495336", "0.53495336", "0.52780056", "0.52535", "0.52223915", "0.51...
0.7425384
0
Changes the value of the operand B stored in this cell.
public void setOperandB(int val);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setB(double b){\n this.b=b;\n }", "public void setOperandA(int val);", "public void setB(double value) {\n this.b = value;\n }", "public void setB_(double b_) {\n\t\tthis.b_ = b_;\n\t}", "public void buttonB(View v) {\n expression += \"B\";\n\n /* Update the screen. ...
[ "0.6573773", "0.6551785", "0.6490104", "0.6302581", "0.6148443", "0.59840244", "0.59180766", "0.5838901", "0.5768307", "0.5727913", "0.5723153", "0.56785303", "0.56785303", "0.56757474", "0.558832", "0.5549943", "0.54891306", "0.5445941", "0.5412023", "0.54072803", "0.5404709...
0.77134615
0
Abre o navegador com o Driver Explorer
@Before("@Processo") public void setUp() { System.setProperty("webdriver.ie.driver", "C:/SeleniumDriver/IEDriverServer.exe"); // Instancia o Driver Explorer driver = new InternetExplorerDriver(); // Maximiza a tela driver.manage().window().maximize(); // Abre o Ambiente DEVR2 if (ambiente.equals("DEVR2")) { driver.get("http://172.20.152.47/mapfrecap//Coreon.Acesso/frmLogin.aspx"); // DEVR2 // Abre o ambiente SUS } else if (ambiente.equals("SUS")) { driver.get("http://10.206.28.128/mapfrecap/"); } // Retorna o titulo da Pagina System.out.println(driver.getTitle()); // driver.quit(); driver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectDriver();", "Driver getDriver();", "public void testDb() {\n // \"Databases\"\n String databasesLabel = Bundle.getString(\"org.netbeans.modules.db.explorer.node.Bundle\", \"RootNode_DISPLAYNAME\");\n Node databasesNode = new Node(RuntimeTabOperator.invoke().getRootNode(),...
[ "0.7139446", "0.6233698", "0.61136997", "0.6064766", "0.60239655", "0.60146433", "0.5876462", "0.58451706", "0.5835023", "0.58345604", "0.5831845", "0.5792882", "0.5787022", "0.57755053", "0.5774001", "0.57724214", "0.57611907", "0.574138", "0.57376707", "0.5737266", "0.57293...
0.5649632
30
/ Call> call = apiInterface.getPosts_Id(3); 1. show data according userId / Call> call = apiInterface.getPosts_Id(1,4); 2. data between your choice / Call> call = apiInterface.getPosts_Id(3,"id","desc"); 3. show data according in desc order using Id
private void getPosts_Id() { Call<List<Post>> call = apiInterface.getPosts_Id(new Integer[]{2, 3, 6}, null, null); //show data according which which userID call.enqueue(new Callback<List<Post>>() { @Override public void onResponse(Call<List<Post>> call, Response<List<Post>> response) { if (!response.isSuccessful()) { progressDialog.dismiss(); textView_Results.setText("Code : " + response.code()); return; } List<Post> posts = response.body(); for (Post post : posts) { progressDialog.dismiss(); String content = ""; content += "ID: " + post.getId() + "\n"; content += "UserID: " + post.getUserId() + "\n"; content += "Title: " + post.getTitle() + "\n"; content += "Text: " + post.getText() + "\n\n"; button.setVisibility(View.GONE); textView_Results.append(content); } } @Override public void onFailure(Call<List<Post>> call, Throwable t) { textView_Results.setText(t.getMessage()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface PostsApi {\n\n @GET(\"/posts\")\n Call<ArrayList<Post>> getPosts ();\n\n @GET(\"/posts\")\n Call<ArrayList<Post>> getPostsByUserId (\n @Query(\"userId\") int userId\n );\n}", "@GET(\"posts\")\n public Call<List<Post>> getPost(@Query(\"userId\") String userId);", "p...
[ "0.6962329", "0.6783124", "0.6706476", "0.60589504", "0.6056936", "0.59828454", "0.5960532", "0.5906745", "0.58892775", "0.5887048", "0.5872596", "0.5871373", "0.5864872", "0.5857785", "0.5836803", "0.5835236", "0.5793642", "0.57615274", "0.57398635", "0.5726113", "0.5709438"...
0.7601662
0
////////////////////////// TODO: Improve the convergence detection functionality
public HITS(Map<String, Page> pTable, int rank_hist_depth, double delta_tolerance) { this.pTable = pTable; this.RANK_HISTORY_DEPTH = rank_hist_depth; this.DELTA_TOLERANCE = delta_tolerance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Siz...
[ "0.62987494", "0.6199881", "0.6022713", "0.601728", "0.5973798", "0.59578", "0.59437555", "0.5909664", "0.5887143", "0.5812378", "0.5808319", "0.5758386", "0.5755376", "0.5732902", "0.56962025", "0.56952703", "0.56943613", "0.56860733", "0.5683509", "0.5679405", "0.5666977", ...
0.0
-1
function HITS(query) returns pages with hub and authority number
public List<Page> hits(String query) { // pages <- EXPAND-PAGES(RELEVANT-PAGES(query)) List<Page> pages = expandPages(relevantPages(query)); // for each p in pages for (Page p : pages) { // p.AUTHORITY <- 1 p.authority = 1; // p.HUB <- 1 p.hub = 1; } // repeat until convergence do while (!convergence(pages)) { // for each p in pages do for (Page p : pages) { // p.AUTHORITY <- &Sigma<sub>i</sub> INLINK<sub>i</sub>(p).HUB p.authority = SumInlinkHubScore(p); // p.HUB <- &Sigma;<sub>i</sub> OUTLINK<sub>i</sub>(p).AUTHORITY p.hub = SumOutlinkAuthorityScore(p); } // NORMALIZE(pages) normalize(pages); } return pages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void computeHubAuth (int..._iterNum) throws IOException\n\t{\n\t\tint iterNum;\n\t\tif(_iterNum.length==0) iterNum=10;\n\t\telse iterNum = _iterNum[0];\n\t\t\n\t\t// variable declaration\n\t\tHashtable<String, Object> hubPrev = new Hashtable<String, Object>();\n\t\tVector<String> oneVector;\n\t\tdouble oneW...
[ "0.5573498", "0.5542537", "0.5538547", "0.5431011", "0.54023564", "0.53935224", "0.5393143", "0.5337875", "0.533725", "0.5318663", "0.5237613", "0.5220816", "0.51363444", "0.50998986", "0.5092558", "0.50081116", "0.49924716", "0.49921727", "0.49706998", "0.49705648", "0.49683...
0.6986786
0
Fetches and returns all pages that match the query
public List<Page> relevantPages(String query) { List<Page> relevantPages = new ArrayList<>(); for (Page p : pTable.values()) { if (matches(query, p.getContent())) { relevantPages.add(p); } } return relevantPages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Page<Preferences> search(String query, Pageable pageable);", "@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Bui...
[ "0.66838837", "0.6653635", "0.66460526", "0.64870507", "0.6441454", "0.6337714", "0.6322865", "0.6236006", "0.62088776", "0.6187014", "0.6149971", "0.61401844", "0.60899174", "0.60761553", "0.6032171", "0.6029431", "0.6020474", "0.6004397", "0.6004326", "0.6000512", "0.599666...
0.64947647
3
Simple check if query string is a substring of a block of text.
public boolean matches(String query, String text) { return text.contains(query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isSubstring(String substring, String word) {\r\n//\t\tboolean isSub = true;\r\n\t\treturn word.contains(substring);\r\n//\t\treturn isSub;\r\n\t}", "boolean isSubStr(String s, String t) {\n\t\tint k = 0;\n\t\tfor (int i = 0; i < s.length(); ++i) {\n\t\t\tboolean found = false;\n\t\t\tfor (; k <...
[ "0.6396567", "0.5776347", "0.57468325", "0.57415885", "0.5652685", "0.5601024", "0.5599444", "0.55925167", "0.5493928", "0.54913384", "0.5480244", "0.5469123", "0.54642725", "0.5449604", "0.5424833", "0.542447", "0.54125947", "0.5404589", "0.5402229", "0.5396171", "0.5359116"...
0.51392597
29
Adds pages that are linked to or is linked from one of the pages passed as argument.
public List<Page> expandPages(List<Page> pages) { List<Page> expandedPages = new ArrayList<>(); Set<String> inAndOutLinks = new HashSet<>(); // Go through all pages an build a list of String links for (Page currP : pages) { if (!expandedPages.contains(currP)) expandedPages.add(currP); List<String> currInlinks = currP.getInlinks(); for (String currInlink : currInlinks) inAndOutLinks.add(currInlink); List<String> currOutlinks = currP.getOutlinks(); for (String currOutlink : currOutlinks) inAndOutLinks.add(currOutlink); } // go through String links and add their respective pages to our return // list for (String addr : inAndOutLinks) { Page p = pTable.get(addr); if (p != null && !expandedPages.contains(p)) { // a valid link may // not have an // associated page // in our table expandedPages.add(p); } } return expandedPages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void addCustomPages();", "public void resolvePageReferences()\n{\n int count = _pages.size();\n while(count-- > 0)\n getPage(count).resolvePageReferences(this);\n}", "private void goThroughLinks() throws IOException {\n for (URL link :links) {\n pagesVisited++;\n ...
[ "0.60866046", "0.59289867", "0.59182996", "0.5903291", "0.5753341", "0.56251395", "0.5519568", "0.5479177", "0.54567564", "0.54407084", "0.5423079", "0.54064274", "0.53893185", "0.5371996", "0.5357443", "0.53535336", "0.5350244", "0.5348907", "0.53355676", "0.5316902", "0.529...
0.56842756
5
end expandPages(); Divides each page's score by the sum of the squares of all pages' scores (separately for both the authority and hubs scores
public List<Page> normalize(List<Page> pages) { double hubTotal = 0; double authTotal = 0; for (Page p : pages) { // Sum Hub scores over all pages hubTotal += Math.pow(p.hub, 2); // Sum Authority scores over all pages authTotal += Math.pow(p.authority, 2); } // divide all hub and authority scores for all pages for (Page p : pages) { if (hubTotal > 0) { p.hub /= hubTotal; } else { p.hub = 0; } if (authTotal > 0) { p.authority /= authTotal; } else { p.authority = 0; } } return pages; // with normalised scores now }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reduce ()\r\n {\r\n if (score.getPages().isEmpty()) {\r\n return;\r\n }\r\n\r\n /* Connect parts across the pages */\r\n connection = PartConnection.connectScorePages(pages);\r\n\r\n // Force the ids of all ScorePart's\r\n numberResults();\r\n\r\n...
[ "0.66066957", "0.63676685", "0.5997034", "0.58782643", "0.5816413", "0.5546358", "0.549961", "0.54723465", "0.54568356", "0.54247665", "0.53816366", "0.53666496", "0.5278125", "0.52656186", "0.5253078", "0.51587653", "0.5137894", "0.5127928", "0.512453", "0.51098424", "0.5051...
0.66001767
1
end normalize() Calculate the Authority score of a page by summing the Hub scores of that page's inlinks.
public double SumInlinkHubScore(Page page) { List<String> inLinks = page.getInlinks(); double hubScore = 0; for (String inLink1 : inLinks) { Page inLink = pTable.get(inLink1); if (inLink != null) hubScore += inLink.hub; // else: page is linked to by a Page not in our table } return hubScore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double SumOutlinkAuthorityScore(Page page) {\n\t\tList<String> outLinks = page.getOutlinks();\n\t\tdouble authScore = 0;\n\t\tfor (String outLink1 : outLinks) {\n\t\t\tPage outLink = pTable.get(outLink1);\n\t\t\tif (outLink != null)\n\t\t\t\tauthScore += outLink.authority;\n\t\t}\n\t\treturn authScore;\n\t}...
[ "0.7328276", "0.68878555", "0.5832835", "0.55169165", "0.5511383", "0.5473398", "0.5268692", "0.5118998", "0.508528", "0.5053972", "0.5051376", "0.4999159", "0.4971344", "0.49678203", "0.49618837", "0.49579164", "0.49574202", "0.4950708", "0.49315587", "0.49038327", "0.490179...
0.6654594
2
end SumInlinkHubScore() Calculate the Hub score of a page by summing the Authority scores of that page's outlinks.
public double SumOutlinkAuthorityScore(Page page) { List<String> outLinks = page.getOutlinks(); double authScore = 0; for (String outLink1 : outLinks) { Page outLink = pTable.get(outLink1); if (outLink != null) authScore += outLink.authority; } return authScore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double SumInlinkHubScore(Page page) {\n\t\tList<String> inLinks = page.getInlinks();\n\t\tdouble hubScore = 0;\n\t\tfor (String inLink1 : inLinks) {\n\t\t\tPage inLink = pTable.get(inLink1);\n\t\t\tif (inLink != null)\n\t\t\t\thubScore += inLink.hub;\n\t\t\t// else: page is linked to by a Page not in our ta...
[ "0.78764486", "0.5537391", "0.5258429", "0.49467254", "0.48087496", "0.4700815", "0.46703494", "0.46089837", "0.44824108", "0.43880585", "0.4351818", "0.4350041", "0.4341886", "0.43400538", "0.42933246", "0.4293078", "0.42782247", "0.42239922", "0.42114788", "0.42013538", "0....
0.7250174
1