repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
drb/random-world | lib/methods/data/extensions.js | 329 | var extensions = [
'doc', 'dot', 'docx', 'docm', 'dotx', 'dotm', 'docb', 'csv', 'xls', 'xlt',
'xlm', 'xlsx', 'xlsm', 'xltx', 'xltm', 'xlsb', 'xla', 'xlam', 'xll', 'xlw',
'zip', 'a', 'ar', 'cpio', 'shar', 'lbr', 'iso', 'mar', 'tar', 'bz2', 'gz',
'xz', 'z', 'pdf', 'png', 'jpg', 'jpeg', 'gif'];
module.exports = ex... | mit |
jinky32/story-project | config/deploy.rb | 1996 | # config valid only for current version of Capistrano
lock '3.4.0'
#set :tmp_dir, "#{fetch(:home)}/tmp"
set :tmp_dir, "/home/stuartbrown/pickingorganic.org/tmp"
set :application, 'storyproject'
set :repo_url, 'git@github.com:jinky32/story-project.git'
# Default branch is :master
# ask :branch, `git rev-parse --abbre... | mit |
soanni/onclinic | application/controllers/Operator.php | 3736 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
//implements User_interface
class Operator extends CI_Controller{
public function __construct(){
parent::__construct();
$this->load->model('operator_model');
$this->load->helper('form');
$this->load->helper('u... | mit |
time-machine/boom | lib/boom/command.rb | 13022 | # coding: utf-8
# Command is the main point of entry for boom commands; shell arguments are
# passed through to Command, which then filters and parses through individual
# commands and reroutes them to constituent object classes.
#
# Command also keeps track of one connection to Storage, which is how new data
# change... | mit |
genusP/linq2db | Tests/Linq/Linq/AnalyticTests.cs | 56238 | namespace Tests.Linq
{
using System.Linq;
using LinqToDB;
using NUnit.Framework;
[TestFixture]
public class AnalyticTests : TestBase
{
[Test, IncludeDataContextSource(true, ProviderName.Oracle, ProviderName.OracleManaged, ProviderName.OracleNative,
ProviderName.SqlServer2012, ProviderName.SqlServer2014, P... | mit |
marom17/Teaching-HEIGVD-RES-2015-Labo-05 | frontend/mysite/index.php | 314 | <!DOCTYPE html>
<html>
<head>
<script src="./bouton.js"></script>
</head>
<body>
<h2>Quelle heure est-il?</h2>
<div id="div1"></div>
<p>
<button onclick="onClick();" id="bt1">Avoir l'heure</button>
</p>
<br/>
<p>Ce service vous est fourni par <b>
<?php
echo $_SERVER['SERVER_ADDR'];
?>
</b></p>
</body>
</html>
| mit |
peter17/Propel2 | tests/Propel/Tests/Runtime/ActiveQuery/ModelCriteriaTest.php | 146560 | <?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Propel\Tests\Runtime\ActiveQuery;
use PDO;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\Active... | mit |
facelessuser/ColorHelper | lib/coloraide/spaces/hwb/css.py | 3881 | """HWB class."""
import re
from .. import hwb as base
from ... import parse
from ... import util
from ...util import MutableVector
from typing import Union, Optional, Tuple, Any, TYPE_CHECKING
if TYPE_CHECKING: # pragma: no cover
from ...color import Color
class HWB(base.HWB):
"""HWB class."""
DEF_VALU... | mit |
Borodutch/hello-bot-telekit | helpers/bot.js | 808 | const config = require('../config');
class Bot {
checkDate(date, diff = 10800000) {
const now = new Date().valueOf();
const dateOf = new Date(date).valueOf();
return now - dateOf < diff;
}
isAdmin(id) {
return id === config.adminId;
}
async sendMessageWithDelay(api, message, chat_id) {
... | mit |
enkessler/cuke_cataloger | testing/rspec/spec/unique_test_case_tagger_unit_spec.rb | 2301 | require_relative '../../../environments/rspec_env'
RSpec.describe 'UniqueTestCaseTagger, Unit' do
clazz = CukeCataloger::UniqueTestCaseTagger
before(:each) do
@tagger = clazz.new
end
describe 'test tagging' do
it "can tag a suite's tests" do
expect(@tagger).to respond_to(:tag_tests)
end
... | mit |
RichardTMiles/CarbonPHP | tests/feature/UserTest.php | 4557 | <?php
/**
* Created by IntelliJ IDEA.
* User: rmiles
* Date: 6/26/2018
* Time: 3:21 PM
*/
declare(strict_types=1);
namespace Tests\Feature;
use CarbonPHP\Error\PublicAlert;
use CarbonPHP\Rest;
use CarbonPHP\Tables\Users;
final class UserTest extends Config
{
public array $user = [];
/**
* Ideal... | mit |
lookout/oraculum-fastTable | docs/doc-filelist.js | 154 | var tree={"files":["LICENSE.md","README.md"],"dirs":{"src":{"files":["main.coffee"],"dirs":{"views":{"dirs":{"mixins":{"files":["fast-row.coffee"]}}}}}}}; | mit |
TrackerNetwork/DestinyStatus | destiny/DestinyPlatform.php | 5603 | <?php
namespace Destiny;
use App\Account;
use App\Enums\ActivityModeType;
use App\Enums\StatGroupType;
use Destiny\Definitions\Components\Character;
/**
* Class DestinyPlatform.
*/
class DestinyPlatform
{
/**
* @param $uri
* @param array $params
* @param null $cacheMinutes
* @param bool $... | mit |
LambdaInnovation/LambdaLib | src/main/java/cn/lambdalib/cgui/gui/event/LeftClickEvent.java | 511 | /**
* Copyright (c) Lambda Innovation, 2013-2016
* This file is part of LambdaLib modding library.
* https://github.com/LambdaInnovation/LambdaLib
* Licensed under MIT, see project root for more information.
*/
package cn.lambdalib.cgui.gui.event;
/**
* Fired on CGui and current focus when user presses left mouse bu... | mit |
wiseallie/rails_admin_has_many_nested | lib/rails_admin_has_many_nested.rb | 574 | require "rails_admin"
require 'rails_admin/nested_abstract_model'
require 'rails_admin/extensions/pundit_nested'
require 'rails_admin/extensions/cancan_nested'
require 'rails_admin/extensions/cancancan_nested'
require 'rails_admin/config/fields/types/has_many_nested_association_extension'
require 'rails_admin/config/ac... | mit |
freyr69/mh | app/Http/Controllers/Dom/AssignedPunishmentController.php | 3242 | <?php
namespace Mistress\Http\Controllers\Dom;
use Auth;
use Carbon\Carbon;
use Flash;
use Input;
use Mistress\AssignedPunishment;
use Mistress\Http\Controllers\Controller;
use Redirect;
use Response;
class AssignedPunishmentController extends Controller
{
/**
* Display a listing of the resource.
*
... | mit |
selviamago/PWEB161_51014023 | application/config/routes.php | 304 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
$route['biodata'] = 'biodata';
$route['ukmku'] = 'ukm';
$route['ceritaku'] = 'ceritasaya';
$route['plus'] = 'plus';
$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
| mit |
myayo/EADJAVA | src/main/java/com/inf380/ead/service/LdapService.java | 357 | package com.inf380.ead.service;
public class LdapService {
private final String LDAP_CONTEXT_FACTORY = "com.sun.jndi.ldap.LdapCtxFactory";
private final String LDAP_AUTHENTICATION_MODE = "simple";
private final String LDAP_REFERRAL_MODE = "follow";
public boolean authenticate(String username, String pas... | mit |
iluminar/goodwork | tests/Feature/CycleTest.php | 4751 | <?php
namespace Tests\Feature;
use Tests\TestCase;
class CycleTest extends TestCase
{
/** @test */
public function admin_can_create_new_cycle()
{
$project = factory(\App\Project\Models\Project::class)->create(['owner_id' => $this->user->id]);
$this->actingAs($this->user);
resolve(... | mit |
dwivivagoal/KuizMilioner | application/libraries/php-google-sdk/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedList.php | 1331 | <?php
/*
* Copyright 2014 Google 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 t... | mit |
stivalet/PHP-Vulnerability-test-suite | Injection/CWE_89/safe/CWE_89__GET__CAST-cast_int__multiple_select-concatenation.php | 1559 | <?php
/*
Safe sample
input : reads the field UserData from the variable $_GET
sanitize : cast into int
construction : concatenation
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its documentatio... | mit |
trampoline/hash_graph | spec/hash_graph_spec.rb | 3400 | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'set'
describe HashGraph do
module HashGraph
describe DirectedGraph do
it "should not create a top-level key on top-level access" do
h = DirectedGraph.new
h[:foo]
h.should == {}
end
it "should not... | mit |
zce/electron-boilerplate | src/main/preload.ts | 275 | /**
* Helpful links
* - https://github.com/electron/electron-quick-start/blob/master/preload.js
* - http://electronjs.org/docs/api/process#event-loaded
*/
// All of the Node.js APIs are available in the preload process.
// It has the same sandbox as a Chrome extension.
| mit |
uzura8/tasks | fuel/app/bootstrap.php | 1626 | <?php
// Load original setting file.
require APPPATH.'config.inc.php';
// Load in the Autoloader
require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php';
class_alias('Fuel\\Core\\Autoloader', 'Autoloader');
// Bootstrap the framework DO NOT edit this
require COREPATH.'bootstrap.php';
Autoloader::add_classe... | mit |
miguelgazela/sinf | webapp/templates_c/f28f4b8764ef2860f1784330f77851a0a4e12b17.file.login.tpl.php | 2858 | <?php /* Smarty version Smarty-3.1.13, created on 2013-12-14 14:42:39
compiled from "C:\xampp\htdocs\webapp\templates\auth\login.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7635529b73c44957d8-50822242%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'... | mit |
vissense/angular-vissense | src/angular-vissense/directives/vissense-monitor.js | 2710 | (function (angular) {
angular.module('angular-vissense.directives')
.directive('vissenseMonitor', ['VisSense', 'VisUtils',
function (VisSense, VisUtils) {
var d = {
scope: {
monitor: '=?ngModel',
config: '@',
onStart: '&',
onStop: '&',
... | mit |
djgalaxy/AndroidSpinnerExample | app/src/androidTest/java/djgalaxy/github/spinnerdemo/ApplicationTest.java | 358 | package djgalaxy.github.spinnerdemo;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... | mit |
talentnest/amcharts.rb | app/helpers/amcharts/amcharts_helper.rb | 1895 | module AmCharts
module AmChartsHelper
def amchart(chart, container)
# Load necessary JS and CSS files, without loading one more than once
@loaded_amchart_files ||= { js: [], css: []}
js_files = ['amcharts', "amcharts/#{chart.type}"]
js_files << "amcharts/lang/#{chart.language}" if chart.l... | mit |
andrehjr/rd_highrise_api | spec/rd_highrise_api/api_spec.rb | 378 | require 'spec_helper'
class Test; include RdHighriseApi::Api; end
describe RdHighriseApi::Api do
let(:xml) { "<errors><error>First name can't be blank</error><error>Last name can't be blank</error></errors>"}
it "should parse error messages correctly" do
expect(Test.new.error_messages_from(xml)).to eql(["First n... | mit |
redding/scmd | test/unit/stored_commands_tests.rb | 3884 | # frozen_string_literal: true
require "assert"
require "scmd/stored_commands"
require "scmd/command_spy"
class Scmd::StoredCommands
class UnitTests < Assert::Context
desc "Scmd::StoredCommands"
setup do
@cmd_str = Factory.string
@opts = { Factory.string => Factory.string }
@output = F... | mit |
ndvalkov/TelerikAcademy2016 | Homework/CSharp-Part-2/04. Numeral-Systems/BinToDec.cs | 413 | using System;
class BinaryToDecimalConversion
{
static void Main()
{
string binary = Console.ReadLine();
Console.WriteLine(BinaryToDecimal(binary));
}
static ulong BinaryToDecimal(string binary)
{
ulong result = 0;
foreach (var c in binary)
{
re... | mit |
tholum/crm42 | pages/welcome.main.php | 857 | <?php
require_once('app_code/config.inc.php');
require_once 'class/class.tasks.php';
require_once('class/class.message.php');
require_once('class/class.news.php');
require_once 'class/class.contacts.php';
require_once 'class/class.bugs.php';
require_once 'Zend/Loader.php';
require_once('class/class.CapacityReport.php')... | mit |
jimmydorry/d2moddin-invite-access | auth/index.php | 1925 | <?php
require_once("../functions.php");
require_once("../connections/parameters.php");
try {
if (!isset($_SESSION)) {
session_start();
}
$user = new user;
$user->apikey = $steam_api_key; // put your API key here
$user->domain = $steam_api_domain; // put your domain
//echo $steam_api_k... | mit |
jezhiggins/content-api-ng | test/integration/hello_world.js | 593 | const app = require('../../app');
const request = require('supertest')(app);
describe('Smoke', () => {
basic('/', 'text/html', 'Hello World');
basic('/hello.json', 'application/json', { greeting: 'Hello World'});
it('notfound', done => {
request.
get('/no-way-dude').
expect(404).
end(done... | mit |
Supamiu/ffxiv-teamcraft | apps/client/src/app/pages/about/about.module.ts | 705 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AboutComponent } from './about/about.component';
import { RouterModule, Routes } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { MaintenanceGuard } from '../maintenance/maintenance.... | mit |
JohnGrekso/GeckoUBL | src/GeckoUBL/Ubl21/Cac/MeterType.cs | 1879 | using GeckoUBL.Ubl21.Udt;
namespace GeckoUBL.Ubl21.Cac
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.33440")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serializati... | mit |
CeciliaHinga/HebaShop | resources/views/layouts/owner.blade.php | 3735 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Heba : @yield('title')</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<link rel="stylesheet" href="{!! elixir('css/final.css') !!}">
<!-- Bootstrap 3.3.2
<link href... | mit |
Kris-LIBIS/LIBIS_Format | lib/libis/format/converter/pdf_converter.rb | 6170 | # encoding: utf-8
require_relative 'base'
require 'libis/tools/extend/hash'
require 'libis/format/tool/pdf_copy'
require 'libis/format/tool/pdf_to_pdfa'
require 'libis/format/tool/pdf_optimizer'
module Libis
module Format
module Converter
class PdfConverter < Libis::Format::Converter::Base
def ... | mit |
Matuteale/trekApp | src/graphic/EmailValidator.java | 656 | package Graphic;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class EmailValidator {
private static Pattern pattern;
private static Matcher matcher;
private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@" + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Z... | mit |
stiftungswo/Dime | src/Dime/InvoiceBundle/DimeInvoiceBundle.php | 276 | <?php
namespace Dime\InvoiceBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DimeInvoiceBundle extends Bundle
{
//public function build(ContainerBuilder $container)
//{
// $container->addCompilerPass(new RegisterJsonSchemasPass($this));
//}
}
| mit |
fnando/upstarter | lib/upstarter/templates/instance.rb | 891 | module Upstarter
module Templates
class Instance < Base
attr_reader :options
def initialize(options)
@options = options
end
def export_to(dir)
create_file file_name, render(:instance), dir
end
def file_name
"#{options.name}-#{options.process_name}.con... | mit |
garganti/info2_oop_unibg | cap06/20/cap06/DomandaDati.java | 1117 | package cap06;
import prog.io.ConsoleInputManager;
import prog.utili.Cerchio;
import prog.utili.Quadrato;
import prog.utili.Rettangolo;
// domanda all'utene i due lati di un rettangolo o quadrato
// se sono uguali isntazia un quadrato
// altrimenti costruisc eun rettangolo
// stampa area e perimetro
public class Dom... | mit |
facile-it/moka | src/Plugin/PluginInterface.php | 351 | <?php
declare(strict_types=1);
namespace Moka\Plugin;
use Moka\Exception\MissingDependencyException;
use Moka\Strategy\MockingStrategyInterface;
interface PluginInterface
{
/**
* @return MockingStrategyInterface
*
* @throws MissingDependencyException
*/
public static function getStrategy(... | mit |
jinutm/silvfinal | vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.6.9.171/lib/new_relic/agent/instrumentation/merb/controller.rb | 1250 | # encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
require 'set'
DependencyDetection.defer do
@name = :merb_controller
depends_on do
defined?(Merb) && defined?(Merb::Controller)
end
executes do
... | mit |
enmasseio/timesync | examples/basic/http/node_client.js | 555 | // node.js client
if (typeof global.Promise === 'undefined') {
global.Promise = require('promise');
}
var timesync = require('../../../dist/timesync');
// create a timesync client
var ts = timesync.create({
peers: 'http://localhost:8081/timesync',
interval: 10000
});
// get notified on changes in the offset
ts... | mit |
yWorks/jsPDF | src/modules/png_support.js | 14760 | /* global jsPDF, Deflater, PNG */
/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* 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,... | mit |
Princess310/onehower-frontend | app/components/Icon/tests/index.test.js | 225 | // import React from 'react';
// import { shallow } from 'enzyme';
// import Icon from '../index';
describe('<Icon />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
| mit |
tuyto/715_ps_temp | modules/blocksupplier/blocksupplier.php | 7745 | <?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a... | mit |
candice2cc/nox-react-components | src/Layout/components/Layout.js | 506 | /**
* Created by candice on 17/3/29.
*/
import React, {Component, PropTypes} from 'react'
import classNames from 'classnames'
import styles from '../sass/Layout.scss'
class Layout extends Component {
render() {
const {className, hasSider, children, ...others} = this.props;
const cls = classNames... | mit |
emilio-martinez/is-datatype | src/spec/test-cases/index.ts | 2383 | import { DataType } from '@lib';
import {
invalidNumberUseCases,
validArrayUseCases,
validBooleanUseCases,
validFunctionUseCases,
validNullUseCases,
validNumberNegativeUseCases,
validNumberUseCases,
validObjectUseCases,
validStringUseCases,
validSymbolPolyfilledUseCases,
validSymbolUseCases,
val... | mit |
ShaneCourtrille/ang2-learning | api/app/on-change.component.ts | 792 | import {Component} from 'angular2/core';
import {OnChangeChildComponent} from './on-change-child.component';
import {Entity} from './entity';
@Component({
selector: 'on-change',
directives: [OnChangeChildComponent],
template: `<h3>OnChanges</h3>
<on-change-child [textValue]="textValue" [entityValue]="entit... | mit |
Hexeption/Youtube-Hacked-Client-1.8 | minecraft/net/minecraft/network/play/server/S28PacketEffect.java | 2250 | package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
import net.minecraft.util.BlockPos;
public class S28PacketEffect imp... | mit |
Xon/XenForo2-RedisCache | upload/src/addons/SV/RedisCache/_no_upload/config.redis-example-single-slave.php | 978 | <?php
// setup redis caching
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
// all keys and their defaults
$config['cache']['config'] = array(
'server' => '127.0.0.1',
'port' => 6379,
'timeout' => 2.5,
'persistent' => null,
'force_standa... | mit |
andy-goryachev/PasswordSafeFX | src/goryachev/common/util/platform/SysInfo.java | 5002 | // Copyright © 2009-2017 Andy Goryachev <andy@goryachev.com>
package goryachev.common.util.platform;
import goryachev.common.util.CKit;
import goryachev.common.util.CList;
import goryachev.common.util.CSorter;
import goryachev.common.util.Hex;
import goryachev.common.util.SB;
import java.security.Security;
impo... | mit |
codetitlan/codetitlan-org | .storybook/i18next.js | 586 | import { initReactI18next } from 'react-i18next';
import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
const ns = ['translation'];
const supportedLngs = ['en'];
i18n
.use(initReactI18next)
.use(LanguageDetector)
.init({
debug:
process.env.NODE_ENV !== 'productio... | mit |
mpapis/gh_contributors | lib/plugins/gh_contributors/reader/repo.rb | 165 | class GhContributors::Reader::Repo
def self.load(name)
data = load_json("repos/#{name}/contributors")
yield(data, name) if block_given?
data
end
end
| mit |
pinax/django-user-accounts | account/tests/settings.py | 1517 | DEBUG = True
USE_TZ = True
INSTALLED_APPS = [
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.messages",
"account",
"account.tests",
]
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
... | mit |
gurkenlabs/litiengine | core/src/main/java/de/gurkenlabs/litiengine/graphics/emitters/particles/PolygonParticle.java | 1232 | package de.gurkenlabs.litiengine.graphics.emitters.particles;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.Path2D;
import java.awt.geom.Point2D;
public class PolygonParticle extends ShapeParticle {
private int sides;
public PolygonParticle(float width, float height, int sides... | mit |
lordmos/blink | LayoutTests/svg/dynamic-updates/script-tests/SVGForeignObjectElement-svgdom-requiredFeatures.js | 1836 | // [Name] SVGForeignObjectElement-svgdom-requiredFeatures.js
// [Expected rendering result] a series of PASS messages
createSVGTestCase();
var foreignObjectElement = createSVGElement("foreignObject");
foreignObjectElement.setAttribute("width", "200");
foreignObjectElement.setAttribute("height", "200");
var htmlDivEl... | mit |
IGZjonasdacruz/igz-enterprise-geoshare | src/server/test/user-test.js | 5199 | var should = require('should'),
sanitize = require('validator').sanitize;
var VALID_USER = {
_id: '09477529074259',
email: 'testuser@test.com',
domain: 'test.com'
};
var lat = sanitize("40.421431").toFloat();
var lng = sanitize("-3.705434").toFloat();
var userManager = require('../lib/manager/user');
var user... | mit |
yyx990803/buble | src/utils/destructure.js | 8001 | import CompileError from '../utils/CompileError.js';
import { findIndex } from './array.js';
const handlers = {
Identifier: destructureIdentifier,
AssignmentPattern: destructureAssignmentPattern,
ArrayPattern: destructureArrayPattern,
ObjectPattern: destructureObjectPattern
};
export default function destructure(... | mit |
usartkom/materials | extract_features.lua | 2175 | local csv = require 'csvigo'
local path = require 'paths'
require 'nn'
require 'torch'
require 'image'
tempfilename = "ae_features.csv"
-- saving model
modelName = '/AE_model.net'
filename = path.cwd() .. modelName
if path.filep(filename) then
print("Model exists!")
model = torch.load(filename)
autoencoder = m... | mit |
zhangbobell/mallshop | plugins/onekey/taobao/top/request/FenxiaoProductAddRequest.php | 13688 | <?php
/**
* TOP API: taobao.fenxiao.product.add request
*
* @author auto create
* @since 1.0, 2014-09-13 16:51:04
*/
class FenxiaoProductAddRequest
{
/**
* 警戒库存必须是0到29999。
**/
private $alarmNumber;
/**
* 所属类目id,参考Taobao.itemcats.get,不支持成人等类目,输入成人类目id保存提示类目属性错误。
**/
private $categoryId;
/**
*... | mit |
djmcguigan/a3pluscg | A3PLUSCG.Web/Controllers/ManageController.cs | 14118 | using System;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using A3PLUSCG.Models;
namespace A3PLUSCG.Controllers
{
[Authorize]
public class ManageController : Contr... | mit |
Digibos/videojs-inread | lib/vast/request/bucket.js | 418 | videojs.Bucket = videojs.VastCoreObject.extend({
init: function (player, options, ready) {
videojs.VastCoreObject.call(this, player, options, ready);
}
});
videojs.Bucket.isBucketEvent = function (uri) {
videojs.log('isBucketEvent,', uri);
return false;
};
videojs.Bucket.prototype.add = functi... | mit |
xiewulong/express-auto-server | sample/common/db/user.js | 352 | /*!
* user
* xiewulong <xiewulong@vip.qq.com>
* create: 2017/04/13
* since: 0.0.1
*/
'use strict';
const faker = require('faker/locale/zh_CN');
let rows = [];
for(let i = 0, len = 10; i < len; i++) {
rows.push({
id: i + 1,
name: faker.internet.userName(),
email: faker.internet.email(),
})... | mit |
wilfriedE/FIRSTMastery | db/migrate/20160605030135_add_column_to_course_lessons.rb | 186 | class AddColumnToCourseLessons < ActiveRecord::Migration
def change
add_column :course_lessons, :course_id, :integer
add_column :course_lessons, :lesson_id, :integer
end
end
| mit |
Branlute/epsAndroid | app/src/main/java/com/efreipicturestudio/ui/activity/MainActivity.java | 8770 | package com.efreipicturestudio.ui.activity;
import android.animation.ValueAnimator;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.view.View;
import a... | mit |
rjocoleman/middleman-google-tag-manager | lib/middleman_extension.rb | 39 | require 'middleman-google-tag-manager'
| mit |
fajar125/mpd_ci | application/libraries/transaksi/T_vat_setlement_manual_controller.php | 1721 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Json library
* @class vats_controller
* @version 07/05/2015 12:18:00
*/
class T_vat_setlement_manual_controller {
function insertUpdate(){
$page = getVarClean('page','int',1);
$limit = getVarClean('rows','int... | mit |
GhoulMilk/grouprad.io | server.js | 3030 |
/**
* Module dependencies.
*/
var express = require('express');
var http = require('http');
var path = require('path');
var app = express();
var rooms = [];
// all environments
app.set('port', process.env.PORT || 80);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
app.use(expres... | mit |
mathiasbynens/unicode-data | 6.1.0/scripts/Coptic-code-points.js | 1287 | // All code points in the `Coptic` script as per Unicode v6.1.0:
[
0x3E2,
0x3E3,
0x3E4,
0x3E5,
0x3E6,
0x3E7,
0x3E8,
0x3E9,
0x3EA,
0x3EB,
0x3EC,
0x3ED,
0x3EE,
0x3EF,
0x2C80,
0x2C81,
0x2C82,
0x2C83,
0x2C84,
0x2C85,
0x2C86,
0x2C87,
0x2C88,
0x2C89,
0x2C8A,
0x2C8B,
0x2C8C,
0x2C8D,
0x2C8E,
0x2C8... | mit |
BBC-News/alephant-broker | lib/alephant/broker/request/asset.rb | 827 | require "alephant/logger"
require "alephant/broker/errors/invalid_asset_id"
module Alephant
module Broker
module Request
class Asset
include Logger
attr_accessor :component
def initialize(component_factory, env = nil)
return if env.nil?
@component = component_f... | mit |
amoinier/ft_retro | srcs/D7.cpp | 974 | #include "D7.hpp"
/******************************************************************************
** CONSTRUCTOR
******************************************************************************/
D7::D7( Weapon *Weapon, unsigned int color) : Enemy(*new AEntity(2, 2, 2, 7), Weapon, 25, color, 10)
{
this->getShape... | mit |
mmbros/mananno | templates/templates.go | 3504 | // Generated by gentmpl; *** DO NOT EDIT ***
// Created: 2018-01-07 10:08:57
// Params: no_cache=false, no_go_format=false, asset_manager="go-bindata", func_map="funcMap"
package templates
import (
"html/template"
"io"
"path/filepath"
)
// type definitions
type (
// templateEnum is the type of the Templates
tem... | mit |
nrooney/greatLaura | js/main.js | 400 | jQuery(document).ready(function(){
jQuery('button.play').live('click', function(){
jQuery('section').hide();
jQuery('section#question').show();
});
jQuery('button#yes').live('click', function(){
jQuery('section').hide();
jQuery('section#answeryes').show();
});
jQuery('button#no').live('click', functio... | mit |
bmottag/vci_app | application/modules/jobs/views/form_erp_map.php | 4548 | <div id="page-wrapper">
<br>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-success">
<div class="panel-heading">
<a class="btn btn-success btn-xs" href=" <?php echo base_url().'jobs'; ?> "><span class="glyphicon glyphicon glyphicon-chevron-left" aria-hidden="true"></... | mit |
eric-chahin/query_parser | test/test_parsing.rb | 3208 | require 'test/unit'
require 'query_parser'
class ParsingTest < Test::Unit::TestCase
def test_parsing_normal_queries
parser = QueryParser::ParamParser.new
assert_equal parser.parse_query("foo"), "foo" => nil
assert_equal parser.parse_query("foo="), "foo" => ""
assert_equal parser.parse_query("foo=bar... | mit |
albertlouisong/albertlouisong.github.io | seasons_of_change_code/EnemyCount.cs | 245 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyCount : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| mit |
AstaraelWeeper/Portfolio | Portfolio/Portfolio/Account/VerifyPhoneNumber.aspx.designer.cs | 1419 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------... | mit |
gnerkus/chiffre | src/app/profile/profile.service.js | 523 | define([
'angular'
], function (angular) {
/* Profile Service */
// This defines a solution for problem spec 2
'use strict';
return function () {
// Set default username
// Localstorate is used for persistence
localStorage.setItem('username', 'Ifeanyi');
function setName(username) {
lo... | mit |
psyipm/postman_mta | app/models/postman_mta/tag.rb | 375 | module PostmanMta
class Tag < ApplicationModel
attr_reader :conversation_id
def initialize(conversation_id)
@conversation_id = conversation_id
end
def create(params)
post("/conversations/#{conversation_id}/tags", body: params)
end
def destroy(tag_id)
delete("/conversations... | mit |
cherniavskii/material-ui | packages/material-ui-icons/src/Stars.js | 325 | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z" /></g>
, 'Star... | mit |
alchemy-fr/resource-component | src/ResourceReaderResolver.php | 499 | <?php
/*
* This file is part of alchemy/resource-component.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Resource;
interface ResourceReaderResolver
{
/**
* Resolves... | mit |
etiam/ov | src/core/directionalLightNode.cpp | 2402 | /*
* directionallight.cpp
*
* Created on: Aug 19, 2016
* Author: jasonr
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <memory>
#include <sg/global.h>
#include <sg/nodeFactory.h>
#include <sg/boolAttribute.h>
#include <sg/floatAttribute.h>
#include <ut/utils.h>
#include <ut/box.h>
#include "... | mit |
clbr/SGDK | tools/resourcemanager/src/main/java/org/sgdk/resourcemanager/ui/panels/projectexplorer/modals/CreateSpriteDialog.java | 4832 | package org.sgdk.resourcemanager.ui.panels.projectexplorer.modals;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapte... | mit |
moto2002/tianzi-work | NgEnum.cs | 397 | using System;
public class NgEnum
{
public enum AXIS
{
X,
Y,
Z
}
public enum TRANSFORM
{
POSITION,
ROTATION,
SCALE
}
public static string[] m_TextureSizeStrings = new string[]
{
"32",
"64",
"128",
"256",
"512",
"1024",
"2048",
"4096"
};
public static int[] m_TextureSizeIntters ... | mit |
sasagichuki/nkemi_new_site | cache/compiled/files/2471d9bcd9da0ee42c88eef82eede279.yaml.php | 2789 | <?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Users/chaos/projects/nkemi_new_site/system/languages/ru.yaml',
'modified' => 1461737248,
'data' => [
'INFLECTOR_IRREGULAR' => [
'person' => 'люди',
'man' => 'человек',
'child' =... | mit |
bartsch-dev/jabref | src/main/java/org/jabref/gui/preftabs/AdvancedTab.java | 6980 | package org.jabref.gui.preftabs;
import java.awt.BorderLayout;
import java.util.Optional;
import javax.swing.BorderFactory;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import org.jabref.Globals;
import org.jabref.g... | mit |
zertico/softlayer | lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb | 2765 | module Softlayer
class Network
module Application
module Delivery
class Controller
module LoadBalancer
class VirtualServer < Softlayer::Entity
SERVICE = 'SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer'
attr_accessor :all... | mit |
grmlin/watched | src/__tests__/ModuleFactory-test.js | 38 | /**
* Created by aw on 07.03.15.
*/
| mit |
TeamLabyrinth4/Labyrinth-4 | Labyrinth-Game.Tests/MementoTests.cs | 493 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Labyrinth.Users;
namespace Labyrinth_Game.Tests
{
[TestClass]
public class MementoTests
{
[TestMethod]
public void TestMementoScore()
{
var testedMemento = new Memento(10, 5, 5);
Assert.... | mit |
TheoGauchoux/LudoTech | LudoTech/src/frontend/members/view/MemberSearchView.java | 2501 | package frontend.members.view;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SpringLayout;
import frontend.LudoTechApplication;
import frontend.utils.gu... | mit |
bati11/study-algorithm | aizu/Introduction-to-Algorithms-and-Data-Structures/ALDS1_4_C_Dictionary/ALDS1_4_C.rb | 956 | def to_key(s)
s.gsub!('A', '1')
s.gsub!('C', '2')
s.gsub!('G', '3')
s.gsub!('T', '4')
s.to_i
end
def hash(key, i)
(h1(key) + i * h2(key)) % 1046527
end
def h1(key)
key % 1046527
end
def h2(key)
1 + (key % (1046527 - 1))
end
class Dict
def initialize
@arr = []
end
def insert(s)
key = to_ke... | mit |
billwen/netopt | harpy3/test/models/cm_netopt_user_test.rb | 126 | require 'test_helper'
class CmNetoptUserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| mit |
timj/scons | test/Climb/filename--D.py | 2292 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# 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,
... | mit |
jaredbeck/hivegame | spec/board_spec.rb | 2699 | require "spec_helper"
describe Hivegame::Board do
let(:origin) { [0,0,0] }
context "when initialized" do
it("is empty") { should be_empty }
it("has a count of zero") { subject.count.should == 0 }
end
describe "#add" do
let(:bug) { double("Bug") }
it "adds a piece to the given position" do
... | mit |
olympum/caffeine | examples/jms-client/JMSSender.cs | 1250 | using System;
using javax.jms;
using javax.naming;
public class JMSSender {
public static void Main(string[] args) {
Console.WriteLine("Looking up context factory");
Context context = NamingContextHelper.getContext();
Console.WriteLine("Looking up connection factory");
QueueConnectionFactory queueConnection... | mit |
nicholaskim94/iotpaas | app/controllers/projects_api_controller.rb | 383 | class ProjectsApiController < BaseApiController
before_filter :find_project, only: [:show]
def index
render json: Project.where('owner_id = ?', @user.id)
end
def show
@project
end
private
def find_project
@project = Project.find_by_name(params[:projectName])
render nothing: true, status: :user_not_fou... | mit |
pacmacro/pm-server | src/main/java/com/pm/server/manager/TagManagerImpl.java | 4512 | package com.pm.server.manager;
import com.pm.server.PmServerException;
import com.pm.server.datatype.GameState;
import com.pm.server.datatype.Player;
import com.pm.server.registry.GameStateRegistry;
import com.pm.server.registry.PlayerRegistry;
import com.pm.server.registry.TagRegistry;
import org.springframework.bean... | mit |