<commit_before>Pod::Spec.new do |s|
  s.name         = "OGVKit"
  s.version      = "0.3"
  s.summary      = "Ogg Vorbis/Theora and WebM media playback widget for iOS."

  s.description  = <<-DESC
                   Ogg Vorbis/Theora and WebM media playback widget for iOS.
                   Packages Xiph.org's libogg, libvorbis, and libtheora, and
                   uses Google's VPX library, along with a UIView subclass
                   to play a video or audio file from a URL.
                   DESC

  s.homepage     = "https://github.com/brion/OGVKit"

  s.license      = { :type => "MIT", :file => "LICENSE" }

  s.author             = { "<NAME>" => "<EMAIL>" }
  s.social_media_url   = "https://brionv.com/"

  s.platform     = :ios, "6.0"

  s.source       = { :git => "https://github.com/brion/OGVKit.git",
                     :tag => "0.3",
                     :submodules => true }

  s.source_files = "Classes/OGVKit.{h,m}",
                   "Classes/OGVMediaType.{h,m}",
                   "Classes/OGVAudioFormat.{h,m}",
                   "Classes/OGVAudioBuffer.{h,m}",
                   "Classes/OGVVideoFormat.{h,m}",
                   "Classes/OGVVideoPlane.{h,m}",
                   "Classes/OGVVideoBuffer.{h,m}",
                   "Classes/OGVHTTPContentRange.{h,m}",
                   "Classes/OGVInputStream.{h,m}",
                   "Classes/OGVDecoder.{h,m}",
                   "Classes/OGVFrameView.{h,m}",
                   "Classes/OGVAudioFeeder.{h,m}",
                   "Classes/OGVPlayerState.{h,m}",
                   "Classes/OGVPlayerView.{h,m}"

  s.public_header_files = "Classes/OGVKit.h",
                          "Classes/OGVMediaType.h",
                          "Classes/OGVAudioFormat.h",
                          "Classes/OGVAudioBuffer.h",
                          "Classes/OGVVideoFormat.h",
                          "Classes/OGVVideoPlane.h",
                          "Classes/OGVVideoBuffer.h",
                          "Classes/OGVInputStream.h",
                          "Classes/OGVDecoder.h",
                          "Classes/OGVFrameView.h",
                          "Classes/OGVAudioFeeder.h",
                          "Classes/OGVPlayerState.h",
                          "Classes/OGVPlayerView.h"

  s.header_dir = 'OGVKit'

  s.resource_bundle = {
    'OGVKitResources' => [
      'Resources/OGVFrameView.fsh',
      'Resources/OGVFrameView.vsh',
      'Resources/OGVPlayerView.xib',
      'Resources/ogvkit-iconfont.ttf'
    ]
  }

  # File format convenience subspecs
  s.subspec "Ogg" do |sogg|
    sogg.subspec "Theora" do |soggtheora|
      soggtheora.dependency 'OGVKit/OggDemuxer'
      soggtheora.dependency 'OGVKit/TheoraDecoder'
      soggtheora.dependency 'OGVKit/VorbisDecoder'
    end
    sogg.subspec "Vorbis" do |soggvorbis|
      soggvorbis.dependency 'OGVKit/OggDemuxer'
      soggvorbis.dependency 'OGVKit/VorbisDecoder'
    end
  end
  s.subspec "WebM" do |swebm|
    swebm.subspec "VP8" do |swebmvp8|
      swebmvp8.dependency 'OGVKit/WebMDemuxer'
      swebmvp8.dependency 'OGVKit/VP8Decoder'
      swebmvp8.dependency 'OGVKit/VorbisDecoder'
    end
    swebm.subspec "Vorbis" do |swebmvorbis|
      swebmvorbis.dependency 'OGVKit/WebMDemuxer'
      swebmvorbis.dependency 'OGVKit/VorbisDecoder'
    end
  end
  
  # Demuxer module subspecs
  s.subspec "OggDemuxer" do |soggdemuxer|
    soggdemuxer.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_OGG_DEMUXER' }
    soggdemuxer.source_files = "Classes/OGVDecoderOgg.{h,m}",
                               "Classes/OGVDecoderOggPacket.{h,m}",
                               "Classes/OGVDecoderOggPacketQueue.{h,m}"
    soggdemuxer.dependency 'liboggz'
    soggdemuxer.dependency 'OGVKit/libskeleton'
  end
  s.subspec "WebMDemuxer" do |swebmdemuxer|
    swebmdemuxer.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_WEBM_DEMUXER' }
    swebmdemuxer.source_files = "Classes/OGVDecoderWebM.{h,m}"
    swebmdemuxer.dependency 'libnestegg'
  end

  # Video decoder module subspecs
  s.subspec "TheoraDecoder" do |stheoradecoder|
    stheoradecoder.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_THEORA_DECODER' }
    stheoradecoder.dependency 'libtheora'
  end
  s.subspec "VP8Decoder" do |svp8decoder|
    svp8decoder.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_VP8_DECODER' }
    svp8decoder.dependency 'libvpx', '~>1.4.0-snapshot-20150619'
  end

  # Audio decoder module subspecs
  s.subspec "VorbisDecoder" do |svorbisdecoder|
    svorbisdecoder.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_VORBIS_DECODER' }
    svorbisdecoder.dependency 'libvorbis'
  end

  # Additional libraries not ready to package separately
  s.subspec "libskeleton" do |sskel|
    sskel.source_files = "libskeleton/include/skeleton/skeleton.h",
                         "libskeleton/include/skeleton/skeleton_constants.h",
                         "libskeleton/include/skeleton/skeleton_query.h",
                         "libskeleton/src/skeleton.c",
                         "libskeleton/src/skeleton_macros.h",
                         "libskeleton/src/skeleton_privte.h",
                         "libskeleton/src/skeleton_query.c",
                         "libskeleton/src/skeleton_vector.h",
                         "libskeleton/src/skeleton_vector.c"
    sskel.compiler_flags = "-Wno-conversion",
                           "-Wno-unused-function"

    sskel.public_header_files = "libskeleton/include/skeleton/skeleton.h",
                                "libskeleton/include/skeleton/skeleton_constants.h",
                                "libskeleton/include/skeleton/skeleton_query.h"
    sskel.header_dir = 'skeleton'

    sskel.dependency 'libogg'
  end
  
