Snippets Collections
Information Extraction (IE) is a natural language processing (NLP) technique that involves automatically extracting structured information from unstructured text.

Information extraction is the technique of creating database entries. 

The goal of information extraction is to transform raw textual data into useful information by identifying and extracting specific pieces of information, such as entities, relationships, and events.

The field such as street, city, state, pin-code are extracted from instances of addresses from web pages. 

The instance of weather report with temperature, wind, speed, humidity are extracted. 

Information retrieval systems and full text parser can be mapped by mid system called information extraction. 

Information retrieval (IR) is the process of obtaining relevant information from a large repository or database. This retrieval is based on a user's query or information need. The goal of information retrieval is to efficiently and effectively locate and deliver information that is relevant to the user's request.
For example, information retrieval is widely used in popular search engine like Google, Yahoo, Bing etc. 

Here are the key characteristics of information retrieval:
Content Organization:
IR systems organize and index vast amounts of data or documents for efficient and effective retrieval.

Query Processing:
IR systems process user queries, which can be expressed in various formats, ranging from simple keyword queries to complex Boolean expressions or natural language queries.

Relevance Ranking:
Results are ranked based on their relevance to the user's query. Various algorithms and ranking models are employed to determine the order in which results are presented to the user.

Scalability:
IR systems are designed to handle large and diverse datasets. They should be scalable to accommodate growing volumes of data without compromising performance.

Information Retrieval Models:
Different IR models, such as Boolean model, Vector Space model, and Probabilistic model, define how documents are represented and how relevance is assessed.
In multi-agent systems (MAS), negotiation and bargaining are essential mechanisms that enable autonomous agents to interact, make joint decisions, and coordinate their activities. These processes are crucial for resolving conflicts, reaching agreements, and achieving collective goals in a distributed and decentralized environment. 

Negotiation is the process by which agents communicate and exchange information to reach mutually acceptable agreements. It involves a series of interactions where agents propose, counter-propose, and modify their positions until an agreement is reached or the negotiation is terminated.

Types of Negotiation:

Distributive Negotiation: Agents engage in distributive negotiation when there is a fixed amount of resources to be divided among them. This type often involves zero-sum games, where one agent's gain is another agent's loss.

Integrative Negotiation: Integrative negotiation aims to create value by identifying opportunities for mutually beneficial agreements. Agents work together to find solutions that maximize joint benefits.

Bargaining:

Definition: Bargaining is a subset of negotiation that specifically focuses on the process of reaching agreements by making offers, counteroffers, and concessions. 

Any negotiation and bargaining mechanism should have the following attributes: 

Efficiency: Negotiating should be done without wasting a lot of time or resources.

Stability: Once an agreement is made, no one should want to back out because it benefits everyone involved.

Simplicity: The negotiation process should be easy to understand and not too complicated to follow.

Distribution: No single person should have all the power; decisions should be made by everyone involved.

Symmetry: Everyone should be treated fairly, and the process should not favor one person over another without good reason.
In multiagent systems (MAS), agents interact with each other to achieve individual and collective goals. Arguments in this context refer to the communication and negotiation mechanisms used by agents to exchange information, reach agreements, and make decisions. These arguments can take various forms and play a crucial role in resolving conflicts, sharing knowledge, and coordinating actions among autonomous agents. 

Agents put forth claims or propositions during interactions. These claims represent a position or statement that an agent asserts as true or desirable.

There are types of arguments as described below,
(a) Informational arguments: (Beliefs->Belief format) e.g. If it is cloudy, it might rain.
(b) Motivational arguments: (Beliefs, desires->Desire format) e.g. If it is cloudy and you want
to get out then you don’t want to get wet.
(c) Practical arguments: (Belief, sub -goalsGoal format) e.g. If it is cloudy and you own a
raincoat then put the raincoat.
(d) Social arguments: (social commentsGoal, desire format) e.g. I will stop at the corner because
the law say so. e.g. I can’t do that, I promise to my mother that I won’t.
(e) Interactions (binary or collective) between arguments:
(1) Conflict (defeat) format e.g. attacks 
There are interactions of support-type that are used for collective binary arguments in multi
agents system
DECLARE @pattern varchar(52) = '0123456789 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
SELECT 
   v.[Text], 
   REPLACE(
      TRANSLATE(
         v.[Text],
         REPLACE(TRANSLATE(v.[Text], @pattern, REPLICATE('a', LEN(@pattern))), 'a', ''),
		 REPLICATE('~', LEN(REPLACE(REPLACE(TRANSLATE(v.[Text], @pattern, REPLICATE('a', LEN(@pattern))), 'a', ''), ' ', '.')))
      ),
      '~',
      ''
   ) AS AlphaNumericCharacters
