repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
fedepaol/DroidChineseCheckers | src/com/whiterabbit/checkers/ui/BoardsListActivity.java | 5669 | /*******************************************************************************
* Copyright 2011 Federico Paolinelli
*
* 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-2.0 |
palava/palava-ipc-session-store | src/main/java/de/cosmocode/palava/ipc/session/store/SessionProviderMBean.java | 1122 | /**
* Copyright 2010 CosmoCode 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 agreed... | apache-2.0 |
bkaradzic/SwiftShader | third_party/SPIRV-Headers/include/spirv/unified1/spirv.lua | 54333 | -- Copyright (c) 2014-2020 The Khronos Group Inc.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and/or associated documentation files (the "Materials"),
-- to deal in the Materials without restriction, including without limitation
-- the rights to use, copy, mod... | apache-2.0 |
lovejinstar/POOL2.LINE | src/main/java/org/apache/commons/pool2/BaseKeyedPooledObjectFactory.java | 3803 | /*
* 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 |
329277920/Snail | Snail.Pay.Ali.Sdk/Domain/AlipayDataDataserviceAntdataassetsClearnodeCreateModel.cs | 449 | using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// AlipayDataDataserviceAntdataassetsClearnodeCreateModel Data Structure.
/// </summary>
[Serializable]
public class AlipayDataDataserviceAntdataassetsClearnodeCreateModel : AopObject
{
/// <summary>... | apache-2.0 |
sacrefies/csc643_bigdata | project3/src/net/team1/dev/HousingAnalysis.java | 4559 | // ----------------------------------------------------------------------------
// Copyright 2017 team1@course_bigdata, Saint Joseph's University
//
// 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 Lice... | apache-2.0 |
Netflix/hollow | hollow/src/main/java/com/netflix/hollow/api/sampling/SampleResult.java | 1419 | /*
* Copyright 2016-2019 Netflix, 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 ... | apache-2.0 |
d/fruit | tests/injector_non_class_type.cpp | 861 | // expect-compile-error NonClassTypeError<X\*,X>|A non-class type T was specified. Use C instead.
/*
* Copyright 2014 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 th... | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcodeCPort/utils/MutableInt.java | 1029 | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 |
opensource21/fuwesta | fuwesta-sample/src/main/java/de/ppi/samples/fuwesta/model/User.java | 5215 | // User.java
//
package de.ppi.samples.fuwesta.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import de.ppi.fuwesta.jpa.helper.JPAList;
import de.ppi.fuwesta.jpa.hel... | apache-2.0 |
apereo/cas | support/cas-server-support-authy/src/main/java/org/apereo/cas/adaptors/authy/config/support/authentication/AuthyAuthenticationEventExecutionPlanConfiguration.java | 7066 | package org.apereo.cas.adaptors.authy.config.support.authentication;
import org.apereo.cas.adaptors.authy.AuthyAuthenticationHandler;
import org.apereo.cas.adaptors.authy.AuthyClientInstance;
import org.apereo.cas.adaptors.authy.AuthyMultifactorAuthenticationProvider;
import org.apereo.cas.adaptors.authy.AuthyTokenCre... | apache-2.0 |
anuzzolese/lizard | lizard.commons/src/main/java/it/cnr/istc/stlab/lizard/commons/OntologyCodeProject.java | 635 | package it.cnr.istc.stlab.lizard.commons;
import java.net.URI;
import it.cnr.istc.stlab.lizard.commons.model.OntologyCodeModel;
public class OntologyCodeProject {
private OntologyCodeModel ontologyCodeModel;
private URI ontologyURI;
public OntologyCodeProject(URI ontologyURI, OntologyCodeModel ontologyCodeModel... | apache-2.0 |
yauritux/venice-legacy | Venice/Venice-Interface-Model/src/main/java/com/gdn/venice/facade/RafUserRoleSessionEJBRemote.java | 2346 | package com.gdn.venice.facade;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Remote;
import com.djarum.raf.utilities.JPQLAdvancedQueryCriteria;
import com.gdn.venice.facade.finder.FinderReturn;
import com.gdn.venice.persistence.RafUserRole;
@Remote
public interface RafUserRoleSessionEJBRemote ... | apache-2.0 |
enaml-ops/omg-product-bundle | products/redis/enaml-gen/broker-deregistrar/redis.go | 232 | package broker_deregistrar
/*
* File Generated by enaml generator
* !!! Please do not edit this file !!!
*/
type Redis struct {
/*Broker - Descr: Service name Default: p-redis
*/
Broker *RedisBroker `yaml:"broker,omitempty"`
}
| apache-2.0 |
webengfhnw/WE-CRM | modelling/php/Customer.php | 1907 | <?php
/**
* @access private
* @author andreas.martin
*/
class Customer {
/**
* @AttributeType int
*/
protected $id;
/**
* @AttributeType String
*/
protected $name;
/**
* @AttributeType String
*/
protected $email;
/**
* @AttributeType String
*/
protected $mobile;
/**
* @AssociationType int
... | apache-2.0 |
agarman/pulsar | pulsar-client/src/main/java/com/yahoo/pulsar/client/impl/BatchMessageIdImpl.java | 2491 | /**
* Copyright 2016 Yahoo 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 ... | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/debug/S_GPROC32_NEW.java | 3162 | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 |
google/mako | cxx/clients/downsampler/standard_downsampler_test.cc | 53105 | // 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
knative/observability | pkg/event/controller_test.go | 4739 | /*
Copyright 2018 The Knative 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, soft... | apache-2.0 |
JavaChat/streems | streems-core/src/main/java/com/github/javachat/streems/Traversal.java | 189 | package com.github.javachat.streems;
/**
* The three different defined ways of traversing an n-ary tree
*/
public enum Traversal
{
PREORDER,
POSTORDER,
BREADTHFIRST,
;
}
| apache-2.0 |
googleapis/java-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerRequest.java | 61038 | /*
* 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 ... | apache-2.0 |
google-code-export/google-api-dfp-java | examples/v201308/creativeservice/UpdateCreativesExample.java | 3431 | // 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... | apache-2.0 |
aspnet/WebHooks | test/Microsoft.AspNetCore.WebHooks.FunctionalTest/ResourceFile.cs | 5802 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Microsoft.AspNetCore.We... | apache-2.0 |
CloudDataObject/appbuilder-mobile-template | mobile template/scripts/app.js | 3845 | (function() {
// store a reference to the application object that will be created
// later on so that we can use it if need be
var app = {
data: {},
mobileApp: {},
jsdoSession: {},
views: {},
viewModels: {}
};
var bootstrap = function() {
$(function() {
... | apache-2.0 |
diffplug/spotless | plugin-gradle/src/test/java/com/diffplug/gradle/spotless/PalantirJavaFormatIntegrationTest.java | 1501 | /*
* Copyright 2022 DiffPlug
*
* 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 |
pmarasse/cas | support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationConfiguration.java | 8550 | package org.apereo.cas.support.wsfederation;
import org.apache.commons.lang3.StringUtils;
import org.opensaml.security.credential.Credential;
import org.opensaml.security.x509.BasicX509Credential;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.Resource;
import javax.annota... | apache-2.0 |
burberius/eve-esi | src/main/java/net/troja/eve/esi/model/FactionWarfareLeaderboardCorporationsKills.java | 6676 | /*
* EVE Swagger Interface
* An OpenAPI for EVE Online
*
* The version of the OpenAPI document: 1.10.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package net.troja.eve.esi.model;
impor... | apache-2.0 |
zoozooll/MyExercise | VV/asmackbeem/org/jivesoftware/smackx/MultipleRecipientManager.java | 14092 | /**
* $RCSfile$
* $Revision: $
* $Date: $
*
* Copyright 2003-2006 Jive Software.
*
* 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/... | apache-2.0 |
pietern/caffe2 | caffe2/python/operator_test/sequence_ops_test.py | 11491 | # Copyright (c) 2016-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | apache-2.0 |
REALTOBIZ/neolua | NeoLua/Parser.cs | 81300 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
namespace Neo.IronLua
{
#region -- class Parser -------------------------------------------------------------
///////... | apache-2.0 |
mihailik/TypeScript | src/compiler/moduleNameResolver.ts | 60982 | /// <reference path="core.ts" />
/// <reference path="diagnosticInformationMap.generated.ts" />
namespace ts {
/* @internal */
export function trace(host: ModuleResolutionHost, message: DiagnosticMessage, ...args: any[]): void;
export function trace(host: ModuleResolutionHost): void {
host.t... | apache-2.0 |
jeremyf/sufia | spec/views/single_user_link/download.html.erb_spec.rb | 133 | require 'spec_helper'
describe "single_user_link/download.html.erb" do
pending "add some examples to (or delete) #{__FILE__}"
end
| apache-2.0 |
pivotalservices/cf-mgmt | serviceaccess/service_plan_test.go | 1052 | package serviceaccess_test
import (
. "github.com/vmwarepivotallabs/cf-mgmt/serviceaccess"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("ServicePlan", func() {
var servicePlan *ServicePlanInfo
Context("Adding org", func() {
It("exists", func() {
servicePlan = &ServicePlanInfo{}
... | apache-2.0 |
spirylics/x-gwt | x-gwt-firebase/src/main/java/com/github/spirylics/xgwt/firebase/auth/AuthResult.java | 247 | package com.github.spirylics.xgwt.firebase.auth;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
@SuppressWarnings("ALL")
@JsType(isNative = true)
public interface AuthResult {
@JsProperty
User getUser();
}
| apache-2.0 |
bigbugbb/PrayerPartner | app/src/main/java/com/bigbug/android/pp/util/PrefUtils.java | 6914 | package com.bigbug.android.pp.util;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Utilities and constants related to app preferences.
*/
public class PrefUtils {
/**
* Boolean preference that when checked, indicates that the us... | apache-2.0 |
tongange/SITC7 | sitc7/src/main/java/qin/sitc7/domain/StudentNativePlace.java | 1717 | package qin.sitc7.domain;
import qin.javaee7.core.hibernate.SuperEntity7;
import qin.sitc7.core.SitcPrint;
import java.util.HashSet;
import java.util.Set;
@SuppressWarnings("all")
public class StudentNativePlace implements SuperEntity7<Long>
{
//region constructor
public StudentNativePlace()
{
Si... | apache-2.0 |
carrotsearch/progresso | progresso/src/main/java/com/carrotsearch/progresso/views/console/UpdateableConsoleView.java | 5723 | package com.carrotsearch.progresso.views.console;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import jav... | apache-2.0 |
Pathfinder-Fr/YAFNET | yafsrc/Lucene.Net/Lucene.Net/Util/Packed/BlockPackedReader.cs | 4365 | using YAF.Lucene.Net.Store;
using System;
using System.Diagnostics;
namespace YAF.Lucene.Net.Util.Packed
{
/*
* 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 ... | apache-2.0 |
electrum/presto | core/trino-main/src/main/java/io/trino/sql/planner/planprinter/IoPlanPrinter.java | 28720 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | apache-2.0 |
henjuv/Mg2 | Mg2/ViewModels/ActionsViewModel.cs | 1733 | using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Threading;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Windows.Input;
using MgKit;
using MgKit.Interface;
namespace Mg2.ViewModels
{
public class ActionsViewModel : S... | apache-2.0 |
korfuri/goref | elasticsearch/filterf_test.go | 584 | package elasticsearch_test
import (
"errors"
"testing"
"github.com/korfuri/goref/elasticsearch"
"github.com/korfuri/goref/elasticsearch/mocks"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
elastic "gopkg.in/olivere/elastic.v5"
)
func TestFilterF(t *testing.T) {
client := &mocks.Clie... | apache-2.0 |
vivsriaus/azure-xplat-cli | test/recordings/arm-cli-cdn-management-tests/arm_Cdn_Endpoints_delete_command_should_delete_the_endpoint_succesfully.nock.js | 7050 | // This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: 'bab71ab8-daff-4f58-8dfc-ed0d61a3fa6b',
name: 'KasotaTest-001',
user: {
... | apache-2.0 |
zcourts/jsc | lib/math_jax.rb | 693 | require File.dirname(__FILE__) + '/plugin'
module JSC
class MathJaxBlock < Liquid::Tag
include JSC::Plugin
def render(ctx)
set_ctx ctx
math_jax + '<script type="math/tex; mode=display">'
end
end
class MathJaxInline < Liquid::Tag
include JSC::Plugin
def render(ctx)
set_ctx c... | apache-2.0 |
nevins-b/lemur | lemur/plugins/lemur_aws/sts.py | 3171 | """
.. module: lemur.plugins.lemur_aws.sts
:platform: Unix
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
"""
from functools import wraps
import boto
import boto.ec2.elb
import boto3
from fla... | apache-2.0 |
PathVisio/libGPML | org.pathvisio.lib/src/main/java/org/pathvisio/model/type/ArrowHeadType.java | 4613 | /*******************************************************************************
* PathVisio, a tool for data visualization and analysis using biological pathways
* Copyright 2006-2021 BiGCaT Bioinformatics, WikiPathways
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this fi... | apache-2.0 |
PureSolTechnologies/graphs | statemodel/src/main/java/com/puresoltechnologies/graphs/statemodel/StateModel.java | 3246 | package com.puresoltechnologies.graphs.statemodel;
import java.util.Set;
import com.puresoltechnologies.graphs.graph.Graph;
/**
* This is an interface for a state model.
*
* @author Rick-Rainer Ludwig
*/
public interface StateModel<S extends State<S, T>, T extends Transition<S, T>> extends Graph<S, T> {
/*... | apache-2.0 |
vam-google/google-cloud-java | google-cloud-clients/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgents.java | 1566 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
terma/gigaspace-web-console | provider/src/main/java/com/github/terma/gigaspacewebconsole/provider/executor/ZeroExecutorPreprocessor.java | 791 | /*
Copyright 2015-2017 Artem Stasiuk
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, softw... | apache-2.0 |
Longi94/spicio | app/src/main/java/com/tlongdev/spicio/domain/interactor/impl/LoadSeriesDetailsInteractorImpl.java | 2026 | package com.tlongdev.spicio.domain.interactor.impl;
import com.tlongdev.spicio.SpicioApplication;
import com.tlongdev.spicio.domain.interactor.AbstractInteractor;
import com.tlongdev.spicio.domain.interactor.LoadSeriesDetailsInteractor;
import com.tlongdev.spicio.domain.model.Series;
import com.tlongdev.spicio.storage... | apache-2.0 |
TreetonOrg/Treeton | dev/treetonCore/src/treeton/core/util/MapComparator.java | 2798 | /*
* Copyright Anatoly Starostin (c) 2017.
*/
package treeton.core.util;
import java.util.Comparator;
import java.util.Map;
public class MapComparator implements Comparator {
private Object[] keys;
public MapComparator(Object[] keys) {
this.keys = keys;
}
/**
* Этот метод сравнивает ... | apache-2.0 |
infanprodigy/blog-iz | BlogEngine.NET/App_Code/Extensions/CodeFormatter/JavaScriptFormat.cs | 2484 | #region Copyright © 2001-2003 Jean-Claude Manoli [jc@manoli.net]
/*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the author(s) be held liable for any damages arising from
* the use of this software.
*
* Permission is granted to anyone to use this s... | apache-2.0 |
talsma-ict/umldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/tim/StringEater.java | 1389 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | apache-2.0 |
marionschlotte/hana-shine-xsa | web/resources/admin-ui/Component.js | 3220 | jQuery.sap.declare("sap.hana.democontent.epm.admin.Component");
jQuery.sap.require("sap.m.MessageBox");
jQuery.sap.require("sap.m.MessageToast");
sap.ui.core.UIComponent.extend("sap.hana.democontent.epm.admin.Component",{
metadata : {
name : "SHINE - Data Generator",
version : "1",
includes : [... | apache-2.0 |
federkasten/casmi-io-examples | src/main/java/casmi/io/parser/XMLExample.java | 3399 | /*
* casmi examples
* http://casmi.github.com/
* Copyright (C) 2011, Xcoo, 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
... | apache-2.0 |
HazelChen/directory-kerberos | contrib/haox-asn1/src/main/java/org/apache/haox/asn1/type/Asn1Sequence.java | 1106 | /**
* 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"... | apache-2.0 |
googleapis/java-aiplatform | proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java | 41559 | /*
* 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 ... | apache-2.0 |
software-engineering-amsterdam/poly-ql | skatt/QL/src/org/uva/sea/ql/parser/antlr/QL4/QL4Visitor.java | 970 | package org.uva.sea.ql.parser.antlr.QL4;
import QL4.QL4BaseVisitor;
import QL4.QL4Parser;
/**
* A visitor for the QL4 grammar. Visits a tree parsed by the Antlr4
* generated QL4parser on the QL4 grammar. Extends the QL4BaseVisitor
* generated by Antrl4 and implements any function that needs
* a more sophisticated... | apache-2.0 |
tectronics/faint-graphics-editor | app/app.cpp | 13911 | // -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// 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 |
hortonworks/cloudbreak | cloud-api/src/main/java/com/sequenceiq/cloudbreak/cloud/model/ConfigSpecification.java | 1639 | package com.sequenceiq.cloudbreak.cloud.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ConfigSpecification {
private static final Integer LIMIT = 24;
@JsonProperty("volumeParameterType")
private String volumeParameterType;
@JsonProperty("minimumSize")
private String m... | apache-2.0 |
ChinaQuants/OG-Platform | projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/equity/Equity.java | 2761 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.equity;
import java.io.Serializable;
import org.apache.commons.lang.ObjectUtils;
import com.opengamma.analytics.financial.interestrate.In... | apache-2.0 |
yantian001/2DShooting | Assets/2DShooting/Scripts/Joystick/JoystickShoot.cs | 764 | using UnityEngine;
using System.Collections;
using UnityStandardAssets.CrossPlatformInput;
public class JoystickShoot : MonoBehaviour {
public Weapon weapon;
bool isPressed = false;
bool isCombo = false;
// Use this for initialization
void Start () {
if (weapon == null) {
weapon = GetComponent<Weapon>();... | apache-2.0 |
opentext/appworks-js | src/plugins/notifications/notifications.js | 4018 | "use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... | apache-2.0 |
malooba/flow-monitor | FlowMonitor/ViewModules/Workflows/WorkflowSelector.cs | 2614 | //Copyright 2016 Malooba 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
// http://www.apache.org/licenses/LICENSE-2.0
//Unless required by applicable law or agreed to in writing, so... | apache-2.0 |
Ahmed-Abdelmeged/ADAS | app/src/main/java/com/example/mego/adas/videos/api/model/VideoPhoto.java | 1568 | /*
* Copyright (c) 2017 Ahmed-Abdelmeged
*
* github: https://github.com/Ahmed-Abdelmeged
* email: ahmed.abdelmeged.vm@gamil.com
* Facebook: https://www.facebook.com/ven.rto
* Twitter: https://twitter.com/A_K_Abd_Elmeged
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... | apache-2.0 |
spodkowinski/ccm | ccmlib/common.py | 16841 | #
# Cassandra Cluster Management lib
#
import os
import platform
import re
import shutil
import socket
import stat
import subprocess
import sys
from six import print_
import time
import yaml
import fnmatch
BIN_DIR= "bin"
CASSANDRA_CONF_DIR= "conf"
DSE_CASSANDRA_CONF_DIR="resources/cassandra/conf"
OPSCENTER_CONF_DIR= ... | apache-2.0 |
GuiSevero/ufsm-planos-de-aula | protected/config/main.dev.php | 2590 | <?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Planos ... | apache-2.0 |
JaredMiller/Wave | test/org/waveprotocol/box/server/waveserver/PerUserWaveViewSubscriberTest.java | 3745 | /**
* Copyright 2012 Apache Wave
*
* 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 |
uralian/ignition | src/main/scala/com/ignition/samples/MultiSessionStreaming.scala | 2575 | package com.ignition.samples
import org.apache.spark.streaming.Seconds
import com.ignition.{ ExecutionException, frame, stream }
import com.ignition.types.{ RichStructType, fieldToRichStruct, int, string }
import com.ignition.SparkHelper
object MultiSessionStreaming extends App {
def testFrames() = {
implicit ... | apache-2.0 |
googleads/google-ads-dotnet | src/V7/Services/MobileAppCategoryConstantServiceGrpc.g.cs | 14380 | // <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v7/services/mobile_app_category_constant_service.proto
// </auto-generated>
// Original file comments:
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License")... | apache-2.0 |
fusepoolP3/punditTransformer | punditTransformer/src/Net7/PunditTransformerBundle/Entity/TaskRepository.php | 268 | <?php
namespace Net7\PunditTransformerBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* TaskRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class TaskRepository extends EntityRepository
{
}
| apache-2.0 |
Said-Young/Phalcon-Backbone | public/app/module/common.js | 289 | define(['m/emptyModel'],
function(model) {
function error(mc, resp, options) {
console.log(resp.message);
}
function getModel(options) {
var new_model = new model(options);
new_model.on('error', error);
return new_model;
}
return {
getModel: getModel
}
}
) | apache-2.0 |
xuzhongxing/deeplearning4j | deeplearning4j-nlp-parent/deeplearning4j-nlp-uima/src/main/java/org/deeplearning4j/text/tokenization/tokenizer/preprocessor/StemmingPreprocessor.java | 712 | package org.deeplearning4j.text.tokenization.tokenizer.preprocessor;
import org.tartarus.snowball.ext.PorterStemmer;
/**
* This tokenizer preprocessor implements basic cleaning inherited from CommonPreprocessor + does english Porter stemming on tokens
*
* PLEASE NOTE: This preprocessor is thread-safe by using sync... | apache-2.0 |
nemigaservices/unpack-bower-dependency-maven-plugin | src/main/java/org/kaazing/bower/dependency/maven/plugin/UnpackBowerDependencyMojo.java | 8267 | /**
* Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this fil... | apache-2.0 |
openview2017/openview | service/src/main/java/com/huawei/openview/devops/domain/admin/AppStatus.java | 928 | package com.huawei.openview.devops.domain.admin;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import lombok.Data;
/**
* @author Sid Askary
*
*/
@Data
@JsonInclude(J... | apache-2.0 |
HFATFAT/Chocolate | app/src/main/java/com/hzj/chocolate/chocolate/adapter/StaggeredRecyclerViewSimpleAdapter.java | 5433 | package com.hzj.chocolate.chocolate.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import and... | apache-2.0 |
RobbertJanSW/knife-windows | lib/chef/knife/windows_listener_create.rb | 3871 | # Author:: Mukta Aphale (<mukta.aphale@clogeny.com>)
# Copyright:: Copyright (c) 2014-2016 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Lic... | apache-2.0 |
dvabuzyarov/moq.ts | projects/moq/src/lib/verification/verification-tester.ts | 654 | import { Times } from "../times";
import { VerifyFormatter } from "../formatters/verify.formatter";
import { VerifyError } from "./verify-error";
import { Expressions } from "../reflector/expressions";
/**
* @hidden
*/
export class VerificationTester {
constructor(private readonly verifyFormatter: VerifyFormatte... | apache-2.0 |
GoogleChrome/lighthouse | lighthouse-core/audits/byte-efficiency/unminified-javascript.js | 5212 | /**
* @license Copyright 2017 The Lighthouse 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 applica... | apache-2.0 |
nnkarpov/csharp_training | addressbook-web-tests/addressbook-web-tests/Properties/AssemblyInfo.cs | 643 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("addressbook-web-tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("addressbook-web-tests")]
[assemb... | apache-2.0 |
shagraths/LinaExpress | application/models/modelopdf.php | 263 | <?php
class modelopdf extends CI_Model {
function traerDatosNombre($nombreArchivo){
$this->db->select('*');
$this->db->where('NombreArchivo', $nombreArchivo);
return $this->db->get('Excel');
}
}
?>
| apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/transform/ListSecurityPoliciesRequestMarshaller.java | 2392 | /*
* 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 |
facug91/OJ-Solutions | uva.onlinejudge.org/ThreeFamilies.cpp | 848 | /*
By: facug91
From: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3946
Name: Three Families
Date: 14/02/2015
*/
#include <bits/stdc++.h>
#define MAX_INT 2147483647
#define MAX_LONG 9223372036854775807ll
#define MAX_DBL 1.797693... | apache-2.0 |
bukhmastov/Cardiograph | app/src/main/java/com/bukhmastov/cardiograph/activities/SplashActivity.java | 728 | package com.bukhmastov.cardiograph.activities;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.content.Intent;
import com.bukhmastov.cardiograph.R;
public class SplashActivity extends AppCompatActivity {
@Override
protect... | apache-2.0 |
frett/cas | core/cas-server-core-monitor/src/test/java/org/apereo/cas/monitor/CacheHealthIndicatorTests.java | 3500 | package org.apereo.cas.monitor;
import org.apereo.cas.config.support.EnvironmentConversionServiceInitializer;
import org.apereo.cas.configuration.CasConfigurationProperties;
import lombok.val;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import org.springframework.beans.factory.annotation... | apache-2.0 |
NetApp/manila | manila/api/v2/consistency_groups.py | 9561 | # Copyright 2015 Alex Meade
# 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 ap... | apache-2.0 |
ustudio/shaka-player | lib/media/streaming_engine.js | 57579 | /**
* @license
* Copyright 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 ... | apache-2.0 |
Cobrand/toyunda-player-rs | web/js/toyunda-manager.js | 9592 | function human_since(timestamp){
if (timestamp == null) {
return "Jamais";
}
var cur_timestamp = Date.now() / 1000;
var delta = (cur_timestamp - timestamp) / 3600;
if (delta < 1) {
return "< 1h";
} else if (delta < 48) {
return Math.floor(delta)+"h";
} else {
return Math.floor(delta / 24) + "j";
}
}
fu... | apache-2.0 |
aspuru-guzik-group/mission_control | mc/houston/subcommands/info.py | 1144 | from ._base_subcommand import BaseSubcommand
class Subcommand(BaseSubcommand):
def add_arguments(self, parser=None):
parser.add_argument('--key', help="key for a single object")
def _run(self):
key = self.parsed_args.get('key')
if key:
info = self._get_info_for_key(key=key... | apache-2.0 |
JohnyEngine/CNC | opencamlib/src/dropcutter/pathdropcutter.hpp | 2174 | /* $Id$
*
* Copyright 2010 Anders Wallin (anders.e.e.wallin "at" gmail.com)
*
* This file is part of OpenCAMlib.
*
* OpenCAMlib is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3... | apache-2.0 |
cask-solutions/dre | dre-service/src/main/java/co/cask/yare/ServiceUtils.java | 2888 | /*
* Copyright © 2017-2018 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 o... | apache-2.0 |
x-meta/xworker | xworker_core/src/main/java/xworker/lang/actions/text/GrabDataFromText.java | 4311 | /*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* 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:/... | apache-2.0 |
razvanphp/arangodb | UnitTests/HttpInterface/api-cursor-spec.rb | 24208 | # coding: utf-8
require 'rspec'
require 'arangodb.rb'
describe ArangoDB do
api = "/_api/cursor"
prefix = "api-cursor"
context "dealing with cursors:" do
before do
@reId = Regexp.new('^\d+$')
end
################################################################################
## error handling
##... | apache-2.0 |
Strepped/yvlasov | chapter_001/src/test/java/ru/job4j/loop/PaintTest.java | 904 | package ru.job4j.loop;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test.
*
* @author Yury Vlasov
* @since 14.04.2017
* @version 1.0
*/
public class PaintTest {
/**
* Test add.
*/
@Test
public void whenPiramidWithHeightTwoThenStringWithTwo... | apache-2.0 |
davidtsadler/ebay-sdk-php | test/Merchandising/Types/MerchandisingServiceProductResponseTest.php | 904 | <?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\Test\Merchandising\Types;
use DTS\eBaySDK\Merchandising\Types\MerchandisingServiceProductR... | apache-2.0 |
ubiquitous-computing-lab/Mining-Minds | supporting-layer/uiux-authoring-tool/accounts/forms.py | 3221 | """
# UI/UX Authoring Tool
# @license http://www.apache.org/licenses/LICENSE-2.0
# Author @ Jamil Hussain
"""
from django import forms
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.contrib.auth import authenticate, get_user_model
from django.core.validators import RegexValidator
from dj... | apache-2.0 |
randerzander/SequenceFileKeyValueInputFormat | src/main/java/com/github/randerzander/SequenceFileKeyValueInputFormat/SequenceFileKeyValueRecordReader.java | 2538 | package com.github.randerzander;
import java.io.IOException;
import java.io.*;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.SequenceFile;
import ... | apache-2.0 |
sassoftware/conary | conary/cmds/updatecmd.py | 44470 | #
# Copyright (c) SAS Institute 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 w... | apache-2.0 |
AutohomeOps/Assets_Report | assets_report/lib/facter/nic_info.rb | 7165 | # encoding: utf-8
require "rubygems"
require 'json'
def more_ip_plan_for_win(nic_name,nic)
nic_name_count = 0
new_nic_name = nic_name
while nic.has_key?(new_nic_name)
new_nic_name = new_nic_name.split(":")[0] + ":" + nic_name_count.to_s
nic_name_count += 1
end
nic[new_nic_name] = {}
nic[new_nic_nam... | apache-2.0 |
adayanesupri/glpi_supri | inc/group.class.php | 21837 | <?php
/*
* @version $Id: group.class.php 19073 2012-08-06 12:47:36Z yllen $
-------------------------------------------------------------------------
GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2012 by the INDEPNET Development Team.
http://indepnet.net/ http://glpi-project.org
-----------... | apache-2.0 |
AlanJager/zstack | plugin/localstorage/src/main/java/org/zstack/storage/primary/local/LocalStorageHypervisorBackend.java | 5455 | package org.zstack.storage.primary.local;
import org.zstack.header.cluster.ClusterInventory;
import org.zstack.header.core.Completion;
import org.zstack.header.core.ReturnValueCompletion;
import org.zstack.header.core.workflow.Flow;
import org.zstack.header.image.ImageInventory;
import org.zstack.header.storage.primar... | apache-2.0 |