end
<commit_msg>mark as 0.4pre not 0.3<commit_after>Pod::Spec.new do |s|
  s.name         = "OGVKit"
  s.version      = "0.4pre"
  s.summary      = "Ogg Vorbis/Theora and WebM media playback widget for iOS."

  s.description  = <<-DESC
                   Ogg Vorbis/Theora and WebM media playback widget for iOS.
                   Packages Xiph.org's libogg, libvorbis, and libtheora, and
                   uses Google's VPX library, along with a UIView subclass
                   to play a video or audio file from a URL.
                   DESC

  s.homepage     = "https://github.com/brion/OGVKit"

  s.license      = { :type => "MIT", :file => "LICENSE" }

  s.author             = { "<NAME>" => "<EMAIL>" }
  s.social_media_url   = "https://brionv.com/"

  s.platform     = :ios, "6.0"

  s.source       = { :git => "https://github.com/brion/OGVKit.git",
                     :tag => "0.4",
                     :submodules => true }

  s.source_files = "Classes/OGVKit.{h,m}",
                   "Classes/OGVMediaType.{h,m}",
                   "Classes/OGVAudioFormat.{h,m}",
                   "Classes/OGVAudioBuffer.{h,m}",
                   "Classes/OGVVideoFormat.{h,m}",
                   "Classes/OGVVideoPlane.{h,m}",
                   "Classes/OGVVideoBuffer.{h,m}",
                   "Classes/OGVHTTPContentRange.{h,m}",
                   "Classes/OGVInputStream.{h,m}",
                   "Classes/OGVDecoder.{h,m}",
                   "Classes/OGVFrameView.{h,m}",
                   "Classes/OGVAudioFeeder.{h,m}",
                   "Classes/OGVPlayerState.{h,m}",
                   "Classes/OGVPlayerView.{h,m}"

  s.public_header_files = "Classes/OGVKit.h",
                          "Classes/OGVMediaType.h",
                          "Classes/OGVAudioFormat.h",
                          "Classes/OGVAudioBuffer.h",
                          "Classes/OGVVideoFormat.h",
                          "Classes/OGVVideoPlane.h",
                          "Classes/OGVVideoBuffer.h",
                          "Classes/OGVInputStream.h",
                          "Classes/OGVDecoder.h",
                          "Classes/OGVFrameView.h",
                          "Classes/OGVAudioFeeder.h",
                          "Classes/OGVPlayerState.h",
                          "Classes/OGVPlayerView.h"

  s.header_dir = 'OGVKit'

  s.resource_bundle = {
    'OGVKitResources' => [
      'Resources/OGVFrameView.fsh',
      'Resources/OGVFrameView.vsh',
      'Resources/OGVPlayerView.xib',
      'Resources/ogvkit-iconfont.ttf'
    ]
  }

  # File format convenience subspecs
  s.subspec "Ogg" do |sogg|
    sogg.subspec "Theora" do |soggtheora|
      soggtheora.dependency 'OGVKit/OggDemuxer'
      soggtheora.dependency 'OGVKit/TheoraDecoder'
      soggtheora.dependency 'OGVKit/VorbisDecoder'
    end
    sogg.subspec "Vorbis" do |soggvorbis|
      soggvorbis.dependency 'OGVKit/OggDemuxer'
      soggvorbis.dependency 'OGVKit/VorbisDecoder'
    end
  end
  s.subspec "WebM" do |swebm|
    swebm.subspec "VP8" do |swebmvp8|
      swebmvp8.dependency 'OGVKit/WebMDemuxer'
      swebmvp8.dependency 'OGVKit/VP8Decoder'
      swebmvp8.dependency 'OGVKit/VorbisDecoder'
    end
    swebm.subspec "Vorbis" do |swebmvorbis|
      swebmvorbis.dependency 'OGVKit/WebMDemuxer'
      swebmvorbis.dependency 'OGVKit/VorbisDecoder'
    end
  end
  
  # Demuxer module subspecs
  s.subspec "OggDemuxer" do |soggdemuxer|
    soggdemuxer.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_OGG_DEMUXER' }
    soggdemuxer.source_files = "Classes/OGVDecoderOgg.{h,m}",
                               "Classes/OGVDecoderOggPacket.{h,m}",
                               "Classes/OGVDecoderOggPacketQueue.{h,m}"
    soggdemuxer.dependency 'liboggz'
    soggdemuxer.dependency 'OGVKit/libskeleton'
  end
  s.subspec "WebMDemuxer" do |swebmdemuxer|
    swebmdemuxer.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_WEBM_DEMUXER' }
    swebmdemuxer.source_files = "Classes/OGVDecoderWebM.{h,m}"
    swebmdemuxer.dependency 'libnestegg'
  end

  # Video decoder module subspecs
  s.subspec "TheoraDecoder" do |stheoradecoder|
    stheoradecoder.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_THEORA_DECODER' }
    stheoradecoder.dependency 'libtheora'
  end
  s.subspec "VP8Decoder" do |svp8decoder|
    svp8decoder.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_VP8_DECODER' }
    svp8decoder.dependency 'libvpx', '~>1.4.0-snapshot-20150619'
  end

  # Audio decoder module subspecs
  s.subspec "VorbisDecoder" do |svorbisdecoder|
    svorbisdecoder.xcconfig = { 'OTHER_CFLAGS' => '-DOGVKIT_HAVE_VORBIS_DECODER' }
    svorbisdecoder.dependency 'libvorbis'
  end

  # Additional libraries not ready to package separately
  s.subspec "libskeleton" do |sskel|
    sskel.source_files = "libskeleton/include/skeleton/skeleton.h",
                         "libskeleton/include/skeleton/skeleton_constants.h",
                         "libskeleton/include/skeleton/skeleton_query.h",
                         "libskeleton/src/skeleton.c",
                         "libskeleton/src/skeleton_macros.h",
                         "libskeleton/src/skeleton_privte.h",
                         "libskeleton/src/skeleton_query.c",
                         "libskeleton/src/skeleton_vector.h",
                         "libskeleton/src/skeleton_vector.c"
    sskel.compiler_flags = "-Wno-conversion",
                           "-Wno-unused-function"

    sskel.public_header_files = "libskeleton/include/skeleton/skeleton.h",
                                "libskeleton/include/skeleton/skeleton_constants.h",
                                "libskeleton/include/skeleton/skeleton_query.h"
    sskel.header_dir = 'skeleton'

    sskel.dependency 'libogg'
  end
  
end

{'fraction_non_alphanumeric': 0.11437052558058321, 'fraction_numerical': 0.005238344683080147, 'mean_word_length': 1.94246082712561, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 33, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2430536', 'n_tokens_mistral': 4045, 'n_tokens_neox': 3870, 'n_words': 548}