disabled
     ˆÃ�þY–U›”O†B²ôŽ€ÏÏƒÏÌÇ¿É ÿ    #!/usr/bin/python
# This script creates a clone of a remote repository in local memory,
# then adds a single file and pushes the result back.
#
# Example usage:
#  python examples/memoryrepo.py git+ssh://github.com/jelmer/testrepo

import stat
import sys

from dulwich import porcelain
from dulwich.objects import Blob
from dulwich.repo import MemoryRepo

local_repo = MemoryRepo()
local_repo.refs.set_symbolic_ref(b'HEAD', b'refs/heads/master')

fetch_result = porcelain.fetch(local_repo, sys.argv[1])
local_repo.refs[b'refs/heads/master'] = fetch_result.refs[b'refs/heads/master']
print(local_repo.refs.as_dict())

last_tree = local_repo[local_repo[b'HEAD'].tree]
new_blob = Blob.from_string(b'Some contents')
local_repo.object_store.add_object(new_blob)
last_tree.add(b'test', stat.S_IFREG, new_blob.id)
local_repo.object_store.add_object(last_tree)

local_repo.do_commit(
    message=b'Add a file called \'test\'',
    ref=b'refs/heads/master',
    tree=last_tree.id)

porcelain.push(local_repo, sys.argv[1], 'master')
     ˆÎÍÌ489À¿É é    ‹      ½”_oÚ0Åßû)îü°·äò¯ÛÔ:ž:‚44
ˆ2MÓ´bÕØ‘m Ý§Ÿ!TÐ	´M«ö”ûäžó»IL_å£îôë¸§·þ0èw�$ˆ_Ú]Ä|š×�´ÑDì	�2„ê
q³Ù¤›vjÝ§,ÃRwÐ§Š�Š » Û5v´”\Ä+Ð ‚–¬o„| ;´«à•�¬œ-ÐK=GgmÀ•wèKî$Š¸®W<ñ²H„\£çËJK�\W†bÝ/:àÞ‚Î¬xÜ:7_Ð%6Û…ç³�Ù¶tŒ†Ö\«…ÉH°aT-à]‘T…5gš›ût¡æ¸ùÖïŽ¾G†rû4£J'çyßÍ†×£,'lÈ—’"?­¹�šÂÜXZ¡æJŠ³â»Z|§~œo˜×š\úÂ©*(kRŒˆÇ¨…Õ¾â‘õ2”îXUKÄï¦Á‹gÃßLzÃiÞŸÔ#Û‡tÿðÎÇm WNÁºÇ=UmñÚÌ|uýtûÌN-Ê@@'•º2÷ÆnÌ1kœãIÊB«4�„êã¸¿äk5Z­¤ñ6i7 Ù¾ê´ Î/;ïþ'ˆ—n-]r¨_¤™¾ùtä?PÜÿºwÇÅú`ú	nZ©û       ˆÃ�þDË‹7(Ÿ…eé ?ŸÏ566ÌÇ¿É 6    #!/usr/bin/python
# Example printing the last author of a specified file

import sys
import time
from dulwich.repo import Repo

if len(sys.argv) < 2:
    print("usage: {} filename".format(sys.argv[0]))
    sys.exit(1)

r = Repo(".")

path = sys.argv[1].encode('utf-8')

w = r.get_walker(paths=[path], max_entries=1)
try:
    c = next(iter(w)).commit
except StopIteration:
    print("No file %s anywhere in history." % sys.argv[1])
else:
    print("{} was last changed by {} at {} (commit {})".format(
        sys.argv[1], c.author, time.ctime(c.author_time), c.id))
  %   ˆÐ“þYz5›)]t¯�¶Æ -7³WüÿÏÎÍÌ303Ë¿É /    ‹      Å’Ánƒ0Dï|ÅDªHˆÞ£�[½÷b`!TŽŒ	­"þ½&¢)˜Òk¹­ßÌzÌnÆª5 	45]¥)ðãgjüÐËîH¹LÍ`i–¬43D.£”ŽOš"—�¾‰f—ÚÒ@Dà:BA2·"9âæm_™ìŒ€ëð^™h	~’$þþ^U�À|ÖÄ,€Ïé;ecLŸ=‡ˆ¯¤ÛŠÕÚ–nØì9RÇ¦ÉtZM7¥Þ,Óîÿ3íÜLS é§-«Ÿ´“Ÿšq�,ßæŠÕê£+.Í¶vÕÙîÕ¦úàŠåvçÃª³üµsN…è¤ùÖš³æÞ>¯Ç›�Ä‹Ö¬ƒÓ«º
YåvIIÃz�§×ÃiœËàÞ…óNRL5kÓÚÙ½ö¾ *\?‹       ˆÆ�þHWÖmò²XÉ+‘¼@?Ïƒe�7ÌÅ¿É é    #!/usr/bin/env ruby

#$: << File.expand_path('../../lib', __FILE__)

require 'benchmark'
require 'optparse'
require 'thread'
require 'rspec/expectations'

require 'concurrent/actor'

class ActorStressTester
  include ::RSpec::Matchers

  TESTS_PER_RUN = 5
  THREADS_PER_TEST = 10
  LOOPS_PER_THREAD = 25

  class Ping < Concurrent::Actor::Context
    def initialize(queue)
      @queue = queue
    end

    def on_message(message)
      case message
      when :child
        Concurrent::Actor::Utils::AdHoc.spawn(:pong, @queue) do |queue|
          -> m { queue << m }
        end
      else
        @queue << message
        message
      end
    end
  end

  def initialize(opts = {})
    @tests = opts.fetch(:tests, TESTS_PER_RUN)
    @threads = opts.fetch(:threads, THREADS_PER_TEST)
    @loops = opts.fetch(:loops, LOOPS_PER_THREAD)
  end

  def run
    plural = ->(number){ number == 1 ? '' : 's' }

    puts "Running #{@tests} test#{plural.call(@tests)} " +
      "with #{@threads} thread#{plural.call(@threads)} each " +
      "and #{@loops} loop#{plural.call(@loops)} per thread..."

    Benchmark.bmbm do |bm|
      @tests.times do
        bm.report do
          test(@threads, @loops)
        end
      end
    end
  end

  def test(threads, loops)
    (1..threads).collect do
      Thread.new do
        loops.times do

          queue = Queue.new
          actor = Ping.spawn(:ping, queue)

          core = Concurrent::Actor.root.send(:core)
          childr