repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
whipsterCZ/blade-extensions
src/Helpers/LoopFactory.php
2479
<?php /** * Manages the Loop instances */ namespace Radic\BladeExtensions\Helpers; /** * Manages the Loop instances * * @package Radic\BladeExtensions * @subpackage Helpers * @version 2.1.0 * @author Robin Radic * @license MIT License - http://radic.mit-license.org * @copyrig...
mit
cdiacon/dotmailer-magento2-extension
Model/ResourceModel/Automation.php
1630
<?php namespace Dotdigitalgroup\Email\Model\ResourceModel; class Automation extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { /** * @var \Dotdigitalgroup\Email\Helper\Data */ public $helper; /** * Initialize resource. * * @return null */ public function _con...
mit
jaredjbarnes/WoodlandCreatures
packages/WebLib.2.0.0.724/content/lib/weblib/components/ui/layouts/ListItemContainer.js
1476
BASE.require([ "jQuery", "jQuery.fn.region" ], function () { BASE.namespace("components.ui.layouts"); var emptyFn = function () { }; var nullableController = { setItem: emptyFn }; components.ui.layouts.ListItemContainer = function (elem, tags) { var self = this; ...
mit
makasim/ValuesORM
src/ObjectBuilderHook.php
1073
<?php namespace Formapro\Values; class ObjectBuilderHook { /** * @var string[] */ private $classMap; /** * @var string */ private $fieldName; /** * @param string[] $classMap * @param string $fieldName */ public function __construct(array $classMap, string $f...
mit
jvillard/infer
infer/tests/codetoanalyze/java/pulse/AnalysisStops.java
7083
/* * 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. */ package codetoanalyze.java.infer; import java.util.Iterator; public class AnalysisStops { private native Object externalFunc()...
mit
AlexGilleran/jsx-control-statements
spec/test/if.js
3274
var chai = require("chai"); var spies = require("chai-spies"); var util = require("../testUtil"); chai.use(spies); var expect = chai.expect; describe("requiring in component with empty if", function() { var Fixture = require("../fixtures/if/if-empty.jsx"); it("should render nothing when condition true, but if i...
mit
9618211/framework
src/Proxy/Registry.php
1179
<?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ /** * @namespace */ namespace Bluz\Proxy; use Bluz\Registry\Registry as Instance; /** * Proxy to Registry * * Example of usage * use Bluz\Proxy\Registry; * * Registry::set('key', 'va...
mit
khalen/f0
src/main/scala/f0/Sinks.scala
1856
package f0 import java.io.FileOutputStream trait Sink { def writeBit(b: Boolean): Unit def apply(b: Byte): Unit def flush: Unit def close: Unit def state: Reg def using[A](handler: Sink => A): A = try handler(this) finally this.close def finishWith[A,F](t: (Writer[A,F], A)) = this.using(s => t._1.bind(s...
mit
kkkkyue/FoxTool
FoxTool/Tpp/Classes/TppMissionBlockData.cs
263
using FoxTool.Fox.Types.Values; namespace FoxTool.Tpp.Classes { public class TppMissionBlockData : Data { // Static properties public FoxUInt32 MissionBlockSize { get; set; } public FoxBool Enable { get; set; } } }
mit
WatkinsSoftwareDevelopment/HowardsBarberShop
node_modules/react-router/es6/useRoutes.js
1635
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
mit
BenInCOSprings/WpfDockingWindowsApplicationTemplate
wpftoolkit-110921/Main/Source/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/OverlayArea.cs
1446
/************************************************************************************* Extended WPF Toolkit Copyright (C) 2007-2013 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license ...
mit
tectronics/exodusdb
service/service2/gen/generalsubs.cpp
9924
#include <exodus/library.h> libraryinit() //#include <ubname.h> #include <daybooksubs3.h> #include <plansubs5.h> #include <jobsubs.h> #include <timesheetsubs.h> #include <prodordersubs.h> #include <prodinvsubs.h> #include <getsubs.h> #include <nextkey.h> #include <singular.h> #include <win.h> #include ...
mit
christianalfoni/ducky-components
src/EmailTag/index.js
1039
import Icon from '../Icon'; import Wrapper from '../Wrapper'; import Typography from '../Typography'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function EmailTag(props) { return ( <Wrapper className={classNames(sty...
mit
OpenBazaar/openbazaar-go
vendor/gx/ipfs/QmU44KWVkSHno7sNDTeUcL4FBgxgoidkFuTUyTXWJPXXFJ/quic-go/internal/handshake/crypto_setup_server.go
13588
package handshake import ( "bytes" "crypto/rand" "encoding/binary" "errors" "io" "net" "sync" "gx/ipfs/QmU44KWVkSHno7sNDTeUcL4FBgxgoidkFuTUyTXWJPXXFJ/quic-go/internal/crypto" "gx/ipfs/QmU44KWVkSHno7sNDTeUcL4FBgxgoidkFuTUyTXWJPXXFJ/quic-go/internal/protocol" "gx/ipfs/QmU44KWVkSHno7sNDTeUcL4FBgxgoidkFuTUyTXWJ...
mit
aalpgiray/react-hot-boilerplate-ts
node_modules/diagram-js/lib/features/tool-manager/ToolManager.js
2316
'use strict'; var forEach = require('lodash/collection/forEach'); var LOW_PRIORITY = 250; /** * The tool manager acts as middle-man between the available tool's and the Palette, * it takes care of making sure that the correct active state is set. * * @param {Object} eventBus * @param {Object} dragging ...
mit
SturdyCo/spreedly-gem
test/unit/response_stubs/store_stubs.rb
6502
module StoreStubs def successful_store_response StubResponse.succeeded <<-XML <transaction> <created_at type="dateTime">2015-03-20T17:32:04Z</created_at> <updated_at type="dateTime">2015-03-20T17:32:04Z</updated_at> <succeeded type="boolean">true</succeeded> <token>1gOXWjBEi...
mit
plexus/slippery
lib/slippery/processors/deck_js.rb
2315
module Slippery module Processors # http://imakewebthings.com/deck.js/ class DeckJs < Processor #ROOT = 'http://imakewebthings.com/deck.js/' ROOT = ProcessorHelpers.asset_uri('deck.js/') CORE_JS = URI.join(ROOT, 'core/deck.core.js') CORE_CSS = URI.join(ROOT, 'core/deck.core.cs...
mit
FansWorldTV/web
src/Kaltura/Client/Plugin/ContentDistribution/Type/GenericDistributionProviderActionBaseFilter.php
3485
<?php // =================================================================================================== // _ __ _ _ // | |/ /__ _| | |_ _ _ _ _ __ _ // | ' </ _` | | _| || | '_/ _` | // |_|\_\__,_|_|\__|\_,_...
mit
platanus/rails_pallet
spec/spec_helper.rb
4181
# This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause # this file to always be loaded, without a need to explicitly require ...
mit
visdesignlab/TulipPaths
tulippaths/config.py
64
""" Global variables for package TulipPaths """ VERBOSE = False
mit
saraf/node-ifx_db
examples/SampleApp1.js
2576
var dbobj = require('ifx_db'); function DirExec(conn, ErrIgn, sql) { try { var result = conn.querySync(sql); console.log(sql); } catch (e) { console.log("--- " + sql); if (ErrIgn != 1) { console.log(e); console.log(); } }...
mit
kippt/kippt-chrome
js/inject/googlereader.js
2065
$(function() { var openPopup = function(a, title, url) { data = { title: title, url: url, source: "chrome_extension_reader" }; KipptOpenPopup(data); }; var hasKipptAction = function(div) { return $('.action-kippt', div).length > 0 ...
mit
mochamadghany/dutika
dutika_inaicta/application/views/forum/v_forum_tambah.php
1306
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <center><h1>Tambah Topik</h1></center> <center><table> <?php foreach ($data as $q):?> <form action="<?php echo base_url();?>C_forum/simpan" method="POST"> <tr> <td>Username</td> </tr> <tr> <input type="hidden" value="<?php echo $q->...
mit
tndatacommons/tndata_backend
tndata_backend/officehours/views.py
13949
from collections import Counter from datetime import datetime from django.contrib import messages from django.contrib.auth import authenticate, get_user_model from django.contrib.auth import login as login_user from django.contrib.auth.decorators import login_required from django.core.cache import cache from django.ht...
mit
jaros1/gofreerev-fb
db/migrate/20140109071112_api_gifts_add_column_api_gift_url.rb
131
class ApiGiftsAddColumnApiGiftUrl < ActiveRecord::Migration def change add_column :api_gifts, :api_gift_url, :text end end
mit
Adam8234/the-blue-alliance-android
android/src/main/java/com/thebluealliance/androidclient/background/event/PopulateEventStats.java
12706
package com.thebluealliance.androidclient.background.event; import android.os.AsyncTask; import android.os.Parcelable; import android.util.Log; import android.view.View; import android.widget.ListView; import android.widget.TextView; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.th...
mit
gabrieldodan/php-dancer
system/libraries/SwiftMailer/lib/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php
1977
<?php /* * This file is part of SwiftMailer. * (c) 2004-2009 Chris Corbyn * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Handles Base 64 Transfer Encoding in Swift Mailer. * @package Swift * @subpackage Mi...
mit
lutaiphong/yu-loaders
demo/Vendors/js/yu.loaders.min.js
551
!function(){"use strict";function e(e){return{restrict:"E",replace:!0,template:e.get("yu.loaders.windows8.html"),scope:{show:"="}}}function t(e){return{restrict:"E",replace:!0,template:e.get("yu.loaders.skype.html"),scope:{show:"="}}}function r(e){return{restrict:"E",replace:!0,template:e.get("yu.loaders.jetbrains.html...
mit
navalev/azure-sdk-for-java
sdk/netapp/mgmt-v2017_08_15/src/main/java/com/microsoft/azure/management/netapp/v2017_08_15/NetAppAccountPatch.java
1647
/** * 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. */ package com.microsoft.azure.management.netapp.v2017_08_15; import java.util.List; impor...
mit
codefacts/elasta
elasta-module/src/main/java/elasta/module/MutableModuleSystem.java
472
package elasta.module; import elasta.module.impl.MutableModuleSystemImpl; /** * Created by Jango on 9/12/2016. */ public interface MutableModuleSystem extends ModuleSystem { <T> MutableModuleSystem export(Class<T> moduleClass, ExportScript<T> exportScript); <T> MutableModuleSystem export(Class<T> moduleCl...
mit
Ivan-Zaitsau/java-extensions
Collections_Tests/src/zjava/test/system/ConstTest.java
1989
package zjava.test.system; import static org.junit.Assert.*; import org.junit.Test; import zjava.system.Const; public class ConstTest { @Test(timeout=200) public void constantsAreValid() { assertEquals(1 << Const.ADDRESS_BITS_PER_BYTE , Byte.SIZE); assertEquals(1 << Const.ADDRESS_BITS_PER_SHORT...
mit
m0gliE/fastcoin-8.7.4rc1
src/qt/locale/bitcoin_nl.ts
118458
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Fastcoin</source> <translation>Over Fastcoin</translation> </mes...
mit
Protobuild/Protobuild
Protobuild.Internal/CommandLine/AddPackageCommand.cs
2994
using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace Protobuild { internal class AddPackageCommand : ICommand { private readonly IFeatureManager _featureManager; private readonly IPackageUrlParser _packageUrlParser; public AddPackageCommand(IP...
mit
josedab/react-native-examples
meetup-information/js/actions/surveys.js
1609
/** * Copyright 2016 Facebook, Inc. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by * Facebook. * * As with any software that integrat...
mit
santhosh2000k/MultipartFormDataSample
Server/MultipartFormDataSample.Server/MultipartFormDataSample.Server/App_Start/RouteConfig.cs
600
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace MultipartFormDataSample.Server { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute(...
mit
ivelin1936/Studing-SoftUni-
Databases Frameworks - Hibernate & Spring Data - март 2018/Exercises - Spring Data Advanced Quering/BookShop-System/src/main/java/bookshopsystem/enums/AgeRestriction.java
85
package bookshopsystem.enums; public enum AgeRestriction { MINOR, TEEN, ADULT }
mit
owid/owid-grapher
adminSiteClient/NewsletterPage.tsx
6084
import * as React from "react" import { observer } from "mobx-react" import { observable, computed, action, runInAction } from "mobx" import { format } from "timeago.js" import fuzzysort from "fuzzysort" import * as lodash from "lodash" import { AdminLayout } from "./AdminLayout" import { highlight as fuzzyHighlight }...
mit
amitchanchal/ikn
src/routes/api_open_routes.js
535
/*! * Indigenous Knowledge Network Platform * Author: Amit Chanchal, amit.chanchal@hotmail.com * SUI, IKN(Anthill) * June 2016, Bangalore */ //open routes var express = require('express'); var router = express.Router(); // middleware that is specific to this router /* router.use(function timeLog(req, res, ne...
mit
illibejiep/YiiBoilerplate
common/lib/Zend/Paginator/ScrollingStyle/Jumping.php
2093
<?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...
mit
scholer/cadnano2.5
misc/scratch/pyqtdeploy/copyextensionfiles.py
1410
import shutil import os sysroot = os.environ['SYSROOT'] INSTALL_DIR = 'C:\\Users\\Nick\\Documents\\GitHub\\cadnano2.5\\pyqtdeploy\\build\\release' def scrapeExtensionFiles(sysroot, modules, ext, install_dir, version='3.5'): source_dir = os.path.join(sysroot, 'lib', 'python%s' % version, 'site-packages') copy...
mit
callemall/material-ui
packages/material-ui/src/utils/getScrollbarSize.ts
118
import { unstable_getScrollbarSize as getScrollbarSize } from '@material-ui/utils'; export default getScrollbarSize;
mit
blockforest/rockdot
rockdot/source/server/application/Bootstrap.php
35225
<?php /* +---------------------------------------------------------------------------------------+ | Copyright (c) 2013, Joerg Di Terlizzi | | All rights reserved. | | Author: Joerg Di Terlizzi <joerg.diterlizzi@jvm.de> | +------------------------------------------------------------...
mit
arose/ngl
src/buffer/point-buffer.ts
4465
/** * @file Point Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ // @ts-ignore: unused import Vector3, Matrix4 required for declaration only import { DataTexture, Vector3, Matrix4 } from 'three' import '../shader/Point.vert' import '../shader/Point.frag' import { BufferRegistry } fro...
mit
TaigoSantos/Visual-Studio
Visual Studio - App 2016.002/Visual Studio - App 2016.002.ProjetoA/Module.Core.API/App_Start/WebApiConfig.cs
1075
using System.Linq; using System.Net.Http.Formatting; using System.Web.Http; using System.Web.Http.ExceptionHandling; using Module.Core.API.Handlers; using Module.Core.API.Loggers; using Newtonsoft.Json.Serialization; namespace Module.Core.API { public static class WebApiConfig { public static void Reg...
mit
hiadone/vtm
views/findaccount/mobile/findaccount_change_pw.php
3428
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?> <div class="wrap findarea"> <section class="title02"> <h2>회원 비밀번호 변경</h2> <p><span>비밀번호</span>를 변경 하실 수 있습니다 .</p> </section> <div class="mt3per" style="width:94%; margin:0 auto 3%;"> ...
mit
tdecaluwe/node-soap
test/security/ClientSSLSecurity.js
2875
'use strict'; var fs = require('fs'), join = require('path').join; describe('ClientSSLSecurity', function() { var ClientSSLSecurity = require('../../').ClientSSLSecurity; var cert = __filename; var key = __filename; it('is a function', function() { ClientSSLSecurity.should.be.type('function'); }); ...
mit
dnnsoftware/Dnn.AdminExperience.Extensions
src/Modules/Content/Dnn.PersonaBar.Recyclebin/admin/personaBar/scripts/RecycleBin.ViewModel.js
42813
//#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // 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 restri...
mit
ombt/ombt
lts08.lcstools/tools/src/ihgp/src/jflex/JFlex/src/JFlex/gui/GridPanel.java
4809
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * JFlex 1.3.5 * * Copyright (C) 1998-2001 Gerwin Klein <lsf@jflex.de> * * All rights reserved. * * ...
mit
jho406/Breezy
breezy_rails/lib/install/templates/web/actions.js
116
// Example: // // export const CLEAR_FORM_ERRORS = 'CLEAR_FORM_ERRORS' export const REHYDRATE = 'persist/REHYDRATE'
mit
Shoperti/Payme
tests/Functional/Charges/SrPagoTest.php
6111
<?php namespace Shoperti\Tests\PayMe\Functional\Charges; use Shoperti\PayMe\Gateways\SrPago\Encryption; class SrPagoTest extends AbstractTest { protected $gatewayData = [ 'config' => 'sr_pago', ]; /** @test */ public function it_authenticates_current_application() { $gateway = $t...
mit
mm999/OrigoDB
src/OrigoDB.Core/Modeling/Geo/ArcDistance.cs
867
using System; namespace OrigoDB.Core.Modeling.Geo { /// <summary> /// Distance between two points on the surface of the earth /// </summary> [Serializable] public class ArcDistance : IEquatable<ArcDistance>, IComparable<ArcDistance> { public ArcDistance(double radians) { ...
mit
revdotcom/.NET-MAPI-Wrapper
tests/BrightcoveOS .NET-MAPI-Wrapper.Tests/IntegrationTests/AudioTrackPlaylistWrite/AudioTrackPlaylistWriteTestBase.cs
1089
using System; using System.Collections.Generic; using System.Linq; using System.Text; using BrightcoveMapiWrapper.Api; using BrightcoveMapiWrapper.Model.Containers; using BrightcoveMapiWrapper.Model.Items; using NUnit.Framework; namespace BrightcoveOS.NET_MAPI_Wrapper.Tests.IntegrationTests.AudioTrackPlaylis...
mit
jesserobertson/databot
app/__init__.py
697
""" file: __init__.py (hermes.api) author: Jess Robertson """ from uuid import uuid1 as uuid from flask import Flask, Blueprint from flask.ext.restful import Api, Resource, url_for from .config import config from .bot import BotAPI def create_app(config_name): """ Create an application with the given con...
mit
Zylius/coverTest
src/Visciukai/GalerijaBundle/DependencyInjection/Configuration.php
891
<?php namespace Visciukai\GalerijaBundle\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
earthref/earthref
lib/modules/magic/tests/upgrade_contribution.tests.js
69169
const {describe, it} = global; import {expect} from 'chai'; import _ from 'lodash'; import Promise from 'bluebird'; import ParseContribution from '/lib/modules/magic/parse_contribution'; import UpgradeContribution from '/lib/modules/magic/upgrade_contribution'; import ValidateContribution from '/lib/modules/magic/valid...
mit
KitchenPC/core
src/Core/Weight.cs
2344
using System; namespace KitchenPC { public class Weight : IComparable, IFormattable, IComparable<int>, IEquatable<int> { public int Value; public Weight() { Value = 0; } public Weight(int grams) { Value = grams; } public stati...
mit
hectorj/godm
project_git_test.go
6244
package godm import ( "io/ioutil" "testing" "os" "path" "github.com/hectorj/godm/git" "github.com/stretchr/testify/assert" ) func newLocalGitProject(t *testing.T, gitStub *git.GitStub) (project *localGitProject, gitRepoStub *git.GitRepoStub) { tmpDirPath, err := ioutil.TempDir("", "godm-local_git_project_tes...
mit
mmkassem/gitlabhq
spec/views/projects/tree/show.html.haml_spec.rb
1281
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'projects/tree/show' do include Devise::Test::ControllerHelpers let(:project) { create(:project, :repository) } let(:repository) { project.repository } let(:ref) { 'master' } let(:commit) { repository.commit(ref) } let(:path) { '' } let...
mit
boardiq/rails_sanction
lib/rails_sanction/sanctioned.rb
776
module RailsSanction module Sanctioned extend ActiveSupport::Concern included do |variable| before_save do self.permissions = permissions.to_hash end end def permissions @permissions ||= Sanction.build(user_permissions) end def permissions=(value) @perm...
mit
maurer/tiamat
samples/Juliet/testcases/CWE23_Relative_Path_Traversal/s01/CWE23_Relative_Path_Traversal__char_console_open_41.cpp
3803
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__char_console_open_41.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-41.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: console Read input from the console ...
mit
eleme/banshee
static/src/services/User.js
451
/** * Created by Panda on 16/1/16. */ /*@ngInject*/ module.exports = function ($resource) { return $resource('/api/user/:id', {projectId: '@projectId', id: '@id'}, { getAllUsers: { method: 'GET', url: '/api/users', isArray: true }, getProjectsByUserId: { method: 'GET', url:...
mit
erick0192/Concordia_Capstone2013-14
MarsRover/MarsRoverTest/CommandTests.cs
9742
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using Rover; using MarsRover.Commands; using Rover.Commands; //using Rover.Commands; namespace MarsRoverTest { /* * Unit tests for commands * * Naming Convention: MethodNam...
mit
datphan/pdfkit
js/font/tables/os2.js
2986
// Generated by CoffeeScript 1.10.0 (function() { var OS2Table, Table, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__supe...
mit
pignacio/python-nvd3
examples/multiBarHorizontalChart.py
1129
#!/usr/bin/python # -*- coding: utf-8 -*- """ Examples for Python-nvd3 is a Python wrapper for NVD3 graph library. NVD3 is an attempt to build re-usable charts and chart components for d3.js without taking away the power that d3.js gives you. Project location : https://github.com/areski/python-nvd3 """ from nvd3 imp...
mit
GridProtectionAlliance/gsf
Source/Libraries/GSF.PhasorProtocols/UI/WPF/ViewModels/Devices.cs
33533
//****************************************************************************************************** // Devices.cs - Gbtc // // Copyright © 2010, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOT...
mit
paularlott/fusionCSS
js/src/core/fusionCSS.tabs.js
5479
/** * fusionCSS JavaScript to implement tabs, works with jQuery or fusionLib. * * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * @package fusionCSS * @copyrigh...
mit
clownhood/lol
src/net.cpp
53005
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "irc.h" #include "db.h" #i...
mit
froala/meteor-froala
assets/js/languages/de.js
12603
/*! * froala_editor v4.0.6 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2021 Froala Labs */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) : typeof define === 'function...
mit
Sonictherocketman/metapipe
test/test_runtime.py
5075
""" Tests for the runtime using a mock job. """ from __future__ import print_function import sure from metapipe.parser import Parser from metapipe.runtime import Runtime from metapipe.models import * from .mocks import MockJob from .fixtures import * JOB_TYPES = { 'mock': MockJob, 'local': LocalJob, } #...
mit
Javier3131/ProyectoDAW
public/modules/lazyload/config/lazyload.client.constants.js
12735
(function() { 'use strict'; angular .module('app.lazyload') .constant('APP_REQUIRES', { // jQuery based and standalone scripts scripts: { 'whirl': ['/lib/whirl/dist/whirl.css'], 'classyloader': ['/lib/jquery-classyloader/js...
mit
frankwang0/bdd-tdd-starter-kit
ShoppingCart/BddTraining.Specs.Features/Utility/BeforeAfterTestRun.cs
404
using BddTraining.Common; using BddTraining.SharpArch.NHibernate; using TechTalk.SpecFlow; namespace BddTraining.Specs.Features.Utility { [Binding] public class BeforeAfterTestRun { [BeforeTestRun] public static void Before() { SessionManager.HbmAssembly = "BddTraining....
mit
ravelll/sake_map
spec/helpers/shops_helper_spec.rb
430
require 'rails_helper' # Specs in this file have access to a helper object that includes # the ShopsHelper. For example: # # describe ShopsHelper do # describe "string concat" do # it "concats two strings with spaces" do # expect(helper.concat_strings("this","that")).to eq("this that") # end # end # ...
mit
getnikola/nikola
npm_assets/node_modules/luxon/src/errors.js
1047
// these aren't really private, but nor are they really useful to document /** * @private */ class LuxonError extends Error {} /** * @private */ export class InvalidDateTimeError extends LuxonError { constructor(reason) { super(`Invalid DateTime: ${reason.toMessage()}`); } } /** * @private */ export cl...
mit
tf/pageflow
spec/factories/test_multi_attachment_files.rb
518
module Pageflow FactoryBot.define do factory :test_multi_attachment_file, class: 'Pageflow::TestMultiAttachmentFile' do first_attachment { File.open(Engine.root.join('spec', 'fixtures', 'image.png')) } second_attachment { File.open(Engine.root.join('spec', 'fixtures', 'image.jpg')) } transient ...
mit
WyriMaps/BattleNet
src/Resource/WorldOfWarcraft/EmptyNpc.php
539
<?php declare(strict_types=1); namespace WyriMaps\BattleNet\Resource\WorldOfWarcraft; use ApiClients\Foundation\Resource\EmptyResourceInterface; abstract class EmptyNpc implements NpcInterface, EmptyResourceInterface { /** * @return int */ public function id(): int { return null; } ...
mit
chorton2227/laravel-starter
app/database/migrations/2013_12_23_040140_entrust_setup_tables.php
2053
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class EntrustSetupTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Creates the roles table Schema::create('roles', function($table) { $table->increments('...
mit
oliviertassinari/material-ui
packages/mui-icons-material/lib/esm/LoyaltySharp.js
503
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M11.83 2H2v9.83l10.99 11s1.05-1.05 1.41-1.42L22.82 13 11.83 2zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zM13 19.54l-4.27-4.27C8.28 14...
mit
gavinfaux/Umbraco-CMS
src/Umbraco.Web/HealthCheck/HealthCheckController.cs
2734
using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; using Umbraco.Web.Editors; namespace Umbraco.Web.HealthCheck { /// <summary> /// The API controller used to display the health check info and execute any actions /// </summary> public class HealthCheckController :...
mit
tschortsch/naturheilpraxis-buchs
web/content/plugins/treatment-search/treatment-search.php
1517
<?php /** * Plugin Name: Treatment Methods * Description: Adds Treatment Post-Type * Author: Juerg Hunziker <juerg.hunziker@gmail.com> * Version: 1.0 * Date: 18.10.2015 */ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); if ( ! defined( 'TREATMENT_SEARCH_FILE' ) ) { define( 'TREATMENT_SEARCH_FILE...
mit
a761208/yii2-pay
clients/alipay/aop/request/AlipayEcoMycarParkingConfigSetRequest.php
1909
<?php /** * ALIPAY API: alipay.eco.mycar.parking.config.set request * * @author auto create * @since 1.0, 2017-06-13 15:26:36 */ class AlipayEcoMycarParkingConfigSetRequest { /** * 停车ISV系统配置接口 **/ private $bizContent; private $apiParas = array(); private $terminalType; private $terminalInfo; privat...
mit
dck/rollbar-gem
lib/generators/rollbar/templates/initializer.rb
2410
require 'rollbar/rails' Rollbar.configure do |config| # Without configuration, Rollbar is enabled in all environments. # To disable in specific environments, set config.enabled=false. <%- if (defined? EY::Config) -%> # Here we'll disable in 'test' and 'development': if Rails.env.test? or Rails.env.development?...
mit
Azure/msphpsql
test/functional/sqlsrv/srv_308_empty_output_param.phpt
1142
--TEST-- GitHub issue #308 - empty string set to output parameter on stored procedure --DESCRIPTION-- A variation of the example in GitHub issue 308. A NULL value returned as output parameter will remain as NULL. --SKIPIF-- --FILE-- <?php require_once("MsCommon.inc"); // connect $conn = connect() ?: fatalError("Failed...
mit
JHDeStip/stippers
app/js/views/addRenewUser/UserDataFormPasswordView.js
2444
/** * This file is part of the Stippers project (available here: https://github.com/Stannieman/stippers/). * The license and all terms en conditions that apply to Stippers also apply to this file. * * @author Stan Wijckmans * * This file contains code to validate a form. */ function validateUserDataFormPasswo...
mit
Azure/azure-sdk-for-net
sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ErrorResponse.Serialization.cs
1014
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Storage.Models { internal partial class ErrorResponse { internal static ErrorResponse Deser...
mit
Harrmalik/pinterest-clone
app/models/pin.rb
35
class Pin < ActiveRecord::Base end
mit
mattico/rusoto
rusoto/services/kinesisanalytics/src/lib.rs
952
// ================================================================= // // * WARNING * // // This file is generated! // // Changes made to this file will be overwritten. If changes are // required to the generated code, the service_crategen project // must be updated to ...
mit
d-georgiev-91/CSharpCourse
CSharpPart1/ConsoleInputOutput/TheGreaterNumber/TheGreaterNumber.cs
505
using System; class Program { static void Main() { int firstNumber, secondNumber; Console.Write("Input the first number: "); firstNumber = int.Parse(Console.ReadLine()); Console.Write("Input the second number: "); secondNumber = int.Parse(Console.ReadLine()); int theG...
mit
marceloinacio/c-sharp
monotouch/PubnubMessagingExample/PerformanceHeaderView.cs
1907
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; using MonoTouch.Dialog; using PubNubMessaging.Core; using System.Threading; using System.Diagnostics; using CoreGraphics; namespace PubnubMessagingExample { class PerformanceHeaderView: UITableViewCell { ...
mit
sentenial/sentenial-ws-client
src/main/java/com/sentenial/ws/client/ct/package-info.java
202
@javax.xml.bind.annotation.XmlSchema(namespace = "urn:com:sentenial:origix:ws:credittransfer-ws", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.sentenial.ws.client.ct;
mit
wooyek/glosuj-w-lomiankach
src/glosuj_lokalnie/__init__.py
54
# coding=utf-8 # Created 2014 by Janusz Skonieczny
mit
finalsliver/supervillain-ui
SVUI_Chat/SVUI_Chat.lua
64957
--[[ ########################################################## S V U I By: Failcoder ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select...
mit
praneybehl/utool-io
server/startup/load_users.js
232
Meteor.startup(function () { if (Meteor.users.find().count() < 1) { Accounts.createUser({ username: 'admin', password: 'admin', email: 'admin@utool.com', profile: { name: 'Admin' } }); } });
mit
LiaoPan/kaggle-advertised-salaries
regression_as_classification/reverse_map.py
555
'map predictions from classes to real [regression] values' import sys, csv import numpy as np min_salary = 8.5 max_salary = 12.0 a_range = np.arange( min_salary, max_salary + 0.1, 0.1 ) # hardcoded min & max reverse_class_mapping = {} for i, n in enumerate( a_range ): reverse_class_mapping[i+1] = round(n,1) inpu...
mit
lgollut/material-ui
docs/src/pages/components/tabs/IconTabs.js
1125
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import PhoneIcon from '@material-ui/icons/Phone'; import FavoriteIcon from '@material-ui/icons/Favorite'; imp...
mit
ASKozienko/Payum
src/Payum/Paypal/ExpressCheckout/Nvp/Tests/Action/Api/CancelRecurringPaymentsProfileActionTest.php
5627
<?php namespace Payum\Paypal\ExpressCheckout\Nvp\Tests\Action\Api; use Payum\Core\Action\ActionInterface; use Payum\Core\Request\Cancel; use Payum\Core\Request\Generic; use Payum\Paypal\ExpressCheckout\Nvp\Action\Api\CancelRecurringPaymentsProfileAction; use Payum\Core\Tests\GenericActionTest; class CancelRecurringPa...
mit
Rapier-Foundation/rapier-script
src/rapierlang/test/OpenMP/for_simd_safelen_messages.cpp
5440
// RUN: %clang_cc1 -verify -fopenmp=libiomp5 %s void foo() { } bool foobool(int argc) { return argc; } struct S1; // expected-note {{declared here}} template <class T, typename S, int N, int ST> // expected-note {{declared here}} T tmain(T argc, S **argv) { //expected-note 2 {{declared here}} #pragma omp for si...
mit
ost500/cloudM
vendor/laravel/framework/src/Illuminate/Support/Collection.php
29101
<?php namespace Illuminate\Support; use Countable; use ArrayAccess; use ArrayIterator; use CachingIterator; use JsonSerializable; use IteratorAggregate; use InvalidArgumentException; use Illuminate\Support\Traits\Macroable; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Contracts\Support\Arrayable; class ...
mit
karan/dotfiles
.vscode/extensions/redhat.vscode-yaml-0.7.2/node_modules/yaml-language-server/out/server/node_modules/vscode-json-languageservice/lib/umd/services/jsonSchemaService.js
24231
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
navalev/azure-sdk-for-java
sdk/eventgrid/mgmt-v2018_09_15_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_09_15_preview/StringEndsWithAdvancedFilter.java
1310
/** * 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. */ package com.microsoft.azure.management.eventgrid.v2018_09_15_preview; import java.util....
mit
mozu-customer-success/Mozu.Integrations.Quickbooks
src/main/java/com/mozu/qbintegration/model/qbmodel/allgen/SalesTaxCodeRet.java
8068
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.09.07 at 0...
mit