repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
theLastHero/PlayerWarpGUI | src/FileHandlers/ConfigHandler.java | 7522 | package FileHandlers;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
impor... | apache-2.0 |
wangsongpeng/jdk-src | src/main/java/com/sun/corba/se/PortableActivationIDL/InvalidORBidHelper.java | 2099 | package com.sun.corba.se.PortableActivationIDL;
/**
* com/sun/corba/se/PortableActivationIDL/InvalidORBidHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /HUDSON3/workspace/8-2-build-linux-amd64/jdk8u121/8372/corba/src/share/classes/com/sun/corba/se/PortableActivationIDL/activati... | apache-2.0 |
panelion/incubator-stratos | components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/publisher/CartridgeInstanceDataPublisherTask.java | 21854 | /*
* 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 |
typetools/guava | guava/src/com/google/common/hash/FarmHashFingerprint64.java | 10098 | /*
* Copyright (C) 2015 The Guava 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 |
sergeykhbr/riscv_vhdl | debugger/src/cpu_sysc_plugin/riverlib/core/bp_btb.cpp | 5660 | /*
* Copyright 2018 Sergey Khabarov, sergeykhbr@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | apache-2.0 |
sflpro/ms_payment | services/services_impl/src/test/java/com/sfl/pms/services/payment/common/impl/auth/CustomerPaymentMethodAuthorizationPaymentServiceImplTest.java | 13173 | package com.sfl.pms.services.payment.common.impl.auth;
import com.sfl.pms.persistence.repositories.payment.common.AbstractPaymentRepository;
import com.sfl.pms.persistence.repositories.payment.common.auth.CustomerPaymentMethodAuthorizationPaymentRepository;
import com.sfl.pms.services.customer.model.Customer;
import c... | apache-2.0 |
cloudant/sync-android | cloudant-sync-datastore-core/src/main/java/com/cloudant/sync/documentstore/LocalDocument.java | 1542 | /*
* Copyright © 2015, 2018 IBM Corp. 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 applicab... | apache-2.0 |
chrisekelley/zeprs | src/zeprs/org/cidrz/webapp/dynasite/struts/action/InactivateOutcomeAction.java | 1912 | /*
* Copyright 2003, 2004, 2005, 2006 Research Triangle Institute
*
* 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 |
zhangqiangoffice/Explain-C | list0805.cpp | 581 | #include <stdio.h>
enum animal { Dog, Cat, Monkey, Invalid};
void dog(void) {
puts("ÍúÍú");
}
void cat(void) {
puts("ß÷~");
}
void monkey(void) {
puts("ßóßó");
}
enum animal select(void) {
enum animal tmp;
do {
printf("0~~dog 1~~cat 2~~monkey 3~~over:");
scanf("%d", &tmp);
} while (tmp < Dog || tmp > Inva... | apache-2.0 |
Cue/hegemon | hegemon-core/src/test/java/com/cueup/hegemon/TestUtils.java | 2009 | /*
* Copyright 2012 the hegemon 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 a... | apache-2.0 |
ecosense-au-dk/Karibu-core | Karibu-consumer/src/main/java/dk/au/cs/karibu/backend/rabbitmq/package-info.java | 844 | /*
* Copyright 2013 Henrik Baerbak Christensen, Aarhus University
*
* 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 |
awsdocs/aws-doc-sdk-examples | python/demo_tools/custom_waiter.py | 4672 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Base class for implementing custom waiters for services that don't already have
prebuilt waiters. This class leverages botocore waiter code.
"""
from enum import Enum
import logging
import botocore.waiter
l... | apache-2.0 |
brendan-ssw/SSW.RulesSearch | SSW.RulesSearch/SSW.RulesSearch.Lucene/LuceneSettings.cs | 253 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SSW.RulesSearch.Lucene
{
public class LuceneSettings
{
public string IndexDirectory { get; set; }
}
}
| apache-2.0 |
mkeesey/guava-for-small-classpaths | guava/src/com/google/common/collect/ImmutableSetMultimap.java | 17459 | /*
* Copyright (C) 2009 The Guava 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 agre... | apache-2.0 |
castagna/dataset-movies | src/main/java/com/kasabi/data/movies/dbpedia/DBPediaActorLinker.java | 1609 | /*
* 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 |
fhg-fokus-nubomedia/signaling-plane | modules/cdn_connector/src/main/java/org/openxsp/cdn/connector/youtube/YoutubeConnector.java | 1722 | package org.openxsp.cdn.connector.youtube;
import java.io.File;
import org.openxsp.cdn.connector.CdnConnector;
import org.openxsp.cdn.connector.ConnectorCallback;
import org.openxsp.cdn.connector.ConnectorCallback.ConnectorError;
import org.openxsp.cdn.connector.util.log.Logger;
import org.openxsp.cdn.connector.util.... | apache-2.0 |
cpcloud/arrow | cpp/src/arrow/compute/exec/key_hash.cc | 8915 | // 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 |
mikelalcon/bazel | src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java | 93506 | // Copyright 2014 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 appl... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/DisableKeyRotationRequest.java | 7814 | /*
* 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 |
compomics/compomics-utilities | src/main/java/com/compomics/util/gui/spectrum/SpectrumPanel.java | 90051 | /**
* Created by IntelliJ IDEA. User: Lennart Date: 11-mei-2004 Time: 16:34:34
*/
package com.compomics.util.gui.spectrum;
import com.compomics.util.experiment.biology.aminoacids.sequence.AminoAcidSequence;
import com.compomics.util.experiment.biology.ions.Ion;
import com.compomics.util.experiment.biology.ions.Neutr... | apache-2.0 |
micorochio/SVN | workspace/MobilePlatform/src/com/ustcinfo/mobile/platform/view/AppAssetIntroductionActivity.java | 13857 | package com.ustcinfo.mobile.platform.view;
import java.util.List;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import an... | apache-2.0 |
DavidWhitlock/PortlandStateJava | grader/src/main/java/edu/pdx/cs410J/grader/poa/GradeBookFileManager.java | 1046 | package edu.pdx.cs410J.grader.poa;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import com.google.inject.Inject;
import edu.pdx.cs410J.ParserException;
import edu.pdx.cs410J.grader.GradeBook;
import edu.pdx.cs410J.grader.XmlDumper;
import edu.pdx.cs410J.grader.XmlGradeBookPa... | apache-2.0 |
dan-zx/zekke-api | src/main/java/com/github/danzx/zekke/message/impl/package-info.java | 690 | /*
* Copyright 2017 Daniel Pedraza-Arcega
*
* 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 |
tanglei528/glance | glance/common/location_strategy/__init__.py | 4010 | # Copyright 2014 IBM Corp.
# 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 app... | apache-2.0 |
artspb/jdk2trove | jdk2trove-plugin/testSrc/me/artspb/idea/jdk2trove/hashset/TLinkedHashSetQuickFixTest.java | 1110 | package me.artspb.idea.jdk2trove.hashset;
import com.intellij.codeInspection.BaseJavaLocalInspectionTool;
import me.artspb.idea.jdk2trove.TroveTestCase;
/**
* @author Artem Khvastunov
*/
public class TLinkedHashSetQuickFixTest extends TroveTestCase {
public void testTLinkedHashSet() throws Exception {
... | apache-2.0 |
amymalia/solar-power-app | app/imports/startup/client/router.js | 822 | import { FlowRouter } from 'meteor/kadira:flow-router';
import { BlazeLayout } from 'meteor/kadira:blaze-layout';
FlowRouter.route('/', {
name: 'Home_Page',
action() {
BlazeLayout.render('App_Body', { main: 'Home_Page' });
},
});
FlowRouter.route('/add_contact', {
name: 'Add_Contact_Page',
action() {
... | apache-2.0 |
tfmorris/Names | service/src/main/java/org/folg/names/service/ScoreService.java | 2047 | /*
* Copyright 2011 Foundation for On-Line Genealogy, 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 a... | apache-2.0 |
baozoumanhua/elk-rtf | logstash/vendor/bundle/jruby/1.9/gems/manticore-0.4.1-java/lib/manticore/client.rb | 29478 | require 'thread'
require 'base64'
module Manticore
# General Timeout exception thrown for various Manticore timeouts
class Timeout < ManticoreException; end
# @!macro [new] http_method_shared
# @param url [String] URL to request
# @param options [Hash]
# @option options [Hash] params ... | apache-2.0 |
Gilandel/utils-assertor | src/test/java/fr/landel/utils/assertor/predicate/PredicateAssertorMapTest.java | 36900 | /*-
* #%L
* utils-assertor
* %%
* Copyright (C) 2016 - 2018 Gilles Landel
* %%
* 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/LICEN... | apache-2.0 |
nathanbjenx/cairis | cairis/gui/TaskDialogParameters.py | 1189 | # 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 |
davkean/roslyn | src/EditorFeatures/CSharpTest/Completion/CompletionProviders/DeclarationNameCompletionProviderTests.cs | 54141 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Immutable;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.... | apache-2.0 |
cheng-li/pyramid | core/src/main/java/edu/neu/ccs/pyramid/calibration/Bucketer.java | 3000 | package edu.neu.ccs.pyramid.calibration;
import edu.neu.ccs.pyramid.util.Pair;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
public class Bucketer {
public static Result groupWithEqualSize... | apache-2.0 |
yukixz/qqbot | twitter/src/config.template.js | 167 | export const TWITTER_CONSUMER_KEY = ''
export const TWITTER_CONSUMER_SECRET = ''
export const TWITTER_ACCESS_KEY = ''
export const TWITTER_ACCESS_TOKEN = '' | apache-2.0 |
googleapis/java-dialogflow | proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/NotificationConfigOrBuilder.java | 3148 | /*
* 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 |
THESLA/Saber_Prototipe | scripts/controllers/registrarController.js | 312 | (function () {
'use strict';
var controller = app.controller('registrarController', registrarController);
//angular.module('productManagement')
// .controller('welcome', welcome);
registrarController.$inject = [ '$scope'];
function registrarController($scope) {
}
})(); | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb2/pdbreader/PdbReaderOptions.java | 6360 | /* ###
* 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 |
IanLewis/dashboard | src/app/backend/resource/workload/workload_test.go | 10956 | // 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 |
fconFGDCA/DetailCADA | resources/sap/ui/commons/RowRepeaterFilter-dbg.js | 1856 | /*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.commons.RowRepeaterFilter.
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Elemen... | apache-2.0 |
ydubreuil/zendesk-java-client | src/main/java/org/zendesk/client/v2/model/Metric.java | 6822 | package org.zendesk.client.v2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Date;
/**
* @author jyrij
*/
public class Metric implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("id")
protected Long id;
... | apache-2.0 |
cxxjava/cxxLog4j | src/EConfigurator.cpp | 6467 | /*
* EConfigurator.cpp
*
* Created on: 2015-7-27
* Author: cxxjava@163.com
*/
#include "./EConfigurator.hh"
#include "./EOptionConverter.hh"
#include "./ELoggerImp.hh"
#include "./ELayoutFactory.hh"
#include "./EAppenderFactory.hh"
#include "./ESimpleLayout.hh"
#include "./EFileAppender.hh"
namespace efc {... | apache-2.0 |
lukaszbudnik/migrator | common/common_test.go | 3097 | package common
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
)
func newTestContext() context.Context {
ctx := context.TODO()
ctx = context.WithValue(ctx, RequestIDKey{}, "123")
// log level empty = default log level = INFO
ctx = context.WithValue(ctx, LogLevelKey{}, "")
return ctx
}
func... | apache-2.0 |
eichhoff/funky | de.eich.funky.core/src/main/java/de/eich/decomposer/optimization/Selector.java | 1739 | /**
* @author Julian Eichhoff
*
* Copyright 2014 Julian Eichhoff
*/
package de.eich.decomposer.optimization;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import org.opt4j.core.Individual;
import org.opt4j.core.common.random.Rand;
import org.opt4j.optimizers.ea.SelectorDefault;
imp... | apache-2.0 |
CircleBinder/Android-CommonLibrary | Library/src/main/java/circlebinder/common/event/GenreBuilder.java | 359 | package circlebinder.common.event;
public final class GenreBuilder {
int id;
String name;
public Genre build() {
return new Genre(this);
}
public GenreBuilder setId(int id) {
this.id = id;
return this;
}
public GenreBuilder setName(String name) {
this.nam... | apache-2.0 |
silly-wacky-3-town-toon/SOURCE-COD | toontown/golf/DistributedGolfCourse.py | 14404 | from direct.interval.IntervalGlobal import Sequence, Func, Wait, LerpColorScaleInterval, Parallel
from direct.distributed import DistributedObject
from direct.directnotify import DirectNotifyGlobal
from direct.task.Task import Task
from direct.showbase import PythonUtil
from toontown.distributed import DelayDelete
from... | apache-2.0 |
carcer/Castle.Components.Validator | src/Castle.Components.Validator/IBrowserValidationGenerator.cs | 10469 | // Copyright 2004-2009 Castle Project - http://www.castleproject.org/
//
// 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 |
codycollier/ocelog | ocelog/__init__.py | 16 |
__all__ = []
| apache-2.0 |
shivangi1015/incubator-carbondata | core/src/main/java/org/apache/carbondata/core/datastore/chunk/reader/MeasureColumnChunkReader.java | 2207 | /*
* 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 |
KarloKnezevic/Ferko | src/java/hr/fer/zemris/jcms/web/actions/UserAction.java | 3533 | package hr.fer.zemris.jcms.web.actions;
import hr.fer.zemris.jcms.beans.UserBean;
import hr.fer.zemris.jcms.service.BasicBrowsing;
import hr.fer.zemris.jcms.web.actions.data.UserActionData;
import hr.fer.zemris.jcms.web.actions.data.support.AbstractActionData;
import hr.fer.zemris.jcms.web.actions.data.support.Message... | apache-2.0 |
Aloomaio/androidsdk | src/main/java/com/github/aloomaio/androidsdk/viewcrawler/ViewSnapshot.java | 15608 | package com.github.aloomaio.androidsdk.viewcrawler;
import android.annotation.TargetApi;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.os.Handler;
import android.os.Loop... | apache-2.0 |
sega4revenge/Sega | app/src/main/java/com/sega/vimarket/activity/FullScreenImageActivity.java | 3500 | package com.sega.vimarket.activity;
import android.app.ProgressDialog;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.MenuItem;
import android.widget.ImageView;
import android.wi... | apache-2.0 |
SoffidIAM/jxpath | src/java/es/caib/zkib/jxpath/util/ReverseComparator.java | 1498 | /*
* 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 |
dwdyer/ipdframework | src/java/main/au/edu/uwa/csse/dyerd01/ipd/strategies/PeriodicCCD.java | 399 | // $Header: $
package au.edu.uwa.csse.dyerd01.ipd.strategies;
import au.edu.uwa.csse.dyerd01.ipd.framework.Action;
/**
* @author Daniel Dyer
*/
public class PeriodicCCD extends AbstractPeriodicPlayer
{
public PeriodicCCD()
{
super(new Action[]{Action.COOPERATE, Action.COOPERATE, Action.DEFECT});
... | apache-2.0 |
angeloc/sysdig | userspace/libsinsp/tracers.cpp | 23634 | /*
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
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 |
dcarbone/php-fhir-generated | src/DCarbone/PHPFHIRGenerated/STU3/FHIRCodePrimitive/FHIRGuidePageKindList.php | 8147 | <?php
namespace DCarbone\PHPFHIRGenerated\STU3\FHIRCodePrimitive;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyright:
*... | apache-2.0 |
liuyuanyuan/dbeaver | plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/tools/project/ProjectExportData.java | 2174 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
*
* 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/license... | apache-2.0 |
yamamoto-febc/usacloud | vendor/github.com/sacloud/libsacloud/v2/helper/service/cdrom/read_service.go | 1057 | // 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 |
jdcasey/pnc | build-coordinator/src/test/java/org/jboss/pnc/coordinator/test/configuration/ConfigurationTest.java | 2645 | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2018 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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... | apache-2.0 |
william-taylor/world-cup-manager | app/app/src/main/java/application/drawables/MatchesObject.java | 6764 | package application.drawables;
import android.view.MotionEvent;
import framework.IRenderable;
import framework.core.*;
import application.events.*;
import framework.graphics.Button;
import framework.graphics.Font;
import framework.graphics.Image;
public class MatchesObject implements IRenderable {
private final ... | apache-2.0 |
macisamuele/GoogleCloudMessaging | Demo/GoogleCloudMessaging-Android/app/src/main/java/it/macisamuele/googlecloudmessaging/GCMIntentService.java | 1859 | package it.macisamuele.googlecloudmessaging;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.NotificationCompat;
import com.android.google.gcm.GCMBaseIntentService;
public class GCMIntentService ext... | apache-2.0 |
tupunco/Tup.Cobar4Net | Tup.Cobar4Net/Parser/Ast/Stmt/Mts/MTSReleaseStatement.cs | 1316 | /*
* Copyright 1999-2012 Alibaba Group.
*
* 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 |
PurelyApplied/geode | geode-core/src/integrationTest/java/org/apache/geode/internal/logging/LoggingWithLocatorLauncherIntegrationTest.java | 2328 | /*
* 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 |
jcmoraisjr/haproxy-ingress | pkg/haproxy/types/backends.go | 8274 | /*
Copyright 2020 The HAProxy Ingress Controller 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 |
aradchykov/playframework | framework/src/play/src/main/scala/play/api/mvc/BodyParsers.scala | 32117 | /*
* Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com>
*/
package play.api.mvc
import java.io._
import java.nio.channels.{ ByteChannel, Channels }
import java.util.Locale
import javax.inject.{ Inject, Provider }
import akka.actor.ActorSystem
import akka.stream._
import akka.stream.scaladsl.{ Flow, ... | apache-2.0 |
ibnelazzouzi/bpm | activiti-testing/activiti-testing-needle/src/main/java/org/activiti/testing/needle/engine/test/ProcessEngineTestRule.java | 794 | package org.activiti.testing.needle.engine.test;
import java.util.Date;
import org.activiti.engine.ProcessEngine;
import org.junit.rules.TestRule;
/**
* Combined interface of {@link org.activiti.testing.needle.engine.ProcessEngineServices}
* and {@link TestRule}.
*/
public interface ProcessEngineTestRule extends ... | apache-2.0 |
Singleton06/terra-core | packages/terra-i18n-plugin/src/I18nAggregatorPlugin.js | 4428 | import fs from 'fs';
import path from 'path';
let supportedLocales;
function generateTranslationFile(language, messages) {
return `import { addLocaleData } from 'react-intl';
import localeData from 'react-intl/locale-data/${language.split('-')[0]}';
addLocaleData(localeData);
const messages = ${JSON.stringify(mes... | apache-2.0 |
h-crisis/assistant | Common/src/files/FileManagement.java | 519 | package files;
import java.io.File;
/**
* Created by manab on 2016/08/12.
*/
public class FileManagement {
/**
* 指定したフォルダ内を空にする
* @param dir フォルダ
*/
public static void removeFiles(File dir) {
File files[] = dir.listFiles();
for(int i=0; i<files.length; i++) {
if(fi... | apache-2.0 |
rlocus/SPAccess | LinqToSP/LinqToSP/Attributes/ContentTypeAttribute.cs | 531 | using Microsoft.SharePoint.Client;
using System;
namespace SP.Client.Linq.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)]
public class ContentTypeAttribute : Attribute
{
public ContentTypeAttribute()
{
}
... | apache-2.0 |
sschepens/pulsar | pulsar-functions/utils/src/test/java/org/apache/pulsar/functions/utils/functioncache/FunctionCacheManagerImplTest.java | 5762 | /**
* 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 |
phatboyg/Machete | src/Machete.HL7Schema/Generated/V26/Groups/OML_O33_ORDER_PRIOR.cs | 1073 | // This file was automatically generated and may be regenerated at any
// time. To ensure any changes are retained, modify the tool with any segment/component/group/field name
// or type changes.
namespace Machete.HL7Schema.V26
{
using HL7;
/// <summary>
/// OML_O33_ORDER_PRIOR (Group) -
/// </summa... | apache-2.0 |
reo7sp/SBF-Bukkit-Plugin | src/net/sbfmc/logging/DebugLog.java | 2263 | /*
Copyright 2014 Reo_SP
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
dist... | apache-2.0 |
qubole/quark | server/src/main/java/com/qubole/quark/server/ServerConfig.java | 1053 | /*
* Copyright (c) 2015. Qubole 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 |
EtaliaSA/jalia | src/main/java/net/etalia/jalia/spring/JaliaHttpMessageConverter.java | 1543 | package net.etalia.jalia.spring;
import java.io.IOException;
import java.nio.charset.Charset;
import net.etalia.jalia.ObjectMapper;
import net.etalia.jalia.TypeUtil;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import ... | apache-2.0 |
xiaomozhang/druid | druid-1.0.9/src/test/java/com/alibaba/druid/bvt/filter/wall/MySqlWallTest6.java | 1096 | /*
* Copyright 1999-2011 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 |
ruixuekaifa/android--Demos | 传感器/计步器/And001/src/com/cn/Main.java | 2052 | package com.cn;
import android.app.Activity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.v... | apache-2.0 |
rickkosa/pynet_test | yaml_json/yaml_json_write.py | 378 | #!/usr/bin/python
import yaml
import json
my_list = range(8)
my_list.append('whatever')
my_list.append('hello')
my_list.append({})
my_list[-1]
my_list[-1]['ip_addr'] = '10.10.10.239'
my_list[-1]['attribs'] = range(7)
with open("ex6.yml", "w") as f:
f.write(yaml.dump(my_list, default_flow_style=False))
with open... | apache-2.0 |
sambalmueslie/herold | src/main/java/de/sambalmueslie/herold/BaseDataModelElement.java | 1065 | package de.sambalmueslie.herold;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import de.sambalmueslie.herold.annotations.Key;
/**
* Base implementation for the {@link DataModelElement}.
*/
public abstract class BaseDataModelElement implements DataM... | apache-2.0 |
AlbertoMonteiro/boleto2net | Boleto2.Net.Testes/Utils.cs | 10961 | using System;
using System.IO;
using System.Text;
using NReco.PdfGenerator;
using NUnit.Framework;
namespace Boleto2Net.Testes
{
internal sealed class Utils
{
private static int _contador = 1;
private static int _proximoNossoNumero = 1;
internal static Cedente GerarCedente(string cod... | apache-2.0 |
kevoree-modeling/experiments | org.mwg.experiments.smartgridprofiling/src/main/java/org/mwg/experiments/reccurent/datasets/TextGeneration.java | 9209 | package org.mwg.experiments.reccurent.datasets;
import java.io.File;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import org.mwg.ex... | apache-2.0 |
bolkedebruin/airflow | airflow/contrib/hooks/segment_hook.py | 1174 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 |
hanhlh/hadoop-0.20.2_FatBTree | src/mapred/org/apache/hadoop/mapred/CompletedJobStatusStore.java | 10491 | /**
* 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 |
sckm/CallbackAttacher | library/src/androidTest/java/com/github/scache/callbackattacher/ApplicationTest.java | 365 | package com.github.scache.callbackattacher;
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(... | apache-2.0 |
JeremyAiYt/MyApp | app/src/main/java/com/shaojun/myapp/base/mvp/BaseMvpFragment.java | 1106 | package com.shaojun.myapp.base.mvp;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.shaojun.myapp.base.BaseFragment;
import butterknife.ButterKnife;
import butterknife.Unbinder;
@SuppressLint("NewApi")
public abstrac... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/GetEventTypesResult.java | 6035 | /*
* 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 |
davebarnes97/geode | geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/PersistentBucketRecoverer.java | 16430 | /*
* 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 |
corsc/go-tools | depends/internal/get_dep_list.go | 1979 | // Copyright 2017 Corey Scott http://www.sage42.org/
//
// 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 |
schmittjoh/php-stubs | res/php/filesystem/functions/fopen.php | 331 | <?php
/**
* Opens file or URL
*
* @phpstub
*
* @param string $filename
* @param string $mode
* @param bool $use_include_path
* @param resource $context
*
* @return resource Returns a file pointer resource on success, or false on error.
*/
function fopen($filename, $mode, $use_include_path = false, $context ... | apache-2.0 |
Thangiee/Personal-Health-Monitoring-System | PHMS/src/main/java/com/cse3310/phms/ui/fragments/SlideMenuListFragment.java | 8227 | /*
* Copyright (c) 2014 Personal-Health-Monitoring-System
*
* 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 |
AfzalivE/AutoGrid | AutoGrid/Properties/AssemblyInfo.cs | 2375 | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | apache-2.0 |
stripe/stripe-dotnet | src/StripeTests/Infrastructure/JsonUtilsTest.cs | 3189 | namespace StripeTests
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using Xunit;
public class JsonUtilsTest : BaseStripeTest
{
[Fact]
public void DeserializeObjectIgnoresDefaultSettings()
{
var origDefaultSettings = JsonConvert.DefaultSettings;
... | apache-2.0 |
Kerbores/spring-thunder | spring-thunder/src/main/java/club/zhcs/thunder/aop/OperationLogAop.java | 4519 | package club.zhcs.thunder.aop;
import java.lang.reflect.Method;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.shiro.SecurityUtils;
import org.aspectj.lang.JoinPoint;
import o... | apache-2.0 |
SYSTRAN/multimodal-api-java-client | src/main/java/net/systran/platform/multimodal/client/model/FileExtractTextResponse.java | 1837 | /*
* Copyright © 2015 SYSTRAN Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | apache-2.0 |
ZhaoYanZy/coolweather | app/src/main/java/com/zy/coolweather/WeatherActivity.java | 9868 | package com.zy.coolweather;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Build;
import android.preference.PreferenceManager;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v... | apache-2.0 |
kcompher/geowave | extensions/datastores/accumulo/src/main/java/mil/nga/giat/geowave/datastore/accumulo/AccumuloCommandLineOptions.java | 4119 | package mil.nga.giat.geowave.datastore.accumulo;
import org.apache.accumulo.core.client.AccumuloException;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.... | apache-2.0 |
mirkosertic/Bytecoder | core/src/main/java/de/mirkosertic/bytecoder/backend/wasm/ast/WASMExpression.java | 703 | /*
* Copyright 2018 Mirko Sertic
*
* 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 |
bowenli86/flink | flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/factories/utils/TestCollectionTableFactory.scala | 8615 | /*
* 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 |
ResearchWorx/Cresco-Agent-Dashboard-Plugin | src/main/resources/js/popovers.js | 411 | /**
* --------------------------------------------------------------------------
* CoreUI Free Boostrap Admin Template (v2.0.0-rc.1): popovers.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
$('[data-toggle="popover"]').popover();
... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-wellarchitected/src/main/java/com/amazonaws/services/wellarchitected/model/ChoiceContent.java | 5345 | /*
* 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 |
liuyuanyuan/dbeaver | plugins/org.jkiss.dbeaver.data.transfer/src/org/jkiss/dbeaver/tools/transfer/database/DatabaseTransferConsumer.java | 27167 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
*
* 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/license... | apache-2.0 |
chadqueen/angular | modules/angular2/test/platform/browser/debug/debug_element_view_listener_spec.ts | 2384 | import {
AsyncTestCompleter,
beforeEach,
ddescribe,
xdescribe,
describe,
dispatchEvent,
expect,
iit,
inject,
beforeEachProviders,
it,
xit,
TestComponentBuilder,
} from 'angular2/testing_internal';
import {global} from 'angular2/src/facade/lang';
import {APP_VIEW_POOL_CAPACITY} from 'angular2/s... | apache-2.0 |
equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/web/sections/jquery/JQuerySelector.java | 4234 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | apache-2.0 |