text:
<?php

declare(strict_types=1);

namespace Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
final class Version20200416195031 extends AbstractMigration
{
    public function getDescription(): string
    {
        return '';
    }

    public function up(Schema $schema): void
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

        $this->addSql('ALTER TABLE `group` ADD is_detaining TINYINT(1) DEFAULT \'0\' NOT NULL COMMENT \'(DC2Type:boolean)\'');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

        $this->addSql('ALTER TABLE `group` DROP is_detaining');
    }
}


text:
from __future__ import unicode_literals

from functools import wraps

from indico.core.settings import SettingsProxyBase
from indico.core.settings.util import get_all_settings, get_setting
from indico.modules.categories import Category
from indico.modules.categories.models.settings import CategorySetting

def _category_or_id(f):
    @wraps(f)
    def wrapper(self, category, *args, **kwargs):
        if isinstance(category, Category):
            category = category.id
        return f(self, int(category), *args, **kwargs)

    return wrapper

class CategorySettingsProxy(SettingsProxyBase):
    """Proxy class to access category-specific settings for a certain module."""

    @property
    def query(self):
        """Return a query object filtering by the proxy's module."""
        return CategorySetting.find(module=self.module)

    @_category_or_id
    def get_all(self, category, no_defaults=False):
        """Retrieve all settings.

        :param category: Category (or its ID)
        :param no_defaults: Only return existing settings and ignore defaults.
        :return: Dict containing the settings
        """
        return get_all_settings(CategorySetting, None, self, no_defaults, category_id=category)

    @_category_or_id
    def get(self, category, name, default=SettingsProxyBase.default_sentinel):
        """Retrieve the value of a single setting.

        :param category: Category (or its ID)
        :param name: Setting name
        :param default: Default value in case the setting does not exist
        :return: The settings's value or the default value
        """
        self._check_name(name)
        return get_setting(CategorySetting, self, name, default, self._cache, category_id=category)

    @_category_or_id
    def set(self, category, name, value):
        """Set a single setting.

        :param category: Category (or its ID)
        :param name: Setting name
        :param value: Setting value; must be JSON-serializable
        """
        self._check_name(name)
        CategorySetting.set(self.module, name, self._convert_from_python(name, value), category_id=category)
        self._flush_cache()

    @_category_or_id
    def set_multi(self, category, items):
        """Set multiple settings at once.

        :param category: Category (or its ID)
        :param items: Dict containing the new settings
        """
        items = {k: self._convert_from_python(k, v) for k, v in items.iteritems()}
        CategorySetting.set_multi(self.module, items, category_id=category)
        self._flush_cache()

    @_category_or_id
    def delete(self, category, *names):
        """Delete settings.

        :param category: Category (or its ID)
        :param names: One or more names of settings to delete
        """
        for name in names:
            CategorySetting.delete(self.module, *name, category_id=category)
        self._flush_cache()

    @_category_or_id
    def delete_all(self, category):
        """Delete all settings.

        :param category: Category (or its ID)
        """
        CategorySetting.delete_all(self.module, category_id=category)
        self._flush_cache()

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>elements-of-programming-interviews</artifactId>
        <groupId>gardncl</groupId>
        <version>1.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>parallelcomputing</artifactId>
    <name>Chapter 20: Parallel Computing</name>

    <dependencies>
        <dependency>
            <groupId>net.jodah</groupId>
            <artifactId>concurrentunit</artifactId>
            <version>0.4.2</version>
        </dependency>
        <dependency>
            <groupId>gardncl</groupId>
            <artifactId>datastructures</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>gardncl</groupId>
            <artifactId>dynamicprogramming</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>gardncl</groupId>
            <artifactId>utils</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>

</project>


text:
**honest abe**
what about your **squatter**?
I stayed here **out of solidarity**
**arson**
they're not gonna notice a few more **measly** petabytes, all right?
you were just going to show up and fucking **steamroll** him?
**stand down**

## E 9
A **veritable** who's of nobodies
they'll download a **doctored** version of Hooli app.
Last night I was sitting there by the **smoldering** husk of my palapa ... which led me to my **epiphany**.
**gents**
those whole space-tab thing was ... kind of **petty**
we just **snubbed** the fuck out of Keenan Feldspar.

## E 8
What was the one little **pesky** deal point?
It's the highest honor you can **bestow on** a VC.
**flat rate**
**keyman**
it was just such an **in the weeds** deal
up in the hill, there is a **tavern**
there is a **barmaid**
I'm not one to **gush**, but the possibilities of your consequence-free reality are **darkly** promising.
wait to see our new hardware, which is **en route** from China, it's gorgeous
You want a beer? I just put in a fresh **keg**.
**subfloor** heating
Why does everyone in this state have to such a **wimp** about it?
I was going to **descend** onto the stage, in a giant box.
**world-class** **puns**, now I got nothing
The VR is **rad** now.
You have been sucked entirely into his little Keenan **vortex**.
Considering our **looming** debt, and the **embryonic** state of our network, this is a very generous offer.
I have to be the **ogre** that say no to him.
I will sleep in the **bilge** with the **vermin**, and I will eat **hardtack** and I will say, "Thank you."
I risk having a **mutiny** on my hands.
Richie had the **quail eggs** to counter 25 million.
This adorable little **wombat** made clear his intentions that he wants me to be the new COO.
We're gonna be fucking **cutting class** and crushing ass.
You're not exactly **chomping** **at the chance** to fund us, are you?
I saw him grab his lighter and his **bong** and head out to the Palapa to **sulk** a few minutes ago

