<commit_before>apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    kaiyuanshe.cn/app: ohp
    haking.kaiyuanshe.cn/service: server
  name: ohp-server
  namespace: ohp
spec:
  replicas: 1
  selector:
    matchLabels:
      haking.kaiyuanshe.cn/service: server
  template:
    metadata:
      labels:
        haking.kaiyuanshe.cn/service: server
    spec:
      containers:
      - image: kaiyuanshe/hackathon-server
        name: ohp-server
        env:
        - name: DB_SERVER
          value: mongo
        - name: DB_PORT
          value: "27017"
        - name: GUACAMOLE
          value: guacamole
        - name: GUACAMOLE_PORT
          value: "8080"
        ports:
        - containerPort: 15000
---
apiVersion: v1
kind: Service
metadata:
  labels:
    kaiyuanshe.cn/app: ohp
    haking.kaiyuanshe.cn/service: server
  name: ohp-server
  namespace: ohp
spec:
  ports:
  - port: 15000
    protocol: TCP
    targetPort: 15000
  selector:
    haking.kaiyuanshe.cn/service: server
  # server is a internal service
  # do not use nodeport in pord
  type: NodePort<commit_msg>add nodeport<commit_after>apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    kaiyuanshe.cn/app: ohp
    haking.kaiyuanshe.cn/service: server
  name: ohp-server
  namespace: ohp
spec:
  replicas: 1
  selector:
    matchLabels:
      haking.kaiyuanshe.cn/service: server
  template:
    metadata:
      labels:
        haking.kaiyuanshe.cn/service: server
    spec:
      containers:
      - image: kaiyuanshe/hackathon-server
        name: ohp-server
        env:
        - name: DB_SERVER
          value: mongo
        - name: DB_PORT
          value: "27017"
        - name: GUACAMOLE
          value: guacamole
        - name: GUACAMOLE_PORT
          value: "8080"
        ports:
        - containerPort: 15000
---
apiVersion: v1
kind: Service
metadata:
  labels:
    kaiyuanshe.cn/app: ohp
    haking.kaiyuanshe.cn/service: server
  name: ohp-server
  namespace: ohp
spec:
  ports:
  - port: 15000
    protocol: TCP
    targetPort: 15000
    nodePort: 30150
  selector:
    haking.kaiyuanshe.cn/service: server
  type: NodePort
{'fraction_non_alphanumeric': 0.08591549295774648, 'fraction_numerical': 0.027699530516431925, 'mean_word_length': 2.1758569299552906, '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': '2114119', 'n_tokens_mistral': 819, 'n_tokens_neox': 760, 'n_words': 171}