<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <link rel="stylesheet" type="text/css" href="http://libvirt.org/libvirt.css" />
    <link rel="SHORTCUT ICON" href="/32favicon.png" />
    <title>Ruby bindings for libvirt</title>
  </head>
  <body>
    <div id="container">
      <div id="intro">
        <div id="adjustments">
          <p class="p1"></p>
        </div>
        <div id="content">
          <h3>What is <span class="style1">ruby-libvirt</span>?</h3>

          <p>ruby-libvirt provides <a href="">Ruby</a> bindings for
          libvirt. With that you can use libvirt directly from your Ruby
          programs: </p>
          <pre>
   require 'libvirt'

   conn = Libvirt::open("qemu:///system")
   puts conn.capabilities
   
   File::open("domain.xml") do |f| 
     conn.createDomainLinux(f.readlines, nil)
   end

   dom = conn.lookupDomainByName("mydomain")
   dom.suspend
   dom.resume
   puts dom.xmlDesc
          </pre>
          <h4 id="developers">Developers</h4>
          <p>The sources are available with mercurial. To clone, run</p>
          <pre>hg clone http://libvirt.org/hg/ruby-libvirt/</pre>
          <p>For more information about Mercurial see the <a href="http://www.selenic.com/mercurial/wiki/">Mercurial website</a>
          and <a href="http://virt-manager.et.redhat.com/scmrepo.html">these instructions</a>.</p>

          <p>Please use the <a href="https://www.redhat.com/mailman/listinfo/libvir-list/">libvir mailing list</a> for questions,
          comments and patches.
          </p>
        </div>
      </div>
      <div class="linkList2">
        <div class="llinks2">
          <h3 class="links2">
            <span>main menu</span>
          </h3>
          <ul>
            <li>
              <a href="index.html">Home</a>
            </li><commit_msg>Fix up the example on the website to be correct.<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <link rel="stylesheet" type="text/css" href="http://libvirt.org/libvirt.css" />
    <link rel="SHORTCUT ICON" href="/32favicon.png" />
    <title>Ruby bindings for libvirt</title>
  </head>
  <body>
    <div id="container">
      <div id="intro">
        <div id="adjustments">
          <p class="p1"></p>
        </div>
        <div id="content">
          <h3>What is <span class="style1">ruby-libvirt</span>?</h3>

          <p>ruby-libvirt provides <a href="">Ruby</a> bindings for
          libvirt. With that you can use libvirt directly from your Ruby
          programs: </p>
          <pre>
   require 'libvirt'

   conn = Libvirt::open("qemu:///system")
   puts conn.capabilities
   
   conn.create_domain_linux(File.read("domain.xml"))

   dom = conn.lookup_domain_by_name("mydomain")
   dom.suspend
   dom.resume
   puts dom.xml_desc
          </pre>
          <h4 id="developers">Developers</h4>
          <p>The sources are available with mercurial. To clone, run</p>
          <pre>hg clone http://libvirt.org/hg/ruby-libvirt/</pre>
          <p>For more information about Mercurial see the <a href="http://www.selenic.com/mercurial/wiki/">Mercurial website</a>
          and <a href="http://virt-manager.et.redhat.com/scmrepo.html">these instructions</a>.</p>

          <p>Please use the <a href="https://www.redhat.com/mailman/listinfo/libvir-list/">libvir mailing list</a> for questions,
          comments and patches.
          </p>
        </div>
      </div>
      <div class="linkList2">
        <div class="llinks2">
          <h3 class="links2">
            <span>main menu</span>
          </h3>
          <ul>
            <li>
              <a href="index.html">Home</a>
            </li>
{'fraction_non_alphanumeric': 0.16879057465736955, 'fraction_numerical': 0.017311853811012263, 'mean_word_length': 2.379366368805849, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 2, '>': 117, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2598145', 'n_tokens_mistral': 1478, 'n_tokens_neox': 1390, 'n_words': 289}