text:
require 'oci8'

module Sequel
  module Oracle
    class Database < Sequel::Database
      set_adapter_scheme :oracle

      # AUTO_INCREMENT = 'IDENTITY(1,1)'.freeze
      #
      # def auto_increment_sql
      #   AUTO_INCREMENT
      # end

      def connect
        if @opts[:database]
          dbname = @opts[:host] ? \
            "//#{@opts[:host]}#{":#{@opts[:port]}" if @opts[:port]}/#{@opts[:database]}" : @opts[:database]
        else
          dbname = @opts[:host]
        end
        conn = OCI8.new(@opts[:user], @opts[:password], dbname, @opts[:privilege])
        conn.autocommit = true
        conn.non_blocking = true
        conn
      end

      def disconnect
        @pool.disconnect {|c| c.logoff}
      end

      def dataset(opts = nil)
        Oracle::Dataset.new(self, opts)
      end

      def execute(sql)
        log_info(sql)
        @pool.hold {|conn| conn.exec(sql)}
      end

      alias_method :do, :execute

      def tables
        from(:tab).select(:tname).filter(:tabtype => 'TABLE').map do |r|
          r[:tname].downcase.to_sym
        end
      end

      def table_exists?(name)
        from(:tab).filter(:tname => name.to_s.upcase, :tabtype => 'TABLE').count > 0
      end

      def transaction
        @pool.hold do |conn|
          @transactions ||= []
          if @transactions.include? Thread.current
            return yield(conn)
          end

          conn.autocommit = false
          begin
            @transactions << Thread.current
            yield(conn)
          rescue => e
            conn.rollback
            raise e unless Error::Rollback === e
          ensure
            conn.commit unless e
            conn.autocommit = true
            @transactions.delete(Thread.current)
          end
        end
      end
    end

    class Dataset < Sequel::Dataset
      def literal(v)
        case v
        when OraDate
          literal(Time.local(*v.to_a))
        else
          super
        end
      end

      def fetch_rows(sql, &block)
        @db.synchronize do
          cursor = @db.execute sql
          begin
            @columns = cursor.get_col_names.map {|c| c.downcase.to_sym}
            while r = cursor.fetch
              row = {}
              r.each_with_index {|v, i| row[columns[i]] = v unless columns[i] == :raw_rnum_}
              yield row
            end
          ensure
            cursor.close
          end
        end
        self
      end

      def empty?
        db[:dual].where(exists).get(1) == nil
      end

      # Formats a SELECT statement using the given options and the dataset
      # options.
      def select_sql(opts = nil)
        opts = opts ? @opts.merge(opts) : @opts

        if sql = opts[:sql]
          return sql
        end

        columns = opts[:select]
        select_columns = columns ? column_list(columns) : WILDCARD
        sql = opts[:distinct] ? \
        "SELECT DISTINCT #{select_columns}" : \
        "SELECT #{select_columns}"

        if opts[:from]
          sql << " FROM #{source_list(opts[:from])}"
        end

        if join = opts[:join]
          join.each{|j| sql << literal(j)}
        end

        if where = opts[:where]
          sql << " WHERE #{literal(where)}"
        end

        if group = opts[:group]
          sql << " GROUP BY #{expression_list(group)}"
        end

        if having = opts[:having]
          sql << " HAVING #{literal(having)}"
        end

        if union = opts[:union]
          sql << (opts[:union_all] ? \
            " UNION ALL #{union.sql}" : " UNION #{union.sql}")
        elsif intersect = opts[:intersect]
          sql << (opts[:intersect_all] ? \
            " INTERSECT ALL #{intersect.sql}" : " INTERSECT #{intersect.sql}")
        elsif except = opts[:except]
          sql << (opts[:except_all] ? \
            " EXCEPT ALL #{except.sql}" : " EXCEPT #{except.sql}")
        end

        if order = opts[:order]
          sql << " ORDER BY #{expression_list(order)}"
        end

        if limit = opts[:limit]
          if (offset = opts[:offset]) && (offset > 0)
            sql = "SELECT * FROM (SELECT raw_sql_.*, ROWNUM raw_rnum_ FROM(#{sql}) raw_sql_ WHERE ROWNUM <= #{limit + offset}) WHERE raw_rnum_ > #{offset}"
          else
            sql = "SELECT * FROM (#{sql}) WHERE ROWNUM <= #{limit}"
          end
        end

        sql
      end

      alias sql select_sql
    end
  end
