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 |
|---|---|---|---|---|---|
import { WindGusts24 } from "../../";
export = WindGusts24;
| markogresak/DefinitelyTyped | types/carbon__icons-react/lib/wind-gusts/24.d.ts | TypeScript | mit | 61 |
/**
* Copyright (c) 2010-2016, openHAB.org and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org... | evansj/openhab | bundles/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/model/adapter/TrimToNullStringAdapter.java | Java | epl-1.0 | 1,031 |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details... | reuk/waveguide | wayverb/JuceLibraryCode/modules/juce_gui_basics/layout/juce_ComponentBuilder.cpp | C++ | gpl-2.0 | 8,800 |
var URL = require("../url2");
var tests = [
{
source: "",
target: "",
relative: ""
},
{
source: "foo/bar/",
target: "foo/bar/",
relative: ""
},
{
source: "foo/bar/baz",
target: "foo/bar/",
relative: "./"
},
{
... | AlexanderDolgan/sputnik | wp-content/themes/node_modules/gulp.spritesmith/node_modules/url2/test/url2-spec.js | JavaScript | gpl-2.0 | 2,582 |
# barber patches to re-route raw compilation via ember compat handlebars
class Barber::Precompiler
def sources
[File.open("#{Rails.root}/vendor/assets/javascripts/handlebars.js"),
precompiler]
end
def precompiler
if !@precompiler
source = File.read("#{Rails.root}/app/assets/javascripts/disco... | gsambrotta/discourse | lib/freedom_patches/raw_handlebars.rb | Ruby | gpl-2.0 | 2,215 |
<?php
/**
* @package Joomla.UnitTest
* @subpackage Linkedin
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Test class for JLinkedinCommunications.
*
* @package Joomla.Unit... | philip-sorokin/joomla-cms | tests/unit/suites/libraries/joomla/linkedin/JLinkedinCommunicationsTest.php | PHP | gpl-2.0 | 10,137 |
<?php
function _wpsc_get_exchange_rate( $from, $to ) {
if ( $from == $to ) {
return 1;
}
$key = "wpsc_exchange_{$from}_{$to}";
if ( $rate = get_transient( $key ) ) {
return (float) $rate;
}
$url = add_query_arg(
array(
'a' => '1',
'from' => $from,
'to' => $to
),
'http://ww... | ericbarns/WP-e-Commerce | wpsc-includes/currency.helpers.php | PHP | gpl-2.0 | 1,953 |
import { Mongo } from "meteor/mongo";
/**
* Client side collections
*/
export const Countries = new Mongo.Collection(null);
| deetail/kimchi4u | client/collections/countries.js | JavaScript | gpl-3.0 | 128 |
from inspect import ismethod, isfunction
import os
import time
import traceback
from CodernityDB.database import RecordDeleted, RecordNotFound
from couchpotato import md5, get_db
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.encoding import ... | coderb0t/CouchPotatoServer | couchpotato/core/plugins/release/main.py | Python | gpl-3.0 | 20,734 |
package aws
import (
"fmt"
"log"
"math"
"regexp"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/helper/schema"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
events "github.com/aws/aws-sdk-go/service/cloudwatchevents"
"github.com/hashicorp/terraform... | hartzell/terraform | vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_event_target.go | GO | mpl-2.0 | 11,014 |
from edxmako.shortcuts import render_to_string
from pipeline.conf import settings
from pipeline.packager import Packager
from pipeline.utils import guess_type
from static_replace import try_staticfiles_lookup
def compressed_css(package_name):
package = settings.PIPELINE_CSS.get(package_name, {})
if package:
... | liuqr/edx-xiaodun | common/djangoapps/pipeline_mako/__init__.py | Python | agpl-3.0 | 2,354 |
/*
* 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 ... | ijokarumawak/nifi | nifi-nar-bundles/nifi-standard-services/nifi-hbase-client-service-api/src/main/java/org/apache/nifi/hbase/DeleteRequest.java | Java | apache-2.0 | 2,100 |
// 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.
#nullable disable
using System;
using System.Diagnostics;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysi... | physhi/roslyn | src/Workspaces/Core/Portable/Differencing/SequenceEdit.cs | C# | apache-2.0 | 3,081 |
// Copyright 2015 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 icmp
import (
"fmt"
"net"
"reflect"
"testing"
"golang.org/x/net/internal/iana"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
)
func TestMars... | muzining/net | x/net/icmp/extension_test.go | GO | bsd-3-clause | 8,186 |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | mxOBS/deb-pkg_trusty_chromium-browser | third_party/libc++/trunk/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp | C++ | bsd-3-clause | 5,616 |
/*
* Planck.js v0.1.34
*
* Copyright (c) 2016-2017 Ali Shakiba http://shakiba.me/planck.js
* Copyright (c) 2006-2013 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from... | PeterDaveHello/jsdelivr | files/planck/0.1.34/planck-with-testbed.js | JavaScript | mit | 464,606 |
module.exports = function isString (value) {
return Object.prototype.toString.call(value) === '[object String]'
}
| chrisdavidmills/express-local-library | node_modules/helmet-csp/lib/is-string.js | JavaScript | mit | 116 |
/*
* The MIT License
* Copyright (c) 2012 Microsoft 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 restriction, including without limitation the rights
* to use,... | KatharineYe/ews-java-api | src/main/java/microsoft/exchange/webservices/data/core/request/MoveCopyItemRequest.java | Java | mit | 3,795 |
import { Teammates } from "../../";
export = Teammates;
| georgemarshall/DefinitelyTyped | types/carbon__pictograms-react/lib/teammates/index.d.ts | TypeScript | mit | 57 |
self.description = "Install a package from a sync db with fnmatch'ed NoExtract"
sp = pmpkg("dummy")
sp.files = ["bin/dummy",
"usr/share/man/man8",
"usr/share/man/man1/dummy.1"]
self.addpkg2db("sync", sp)
self.option["NoExtract"] = ["usr/share/man/*"]
self.args = "-S %s" % sp.name
self.addrul... | kylon/pacman-fakeroot | test/pacman/tests/sync502.py | Python | gpl-2.0 | 513 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/renderer_host/media/audio_sync_reader.h"
#include <algorithm>
#include "base/command_line.h"
#include "base/memory/shared_... | qtekfun/htcDesire820Kernel | external/chromium_org/content/browser/renderer_host/media/audio_sync_reader.cc | C++ | gpl-2.0 | 6,518 |
<?php
/**
* Discussion
*
* @package ThematicCoreLibrary
* @subpackage Discussion
*/
/**
* Custom callback function to list comments in the Thematic style.
*
* If you want to use your own comments callback for wp_list_comments, filter list_comments_arg
*
* @param object $comment
* @param array $args
* ... | bourroush/blog-17aout | wp-content/themes/thematic/library/extensions/discussion.php | PHP | gpl-2.0 | 2,891 |
// Generated by CoffeeScript 1.4.0
(function() {
var RoomIO;
RoomIO = require('./room').RoomIO;
exports.RequestIO = (function() {
function RequestIO(socket, request, io) {
this.socket = socket;
this.request = request;
this.manager = io;
}
RequestIO.prototype.broadcast = function(... | mekinney/transparica | webapp/node_modules/express.io/compiled/request.js | JavaScript | gpl-2.0 | 1,285 |
# -*- coding: utf-8 -*-
from . import project_sla
from . import analytic_account
from . import project_sla_control
from . import project_issue
from . import project_task
from . import report
| sergiocorato/project-service | project_sla/__init__.py | Python | agpl-3.0 | 191 |
from nose.tools import *
from framework.mongo import database as db
from scripts.remove_wiki_title_forward_slashes import main
from tests.base import OsfTestCase
from tests.factories import NodeWikiFactory, ProjectFactory
class TestRemoveWikiTitleForwardSlashes(OsfTestCase):
def test_forward_slash_is_removed_... | rdhyee/osf.io | scripts/tests/test_remove_wiki_title_forward_slashes.py | Python | apache-2.0 | 1,335 |
name "runit_test"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "This cookbook is used with test-kitchen to test the parent, runit cookbok"
version "1.0.0"
| dialoghq/runit | test/kitchen/cookbooks/runit_test/metadata.rb | Ruby | apache-2.0 | 258 |
package hclog
import (
"bufio"
"bytes"
"encoding"
"encoding/json"
"fmt"
"log"
"os"
"reflect"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
)
var (
_levelToBracket = map[Level]string{
Debug: "[DEBUG]",
Trace: "[TRACE]",
Info: "[INFO] ",
Warn: "[WARN] ",
Error: "[ERROR]",
... | xanzy/terraform-provider-cosmic | vendor/github.com/hashicorp/go-hclog/int.go | GO | apache-2.0 | 11,348 |
/*
Copyright 2015 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, ... | victorgp/kubernetes | pkg/controller/podautoscaler/horizontal.go | GO | apache-2.0 | 33,818 |
// 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/ui/global_error/global_error_service.h"
#include <algorithm>
#include "base/stl_util.h"
#include "chrome/browser/chrome_not... | aospx-kitkat/platform_external_chromium_org | chrome/browser/ui/global_error/global_error_service.cc | C++ | bsd-3-clause | 3,238 |
// 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 "google_apis/gaia/gaia_oauth_client.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#inc... | Gateworks/platform-external-chromium_org | google_apis/gaia/gaia_oauth_client.cc | C++ | bsd-3-clause | 13,657 |
// Copyright 2015 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/usb/usb_chooser_context_factory.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chro... | endlessm/chromium-browser | chrome/browser/usb/usb_chooser_context_factory.cc | C++ | bsd-3-clause | 1,559 |
// Code generated by protoc-gen-gogo.
// source: combos/both/one.proto
// DO NOT EDIT!
/*
Package one is a generated protocol buffer package.
It is generated from these files:
combos/both/one.proto
It has these top-level messages:
Subby
SampleOneOf
*/
package one
import proto "github.com/gogo/protobuf/prot... | ae6rt/decap | web/vendor/github.com/gogo/protobuf/test/oneof3/combos/both/one.pb.go | GO | mit | 99,707 |
/*
* Copyright (c) 2006, 2015, 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 ... | FauxFaux/jdk9-langtools | test/tools/javac/enum/6350057/T6350057.java | Java | gpl-2.0 | 3,605 |
<?php
/**
* @package Joomla.UnitTest
* @subpackage Linkedin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Test class for JLinkedinPeople.
*
* @package Joomla.UnitTest
* ... | 810/joomla-cms | tests/unit/suites/libraries/joomla/linkedin/JLinkedinPeopleTest.php | PHP | gpl-2.0 | 13,369 |
<?php
/* Copyright (C) 2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Frederic France <frederic.france@free.fr>
*
* 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 So... | atm-robin/dolibarr | htdocs/core/actions_fetchobject.inc.php | PHP | gpl-3.0 | 1,522 |
// Inspired from https://github.com/tsi/inlineDisqussions
(function () {
'use strict';
var website = openerp.website,
qweb = openerp.qweb;
website.blog_discussion = openerp.Class.extend({
init: function(options) {
var self = this ;
self.discus_identifier;
... | jjscarafia/odoo | addons/website_blog/static/src/js/website_blog.inline.discussion.js | JavaScript | agpl-3.0 | 9,713 |
/*
* Copyright (c) 2005-2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.ap... | madhawa-gunasekara/carbon-commons | components/event/org.wso2.carbon.event.ws/src/main/java/org/wso2/carbon/event/ws/internal/builders/exceptions/InvalidExpirationTimeException.java | Java | apache-2.0 | 1,026 |
require "cmd/missing"
require "formula"
require "keg"
require "language/python"
require "version"
class Volumes
def initialize
@volumes = get_mounts
end
def which path
vols = get_mounts path
# no volume found
if vols.empty?
return -1
end
vol_index = @volumes.index(vols[0])
# ... | wolfd/homebrew | Library/Homebrew/cmd/doctor.rb | Ruby | bsd-2-clause | 40,730 |
// 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 "ui/views/corewm/window_animations.h"
#include <math.h>
#include <algorithm>
#include <vector>
#include "base/command_line.h"
#include "ba... | DirtyUnicorns/android_external_chromium-org | ui/views/corewm/window_animations.cc | C++ | bsd-3-clause | 21,476 |
/* @flow */
function a(x: {[key: string]: ?string}, y: string): string {
if (x[y]) {
return x[y];
}
return "";
}
function b(x: {y: {[key: string]: ?string}}, z: string): string {
if (x.y[z]) {
return x.y[z];
}
return "";
}
function c(x: {[key: string]: ?string}, y: {z: string}): string {
if (x[... | JohnyDays/flow | tests/refinements/property.js | JavaScript | bsd-3-clause | 1,303 |
// Copyright 2012-2015 Oliver Eilhard. All rights reserved.
// Use of this source code is governed by a MIT-license.
// See http://olivere.mit-license.org/license.txt for details.
package elastic
import (
"encoding/json"
"fmt"
"log"
"net/url"
"strings"
"github.com/olivere/elastic/uritemplates"
)
var (
_ = fm... | seekingalpha/bosun | vendor/github.com/olivere/elastic/put_mapping.go | GO | mit | 5,940 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using UICore;
namespace SlimTuneUI.CoreVis
{
[DisplayName("Hotspots")]
public partial class HotSpots : UserControl, IVisualizer
{
... | mohdmasd/slimtune | CoreVis/HotSpots.cs | C# | mit | 5,633 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\Sylius\Bundle\UserBundle\Reloader;
use Doctrine\Common\Persistence\ObjectManager;
use ... | wwojcik/Sylius | src/Sylius/Bundle/UserBundle/spec/Reloader/UserReloaderSpec.php | PHP | mit | 1,079 |
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the ""Software""), to deal
* in the Software without restriction, inc... | yduit/PowerBI-visuals | src/Clients/PowerBIVisualsPlayground/sampleDataViews/SalesByCountryData.ts | TypeScript | mit | 5,374 |
<?php
/**
* @package Joomla.Site
* @subpackage mod_custom
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
if ($params->def('prepare_content', 1))
{
JPluginHe... | 810/joomla-cms | modules/mod_custom/mod_custom.php | PHP | gpl-2.0 | 626 |
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
// clearreader.cpp - BGFX clear state JSON reader
//
//============================================================
#include <bgfx/bgfx.h>
#include "clearreader.h"
#include "clear.h"
clear_stat... | johnparker007/mame | src/osd/modules/render/bgfx/clearreader.cpp | C++ | gpl-2.0 | 2,264 |
/*
Copyright 2017 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, ... | shakamunyi/kubernetes | vendor/k8s.io/sample-apiserver/pkg/client/informers/externalversions/wardle/v1alpha1/interface.go | GO | apache-2.0 | 1,483 |
/*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | tiarebalbi/spring-boot | spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/AutoConfigureMockMvc.java | Java | apache-2.0 | 2,989 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | e-gob/plataforma-kioscos-autoatencion | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/files/acl.py | Python | bsd-3-clause | 11,261 |
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\template;
interface temp... | kivi8/ars-poetica | www/forum/phpbb/template/template.php | PHP | bsd-3-clause | 5,881 |
//##################################################################################################################
// #TOOLBAR#
/* global CMS */
(function ($) {
'use strict';
// CMS.$ will be passed for $
$(document).ready(function () {
/*!
* Toolbar
* Handles all features relat... | josjevv/django-cms | cms/static/cms/js/modules/cms.toolbar.js | JavaScript | bsd-3-clause | 22,476 |
from __future__ import absolute_import
import psycopg2 as Database
# Some of these imports are unused, but they are inherited from other engines
# and should be available as part of the backend ``base.py`` namespace.
from django.db.backends.postgresql_psycopg2.base import ( # NOQA
DatabaseWrapper, DatabaseFeatur... | Kryz/sentry | src/sentry/db/postgres/base.py | Python | bsd-3-clause | 2,640 |
import foo from "foo";
import {default as foo2} from "foo";
| hawkrives/6to5 | test/fixtures/transformation/es6-modules-umd/imports-default/actual.js | JavaScript | mit | 60 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-onclickoutside"), require("moment"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-onclickoutside", "mo... | tholu/cdnjs | ajax/libs/react-datepicker/0.59.0/react-datepicker.js | JavaScript | mit | 229,566 |
// { dg-options "-std=gnu++0x" }
// { dg-do compile }
// Copyright (C) 2007-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... | Xilinx/gcc | libstdc++-v3/testsuite/23_containers/unordered_multiset/requirements/explicit_instantiation/3.cc | C++ | gpl-2.0 | 953 |
<?php
/**
* OG behavior handler.
*/
class OgBehaviorHandler extends EntityReference_BehaviorHandler_Abstract {
/**
* Implements EntityReference_BehaviorHandler_Abstract::access().
*/
public function access($field, $instance) {
return $field['settings']['handler'] == 'og' || strpos($field['settings']['... | johnlaine1/installer | sites/all/modules/og/plugins/entityreference/behavior/OgBehaviorHandler.class.php | PHP | gpl-2.0 | 9,888 |
// 2005-12-20 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005-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 Sof... | skristiansson/eco32-gcc | libstdc++-v3/testsuite/23_containers/deque/modifiers/swap/2.cc | C++ | gpl-2.0 | 3,966 |
<?php
require_once($CFG->libdir.'/simpletest/testportfoliolib.php');
require_once($CFG->dirroot.'/portfolio/download/lib.php');
/*
* TODO: The portfolio unit tests were obselete and did not work.
* They have been commented out so that they do not break the
* unit tests in Moodle 2.
*
* At some point:
* 1. These ... | dhamma-dev/SEA | web/portfolio/download/simpletest/testportfolioplugindownload.php | PHP | gpl-3.0 | 1,151 |
/**********
This library 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 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | hungld87/live555-for-win32 | liveMedia/include/VP8VideoRTPSink.hh | C++ | lgpl-2.1 | 1,917 |
/*
* Copyright 2013 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 ... | ITVlab/neodash | module-dashclock/src/main/java/com/google/android/apps/dashclock/phone/SmsExtension.java | Java | apache-2.0 | 16,299 |
/*
* Copyright 2014-present Facebook, 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... | mread/buck | src/com/facebook/buck/util/ThriftWatcher.java | Java | apache-2.0 | 1,473 |
/**
* 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... | curso007/camel | components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpEndpoint.java | Java | apache-2.0 | 10,739 |
function getElements(className) {
return Array.from(document.getElementsByClassName(className));
}
window.onload = function() {
// Force a reflow before any changes.
document.body.clientWidth;
getElements('remove').forEach(function(e) {
e.remove();
});
getElements('remove-after').forEach(function(e) {
... | nwjs/chromium.src | third_party/blink/web_tests/external/wpt/css/css-ruby/support/ruby-dynamic-removal.js | JavaScript | bsd-3-clause | 374 |
// { dg-do assemble { target fpic } }
// { dg-options "-O0 -fpic" }
// Origin: Jakub Jelinek <jakub@redhat.com>
struct bar {
bar() {}
double x[3];
};
static bar y[4];
void foo(int z)
{
bar w;
y[z] = w;
}
| shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/gcc/testsuite/g++.old-deja/g++.other/local-alloc1.C | C++ | bsd-3-clause | 215 |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
'use strict';
( function() {
var template = '<img alt="" src="" />',
templateBlock = new CKEDITOR.template(
'<figure class="{captionedClass}">' +
... | quepasso/dashboard | web/bundles/ivoryckeditor/plugins/image2/plugin.js | JavaScript | mit | 58,206 |
<?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... | hansbonini/cloud9-magento | www/lib/Zend/Ldap/Filter/Logical.php | PHP | mit | 2,952 |
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Office365Api.Graph.Simple.MailAndFiles.Helpers;
using Office365Api.Graph.Simple.MailAndFiles.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace Office365... | yagoto/PnP | Samples/MicrosoftGraph.Office365.Simple.MailAndFiles/Office365Api.Graph.Simple.MailAndFiles/Controllers/HomeController.cs | C# | mit | 3,267 |
from random import shuffle
def bogosort(arr):
while not sorted(arr) == arr:
shuffle(arr)
return arr | warreee/Algorithm-Implementations | Bogosort/Python/jcla1/bogosort.py | Python | mit | 116 |
// 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.
/*=============================================================================
**
**
**
** Purpose: The exception c... | bartonjs/coreclr | src/mscorlib/src/System/InsufficientExecutionStackException.cs | C# | mit | 1,547 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
//
// Copyright (c) 2009 INESC Porto
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation;
//
// This program is distr... | Viyom/Implementation-of-TCP-Delayed-Congestion-Response--DCR--in-ns-3 | src/flow-monitor/test/histogram-test-suite.cc | C++ | gpl-2.0 | 2,452 |
<?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... | dhamma-dev/SEA | web/grade/export/ods/export.php | PHP | gpl-3.0 | 2,057 |
/*
* 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... | xuzha/aws-sdk-java | aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/ResourceStatus.java | Java | apache-2.0 | 2,846 |
/*
* 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 ... | tknandu/CommonsMath_Modifed | math (trunk)/src/test/java/org/apache/commons/math3/optimization/general/RandomCirclePointGenerator.java | Java | apache-2.0 | 3,637 |
# Copyright 2011 James McCauley
# Copyright 2008 (C) Nicira, Inc.
#
# This file is part of POX.
#
# POX 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) an... | srijanmishra/RouteFlow | pox/pox/lib/packet/udp.py | Python | apache-2.0 | 5,386 |
cask "air-connect" do
version "2.0.1,26526"
sha256 "e8f93fbcb626241f9cbe0f934cf9dada319f3f80399ec83558aa696988575b2a"
url "https://www.avatron.com/updates/software/airconnect_mac/acmac#{version.before_comma.no_dots}.zip"
name "Air Connect"
homepage "https://avatron.com/get-air-connect/"
livecheck do
u... | stephenwade/homebrew-cask | Casks/air-connect.rb | Ruby | bsd-2-clause | 446 |
// 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 "chrome/browser/chromeos/login/hwid_checker.h"
#include <cstdio>
#include "base/chromeos/chromeos_version.h"
#include "base/command_line.h"... | windyuuy/opera | chromium/src/chrome/browser/chromeos/login/hwid_checker.cc | C++ | bsd-3-clause | 4,448 |
export { VolumeMuteFilled16 as default } from "../../";
| markogresak/DefinitelyTyped | types/carbon__icons-react/es/volume--mute--filled/16.d.ts | TypeScript | mit | 56 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using Tests.ExpressionCompiler... | comdiv/corefx | src/System.Linq.Expressions/tests/HelperTypes.cs | C# | mit | 4,525 |
<?php
require_once('HTML/QuickForm/submit.php');
/**
* HTML class for a submit type element
*
* @author Jamie Pratt
* @access public
*/
class MoodleQuickForm_cancel extends MoodleQuickForm_submit
{
// {{{ constructor
/**
* Class constructor
*
* @since 1.0
* @access ... | feniix/moodle | lib/form/cancel.php | PHP | gpl-2.0 | 1,501 |
package teammates.test.pageobjects;
public class EntityNotFoundPage extends AppPage {
public EntityNotFoundPage(Browser browser) {
super(browser);
}
@Override
protected boolean containsExpectedPageContents() {
return getPageSource().contains("TEAMMATES could not locate what you were t... | LiHaoTan/teammates | src/test/java/teammates/test/pageobjects/EntityNotFoundPage.java | Java | gpl-2.0 | 349 |
/*
* Copyright (C) 2012-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... | Shine-/xbmc | xbmc/pvr/dialogs/GUIDialogPVRGuideOSD.cpp | C++ | gpl-2.0 | 3,993 |
/* Copyright (C) 2015 Daniel Preussker <f0o@devilcode.org>
* 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, or
* (at your option) any later version.
*
* Thi... | NetworkNub/librenms | includes/alerts/transport.victorops.php | PHP | gpl-3.0 | 1,967 |
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: mods/deathmatch/logic/packets/CPlayerStatsPacket.cpp
* PURPOSE: Player statistics packet class
* DEVELOPERS: Jax <>
... | zneext/mtasa-blue | Server/mods/deathmatch/logic/packets/CPlayerStatsPacket.cpp | C++ | gpl-3.0 | 2,217 |
/**
* 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... | dennishuo/hadoop | hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/PacketHeader.java | Java | apache-2.0 | 7,020 |
/**
* Modules in this bundle
* @license
*
* opentype.js:
* license: MIT (http://opensource.org/licenses/MIT)
* author: Frederik De Bleser <frederik@debleser.be>
* version: 0.6.7
*
* tiny-inflate:
* license: MIT (http://opensource.org/licenses/MIT)
* author: Devon Govett <devongovett@gmail.com>
* ... | joeyparrish/cdnjs | ajax/libs/opentype.js/0.6.7/opentype.js | JavaScript | mit | 295,992 |
/*
* Copyright (c) 2015, 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... | FauxFaux/jdk9-nashorn | test/src/jdk/nashorn/test/models/VarArgConsumer.java | Java | gpl-2.0 | 1,400 |
import { onBlur } from "../display/focus"
import { setGuttersForLineNumbers, updateGutters } from "../display/gutters"
import { alignHorizontally } from "../display/line_numbers"
import { loadMode, resetModeState } from "../display/mode_state"
import { initScrollbars, updateScrollbars } from "../display/scrollbars"
imp... | AfrikaBurn/Main | web/libraries/codemirror/src/edit/options.js | JavaScript | gpl-2.0 | 6,874 |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Serbian (Cyrillic) language.
*/
/**#@+
@type String
@example
*/
/**
* Cont... | noskill/Firesoft | src/main/webapp/ckeditor/lang/sr.js | JavaScript | gpl-3.0 | 3,935 |
/*
* DarkTooltip v0.4.0
* Simple customizable tooltip with confirm option and 3d effects
* (c)2014 Rubén Torres - rubentdlh@gmail.com
* Released under the MIT license
*/
(function($) {
function DarkTooltip(element, options){
this.bearer = element;
this.options = options;
this.hideEvent;
this.mouseOverMo... | gtison/kf | src/main/resources/static/js/jquery.darktooltip.js | JavaScript | apache-2.0 | 6,675 |
/**
* 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... | Guavus/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/compactions/StoreFileListGenerator.java | Java | apache-2.0 | 1,237 |
/*
* 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 ... | mcgilman/nifi | nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/src/main/java/org/apache/nifi/schema/validation/StandardSchemaValidationResult.java | Java | apache-2.0 | 1,648 |
import * as Boom from '@hapi/boom';
import * as http from 'http';
import * as https from 'https';
export interface Host {
name: string;
port: number;
}
export interface CustomRequest {
authorization: string;
contentType: string;
host: string;
method: string;
port: number;
url: string;
... | markogresak/DefinitelyTyped | types/hawk/lib/utils.d.ts | TypeScript | mit | 1,362 |
/*
* Copyright (c) 1996, 2005, 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/test/sun/nio/cs/X11CNS11643P2.java | Java | mit | 1,335 |
package builder
import (
"os"
"github.com/spf13/cobra"
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"github.com/openshift/origin/pkg/build/builder/cmd"
ocmd "github.com/openshift/origin/pkg/cmd/cli/cmd"
"github.com/openshift/origin/pkg/cmd/templates"
)
var (
s2iBuilderLong = templates.LongDesc(`
Perf... | rawlingsj/gofabric8 | vendor/github.com/openshift/origin/pkg/cmd/infra/builder/builder.go | GO | apache-2.0 | 1,590 |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | young-zhang/Lean | Common/Util/ReaderWriterLockSlimExtensions.cs | C# | apache-2.0 | 3,963 |
// 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.Linq.Expressions;
namespace System.Dynamic
{
/// <summary>
/// Represents a dynamic object, th... | iamjasonp/corefx | src/System.Dynamic.Runtime/src/System/Dynamic/IDynamicMetaObjectProvider.cs | C# | mit | 1,145 |
// tslint:disable:no-unnecessary-generics
import { ComponentType } from 'react';
import { EditorColor } from '../../';
declare namespace withColorContext {
interface Props {
colors: EditorColor[];
disableCustomColors: boolean;
hasColorsToChoose: boolean;
}
}
// prettier-ignore
declare... | markogresak/DefinitelyTyped | types/wordpress__block-editor/components/color-palette/with-color-context.d.ts | TypeScript | mit | 777 |
<?php
/* $Id$ */
/**
* translated by: Pietro Danesi <danone at users.sourceforge.net> 2002-03-29
* Revised by: "DPhantom" <dphantom at users.sourceforge.net> 2002-04-16
* Revised by: "Luca Rebellato" <rebeluca at users.sourceforge.net> 2007-07-26
*/
$charset = 'iso-8859-1';
$text_dir = 'ltr';
$number_tho... | mwhitlaw/openemr | phpmyadmin/lang/italian-iso-8859-1.inc.php | PHP | gpl-2.0 | 70,896 |
/* Copyright (c) 2003, 2005 MySQL AB
Use is subject to license terms
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; version 2 of the License.
This program is distributed in the hope ... | fengshao0907/mysql | storage/ndb/test/odbc/client/SQLTransactTest.cpp | C++ | gpl-2.0 | 8,798 |
/**
* 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... | Guavus/hbase | hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/RestartRandomRsAction.java | Java | apache-2.0 | 1,416 |