repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
vdenotaris/spring-boot-security-saml-sample | src/main/java/com/vdenotaris/spring/boot/security/saml/web/config/MvcConfig.java | 1978 | /*
* Copyright 2021 Vincenzo De Notaris
*
* 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... | apache-2.0 |
arangodb/arangodb | arangod/RocksDBEngine/Listeners/RocksDBMetricsListener.cpp | 3022 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | apache-2.0 |
AmesianX/binnavi | src/main/java/com/google/security/zynamics/binnavi/Gui/GraphWindows/BottomPanel/InstructionHighlighter/CSpecialInstructionsModel.java | 3472 | /*
Copyright 2011-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/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | apache-2.0 |
csmoore/MyMiscellanea | CSharp/Testing2525D/MilSymbolPicker/Properties/Resources.Designer.cs | 2789 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | apache-2.0 |
speedycontrol/googleapis | output/com/google/devtools/clouddebugger/v2/ListActiveBreakpointsRequestOrBuilder.java | 1889 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/clouddebugger/v2/controller.proto
package com.google.devtools.clouddebugger.v2;
public interface ListActiveBreakpointsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.devtools.clouddebugger.v2.ListA... | apache-2.0 |
dbrimley/hazelcast | hazelcast/src/main/java/com/hazelcast/internal/nearcache/impl/invalidation/MetaDataContainer.java | 3519 | /*
* Copyright (c) 2008-2017, 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 ... | apache-2.0 |
markflyhigh/incubator-beam | runners/core-java/src/test/java/org/apache/beam/runners/core/metrics/SimpleExecutionStateTest.java | 3490 | /*
* 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 |
jasonwee/videoOnCloud | src/java/play/learn/java/design/double_dispatch/FlamingAsteroid.java | 325 | package play.learn.java.design.double_dispatch;
public class FlamingAsteroid extends Meteoroid {
public FlamingAsteroid(int left, int top, int right, int bottom) {
super(left, top, right, bottom);
setOnFire(true);
}
@Override
public void collision(GameObject gameObject) {
gameObject.collisionResolve(this);
... | apache-2.0 |
markus1978/citygml4emf | de.hub.citygml.emf.ecore/src/net/opengis/gml/impl/AbstractGeometricAggregateTypeImpl.java | 909 | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.opengis.gml.impl;
import net.opengis.gml.AbstractGeometricAggregateType;
import net.opengis.gml.GmlPackage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Abstract Geometric Aggregate T... | apache-2.0 |
nafae/developer | modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201306/String_ValueMapEntry.java | 4955 | /**
* String_ValueMapEntry.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201306;
/**
* This represents an entry in a map with a key of type String
* and value of type Value.
*/
public... | apache-2.0 |
coralnexus/corl | lib/core/util/puppet/resource_group.rb | 4408 |
module CORL
module Util
module Puppet
class ResourceGroup < Core
include Mixin::SubConfig
#-----------------------------------------------------------------------------
# Constructor / Destructor
def initialize(type_info, default = {})
super({
:info => hash(type_info),
:default => symbol_... | apache-2.0 |
jmclark/capco | src/main/java/org/geoint/lbac/marking/SecurityMarkingBuilder.java | 3290 | package org.geoint.lbac.marking;
import org.geoint.lbac.policy.SecurityPolicy;
import org.geoint.lbac.impl.policy.restriction.SecurityRestrictionException;
/**
* API to create, or modify, a {@link SecurityMarking}.
*
*/
public interface SecurityMarkingBuilder {
/**
* Adds a {@link SecurityComponent} to a... | apache-2.0 |
Shenker93/playframework | framework/src/play-ahc-ws/src/test/scala/play/libs/ws/WSSpec.scala | 1443 | /*
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
*/
package play.libs.ws
import akka.stream.Materializer
import play.api.mvc.Results._
import play.api.mvc._
import play.api.test._
import play.core.server.Server
import play.libs.ws.ahc.AhcWSClient
import play.shaded.ahc.org.asynchttpclient.Asy... | apache-2.0 |
tangfeixiong/go-to-exercise | vendor/github.com/cesanta/docker_auth/auth_server/authn/authn.go | 1824 | /*
Copyright 2015 Cesanta Software Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | apache-2.0 |
sunfuchang/JavaLearn | src/main/java/com/belonk/crypt/AlgorithmData.java | 719 | package com.belonk.crypt;
public class AlgorithmData {
private String key;
private String dataMing;
private String dataMi;
private boolean doDisplay =true;//true-需要做显示处理,false-不需要做显示处理
public boolean isDoDisplay() {
return doDisplay;
}
public void setDoDisplay(boolean doDisplay) {
this.doDisplay =... | apache-2.0 |
hubrick/raml-maven-plugin | src/main/java/com/hubrick/raml/codegen/ReferencedPatternDefinition.java | 945 | /*
* Copyright 2015 Hubrick
*
* 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 |
bwsw/cloudstack-ui | src/app/vm-logs/vm-logs-token/vm-logs-token.component.ts | 814 | import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
import { VmLogToken } from '../models/vm-log-token.model';
import { SnackBarService } from '../../core/services';
@Component({
selector: 'cs-vm-logs-token',
templateUrl: 'vm-logs-token.component.ht... | apache-2.0 |
wuxiatech/wuxia-common | src/main/java/cn/wuxia/common/express/ElUtil.java | 7177 | package cn.wuxia.common.express;
import cn.wuxia.common.util.ListUtil;
import org.nutz.el.El;
import org.nutz.el.opt.RunMethod;
import org.nutz.el.opt.custom.CustomMake;
import org.nutz.lang.Lang;
import org.nutz.lang.util.Context;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
imp... | apache-2.0 |
zheng-zy/zCore | src/main/java/com/ktvme/net/intercepter/NetInterceptor.java | 1694 | package com.ktvme.net.intercepter;
import lombok.extern.slf4j.Slf4j;
import okhttp3.*;
import java.io.IOException;
import java.util.UUID;
/**
* <p>模拟数据返回</p>
* Created by zhezhiyong@163.com on 2017/6/13.
*/
@Slf4j
public class NetInterceptor implements Interceptor {
// private static final String API_URL ... | apache-2.0 |
jwhonce/skopeo | vendor/github.com/containers/storage/containers.go | 15406 | package storage
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"time"
"github.com/containers/storage/pkg/idtools"
"github.com/containers/storage/pkg/ioutils"
"github.com/containers/storage/pkg/stringid"
"github.com/containers/storage/pkg/truncindex"
digest "github.com/opencontainers/go-dig... | apache-2.0 |
hazendaz/assertj-core | src/test/java/org/assertj/core/api/abstract_/AbstractAssert_asInstanceOf_with_InstanceOfAssertFactory_Test.java | 2795 | /*
* 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 |
marcuswr/elasticsearch-dateline | src/main/java/org/elasticsearch/search/aggregations/bucket/terms/TermsAggregatorFactory.java | 13808 | /*
* 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... | apache-2.0 |
suzaku-io/suzaku | webdemo/src/main/scala/perftest/PerfUIEntry.scala | 1547 | package perftest
import org.scalajs.dom
import org.scalajs.dom.raw.Worker
import suzaku.platform.web.{WebWorkerTransport, WorkerClientTransport}
import scala.scalajs.js.annotation.{JSExport, JSExportTopLevel}
import scala.scalajs.js.typedarray.ArrayBuffer
@JSExportTopLevel("PerfUIEntry")
object PerfUIEntry {
var t... | apache-2.0 |
spheric/spheric.github.io | mail/contact_me.php | 1119 | <?php
// Check for empty fields
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['phone']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
{
echo "No arguments Provided!";
return false;
}
$name = $_POST['name'];
$email_address = $_POST['e... | apache-2.0 |
IBM-Bluemix/bluemix-cloud-connectors | samples/spring-cloud-connector-cloudant-test/src/main/java/org/terrence/testapp/TestappApplication.java | 753 | package org.terrence.testapp;
import org.ektorp.CouchDbConnector;
import org.ektorp.CouchDbInstance;
import org.ektorp.impl.StdCouchDbConnector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@... | apache-2.0 |
rodbate/RpcComponent | src/main/java/com/rodbate/rpc/RpcService.java | 779 | package com.rodbate.rpc;
import com.rodbate.rpc.exception.RpcSendRequestException;
import com.rodbate.rpc.exception.RpcTimeoutException;
import com.rodbate.rpc.exception.RpcTooMuchRequestException;
import com.rodbate.rpc.netty.InvokeCallback;
import com.rodbate.rpc.netty.NettyRpcRequestProcessor;
import com.rodbate.r... | apache-2.0 |
stefanocke/japkit-examples | japkit-examples-roo-petclinic/src/main/java/de/japkit/roo/petclinic/web/PetControllerDef.java | 218 | package de.japkit.roo.petclinic.web;
import de.japkit.roo.japkit.web.JapkitWebScaffold;
import de.japkit.roo.petclinic.domain.Pet;
@JapkitWebScaffold(formBackingObject = Pet.class)
public class PetControllerDef {
}
| apache-2.0 |
Sargul/dbeaver | plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/tasks/SQLServerToolTableRebuild.java | 1681 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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/LICE... | apache-2.0 |
elharo/appengine-maven-archetypes-java | guestbook-archetype/src/main/resources/archetype-resources/src/test/java/GuestbookServletTest.java | 2442 | #set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* 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 a... | apache-2.0 |
gyankov/Goomer | Goomer/Goomer.Web/Models/Home/HomeViewModel.cs | 413 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Goomer.Web.Models.Home
{
public class HomeViewModel
{
public IEnumerable<TireViewModel> Tires { get; set; }
public IEnumerable<RimViewModel> Rims { get; set; }
public IEnumerable<RimWithTir... | apache-2.0 |
googleapis/python-aiplatform | samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_list_metadata_stores_async.py | 1625 | # -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 |
qtproject/qtqa-gerrit-plugin-replication | src/test/java/com/googlesource/gerrit/plugins/replication/ChainedSchedulerTest.java | 15363 | // Copyright (C) 2020 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 ... | apache-2.0 |
DanielGarcia-Carrillo/Beats-by-Dr-D | src/com/android/sampler/MusicSamplerActivity.java | 21975 | package com.android.sampler;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.*;
import android.media.AudioManager;
import android.media.MediaMetadataRetriever;
import andr... | apache-2.0 |
JimWiliam/coder | pat/B/1037.cpp | 965 | #include <bits/stdc++.h>
using namespace std;
struct SS {
int g, s, k;
} A{0, 0, 0}, B{0, 0, 0};
int compare(SS &A, SS &B) {
int f = A.g - B.g;
if (f != 0)return f;
f = A.s - B.s;
if (f != 0)return f;
f = A.k - B.k;
if (f != 0)return f;
}
void solve(SS &A, SS &B) {
SS result;
int... | apache-2.0 |
MAMISHO/test_git | gemwebs-blogs/skins/base/dashboard/locale.php | 2847 | <?php
list($lang_token, $lang, $list, $tkn, $phraseid, $translate) = _GL('lang_token, lang, list, tkn, phraseid, translate');
$exid = REQ('exid');
cn_snippet_bc();
cn_snippet_messages();
?>
<!-- selection -->
<form action="<?php echo PHP_SELF; ?>" method="POST">
<?php cn_form_open('mod, opt'); ?>
<p>
... | apache-2.0 |
amplab/succinct | core/src/main/java/edu/berkeley/cs/succinct/buffers/SuccinctIndexedFileBuffer.java | 15599 | package edu.berkeley.cs.succinct.buffers;
import edu.berkeley.cs.succinct.StorageMode;
import edu.berkeley.cs.succinct.SuccinctIndexedFile;
import edu.berkeley.cs.succinct.regex.RegExMatch;
import edu.berkeley.cs.succinct.regex.parser.RegExParsingException;
import edu.berkeley.cs.succinct.util.Source;
import edu.berke... | apache-2.0 |
chanil1218/elasticsearch | src/test/java/org/elasticsearch/test/unit/cluster/routing/allocation/ShardVersioningTests.java | 6369 | /*
* Licensed to ElasticSearch and Shay Banon 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... | apache-2.0 |
Orange-OpenSource/matos-profiles | matos-android/src/main/java/com/google/android/util/Procedure.java | 775 | package com.google.android.util;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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 |
chris115379/Recipr | presentation/src/main/java/de/androidbytes/recipr/presentation/overview/categories/view/adapter/SectionedCategoriesOverviewAdapter.java | 1007 | package de.androidbytes.recipr.presentation.overview.categories.view.adapter;
import android.content.Context;
import de.androidbytes.recipr.presentation.R;
import de.androidbytes.recipr.presentation.overview.core.view.OnRecipeClickListener;
import de.androidbytes.recipr.presentation.overview.core.view.adapter.Sec... | apache-2.0 |
YuwenXiaodong/coolweather | app/src/main/java/com/coolcweather/app/model/County.java | 797 | package com.coolcweather.app.model;
/**
* Created by Administrator on 2016/6/21.
*/
public class County {
private int id;
private String countyName;
private String countyCode;
private int cityId;
public String getCountyName() {
return countyName;
}
public void setCountyName(Stri... | apache-2.0 |
bgrozev/jitsi-meet | react/features/toolbox/components/VideoMuteButton.js | 5444 | // @flow
import {
ACTION_SHORTCUT_TRIGGERED,
VIDEO_MUTE,
createShortcutEvent,
createToolbarEvent,
sendAnalytics
} from '../../analytics';
import { setAudioOnly } from '../../base/audio-only';
import { translate } from '../../base/i18n';
import {
VIDEO_MUTISM_AUTHORITY,
setVideoMuted
} from ... | apache-2.0 |
davidbwaikato/phonegap-fieldays-innovation | www/js/ConsiderView.js | 1045 |
var ConsiderView = function(homeView) {
this.homeView = homeView;
this.initialize = function() {
// 'div' wrapper to attach html and events to
this.el = $('<div/>');
};
this.render = function() {
if (!this.homeView) {
this.homeView = { enteredName: "" }
}
... | apache-2.0 |
impactcloud/fact | box-service/boxTokenCache.js | 1737 | 'use strict';
const CacheService = require('../cache-service/cacheService');
const config = require('config');
const BoxSDKConfig = config.get('BoxSDKConfig');
const BoxOptions = config.get('BoxOptions');
const Promise = require('bluebird');
const asyncFunc = Promise.coroutine;
const BOX_ENTERPRISE = "enterprise";
co... | apache-2.0 |
hawtio/hawtio | hawtio-system/src/main/java/io/hawt/web/kubernetes/PodServlet.java | 3489 | /**
* Copyright (C) 2013 the original author or authors.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | apache-2.0 |
3ev0/rdns-monitor | setup.py | 352 | import setuptools
setuptools.setup(
name = "rDNS-Monitor",
version = "0.1",
packages = ["rdnsmonitor"],
author = "3v0o",
description = "Reverse DNS monitor. Queries and stores PTR records of all IPv4 addresses.",
license = "Apache",
entry_points = {
'console_scripts': ['rdnsmonitor =... | apache-2.0 |
traneio/ndbc | ndbc-core/src/main/java/io/trane/ndbc/proto/BufferReader.java | 730 | package io.trane.ndbc.proto;
import java.nio.charset.Charset;
public interface BufferReader {
int readableBytes();
int readInt();
byte readByte();
short readShort();
String readCString(Charset charset);
String readCString(int length, Charset charset);
String readString(Charset charset);
String... | apache-2.0 |
equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/web/sections/standard/dialog/model/ControlsState.java | 1334 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | apache-2.0 |
TakWolf/d2d-canvas-for-javascript | Lib/D2D_Engine.js | 28745 | //=======================================================
//
// EM-X for HTML5 Canvas - v0.0.3
//
// Powered by TakWolf - takgdx@gmail.com
// http://www.takgdx.com/emx-for-html5-canvas
//
//=======================================================
// -2013.10.22-
//=======================================================... | apache-2.0 |
openweave/openweave-core | src/lib/profiles/software-update/WeaveImageAnnounceServer.cpp | 2418 | /*
*
* Copyright (c) 2013-2017 Nest Labs, 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... | apache-2.0 |
thoughtworks/murmurs.air | vendor/jquery/jquery-1.3.2.js | 120625 | /*!
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
(function(){
var
// Will speed up references to window, a... | apache-2.0 |
anitaonnuvel/vinavidai | VINA-VIDAI/SOURCE/JAVA/org/ahp/core/managers/IAhpMessageResourceManager.java | 1166 | /*
* Copyright 2012 Anita Onnuvel
*
* 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... | apache-2.0 |
iSergio/gwt-cs | cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/collections/options/FromIso8601Options.java | 1567 | /*
* Copyright 2018 iserge.
*
* 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 w... | apache-2.0 |
indigits/sparse-plex | library/+spx/+fast/private/mex_sqrt_times.cpp | 1783 | /**
This code is inspired from the example in
https://in.mathworks.com/matlabcentral/answers/6411-matrix-multiplication-optimal-speed-and-memory
*/
#include <mex.h>
#include "argcheck.h"
#include "spx_matarr.hpp"
#include "spx_operator.hpp"
#include "spx_vector.hpp"
const char* func_name = "mex_sqrt_times";
#defin... | apache-2.0 |
Groostav/CMPT880-term-project | intruder/benchs/batik/batik-1.7/sources/org/apache/batik/ext/awt/geom/Polygon2D.java | 17390 | /*
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 |
googleapis/google-api-php-client-services | src/AdExchangeBuyerII/ClientUser.php | 1897 | <?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... | apache-2.0 |
code4wt/nutch-learning | src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/cosine/package-info.java | 146 | /**
*
*/
/** Implements the cosine similarity metric for scoring relevant documents
*
*/
package org.apache.nutch.scoring.similarity.cosine; | apache-2.0 |
EsupPortail/esup-dematec | src/main/java/fr/univrouen/poste/services/GalaxieMappingService.java | 3727 | /**
* Licensed to ESUP-Portail under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* ESUP-Portail licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this fil... | apache-2.0 |
kelemetry/beacon | examples/nats/beacon-subscriber.go | 1586 | /*
Copyright 2017 The Kelemetry 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, s... | apache-2.0 |
nash-x/hws | neutron/services/firewall/agents/ngfw/ngfw_api.py | 10741 | # Copyright 2013 ngfw Networks 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 requir... | apache-2.0 |
TeamCohen/SEAL | src/com/rcwang/seal/expand/OfflineSeal.java | 16770 | /**************************************************************************
* Developed by Language Technologies Institute, Carnegie Mellon University
* Written by Richard Wang (rcwang#cs,cmu,edu)
*
* and William Cohen (wcohen@cs.cmu.edu)
*
*******************************************************************... | apache-2.0 |
andrewtytula/log-viewer | src/main/java/com/kajj/tools/logviewer/LogViewerRestController.java | 2875 | /*
* Copyright 2014 Andrew Tytula.
*
* 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... | apache-2.0 |
OpenVidu/openvidu | openvidu-server/src/main/java/io/openvidu/server/config/HttpHandshakeInterceptor.java | 1961 | /*
* (C) Copyright 2017-2020 OpenVidu (https://openvidu.io)
*
* 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... | apache-2.0 |
rdblue/incubator-nifi | nar-bundles/framework-bundle/framework/core/src/main/java/org/apache/nifi/controller/repository/RingBufferEventRepository.java | 12328 | /*
* 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 |
jdcasey/pnc | causeway-client/src/main/java/org/jboss/pnc/causewayclient/remotespi/CallbackMethod.java | 873 | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2018 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... | apache-2.0 |
opensingular/singular-core | form/wicket/src/test/java/org/opensingular/form/wicket/SValidationFeedbackHandlerTest.java | 1584 | /*
*
* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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.o... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p148/Production2975.java | 1891 | package org.gradle.test.performance.mediummonolithicjavaproject.p148;
public class Production2975 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | apache-2.0 |
brentdavid2008/stripe.net | src/Stripe/Entities/StripeTransferSchedule.cs | 474 | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Stripe
{
public class StripeTransferSchedule
{
[JsonProperty("delay_days")]
public int DelayDays { get; set; }
[JsonProperty("interval")]
public string Interval { get; set; }
[JsonProperty("monthly_anc... | apache-2.0 |
quocngo2cs/Rhetos.RestGenerator.WebAPI | Rhetos.RestGenerator/Rhetos.RestGenerator/Utilities/RecordsAndTotalCountResult.cs | 286 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rhetos.WebApiRestGenerator.Utilities
{
public class RecordsAndTotalCountResult<T>
{
public T[] Records { get; set; }
public int TotalCount { get; set; }
}
}
| apache-2.0 |
YihaoLu/pyfolio | pyfolio/timeseries.py | 40495 | #
# Copyright 2015 Quantopian, 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 wr... | apache-2.0 |
kdart/pycopia3 | core/pycopia/fsm.py | 7789 | #!/usr/bin/python3.4
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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 |
Mahidharmullapudi/timesheet-upload | src/main/java/com/technumen/constants/EmailServiceConstants.java | 444 | package com.technumen.constants;
public class EmailServiceConstants {
//Email Service Parameters
public static final String mailTemplateTableName = "TIMESHEET_APP_EMAIL_TEMPLATE";
public static final String mailTemplateKeyColumnName = "DSC_EMAIL_TEMPLATE_KEY";
public static final String mailTemplateCol... | apache-2.0 |
csmith932/uas-schedule-generator | swac-common/src/main/java/gov/faa/ang/swac/common/random/util/RootFinder.java | 6553 | package gov.faa.ang.swac.common.random.util;
/*
* Class: RootFinder
* Description: Provides methods to solve non-linear equations.
* Environment: Java
* Software: SSJ
* Copyright (C) 2001 Pierre L'Ecuyer and Université de Montréal
* Organization: DIRO, Université de Montréal
* @author
*... | apache-2.0 |
kvr000/zbynek-java-exp | concurrency-exp/concurrency-primitives-exp/src/main/java/cz/znj/kvr/sw/exp/java/concurrencyexp/primitives/dynamicexecutor/FsDynamicExecutor.java | 1955 | package cz.znj.kvr.sw.exp.java.concurrencyexp.primitives.dynamicexecutor;
import java.io.File;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
/**
* Created ... | apache-2.0 |
jjeb/kettle-trunk | ui/src/org/pentaho/di/ui/trans/steps/accessoutput/AccessOutputDialog.java | 20007 | /*******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | apache-2.0 |
U-QASAR/u-qasar.platform | src/main/java/eu/uqasar/model/product/Product.java | 3119 | package eu.uqasar.model.product;
/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* 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 |
AndreJCL/JCL | JCL_Android/app/src/main/java/javassist/bytecode/StackMap.java | 16032 | /*
* Javassist, a Java-bytecode translator toolkit.
* Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Alternatively, the contents of th... | apache-2.0 |
cljohnso/Rainfall-core | src/main/java/io/rainfall/statistics/StatisticsHolder.java | 1134 | /*
* Copyright 2014 Aurélien Broszniowski
*
* 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 ... | apache-2.0 |
willmorejg/net.ljcomputing.mail | src/main/java/net/ljcomputing/mail/domain/Email.java | 4227 | /**
Copyright 2017, James G. Willmore
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 ... | apache-2.0 |
breakpoint-au/Hedron | hedron-daogen/src/main/java/au/com/breakpoint/hedron/daogen/AttributeSet.java | 7447 | // __________________________________
// ______| Copyright 2008-2015 |______
// \ | Breakpoint Pty Limited | /
// \ | http://www.breakpoint.com.au | /
// / |__________________________________|... | apache-2.0 |
smith1302/DM-Assassins | myProfile.php | 8662 | <?php
/*Dance Marathon Assassins
Copyright 2012 Dance Marathon at the University of Florida
This product includes software developed by the Dance Marathon at the University of Florida 2013 Technology Team.
The following developers contributed to this project:
Matthew Gerstman
Dance Marathon at the University of ... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-secretsmanager/src/main/java/com/amazonaws/services/secretsmanager/model/DescribeSecretResult.java | 39579 | /*
* Copyright 2014-2019 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 |
fullstackanalytics/pubsub4s | src/main/scala/com/google/api/services/pubsub/PullRequest.scala | 327 | package com.google.api.services.pubsub
final case class PullRequest(maxMessages: Int, returnImmediately: Boolean)
object PullRequest {
implicit def toJava(r: PullRequest): model.PullRequest = {
new model.PullRequest()
.setMaxMessages(r.maxMessages)
.setReturnImmediately(r.returnImmediately)... | apache-2.0 |
Mashape/kong | spec/02-integration/05-proxy/06-ssl_spec.lua | 15159 | local ssl_fixtures = require "spec.fixtures.ssl"
local helpers = require "spec.helpers"
local cjson = require "cjson"
local function get_cert(server_name)
local _, _, stdout = assert(helpers.execute(
string.format("echo 'GET /' | openssl s_client -connect 0.0.0.0:%d -servername %s",
... | apache-2.0 |
StevenLeRoux/warp10-platform | warp10/src/main/java/io/warp10/script/WarpScriptStackFunction.java | 858 | //
// Copyright 2016 Cityzen Data
//
// 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 |
gianluca-nitti/FacadeServer-frontend | src/authentication/ClientIdentity.tsx | 507 | export interface PrivateIdentityCertificate<BigIntegerType> {
modulus: BigIntegerType;
exponent: BigIntegerType;
}
export interface PublicIdentityCertificate<BigIntegerType> {
id: string;
modulus: BigIntegerType;
exponent: BigIntegerType;
signature: BigIntegerType;
}
export interface ClientIdentity<BigInt... | apache-2.0 |
puneetcse09/Oracle-Assignements | restdemo/src/books/BookDAO.java | 3994 | package books;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.Map;
import DBConfig.BaseJDBC;
public class BookDAO {
static Connection con;
ResultSet rs = null;
Statement s... | apache-2.0 |
jashwanth9/Expert-recommendation-system | code/wordcharUsefulness.py | 1354 | # gets word/characters usefulness (described in paper: I Want to Answer, Who has a Question?)
import pdb
import math
import operator
import matplotlib.pyplot as plt
def getUscores(tcounts, T):
alpha = 20/float(T)
Lt = {}
for term in tcounts:
Lt[term] = 0
for c in range(T):
prc = 0
den = 0
for c2 in ran... | apache-2.0 |
928902646/Gymnast | app/src/main/java/com/gymnast/data/net/UserApi.java | 1203 | package com.gymnast.data.net;
import com.gymnast.data.user.VerifyCode;
import java.util.HashMap;
import okhttp3.RequestBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
import rx.Observable;
/**
* Cr... | apache-2.0 |
329277920/Snail | Snail.Pay.Ali.Sdk/Domain/CdpDisplayContent.cs | 1409 | using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// CdpDisplayContent Data Structure.
/// </summary>
[Serializable]
public class CdpDisplayContent : AopObject
{
/// <summary>
/// 点击投放内容跳转地址
/// </summary>
[XmlElement("action... | apache-2.0 |
CruorVolt/mu_bbmap | src/bbmap/current/jgi/MergeBarcodes.java | 16309 | package jgi;
import java.io.File;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import stream.ConcurrentGenericReadInputStream;
import stream.ConcurrentReadInputStream;
import stream.FASTQ;
import stream.FastaReadInputStream;
import stream.Concu... | apache-2.0 |
fabric8io/kubernetes-client | kubernetes-client/src/main/java/io/fabric8/kubernetes/client/utils/KubernetesResourceUtil.java | 14284 | /**
* Copyright (C) 2015 Red Hat, 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... | apache-2.0 |
notbrain/play-bootstrap | test/views/html/layout/base.scala | 4272 | /*
* Copyright 2013 Marconi Lanna
*
* 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... | apache-2.0 |
agustinsantos/DOOP.ec | DDS-RTPS/DDS/omg/dds/core/policy/DestinationOrderQosPolicy.cs | 1607 | /* Copyright 2010, Object Management Group, Inc.
* Copyright 2010, PrismTech, Inc.
* Copyright 2010, Real-Time Innovations, 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 ... | apache-2.0 |
OLR-xray/XRay-NEW | XRay/xr_3da/xrGame/relation_registry_actions.cpp | 11179 | #include "stdafx.h"
#include "relation_registry.h"
#include "alife_registry_wrappers.h"
#include "actor.h"
#include "ai/stalker/ai_stalker.h"
#include "seniority_hierarchy_holder.h"
#include "team_hierarchy_holder.h"
#include "squad_hierarchy_holder.h"
#include "group_hierarchy_holder.h"
#include "memory_manager.h"
... | apache-2.0 |
Muni10/flyway | flyway-core/src/main/java/org/flywaydb/core/internal/dbsupport/derby/DerbyTable.java | 1863 | /*
* Copyright 2010-2017 Boxfuse 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/waiters/IdentityExists.java | 2845 | /*
* Copyright 2012-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 "licen... | apache-2.0 |
DEVSENSE/PTVS | Python/Tests/Core.UI/PythonTestDefinitions.cs | 1170 | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// 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 |
nurmuhammad/rvc | src/main/java/rvc/ann/After.java | 398 | package rvc.ann;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* @author nurmuhammad
*/
@Retention(RUNTIME)
@Target(METHOD)
public @interface After {
String valu... | apache-2.0 |
LorenzReinhart/ONOSnew | core/api/src/main/java/org/onosproject/net/intent/TopologyChangeDelegate.java | 1390 | /*
* Copyright 2014-present Open Networking Laboratory
*
* 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... | apache-2.0 |
buerkle/mc-boom | src/main/java/com/thebuerkle/mcboom/packet/BlockChangePacket.java | 1174 | package com.thebuerkle.mcboom.packet;
import com.google.common.base.Objects;
import com.thebuerkle.mcboom.Buffers;
import com.thebuerkle.mcboom.DataType;
import org.jboss.netty.buffer.ChannelBuffer;
public class BlockChangePacket extends Packet {
public static final int ID = BLOCK_CHANGE;
public static fin... | apache-2.0 |