aergoio/aergo

View on GitHub

Showing 1,051 of 1,052 total issues

Similar blocks of code found in 95 locations. Consider refactoring.
Open

func (mr *MockNetworkTransportMockRecorder) ClosePeerConnection(arg0 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClosePeerConnection", reflect.TypeOf((*MockNetworkTransport)(nil).ClosePeerConnection), arg0)
}
Severity: Major
Found in p2p/p2pmock/mock_networktransport.go and 94 other locations - About 40 mins to fix
p2p/p2pmock/mock_actorcontext.go on lines 84..87
p2p/p2pmock/mock_actorcontext.go on lines 150..153
p2p/p2pmock/mock_actorcontext.go on lines 202..205
p2p/p2pmock/mock_actorcontext.go on lines 242..245
p2p/p2pmock/mock_actorcontext.go on lines 254..257
p2p/p2pmock/mock_actorcontext.go on lines 268..271
p2p/p2pmock/mock_actorcontext.go on lines 333..336
p2p/p2pmock/mock_actorcontext.go on lines 345..348
p2p/p2pmock/mock_certificate.go on lines 44..47
p2p/p2pmock/mock_certificate.go on lines 58..61
p2p/p2pmock/mock_certificate.go on lines 73..76
p2p/p2pmock/mock_certificate.go on lines 113..116
p2p/p2pmock/mock_certificate.go on lines 125..128
p2p/p2pmock/mock_chainaccessor.go on lines 46..49
p2p/p2pmock/mock_chainaccessor.go on lines 76..79
p2p/p2pmock/mock_chainaccessor.go on lines 119..122
p2p/p2pmock/mock_chainaccessor.go on lines 148..151
p2p/p2pmock/mock_chainaccessor.go on lines 163..166
p2p/p2pmock/mock_consensus.go on lines 51..54
p2p/p2pmock/mock_consensus.go on lines 66..69
p2p/p2pmock/mock_consensus.go on lines 81..84
p2p/p2pmock/mock_consensus.go on lines 146..149
p2p/p2pmock/mock_consensus.go on lines 160..163
p2p/p2pmock/mock_consensus.go on lines 174..177
p2p/p2pmock/mock_consensus.go on lines 212..215
p2p/p2pmock/mock_handshake.go on lines 124..127
p2p/p2pmock/mock_handshake.go on lines 167..170
p2p/p2pmock/mock_handshake.go on lines 205..208
p2p/p2pmock/mock_handshake.go on lines 220..223
p2p/p2pmock/mock_host.go on lines 196..199
p2p/p2pmock/mock_io.go on lines 45..48
p2p/p2pmock/mock_io.go on lines 97..100
p2p/p2pmock/mock_io.go on lines 135..138
p2p/p2pmock/mock_io.go on lines 187..190
p2p/p2pmock/mock_io.go on lines 239..242
p2p/p2pmock/mock_io.go on lines 254..257
p2p/p2pmock/mock_message.go on lines 213..216
p2p/p2pmock/mock_message.go on lines 228..231
p2p/p2pmock/mock_message.go on lines 411..414
p2p/p2pmock/mock_metricsman.go on lines 99..102
p2p/p2pmock/mock_msgio.go on lines 60..63
p2p/p2pmock/mock_msgio.go on lines 86..89
p2p/p2pmock/mock_msgorder.go on lines 117..120
p2p/p2pmock/mock_msgorder.go on lines 129..132
p2p/p2pmock/mock_msgorder.go on lines 208..211
p2p/p2pmock/mock_msgorder.go on lines 222..225
p2p/p2pmock/mock_msgorder.go on lines 236..239
p2p/p2pmock/mock_msgorder.go on lines 264..267
p2p/p2pmock/mock_networktransport.go on lines 216..219
p2p/p2pmock/mock_networktransport.go on lines 230..233
p2p/p2pmock/mock_networktransport.go on lines 358..361
p2p/p2pmock/mock_peerfinder.go on lines 45..48
p2p/p2pmock/mock_peerfinder.go on lines 57..60
p2p/p2pmock/mock_peerfinder.go on lines 92..95
p2p/p2pmock/mock_peerfinder.go on lines 104..107
p2p/p2pmock/mock_peerfinder.go on lines 151..154
p2p/p2pmock/mock_peerfinder.go on lines 163..166
p2p/p2pmock/mock_peerfinder.go on lines 177..180
p2p/p2pmock/mock_peerfinder.go on lines 189..192
p2p/p2pmock/mock_peerfinder.go on lines 213..216
p2p/p2pmock/mock_peerfinder.go on lines 225..228
p2p/p2pmock/mock_peermanager.go on lines 45..48
p2p/p2pmock/mock_peermanager.go on lines 113..116
p2p/p2pmock/mock_peermanager.go on lines 125..128
p2p/p2pmock/mock_peermanager.go on lines 137..140
p2p/p2pmock/mock_peermanager.go on lines 149..152
p2p/p2pmock/mock_peermanager.go on lines 164..167
p2p/p2pmock/mock_peermanager.go on lines 246..249
p2p/p2pmock/mock_peermanager.go on lines 258..261
p2p/p2pmock/mock_peerrole.go on lines 96..99
p2p/p2pmock/mock_protobuf.go on lines 61..64
p2p/p2pmock/mock_protobuf.go on lines 75..78
p2p/p2pmock/mock_protobuf.go on lines 89..92
p2p/p2pmock/mock_protobuf.go on lines 103..106
p2p/p2pmock/mock_protobuf.go on lines 117..120
p2p/p2pmock/mock_protobuf.go on lines 129..132
p2p/p2pmock/mock_remotepeer.go on lines 180..183
p2p/p2pmock/mock_remotepeer.go on lines 256..259
p2p/p2pmock/mock_remotepeer.go on lines 270..273
p2p/p2pmock/mock_remotepeer.go on lines 296..299
p2p/p2pmock/mock_remotepeer.go on lines 309..312
p2p/p2pmock/mock_remotepeer.go on lines 323..326
p2p/p2pmock/mock_remotepeer.go on lines 351..354
p2p/p2pmock/mock_remotepeer.go on lines 389..392
p2p/p2pmock/mock_remotepeer.go on lines 403..406
p2p/p2pmock/mock_stream.go on lines 136..139
p2p/p2pmock/mock_stream.go on lines 164..167
p2p/p2pmock/mock_stream.go on lines 176..179
p2p/p2pmock/mock_stream.go on lines 190..193
p2p/p2pmock/mock_stream.go on lines 204..207
p2p/p2pmock/mock_stream.go on lines 233..236
p2p/p2pmock/mock_stream.go on lines 355..358
p2p/p2pmock/mock_syncmanager.go on lines 107..110
p2p/p2pmock/mock_syncmanager.go on lines 195..198

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 111.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 95 locations. Consider refactoring.
Open

