repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_3744.java | 151 | package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_3744 {
}
| apache-2.0 |
lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/Class_437.java | 145 | package fr.javatronic.blog.massive.annotation1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_437 {
}
| apache-2.0 |
mirsaeedi/CqrsSample | Kaftar/CqrsSample.BusinessRuleEngine/Core/Contracts/IRuleTagCollection.cs | 405 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CqrsSample.BusinessRuleEngine.Core.Implementations;
namespace CqrsSample.BusinessRuleEngine.Core.Contracts
{
public interface IRuleTagCollection
{
RuleTagCollection Add(... | apache-2.0 |
rust-lang/uuid | src/v5.rs | 4377 | use crate::prelude::*;
use sha1;
impl Uuid {
/// Creates a UUID using a name from a namespace, based on the SHA-1 hash.
///
/// A number of namespaces are available as constants in this crate:
///
/// * [`NAMESPACE_DNS`]
/// * [`NAMESPACE_OID`]
/// * [`NAMESPACE_URL`]
/// * [`NAMESPACE_... | apache-2.0 |
320504/jsf-blank01 | src/projetoPet/dto/Pet.java | 1088 | package projetoPet.dto;
public class Pet {
private int id;
private String nome;
private String telefone;
private String endereco;
private String nomePet;
private String tipoPet;
private int idadePet;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String get... | apache-2.0 |
nicoschuele/pad_utils | test/units/filename_to_class_test.rb | 492 | require 'pad_utils'
require_relative '../template/test'
# Test name
test_name = "FilenameToClass"
class FilenameToClassTest < Test
def prepare
# Add test preparation here
end
def run_test
require_relative '../fixtures/foo_bar'
foobar = PadUtils.filename_to_class("fixtures/foo_bar.rb")
f = foob... | apache-2.0 |
Banno/sbt-plantuml-plugin | src/main/java/net/sourceforge/plantuml/classdiagram/command/CommandCreateElementFull2.java | 8223 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
... | apache-2.0 |
schlaile/phabricator | src/applications/tokens/controller/PhabricatorTokenLeaderController.php | 1659 | <?php
final class PhabricatorTokenLeaderController
extends PhabricatorTokenController {
public function shouldAllowPublic() {
return true;
}
public function processRequest() {
$request = $this->getRequest();
$user = $request->getUser();
$pager = new PHUIPagerView();
$pager->setURI($reque... | apache-2.0 |
supernebula/evol-core | src/Evol.TMovie.Domain/Repositories/IMovieRepository.cs | 193 | using Evol.TMovie.Domain.Models.AggregateRoots;
using Evol.Domain.Data;
namespace Evol.TMovie.Domain.Repositories
{
public interface IMovieRepository : IRepository<Movie>
{
}
}
| apache-2.0 |
gentics/mesh | rest-model/src/main/java/com/gentics/mesh/core/rest/node/field/impl/NumberFieldImpl.java | 712 | package com.gentics.mesh.core.rest.node.field.impl;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.gentics.mesh.core.rest.common.FieldTypes;
import com.gentics.mesh.core.rest.node.field.NumberField;
/**
* @see NumberField
*/
public class NumberFieldImpl implements NumberField {
@JsonP... | apache-2.0 |
WIZARD-CXY/pl | leetcode/combinationsum.cpp | 787 | class Solution {
public:
vector<vector<int> > res;
vector<vector<int>> combinationSum(vector<int>& candidates, int target) {
sort(candidates.begin(),candidates.end());
vector<int> path;
dfs(candidates,path,0,target);
return res;
}
void... | apache-2.0 |
tobyweston/temperature-machine | src/main/scala/bad/robot/temperature/server/VersionEndpoint.scala | 632 | package bad.robot.temperature.server
import bad.robot.temperature._
import cats.effect.IO
import io.circe.Json
import org.http4s.HttpService
import org.http4s.dsl.io._
object VersionEndpoint {
private val version = Json.obj(
("name", Json.fromString(BuildInfo.name)),
("version", Json.fromString(BuildInfo.... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/transform/ExecuteCommandRequestMarshaller.java | 3232 | /*
* 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 |
WU-ARL/RLI | Conditional.java | 1133 | /*
* Copyright (c) 2005-2013 Jyoti Parwatikar
* and Washington University in St. Louis
*
* 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 |
aalexandrov/emma | emma-spark/src/main/scala/org/emmalanguage/api/SparkMutableBag.scala | 2715 | /*
* Copyright © 2014 TU Berlin (emma@dima.tu-berlin.de)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
raulnq/Jal.Validator | Jal.Validator/Impl/AbstractModelValidatorInterceptor.cs | 614 | using System;
using Jal.Validator.Interface;
using Jal.Validator.Model;
namespace Jal.Validator.Impl
{
public abstract class AbstractModelValidatorInterceptor : IModelValidatorInterceptor
{
public static IModelValidatorInterceptor Instance = new NullModelValidatorInterceptor();
public void O... | apache-2.0 |
XuHuaiyu/tidb | store/mockstore/unistore/pd.go | 2559 | // Copyright 2020 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 |
caskdata/cdap | cdap-proto/src/main/java/co/cask/cdap/proto/QueryStatus.java | 3217 | /*
* Copyright © 2014-2016 Cask Data, 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 agr... | apache-2.0 |
consulo/consulo-javaee | incubating/apache-tomcat/src/org/jetbrains/idea/tomcat/server/TomcatConfiguration.java | 755 | package org.jetbrains.idea.tomcat.server;
import org.jetbrains.annotations.NonNls;
import javax.annotation.Nonnull;
import com.intellij.execution.configurations.ConfigurationTypeUtil;
import consulo.apache.tomcat.bundle.TomcatBundleType;
/**
* Created by IntelliJ IDEA.
* User: michael.golubev
*/
public class Tomca... | apache-2.0 |
nagyist/marketcetera | photon/photon/plugins/org.marketcetera.photon.commons.ui.workbench.tests/src/test/java/org/marketcetera/photon/commons/ui/workbench/ChooseColumnsMenuTest.java | 9222 | package org.marketcetera.photon.commons.ui.workbench;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.concurrent.TimeUnit;
import org.eclipse.jface.action.ActionContributionItem;
import org.eclipse.jface.act... | apache-2.0 |
benoyprakash/java-hostel | JHipster-hostel/src/main/java/com/hostel/service/LocationService.java | 1169 | package com.hostel.service;
import com.hostel.domain.Location;
import com.hostel.service.dto.LocationDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* Service Interface for managing Location.
*/
public interface LocationService {
/**... | apache-2.0 |
xunilrj/sandbox | sources/games/html5/pong.js | 4939 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<canvas id="backbuffer" width="800" height="500">
</canvas>
<script>
function random(){ return (Math.random()-0.5)*2.0; }
function isInsideAABB(pos, posAABB, ... | apache-2.0 |
NeverNight/SimplesPatterns.Java | src/com/arthurb/combining/factory/DuckFactory.java | 889 | package com.arthurb.combining.factory;
// DuckFactory расширяет абстрактную фабрику
public class DuckFactory extends AbstractDuckFactory {
// Каждый метод создает продукт: конкретную разновидностью утки. Программа не знает фактический класс создаваемого
// продукта - ей известно лишь то, что создается реализац... | apache-2.0 |
Krzo/gartbistro | gartbistro/foodview/login.php | 1934 | <?php
require('db.php');
$sql = "SELECT admin_id FROM gb_admin
WHERE admin_name = '$_POST[username]'
AND admin_passwort='$_POST[password]'";
$result = mysql_query($sql);
$num = mysql_num_rows($result);
if ($num > 0) {
$id = mysql_fetch_assoc($result);
setcookie("auth", "yes"... | apache-2.0 |
tectronics/hyracks | hyracks/hyracks-tests/hyracks-storage-am-lsm-rtree-test/src/test/java/org/apache/hyracks/storage/am/lsm/rtree/LSMRTreeWithAntiMatterTuplesMergeTest.java | 2697 | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | apache-2.0 |
Intel-bigdata/OAP | oap-shuffle/remote-shuffle/src/main/java/org/apache/spark/shuffle/sort/RemoteUnsafeShuffleWriter.java | 19673 | package org.apache.spark.shuffle.sort;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, ... | apache-2.0 |
daileyet/webscheduler | src/main/java/com/openthinks/webscheduler/help/confs/SecurityConfig.java | 3977 | /**
* 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 |
googleads/google-ads-php | tests/Google/Ads/GoogleAds/V9/Services/InvoiceServiceClientTest.php | 5040 | <?php
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 |
veggiespam/zap-extensions | addOns/pscanrules/src/test/java/org/zaproxy/zap/extension/pscanrules/CrossDomainScriptInclusionScannerUnitTest.java | 14297 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2016 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | apache-2.0 |
CarloMicieli/java8-for-hipsters | src/test/java/io/github/carlomicieli/java8/streams/IntStreamTests.java | 4652 | /*
* 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 applicable ... | apache-2.0 |
jskeet/google-api-dotnet-client | Src/Generated/Google.Apis.CloudIot.v1/Google.Apis.CloudIot.v1.cs | 168368 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
bigchange/AI | src/main/scala/com/bigchange/ssql/MySQLDemo.scala | 604 | package com.bigchange.ssql
import com.bigchange.config.XMLConfig
/**
* Created by C.J.YOU on 2017/2/17.
* MySql 操作实例
*/
object MySQLDemo {
def main(args: Array[String]) {
// val Array(xmlPath) = args
val xmlPath = "src/test/resources/config.xml"
val pool = MysqlPool.apply(XMLConfig.apply(xmlPat... | apache-2.0 |
savantly-net/sprout-platform | backend/starters/sprout-spring-boot-starter/src/test/resources/static/test.js | 34 | // ** Testing resource locator **/ | apache-2.0 |
ndlib/honeycomb | app/controllers/v1/metadata_controller.rb | 437 | module V1
# Version 1 API
class MetadataController < APIController
def update
@item = ItemQuery.new.public_find(params[:item_id])
return if rendered_forbidden?(@item.collection)
if SaveMetadata.call(@item, save_params)
render :update
else
render :errors, status: :unproc... | apache-2.0 |
ressec/thot | thot-akka/src/main/java/org/heliosphere/thot/akka/tutorial/print/PrintMyActorRefActor.java | 1387 | /*
* Copyright(c) 2017 - Heliosphere Corp.
* ---------------------------------------------------------------------------
* This file is part of the Heliosphere's project which is licensed under the
* Apache license version 2 and use is subject to license terms.
* You should have received a copy of the license wit... | apache-2.0 |
NovaOrdis/playground | spring/spring-in-action/cap3-jdbctemplate/src/test/java/playground/spring/sia/chapterthree/tacocloud/TacoCloudApplicationTests.java | 373 | package playground.spring.sia.chapterthree.tacocloud;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class TacoCloudApplicationTests {
... | apache-2.0 |
tjheslin1/Westie | src/test/java/io/github/tjheslin1/westie/todostructure/TodosStructureAnalyserTest.java | 3647 | package io.github.tjheslin1.westie.todostructure;
import io.github.tjheslin1.westie.LineAssertions;
import io.github.tjheslin1.westie.Violation;
import io.github.tjheslin1.westie.testinfrastructure.TestWestieFileReader;
import org.assertj.core.api.WithAssertions;
import org.junit.Test;
import java.nio.file.Path;
impo... | apache-2.0 |
pyros2097/Scene3d | src/scene3d/demo/Scene3dDemo.java | 12812 | /*******************************************************************************
* Copyright 2013 pyros2097
*
* 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.ap... | apache-2.0 |
eborodina/test_pdt-25 | src/com/example/tests/GroupRemovalTests.java | 890 | package com.example.tests;
//import static org.testng.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.hamcrest.Matchers.*;
import java.util.Random;
//import org.apache.commons.el.EqualityOperator;
import org.testng.annotations.Test;
import com.example.utils.SortedListOf;
... | apache-2.0 |
tuanchauict/annopref | annopref-annotation/src/main/java/com/tuanchauict/annopref/annotation/IntValue.java | 256 | package com.tuanchauict.annopref.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Created by tuanchauict on 11/29/16.
*/
@Target(value = ElementType.FIELD)
public @interface IntValue {
int[] value();
}
| apache-2.0 |
BeamFoundry/spring-jnrpe | jnrpe-lib/src/main/java/it/jnrpe/ReturnValue.java | 8047 | /*******************************************************************************
* Copyright (c) 2007, 2014 Massimiliano Ziccardi
*
* 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
*
* ... | apache-2.0 |
citygml4j/citygml4j | src-gen/main/java/net/opengis/gml/LinearCSType.java | 1447 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert
// Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2019.0... | apache-2.0 |
nickolasnikolic/leesh-mobile-app | Resources/app.js | 7883 |
Ti.include("/struct/struct.js");
var controller = Stately.machine({
'NEW': {
//startup
'start': function () {
S.app.mainWindow = S.ui.createApplicationWindow();
S.app.mainWindow.open();
//based upon settings
//based upon roles
//return this.OBSERVE
//else
//... | apache-2.0 |
HiveKa/HiveKa | src/main/java/org/apache/hadoop/hive/kafka/camus/KafkaKey.java | 6733 | package org.apache.hadoop.hive.kafka.camus;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.MapWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.UTF8;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.WritableComparable;
import java.io.DataInput;
import java... | apache-2.0 |
michaelBenin/js-sdk | tests/unit/streamserver/plugins/text-counter.js | 319 | (function($) {
var suite = Echo.Tests.Unit.PluginsTextCounter = function() {
this.constructPluginRenderersTest();
};
suite.prototype.tests = {};
suite.prototype.info = {
"className": "Echo.StreamServer.Controls.Submit.Plugins.TextCounter",
"suiteName": "TextCounter plugin",
"functions": []
};
})(Echo.jQuery);
| apache-2.0 |
KSSDevelopment/Prism | Source/Wpf/Prism.Mef.Wpf/Modularity/DownloadedPartCatalogCollection.cs | 2432 | // Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Primitives;
using Prism.Modularity;
namespace Prism.Mef.Modularity
{
/// <sum... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/transform/RemediationMarshaller.java | 1944 | /*
* 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 |
appbels/Org | Org/Schema/Thing/Intangible/Quantity/Distance.class.php | 1062 | <?php
namespace Org\Schema\Thing\Intangible\Quantity;
/**
* Class Distance
* Properties that take Distances as values are of the form '<Number> <Length unit of measure>'. E.g., '7 ft'.
* @author AppBels <app.bels@gmail.com>
* @name Distance
* @namespace Org\Schema\Thing\Intangible\Quantity
* @pack... | apache-2.0 |
gerdriesselmann/netty | codec/src/main/java/io/netty/handler/codec/LengthFieldPrepender.java | 7797 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | apache-2.0 |
TITcs/TITcs.SharePoint | src/TITcs.SharePoint/Utils/ListUtils.cs | 9501 | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Client;
using TITcs.SharePoint.Log;
using DraftVisibilityType = Microsoft.SharePoint.DraftVisibilityType;
namespace TITcs.SharePoint.Utils
{
public class ListUtils
{
/// <summary>
... | apache-2.0 |
ncherkasov01/cherkasov-selenium-training | java-project/src/test/java/train/sel/java/project/AdminList.java | 3555 | package train.sel.java.project;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import or... | apache-2.0 |
heriram/incubator-asterixdb | asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/logging/LogManager.java | 27157 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
leafclick/intellij-community | jps/jps-builders/src/org/jetbrains/jps/incremental/java/ModulePathSplitter.java | 9004 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.jps.incremental.java;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.io.FileUtil;
import com.thoughtworks.qdox.JavaProjectBuilder;
... | apache-2.0 |
flaminem/flamy | src/it/scala/com/flaminem/LauncherLocalSuite.scala | 1498 | /*
*
* 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
* distri... | apache-2.0 |
johnshen/phpcms | caches/configs/sub_config.php | 1577 | <?php
return array(
'一天排行'=>'day-0',
'本周排行'=>'week-0',
'本月排行'=>'month-0',
'精选视频排行'=>'accurate-0',
'上升最快视频排行'=>'top-0',
'当日编辑推荐'=>'today-0',
'最新-资讯'=>'N-101000',
'最新-体育'=>'N-102000',
'最新-娱乐'=>'N-103000',
'最新-电影'=>'N-104000',
'最新-原创'=>'N-105000',
'最新-美女'=>'N-107000',
'最新-广告'=>'N-106000',
'最新-... | apache-2.0 |
adoyle-h/ad-conventional-changelog | index.js | 5052 | 'use strict';
var wrap = require('word-wrap');
var Path = require('path');
var fs = require('fs');
var get = require('get-value');
var os = require('os');
var path = Path.resolve(process.cwd(), 'package.json');
var packageJSON;
try {
fs.accessSync(path, fs.F_OK | fs.R_OK); // eslint-disable-line no-bitwise
... | apache-2.0 |
EBIBioStudies/FrontEndUI | webapp/src/main/java/uk/ac/ebi/biostudies/utils/search/EFOExpansionLookupIndex.java | 14134 | /*
* Copyright 2009-2016 European Molecular Biology Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | apache-2.0 |
ThiagoGarciaAlves/intellij-community | plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/junit/UseOfObsoleteAssertInspection.java | 10113 | /*
* Copyright 2003-2016 Dave Griffith, Bas Leijdekkers
*
* 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 |
aws/aws-sdk-java | aws-java-sdk-pinpointemail/src/main/java/com/amazonaws/services/pinpointemail/model/transform/EmailContentMarshaller.java | 2547 | /*
* 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 |
learning-layers/SocialSemanticServer | servs/dataimport/dataimport.impl/src/main/java/at/tugraz/sss/servs/dataimport/impl/SSDataImportActAndLog.java | 5498 | /**
* Code contributed to the Learning Layers project
* http://www.learning-layers.eu
* Development is partly funded by the FP7 Programme of the European Commission under
* Grant Agreement FP7-ICT-318209.
* Copyright (c) 2016, Graz University of Technology - KTI (Knowledge Technologies Institute).
* For a list of... | apache-2.0 |
Minoli/carbon-apimgt | features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/FormComponents/TextArea.js | 1382 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | apache-2.0 |
miswenwen/My_bird_work | Bird_work/我的项目/Settings/src/com/android/settings/ApnPreference.java | 5085 | /*
* Copyright (C) 2009 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 |
nafae/developer | modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201402/cm/GeoLocationService.java | 692 | /**
* GeoLocationService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201402.cm;
public interface GeoLocationService extends javax.xml.rpc.Service {
public java.lang.String getGeoLocationSer... | apache-2.0 |
subincm/chain_replication | config/config1_3_add_server_failure.py | 2421 | ###############################################################################
# 1) This is a test case to verify that the deposit case works fine.
# 2) It also checks whether duplicate requests are processed correctly.
###############################################################################
############... | apache-2.0 |
Terreii/andromeda-viewer | src/bundles/localChat.ts | 4411 | /*
* Stores all LocalChat-Messages
*/
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import { UUID as LLUUID } from '../llsd'
import { login, logout, userWasKicked, LoginAction } from './session'
import { RootState } from '../store/configureStore'
import {
LocalChatMessage,
LocalChatAudible,
L... | apache-2.0 |
ctr-lang/ctr | __tests__/cases-api/public-methods/get-last-result/raw-reset.js | 803 | const path = require('path');
const _h = require(path.join(process.cwd(), '__tests__/cases-api/helpers.js'));
const CTR = require('ctr').js;
const ctr = new CTR();
ctr.create('.test-dont-reset', {
width: '100px'
});
const one = ctr.create('.test-1', {
width: '200px'
}).getLastResult(true, true);
const two = ... | apache-2.0 |
google/graphicsfuzz | generator/src/main/java/com/graphicsfuzz/generator/fuzzer/templates/IExprTemplate.java | 3155 | /*
* Copyright 2018 The GraphicsFuzz Project 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 applic... | apache-2.0 |
yoyocms/YoYoCms.AbpProjectTemplate | src/YoYoCms.AbpProjectTemplate.Web/Assets/src/services/common/notificationService.js | 179 | /**
* Created by huanghx on 2017/7/10.
*/
import serviceHelper from '../serviceHelper'
let roleService = serviceHelper.requireService('notification')
export default roleService | apache-2.0 |
richygreat/service | src/main/java/com/occar/dao/RouteDAO.java | 3762 | package com.occar.dao;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Logger;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.... | apache-2.0 |
Q42/Deployment-Shepherd | deployment-shepherd-cli/Program.cs | 7408 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Octokit;
using Powe... | apache-2.0 |
Scalr/libcloud | libcloud/common/azure_arm.py | 10277 | # 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 use ... | apache-2.0 |
database-rider/database-rider | rider-spring/src/test/java/com/github/database/rider/spring/dataset/MetaDataSet.java | 726 | package com.github.database.rider.spring.dataset;
import com.github.database.rider.core.api.configuration.DBUnit;
import com.github.database.rider.core.api.dataset.DataSet;
import com.github.database.rider.spring.api.DBRider;
import org.springframework.core.annotation.AliasFor;
import java.lang.annotation.ElementType... | apache-2.0 |
Im-dex/xray-162 | code/engine/xrGame/ui/UIInventoryUtilities.cpp | 17619 |
#include "pch_script.h"
#include "UIInventoryUtilities.h"
#include "../WeaponAmmo.h"
#include "../UIStaticItem.h"
#include "UIStatic.h"
#include "../eatable_item.h"
#include "../Level.h"
#include "../date_time.h"
#include "../string_table.h"
#include "../Inventory.h"
#include "../InventoryOwner.h"
#include "../InfoPo... | apache-2.0 |
sky91/EnumGeneratorGradlePlugin | source/enum-generator-gradle-plugin/core/src/main/java/x/flyspace/gradle/plugin/enumgenerator/core/impl/items/filter/TypeMatchRegexHandleFilter.java | 656 | package x.flyspace.gradle.plugin.enumgenerator.core.impl.items.filter;
import x.flyspace.gradle.plugin.enumgenerator.core.impl.items.HandleFilter;
import java.util.Map;
import java.util.regex.Pattern;
/**
* Created by sky91 on 2/5/15.
*/
public class TypeMatchRegexHandleFilter implements HandleFilter<Map<String, O... | apache-2.0 |
dsilva609/Project-Ariel | UnitTests/BusinessLogic/Enums/RankEnumTests.cs | 3006 | using BusinessLogic.Enums;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace UnitTests.BusinessLogic.Enums
{
[TestClass]
public class RankEnumTests
{
private const string ENUM_FAILURE_MESSAGE = "Enum value is not correct. Enum and update scripts may be out of date.";
[TestMethod]
p... | apache-2.0 |
wyukawa/presto | presto-main/src/test/java/io/prestosql/operator/TestScanFilterAndProjectOperator.java | 20458 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | apache-2.0 |
GoogleCloudPlatform/k8s-cluster-bundle | examples/templatebuilder/bazel_init_test.go | 768 | // 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 in ... | apache-2.0 |
sasaingit/ice-framework-testapp | ext/modules/dashboard/index.php | 1864 | <?php
/*
This file is part of iCE Hrm.
iCE Hrm is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
iCE Hrm is distributed in the hope that it w... | apache-2.0 |
adamkewley/jobson | jobson/src/main/java/com/github/jobson/scripting/functions/ToJSONFunction.java | 1283 | /*
* 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 |
jjlopezm/AkkaEncrypt | Client/src/main/scala/com/juanjo/akka/encrypt/Client.scala | 1202 | package com.juanjo.akka.encrypt
import akka.actor.ActorSystem
import akka.contrib.pattern.ClusterClient
import com.juanjo.akka.encrypt.common.domain.SecureMessage
import com.juanjo.akka.encrypt.config.ClientConfig
import com.typesafe.config.ConfigValue
import org.apache.log4j.Logger
import scala.collection.JavaConver... | apache-2.0 |
sequenceiq/cloudbreak | core/src/main/java/com/sequenceiq/cloudbreak/controller/mapper/DuplicatedKeyValueExceptionMapper.java | 923 | package com.sequenceiq.cloudbreak.controller.mapper;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.Provider;
import com.sequenceiq.cloudbreak.controller.json.ExceptionResult;
import com.sequenceiq.cloudbreak.service.DuplicateKeyValueException;
@Provider
public class DuplicatedKeyValueExceptionMapper exten... | apache-2.0 |
yanzhijun/jclouds-aliyun | providers/hpcloud-objectstorage/src/main/java/org/jclouds/hpcloud/objectstorage/blobstore/functions/PublicUriForObjectInfo.java | 2632 | /*
* 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 |
brettryan/jdk8-lambda-samples | src/main/java/com/drunkendev/lambdas/xml/LocalDateTimeAdapter.java | 1237 | /*
* LocalDateTimeAdapter.java Feb 2 2014, 02:48
*
* Copyright 2014 Drunken Dev.
*
* 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 |
trappar/minecraft-cookbook | recipes/directories.rb | 404 | directory node['minecraft']['install_dir'] do
recursive true
user node['minecraft']['user']
group node['minecraft']['group']
end
directory "#{node['minecraft']['install_dir']}/minecraft-init" do
user node['minecraft']['user']
group node['minecraft']['group']
end
directory "#{node['minecraft']['install_dir']... | apache-2.0 |
tadayosi/camel | core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SecretsManagerEndpointBuilderFactory.java | 19637 | /*
* 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 |
eval1749/elang | elang/lir/instruction_visitor.cc | 559 | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "elang/lir/instruction_visitor.h"
namespace elang {
namespace lir {
//////////////////////////////////////////////////////////////////////
//
// ... | apache-2.0 |
stdlib-js/stdlib | lib/node_modules/@stdlib/stats/incr/msummary/docs/types/index.d.ts | 3077 | /*
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
SilentScope/mq-visualizer | src/mq-visualizer-model/src/main/java/com/mqvisualizer/model/destination/JmsQueue.java | 895 | package com.mqvisualizer.model.destination;
import javax.jms.JMSException;
import javax.jms.Queue;
/**
* Created by Mykolas on 2014-09-19.
*/
public class JmsQueue extends JmsDestination implements Queue {
private String queueName;
private Queue originalQueue;
public JmsQueue() {
}
public Jm... | apache-2.0 |
nextsmsversion/macchina.io | platform/RemotingNG/src/EventDispatcher.cpp | 2680 | //
// EventDispatcher.cpp
//
// $Id: //poco/1.7/RemotingNG/src/EventDispatcher.cpp#3 $
//
// Library: RemotingNG
// Package: ORB
// Module: EventDispatcher
//
// Copyright (c) 2006-2014, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "Poco... | apache-2.0 |
tempbottle/jsimpledb | src/java/org/jsimpledb/kv/raft/msg/RequestVote.java | 2625 |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.kv.raft.msg;
import com.google.common.base.Preconditions;
import java.nio.ByteBuffer;
import org.jsimpledb.util.LongEncoder;
/**
* Send from candidates to other nodes to request a vote during an election.
*/
public class Re... | apache-2.0 |
gerrit-review/gerrit | java/com/google/gerrit/pgm/util/RuntimeShutdown.java | 3015 | // Copyright (C) 2009 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 applicable ... | apache-2.0 |
toby1984/raycast | src/main/java/de/codesourcery/raycast/TileId.java | 1144 | /**
* Copyright 2014 Tobias Gierke <tobias.gierke@code-sourcery.de>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | apache-2.0 |
tomatobang/tomato-server | app/model/asset.js | 663 | 'use strict';
module.exports = app => {
/**
* 资产
*/
const mongoose = app.mongoose;
const ObjectId = mongoose.Schema.ObjectId;
const asset = new mongoose.Schema({
// 用户编号
userid: { type: ObjectId, ref: 'user' },
// 名称
name: { type: String, default: '' },
... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/GetRoleResultStaxUnmarshaller.java | 2375 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
lantanagroup/trifolia | Trifolia.Web/TrifoliaJsonValueProviderFactory.cs | 3132 | using System;
using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Script.Serialization;
using System.Globalization;
namespace Trifolia.Web
{
public sealed class TrifoliaJsonValueProviderFactory : ValueProviderFact... | apache-2.0 |
Inari-Soft/inari-firefly | src/main/java/com/inari/firefly/physics/movement/EulerIntegration.java | 2125 | package com.inari.firefly.physics.movement;
import com.inari.firefly.graphics.ETransform;
public final class EulerIntegration implements Integrator {
private float gravity = 9.8f;
private float shift = (float) Math.pow( 10, 0 );
private int scale = -1;
public final float getGravity() {
r... | apache-2.0 |
RcKeller/STF-Refresh | app/views/STF/Voting/Panels/Endorsements/Endorsements.js | 1760 | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Collapse } from 'antd'
const Panel = Collapse.Panel
import { makeManifestByID } from '../../../../../selectors'
import { Loading } from '../../../../../components'
/*
ENDORSEMENTS PANEL:
Renders a ... | apache-2.0 |
Mainflux/mainflux-lite | twins/doc.go | 513 | // Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
// Package twins contains the domain concept definitions needed to support
// Mainflux twins service functionality. Twin is a semantic representation
// of a real world entity, be it device, application or something else.
// It holds the sequence of attr... | apache-2.0 |
Top-Q/jsystem | jsystem-core-projects/jsystemApp/src/main/java/jsystem/treeui/params/AgentsSelectionDialog.java | 7346 | /*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.treeui.params;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.util.HashSet;
import java.util.Set;
import java.util.Vector... | apache-2.0 |
shakamunyi/beam | sdks/java/core/src/main/java/org/apache/beam/sdk/runners/inprocess/ViewEvaluatorFactory.java | 5752 | /*
* 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 |