repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.3-debug.rb
Formula/php@7.3-debug.rb
class PhpAT73Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/2c97539020cfaadf6998f23fd301cb5158464fbc.tar.gz" version "7.3.33" sha256 "c9bc90d6c3d7b2d3a9e17581d36382f4db3e20e3e43225db5437c52e2f2de7bf" li...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.2.rb
Formula/php@7.2.rb
class PhpAT72 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/383aaa666ea5d825183dde9e676690f62f21ad88.tar.gz" version "7.2.34" sha256 "3b48ab3d2f57cc29e793846446024f7e1219641647bf1d678a5effe460358d4d" license...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@5.6.rb
Formula/php@5.6.rb
class PhpAT56 < Formula desc "General-purpose scripting language" homepage "https://secure.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/6cfe49e294414185452ec89bad39b1bd42cc72c9.tar.gz" version "5.6.40" sha256 "c7aea2d4742a6daadfa333dce1e6707bd648b2ed54e36238674db026e27d43cf" lice...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.4-debug-zts.rb
Formula/php@8.4-debug-zts.rb
class PhpAT84DebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.4.16.tar.xz" mirror "https://fossies.org/linux/www/php-8.4.16.tar.xz" sha256 "f66f8f48db34e9e29f7bfd6901178e9cf4a1b163e6e497716dfcb8f88bcfae30" license all_o...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.1.rb
Formula/php@8.1.rb
class PhpAT81 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.1.34.tar.xz" mirror "https://fossies.org/linux/www/php-8.1.34.tar.xz" sha256 "ffa9e0982e82eeaea848f57687b425ed173aa278fe563001310ae2638db5c251" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.4-debug-zts.rb
Formula/php@7.4-debug-zts.rb
class PhpAT74DebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4ab83a550530c864e4bef29b054f81f71874d8be.tar.gz" version "7.4.33" sha256 "1593ea9ebe9902aa1dcc5651e62de5cd38b67ac636e0e166110215592ab1f820" ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.4-zts.rb
Formula/php@8.4-zts.rb
class PhpAT84Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.4.16.tar.xz" mirror "https://fossies.org/linux/www/php-8.4.16.tar.xz" sha256 "f66f8f48db34e9e29f7bfd6901178e9cf4a1b163e6e497716dfcb8f88bcfae30" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.2-debug.rb
Formula/php@8.2-debug.rb
class PhpAT82Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.2.30.tar.xz" mirror "https://fossies.org/linux/www/php-8.2.30.tar.xz" sha256 "bc90523e17af4db46157e75d0c9ef0b9d0030b0514e62c26ba7b513b8c4eb015" license all_of: ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.0-debug.rb
Formula/php@7.0-debug.rb
class PhpAT70Debug < Formula desc "General-purpose scripting language" homepage "https://secure.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4de530c8e7f4d5fa3df1d0e15d79a7bd44cc597c.tar.gz" version "7.0.33" sha256 "3371c5712eae64aa28eda7733a02d93ec298894d57eb0ce3fdac0904bbee4a16" ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/bison@2.7.rb
Formula/bison@2.7.rb
class BisonAT27 < Formula desc "Parser generator" homepage "https://www.gnu.org/software/bison/" url "https://ftpmirror.gnu.org/bison/bison-2.7.1.tar.gz" mirror "https://ftp.gnu.org/gnu/bison/bison-2.7.1.tar.gz" sha256 "08e2296b024bab8ea36f3bb3b91d071165b22afda39a17ffc8ff53ade2883431" license "GPL-3.0-or-la...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.6-debug.rb
Formula/php@8.6-debug.rb
class PhpAT86Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/php/php-src/archive/4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec.tar.gz?commit=4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec" version "8.6.0" sha256 "85e7431c9e73197dedcb58b70c06130d420eda4fa9...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.0-debug-zts.rb
Formula/php@7.0-debug-zts.rb
class PhpAT70DebugZts < Formula desc "General-purpose scripting language" homepage "https://secure.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4de530c8e7f4d5fa3df1d0e15d79a7bd44cc597c.tar.gz" version "7.0.33" sha256 "3371c5712eae64aa28eda7733a02d93ec298894d57eb0ce3fdac0904bbee4a16...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.1-zts.rb
Formula/php@8.1-zts.rb
class PhpAT81Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.1.34.tar.xz" mirror "https://fossies.org/linux/www/php-8.1.34.tar.xz" sha256 "ffa9e0982e82eeaea848f57687b425ed173aa278fe563001310ae2638db5c251" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.3-debug.rb
Formula/php@8.3-debug.rb
class PhpAT83Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.3.29.tar.xz" mirror "https://fossies.org/linux/www/php-8.3.29.tar.xz" sha256 "f7950ca034b15a78f5de9f1b22f4d9bad1dd497114d175cb1672a4ca78077af5" license all_of: ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.2-zts.rb
Formula/php@8.2-zts.rb
class PhpAT82Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.2.30.tar.xz" mirror "https://fossies.org/linux/www/php-8.2.30.tar.xz" sha256 "bc90523e17af4db46157e75d0c9ef0b9d0030b0514e62c26ba7b513b8c4eb015" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.6-debug-zts.rb
Formula/php@8.6-debug-zts.rb
class PhpAT86DebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/php/php-src/archive/4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec.tar.gz?commit=4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec" version "8.6.0" sha256 "85e7431c9e73197dedcb58b70c06130d420eda4...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php.rb
Formula/php.rb
class Php < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" # Should only be updated if the new version is announced on the homepage, https://www.php.net/ url "https://www.php.net/distributions/php-8.5.1.tar.xz" mirror "https://fossies.org/linux/www/php-8.5.1.tar.xz" sha256...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.1-zts.rb
Formula/php@7.1-zts.rb
class PhpAT71Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/45db7daedb330abded7576b9c4dadf5ed13e2f0b.tar.gz" version "7.1.33" sha256 "c83694b44f2c2fedad3617f86d384d05e04c605fa61a005f5d51dfffaba39772" lice...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.2.rb
Formula/php@8.2.rb
class PhpAT82 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.2.30.tar.xz" mirror "https://fossies.org/linux/www/php-8.2.30.tar.xz" sha256 "bc90523e17af4db46157e75d0c9ef0b9d0030b0514e62c26ba7b513b8c4eb015" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.1.rb
Formula/php@7.1.rb
class PhpAT71 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/45db7daedb330abded7576b9c4dadf5ed13e2f0b.tar.gz" version "7.1.33" sha256 "c83694b44f2c2fedad3617f86d384d05e04c605fa61a005f5d51dfffaba39772" license...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.4-zts.rb
Formula/php@7.4-zts.rb
class PhpAT74Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4ab83a550530c864e4bef29b054f81f71874d8be.tar.gz" version "7.4.33" sha256 "1593ea9ebe9902aa1dcc5651e62de5cd38b67ac636e0e166110215592ab1f820" lice...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php-debug-zts.rb
Formula/php-debug-zts.rb
class PhpDebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" # Should only be updated if the new version is announced on the homepage, https://www.php.net/ url "https://www.php.net/distributions/php-8.5.1.tar.xz" mirror "https://fossies.org/linux/www/php-8.5.1.tar.xz" ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php-debug.rb
Formula/php-debug.rb
class PhpDebug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" # Should only be updated if the new version is announced on the homepage, https://www.php.net/ url "https://www.php.net/distributions/php-8.5.1.tar.xz" mirror "https://fossies.org/linux/www/php-8.5.1.tar.xz" s...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.3-zts.rb
Formula/php@8.3-zts.rb
class PhpAT83Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.3.29.tar.xz" mirror "https://fossies.org/linux/www/php-8.3.29.tar.xz" sha256 "f7950ca034b15a78f5de9f1b22f4d9bad1dd497114d175cb1672a4ca78077af5" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.4.rb
Formula/php@8.4.rb
class PhpAT84 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.4.16.tar.xz" mirror "https://fossies.org/linux/www/php-8.4.16.tar.xz" sha256 "f66f8f48db34e9e29f7bfd6901178e9cf4a1b163e6e497716dfcb8f88bcfae30" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@5.6-zts.rb
Formula/php@5.6-zts.rb
class PhpAT56Zts < Formula desc "General-purpose scripting language" homepage "https://secure.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/6cfe49e294414185452ec89bad39b1bd42cc72c9.tar.gz" version "5.6.40" sha256 "c7aea2d4742a6daadfa333dce1e6707bd648b2ed54e36238674db026e27d43cf" l...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.3.rb
Formula/php@8.3.rb
class PhpAT83 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.3.29.tar.xz" mirror "https://fossies.org/linux/www/php-8.3.29.tar.xz" sha256 "f7950ca034b15a78f5de9f1b22f4d9bad1dd497114d175cb1672a4ca78077af5" license all_of: [ ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/autoconf@2.69.rb
Formula/autoconf@2.69.rb
class AutoconfAT269 < Formula desc "Automatic configure script builder" homepage "https://www.gnu.org/software/autoconf/" url "https://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz" mirror "https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz" sha256 "954bd69b391edc12d6a4a51a2dd1476543da5c6bbf05a95b59dc0dd...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.3-debug-zts.rb
Formula/php@8.3-debug-zts.rb
class PhpAT83DebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.3.29.tar.xz" mirror "https://fossies.org/linux/www/php-8.3.29.tar.xz" sha256 "f7950ca034b15a78f5de9f1b22f4d9bad1dd497114d175cb1672a4ca78077af5" license all_o...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.4-debug.rb
Formula/php@7.4-debug.rb
class PhpAT74Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4ab83a550530c864e4bef29b054f81f71874d8be.tar.gz" version "7.4.33" sha256 "1593ea9ebe9902aa1dcc5651e62de5cd38b67ac636e0e166110215592ab1f820" li...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.1-debug.rb
Formula/php@8.1-debug.rb
class PhpAT81Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.1.34.tar.xz" mirror "https://fossies.org/linux/www/php-8.1.34.tar.xz" sha256 "ffa9e0982e82eeaea848f57687b425ed173aa278fe563001310ae2638db5c251" license all_of: ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.6.rb
Formula/php@8.6.rb
class PhpAT86 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/php/php-src/archive/4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec.tar.gz?commit=4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec" version "8.6.0" sha256 "85e7431c9e73197dedcb58b70c06130d420eda4fa985d54...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.0.rb
Formula/php@8.0.rb
class PhpAT80 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/31b3988504b443365bfa4881257782b00919a751.tar.gz" version "8.0.30" sha256 "6f0f2a0dbb37e904859d7cc9ac12425434333a5c4b811b674621525430bd5472" license...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.0-debug-zts.rb
Formula/php@8.0-debug-zts.rb
class PhpAT80DebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/31b3988504b443365bfa4881257782b00919a751.tar.gz" version "8.0.30" sha256 "6f0f2a0dbb37e904859d7cc9ac12425434333a5c4b811b674621525430bd5472" ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@5.6-debug.rb
Formula/php@5.6-debug.rb
class PhpAT56Debug < Formula desc "General-purpose scripting language" homepage "https://secure.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/6cfe49e294414185452ec89bad39b1bd42cc72c9.tar.gz" version "5.6.40" sha256 "c7aea2d4742a6daadfa333dce1e6707bd648b2ed54e36238674db026e27d43cf" ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.3-zts.rb
Formula/php@7.3-zts.rb
class PhpAT73Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/2c97539020cfaadf6998f23fd301cb5158464fbc.tar.gz" version "7.3.33" sha256 "c9bc90d6c3d7b2d3a9e17581d36382f4db3e20e3e43225db5437c52e2f2de7bf" lice...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.3.rb
Formula/php@7.3.rb
class PhpAT73 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/2c97539020cfaadf6998f23fd301cb5158464fbc.tar.gz" version "7.3.33" sha256 "c9bc90d6c3d7b2d3a9e17581d36382f4db3e20e3e43225db5437c52e2f2de7bf" license...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.6-zts.rb
Formula/php@8.6-zts.rb
class PhpAT86Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/php/php-src/archive/4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec.tar.gz?commit=4c9bbaa79d7b6868bc39a9a2f841c6df91fc45ec" version "8.6.0" sha256 "85e7431c9e73197dedcb58b70c06130d420eda4fa985...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.2-debug-zts.rb
Formula/php@8.2-debug-zts.rb
class PhpAT82DebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.2.30.tar.xz" mirror "https://fossies.org/linux/www/php-8.2.30.tar.xz" sha256 "bc90523e17af4db46157e75d0c9ef0b9d0030b0514e62c26ba7b513b8c4eb015" license all_o...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.0-debug.rb
Formula/php@8.0-debug.rb
class PhpAT80Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/31b3988504b443365bfa4881257782b00919a751.tar.gz" version "8.0.30" sha256 "6f0f2a0dbb37e904859d7cc9ac12425434333a5c4b811b674621525430bd5472" li...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php-zts.rb
Formula/php-zts.rb
class PhpZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" # Should only be updated if the new version is announced on the homepage, https://www.php.net/ url "https://www.php.net/distributions/php-8.5.1.tar.xz" mirror "https://fossies.org/linux/www/php-8.5.1.tar.xz" sha...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.1-debug.rb
Formula/php@7.1-debug.rb
class PhpAT71Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/45db7daedb330abded7576b9c4dadf5ed13e2f0b.tar.gz" version "7.1.33" sha256 "c83694b44f2c2fedad3617f86d384d05e04c605fa61a005f5d51dfffaba39772" li...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.2-debug-zts.rb
Formula/php@7.2-debug-zts.rb
class PhpAT72DebugZts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/383aaa666ea5d825183dde9e676690f62f21ad88.tar.gz" version "7.2.34" sha256 "3b48ab3d2f57cc29e793846446024f7e1219641647bf1d678a5effe460358d4d" ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.0.rb
Formula/php@7.0.rb
class PhpAT70 < Formula desc "General-purpose scripting language" homepage "https://secure.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4de530c8e7f4d5fa3df1d0e15d79a7bd44cc597c.tar.gz" version "7.0.33" sha256 "3371c5712eae64aa28eda7733a02d93ec298894d57eb0ce3fdac0904bbee4a16" lice...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.4-debug.rb
Formula/php@8.4-debug.rb
class PhpAT84Debug < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://www.php.net/distributions/php-8.4.16.tar.xz" mirror "https://fossies.org/linux/www/php-8.4.16.tar.xz" sha256 "f66f8f48db34e9e29f7bfd6901178e9cf4a1b163e6e497716dfcb8f88bcfae30" license all_of: ...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.4.rb
Formula/php@7.4.rb
class PhpAT74 < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4ab83a550530c864e4bef29b054f81f71874d8be.tar.gz" version "7.4.33" sha256 "1593ea9ebe9902aa1dcc5651e62de5cd38b67ac636e0e166110215592ab1f820" license...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@8.0-zts.rb
Formula/php@8.0-zts.rb
class PhpAT80Zts < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/31b3988504b443365bfa4881257782b00919a751.tar.gz" version "8.0.30" sha256 "6f0f2a0dbb37e904859d7cc9ac12425434333a5c4b811b674621525430bd5472" lice...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
shivammathur/homebrew-php
https://github.com/shivammathur/homebrew-php/blob/06eec83a2717b368f9105200eef26e9134dc67a5/Formula/php@7.0-zts.rb
Formula/php@7.0-zts.rb
class PhpAT70Zts < Formula desc "General-purpose scripting language" homepage "https://secure.php.net/" url "https://github.com/shivammathur/php-src-backports/archive/4de530c8e7f4d5fa3df1d0e15d79a7bd44cc597c.tar.gz" version "7.0.33" sha256 "3371c5712eae64aa28eda7733a02d93ec298894d57eb0ce3fdac0904bbee4a16" l...
ruby
MIT
06eec83a2717b368f9105200eef26e9134dc67a5
2026-01-04T15:53:04.815253Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/benchmarks/sorts.rb
benchmarks/sorts.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '../lib') require 'algorithms' include Algorithms require 'rubygems' require 'rbench' RBench.run(5) do sorts = %w(ruby comb_sort heapsort insertion_sort shell_sort quicksort mergesort) sorts.each { |sort| self.send(:column, sort.intern) } n = 1000 ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/benchmarks/treemaps.rb
benchmarks/treemaps.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '../lib') require 'algorithms' include Containers require 'rubygems' require 'rbench' RBench.run(2) do trees = %w(hash rbtree splaytree) trees.each { |tree| self.send(:column, tree.intern) } rbtree = RBTreeMap.new splaytree = SplayTreeMap.new hash...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/benchmarks/deque.rb
benchmarks/deque.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '../lib') require 'algorithms' include Algorithms require 'rubygems' require 'rbench' RBench.run(2) do %w(array deque).each { |s| self.send(:column, s.intern) } deque = Containers::Deque.new array = [] report "Insertion at end" do array { 100000...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/benchmarks/heap.rb
benchmarks/heap.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '../lib') require 'algorithms' include Algorithms require 'rubygems' require 'rbench' TIMES = 10_000 ELEMENTS = [] TIMES.times { ELEMENTS << Random.rand('a'.ord .. 'z'.ord).chr } RBench.run(2) do %w(array heap).each { |s| self.send(:column, s.intern) } r...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/ext/algorithms/string/extconf.rb
ext/algorithms/string/extconf.rb
require 'mkmf' extension_name = "CString" dir_config(extension_name) create_makefile(extension_name)
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/ext/containers/rbtree_map/extconf.rb
ext/containers/rbtree_map/extconf.rb
require 'mkmf' extension_name = "CRBTreeMap" dir_config(extension_name) create_makefile(extension_name)
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/ext/containers/bst/extconf.rb
ext/containers/bst/extconf.rb
require 'mkmf' extension_name = "CBst" dir_config(extension_name) create_makefile(extension_name)
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/ext/containers/splaytree_map/extconf.rb
ext/containers/splaytree_map/extconf.rb
require 'mkmf' extension_name = "CSplayTreeMap" dir_config(extension_name) create_makefile(extension_name)
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/ext/containers/deque/extconf.rb
ext/containers/deque/extconf.rb
require 'mkmf' extension_name = "CDeque" dir_config(extension_name) create_makefile(extension_name)
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/kd_tree_spec.rb
spec/kd_tree_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' describe Containers::KDTree do it "should work for a documented example" do kdtree = Containers::KDTree.new( {0 => [4, 3], 1 => [3, 0], 2 => [-1, 2], 3 => [6, 4], 4 => [3, -5], 5 => [-...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/search_spec.rb
spec/search_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' class String; include Algorithms::Search; end describe "search algorithms" do it "should binary search sorted arrays" do n = 1000 @rand_array = Array.new(n) { rand(n) }.sort expect(Algorithms::Search.binary_...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/string_spec.rb
spec/string_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' if defined? Algorithms::String describe "string algorithms" do it "should do levenshtein distance" do expect(Algorithms::String.levenshtein_dist("Hello", "Hel")).to eql(2) expect(Algorithms::String.levensh...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/splay_tree_map_spec.rb
spec/splay_tree_map_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' shared_examples "empty splaytree" do it "should let you push stuff in" do 100.times { |x| @tree[x] = x } expect(@tree.size).to eql(100) end it "should return 0 for size" do expect(@tree.size).to eql(0) ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/rb_tree_map_spec.rb
spec/rb_tree_map_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' shared_examples "empty rbtree" do it "should let you push stuff in" do 100.times { |x| @tree[x] = x } expect(@tree.size).to eql(100) end it "should be empty?" do expect(@tree.empty?).to be true end it "s...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/trie_spec.rb
spec/trie_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' describe "empty trie" do before(:each) do @trie = Containers::Trie.new end it "should not get or has_key?" do expect(@trie.get("anything")).to be_nil expect(@trie.has_key?("anything")).to be false end it...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/bst_gc_mark_spec.rb
spec/bst_gc_mark_spec.rb
# $: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') # require 'algorithms' # # if defined? Containers::CBst # describe "CBst" do # it "should mark ruby object references" do # anon_key_class = Class.new do # attr :value # def initialize(x); @value = x; end # def...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/map_gc_mark_spec.rb
spec/map_gc_mark_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' if !(defined? RUBY_ENGINE && RUBY_ENGINE == 'jruby') describe "map gc mark test" do it "should mark ruby object references" do anon_key_class = Class.new do attr :value def initialize(x); @value = x;...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/heap_spec.rb
spec/heap_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' include Comparable class Book attr_reader :title, :year_published def initialize(title, year_published) @title = title @year_published = year_published end def <=>(other) return nil unless other.is_a?(Boo...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/queue_spec.rb
spec/queue_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' describe "empty queue" do before(:each) do @queue = Containers::Queue.new end it "should return nil when sent #pop" do expect(@queue.pop).to be_nil end it "should return a size of 1 when sent #push" do ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/sort_spec.rb
spec/sort_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' include Algorithms describe "sort algorithms" do before(:each) do @sorts = %w(bubble_sort comb_sort selection_sort heapsort insertion_sort shell_sort quicksort mergesort dualpivotquicksort) end it "should work...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/suffix_array_spec.rb
spec/suffix_array_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' describe "empty suffix array" do it "should not initialize with empty string" do expect { Containers::SuffixArray.new("") }.to raise_error(ArgumentError) end end describe "non-empty suffix array" do before(:each) do ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/deque_spec.rb
spec/deque_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' shared_examples "(empty deque)" do it "should return nil when popping objects" do expect(@deque.pop_front).to be_nil expect(@deque.pop_back).to be_nil end it "should return a size of 1 when sent #push_front" do ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/bst_spec.rb
spec/bst_spec.rb
# $: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') # require "algorithms" # # begin # Containers::CBst # describe "binary search tree" do # it "should let user push new elements with key" do # @bst = Containers::CBst.new # 100.times { |x| @bst.push(x, "hello : #{x}") } # ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/priority_queue_spec.rb
spec/priority_queue_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' describe Containers::PriorityQueue do before(:each) do @q = Containers::PriorityQueue.new end describe "(empty priority queue)" do it "should return 0 for size and be empty" do expect(@q.size).to eql(0) ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/stack_spec.rb
spec/stack_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' describe "empty stack" do before(:each) do @stack = Containers::Stack.new end it "should return nil when sent #pop" do expect(@stack.pop).to be_nil end it "should return a size of 1 when sent #push" do @...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/spec/deque_gc_mark_spec.rb
spec/deque_gc_mark_spec.rb
$: << File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib') require 'algorithms' if defined? Containers::CDeque describe "CDeque" do it "should mark ruby object references" do anon_class = Class.new @deque = Containers::CDeque.new 100.times { @deque.push_front(anon_class.new) } ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/algorithms.rb
lib/algorithms.rb
=begin rdoc The 'Algorithms and Containers' library is an effort to provide a set of commonly used algorithms and containers to Ruby programmers. This is a Google Summer of Code 2008 project Written by Kanwei Li, mentored by Austin Ziegler To avoid typing Containers::xxx to initialize containers, include t...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/algorithms/sort.rb
lib/algorithms/sort.rb
require 'containers/heap' # for heapsort =begin rdoc This module implements sorting algorithms. Documentation is provided for each algorithm. =end module Algorithms::Sort # Bubble sort: A very naive sort that keeps swapping elements until the container is sorted. # Requirements: Needs to be able to compar...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/algorithms/search.rb
lib/algorithms/search.rb
=begin rdoc This module implements search algorithms. Documentation is provided for each algorithm. =end module Algorithms::Search # Binary Search: This search finds an item in log(n) time provided that the container is already sorted. # The method returns the item if it is found, or nil if it is not. If t...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/algorithms/string.rb
lib/algorithms/string.rb
=begin rdoc This module implements string algorithms. Documentation is provided for each algorithm. =end begin require 'CString' rescue LoadError end
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/trie.rb
lib/containers/trie.rb
=begin rdoc A Trie is a data structure that stores key value pairs in a tree-like fashion. It allows O(m) lookup speed, where m is the length of the key searched, and has no chance of collisions, unlike hash tables. Because of its nature, search misses are quickly detected. Tries are often used for...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/rb_tree_map.rb
lib/containers/rb_tree_map.rb
require 'containers/stack' =begin rdoc A RBTreeMap is a map that is stored in sorted order based on the order of its keys. This ordering is determined by applying the function <=> to compare the keys. No duplicate values for keys are allowed, so duplicate values are overwritten. A major advantage o...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/deque.rb
lib/containers/deque.rb
=begin rdoc A Deque is a container that allows items to be added and removed from both the front and back, acting as a combination of a Stack and Queue. This implementation uses a doubly-linked list, guaranteeing O(1) complexity for all operations. =end class Containers::RubyDeque include Enumerable ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/splay_tree_map.rb
lib/containers/splay_tree_map.rb
require 'containers/stack' =begin rdoc A SplayTreeMap is a map that is stored in ascending order of its keys, determined by applying the function <=> to compare keys. No duplicate values for keys are allowed, so new values of a key overwrites the old value of the key. A major advantage of SplayTree...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/queue.rb
lib/containers/queue.rb
require 'containers/deque' =begin rdoc A Queue is a container that keeps elements in a first-in first-out (FIFO) order. Because of its properties, it is often used as a buffer. This implementation uses a doubly-linked list, guaranteeing O(1) complexity for all operations. =end class Containers::Q...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/stack.rb
lib/containers/stack.rb
require 'containers/deque' =begin rdoc A Stack is a container that keeps elements in a last-in first-out (LIFO) order. There are many uses for stacks, including prefix-infix-postfix conversion and backtracking problems. This implementation uses a doubly-linked list, guaranteeing O(1) complexity for all ope...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/priority_queue.rb
lib/containers/priority_queue.rb
require 'containers/heap' =begin rdoc A Priority Queue is a data structure that behaves like a queue except that elements have an associated priority. The #next and #pop methods return the item with the next highest priority. Priority Queues are often used in graph problems, such as Dijkstra's Algorit...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/heap.rb
lib/containers/heap.rb
=begin rdoc A Heap is a container that satisfies the heap property that nodes are always smaller in value than their parent node. The Containers::Heap class is flexible and upon initialization, takes an optional block that determines how the items are ordered. Two versions that are included are the...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/suffix_array.rb
lib/containers/suffix_array.rb
=begin rdoc A suffix array enables fast substring search of a given string. An array of all possible substrings is constructed and stored, and a binary search is then done to find a desired substring among those stored. While more storage (and thus memory) is needed to create the SuffixArray, the advantage ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
kanwei/algorithms
https://github.com/kanwei/algorithms/blob/feaa5d574da4e9d04f39cb610f0ce89ae3446bd4/lib/containers/kd_tree.rb
lib/containers/kd_tree.rb
=begin rdoc A kd-tree is a binary tree that allows one to store points (of any space dimension: 2D, 3D, etc). The structure of the resulting tree makes it so that large portions of the tree are pruned during queries. One very good use of the tree is to allow nearest neighbor searching. Let's say ...
ruby
MIT
feaa5d574da4e9d04f39cb610f0ce89ae3446bd4
2026-01-04T15:53:20.973576Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/app/controllers/inherited_resources/base.rb
app/controllers/inherited_resources/base.rb
# frozen_string_literal: true module InheritedResources # = Base # # This is the base class that holds all actions. If you see the code for each # action, they are quite similar to Rails default scaffold. # # To change your base behavior, you can overwrite your actions and call super, # call <tt>default</...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/polymorphic_test.rb
test/polymorphic_test.rb
# frozen_string_literal: true require 'test_helper' class Factory; end class Company; end class User; end class Photo; end class Employee def self.human_name; 'Employee'; end end class EmployeesController < InheritedResources::Base belongs_to :factory, :company, polymorphic: true end class PhotosController < In...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/aliases_test.rb
test/aliases_test.rb
# frozen_string_literal: true require 'test_helper' class Student extend ActiveModel::Naming end class ApplicationController < ActionController::Base include InheritedResources::DSL end class StudentsController < ApplicationController inherit_resources respond_to :html, :xml def edit edit! do |format|...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/nested_belongs_to_test.rb
test/nested_belongs_to_test.rb
# frozen_string_literal: true require 'test_helper' class Country end class State end class City def self.human_name; 'City'; end end class CitiesController < InheritedResources::Base belongs_to :country, :state end class NestedBelongsToTest < ActionController::TestCase tests CitiesController def setup ...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/belongs_to_test.rb
test/belongs_to_test.rb
# frozen_string_literal: true require 'test_helper' class Post extend ActiveModel::Naming end class Comment extend ActiveModel::Naming end class CommentsController < InheritedResources::Base belongs_to :post end class BelongsToTest < ActionController::TestCase tests CommentsController def setup draw_...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/customized_belongs_to_test.rb
test/customized_belongs_to_test.rb
# frozen_string_literal: true require 'test_helper' class GreatSchool end class Professor def self.human_name; 'Professor'; end end class ProfessorsController < InheritedResources::Base belongs_to :school, parent_class: GreatSchool, instance_name: :great_school, finder: :find_by_title!, par...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/class_methods_test.rb
test/class_methods_test.rb
# frozen_string_literal: true require 'test_helper' class Book; end class Folder; end class BooksController < InheritedResources::Base custom_actions collection: :search, resource: [:delete] actions :index, :show end class ReadersController < InheritedResources::Base actions :all, except: [ :edit, :update ] en...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/strong_parameters_test.rb
test/strong_parameters_test.rb
# frozen_string_literal: true require 'test_helper' class Widget extend ActiveModel::Naming include ActiveModel::Conversion end class WidgetsController < InheritedResources::Base end # test usage of `permitted_params` class StrongParametersTest < ActionController::TestCase def setup draw_routes do re...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/belongs_to_with_shallow_test.rb
test/belongs_to_with_shallow_test.rb
# frozen_string_literal: true require 'test_helper' class Post extend ActiveModel::Naming end class Tag extend ActiveModel::Naming end class TagsController < InheritedResources::Base belongs_to :post, shallow: true, finder: :find_by_slug end class BelongsToWithShallowTest < ActionController::TestCase tests ...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/customized_redirect_to_test.rb
test/customized_redirect_to_test.rb
# frozen_string_literal: true require 'test_helper' class Post; def self.human_name; 'Post'; end end class PostsController < InheritedResources::Base actions :all, except: [:show] end class RedirectToIndexWithoutShowTest < ActionController::TestCase tests PostsController def setup draw_routes do r...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/singleton_test.rb
test/singleton_test.rb
# frozen_string_literal: true require 'test_helper' # This test file is instead to test the how controller flow and actions # using a belongs_to association. This is done using mocks a la rspec. # class Store extend ActiveModel::Naming end class Manager extend ActiveModel::Naming end class ManagersController < I...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false
activeadmin/inherited_resources
https://github.com/activeadmin/inherited_resources/blob/09afed6e7121c1dab5419e81d49809b399e68810/test/test_helper.rb
test/test_helper.rb
# frozen_string_literal: true if ENV.fetch('COVERAGE', false) require 'simplecov' require 'simplecov-cobertura' SimpleCov.start do add_filter %r{^/test/} minimum_coverage 98 maximum_coverage_drop 0.2 formatter SimpleCov::Formatter::CoberturaFormatter end end require 'rubygems' require 'bundler'...
ruby
MIT
09afed6e7121c1dab5419e81d49809b399e68810
2026-01-04T15:53:12.830781Z
false