func (mr *MockWaitingPeerManagerMockRecorder) OnDiscoveredPeers(metas interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnDiscoveredPeers", reflect.TypeOf((*MockWaitingPeerManager)(nil).OnDiscoveredPeers), metas)
}
Severity: Major
Found in p2p/p2pmock/mock_peerfinder.go and 94 other locations - About 40 mins to fix
p2p/p2pmock/mock_actorcontext.go on lines 84..87
p2p/p2pmock/mock_actorcontext.go on lines 150..153
p2p/p2pmock/mock_actorcontext.go on lines 202..205
p2p/p2pmock/mock_actorcontext.go on lines 242..245
p2p/p2pmock/mock_actorcontext.go on lines 254..257
p2p/p2pmock/mock_actorcontext.go on lines 268..271
p2p/p2pmock/mock_actorcontext.go on lines 333..336
p2p/p2pmock/mock_actorcontext.go on lines 345..348
p2p/p2pmock/mock_certificate.go on lines 44..47
p2p/p2pmock/mock_certificate.go on lines 58..61
p2p/p2pmock/mock_certificate.go on lines 73..76
p2p/p2pmock/mock_certificate.go on lines 113..116
p2p/p2pmock/mock_certificate.go on lines 125..128
p2p/p2pmock/mock_chainaccessor.go on lines 46..49
p2p/p2pmock/mock_chainaccessor.go on lines 76..79
p2p/p2pmock/mock_chainaccessor.go on lines 119..122
p2p/p2pmock/mock_chainaccessor.go on lines 148..151
p2p/p2pmock/mock_chainaccessor.go on lines 163..166
p2p/p2pmock/mock_consensus.go on lines 51..54
p2p/p2pmock/mock_consensus.go on lines 66..69
p2p/p2pmock/mock_consensus.go on lines 81..84
p2p/p2pmock/mock_consensus.go on lines 146..149
p2p/p2pmock/mock_consensus.go on lines 160..163
p2p/p2pmock/mock_consensus.go on lines 174..177
p2p/p2pmock/mock_consensus.go on lines 212..215
p2p/p2pmock/mock_handshake.go on lines 124..127
p2p/p2pmock/mock_handshake.go on lines 167..170
p2p/p2pmock/mock_handshake.go on lines 205..208
p2p/p2pmock/mock_handshake.go on lines 220..223
p2p/p2pmock/mock_host.go on lines 196..199
p2p/p2pmock/mock_io.go on lines 45..48
p2p/p2pmock/mock_io.go on lines 97..100
p2p/p2pmock/mock_io.go on lines 135..138
p2p/p2pmock/mock_io.go on lines 187..190
p2p/p2pmock/mock_io.go on lines 239..242
p2p/p2pmock/mock_io.go on lines 254..257
p2p/p2pmock/mock_message.go on lines 213..216
p2p/p2pmock/mock_message.go on lines 228..231
p2p/p2pmock/mock_message.go on lines 411..414
p2p/p2pmock/mock_metricsman.go on lines 99..102
p2p/p2pmock/mock_msgio.go on lines 60..63
p2p/p2pmock/mock_msgio.go on lines 86..89
p2p/p2pmock/mock_msgorder.go on lines 117..120
p2p/p2pmock/mock_msgorder.go on lines 129..132
p2p/p2pmock/mock_msgorder.go on lines 208..211
p2p/p2pmock/mock_msgorder.go on lines 222..225
p2p/p2pmock/mock_msgorder.go on lines 236..239
p2p/p2pmock/mock_msgorder.go on lines 264..267
p2p/p2pmock/mock_networktransport.go on lines 160..163
p2p/p2pmock/mock_networktransport.go on lines 216..219
p2p/p2pmock/mock_networktransport.go on lines 230..233
p2p/p2pmock/mock_networktransport.go on lines 358..361
p2p/p2pmock/mock_peerfinder.go on lines 45..48
p2p/p2pmock/mock_peerfinder.go on lines 57..60
p2p/p2pmock/mock_peerfinder.go on lines 92..95
p2p/p2pmock/mock_peerfinder.go on lines 104..107
p2p/p2pmock/mock_peerfinder.go on lines 151..154
p2p/p2pmock/mock_peerfinder.go on lines 163..166
p2p/p2pmock/mock_peerfinder.go on lines 189..192
p2p/p2pmock/mock_peerfinder.go on lines 213..216
p2p/p2pmock/mock_peerfinder.go on lines 225..228
p2p/p2pmock/mock_peermanager.go on lines 45..48
p2p/p2pmock/mock_peermanager.go on lines 113..116
p2p/p2pmock/mock_peermanager.go on lines 125..128
p2p/p2pmock/mock_peermanager.go on lines 137..140
p2p/p2pmock/mock_peermanager.go on lines 149..152
p2p/p2pmock/mock_peermanager.go on lines 164..167
p2p/p2pmock/mock_peermanager.go on lines 246..249
p2p/p2pmock/mock_peermanager.go on lines 258..261
p2p/p2pmock/mock_peerrole.go on lines 96..99
p2p/p2pmock/mock_protobuf.go on lines 61..64
p2p/p2pmock/mock_protobuf.go on lines 75..78
p2p/p2pmock/mock_protobuf.go on lines 89..92
p2p/p2pmock/mock_protobuf.go on lines 103..106
p2p/p2pmock/mock_protobuf.go on lines 117..120
p2p/p2pmock/mock_protobuf.go on lines 129..132
p2p/p2pmock/mock_remotepeer.go on lines 180..183
p2p/p2pmock/mock_remotepeer.go on lines 256..259
p2p/p2pmock/mock_remotepeer.go on lines 270..273
p2p/p2pmock/mock_remotepeer.go on lines 296..299
p2p/p2pmock/mock_remotepeer.go on lines 309..312
p2p/p2pmock/mock_remotepeer.go on lines 323..326
p2p/p2pmock/mock_remotepeer.go on lines 351..354
p2p/p2pmock/mock_remotepeer.go on lines 389..392
p2p/p2pmock/mock_remotepeer.go on lines 403..406
p2p/p2pmock/mock_stream.go on lines 136..139
p2p/p2pmock/mock_stream.go on lines 164..167
p2p/p2pmock/mock_stream.go on lines 176..179
p2p/p2pmock/mock_stream.go on lines 190..193
p2p/p2pmock/mock_stream.go on lines 204..207
p2p/p2pmock/mock_stream.go on lines 233..236
p2p/p2pmock/mock_stream.go on lines 355..358
p2p/p2pmock/mock_syncmanager.go on lines 107..110
p2p/p2pmock/mock_syncmanager.go on lines 195..198

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 111.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Method V033Handshaker.checkRemoteStatus has 6 return statements (exceeds 4 allowed).
Open

