repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
joykuotw/tiler | tiler/tiler-scripts/tests/test_merge.py | 4591 | import unittest
import sys, os
import shutil
import mapbox_vector_tile
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # Insanity for getting parent folder in path
from tiler_helpers import absolute_file_paths
from tiler import tiles_from_config
from merge import merge_tile_directories, ge... | mit |
ridwannaruto/NVS | src/Ridwan/EntityBundle/Form/VolunteercontactdetailsType.php | 1570 | <?php
namespace Ridwan\EntityBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class VolunteercontactdetailsType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @... | mit |
v-iam/azure-sdk-for-python | azure-mgmt-compute/azure/mgmt/compute/compute/v2016_03_30/models/virtual_machine_agent_instance_view.py | 1705 | # 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 ... | mit |
tufak/simdify | test/simd_vector_dum.cpp | 329 | #include <catch2/catch.hpp>
#include <simdee/simd_vectors/dum.hpp>
#include <simdee/simdee.hpp>
using B = sd::dumb;
using F = sd::dumf;
using U = sd::dumu;
using S = sd::dums;
#define SIMD_TYPE "DUM"
#define SIMD_TEST_TAG "[simd_vectors][dum]"
#define SIMD_WIDTH 1
#include "simd_vector_data1.inl"
#include "simd_vec... | mit |
NicolasFatoux/NfxLab.Sensors | NfxLab.MicroFramework/External/JSON.cs | 19239 | using System;
using System.Collections;
using System.Text;
using System.IO;
namespace NfxLab.MicroFramework.External
{
/// <summary>
/// This class encodes and decodes JSON strings.
/// Spec. details, see http://www.json.org/
///
/// JSON uses Arrays and Objects. These correspond here to the dataty... | mit |
TelerikFrenchConnection/JS-Applications-Teamwork | lib/npm/cssstyle@0.2.29/lib/properties/webkitBackgroundComposite.js | 293 | /* */
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-background-composite', v);
},
get: function () {
return this.getPropertyValue('-webkit-background-composite');
},
enumerable: true,
configurable: true
};
| mit |
klinker-consulting/adapt-analyzer | Adapt.Analyzer/Fakes/Properties/AssemblyInfo.cs | 1386 | 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: AssemblyTitle("Fa... | mit |
piotrwitek/react-redux-typescript-patterns | playground/typings/redux-thunk/index.d.ts | 1568 | import {
Action,
ActionCreatorsMapObject,
AnyAction,
Dispatch,
Middleware,
} from 'redux';
export interface ThunkDispatch<S, E, A extends Action> {
<R>(thunkAction: ThunkAction<R, S, E, A>): R;
<T extends A>(action: T): T;
}
export type ThunkAction<R, S, E, A extends Action> = (
dispat... | mit |
lisezmoi/alpha-bet | client/comps/logo.js | 220 | import React from 'react'
const Logo = props => (
<div className='Logo'>
<h1>Alpha Bet</h1>
<span
className='Logo-about'
onClick={props.onToggleAbout}
>i</span>
</div>
)
export default Logo
| mit |
EEJesse/BotBits | BotBits/Models/World/LayerItem.cs | 293 | namespace BotBits
{
public struct LayerItem<T> where T : struct
{
public Point Location { get; }
public T Data { get; }
public LayerItem(Point location, T data)
{
this.Location = location;
this.Data = data;
}
}
} | mit |
malte-wessel/react-router | modules/createMemoryHistory.js | 571 | import useQueries from 'history/lib/useQueries'
import baseCreateMemoryHistory from 'history/lib/createMemoryHistory'
export default function createMemoryHistory(options) {
// signatures and type checking differ between `useRoutes` and
// `createMemoryHistory`, have to create `memoryHistory` first because
// `us... | mit |
adirkuhn/Expresso-Livre | src/WebClient/WebClientBundle/DependencyInjection/Configuration.php | 884 | <?php
namespace WebClient\WebClientBundle\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:/... | mit |
StephenNUNES/DidYouDoIt | app/cache/prod/twig/3/2/32590f064da84989c98e34d60112ba69a5bee9bb76fb24c1b2e82f8567de8681.php | 3359 | <?php
/* TwigBundle:Exception:traces_text.html.twig */
class __TwigTemplate_32590f064da84989c98e34d60112ba69a5bee9bb76fb24c1b2e82f8567de8681 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = a... | mit |
PublicHealthEngland/ndr_support | test/hash_test.rb | 3530 | require 'test_helper'
# This tests our Hash extension
class HashTest < Minitest::Test
test 'value_by_path' do
my_hash = { 'one' => '1', 'two' => { 'twopointone' => '2.1', 'twopointtwo' => '2.2' } }
assert_equal my_hash['one'], my_hash.value_by_path('one')
assert_equal my_hash['two']['twopointone'], my_ha... | mit |
GorillaBus/PhySim | projects/local/noc-tests/app.old.js | 1573 | import AnimationPlayer from '../../../src/lib/AnimationPlayer';
import Vector from '../../../src/lib/Vector';
import Utils from '../../../src/lib/Utils';
import Vehicle from './lib/Vehicle';
import FlowField from './lib/FlowField';
window.onload = () => {
const canvas = document.getElementById("canvas");
const ctx... | mit |
g0e/ctd3 | src/ctd3.js | 32758 | /**
ctd3
Copyright (c) 2014 Masafumi.OSOGOE
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
// for JSHint
/* global d3 */
/* exported ctd3 */
/* jshint loopfunc: true */
/* ================================================================== */
/* ctd3 definition ... | mit |
JustinCarrao/voogasalad-final | src/com/print_stack_trace/voogasalad/controller/guiElements/userInputTypes/UserInputButton.java | 614 | package com.print_stack_trace.voogasalad.controller.guiElements.userInputTypes;
import com.print_stack_trace.voogasalad.controller.guiElements.gameObjects.GameObject;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;
public class UserInputButton extends UserInputType {
public UserInputButton(){
... | mit |
TJUSSE/ssetheme | templates/block--notice-subscribe-block.tpl.php | 255 | <div class="rightbar__module notice-subscribe-module">
<div class="notice-subscribe-module__wrap">
<div><a class="button" href="<?php print $variables['url']; ?>">订阅邮件</a></div>
<div class="text">不再错过通知</div>
</div>
</div>
| mit |
decaffeinate/decaffeinate-parser | src/util/parseNumber.ts | 421 | import { parse } from '@codemod/parser';
import { ExpressionStatement, NumericLiteral } from '@babel/types';
/**
* Parses JavaScript source representing a number.
*/
export default function parseNumber(string: string): number {
const expressionStatement = parse(`(${string})`).program
.body[0] as ExpressionStat... | mit |
OneDrive/onedrive-sdk-csharp | src/OneDriveSdk/Requests/Generated/IDriveRequestBuilder.cs | 2111 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | mit |
sdanyliv/linq2db | Source/DataProvider/Informix/InformixMappingSchema.cs | 1321 | using System;
using System.Text;
namespace LinqToDB.DataProvider.Informix
{
using Mapping;
using SqlQuery;
public class InformixMappingSchema : MappingSchema
{
public InformixMappingSchema() : this(ProviderName.Informix)
{
}
protected InformixMappingSchema(string configuration) : base(conf... | mit |
JimiC/ng2-stompjs-demo | src/app/components/status/status.component.ts | 596 | import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { STOMPService, STOMPState } from '../../services/stomp';
@Component({
selector: 'app-status',
templateUrl: './status.component.html',
styleUrls: ['./status.component.css']
})
export class StatusComponent impl... | mit |
melanchall/drywetmidi | DryWetMidi/Core/Events/Info/EventStatusBytes.cs | 2488 | namespace Melanchall.DryWetMidi.Core
{
internal static class EventStatusBytes
{
internal static class Global
{
public const byte Meta = 0xFF;
public const byte NormalSysEx = 0xF0;
public const byte EscapeSysEx = 0xF7;
}
internal static... | mit |
aayusharora/loklak_webclient | iframely/plugins/domains/theglobeandmail.com/globe.video.js | 890 | module.exports = {
re: [
/^https?:\/\/www\.theglobeandmail\.com\/[a-z\/\-]+video\/video+/i,
/^https?:\/\/www\.theglobeandmail\.com\/video\//i
],
mixins: [
"favicon",
"canonical",
"og-description",
"keywords",
"og-site",
"og-image",
"o... | mit |
safris-src/org | libx4j/xsb/compiler/src/main/java/org/libx4j/xsb/compiler/processor/model/element/FieldModel.java | 1429 | /* Copyright (c) 2008 lib4j
*
* 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, distri... | mit |
renyuneyun/core | src/Core/Notification/NotificationMailer.php | 1068 | <?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notification;
use Flarum\Core\User;
use Illuminate\Contracts\Mail\Mailer;
... | mit |
ulinux-embedded/ulinux-update-server | utilities/bootstrap-db.js | 866 | 'use strict';
const Path = require('path');
const config = require(Path.join(__dirname, '..', 'config.js'));
const fs = require('fs');
const mysql = require('mysql');
const db = mysql.createConnection({
connectionLimit : 10,
host : config.db_host,
database : config.db_database,
user... | mit |
tilemapjp/OSGeo.GDAL.Xamarin | gdal-1.11.0/gcore/rasterio.cpp | 126222 | /******************************************************************************
* $Id: rasterio.cpp 27119 2014-04-03 18:48:27Z rouault $
*
* Project: GDAL Core
* Purpose: Contains default implementation of GDALRasterBand::IRasterIO()
* and supporting functions of broader utility.
* Author: Frank War... | mit |
tty-hayashi/LindaClientDemo | bower_components/helios/src/Helios-Transcript.js | 12691 | define("helios/Helios-Transcript", ["amber/boot", "helios/Helios-Core", "amber_core/Kernel-Objects"], function($boot){"use strict";
var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
$core.addPackage('Helios-Transcript');
$core.packages["Helios-Transcript"].innerEval = function (expr) { re... | mit |
trepidity/autotask_api | lib/autotask_api/product.rb | 154 | module AutotaskAPI
class Product < Entity
self.fields = [ :name, :vendor_product_number, :manufacturer_product_name, :manufacturer_name ]
end
end
| mit |
joseph-onsip/pegjs-utils | buildList.js | 294 | 'use strict';
var extractList = require('./extractList');
module.exports = buildList;
// copied from https://github.com/pegjs/pegjs/blob/2005345/examples/css.pegjs#L39-L41
function buildList (first, rest, index) {
return (first !== null ? [first] : []).concat(extractList(rest, index));
}
| mit |
KattMingMing/vscode | src/vs/editor/contrib/find/test/common/findModel.test.ts | 42888 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | mit |
LunaFramework/Luna | luna/Assets/LuaObject/Unity/Lua_UnityEngine_UILineInfo.cs | 2048 | using UnityEngine;
using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_UnityEngine_UILineInfo : LuaObject {
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static public int constructor(IntPtr l) {
try {
UnityEngine.UILineInfo o;
o=new UnityEngine.UILineInfo... | mit |
GitTools/GitVersion | src/GitVersion.Core.Tests/Helpers/TestLogAppender.cs | 333 | using GitVersion.Logging;
namespace GitVersion.Core.Tests.Helpers;
public class TestLogAppender : ILogAppender
{
private readonly Action<string> logAction;
public TestLogAppender(Action<string> logAction) => this.logAction = logAction;
public void WriteTo(LogLevel level, string message) => this.logAction... | mit |
SlickOS/YABS | Source/YABS/IsIdentifier.cpp | 337 | #include "../YABS.hpp"
bool YABS::IsIdentifierChar(char c) {
if (std::isalnum(c)) return true;
if (c == '-' || c == '_') return true;
if (c == '+' || c == '=') return true;
return false;
}
bool YABS::IsFuncIdentifierChar(char c) {
if (std::isalnum(c)) return true;
if (c == '_') return true;
... | mit |
ObjectIsAdvantag/maretraite | depart/converter.go | 942 | // Copyright 2016, Stève Sfartz
// Licensed under the MIT License
// Fonctions de conversion d'une chaîne de caractères en date au format JJ/MM/AAAA
package depart
import (
"errors"
"time"
)
const JJMMAAADateFormat = "02/01/2006"
var ErrDateVide = errors.New("la date n'est pas renseignée")
var ErrDateFormatInvali... | mit |
bitpay/bitcore | packages/insight/src/components/head-nav/head-nav.module.ts | 393 | import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { DenominationComponentModule } from '../denomination/denomination.module';
import { HeadNavComponent } from './head-nav';
@NgModule({
declarations: [HeadNavComponent],
imports: [IonicModule, DenominationComponentModule],... | mit |
Microsoft/clrmd | src/Microsoft.Diagnostics.Runtime/src/Builders/FieldBuilder.cs | 1526 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using Microsoft.Diagnostics.Runtime.DacInterface;
using Microsoft.Diagnostics.Runtime.Implementation;... | mit |
Ju2ender/CSharp-Exercise | structurededitor-70298/Main/Controls/Containers/Linear/LinearContainerControl.cs | 2732 | using GuiLabs.Utils.Collections;
namespace GuiLabs.Canvas.Controls
{
public class LinearContainerControl : ContainerControl
{
#region ctors
public LinearContainerControl()
: base()
{
InitLayoutStrategy();
Init();
}
public LinearContainerControl(
ICollectionWithEvents<Control> bindToCollection)... | mit |
mathieuvg/mouchantic2 | src/Mouchantic/MainBundle/Entity/Detail.php | 2819 | <?php
namespace Mouchantic\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Mouchantic\MainBundle\Entity\Detail
*
* @ORM\Table()
* @ORM\Entity
*/
class Detail
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO"... | mit |
tomdev2008/NettyServer | java/src/test/server/wang/gnim/netty/server/dao/mybatis/TestDAOTest.java | 419 | package wang.gnim.netty.server.dao.mybatis;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import wang.gnim.netty.server.MockServer;
import wang.gnim.netty.server.dao.mybatis.TestDAO;
public class TestDAOTest {
@Test
public void test_() {
MockServer.start();
List<wang.gnim.netty.se... | mit |
ycabon/presentations | 2018-user-conference/arcgis-js-api-road-ahead/demos/gamepad/api-snapshot/dojo/cldr/nls/zh-hant/number.js | 386 | //>>built
define({group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"\u221e",minusSign:"-",decimal:".",superscriptingExponent:"\u00d7",nan:"\u975e\u6578\u503c",perMille:"\u2030",decimalFormat:"#,##0.###",currencyFormat:"\u00a4#,##0.00;(\u00a4#,##0.00)",plusSign:"+... | mit |
adrn/StreamMorphology | scripts/freqvar/run.py | 333 | # coding: utf-8
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import sys
# project
from streammorphology import ExperimentRunner
from streammorphology.freqvar import FreqVariance
runner = ExperimentRunner(ExperimentClass=FreqVariance)
runner.run()
... | mit |
AdamsLair/duality | Test/Core/Utility/GarbageCollectionTestSet.cs | 1332 | using System;
namespace Duality.Tests.Utility
{
/// <summary>
/// Represents the data used to test if instances are properly collected afer a garbage collection.
/// </summary>
public class GarbageCollectionTestSet
{
/// <summary>
/// Creates a new <see cref="GarbageCollectionTestSet"/> without instances to ... | mit |
ocdogan/fluentgo | vendor/gopkg.in/olivere/elastic.v2/indices_put_settings.go | 5244 | // Copyright 2012-2016 Oliver Eilhard. All rights reserved.
// Use of this source code is governed by a MIT-license.
// See http://olivere.mit-license.org/license.txt for details.
package elastic
import (
"fmt"
"net/url"
"strings"
"gopkg.in/olivere/elastic.v2/uritemplates"
)
// IndicesPutSettingsService changes... | mit |
jblarsen/leaflet-tilelayer-wms-pydap | src/wms-ajax-proxy.js | 6074 | /****************************************************************************
wms-ajax-proxy.js,
(c) 2015, FCOO
https://github.com/FCOO/leaflet-tilelayer-wms-pydap
https://github.com/FCOO
****************************************************************************/
(function ($, window, document, undefined) {
... | mit |
veriKami/ePF_API_doc | ePF_API_doxy-0.2.x-dev/html/classep___s_n___orzeczenie.js | 2001 | var classep___s_n___orzeczenie =
[
[ "__toString", "classep___s_n___orzeczenie.html#a7516ca30af0db3cdbf9a7739b48ce91d", null ],
[ "autorzy", "classep___s_n___orzeczenie.html#ac66efa4209f50d765772be02a881381e", null ],
[ "forma", "classep___s_n___orzeczenie.html#a608fa64fd97142801ced83ea87121df2", null ],
... | mit |
andyshao/Design-Patterns-in-CSharp | AbstractFactory/Program.cs | 720 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AbstractFactory
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("提供一个创建一系列相关或相互依赖对象的接口,而无需指定它们具体的类。抽象工厂模式有成为Kit模式,它是一种对象创建型模式。");
SkinFactory factory;
... | mit |
superdyzio/PWR-Stuff | AIR-ARR/Projekt Zespołowy/catkin_ws/src/robot_localization/test/test_ekf.cpp | 2402 | #include "robot_localization/ros_filter_types.h"
#include <limits>
#include <gtest/gtest.h>
using namespace RobotLocalization;
class RosEkfPassThrough : public RosEkf
{
public:
RosEkfPassThrough()
{
}
Ekf &getFilter()
{
return filter_;
}
};
TEST (EkfTest, Measurements)
{
RosEkfPass... | mit |
Bago213/materia | qa/rpc-tests/pruning.py | 16675 | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test pruning code
# ********
# WARNING:
# This test uses 4GB of disk space.
# This test takes 30 mins... | mit |
umpirsky/language-list | data/fa_IR/language.php | 17585 | <?php return array (
'ab' => 'آبخازی',
'ace' => 'آچئی',
'ach' => 'آچولیایی',
'ada' => 'آدانگمهای',
'ady' => 'آدیجیایی',
'arp' => 'آراپاهویی',
'an' => 'آراگونی',
'arc' => 'آرامی',
'sam' => 'آرامی سامری',
'arw' => 'آراواکی',
'as' => 'آسامی',
'asa' => 'آسو',
'os' => 'آسی',
'aa' => 'آفاری',
'... | mit |
olmozavala/OWGIS_V2 | src/java/com/mapviewer/tools/xmlFileFilter.java | 1510 | /*
* Copyright (c) 2013 Olmo Zavala
* 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, dis... | mit |
liduanw/wikipedia-ios | www/js/listeners.js | 7758 | (function () {
var bridge = require("./bridge");
var transformer = require("./transformer");
var refs = require("./refs");
var issuesAndDisambig = require("./transforms/collapsePageIssuesAndDisambig");
// DOMContentLoaded fires before window.onload! That's good!
// See: http://stackoverflow.com/a/3698214/135557
docume... | mit |
lcs2/carpg | external/SLikeNet/Source/src/LocklessTypes.cpp | 1432 | /*
* Original work: Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
* of patent rights can be found in the RakNet Patents.txt file... | mit |
artsy/metaphysics | src/schema/v1/input_fields/event_status.ts | 1624 | import { GraphQLEnumType } from "graphql"
import { deprecate } from "lib/deprecation"
const EventStatus = {
type: new GraphQLEnumType({
name: "EventStatus",
values: {
closed: {
value: "closed",
deprecationReason: deprecate({
inVersion: 2,
preferUsageOf: "CLOSED",
... | mit |
Geolim4/phpfastcache | lib/Phpfastcache/Entities/DriverIO.php | 1538 | <?php
/**
*
* This file is part of Phpfastcache.
*
* @license MIT License (MIT)
*
* For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
*
* @author Georges.L (Geolim4) <contact@geolim4.com>
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/gra... | mit |
roxyboy/openpyxl | openpyxl/tests/test_number_format.py | 5388 | # file openpyxl/tests/test_number_format.py
# Copyright (c) 2010 openpyxl
#
# 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... | mit |
iap-mutant/godot | scene/gui/text_edit.cpp | 103699 | /*************************************************************************/
/* text_edit.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | mit |
Propanu/upm | src/rpr220/rpr220.hpp | 2690 | /*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2015-2016 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#in... | mit |
Khaledgarbaya/gatsby | www/src/pages/docs/bound-action-creators.js | 1547 | import React from "react"
import Functions from "../../components/function-list"
import { rhythm, scale } from "../../utils/typography"
import Container from "../../components/container"
class ActionCreatorsDocs extends React.Component {
render() {
return (
<Container>
<h1 css={{ marginTop: 0 }}>B... | mit |
ci2backend/ci2backend | assets/extensions/elfinder/js/commands/hidden.js | 300 | "use strict";
/**
* @class elFinder command "hidden"
* Always hidden command for uiCmdMap
*
* @author Naoki Sawada
**/
elFinder.prototype.commands.hidden = function() {
//this._disabled = true;
this.hidden = true;
this.updateOnSelect = false;
this.getstate = function() {
return -1;
}
}; | mit |
rodolfobais/proylectura | data/vendors/swiftmailer/lib/classes/Swift/MemorySpool.php | 1584 | <?php
/*
* This file is part of SwiftMailer.
* (c) 2011 Fabien Potencier <fabien.potencier@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Stores Messages in memory.
* @package Swift
* @author Fabien Potencier
*/
... | mit |
gianthat/carrieburnett | web/app/plugins/wp-rocket/inc/3rd-party/hosting/savvii.php | 1514 | <?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
if ( class_exists( '\\Savvii\\CacheFlusherPlugin' ) & class_exists( '\\Savvii\\Options' ) ) :
/**
* Don't display the Varnish options tab for Savvii users
*
* @since 2.7
*/
add_filter( 'rocket_display_varnish_options_tab', '__return_false' );
/**
... | mit |
1144/demos | blog/src-define/biz/content.js | 222 |
define(function(require){
var trim = require('trim');
var content = ' content ! ';
console.log(trim(content));
var parseJSON = require('core/string/parseJSON');
console.log( parseJSON('{a:1}') );
});
| mit |
jirutka/gitlabhq | spec/controllers/groups/children_controller_spec.rb | 12823 | require 'spec_helper'
describe Groups::ChildrenController do
let(:group) { create(:group, :public) }
let(:user) { create(:user) }
let!(:group_member) { create(:group_member, group: group, user: user) }
describe 'GET #index' do
context 'for projects' do
let!(:public_project) { create(:project, :publi... | mit |
java-webbee/webBee | webBee-redis/src/main/java/webbee/redis/RedisHash.java | 601 | package webbee.redis;
import org.bee.webBee.DataStoreBase;
import java.util.Map;
/**
* data 2017-04-22 00:19
* E-mail sis.nonacosa@gmail.com
* @author sis.nonacosa
*/
public class RedisHash implements DataStoreBase {
public boolean insert(String key, Map<String,String> value) {
return Redis.cre... | mit |
bitbandi/go-poloniex | order.go | 473 | package poloniex
type OrderBook struct {
Asks [][]interface{} `json:"asks"`
Bids [][]interface{} `json:"bids"`
IsFrozen int `json:"isFrozen,string"`
Error string `json:"error"`
}
// This can probably be implemented using UnmarshalJSON
/*
type OrderBook struct {
Bids []Orderb `... | mit |
Mozu/mozu-java | mozu-java-core/src/main/java/com/mozu/api/contracts/productadmin/ProductLocalizedImage.java | 2634 | /**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.productadmin;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
... | mit |
ltcperera/dynarray | docs/search/variables_4.js | 155 | var searchData=
[
['logical_5fsize',['logical_size',['../struct__DYNARRAY__METADATA.html#ae57ed795f5df69324da40a9d14a368d9',1,'_DYNARRAY_METADATA']]]
];
| mit |
miraculixx/geocoder | geocoder/mapbox_reverse.py | 1285 | #!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
from geocoder.base import Base
from geocoder.mapbox import Mapbox
from geocoder.keys import mapbox_key
from geocoder.location import Location
class MapboxReverse(Mapbox, Base):
"""
Mapbox Reverse Geocoding
========================
... | mit |
rgarita/sp-dev-fx-webparts | samples/react-tenant-properties/src/webparts/tenantProperties/components/ITenantPropertyPanelProps.ts | 352 | import {IListViewItems } from "./IListViewItems";
import { WebPartContext } from '@microsoft/sp-webpart-base';
export enum panelMode {
"New",
"edit",
"Delete"
}
export interface ITenantPropertyPanelProps {
mode:panelMode;
showPanel: boolean;
TenantProperty: IListViewItems ;
onDismiss(refresh?:boolean) : voi... | mit |
GooTechnologies/goojs | visual-test/goo/entities/Clone/Clone-cameraComponent-vtest.js | 921 | goo.V.attachToGlobal();
V.describe('Cloning camera components');
var gooRunner = V.initGoo();
var world = gooRunner.world;
var debugRenderSystem = new DebugRenderSystem();
debugRenderSystem.doRender.CameraComponent = true;
gooRunner.renderSystems.push(debugRenderSystem);
world.setSystem(debugRenderSystem);
... | mit |
olendorf/code4lib2016_mtcars_presentation | libraries/frameworks/landslide/themes/machinalis/js/slides.js | 7590 | function main() {
// Since we don't have the fallback of attachEvent and
// other IE only stuff we won't try to run JS for IE.
// It will run though when using Google Chrome Frame
if (document.all) { return; }
var currentSlideNo;
var notesOn = false;
var slides = document.getElementsByClassName('slide');... | mit |
t3kit/felayout_t3kit | dev/js/main/contentElements/carousel.js | 1204 | (function($) {
'use strict';
// document load event
$(document).ready(function() {
// initialize swiper when document ready
// http://idangero.us/swiper/api/
$('.js__logo-carousel').swiper({
nextButton: '.js__logo-carousel__btn-next',
prevButton: '.js__logo-... | mit |
aspose-slides/Aspose.Slides-for-Java | Examples/src/main/java/com/aspose/slides/examples/charts/OrganizationChart.java | 919 | package com.aspose.slides.examples.charts;
import com.aspose.slides.ISmartArt;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.aspose.slides.SmartArtLayoutType;
import com.aspose.slides.examples.RunExamples;
public class OrganizationChart
{
//ExStart:OrganizationChart
p... | mit |
signaflo/java-timeseries | math/src/main/java/com/github/signaflo/math/function/MultivariateFunction.java | 1653 | /*
* Copyright (c) 2016 Jacob Rachiele
*
* 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 |
lizhijun/webuploader | jekyll/js/global.js | 2412 | jQuery(function() {
var $ = jQuery,
$toc = $('.post-toc');
$toc.each(function() {
var $this = $( this ),
postion = $this.offset();
$this.affix({
offset: {
top: postion.top - 80
}
});
});
if ( $toc.length ) {
... | mit |
jhauberg/ComponentKit-Example-RockPaperScissors | Properties/AssemblyInfo.cs | 1454 | 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: AssemblyTitle("Co... | mit |
jszczepankiewicz/dynks | filter/src/main/java/dynks/cache/Entry.java | 1464 | package dynks.cache;
import java.util.HashMap;
/**
* Cache content extending directly from HashMap to being able to be provided directly without conversion to jedis.
*/
public class Entry extends HashMap<String, String> {
public static final String PAYLOAD = "v";
public static final String ETAG = "e";
... | mit |
paquettg/php-html-parser | src/PHPHtmlParser/Exceptions/CircularException.php | 174 | <?php
declare(strict_types=1);
namespace PHPHtmlParser\Exceptions;
use Exception;
/**
* Class CircularException.
*/
final class CircularException extends Exception
{
}
| mit |
faxue-msft/MIEngine | src/MIDebugEngine/Engine.Impl/Variables.cs | 29063 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.Debugger.Interop;
using System.Collections;
using System.Diagnostics;
u... | mit |
P0T4T0x/AKGBensheim | backend/src/main/java/de/tobiaserthal/akgbensheim/backend/provider/homework/HomeworkColumns.java | 2902 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Tobias Erthal
*
* 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 |
alexforencich/verilog-wishbone | tb/test_axis_wb_master_8_32.py | 10831 | #!/usr/bin/env python
"""
Copyright (c) 2016 Alex Forencich
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, merg... | mit |
alu0100600582/practica9 | lib/GemaMatriz/matrizdispersa.rb | 1329 |
class MatrizDispersa < Matriz
def initialize(filas, columnas, velementos)
super(filas, columnas)
@vvalores= Array.new
@vfil= Array.new
@vcol = Array.new
longitud=(@filas*@columnas)
i=0
while(i<longitud)
if(velementos[i]!=0)
... | mit |
MichaLasry/ImageTalke | functions/node_modules/firebase-admin/node_modules/google-gax/node_modules/protobufjs/tests/lib_path.js | 30 | require("../lib/path/tests");
| mit |
gizwits/airconditioner-android | src/com/gizwits/framework/sdk/CmdCenter.java | 11287 | /**
* Project Name:XPGSdkV4AppBase
* File Name:CmdCenter.java
* Package Name:com.gizwits.framework.sdk
* Date:2015-1-27 14:47:19
* Copyright (c) 2014~2015 Xtreme Programming Group, Inc.
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil... | mit |
Claudiu/Moongrace | Moongrace/Bootcamp/Model.php | 80 | <?php
class Model extends Application {
public function __construct()
{
}
}
| mit |
xissburg/XDefrac | boost/intrusive/detail/mpl.hpp | 8919 | /////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2006-2014
// (C) Copyright Microsoft Corporation 2014
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www... | mit |
georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/Informative/InfCore/ModelingAuthority.java | 2887 | /**
*/
package gluemodel.CIM.IEC61970.Informative.InfCore;
import gluemodel.CIM.IEC61970.Core.IdentifiedObject;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Modeling Authority</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following f... | mit |
Bugfry/exercises | exercism/rust/leap/src/lib.rs | 105 | pub fn is_leap_year (year: i32) -> bool {
(year % 4 == 0) && ((year % 100 > 0) || (year % 400 == 0))
}
| mit |
edbiler/BazaarCorner | cometchat/widgets/online/index.php | 5470 | <?php
/*
CometChat
Copyright (c) 2012 Inscripts
CometChat ('the Software') is a copyrighted work of authorship. Inscripts
retains ownership of the Software and any copies of it, regardless of the
form in which the copies may exist. This license is not a sale of the
original Software or any copies.
B... | mit |
anhstudios/swganh | data/scripts/templates/object/tangible/furniture/all/shared_frn_all_couch_divan_s1.py | 460 | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/furniture/all/shared_frn_all_couch_divan_s1.iff"
result.attribute_t... | mit |
rjinaga/IocServiceStack | Tests/IocServiceStack.Tests/ServicesAccessTests.cs | 3538 | #region License
// Copyright (c) 2016-2017 Rajeswara Rao Jinaga
//
// 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 |
Schmavery/facebook-chat-api | src/getThreadPictures.js | 1925 | "use strict";
var utils = require("../utils");
var log = require("npmlog");
module.exports = function(defaultFuncs, api, ctx) {
return function getThreadPictures(threadID, offset, limit, callback) {
if (!callback) {
throw { error: "getThreadPictures: need callback" };
}
var form = {
thread_... | mit |
joelgarciajr84/site | wp-content/plugins/ws-register/assets/javascripts/plugins/jquery.mask.admin.js | 9532 | /**
* jquery.mask.js
* @version: v1.5.4
* @author: Igor Escobar
*
* Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com
*
* Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com
*
* The MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Permiss... | mit |
phpManufakturHeirs/kfBasic | Control/kitFilter/BasicFilter.php | 2485 | <?php
/**
* kitFramework::kfBasic
*
* @author Team phpManufaktur <team@phpmanufaktur.de>
* @link https://kit2.phpmanufaktur.de
* @copyright 2013 Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/
namespace phpManufaktur\Basic\Control\kitFilter;
... | mit |
HPC-Group/Mocca | mocca/src/log/ConsoleLog.cpp | 4531 | /*****************************************************************************************
* *
* GHOUL *
* General Helpful Open Utility Library ... | mit |
civiclee/Hack4Cause2017 | src/rumrunners/public_html/wp-content/themes/uncode/woocommerce/loop/loop-end.php | 143 | <?php
/**
* Product Loop End
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.0.0
*/
?>
</div>
</div>
</div> | mit |
sjkp/PowerBI-visuals | src/Clients/Visuals/common/newDataLabelUtils.ts | 17932 | /*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* 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 restrict... | mit |
anhstudios/swganh | data/scripts/templates/object/tangible/ship/crafted/weapon/shared_shield_effectiveness_intensifier_mk5.py | 512 | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/ship/crafted/weapon/shared_shield_effectiveness_intensifier_mk5.iff"... | mit |