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
# # Author:: John Keiser (<jkeiser@opscode.com>) # Copyright:: Copyright (c) 2013 Opscode, Inc. # License:: Apache License, Version 2.0 # # 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 # # ...
luna1x/chef-server
vendor/ruby/1.9.1/gems/chef-11.6.2/spec/integration/knife/upload_spec.rb
Ruby
apache-2.0
41,092
/* * Copyright 2002-2015 Drew Noakes * * 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 applicab...
wswenyue/metadata-extractor
Source/com/drew/metadata/exif/makernotes/PentaxMakernoteDescriptor.java
Java
apache-2.0
4,966
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.test.internal.engine.methodvalidation.service; import java.util.List;...
mxrenkin/hibernate-validator
engine/src/test/java/org/hibernate/validator/test/internal/engine/methodvalidation/service/CustomerRepository.java
Java
apache-2.0
2,001
package org.zstack.network.service.lb; import org.springframework.beans.factory.annotation.Autowire; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.transaction.annotation.Transactional; import org.zstack.core.P...
winger007/zstack
plugin/loadBalancer/src/main/java/org/zstack/network/service/lb/LoadBalancerBase.java
Java
apache-2.0
44,011
class WorkspaceSearchController < ApplicationController before_filter :require_full_search def show workspace = Workspace.find(params[:workspace_id]) authorize! :show, workspace present WorkspaceSearch.new(current_user, params) end end
nvoron23/chorus
app/controllers/workspace_search_controller.rb
Ruby
apache-2.0
255
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
mvp/presto
presto-iceberg/src/main/java/com/facebook/presto/iceberg/PartitionFields.java
Java
apache-2.0
4,926
/* * Copyright 2014 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 applica...
gstevey/gradle
subprojects/platform-play/src/main/java/org/gradle/play/internal/run/PlayRunSpec.java
Java
apache-2.0
1,031
# coding: utf-8 from __future__ import print_function, unicode_literals import os from boxsdk import Client from boxsdk.exception import BoxAPIException from boxsdk.object.collaboration import CollaborationRole from auth import authenticate def run_user_example(client): # 'me' is a handy value to get info on the...
lkabongoVC/box-python-sdk
demo/example.py
Python
apache-2.0
10,222
class Foo<R> { public interface Factory<U> { U make(); } interface ASink<R, K extends ASink<R, K>> { public void combine(K other); } static <R, S extends ASink<R, S>> R reduce(Factory<S> factory) { return null; } public void foo() { reduce(Moo::new); ...
android-ia/platform_tools_idea
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/ConstructorAssignability.java
Java
apache-2.0
978
/* * 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 ...
jatin9896/incubator-carbondata
processing/src/main/java/org/apache/carbondata/processing/loading/converter/FieldConverter.java
Java
apache-2.0
1,743
/** * Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved. * * 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 fil...
EArdeleanu/gateway
transport/wsr/src/main/java/org/kaazing/gateway/transport/wsr/RtmpProtocolDispatcher.java
Java
apache-2.0
1,627
""" GeoJSON example using addItem Python 2/3 ArcREST version 3.5.0 """ from __future__ import print_function import arcrest if __name__ == "__main__": username = "" password = "" geojsonFile = r"" sh = arcrest.AGOLTokenSecurityHandler(username, password) admin = arcrest.manageorg.Administ...
Esri/ArcREST
samples/publishingGeoJSON.py
Python
apache-2.0
864
/* * Copyright 2017 Amadeus s.a.s. * 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...
fbasso/ariatemplates
test/aria/widgets/container/tab/focusTab/FocusTabTestCase.js
JavaScript
apache-2.0
1,249
// // immer: immutable data structures for C++ // Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente // // This software is distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt // #include <immer/set.hpp> template <typename T, ...
wiltonlazary/arangodb
3rdParty/immer/v0.7.0/test/set/B3.cpp
C++
apache-2.0
529
/* * Copyright (c) Facebook, Inc. and 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 applic...
facebook/buck
test/com/facebook/buck/rules/macros/StringWithMacrosConverterTest.java
Java
apache-2.0
5,254
/* * Copyright (c) Facebook, Inc. and 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 applic...
facebook/buck
src/com/facebook/buck/cxx/CxxPreprocessorInput.java
Java
apache-2.0
3,593
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
akosyakov/intellij-community
xml/xml-psi-impl/src/com/intellij/embedding/MasqueradingPsiBuilderAdapter.java
Java
apache-2.0
11,304
package storage import ( "fmt" ) // ErrOldVersion is returned when a newer version of TUF metadata is already available type ErrOldVersion struct{} // ErrOldVersion is returned when a newer version of TUF metadata is already available func (err ErrOldVersion) Error() string { return fmt.Sprintf("Error updating met...
jfrazelle/notary
server/storage/errors.go
GO
apache-2.0
1,372
/* * 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/nio/serialization/TypedDataSerializable.java
Java
apache-2.0
1,000
/** * View attribute injection library for Android which generates the obtainStyledAttributes() and * TypedArray boilerplate code for you at compile time. * <p> * No more handing to deal with context.obtainStyledAttributes(...) or manually retrieving values * from the resulting {@link android.content.res.TypedArra...
lord19871207/barber
api/src/main/java/io/sweers/barber/package-info.java
Java
apache-2.0
465
/******************************************************************************* * Copyright 2015 Ivan Shubin http://galenframework.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 * * ...
thhiep/galen
galen-core/src/test/java/com/galenframework/components/report/FakeException.java
Java
apache-2.0
2,298
/* * 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 ...
MuShiiii/commons-collections
src/test/java/org/apache/commons/collections4/comparators/ComparableComparatorTest.java
Java
apache-2.0
1,878
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.slm; import org.elasticsearch.action.support...
HonzaKral/elasticsearch
x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SLMInfoTransportAction.java
Java
apache-2.0
1,649
/* * Copyright 2016 The Closure Compiler 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...
selkhateeb/closure-compiler
test/com/google/javascript/jscomp/PolymerBehaviorExtractorTest.java
Java
apache-2.0
5,025
// legal JS, if nonsensical, which also triggers the issue const { date, } = (inspectedElement: any) => 0; date.toISOString(); // Working flow code const { date2, } = (inspectedElement: any).props; date2.toISOString(); // It could also be an async function const { constructor } = async () => {}...
Microsoft/TypeScript
tests/cases/compiler/destructuringControlFlowNoCrash.ts
TypeScript
apache-2.0
323
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
hurricup/intellij-community
python/src/com/jetbrains/python/psi/impl/blockEvaluator/PyEvaluationResult.java
Java
apache-2.0
1,369
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version...
aminmkhan/pentaho-kettle
engine/src/test/java/org/pentaho/di/trans/steps/reservoirsampling/ReservoirSamplingMetaTest.java
Java
apache-2.0
1,856
// 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 System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Formatting.Rules; using Microsoft.CodeAn...
DavidKarlas/roslyn
src/Workspaces/Core/Portable/Formatting/Engine/NodeOperations.cs
C#
apache-2.0
2,013
// 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 namespace Microsoft.CodeAnalysis.Operations { /// <summary> /// Represents a <see cref="...
brettfo/roslyn
src/Compilers/Core/Portable/Operations/OperationVisitor.cs
C#
apache-2.0
1,874
module Clever module APIOperations # Represents a list of results for a paged request. class ResultsList include Enumerable # Create a results list from a PageList # @api private # @return [ResultsList] def initialize(pagelist) @pages = pagelist end # Iterat...
mchavarriagam/clever-ruby
lib/clever-ruby/api_operations/results_list.rb
Ruby
apache-2.0
699
/* * Minio Cloud Storage, (C) 2016, 2017 Minio, 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 applica...
hackintoshrao/minio
cmd/storage-rpc-server_test.go
GO
apache-2.0
4,913
({ L_MENU_GRID: "Valikkoruudukko", L_MENU_ITEM_DISABLED: "%1 ei ole k\u00e4ytett\u00e4viss\u00e4", L_MENU_ITEM_SUBMENU: "%1 (alivalikko)", L_MENU_SUBMENU: "alivalikko", L_MENU_CHECK: "valinta" })
iharkhukhrakou/XPagesExtensionLibrary
extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.domino/resources/web/dwa/common/nls/fi/menu.js
JavaScript
apache-2.0
196
package antlr; /* ANTLR Translator Generator * Project led by Terence Parr at http://www.jGuru.com * Software rights: http://www.antlr.org/RIGHTS.html * * $Id: CppCharFormatter.java,v 1.1 2003/06/04 20:54:22 greg Exp $ */ // C++ code generator by Pete Wells: pete@yamuna.demon.co.uk class CppCharForma...
HebaKhaled/bposs
src/pt_antlr/antlr/CppCharFormatter.java
Java
apache-2.0
2,509
/** * @@@ 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.0 ...
apache/incubator-trafodion
wms/src/test/java/org/trafodion/wms/SmallTests.java
Java
apache-2.0
909
/* * 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 n...
chandresh-pancholi/ignite
modules/hibernate-core/src/main/java/org/apache/ignite/cache/hibernate/HibernateCacheProxy.java
Java
apache-2.0
26,223
module td.output { /** * List of states the parser of [[PrettyPrintPlugin]] can be in. */ enum PrettyPrintState { /** * Default state of the parser. Empty lines will be removed and indention will be adjusted. */ Default, /** * Comment state, the pars...
innerverse/typedoc
src/td/output/plugins/PrettyPrintPlugin.ts
TypeScript
apache-2.0
5,741
/** * @@@ 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.0 (the "Licen...
apache/incubator-trafodion
dcs/src/main/java/org/trafodion/dcs/master/listener/ConnectionContext.java
Java
apache-2.0
3,102
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('event_mapper', '0005_user_is_confirmed'), ] operations = [ migrations.AlterField( model_name='event', ...
MariaSolovyeva/watchkeeper
django_project/event_mapper/migrations/0006_auto_20150505_0922.py
Python
bsd-2-clause
789
package vektah.rust; import com.intellij.openapi.fileTypes.LanguageFileType; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import vektah.rust.i18n.RustBundle; import javax.swing.*; public class RustFileType extends LanguageFileType { public static final RustFileType INSTANCE =...
tempbottle/idea-rust
src/java/main/vektah/rust/RustFileType.java
Java
bsd-2-clause
790
cask 'picka' do version '1.0.0' sha256 '981209f1bd432d99ce082429cbb182b17194063b6b0eb8ae9fa22a0dbe37bca8' url 'https://getpicka.com/downloads/Picka.zip' appcast 'https://getpicka.com/appcast-trial.xml' name 'Picka' homepage 'https://getpicka.com/' app 'Picka.app' end
jawshooah/homebrew-cask
Casks/picka.rb
Ruby
bsd-2-clause
284
cask 'watchguard-mobile-vpn-with-ssl' do version '12.5.3,615421' sha256 'b8a4f9ce908f19df6122fdf24445fdb233d812f2f6b5f08261ca2e4cca0c3784' url "http://cdn.watchguard.com/SoftwareCenter/Files/MUVPN_SSL/#{version.before_comma.dots_to_underscores}/WG-MVPN-SSL_#{version.before_comma.dots_to_underscores}.dmg" name ...
sscotth/homebrew-cask
Casks/watchguard-mobile-vpn-with-ssl.rb
Ruby
bsd-2-clause
518
#include "AppConfig.h" #include "PathUtils.h" #define BASE_DATA_PATH (L"McServTest Data Files") #define CONFIG_FILENAME (L"config.xml") CAppConfig::CAppConfig() : CConfig(BuildConfigPath()) { } CAppConfig::~CAppConfig() { } Framework::CConfig::PathType CAppConfig::GetBasePath() { auto result = Framework::Pat...
Alloyed/Play-
tools/McServTest/AppConfig.cpp
C++
bsd-2-clause
568
// 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/cr_button/cr_button.m.js'; import './advanced_settings_dialog.js'; import './print_preview_shared_css.js'; import '...
chromium/chromium
chrome/browser/resources/print_preview/ui/advanced_options_settings.ts
TypeScript
bsd-3-clause
1,620
<?php /** * Client test for InternetExplorer 6 (auth). * * @package Webdav * @subpackage Tests * @version 1.1.4 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ require_once 'client_test_suite.php'; require_once 'client_test_co...
faclib/ezcomponents
Webdav/tests/client_ie6_auth_test.php
PHP
bsd-3-clause
748
<?php /** * PSR1_Sniffs_Methods_CamelCapsMethodNameSniff. * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood <gsherwood@squiz.net> * @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600) * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.tx...
scaryml1000/ZendSkeleton
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Methods/CamelCapsMethodNameSniff.php
PHP
bsd-3-clause
2,984
<?php declare(strict_types=1); /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\TestFixture\Metadata\Attribute; use PHPUnit\Fram...
Firehed/phpunit
tests/_files/Metadata/Attribute/tests/DoesNotPerformAssertionsTest.php
PHP
bsd-3-clause
566
// Copyright 2010, Shuo Chen. All rights reserved. // http://code.google.com/p/evproto/ // // Use of this source code is governed by a BSD-style license // that can be found in the License file. // Author: Shuo Chen (chenshuo at chenshuo dot com) // #include "evproto/evproto.h" #include <gflags/gflags.h> #include <...
cetium/evproto
evproto/evproto.cc
C++
bsd-3-clause
2,066
--TEST-- Protocol Buffers setting integer value --SKIPIF-- <?php require 'skipif.inc' ?> --FILE-- <?php require 'test.inc'; $foo = new Foo(); /* from int type */ $foo->setInt32Field(2); var_dump($foo->getInt32Field()); /* from float type */ $foo->setInt32Field(3.0); var_dump($foo->getInt32Field()); /* from string t...
nosun/php-protobuf
tests/set_int_field.phpt
PHP
bsd-3-clause
421
// (C) Copyright Joel de Guzman 2003. // 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) // Modified by Troy D. Straszheim and Jakob van Santen, 2009-03-26 // Pulled in to ecto in 2010-11 by Troy D. Straszheim...
stonier/ecto
include/ecto/python/std_map_indexing_suite.hpp
C++
bsd-3-clause
17,030
// Copyright 2019 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.autofill_assistant.user_data; import static org.chromium.components.autofill_assistant.AssistantAccessibilityUtils.setAcc...
chromium/chromium
components/autofill_assistant/android/java/src/org/chromium/components/autofill_assistant/user_data/AssistantLoginSection.java
Java
bsd-3-clause
4,011
// Copyright 2011 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. // Template support for writing HTML documents. // Documents that include Template: true in their // metadata are executed as input to text/template. // // Thi...
oopos/go
src/cmd/godoc/template.go
GO
bsd-3-clause
5,495
// 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. package org.chromium.android_webview; import android.annotation.SuppressLint; import android.content.Context; import android.media.AudioManager; import a...
chromium/chromium
android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java
Java
bsd-3-clause
14,739
require('should'); var option = require('..').sdk.option; describe('option', function() { it('can get default values', function() { option.get('encoding').should.equal('utf8'); }); it('can set values', function() { option.set('encoding', 'unicode'); option.get('encoding').should.equal('unicode'); ...
thcode/nico
tests/sdk.option.test.js
JavaScript
bsd-3-clause
1,096
import datetime from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db import models from django.http import Http404 from django.utils import timezone from django.utils.functional import cached_property from django.utils.translation import gettext as _ from django.views...
shacker/django
django/views/generic/dates.py
Python
bsd-3-clause
25,251
from __future__ import absolute_import, print_function import inspect import logging import raven import sentry from django.conf import settings from django.db.utils import DatabaseError from raven.contrib.django.client import DjangoClient from . import metrics UNSAFE_FILES = ( 'sentry/event_manager.py', 's...
hongliang5623/sentry
src/sentry/utils/raven.py
Python
bsd-3-clause
3,051
using Shouldly.Tests.TestHelpers; namespace Shouldly.Tests.Strings.DetailedDifference.CaseInsensitive.LongStrings.MultipleDiffs { // Just before the edge case for consolidation. 2 differences are exactly the required length apart to be consolidated into one diff public class DiffsCloseToEachOtherAreConsolidat...
yannisgu/shouldly
src/Shouldly.Tests/Strings/DetailedDifference/CaseInsensitive/LongStrings/MultipleDiffs/DiffsCloseToEachOtherAreConsolidatedBorderConditionOne.cs
C#
bsd-3-clause
3,647
function setSearchTextField(paramname, field) { var passed = location.search.substring(1); var query = getParm(passed,paramname); var query = getParm(passed,paramname); query = query.replace(/\+/g," "); var loc = document.location; if(/.*search.html/.test(loc)) { document.title = decodeURIComponent(query) + ' ...
mfroeling/DTITools
docs/htmldoc/standard/javascript/search.js
JavaScript
bsd-3-clause
723
# Copyright 2012, 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. import os import shlex from subprocess import Popen, PIPE import time import unittest import utils class TestCase(unittest.TestCase): @classmethod def setenv(cl...
anusornc/vitess
test/framework.py
Python
bsd-3-clause
2,552
#include "consoletools.h" #include "log/logger.h" #include <QTextStream> #include <Windows.h> LOGGER(ConsoleTools); class ConsoleTools::Private { public: Private() { hConsole = ::GetStdHandle(STD_INPUT_HANDLE); if (hConsole == INVALID_HANDLE_VALUE) { LOG_ERROR("Unable to ...
MKV21/glimpse_client
src/console/consoletools_win.cpp
C++
bsd-3-clause
1,142
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/common/permissions/api_permission_set.h" #include "base/containers/contains.h" #include "base/logging.h" #include "base/ranges/algor...
chromium/chromium
extensions/common/permissions/api_permission_set.cc
C++
bsd-3-clause
11,420
# Copyright 2019 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 os import sys import json from command_executor import CommandExecutor _THIS_DIR = os.path.abspath(os.path.dirname(__file__)) _PARENT_DIR = os.path.j...
chromium/chromium
chrome/test/chromedriver/client/websocket_connection.py
Python
bsd-3-clause
1,471
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/autofill/core/browser/payments/test_authentication_requester.h" #include <string> #include "build/build_config.h" #include "compone...
chromium/chromium
components/autofill/core/browser/payments/test_authentication_requester.cc
C++
bsd-3-clause
2,142
// stdafx.cpp : source file that includes just the standard includes // StdUtils_UnitTests.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
NeuroRoboticTech/AnimatLabPublicSource
Libraries/VortexAnimatSim/Vortex_UnitTests/stdafx.cpp
C++
bsd-3-clause
297
package ping import ( "bytes" "errors" "io" "time" context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" host "github.com/ipfs/go-ipfs/p2p/host" inet "github.com/ipfs/go-ipfs/p2p/net" peer "github.com/ipfs/go-ipfs/p2p/peer" logging "github.com/ipfs/go-ipfs/vendor/go-log-v1.0.0" u...
willglynn/go-ipfs
p2p/protocol/ping/ping.go
GO
mit
1,786
import * as React from 'react' import { ICommonImageDiffProperties } from './modified-image-diff' import { ImageContainer } from './image-container' interface IOnionSkinState { readonly crossfade: number } export class OnionSkin extends React.Component< ICommonImageDiffProperties, IOnionSkinState > { public c...
j-f1/forked-desktop
app/src/ui/diff/image-diffs/onion-skin.tsx
TypeScript
mit
2,059
'use strict'; const hljs = require('highlight.js'); const languages = hljs.listLanguages(); const fs = require('fs'); const result = { languages: languages, aliases: {} }; languages.forEach(lang => { result.aliases[lang] = lang; const def = require('highlight.js/lib/languages/' + lang)(hljs); const aliase...
hexojs/hexo-util
scripts/build_highlight_alias.js
JavaScript
mit
583
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace ScintillaNET { /// <summary> /// Provides data for the <see cref="Scintilla.DoubleClick" /> event. /// </summary> public class DoubleClickEventArgs : EventArgs { priv...
suvjunmd/ScintillaNET
src/ScintillaNET/DoubleClickEventArgs.cs
C#
mit
2,400
module Gitlab module SlashCommands class IssueShow < IssueCommand def self.match(text) /\Aissue\s+show\s+#{Issue.reference_prefix}?(?<iid>\d+)/.match(text) end def self.help_message "issue show <id>" end def execute(match) issue = find_by_iid(match[:iid]) ...
t-zuehlsdorff/gitlabhq
lib/gitlab/slash_commands/issue_show.rb
Ruby
mit
529
'use strict'; /* jQuery UI Sortable plugin wrapper @param [ui-sortable] {object} Options to pass to $.fn.sortable() merged onto ui.config */ angular.module('mpk').value('uiSortableConfig',{}).directive('uiSortable', [ 'uiSortableConfig', '$timeout', '$log', function(uiSortableConfig, $timeout, $log) { ...
mabotech/maboss-admin
public/kanban/scripts/directives/sortable.js
JavaScript
mit
8,434
using System; using ProvisioningLibrary; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Table; namespace ProvisioningLibrary { public class GroupBudgetState : TableEntity { private string _ResourceId = string.Empty; public GroupBudgetState() { } ...
GabrieleCastellani/SCAMP
ProvisioningLibrary/VolatileStorage/GroupBudgetState.cs
C#
mit
755
<?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/GoogleBase/Model/Item.php
PHP
mit
12,442
// Copyright 2018 the V8 project 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 "src/snapshot/roots-serializer.h" #include "src/execution/isolate.h" #include "src/heap/heap.h" #include "src/objects/objects-inl.h" #include ...
enclose-io/compiler
lts/deps/v8/src/snapshot/roots-serializer.cc
C++
mit
2,307
// 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 "gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h" #include <algorithm> #include "base/basictypes.h" #include "gpu/command_buff...
Teamxrtc/webrtc-streaming-node
third_party/webrtc/src/chromium/src/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
C++
mit
22,247
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.resources.implementation; import com.fasterxml.j...
jianghaolu/azure-sdk-for-java
azure-mgmt-resources/src/main/java/com/microsoft/azure/management/resources/implementation/PageImpl.java
Java
mit
1,747
@extends($master) @section('page', trans('ticketit::admin.category-edit-title', ['name' => ucwords($category->name)])) @section('content') @include('ticketit::shared.header') <div class="well bs-component"> {!! CollectiveForm::model($category, [ 'route' => [$setting-...
thekordy/ticketit
src/Views/bootstrap3/admin/category/edit.blade.php
PHP
mit
781
<?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/Api2/Model/Request/Interpreter.php
PHP
mit
2,436
$(document).ready(function() { var a, b, c, d, e, col, otherCol; module("Backbone.Collection", { setup: function() { a = new Backbone.Model({id: 3, label: 'a'}); b = new Backbone.Model({id: 2, label: 'b'}); c = new Backbone.Model({id: 1, label: 'c'}); d ...
wakanpaladin/mybackbone
test/collection.js
JavaScript
mit
35,957
/*************************************************************************/ /* control_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
tomasy23/evertonkrosnodart
tools/editor/plugins/control_editor_plugin.cpp
C++
mit
22,889
// // ConvertLambdaBodyExpressionToStatementAction.cs // // Author: // Mansheng Yang <lightyang0@gmail.com> // // Copyright (c) 2012 Mansheng Yang <lightyang0@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (t...
praeclarum/Netjs
Netjs/Dependencies/NRefactory/ICSharpCode.NRefactory.CSharp/Refactoring/CodeActions/ConvertLambdaBodyExpressionToStatementAction.cs
C#
mit
2,431
<?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/Cms/controllers/IndexController.php
PHP
mit
3,373
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const app_utils_1 = require("../../utilities/app-utils"); const dynamic_path_parser_1 = require("../../utilities/dynamic-path-parser"); const config_1 = require("../../models/config"); const stringUtils = require('ember-cli-string-utils'); con...
raymonddavis/Angular-SailsJs-SocketIo
web/node_modules/@angular/cli/blueprints/class/index.js
JavaScript
mit
2,492
<?php /** * PHPUnit * * Copyright (c) 2002-2014, Sebastian Bergmann <sebastian@phpunit.de>. * 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 ...
drBenway/siteResearch
vendor/phpunit/dbunit/PHPUnit/Extensions/Database/Operation/Composite_1.php
PHP
mit
3,983
export { default, DimmerProps } from './Dimmer';
aabustamante/Semantic-UI-React
src/modules/Dimmer/index.d.ts
TypeScript
mit
49
package keyseq type TernaryTrie struct { root TernaryNode } func NewTernaryTrie() *TernaryTrie { return &TernaryTrie{} } func (t *TernaryTrie) Root() Node { return &t.root } func (t *TernaryTrie) GetList(k KeyList) Node { return Get(t, k) } func (t *TernaryTrie) Get(k Key) Node { return Get(t, KeyList{k}) } ...
dav009/peco
keyseq/ternary.go
GO
mit
3,295
using System; using System.IO; using Foundation; using UIKit; using CoreGraphics; using Dropbox.CoreApi.iOS; namespace DropboxCoreApiSample { public partial class TextViewController : UIViewController { // A TextField with Placeholder CustomUITextView textView; RestClient restClient; string filename; ...
JonDouglas/XamarinComponents
XPlat/DropboxCoreApi/iOS/samples/DropboxCoreApiSample/DropboxCoreApiSample/TextViewController.cs
C#
mit
3,244
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Data; using System.Drawing.Drawing2D; usi...
adilmughal/OpenLiveWriter
src/managed/OpenLiveWriter.PostEditor/PostPropertyEditing/PostPropertiesBandControl.cs
C#
mit
13,831
<?php namespace Herrera\Cli\Tests\Provider; use Herrera\Cli\Provider\ErrorHandlingServiceProvider; use Herrera\PHPUnit\TestCase; use Herrera\Service\Container; class ErrorHandlingServiceProviderTest extends TestCase { public function testRegister() { $container = new Container(); $container->...
spi-ke/Socialman
src/vendors/herrera-io/cli-app/src/tests/Herrera/Cli/Tests/Provider/ErrorHandlingServiceProviderTest.php
PHP
mit
828
<?php /** * PHPExcel * * Copyright (c) 2006 - 2007 PHPExcel, Maarten Balliauw * * 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...
ALTELMA/OfficeEquipmentManager
application/libraries/PHPExcel/branches/v1.1.1/Build/build.php
PHP
mit
3,220
// Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Bot.Connector { using System; using System.Linq; using System.Collections.Generic; using Newtonsoft.Json; using Microsoft.R...
dr-em/BotBuilder
CSharp/Library/Microsoft.Bot.Connector/ConnectorAPI/Models/AttachmentView.cs
C#
mit
1,269
'use strict'; var path = require('path'); var fixtures = require('haraka-test-fixtures'); var Connection = fixtures.connection; var Plugin = fixtures.plugin; var _set_up = function(done) { this.backup = {}; // needed for tests this.plugin = new Plugin('auth/auth_vpopmaild'); thi...
slattery/Haraka
tests/plugins/auth/auth_vpopmaild.js
JavaScript
mit
2,773
// 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.Collections.Generic; using System.Collections.Immutable; using System...
mavasani/roslyn
src/Compilers/CSharp/Portable/Symbols/Symbol.cs
C#
mit
68,726
//= require locastyle/templates/_popover.jst.eco //= require locastyle/templates/_dropdown.jst.eco
diegoeis/locawebstyle
source/assets/javascripts/templates.js
JavaScript
mit
99
// # Mail API // API for sending Mail var Promise = require('bluebird'), pipeline = require('../utils/pipeline'), errors = require('../errors'), mail = require('../mail'), Models = require('../models'), utils = require('./utils'), notifications = requir...
jordanwalsh23/jordanwalsh23.github.io
core/server/api/mail.js
JavaScript
mit
3,802
/** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize exports="amd" -o ./compat/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigat...
john-bixly/Morsel
app/vendor/lodash-amd/compat/collections/map.js
JavaScript
mit
2,696
// Copyright 2015-2018 Hans Dembinski // // 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) //[ guide_histogram_serialization #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp> #...
davehorton/drachtio-server
deps/boost_1_77_0/libs/histogram/examples/guide_histogram_serialization.cpp
C++
mit
1,128
<?php namespace Spy\TimelineBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\L...
saberyounis/Sonata-Project
vendor/stephpy/timeline-bundle/DependencyInjection/SpyTimelineExtension.php
PHP
mit
8,842
window.Reactable = require('../build/reactable.common');
wemcdonald/reactable
src/reactable.global.js
JavaScript
mit
57
from __future__ import absolute_import import numpy import chainer from chainer import _backend from chainer.backends import _cpu from chainer.configuration import config _ideep_version = None _error = None try: import ideep4py as ideep # NOQA from ideep4py import mdarray # type: ignore # NOQA _ideep...
pfnet/chainer
chainer/backends/intel64.py
Python
mit
5,920
package com.prolificinteractive.materialcalendarview; import android.animation.Animator; import android.content.res.Resources; import android.text.TextUtils; import android.util.TypedValue; import android.view.ViewPropertyAnimator; import android.view.animation.DecelerateInterpolator; import android.view.animation.Int...
netcosports/material-calendarview
library/src/main/java/com/prolificinteractive/materialcalendarview/TitleChanger.java
Java
mit
5,089
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org http://www.cocos2d-x.org 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...
h-iwata/MultiplayPaint
proj.ios_mac/Photon-iOS_SDK/Demos/etc-bin/cocos2dx/cocos2dx/script_support/CCScriptSupport.cpp
C++
mit
5,005