query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Adds an element to the children array being stored at this node. RunTime: only 3 primitive operations occur, index, assignment and object creation therefore this method runs in constant time, giving it a bigO value of: O(1);
public void addElement(int index, String letter) { this.children[index] = new TrieNode(letter); //3 }
[ "public void addChild(Node node, int i);", "public void addchildtoArray(node n){\n \t children.add(n);\n \t sethasChild(true);\n }", "public void addChild(NodeBase child)\n {\n if (child != null)\n {\n CheapArray.add(child, children);\n child.setParent(this);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Enable perspective projection rendering; otherwise use orthographic projection.
public void setSpaceSize() { String tmpStr; int spaceSize = 1; tmpStr = spaceText.getText(); if (testParameter(tmpStr, 1, 8)) { spaceSize = Integer.valueOf(tmpStr).intValue(); } else { spaceText.requestFocus(); spaceText.selectAll()...
[ "public void perspective(){\r\n\t\tperspective(_myCamera.fov(), _myCamera.aspect(), _myCamera.near(), _myCamera.far());\r\n\t}", "public synchronized boolean isPerspectiveEnabled() {\r\n\t\treturn perspectiveEnabled;\r\n\t}", "@Override\n public void reset() {\n proj = new Matrix4f().perspective((float) Ma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads routes.txt files from both gtfsDirectoryName and supplementDir and combines them together. End result is that gtfsRoutesMap is created and filled in.
private void processGtfsRouteData() { // For logging how long things take IntervalTimer timer = new IntervalTimer(); // Let user know what is going on logger.info("Processing routes.txt data..."); // Read in standard route data GtfsRoutesReader routesReader = new GtfsRoutesReader(gtfsDirectoryNa...
[ "private void addRoutesInfosToStops(Map<String, List<String>> stops) {\n\t\tMap<String, Map<String, String>> routes = new HashMap<String, Map<String, String>>();\n\t\tMap<String, Map<String, String>> trips = new HashMap<String, Map<String, String>>();\n\t\tMap<String, Map<String, String>> stopsForThisLine = new Has...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: inflate a fragment view
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = super.onCreateView(inflater, container, savedInstanceState); unbinder = ButterKnife.bind(this, rootView); return rootView; }
[ "@Override\n\tprotected View initView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.fragment_fate, container, false);\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert the method's description here. Creation date: (8/16/2000 4:17:18 PM)
void setupRootPane() { _rootPane.getContentPane().setLayout(new BorderLayout()); _rootPane.getContentPane().add(new ProjectToolBar(), BorderLayout.NORTH); _rootPane.setJMenuBar(new ProjectMenuBar()); ComponentUtilities.setFrameTitle(_rootPane, Text.getProgramName()); }
[ "public void mo5201a() {\n }", "@Override\n }", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "public void mo9609a() {\n }", "protected void method_2117() {\n }", "public void mo15109c() {\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void windowDeactivated(WindowEvent arg0) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Informs the underlying adapter that the item at the given position has changed
public void notifyItemChanged(int position) { // Simply get the elements list position and notify the change to the adapter int listPosition = adapter.getListPositionFromItemIndex(position); adapter.notifyItemChanged(listPosition); }
[ "void onCurrentItemChanged(T viewHolder, int adapterPosition);", "public void notifyExerciseChanged(int position) {\n notifyItemChanged(HEADER_SIZE + position);\n }", "@Override\n protected void onHandleWrappedAdapterRangeMoved(int fromPosition, int toPosition, int itemCount) {\n not...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called by spring after bean has been created and populated.
@PostConstruct public final void init() { this.reports = new File(this.working, "reports"); }
[ "@PostConstruct\n\tpublic void initBean() {\n\t}", "@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\r\n\t\tSystem.out.println(\"intialising property for beans\");\r\n\t\t\r\n\t}", "public void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"Lifecycle Step 7..Initializing...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method computes the log of the gamma function.
public static double logGamma(double x){ double coef[] = {76.18009173, -86.50532033, 24.01409822, -1.231739516, 0.00120858003, -0.00000536382}; double step = 2.50662827465, fpf = 5.5, t, tmp, ser, logGamma; t = x - 1; tmp = t + fpf; tmp = (t + 0.5) * Math.log(tmp) - tmp; ser = 1; for (int i = 1; i <= 6; i...
[ "public static double logGamma(double x) {\n double p;\n double q;\n double z;\n\n double[] aCoefficient = {\n 8.11614167470508450300E-4,\n -5.95061904284301438324E-4,\n 7.93650340457716943945E-4,\n -2.77777777730099687205E-3,\n 8.33333333333331927722E-2\n };\n double[] bC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected / renamed from: a
public void mo16026a(long j) { synchronized (this.f11596d) { try { this.f11689g.bindLong(1, j); this.f11689g.execute(); this.f11689g.clearBindings(); } catch (SQLException e) { C4783y0.m16636b("%s - Unable to bind prepared s...
[ "protected void a() {}", "protected void a()\n\t{\n\t\tsuper.a();\n\t}", "protected void method_5557() {}", "protected abstract void mo3493a();", "@Override\n\tpublic void aamir() {\n\n\t}", "private void a() {\n }", "@Override\r\n\tpublic void a2() {\n\t\t\r\n\t}", "@Override\r\n public void pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
waits for one or more elements matching the locator to be present and then fetches/returns them
protected List<WebElement> getElements( final By loc ) { ExpectedCondition<List<WebElement>> elementsLoaded = webDriver -> { assert webDriver != null; List<WebElement> loadedElems = webDriver.findElements(loc); return loadedElems; }; List<WebElement> elems = waitForCond(elementsLoaded); return elems; }
[ "public static List<WebElement> waitAll(By locator) {\n return driverWait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(locator));\n\n\n }", "public List<WebElement> findElements(String xpath){\n\t List<WebElement> el = new ArrayList<WebElement>();\n\ttry { \n\n\t driver.manage().timeo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor of the class...
public Flea(String aName) { name = aName; }
[ "public Tanh() {\n\t}", "public Cachorro() {\r\n }", "public Chord()\n\t{\n\t}", "private PrivateConstructor() { \n \t\n }", "public Citas() {\n }", "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "public A231503() {\n this(3, 2);\n }", "public MyClass(){\n\t\tsuper();\n\t}", "public CEL_Ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated string value = 3;
public Builder setValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; }
[ "public Builder addRepeated(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRepeatedIsMutable();\n repeated_.add(value);\n onChanged();\n return this;\n }", "@Validate\r\n public static String repeat(@NotNull final...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called when the register button is clicked. It checks to make sure the fields meet the requirements. Passwords must be at least 6 characters long, contain a letter and number. A valid email address must also be provided.
public void register() { EditText username = getActivity().findViewById(R.id.regUserET); EditText password1 = getActivity().findViewById(R.id.regPW1); EditText password2 = getActivity().findViewById(R.id.regPW2); EditText emailbox = getActivity().findViewById(R.id.regEmail); ...
[ "public void registerNow(){\n String pwRegex = \"^.*(?=.{8,})(?=..*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=]).*$\";\n //email must contain:\n String emailRegex = \"^[_A-Za-z0-9-]+(\\\\\\\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\\\\\\\.[A-Za-z0-9-]+)*(\\\\\\\\.[A-Za-z]{2,})$\";\n\n\n //Isto n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accept or decline a change request
@RequestMapping(value = { "/processRequest" }, method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public RedirectView processRequest(@RequestParam MultiValueMap<String, String> paramMap) { Optional<ChangeRequest> temp = changeRequestRepository.findById(Long.parseLong(paramMap.g...
[ "@Override\n\t\t\tvoid applyChange(ChangeRequest cr) {\n\t\t\t}", "public void setChangeRequestType(String ChangeRequestType);", "@Override\n public void changeFailed(ChangeRequest change, Exception exception) {\n \n }", "public void receiveResultchange(\n com.lewei.wsdl.warehousing.DeliveryLineSe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Se crea el objeto JLabel
private JLabel Girasol(int i,int j,int x, int y) { imprimir[i][j] = new JLabel(new ImageIcon("src/imagenes/girasol.png")); // Le damos una ubicación dentro del Frame imprimir[i][j].setBounds (x,y,50,50); return imprimir[i][j]; }
[ "public JLabel getLabel(){\n return new JLabel(); \n }", "private void initLabel(){\n label = new JLabel(\"X: \" + 0 + \" Y: \" + 0);\n label.setBounds(10, 600, 100, 100);\n label.setBackground(Color.red);\n label.setVisible(true);\n }", "private void crearLabel() {\n\t\tlbl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a new MailLogger using the specified Logger name and debug prefix (e.g., "DEBUG"). Get the debug flag and PrintStream from the Session.
@Deprecated public MailLogger(String name, String prefix, Session session) { this(name, prefix, session.getDebug(), session.getDebugOut()); }
[ "Logger debug(String message);", "@PublicAtsApi\n public void setMailSessionDebugMode(\n boolean debugMode ) {\n\n setTempProperty(MAIL_SESSION_DEBUG_MODE, Boolean.toString(debugMode));\n }", "public DebugLogger(boolean print) {\n this.print = print;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Factory method that creates an event
public static Message createEvent(String name, Object payload) { return new Message(name, payload, "event", Type.EVENT); }
[ "EventType generateEvent();", "@FunctionalInterface\npublic interface EventFactory {\n\n /**\n * Builds an event of a certain type.\n *\n * @param eventType the type of event.\n * @return an event of the given type without other properties.\n */\n Event build(String eventType);\n\n}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: L
public final void mo15522L(String str, String str2, int i) { AppMethodBeat.m2504i(7270); Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.tencent.mm.plugin.webview.stub.WebViewStub...
[ "private static String IIllIIIIl(double llIIIlllllIlIll, long lIIIIlllllIlIll) {\n }", "public Lv (){\n \tsuper();\n }", "public int getL() {\r\n\t\treturn L;\r\n\t}", "private static String lIIIIllIlll(long IlIlIIlIIllll, boolean lIIIIIlIIllll) {\n }", "public String getLname(){return Lname;}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Hello04 h=new Hello04(); h.m1();
public static void main(String[] args) { Inter1 i=null; i=new Hello04(); i.m1(); System.out.println(i.a); int c; Hello04.a; }
[ "void m1() { \n\t\t\t\n\t\t\tSystem.out.println(\"m1 method\");\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n A a=new A();\r\n a.m1();\r\n\t\t\r\n\t}", "public static void m1() {\t\r\n\t\tSystem.out.println(\"m1\");\r\n\t}", "void M1 () {System.out.println(\"M1 of class X\");}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleDataOperationParameter" $ANTLR start "ruleDataOperationParameter" InternalDataDsl.g:337:1: ruleDataOperationParameter : ( ( rule__DataOperationParameter__Group__0 ) ) ;
public final void ruleDataOperationParameter() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDataDsl.g:341:2: ( ( ( rule__DataOperationParameter__Group__0 ) ) ) // InternalDataDsl.g:342:2: ( ( rule__DataOperationParameter__Group__0 )...
[ "public final void rule__DataOperationParameter__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTechnologyDsl.g:10186:1: ( rule__DataOperationParameter__Group__0__Impl rule__DataOperationParameter__Group__1 )\n /...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds the full ITKMessage including any wrappers
public void buildFullMessage(String templateName) throws ITKMessagingException;
[ "public UBXMessage build() {\n\t\t\n\t\tif(payloadBuilder != null) {\n\t\t\t//Construct with a payload.\n\t\tthis.payload = payloadBuilder.getBody();\n\t\tconstruct(payload);\n\t\t\n\t\t}else {\n\t\t//Construct without a payload.\n\t\tconstruct();\n\t\t}\n\t\t//In case the Builder object gets re-used.\n\t\tpayloadB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Get all clubs and create checkbox form
public String clubList(){ String query = "SELECT name FROM clubs"; ResultSet rset = db.retrieve(con, query); return logic.createFormCheckBox(rset); }
[ "public final void setupDynamicCheckBoxes(){\n TestDataBaseConnection test = new TestDataBaseConnection();\n //HyperLinkLabel data = new HyperLinkLabel();\n test.testConnection();\n int num = test.getSymptoms().size();\n setNumRows(num);\n JCheckBox[] checkboxes = new JChec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define a loop that will iterate for a given duration. The condition is evaluated at the end of the loop.
@NonNull default On<T> during(long duration, boolean exitASAP) { return during(Duration.ofSeconds(duration), exitASAP); }
[ "public void loop() {\r\n\r\n }", "RepeatLoop createRepeatLoop();", "void loop(int count);", "public void run()\n{\n while(true) step();\n}", "public boolean getLoop();", "public boolean continueLoop();", "private <T> void ensureForWhile(int timeout, T o, Predicate<T> predicate) throws Exception {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates the Manhattan Distance between this position and another
public double getDistanceFromPosition(Position position) { return (Math.abs(this.row - position.getRow()) + Math.abs(this.column - position.getColumn())); }
[ "private int getManhattanDistance(int x1, int x2, int y1, int y2){\n\t\treturn Math.abs(x1-x2) + Math.abs(y1-y2);\n\t}", "private static int manhattanDist(Tile t1, Tile t2) {\n\t\tint dx = t2.col - t1.col, dy = t2.row - t1.row;\r\n\t\treturn Math.abs(dx) + Math.abs(dy);\r\n\t}", "int getManhattanDistance(Locati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public MemberDto idChk(String id) { return dao.idChk(id); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the tags for whatever type that's given in, it supports courses, and quizes so far. For example: if course is the type it will return a list of tags related to that suspecifc type
public ArrayList<String> getTag(TagModel tm){ return getTag(tm.getTaggableId(), tm.getTaggableType()); }
[ "public Iterable<DTag> getTagsForType(String type) {\n LOG.debug(\"Get all tags for type:{}\", type);\n\n // Find tags\n return tagDao.queryByType(type);\n }", "public abstract TagTypes getTagTypes();", "Result<? extends HibTag> getTags();", "public static Set<String> getPosTagCollecti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if active manager is null,means that the manager is initializing
private boolean isCoordinatorLoadingInProgress(String groupId) { return this.serverStatusMonitor.getActiveManagerMetaData() == null; }
[ "public boolean isManagerOpened(){\n return (manager!=null && manager.isOpen());//manager start work if manager not null and manager open\n }", "public void initializeManager() {\n if (mSipManager == null) {\n mSipManager = SipManager.newInstance(this);\n }\n\n initialize...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Devuelve el valor del identificador.
public final Long getId() { return (this.id); }
[ "public int getIdentificador() {\r\n\t\treturn identificador;\r\n\t}", "public String getIdentificador() {\n\t\treturn this.identificador;\n\t}", "@Override\r\n\tpublic int get_identificador() {\n\t\treturn this._usr_identificador;\r\n\t}", "public int getIdentificativo() {\r\n\t\treturn identificativo;\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a parameter value. Parameter is added to the end. Existing parameter with the same name are not changed.
public RequestFormParams add(Part part) { assertArgNotNull("part", part); add(new RequestFormParam(req, part).parser(parser)); return this; }
[ "@Override\n\t\tpublic void addParam(String name, String value) {\n\t\t\tmParams.addParam(name, value);\n\t\t}", "public void addParameter(String name, Object value) {\n parameters.put(name, value);\n }", "public void addParameter(String key, String value);", "Components addParameter(String key, Par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the desired String
public void append(String str) { if (!checkCapacity(1)) { System.out.println("Not enough space"); } else { builder.add(str); } }
[ "private void add(String string) {\n\t\t\n\t}", "public ScrString add(ScrString addend){\n return addend.addToString(this);\n }", "public void add(String toAdd);", "private void append(String string) {\n\n\t}", "public void addText(String value) {\n this.value += value;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Checks for whatever follows SELECT SelectList ::= | COUNT() | SelectItem (, SelectItem) 18/10/01 PY. Gibello Removed "COUNT()" from here COUNT is an aggregate, like AVG...
final public Vector SelectList() throws ParseException { Vector v = new Vector(8); ZSelectItem elem; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 123: jj_consume_token(123); v.addElement(new ZSelectItem("*")); {if (true) return v;} break; case K_AVG: case K_COUNT: case K_DATE...
[ "void onSelectChange(int selectCount);", "public int selectListCount(SqlSessionTemplate sqlSession) {\n\t\treturn sqlSession.selectOne(\"tasteMapper.selectListCount\");\n\t}", "protected int delegateSelectCount(LdCollectionCB cb) {\r\n return invoke(createSelectCountCBCommand(cb));\r\n }", "public i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setup a businessrule to test Default rule
static BusinessRule RuleDefault() { BusinessRule businessRule = new BusinessRule(); businessRule.addChild(new Default()) .addChild(new Action() .addChild(new ActionReference("order")) .addChild(new Value().addValue("40"))); return b...
[ "@Ignore\r\n\t@Test\r\n\tpublic void addRuleTest() throws CoreServiceException {\r\n\t\t// TODO\r\n\t}", "MandatoryRule createMandatoryRule();", "@Test\n public void validateDefaultWorkflowIsSetWithoutDBData() throws Exception {\n when(catalogDbClient.findWorkflowByOperationName(HEALTH_CHECK_OPERATION...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetches the billing address given the selected input.
public Address getBillingAddress(char[] cardNumber) throws DBHelperException { Statement statement = null; ResultSet rs = null; Address address = null; try { // Check for Open Connection if (connection.isClosed()) { throw new DBHelperException("The connection has been closed."); } // ...
[ "java.lang.String getBillingAddress();", "void prefillAddress() {\n AddCreditCardDialog dialog = (AddCreditCardDialog) view;\n\n if (dialog.getChkUseAccountAddr().getSelection()) {\n String addressLine1 = account.getString(ACCOUNT_ADDRESS1, null);\n if (addressLine1 == null || ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fin EXPERIENCIA LABORAL Seccion RECORRIDO LABORAL
private void obtenerAntiguedad() { String sql = "select sum(e.fecha_fin - e.fecha_inicio) as dias " + "from general.empleado_puesto e " + "where e.id_persona = " + idPersona + "and e.incide_antiguedad is true " + "and e.fecha_inicio is not null and e.fecha_fin is not null"; Object cantdias = (Obje...
[ "public String hlCerrarSesion_action() {\n getSessionBean1().setDatosPersonalesSesion(null);\n return \"subastasPublicas\";\n }", "public String imghlCerrarSesion_action() {\n getSessionBean1().setDatosPersonalesSesion(null);\n return \"subastasPublicas\";\n }", "public void au...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtiene los impuestos retenidos de la nomina
@Override public ArrayList<LinkedHashMap<String, String>> getFacNomina_ImpuestosRetenidosXml(Integer id, Integer id_empleado) { String sql_query = "SELECT gral_isr.titulo AS impuesto, fac_nomina_det.importe_retencion FROM fac_nomina_det JOIN gral_isr ON gral_isr.id=fac_nomina_det.gral_isr_id WHERE fac_nomin...
[ "public int getNombrePionsNoirs();", "private void getIU_RepitaRetar() {\n\r\n\t}", "static int obtenerNuevoIndicePelicula(){\r\n\r\n\t\treturn nuevoIndicePelicula;\r\n\r\n\t}", "public int getNombrePionsBlancs();", "int getArenasCount();", "public int getPontosParaNS();", "int getNominee();", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the parameters from this PickRay.
public void get(Point3d origin, Vector3d direction) { origin.x = this.origin.x; origin.y = this.origin.y; origin.z = this.origin.z; direction.x = this.direction.x; direction.y = this.direction.y; direction.z = this.direction.z; }
[ "protected Object[] getParameters()\n\t{\n\t\treturn parameters;\n\t}", "SM9Parameter getParams();", "public Vector getParameters() {\n\t\treturn iParameters;\n\t}", "LifeStageParametersInterface getParameters();", "@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n public LoadParameters getPara...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CTSCARDS_MGT.REPLACED_INIT
public void setREPLACED_INIT(String REPLACED_INIT) { this.REPLACED_INIT = REPLACED_INIT == null ? null : REPLACED_INIT.trim(); }
[ "@Override\r\n\tpublic String reinitialized() {\n\t\tint transformId = transformRules.get(0).getTransformId();\r\n\t\tthis.transformRules = dao.gets(transformId);\r\n\t\tthis.transform.reinitialized();\r\n\t\treturn BusRspUtil.asResponse(\r\n\t\t\t\tCrowbarConstant.code.CREINITIALIZATIONPSUCCEED,\r\n\t\t\t\tCrowbar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/System.out.println("escribe nombre"); String nombre = Wcore.leer(); System.out.println("escribe rol"); String rol = Wcore.leer();
public static void main (String [] args ) { Player p1 = new Player ("Wazazky","tanque",100,Wcore.rng(10)*10,7,Wcore.rng(10),Wcore.rng(10),2,5,Wcore.rng(10)); Player p2 = new Player ("Skeleton","rage",50,Wcore.rng(10)*10,5,Wcore.rng(10),Wcore.rng(10),2,5,Wcore.rng(10)); p1.mostrarPlayer(); p2.mostrarPlayer(...
[ "public void saluda() {\n System.out.println(\"Hola! Mi nombre es \" + this.name);\n }", "public String obtenerRaza()\r\n{\r\n//Sentencia obligatoria de retorno\r\nretun raza;\r\n}", "public void lanzarBolaDeFuego();", "void crier() {\n\t System.out.println(\"Je miaule sur les toits !\"); \r\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an entry to this file.
public void addEntry(BibtexAbstractEntry entry) { this.entries.add(entry); }
[ "public void addEntry(IEntry entry);", "public void add(FileCacheEntry entry) {\n if (cache.add(entry)) {\n p(\"Added entry for \" + entry.getAbsoluteFilePath() + \" (Requested:\" + entry.isRequested() + \", Transferred:\" + entry.isTransferred() + \")\");\n }\n }", "private void add...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test player 2 wins
@Test public void TestPlayer2Win1() { int[][] testBoard = {{2,3,2,3},{3,2,3,2},{6,3,24,12},{48,96,192,48}}; game.getGameState().setBoardState(testBoard); game.getGameState().setPlayerToMove(1); int winStatus = game.determineWinner(); assertEquals(2, winStatus); }
[ "public void wins(){\n\t\t\t\n\t\tSystem.out.println(\"Game Over\");\n\t\tif (numTurns%2==0){\n\t\t\tSystem.out.println(player1.getGN() +\" \"+ player1.getFN()\n\t\t\t\t+ \" wins!\");\n\t\t\tsetNumWin(player1);\t//\tupdate number of winnings\n\t\t}else {\n\t\t\tSystem.out.println(player2.getGN() +\" \"+ player2.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
[ "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}", "protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse respo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Move to the terminal of the day after the day added. e.g. moveToDayJustAdded(1): 2011/11/27 12:34:56.789 to 2011/11/28 23:59:59.999
public HandyDate moveToDayTerminalAdded(int days) { DfTypeUtil.moveToCalendarDayTerminalAdded(_cal, days); return this; }
[ "public void AddToday()\n\t{\n\t\tdate[date.length - 1] = LocalDate.now();\n\t\tstreakLength++;\n\t}", "@SuppressLint(\"SimpleDateFormat\")\n\tString addDay(int add) throws java.text.ParseException {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate dateparsed = sdf.parse(currentDate);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Class Compressor Component which drives refrigerant compression (and thus cooling processes) within a device or system.
public interface ICompressor extends IComponent{ public IRI iri(); }
[ "protected abstract ByteCompression getCompressor();", "public CAN_Compressor() {\n \n compressor = new Compressor(RobotMap.PCM_COMPRESSOR_PORT);\n compressor.start();\n }", "@Override\n public void run(final TaskContext taskContext) throws Exception {\n final Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 168 /Coverage entropy=0.6931471805599453
@Test(timeout = 4000) public void test168() throws Throwable { HashMap<Object, String> hashMap0 = new HashMap<Object, String>(); JSONObject jSONObject0 = new JSONObject((Map) hashMap0); boolean boolean0 = jSONObject0.has("true"); assertFalse(boolean0); }
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ACCESSORS Returns name of country
String getName() { return name; }
[ "public String getCountry(){\n return user.getCountry();\n }", "public String getCountry()\r\n {\r\n return getSemanticObject().getProperty(swb_usrCountry);\r\n }", "public String getCountryName(){\n return countryName;\n }", "public String countryName() {\r\n\t\treturn this.c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ArrayLsit Sent back looks ugly
public void ViewUnassigned() { try { File bugRec = new File("BugRecord.txt"); BufferedReader reader = new BufferedReader(new FileReader(bugRec)); List<String> lines = new ArrayList<String>(); String line; while((line=reader.readLine()) != null) { if(line.contains("open ----------")) { l...
[ "private String [] fromArrayListToArray(){\n ArrayList seznam= this.gui.slovnik.getSeznamSlovniku();\n String [] seznamX= new String[seznam.size()];\n for (int i = 0; i < seznam.size(); i++) {\n seznamX[i]=String.valueOf(seznam.get(i));\n }\n return seznamX;\n}", "public String toLabelArraySt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shuts this scheduler down
void shutdown();
[ "public static void schedulerDestroy() {\n\t\tCommandScheduler.getInstance().disable();\n\t}", "@Override\r\n\t\t\tpublic void shutdown() throws SchedulerException {\n\t\t\t\t\r\n\t\t\t}", "public static void shutdown() throws SundialSchedulerException {\r\n\r\n logger.debug(\"shutdown() called.\");\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called from history activity
public static JSONObject[] loadFromFile(HistoryView histAct) { String str = ""; JSONObject[] busArr; File file = new File(histAct.getFilesDir(), "history.json");//write to file in internal storage Log.i("LoadBusinessModel", "file is in: " + file.getAbsolutePath()); ...
[ "public void fromHistoryActivity(){\n String prevActivityName = getIntent().getStringExtra(\"activity\");\n if( prevActivityName != null && prevActivityName.equals(\"HistoryActivity\")){\n Messenger.toast(\"Generating History Route\", MapMainActivity.this);\n int routeId = getInt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private String getState() { String[] state1 = state[rand.nextInt(50)]; // System.out.println(state1[0]+"====>" + state1[1]); getPolicyNo(state1[1]); return state1[0]; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes a 16bit integer to the given byte array at the given position.
private static void write16(final byte[] data, final int pos, final int val) { data[pos + 0] = (byte) (val >>> 8); data[pos + 1] = (byte) val; }
[ "void writeI16(int value) throws NoMoreWriteSpaceException;", "public static void writeShort(byte[] data, int offset, int v)\r\n {\r\n data[offset] = (byte) (0xff & v);\r\n data[offset+1] = (byte) (0xff & (v >>> 8));\r\n }", "public static int readInt16(byte[] array, int position) {\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
postCodeDL83NX: with default state. .text : .id : .type : hidden .value : DL8 3NX .title : .class : Html.INPUT.hidden .name : postCode .classIndex : 1
protected GuiTestObject html_postCodeDL83NX() { return new GuiTestObject( getMappedTestObject("html_postCodeDL83NX")); }
[ "@Override\n\tpublic String[] getHiddenFieldCode() {\n\t\treturn new String[] { \"Id_bed\",\"Id_ent\", \"Id_dep_phy\" };\n\t}", "@Override\n\tpublic void initValue() {\n\t\ttxtTitle.setText(\"PK\");\n\t\ttxtRight.setVisibility(View.GONE);\n\t}", "private String getHiddenNotesControlId(String strID_p)\r\n {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__QualifiedNameInStaticImport__Group__0__Impl" $ANTLR start "rule__QualifiedNameInStaticImport__Group__1" InternalFormat.g:24083:1: rule__QualifiedNameInStaticImport__Group__1 : rule__QualifiedNameInStaticImport__Group__1__Impl ;
public final void rule__QualifiedNameInStaticImport__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFormat.g:24087:1: ( rule__QualifiedNameInStaticImport__Group__1__Impl ) // InternalFormat.g:24088:2: rule__Qualifi...
[ "public final void rule__QualifiedNameInStaticImport__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:14774:1: ( rule__QualifiedNameInStaticImport__Group__1__Impl )\n // InternalScripting.g:14775:2: ru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of dividerNameEndTime method, of class ReadActivityFile.
@Test public void testDividerNameEndTime() { }
[ "public static String parseReadDeadlineName(String taskNameType, int dividerPosition2) {\n int dividerBy = taskNameType.indexOf(\"/\");\n String taskName = taskNameType.substring(dividerPosition2+1, dividerBy - 1);\n\n return taskName;\n }", "@Override\n\tint getEndTime();", "java.lang.S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We cast here to ensure the multiplications won't overflow
@Override public int compare(Size lhs, Size rhs) { return Long.signum((long) lhs.getWidth() * lhs.getHeight() - (long) rhs.getWidth() * rhs.getHeight()); }
[ "@Override\n public SmplInt mul(SmplValue<?> arg) throws SmplException {\n return make(value * arg.intValue());\n }", "public SMPLValue<?> mul(SMPLValue<?> arg) throws SMPLException {\n throw new SMPLTypeException(\"Operation '*' called with non-numeric type\");\n }", "public <T extends N...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Refreshes the enabled/disabled script display buttons, the comboboxes at the bottom sentence display and redisplays the sample sentence. This method may need to be called if the wordsockets of the current verb were edited, or if the edited verb in verb editor is changed.
public void refresh(){ if (mVerb!=swat.verbEditor.getVerb() || !isValid(scriptEditor.getScript())) setScriptPath(null,null); else scriptEditor.refresh(); mVerb = swat.verbEditor.getVerb(); for(int i=0;i<Sentence.MaxWordSockets;i++){ if (mVerb.isWordSocketActive(i)) { visibilityCBs[i].setEnabled(tru...
[ "public void refreshLanguageTexts() {\n\t\tb1.setText(LanguageManager.getProperty(\"SHOWREVIEW_BUTPNG\"));\n\t\tb2.setText(LanguageManager.getProperty(\"SHOWREVIEW_BUTPDF\"));\n\n\t}", "private void update() {\n \t\tcheckAns();\n \t\tword.setText(newWord());\n \t\tans.setText(\"\");\n \t}", "private void update...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ visitUserOp1 User defined operators shouldn't live beyond the lifetime of / a pass, if any exist, it's an error. /
@Converted(kind = Converted.Kind.AUTO, source = "${LLVM_SRC}/llvm/lib/IR/Verifier.cpp", line = 2220, FQN="(anonymous namespace)::Verifier::visitUserOp1", NM="_ZN12_GLOBAL__N_18Verifier12visitUserOp1ERN4llvm11InstructionE", cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/...
[ "@Override\r\n\tpublic void visit(UnaryOperatorExpression node) {\n\t\t\r\n\t}", "static void binaryOp(ContextParserRule ctx) {\n if (ctx.getChildCount() == 3) {\n ctx.setUserData(as(ctx.token(1),ctx.userData(0),ctx.userData(2)));\n }\n }", "public Object visit(Operator n, MSpgProgram argu) {\n O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to update and move sprite down screen each frame
public JLabel updateImage(){ JLabel updatedImg; updatedImg = getSprite(); return updatedImg; }
[ "@Override\r\n public void update() {\n sprite.setY(sprite.getY() + yVector);\r\n }", "public synchronized void updateUp () {\n //checks whether it is at the end of the screen or not\n if (this.yPos - speed < 0) {\n this.yPos -= 0;\n up=false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
package Gets published LUIS application package in binary stream GZip format. Packages a published LUIS application as a GZip file to be used in the LUIS container.
public Observable<ServiceResponse<InputStream>> packagePublishedApplicationAsGzipWithServiceResponseAsync(UUID appId, String slotName) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } if ...
[ "private JavaArchive getBundleX() {\n final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, \"jbosgi38-bundleX\");\n archive.addClasses(SomePojo.class);\n archive.setManifest(new Asset() {\n public InputStream openStream() {\n OSGiManifestBuilder builder = O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Additional Translate multiplication and division signs to UTF code
public static String translate(String raw){ String translated = ""; if (raw.length() > 0) { for (char i : raw.toCharArray()) { if (i == '*') { translated = translated + MULTIPLE; } else if (i == '/') { translated = trans...
[ "public static void main(String[] args){\n byte Var1; //[a-ZA-Z$_][a-zA-Z0-9$_]*\n byte $_$;\n byte 變數1;\n $_$ = 127;\n System.out.println($_$);\n byte Var2 = -128;\n Var2 -=1;\n byte Var4 = 1;\n int Var3 = Var2 + Var4 ;\n int Var5 = 0x10; //012...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to upload an entire list of multimedia items to the Google Cloud Platform.
public static void uploadList(String filepath) { //checks if the user is logged in if(!isLoggedIn()) { //if not returns without uploading System.out.println("Returning without upload."); return; } //builds a list from the XML file ChuseList list = XMLHandler.buildListFromXML(filepath); //r...
[ "@Multipart\n @POST(\"user_media_update.php\")\n Call<ResponseBody> uploadMultiple_files(\n @Part(\"video_url[]\") List<RequestBody> video_url,\n @Part(\"inserted_by\") RequestBody inserted_by,\n @Part(\"old_user_media_images[]\") List<RequestBody> old_user_media_images,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether statement has a block associated with it.
public boolean isBlock() { return true; }
[ "public boolean hasBlock() {\n return statementCase_ == 28;\n }", "public boolean hasBlock() {\n return instance.hasBlock();\n }", "public boolean isBlock() throws RQLException {\n\t\treturn getPageType(getPage()) == PAGE_TYPE_BLOCK;\n\t}", "public boolean hasBlockHeader() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Declines a subscription request
public void handleDeclineRequestBtnClick(ActionEvent event) throws SQLException { allRows = adminViewSubscriptionRequestTable.getItems(); row = adminViewSubscriptionRequestTable.getSelectionModel().getSelectedItems(); if(row.isEmpty()) { helper.showDialogBox(true, "Select a...
[ "public void unsubscribe() {\n subscribed = false;\n }", "public SIBResponse unsubscribe();", "public void onSubscriptionDeclined(java.lang.String contact) throws android.os.RemoteException;", "public void removeSubscription(Subscription subscription);", "private void notifyExperianUnsubsc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
////////////////////// Collision Handling // //////////////////////
private void hereticPlayerCollision(Entity heretic, Vector2 touch) { Health heretic_health = hm.get(heretic); Worth worth = wm.get(heretic); // Deal damage to the heretic if(!heretic_health.hit()) { // Play death effect EntityFactory.createPooledEffect(world, particle_effect_pool, touch.x, ...
[ "private void collision(){\r\n if (collision){\r\n for (int i = 0; i < handler.object.size(); i++) {\r\n GameObject tempObject = handler.object.get(i);\r\n if(tempObject.getId() == GameObjectID.Player || tempObject.getId() == GameObjectID.Enemy){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Return the communication channel to the service.
@Override public IBinder onBind(Intent intent) { throw new UnsupportedOperationException("Not yet implemented"); }
[ "ManagedChannel getChannel() {\n return getClient().getChannel();\n }", "ChannelServiceImpl getChannelService() {\n\t\treturn channelService;\n\t}", "public Channel channel()\r\n/* 351: */ {\r\n/* 352:377 */ return this.ctx.channel();\r\n/* 353: */ }", "public MessageChannel getC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__IfMetaSql__Group_1_4__1__Impl" $ANTLR start "rule__IfMetaSql__Group_2__0" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:26929:1: rule__IfMetaSql__Group_2__0 : rule__IfMetaSql__Group_2__0__Impl rule__IfMetaSql__Group_2__1 ;
public final void rule__IfMetaSql__Group_2__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:26933:1: ( rule__IfMetaSql__Group_2__0__Impl rule__I...
[ "public final void rule__IfStatement__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalBehavior.g:3064:1: ( rule__IfStatement__Group__0__Impl rule__IfStatement__Group__1 )\n // InternalBehavior.g:3065:2: rule__If...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shape of the full variable. repeated int64 full_shape = 2;
public int getFullShapeCount() { return fullShape_.size(); }
[ "int getFullShapeCount();", "public int [] shape() {\n return getDimension();\n }", "public Integer[] getShape() {\n return this.shape;\n }", "public float[] getShape() {\r\n\t\treturn shape;\r\n\t}", "public Shape shape() {\n return (Shape) ARRAY_SHAPE.clone();\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "srcRect" element
org.openxmlformats.schemas.drawingml.x2006.main.CTRelativeRect addNewSrcRect();
[ "public void setSourceRect(MyRect src) {\n this.src = src;\n width = src.right - src.left;\n height = src.bottom - src.top;\n }", "protected void createCroppedRect(){\n\n\t\tsetImageROIBasedInImageDimensions();\n\t\t\n\t\tIplImage imageNew = cvCreateImage(cvGetSize(this.templateSrc), this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Kids array.
public void setKids(PDFArray kids) { put(KIDS, kids); }
[ "public void setKids(short kids) {\n this.kids = kids;\n }", "public void setBids(long[][] value) {\n this.bids = value;\n }", "public void setSelfKids(int index) {\n if (index < 0 || index >= kidsPreference.values().length) {\n selfKids = kidsPreference.NA;\n } else...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the data as an observable list of Movies.
public ObservableList<Movie> getMovieData() { return movieData; }
[ "public LiveData<List<Movie>> getMovies() {\n //if the list is null\n if (heroList == null) {\n heroList = new MutableLiveData<List<Movie>>();\n //we will load it asynchronously from server in this method\n loadMoview();\n }\n\n //finally we will return t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts Id from one format to another in a single call to EWS.
public AlternateIdBase convertId(AlternateIdBase id, IdFormat destinationFormat) throws Exception { EwsUtilities.validateParam(id, "id"); List alternateIdBaseArray = new ArrayList(); alternateIdBaseArray.add(id); ServiceResponseCollection<ConvertIdResponse> responses = this .internalConvertIds(alternat...
[ "public void setConvertToId(String convertToId) {\n\n\t}", "String formattedId(String id) {\n return operation + id;\n }", "public StructuredDataId makeId(StructuredDataId id) {\n/* 118 */ if (id == null) {\n/* 119 */ return this;\n/* */ }\n/* 121 */ return makeId(id.getN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
compare to other node
public int compareTo(Node other) { return this.keys.get(0).compareTo(other.keys.get(0)); }
[ "public boolean isSameNode(Node other){\n return this==other;\n }", "public boolean isEqualNode(Node arg) {\r\n\t\tif (!super.isEqualNode(arg)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// there are many ways to do this test, and there isn't any way\r\n\t\t// better than another. Performance may vary gre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
common driveToCrater defined by the parent telemetryNow(route, "starting parent common driveToCrater ...");
@Override public void drive() { System.out.println("==>Driving route " + route); //driveTrain.encoderDrive(samwiseDrive,2.5, 5); driveTrain.encoderDriveSpeed(samwiseDrive, 2.5, 4, .5); driveTrain.turnDrive(samwiseDrive, 36, 3); ...
[ "public searchTurn(Limelight limelight, DriveTrain drivetrain) {\n // Use addRequirements() here to declare subsystem dependencies.\n m_drivetrain = drivetrain;\n m_limelight = limelight;\n\n //this.angle = angle;\n\n addRequirements(drivetrain);\n addRequirements(limelight);\n //Ticks should be a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional float delay_value = 5;
float getDelayValue();
[ "public abstract float delay();", "Object getDelay();", "int getDelaySeconds();", "public void setDelayTime(int value) {\n\t\tthis.delayTime = value;\n\t}", "public void setDelayUs(Float delayUs) {\r\n this.delayUs = delayUs;\r\n }", "String getDelay();", "public int getInitialDelay() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: change this to private and have callers ask this class for requested ship state info. Prevents anyone from accidentally changing ship state.
public ShipState getShipState(int chosenShipSize) { for (ShipState shipState : shipStates) { if (shipState.getCapacity() == chosenShipSize) { return shipState; } } throw new IllegalArgumentException("Ship not found of size: " + chosenShipSize); }
[ "public String getShipToState() {\n return shipToState;\n }", "public String getShipmentState() {\n return this.shipmentState;\n }", "public Ship() {\n this.tyyppi = \"Laiva\";\n this.status = true;\n }", "public void rememberShip();", "public void setShipped( boolean fl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the annotations for mimoentslot.
protected void createMimoentslotAnnotations() { String source = "mimo-ent-slot"; addAnnotation (getProductFeatureAppl_Product(), source, new String[] { "key", "true" }); addAnnotation (getProductFeatureAppl_ProductFeature(), source, new String[] { "key", "true" })...
[ "private void initAnnots() {\n\t\tif (_annots == null)\n\t\t\t_annots = new HashMap(4);\n\t}", "protected void createAnnotationAnnotations() {\r\n\t\tString source = \"annotation\";\t\t\r\n\t\taddAnnotation\r\n\t\t (signalEventEClass, \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"documentation\", \"as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a fraction to the container.
public Container subsystem(Fraction fraction) { return fraction(fraction); }
[ "public Fraction add(Fraction fraction) {\n/* 708 */ return addSub(fraction, true);\n/* */ }", "Fraction add(Fraction f) {\n Fraction x = new Fraction((numerator * f.denominator) + (f.numerator * denominator), denominator * f.denominator);\n return x;\n\t\n}", "public Fractions add(Fractions a){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Discrete event, switching function
@Override public double g(double t, double[] x) { if(t < tObstacle.doubleValue(SI.SECOND)) return x[3] - obstacle.doubleValue(SI.METER); else return -10.0; /* Generic negative value to trigger the event only one time */ }
[ "void handleEvent(ActiveEvent event);", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(status.equals(\"scatter\")){\n\t\t\t\tstatus = \"chase\";\n\t\t\t}\n\t\t\telse if(status.equals(\"chase\")){\n\t\t\t\tstatus = \"scatter\";\n\t\t\t}\n\t\t}", "public void handle(Event e) {\n /* Mai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void setCreateAccountResponse(CreateAccountResponse param){ this.localCreateAccountResponse=param; }
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method called on the click of a NavigationDrawer item to update the UI with the new selection
private void selectItem(int position) { // update the no_items content by replacing fragments Fragment fragment = null; switch (position) { case 0: fragment = HomeFragment.newInstance(); break; case 1: fragment = RapidRead...
[ "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n menuItem.setChecked(true);\n // close drawer when item is tapped\n mDrawer.closeDrawers();\n\n // Add code here to update the UI ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a reference to the AHRS Gyro.
public AHRS getGyro() { return m_gyro; }
[ "public AHRS getGyro() {\n\t\treturn gyro;\n\t}", "public double getGyro() {\n \treturn gyro.getAngle();\n }", "public Rotation2d getGyro() {\n\t\treturn Rotation2d.fromDegrees(gyro.getAngleZ());\n\t}", "public double getGyroAngle() {\n return gyroscope.getAngle();\n // return imu.getAngle();\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .protobuf.Create_Group_Response.All_Group.Group_User group_User = 4;
public java.util.List<? extends com.zhihao.p2p_server.protobuf.Message.Create_Group_Response.All_Group.Group_UserOrBuilder> getGroupUserOrBuilderList() { return groupUser_; }
[ "proto.EntitiesProto.GroupOrBuilder getGroupOrBuilder();", "com.google.apps.drive.activity.v2.GroupOrBuilder getGroupOrBuilder();", "com.google.protobuf.ByteString\n getGroupBytes();", "private void setGroupResponseFields () {\n\n this.document.snippets(\n responseFields(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { finish(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Store variable into the offset
public void storeRunStack(int offset) { runStack.store(offset); }
[ "public void setOffset(int offset) { this.offset = offset; }", "public void incrementOffset() {\n offset++;\n }", "public void setOffset(String offset)\n/* */ {\n/* 163 */ this.offset = offset;\n/* */ }", "public void setOffset(IVL<PQ> value) { this.m_offset = value; }", "public in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void setSiparisZamani(String siparisZamaniField) { siparisZamani=siparisZamaniField; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the element from in front of queue and returns that element.
public int pop() { int popElement = -1; //default value if stack is empty if(revStack.empty()) reverseStack(); //populate the reverse stack popElement = revStack.pop(); //poping the first element in queue return popElement; }
[ "public Object dequeue(){\n return removeFromFront();\n }", "public T dequeue() {\n return removeFromStack.pop();\n }", "public Job remove() {\n if (isEmpty())\n throw new NoSuchElementException(\"Underflow Exception\");\n else {\n len-- ;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public boolean shouldEnableImsForIR() { if (!mSupportImsiSwitch) { log("[IR] IMSI switch feature not supported"); return DBG; } boolean enableIms = DBG; int subId = MtkSubscriptionManager.getSubIdUsingPhoneId(this.mPhoneId); if (subId == -1) { ...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Connects to a given database
public Connection connect() { // SQLite connection string String url = "jdbc:sqlite:/Users/alexandrekhien/Google Drive/0 - Computer Science" + "/Auburn/CPSC5133 Database 2/Hospital Project/Database/database.sl3"; Connection conn = null; try { conn = DriverManager....
[ "public Connection connectToDB(){\n\t\tSystem.out.println(\"Connecting to a selected database...\");\n\t\tWrapper conn = null;\n\t\tconn = DBConnection.getConnection();\n\t\treturn (Connection)conn;\n\t}", "boolean connect(String dbType, String dbAdress, int dbPort, String resources);", "private void connectToD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The newGame method calls a method from the GameData class to reset the 8 x 8 2D integer array to its original state. Randomly selects which players goes first and sets the current player value to the randomly selected number. Updates the graphics.
public void newGame() { Random random = new Random(); int playerValue = random.nextInt((2 - 1) + 1) + 1; this.gameData.createNewGameBoard(); this.gameData.setPlayerValue(playerValue); this.repaint(); }
[ "public void newGame() {\n\n // Initialize the inside/outside flags.\n inside_four_flag = false;\n outside_four_flag = false;\n block_chair_flag = false;\n\n // Initialize the inside/outside arrays.\n for (int i=0; i<18; i++) {\n inside_four[i][0] = 0;\n inside_four[i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get nodes by node type
public List<Node> getNodesByNodeType(List<NodeType> nodeTypeList) throws DbUtilsException { List<Node> nodeList = null; List<Integer> nodeTypeValueList = new ArrayList<Integer>(); if (nodeTypeList != null && nodeTypeList.size() != 0) { for (NodeType nodeType : nodeTypeList) { nodeTypeValueLis...
[ "@JsonIgnore\n List<ImplementationNode> getImplementationNodesByType(final String type);", "public LinkedHashMap<Integer,String> getNodeTypes();", "public List<NodeAttributesModel> getNodeByNodeType(String nodeType) {\n String sql = \"select * from node_table where node_type=\" + nodeType;\n Li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int pro = (int)((1.0f current / total) progressBar.getMax()); progressBar.setProgress(pro);
@Override public void onProcess(long current, long total) { }
[ "public void setProgress(double value);", "public void changeProgress(){\n \tprogressBar.setValue((int)((float)cur_work*100/max_work));\r\n progressBar.setString(cur_work+\"/\"+max_work);\r\n //taskOutput.append(String.format(\r\n // \"%s\\n\", data.toString(cur_work)));\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onNothingSelected(AdapterView<?> parent) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 62 /Coverage entropy=0.9957374991778267
@Test(timeout = 4000) public void test062() throws Throwable { ClassWriter classWriter0 = new ClassWriter((-42)); String[] stringArray0 = new String[1]; stringArray0[0] = "r]3]k? J"; MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-42), "", "r]3]k? J", "r]3]k? J", stringArray0, ...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of qosPolicyNodeBuilder.
public QosPolicyNodeBuilder() { }
[ "@NonNull\n public SubscribeActionBuilder qosAtLeastOnce() {\n return new SubscribeActionBuilder(wrapped.qosAtLeastOnce());\n }", "public CapacityPoolInner withQosType(QosType qosType) {\n if (this.innerProperties() == null) {\n this.innerProperties = new PoolProperties();\n }\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the list of Windows Remote Management listeners.
public List<WinRMListener> listeners() { return this.listeners; }
[ "public List<ServerMonitorListener> getServerMonitorListeners() {\n return serverMonitorListeners;\n }", "public Collection<IMessageListener> getListeners();", "public List<ServerListener> getServerListeners() {\n return serverListeners;\n }", "public List<SessionListener> getListeners();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string details_str = 5;
boolean hasDetailsStr();
[ "public Builder setDetails(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n details_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public void setDescription (String Descri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the specified entity from db
private void deleteBeneficiary(Long id) { target(serviceRelativePath + id).delete(); }
[ "void deleteEntity(E entity);", "public void deleteEntity(Object entity) {\n HibernateUtil.getCurrentSession().beginTransaction();\n HibernateUtil.getCurrentSession().delete(entity);\n HibernateUtil.getCurrentSession().getTransaction().commit();\n\n }", "public void deleteEgreso(Egreso e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interval Stabbing time complexity: O(N), space complexity: O(N) beats 77.23%(9 ms for 36 tests)
public int bestRotation2(int[] A) { int n = A.length; int[] bad = new int[n]; for (int i = 0; i < n; i++) { int left = (i - A[i] + 1 + n) % n; int right = (i + 1) % n; bad[left]--; bad[right]++; // the following can be omitted since it ...
[ "for (int i = 1; i <= n; i++) {\n for(int j = 1; j <= n; j++) {\n // constant time code here\n }\n }", "void calculateSpanInEfficient(int price[], int n, int S[])\n {\n S[0] = 1;\n\n // Calculate span value of remaining days by linearly checking\n // previous da...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the node for the group with the given groupId
public Node getGroup(String groupId) throws RepositoryException;
[ "public Group read(Long groupId);", "ZigBeeGroup getGroup(int groupId);", "public Group getGroupById(long groupId) {\n return groupRepository.findById(groupId)\n .orElseThrow(() -> new ResourceAccessException(\"Group not found\"));\n }", "public Escritor fetchByUUID_G(java.lang.String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }