repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
garygunarman/firanew | admin/account/recover.php | 5563 | <?php
/*
# ----------------------------------------------------------------------
# RECOVER PASSWORD: CONTROL
# ----------------------------------------------------------------------
*/
include('get.php');
include('update.php');
include('control.php');
// DEFINED VARIABLE
$recover_name = $_REQUEST['name'];
$recover_c... | apache-2.0 |
kubernetes-sigs/kustomize | plugin/builtin/secretgenerator/SecretGenerator.go | 978 | // Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
//go:generate pluginator
package main
import (
"sigs.k8s.io/kustomize/api/kv"
"sigs.k8s.io/kustomize/api/resmap"
"sigs.k8s.io/kustomize/api/types"
"sigs.k8s.io/yaml"
)
type plugin struct {
h *resmap.PluginHelpers
ty... | apache-2.0 |
stori-es/stori_es | shared/src/main/java/org/consumersunion/stories/server/business_logic/UserService.java | 1166 | package org.consumersunion.stories.server.business_logic;
import org.consumersunion.stories.common.shared.model.CredentialedUser;
import org.consumersunion.stories.common.shared.model.User;
import org.consumersunion.stories.server.exception.NotLoggedInException;
public interface UserService {
CredentialedUser get... | apache-2.0 |
ScriptonBasestar-Lib/sb-tool-jvm | validation/src/test/java/org/scriptonbasestar/tool/validation/package-info.java | 105 | package org.scriptonbasestar.tool.validation;
/**
* @Author archmagece
* @CreatedAt 2016-12-06 14
*/
| apache-2.0 |
sobkowiak/myfoo-commonj | src/main/java/de/myfoo/commonj/timers/FooTimer.java | 4339 | /**
* #(@) FooTimer.java Aug 16, 2006
*/
package de.myfoo.commonj.timers;
import commonj.timers.StopTimerListener;
import commonj.timers.Timer;
import commonj.timers.TimerListener;
/**
* A FooTimer is returned when a TimerListener is scheduled using one of
* the <code>FooTimerManager.schedule</code> methods.
* ... | apache-2.0 |
kinabalu/mysticpaste | web/src/test/java/com/mysticcoders/webapp/TestHomePage.java | 1735 | package com.mysticcoders.webapp;
import com.mysticcoders.integrations.AbstractIntegrationTest;
import com.mysticcoders.mysticpaste.persistence.PasteItemDao;
import com.mysticcoders.mysticpaste.services.PasteService;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.spring.test.Appli... | apache-2.0 |
gchq/gaffer-tools | python-shell/src/test/test_connector_requests.py | 12273 | #
# Copyright 2016-2019 Crown Copyright
#
# 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 |
dbrant/MpoViewer | MpoImage.cs | 1679 | using System.Collections.Generic;
using System.Drawing;
using System.IO;
namespace MpoViewer
{
public static class MpoImage
{
public static List<Image> GetMpoImages(string fileName)
{
var images = new List<Image>();
byte[] tempBytes = new byte[100];
using (... | apache-2.0 |
blinkfox/probe | src/main/java/com/blinkfox/learn/javafx/archon/modules/Modules.java | 370 | package com.blinkfox.learn.javafx.archon.modules;
import com.google.inject.AbstractModule;
/**
* 管理依赖注入所有Module的主要Module.
* Created by blinkfox on 2017-03-22.
*/
public class Modules extends AbstractModule {
@Override
protected void configure() {
install(new ControllerModule());
install(ne... | apache-2.0 |
cpoopc/com.cp.monsterMod | src/com/cp/monsterMod/helpers/AddIdCursorLoader.java | 8909 | /*
* Copyright (C) 2010 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 |
rospilot/rospilot | share/web_assets/nodejs_deps/node_modules/rxjs/_esm5/operators/share.js | 1015 | /** PURE_IMPORTS_START ._multicast,._refCount,.._Subject PURE_IMPORTS_END */
import { multicast } from './multicast';
import { refCount } from './refCount';
import { Subject } from '../Subject';
function shareSubjectFactory() {
return new Subject();
}
/**
* Returns a new Observable that multicasts (shares) the ori... | apache-2.0 |
TapCard/TapCard | tapcard/src/main/java/io/github/tapcard/emvnfccard/log/LogWriter.java | 284 | package io.github.tapcard.emvnfccard.log;
public interface LogWriter {
void debug(Class clazz, String msg);
void error(Class clazz, String msg, Throwable t);
void error(Class clazz, String msg);
void info(Class clazz, String msg);
boolean isDebugEnabled();
}
| apache-2.0 |
laimis/lucenenet | src/Lucene.Net.Tests.Sandbox/Queries/TestSortedSetSortField.cs | 9631 | using Lucene.Net.Documents;
using Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Store;
using Lucene.Net.Util;
using NUnit.Framework;
using System;
namespace Lucene.Net.Sandbox.Queries
{
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements... | apache-2.0 |
liuyuanyuan/dbeaver | plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/DataSourceDescriptor.java | 52837 | /*
* 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 |
Stratio/stratio-connector-decision | connector-decision/src/test/java/com/stratio/connector/decision/ftest/thread/ThreadTwoFilterFunctionalFT.java | 7674 | /*
* Licensed to STRATIO (C) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. The STRATIO (C) licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file ... | apache-2.0 |
SilicorniO/webui | src/model/UIAttr.ts | 4600 | export enum UI_VIEW_ID {
NONE = "",
SCREEN = "s",
PARENT = "p",
LAST = "l",
}
export type UIViewId = UI_VIEW_ID | string
export enum UI_REF {
START_START,
START_END,
END_END,
END_START,
CENTER,
}
export const UI_REF_LIST: UI_REF[] = [
UI_REF.START_START,
UI_REF.START_END,
... | apache-2.0 |
ray-project/ray | rllib/examples/export/onnx_torch.py | 1802 | from distutils.version import LooseVersion
import numpy as np
import ray
import ray.rllib.agents.ppo as ppo
import onnxruntime
import os
import shutil
import torch
# Configure our PPO trainer
config = ppo.DEFAULT_CONFIG.copy()
config["num_gpus"] = 0
config["num_workers"] = 1
config["framework"] = "torch"
outdir = "e... | apache-2.0 |
nblumhardt/seq-forwarder | src/Seq.Forwarder/Web/Formats/MimeTypeHelpers.cs | 1373 | // Copyright Andreas Håkansson, Steven Robbins and contributors
// MIT License https://github.com/NancyFx/Nancy/blob/master/license.txt
using System;
namespace Seq.Forwarder.Web.Formats
{
internal static class Helpers
{
/// <summary>
/// Attempts to detect if the content type is JSON.
... | apache-2.0 |
arnotixe/androidbible | Alkitab/src/main/java/yuku/alkitab/base/widget/VerseInlineLinkSpan.java | 1010 | package yuku.alkitab.base.widget;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;
public abstract class VerseInlineLinkSpan extends ClickableSpan {
public interface Factory {
VerseInlineLinkSpan create(final Type type, final int arif);
}
private final Type type;... | apache-2.0 |
marcovc/casper | pyutils/objdb.py | 19800 |
import itertools
attrsPriority = ["type","cl","ev","extType","func", "nArgs",\
"arg1Eval","arg2Eval","arg3Eval","arg4Eval","arg5Eval"]
class Property:
def __init__(self,attr,value):
self.attr = attr
self.value = value
def __eq__(self,other):
return self.attr==other.attr and self.value==other.value
def _... | apache-2.0 |
asheshsaraf/ecommerce-simple | sm-core/src/main/java/com/salesmanager/core/modules/integration/shipping/impl/UPSShippingQuote.java | 21530 | package com.salesmanager.core.modules.integration.shipping.impl;
import java.io.BufferedReader;
import java.io.Reader;
import java.io.StringReader;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import org.apache.com... | apache-2.0 |
ryandcarter/hybris-connector | src/main/java/org/mule/modules/hybris/model/CelumPicturesIntegrationJobBaseDTO.java | 1299 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.11.29 at 12:35... | apache-2.0 |
nsip/nias2 | sifxml/AggregateStatisticInfo.go | 900 | package sifxml
type AggregateStatisticInfo struct {
RefId RefIdType `xml:"RefId,attr"`
StatisticName string `xml:"StatisticName"`
CalculationRule AggregateStatisticInfo_CalculationRule `xml:"CalculationRule"`
ApprovalDate string `xml:"ApprovalDate"`
ExpirationDate string `xml:"Expi... | apache-2.0 |
yanirta/applitools.examples | Ruby/app/test_applitools_website.rb | 840 | require 'eyes_selenium'
eyes = Applitools::Eyes.new
# This is your api key, make sure you use it in all your tests.
eyes.api_key = APPLITOOLS_APIKEY
# Get a selenium web driver object.
my_webdriver = Selenium::WebDriver.for :firefox
#baseline = os + browser + viewport-size + app_name + test
begin
# Start visual te... | apache-2.0 |
botunge/hapi-fhir | examples/src/main/java/example/ClientTransactionExamples.java | 3727 | package example;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.resource.Bundle;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.dstu2.resource.Patien... | apache-2.0 |
benoitletondor/mvp-maps | sample/src/main/java/com/benoitletondor/mvp/maps/sample/scene/fragment/samplefragment/injection/FragmentSampleSceneModule.java | 1039 | package com.benoitletondor.mvp.maps.sample.scene.fragment.samplefragment.injection;
import androidx.annotation.NonNull;
import com.benoitletondor.mvp.core.presenter.PresenterFactory;
import com.benoitletondor.mvp.maps.sample.scene.fragment.samplefragment.SampleFragmentPresenter;
import com.benoitletondor.mvp.maps.sam... | apache-2.0 |
Zverik/omim | tools/python/ResponseProvider.py | 6576 | from __future__ import print_function
import jsons
import logging
import os
BIG_FILE_SIZE = 47684
class Payload:
def __init__(self, message, response_code=200, headers={}):
self.__response_code = response_code
self.__message = message
self.__headers = headers
def respo... | apache-2.0 |
fangj/samples-start | SpringHibernate/src/test/java/try1/AppTest.java | 632 | package try1;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String tes... | apache-2.0 |
PATRIC3/p3_solr | lucene/core/src/test/org/apache/lucene/search/TestDisjunctionMaxQuery.java | 19288 | package org.apache.lucene.search;
/*
* 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, Versi... | apache-2.0 |
evoshop/evo_maa | backend/controllers/AdminUserController.php | 3171 | <?php
namespace backend\controllers;
use Yii;
use backend\models\AdminUser;
use backend\models\AdminUserSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* AdminUserController implements the CRUD actions for AdminUser model.
*/
class AdminUserController extends Cont... | apache-2.0 |
TeamNIKaml/Budget | Budget/src/com/teamNikAml/budget/database/IncomeStatementHelper.java | 2387 | package com.teamNikAml.budget.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.os.AsyncTask;
import android.util.Log;
import com.teamNikAml.budget.model.Constants;
public class IncomeStatementHelper implements IDBHelper {
private DBHelper dbHelper;
private ... | apache-2.0 |
smee/gradoop | gradoop-flink/src/main/java/org/gradoop/flink/io/impl/json/package-info.java | 753 | /*
* Copyright © 2014 - 2018 Leipzig University (Database Research 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
*
* Unles... | apache-2.0 |
reportportal/service-api | src/main/java/com/epam/ta/reportportal/core/filter/GetUserFilterHandler.java | 3120 | /*
* Copyright 2019 EPAM Systems
*
* 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 |
runmyprocess/json | src/test/java/org/runmyprocess/test/JsonParserTest.java | 5529 | package org.runmyprocess.test;
import junit.framework.TestCase;
import org.runmyprocess.json.*;
import org.runmyprocess.json.parser.DefaultParser;
import org.runmyprocess.json.parser.Parser;
import org.runmyprocess.json.parser.StrictParser;
/**
* User: sgaide & dboulay
* Date: 09/01/13
* Time: 15:48
*/
public cla... | apache-2.0 |
avianey/Versatile-HTTP-proxy | src/test/java/fr/avianey/vhp/ProxyITCase.java | 1858 | package fr.avianey.vhp;
import org.jboss.netty.handler.codec.http.DefaultHttpRequest;
import org.jboss.netty.handler.codec.http.DefaultHttpResponse;
import org.jboss.netty.handler.codec.http.HttpMethod;
import org.jboss.netty.handler.codec.http.HttpRequest;
import org.jboss.netty.handler.codec.http.HttpResponse;
impor... | apache-2.0 |
phrocker/accumulo | core/src/main/java/org/apache/accumulo/core/client/admin/InstanceOperations.java | 4532 | /*
* 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 |
minghuascode/pyj | examples/addonsgallery/TooltipTab.py | 1370 | from pyjamas.ui.Sink import Sink, SinkInfo
from pyjamas.ui.Image import Image
from pyjamas.ui.HTML import HTML
from pyjamas.ui.VerticalPanel import VerticalPanel
from pyjamas.ui.HorizontalPanel import HorizontalPanel
from pyjamas.ui.Tooltip import TooltipListener
class TooltipTab(Sink):
def __init__(self):
... | apache-2.0 |
pepstock-org/Charba | src/org/pepstock/charba/client/geo/enums/Mode.java | 1473 | /**
Copyright 2017 Andrea "Stock" Stocchero
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 |
tkao1000/pinot | thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detector/driver/FailureEmailConfiguration.java | 1228 | package com.linkedin.thirdeye.detector.driver;
public class FailureEmailConfiguration {
public static final String FAILURE_EMAIL_CONFIG_KEY = "FAILURE_EMAIL_CONFIG";
private String fromAddress;
private String toAddresses;
private String smtpHost;
private int smtpPort = 25;
private String smtpUser;
privat... | apache-2.0 |
cooosuper/wx-ptl-zhc | WXPortal/src/org/wxportal/util/SignUtil.java | 1826 | package org.wxportal.util;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
public class SignUtil {
private static String token;
public static String getToken() {
return token;
}
public static void setToken(String token) {
Si... | apache-2.0 |
CodeRushing/tidb | store/tikv/2pc_test.go | 12001 | // 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 |
TpSr52/allure2 | allure-generator/src/main/java/io/qameta/allure/DefaultConfiguration.java | 1498 | package io.qameta.allure;
import io.qameta.allure.core.Configuration;
import io.qameta.allure.core.Plugin;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
/**
* Default implementation of {@link Configuration}.
*
* @since 2.0
*/
public class Defa... | apache-2.0 |
nagyistoce/camunda-tasklist-ui | client/scripts/camunda-tasklist-ui.js | 5891 | define('camunda-tasklist-ui', [
'camunda-commons-ui',
'camunda-bpm-sdk-js',
'angular-data-depend',
'scripts/config/date',
'scripts/config/routes',
'scripts/config/locales',
'scripts/config/tooltip',
'scripts/config/uris',
'scripts/controller/cam-tasklist-app-ctrl',
'scripts/controller/cam-tasklist... | apache-2.0 |
edde-framework/edde-framework | src/Edde/Common/Protocol/Request/Response.php | 244 | <?php
declare(strict_types=1);
namespace Edde\Common\Protocol\Request;
use Edde\Common\Protocol\Element;
class Response extends Element {
public function __construct(string $id = null) {
parent::__construct('response', $id);
}
}
| apache-2.0 |
Y1Ying/Algorithms | src/string/DictionaryString.java | 1295 | package string;
import java.util.ArrayList;
import java.util.TreeSet;
/**
* 输入一个字符串,按字典序打印出该字符串中字符的所有排列。例如输入字符串abc,则打印出由字符a,b,c所能排列出来的所有字符串abc,acb,bac,
* bca,cab和cba。
*
* @author dell
*
*/
public class DictionaryString {
public static ArrayList<String> Permutation(String str) {
ArrayList<String> result = ne... | apache-2.0 |
saulbein/web3j | core/src/main/java/org/web3j/abi/datatypes/generated/Ufixed120x136.java | 601 | package org.web3j.abi.datatypes.generated;
import java.math.BigInteger;
import org.web3j.abi.datatypes.Ufixed;
/**
* <p>Auto generated code.<br>
* <strong>Do not modifiy!</strong><br>
* Please use {@link org.web3j.codegen.AbiTypesGenerator} to update.</p>
*/
public class Ufixed120x136 extends Ufixed {
public... | apache-2.0 |
Josephblt/lienzo-core | src/main/java/com/ait/lienzo/client/widget/panel/impl/PreviewLayer.java | 2817 | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
fuermolv/treesys | Application/Admin/Controller/TesController.class.php | 351 | <?php
namespace Admin\Controller;
use Common\Controller\HomeBaseController;
/**
* 后台首页控制器
*/
class TesController extends HomeBaseController
{
/**
* 首页
*/
public function _initialize()
{
parent::_initialize();
}
public function test()
{
echo "string";
}
... | apache-2.0 |
Longi94/Hexle | core/src/main/com/tlongdev/hexle/renderer/GameRenderer.java | 386 | package com.tlongdev.hexle.renderer;
import com.badlogic.gdx.math.Vector2;
import com.tlongdev.hexle.view.FieldView;
/**
* @author longi
* @since 2016.04.13.
*/
public interface GameRenderer extends Renderer {
void notifyModelChanged();
void update(float dt);
FieldView getFieldView();
void setSl... | apache-2.0 |
Activiti/Activiti | activiti-core/activiti-engine/src/test/java/org/activiti/engine/test/cmd/FailingDelegate.java | 1167 | /*
* Copyright 2010-2020 Alfresco Software, 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 applicable ... | apache-2.0 |
dmeignan/INRC2010-UOS-evaluator | fr.lalea.inrc2010evaluator/src/main/java/de/uos/inf/ischedule/model/UnwantedShiftPatternConstraint.java | 20157 | /**
* Copyright 2013, Universitaet Osnabrueck
* Author: David Meignan
*/
package de.uos.inf.ischedule.model;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import de.uos.inf.ischedule.model.heuristic.SwapMove;
import de.uos.inf.ischedule.util.IconUtils;
import de.uos.... | apache-2.0 |
EBIBioSamples/biosamples-v4 | models/solr/src/main/java/uk/ac/ebi/biosamples/solr/model/field/FilterCriteriaBuilder.java | 841 | /*
* Copyright 2021 EMBL - European Bioinformatics 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.0
* Unless required by applicable law or ag... | apache-2.0 |
Product-Foundry/play-swagger | src/main/scala/com/iheart/playSwagger/ResourceReader.scala | 322 | package com.iheart.playSwagger
import java.io.InputStream
object ResourceReader {
def read(resource: String)(implicit cl: ClassLoader): List[String] = {
read(cl.getResourceAsStream(resource))
}
def read(stream: InputStream): List[String] = {
scala.io.Source.fromInputStream(stream).getLines.toList
}
... | apache-2.0 |
baishuo/falcon_search | common/src/test/java/org/apache/falcon/entity/parser/FeedEntityParserTest.java | 54920 | /**
* 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 |
sdnwiselab/onos | incubator/net/src/test/java/org/onosproject/incubator/net/mcast/impl/MulticastRouteManagerTest.java | 5480 | /*
* Copyright 2015-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 |
fillumina/PerformanceTools | performance-tools/src/main/java/com/fillumina/performance/producer/progression/ProgressionPerformanceInstrumenterBuilder.java | 3131 | package com.fillumina.performance.producer.progression;
import java.io.Serializable;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
/**
*
* @author Francesco Illuminati
*/
public class ProgressionPerformanceInstrumenterBuilder
extends AbstractIstrumenterBuilder<
ProgressionPerfo... | apache-2.0 |
Izakey/Java | Chapter15/src/FileChooserDemo.java | 3045 | /**
* Figure 15.12 : FileChooserDemo.java
* Demonstrating FileChooser
*/
import java.io.IOException;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOption... | apache-2.0 |
aosp-mirror/platform_frameworks_support | room/rxjava2/src/test/java/androidx/room/RxRoomTest.java | 6970 | /*
* Copyright (C) 2017 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 |
openstack/doc8 | doc8/main.py | 16855 | # Copyright (C) 2014 Ivan Melnikov <iv at altlinux dot 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 |
spring-cloud/spring-cloud-commons | spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerAutoConfiguration.java | 6029 | /*
* Copyright 2012-2020 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 |
heiwalebron/coolweather | app/src/main/java/com/coolweather/android/util/HttpUtil.java | 431 | package com.coolweather.android.util;
import okhttp3.OkHttpClient;
import okhttp3.Request;
/**
* Created by Administrator on 2016/12/7/007.
*/
public class HttpUtil {
public static void sendOkHttpRequest(String address,okhttp3.Callback callback){
OkHttpClient client=new OkHttpClient();
Request ... | apache-2.0 |
ligson/pkidemo | src/main/java/security/pkix/PKIStatusInfo.java | 696 | package security.pkix;
public class PKIStatusInfo {
/*-
* PKIStatusInfo ::= SEQUENCE {
* status PKIStatus,
* statusString PKIFreeText OPTIONAL,
* failInfo PKIFailureInfo OPTIONAL }
*/
private PKIStatus status;
private PKIFreeText statusString;
private PKIFailureInfo failInf... | apache-2.0 |
Wenpei/incubator-systemml | src/main/java/org/apache/sysml/runtime/io/FrameWriterBinaryBlock.java | 4530 | /*
* 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 |
dockerian/pyapi | pyapi/catalog-api/setup.py | 1150 | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
# with open(os.path.join(here, 'CHANGES.txt')) as f:
# CHANGES = f.read()
CHANGES = "Changes"
requires = [
'pyramid',
'python-keys... | apache-2.0 |
spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/repo/Customer1673Repository.java | 284 | package example.repo;
import example.model.Customer1673;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1673Repository extends CrudRepository<Customer1673, Long> {
List<Customer1673> findByLastName(String lastName);
}
| apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/transform/CreateEndpointAccessRequestMarshaller.java | 3570 | /*
* 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 |
google/gvisor | pkg/sentry/syscalls/linux/sys_seccomp.go | 2505 | // Copyright 2018 The gVisor 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 agree... | apache-2.0 |
adescre/ordrx | src/Lyglr.Ordrin/Client/OrdrxBaseClient.cs | 9748 | // <copyright file="OrdrxBaseClient.cs" company="Lyglr.com">Copyright (c) 2014 All Rights Reserved</copyright>
namespace Lyglr.Ordrx.Client
{
using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using Ly... | apache-2.0 |
topie/topie-oa | src/main/java/com/topie/user/ImageUtils.java | 2696 | package com.topie.user;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.InputStream;
import java.io.OutputStream;
import javax.imageio.ImageIO;
public class ImageUtils {
public static void zoomImage(InputStream inputStream,
OutputStream outputStream, int x1, int y1, int x2... | apache-2.0 |
guhongyeying/shoujishi | mobilesafe/src/com/example/mobilesafe/engine/AppInfoProvider.java | 2058 | package com.example.mobilesafe.engine;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import com.example.mobilesafe.bean.AppInfo;
import java.io.File;
import java.u... | apache-2.0 |
inloop/apk-method-count | js/ts/dexdefs.ts | 5653 | ///<reference path="dexformat.ts"/>
namespace DexFormat {
export enum AccessFlags {
ACC_PUBLIC = 0x1, ACC_PRIVATE = 0x2, ACC_PROTECTED = 0x4, ACC_STATIC = 0x8, ACC_FINAL = 0x10,
ACC_SYNCHRONIZED = 0x20, ACC_VOLATILE = 0x40, ACC_BRIDGE = 0x40, ACC_TRANSIENT = 0x80, ACC_VARARGS = 0x80,
ACC_N... | apache-2.0 |
jonatalamantes/NotariusAdOmnes | Backend/Rector.php | 4402 | <?php
require_once('Person.php');
require_once('Church.php');
/**
* Class to registry one Rector/Priest
*
* @author Jonathan Sandoval <jonathan_s_pisis@yahoo.com.mx>
*/
class Rector
{
private $id;
private $type;
private $status;
private $position;
... | apache-2.0 |
hpe-cct/cct-core | src/test/scala/cogx/utilities/Array2DSpec.scala | 4799 | /*
* (c) Copyright 2016 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | apache-2.0 |
crnk-project/crnk-framework | crnk-security/src/main/java/io/crnk/security/SecurityModule.java | 15156 | package io.crnk.security;
import io.crnk.core.engine.information.resource.ResourceInformation;
import io.crnk.core.engine.query.QueryContext;
import io.crnk.core.engine.registry.RegistryEntry;
import io.crnk.core.engine.registry.ResourceRegistry;
import io.crnk.core.engine.security.SecurityProvider;
import io.crnk.cor... | apache-2.0 |
SpruceHillio/urbanairship-java-api-wrapper | src/main/java/io/sprucehill/urbanairship/model/PushRequestNotification.java | 1789 | package io.sprucehill.urbanairship.model;
import java.util.HashMap;
import java.util.Map;
/**
* Model DTP object for defining the push to send.
*
* @author Michael Duergner <michael@sprucehill.io>
*/
public class PushRequestNotification extends HashMap<String,Object> {
/**
* Get a Builder for this class... | apache-2.0 |
CreditEaseDBA/Themis | task_export/assets/js/chart-flot.demo.js | 16013 | /*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.4
Version: 1.7.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin-v1.7/admin/
*/
var blue = '#348fe2',
blueLight = '#5da5e8',
blueDark = '#1993E4',
aqua = '#49b6d6',
aquaLi... | apache-2.0 |
overlook940/company | resources/views/Login/login.blade.php | 3021 | @extends('layouts.admin')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Admin Login</div>
<div class="panel-body">
... | apache-2.0 |
batlinal/ftt | src/app/task/task-view/task-view.component.spec.ts | 643 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TaskViewComponent } from './task-view.component';
describe('TaskViewComponent', () => {
let component: TaskViewComponent;
let fixture: ComponentFixture<TaskViewComponent>;
beforeEach(async(() => {
TestBed.configureTestingMod... | apache-2.0 |
apache/incubator-asterixdb | asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/aggregates/serializable/std/SerializableGlobalSqlSkewnessAggregateDescriptor.java | 2791 | /*
* 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 |
shrinkwrap/resolver | maven/impl-maven/src/main/java/org/jboss/shrinkwrap/resolver/impl/maven/aether/ClasspathWorkspaceReader.java | 16825 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | apache-2.0 |
werkt/bazel | src/main/java/com/google/devtools/build/lib/starlarkbuildapi/java/JavaStarlarkApiProviderApi.java | 1528 | // 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 appl... | apache-2.0 |
kvantstudio/kvantstudio-drupal8 | site_price/src/Form/ConfirmPriceGroupDeleteForm.php | 2449 | <?php
/**
* @file
* Contains \Drupal\site_price\Form\ConfirmPriceGroupDeleteForm
*/
namespace Drupal\site_price\Form;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Drupal\site_price\Controller\PriceDatabaseController;
use Symfo... | apache-2.0 |
PascalSchumacher/incubator-groovy | subprojects/groovy-xml/src/main/java/groovy/xml/SAXBuilder.java | 4970 | /*
* 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 |
OSGP/Platform | osgp-adapter-ws-smartmetering/src/main/java/org/opensmartgridplatform/adapter/ws/smartmetering/infra/jms/messageprocessor/GetAdministrativeStatusResponseMessageProcessor.java | 726 | /**
* Copyright 2015 Smart Society Services B.V.
*
* 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
*/
package org.opensmartgridplatform.ada... | apache-2.0 |
cardil/cdi-inheritance-wildfly-swarm | src/main/java/pl/wavesoftware/examples/wildflyswarm/service/api/DefaultImpl.java | 531 | package pl.wavesoftware.examples.wildflyswarm.service.api;
import javax.inject.Qualifier;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/*... | apache-2.0 |
midle110/spider | spider_curl/SpiderWeb.cpp | 4851 |
#include "SpiderWeb.h"
#include <string>
#include <string.h>
#include <algorithm>
#include "common.h"
#include "common/WSFunc.h"
#include <boost/locale.hpp>
#include <boost/algorithm/string.hpp>
#include <stdio.h>
#include "glog/logging.h"
using namespace google;
using namespace std;
CSpiderWeb::CSpiderWeb()
{
}
CS... | apache-2.0 |
prakashd1/LadStorm | src/main/java/com/pd/JmsProvider.java | 845 | package com.pd;
import java.io.Serializable;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
/**
* A <code>JmsProvider</code> object encapsulates the <code>ConnectionFactory</code>
* and <code>Destination</code> JMS objects the <code>JmsSpout</code> needs to manage
* a topic/queue connection over... | apache-2.0 |
cloudiator/colosseum | app/components/model/ModelValidator.java | 175 | package components.model;
import java.util.Set;
/**
* Created by daniel on 19.06.16.
*/
public interface ModelValidator<E> {
Set<ValidationMessage> validate(E e);
}
| apache-2.0 |
roncohen/apm-server | vendor/github.com/elastic/beats/libbeat/cmd/completion.go | 720 | package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
func genCompletionCmd(name, version string, rootCmd *BeatsRootCmd) *cobra.Command {
completionCmd := cobra.Command{
Use: "completion SHELL",
Short: "Output shell completion code for the specified shell (bash only by the moment)",
// We don't want... | apache-2.0 |
xlevus/half-keyboard | TrapKeys/StdAfx.cpp | 837 | // Copyright 2010 Chris Targett
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | apache-2.0 |
BirkhoffLee/cherry-pick | build/webpack.dev.conf.js | 1371 | var utils = require('./utils')
var webpack = require('webpack')
var config = require('../config')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
// ad... | apache-2.0 |
wearpants/osf.io | website/static/js/filepage/index.js | 29041 | var $ = require('jquery');
var m = require('mithril');
var mime = require('js/mime');
var bootbox = require('bootbox');
var $osf = require('js/osfHelpers');
var waterbutler = require('js/waterbutler');
// Local requires
var utils = require('./util.js');
var FileEditor = require('./editor.js');
var makeClient = require... | apache-2.0 |
Rafael-Prado/Fabrica_Cerveja | src/main/java/com/prado/cerveja/repository/helper/cerveja/CidadesImpl.java | 2013 | package com.prado.cerveja.repository.helper.cerveja;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Re... | apache-2.0 |
BigBlueHat/futon2 | _attachments/script/sammy/plugins/sammy.hogan.js | 4392 | (function($) {
Sammy = Sammy || {};
// <tt>Sammy.Hogan</tt> provides a quick way of using hogan.js style templates in your app.
// The plugin wraps the awesome hogan.js lib created and maintained by Twitter
// at http://twitter.github.com/hogan.js/
//
// Note: As of Sammy 0.7 the Hogan.js lib is not inclu... | apache-2.0 |
selentd/pythontools | pytools/src/test/test_evalresult.py | 4190 | '''
Created on 21.10.2015
@author: selen00r
'''
import datetime
import unittest
import evalresult
import fetchdata
import indexdata
class EvalResultTest(unittest.TestCase):
def setUp(self):
self.dbName = "stockdb"
self.idxDax = "dax"
self.startDate = datetime.datetime(... | apache-2.0 |
streamsets/datacollector | container/src/main/java/com/streamsets/datacollector/main/RuntimeModule.java | 5013 | /*
* Copyright 2017 StreamSets 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... | apache-2.0 |
geosub/twitter-cldr-js | lib/twitter_cldr/js/renderers/parsers/unicode_regex/component.rb | 349 | # encoding: UTF-8
# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
module TwitterCldr
module Js
module Renderers
module Parsers
class ComponentRenderer < TwitterCldr::Js::Renderers::Base
set_template "mustache/parsers/unicode_regex/component.coffee"
end... | apache-2.0 |
Im-dex/xray-162 | code/engine/xrGame/ai/monsters/control_path_builder_base_path.cpp | 8238 | #include "stdafx.h"
#include "control_path_builder_base.h"
#include "../../cover_point.h"
#include "../../cover_manager.h"
#include "../../cover_evaluators.h"
#include "BaseMonster/base_monster.h"
#include "../../detail_path_manager.h"
//#include "../../level_location_selector.h"
#include "../../level_path_manager.h"
#... | apache-2.0 |
lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_4286.java | 151 | package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_4286 {
}
| apache-2.0 |
pdrados/cas | support/cas-server-support-radius-core/src/test/java/org/apereo/cas/adaptors/radius/RadiusUtilsTests.java | 2290 | package org.apereo.cas.adaptors.radius;
import org.apereo.cas.util.CollectionUtils;
import lombok.val;
import net.jradius.dictionary.Attr_ClientId;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import javax.security.auth.login.FailedLoginException;
import java.util.Optional;
import static org... | apache-2.0 |