repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
daejunpark/jsaf | tests/cfg_tests/throw2.js | 391 | /*******************************************************************************
Copyright (c) 2012, S-Core.
All rights reserved.
Use is subject to license terms.
This distribution may include materials developed by third parties.
**********************************************************************... | bsd-3-clause |
jon-morra-zefr/vowpal_wabbit | python/setup.py | 8040 | # -*- coding: utf-8 -*-
"""Vowpal Wabbit setup module """
import platform
import subprocess
import sys
from codecs import open
from ctypes.util import find_library
from distutils.command.clean import clean as _clean
from os import environ, makedirs, path, remove, walk
from setuptools import setup, Extension, find_pack... | bsd-3-clause |
diofeher/django-nfa | build/lib/django/core/management/commands/sql.py | 344 | from django.core.management.base import AppCommand
class Command(AppCommand):
help = "Prints the CREATE TABLE SQL statements for the given app name(s)."
output_transaction = True
def handle_app(self, app, **options):
from django.core.management.sql import sql_create
return '\n'.join(sql_c... | bsd-3-clause |
som-snytt/xsbt | ivy/src/main/scala/sbt/Artifact.scala | 8136 | /* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt
import java.io.File
import java.net.URL
import sbt.serialization._
final case class Artifact(name: String, `type`: String, extension: String, classifier: Option[String], configurations: Iterable[Configuration], url: Option[URL], ex... | bsd-3-clause |
endlessm/chromium-browser | third_party/devtools-frontend/src/node_modules/ramda/src/reduceWhile.js | 1514 | var _curryN = /*#__PURE__*/require('./internal/_curryN');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var _reduced = /*#__PURE__*/require('./internal/_reduced');
/**
* Like [`reduce`](#reduce), `reduceWhile` returns a single item by iterating
* through the list, successively calling the iterator func... | bsd-3-clause |
naveenu/Adlibre-TMS-master | adlibre_tms/apps/reporting/base.py | 114 | __all__ = ['Report']
class Report(object):
def __init__(self, request):
self.request = request
| bsd-3-clause |
eltondias/SistemaCobrancaBG | vendor/zendframework/zendframework/library/Zend/Http/Client/Exception/RuntimeException.php | 496 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
n... | bsd-3-clause |
MitLware/MitLware-scala-experimental | src/org/opticalmitlware/Comparison.scala | 529 | package org.opticalmitlware
import scalaz._
import scalaz.MonadState._
trait OrderImpl[T,Env] {
def better( first : T, second : T ) : Search[T,Env]
}
trait MetricImpl[T,Env] {
def cost( from : T, to : T ) : Search[Double,Env]
def gain( from : T, to : T ) : Search[Double,Env] = for { d <- cost(from,to) } yield ... | bsd-3-clause |
PeterWangIntel/chromium-crosswalk | chrome/utility/chrome_content_utility_client.cc | 14810 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/utility/chrome_content_utility_client.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/json/json_r... | bsd-3-clause |
birm/Elemental | src/matrices/HelmholtzPML.cpp | 28517 | /*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
namespace El {
namespace pml {
tem... | bsd-3-clause |
pansapiens/mytardis | tardis/tardis_portal/iiif.py | 8466 | import json
import mimetypes
from StringIO import StringIO
from wand.exceptions import MissingDelegateError
from wand.image import Image
from lxml import etree
from lxml.etree import Element, SubElement
from django.conf import settings
from django.http import HttpResponse, HttpResponseNotFound
from django.views.deco... | bsd-3-clause |
darkrsw/safe | tests/clone_detector_tests/sproutcore/frameworks/foundation/validators/not_empty.js | 1111 | // ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
// Portions ©2008-2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ... | bsd-3-clause |
EuropeanSpallationSource/openxal | core/src/main/java/xal/tools/apputils/NumericCellRenderer.java | 1887 | //
// NumericCellRenderer.java
// xal
//
// Created by Thomas Pelaia on 6/17/05.
// Copyright 2005 Oak Ridge National Lab. All rights reserved.
//
package xal.tools.apputils;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.table.*;
import java.awt.Compon... | bsd-3-clause |
rmk135/dependency_injector | tests/unit/providers/configuration/test_from_ini_with_env_py2_py3.py | 4484 | """Configuration.from_ini() with environment variables interpolation tests."""
import os
from pytest import mark, raises
def test_env_variable_interpolation(config, ini_config_file_3):
config.from_ini(ini_config_file_3)
assert config() == {
"section1": {
"value1": "test-value",
... | bsd-3-clause |
bouhlelma/smt | smt/examples/rans_crm_wing/run_rans_crm_wing_rmtb.py | 375 | from smt.surrogate_models import RMTB
from smt.examples.rans_crm_wing.rans_crm_wing import (
get_rans_crm_wing,
plot_rans_crm_wing,
)
xt, yt, xlimits = get_rans_crm_wing()
interp = RMTB(
num_ctrl_pts=20, xlimits=xlimits, nonlinear_maxiter=100, energy_weight=1e-12
)
interp.set_training_values(xt, yt)
inter... | bsd-3-clause |
sgml/popcorn_maker | popcorn_gallery/base/helpers.py | 344 | import jinja2
from jingo import register
from easy_thumbnails.files import get_thumbnailer
@register.function
def thumbnail(image, size, crop=True, **kwargs):
defaults = {
'size': size,
'crop': crop,
}
if kwargs:
defaults.update(kwargs)
return get_thumbnailer(image).get_... | bsd-3-clause |
belushkin/textmining | vendor/jmikola/geojson/tests/GeoJson/Tests/Geometry/MultiPolygonTest.php | 3303 | <?php
namespace GeoJson\Tests\Geometry;
use GeoJson\GeoJson;
use GeoJson\Geometry\MultiPolygon;
use GeoJson\Geometry\Polygon;
use GeoJson\Tests\BaseGeoJsonTest;
class MultiPolygonTest extends BaseGeoJsonTest
{
public function createSubjectWithExtraArguments(array $extraArgs)
{
$class = new \Reflectio... | bsd-3-clause |
gilbertw1/k-9 | k9mail/src/main/java/com/fsck/k9/activity/Accounts.java | 85602 |
package com.fsck.k9.activity;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.con... | bsd-3-clause |
hackgnar/osquery | tests/integration/tables/memory_info.cpp | 1349 | /**
* Copyright (c) 2014-present, The osquery authors
*
* This source code is licensed as defined by the LICENSE file found in the
* root directory of this source tree.
*
* SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only)
*/
// Sanity check integration test for memory_info
// Spec file: specs/linux/memory_... | bsd-3-clause |
swcloud/api-client-staging | generated/java/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java | 30233 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/context.proto
package com.google.api;
/**
* <pre>
* A context rule provides information about the context for an individual API
* element.
* </pre>
*
* Protobuf type {@code google.api.ContextRule}
*/
public final class ContextRu... | bsd-3-clause |
LWJGL-CI/lwjgl3 | modules/lwjgl/nuklear/src/generated/java/org/lwjgl/nuklear/NkPluginFree.java | 2040 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.nuklear;
import javax.annotation.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* <h3>Type</h3>
*
* <pre><code>
* void (*{@lin... | bsd-3-clause |
meego-tablet-ux/meego-app-browser | webkit/tools/test_shell/webview_host_gtk.cc | 1674 | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtk/gtk.h>
#include "webkit/tools/test_shell/webview_host.h"
#include "base/logging.h"
#include "skia/ext/platform_canvas.h"
#include... | bsd-3-clause |
Frezertade/syncSms | module/Mobile_API/src/Mobile_API/Models/ben.php | 140 | <?php
/**
* Created by PhpStorm.
* User: BENGEOS-PC
* Date: 3/17/2016
* Time: 11:32 AM
*/
namespace Mobile_API\Model;
class ben
{
} | bsd-3-clause |
kmurthy1/nuage-kubernetes | nuagekubemon/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/member.go | 3228 | // Copyright 2016 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | bsd-3-clause |
JSchwehn/php | testdata/fuzzdir/corpus/Zend_tests_access_modifiers_013.php | 67 | <?php
final abstract class C {
private function priv() { }
}
?>
| bsd-3-clause |
chromium/chromium | chrome/common/net/x509_certificate_model.cc | 2798 | // Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/net/x509_certificate_model.h"
#include "base/i18n/number_formatting.h"
#include "base/strings/string_number_conversions.h"
#inclu... | bsd-3-clause |
chocoteam/choco3 | src/main/java/org/chocosolver/util/ESat.java | 786 | /*
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2019, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.util;
/**
* <br/>
*
* @author Charles P... | bsd-3-clause |
eusoubrasileiro/fatiando_seismic | cookbook/gravmag_imaging_geninv.py | 1211 | """
GravMag: 3D imaging using the Generalized Inverse method on synthetic gravity
data (more complex model + noisy data)
"""
from fatiando import gridder, mesher, utils
from fatiando.gravmag import prism, imaging
from fatiando.vis import mpl, myv
# Make some synthetic gravity data from a simple prism model
model = [
... | bsd-3-clause |
guorendong/iridium-browser-ubuntu | chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc | 44115 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
#include "base/timer/timer.h"
#include "chrome/browser/profiles/profile.h"
#i... | bsd-3-clause |
blossomica/airmozilla | airmozilla/manage/tests/views/test_picturegallery.py | 10875 | import os
import json
from nose.tools import eq_, ok_
from django.core.files import File
from django.conf import settings
from django.core.urlresolvers import reverse
from airmozilla.main.models import Event, Picture
from .base import ManageTestCase
class TestPictureGallery(ManageTestCase):
other_image = 'air... | bsd-3-clause |
hispindia/dhis2-Core | dhis-2/dhis-e2e-test/src/test/java/org/hisp/dhis/tracker/deduplication/merge/PotentialDuplicatesMergeTests.java | 5000 | /*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... | bsd-3-clause |
hainm/pythran | third_party/boost/simd/sdk/config/os/none.hpp | 720 | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | bsd-3-clause |
NCIP/cagrid-general | external/jglobus/jglobus-4.0.3/src/org/globus/gsi/gssapi/net/impl/GSIGssOutputStream.java | 1597 | /*
* Portions of this file Copyright 1999-2005 University of Chicago
* Portions of this file Copyright 1999-2005 The University of Southern California.
*
* This file or a portion of this file is licensed under the
* terms of the Globus Toolkit Public License, found at
* http://www.globus.org/toolkit/download/lice... | bsd-3-clause |
digideskio/merchant | example/manage.py | 234 | #!/usr/bin/env python
import os
import settings
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.local")
from django.core.management import execute_manager
execute_manager(settings)
| bsd-3-clause |
onionlang/onion | src/main/scala/onion/tools/CompilerFrontend.scala | 7177 | /* ************************************************************** *
* *
* Copyright (c) 2016-, Kota Mizushima, All rights reserved. *
* *
* ... | bsd-3-clause |
vincentsels/themes-gnap | custom/gnap-angular/js/develop/gnap/unhandled-error-notification.directive.js | 1326 | /**
* @desc Shows a notification if an unhandled error occurs
* @file unhandled-error-notification.directive.js
*/
(function () {
angular
.module('gnap')
.directive('gnapUnhandledErrorNotification', gnapUnhandledErrorNotification);
gnapUnhandledErrorNotification.$inject = ['$window', '$trans... | bsd-3-clause |
sgraham/nope | content/browser/service_worker/service_worker_context_wrapper.cc | 15402 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include <map>
#include <set>
#include <string>
#include <vector>
#include "b... | bsd-3-clause |
OrchardCMS/Orchard-Harvest-Website | src/Tools/MSBuild.Orchard.Tasks/Properties/AssemblyInfo.cs | 1300 | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MSBuild.Orchard.Tasks")]
[assembly: Assem... | bsd-3-clause |
ksclarke/droid | droid-core-interfaces/src/main/java/uk/gov/nationalarchives/droid/core/interfaces/signature/SignatureServiceException.java | 2403 | /**
* Copyright (c) 2012, The National Archives <pronom@nationalarchives.gsi.gov.uk>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* * Redistributions of source code must re... | bsd-3-clause |
broadinstitute/hellbender | src/main/java/org/broadinstitute/hellbender/tools/walkers/varianteval/evaluators/CompOverlap.java | 3004 | package org.broadinstitute.hellbender.tools.walkers.varianteval.evaluators;
import htsjdk.variant.variantcontext.Allele;
import htsjdk.variant.variantcontext.VariantContext;
import org.broadinstitute.hellbender.tools.walkers.varianteval.VariantEvalEngine;
import org.broadinstitute.hellbender.tools.walkers.varianteval.... | bsd-3-clause |
junmin-zhu/chromium-rivertrail | content/public/browser/web_contents_observer.cc | 1982 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/browser/web_contents_observer.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browse... | bsd-3-clause |
jasonchaffee/scala-js | tools/shared/src/main/scala/org/scalajs/core/tools/classpath/LinkingUnitClasspath.scala | 2293 | /* __ *\
** ________ ___ / / ___ __ ____ Scala.js tools **
** / __/ __// _ | / / / _ | __ / // __/ (c) 2013-2015, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ **
** /____/\___/_/ |_/... | bsd-3-clause |
uonafya/jphes | dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/dialect/DhisH2Dialect.java | 2112 | package org.hisp.dhis.hibernate.dialect;
/*
* Copyright (c) 2004-2015, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the ab... | bsd-3-clause |
facebook/css-layout | javascript/tests/Facebook.Yoga/YGAndroidNewsFeed.js | 35383 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
// @Generated by gentest/gentest.rb from gentest/fixtures/YGAndroidNewsFeed.html
var Yoga = Yoga || require("../../sources/entry-"... | bsd-3-clause |
go-lang/go | src/pkg/net/http/responsewrite_test.go | 5076 | // Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package http
import (
"bytes"
"io/ioutil"
"strings"
"testing"
)
type respWriteTest struct {
Resp Response
Raw string
}
func TestResponseWrite(t *test... | bsd-3-clause |
human-nyc/spree_newyorksunshine | app/controllers/spree/lookbooks_controller.rb | 467 | module Spree
class LookbooksController < Spree::BaseController
before_action :set_lookbooks
def index
redirect_to lookbook_path(@lookbooks.first)
end
def show
@lookbook = Lookbook.friendly.find(params[:id])
@image_stretcher_path = "//newyorksunshine-production.s3.amazonaws.com/pl... | bsd-3-clause |
ccecka/FLENS | flens/examples/tut05-page01-example2.cc | 1926 | #include <cxxstd/complex.h>
#include <cxxstd/iostream.h>
///
/// Define `USE_CXXLAPACK` before you include the FLENS headers
///
#ifndef USE_CXXLAPACK
#define USE_CXXLAPACK
#endif
#include <flens/flens.cxx>
using namespace std;
using namespace flens;
///
/// Elements are now defined to be *complex*
///
typedef compl... | bsd-3-clause |
krvinay123/test | pyang/plugins/name.py | 648 | """Name output plugin
"""
from pyang import plugin
def pyang_plugin_init():
plugin.register_plugin(NamePlugin())
class NamePlugin(plugin.PyangPlugin):
def add_output_format(self, fmts):
self.multiple_modules = True
fmts['name'] = self
def setup_fmt(self, ctx):
ctx.implicit_error... | isc |
rtablada/emberfire | index.js | 438 | /* jshint node: true */
'use strict';
module.exports = {
name: 'emberfire',
included: function included(app) {
this._super.included(app);
this.app.import({
development: app.bowerDirectory + '/firebase/firebase-debug.js',
production: app.bowerDirectory + '/firebase/firebase.js'
});
ap... | mit |
vileopratama/portal-toyotadjakarta | core/anomaly/file-field_type/resources/lang/ar/validation.php | 107 | <?php
return [
'valid_disk' => 'القرص المنسق للرفع :attribute غير موجود.',
];
| mit |
mavasani/roslyn | src/Features/Core/Portable/DocumentationComments/AbstractDocumentationCommentSnippetService.cs | 16115 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using Microsoft.C... | mit |
ontouchstart/docker-ruby-1.9 | ruby-1.9.3-p551/benchmark/bm_vm1_swap.rb | 76 | a = 1
b = 2
i=0
while i<30_000_000 # while loop 1
i+=1
a, b = b, a
end
| mit |
htve/GitlabForChinese | app/controllers/snippets/notes_controller.rb | 804 | class Snippets::NotesController < ApplicationController
include NotesActions
include ToggleAwardEmoji
skip_before_action :authenticate_user!, only: [:index]
before_action :snippet
before_action :authorize_read_snippet!, only: [:show, :index, :create]
private
def note
@note ||= snippet.notes.find(pa... | mit |
BlueCrystalLabs/android_sdk | Adjust/adjust/src/main/java/com/adjust/sdk/ActivityPackage.java | 4908 | //
// ActivityPackage.java
// Adjust
//
// Created by Christian Wellenbrock on 2013-06-25.
// Copyright (c) 2013 adjust GmbH. All rights reserved.
// See the file MIT-LICENSE for copying permission.
//
package com.adjust.sdk;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutp... | mit |
bameda/python-taiga | tests/test_milestones.py | 3121 | import datetime
from taiga.requestmaker import RequestMaker
from taiga.models import UserStory, Milestones
from taiga import TaigaAPI
import unittest
from mock import patch
from .tools import create_mock_json
from .tools import MockResponse
class TestMilestones(unittest.TestCase):
@patch('taiga.requestmaker.Reque... | mit |
adambreznicky/javascript | Geolocation/OLD/v1/tdrive_copy/clearTestingLineworkCollected.py | 655 | #TxDOT - Clear Uploaded within Linework_Collected data from Geolocation APP
#Adam Breznicky
#2014/04/18
import arcpy
def clearTestData():
roadways = "Database Connections\\Connection to Comanche.sde\\TPP_GIS.APP_TPP_GIS_ADMIN.Roadways\\TPP_GIS.APP_TPP_GIS_ADMIN.Linework_Collected"
print "LET THE CLEARING COM... | mit |
jingweno/bundler | lib/bundler/source/path.rb | 6908 | module Bundler
class Source
class Path < Source
autoload :Installer, "bundler/source/path/installer"
attr_reader :path, :options
attr_writer :name
attr_accessor :version
DEFAULT_GLOB = "{,*,*/*}.gemspec"
def initialize(options)
@options = options
@glob = opti... | mit |
procoders/admin | src/SleepingOwl/Admin/AdminServiceProvider.php | 2979 | <?php namespace SleepingOwl\Admin;
use SleepingOwl\Admin\Exceptions\ValidationException;
use SleepingOwl\Html\FormBuilder;
use SleepingOwl\Admin\Validation\Validator;
use Illuminate\Support\ServiceProvider;
use Intervention\Image\ImageServiceProvider;
class AdminServiceProvider extends ServiceProvider
{
/**
* @var... | mit |
scalp42/vagrant-1.0.7 | lib/vagrant/guest/redhat.rb | 2839 | require 'set'
require 'tempfile'
require 'vagrant/util/template_renderer'
module Vagrant
module Guest
class Redhat < Linux
# Make the TemplateRenderer top-level
include Vagrant::Util
def configure_networks(networks)
# Accumulate the configurations to add to the interfaces file as
... | mit |
GreatLakesEnergy/sesh-dash-beta | seshdash/static/sesh-ui/js/modern/pages/compose.js | 92 | $(document).ready(function() {
$('.summernote').summernote({
height: 350
});
}); | mit |
sufuf3/cdnjs | ajax/libs/froala-editor/3.0.3/js/languages/fi.js | 11046 | /*!
* froala_editor v3.0.3 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2019 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function... | mit |
platosha/nado.spb.ru | bower_components/openlayers3/test/spec/ol/format/polylineformat.test.js | 12772 | goog.provide('ol.test.format.Polyline');
describe('ol.format.Polyline', function() {
var format;
var points;
var flatPoints, encodedFlatPoints;
var floats, smallFloats, encodedFloats;
var signedIntegers, encodedSignedIntegers;
var unsignedIntegers, encodedUnsignedIntegers;
function resetTestingData() {... | mit |
michael-e/symphony-2 | symphony/lib/boot/func.utilities.php | 8193 | <?php
/**
* @package boot
*/
/**
* Redirects the browser to a specified location. Safer than using a
* direct header() call
*
* @param string $url
*/
function redirect($url)
{
// Just make sure.
$url = str_replace('Location:', null, $url);
if (headers_sent($filename, $line)) {
echo "<h1>E... | mit |
abdesselem/TestProject | vendor/omnipay/omnipay/src/Omnipay/PayPal/Message/RefundRequest.php | 599 | <?php
namespace Omnipay\PayPal\Message;
/**
* PayPal Refund Request
*/
class RefundRequest extends AbstractRequest
{
public function getData()
{
$data = $this->getBaseData('RefundTransaction');
$this->validate('transactionReference');
$data['TRANSACTIONID'] = $this->getTransactionR... | mit |
enclose-io/compiler | lts/deps/icu-small/source/common/ucnvsel.cpp | 25131 | // © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
* Copyright (C) 2008-2011, International Business Machines
* Corporation, Google and others. All Rights Reserved.
*
**... | mit |
kucharskimaciej/DM-Angular2 | todos/src/app/pipes/sort.ts | 524 | import {Pipe, PipeTransform} from 'angular2/angular2';
@Pipe({
name: 'sort',
pure: false
})
export class SortPipe implements PipeTransform {
transform(data: Array<any>, [property, reversed]): Array<any> {
const sorted = data.map(v => v) // clone
.sort((a, b) => {
if(a[pr... | mit |
sapk-fork/gitea | vendor/github.com/xanzy/go-gitlab/project_import_export.go | 5955 | package gitlab
import (
"bytes"
"fmt"
"time"
)
// ProjectImportExportService handles communication with the project
// import/export related methods of the GitLab API.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/settings/import_export.html
type ProjectImportExportService struct {
client *Cli... | mit |
kevinmel2000/DroidPHP | src/org/opendroidphp/app/common/parser/ConfigParser.java | 1737 | package org.opendroidphp.app.common.parser;
import java.io.BufferedReader;
import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ConfigParser implements Parser {
private HashMap<String, String> keyValue = new HashMap<String, String>();
public static ConfigPar... | mit |
priyolahiri/flexmailer | laravel/auth.php | 5818 | <?php namespace Laravel;
class Auth {
/**
* The current user of the application.
*
* @var object
*/
protected static $user;
/**
* The key used when storing the user ID in the session.
*
* @var string
*/
const user_key = 'laravel_user_id';
/**
* The key used when setting the "remember me" cook... | mit |
romanpitak/dotMailer-API-v2-PHP-client | src/DataTypes/ApiDocumentFolder.php | 493 | <?php
/**
*
*
* @author Roman Piták <roman@pitak.net>
*
*/
namespace DotMailer\Api\DataTypes;
/**
* Class ApiDocumentFolder
*
* @property XsInt id
* @property XsString name
* @property ApiDocumentFolderList childFolders
*/
final class ApiDocumentFolder extends JsonObject
{
protected function getProper... | mit |
Oiawesome/ShowdownServer | command-parser.js | 13101 | /**
* Command parser
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This is the command parser. Call it with CommandParser.parse
* (scroll down to its definition for details)
*
* Individual commands are put in:
* commands.js - "core" commands that shouldn't be modified
* config/commands.js - other co... | mit |
mxrrow/zaicoin | src/deps/boost/libs/multiprecision/test/math/test_ibeta_inv_1.cpp | 3711 | ///////////////////////////////////////////////////////////////
// Copyright 2011 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
#ifdef _MSC_VER
# define _SCL_SECURE_NO_WARNINGS
#endif
#define BOOST_M... | mit |
shalomeir/generator-snippod-hackathon | server/utils/validCheck.js | 226 | 'use strict';
var validCheck = {
isUrl: function(s) {
var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
return regexp.test(s);
}
};
module.exports = validCheck;
| mit |
JeroenVinke/aurelia-computed | build/tasks/doc.js | 1041 | var gulp = require('gulp');
var paths = require('../paths');
var typedoc = require('gulp-typedoc');
var typedocExtractor = require('gulp-typedoc-extractor');
var runSequence = require('run-sequence');
gulp.task('doc-generate', function(){
return gulp.src([paths.output + '*.d.ts', paths.doc + '/core-js.d.ts', './jspm... | mit |
tushart91/study-usc | Information Integration/Homework/HW8/Web-Karma-master/karma-commands/commands-worksheet/src/main/java/edu/isi/karma/controller/command/TestSPARQLEndPointCommand.java | 3480 | /*******************************************************************************
* Copyright 2012 University of Southern California
*
* 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
*
... | mit |
ArcherSys/ArcherVMPeridot | htdocs/piwik/plugins/CoreHome/angularjs/common/filters/trim.js | 348 | /*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
angular.module('piwikApp.filter').filter('trim', function() {
return function(string) {
if (string) {
return $.trim('' + string);
}
... | mit |
mattatcha/terraform-provider-convox | vendor/github.com/docker/docker/distribution/push_v2_test.go | 28599 | package distribution // import "github.com/docker/docker/distribution"
import (
"net/http"
"net/url"
"reflect"
"testing"
"github.com/docker/distribution"
"github.com/docker/distribution/context"
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/distribution/reference"
"github.com/docker/di... | mit |
luiseduardohdbackup/diem | dmAdminPlugin/lib/action/base/dmAdminBaseGeneratedModuleActions.php | 24985 | <?php
class dmAdminBaseGeneratedModuleActions extends dmAdminBaseActions
{
public function preExecute()
{
parent::preExecute();
$this->configuration = new $this->configurationClass();
$this->configuration->setAction($this);
$this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute', array('configu... | mit |
ardeshirj/atom | script/lib/include-path-in-packaged-app.js | 4145 | 'use strict'
const path = require('path')
const CONFIG = require('../config')
module.exports = function (filePath) {
return !EXCLUDED_PATHS_REGEXP.test(filePath) || INCLUDED_PATHS_REGEXP.test(filePath)
}
const EXCLUDE_REGEXPS_SOURCES = [
escapeRegExp('.DS_Store'),
escapeRegExp('.jshintrc'),
escapeRegExp('.np... | mit |
henry-gobiernoabierto/geomoose | htdocs/libs/dojo/dojox/grid/enhanced/nls/ko/Pagination.js | 575 | ({
"descTemplate": "${2} - ${3}/${1} ${0}",
"firstTip": "첫 페이지",
"lastTip": "마지막 페이지",
"nextTip": "다음 페이지",
"prevTip": "이전 페이지",
"itemTitle": "항목",
"pageStepLabelTemplate": "${0} 페이지",
"pageSizeLabelTemplate": "페이지당 ${0} 항목",
"allItemsLabelTemplate": "모든 항목",
"gotoButtonTitle": "특정 페이지로 이동",
"dialogTitle": "... | mit |
CaoPhiHung/CRM | vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php | 3721 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\EventDispatcher\Tests;
use Symfony\Compo... | mit |
DaveGreasley/Umbraco-CMS | src/Umbraco.Core/Models/Content.cs | 15526 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
namespace Umbraco.Core.Models
{
/// <summary>
/// Represents a Content object
/// </summary>
[Serializable]
[DataContract(IsReferen... | mit |
spookandpuff/spooky-core | .bundle/gems/httparty-0.15.6/spec/httparty/net_digest_auth_spec.rb | 7957 | require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
RSpec.describe Net::HTTPHeader::DigestAuthenticator do
def setup_digest(response)
digest = Net::HTTPHeader::DigestAuthenticator.new("Mufasa",
"Circle Of Life", "GET", "/dir/index... | mit |
bitcoin-solutions/multibit-hd | mbhd-swing/src/main/java/org/multibit/hd/ui/views/components/ListBoxes.java | 2761 | package org.multibit.hd.ui.views.components;
import org.multibit.hd.ui.languages.Languages;
import org.multibit.hd.ui.languages.MessageKey;
import org.multibit.hd.ui.views.components.renderers.TagPillListCellRenderer;
import org.multibit.hd.ui.views.themes.Themes;
import javax.swing.*;
import java.awt.*;
import java.... | mit |
knotwork/bbqcoin | src/sync.cpp | 3709 | // Copyright (c) 2011-2012 The Bitcoin developers
// Copyright (c) 2011-2012 BBQCoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sync.h"
#include "util.h"
#include <boost/foreach.hpp>
#ifdef DEBUG_... | mit |
hiadone/mobipopcon | application/models/Member_meta_model.php | 4089 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Member Meta model class
*
* Copyright (c) CIBoard <www.ciboard.co.kr>
*
* @author CIBoard (develop@ciboard.co.kr)
*/
class Member_meta_model extends CB_Model
{
/**
* 테이블명
*/
public $_table = 'member_meta';
/**
... | mit |
enettolima/magento-training | magento2ce/dev/tools/grunt/tasks/clean-black-list.js | 841 | /**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
module.exports = function (grunt) {
'use strict';
var fs = require('fs'),
_ = require('underscore'),
glob = require('glob'),
fst = require('../tools/fs-tools'),
pc = require('../co... | mit |
chapunazar/trainmaster | scripts/jquery.imagemapster.js | 169061 | /* ImageMapster
Version: 1.2.10 (2/25/2013)
Copyright 2011-2012 James Treworgy
http://www.outsharked.com/imagemapster
https://github.com/jamietre/ImageMapster
A jQuery plugin to enhance image maps.
*/
;
/// LICENSE (MIT License)
///
/// Permission is hereby granted, free of charge, to any perso... | mit |
warnergodfrey/eb_deployer | lib/eb_deployer/version_cleaner.rb | 770 | module EbDeployer
class VersionCleaner
def initialize(app, number_to_keep)
@app = app
@number_to_keep = number_to_keep
end
def clean(version_prefix = "")
if @number_to_keep > 0
versions_to_remove = versions_to_clean(version_prefix)
@app.remove(versions_to_remove, true)
... | mit |
hulkish/babel | scripts/tests/test262/run_babel_parser_test262.js | 3414 | "use strict";
const path = require("path");
const chalk = require("chalk");
const utils = require("./run_babel_parser_test262_utils");
const testDir = path.join(__dirname, "../../../build/test262");
const whitelistFile = path.join(__dirname, "test262_whitelist.txt");
const shouldUpdate = process.argv.indexOf("--updat... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/codemirror/3.24.0/addon/comment/comment.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:3e97196c078dbd44ee5a1e38dc2b9b97a161f256765f39efa02dc113eb8e4848
size 6207
| mit |
jonathanmz34/ztransfert | node_modules/ionic-native/dist/esm/plugins/3dtouch.d.ts | 4105 | import { Observable } from 'rxjs/Observable';
/**
* @name 3DTouch
* @description
* @usage
* Please do refer to the original plugin's repo for detailed usage. The usage example here might not be sufficient.
* ```
* import { ThreeDeeTouch } from 'ionic-native';
*
* // import for type completion on variables
* im... | mit |
cgvarela/ractive | src/parse/converters/element/processDirective.js | 2852 | import Parser from '../../Parser';
import readExpression from '../readExpression';
import flattenExpression from '../../utils/flattenExpression';
import parseJSON from '../../../utils/parseJSON';
var methodCallPattern = /^([a-zA-Z_$][a-zA-Z_$0-9]*)\(/,
methodCallExcessPattern = /\)\s*$/,
ExpressionParser;
Expressio... | mit |
masteinhauser/ursula | roles/common/templates/etc/serverspec/os_spec.rb | 4464 | require 'spec_helper'
describe file('/etc/pam.d/login') do
it {should contain '^@include common-auth' }
it {should contain '^@include common-account' }
it {should contain '^@include common-session' }
it {should contain '^@include common-password' }
end
describe file('/etc/pam.d/common-password') do
... | mit |
freesamael/npu-moboapp-programming-fall-2015 | b2g-dist-win32-20151125/chrome/devtools/modules/devtools/shared/gcli/source/lib/gcli/mozui/completer.js | 5177 | /*
* Copyright 2012, Mozilla Foundation and contributors
*
* 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 applica... | mit |
a233894432/Golang-lesson | src/gokit/examples/functions/calc.go | 269 | package main
import (
"fmt"
)
func Add(x, y int) int {
return x + y
}
func Subtract(x, y int) int {
return x - y
}
func main() {
x, y := 20, 10
result := Add(x, y)
fmt.Println("[Add]:", result)
result = Subtract(x, y)
fmt.Println("[Subtract]:", result)
}
| mit |
EmilMitev/TelerikAcademy | Single Page Applications/07. AngularJS Workshop/TheBigCatProject/TheBigCatProject.Server/Areas/HelpPage/Models/HelpPageApiModel.cs | 3976 | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net.Http.Headers;
using System.Web.Http.Description;
using TheBigCatProject.Server.Areas.HelpPage.ModelDescriptions;
namespace TheBigCatProject.Server.Areas.HelpPage.Models
{
/// <summary>
/// The model that represents an API ... | mit |
madgik/exareme | Exareme-Docker/src/exareme/exareme-worker/src/main/java/madgik/exareme/worker/art/executionEngine/dynamicExecutionEngine/event/createBufferConnect/CreateBufferConnectEventHandler.java | 5023 | /**
* Copyright MaDgIK Group 2010 - 2015.
*/
package madgik.exareme.worker.art.executionEngine.dynamicExecutionEngine.event.createBufferConnect;
/*
import java.rmi.RemoteException;
import madgik.exareme.db.art.concreteOperator.ConcreteOperatorID;
import madgik.exareme.db.art.container.ContainerJobs;
import madgik.exa... | mit |
Prabhatsingh411/logosNew | src/rpcdump.cpp | 2842 | // Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#include "base58.h"
#include <boost/lexica... | mit |
r22016/azure-sdk-for-net | src/ResourceManagement/RecoveryServices/RecoveryServices.Tests/ScenarioTests/VaultScenarioTests.cs | 2074 | //
// Copyright (c) Microsoft. All rights reserved.
//
// 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 l... | mit |