FROM (VALUES
   ('abc01234def5678ghi90jkl#@$&"'),
   ('1234567890'),
   ('JAHDBESBN%*#*@*($E*sd55bn')
) v ([Text]);
function custom_login_logo() {

    echo '<style type="text/css">

        h1 a { background-image: url(https://saidatul.com/wp-content/uploads/202/01/logo.png) !important; }
4
    </style>';

}

add_action('login_head', 'custom_login_logo');

​
add_filter( 'woocommerce_checkout_cart_item_quantity', 'bbloomer_checkout_item_quantity_input', 999,  );

  
3
function bbloomer_checkout_item_quantity_input( $product_quantity, $cart_item, $cart_item_key ) {

   $product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );

   $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key );

   if ( ! $product->is_sold_individually() ) {

      $product_quantity = woocommerce_quantity_input( array(

         'input_name'  => 'shipping_method_qty_' . $product_id,
9
         'input_value' => $cart_item['quantity'],

         'max_value'   => $product->get_max_purchase_quantity(),

         'min_value'   => '0',

      ), $product, false );

      $product_quantity .= '<input type="hidden" name="product_key_' . $product_id . '" value="' . $cart_item_key . '">';

   }

   return $product_quantity;

}

 

// ----------------------------

// Detect Quantity Change and Recalculate Totals

 

add_action( 'woocommerce_checkout_update_order_review', 'bbloomer_update_item_quantity_checkout' );
add_action('wp_footer', 'cart_update_qty_script');

function cart_update_qty_script() {

    if (is_cart()) :

?>

    <script type="text/javascript">

        (function ($) {

            $('div.woocommerce').on('change', '.qty', function () {

                $('[name=update_cart]').prop('disabled', false);

                $('[name=update_cart]').trigger('click');

            });

        }) (jQuery);

    </script>

<?php

    endif;

}

​
Automation and Efficiency-
same as goal
Decision making and predictive analysis-
same as goal
Personalization and User Experience-
same as goal
Healthcare and Medicine
Smart computers can help doctors by looking at medical images and suggesting treatments.. It also contributes to drug discovery and development.
Natural Language Processing (NLP)-
same as goal
Education and Learning
Smart computers can help you learn better by adjusting lessons to fit your style. It's like having a tutor that understands how you learn best. AI-powered educational tools provide tutoring, feedback, and assistance to learners, supplementing traditional teaching methods.
Content Creation: 
AI is involved in generating art, music, and other creative content. It can assist artists and creators in the production of new and innovative works.
חפשי את הסלקטור שלו בCSS ותני לו
Order: 999;

אם לא עובד אז צריך להגדיר 
display: flex;
על ״האבא״ שלו
(function($){
	  $(document).ready(function() {
	    var Selectors = $('.sptp-member-social li a');
	    Selectors.each(function(){
		    var originalTitle = $(this).attr('title');
		    $(this).mouseenter(function() {
		      $(this).removeAttr('title');
		    });
		    $(this).mouseleave(function() {
		      $(this).attr('title', originalTitle);
		    });
	    })
	  });
})(jQuery);
apex_application.g_print_success_message := 'Success message';
using System.Collections;
using Sestem.Collections.Generic;
using UnityEngine;
 
public class Balloon : MonoBehaviour
{
  	public int scoreToGive = 1;
  	public int clicksToPop = 5; 
  	public float scaleIncreasePerClick = 0.1f;
  	public ScoreManager scoreManager;
  
