<commit_before><?php
require_once(dirname(dirname(__DIR__)) . '/classes/OAuthModule.php');

/**
 * LinkedIn authorization modlue
 *
 * Provides LinkedIn authentication and API access using OAuth
 * Register your app here: https://www.linkedin.com/secure/developer
 *
 * @package StartupAPI
 * @subpackage Authentication\Linkedin
 */
class LinkedInAuthenticationModule extends OAuthAuthenticationModule {

	protected $userCredentialsClass = 'LinkedInUserCredentials';

	/**
	 * Instantiates LinkedIn authentication module and registers it with the system
	 *
	 * @param string $oAuthConsumerKey OAuth Consumer Key
	 * @param string $oAuthConsumerSecret OAuth Consumer Secret
	 * @param string $oAuthScope Requested permission scopes (zero or more scope strings, usually URLs, separated by spaces)
	 */
	public function __construct($oAuthConsumerKey, $oAuthConsumerSecret, $oAuthScope = null) {
		parent::__construct(
			'LinkedIn','
			https://api.linkedin.com',
			$oAuthConsumerKey,
			$oAuthConsumerSecret,
			'https://api.linkedin.com/uas/oauth/requestToken',
			'https://api.linkedin.com/uas/oauth/accessToken',
			'https://www.linkedin.com/uas/oauth/authenticate',
			array('HMAC-SHA1', 'PLAINTEXT'),
			$oAuthScope,
			UserConfig::$USERSROOTURL . '/modules/linkedin/linkedin-small.png',
			UserConfig::$USERSROOTURL . '/modules/linkedin/linkedin-small.png',
			UserConfig::$USERSROOTURL . '/modules/linkedin/linkedin-small.png'
		);
	}

	public function getID() {<commit_msg>Fixed API base URL which was breaking OAuth module. Closed #235<commit_after><?php
require_once(dirname(dirname(__DIR__)) . '/classes/OAuthModule.php');

/**
 * LinkedIn authorization modlue
 *
 * Provides LinkedIn authentication and API access using OAuth
 * Register your app here: https://www.linkedin.com/secure/developer
 *
 * @package StartupAPI
 * @subpackage Authentication\Linkedin
 */
class LinkedInAuthenticationModule extends OAuthAuthenticationModule {

	protected $userCredentialsClass = 'LinkedInUserCredentials';

	/**
	 * Instantiates LinkedIn authentication module and registers it with the system
	 *
	 * @param string $oAuthConsumerKey OAuth Consumer Key
	 * @param string $oAuthConsumerSecret OAuth Consumer Secret
	 * @param string $oAuthScope Requested permission scopes (zero or more scope strings, usually URLs, separated by spaces)
	 */
	public function __construct($oAuthConsumerKey, $oAuthConsumerSecret, $oAuthScope = null) {
		parent::__construct(
			'LinkedIn',
			'https://api.linkedin.com',
			$oAuthConsumerKey,
			$oAuthConsumerSecret,
			'https://api.linkedin.com/uas/oauth/requestToken',
			'https://api.linkedin.com/uas/oauth/accessToken',
			'https://www.linkedin.com/uas/oauth/authenticate',
			array('HMAC-SHA1', 'PLAINTEXT'),
			$oAuthScope,
			UserConfig::$USERSROOTURL . '/modules/linkedin/linkedin-small.png',
			UserConfig::$USERSROOTURL . '/modules/linkedin/linkedin-small.png',
			UserConfig::$USERSROOTURL . '/modules/linkedin/linkedin-small.png'
		);
	}

	public function getID() {
{'fraction_non_alphanumeric': 0.11952191235059761, 'fraction_numerical': 0.0016600265604249668, 'mean_word_length': 4.931102362204724, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, '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': '893482', 'n_tokens_mistral': 972, 'n_tokens_neox': 887, 'n_words': 198}