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 |
|---|---|---|---|---|---|
#include "editor/osm_auth.hpp"
#include "platform/http_client.hpp"
#include "coding/url.hpp"
#include "base/assert.hpp"
#include "base/logging.hpp"
#include "base/string_utils.hpp"
#include <iostream>
#include <map>
#include "private.h"
#include "3party/liboauthcpp/include/liboauthcpp/liboauthcpp.h"
using namesp... | darina/omim | editor/osm_auth.cpp | C++ | apache-2.0 | 16,629 |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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... | mbiarnes/jbpm | jbpm-test-util/src/main/java/org/jbpm/test/persistence/scripts/quartzmockentities/QrtzPausedTriggerGrps.java | Java | apache-2.0 | 1,381 |
/*
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, ... | juanvallejo/kubernetes | pkg/scheduler/algorithm/predicates/predicates.go | GO | apache-2.0 | 68,284 |
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
"time"
)
type dockerHubTagMeta struct {
// we don't care what's in these -- we just need to be able to count them
Images []interface{} `json:"images"`
LastUpdated string `json:"last_updated"`
}
func (meta dockerHubTagMeta) lastUpdatedTim... | chorrell/official-images | bashbrew/go/src/bashbrew/hub.go | GO | apache-2.0 | 1,396 |
using OfficeDevPnP.PowerShell.Commands.Base.PipeBinds;
using Microsoft.SharePoint.Client;
using System.Management.Automation;
using System;
using OfficeDevPnP.Core.Entities;
using Microsoft.SharePoint.Client.Taxonomy;
using System.Collections.Generic;
using OfficeDevPnP.PowerShell.CmdletHelpAttributes;
using System.Li... | JonathanHuss/PnP | Solutions/PowerShell.Commands/Commands/Lists/SetDefaultColumnValues.cs | C# | apache-2.0 | 5,810 |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
namespace Nette\Application;
use Nette;
/**
* Default presenter loader.
*/
class PresenterFactory implements IPresenterFactory
{
use Nette\SmartObject;
/** @var array[] of m... | MasaharuKomuro/kitakupics | vendor/nette/application/src/Application/PresenterFactory.php | PHP | apache-2.0 | 4,074 |
/**
* Copyright 2010-2014 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 "lic... | lyzxsc/aws-sdk-android-samples | CognitoSyncDemo/src/com/amazonaws/cognito/sync/devauth/client/GetTokenResponse.java | Java | apache-2.0 | 1,640 |
/*
* © Copyright IBM Corp. 2012
*
* 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 ... | iharkhukhrakou/XPagesExtensionLibrary | extlib/lwp/openntf/test/eclipse/plugins/com.ibm.xsp.test.framework/src/com/ibm/xsp/test/framework/setup/SkipFileContent.java | Java | apache-2.0 | 5,361 |
/*
* Copyright 2000-2009 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... | romankagan/DDBWorkbench | java/debugger/impl/src/com/intellij/debugger/settings/DebuggerSteppingConfigurable.java | Java | apache-2.0 | 5,766 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.components;
import com.intellij.ide.ui.AntialiasingType;
import com.intellij.openapi.util.NlsContexts;
import com.intellij.openapi.util.text.StringUtil;
i... | smmribeiro/intellij-community | platform/platform-api/src/com/intellij/ui/components/JBLabel.java | Java | apache-2.0 | 13,575 |
/*
* 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 ... | RyanMagnusson/cassandra | src/java/org/apache/cassandra/db/lifecycle/Tracker.java | Java | apache-2.0 | 17,572 |
/*
* 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 ... | dashorst/wicket | wicket-cdi-1.1/src/test/java/org/apache/wicket/cdi/testapp/TestConversationPage.java | Java | apache-2.0 | 2,394 |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/transaction/impl/xa/TransactionAccessor.java | Java | apache-2.0 | 1,173 |
package action
import (
"errors"
boshas "github.com/cloudfoundry/bosh-agent/agent/applier/applyspec"
boshscript "github.com/cloudfoundry/bosh-agent/agent/script"
boshdrain "github.com/cloudfoundry/bosh-agent/agent/script/drain"
boshjobsuper "github.com/cloudfoundry/bosh-agent/jobsupervisor"
boshnotif "github.co... | cloudfoundry/bosh-init | vendor/github.com/cloudfoundry/bosh-agent/agent/action/drain.go | GO | apache-2.0 | 3,726 |
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistCogdoCraneMoneyBagAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistCogdoCraneMoneyBagAI")
def setIndex(self, todo0):
pass
def reque... | silly-wacky-3-town-toon/SOURCE-COD | toontown/cogdominium/DistCogdoCraneMoneyBagAI.py | Python | apache-2.0 | 351 |
#
# Lexical analyzer for JSON
# Copyright (C) 2003,2005 Rafael R. Sevilla <dido@imperium.ph>
# This file is part of JSON for Ruby
#
# JSON for Ruby 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; e... | bizo/aws-tools | emr/elastic-mapreduce-ruby-20131216/json/lexer.rb | Ruby | apache-2.0 | 7,352 |
/*-
* * Copyright 2017 Skymind, 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
* *
* * Un... | shuodata/deeplearning4j | deeplearning4j-core/src/test/java/org/deeplearning4j/util/RandomUtils.java | Java | apache-2.0 | 1,403 |
package com.vaadin.tests.components.customcomponent;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.NativeButton;
public class CustomComponentSizeUpdate extends TestBase {
@... | jdahlstrom/vaadin.react | uitest/src/main/java/com/vaadin/tests/components/customcomponent/CustomComponentSizeUpdate.java | Java | apache-2.0 | 1,199 |
public interface I {
void foo();
} | smmribeiro/intellij-community | plugins/kotlin/idea/tests/testData/findUsages/kotlin/findFunctionUsages/highlightingOfSuperUsages.1.java | Java | apache-2.0 | 38 |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... | cesarpazguzman/The-Eternal-Sorrow | dependencies/Ogre/Tests/PlayPen/src/WindowEmbedding.cpp | C++ | apache-2.0 | 5,719 |
//===-- main.c --------------------------------------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... | apple/swift-lldb | packages/Python/lldbsuite/test/python_api/process/main.cpp | C++ | apache-2.0 | 1,072 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
using Microsoft.CodeAnalysis.Test.Utilities;
using Xunit;
na... | OmarTawfik/roslyn | src/Compilers/CSharp/Test/Semantic/IOperation/IOperationTests_IConditionalAccessExpression.cs | C# | apache-2.0 | 55,769 |
/* 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 fi... | lazyval/go_kafka_mirror | consumer_test.go | GO | apache-2.0 | 24,744 |
// 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 enable
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threa... | reaction1989/roslyn | src/Features/Core/Portable/CodeRefactorings/CodeRefactoringContextExtensions.cs | C# | apache-2.0 | 2,593 |
var VERB_NEW = 1;
var VERB_CHANGED = 2;
var VERB_CURRENT = 3;
var VERB_NEW_CLASS = "verb-new";
var VERB_CHANGED_CLASS = "verb-changed";
var VERB_CURRENT_CLASS = "verb-current";
var EDITED_CLASS = "edited";
var NOT_STARTED_TRANSLATION = 0;
var VALID_TRANSLATION = 1;
var INVALID_TRANSLATION = 2;
function getVerbClassN... | UniMOOC/AAClassroom | modules/i18n_dashboard/templates/translation_console.js | JavaScript | apache-2.0 | 5,738 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
... | prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.esb.form.editors/src/org/wso2/developerstudio/esb/form/editors/article/rcp/Messages.java | Java | apache-2.0 | 1,304 |
// @@@ START COPYRIGHT @@@
//
// 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... | apache/incubator-trafodion | core/sqf/src/win/t.cpp | C++ | apache-2.0 | 910 |
/*
* Copyright (c) 2017, Adam <Adam@sigterm.info>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... | UniquePassive/runelite | http-api/src/main/java/net/runelite/http/api/account/AccountClient.java | Java | bsd-2-clause | 3,621 |
cask :v1 => 'moneywell' do
version '2.3.4'
sha256 'f4b900576657c669a40481d7c2ad1ad6d48a4468d16963d4e9c8ddeca9c1548a'
url "http://downloads.nothirst.com/MoneyWell_#{version.sub(%r{^(\d+)\.(\d+).*},'\1\2')}.zip"
appcast 'http://nothirst.com/feeds/MoneyWell2Appcast.xml',
:sha256 => '8de9519f9ff874d9baf6... | L2G/homebrew-cask | Casks/moneywell.rb | Ruby | bsd-2-clause | 456 |
// 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/installer/setup/install.h"
#include <windows.h>
#include <shlobj.h>
#include <time.h>
#include <string>
#include "base/files/file_... | CapOM/ChromiumGStreamerBackend | chrome/installer/setup/install.cc | C++ | bsd-3-clause | 29,451 |
/*
YUI 3.6.0 (build 5521)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('exec-command', function(Y) {
/**
* Plugin for the frame module to handle execCommands for Editor
* @class Plugin.ExecCommand
* @extends Base
* @c... | bretkikehara/wattdepot-visualization | src/main/webapp/yui/3.6.0/build/exec-command/exec-command-debug.js | JavaScript | bsd-3-clause | 31,671 |
from functools import wraps
from django.contrib import messages
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth.views import redirect_to_login
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers impor... | sonofatailor/django-oscar | src/oscar/views/decorators.py | Python | bsd-3-clause | 5,064 |
/*
* Copyright 2016 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.
*/
/* global PaymentRequest:false */
/**
* Launches the PaymentRequest UI that offers free shipping in California and
* $5.00 shipping in US. Does ... | chromium/chromium | components/test/data/payments/dynamic_shipping.js | JavaScript | bsd-3-clause | 3,140 |
// 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 "net/socket/transport_client_socket_pool_test_util.h"
#include <stdint.h>
#include <string>
#include <utility>
#include "base/location.h"
#incl... | axinging/chromium-crosswalk | net/socket/transport_client_socket_pool_test_util.cc | C++ | bsd-3-clause | 16,065 |
//
(function (root) {
"use strict";
if (!root.lux)
root.lux = {};
// If a file assign http as protocol (https does not work with PhantomJS)
var protocol = root.location ? (root.location.protocol === 'file:' ? 'http:' : '') : '',
end = '.js',
ostring = Object.prototype.toString,... | dejlek/pulsar | examples/tweets/assets/tweets.js | JavaScript | bsd-3-clause | 10,267 |
//===- X86AvoidStoreForwardingBlockis.cpp - Avoid HW Store Forward Block --===//
//
// 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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp | C++ | bsd-3-clause | 28,773 |
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
/*
* Copyright (c) 2009 Carnegie Mellon University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (... | TobyRoseman/SFrame | oss_src/rpc/circular_iovec_buffer.hpp | C++ | bsd-3-clause | 4,545 |
<?php
// Name: /alert/confirm/index.php
// Author: Richard Allan richard@sheffieldhallam.org.uk
// Version: 0.5 beta
// Date: 6th Jan 2005
// Description: This file contains ALERT class.
// This the page users come to when they click the link in their
// confirmation email after joining the site.
// What happens? ... | NathanaelB/twfy | www/docs/alert/confirm/index.php | PHP | bsd-3-clause | 2,728 |
//===-- AMDGPUMachineFunctionInfo.cpp ---------------------------------------=//
//
// 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/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | C++ | bsd-3-clause | 2,450 |
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
package com.google.u2f.key.messages;
import java.util.Arrays;
public class AuthenticateResponse ... | jshufelt/u2f-ref-code | u2f-ref-code/java/src/com/google/u2f/key/messages/AuthenticateResponse.java | Java | bsd-3-clause | 2,086 |
#!/usr/bin/python
#----------------------------------------------------------------------
# This module is designed to live inside the "lldb" python package
# in the "lldb.macosx" package. To use this in the embedded python
# interpreter using "lldb" just import it:
#
# (lldb) script import lldb.macosx.heap
#-------... | endlessm/chromium-browser | third_party/llvm/lldb/examples/darwin/heap_find/heap.py | Python | bsd-3-clause | 61,273 |
// Copyright 2017 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.
import 'chrome://resources/cr_elements/md_select_css.m.js';
import './print_preview_shared_css.js';
import './settings_section.js';
import {PolymerElemen... | chromium/chromium | chrome/browser/resources/print_preview/ui/color_settings.ts | TypeScript | bsd-3-clause | 1,983 |
<?php
/**
* ezcCacheStorageFileEvalArrayTest
*
* @package Cache
* @subpackage Tests
* @version 1.5
* @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Require parent test class.
*/
require_once 'storage_test.php';
/**
... | faclib/ezcomponents | Cache/tests/storage_file_evalarray_test.php | PHP | bsd-3-clause | 609 |
package org.apollo.game.message.impl;
import org.apollo.net.message.Message;
/**
* A {@link Message} sent to the client to open up the enter amount interface.
*
* @author Graham
*/
public final class EnterAmountMessage extends Message {
} | garyttierney/apollo | game/src/main/org/apollo/game/message/impl/EnterAmountMessage.java | Java | isc | 245 |
require 'spec_helper'
describe Gitlab::GithubImport::LabelFormatter, lib: true do
let(:project) { create(:project) }
let(:raw) { double(name: 'improvements', color: 'e6e6e6') }
subject { described_class.new(project, raw) }
describe '#attributes' do
it 'returns formatted attributes' do
expect(subjec... | shinexiao/gitlabhq | spec/lib/gitlab/github_import/label_formatter_spec.rb | Ruby | mit | 851 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.9.5.11_A2_T1;
* @section: 15.9.5.11;
* @assertion: The "length" property of the "getUTCFullYear" is 0;
* @description: The "length" property of the "getUTCFullYear" i... | seraum/nectarjs | tests/ES3/Conformance/15_Native_ECMA_Script_Objects/15.9_Date_Objects/15.9.5_Properties_of_the_Date_Prototype_Object/15.9.5.11_Date.prototype.getUTCFullYear/S15.9.5.11_A2_T1.js | JavaScript | mit | 579 |
/*
Copyright (c) 2015, Marc Clifton
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 conditions and the following ... | cliftonm/WebServersSuccinctly | Examples/Chapter 9/Clifton.WebServer/RouteEntry.cs | C# | mit | 2,183 |
class Admin::PublicationsController < Admin::EditionsController
before_filter :pre_fill_edition_from_statistics_announcement, only: :new, if: :statistics_announcement
private
def edition_class
Publication
end
def permitted_edition_attributes
super << :statistics_announcement_id
end
def pre_fil... | YOTOV-LIMITED/whitehall | app/controllers/admin/publications_controller.rb | Ruby | mit | 985 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | hansbonini/cloud9-magento | www/dev/tests/functional/tests/app/Mage/Directory/Test/Block/Currency/Switcher.php | PHP | mit | 2,153 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | hansbonini/cloud9-magento | www/app/code/core/Mage/Dataflow/Model/Resource/Import/Collection.php | PHP | mit | 1,372 |
<?php
CM_Db_Db::exec('ALTER TABLE `cm_actionLimit` CHANGE `actionType` `actionType` INT UNSIGNED DEFAULT NULL');
| zazabe/cm | resources/db/update/35.php | PHP | mit | 114 |
// Spart License (zlib/png)
//
//
// Copyright (c) 2003 Jonathan de Halleux
//
// 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
// the use of this software.
//
// Permission is granted to anyone to use this softwar... | darcywong00/libpalaso | Palaso/Spart/Actions/Actions.cs | C# | mit | 1,724 |
define('lodash/object/get', ['exports', 'lodash/internal/baseGet', 'lodash/internal/toPath'], function (exports, _lodashInternalBaseGet, _lodashInternalToPath) {
'use strict';
/**
* Gets the property value at `path` of `object`. If the resolved value is
* `undefined` the `defaultValue` is used in its place.
... | hoka-plus/p-01-web | tmp/babel-output_path-hOv4KMmE.tmp/lodash/object/get.js | JavaScript | mit | 1,164 |
<?php
/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace CodeIgniter\Test\Interfaces;
use Faker\Generator;
use Ref... | bcit-ci/CodeIgniter4 | system/Test/Interfaces/FabricatorModel.php | PHP | mit | 2,251 |
/* ====================================================================
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 ... | tobyclemson/msci-project | vendor/poi-3.6/src/java/org/apache/poi/poifs/storage/ListManagedBlock.java | Java | mit | 1,502 |
CfContainersBroker::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for... | dynatrace-innovationlab/easyTravel-Cloud-Foundry | deploy/config/cf-containers-broker/environments/test.rb | Ruby | mit | 1,573 |
#!/usr/bin/env python
# *-* coding: UTF-8 *-*
"""Împăratul a primit serie de mesaje importante pe care este
important să le descifreze cât mai repede.
Din păcate mesagerul nu a apucat să îi spună împăratul care au fost
cheile alese pentru fiecare mesaj și tu ai fost ales să descifrezi
misterul.
Informații:
În cr... | iulianbute/labs | python/solutii/alex_mitan/caesar.py | Python | mit | 1,892 |
import React, { cloneElement } from 'react';
import classNames from 'classnames';
import ValidComponentChildren from './utils/ValidComponentChildren';
class ListGroup extends React.Component {
render() {
let items = ValidComponentChildren.map(
this.props.children,
(item, index) => cloneElement(item, ... | jontewks/react-bootstrap | src/ListGroup.js | JavaScript | mit | 1,507 |
/*
* Copyright (c) 2009 WiQuery team
*
* 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, copy, modify, merge, publi... | google-code-export/wiquery | wiquery-jquery-ui/src/main/java/org/odlabs/wiquery/ui/progressbar/ProgressBar.java | Java | mit | 9,828 |
// Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package models
import (
"fmt"
"strings"
"testing"
. "github.com/smartystreets/goconvey/convey"
"github.com/gogits/gogs/pkg/setting"
)
func init() {
... | xaionaro/gogs | models/ssh_key_test.go | GO | mit | 3,217 |
#include <vector>
#include <stdio.h>
#include <cstring>
#include <glm.hpp>
#include "objloader.hpp"
#pragma warning(disable:4996)
bool loadOBJ(
const char * path,
std::vector<glm::vec3> & out_vertices,
std::vector<glm::vec3> & out_normals,
std::vector<glm::vec2> & out_uvs) {
std::vector<unsigned int> vertexIn... | DanielPri/COMP371 | Skeleton/COMP371_Skeleton_code-master/Skeleton/VS_Solution/COMP371/COMP371/objloader.cpp | C++ | mit | 3,059 |
// Copyright (c) 2001-2010 Hartmut Kaiser
// Copyright (c) 2001-2010 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)
#if !defined(BOOST_SPIRIT_PARSE_SEXPR_IMPL)
#define BOOST_SPIRIT_PARSE_SEXP... | djsedulous/namecoind | libs/boost_1_50_0/libs/spirit/example/scheme/input/parse_sexpr_impl.hpp | C++ | mit | 4,452 |
/**
* Module dependencies.
*/
var express = require('express');
/**
* Initialize middleware.
*/
module.exports = function() {
this.use(express.urlencoded());
this.use(express.json());
this.use(this.router);
this.use(express.errorHandler());
}
| bosgood/electrolyte-examples | express/etc/init/02_middleware.js | JavaScript | mit | 262 |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | chliam/OpenCV_IOS_3.0RC1 | opencv2.framework/Versions/A/Headers/core/optim.hpp | C++ | mit | 15,775 |
// Generated by CoffeeScript 1.3.3
(function() {
var Path, createApiTree, extensions, fs,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
__hasProp = {}.hasOwnProperty;
fs = require('fs');
Path = requi... | rybon/Remocial | node_modules/ss-angular/node_modules/apitree/lib/apitree.js | JavaScript | mit | 2,451 |
class GetterWithDollar1 {
@lombok.Getter int $i;
GetterWithDollar1() {
super();
}
public @java.lang.SuppressWarnings("all") int get$i() {
return this.$i;
}
}
class GetterWithDollar2 {
@lombok.Getter int $i;
@lombok.Getter int i;
GetterWithDollar2() {
super();
}
public @java.lang.Suppress... | domix/lombok | test/transform/resource/after-ecj/GetterWithDollar.java | Java | mit | 456 |
YUI.add('gallery-plugin-node-io', function(Y) {
/**
* Node IO provides a simple interface to load text into a node
*
* @class NodeIo
* @extends Base
* @version 1.1.0
*/
var YL = Y.Lang;
Y.Plugin.NodeIo = Y.Base.create('node-io', Y.Base, [], {
/////// P U B L I C //////
/**
* Se... | inikoo/fact | libs/yui/yui3-gallery/build/gallery-plugin-node-io/gallery-plugin-node-io.js | JavaScript | mit | 4,086 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/// <reference types="node" />
import * as p from 'path';
import {AbsoluteFsPath, PathSegment, PathString} from '../.... | mgechev/angular | packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_posix.ts | TypeScript | mit | 1,448 |
// Copyright 2012-2019 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 (
"context"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
"github.com/olivere/elastic/v7/uritemplate... | olivere/elastic | xpack_security_get_user.go | GO | mit | 5,061 |
//
* @param aaa bbb ccc ddd eee fff ggg
//
| general-language-syntax/GLS | test/integration/CommentDocTag/long parameter.ts | TypeScript | mit | 46 |
package de.fhpotsdam.unfolding.marker;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.utils.GeoUtils;
/**
* A MultiMarker enables handling of multiple, logically groupe... | ashr81/unfolding | src/de/fhpotsdam/unfolding/marker/MultiMarker.java | Java | mit | 4,593 |
var validate, $i;
var {{ schema | capitalize }}Validator = function(di) {
$i = di;
validate = $i.validate;
return {};
};
module.exports = exports = {{ schema | capitalize }}Validator; | marcelomf/graojs | skeletons/bundle/Validator.js | JavaScript | mit | 190 |
<?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\Console\Command;
use Symfony\Component\Console\Helper... | tjoskar/odot | vendor/symfony/console/Symfony/Component/Console/Command/ListCommand.php | PHP | mit | 2,612 |
Tinytest.add('options cacheLimit - exceed', function(test) {
var sm = new SubsManager({cacheLimit: 2});
sm._addSub(['posts']);
sm._addSub(['comments']);
sm._addSub(['singlePoint', 'one']);
sm._applyCacheLimit();
test.equal(sm._cacheList.length, 2);
var subsIds = sm._cacheList.map(function(sub) {
ret... | parkerkimbell/subs-manager | tests/options.js | JavaScript | mit | 1,642 |
<?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 AppBundle\DataFixtures\ORM;
use AppBundle\Entity\Comment;
use AppBundle... | hkbrain/test | src/AppBundle/DataFixtures/ORM/LoadFixtures.php | PHP | mit | 6,826 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | hansbonini/cloud9-magento | www/app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-1.4.0.0-1.4.0.1.php | PHP | mit | 2,062 |
/*******************************************************************************
* Copyright (c) 2015
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including withou... | Peter-Maximilian/settlers-remake | jsettlers.mapcreator/src/main/java/jsettlers/mapcreator/tools/shapes/LineShape.java | Java | mit | 2,269 |
# --
# Copyright 2007 Nominet UK
#
# 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 writi... | NerdSec/nerdsec.github.io | vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.3/test/tc_resolver.rb | Ruby | cc0-1.0 | 13,226 |
/*
* Copyright (c) 2014 Cisco Systems, Inc. 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.... | yuyf10/opendaylight-controller | opendaylight/northbound/commons/src/main/java/org/opendaylight/controller/northbound/commons/utils/NorthboundUtils.java | Java | epl-1.0 | 8,516 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | utils/eclipselink.utils.workbench/framework/source/org/eclipse/persistence/tools/workbench/framework/help/HelpTopicIDWindowAction.java | Java | epl-1.0 | 1,916 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | utils/eclipselink.utils.workbench.test/mappingsplugin/source/org/eclipse/persistence/tools/workbench/test/mappingsmodel/query/MWExpressionTests.java | Java | epl-1.0 | 21,076 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/models/jpa/datatypes/arraypks/PrimByteArrayPKType.java | Java | epl-1.0 | 2,086 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | foundation/org.eclipse.persistence.nosql/src/org/eclipse/persistence/internal/eis/adapters/jms/CciJMSInteractionSpec.java | Java | epl-1.0 | 4,313 |
/*
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.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 of the License, or (at your
* option) any later ve... | sidneeginger/TrinityCore | src/server/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp | C++ | gpl-2.0 | 59,692 |
////////////////////////////////////////////////////////////////////////////////////////
//
// Nestopia - NES/Famicom emulator written in C++
//
// Copyright (C) 2003-2007 Martin Freij
//
// This file is part of Nestopia.
//
// Nestopia is free software; you can redistribute it and/or modify
// it under the te... | Joride/nestopia | core/mapper/NstMapper243.hpp | C++ | gpl-2.0 | 1,553 |
<?php
/**
* File containing the CreatedRole class
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version 2014.11.1
*/
namespace eZ\Publish\Core\REST\Server\Values;
use eZ\Publish\API\R... | wnsonsa/destin-foot | vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/REST/Server/Values/CreatedRole.php | PHP | gpl-2.0 | 569 |
/*
Copyright 2005-2010 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks.
Threading Building Blocks 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 Foundat... | dusek/tbb | src/test/test_parallel_while.cpp | C++ | gpl-2.0 | 5,445 |
<?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... | dvh11er/mage-cheatcode | magento/lib/Zend/Service/DeveloperGarden/Response/BaseUserService/GetAccountBalanceResponse.php | PHP | gpl-2.0 | 1,317 |
/*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* 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 ver... | Ikesters/TrinityCore-5.0.5b | Нова папка/src/server/game/Server/WorldSession.cpp | C++ | gpl-2.0 | 42,375 |
/*
* Copyright (c) 2006, 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 ... | openjdk-mirror/jdk7u-jdk | test/sun/security/ssl/javax/net/ssl/NewAPIs/SSLEngine/LargePacket.java | Java | gpl-2.0 | 7,353 |
# -*- coding: utf-8 -*-
"""
@author: Fabio Erculiani <lxnay@sabayon.org>
@contact: lxnay@sabayon.org
@copyright: Fabio Erculiani
@license: GPL-2
B{Entropy Infrastructure Toolkit}.
"""
import sys
import argparse
import textwrap as _textwrap
from entropy.output import decolorize
class ColorfulFo... | mudler/entropy | server/eit/colorful.py | Python | gpl-2.0 | 3,125 |
Ext.define('Ext.chart.theme.Default', {
extend: 'Ext.chart.theme.Base',
singleton: true,
alias: [
'chart.theme.default',
'chart.theme.Base'
]
}); | ybbkd2/publicweb | web/ext/packages/sencha-charts/src/chart/theme/Default.js | JavaScript | gpl-2.0 | 177 |
/*
* Copyright (C) 2010-2018 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 "AEStreamInfo.h"
#include "utils/log.h"
#include <algorithm>
#include <string.h>
#define DTS_PREAMBLE_14BE 0x1FFFE800... | PIPplware/xbmc | xbmc/cores/AudioEngine/Utils/AEStreamInfo.cpp | C++ | gpl-2.0 | 23,883 |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | andythenorth/NotRoadTypes | src/newgrf_industries.cpp | C++ | gpl-2.0 | 24,123 |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.2 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2012 |
+---------------------... | cfusch/drupal-sandbox | sites/all/modules/civicrm/CRM/Utils/PagerAToZ.php | PHP | gpl-2.0 | 5,279 |
(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}... | CalCoRE/DataSketch | DataSketchServerUpload/DataSketchWeb/DataSketch.Web/obj/Release/Package/PackageTmp/DataSketchApp3/cslib/modules/datasketch/animation/properties/stamping/module.js | JavaScript | gpl-2.0 | 954 |
<?php
/*
** Zabbix
** Copyright (C) 2000-2012 Zabbix SIA
**
** 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 of the License, or
** (at your option) any later version.
**
** Th... | gheja/zabbix-ext | frontends/php/include/classes/import/readers/CJsonImportReader.php | PHP | gpl-2.0 | 1,052 |
<?php
/**
* Akeeba Engine
* The modular PHP5 site backup engine
*
* @copyright Copyright (c)2009-2014 Nicholas K. Dionysopoulos
* @license GNU GPL version 3 or, at your option, any later version
* @package akeebaengine
*
*/
namespace Akeeba\Engine\Filter;
// Protection against direct access
defined('AKEEB... | ForAEdesWeb/AEW2 | administrator/components/com_akeeba/platform/joomla25/Filter/Joomlaskipdirs.php | PHP | gpl-2.0 | 2,728 |
/****************************************************************************
* *
* Project64 - A Nintendo 64 emulator. *
* http://www.pj64-emu.com/ *
* Copyr... | Frank-74/project64 | Source/Android/PluginRSP/jpeg.cpp | C++ | gpl-2.0 | 18,978 |
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package fastr
*/
get_header(); ?>
<div id="primary... | di0fref/wordpress_fahlslstad | wp-content/themes/fastr/page.php | PHP | gpl-2.0 | 848 |