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 |
|---|---|---|---|---|---|
<?php
namespace Kunstmaan\GeneratorBundle\Generator;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
/**
* Generates all classes/files for a new page
*/
class PageGenerator extends KunstmaanGenerator
{
/**
* @var BundleInterface
*/
private $bundle;
/**
* @var string
*/
... | Amrit01/KunstmaanBundlesCMS | src/Kunstmaan/GeneratorBundle/Generator/PageGenerator.php | PHP | mit | 5,521 |
/**
*
*/
var obj = {
num: 123,
str: 'hello',
};
obj.
| JonathanUsername/flow | newtests/autocomplete/foo.js | JavaScript | mit | 61 |
function error_log(message, message_type, destination, extra_headers) {
// http://kevin.vanzonneveld.net
// + original by: Paul Hutchinson (http://restaurantthing.com/)
// + revised by: Brett Zamir (http://brett-zamir.me)
// % note 1: The dependencies, mail(), syslog(), and file_put_contents()
//... | cigraphics/phpjs | experimental/errorfunc/error_log.js | JavaScript | mit | 2,020 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/content_settings/content_settings_store.h"
#include <set>
#include "base/debug/alias.h"
#include "base/loggi... | qtekfun/htcDesire820Kernel | external/chromium_org/chrome/browser/extensions/api/content_settings/content_settings_store.cc | C++ | gpl-2.0 | 12,997 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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, or
// (at your option) any later version.
//
// Moodle ... | cbradley456/moodle | report/backups/version.php | PHP | gpl-3.0 | 1,202 |
'use strict'
const Buffer = require('safe-buffer').Buffer
const crypto = require('crypto')
const Transform = require('stream').Transform
const SPEC_ALGORITHMS = ['sha256', 'sha384', 'sha512']
const BASE64_REGEX = /^[a-z0-9+/]+(?:=?=?)$/i
const SRI_REGEX = /^([^-]+)-([^?]+)([?\S*]*)$/
const STRICT_SRI_REGEX = /^([^-... | veerhiremath7/veerhiremath7.github.io | node_modules/ssri/index.js | JavaScript | unlicense | 11,559 |
/// <reference path="fourslash.ts" />
// @allowNonTsExtensions: true
// @Filename: file.js
//// /**
//// * @param {number} a
//// * @param {string} b
//// */
//// exports.foo = function(a, b) {
//// a/*a*/;
//// b/*b*/
//// };
goTo.marker('a');
edit.insert('.');
verify.completionListContains('toF... | plantain-00/TypeScript | tests/cases/fourslash/getJavaScriptCompletions18.ts | TypeScript | apache-2.0 | 477 |
//===--- ScratchBuffer.cpp - Scratch space for forming tokens -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | jeltz/rust-debian-package | src/llvm/tools/clang/lib/Lex/ScratchBuffer.cpp | C++ | apache-2.0 | 2,830 |
<?php
/**
* Validates an integer representation of pixels according to the HTML spec.
*/
class HTMLPurifier_AttrDef_HTML_Pixels extends HTMLPurifier_AttrDef
{
protected $max;
public function __construct($max = null) {
$this->max = $max;
}
public function validate(... | cappetta/CyberCloud | puppet/garbage/website/files/DVWA/external/phpids/0.6/lib/IDS/vendors/htmlpurifier/HTMLPurifier/AttrDef/HTML/Pixels.php | PHP | apache-2.0 | 1,343 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | mahaliachante/aws-sdk-java | aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/ResetDBParameterGroupResult.java | Java | apache-2.0 | 3,865 |
cask 'kk7ds-python-runtime' do
version '10.1'
sha256 '5cee8acb941e39f93a4df6a99ed29a14c48da0bc5beb3b31068852b1fad8b009'
url "http://www.d-rats.com/download/OSX_Runtime/KK7DS_Python_Runtime_R#{version.major}.pkg"
name 'KK7DS Python Runtime'
homepage 'http://www.d-rats.com/download/OSX_Runtime/'
pkg "KK7DS_... | gerrypower/homebrew-cask | Casks/kk7ds-python-runtime.rb | Ruby | bsd-2-clause | 450 |
# == Schema Information
#
# Table name: runner_projects
#
# id :integer not null, primary key
# runner_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
#
module Ci
class RunnerProject < ActiveRecord::Base
extend Ci::Model
... | Exeia/gitlabhq | app/models/ci/runner_project.rb | Ruby | mit | 494 |
// { dg-options "-std=gnu++0x" }
// 2010-03-23 Paolo Carlini <paolo.carlini@oracle.com>
//
// Copyright (C) 2010-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Pub... | pschorf/gcc-races | libstdc++-v3/testsuite/20_util/is_literal_type/value.cc | C++ | gpl-2.0 | 1,855 |
// Copyright (C) 2004-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your op... | atgreen/gcc | libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc | C++ | gpl-2.0 | 2,596 |
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
// Copyright (C) 2012-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Fre... | atgreen/gcc | libstdc++-v3/testsuite/23_containers/list/requirements/do_the_right_thing.cc | C++ | gpl-2.0 | 950 |
<?php
/**
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the... | jacobdfriedmann/jacobfriedmanndotcom | wp-content/plugins/wp-amazon-web-services-master/vendor/aws/Aws/S3/Sync/UploadSyncBuilder.php | PHP | gpl-2.0 | 5,208 |
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function (_, $, Backbone, Drupal) {
Drupal.quickedit.EntityModel = Drupal.quickedit.BaseModel.extend({
defaults: {
el: null,
entityID: null,
entityInstan... | isauragalafate/drupal8 | web/core/modules/quickedit/js/models/EntityModel.js | JavaScript | gpl-2.0 | 10,662 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/file_system/entry_watcher_service_factory.h"
#include "chrome/browser/extensions/api/file_system/entry_watcher_se... | s20121035/rk3288_android5.1_repo | external/chromium_org/chrome/browser/extensions/api/file_system/entry_watcher_service_factory.cc | C++ | gpl-3.0 | 1,309 |
<?php
use LibreNMS\Exceptions\InvalidIpException;
use LibreNMS\Util\IP;
echo '<div class="container-fluid">';
echo "<div class='row'>
<div class='col-md-12'>
<div class='panel panel-default panel-condensed'>
<div class='panel-heading'>";
if ($config['overview_show_sysDescr']) {
echo '... | wikimedia/operations-software-librenms | html/includes/dev-overview-data.inc.php | PHP | gpl-3.0 | 3,565 |
/*
* Copyright 2000-2014 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... | akosyakov/intellij-community | python/src/com/jetbrains/python/codeInsight/stdlib/PyStdlibCanonicalPathProvider.java | Java | apache-2.0 | 3,015 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | mahaliachante/aws-sdk-java | aws-java-sdk-efs/src/main/java/com/amazonaws/services/elasticfilesystem/model/FileSystemNotFoundException.java | Java | apache-2.0 | 2,190 |
/// <reference path='fourslash.ts' />
// @Filename: foo.ts
//// export function /*Destination*/bar() { return "bar"; }
//// import('./foo').then(({ [|ba/*1*/r|] }) => undefined);
verify.goToDefinition("1", "Destination"); | basarat/TypeScript | tests/cases/fourslash/goToDefinitionDynamicImport4.ts | TypeScript | apache-2.0 | 234 |
/*
* #%L
* BroadleafCommerce Open Admin Platform
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* 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.... | cloudbearings/BroadleafCommerce | admin/broadleaf-open-admin-platform/src/main/java/org/broadleafcommerce/openadmin/web/filter/BroadleafAdminTimeZoneResolver.java | Java | apache-2.0 | 1,370 |
/*
* #%L
* BroadleafCommerce Open Admin Platform
* %%
* Copyright (C) 2009 - 2014 Broadleaf Commerce
* %%
* 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.... | cengizhanozcan/BroadleafCommerce | admin/broadleaf-open-admin-platform/src/main/java/org/broadleafcommerce/openadmin/server/security/service/RowLevelSecurityService.java | Java | apache-2.0 | 1,996 |
var $ = require('common:widget/ui/jquery/jquery.js');
var UT = require('common:widget/ui/ut/ut.js');
var FBClient = {};
var TPL_CONF = require('home:widget/ui/facebook/fbclient-tpl.js');
/**
* Fackbook module init function
* @return {object} [description]
*/
var WIN = window,
DOC = document,
conf = WIN.conf.FBCli... | femxd/fxd | test/diff_fis3_smarty/product_code/hao123_fis3_smarty/home/widget/ui/facebook/fbclient.js | JavaScript | bsd-2-clause | 11,122 |
"""
Contains CheesePreprocessor
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#----------... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/nbconvert/exporters/tests/cheese.py | Python | bsd-2-clause | 1,485 |
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/* JOrbis
* Copyright (C) 2000 ymnk, JCraft,Inc.
*
* Written by: 2000 ymnk<ymnk@jcraft.com>
*
* Many thanks to
* Monty <monty@xiph.org> and
* The XIPHOPHORUS Company http://www.xiph.org/ .
* JOrbis has been based on their awesome works, V... | XtremeMP-Project/xtrememp-fx | xtrememp-audio-spi-vorbis/src/com/jcraft/jorbis/PsyInfo.java | Java | bsd-3-clause | 2,222 |
/**
* 404 (Not Found) Handler
*
* Usage:
* return res.notFound();
* return res.notFound(err);
* return res.notFound(err, 'some/specific/notfound/view');
*
* e.g.:
* ```
* return res.notFound();
* ```
*
* NOTE:
* If a request doesn't match any explicit routes (i.e. `config/routes.js`)
* or route blueprint... | Karnith/sails-generate-backend-gulp | templates/api/responses/notFound.js | JavaScript | mit | 2,543 |
// Copyright 2014 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.
package org.chromium.base;
import android.os.Looper;
import android.os.MessageQueue;
import android.os.SystemClock;
import android.util.Log;
import andro... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/base/android/java/src/org/chromium/base/TraceEvent.java | Java | mit | 11,372 |
/*
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | rokn/Count_Words_2015 | testing/openjdk/jdk/make/tools/src/build/tools/jdwpgen/AltNode.java | Java | mit | 4,156 |
/*
* Copyright (C) 2005-2020 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#include "DRMEncoder.h"
#include <cstring>
#include <errno.h>
#include <stdexcept>
#include <string>
using namespace KODI::WIN... | asavah/xbmc | xbmc/windowing/gbm/drm/DRMEncoder.cpp | C++ | gpl-2.0 | 562 |
#
# Copyright (C) 2014 Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that ... | Rvor/canvas-lms | spec/migrations/cleanup_duplicate_external_feeds_spec.rb | Ruby | agpl-3.0 | 2,707 |
/*
* Copyright (c) 2015, 张涛.
*
* 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... | supercwn/KJFrameForAndroid | KJFrame/app/src/main/java/org/kymjs/blog/ui/widget/RecordButtonUtil.java | Java | apache-2.0 | 5,318 |
/**
* Copyright 2015 IBM Corp.
*
* 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 wr... | mikestebbins/node-red | red/api/theme.js | JavaScript | apache-2.0 | 5,062 |
<?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.
*/
/*
* Autoloader and dependency injection initialization for Swift Mailer.
*/
//Load Swift utility class
r... | monokal/docker-orangehrm | www/symfony/lib/vendor/symfony/lib/vendor/swiftmailer/swift_required_pear.php | PHP | gpl-2.0 | 524 |
using System;
namespace fizz_buzz
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i < 101; i++)
{
if (i % 3 < 1)
Console.Write("fizz");
if (i % 5 < 1)
Console.Write("buzz");
... | aloisdg/code-problems | solutions/cs/shortest-fizz-buzz.cs | C# | mit | 477 |
require "rack/chunked"
module ActionController #:nodoc:
# Allows views to be streamed back to the client as they are rendered.
#
# By default, Rails renders views by first rendering the template
# and then the layout. The response is sent to the client after the whole
# template is rendered, all queries are ... | lrosskamp/makealist-public | vendor/cache/ruby/2.3.0/gems/actionpack-5.1.2/lib/action_controller/metal/streaming.rb | Ruby | mit | 7,653 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Buffers;
using System.Collections;
using System.Diagnostics;
using System.Runtime.InteropServices;
nam... | BrennanConroy/corefx | src/Common/src/CoreLib/System/Environment.Variables.Windows.cs | C# | mit | 6,424 |
export { Moon16 as default } from "../../";
| markogresak/DefinitelyTyped | types/carbon__icons-react/es/moon/16.d.ts | TypeScript | mit | 44 |
export { Mpeg16 as default } from "../../";
| georgemarshall/DefinitelyTyped | types/carbon__icons-react/es/MPEG/16.d.ts | TypeScript | mit | 44 |
<?php
namespace Illuminate\Mail\Transport;
use Swift_Mime_Message;
use Illuminate\Support\Collection;
class ArrayTransport extends Transport
{
/**
* The collection of Swift Messages.
*
* @var \Illuminate\Support\Collection
*/
protected $messages;
/**
* Create a new array transpo... | vileopratama/portal-toyotadjakarta | vendor/laravel/framework/src/Illuminate/Mail/Transport/ArrayTransport.php | PHP | mit | 1,109 |
/*! asynquence-contrib
v0.13.0 (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/
(function UMD(dependency,definition){
if (typeof module !== "undefined" && module.exports) {
// make dependency injection wrapper first
module.exports = function $$inject$dependency(dep) {
// only try to `requ... | x112358/cdnjs | ajax/libs/asynquence-contrib/0.13.0/contrib.src.js | JavaScript | mit | 50,809 |
<?php
define( "MSG_TIMEOUT", 2.0 );
define( "MSG_DATA_SIZE", 4+256 );
if ( canEdit( 'Monitors' ) )
{
$zmuCommand = getZmuCommand( " -m ".validInt($_REQUEST['id']) );
switch ( validJsStr($_REQUEST['command']) )
{
case "disableAlarms" :
{
$zmuCommand .= " -n";
break... | seebaer1976/ZoneMinder | web/ajax/alarm.php | PHP | gpl-2.0 | 907 |
/**
* Copyright 2014 Google Inc. 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 appli... | Shance/newsaity74.ru | templates/blank_j3/node_modules/psi/node_modules/googleapis/apis/storage/v1.js | JavaScript | gpl-2.0 | 48,996 |
/*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
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 versi... | n0xus/darkstar | src/map/packets/char_sync.cpp | C++ | gpl-3.0 | 1,592 |
<?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 a... | dbashyal/MagentoStarterBase | trunk/lib/Zend/Gdata/YouTube/Extension/Statistics.php | PHP | lgpl-3.0 | 9,761 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | mahaliachante/aws-sdk-java | aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/model/transform/InvalidParameterValueExceptionUnmarshaller.java | Java | apache-2.0 | 2,012 |
/*
* Copyright (C) 2010-2013 The SINA WEIBO 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 require... | zjupure/SneezeReader | weibosdk/src/main/java/com/sina/weibo/sdk/openapi/models/Status.java | Java | apache-2.0 | 5,659 |
// Random number generator - requires a PRNG backend, e.g. prng4.js
// For best results, put code like
// <body onClick='rng_seed_time();' onKeyPress='rng_seed_time();'>
// in your main HTML document.
var rng_state;
var rng_pool;
var rng_pptr;
// Mix in a 32-bit integer into the pool
function rng_seed_int(x) {
rng... | enketosurvey/mo | www/lib/rsa/rng.js | JavaScript | apache-2.0 | 2,112 |
/*
* Licensed to Elasticsearch 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
* not use this fi... | corochoone/elasticsearch | src/main/java/org/elasticsearch/search/aggregations/bucket/filter/InternalFilter.java | Java | apache-2.0 | 2,222 |
/* ==========================================================
* bootstrap-formhelpers-countries.en_US.js
* https://github.com/vlamanna/BootstrapFormHelpers
* ==========================================================
* Copyright 2012 Vincent Lamanna
*
* Licensed under the Apache License, Version 2.0 (the "License... | Eonic/EonicWeb5 | wwwroot/ewcommon/bs3/addons/formHelpers/js/lang/en_US/bootstrap-formhelpers-countries.en_US.js | JavaScript | apache-2.0 | 6,201 |
/*before*/"use strict";
/*after*/foo();
| zjmiller/babel | packages/babel-plugin-transform-strict-mode/test/fixtures/auxiliary-comment/use-strict-add/expected.js | JavaScript | mit | 41 |
/*
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | rokn/Count_Words_2015 | testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/parser/ParserContext.java | Java | mit | 6,989 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using Xunit;
namespace System.Globalization.Tests
{
public class StringInfoGe... | ellismg/corefx | src/System.Globalization/tests/StringInfo/StringInfoGetTextElementEnumerator.cs | C# | mit | 3,157 |
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU... | alexbevi/scummvm | engines/dm/inventory.cpp | C++ | gpl-2.0 | 40,443 |
"""generated file, don't modify or your data will be lost"""
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
pass
| GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/logilab/__init__.py | Python | agpl-3.0 | 155 |
/*
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, ... | jprukner/origin | vendor/k8s.io/kubernetes/pkg/volume/plugins.go | GO | apache-2.0 | 21,701 |
/**
* Update: 15-5-11
* Editor: qihongye
*/
var fs = require('fs');
var path = require('path');
var fis = require('../lib/fis.js');
var _ = fis.file;
var defaultSettings = (require('../lib/config.js')).DEFALUT_SETTINGS;
var expect = require('chai').expect;
var u = fis.util;
var config = null;
describe('config: co... | richard-chen-1985/fis3 | test/config.js | JavaScript | bsd-2-clause | 6,959 |
(function() {
var add, crispedges, feature, flexbox, fullscreen, gradients, logicalProps, prefix, readOnly, resolution, result, sort, writingMode,
slice = [].slice;
sort = function(array) {
return array.sort(function(a, b) {
var d;
a = a.split(' ');
b = b.split(' ');
if (a[0] > b[0]... | yuyang545262477/AfterWork | webpack/LittleTwo/node_modules/autoprefixer/data/prefixes.js | JavaScript | mit | 15,271 |
export interface IGridItem {
name: string;
}
export class Tests {
public items: KnockoutObservableArray<IGridItem>;
public selectedItems: KnockoutObservableArray<IGridItem>;
public gridOptionsAlarms: kg.GridOptions<IGridItem>;
constructor() {
this.items = ko.observableArray<IGridItem>();
... | markogresak/DefinitelyTyped | types/knockout.kogrid/knockout.kogrid-tests.ts | TypeScript | mit | 917 |
<?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\Serializer\Mapping;
/**
* Knows how to get the class... | hacfi/symfony | src/Symfony/Component/Serializer/Mapping/ClassDiscriminatorResolverInterface.php | PHP | mit | 991 |
/*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | rokn/Count_Words_2015 | testing/openjdk2/jdk/src/share/classes/sun/text/resources/sr/FormatData_sr_ME.java | Java | mit | 3,546 |
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | rokn/Count_Words_2015 | testing/openjdk/jdk/test/javax/sound/midi/Gervill/SoftAudioSynthesizer/GetFormat.java | Java | mit | 2,359 |
/*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | rokn/Count_Words_2015 | testing/openjdk2/jdk/src/share/classes/java/lang/CharacterName.java | Java | mit | 4,017 |
/*
* grunt-contrib-compress
* http://gruntjs.com/
*
* Copyright (c) 2016 Chris Talkington, contributors
* Licensed under the MIT license.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var prettyBytes = require('pretty-bytes');
var chalk = require('chalk');
var zlib = require('zlib');
var ... | ph3l1x/realestate | sites/all/themes/default/bootstrap/node_modules/grunt-contrib-compress/tasks/lib/compress.js | JavaScript | gpl-2.0 | 7,527 |
#--
# $Id: text.rb,v 1.7 2009/02/28 23:52:28 rmagick Exp $
# Copyright (C) 2009 Timothy P. Hunter
#++
# Text-related classes
module Magick
class RVG
# Base class for Tspan, Tref and Text.
class TextBase
include Stylable
include Duplicatable
private
d... | mzemel/kpsu.org | vendor/gems/ruby/1.8/gems/rmagick-2.13.1/lib/rvg/text.rb | Ruby | gpl-3.0 | 5,772 |
tinyMCE.addI18n('th.advimage_dlg',{
tab_general:"\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B",
tab_appearance:"\u0E25\u0E31\u0E01\u0E29\u0E13\u0E30",
tab_advanced:"\u0E02\u0E31\u0E49\u0E19\u0E2A\u0E39\u0E07",
general:"\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B",
title:"\u0E0A\u0E37\u0E48\u0E2D",
preview:"\u0E14\u0E39\u0E15\u0... | numericube/twistranet | twistranet/themes/twistheme/static/js/tiny_mce/plugins/advimage/langs/th_dlg.js | JavaScript | agpl-3.0 | 3,520 |
/*
* Licensed to Elasticsearch 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
* not use this fi... | himanshuag/elasticsearch | core/src/main/java/org/elasticsearch/discovery/zen/fd/MasterFaultDetection.java | Java | apache-2.0 | 19,229 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2012, Ajax.org B.V.
* 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 sou... | jecelyin/920-text-editor-v2 | tools/assets/ace/lib/ace/mode/nsis.js | JavaScript | apache-2.0 | 2,369 |
(function( $ ) {
/**
* Activity reply object for the activity index screen
*
* @since 1.6
*/
var activityReply = {
/**
* Attach event handler functions to the relevant elements.
*
* @since 1.6
*/
init : function() {
$(document).on( 'click', '.row-actions a.reply', activityReply.open );
... | jnishiyama/PebblesWP | wp-content/plugins/buddypress/bp-activity/admin/js/admin.dev.js | JavaScript | gpl-2.0 | 4,291 |
/**
* @preserve SelectNav.js (v. 0.1)
* Converts your <ul>/<ol> navigation into a dropdown list for small screens
* https://github.com/lukaszfiszer/selectnav.js
*/
window.selectnav = (function(){
"use strict";
var selectnav = function(element,options){
element = document.getElementById(element);
// r... | rtdean93/drupalengage | store.drupalengage.com/profiles/commerce_kickstart/libraries/selectnav.js/selectnav.js | JavaScript | gpl-2.0 | 3,924 |
/*=============================================================================
Copyright (c) 2002-2015 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=========================================... | gwq5210/litlib | thirdparty/sources/boost_1_60_0/libs/spirit/example/x3/complex_number.cpp | C++ | gpl-3.0 | 3,196 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013-2017 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
from __future__ import absolute_import
import os
import re
import sys
try:
import ssl
except ImportError: # pragma: no cover
s... | RalfBarkow/Zettelkasten | venv/lib/python3.9/site-packages/pip/_vendor/distlib/compat.py | Python | gpl-3.0 | 41,408 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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, or
// (at your option) any later version.
//
// Moodle ... | jethac/moodle | user/profile/field/checkbox/version.php | PHP | gpl-3.0 | 1,186 |
<?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... | jenalgit/shopware | engine/Shopware/Bundle/PluginInstallerBundle/Struct/CommentStruct.php | PHP | agpl-3.0 | 2,823 |
#include "PresetMerge.hpp"
#include <iostream>
void PresetMerger::MergePresets(PresetOutputs & A, PresetOutputs & B, mathtype ratio, int gx, int gy)
{
mathtype invratio = mathval(1.0f) - ratio;
//Merge Simple Waveforms
//
// All the mess is because of Waveform 7, which is two lines.
//
A.wave_rot = math... | neurocis/sagetv | third_party/VisEngine/PresetMerge.cpp | C++ | apache-2.0 | 7,592 |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "index";
this... | jvkops/alloy | test/apps/testing/ALOY-262/_generated/mobileweb/alloy/controllers/index.js | JavaScript | apache-2.0 | 1,252 |
/*
Copyright 2016 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, ... | rawlingsj/gofabric8 | vendor/k8s.io/kubernetes/federation/cmd/federation-apiserver/app/core.go | GO | apache-2.0 | 3,587 |
<?php
final class PhabricatorPolicyConfigOptions
extends PhabricatorApplicationConfigOptions {
public function getName() {
return pht('Policy');
}
public function getDescription() {
return pht('Options relating to object visibility.');
}
public function getFontIcon() {
return 'fa-lock';
}
... | leolujuyi/phabricator | src/applications/policy/config/PhabricatorPolicyConfigOptions.php | PHP | apache-2.0 | 2,669 |
name1_0_1_0_0_4_0 = None
name1_0_1_0_0_4_1 = None
name1_0_1_0_0_4_2 = None
name1_0_1_0_0_4_3 = None
name1_0_1_0_0_4_4 = None | asedunov/intellij-community | python/testData/completion/heavyStarPropagation/lib/_pkg1/_pkg1_0/_pkg1_0_1/_pkg1_0_1_0/_pkg1_0_1_0_0/_mod1_0_1_0_0_4.py | Python | apache-2.0 | 128 |
import datetime
from decimal import Decimal
import types
import six
def is_protected_type(obj):
"""Determine if the object instance is of a protected type.
Objects of protected types are preserved as-is when passed to
force_unicode(strings_only=True).
"""
return isinstance(obj, (
six.inte... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/external/org_mozilla_bleach/bleach/encoding.py | Python | bsd-2-clause | 2,277 |
#include "cpu_profile.h"
#include "cpu_profile_node.h"
namespace nodex {
using v8::Array;
using v8::CpuProfile;
using v8::CpuProfileNode;
using v8::Handle;
using v8::Number;
using v8::Integer;
using v8::Local;
using v8::Object;
using v8::ObjectTemplate;
using v8::FunctionTemplate;
using v8::Strin... | node-inspector/v8-profiler | src/cpu_profile.cc | C++ | bsd-2-clause | 3,600 |
/*
* Copyright (c) 2014, 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.
*
*/
#include <s... | honestme/osquery | osquery/events/linux/inotify.cpp | C++ | bsd-3-clause | 8,994 |
// Copyright (c) 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 "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h"
#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
#include "thir... | aospx-kitkat/platform_external_chromium_org | webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc | C++ | bsd-3-clause | 2,195 |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("placeholder","sv",{title:"Innehållsrutans egenskaper",toolbar:"Skapa innehållsruta",name:"Innehållsrutans namn",invalidName:"Inn... | Laravel-Backpack/crud | src/public/packages/ckeditor/plugins/placeholder/lang/sv.js | JavaScript | mit | 456 |
# encoding: utf-8
require 'ffaker/address'
module Faker
module AddressDE
include Faker::Address
extend ModuleUtils
extend self
def zip_code
Faker.numerify ZIP_FORMATS.rand
end
def state
STATE.rand
end
def city
CITY.rand
end
def street_name
case ra... | hyfn/ffaker | lib/ffaker/address_de.rb | Ruby | mit | 656 |
<?php
namespace Pagekit\Event;
interface EventSubscriberInterface
{
/**
* Returns an array of event names this subscriber wants to listen to.
*
* @return array
*/
public function subscribe();
}
| yaelduckwen/entretelas | web/app/modules/application/src/Event/EventSubscriberInterface.php | PHP | mit | 224 |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
get_server_fields = function(method, arg, table_field, doc, dt, dn, allow_edit, call_back) {
frappe.dom.freeze();
if($.isPlainObject(arg)) arg = JSON.stringify(arg);
return $c('runserverobj',
args={'method': m... | pawaranand/phr_frappe | frappe/public/js/legacy/clientscriptAPI.js | JavaScript | mit | 7,148 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbDown = (props) => (
<SvgIcon {...props}>
<path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5... | mmrtnz/material-ui | src/svg-icons/action/thumb-down.js | JavaScript | mit | 562 |
class TagGroupSerializer < ApplicationSerializer
attributes :id, :name, :tag_names, :parent_tag_name, :one_per_topic
def tag_names
object.tags.map(&:name).sort
end
def parent_tag_name
[object.parent_tag.try(:name)].compact
end
end
| shirishgoyal/daemo-forum | app/serializers/tag_group_serializer.rb | Ruby | gpl-2.0 | 251 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/bind.h"
#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/stl_util.h"
#i... | s20121035/rk3288_android5.1_repo | external/chromium_org/content/common/gpu/media/vaapi_video_decode_accelerator.cc | C++ | gpl-3.0 | 30,302 |
package org.jsoup.parser;
import org.jsoup.helper.Validate;
import java.util.Arrays;
import java.util.Locale;
/**
CharacterReader consumes tokens off a string. To replace the old TokenQueue.
*/
final class CharacterReader {
static final char EOF = (char) -1;
private static final int maxCacheLen = 12;
... | rogerxaic/gestock | src/org/jsoup/parser/CharacterReader.java | Java | unlicense | 10,826 |
# (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
# 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/LI... | nikesh-mahalka/cinder | cinder/tests/unit/fake_hp_client_exceptions.py | Python | apache-2.0 | 3,077 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | tkafalas/pentaho-kettle | engine/src/test/java/org/pentaho/di/job/entries/evaluatetablecontent/MockDriver.java | Java | apache-2.0 | 3,801 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | wseyler/pentaho-kettle | core/src/main/java/org/pentaho/di/core/KettleAttributeInterface.java | Java | apache-2.0 | 1,533 |
/*
* Copyright 2016 The Netty Project
*
* The Netty Project licenses this file to you 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 ... | bryce-anderson/netty | transport/src/main/java/io/netty/channel/DefaultSelectStrategy.java | Java | apache-2.0 | 1,101 |
/**
* Module dependencies.
*/
var Connection = require('../../connection')
, mongo = require('mongodb')
, Server = mongo.Server
, ReplSetServers = mongo.ReplSetServers;
/**
* Connection for mongodb-native driver
*
* @api private
*/
function NativeConnection() {
Connection.apply(this, arguments);
};
/*... | f14c0/rb-sensor | webapp/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js | JavaScript | mit | 2,154 |
<?php
// autoload_namespaces.php generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Twig_Extensions_' => $vendorDir . '/twig/extensions/lib/',
'Twig_' => $vendorDir . '/twig/twig/lib/',
'Symfony\\Bundle\\SwiftmailerBundle' => $vendorDir . '/symfony/swiftma... | KammounHatem/projetgl | vendor/composer/autoload_namespaces.php | PHP | mit | 1,696 |
// $Id: ajax.js,v 1.26.2.2 2009/11/30 22:47:05 merlinofchaos Exp $
/**
* @file ajax_admin.js
*
* Handles AJAX submission and response in Views UI.
*/
Drupal.Views.Ajax = Drupal.Views.Ajax || {};
/**
* Handles the simple process of setting the ajax form area with new data.
*/
Drupal.Views.Ajax.setForm = function... | hugowetterberg/goodold_drupal | sites/all/modules/views/js/ajax.js | JavaScript | gpl-2.0 | 9,897 |
esprima.tokenize(null);
| supriyantomaftuh/esprima | test/fixtures/api/migrated_0010.run.js | JavaScript | bsd-2-clause | 24 |