<commit_before>from flask import Flask
from flask_restful import Resource, Api

app = Flask(__name__)
api = Api(app)


class HelloWorld(Resource):
    def get(self):
        return {'hello': 'world'}

class GetItems(Resource):
    def get(self):
        return {"Joro": "Kade mi e bazata?"}
    def post(self):
        return "", 200

api.add_resource(HelloWorld, '/')

if __name__ == '__main__':
    app.run(debug=True)<commit_msg>Some services for start<commit_after>from flask import Flask, request
from flask_restful import Resource, Api

app = Flask(__name__)
api = Api(app)


class Items(Resource):
    def get(self):
        return 'all items'

    def get(self, field=None, search_str=None):
        return 'Return product based on match of {} field and {} search string'.format(field, search_str)


class Orders(Resource):
    def get(self):
        return 'all orders'

    def get(self, criteria1=None, criteria2=None):
        return 'all orders between {} and {}'.format(criteria1, criteria2)

    def post(self):
        body = request.data.decode('utf-8')
        print(body)
        return 200


api.add_resource(Items, '/items', '/items/<field>/<search_str>')
api.add_resource(Orders,
                 '/orders',
                 '/orders/between/<criteria1>/<criteria2>')

if __name__ == '__main__':
    app.run(debug=True)
{'fraction_non_alphanumeric': 0.1319910514541387, 'fraction_numerical': 0.009694258016405667, 'mean_word_length': 3.2468354430379747, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 7, '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': '6158575', 'n_tokens_mistral': 438, 'n_tokens_neox': 421, 'n_words': 113}