repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
JaLandry/MeasureAuthoringTool_LatestSprint | mat/src/mat/model/clause/QDSAttributes.java | 1540 | package mat.model.clause;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* The Class QDSAttributes.
*/
public class QDSAttributes implements IsSerializable {
/** The id. */
private String id;
/** The name. */
private String name;
/** The data type id. */
private String dataTypeId;
/** The ... | apache-2.0 |
tfr42/j2ep | src/test/java/net/sf/j2ep/test/DirectoryRuleTest.java | 4706 | /*
* Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | apache-2.0 |
jawadn/Tcheckit-android | src/com/fortutech/tcheckit/ejb/sessions/QuestionUniqueChoice.java | 1236 | package com.fortutech.tcheckit.ejb.sessions;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
public final class QuestionUniqueChoice extends Question {
private com.fortutech.tcheckit.ejb.sessions.ChoiceQuestion[] listChoice;
public Questio... | apache-2.0 |
DV8FromTheWorld/JDA | src/main/java/net/dv8tion/jda/api/interactions/components/buttons/ButtonStyle.java | 2531 | /*
* Copyright 2015 Austin Keener, Michael Ritter, Florian Spieß, and the JDA contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | apache-2.0 |
MienDev/IdentityServer4 | src/IdentityServer4/src/Models/DeviceFlowAuthorizationRequest.cs | 878 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Collections.Generic;
namespace IdentityServer4.Models
{
/// <summary>
/// Represents contextual information about a devi... | apache-2.0 |
emaskovsky/examples-other | Genetic Algorithms/stxFramework/src/com/styryx/gui/RootPanelHolder.java | 1163 | package com.styryx.gui;
import java.util.Locale;
import javax.swing.*;
public interface RootPanelHolder {
public abstract class PanelInitializer {
public static PanelInitializer create(RootPanelHolder holder) {
PanelInitializer initializer = holder.createPanelInitializer();
if (null == initializer) {
... | apache-2.0 |
slvrgauthier/archives | Fac/Master/IN207/Warbot/src/trashier/LauncherGui.java | 9507 | /*
* LauncherGui.java -TurtleKit - A 'star logo' in MadKit
* Copyright (C) 2000-2007 Fabien Michel, Gregory Beurier
*
* This program 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 2... | apache-2.0 |
tadayosi/camel | core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/KafkaComponentBuilderFactory.java | 96349 | /*
* 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 |
wates/aws-sdk-cpp | aws-cpp-sdk-sqs/source/model/ListQueuesResult.cpp | 1918 | /*
* Copyright 2010-2015 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" file... | apache-2.0 |
a-manumohan/finagle | finagle-mux/src/test/scala/com/twitter/finagle/mux/ServerTest.scala | 10980 | package com.twitter.finagle.mux
import com.twitter.concurrent.AsyncQueue
import com.twitter.conversions.time._
import com.twitter.finagle.context.Contexts
import com.twitter.finagle.mux.lease.exp.{Lessor, nackOnExpiredLease}
import com.twitter.finagle.mux.transport.Message
import com.twitter.finagle.netty3.BufChannelB... | apache-2.0 |
helight/helight_code | go_code/ichat/ichat.go | 2383 | package main
import (
"fmt"
"context"
)
func GetNews() {
//先进入gocn的每日新闻列表
doc, err := goquery.NewDocument("https://gocn.vip/explore/category-14")
if err != nil {
ctx.Error("New index document fail, err :%v\n", err)
return
}
list := doc.Find("a:contains(GoCN)")
if list == nil {
fmt.Printf("list is empt... | apache-2.0 |
msgilligan/bitcoinj-addons | consensusj-jsonrpc-daemon/src/main/java/org/consensusj/jsonrpc/daemon/EchoJsonRpcService.java | 880 | package org.consensusj.jsonrpc.daemon;
import org.consensusj.jsonrpc.introspection.AbstractJsonRpcService;
import org.consensusj.jsonrpc.introspection.JsonRpcServiceWrapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Singleton;
import java.lang.invoke.MethodHandles;
import java.lang.... | apache-2.0 |
MICommunity/psi-jami | jami-bridges/jami-ontology-manager/src/main/java/psidev/psi/mi/jami/bridges/ontologymanager/MIOntologyTermI.java | 1006 | package psidev.psi.mi.jami.bridges.ontologymanager;
import psidev.psi.mi.jami.model.OntologyTerm;
import psidev.psi.tools.ontology_manager.interfaces.OntologyTermI;
import java.util.Set;
/**
* Extension of OntologyTermI for jami
*
* @author Marine Dumousseau (marine@ebi.ac.uk)
* @version $Id$
* @since <pre>01/1... | apache-2.0 |
Redvvolf/SecureSharedPref | app/src/main/java/com/nurisezgin/securesharedpreferences/pref/crypto/AESCrypto.java | 1767 | package com.nurisezgin.securesharedpreferences.pref.crypto;
import android.util.Base64;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
/**
* Created by nurisezgin on 08/02/2017.
* This is sample class for how to implementation "Cryptography" for your own SharedPreferences
* Provider.
*/
pub... | apache-2.0 |
8090boy/gomall.la | legendshop/src/java/com/legendshop/business/controller/MessageController.java | 3734 | /*
*
* LegendShop 多用户商城系统
*
* 版权所有,并保留所有权利。
*
*/
package com.legendshop.business.controller;
import java.util.ResourceBundle;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.ann... | apache-2.0 |
torrances/swtk-commons | commons-dict-wiktionary/src/main/java/org/swtk/commons/dict/wiktionary/generated/c/e/v/WiktionaryCEV000.java | 990 | package org.swtk.commons.dict.wiktionary.generated.c.e.v; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.swtk.common.dict.dto.wiktionary.Entry; import com.trimc.blogger.commons.utils.GsonUtils; public class WiktionaryCEV000 { private static Map<String, Entry> map = new Has... | apache-2.0 |
EsriUK/OnlineServicesAddin | DataHubServicesAddin/Properties/AssemblyInfo.cs | 1434 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 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("Da... | apache-2.0 |
LegNeato/buck | src/com/facebook/buck/apple/SceneKitAssets.java | 5574 | /*
* Copyright 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... | apache-2.0 |
icemagno/mclm | src/main/webapp/app/store/LayerTree.js | 2307 | Ext.define('MCLM.store.LayerTree', {
extend: 'Ext.data.TreeStore',
requires: [
'MCLM.model.LayerTreeModel'
],
storeId: 'store.layerTree',
autoSync: false,
model: 'MCLM.model.LayerTreeModel',
remoteFilter: true,
proxy: {
type: 'ajax',
reader: {
type: 'j... | apache-2.0 |
gchq/stroom | stroom-ui/src/components/Authentication/usePasswordPolicy.ts | 674 | // Get token config
import { useEffect, useState } from "react";
import { PasswordPolicyConfig } from "api/stroom";
import { useStroomApi } from "lib/useStroomApi";
export const usePasswordPolicy = (): PasswordPolicyConfig => {
const [passwordPolicyConfig, setPasswordPolicyConfig] =
useState<PasswordPolicyConfig... | apache-2.0 |
mscook/pyParaTools | ParaUtils.py | 8999 | """Utility methods for paramagnetic observables """
import math
from numpy import *
def ZXZRot(A, B, G, scal=1.0):
"""
Builds the ZXZ rotation matrix given 3 Euler Angles. See:
http://mathworld.wolfram.com/EulerAngles.html
@param A : The (A)lpha angle
@type A : float
@param B :... | apache-2.0 |
grahamgilbert/macnamer | namer/migrations/0006_auto__add_field_computergroup_key__add_unique_network_network.py | 2588 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'ComputerGroup.key'
db.add_column(u'namer_computergroup', 'key',
self.g... | apache-2.0 |
pravega/pravega | segmentstore/storage/src/main/java/io/pravega/segmentstore/storage/chunklayer/ChunkStorageException.java | 1565 | /**
* Copyright Pravega 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... | apache-2.0 |
adriespina/testcuv | CuvooApi/CuvooApi/Areas/HelpPage/HelpPageConfigurationExtensions.cs | 24070 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web.Http;
using System.Web... | apache-2.0 |
groupe-sii/ogham | ogham-core/src/test/java/mock/condition/annotation/SeveralRequiredClasses.java | 217 | package mock.condition.annotation;
import fr.sii.ogham.core.builder.condition.RequiredClasses;
@RequiredClasses({"class.required.1", "class.required.2", "class.required.3"})
public class SeveralRequiredClasses {
}
| apache-2.0 |
zhengxgs/elasticsearch-2.4.1 | core/src/test/java/org/elasticsearch/search/SearchServiceTests.java | 7747 | /*
* 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 |
mylxsw/arsenals | Arsenals/Core/Benchmark.php | 1044 | <?php
namespace Arsenals\Core;
if (!defined('APP_NAME')) {
exit('Access Denied!');
}
/**
* 基准测试类
* 参考CI框架.
*
* @author 管宜尧<mylxsw@126.com>
*/
class Benchmark
{
private $_marker = [];
/**
* 记录一个时间点.
*
* @param unknown $name
*/
public function mark($name)
{
$this->_... | apache-2.0 |
uakfdotb/Billing | src/App/AdminBundle/Business/ServerGroup/CreateModel.php | 183 | <?php
namespace App\AdminBundle\Business\ServerGroup;
class CreateModel
{
public $name;
public $description;
public $type;
public $choiceLogic;
public $primary;
} | apache-2.0 |
johnnAlex/Evaluador_Sintactico | ProyectoSintactico/src/model/utilities/Useful.java | 6736 | package model.utilities;
import java.util.Comparator;
import model.entities.ListVariables;
import model.entities.ListsReserved;
import model.entities.ListTerms;
import model.logic.List;
import persistence.Texto;
public class Useful {
private static final int TERMS_QUANTITY_SINGLE_CHAR = 10;
private String text;
... | apache-2.0 |
wyyyy/library | src/com/library/bean/EntityZh/RootZhihu.java | 3607 | package com.library.bean.EntityZh;
import java.io.Serializable;
import java.util.List;
public class RootZhihu implements Serializable
{
/**
*
*/
private static final long serialVersionUID = -5518677861267068851L;
private String rating;
private String sourceUrl;
private String publishedTime;
private Lin... | apache-2.0 |
phenoxim/nova | nova/utils.py | 45083 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | apache-2.0 |
lehmann/BrainSimulator | app/src/main/java/com/github/neuralnetworks/training/backpropagation/BackpropagationMaxout.java | 5496 | package com.github.neuralnetworks.training.backpropagation;
import com.github.neuralnetworks.architecture.Connections;
import com.github.neuralnetworks.architecture.Layer;
import com.github.neuralnetworks.calculation.memory.ValuesProvider;
import com.github.neuralnetworks.calculation.neuronfunctions.AparapiFullyConnec... | apache-2.0 |
raulavila/tempus-fugit | src/main/java/com/google/code/tempusfugit/condition/ThreadAliveCondition.java | 1004 | /*
* Copyright (c) 2009-2015, toby weston & tempus-fugit committers
*
* 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 |
DIPlib/diplib | src/morphology/basic.cpp | 64554 | /*
* (c)2017, Cris Luengo.
* Based on original DIPlib code: (c)1995-2014, Delft University of Technology.
*
* 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 |
webadvancedservicescom/magento | app/code/Magento/Ui/Component/Filter/Type/Select.php | 585 | <?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
namespace Magento\Ui\Component\Filter\Type;
use Magento\Ui\Component\Filter\FilterAbstract;
/**
* Class Select
*/
class Select extends FilterAbstract
{
/**
* Get condition by data type
*
* @param stri... | apache-2.0 |
Thingee/cinder | cinder/api/contrib/volume_actions.py | 15333 | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 |
null7/haiegoo | haiegoo/src/com/haiegoo/web/Shopcar.java | 544 | package com.haiegoo.web;
import com.haiegoo.framework.web.HttpServletExtendRequest;
import com.haiegoo.framework.web.HttpServletExtendResponse;
import com.haiegoo.ucenter.utils.controller.PageController;
import org.springframework.web.servlet.ModelAndView;
/**
* 购物车
* @author Linpan
*
*/
public class ... | apache-2.0 |
CXuesong/MwParserFromScratch | UnitTestProject1/Utility.cs | 6326 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using MwParserFromScratch.Nodes;
namespace UnitTestProject1
{
internal static class Utility
{
private static readonly Dictionary<Type, Func<Node, string... | apache-2.0 |
lutzfischer/XiSearch | src/main/java/rappsilber/ms/score/AutoValidation.java | 127549 | /*
* Copyright 2016 Lutz Fischer <l.fischer@ed.ac.uk>.
*
* 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 |
studiodev/archives | 2009 - Team D4 (IxGamer)/include/Editor/assetmanager/language/spanish/foldernew.js | 591 | function getText(s)
{
switch(s)
{
case "Folder already exists.": return "La carpeta ya existe.";
case "Folder created.": return "Carpeta creada.";
case "Invalid input.":return "Nombre no valido.";
}
}
function loadText()
{
document.getElementById("txtLang").inn... | apache-2.0 |
benmfaul/XRTB | src/com/xrtb/tools/MaxLoad.java | 2313 | package com.xrtb.tools;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import com.xrtb.common.HttpPostGet;
/**
* Test program for loading maximum bids into a RTB4FREE bidder.
* @author Ben M. Faul
*
*/
public class MaxLoad implements Runnable {
String fileName ... | apache-2.0 |
kuzmordas/akuznetsov | chapter_002/src/test/java/ru/job4j/shape/PaintTest.java | 1780 | package ru.job4j.shape;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Paint test.
* @author Aleksandr Kuznetsov
* @version $Id$
* @since 0.1
*/
public class PaintTest {
/**
... | apache-2.0 |
s-webber/projog | src/main/java/org/projog/core/predicate/builtin/io/Open.java | 2599 | /*
* Copyright 2013 S. Webber
*
* 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 |
streamingpool/streamingpool-core | src/java/org/streamingpool/core/service/streamid/CompositionStreamId.java | 4390 | // @formatter:off
/**
*
* This file is part of streaming pool (http://www.streamingpool.org).
*
* Copyright (c) 2017-present, CERN. 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 L... | apache-2.0 |
socibo/socibo-camel-loader | src/main/java/co/socibo/social/quickstart/user/SimpleConnectionSignUp.java | 1315 | /*
* Copyright 2014 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 |
romartin/kie-wb-common | kie-wb-common-widgets/kie-wb-common-ui/src/test/java/org/kie/workbench/common/widgets/client/assets/dropdown/KogitoKieAssetsDropdownTest.java | 5073 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
macchina-io/macchina.io | platform/Util/testsuite/src/ConfigurationMapperTest.cpp | 6667 | //
// ConfigurationMapperTest.cpp
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "ConfigurationMapperTest.h"
#include "CppUnit/TestCaller.h"
#include "CppUnit/TestSuite.h"
#include "Poco/Util/ConfigurationMapper.h"
... | apache-2.0 |
rabsouza/arcadia-caller | src/main/java/br/com/battista/arcadia/caller/validator/EntityValidator.java | 1348 | package br.com.battista.arcadia.caller.validator;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annot... | apache-2.0 |
digitalocean/doctl | commands/balance_test.go | 1306 | /*
Copyright 2018 The Doctl Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | apache-2.0 |
Happypig375/InnoTech-eLearning | InnoTecheLearning/InnoTecheLearning/InnoTecheLearning/Components/StreamPlayerLegacy.cs | 3969 | using System.IO;
using System.Threading.Tasks;
using static InnoTecheLearning.Utils;
namespace InnoTecheLearning
{
/// <summary>
/// Used to be the <see cref="StreamPlayer"/> between 0.10.0a51 to 0.10.0a64
/// </summary>
public class StreamPlayerLegacy : ISoundPlayer, System.IDisposable
{
... | apache-2.0 |
y3seker/EgeYemekhaneMobil | app/src/main/java/com/y3seker/egeyemekhanemobil/utils/ParseUtils.java | 3454 | /*
* Copyright 2015 Yunus Emre Şeker. 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 |
MegafonWebLab/histone-java2 | spring/src/test/java/ru/histone/v2/spring/resource/loader/ServletContextLoaderTest.java | 3905 | package ru.histone.v2.spring.resource.loader;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springfra... | apache-2.0 |
lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_3891.java | 151 | package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_3891 {
}
| apache-2.0 |
dialectsoftware/DialectSoftware.Networking | Examples/BroadcastClient/Program.cs | 1035 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Threading;
using DialectSoftware.Networking;
using System.Net.NetworkInformation;
namespace DialectSoftware
{
class Program
{
static DialectSoftware.Networking.BroadcastClient client = ... | apache-2.0 |
lsimons/phloc-schematron-standalone | phloc-commons/src/test/java/com/phloc/commons/charset/CharsetManagerTest.java | 9805 | /**
* Copyright (C) 2006-2013 phloc systems
* http://www.phloc.com
* office[at]phloc[dot]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/license... | apache-2.0 |
support-project/knowledge | src/main/java/org/support/project/knowledge/dao/MailPostsDao.java | 605 | package org.support.project.knowledge.dao;
import org.support.project.di.Container;
import org.support.project.di.DI;
import org.support.project.di.Instance;
import org.support.project.knowledge.dao.gen.GenMailPostsDao;
/**
* メールから投稿
*/
@DI(instance = Instance.Singleton)
public class MailPostsDao extends GenMailPo... | apache-2.0 |
JeroMiya/hifi-typescript | HiFi/examples/crazylegs.js | 1448 | //
// crazylegs.js
// examples
//
// Created by Andrzej Kapolka on 3/6/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var FREQUENCY = 5.0;
var AMPLITUDE = 45.0;
var cum... | apache-2.0 |
JonasSyrstad/Stardust.Interstellar.Rest | Stardust.Interstellar.Test/App_Start/FilterConfig.cs | 281 | using System.Web;
using System.Web.Mvc;
namespace Stardust.Interstellar.Test
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
}
}
| apache-2.0 |
EpicMinecraftModders/EquivalentExperienceExchange | src/main/java/src/com/github/epicminecraftmodders/eee/TabEEE.java | 323 | package com.github.epicminecraftmodders.eee;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class TabEEE extends CreativeTabs {
public TabEEE(int index, String label) {
super(index, label);
}
@Override
public Item getTabIconItem() {
return ModEEE.experienceDiamond;
}
... | apache-2.0 |
InjectMe/InjectMe | src/InjectMe.Tests/Activation/TransientHierarchicalActivationTests.cs | 1239 | using InjectMe.Construction;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace InjectMe.Tests.Activation
{
[TestClass]
public class TransientHierarchicalActivationTests : TestBase
{
[TestMethod]
public void HierarchicalTransientServicesShouldActivateTheSameInstance()
{
... | apache-2.0 |
bmwcarit/joynr | java/core/libjoynr/src/main/java/io/joynr/proxy/DiscoverySettingsStorage.java | 2864 | /*
* #%L
* %%
* Copyright (C) 2020 BMW Car IT 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 app... | apache-2.0 |
Nodstuff/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AuditSourceTypeEnumFactory.java | 3278 | package org.hl7.fhir.instance.model.valuesets;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain th... | apache-2.0 |
metaborg/spoofax | org.metaborg.spoofax.core/src/main/java/org/metaborg/spoofax/core/syntax/SourceAttachment.java | 2488 | package org.metaborg.spoofax.core.syntax;
import static org.spoofax.jsglr.client.imploder.ImploderAttachment.hasImploderOrigin;
import static org.spoofax.terms.attachments.OriginAttachment.getOrigin;
import org.apache.commons.vfs2.FileObject;
import org.metaborg.core.resource.IResourceService;
import org.spoofax.inte... | apache-2.0 |
karussell/fastutil | src/it/unimi/dsi/fastutil/bytes/ByteHeapIndirectPriorityQueue.java | 8290 | /* Generic definitions */
/* Assertions (useful to generate conditional code) */
/* Current type and class (and size, if applicable) */
/* Value methods */
/* Interfaces (keys) */
/* Interfaces (values) */
/* Abstract implementations (keys) */
/* Abstract implementations (values) */
/* Static containers (keys) */
/... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/transform/DeleteTagsResultJsonUnmarshaller.java | 1558 | /*
* 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 |
whisher/angular-expresso | gulp/tasks/serve.js | 912 | 'use strict';
var gulp = require('gulp');
var browserSync = require('browser-sync');
var nodemon = require('gulp-nodemon');
var BROWSER_SYNC_RELOAD_DELAY = 3000;
gulp.task('nodemon', function (cb) {
var called = false;
return nodemon({
// nodemon our expressjs server
script: 'server.js',
// watch core server file(s) ... | apache-2.0 |
kibertoad/swampmachine | swampmachine-api/src/main/java/net/kiberion/swampmachine/api/elements/ButtonContainer.java | 451 | package net.kiberion.swampmachine.api.elements;
import java.util.Collection;
public interface ButtonContainer {
public default void setButtons(Collection<ButtonEntry> entrySource) {
clear();
if (entrySource != null) {
for (ButtonEntry buttonEntry : entrySource) {
addBu... | apache-2.0 |
chinnurtb/OpenAdStack | External/HtmlScripts/uploadify/uploadify.js | 12717 | /*
Uploadify v2.1.0
Release Date: August 24, 2009
Copyright (c) 2009 Ronnie Garcia, Travis Nickels
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitatio... | apache-2.0 |
tascape/reactor | src/main/java/com/tascape/reactor/Utils.java | 19629 | /*
* Copyright (c) 2015 - present Nebula Bay.
* 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 |
abiosoft/caddy | replacer.go | 8469 | // Copyright 2015 Matthew Holt and The Caddy 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 applicab... | apache-2.0 |
liuwharton/runc | libcontainer/cgroups/fs/net_cls.go | 832 | package fs
import (
"github.com/opencontainers/runc/libcontainer/cgroups"
"github.com/opencontainers/runc/libcontainer/configs"
)
type NetClsGroup struct {
}
func (s *NetClsGroup) Name() string {
return "net_cls"
}
func (s *NetClsGroup) Apply(d *data) error {
dir, err := d.join("net_cls")
if err != nil && !cgr... | apache-2.0 |
csoroiu/untwist | src/main/java/ro/derbederos/untwist/sampling/ReverseGaussianSampler.java | 1452 | /*
* Copyright (c) 2017-2018 Claudiu Soroiu
*
* 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 |
consulo/consulo-bash | src/main/java/com/ansorgit/plugins/bash/editor/formatting/processor/BashSpacingProcessor.java | 4565 | /*******************************************************************************
* Copyright 2011 Joachim Ansorg, mail@ansorg-it.com
* File: BashSpacingProcessor.java, Class: BashSpacingProcessor
* Last modified: 2011-04-30 16:33
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | apache-2.0 |
rafizanbaharum/cfi-gov | src/main/java/net/canang/cfi/biz/jm/manager/workflow/task/ManualJournalApproveTask.java | 1587 | package net.canang.cfi.biz.jm.manager.workflow.task;
import net.canang.cfi.biz.Util;
import net.canang.cfi.core.dd.model.CfCostCenter;
import net.canang.cfi.core.dd.model.CfReferenceNoConstants;
import net.canang.cfi.core.jm.model.CfJournal;
import net.canang.cfi.core.so.model.CfFlowState;
import org.activiti.engine.i... | apache-2.0 |
phatboyg/Machete | src/Machete.HL7Schema/Generated/V26/Groups/RCI_I05_OBSERVATION.cs | 715 | // This file was automatically generated and may be regenerated at any
// time. To ensure any changes are retained, modify the tool with any segment/component/group/field name
// or type changes.
namespace Machete.HL7Schema.V26
{
using HL7;
/// <summary>
/// RCI_I05_OBSERVATION (Group) -
/// </summa... | apache-2.0 |
astrapi69/wicket | wicket-util/src/main/java/org/apache/wicket/util/resource/ResourceUtils.java | 4659 | /*
* 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 |
Blue-Whale-H/coolweather | app/src/main/java/com/coolweather/android/db/City.java | 895 | package com.coolweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by blueWhale on 2017/6/19.
*/
public class City extends DataSupport {
private int id;
private String cityName;
private int cityCode;
private int provinceId;
public int getId() {
... | apache-2.0 |
dlwhitehurst/MusicRecital | src/test/java/org/musicrecital/service/MockUserDetailsService.java | 571 | package org.musicrecital.service;
import org.musicrecital.model.User;
import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.Usern... | apache-2.0 |
adamdecaf/validate | src/main/scala/Validation.scala | 2013 | package com.decaf.validation
import scala.language.higherKinds
import scala.util.control.NonFatal
final case class Success[E, A](value: A) extends Validation[E, A]
final case class Failure[E, A](error: E) extends Validation[E, A]
sealed trait Validation[+E, +A] {
def isSuccess: Boolean = this match {
case Succ... | apache-2.0 |
droidranger/xygapp | xyg-library/src/test/java/com/ranger/xyg/xyg_library/ExampleUnitTest.java | 404 | package com.ranger.xyg.xyg_library;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public ... | apache-2.0 |
spatstat/s2 | src/RcppExports.cpp | 13033 | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
// S2CapFromAxisHeight
List S2CapFromAxisHeight(NumericVector axis, double height);
RcppExport SEXP _s2_S2CapFromAxisHeight(SEXP axisSEXP, SEXP heigh... | apache-2.0 |
nickmilon/milonpy | milonpy/utils/basic2.py | 14147 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#######################################################
'''
module: utilities.basic2
Created:Aug 21, 2012
author: nickmilon
Description: Description: Simple utilities (2) and Vars - Very Limited IMPORTS HERE !
'''
###############################... | apache-2.0 |
zeinsteinz/tacker | tacker/extensions/nfvo_plugins/network_service.py | 1605 | # 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 |
mikethebeer/scraty | src/index.js | 1801 | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import App from './components/App'
import registerServiceWorker from './registerServiceWorker'
import rootReducer from './reducers'
import { HTTP_BACKEND_URL, WS_BACKEND_URL } from './co... | apache-2.0 |
aturon/rust | src/librustc/middle/trans/datum.rs | 21852 | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | apache-2.0 |
googleapis/java-dataproc-metastore | proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/ListMetadataImportsRequestOrBuilder.java | 5131 | /*
* 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 |
bcbroussard/kubernetes-travis | pkg/kubectl/stop.go | 3205 | /*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | apache-2.0 |
divinespear/jpa-schema-gradle-plugin | src/functionalTest/resources/java/io/github/divinespear/model/ManyColumns.java | 6120 | package io.github.divinespear.model;
/*
* 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... | apache-2.0 |
Symantec/nova-contrail-plugin | contrailrest.py | 6877 | # Copyright 2014 Symantec Corporation.
# Licensed under the Apache License, Version 2.0 (the “License”);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the license at
# http://www.apache.org/license/LICENSE-2.0
__author__ = "chinmay_naik@symantec40.com"
import httplib2
... | apache-2.0 |
gustavolcorreia/uri | iniciante/exerc1094.py | 590 | # -*- coding: utf-8 -*-
def uri(x):
c = 0
r = 0
s = 0
for i in range(0, int(x)):
y, z = input().split(' ')
if(z == 'C'): c += int(y)
elif(z == 'R'): r += int(y)
elif(z == 'S'): s += int(y)
print('Total: {} cobaias\nTotal de coelhos: {}\nTotal de ratos: {}\nTotal de s... | apache-2.0 |
burris/dwr | serverside/spring/main/java/org/directwebremoting/spring/SpringConfigurator.java | 9446 | /*
* Copyright 2005-2006 Joe Walker
*
* 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 |
GoogleCloudPlatform/deploymentmanager-samples | examples/v2/gke/python/cluster.py | 4278 | # Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 |
caioximenes/AgoUnibratec | Source/AgoNegocio/MaoDeObraNE.cs | 884 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AgoBasico;
using AgoDAO;
namespace AgoNegocio
{
public class MaoDeObraNE
{
public List<MaoDeObra> Consultar(MaoDeObra maoDeObra)
{
try
{
List<MaoDeObra> lista = ... | apache-2.0 |
SoftwareKing/ACMeOJ | JKoj06/src/com/xujin/oj/utils/JsonUtil.java | 1572 | package com.xujin.oj.utils;
import java.io.IOException;
import java.io.StringWriter;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.ja... | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Features/VersionTracking/src/test.slow/java/ghidra/feature/vt/gui/provider/VTDuplicateSymbolMatchTest.java | 4526 | /* ###
* IP: GHIDRA
*
* 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 writin... | apache-2.0 |
ejona86/grpc-java | xds/src/test/java/io/grpc/xds/ClientXdsClientDataTest.java | 47206 | /*
* Copyright 2021 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | apache-2.0 |
srinivasans/knowledgecoefficient | model/evaluate_class.php | 3445 | <?php
require_once('model_class.php');
class Evaluate extends Model
{
protected $TestId;
protected $UserId;
protected $Total;
protected $Rank;
protected $Percentile;
protected $ExamTotal;
protected function defineTableName()
{
return('evaluation');
}
protected function defineRelationMap()
{
retu... | apache-2.0 |
yuluows/zkclient | src/main/java/com/api6/zkclient/watcher/ZKWatcherProcess.java | 15988 | /**
*Copyright 2016 zhaojie
*
*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 |
Unicon/cas | support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/BaseConsentRepository.java | 2866 | package org.apereo.cas.consent;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.services.RegisteredService;
import org.apereo.cas.util.RandomUtils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet... | apache-2.0 |
cmoulliard/apiman | manager/api/beans/src/main/java/io/apiman/manager/api/beans/plans/PlanBean.java | 4141 | /*
* Copyright 2014 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | apache-2.0 |