code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
using System.Globalization; using System.Collections.Generic; using ServiceStack.Common; using ServiceStack.Common.Web; using ServiceStack.ServiceHost; using ServiceStack.Configuration; using ServiceStack.FluentValidation; using ServiceStack.Text; using System; using System.Net; using System.Security.Cryptography; usi...
fanta-mnix/ServiceStack
src/ServiceStack.ServiceInterface/Auth/DigestAuthProvider.cs
C#
bsd-3-clause
6,338
<?php namespace mageekguy\atoum\fs; use mageekguy\atoum\fs\path\exception; class path { protected $drive = ''; protected $components = ''; protected $directorySeparator = DIRECTORY_SEPARATOR; public function __construct($value, $directorySeparator = null) { $this ->setDriveAn...
jubianchi/atoum
classes/fs/path.php
PHP
bsd-3-clause
7,037
from energenie import switch_off switch_off()
rjw57/energenie
examples/simple/off.py
Python
bsd-3-clause
47
require "og/store/sql/utils" module Og module SqliteUtils include SqlUtils # works fine without any quote. #-- # Is this verified? #++ def quote_column(val) return val end alias_method :quote_table, :quote_column end end
oxywtf/og
lib/og/adapter/sqlite/utils.rb
Ruby
bsd-3-clause
255
""" WSGI config for {{ cookiecutter.project_name }} project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via t...
aeikenberry/cookiecutter-django-rest-babel
{{cookiecutter.project_slug}}/config/wsgi.py
Python
bsd-3-clause
2,232
<?php require_once('connect.inc'); require_once('table.inc'); $references = array(); if (!(mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2")) || !($res = mysqli_store_result($link))) printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); $idx = 0; while ($row = m...
stephens2424/php
testdata/fuzzdir/corpus/ext_mysqli_tests_mysqli_result_references.php
PHP
bsd-3-clause
2,068
// // Mono.Security.Cryptography.SymmetricTransform implementation // // Authors: // Thomas Neidhart (tome@sbox.tugraz.at) // Sebastien Pouliot <sebastien@ximian.com> // // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com) // Copyright (C) 2004-2008 Novell, Inc (http://www.novell.com) // ...
ngs-doo/revenj
csharp/Core/Revenj.Core/Security/Mono.Security/Mono.Security.Cryptography/SymmetricTransform.cs
C#
bsd-3-clause
16,384
using System; using System.Collections.Generic; using System.Linq; using OrchardCore.ContentManagement.Routing; namespace OrchardCore.Autoroute.Services { public class AutorouteEntries : IAutorouteEntries { private readonly Dictionary<string, AutorouteEntry> _paths; private readonly Dictionary<...
petedavis/Orchard2
src/OrchardCore.Modules/OrchardCore.Autoroute/Services/AutorouteEntries.cs
C#
bsd-3-clause
3,716
/// <reference path="../../defs/tsd.d.ts"/> /// <reference path="./interfaces.d.ts"/> var path = require('path'); var fs = require('fs'); var _ = require('lodash'); var utils = require('./utils'); var cache = require('./cacheUtils'); var Promise = require('es6-promise').Promise; exports.grunt = require('grunt'); //////...
Softpagehomeware/grunt-ts
tasks/modules/compile.js
JavaScript
mit
9,276
using System; using System.ComponentModel.DataAnnotations; namespace Models.NorthwindIB.NH { [AttributeUsage(AttributeTargets.Class)] // NEW public class CustomerValidator : ValidationAttribute { public override Boolean IsValid(Object value) { var cust = value as Customer; if (cust != null && cust...
gilesbradshaw/breeze.server.net
Tests/Model_NorthwindIB_NH/Customer.extended.cs
C#
mit
1,202
require 'spec_helper' feature 'Users' do around do |ex| old_url_options = Rails.application.routes.default_url_options Rails.application.routes.default_url_options = { host: 'example.foo' } ex.run Rails.application.routes.default_url_options = old_url_options end scenario 'GET /users/sign_in cre...
yuyue2013/ss
spec/features/users_spec.rb
Ruby
mit
1,114
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdminService.Controller { using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.ServiceFab...
mcollier/ServiceFabricPubSub
src/ServiceFabricPubSub/Admin/Controllers/KeysController.cs
C#
mit
2,935
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
buzzengine/buzzengine
vendor/zend-framework/library/Zend/Feed/Writer/Extension/Atom/Renderer/Feed.php
PHP
mit
3,543
/******************************************************************************* * Copyright (c) 2015 * * 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 withou...
Peter-Maximilian/settlers-remake
jsettlers.logic/src/main/java/jsettlers/algorithms/heap/MinHeap.java
Java
mit
6,973
/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.help.console"]){ dojo._hasResource["dojox.help.console"]=true; dojo.provide("dojox.help.consol...
bjorns/logger
src/main/webapp/js/dojox/help/console.js
JavaScript
mit
1,517
import * as React from 'react'; import Checkbox from '@material-ui/core/Checkbox'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormControl from '@material-ui/core/FormControl'; import FormLabel from '@material-ui/core/FormLabel'; export...
callemall/material-ui
docs/src/pages/components/checkboxes/FormControlLabelPosition.tsx
TypeScript
mit
1,165
package backup // Copyright (c) Microsoft and contributors. 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 // // Unle...
seuffert/rclone
vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2017-07-01/backup/protectionintent.go
GO
mit
7,908
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyrig...
FlopySwitzerland/nessi
tmp/bake/Bake-Element-Controller-edit-ctp.php
PHP
mit
2,438
version https://git-lfs.github.com/spec/v1 oid sha256:b386bb4d8bf9eb9e8099152a3eb963073051fb960b30cd512b6a07bd1f751d3d size 734
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.2.0/datatype/lang/datatype_it-IT.js
JavaScript
mit
128
class MergeRequestObserver < BaseObserver def after_create(merge_request) notification.new_merge_request(merge_request, current_user) end def after_close(merge_request, transition) Note.create_status_change_note(merge_request, current_user, merge_request.state) notification.close_mr(merge_request, c...
Aruiwen/gitlabhq
app/observers/merge_request_observer.rb
Ruby
mit
724
using System; using System.Text; using System.Web; using System.Web.Http.Description; namespace TheBigCatProject.Server.Areas.HelpPage { public static class ApiDescriptionExtensions { /// <summary> /// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" ...
EmilMitev/Telerik-Academy
Single Page Applications/07. AngularJS Workshop/TheBigCatProject/TheBigCatProject.Server/Areas/HelpPage/ApiDescriptionExtensions.cs
C#
mit
1,513
package com.xeiam.xchange.taurus.dto; import si.mazi.rescu.HttpStatusExceptionSupport; import com.fasterxml.jackson.annotation.JsonProperty; public class TaurusException extends HttpStatusExceptionSupport { public TaurusException(@JsonProperty("error") Object error) { super(error.toString()); } }
cinjoff/XChange-1
xchange-taurus/src/main/java/com/xeiam/xchange/taurus/dto/TaurusException.java
Java
mit
309
using System; using System.Threading; using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; using Orleans.Configuration; namespace Orleans.Transactions { internal class ActiveTransactionsTracker : IDisposable { private readonly TransactionsOptions options; private readonly Tra...
ashkan-saeedi-mazdeh/orleans
src/Orleans.Transactions/InClusterTM/ActiveTransactionsTracker.cs
C#
mit
4,965
// 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. #include "pal_config.h" #include "pal_uid.h" #include "pal_utilities.h" #include <assert.h> #include <errno.h> #inc...
shmao/corefx
src/Native/Unix/System.Native/pal_uid.cpp
C++
mit
1,762
using System.Reflection; [assembly: AssemblyTitle("Cedar.EventStore.Tests")] [assembly: AssemblyDescription("")]
dcomartin/Cedar.EventStore
src/Cedar.EventStore.Tests/Properties/AssemblyInfo.cs
C#
mit
113
<?php namespace Lexik\Bundle\JWTAuthenticationBundle; /** * Events. * * @author Dev Lexik <dev@lexik.fr> */ final class Events { /** * Dispatched after the token generation to allow sending more data * on the authentication success response. */ const AUTHENTICATION_SUCCESS = 'lexik_jwt_auth...
DevKhater/symfony2-testing
vendor/lexik/jwt-authentication-bundle/Events.php
PHP
mit
2,311
<?php global $_MODULE; $_MODULE = array(); $_MODULE['<{gridhtml}prestashop>gridhtml_cf6b972204ee563b4e5691b293e931b6'] = 'Visualització simple taula HTML'; $_MODULE['<{gridhtml}prestashop>gridhtml_05ce5a49b49dd6245f71e384c4b43564'] = 'Permet que el sistema d\'estadístiques mostri les dades en una quadrícula.'; retu...
insbadia-dawm8/gitteam
proyecto/modules/gridhtml/translations/ca.php
PHP
mit
336
var fs = require('fs') var path = require('path') var util = require('util') var semver = require('semver') exports.checkEngine = checkEngine function checkEngine (target, npmVer, nodeVer, force, strict, cb) { var nodev = force ? null : nodeVer var eng = target.engines var opt = { includePrerelease: true } if ...
giovannic/giovannic.github.com
node_modules/npm/node_modules/npm-install-checks/index.js
JavaScript
mit
4,201
package main import ( "fmt" "time" "github.com/google/jsonapi" ) // Blog is a model representing a blog site type Blog struct { ID int `jsonapi:"primary,blogs"` Title string `jsonapi:"attr,title"` Posts []*Post `jsonapi:"relation,posts"` CurrentPost *Post `jsonapi:"...
aren55555/jsonapi
examples/models.go
GO
mit
2,237
require File.expand_path('../../../enumerable/shared/enumeratorized', __FILE__) describe :keep_if, :shared => true do it "deletes elements for which the block returns a false value" do array = [1, 2, 3, 4, 5] array.send(@method) {|item| item > 3 }.should equal(array) array.should == [4, 5] end it "r...
benlovell/rubyspec
core/array/shared/keep_if.rb
Ruby
mit
1,516
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using Orleans.Metadata; namespace Orleans.Runtime.Versions { /// <summary> /// Functionality for querying the declared version of grain interfaces. /// </summary> internal class GrainVersionManifest ...
veikkoeeva/orleans
src/Orleans.Core/Manifest/GrainVersionManifest.cs
C#
mit
14,080
//===---- include/gcinfo/gcinfoutil.cpp -------------------------*- C++ -*-===// // // LLILC // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. // //===--------------------------------------------------------------...
tempbottle/llilc
lib/GcInfo/GcInfoUtil.cpp
C++
mit
3,819
using System; namespace ClosedXML.Excel { internal class XLSheetView : IXLSheetView { public XLSheetView() { View = XLSheetViewOptions.Normal; ZoomScale = 100; ZoomScaleNormal = 100; ZoomScalePageLayoutView = 100; ZoomScaleSheetLayout...
b0bi79/ClosedXML
ClosedXML/Excel/XLSheetView.cs
C#
mit
2,252
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
DDoS/SpongeForge
src/main/java/org/spongepowered/mod/mixin/entityactivation/MixinWorld_Activation.java
Java
mit
2,737
module Danger class ExampleManyMethodsPlugin < Plugin def one end # Thing two # def two(param1) end def two_point_five(param1 = nil) end # Thing three # # @param [String] param1 # A thing thing, defaults to nil. # @return [void] # def three(pa...
KrauseFx/danger
spec/fixtures/plugins/plugin_many_methods.rb
Ruby
mit
995
namespace MYOB.AccountRight.SDK.Contracts.Version2.Company { /// <summary> /// Purchase preferences /// </summary> public class CompanyPurchasesPreferences { /// <summary> /// Purchases' terms preferences /// </summary> public CompanyPurchasesPreferencesTerms Terms {...
MYOB-Technology/AccountRight_Live_API_.Net_SDK
MYOB.API.SDK/SDK/Contracts/Version2/Company/CompanyPurchasesPreferences.cs
C#
mit
343
/* * Websock: high-performance binary WebSockets * Copyright (C) 2012 Joel Martin * Licensed under MPL 2.0 (see LICENSE.txt) * * Websock is similar to the standard WebSocket object but Websock * enables communication with raw TCP sockets (i.e. the binary stream) * via websockify. This is accomplished by base64 e...
jerry-0824/017_stone
web/vnc/include/websock.js
JavaScript
mit
15,502
module Lotus module View module Rendering # Null Object pattern for layout template # # It's used when a layout doesn't have an associated template. # # A common scenario is for non-html requests. # Usually we have a template for the application layout # (eg `templates/ap...
farrel/view
lib/lotus/view/rendering/null_template.rb
Ruby
mit
2,669
package service import ( "encoding/json" "strings" "code.cloudfoundry.org/cli/cf" "code.cloudfoundry.org/cli/cf/flagcontext" "code.cloudfoundry.org/cli/cf/flags" . "code.cloudfoundry.org/cli/cf/i18n" "code.cloudfoundry.org/cli/cf/uihelpers" "fmt" "code.cloudfoundry.org/cli/cf/api" "code.cloudfoundry.org/c...
odlp/antifreeze
vendor/github.com/cloudfoundry/cli/cf/commands/service/create_user_provided_service.go
GO
mit
5,467
// 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.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; using Micro...
dwnichols/Mobius
csharp/Adapter/Microsoft.Spark.CSharp/Proxy/Ipc/StatusTrackerIpcProxy.cs
C#
mit
3,621
/* Copyright 2016 The Kubernetes Authors 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 law or ag...
skuid/helm-value-store
vendor/k8s.io/helm/pkg/helm/helm_test.go
GO
mit
10,604
<?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\Filesystem; use Symfony\Component\Filesystem\Exceptio...
gonzalovilaseca/symfony
src/Symfony/Component/Filesystem/Filesystem.php
PHP
mit
28,366
using Machine.Specifications; using PlainElastic.Net.IndexSettings; using PlainElastic.Net.Utils; namespace PlainElastic.Net.Tests.Builders.IndexSettings { [Subject(typeof(NGramTokenFilter))] class When_complete_NGramTokenFilter_built { Because of = () => result = new NGramTokenFilter() ...
yonglehou/PlainElastic.Net
src/PlainElastic.Net.Tests/Builders/Analysis/TokenFilters/NGram/When_complete_NGramTokenFilter_built.cs
C#
mit
1,835
using Umbraco.Cms.Core.DependencyInjection; namespace Umbraco.Cms.Core.Composing { /// <summary> /// Provides a base class for composers which compose a component. /// </summary> /// <typeparam name="TComponent">The type of the component</typeparam> public abstract class ComponentComposer<TCompone...
umbraco/Umbraco-CMS
src/Umbraco.Core/Composing/ComponentComposer.cs
C#
mit
761
'use strict'; var dynamoose = require('../'); dynamoose.AWS.config.update({ accessKeyId: 'AKID', secretAccessKey: 'SECRET', region: 'us-east-1' }); dynamoose.local(); var should = require('should'); var Cat, Cat2; describe('Model', function (){ this.timeout(5000); before(function(done) { this.time...
benjcooley/dynamoose
test/Model.js
JavaScript
mit
21,235
# -*- coding: utf-8 -*- import os import sys try: from gluon import current except ImportError: print >> sys.stderr, """ The installed version of Web2py is too old -- it does not define current. Please upgrade Web2py to a more recent version. """ # Version of 000_config.py # Increment this if t...
sahana/Turkey
modules/s3_update_check.py
Python
mit
13,160
import _curry3 from './internal/_curry3.js'; /** * Move an item, at index `from`, to index `to`, in a list of elements. * A new list will be created containing the new elements order. * * @func * @memberOf R * @since v0.27.1 * @category List * @sig Number -> Number -> [a] -> [a] * @param {Number} from The sou...
CrossEye/ramda
source/move.js
JavaScript
mit
1,225
package net.jsunit; import java.io.IOException; public class MockProcessStarter implements ProcessStarter { public String[] commandPassed; public Process execute(String[] command) throws IOException { this.commandPassed = command; return null; } }
wesmaldonado/test-driven-javascript-example-application
public/js-common/jsunit/java/tests_server/net/jsunit/MockProcessStarter.java
Java
mit
295
using System; using System.Reactive.Threading.Tasks; using Octokit.Reactive.Internal; namespace Octokit.Reactive { public class ObservableCommitStatusClient : IObservableCommitStatusClient { readonly ICommitStatusClient _client; readonly IConnection _connection; public ObservableCommi...
senlinsky/octokit.net
Octokit.Reactive/Clients/ObservableCommitStatusClient.cs
C#
mit
1,991
//----------------------------------------------------------------------- // <copyright file="DataPortalHookArgs.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: http://www.lhotka.net/cslanet/ // </copyright> // <summary></summary> // <remarks>Generated file.</remarks> /...
MarimerLLC/cslacontrib
trunk/samples/ActionExtenderSample/ActionExtenderSample.Business/DataPortalHookArgs.cs
C#
mit
4,899
(function () { 'use strict'; angular.module('mPlatform.directives') .directive('ngTextChange', function () { return { restrict: 'A', replace: 'ngModel', link: function (scope, element, attr) { element.on('change', function ...
michaelmarriott/LabyrinthRipper.Mobile
www/scripts/ang/directives.js
JavaScript
mit
540
Astro.createValidator = function(validatorDefinition) { var definition = new ValidatorDefinition(validatorDefinition); var validatorGenerator = function(options, userMessage) { var validator = function(fieldValue, fieldName) { return validator.definition.validate.call( this, fieldValue, ...
ribbedcrown/meteor-astronomy-validators
lib/module/validator.js
JavaScript
mit
929
import _Object$getOwnPropertySymbols from "../../core-js/object/get-own-property-symbols"; import _Object$keys from "../../core-js/object/keys"; export default function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = _Object$keys(source); var key, ...
Skillupco/babel
packages/babel-runtime/helpers/es6/objectWithoutProperties.js
JavaScript
mit
854
/* * 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 restric...
sgrebnov/PowerBI-visuals
src/Clients/Data/dataView/compiledDataViewMapping.ts
TypeScript
mit
4,466
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
kashike/SpongeCommon
src/main/java/org/spongepowered/common/mixin/core/block/tiles/MixinTileEntityDaylightDetector.java
Java
mit
1,625
'use strict'; import $ from 'jquery'; import { Keyboard } from './foundation.util.keyboard'; import { GetYoDigits } from './foundation.util.core'; import { Positionable } from './foundation.positionable'; import { Triggers } from './foundation.util.triggers'; /** * Dropdown module. * @module foundation.dropdown ...
robertgraleigh/supreme-journey
node_modules/foundation-sites/js/foundation.dropdown.js
JavaScript
mit
11,158
<?php namespace Elastica\Filter; /** * Type Filter * * @category Xodoa * @package Elastica * @author James Wilson <jwilson556@gmail.com> * @link http://www.elasticsearch.org/guide/reference/query-dsl/type-filter.html */ class Type extends AbstractFilter { /** * Type name * * @var string ...
didix16/snackhelper
vendor/ruflin/elastica/lib/Elastica/Filter/Type.php
PHP
mit
1,205
__title__ = 'pif.exceptions' __author__ = 'Artur Barseghyan' __copyright__ = 'Copyright (c) 2013 Artur Barseghyan' __license__ = 'GPL 2.0/LGPL 2.1' __all__ = ('InvalidRegistryItemType',) class InvalidRegistryItemType(ValueError): """ Raised when an attempt is made to register an item in the registry which does...
djabber/Dashboard
bottle/dash/local/lib/pif-0.7/src/pif/exceptions.py
Python
mit
352
import {EntitySubscriberInterface} from "../../../../src/subscriber/EntitySubscriberInterface"; import {EventSubscriber} from "../../../../src/decorator/listeners/EventSubscriber"; import {InsertEvent} from "../../../../src/subscriber/event/InsertEvent"; @EventSubscriber() export class FirstConnectionSubscriber implem...
ReaxDev/typeorm
test/functional/connection/subscriber/FirstConnectionSubscriber.ts
TypeScript
mit
532
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.ServiceBus.Messaging; using Nimbus.Extensions; namespace Nimbus.Infrastructure.MessageSendersAndReceivers { internal abstract class BatchingMessageSender : INimbusMessageSender ...
rebase42/Anubus
src/Nimbus/Infrastructure/MessageSendersAndReceivers/BatchingMessageSender.cs
C#
mit
2,558
// import { createAction } from 'redux-actions'; //Actions: //Simulate loading
dgilroy77/Car.ly
src/actions/loadActions.js
JavaScript
mit
80
#include "render/action_renderer.h" #include "engine/cloak_system.h" #include "platform/auto_id.h" #include "platform/id_storage.h" #include "core/i_renderable_component.h" namespace render { ActionRenderer::~ActionRenderer() { } ActionRenderer::ActionRenderer( int32_t Id, int32_t ActionId ) : mId( Id ) , m...
HalalUr/Reaping2
src/render/action_renderer.cpp
C++
mit
4,908
'use strict'; const common = require('../common'); if (!common.hasIPv6) common.skip('no IPv6 support'); const assert = require('assert'); const cluster = require('cluster'); const net = require('net'); // This test ensures that the `ipv6Only` option in `net.Server.listen()` // works as expected when we use cluster...
enclose-io/compiler
lts/test/sequential/test-cluster-net-listen-ipv6only-rr.js
JavaScript
mit
1,884
import Vue from 'vue'; import closedComponent from '~/vue_merge_request_widget/components/states/mr_widget_closed.vue'; import mountComponent from 'spec/helpers/vue_mount_component_helper'; describe('MRWidgetClosed', () => { let vm; beforeEach(() => { const Component = Vue.extend(closedComponent); vm = mo...
stoplightio/gitlabhq
spec/javascripts/vue_mr_widget/components/states/mr_widget_closed_spec.js
JavaScript
mit
2,094
using System.Linq; using System.Runtime.InteropServices; using Diadoc.Api.Com; namespace Diadoc.Api.Proto { [ComVisible(true)] [Guid("6D52D398-C4C9-4ED0-B9A1-38D074C045C7")] public interface ICounteragentList { int TotalCount { get; } ReadonlyList CounteragentsList { get; } } [ComVisible(true)] [Guid("016...
s-rogonov/diadocsdk-csharp
src/Proto/Counteragent.cs
C#
mit
2,719
'use strict'; import React from 'react'; import PlaylistHeader from './PlaylistHeader'; import PlaylistVideos from './PlaylistVideos'; const PureRenderMixin = React.addons.PureRenderMixin; export default React.createClass({ propTypes: { playlist: React.PropTypes.array.isRequired, }, mixins: [PureRenderMix...
whoisandie/yoda
src/scripts/Playlist.js
JavaScript
mit
785
'use strict'; /* global google */ function cdDojoDetailCtrl($scope, $state, $location, cdDojoService, cdUsersService, alertService, usSpinnerService, auth, dojo, gmap, $translate, currentUser) { $scope.dojo = dojo; $scope.model = {}; $scope.markers = []; $scope.requestInvite = {}; $scope.userMemberCheckCompl...
Aryess/cp-zen-platform
web/public/js/controllers/dojo-detail-controller.js
JavaScript
mit
6,054
#!/usr/bin/env node const os = require('os') const {spawn} = require('child_process') if (os.platform() === 'win32' || os.platform() === 'windows') console.log('skipping on windows') else spawn('yarn bats test/integration/*.bats', {stdio: 'inherit', shell: true})
heroku/heroku-cli
packages/run/bin/bats-test-runner.js
JavaScript
mit
266
var searchData= [ ['label',['Label',['../classLabel.html',1,'']]], ['labeliterator',['LabelIterator',['../classLabelIterator.html',1,'']]], ['labelsegment',['LabelSegment',['../structLabelSegment.html',1,'']]] ];
chabbimilind/cctlib
docs/html/search/classes_6c.js
JavaScript
mit
219
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
plumer/codana
tomcat_files/7.0.0/Proxy.java
Java
mit
1,102
<?php /* * This file is part of the Alice package. * * (c) Nelmio <hello@nelm.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Nelmio\Alice\Throwable\Exception\Generator\Resolver; class NoS...
furtadodiegos/projeto_cv
vendor/nelmio/alice/src/Throwable/Exception/Generator/Resolver/NoSuchPropertyException.php
PHP
mit
380
class AddIsRefundToDrawerTransactions < ActiveRecord::Migration def self.up add_column :drawer_transactions, :is_refund, :boolean, :default => false end def self.down remove_column :drawer_transactions, :is_refund end end
a0ali0taha/pos
vendor/db/migrate/20110627192451_add_is_refund_to_drawer_transactions.rb
Ruby
mit
239
# This migration will create one row of NotificationSetting for each Member row # It can take long time on big instances. # # This migration can be done online but with following effects: # - during migration some users will receive notifications based on their global settings (project/group settings will be ignored) #...
larryli/gitlabhq
db/migrate/20160328115649_migrate_new_notification_setting.rb
Ruby
mit
861
/**! * Sortable * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */ (function sortableModule(factory) { "use strict"; if (typeof define === "function" && define.amd) { define(factory); } else if (typeof module != "undefined" && typeof module.exports != "undefine...
extend1994/cdnjs
ajax/libs/Sortable/1.8.0-rc1/Sortable.js
JavaScript
mit
50,600
import { isElement, isValidElementType, ForwardRef } from 'react-is'; import unitless from '@emotion/unitless'; import validAttr from '@emotion/is-prop-valid'; import React, { useContext, useMemo, createElement, useState, useDebugValue, useEffect } from 'react'; import Stylis from 'stylis/stylis.min'; import _insertRul...
sufuf3/cdnjs
ajax/libs/styled-components/5.0.0-4.canary-sheet/styled-components.browser.esm.js
JavaScript
mit
63,129
// Flags: --unhandled-rejections=none 'use strict'; const common = require('../common'); common.disableCrashOnUnhandledRejection(); // Verify that ignoring unhandled rejection works fine and that no warning is // logged. new Promise(() => { throw new Error('One'); }); Promise.reject('test'); process.on('warning...
enclose-io/compiler
lts/test/parallel/test-promise-unhandled-silent.js
JavaScript
mit
591
/** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaStudio UNA Studio * @{ */ function BxDolStudioNavigationMenus(oOptions) { this.sActionsUrl = oOptions.sActionUrl; this.sPageUrl = oOptions.sPageUrl; this.sObjNameGrid = oOptions.sObjN...
camperjz/trident
upgrade/files/9.0.0.B2-9.0.0.B3/files/studio/js/navigation_menus.js
JavaScript
mit
1,476
// HumanizeDuration.js - https://git.io/j0HgmQ ;(function () { // This has to be defined separately because of a bug: we want to alias // `gr` and `el` for backwards-compatiblity. In a breaking change, we can // remove `gr` entirely. // See https://github.com/EvanHahn/HumanizeDuration.js/issues/143 for more. ...
extend1994/cdnjs
ajax/libs/humanize-duration/3.20.1/humanize-duration.js
JavaScript
mit
28,768
<?php namespace TYPO3\Flow\Tests\Unit\Session; /* * This file is part of the TYPO3.Flow package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed with this * sourc...
chewbakartik/flow-development-collection
TYPO3.Flow/Tests/Unit/Session/TransientSessionTest.php
PHP
mit
2,321
<?php class WP_REST_Posts_Terms_Controller extends WP_REST_Controller { protected $post_type; public function __construct( $post_type, $taxonomy ) { $this->post_type = $post_type; $this->taxonomy = $taxonomy; $this->posts_controller = new WP_REST_Posts_Controller( $post_type ); $this->terms_controller = ne...
trungnghia112/AngularJS-and-WordPress
wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-posts-terms-controller.php
PHP
mit
9,539
// Copyright (c) 2013-2015 Titanium I.T. LLC. All rights reserved. See LICENSE.TXT for details. (function() { "use strict"; var arrayToSentence = require("array-to-sentence"); var objectAssign = require("object-assign"); // ponyfill for Object.assign(); check if Node supports it yet exports.check = function(ar...
evrimfeyyaz/ios-calculator
node_modules/simplebuild/lib/type.js
JavaScript
mit
4,496
""" Logger for the spectroscopic toolkit packge Goal: Use decorators to log each command in full Author: Adam Ginsburg Created: 03/17/2011 """ import os import time class Logger(object): """ Logger object. Should be initiated on import. """ def __init__(self, filename): """ Open a l...
keflavich/pyspeckit-obsolete
pyspeckit/spectrum/logger.py
Python
mit
1,211
<?php namespace Kunstmaan\AdminBundle\Toolbar; use Doctrine\ORM\EntityManagerInterface; use Kunstmaan\AdminBundle\Entity\Exception; use Kunstmaan\AdminBundle\Helper\Toolbar\AbstractDataCollector; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; class ExceptionDataCollector...
treeleaf/KunstmaanBundlesCMS
src/Kunstmaan/AdminBundle/Toolbar/ExceptionDataCollector.php
PHP
mit
1,851
var searchData= [ ['cache',['cache',['../classglobals.html#a5637b6b2c65cc2b027616212978a0e47',1,'globals']]], ['camera',['camera',['../classglobals.html#af37dc090d333e3a996373643f7c2c31f',1,'globals']]], ['camera_5fdistance',['camera_distance',['../classplayer.html#ae80ee7bccfac6b0b1167e3260db03206',1,'player']]]...
gawag/Urho-Sample-Platformer
doxygen/html/search/variables_2.js
JavaScript
mit
980
/*! * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * * Version: 1.7.3 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. * Date: 23.06.2019 */ (function (global, factory) { if (typeof define === 'function' && define.amd) define(function...
extend1994/cdnjs
ajax/libs/overlayscrollbars/1.7.3/js/OverlayScrollbars.js
JavaScript
mit
348,965
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Component, Directive, InjectionToken, NgModule, Pipe, PlatformRef, SchemaMetadata, Type} from '@angular/core...
ValtoFrameworks/Angular-2
packages/core/testing/src/test_bed_common.ts
TypeScript
mit
4,016
import _curry3 from './internal/_curry3.js'; import prop from './prop.js'; /** * Returns `true` if the specified object property satisfies the given * predicate; `false` otherwise. You can test multiple properties with * [`R.where`](#where). * * @func * @memberOf R * @since v0.16.0 * @category Logic * @sig (a...
ramda/ramda
source/propSatisfies.js
JavaScript
mit
715
import * as React from 'react'; /* * A utility for rendering a drag preview image */ export var DragPreviewImage = React.memo(function (_ref) { var connect = _ref.connect, src = _ref.src; React.useEffect(function () { if (typeof Image === 'undefined') return; var connected = false; var img = ne...
cdnjs/cdnjs
ajax/libs/react-dnd/11.1.3/esm/common/DragPreviewImage.js
JavaScript
mit
595
import setupStore from 'dummy/tests/helpers/store'; import Ember from 'ember'; import testInDebug from 'dummy/tests/helpers/test-in-debug'; import {module, test} from 'qunit'; import DS from 'ember-data'; const { run } = Ember; const { attr } = DS; const { reject } = Ember.RSVP; let Person, store, env; module("integ...
wecc/data
tests/integration/adapter/find-test.js
JavaScript
mit
5,129
/****************************************************************************** * Copyright (C) 2006-2012 IFS Institute for Software and others * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribut...
bobwalker99/Pydev
plugins/org.python.pydev.refactoring/src/org/python/pydev/refactoring/ui/core/TreeLabelProvider.java
Java
epl-1.0
2,059
/** * Copyright (c) 2013-2015 by Brainwy Software Ltda, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ package org.python.pyd...
bobwalker99/Pydev
plugins/org.python.pydev.debug/src/org/python/pydev/debug/curr_exception/EditIgnoredCaughtExceptionsDialog.java
Java
epl-1.0
3,834
/******************************************************************************* * Copyright (c) 2012, 2014 UT-Battelle, LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is avail...
gorindn/ice
src/org.eclipse.ice.datastructures/src/org/eclipse/ice/datastructures/ICEObject/ICEJAXBHandler.java
Java
epl-1.0
4,963
package org.usfirst.frc.team3952.robot; import java.io.IOException; import edu.wpi.first.wpilibj.CameraServer; import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.livewindow.LiveWindow; import edu.wpi.first.wpilibj...
Grande14/Team3952desTROYer
v6 3_12_2016 still comments/Robot.java
Java
epl-1.0
2,240
package org.jboss.windup.reporting; import javax.inject.Inject; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.forge.arquillian.AddonDependencies; import org.jboss.forge.arquillian.AddonDependency; import org.jboss.forge.arquillian.archive.Add...
jsight/windup
reporting/tests/src/test/java/org/jboss/windup/reporting/LoadIssueCategoriesRuleProviderTest.java
Java
epl-1.0
3,912
require "rjava" # Copyright (c) 2000, 2005 IBM Corporation and others. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html # # C...
neelance/swt4ruby
swt4ruby/lib/mingw32-x86_32/org/eclipse/swt/widgets/Listener.rb
Ruby
epl-1.0
2,098
/******************************************************************************* * Copyright (c) 2009, 2010 David A Carlson. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is av...
drbgfc/mdht
cda/deprecated/org.openhealthtools.mdht.uml.cda.ncr/src/org/openhealthtools/mdht/uml/cda/ncr/impl/NeonatalICULocationImpl.java
Java
epl-1.0
2,533
// Aseprite Base Library // Copyright (c) 2001-2013, 2015 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "base/time.h" #if _WIN32 #include <windows.h> #else #include <ctime> #endif n...
Fojar/aseprite
src/base/time.cpp
C++
gpl-2.0
704
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2011 - 2014 by Wilbert Berendsen # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 ...
dliessi/frescobaldi
frescobaldi_app/autocomplete/util.py
Python
gpl-2.0
1,994
<?php /** * PEL: PHP Exif Library. * A library with support for reading and * writing all Exif headers in JPEG and TIFF images using PHP. * * Copyright (C) 2004, 2005, 2006 Martin Geisler. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Li...
maskedjellybean/tee-prop
vendor/lsolesen/pel/test/NumberSShortTest.php
PHP
gpl-2.0
1,216
/* $Id$ */ /** @file * * VBox frontends: Qt4 GUI ("VirtualBox"): * UIWizardImportAppPageBasic1 class implementation */ /* * Copyright (C) 2009-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you...
pombredanne/VirtualBox-OSE
src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
C++
gpl-2.0
3,589