repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
tombujok/hazelcast | hazelcast/src/main/java/com/hazelcast/config/QueueConfig.java | 13439 | /*
* Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | apache-2.0 |
kSzmit/Fractals | src/Interface/TopMenu.hpp | 862 | #pragma once
#define _CRT_SECURE_NO_DEPRECATE
#include <SFGUI/SFGUI.hpp>
#include <SFGUI/Widgets.hpp>
#include <iomanip>
#include <ctime>
class Interface;
class TopMenu
{
sfg::Button::Ptr m_buttonKantor;
sfg::Button::Ptr m_buttonKoch;
sfg::Button::Ptr m_buttonCarpet;
sfg::Button::Ptr m_buttonTriangle;
sfg::Butto... | apache-2.0 |
thr0w/galen | src/main/java/net/mindengine/galen/suite/reader/GalenSuiteLineProcessor.java | 8270 | /*******************************************************************************
* Copyright 2015 Ivan Shubin http://mindengine.net
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... | apache-2.0 |
Breeze0925/zxmweather | src/util/Utility.java | 3967 | package util;
//import java.sql.Date;
import java.text.SimpleDateFormat;
//import java.util.Date;
import java.util.Locale;
import org.json.JSONException;
import org.json.JSONObject;
import model.City;
import model.Country;
import model.Province;
import model.ZxmWeatherDB;
import android.content.Context;
import andro... | apache-2.0 |
lsmaira/gradle | subprojects/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/processing/AnnotationProcessingData.java | 4126 | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
zbw911/CasClient | Dev.ClientWeb/Models/AccountModels.cs | 3042 | //using System;
//using System.Collections.Generic;
//using System.ComponentModel.DataAnnotations;
//using System.ComponentModel.DataAnnotations.Schema;
//using System.Data.Entity;
//using System.Globalization;
//using System.Web.Mvc;
//using System.Web.Security;
//namespace Dev.ClientWeb.Models
//{
// ... | apache-2.0 |
googlesamples/arcore-illusive-images | Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs | 22447 | //-----------------------------------------------------------------------
// <copyright file="ComputerVisionController.cs" company="Google">
//
// Copyright 2017 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... | apache-2.0 |
renyi533/tensorflow | tensorflow/python/ops/image_ops_test.py | 203687 | # Copyright 2015 The TensorFlow 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 |
hymanme/MaterialHome | app/src/main/java/com/hymane/materialhome/module/zxing/camera/PlanarYUVLuminanceSource.java | 4094 | /*
* Copyright 2009 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 or agreed ... | apache-2.0 |
pantiushenkov/conference_central | src/main/java/com/google/devrel/training/conference/servlet/SetAnnouncementServlet.java | 2643 | package com.google.devrel.training.conference.servlet;
/**
* Created by vlad on 3/28/17.
*/
import static com.google.devrel.training.conference.service.OfyService.ofy;
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.MemcacheServiceFactory;
import com.google.common... | apache-2.0 |
iris-dni/iris-frontend | src/components/FormFieldsIterator/index.js | 672 | import React from 'react';
import { get } from 'lodash/object';
import FormField from 'components/FormField';
import styles from './form-field-iterator.scss';
const FormFieldsIterator = ({
reduxFormFields,
fieldsArray = [],
trustedFields = {}
}) => (
<div className={styles.root}>
{fieldsArray.map(field => ... | apache-2.0 |
aslakknutsen/arquillian-example-chameleon-wildfly | src/test/java/org/arquillian/example/chameleon/wildfly/ManagementClientTestCase.java | 1354 | package org.arquillian.example.chameleon.wildfly;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.arquillian.container.test.api.TargetsContainer;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.tes... | apache-2.0 |
bright-tools/coverage | annotator/coverage-annotator.cpp | 5599 | /*
Copyright 2013 John Bailey
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 writ... | apache-2.0 |
chanil1218/elasticsearch | src/main/java/org/elasticsearch/http/netty/NettyHttpServerTransport.java | 14281 | /*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... | apache-2.0 |
tchellomello/home-assistant | homeassistant/components/ping/binary_sensor.py | 8032 | """Tracks the latency of a host by sending ICMP echo requests (ping)."""
import asyncio
from datetime import timedelta
from functools import partial
import logging
import re
import sys
from typing import Any, Dict
from icmplib import SocketPermissionError, ping as icmp_ping
import voluptuous as vol
from homeassistant... | apache-2.0 |
wallee-payment/wallee-php-sdk | lib/Service/TokenVersionService.php | 17041 | <?php
/**
* wallee SDK
*
* This library allows to interact with the wallee payment service.
*
* 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/LI... | apache-2.0 |
rishipatel/ariatemplates | src/aria/widgets/action/SortIndicator.js | 13860 | /*
* Copyright 2012 Amadeus s.a.s.
* 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 |
Bersh/AndroidSPP | app/src/main/java/com/example/androidspp/prasers/truepulse/TruePulseHTCommand.java | 322 | package com.example.androidspp.prasers.truepulse;
import java.io.UnsupportedEncodingException;
public class TruePulseHTCommand extends TruePulseHVCommand{
public TruePulseHTCommand(byte[][] data) throws UnsupportedEncodingException {
super(data);
}
public double getHeight(){
return horizontalDistance;
}
... | apache-2.0 |
eic-cefet-rj/sagitarii-teapot | src/main/java/cmabreu/sagitarii/teapot/TaskRunner.java | 3750 | package cmabreu.sagitarii.teapot;
/**
* Copyright 2015 Carlos Magno Abreu
* magno.mabreu@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | apache-2.0 |
sacloud/terraform-provider-sakuracloud | sakuracloud/resource_sakuracloud_sim.go | 6729 | // Copyright 2016-2022 terraform-provider-sakuracloud 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 b... | apache-2.0 |
jzachr/goldenorb | src/test/java/org/goldenorb/zookeeper/TestWatchMemberData.java | 1683 | /**
*
*/
package org.goldenorb.zookeeper;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;
import org.goldenor... | apache-2.0 |
DavidBate/taokeeper | taokeeper-monitor/src/main/java/com/taobao/taokeeper/monitor/core2/task/AlertTask.java | 1458 | package com.taobao.taokeeper.monitor.core2.task;
import java.util.concurrent.ExecutorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
//import com.taobao.jm.alert.AlertManager;
//import com.taobao.jm.alert.DefaultAlertManager;
import com.taobao.taokeeper.model.AlertInfo;
/**
*
* @author pingwei ... | apache-2.0 |
apavlo/peloton | test/codegen/bloom_filter_test.cpp | 13670 | //===----------------------------------------------------------------------===//
//
// Peloton
//
// bloom_filter_test.cpp
//
// Identification: test/codegen/bloom_filter_test.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===-------------------------------------... | apache-2.0 |
meta-magic/amexio.github.io | src/module/forms/chips/chips.component.ts | 7113 | /*
* Copyright [2019] [Metamagic]
*
* 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,... | apache-2.0 |
nasa/Common-Metadata-Repository | graph-db/serverless/src/utils/chunkArray.js | 571 | /**
* Split an array into an array of smaller arrays
* @param {Array} myArray The array to be split up into chunks
* @param {Number} chunkSize The size of the chunks to split the array into
* @return {Array} An array of arrays split up into the requested sizes
*/
export const chunkArray = (myArray, chunkSize) => {... | apache-2.0 |
nate-rcl/irplus | ir_service/test/edu/ur/ir/institution/service/DefaultInstitutionalCollectionServiceTest.java | 39755 | /**
Copyright 2008 University of Rochester
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 |
ndrmc/cats | Cats.Web.Adminstration/ViewModelBinder/CommodityGradeViewModelBinder.cs | 1349 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cats.Models;
using Cats.Web.Adminstration.Models.ViewModels;
namespace Cats.Web.Adminstration.ViewModelBinder
{
public class CommodityGradeViewModelBinder
{
public static CommodityGradeViewModel BindCommodityGra... | apache-2.0 |
hannesstruss/WindFish | app/src/main/java/de/hannesstruss/windfish/WindFishTileService.java | 1252 | package de.hannesstruss.windfish;
import android.graphics.drawable.Icon;
import android.service.quicksettings.Tile;
import android.service.quicksettings.TileService;
import rx.Subscription;
public class WindFishTileService extends TileService {
private WindFishState state;
private Subscription stateSubscription;... | apache-2.0 |
chronolaw/boost_guide | container/variant2.cpp | 2543 | // Copyright (c) 2015
// Author: Chrono Law
#include <std.hpp>
using namespace std;
#include <boost/assign.hpp>
#include <boost/variant2/variant.hpp>
using namespace boost::variant2;
//////////////////////////////////////////
void case1()
{
variant<int, float, string> v;
v = "123";
cout << get<string>(v)... | apache-2.0 |
coastland/gsp-dba-maven-plugin | src/test/resources/jp/co/tis/gsp/tools/dba/mojo/GenerateEntity_test/another_schema/sqlserver/expected/output/jp/co/tis/gsptest/entity/entity/View1.java | 938 | package jp.co.tis.gsptest.entity.entity;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* View1エンティティクラス
*
*/
@Generated("GSP")
@Entity
@Table(schema = "gspanother", name = "VIEW1")
public class V... | apache-2.0 |
AMDL/amdl2maml | amdl2maml/Converter/Properties/Resources.Designer.cs | 5197 | //------------------------------------------------------------------------------
// <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 |
guardian/scala-automation | src/main/scala/com/gu/automation/support/page/PageCompanion.scala | 391 | package com.gu.automation.support.page
import com.gu.automation.support.Config
import org.openqa.selenium.WebDriver
trait PageCompanion[A] {
val relativeUrl: String = ""
protected def makePage(implicit driver: WebDriver): A
def goto(urlAppend: String = "")(implicit driver: WebDriver): A = {
driver.get(Co... | apache-2.0 |
ewilde/crane | src/Crane.Core/Api/Builders/ProjectBuilder.cs | 448 | using Crane.Core.Api.Model;
namespace Crane.Core.Api.Builders
{
public class ProjectBuilder
{
private Project _project;
public ProjectBuilder()
{
_project = new Project();
}
public ProjectBuilder WithName(string name)
{
_project.Name =... | apache-2.0 |
cloudwall/libcwfincore | cwfinjava/src/main/java/cloudwall/tradedb/gdax/GdaxExchangeSyncer.java | 2173 | /*
* (C) Copyright 2017 Kyle F. Downey.
*
* 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 |
shgli/cpp-protobuf | src/parser/Utils.cpp | 613 | #include "gcc.h"
#include "Utils.h"
std::string GetDeclNamespace(tree decl)
{
std::string s, tmp;
for (tree scope (CP_DECL_CONTEXT (decl));
scope != global_namespace;
scope = CP_DECL_CONTEXT (scope))
{
tmp = "::";
if(CLASS_TYPE_P(scope))
{
scope = TYPE_NAME(scope);
tmp += GetN... | apache-2.0 |
floored/pooperator | assets/js/lib/luma/Shader.js | 4790 | var Geometry = require('./Geometry');
var shaders = require('./shaders/main');
function Shader(renderContext, name) {
this.rc = renderContext;
this.name = name;
this.vertexShaderId = this.rc.gl.createShader(this.rc.gl.VERTEX_SHADER);
this.fragmentShaderId = this.rc.gl.createShader(this.rc.gl.FRAGMENT_SHADER);
... | apache-2.0 |
googleads/google-ads-java | google-ads-stubs-v8/src/main/java/com/google/ads/googleads/v8/services/MutateBiddingDataExclusionsResponseOrBuilder.java | 3202 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/services/bidding_data_exclusion_service.proto
package com.google.ads.googleads.v8.services;
public interface MutateBiddingDataExclusionsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.... | apache-2.0 |
iliantrifonov/TelerikAcademy | Web services and Cloud/ExamPreparation/Web/Controllers/ArticlesController.cs | 3864 | namespace Web.Controllers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.AspNet.Identity;
using Data;
using Model;
using Web.DataModels;
public class ArticlesController :... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/GetFieldLevelEncryptionProfileConfigResult.java | 6807 | /*
* 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 |
tucan21/python_zadania | test/test_modify_contact.py | 3076 | from model.contact import Contact
from random import randrange
#def test_modify_contact(app, db, check_ui):
# old_contacts = db.get_contact_list()
# if app.contact.count_contact() == 0:
# app.contact.create_contact(Contact(firstname="Ola", middlename="Katarzyna", lastname="Pawlak", nickname="12345678",
# ... | apache-2.0 |
ty-po/code-dot-org | apps/src/netsim/NetSimVizAutoDnsNode.js | 744 | /**
* @overview Visualization auto-dns node.
*/
/* jshint
funcscope: true,
newcap: true,
nonew: true,
shadow: false,
unused: true,
maxlen: 90,
maxstatements: 200
*/
'use strict';
require('../utils');
var netsimGlobals = require('./netsimGlobals');
var NetSimVizNode = require('./NetSimVizNode');
/**
* @con... | apache-2.0 |
yusuke/samurai | samurai-swing/src/main/java/one/cafebabe/samurai/swing/TakeThreadDump.java | 5904 | /*
* Copyright 2003-2015 Yusuke Yamamoto
*
* 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 |
Geomatys/sis | core/sis-referencing/src/main/java/org/apache/sis/referencing/datum/DefaultPrimeMeridian.java | 21978 | /*
* 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 |
interglobalvision/pindropstudio-com | lib/theme-options/about-options.php | 2456 | <?php
// SITE OPTIONS
$prefix = '_igv_';
$suffix = '_options';
$page_key = $prefix . 'about' . $suffix;
$page_title = 'Partners';
$metabox = array(
'id' => $page_key, // id used as tab page slug, must be unique
'title' => $page_title,
'show_on' => array( 'key' => 'options-page', 'value' => array(... | apache-2.0 |
chelu/jdal | vaadin/src/main/java/org/jdal/vaadin/ui/form/FieldBuilder.java | 972 | /*
* Copyright 2009-2011 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 ap... | apache-2.0 |
blackberry/opendataspace-cascades | src/Singleton.hpp | 562 | #ifndef SINGLETON_HPP_
#define SINGLETON_HPP_
#include <QObject>
// http://www.qtcentre.org/wiki/index.php?title=Singleton_pattern
template <class T>
class Singleton
{
public:
static T& Instance()
{
static T _instance; // create static instance of our class
return _instance; // return it
... | apache-2.0 |
s3git/s3git-go | internal/cas/key.go | 2165 | /*
* Copyright 2016 Frank Wessels <fwessels@xs4all.nl>
*
* 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 |
z123/datacollector | common/src/main/java/com/streamsets/pipeline/lib/parser/log/Errors.java | 1835 | /*
* Copyright 2017 StreamSets 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 |
aws/aws-sdk-java | aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/DisposePackageVersionsResult.java | 13278 | /*
* 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 |
zhenshengcai/floodlight-hardware | src/main/java/net/floodlightcontroller/core/web/CounterResource.java | 3230 | /**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by David Erickson, Stanford 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 License at
*
* http://w... | apache-2.0 |
hyz0906/syzkaller | sys/align.go | 3357 | // Copyright 2015 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package sys
import (
"fmt"
)
func initAlign() {
var rec func(t Type)
rec = func(t Type) {
switch t1 := t.(type) {
case *PtrType:
rec(t1.Type)
... | apache-2.0 |
googleapis/java-security-private-ca | proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/KeyUsageOrBuilder.java | 5341 | /*
* 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 |
PATRIC3/p3_solr | solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.java | 27894 | /*
* 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 |
JoyIfBam5/aws-sdk-cpp | aws-cpp-sdk-pinpoint/source/model/GetSegmentExportJobsRequest.cpp | 1586 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | apache-2.0 |
krivachy/compgs03_mutation_testing | src/main/java/org/apache/commons/collections4/queue/CircularFifoQueue.java | 12240 | /*
* 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 |
hekate-io/hekate | hekate-spring-boot/src/main/java/io/hekate/spring/boot/cluster/HekateCloudSeedNodeProviderConfigurer.java | 5244 | /*
* Copyright 2021 The Hekate Project
*
* The Hekate Project licenses this file to you 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 ... | apache-2.0 |
dropwizard/dropwizard | dropwizard-migrations/src/main/java/io/dropwizard/migrations/MigrationsBundle.java | 1288 | package io.dropwizard.migrations;
import io.dropwizard.Configuration;
import io.dropwizard.ConfiguredBundle;
import io.dropwizard.db.DatabaseConfiguration;
import io.dropwizard.setup.Bootstrap;
import javax.annotation.Nullable;
import java.util.Map;
public abstract class MigrationsBundle<T extends Configuration> imp... | apache-2.0 |
chengduoZH/Paddle | python/paddle/fluid/tests/unittests/test_feed_data_check_shape_type.py | 7953 | # Copyright (c) 2019 PaddlePaddle 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 |
miswenwen/My_bird_work | Bird_work/我的项目/配置好的可以直接编译的模块/CGamessLink/src/com/example/cgamesslink/MainActivity.java | 540 | package com.example.cgamesslink;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent= new Inten... | apache-2.0 |
CMPUT301F16T10/Drivr | app/src/test/java/ca/ualberta/cs/drivr/UserTest.java | 978 | /*
* Copyright 2016 CMPUT301F16T10
*
* 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 |
DocnetUK/matt-client | examples/matt.php | 446 | <?php
/**
* Examples for MATT client
*/
require(dirname(__FILE__) . '/../src/Docnet/MATT.class.php');
// This should happen once per day
Docnet\MATT::expect('Google upload OK [test]')->every('day');
// Something we expect to happen at least every 15 minutes
Docnet\MATT::expect('Order placed [test]')->every('15m')-... | apache-2.0 |
zendesk/samlr | test/unit/test_signature.rb | 1625 | require File.expand_path("test/test_helper")
require "openssl"
describe Samlr::Signature do
before do
@response = fixed_saml_response
@signature = @response.signature
end
describe "#signature_algorithm" do
it "should defer to Samlr::Tools::algorithm" do
Samlr::Tools.stub(:algorithm, "hello") ... | apache-2.0 |
optivem/optivem-commons-cs | test/Web/AspNetCore.RestApi.IntegrationTest.Fake/Profiles/Customers/CustomerPostResponseProfile.cs | 458 | using AutoMapper;
using Optivem.Atomiv.Web.AspNetCore.RestApi.IntegrationTest.Fake.Dtos.Customers;
using Optivem.Atomiv.Web.AspNetCore.RestApi.IntegrationTest.Fake.Entities;
namespace Optivem.Atomiv.Web.AspNetCore.RestApi.IntegrationTest.Fake.Profiles.Customers
{
public class CustomerPostResponseProfile : Profile... | apache-2.0 |
linzhaoming/origin | pkg/oc/lib/newapp/cmd/newapp_test.go | 19780 | package cmd
import (
"bytes"
"fmt"
"os"
"reflect"
"strings"
"testing"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/apitesting"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta/testrestmapper"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"... | apache-2.0 |
xavilens/prueba | db/migrate/20160513094218_add_polymorphism_to_user.rb | 171 | class AddPolymorphismToUser < ActiveRecord::Migration
def change
add_column :users, :userable_id, :integer
add_column :users, :userable_type, :integer
end
end
| apache-2.0 |
narry/odenos | src/main/java/org/o3project/odenos/component/linklayerizer/LinkLayerizerBoundaryTable.java | 6018 | /*
* Copyright 2015 NEC 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/transform/InstanceFleetStatusJsonUnmarshaller.java | 3335 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
evanx/chronic | src/chronic/metric/SampleSet.java | 1063 | /*
Source https://code.google.com/p/vellum by @evanxsummers
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 th... | apache-2.0 |
fabapp/priceoffers | purchaseoffer-service/src/main/java/de/appblocks/microservice/purchaseoffer/integration/topics/PurchaseOfferTopicAdapter.java | 905 | package de.appblocks.microservice.purchaseoffer.integration.topics;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Com... | apache-2.0 |
googleinterns/calcite | core/src/main/java/org/apache/calcite/sql/fun/SqlArgumentAssignmentOperator.java | 2063 | /*
* 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 |
DAIGroup/BagOfKeyPoses | BagOfKeyPoses/Util/Functions.cs | 28672 | /*
Copyright (C) 2014 Alexandros Andre Chaaraoui
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 |
ederign/uf-js | uf-js-client-only/target/.generated/org/uberfire/client/workbench/widgets/notfound/ActivityNotFoundView_ActivityNotFoundViewBinderImpl.java | 5911 | package org.uberfire.client.workbench.widgets.notfound;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiBinderUtil;
import com.google.gwt.user.client.ui.Widget;
public class ActivityNotFoundView_Ac... | apache-2.0 |
stdlib-js/www | public/docs/api/latest/@stdlib/stats/iter/mmin/benchmark_bundle.js | 909008 | // modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | apache-2.0 |
vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequestOrBuilder.java | 708 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/automl/v1beta1/service.proto
package com.google.cloud.automl.v1beta1;
public interface DeleteDatasetRequestOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteDatasetRequest)
c... | apache-2.0 |
telerik/mobile-cli-lib | test/unit-tests/stubs.ts | 4845 | /* tslint:disable:no-empty */
import * as util from "util";
export class CommonLoggerStub implements ILogger {
setLevel(level: string): void { }
getLevel(): string { return undefined; }
fatal(...args: string[]): void { }
error(...args: string[]): void { }
warn(...args: string[]): void {
this.out.apply(this, ar... | apache-2.0 |
nicolashernandez/dev-star | uima-star/uima-connectors/src/main/java/fr/univnantes/lina/uima/connectors/csv/CSVWriterAE.java | 12942 | package fr.univnantes.lina.uima.connectors.csv;
/**
* UIMA Connectors
* Copyright (C) 2010 Nicolas Hernandez
* 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 ... | apache-2.0 |
iemejia/incubator-beam | sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/rel/AbstractBeamCalcRel.java | 3715 | /*
* 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 |
hanom94/java_for_tester | soap-sample/src/main/java/net/webservicex/GeoIPService.java | 5442 | package net.webservicex;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 3.1.10
* 2017... | apache-2.0 |
maheshika/carbon4-kernel | core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/clustering/hazelcast/HazelcastInstanceManager.java | 1599 | /*
* Copyright (c) 2005-2011, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | apache-2.0 |
NSaitoNmiri/netmf_msbuild_parse | src/netmf_msbuild_parse/Properties/AssemblyInfo.cs | 1634 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("ConsoleApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[asse... | apache-2.0 |
mguidi/SOA-Code-Factory | com.mguidi.soa/xtend-gen/com/mguidi/soa/generator/swift/ModelGenerator.java | 5728 | package com.mguidi.soa.generator.swift;
import com.google.inject.Inject;
import com.mguidi.soa.generator.swift.Utils;
import com.mguidi.soa.soa.Comment;
import com.mguidi.soa.soa.Entity;
import com.mguidi.soa.soa.Feature;
import com.mguidi.soa.soa.FeatureType;
import org.eclipse.emf.common.util.EList;
import org.eclip... | apache-2.0 |
Amplifino/nestor | com.amplifino.nestor.transaction.provider/src/com/amplifino/nestor/transaction/provider/recovery/RecoveryServiceImpl.java | 1746 | package com.amplifino.nestor.transaction.provider.recovery;
import java.util.logging.Logger;
import javax.transaction.xa.XAException;
import javax.transaction.xa.XAResource;
import javax.transaction.xa.Xid;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotation... | apache-2.0 |
PatrickHuang888/Earlgrey | jobs/src/main/scala/com/hxm/earlgrey/jobs/Repository.scala | 3345 | package com.hxm.earlgrey.jobs
import java.text.SimpleDateFormat
import java.util.Date
import java.util.concurrent.TimeUnit
import com.typesafe.config.{Config, ConfigFactory}
import org.mongodb.scala.{Completed, Document, MongoClient}
import org.mongodb.scala.model.Filters._
import scala.concurrent.Await
import scala... | apache-2.0 |
JimSadler/theburgessprocess2 | RealTalkBlog/wp-content/themes/benevolent/inc/extras.php | 23448 | <?php
/**
* Custom functions that act independently of the theme templates.
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package Benevolent
*/
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return a... | apache-2.0 |
hustlijian/oj-jobdu | 1109/main_table.cpp | 972 | //AC:并查集
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
const int MAX = 1000 + 5;
int n, m;
int f[MAX];
void Init(void)
{
memset(f, -1, sizeof(f));
}
int getFather(int u)
{
return (f[u] == -1)? u : f[u] = getFather(f[u]);
}
int main()
{
int i;
int u, v;
int t;
... | apache-2.0 |
Hexworks/zircon | zircon.jvm.examples/src/main/java/org/hexworks/zircon/examples/playground/TestApp.java | 1852 | package org.hexworks.zircon.examples.playground;
import org.hexworks.zircon.api.*;
import org.hexworks.zircon.api.application.AppConfig;
import org.hexworks.zircon.api.component.ColorTheme;
import org.hexworks.zircon.api.component.ComponentAlignment;
import org.hexworks.zircon.api.component.TextArea;
import org.hexwor... | apache-2.0 |
DegJ/miceschoolproject | MICE/src/mice/staticHelpers/Spelprojekt.java | 1987 | /*
* 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 mice.staticHelpers;
import java.util.HashMap;
import oru.inf.InfException;
/**
*
* @author Nicklas
*/
public class Spelpro... | apache-2.0 |
artspb/jdk2trove | jdk2trove-plugin/testData/quickFix/hashmap/tObjectTypeHashMap/beforeStringInt.java | 250 | // "Use Trove TObjectIntHashMap (may change semantics)"
import java.util.HashMap;
import java.util.Map;
public class THashMapExample {
public void stringInt() {
<caret>Map<String, Integer> local = new HashMap<String, Integer>();
}
} | apache-2.0 |
hferentschik/hibernate-validator | engine/src/test/java/org/hibernate/validator/test/internal/engine/groups/redefiningdefaultgroup/Car.java | 3393 | /**
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... | apache-2.0 |
yongzhidai/GameServer | src/com/dyz/persist/util/DBUtil.java | 1396 | package com.dyz.persist.util;
import java.io.IOException;
import java.io.InputStream;
import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser;
/**
* 操作数据库工具类,负责初始化ibatis的SqlMapClient,
* 注意,如果ibatis的config文件中... | apache-2.0 |
davityle/ngAndroid | ng-processor/src/main/java/com/github/davityle/ngprocessor/model/Model.java | 352 | package com.github.davityle.ngprocessor.model;
public class Model {
private final String name, typeName;
public Model(String name, String typeName) {
this.name = name;
this.typeName = typeName;
}
public String getName(){
return name;
}
public String getTypeName(){
... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/Listener.java | 12390 | /*
* 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 |
libra/libra | consensus/src/liveness/rotating_proposer_test.rs | 4653 | // Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0
use crate::liveness::{
proposer_election::ProposerElection, rotating_proposer_election::RotatingProposer,
};
use consensus_types::block::{block_test_utils::certificate_for_genesis, Block};
use diem_types::validator_signer::Validator... | apache-2.0 |
CUNY-Hunter-CSCI-Capstone-Summer2014/XMPP-Chat | librambler/Source Code/rambler/XMPP/IM/Client/Client.hpp | 8508 | /**********************************************************************************************************************
* @file ramler/XMPP/IM/Client/Client.hpp
* @date 2014-07-16
* @brief <# Brief Description #>
* @details <# Detailed Description #>
********************************************************... | apache-2.0 |
trasa/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeNetworkInterfacesRequest.java | 62195 | /*
* Copyright 2010-2016 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 "l... | apache-2.0 |
yqritc/glide-transformations | transformations/src/main/java/jp/wasabeef/glide/transformations/RoundedCornersTransformation.java | 2495 | package jp.wasabeef.glide.transformations;
/**
* Copyright (C) 2015 Wasabeef
*
* 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
*
* Unles... | apache-2.0 |
ecallac/sistemas | applications/rentcar-web/src/main/java/com/ecallac/rentcar/service/RolServiceImpl.java | 649 | /**
*
*/
package com.ecallac.rentcar.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ecallac.rentcar.domain.Rol;
import com.ecallac.rentcar.repository.RolRepository;
/**
* @author efrain.calla
*
*/
@Servic... | apache-2.0 |
ByteInternet/libcloud | libcloud/common/openstack_identity.py | 61346 | # 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 use ... | apache-2.0 |
szegedim/hadoop | hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestContainerOperations.java | 3636 | /**
* 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 |
Javalbert/sql-builder-orm | src/main/java/com/github/javalbert/sqlbuilder/dsl/TableColumn.java | 3155 | /*******************************************************************************
* Copyright 2017 Albert Shun-Dat Chan
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apach... | apache-2.0 |