repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
puppetlabs/pxp-agent | lib/tests/unit/modules/command_test.cc | 7211 | #include <catch.hpp>
#include "root_path.hpp"
#include "../../common/content_format.hpp"
#include <boost/algorithm/string.hpp>
#include <leatherman/execution/execution.hpp>
#include <leatherman/util/scope_exit.hpp>
#include <leatherman/file_util/file.hpp>
#include <pxp-agent/configuration.hpp>
#include <pxp-agent/mo... | apache-2.0 |
tngraf/Tethys.Silverlight | Tethys.Silverlight.WPF/Support/DialogHelper.cs | 12465 | #region Header
// --------------------------------------------------------------------------
// Tethys.Silverlight
// ==========================================================================
//
// This library contains common code for WPF, Silverlight, Windows Phone and
// Windows 8 projects.
//
// =================... | apache-2.0 |
serban-petrescu/sbwo | src/main/java/spet/sbwo/integration/web/rojustportal/Query.java | 3356 | package spet.sbwo.integration.web.rojustportal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import java.net.MalformedURLException;
i... | apache-2.0 |
apereo/cas | support/cas-server-support-google-analytics/src/main/java/org/apereo/cas/web/flow/CreateGoogleAnalyticsCookieAction.java | 2785 | package org.apereo.cas.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.util.CollectionUtils;
import org.apereo.cas.util.RegexUtils;
import org.apereo.cas.web.cookie.CasCookieBuilder;
import org.apereo.cas.web.flow.actions.BaseCasWebflowAction;
import org.apereo.cas.web.s... | apache-2.0 |
komamj/KomaMusic | app/src/main/java/com/koma/music/detail/artistdetail/ArtistDetailContract.java | 1361 | /*
* Copyright (C) 2017 Koma MJ
*
* 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 |
OpenVnmrJ/OpenVnmrJ | src/vnmrj/src/vnmr/ui/shuf/DatePanel.java | 7897 | /*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
package vnmr.ui.shuf;
import java.awt.*;
import java.awt.event.*;
import j... | apache-2.0 |
agwlvssainokuni/sqlapp | src/main/java/cherry/sqlapp/controller/sqltool/load/SqltoolLoadControllerImpl.java | 4908 | /*
* Copyright 2014,2015 agwlvssainokuni
*
* 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 |
Axway/Grapes | server/src/test/java/org/axway/grapes/server/core/options/filters/SearchFilterTest.java | 1686 | package org.axway.grapes.server.core.options.filters;
import org.axway.grapes.server.db.datamodel.DbSearch;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
public class SearchFilterTest {
@Test
public void filter() throws Exception {
Search... | apache-2.0 |
qinannmj/FireFly | src/main/java/cn/com/sparkle/firefly/net/netlayer/raptor/RaptorBuf.java | 904 | package cn.com.sparkle.firefly.net.netlayer.raptor;
import java.nio.ByteBuffer;
import cn.com.sparkle.firefly.net.netlayer.buf.Buf;
import cn.com.sparkle.raptor.core.buff.CycleBuff;
import cn.com.sparkle.raptor.core.buff.IoBuffer;
public class RaptorBuf implements Buf {
private IoBuffer buffer;
private ByteBuffer ... | apache-2.0 |
lewis-ing/bachelor-all | bachelor_appconsole/appconsoleWeb/src/main/webapp/js/page.js | 2230 | var showPageNum = 15;//显示行数
var startLineNum = 0;//开始行数
var currentPageNum = 0;//当前页数
var gloabPageDiv = "";
var gloabPageUrl = "";
var gloabDataSearchResult = function(){};
/** 生成分页组件 **/
function createPageComponent(pageResult,pageDiv){
if(pageResult!=null){
var html = '<div class="pagination pagination-large pa... | apache-2.0 |
Enteee/sinep | ch.bfh.sinep.service/src/main/java/ch/bfh/sinep/service/impl/DefaultUserService.java | 5348 | package ch.bfh.sinep.service.impl;
import ch.bfh.sinep.model.Group;
import ch.bfh.sinep.model.User;
import ch.bfh.sinep.repository.GroupRepository;
import ch.bfh.sinep.repository.UserRepository;
import ch.bfh.sinep.service.UserService;
import ch.bfh.sinep.service.dto.GroupDTO;
import ch.bfh.sinep.service.dto.UserDTO;
... | apache-2.0 |
Resgrid/BigBoard | src/components/app-popover/app-popover.ts | 680 | import { Component } from '@angular/core';
import { NavParams } from 'ionic-angular';
@Component({
selector: 'app-popover',
templateUrl: 'app-popover.html'
})
export class AppPopover {
private saveLayoutCallback;
private loadLayoutCallback;
private clearLayoutCallback;
constructor(private navParams: NavP... | apache-2.0 |
ctr-lang/ctr | __tests__/cases-api/public-methods/set-callback/once.js | 741 | const CTR = require('ctr').js;
const ctr = new CTR();
const base = {
width: '200px',
color: 'red',
height: '400px'
};
//init
ctr.create('.test-1', base);
//some outside custom fuction
const someCustomThing = function (val) {
return val.toUpperCase();
};
//sets our callback
ctr.setCallback(function (err, ... | apache-2.0 |
ArmstrongYang/StudyShare | Python-Onedrive/onedriveAuth.py | 1307 | import os
import onedrivesdk
redirect_uri = 'http://localhost:8080/'
client_secret = 'J1toxbxTRhNLKDAposAZUEr'
client_id='00000000401CDF7B'
api_base_url='https://api.onedrive.com/v2.0/'
scopes=['wl.signin', 'wl.offline_access', 'onedrive.readwrite']
http_provider = onedrivesdk.HttpProvider()
auth_provider = onedrives... | apache-2.0 |
martincostello/alexa-london-travel | test/LondonTravel.Skill.Tests/HttpRequestInterceptionFilter.cs | 1248 | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using JustEat.HttpClientInterception;
using Microsoft.Extensions.Http;
namespace MartinCostello.LondonTravel.Skill;
/// <summary>
/// A class r... | apache-2.0 |
leafclick/intellij-community | platform/editor-ui-api/src/com/intellij/ide/ui/LCDRenderingScope.java | 310 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.ui;
/**
* @deprecated use {@link AntialiasingType} instead
*/
@Deprecated
public enum LCDRenderingScope {
IDE,
EXCLUDING_EDITOR,
OFF
}
| apache-2.0 |
lvillani/droidkit | src/main/java/com/google/android/vending/billing/Security.java | 4983 | /* Copyright (c) 2012 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... | apache-2.0 |
XamlAnimatedGif/WpfAnimatedGif | WpfAnimatedGif.Demo/InputBox.xaml.cs | 1124 | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace WpfAnima... | apache-2.0 |
mpf-soft/social-modules | forum/views/components/accessdenied.php | 703 | <div class="accessdenied-reason">
<?php if ('category' == $location) { ?>
<?= \mpf\modules\forum\components\Translator::get()->translate("Can't access this category!"); ?>
<?php } elseif ('userprofile' == $location) { ?>
<?php if (\mpf\WebApp::get()->user()->isGuest()) { ?>
<?= \mpf\... | apache-2.0 |
google/digitalbuildings | tools/validators/instance_validator/tests/entity_instance_test.py | 27133 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | apache-2.0 |
neerajkhosla/dynamicmvccrud | jTable/Properties/AssemblyInfo.cs | 1348 | 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("jT... | apache-2.0 |
yashb/generator | vendor/composer/autoload_psr4.php | 1216 | <?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'WebSocket\\' => array($vendorDir . '/textalk/websocket/lib'),
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
'Symfony\\Component\... | apache-2.0 |
terrancesnyder/solr-analytics | lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/CharStream.java | 4012 | /* Generated By:JavaCC: Do not edit this line. CharStream.java Version 5.0 */
/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package org.apache.lucene.queryparser.flexible.standard.parser;
/**
* This interface describes a character stream that maintains line and
* column number positions... | apache-2.0 |
stfalcon-studio/staginator | docker_templates/symfony-mysql-php56/configs/callback_runner.rb | 1680 | #!/usr/bin/env ruby
class CallbackRunner
attr_reader :config
def initialize(config_path)
require 'yaml'
require 'cocaine'
@config = read_config(config_path)
end
def after_clone_repo
deploy_callbacks('after_clone')
end
def before_composer_run
deploy_callbacks('before_composer')
end... | apache-2.0 |
hirayama968/xx | Source/DataSources/Entity.js | 25020 | define([
'../Core/Cartesian3',
'../Core/Check',
'../Core/createGuid',
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/DeveloperError',
'../Core/Event',
'../Core/Matrix3',
'../Core/Matrix4',
... | apache-2.0 |
galaran/GalaransHeroesSkills | SkillSummonBoat/src/mccity/heroes/skills/summonboat/SkillSummonBoat.java | 3337 | package mccity.heroes.skills.summonboat;
import com.herocraftonline.heroes.Heroes;
import com.herocraftonline.heroes.api.SkillResult;
import com.herocraftonline.heroes.characters.Hero;
import com.herocraftonline.heroes.characters.skill.ActiveSkill;
import com.herocraftonline.heroes.characters.skill.SkillConfigManager;... | apache-2.0 |
upenn-libraries/xmlaminar | cli/src/main/java/edu/upenn/library/xmlaminar/cli/PipelineCommandFactory.java | 9389 | /*
* Copyright 2011-2015 The Trustees of the University of Pennsylvania
*
* 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 |
BrunoEberhard/minimal-j | example/008_ERP/src/org/minimalj/example/erp/model/OfferView.java | 336 | package org.minimalj.example.erp.model;
import org.minimalj.model.Keys;
import org.minimalj.model.View;
public class OfferView implements View<Offer> {
public static final OfferView $ = Keys.of(OfferView.class);
public Object id;
public String offer_nr;
public String title;
public String display() {
ret... | apache-2.0 |
msebire/intellij-community | platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralIdBasedToSMTRunnerEventsConvertor.java | 18832 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.testframework.sm.runner;
import com.intellij.execution.testframework.Printer;
import com.intellij.execution.testframework.sm.runner.events.*;
impor... | apache-2.0 |
OpenXIP/xip-libraries | src/extern/inventor/apps/converters/ivdowngrade/downgradeToV1.c++ | 17239 | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | apache-2.0 |
dropwizard/dropwizard | dropwizard-jersey/src/test/java/io/dropwizard/jersey/validation/JerseyViolationExceptionTest.java | 877 | package io.dropwizard.jersey.validation;
import org.glassfish.jersey.process.Inflector;
import org.glassfish.jersey.server.model.Invocable;
import org.junit.jupiter.api.Test;
import javax.validation.ConstraintViolation;
import javax.ws.rs.core.Request;
import java.util.Collections;
import java.util.Set;
import stati... | apache-2.0 |
naveenbhaskar/gocd | config/config-api/src/main/java/com/thoughtworks/go/config/Users.java | 1628 | /*
* 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 |
micro/go-plugins | config/source/configmap/configmap.go | 2315 | // Package configmap config is an interface for dynamic configuration.
package configmap
import (
"fmt"
"github.com/micro/go-micro/v2/config/source"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
)
type configmap struct {
opts source.Options
client *kubernetes.Clientset
cerr... | apache-2.0 |
netbear/CloudAnts | src/java/voldemort/utils/pool/ResourceFactory.java | 1061 | package voldemort.utils.pool;
/**
* Basic interface for poolable Object Factory
*
*
*/
public interface ResourceFactory<K, V> {
/**
* Create the given resource for the key. This is called once for each
* resource to create it.
*
* @param key The key
* @return The created resource
... | apache-2.0 |
luisadeva/shoppingList | public_html/js/app/services.js | 3492 | var shoppingListServices = angular.module('shoppingListServices', []);
shoppingListServices.factory('shoppingListServicesBD', [
function(){
return {
initBD: function (callback) {
if (!(window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window... | apache-2.0 |
stephane-martin/salt-debian-packaging | salt-2016.3.2/salt/modules/win_dacl.py | 28918 | # -*- coding: utf-8 -*-
'''
Manage DACLs on Windows
:depends: - winreg Python module
'''
# Import python libs
from __future__ import absolute_import
import os
import logging
# TODO: Figure out the exceptions that could be raised and properly catch
# them instead of a bare except that catches any exception at... | apache-2.0 |
azusa/hatunatu | hatunatu/src/test/java/jp/fieldnotes/hatunatu/dao/impl/dao/Employee14Dao.java | 797 | /*
* 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 applicab... | apache-2.0 |
dtrihinas/JCatascopia-Probe-Repo | JCatascopia-Probe-Repo/WindowsProbe/src/main/java/WindowsDiskProbe.java | 2583 | /*******************************************************************************
* Copyright 2014, Laboratory of Internet Computing (LInC), Department of Computer Science, University of Cyprus
*
* For any information relevant to JCatascopia Monitoring System,
* please contact Demetris Trihinas, trihinas{at}cs.ucy.... | apache-2.0 |
sockeqwe/mosby | mvi-integration-test/src/androidTest/java/com/hannesdorfmann/mosby3/mvi/integrationtest/lifecycle/activity/MviFinishInOnCreateActivityTest.java | 1501 | /*
* Copyright 2016 Hannes Dorfmann.
*
* 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 |
lordelph/phrekyll | tests/Phrekyll/Processor/TwigTest.php | 5608 | <?php
/**
* 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
... | apache-2.0 |
andreaceccanti/simple-pdp-java | src/main/java/org/italiangrid/authz/pdp/Decision.java | 112 | package org.italiangrid.authz.pdp;
public enum Decision {
DENY,
PERMIT,
NOT_APPLICABLE,
INDETERMINATE;
}
| apache-2.0 |
billchen198318/qifu | core-lib/src/org/qifu/ui/impl/If.java | 2291 | /*
* Copyright 2012-2017 qifu of copyright Chen Xin Nien
*
* 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 |
ngvozdiev/ncode | src/common/file.cc | 8081 | // Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | apache-2.0 |
safesoftware/fmepedia-speech-to-call | www/js/index.js | 6976 | var langs =
[['Afrikaans', ['af-ZA']],
['Bahasa Indonesia',['id-ID']],
['Bahasa Melayu', ['ms-MY']],
['Català', ['ca-ES']],
['Čeština', ['cs-CZ']],
['Deutsch', ['de-DE']],
['English', ['en-AU', 'Australia'],
['en-CA', 'Canada'],
['en-IN', 'India'],
['en-NZ', 'New Zealand'],
['en... | apache-2.0 |
nullcodeexecutor/rural | modules/core/src/main/java/org/rural/render/FreeMarkerView.java | 2152 | package org.rural.render;
import freemarker.template.Configuration;
import freemarker.template.DefaultObjectWrapper;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.rural.core.ActionContex... | apache-2.0 |
cloudera/Impala | tests/custom_cluster/test_restart_services.py | 20577 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 |
adbrucker/SecureBPMN | designer/src/org.activiti.designer.gui/src/main/java/org/activiti/designer/security/features/CreateSecurityBodFeature.java | 2801 | /* Copyright 2012-2015 SAP SE
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | apache-2.0 |
zhantss/LuceneTool | src/test/test/orm/Sex.java | 69 | package test.orm;
public enum Sex {
Man,
Woman,
Private
}
| apache-2.0 |
MaxDeg/NinthChevron | NinthChevron.Data/Entity/ColumnAttribute.cs | 1510 | /**
* Copyright 2013
*
* 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 |
fifa2002nb/twos | server/Lib/Model/AccountingSubjectModel.class.php | 412 | <?php
/**
* @filename AccountingSubjectModel.class.php
* @encoding UTF-8
* @author nemo.xiaolan <a href="mailto:335454250@qq.com">335454250@qq.com</a>
* @link <a href="http://www.sep-v.com">http://www.sep-v.com</a>
* @license http://www.sep-v.com/code-license
* @datetime 2013-12-30 13:58:21
* @Description
*... | apache-2.0 |
ausaccessfed/saml-service | spec/models/shibmd/scope_spec.rb | 371 | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe SHIBMD::Scope, type: :model do
it { is_expected.to validate_presence :role_descriptor }
it { is_expected.to validate_presence :value }
it { is_expected.to validate_presence :regexp }
it { is_expected.to validate_presence :created_at }
it { ... | apache-2.0 |
thearkhelist/Pkcs11Interop | src/Pkcs11Interop/Pkcs11Interop/LowLevelAPI81/MechanismParams/CK_EXTRACT_PARAMS.cs | 1231 | /*
* Copyright 2012-2016 The Pkcs11Interop 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 ap... | apache-2.0 |
ceefour/glut101 | glut111/glut111.cpp | 9339 | // OpenGL
// - Function to load bitmap
// - Texture Mapping Magnification Filter
// filter=0 --> Nearest Filtered Texture
// filter=1 --> Linear Interpolation Texture
// filter=2 --> Mipmapped Texture
#include "stdafx.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string>
#include <stdio.h>
#include "../glut/glu... | apache-2.0 |
boneman1231/org.apache.felix | trunk/upnp/basedriver/src/main/java/org/apache/felix/upnp/basedriver/export/GeneralActionListener.java | 4850 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"... | apache-2.0 |
snahelou/awx | awx/ui/client/src/organizations/linkout/controllers/organizations-inventories.controller.js | 11145 | /*************************************************
* Copyright (c) 2016 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
export default ['$scope', '$rootScope', '$location',
'$stateParams', '$compile', '$filter', 'Rest', 'InventoryList',
'OrgInventoryDataset', 'OrgIn... | apache-2.0 |
JuKu/test-rpg-game-server | game-database/src/main/java/com/jukusoft/libgdx/rpg/database/json/JSONSerializable.java | 243 | package com.jukusoft.libgdx.rpg.database.json;
import org.json.JSONObject;
/**
* Created by Justin on 24.03.2017.
*/
public interface JSONSerializable {
public JSONObject toJSON ();
public void loadFromJSON (JSONObject json);
}
| apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/AbstractAWSServiceCatalog.java | 18650 | /*
* 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 |
TieWei/nova | nova/tests/test_quota.py | 97298 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | apache-2.0 |
aws/aws-sdk-js | test/services/sts.spec.js | 12227 | // Generated by CoffeeScript 1.12.3
(function() {
var AWS, helpers;
helpers = require('../helpers');
AWS = helpers.AWS;
describe('AWS.STS', function() {
var sts;
sts = null;
beforeEach(function() {
return sts = new AWS.STS();
});
describe('credentialsFrom', function() {
it('r... | apache-2.0 |
p4scu41/sail | include/clases/IndicadorDiagnosticoOportuno.php | 6226 | <?php
class IndicadorDiagnosticoOportuno {
// VALORES DE ENTRADA
public $idCatEstado;
public $idCatJurisdiccion;
public $fechaInicio;
public $fechaFin;
// VALORES DE ENTRADA
// VALORES FIJOS
public $estandar = 100;
public $ponderacion = 30;
public $nombre = "Diagnóstico Oportuno";
// VALORES FIJOS
... | apache-2.0 |
stserp/erp1 | source/src/com/baosight/sts/st/rp/service/ServiceSTRP0403.java | 3825 | package com.baosight.sts.st.rp.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.tools.ant.taskdefs.XSLTProcess.Param;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiBlockMeta;
import com.baosight.iplat4j.core.ei.EiColumn;
... | apache-2.0 |
jy01649210/ambrose | hive/src/main/java/com/twitter/ambrose/hive/AmbroseHivePreJob.java | 3268 | package com.twitter.ambrose.hive;
import static com.twitter.ambrose.hive.reporter.AmbroseHiveReporterFactory.getEmbeddedProgressReporter;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.... | apache-2.0 |
jlz27/gs-collections | collections/src/main/java/com/gs/collections/impl/lazy/iterator/ZipWithIndexIterator.java | 1456 | /*
* Copyright 2011 Goldman Sachs.
*
* 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 |
1974kpkpkp/twitter-cldr-rb | spec/utils/code_points_spec.rb | 1818 | # encoding: UTF-8
# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
require 'spec_helper'
describe TwitterCldr::Utils::CodePoints do
describe '#to_char' do
it 'converts unicode code points to the actual character' do
TwitterCldr::Utils::CodePoints.to_char(0x221E).should == '∞'
... | apache-2.0 |
kw217/omim | routing/osrm_router.cpp | 19229 | #include "cross_mwm_router.hpp"
#include "online_cross_fetcher.hpp"
#include "osrm2feature_map.hpp"
#include "osrm_helpers.hpp"
#include "osrm_router.hpp"
#include "turns_generator.hpp"
#include "platform/country_file.hpp"
#include "platform/platform.hpp"
#include "geometry/angles.hpp"
#include "geometry/distance.hpp... | apache-2.0 |
PMBio/limix | src/limix/modules/CVarianceDecomposition.cpp | 18460 | // Copyright(c) 2014, The LIMIX developers(Christoph Lippert, Paolo Francesco Casale, Oliver Stegle)
//
//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/L... | apache-2.0 |
endeavourhealth/EDS | src/eds-messaging-core/src/main/java/org/endeavourhealth/core/configuration/Credentials.java | 2099 |
package org.endeavourhealth.core.configuration;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Credentials complex type.
*
* <p>The following schema f... | apache-2.0 |
zqh110110/base_http_rxjava_databing_commonutil | android-util-master/src/main/java/com/xjf/repository/utils/InputMethodUtils.java | 3005 | /*
* Copyright (C) 2013 Peng fei Pan <sky@xiaopan.me>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | apache-2.0 |
Padepokan79/PUBTeam | webseedJava/Controller/Dyah_Nuraeni/MdTbLainController.java | 208 | package app.controllers.api.masterdata;
import app.models.MdSkpdtbl;
import app.models.MdTbLain;
import core.controllers.CRUDController;
public class MdTbLainController extends CRUDController<MdTbLain>{
}
| apache-2.0 |
youdonghai/intellij-community | platform/testGuiFramework/testSrc/com/intellij/testGuiFramework/tests/samples/AddActionToolbarTest.java | 3193 | /*
* 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 |
edmccard/tvis | tvis/examples/keytest.rs | 1027 | extern crate tvis;
use std::sync::mpsc::channel;
use tvis::term::{self, BoldOrBright, UseTruecolor};
use tvis::input::{InputEvent, Key};
fn main() {
let (tx, rx) = channel();
let mut screen =
term::connect_with_input(tx, UseTruecolor::Auto, BoldOrBright::Bold)
.unwrap();
if !screen.is... | apache-2.0 |
ZhouweiDev/tinyweather | app/src/main/java/com/tinyweather/android/MainActivity.java | 768 | package com.tinyweather.android;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import java.util.zip.InflaterInputStream;
public class MainActivity extends AppCompatActivi... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ListTasksRequest.java | 38960 | /*
* 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 |
andrewschaaf/closure-library-mirror | closure/goog/net/xpc/crosspagechannel.js | 17866 | // Copyright 2007 The Closure Library 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 requ... | apache-2.0 |
ptgrogan/ofspy | ofspy/player/module.py | 25376 | """
Copyright 2015 Paul T. Grogan, Massachusetts Institute of Technology
Copyright 2017 Paul T. Grogan, Stevens Institute of Technology
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://ww... | apache-2.0 |
googleads/google-ads-java | google-ads-stubs-v9/src/test/java/com/google/ads/googleads/v9/services/HotelPerformanceViewServiceClientTest.java | 6048 | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
archever/archever_me | app/wechat/conf.py | 91 | #coding: utf-8
APPID = "wx3808b7bc91e9f622"
APPSECRET = "1df0afffd4ac6858d32491c2312dbb4f" | apache-2.0 |
mmm2a/game-center | src/com/morgan/server/db/DbFlagAccessor.java | 466 | package com.morgan.server.db;
import com.morgan.server.util.flag.Flag;
import com.morgan.server.util.flag.FlagAccessor;
/**
* {@link FlagAccessor} for the db package.
*
* @author mark@mark-morgan.net (Mark Morgan)
*/
public interface DbFlagAccessor extends FlagAccessor {
@Flag(name = "persistence-unit",
... | apache-2.0 |
naveenbhaskar/gocd | server/src/main/java/com/thoughtworks/go/server/controller/actions/JsonAction.java | 4869 | /*
* 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 |
cping/LGame | Java/old/AWT_ver/src/org/loon/framework/javase/game/core/resource/Resources.java | 8682 | package org.loon.framework.javase.game.core.resource;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import ... | apache-2.0 |
talsma-ict/umldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/sequencediagram/command/CommandDivider.java | 2370 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | apache-2.0 |
box/mojito | webapp/src/main/java/com/box/l10n/mojito/rest/cli/GitInfo.java | 1127 | package com.box.l10n.mojito.rest.cli;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
* To optionally load info about git
*
* @author jaurambault
*/
@Component("GitInfoWeb... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddShapes.java | 18249 | /*
* Copyright (c) 2016. 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 |
priya5713/GIT_App2017 | app/src/main/java/com/git/priyavidhi/Developer.java | 782 | package com.git.priyavidhi;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
//import com.androidappbazzar.garagefinder.R;
public class Developer extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | apache-2.0 |
RayRuizhiLiao/ITK_4D | Wrapping/Generators/Python/Tests/ReadDicomAndReadTag.py | 2185 | #==========================================================================
#
# Copyright Insight Software Consortium
#
# 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 |
googleapis/java-analytics-admin | proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java | 2889 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
aajjbb/contest-files | AtCoder/ABC-219/A.cc | 788 | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | apache-2.0 |
mtreinish/subunit2sql | subunit2sql/exceptions.py | 1917 | # Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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 |
xiaonanln/myleetcode-python | src/392. Is Subsequence - 2.py | 334 | class Solution(object):
def isSubsequence(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
sl = len(s)
if not sl:
return True
cp = 0
for i, c in enumerate(t):
if c == s[cp]:
cp += 1
if cp == sl:
return True
return False
s = "abc"
t = "ahbgdc"
print Solution().isSub... | apache-2.0 |
SMB-TEC/extended-objects | neo4j/src/main/java/com/buschmais/xo/neo4j/impl/datastore/AbstractEmbeddedNeo4jDatastore.java | 5243 | package com.buschmais.xo.neo4j.impl.datastore;
import java.util.Map;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Label;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.schema.IndexDefinition;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.buschmais.xo.n... | apache-2.0 |
eyedol/birudo | birudo/mobile/src/main/java/org/addhen/birudo/ui/widget/SimpleDividerItemDecoration.java | 3408 | package org.addhen.birudo.ui.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.LinearLayoutManager;
import an... | apache-2.0 |
youxiaxiaomage/yx-platform | yx-platform-sys-facade/src/main/java/com/yx/platform/model/SysNews.java | 3286 | package com.yx.platform.model;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.yx.platform.core.base.BaseModel;
/**
* <p>
* 新闻表
* </p>
*/
@SuppressWarnings("serial")
@Table... | apache-2.0 |
dotph/registry | features/step_definitions/remove_host_address_steps.rb | 1029 | When /^I try to remove a host address from an existing host$/ do
host = FactoryGirl.create :host
host_address = FactoryGirl.create :host_address, host: host
stub_request(:get, 'http://localhost:9001/hosts/ns5.domains.ph')
.to_return(status: 200, body: 'hosts/ns5.domains.ph/get_response'.body)
st... | apache-2.0 |
blackpanther989/ArchiSteamFarm | ArchiSteamFarm/CMsgs/CMsgClientClanInviteAction.cs | 2009 | /*
_ _ _ ____ _ _____
/ \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
/ _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
/ ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || |... | apache-2.0 |
Talend/ui | packages/containers/src/ObjectViewer/index.js | 81 | import ObjectViewer from './ObjectViewer.connect';
export default ObjectViewer;
| apache-2.0 |
KleeGroup/vertigo-addons | vertigo-stella/src/test/java/io/vertigo/stella/work/mock/SlowWorkEngine.java | 1367 | /**
* vertigo - simple java starter
*
* Copyright (C) 2013-2018, KleeGroup, direction.technique@kleegroup.com (http://www.kleegroup.com)
* KleeGroup, Centre d'affaire la Boursidiere - BP 159 - 92357 Le Plessis Robinson Cedex - France
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... | apache-2.0 |
codeshard/videomorph | tests/test_utils.py | 2480 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File name: test_utils.py
#
# VideoMorph - A PyQt5 frontend to ffmpeg and avconv.
# Copyright 2015-2016 VideoMorph Development Team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | apache-2.0 |
consulo/consulo | modules/base/xdebugger-impl/src/main/java/com/intellij/xdebugger/impl/frame/actions/XSwitchWatchesInVariables.java | 890 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.xdebugger.impl.frame.actions;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.ToggleAction;
import com.intel... | apache-2.0 |
jonhnanthan/Educa | educa/src/com/educa/adapter/ExerciseStudentAdapter.java | 7876 |
package com.educa.adapter;
import java.util.ArrayList;
import org.json.JSONException;
import org.json.JSONObject;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import an... | apache-2.0 |
ITrust/angular-xmlrpc | src/xmlrpc.js | 19270 | // Fix an IE problem (another one)
var HAS_ACTIVEX = false;
try {
new ActiveXObject('MSXML2.DOMDocument');
HAS_ACTIVEX = true;
} catch(e) {
// Do nothing
}
/**
* XML-RPC communication service.
*/
angular.module('xml-rpc', [])
.factory('js2xml', ['helperXmlRpc', function(helperXmlRpc){
/**
* Con... | apache-2.0 |