## E 7

**What brings you here today**?
Did you **graze** your **penis** against a toilet seat?
There is a **grotesque** gender **imbalance** in the VC field right now. I can help you navigate the **toxicity** of this male culture which is **encroaching** on our **feminist** island.
**Mansplaining** is when a man will **condescendingly** explain something to a woman that she already knows.
She has never shown a **proclivity** for getting around infrastructure.
he'll come here fix it **posthaste**
I'll **concede** that spending all my time inside of a house with you **scrawny** code jockeys, the incredible shrinking Hendricks...
I'll send him a harshly **worded** **cease and desist** letter.
this is a **shakedown**, he's a **crook**.
It seems that I've committed the **cardinal sin** of being early.
it's like that old **fraternity** game, uh, the **limp biscuit**.
May I borrow this hammer to **pound in** these **flamboyant** little **nails**?
They have reached out to me **preemptively** to settle
> I'm not **going down** without a fight

looks like I can **slay** that troll

## E 6

Someone pissed in someone's car? -- It's an **adage**
Clearly, she has a lot of **pent-up** sexual energy, likely from working in this **worm farm**
I really wish I could, but my dick is the **abacus** upon which this **equation** will be ...
You didn't **come off** in that story as well as you think you do.
I'll be the first one here at 10:30 am, and the last one to leave a **smidge** after 4:00.
there they are, **atop** your little **paunch**
I don't want to **pry**, but did I do something wrong?
we just need to **extricate** you from this situation
Listen baby, you're getting **hitched**, and I was born to roam.

## E 5
He is my **transfusion** associate
Are you really not familiar with **parabiosis**?
nobody likes a **braggart**, Jin-Yang
Ed Chen run this event just to **suck up to** Laurie
we will take another half, **walled off** on their phone for our own future use.
He is even not in the company, he just **butted in**
that's actually for my **astigmatism**
oh, dear. That does not **bode** well for you.
Just some **creatine**, protein powder, soy extract
You **muscle-bound** handsome **Adonis**
Tech is reserved for people like me! The freaks, the weirdos, the **misfits**, the geeks, the **dweebs**, the **dorks**! Not you.
You days of **leeching off** Gavin Belson are over.
You're referring to the **baby shower** **ruse**.
I'm no stranger to these types of **machinations**
However, I have **countervailed** it with my ...
He is writing a **tell-all**?
He landed a very **lucrative** deal to **air** my **dirty laundry** over the years
You **ratted** your girlfriend out to the FBI, because you're too big of a pussy to break up with her?

## E 4
You're **demented**!
My beautiful little **Asiatic** friend, I'm going to buy you the **Palapa** of your life
Gavin is a co-founder of a **bajillion**-dollar tech company
**mediocrity**
I will **scalp** Gavin if I have to
I'm going to put this as **delicately** as I know how, you can **chortle my balls**.
Jian-Yang **unwittingly** crafted an amazing toll for the real-time detection and filtering of **penile** imagery.
so **hats off** ... to Ed Chen

## E 3
I'm not a **spaz**
**babbling** computing issues he can't solve
He is a **cautionary tale**
Richard, I'm on **thin ice** as it is at Raviga.
This is definitely **get** my dad **off my back**
He pretends like he's **all dry and witty**, but he's just like a **monotone** piece of shit

## E 2
I want you to **succeed**
sure you do, **slugger**
I can't have another **intersite** on my hands.
We have to **bifurcate** our relationship.
I kind of **zoned out**
That's the **frothiest** space in the Valley right now
You're in **gross violation** of this act
they'd probably **turn you in**
Exactly like Hooli-Chat but without the **suck-ass** part
**octopus**

## E 1
I know you don't **toot** for your own burn, I'll do it for you.
If I say **pivot**, we **pivot**
**the balls on you**


text:
ActiveRecord::Schema.define(version: 20150119211559) do

  create_table "users", force: :cascade do |t|
    t.string   "first_name"
    t.string   "last_name"
    t.string   "password"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

end


text:
require File.expand_path('../../../../../spec_helper', __FILE__)
require 'net/http'
require File.expand_path('../fixtures/http_server', __FILE__)

describe "Net::HTTP#copy" do
  before(:all) do
    NetHTTPSpecs.start_server
  end

  after(:all) do
    NetHTTPSpecs.stop_server
  end

  before(:each) do
    @http = Net::HTTP.start("127.0.0.1", NetHTTPSpecs.server_port)
  end

  it "sends a COPY request to the passed path and returns the response" do
    response = @http.copy("/request")
    response.should be_kind_of(Net::HTTPResponse)
    response.body.should == "Request type: COPY"
  end
