repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
imshashank/aws-doc-sdk-examples | cpp/example_code/sqs/dead_letter_queue.cpp | 2537 | /*
Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
This file is licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License. A copy of
the License is located at
http://aws.amazon.com/apache2.0/
This fi... | apache-2.0 |
seoj/herd | herd-code/herd-service/src/main/java/org/finra/herd/service/impl/EmrClusterDefinitionServiceImpl.java | 10736 | /*
* Copyright 2015 herd 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
*
* Unless required by applicable law or agreed to in ... | apache-2.0 |
SSEHUB/EASyProducer | Plugins/Instantiation/de.uni-hildesheim.sse.easy.instantiatorCore.tests/src/net/ssehub/easy/instantiation/core/model/templateModel/TemplateLangTests.java | 354 | package net.ssehub.easy.instantiation.core.model.templateModel;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
/**
* The test suite for the template language.
*
* @author Holger Eichelberger
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({IndentationUtilsTests.class, SerializationTest.class })
pu... | apache-2.0 |
seava/seava.mod.ad | seava.mod.ad.i18n/src/main/resources/webapp/en/seava/ad/i18n/ds/ViewState_Ds.js | 116 | Ext.define("seava.ad.i18n.ds.ViewState_Ds", {
cmpType__lbl: "Cmp Type",
cmp__lbl: "Cmp",
value__lbl: "Value"
});
| apache-2.0 |
HewlettPackard/oneview-puppet | spec/integration/provider/oneview_logical_interconnect_c7000_spec.rb | 3288 | ################################################################################
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
#
# 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 Licen... | apache-2.0 |
occidere/MMDownloader | src/util/UserAgent.java | 3334 | package util;
import java.util.Random;
/**
* User-Agent 관련 클래스
* 2017.10.24
* @author occidere
*/
public class UserAgent {
private static final String USER_AGENTS[] = {
/* Chrome */
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36... | apache-2.0 |
Warglaive/TechModuleSeptember2017 | Methods.DebuggingandLab/06. Calculate Triangle Area/Properties/AssemblyInfo.cs | 1425 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("06.... | apache-2.0 |
AfricaRegex/SjcProduct | SjcProject/src/com/sjc/cc/activity/vo/ServiceActivityVo.java | 1663 | package com.sjc.cc.activity.vo;
public class ServiceActivityVo {
/** 处理结果 */
private String actResult;
/** 任务说明 */
private String actDesc;
/** 后续任务处理组 */
private String actGrp;
/** 后续任务处理人 */
private String actUser;
/** 暂缓理由 */
private String postponeDesc;
/**... | apache-2.0 |
djpflager/reversa | app/src/androidTest/java/com/pflagers/reversa/ApplicationTest.java | 351 | package com.pflagers.reversa;
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() {
su... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-abusiveexperiencereport/v1/1.26.0/com/google/api/services/abusiveexperiencereport/v1/AbusiveExperienceReport.java | 20936 | /*
* 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 |
yamamoto-febc/usacloud | vendor/github.com/sacloud/libsacloud/v2/helper/service/sim/find_service.go | 1193 | // Copyright 2016-2021 The Libsacloud 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... | apache-2.0 |
alfredeperjesi/cucumber-blueprint | scala/cucumber-blueprint-scala-example/src/test/scala/cucumber/blueprint/jvm/example/integration/cucumber/step/common/BaseStepDefinition.scala | 663 | package cucumber.blueprint.jvm.example.integration.cucumber.step.common
import org.apache.camel.{CamelContext, ProducerTemplate}
import cucumber.blueprint.jvm.example.infrastructure.integration.camel.ExampleOsgiService
import javax.inject.Inject
import cucumber.runtime.java.blueprint.BlueprintDescriptorLocation
@Blue... | apache-2.0 |
timvandermeij/pdf.js | src/scripting_api/aform.js | 13871 | /* Copyright 2020 Mozilla 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 law or agreed... | apache-2.0 |
fran98moreno/Outfit | plantillaWEB/controller/Utils.php | 1672 | <?php
// Documentación Swift_Message [http://goo.gl/Z12Bo]
class Utilidades {
const ENTORNO_DESARROLLO = 'localhost';
const ENTORNO_PRODUCCION = 'dictados.wesped.es';
// Devuelve el entorno actual
public static function getEntorno() {
switch ($_SERVER['SERVER_NAME']) {
case self::ENTORNO_DESARROLLO... | apache-2.0 |
vlzl/HealthXuhui | app/src/main/java/com/wondersgroup/healthxuhui/util/NetUtil.java | 1105 | package com.wondersgroup.healthxuhui.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.v4.net.ConnectivityManagerCompat;
/**
* Created by yang on 16/7/10.
*/
public class NetUtil {
public static final int MOBILE = 0;//移动网络
p... | apache-2.0 |
freeVM/freeVM | enhanced/buildtest/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/beans/persistence/beans/Bean2.java | 2628 | /*
* 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 |
appshaper/appshaper | test/spec/collection.spec.js | 7057 | describe('collection', function () {
var Model,
Collection;
it('should be able to import the Model and Collection modules', function (done) {
require([
'appshaper/mvc/model',
'appshaper/mvc/collection'
], function (
ModelModule,
Coll... | apache-2.0 |
GoogleCloudPlatform/datanucleus-appengine | tests/com/google/appengine/datanucleus/jdo/JDOSubclassTest.java | 29099 | /**********************************************************************
Copyright (c) 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
Un... | apache-2.0 |
davebarnes97/geode | geode-gfsh/src/integrationTest/java/org/apache/geode/management/internal/cli/commands/HistoryCommandIntegrationTest.java | 4263 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | apache-2.0 |
erikdw/storm | storm-client/src/jvm/org/apache/storm/generated/StormBase.java | 57866 | /**
* 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 |
james-horrocks/StratGA | Common/Market.cs | 6158 | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 o... | apache-2.0 |
sajuptpm/contrail-controller | src/bgp/bgp_condition_listener.cc | 14666 | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "bgp/bgp_condition_listener.h"
#include <boost/bind.hpp>
#include <utility>
#include "base/task_annotations.h"
#include "base/task_trigger.h"
#include "bgp/bgp_route.h"
#include "bgp/bgp_server.h"
#include "bgp/bgp_table.h"
#include "... | apache-2.0 |
CMPUT301W16T05/c301_w16 | app/src/main/java/com/example/c301_w16_g5/c301_w16_g5/GenericModel.java | 811 | package com.example.c301_w16_g5.c301_w16_g5;
import java.util.ArrayList;
/**
* Provides the basic framework for all models in the application, such that
* they have views that display them, and ensure these views are updated
* appropriately. This is an integral part of our MVC design.
*
* @author Hailey
* @ve... | apache-2.0 |
peridotperiod/isis | core/metamodel/src/main/java/org/apache/isis/core/metamodel/facets/param/choices/ActionParameterChoicesFacet.java | 1434 | /*
* 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 |
dc3-plaso/dfvfs | tests/path/bde_path_spec.py | 1099 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the BDE path specification implementation."""
import unittest
from dfvfs.path import bde_path_spec
from tests.path import test_lib
class BDEPathSpecTest(test_lib.PathSpecTestCase):
"""Tests for the BDE path specification implementation."""
def testInitial... | apache-2.0 |
talenguyen/JFlux | library/src/test/java/com/tale/jflux/FluxStoreTest.java | 1383 | package com.tale.jflux;
import org.mockito.Mock;
/**
* Author tale. Created on 8/1/15.
*/
public class FluxStoreTest {
@Mock OnChangeListener onChangeListener;
Action sampleAction;
FluxStore fluxStore;
//@Before
//public void setUp() throws Exception {
//
// MockitoAnnotations.initM... | apache-2.0 |
dingjun84/mq-backup | rocketmq-example/src/main/java/com/alibaba/rocketmq/example/benchmark/Producer.java | 8279 | /**
* Copyright (C) 2010-2013 Alibaba Group Holding 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 req... | apache-2.0 |
intecap/javase1 | basics/src/main/java/co/edu/intecap/basics/Constants.java | 89 | package co.edu.intecap.basics;
public enum Constants {
ADOLESCENTE,
JOVEN,
ADULTO;
}
| apache-2.0 |
S0AndS0/PayBit_Forward | templates/FaucetBox_S0AndS0/adverts/advert.js | 198 | document.write('<div id="tester" style="display:none">an advertisemen</div>');
/* above is used to display ads with js for adblock detection
source of source : http://w3guy.com/detecting-adblock/ */ | apache-2.0 |
metowa1227/PocketMine | src/pocketmine/packs/ResourcePacks.php | 2567 | <?php
/*
* ____ _ _ _ _ _
* | _ \| | | | (_) | | | |
* | |_) | |_ _ ___| | _ __ _| |__ | |_
* | _ <| | | | |/ _ \ | | |/ _` | '_ \| __|
* | |_) | | |_| | __/ |____| | (_| | | | | |_
* |____/|_|\__,_|\___|______|_|\__, |_| |_|\__|
* ... | apache-2.0 |
wapalxj/Android_C2_UI | C2_UI/c4_13_communicating/src/androidTest/java/com/example/vero1/c4_13_communicating/ApplicationTest.java | 380 | package com.example.vero1.c4_13_communicating;
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 Appl... | apache-2.0 |
jhipster/generator-jhipster | generators/docker-utils.js | 4445 | /**
* Copyright 2013-2022 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | apache-2.0 |
PoGoDex/PoGoDex | src/js/worker/patchMonsterDetail.js | 923 | require('regenerator/runtime');
var renderDetailView = require('../shared/renderMonsterDetailView');
var getMonsterDarkTheme = require('../shared/monster/getMonsterDarkTheme');
var dbService = require('./databaseService');
var diff = require('virtual-dom/diff');
var Stopwatch = require('../shared/util/stopwatch');
var... | apache-2.0 |
Artezzyan/basis-hadoop | hadoop-dfs/src/main/java/com/artezzyan/technology/hdfs/input/NativeAPI.java | 1337 | package com.artezzyan.technology.hdfs.input;
import org.apache.hadoop.fs.FsUrlStreamHandlerFactory;
import org.apache.hadoop.io.IOUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.... | apache-2.0 |
consulo/consulo-apache-thrift | src/main/java/com/intellij/plugins/thrift/ThriftIconProvider.java | 1851 | package com.intellij.plugins.thrift;
import javax.annotation.Nonnull;
import com.intellij.icons.AllIcons;
import com.intellij.plugins.thrift.lang.psi.ThriftConst;
import com.intellij.plugins.thrift.lang.psi.ThriftEnum;
import com.intellij.plugins.thrift.lang.psi.ThriftException;
import com.intellij.plugins.thrift.lan... | apache-2.0 |
jingax10/kubernetes | cmd/kubeadm/app/phases/certs/certs.go | 16160 | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
yurloc/assertj-core | src/test/java/org/assertj/core/api/integer_/IntegerAssert_isStrictlyBetween_Integers_Test.java | 1308 | /*
* Created on May 5, 2013
*
* 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 writi... | apache-2.0 |
eemirtekin/Sakai-10.6-TR | metaobj/metaobj-impl/api-impl/src/java/org/sakaiproject/metaobj/shared/mgt/home/XmlElementHome.java | 12126 | /**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai-10.6/metaobj-impl/api-impl/src/java/org/sakaiproject/metaobj/shared/mgt/home/XmlElementHome.java $
* $Id: XmlElementHome.java 120216 2013-02-18 19:44:04Z ottenhoff@longsig... | apache-2.0 |
smjurcak/csm | csmserver/restful/api_host.py | 13078 | # =============================================================================
# Copyright (c) 2016, Cisco Systems, Inc
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of sour... | apache-2.0 |
jackylk/incubator-carbondata | core/src/main/java/org/apache/carbondata/core/datamap/DataMapJob.java | 1637 | /*
* 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 |
MrVine/encryptor-rsa | utils.go | 480 | package encryptor_rsa
import (
"os"
"encoding/base64"
)
func createFile(filePath, content string) error {
file, err := os.Create(filePath)
if err != nil {
return err
}
defer file.Close()
_, err = file.WriteString(content)
return err
}
func toBase64(in []byte) string {
return base64.StdEncoding.EncodeTo... | apache-2.0 |
baoyongan/java-examples | java-jackson/src/test/java/com/baoyongan/javajackson/bean/Item2.java | 280 | package com.baoyongan.javajackson.bean;
public class Item2 {
public int id;
public String itemName;
public User owner;
public Item2(int id, String itemName, User owner) {
this.id = id;
this.itemName = itemName;
this.owner = owner;
}
} | apache-2.0 |
valzevul/thermostat | app/src/main/java/com/example/vladimirsinicyn/thermostat/model/ChangeTester.java | 987 | package com.example.vladimirsinicyn.thermostat.model;
public class ChangeTester {
public void test() throws Exception {
/*
DaySchedule dp = new DaySchedule();
TemperatureChange tc1 = new TemperatureChange(LightCondition.NIGHT, new Time(100));
ArrayList<TemperatureChange> listA = n... | apache-2.0 |
sgudupat/force5 | src/main/webapp/app/blocks/config/alert.config.js | 355 | (function() {
'use strict';
angular
.module('facilitymgmtApp')
.config(alertServiceConfig);
alertServiceConfig.$inject = ['AlertServiceProvider'];
function alertServiceConfig(AlertServiceProvider) {
// set below to true to make alerts look like toast
AlertServiceProvid... | apache-2.0 |
akarnokd/RxJava2Extensions | src/main/java/hu/akarnokd/rxjava2/consumers/ObservableConsumers.java | 5692 | /*
* Copyright 2016-2019 David Karnok
*
* 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 |
eug48/hapi-fhir | examples/src/main/java/example/HttpProxy.java | 1673 | package example;
import org.apache.http.HttpHost;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.impl.client.*;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.dstu2.resource.Pat... | apache-2.0 |
CMPUT404Proj/CMPUT404-project-socialdistribution | social_dist/comments/urls.py | 126 | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^new/', views.comment_new, name='comment_new'),
]
| apache-2.0 |
meirfaraj/tiproject | finance/src/finance/oblig/ex1.lua | 1107 |
--------------------------------------------------------------------------
-- Obligation --
--------------------------------------------------------------------------
require("ui/wscreen")
require("finance/oblig/func/obligation")
-- obligation in fine
Oblig_... | apache-2.0 |
uchenm/CnChess | src/chess/model/player/ai/Thinking.java | 770 | /**
* Copyright 2013 Ming Chen<uchenm@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 by applicable law o... | apache-2.0 |
brint/openswan | cookbooks/openswan/recipes/default.rb | 4014 | #
# Cookbook Name:: openswan
# Recipe:: default
#
# Copyright 2013, Wanelo, 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 ... | apache-2.0 |
vivantech/kc_fixes | src/main/java/org/kuali/kra/iacuc/committee/print/IacucCommitteeXmlStream.java | 12493 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | apache-2.0 |
NakedObjectsGroup/NakedObjectsFramework | NakedFramework/NakedFramework.Architecture/SpecImmutable/ITypeSpecImmutable.cs | 2223 | // Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// 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 requir... | apache-2.0 |
wangzhengbo/Linenoise4Java | test/cn/com/linenoise/HistoryAddTest.java | 2641 | package cn.com.linenoise;
import java.io.File;
import org.junit.Assert;
import org.junit.Test;
public class HistoryAddTest extends BaseTest {
@Test
public void historyAdd() {
String hello = "你好";
String fileName = "test/historyAdd.txt";
File file = new File(fileName);
if (file.exists()) {
... | apache-2.0 |
projectVenco/Venco | app/src/main/java/ua/kpi/venco/util/LogUtils.java | 2785 | /*
* Copyright 2014 Project Venco
*
* 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 |
pniekamp/datum-studio | src/datumstudio.cpp | 4414 | //
// Datum Studio
//
//
// Copyright (C) 2016 Peter Niekamp
//
#include "datumstudio.h"
#include "dialogfactory.h"
#include "forms/ui_about.h"
#include <leap/pathstring.h>
#include <QMessageBox>
#include <QCloseEvent>
#include <QSettings>
#include <QScreen>
#include <QFile>
#include <QtDebug>
... | apache-2.0 |
SLAsticSPE/slastic | src-gen/kieker/tools/slastic/metamodel/adaptation/impl/PerformancePredictionImpl.java | 5475 | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package kieker.tools.slastic.metamodel.adaptation.impl;
import kieker.tools.slastic.metamodel.adaptation.AdaptationPackage;
import kieker.tools.slastic.metamodel.adaptation.Control;
import kieker.tools.slastic.metamodel.adaptation.PerformancePrediction;
import org.ecl... | apache-2.0 |
zkidkid/elasticsearch | core/src/main/java/org/elasticsearch/rest/action/search/RestSearchAction.java | 11744 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | apache-2.0 |
googleapis/google-api-php-client-services | src/Directory/Groups.php | 1913 | <?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 |
BryceBrown/LinkstrDjango | rest_framework/tests/negotiation.py | 1501 | from __future__ import unicode_literals
from django.test import TestCase
from django.test.client import RequestFactory
from rest_framework.negotiation import DefaultContentNegotiation
from rest_framework.request import Request
factory = RequestFactory()
class MockJSONRenderer(object):
media_type = 'application/... | apache-2.0 |
eHarmony/seeking | seeking-hibernate/src/main/java/com/eharmony/matching/seeking/handler/hibernate/ContainsExpressionNonHandler.java | 1040 | /*
* Copyright 2012 eHarmony, 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 ... | apache-2.0 |
beatific/daram | daram-web/src/main/java/org/beatific/daram/web/config/MybatisConfig.java | 1618 | package org.beatific.daram.web.config;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.beatific.daram.web.common.DaoRepository;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.SqlSessionTemplate;... | apache-2.0 |
trasa/aws-sdk-java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/GetSAMLProviderResultStaxUnmarshaller.java | 3131 | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | apache-2.0 |
delebash/orientdb-parent | tests/src/test/java/com/orientechnologies/orient/test/internal/index/MVRBTreeInsertionSpeedTest.java | 2162 | package com.orientechnologies.orient.test.internal.index;
import org.testng.annotations.Test;
import com.orientechnologies.common.test.SpeedTestMonoThread;
import com.orientechnologies.common.util.MersenneTwisterFast;
import com.orientechnologies.orient.core.config.OGlobalConfiguration;
import com.orientechnologies.o... | apache-2.0 |
zzyakenzz/3000-words | app/src/main/java/qlearn/com/quang/english/customview/TextRoboThin.java | 556 | package qlearn.com.quang.english.customview;
import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.TextView;
import com.elmargomez.typer.Font;
import com.elmargomez.typer.Typer;
/**
* Created by Administrator on 10/02/2016.
*/
public class TextRoboTh... | apache-2.0 |
Laurawly/tvm-1 | tests/python/contrib/test_cmsisnn/utils.py | 6780 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 |
mattxia/spring-2.5-analysis | samples/petclinic/src/org/springframework/samples/petclinic/web/EditPetForm.java | 1957 | package org.springframework.samples.petclinic.web;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.petclinic.Clinic;
import org.springframework.samples.petclinic.Pet;
import org.springframework.samples.petclinic.PetType;
import org.springf... | apache-2.0 |
xiaobao-zhaoyiyang/coolweather | app/src/main/java/com/coolweather/receiver/AutoUpdateReceiver.java | 542 | package com.coolweather.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.coolweather.service.AutoUpdateService;
/**
* Created by yo on 2016/6/17.
*/
public class AutoUpdateReceiver extends BroadcastReceiver {
@Override
public void... | apache-2.0 |
huggingface/pytorch-transformers | src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py | 140300 | # coding=utf-8
# Copyright 2021 Google Research The HuggingFace Inc. team. 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-... | apache-2.0 |
jengowong/java_program_design_10 | src/main/java/com/github/jengo/java/program/design10/AdditionQuiz.java | 671 | package com.github.jengo.java.program.design10;
import java.util.Scanner;
public class AdditionQuiz {
public static void main(String[] args) {
int number1 = (int) (System.currentTimeMillis() % 10);
int number2 = (int) (System.currentTimeMillis() * 7 % 10);
// Create a Scanner
... | apache-2.0 |
OpenWiseSolutions/openhub-framework | core-api/src/main/java/org/openhubframework/openhub/api/exception/NoDataFoundException.java | 1400 | /*
* Copyright 2014 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 |
vazmer/mudrosti-laravel | config/app.php | 7600 | <?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error... | apache-2.0 |
cloudfoundry-community/asp.net5-buildpack | fixtures/angular_msbuild_dotnet_2.1/ClientApp/node_modules/caniuse-lite/data/features/streams.js | 917 | module.exports={A:{A:{"2":"H D G E A FB","130":"B"},B:{"16":"C p","260":"x J","5124":"L N I"},C:{"2":"0 1 2 3 ZB CB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w XB RB","2626":"4 5 6 8 9 y AB"},D:{"2":"0 F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f ... | apache-2.0 |
vincentpoon/hbase | hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/NoneEncoder.java | 2300 | /*
*
* 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 |
rutvikd/ak-recipes | com_akrecipes-1.0.2/templates/html/com_k2/cached_image_util.php | 5730 | <?php
/*
Helper class to get resized cached image, if not found it will resize and create it
*/
// no direct access
defined('_JEXEC') or die ;
class K2ItemTemplateImageHelper {
public static function isItemARecipe( $item ) {
$extraitems = array();
$isrecipe = false;
if ( !is_array($item->extra_fields) ) ... | apache-2.0 |
nham/rust | src/libserialize/json.rs | 124119 | // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | apache-2.0 |
mauricionr/TypeScript | tests/baselines/reference/Protected4.js | 202 | //// [Protected4.ts]
class C {
protected public m() { }
}
//// [Protected4.js]
var C = (function () {
function C() {
}
C.prototype.m = function () {
};
return C;
})();
| apache-2.0 |
Wikidata/Wikidata-Toolkit | wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/interfaces/EntityDocument.java | 1554 | package org.wikidata.wdtk.datamodel.interfaces;
/*
* #%L
* Wikidata Toolkit Data Model
* %%
* Copyright (C) 2014 Wikidata Toolkit Developers
* %%
* 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 L... | apache-2.0 |
smsOrg/Tetris3d | app/src/main/java/org/sms/tetris3d/dialogs/DialogItem.java | 410 | package org.sms.tetris3d.dialogs;
/**
* 디버그용 클래스
*
* @version 0.1
*
* @author 이민수
*/
/**
* Created by hsh on 2016. 11. 21..
*/
public class DialogItem {
private String title="";
public DialogItem setTitle(String t){
title=t;
return this;
}
public void onClickItem(){
}
... | apache-2.0 |
zawn/pac4j | pac4j-core/src/main/java/org/pac4j/core/authorization/generator/SpringSecurityPropertiesAuthorizationGenerator.java | 1944 | package org.pac4j.core.authorization.generator;
import org.pac4j.core.context.WebContext;
import org.pac4j.core.profile.UserProfile;
import org.pac4j.core.util.CommonHelper;
import java.util.*;
/**
* Authorization generator based on a properties file in Spring security format:
* username=password,grantedAuthority[... | apache-2.0 |
PaddlePaddle/cloud | go/filemanager/pfsmodules/chunkmeta.go | 3848 | package pfsmodules
import (
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"github.com/PaddlePaddle/cloud/go/utils/restclient"
)
const (
defaultMaxChunkSize = 32 * 1024 * 1024
defaultMinChunkSize = 4 * 1024
)
const (
// ChunkMetaCmdName is the name of GetChunkMeta comm... | apache-2.0 |
weiwenqiang/GitHub | Subentry/vlayout-master/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java | 46080 | /*
* MIT License
*
* Copyright (c) 2016 Alibaba Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | apache-2.0 |
nutzam/nutzwx | src/main/java/org/nutz/weixin/impl/BasicWxHandler.java | 1422 | package org.nutz.weixin.impl;
import org.nutz.ioc.impl.PropertiesProxy;
import org.nutz.lang.Strings;
import org.nutz.weixin.repo.com.qq.weixin.mp.aes.AesException;
import org.nutz.weixin.repo.com.qq.weixin.mp.aes.WXBizMsgCrypt;
import org.nutz.weixin.util.Wxs;
public class BasicWxHandler extends AbstractWxHandler {
... | apache-2.0 |
sdgdsffdsfff/tddl | tddl-repo-oceanbase/src/main/java/com/taobao/tddl/repo/oceanbase/handler/ObCommandHandlerFactory.java | 271 | package com.taobao.tddl.repo.oceanbase.handler;
import com.taobao.tddl.repo.mysql.handler.CommandHandlerFactoryMyImp;
/**
* @author dreamond 2014年1月9日 下午5:00:51
* @since 5.1.0
*/
public class ObCommandHandlerFactory extends CommandHandlerFactoryMyImp {
}
| apache-2.0 |
ecologylab/BigSemanticsJava | BigSemanticsCore/src/ecologylab/bigsemantics/tools/GenericIterable.java | 1145 | /**
*
*/
package ecologylab.bigsemantics.tools;
import java.util.ArrayList;
import java.util.Iterator;
import org.w3c.dom.NodeList;
/**
* @author amathur
*
*/
public class GenericIterable implements Iterable
{
Object collectionObject;
public GenericIterable(Object collectionObject)
{... | apache-2.0 |
software-engineering-amsterdam/poly-ql | OmarPakker/Source/QL_GOLD_C-Sharp/Algebra.QL.Eval/Expr/DivideExpr.cs | 466 | using System;
using Algebra.QL.Eval.Value;
namespace Algebra.QL.Eval.Expr
{
public class DivideExpr : BinaryExpr, IEvalExpr
{
public DivideExpr(IEvalExpr l, IEvalExpr r)
: base(l, r)
{
}
protected override object Evaluate(ValueContainer expr1Value, Val... | apache-2.0 |
astopy/Panoptes | lib/role_control/controlled.rb | 1491 | module RoleControl
module Controlled
extend ActiveSupport::Concern
included do
@roles_for = Hash.new
scope :public_scope, -> { where(private: false) }
scope :private_scope, -> { where(private: true) }
end
module ClassMethods
def can_by_role(*actions,
ro... | apache-2.0 |
kingston-csj/jforgame | jforgame-server/src/main/java/jforgame/server/cross/demo/HelloCallbackHandler.java | 595 | package jforgame.server.cross.demo;
import jforgame.server.cross.core.callback.G2FCallBack;
import jforgame.server.cross.core.callback.CallBackCommands;
import jforgame.server.cross.core.callback.CallbackHandler;
import jforgame.server.cross.core.server.SCSession;
public class HelloCallbackHandler extends CallbackHan... | apache-2.0 |
ilivoo/ilivoo | coretechnology/src/main/java/com/ilivoo/ch4/ch10/ClassDesignTest.java | 1714 | package com.ilivoo.ch4.ch10;
/**
*1. Ò»¶¨Òª±£Ö¤Êý¾Ý˽ÓÐ: ÕâÊÇ×îÖØÒªµÄ£¬ ¾ø¶Ô²»ÒªÆÆ»µ·â×°ÐÔ£¬ ÓÐʱºò£¬ÐèÒª±àдһ¸ö·ÃÎÊÆ÷·½·¨»òÕßÊÇÐÞ¸ÄÆ÷·½·¨£¬ µ«ÊÇ×îºÃ»¹ÊDZ£³Ö
* ʵÀýÓòµÄ˽ÓÐÐÔ¡£ ºÜ¶à²ÒÍ´µÄ¾Ñ鏿ËßÎÒÃÇ£¬ Êý¾ÝµÄ±íʾÐÎʽºÜ¿ÉÄÜ»á¸Ä±ä£¬ µ«ÊÇËûÃǵÄʹÓ÷½Ê½È´²»»á¾³£±ä»»¡£ µ±Êý¾Ý˽ÓÐʱ£¬ Ëû
* ÃǵıíʾÐÎʽµÄ±ä»»²»... | apache-2.0 |
antho2930/bowhead | app/Console/Commands/FxStreamCommand.php | 2973 | <?php
namespace Bowhead\Console\Commands;
use Bowhead\Traits\OHLC;
use Bowhead\Util\Console;
use Illuminate\Console\Command;
use SimpleXMLElement;
class FxStreamCommand extends Command
{
use OHLC;
/**
* The console command name.
*
* @var string
*/
protected $name = 'bowhead:fx_stream'... | apache-2.0 |
REVLWorld/elasticsearch-dsl-py | elasticsearch_dsl/search.py | 22718 | from six import iteritems, string_types
from elasticsearch.helpers import scan
from elasticsearch.exceptions import TransportError
from .query import Q, EMPTY_QUERY, Bool
from .aggs import A, AggBase
from .utils import DslBase
from .result import Response, Result, SuggestResponse
from .connections import connections
... | apache-2.0 |
inovex/rest-client | restclient-ui/src/main/java/org/wiztools/restclient/ui/ISessionView.java | 257 | package org.wiztools.restclient.ui;
import org.wiztools.restclient.Request;
import org.wiztools.restclient.Response;
/**
*
* @author subwiz
*/
interface ISessionView {
public void add(Request request, Response response);
public void clear();
}
| apache-2.0 |
jnthnclt/nicity | nicity-view/src/main/java/com/jonathancolt/nicity/view/core/DragAndDrop.java | 5666 | /*
* DragAndDrop.java.java
*
* Created on 01-03-2010 01:31:35 PM
*
* Copyright 2010 Jonathan Colt
*
* 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 |
getquill/quill | quill-core/src/main/scala/io/getquill/quat/package.scala | 224 | package io.getquill
import scala.language.experimental.macros
/**
* Convenience API that allows construction of a Quat using `Quat.from[T]`
*/
package object quat {
def quatOf[T]: Quat = macro QuatMacro.makeQuat[T]
}
| apache-2.0 |
JetBrains/intellij-scala | scala/scala-impl/src/org/jetbrains/plugins/scala/lang/formatting/scalafmt/ScalaFmtDisabledIndentRangesProvider.scala | 815 | package org.jetbrains.plugins.scala.lang.formatting.scalafmt
import java.util
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.impl.source.DisabledIndentRangesProvider
import org.jetbrains.plugins.scala.lang.formatting.settings.ScalaCodeStyleSettings
class ScalaFm... | apache-2.0 |
shiver-me-timbers/smt-http-mock-parent | smt-http-mock/src/test/java/shiver/me/timbers/http/mock/HttpMockTest.java | 1876 | /*
* Copyright 2016 Karl Bennett
*
* 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 |
aspnet/AspNetCore | src/Mvc/test/WebSites/FormatterWebSite/StringInputFormatter.cs | 1128 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.Net.Http.Headers;
namesp... | apache-2.0 |
googleapis/java-containeranalysis | proto-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/VulnerabilityOccurrencesSummaryOrBuilder.java | 2969 | /*
* 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 |
Tyesb/lovetothinkserv | matcher/Models/VMatching.cs | 622 | namespace matcher.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("VMatching")]
public partial class VMatching
{
[Key]
[Colu... | apache-2.0 |
FabricMC/fabric-base | src/main/java/net/fabricmc/loader/impl/launch/FabricMixinBootstrap.java | 7016 | /*
* Copyright 2016 FabricMC
*
* 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 |
hajimehoshi/oto | internal/oboe/oboe_flowgraph_SourceI16_android.cpp | 1724 | /*
* 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 |