repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
adarro/ddo-calc | subprojects/common/ddo-core/src/main/scala/io/truthencode/ddo/model/feats/Attack.scala | 2271 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2015-2021 Andre White.
*
* 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... | apache-2.0 |
dawidcieszynski/ZXing.Net | Source/lib/client/result/SMTPResultParser.cs | 1956 | /*
* Copyright 2010 ZXing 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 o... | apache-2.0 |
dims/nova | nova/tests/unit/test_nova_manage.py | 27766 | # Copyright 2011 OpenStack Foundation
# Copyright 2011 Ilya Alekseyev
#
# 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 |
YaoZengzeng/runv | hypervisor/qemu/qemu_process.go | 1924 | package qemu
import (
"os"
"strings"
"github.com/golang/glog"
"github.com/hyperhq/runv/hypervisor"
"github.com/hyperhq/runv/lib/utils"
)
func watchDog(qc *QemuContext, hub chan hypervisor.VmEvent) {
wdt := qc.wdt
for {
msg, ok := <-wdt
if ok {
switch msg {
case "quit":
glog.V(1).Info("quit watch... | apache-2.0 |
FlorianKromer/TNCY-English | src/TNCY/SchoolBundle/Admin/ExSongAdmin.php | 3682 | <?php
namespace TNCY\SchoolBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
use Sonata\CoreBundle\Validato... | apache-2.0 |
jasonrichardcraig/DeviceSQL | DeviceSQL.SQLTypes.Modbus/BooleanRegisterArray.cs | 4048 | #region Imported Types
using Microsoft.SqlServer.Server;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.IO;
using System.Linq;
#endregion
namespace DeviceSQL.SQLTypes.Modbus
{
[Serializable()]
[SqlUserDefinedType(Format.UserDefined, IsByteOrdered = false, IsFixedLeng... | apache-2.0 |
phatboyg/Machete | src/Machete.HL7Schema/Generated/V26/Groups/Maps/DFT_P03_OBSERVATIONMap.cs | 588 | // 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.Maps
{
using V26;
/// <summary>
/// DFT_P03_OBSERVATION (GroupMap) -
///... | apache-2.0 |
kailee2014/kingsite | src/main/java/com/blooms/kingsite/modules/act/web/ActModelController.java | 3684 | package com.blooms.kingsite.modules.act.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
impor... | apache-2.0 |
Meisolsson/GitHubSdk | library/src/main/java/com/meisolsson/githubsdk/model/Repository.java | 5698 | /*
* Copyright 2015 Henrik Olsson
*
* 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 |
zoozooll/Min3D | app/src/main/java/min3d/sampleProject1/ExampleTextureWrap.java | 1213 | package min3d.sampleProject1;
import min3d.Shared;
import min3d.Utils;
import min3d.core.Object3dContainer;
import min3d.core.RendererActivity;
import min3d.objectPrimitives.HollowCylinder;
import min3d.vos.TextureVo;
import android.graphics.Bitmap;
/**
* Demonstrates setting U/V texture wrapping
* (TextureVo.repe... | apache-2.0 |
Sage-ERP-X3/izpack | src/lib/com/izforge/izpack/panels/HTMLLicenceParamPanel.java | 4179 | package com.izforge.izpack.panels;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import javax.swing.ButtonGroup;
import javax.swing.JEditorPane;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.event.HyperlinkEvent;
import javax.swing.... | apache-2.0 |
IAMTJW/TJWspringMVC | src/main/java/com/tianjunwei/validator/MethodValidateController.java | 2014 | package com.tianjunwei.validator;
import java.util.HashMap;
import java.util.Map;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.sp... | apache-2.0 |
jtgeiger/grison | lib/src/main/java/com/sibilantsolutions/grison/rx/event/result/AudioVideoLoginSendResult.java | 469 | package com.sibilantsolutions.grison.rx.event.result;
public class AudioVideoLoginSendResult extends AbstractResult {
public static final AudioVideoLoginSendResult IN_FLIGHT = new AudioVideoLoginSendResult(null);
public static final AudioVideoLoginSendResult SENT = new AudioVideoLoginSendResult(null);
pub... | apache-2.0 |
changweihua/NTTemplate | Code/NTTemplate/Lance.ExFramework/Swagger/Attributes/SwaggerFileUploadAttribute.cs | 530 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Lance.ExFramework.Swagger.Attributes
{
/// <summary>
/// 标记Form表单内是否存在input:file
/// </summary>
[AttributeUsage(AttributeTargets.Parameter)]
public class SwaggerFileUploadAttribute : Attribut... | apache-2.0 |
YAFNET/YAFNET | yafsrc/YAF.Types/Objects/UserRequestData.cs | 1320 | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2022 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dis... | apache-2.0 |
deltajs/version-a | deltaJS/com/validation/Validation.js | 151 |
Validation.super = "delta.com.ObjectBase";
function Validation(){
}
Validation.properties = {
validate : function validate(value){
}
}
| apache-2.0 |
sonu283304/onos | utils/misc/src/main/java/org/onlab/util/UnmodifiableDeque.java | 5810 | /*
* Copyright 2016 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 applicable la... | apache-2.0 |
samlanh/installment | application/modules/project/forms/FrmImport.php | 1015 | <?php
class Project_Form_FrmImport extends Zend_Dojo_Form
{
protected $tr;
protected $filter;
public function init()
{
$this->tr=Application_Form_FrmLanguages::getCurrentlanguage();
$this->filter = 'dijit.form.FilteringSelect';
}
function FrmImport($data){
$request=Zend_Controller_F... | apache-2.0 |
brycenrogers/linken | config/mail.php | 4411 | <?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may s... | apache-2.0 |
pangeneral/DSEP | publicity/feedback/FeedbackResponseController.java | 13957 | package com.dsep.controller.publicity.feedback;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
impor... | apache-2.0 |
PkayJava/MBaaS | mbaas-plain/src/main/java/com/angkorteam/mbaas/plain/request/collection/CollectionCreateRequest.java | 2738 | package com.angkorteam.mbaas.plain.request.collection;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Khauv Socheat on 2/12/2016.
*/
public class CollectionCreateRequest {
@Expose
... | apache-2.0 |
MI-LA01/knife-ovh-cloud | lib/chef/knife/ovh_cloud_datastore_list.rb | 1939 | # Copyright (C) 2012, SCM Ventures AB
# Author: Ian Delahorne <ian@scmventures.se>
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all
# copies.
#
# THE SOFTWARE ... | apache-2.0 |
achikin/testrail-jenkins-plugin | src/main/java/testrail/testrail/TestRailObjects/Project.java | 1277 | /**
*
* 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 |
boundary/boundary-nagios-plugins | exec_proc.lua | 2107 | -- Copyright 2014 Boundary,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... | apache-2.0 |
googleapis/nodejs-translate | samples/v3beta1/translate_batch_translate_document.js | 2530 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
SchafferWang0818/SchafferBaseLibrary | app/src/main/java/com/schaffer/base/common/recycler/OnRecyclerScrollListener.java | 5998 | package com.schaffer.base.common.recycler;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
/**
* Created by AndroidSchaffer on 2017/9/21.
*/
public a... | apache-2.0 |
non/squants | src/main/scala/squants/radio/RadiantIntensity.scala | 2465 | /* *\
** Squants **
** **
** Scala Quantities and Units of Measure Library and DSL **
** (c) 2013-2014, Ga... | apache-2.0 |
garrapeta/jumplings | src/com/garrapeta/jumplings/game/actor/JumplingActor.java | 8141 | package com.garrapeta.jumplings.game.actor;
import android.graphics.Canvas;
import android.graphics.PointF;
import android.graphics.RectF;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.Contact;
import com.badlogic.gdx.physics.box2d.Fil... | apache-2.0 |
evhub/coconut | coconut/command/__init__.py | 778 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------------------------------------------------
# INFO:
# -----------------------------------------------------------------------------------------------------------------------
"""
Author: Evan Hub... | apache-2.0 |
neykov/incubator-brooklyn | software/database/src/test/java/brooklyn/entity/database/postgresql/PostgreSqlGceLiveTest.java | 1878 | /*
* 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 |
dritonshoshi/n-sysmon | n-sysmon-core/src/main/resources/nsysmon-res/js/ctrl-aggregated.js | 22390 | angular.module('NSysMonApp').controller('CtrlAggregated', function($scope, $log, Rest, escapeHtml, $timeout, $location) {
$('.button-segment').affix({
offset: {
top: 95
}
});
function reinitTooltips() {
$('.btn').tooltip({
container: 'body',
html... | apache-2.0 |
live-ontologies/elk-reasoner | elk-reasoner/src/test/java/org/semanticweb/elk/reasoner/ReasoningCorrectnessTestWithInterrupts.java | 2309 | /*
* #%L
* ELK Reasoner
*
* $Id$
* $HeadURL$
* %%
* Copyright (C) 2011 - 2012 Department of Computer Science, University of Oxford
* %%
* 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 t... | apache-2.0 |
Lemon-han/MobilSafe | mobilesafe/src/main/java/com/emma/mobilesafe/acitivity/BaseSetUpAppCompatActivity.java | 1501 | package com.emma.mobilesafe.acitivity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by Administrator on 2017/4/1.
*/
public abstract class BaseSetUpAppCompatActivity extends Ap... | apache-2.0 |
rogerthat-platform/gae-plugin-framework | src/framework/server/framework/bizz/job/__init__.py | 4544 | # -*- coding: utf-8 -*-
# Copyright 2017 GIG Technology NV
#
# 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 |
vladmihalcea/high-performance-java-persistence | core/src/test/java/com/vladmihalcea/book/hpjp/util/providers/LockType.java | 134 | package com.vladmihalcea.book.hpjp.util.providers;
/**
* @author Vlad Mihalcea
*/
public enum LockType {
LOCKS,
MVLOCKS,
MVCC
}
| apache-2.0 |
sergio11/struts2-hibernate | ejercicio4-web/src/main/java/converters/AuthorConverter.java | 1587 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package converters;
import com.google.inject.Inject;
import com.opensymphony.xwork2.conversion.TypeConversionException;
impor... | apache-2.0 |
bcgov/MyGovBC-MSP | src/app/modules/benefit/pages/personal-info/personal-info.component.ts | 3090 | import {ChangeDetectorRef, Component, QueryList, ViewChild, ViewChildren} from '@angular/core';
import {Router} from '@angular/router';
import {debounceTime, distinctUntilChanged} from 'rxjs/operators';
import {ProcessService} from '../../../../services/process.service';
import {NgForm} from '@angular/forms';
import {P... | apache-2.0 |
bigtester/automation-test-engine | org.bigtester.ate.core/src/main/java/org/bigtester/ate/model/asserter/PageElementExistenceAsserter.java | 4518 | /*******************************************************************************
* ATE, Automation Test Engine
*
* Copyright 2014, Montreal PROT, or individual contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
*... | apache-2.0 |
oxlade39/STorrent | src/test/scala/io/github/oxlade39/storrent/peer/BitfieldTest.scala | 981 | package io.github.oxlade39.storrent.peer
import org.scalatest.WordSpecLike
import org.scalatest.MustMatchers
/**
* @author dan
*/
class BitfieldTest extends WordSpecLike with MustMatchers {
import io.github.oxlade39.storrent.test.util.Files.ubuntuTorrent
"Bitfield" must {
"pad up to multiple of 8" in {
... | apache-2.0 |
pierre-filliolaud/indexcity | indexcity-gateway/src/main/java/io/indexcity/gateway/web/rest/UserJWTController.java | 2191 | package io.indexcity.gateway.web.rest;
import io.indexcity.gateway.security.jwt.JWTConfigurer;
import io.indexcity.gateway.security.jwt.TokenProvider;
import io.indexcity.gateway.web.rest.vm.LoginVM;
import java.util.Collections;
import com.codahale.metrics.annotation.Timed;
import org.springframework.http.HttpStatu... | apache-2.0 |
xnopre/code-elevator-team05 | test/utils/CallTest.java | 684 | package utils;
import static org.fest.assertions.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static utils.Direction.DOWN;
import static utils.Direction.UP;
import org.junit.Test;
public class CallTest {
@Test
public void test_toString() {
assertEquals("ElevatorCall[floor=1, direct... | apache-2.0 |
xasx/camunda-bpm-platform | engine/src/test/java/org/camunda/bpm/engine/test/api/authorization/VariableInstanceAuthorizationTest.java | 15020 | /*
* Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2... | apache-2.0 |
liuxing521a/itas-core | core/src/main/java/org/itas/core/GameObject.java | 689 | package org.itas.core;
/**
* <p>自动同步数据库基类</p>
* 所有自动 从数据库加载、自动修改数据库、自动删除等同步对象都需要继承此类;</br>
* 继承此类后需要不会自动生成Id,需要制定Id
* @author liuzhen<liuxing521a@gmail.com>
* @createTime 2014年12月15日下午4:25:47
*/
public abstract class GameObject extends GameBase {
protected GameObject(String Id) {
super(Id);
}
/**
* <... | apache-2.0 |
Tecsisa/elastic4s | elastic4s-aws/src/main/scala/com/sksamuel/elastic4s/aws/Aws4ElasticClient.scala | 3436 | package com.sksamuel.elastic4s.aws
import com.sksamuel.elastic4s.ElasticsearchClientUri
import com.sksamuel.elastic4s.http.ElasticClient
import com.amazonaws.auth.{AWSStaticCredentialsProvider, BasicAWSCredentials, DefaultAWSCredentialsProviderChain}
import com.amazonaws.regions.DefaultAwsRegionProviderChain
import or... | apache-2.0 |
ok2c/httpclient | httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/Http2AsyncClientEventHandlerFactory.java | 9547 | /*
* ====================================================================
* 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
... | apache-2.0 |
terma/gigaspace-routine | src/main/java/com/github/terma/gigaspaceroutine/comparators/StringKeyComparator.java | 507 | package com.github.terma.gigaspaceroutine.comparators;
import java.util.Comparator;
import java.util.Map;
public class StringKeyComparator implements Comparator<Map<String, Object>> {
private final String key;
public StringKeyComparator(String key) {
this.key = key;
}
@Override
public i... | apache-2.0 |
huruk/ebay2magento | Ebay2magento/Ebay2Magento.Classic/Properties/Settings.Designer.cs | 999 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | apache-2.0 |
dpetkevich/telebot | main.py | 5861 | import StringIO
import json
import logging
import random
import urllib
import urllib2
import webapp2
# for sending images
from PIL import Image
import multipart
from webapp2_extras import sessions
# standard app engine imports
from google.appengine.api import urlfetch
from google.appengine.ext import ndb
import web... | apache-2.0 |
cymcsg/UltimateRecyclerView | UltimateRecyclerView/ultimaterecyclerview/src/main/java/com/marshalchen/ultimaterecyclerview/stickyheadersrecyclerview/HeaderPositionCalculator.java | 9713 | package com.marshalchen.ultimaterecyclerview.stickyheadersrecyclerview;
import android.graphics.Rect;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import com.marshalchen.ultimaterecyclerview.stickyheadersrecyclerview.caching.Heade... | apache-2.0 |
wdsgyj/DS | src/com/clark/ds/list/IListIterator.java | 232 | package com.clark.ds.list;
/**
* Created by clark on 2014/10/16.
*/
public interface IListIterator<T> {
boolean hasNext();
boolean hasPrev();
T next();
T prev();
boolean isHead();
boolean isTail();
}
| apache-2.0 |
matobet/methanol-manager | backend/dal/src/test/java/cz/muni/fi/pa165/methanolmanager/dal/repository/BottleTest.java | 5860 | package cz.muni.fi.pa165.methanolmanager.dal.repository;
import cz.muni.fi.pa165.methanolmanager.dal.DalConfig;
import cz.muni.fi.pa165.methanolmanager.dal.domain.Bottle;
import cz.muni.fi.pa165.methanolmanager.dal.domain.Make;
import cz.muni.fi.pa165.methanolmanager.dal.domain.Producer;
import cz.muni.fi.pa165.methan... | apache-2.0 |
riganti/dotvvm | src/Framework/Core/Controls/Options/RowInsertOptions.cs | 524 | namespace DotVVM.Framework.Controls
{
/// <summary>
/// Represents settings for row (item) insert feature.
/// </summary>
/// <typeparam name="T">The type of inserted row.</typeparam>
public class RowInsertOptions<T> : IRowInsertOptions<T> where T : class, new()
{
/// <summary>
... | apache-2.0 |
ampproject/amp-toolbox-php | src/Validator/Spec/Tag/ScriptAmpReachPlayer.php | 1923 | <?php
/**
* DO NOT EDIT!
* This file was automatically generated via bin/generate-validator-spec.php.
*/
namespace AmpProject\Validator\Spec\Tag;
use AmpProject\Format;
use AmpProject\Html\Tag as Element;
use AmpProject\Validator\Spec\AttributeList;
use AmpProject\Validator\Spec\Identifiable;
use AmpProject\Valid... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/PublicKeySummary.java | 9374 | /*
* 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 |
manastech/ruby-openid | test/test_server.rb | 87182 | require 'test/unit'
require 'testutil'
require 'util'
require 'uri'
require 'openid/server'
require 'openid/cryptutil'
require 'openid/association'
require 'openid/util'
require 'openid/message'
require 'openid/store/memory'
require 'openid/dh'
require 'openid/consumer/associationmanager'
# In general, if you edit or ... | apache-2.0 |
tomighty/tomighty-windows | Tomighty.Core.Test/FakeEventHub.cs | 1755 | //
// Tomighty - http://www.tomighty.org
//
// This software is licensed under the Apache License Version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0.txt
//
using System;
using System.Collections.Generic;
using System.Linq;
namespace Tomighty.Test
{
public class FakeEventHub : IEventHub
{
... | apache-2.0 |
crnk-project/crnk-framework | crnk-core/src/main/java/io/crnk/core/queryspec/pagingspec/OffsetLimitPagingSpec.java | 2509 | package io.crnk.core.queryspec.pagingspec;
import io.crnk.core.engine.internal.utils.CompareUtils;
import io.crnk.core.exception.BadRequestException;
public class OffsetLimitPagingSpec implements PagingSpec {
private Long limit = null;
private Long offset = 0L;
public OffsetLimitPagingSpec() {
}
public Offse... | apache-2.0 |
googleapis/dotnet-spanner-entity-framework | Google.Cloud.EntityFrameworkCore.Spanner/Extensions/SpannerIDbContextTransactionExtensions.cs | 3087 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
intel-analytics/BigDL | scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/nn/internal/Recurrent.scala | 2412 | /*
* Copyright 2016 The BigDL 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 agr... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p122/Production2447.java | 1891 | package org.gradle.test.performance.mediummonolithicjavaproject.p122;
public class Production2447 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | apache-2.0 |
carewebframework/carewebframework-rpms | org.carewebframework.rpms.plugin-parent/org.carewebframework.rpms.plugin.anticoag/src/main/java/org/carewebframework/rpms/plugin/anticoag/DeleteController.java | 3735 | /*
* #%L
* carewebframework
* %%
* Copyright (C) 2008 - 2017 Regenstrief 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/... | apache-2.0 |
ronq/geomesa | geomesa-accumulo/geomesa-accumulo-raster/src/main/scala/org/locationtech/geomesa/raster/data/GeoMesaCoverageQueryParams.scala | 2609 | /***********************************************************************
* Copyright (c) 2013-2017 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and... | apache-2.0 |
taktos/ea2ddl | ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/exentity/TTestplans.java | 417 | package jp.sourceforge.ea2ddl.dao.exentity;
/**
* The entity of t_testplans.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class TTestplans extends jp.sourceforge.ea2ddl.dao.bsentity.BsTTestplans {
... | apache-2.0 |
asim/mq | go/client/client.go | 1144 | package client
// Client is the interface provided by this package
type Client interface {
Close() error
Publish(topic string, payload []byte) error
Subscribe(topic string) (<-chan []byte, error)
Unsubscribe(<-chan []byte) error
}
// Resolver resolves a name to a list of servers
type Resolver interface {
Resolve... | apache-2.0 |
werval/werval | io.werval/io.werval.test/src/main/java/io/werval/test/WervalHttpRule.java | 2973 | /*
* Copyright (c) 2013-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 ... | apache-2.0 |
InterlakeHighSchoolMachineLearningClub/Colorizer | Colorizer/Colorizer/DSL/FilterSyntax/FilterRegistery.cs | 3810 | using Colorizer.Imaging;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Colorizer.DSL.FilterSyntax
{
public static class FilterRegistery
{
publi... | apache-2.0 |
czcorpus/klogproc | load/tail/watchdog.go | 5588 | // Copyright 2019 Tomas Machalek <tomas.machalek@gmail.com>
// Copyright 2019 Institute of the Czech National Corpus,
// Faculty of Arts, Charles 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... | apache-2.0 |
Bigotry/OneBase | app/common/service/pay/driver/yeepay/sendCancelOrd.php | 1829 | <?php
header("Content-type: text/html; charset=utf-8");
include 'yeepayCommon.php';
require_once 'HttpClient.class.php';
$data = array();
$data['p0_Cmd'] = "CancelOrd";
$data['p1_MerId'] = $p1_MerId;
$data['pb_TrxId'] = $_REQUEST['pb_TrxId'];
$data['pv_Ver'] = $_REQUEST['pv_Ver'];
$hmacstri... | apache-2.0 |
srdo/storm | storm-client/src/jvm/org/apache/storm/trident/tuple/ComboList.java | 2903 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not ... | apache-2.0 |
todbot/Blink1Control2 | app/server/mailService.js | 2101 | /**
* Fetch results from various types of mail services
*
* It needs to do:
* - Load mail configuration from global config
* - Run a MailSearcher for each unique user/server pair (could map to multiple rules)
*
* - When a new event happens
* -- log the event
* -- trigger the pattern (hmm, this means this needs... | apache-2.0 |
dasomel/egovframework | common-component/v2.3.2/src/main/java/egovframework/com/sym/sym/nwk/service/impl/EgovNtwrkServiceImpl.java | 2801 | /**
* 개요
* - 네트워크에 대한 ServiceImpl 클래스를 정의한다.
*
* 상세내용
* - 네트워크에 대한 등록, 수정, 삭제, 조회 기능을 제공한다.
* - 네트워크의 조회기능은 목록조회, 상세조회로 구분된다.
* @author lee.m.j
* @version 1.0
* @created 19-8-2010 오후 4:34:35
*/
package egovframework.com.sym.sym.nwk.service.impl;
import java.util.List;
import javax.annotati... | apache-2.0 |
celigo/netsuite-service-manager-dotnet | ServiceManager/SuiteTalk/CurrencyRateSearchRowBasic.cs | 224 | //~ Generated by SearchRowBasicTemplate.tt
#pragma warning disable 1591
using System;
namespace com.celigo.net.ServiceManager.SuiteTalk
{
public partial class CurrencyRateSearchRowBasic : ISearchRowBasic
{
}
}
| apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchv2/model/LimitExceededException.java | 1252 | /*
* 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 |
pstorch/cgeo | tests/src-android/cgeo/watchdog/WatchdogTest.java | 4166 | package cgeo.watchdog;
import static org.assertj.core.api.Java6Assertions.assertThat;
import cgeo.CGeoTestCase;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.connector.IConnector;
import cgeo.geocaching.connector.oc.OCApiConnector;
import cgeo.geocachin... | apache-2.0 |
ericschultz/visitor-pattern | VisitorPattern.Automation/Commands/LoadStart.cs | 1682 | using System;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using NuPattern;
using NuPattern.Diagnostics;
using NuPattern.Runtime;
namespace VisitorPattern.Automation.Commands
{
/// <summary>
/// A custom command that perf... | apache-2.0 |
shimat/opencvsharp | src/OpenCvSharp/Modules/ximgproc/EdgeFilter/DTFilter.cs | 4071 | using System;
using OpenCvSharp.Internal;
// ReSharper disable once CheckNamespace
namespace OpenCvSharp.XImgProc
{
/// <summary>
/// Interface for realizations of Domain Transform filter.
/// </summary>
// ReSharper disable once InconsistentNaming
public class DTFilter : Algorithm
{
p... | apache-2.0 |
vvutharkar/kafka-manager | app/models/form/TopicOperation.scala | 567 | /**
* Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0
* See accompanying LICENSE file.
*/
package models.form
/**
* @author hiral
*/
sealed trait TopicOperation
case class TConfig(name: String, value: Option[String])
case class CreateTopic(topic: String, partitions: Int, replication: ... | apache-2.0 |
CSCSI/Triana | triana-types/src/main/java/triana/types/audio/AudioEffect.java | 11437 | /*
* The University of Wales, Cardiff Triana Project Software License (Based
* on the Apache Software License Version 1.1)
*
* Copyright (c) 2007 University of Wales, Cardiff. All rights reserved.
*
* Redistribution and use of the software in source and binary forms, with
* or without modification, are permitted... | apache-2.0 |
cocoatomo/asakusafw | mapreduce/compiler/core/src/test/java/com/asakusafw/compiler/flow/example/MultiPublicConstructor.java | 2322 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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 |
batmancn/TinySDNController | ACE_wrappers/tests/Cache_Map_Manager_Test.cpp | 16992 |
//=============================================================================
/**
* @file Cache_Map_Manager_Test.cpp
*
* $Id: Cache_Map_Manager_Test.cpp 95790 2012-05-24 15:06:21Z shuston $
*
* This is a test of the <ACE_Cache_Map_Manager> and
* <ACE_Hash_Cache_Map_Manager> that illustrates how to use... | apache-2.0 |
Arvis-Home/zigbee4java | zigbee-api/src/main/java/org/bubblecloud/zigbee/network/discovery/LinkQualityIndicatorNetworkBrowser.java | 16631 | /*
Copyright 2012-2013 CNR-ISTI, http://isti.cnr.it
Institute of Information Science and Technologies
of the Italian National Research Council
See the NOTICE file distributed with this work for additional
information regarding copyright ownership
Licensed under the Apache License, Version 2.0 (the ... | apache-2.0 |
pmarks-net/ipvfoo | src/common.js | 779 | /*
Copyright (C) 2017 Paul Marks http://www.pmarks.net/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | apache-2.0 |
mjem/themelog | themelog/themes/__init__.py | 66 | #!/usr/bin/env python
"""This directory holds theme modules.
"""
| apache-2.0 |
magnayn/jLibVirt | src/main/java/com/nirima/libvirt/model/RemoteDomainEmulatorPinInfo.java | 212 | package com.nirima.libvirt.model;
import java.io.Serializable;
/**
* @author Nigel Magnay
*/
public class RemoteDomainEmulatorPinInfo implements Serializable {
public int[] cpumaps;
public int ret;
} | apache-2.0 |
Oceanic-815/python_training | test/test_phones.py | 2326 | import re #импортируем пакет для работы с рег. выражениями
def test_phones_on_home_page(app):
contact_from_home_page = app.contact.get_contact_list()[0] # Получаем контакт с индексом 0
contact_from_edit_page = app.contact.get_contact_info_from_edit_page(0) # получаем информацию из формы редактирования
asser... | apache-2.0 |
axiros/transcrypt | reveal.js/js/reveal.js | 131523 | /*!
* reveal.js
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2016 Hakim El Hattab, http://hakim.se
*/
(function( root, factory ) {
if( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define( function() {
root.Reveal = factory();
return root.Re... | apache-2.0 |
KarlGong/ptest | ptest/assertion.py | 35592 | import re
import time
from datetime import datetime, date
from numbers import Number
from typing import Any, List, Set, Union, Iterable, Callable, Tuple, Dict, Type
# -------------------------------------------
# ------------ simple assertion -------------
# -------------------------------------------
def assert_tru... | apache-2.0 |
andresriancho/moto | tests/test_ec2/test_subnets.py | 1076 | import boto
from boto.exception import EC2ResponseError
import sure # noqa
from moto import mock_ec2
@mock_ec2
def test_subnets():
conn = boto.connect_vpc('the_key', 'the_secret')
vpc = conn.create_vpc("10.0.0.0/16")
subnet = conn.create_subnet(vpc.id, "10.0.0.0/18")
all_subnets = conn.get_all_subn... | apache-2.0 |
atata-framework/atata-webdriverextras | src/Atata.WebDriverExtras/Extensions/ByKindExtensions.cs | 2677 | using OpenQA.Selenium;
namespace Atata
{
public static class ByKindExtensions
{
public static By Button(this By by, string name = null)
{
return by.OfKind("button", name);
}
public static By Link(this By by, string name = null)
{
return by.OfKin... | apache-2.0 |
google/BIG-bench | bigbench/bbseqio/tools/utils.py | 1102 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | apache-2.0 |
TopSecretGames/game | src/Tests/GameControllerTest.cpp | 491 | #define CATCH_CONFIG_MAIN
#include "GameController.h"
#include "MoveControllerStub.h"
#include "fakeit.hpp"
using namespace fakeit;
TEST_CASE("That game event listener got notified well", "[GameController]") {
tsg::game::GameController *controller = tsg::game::GameController::getInstance();
MoveControllerStub m... | apache-2.0 |
GoogleCloudPlatform/cloud-opensource-python | compatibility_lib/compatibility_lib/utils.py | 5401 | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | apache-2.0 |
facebook/fbthrift | thrift/compiler/test/fixtures/includes/gen-swift/test/fixtures/includes/includes/Constants.java | 632 | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package test.fixtures.includes.includes;
import com.facebook.swift.codec.*;
import com.google.common.collect.*;
import java.util.*;
@SwiftGenerated
public final class Constants {
private Const... | apache-2.0 |
xiaolihope/PerfKitBenchmarker-1.7.0 | perfkitbenchmarker/virtual_machine.py | 21484 | # Copyright 2015 PerfKitBenchmarker 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 appli... | apache-2.0 |
benjyw/kythe | kythe/java/com/google/devtools/kythe/platform/java/JavacOptionsUtils.java | 9117 | /*
* 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | apache-2.0 |
midnite8177/SaltarelleCompiler | Runtime/CoreLib/TimeSpan.cs | 5675 | using System.Runtime.CompilerServices;
namespace System {
[Imported(ObeysTypeSystem = true)]
[ScriptNamespace("ss")]
public struct TimeSpan : IComparable<TimeSpan>, IEquatable<TimeSpan> {
[InlineConstant]
public const long TicksPerMillisecond = 10000L;
[InlineConstant]
public const long TicksPerSecond = 100... | apache-2.0 |
kebenxiaoming/owncloudRedis | apps/gallery/l10n/en_GB.php | 583 | <?php
$TRANSLATIONS = array(
"Pictures" => "Pictures",
"Picture view" => "Picture view",
"Next" => "Next",
"Play" => "Play",
"Pause" => "Pause",
"Previous" => "Previous",
"Close" => "Close",
"Error loading slideshow template" => "Error loading slideshow template",
"Share" => "Share",
"No pictures found! If you upload p... | apache-2.0 |
lime-company/lime-security-powerauth-push | powerauth-push-server/src/main/java/io/getlime/push/controller/rest/PushCampaignController.java | 15715 | /*
* Copyright 2016 Wultra s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | apache-2.0 |
boruxu/qpmtools | src/main/java/cn/edu/buaa/g305/qpm/processManagement/server/TagServer.java | 382 | package cn.edu.buaa.g305.qpm.processManagement.server;
import java.util.List;
import cn.edu.buaa.g305.qpm.processManagement.domian.Tag;
public interface TagServer {
Tag getByName(String name);
Tag getById(String id);
void delete(String id);
void deleteByName(String name);
Tag save(Tag Tag);
Tag... | apache-2.0 |
Anthonyo2015/bfdocker | besserver/cli_tool/node_modules/saxpath/test/saxpath.js | 14733 | var assert = require('assert');
var TapeRecorder = require('./tape_recorder');
var fs = require('fs');
var sax = require('sax');
var saxpath = process.env.JS_COV ? require('../lib-cov') : require('../lib');
describe('SaXPath', function() {
it('should match /bookstore', function(done) {
var... | apache-2.0 |