<commit_before>(ns clojure-fabric.block
  (:import [org.hyperledger.fabric.sdk BlockEvent]))

;;;---------------------------------------------------
;;;org.hyperledger.fabric.sdk.BlockEvent
;;;

;;;  getEvent
(defn
 get-event
 [^org.hyperledger.fabric.sdk.BlockEvent block-event]
 (. block-event getEvent))

;;;  getTransactionEvents
(defn
 get-transaction-events
 [^org.hyperledger.fabric.sdk.BlockEvent block-event]
 (. block-event getTransactionEvents))

;;;  getEventHub
(defn
 get-event-hub
 [^org.hyperledger.fabric.sdk.BlockEvent block-event]
 (. block-event getEventHub))<commit_msg>include more classes<commit_after>(ns clojure-fabric.block
  (:import [org.hyperledger.fabric.sdk BlockInfo]
           [org.hyperledger.fabric.sdk BlockEvent]
           [org.hyperledger.fabric.sdk BlockChainInfo]))

;;;---------------------------------------------------
;;;org.hyperledger.fabric.sdk.BlockInfo
;;;

;;;  getChannelId
(defn
 get-channel-id
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getChannelId))

;;;  getEnvelopeCount
(defn
 get-envelope-count
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getEnvelopeCount))

;;;  getBlockNumber
(defn
 get-block-number
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getBlockNumber))

;;;  getEnvelopeInfos
(defn
 get-envelope-infos
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getEnvelopeInfos))

;;;  getEnvelopeInfo
(defn
 get-envelope-info
 [^org.hyperledger.fabric.sdk.BlockInfo block-info  int0]
 (. block-info getEnvelopeInfo int0))

;;;  getPreviousHash
(defn
 get-previous-hash
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getPreviousHash))

;;;  getBlock
(defn
 get-block
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getBlock))

;;;  getTransActionsMetaData
(defn
 get-trans-actions-meta-data
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getTransActionsMetaData))

;;;  getTransactionActionInfos
(defn
 get-transaction-action-infos
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getTransactionActionInfos))

;;;  getDataHash
(defn
 get-data-hash
 [^org.hyperledger.fabric.sdk.BlockInfo block-info]
 (. block-info getDataHash))

;;;---------------------------------------------------
;;;org.hyperledger.fabric.sdk.BlockEvent
;;;

;;;  getEvent
(defn
 get-event
 [^org.hyperledger.fabric.sdk.BlockEvent block-event]
 (. block-event getEvent))

;;;  getTransactionEvents
(defn
 get-transaction-events
 [^org.hyperledger.fabric.sdk.BlockEvent block-event]
 (. block-event getTransactionEvents))

;;;  getEventHub
(defn
 get-event-hub
 [^org.hyperledger.fabric.sdk.BlockEvent block-event]
 (. block-event getEventHub))


;;;---------------------------------------------------
;;;org.hyperledger.fabric.sdk.BlockchainInfo
;;;

;;;  getPreviousBlockHash
(defn
 get-previous-block-hash
 [^org.hyperledger.fabric.sdk.BlockchainInfo blockchain-info]
 (. blockchain-info getPreviousBlockHash))

;;;  getBlockchainInfo
(defn
 get-blockchain-info
 [^org.hyperledger.fabric.sdk.BlockchainInfo blockchain-info]
 (. blockchain-info getBlockchainInfo))

;;;  getCurrentBlockHash
(defn
 get-current-block-hash
 [^org.hyperledger.fabric.sdk.BlockchainInfo blockchain-info]
 (. blockchain-info getCurrentBlockHash))

;;;  getHeight
(defn
 get-height
 [^org.hyperledger.fabric.sdk.BlockchainInfo blockchain-info]
 (. blockchain-info getHeight))
{'fraction_non_alphanumeric': 0.19611819235225955, 'fraction_numerical': 0.0005793742757821553, 'mean_word_length': 3.555408970976253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5297501', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1123, 'n_words': 161}