<commit_before><?php

/***********************************************************
 * RepriceASINs.php grabs items from the database and queries
 * Amazon for the most up-to-date pricing for each item.
 *
 * These prices are then updated in the database.
 **********************************************************/

require_once('GetLowestOfferListingsForASIN.php');
$requestPrice = $request;

// Define database parameters.
$servername = "172.16.58.3";
$username = "test";
$password = "<PASSWORD>";
$dbname = "klasrunc_pricingTEST";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
} 
echo "Connected successfully";


// Call GetLowestOfferListingsForASIN to get price, list condition, and fulfillment channel.
// Run info through algorithm to set pricing.
// Save price in database.
// Repeat for all items.

exit;
// Reset throttling parameter
$requestCount = 0;

foreach($itemArray as $key => &$item) {
    // Stop current loop iteration if no ASIN set.
    if (!array_key_exists("ASIN", $item)) {continue;}

    // Setup request to be passed to Amazon and increment counter.
    $asinObject = new MarketplaceWebServiceProducts_Model_ASINListType();<commit_msg>Connect to database with correct login info<commit_after><?php

/***********************************************************
 * RepriceASINs.php grabs items from the database and queries
 * Amazon for the most up-to-date pricing for each item.
 *
 * These prices are then updated in the database.
 **********************************************************/

require_once('GetLowestOfferListingsForASIN.php');
$requestPrice = $request;

// Define database parameters.
$servername = "localhost";
$username = "klasrunc_test";
$password = "<PASSWORD>";
$dbname = "klasrunc_pricingTEST";

// Create connection
$db = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($db->connect_errno) {
    die("Connection failed: " . $db->connect_error);
} 
echo "Connected successfully";


// Call GetLowestOfferListingsForASIN to get price, list condition, and fulfillment channel.
// Run info through algorithm to set pricing.
// Save price in database.
// Repeat for all items.

exit;
// Reset throttling parameter
$requestCount = 0;

foreach($itemArray as $key => &$item) {
    // Stop current loop iteration if no ASIN set.
    if (!array_key_exists("ASIN", $item)) {continue;}

    // Setup request to be passed to Amazon and increment counter.
    $asinObject = new MarketplaceWebServiceProducts_Model_ASINListType();
{'fraction_non_alphanumeric': 0.19485433219825957, 'fraction_numerical': 0.0037835792659856224, 'mean_word_length': 4.875555555555556, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '369945', 'n_tokens_mistral': 750, 'n_tokens_neox': 721, 'n_words': 241}