query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Add context to the map for analyze.
public void addContextForAnalyze(PgStatementWithSearchPath stmt, ParserRuleContext ctx) { contextsForAnalyze.add(new SimpleEntry<>(stmt, ctx)); }
[ "void setContext(Map context);", "<T extends OFPContext> void addContext(@NonNull T context);", "public void addContextData( String key,\n String value );", "public void contextAdded(Context context);", "Context<E> addContextProcessor(ContextProcessor<E> processor);", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gere les apostrophes pour eviter erreurs SQL. Le tableau est directement modifie !
private void doublequote( String[] valeurs) { // TODO Auto-generated method stub int i = -1; try{ for(i = 0; i < valeurs.length; i++) valeurs[i] = valeurs[i].replaceAll("'", "''"); }catch(Exception e){ System.out.println("IMPOSSIBLE D'ACCEDER A VALEURS " + i); } }
[ "private String encodeSQL(String text) {\r\n text = text.replaceAll(\"'\", \"''\");\r\n return \"'\" + text + \"'\";\r\n }", "private String convertSQLString(String st)\r\n\t{\n\t\treturn st.replaceAll(\"'\",\"''\");\r\n\t}", "private static String adqlCharLiteral( String txt ) {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the states of the buttons after the entity was saved.
protected void updateButtonStates() { btProductSold.setEnabled(!context.isNew()); }
[ "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Reads the data about the start state, goal state and the obstacles from the text file. Sets the Jframe visibility true.
public static void main(String[] args) throws IOException { JFrame f= new Navigate(); try { System.out.println("Enter the input file: "); String fp=r.next(); File textFile = new File(fp); //Reads the file "input.txt" that contains the data. Scanner sc = new Scanner(textFile); start_x=sc.ne...
[ "void loadFromFile(String text) throws IOException, ClassNotFoundException {\n\t\tProjectState state;\r\n\t\tString loadpoint = text;\r\n\t\tFileInputStream fileIn = new FileInputStream(loadpoint);\r\n\t\tObjectInputStream in = new ObjectInputStream(fileIn); \r\n\t\tstate = (ProjectState) in.readObject(); //deseria...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This decodes a UTF8 byte array wrapped in a ByteString into a string. Note that this copies data.
public static String utf8ToString(ByteSequence utf8){ return utf8ToString(utf8.bytes); }
[ "public static String fromUtf8(byte[] b) {\n return decode(UTF_8, b);\n }", "static public String fromUTF8Bytes(byte[] bytes) {\n return new String(bytes, UTF8_CHARSET);\n }", "public static String from_utf_8(byte[] bytes) {\n return new String(bytes, StandardCharsets.UTF_8);\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XIfExpression__Group__4" $ANTLR start "rule__XIfExpression__Group__4__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:21455:1: rule__XIfExpression__Group__4__Impl : ( ')' ) ;
public final void rule__XIfExpression__Group__4__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:21459:1: ( ( ')' ) ) ...
[ "public final void rule__XIfExpression__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10403:1: ( ( ')' ) )\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Settings Tabbed panel For now it only has option to change password
public final JPanel settingsPanel(){ JPanel p = new JPanel(); final JPasswordField oldpassword = new JPasswordField("",15); final JPasswordField password = new JPasswordField("",15); final JPasswordField repassword = new JPasswordField("",15); JButton registerButton = new JButton...
[ "void editPreferences() {\n setActivePanel(PREFERENCES_PANEL);\n }", "private void changePassword(){\n\t\tif (changeCancelButton.getText().equals(\"Anuluj\")){\n\t\t\thidePassword();\n\t\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\t\tchangePassword = false;\n\t\t}\t\n\t\telse {\n\t\t\tif (usersT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A method to remove an existing edge from the graph given the index of the 2 connected nodes
void removeEdge(int source, int destination);
[ "void removeEdge(int x, int y);", "public void removeEdge(String vertex1, String vertex2);", "public int removeEdge(Person node1, Person node2);", "void removeEdge(Vertex v1, Vertex v2) throws GraphException;", "void removeEdge(V v1, V v2);", "void removeEdge(E edge);", "IModel removeEdge(IIdentity from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'tombstone' field.
public com.appanddata.alsme.model.avro.KeyValue.Builder clearTombstone() { fieldSetFlags()[2] = false; return this; }
[ "public com.appanddata.alsme.model.avro.KeyValue.Builder setTombstone(boolean value) {\n validate(fields()[2], value);\n this.tombstone = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void setTombstone(boolean value) {\n this.tombstone = value;\n }", "public Value.B...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs an opaque monochromatic Colour with the given RGB components.
public Colour(float rgb) { this(rgb, rgb, rgb, 1f); }
[ "private static Color newColor(int red, int green, int blue) {\n return new Color(red / 255.0, green / 255.0, blue / 255.0);\n }", "public RGBColor () \r\n\t{\r\n\t\tr = 0; g = 0; b = 0;\r\n\t\tindex = (byte) Palm.WinRGBToIndex(this);\t\r\n\t}", "IColor createColor();", "public Colour() {\n this(0,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a status for the mapping between the probeset and the transcript.
public MappingStatus(ProbeSet probeSet, int exonFlankHitThreshold, MappableTranscript transcript, int exonHitCount, int intronHitCount, int reverseStrandHitCount) { super(); this.probeSet = probeSet; this.exonFlankHitThreshold = exonFlankHitThreshold; this.transcript = transcript; this.exonFlankHitCount...
[ "org.hl7.fhir.ObservationStatus addNewStatus();", "HashMap<Integer, String> getStoryStatusMap();", "private void modifyMapStatus(int status) {\n\t\tint bC = centerPoint.getX() / UNIT;\n\t\tint bR = centerPoint.getY() / UNIT;\n\n\t\tfor (int i = bR; i < bR + row; i++) {\n\t\t\tfor (int j = bC; j < bC + column; j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleDocument" $ANTLR start "entryRuleImport" InternalMyDsl.g:127:1: entryRuleImport returns [EObject current=null] : iv_ruleImport= ruleImport EOF ;
public final EObject entryRuleImport() throws RecognitionException { EObject current = null; EObject iv_ruleImport = null; try { // InternalMyDsl.g:127:47: (iv_ruleImport= ruleImport EOF ) // InternalMyDsl.g:128:2: iv_ruleImport= ruleImport EOF { ...
[ "public final EObject entryRuleImport() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleImport = null;\n\n\n try {\n // InternalMappingDsl.g:1797:47: (iv_ruleImport= ruleImport EOF )\n // InternalMappingDsl.g:1798:2: iv_ruleImport= ruleImport EOF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this is double check at the end. No threads would actually be running here only EDT Method that checks for consistency of viewing time data Totals of recorded running total in Game, total of times in HashMap, and total of times sent by Viewers should all agree if all data is processed safely
public void countTimes() { String timeResults = ""; long sumOfPlayerTotalTimes = 0; for (Player p : times.keySet()) { long totalTimeForPlayer = 0; for (Long time : times.get(p)) { totalTimeForPlayer += time; sumOfPlayerTotalTimes += time; } timeResults += p + " and ha...
[ "private void checkAppReportValidityTimer() {\n StreetList streetEmptyList = getAllStreetEmptyList();\n Timer streetEmptyAppReportResetTimer = new Timer();\n streetEmptyAppReportResetTimer.schedule(new TimerTask() {\n @Override\n public void run() {\n for (S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); start the image capture Intent startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE); / Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTU...
private void captureImage() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); if (media_status.equals("1") || media_status.equals("2") || media_status.equals("3")) { ...
[ "private void captureImage() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n intent.putExtra(\"android.intent.extras.CAMERA_FACING\", 1);\n // start the i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JvmWildcardTypeReference__Group_2_0__0" $ANTLR start "rule__JvmWildcardTypeReference__Group_2_0__0__Impl" InternalCsv.g:2904:1: rule__JvmWildcardTypeReference__Group_2_0__0__Impl : ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) ) ;
public final void rule__JvmWildcardTypeReference__Group_2_0__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCsv.g:2908:1: ( ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) ) ) // InternalCsv.g:2909:1: ( ( r...
[ "public final void rule__JvmWildcardTypeReference__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCsv.g:2896:1: ( rule__JvmWildcardTypeReference__Group_2_0__0__Impl rule__JvmWildcardTypeReference__Group_2_0__1 )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows a bug or feedback report with optional options.
@ReactMethod public void show(final String reportType, final ReadableArray options) { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() { final Integer parsedReportType = ArgsRegistry.reportTypes.get(reportType); if (parsed...
[ "public static String askForBugReport() {\n return FILE_A_BUG_REPORT_MSG;\n }", "public static void sendBugReport() {\n Toast.makeText(VectorApp.getInstance().getApplicationContext(), \"Bug reporting is currently disabled, sorry!\", Toast.LENGTH_LONG).show();\n }", "public void promptForReport...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updates the "upgrade"Buttons concerning how much money you have
public void updateButtons(){ moneyLabel.setText("money: "+Res.player.money); for(int i=0;i<Res.weapons.size;i++){ ConfiguredWeapon weapon=Res.weapons.get(i); if(weapon.bought<weapon.upgrades.size){// weapon can be upgraded Weapon nextOne=weapon.upgrades.get(weapon.bought); weaponPrices.get(i).s...
[ "public void updateButtons(int index) {\n\t\tbuttons.get(index).setText(upgrades.get(index).toString());\n\t}", "private void updateTotal() {\n int total = table.getTotal();\n vip.setConsumption(total);\n if (total > 0)\n payBtn.setText(PAY + RMB + total);\n else if (total =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Functie om een alarm te starten voor de vijand zodat hij alleen aanvalt wanneer de alarm is afgelopen.
public void startAlarm(){ Alarm alarm = new Alarm("magAanvallen", 1 / aanvallenPerSeconden); alarm.addTarget(this); alarm.start(); }
[ "private void entryAction_main_region_digitalwatch_Alarm_AlarmOn() {\n\t\tsCILogicUnit.operationCallback.setAlarm();\n\t\t\n\t\tsCIDisplay.operationCallback.refreshAlarmDisplay();\n\t}", "public void raiseAlarms();", "public void startAlarm() {\n Log.d(TAG, \"Starting alarm\");\n\n // Initializes ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads vehicle descriptions from remote CSV file (fetched from the US department of energy)
@POST @Transactional @TransactionConfiguration(timeout = 600) // TODO: quarkus specific @Path("/remote") public Response loadRemote() throws IOException { String url = "https://www.fueleconomy.gov/feg/epadata/vehicles.csv"; // TODO: store in config logger.info("Loading database from remo...
[ "public void fetchDataFromCsv(){\n try (BufferedReader br = new BufferedReader(new FileReader(csvFile))) {\n\n while ((this.line = br.readLine()) != null) {\n\n // use comma as separator\n String[] car = this.line.split(cvsSplitBy);\n// System.out.print...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adicionar comentario no db
void adicionaComentario(Comentario comentario);
[ "public void inserir(Comentario c);", "private static void insertar() {\n\n\t\ttry (Connection conexion = conectarBaseDeDatos()) { // try with resources -- > cierra la conexion automaticamente\n\n\t\t\tString sql = \"insert into familiar(patenteNumero, patenteActiva, marca, categoria, color, encendido) \"\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies that RUNTIME annotations are stripped when the stripreflection flag is on
public void testDeadAnnotation_removeRuntimeAnnotation_whenStripReflectionIsOn() throws IOException { options.setStripReflection(true); CodeReferenceMap map = CodeReferenceMap.builder().addClass("Foo").build(); setDeadCodeMap(map); String source = "import java.lang.annotation.Retention;\n"...
[ "protected boolean shouldCleanAllAnnotations() {\n \t\treturn false;\n \t}", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16498_failAssert27() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets a value in the database on a given target to a given value.
@Override public void setValueInDb(String target, String value) { DatabaseReference currentRef = database.getReference(target); currentRef.setValue(value); }
[ "private void increaseDBValue(String target, int value){\n database.getReference(gameCodeRef).child(target).setValue(value+1);\n }", "public abstract void setValue(String target, Double value) throws ExternalModelException;", "public void setTarget(Object target) {\n\t\tthis.target = target;\n\t\tthis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column regsat_regist.userrevoke_time
public Date getUserrevokeTime() { return userrevokeTime; }
[ "public void setUserrevokeTime(Date userrevokeTime) {\n this.userrevokeTime = userrevokeTime;\n }", "public String getRevokeDate() {\r\n return revokeDate;\r\n }", "public Date getUserRegTime() {\r\n return userRegTime;\r\n }", "Label getRevokeDate();", "BigInteger getPasswordC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invoked for GET requests: Check for valid swagger path.
protected boolean isValidSwagger(final String path) { return "/openapi.json".equals(path) || path.startsWith("/swagger-ui/"); }
[ "@Override\n public boolean isAcceptable(JsonPath jsonPath, String requestType) {\n return jsonPath.isCollection()\n && jsonPath instanceof ResourcePath\n && HttpMethod.GET.name().equals(requestType);\n }", "@Override\n public boolean isRestfulIndex() {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
END of method logout method openLoginURL This metod navigates to login page URL
public String openLoginURL(){ try { Extent.logInfo("openLoginURL","Opening URL for login page"); String Data[] = dataProvider.openBrowser(); String sURL = Data[1]; wDriver.navigate().to(sURL); wDriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); Extent.logInfo("openLoginURL...
[ "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "public HomePage openLogInForm(){\n return clickOnLogInLink();\n }", "private void goToLogin() {\n\t\tdisplay.resetView();\n\t\tdisplay.logInScreen();\n\t}", "private HomePage clickOnLogInLink(){\n c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the type to the collection of interfaces.
protected void addInterface(IType type) { this.interfaces.add(type); }
[ "private void add(Type type) {\n boolean newlyAdded;\n\n /*\n * if( type instanceof InterfaceType ) newlyAdded =\n * references.add(type); else {\n */\n\n if (type.isFullyInstantiated() || type.isUninstantiated())\n newlyAdded = references.add(type);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a random templateargument.
public TemplateArgument randomTemplateArgument() { if (random.nextBoolean()) return new TypenameTemplateArgument(randomFlatType()); else return new DataTemplateArgument("" + random.nextInt()%10); }
[ "T generate();", "T getRandomAllowedValue();", "RandomExpression createRandomExpression();", "TemplateParameter createTemplateParameter();", "RandomElementExpression createRandomElementExpression();", "RandomIntegerExpression createRandomIntegerExpression();", "Randomizer getRandomizer();", "double ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserts the record taking the values from SOOnsiteVisitVO
public SOOnsiteVisitVO InsertVisitResult(SOOnsiteVisitVO SOOnsiteVisitVO) throws DataServiceException;
[ "int insert(CustomerVisit record);", "protected void insert(Visit visit) {\n visit.setId(incrementer.nextIntValue());\n Object[] objs =\n new Object[]{\n new Integer(visit.getId()),\n new Integer(visit.getPet().getId())...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__MethodDefinition__Group__1__Impl" $ANTLR start "rule__MethodDefinition__Group__2" ../org.ow2.mindEd.idt.editor.textual.ui/srcgen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:5110:1: rule__MethodDefinition__Group__2 : rule__MethodDefinition__Group__2__Impl rule...
public final void rule__MethodDefinition__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:5114:1: ( r...
[ "public final void rule__MethodDefinition__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calcula los dias para un determinada fecha
public static int diasParaFecha(Date fechafin) { try { System.out.println("Fecha = " + fechafin + " / "); GregorianCalendar fin = new GregorianCalendar(); fin.setTime(fechafin); System.out.println("fin=" + CalendarToString(fin, "dd/MM/yyyy")); Gregoria...
[ "public int getDiasOcupacion() {\r\n\t\treturn (int) (getFechaFinal().getTimeInMillis() - getFechaInicial().getTimeInMillis()) / (1000 * 60 * 60 * 24);\r\n\t}", "public void adicionaDoisDias(){\n Calendar calendario = Calendar.getInstance();\r\n int j=0;\r\n for(Item livro:item){\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called to apply post protection callbacks for armor. Used to damage armor and cause secondary effects.
public static void onProtected(EntityLivingBase entity, IIndirectEffectInstance indirectEffectInstance) { for (int i = 2; i < 6; i++) { final ItemStack stack = entity.getItemStackFromSlot(EntityEquipmentSlot.values()[i]); //Armor set is checked by the armor itself. In theory...
[ "public void postAttackEntity() {\n\t}", "public void applyAttack(CharacterModifier eff) {\n /*\n * Example of an attack - an adversary uses his weapon (different dimensions,\n * like affecting health, armor, magic ability, and how long the effect\n * persists)\n *\n * - several factors mod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end entryRuleSimpleFunction $ANTLR start ruleSimpleFunction ../edu.kit.scc.cfeditor.cfengine/srcgen/edu/kit/scc/cfeditor/cfengine/parser/antlr/internal/InternalCfengineEditor.g:1459:1: ruleSimpleFunction returns [EObject current=null] : ( ( (lv_id_0_0= RULE_ID ) ) '(' ( (lv_values_2_0= RULE_STRING ) ) ( ',' ( (l...
public final EObject ruleSimpleFunction() throws RecognitionException { EObject current = null; Token lv_id_0_0=null; Token lv_values_2_0=null; Token lv_values_4_0=null; EObject temp=null; setCurrentLookahead(); resetLookahead(); try { // ../e...
[ "public final EObject entryRuleSimpleFunction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSimpleFunction = null;\n\n\n try {\n // ../edu.kit.scc.cfeditor.cfengine/src-gen/edu/kit/scc/cfeditor/cfengine/parser/antlr/internal/InternalCfengineEditor.g:145...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Real Type'.
RealType createRealType();
[ "Real createReal();", "Type createType();", "ObjectRealization createObjectRealization();", "RealLiteral createRealLiteral();", "BasicType createBasicType();", "DerivedType createDerivedType();", "RealValueType getRealValue();", "public final void mREALTYPE() throws RecognitionException {\n try...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
NOT RELATED TO POCKETCHAT This is used for user's that has email address ONLY, when secure authentication action is needed, they'll have to trigger this API. 1. Find User in DB. 2. Generate OTP number. 3. Prepare message title and content. 4. Send Email First. 5. Send SMS.
@Override public OTPResponse requestToAuthenticateWithEmailAddress(EmailAddressUserAuthenticationRequest mobileNoAuthenticationRequest) { User user = userService.getUserByEmailAddress(mobileNoAuthenticationRequest.getEmailAddress()); OTP otp = generateOTP(user.getId()); String messageTitle...
[ "public String sendOTP(String otp, String email) throws NotValidEmail, RecordNotFoundException;", "public void sendTokenEmailToUser(Long userid, String email, String token, Tokentype type) throws MessagingException;", "public void resendOTP() {\n ApiInterface apiInterface = RestClient.getApiInterface();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove a change set after it has been applied.
public void simpleRemoveChangeSet(Object changeSet) { // check whether the change set was added earlier if (!this.removeAddedChangeSet(changeSet)) { this.addRemovedChangeSet(changeSet); } }
[ "public void addRemovedChangeSet(Object changeSet) {\r\n this.getRemoves().addElement(changeSet);\r\n }", "private boolean removeRemovedChangeSet(Object changeSet) {\r\n if (removes == null) {\r\n return false;\r\n } else {\r\n return removes.remove(changeSet);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
OSCMessageObserver.java Interface class to automatically dispatch received OSC messages by the client from an MSTART Server.
public interface OSCMessageObserver { /** * Sets the received OSC message to the data management class to process it. * <p> * This method is automatically called when a new OSC message is received. * * @param aMessage the received OSC message */ public void messageReceived(OscMessage aMessage)...
[ "@Override\n protected void onIncomingClientMessage(String message, MS_ClientOfServer client) {\n MS_JSONObject command = new MS_JSONObject(message);\n if (command.has(MS_ClientServerConstants._CLIENT_COMMAND_WITH_ACKNOWLEDGEMENT_MODE)) {\n if (client.getTimeDiffFromServer() != null && c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes userCertificateComboBox
private JComboBox getUserCertificateComboBox() { if (userCertificateComboBox == null) { userCertificateComboBox = new JComboBox();//new CertificatesComboBoxModel()); userCertificateComboBox.setBounds(new Rectangle(170, 42, 459, 27)); userCertificateComboBox.setEditable(false); } return userCertificateCom...
[ "public void initialize() {\n fillCombobox();\n }", "private void initComboBox() {\n\t\tString[] data = {\"Amount\", \"Average\", \"Min\", \"Max\"};\n\t\tComboModel model = new ComboModel(data);\n\t\tComboController controller = new ComboController(()->updateResultArea());\n\t\tmodel.addListDataListener...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional float start_frame = 18 [default = 0];
@java.lang.Override public float getStartFrame() { return startFrame_; }
[ "void setStartFrame(float val);", "@java.lang.Override\n public float getStartFrame() {\n return startFrame_;\n }", "public void setStartFrameNum(int start) {\n\t\tstartFrameNum = start;\n\t}", "public Builder setStartFrame(float value) {\n bitField0_ |= 0x00004000;\n startFrame_ = value;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
POST /textIdAnnotations : Annotate IDs in a clinical note Return the ID annotations found in a clinical note
@ApiOperation(value = "Annotate IDs in a clinical note", nickname = "createTextIdAnnotations", notes = "Return the ID annotations found in a clinical note", response = TextIdAnnotationResponse.class, tags={ "TextIdAnnotation", }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response...
[ "public static Map<String, Integer> getAnnotations(String text) throws IOException, ParseException\n\t{\n\t \tMap<String, Integer> concepts = new HashMap<String, Integer>();\n\t\tString request = URL + URLEncoder.encode(text, \"UTF-8\") ; ; \n\t\tString jRespond= restcalls.get(request,apikey) ;\n\t\tSystem.out.prin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setTermBegan() Method for setting the termBegan attribute of a StudentRecord object
public void setTermBegan(Term t) { termBegan = t; }
[ "public void setTerm(CourseComponentTerm term) {\n\t\tthis.term = term;\n\t}", "public void setOriginalTerm(java.lang.CharSequence value) {\n this.originalTerm = value;\n }", "void setTerm(final Integer term);", "public void editTerm(Term oldTerm, String term, String definition);", "public void se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the batchUserId value for this ScanDocumentValueObject.
public void setBatchUserId(java.lang.String batchUserId) { this.batchUserId = batchUserId; }
[ "public java.lang.String getBatchUserId() {\n return batchUserId;\n }", "void setBatchId(long batchId);", "void xsetBatchId(org.apache.xmlbeans.XmlLong batchId);", "public void setBatchId(Number value) {\n setAttributeInternal(BATCHID, value);\n }", "private void setBatchProcessID(java.l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allows user to view item. Passes intent to ItemInfoActivity
public void viewItemInfo(String itemName, String ownerName){ Intent intent = new Intent(this, ItemInfoActivity.class); intent.putExtra("itemName", itemName); intent.putExtra("ownerName", ownerName); intent.putExtra("myUsername", myUsername); startActivityForResult(intent, CHANGE_...
[ "void OpenItemDetail(CustomListItem item) {\n Intent indent = new Intent(context, ItemDetailActivity.class);\n\n indent.putExtra(\"TYPE\", item.getType().toString());\n indent.putExtra(\"NAME\", item.getName());\n indent.putExtra(\"PIN\", item.getPin() + \"\");\n indent.putExtra(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sort the decorations that 'sorter' reads.
void sort() { // ... fill this in ... //how do I get teh next item? where is the reader in the interface that returns the next item??? if (sorter==null || sorter.nextItem()==false) return ; while(sorter.nextItem()) { /*Red, if the decoration is more than 35% red Green, if the decoration is mor...
[ "public void sort() {\n if (sorter != null)\n sort(sorter);\n }", "private void sort() {\n\t\tCollections.sort(this.formers);\n\t}", "void setupSorter(TableRowSorter<MatcherTableModel> sorter) {\n sorter.setComparator(Columns.Left.ordinal(), (AudioTarget o1, AudioTarget o2) -> {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table goods_in_process_statistic_by_process_detail
@Insert({ "insert into goods_in_process_statistic_by_process_detail (code, statistic_code, ", "line_name, process_code, ", "totals, Ni_value, Co_value, ", "Mn_value)", "values (#{code,jdbcType=BIGINT}, #{statisticCode,jdbcType=BIGINT}, ", "#{lineName,jdbcType=INTEGER}, #{...
[ "@Select({\n \"select\",\n \"code, statistic_code, line_name, process_code, totals, Ni_value, Co_value, Mn_value\",\n \"from goods_in_process_statistic_by_process_detail\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n GoodsInProcessStatisticB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the current class for a meta tag keyword, as the first and only element of an array list.
protected ArrayList<String> getClassKeyword(ClassDoc classdoc) { String cltypelower = classdoc.isInterface() ? "interface" : "class"; ArrayList<String> metakeywords = new ArrayList<>(1); metakeywords.add(classdoc.qualifiedName() + " " + cltypelower); return metakeywords; }
[ "int getTagClass();", "public MetaClass getMetaclass()\n {\n return this.xwiki.getMetaclass();\n }", "Class<?> getArrayClass();", "public TagClass getTagClass() {\n \t// Get last 2 bits of tag first byte to determinate class type.\n byte classValue = (byte)(this.mBytes[0] >>> 6 & 0x03);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a random term
public static MathTerm getRandomTerm() { int rand_type = RandomMathArt.rng.nextInt(MAX_TYPES); if (rand_type != 0) return new MathTerm(rand_type); else { double rand_num = RandomMathArt.rng.nextDouble() * Math.PI; return new MathTerm(rand_num); } }
[ "public Term getRandomTerm (String table) {\n // Select Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_TERM + \" NOT NULL AND \" +\n \"LENGTH(\" + KEY_TERM + \") <= 16 \" + \"ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDataba...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get a query Result for the default exampleWiki
public Api getQueryResult(String query) throws Exception { Api api = getQueryResult(getWiki(),query); return api; }
[ "com.github.jtendermint.jabci.types.Types.ResponseQuery getQuery();", "private void showResults(String query) {\n }", "public abstract void displayQueryResults(Query query);", "Query newQuery (String language, Object query);", "SQWRLResult getSQWRLResult(String queryName) throws SQWRLException;", "Mode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toggles the ignored state of a list of tree items and their children and redraws the tree.
void toggleItemIgnore(final ObservableList<TreeItem<Node>> nodesToIgnore, boolean ignored);
[ "protected void toggleChildrenFolded() {\n MindMapNode parent = getSelected();\n ListIterator children_it = parent.getViewer().getChildrenViews().listIterator();\n boolean areAnyFolded = false;\n while (children_it.hasNext() && !areAnyFolded) {\n NodeView child = (NodeView) ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of audit machines in the list
public int getChildCount() { return this.auditMachines.size(); }
[ "private void getMachineCount() {\n\t\tProperty property = model.getProperty(\"usesMachine\");\n\t\tHashtable<String, Integer> map = new Hashtable<String, Integer>();\n\t\tStmtIterator iter2 = model.listStatements(new SimpleSelector(null,\n\t\t\t\tproperty, (RDFNode) null) {\n\t\t\tpublic boolean selects(Statement ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the giorno property.
public int getGiorno() { return giorno; }
[ "public int getIdGiorno(){\n\t\treturn idGiorno;\n\t}", "public Integer getGnum() {\n return gnum;\n }", "public java.lang.String getGrnNo () {\n\t\treturn grnNo;\n\t}", "public int getGiro() {\n return giro;\n }", "public String getGlyNo() {\n return glyNo;\n }", "public int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the void setOnFail(String) method test.
@Test public void testSetOnFail_1() throws Exception { LogicStep fixture = new LogicStep(); fixture.setScript(""); fixture.setName(""); fixture.setOnFail(""); fixture.setScriptGroupName(""); fixture.stepIndex = 1; String onFail = ""; fixtu...
[ "private void FailTest() {\n passed = false;\n }", "public void fail( String reason );", "public void setFailure(boolean value) {\n\t\tif (value) {\n\t\t\tcountdown = EXIT_COUNT;\n\t\t}\n\t\tfailed = value;\n\t}", "public void setFailure(boolean value) {\n\t\tif (value)\n\t\t\tcountdown = EXIT_COUNT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Whether or not to mark the shard as stale (eg. removing from insync set) when failing the shard.
public boolean markAsStale() { return markAsStale; }
[ "public final boolean isStale() {\n\t\treturn (consecutiveFailureCount > maxFailureCount);\n\t}", "public void testSendingShardFailure() throws Exception {\n List<String> nodes = startCluster(3, 2);\n String masterNode = internalCluster().getMasterName();\n List<String> nonMasterNodes = nodes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of Supermarket
public Supermarket() { }
[ "public Supermarket() {\n }", "public Supermarket()\n {\n }", "public Supermarket(HashMap productList)\n {\n this.productList = productList;\n }", "public TurkeyMarket()\n {\n System.out.println(\"### Turkey Market is created. ###\\n\");\n }", "public GlobalMarket()\n {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getContestants methodGet list of all contestants to audition NO PARAMETERS returnList
public List<Contestant> getContestants(){ return new ArrayList<Contestant>(contestants.values()); }
[ "public List<Contestant> getContestants(ContestantType contestantType){\r\n\t\t\r\n\t\tList<Contestant> selected = new ArrayList<>();\t//\tdefine list to be returned to caller\r\n\r\n\t\t//\tLOOP through all contestants looking for type requested\r\n\t\tfor(Contestant contestant : contestants.values() ) {\t//\tfor ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks the metadata against the default.
private static boolean isMetaDataMatch(HashMap<String, String> metadata, HashMap<String, String> metadataDefault){ String valueDefault, value; if(metadataDefault==null) return true; if(metadata==null) return false; for(String key:metadataDefault.keySet()){ if(!metadata.contai...
[ "protected abstract boolean checkMetadata (ScopedEntityMetadata metadata);", "private void assertMetaDataIsSet() {\n if (null == metaData)\n throw new HypersonicException(\"Meta data is null.\");\n }", "private void checkMetadata() {\n if (!localMember.properties().equals(localProperties...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests getVersions(). Tests with no registered APIs. Everything else is tested along with other methods.
public void testGetVersions() { String version = ram.getVersion(getName()); assertSame("Expected null version for unknown api name", null, version); }
[ "@Test\n public void apiVersionTest() {\n // TODO: test apiVersion\n }", "@Test\n public void getsVersionListing() throws Exception {\n final Host host = Mockito.mock(Host.class);\n Mockito.doAnswer(\n new Answer<Resource>() {\n @Override\n pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column course.course_academy
public void setCourseAcademy(String courseAcademy) { this.courseAcademy = courseAcademy; }
[ "public void setCourse(String course);", "public void setCourse(int course)\n {\n this.course = course;\n }", "public void setCourse(Course course)\r\n\t\t{\r\n\t\t\tthis.course=course;\r\n\t\t}", "public String getCourseAcademy() {\n return courseAcademy;\n }", "public void setSacademy(Int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
download each link one by one
private void get(String saveDir) { for (String url : getList()) { download(url, saveDir); } System.out.println("Done: " + saveDir); }
[ "public static void download(){\n\t\t//Create thread pool with 3 threads\n\t\tExecutorService pool = Executors.newFixedThreadPool(3);\n\t\t//store the page as an HTML document \n\t\ttry {\n\t\t\tdoc = Jsoup.connect(address).get();\n\t\t\t//Select all files to download\n\t\t\tElements f2d = doc.select(\"a[href~=(?i)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for f_Heading92 called 1 times. Type: DEFAULT. Build precedence: 5.
private org.gwtbootstrap3.client.ui.Heading get_f_Heading92() { return build_f_Heading92(); }
[ "private org.gwtbootstrap3.client.ui.Heading get_f_Heading71() {\n return build_f_Heading71();\n }", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading57() {\n return build_f_Heading57();\n }", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading99() {\n return build_f_Heading...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return all the maps linked to the position of an unit
public String[] getMaps(Unit u) throws ServerException, WorldMakerException;
[ "public ArrayList<Unit> getUnitsInMap(Map map) throws ServerException, WorldMakerException;", "private void createMapOfUnits() {\n\t\tStringBuffer sbuf = new StringBuffer(\"Mapping all Units associated with element(\" + name + \") :\\n\");\n\t\tfor (Unit unit : subArea.getUnit()) {\n\t\t\tunits.put(unit.getId(),...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a writer builder for ExportCustomsDeclaration.
@Nonnull public static UBL23WriterBuilder <ExportCustomsDeclarationType> exportCustomsDeclaration () { return UBL23WriterBuilder.create (ExportCustomsDeclarationType.class); }
[ "@Nonnull public static UBL23ReaderBuilder<ExportCustomsDeclarationType> exportCustomsDeclaration(){return UBL23ReaderBuilder.create(ExportCustomsDeclarationType.class);}", "@Nonnull\n public static UBL23WriterBuilder <ImportCustomsDeclarationType> importCustomsDeclaration ()\n {\n return UBL23WriterBuilder....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Echange la position d'un cercle avec celle
public void échange( Cercle autre) { int tmp; // du cercle passé en paramètre tmp = x; // echanger la position en x x = autre.x; autre.x = tmp; tmp = y; // echanger la position en y y = autre.y; autre.y = tmp; }
[ "public void change_sword_pos() {\n\t\tif (!heroi.isArmado())\n\t\t\tlabirinto.setLabCell(espada.getX_coord(), espada.getY_coord(), 'E');\n\t}", "public void changerPosGrenouille()\r\n\t{\r\n\t\tthis.position = randomGrenouille();\r\n\t}", "public void Move() {\r\n ///Modifica pozitia caracterului pe axa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ChannelType__Group__1" $ANTLR start "rule__ChannelType__Group__1__Impl" InternalGo.g:7086:1: rule__ChannelType__Group__1__Impl : ( ( rule__ChannelType__ElemtypeAssignment_1 ) ) ;
public final void rule__ChannelType__Group__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalGo.g:7090:1: ( ( ( rule__ChannelType__ElemtypeAssignment_1 ) ) ) // InternalGo.g:7091:1: ( ( rule__ChannelType__ElemtypeAssignm...
[ "public final void rule__ChannelType__Group_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7133:1: ( rule__ChannelType__Group_0_0__1__Impl )\r\n // InternalGo.g:7134:2: rule__ChannelType__Group_0_0__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create the child layout. By default, creates a FlowLayout.
protected LayoutManager createLayout() { FlowLayout layout = new FlowLayout(false); layout.setMinorSpacing(10); layout.setMajorAlignment(OrderedLayout.ALIGN_CENTER); layout.setMinorAlignment(OrderedLayout.ALIGN_CENTER); return layout; }
[ "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserts the entire given otherList after the given listNode. This should remove all nodes from otherList leaving it empty. Make sure otherList is still in a valid (empty) state after this operation. The operation must be Theta(1) to receive credit (i.e., no loops, no recursion). For example, if the current list is 1,2,...
public void spliceAfter(Node<T> listNode, DoublyLinkedList<T> otherList) { if (otherList.size == 1){ addAfter(listNode,otherList.getFirst().getValue()); } else if (otherList.size > 1){ Node<T> oFirst = otherList.getFirst(); Node<T> oLast = otherList.getLast(); Node<T> curr...
[ "public Node<T> addAfter(Node<T> listNode, T t) \r\n {\r\n Node<T> afterNewNode = listNode.next;\r\n Node<T> newNode = new Node<T>(t, listNode, afterNewNode);\r\n listNode.next = newNode;\r\n afterNewNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public void insertListAfter(int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method that find the customizer of the given travelPackage
public String findIdCustomizer(Long idPrepackedTravelPackage) { Query query = em.createNativeQuery("SELECT idcustomer FROM customizedtravelpackage where idtravelpackage=? "); query.setParameter(1, idPrepackedTravelPackage); Long id; List <String> result= query.getResultL...
[ "private RefClass getPackageClass(RefPackage modelFacadePackage){\n javax.jmi.model.MofClass mc = (javax.jmi.model.MofClass)modelFacadePackage.refClass(\"Package\").refMetaObject();\n javax.jmi.model.Generalizes gen = ((javax.jmi.model.ModelPackage)mc.refOutermostPackage()).getGeneralizes();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [Storage Overview]( The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation.
public Long getDiskSize() { return this.DiskSize; }
[ "long getDiskSizeGb();", "int getDiskMb();", "int getBootDiskSizeGb();", "public Integer getDiskSizeGB() {\n return this.diskSizeGB;\n }", "public Long diskSizeGB() {\n return this.diskSizeGB;\n }", "public final int getSizeInGb() {\n return snapshot.getVolumeSize();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column SYS_PARAM_SCREEN_CIFS.LINE_NO
public void setLINE_NO(BigDecimal LINE_NO) { this.LINE_NO = LINE_NO; }
[ "public void setLineNr(int value) {\n this.lineNr = value;\n }", "public void setOLD_LINE_NO(BigDecimal OLD_LINE_NO) {\r\n this.OLD_LINE_NO = OLD_LINE_NO;\r\n }", "public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }", "public void setLINE_NBR(BigDecim...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generated method Setter of ImpExExportCronJob.mediasExportTarget attribute defined at extension impex.
@Accessor(qualifier = "mediasExportTarget", type = Accessor.Type.SETTER) public void setMediasExportTarget(final ImpExExportMediaModel value) { getPersistenceContext().setPropertyValue(MEDIASEXPORTTARGET, value); }
[ "@Accessor(qualifier = \"dataExportTarget\", type = Accessor.Type.SETTER)\n\tpublic void setDataExportTarget(final ImpExExportMediaModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(DATAEXPORTTARGET, value);\n\t}", "@Accessor(qualifier = \"mediasExportTarget\", type = Accessor.Type.GETTER)\n\tpublic ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method generates a property clause for a query from a given variable name, property and auxiliary variable. An example of SPARQL property clause is "?x foaf:name ?y ."
public static String getPropertyClause(String name, Property property, String objName) throws QueryBuilderException { if(name == null || property == null || objName == null) { logger.error("Some part of the query are null"); throw new QueryBuilderException("Some part of the query are null"); } Str...
[ "private String getSelect(Rule rule) throws MediatorException {\n\n\tString s = \"PREFIX vocab: <\" + propertyNamespace + \"> \";\n\ts += \"\\n SELECT DISTINCT \";\n\n\tArrayList<String> headVars = rule.getAllAntecedentVars();\n\n\tfor (int i = 0; i < headVars.size(); i++) {\n\t String var = headVars.get(i);\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asserts an approximation for the parameter value and the expected range given by this instance.
private double assertApproximation(IApproximator approx) { double a = approx.approximate(param); Assert.assertTrue("Not " + minExpected + "<=" + a + "<=" + maxExpected + " for " + param, minExpected <= a && a <= maxExpected); return a; }
[ "private void testRangeOfValues() {\n\t\tlogger.info(\"Test range of values...\");\n\t\t\n\t\tboolean rangeOfInterpValuesUseful= true;\n\t\tdouble min= Double.MAX_VALUE;\n\t\tdouble max= Double.MIN_VALUE;\n\t\tfor (double x = this.sg.getXmin(); x <= this.sg.getXmax(); x += this.sg.getResolution()/2) {\n\t\t\tfor (d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: REC_UPD_OPER_ID
public java.lang.String getRecUpdOperId () { return recUpdOperId; }
[ "public Integer getREC_ID() {\n return REC_ID;\n }", "public java.lang.String getRecOprId () {\n\t\treturn recOprId;\n\t}", "public String getUpdateOperId() {\r\n return updateOperId;\r\n }", "public String getUpdateOperId() {\r\n\t\treturn updateOperId;\r\n\t}", "public void setREC_ID(I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the "CheckProductEligibilityResponse" element
void setCheckProductEligibilityResponse(amdocs.iam.pd.pdwebservices.CheckProductEligibilityResponseDocument.CheckProductEligibilityResponse checkProductEligibilityResponse);
[ "amdocs.iam.pd.pdwebservices.CheckProductEligibilityResponseDocument.CheckProductEligibilityResponse getCheckProductEligibilityResponse();", "amdocs.iam.pd.pdwebservices.CheckProductEligibilityResponseDocument.CheckProductEligibilityResponse addNewCheckProductEligibilityResponse();", "public void setGetProductL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Checks that an empty Taint instance is considered to contain a null taint instance.
@Test public void testEmptyTaintContainsNullTaint() { Taint t = Taint.emptyTaint(); assertTrue(t.containsLabel(null)); }
[ "@Test\n public void testConstructTaintFromNullTaint() {\n Taint other = null;\n Taint t = Taint.withLabel(other);\n assertTrue(t.isEmpty());\n }", "@Test\n public void testConstructTaintFromNullLabel() {\n Integer label = null;\n Taint t = Taint.withLabel(label);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee NONNULL_PTR obj);
public static native byte[] UpdateFee_write(long obj);
[ "public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);", "public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);", "public static native void UpdateFee_free(long this_obj);", "public static native void UpdateFee_set_feerate_per_kw(long this_ptr, i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensures that only one button is enabled at any time. The Add Geofences button is enabled if the user hasn't yet added geofences. The Remove Geofences button is enabled if the user has added geofences.
private void setButtonsEnabledState() { if (mGeofencesAdded) { mAddGeofencesButton.setEnabled(true); //mRemoveGeofencesButton.setEnabled(true); }// else { // mAddGeofencesButton.setEnabled(true); // mRemoveGeofencesButton.setEnabled(false); //} }
[ "private void setButtonsEnabledState() {\n if (getGeofencesAdded()) {\n mAddGeofencesButton.setEnabled(false);\n mRemoveGeofencesButton.setEnabled(true);\n } else {\n mAddGeofencesButton.setEnabled(true);\n mRemoveGeofencesButton.setE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create an ytem definition with this name
public YtemDefOJ(String ytemDefName) { this.ytemDefName = ytemDefName; }
[ "Definition createDefinition();", "AdlDefinition createAdlDefinition();", "definitions createdefinitions();", "DataDefinition createDataDefinition();", "void createKeyword(String name);", "TypeSystemDefinition createTypeSystemDefinition();", "protected void createFixtureDef() {\n\tsetShapeType(mType);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets submission type for this class.
public void setSubmissionType(SubmissionType submissionType) { this.submissionType = submissionType; }
[ "public void setTypeOfSubmission(int type)\n\t\t{\n\t\t\tm_typeOfSubmission = type;\n\t\t}", "public SubmissionType getSubmissionType() {\n return submissionType;\n }", "private void modifySubmissionType(SubmissionType submissionType) {\n DeliverableHelper.checkObjectNotNull(submissionType, \"s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds one publicKey with which a specific principal will be allowed to authenticate.
public void addPublicKey(Object principal, PublicKey publicKey){ final HashSet<PublicKey> publicKeys = new HashSet<PublicKey>(1); publicKeys.add(publicKey); addPublicKeys(principal, publicKeys); }
[ "public void addPublicKeys(Object principal, Set<PublicKey> publicKeys){\n accountsLock.writeLock().lock();\n try{\n if (hasAccount(principal)){\n accounts.get(principal).addAll(publicKeys);\n }else{\n accounts.put(principal, new HashSet<PublicKey>(p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set numRabbits If it is smaller than 0, it is set to 1. If it is bigger than the size of the grid, it is set to the size of the grid
public void setNumRabbits(int numRabbits) { if (numRabbits < 0) { System.out.println("numRabbits should be positive ! It is set to 1."); numRabbits = 1; } else if (numRabbits > xSize * ySize) { System.out.println( "numRabbits should less or equal than the size of the grid! It is set to " + xSize * ySi...
[ "private void setCongruentNumbs(ArrayList<ArrayList<Integer>>[] numbs) {\n\t\tfor (int k = 0; k < numbs[0].size(); k++) {\n\t\t\tfor (int c = 0; c < numbs[0].get(k).size(); c++) {\n\t\t\t\tif (this.getCell(numbs[1].get(k).get(c) / 10, numbs[1].get(k).get(c) % 10).size() <= numbs[0].get(k).size())\n\t\t\t\t\tcontinu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of createEmptyArray method, of class org.netbeans.modules.vmd.api.model.PropertyValue.
public void testCreateEmptyArray() { System.out.println("createEmptyArray"); // NOI18N TypeID componentType = new TypeID(TypeID.Kind.COMPONENT,"Root"); // NOI18N PropertyValue result = PropertyValue.createEmptyArray(componentType); List<PropertyValue> expResult = new Ar...
[ "public void createEmptyArray();", "@Test\r\n\tpublic void getNativeFieldsArrayEmpty() {\r\n\t\tassertEquals(\"nativeFields should be empty\", 0, testObj.getNativeFieldsArray().length);\r\n\t}", "@Test\n public void testEmptyArrayCreation() {\n final String[] array = ArrayUtils.<String>toArray();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "agenthost" attribute
public void unsetAgenthost() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(AGENTHOST$6); } }
[ "public void unsetAgentId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(AGENTID$8);\n }\n }", "void unsetHost();", "public void xsetAgenthost(org.apache.xmlbeans.XmlString agenthost)\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles a contract end report. In this implementation, this method just returns false.
protected boolean handleContractEndReport(ContractEnd contractEnd) { return false; }
[ "protected boolean handleContractStartReport(ContractStart contractStart) {\r\n\t\treturn false;\r\n\t}", "public abstract boolean shouldEnd();", "private void tryExit() {\n assert (m_openMarketOrder != null);\r\n if (m_openMarketOrder == null) {\r\n LOG.debug(String.format(\"%1$s -> At...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Listen to online users
private void listenOnlineUsers() { final String username = MyAccount.getInstance().getName(); new Subscriber(Constants.ONLINE_TOPIC, username) .setNewMessageListener(new SubscribedTopicListener() { @Override public void onReceive(DataTransfer messa...
[ "private final void listen(){\n IntSetIterator iter = messages.iterator();\n iter.reset();\n while (iter.hasNext) {\n MessageManager.getInstance().addListener(this, iter.next());\n }\n }", "public void listen() {\n scheduler = Executors.newSingleThreadScheduledExec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string last_heartbeat_location = 12;
com.google.protobuf.ByteString getLastHeartbeatLocationBytes();
[ "java.lang.String getLastHeartbeatLocation();", "long getLastHeartbeat();", "long getLastHeartbeatTime();", "public java.lang.String getLastHeartbeatLocation() {\n java.lang.Object ref = lastHeartbeatLocation_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves an array of DiscountBean using the relation table Folioitem given a PersonnelBean object.
public DiscountBean[] loadDiscountViaFolioitem(PersonnelBean pObject) throws SQLException { Connection c = null; PreparedStatement ps = null; String strSQL = " SELECT " + " *" + " FROM " + " ...
[ "public DiscountBean[] loadDiscountViaReservation(PersonnelBean pObject) throws SQLException\r\n {\r\n Connection c = null;\r\n PreparedStatement ps = null;\r\n String strSQL = \" SELECT \"\r\n + \" *\"\r\n + \" FROM \"\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialises the HeapFile with the given schema Note: Assumes the schema has already been created in Catalog
public HeapFile(String schemaName) { this.schemaName = schemaName; schema = DBComponent.CATALOG().readSchema(schemaName); firstPageId = HeaderPage.getFileEntry(DBComponent.BUFFER_MANAGER(), schemaName); // If we haven't created the HeapFile for this schema yet, then do so if(!fir...
[ "public HeapFile(String schemaName, boolean isTempFile) {\n if(!isTempFile) throw new AssertionError(\"Should only be used for temporary files\");\n this.schemaName = schemaName;\n schema = DBComponent.CATALOG().readSchema(schemaName);\n firstPageId = DBComponent.BUFFER_MANAGER().getNewP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The default behavior of this method is to call encodeURL(String url) on the wrapped response object.
@Override public String encodeURL(String url) { return this._getHttpServletResponse().encodeURL(url); }
[ "@Override\n public String encodeRedirectURL(String url) {\n return this._getHttpServletResponse().encodeRedirectURL(url);\n }", "public String encodeURL(String url) {\n return manager.encodeUrl(this, url);\n }", "String encodeRedirectURL(HttpServletResponse response, String url);", "public a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
function to output the incorrect input and inform the user that the array was not created
public static void notCreated(String s) { System.out.println("The array was not created.\n" + s + " is not valid input."); System.exit(1); }
[ "private void wrongInput() {\n\t\tSystem.out.println(\"Wrong input, please try again\");\n\t}", "public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}", "private static void validateAmountOfGivenInput() {\r\n\t\tif (arg.length < 1) {\r\n\t\t\tSystemMessage.eMessage(\"More inp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column vendor_application.operate_user_id
public void setOperateUserId(Long operateUserId) { this.operateUserId = operateUserId; }
[ "public Long getOperateUserId() {\n return operateUserId;\n }", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setIdUser(int idUser) {\n this.idUser = idUser;\n }", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return list of distances to connected vertices from this vertex
public ArrayList<VertexDistancePair> getDistances(){ return distances; }
[ "public ArrayList<Double> getDistances() {\n return intersections.stream().map(Intersection::getDist)\n .collect(ArrayList::new, ArrayList::add, ArrayList::addAll);\n }", "public void computeAllEuclideanDistances() {\n\t\t// goes through all vertices and does math for all of them using th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extracts the extension from the passed file name.
public static String extractExtension(String filename) { return ImageWriterFilter.extractExtension(filename); }
[ "private String parseExtension() {\n String ext = \"\";\n String name = getFileName();\n\n int i = name.lastIndexOf('.');\n\n if (i > 0 && i < name.length() - 1) {\n ext = name.substring(i + 1).toLowerCase();\n }\n return ext;\n }", "private String getExtens...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true iff this permutation is a derangement (i.e., a permutation for which no value maps to itself).
boolean derangement() { if (!_derangement) { return false; } for (char key : _cycles.keySet()) { if (key == _cycles.get(key)) { return false; } } return true; }
[ "boolean derangement() {\n return _permMap.size() == _alphabet.size();\n }", "public boolean isDES()\n {\n return (alg >= START_DES && alg <= END_DES);\n }", "boolean derangement() {\n for (Map.Entry<Integer, Integer> e: _map.entrySet()) {\n if (e.getValue().equals(e.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the given element from the CedingTransactions array. This is achieved by marking the element for removal.
public void removeFromCedingTransactions(entity.WCCededPremiumTransaction element);
[ "public void removeFromOriginTransactionOnsetArray(entity.TransactionOnset element) {\n __getInternalInterface().removeArrayElement(ORIGINTRANSACTIONONSETARRAY_PROP.get(), element);\n }", "public void removeFromTAccountTransactions(entity.TAccountTransaction element) {\n __getInternalInterface().remo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Valuation' containment reference. If the meaning of the 'Valuation' containment reference isn't clear, there really should be more of a description here...
Expression<Domain, Double> getValuation();
[ "static double getAssessmentValue(double propertyValue) {\n return propertyValue * 0.6;\n }", "public java.lang.String getVal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Process a possible intersection between the edges associated to the left events le1 and le2
private int possibleIntersection(SweepEvent le1, SweepEvent le2) { // you can uncomment these two lines if self-intersecting polygons are not allowed // if (le1.polygonType.equals(le2.polygonType)) { // // self intersection // return 0; // } Intersection intersectio...
[ "Point2D leftIntersectionPoint(Line2D l);", "private void checkForIntersection( SegmentExtended s2, SegmentExtended s1) {\n final Optional<Point> possibleIntersection = s1.getIntersection(s2);\n if(possibleIntersection.isPresent()){\n final Point intersection = possibleIntersection.get();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of NodeConfiguration class.
public NodeConfiguration() { }
[ "Configuration createConfiguration();", "public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}", "NodeImpl() {\n configurationName = \"default\";\n logger.log(Level.INFO, \"Creating node: \" + configurationName);\n\n try {\n initRuntime();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update the user with information from userDto
public User updateUser(long id, UserDto userDto);
[ "void updateUser(UsersEntity userDetail);", "void updateUser(User user);", "@PutMapping(\"/user/{id}\")\n public UserDto userUpdate(@PathVariable long id, @RequestBody UserDto user) {\n\n\n return userService.update(id, user);\n\n }", "public Users updateUserInfo(Users user);", "User updateUser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the pool timeout in seconds, defaults to 60.
public SimpleServer setPoolTimeout(long poolTimeout) { this.poolTimeout = poolTimeout; return this; }
[ "public void setNortpTimeout(int seconds);", "void setLockTimeout(int seconds);", "public void setInstanceLevelSocketTimeout(int timeout);", "void setTimeOut(int timeOut);", "T setProcessTimeout(Integer processTimeout);", "void setDefaultTimeout(int timeout);", "void setOperationTimeout(int timeout) thr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Message Parameter'.
MessageParameter createMessageParameter();
[ "ParameterObject createParameterObject();", "Parameter createParameter();", "public abstract Parameter create();", "Param createParam();", "public Parameter() {\n }", "Parameter() {\n }", "ParameterStructInstance createParameterStructInstance();", "Message createMessage();", "PARAM createPARAM(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }