repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
google-research/weakly_supervised_control | weakly_supervised_control/vae/path_collector.py | 1712 | # Copyright 2020 The Weakly-Supervised Control 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 la... | apache-2.0 |
shangsony/fabric_sdk_golang | core/chaincode/shim/crypto/ecdsa/ecdsa.go | 1777 | /*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | apache-2.0 |
elliotli02/xxland | src/main/java/xxland/framework/io/impl/KnowLedgeFileControllerImpl.java | 3158 | package xxland.framework.io.impl;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import xxland.com.domain.model.KnowLedge;
import xxland.framework.ComConstant... | apache-2.0 |
tsugiproject/tsugi | vendor/google/apiclient-services/src/Google/Service/PostmasterTools/IpReputation.php | 1402 | <?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 |
nickbabcock/dropwizard | dropwizard-jersey/src/test/java/io/dropwizard/jersey/optional/OptionalHeaderParamResourceTest.java | 3934 | package io.dropwizard.jersey.optional;
import io.dropwizard.jersey.AbstractJerseyTest;
import io.dropwizard.jersey.DropwizardResourceConfig;
import io.dropwizard.jersey.MyMessage;
import io.dropwizard.jersey.MyMessageParamConverterProvider;
import io.dropwizard.jersey.params.UUIDParam;
import org.junit.Test;
import j... | apache-2.0 |
FelipeAdorno/fixture-factory | src/main/java/br/com/six2six/fixturefactory/ObjectFactory.java | 9581 | package br.com.six2six.fixturefactory;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import br.com.six2six.fixturefactory.u... | apache-2.0 |
vitessio/vitess | go/pools/resource_pool.go | 13117 | /*
Copyright 2019 The Vitess Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | apache-2.0 |
m3z/HT | openstack_dashboard/test/settings.py | 2276 | import os
from django.utils.translation import ugettext_lazy as _
from horizon.test.settings import *
from horizon.utils.secret_key import generate_or_read_from_file
from openstack_dashboard.exceptions import UNAUTHORIZED, RECOVERABLE, NOT_FOUND
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_PATH = os.... | apache-2.0 |
NuPattern/NuPattern | Src/Runtime/Source/Runtime.Guidance/UI/GuidanceBrowser.cs | 4116 | using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using NuPattern.Reflection;
namespace NuPattern.Runtime.Guidance.UI
{
internal class GuidanceBrowser : UserControl
{
public static readonly DependencyProperty SourceProperty =
DependencyProp... | apache-2.0 |
pulibrary/plum | spec/views/records/edit_fields/_geo_subject.html.erb_spec.rb | 1807 | require 'rails_helper'
include SimpleForm::ActionViewExtensions::FormHelper
RSpec.describe 'records/edit_fields/_geo_subject.html.erb' do
let(:project) { FactoryGirl.create :ephemera_project }
let(:box) { FactoryGirl.create :ephemera_box, ephemera_project: [project.id] }
let(:vocabulary_label) { "Geo subject" }
... | apache-2.0 |
hufsm/PocketHub | app/src/main/java/com/github/pockethub/ui/SingleChoiceDialogFragment.java | 2145 | /*
* Copyright (c) 2015 PocketHub
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 |
whiteley/jetty8 | jetty-continuation/src/main/java/org/eclipse/jetty/continuation/ContinuationListener.java | 2046 | //
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | apache-2.0 |
vespa-engine/vespa | jdisc-security-filters/src/main/java/com/yahoo/jdisc/http/filter/security/rule/RuleBasedRequestFilter.java | 5578 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.filter.security.rule;
import com.google.inject.Inject;
import com.yahoo.jdisc.Metric;
import com.yahoo.jdisc.Response;
import com.yahoo.jdisc.http.filter.DiscFilterRequest;
import com.y... | apache-2.0 |
davidtsadler/ebay-sdk-php | src/Trading/Types/StorePreferencesType.php | 1501 | <?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\Trading\Types;
/**
*
* @property \DTS\eBaySDK\Trading\Types\StoreVacationPreferencesType... | apache-2.0 |
petabridge/NBench | src/NBench.Tests/CommandLineSpecs.cs | 529 | using FluentAssertions;
using Xunit;
namespace NBench.Tests
{
public class CommandLineSpecs
{
[Fact(DisplayName = "CommandLine: Should still parse NBench v1.2 commands")]
public void Should_parse_NBench_10_command_styles()
{
var command = new string[] { $"{NBenchCommands.Ou... | apache-2.0 |
nafae/developer | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201406/cm/CampaignCriterionServiceInterfacegetResponse.java | 1607 |
package com.google.api.ads.adwords.jaxws.v201406.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for getResponse element declaration.
*
* <p>The fo... | apache-2.0 |
JeremyAiYt/MyApp | app/src/main/java/com/shaojun/myapp/widget/ultra/indicator/PtrTensionIndicator.java | 3716 | package com.shaojun.myapp.widget.ultra.indicator;
public class PtrTensionIndicator extends PtrIndicator {
private float DRAG_RATE = 0.5f;
private float mDownY;
private float mDownPos;
private float mOneHeight = 0;
private float mCurrentDragPercent;
private int mReleasePos;
private float ... | apache-2.0 |
MaximTar/satellite | src/main/resources/libs/JAT/jat/demo/vr/attitude/attitude.java | 3233 | /* JAT: Java Astrodynamics Toolkit
*
* Copyright (c) 2002 The JAT Project and the Center for Space Research (CSR),
* The University of Texas at Austin. All rights reserved.
*
* This file is part of JAT. JAT is free software; you can
* redistribute it and/or modify it under the terms of the
* NASA Open Source Agr... | apache-2.0 |
icemagno/mclm | src/main/webapp/app/view/trabalho/TrabalhoTree.js | 4885 | Ext.define('MCLM.view.trabalho.TrabalhoTree', {
extend: 'Ext.tree.TreePanel',
requires: [
'MCLM.view.trabalho.TrabalhoTreeController'
],
xtype: 'view.trabalhoTree',
id: 'trabalhoTree',
store: 'store.trabalhoTree',
rootVisible: true,
animate: false,
controller: 'trabalho',
... | apache-2.0 |
vczhou/inductive | questions/migrations/0004_auto_20171021_2152.py | 463 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-21 21:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('questions', '0003_auto_20171021_2040'),
]
operations = [
migrations.AlterFi... | apache-2.0 |
liliangali/qudao | vue1/src/components/Modules/Demo/Article/index.js | 118 | module.exports = {
Edit: require('./Edit/'),
Discount: require('./Discount/'),
List: require('./List/')
}; | apache-2.0 |
hheg/jitstatic | source/src/main/java/io/jitstatic/auth/constraints/HasPassword.java | 1265 | package io.jitstatic.auth.constraints;
/*-
* #%L
* jitstatic
* %%
* Copyright (C) 2017 - 2019 H.Hegardt
* %%
* 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.apac... | apache-2.0 |
cping/RipplePower | eclipse/RipplePower/src/org/ripple/power/i18n/message/annotations/Handler.java | 517 | package org.ripple.power.i18n.message.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.ripple.power.i18n.message.MessageHandler;
import org.ripple.power.i18n.message.handlers.StringF... | apache-2.0 |
zhangjunfang/jstorm-0.9.6.3- | jstorm-client/src/main/java/backtype/storm/task/IErrorReporter.java | 102 | package backtype.storm.task;
public interface IErrorReporter {
void reportError(Throwable error);
}
| apache-2.0 |
boyan-velinov/cf-mta-deploy-service | com.sap.cloud.lm.sl.cf.web/src/main/java/com/sap/cloud/lm/sl/cf/web/app/CFApplication.java | 1181 | package com.sap.cloud.lm.sl.cf.web.app;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.core.Application;
import com.sap.cloud.lm.sl.cf.web.resources.AdminResource;
import com.sap.cloud.lm.sl.cf.web.resources.CFExceptionMapper;
import com.sap.cloud.lm.sl.cf.web.resources.ConfigurationEntriesResour... | apache-2.0 |
OpsLabJPL/earthkit-cli | pool/userdata.go | 1885 | package pool
const UserData = `#!/bin/bash
# install docker
curl "__DOCKER_URL__" | bash
# fetch docker conf
wget "__DOCKER_CONF_URL__" -O /etc/init/docker.conf
# rerun docker with new config
service docker restart
mkdir -p /cescre/logs/
mkdir /cescre/bin/
mkdir /etc/ekit/
mkdir /etc/etcd/
mkdir /cescre/etcd_data... | apache-2.0 |
inbloom/secure-data-service | tools/csv2xml/src/org/slc/sli/sample/entitiesR1/StudentSchoolAssociation.java | 11519 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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: 2012.1... | apache-2.0 |
Bismarrck/tensorflow | tensorflow/compiler/xla/reference_util.cc | 30380 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | apache-2.0 |
BBVA-CIB/APIRestGenerator | core/src/test/java/com/bbva/kltt/apirest/core/parsed_info/parameters/ParameterFormDataTest.java | 2731 | package com.bbva.kltt.apirest.core.parsed_info.parameters;
import org.junit.Test;
import com.bbva.kltt.apirest.core.parsed_info.common.ItemTest;
import com.bbva.kltt.apirest.core.util.APIRestGeneratorException;
import com.bbva.kltt.apirest.core.util.ConstantsCommon;
import com.bbva.kltt.apirest.core.util.Const... | apache-2.0 |
pub007/dstruct | email_list/clsEmailList.php | 5385 | <?php
/**
* EmailList class
*/
/**
* Email Lists.
*
* Email Lists to which people subscribe.
* @package email_list
* @author David Lidstone
*/
class EmailList {
private $data = [
'Name'=>null,
'EmailAddress'=>null,
'IMAPHost'=>null,
'Username'=>null,
'Password'=>nul... | apache-2.0 |
vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Items/ShipTech/GenCompEnviroSystem.java | 3392 | package com.planet_ink.coffee_mud.Items.ShipTech;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.pla... | apache-2.0 |
cloudfoundry/cli | command/translatableerror/droplet_file_error.go | 335 | package translatableerror
type DropletFileError struct {
Err error
}
func (DropletFileError) Error() string {
return "Error creating droplet file: {{.Error}}"
}
func (e DropletFileError) Translate(translate func(string, ...interface{}) string) string {
return translate(e.Error(), map[string]interface{}{
"Error"... | apache-2.0 |
nesfit/NetfoxDetective | Framework/ApplicationRecognizers/AppIdent/Features/Bases/SYNPacketsBase.cs | 2882 | // Copyright (c) 2017 Jan Pluskal
//
//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 |
kulinski/myfaces | impl/src/main/java/org/apache/myfaces/context/servlet/InitParameterMap.java | 2399 | /*
* 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 |
xtofs/tiny-time | src/main/scala/net/xtof/time/InstantWriter.scala | 1723 | package net.xtof.time
trait InstantWriter {
def write(dateTime: Instant): String
}
object InstantWriter {
private val fmt = "%04d-%02d-%02d"
val date: InstantWriter = BaseInstantWriter(dt => {
val (y, m, d) = Calendar.dateParts(dt.millisSinceEpoch)
fmt.format(y, m, d)
})
val time: InstantWriter ... | apache-2.0 |
eBay/mTracker | core/src/main/java/com/ccoe/build/service/config/BuildServiceConfigBean.java | 1297 | /*
Copyright [2013-2014] eBay Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | apache-2.0 |
stringbean/elastic4s | elastic4s-core/src/main/scala/com/sksamuel/elastic4s/requests/searches/queries/compound/DisMaxQueryBodyFn.scala | 818 | package com.sksamuel.elastic4s.requests.searches.queries.compound
import com.sksamuel.elastic4s.json.{XContentBuilder, XContentFactory}
import com.sksamuel.elastic4s.requests.searches.queries.{DisMaxQuery, QueryBuilderFn}
object DisMaxQueryBodyFn {
def apply(q: DisMaxQuery): XContentBuilder = {
val builder = X... | apache-2.0 |
urvaksh/puffer | puffer/src/test/java/com/codeaspect/puffer/cache/MapCacheTest.java | 566 | package com.codeaspect.puffer.cache;
import org.junit.Before;
import org.junit.Test;
import static junit.framework.Assert.*;
public class MapCacheTest {
private Cache<String,String> cache;
@Before
public void setup(){
cache = new MapCache<String,String>();
cache.put("Key", "Value");
}
@Test
public voi... | apache-2.0 |
j123b567/j2mod | src/main/java/com/ghgande/j2mod/modbus/msg/ReadMultipleRegistersRequest.java | 5179 | /*
* Copyright 2002-2016 jamod & j2mod development teams
*
* 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 |
Sutikshan/forecast-server | src/middlewares/response_formatter.js | 351 | const formatter = (req, res) => {
res.format({
'text/plain': () => {
res.send(JSON.stringify(res.locals.data));
},
'text/html': () => {
res.render(res.locals.view || 'index', res.locals.data);
},
'application/json': () => {
res.send(res.locals.data);
},
});
res.end();
}... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p442/Production8852.java | 1891 | package org.gradle.test.performance.mediummonolithicjavaproject.p442;
public class Production8852 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | apache-2.0 |
kevenli/scrapydd | tests/handlers/test_rest.py | 8986 | """
Tests for rest api handlers
"""
# pylint: disable=missing-module-docstring
# pylint: disable=missing-class-docstring
# pylint: disable=missing-function-docstring
from os import path
from six.moves.urllib.parse import urlencode
from tornado.concurrent import Future
from scrapydd.poster.encode import multipa... | apache-2.0 |
goneri/dci-control-server | server/db/models.py | 6160 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015 Red Hat, 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 la... | apache-2.0 |
LinusU/fbthrift | thrift/compiler/test/fixtures/qualified/gen-cpp/module2_types.cpp | 6333 | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "thrift/compiler/test/fixtures/qualified/gen-cpp/module2_types.h"
#include "thrift/compiler/test/fixtures/qualified/gen-cpp/module2_reflection.h"
#include <algorithm>
#include <string.h>
... | apache-2.0 |
hairlun/customer-visit-web | src/com/jude/json/JSONObject.java | 27299 | package com.jude.json;
import java.io.IOException;
import java.io.Writer;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.... | apache-2.0 |
svn2github/scalatest | src/test/scala/org/scalatest/tools/JUnitXmlReporterSuite.scala | 6537 | /*
* Copyright 2001-2008 Artima, 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 agre... | apache-2.0 |
GISwilson/NetworksSocketDemo | Net40/NetworkSocket.Fast/Properties/AssemblyInfo.cs | 1365 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("NetworkSocket.Fast")]
[assembly: AssemblyDescription("快速构建Socket通讯的应用")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany(... | apache-2.0 |
apache/incubator-echarts | src/chart/candlestick/candlestickLayout.ts | 9182 | /*
* 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 no... | apache-2.0 |
clescot/webappender | webappender/src/main/java/com/clescot/webappender/formatter/ConsoleFormatter.java | 3415 | package com.clescot.webappender.formatter;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.common.collect.Maps;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
public clas... | apache-2.0 |
tengqm/senlin-container | senlin/tests/unit/engine/actions/test_action_base.py | 34010 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | apache-2.0 |
BVier/Taskana | lib/taskana-core/src/main/java/pro/taskana/BulkOperationResults.java | 3556 | package pro.taskana;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pro.taskana.impl.util.LoggerUtils;
/**
* Returning type for a bulk db interaction with errors. This wrapper is storing them with a
... | apache-2.0 |
studiodev/archives | 2012 - Portfolio V5/lib/vendor/symfony/test/functional/fixtures/apps/i18n/modules/i18n/templates/i18nFormSuccess.php | 189 | <form action="<?php echo url_for('i18n/i18nForm') ?>" method="post">
<table>
<?php echo $form ?>
<tr>
<td><input type="submit" value="Submit" /></td>
</tr>
</table>
</form> | apache-2.0 |
uchenm/CnChess | src/chess/model/stone/Chariot.java | 2535 | /**
* Copyright 2013 Ming Chen<uchenm@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | apache-2.0 |
gyfora/flink | flink-tests/src/test/java/org/apache/flink/test/recovery/ProcessFailureCancelingITCase.java | 13152 | /*
* 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 |
itweet/itweet-boot | src/main/java/cn/itweet/modules/admin/document/entiry/Document.java | 1776 | package cn.itweet.modules.admin.document.entiry;
import javax.persistence.*;
import java.util.Date;
/**
* Created by whoami on 22/04/2017.
*/
@Entity
@Table(name = "document")
public class Document {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer id;
private St... | apache-2.0 |
vespa-engine/vespa | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/container/RegistryCredentials.java | 1662 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.container;
import java.util.Objects;
/**
* Credentials for a container registry server.
*
* @author mpolden
*/
public class RegistryCredentials {
public static fi... | apache-2.0 |
cytotv/vk-server | method/store.getStickersKeywords.php | 108 | <?php
echo '{"response": {"base_url": "https://vk.com/images/stickers/","count": 0,"dictionary": []}}';
?> | apache-2.0 |
dante-mx/openbravopos | src-pos/com/openbravo/pos/config/PanelConfig.java | 1277 | // Openbravo POS is a point of sales application designed for touch screens.
// Copyright (C) 2007-2009 Openbravo, S.L.
// http://www.openbravo.com/product/pos
//
// This file is part of Openbravo POS.
//
// Openbravo POS is free software: you can redistribute it and/or modify
// it under the terms... | apache-2.0 |
chingor13/google-cloud-php | RecaptchaEnterprise/src/V1/AnnotateAssessmentRequest/Annotation.php | 2605 | <?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
namespace Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest;
use UnexpectedValueException;
/**
* Enum that reprensents the types of annotations.
*
* Protobuf type <c... | apache-2.0 |
sjcdigital/temis-api | src/main/java/com/sjcdigital/temis/model/document/OrdinarySession.java | 1773 | package com.sjcdigital.temis.model.document;
import java.time.LocalDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* @author fabioh... | apache-2.0 |
pablow91/TheResistance | app/src/main/java/eu/stosdev/theresistance/screen/CardPickingScreen.java | 5258 | package eu.stosdev.theresistance.screen;
import android.os.Bundle;
import com.squareup.otto.Subscribe;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import eu.stosdev.theresistance.R;
import eu.stosdev.theresistance.model.card.EstablishConfidenceCard;
import eu.stosdev.theres... | apache-2.0 |
JaCraig/Canister | SimpleMVCTests/Models/ErrorViewModel.cs | 222 | using System;
namespace SimpleMVCTests.Models
{
public class ErrorViewModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
} | apache-2.0 |
riganti/infrastructure | src/Infrastructure/Riganti.Utils.Infrastructure.Services/ICurrentUserProvider.cs | 288 | namespace Riganti.Utils.Infrastructure.Services
{
public interface ICurrentUserProvider<out TKey>
{
TKey Id { get; }
string UserName { get; }
string DisplayName { get; }
string Email { get; }
bool IsInRole(string roleName);
}
}
| apache-2.0 |
SciGaP/seagrid-rich-client | src/main/java/gamess/Cosmetics.java | 5078 | package gamess;
import java.awt.Color;
import javax.swing.text.AttributeSet;
import javax.swing.text.Element;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
import javax.swing.text.Highlighter.HighlightPainter;
public class Cosmetics
{
//... | apache-2.0 |
ironfoundry-attic/vcap-client | src/IronFoundry.VcapClient/Models/StatInfo.cs | 615 | // -----------------------------------------------------------------------
// <copyright file="StatInfo.cs" company="Tier 3">
// Copyright © 2012 Tier 3 Inc., All Rights Reserved
// </copyright>
// -----------------------------------------------------------------------
using Newtonsoft.Json;
namespace IronFoundry.Mod... | apache-2.0 |
kidaa/kythe | kythe/cxx/indexer/cxx/testdata/template/template_class_template_ctor.cc | 795 | // Checks that we properly handle classes with constructor templates.
//- @foo defines/binding FnFoo
//- FnFoo callableas FooC
int foo() { return 0; }
//- @bar defines/binding FnBar
//- FnBar callableas BarC
int bar() { return 0; }
class C {
public:
template <typename T>
//- FooCall=@"foo()" ref/call FooC
//- Fo... | apache-2.0 |
josdavidmo/orion | lang/es-co/instrumentos-es.php | 2284 | <?php
define('PAGINAS', 5);
define('TITULO_INSTRUMENTOS', 'Instrumentos');
define('CODIGO_INSTRUMENTO', 'Código');
define('NOMBRE_INSTRUMENTO', 'Nombre');
define('SECCIONES_INSTRUMENTO', 'Secciones');
define('PREGUNTAS_INSTRUMENTO', 'Preguntas');
define('REQUERIDO_PREGUNTA', 'Requerido');
define('ENUNCIADO_PREG... | apache-2.0 |
dims/neutron | neutron/pecan_wsgi/hooks/policy_enforcement.py | 9507 | # Copyright (c) 2015 Mirantis, 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 requir... | apache-2.0 |
soundcloud/gocd | config/config-api/src/com/thoughtworks/go/config/elastic/ElasticProfile.java | 1512 | /*
* Copyright 2016 ThoughtWorks, 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 |
Ruviel21/rpahomov | chapter_001/src/main/java/ru/job4j/tictactoe/Logic3T.java | 2682 | package ru.job4j.tictactoe;
public class Logic3T {
private final Figure3T[][] table;
public Logic3T(Figure3T[][] table) {
this.table = table;
}
public boolean isWinnerX() {
boolean result = false;
if (table[0][0].hasMarkX() & table[1][1].hasMarkX() & table[2][2].hasMarkX()) {
... | apache-2.0 |
IHTSDO/snow-owl | snomed/com.b2international.snowowl.snomed.importer/src/com/b2international/snowowl/snomed/importer/net4j/DefectType.java | 4386 | /*
* Copyright 2011-2018 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | apache-2.0 |
timdown/log4javascript2 | src/core.js | 15054 | var log4javascript = (function(globalObj) {
var UNDEFINED = "undefined",
STRING = "string",
NUMBER = "number",
OBJECT = "object",
FUNCTION = "function",
UNKNOWN = "unknown",
startUpTime = new Date(),
environment,
objectToString = Object.prototype.toStr... | apache-2.0 |
velsubra/Tamil | web-app/src/main/webapp/snippets/groovy.js | 187 | define("ace/snippets/groovy",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "groovy";
}); | apache-2.0 |
aalva-gapsi/gapsieventos | src/main/java/org/primefaces/component/fileupload/CommonsFileUploadDecoder.java | 2638 | /*
* Copyright 2009-2014 PrimeTek.
*
* 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 |
jentfoo/aws-sdk-java | aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/AWSIoTAnalyticsAsync.java | 60345 | /*
* 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 |
tianzi77/tianzi77.github.io | tools/avalon/router/dist/example2.js | 307752 | /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... | apache-2.0 |
spotify/heroic | heroic-test/src/test/java/com/spotify/heroic/suggest/elasticsearch/SuggestBackendKVRestIT.java | 1377 | /*
* Copyright (c) 2020 Spotify AB.
*
* 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 |
jayceyxc/hue | apps/jobbrowser/src/jobbrowser/views.py | 25163 | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | apache-2.0 |
jarrodek/feed-reader | paper/lib_new/core-dropdown/demo.html.0.js | 212 |
Polymer({
toggle: function() {
if (!this.dropdown) {
this.dropdown = this.querySelector('core-dropdown');
}
this.dropdown && this.dropdown.toggle();
}
});
| apache-2.0 |
BroadleafCommerce/blc-paypal | services/src/main/java/org/broadleafcommerce/vendor/paypal/domain/PayerInfo.java | 4023 | /*
* Copyright (C) 2009 - 2020 Broadleaf Commerce
*
* Licensed under the Broadleaf End User License Agreement (EULA), Version 1.1 (the
* "Commercial License" located at http://license.broadleafcommerce.org/commercial_license-1.1.txt).
*
* Alternatively, the Commercial License may be replaced with a mutually agree... | apache-2.0 |
addthis/tracboard | src/webroot/dialogs.inc.php | 3707 | <?php
/**
* Copyright 2011 Clearspring Technologies
*
* 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 |
RadekKoubsky/SilverWare | camel-microservice-provider/src/main/java/io/silverware/microservices/providers/camel/CamelMicroserviceProvider.java | 8408 | /*
* -----------------------------------------------------------------------\
* SilverWare
*
* Copyright (C) 2010 - 2013 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 c... | apache-2.0 |
ericchiang/kubernetes | plugin/pkg/scheduler/scheduler_test.go | 19837 | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
Communote/communote-server | communote/webapp/src/main/webapp/javascript/blog/CreateNote.js | 48896 | // TODO rename to NoteEditorWidget and move to widget/note/editor
var CreateNoteWidget = new Class({
Extends: C_Widget,
widgetGroup: "blog",
// the current working mode of the widget (edit, comment, repost or create)
action: null,
ajaxLoadingOverlay: null,
/**
* Object that maps... | apache-2.0 |
mingjunli/GithubApp | app/src/main/java/com/anly/githubapp/ui/base/adapter/ArrayFragmentPagerAdapter.java | 834 | package com.anly.githubapp.ui.base.adapter;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentStatePagerAdapter;
import java.util.Arrays;
import java.util.List;
/**
* Created by mingjun on 16/6/28.
*/
public abstract class Array... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p231/Test4629.java | 2111 | package org.gradle.test.performance.mediummonolithicjavaproject.p231;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test4629 {
Production4629 objectUnderTest = new Production4629();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p54/Production1090.java | 2129 | package org.gradle.test.performance.mediummonolithicjavaproject.p54;
import org.gradle.test.performance.mediummonolithicjavaproject.p50.Production1009;
import org.gradle.test.performance.mediummonolithicjavaproject.p52.Production1049;
public class Production1090 {
private Production1009 property0;
p... | apache-2.0 |
mrniko/redisson | redisson/src/main/java/org/redisson/cache/CachedValueReference.java | 763 | /**
* Copyright (c) 2013-2020 Nikita Koksharov
*
* 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 |
Esri/route-planner-csharp | RoutePlanner_DeveloperTools/Source/ArcLogisticsApp/Converters/ClusterSizeConverter.cs | 1933 | /*
| Version 10.1.84
| Copyright 2013 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law o... | apache-2.0 |
arkhipov/transaction-cdi | src/main/java/org/softus/cdi/transaction/impl/DefaultTransactionSupport.java | 3424 | /*
* Copyright 2012 The Softus Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 |
BrianGladman/pthreads | build.vs/run_tests/run_tests.py | 2615 |
from __future__ import print_function
from os import chdir, walk
from os.path import join, dirname, normpath, split, splitext
import shutil
import string
import copy
import subprocess
import code
import sys
import re
from time import sleep
# timeout for running each test
test_time_limit = 60
vs_version = 19
if len... | apache-2.0 |
wavelets/smile | Smile/test/smile/mds/IsotonicMDSTest.java | 43361 | /******************************************************************************
* Confidential Proprietary *
* (c) Copyright Haifeng Li 2011, All Rights Reserved *
******************************************************************************/... | apache-2.0 |
AntennaeSDK/MMS | mobile-server/src/main/java/com/github/antennaesdk/messageserver/services/IRegistrationService.java | 893 | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
treeleafj/treeleaf | treeleaf-db/src/main/java/org/treeleaf/db/meta/annotation/Column.java | 936 | package org.treeleaf.db.meta.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 标于实体类中的属性上面,用于声明一个字段的信息
* Created by leaf on 2015/1/2 0002.
*/
@Target(ElementType.FIELD)
@Retention(Retent... | apache-2.0 |
Hanks10100/weex | android/playground/app/src/androidTest/java/com/alibaba/wasmWeex/uitest/TC_AG/AG_Input_Input_Color.java | 932 | package com.alibaba.wasmWeex.uitest.TC_AG;
import com.alibaba.wasmWeex.WXPageActivity;
import com.alibaba.wasmWeex.util.TestFlow;
import java.util.TreeMap;
import org.junit.Before;
import org.junit.Test;
public class AG_Input_Input_Color extends TestFlow {
public AG_Input_Input_Color() {
super(WXPageActivity.class)... | apache-2.0 |
mtlynch/gofn-prosper | prosper/note_parser.go | 3366 | package prosper
import (
"fmt"
"github.com/mtlynch/gofn-prosper/prosper/thin"
)
type noteParser interface {
Parse(thin.NoteResult) (Note, error)
}
type defaultNoteParser struct{}
func (p defaultNoteParser) Parse(r thin.NoteResult) (Note, error) {
originationDate, err := parseProsperDate(r.OriginationDate)
if ... | apache-2.0 |
vsilaev/java-continuations | net.tascalate.javaflow.api/src/main/java/org/apache/commons/javaflow/api/ContinuableAnnotation.java | 1804 | /**
* Copyright 2013-2019 Valery Silaev (http://vsilaev.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 b... | apache-2.0 |
vunvulear/Stuff | Azure/RunLegacyDotNetFrameworkUsingDocker/Web.Docker/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs | 7398 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Web.Docker.Data.Migrations
{... | apache-2.0 |
gbehrmann/JGlobus | ssl-proxies/src/main/java/org/globus/gsi/bc/BouncyCastleUtil.java | 23138 | /*
* Copyright 1999-2010 University of Chicago
*
* 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 |
jasdel/aws-sdk-go | private/protocol/ec2query/unmarshal_test.go | 86851 | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package ec2query_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sd... | apache-2.0 |