end


text:
namespace Amazon.Ssm;

public sealed class UpdateAssociationStatusResponse
{
}


text:
angular.module( 'frontdesk.accounts', [
  'ui.router',
  'plusOne'
])

// Route configuration
.config(function config( $stateProvider ) {
  $stateProvider.state( 'accounts', {
    url: '/accounts',
    views: {
      "main": {
        controller: 'AccountsCtrl',
        templateUrl: 'accounts/accounts.tpl.html'
      }
    },
    data:{ pageTitle: 'Accounts' }
  });
})

// Accounts controller
.controller( 'AccountsCtrl', function AccountsController( $scope, $http ) {
  $http.get('https://frontdesk-api.herokuapp.com/api/accounts').
  success(function(data, status, headers, config) {
    $scope.accounts = data.accounts;
  }).
  error(function(data, status, headers, config) {
  });
});


text:
require 'nkf'
require 'bimyou_segmenter'

module FtsLite
  module Tokenizer
    QUERY_DELIMITER = /[\s ]+/
    SIMPLE_DELIMITER = /[\s \.\*"',\?!;\(\)。、.,?!「」『』()]+/
    NEAR0 = " NEAR/0 "
    NEAR2 = " NEAR/2 "

    def self.create(name)
      case name.to_sym
      when :simple
        Simple.new
      when :bigram
        Bigram.new
      when :trigram
        Trigram.new
      when :wakachi
        Wakachi.new
      when :wakachi_bigram
        WakachiBigram.new
      else
        raise ArgumentError
      end
    end
    def self.normalize(text)
      NKF::nkf('-wZX', text).downcase
    end
    class Simple
      def query(text, options)
        vector(text)
      end
      def vector(text)
        split(text).join(" ")
      end
      def split(text)
        Tokenizer.normalize(text).split(SIMPLE_DELIMITER)
      end
    end
    class Bigram
      def query(text, options = {})
        fuzzy = options.key?(:fuzzy) ? options[:fuzzy] : false
        near = fuzzy ? NEAR2 : NEAR0
        text = Tokenizer.normalize(text)
        text.split(QUERY_DELIMITER).map {|segment|
          segment.split(SIMPLE_DELIMITER).map {|word|
            0.upto(word.size - 2).map {|i| word[i, 2] }
          }.join(near)
        }.flatten.join(" ")
      end
      def vector(text)
        split(text).join(" ")
      end
      def split(text)
        text = Tokenizer.normalize(text)
        text.split(SIMPLE_DELIMITER).map {|word|
          0.upto(word.size - 2).map {|i| word[i, 2] }
        }.flatten
      end
    end
    class Trigram
      def query(text, options = {})
        fuzzy = options.key?(:fuzzy) ? options[:fuzzy] : false
        near = fuzzy ? NEAR2 : NEAR0
        text = Tokenizer.normalize(text)
        text.split(QUERY_DELIMITER).map {|segment|
          segment.split(SIMPLE_DELIMITER).map {|word|
            0.upto(word.size - 3).map {|i| word[i, 3] }
          }.join(near)
        }.flatten.join(" ")
      end
      def vector(text)
        split(text).join(" ")
      end
      def split(text)
        text = Tokenizer.normalize(text)
        text.split(SIMPLE_DELIMITER).map {|word|
          0.upto(word.size - 3).map {|i| word[i, 3] }
        }.flatten
      end
    end
    class Wakachi
      def query(text, options = {})
        fuzzy = options.key?(:fuzzy) ? options[:fuzzy] : false
        near = fuzzy ? NEAR2 : NEAR0
        text = Tokenizer.normalize(text)
        text.split(QUERY_DELIMITER).map {|segment|
          BimyouSegmenter.segment(segment,
                                  :white_space => false,
                                  :symbol => false).join(near)
        }.join(" ")
      end
      def vector(text)
        split(text).join(" ")
      end
      def split(text)
        BimyouSegmenter.segment(Tokenizer.normalize(text),
                                :white_space => false,
                                :symbol => false)
      end
    end
    class WakachiBigram
      def query(text, options = {})
        fuzzy = options.key?(:fuzzy) ? options[:fuzzy] : false
        near = fuzzy ? NEAR2 : NEAR0
        text = Tokenizer.normalize(text)
        text.split(QUERY_DELIMITER).map {|segment|
          BimyouSegmenter.segment(segment,
                                  :white_space => false,
                                  :symbol => false).map {|word|
            if (word.size == 1)
              word
            else
              0.upto(word.size - 2).map {|i| word[i, 2] }.join(near)
            end
          }.flatten.join(near)
        }.join(" ")
      end
      def vector(text)
        split(text).join(" ")
      end
      def split(text)
        BimyouSegmenter.segment(Tokenizer.normalize(text),
                                :white_space => false,
                                :symbol => false).map {|word|
          if (word.size == 1)
            word
          else
            0.upto(word.size - 2).map {|i| word[i, 2] }
          end
        }.flatten
      end
    end
  end
end