id stringlengths 20 153 | type stringclasses 1
value | granularity stringclasses 14
values | content stringlengths 16 84.3k | metadata dict |
|---|---|---|---|---|
connector-service_fn_connector-integration_-4037744963478676863 | clm | function | // connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs
fn get_authorization_razorpay_payment_status_from_action(
is_manual_capture: bool,
has_next_action: bool,
) -> AttemptStatus {
if has_next_action {
AttemptStatus::AuthenticationPending
} else if is_manual... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_authorization_razorpay_payment_status_from_action",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"nu... |
connector-service_fn_connector-integration_-6631758940601854582 | clm | function | // connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs
fn get_psync_razorpay_payment_status(
is_manual_capture: bool,
razorpay_status: RazorpayStatus,
) -> AttemptStatus {
match razorpay_status {
RazorpayStatus::Created => AttemptStatus::Pending,
Razorpay... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_psync_razorpay_payment_status",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
... |
connector-service_fn_connector-integration_-3972311658588693386 | clm | function | // connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs
pub fn get_webhook_object_from_body(
body: Vec<u8>,
) -> Result<Payload, error_stack::Report<errors::ConnectorError>> {
let webhook: RazorpayWebhook = body
.parse_struct("RazorpayWebhook")
.change_context... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_webhook_object_from_body",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo"... |
connector-service_fn_connector-integration_-8908402265636698198 | clm | function | // connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs
pub(crate) fn get_razorpay_payment_webhook_status(
entity: RazorpayEntity,
status: RazorpayPaymentStatus,
) -> Result<AttemptStatus, errors::ConnectorError> {
match entity {
RazorpayEntity::Payment => match s... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_razorpay_payment_webhook_status",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
... |
connector-service_fn_connector-integration_-2901555541874008960 | clm | function | // connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs
pub(crate) fn get_razorpay_refund_webhook_status(
entity: RazorpayEntity,
status: RazorpayRefundStatus,
) -> Result<common_enums::RefundStatus, errors::ConnectorError> {
match entity {
RazorpayEntity::Refund ... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_razorpay_refund_webhook_status",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
... |
connector-service_fn_connector-integration_-1636434888078594297 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn try_from(
item: ResponseRouterData<NexinetsRefundResponse, Self>,
) -> Result<Self, Self::Error> {
Ok(Self {
response: Ok(RefundsResponseData {
connector_refund_id: item.respons... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "try_from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_connector-integration_8550670897078209958 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn get_status(status: NexinetsPaymentStatus, method: NexinetsTransactionType) -> AttemptStatus {
match status {
NexinetsPaymentStatus::Success => match method {
NexinetsTransactionType::Preauth => Attempt... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_status",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-serv... |
connector-service_fn_connector-integration_3537089937280467251 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn from(item: RefundStatus) -> Self {
match item {
RefundStatus::Success => Self::Success,
RefundStatus::Failure | RefundStatus::Declined => Self::Failure,
RefundStatus::InProgress | R... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_connector-integration_-2322373070182054017 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn get_payment_details_and_product<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(
item: &RouterDataV2<Authorize, Pay... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_payment_details_and_product",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"r... |
connector-service_fn_connector-integration_2241953456805645297 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn get_card_data<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(
item: &RouterDataV2<Authorize, PaymentFlowData, Paym... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_card_data",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-s... |
connector-service_fn_connector-integration_-2901233954996636942 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn get_applepay_details(
wallet_data: &WalletData,
applepay_data: &ApplePayWalletData,
) -> CustomResult<ApplePayDetails, errors::ConnectorError> {
let payment_data = WalletData::get_wallet_token_as_json(wallet_data,... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_applepay_details",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "conn... |
connector-service_fn_connector-integration_-6177214858470529762 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn get_card_details<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(
req_card: &Card<T>,
) -> Result<CardDetails<T>, e... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_card_details",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connecto... |
connector-service_fn_connector-integration_3485731755972331756 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn get_wallet_details<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(
wallet: &WalletData,
) -> Result<
(Option<N... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_wallet_details",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connec... |
connector-service_fn_connector-integration_-2834110669664230917 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
pub fn get_order_id(
meta: &NexinetsPaymentsMetadata,
) -> Result<String, error_stack::Report<errors::ConnectorError>> {
let order_id = meta.order_id.clone().ok_or(
errors::ConnectorError::MissingConnectorRelated... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_order_id",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-ser... |
connector-service_fn_connector-integration_-2064561617091103254 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
pub fn get_transaction_id(
meta: &NexinetsPaymentsMetadata,
) -> Result<String, error_stack::Report<errors::ConnectorError>> {
let transaction_id = meta.transaction_id.clone().ok_or(
errors::ConnectorError::Missi... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_transaction_id",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connect... |
connector-service_fn_connector-integration_4959836677832181844 | clm | function | // connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs
fn is_mandate_payment<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(
item: &PaymentsAuthorizeData<T>,
) -> bool {
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "is_mandate_payment",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connec... |
connector-service_fn_connector-integration_-7118840584028584861 | clm | function | // connector-service/backend/connector-integration/src/connectors/cashfree/test.rs
fn test_cashfree_connector_creation() {
// Basic test to ensure connector can be created
let connector: &connectors::cashfree::Cashfree<DefaultPCIHolder> =
super::super::Cashfree::new();
assert_eq!(co... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "test_cashfree_connector_creation",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"... |
connector-service_fn_connector-integration_-913117386941814465 | clm | function | // connector-service/backend/connector-integration/src/connectors/cashfree/transformers.rs
fn try_from(
item: ResponseRouterData<
CashfreePaymentResponse,
RouterDataV2<
Authorize,
PaymentFlowData,
PaymentsAuthorizeData<T>,
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "try_from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_connector-integration_-4267907141106082030 | clm | function | // connector-service/backend/connector-integration/src/connectors/cashfree/transformers.rs
fn secret_is_empty(secret: &Secret<String>) -> bool {
secret.peek().is_empty()
}
| {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "secret_is_empty",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector... |
connector-service_fn_connector-integration_3976411639051272969 | clm | function | // connector-service/backend/connector-integration/src/connectors/cashfree/transformers.rs
fn get_cashfree_payment_method_data<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(
payment_method_data: &PaymentMeth... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_cashfree_payment_method_data",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"... |
connector-service_fn_connector-integration_4556260266317788542 | clm | function | // connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs
fn try_from(item: ResponseRouterData<RefundResponse, Self>) -> Result<Self, Self::Error> {
let refund_status = common_enums::RefundStatus::from(item.response.status);
Ok(Self {
response: Ok(RefundsRespo... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "try_from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_connector-integration_3421055711721102464 | clm | function | // connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs
fn get_payer_name(address: &AddressDetails) -> Option<Secret<String>> {
let first_name = address
.first_name
.clone()
.map_or("".to_string(), |first_name| first_name.peek().to_string());
let last_na... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_payer_name",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-... |
connector-service_fn_connector-integration_-5799409836123546819 | clm | function | // connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs
fn from(item: RefundStatus) -> Self {
match item {
RefundStatus::Success => Self::Success,
RefundStatus::Pending => Self::Pending,
RefundStatus::Rejected => Self::ManualReview,
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_connector-integration_8581464554531103985 | clm | function | // connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs
fn get_doc_from_currency(country: String) -> Secret<String> {
let doc = match country.as_str() {
"BR" => "91483309223",
"ZA" => "2001014800086",
"BD" | "GT" | "HN" | "PK" | "SN" | "TH" => "1234567890001... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_doc_from_currency",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "con... |
connector-service_fn_connector-integration_7689147486421063469 | clm | function | // connector-service/backend/connector-integration/src/connectors/rapyd/transformers.rs
fn try_from(item: ResponseRouterData<RefundResponse, Self>) -> Result<Self, Self::Error> {
let (connector_refund_id, refund_status) = match item.response.data {
Some(data) => (data.id, common_enums::RefundStatus... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "try_from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_connector-integration_-1598684213023246236 | clm | function | // connector-service/backend/connector-integration/src/connectors/rapyd/transformers.rs
fn get_status(status: RapydPaymentStatus, next_action: NextAction) -> common_enums::AttemptStatus {
match (status, next_action) {
(RapydPaymentStatus::Closed, _) => common_enums::AttemptStatus::Charged,
(
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_status",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-serv... |
connector-service_fn_connector-integration_377161422644771364 | clm | function | // connector-service/backend/connector-integration/src/connectors/rapyd/transformers.rs
fn from(item: RefundStatus) -> Self {
match item {
RefundStatus::Completed => Self::Success,
RefundStatus::Error | RefundStatus::Rejected => Self::Failure,
RefundStatus::Pending => Self::... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_connector-integration_4119764694675366801 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {
match auth_type {
ConnectorAuthType::SignatureKey {
api_key,
key1,
api_secret,
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "try_from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_connector-integration_-3185481980065317347 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
pub fn determine_upi_flow<T: domain_types::payment_method_data::PaymentMethodDataTypes>(
payment_method_data: &PaymentMethodData<T>,
) -> CustomResult<UpiFlowType, errors::ConnectorError> {
match payment_method_data {
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "determine_upi_flow",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connect... |
connector-service_fn_connector-integration_-7439446151973128045 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
pub fn extract_upi_vpa<T: domain_types::payment_method_data::PaymentMethodDataTypes>(
payment_method_data: &PaymentMethodData<T>,
) -> CustomResult<Option<String>, errors::ConnectorError> {
match payment_method_data {
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "extract_upi_vpa",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-... |
connector-service_fn_connector-integration_-6957289705848226931 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
pub fn generate_paytm_signature(
payload: &str,
merchant_key: &str,
) -> CustomResult<String, errors::ConnectorError> {
// Step 1: Generate random salt bytes using ring (same logic, different implementation)
let rng... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "generate_paytm_signature",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "c... |
connector-service_fn_connector-integration_-5853728846929343125 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
_encrypt(data: &str, key: &str) -> CustomResult<String, errors::ConnectorError> {
// PayTM uses fixed IV as specified in PayTMv1 implementation
let iv = get_paytm_iv();
let key_bytes = key.as_bytes();
let data_bytes... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "crypt(data:",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-ser... |
connector-service_fn_connector-integration_-3913032980729359843 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
_paytm_iv() -> [u8; 16] {
// This is the exact IV used by PayTM v2 as found in the Haskell codebase
*constants::PAYTM_IV
}
pub
| {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "ytm_iv() -> ",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-se... |
connector-service_fn_connector-integration_-6797924368998403143 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
create_paytm_header(
request_body: &impl serde::Serialize,
auth: &PaytmAuthType,
) -> CustomResult<PaytmRequestHeader, errors::ConnectorError> {
let _payload = serde_json::to_string(request_body)
.change_contex... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "_paytm_header(\n ",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "conn... |
connector-service_fn_connector-integration_-1354961511510201592 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
try_from_with_converter(
item: &RouterDataV2<
Authorize,
PaymentFlowData,
PaymentsAuthorizeData<T>,
PaymentsResponseData,
>,
amount_converter: &dyn AmountConv... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "om_with_converter(\n ",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "... |
connector-service_fn_connector-integration_5259596103797085652 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
try_from_with_auth(
item: &PaytmSyncRouterData,
auth: &PaytmAuthType,
) -> CustomResult<Self, errors::ConnectorError> {
let body = PaytmTransactionStatusReqBody {
mid: Secret::new(auth.merch... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "om_with_auth(\n ",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "conne... |
connector-service_fn_connector-integration_9052962118483078786 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
try_from_with_auth<T: domain_types::payment_method_data::PaymentMethodDataTypes>(
item: &PaytmAuthorizeRouterData<T>,
auth: &PaytmAuthType,
) -> CustomResult<Self, errors::ConnectorError> {
// Extract U... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "om_with_auth<T: do",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connec... |
connector-service_fn_connector-integration_-2773304284711643439 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
_from(
item: ResponseRouterData<
PaytmTransactionStatusResponse,
RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
>,
) -> Result<Self, Self::Error> {
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "om(\n ",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servi... |
connector-service_fn_connector-integration_4077306061252374201 | clm | function | // connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs
map_paytm_status_to_attempt_status(result_code: &str) -> AttemptStatus {
match result_code {
// Success
"01" => AttemptStatus::Charged, // TXN_SUCCESS
"0000" => AttemptStatus::Authentica... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "ytm_status_to_attempt_status(resul",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
... |
connector-service_fn_connector-integration_2054285568921142490 | clm | function | // connector-service/backend/connector-integration/src/connectors/mifinity/transformers.rs
fn try_from(
item: ResponseRouterData<MifinityPsyncResponse, Self>,
) -> Result<Self, Self::Error> {
let payload = item.response.payload.first();
match payload {
Some(payload) => {
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "try_from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_connector-integration_-2217055865063992973 | clm | function | // connector-service/backend/connector-integration/src/connectors/mifinity/transformers.rs
fn from(item: MifinityPaymentStatus) -> Self {
match item {
MifinityPaymentStatus::Successful => Self::Charged,
MifinityPaymentStatus::Failed => Self::Failure,
MifinityPaymentStatus::N... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_connector-integration_1024659069897724651 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_request_incremental_authorization(&self) -> Option<bool> {
None
}
| {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_request_incremental_authorization",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null... |
connector-service_fn_connector-integration_-3994609864851356532 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn try_from(
value: StripeRouterData<
RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>,
T,
>,
) -> Result<Self, Self::Error> {
let item = val... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "try_from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_connector-integration_1173613580111018141 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn from(item: RefundStatus) -> Self {
match item {
RefundStatus::Succeeded => Self::Success,
RefundStatus::Failed => Self::Failure,
RefundStatus::Pending => Self::Pending,
Re... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "from",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_connector-integration_8518057686944955326 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn validate_shipping_address_against_payment_method(
shipping_address: &Option<StripeShippingAddress>,
payment_method: Option<&StripePaymentMethodType>,
) -> Result<(), error_stack::Report<ConnectorError>> {
match paym... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "validate_shipping_address_against_payment_method",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_str... |
connector-service_fn_connector-integration_-8850820069584541922 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_stripe_payment_method_type_from_wallet_data(
wallet_data: &WalletData,
) -> Result<Option<StripePaymentMethodType>, ConnectorError> {
match wallet_data {
WalletData::AliPayRedirect(_) => Ok(Some(StripePaymen... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_stripe_payment_method_type_from_wallet_data",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_stru... |
connector-service_fn_connector-integration_-5598417203105720999 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_bank_debit_data(
bank_debit_data: &payment_method_data::BankDebitData,
) -> (StripePaymentMethodType, BankDebitData) {
match bank_debit_data {
payment_method_data::BankDebitData::AchBankDebit {
a... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_bank_debit_data",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "conne... |
connector-service_fn_connector-integration_-8522391454159232776 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn create_stripe_payment_method<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>(
payment_method_data: &PaymentMethodData... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "create_stripe_payment_method",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo... |
connector-service_fn_connector-integration_-4635542134191482774 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_stripe_card_network(card_network: common_enums::CardNetwork) -> Option<StripeCardNetwork> {
match card_network {
common_enums::CardNetwork::Visa => Some(StripeCardNetwork::Visa),
common_enums::CardNetwor... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_stripe_card_network",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "c... |
connector-service_fn_connector-integration_7891244608112781997 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_stripe_overcapture_request(
enable_overcapture: bool,
) -> Option<StripeRequestOvercaptureBool> {
match enable_overcapture {
true => Some(StripeRequestOvercaptureBool::IfAvailable),
false => None,
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_stripe_overcapture_request",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"re... |
connector-service_fn_connector-integration_-8968230207100467703 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub fn get_overcapture_status(&self) -> Option<bool> {
match self {
Self::ChargeObject(charge_object) => charge_object
.payment_method_details
.as_ref()
.and_then... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_overcapture_status",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "con... |
connector-service_fn_connector-integration_-6203313107654536436 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub fn get_maximum_capturable_amount(&self) -> Option<MinorUnit> {
match self {
Self::ChargeObject(charge_object) => {
if let Some(payment_method_details) = charge_object.payment_method_details.... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_maximum_capturable_amount",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo... |
connector-service_fn_connector-integration_6025635716755371410 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn deref(&self) -> &Self::Target {
&self.setup_intent_fields
}
| {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "deref",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",... |
connector-service_fn_connector-integration_6531673111307194203 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub fn get_additional_payment_method_data(&self) -> Option<AdditionalPaymentMethodDetails> {
match self {
Self::Card { card } => Some(AdditionalPaymentMethodDetails {
payment_checks: card.checks... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_additional_payment_method_data",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
... |
connector-service_fn_connector-integration_-6852380513523657294 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn extract_payment_method_connector_response_from_latest_charge(
stripe_charge_enum: &StripeChargeEnum,
) -> Option<ConnectorResponseData> {
let is_overcapture_enabled = stripe_charge_enum.get_overcapture_status();
let... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "extract_payment_method_connector_response_from_latest_charge",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null... |
connector-service_fn_connector-integration_1369774013258447293 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub fn get_connector_metadata(
next_action: Option<&StripeNextActionResponse>,
amount: MinorUnit,
) -> CustomResult<Option<Value>, ConnectorError> {
let next_action_response = next_action
.and_then(|next_action... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_connector_metadata",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "con... |
connector-service_fn_connector-integration_8571177012977070044 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub fn get_payment_method_id(
latest_charge: Option<StripeChargeEnum>,
payment_method_id_from_intent_root: Secret<String>,
) -> String {
match latest_charge {
Some(StripeChargeEnum::ChargeObject(charge)) => mat... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_payment_method_id",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "conn... |
connector-service_fn_connector-integration_-4318103245275833434 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn extract_payment_method_connector_response_from_latest_attempt(
stripe_latest_attempt: &LatestAttempt,
) -> Option<ConnectorResponseData> {
if let LatestAttempt::PaymentIntentAttempt(intent_attempt) = stripe_latest_attem... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "extract_payment_method_connector_response_from_latest_attempt",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": nul... |
connector-service_fn_connector-integration_-1974308769895143293 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub fn stripe_opt_latest_attempt_to_opt_string(
latest_attempt: Option<LatestAttempt>,
) -> Option<String> {
match latest_attempt {
Some(LatestAttempt::PaymentIntentAttempt(attempt)) => attempt
.payment... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "stripe_opt_latest_attempt_to_opt_string",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": nul... |
connector-service_fn_connector-integration_-3003017068298081302 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_url(&self) -> Option<url::Url> {
match self {
Self::RedirectToUrl(redirect_to_url) | Self::AlipayHandleRedirect(redirect_to_url) => {
Some(redirect_to_url.url.to_owned())
}
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_url",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service... |
connector-service_fn_connector-integration_-9207417217826604558 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
#[derive(Deserialize)]
struct Wrapper {
#[serde(rename = "type")]
_ignore: String,
#[serd... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "deserialize",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-ser... |
connector-service_fn_connector-integration_-4265241655935995837 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
match *self {
Self::CashappHandleRedirectOrDisplayQrCode(ref i) => {
Serialize::ser... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "serialize",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servi... |
connector-service_fn_connector-integration_5655059225716532881 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn mandatory_parameters_for_sepa_bank_debit_mandates(
billing_details: &Option<StripeBillingAddress>,
is_customer_initiated_mandate_payment: Option<bool>,
) -> Result<StripeBillingAddress, ConnectorError> {
let billing... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "mandatory_parameters_for_sepa_bank_debit_mandates",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_st... |
connector-service_fn_connector-integration_8735047973494365850 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_transaction_metadata(
merchant_metadata: Option<Secret<Value>>,
order_id: String,
) -> HashMap<String, String> {
let mut meta_data = HashMap::from([("metadata[order_id]".to_string(), order_id)]);
let mut req... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_transaction_metadata",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "... |
connector-service_fn_connector-integration_3511277782673471065 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_stripe_payments_response_data(
response: &Option<ErrorDetails>,
http_code: u16,
response_id: String,
) -> Box<Result<PaymentsResponseData, domain_types::router_data::ErrorResponse>> {
let (code, error_messag... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_stripe_payments_response_data",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
... |
connector-service_fn_connector-integration_-7552552949357001475 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub fn construct_charge_response<T>(
charge_id: String,
request: &T,
) -> Option<domain_types::connector_types::ConnectorChargeResponseData>
where
T: SplitPaymentData,
{
let charge_request = request.get_split_payme... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "construct_charge_response",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "... |
connector-service_fn_connector-integration_5659715827989969682 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
pub(super) fn transform_headers_for_connect_platform(
charge_type: common_enums::PaymentChargeType,
transfer_account_id: Secret<String>,
header: &mut Vec<(String, Maskable<String>)>,
) {
if let common_enums::Paymen... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "transform_headers_for_connect_platform",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null... |
connector-service_fn_connector-integration_5162255066699953247 | clm | function | // connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs
fn get_payment_method_type_for_saved_payment_method_payment(
item: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>,
) -> Result<Option<StripePaymentMethodType>, error_stack::Report<Connec... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "get_payment_method_type_for_saved_payment_method_payment",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
... |
connector-service_fn_connector-integration_1303099440923219256 | clm | function | // connector-service/backend/connector-integration/src/utils/xml_utils.rs
pub fn preprocess_xml_response_bytes(xml_data: Bytes) -> Result<Bytes, errors::ConnectorError> {
// Log raw bytes for debugging
tracing::info!(bytes=?xml_data, "Raw XML bytes received for preprocessing");
// Convert to UTF-8 string
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "preprocess_xml_response_bytes",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo... |
connector-service_fn_connector-integration_4550111238108691031 | clm | function | // connector-service/backend/connector-integration/src/utils/xml_utils.rs
pub fn flatten_json_structure(json_value: Value) -> Value {
let mut flattened = Map::new();
// Extract txn object if present
let txn_obj = if let Some(obj) = json_value.as_object() {
if let Some(txn) = obj.get("txn") {
... | {
"chunk": null,
"crate": "connector-integration",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "flatten_json_structure",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "con... |
connector-service_fn_tracing-kafka_-2040736929169419118 | clm | function | // connector-service/backend/tracing-kafka/src/lib.rs
pub fn init() {
tracing::warn!("Kafka metrics feature is not enabled. Metrics will not be collected.");
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "init",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_... |
connector-service_fn_tracing-kafka_5072961068641949251 | clm | function | // connector-service/backend/tracing-kafka/src/metrics.rs
pub fn initialize_all_metrics() {
// Force evaluation of all lazy metrics to fail fast if registration fails.
let _ = &*KAFKA_LOGS_SENT;
let _ = &*KAFKA_LOGS_DROPPED;
let _ = &*KAFKA_QUEUE_SIZE;
let _ = &*KAFKA_DROPS_QUEUE_FULL;
let _ = ... | {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "initialize_all_metrics",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-s... |
connector-service_fn_tracing-kafka_-1568421221257796721 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
fn delivery(&self, delivery_result: &DeliveryResult<'_>, opaque: Self::DeliveryOpaque) {
let message_type = *opaque;
let is_success = delivery_result.is_ok();
#[cfg(feature = "kafka-metrics")]
{
match (message_type, i... | {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "delivery",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"s... |
connector-service_fn_tracing-kafka_-274270537329133485 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("KafkaWriter")
.field("topic", &self.topic)
.finish()
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "fmt",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_... |
connector-service_fn_tracing-kafka_290730444913273393 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
pub fn new(
brokers: Vec<String>,
topic: String,
batch_size: Option<usize>,
linger_ms: Option<u64>,
queue_buffering_max_messages: Option<usize>,
queue_buffering_max_kbytes: Option<usize>,
reconnect_backoff_... | {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "new",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_l... |
connector-service_fn_tracing-kafka_7845295661283135444 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
pub fn publish_event(
&self,
topic: &str,
key: Option<&str>,
payload: &[u8],
headers: Option<OwnedHeaders>,
) -> Result<(), KafkaError> {
#[cfg(feature = "kafka-metrics")]
{
let queue_size =... | {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "publish_event",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_tracing-kafka_-6789315670939671809 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
pub fn builder() -> crate::builder::KafkaWriterBuilder {
crate::builder::KafkaWriterBuilder::new()
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "builder",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"sta... |
connector-service_fn_tracing-kafka_5832403107327964822 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
#[cfg(feature = "kafka-metrics")]
{
let queue_size = self.producer.in_flight_count();
KAFKA_QUEUE_SIZE.set(queue_size.into());
}
let record = BaseReco... | {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "write",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"star... |
connector-service_fn_tracing-kafka_2916428861070231651 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
fn flush(&mut self) -> io::Result<()> {
self.producer
.flush(rdkafka::util::Timeout::After(Duration::from_secs(5)))
.map_err(|e: KafkaError| io::Error::other(format!("Kafka flush failed: {e}")))
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "flush",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"star... |
connector-service_fn_tracing-kafka_-7679242722153340298 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
fn make_writer(&'a self) -> Self::Writer {
self.clone()
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "make_writer",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_tracing-kafka_-3597087384805780269 | clm | function | // connector-service/backend/tracing-kafka/src/writer.rs
fn drop(&mut self) {
// Only flush if this is the last reference to the producer
if Arc::strong_count(&self.producer) == 1 {
// Try to flush pending messages with a 5 second timeout
let _ = self
.producer
... | {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "drop",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start... |
connector-service_fn_tracing-kafka_5456896285394689685 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn builder() -> KafkaLayerBuilder {
KafkaLayerBuilder::new()
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "builder",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"sta... |
connector-service_fn_tracing-kafka_451995750384660228 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub(crate) fn from_writer(
kafka_writer: KafkaWriter,
static_fields: HashMap<String, serde_json::Value>,
) -> Result<Self, KafkaLayerError> {
let config = JsonFormattingLayerConfig {
static_top_level_fields: static_fields,
... | {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "from_writer",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_tracing-kafka_-8964400548346369063 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
fn on_event(&self, event: &tracing::Event<'_>, ctx: tracing_subscriber::layer::Context<'_, S>) {
self.inner.on_event(event, ctx);
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "on_event",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"s... |
connector-service_fn_tracing-kafka_-5720071337815993310 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
fn on_new_span(
&self,
attrs: &tracing::span::Attributes<'_>,
id: &tracing::span::Id,
ctx: tracing_subscriber::layer::Context<'_, S>,
) {
self.inner.on_new_span(attrs, id, ctx);
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "on_new_span",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_tracing-kafka_5490819592268354578 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
fn on_enter(&self, id: &tracing::span::Id, ctx: tracing_subscriber::layer::Context<'_, S>) {
self.inner.on_enter(id, ctx);
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "on_enter",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"s... |
connector-service_fn_tracing-kafka_-1354729165230843960 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
fn on_exit(&self, id: &tracing::span::Id, ctx: tracing_subscriber::layer::Context<'_, S>) {
self.inner.on_exit(id, ctx);
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "on_exit",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"st... |
connector-service_fn_tracing-kafka_-1268945382296505586 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
fn on_close(&self, id: tracing::span::Id, ctx: tracing_subscriber::layer::Context<'_, S>) {
self.inner.on_close(id, ctx);
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "on_close",
"is_async": false,
"is_pub": false,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"s... |
connector-service_fn_tracing-kafka_5327567524250763169 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn boxed<S>(self) -> Box<dyn Layer<S> + Send + Sync + 'static>
where
Self: Layer<S> + Sized + Send + Sync + 'static,
S: Subscriber + for<'span> tracing_subscriber::registry::LookupSpan<'span>,
{
Box::new(self)
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "boxed",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start... |
connector-service_fn_tracing-kafka_-9065344722904039829 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn new() -> Self {
Self::default()
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "new",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_l... |
connector-service_fn_tracing-kafka_3885294031497186191 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn brokers(mut self, brokers: &[&str]) -> Self {
self.writer_builder = self
.writer_builder
.brokers(brokers.iter().map(|s| s.to_string()).collect());
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "brokers",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"sta... |
connector-service_fn_tracing-kafka_-1422168367590455550 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn topic(mut self, topic: impl Into<String>) -> Self {
self.writer_builder = self.writer_builder.topic(topic);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "topic",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start... |
connector-service_fn_tracing-kafka_5840137523398782753 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn batch_size(mut self, size: usize) -> Self {
self.writer_builder = self.writer_builder.batch_size(size);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "batch_size",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"... |
connector-service_fn_tracing-kafka_3346422533023196657 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn linger_ms(mut self, ms: u64) -> Self {
self.writer_builder = self.writer_builder.linger_ms(ms);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "linger_ms",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"s... |
connector-service_fn_tracing-kafka_2562631204209332343 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn linger(mut self, duration: Duration) -> Self {
self.writer_builder = self.writer_builder.linger(duration);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "linger",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"star... |
connector-service_fn_tracing-kafka_-8683759213552624078 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn queue_buffering_max_messages(mut self, size: usize) -> Self {
self.writer_builder = self.writer_builder.queue_buffering_max_messages(size);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "queue_buffering_max_messages",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "conne... |
connector-service_fn_tracing-kafka_7474325781935482254 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn queue_buffering_max_kbytes(mut self, size: usize) -> Self {
self.writer_builder = self.writer_builder.queue_buffering_max_kbytes(size);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "queue_buffering_max_kbytes",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connect... |
connector-service_fn_tracing-kafka_517302336154124806 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn reconnect_backoff(mut self, min: Duration, max: Duration) -> Self {
self.writer_builder = self.writer_builder.reconnect_backoff(min, max);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "reconnect_backoff",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-servic... |
connector-service_fn_tracing-kafka_7399523621511478274 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn static_fields(mut self, fields: HashMap<String, serde_json::Value>) -> Self {
self.static_fields = fields;
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "static_fields",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
... |
connector-service_fn_tracing-kafka_-4753496756026263773 | clm | function | // connector-service/backend/tracing-kafka/src/layer.rs
pub fn add_static_field(mut self, key: String, value: serde_json::Value) -> Self {
self.static_fields.insert(key, value);
self
}
| {
"chunk": null,
"crate": "tracing-kafka",
"enum_name": null,
"file_size": null,
"for_type": null,
"function_name": "add_static_field",
"is_async": false,
"is_pub": true,
"lines": null,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.