repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
alpha721/WikiEduDashboard | lib/analytics/course_students_csv_builder.rb | 1126 | # frozen_string_literal: true
require 'csv'
class CourseStudentsCsvBuilder
def initialize(course)
@course = course
end
def generate_csv
csv_data = [CSV_HEADERS]
courses_users.each do |courses_user|
csv_data << row(courses_user)
end
CSV.generate { |csv| csv_data.each { |line| csv << li... | mit |
mattgerstman/TweetTwoScreens | tests/codeigniter/libraries/Typography_test.php | 4416 | <?php
class Typography_test extends CI_TestCase {
public function set_up()
{
$this->type = new Mock_Libraries_Typography();
$this->ci_instance('type', $this->type);
}
// --------------------------------------------------------------------
/**
* Tests the format_characters() function.
*
* this can and... | mit |
Distrotech/dovecot | src/login-common/login-proxy-state.c | 3843 | /* Copyright (c) 2009-2013 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "net.h"
#include "ioloop.h"
#include "hash.h"
#include "strescape.h"
#include "fd-set-nonblock.h"
#include "login-proxy-state.h"
#include <unistd.h>
#include <fcntl.h>
#define NOTIFY_RETRY_REOPEN_MSECS (60*1000)
s... | mit |
vicnicius/catarse_admin | src/c/project-suggested-contributions.js | 881 | /**
* window.c.ProjectSuggestedContributions component
* A Project-show page helper to show suggested amounts of contributions
*
* Example of use:
* view: () => {
* ...
* m.component(c.ProjectSuggestedContributions, {project: project})
* ...
* }
*/
import m from 'mithril';
import _ from 'underscore';
c... | mit |
anatolieGhebea/contatore | python/RPi.GPIO-0.6.3/RPi/GPIO/__init__.py | 1112 | """
Copyright (c) 2012-2016 Ben Croston
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribut... | mit |
asad/MCEDS | lib/commons-net-3.3/apidocs/org/apache/commons/net/pop3/package-summary.html | 8093 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1">
<title>org.apache.commons.net.pop3 (Commons Net 3.3 API)</title>
<link rel="stylesheet" type="te... | mit |
GSoft-SharePoint/Dynamite | Source/GSoft.Dynamite/Collections/ConcurrentList.cs | 22033 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
namespace GSoft.Dynamite.Collections
{
/// <summary>
/// A list that supports synchronized reading and writing.
/// </summary>
/// <typeparam name="T">The type of ob... | mit |
Djamy/platform | src/Oro/Bundle/IntegrationBundle/Provider/SyncProcessorInterface.php | 407 | <?php
namespace Oro\Bundle\IntegrationBundle\Provider;
use Oro\Bundle\IntegrationBundle\Entity\Channel as Integration;
interface SyncProcessorInterface
{
/**
* @param Integration $integration
* @param $connector
* @param array $connectorParameters
*
* @return bool
*/
public func... | mit |
emeryduh/TeamJones_Project | libgdx/docs/api/com/badlogic/gdx/utils/class-use/ObjectFloatMap.Values.html | 7368 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:48 CET 2013 -->
<title>Uses of Class com.badlogic.gdx.utils.ObjectFloatMap.Values (libgdx API)</title>
<meta na... | mit |
su-chang/react-web-app | app/fetch/search/search.js | 261 | import { get } from '../get'
export function getSearchData(page, cityName, category, keyword) {
const keywordStr = keyword ? '/' + keyword : ''
const result = get('/api/search/' + page + '/' + cityName + '/' + category + keywordStr)
return result
} | mit |
msneddon/narrative | nbextensions/editorCell_bill/widgets/editorParamsViewWidget.js | 11747 | /*global define*/
/*jslint white:true,browser:true*/
define([
'bluebird',
// CDN
'kb_common/html',
// LOCAL
'common/ui',
'common/runtime',
'common/events',
'common/props',
// Wrapper for inputs
'./inputWrapperWidget',
'widgets/appWidgets/fieldWidget',
// Display widgets
... | mit |
bebatut/bioconda-recipes | recipes/bioconductor-all/post-link.sh | 1267 | #!/bin/bash
FN="ALL_1.32.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/experiment/src/contrib/ALL_1.32.0.tar.gz"
"https://bioarchive.galaxyproject.org/ALL_1.32.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-all/bioconductor-all_1.32.0_src_all.tar.gz"
)
MD5="a7181423086d1ea752a3e4... | mit |
codenothing/css-compressor | unit/benchmark/src/csszengarden.com.145.css | 4813 | /* css Zen Garden submission 145 - 'Paravion', by Emiliano Pennisi, http://www.peamarte.it/01/metro.html */
/* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/ */
/* All associated graphics copyright 2004, Emiliano Pennisi */
/* Added: Dec. 16th, 2004 */
/* IMPORTAN... | mit |
oyachai/HearthSim | src/main/java/com/hearthsim/card/basic/spell/HeroicStrike.java | 1140 | package com.hearthsim.card.basic.spell;
import com.hearthsim.card.spellcard.SpellTargetableCard;
import com.hearthsim.event.effect.EffectCharacter;
import com.hearthsim.event.effect.EffectCharacterBuffTemp;
import com.hearthsim.event.filter.FilterCharacter;
import com.hearthsim.event.filter.FilterCharacterTargetedSpel... | mit |
ShinjiTanimoto/shirasagi | app/models/concerns/ss/reference/site.rb | 649 | module SS::Reference::Site
extend ActiveSupport::Concern
extend SS::Translation
included do
cattr_accessor :site_required, instance_accessor: false
self.site_required = true
attr_accessor :cur_site
belongs_to :site, class_name: "SS::Site"
validates :site_id, presence: true, if: ->{ self.cl... | mit |
john-mcnamara-intel/dpdk | devtools/check-maintainers.sh | 2892 | #! /bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015 6WIND S.A.
# Do some basic checks in MAINTAINERS file
cd $(dirname $0)/..
# speed up by ignoring Unicode details
export LC_ALL=C
# Get files matching paths with wildcards and / meaning recursing
files () # <path> [<path> ...]
{
if [ -z "$1" ] ; th... | mit |
NEYouFan/nej-toolkit | test/cases/nej_0.1.0/webapp/src/javascript/lib/nej/util/cursor/demo/cursor.html | 1199 | <!DOCTYPE html>
<html>
<head>
<title>NEJ实例 - 计数器</title>
<meta charset="utf-8" />
<script>
function log(msg){
var div = document.createElement('div');
div.innerHTML = msg;
document.body.appendChild(div);
}
</script>
</head>
<body>
<textarea id="abc" st... | mit |
mathspace/django-two-factor-auth | Makefile | 816 | TARGET?=tests
.PHONY: docs flake8 example test coverage
docs:
cd docs; make html
open docs/_build/html/index.html
flake8:
flake8 --ignore=W999 two_factor example tests
example:
DJANGO_SETTINGS_MODULE=example.settings PYTHONPATH=. \
django-admin.py runserver
test:
DJANGO_SETTINGS_MODULE=tests.settings PYTHON... | mit |
nelsonsar/raygun4net | Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs | 13094 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Mindscape.Raygun4Net.Messages;
using System.Threading;
using System.Reflection;
using Mindscape.Raygun4Net.Builders;
namespace Mindscape.Raygun4Net
{
public class RaygunClient : RaygunClientBase
{... | mit |
jicailiu/xbox-live-api | Source/Services/Social/WinRT/ProfileService_WinRT.cpp | 2818 | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "ProfileService_winrt.h"
#include "Utils_WinRT.h"
using namespace pplx;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Colle... | mit |
Christopheraburns/projecttelemetry | node_modules/splunk-sdk/lib/platform/client/jquery_http.js | 2820 |
// Copyright 2011 Splunk, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | mit |
retsu0/FFmepg-Android | jni/ffmpeg/libavformat/mp3enc.c | 16996 | /*
* MP3 muxer
* Copyright (c) 2003 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your ... | mit |
bankonme/Potcoin-1 | src/qt/optionsdialog.cpp | 9332 | // Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include ... | mit |
s-matthew-english/bitcoin | src/init.cpp | 80293 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "i... | mit |
gseidel/esperanto-cms | src/esperanto/UserBundle/Entity/Group.php | 1301 | <?php
namespace esperanto\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\Group as BaseGroup;
/**
* Group
*/
class Group extends BaseGroup
{
/**
* @var integer
*/
protected $id;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $users;
... | mit |
mgathu1/groceryshopper | laravel/app/views/admin/users/delete.blade.php | 905 | @extends('admin.layouts.modal')
{{-- Content --}}
@section('content')
<!-- Tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-general" data-toggle="tab">General</a></li>
</ul>
<!-- ./ tabs -->
{{-- Delete User Form --}}
<form class="form-horizontal" method=... | mit |
oscarguindzberg/multibit-hd | mbhd-core/src/main/java/org/multibit/hd/core/events/CoreEvent.java | 449 | package org.multibit.hd.core.events;
/**
* <p>Signature interface to provide the following to Core Event API:</p>
* <ul>
* <li>Identification of core events</li>
* </ul>
* <p>A core event should be named using a noun as the first part of the name (e.g. ExchangeRateChangedEvent)</p>
* <p>A core event can occur at... | mit |
brjohnstmsft/azure-sdk-for-net | sdk/mediaservices/Azure.Media.Analytics.Edge/src/Generated/Models/MediaGraphHttpHeaderCredentials.cs | 2304 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.Media.Analytics.Edge.Models
{
/// <summary> Http header service credentials. </summary>
public partial class MediaGraphHttpHeaderCredentials : ... | mit |
lukeapage/pngjs2 | test/convert-images-spec.js | 2317 | var fs = require('fs');
var PNG = require('../lib/png').PNG;
var test = require('tape');
var noLargeOption = process.argv.indexOf("nolarge") >= 0;
fs.readdir(__dirname + '/in/', function (err, files) {
if (err) throw err;
files = files.filter(function (file) {
return (!noLargeOption || !file.match(/large/i))... | mit |
davehorton/drachtio-server | deps/boost_1_77_0/libs/fusion/doc/html/fusion/container/generation/functions/make_vector.html | 12217 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>make_vector</title>
<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../../index.html" title... | mit |
BenInCOSprings/WpfDockingWindowsApplicationTemplate | wpftoolkit-110921/Main/Source/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/Samples/Magnifier/Views/MagnifierView.xaml.cs | 1404 | /***************************************************************************************
Extended WPF Toolkit
Copyright (C) 2007-2014 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license ... | mit |
donnut/ramda | test/pipeP.js | 988 | var assert = require('assert');
var Q = require('q');
var R = require('..');
describe('pipeP', function() {
function a(x) {return x + 'A';}
function b(x) {return x + 'B';}
it('handles promises', function() {
var plusOne = function(a) {return a + 1;};
var multAsync = function(a, b) {return Q.when(a * ... | mit |
cviebrock/framework | tests/Support/SupportCarbonTest.php | 3356 | <?php
namespace Illuminate\Tests\Support;
use DateTime;
use DateTimeInterface;
use BadMethodCallException;
use Carbon\CarbonImmutable;
use Illuminate\Support\Carbon;
use PHPUnit\Framework\TestCase;
use Carbon\Carbon as BaseCarbon;
class SupportCarbonTest extends TestCase
{
/**
* @var \Illuminate\Support\Car... | mit |
adonaac/yaoui | yaoui/FlatDropdown.lua | 3846 | local yui_path = (...):match('(.-)[^%.]+$')
local Object = require(yui_path .. 'UI.classic.classic')
local FlatDropdown = Object:extend('FlatDropdown')
function FlatDropdown:new(yui, settings)
self.yui = yui
self.x, self.y = 0, 0
self.name = settings.name
self.size = settings.size or 20
self.option... | mit |
kostub/iosMath | iosMath/render/internal/MTFontMathTable.h | 8951 | //
// MTFontMathTable.h
// iosMath
//
// Created by Kostub Deshmukh on 8/28/13.
// Copyright (C) 2013 MathChat
//
// This software may be modified and distributed under the terms of the
// MIT license. See the LICENSE file for details.
//
@import Foundation;
@import CoreText;
@class MTFont;
/** MTGlyphPart ... | mit |
pbmanis/acq4 | acq4/devices/PatchPipette/__init__.py | 77 | from __future__ import print_function
from .patchpipette import PatchPipette
| mit |
beeth0ven/TFBubbleItUp | Example/Pods/Target Support Files/Pods-TFBubbleItUp_Tests/Pods-TFBubbleItUp_Tests-acknowledgements.markdown | 1228 | # Acknowledgements
This application makes use of the following third party libraries:
## TFBubbleItUp
Copyright (c) 2015 Ales Kocur <ales@thefuntasty.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the ... | mit |
NewSpring/Apollos | ios/Pods/lottie-ios/lottie-ios/Classes/MacCompatability/LOTPlatformCompat.h | 648 | //
// LOTPlatformCompat.h
// Lottie
//
// Created by Oleksii Pavlovskyi on 2/2/17.
// Copyright (c) 2017 Airbnb. All rights reserved.
//
#ifndef LOTPlatformCompat_h
#define LOTPlatformCompat_h
#import "TargetConditionals.h"
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
#import <UIKit/UIKit.h>
#else
#import <App... | mit |
Symfony-Plugins/sfSimpleForum2Plugin | lib/model/sfSimpleForumCategory.php | 222 | <?php
/**
* Subclass for representing a row from the 'sf_simple_forum_category' table.
*
*
*
* @package plugins.sfSimpleForumPlugin.lib.model
*/
class sfSimpleForumCategory extends PluginsfSimpleForumCategory
{
}
| mit |
nherzalla/ProfileX-1 | node_modules/password-sheriff/lib/rules/length.js | 1063 | var _ = require('underscore');
/* A rule should contain explain and rule methods */
// TODO explain explain
// TODO explain missing
// TODO explain assert
function assert (options, password) {
return !!password && options.minLength <= password.length;
}
function explain(options) {
if (options.minLength === 1) {
... | mit |
djsedulous/namecoind | libs/boost_1_50_0/doc/html/boost_asio/reference/placeholders__signal_number.html | 4190 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>placeholders::signal_number</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../boost_asio.html"... | mit |
Raizlabs/RaisinToast | Example/RaisinToast/RZTCustomErrorViewController.h | 289 | //
// RZTCustomErrorViewController.h
// RaisinToast
//
// Created by Adam Howitt on 1/7/15.
// Copyright (c) 2015 adamhrz. All rights reserved.
//
#import "RZErrorMessagingViewController.h"
@interface RZTCustomErrorViewController : UIViewController <RZMessagingViewController>
@end
| mit |
nazar-pc/cherrytea.org-old | core/classes/False_class.php | 1775 | <?php
/**
* @package CleverStyle CMS
* @author Nazar Mokrynskyi <nazar@mokrynskyi.com>
* @copyright Copyright (c) 2011-2014, Nazar Mokrynskyi
* @license MIT License, see license.txt
*/
namespace cs;
use ArrayAccess,
SimpleXMLElement;
/**
* False_class is used for chained calling, when some method may retu... | mit |
jubos/meguro | deps/spidermonkey/tests/js1_5/Regress/regress-463259.js | 2273 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | mit |
w-oertl/Luapress | tests/sticky/pages/sticky.md | 74 | $hidden=true
This is a sticky notice that should appear on the homepage!
| mit |
Blucky87/Nez | Nez.FarseerPhysics/Farseer/Dynamics/Joints/DistanceJoint.cs | 9625 | /*
* Farseer Physics Engine:
* Copyright (c) 2012 Ian Qvist
*
* Original source Box2D:
* Copyright (c) 2006-2011 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of t... | mit |
ksrinivasancomo/symfony2 | app/cache/dev_old/twig/5c/61/3b42836f9a825aea4138cba148e6.php | 1789 | <?php
/* WebProfilerBundle:Profiler:toolbar_js.html.twig */
class __TwigTemplate_5c613b42836f9a825aea4138cba148e6 extends Twig_Template
{
protected function doGetParent(array $context)
{
return false;
}
protected function doDisplay(array $context, array $blocks = array())
{
// line... | mit |
nildev/tools | vendor/github.com/nildev/lib/utils/http.go | 943 | package utils
import (
"io/ioutil"
"net/http"
"encoding/json"
"fmt"
"github.com/juju/errors"
)
// GetRequestBody reads request and returns bytes
func GetRequestBody(r *http.Request) ([]byte, error) {
body, err := ioutil.ReadAll(r.Body)
if err != nil {
return nil, errors.Trace(err)
}
return body, nil
}
/... | mit |
dgrtwo/stack-blog | _posts/2010-12-17-introducing-programmers-stackexchange-com.markdown | 3607 | ---
author: jeffatwood
comments: true
date: 2010-12-17 06:28:45+00:00
layout: post
redirect_from: /2010/12/introducing-programmers-stackexchange-com
hero:
slug: introducing-programmers-stackexchange-com
title: Introducing programmers.stackexchange.com
wordpress_id: 6383
tags:
- company
- stackexchange
- community
---
... | mit |
NYPL/labs.nypl.org | node_modules/hookshot/README.md | 2703 | # hookshot

"You found the *hookshot*! It's a spring-loaded chain that you can cast out to hook things."
## Intro
**hookshot** is a tiny library and companion CLI tool for handling [GitHub post-receive hooks](https://help.github.com/articles/post-receive-hooks).
## Examples... | mit |
LEONID-DOROGIN/simply-apple | compilation/macports/office/simply-spectacle/files/Spectacle/Sources/SpectacleShortcutRecorderCell.h | 682 | #import <Cocoa/Cocoa.h>
#import "SpectacleShortcutRecorderDelegate.h"
@class SpectacleShortcutManager;
@interface SpectacleShortcutRecorderCell : NSCell
@property (nonatomic) SpectacleShortcutRecorder *shortcutRecorder;
@property (nonatomic) NSString *shortcutName;
@property (nonatomic) SpectacleShortcut *shortcut;... | mit |
yinchunlong/abelkhan-1 | ext/c++/thirdpart/c++/boost/libs/asio/doc/html/boost_asio/reference/basic_datagram_socket/send/overload2.html | 6331 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>basic_datagram_socket::send (2 of 3 overloads)</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" hre... | mit |
m4ce/telegraf | plugins/inputs/ras/ras.go | 9486 | // +build linux
// +build 386 amd64 arm arm64
package ras
import (
"database/sql"
"fmt"
"os"
"strconv"
"strings"
"time"
_ "modernc.org/sqlite" //to register SQLite driver
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
// Ras plugin gathers and counts errors provided by ... | mit |
mdissel/Marten | src/Marten.Testing/Linq/Compatibility/Support/DefaultQueryFixture.cs | 845 | using Marten.Testing.Documents;
namespace Marten.Testing.Linq.Compatibility.Support
{
public class DefaultQueryFixture: TargetSchemaFixture
{
public DefaultQueryFixture()
{
Store = provisionStore("linq_querying");
DuplicatedFieldStore = provisionStore("duplicate_fields"... | mit |
patriksvensson/cake | src/Cake.Common/Tools/Chocolatey/ChocolateyToolResolver.cs | 3004 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Linq;
using Cake.Core;
using Cake.Core.IO;
namespace Cake.Common.Tools.Chocolatey
{
... | mit |
RichardHowells/Dnn.Platform | DNN Platform/Modules/DnnExportImportLibrary/Dto/Users/ExportUser.cs | 2486 | #region Copyright
//
// DotNetNuke® - http://www.dnnsoftware.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restric... | mit |
110035/kissy | src/dom/sub-modules/ie/tests/manual/select.html | 301 | <!doctype html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<select multiple id="s">
<option value="1" id="one" selected>one</option>
<option id="two" selected>two</option>
</select>
<script>
alert(document.getElementById('s').value);
</script>
</body>
</html> | mit |
mheki/phpspec | src/PhpSpec/CodeGenerator/Generator/ExistingConstructorTemplate.php | 3432 | <?php
/*
* This file is part of PhpSpec, A php toolset to drive emergent
* design by specification.
*
* (c) Marcello Duarte <marcello.duarte@gmail.com>
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with t... | mit |
dnnsoftware/Dnn.Platform | DNN Platform/Library/Services/Connections/ConnectorCategories.cs | 414 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Services.Connections
{
public enum ConnectorCategories
{
Social = 0,
... | mit |
swhsiang/pathfinder | vendor/github.com/influxdata/influxdb/cmd/influxd/run/server_suite_test.go | 21973 | package run_test
import (
"fmt"
"net/url"
"strings"
"testing"
"time"
)
var tests Tests
// Load all shared tests
func init() {
tests = make(map[string]Test)
tests["database_commands"] = Test{
queries: []*Query{
&Query{
name: "create database should succeed",
command: `CREATE DATABASE db0`,
... | mit |
seriux55/loweeb00069 | src/Base/DiridarekBundle/Resources/public/images/press/index.php | 51 | <? header('Location: http://www.diridarek.com'); ?> | mit |
Azure/azure-sdk-for-net | sdk/storage/Azure.Storage.Files.DataLake/src/Generated/FileSystemGetPropertiesHeaders.cs | 1739 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure;
using Azure.Core;
namespace Azure.Storage.Files.DataLake
{
internal partial class FileSystemGetPropertiesHeaders
{
private readonly Respon... | mit |
RongbinZhuang/simpleOS | ver0/reference/chapter7/i/kernel/console.c | 1638 |
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
console.c
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Forrest Yu, 2005
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*
回车键: 把光标移到第一列
换行键: 把光标前进到下一行
*/
#include "type.h"
#i... | mit |
Excalibur-CT/CTCoreCategory | CTCoreCategoryDemo/Pods/CTCoreCategory/CTCoreCategory/NSString/NSDataAES.h | 725 | //
// NSDataAES.h
//
// Created by cheng on 15/12/25.
// Copyright © 2015年 cheng. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString * kCryptorKey;
#pragma mark - @interface NSData (AES128)
@interface NSData (AES128)
+ (NSData *)dataFromBase64String:(NSString *)aString;
- (NSString *)base... | mit |
tdickers/mitmproxy | netlib/tutils.py | 3536 | from io import BytesIO
import tempfile
import os
import time
import shutil
from contextlib import contextmanager
import six
import sys
from netlib import utils, tcp, http
def treader(bytes):
"""
Construct a tcp.Read object from bytes.
"""
fp = BytesIO(bytes)
return tcp.Reader(fp)
@contextma... | mit |
mrkmarron/ChakraCore | lib/Backend/FunctionJITRuntimeInfo.h | 620 | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | mit |
kspviswa/dpi-enabled-ovs | ovs/datapath/linux/compat/include/net/ip.h | 554 | #ifndef __NET_IP_WRAPPER_H
#define __NET_IP_WRAPPER_H 1
#include_next <net/ip.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)
static inline bool ip_is_fragment(const struct iphdr *iph)
{
return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0;
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VE... | mit |
integratedfordevelopers/integrated-puphpet | puppet/modules/epel/README.md | 5511 | # Configure EPEL (Extra Repository for Enterprise Linux)
# Note
This is the last release that will support anything before Puppet 4.
# About
This module basically just mimics the epel-release rpm. The same repos are
enabled/disabled and the GPG key is imported. In the end you will end up with
the EPEL repos configu... | mit |
TaiwanStat/react-leaflet | src/Rectangle.js | 584 | import { rectangle } from 'leaflet';
import boundsType from './types/bounds';
import Path from './Path';
export default class Rectangle extends Path {
static propTypes = {
bounds: boundsType.isRequired,
};
componentWillMount() {
super.componentWillMount();
const { bounds, map, ...props } = this.pro... | mit |
MadManRises/Madgine | shared/bullet3-2.89/examples/ThirdPartyLibs/Gwen/Controls/CheckBox.h | 1720 | /*
GWEN
Copyright (c) 2010 Facepunch Studios
See license in Gwen.h
*/
#pragma once
#ifndef GWEN_CONTROLS_CHECKBOX_H
#define GWEN_CONTROLS_CHECKBOX_H
#include "Gwen/Controls/Base.h"
#include "Gwen/Controls/Button.h"
#include "Gwen/Gwen.h"
#include "Gwen/Skin.h"
#include "Gwen/Controls/Symbol.h"
#include "Gwen/Contr... | mit |
iiet/iiet-git | spec/migrations/normalize_ldap_extern_uids_spec.rb | 2088 | require 'spec_helper'
require Rails.root.join('db', 'post_migrate', '20170921101004_normalize_ldap_extern_uids')
describe NormalizeLdapExternUids, :migration, :sidekiq do
let!(:identities) { table(:identities) }
around do |example|
Timecop.freeze { example.run }
end
before do
stub_const("Gitlab::Data... | mit |
localheinz/symfony | src/Symfony/Bundle/WebProfilerBundle/Csp/ContentSecurityPolicyHandler.php | 8478 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\WebProfilerBundle\Csp;
use Symfony\Component\HttpFoundat... | mit |
jonathanrlouie/unity-vr-livestream | TutorClient/Assets/VoiceChat/Scripts/VoiceChatUtils.cs | 7916 | using System;
using Ionic.Zlib;
using UnityEngine;
namespace VoiceChat
{
public static class VoiceChatUtils
{
static void ToShortArray(this float[] input, short[] output)
{
if (output.Length < input.Length)
{
throw new System.ArgumentException("in: " + i... | mit |
SHMEDIALIMITED/tallest-tower | node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/dd-drop-plugin/dd-drop-plugin-min.js | 394 | /*
YUI 3.8.0pr2 (build 154)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("dd-drop-plugin",function(e,t){var n=function(e){e.node=e.host,n.superclass.constructor.apply(this,arguments)};n.NAME="dd-drop-plugin",n.NS="drop",e.extend(n,e.DD.Drop),e... | mit |
YuheiNakasaka/sharememo | vendor/smarty/smarty/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_extends.php.html | 2140 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs for page smarty_internal_compile... | mit |
asdfzt/CPS450-MiniJava | MiniJavaParserWithAST/gen-src/com/bju/cps450/node/TPlus.java | 738 | /* This file was generated by SableCC (http://www.sablecc.org/). */
package com.bju.cps450.node;
import com.bju.cps450.analysis.*;
@SuppressWarnings("nls")
public final class TPlus extends Token
{
public TPlus()
{
super.setText("+");
}
public TPlus(int line, int pos)
{
super.setT... | mit |
cngondo/bestmix | server/spec/support/devise.rb | 146 | # https://github.com/plataformatec/devise#test-helpers
RSpec.configure do |config|
config.include Devise::TestHelpers, :type => :controller
end
| mit |
agrimm/eol | vendor/gems/ruby-openid-2.0.4/doc/classes/OpenID/SReg/Request.src/M000089.html | 3728 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>parse_extension_args (OpenID::SReg::Request)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-... | mit |
a0ali0taha/pos | vendor/db/migrate/20130701104221_change_order_attributes.rb | 711 | class ChangeOrderAttributes < ActiveRecord::Migration
def up
change_column_default :orders, :front_end_change, nil
rename_column :orders, :front_end_change, :change
remove_column :orders, :refunded
remove_column :orders, :total_is_locked
remove_column :orders, :tax_is_locked
remove_column :ord... | mit |
fmaschler/networkit | networkit/scd.py | 62 | # extension imports
from _NetworKit import PageRankNibble, GCE | mit |
apercas/gfw | app/assets/javascripts/embed_countries.js | 43948 | //= require d3/d3
//= require jquery.qtip.min
//= require simple_statistics
gfw.ui.model.CountriesEmbedOverview = cdb.core.Model.extend({
defaults: {
graph: 'total_loss',
years: true,
class: null
}
});
gfw.ui.view.CountriesEmbedOverview = cdb.core.View.extend({
el: document.body,
events: {
'... | mit |
ahmedvc/umple | Umplificator/UmplifiedProjects/jhotdraw7/src/main/java/org/jhotdraw/samples/mini/LayouterSample.java | 2276 | /*
* @(#)LayouterSample.java
*
* Copyright (c) 1996-2010 by the original authors of JHotDraw and all its
* contributors. All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with the copyright holders. For details
* see accompany... | mit |
dlee0113/java-design-patterns | front-controller/src/main/java/com/iluwatar/front/controller/ArcherCommand.java | 204 | package com.iluwatar.front.controller;
/**
*
* Command for archers.
*
*/
public class ArcherCommand implements Command {
@Override
public void process() {
new ArcherView().display();
}
}
| mit |
splodingsocks/FlowTyped | definitions/npm/fast-memoize_v2.x.x/flow_v0.53.x-v0.103.x/fast-memoize_v2.x.x.js | 374 | declare module 'fast-memoize' {
declare type Cache<K, V> = {
get: (key: K) => V,
set: (key: K, value: V) => void,
has: (key: K) => boolean
}
declare type Options = {
cache?: Cache<*, *>;
serializer?: (...args: any[]) => any;
strategy?: <T>(fn: T, options?: Options) => T;
}
declare ... | mit |
8bitsquid/roots-ualib | assets/js/_ualib_imageCarousel.js | 2702 | angular.module('ualib.imageCarousel', ['angular-carousel'])
.constant('VIEW_IMAGES_URL', '//wwwdev2.lib.ua.edu/erCarousel/api/slides/active')
.factory('imageCarouselFactory', ['$http', 'VIEW_IMAGES_URL', function imageCarouselFactory($http, url){
return {
getData: function(){
... | mit |
yinchunlong/abelkhan-1 | ext/c++/thirdpart/c++/boost/libs/asio/doc/html/boost_asio/reference/basic_socket_streambuf/cancel/overload1.html | 6942 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>basic_socket_streambuf::cancel (1 of 2 overloads)</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" ... | mit |
binariedMe/blogging | node_modules/angular2/es6/prod/src/core/di/exceptions.js | 7494 | import { ListWrapper } from 'angular2/src/facade/collection';
import { stringify, isBlank } from 'angular2/src/facade/lang';
import { BaseException, WrappedException } from 'angular2/src/facade/exceptions';
function findFirstClosedCycle(keys) {
var res = [];
for (var i = 0; i < keys.length; ++i) {
if (L... | mit |
tmcgee/brian-bunker-cmv-widgets | MapNavigationHash/README.md | 993 | Map Navigation Hash (History)
======================
#### Overview
Uses dojo/router to enable zooming to next or previous extent using the browser forward and back buttons. The geographic map center and map zoom level is placed on the url.
#### CMV Configuration
Include the following code in js/config/viewer.js:
```j... | mit |
mariuszwojcik/RabbitMQTools | SendItemsToOutput.ps1 | 286 | function SendItemsToOutput
{
Param
(
[parameter()]
[PSObject[]]$items,
[parameter(Mandatory=$true)]
[string[]]$typeName
)
foreach ($i in $items)
{
$i.PSObject.TypeNames.Insert(0, $typeName)
Write-Output $i
}
} | mit |
Codeception/base | src/Codeception/Command/GenerateSnapshot.php | 2155 | <?php
namespace Codeception\Command;
use Codeception\Configuration;
use Codeception\Lib\Generator\Snapshot as SnapshotGenerator;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\Out... | mit |
josephperrott/material2 | src/material-experimental/mdc-chips/module.ts | 1601 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ENTER} from '@angular/cdk/keycodes';
import {CommonModule} from '@angular/common';
import {NgModule} from '@a... | mit |
raphael-m/Dnn.Platform | DNN Platform/DotNetNuke.Web/InternalServices/GettingStartedController.cs | 6016 | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2014
// by DotNetNuke Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restric... | mit |
workcraft/workcraft | workcraft/WorkcraftCore/res/scripts/core-help.js | 1523 | // Help functions
/*
* Return a string with all helper functions whose name contains the 'substring';
* if the 'searchDescription' is true, then also search the function description");
*/
function getHelp(substring, searchDescription) {
return framework.getJavaScriptHelp(".*(?i:" + substring + ").*", searchDesc... | mit |
unaio/una | upgrade/files/11.0.4-12.0.0.B1/files/plugins_public/fullcalendar/locale/it.js | 612 | FullCalendar.globalLocales.push(function () {
'use strict';
var it = {
code: 'it',
week: {
dow: 1, // Monday is the first day of the week.
doy: 4, // The week that contains Jan 4th is the first week of the year.
},
buttonText: {
prev: 'Prec',
next: 'Succ',
today: 'Oggi... | mit |
christopher-henderson/Go | src/cmd/go/internal/get/vcs_test.go | 12175 | // Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package get
import (
"errors"
"internal/testenv"
"io/ioutil"
"os"
"path"
"path/filepath"
"testing"
"cmd/go/internal/web"
)
// Test that RepoRootForIm... | mit |
igordcsouza/igordcsouza.github.io | _includes/staticman-comments.html | 5559 | {% if site.staticman.repository and site.staticman.branch %}
<div class="staticman-comments">
<div class="page__comments">
<!-- Start static comments -->
<div class="js-comments">
{% if site.data.comments[page.slug] %}
<h3 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_t... | mit |
EmilMitev/Telerik-Academy | Single Page Applications/07. AngularJS Workshop/TheBigCatProject/TheBigCatProject.Server/Areas/HelpPage/App_Start/HelpPageConfig.cs | 6517 | // Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData
// package to your project.
////#define Handle_PageResultOfT
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using ... | mit |
witalikkowal/Store | vendor/willdurand/hateoas/tests/Hateoas/Tests/Expression/ExpressionEvaluatorTest.php | 5029 | <?php
namespace Hateoas\Tests\Expression;
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use Symfony\Component\ExpressionLanguage\Node\Node;
use Symfony\Component\ExpressionLanguage\ParsedExpression;
use Hateoas\Tests\TestCase;
use Hateoas\Expression\ExpressionEvaluator;
use Hateoas\Expression\Expressio... | mit |
jmelgarejo/Clan | wordpress/wp-content/themes/sparkling/inc/libraries/epsilon-framework/sections/class-epsilon-section-pro.php | 2068 | <?php
/**
* Pro customizer section.
*
* @since 1.0.0
* @access public
*/
class Epsilon_Section_Pro extends WP_Customize_Section {
/**
* The type of customize section being rendered.
*
* @since 1.0.0
* @access public
* @var string
*/
public $type = 'epsilon-section-pro';
/**
* Custom pro butt... | mit |
samoatesgames/Ludumdare30 | Unity/Assets/GameAnalytics/Plugins/Framework/Scripts/GA_GenericInfo.cs | 9640 | /// <summary>
/// This class handles user ID, session ID, time stamp, and sends a user message, optionally including system specs, when the game starts
/// </summary>
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System;
using System.Net;
#i... | mit |