<commit_before><commit_msg>基本設計的ななにか<commit_after><!doctype html>
<meta charset="utf-8">
<title>js 勉強会 初日 - ライト</title>
<script>
var Light = (function() {
  function Light(opt) {
    this.turnOn = opt.turnOn;
  }
  Light.prototype.isTurnOn = function() {
    // do something
  }

  return Light;
})();

var Lights = (function() {
  function Lights(opt) {
    this.collection = opt.data;
  }
  Light.prototype.turnAll = function(bool) {
    // do something
  }

  return Lights;
})();

// Model View
var LightView = (function() {
  function LightView(opt) {
    this.model = opt.model;
  }
  LightView.prototype.render = function(bool) {
    // do something
  }

  return LightView;
})();

// Collection View
var LightsView = (function() {
  function LightsView(opt) {
    this.collection = new Lights(opt);
  }
  LightsView.prototype.render = function(bool) {
    // do something
  }

  return LightsView;
})();

data = [
  {name: "電球1", turning: "on"},
  {name: "電球2", turning: "off"},
  {name: "電球3", turning: "on"}
];

lightsView = new LightsView(data);
lightsView.render()

</script>


{'fraction_non_alphanumeric': 0.16804407713498623, 'fraction_numerical': 0.0036730945821854912, 'mean_word_length': 3.308300395256917, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2077432', 'n_tokens_mistral': 410, 'n_tokens_neox': 402, 'n_words': 84}