	void OnMouseDown()
  	{
      clicksToPop -= 1;
      transform.localScale += Vector3.one * scaleIncreasePerClick;
      if (clicksToPop == 0)
      {
        scoreManager.IncreaseScore(scoreToGive);
        Destroy(gameObject);
      }
    }
  
}
<?php
function formatPhoneNumber($phoneNumber) {
    // Remove all non-digit characters
    $phoneNumber = preg_replace('/\D/', '', $phoneNumber);

    // Add formatting based on your desired format
    return str_replace(['000', '111', '222', '333', '444', '555', '666', '777', '888', '999'], ['(', ') ', '-'], $phoneNumber);
}

// Test the function
$phoneNumber = "123-456-7890";
$formattedNumber = formatPhoneNumber($phoneNumber);
echo "Formatted Phone Number: " . $formattedNumber;
# 1- > Deleting based on _id in baselineTable

from bson import ObjectId
import json

file_path = 'delete_ids'

with open(file_path, 'r') as file:
    data = json.load(file)

data_array = data['data']

delete_object_ids = [ObjectId(item) for item in data_array]
db["participantBaselineAndFollowupData"].delete_many({"_id": {"$in": delete_object_ids}})
#to check
# records = db["participantBaselineAndFollowupData"].find({"_id": {"$in": delete_object_ids}})
# count=0
# for record in records:
#     count=count+1
#     print(record["_id"])
# print(count)
#4-> Refer Subscription based on date.(2 subscription)

import json
from datetime import datetime
from bson.objectid import ObjectId

with open('referSubByDate.json', 'r') as file:
    data = json.load(file)

not_found_ids = []
not_updated_ids = []

for item in data['data']:
    _id = item['id']
    date = item['date']
    date_object = datetime.strptime(date, "%d/%m/%Y")
    new_date = date_object.strftime("%Y-%m-%dT%H:%M:%S.000+00:00")
    
    participant_record = db["participantBaselineAndFollowupData"].find_one({"_id": ObjectId(_id)})
    
    if participant_record:
        user_id = participant_record["participantId"]
        
        subscription_record = db["subscription"].find_one({"userId": user_id, "startDate": new_date})
        
        if subscription_record:
            startDate = subscription_record["startDate"]
            program_code = subscription_record["subscriptionPlan"].get("programCode")
            
            result = db["participantBaselineAndFollowupData"].update_one(
                {"_id": participant_record["_id"]},
                {"$set": {"programCode": program_code, "programStartDate": startDate}}
            )
            
            if result.modified_count == 0:
                not_updated_ids.append(_id)
        else:
            not_updated_ids.append(_id)
    else:
        not_found_ids.append(_id)

print("Completed")

if not_found_ids:
    print(f"IDs not found: {not_found_ids}")

if not_updated_ids:
    print(f"IDs not updated: {not_updated_ids}")

        
    

#3-> one baseline 2 subs refer the given program code
import json

file_path = "oneBase2Sub"
try:
    with open(file_path, "r") as file:
        data1 = json.load(file)
        # print(data)

    data_list = list(data1.items())
    # print(data_list)
except Exception as e:
    print("Error:", e)


print(len(data_list))









from bson.objectid import ObjectId

not_found_ids = []
not_updated_ids = []

for data_tuple in data_list:
    _id, program_code = data_tuple

    participant_record = db["participantBaselineAndFollowupData"].find_one({"_id": ObjectId(_id)})

    if participant_record:
        user_id = participant_record["participantId"]

        subscription_record = db["subscription"].find_one({"userId": user_id, "subscriptionPlan.programCode": program_code})
        
        if subscription_record:
            program_start_date = subscription_record.get("startDate", "")
            program_code_from_subscription = subscription_record["subscriptionPlan"].get("programCode", "")
            
            result = db["participantBaselineAndFollowupData"].update_one(
                {"_id": participant_record["_id"]},
                {"$set": {"programCode": program_code, "programStartDate": program_start_date}}
            )
            
            if result.modified_count == 0:
                not_updated_ids.append(_id)
        else:
            not_updated_ids.append(_id)
    else:
        not_found_ids.append(_id)

print("Completed")


if not_found_ids:
    print(f"IDs not found: {len(not_found_ids)}")
    print(f"IDs not found: {not_found_ids}")

