repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
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:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/DataSource/Grouped.php
src/Camspiers/StatisticalClassifier/DataSource/Grouped.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\DataSource; use InvalidArgum...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/DataSource/Directory.php
src/Camspiers/StatisticalClassifier/DataSource/Directory.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\DataSource; use Symfony\Comp...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/DataSource/PDOQuery.php
src/Camspiers/StatisticalClassifier/DataSource/PDOQuery.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\DataSource; use PDO; /** *...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/DataSource/Converter.php
src/Camspiers/StatisticalClassifier/DataSource/Converter.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\DataSource; /** * @author ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/DataSource/Closure.php
src/Camspiers/StatisticalClassifier/DataSource/Closure.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\DataSource; /** * @author ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Config/DataSourceConfiguration.php
src/Camspiers/StatisticalClassifier/Config/DataSourceConfiguration.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Config; use Symfony\Componen...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Normalizer/Token/Porter.php
src/Camspiers/StatisticalClassifier/Normalizer/Token/Porter.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Normalizer\Token; use Porter...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Normalizer/Token/NormalizerInterface.php
src/Camspiers/StatisticalClassifier/Normalizer/Token/NormalizerInterface.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Normalizer\Token; /** * @au...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Normalizer/Token/Grouped.php
src/Camspiers/StatisticalClassifier/Normalizer/Token/Grouped.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Normalizer\Token; use Invali...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Normalizer/Token/Stopword.php
src/Camspiers/StatisticalClassifier/Normalizer/Token/Stopword.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Normalizer\Token; /** * @au...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Normalizer/Token/PhpStemmer.php
src/Camspiers/StatisticalClassifier/Normalizer/Token/PhpStemmer.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Normalizer\Token; /** * @au...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Normalizer/Document/NormalizerInterface.php
src/Camspiers/StatisticalClassifier/Normalizer/Document/NormalizerInterface.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Normalizer\Document; /** * ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/src/Camspiers/StatisticalClassifier/Normalizer/Document/Lowercase.php
src/Camspiers/StatisticalClassifier/Normalizer/Document/Lowercase.php
<?php /** * This file is part of the Statistical Classifier package. * * (c) Cam Spiers <camspiers@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Camspiers\StatisticalClassifier\Normalizer\Document; /** * ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/bootstrap.php
tests/bootstrap.php
<?php $filename = __DIR__ . '/../vendor/autoload.php'; if (!file_exists($filename)) { echo 'You must first install the vendors using composer.' . PHP_EOL; exit(1); } $autoloader = require $filename; $autoloader->add('Camspiers', __DIR__);
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Model/SVMCachedModelTest.php
tests/Camspiers/StatisticalClassifier/Model/SVMCachedModelTest.php
<?php namespace Camspiers\StatisticalClassifier\Model; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-04-13 at 17:34:17. */ class SVMCachedModelTest extends \PHPUnit_Framework_TestCase { /** * @var SVMCachedModel */ protected $object; /** * Sets up the fixture, for example, op...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Model/CachedModelTest.php
tests/Camspiers/StatisticalClassifier/Model/CachedModelTest.php
<?php namespace Camspiers\StatisticalClassifier\Model; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:10. */ class CachedModelTest extends \PHPUnit_Framework_TestCase { /** * Sets up the fixture, for example, opens a network connection. * This method is called before a test i...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Classifier/ComplementNaiveBayesTest.php
tests/Camspiers/StatisticalClassifier/Classifier/ComplementNaiveBayesTest.php
<?php namespace Camspiers\StatisticalClassifier\Classifier; use Camspiers\StatisticalClassifier\DataSource\DataArray; class ComplementNaiveBayesTest extends \PHPUnit_Framework_TestCase { public function testClassify() { $dataSource = new DataArray(); $dataSource->addDocument('spam', 'Some spa...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Classifier/SVMTest.php
tests/Camspiers/StatisticalClassifier/Classifier/SVMTest.php
<?php namespace Camspiers\StatisticalClassifier\Classifier; use Camspiers\StatisticalClassifier\DataSource\DataArray; /** * Class SVMTest * @package Camspiers\StatisticalClassifier\Classifier * @requires extension svm */ class SVMTest extends \PHPUnit_Framework_TestCase { public function testClassify() {...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Classifier/ClassifierTest.php
tests/Camspiers/StatisticalClassifier/Classifier/ClassifierTest.php
<?php namespace Camspiers\StatisticalClassifier\Classifier; class ClassifierTest extends \PHPUnit_Framework_TestCase { /** * @var Classifier */ protected $classifier; protected $dataSource; protected $model; protected function setUp() { $this->classifier = $this->getMockFo...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/ComplementTest.php
tests/Camspiers/StatisticalClassifier/Transform/ComplementTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class ComplementTest extends \PHPUnit_Framework_TestCase { public function testApply() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/DocumentCountTest.php
tests/Camspiers/StatisticalClassifier/Transform/DocumentCountTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class DocumentCountTest extends \PHPUnit_Framework_TestCase { public function testTransform() { $transform = new DocumentCount(); $this->assertEquals( 2, $transform(array(1, 2)) ); $this->assertE...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/TFIDFTest.php
tests/Camspiers/StatisticalClassifier/Transform/TFIDFTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class TFIDFTest extends \PHPUnit_Framework_TestCase { public function testTransform() { $tfidf = new TFIDF(); $this->assertEquals( array( 'spam' => array( array( ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/TokenAppearanceCountTest.php
tests/Camspiers/StatisticalClassifier/Transform/TokenAppearanceCountTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class TokenAppearanceCountTest extends \PHPUnit_Framework_TestCase { public function testTransform() { $transform = new TokenAppearanceCount(); $this->assertEquals( array( 'some' => 2, '...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/TokenCountByDocumentTest.php
tests/Camspiers/StatisticalClassifier/Transform/TokenCountByDocumentTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; use Camspiers\StatisticalClassifier\Normalizer\Document; use Camspiers\StatisticalClassifier\Tokenizer\Word; class TokenCountByDocumentTest extends \PHPUnit_Framework_TestCase { public function testTransform() { $transform = new TokenCountByD...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/DocumentTokenCountsTest.php
tests/Camspiers/StatisticalClassifier/Transform/DocumentTokenCountsTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class DocumentTokenCountsTest extends \PHPUnit_Framework_TestCase { public function testApply() { $transform = new DocumentTokenCounts(); $this->assertEquals( array( 'cat' => 110, 'cat2' => ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/DocumentLength.php
tests/Camspiers/StatisticalClassifier/Transform/DocumentLength.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class DocumentLengthTest extends \PHPUnit_Framework_TestCase { public function testApply() { $transform = new DocumentLength(); $this->assertEquals( array( 'cat' => array( array( ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/WeightTest.php
tests/Camspiers/StatisticalClassifier/Transform/WeightTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class WeightTest extends \PHPUnit_Framework_TestCase { public function testApply() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' )...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Transform/TokensByCategoryTest.php
tests/Camspiers/StatisticalClassifier/Transform/TokensByCategoryTest.php
<?php namespace Camspiers\StatisticalClassifier\Transform; class TokensByCategoryTest extends \PHPUnit_Framework_TestCase { public function testTransform() { $transform = new TokensByCategory(); $this->assertEquals( array( 'spam' => array( 'some...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Tokenizer/WordTest.php
tests/Camspiers/StatisticalClassifier/Tokenizer/WordTest.php
<?php namespace Camspiers\StatisticalClassifier\Tokenizer; class WordTest extends \PHPUnit_Framework_TestCase { protected $word; protected function setUp() { $this->word = new Word; } protected function tearDown() { $this->word = null; } /** * @covers Camspiers\...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/ClosureTest.php
tests/Camspiers/StatisticalClassifier/DataSource/ClosureTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-04-13 at 11:25:33. */ class ClosureTest extends \PHPUnit_Framework_TestCase { /** * @var Closure */ protected $object; /** * @var */ protected $data; /** ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/PDOQueryTest.php
tests/Camspiers/StatisticalClassifier/DataSource/PDOQueryTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:09. */ class PDOQueryTest extends \PHPUnit_Framework_TestCase { /** * Sets up the fixture, for example, opens a network connection. * This method is called before a test...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/CSVTest.php
tests/Camspiers/StatisticalClassifier/DataSource/CSVTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; use org\bovigo\vfs\vfsStream; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-04-13 at 17:34:17. */ class CSVTest extends \PHPUnit_Framework_TestCase { /** * @var */ protected $object; /** * @var */ protected...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/ConverterTest.php
tests/Camspiers/StatisticalClassifier/DataSource/ConverterTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; class ConverterTest extends \PHPUnit_Framework_TestCase { public function testRun() { $data = array( array( 'document' => 'Test', 'category' => 'Test' ) ); // Configure ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/JsonTest.php
tests/Camspiers/StatisticalClassifier/DataSource/JsonTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; use org\bovigo\vfs\vfsStream; class JsonTest extends \PHPUnit_Framework_TestCase { /** * @var */ protected $object; /** * @var */ protected $json; /** * @var */ protected $data; /** * Sets up th...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/GroupedTest.php
tests/Camspiers/StatisticalClassifier/DataSource/GroupedTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; class GroupedTest extends \PHPUnit_Framework_TestCase { public function testObjectCreateViaArray() { $sources = array( $this->getMock(__NAMESPACE__ . '\\' . 'DataSourceInterface'), $this->getMock(__NAMESPACE__ . '\\' ....
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/DirectoryTest.php
tests/Camspiers/StatisticalClassifier/DataSource/DirectoryTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:09. */ class DirectoryTest extends \PHPUnit_Framework_TestCase { /** * Sets up the fixture, for example, opens a network connection. * This method is called before a tes...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/DataArrayTest.php
tests/Camspiers/StatisticalClassifier/DataSource/DataArrayTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:09. */ class DataArrayTest extends \PHPUnit_Framework_TestCase { /** * @var */ protected $object; /** * @var */ protected $data; /** * Set...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/DataSource/SerializedTest.php
tests/Camspiers/StatisticalClassifier/DataSource/SerializedTest.php
<?php namespace Camspiers\StatisticalClassifier\DataSource; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:09. */ class SerializedTest extends \PHPUnit_Framework_TestCase { /** * Sets up the fixture, for example, opens a network connection. * This method is called before a te...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Config/DataSourceConfigurationTest.php
tests/Camspiers/StatisticalClassifier/Config/DataSourceConfigurationTest.php
<?php namespace Camspiers\StatisticalClassifier\Config; use Symfony\Component\Config\Definition\Processor; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:08. */ class DataSourceConfigurationTest extends \PHPUnit_Framework_TestCase { protected $processor; protected $config; p...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Normalizer/Token/PhpStemmerTest.php
tests/Camspiers/StatisticalClassifier/Normalizer/Token/PhpStemmerTest.php
<?php namespace Camspiers\StatisticalClassifier\Normalizer\Token; class PhpStemmerTest extends \PHPUnit_Framework_TestCase { /** * @var PhpStemmer */ protected $phpStemmer; public function normalizeDataProvider() { return array( array(array('optimization'), array('optim')...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Normalizer/Token/GroupedTest.php
tests/Camspiers/StatisticalClassifier/Normalizer/Token/GroupedTest.php
<?php namespace Camspiers\StatisticalClassifier\Normalizer\Token; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:10. */ class GroupedTest extends \PHPUnit_Framework_TestCase { /** * Sets up the fixture, for example, opens a network connection. * This method is called before a...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Normalizer/Token/StopwordTest.php
tests/Camspiers/StatisticalClassifier/Normalizer/Token/StopwordTest.php
<?php namespace Camspiers\StatisticalClassifier\Normalizer\Token; class StopwordTest extends \PHPUnit_Framework_TestCase { protected $stopword; protected function setUp() { $this->stopword = new Stopword( array( 'stopword', 'anotherstopword' ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/tests/Camspiers/StatisticalClassifier/Normalizer/Token/PorterTest.php
tests/Camspiers/StatisticalClassifier/Normalizer/Token/PorterTest.php
<?php namespace Camspiers\StatisticalClassifier\Normalizer\Token; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-26 at 18:06:10. */ class PorterTest extends \PHPUnit_Framework_TestCase { /** * Sets up the fixture, for example, opens a network connection. * This method is called before a ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/examples/basic_svm.php
examples/basic_svm.php
<?php require_once __DIR__ . '/../vendor/autoload.php'; // Using a plain data array source for simplicity use Camspiers\StatisticalClassifier\DataSource\DataArray; use Camspiers\StatisticalClassifier\Classifier\SVM; $source = new DataArray(); $source->addDocument('pig', 'Pigs are great. Pink and cute!'); $source->a...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/examples/svm.php
examples/svm.php
<?php ini_set('memory_limit', '512M'); require_once __DIR__ . '/../vendor/autoload.php'; use Camspiers\StatisticalClassifier\DataSource\Directory; use Camspiers\StatisticalClassifier\Classifier\SVM; $cats = array( 'alt.atheism', 'comp.graphics', 'rec.motorcycles', 'sci.crypt', 'soc.religion.chri...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/examples/converter.php
examples/converter.php
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Camspiers\StatisticalClassifier\DataSource; (new DataSource\Converter( new DataSource\Directory(__DIR__ . '/../resources/20news-bydate/20news-bydate-train'), new DataSource\Json(__DIR__ . '/../resources/converted.json') ))->run();
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/examples/basic.php
examples/basic.php
<?php require_once __DIR__ . '/../vendor/autoload.php'; // Using a plain data array source for simplicity use Camspiers\StatisticalClassifier\DataSource\DataArray; use Camspiers\StatisticalClassifier\Classifier\ComplementNaiveBayes; $source = new DataArray( array( array( 'category' => 'spam',...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/examples/language.php
examples/language.php
<?php require_once __DIR__ . '/../vendor/autoload.php'; mb_internal_encoding('UTF-8'); use Camspiers\StatisticalClassifier\DataSource\DataArray; use Camspiers\StatisticalClassifier\Classifier\ComplementNaiveBayes; $source = new DataArray(); if (!file_exists(__DIR__ . '/../resources/language-samples')) { throw ...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
camspiers/statistical-classifier
https://github.com/camspiers/statistical-classifier/blob/53f4cbf25d3c96d133add865ce57777ce9fc36d2/examples/bayes.php
examples/bayes.php
<?php ini_set('memory_limit', '512M'); require_once __DIR__ . '/../vendor/autoload.php'; use Camspiers\StatisticalClassifier\DataSource\Directory; use Camspiers\StatisticalClassifier\Classifier\ComplementNaiveBayes; $cats = array( 'alt.atheism', 'comp.graphics', 'rec.motorcycles', 'sci.crypt', '...
php
MIT
53f4cbf25d3c96d133add865ce57777ce9fc36d2
2026-01-05T03:49:53.618662Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/autoload.php
autoload.php
<?php /** * Will autoload all required classes in the \DirkGroenen\Pinterest * namespace. * * Only use this file if you're not using Composer (which you should * start using unless you've a good reason not to) * * Based on the standard PSR-4 autoloader: * https://github.com/php-fig/fig-standards/blob/master/acc...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Pinterest.php
src/Pinterest/Pinterest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest; use DirkGroenen\Pinterest\Auth\PinterestOAuth; use DirkGroenen\Pinter...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Exceptions/CurlException.php
src/Pinterest/Exceptions/CurlException.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Exceptions; class CurlException extends \Exception { }
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Exceptions/InvalidEndpointException.php
src/Pinterest/Exceptions/InvalidEndpointException.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Exceptions; class InvalidEndpointException extends \Exception { ...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Exceptions/PinterestException.php
src/Pinterest/Exceptions/PinterestException.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Exceptions; class PinterestException extends \Exception { }
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Exceptions/InvalidModelException.php
src/Pinterest/Exceptions/InvalidModelException.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Exceptions; class InvalidModelException extends \Exception { }
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Endpoints/Users.php
src/Pinterest/Endpoints/Users.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Endpoints; use DirkGroenen\Pinterest\Models\User; use DirkGroenen\Pint...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Endpoints/Endpoint.php
src/Pinterest/Endpoints/Endpoint.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Endpoints; use DirkGroenen\Pinterest\Transport\Request; use DirkGroene...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Endpoints/Following.php
src/Pinterest/Endpoints/Following.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Endpoints; use DirkGroenen\Pinterest\Models\User; use DirkGroenen\Pint...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Endpoints/Boards.php
src/Pinterest/Endpoints/Boards.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Endpoints; use DirkGroenen\Pinterest\Models\Board; class Boards exten...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Endpoints/Sections.php
src/Pinterest/Endpoints/Sections.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Endpoints; use DirkGroenen\Pinterest\Models\Section; use DirkGroenen\P...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Endpoints/Pins.php
src/Pinterest/Endpoints/Pins.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Endpoints; use DirkGroenen\Pinterest\Models\Pin; use DirkGroenen\Pinte...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Utils/CurlBuilder.php
src/Pinterest/Utils/CurlBuilder.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Utils; use DirkGroenen\Pinterest\Exceptions\PinterestException; class...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Auth/PinterestOAuth.php
src/Pinterest/Auth/PinterestOAuth.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Auth; use DirkGroenen\Pinterest\Transport\Request; use DirkGroenen\Pin...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Transport/Request.php
src/Pinterest/Transport/Request.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Transport; use DirkGroenen\Pinterest\Utils\CurlBuilder; use DirkGroene...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Transport/Response.php
src/Pinterest/Transport/Response.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Transport; use DirkGroenen\Pinterest\Utils\CurlBuilder; /** ...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Models/Collection.php
src/Pinterest/Models/Collection.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Models; use DirkGroenen\Pinterest\Exceptions\PinterestException; use ...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Models/Board.php
src/Pinterest/Models/Board.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Models; class Board extends Model { /** * The available obje...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Models/Interest.php
src/Pinterest/Models/Interest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Models; class Interest extends Model { /** * The ...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Models/User.php
src/Pinterest/Models/User.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Models; use DirkGroenen\Pinterest\Endpoints\Boards; class User ext...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Models/Pin.php
src/Pinterest/Models/Pin.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Models; class Pin extends Model { /** * The avail...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Models/Section.php
src/Pinterest/Models/Section.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Models; class Section extends Model { /** * The a...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/src/Pinterest/Models/Model.php
src/Pinterest/Models/Model.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Models; use DirkGroenen\Pinterest\Exceptions\PinterestException; use D...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/bootstrap.php
tests/Pinterest/bootstrap.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require __DIR__ . "/../../vendor/autoload.php"; define('CLIENT_ID', getenv('CLIENT_ID')); define('C...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/PinterestTest.php
tests/Pinterest/PinterestTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroenen\Pintere...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Endpoints/BoardsTest.php
tests/Pinterest/Endpoints/BoardsTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Endpoints/FollowingTest.php
tests/Pinterest/Endpoints/FollowingTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Endpoints/UsersTest.php
tests/Pinterest/Endpoints/UsersTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Endpoints/ImageUploadTest.php
tests/Pinterest/Endpoints/ImageUploadTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Endpoints/SectionsTest.php
tests/Pinterest/Endpoints/SectionsTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Endpoints/PinsTest.php
tests/Pinterest/Endpoints/PinsTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Endpoints/AuthTest.php
tests/Pinterest/Endpoints/AuthTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Utils/CurlBuilderMock.php
tests/Pinterest/Utils/CurlBuilderMock.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Utils; class CurlBuilderMock { /** * Create a new mock...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Models/CollectionTest.php
tests/Pinterest/Models/CollectionTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/tests/Pinterest/Models/ModelTest.php
tests/Pinterest/Models/ModelTest.php
<?php /** * Copyright 2015 Dirk Groenen * * (c) Dirk Groenen <dirk@bitlabs.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DirkGroenen\Pinterest\Tests\Endpoints; use \DirkGroenen\Pinterest\Pinterest; use \DirkGroen...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/demo/boot.php
demo/boot.php
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require "../vendor/autoload.php"; $dotenv = new Dotenv\Dotenv(__DIR__); $dotenv->load(); $pinterest = new DirkGroenen\Pinterest\Pinterest(getenv("APP_ID"), getenv("APP_SECRET")); if (iss...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/demo/index.php
demo/index.php
<?php require "boot.php"; ?> <!DOCTYPE html> <html> <head></head> <body> <h1>Login with Pinterest</h1> <p>Use this <a href="<?php echo $pinterest->auth->getLoginUrl('https://github.local/pinterest/demo/callback.php', array('read_public', 'write_public')); ?>">link to login</a> with your Pintere...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
dirkgroenen/pinterest-api-php
https://github.com/dirkgroenen/pinterest-api-php/blob/01c0af7e26cc18c4ad7143943114d5d845e9f69d/demo/callback.php
demo/callback.php
<?php require "boot.php"; ?> <!DOCTYPE html> <html> <head></head> <body> <?php $board = $pinterest->boards->create(array( "name" => "Test from API", "description" => "Test" )); echo $pinterest->pins->create(array( ...
php
Apache-2.0
01c0af7e26cc18c4ad7143943114d5d845e9f69d
2026-01-05T03:50:05.844858Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/models.php
models.php
<?php /* Plugin Name: Models Plugin URI: http://github.com/soberwp/models Description: WordPress plugin to create custom post types and taxonomies using JSON, YAML or PHP files Version: 1.1.0 Author: Sober Author URI: http://github.com/soberwp/ License: MI...
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/taxonomy-basic.php
.github/php/taxonomy-basic.php
<?php return [ 'type' => 'tax', 'name' => 'genre', 'links' => [ 'post', 'book', ], 'labels' => [ 'has_one' => 'Genre', 'has_many' => 'Genres', 'text_domain' => 'sage', ], ];
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/post-type-basic.php
.github/php/post-type-basic.php
<?php return [ 'type' => 'cpt', 'name' => 'book', 'supports' => [ 'title', 'editor', 'thumbnail', ], 'labels' => [ 'has_one' => 'Book', 'has_many' => 'Books', 'text_domain' => 'sage', ], ];
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/post-type-all.php
.github/php/post-type-all.php
<?php return [ 'active' => true, 'type' => 'cpt', 'name' => 'book', 'supports' => [ 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', 'page-attributes', 'thumbnail', 'custom-fields', ...
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/taxonomy-multiple.php
.github/php/taxonomy-multiple.php
<?php return [ [ 'type' => 'category', 'name' => 'genre', 'links' => 'book', ], [ 'type' => 'tag', 'name' => 'author', 'links' => 'book', ], ];
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/taxonomy-all.php
.github/php/taxonomy-all.php
<?php return [ 'active' => true, 'type' => 'tax', 'name' => 'genre', 'links' => [ 'post', 'book', ], 'labels' => [ 'has_one' => 'Genre', 'has_many' => 'Genres', 'text_domain' => 'sage', 'overrides' => [ 'name' => 'Genres', 'singular...
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/post-type-required.php
.github/php/post-type-required.php
<?php return [ 'type' => 'post-type', 'name' => 'book', ];
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/post-type-multiple.php
.github/php/post-type-multiple.php
<?php return [ [ 'type' => 'cpt', 'name' => 'book', 'supports' => [ 'title', 'editor', 'thumbnail', ], ], [ 'type' => 'cpt', 'name' => 'album', 'supports' => [ 'title', 'editor', 'comments', ] ], ];
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/.github/php/taxonomy-required.php
.github/php/taxonomy-required.php
<?php return [ 'type' => 'taxonomy', 'name' => 'genre', ];
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/src/ConfigNoFile.php
src/ConfigNoFile.php
<?php namespace Sober\Models; use Noodlehaus\AbstractConfig; class ConfigNoFile extends AbstractConfig { }
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/src/Loader.php
src/Loader.php
<?php namespace Sober\Models; use Noodlehaus\Config; use Sober\Models\ConfigNoFile; use Sober\Models\Model\PostType; use Sober\Models\Model\Taxonomy; class Loader { protected $path; protected $file; protected $config; public function __construct() { $this->getPath(); $this->load(...
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/src/Model.php
src/Model.php
<?php namespace Sober\Models; class Model { protected $data; // data req for register_post_type() and register_taxonomy() protected $name; protected $args; // data req for computations protected $config = []; protected $labels = []; protected $one; protected $many; protected ...
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false
soberwp/models
https://github.com/soberwp/models/blob/b71df3c9a4f9e108d739c920120ad6da077ea125/src/Model/PostType.php
src/Model/PostType.php
<?php namespace Sober\Models\Model; use Sober\Models\Model; class PostType extends Model { // data req for register_post_type() protected $supports = []; public function run() { if ($this->isDisabled()) { return; } $this->setDefaultConfig()->setConfig(); ...
php
MIT
b71df3c9a4f9e108d739c920120ad6da077ea125
2026-01-05T03:50:14.210672Z
false