end


text:
/**
 * Module dependencies.
 */

var express = require('express');
var routes = require('./routes');
var http = require('http');
var path = require('path');
var mysql = require('mysql');
var dotenv = require('dotenv');

dotenv.load();

var connection = mysql.createConnection({
    host: process.env.MYSQL_HOST,
    user: process.env.MYSQL_USER,
    password: process.env.MYSQL_PASSWORD,
    database: process.env.MYSQL_DATABASE
});

var app = express();

// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(express.favicon(__dirname + '/public/images/rutgers.ico'));
app.use(express.logger('dev'));
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));

// development only
if ('development' == app.get('env')) {
    app.use(express.errorHandler());
}

app.get('/', routes.index);
app.get('/schedule', routes.schedule);

app.get('/courses', routes.courses(connection));

http.createServer(app).listen(app.get('port'), function() {
    console.log('Express server listening on port ' + app.get('port'));
});

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
	   android:shape="oval">

	<stroke
		android:width="0.5dp"
		android:color="@color/indicatorStroke"/>

	<solid android:color="@color/indicatorFill"/>

</shape>


text:
The AutoRest command line has been vastly simplified, with the preference to move things that were on the command line into a configuration file, with the ability to override the configuration file settings from the command line.

### Command-line Usage

> `autorest [config-file.md | config-file.json | config-file.yaml] [additional options]`

### Configuration file

AutoRest will use a [configuration file](./configuration.md) to control the code generation process. By default, AutoRest will look for a file called `readme.md` or it can be passed on the command line.

This is the preferred method, instead of passing all the information on the command line.

If you prefer to name your configuration file something else, you can supply the filename on the command line:

``` bash
autorest my_config.md
```

#### Passing additional options on the command line.

It is possible to override settings from the configuration file on the command line by prefacing the value with double dash (`--`) and setting the value with an equals sign (`=`). Ie:

``` bash
autorest --input-file=myfile.json --output-folder=./generated/code/ --namespace=foo.bar
```

### Common Command-line Options

#### Output Verbosity

| Option | Description |
|--------|-------------|
|`--verbose`|show verbose output information|
|`--debug`|show internal debug information|
|`--quiet`|suppress output|

#### Managing the installed/used AutoRest version

|Option                               | Description |
|------------------|-------------|
|`--list-installed`|show all installed versions of AutoRest tools|
|`--list-available=nn`|lists the last nn releases available from github (defaults to 10)|
|`--version=version`|uses version of AutoRest (installing if necessary.)
For version you can use a version label (see --list-available) or
  `latest` - get latest nightly build
  `latest-release` - get latest release version|
|`--reset`|remove all installed versions of AutoRest tools and install the latest (override with --version)|
|`--runtime-id=id`|overrides the platform detection for the dotnet runtime (special case). Refer to the Runtime Identifier (RID) catalog for more details.|

#### Commonly used Settings

|Option                                                                 | Description |
|------------------|-------------|
|`--input-file=FILENAME`|Adds the given file to the list of input files for generation process|
|`--output-folder=DIRECTORY`|The location for generated files. If not specified, uses `./Generated` as the default|
|`--namespace=NAMESPACE`|sets the namespace to use for the generated code|
|`--license-header\|licence-header=HEADER`| Text to include as a header comment in generated files. Use NONE to suppress the default header.|
|`--add-credentials`|If specified, the generated client includes a ServiceClientCredentials property and constructor parameter. Authentication behaviors are implemented by extending the ServiceClientCredentials type.|
|`--package-name=PACKAGENAME`|Name of the package (Ruby, Python)|
|`--package-version=VERSION`|Version of the package (Ruby, Python)|
|`--sync-methods=all\|essential\|none`|Specifies mode for generating sync wrappers. Supported value are
  `essential` - generates only one sync returning body or header (default)
  `all` - generates one sync method for each async method
  `none` - does not generate any sync methods|
