Creates a new automatically increasing key in the given directory
        key.
187615
def append(self, key, value=None, dir=False, ttl=None, timeout=None):
        
        return self.adapter.append(key, value, dir=dir, ttl=ttl,
                                   timeout=timeout)
165099
def add_key(self, key, metadata=""):
        
        data = {
            'key': key,
            'metadata': metadata
        }

        return self.post('createKey', data)
871783
def pushd(directory: str) -> None:
    
    previous_dir = os.getcwd()
    os.chdir(directory)
    yield
    os.chdir(previous_dir)
56739
def gen_key(path):
    '''
    
    '''
    cmd = 'ssh-keygen -P "" -f {0} -t rsa -q'.format(path)
    if not os.path.isdir(os.path.dirname(path)):
        os.makedirs(os.path.dirname(path))
    subprocess.call(cmd, shell=True)
1321883
def pushd(directory):
    
    directory = os.path.expanduser(directory)
    _saved_paths.insert(0, os.path.abspath(os.getcwd()))
    os.chdir(directory)
    return [directory] + _saved_paths
378342
protected int addKey(String k) {
    Integer rv = rkeys.get(k);
    if (rv == null) {
      rv = generateOpaque();
      keys.put(rv, k);
      bkeys.put(rv, KeyUtil.getKeyBytes(k));
      rkeys.put(k, rv);
      synchronized (vbmap) {
        vbmap.put(k, new Short((short) 0));
      }
    }
    return rv;
  }
35413
function createDir (directoryToCreate) {
  return new Promise((resolve, reject) => {
    mkdirp(directoryToCreate, (err) => {
      if (err) {
        return reject(new Error(err));
      }

      return resolve();
    });
  });
}
100213
public ISO9660Directory addDirectory(ISO9660Directory dir) {
        dir.setLevel(level + 1);
        dir.setParentDirectory(this);
        dir.setRoot(root);
        updateSubdirectories(dir);
        directories.add(dir);
        sorted = false;
        return dir;
    }
870888
private void put(DirectoryEntry entry, boolean overwriteExisting) {
    int index = bucketIndex(entry.name(), table.length);

    // find the place the new entry should go, ensuring an entry with the same name doesn't already
    // exist along the way
    DirectoryEntry prev = null;
    DirectoryEntry curr = table[index];
    while (curr != null) {
      if (curr.name().equals(entry.name())) {
        if (overwriteExisting) {
          // just replace the existing entry; no need to expand, and entryCount doesn't change
          if (prev != null) {
            prev.next = entry;
          } else {
            table[index] = entry;
          }
          entry.next = curr.next;
          curr.next = null;
          entry.file().incrementLinkCount();
          return;
        } else {
          throw new IllegalArgumentException("entry '" + entry.name() + "' already exists");
        }
      }

      prev = curr;
      curr = curr.next;
    }

    entryCount++;
    if (expandIfNeeded()) {
      // if the table was expanded, the index/entry we found is no longer applicable, so just add
      // the entry normally
      index = bucketIndex(entry.name(), table.length);
      addToBucket(index, table, entry);
    } else {
      // otherwise, we just can use the index/entry we found
      if (prev != null) {
        prev.next = entry;
      } else {
        table[index] = entry;
      }
    }

    entry.file().incrementLinkCount();
  }
1323058
def install_key(self, keyfile, authorized_keys):
        """"""

        # Make the directory containing the authorized_keys
        # file, if it doesn't exist. (Typically ~/.ssh).
        # Ignore errors; we'll fail shortly if we can't
        # create the authkeys file.
        try:
            os.makedirs(os.path.dirname(authorized_keys), 0o700)
        except OSError:
            pass

        keydata = open(keyfile).read()
        target_fd = os.open(authorized_keys, os.O_RDWR | os.O_CREAT, 0o600)
        self.install_key_data(keydata, os.fdopen(target_fd, 'w+'))
1323775
def directory_key_map
      @key_map["<"] = Action.new("Goto Parent Dir") { |obj|
        # go to parent dir
        $log.debug "KKK:  called proc for <"
        Dir.chdir("..")
        obj.buffer_changed
      }
      @key_map[">"] = Action.new("Change Dir"){ |obj|
        $log.debug "KKK:  called proc for > : #{obj.current_value} "
        # step into directory

        dir = obj.current_value
        if File.directory? dir
          Dir.chdir dir
          obj.buffer_changed
        end
      }
    end
448038
def increment(self, key, value=1):
        
        return self._redis.incrby(self._prefix + key, value)
610941
def increment(self, key: Any, by: int = 1) -> None:
        
        if key is not None:
            self[key] = self.get(key, 0) + by
60071
def key_expand(key, Nk=4):
    """"""
    assert Nk in {4, 6, 8}
    Nr = Nk + 6

    key = key.reshape(Nk, 32)
    rkey = exprzeros(4*(Nr+1), 32)

    for i in range(Nk):
        rkey[i] = key[i]

    for i in range(Nk, 4*(Nr+1)):
        if i % Nk == 0:
            rkey[i] = rkey[i-Nk] ^ subword(rotword(rkey[i-1])) ^ RCON[i//Nk].zext(32-8)
        elif Nk > 6 and i % Nk == 4:
            rkey[i] = rkey[i-Nk] ^ subword(rkey[i-1])
        else:
            rkey[i] = rkey[i-Nk] ^ rkey[i-1]

    return rkey
276497
public function addTemplateDir(string $dir, string $key = null): Sdopx
    {
        if ($key === null) {
            $this->templateDirs[] = $dir;
        } else {
            $this->templateDirs[$key] = $dir;
        }
        return $this;
    }
557699
public function increase(string $key, $diff = 1)
    {
        if (is_int($diff)) {
            return $this->handle->hIncrBy($this->name, $key, $diff);
        }
        return $this->handle->hIncrByFloat($this->name, $key, $diff);
    }
746408
def create_dir(directory):
    
    if not os.access(directory, os.F_OK):
        os.makedirs(directory)
    return os.path.abspath(directory)