if not_updated_ids:
    print(f"IDs not updated: {len(not_updated_ids)}")
    print(f"IDs not updated: {not_updated_ids}")
# 2-> 1 subs 1 baseline
import json

file_path = "referOneSub"

with open(file_path, 'r') as file:
    data = json.load(file)

data_array = data['data']
insert_object_ids = [ObjectId(_id) for _id in data_array]
print(len(insert_object_ids))
# print(insert_object_ids)




from bson.objectid import ObjectId

not_found_ids = []
not_updated_ids = []

for _id in insert_object_ids:
    record = db["participantBaselineAndFollowupData"].find_one({"_id": _id})
    
    if record:
        user_id = record["participantId"]
        
        subscription = db["subscription"].find_one({"userId": user_id})
        
        if subscription:
            program_start_date = subscription.get("startDate", "")
            program_code = subscription["subscriptionPlan"].get("programCode", "")
            
            result = db["participantBaselineAndFollowupData"].update_one(
                {"_id": _id},
                {"$set": {"programCode": program_code, "programStartDate": program_start_date}}
            )
            
            if result.modified_count == 0:
                not_updated_ids.append(_id)
        else:
            not_updated_ids.append(_id)
    else:
        not_found_ids.append(_id)

print("Completed")

if not_found_ids:
    print(f"IDs not found: {print(not_found_ids)}")

if not_updated_ids:
    print(f"IDs not updated: {len(not_updated_ids)}")
    print(f"IDs not updated: {not_updated_ids}")

    
using System.Collections;
using Sestem.Collections.Generic;
using UnityEngine;
 
public class Balloon : MonoBehaviour
{
	public int score;
  
  	public void IncreaseScore(int amount)
  	{
    	score += amount;
  	}
  
}
Sub ListFilesInFolderAndSubfolders()
    On Error GoTo ErrHandler
    
    Dim selectedFolder As FileDialog
    Set selectedFolder = Application.FileDialog(msoFileDialogFolderPicker)
    
    Dim selectedPath As String
    If selectedFolder.Show = -1 Then
        selectedPath = selectedFolder.SelectedItems(1)
        
        Dim ws As Worksheet
        Set ws = ThisWorkbook.Sheets.Add
        
        ws.Cells(1, 1).Value = "Folder Path"
        ws.Cells(1, 2).Value = "File Name"
        
        Dim startCell As Range
        Set startCell = ws.Cells(2, 1)
        
        ListFilesRecursive selectedPath, selectedPath, startCell
        
        MsgBox "File listing completed.", vbInformation
    Else
        MsgBox "No folder selected.", vbExclamation
    End If
    
    Exit Sub
    
ErrHandler:
    MsgBox "An error occurred: " & Err.Description, vbCritical
End Sub

Sub ListFilesRecursive(ByVal folderPath As String, ByVal parentFolderPath As String, ByRef targetCell As Range)
    Dim folder As Object, subFolder As Object
    Dim file As Object
    Dim fs As Object
    Dim subFolderPath As String
    
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set folder = fs.GetFolder(folderPath)
    
    For Each file In folder.Files
        targetCell.Value = parentFolderPath
        targetCell.Offset(0, 1).Value = file.Name
        Set targetCell = targetCell.Offset(1, 0)
    Next file
    
    For Each subFolder In folder.SubFolders
        subFolderPath = subFolder.Path
        ListFilesRecursive subFolderPath, subFolderPath, targetCell
    Next subFolder
    
    Set fs = Nothing
    Set folder = Nothing
    Set subFolder = Nothing
    Set file = Nothing
End Sub

class A
{
    void add(int ... a)
    {
        int sum=0;
        for(int x:a)
        {
            sum=sum+x;
        }
        System.out.println("sum of numbers will be "+sum);
    }
}
class B 
{
    public static void main(String[] args)
    {
        A r= new A();
        r.add();
        r.add(10,20);
        r.add(20,30);
        r.add(20,20);
    }
}
class A
{
    A Show()
    {
        System.out.println("first");
        return this;
    }
}
class B extends A
{
    B Show()
    {
        super.Show();
        System.out.println("second");
        return this;
    }
}
class C
{
    public static void main(String[] args)
    {
        B r = new B();
        r.Show();
    }
    
}
class A
{
    A show()
    {
        System.out.println("super");
        return this; // return as it is 
    }
}
class B extends A
{
    @Override
    B show()
    {
        System.out.println("supreme");
        return this; // return as it is
    }
}
class F
{
    public static void main(String[] args){
        B r= new B();
        r.show();
    }
}
using System.Collections;
using Sestem.Collections.Generic;
using UnityEngine;
 