|`--payload-flattening-threshold=NUMBER`|The maximum number of properties in the request body. If the number of properties in the request body is less than or equal to this value, these properties will be represented as method arguments|
|`--override-client-name=NAME`|Name to use for the generated client type. By default, uses the value of the 'Title' field from the input files|
|`--use-internal-constructors`|Indicates whether ctor needs to be generated with `internal` protection level.|
|`--use-datetimeoffset`|Indicates whether to use DateTimeOffset instead of DateTime to model date-time types|
|`--models-name=NAME`|Name to use for the generated client models namespace and folder name. By default, uses the value of 'Models'. This is not currently supported by all code generators.|
|`--output-file=FILENAME`|If set, will cause generated code to be output to a single file. Not supported by all code generators.|
|`--message-format=regular\|json`|Specifies the format, messages will be printed as. JSON format is easier to process programmatically.|

#### Authentication

AutoRest supports generating from private GitHub repositories.
There are multiple options:

1) **Using the `token` query parameter**: Pass the `token` query parameter you get when clicking "Raw" on a file of a private repo, i.e. `https://github.com/<path-on-some-private-repo>/readme.md?token=<token>`.
When such a URI is passed to AutoRest, it will automatically reuse that token for subsequent requests (e.g. querying referenced OpenAPI definitions).
This is a quick and easy solution if you manually want to run AutoRest against private bits from time to time.
2) **Using OAuth**: GitHub allows generating OAuth tokens under `Settings -> Personal access tokens`.
Create one with `repo` scope.
It can be passed to AutoRest using `--github-auth-token=<token>` or by setting the environment variable `GITHUB_AUTH_TOKEN`.
This is the way to go for all scripts and automation.
Needless to say, *do not put this token* into scripts directly, use Azure KeyVault or similar.

#### Validation

|Option                                                                 | Description |
|------------------|-------------|
|`--azure-validator`|If set, runs the Azure specific validator plugin.|
|`--openapi-type=arm│default│data-plane`|Indicates the type of configuration file being passed to the `azure-validator` so that it can run the appropriate class of validation rules accordingly.|
|`--model-validator` (***soon***)|If set, validates the provided OpenAPI definition(s) against provided `examples`.|
|`--semantic-validator` (***soon***)|If set, semantically verifies the provided OpenAPI definition(s), e.g. checks that a parameter's specified `default` value matches the parameter's declared type.|

Example:
Run `autorest --azure-validator --input-file=<path-to-spec> --message-format=json --openapi-type=arm` to get the validation messages considering ARM guidelines in JSON format.

Also, see [Samples/2a-validation](../../Samples/2a-validation) for an example of validation using a configuration file.

#### Selecting the Language with which to generate code

|Option                               | Description |
|------------------|-------------|
|`--csharp`|Runs the C# code generator|
|`--nodejs`|Runs the nodejs javascript code generator|
|`--python`|Runs the python code generator|
|`--java`|Runs the java code generator|
|`--ruby`|Runs the ruby code generator|
|`--go`|Runs the go code generator|
|`--typescript`|Runs the typescript code generator|
|`--azureresourceschema`|Runs the AzureResourceSchema|
|   | |
|`--azure-arm`|Uses the `Azure` version of the specified code generator|

You may generate one or more languages in a given invocation, ie:

`autorest --csharp --python --ruby`

To set a language-specific setting, prefix the setting with the language, ie:

`autorest --csharp.namespace=Foo.Bar `


text:
title: 'Week 3 (Jan 19th - 25th)'
date: 01/19/2016
published: true
---

