<commit_before><?php


<commit_msg>Script Verification Embargoed access ok<commit_after><?php

$db = new MongoClient("mongodb://localhost:27017");
$collection= $db->selectCollection('ORDaR', 'Manual_Depot');
$query=array('INTRO.ACCESS_RIGHT' => 'Embargoed');
$cursor = $collection->find($query);
foreach ( $cursor as $id => $value )
{
    $now= Date('Y-m-d');
    $embargoeddate=$value['INTRO']['PUBLICATION_DATE'];
    if($embargoeddate <= $now) {
    	$update = $collection->update(array("_id" => $value['_id']), array('$set' => array("INTRO.ACCESS_RIGHT" => "Open")));

    }

}

{'fraction_non_alphanumeric': 0.22164948453608246, 'fraction_numerical': 0.00859106529209622, 'mean_word_length': 6.024096385542169, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4119730', 'n_tokens_mistral': 213, 'n_tokens_neox': 206, 'n_words': 32}