Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringclasses
220 values
completions
listlengths
1
638
labels
listlengths
1
638
source
stringclasses
1 value
other_info
dict
index
int64
0
24.8k
Determine whether the Chrome code is vulnerable or not.
[ "std::string CellularNetwork::ActivationStateToString(\n ActivationState activation_state) {\n switch (activation_state) {\n case ACTIVATION_STATE_ACTIVATED:\n return l10n_util::GetStringUTF8(\n IDS_CHROMEOS_NETWORK_ACTIVATION_STATE_ACTIVATED);\n break;\n case ACTIVATION_STATE_ACTIVATIN...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1579995512990...
0
Determine whether the Chrome code is vulnerable or not.
[ " virtual void AddCellularDataPlanObserver(CellularDataPlanObserver* observer) {\n if (!data_plan_observers_.HasObserver(observer))\n data_plan_observers_.AddObserver(observer);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3099632118316...
1
Determine whether the Chrome code is vulnerable or not.
[ " virtual void AddNetworkManagerObserver(NetworkManagerObserver* observer) {\n if (!network_manager_observers_.HasObserver(observer))\n network_manager_observers_.AddObserver(observer);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "8700152771849...
2
Determine whether the Chrome code is vulnerable or not.
[ " virtual void AddNetworkManagerObserver(NetworkManagerObserver* observer) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "4210161228556...
3
Determine whether the Chrome code is vulnerable or not.
[ " virtual void AddNetworkObserver(const std::string& service_path,\n NetworkObserver* observer) {\n DCHECK(observer);\n if (!EnsureCrosLoaded())\n return;\n NetworkObserverMap::iterator iter = network_observers_.find(service_path);\n NetworkObserverList* oblist;\n ...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1558393362407...
4
Determine whether the Chrome code is vulnerable or not.
[ " virtual void AddNetworkObserver(const std::string& service_path,\n NetworkObserver* observer) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "4553143162912...
5
Determine whether the Chrome code is vulnerable or not.
[ "CellularNetwork::CellularNetwork()\n : WirelessNetwork(),\n activation_state_(ACTIVATION_STATE_UNKNOWN),\n network_technology_(NETWORK_TECHNOLOGY_UNKNOWN),\n roaming_state_(ROAMING_STATE_UNKNOWN),\n restricted_pool_(false),\n prl_version_(0) {\n type_ = TYPE_CELLULAR;\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2523803515377...
6
Determine whether the Chrome code is vulnerable or not.
[ "CellularNetwork::CellularNetwork(const CellularNetwork& network)\n : WirelessNetwork(network) {\n activation_state_ = network.activation_state();\n network_technology_ = network.network_technology();\n roaming_state_ = network.roaming_state();\n restricted_pool_ = network.restricted_pool();\n service_name_...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1676528393284...
7
Determine whether the Chrome code is vulnerable or not.
[ "CellularNetwork::CellularNetwork(const ServiceInfo* service)\n : WirelessNetwork(service) {\n service_name_ = SafeString(service->name);\n activation_state_ = service->activation_state;\n network_technology_ = service->network_technology;\n roaming_state_ = service->roaming_state;\n restricted_pool_ = serv...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2677500538528...
8
Determine whether the Chrome code is vulnerable or not.
[ "void Network::Clear() {\n state_ = STATE_UNKNOWN;\n error_ = ERROR_UNKNOWN;\n service_path_.clear();\n device_path_.clear();\n ip_address_.clear();\n is_active_ = false;\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2445719990203...
9
Determine whether the Chrome code is vulnerable or not.
[ "void WirelessNetwork::Clear() {\n Network::Clear();\n name_.clear();\n strength_ = 0;\n auto_connect_ = false;\n favorite_ = false;\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1756159321267...
10
Determine whether the Chrome code is vulnerable or not.
[ "void CellularNetwork::Clear() {\n WirelessNetwork::Clear();\n activation_state_ = ACTIVATION_STATE_UNKNOWN;\n roaming_state_ = ROAMING_STATE_UNKNOWN;\n network_technology_ = NETWORK_TECHNOLOGY_UNKNOWN;\n restricted_pool_ = false;\n service_name_.clear();\n operator_name_.clear();\n operator_code_.clear();\...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1865569045077...
11
Determine whether the Chrome code is vulnerable or not.
[ "void WifiNetwork::Clear() {\n WirelessNetwork::Clear();\n encryption_ = SECURITY_NONE;\n passphrase_.clear();\n identity_.clear();\n cert_path_.clear();\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3188984638321...
12
Determine whether the Chrome code is vulnerable or not.
[ " void ClearNetworks() {\n if (ethernet_)\n delete ethernet_;\n ethernet_ = NULL;\n wifi_ = NULL;\n cellular_ = NULL;\n STLDeleteElements(&wifi_networks_);\n wifi_networks_.clear();\n STLDeleteElements(&cellular_networks_);\n cellular_networks_.clear();\n STLDeleteElements(&remember...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1007388649388...
13
Determine whether the Chrome code is vulnerable or not.
[ " virtual void ConnectToWifiNetwork(const WifiNetwork* network,\n const std::string& password,\n const std::string& identity,\n const std::string& certpath) {\n DCHECK(network);\n if (!EnsureCrosLoaded())...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1568595800535...
14
Determine whether the Chrome code is vulnerable or not.
[ " virtual void ConnectToWifiNetwork(ConnectionSecurity security,\n const std::string& ssid,\n const std::string& password,\n const std::string& identity,\n const std::string& ...
[ 1, 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2007902636123...
15
Determine whether the Chrome code is vulnerable or not.
[ " virtual void ConnectToWifiNetwork(const WifiNetwork* network,\n const std::string& password,\n const std::string& identity,\n const std::string& certpath) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2626567625097...
16
Determine whether the Chrome code is vulnerable or not.
[ " virtual void ConnectToWifiNetwork(ConnectionSecurity security,\n const std::string& ssid,\n const std::string& password,\n const std::string& identity,\n const std::string& ...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "6707875500153...
17
Determine whether the Chrome code is vulnerable or not.
[ " bool Connected() const {\n return ethernet_connected() || wifi_connected() || cellular_connected();\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1862533473720...
18
Determine whether the Chrome code is vulnerable or not.
[ " bool Connected() const { return true; }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1460111165265...
19
Determine whether the Chrome code is vulnerable or not.
[ " bool Connecting() const {\n return ethernet_connecting() || wifi_connecting() || cellular_connecting();\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1832098892324...
20
Determine whether the Chrome code is vulnerable or not.
[ " bool Connecting() const { return false; }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2254108874473...
21
Determine whether the Chrome code is vulnerable or not.
[ " virtual void DisconnectFromWirelessNetwork(const WirelessNetwork* network) {\n DCHECK(network);\n if (!EnsureCrosLoaded() || !network)\n return;\n if (DisconnectFromNetwork(network->service_path().c_str())) {\n if (network->type() == TYPE_WIFI) {\n WifiNetwork* wifi = GetWirelessNetwork...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2069418870537...
22
Determine whether the Chrome code is vulnerable or not.
[ " virtual void DisconnectFromWirelessNetwork(const WirelessNetwork* network) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2664558753336...
23
Determine whether the Chrome code is vulnerable or not.
[ " virtual void EnableCellularNetworkDevice(bool enable) {\n EnableNetworkDeviceType(TYPE_CELLULAR, enable);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "6158937147142...
24
Determine whether the Chrome code is vulnerable or not.
[ " virtual void EnableEthernetNetworkDevice(bool enable) {\n EnableNetworkDeviceType(TYPE_ETHERNET, enable);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "8425481567788...
25
Determine whether the Chrome code is vulnerable or not.
[ " virtual void EnableEthernetNetworkDevice(bool enable) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2746718277298...
26
Determine whether the Chrome code is vulnerable or not.
[ " void EnableNetworkDeviceType(ConnectionType device, bool enable) {\n if (!EnsureCrosLoaded())\n return;", " if (enable && (enabled_devices_ & (1 << device))) {\n LOG(WARNING) << \"Trying to enable a device that's already enabled: \"\n << device;\n return;\n }\n if (...
[ 1, 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1079571174928...
27
Determine whether the Chrome code is vulnerable or not.
[ " virtual void EnableOfflineMode(bool enable) {\n if (!EnsureCrosLoaded())\n return;", " if (enable && offline_mode_) {\n VLOG(1) << \"Trying to enable offline mode when it's already enabled.\";\n return;\n }\n if (!enable && !offline_mode_) {\n VLOG(1) << \"Trying to disable offl...
[ 1, 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1354066345212...
28
Determine whether the Chrome code is vulnerable or not.
[ " virtual void EnableOfflineMode(bool enable) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "4689909289546...
29
Determine whether the Chrome code is vulnerable or not.
[ " virtual void EnableWifiNetworkDevice(bool enable) {\n EnableNetworkDeviceType(TYPE_WIFI, enable);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1180392212170...
30
Determine whether the Chrome code is vulnerable or not.
[ " virtual CellularNetwork* FindCellularNetworkByPath(\n const std::string& path) { return NULL; }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1697271446675...
31
Determine whether the Chrome code is vulnerable or not.
[ " virtual WifiNetwork* FindWifiNetworkByPath(\n const std::string& path) {\n return GetWirelessNetworkByPath(wifi_networks_, path);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2082505871980...
32
Determine whether the Chrome code is vulnerable or not.
[ " virtual WifiNetwork* FindWifiNetworkByPath(\n const std::string& path) { return NULL; }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1373530469695...
33
Determine whether the Chrome code is vulnerable or not.
[ " virtual void ForgetWifiNetwork(const std::string& service_path) {\n if (!EnsureCrosLoaded())\n return;\n if (DeleteRememberedService(service_path.c_str())) {\n for (WifiNetworkVector::iterator iter =\n remembered_wifi_networks_.begin();\n iter != remembered_wifi_networks_.e...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1721505921117...
34
Determine whether the Chrome code is vulnerable or not.
[ "std::string CellularNetwork::GetActivationStateString() const {\n return ActivationStateToString(this->activation_state_);\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2297379941567...
35
Determine whether the Chrome code is vulnerable or not.
[ "std::string WifiNetwork::GetEncryptionString() {\n switch (encryption_) {\n case SECURITY_UNKNOWN:\n break;\n case SECURITY_NONE:\n return \"\";\n case SECURITY_WEP:\n return \"WEP\";\n case SECURITY_WPA:\n return \"WPA\";\n case SECURITY_RSN:\n return \"RSN\";\n case SE...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3274940909801...
36
Determine whether the Chrome code is vulnerable or not.
[ "std::string Network::GetErrorString() const {\n switch (error_) {\n case ERROR_UNKNOWN:\n return l10n_util::GetStringUTF8(IDS_CHROMEOS_NETWORK_ERROR_UNKNOWN);\n case ERROR_OUT_OF_RANGE:\n return l10n_util::GetStringUTF8(IDS_CHROMEOS_NETWORK_ERROR_OUT_OF_RANGE);\n case ERROR_PIN_MISSING:\n ...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "9038743306465...
37
Determine whether the Chrome code is vulnerable or not.
[ " virtual std::string GetHtmlInfo(int refresh) {\n std::string output;\n output.append(\"<html><head><title>About Network</title>\");\n if (refresh > 0)\n output.append(\"<meta http-equiv=\\\"refresh\\\" content=\\\"\" +\n base::IntToString(refresh) + \"\\\"/>\");\n output.append(\"</head...
[ 1, 1, 1, 1, 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1427703983843...
38
Determine whether the Chrome code is vulnerable or not.
[ " virtual std::string GetHtmlInfo(int refresh) { return std::string(); }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "6692508976801...
39
Determine whether the Chrome code is vulnerable or not.
[ " virtual NetworkIPConfigVector GetIPConfigs(const std::string& device_path,\n std::string* hardware_address) {\n hardware_address->clear();\n NetworkIPConfigVector ipconfig_vector;\n if (EnsureCrosLoaded() && !device_path.empty()) {\n IPConfigStatus* ipcon...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1402831049873...
40
Determine whether the Chrome code is vulnerable or not.
[ " virtual NetworkIPConfigVector GetIPConfigs(const std::string& device_path,\n std::string* hardware_address) {\n hardware_address->clear();\n return NetworkIPConfigVector();\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2711875314378...
41
Determine whether the Chrome code is vulnerable or not.
[ "NetworkLibrary* NetworkLibrary::GetImpl(bool stub) {\n if (stub)\n return new NetworkLibraryStubImpl();\n else\n return new NetworkLibraryImpl();\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "9082810096392...
42
Determine whether the Chrome code is vulnerable or not.
[ "std::string CellularNetwork::GetRoamingStateString() const {\n switch (this->roaming_state_) {\n case ROAMING_STATE_HOME:\n return l10n_util::GetStringUTF8(\n IDS_CHROMEOS_NETWORK_ROAMING_STATE_HOME);\n break;\n case ROAMING_STATE_ROAMING:\n return l10n_util::GetStringUTF8(\n ...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "7246736950676...
43
Determine whether the Chrome code is vulnerable or not.
[ "std::string Network::GetStateString() const {\n switch (state_) {\n case STATE_UNKNOWN:\n return l10n_util::GetStringUTF8(IDS_CHROMEOS_NETWORK_STATE_UNKNOWN);\n case STATE_IDLE:\n return l10n_util::GetStringUTF8(IDS_CHROMEOS_NETWORK_STATE_IDLE);\n case STATE_CARRIER:\n return l10n_util::Ge...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2360881300142...
44
Determine whether the Chrome code is vulnerable or not.
[ " virtual bool GetWifiAccessPoints(WifiAccessPointVector* result) {\n if (!EnsureCrosLoaded())\n return false;\n DeviceNetworkList* network_list = GetDeviceNetworkList();\n if (network_list == NULL)\n return false;\n result->clear();\n result->reserve(network_list->network_size);\n cons...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3311369303605...
45
Determine whether the Chrome code is vulnerable or not.
[ " virtual bool GetWifiAccessPoints(WifiAccessPointVector* result) {\n return false;\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1691811971701...
46
Determine whether the Chrome code is vulnerable or not.
[ " WifiNetwork* GetWifiNetworkByName(const std::string& name) {\n for (size_t i = 0; i < wifi_networks_.size(); ++i) {\n if (wifi_networks_[i]->name().compare(name) == 0) {\n return wifi_networks_[i];\n }\n }\n return NULL;\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "7354446623015...
47
Determine whether the Chrome code is vulnerable or not.
[ " template<typename T> T GetWirelessNetworkByPath(\n std::vector<T>& networks, const std::string& path) {\n typedef typename std::vector<T>::iterator iter_t;\n iter_t iter = std::find_if(networks.begin(), networks.end(),\n WirelessNetwork::ServicePathEq(path));\n return ...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1120410726543...
48
Determine whether the Chrome code is vulnerable or not.
[ " template<typename T> const T GetWirelessNetworkByPath(\n const std::vector<T>& networks, const std::string& path) const {\n typedef typename std::vector<T>::const_iterator iter_t;\n iter_t iter = std::find_if(networks.begin(), networks.end(),\n WirelessNetwork::ServicePat...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3112750321662...
49
Determine whether the Chrome code is vulnerable or not.
[ " const std::string& IPAddress() const {\n const Network* active = active_network();\n if (active != NULL)\n return active->ip_address();\n if (ethernet_)\n return ethernet_->ip_address();\n static std::string null_address(\"0.0.0.0\");\n return null_address;\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1755788608221...
50
Determine whether the Chrome code is vulnerable or not.
[ " const std::string& IPAddress() const { return ip_address_; }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1125725015747...
51
Determine whether the Chrome code is vulnerable or not.
[ " void Init() {\n VLOG(1) << \"Getting initial CrOS network info.\";\n UpdateSystemInfo();\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1882153587685...
52
Determine whether the Chrome code is vulnerable or not.
[ " void InitTestData() {\n ethernet_ = new EthernetNetwork();\n ethernet_->set_connected(true);\n ethernet_->set_service_path(\"eth1\");", " STLDeleteElements(&wifi_networks_);\n wifi_networks_.clear();\n WifiNetwork* wifi1 = new WifiNetwork();\n wifi1->set_service_path(\"fw1\");\n wifi1->...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1671001982366...
53
Determine whether the Chrome code is vulnerable or not.
[ "bool WifiNetwork::IsCertificateLoaded() const {\n static const std::string settings_string(\"SETTINGS:\");\n static const std::string pkcs11_key(\"key_id\");\n if (cert_path_.find(settings_string) == 0) {\n std::string::size_type idx = cert_path_.find(pkcs11_key);\n if (idx != std::string::npos)\n id...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1326903357369...
54
Determine whether the Chrome code is vulnerable or not.
[ "Network::Network(const Network& network) {\n service_path_ = network.service_path();\n device_path_ = network.device_path();\n ip_address_ = network.ip_address();\n type_ = network.type();\n state_ = network.state();\n error_ = network.error();\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "7982040527363...
55
Determine whether the Chrome code is vulnerable or not.
[ "Network::Network(const ServiceInfo* service) {\n type_ = service->type;\n state_ = service->state;\n error_ = service->error;\n service_path_ = SafeString(service->service_path);\n device_path_ = SafeString(service->device_path);\n is_active_ = service->is_active;\n ip_address_.clear();\n if (EnsureCrosLoa...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1152115578269...
56
Determine whether the Chrome code is vulnerable or not.
[ " NetworkLibraryImpl()\n : network_manager_monitor_(NULL),\n data_plan_monitor_(NULL),\n ethernet_(NULL),\n wifi_(NULL),\n cellular_(NULL),\n available_devices_(0),\n enabled_devices_(0),\n connected_devices_(0),\n offline_mode_(false) {\n if (EnsureC...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1439228747519...
57
Determine whether the Chrome code is vulnerable or not.
[ " NetworkObserverList(NetworkLibraryImpl* library,\n const std::string& service_path) {\n network_monitor_ = MonitorNetworkService(&NetworkStatusChangedHandler,\n service_path.c_str(),\n librar...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2863599049748...
58
Determine whether the Chrome code is vulnerable or not.
[ " static void NetworkStatusChangedHandler(void* object,\n const char* path,\n const char* key,\n const Value* value) {\n NetworkLibraryImpl* networklib = static_cast<NetworkLibrar...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1568180422701...
59
Determine whether the Chrome code is vulnerable or not.
[ " void NotifyNetworkChanged(Network* network) {\n DCHECK(network);\n NetworkObserverMap::const_iterator iter = network_observers_.find(\n network->service_path());\n if (iter != network_observers_.end()) {\n FOR_EACH_OBSERVER(NetworkObserver,\n *(iter->second),\n ...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2501908128776...
60
Determine whether the Chrome code is vulnerable or not.
[ "static ActivationState ParseActivationState(\n const std::string& activation_state) {\n if (activation_state == kActivationStateActivated)\n return ACTIVATION_STATE_ACTIVATED;\n if (activation_state == kActivationStateActivating)\n return ACTIVATION_STATE_ACTIVATING;\n if (activation_state == kActivati...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2263283871812...
61
Determine whether the Chrome code is vulnerable or not.
[ "static NetworkTechnology ParseNetworkTechnology(\n const std::string& technology) {\n if (technology == kNetworkTechnology1Xrtt)\n return NETWORK_TECHNOLOGY_1XRTT;\n if (technology == kNetworkTechnologyEvdo)\n return NETWORK_TECHNOLOGY_EVDO;\n if (technology == kNetworkTechnologyGprs)\n return NET...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "7042305778481...
62
Determine whether the Chrome code is vulnerable or not.
[ "static NetworkRoamingState ParseRoamingState(\n const std::string& roaming_state) {\n if (roaming_state == kRoamingStateHome)\n return ROAMING_STATE_HOME;\n if (roaming_state == kRoamingStateRoaming)\n return ROAMING_STATE_ROAMING;\n if (roaming_state == kRoamingStateUnknown)\n return ROAMING_STAT...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1693605710907...
63
Determine whether the Chrome code is vulnerable or not.
[ "static ConnectionState ParseState(const std::string& state) {\n if (state == kStateIdle)\n return STATE_IDLE;\n if (state == kStateCarrier)\n return STATE_CARRIER;\n if (state == kStateAssociation)\n return STATE_ASSOCIATION;\n if (state == kStateConfiguration)\n return STATE_CONFIGURATION;\n if (...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2517885023624...
64
Determine whether the Chrome code is vulnerable or not.
[ " static void ParseSystem(SystemInfo* system,\n EthernetNetwork** ethernet,\n WifiNetworkVector* wifi_networks,\n CellularNetworkVector* cellular_networks,\n WifiNetworkVector* remembered_wifi_networks) {\n DVLOG(1) << \"ParseSystem:\";\n DCHECK(!(*ethernet));\n for (int i = 0; i < sys...
[ 1, 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1395914736387...
65
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RefreshCellularDataPlans(const CellularNetwork* network) {\n DCHECK(network);\n if (!EnsureCrosLoaded() || !network)\n return;\n RequestCellularDataPlanUpdate(network->service_path().c_str());\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1920234710386...
66
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RefreshCellularDataPlans(const CellularNetwork* network) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1344039349509...
67
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveCellularDataPlanObserver(\n CellularDataPlanObserver* observer) {\n data_plan_observers_.RemoveObserver(observer);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1280122477564...
68
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveCellularDataPlanObserver(\n CellularDataPlanObserver* observer) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3266059522199...
69
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveNetworkManagerObserver(NetworkManagerObserver* observer) {\n network_manager_observers_.RemoveObserver(observer);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "8402151112007...
70
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveNetworkManagerObserver(NetworkManagerObserver* observer) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1880789698870...
71
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveNetworkObserver(const std::string& service_path,\n NetworkObserver* observer) {\n DCHECK(observer);\n DCHECK(service_path.size());\n NetworkObserverMap::iterator map_iter =\n network_observers_.find(service_path);\n if (map_iter != network...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3364576996534...
72
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveNetworkObserver(const std::string& service_path,\n NetworkObserver* observer) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2655842465253...
73
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveObserverForAllNetworks(NetworkObserver* observer) {\n DCHECK(observer);\n NetworkObserverMap::iterator map_iter = network_observers_.begin();\n while (map_iter != network_observers_.end()) {\n map_iter->second->RemoveObserver(observer);\n if (!map_iter->second->size()) {\n ...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1320200871940...
74
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RemoveObserverForAllNetworks(NetworkObserver* observer) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3358710920682...
75
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RequestWifiScan() {\n if (EnsureCrosLoaded()) {\n RequestScan(TYPE_WIFI);\n }\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1586051752878...
76
Determine whether the Chrome code is vulnerable or not.
[ " virtual void RequestWifiScan() {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1334948857617...
77
Determine whether the Chrome code is vulnerable or not.
[ "static std::string SafeString(const char* s) {\n return s ? std::string(s) : std::string();\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2564693616760...
78
Determine whether the Chrome code is vulnerable or not.
[ " virtual void SaveCellularNetwork(const CellularNetwork* network) {\n DCHECK(network);\n if (!EnsureCrosLoaded() || !network)\n return;", " SetAutoConnect(network->service_path().c_str(), network->auto_connect());\n }\n" ]
[ 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1805216612790...
79
Determine whether the Chrome code is vulnerable or not.
[ " virtual void SaveCellularNetwork(const CellularNetwork* network) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2903650025968...
80
Determine whether the Chrome code is vulnerable or not.
[ " virtual void SaveWifiNetwork(const WifiNetwork* network) {\n DCHECK(network);\n if (!EnsureCrosLoaded() || !network)\n return;\n SetPassphrase(\n network->service_path().c_str(), network->passphrase().c_str());\n SetIdentity(network->service_path().c_str(),\n network->identity().c_...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1877620367783...
81
Determine whether the Chrome code is vulnerable or not.
[ " virtual void SaveWifiNetwork(const WifiNetwork* network) {}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "6041794063406...
82
Determine whether the Chrome code is vulnerable or not.
[ "bool CellularNetwork::StartActivation() const {\n if (!EnsureCrosLoaded())\n return false;\n return ActivateCellularModem(service_path_.c_str(), NULL);\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2913421665252...
83
Determine whether the Chrome code is vulnerable or not.
[ "static std::string ToHtmlTableHeader(Network* network) {\n std::string str;\n if (network->type() == TYPE_WIFI || network->type() == TYPE_CELLULAR) {\n str += WrapWithTH(\"Name\") + WrapWithTH(\"Auto-Connect\") +\n WrapWithTH(\"Strength\");\n if (network->type() == TYPE_WIFI)\n str += WrapWithT...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2830009503224...
84
Determine whether the Chrome code is vulnerable or not.
[ "static std::string ToHtmlTableRow(Network* network) {\n std::string str;\n if (network->type() == TYPE_WIFI || network->type() == TYPE_CELLULAR) {\n WirelessNetwork* wireless = static_cast<WirelessNetwork*>(network);\n str += WrapWithTD(wireless->name()) +\n WrapWithTD(base::IntToString(wireless->au...
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2353272463485...
85
Determine whether the Chrome code is vulnerable or not.
[ " void UpdateCellularDataPlan(const CellularDataPlanList* data_plans) {\n DCHECK(cellular_);\n cellular_->SetDataPlans(data_plans);\n NotifyCellularDataPlanChanged();\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "6004206453395...
86
Determine whether the Chrome code is vulnerable or not.
[ " void UpdateNetworkStatus(const char* path,\n const char* key,\n const Value* value) {\n if (key == NULL || value == NULL)\n return;\n if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {\n BrowserThread::PostTask(\n BrowserThread::UI, ...
[ 1, 1, 1, 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2021718200872...
87
Determine whether the Chrome code is vulnerable or not.
[ " void UpdateSystemInfo() {\n if (EnsureCrosLoaded()) {\n UpdateNetworkManagerStatus();\n }\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2960302913457...
88
Determine whether the Chrome code is vulnerable or not.
[ "WifiNetwork::WifiNetwork()\n : WirelessNetwork(),\n encryption_(SECURITY_NONE) {\n type_ = TYPE_WIFI;\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2184911536103...
89
Determine whether the Chrome code is vulnerable or not.
[ "WifiNetwork::WifiNetwork(const WifiNetwork& network)\n : WirelessNetwork(network) {\n encryption_ = network.encryption();\n passphrase_ = network.passphrase();\n identity_ = network.identity();\n cert_path_ = network.cert_path();\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2533748620463...
90
Determine whether the Chrome code is vulnerable or not.
[ "WirelessNetwork::WirelessNetwork(const WirelessNetwork& network)\n : Network(network) {\n name_ = network.name();\n strength_ = network.strength();\n auto_connect_ = network.auto_connect();\n favorite_ = network.favorite();\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2727140744123...
91
Determine whether the Chrome code is vulnerable or not.
[ "WirelessNetwork::WirelessNetwork(const ServiceInfo* service)\n : Network(service) {\n name_ = SafeString(service->name);\n strength_ = service->strength;\n auto_connect_ = service->auto_connect;\n favorite_ = service->favorite;\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2948148541415...
92
Determine whether the Chrome code is vulnerable or not.
[ "static std::string WrapWithTD(std::string text) {\n return \"<td>\" + text + \"</td>\";\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2790429382596...
93
Determine whether the Chrome code is vulnerable or not.
[ "static std::string WrapWithTH(std::string text) {\n return \"<th>\" + text + \"</th>\";\n}\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "3309553249383...
94
Determine whether the Chrome code is vulnerable or not.
[ " virtual const Network* active_network() const {\n if (ethernet_ && ethernet_->is_active())\n return ethernet_;\n if (wifi_ && wifi_->is_active())\n return wifi_;\n if (cellular_ && cellular_->is_active())\n return cellular_;\n return NULL;\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2691816395132...
95
Determine whether the Chrome code is vulnerable or not.
[ " virtual const Network* active_network() const { return NULL; }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "1458505595961...
96
Determine whether the Chrome code is vulnerable or not.
[ " virtual bool cellular_available() const {\n return available_devices_ & (1 << TYPE_CELLULAR);\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2132726648187...
97
Determine whether the Chrome code is vulnerable or not.
[ " virtual bool cellular_available() const { return false; }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2214014993291...
98
Determine whether the Chrome code is vulnerable or not.
[ " virtual bool cellular_connected() const {\n return cellular_ ? cellular_->connected() : false;\n }\n" ]
[ 1 ]
PrimeVul_unpaired
{ "commit_id": "a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "commit_message": "None", "commit_url": "https://github.com/chromium/chromium/commit/a3e2afaedd8190398ae45ccef34fcdee00fb19aa", "cve": "None", "cve_desc": "None", "cwe": [], "file_hash": "None", "file_name": "None", "func_hash": "2870822372340...
99
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
12