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
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
camsong/react
src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js
JavaScript
bsd-3-clause
8,182
import sys import re from functools import wraps from unittest import TestCase from scrapy.http import Request from scrapy.utils.spider import iterate_spider_output from scrapy.utils.python import get_spec class ContractsManager(object): contracts = {} def __init__(self, contracts): for contract in ...
1900/scrapy
scrapy/contracts/__init__.py
Python
bsd-3-clause
4,024
package org.hisp.dhis.reporting.dataset.action; /* * Copyright (c) 2004-2017, 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...
troyel/dhis2-core
dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/dataset/action/GetDataSetReportOptionsAction.java
Java
bsd-3-clause
7,482
// 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 main import ( "bufio" "fmt" "os" "strconv" "strings" ) // Generic expression parser/evaluator type Value interface { String() string BinaryOp...
Triskite/willstone-goclone
doc/talks/io2010/eval2.go
GO
bsd-3-clause
4,858
#region License // // Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using Kooboo.CMS.Common.Persistence.Non_Relational; using Kooboo.CMS.Sites.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System....
lingxyd/CMS
Kooboo.CMS/Kooboo.CMS.SitesProviders/Kooboo.CMS.Sites.Persistence.EntityFramework/LabelProvider/LabelProvider.cs
C#
bsd-3-clause
6,921
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const SelectTypeExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Select' description='Defau...
aabustamante/Semantic-UI-React
docs/app/Examples/addons/Select/Types/index.js
JavaScript
mit
450
import six import signal import logging import warnings from twisted.internet import reactor, defer from zope.interface.verify import verifyClass, DoesNotImplement from scrapy.core.engine import ExecutionEngine from scrapy.resolver import CachingThreadedResolver from scrapy.interfaces import ISpiderLoader from scrapy...
bdh1011/wau
venv/lib/python2.7/site-packages/scrapy/crawler.py
Python
mit
11,081
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Legacy product contains all deprecated methods for this class and can be * removed in the future. */ include_once( WC_ABSPATH . 'includes/legacy/abstract-wc-legacy-product.php' ); /** * Abstract Product Class * * The WooCommerce product class handles individu...
hai2219/tantap-shop
wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php
PHP
mit
49,196
# coding: utf-8 require 'test_helper' class GarantiTest < Test::Unit::TestCase def setup @original_kcode = nil Base.mode = :test @gateway = GarantiGateway.new(login: 'a', password: 'b', terminal_id: 'c', merchant_id: 'd') @credit_card = credit_card(4242424242424242) @amount = 1000 # 1000 cents...
atxwebs/active_merchant
test/unit/gateways/garanti_test.rb
Ruby
mit
4,823
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'redis/objects' class Roster include Redis::Objects counter :available_slots, :start => 10 counter :pitchers, :limit => :max_pitchers counter :basic hash_key :contact_information, :marshal_keys=>{'updated_at'=>true} lock :resort, :...
timrourke/rchat
vendor/cache/ruby/2.2.0/gems/redis-objects-1.2.0/spec/redis_objects_model_spec.rb
Ruby
mit
37,399
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // <Area> Nullable - Box-Unbox </Area> // <Title> Nullable type with unbox box expr </Title> // <Description> // checking type of byte using is operator // </Descrip...
ktos/coreclr
tests/src/JIT/jit64/valuetypes/nullable/box-unbox/value/box-unbox-value003.cs
C#
mit
987
require 'fog/aws/models/dns/record' module Fog module DNS class AWS class Records < Fog::Collection attribute :is_truncated, :aliases => ['IsTruncated'] attribute :max_items, :aliases => ['MaxItems'] attribute :name attribute :next_record_name, ...
jonpstone/portfolio-project-rails-mean-movie-reviews
vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.0/lib/fog/aws/models/dns/records.rb
Ruby
mit
4,370
(function () { 'use strict'; /** * @ngdoc overview * @name ui.grid.edit * @description * * # ui.grid.edit * * <div class="alert alert-success" role="alert"><strong>Stable</strong> This feature is stable. There should no longer be breaking api changes without a deprecation warning.</div> * ...
Lincoln-xzc/angular-ui-grid
src/features/edit/js/gridEdit.js
JavaScript
mit
48,612
/*************************************************************************/ /* thread_posix.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
okamstudio/godot
drivers/unix/thread_posix.cpp
C++
mit
5,278
/////////////////////////////////////////////////////////////////////////// // Copyright © 2014 - 2016 Esri. 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 // // h...
cmccullough2/cmv-wab-widgets
wab/2.3/jimu.js/ConfigManager.js
JavaScript
mit
39,282
'use strict'; var fs = require('fs'); var path = require('path'); var walk = require('pug-walk'); module.exports = load; function load(ast, options) { load.validateOptions(options); // clone the ast ast = JSON.parse(JSON.stringify(ast)); return walk(ast, function (node) { if (node.str === undefined) { ...
ajredovan/.tour
tour_v1/node_modules/pug-loader/index.js
JavaScript
mit
2,820
package org.spongycastle.crypto.engines; import org.spongycastle.crypto.BlockCipher; import org.spongycastle.crypto.CipherParameters; import org.spongycastle.crypto.DataLengthException; import org.spongycastle.crypto.params.KeyParameter; import org.spongycastle.crypto.params.TweakableBlockCipherParameters; /** * Imp...
Skywalker-11/spongycastle
core/src/main/java/org/spongycastle/crypto/engines/ThreefishEngine.java
Java
mit
51,043
/*globals Handlebars */ require("ember-handlebars/ext"); /** @module ember @submodule ember-handlebars */ /** @private Find templates stored in the head tag as script tags and make them available to `Ember.CoreView` in the global `Ember.TEMPLATES` object. This will be run as as jQuery DOM-ready callback. ...
chancancode/ember.js
packages/ember-handlebars/lib/loader.js
JavaScript
mit
2,142
var vows = require('vows'); var assert = require('assert'); var suite = vows.describe('jStat.distribution'); require('../env.js'); suite.addBatch({ 'normal pdf': { 'topic': function() { return jStat; }, //Checked against R's dnorm(x, mean, sd) 'check pdf calculation': function(jStat) { ...
akrawitz/jstat
test/distribution/normal-test.js
JavaScript
mit
923
require 'spec_helper' describe UserDecorator do describe "#display_name" do subject{ user.display_name } context 'when profile_type is personal' do context "when we only have a full name" do let(:user){ create(:user, name: nil, full_name: "Full Name") } it{ should == 'Full Name' } ...
jinutm/silverclass
spec/decorators/user_decorator_spec.rb
Ruby
mit
5,001
<?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...
ramonornela/Zebra
library/Zend/Paginator/Exception.php
PHP
mit
1,050
package hep.aida.ref; import hep.aida.IHistogram1D; import hep.aida.IHistogram2D; /** * Convenient histogram utilities. */ class Util { /** * Creates a new utility object. */ public Util() {} /** * Returns the index of the in-range bin containing the maxBinHeight(). */ public int max...
tobyclemson/msci-project
vendor/colt-1.2.0/src/hep/aida/ref/Util.java
Java
mit
2,854
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Extensions; using osu.Framework.Localisation; using osu.Game.Graphics; using osuTK.Graphics; namespace osu.Game.Overlays.Dashboard.Fri...
ppy/osu
osu.Game/Overlays/Dashboard/Friends/FriendsOnlineStatusItem.cs
C#
mit
1,270
// Project Orleans Cloud Service SDK ver. 1.0 // // Copyright (c) .NET Foundation // // 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 wit...
cbredlow/orleans
src/ClientGenerator/CodeGeneratorBase.cs
C#
mit
13,358
# -*- coding: utf-8 -*- from django.db import models, migrations def migrate_requested_on(apps, schema_editor): Changeset = apps.get_model("changeset", "Changeset") for changeset in Changeset.objects.all(): if not changeset.requested_on: changeset.requested_on = changeset.committed_on ...
tzhaoredhat/automation
pdc/apps/changeset/migrations/0005_changeset_requested_on_data_migration.py
Python
mit
543
#region Copyright and License Information // Fluent Ribbon Control Suite // http://fluent.codeplex.com/ // Copyright © Degtyarev Daniel, Rikker Serg. 2009-2010. All rights reserved. // // Distributed under the terms of the Microsoft Public License (Ms-PL). // The license is available online http://fluent.codep...
wskplho/Fluent.Ribbon
Fluent/Controls/Backstage.cs
C#
mit
22,640
import logging import os import ftplib from urlparse import urlparse from flexget import plugin from flexget.event import event log = logging.getLogger('ftp') class OutputFtp(object): """ Ftp Download plugin input-url: ftp://<user>:<password>@<host>:<port>/<path to file> Example: ftp://...
thalamus/Flexget
flexget/plugins/output/ftp_download.py
Python
mit
6,524
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/build/v1/build_events.proto /* Package build is a generated protocol buffer package. It is generated from these files: google/devtools/build/v1/build_events.proto google/devtools/build/v1/build_status.proto google/devtools/build/v1/publish...
disintegration/bebop
vendor/google.golang.org/genproto/googleapis/devtools/build/v1/build_events.pb.go
GO
mit
34,543
class AgentReemitJob < ActiveJob::Base # Given an Agent, re-emit all of agent's events up to (and including) `most_recent_event_id` def perform(agent, most_recent_event_id, delete_old_events = false) # `find_each` orders by PK, so events get re-created in the same order agent.events.where("id <= ?", most_re...
strugee/huginn
app/jobs/agent_reemit_job.rb
Ruby
mit
435
<?php namespace Josegonzalez\Upload\Validation\Traits; trait ImageValidationTrait { /** * Check that the file is above the minimum width requirement * * @param mixed $check Value to check * @param int $width Width of Image * @return bool Success */ public static function isAboveM...
Phillaf/cakephp-upload
src/Validation/Traits/ImageValidationTrait.php
PHP
mit
2,309
/* * IronJacamar, a Java EE Connector Architecture implementation * Copyright 2014, Red Hat Inc, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or...
darranl/ironjacamar
common/src/main/java/org/ironjacamar/common/api/metadata/spec/Activationspec.java
Java
epl-1.0
1,596
/* * Error.java * * Copyright (c) 2012 Mike Strobel * * This source code is subject to terms and conditions of the Apache License, Version 2.0. * A copy of the license can be found in the License.html file at the root of this distribution. * By using this source code in any fashion, you are agreeing to be...
sgilda/windup
forks/procyon/Procyon.Reflection/src/main/java/com/strobel/reflection/Error.java
Java
epl-1.0
10,687
/* * Copyright (c) 2012-2018 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc. - initial API a...
akervern/che
multiuser/api/che-multiuser-api-organization/src/main/java/org/eclipse/che/multiuser/organization/api/resource/DefaultOrganizationResourcesProvider.java
Java
epl-1.0
3,553
class DropRepositoryReferencePublisherHref < ActiveRecord::Migration[5.2] def change remove_column :katello_repository_references, :publisher_href end end
Katello/katello
db/migrate/20190513162209_drop_repository_reference_publisher_href.rb
Ruby
gpl-2.0
163
<?php /* Template Name: Content / Sidebar */ ?><?php get_header(); ?> <div id="container"> <section id="content"> <?php if( have_posts() ) : the_post(); ?> <article <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <div class="entry"> <?php if( esplanade_get_option( 'breadcrumbs' ) ) : ?> ...
sudocoda/boynamedsu-wp
wp-content/themes/esplanade/template-content-sidebar.php
PHP
gpl-2.0
1,162
// objective: allow linking to private virtual functions // check: class_interface.xml // config: EXTRACT_PRIV_VIRTUAL = YES /** @brief An interface */ class Interface { public: /** * @brief Load things. * * Calls @ref doLoad(). */ void load(); private: /** * @brief Pure virtu...
ellert/doxygen
testing/080_extract_private_virtual.cpp
C++
gpl-2.0
720
/* * Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * 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...
Golrag/TrinityCore
src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp
C++
gpl-2.0
7,268
/* This test script is part of GDB, the GNU debugger. Copyright 2006-2017 Free Software Foundation, Inc. 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 3 of the License, ...
totalspectrum/binutils-propeller
gdb/testsuite/gdb.cp/ref-params.cc
C++
gpl-2.0
1,600
<?php /* +--------------------------------------------------------------------+ | CiviCRM version 4.3 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2013 | +--------------------------...
tomlagier/NoblePower
wp-content/plugins/civicrm/civicrm/CRM/Project/DAO/Task.php
PHP
gpl-2.0
8,570
<?php /** * * Orders table * * @package VirtueMart * @subpackage Orders * @author RolandD * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version ma...
snake77se/proyectoszeppelin
tmp/install_546526882469b/administrator/components/com_virtuemart/tables/orders.php
PHP
gpl-2.0
6,575
<?php global $siw_social_accounts; extract($args); $siw_title = empty($instance['title']) ? 'Follow Us' : apply_filters('widget_title', $instance['title']); $siw_icons = $instance['icons']; $siw_labels = $instance['labels']; $siw_show_title = $instance['show_title']; echo $before_widget; if($siw_show_title == '') { ...
talhaobject90/quotekart
wp-content/plugins/social-media-icons-widget/lib/widget.php
PHP
gpl-2.0
2,863
<?php /**************************************************** * @class : RSSFeedItem * @parent : RSSFeedBase * @abstract : no * @aim : create a new item instance for the feed * @author : Hugo 'Emacs' HAMON * @email : webmaster[at]apprendre-php[dot]com * @version : 1.0 * @changelog : ***************************...
Regis85/gepi
class_php/RSSFeed/RSSFeedItem.class.php
PHP
gpl-2.0
5,379
/* $Id: RTPathCopyComponents.cpp $ */ /** @file * IPRT - RTPathCountComponents */ /* * Copyright (C) 2010 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 can redistribute it and/or modify it under ...
VirtualMonitor/VirtualMonitor
src/VBox/Runtime/common/path/RTPathCopyComponents.cpp
C++
gpl-2.0
2,491
# -*- coding: utf-8 -*- """ *************************************************************************** extractprojection.py --------------------- Date : September 2013 Copyright : (C) 2013 by Alexander Bruy Email : alexander dot bruy at gmail dot com *****...
CS-SI/QGIS
python/plugins/processing/algs/gdal/extractprojection.py
Python
gpl-2.0
3,629
// license:BSD-3-Clause // copyright-holders:Tomasz Slanina, Pierpaolo Prazzoli /* Dynamic Dice (??) Driver by Tomasz Slanina Pierpaolo Prazzoli -- Old, rusty, not working pcb : Main PCB : m5l8080ap (8080) dy_1.bin (1H) dy_2.bin (1L) dy_3.bin (1P) dip 6x (all off) xtal 18.432 mhz -- Sub PCB DYNA-529-8...
johnparker007/mame
src/mame/drivers/dynadice.cpp
C++
gpl-2.0
9,210
/* * pojos.ChannelAcquisitionData * *------------------------------------------------------------------------------ * Copyright (C) 2006-2008 University of Dundee. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public L...
joshmoore/openmicroscopy
components/tools/OmeroJava/src/pojos/ChannelAcquisitionData.java
Java
gpl-2.0
11,290
<?php /** * @group edd_tax */ class Tests_Taxes extends EDD_UnitTestCase { protected $_payment_id = null; protected $_post = null; public function setUp() { parent::setUp(); $post_id = $this->factory->post->create( array( 'post_title' => 'Test Download', 'post_type' => 'download', 'post_status' => 'publi...
zackkatz/Easy-Digital-Downloads
tests/tests-tax.php
PHP
gpl-2.0
10,433
<?php /** * Class CRM_Core_CodeGen_Util_File */ class CRM_Core_CodeGen_Util_File { /** * @param $dir * @param int $perm */ public static function createDir($dir, $perm = 0755) { if (!is_dir($dir)) { mkdir($dir, $perm, TRUE); } } /** * @param $dir */ public static function clea...
sharique/d7-civicrm
sites/all/modules/contrib/civicrm/CRM/Core/CodeGen/Util/File.php
PHP
gpl-2.0
2,238
// uniCenta oPOS - Touch Friendly Point Of Sale // Copyright (c) 2009-2014 uniCenta & previous Openbravo POS works // http://www.unicenta.com // // This file is part of uniCenta oPOS // // uniCenta oPOS is free software: you can redistribute it and/or modify // it under the terms of the GNU General P...
sbandur84/micro-Blagajna
src-pos/com/openbravo/pos/forms/MenuElement.java
Java
gpl-3.0
1,074
/* * Copyright 2012 Hannes Janetzek * * This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * * This program is free software: you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * Foundation, either ve...
hyl1987419/vtm
vtm/src/org/oscim/tiling/source/UrlTileDataSource.java
Java
gpl-3.0
3,375
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
MIRAGE-Dev/packages_apps_Browser
src/com/android/browser/Preloader.java
Java
gpl-3.0
5,654
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Copyright \\/ M anipulation | ---------------------...
WensiWu/openfoam-extend-foam-extend-3.1
src/foam/fields/FieldFields/vectorNFieldFields/TensorNFieldFields.C
C++
gpl-3.0
6,042
package de.rwth; import gl.GL1Renderer; import gl.Renderable; import gl.scenegraph.MeshComponent; import system.Setup; import worldData.World; import android.opengl.GLSurfaceView.Renderer; import android.util.Log; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics....
sanyaade-g2g-repos/droidar
ModelLoaderAdapters/src/de/rwth/ModelLoader.java
Java
gpl-3.0
4,812
# -*- coding: utf-8 -*- from ..internal.OCR import OCR class GigasizeCom(OCR): __name__ = "GigasizeCom" __type__ = "ocr" __version__ = "0.17" __status__ = "testing" __description__ = """Gigasize.com ocr plugin""" __license__ = "GPLv3" __authors__ = [("pyLoad Team", "admin@pyload.org")] ...
Arno-Nymous/pyload
module/plugins/captcha/GigasizeCom.py
Python
gpl-3.0
496
[{ Name: 'Weather Underground Widget', Author: 'Generoso Martello', Version: '2013-03-31', GroupName: '', IconImage: 'pages/control/widgets/homegenie/generic/images/wu_logo.png', StatusText: '', Description: '', RenderView: function (cuid, module) { var container = $(cuid); ...
AdnanSattar/HomeGenie
BaseFiles/Common/html/pages/control/widgets/weather/wunderground/conditions.js
JavaScript
gpl-3.0
6,270
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\/ M anipulation | -------------...
morgoth541/of_realFluid
src/thermophysicalModels/solidChemistryModel/ODESolidChemistryModel/ODESolidChemistryModelI.H
C++
gpl-3.0
6,434
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Copyright \\/ M anipulation | ---------------------...
Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.1
applications/solvers/multiphase/twoPhaseEulerFoam/kineticTheoryModels/granularPressureModel/granularPressureModel/granularPressureModel.C
C++
gpl-3.0
1,824
package us.mn.state.health.lims.observationhistorytype.daoImpl; import java.util.List; import org.hibernate.Query; import us.mn.state.health.lims.common.daoimpl.GenericDAOImpl; import us.mn.state.health.lims.common.exception.LIMSRuntimeException; import us.mn.state.health.lims.common.log.LogEvent; import us.mn.state...
mark47/OESandbox
app/src/us/mn/state/health/lims/observationhistorytype/daoImpl/ObservationHistoryTypeDAOImpl.java
Java
mpl-2.0
1,679
<?php /********************************************************************************* * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. * SuiteCRM is an extension to SugarCRM Community Edition developed by Salesagility L...
auf/crm_auf_org
modules/sm_Responsable/metadata/searchdefs.php
PHP
agpl-3.0
3,113
/*! * jQuery Password Strength plugin for Twitter Bootstrap * Version: 3.0.4 * * Copyright (c) 2008-2013 Tane Piper * Copyright (c) 2013 Alejandro Blanco * Dual licensed under the MIT and GPL licenses. */ (function (jQuery) { // Source: src/i18n.js var i18n = {}; (function (i18n, i18next) { 'use strict'; ...
tejoesperanto/pasportaservo
pasportaservo/static/pwstrength/js/pwstrength-bootstrap.js
JavaScript
agpl-3.0
30,423
<?php /** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * perm...
SvenHerrmann/shopware
tests/Shopware/Tests/Components/Thumbnail/ManagerTest.php
PHP
agpl-3.0
7,418
# https://djangosnippets.org/snippets/2533/ import inspect from django.utils.html import strip_tags from django.utils.encoding import force_unicode def process_docstring(app, what, name, obj, options, lines): # This causes import errors if left outside the function from django.db import models # Only lo...
waseem18/oh-mainline
vendor/packages/django-http-proxy/docs/_ext/django_models.py
Python
agpl-3.0
1,773
<?php $lang->cmd_generate_code = 'Tạo Code'; $lang->widget_name = 'Tên Widget'; $lang->widget_maker = 'Người tạo'; $lang->widget_license = 'Giấy phép'; $lang->widget_history = 'Lịch sử cập nhật'; $lang->widget_info = 'Thông tin Widget'; $lang->widget_cache = 'Bộ nhớ đệm'; $lang->widget_fix_width = 'Cố định chiều rộng';...
xetown/xe-core
modules/widget/lang/vi.php
PHP
lgpl-2.1
3,546
<?php $model = new shopProductModel(); $sql = "SELECT id FROM `shop_product_skus` WHERE count IS NULL LIMIT 1"; if ($model->query($sql)->fetchField() > 0) { $model->correctCount(); }
RomanNosov/convershop
wa-data/protected/wa-installer/backup/wa-apps/shop/lib/updates/5.2.4/1427271828.php
PHP
lgpl-3.0
187
/* * bootstrap-table - v1.2.4 - 2014-10-08 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2014 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.extend(a.fn.bootstrapTable.defaults,{formatLoadingMessage:function(){return"Cargando, espere por favor..."},formatRecordsPerPage:function(a){ret...
bakasajoshua/web-lims-old
assets/bower_components/bootstrap-table/dist/locale/bootstrap-table-es_AR.min.js
JavaScript
lgpl-3.0
549
/* * Copyright (C) 2005-2010 Alfresco Software Limited. * * This file is part of Alfresco * * Alfresco is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or ...
nguyentienlong/community-edition
projects/data-model/source/java/org/alfresco/repo/dictionary/M2NamedValue.java
Java
lgpl-3.0
2,109
/* * 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 ...
jack-moseley/gobblin
gobblin-service/src/test/java/org/apache/gobblin/service/modules/restli/FlowConfigUtilsTest.java
Java
apache-2.0
6,005
/* * Copyright 2014, Google Inc. * 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 conditio...
aliosmanyuksel/show-java
app/src/main/java/org/jf/dexlib2/rewriter/ClassDefRewriter.java
Java
apache-2.0
5,065
//// [tests/cases/conformance/types/import/importTypeGenericTypes.ts] //// //// [foo.ts] interface Point<T> { x: number; y: number; data: T; } export = Point; //// [foo2.ts] namespace Bar { export interface I<T> { a: string; b: number; data: T; } } export namespace Ba...
Microsoft/TypeScript
tests/baselines/reference/importTypeGenericTypes.js
JavaScript
apache-2.0
2,330
# # 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 not us...
mxm/incubator-beam
sdks/python/apache_beam/runners/direct/direct_metrics_test.py
Python
apache-2.0
9,689
import {expect} from 'chai'; import * as Rx from '../../dist/cjs/Rx'; declare const {hot, cold, expectObservable, expectSubscriptions, type}; declare const Symbol: any; const Observable = Rx.Observable; const queueScheduler = Rx.Scheduler.queue; /** @test {zip} */ describe('Observable.zip', () => { it('should comb...
saneyuki/RxJS
spec/observables/zip-spec.ts
TypeScript
apache-2.0
21,889
def load_current_resource definition_directory = ::File.join(node["sensu"]["directory"], "conf.d", "mutators") @definition_path = ::File.join(definition_directory, "#{new_resource.name}.json") end action :create do mutator = Sensu::Helpers.select_attributes( new_resource, %w[command timeout] ) defin...
sh88/aws_chef_repo
providers/mutator.rb
Ruby
apache-2.0
718
/** * 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...
tweise/apex-malhar
python/src/main/java/org/apache/apex/malhar/python/base/requestresponse/PythonInterpreterResponse.java
Java
apache-2.0
1,582
/** * Yobi, Project Hosting SW * * Copyright 2013 NAVER Corp. * http://yobi.io * * @author Yi EungJun * * 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/l...
ihoneymon/yobi
app/controllers/LabelApp.java
Java
apache-2.0
4,277
# Copyright 2017 The TensorFlow 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 applica...
jart/tensorflow
tensorflow/contrib/autograph/pyct/common_transformers/anf_test.py
Python
apache-2.0
1,708
package com.mapswithme.maps.search; import android.annotation.TargetApi; import android.content.Context; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; import android.support.annotation.CallSuper; import android.support.annotation.Non...
goblinr/omim
android/src/com/mapswithme/maps/search/HotelsFilterView.java
Java
apache-2.0
10,253
# # 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 to in writing, software # distributed under ...
shahankhatch/aurora
src/main/python/apache/aurora/client/cli/update.py
Python
apache-2.0
18,361
# Copyright 2013-2015 ARM Limited # # 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 to in w...
bjackman/workload-automation
wlauto/result_processors/standard.py
Python
apache-2.0
6,207
/* Copyright 2014 The Kubernetes 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 to in writing, ...
timoreimann/kubernetes
pkg/kubectl/cmd/create_namespace_test.go
GO
apache-2.0
1,944
// { "framework": "Vue" } /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /****...
MrRaindrop/incubator-weex
ios/playground/bundlejs/vue/style/style-item.js
JavaScript
apache-2.0
3,888
/* * Copyright 2000-2013 JetBrains s.r.o. * * 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 agre...
goodwinnk/intellij-community
platform/util/src/com/intellij/util/io/RandomAccessFileInputStream.java
Java
apache-2.0
2,545
// @target: es5 let o = { a: 1, b: 'no' } let o2 = { b: 'yes', c: true } let swap = { a: 'yes', b: -1 }; let addAfter: { a: number, b: string, c: boolean } = { ...o, c: false } let addBefore: { a: number, b: string, c: boolean } = { c: false, ...o } // Note: ignore still changes the order that properties are p...
mkusher/TypeScript
tests/cases/conformance/types/spread/objectSpread.ts
TypeScript
apache-2.0
3,234
//// [inheritanceMemberAccessorOverridingAccessor.ts] class a { get x() { return "20"; } set x(aValue: string) { } } class b extends a { get x() { return "20"; } set x(aValue: string) { } } //// [inheritanceMemberAccessorOverridingAccessor.js] var __extends = (thi...
mihailik/TypeScript
tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js
JavaScript
apache-2.0
1,503
// Copyright (C) 2011 The Android Open Source Project // // 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 ...
m1kah/gerrit-contributions
gerrit-gwtui/src/main/java/com/google/gerrit/client/ui/ReviewerSuggestOracle.java
Java
apache-2.0
2,951
package org.bouncycastle.crypto.prng; import java.security.SecureRandom; import org.bouncycastle.crypto.BlockCipher; import org.bouncycastle.crypto.params.KeyParameter; import org.bouncycastle.util.Pack; public class X931SecureRandomBuilder { private SecureRandom random; // JDK 1.1 complains on final. ...
thedrummeraki/Aki-SSL
src/org/bouncycastle/crypto/prng/X931SecureRandomBuilder.java
Java
apache-2.0
3,209
package io.pivotal.gemfire.spark.connector.javaapi; import io.pivotal.gemfire.spark.connector.GemFireConnectionConf; import io.pivotal.gemfire.spark.connector.streaming.GemFireDStreamFunctions; import org.apache.spark.api.java.function.PairFunction; import org.apache.spark.streaming.api.java.JavaDStream; import java.u...
ysung-pivotal/incubator-geode
gemfire-spark-connector/gemfire-spark-connector/src/main/java/io/pivotal/gemfire/spark/connector/javaapi/GemFireJavaDStreamFunctions.java
Java
apache-2.0
3,026
/* 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 not use this f...
vdogaru/incubator-quarks
apps/runtime/src/main/java/org/apache/edgent/apps/runtime/JobMonitorAppEvent.java
Java
apache-2.0
3,846
/* * Copyright 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
jesuscorral/irrduino
IrrduinoDroid/IrrduinoRemote/src/com/joefernandez/irrduino/android/remote/IrrduinoRemoteActivity.java
Java
apache-2.0
12,329
/* * Copyright 2002-2012 the original author or 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 ap...
shivpun/spring-framework
spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java
Java
apache-2.0
1,461
/* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you may...
Kreolwolf1/Elastic
src/main/java/org/elasticsearch/search/facet/histogram/HistogramFacetBuilder.java
Java
apache-2.0
5,903
/* * 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 ...
vlsi/incubator-calcite
core/src/main/java/org/apache/calcite/plan/RelOptRuleOperandChildren.java
Java
apache-2.0
1,973
/* * Created on May 31, 2004 * * Paros and its related class files. * * Paros is an HTTP/HTTPS proxy for assessing web application security. * Copyright (C) 2003-2004 Chinotec Technologies Company * * This program is free software; you can redistribute it and/or * modify it under the terms of the Clarified Art...
psiinon/zaproxy
zap/src/main/java/org/parosproxy/paros/core/proxy/ProxyThreadSSL.java
Java
apache-2.0
2,258
import Feature from '../src/ol/Feature.js'; import Map from '../src/ol/Map.js'; import Point from '../src/ol/geom/Point.js'; import VectorLayer from '../src/ol/layer/Vector.js'; import VectorSource from '../src/ol/source/Vector.js'; import View from '../src/ol/View.js'; import {Fill, RegularShape, Stroke, Style} from '...
adube/ol3
examples/regularshape.js
JavaScript
bsd-2-clause
2,662
// 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 "components/nacl/renderer/ppb_nacl_private_impl.h" #include <numeric> #include <string> #include <vector> #include "base/bind.h" #include "base...
Chilledheart/chromium
components/nacl/renderer/ppb_nacl_private_impl.cc
C++
bsd-3-clause
64,120
/* * Copyright (c), Microsoft Open Technologies, Inc. * 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...
hanmichael/redis
src/Win32_Interop/Win32_QFork.cpp
C++
bsd-3-clause
55,270
""" Filtering and resampling data ============================= Some artifacts are restricted to certain frequencies and can therefore be fixed by filtering. An artifact that typically affects only some frequencies is due to the power line. Power-line noise is a noise created by the electrical network. It is composed...
teonlamont/mne-python
tutorials/plot_artifacts_correction_filtering.py
Python
bsd-3-clause
5,783
using System; namespace HttpServer { /// <summary> /// An unhandled exception have been caught by the system. /// </summary> public class ExceptionEventArgs : EventArgs { private readonly Exception _exception; /// <summary> /// Initializes a new instance of the <see cref="E...
kf6kjg/halcyon
ThirdParty/HttpServer/HttpServer/ExceptionEventArgs.cs
C#
bsd-3-clause
721
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
endlessm/chromium-browser
third_party/llvm/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp
C++
bsd-3-clause
890
module.exports.middleware = function(req, res, next) { req.rootUrl = function() { var port = req.app.settings.port; res.locals.requested_url = req.protocol + '://' + req.hostname + (port == 80 || port == 443 ? '' : ':' + port); return req.protocol + "://" + req.get('host'); }; req.fullPath = function...
andrewvy/slack-pongbot
lib/url.js
JavaScript
isc
387
// add_test.js /* globals add */ describe('Addition', function () { it('should add numbers', function () { expect(add(2, 4)).toBe(6) expect(add(2, 4)).not.toBe(2) }) })
dmitriz/baseline-utils
demo/min-karma-function_test.js
JavaScript
mit
182