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 |
|---|---|---|---|---|---|
// -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vim: set ts=2 et sw=2 tw=80:
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.
#include... | Yukarumya/Yukarum-Redfoxes | security/nss/gtests/util_gtest/util_utf8_unittest.cc | C++ | mpl-2.0 | 39,251 |
package terraform
import (
"testing"
"github.com/davecgh/go-spew/spew"
"github.com/hashicorp/terraform/tfdiags"
"github.com/go-test/deep"
"github.com/zclconf/go-cty/cty"
)
func TestVariables(t *testing.T) {
tests := map[string]struct {
Module string
Override map[string]cty.Value
Want InputValues
... | pradeepbhadani/terraform | terraform/variables_test.go | GO | mpl-2.0 | 5,313 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
define([
'intern',
'intern!object',
'intern/chai!assert',
'require',
'intern/node_modules/dojo/node!xmlh... | riadhchtara/fxa-password-manager | tests/functional/oauth_webchannel_keys.js | JavaScript | mpl-2.0 | 14,818 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
define([
'intern',
'intern!object',
'intern/chai!assert',
'require',
'intern/node_modules/dojo/node!xmlh... | riadhchtara/fxa-password-manager | tests/functional/force_auth.js | JavaScript | mpl-2.0 | 4,537 |
# encoding: utf-8
#--
# Copyright (C) 2012-2013 Gitorious AS
# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation,... | SamuelMoraesF/Gitorious | app/controllers/groups_controller.rb | Ruby | agpl-3.0 | 3,916 |
<?php
/**
* StatusNet, the distributed open-source microblogging tool
*
* Plugin to use bit.ly URL shortening services.
*
* PHP version 5
*
* LICENCE: This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free So... | bashrc/gnusocial-debian | src/plugins/BitlyUrl/BitlyUrlPlugin.php | PHP | agpl-3.0 | 7,232 |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _
class EventRegistration(models.Model):
_inherit = 'event.registration'
def _get_lead_description_registration(self, prefix='', line_suffix=''):
"""Add the questions and answe... | ygol/odoo | addons/website_event_crm_questions/models/event_registration.py | Python | agpl-3.0 | 1,282 |
package info.novatec.inspectit.rcp;
/**
* Defines all the images for the InspectIT UI. Note that all images are automatically added to the
* registry on the inspectIT start up.
*
* Please note that this is NOT all the images available. There are so many additional images that
* you can find at
* https://inspecti... | andy32323/inspectIT | inspectIT/src/info/novatec/inspectit/rcp/InspectITImages.java | Java | agpl-3.0 | 13,358 |
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | fxcebx/community-edition | projects/repository/source/java/org/alfresco/repo/template/NamePathResultsMap.java | Java | lgpl-3.0 | 3,099 |
/*
* Copyright (C) 2005-2011 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | nguyentienlong/community-edition | projects/repository/source/java/org/alfresco/repo/content/caching/quota/QuotaManagerStrategy.java | Java | lgpl-3.0 | 2,059 |
/**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors.
*
* 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/lic... | edewit/aerogear-unifiedpush-server | migrator/src/test/java/org/jboss/aerogear/unifiedpush/migrator/EmbeddedMysqlDatabase.java | Java | apache-2.0 | 2,351 |
// 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.openapi.module;
import com.intellij.configurationStore.StateStorageManagerKt;
import com.intellij.openapi.application.WriteAction;
import com.intellij.openap... | smmribeiro/intellij-community | platform/platform-tests/testSrc/com/intellij/openapi/module/ModulesConfigurationTest.java | Java | apache-2.0 | 3,474 |
/*
* Copyright 2009 Mustard Grain, Inc., 2009-2010 LinkedIn, 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 require... | cshaxu/voldemort | src/java/voldemort/server/niosocket/NioSocketService.java | Java | apache-2.0 | 14,098 |
"""Support for monitoring the state of UpCloud servers."""
import logging
import voluptuous as vol
from homeassistant.components.binary_sensor import (
PLATFORM_SCHEMA, BinarySensorDevice)
import homeassistant.helpers.config_validation as cv
from . import CONF_SERVERS, DATA_UPCLOUD, UpCloudServerEntity
_LOGGER ... | molobrakos/home-assistant | homeassistant/components/upcloud/binary_sensor.py | Python | apache-2.0 | 896 |
default[:hannibal][:hbase_version] = '1.1.3'
default[:hannibal][:checksum]["1.1.3"] = '1e4f4030374a34d9f92dc9605505d421615ab12a9e02a10ed690576ab644f705'
default[:hannibal][:download_url] = 'https://github.com/amithkanand/hannibal/releases/download/v.0.12.0-apha'
| http-418/chef-bach | cookbooks/bach_repository/attributes/hannibal.rb | Ruby | apache-2.0 | 263 |
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2013 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/lic... | WebJustDevelopment/keycloak | testsuite/integration-arquillian/src/test/java/org/keycloak/testsuite/admin/test/session/TokensTest.java | Java | apache-2.0 | 2,242 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | kingthorin/zap-extensions | addOns/imagelocationscanner/src/main/java/org/zaproxy/zap/extension/imagelocationscanner/ExtensionImageLocationScanner.java | Java | apache-2.0 | 1,403 |
package term // import "github.com/ory/dockertest/docker/pkg/term"
import (
"io"
)
// EscapeError is special error which returned by a TTY proxy reader's Read()
// method in case its detach escape sequence is read.
type EscapeError struct{}
func (EscapeError) Error() string {
return "read escape sequence"
}
// es... | Mainflux/mainflux-lite | vendor/github.com/ory/dockertest/docker/pkg/term/proxy.go | GO | apache-2.0 | 2,026 |
/*
* 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 ... | nakul02/incubator-systemml | src/test/java/org/apache/sysml/test/integration/mlcontext/MLContextFrameTest.java | Java | apache-2.0 | 26,005 |
/*
* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | anishalex/youlog | oauthComponents/google-oauth-java-client-dev/google-oauth-client-java6/src/main/java/com/google/api/client/extensions/java6/auth/oauth2/AuthorizationCodeInstalledApp.java | Java | apache-2.0 | 5,421 |
# -*- coding: utf-8 -*-
#
# 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
#... | malmiron/incubator-airflow | airflow/contrib/operators/sagemaker_tuning_operator.py | Python | apache-2.0 | 4,191 |
// Copyright 2013 Beego Authors
// Copyright 2014 Unknwon
//
// 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... | ksx123/session | redis/redis.go | GO | apache-2.0 | 5,335 |
/*
* 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... | JSDemos/android-sdk-20 | src/android/support/v7/internal/view/menu/MenuItemWrapperICS.java | Java | apache-2.0 | 13,747 |
package costmanagementapi
// Copyright (c) Microsoft and contributors. 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... | pweil-/origin | vendor/github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi/interfaces.go | GO | apache-2.0 | 2,746 |
// mkerrors.sh -Wall -Werror -static -I/tmp/include
// Code generated by the command above; see README.md. DO NOT EDIT.
// +build ppc64,linux
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
package unix
import "syscall"
const (
AAFS_MAGIC ... | cockroachdb/etcd | vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go | GO | apache-2.0 | 166,962 |
/*
*
* Copyright 2015 gRPC 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 agree... | adelez/grpc | test/core/end2end/fixtures/h2_fakesec.cc | C++ | apache-2.0 | 5,455 |
/**
* 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... | johnnyrich0617/Camel-Tut | chapter8/routingslip/src/test/java/camelinaction/RoutingSlipTest.java | Java | apache-2.0 | 2,525 |
/*
* 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 ... | dalaro/incubator-tinkerpop | gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/util/TraversalHelperTest.java | Java | apache-2.0 | 11,573 |
"""Support for binary sensor using the PiFace Digital I/O module on a RPi."""
import logging
import voluptuous as vol
from homeassistant.components.binary_sensor import (
PLATFORM_SCHEMA, BinarySensorDevice)
from homeassistant.components import rpi_pfio
from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NA... | MartinHjelmare/home-assistant | homeassistant/components/rpi_pfio/binary_sensor.py | Python | apache-2.0 | 2,581 |
/*
* 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.security.rest.action.apikey;
import org.elas... | gingerwizard/elasticsearch | x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/rest/action/apikey/RestCreateApiKeyAction.java | Java | apache-2.0 | 2,255 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/descriptor.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include <google/protobuf/descriptor.pb.h>
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <goog... | npuichigo/ttsflow | third_party/protobuf/src/google/protobuf/descriptor.pb.cc | C++ | apache-2.0 | 644,516 |
/*
* Copyright 2012-2018 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 ap... | bclozel/spring-boot | spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/invoke/convert/ConversionServiceParameterValueMapperTests.java | Java | apache-2.0 | 4,112 |
/*
*
* Copyright 2018 gRPC 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 agree... | ctiller/grpc | src/core/lib/iomgr/internal_errqueue.cc | C++ | apache-2.0 | 1,686 |
package org.apache.hawq.pxf.plugins.hbase;
/*
* 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 L... | lavjain/incubator-hawq | pxf/pxf-hbase/src/main/java/org/apache/hawq/pxf/plugins/hbase/HBaseFilterBuilder.java | Java | apache-2.0 | 13,894 |
/*
* Copyright 2012-2017 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 ap... | vakninr/spring-boot | spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeReactiveHealthIndicatorFactory.java | Java | apache-2.0 | 3,398 |
/******************************************
* *
* dcm4che: A OpenSource DICOM Toolkit *
* *
* Distributable under LGPL license. *
* See terms of license at gnu.org. *
* *
***********... | medicayun/medicayundicom | dcm4jboss-all/tags/DCM4JBOSS_2_4_2/dcm4jboss-hl7/src/java/org/dcm4chex/archive/hl7/HL7Exception.java | Java | apache-2.0 | 1,468 |
/*
* Copyright 2012, Google Inc.
* 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 conditio... | aliosmanyuksel/show-java | app/src/main/java/org/jf/dexlib2/dexbacked/instruction/DexBackedInstruction22c.java | Java | apache-2.0 | 2,854 |
// 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... | tebeka/arrow | csharp/src/Apache.Arrow/Types/Int8Type.cs | C# | apache-2.0 | 1,248 |
//// [crashIntypeCheckInvocationExpression.ts]
var nake;
function doCompile<P0, P1, P2>(fileset: P0, moduleType: P1) {
return undefined;
}
export var compileServer = task<number, number, any>(<P0, P1, P2>() => {
var folder = path.join(),
fileset = nake.fileSetSync<number, number, any>(folder)
retur... | Microsoft/TypeScript | tests/baselines/reference/crashIntypeCheckInvocationExpression.js | JavaScript | apache-2.0 | 858 |
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | cjwagner/test-infra | prow/git/git_test.go | GO | apache-2.0 | 15,553 |
require 'spec_helper'
describe 'GET /api/v1/cookbooks/:cookbook/contingent' do
context 'when the cookbook exists' do
let(:apt) { create(:cookbook, name: 'apt') }
let(:nginx) { create(:cookbook, name: 'nginx') }
let(:apache) { create(:cookbook, name: 'apache') }
before do
create(:cookbook_depen... | tas50/supermarket | src/supermarket/spec/api/cookbook_contingent_spec.rb | Ruby | apache-2.0 | 1,174 |
/**
* 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 distributed under ... | mdecourci/assertj-core | src/test/java/org/assertj/core/api/objectarray/ObjectArrayAssert_usingElementComparatorIgnoringFields_Test.java | Java | apache-2.0 | 1,959 |
/*
* Copyright (C) 2010 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... | efortuna/AndroidSDKClone | sdk/samples/android-20/legacy/XmlAdapters/src/com/example/android/xmladapters/UrlIntentListener.java | Java | apache-2.0 | 1,446 |
/*
* 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/main/java/org/elasticsearch/search/aggregations/pipeline/cumulativesum/CumulativeSumPipelineAggregationBuilder.java | Java | apache-2.0 | 8,250 |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | putcn/Paddle | paddle/math/PoolAllocator.cpp | C++ | apache-2.0 | 2,187 |
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | shouhong/kubernetes | pkg/registry/rbac/rest/storage_rbac.go | GO | apache-2.0 | 8,272 |
/*
* 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.autoscaling.storage;
import org.e... | GlenRSmith/elasticsearch | x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageDeciderService.java | Java | apache-2.0 | 34,193 |
// ball_defaultattributecontainer.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | idispatch/bde | groups/bal/ball/ball_defaultattributecontainer.t.cpp | C++ | apache-2.0 | 59,696 |
/**
* Copyright 2010-2015 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
*
* Unle... | Derzhevitskiy/spring-petclinic-master | src/main/java/org/mybatis/jpetstore/domain/CartItem.java | Java | apache-2.0 | 1,767 |
/*
* 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 ... | objectiser/camel | components/camel-aws-swf/src/test/java/org/apache/camel/component/aws/swf/integration/CamelSWFEndToEndTest.java | Java | apache-2.0 | 3,585 |
/*
* 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 ... | ilantukh/ignite | modules/web-console/frontend/app/modules/dialog/dialog.module.js | JavaScript | apache-2.0 | 1,283 |
/*
* Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... | malakasilva/carbon-identity | components/identity/org.wso2.carbon.identity.application.authenticator.facebook/src/main/java/org/wso2/carbon/identity/application/authenticator/facebook/FacebookAuthenticatorConstants.java | Java | apache-2.0 | 1,678 |
/* global CodeMirror */
/* global define */
(function(mod) {
'use strict';
if (typeof exports === 'object' && typeof module === 'object') // CommonJS
mod(require('../../lib/codemirror'));
else if (typeof define === 'function' && define.amd) // AMD
define(['../../lib/codemirror'], mod);
... | hisamith/app-cloud | modules/jaggeryapps/appmgt/src/site/themes/default/js/CodeMirror-5.7.0/addon/search/searchonly.js | JavaScript | apache-2.0 | 9,107 |
/*
* 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 ... | ydai1124/gobblin-1 | gobblin-api/src/main/java/gobblin/dataset/IterableDatasetFinder.java | Java | apache-2.0 | 1,376 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net.Sockets;
using System.Threading.Tasks;
using System.Threading;
using KafkaNet.Common;
using KafkaNet.Model;
using KafkaNet.Protocol;
using KafkaNet.Statistics;
namespace KafkaNet
{
/// <summary>
/// T... | bridgewell/kafka-net | src/kafka-net/KafkaTcpSocket.cs | C# | apache-2.0 | 17,955 |
/*
* Copyright 1999,2004 The Apache Software Foundation.
*
* 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... | jboss-integration/kie-uberfire-extensions | i18n-taglib/src/main/java/org/apache/taglibs/i18n/IfndefTag.java | Java | apache-2.0 | 2,046 |
/*
* 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... | strapdata/elassandra | libs/ssl-config/src/main/java/org/elasticsearch/common/ssl/PemUtils.java | Java | apache-2.0 | 30,153 |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | tsugiproject/tsugi | vendor/google/apiclient-services/src/Google/Service/RecommendationsAI/GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse.php | PHP | apache-2.0 | 998 |
/**
* 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... | apurtell/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclTransformation.java | Java | apache-2.0 | 21,791 |
package com.jorgecastilloprz.pagedheadlistview.pagetransformers;
import android.support.v4.view.ViewPager;
import android.view.View;
/**
* Created by jorge on 10/08/14.
*/
public class DepthPageTransformer implements ViewPager.PageTransformer {
private static final float MIN_SCALE = 0.75f;
public void tran... | 0359xiaodong/PagedHeadListView | library/src/main/java/com/jorgecastilloprz/pagedheadlistview/pagetransformers/DepthPageTransformer.java | Java | apache-2.0 | 1,412 |
/*
* Copyright 2012-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | daedric/buck | src/com/facebook/buck/json/BuildFileParseException.java | Java | apache-2.0 | 1,826 |
package packp
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/format/pktline"
)
const ackLineLen = 44
// ServerResponse object acknowledgement from upload-pack service
type ServerResponse struct {
ACKs []plumbing.Hash
}
// Decode decodes t... | terrorform/pool-resource | vendor/gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/srvresp.go | GO | apache-2.0 | 2,799 |
// Copyright © 2012, Université catholique de Louvain
// 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... | yjaradin/mozart2 | vm/generator/main/interfaces.cc | C++ | bsd-2-clause | 5,779 |
cask :v1 => 'ssx' do
version '06082006-2216'
sha256 '34d904e909191e60e0b84ea43f177871ac4310c91af53e5c4cbff28c5dd29fcb'
url "http://chris.schleifer.net/ssX/builds/ssX-#{version}.dmg"
homepage 'http://chris.schleifer.net/ssX/'
license :unknown # todo: change license and remove this comment; ':unknown' is a ... | gustavoavellar/homebrew-cask | Casks/ssx.rb | Ruby | bsd-2-clause | 371 |
class Stress < Formula
desc "Tool to impose load on and stress test a computer system"
homepage "https://people.seas.harvard.edu/~apw/stress/"
url "https://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz"
mirror "https://mirrors.kernel.org/debian/pool/main/s/stress/stress_1.0.4.orig.tar.gz"
sha256 "05... | adamliter/homebrew-core | Formula/stress.rb | Ruby | bsd-2-clause | 1,374 |
import sys
import os
from doctest import DocTestSuite, ELLIPSIS, NORMALIZE_WHITESPACE
SKIP_DIRS = (
# Skip modules which import and initialize stuff that require QApplication
'Orange/widgets',
'Orange/canvas',
# Skip because we don't want Orange.datasets as a module (yet)
'Orange/datasets/'
)
if ... | cheral/orange3 | Orange/tests/test_doctest.py | Python | bsd-2-clause | 2,448 |
cask 'icq' do
version '3.0.18725'
sha256 '437ce23444ae3449e53195e10b0c8a7515d8ea5357435335e4d2793c12e1f8b7'
# mra.mail.ru/icq_mac3_update was verified as official when first introduced to the cask
url 'https://mra.mail.ru/icq_mac3_update/icq.dmg'
appcast 'https://mra.mail.ru/icq_mac3_update/icq_update.xml'
... | reelsense/homebrew-cask | Casks/icq.rb | Ruby | bsd-2-clause | 671 |
#!/usr/bin/python2.4
# Copyright (c) 2006-2008 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.
'''Gatherer for administrative template files.
'''
import re
import types
from grit.gather import regexp
from grit import exc... | meego-tablet-ux/meego-app-browser | tools/grit/grit/gather/admin_template.py | Python | bsd-3-clause | 2,488 |
// Copyright 2010 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.
// Export guts for testing.
package runtime
import (
"runtime/internal/atomic"
"runtime/internal/sys"
"unsafe"
)
var Fadd64 = fadd64
var Fsub64 = fsub64
... | deft-code/go | src/runtime/export_test.go | GO | bsd-3-clause | 3,299 |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkSynchronizedTemplatesCutter3D(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | nagyistoce/devide | modules/vtk_basic/vtkSynchronizedTemplatesCutter3D.py | Python | bsd-3-clause | 520 |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | szdavid92/actor-framework | libcaf_core/caf/response_promise.hpp | C++ | bsd-3-clause | 2,848 |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.h"
#include <gtk/gtk.h>
#include "base/bind.h"
#include "base/message_loop.h"
#inclu... | espadrine/opera | chromium/src/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc | C++ | bsd-3-clause | 2,625 |
// Copyright (c) 2015, Outercurve Foundation.
// 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
// ... | simonegli8/Websitepanel | WebsitePanel/Sources/WebsitePanel.Providers.FTP.IIs70/Configuration/PermissionsFlags.cs | C# | bsd-3-clause | 1,852 |
<?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;
final class VariousDocblockDefinedD... | Firehed/phpunit | tests/_files/VariousDocblockDefinedDataProvider.php | PHP | bsd-3-clause | 1,404 |
/*
Copyright (C) 2008-2016 The Communi Project
You may use this file under the terms of BSD license as follows:
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 ab... | vitalyster/libcommuni-gbp | src/core/ircconnection.cpp | C++ | bsd-3-clause | 52,766 |
// Copyright 2021 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/policy/client_data_delegate_android.h"
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "b... | ric2b/Vivaldi-browser | chromium/chrome/browser/policy/client_data_delegate_android_unittest.cc | C++ | bsd-3-clause | 1,720 |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | youtube/cobalt | third_party/llvm-project/libcxx/test/libcxx/utilities/utility/__is_inplace_type.pass.cpp | C++ | bsd-3-clause | 1,436 |
import { TSESTree } from '@typescript-eslint/types';
import { DefinitionType } from './DefinitionType';
import { DefinitionBase } from './DefinitionBase';
declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, TSESTree.VariableDeclarator, TSESTree.VariableDeclaration, TSESTree.Identifier> {
... | ChromeDevTools/devtools-frontend | node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts | TypeScript | bsd-3-clause | 594 |
/*-----------------------------------------------------------------------------
Orderable plugin
-----------------------------------------------------------------------------*/
jQuery.fn.symphonyOrderable = function(custom_settings) {
var objects = this;
var settings = {
items: 'li',
handles: '*',
... | bauhouse/sym-intranet | symphony/assets/symphony.orderable.js | JavaScript | mit | 3,588 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
using System.Text;
namespace System.IO
{
// Provides methods for processing file syst... | parjong/coreclr | src/mscorlib/shared/System/IO/Path.cs | C# | mit | 24,186 |
// wrapped by build app
define("d3/src/scale/ordinal", ["dojo","dijit","dojox"], function(dojo,dijit,dojox){
import "../arrays/map";
import "../arrays/range";
import "scale";
d3.scale.ordinal = function() {
return d3_scale_ordinal([], {t: "range", a: [[]]});
};
function d3_scale_ordinal(domain, ranger) {
var inde... | hyoo/p3_web | public/js/release/d3/src/scale/ordinal.js | JavaScript | mit | 3,374 |
# Status: ported, except for --out-xml
# Base revision: 64488
#
# Copyright 2005 Dave Abrahams
# Copyright 2002, 2003, 2004, 2005, 2010 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
# This module implements r... | m039/Void | third-party/void-boost/tools/build/src/tools/testing.py | Python | mit | 15,330 |
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
describe 'is_string function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
describe 'success' do
it 'is_strings arrays' do
pp = <<-EOS
$a = ['aaa.com','bbb','ccc']
$b = false
$o = is_string($a)
... | wikimedia/mediawiki-vagrant | puppet/modules/stdlib/spec/acceptance/is_string_spec.rb | Ruby | mit | 2,778 |
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Mapper;
use Sonata\AdminBundle\Adm... | smatthias/tausendkind | vendor/sonata-project/admin-bundle/Mapper/BaseMapper.php | PHP | mit | 1,668 |
var ITEM_TPL_CONTENT_ANCHOR =
'<a class="item-content" ng-href="{{$href()}}" target="{{$target()}}"></a>';
var ITEM_TPL_CONTENT =
'<div class="item-content"></div>';
/**
* @ngdoc directive
* @name ionItem
* @parent ionic.directive:ionList
* @module ionic
* @restrict E
* Creates a list-item that can easily be swiped... | frangucc/gamify | www/sandbox/pals/app/bower_components/ionic/js/angular/directive/item.js | JavaScript | mit | 1,904 |
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\Api;
/**
* Filters applica... | api-platform/core | src/Core/Api/FilterInterface.php | PHP | mit | 1,670 |
require 'spec_helper'
describe 'ossec' do
context 'with defaults for all parameters' do
it { should contain_class('ossec') }
end
end
| ndnurun/nextdeploy | vagrant/modules/ossec/spec/classes/init_spec.rb | Ruby | mit | 142 |
/*
* Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* ... | whbruce/upm | src/max5487/max5487.hpp | C++ | mit | 3,393 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\ThemeBundle\Context;
use Sylius\Bundle\ThemeBundle\... | rainlike/justshop | vendor/sylius/sylius/src/Sylius/Bundle/ThemeBundle/Context/ThemeContextInterface.php | PHP | mit | 598 |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class GoLightBulb extends React.Component<IconBaseProps, any> { }
| smrq/DefinitelyTyped | types/react-icons/go/light-bulb.d.ts | TypeScript | mit | 162 |
import glCore from 'pixi-gl-core';
import createIndicesForQuads from '../../core/utils/createIndicesForQuads';
/**
* @author Mat Groves
*
* Big thanks to the very clever Matt DesLauriers <mattdesl> https://github.com/mattdesl/
* for creating the original pixi version!
* Also a thanks to https://github.com/bcheval... | jpweeks/pixi.js | src/particles/webgl/ParticleBuffer.js | JavaScript | mit | 6,828 |
//------------------------------------------------------------------------------
// <copyright file="ICodeCompiler.cs" company="Microsoft">
//
// <OWNER>petes</OWNER>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//----... | esdrubal/referencesource | System/compmod/system/codedom/compiler/ICodeCompiler.cs | C# | mit | 3,460 |
"use strict";
/*jshint -W079*/
var chai = require("chai"),
expect = chai.expect,
ncp = require('ncp').ncp,
grunt = require("grunt"),
JsBeautifierTask = require("../lib/jsbeautifier"),
createMockTask = require("./mockTask");
chai.use(require('chai-fs'));
/*jshint -W030*/
describe("JsBeautifier: Conf... | vkadam/grunt-jsbeautifier | test/configFile_spec.js | JavaScript | mit | 3,091 |
require File.expand_path('../../../../spec_helper', __FILE__)
require 'net/ftp'
require File.expand_path('../fixtures/server', __FILE__)
describe "Net::FTP#mkdir" do
before :each do
@server = NetFTPSpecs::DummyFTP.new
@server.serve_once
@ftp = Net::FTP.new
@ftp.connect("localhost", 9921)
end
af... | askl56/rubyspec | library/net/ftp/mkdir_spec.rb | Ruby | mit | 2,358 |
$CELLULOID_TEST = true
require "celluloid"
| olleolleolle/celluloid | lib/celluloid/test.rb | Ruby | mit | 44 |
<?php
namespace Kunstmaan\SeoBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class that loads and mana... | usetreno/KunstmaanBundlesCMS | src/Kunstmaan/SeoBundle/DependencyInjection/KunstmaanSeoExtension.php | PHP | mit | 914 |
using System.Web;
using System.Web.Optimization;
namespace AvaTaxConnector
{
public class BundleConfig
{
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new S... | JeremyCraigMartinez/developer-dot | public/code/blog/avatax-connector-app/AvaTaxConnector/App_Start/BundleConfig.cs | C# | mit | 2,136 |
'use strict';
var Command = require('../models/command');
var Watcher = require('../models/watcher');
var Builder = require('../models/builder');
var SilentError = require('silent-error');
var path = require('path');
var win = require('../utilities/windows-admin');
var existsSync = require(... | r0zar/ember-rails-stocks | stocks/node_modules/ember-cli/lib/commands/test.js | JavaScript | mit | 6,146 |
//
// DiscVolume.cs
//
// Author:
// Timo Dörr <timo@latecrew.de>
//
// Copyright 2012 Timo Dörr
//
// 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 wi... | GNOME/banshee | src/Backends/Banshee.Osx/Banshee.Hardware.Osx/DiscVolume.cs | C# | mit | 2,171 |
<TS language="hi_IN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>पते या लेबल को संपादित करने के लिए राइट-क्लिक करें</translation>
</message>
<message>
<source>Create a new address</source>
... | StarbuckBG/BTCGPU | src/qt/locale/bitcoin_hi_IN.ts | TypeScript | mit | 15,201 |