<commit_before>/*   Copyright 2013 APPNEXUS INC
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */

#import "ANTargetingParameters.h"

typedef NS_ENUM(NSUInteger, ANAdResponseCode) {
    ANDefaultCode = -1,
    ANAdResponseSuccessful = 0,
    ANAdResponseInvalidRequest,
    ANAdResponseUnableToFill,
    ANAdResponseMediatedSDKUnavailable,
    ANAdResponseNetworkError,
    ANAdResponseInternalError,
    ANAdResponseBadFormat = 100,
	ANAdResponseBadURL,
	ANAdResponseBadURLConnection,
	ANAdResponseNonViewResponse
};

@protocol ANCustomAdapterDelegate <NSObject>
- (void)didFailToLoadAd:(ANAdResponseCode)errorCode;
- (void)adWasClicked;
- (void)willPresentAd;
- (void)didPresentAd;
- (void)willCloseAd;
- (void)didCloseAd;
- (void)willLeaveApplication;
@end

@protocol ANCustomAdapter <NSObject>
@property (nonatomic, readwrite, weak) id<ANCustomAdapterDelegate> delegate;
@end

@protocol ANCustomAdapterBannerDelegate;

@protocol ANCustomAdapterBanner <ANCustomAdapter><commit_msg>Use signed integer in ANAdResponseCode enum.<commit_after>/*   Copyright 2013 APPNEXUS INC
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */

#import "ANTargetingParameters.h"

typedef NS_ENUM(NSInteger, ANAdResponseCode) {
    ANDefaultCode = -1,
    ANAdResponseSuccessful = 0,
    ANAdResponseInvalidRequest,
    ANAdResponseUnableToFill,
    ANAdResponseMediatedSDKUnavailable,
    ANAdResponseNetworkError,
    ANAdResponseInternalError,
    ANAdResponseBadFormat = 100,
	ANAdResponseBadURL,
	ANAdResponseBadURLConnection,
	ANAdResponseNonViewResponse
};

@protocol ANCustomAdapterDelegate <NSObject>
- (void)didFailToLoadAd:(ANAdResponseCode)errorCode;
- (void)adWasClicked;
- (void)willPresentAd;
- (void)didPresentAd;
- (void)willCloseAd;
- (void)didCloseAd;
- (void)willLeaveApplication;
@end

@protocol ANCustomAdapter <NSObject>
@property (nonatomic, readwrite, weak) id<ANCustomAdapterDelegate> delegate;
@end

@protocol ANCustomAdapterBannerDelegate;

@protocol ANCustomAdapterBanner <ANCustomAdapter>
{'fraction_non_alphanumeric': 0.07234185733512787, 'fraction_numerical': 0.008748317631224764, 'mean_word_length': 5.592017738359202, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '315449', 'n_tokens_mistral': 873, 'n_tokens_neox': 833, 'n_words': 260}