repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
muthuishere/sshcommandbroadcaster | src/com/sshutils/views/settings/ServerDetails.java | 35807 | /*
* Copyright 2013 Muthukumaran (https://github.com/muthuishere/).
*
* 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 re... | apache-2.0 |
qwangrepos/helm | pkg/helm/portforwarder/portforwarder_test.go | 2049 | /*
Copyright 2016 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | apache-2.0 |
CoffeeMail/CoffeeMail | src/coffeemail/dns/MXRecord.java | 972 | package coffeemail.dns;
public class MXRecord implements Comparable<MXRecord> {
private String domain;
private short priority;
private short port = 25;
public MXRecord(String domain, int priority) {
if (domain.replace(":", "").length() < domain.length()) {
String[] parts = domain.split(":");
this.domain ... | apache-2.0 |
mmm2a/game-center | src/com/morgan/server/constants/PageConstantsSource.java | 322 | package com.morgan.server.constants;
/**
* Interface for a type that can provide page constants.
*
* @author mark@mark-morgan.net (Mark Morgan)
*/
public interface PageConstantsSource {
/**
* Asks this provider to add its constants to the sink.
*/
void provideConstantsInto(PageConstants constantsSink);
... | apache-2.0 |
pepperonas/AndBasx | library/src/main/java/com/pepperonas/andbasx/format/TimeFormatUtilsLocalized.java | 5951 | /*
* Copyright (c) 2017 Martin Pfeffer
*
* 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 |
gxa/atlas | gxa/src/main/javascript/bundles/differential-expression/src/DifferentialRouterLoader.js | 3071 | import React from 'react'
import PropTypes from 'prop-types'
import { connect, PromiseState } from 'react-refetch'
import URI from 'urijs'
import DifferentialRouter from './DifferentialRouter'
const transformFacetsResponseToArray = (facetsResponse) => {
return Object.keys(facetsResponse).map(facetName => {
ret... | apache-2.0 |
erikmack/lxd | lxd/cluster/raft.go | 14646 | package cluster
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"math"
"net"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/CanonicalLtd/dqlite"
"github.com/CanonicalLtd/raft-http"
"github.com/CanonicalLtd/raft-membership"
"github.com/boltdb/bolt"
"github.com/hashicorp/raft"
"github... | apache-2.0 |
howardliu-cn/cynomys | cynomys-client/cynomys-agent/src/main/java/cn/howardliu/monitor/cynomys/agent/dto/ApplicationInfo.java | 7882 | /**
* @Probject Name: netty-wfj-base
* @Path: com.wfj.netty.monitor.dtoApplicationInfo.java
* @Create By Jack
* @Create In 2015年8月26日 下午7:03:40
*/
package cn.howardliu.monitor.cynomys.agent.dto;
/**
* @Class Name ApplicationInfo
* @Author Jack
* @Create In 2015年8月26日
*/
public class ApplicationInfo {
pri... | apache-2.0 |
SmoothSync/smoothsetup | library/src/main/java/com/smoothsync/smoothsetup/restrictions/RestrictionService.java | 1577 | /*
* Copyright (c) 2020 dmfs GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 |
MnAnX/Infra | ZmqServer/src/nx/server/zmq/IHandler.java | 139 | package nx.server.zmq;
public interface IHandler
{
String getServiceName();
String process(String request) throws Exception;
}
| apache-2.0 |
JonathanAQ/HospitalProject | AuthenticationFilter.java | 1884 | package com.hospital.fase.prog3.Filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotatio... | apache-2.0 |
RobertSzarejko/WebSecurityForBackendDev | web-security-demo/src/main/java/pl/itdonat/demo/wsfbd/encryption/CryptoOneController.java | 1211 | package pl.itdonat.demo.wsfbd.encryption;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import pl.itdonat.demo.wsfbd.encryption.encode.EncodeData;
import pl.itdonat.demo.wsfbd.encryptio... | apache-2.0 |
cherryhill/collectionspace-services | services/report/client/src/test/java/org/collectionspace/services/client/test/ReportServiceTest.java | 14833 | /**
* This document is a part of the source code and related artifacts
* for CollectionSpace, an open source collections management system
* for museums and related institutions:
*
* http://www.collectionspace.org
* http://wiki.collectionspace.org
*
* Copyright © 2009 Regents of the University of California
*
... | apache-2.0 |
alibaba/nacos | console/src/main/resources/static/console-ui/public/js/javascript.js | 32209 | /*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... | apache-2.0 |
lei-xia/helix | helix-core/src/test/java/org/apache/helix/manager/zk/TestWtCacheSyncOpSingleThread.java | 6774 | package org.apache.helix.manager.zk;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License... | apache-2.0 |
objectos/core | io/io-legacy/src/main/java/br/com/objectos/way/io/SheetXlsApachePOI.java | 2084 | /*
* Copyright 2013 Objectos, Fábrica de Software LTDA.
*
* 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 |
alefesouza/gdg-sp | Back-end/api/delete_users.php | 1086 | <?php
/*
* Copyright (C) 2017 Alefe Souza <contact@alefesouza.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 requi... | apache-2.0 |
educask/EducaskCore | core/classes/MenuEngine.php | 18223 | <?php
/**
* User: Keegan Bailey
* Date: 13/05/14
* Time: 9:53 AM
*/
class MenuEngine {
/* Checking to see if the instance variable is holding onto to status engine object
* and if it's not create one.
*/
private static $instance;
public static function getInstance() {
if (!isset(self::... | apache-2.0 |
chris6k/tiyuzazhi | src/com/tiyuzazhi/app/CommentCenterActivity.java | 2095 | package com.tiyuzazhi.app;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.Html;
import android.view.View;
import android.widget.TextView;
import com.tiyuzazhi.api.ArticleApi;
import com.tiyuzazhi.beans.ExaminingArticle;
import com.tiyuzaz... | apache-2.0 |
NewcastleComputingScience/student-outcome-accelerator | glance-core/shared/src/main/scala/uk/ac/ncl/la/soar/glance/eval/SurveyResponse.scala | 4053 | /** Default (Template) Project
*
* Copyright (c) 2017 Hugo Firth
* Email: <me@hugofirth.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/lice... | apache-2.0 |
vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Abilities/Spells/Spell_Fly.java | 4062 | package com.planet_ink.coffee_mud.Abilities.Spells;
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.coffee_mud.Areas.interfaces.*;
import com.p... | apache-2.0 |
CargoWebServer/CargoWebServer | Project/src/code.myceliUs.com/CargoWebServer/Cargo/Server/GraphStore.go | 74285 | package Server
import (
"bytes"
"encoding/gob"
"encoding/json"
"errors"
"io/ioutil"
"log"
"os"
"reflect"
"strings"
"regexp"
"strconv"
"time"
"code.myceliUs.com/CargoWebServer/Cargo/Entities/CargoEntities"
"code.myceliUs.com/CargoWebServer/Cargo/Entities/Config"
"code.myceliUs.com/CargoWebServer/Cargo/... | apache-2.0 |
Blazebit/blaze-utils | blaze-common-utils/src/main/java/com/blazebit/text/URLFormat.java | 563 | /*
* Copyright 2011 Blazebit
*/
package com.blazebit.text;
import java.net.MalformedURLException;
import java.net.URL;
/**
* @author Christian Beikov
* @since 0.1.9
*/
public class URLFormat extends AbstractFormat<URL> {
private static final long serialVersionUID = 1L;
public URLFormat() {
super... | apache-2.0 |
DariusX/camel | components/camel-saxon/src/test/java/org/apache/camel/component/xslt/SaxonInvalidXsltFileTest.java | 2029 | /*
* 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 |
mmeany/mvm-link-checker | src/main/java/com/mvmlabs/springboot/web/AdminController.java | 1376 | package com.mvmlabs.springboot.web;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.web.bind.annotation.AuthenticationPrincipal;
import org.springframework.stereotype.Controller;
import org.springframework.ui... | apache-2.0 |
WIgor/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java | 9756 | /**
* 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 |
leafclick/intellij-community | jps/model-serialization/src/com/intellij/openapi/components/PathMacroMap.java | 3156 | // Copyright 2000-2018 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.openapi.components;
import com.intellij.openapi.application.PathMacroFilter;
import com.intellij.openapi.diagnostic.Logger;
import org.jdom.*;
import org.jet... | apache-2.0 |
praveev/druid | benchmarks/src/main/java/io/druid/benchmark/TopNTypeInterfaceBenchmark.java | 22188 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | apache-2.0 |
googleapis/google-api-php-client-services | src/CertificateAuthorityService/EcKeyType.php | 1198 | <?php
/*
* Copyright 2014 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 t... | apache-2.0 |
xushaomin/apple-jms | apple-jms-springkafka/src/main/java/com/appleframework/jms/kafka/consumer/multithread/thread/ObjectMessageConsumer.java | 369 | package com.appleframework.jms.kafka.consumer.multithread.thread;
import com.appleframework.jms.core.consumer.IMessageConusmer;
/**
* @author Cruise.Xu
*
*/
public abstract class ObjectMessageConsumer extends BaseMessageConsumer<Object> implements IMessageConusmer<Object> {
@Override
public void processMessage... | apache-2.0 |
debop/debop4s | debop4s-core/src/main/scala/debop4s/core/spring/Profiles.scala | 362 | package debop4s.core.spring
/**
* debop4s.core.spring.Profiles
*
* @author 배성혁 sunghyouk.bae@gmail.com
* @since 2013. 12. 12. 오전 10:54
*/
class Profiles extends Enumeration {
type Profiles = Value
val LOCAL = Value(0, "LOCAL")
val DEVELOP = Value(1, "DEVELOP")
val TEST = Value(2, "TEST")
val PRODUC... | apache-2.0 |
ideaworld/BioDesigner | system/gene.py | 15970 | """
gene.py realize the methods that are related to system recommendation.
@author: Bowen
"""
from system.models import gene, reaction, compound, reaction_compound, compound_gene, pathway, pathway_compound, organism
from system.fasta_reader import parse_fasta_str
from elasticsearch import Elasticsearch
import traceba... | apache-2.0 |
CiNC0/Cartier | cartier-redis/src/test/java/com/lambdaworks/redis/cluster/NodeSelectionAsyncTest.java | 10040 | /*
* Copyright 2011-2016 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 |
william-taylor/world-cup-manager | app/app/src/main/java/application/events/StateEvent.java | 1394 | package application.events;
import java.util.TimerTask;
import java.util.Timer;
import framework.IEvent;
import framework.core.*;
import framework.graphics.Button;
public class StateEvent implements IEvent {
private Boolean goToNextScene;
private Button button;
private Integer stateID;
private Time... | apache-2.0 |
lesaint/damapping | core-parent/annotation-processor/src/main/java/fr/javatronic/damapping/processor/impl/javaxparsing/model/JavaxDASourceClass.java | 3371 | /**
* Copyright (C) 2013 Sébastien Lesaint (http://www.javatronic.fr/)
*
* 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
*
* Unle... | apache-2.0 |
aanand/dockerpty | setup.py | 1647 | # dockerpty.
#
# Copyright 2014 Chris Corbyn <chris@w3style.co.uk>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | apache-2.0 |
ecohealthalliance/GoodQuestion | js/components/Header.js | 5911 | import React from 'react';
import {
View,
Text,
TouchableWithoutFeedback,
Alert,
Platform,
Animated,
Easing,
StyleSheet,
} from 'react-native';
import pubsub from 'pubsub-js';
import { NotificationChannels } from '../models/messages/Notification';
import Icon from 'react-native-vector-icons/FontAwesom... | apache-2.0 |
lenovor/zen | ml/src/main/scala/com/github/cloudml/zen/ml/recommendation/MVMModel.scala | 6012 | /*
* 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 |
jaredhoberock/gotham | windows/include/boost/math/distributions.hpp | 1902 | // Copyright John Maddock 2006, 2007.
// Copyright Paul A. Bristow 2006, 2007.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// This file includes *all* the distrib... | apache-2.0 |
ryan-developer/TechEval.HCatalyst | source/TechEval.HCatalyst/TechEval.HCatalyst.Web/Utilities/IStringUtils.cs | 140 | namespace TechEval.HCatalyst.Web.Utilities
{
public interface IStringUtils
{
string GenerateRandomAlphaNumeric();
}
} | apache-2.0 |
SirPigles/rsf | forums/inc/languages/english/applythreadprefix.lang.php | 1320 | <?php
/**
* Apply Thread Prefix
* Copyright 2011 Starpaul20
*/
$l['applythreadprefix_info_name'] = "Apply Thread Prefix";
$l['applythreadprefix_info_desc'] = "Allows moderators to apply a thread prefix to threads without having to edit the post.";
$l['apply_thread_prefix'] = "Apply Thread Prefix";
$l['new_prefix']... | apache-2.0 |
AnujaLK/andes | modules/andes-core/broker/src/main/java/org/wso2/andes/server/cluster/coordination/hazelcast/HazelcastAgent.java | 18069 | /*
* Copyright (c) 2005-2014, 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.apach... | apache-2.0 |
kool79/IocPerformance | IocPerformance/Benchmarks/Advanced/09_ChildContainer_Benchmark.cs | 1738 | using System;
using IocPerformance.Adapters;
using IocPerformance.Classes.Child;
using IocPerformance.Classes.Standard;
namespace IocPerformance.Benchmarks.Advanced
{
public class ChildContainer_09_Benchmark : Benchmark
{
public override bool IsSupportedBy(IContainerAdapter container)
{
... | apache-2.0 |
knative-sandbox/eventing-rabbitmq | vendor/github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/exchange.go | 6684 | /*
RabbitMQ Messaging Topology Kubernetes Operator
Copyright 2021 VMware, Inc.
This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License.
This product may include a number of subcomponents with separate... | apache-2.0 |
zhangminglei/flink | flink-runtime/src/test/java/org/apache/flink/runtime/state/heap/CachingInternalPriorityQueueSetTestBase.java | 1819 | /*
* 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 |
HubSpot/Baragon | BaragonService/src/main/java/com/hubspot/baragon/service/config/BaragonServiceDWSettings.java | 389 | package com.hubspot.baragon.service.config;
public class BaragonServiceDWSettings {
private final int port;
private final String contextPath;
public BaragonServiceDWSettings(int port, String contextPath) {
this.port = port;
this.contextPath = contextPath;
}
public int getPort() {
return port;
... | apache-2.0 |
junforjun/webp | src/main/java/com/webp/model/UserAuthentication.java | 1134 | package com.webp.model;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.IdClass;
import javax.persistence.Id;
import com.webp.model.pk.UserAuthenticationPK;
/... | apache-2.0 |
taimir/dashboard | src/app/frontend/replicationcontrollerlist/podlogsmenu_component.js | 4975 | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | apache-2.0 |
denouche/selma | processor/src/test/java/fr/xebia/extras/selma/it/generic/GenericMapperIT.java | 3465 | /*
* Copyright 2013 Xebia and Séven Le Mesle
*
* 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 |
o3project/openflowj-otn | src/main/java/org/projectfloodlight/openflow/protocol/ver13/OFActionIdBsnSetTunnelDstVer13.java | 6449 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | apache-2.0 |
josephcsible/GravityBox | app/src/main/java/com/ceco/marshmallow/gravitybox/PhoneWrapper.java | 15588 | /*
* Copyright (C) 2013 Peter Gregus for GravityBox Project (C3C076@xda)
* 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 |
anamariad/ML | Clusterization/clusterization/em2d.py | 4353 | import sys
import getopt
import random
import numpy as np
import utils as utils
def estimation(K, means, points, stddev):
points_size = len(points)
expectations = np.zeros((points_size, K))
for i in range(0, points_size):
total = 0
current_point = points[i]
for j in range(0, K):
... | apache-2.0 |
wangzheng0822/algo | c-cpp/17_skiplist/SkipList.cpp | 8155 | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <cstring>
#include <random>
#include <ctime>
using namespace std;
/**
* Ìø±íµÄÒ»ÖÖʵÏÖ·½·¨¡£
* Ìø±íÖд洢µÄÊÇÕýÕûÊý£¬²¢ÇÒ´æ´¢µÄÊDz»Öظ´µÄ¡£
*
* Ìø±íµÄC++°æ±¾.
* ·ÒëJAVA°æ±¾ Ô×÷Õß Author£ºZHENG
*
* Author£ºpuhuaqiang
*
* ... | apache-2.0 |
lmjacksoniii/hazelcast | hazelcast/src/test/java/com/hazelcast/collection/impl/list/ClusterListTest.java | 6619 | /*
* Copyright (c) 2008-2016, 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 |
telefonicaid/fiware-cosmos-platform | infinity/client/src/test/scala/es/tid/cosmos/infinity/client/mock/ErrorBehavior.scala | 1708 | /*
* Copyright (c) 2013-2014 Telefónica Investigación y Desarrollo S.A.U.
*
* 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 |
raybooysen/esp-js | src/system/logging/defaultSink.js | 761 | // notice_start
/*
* Copyright 2015 Dev Shop 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 applicabl... | apache-2.0 |
Windows-XAML/Template10 | Source/Template10.Services.Nag/Default/NagSettings.cs | 169 |
namespace Template10.Services
{
public static class NagSettings
{
public static IDialogResourceResolver CustomResolver { get; set; } = null;
}
}
| apache-2.0 |
williballenthin/synapse | synapse/lib/certdir.py | 9049 | import os
from OpenSSL import crypto
import synapse.lib.tags as s_tags
from synapse.common import *
defdir = os.getenv('SYN_CERT_DIR')
if defdir == None:
defdir = '~/.syn/certs'
def iterFqdnUp(fqdn):
levs = fqdn.split('.')
for i in range(len(levs)):
yield '.'.join( levs[i:] )
class CertDir:
... | apache-2.0 |
McLeodMoores/starling | projects/financial-types/src/test/java/com/opengamma/financial/convention/InflationLegConventionTest.java | 2807 | /**
* Copyright (C) 2019 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.opengamma.financial.convention;
import static org.testng.Assert.assertEquals;
import java.util.Arrays;
import org.testng.annotations.Test;
import com.opengamma.financial.AbstractBeanTestCase;
import com.opengam... | apache-2.0 |
landawn/AbacusUtil | src/com/landawn/abacus/util/SQLExecutor.java | 410612 | /*
* Copyright (C) 2015 HaiYang Li
*
* 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 |
dvamedveda/b.savelev | chapter_002/src/main/java/ru/job4j/professions/common/Diagnose.java | 167 | package ru.job4j.professions.common;
/**
* Вспомогательный класс, обозначащий диагноз врача
*/
public class Diagnose {
}
| apache-2.0 |
lyncode/sushi-counter | sushi-counter-core/src/main/java/org/niso/schemas/counter/Contact.java | 769 |
package org.niso.schemas.counter;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Contact", propOrder = {
"contact",
... | apache-2.0 |
akbrant/javaschtasks.batchjob | java_schtasks/src/main/java/javaschtasks/batchjob/ReadXMLFile.java | 6302 | package javaschtasks.batchjob;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
... | apache-2.0 |
thuongleit/dynamic-recycler-adapter | sample/src/main/java/me/thuongle/adaptersample/view/main/PresenterImpl.java | 3921 | package me.thuongle.adaptersample.view.main;
import android.support.annotation.NonNull;
import android.util.Log;
import me.thuongle.adaptersample.BR;
import me.thuongle.adaptersample.data.Task;
import me.thuongle.adaptersample.data.TaskRepository;
import me.thuongle.dynamicadapter.handler.ChildItemsClickBinder;
impor... | apache-2.0 |
google/vpn-libraries | krypton/tunnel_manager_test.cc | 14430 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the );
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
steven-zou/harbor | src/portal/lib/src/config/vulnerability/vulnerability-config.component.ts | 7220 | import { Component, Input, Output, EventEmitter, ViewChild, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { map, catchError } from "rxjs/operators";
import { Observable, throwError as observableThrowError, of } from "rxjs";
import { Configuration } from '../config';
import {
Scannin... | apache-2.0 |
Epi-Info/Epi-Info-Community-Edition | Epi.Windows.Analysis/Dialogs/RelateDialog.Designer.cs | 14082 | namespace Epi.Windows.Analysis.Dialogs
{
partial class RelateDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | apache-2.0 |
bhavyanshu/OpenVID-sys | app/Http/Controllers/OrgController.php | 4293 | <?php
/**
* OpenVID-sys
*
* @copyright 2016 Bhavyanshu Parasher (https://bhavyanshu.me)
* @license http://www.apache.org/licenses/LICENSE-2.0.txt Apache License
* @link https://bhavyanshu.me/pages/openvid_sys/
*/
namespace openvidsys\Http\Controllers;
use DB;
use Carbon\Carbon;
use Validator;
use Hash;
us... | apache-2.0 |
fdecampredon/jsx-typescript-old-version | tests/baselines/reference/genericArrayMethods1.js | 58 | //// [genericArrayMethods1.js]
var x = [0, 1].slice(0);
| apache-2.0 |
ViDA-NYU/ache | ache/src/main/java/achecrawler/crawler/crawlercommons/fetcher/http/LocalCookieStore.java | 4070 | /**
* 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 |
Inform-Software/jamps | jamps-core/src/main/java/com/inform/jamps/modeling/QuadraticTerm.java | 751 | /*
* Copyright (C) 2015 The Jamps 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 |
ConsecroMUD/ConsecroMUD | com/suscipio_solutions/consecro_mud/Behaviors/TaxiBehavior.java | 7929 | package com.suscipio_solutions.consecro_mud.Behaviors;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability;
import com.suscipio_solutions.consecro_mud.Behaviors.interfaces.Behavior;
import com.suscipio_solutions.consecro_... | apache-2.0 |
mhlx/mblog | src/main/java/me/qyh/blog/file/vo/StaticFile.java | 1832 | /*
* Copyright 2017 qyh.me
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | apache-2.0 |
zhujunxxxxx/SportsPage | andriod/SportPage/app/src/main/java/com/sportspage/event/UpdateBadgeEvent.java | 338 | package com.sportspage.event;
/**
* Created by tenma on 3/23/17.
*/
public class UpdateBadgeEvent {
private String path;
public UpdateBadgeEvent(String path) {
this.path = path;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.pat... | apache-2.0 |
googleapis/google-api-php-client-services | src/OSConfig/OSPolicyResourceRepositoryResourceAptRepository.php | 2321 | <?php
/*
* Copyright 2014 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 t... | apache-2.0 |
consulo/consulo-javascript | plugin/src/main/java/com/intellij/lang/javascript/flex/importer/MemberInfo.java | 1495 | /*
* Copyright 2000-2005 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 |
pacogomez/pyvcloud | tests/vcd_catalog_setup.py | 1193 | import os
import unittest
import yaml
from pyvcloud.vcd.client import BasicLoginCredentials
from pyvcloud.vcd.client import Client
from pyvcloud.vcd.org import Org
from pyvcloud.vcd.test import TestCase
class TestCatalogSetup(TestCase):
def test_create_catalog(self):
logged_in_org = self.client.get_org()
... | apache-2.0 |
erdi/grails-core | grails-plugin-gsp/src/ast/groovy/org/codehaus/groovy/grails/compiler/web/gsp/GroovyPageBytecodeOptimizer.java | 2117 | /*
* Copyright 2011 SpringSource
*
* 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 |
AlanJinTS/zstack | sdk/src/main/java/org/zstack/sdk/ImageInventory.java | 4437 | package org.zstack.sdk;
public class ImageInventory {
public java.lang.String uuid;
public void setUuid(java.lang.String uuid) {
this.uuid = uuid;
}
public java.lang.String getUuid() {
return this.uuid;
}
public java.lang.String name;
public void setName(java.lang.String ... | apache-2.0 |
Jackygq1982/hbase_src | hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestDistributedLogSplitting.java | 62305 | /**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); ... | apache-2.0 |
jarib/mongo-ruby-driver | lib/bson/types/dbref.rb | 1122 | # encoding: UTF-8
# --
# Copyright (C) 2008-2010 10gen 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 applicab... | apache-2.0 |
lsmaira/gradle | subprojects/core/src/main/java/org/gradle/initialization/layout/ProjectCacheDir.java | 1999 | /*
* Copyright 2017 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 |
CESNET/secant | tools/assessment.py | 3494 | #!/usr/bin/env python3
import re
import sys
import fileinput
from lxml import etree
import os
import importlib
import time
import logging
import yaml
import subprocess
secant_path = os.path.dirname(os.path.realpath(__file__)) + "/.."
sys.path.append(secant_path + "/include")
from py_functions import getSettingsFromBa... | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Processors/Atmel/src/test.processors/java/ghidra/test/processors/AVR8_6_GCC_O0_EmulatorTest.java | 2107 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | apache-2.0 |
AlexLandau/escape-rope | src/main/java/net/alloyggp/escaperope/restrict/CharDomain.java | 259 | package net.alloyggp.escaperope.restrict;
/**
* A CharDomain represents a set of available characters. If you
* want to restrict the output of a Delimiter to a single value,
* you can use a CharDomain to specify this.
*/
public interface CharDomain {
}
| apache-2.0 |
danieldk/dictomaton | src/main/java/eu/danieldk/dictomaton/collections/ImmutableStringObjectMap.java | 8573 | // Copyright 2013 Daniel de Kok
//
// 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 |
wspeirs/sop4j-base | src/main/java/com/sop4j/base/apache/io/EndianUtils.java | 17798 | /*
* 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 |
alanfgates/hive | ql/src/java/org/apache/hadoop/hive/ql/optimizer/MapJoinFactory.java | 11118 | /*
* 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 |
ankushsood/strategist | src/main/webapp/src/admin/admin.controller.js | 944 | (function() {
'use strict';
angular.module('admin')
.controller('AdminMenuController', AdminMenuController)
.controller('AdminHomeController', AdminHomeController)
.controller('AdminHeaderCotroller', AdminHeaderCotroller)
.controller('AdminController', AdminController)
AdminHeaderCotroller.$inject = ['$location', '$c... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p231/Test4638.java | 2111 | package org.gradle.test.performance.mediummonolithicjavaproject.p231;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test4638 {
Production4638 objectUnderTest = new Production4638();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | apache-2.0 |
jcfr/Midas | modules/tracker/database/upgrade/1.0.1.php | 2010 | <?php
/*=========================================================================
Midas Server
Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
All rights reserved.
For more information visit http://www.kitware.com/.
Licensed under the Apache License, Version 2.0 (the "License");
you may n... | apache-2.0 |
lawmurray/Birch | driver/src/statement/MemberFunction.hpp | 670 | /**
* @file
*/
#pragma once
#include "src/statement/Function.hpp"
namespace birch {
/**
* Member function.
*
* @ingroup statement
*/
class MemberFunction: public Function {
public:
/**
* Constructor.
*
* @param annotation Annotation.
* @param name Name.
* @param typeParams Type parameters.
*... | apache-2.0 |
sjbutler/jim | src/uk/ac/open/crc/jim/parser/java14/Java14ParserDefaultVisitor.java | 12194 | /* Generated By:JavaCC: Do not edit this line. Java14ParserDefaultVisitor.java Version 6.0_1 */
package uk.ac.open.crc.jim.parser.java14;
public class Java14ParserDefaultVisitor implements Java14ParserVisitor{
public Object defaultVisit(SimpleNode node, Object data){
node.childrenAccept(this, data);
return d... | apache-2.0 |
corestoreio/csfw | net/ratelimit/memstore/memstore.go | 3519 | // Copyright 2015-present, Cyrill @ Schumacher.fm and the CoreStore contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//... | apache-2.0 |
yuananf/presto | presto-tests/src/test/java/com/facebook/presto/tests/TestProcedureCall.java | 6961 | /*
* 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
* distribut... | apache-2.0 |
OpenHFT/Chronicle-Wire | src/test/java/net/openhft/chronicle/wire/bytesmarshallable/BytesMarshallableTest.java | 8267 | package net.openhft.chronicle.wire.bytesmarshallable;
import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.bytes.BytesIn;
import net.openhft.chronicle.bytes.BytesOut;
import net.openhft.chronicle.core.Maths;
import net.openhft.chronicle.core.io.IORuntimeException;
import net.openhft.chronicle.core.po... | apache-2.0 |
YAFNET/YAFNET | yafsrc/Lucene.Net/Lucene.Net/Util/Counter.cs | 3691 | using J2N.Threading.Atomic;
using System;
using System.Runtime.CompilerServices;
namespace YAF.Lucene.Net.Util
{
/*
* 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 rega... | apache-2.0 |
floodlight/loxigen-artifacts | openflowj/gen-src/main/java/org/projectfloodlight/openflow/protocol/bsntlv/OFBsnTlvVxlanEgressLag.java | 1751 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | apache-2.0 |
mifodiy4j/smikhailov | chapter_002/src/main/java/ru/job4j/Figure.java | 645 | package ru.job4j;
public abstract class Figure {
final Cell position;
public Figure(Cell position) {
this.position = position;
}
/*Метод должен работать так. dist - задают ячейку куда следует пойти. Если фигура может туда пойти. то Вернуть массив ячеек. которые должна пройти фигура.
Если фигура туда пойти ... | apache-2.0 |
gongmingqm10/cmcc | mobile/src/main/java/net/gongmingqm10/cmcc/activity/CMCCApplication.java | 325 | package net.gongmingqm10.cmcc.activity;
import android.app.Application;
import cn.jpush.android.api.JPushInterface;
public class CMCCApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
JPushInterface.setDebugMode(true);
JPushInterface.init(this);
... | apache-2.0 |