repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
derekchiang/keystone | keystone/contrib/federation/controllers.py | 11029 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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... | apache-2.0 |
manuelkasiske/openshift-golang-template | example-golang-dep/cmd/server/grunt/clean.js | 115 | module.exports = function (grunt, options) {
'use strict';
return {
build: ['build/*']
};
};
| apache-2.0 |
afs/rdf-delta | rdf-patch/src/main/java/org/seaborne/patch/binary/thrift/RDF_Decimal.java | 15157 | /**
* Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.seaborne.patch.binary.thrift;
@SuppressWarnings("all")
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2021-08-10")
public clas... | apache-2.0 |
pskpretty/routeOptimizerApplication | src/main/java/com/qut/routeOptimizerApplication/service/opta/vehiclerouting/domain/ouput/JsonVehicleRoutingSolution.java | 1620 | package com.qut.routeOptimizerApplication.service.opta.vehiclerouting.domain.ouput;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import com.qut.routeOptimizerApplication.service.opta.vehiclerouting.domain.JsonCustomer;
@XmlRootElement
public class JsonVehicleRoutingSolution {
protect... | apache-2.0 |
zoozooll/MyExercise | meep/MeepStore2/src/com/oregonscientific/meep/store2/DetailFragment.java | 24629 | package com.oregonscientific.meep.store2;
import java.util.ArrayList;
import android.app.DialogFragment;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-cloudtasks/v2beta2/1.31.0/com/google/api/services/cloudtasks/v2beta2/model/Queue.java | 18027 | /*
* 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... | apache-2.0 |
Alachisoft/NCache | Src/NCCache/Caching/AllowedOperationType.cs | 845 | // Copyright (c) 2021 Alachisoft
//
// 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 o... | apache-2.0 |
caicloud/cyclone | web/src/components/workflow/component/add/CreateWorkflow.js | 5267 | import { Steps, Button, Form } from 'antd';
import Graph from './Graph';
import BasicInfo from './BasicInfo';
import styles from '../index.module.less';
import classNames from 'classnames/bind';
import PropTypes from 'prop-types';
import { tranformStage } from '@/lib/util';
import { inject, observer } from 'mobx-react'... | apache-2.0 |
wingsofovnia/reppy | reppy-core/src/main/java/com/github/wingsofovnia/reppy/api/SequenceRepository.java | 514 | package com.github.wingsofovnia.reppy.api;
import java.io.Serializable;
import java.util.Optional;
import java.util.Spliterator;
import java.util.Spliterators;
import java.util.stream.Stream;
public interface SequenceRepository<T, ID extends Serializable> extends Repository<T> {
Optional<T> get(ID index);
St... | apache-2.0 |
akiellor/selenium | javascript/atoms/events.js | 13006 | // Copyright 2010 WebDriver committers
// Copyright 2010 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 req... | apache-2.0 |
craigbr/mon-api | src/test/java/com/hpcloud/mon/integration/NotificationMethodIntegrationTest.java | 4712 | package com.hpcloud.mon.integration;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertNull;
import static org.testng.Assert.fail;
import java.nio.charset.Charset;
import javax.ws.rs.core.MediaType;
import org.skife.jdbi.v2.DBI;
import... | apache-2.0 |
road-framework/ROADDesigner | au.edu.swin.ict.road.designer.diagram/src/au/edu/swin/ict/road/designer/smc/diagram/edit/commands/ContractRoleAIDCreateCommand.java | 2497 | package au.edu.swin.ict.road.designer.smc.diagram.edit.commands;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.common.core.command.CommandResul... | apache-2.0 |
nla/bamboo | ui/src/bamboo/crawl/Serieses.java | 2067 | package bamboo.crawl;
import java.util.List;
import bamboo.AuthHelper;
import bamboo.core.NotFoundException;
import bamboo.util.Pager;
public class Serieses {
private final SeriesDAO dao;
public Serieses(SeriesDAO seriesDAO) {
this.dao = seriesDAO;
}
public Series getOrNull(long id) {
... | apache-2.0 |
Klamann/maps4cim | maps4cim-gui/src/main/java/de/nx42/maps4cim/gui/window/RenderWindow.java | 8694 | /**
* maps4cim - a real world map generator for CiM 2
* Copyright 2013 Sebastian Straub
*
* 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-... | apache-2.0 |
aspnet/AspNetCore | src/DataProtection/DataProtection/test/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactoryTest.cs | 1798 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel;
using Microsoft.AspNetCore.DataProtection.Cng;
using Microsoft.AspNetCore.DataProtection.KeyMan... | apache-2.0 |
google/model-viewer | packages/model-viewer/src/features/scene-graph/api.ts | 9511 | /* @license
* Copyright 2020 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 a... | apache-2.0 |
haocs/azure-powershell | src/ServiceManagement/Services/Commands.Test/Properties/AssemblyInfo.cs | 1456 | using System.Reflection;
using System.Runtime.InteropServices;
using Xunit;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Microsoft.WindowsAzure.Comma... | apache-2.0 |
letsencrypt/letsencrypt | certbot/compat/misc.py | 5439 | """
This compat module handles various platform specific calls that do not fall into one
particular category.
"""
import os
import select
import sys
import errno
import ctypes
import stat
from certbot import errors
UNPRIVILEGED_SUBCOMMANDS_ALLOWED = [
'certificates', 'enhance', 'revoke', 'delete',
'register',... | apache-2.0 |
pcmoritz/ray-1 | rllib/evaluation/tests/test_trajectory_view_api.py | 18090 | import copy
import gym
from gym.spaces import Box, Discrete
import numpy as np
import unittest
import ray
from ray import tune
from ray.rllib.agents.callbacks import DefaultCallbacks
import ray.rllib.agents.dqn as dqn
import ray.rllib.agents.ppo as ppo
from ray.rllib.examples.env.debug_counter_env import MultiAgentDeb... | apache-2.0 |
jmsalcido/my-flights | project/src/main/java/com/nearsoft/myflights/connectors/util/FSFlightConnectorUtil.java | 3970 | package com.nearsoft.myflights.connectors.util;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.gson.Gson;
import com.nearsoft.myflights.model.Flight;
import com.nearsoft.myflights.model.FlightDetail;
import com.nearsoft.myfli... | apache-2.0 |
asheshsaraf/ecommerce-simple | sm-core/src/main/java/com/salesmanager/core/business/search/service/SearchService.java | 1738 | package com.salesmanager.core.business.search.service;
import com.salesmanager.core.business.catalog.product.model.Product;
import com.salesmanager.core.business.generic.exception.ServiceException;
import com.salesmanager.core.business.merchant.model.MerchantStore;
import com.salesmanager.core.business.search.model.Se... | apache-2.0 |
1986webdeveloper/Code-Examples | Magento/customize-order-status/api/set_deliverydate_api.php | 2508 | <?php
// MAKE A CONNECTION WITH DATABASE
$con = mysqli_connect('HOST','USER_NAME','PASSWORD') or die(mysql_error()); // DB connection
$db = mysqli_select_db($con, 'DATABASE_NAME');
function sign($method, $url, $data, $consumerSecret, $tokenSecret)
{
$url = urlEncodeAsZend($url);
$data = urlEncodeAsZend(http_build_... | apache-2.0 |
vsch/idea-multimarkdown | src/test/java/com/vladsch/md/nav/testUtil/MdEnhLightPlatformCodeInsightFixtureSpecTestCase.java | 1128 | // Copyright (c) 2015-2020 Vladimir Schneider <vladimir.schneider@gmail.com> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.testUtil;
import com.vladsch.flexmark.util.data.DataHolder;
import com.vladsch.md.nav.testUtil.cases.MdEnhCodeIns... | apache-2.0 |
gina-alaska/sandy-utils | lib/processing_framework/compress_helper.rb | 688 | module ProcessingFramework
module CompressHelper
include ShellOutHelper
def uncompress(file)
filename = case File.extname(file)
when '.gz'
shell_out!("gunzip #{file}", live_stream: false)
File.basename(file, '.gz')
when '.bz2'
shell_out!("bunzip2 #{file}", live_strea... | apache-2.0 |
newbiet/zstack | plugin/nfsPrimaryStorage/src/main/java/org/zstack/storage/primary/nfs/NfsPrimaryStorageKVMBackend.java | 53272 | package org.zstack.storage.primary.nfs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.CoreGlobalProperty;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.cloudbus.CloudBusCallBack;
import or... | apache-2.0 |
iamgoodman/AmazonOrdertest | src/com/amazonservices/mws/orders/_2013_09_01/model/ResponseMetadata.java | 3298 | /*******************************************************************************
* Copyright 2009-2015 Amazon Services. 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 Licens... | apache-2.0 |
erikgoe/Nigel | Compiler/Nigel/Linker.cpp | 19926 | #include "stdafx.h"
#include "Linker.h"
namespace nigel
{
Linker::Linker()
{
}
ExecutionResult Linker::onExecute( CodeBase &base )
{
std::map<u32, u16> blockBeginAddresses;//Already created blocks. Id of a block mapped to the address in hexBuffer.
std::map<u32, u16> blockEndAddresses;//Already created blocks.... | apache-2.0 |
potnoddle/CSharpBrew.UsageReports | CSharpBrew.UsageReports/Properties/AssemblyInfo.cs | 736 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CSharpBrew.UsageReports")]
[assembly: AssemblyDescription("A Set of content types reports.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Paul Graham")]
[assembl... | apache-2.0 |
akbooer/openLuup | tests/test_chdev.lua | 7092 |
local t = require "tests.luaunit"
-- openLuup.chdev TESTS
luup = luup or {} -- luup is not really there.
--
-- DEVICE CREATE
--
local chdev = require "openLuup.chdev"
TestChdevDevice = {} -- low-level device tests
function TestChdevDevice:setUp ()
local devType = "urn:schemas-micasaverde-com:device:HomeAu... | apache-2.0 |
out4b/cdif | lib/cdif-proxy-server.js | 1801 | var cp = require('child_process');
var events = require('events');
var util = require('util');
var CdifUtil = require('./cdif-util');
var CdifError = require('./error').CdifError;
function ProxyServer() {
this.server = null;
this.proxyUrl = '';
// For now this is onvif only
this.streamUrl =... | apache-2.0 |
pavel-hp/transfer | src/main/java/com/khokhlov/rest/model/money/MoneyRo.java | 584 | package com.khokhlov.rest.model.money;
import com.khokhlov.rest.model.RestObject;
import java.math.BigDecimal;
/**
* @author Khokhlov Pavel
*/
public class MoneyRo implements RestObject {
private static final long serialVersionUID = 48996516982311687L;
private BigDecimal amount;
private CurrencyRo currency;
... | apache-2.0 |
LeonoraG/s-case-core | eu.scasefp7.eclipse.core.ui/src/eu/scasefp7/eclipse/core/ui/wizards/ScaseProjectNewWizard.java | 2650 | package eu.scasefp7.eclipse.core.ui.wizards;
import java.net.URI;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.core.runtime.QualifiedNa... | apache-2.0 |
klan1/k1.lib | src/_common/classes.php | 1177 | <?php
namespace k1lib;
class K1MAGIC {
/**
*
* @var string
*/
static public $value = "98148ef8279164d12b65ec8c9ba76c7e";
/**
*
* @return string
*/
public static function get_value() {
return self::$value;
}
/**
* Set the value, please use an MD5 v... | apache-2.0 |
googleads/google-ads-java | google-ads-stubs-v8/src/main/java/com/google/ads/googleads/v8/enums/DayOfWeekEnum.java | 20922 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/enums/day_of_week.proto
package com.google.ads.googleads.v8.enums;
/**
* <pre>
* Container for enumeration of days of the week, e.g., "Monday".
* </pre>
*
* Protobuf type {@code google.ads.googleads.v8.enums.DayOfWeekE... | apache-2.0 |
devzwy/KUtils | kutils/src/main/java/com/zwy/kutils/widget/loadingdialog/DialogUIUtils.java | 27424 | package com.zwy.kutils.widget.loadingdialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AppCompatDialog;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import ... | apache-2.0 |
stikbomb/amolodid | professions/src/main/java/ru/job4j/professions/Paper.java | 1921 | package ru.job4j.professions;
/**
* Класс Бамага, родительский класс для всех "бумажных" классов в этом приммере.
*/
public class Paper {
/**
* Имя.
*/
private String name;
/**
* Сеттер.
* @param name - имя.
*/
public void setName(String name) {
this.name = name;
... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/transform/DescribeAppVersionResourcesResolutionStatusResultJsonUnmarshaller.java | 4309 | /*
* Copyright 2017-2022 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 "licen... | apache-2.0 |
TommyPersson/scala-mvvm-example | src/main/scala/com/tpersson/client/common/services/navigation/NavigationService.scala | 274 | package com.tpersson.client.common.services.navigation
import javafx.beans.property.ReadOnlyObjectProperty
trait NavigationService {
val currentPageType: ReadOnlyObjectProperty[PageViewType]
def navigateTo(viewType: PageViewType): Unit
def navigateBack(): Unit
}
| apache-2.0 |
googleapis/java-notebooks | proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java | 6138 | /*
* Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
Gadreel/dcraft | dcraft.core/src/main/java/dcraft/db/proc/InitiateRecovery.java | 1912 | package dcraft.db.proc;
import org.joda.time.DateTime;
import dcraft.db.DatabaseInterface;
import dcraft.db.DatabaseTask;
import dcraft.db.IStoredProc;
import dcraft.db.TablesAdapter;
import dcraft.lang.BigDateTime;
import dcraft.lang.op.OperationResult;
import dcraft.struct.RecordStruct;
import dcraft.struct.builder... | apache-2.0 |
taegeonum/incubator-reef | lang/java/reef-wake/wake/src/main/java/org/apache/reef/wake/impl/PubSubEventHandler.java | 3506 | /*
* 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 ... | apache-2.0 |
KRMAssociatesInc/eHMP | ehmp/product/production/osync/utils/jds-utils.js | 1702 | 'use strict';
var _ = require('lodash');
var url = require('url');
var request = require('request');
function saveToJDS(log, config, key, value, cb) {
var postdata = _.merge({}, { "_id": key}, value);
var endpoint = url.format({
protocol: config.jds.protocol,
host: config.jds.host + ":" + co... | apache-2.0 |
be-hase/honoumi | src/test/java/com/be_hase/honoumi/netty/server/ServerTest.java | 2010 | package com.be_hase.honoumi.netty.server;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.be_hase.honoumi.HttpUtilForTest;
import com.be_hase.honoumi.controller.TestController;
import com.be_hase.honoumi.guice.TestModule;
import com.be_hase.honoumi.routing.Router;
import com.google.... | apache-2.0 |
lsmaira/gradle | subprojects/core/src/main/java/org/gradle/api/internal/changedetection/rules/ChangeDetectorVisitor.java | 1088 | /*
* Copyright 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 applica... | apache-2.0 |
royyau41/presentation | Resources/iphone/alloy/controllers/viewFile/viewFile.js | 3549 | function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "viewFile/viewFil... | apache-2.0 |
rdhyee/osf.io | website/institutions/model.py | 7040 | from django.core.urlresolvers import reverse
from modularodm import Q
from modularodm.exceptions import NoResultsFound
from modularodm.query.query import RawQuery
from modularodm.storage.mongostorage import MongoQuerySet
class AffiliatedInstitutionsList(list):
'''
A list to implement append and remove method... | apache-2.0 |
dufangyu1990/NewGpsTest | app/src/main/java/com/example/listener/FenceListenerManager.java | 406 | package com.example.listener;
public class FenceListenerManager {
private FenceListener mListener;
public void setFenceListener(FenceListener listener){
mListener = listener;
}
public void sendNotifyMessage(String param1,String param2,String param3,String param4,String param5){
mListener.showFence(param1,param... | apache-2.0 |
mjanicek/rembulan | rembulan-compiler/src/main/java/net/sandius/rembulan/compiler/analysis/LivenessInfo.java | 2723 | /*
* Copyright 2016 Miroslav Janíček
*
* 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... | apache-2.0 |
oppodeldoc/rexray | libstorage/drivers/storage/ebs/utils/utils_test.go | 523 | package utils
import (
"os"
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/codedellemc/rexray/libstorage/api/context"
"github.com/codedellemc/rexray/libstorage/drivers/storage/ebs"
)
func skipTest(t *testing.T) {
if ok, _ := strconv.ParseBool(os.Getenv("EBS_UTILS_TEST")); !ok {
t.Ski... | apache-2.0 |
trialmanager/voxce | WebContent/JQuery/jquery-1.7.1.js | 248240 | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... | apache-2.0 |
jiyeyuran/lib-jitsi-meet | modules/proxyconnection/ProxyConnectionPC.js | 13626 | import { getLogger } from 'jitsi-meet-logger';
import RTC from '../RTC/RTC';
import RTCEvents from '../../service/RTC/RTCEvents';
import XMPPEvents from '../../service/xmpp/XMPPEvents';
import JingleSessionPC from '../xmpp/JingleSessionPC';
import { DEFAULT_STUN_SERVERS } from '../xmpp/xmpp';
import { ACTIONS } from... | apache-2.0 |
DARdk/IBA | Sensus.Shared/Model/CustomWebView.cs | 611 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using Xamarin.Forms;
namespace Sensus.Model
{
public class CustomWebView : WebView
{
public static readonly BindableProperty UriProperty = BindableProperty.Create(propertyName: "Uri",
... | apache-2.0 |
vitolibrarius/contenta | application/views/upload/ComicVineResults.php | 5490 | <?php if (is_array($this->issue) && count($this->issue) > 0): ?>
<?php
$existingGroups = array();
$unknownGroups = array();
$map = array();
foreach ($this->issue as $idx => $item) {
$series_xid = array_valueForKeypath( "volume/id", $item );
$seriesObj = $this->series_model->objectForExternal( $series_xid, \mod... | apache-2.0 |
d0k1/jmeter | test/src/org/apache/jmeter/samplers/TestSampleResult.java | 13305 | /*
* 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-2.0 |
mkauf/AutobahnTestSuite | autobahntestsuite/setup.py | 4326 | ###############################################################################
##
## Copyright (C) 2011-2014 Tavendo GmbH
##
## 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
##
#... | apache-2.0 |
OLR-xray/XRay-NEW | XRay/xr_3da/xrRender_R2/PSLibrary.cpp | 4701 | //----------------------------------------------------
// file: PSLibrary.cpp
//----------------------------------------------------
#include "stdafx.h"
#pragma hdrstop
#include "PSLibrary.h"
#include "ParticleEffect.h"
#define _game_data_ "$game_data$"
bool ped_sort_pred (const PS::CPEDef* a, const PS::CPEDef* b... | apache-2.0 |
thr0w/galen | src/test/java/net/mindengine/galen/tests/parser/GalenSuiteReaderTest.java | 18941 | /*******************************************************************************
* Copyright 2015 Ivan Shubin http://mindengine.net
*
* 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... | apache-2.0 |
jivesoftware/upena | upena-deployable/src/main/java/com/jivesoftware/os/upena/deployable/region/RepoPluginRegion.java | 8003 | package com.jivesoftware.os.upena.deployable.region;
import com.google.common.collect.Maps;
import com.jivesoftware.os.mlogger.core.MetricLogger;
import com.jivesoftware.os.mlogger.core.MetricLoggerFactory;
import com.jivesoftware.os.upena.deployable.UpenaHealth;
import com.jivesoftware.os.upena.deployable.region.Repo... | apache-2.0 |
GoogleCloudPlatform/getting-started-dotnet | Bookshelf/ViewModels/Books/Form.cs | 1336 | // Copyright(c) 2016 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 agree... | apache-2.0 |
groupe-sii/ogham | ogham-spring-boot-common-autoconfigure/src/main/java/fr/sii/ogham/spring/template/thymeleaf/ThymeleafRequestContextWrapper.java | 1635 | package fr.sii.ogham.spring.template.thymeleaf;
import java.util.Map;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.support.RequestContext;
import org.thymeleaf.spring5.context.IThymeleafRequest... | apache-2.0 |
yunify/qingcloud-cli | qingcloud/cli/iaas_client/actions/vxnet/describe_vxnet_instances.py | 2703 | # =========================================================================
# Copyright 2012-present Yunify, Inc.
# -------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this work except in compliance with the Licens... | apache-2.0 |
griffon/griffon | subprojects/griffon-core-api/src/main/java/griffon/core/events/WindowShownEvent.java | 1573 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2008-2022 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/license... | apache-2.0 |
google/grr | grr/server/grr_response_server/check_lib/checks_test_lib_test.py | 8405 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Tests for checks_test_lib."""
from typing import IO
from typing import Iterator
from absl import app
from grr_response_core.lib import parsers
from grr_response_core.lib.rdfvalues import anomaly as rdf_anomaly
from grr_response_core.lib.rdfvalues import client as rd... | apache-2.0 |
ConclusionMC/puppetlabs-dsc | lib/puppet/type/dsc_xwaitforcluster.rb | 3854 | require 'pathname'
Puppet::Type.newtype(:dsc_xwaitforcluster) do
require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc'
require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers'
@doc = %q{
The DSC xWaitForCluster resource type.
Automatically generated fro... | apache-2.0 |
GoogleCloudPlatform/cloud-foundation-toolkit | cli/report/cmd.go | 3391 | // Copyright 2019 Google LLC
//
// 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 ... | apache-2.0 |
mediascape/named-websocket-proxy | background/src/proxy.js | 652 | var debug = require('./debug')('Proxy');
var Channel = require('./channel');
Proxy = {
close: function (proxy, proxies, localPeers, remotePeers) {
// Find all remote peers using this channel
var remotes = _.filter(remotePeers, { ip: proxy.ip });
// Disconnect local peers
_.forEach(remotes, functio... | apache-2.0 |
ruspl-afed/dbeaver | plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreOperatorClass.java | 3761 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* 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/license... | apache-2.0 |
opetrovski/development | oscm-portal-unittests/javasrc/org/oscm/ui/model/MarketplaceTest.java | 8559 | /*******************************************************************************
* Copyright FUJITSU LIMITED 2017
*******************************************************************************/
package org.oscm.ui.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
impo... | apache-2.0 |
spotify/annoy | test/holes_test.py | 2095 | # Copyright (c) 2013 Spotify AB
#
# 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, s... | apache-2.0 |
gaxnys/pixflaw_redux | src/components/Player.js | 2908 | import { Component } from './index'
import constants from '../constants'
class Player extends Component {
shouldCanvasUpdate(previousValue, currentValue) {
if(previousValue === undefined) {
return true
}
return this.updateCanvas = (
previousValue.player.posAngle !==... | apache-2.0 |
rocknamx8/rocknamx8.github.io | node_modules/urllib/lib/urllib.js | 30798 | 'use strict';
var debug = require('debug')('urllib');
var http = require('http');
var https = require('https');
var urlutil = require('url');
var util = require('util');
var qs = require('querystring');
var zlib = require('zlib');
var ua = require('default-user-agent');
var digestAuthHeader = require('digest-header');... | apache-2.0 |
steveswinsburg/sakai-learning-object-repository | tool/src/java/org/sakaiproject/content/repository/tool/components/EditorButton.java | 789 | package org.sakaiproject.content.repository.tool.components;
import java.util.List;
import org.apache.wicket.markup.html.form.Button;
public abstract class EditorButton extends Button
{
private transient ListItem< ? > parent;
public EditorButton(String id)
{
super(id);
}
protected final... | apache-2.0 |
langbat/webservice | application/models/users.php | 2547 | <?php
class Users extends CI_Model {
protected $table = 'users';
/**
* Verify if an api is valid and assigned to a subscriber
* @param int $subscriber_id
* @param string $key
* @param string $secret
* @return bool
*/
public function validate_api($subscriber_id, $key, $secret... | apache-2.0 |
bobo159357456/bobo | android_project/L62/app/src/main/java/cn/eoe/l62/MainActivity.java | 2068 | package cn.eoe.l62;
import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.GridLayout;
public class MainActivity extends Activity {
GridLayout gridLayout;
//定义16个按钮的文本
... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/transform/UpdateUserDefinedFunctionRequestProtocolMarshaller.java | 2824 | /*
* Copyright 2017-2022 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 "licen... | apache-2.0 |
respawner/peering-manager | users/api/views.py | 1673 | from django.contrib.auth.models import Group, User
from django.db.models import Count
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.routers import APIRootView
from peering.models import AutonomousSystem
from peering_manag... | apache-2.0 |
Falldog/moneydog | moneydog/urls.py | 1687 | from moneydog import app
from moneydog import views
from moneydog import views_admin
app.add_url_rule('/', 'index', views.index)
#app.add_url_rule('/login', 'login', views.login)
app.add_url_rule('/list/trade/<c_type>', 'list_trade', views.list_trade)
app.add_url_rule('/list/trade/by_category/<url_key>', 'lis... | apache-2.0 |
AlexandrSurkov/PKStudio | PKStudio/Helpers/MSBuildHelper.cs | 2405 | using System;
using System.Collections.Generic;
using Microsoft.Build.Framework;
using Microsoft.Build.Evaluation;
using System.Diagnostics;
using System.ComponentModel;
namespace PKStudio.Helpers
{
class MSBuildHelper : IDisposable
{
private List<ILogger> mLoggers = new List<ILogger>();
priv... | apache-2.0 |
LindaLawton/Google-Dotnet-Samples | Samples/DCM/DFA Reporting And Trafficking API/v2.7/ContentCategoriesSample.cs | 13688 | // Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.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.apa... | apache-2.0 |
google/vectorio | vectorio_buffered.go | 3433 | /*
Copyright 2015 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 law or agreed to in ... | apache-2.0 |
minnal/minnal | minnal-jaxrs/minnal-instrumentation-jaxrs/src/main/java/org/minnal/instrument/entity/metadata/handler/SearchableAnnotationHandler.java | 1330 | /**
*
*/
package org.minnal.instrument.entity.metadata.handler;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import org.minnal.instrument.entity.Searchable;
import org.minnal.instrument.entity.metadata.EntityMetaData;
import org.minnal.instrument.entity.m... | apache-2.0 |
cristiani/encuestame | enme-persistence/enme-model/src/main/java/org/encuestame/persistence/utils/EncodingUtils.java | 3943 | /*
************************************************************************************
* Copyright (C) 2001-2011 encuestame: system online surveys Copyright (C) 2011
* encuestame Development Team.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at http://www.apache.... | apache-2.0 |
pdalbora/gosu-lang | gosu-xml/src/main/java/gw/internal/schema/gw/xsd/w3c/soap12/enums/UseChoice.java | 2037 | package gw.internal.schema.gw.xsd.w3c.soap12.enums;
/***************************************************************************/
/* THIS IS AUTOGENERATED CODE - DO NOT MODIFY OR YOUR CHANGES WILL BE LOST */
/* THIS CODE CAN BE REGENERATED USING 'xsd-codegen' */
/********************************... | apache-2.0 |
ShaneKing/sk-js | src/Window0.js | 2183 | import Proxy0 from './Proxy0';
import SK from './SK';
export default class Window0 {
/**
* the url of page or sub frame page
*
* @returns {string}
*/
static getCurrentHref() {
if (window && window.location) {
return window.location.href;
}
}
/**
* window.location.origin
*
* ... | apache-2.0 |
lvydra/syndesis-e2e-tests | utilities/src/main/java/io/syndesis/qe/utils/DbUtils.java | 3525 | package io.syndesis.qe.utils;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class DbUtils {
private Connection dbConnection;
public DbUtils(Connection dbConnection) {
this.dbCon... | apache-2.0 |
vmuzikar/keycloak | model/jpa/src/main/java/org/keycloak/models/jpa/session/JpaUserSessionPersisterProvider.java | 15504 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other 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 License at
*
* http://www.apach... | apache-2.0 |
sai-pullabhotla/catatumbo | src/test/java/com/jmethods/catatumbo/entities/StringListIndex2.java | 2644 | /*
* Copyright 2016 Sai Pullabhotla.
*
* 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... | apache-2.0 |
stitchfix/flotilla-os | ui/src/components/__tests__/ListRequest.spec.tsx | 8182 | import * as React from "react"
import { mount, ReactWrapper } from "enzyme"
import { ListRequest, Props, ChildProps } from "../ListRequest"
import { RequestStatus } from "../Request"
import { SortOrder } from "../../types"
const DEFAULT_PROPS: Props<any, any> = {
requestStatus: RequestStatus.NOT_READY,
data: null,... | apache-2.0 |
AMWA-TV/maj | src/main/java/tv/amwa/maj/union/DefinitionCriteria.java | 1618 | /*
* Copyright 2016 Richard Cartwright
*
* 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... | apache-2.0 |
mingxinkejian/EGEngine | DB/EGIDB.php | 939 | <?php
namespace DB;
interface EGIDB {
/**
* 初始化数据库连接
* @param string $isMaster
*/
public function initConnection($isMaster=true);
/**
* 连接数据库
*/
public function connection($config,$connId=0);
/**
* 默认采用主库写,从库读,可以在配置文件中设置
* 分布式数据库连接
*/
public function multiConnection($isMaster=true);
/**... | apache-2.0 |
Wireless-Innovation-Forum/Spectrum-Access-System | src/harness/reference_models/tools/studies/dpa_margin_sim.py | 38972 | # Copyright 2018 SAS Project 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 requ... | apache-2.0 |
Pkcs11Interop/Pkcs11Interop | src/Pkcs11Interop/HighLevelAPI41/MechanismParams/CkPkcs5Pbkd2Params.cs | 6134 | /*
* Copyright 2012-2021 The Pkcs11Interop 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... | apache-2.0 |
chiaming0914/awe-cpp-sdk | aws-cpp-sdk-appstream/source/AppStreamErrors.cpp | 3193 | /*
* Copyright 2010-2017 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 "license" fil... | apache-2.0 |
ifnul/ums-backend | is-lnu-service/src/main/java/org/lnu/is/extractor/department/specialty/DepartmentSpecialtyParametersExtractor.java | 1179 | package org.lnu.is.extractor.department.specialty;
import java.util.Map;
import javax.annotation.Resource;
import org.lnu.is.annotations.ParametersExtractor;
import org.lnu.is.dao.dao.Dao;
import org.lnu.is.domain.department.Department;
import org.lnu.is.domain.department.specialty.DepartmentSpecialty;
import org.ln... | apache-2.0 |
googleapis/google-cloud-go | pubsublite/internal/wire/errors.go | 2276 | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
jaxio/celerio | celerio-engine/src/test/java/com/jaxio/celerio/aspects/GraphPredicateAspect.java | 1520 | /*
* Copyright 2015 JAXIO http://www.jaxio.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | apache-2.0 |
LindaLawton/Google-Dotnet-Samples | Samples/Drive API/v2/PermissionsSample.cs | 18201 | // Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.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.apa... | apache-2.0 |
vmware/tosca-vcloud-plugin | tests/unittests/test_mock_base.py | 12694 | # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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 ... | apache-2.0 |
pacogomez/pyvcloud | pyvcloud/vcd/vdc.py | 33031 | # VMware vCloud Director Python SDK
# Copyright (c) 2014 VMware, 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
#
#... | apache-2.0 |
liufeiit/lnk | lnk-api/src/main/java/io/lnk/api/registry/Registry.java | 436 | package io.lnk.api.registry;
import io.lnk.api.Address;
/**
* @author 刘飞 E-mail:liufei_it@126.com
*
* @version 1.0.0
* @since 2017年5月24日 上午11:49:43
*/
public interface Registry {
Address[] lookup(String serviceId, String version, int protocol);
void registry(String serviceId, String version, int protocol... | apache-2.0 |