repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
CodyyAndroid/RxPermissions | rxpermissionslibrary/src/main/java/com/codyy/rx/permissions/RxPermissions.java | 13205 | /**
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* dist... | apache-2.0 |
andrescabrera/gwt-dojo-toolkit | src/gwt/dojo/gridx/public/dojo/gridx/mobile/StoreObserver.js | 1896 | define([
'dojo/_base/declare',
'dojo/dom-construct',
'dojo/_base/array',
'dojo/query'
], function(declare, dom, array, query){
return declare(null, {
// summary:
// This module is a mixin of the grid and
// it makes the grid reflect the change of the store.
onSet: function(/*Object*/item, /*String*/at... | apache-2.0 |
camptocamp/puppet-postfix | spec/classes/postfix_satellite_spec.rb | 712 | require 'spec_helper'
describe 'postfix::satellite' do
let :pre_condition do
" class { 'augeas': }
class { 'postfix':
relayhost => 'foo',
mydestination => 'bar',
mynetworks => 'baz',
}"
end
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
... | apache-2.0 |
stori-es/stori_es | shared/src/main/java/org/consumersunion/stories/server/persistence/ContactPersister.java | 32532 | package org.consumersunion.stories.server.persistence;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.inject.... | apache-2.0 |
brianhuangxp/FullMoon | fm-common/src/main/java/com/ringcentral/fullmoon/common/SysLogger.java | 463 | /*
* Id: SysLogger.java
* Type Name: com.ccb.cclbm.common.SysLogger
* Create Date: 2005-3-15
* Author: robert.luo
*
*
* Project: CCLBM
*
*
*
*/
package com.ringcentral.fullmoon.common;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* @author robert.luo
... | apache-2.0 |
sabob/ratel | ratel/src/com/google/ratel/deps/jackson/databind/ser/DefaultSerializerProvider.java | 17404 | package com.google.ratel.deps.jackson.databind.ser;
import java.io.IOException;
import java.util.*;
import com.google.ratel.deps.jackson.annotation.ObjectIdGenerator;
import com.google.ratel.deps.jackson.core.JsonGenerationException;
import com.google.ratel.deps.jackson.core.JsonGenerator;
import com.google.ratel.d... | apache-2.0 |
PkayJava/FAClient | src/main/java/com/angkorteam/finance/faclient/dto/client/ClientWithdraw.java | 1027 | package com.angkorteam.finance.faclient.dto.client;
import java.io.Serializable;
/**
* Created by socheatkhauv on 4/6/17.
*/
public class ClientWithdraw implements Serializable {
private String withdrawalDate;
private Long withdrawalReasonId;
private String locale;
private String dateFormat;
... | apache-2.0 |
stweil/tesseract-ocr.github.io | 4.00.00dev/a02681.js | 485 | var a02681 =
[
[ "BLOCK_RECT_IT", "a02681.html#a1344f314e5e85908725bac7a15726802", null ],
[ "bounding_box", "a02681.html#a1e3195249b6b6934be9060f1d5ee60c2", null ],
[ "cycled_rects", "a02681.html#af8914c72cc93eeb96ed231db37ab5043", null ],
[ "forward", "a02681.html#ab56b686d27e5eea704424470024456f4", n... | apache-2.0 |
JAVA201708/Homework | 201711/20171103/Team1/ShenXingSheng/works/PetStore2/src/main/java/com/cheer/petstore/PetType.java | 960 | /**
*
*/
package com.cheer.petstore;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
/**
* @author Cheer
* @date 2017年10月25日
... | apache-2.0 |
vydra/cas | core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/support/TicketGrantingTicketExpirationPolicyTests.java | 3231 | package org.apereo.cas.ticket.support;
import org.apereo.cas.authentication.TestUtils;
import org.apereo.cas.ticket.TicketGrantingTicket;
import org.apereo.cas.ticket.TicketGrantingTicketImpl;
import org.junit.Before;
import org.junit.Test;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time... | apache-2.0 |
begla/Intrinsic | IntrinsicRenderer/src/IntrinsicRendererResourcesPipelineLayout.cpp | 10035 | // Copyright 2017 Benjamin Glatzel
//
// 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 |
bitmonk/chef-freeswitch | recipes/setup_env.rb | 4276 | #
# Cookbook Name:: freeswitch
# Recipe:: install-source
#
# Author:: Justin Alan Ryan (<bitmonk@bitmonk.net>)
#
# Copyright 2013, Justin Alan Ryan
#
# 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 Licens... | apache-2.0 |
facebook/fbthrift | thrift/perf/cpp2/util/Util.cpp | 1380 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | apache-2.0 |
vjanmey/EpicMudfia | com/planet_ink/coffee_mud/WebMacros/PollID.java | 1957 | package com.planet_ink.coffee_mud.WebMacros;
import com.planet_ink.miniweb.interfaces.*;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffe... | apache-2.0 |
haakom/EnergiWeb-remake | energiweb/src/no/noen/server/commond/SMS.java | 6513 | package no.noen.server.commond;
import java.io.*;
import java.net.InetAddress;
import java.net.Socket;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.komsa.domain.Stri... | apache-2.0 |
tribou/react-template | webpack.config.js | 290 | // @flow
const { NODE_ENV } = process.env;
if (NODE_ENV !== "development" && NODE_ENV !== "production") {
process.env.NODE_ENV = "production";
}
const browser = require("./config/webpack/browser");
const server = require("./config/webpack/server");
module.exports = [browser, server];
| apache-2.0 |
awsdocs/aws-doc-sdk-examples | javascript/example_code/iam/iam_createpolicy.js | 2318 | /**
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This file is 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/
... | apache-2.0 |
GoogleForCreators/web-stories-wp | packages/e2e-test-utils/src/index.js | 3398 | /*
* 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 |
FederatedAI/FATE | python/fate_arch/storage/hive/__init__.py | 159 | from fate_arch.storage.hive._table import StorageTable
from fate_arch.storage.hive._session import StorageSession
__all__ = ["StorageTable", "StorageSession"] | apache-2.0 |
mymuyi/coolweather | app/src/main/java/com/example/coolweather/gson/AQI.java | 179 | package com.example.coolweather.gson;
public class AQI {
public AQICity city;
public class AQICity {
public String aqi;
public String pm25;
}
}
| apache-2.0 |
googleads/google-ads-python | google/ads/googleads/v7/services/services/feed_mapping_service/client.py | 22895 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 |
freedomtan/tensorflow | tensorflow/lite/micro/micro_interpreter.cc | 17117 | /* Copyright 2020 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 applicable law or a... | apache-2.0 |
carnegiespeech/translations | es_mx/grading.php | 6119 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... | apache-2.0 |
kiritbasu/datacollector | aws-lib/src/test/java/com/streamsets/pipeline/stage/origin/s3/TestAmazonS3Perf.java | 3387 | /**
* 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 |
dbflute-test/dbflute-test-option-compatible10x | src/test/java/org/docksidestage/compatible10x/dbflute/howto/BehaviorMiddleTest.java | 31817 | package org.docksidestage.compatible10x.dbflute.howto;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import org.dbflute.bhv.referrer.ConditionBeanSetupper;
import org.dbflute.cbean.result.ListResultBean;
import org.dbflute.cbean.result.PagingResultBean;
import org.dbflute.cbean.scoping.Scal... | apache-2.0 |
Narutuffy/Android_Storage | app/src/main/java/com/example/android/pets/CatalogActivity.java | 5509 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
GoogleCloudPlatform/opentelemetry-operations-java | e2e-test-server/src/main/java/com/google/cloud/opentelemetry/endtoend/ScenarioHandler.java | 838 | /*
* Copyright 2022 Google
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | apache-2.0 |
iikira/BaiduPCS-Go | pcsutil/delay/delay.go | 206 | package delay
import (
"time"
)
// NewDelayChan 发送延时信号
func NewDelayChan(t time.Duration) <-chan struct{} {
c := make(chan struct{})
go func() {
time.Sleep(t)
close(c)
}()
return c
}
| apache-2.0 |
prasanna08/oppia | core/domain/image_services_test.py | 5358 | # coding: utf-8
#
# Copyright 2018 The Oppia 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 requi... | apache-2.0 |
rrdial/bing-ads-sdk-v9 | src/BingAds/Reporting/ConversionPerformanceReportFilter.php | 911 | <?php
namespace BingAds\Reporting;
/**
* Defines the criteria to use to filter the conversion performance report data.
*
* @link http://msdn.microsoft.com/en-us/library/gg262849(v=msads.90).aspx ConversionPerformanceReportFilter Data Object
*
* @uses AdDistributionReportFilter
* @uses DeviceTypeReportFilter
* ... | apache-2.0 |
DatGye/AV-Mod | lua/av/shared.lua | 423 | av = {} -- must always be called before initializing additional scripts
-- create metadata table
_avmod = {}
_avmod.name = "AV-Mod"
_avmod.version = "0.0.1"
_avmod.developer = "Rogavox Development"
_avmod.authors = {
["Lead Programmer"] = "DatGye (Wyatt Phillips)",
["Entity Modeler"] = "Endless (Gregory Allen)"
... | apache-2.0 |
dbflute-test/dbflute-test-active-dockside | src/test/java/org/docksidestage/dockside/dbflute/whitebox/cbean/bigartist/scalarcondition/WxCBScalarConditionDreamCruiseTest.java | 2914 | package org.docksidestage.dockside.dbflute.whitebox.cbean.bigartist.scalarcondition;
import org.dbflute.cbean.scoping.SubQuery;
import org.dbflute.cbean.scoping.UnionQuery;
import org.dbflute.exception.SQLFailureException;
import org.dbflute.utflute.core.exception.ExceptionExaminer;
import org.docksidestage.dockside.d... | apache-2.0 |
clearwavebuild/elmah | tests/TypeExtensionsTests.cs | 2034 | #region License, Terms and Author(s)
//
// ELMAH - Error Logging Modules and Handlers for ASP.NET
// Copyright (c) 2004-9 Atif Aziz. All rights reserved.
//
// Author(s):
//
// Atif Aziz, http://www.raboof.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this... | apache-2.0 |
google-research/google-research | tf3d/instance_segmentation/metric_test.py | 3741 | # coding=utf-8
# Copyright 2022 The Google Research 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 |
vert-x3/vertx-codegen | src/test/java/io/vertx/test/codegen/testmodule/package-info.java | 42 | package io.vertx.test.codegen.testmodule;
| apache-2.0 |
silho/WebBlogSite | src/com/weblog/service/impl/ArticleServiceImpl.java | 4711 | package com.weblog.service.impl;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexWriter;
import org.apache... | apache-2.0 |
ajoymajumdar/genie | genie-web/src/test/java/com/netflix/genie/web/configs/ServicesConfigUnitTests.java | 8833 | /*
*
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
lasalvavida/node-cesium-experimental | Modules/Renderer/lib/Texture.js | 22115 | 'use strict';
var CesiumCore = require('cesium-core-experimental');
var Cartesian2 = CesiumCore.Cartesian2;
var defaultValue = CesiumCore.defaultValue;
var defined = CesiumCore.defined;
var destroyObject = CesiumCore.destroyObject;
var DeveloperError = CesiumCore.DeveloperError;
var CesiumMath = CesiumCore.Math;
var P... | apache-2.0 |
k000kc/java-a-to-z | Chapter_5/Lesson-5.2.1/src/test/java/ru/apetrov/Cycle/CycleTest.java | 1572 | package ru.apetrov.Cycle;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Created by Andrey on 17.03.2017.
*/
public class CycleTest {
/**
* Check when the cycle exists.
*/
@Test
public void whenThereIsCycleThenResultTrue() {
... | apache-2.0 |
prowide/prowide-core | src/generated/java/com/prowidesoftware/swift/model/mt/mt0xx/MT028.java | 11177 | /*
* Copyright 2006-2021 Prowide
*
* 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 |
simonlaroche/akka.net | src/core/Akka.Tests/IO/UdpListenerSpec.cs | 7306 | //-----------------------------------------------------------------------
// <copyright file="UdpListenerSpec.cs" company="Akka.NET Project">
// Copyright (C) 2009-2020 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2020 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </copyright>
... | apache-2.0 |
google-research/language | language/common/inputs/char_utils_test.py | 3486 | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 |
dbflute-test/dbflute-test-dbms-sqlite | src/main/java/org/docksidestage/sqlite/dbflute/readonly/bsbhv/loader/RoyLoaderOfPurchase.java | 3689 | package org.docksidestage.sqlite.dbflute.readonly.bsbhv.loader;
import java.util.List;
import org.dbflute.bhv.*;
import org.docksidestage.sqlite.dbflute.readonly.exbhv.*;
import org.docksidestage.sqlite.dbflute.readonly.exentity.*;
/**
* The referrer loader of PURCHASE as TABLE. <br>
* <pre>
* [primary key]
* ... | apache-2.0 |
sptz45/coeus | src/test/scala/com/tzavellas/coeus/bind/converter/CurrencySymbolConverterTest.scala | 716 | /* - Coeus web framework -------------------------
*
* Licensed under the Apache License, Version 2.0.
*
* Author: Spiros Tzavellas
*/
package com.tzavellas.coeus.bind.converter
import java.util.{Currency, Locale}
import org.junit.Test
import org.junit.Assert._
class CurrencyConverterrTest {
val locale = Loca... | apache-2.0 |
idahammer/AF5129_ida_h | Ass2Uppgift1/src/House.java | 541 | public class House{
int minSize = 10;
int maxSize = 1000;
int minYear = 1800;
int maxYear = 2015;
private int yearBuilt;
private int size;
public House(int yearBuilt,int size){
if (size >= minSize && size <= maxSize){
this.size = size;
} else {
this.size = 0;
}
if (yearBuilt >= minYear && yearB... | apache-2.0 |
EBISPOT/goci | goci-interfaces/goci-curation/src/main/java/uk/ac/ebi/spot/goci/curation/service/DiseaseTraitService.java | 6979 | package uk.ac.ebi.spot.goci.curation.service;
import org.apache.commons.text.similarity.CosineDistance;
import org.apache.commons.text.similarity.LevenshteinDistance;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.P... | apache-2.0 |
yncxcw/PreemptYARN-2.7.1 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/container/ContainerImpl.java | 56218 | /**
* 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 n... | apache-2.0 |
liying2008/neu-ipgw | app/src/main/java/com/liying/ipgw/activity/SplashActivity.java | 2750 | package com.liying.ipgw.activity;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.widget.Toast;
import com.liying.ipgw.R;
import com.liying.ipgw.application.AccountApp;
import... | apache-2.0 |
lassehe/GearVRf | GVRf/Framework/framework/src/main/java/org/gearvrf/GVRDirectLight.java | 6409 | /* Copyright 2015 Samsung Electronics Co., LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | apache-2.0 |
getflint/flint-cloud | office365/customer/user-accounts/get_all_user_roles.rb | 1605 | require 'json'
@log.trace("Started execution'flint-o365:microsoft-cloud:user_account:get_all_user_role.rb' flintbit...")
begin
# Flintbit Input Parameters
@connector_name = @input.get('connector-name') # Name of the Connector
@microsoft_id = @input.get('customer-id') # id of the Mi... | apache-2.0 |
adamors/google-api-php-client | src/Google/Utils/URITemplate.php | 9479 | <?php
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 |
lschuetze/gueryframework | guery-adapter-jung/src/test/java/nz/ac/massey/cs/guery/suite1/ColouredVertex.java | 1058 | /*
* Copyright 2015 Jens Dietrich
*
* 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 |
artembilan/spring-boot | spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonAutoConfiguration.java | 11124 | /*
* Copyright 2012-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
bcgov/MyGovBC-MSP | src/app/modules/enrolment/pages/child-info/child-info.component.spec.ts | 1749 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SharedCoreModule } from 'moh-common-lib';
import { FormsModule } from '@angular/forms';
import { LocalStorageModule } from 'angular-2-local-storage';
import { RouterTestingModule } from '@angular/router/testing';
import { ChildInfoCompon... | apache-2.0 |
LQJJ/demo | 126-go-common-master/app/service/main/vip/service/coupon_test.go | 3143 | package service
import (
"fmt"
"testing"
col "go-common/app/service/main/coupon/model"
v1 "go-common/app/service/main/vip/api"
"go-common/app/service/main/vip/model"
. "github.com/smartystreets/goconvey/convey"
)
// go test -test.v -test.run TestServiceCouponBySuitID
func TestServiceCouponBySuitID(t *testin... | apache-2.0 |
TheCoder4eu/BootsFacesWeb | src/main/java/net/bootsfaces/demo/FullCalendarBean.java | 504 | package net.bootsfaces.demo;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
@ManagedBean
@ViewScoped
public class FullCalendarBean implements Serializable {
private static final long serialVersionUID = 1L;
private String language = "en";
public St... | apache-2.0 |
xgqfrms/JavaWeb | DesignPattern_Homework/src/state_2/TaxState6.java | 693 | package state_2;
/*========================================*/
/* A concrete state in the state pattern */
/*========================================*/
public class TaxState6 extends TaxState{
private final static double TAXRATE = 0.3;
private double taxAmount = 0.0;
String SINGLE = "Single";
String FAMI... | apache-2.0 |
klaasnotfound/LocationAssistant | app/src/main/java/com/klaasnotfound/locationassistant/LocationAssistant.java | 33218 | // https://github.com/klaasnotfound/LocationAssistant
/*
* Copyright 2017 Klaas Klasing (klaas [at] klaasnotfound.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
*
* ... | apache-2.0 |
leangen/GraphQL-SPQR | src/main/java/io/leangen/graphql/metadata/strategy/query/DefaultOperationInfoGenerator.java | 1396 | package io.leangen.graphql.metadata.strategy.query;
import io.leangen.graphql.metadata.exceptions.TypeMappingException;
import io.leangen.graphql.util.Utils;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Member;
/**
* Created by bojan.tomic on 3/11/16.
*/
public class DefaultOperationInfoGene... | apache-2.0 |
SURFnet/conext-operations-support | src/Surfnet/Conext/OperationsSupportBundle/Reporter/CliReporter.php | 3453 | <?php
/**
* Copyright 2015 SURFnet B.V.
*
* 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 |
ivanceras/svgbobrus | svgbob/src/buffer/fragment_buffer/fragment_tree.rs | 8170 | use crate::{buffer::Settings, Fragment};
use sauron::{html::attributes::*, Node};
/// A tree of fragments where a fragment can contain other fragments
/// when those fragments are inside in this fragment
/// The main purpose of this struct is for tagging fragments
/// such as rect and circles to have a CellText fragme... | apache-2.0 |
vorburger/HoTea | ch.vorburger.hotea.minecraft.example/src/main/java/ch/vorburger/minecraft/hot/HotSpongePlugin.java | 1438 | package ch.vorburger.minecraft.hot;
import java.util.Optional;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.spongepowered.api.Game;
import org.spongepowered.api.command.CommandMapping;
import org.spongepowered.api.command.spec.CommandSpec;
import org.spongepowered.api.event.Listener;
import org.sp... | apache-2.0 |
JayZhuCoding/Client_Middleware | src/com/jz/uploadimage/Const.java | 325 | package com.jz.uploadimage;
/**
* Created by Jay.
*/
public class Const {
// url for uploading
public static final String UPLOAD_URL="http://192.168.2.1:8080/uploadImage/UploadServlet";
// url for downloading
public static final String DOWNLOAD_URL="http://192.168.2.1:8080/uploadImage/UploadServlet";... | apache-2.0 |
westfruit/wshop | src/main/java/com/wshop/web/dto/ProductDTO.java | 9529 | /* */ package com.wshop.web.dto;
/* */
/* */ import com.fasterxml.jackson.annotation.JsonProperty;
/* */ import java.io.Serializable;
/* */ import java.math.BigDecimal;
/* */ import java.util.ArrayList;
/* */ import java.util.Arrays;
/* */ import java.util.Collection;
/* */ import j... | apache-2.0 |
mahkoh/rust | src/liballoc/heap.rs | 13363 | // Copyright 2014-2015 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-MI... | apache-2.0 |
Gagarinwjj/Cpdaily | app/src/main/java/com/wisedu/cpdaily/model/Wrapper.java | 580 | package com.wisedu.cpdaily.model;
/**
* 实体类包裹
* Created by wjj on 2017/4/7 14:47.
*/
public class Wrapper<T> {
int errCode;
String errMsg;
T data;
public int getErrCode() {
return errCode;
}
public void setErrCode(int errCode) {
this.errCode = errCode;
}
public St... | apache-2.0 |
TechBossIceWobs/Info-PEAK- | Week 6/perfect_loop.rb | 394 | #The main formula for finding perfect numbers (as a formula): 2**(p−1)*((2**p)−1)
#The above will be made into a seperate file for the purposes of the rest of this code.
#This is the beginning of problem 3 for Week 6. Part 1 - repetition.
#This is perfectly functional code.
load ("pnum.rb")
def perfect_loop(p)
s = 0... | apache-2.0 |
CenturyLinkCloud/clc-node-sdk | test/compute-services/balancers/pools/modify-pool-test.js | 2411 |
var _ = require('underscore');
var Promise = require('bluebird').Promise;
var vcr = require('nock-vcr-recorder-mocha');
var Sdk = require('./../../../../lib/clc-sdk.js');
var compute = new Sdk('cloud_user', 'cloud_user_password').computeServices();
var assert = require('assert');
vcr.describe('Modify Load Balancer P... | apache-2.0 |
SanSYS/MassTransit | src/MassTransit.Azure.ServiceBus.Core/Transport/QueueSendClient.cs | 2143 | // Copyright 2007-2018 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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 |
kiddinn/plaso | tests/preprocessors/windows.py | 19970 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Windows preprocess plug-ins."""
import unittest
from dfvfs.helpers import fake_file_system_builder
from dfvfs.lib import definitions as dfvfs_definitions
from dfvfs.path import factory as path_spec_factory
from plaso.containers import artifacts
from pla... | apache-2.0 |
28harishkumar/node-notifications | public/javascripts/socket.js | 1479 | function socketio(url,username, callback){
var socket = io.connect(url);
socket.on('connection', function (msg) {
socket.emit('auth',{user:username})
});
socket.on('listner',function(session){
socket.on(session['sessionID'], function(data){
callback(data.data);
});
});
}
function notifyMe(user,message)... | apache-2.0 |
oboehm/gdv.xport | deprecated/src/main/java/gdv/xport/satz/feld/sparte30/Feld230.java | 6557 | /*
* Copyright (c) 2011, 2012 by aosd.de
*
* 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 |
centreon/centreon-broker | bam/src/factory.cc | 2992 | /*
** Copyright 2014-2016, 2021 Centreon
**
** 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 |
mKaloer/PourMaster | core/src/main/java/pourmaster/FieldDataStore.java | 743 | package pourmaster;
import pourmaster.exceptions.FieldNotFoundException;
import pourmaster.fields.FieldList;
import pourmaster.fields.Field;
import java.io.IOException;
/**
* Data store for storing and retrieving field data given an field data index.
*/
public abstract class FieldDataStore {
public abstract F... | apache-2.0 |
fabricedesre/rust | src/test/run-pass/use.rs | 705 | // xfail-fast
// 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
// <... | apache-2.0 |
stacycurl/pimpathon | src/test/scala/pimpathon/java/util/concurrent/ThreadFactoryTest.scala | 560 | package pimpathon.java.util.concurrent
import java.util.concurrent.ThreadFactory
import pimpathon.PSpec
import pimpathon.any._
import pimpathon.java.util.concurrent.threadFactory._
class ThreadFactorySpec extends PSpec {
"naming" in basic.naming("name:" + _).calc(factory ⇒ {
factory.newThread(runnable).getName... | apache-2.0 |
Axway/ats-framework | actionlibrary/src/main/java/com/axway/ats/action/jms/model/sessions/ManagedTopicSession.java | 1852 | /*
* Copyright 2017 Axway Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 |
heinigger/utils | thirdParty/monitor/src/main/java/com/yw/monitor/event/IEvents.java | 1221 | package com.yw.monitor.event;
/**
* @author:heinigger 2018/11/22 10:49
* @function:采用这样,可以方便定位寻找,单纯用String等简单类型,不易跟踪追寻
*/
public abstract class IEvents<T> {
public static int EVENTCOUNTER = 1000;
/**
* 自定义事件的id
*/
protected int eventId;
protected String mEventId;
/**
* 发送事件的Id
... | apache-2.0 |
carlosFattor/DoceTentacaoSlick | app/forms/SignInForm.scala | 662 | package forms
/**
* Created by carlos on 16/10/15.
*/
import play.api.data.Form
import play.api.data.Forms._
import play.api.libs.json.{Json, Format}
/**
* The form which handles the submission of the credentials.
*/
/**
* The form data.
*
* @param email The email of the user.
* @param password The password ... | apache-2.0 |
Armani2015/expandable-recyclerview-with-gridlayout | expandableListview/src/main/java/com/h6ah4i/android/widget/advrecyclerview/draggable/RecyclerViewDragDropManager.java | 61196 | /*
* Copyright (C) 2015 Haruki Hasegawa
*
* 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 |
TreetonOrg/Treeton | dev/prosody/src/treeton/prosody/corpus/CorpusException.java | 308 | /*
* Copyright Anatoly Starostin (c) 2017.
*/
package treeton.prosody.corpus;
public class CorpusException extends Exception {
public CorpusException(String message) {
super(message);
}
public CorpusException(String message, Throwable cause) {
super(message, cause);
}
}
| apache-2.0 |
libamqp/libamqp | src/TemplateModule/ModuleTest.cpp | 801 | /*
Copyright 2011-2012 StormMQ Limited
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 |
bio-org-au/nsl-editor | test/models/name/as_typeahead/name_parent/partially_restricted/for_forma_test.rb | 1453 | # frozen_string_literal: true
# Copyright 2015 Australian National Botanic Gardens
#
# This file is part of the NSL Editor.
#
# 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
#
# ht... | apache-2.0 |
lerwine/WebAppCodeTemplates | TextProcessing/IndentingStringWriter.cs | 2607 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace TextProcessing
{
public class IndentingStringWriter : TextWriter
{
private StringBuilder _stringBuilder = new StringBuilder();
private char[] _currentLine = new char[0];
pri... | apache-2.0 |
mars-lan/WhereHows | datahub-web/@datahub/utils/tests/integration/components/notifications-test.ts | 4406 | import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, click, settled } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { INotificationsTestContext } from '@datahub/utils/types/tests/notifications';
import { NotificationEvent } from '@da... | apache-2.0 |
Ericliu001/basic-algorithms | src/test/java/com/basicalgorithms/jiuzhang/chapter05_depth_first_search/PermutationsII.java | 7307 | package com.basicalgorithms.jiuzhang.chapter05_depth_first_search;
import org.junit.Assert;
import org.junit.Test;
import java.util.*;
/**
* Given a list of numbers with duplicate number in it. Find all unique permutations.
* Example
* For numbers [1,2,2] the unique permutations are:
* [
* [1,2,2],
* [2,1,2],
... | apache-2.0 |
martylamb/nailgun | nailgun-server/src/main/java/com/facebook/nailgun/builtins/NGAlias.java | 2915 | /*
Copyright 2004-2012, Martian Software, Inc.
Copyright 2017-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 r... | apache-2.0 |
arpitgautam/AsyncFBClient | src/main/java/org/async/fbclient/beans/user/Concentration.java | 1022 |
package org.async.fbclient.beans.user;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
@Generated("com.googlecode.jsonsch... | apache-2.0 |
viczy/commerce | app/api/v1/rest/commodity_api.rb | 2396 |
module V1
module REST
class CommodityApi < Grape::API
resource :commodities do
desc 'Get commodity list'
get do
commodities = Commodity.all
present commodities, with: Entities::Commodity
end
desc 'Get a commodity'
... | apache-2.0 |
VamsiSmart/Go-ubiquitous | app/src/main/java/com/example/android/sunshine/app/MainActivity.java | 8612 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
hortonworks/cloudbreak | ccm-connector/src/main/java/com/sequenceiq/cloudbreak/ccmimpl/cloudinit/DefaultCcmParameterSupplier.java | 5756 | package com.sequenceiq.cloudbreak.ccmimpl.cloudinit;
import java.util.Collections;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.inject.Inject;
import org.slf4j.Logger;
imp... | apache-2.0 |
hekonsek/quickstarts | apps/fabric8mq/src/test/java/io/fabric8/apps/mq/MQKubernetes.java | 1910 | /*
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat 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 required... | apache-2.0 |
aleo72/ww-ceem-radar | src/main/java/gov/nasa/worldwind/util/TileKey.java | 6232 | /*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.util;
import gov.nasa.worldwind.geom.Angle;
/**
* @author tag
* @version $Id: TileKey.java 1171 2013-02-11 21:45:02Z d... | apache-2.0 |
whmain/LivingHelper | app/src/androidTest/java/com/ahern/livinghelper/ExampleInstrumentedTest.java | 748 | package com.ahern.livinghelper;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Andro... | apache-2.0 |
intellimate/Server | src/main/java/org/intellimate/server/proto/AppListOrBuilder.java | 962 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: server-protobuf/app_list.proto
package org.intellimate.server.proto;
public interface AppListOrBuilder extends
// @@protoc_insertion_point(interface_extends:intellimate.AppList)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repe... | apache-2.0 |
xuhaoyang/Weibo | app/src/main/java/com/xhy/weibo/ui/vh/KeepViewHolder.java | 5843 | package com.xhy.weibo.ui.vh;
import android.content.Context;
import android.support.v7.widget.CardView;
import android.support.v7.widget.PopupMenu;
import android.text.TextUtils;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.DecelerateInterpolator;
import android.widget.ImageVie... | apache-2.0 |
hoangdongtien/studentlog | StudentLog/src/com/aprotrain/sl/dal/dao/impl/EmployeeServiceImpl.java | 1590 | /*
* 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 com.aprotrain.sl.dal.dao.impl;
import com.aprotrain.sl.dal.common.AbstractDao;
import com.aprotrain.sl.dal.entity.Cour... | apache-2.0 |
joel-costigliola/assertj-core | src/test/java/org/assertj/core/condition/JediCondition.java | 1204 | /*
* 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 |
jbertram/activemq-artemis-old | artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/NamedNodeIdNodeLocator.java | 2137 | /**
* 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 |
heroiclabs/nakama | console/ui/src/app/account/friends/friends.component.ts | 2616 | // Copyright 2020 The Nakama 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 |