repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
richtermark/SMEAGOnline | src/Biz/CloudData/Dao/CloudDataDao.php | 145 | <?php
namespace Biz\CloudData\Dao;
use Codeages\Biz\Framework\Dao\GeneralDaoInterface;
interface CloudDataDao extends GeneralDaoInterface
{
}
| mit |
davidchristie/react-vision | src/components/VideoStream/VideoStream.test.js | 1312 | import { shallow, mount } from 'enzyme'
import React from 'react'
import VideoStream from './VideoStream'
it('mounts without stream', () => {
expect(mount(<VideoStream />)).toMatchSnapshot()
})
it('mounts with stream', () => {
const props = {
stream: {}
}
expect(mount(<VideoStream {...props} />)).toMatch... | mit |
ybzhou/JointAE | AE.py | 5239 | import theano
import theano.tensor as T
import numpy as np
from AELayer import AELayer, Gaussian_AELayer, Bernoulli_AELayer, \
SaltPepper_AELayer, Contractive_AELayer
class BasicAE(object):
def __init__(self, en_input, de_input, n_in, n_hid, init, act_func,
... | mit |
danliris/bateeq-module | src/managers/master/unit-manager.js | 9504 | 'use strict'
var ObjectId = require("mongodb").ObjectId;
require("mongodb-toolkit");
var BateeqModels = require('bateeq-models');
var map = BateeqModels.map;
var Unit = BateeqModels.master.Unit;
var BaseManager = require('module-toolkit').BaseManager;
var DivisionManager = require('./division-manager');
module.exp... | mit |
ratellohq/ratello-landing | cache/compiled/files/ef6bcfcd7ab29bb2429e3b002e2feb7d.yaml.php | 60281 | <?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Users/emil/Documents/code/ratello-landing/user/plugins/admin/languages/ru.yaml',
'modified' => 1492456033,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'Это бета-релиз! Вы используете это расшир... | mit |
meziantou/Meziantou.Framework | tests/Meziantou.Framework.Tests/TaskExtensionsTests.cs | 1096 | using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Xunit;
namespace Meziantou.Framework.Tests
{
public sealed class TaskExtensionsTests
{
[Fact]
public void ForgetTest_SuccessfullyCompleted()
{
var task = Task.FromResult(0);
... | mit |
jonpearse/jonpearse.net | app/controllers/admin/work/techs_controller.rb | 122 | class Admin::Work::TechsController < Admin::CmsController
def initialize
super
@model_class = Tech
end
end
| mit |
Bodaclick/EVTAE | src/EVT/DIYBundle/Model/Mapper/ShowroomMapper.php | 726 | <?php
namespace EVT\DIYBundle\Model\Mapper;
use EVT\DIYBundle\Entity\Showroom;
/**
* Class ShowroomMapper
*
* @author Marco Ferrari <marco.ferrari@bodaclick.com>
* @copyright 2014 Bodaclick
*/
class ShowroomMapper
{
/**
* @param $wsModel
*
* @return Showroom
*/
public function map... | mit |
WielderOfMjoelnir/pypeira | pypeira/io/common.py | 5526 | import os
from pypeira.io.reader import _read_file
from pypeira.core.hdu import HDU
def read(path, ftype='fits', dtype=None, walk=True, headers_only=False, image_only=False, *args, **kwargs):
"""
Proper description will be written when implementation is more complete.
Reads files from path.
Paramet... | mit |
yunomichawan/AloneWar | Assets/Scripts/Stage/Event/TriggerSender/Base/UnitTriggerSender.cs | 1023 | using AloneWar.Common;
using AloneWar.DataObject.Sqlite.SqliteObject.Master;
using AloneWar.Stage.Event.EventObject;
using System.Collections.Generic;
namespace AloneWar.Stage.Event.TriggerSender
{
/// <summary>
/// ユニットに対するイベントトリガーの基本クラス
/// </summary>
///
public class UnitTriggerSend... | mit |
benlakey/letter_histogram | LetterHistogram/LetterHistogram.cs | 1723 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LetterHistogram
{
class LetterHistogram
{
private string input;
private int largestCount;
private Dictionary<char, int> counts;
public LetterHistogram(string input)
... | mit |
CooloiStudio/SH_HotelSystem | src/java/Action/LoginAction.java | 3703 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Action;
import com.opensymphony.xwork2.ActionSupport;
import com.orm.Staff;
import java.util.List;
import javax.servlet.http.... | mit |
anqqa/Anqh | modules/anqh/helpers/MY_html.php | 8803 | <?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* Anqh extended HTML5 helper class.
*
* @package Anqh
* @author Antti Qvickström
* @copyright (c) 2009-2010 Antti Qvickström
* @license http://www.opensource.org/licenses/mit-license.php MIT license
*/
class html extends html_Core {
/... | mit |
pact-foundation/pact_broker | spec/lib/pact_broker/config/runtime_configuration_documentation_spec.rb | 1085 | require "pact_broker/config/runtime_configuration"
module PactBroker
module Config
describe RuntimeConfiguration do
ATTRIBUTES = RuntimeConfiguration.config_attributes
DOCUMENTATION = File.read("docs/configuration.yml")
DOCUMENTED_ATTRIBUTES = YAML.load(DOCUMENTATION)["groups"].flat_map{ | grou... | mit |
S7uXN37/NineMensMorrisBoard | board/praesi.py | 399 | import motors
import magnet
import time
print()
print()
print("move to 0,0! place white piece on 6,6!")
input("press ENTER for x-axis...")
motors.goTo(6,0)
input("press ENTER for y-axis...")
motors.goTo(6,6)
input("press ENTER for magnet action...")
magnet.turnOn(-1)
time.sleep(0.5)
motors.goTo(3,6)
time.sleep(0.5)
mag... | mit |
urho3d/Urho3D | Source/Urho3D/UI/FontFaceFreeType.cpp | 17494 | //
// Copyright (c) 2008-2022 the Urho3D project.
//
// 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, m... | mit |
mattbierner/khepri-compile | dist/ecma_peep.js | 2177 | /*
* THIS FILE IS AUTO GENERATED FROM 'lib/ecma_peep.kep'
* DO NOT EDIT
*/
define(["require", "exports", "ecma-ast/node", "./ast", "./fun", "./rewriter"], (function(require, exports, __o, __o0,
__o1, __o2) {
"use strict";
var optimize, modify = __o["modify"],
type = __o0["type"],
concat = ... | mit |
ericpoe/haystack | src/Container/HArrayRemove.php | 948 | <?php
declare(strict_types=1);
namespace Haystack\Container;
use Haystack\HArray;
use Haystack\HaystackInterface;
class HArrayRemove
{
/** @var HArray */
private $arr;
public function __construct(HArray $arr)
{
$this->arr = $arr;
}
/**
* @param int|string|HaystackInterface $va... | mit |
osmantuna/Dosyalama | Main.cpp | 14335 | #include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <windows.h>
void kayitMenu();
void kayitEkle();
void kayitListele();
void kayitAra();
void kayitGuncelle();
void kayitSil();
void menu();
void kirala();
bool kayitAra(char *);
bool filmAra(char *,char *,char *);
void filmEkle();
... | mit |
oldmantaiter/telegraf | plugins/inputs/rabbitmq/rabbitmq.go | 27412 | package rabbitmq
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"
"sync"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/config"
"github.com/influxdata/telegraf/filter"
"github.com/influxdata/telegraf/plugins/common/tls"
"github.com/influxdata/telegraf/plugins/inputs... | mit |
Whoaa512/javascript-koans | koans/AboutExpects.js | 1174 | describe("About Expects", function() {
//We shall contemplate truth by testing reality, via spec expectations.
it("should expect true", function() {
expect(true).toBeTruthy(); //This should be true
});
//To understand reality, we must compare our expectations against reality.
it("should expect equalit... | mit |
VMatrixTeam/open-matrix | src/judgesystem/src/utils/mysqller/__init__.py | 16 | import mysqller
| mit |
diegofigueroa/world_cup | db/migrate/20140219014723_create_players.rb | 316 | class CreatePlayers < ActiveRecord::Migration
def change
create_table :players do |t|
t.string :name
t.date :birthday
t.integer :height
t.integer :weight
t.integer :squad_number
t.string :photo_url
t.references :team, index: true
t.timestamps
end
end
end
| mit |
fmdjs/fmd.js | test/specs/use/o.js | 63 | define('specs/use/o',function(){
window.specsUseO = 1;
});
| mit |
yonglehou/sharpsnmplib | SharpSnmpLib/Messaging/MessageFactoryException.cs | 3376 | // Message factory exception.
// Copyright (C) 2008-2010 Malcolm Crowe, Lex Li, and other contributors.
//
// 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 w... | mit |
dennisdegreef/Dns | src/Entry/Type/Txt.php | 426 | <?php
namespace Link0\Dns\Entry\Type;
use Link0\Dns\Entry;
use Link0\Dns\Entry\Type;
/**
* Txt type
*
* @package Link0\Dns\Entry\Type
*/
final class Txt extends Type
{
/**
* @return string
*/
public function name()
{
return 'TXT';
}
/**
* @param string $content
*
... | mit |
DALEKZ/staff-management | static/javascripts/examples/dashboard.js | 3240 |
$(function () {
"use strict";
//TOASTR NOTIFICATION
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
toastr.options = {
"progressBar": true,
"positionClass": "toast-bottom-right",
"timeOut": 3500,
"showEasing": "swing",
"hide... | mit |
chi-cicadas-2015/galleriamia | db/migrate/20151012210833_create_profiles.rb | 234 | class CreateProfiles < ActiveRecord::Migration
def change
create_table :profiles do |t|
t.string :top_collection
t.string :website_url
t.string :primary_medium
t.timestamps null: false
end
end
end
| mit |
waynemunro/orleans | test/ServiceBus.Tests/Streaming/EHStreamPerPartitionTests.cs | 6297 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.WindowsAzure.Storage.Table;
using Orleans;
using Orleans.AzureUtils;
using Orleans.Runtime;
using Orleans.Runtime.Configuration;
using Orleans.ServiceBus.Pr... | mit |
projectweekend/Node-API-Utils | lib/handlers/create.js | 1495 | var util = require( "util" );
var ClassyHandler = require( "./classy" );
module.exports = CreateHandler;
function CreateHandler ( req, res, next ) {
ClassyHandler.call( this, req, res, next );
this.on( "preCreate", this.preCreate );
this.on( "create", this.create );
this.on( "postCreate", this.pos... | mit |
JeffGillispie/LoadFileAdapter | LoadFileAdapterTests/Exporters/TU_XrefExporter.cs | 17117 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using LoadFileAdapter;
using LoadFileAdapter.Builders;
using LoadFileAdapter.Exporters;
using LoadFileAdapter.Instructions;
using LoadFileA... | mit |
aressler38/Excerpts | excerpts/database.py | 807 | from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('mysql://admin:f1$hSt1ck$@localhost:3306/excerpts', convert_unicode=True)
db_session = scoped_session(sessionmaker(autocommit=False,
... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2020-08-01/generated/azure_mgmt_network/models/azure_firewall_rcaction_type.rb | 381 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2020_08_01
module Models
#
# Defines values for AzureFirewallRCActionType
#
module AzureFirewallRCActionType... | mit |
UselessToucan/osu | osu.Game/Screens/Edit/Compose/Components/Timeline/TimelineSelectionHandler.cs | 2246 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Input.Bindings;
using osu.Game.Input.Bindings;
using osu.Game.Rulesets.Objects;
using osuTK;
names... | mit |
troyGH/Cudos | application/views/login_view.php | 3125 | <?php $this->load->view('template/header.php'); ?>
<!-- LOGIN FORM -->
<div class="login-body">
<?php echo $this->session->flashdata('reg_msg');?>
<?php echo $this->session->flashdata('lg_err'); ?>
<div id="back">
<div class="backRight"></div>
<div class="backLeft"></div>
</div>
<div id="slideBox">
<div class="t... | mit |
colkito/freshbooksjs | lib/services/Project.js | 4116 | /*
* Full Documentation:
* http://developers.freshbooks.com/docs/projects/
*
*/
var utils = require('./utils');
function ProjectService(config) {
if (!(this instanceof ProjectService)) {
return new ProjectService(config);
}
this.config = config;
}
/* http://developers.freshbooks.com/docs/pr... | mit |
MarkEWaite/git-client-plugin | src/test/java/org/jenkinsci/plugins/gitclient/trilead/StandardUsernamePasswordCredentialsImpl.java | 1339 | package org.jenkinsci.plugins.gitclient.trilead;
import com.cloudbees.plugins.credentials.CredentialsDescriptor;
import com.cloudbees.plugins.credentials.CredentialsScope;
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.... | mit |
joshswan/react-native-globalize | test/setup.test.js | 356 | /*!
* React Native Globalize
*
* Copyright 2015-2020 Josh Swan
* Released under the MIT license
* https://github.com/joshswan/react-native-globalize/blob/master/LICENSE
*/
import { loadCldr } from '../src';
beforeAll(() => {
loadCldr(
require('../locale-data/de'),
require('../locale-data/en'),
req... | mit |
vikkio88/dsManager-php | app/controllers/matches/newMatchController.js | 868 | (function () {
"use strict";
angular.module("DsManager")
.controller(
"NewMatchController",
[
"Common",
"$scope",
"$stateParams",
NewMatchController
]);
function NewMatchController(Common, $scope, $... | mit |
jonas054/rubocop | spec/rubocop/cop/style/if_unless_modifier_of_if_unless_spec.rb | 1491 | # frozen_string_literal: true
describe RuboCop::Cop::Style::IfUnlessModifierOfIfUnless do
include StatementModifierHelper
subject(:cop) { described_class.new }
it 'provides a good error message' do
source = 'condition ? then_part : else_part unless external_condition'
inspect_source(cop, source)
ex... | mit |
jn2840/bitcoin | src/qt/locale/bitcoin_th_TH.ts | 14224 | <TS language="th_TH" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>สร้างที่อยู่ใหม่</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<transl... | mit |
zreed/StarQuestCode | Standalone/SubcontractGenerator/src/com/dibujaron/subcontractor/Certification.java | 3456 | package com.dibujaron.subcontractor;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.io.File;
import java.io.FileWriter;
import java.io.PrintWriter;
public class Certification {
public H... | mit |
rsbauer/RoundelRemoteAndroid | RoundelRemote/mobile/src/main/java/com/rsbauer/roundelremote/webservices/models/response/VehicleStatus.java | 1034 | package com.rsbauer.roundelremote.webservices.models.response;
/**
* Created by astro on 2/22/15.
*/
public class VehicleStatus {
private String vin;
private String updateTime;
private Position position;
/**
*
* @return
* The vin
*/
public String getVin() {
return vi... | mit |
KenticoAcademy/PV247-2017 | DemoReactApp/src/reducers/shared/token.js | 457 | import {
SHARED_RECEIVE_TOKEN,
SHARED_INVALIDATE_TOKEN,
SHARED_AUTHENTICATION_FAILED,
} from '../../constants/actionTypes';
export const token = (prevState = null, action) => {
switch (action.type) {
case SHARED_RECEIVE_TOKEN:
return action.payload.token;
case SHARED_AUTHEN... | mit |
jrhenderson1988/blixt | tests/Persistence/Repositories/AbstractRepositoryTest.php | 9452 | <?php
namespace BlixtTests\Persistence\Repositories;
use Blixt\Persistence\Drivers\Storage;
use Blixt\Persistence\Entities\Entity;
use Blixt\Persistence\Record;
use Blixt\Persistence\Repositories\AbstractRepository;
use BlixtTests\TestCase;
use Illuminate\Support\Collection;
use Mockery as m;
class AbstractRepositor... | mit |
nh13/picard | src/main/java/picard/illumina/IlluminaPhasingMetrics.java | 3728 | /*
* The MIT License
*
* Copyright (c) 2014 The Broad Institute
*
* 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... | mit |
bassmastry101/NutBot | node_modules/barse/example/next.js | 449 | var parse = require('..');
var parser = parse()
.next('a', 1, function (chunk, offset) {
return chunk.readUInt8(offset);
})
.next('b', 4, function (chunk, offset) {
return chunk.readUInt32LE(offset);
})
parser.on('data', console.log);
var leet = new Buffer(5);
leet.writeUInt8(13, 0);
leet.writeUInt32... | mit |
uhoh-itsmaciek/heroku | lib/heroku/command/config.rb | 3008 | require "heroku/command/base"
# manage app config vars
#
class Heroku::Command::Config < Heroku::Command::Base
# config
#
# display the config vars for an app
#
# -s, --shell # output config vars in shell format
#
#Examples:
#
# $ heroku config
# A: one
# B: two
#
# $ heroku config --shell
... | mit |
harryggg/coursemology2 | lib/autoload/course/assessment/programming_package.rb | 4745 | # frozen_string_literal: true
# Represents a programming package, containing the tests and submitted code for a given question.
#
# A package has these files at the very minimum:
#
# - +Makefile+: the makefile for building and executing the package. There are at least three
# targets:
# - +prepare+: for initialisin... | mit |
ikneb/lg | src/AppBundle/Controller/DefaultController.php | 1075 | <?php
namespace AppBundle\Controller;
use AppBundle\Entity\User;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class DefaultController extends Controller
{
/**
* @Route("/", name="home")
... | mit |
angular/angular-cli-stress-test | src/app/components/comp-4236/comp-4236.component.spec.ts | 847 | /**
* @license
* Copyright Google Inc. 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 { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp4236Component } from './comp... | mit |
xaviergonz/js-angusj-clipper | src/PolyNode.ts | 4682 | import { NativeClipperLibInstance } from "./native/NativeClipperLibInstance";
import { NativePolyNode } from "./native/NativePolyNode";
import { nativePathToPath } from "./native/PathToNativePath";
import { ReadonlyPath } from "./Path";
/**
* PolyNodes are encapsulated within a PolyTree container, and together provid... | mit |
tom5454/Toms-Mod | src/main/java/com/tom/defense/block/BlockForceField.java | 4959 | package com.tom.defense.block;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity... | mit |
NordikLab/TorqueLab | tlab/ipsEditor/scripts/system.cs | 895 | //==============================================================================
// TorqueLab ->
// Copyright (c) 2015 All Right Reserved, http://nordiklab.com/
//------------------------------------------------------------------------------
//===========================================================================... | mit |
jdsika/TUM_HOly | openrave/plugins/rplanners/ParabolicPathSmooth/DynamicPath.cpp | 33660 | /*****************************************************************************
*
* Copyright (c) 2010-2011, the Trustees of Indiana University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... | mit |
kiwi-suite/servicemanager | tests/misc/DelegatorFactory.php | 505 | <?php
/**
* @link https://github.com/ixocreate
* @copyright IXOLIT GmbH
* @license MIT License
*/
declare(strict_types=1);
namespace Ixocreate\Misc\ServiceManager;
use Ixocreate\ServiceManager\DelegatorFactoryInterface;
use Ixocreate\ServiceManager\ServiceManagerInterface;
class DelegatorFactory implements Dele... | mit |
aleste/proyectodev | plugins/sfBreadNav2Plugin/lib/model/map/sfBreadNavApplicationMapBuilder.php | 2065 | <?php
/**
* This class adds structure of 'sf_BreadNav_Application' table to 'propel' DatabaseMap object.
*
*
* This class was autogenerated by Propel 1.3.0-dev on:
*
* 05/19/09 22:02:53
*
*
* These statically-built map classes are used by Propel to do runtime db structure discovery.
* For example, the creat... | mit |
sirius2013/BuildCore | vendor/angular-pdf/dist/angular-pdf.js | 2944 | (function () {
'use strict';
angular.module('pdf', []).directive('ngPdf', function($window) {
return {
restrict: 'E',
templateUrl: function(element, attr) {
return attr.templateUrl ? attr.templateUrl : 'partials/viewer.html'
},
link: function (scope, element, attrs) {
v... | mit |
czim/laravel-cms-models | tests/ModelInformation/Data/Form/Layout/ModelFormFieldLabelDataTest.php | 783 | <?php
namespace Czim\CmsModels\Test\ModelInformation\Data\Form\Layout;
use Czim\CmsModels\ModelInformation\Data\Form\Layout\AbstractModelFormLayoutNodeData;
use Czim\CmsModels\ModelInformation\Data\Form\Layout\ModelFormFieldLabelData;
/**
* Class ModelFormFieldLabelDataTest
*
* @group modelinformation-data
*/
cla... | mit |
ArthurSecretProject/hera | config/webpack.dev.js | 8173 | /**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
// const webpackMergeDll = webpackMerge.strategy({plugins: 'replace'});
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod an... | mit |
evangelischeomroep/npo-api-interceptor | config/rollup.config.cjs.js | 139 | import config from './rollup.config'
export default config({
format: 'cjs',
dest: 'lib/npoapiinterceptor.cjs.js',
browser: false
})
| mit |
coyotebush/fullcalendar | src/EventManager.js | 9209 |
fc.sourceNormalizers = [];
fc.sourceFetchers = [];
var ajaxDefaults = {
dataType: 'json',
cache: false
};
var eventGUID = 1;
function EventManager(options, _sources) {
var t = this;
// exports
t.isFetchNeeded = isFetchNeeded;
t.fetchEvents = fetchEvents;
t.addEventSource = addEventSource;
t.removeEvent... | mit |
VegasGoat/WoodworkingTFC | src/VegasGoatTFC/CarvingResultSlot.java | 923 | package VegasGoatTFC;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.inventory.Slot;
import net.minecraft.inventory.IInventory;
public class CarvingResultSlot extends Slot
{
ContainerCarvingBase container;
int[] validItems;
public CarvingResu... | mit |
Akagi201/web-player | videojs/static/node_modules/mux.js/lib/mp4/transmuxer.js | 35617 | /**
* mux.js
*
* Copyright (c) 2015 Brightcove
* All rights reserved.
*
* A stream-based mp2t to mp4 converter. This utility can be used to
* deliver mp4s to a SourceBuffer on platforms that support native
* Media Source Extensions.
*/
'use strict';
var Stream = require('../utils/stream.js');
var mp4 = requir... | mit |
alekitto/compressor-bundle | src/Preserver/CodePreserver.php | 708 | <?php
namespace Kcs\CompressorBundle\Preserver;
/**
* Compression preserver for <code> tag
*
* @author Alessandro Chitolina <alekitto@gmail.com>
*/
class CodePreserver extends AbstractTagPreserver
{
/**
* Returns the block regex
*/
protected function getPattern()
{
return '#(<code[^>... | mit |
scottohara/tvmanager | src/controllers/series-controller.ts | 4603 | /**
* @file (Controllers) SeriesController
* @author Scott O'Hara
* @copyright 2010 Scott O'Hara, oharagroup.net
* @license MIT
*/
/**
* @module controllers/series-controller
* @requires jquery
* @requires models/program-model
* @requires models/series-model
* @requires controllers/view-controller
*/
import... | mit |
chatgris/Gaston | lib/gaston.rb | 1527 | # encoding: utf-8
require 'yaml'
require 'singleton'
require 'inflecto'
class Gaston
include Singleton
require_relative 'gaston/configuration'
require_relative 'gaston/builder'
require_relative 'gaston/parse'
if defined?(Rails) && defined?(Rails::Generators)
require 'gaston/generators/gaston/config_gener... | mit |
nrodriguezm/ionic-login-firebase-email-social | src/pages/tabs/tabs.ts | 370 | import { Component } from '@angular/core';
import { IonicPage } from 'ionic-angular';
@IonicPage()
@Component({
templateUrl: 'tabs.html'
})
export class TabsPage {
// this tells the tabs component which Pages
// should be each tab's root Page
tab1Root: any = 'HomePage';
tab2Root: any = 'ItemsPage';
tab3Roo... | mit |
uditgupta002/LogisticRegression | src/LogisticRegression.py | 11623 | '''
Created on Oct 31, 2017
@author: udit.gupta
'''
import numpy as np
import matplotlib.pyplot as plt
import scipy
from scipy import misc
from lr_utils import load_dataset
# Loading the data (cat/non-cat)
train_set_x_orig, train_set_y, test_set_x_orig, test_set_y, classes = load_dataset()
# Example of a picture fro... | mit |
alimanfoo/numcodecs | docs/conf.py | 10126 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# numcodecs documentation build configuration file, created by
# sphinx-quickstart on Mon May 2 21:40:09 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# ... | mit |
MirkoPizii/eat-n-drink | App/eatndrink/src/app/app.module.ts | 3121 | import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { MyApp }... | mit |
jaryway/api | Api.Lanxin/Logging/LoggerFactory.cs | 1214 |
using Api.Lanxin.Logging.Null;
namespace Api.Lanxin.Logging
{
/// <summary>
///
/// </summary>
public static class LoggerFactory
{
private static ILoggerFactoryAdapter _loggerFactoryAdapter;
/// <summary>
///
/// </summary>
/// <param name="loggerFactoryA... | mit |
Xeltor/ovale | dist/AzeriteEssence.lua | 4004 | local __exports = LibStub:NewLibrary("ovale/AzeriteEssence", 80300)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local aceEvent = LibStub:GetLibrary("AceEvent-3.0", true)
local pairs = pairs
local tostring = tostring
local ipairs = ipairs
local sort = table.sort
local insert = t... | mit |
raincityrockcamp/ladydude | resources/lang/en/passwords.php | 1081 | <?php
/**
* Password Reset Translations
*
* PHP version 5.6.3
*
* @category Translations
* @package Resources\Lang\En
* @author Taylor Otwell <taylorotwell@gmail.com>
* @license http://opensource.org/licenses/MIT MIT License
* @link https://laravel.com/docs Laravel Documentation
*/
return [
/*
... | mit |
vixriihi/Ilmari | src/app/model/Property.ts | 1515 | /**
* API documentation
* To use this api you need an access token. To get the token, send a post request with your email address to api-users resource and one will be send to your. See below for information on how to use this api and if you have any questions you can contact us at helpdesk@laji.fi. Place refer to [... | mit |
Pmovil/CN1WindowsPort | src/java/nio/charset/Charset_2.cs | 1381 | // Automatically generated by xmlvm2csharp (do not edit).
using org.xmlvm;
namespace java.nio.charset {
public class Charset_22: global::java.lang.Object,global::java.security.PrivilegedAction {
private global::java.lang.Thread _fval_2t;
public void @this(global::java.lang.Thread n1){
//XMLVM_BEGIN_WRAPPER[java.nio.c... | mit |
o2system/html | src/Element/TextContent.php | 1377 | <?php
/**
* This file is part of the O2System Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Steeve Andrian Salim
* @copyright Copyright (c) Steeve Andrian Salim
*/
// -------------------... | mit |
andrei-shabanski/grab-screen | grab_screen/exceptions.py | 342 | class Error(Exception):
default_message = "Oops, something went wrong"
def __init__(self, message=None):
super(Error, self).__init__(message)
self.message = message or self.default_message
def __str__(self):
return self.message
class ScreenError(Error):
pass
class StorageE... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb | 3214 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2018_12_01
module Models
#
# Vpn Client Parameters for package generation
#
class VpnClientParameters
... | mit |
teoreteetik/api-snippets | rest/sip-in/delete-credential-list-mapping/delete-credential-list-mapping.3.x.js | 624 | // Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);
client.sip
... | mit |
forstermatth/LIIS | refman/search/variables_63.js | 118 | var searchData=
[
['css',['CSS',['../constants_8php.html#ad3c2e05f38fee8ac8cdc370fd4c84941',1,'constants.php']]]
];
| mit |
binarymax/datatype | datatype.js | 3183 | var exports = module.exports = {};
// --------------------------------------------------------------------------
// DataType definitions. Used for validation and casting
var DataType = function(name,definition,validate,cast) {
var self = this;
self.name = name;
self.definition = definition;
self.validate = valida... | mit |
jsweiler/xaml-layout | simplecanvas/simplecanvas/MainWindow.xaml.cs | 664 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Med... | mit |
blackdogcoin/blackdogcoin | src/qt/locale/bitcoin_it.ts | 119705 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About blackdogcoin</source>
<translation type="unfinished"/>
</message>
<message>
<location l... | mit |
sosedoff/net-ssh-session | lib/net/ssh/shell/subshell.rb | 502 | require 'net/ssh/shell/process'
module Net; module SSH; class Shell
class Subshell < Process
protected
def on_stdout(ch, data)
if !output!(data)
ch.on_data(&method(:look_for_finalize_initializer))
ch.send_data("export PS1=; echo #{manager.separator} $?\n")
end
end
def lo... | mit |
cuckata23/wurfl-data | data/samsung_sgh_s730g_ver1_suban41schr740c.php | 221 | <?php
return array (
'id' => 'samsung_sgh_s730g_ver1_suban41schr740c',
'fallback' => 'samsung_sgh_s730g_ver1',
'capabilities' =>
array (
'model_name' => 'SCH-R740C',
'device_os_version' => '4.1',
),
);
| mit |
mattyhansen/symfony2-rest-api | tests/unit/Starter/Content/Provider/ContentProviderTest.php | 2237 | <?php
class ContentProviderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
}
protected function tearDown()
{
}
// tests
public function testCanConstruct()
{
$repo = $this->getMockRepository();
$provider = $this->getProvider($repo);
s... | mit |
flychao4837/learnlaravel5 | app/Models/test/Page.php | 216 | <?php namespace App\Models\test;
use Illuminate\Database\Eloquent\Model;
class Page extends Model {
public function hasManyComments()
{
return $this->hasMany('App\Models\test\Comment', 'page_id', 'id');
}
}
| mit |
spuz/kathik | textpattern/css.php | 269 | <?php
/*
@deprecated
@see ../css.php
$HeadURL: https://textpattern.googlecode.com/svn/releases/4.5.4/source/textpattern/css.php $
$LastChangedRevision: 3189 $
*/
if (!defined("txpath"))
{
define("txpath", dirname(__FILE__));
}
require_once txpath.'/../css.php';
?>
| mit |
austinkregel/laravel-auth-login | src/resources/views/security/password.blade.php | 2582 | @extends(config('kregel.auth-login.base-layout'))
@section('content')
<div class="container">
<div class="row">
<div class="col-md-4">
@include('auth-login::shared.menu')
</div>
<div class="col-md-8">
<div class="panel panel-defau... | mit |
smartpension/signable | lib/signable/template.rb | 291 | module Signable
class Template < Signable::Base
column :id
column :fingerprint
column :title
embed :parties
def save
raise "not available"
end
def update
raise "not available"
end
def delete
raise "not available"
end
end
end
| mit |
guyellis/http-status-check | test/lib/outAdapters/test.emailAdapter.js | 2916 | 'use strict';
var should = require('chai').should();
var rewire = require('rewire');
var outAdapter = rewire('../../../lib/outAdapters/emailAdapter');
describe('outAdapters/emailAdapter/', function() {
describe('organizeErrors()', function () {
it('should put object properties into an array', function (done) {... | mit |
billpatrianakos/coverage-web | server/controllers/agents.js | 446 | // Agents Controller
// =================
// Responsible for routing and
// business logic for agent signup.
'use strict';
var express = require('express'),
AgentController = express.Router(),
Agent = require(__dirname + '/../models/agent');
// RESTful Route /
AgentController.route('/?')
... | mit |
CS2103AUG2016-W10-C3/main | src/test/java/seedu/address/testutil/TypicalTestTasks.java | 3012 | package seedu.address.testutil;
import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.ToDo;
import seedu.address.model.task.*;
/**
*
*/
public class TypicalTestTasks {
public static TestTask alice, benson, carl, daniel, elle, fiona, george, hoon, ida;
public TypicalTest... | mit |
AliBrahem/AfrikIsol | src/Acme/DemoBundle/Controller/DemoController.php | 1543 | {% extends "FOSUserBundle::layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action="{{ path("fos_user_security_check") }}" method="post">
<input type="hidde... | mit |
dafrito/Sparks | js/Presenter.js | 8005 | // Sparks.Presenter
Sparks.PresenterHierarchies = {};
Sparks.Presenters = {};
Sparks.get_presenter = function get_presenter(name) {
if(name instanceof Array) {
for(var i in name) {
var presenter = Sparks.get_presenter(name[i]);
if(presenter)
return presenter;
}
return;
}
if(typeof name !== "string... | mit |
omuleanu/ValueInjecter | ValueInjecter/InternalUtils.cs | 868 | using System;
using System.Reflection;
namespace Omu.ValueInjecter
{
internal static class InternalUtils
{
internal static PropertyInfo GetProperty(this Type type, string name)
{
return type.GetTypeInfo().GetProperty(name);
}
internal static MethodInfo GetMethod(th... | mit |
JasonSJ/LeetCode-js | Javascript/Pascal's Triangle.js | 444 | /**
* @param {number} numRows
* @return {number[][]}
*/
var generate = function(numRows) {
var triangle = [],
i,
j;
for(i = 0; i < numRows ; i++) {
triangle[i] = [];
for(j = 0; j <= parseInt(i/2); j++) {
if(j === 0) {
triangle[i][i-j] = triangle[i][j] = 1;
} else {
... | mit |
viblo/pymunk | pymunk/_pickle.py | 1855 | import copy
from typing import Any, ClassVar, Dict, List, Tuple, TypeVar
T = TypeVar("T", bound="PickleMixin")
_State = Dict[str, List[Tuple[str, Any]]]
class PickleMixin:
"""PickleMixin is used to provide base functionality for pickle/unpickle
and copy.
"""
_pickle_attrs_init: ClassVar[List[str]] =... | mit |
banzai-inc/react-d3 | tests/barchart-tests.js | 1966 | 'use strict';
var expect = require('chai').expect;
describe('BarChart', function() {
it('renders barchart', function() {
var React = require('react/addons');
var BarChart = require('../src/barchart').BarChart;
var generate = require('./utils/datagen').generateArrayOfNumbers;
var TestUtils = React.ad... | mit |