repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
pjkCochin/spring-social-facebook | spring-social-facebook/src/test/java/org/springframework/social/facebook/api/FriendTemplateTest.java | 10982 | /*
* 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 |
weicong96/AngularJSDengue | app/components/MainPage/MainPageController.js | 174 | var app = angular.module("dengueApp",["ui.router"]);
app.controller("MainPageController",["$scope","$state",function($scope,$state){
$scope.message = "Hello";
}]); | apache-2.0 |
fabriquita/nucleus-backend | src/main/java/org/fabriquita/nucleus/controllers/ResourceController.java | 3768 | package org.fabriquita.nucleus.controllers;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.fabriquita.nucleus.NucleusConstants;
import org.fabriquita.nucleus.models.Resource;
import org.fabriquita.nucleus.... | apache-2.0 |
AndreSteenveld/cellstore | app/report/taxonomy/concepts/recompile/recompile-page.js | 718 | /*global browser:false, element:false, by:false */
'use strict';
function Recompile(reportId){
this.reportId = reportId;
this.recompileBtn = element(by.id('btn-recompile'));
this.errorMessages =
element.all(
by.xpath('//div[contains(@class, "recompile-message") and contains(@class, "bg-... | apache-2.0 |
nkhuyu/hbase-coprocessor-example | src/main/scala/Client.scala | 3560 | /**
* Copyright (C) 2014 MediaMath <http://www.mediamath.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 |
UW-Madison-DoIT/caos-php-client | src/main/materialRequirement.php | 180 | <?php
namespace edu\wisc\services\caos;
class materialRequirement
{
const __default = 'REQUIRED';
const REQUIRED = 'REQUIRED';
const RECOMMENDED = 'RECOMMENDED';
}
| apache-2.0 |
ibnc/gocd | server/src/test-fast/java/com/thoughtworks/go/server/service/SecretParamResolverTest.java | 12231 | /*
* Copyright 2019 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 |
WANdisco/gerrit | java/com/google/gerrit/server/change/ChangeMessageResource.java | 2105 | // Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | apache-2.0 |
MichalStrehovsky/roslyn | src/Compilers/Extension/CompilerPackage.cs | 8708 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using EnvDTE;... | apache-2.0 |
cverges/dnp3 | opendnp3/DNP3/ResponseContext.cpp | 14757 | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more
// contributor license agreements. See the NOTICE file distributed with this
// work for additional information regarding copyright ownership. Green Enery
// Corp licenses this file to you under the Apache License, Version 2.0 (the
// "Lic... | apache-2.0 |
Cerfoglg/cattle | code/iaas/service-discovery/server/src/main/java/io/cattle/platform/servicediscovery/process/SelectorServiceCreatePostListener.java | 5939 | package io.cattle.platform.servicediscovery.process;
import static io.cattle.platform.core.model.tables.InstanceTable.*;
import io.cattle.platform.core.addon.ServiceLink;
import io.cattle.platform.core.constants.CommonStatesConstants;
import io.cattle.platform.core.constants.ServiceConstants;
import io.cattle.platfor... | apache-2.0 |
sannies/mp4parser | isoparser/src/test/java/org/mp4parser/tools/boxes/SampleDescriptionBoxTest.java | 712 | package org.mp4parser.tools.boxes;
import com.googlecode.mp4parser.boxes.BoxWriteReadBase;
import org.mp4parser.boxes.iso14496.part12.FreeBox;
import org.mp4parser.boxes.iso14496.part12.SampleDescriptionBox;
import java.util.Collections;
import java.util.Map;
/**
* Created by sannies on 25.05.13.
*/
public class S... | apache-2.0 |
repeats/Repeat | src/core/scheduler/SchedulingData.java | 272 | package core.scheduler;
public class SchedulingData<T> {
private long time;
private T data;
public SchedulingData(long time, T data) {
this.time = time;
this.data = data;
}
public long getTime() {
return time;
}
public T getData() {
return data;
}
}
| apache-2.0 |
accphuangxin/apached-Mycat-web | src/main/java/org/mycat/web/service/ZkConfigService.java | 5489 | package org.mycat.web.service;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.ExponentialBackoffRetry;
import org.... | apache-2.0 |
jlhughes/foam | js/foam/graphics/diagram/AutoSizeDiagramRoot.js | 1208 | /**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | apache-2.0 |
majorsilence/My-FyiReporting | RdlEngine/Definition/Style.cs | 54142 | /* ====================================================================
Copyright (C) 2004-2008 fyiReporting Software, LLC
Copyright (C) 2011 Peter Gill <peter@majorsilence.com>
This file is part of the fyiReporting RDL project.
Licensed under the Apache License, Version 2.0 (the "License");
you may... | apache-2.0 |
maxis1314/phputils | smartsite/lib/TW.php | 56000 | <?php
/**
* Twitter class
*
* This source file can be used to communicate with Twitter (http://twitter.com)
*
* The class is documented in the file itself. If you find any bugs help me out and report them. Reporting can be done by sending an email to php-twitter-bugs[at]verkoyen[dot]eu.
* If you report a bug, mak... | apache-2.0 |
BigAppOS/BigApp_Discuz_Android | libs/ZUtilsExtWidget/src/com/kit/widget/energycurve/EnergyType.java | 249 | package com.kit.widget.energycurve;
public interface EnergyType {
public static final int DAY=1;
public static final int WEEK=2;
public static final int MONTH=3;
public static final int THREEMONTH=4;
public static final int YEAR=5;
}
| apache-2.0 |
teddywest32/realm-java | realm/realm-library/src/androidTest/java/io/realm/IOSRealmTests.java | 9227 | /*
* Copyright 2015 Realm 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 in wr... | apache-2.0 |
rrezenes/ICarWash | src/java/br/icarwash/util/email/EmailAutenticacao.java | 232 | package br.icarwash.util.email;
public class EmailAutenticacao {
public static final String nome = "ICarWash";
public static final String email = "icarwash.br@gmail.com";
public static final String senha = "qwerty111232";
}
| apache-2.0 |
wenzhucjy/tomcat_source | tomcat-8.0.9-sourcecode/java/org/apache/catalina/users/AbstractRole.java | 2941 | /*
* 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 |
jexp/idea2 | java/java-impl/src/com/intellij/psi/impl/source/PsiClassInitializerImpl.java | 3158 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 |
kzganesan/libgdx | backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/org/jbox2d/dynamics/joints/RevoluteJointDef.java | 4797 | /*******************************************************************************
* Copyright (c) 2013, Daniel Murphy
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* * Redistributions of ... | apache-2.0 |
pickettd/code-dot-org | dashboard/app/controllers/plc/enrollment_evaluations_controller.rb | 1179 | class Plc::EnrollmentEvaluationsController < ApplicationController
def perform_evaluation
authorize! :read, Plc::UserCourseEnrollment
plc_unit_assignment = Plc::EnrollmentUnitAssignment.find(params[:unit_assignment_id])
if plc_unit_assignment.status != Plc::EnrollmentUnitAssignment::PENDING_EVALUATION
... | apache-2.0 |
Khalith-Basha/demo | src/main/scala/code/snippet/AuthOps.scala | 1611 | /*
Copyright 2012 Denis Bardadym
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 |
DiceHoldingsInc/orientdb | core/src/main/java/com/orientechnologies/orient/core/engine/OEngineAbstract.java | 1326 | /*
*
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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:/... | apache-2.0 |
apache/activemq-openwire | openwire-legacy/src/main/java/org/apache/activemq/openwire/codec/v8/MessageDispatchNotificationMarshaller.java | 5822 | /**
* 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 |
OpenPOWER-BigData/HDP-falcon | webapp/src/test/java/org/apache/falcon/catalog/CatalogPartitionHandlerIT.java | 2855 | /**
* 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 |
ltm0203/YoYoCms | src/YoYo.Cms.Web/libs/i18n/angular-locale_bg-bg.js | 3766 | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u043f\u0440.\u043e\u0431.",
"\u0441\u043b.\u043e\u0431.... | apache-2.0 |
AI-Cloud/H-Viewer | app/src/main/java/ml/puredark/hviewer/ui/activities/LockActivity.java | 11338 | package ml.puredark.hviewer.ui.activities;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup;
import androi... | apache-2.0 |
cgtz/ambry | ambry-api/src/main/java/com/github/ambry/messageformat/BlobInfo.java | 2133 | /**
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
BLangendorf/killbill-adyen-plugin | src/main/java/org/killbill/billing/plugin/adyen/client/notification/AdyenNotificationService.java | 10649 | /*
* Copyright 2014 Groupon, Inc
*
* Groupon 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 required by a... | apache-2.0 |
rancher/k3s | vendor/github.com/containerd/containerd/cmd/ctr/commands/run/run.go | 5543 | /*
Copyright The containerd 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... | apache-2.0 |
WgStreamsets/datacollector | container-common/src/main/java/com/streamsets/datacollector/metrics/MetricsModule.java | 1901 | /**
* Copyright 2015 StreamSets Inc.
*
* Licensed under 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 Lice... | apache-2.0 |
fitermay/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/WholeFileLocalInspectionsPassFactory.java | 5718 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 |
bob48523/modified_wrn | attic/numcheck-grads.py | 2439 | #!/usr/bin/env python3
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
import numdifftools as nd
torch.manual_seed(0)
cuda = True
class FcCat(nn.Module):
def __init__(self, nIn, nOut):
super(FcCat, se... | apache-2.0 |
lz84/bachelor | bachelor-auth/bachelor-scaffold/src/main/java/cn/org/bachelor/common/auth/domain/Menu.java | 3950 | package cn.org.bachelor.common.auth.domain;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Table(name = "cmn_auth_menu")
public class Menu {
/**
* ID
*/
@Id
@Column(name = "ID")
private String id;
/**
* 菜单名称
... | apache-2.0 |
benbek/HereAStory-Android | android-maps-extensions-2.1.0/android-maps-extensions-2.1.0/src/com/androidmapsextensions/AnimationSettings.java | 2122 | /*
* Copyright (C) 2013 Maciej Górski
*
* 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 |
viphxin/xingo | timer/timer.go | 993 | package timer
import (
"time"
"reflect"
"fmt"
"github.com/viphxin/xingo/logger"
)
type DelayCall struct {
f func(v ...interface{})
args []interface{}
}
func (this *DelayCall)Call(){
defer func(){
if err := recover(); err != nil{
logger.Error(this.String(), "Call Error: ", err)
}
}()
this.f(this.args... | apache-2.0 |
odf/gavrog | src/buoy/widget/Shortcut.java | 4273 | package buoy.widget;
import buoy.xml.*;
import buoy.xml.delegate.*;
import java.awt.*;
import javax.swing.*;
/**
* A Shortcut represents a keyboard shortcut that can be used for activating a menu item. It consists of a
* particular key that must be pressed, plus a set of modifier keys.
* <p>
* Every platform has... | apache-2.0 |
fishjord/gsutil | gslib/addlhelp/crc32c.py | 5319 | # -*- coding: utf-8 -*-
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | apache-2.0 |
MrChen2015/arcgis-samples-silverlight | src/ArcGISSilverlightSDK/Locator/BatchGeocoding.xaml.cs | 5130 | using System.Windows.Controls;
using ESRI.ArcGIS.Client.Tasks;
using System.Collections.Generic;
using System.Windows;
using ESRI.ArcGIS.Client;
using System.Linq;
using System.Collections.ObjectModel;
using System;
using ESRI.ArcGIS.Client.Geometry;
namespace ArcGISSilverlightSDK
{
public partial class BatchGeo... | apache-2.0 |
Sivaramvt/Slice | slice-core/src/main/java/com/cognifide/slice/core/internal/scanner/BundleClassesFinder.java | 4701 | /*-
* #%L
* Slice - Core
* %%
* Copyright (C) 2012 Cognifide Limited
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | apache-2.0 |
ServiceComb/java-chassis | core/src/main/java/org/apache/servicecomb/core/ProducerProvider.java | 1021 | /*
* 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 |
astopy/Panoptes | spec/workers/workflow_content_data_mailer_worker_spec.rb | 574 | require "spec_helper"
RSpec.describe WorkflowContentDataMailerWorker do
let(:project) { create(:project) }
let(:s3_url) { "https://fake.s3.url.example.com" }
it 'should deliver the mail' do
expect{ subject.perform(project.id, "project", s3_url, ["zach@zooniverse.org"]) }.to change{ ActionMailer::Base.delive... | apache-2.0 |
meteorcloudy/bazel | src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSetBuilder.java | 10525 | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | apache-2.0 |
fran8ctba/Biblioteca | Demo/DemoCRUD-master/DemoCRUD/Models/AccountViewModels.cs | 3109 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace DemoCRUD.Models
{
public class ExternalLoginConfirmationViewModel
{
[Required]
[Display(Name = "Email")]
public string Email { get; set; }
}
public class ExternalLoginListViewModel
{
... | apache-2.0 |
jbarlow83/tesseract | src/dict/dawg.cpp | 13735 | /* -*-C-*-
********************************************************************************
*
* File: dawg.cpp (Formerly dawg.c)
* Description: Use a Directed Acyclic Word Graph
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache Li... | apache-2.0 |
ianngiaw/HubTurbo | src/main/java/ui/listpanel/ListPanel.java | 12411 | package ui.listpanel;
import backend.interfaces.IModel;
import backend.resource.TurboIssue;
import filter.expression.Qualifier;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.Priority;
import ui.UI;
import ui.components.IssueListView;
import ui.components.KeyboardShortcuts;
import ui.issuepanel.FilterP... | apache-2.0 |
guardian/swarmize | swarmize-dot-com/db/migrate/20140814173018_create_swarm_fields.rb | 483 | class CreateSwarmFields < ActiveRecord::Migration
def change
create_table :swarm_fields do |t|
t.integer :field_index
t.string :field_type
t.string :field_name
t.string :field_code
t.text :hint
t.string :sample_value
t.boolean :compulsory, :default => false
t.text :... | apache-2.0 |
sunxiaoyang/Algorithm | leetcode/_50_Pow_x_n.java | 542 | /**
* @author sunxiaoyang
*/
public class _50_Pow_x_n {
public double myPow(double x, int n) {
if (n == 0) return 1;
double res = 1, temp = x;
while (n != 1 && n != -1) {
if (n % 2 == 1 || n % 2 == -1)
res *= temp;
temp *= temp;
n /= 2;
... | apache-2.0 |
wvdd007/roslyn | src/EditorFeatures/CSharp/EditorConfigSettings/DataProvider/CodeStyle/CSharpCodeStyleSettingsProvider.cs | 16157 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeA... | apache-2.0 |
TechWritingWhiz/indy-node | indy_client/script_helper.py | 875 | import os
import shutil
from plenum.common.util import randomString
keepFilesInClientReset = [
'pool_transactions_sandbox',
'indy_config.py',
'sample',
'pool_transactions_local',
'pool_transactions_live'
]
def performIndyBaseDirCleanup(baseDir):
backupDir = None
while True:
backu... | apache-2.0 |
OSGeo-live/CesiumWidget | CesiumWidget/static/CesiumWidget/cesium/Build/CesiumUnminified/Workers/createEllipsoidOutlineGeometry.js | 474323 | /**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2015 Cesium Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | apache-2.0 |
archiecobbs/jsimpledb | permazen-vaadin/src/main/java/io/permazen/vaadin/Util.java | 1150 |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.vaadin;
import com.google.common.base.Preconditions;
import io.permazen.JClass;
import io.permazen.JField;
import java.util.SortedMap;
import java.util.TreeMap;
/**
* Utility routines.
*/
final class Util {
private Util(... | apache-2.0 |
yls871435707/CateMenu | CateMenu/app/src/main/java/com/example/administrator/catemenu/activity/WeekOrderActivity.java | 5768 | package com.example.administrator.catemenu.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget... | apache-2.0 |
aws/aws-sdk-cpp | aws-cpp-sdk-eventbridge/source/model/UpdateApiDestinationResult.cpp | 1569 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/eventbridge/model/UpdateApiDestinationResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#incl... | apache-2.0 |
maxifier/jira-maven-plugin | src/main/webservice/com/atlassian/jira/rpc/soap/client/RemoteFieldValue.java | 4255 | /**
* RemoteFieldValue.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.atlassian.jira.rpc.soap.client;
public class RemoteFieldValue implements java.io.Serializable {
private java.lang.String id;
private java.la... | apache-2.0 |
noxryan/Cheesebaron.MvxPlugins | ModernHttpClient/Console/Properties/AssemblyInfo.cs | 1390 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Co... | apache-2.0 |
saitodisse/azk-travis-mac | src/agent/configure.js | 9735 | import { _, t, os, Q, async, log, lazy_require } from 'azk';
import { config, set_config } from 'azk';
import { UIProxy } from 'azk/cli/ui';
import { OSNotSupported, DependencyError } from 'azk/utils/errors';
import { net } from 'azk/utils';
import Azk from 'azk';
var which = require('which'); // Search for com... | apache-2.0 |
VHAINNOVATIONS/Mental-Health-eScreening | escreening/src/main/java/gov/va/escreening/domain/BatteryDto.java | 1273 | package gov.va.escreening.domain;
import java.io.Serializable;
public class BatteryDto implements Comparable<BatteryDto>, Serializable {
private static final long serialVersionUID = 1L;
private Integer batteryId;
private String batteryName;
public Integer getBatteryId() {
return batteryId;
}
public void s... | apache-2.0 |
chriszeng87/HardwareEncodingTest | src/com/chris/android/grafika/gles/Drawable2d.java | 6538 | /*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 |
kumy/cgeo | main/src/cgeo/geocaching/maps/CGeoMap.java | 62012 | package cgeo.geocaching.maps;
import cgeo.geocaching.CacheListActivity;
import cgeo.geocaching.CompassActivity;
import cgeo.geocaching.R;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.activity.ActivityMixin;
import cgeo.geocaching.compatibility.Compatibility;
import cgeo.geocaching.connector.ConnectorFac... | apache-2.0 |
googleapis/google-cloud-ruby | google-cloud-bigtable/test/google/cloud/bigtable/project_test.rb | 819 | # Copyright 2018 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 writing, ... | apache-2.0 |
rickyHong/deeplearning4j-examples | src/main/java/org/deeplearning4j/rottentomatoes/data/train/fetcher/RottenTomatoesWordVectorDataFetcher.java | 3976 | package org.deeplearning4j.rottentomatoes.data.train.fetcher;
import org.deeplearning4j.datasets.fetchers.BaseDataFetcher;
import org.deeplearning4j.models.word2vec.Word2Vec;
import org.deeplearning4j.models.word2vec.wordstore.inmemory.InMemoryLookupCache;
import org.deeplearning4j.rottentomatoes.data.train.sentence... | apache-2.0 |
ilya-klyuchnikov/buck | src/com/facebook/buck/cli/TestSelectorOptions.java | 4299 | /*
* Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | apache-2.0 |
ngageoint/geowave | core/geotime/src/main/java/org/locationtech/geowave/core/geotime/index/SpatialOptions.java | 1092 | /**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | apache-2.0 |
blebougge/haogrgr-test | src/main/java/com/haogrgr/test/interceptor/ResponseBodyInterceptor.java | 597 | package com.haogrgr.test.interceptor;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
@Aspect
public class ResponseBodyInterceptor {
@Pointcut("execution(* com.haogrgr.test.control... | apache-2.0 |
tempbottle/Dryad | JobBrowser/UsefulForms/WarningBox.cs | 2044 |
/*
Copyright (c) Microsoft Corporation
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
THIS CODE IS PROVIDED *AS IS* BASIS, ... | apache-2.0 |
codemercenary/autowiring | contrib/autoboost/autoboost/range/functions.hpp | 716 | // Boost.Range library
//
// Copyright Thorsten Ottosen 2003-2006. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// For more information, see http://www.boost.org/libs/rang... | apache-2.0 |
HonzaKral/elasticsearch | client/rest-high-level/src/test/java/org/elasticsearch/client/IndicesClientIT.java | 92797 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | apache-2.0 |
dtroyer/python-openstacksdk | openstack/dns/v2/_base.py | 4414 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 |
jonvestal/open-kilda | src-java/base-topology/base-storm-topology/src/main/java/org/openkilda/wfm/AbstractOutputAdapter.java | 1491 | /* Copyright 2018 Telstra Open Source
*
* 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 |
racker/omnibus | source/ruby-1.9.2-p180/test/rubygems/test_gem_commands_generate_index_command.rb | 3476 | require_relative 'gemutilities'
require 'rubygems/indexer'
require 'rubygems/commands/generate_index_command'
class TestGemCommandsGenerateIndexCommand < RubyGemTestCase
def setup
super
@cmd = Gem::Commands::GenerateIndexCommand.new
@cmd.options[:directory] = @gemhome
end
def test_execute
use_... | apache-2.0 |
alexander-bzikadze/University-taskes | Semester_1/7.4/main.cpp | 132 | #include "reader.h"
int main()
{
Reader run = Reader();
run.read();
run.fillStacks();
run.result();
return 0;
} | apache-2.0 |
jSilverize/rastros | tasks/clean.js | 211 | 'use strict';
const gulp = require('gulp'),
del = require('del'),
SRC = './dist/**';
/**
* Delete dist folder
*/
gulp.task('clean:dist', () => {
return del.sync(SRC, { force: true });
});
| apache-2.0 |
luci/luci-go | gae/impl/memory/memstore_tracing_utils.go | 5816 | // Copyright 2015 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | apache-2.0 |
aws/aws-sdk-go | service/transfer/service.go | 3525 | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package transfer
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/... | apache-2.0 |
mrolafsson/javaHTML | src/main/java/twigkit/html/attr/Attribute.java | 5382 | /*
* TwigKit
*
* Copyright (c) twigkit.com 2012
*
* NOTICE: All information contained herein is, and remains the property
* of TwigKit and its suppliers, if any.
* The intellectual and technical concepts contained herein are PROPRIETARY
* to TwigKit and its suppliers and may be covered by U.S. and Foreign Paten... | apache-2.0 |
manovotn/core | tests-arquillian/src/test/java/org/jboss/weld/tests/proxy/client/optimization/dependent/FooRequest.java | 1133 | /*
* JBoss, Home of Professional Open Source
* Copyright 2014, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | apache-2.0 |
nivance/renren-security-boot | src/main/java/io/renren/entity/ScheduleJobLogEntity.java | 1915 | package io.renren.entity;
import java.io.Serializable;
import java.util.Date;
/**
* 定时执行日志
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2016年12月1日 下午10:26:18
*/
public class ScheduleJobLogEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 日志id
*/
priva... | apache-2.0 |
Rikkola/drools | drools-compiler/src/main/java/org/drools/compiler/reteoo/compiled/ObjectTypeNodeCompiler.java | 11799 | /*
* Copyright 2015 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | apache-2.0 |
stevenmarn/floridaLivestock | steps/b/server.js | 1423 | import {database} from './database';
export class Server {
newNote() {
return {
title: 'New Note',
body: '',
notebookId: database.notebooks[0].id
};
}
hasChanged(a, b) {
return a.title !== b.title || a.body !== b.body || a.notebookId !== b.notebookId;
}
getNoteList(filter) {
... | apache-2.0 |
tkao1000/pinot | pinot-core/src/main/java/com/linkedin/pinot/core/operator/docidsets/SortedDocIdSet.java | 2573 | /**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.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
*
* Unle... | apache-2.0 |
b-cuts/transfuse | transfuse-core/src/main/java/org/androidtransfuse/analysis/module/BindProcessor.java | 2802 | /**
* Copyright 2011-2015 John Ericksen
*
* 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 |
gorlux/Amazon-mws-nodejs-sdk | lib/recommendations.js | 3257 | /**
* Recommendaions API requests and definitions for Amazon's MWS web services.
* For information on using, please see examples folder.
*
* @author MP
*/
var mws = require('./mws');
var _ = require('underscore');
module.exports = {
/**
* @absract Returns the operational status of the Recommendations A... | apache-2.0 |
MeRPG2/EndHQ-Libraries | src/net/endhq/remoteentities/api/thinking/goals/DesireMoveTowardsRestriction.java | 1613 | package net.endhq.remoteentities.api.thinking.goals;
import net.endhq.remoteentities.api.RemoteEntity;
import net.endhq.remoteentities.api.thinking.DesireBase;
import net.endhq.remoteentities.api.thinking.DesireType;
import net.endhq.remoteentities.nms.RandomPositionGenerator;
import net.endhq.remoteentities.utilities... | apache-2.0 |
Tei1988/google-api-ads-ruby | dfp_api/lib/dfp_api/v201411/publisher_query_language_service.rb | 1064 | # Encoding: utf-8
#
# This is auto-generated code, changes will be overwritten.
#
# Copyright:: Copyright 2015, Google Inc. All Rights Reserved.
# License:: Licensed under the Apache License, Version 2.0.
#
# Code generated by AdsCommon library 0.11.2 on 2015-11-18 12:14:00.
require 'ads_common/savon_service'
require ... | apache-2.0 |
leapmotion/autowiring | contrib/autoboost/autoboost/preprocessor/punctuation/comma_if.hpp | 1088 | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... | apache-2.0 |
Wogan/monix | monix-reactive/shared/src/test/scala/monix/reactive/internal/operators/ScanEffectSuite.scala | 2712 | /*
* Copyright (c) 2014-2018 by The Monix Project Developers.
* See the project homepage at: https://monix.io
*
* 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... | apache-2.0 |
diorcety/intellij-community | platform/vcs-impl/src/com/intellij/openapi/vcs/actions/VcsContextWrapper.java | 6083 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 |
rancher/cattle | code/framework/resource-monitor/src/main/java/io/cattle/platform/object/resource/ResourceMonitor.java | 541 | package io.cattle.platform.object.resource;
public interface ResourceMonitor {
/**
*
* @param obj
* @param timeout (milliseconds)
* @param predicate
* @return
*/
<T> T waitFor(T obj, long timeout, ResourcePredicate<T> predicate);
<T> T waitFor(T obj, ResourcePredicate<T> pre... | apache-2.0 |
engagepoint/camel | tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/jetty/OSGiMulitJettyCamelContextsTest.java | 4162 | /**
* 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 |
scnakandala/derby | java/engine/org/apache/derby/impl/sql/execute/AutoincrementCounter.java | 6219 | /*
Derby - Class org.apache.derby.impl.sql.execute.AutoincrementCounter
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... | apache-2.0 |
componavt/wikokit | common_wiki/src/wikokit/base/wikt/util/LangText.java | 975 | /* LangText.java - data structure consists of a language code and the corresponding text.
*
* Copyright (c) 2008 Andrew Krizhanovsky <andrew.krizhanovsky at gmail.com>
* Distributed under EPL/LGPL/GPL/AL/BSD multi-license.
*/
package wikokit.base.wikt.util;
import wikokit.base.wikipedia.language.LanguageType;
/... | apache-2.0 |
googleapis/google-api-php-client-services | src/Dataflow/WorkerShutdownNoticeResponse.php | 884 | <?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 |
skippbox/kmachine | libmachine/provision/suse.go | 6591 | package provision
import (
"bytes"
"fmt"
"text/template"
"github.com/docker/machine/libmachine/auth"
"github.com/docker/machine/libmachine/drivers"
"github.com/docker/machine/libmachine/engine"
"github.com/docker/machine/libmachine/log"
"github.com/docker/machine/libmachine/mcnutils"
"github.com/docker/machi... | apache-2.0 |
cloudera/sentry-solr-integration | sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java | 15288 | /**
* 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 |
l1204366/gcoin-community | src/wallet/db.cpp | 14781 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "addrman.h"
#include "hash.h"
#include "protocol.h"
#in... | apache-2.0 |
s1ck/gradoop | gradoop-examples/src/main/java/org/gradoop/benchmark/patternmatching/Queries.java | 5691 | /**
* Copyright © 2014 - 2017 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
*
* Unle... | apache-2.0 |