<commit_before>---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: eventsource
spec:
  replicas: 2
  template:
    metadata:
      labels:
        component: eventsource
    spec:
      containers:
      - name: eventsource
        image: us.gcr.io/replay-gaming/go-eventsource:latest
        env:
        - name: PUBSUB_PROJECT_ID
          valueFrom:
            secretKeyRef:
              name: pubsub
              key: project-id
        - name: PUBSUB_KEYFILE
          value: /etc/pubsub/keyfile.json
        volumeMounts:
          - name: pubsub-secret
            readOnly: true
            mountPath: /etc/pubsub
        ports:
        - name: sse
          containerPort: 80
        resources:
          limits:
            cpu: "0.1"
        imagePullPolicy: Always
      volumes:
        - name: pubsub-secret
          secret:
            secretName: pubsub<commit_msg>Adding resource quota for k8s<commit_after>---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: eventsource
spec:
  replicas: 2
  template:
    metadata:
      labels:
        component: eventsource
    spec:
      containers:
      - name: eventsource
        image: us.gcr.io/replay-gaming/go-eventsource:latest
        env:
        - name: PUBSUB_PROJECT_ID
          valueFrom:
            secretKeyRef:
              name: pubsub
              key: project-id
        - name: PUBSUB_KEYFILE
          value: /etc/pubsub/keyfile.json
        volumeMounts:
          - name: pubsub-secret
            readOnly: true
            mountPath: /etc/pubsub
        ports:
        - name: sse
          containerPort: 80
        resources:
          requests:
            cpu: "500m"
            memory: "200m"
          limits:
            cpu: "3000m"
            memory: "400m"
        imagePullPolicy: Always
      volumes:
        - name: pubsub-secret
          secret:
            secretName: pubsub
{'fraction_non_alphanumeric': 0.0764828303850156, 'fraction_numerical': 0.013527575442247659, 'mean_word_length': 1.4496815286624203, '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': '633364', 'n_tokens_mistral': 575, 'n_tokens_neox': 559, 'n_words': 128}