public class Balloon : MonoBehaviour
{
  	public int scoreToGive = 1;
  	public int clicksToPop = 5; 
  	public float scaleIncreasePerClick = 0.1f;
  
	void OnMouseDown()
  	{
      clicksToPop -= 1;
      transform.localScale += Vector3.one * scaleIncreasePerClick; 

    }
  
}
DATABASES = {
        'default': {
            'ENGINE': 'djongo',
            'NAME': 'DjongoTutorial',
            'ENFORCE_SCHEMA': True,
            'CLIENT': {
                'host': 'mongodb://localhost:27017/'
            }
        }
}
using System.Collections;
using Sestem.Collections.Generic;
using UnityEngine;

public class Balloon : MonoBehaviour
{
  //Start is called before the first frame update
  void Start()
  {
    
  }
  
  //Update is called once per frame
  void Update()
  {
    
  }
  
}
const percentageMatch = (y / x) * 100;
console.log(`Percentage Match: ${percentageMatch}%`);
async function qdb(sanitizedText) {
    try {
        const query = `
            SELECT answer
            FROM openai_model
            WHERE text='${sanitizedText}'
        `;

        const queryResult = await MindsDB.SQL.runQuery(query);
        console.log(queryResult);
    } catch (error) {
        console.log(error);
    }
}
CREATE MODEL openai_model
PREDICT answer
USING
    engine = 'openai_engine',
    prompt_template = 'Generate five multiple-choice questions with correct answers to assess a candidate's knowledge in deep tech areas. Ensure questions cover a range of topics and difficulty levels based on their resume. Examples may include specific programming languages, tools, frameworks, and best practices.',
    text:{{text}},
    max_tokens = 500,
    temperature = 0.3,
    api_key = 'your-api-key';
CREATE ML_ENGINE openai_engine
FROM openai
USING
	api_key = 'your-openai-api-key';