##### Summaries and Questions
[Jan 19th Class One-minute Summaries](https://canvas.sfu.ca/courses/25492/discussion_topics/440792)

##### Presented Slides
[User Research Slides](http://slides.com/paulhibbitts/cpt-363-slides-placeholder#)

===

##### Summaries and Questions
[Jan 19th Class One-minute Summaries](https://canvas.sfu.ca/courses/25492/discussion_topics/440792)

##### Presented Slides
User Research Slides ([HTML Slides](http://slides.com/paulhibbitts/cpt-363-slides-placeholder#) | [PDF Slides](#))

##### Supplemental Video
[What People Are Really Doing Video](http://vimeo.com/album/169777/video/7099570)

##### Required Reading
[A Five-Step Process For Conducting User Research](http://www.smashingmagazine.com/2013/09/23/5-step-process-conducting-user-research/)
A Five-Step Process For Conducting User Research


text:
function Plane:calculateSerializeBufferSize()
end

---- Brief description.
-- <#Description#>
-- @param btSerializer <#btSerializer description#>
-- @return <#return value description#>
function Plane:serialize(btSerializer)
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:getClassName()
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:getType()
end

---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param vertices <#vertices description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getVertices(geometry, vertices, node)
end

---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfVertices(geometry, node)
end

---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param colorVertices <#colorVertices description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getVertexColors(geometry, colorVertices, node)
end

---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfVertexColors(geometry, node)
end

---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param textureCoordinates <#textureCoordinates description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getTextureCoordinates(geometry, textureCoordinates, node)
end

---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfTextureCoordinates(geometry, node)
end

---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:setOpacity(node, opacity)
end

---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:setHidden(node, opacity)
end

---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:isHidden(node, opacity)
end

---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transfrom <#transfrom description#>
-- @return <#return value description#>
function Plane:transformVertices(node, transfrom)
end

---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transform <#transform description#>
-- @return <#return value description#>
function Plane:transformVertexColors(node, transform)
end

---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transform <#transform description#>
-- @return <#return value description#>
function Plane:transformTextureCoordinates(node, transform)
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:loadGPU()
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:unLoadGPU()
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:isLoadedGPU()
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:numberOfVertices()
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:numberOfIndices()
end

---- Brief description.
-- <#Description#>
-- @param size <#size description#>
-- @return <#return value description#>
function NJLI.Plane.createArray(size)
end

---- Brief description.
-- <#Description#>
-- @param array <#array description#>
-- @return <#return value description#>
function NJLI.Plane.destroyArray(array)
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function NJLI.Plane.create()
end

---- Brief description.
-- <#Description#>
-- @param builder <#builder description#>
-- @return <#return value description#>
function NJLI.Plane.create(builder)
end

---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.clone(object)
end

---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.copy(object)
end

---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.destroy(object)
end

---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @param L <#L description#>
-- @param stack_index <#stack_index description#>
-- @return <#return value description#>
function NJLI.Plane.load(object, L, stack_index)
end

---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function NJLI.Plane.type()
end


text:
<?php

/*
V5.15 19 Jan 2012  (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved.
         Contributed by Ross Smith (adodb@netebb.com).
  Released under both BSD license and Lesser GPL library license.
  Whenever there is any discrepancy between the two licenses,
  the BSD license will take precedence.
	  Set tabs to 4 for best viewing.
*/

/*

This file is provided for backwards compatibility purposes

*/

if (!defined('ADODB_SESSION')) {
	require_once dirname(__FILE__) . '/adodb-session2.php';
}
ADODB_Session::clob('CLOB');

?>


text:
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;

namespace Tact.Rpc.Generator
{
    public static class Program
    {
        public static int Main(string[] args)
        {
            var config = new GeneratorConfig();

            new ConfigurationBuilder()
                .AddCommandLine(args)
                .Build()
                .Bind(config);

            config
                .GetType()
                .GetTypeInfo()
                .GetProperties()
                .ToList()
                .ForEach(p =>
                {
                    var value = p.GetValue(config);
                    Console.WriteLine("{0}: {1}", p.Name, value);
                });

            if (!Directory.Exists(config.ServicePath))
            {
                Console.WriteLine("Service Directory Not Found");
                return -1;
            }

            if (!Directory.Exists(config.ClientPath) && config.CreateDirectories)
            {
                Console.WriteLine("Creating Client Directory");
                Directory.CreateDirectory(config.ClientPath);
            }

            foreach(var file in Directory.EnumerateFiles(config.ServicePath, config.ServiceSearchFilter, SearchOption.AllDirectories))
            {
                Console.WriteLine("Reading: {0}", file);
                var text = File.ReadAllText(file);
                var tree = CSharpSyntaxTree.ParseText(text);
                var template = ClientClassTemplate.Create(tree, config);
                if (template == null)
                    continue;

                var fileName = template.ClassName + config.FileExtension;
                var filePath = Path.Combine(config.ClientPath, fileName);
                Console.WriteLine("Writing: {0}", filePath);
                File.WriteAllText(filePath, template.ToString());
            }

            return 0;
        }
    }
}