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 |
|---|---|---|---|---|---|
/*
* Copyright (C) 2013 salesforce.com, 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 ... | forcedotcom/scrollerjs | src/config.js | JavaScript | apache-2.0 | 6,867 |
/**
* 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/iterable/Iterable_generics_with_varargs_Test.java | Java | apache-2.0 | 1,467 |
/*
* 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 t... | googleapis/google-api-java-client-services | clients/google-api-services-classroom/v1/1.29.2/com/google/api/services/classroom/model/DriveFile.java | Java | apache-2.0 | 3,882 |
/**
* Copyright 2015 The AMP HTML 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 require... | lannka/amphtml | extensions/amp-brightcove/0.1/test/test-amp-brightcove.js | JavaScript | apache-2.0 | 10,948 |
# -*- coding: utf-8 -*-
import logging
import itertools
import math
import urllib
import httplib as http
from modularodm import Q
from modularodm.exceptions import NoResultsFound
from flask import request
from framework import utils
from framework import sentry
from framework.auth.core import User
from framework.flas... | zachjanicki/osf.io | website/views.py | Python | apache-2.0 | 7,843 |
// Copyright 2018 Google LLC 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 l... | knative/test-infra | vendor/github.com/google/go-containerregistry/pkg/authn/authn.go | GO | apache-2.0 | 1,409 |
/**
* Copyright (C) 2014 Stratio (http://stratio.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 ap... | Stratio/streaming-cep-engine | engine/src/test/java/com/stratio/decision/unit/engine/validator/MongoNameRegularExpressionValidatorTest.java | Java | apache-2.0 | 1,609 |
// Copyright (C) 2017 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... | Qining/gapid | cmd/gapit/stresstest.go | GO | apache-2.0 | 2,609 |
/*
* Copyright 2005 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... | pperboires/PocDrools | drools-core/src/main/java/org/drools/conflict/AbstractConflictResolver.java | Java | apache-2.0 | 1,213 |
/* Copyright 2007-2016 QReal Research Group
*
* 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... | danilaml/qreal | qrxc/graphicType.cpp | C++ | apache-2.0 | 17,325 |
package org.zstack.sdk.iam2.entity;
public enum StateEvent {
enable,
disable,
}
| AlanJager/zstack | sdk/src/main/java/org/zstack/sdk/iam2/entity/StateEvent.java | Java | apache-2.0 | 83 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | kohsuke/jboss-marshalling | river/src/test/java/org/jboss/marshalling/river/ReadWriteTest.java | Java | apache-2.0 | 2,135 |
package manager
import (
ds "github.com/Comcast/traffic_control/traffic_monitor/experimental/traffic_monitor/deliveryservice"
"sync"
)
type LastStatsThreadsafe struct {
stats *ds.LastStats
m *sync.RWMutex
}
func NewLastStatsThreadsafe() LastStatsThreadsafe {
s := ds.NewLastStats()
return LastStatsThreadsaf... | dneuman64/traffic_control | traffic_monitor/experimental/traffic_monitor/manager/lastkbpsstats.go | GO | apache-2.0 | 756 |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | jhrcek/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-backend/src/main/java/org/kie/workbench/common/stunner/bpmn/backend/legacy/profile/impl/DefaultProfileImpl.java | Java | apache-2.0 | 13,298 |
/*
* Copyright 2010 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... | Rikkola/guvnor | droolsjbpm-ide-common/src/main/java/org/drools/ide/common/client/factconstraints/dataprovider/FieldDataProvider.java | Java | apache-2.0 | 1,045 |
/*
* 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 ... | mtaal/olingo-odata4-jpa | lib/client-core/src/main/java/org/apache/olingo/client/core/http/HttpMerge.java | Java | apache-2.0 | 1,741 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | rectang/lucy-clownfish | runtime/python/src/clownfish/__init__.py | Python | apache-2.0 | 846 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
#... | Brocade-OpenSource/OpenStack-DNRM-Nova | nova/service.py | Python | apache-2.0 | 15,048 |
/*
* 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.core;
import org.apache.logging.l... | robin13/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/DataTier.java | Java | apache-2.0 | 6,329 |
from flask import Blueprint, render_template, request, url_for
from CTFd.models import Users
from CTFd.utils import config
from CTFd.utils.decorators import authed_only
from CTFd.utils.decorators.visibility import (
check_account_visibility,
check_score_visibility,
)
from CTFd.utils.helpers import get_errors, ... | LosFuzzys/CTFd | CTFd/users.py | Python | apache-2.0 | 2,090 |
<?php
/*
private variable and functions are prefixed with underscore('_')
*/
require_once('TranslationContainer.php');
class TMXParser {
private $_parser = null;
private $_xmlFile = null;
private $_currentTuid = null;
private $_boolSeg = false;
private $_currentLanguage = null;
private $_curre... | mrinsss/Full-Repo | tripezi/system/application/libraries/multilanguage/TMXParser.php | PHP | apache-2.0 | 4,332 |
/*
* 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 ... | Fabryprog/camel | docs/components/modules/ROOT/examples/core/camel-core/src/test/java/org/apache/camel/processor/interceptor/AdviceWithMockMultipleEndpointsWithSkipTest.java | Java | apache-2.0 | 3,016 |
#
# Cookbook:: hadoop
# Recipe:: pig
#
# Copyright © 2013-2016 Cask Data, 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 req... | caskdata/hadoop_cookbook | recipes/pig.rb | Ruby | apache-2.0 | 714 |
<?php
// locale: great britain english (en-gb)
// author: Chris Gedrim https://github.com/chrisgedrim
return array(
"months" => explode('_', 'January_February_March_April_May_June_July_August_September_October_November_December'),
"monthsNominative" => explode('_', 'January_February_March_April_... | novaramedia/novaramedia-com | vendor/fightbulc/moment/src/Locales/en_GB.php | PHP | apache-2.0 | 2,478 |
/*
* Copyright © 2014-2015 Cask Data, 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 agr... | chtyim/cdap | cdap-api/src/main/java/co/cask/cdap/api/dataset/lib/TimePartitionedFileSet.java | Java | apache-2.0 | 4,051 |
/*******************************************************************************
* Copyright 2015-2019 Toaker NewBeyondViewPager
*
* 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
*
* htt... | RyanTech/NewBeyondViewPager | library/src/main/java/net/soulwolf/newbeyondviewpager/NewBeyondViewPager.java | Java | apache-2.0 | 2,071 |
<?php
error_reporting(E_ALL ^ E_NOTICE);
include_once("Include_GetString.php") ;
$Theme="Office2007";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head ID="Head1">
<title><?php echo GetString("MoreColors") ; ?></title>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)" />
<meta http-e... | srinivasans/educloud | others/editor/Dialogs/colorpicker.php | PHP | apache-2.0 | 3,928 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3... | yaolei/Samoyed | node_modules/material-ui/Card/CardExpandable.js | JavaScript | apache-2.0 | 3,257 |
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2004, 2005, 2006, 2007, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version ... | payten/nyu-sakai-10.4 | samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/jsf/renderer/DatePickerRenderer.java | Java | apache-2.0 | 6,076 |
import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter';
import {PromiseWrapper} from 'angular2/src/facade/async';
import {List, ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';
import {DateWrapper, Type, print} from 'angular2/src/facade/lang';
import {
Parser,
Lexer,
DynamicChange... | tkarling/angular | modules/benchmarks/src/compiler/compiler_benchmark.ts | TypeScript | apache-2.0 | 7,166 |
/**
* Copyright 2014 Mozilla 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 applicable law or agr... | yurydelendik/shumway | src/flash/display/IBitmapDrawable.ts | TypeScript | apache-2.0 | 891 |
/**
* 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... | adeelmahmood/lens | lens-cube/src/main/java/org/apache/lens/cube/metadata/Storage.java | Java | apache-2.0 | 20,153 |
module MiqPolicyController::PolicyProfiles
extend ActiveSupport::Concern
def profile_edit
case params[:button]
when "cancel"
@edit = nil
@profile = MiqPolicySet.find_by_id(session[:edit][:profile_id]) if session[:edit] && session[:edit][:profile_id]
if !@profile || (@profile && @profile.i... | maas-ufcg/manageiq | app/controllers/miq_policy_controller/policy_profiles.rb | Ruby | apache-2.0 | 7,000 |
/*
* 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 ... | apache/jmeter | src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java | Java | apache-2.0 | 18,933 |
/***** BEGIN LICENSE BLOCK *****
* Copyright (c) 2006-2007, 2010 Nick Sieger <nick@nicksieger.com>
* Copyright (c) 2006-2007 Ola Bini <ola.bini@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to d... | ThoughtWorksStudios/mingle_git_plugin | tools/gems/gems/activerecord-jdbc-adapter-1.1.1/src/java/arjdbc/derby/DerbyModule.java | Java | apache-2.0 | 15,045 |
# Copyright (c) 2020 Vestas Wind Systems A/S
#
# SPDX-License-Identifier: Apache-2.0
'''Runner for performing program download over CANopen (DSP 302-3).'''
import argparse
import os
import time
from runners.core import ZephyrBinaryRunner, RunnerCaps
try:
import canopen
from progress.bar import Bar
MISSI... | zephyrproject-rtos/zephyr | scripts/west_commands/runners/canopen_program.py | Python | apache-2.0 | 13,074 |
/*
* 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 ... | hbeatty/incubator-trafficcontrol | traffic_portal/app/src/common/api/TypeService.js | JavaScript | apache-2.0 | 3,066 |
package util
import (
"fmt"
)
/*
BytesRefHash is a special purpose hash map like data structure
optimized for BytesRef instances. BytesRefHash maintains mappings of
byte arrays to ids (map[[]byte]int) sorting the hashed bytes
efficiently in continuous storage. The mapping to the id is
encapsulated inside BytesRefHas... | balzaczyy/golucene | core/util/bytesRefHash.go | GO | apache-2.0 | 10,103 |
/**
* 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... | kfirlevari/zookeeper | src/java/main/org/apache/zookeeper/server/WatchManager.java | Java | apache-2.0 | 8,715 |
package org.apache.lucene.queryparser.flexible.standard.processors;
/*
* 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 Y... | yida-lxw/solr-5.3.1 | lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/RemoveEmptyNonLeafQueryNodeProcessor.java | Java | apache-2.0 | 3,319 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | goodwinnk/intellij-community | platform/xdebugger-api/src/com/intellij/xdebugger/breakpoints/ui/XBreakpointGroup.java | Java | apache-2.0 | 1,450 |
/*
Copyright 2016 Goldman Sachs.
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... | goldmansachs/reladomo | reladomo/src/main/java/com/gs/fw/common/mithra/portal/UpdateDataChooser.java | Java | apache-2.0 | 885 |
// ----------------------------------------------------------------------------------
//
// 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... | devigned/azure-powershell | src/ResourceManager/LogicApp/Commands.LogicApp/Cmdlets/IntegrationAccount/UpdateAzureIntegrationAccountMapCommand.cs | C# | apache-2.0 | 6,849 |
/**
*
* 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"); ... | baishuo/hbase-1.0.0-cdh5.4.7_baishuo | hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java | Java | apache-2.0 | 14,404 |
<?php
session_start();
include_once("../functions.inc.php");
$CONF['title_header']=lang('NEW_title')." - ".$CONF['name_of_firm'];
if (validate_user($_SESSION['helpdesk_user_id'], $_SESSION['code'])) {
if ($_SESSION['helpdesk_user_id']) {
include("head.inc.php");
include("navbar.inc.php");
//check_unlinked_... | vik0803/hd.rustem | inc/new.php | PHP | apache-2.0 | 15,273 |
/*
* 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 ... | fschueler/incubator-systemml | src/main/java/org/apache/sysml/runtime/controlprogram/parfor/opt/OptNodeStatistics.java | Java | apache-2.0 | 2,875 |
import Check from "./Check.js";
import defaultValue from "./defaultValue.js";
import defined from "./defined.js";
import DeveloperError from "./DeveloperError.js";
import CesiumMath from "./Math.js";
/**
* Creates a curve parameterized and evaluated by time. This type describes an interface
* and is not intended to ... | progsung/cesium | Source/Core/Spline.js | JavaScript | apache-2.0 | 4,935 |
/*******************************************************************************
* Copyright (c) 2010 Haifeng Li
*
* 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... | dublinio/smile | Smile/src/main/java/smile/feature/Nominal2Binary.java | Java | apache-2.0 | 3,646 |
define(function(require, exports, module) {
var Notify = require('common/bootstrap-notify');
exports.run = function() {
var $table = $('#teacher-table');
$table.on('click', '.promote-user', function(){
$.post($(this).data('url'),function(response) {
window.location.reload();
... | 18826252059/im | web/bundles/topxiaadmin/js/controller/user/teacher-list.js | JavaScript | apache-2.0 | 539 |
/* Copyright 2019 The TensorFlow 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 a... | karllessard/tensorflow | tensorflow/compiler/mlir/lite/utils/lstm_utils.cc | C++ | apache-2.0 | 34,132 |
// Copyright 2014 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/runtime/runtime-utils.h"
#include "src/arguments.h"
#include "src/bootstrapper.h"
#include "src/conversions.h"
#include "src/debug/debug.... | weolar/miniblink49 | v8_4_8/src/runtime/runtime-internal.cc | C++ | apache-2.0 | 13,940 |
/*
* Copyright (c) 2008-2018, 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 ... | tufangorel/hazelcast | hazelcast/src/main/java/com/hazelcast/client/impl/protocol/task/cache/CacheClearMessageTask.java | Java | apache-2.0 | 3,397 |
// Copyright 2012 Google 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 by applicable... | ericmckean/collide | java/com/google/collide/client/workspace/FileTreeModel.java | Java | apache-2.0 | 23,794 |
/*
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, ... | kewu1992/test-infra | prow/plugins/trigger/trigger.go | GO | apache-2.0 | 2,751 |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.wso2.developerstudio.eclipse.gmf.esb;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Local Entry</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.wso2.develop... | chanakaudaya/developer-studio | esb/org.wso2.developerstudio.eclipse.gmf.esb/src/org/wso2/developerstudio/eclipse/gmf/esb/LocalEntry.java | Java | apache-2.0 | 5,960 |
package md5b60ffeb829f638581ab2bb9b1a7f4f3f;
public class ButtonRenderer
extends md5b60ffeb829f638581ab2bb9b1a7f4f3f.ViewRenderer_2
implements
mono.android.IGCUserPeer,
android.view.View.OnAttachStateChangeListener
{
static final String __md_methods;
static {
__md_methods =
"n_onViewAttachedToWindow:(La... | MobileRez/XFXamlClass | Lab Materials/Part 1/Completed/MeasurementConverter/MeasurementConverter.Droid/obj/Debug/android/src/md5b60ffeb829f638581ab2bb9b1a7f4f3f/ButtonRenderer.java | Java | apache-2.0 | 3,388 |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
* Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | mhurne/aws-sdk-java | aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/CacheBehaviors.java | Java | apache-2.0 | 6,768 |
/*
* 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... | ern/elasticsearch | client/rest-high-level/src/main/java/org/elasticsearch/client/security/GetUserPrivilegesResponse.java | Java | apache-2.0 | 5,778 |
# Copyright 2012 Nebula, 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 agree... | yangleo/cloud-github | openstack_dashboard/test/test_data/cinder_data.py | Python | apache-2.0 | 16,279 |
/**
* 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... | PHILO-HE/SSM | smart-hadoop-support/smart-hadoop/src/main/java/org/smartdata/hdfs/action/AllDiskFileAction.java | Java | apache-2.0 | 1,192 |
/*
* Copyright (c) 2008-2014 MongoDB, 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 a... | kay-kim/mongo-java-driver | driver-core/src/main/com/mongodb/connection/SocketStreamHelper.java | Java | apache-2.0 | 2,178 |
using System.ComponentModel;
using GraphX.Controls.Models;
#if WPF
using System.Windows;
using DefaultEventArgs = System.EventArgs;
using System.Windows.Controls;
#elif METRO
using Windows.Foundation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
using DefaultEventArgs = System.Object;
#endif
using GraphX.PCL.C... | edgardozoppi/GraphX | GraphX.Controls/Controls/VertexLabels/AttachableVertexLabelControl.cs | C# | apache-2.0 | 5,630 |
// Copyright 2015 The Project Buendia 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... | llvasconcellos/client | app/src/main/java/org/projectbuendia/client/json/JsonConceptResponse.java | Java | apache-2.0 | 762 |
// 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/protocol/authentication_method.h"
#include "base/base64.h"
#include "base/logging.h"
#include "crypto/hmac.h"
#include "remoting/p... | plxaye/chromium | src/remoting/protocol/authentication_method.cc | C++ | apache-2.0 | 3,345 |
# Copyright 2014, Doug Wiegley, A10 Networks.
#
# 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 appli... | dougwig/acos-client | acos_client/v21/slb/template/persistence.py | Python | apache-2.0 | 2,099 |
/*
Copyright 2014 The Kubernetes 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 ag... | GertiPoppel/kubernetes | pkg/client/unversioned/testclient/fake_resource_quotas.go | GO | apache-2.0 | 2,914 |
/*
* Copyright 2010 The Apache Software Foundation
*
* 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 ... | indi60/hbase-pmc | target/hbase-0.94.1/hbase-0.94.1/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java | Java | apache-2.0 | 7,362 |
// Copyright 2015 PingCAP, 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... | tiancaiamao/tidb | util/codec/bytes.go | GO | apache-2.0 | 5,743 |
// <copyright file="TangoPointCloud.cs" company="Google">
//
// Copyright 2016 Google 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... | kyr7/tango-examples-unity | UnityExamples/Assets/TangoPrefabs/Scripts/TangoPointCloud.cs | C# | apache-2.0 | 18,770 |
#!/usr/bin/env ruby
# Encoding: utf-8
#
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
#
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
#
# License:: Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | claimsmall/google-api-ads-ruby | adwords_api/examples/v201506/targeting/get_targetable_languages_and_carriers.rb | Ruby | apache-2.0 | 3,071 |
/*
* Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | XidongHuang/aws-sdk-for-java | src/main/java/com/amazonaws/services/elasticmapreduce/model/ActionOnFailure.java | Java | apache-2.0 | 1,818 |
'use strict';
/* // [START classdefinition] */
export default class exampleClass {
/* // [END classdefinition] */
constructor () {
super();
console.log('Example Constructor');
}
exampleFunction () {
console.log('Example Function');
}
}
| beaufortfrancois/WebFundamentals | src/content/en/resources/jekyll/_code/example.js | JavaScript | apache-2.0 | 261 |
/*
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, ... | ravilr/kubernetes | pkg/kubelet/volumemanager/cache/actual_state_of_world.go | GO | apache-2.0 | 36,672 |
/*
* 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 ... | smgoller/geode | geode-core/src/main/java/org/apache/geode/internal/cache/control/ResourceMonitor.java | Java | apache-2.0 | 1,735 |
// Generated by xsd compiler for android/java
// DO NOT CHANGE!
package ebay.apis.eblbasecomponents;
import java.io.Serializable;
import com.leansoft.nano.annotation.*;
import java.util.List;
import java.util.Date;
/**
*
* Returns the estimated fees for the listing that is being verified for a re-list.
*
*/
@Ro... | bulldog2011/nano-rest | sample/HelloEBayTrading/src/ebay/apis/eblbasecomponents/VerifyRelistItemResponseType.java | Java | apache-2.0 | 4,812 |
// Copyright (C) 2013 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 applicable ... | bootstraponline-archive/gerrit-mirror | gerrit-server/src/main/java/com/google/gerrit/server/access/AccessCollection.java | Java | apache-2.0 | 1,789 |
package com.hubspot.singularity.s3.base.config;
import static com.hubspot.mesos.JavaUtils.obfuscateValue;
import java.util.Objects;
import org.jets3t.service.security.AWSCredentials;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson... | calebTomlinson/Singularity | SingularityS3Base/src/main/java/com/hubspot/singularity/s3/base/config/SingularityS3Credentials.java | Java | apache-2.0 | 1,701 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//-----------------------------------------------------------------------------
//
// Description:
// The package properties are a subset of the standard OLE property ... | badmishkallc/PoshOffice | src/System.IO.Packaging/PartBasedPackageProperties.cs | C# | artistic-2.0 | 40,857 |
require "language/go"
class Cosi < Formula
desc "Implementation of scalable collective signing"
homepage "https://github.com/dedis/cosi"
url "https://github.com/dedis/cosi/archive/0.8.6.tar.gz"
sha256 "007e4c4def13fcecf7301d86f177f098c583151c8a3d940ccb4c65a84413a9eb"
license "AGPL-3.0"
bottle do
cella... | jabenninghoff/homebrew-core | Formula/cosi.rb | Ruby | bsd-2-clause | 3,409 |
cask 'boom' do
version '1.6.9,1575451705'
sha256 '444b5513c92eb0975494509908786a31f087a0af0e58fa5f312a156318be22f8'
# devmate.com/com.globaldelight.Boom2/ was verified as official when first introduced to the cask
url "https://dl.devmate.com/com.globaldelight.Boom2/#{version.before_comma}/#{version.after_comma... | sscotth/homebrew-cask | Casks/boom.rb | Ruby | bsd-2-clause | 1,400 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 12.10.3
description: Invocation of `Symbol.toPrimitive` method during coercion
info: |
[...]
7. Return the result of performing Abstract Equality Comparison rval... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/equals/coerce-symbol-to-prim-invocation.js | JavaScript | bsd-2-clause | 1,426 |
cask 'jetbrains-toolbox' do
version '1.0.1569'
sha256 '5e47e404f7b9aa6e5d500eceb59801a9c1dc4da104e29fe1e392956188369b71'
url "https://download.jetbrains.com/toolbox/jetbrains-toolbox-#{version}.dmg"
name 'JetBrains Toolbox'
homepage 'https://www.jetbrains.com/'
license :gratis
app 'JetBrains Toolbox.app... | pacav69/homebrew-cask | Casks/jetbrains-toolbox.rb | Ruby | bsd-2-clause | 326 |
/*
* 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 applica... | Pushjet/Pushjet-Android | gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/wrapper/org/gradle/wrapper/Install.java | Java | bsd-2-clause | 7,302 |
cask 'rubymine' do
version '2018.1.4,181.5281.41'
sha256 'e89880cfed154e01545063f830e444f0a9ae3509b177f254a92032544cffe24a'
url "https://download.jetbrains.com/ruby/RubyMine-#{version.before_comma}.dmg"
appcast 'https://data.services.jetbrains.com/products/releases?code=RM&latest=true&type=release'
name 'Rub... | goxberry/homebrew-cask | Casks/rubymine.rb | Ruby | bsd-2-clause | 1,013 |
var loopback = require('loopback'),
boot = require('loopback-boot');
var app = loopback();
boot(app, __dirname);
module.exports = app;
| maschinenbau/freecodecamp | client/loopbackClient.js | JavaScript | bsd-3-clause | 142 |
// 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 "base/allocator/allocator_extension.h"
#include "base/logging.h"
namespace base {
namespace allocator {
bool GetProperty(const char* name,... | leighpauls/k2cro4 | base/allocator/allocator_extension.cc | C++ | bsd-3-clause | 1,997 |
"""
Generating and counting primes.
"""
from __future__ import print_function, division
import random
from bisect import bisect
# Using arrays for sieving instead of lists greatly reduces
# memory consumption
from array import array as _array
from sympy import Function, S
from sympy.core.compatibility import as_int,... | kaushik94/sympy | sympy/ntheory/generate.py | Python | bsd-3-clause | 28,626 |
// 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 "android_webview/browser/net/aw_url_request_job_factory.h"
#include "net/base/net_errors.h"
#include "net/url_request/url_request_error_job.... | nacl-webkit/chrome_deps | android_webview/browser/net/aw_url_request_job_factory.cc | C++ | bsd-3-clause | 3,024 |
package com.tinkerpop.pipes.transform;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.pipes.util.PipeHelper;
import java.util.Arrays;
/**
* BothEdgesPipe emits both the outgoing and incoming edges of a vertex.
*
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class BothEdgesPi... | whshev/pipes | src/main/java/com/tinkerpop/pipes/transform/BothEdgesPipe.java | Java | bsd-3-clause | 855 |
module SalesInvoiceSoapResponses
def sales_invoice_gettax_response(doc_code, line_item, shipment, time = Time.now)
{
transaction_id: "4314427373575624",
result_code: "Success",
doc_id: "56879220",
doc_type: "SalesInvoice",
doc_code: doc_code,
doc_date: time.to_date,
doc_s... | jordan-brough/solidus_avatax | spec/support/sales_invoice_soap_responses.rb | Ruby | bsd-3-clause | 7,800 |
/* @flow */
/* Flow declarations for express requests and responses */
/* eslint-disable no-unused-vars */
declare class Request {
method: String;
body: Object;
query: Object;
}
declare class Response {
status: (code: Number) => Response;
set: (field: String, value: String) => Response;
send: (body: String... | jamiehodge/express-graphql | resources/interfaces/express.js | JavaScript | bsd-3-clause | 333 |
import base64
import logging
import string
import warnings
from datetime import datetime, timedelta
from django.conf import settings
from django.contrib.sessions.exceptions import SuspiciousSession
from django.core import signing
from django.core.exceptions import SuspiciousOperation
from django.utils import timezone
... | wkschwartz/django | django/contrib/sessions/backends/base.py | Python | bsd-3-clause | 13,900 |
# -*- coding: utf-8 -*-
import os
CODE_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
def get_permdir():
return os.path.join(CODE_DIR, 'permdir')
def get_repo_root():
return get_permdir()
def get_tmpdir():
return os.path.join(CODE_DIR, 'tmpdir')
def init_permdir():
path = ge... | douban/code | vilya/libs/permdir.py | Python | bsd-3-clause | 407 |
from social_core.backends.upwork import UpworkOAuth
| cjltsod/python-social-auth | social/backends/upwork.py | Python | bsd-3-clause | 52 |
"""
This module collects helper functions and classes that "span" multiple levels
of MVC. In other words, these functions/classes introduce controlled coupling
for convenience's sake.
"""
import warnings
from django.template import loader, RequestContext
from django.template.context import _current_app_undefined
from... | doismellburning/django | django/shortcuts.py | Python | bsd-3-clause | 7,865 |
from settings import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'denorm',
'HOST': 'localhost',
'USER': 'denorm',
'PASSWORD': 'denorm1',
}
}
| mjtamlyn/django-denorm | test_project/settings_mysql.py | Python | bsd-3-clause | 221 |
// transform/fmllr-raw.cc
// Copyright 2013 Johns Hopkins University (author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple 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 c... | hoangt/djinn | tonic-suite/asr/src/transform/fmllr-raw.cc | C++ | bsd-3-clause | 21,344 |
// Copyright (C) 2015 Intel Corporation All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#if ENABLE(WEBCL)
#include "modules/webcl/WebCLContext.h"
#include "modules/webcl/WebCLObject.h"
namespace blink {
WebCLObject::~We... | XiaosongWei/blink-crosswalk | Source/modules/webcl/WebCLObject.cpp | C++ | bsd-3-clause | 970 |
#!/usr/bin/env python
import argparse
import time
from pytx import ThreatIndicator
from pytx.vocabulary import ThreatExchange as te
from pytx.vocabulary import ThreatType as tt
from pytx.vocabulary import Types as t
def get_results(options):
'''
Builds a query string based on the specified options and runs ... | arirubinstein/ThreatExchange | scripts/get_compromised_credentials.py | Python | bsd-3-clause | 2,285 |
// Copyright Peter Dimov 2001-2002
// Copyright Aleksey Gurtovoy 2001-2004
//
// 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)
//
// *Preprocessed* version of the main "arg.hpp" header
// -- DO NOT modify by h... | cawka/packaging-ndn-cpp-dev | include/ndnboost/mpl/aux_/preprocessed/bcc_pre590/arg.hpp | C++ | bsd-3-clause | 2,771 |