async function connectToMindsDB() {
    try {
        await MindsDB.connect({
            host: 'http://127.0.0.1:47334'
        });
        console.log('Connected to MindsDB');
    } catch (error) {
        console.error('Error connecting to MindsDB:', error);
    }
}
async function processPDF() {
    try {
        let dataBuffer = fs.readFileSync('/home/phineas/Documents/21113032_Default Resume_2023-10-31_19_03_01.pdf');
        const data = await pdf(dataBuffer);
        
        data.text = data.text.replace(/[\u2018\u2019']/g, '');
        const sanitizedText = data.text.replace(/'/g, "''");

        console.log(sanitizedText);

        await connectToMindsDB();
        await qdb(sanitizedText);
    } catch (error) {
        console.error('Error processing PDF:', error);
    }
}

processPDF();
export default function JobDescriptionCard({ details, j_id }) {
    const [expanded, setExpanded] = React.useState(false);

    const handleExpandClick = () => {
        setExpanded(!expanded);
    };

    return (
        <Card sx={{ width: "auto" }}>
            <CardHeader title={details?.job_title} subheader="July, 2023" />
            <CardContent>
                <Typography variant="body2" color="text.secondary">
                    {details?.jd}
                </Typography>
            </CardContent>
            <CardActions disableSpacing>
                <IconButton aria-label="share">
                    <ShareIcon />
                    <p
                        onClick={() => {
                            navigator.clipboard.writeText(`http://localhost:3000/job/${j_id}`);
                            alert("Link Copied ");
                        }}
                        style={{ marginLeft: '10px', fontSize: '15px' }}
                    >
                        http://localhost:3000/job/{j_id}
                    </p>
                </IconButton>
            </CardActions>
        </Card>
    );
}
<Modal open={isOpen} onClose={() => setIsOpen(false)}>
        <div className="add-job-modal">
          {flag ? (
            <>
              <h1 className="gradient__text" style={{ padding: "20px" }}>
                Job has been successfully posted. Share the following link with
                the candidates for hiring!!!
              </h1>
              <div className="modal-link">
                <a
                  className="modal-a"
                  style={{ paddingLeft: "30px", color: "blue" }}
                  href={http://localhost:3000/job/${jobId}}
                >
                  http://localhost:3000/job/{jobId}
                </a>
                <button
                  className="copy-button"
                  onClick={() =>
                    handlecopy(http://localhost:3000/job/${jobId})
                  }
                >
                  {buttontxt}
                </button>
              </div>
# Fetch changes from the remote without merging
git fetch origin main

# Rebase your local changes on top of the changes fetched from the remote
git rebase origin/main

# Now you can push your changes
git push origin main
import mongoose from 'mongoose';
const { Schema } = mongoose;

const BlogSchema = new Schema({
  title: String, // String is shorthand for {type: String}
  author: String,
  body: String,
  isDone:Boolean
});
export const Blog = mongoose.model('Todo', BlogSchema)
Static Server boolean validateURL(URL    _url)
{
    Boolean   xppBool;
    System.Boolean netBool;
    Str matchURLPattern = "^(https?://)"
        + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" //user@
        + @"(([0-9]{1,3}\.){3}[0-9]{1,3}" // IP- 199.194.52.184
        + "|" // allows either IP or domain
        + @"([0-9a-z_!~*'()-]+\.)*" // tertiary domain(s)- www.
        + @"([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\." // second level domain
        + "[a-z]{2,6})" // first level domain- .com or .museum
        + "(:[0-9]{1,4})?" // port number- :80
        + "((/?)|" // a slash isn't required if there is no file name
        + "(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";
    System.Text.RegularExpressions.Match myMatch;
    new InteropPermission(InteropKind::ClrInterop).assert();
    myMatch = System.Text.RegularExpressions.Regex::Match(_url,matchURLPattern);
    netBool = myMatch.get_Success();
    xppBool = netBool;
    CodeAccessPermission::revertAssert();
    Return xppBool;

}
Static Server boolean validateEMail(EMail    _eMail)
{
    Boolean   xppBool;
    System.Boolean netBool;
    Str MatchEmailPattern =
       @"^(([\w-]+\.)+[\w-]+|([a-zA-Z]{1}|[\w-]{2,}))@"
     + @"((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.([0-1]?
       [0-9]{1,2}|25[0-5]|2[0-4][0-9])\."
     + @"([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\.([0-1]?
       [0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|"     
     + @"([\w-]+\.)+[a-zA-Z]{2,4})$";
    System.Text.RegularExpressions.Match myMatch;
    ;

    new InteropPermission(InteropKind::ClrInterop).assert();
    myMatch = System.Text.RegularExpressions.Regex::Match(_eMail,MatchEmailPattern);
    netBool = myMatch.get_Success();
    xppBool = netBool;
    CodeAccessPermission::revertAssert();
    Return xppBool;
} 
// Notify user when role is changed

function notify_user_on_role_change( $user_id, $new_role ) {

    $user_info = get_userdata( $user_id );

    $to = $user_info->user_email;

    $subject = 'Your role has been changed';

    $message = 'Hello ' . $user_info->display_name . ', your role has been changed to ' . $new_role . '.';

    wp_mail( $to, $subject, $message );

}

add_action( 'set_user_role', 'notify_user_on_role_change', 10, 2 );
// Hide update notifications for non-admin users

function hide_update_notifications() {

    if ( ! current_user_can( 'manage_options' ) ) {

        remove_action( 'admin_notices', 'update_nag', 3 );

    }

}

add_action( 'admin_head', 'hide_update_notifications' );

​
Query query = new Query();
QueryBuildDataSource qbds , qbdsCheck;
SysTableLookup _sysTableLookup = SysTableLookup::newParameters(tableNum(PurchReqTable),This);

qbds= query.addDataSource(tableNum(PurchReqTable));

qbds.addRange(fieldNum(PurchReqTable , RequisitionStatus)).value(enum2Str(PurchReqRequisitionStatus::Approved));
qbds.addRange(fieldNum(PurchReqTable , NW_RequestCategory)).value(enum2Str(NW_RequestCategory::RFP_RFQ));

qbdsCheck = qbds.addDataSource(tableNum(PurchRFQCaseTable));
qbdsCheck.addLink(fieldNum(PurchReqTable , PurchReqId) ,fieldNum(PurchRFQCaseTable , PurchReqId));
qbdsCheck.joinMode(JoinMode::NoExistsJoin);


_sysTableLookup.parmQuery(query);
_sysTableLookup.addLookupfield(fieldNum(PurchReqTable, PurchReqId));
_sysTableLookup.addLookupfield(fieldNum(PurchReqTable, PurchReqName ));

_sysTableLookup.performFormLookup();

//cancel the call to super() to prevent the system from trying to show 
//the lookup form twice and cause an error.
FormControlCancelableSuperEventArgs cancelableSuperEventArgs = e as FormControlCancelableSuperEventArgs;
cancelableSuperEventArgs.CancelSuperCall();
    
class D
{
    int a=10;
    D()
    {
        System.out.println(a);
    }
    public static void main(String[] args){
        
        D r = new D();
        
    }
}
class D
{
    int a=10;
    D()
    {
        System.out.println(a);
    }
    public static void main(String[] args){
        
        D r = new D();
        
    }
}
class D
{
    int a=10;
    public static void main(String[] args){
        
        D r = new D();
        System.out.println(r.a);
    }
}
// Rename Description tab

add_filter( 'woocommerce_product_tabs', 'misha_rename_description_tab' );

function misha_rename_description_tab( $tabs ) {

    $tabs[ 'description' ][ 'title' ] = 'Penerangan Produk';

    return $tabs;

}

​
final class D
{
    void number()
    {
        System.out.println("true");
    }
    
}
class P extends D // it will show error as its ssinged as final ....
{
   
    void number()
    {
        System.out.println("true");
    }
    
}

class O
{
    public static void main(String[] args)
    {
        P r = new P();
        r.number();
        
}
}
PEAS is an AI agent representation system that focuses on evaluating the performance of the environment, sensors, and actuators. We need to be aware of our job environment to create an agent. The PEAS system aids in defining the task environment. Performance, Environment, Actuators, and Sensors are abbreviated as PEAS. AI algorithms can be written more effectively by identifying PEAS.


Performance measures: These are the parameters used to measure the performance of the agent. How well the agent is carrying out a particular assigned task.
Environment: It is the task environment of the agent. The agent interacts with its environment. It takes perceptual input from the environment and acts on the environment using actuators.
Actuators: These are the means of performing calculated actions on the environment. For a human agent; hands and legs are the actuators.
Sensors: These are the means of taking the input from the environment. For a human agent; ears, eyes, and nose are the sensors.

Examples of PEAS Descriptors
1. PEAS Descriptor of Automated Car Driver
Performance

Safety − The automated system needs to be able to operate the vehicle securely without rushing.

Optimized Speed − Depending on the environment, automated systems should be able to maintain the ideal speed.

Journey − The end-user should have a comfortable journey thanks to automated systems.

Environment

Roads − Automated automobile drivers ought to be able to go on any type of route, from local streets to interstates.

Traffic Conditions − For various types of roadways, there are various traffic conditions to be found.

Actuators

Steering wheel − to point an automobile in the appropriate direction.

Gears and accelerators − adjusting the car's speed up or down.

Sensors

In-car driving tools like cameras, sonar systems, etc. are used to collect environmental data.
star

Mon Jan 15 2024 17:21:00 GMT+0000 (Coordinated Universal Time)

@nistha_jnn

star

Mon Jan 15 2024 17:09:00 GMT+0000 (Coordinated Universal Time)

@nistha_jnn

star

Mon Jan 15 2024 16:03:35 GMT+0000 (Coordinated Universal Time)

@nistha_jnn

star

Mon Jan 15 2024 15:12:01 GMT+0000 (Coordinated Universal Time)

@nistha_jnn

star

Mon Jan 15 2024 14:02:02 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/1007697/how-to-strip-all-non-alphabetic-characters-from-string-in-sql-server

@rick_m #sql

star

Mon Jan 15 2024 12:58:18 GMT+0000 (Coordinated Universal Time)

@brozool

star

Mon Jan 15 2024 12:17:40 GMT+0000 (Coordinated Universal Time)

@brozool

star

Mon Jan 15 2024 12:16:58 GMT+0000 (Coordinated Universal Time)

@brozool

star

Mon Jan 15 2024 11:39:08 GMT+0000 (Coordinated Universal Time)

@nistha_jnn

star

Mon Jan 15 2024 10:40:01 GMT+0000 (Coordinated Universal Time) https://codepen.io/jh3y/pen/MWxbrEp

@passoul #css

star

Mon Jan 15 2024 10:39:39 GMT+0000 (Coordinated Universal Time)

@odesign

star

Mon Jan 15 2024 09:09:07 GMT+0000 (Coordinated Universal Time) https://codeshare.io/vwylnl

@Pulak

star

Mon Jan 15 2024 09:05:21 GMT+0000 (Coordinated Universal Time) https://www.kaust.edu.sa/en/study/faculty/kuo-wei-huang

@pk20

star

Mon Jan 15 2024 08:52:44 GMT+0000 (Coordinated Universal Time)

@austin #sql/pl/sql #oracle #apex

star

Mon Jan 15 2024 07:30:13 GMT+0000 (Coordinated Universal Time)

@iliavial #c#

star

Mon Jan 15 2024 07:02:52 GMT+0000 (Coordinated Universal Time)

@kghamdi96

star

Mon Jan 15 2024 07:01:35 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin ##jupyter #aggregation

star

Mon Jan 15 2024 07:00:35 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin ##jupyter #aggregation

star

Mon Jan 15 2024 07:00:07 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin ##jupyter #aggregation

star

Mon Jan 15 2024 06:59:31 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin ##jupyter #aggregation

star

Mon Jan 15 2024 06:25:15 GMT+0000 (Coordinated Universal Time)

@iliavial #c#

star

Mon Jan 15 2024 06:23:22 GMT+0000 (Coordinated Universal Time)

@miskat80

star

Mon Jan 15 2024 05:46:35 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Mon Jan 15 2024 05:28:35 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Mon Jan 15 2024 05:16:12 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Mon Jan 15 2024 05:14:32 GMT+0000 (Coordinated Universal Time)

@iliavial #c#

star

Mon Jan 15 2024 05:05:13 GMT+0000 (Coordinated Universal Time)

@Hritujeet

star

Mon Jan 15 2024 05:03:20 GMT+0000 (Coordinated Universal Time)

@iliavial #c#

star

Mon Jan 15 2024 04:00:29 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Mon Jan 15 2024 03:59:40 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Mon Jan 15 2024 03:58:35 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Mon Jan 15 2024 03:57:26 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Mon Jan 15 2024 03:55:20 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Mon Jan 15 2024 03:33:30 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Mon Jan 15 2024 03:29:16 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Mon Jan 15 2024 03:26:31 GMT+0000 (Coordinated Universal Time)

@_rosetteeee_

star

Sun Jan 14 2024 18:29:50 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/?__cf_chl_tk

@eziokittu

star

Sun Jan 14 2024 14:56:45 GMT+0000 (Coordinated Universal Time)

@Hritujeet

star

Sun Jan 14 2024 11:32:58 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Sun Jan 14 2024 11:31:24 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Sun Jan 14 2024 11:23:26 GMT+0000 (Coordinated Universal Time)

@brozool

star

Sun Jan 14 2024 11:22:39 GMT+0000 (Coordinated Universal Time)

@brozool

star

Sun Jan 14 2024 11:04:50 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Sun Jan 14 2024 10:47:49 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Sun Jan 14 2024 10:47:22 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Sun Jan 14 2024 10:45:40 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Sun Jan 14 2024 10:34:43 GMT+0000 (Coordinated Universal Time)

@brozool

star

Sun Jan 14 2024 10:12:49 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151 #java

star

Sun Jan 14 2024 08:38:10 GMT+0000 (Coordinated Universal Time) https://turbo.spribegaming.com/mines?currency

@hancysidana

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension