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 |
|---|---|---|---|---|---|
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | tux-00/ansible | lib/ansible/module_utils/netconf.py | Python | gpl-3.0 | 3,772 |
require 'active_support/core_ext/array'
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/kernel/singleton_class'
require 'active_support/core_ext/object/blank'
module ActiveRecord
# = Active Record Named \Scopes
module NamedScope
extend ActiveSupport::Concern
module ClassMeth... | mzemel/kpsu.org | vendor/gems/ruby/1.8/gems/activerecord-3.0.3/lib/active_record/named_scope.rb | Ruby | gpl-3.0 | 5,522 |
// *******
// This is an internal file of the IMMERSED BOUNDARY implementation
// It should not be included by any main Espresso routines
// Functions to be exported for Espresso are in ibm_main.hpp
#include "config.hpp"
#ifdef IMMERSED_BOUNDARY
#include <mpi.h>
#include "cells.hpp"
#include "grid.hpp"
#include "c... | sehrhardt/espresso | src/core/immersed_boundary/ibm_cuda_interface.cpp | C++ | gpl-3.0 | 7,514 |
# -*- coding: utf-8 -*-
##################################################################################
#
# Copyright (c) 2005-2006 Axelor SARL. (http://www.axelor.com)
# and 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# $Id: hr.py 4656 2006-11-24 09:58:42Z Cyp $
#
# This program is free software: you can redistri... | ncliam/serverpos | openerp/addons/hr_holidays/hr_holidays.py | Python | agpl-3.0 | 34,256 |
<?php
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2018 SalesAgility Ltd.
*
* This program is f... | ChangezKhan/SuiteCRM | include/connectors/filters/default/filter.php | PHP | agpl-3.0 | 3,456 |
// ---------------------------------------------------------------------
//
// Copyright (C) 1998 - 2014 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | johntfoster/dealii | tests/base/quadrature_test.cc | C++ | lgpl-2.1 | 6,728 |
// ---------------------------------------------------------------------
//
// Copyright (C) 2003 - 2014 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | natashasharma/dealii | tests/bits/cylinder_shell_01.cc | C++ | lgpl-2.1 | 1,499 |
/*
* 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... | jimczi/elasticsearch | core/src/test/java/org/elasticsearch/index/IndexingSlowLogTests.java | Java | apache-2.0 | 13,647 |
// Copyright 2011 Google Inc. All Rights Reserved.
// This file was generated from .js source files by GYP. If you
// want to make changes to this file you should either change the
// javascript source files or the GYP script.
#include "src/v8.h"
#include "src/snapshot/natives.h"
#include "src/utils.h"
namespace v8... | weolar/miniblink49 | gen/v8_5_7/experimental-extras-libraries.cc | C++ | apache-2.0 | 2,451 |
import java.util.*;
class Test {
private Set<String> foo;
void test(Test t1, String s) {
t1.foo = new HashSet<>();
t1.foo.add(s);
}
} | siosio/intellij-community | plugins/IntentionPowerPak/test/com/siyeh/ipp/collections/to_mutable_collection/FieldAssignment_after.java | Java | apache-2.0 | 151 |
/*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law... | spockframework/spock | spock-core/src/main/java/org/spockframework/runtime/condition/IObjectRendererService.java | Java | apache-2.0 | 809 |
// 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.ide.projectView.impl.nodes;
import com.intellij.ide.IdeBundle;
import com.intellij.ide.projectView.PresentationData;
import com.intellij.ide.projectView.Proj... | siosio/intellij-community | platform/lang-impl/src/com/intellij/ide/projectView/impl/nodes/LibraryGroupNode.java | Java | apache-2.0 | 5,590 |
/**
* @fileoverview Rule to enforce spacing around embedded expressions of template strings
* @author Toru Nagashima
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
co... | BigBoss424/portfolio | v8/development/node_modules/gatsby/node_modules/eslint/lib/rules/template-curly-spacing.js | JavaScript | apache-2.0 | 4,149 |
# Copyright (c) 2017 Keith Ito
""" from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DA... | mlperf/inference_results_v0.7 | open/Inspur/code/rnnt/tensorrt/preprocessing/parts/text/symbols.py | Python | apache-2.0 | 749 |
/*
*
* 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"); y... | hsbhathiya/stratos | components/org.apache.stratos.manager.console/modules/console/scripts/server.js | JavaScript | apache-2.0 | 1,188 |
package graph
import (
"fmt"
"io"
"runtime"
"time"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/api/types"
"github.com/docker/docker/utils"
)
// Lookup looks up an image by name in a TagStore and returns it as an
// ImageInspect structure.
func (s *TagStore) Lookup(name string) (*types.ImageInspect,... | wcwxyz/docker | graph/service.go | GO | apache-2.0 | 2,129 |
/// <reference path='fourslash.ts' />
// @Filename: goToTypeDefinitioAliases_module1.ts
/////*definition*/interface I {
//// p;
////}
////export {I as I2};
// @Filename: goToTypeDefinitioAliases_module2.ts
////import {I2 as I3} from "./goToTypeDefinitioAliases_module1";
////var v1: I3;
////export {v1 as... | plantain-00/TypeScript | tests/cases/fourslash/goToTypeDefinitionAliases.ts | TypeScript | apache-2.0 | 645 |
# 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.
# pylint: disable=W0401,W0614
from telemetry import story
from telemetry.page import page as page_module
from telemetry.page import shared_page_state
clas... | HalCanary/skia-hc | tools/skp/page_sets/skia_espn_desktop.py | Python | bsd-3-clause | 1,170 |
// 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 <string>
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/br... | SaschaMester/delicium | chrome/browser/collected_cookies_browsertest.cc | C++ | bsd-3-clause | 2,289 |
var get = Ember.get;
Ember._ResolvedState = Ember.Object.extend({
manager: null,
state: null,
match: null,
object: Ember.computed(function(key) {
if (this._object) {
return this._object;
} else {
var state = get(this, 'state'),
match = get(this, 'match'),
manager = get(... | teddyzeenny/ember.js | packages/ember-old-router/lib/resolved_state.js | JavaScript | mit | 985 |
/*
Project Orleans Cloud Service SDK ver. 1.0
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,
in... | TedDBarr/orleans | Samples/TwitterSentiment/TwitterGrainInterfaces/ITweetGrain.cs | C# | mit | 1,600 |
require('mocha');
require('should');
var assert = require('assert');
var support = require('./support');
var App = support.resolve();
var app;
describe('app.option', function() {
beforeEach(function() {
app = new App();
});
it('should set a key-value pair on options:', function() {
app.option('a', 'b');... | Gargitier5/tier5portal | vendors/update/test/app.option.js | JavaScript | mit | 2,760 |
# encoding: utf-8
module Mongoid #:nodoc:
module Extensions #:nodoc:
module Boolean #:nodoc:
module Conversions #:nodoc:
def set(value)
val = value.to_s
val == "true" || val == "1"
end
def get(value)
value
end
end
end
end
end
| listrophy/mongoid | lib/mongoid/extensions/boolean/conversions.rb | Ruby | mit | 312 |
<?php
class Foo extends Bar {
public function bar($foobar = array(parent::FOOBAR)) {}
}
?>
| sowbiba/senegal-front | vendor/pdepend/pdepend/src/test/resources/files/Parser/testParserHandlesParentKeywordInMethodParameterDefaultValue.php | PHP | mit | 95 |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
expo... | mgechev/angular | packages/common/locales/extra/nb.ts | TypeScript | mit | 848 |
<?php
/**
* Settings screen sidebar for free plugins with a pro version. Display the reasons to upgrade
* and the mailing list.
*/
?>
<!-- Keep Updated -->
<div class="postbox">
<div class="handlediv" title="Click to toggle"><br /></div>
<h3 class="hndle"><span><?php _e('Keep Updated', $this->plugin->name); ?><... | TheOrchardSolutions/WordPress | wp-content/plugins/wp-to-buffer/_modules/dashboard/views/sidebar-upgrade.php | PHP | gpl-2.0 | 1,049 |
// SPDX-License-Identifier: GPL-2.0-or-later
package org.dolphinemu.dolphinemu.adapters;
import android.content.res.Resources;
import android.view.ViewGroup;
import androidx.leanback.widget.ImageCardView;
import androidx.leanback.widget.Presenter;
import org.dolphinemu.dolphinemu.model.TvSettingsItem;
import org.do... | ZephyrSurfer/dolphin | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/adapters/SettingsRowPresenter.java | Java | gpl-2.0 | 1,484 |
/* 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 ... | somaen/scummvm | engines/wintermute/ext/dll_httpconnect.cpp | C++ | gpl-2.0 | 8,196 |
// errorcheck
// Copyright 2017 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.
// Issue 20227: panic while constructing constant "1i/1e-600000000"
package p
var _ = 1 / 1e-600000000i // ERROR "division by zero"
var _ = 1i... | Gurgel100/gcc | gcc/testsuite/go.test/test/fixedbugs/issue20227.go | GO | gpl-2.0 | 565 |
<?php
// $Id: panels-dashboard-link.tpl.php,v 1.3 2010/10/11 22:56:02 sdboyer Exp $
?>
<div class="dashboard-entry clearfix">
<div class="dashboard-text">
<div class="dashboard-link">
<?php print $link['title']; ?>
</div>
<div class="description">
<?php print $link['description']; ?>
</div... | TransmissionStudios/Transmission | sites/default/modules/panels/templates/panels-dashboard-link.tpl.php | PHP | gpl-2.0 | 338 |
tinyMCE.addI18n('ka.wordcount',{words:"Words: "}); | freaxmind/miage-l3 | web/blog Tim Burton/tim_burton/protected/extensions/tinymce/assets/tiny_mce/plugins/wordc/langs/ka_dlg.js | JavaScript | gpl-3.0 | 50 |
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2015 Daniel Marjamäki and Cppcheck team.
*
* 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 th... | SkyroverTech/SkyroverCF | lib/cppcheck-1.71/gui/xmlreportv1.cpp | C++ | gpl-3.0 | 5,973 |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
namespace ICSharpCode.ILSpy.Debugger.Services
{
/// <summary>
/// Very naiv... | damnya/dnSpy | ILSpy/Services/ParserService.cs | C# | gpl-3.0 | 2,300 |
// This file has been generated by Py++.
#include "boost/python.hpp"
#include "generators/include/python_CEGUI.h"
#include "DefaultLogger.pypp.hpp"
namespace bp = boost::python;
struct DefaultLogger_wrapper : CEGUI::DefaultLogger, bp::wrapper< CEGUI::DefaultLogger > {
DefaultLogger_wrapper( )
: CEGUI::Defau... | geminy/aidear | oss/cegui/cegui-0.8.7/cegui/src/ScriptModules/Python/bindings/output/CEGUI/DefaultLogger.pypp.cpp | C++ | gpl-3.0 | 3,612 |
/* Copyright 2015 the SumatraPDF project authors (see AUTHORS file).
License: GPLv3 */
// utils
#include "BaseUtil.h"
#include "Dpi.h"
#include "FileUtil.h"
#include "GdiPlusUtil.h"
#include "LabelWithCloseWnd.h"
#include "UITask.h"
#include "WinUtil.h"
// rendering engines
#include "BaseEngine.h"
#inc... | the7day/sumatrapdf | src/Favorites.cpp | C++ | gpl-3.0 | 27,609 |
import dataclasses
from typing import ClassVar, Dict, List, Set, Tuple, Type
from collections import OrderedDict
@dataclasses.dataclass
class A:
a: List[int] = <error descr="Mutable default '[]' is not allowed. Use 'default_factory'">[]</error>
b: List[int] = <error descr="Mutable default 'list()' is not allo... | siosio/intellij-community | python/testData/inspections/PyDataclassInspection/defaultFieldValue.py | Python | apache-2.0 | 1,215 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.textstructure.structurefinder;
imp... | GlenRSmith/elasticsearch | x-pack/plugin/text-structure/src/test/java/org/elasticsearch/xpack/textstructure/structurefinder/GrokPatternCreatorTests.java | Java | apache-2.0 | 37,348 |
/*
* Copyright 2014 JBoss 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 i... | ThiagoGarciaAlves/drools | drools-workbench-models/drools-workbench-models-guided-dtree/src/main/java/org/drools/workbench/models/guided/dtree/shared/model/nodes/TypeNode.java | Java | apache-2.0 | 791 |
/*
* Copyright 2011 gitblit.com.
*
* 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 ... | culmat/gitblit | src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java | Java | apache-2.0 | 6,842 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | tubemogul/druid | server/src/main/java/io/druid/server/coordinator/rules/LoadRule.java | Java | apache-2.0 | 9,453 |
/*
* 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 ma... | rdicroce/deltaspike | deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ServiceUtils.java | Java | apache-2.0 | 3,022 |
/*
* 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 ... | kidaa/jena | jena-core/src/main/java/jena/rdfcopy.java | Java | apache-2.0 | 5,015 |
/*
* 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 ... | cxfeng1/incubator-weex | runtime/frameworks/legacy/app/register.js | JavaScript | apache-2.0 | 3,146 |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft 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 of the License at
// http://www.apa... | atpham256/azure-powershell | src/ServiceManagement/Services/Commands.Utilities/Websites/KuduRemoteClientBase.cs | C# | apache-2.0 | 2,292 |
package com.tutsplus.vectordrawables;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... | biwoodfengs/AndroidDemoProjects | VectorDrawables/app/src/androidTest/java/com/tutsplus/vectordrawables/ApplicationTest.java | Java | apache-2.0 | 359 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | GlenRSmith/elasticsearch | server/src/main/java/org/elasticsearch/search/aggregations/pipeline/SerialDiffPipelineAggregator.java | Java | apache-2.0 | 4,241 |
std_trap = trap("INT") { exit! 130 } # no backtrace thanks
require "pathname"
HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent.join("Homebrew")
$:.unshift(HOMEBREW_LIBRARY_PATH.to_s)
require "global"
if ARGV == %w[--version] || ARGV == %w[-v]
puts "Homebrew #{Homebrew.homebrew_version_string}"
puts ... | joshfriend/homebrew | Library/brew.rb | Ruby | bsd-2-clause | 4,159 |
// Copyright Louis Dionne 2013-2016
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/and.hpp>
#include <boost/hana/assert.hpp>
#include <boost/hana/bool.hpp>
namespace hana = boost::hana;
BOOST_HANA_CO... | bureau14/qdb-benchmark | thirdparty/boost/libs/hana/example/and.cpp | C++ | bsd-2-clause | 499 |
# 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.
from telemetry.page import page as page_module
from telemetry.page import page_set as page_set_module
class BigJsPageSet(page_set_module.PageSet):
""" Sit... | markYoungH/chromium.src | tools/perf/page_sets/big_js.py | Python | bsd-3-clause | 935 |
// 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 "remoting/host/user_authenticator.h"
#include <Security/Security.h>
#include <string>
#include "base/basictypes.h"
#include "base/mac/mac_... | aYukiSekiguchi/ACCESS-Chromium | remoting/host/user_authenticator_mac.cc | C++ | bsd-3-clause | 2,647 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(function() {
// We are going to kill all of the builtins, so hold onto the ones we need.
var defineGetter = Object.prototype.__defineGetter__;
var defin... | Chilledheart/chromium | chrome/test/data/extensions/api_test/messaging/externally_connectable/sites/assertions.js | JavaScript | bsd-3-clause | 11,033 |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | madhavanks26/com.vliesaputra.deviceinformation | src/com/vliesaputra/cordova/plugins/android/support/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/OutsideTaskActivity.java | Java | mit | 1,318 |
// No generics for getters and setters
({ set foo<T>(newFoo) {} })
| facebook/flow | src/parser/test/flow/invalid_syntax/migrated_0012.js | JavaScript | mit | 67 |
export const tinyNDArray: any;
| markogresak/DefinitelyTyped | types/poisson-disk-sampling/src/tiny-ndarray.d.ts | TypeScript | mit | 31 |
//------------------------------------------------------------------------------
// <copyright file="ValueOfAction.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="... | sekcheong/referencesource | System.Data.SqlXml/System/Xml/Xsl/XsltOld/ValueOfAction.cs | C# | mit | 3,999 |
/**
* @license
* Copyright Google Inc. 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
*/
import {Component, Directive, ElementRef, Injector, Input, NgModule, destroyPlatform} from '@angular/core';
import {... | awerlang/angular | modules/@angular/upgrade/test/aot/integration/examples_spec.ts | TypeScript | mit | 3,443 |
/*
* Copyright (c) 2010, 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/nashorn/src/jdk/nashorn/internal/objects/annotations/Getter.java | Java | mit | 2,016 |
<?php
/**
* Hoa
*
*
* @license
*
* New BSD License
*
* Copyright © 2007-2015, Hoa community. 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 ... | Halleck45/PhpMetricsZendServer | zray/vendor/hoa/iterator/Glob.php | PHP | mit | 1,879 |
// Type definitions for bootstrap4-toggle 3.6
// Project: https://github.com/gitbrent/bootstrap4-toggle, https://gitbrent.github.io/bootstrap4-toggle/
// Definitions by: Mitchell Grice <https://github.com/gricey432>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
/// <refe... | markogresak/DefinitelyTyped | types/bootstrap4-toggle/index.d.ts | TypeScript | mit | 852 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var fs = require('fs');
var morgan = require('morgan');
var routes = require('./routes/index');
var ... | lmazuel/autorest | src/dev/TestServer/server/app.js | JavaScript | mit | 18,237 |
/**
* Copyright (c) 2010-2019 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | theoweiss/openhab2 | bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/basic/CommandParameterType.java | Java | epl-1.0 | 1,157 |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Notify\V1\Service;
use Twilio\Options;
use Twilio\Values;
/**
* PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
*/
abstract... | Haynie-Research-and-Development/jarvis | web/webapi/sms/vendor/twilio/sdk/Twilio/Rest/Notify/V1/Service/BindingOptions.php | PHP | gpl-2.0 | 5,550 |
<?php
namespace Neos\Neos\Controller\Module;
/*
* This file is part of the Neos.Neos package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source c... | aertmann/neos-development-collection | Neos.Neos/Classes/Controller/Module/UserController.php | PHP | gpl-3.0 | 460 |
namespace MixERP.Net.WebControls.Flag
{
public partial class FlagControl
{
private bool disposed;
public override void Dispose()
{
if (!this.disposed)
{
this.Dispose(true);
base.Dispose();
}
}
private ... | gguruss/mixerp | src/Libraries/Server Controls/Project/MixERP.Net.WebControls.Flag/FlagControl/IDisposable.cs | C# | gpl-3.0 | 972 |
/*
* Copyright (C) 2014 Arpit Khurana <arpitkh96@gmail.com>
*
* This file is part of Amaze File Manager.
*
* Amaze File Manager 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 Li... | jiyuren/AmazeFileManager-1 | src/main/java/com/amaze/filemanager/utils/RootHelper.java | Java | gpl-3.0 | 7,137 |
/*
* eXist Open Source Native XML Database
* Copyright (C) 2009-2011 The eXist Project
* http://exist-db.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either versio... | MjAbuz/exist | extensions/debuggee/src/org/exist/debuggee/dbgp/packets/StepInto.java | Java | lgpl-2.1 | 1,942 |
package bootstrappolicy
import (
rbacrest "k8s.io/kubernetes/pkg/registry/rbac/rest"
)
func Policy() *rbacrest.PolicyData {
return &rbacrest.PolicyData{
ClusterRoles: GetBootstrapClusterRoles(),
ClusterRoleBindings: GetBootstrapClusterRoleBindings(),
Roles: GetBootstrapNamespaceRoles(),
... | kedgeproject/kedge | vendor/github.com/openshift/origin/pkg/cmd/server/bootstrappolicy/all.go | GO | apache-2.0 | 384 |
package com.codahale.metrics.health.jvm;
import com.codahale.metrics.health.HealthCheck;
import com.codahale.metrics.jvm.ThreadDeadlockDetector;
import java.util.Set;
/**
* A health check which returns healthy if no threads are deadlocked.
*/
public class ThreadDeadlockHealthCheck extends HealthCheck {
private... | gburton1/metrics | metrics-healthchecks/src/main/java/com/codahale/metrics/health/jvm/ThreadDeadlockHealthCheck.java | Java | apache-2.0 | 1,021 |
package io.dropwizard.jdbi.args;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.Argument;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.sql.Types;
import java.time.Instant;
import java.util.Calendar;
import java.util.Optional;
/**
... | patrox/dropwizard | dropwizard-jdbi/src/main/java/io/dropwizard/jdbi/args/InstantArgument.java | Java | apache-2.0 | 1,397 |
package cache
import (
"time"
kapi "k8s.io/kubernetes/pkg/api"
errors "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/client/cache"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/runtime"
"k8s.io/kubernetes/pkg/watch"
authorizationapi "github.com/openshift/ori... | yepengxj/df_st_origin1 | pkg/authorization/cache/clusterpolicybinding.go | GO | apache-2.0 | 4,026 |
//// [tests/cases/compiler/pathMappingBasedModuleResolution5_classic.ts] ////
//// [file1.ts]
import {x} from "folder2/file1"
import {y} from "folder3/file2"
import {z} from "components/file3"
import {z1} from "file4"
declare function use(a: any): void;
use(x.toExponential());
use(y.toExponential());
use(z.toExpo... | weswigham/TypeScript | tests/baselines/reference/pathMappingBasedModuleResolution5_classic.js | JavaScript | apache-2.0 | 1,513 |
/*
* 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 ... | yanzhijun/jclouds-aliyun | providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/features/AWSInstanceApi.java | Java | apache-2.0 | 4,022 |
/*
* 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 ... | BiryukovVA/ignite | modules/core/src/main/java/org/apache/ignite/internal/direct/DirectMessageWriter.java | Java | apache-2.0 | 12,148 |
/**
* @license
* Copyright Google Inc. 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
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define ==... | Geovanny0401/bookStore | bookstore-front/node_modules/zone.js/dist/zone-bluebird.js | JavaScript | apache-2.0 | 1,237 |
<?php namespace SleepingOwl\Admin;
use SleepingOwl\Html\FormBuilder;
use SleepingOwl\Html\HtmlBuilder;
use SleepingOwl\Admin\Menu\MenuItem;
use SleepingOwl\Admin\Models\ModelItem;
use SleepingOwl\Admin\Models\Models;
use Illuminate\Config\Repository;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Routing\Router ... | dungbq89/lnews | vendor/sleeping-owl/admin/src/SleepingOwl/Admin/Admin.php | PHP | apache-2.0 | 3,169 |
Puppet::Type.newtype(:ec2_scalingpolicy) do
@doc = 'Type representing an EC2 scaling policy.'
ensurable
newparam(:name, namevar: true) do
desc 'The name of the scaling policy.'
validate do |value|
fail 'Scaling policies must have a name' if value == ''
fail 'name should be a String' unless v... | MarsuperMammal/pw_gce | lib/puppet/type/ec2_scalingpolicy.rb | Ruby | apache-2.0 | 1,573 |
/**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.com)
*
* 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
*
* Unle... | pinotlytics/pinot | pinot-core/src/test/java/com/linkedin/pinot/core/realtime/RealtimeIntegrationTest.java | Java | apache-2.0 | 877 |
/*
* Copyright 2000-2014 Vaadin Ltd.
*
* 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... | shahrzadmn/vaadin | server/src/com/vaadin/event/EventRouter.java | Java | apache-2.0 | 8,333 |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright
* (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your choice: -
* GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licen... | zhangjunfang/eclipse-dir | nsp/src/main/webapp/scripts/lib/fckeditor/editor/dialog/common/fck_dialog_common.js | JavaScript | bsd-2-clause | 8,894 |
/*
* Copyright (c) 2004-2006 The Regents of The University of Michigan
* Copyright (c) 2010 The University of Edinburgh
* Copyright (c) 2012 Mark D. Hill and David A. Wood
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | hoangt/tpzsimul.gem5 | src/cpu/pred/bpred_unit.cc | C++ | bsd-3-clause | 2,246 |
// 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.
package org.chromium.components.minidump_uploader.util;
import java.net.HttpURLConnection;
/**
* A factory class for creating a HttpURLConnection.
*/
... | scheib/chromium | components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/util/HttpURLConnectionFactory.java | Java | bsd-3-clause | 548 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2010 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | mitchellrj/genshi | genshi/filters/tests/i18n.py | Python | bsd-3-clause | 89,114 |
// 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/chromeos/login/version_info_updater.h"
#include <vector>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "ba... | mohamed--abdel-maksoud/chromium.src | chrome/browser/chromeos/login/version_info_updater.cc | C++ | bsd-3-clause | 5,419 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Si... | Windows-Readiness/WinDevWorkshop | RU/!RU 01. Introduction/01. Lab B. Solution/Exercise 2/SimpleNavigation/Properties/AssemblyInfo.cs | C# | mit | 1,052 |
//
// Copyright 2012 Christian Henning
//
// 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
//
#ifndef BOOST_GIL_EXTENSION_IO_PNG_DETAIL_WRITER_BACKEND_HPP
#define BOOST_GIL_EXTENSION_IO_PNG_DETAIL_WRITER_BACKEND_HPP
... | kumakoko/KumaGL | third_lib/boost/1.75.0/boost/gil/extension/io/png/detail/writer_backend.hpp | C++ | mit | 16,790 |
# encoding: utf-8
require 'spec_helper'
def encode_base64(str)
Mail::Encodings::Base64.encode(str)
end
def check_decoded(actual, expected)
if RUBY_VERSION >= '1.9'
expect(actual.encoding).to eq Encoding::BINARY
expect(actual).to eq expected.force_encoding(Encoding::BINARY)
else
expect(actual).to eq ... | kjg/mail | spec/mail/attachments_list_spec.rb | Ruby | mit | 13,083 |
/*
* Copyright 2016 Rethink Robotics
*
* Copyright 2016 Chris Smith
*
* 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
*
... | tarquasso/softroboticfish6 | fish/pi/ros/catkin_ws/src/rosserial/devel/share/gennodejs/ros/rosserial_msgs/find.js | JavaScript | mit | 1,464 |
/**
* @fileoverview Rule to flag wrapping non-iife in parens
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Checks whether or not a given n... | EdwardStudy/myghostblog | versions/1.25.7/node_modules/eslint/lib/rules/accessor-pairs.js | JavaScript | mit | 5,257 |
// 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.
// This is the version of the Android-specific Chromium linker that uses
// the crazy linker to load libraries.
// This source code *cannot* depend on an... | junhuac/MQUIC | src/base/android/linker/legacy_linker_jni.cc | C++ | mit | 16,030 |
// 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 Microsoft.Win32.SafeHandles;
using System.Diagnostics;
using System.Threading;
namespace System.Net.Sockets
... | nbarbettini/corefx | src/Common/src/System/Net/SafeCloseSocket.cs | C# | mit | 9,141 |
// Package api provides a generic, low-level WebDriver API client for Go.
// All methods map directly to endpoints of the WebDriver Wire Protocol:
// https://code.google.com/p/selenium/wiki/JsonWireProtocol
//
// This package was previously internal to the agouti package. It currently
// does not have a fixed API, but ... | johanbrandhorst/protobuf | vendor/github.com/sclevine/agouti/api/api.go | GO | mit | 418 |
module ActiveRecord
module AttributeMethods
module Serialization
extend ActiveSupport::Concern
module ClassMethods
# If you have an attribute that needs to be saved to the database as an
# object, and retrieved as the same object, then specify the name of that
# attribute usin... | afuerstenau/daily-notes | vendor/cache/ruby/2.5.0/gems/activerecord-5.0.6/lib/active_record/attribute_methods/serialization.rb | Ruby | mit | 2,841 |
//------------------------------------------------------------------------------
// <copyright file="PerformanceCountersElement.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------... | sekcheong/referencesource | System/net/System/Net/Configuration/PerformanceCountersElement.cs | C# | mit | 1,389 |
//used for the media picker dialog
angular.module("umbraco")
.controller("Umbraco.Dialogs.MediaPickerController",
function ($scope, mediaResource, umbRequestHelper, entityResource, $log, mediaHelper, eventsService, treeService, $cookies, $element, $timeout, notificationsService) {
var dial... | gregoriusxu/Umbraco-CMS | src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.controller.js | JavaScript | mit | 6,762 |
package volume
import (
"bytes"
"fmt"
"io/ioutil"
"testing"
"github.com/docker/docker/api/types"
"github.com/docker/docker/cli/internal/test"
"github.com/pkg/errors"
// Import builders to get the builder function as package function
. "github.com/docker/docker/cli/internal/test/builders"
"github.com/docker/... | Originate/exosphere | vendor/github.com/moby/moby/cli/command/volume/inspect_test.go | GO | mit | 4,211 |
/*
*********************************************************************************************
System Loader Implementation
- Implemented to https://github.com/jorendorff/js-loaders/blob/master/browser-loader.js
- <script type="module"> supported
*********************************************************... | nfl/es6-module-loader | src/system.js | JavaScript | mit | 1,825 |
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include <AP_HAL.h>
#include "AP_InertialSensor_MPU6000.h"
extern const AP_HAL::HAL& hal;
// MPU6000 accelerometer scaling
#define MPU6000_ACCEL_SCALE_1G (GRAVITY_MSS / 4096.0f)
// MPU 6000 registers
#define MPUREG_XG_OFFS_TC ... | andybarry/ardupilot | libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.cpp | C++ | gpl-3.0 | 60,871 |
<?php
/**
* @package Mautic
* @copyright 2014 Mautic Contributors. All rights reserved.
* @author Mautic
* @link http://mautic.org
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace MauticPlugin\MauticCrmBundle;
use Mautic\PluginBundle\Bundle\PluginBundleBase;
/**
... | viniciusferreira/mautic | plugins/MauticCrmBundle/MauticCrmBundle.php | PHP | gpl-3.0 | 444 |
<?php
namespace Neos\ContentRepository\Tests\Functional\Domain\Fixtures;
/*
* This file is part of the Neos.ContentRepository package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file wh... | neos/typo3cr | Tests/Functional/Domain/Fixtures/HappyNode.php | PHP | gpl-3.0 | 665 |
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009 - 2014 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project
QGROUNDCONTROL is free software: you can redistribute it and/or mod... | caoxiongkun/qgroundcontrol | src/CmdLineOptParser.cc | C++ | agpl-3.0 | 2,813 |