repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
sanjoydesk/cygniteframework | vendor/cygnite/framework/src/Cygnite/Common/SessionManager/Native/Session.php | 6672 | <?php
namespace Cygnite\Common\SessionManager\Native;
use Cygnite\Helpers\Config;
use Cygnite\Helpers\String;
use Cygnite\Common\SessionManager\Manager;
use Cygnite\Common\SessionManager\SessionInterface;
use Cygnite\Common\SessionManager\Session as SessionManager;
use Cygnite\Common\SessionManager\Exceptions\SessionN... | mit |
robertkrimen/otto | builtin_object.go | 7555 | package otto
import (
"fmt"
)
// Object
func builtinObject(call FunctionCall) Value {
value := call.Argument(0)
switch value.kind {
case valueUndefined, valueNull:
return toValue_object(call.runtime.newObject())
}
return toValue_object(call.runtime.toObject(value))
}
func builtinNewObject(self *_object, ar... | mit |
dibley1973/StoredProcedureFramework | Tests/Dibware.StoredProcedureFramework.IntegrationTests/StoredProcedures/CountCharsInReturnParameterStoredProcedure.cs | 739 | using Dibware.StoredProcedureFramework.Base;
using Dibware.StoredProcedureFramework.StoredProcedureAttributes;
using System.Data;
namespace Dibware.StoredProcedureFramework.IntegrationTests.StoredProcedures
{
internal class CountCharsInReturnParameterStoredProcedure
: NoReturnTypeStoredProcedureBase<Count... | mit |
michaelchu/kaleidoscope | kaleidoscope/__init__.py | 339 | from kaleidoscope import brokers, sizers, datafeeds
from kaleidoscope.backtest import Backtest
from kaleidoscope.strategy import Strategy
from kaleidoscope.options.option_strategies import OptionStrategies
from kaleidoscope.options.option_query import OptionQuery
from .globals import Period, OptionType, OrderAction, O... | mit |
cawel/vinifera | db/migrate/20090819024702_create_regions.rb | 319 | class CreateRegions < ActiveRecord::Migration
def self.up
create_table "regions", :force => true do |t|
t.column :name, :string, :limit => 50
t.timestamps
end
add_column :wines, :region_id, :integer
end
def self.down
drop_table :regions
remove_column :wines, :region_id
end
end
| mit |
MightyPixel/MatchUp | matchup-client/test/karma.conf.js | 2084 | // Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-11-07 using
// generator-karma 0.8.3
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: tr... | mit |
Mati365/pyWinUSB | pywinusb/decorators.py | 589 | # Dla fluent API
def chain_method(func):
def func_wrapper(self, *args, **kwargs):
func(self, *args, **kwargs)
return self
return func_wrapper
# Szybkie emitowanie zdarzeń
def event_method(status):
def dec(func):
def func_wrapper(self, *args, **kwargs):
self.event_handler... | mit |
abelcarreras/DynaPhoPy | unittest/MgO_test.py | 1551 | #!/usr/bin/env python
import numpy as np
import dynaphopy.interface.iofile as io
import dynaphopy
from dynaphopy.interface.phonopy_link import get_force_constants_from_file
import unittest
class TestDynaphopy(unittest.TestCase):
def setUp(self):
structure = io.read_from_file_structure_poscar('MgO_data/P... | mit |
maxinfet/FlaUI | src/FlaUI.UIA2/Patterns/ItemContainerPattern.cs | 1351 | #if !NET35
using FlaUI.Core;
using FlaUI.Core.AutomationElements.Infrastructure;
using FlaUI.Core.Identifiers;
using FlaUI.Core.Patterns;
using FlaUI.Core.Patterns.Infrastructure;
using FlaUI.UIA2.Converters;
using FlaUI.UIA2.Identifiers;
using UIA = System.Windows.Automation;
namespace FlaUI.UIA2.Patterns
{
publ... | mit |
Luatix/OpenEx | openex-platform/openex-api/src/Constant/ExerciseConstantClass.php | 4082 | <?php
namespace App\Constant;
class ExerciseConstantClass
{
const CST_EXERCISE = 'exercise';
const CST_AUDIENCE = 'audience';
const CST_OBJECTIVE = 'objective';
const CST_SCENARIOS = 'scenarios';
const CST_INJECTS = 'injects';
const CST_INCIDENTS = 'incidents';
// Constantes Import/Export... | mit |
JueTech/Jue-php-sdk | example/test_cloud.php | 739 | <?php
/**
* @package /example/test_node
* @author xiaocao
* @link http://homeway.me/
* @copyright Copyright(c) 2015
* @version 15.07.16
**/
require_once(__DIR__."/../vendor/autoload.php");
use Jue\Server;
use Jue\Auth\Token;
/**
*
*/
$app_key = "homeway";
$app_secret = "homeway";
$server = new... | mit |
smptracing/SMP | application/views/front/Pmi/js/jsMetaNoPip.php | 76 | <script src="<?php echo base_url(); ?>assets/js/PMI/MetaNoPip.js"></script>
| mit |
dwhelan/atdd_training | ruby/features/google/support/matchers/page_object_matcher.rb | 1031 | require_relative 'page_object'
module RSpec
module Matchers
module PageObjectMatcher
include PageObject
def failure_message
if element?
"expected '#{page}' '#{expected}' #{tag_description} to have a '<#{tag_name}>' tag but it has a '<#{element.tag_name}>' tag"
else
... | mit |
guoxf/Ants | Util/Page.cs | 2321 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using Newtonsoft.Json;
using FrameWork.DBHelper;
namespace FrameWork.Util
{
public class Page
{
/// <summary>
/// 分页
/// </summary>
... | mit |
cuckata23/wurfl-data | data/samsung_nexus_s_ver1_suban41_subu3k9.php | 228 | <?php
return array (
'id' => 'samsung_nexus_s_ver1_suban41_subu3k9',
'fallback' => 'samsung_nexus_s_ver1_suban41',
'capabilities' =>
array (
'mobile_browser' => 'UCWeb',
'mobile_browser_version' => '9',
),
);
| mit |
devingoodsell/ComingSoon | config/env/production.js | 210 | /* jshint node:true */
"use strict";
module.exports = {
db: process.env.MONGOLAB_URI,
logLevel: "error",
mailChimp: {
key: process.env.CHIMP_KEY,
userList: process.env.CHIMP_USERLIST
}
}; | mit |
ferggren/ferg-v4-frontend | src/components/ui/container/index.js | 65 | 'use strict';
export { default as default } from './container';
| mit |
zBMNForks/orats | lib/orats/argv_adjust.rb | 1317 | require 'orats/ui'
module Orats
# adjust ARGV by adding args from the .oratsrc file if necessary
class ARGVAdjust
include Orats::UI
def initialize(argv = ARGV)
@argv = argv
@default_rc_file = File.expand_path('~/.oratsrc')
@rc_path = ''
end
def init
rc_path @argv.first
... | mit |
dhedlund/importu | lib/importu/sources/ruby.rb | 423 | require "importu/sources"
# Supports a plain array of hashes as source data, or an enumerable that
# produces objects that respond to #to_hash. Hash keys must be strings.
class Importu::Sources::Ruby
def initialize(data, **)
@data = data
end
def rows
Enumerator.new do |yielder|
@data.each {|row| ... | mit |
sexyboys/FileDownloader | src/FileD/UserBundle/DependencyInjection/Configuration.php | 876 | <?php
namespace FileD\UserBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.... | mit |
cdnjs/cdnjs | ajax/libs/chartjs-chart-box-and-violin-plot/1.2.0/Chart.BoxPlot.js | 30976 | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('chart.js')) :
typeof define === 'function' && define.amd ? define(['exports', 'chart.js'], factory) :
factory(global.ChartBoxPlot = {},global.Chart);
}(typeof self !== 'undefined' ? self : this, ... | mit |
edloidas/roll-parser | test/mapper/mapper.mapToRoll.spec.js | 1299 | const { parseSimple, parseClassic } = require( '../../src/parser' );
const { mapToRoll } = require( '../../src/mapper' );
describe( 'Map parser result to Roll:', () => {
test( 'Should map falsy values to `null`', () => {
expect( mapToRoll( null )).toBeNull();
});
test( 'Should set dice for single value roll... | mit |
segafan/wme1_jankavan_tlc_edition-repo | src/ProjectMan/ChildFrm.cpp | 5751 | // ChildFrm.cpp : implementation of the CChildFrame class
//
#include "stdafx.h"
#include "ProjectMan.h"
#include "ProjectView.h"
#include "ViewHint.h"
#include "ViewLog.h"
#include "ViewProps.h"
#include "ViewTree.h"
#include "ChildFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static... | mit |
InversePalindrome/Prime-Numbers | src/CalculatorPanel.cpp | 2545 | /*
Copyright (c) 2017 InversePalindrome
InPal - MainPanel.cpp
InversePalindrome.com
*/
#include "CalculatorPanel.hpp"
#include <wx/sizer.h>
#include <boost/format.hpp>
#include <boost/algorithm/string/trim.hpp>
CalculatorPanel::CalculatorPanel(wxWindow* parent, MathDataDefault* mathData) :
wxP... | mit |
josh/dom-prof | index.js | 3832 | (function() {
var Promise, aggregateCallLog, childProcess, cssExplain, execFile, explainCssSelectors, phantomjs,
__slice = [].slice;
cssExplain = require('css-explain').cssExplain;
Promise = require('es6-promise').Promise;
phantomjs = require('phantomjs');
childProcess = require('child_process');
e... | mit |
aceslick911/mobnation | V1/mobnation/mobnation/App_Start/WebApiConfig.cs | 1335 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace mobnation
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
... | mit |
jsahdeva/skya | app/wp-includes/ms-files.php | 29 | Multisite support not enabled | mit |
kneufeld/django-dynamicstatics | dynamicstatics/templatetags/__init__.py | 534 | from ipware.ip import get_ip
def __lookup(request, url_map, default_url ):
"""
based on the current request, pick the appropriate static url
"""
remote_ip = get_ip(request)
for ips, url in url_map.iteritems():
if hasattr(ips, '__iter__'):
if any( map( lambda ip: remote_ip in ip... | mit |
aullman/opentok-meet | src/js/whiteboard/app.js | 931 | /* eslint-disable no-multi-assign */
window.$ = window.jQuery = require('jquery');
const angular = require('angular');
require('opentok-angular');
require('opentok-whiteboard');
require('opentok-whiteboard/opentok-whiteboard.css');
angular.module('opentok-meet', ['opentok', 'opentok-whiteboard'])
.controller('Whit... | mit |
devonChurch/blueberry-danish | src/js/triangle.js | 3295 | const $ = require('jquery');
const Triangle = class {
constructor(Pin, Shape) {
this.Pin = Pin;
this.Shape = Shape;
this.size = 84;
this.x = this.Pin.center - (this.size / 2);
this.y = this.Pin.center + 130;
this.ratio = this.calculateRatio();
this.height = this.size / 2 * this.ratio + this.y;
}
... | mit |
Zarel/Pokemon-Showdown | server/chat-plugins/mafia.ts | 161949 | import {Utils, FS} from '../../lib';
interface MafiaData {
// keys for all of these are IDs
alignments: {[k: string]: MafiaDataAlignment};
roles: {[k: string]: MafiaDataRole};
themes: {[k: string]: MafiaDataTheme};
IDEAs: {[k: string]: MafiaDataIDEA};
terms: {[k: string]: MafiaDataTerm};
aliases: {[k: string]: ... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/rome/0.11.2/rome.min.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:e95cffe2d80d9d889c2129c41bd91a1e5ceff7e804f9c2946b363a81216f0aa8
size 58049
| mit |
compeoree/QtSDR | QtLogger/data.cpp | 11594 | /**
* \file data.cpp
* \brief Code files for the Data functions as part of the QtLogger program
* \author David R. Larsen, KV0S
* \version 1.0.2
* \date August 21, 2011
*/
/* Copyright (C) 2011 - David R. Larsen, KV0S
* This program is free software; you can redistribute it and/or
* modify it under the terms of the ... | mit |
uchicago-library/django-shibboleth-remoteuser | shibboleth/tests/test_shib.py | 14484 | # -*- coding: utf-8 -*-
import os
from django.conf import settings
from django.contrib import auth
from django.contrib.auth.middleware import AuthenticationMiddleware
from django.contrib.auth.middleware import RemoteUserMiddleware
from django.contrib.auth.models import User, Group
from django.contrib.sessions.middlewa... | mit |
saludnqn/consultorio | DalSic/generated/SysRelProfesionalEfectorController.cs | 4216 | using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;... | mit |
Siliconrob/MultiGeocoder | tests/GeoTests/Properties/AssemblyInfo.cs | 1349 | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GeoTests")]
[assembly: AssemblyDescriptio... | mit |
bullhorn/career-portal | src/typings.d.ts | 316 | /* SystemJS module definition */
declare var module: NodeModule;
interface NodeModule {
id: string;
}
export interface ICategoryListResponse {
idCount: number,
publishedCategory: { id: number, name: string };
}
interface IAddressListResponse {
idCount: number,
address: { city: string, state: string };
}
| mit |
superusercode/RTC3 | Real-Time Corruptor/BizHawk_RTC/libgambatte/src/sound/channel3.cpp | 6103 | /***************************************************************************
* Copyright (C) 2007 by Sindre Aamås *
* aamas@stud.ntnu.no *
* *
* This pr... | mit |
schahriar/blanc | superlog.js | 6791 | var eventEmmiter = require('events').EventEmitter;
var util = require('util');
var StringDecoder = require('string_decoder').StringDecoder;
var _ = require('lodash')
var herb = require('herb');
var culinary = require('culinary');
var screen = culinary.size();
var fs = require('fs');
var path = require('path');
var n... | mit |
rsilveira79/RaspiFlow | face_land.py | 1078 | from imutils.video import VideoStream
from imutils import face_utils
import imutils
import time
import dlib
import cv2
import argparse
# Initialize face detector and create face landmark predictor
print("[INFO] loading facial landmark predictor ...")
detector = dlib.get_frontal_face_detector()
predictor = dlib.shape_p... | mit |
Royal-Society-of-New-Zealand/NZ-ORCID-Hub | orcid_api_v3/models/activities_summary_v30_rc2.py | 14235 | # coding: utf-8
"""
ORCID Member
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: Latest
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import si... | mit |
stevebauman/maintenance | resources/views/emails/auth/password.blade.php | 1319 | @extends('orchestra/foundation::emails.layouts.action')
@set_meta('title', 'Password Reset')
@section('content')
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block aligncenter">
<h2>Password Reset</h2>
</td>
</tr>
<tr>... | mit |
aaroncox1234/NavMesh2 | Assets/Scripts/Rx/EditablePolygon2.cs | 3937 | using UnityEngine;
using System.Collections;
public class EditablePolygon2 : MonoBehaviour
{
// todo: not public
public Polygon2 polygon = new Polygon2();
protected int hoverVertexIndex = -1;
protected int selectedVertexIndex = -1;
protected const float sqVertexSelectionRange = 16.0f;
protected Color vert... | mit |
jamslatt/node_barcode | node_modules/realistic-structured-clone/test/test.js | 5814 | 'use strict';
var assert = require('assert');
var structuredClone = require('..');
function assertSameEntries(xcontainer, ycontainer) {
var x = xcontainer.entries();
var y = ycontainer.entries();
var xentry = x.next();
var yentry = y.next();
while (xentry.done === false) {
assert.deepEqual... | mit |
aitarget/aitarget-components | src/lib/components/targeting/targeting-form/geo/geo-dropdown/geo-dropdown.component.ts | 2225 | import {
ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output
} from '@angular/core';
import { GeoItem } from '../geo-item.interface';
import { Subject } from 'rxjs';
import { filter, mapTo, merge, takeUntil, tap } from 'rxjs/operators';
import { arrowDown$,... | mit |
appsngen/generator-appsngen-web-widget | app/templates/tests/specs/greeting.spec.js | 1698 | describe('Greeting module', function () {
var widget = window.widget;
it('sets correct number of greetings', function () {
var uiMock = new widget.GreetingUI();
var prefsMock = {
greeting: 'Hello, World!',
numberOfGreetings: '3',
changeColor: 'true',
... | mit |
jarib/rps | spec/rps/linux_process_spec.rb | 1718 | require "spec_helper"
module RPS
describe LinuxProcess do
it "creates a process for each process in /proc" do
Dir.stub!(:[]).with("/proc/*").and_return(["/proc/1", "/proc/2", "/proc/3", "/proc/uptime"])
procs = LinuxProcess.all
procs.should be_instance_of(Array)
procs.size.should == 3
... | mit |
conundrumer/musicpsych | test/spec/components/BipolarSlider.js | 388 | 'use strict';
describe('BipolarSlider', function () {
var React = require('react/addons');
var BipolarSlider, component;
beforeEach(function () {
BipolarSlider = require('components/BipolarSlider.js');
component = React.createElement(BipolarSlider);
});
it('should create a new instance of BipolarSl... | mit |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/aio/operations/_vpn_connections_operations.py | 22180 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit |
Morwenn/cpp-sort | tests/adapters/every_adapter_internal_compare.cpp | 4921 | /*
* Copyright (c) 2017-2022 Morwenn
* SPDX-License-Identifier: MIT
*/
#include <algorithm>
#include <functional>
#include <iterator>
#include <vector>
#include <catch2/catch_test_macros.hpp>
#include <cpp-sort/adapters.h>
#include <cpp-sort/fixed_sorters.h>
#include <cpp-sort/sorters/merge_sorter.h>
#include <cpp-s... | mit |
Widdershin/katana | katas/odd_indexed_integers.rb | 239 | # Tags: ruby, maths, array, each_with_index
# Write a method to return the elements at odd indices i.e. 1, 3, 5, 7, etc. in an array
def odd_indexed_integers(array)
end
Assert.equal([4,8,12], odd_indexed_integers([2, 4, 6, 8, 10, 12]))
| mit |
wieslawsoltes/Draw2D | src/Draw2D/ViewModels/Tools/PathTool.cs | 16770 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Core2D.UI.Zoom.Input;
using Draw2D.ViewModels.Containers;
using Draw2D.ViewModels.Shapes;
using Draw2D.ViewModels.Style;
namespace Draw2D.ViewModels.Tools
{
internal class FigureContaine... | mit |
PHCNetworks/phc-scriptcdn | app/helpers/phcscriptcdn/script/listings_helper.rb | 62 | module Phcscriptcdn
module Script::ListingsHelper
end
end
| mit |
RadoslavGYordanov/FMI-C- | Project2/main.cpp | 545 | #include <iostream>
#include "date.h"
int main()
{
//Use this when you want an array, but don't have a default constructor
/*Date* arr[5]={NULL};
for(int i=0;i<5;i++)
{
int d,m,y;
std::cin>>d>>m>>y;
arr[i]=new Date(d,m,y);
arr[i]->print();
}
for... | mit |
morontt/projecteuler-stat | src/Controller/Admin/SolutionController.php | 5022 | <?php
/**
* Created by PhpStorm.
* User: morontt
* Date: 05.06.16
* Time: 11:34
*/
namespace MttProjecteuler\Controller\Admin;
use Carbon\Carbon;
use MttProjecteuler\Controller\BaseController;
use MttProjecteuler\Model\Solution;
use MttProjecteuler\Utils\Pygment;
use Silex\Application;
use Symfony\Component\Http... | mit |
AkivaGreen/umasstransit.rodeo | app/assets/javascripts/scoreboard.js | 883 | $(document).ready(function(){
$('.scoreboard-sorting').on('click', 'button.scoreboard-order', function(){
$('img.scoreboard-sort-loading').removeClass('hidden');
$(this).removeClass('btn-secondary').addClass('btn-primary');
$(this).siblings('button').removeClass('btn-primary').addClass('btn-secondary');
... | mit |
wanelo/pause | lib/pause/configuration.rb | 514 | module Pause
class Configuration
attr_writer :redis_host, :redis_port, :redis_db, :resolution, :history, :sharded
def configure
yield self
self
end
def redis_host
@redis_host || '127.0.0.1'
end
def redis_port
(@redis_port || 6379).to_i
end
def redis_db
... | mit |
tonyxj/100daysofframer | 39threeDHover.framer/framer/framer.generated.js | 2881 | // This is autogenerated by Framer
if (!window.Framer && window._bridge) {window._bridge('runtime.error', {message:'[framer.js] Framer library missing or corrupt. Select File → Update Framer Library.'})}
window.__imported__ = window.__imported__ || {};
window.__imported__["2001MovieAppleTV@1x/layers.json.js"] = [
{
... | mit |
outdoorsy/cache | cache_test.go | 4742 | package cache
import (
"errors"
"sync"
"testing"
"time"
"github.com/tylerb/is"
)
func TestCacheSetGet(t *testing.T) {
is := is.New(t)
key := "key"
val := "val"
encodedVal := `"val"`
mock := NewMock(false)
c, err := NewClient(128, mock)
is.NotErr(err)
defer c.Close()
// Test count functionality
coun... | mit |
goodwinxp/Yorozuya | YorozuyaGSLib/source/RACE_BOSS_MSG__CMsgListDetail.cpp | 18627 | #include <RACE_BOSS_MSG__CMsgListDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace RACE_BOSS_MSG
{
namespace Detail
{
Info::RACE_BOSS_MSG__CMsgListAddEmpty2_ptr RACE_BOSS_MSG__CMsgListAddEmpty2_next(nullptr);
Info::RACE_BOSS_MSG__CMsgListAddEmpty2_... | mit |
cent89/segresta | Modules/Event/Database/Migrations/2018_03_22_223142_create_event_spec_values_table.php | 816 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateEventSpecValuesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('event_spec_values', function(Blueprint $table)
{
$table->increments... | mit |
rosylilly/mount_doc | lib/mount_doc.rb | 318 | require 'rails'
module MountDoc
autoload :VERSION, "mount_doc/version"
autoload :Config, "mount_doc/config"
autoload :Document, "mount_doc/document"
def self.config(&block)
yield(MountDoc::Config)
end
end
require 'mount_doc/string_patch'
require 'mount_doc/rails'
require 'mount_doc/rails/generators'
| mit |
xpharry/Leetcode | leetcode/cpp/138.cpp | 1137 | /**
* Definition for singly-linked list with a random pointer.
* struct RandomListNode {
* int label;
* RandomListNode *next, *random;
* RandomListNode(int x) : label(x), next(NULL), random(NULL) {}
* };
*/
class Solution {
public:
RandomListNode *copyRandomList(RandomListNode *head) {
// cr... | mit |
himanshu8426/himanshu8426.github.io | src/Components/Project.js | 232 | import React from "react";
import { Container } from "semantic-ui-react";
function Project() {
return (
<Container>
<h1 style={{ marginTop: "2rem" }}>Coming Soon...</h1>
</Container>
);
}
export default Project;
| mit |
maxruby/OpenCV.jl | deps/usr/include/opencv2/imgproc.hpp | 223198 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | mit |
emilti/sportsbook | Source/Web/SportsBook.Web/Areas/Administration/Controllers/AdminFacilitiesController.cs | 3448 | namespace SportsBook.Web.Areas.Administration.Controllers
{
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using Data;
using Data.Models;
using Infrastr... | mit |
akkirilov/SoftUniProject | 04_DB Frameworks_Hibernate+Spring Data/99_Exams/Photography2/src/main/java/app/domain/dtos/workshops/ParticipantsWrapperXmlDto.java | 930 | package app.domain.dtos.workshops;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name... | mit |
prack/php-rb | lib/prb/i/stringlike.php | 75 | <?php
// TODO: Document!
interface Prb_I_Stringlike
{
function toStr();
} | mit |
srpanwar/JSONParser | ConsoleApplication2/Program.cs | 1122 | using JsonParser;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
string data = File.Read... | mit |
arjunshukla/CMPE-275_Team-07_Term-Project_Mini-Hotel-Manager | NodeJS_webapp/client/js/generateReport.js | 3352 | google.load('visualization', '1.0', {
'packages': ['corechart']
});
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() ... | mit |
hackzhou/AutoPlatform | src/main/webapp/plugins/bower_components/Magnific-Popup-master/src/js/ajax.js | 1569 | var AJAX_NS = 'ajax',
_ajaxCur,
_removeAjaxCursor = function() {
if(_ajaxCur) {
$(document.body).removeClass(_ajaxCur);
}
},
_destroyAjaxRequest = function() {
_removeAjaxCursor();
if(mfp.req) {
mfp.req.abort();
}
};
$.magnificPopup.registerModule(AJAX_NS, {
options: {
setting... | mit |
simonjaeger/dynamic-dialog-bot-sample | DynamicDialogApi/DynamicDialogApi/Models/Data/DbLanguage.cs | 272 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DynamicDialogApi.Models.Data
{
public class DbLanguage
{
public string Id { get; set; }
public string Description { get; set; }
}
}
| mit |
CivicCommons/CivicCommons | db/migrate/20140808180254_remove_required_email.rb | 129 | class RemoveRequiredEmail < ActiveRecord::Migration
def change
change_column :people, :email, :string, null: true
end
end
| mit |
cubeme/ssharp | Tests/Normalization/LiftedExpressions/Lifted/line break preservation.cs | 2372 | // The MIT License (MIT)
//
// Copyright (c) 2014-2016, Institute for Software & Systems Engineering
//
// 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 wi... | mit |
OpenCollective/opencollective-api | server/lib/sanitize-html.ts | 6473 | import config from 'config';
import { truncate, uniq } from 'lodash';
import prependHttp from 'prepend-http';
import LibSanitize from 'sanitize-html';
import { isValidUploadedImage } from './images';
interface AllowedContentType {
/** Allows titles supported by RichTextEditor (`h3` only) */
titles?: boolean;
/... | mit |
Narwhalprime/simcity201-team-project | src/simcity/test/mock/EventLog.java | 2190 | package simcity.test.mock;
import java.util.LinkedList;
/**
* This class should be used by Mock agents to log significant events. For
* example, you might write a log entry every time a Mock receives a message.
* The class exposes some helper methods to allow you to easily parse and search
* these log files.
*
... | mit |
olojiang/AngularJsDemo | vendor/angular-i18n/angular-locale_ug-cn.js | 4763 | 'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function ... | mit |
bemineni/eldam | test/remove/start.py | 1974 |
import os
import sys
import yaml
import traceback
import transaction
from eldam.elasticdatamanager import ElasticDataManager
if __name__ == "__main__":
test_name = "Remove"
configpath = os.path.abspath('./edm.yml') if os.path.exists('./edm.yml') else sys.exit(1)
config = None
with open(configpath, '... | mit |
habermann24/number_to_text | lib/number_to_text.rb | 334 | require 'number_to_text/version'
require 'active_support'
require 'active_support/core_ext'
module NumberToText
extend ActiveSupport::Autoload
eager_autoload do
autoload :NumberToTextConverter
end
module_function
def number_to_text(number, options = {})
NumberToTextConverter.convert(number, optio... | mit |
zhhz/red | lib/red/executable.rb | 4162 | module Red # :nodoc:
def build_red_plugin_for_rails(display_message = true)
@files ||= ''
self.make_plugin_directory('vendor/plugins/red', true)
self.create_plugin_file(:open, 'vendor/plugins/red/init.rb', "require 'rubygems'\nrequire 'red'\n\nRed.rails\n")
self.make_plugin_directory('public/javascrip... | mit |
rasyidmujahid/tan | web/app/themes/showshop/admin/layouts/skin_10.php | 6497 | <?php
if( !isset($_GET['activated'])) {
header("Content-type: text/css; charset: UTF-8");
};
$skin_styles = "";
$skin_styles .= '
html, body {
font-size:16px;
}
body {
/* BODY FONT STYLE - GOOGLE FONT */
font-family:"Tienne", Helvetica, Arial, sans-serif !important;
font-weight:400;
color:#333333;
}
.button, .onsa... | mit |
adessoAG/JenkinsHue | main/src/test/java/de/adesso/jenkinshue/service/TeamServiceImplTest.java | 2389 | package de.adesso.jenkinshue.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import de.adesso.jenkinshue.common.dto.team.TeamRenameDTO;
import de.adesso.jenkinshue.common.dto.team.TeamUpdateDTO;
import de.adesso.jenkinshue.exception.EmptyInputException;
import de.adesso.jenk... | mit |
Martinspire/UBHI | frontend/joey/jqueryChart/gulpfile.js | 3604 | var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
util = require('gulp-util'),
jshint = require('gulp-jshint'),
size = require('gulp-size'),
connect = require('gulp-connect'),
replace = require('gulp-replace'),
inquirer = require('inquirer'),
semver = require('semver... | mit |
rkastilani/PowerOutagePredictor | Docs/_build/searchindex.js | 393 | Search.setIndex({docnames:["index"],envversion:51,filenames:["index.rst"],objects:{"":{Linear:[0,0,0,"-"],SVM:[0,0,0,"-"],Tree:[0,0,0,"-"]}},objnames:{"0":["py","module","Python module"]},objtypes:{"0":"py:module"},terms:{index:0,modul:0,page:0,search:0},titles:["Welcome to PowerOutagePredictor’s documentation!"]... | mit |
0xd4d/iced | src/rust/iced-x86/src/formatter/fast/enums.rs | 1363 | // SPDX-License-Identifier: MIT
// Copyright wtfsckgh@gmail.com
// Copyright iced contributors
// GENERATOR-BEGIN: FastFmtFlags
// ⚠️This was generated by GENERATOR!🦹♂️
pub(crate) struct FastFmtFlags;
#[allow(dead_code)]
impl FastFmtFlags {
pub(crate) const NONE: u32 = 0x0000_0000;
pub(crate) const HAS_VPREFIX: u3... | mit |
B2MSolutions/node-imei | index.js | 589 | var checkdigit = require('checkdigit');
var imei = {};
imei.isValid = function(i) {
return i.length === 15 && checkdigit.mod10.isValid(i);
};
imei.next = function(prev, done) {
if(!imei.isValid(prev)) {
return done('invalid imei');
}
var serialNumber = prev.substr(8, 6);
if(serialNumber === '999999') ... | mit |
glhrmfrts/TokuNoSora | core/src/com/habboi/tns/states/MenuState.java | 4635 | package com.habboi.tns.states;
import aurelienribon.tweenengine.Tween;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Matrix4;
im... | mit |
tdmitriy/RWR | src/main/java/com/rwr/entity/ims/ImsType.java | 742 | package com.rwr.entity.ims;
import com.rwr.entity.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "IMS_TYPE")
public class ImsType extends BaseEntity {
@Column(name = "type")
private String typeName;
public ImsType() {
... | mit |
raysuelzer/mushroom-observer | app/classes/query/external_link_all.rb | 127 | class Query::ExternalLinkAll < Query::ExternalLinkBase
def initialize_flavor
add_sort_order_to_title
super
end
end
| mit |
mkaul/ccm-components | cryptoblock/resources/tests.js | 1004 |
/**
* @overview unit tests of ccm component for cryptoblock
* @author Manfred Kaul <manfred.kaul@h-brs.de> 2017
* @license The MIT License (MIT)
*/
ccm.files[ 'tests.js' ] = {
setup: ( suite, callback ) => {
suite.ccm.component( '../cryptoblock/ccm.cryptoblock.js', component => {
suite.component = com... | mit |
musicdsp/audio-algo-chunkware | audio/algo/chunkware/GateRms.hpp | 1941 | /**
* @author Bojan MARKOVIC
* @author Edouard DUPIN
* @copyright 2006, ChunkWare Music Software, OPEN-SOURCE
* @license BSD-1 (see license file)
*
* 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 ... | mit |
dachengxi/spring1.1.1_source | src/org/springframework/jms/UncategorizedJmsException.java | 1124 | /*
* Copyright 2002-2004 the original author or authors.
*
* 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 ap... | mit |
rhomobile/RMS-Testing | auto/feature_def/auto_common_spec/app/helpers/specHelpers.js | 4982 |
/* Basic test methods */
function isAndroidPlatform() {
return "ANDROID" == Rho.System.platform;
}
function isApplePlatform() {
return "APPLE" == Rho.System.platform;
}
function isWindowsMobilePlatform() {
return "WINDOWS" == Rho.System.platform;
}
function isWindowsDesktopPlatform() {
return "WIND... | mit |
eropple/Exor | Exor.Core.Tests.ContentB/Properties/AssemblyInfo.cs | 1460 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit |
hexparrot/thudgame | gui.py | 27466 | """A python3 implementation of the Thud! boardgame
"""
__author__ = "William Dizon"
__license__ = "MIT License"
__version__ = "1.8.0"
__email__ = "wdchromium@gmail.com"
from thudclasses import *
from thud import *
import copy
import tkinter
import tkinter.filedialog
import math
import re
import itertools
import rand... | mit |
outr/arangodb-scala | api/src/main/scala/com/outr/arango/api/APIReplicationLoggerFollow.scala | 801 | package com.outr.arango.api
import com.outr.arango.api.model._
import io.youi.client.HttpClient
import io.youi.http.HttpMethod
import io.youi.net._
import io.circe.Json
import scala.concurrent.{ExecutionContext, Future}
object APIReplicationLoggerFollow {
def get(client: HttpClient, from: Option[Double] = No... | mit |
brandondahler/Data.HashFunction | src/OpenSource.Data.HashFunction.Test/SpookyHash/SpookyHashV2_Implementation_Tests.cs | 12902 | using Moq;
using MoreLinq;
using System;
using System.Collections.Generic;
using OpenSource.Data.HashFunction.SpookyHash;
using OpenSource.Data.HashFunction.Test._Utilities;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace OpenSource.Data.HashFunction.Test.Sp... | mit |
munkey01/DukeJavaStructuredData | src/test/Week2/testGladLibs.java | 262 | package Week2;
import src.java.Week2.GladLib;
/**
* Created by jgrant on 1/27/2017.
*/
public class testGladLibs {
public static void main(String[] args) {
GladLib glad = new GladLib();
System.out.println(glad.createStory());
}
}
| mit |
davidedantonio/mantis | public/dashboard/controllers/ModalDeleteDashboardController.js | 475 | app.controller('ModalDeleteDashboardController', function ($scope, $modalInstance, $http, $location, params) {
$scope.dashboardId = params.id;
$scope.deleteDashboard = function () {
$http.delete('/dashboards/delete/'+$scope.dashboardId)
.success(function(data, status, headers, config) {
if (statu... | mit |
joek/picoborgrev | picoborgrev_suite_test.go | 206 | package picoborgrev_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestPicoborgrev(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Picoborgrev Suite")
}
| mit |