func (h *V033Handshaker) checkRemoteStatus(remotePeerStatus *types.Status) error {
    // v030 checking
    // check if chainID is same or not
    remoteChainID := types.NewChainID()
    err := remoteChainID.Read(remotePeerStatus.ChainID)
Severity: Major
Found in p2p/v030/v033handshake.go - About 40 mins to fix

    Method Cluster.isAllMembersEqual has 6 return statements (exceeds 4 allowed).
    Open

    func (cl *Cluster) isAllMembersEqual(members []*consensus.Member, RemovedMembers []*consensus.Member) bool {
        membersEqual := func(x []*consensus.Member, y []*consensus.Member) bool {
            if len(x) != len(y) {
                return false
            }
    Severity: Major
    Found in consensus/impl/raftv2/cluster.go - About 40 mins to fix

      Method V200Handshaker.DoForInbound has 6 return statements (exceeds 4 allowed).
      Open

      func (h *V200Handshaker) DoForInbound(ctx context.Context) (*p2pcommon.HandshakeResult, error) {
          h.logger.Debug().Stringer(p2putil.LogPeerID, types.LogPeerShort(h.peerID)).Msg("Starting versioned handshake for inbound peer connection")
      
          // inbound: receive, check and send
          remotePeerStatus, err := h.receiveRemoteStatus(ctx)
      Severity: Major
      Found in p2p/v200/v200handshake.go - About 40 mins to fix

        Method V033Handshaker.DoForInbound has 6 return statements (exceeds 4 allowed).
        Open

        func (h *V033Handshaker) DoForInbound(ctx context.Context) (*p2pcommon.HandshakeResult, error) {
            h.logger.Debug().Stringer(p2putil.LogPeerID, types.LogPeerShort(h.peerID)).Msg("Starting versioned handshake for inbound peer connection")
        
            // inbound: receive, check and send
            remotePeerStatus, err := h.receiveRemoteStatus(ctx)
        Severity: Major
        Found in p2p/v030/v033handshake.go - About 40 mins to fix

          Method V200Handshaker.receiveRemoteStatus has 6 return statements (exceeds 4 allowed).
          Open

          func (h *V200Handshaker) receiveRemoteStatus(ctx context.Context) (*types.Status, error) {
              // and wait to response status
              data, err := h.msgRW.ReadMsg()
              if err != nil {
                  h.sendGoAway("malformed message")
          Severity: Major
          Found in p2p/v200/v200handshake.go - About 40 mins to fix

            Method V032Handshaker.DoForOutbound has 6 return statements (exceeds 4 allowed).
            Open

            func (h *V032Handshaker) DoForOutbound(ctx context.Context) (*p2pcommon.HandshakeResult, error) {
                h.logger.Debug().Stringer(p2putil.LogPeerID, types.LogPeerShort(h.peerID)).Msg("Starting versioned handshake for outbound peer connection")
            
                bestBlock, err := h.actor.GetChainAccessor().GetBestBlock()
                if err != nil {
            Severity: Major
            Found in p2p/v030/v032handshake.go - About 40 mins to fix

              Function GetClusterInfo has 6 return statements (exceeds 4 allowed).
              Open

              func GetClusterInfo(hs *component.ComponentHub, bestHash []byte) (*Cluster, *types.HardStateInfo, error) {
                  logger.Info().Msg("try getclusterinfo to p2p")
              
                  replyC := make(chan *message.GetClusterRsp)
                  hs.Tell(message.P2PSvc, &message.GetCluster{BestBlockHash: bestHash, ReplyC: replyC})
              Severity: Major
              Found in consensus/impl/raftv2/p2p.go - About 40 mins to fix

                Method V030Handshaker.DoForInbound has 6 return statements (exceeds 4 allowed).
                Open

                func (h *V030Handshaker) DoForInbound(ctx context.Context) (*p2pcommon.HandshakeResult, error) {
                    h.logger.Debug().Stringer(p2putil.LogPeerID, types.LogPeerShort(h.peerID)).Msg("Starting versioned handshake for inbound peer connection")
                
                    // inbound: receive, check and send
                    remotePeerStatus, err := h.receiveRemoteStatus(ctx)
                Severity: Major
                Found in p2p/v030/v030handshake.go - About 40 mins to fix

                  Method V033Handshaker.DoForOutbound has 6 return statements (exceeds 4 allowed).
                  Open

                  func (h *V033Handshaker) DoForOutbound(ctx context.Context) (*p2pcommon.HandshakeResult, error) {
                      h.logger.Debug().Stringer(p2putil.LogPeerID, types.LogPeerShort(h.peerID)).Msg("Starting versioned handshake for outbound peer connection")
                  
                      // find my best block
                      bestBlock, err := h.actor.GetChainAccessor().GetBestBlock()
                  Severity: Major
                  Found in p2p/v030/v033handshake.go - About 40 mins to fix

                    Method V030Handshaker.DoForOutbound has 6 return statements (exceeds 4 allowed).
                    Open

                    func (h *V030Handshaker) DoForOutbound(ctx context.Context) (*p2pcommon.HandshakeResult, error) {
                        h.logger.Debug().Stringer(p2putil.LogPeerID, types.LogPeerShort(h.peerID)).Msg("Starting versioned handshake for outbound peer connection")
                        bestBlock, err := h.actor.GetChainAccessor().GetBestBlock()
                        if err != nil {
                            return nil, err
                    Severity: Major
                    Found in p2p/v030/v030handshake.go - About 40 mins to fix

                      Method GetTxsReceiver.handleInWaiting has 6 return statements (exceeds 4 allowed).
                      Open

                      func (br *GetTxsReceiver) handleInWaiting(msg p2pcommon.Message, msgBody p2pcommon.MessageBody) {
                          // consuming request id when timeout, no more resp expected (i.e. hasNext == false ) or malformed body.
                          // timeout
                          if br.timeout.Before(time.Now()) {
                              // silently ignore already status job
                      Severity: Major
                      Found in p2p/txreceiver.go - About 40 mins to fix

                        Method AergoRPCService.ImportAccount has 6 return statements (exceeds 4 allowed).
                        Open

                        func (rpc *AergoRPCService) ImportAccount(ctx context.Context, in *types.ImportFormat) (*types.Account, error) {
                            if err := rpc.checkAuth(ctx, WriteBlockChain); err != nil {
                                return nil, err
                            }
                            msg := &message.ImportAccount{OldPass: in.Oldpass, NewPass: in.Newpass}
                        Severity: Major
                        Found in rpc/grpcserver.go - About 40 mins to fix

                          Method AergoRPCService.checkAuth has 6 return statements (exceeds 4 allowed).
                          Open

                          func (rpc *AergoRPCService) checkAuth(ctx context.Context, auth Authentication) error {
                              rpc.clientAuthLock.RLock()
                              defer rpc.clientAuthLock.RUnlock()
                          
                              if !rpc.clientAuthOn || len(rpc.clientAuth) == 0 {
                          Severity: Major
                          Found in rpc/authentication.go - About 40 mins to fix

                            Method V200Handshaker.DoForOutbound has 6 return statements (exceeds 4 allowed).
                            Open

                            func (h *V200Handshaker) DoForOutbound(ctx context.Context) (*p2pcommon.HandshakeResult, error) {
                                h.logger.Debug().Stringer(p2putil.LogPeerID, types.LogPeerShort(h.peerID)).Msg("Starting versioned handshake for outbound peer connection")
                            
                                // find my best block
                                bestBlock, err := h.is.GetChainAccessor().GetBestBlock()
                            Severity: Major
                            Found in p2p/v200/v200handshake.go - About 40 mins to fix

                              Method WalDB.convertWalToRaft has 6 return statements (exceeds 4 allowed).
                              Open

                              func (wal *WalDB) convertWalToRaft(walEntry *consensus.WalEntry) (*raftpb.Entry, error) {
                                  var raftEntry = &raftpb.Entry{Term: walEntry.Term, Index: walEntry.Index}
                              
                                  getDataFromWalEntry := func(walEntry *consensus.WalEntry) ([]byte, error) {
                                      if walEntry.Type != consensus.EntryBlock {
                              Severity: Major
                              Found in consensus/impl/raftv2/waldb.go - About 40 mins to fix

                                Method V030ReadWriter.ReadMsg has 6 return statements (exceeds 4 allowed).
                                Open

                                func (rw *V030ReadWriter) ReadMsg() (p2pcommon.Message, error) {
                                    readN := 0
                                    // fill data
                                    read, err := rw.readToLen(rw.readBuf[:], msgHeaderLength)
                                    if err != nil {
                                Severity: Major
                                Found in p2p/v030/v030io.go - About 40 mins to fix

                                  Method raftServer.publishSnapshot has 6 return statements (exceeds 4 allowed).
                                  Open

                                  func (rs *raftServer) publishSnapshot(snapshotToSave raftpb.Snapshot) error {
                                      updateProgress := func() error {
                                          var snapdata = &consensus.SnapshotData{}
                                  
                                          err := snapdata.Decode(snapshotToSave.Data)
                                  Severity: Major
                                  Found in consensus/impl/raftv2/raftserver.go - About 40 mins to fix

                                    Method ChainSnapshotter.requestSync has 6 return statements (exceeds 4 allowed).
                                    Open

                                    func (chainsnap *ChainSnapshotter) requestSync(snap *consensus.ChainSnapshot) error {
                                    
                                        var leader uint64
                                        getSyncLeader := func() (types.PeerID, error) {
                                            var peerID types.PeerID
                                    Severity: Major
                                    Found in consensus/impl/raftv2/snapshot.go - About 40 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language