<commit_before>;;; wandbox.el --- Wandbox API Library for Emacs

;; Copyright (C) 2013-2014 <NAME>

;; Author: <NAME> (kosh) <<EMAIL>>
;; URL: https://github.com/kosh04/emacs-wandbox
;; Version: 0.4
;; Package-Requires: ((emacs "24") (json "1.3"))
;; Keywords: c, programming, tools
;; Created: 2013/11/22
;; License: MIT Lisense (see LISENCE)

;; This file is NOT part of GNU Emacs.

;;; Example:

;; ## Use Interactive
;;
;; M-x wandbox-compile-file   - Compile with file contents
;; M-x wandbox-compile-region - Compile marked region
;; M-x wandbox-compile-buffer - Compile current buffer
;;
;; ## Use on Emacs Lisp
;;
;; (wandbox :compiler "gcc-head" :options "warning" :code "main(){}")
;; (wandbox :lang "C" :compiler-option "-lm" :file "/path/to/prog.c" :save t)
;; (wandbox :lang "perl" :code "while (<>) { print uc($_); }" :stdin "hello")
;; (wandbox :lang "ruby" :code "p ARGV" :runtime-option '("1" "2" "3"))
;;
;; (add-to-list 'wandbox-profiles '(:name "User Profile" :compiler "clang-head"))
;; (wandbox-compile :name "User Profile" :code "...")

;;; Change Log:

;; 2014/12/06 ver 0.4.0  profiles are generated from /wandbox/api/list.json
;; 2014/08/05 ver 0.3.5  permalink api available (add :save option).
;; 2014/01/25 ver 0.3.0  gist snippet available.
;; 2014/01/10 ver 0.2.1  commit to github. add wandbox-eval-with.
;; 2013/12/30 ver 0.2    keyword arguments and profile available.
;; 2013/11/22 ver 0.1    first commit.

;;; Code:

(eval-when-compile
  (require 'cl))
(require 'url-http)
(require 'json)

(defvar wandbox-profiles nil
  "Wandbox copmiler profiles (set of plist).")
<commit_msg>add change log v0.4.1<commit_after>;;; wandbox.el --- Wandbox API Library for Emacs

;; Copyright (C) 2013-2014 <NAME>

;; Author: <NAME> (kosh) <<EMAIL>>
;; URL: https://github.com/kosh04/emacs-wandbox
;; Version: 0.4.1
;; Package-Requires: ((emacs "24") (json "1.3"))
;; Keywords: c, programming, tools
;; Created: 2013/11/22
;; License: MIT Lisense (see LISENCE)

;; This file is NOT part of GNU Emacs.

;;; Example:

;; ## Use Interactive
;;
;; M-x wandbox-compile-file   - Compile with file contents
;; M-x wandbox-compile-region - Compile marked region
;; M-x wandbox-compile-buffer - Compile current buffer
;;
;; ## Use on Emacs Lisp
;;
;; (wandbox :compiler "gcc-head" :options "warning" :code "main(){}")
;; (wandbox :lang "C" :compiler-option "-lm" :file "/path/to/prog.c" :save t)
;; (wandbox :lang "perl" :code "while (<>) { print uc($_); }" :stdin "hello")
;; (wandbox :lang "ruby" :code "p ARGV" :runtime-option '("1" "2" "3"))
;;
;; (add-to-list 'wandbox-profiles '(:name "User Profile" :compiler "clang-head"))
;; (wandbox-compile :name "User Profile" :code "...")

;;; Change Log:

;; 2014/12/09 ver 0.4.1  add Testing and Cask
;; 2014/12/06 ver 0.4.0  profiles are generated from /wandbox/api/list.json
;; 2014/08/05 ver 0.3.5  permalink api available (add :save option).
;; 2014/01/25 ver 0.3.0  gist snippet available.
;; 2014/01/10 ver 0.2.1  commit to github. add wandbox-eval-with.
;; 2013/12/30 ver 0.2    keyword arguments and profile available.
;; 2013/11/22 ver 0.1    first commit.

;;; Code:

(eval-when-compile
  (require 'cl))
(require 'url-http)
(require 'json)

(defvar wandbox-profiles nil
  "Wandbox copmiler profiles (set of plist).")

{'fraction_non_alphanumeric': 0.18898356664637858, 'fraction_numerical': 0.05995130858186245, 'mean_word_length': 3.8480825958702063, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '7674013', 'n_tokens_mistral': 1346, 'n_tokens_neox': 1221, 'n_words': 362}