repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
minekrexx/mccVS | mccVS/mccVS/ProjectType/obj/Debug/projectreference.cs | 18291 | //------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generi... | apache-2.0 |
duantonghai1984/Research | src/main/java/com/hp/hpl/hibernate/hbm/Person.java | 1478 | package com.hp.hpl.hibernate.hbm;
import java.util.*;
public class Person {
private Long id;
private int age;
private String firstname;
private String lastname;
public Person() {}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
... | apache-2.0 |
lunisolar/magma | magma-func/src/test/java/eu/lunisolar/magma/func/function/to/LToIntFunctionTest.java | 16720 | /*
* This file is part of "lunisolar-magma".
*
* (C) Copyright 2014-2019 Lunisolar (http://lunisolar.eu/).
*
* 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 |
GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/promise-polyfill/src/polyfill.js | 1082 | import Promise from './index';
import promiseFinally from './finally';
import allSettled from './allSettled';
/** @suppress {undefinedVars} */
var globalNS = (function() {
// the only reliable means to get the global object is
// `Function('return this')()`
// However, this causes CSP violations in Chrome apps.
... | apache-2.0 |
muczy/libjtodotxt | libjtodotxt/src_test/org/libjtodotxt/ParseExceptionTest.java | 948 | package org.libjtodotxt;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ParseExceptionTest {
@Test
public void testParseException() {
new ParseException();
}
@Test
public void testParseExceptionStringThrowable() {
String cause = "testCause";
Throwable throwable = new Pa... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisanalytics/model/MappingParameters.java | 7213 | /*
* 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 |
stephane-bastian/vertx-web-mvc | src/main/java/com/thesoftwarefactory/vertx/web/mvc/impl/LayoutImpl.java | 1492 | package com.thesoftwarefactory.vertx.web.mvc.impl;
import java.util.Objects;
import com.thesoftwarefactory.vertx.web.mvc.Layout;
import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;
public class LayoutImpl implements Layout {
private String path;
private String parentPath;
private Handler<Routi... | apache-2.0 |
colewang/twu-biblioteca-yuwang | src/com/twu/biblioteca/lists/ListObject.java | 536 | package com.twu.biblioteca.lists;
import com.twu.biblioteca.output.Output;
import java.util.List;
public abstract class ListObject<E> {
protected List<E> list;
public List<E> getList() {
return list;
}
public E get(int index) {
if (index < list.size() && index >= 0)
retu... | apache-2.0 |
WillleePang/java | Practice/src/com/willlee/algorithms/shellsort/ShellSortApp.java | 493 | package com.willlee.algorithms.shellsort;
public class ShellSortApp {
public static void main(String[] args) {
int maxSize = 10000;
ArraySh arr;
arr = new ArraySh(maxSize);
for (int j = 0; j < maxSize; j++) {
long n = (int) (java.lang.Math.random() * 999999);
arr.insert(n);
}
arr.display();
long ... | apache-2.0 |
nicolaferraro/camel | components/camel-kubernetes/src/generated/java/org/apache/camel/component/kubernetes/customresources/KubernetesCustomResourcesEndpointConfigurer.java | 13427 | /* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.kubernetes.customresources;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache... | apache-2.0 |
aosp-mirror/platform_frameworks_support | v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/DummyItemAnimator.java | 8230 | /*
* Copyright 2018 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 applica... | apache-2.0 |
monkeysquare/katana | src/Microsoft.Owin.Security.OAuth/Provider/OAuthTokenEndpointContext.cs | 1703 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Security.Claims;
using Microsoft.Owin.Security.OAuth.Messages;
using Microsoft.Owin.Security.Provider;
namespace Microsoft.O... | apache-2.0 |
rmadapur/networking-brocade | networking_brocade/vyatta/common/l3_agent.py | 4083 | # Copyright 2015 Brocade Communications System, 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
#
#... | apache-2.0 |
johanek/johanek-puppet | mcollective/files/mcollective-plugins/puppetlabs/audit/logstash/logstash.rb | 1457 | module MCollective
module RPC
# An audit plugin that just logs to a logstash queue
#
# You can configure which queue it emits events to with the setting
#
# plugin.logstash.target
#
class Logstash<Audit
require 'json'
def audit_request(request, connection)
now = Time... | apache-2.0 |
Thingee/cinder | cinder/volume/drivers/san/hp/hp_3par_common.py | 52446 | # (c) Copyright 2012-2014 Hewlett-Packard Development Company, L.P.
# 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/lic... | apache-2.0 |
naveedaz/azure-powershell | src/ResourceManager/Profile/Commands.Profile/Account/AddAzureRmAccount.cs | 14562 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft 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.apa... | apache-2.0 |
doheekim/chuizonetest | app/views.py | 3133 | #-*-coding:utf-8-*-
import sys
reload(sys)
sys.setdefaultencoding('UTF8')
from flask import render_template, request, redirect, url_for, Flask, session, jsonify, make_response, request
from app import app, db
from app.forms import AcademyForm
from app.models import Academy
from flask.ext.sqlalchemy import SQLAlchemy
f... | apache-2.0 |
bedatadriven/renjin-statet | org.renjin.core/src-gen/org/renjin/primitives/R$primitive$dim.java | 2826 |
package org.renjin.primitives;
import org.renjin.eval.Context;
import org.renjin.eval.EvalException;
import org.renjin.primitives.annotations.processor.ArgumentException;
import org.renjin.primitives.annotations.processor.ArgumentIterator;
import org.renjin.sexp.AbstractSEXP;
import org.renjin.sexp.BuiltinFunction;
i... | apache-2.0 |
m-lab/etl | parser/tcpinfo_test.go | 11010 | package parser_test
import (
"archive/tar"
"compress/gzip"
"context"
"encoding/json"
"errors"
"io"
"os"
"path/filepath"
"strings"
"testing"
"time"
"github.com/go-test/deep"
v2 "github.com/m-lab/annotation-service/api/v2"
"cloud.google.com/go/bigquery"
"cloud.google.com/go/civil"
"github.com/m-lab/an... | apache-2.0 |
juttle/juttle-viz | src/lib/generators/axis-label.js | 3162 | var d3 = require('d3');
var _ = require('underscore');
var defaults = require('../utils/default-options')();
/**
* Axis label component that can be used for x or y axis
* @param {Object} el - the HTML element
* @param {string} options.labelText - the label text
* @param {string} options.orientation - supported val... | apache-2.0 |
Spieldichein/ShoprX | Android/ShoprX/src/main/java/de/tum/in/schlichter/shoprx/Explanations/Algorithm/ValueConverter.java | 2852 | package de.tum.in.schlichter.shoprx.Explanations.Algorithm;
import android.content.Context;
import java.util.HashMap;
import de.tum.in.schlichter.shoprx.R;
/**
* Created by Nicksteal on 29.03.2015.
*/
public class ValueConverter {
static HashMap<String, Integer> sDescriptorMap;
static {
sDescrip... | apache-2.0 |
liuxing521a/itas-core | core/src/main/java/org/itas/core/dbpool/PreparedStatementHandle.java | 27479 | /*
Copyright 2009 Wallace Wadge
This file is part of BoneCP.
BoneCP is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
BoneCP is dist... | apache-2.0 |
dresl/python_web | gettingstarted/views.py | 13531 | from django.shortcuts import get_object_or_404, render, render_to_response
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.template import *
from django.views import generic
from django.utils import timezone
from polls.models import Choice, Question, G... | apache-2.0 |
Tangyingqi/Jiemian | app/src/androidTest/java/com/tyq/jiemian/ApplicationTest.java | 346 | package com.tyq.jiemian;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(A... | apache-2.0 |
jamesdbloom/mockserver | mockserver-examples/src/main/java/org/mockserver/examples/mockserver/MockServerClientExamples.java | 4972 | package org.mockserver.examples.mockserver;
import org.mockserver.client.MockServerClient;
import org.mockserver.integration.ClientAndServer;
import org.mockserver.model.ClearType;
import org.mockserver.model.HttpRequest;
import org.mockserver.model.HttpRequestAndHttpResponse;
import org.mockserver.verify.Verification... | apache-2.0 |
gmanev/queue-actions | queueactions-subscriber-jms/src/main/java/com/jjinterna/queueactions/subscriber/jms/impl/HttpActionRoute.java | 3073 | package com.jjinterna.queueactions.subscriber.jms.impl;
import java.util.Collection;
import java.util.Dictionary;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.dataformat.JaxbDataFormat;
import com.jjinterna.queueactions.model.QueueActionsEvent;
public... | apache-2.0 |
ederign/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-lienzo-extensions/src/main/java/org/kie/workbench/common/stunner/lienzo/toolbox/items/impl/ItemGridImpl.java | 8513 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
VahidN/DNTIdentity | src/ASPNETCoreIdentitySample/Areas/Identity/Controllers/UserCardController.cs | 2299 | using ASPNETCoreIdentitySample.Services.Contracts.Identity;
using ASPNETCoreIdentitySample.Services.Identity;
using ASPNETCoreIdentitySample.ViewModels.Identity;
using DNTBreadCrumb.Core;
using DNTCommon.Web.Core;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace ASPNETCoreIdentitySa... | apache-2.0 |
opencirclesolutions/dynamo | dynamo-api/src/main/java/com/ocs/dynamo/exception/OCSRuntimeException.java | 1154 | /*
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 u... | apache-2.0 |
ronniemara/android-UniversalMusicPlayer | mobile/src/main/java/net/africahomepage/mp3africa/ui/tv/TvVerticalGridActivity.java | 3952 | /*
* Copyright (C) 2014 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 |
thankpoint/thanks4java | security/src/main/java/io/github/thankpoint/security/impl/sign/SecuritySignatureGeneratorImplWithHash.java | 1671 | package io.github.thankpoint.security.impl.sign;
import io.github.thankpoint.security.api.algorithm.SecurityAlgorithm;
import io.github.thankpoint.security.api.hash.SecurityHashCreator;
import io.github.thankpoint.security.api.sign.SecuritySignatureCreator;
import io.github.thankpoint.security.api.sign.SecuritySignatu... | apache-2.0 |
embree/embree | common/tasking/taskschedulertbb.cpp | 2285 | // Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "taskschedulertbb.h"
namespace embree
{
static bool g_tbb_threads_initialized = false;
#if TBB_INTERFACE_VERSION >= 11005
static tbb::global_control* g_tbb_thread_control = nullptr;
#else
static tbb::task_scheduler_init g_... | apache-2.0 |
Liuzhiyang94/ComponentProjectDemo | ModuleDevelopDemo/modulea/src/main/java/com/lzy/demo/modulea/OrderInfoUtil2_0.java | 4884 | package com.lzy.demo.modulea;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.uti... | apache-2.0 |
googleads/google-ads-java | google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/MutateCampaignCustomizersResponse.java | 42532 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/services/campaign_customizer_service.proto
package com.google.ads.googleads.v9.services;
/**
* <pre>
* Response message for an campaign customizer mutate.
* </pre>
*
* Protobuf type {@code google.ads.googleads.v9.servi... | apache-2.0 |
mdejong/GvmCpp | src/GvmVectorSpace.hpp | 4836 | //
// GvmVectorSpace.hpp
// GvmCpp
//
// Created by Mo DeJong on 8/14/15.
//
// 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
//
#import "... | apache-2.0 |
pmuetschard/gwt-debug-panel | src/main/test/com/google/gwt/debugpanel/common/GwtStatisticsEventSystemTest.java | 4928 | /*
* Copyright 2009 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 agreed to in w... | apache-2.0 |
Deyuan/qmsim | Python/qos_scheduler.py | 5032 | # QoS Scheduler
# Schedule for a spec, return scheduled containers
# Author: Deyuan Guo, Chunkun Bo
# Date: Dec 10, 2015
# some factors:
# - task:
# "new" - just looking for available containers for a spec
# "update" - update qos spec, and consider actual_file_size
# "reschedule" - co... | apache-2.0 |
dotnetcurry/async-in-aspnet-vnext | AsyncWebApi/AsyncWebApi/About.aspx.designer.cs | 432 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------------... | apache-2.0 |
gesellix/docker-java | src/main/java/com/github/dockerjava/api/model/ContainerConfig.java | 8785 | package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProper... | apache-2.0 |
lyg123/sharding-jdbc | sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/executor/wrapper/PreparedStatementExecutorWrapper.java | 2976 | /*
* Copyright 1999-2015 dangdang.com.
* <p>
* 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 |
wqq686/keystone | keystone-core/src/main/java/com/keystone/server/KeystoneStoreManager.java | 5350 | package com.keystone.server;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.TimeUnit;
import com.alibaba.fast... | apache-2.0 |
alex9311/PredictionIO | examples/scala-parallel-similarproduct/recommended-user/src/main/scala/Serving.scala | 284 | package org.template.recommendeduser
import org.apache.predictionio.controller.LServing
class Serving
extends LServing[Query, PredictedResult] {
override
def serve(query: Query,
predictedResults: Seq[PredictedResult]): PredictedResult = {
predictedResults.head
}
}
| apache-2.0 |
mglukhikh/intellij-community | java/java-analysis-impl/src/com/intellij/codeInspection/AnonymousCanBeLambdaInspection.java | 26182 | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.codeInsight.ChangeContextUtil;
import com.intellij.codeInsight.daemon.Gro... | apache-2.0 |
nvlled/storemi | resources/public/js/ui.js | 11391 | /** @jsx React.DOM */
var View = React.createClass({displayName: 'View',
getInitialState: function() {
var state = {
data: this.props.data,
bindings: this.props.bindings,
activeChapterLabel: '',
}
var chapters = this.props.data.chapters;
if (_.si... | apache-2.0 |
hpgrahsl/kafka-connect-mongodb | src/main/java/at/grahsl/kafka/connect/mongodb/cdc/debezium/mongodb/MongoDbDelete.java | 1737 | /*
* Copyright (c) 2017. Hans-Peter Grahsl (grahslhp@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.org/licenses/LICENSE-2.0
*
* Unless required... | apache-2.0 |
yecjl/AndroidStudyDemo | Day10/10_videoplayer_v2/src/test/java/com/study/videoplayer2/ExampleUnitTest.java | 400 | package com.study.videoplayer2;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void... | apache-2.0 |
Alacant/Rawr-RG | ItemButtonWithEnchant.cs | 4566 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace Rawr
{
public partial class ItemButtonWithEnchant : UserControl
{
public ItemButtonWithEnchant()
{
InitializeComponent();
buttonEnc... | apache-2.0 |
Nersent/Wexond | src/preloads/chrome-webstore.ts | 2778 | export const injectChromeWebstoreInstallButton = () => {
const baseUrl =
'https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=%VERSION&x=id%3D%ID%26installsource%3Dondemand%26uc';
const ibText = 'Add to Wexond';
const ibTemplate =
'<div role="button" class=... | apache-2.0 |
tianfengjingjing/YOFC_Stage1_RightOracle | src/com/yofc/odn/contract/action/AddContractAttach.java | 3937 | package com.yofc.odn.contract.action;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.annotation.Resource;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.components.ElseIf;
import com.opensymphony.xwork2.Action... | apache-2.0 |
cloudflare/unsee | assets/static/unsilence.js | 3063 | "use strict";
const $ = require("jquery");
const unsee = require("./unsee");
var selectors = {
button: "button.silence-delete"
};
function unsilenceButtonByID(alertmanagerURI, silenceID) {
var amSelector = "[data-alertmanager-uri='" + alertmanagerURI + "']";
var silenceSelector = "[data-silence-id='" + ... | apache-2.0 |
BUPTAnderson/apache-hive-2.1.1-src | ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFOPNumericPlus.java | 3840 | /**
* 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 |
omacarena/only-short-poc | java.multiversion/v2dep/src/main/sample/multiversion/deps/CoreDependency.java | 137 | package sample.multiversion.deps;
public class CoreDependency {
public String getVersion() {
return "core-dep-v2";
}
}
| apache-2.0 |
florianerhard/gedi | cglib/src/net/sf/cglib/beans/TestBeanMap.java | 5695 | /**
*
* Copyright 2017 Florian Erhard
*
* 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 |
hazendaz/assertj-core | src/test/java/org/assertj/core/api/objectarray/ObjectArrayAssert_containsOnlyNulls_Test.java | 1256 | /*
* 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 |
SixLabors/Fonts | tests/SixLabors.Fonts.Tests/Issues/Issues_47.cs | 4033 | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Collections.Generic;
using System.Globalization;
using SixLabors.Fonts.Tests.Fakes;
using Xunit;
namespace SixLabors.Fonts.Tests.Issues
{
public class Issues_47
{
[Theory]
[InlineData("he... | apache-2.0 |
sptz45/coeus | src/main/scala/com/tzavellas/coeus/core/HttpResponseGenerator.scala | 1143 | /* - Coeus web framework -------------------------
*
* Licensed under the Apache License, Version 2.0.
*
* Author: Spiros Tzavellas
*/
package com.tzavellas.coeus.core
import javax.servlet.http.HttpServletResponse
import scala.collection.Set
private object HttpResponseGenerator {
/**
* Writes an response... | apache-2.0 |
fhalim/NServiceBus.PostgreSQL | NServiceBus.PostgreSQL/Stats.cs | 418 | namespace NServiceBus.PostgreSQL
{
using System;
public static class Stats
{
public static event EventHandler<MethodExecutionInfo> MethodExecuted;
public static void Raise(Object sender, MethodExecutionInfo executionInfo)
{
if (MethodExecuted != null)
{
... | apache-2.0 |
hubme/WorkHelperApp | javalib/src/main/java/com/example/serializable/ExternalizableSample.java | 1832 | package com.example.serializable;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/**
* @author VanceKing
* @since 2018/4/23.
*/
class ExternalizableSample {
public static void main(String[] args) {
testExternalizable();
}
pr... | apache-2.0 |
equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/core/harvester/oai/verb/ListMetadataFormats.java | 1807 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | apache-2.0 |
laimis/lucenenet | src/Lucene.Net.Tests.QueryParser/Classic/TestMultiAnalyzer.cs | 11484 | /*
*
* 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"); y... | apache-2.0 |
denis-colliot/fscf-contacts | src/main/java/fr/fscf/contacts/shared/command/result/SecureNavigationResult.java | 1090 | package fr.fscf.contacts.shared.command.result;
import fr.fscf.contacts.client.util.ToStringBuilder;
import fr.fscf.contacts.shared.command.SecureNavigationCommand;
import fr.fscf.contacts.shared.command.result.base.Result;
/**
* {@link SecureNavigationCommand} corresponding result.
*
* @author Denis
*/
public cl... | apache-2.0 |
elarasu/roverz-chat | src/components/general/Loading.js | 1306 | /**
* Loading Screen
*
<Loading text={'Server is down'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View, ActivityIndicator } from 'react-native';
// Consts and Libs
import { AppStyles, AppCo... | apache-2.0 |
lu4242/ext-myfaces-2.0.2-patch | trunk/myfaces-impl-2021override/src/main/java/org/apache/myfaces/ov2021/view/facelets/el/ELText.java | 16882 | /*
* 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 |
taichi/org.handwerkszeug.mvnhack | src/org/handwerkszeug/common/util/Streams.java | 2463 | package org.handwerkszeug.common.util;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.util.logging.Level;
import java.util.logging.Logger;
import or... | apache-2.0 |
LearnLib/learnlib | algorithms/active/adt/src/main/java/de/learnlib/algorithms/adt/config/model/calculator/BestEffortDefensiveCalculator.java | 1683 | /* Copyright (C) 2013-2022 TU Dortmund
* This file is part of LearnLib, http://www.learnlib.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/... | apache-2.0 |
milg0/onvif-java-lib | src/org/onvif/ver10/device/wsdl/GetHostname.java | 1151 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2014.02.04... | apache-2.0 |
metacloud/python-troveclient | troveclient/compat/utils.py | 1914 | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 |
epidataio/epidata-community | play/test/AutomatedTestsTypeSpecs.scala | 49101 | /*
* Copyright (c) 2015-2017 EpiData, Inc.
*/
import cassandra.DB
import com.epidata.lib.models.{ AutomatedTest => Model }
import com.epidata.lib.models.util.Binary
import com.epidata.lib.models.util.Datatype
import java.util.Date
import javax.xml.bind.DatatypeConverter
import models.{ MeasurementService, AutomatedTe... | apache-2.0 |
c-knowles/kube-aws | vendor/github.com/aws/amazon-vpc-cni-k8s/pkg/networkutils/mocks/network_mocks.go | 2657 | // Copyright 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"... | apache-2.0 |
felislynx-silae/GearBugSample | app/src/main/java/eu/lynxit/sampleapp/SceneObjectEventListener.java | 169 | package eu.lynxit.sampleapp;
public abstract class SceneObjectEventListener {
public abstract void onLoadingFinished(PresentationThumbnailGVRSceneObject object);
}
| apache-2.0 |
shantanusharma/closure-compiler | src/com/google/javascript/jscomp/gwt/client/JsfileParser.java | 16383 | /*
* Copyright 2015 The Closure Compiler 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... | apache-2.0 |
fxzjshm/Polyfiter | core/src/main/java/net/hakugyokurou/fds/parser/MathExpressionParserConstants.java | 1023 | /* Generated By:JavaCC: Do not edit this line. MathExpressionParserConstants.java */
package net.hakugyokurou.fds.parser;
/**
* Token literal values and constants.
* Generated by org.javacc.parser.OtherFilesGen#start()
*/
interface MathExpressionParserConstants {
/** End of File. */
int EOF = 0;
/** Regular... | apache-2.0 |
liwei3380/coolweather | src/com/coolweather/app/util/Utility.java | 4902 | package com.coolweather.app.util;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.R.integer;
import android.content.Context;
import android.content.SharedPreferences;
import android... | apache-2.0 |
xirun/panamax-api | spec/builders/template_builder/from_fig_spec.rb | 3419 | require 'spec_helper'
describe TemplateBuilder::FromFig do
let(:fig_yml) { File.open("#{Rails.root}/spec/support/fixtures/fig.yml").read }
let(:options) do
HashWithIndifferentAccess.new(
'name' => 'figgy-template',
'description' => 'some template',
'keywords' => 'foo,baz,bar',
... | apache-2.0 |
sdeleuze/reactor-core | reactor-core/src/test/java/reactor/core/publisher/MonoDelayUntilTest.java | 9453 | /*
* Copyright (c) 2011-2017 Pivotal Software 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
*
* Unles... | apache-2.0 |
Thangiee/Personal-Health-Monitoring-System | PHMS/libs/LibWizardPager/src/co/juliansuarez/libwizardpager/wizard/model/SingleFixedChoicePage.java | 2010 | /*
* Copyright 2012 Roman Nurik
*
* 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 |
BenzChe/CoolWeather | app/src/main/java/com/example/benzche/coolweather/util/HttpCallBackListener.java | 216 | package com.example.benzche.coolweather.util;
/**
* Created by benz.che on 4/20/2016.
*/
public interface HttpCallBackListener {
public void onFinish(String response);
public void onError(Exception e);
}
| apache-2.0 |
kindlejiang/jkb | addons/library/Http.class.php | 16130 | <?php
// +----------------------------------------------------------------------
// | ThinkPHP
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | ... | apache-2.0 |
bibliolabs/rome | rome-modules/src/test/java/com/rometools/modules/base/types/FloatUnitTest.java | 1865 | /*
* FloatUnitTest.java
* JUnit based test
*
* Created on November 18, 2005, 5:16 PM
*
* 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 |
googleinterns/voxetta | ui/src/components/ReRecordButton.js | 1420 | /*
* 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 |
nateman145/bracketologizer | app/controllers/application_controller.rb | 347 | # Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
protect_from_forgery # See ActionController::RequestForgeryPr... | apache-2.0 |
mchernev/barcode-scanner | server/backend/serverexpress.js | 5223 | const express = require('express')
const app = express()
var bodyParser = require("body-parser");
const redis = require('./redistest.js')
const model = require('./model.js')
app.get('/', function (req, res) {
res.send('Hello World!')
})
// app.use(express.logger());
// app.use(function(req, res, next) {
// //... | apache-2.0 |
Nike-Inc/cerberus-lifecycle-cli | src/main/java/com/nike/cerberus/domain/cloudformation/CloudFormationParametersDelegate.java | 2154 | /*
* Copyright (c) 2019 Nike, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | apache-2.0 |
googleapis/nodejs-service-control | protos/protos.d.ts | 368034 | // Copyright 2022 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 w... | apache-2.0 |
seiffert/amazon-ecs-agent | agent/api/json_test.go | 5243 | // Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license... | apache-2.0 |
caryll/Megaminx | types/glyph.js | 2823 | "use strict";
const clone = require("clone");
const Point = require("typo-geom").Point;
const Transform = require("../geometry/transform");
const { mix } = require("../support/calc");
class Glyph {
constructor(em, format) {
this.em = em;
this.tag = null;
this.format = format;
this.advanceWidth = ... | apache-2.0 |
mikrain/appletv | ARSoft.Tools.Net/Dns/DnsRecord/MxRecord.cs | 2776 | #region Copyright and License
// Copyright 2010..2012 Alexander Reinert
//
// 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... | apache-2.0 |
mfornos/humanize | humanize-slim/src/main/java/humanize/util/Constants.java | 5494 | package humanize.util;
import humanize.spi.context.DefaultContext;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import com.google.common.base.Joiner;
/**
* Humanize constants
*
*/
public final c... | apache-2.0 |
StellarCN/py-stellar-base | stellar_sdk/xdr/account_entry_extension_v2_ext.py | 1728 | # This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from ..type_checked import type_checked
from .base import Integer
__all__ = ["AccountEntryExtensionV2Ext"]
@type_checked
class AccountEntryExtensionV2Ext:
"""
XDR Sou... | apache-2.0 |
googleapis/java-monitoring | samples/snippets/src/main/java/com/example/monitoring/GetMonitoredResource.java | 1984 | /*
* 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 agreed to in wr... | apache-2.0 |
mihaip/overplot | geocode-locations.py | 2220 | #!/usr/bin/python
MANHATTAN_ZIP_CODES = [
10001, 10002, 10003, 10004, 10005, 10006, 10007, 10008, 10009, 10010, 10011,
10012, 10013, 10014, 10015, 10016, 10017, 10018, 10019, 10020, 10021, 10022,
10023, 10024, 10025, 10026, 10027, 10029, 10030, 10031, 10032, 10033, 10034,
10035, 10036, 10037, 10038, 10039, ... | apache-2.0 |
QISKit/qiskit-sdk-py | examples/python/stochastic_swap.py | 6343 | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | apache-2.0 |
code-doyen/kata | test/src/com/comresource/kata/AllTests.java | 242 | package com.comresource.kata;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({ TestBoard.class, TestView.class })
public class AllTests {
}
| apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-opsworkscm/src/main/java/com/amazonaws/services/opsworkscm/model/BackupType.java | 1619 | /*
* 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 |
laccore/coretools | coretools-model/src/main/java/org/andrill/coretools/model/edit/CreateCommand.java | 1551 | /*
* Copyright (c) Josh Reed, 2009.
*
* 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 |
gentics/mesh | core/src/main/java/com/gentics/mesh/core/endpoint/tagfamily/TagFamilyEndpoint.java | 11598 | package com.gentics.mesh.core.endpoint.tagfamily;
import static com.gentics.mesh.core.rest.MeshEvent.NODE_UNTAGGED;
import static com.gentics.mesh.core.rest.MeshEvent.TAG_CREATED;
import static com.gentics.mesh.core.rest.MeshEvent.TAG_DELETED;
import static com.gentics.mesh.core.rest.MeshEvent.TAG_FAMILY_CREATED;
impo... | apache-2.0 |
supergiant/supergiant | pkg/workflows/steps/amazon/find_ami.go | 3683 | package amazon
import (
"context"
"fmt"
"io"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/supergiant/control/pkg/util"
"github.com/supergiant/control/pkg/workflows/... | apache-2.0 |
tndatacommons/OfficeHours-Android | model/src/main/java/org/tndata/officehours/model/Course.java | 7584 | package org.tndata.officehours.model;
import android.os.Parcel;
import android.support.annotation.NonNull;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
/**
* Model class for a course.
*
* @author Ismael Alonso
* @version 1.0.0
*/
public class Course ex... | apache-2.0 |
googlecreativelab/lines-of-play | Assets/Scripts/ObjectPooler.cs | 8645 | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.SceneManagement;
[Serializable]
public class ObjectPool
{
public GameObject ObjectToPool;
public string PoolName;
public int AmountToPool;
public bool ShouldExpand = true;
public ObjectPool() { ... | apache-2.0 |
gosu-lang/gosu-lang | gosu-core-api/src/main/java/gw/plugin/IPluginHost.java | 414 | package gw.plugin;
/**
* This simple interface provides the core foundation for component architecture in Gosu.
*/
public interface IPluginHost
{
/**
* Provides an implementation of a specified interface.
* @param apiInterface
* @param <T>
* @return The implementation of the interface or null if unsupp... | apache-2.0 |