repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
texel-sensei/eversim | src/core/physics/constraints/distance_constraint.cpp | 974 | #include "core/physics/constraints/distance_constraint.h"
#include <istream>
#include "core/physics/body_template.h"
using namespace std;
namespace eversim { namespace core { namespace physics {
constraint_factory::data_container distance_constraint_factory::parse(std::istream& data) const
{
data.exceptions(istr... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-wellarchitected/src/main/java/com/amazonaws/services/wellarchitected/model/transform/LensUpgradeSummaryMarshaller.java | 3630 | /*
* 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 |
alibaba/nacos | example/src/main/java/com/alibaba/nacos/example/ConfigExample.java | 2392 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 |
sridevikoushik31/openstack | nova/tests/network/test_api.py | 10503 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Red Hat, 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/l... | apache-2.0 |
ispras/NetBlox | src/ru/ispras/modis/NetBlox/parser/basicParsersAndUtils/XMLStringValuesRangeProcessor.java | 1708 | package ru.ispras.modis.NetBlox.parser.basicParsersAndUtils;
import java.util.LinkedList;
import java.util.List;
import org.xml.sax.Attributes;
import ru.ispras.modis.NetBlox.exceptions.ScenarioException;
import ru.ispras.modis.NetBlox.parser.xmlParser.ParserContext;
import ru.ispras.modis.NetBlox.parser.xmlParser.X... | apache-2.0 |
yingzhuo/captcha4j | src/main/java/ref/com/jhlabs/image/WaterFilter.java | 4684 | /*
Copyright 2006 Jerry Huxtable
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
d... | apache-2.0 |
zackp30/crateincinerator | ruby/unicorn.rb | 19 | worker_processes 5
| apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-iotfleethub/src/main/java/com/amazonaws/services/iotfleethub/model/transform/ListTagsForResourceRequestMarshaller.java | 2068 | /*
* 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 |
abutun/kabman | KabMan Application/Kabman/Import/GridCellValueErrorStates.cs | 169 |
namespace KabMan
{
public enum GridCellValueErrorStates
{
None,
Error,
Warning,
Null,
Empty,
Invalid
}
}
| apache-2.0 |
JuergenWeichand/downloadclient | src/main/java/de/bayern/gdi/services/CatalogService.java | 17911 | /*
* DownloadClient Geodateninfrastruktur Bayern
*
* (c) 2016 GSt. GDI-BY (gdi.bayern.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/LICE... | apache-2.0 |
hortonworks/cloudbreak | template-manager-core/src/main/java/com/sequenceiq/cloudbreak/template/filesystem/gcs/GcsFileSystemConfigurationsView.java | 1137 | package com.sequenceiq.cloudbreak.template.filesystem.gcs;
import java.util.Collection;
import com.sequenceiq.cloudbreak.template.filesystem.BaseFileSystemConfigurationsView;
import com.sequenceiq.cloudbreak.template.filesystem.StorageLocationView;
import com.sequenceiq.common.model.FileSystemType;
import com.sequenc... | apache-2.0 |
litiebiao2012/pacific | pacific-common/src/main/java/com/pacific/common/web/CsrfInterceptor.java | 1862 | package com.pacific.common.web;
import com.pacific.common.web.xuser.XUserSession;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import ... | apache-2.0 |
rwinch/spring-security-oauth | spring-security-oauth2/src/main/java/org/springframework/security/oauth2/common/exceptions/OAuth2Exception.java | 5574 | package org.springframework.security.oauth2.common.exceptions;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;
/**
* Base exception for OAuth 2 exceptions.
*
* @author Ryan Heat... | apache-2.0 |
trungnv84/do-an | administrator/components/com_do_an_tot_nghiep/controllers/danh_sach_giao_vien.php | 1435 | <?php
/**
* @version 1.0.0
* @package com_do_an_tot_nghiep
* @copyright Copyright (C) 2014. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author NVHoang <hoang_hoang55@yahoo.com> - http://hoangtrung.org
*/
// No direct access.
defined('_JEXEC... | apache-2.0 |
Somoaudience/Prebid.js | test/spec/modules/madvertiseBidAdapter_spec.js | 6253 | import {expect} from 'chai';
import {config} from 'src/config';
import * as utils from 'src/utils';
import {spec} from 'modules/madvertiseBidAdapter';
describe('madvertise adapater', () => {
describe('Test validate req', () => {
it('should accept minimum valid bid', () => {
let bid = {
bidder: 'mad... | apache-2.0 |
alexsnaps/ehcache3 | clustered/client/src/main/java/org/ehcache/clustered/client/internal/config/xml/ClusteringCacheManagerServiceConfigurationParser.java | 22089 | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
MobileManAG/Project-H-Backend | src/main/java/com/mobileman/projecth/domain/util/questionary/MorbusBechterewQuestionaryUtil.java | 2019 | /*******************************************************************************
* Copyright 2015 MobileMan GmbH
* www.mobileman.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
* ... | apache-2.0 |
kebernet/erigo | client-framework/src/test/java/net/kebernet/configuration/client/impl/MulticastDNSDevicesTest.java | 2766 | /*
* Copyright (c) 2017 Robert Cooper
*
* 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 |
XLabs/xlabs.github.io | html/class_x_labs_1_1_forms_1_1_validation_1_1_property_setter.js | 859 | var class_x_labs_1_1_forms_1_1_validation_1_1_property_setter =
[
[ "InvalidValueProperty", "class_x_labs_1_1_forms_1_1_validation_1_1_property_setter.html#ad5b507b1b8b569f3d7eeb24a1288f758", null ],
[ "PropertyProperty", "class_x_labs_1_1_forms_1_1_validation_1_1_property_setter.html#a6325f26c5daa2fc8373095edf... | apache-2.0 |
S-Callier/serialization | src/main/java/sebastien/callier/serialization/codec/extendable/object/field/FieldCodec.java | 1434 | /*
* Copyright 2017 Sebastien Callier
*
* 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 |
cloudfoundry/cf-java-client | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/domains/Domains.java | 3147 | /*
* Copyright 2013-2021 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 ap... | apache-2.0 |
iQuick/NewsMe | videoplaysdk/src/main/java/com/sina/sinavideo/sdk/utils/VDResolutionManager.java | 6103 | package com.sina.sinavideo.sdk.utils;
import java.util.List;
import com.sina.sinavideo.sdk.data.VDResolutionData;
import com.sina.sinavideo.sdk.data.VDResolutionData.VDResolution;
import android.annotation.SuppressLint;
import android.content.Context;
/**
* 清晰度部分逻辑太复杂,单独做了一个类出来处理<br />
* <br />
* 清晰度方案1:用户方式<br ... | apache-2.0 |
anpho/one | 3.0/one3/platforms/blackberry10/www/plugins/com.blackberry.invoke.card/www/client.js | 7339 | cordova.define("com.blackberry.invoke.card.client", function(require, exports, module) { /*
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 t... | apache-2.0 |
Deepaksoftvision/GPC_POC | src/test/java/pageObjects/modules/GMailPageObjects.java | 818 | /**
*
*/
package pageObjects.modules;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import pageObjects.initializePageObjects.PageFactoryInitializer;
import ru.yandex.qatools.allure.annotations.Step;
import utils.RandomGenerator;
/**
* @author Gladson Antony
* @date Sep 17, 20... | apache-2.0 |
LQJJ/demo | 126-go-common-master/app/interface/main/ugcpay-rank/internal/server/http/elec.go | 2048 | package http
import (
"net/http"
api "go-common/app/interface/main/ugcpay-rank/api/http"
"go-common/app/interface/main/ugcpay-rank/internal/conf"
bm "go-common/library/net/http/blademaster"
"github.com/json-iterator/go"
)
const (
_contentTypeJSON = "application/json; charset=utf-8"
)
func elecMonthUP(ctx *bm... | apache-2.0 |
alexbonavila/LaravelMarketInformation | app/Http/Transformers/Transformer.php | 425 | <?php
namespace App\Http\Transformers;
/**
* Class Transformer
* @package App\Http\Transformers
*/
abstract class Transformer
{
/**
* @param array $items
* @return array
*/
public function transformCollection(array $items)
{
return array_map([$this, 'transform'], $items);
}
... | apache-2.0 |
spark3dp/webapp-samples | plugins/login/login.js | 884 |
/**
* Run when DOM is ready.
* The spark object already exists in this point
*/
jQuery(function ($) {
//First let's see if we have a valid access token
if (ADSKSpark.Client.isAccessTokenValid()) {
$('#auth-iframe-wrapper').hide();
$('.logged-out-container').hide();
$('.logged-in-container').show();
} el... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/MultipleIamArnsProvidedException.java | 1300 | /*
* 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 |
AlexanderZf44/APermyakov | chapter_005/src/main/java/ru/apermyakov/testtask/Parser.java | 1620 | package ru.apermyakov.testtask;
/**
* Class for parsing string to order.
*
* @author apermyakov
* @version 1.0
* @since 13.11.2017
*/
public class Parser {
/**
* Method for parsing string to string array.
*
* @param text insert test
* @return string array
*/
private String[] par... | apache-2.0 |
uusa35/tickets | app/Http/Requests/CreateTicket.php | 1496 | <?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
use App\Ticket;
use Illuminate\Support\Facades\Auth;
use Intervention\Image\Facades\Image;
class CreateTicket extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public func... | apache-2.0 |
liuyunlong1229/source-code | springboot-integration/src/main/java/org/springboot/integration/filter/TokenSource.java | 299 | package org.springboot.integration.filter;
/**
* Created by Administrator on 2017/7/16.
*/
/**
* REQUEST 表示从参数列表,HttpServletRequest中构造token
* FILED 表示从参数列表中构造token,此时必须指定参数名称
*/
public enum TokenSource {
REQUEST,FILED
}
| apache-2.0 |
Esri/arcgis-samples-winphone | src/ArcGISWindowsPhoneSDK/Samples/Address/LocationToAddress.xaml.cs | 2309 | using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Symbols;
using ESRI.ArcGIS.Client.Tasks;
using Microsoft.Phone.Controls;
namespace ArcGISWindowsPhoneSDK.Samples
{
public partial class L... | apache-2.0 |
HPI-Hackathon/automatch | api/models/User.js | 2968 | /**
* User.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
var request = require('request');
var bcrypt = require('bcrypt');
module.exports = {
attributes: {
name: 'STRING',
ema... | apache-2.0 |
strapdata/elassandra5-rc | core/src/main/java/org/elasticsearch/index/mapper/LegacyLongFieldMapper.java | 13361 | /*
* 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 |
sabob/jock | rivets-examples/src/js/lib/spar/ractive/create.js | 626 | define(function (require) {
var $ = require("jquery");
function create(options) {
var that = {};
var ractiveFn = options.ractiveFn;
var ractive = new ractiveFn({
el: options.target,
oncomplete: function () {
console.log("oncomplete");
... | apache-2.0 |
amplab/succinct | core/src/main/java/edu/berkeley/cs/succinct/util/SuccinctConfiguration.java | 1108 | package edu.berkeley.cs.succinct.util;
public class SuccinctConfiguration {
private int saSamplingRate;
private int isaSamplingRate;
private int npaSamplingRate;
public SuccinctConfiguration(int saSamplingRate, int isaSamplingRate, int npaSamplingRate) {
this.saSamplingRate = saSamplingRate;
this.isa... | apache-2.0 |
jarvan4dev/nodejs-crawler | service/async-test.js | 595 | /**
* Created by jarvan4dev on 2017/2/28.
*/
var async = require('async');
var arr = [{name:'Jack', delay: 20000},
{name:'Mike', delay: 10000},
{name:'Freewind', delay: 30000}];
/**
* 所有操作并发执行,且全部未出错,最终得到的err为undefined。注意最终callback只有一个参数err。
*/
// 1.1
async.each(arr, function(item, callback) {
console... | apache-2.0 |
mikkokar/styx | components/proxy/src/main/java/com/hotels/styx/routing/interceptors/RewriteInterceptor.java | 2832 | /*
Copyright (C) 2013-2019 Expedia 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 wri... | apache-2.0 |
mindie/Cindy | src/main/java/co/mindie/cindy/hibernate/criterions/FulltextSearch.java | 2589 | /////////////////////////////////////////////////
// Project : WSFramework
// Package : co.mindie.wsframework.criterions
// FulltextSearch.java
//
// Author : Simon CORSIN <simoncorsin@gmail.com>
// File created on Mar 26, 2014 at 5:57:57 PM
////////
package co.mindie.cindy.hibernate.criterions;
import org.hibernate.... | apache-2.0 |
JetstormEnterprise/pkmn | PknTry/src/Jetstorm/Enterprise/Entities/Pokemon/Drowzee.java | 960 | package Jetstorm.Enterprise.Entities.Pokemon;
public class Drowzee extends Pokemon {
public Drowzee(int startingLevel) {
species = "DROWZEE";
nickname = "DROWZEE";
typeOne = 13; // psychic
typeTwo = 18; // none
pkmNumber = 96;
abilityOne = 1; // insomnia or forewarn
hiddenAbility = 1; // i... | apache-2.0 |
tlong2/amphtml | extensions/amp-analytics/0.1/vendors.js | 13472 | /**
* Copyright 2015 The AMP HTML 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 require... | apache-2.0 |
markymarkmk2/VSMServer | src/de/dimm/vsm/preview/RecursiveRenderJob.java | 7645 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.dimm.vsm.preview;
import de.dimm.vsm.Exceptions.PathResolveException;
import de.dimm.vsm.GeneralPreferences;
import de.dimm.vsm.Main;
import de.dimm.vsm.auth.User;
import de.dimm.vsm.fsengine.Storag... | apache-2.0 |
NessComputing/components-ness-sequencer | src/main/java/com/nesscomputing/sequencer/ImmutableSequencerImpl.java | 3981 | /**
* Copyright (C) 2012 Ness Computing, 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 |
Fabric3/spring-samples | apps/bigbank/bigbank-loan/src/main/java/org/fabric3/samples/bigbank/services/risk/RiskRequest.java | 1520 | /*
* See the NOTICE file distributed with this work for information
* regarding copyright ownership. This file is licensed
* 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://ww... | apache-2.0 |
StellarCN/py-stellar-base | stellar_sdk/call_builder/base/base_transactions_call_builder.py | 3729 | from typing import Union
from ...call_builder.base.base_call_builder import BaseCallBuilder
from ...type_checked import type_checked
__all__ = ["BaseTransactionsCallBuilder"]
@type_checked
class BaseTransactionsCallBuilder(BaseCallBuilder):
"""Creates a new :class:`TransactionsCallBuilder` pointed to server def... | apache-2.0 |
firebase/snippets-web | auth-next/manage.js | 4347 | // [SNIPPET_REGISTRY disabled]
// [SNIPPETS_SEPARATION enabled]
function getUserProfile() {
// [START auth_get_user_profile]
const { getAuth } = require("firebase/auth");
const auth = getAuth();
const user = auth.currentUser;
if (user !== null) {
// The user object has basic properties such as display n... | apache-2.0 |
ThiagoGarciaAlves/intellij-community | platform/platform-impl/src/com/intellij/openapi/options/newEditor/SettingsTreeView.java | 32766 | /*
* 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 |
stdlib-js/stdlib | lib/node_modules/@stdlib/streams/node/from-constant/test/test.object_mode.js | 3866 | /**
* @license Apache-2.0
*
* Copyright (c) 2018 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 a... | apache-2.0 |
CarstenHollmann/iceland | core/src/main/java/org/n52/iceland/i18n/I18NDAORepository.java | 2591 | /*
* Copyright 2015-2018 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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 |
jasper07/md-template | test/unit/util/groupers.js | 2899 | /*global QUnit, jQuery *///declare unusual global vars for JSLint/SAPUI5 validation
sap.ui.require(
[
'sap/ui/demo/mdtemplate/util/groupers',
'sap/ui/model/resource/ResourceModel',
'sap/ui/thirdparty/sinon',
'sap/ui/thirdparty/sinon-qunit'
],
function (Groupers, ResourceModel) {
"use strict";
var $ = jQuer... | apache-2.0 |
kaushikgopal/CountdownApp | CountdownAppModule/src/main/java/com/cmuse13/countdownapp/countdownmodule/activities/MainActivity.java | 4064 | package com.cmuse13.countdownapp.countdownmodule.activities;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.cmuse13.coun... | apache-2.0 |
jonny-novikov/google-gdata | src/unittests/core/GDataLoggingRequestFactoryTest.cs | 3598 | using NUnit.Framework;
namespace Google.GData.Client.UnitTests.Core
{
/// <summary>
///This is a test class for GDataLoggingRequestFactoryTest and is intended
///to contain all GDataLoggingRequestFactoryTest Unit Tests
///</summary>
[TestFixture]
[Category("CoreClient")]
public class GDat... | apache-2.0 |
eberhardmayer/taskana | rest/src/main/java/org/taskana/rest/security/RoleGranterFromMap.java | 582 | package org.taskana.rest.security;
import java.security.Principal;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.springframework.security.authentication.jaas.AuthorityGranter;
public class RoleGranterFromMap implements AuthorityGranter {
private stat... | apache-2.0 |
iLib-js/iLib | tools/cldr/gencurrencies.js | 7258 | /*
* gencurrencies.js - ilib tool to generate the json data about currency
* the CLDR data files
*
* Copyright © 2016, 2018-2020, JEDLSoft
*
* 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... | apache-2.0 |
lcmanager/gdb | gdb-web-control/src/main/resources/public/js/bootstrap-dialog.js | 46537 | /* global define */
/* ================================================
* Make use of Bootstrap's modal more monkey-friendly.
*
* For Bootstrap 3.
*
* javanoob@hotmail.com
*
* https://github.com/nakupanda/bootstrap3-dialog
*
* Licensed under The MIT License.
* ================================================... | apache-2.0 |
daxslab/daxSmail | src/com/daxslab/mail/activity/EmailAddressList.java | 1692 | package com.daxslab.mail.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;
import com.da... | apache-2.0 |
Qinger315/Word | app/src/main/java/com/qing/android/word/Decoration/IndexBar/Helper/IndexBarDataHelperImpl.java | 5285 | package com.qing.android.word.Decoration.IndexBar.Helper;
/**
* Created by qing on 2017/6/7.
*/
import com.github.promeg.pinyinhelper.Pinyin;
import com.qing.android.word.Decoration.IndexBar.Bean.BaseIndexPinyinBean;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
/**
*... | apache-2.0 |
bojanv55/AxonFramework | spring/src/test/java/org/axonframework/spring/commandhandling/distributed/jgroups/JGroupsConnectorFactoryBeanTest.java | 7854 | /*
* Copyright (c) 2010-2016. Axon Framework
*
* 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 |
drogba1192/pk_2016 | src/main/java/dao/jdbc/package-info.java | 107 | /**
* A csomag tartalmazza az adatbázis reprezentációhoz szükséges osztályt.
*/
package dao.jdbc;
| apache-2.0 |
meggermo/jackrabbit-oak | oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/DebugSegments.java | 7126 | /*
* 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 |
documents4j/documents4j | documents4j-transformer-msoffice/documents4j-transformer-msoffice-powerpoint/src/main/java/com/documents4j/conversion/msoffice/MicrosoftPowerpointScript.java | 2288 | package com.documents4j.conversion.msoffice;
import com.documents4j.throwables.FileSystemInteractionException;
import com.google.common.base.MoreObjects;
import com.google.common.io.Files;
import com.google.common.io.Resources;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.... | apache-2.0 |
b002368/chef-repo | chef-config/spec/unit/workstation_config_loader_spec.rb | 12310 | #
# Author:: Daniel DeLeo (<dan@chef.io>)
# Copyright:: Copyright 2014-2016, Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# 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 |
kjvarga/google-api-ads-ruby | dfp_api/examples/v201611/company_service/create_companies.rb | 2334 | #!/usr/bin/env ruby
# Encoding: utf-8
#
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
#
# License:: 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 |
vdmeer/skb-java-interfaces | src/main/java/de/vandermeer/skb/interfaces/transformers/textformat/TextAlignment.java | 2034 | /* Copyright 2017 Sven van der Meer <vdmeer.sven@mykolab.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 r... | apache-2.0 |
CMPUT301W14T08/GeoChan | GeoChan/src/ca/ualberta/cmput301w14t08/geochan/runnables/GetImageRunnable.java | 3176 | /*
* Copyright 2014 Artem Chikin
* Copyright 2014 Artem Herasymchuk
* Copyright 2014 Tom Krywitsky
* Copyright 2014 Henry Pabst
* Copyright 2014 Bradley Simons
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ... | apache-2.0 |
cictourgune/MDP-Airbnb | httpcomponents-core-4.4/httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java | 27010 | /*
* ====================================================================
* 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 |
ity/pants | tests/java/org/pantsbuild/tools/junit/lib/AnnotationOverrideClass.java | 619 | // Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package org.pantsbuild.tools.junit.lib;
import org.pantsbuild.junit.annotations.TestParallel;
import org.pantsbuild.junit.annotations.TestParallelBoth;
import org.pantsbuild.junit.annot... | apache-2.0 |
google-research/google-research | uflow/misc/convert_video_to_dataset_test.py | 1658 | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | apache-2.0 |
openfoodfacts/OpenFoodFacts-androidApp | app/src/main/java/openfoodfacts/github/scrachx/openfood/utils/QuantityParserUtil.java | 3801 | package openfoodfacts.github.scrachx.openfood.utils;
import android.util.Log;
import android.widget.Spinner;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import org.apache.commons.lang.StringUtils;
public class QuantityParserUtil {
public enum EntryFor... | apache-2.0 |
tasa95/Sudoku | app/controllers/tableSudoku.js | 8724 | // Function to test if device is iOS 7 or later
function isIOS_Seven_Plus() {
// iOS-specific test
if (Titanium.Platform.name == 'iPhone OS') {
var version = Titanium.Platform.version.split(".");
var major = parseInt(version[0], 10);
// Can only test this support on a 3.2+ device
if (major >= 7) {
return t... | apache-2.0 |
davidwhitney/ReallySimpleDynamo | ReallySimpleDynamo.Test.Unit/CredentialDetection/CredentialFactory.cs | 1606 | using System;
using Moq;
using NUnit.Framework;
using ReallySimpleDynamo.CredentialDetection;
using ReallySimpleDynamo.CredentialDetection.Providers;
namespace ReallySimpleDynamo.Test.Unit.CredentialDetection
{
[TestFixture]
public class CredentialFactoryTests
{
[Test]
public void Ctor_NoP... | apache-2.0 |
tuddbresilience/coding_reliability | distance_distribution/legacy/Hamming/SSE_32.cpp | 800 | // Copyright 2017 Till Kolditz
//
// 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 |
GoogleCloudPlatform/dotnet-docs-samples | spanner/api/Spanner.Samples.Tests/UpdateUsingDmlWithStructCoreAsyncTest.cs | 1296 | // Copyright 2020 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 to in... | apache-2.0 |
Djang0/limba | cgi/dao/TypeDocumentDAO.php | 3745 | <?php
/**
* @package limba.dao
* @author Ludovic Reenaers
* @since 24 nov. 2010
*
* @link http://code.google.com/p/limba
*/
class TypeDocumentDAO extends DAO{
public function getById($id){
try
{
$id =StringHelper::escapeSql($id);
$query="select * from TYPE_DOCUMENT where id=$id;";
$statement=$this... | apache-2.0 |
yanzhenjie/Album | album/src/main/java/com/yanzhenjie/album/impl/OnCheckedClickListener.java | 961 | /*
* Copyright 2018 Yan Zhenjie.
*
* 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 |
shred/commons-suncalc | src/test/java/org/shredzone/commons/suncalc/util/VectorTest.java | 8772 | /*
* Shredzone Commons - suncalc
*
* Copyright (C) 2017 Richard "Shred" Körber
* http://commons.shredzone.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* This program is distributed in the hope that it will be usef... | apache-2.0 |
lucasvss/CallRangers | app/src/main/java/br/quixada/ufc/callrangers/util/UsuarioDes.java | 832 | package br.quixada.ufc.callrangers.util;
import com.google.gson.Gson;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import java.lang.reflect.Type;
import br.quixada.ufc.callrangers.model.Usuar... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/PutScalingPolicyResult.java | 4148 | /*
* 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 |
b002368/chef-repo | lib/chef/chef_fs/file_system/chef_server/nodes_dir.rb | 2016 | #
# Author:: John Keiser (<jkeiser@chef.io>)
# Copyright:: Copyright 2012-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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 ... | apache-2.0 |
mikegehard/lattice | ltc/test_helpers/matchers/contain_exactly_matcher_test.go | 3764 | package matchers_test
import (
"fmt"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/cloudfoundry-incubator/lattice/ltc/test_helpers/matchers"
)
type woohoo struct {
Flag bool
}
type woomap map[woohoo]string
var _ = Describe("ContainExactlyMatcher", func() {
It("matches if the array contai... | apache-2.0 |
tsavas/portfolio | 09_bio_time_lapse.php | 315 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>bio lapse</title>
<?php include("inc/htmlhead.php"); ?>
</head>
<body>
<?php include("inc/script.php"); ?>
<?php include("inc/header.php"); ?>
<?php include("inc/nav.php"); ?>
<?php include("inc/content09.php"); ?>
</body>
</html> | apache-2.0 |
vespa-engine/vespa | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/NodeMetricsDbMaintainer.java | 3338 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.provision.maintenance;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.jdisc.Metric;
import com.yahoo.lang.MutableInteger;
import com.yahoo.vespa.hosted.provision.No... | apache-2.0 |
noorq/casser | src/main/java/com/noorq/casser/mapping/javatype/SimpleJavaTypes.java | 1916 | /*
* Copyright (C) 2015 The Casser 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 app... | apache-2.0 |
yuri0x7c1/ofbiz-explorer | src/test/resources/apache-ofbiz-17.12.04/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ConfigXMLReader.java | 32881 | /*******************************************************************************
* 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... | apache-2.0 |
zhangleidaniejian/bluemmSite | src/main/java/cn/com/bluemoon/jeesite/modules/cms/entity/FileTpl.java | 2211 | package cn.com.bluemoon.jeesite.modules.cms.entity;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.Date;
/**
* User: songlai
* Date: 13-8-22
* Time: 上午9:44
*/
public class FileTpl {
private File file;
// 应用的根目录
... | apache-2.0 |
emory-libraries/eulcore-history | src/eulcore/django/fedora/models.py | 59 | # place-holder so django recognizes as an app & runs tests
| apache-2.0 |
J-Pi/pitch-it | pitch-it-ui/asset/lib/DrawApi.js | 1770 | /**
* Copyright 2016-2017, the creators of pitch-it
* 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 |
goxhaj/gastronomee | src/main/webapp/app/entities/location/location-delete-dialog.controller.js | 726 | (function() {
'use strict';
angular
.module('gastronomeeApp')
.controller('LocationDeleteController',LocationDeleteController);
LocationDeleteController.$inject = ['$uibModalInstance', 'entity', 'Location'];
function LocationDeleteController($uibModalInstance, entity, Location) {
... | apache-2.0 |
mttkay/RxJava | rxjava-core/src/main/java/rx/Observable.java | 449935 | /**
* Copyright 2014 Netflix, 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 |
cvandeplas/plaso | plaso/parsers/winevtx.py | 4809 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2013 The Plaso Project Authors.
# Please see the AUTHORS file for details on individual 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 L... | apache-2.0 |
HewlettPackard/oneview-sdk-ruby | spec/integration/resource/api200/event/create_spec.rb | 830 | # (C) Copyright 2017 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 |
whisher/angular-expresso-chat | server/config/env/development.js | 248 | 'use strict';
module.exports = {
db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/angular-expresso-chat-dev',
debug: true,
mongoose: {
debug: false
},
app: {
name: 'Angular Express - Mean stack'
}
};
| apache-2.0 |
vespa-engine/vespa | searchcore/src/tests/proton/documentdb/documentbucketmover/documentbucketmover_test.cpp | 23578 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "bucketmover_common.h"
#include <vespa/searchcore/proton/server/bucketmovejob.h>
#include <vespa/searchcore/proton/server/executor_thread_service.h>
#include <vespa/searchcore/proton/server/document_db_mai... | apache-2.0 |
mathews/orchastack-core | orchastack.core.security/orchastack.core.security.shiro.ext/src/main/java/orchastack/core/security/shiro/ext/Serializer.java | 817 | package orchastack.core.security.shiro.ext;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class Serializer {
public static byte[] serialize(Object msg) throws Exception {
if (msg == null)
return null;
Byt... | apache-2.0 |
lianying/asdf | src/main/java/com/taobao/api/response/TmallProductSpecPicUploadResponse.java | 665 | package com.taobao.api.response;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoResponse;
/**
* TOP API: tmall.product.spec.pic.upload response.
*
* @author auto create
* @since 1.0, null
*/
public class TmallProductSpecPicUploadResponse extends TaobaoResponse {
pr... | apache-2.0 |
matsprea/omim | indexer/indexer_tests/postcodes_tests.cpp | 1076 | #include "testing/testing.hpp"
#include "indexer/postcodes.hpp"
#include "coding/reader.hpp"
#include "coding/writer.hpp"
#include <cstdint>
#include <map>
#include <string>
using namespace indexer;
using namespace std;
using Buffer = vector<uint8_t>;
UNIT_TEST(Postcodes_Smoke)
{
map<uint32_t, string> const fea... | apache-2.0 |
CloudCredo/cloudrocker | Godeps/_workspace/src/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/archive.go | 30119 | package archive
import (
"archive/tar"
"bufio"
"bytes"
"compress/bzip2"
"compress/gzip"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"syscall"
"github.com/cloudcredo/cloudrocker/Godeps/_workspace/src/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/l... | apache-2.0 |
fungku/netsuite-php | src/Classes/TaxDetails.php | 1445 | <?php
/**
* This file is part of the SevenShores/NetSuite library
* AND originally from the NetSuite PHP Toolkit.
*
* New content:
* @package ryanwinchester/netsuite-php
* @copyright Copyright (c) Ryan Winchester
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @link https://githu... | apache-2.0 |
m3db/m3cluster | etcd/watchmanager/manager.go | 5176 | // Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | apache-2.0 |
epfl-lara/stainless | frontends/library/stainless/proof/Internal.scala | 1754 | /* Copyright 2009-2021 EPFL, Lausanne */
package stainless.proof
import stainless.lang._
import stainless.annotation._
import stainless.lang.StaticChecks._
/** Internal helper classes and methods for the 'proof' package. */
object Internal {
/*** Helper classes for relational reasoning ***/
@library
case clas... | apache-2.0 |