repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Frank-Zhu/AndroidAppCodeFramework | CodeFrameworkDemo/CodeFramework/src/main/java/com/ecloud/androidcodeframework/codeframework/utils/FileHelper.java | 10303 | package com.ecloud.androidcodeframework.codeframework.utils;
import android.content.Context;
import org.apache.http.util.EncodingUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import jav... | apache-2.0 |
ibmkendrick/streamsx.topology | python/sphinx/source/conf.py | 9321 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# streamsx documentation build configuration file, created by
# sphinx-quickstart on Thu Feb 9 15:48:14 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... | apache-2.0 |
choodon/choodon-learn | choodon-netty-learn/src/main/java/com/choodon/learn/netty/http1/Http1ServerInitializer.java | 1244 | package com.choodon.learn.netty.http1;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.http.HttpObjectAggregator;
import io.netty.handler.codec.http.HttpServerCodec;
import io.netty.handler.codec.http.cors.... | apache-2.0 |
flood-mark-a/themediaempire | src/main/java/com/flood/mark/themediaempire/service/MediaEmpireCrudService.java | 1277 | /**
* Copyright 2019 Mark Flood
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
MyRobotLab/myrobotlab | src/main/java/org/myrobotlab/arduino/virtual/MrlSerialRelay.java | 1774 | package org.myrobotlab.arduino.virtual;
import org.myrobotlab.arduino.Msg;
import org.myrobotlab.arduino.VirtualMsg;
public class MrlSerialRelay extends Device {
// ===== published sub-types based on device type begin ===
public final int MRL_IO_NOT_DEFINED = 0;
public final int MRL_IO_SERIAL_0 = 1;
... | apache-2.0 |
nicstrong/fest-assertions-android | fest-assert-android-test/src/main/java/org/fest/assertions/data/Index_toString_Test.java | 1138 | /*
* Created on Oct 30, 2010
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... | apache-2.0 |
carrharr/Conference_Central | models.py | 5737 | #!/usr/bin/env python
"""models.py
Udacity conference server-side Python App Engine data & ProtoRPC models
$Id: models.py,v 1.1 2014/05/24 22:01:10 wesc Exp $
created/forked from conferences.py by wesc on 2014 may 24
"""
__author__ = 'wesc+api@google.com (Wesley Chun)'
import httplib
import endpoints
from protor... | apache-2.0 |
after-the-sunrise/commons-ats | base/src/main/java/com/after_sunrise/commons/base/listener/impl/ListenerAddRunnable.java | 834 | package com.after_sunrise.commons.base.listener.impl;
import static com.after_sunrise.commons.base.object.Validations.checkNotNull;
import com.after_sunrise.commons.base.listener.ListenerManager;
/**
* @author takanori.takase
*/
public class ListenerAddRunnable<L> implements Runnable {
private final L... | apache-2.0 |
maheshika/carbon4-kernel | core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/jdbc/queries/QueryProcessorManager.java | 5564 | /*
* Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) 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 |
aledbf/kops | vendor/github.com/bazelbuild/bazel-gazelle/repo/modules.go | 5743 | /* Copyright 2018 The Bazel 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 agreed ... | apache-2.0 |
yipen9/spatial4j | src/test/java/com/spatial4j/core/io/TestGeohashUtils.java | 4755 | /*
* 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 |
TridentSDK/Trident | src/main/java/net/tridentsdk/server/logger/ColorizerLogger.java | 6365 | /*
* Trident - A Multithreaded Server Alternative
* Copyright 2017 The TridentSDK Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | apache-2.0 |
titoapps/php-asociacion | php/visuals/partners.php | 1287 | <?php
/**
* Created by PhpStorm.
* User: albertoperezperez
* Date: 08/07/14
* Time: 20:29
*/
echo '
<div id="colaboradores">
<div class="colaborador">
<a href="http://www.ayto-santander.es" title="Ayuntamiento de Santander" id="colaborador1" target="_blank">
... | apache-2.0 |
YAFNET/YAFNET | yafsrc/ServiceStack/ServiceStack/Common/EnumerableExtensions.cs | 24796 | // ***********************************************************************
// <copyright file="EnumerableExtensions.cs" company="ServiceStack, Inc.">
// Copyright (c) ServiceStack, Inc. All Rights Reserved.
// </copyright>
// <summary>Fork for YetAnotherForum.NET, Licensed under the Apache License, Version 2.0</su... | apache-2.0 |
sacjaya/siddhi-3 | modules/siddhi-query-api/src/main/java/org/wso2/siddhi/query/api/execution/partition/PartitionType.java | 824 | /*
* Copyright (c) 2005-2013, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... | apache-2.0 |
du4/airport | web/src/main/java/by/it/pvt/du4/commands/CmdListUsers.java | 1926 | package by.it.pvt.du4.commands;
import by.it.pvt.du4.beans.User;
import by.it.pvt.du4.dao.DAO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;
class CmdListUsers extends Action {
@Override
public Action execu... | apache-2.0 |
joewalnes/idea-community | platform/smRunner/src/com/intellij/execution/testframework/sm/runner/OutputToGeneralTestEventsConverter.java | 18322 | /*
* Copyright 2000-2009 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 |
googleads/google-ads-dotnet | src/V7/Services/UserInterestServiceClient.g.cs | 24650 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
emory-libraries/findingaids | findingaids/content/urls.py | 1296 | # file findingaids/content/urls.py
#
# Copyright 2012 Emory University Library
#
# 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... | apache-2.0 |
harkin/liquid-sdk-android | liquid/src/main/java/io/lqd/sdk/LQQueuer.java | 4373 | /**
* Copyright 2014-present Liquid Data Intelligence S.A.
*
* 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 |
anguslees/kubecfg-1 | integration/kubeflags_test.go | 3093 | // +build integration
package integration
import (
"io/ioutil"
"os"
"os/exec"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/tools/clientcmd"
clientcmdapi "k8s.io/client-go/too... | apache-2.0 |
ncbray/pystream | bin/analysis/cpa/base.py | 6611 | # Copyright 2011 Nicholas Bray
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | apache-2.0 |
rhauch/debezium | debezium-core/src/main/java/io/debezium/document/DocumentReader.java | 3183 | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.document;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import... | apache-2.0 |
demonquark/tess-two | tess-two/src/com/googlecode/tesseract/android/ResultIterator.java | 4730 | /*
* Copyright (C) 2012 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 ... | apache-2.0 |
torrances/swtk-commons | commons-dict-wordnet-indexbyid/src/main/java/org/swtk/commons/dict/wordnet/indexbyid/instance/p0/p1/WordnetNounIndexIdInstance0173.java | 15686 | package org.swtk.commons.dict.wordnet.indexbyid.instance.p0.p1; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.TreeMap; import org.swtk.common.dict.dto.wordnet.IndexNoun; import com.trimc.blogger.commons.utils.GsonUtils; public final class WordnetNounIndexIdInstance0... | apache-2.0 |
Smart-Studio/device-info | app/src/test/java/com/smartstudio/deviceinfo/controllers/about/atrributions/AttributionsActivityTestModule.java | 1658 | package com.smartstudio.deviceinfo.controllers.about.atrributions;
import com.smartstudio.deviceinfo.R;
import com.smartstudio.deviceinfo.analytics.about.attributions.AttributionsAnalytics;
import com.smartstudio.deviceinfo.injection.qualifiers.ForActivity;
import com.smartstudio.deviceinfo.injection.qualifiers.ForFab... | apache-2.0 |
bcgov/schoolbus | Server/SchoolBusAPI/Models/Permission.cs | 9276 | /*
* REST API Documentation for the MOTI School Bus Application
*
* The School Bus application tracks that inspections are performed in a timely fashion. For each school bus the application tracks information about the bus (including data from ICBC, NSC, etc.), it's past and next inspection dates and results, contac... | apache-2.0 |
bsusta/HelpdeskAppTemplate | js/components/search/taskListRow.js | 1081 |
import React, { Component } from 'react';
import { Icon, Text, Right, Body, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
import styles from './styles';
import I18n from '../../translations/';
class TaskListRow extends Component {
render() {
return (
<ListItem button o... | apache-2.0 |
wmz7year/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgniteWalFlushFailoverTest.java | 7645 | /*
* 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 |
tlkzzz/wxsjfx | src/main/java/com/tlkzzz/jeesite/modules/ps/service/SSpecService.java | 1115 | /**
* Copyright © 2012-2016 <a href="https://github.com/tlkzzz/jeesite">JeeSite</a> All rights reserved.
*/
package com.tlkzzz.jeesite.modules.ps.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.tlkzzz.je... | apache-2.0 |
remunda/IdentityServer3 | source/Core/ResponseHandling/UserInfoResponseGenerator.cs | 3598 | /*
* Copyright 2014, 2015 Dominick Baier, Brock Allen
*
* 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 |
apcera/chef-zabbix | resources/userparam.rb | 238 | actions :add, :remove
attribute :param_key, :kind_of => String, :name_attribute => true
attribute :command, :kind_of => String, :required => true
attribute :keyname, :kind_of => String
def initialize(*args)
super
@action = :add
end
| apache-2.0 |
webadvancedservicescom/magento | dev/tests/unit/testsuite/Magento/Review/Block/Adminhtml/MainTest.php | 2381 | <?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
namespace Magento\Review\Block\Adminhtml;
use Magento\TestFramework\Helper\ObjectManager as ObjectManagerHelper;
class MainTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Magento\Review\Block\Adminhtml\Ma... | apache-2.0 |
SoftDebugger/webutil | buglife-data/buglife-data-access/src/main/java/cn/buglife/data/access/model/Member.java | 623 | package cn.buglife.data.access.model;
import cn.buglife.data.framework.annotation.Column;
import cn.buglife.data.framework.annotation.Table;
/**
* Created by CrazyHarry on 2014/11/25.
*/
@Table(name="member")
public class Member {
@Column(name = "id",length = 16,value = "")
public int id;
@Column(name... | apache-2.0 |
freesamael/wolf | test/bintest/testdummyrunner.cpp | 268 | /**
* \file testdummyrunner.cpp
* \date Jun 17, 2010
* \author samael
*/
#include <CRunner.h>
#include <CSimpleWorkerStealer.h>
using namespace wolf;
int main()
{
CSimpleWorkerStealer stealer;
CRunner runner(1234, 5678, &stealer);
runner.run();
return 0;
}
| apache-2.0 |
hammerlab/isovar | isovar/read_collector.py | 22490 | # 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 th... | apache-2.0 |
OpenTOSCA/container | org.opentosca.container.engine.plan.plugin.bpel/src/main/java/org/opentosca/container/engine/plan/plugin/bpel/util/BPELRESTLightElementType.java | 216 | package org.opentosca.container.engine.plan.plugin.bpel.util;
/**
* This enum declares the BPEL4RESTLight operations supported by this plugin
*/
public enum BPELRESTLightElementType {
DELETE, GET, POST, PUT
}
| apache-2.0 |
googleapis/google-api-ruby-client | generated/google-apis-reseller_v1/lib/google/apis/reseller_v1/gem_version.rb | 929 | # 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 writing, ... | apache-2.0 |
olehmberg/SearchJoin | src/main/java/de/uni_mannheim/informatik/dws/searchjoin/cli/TableIndexing.java | 2953 | /**
*
* Copyright (C) 2015 Data and Web Science Group, University of Mannheim, Germany (code@dwslab.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.apa... | apache-2.0 |
knifecaojia/CoinsPro | Src/YTWL/WeiXin/CoinNews-drop/CoinNews/VerifyToken.aspx.designer.cs | 443 | //------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace CoinNews {
public partial class VerifyT... | apache-2.0 |
henrichg/PhoneProfilesPlus | phoneProfilesPlus/src/main/java/sk/henrichg/phoneprofilesplus/RootToolsSmall.java | 3299 | package sk.henrichg.phoneprofilesplus;
import android.text.TextUtils;
import java.io.File;
import java.util.HashMap;
class RootToolsSmall {
private static final HashMap<String, Boolean> BIN_MAP = new HashMap<>();
private static boolean hasBinary(String binaryName) {
Boolean exists = BIN_MAP.get(bin... | apache-2.0 |
leafclick/intellij-community | plugins/devkit/devkit-core/src/inspections/internal/FileEqualsUsageInspection.java | 2530 | /*
* Copyright 2000-2019 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 |
is-m/simba | simba-sitemap/src/main/java/cn/ism/fw/simba/sitemap/PageVO.java | 188 | package cn.ism.fw.simba.sitemap;
public class PageVO {
private String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
| apache-2.0 |
akalankapagoda/andes | modules/andes-core/broker/src/main/java/org/wso2/andes/mqtt/MQTTLocalSubscription.java | 2490 | package org.wso2.andes.mqtt;
import org.dna.mqtt.wso2.AndesBridge;
import org.wso2.andes.kernel.AndesException;
import org.wso2.andes.kernel.AndesMessageMetadata;
import org.wso2.andes.kernel.LocalSubscription;
import org.wso2.andes.server.util.AndesUtils;
import org.wso2.andes.subscription.BasicSubscription;
import ... | apache-2.0 |
pqpo/registration_api | src/cn/edu/hhu/reg/service/DoctorService.java | 1216 | package cn.edu.hhu.reg.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RestController;
import cn.edu.hhu.reg.dao.Department... | apache-2.0 |
dtracers/Development-Graph | Server/java/src/main/java/projectManagment/ProjectManager.java | 5439 | package projectManagment;
import static connection.Server.WORKING_DIR;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;
import java.io.UnsupportedEncodingExcepti... | apache-2.0 |
plaidml/plaidml | mlperf/models/convert_tf_weights.py | 3992 | import torch
import re
from collections import OrderedDict
def remap_tf_base_names(orig_weights):
prefix = "backbone."
# convs
weights = {k: v for k, v in orig_weights.items() if "FeatureExtractor/MobilenetV1" in k}
convs = {k: v for k, v in weights.items() if "batchnorm" not in k and "pointwise_" n... | apache-2.0 |
noc0der/uranus | common/src/test/java/testcase/id/IdGenTestCase.java | 1183 | package testcase.id;
import net.popbean.pf.id.service.IDGenService;
import net.popbean.pf.id.service.impl.IDGenServiceUUIDImpl;
import org.springframework.util.AlternativeJdkIdGenerator;
import org.springframework.util.IdGenerator;
import org.testng.Assert;
import org.testng.annotations.Test;
public class IdGenTestC... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/transform/InvalidRestoreExceptionUnmarshaller.java | 1563 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
chehara/general-twitter-analytics | resources/dropins/siddhi_extensions/twitteranalytic/src/test/java/org/wso2/siddhi/extension/groupdividers/util/SiddhiTestHelper.java | 592 |
package org.wso2.siddhi.extension.groupdividers.util;
import java.util.concurrent.atomic.AtomicInteger;
public class SiddhiTestHelper {
public static void waitForEvents(long sleepTime, int expectedCount, AtomicInteger actualCount, long timeout)
throws InterruptedException {
long currentWaitTi... | apache-2.0 |
qujianlin/oshop | src/me/xiaoy/core/security/DBRealm.java | 3520 | package me.xiaoy.core.security;
import javax.annotation.Resource;
import me.xiaoy.core.constants.SecurityConstant;
import me.xiaoy.core.utils.StringUtil;
import me.xiaoy.mvc.manager.security.entity.LoginAccount;
import me.xiaoy.mvc.manager.security.entity.Role;
import me.xiaoy.mvc.manager.security.service.Log... | apache-2.0 |
kevinyu98/spark | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/collect.scala | 5596 | /*
* 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 |
CSCSI/Triana | triana-shiwaall/src/main/java/org/trianacode/shiwaall/collection/CollectionMapper.java | 2823 | package org.trianacode.shiwaall.collection;
import java.util.List;
// TODO: Auto-generated Javadoc
/**
* The Class CollectionMapper.
*
* @param <C> the generic type
* @author Andrew Harrison
* @version 1.0.0 Jul 15, 2010
*/
public abstract class CollectionMapper<C> {
/** The list a. */
private List<? ... | apache-2.0 |
missioncommand/emp3-android | sdk/sdk-api/src/main/java/mil/emp3/api/listeners/EventListenerHandle.java | 720 | package mil.emp3.api.listeners;
import mil.emp3.api.enums.EventListenerTypeEnum;
/**
* This abstract class is the handle return by the add event listener method. It
* must be used to remove the listeners from the system.
*/
public abstract class EventListenerHandle {
/**
* This method return the type of l... | apache-2.0 |
spongedu/tidb | plan/expression_test.go | 6229 | // Copyright 2016 PingCAP, 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 |
reactor/reactor-core | reactor-core/src/withMicrometerTest/java/reactor/core/publisher/MonoMetricsFuseableTest.java | 20483 | /*
* Copyright (c) 2018-2021 VMware 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
*... | apache-2.0 |
eltos/SimpleDialogFragments | simpledialogfragments/src/main/java/eltos/simpledialogfragment/form/Input.java | 18871 | /*
* Copyright 2017 Philipp Niedermayer (github.com/eltos)
*
* 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 require... | apache-2.0 |
giancosta86/Arcontes-fx | src/main/java/info/gianlucacosta/arcontes/fx/rendering/VertexRenderer.java | 1311 | /*§
===========================================================================
Arcontes - FX
===========================================================================
Copyright (C) 2013-2015 Gianluca Costa
===========================================================================
Licensed under the Apac... | apache-2.0 |
MORTAL55/mortalcms | application/common.php | 3156 | <?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... | apache-2.0 |
amida-tech/orange-api | test/pharmacies/create_new_pharmacy_test.js | 4464 | "use strict";
var chakram = require("chakram"),
util = require("util"),
curry = require("curry"),
auth = require("../common/auth.js"),
patients = require("../patients/common.js"),
fixtures = require("./fixtures.js");
var expect = chakram.expect;... | apache-2.0 |
laimis/lucenenet | src/Lucene.Net.Tests/Search/TestDateSort.cs | 5079 | using Lucene.Net.Documents;
namespace Lucene.Net.Search
{
using Lucene.Net.Support;
using NUnit.Framework;
using DateTools = DateTools;
using Directory = Lucene.Net.Store.Directory;
using Document = Documents.Document;
using Field = Field;
using IndexReader = Lucene.Net.Index.IndexReader;
... | apache-2.0 |
knative/eventing | config/brokers/mt-channel-broker/placeholder.go | 679 | /*
Copyright 2020 The Knative 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 applicable law or agreed to in writing, sof... | apache-2.0 |
LQJJ/demo | 126-go-common-master/app/interface/main/dm/http/report.go | 4341 | package http
import (
"strconv"
"go-common/app/interface/main/dm/model"
"go-common/library/ecode"
"go-common/library/log"
bm "go-common/library/net/http/blademaster"
"go-common/library/xstr"
)
const (
_maxContentLen = 100
)
func addReport(c *bm.Context) {
var (
p = c.Request.Form
err error... | apache-2.0 |
google/keytransparency-java | exampleapp/src/main/java/com/google/keytransparency/exampleapp/KeyTransparencyExample.java | 4031 | package com.google.keytransparency.exampleapp;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.google.keytra... | apache-2.0 |
selbert/wte4j | wte4j-admin/src/main/java/org/wte4j/ui/client/cell/CellTableResources.java | 1094 | /**
* Copyright (C) 2015 adesso Schweiz AG (www.adesso.ch)
*
* 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 |
dagnir/aws-sdk-java | aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/RequestUploadCredentialsRequest.java | 3664 | /*
* 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 |
dalab/dissolve-struct | dissolve-struct-lib/src/main/scala/ch/ethz/dalab/dissolve/classification/Types.scala | 288 | package ch.ethz.dalab.dissolve.classification
import breeze.linalg.{Vector, DenseVector}
import scala.collection.mutable.MutableList
object Types {
type Index = Int
type Level = Int
type PrimalInfo = Tuple2[Vector[Double], Double]
type BoundedCacheList[Y] = MutableList[Y]
} | apache-2.0 |
Buble1981/MyDroolsFork | drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateFieldExtractorTest.java | 5204 | /*
* Copyright 2010 JBoss 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 |
GoogleChromeLabs/adaptive-loading | microsite/hoc/HeroSection/index.js | 813 | /*
* Copyright 2019 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 |
jentfoo/aws-sdk-java | aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/AbstractAmazonEventBridge.java | 6646 | /*
* 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 |
tkobayas/optaplanner | optaplanner-core/src/main/java/org/optaplanner/core/impl/score/director/stream/BavetConstraintStreamScoreDirector.java | 7361 | /*
* Copyright 2021 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 ap... | apache-2.0 |
shravanmn/reef | lang/java/reef-bridge-client/src/main/java/org/apache/reef/bridge/client/YarnClusterSubmissionFromCS.java | 10146 | /*
* 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 |
osinstom/onos | incubator/net/src/test/java/org/onosproject/incubator/net/virtual/impl/VirtualNetworkPacketManagerTest.java | 17964 | /*
* Copyright 2017-present Open Networking 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 appli... | apache-2.0 |
agwlvssainokuni/springapp2 | corelib/elemental/src/main/java/cherry/elemental/wakachi/SpaceCharTokenizer.java | 1314 | /*
* Copyright 2015,2016 agwlvssainokuni
*
* 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 |
yaybu/touchdown | touchdown/tests/test_aws_vpc_vpc.py | 3815 | # Copyright 2015 Isotoma 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 to in writing... | apache-2.0 |
MyRobotLab/myrobotlab | src/main/java/org/myrobotlab/opencv/OpenCVFilterTracker.java | 8402 | /**
*
* @author grog (at) myrobotlab.org
*
* This file is part of MyRobotLab (http://myrobotlab.org).
*
* MyRobotLab is free software: you can redistribute it and/or modify
* it under the terms of the Apache License 2.0 as published by
* the Free Software Foundation, either version... | apache-2.0 |
hkasera/Sunshine | app/src/main/java/com/example/android/sunshine/app/DetailActivity.java | 4749 | /*
* 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 |
jentfoo/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/CreateUserRequest.java | 13981 | /*
* 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 |
stdlib-js/stdlib | lib/node_modules/@stdlib/blas/ext/base/gcusumpw/lib/main.js | 1978 | /**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib 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 a... | apache-2.0 |
Weasyl/weasyl | weasyl-apidocs/source/conf.py | 7667 | # -*- coding: utf-8 -*-
#
# Weasyl API documentation build configuration file, created by
# sphinx-quickstart on Tue Feb 11 23:05:48 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | apache-2.0 |
arpg/Gazebo | test/regression/346_save_lights.cc | 2895 | /*
* Copyright (C) 2012-2014 Open Source Robotics 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... | apache-2.0 |
zeromancer1972/SBAdmin | SBAdmin ODP/Code/Java/org/openntf/sbadmin/Message.java | 502 | package org.openntf.sbadmin;
import java.io.Serializable;
import java.util.Random;
public class Message implements Serializable {
private static final long serialVersionUID = 1L;
private int messageCount;
public Message() {
this.messageCount = randInt(0, 10);
}
private int randInt(int min, int max) {
Rand... | apache-2.0 |
khoad/msbingo | nbfx/decoder.go | 14047 | package nbfx
import (
"bytes"
"encoding/binary"
"encoding/xml"
"errors"
"fmt"
"io"
"io/ioutil"
"math"
. "math/big"
"regexp"
"strings"
"time"
"github.com/satori/go.uuid"
)
type decoder struct {
dict map[uint32]string
elementStack stack
bin io.Reader
xml *xml.Encoder
}
func ... | apache-2.0 |
cniweb/ant-contrib | ant-contrib/src/main/java/net/sf/antcontrib/design/VerifyDesign.java | 1843 | /*
* Copyright (c) 2004-2005 Ant-Contrib project. 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 |
messaoudiDEV/citypocketBackoffice | Symfony/var/cache/dev/twig/49/491e3232f138bd96e2d5b5cdc9781555a18aee22b039f00e96c4a640b05b1acf.php | 5901 | <?php
/* @WebProfiler/Icon/exception.svg */
class __TwigTemplate_2d8c972d6eccb7bc70392552f0dc3935c162ec6d218e3d82f076835196a8a934 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | apache-2.0 |
JetBrains/intellij-haxe | gen/com/intellij/plugins/haxe/lang/psi/impl/HaxeKeepMetaImpl.java | 1446 | /*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2014-2016 AS3Boyan
* Copyright 2014-2014 Elias Ku
*
* 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 |
huihoo/olat | olat7.8/src/main/java/org/olat/lms/user/administration/delete/BulkDeleteModel.java | 3075 | /**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | apache-2.0 |
chriswang-/BookStore | src/main/java/com/chris/bookstore/books/api/AdminBookApi.java | 5532 | /**
* Chris Book Store.
*/
package com.chris.bookstore.books.api;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import j... | apache-2.0 |
LQJJ/demo | 126-go-common-master/app/admin/ep/saga/service/data.go | 14069 | package service
import (
"context"
"encoding/json"
"strconv"
"strings"
"time"
"go-common/app/admin/ep/saga/model"
"go-common/app/admin/ep/saga/service/utils"
"go-common/library/log"
"github.com/xanzy/go-gitlab"
)
/*-------------------------------------- sync issue ----------------------------------------*/... | apache-2.0 |
corneliudascalu/google-glass-share-barcode-bluetooth | app/src/main/java/com/corneliudascalu/testglass/DeviceCardScrollAdapter.java | 1344 | package com.corneliudascalu.testglass;
import com.google.android.glass.app.Card;
import com.google.android.glass.widget.CardScrollAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
/**
* @author Cor... | apache-2.0 |
notnownikki/spoonybard | examples/local_jobs.py | 625 | import threading
import time
import copy
from spoonybard.core.executors import SSHExecutor, LocalExecutor
from spoonybard.core.jobs import JobLoader
JOB_YAML = """
name: test job
steps:
- shell: |
#!/bin/bash
echo Running remotely
- shell: |
#!/bin/bash
echo hi >> ~/thing
"""
cfg = {}
de... | apache-2.0 |
3dcitydb/importer-exporter | impexp-config/src/main/java/org/citydb/config/project/common/IdList.java | 4830 | /*
* 3D City Database - The Open Source CityGML Database
* https://www.3dcitydb.org/
*
* Copyright 2013 - 2021
* Chair of Geoinformatics
* Technical University of Munich, Germany
* https://www.lrg.tum.de/gis/
*
* The 3D City Database is jointly developed with the following
* cooperation partners:
*
* Virtua... | apache-2.0 |
egtaonline/egtaonline-api | test/test_online.py | 14919 | """Test against egta online"""
import asyncio
import collections
import pytest
from egtaonline import api
from egtaonline import mockserver
# TODO in python3.6 async fixtures may be able to be used, but async_generator
# doesn't work
class _fdict(dict):
"""Frozen dictionary"""
def __init__(self, *args, **... | apache-2.0 |
kwin/jackrabbit-oak | oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/file/FileStoreStatsTest.java | 4610 | /*
* 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 |
stdlib-js/www | public/docs/api/latest/@stdlib/ndarray/base/nonsingleton-dimensions/benchmark_bundle.js | 906990 | // modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | apache-2.0 |
frasanz/Ethermap | app/scripts/toolbox/toolboxDirective.js | 6029 | 'use strict';
/**
* @memberof CollaborativeMap
* @fileOverview Toolbox directive for all sidebar related functions (User, Tools, History, Help).
*
* @requires $compile
* @requires MapHandler
*
* @exports CollaborativeMap.toolbox
*
* @author Dennis Wilhelm
*/
angular.module('CollaborativeMap')
.directive('t... | apache-2.0 |
eFaps/eFaps-Kernel | src/main/java/org/efaps/admin/datamodel/attributetype/IntegerWithUoMType.java | 4035 | /*
* Copyright 2003 - 2016 The eFaps Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | apache-2.0 |
kdvolder/spring-boot | spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/amqp/RabbitHealthIndicatorTests.java | 2864 | /*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
tomjadams/obibuild | src/main/scala/org/obi/attr/FilePattern.scala | 722 | package org.obi.attr
/**
* The path to a file on a filesystem.<br/>
* Usage:
* <pre>
* import org.obi.attr.FilePattern
* import org.obi.attr.FilePattern._
*
* val p1 = pattern("*.scala")
* val p2: FilePattern = "*.scala"
* val p3: String = pattern("*.scala")
* </pre>
*/
sealed trait FilePattern
private fin... | apache-2.0 |
haikuowuya/android_system_code | src/com/sun/org/apache/xalan/internal/xsltc/runtime/Operators.java | 1721 | /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in com... | apache-2.0 |