code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/* */ package com.hundsun.network.gates.genshan.biz.domain.query;
/* */
/* */ import com.hundsun.network.gates.luosi.common.page.Pagination;
/* */
/* */ public class ProjectAttriQuery<ProjectTypeAttri> extends Pagination<ProjectTypeAttri>
/* */ {
/* */ private static final long ser... | hnccfr/ccfrweb | admin/src/com/hundsun/network/gates/genshan/biz/domain/query/ProjectAttriQuery.java | Java | apache-2.0 | 3,572 |
/* */ package com.hundsun.network.hseccms.web.common;
/* */
/* */ import java.io.BufferedInputStream;
/* */ import java.io.InputStream;
/* */ import java.util.Properties;
/* */ import org.slf4j.Logger;
/* */ import org.slf4j.LoggerFactory;
/* */
/* */ public class Propertie... | hnccfr/ccfrweb | web/src/com/hundsun/network/hseccms/web/common/PropertiesLoader.java | Java | apache-2.0 | 5,669 |
/*
* Copyright 2016 Huawei Technologies Co., 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 applicable... | open-o/nfvo | resmanagement/ResmanagementService/service/src/main/java/org/openo/nfvo/resmanagement/service/mapper/HostMapper.java | Java | apache-2.0 | 2,621 |
@extends('layouts.app')
<link href="{{ asset('js/jquery-ui-themes-1.12.0/themes/base/jquery-ui.css') }}" rel="stylesheet">
<link rel="stylesheet" href="{{ asset('plugins/datatables/dataTables.bootstrap.css') }}">
@section('main-content')
<div class="row">
<div class="col-lg-12 margin-tb">
@section('conten... | EquipeSECH/sech | resources/views/fornecedor/index.blade.php | PHP | apache-2.0 | 8,098 |
/*
* Copyright 2016 Zot201
*
* 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... | Zot201/OnlySilver | src/main/java/zotmc/onlysilver/config/gui/Icon.java | Java | apache-2.0 | 3,510 |
/*
* Copyright (C) 2017 Julien Viet
*
* 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 ... | vietj/vertx-pg-client | vertx-pg-client/src/main/java/io/vertx/pgclient/impl/codec/DataType.java | Java | apache-2.0 | 11,762 |
require 'rails_helper'
RSpec.describe PagesController, type: :controller do
describe "GET #home" do
it "returns http success" do
get :home
expect(response).to have_http_status(:success)
end
end
describe "GET #contact" do
it "returns http success" do
get :contact
expect(respo... | LoikH/MyMoviez | spec/controllers/pages_controller_spec.rb | Ruby | apache-2.0 | 662 |
package com.itheima.zhbj52.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* SharedPreferences工具类
*
* @author baoliang.zhao
*
*/
public class PrefUtils {
public static final String PREF_NAME = "config";
public static boolean getBoolean(Context ctx, String key,
boolea... | CrazyZhao/zhbj52 | src/com/itheima/zhbj52/utils/PrefUtils.java | Java | apache-2.0 | 1,514 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 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... | stdlib-js/stdlib | lib/node_modules/@stdlib/blas/ext/base/dfill/lib/dfill.native.js | JavaScript | apache-2.0 | 1,396 |
package tutorial.core.repositories;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.ContextConfiguration;
import org.springframewo... | DominikR90/2015_UAM_MGR_ZTSI_JAVA | basic-web-app/src/test/java/tutorial/core/repositories/AccountRepoTest.java | Java | apache-2.0 | 1,328 |
import concat from 'lodash/concat';
import { Options } from '..';
import { GlobalParameters } from '../global-parameters';
import { Property } from './property';
import { WithMembersStatement } from './with-members.statement';
export class Class extends WithMembersStatement {
type = 'class';
public decor... | jboz/living-documentation | livingdoc-typescript-plugin/src/models/class.ts | TypeScript | apache-2.0 | 1,307 |
<div class="tile idea-tile" onClick="document.location = '{{ action('IdeaController@view', $idea->id) }}'">
<div class="tile-image" style="background-image:url('{{ $idea->photo }}')"></div>
<div class="inner-container">
<h4>
{{ $idea->name }}
</h4>
<p>
Posted by <a href="{{ action('UserController@pr... | digitalinteraction/xmovement | resources/views/ideas/tile.blade.php | PHP | apache-2.0 | 414 |
/*
* Copyright (C) 2016 Merbin J Anselm <merbinjanselm@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your opti... | lss4/TUI-ConsoleLauncher | app/src/main/java/ohi/andre/consolelauncher/managers/flashlight/Flashlight2.java | Java | apache-2.0 | 3,912 |
using EPiServer.Commerce.Order;
using EPiServer.Framework.Localization;
using EPiServer.ServiceLocation;
using Mediachase.Commerce.Orders;
using System.ComponentModel;
namespace EPiServer.Reference.Commerce.Site.Features.Payment.PaymentMethods
{
public class DIBSPaymentMethod : PaymentMethodBase
{
pub... | sondn2010/Quicksilver | Sources/EPiServer.Reference.Commerce.Site/Features/Payment/PaymentMethods/DIBSPaymentMethod.cs | C# | apache-2.0 | 1,415 |
# Copyright 2011-2019, The Trustees of Indiana University and Northwestern
# University. 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
#
# ... | ualbertalib/avalon | app/controllers/admin/collections_controller.rb | Ruby | apache-2.0 | 9,077 |
package org.srplib.validation;
import java.util.List;
/**
* Encapsulates an object which can be validated.
*
* <p>Validatable is unaware of UI framework and contains only validation specific logic.</p>
*
* <p>Usage patterns:
* <ol>
* <li>Extract value from to be-validated-component and wap it with Validatable... | apechinsky/srplib | srp-validation/src/main/java/org/srplib/validation/Validatable.java | Java | apache-2.0 | 1,391 |
package mb.scopegraph.pepm16.terms.path;
import org.immutables.serial.Serial;
import org.immutables.value.Value;
import org.metaborg.util.collection.ConsList;
import org.metaborg.util.iterators.Iterables2;
import io.usethesource.capsule.Set;
import mb.scopegraph.pepm16.ILabel;
import mb.scopegraph.pepm16.IOccurrence;... | metaborg/nabl | nabl2.solver/src/main/java/mb/scopegraph/pepm16/terms/path/AEStep.java | Java | apache-2.0 | 2,096 |
/*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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... | scouter-project/scouter | scouter.common/src/main/java/scouter/lang/step/MethodStep2.java | Java | apache-2.0 | 1,207 |
/*!
* ${copyright}
*/
// Provides control sap.m.VBox.
sap.ui.define(['jquery.sap.global', './FlexBox', './library'],
function(jQuery, FlexBox, library) {
"use strict";
/**
* Constructor for a new VBox.
*
* @param {string} [sId] id for the new control, generated automatically if no id is given
* @param ... | olirogers/openui5 | src/sap.m/src/sap/m/VBox.js | JavaScript | apache-2.0 | 1,081 |
// Karma configuration
// Generated on Thu Sep 17 2015 09:48:07 GMT+0530 (IST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... | magnusmel/ramisdance | tests/my.conf.js | JavaScript | apache-2.0 | 1,793 |
// SSRSDeployerTool / DailyRecurrence.cs
// ------------------------------------------------------------------
// Author: Mark Ewer (MEwer@LetterBllc.com)
// Modified: 9/23/2015
// ------------------------------------------------------------------
// This software is a copyrighted work and no license to u... | LetterBllc/SSRS-Deployer | Source/SSRSDeployerTool/Web References/SSRSWebService/DailyRecurrence.cs | C# | apache-2.0 | 1,146 |
package ru.stqa.pft.sandbox;
public class FirstProgramm {
public static void main(String[] args) {
Hello("world");
Hello("baby");
Square s = new Square(5);
System.out.println("Площадь квадрата со стороной, " + s.l + " = " + s.area());
Rectangle r = new Rectangle(4, 6);
System.out.println("... | greeniol/Java_pdt45 | sandbox/src/main/java/ru/stqa/pft/sandbox/FirstProgramm.java | Java | apache-2.0 | 547 |
# 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 required by applicable law or a... | hxiong388/google-cloud-ruby | google-cloud-storage/test/google/cloud/storage/signed_url_test.rb | Ruby | apache-2.0 | 7,790 |
/*-
* -\-\-
* Spydra
* --
* Copyright (C) 2016 - 2018 Spotify AB
* --
* 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
*
* Unles... | spotify/spydra | spydra/src/main/java/com/spotify/spydra/historytools/HistoryLogUtils.java | Java | apache-2.0 | 8,874 |
// 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 applicable... | jgennis/blueprint | module_ctx.go | GO | apache-2.0 | 16,003 |
require 'spec_helper'
shared_examples_for 'splunk forwarder' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('splunk') }
it { is_expected.to contain_class('splunk::params') }
it { is_expected.to contain_class('splunk::forwarder') }
it { is_expected.to contain_class('splunk::f... | dhoppe/puppet-splunk | spec/classes/forwarder_spec.rb | Ruby | apache-2.0 | 17,547 |
/*
* 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... | agwlvssainokuni/springapp | common/src/test/java/cherry/common/foundation/impl/BizDateTimeTest.java | Java | apache-2.0 | 3,254 |
/**
* @author wangboxuan
* @date 2014-7-14 下午01:43:02
* @Description: TODO
* @version V1.0
*/
package wbx;
import javax.swing.plaf.SliderUI;
/**
* @author wangboxuan
* @date 2014-7-14
* @Description:
*/
public class TestViolate {
private static volatile int c = 0;
public static void main(Str... | windsunmoon/javaTest | src/wbx/TestViolate.java | Java | apache-2.0 | 538 |
import java.util.Scanner;
public class Average{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int count=0,n;
double sum=0,avg,num;
System.out.println("Count of the Numbers which we want to Calculate the Average");
n=input.nextInt();
System.out.println("Enter those " + n +... | vinitraj10/Java | Java/Loops/Average.java | Java | apache-2.0 | 498 |
package tests
import (
"fmt"
r "gopkg.in/rethinkdb/rethinkdb-go.v6"
)
// Return the first five squares.
func ExampleTerm_Map() {
cur, err := r.Expr([]int{1, 2, 3, 4, 5}).Map(func(val r.Term) r.Term {
return val.Mul(val)
}).Run(session)
if err != nil {
fmt.Print(err)
return
}
var res []int
err = cur.All... | GoRethink/gorethink | internal/integration/tests/example_query_transformation_test.go | GO | apache-2.0 | 3,050 |
using Jal.Converter.Impl;
using Jal.Converter.Tests.Model;
namespace Jal.Converter.Tests.Impl
{
public class CustomerRequestCustomerConverter : AbstractConverter<CustomerRequest, Customer>
{
public override Customer Convert(CustomerRequest source)
{
return new Customer()
... | raulnq/Jal.Converter | Jal.Converter.Tests/Impl/CustomerRequestCustomerConverter.cs | C# | apache-2.0 | 498 |
package opsmanager
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
urllib "net/url"
"path"
"github.com/cloudfoundry-community/go-cfenv"
"github.com/pivotalservices/cfbackup"
"github.com/pivotalservices/gtils/command"
ghttp "github.com/pivotalservices/gtils/http"
"github.com/pivotalse... | pivotalservices/cfbackup | tiles/opsmanager/opsmanager.go | GO | apache-2.0 | 8,787 |
/*
Copyright [2013-2014] eBay Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | eBay/mTracker | build-service/src/test/java/com/ccoe/build/service/BuildServiceSchedulerTest.java | Java | apache-2.0 | 975 |
<?php
namespace Habari;
class LMSPlugin extends Plugin
{
private $output;
public function filter_autoload_dirs($dirs) {
$dirs[] = __DIR__ . '/classes';
return $dirs;
}
public function action_init() {
DB::register_table( 'tracks' );
DB::register_table( 'courses' );
DB::register_table( 'units' );
DB::... | chrisjdavis/habari-lms | user/plugins/LMS/lms.plugin.php | PHP | apache-2.0 | 32,049 |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | gunan/tensorflow | tensorflow/compiler/xla/service/hlo_cost_analysis.cc | C++ | apache-2.0 | 41,201 |
/**
Copyright 2009 TiTA Project, Vienna University 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://www.apache.org/licenses/LICENSE\-2.0
Unless required by... | tita/tita | tita-entity/src/main/java/at/ac/tuwien/ifs/tita/entity/TiTAUserProject.java | Java | apache-2.0 | 3,378 |
package org.hl7.fhir.instance.model.valuesets;
/*
Copyright (c) 2011+, HL7, Inc.
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 source code must retain th... | Nodstuff/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/DeviceAction.java | Java | apache-2.0 | 3,806 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace NDatabase.CF.Sample
{
public class SampleClass
{
public string Name;
public int Age;
}
class Program
{
static void Main(string[] args)
{
... | WaltChen/NDatabase | Samples/NDatabase.CF.Sample2/Program.cs | C# | apache-2.0 | 1,041 |
using BehaveAsSakura.Attributes;
namespace BehaveAsSakura.Tasks
{
[BehaveAsTable]
[BehaveAsUnionInclude(typeof(ITaskDesc), 14)]
[Task("Loop/Until Failure")]
public class UntilFailureTaskDesc : RepeaterTaskDesc, IDecoratorTaskDesc
{
void ITaskDesc.Validate()
{
}
Tas... | wuyuntao/BehaveAsSakura | BehaveAsSakura/Tasks/UntilFailureTask.cs | C# | apache-2.0 | 868 |
// RUN: %clang_cc1 -verify -fopenmp %s
// RUN: %clang_cc1 -verify -fopenmp-simd %s
typedef void **omp_allocator_handle_t;
extern const omp_allocator_handle_t omp_default_mem_alloc;
extern const omp_allocator_handle_t omp_large_cap_mem_alloc;
extern const omp_allocator_handle_t omp_const_mem_alloc;
extern const omp_al... | apple/swift-clang | test/OpenMP/target_private_messages.cpp | C++ | apache-2.0 | 7,306 |
package org.txazo.tool.util.async;
/**
* TaskConfig
*/
public class TaskConfig {
private String id;
private int timeout;
private Object defaultResult;
public TaskConfig(String id, int timeout, Object defaultResult) {
this.id = id;
this.timeout = timeout;
this.defaultResult =... | txazo/java | src/main/java/org/txazo/tool/util/async/TaskConfig.java | Java | apache-2.0 | 536 |
# == Schema Information
#
# Table name: transactions
#
# amount :decimal(12, 2) not null
# created_at :datetime not null
# date :date not null
# id :integer not null, primary key
# memo :string not null
# source_id :integer
# tags :string
# ... | serracorwin/checkmate | app/models/transfer.rb | Ruby | apache-2.0 | 763 |
package net.ftlines.blog.cdidemo.web.app;
import javax.inject.Inject;
import net.ftlines.blog.cdidemo.model.Member;
import net.ftlines.blog.cdidemo.model.PositionsRepository;
import net.ftlines.blog.cdidemo.model.Team;
import net.ftlines.blog.cdidemo.web.EntityModel;
import net.ftlines.blog.cdidemo.web.UserAc... | 42Lines/blog-cdidemo | src/main/java/net/ftlines/blog/cdidemo/web/app/TeamEditPage.java | Java | apache-2.0 | 3,336 |
package com.airbnb.epoxy;
import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;
import java.lang.CharSequence;
import java.lang.Number;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
/**
* Generated file. Do not modify!
*/
public class ModelWithSuper_ extends Model... | airbnb/epoxy | epoxy-processortest/src/test/resources/ModelWithSuper_.java | Java | apache-2.0 | 8,328 |
/*
* Copyright 2010-2013 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 "l... | emcvipr/dataservices-sdk-dotnet | AWSSDK/Amazon.DataPipeline/Model/Internal/MarshallTransformations/FieldUnmarshaller.cs | C# | apache-2.0 | 2,790 |
// Original file: deps/protoc-gen-validate/validate/validate.proto
/**
* EnumRules describe the constraints applied to enum values
*/
export interface EnumRules {
/**
* Const specifies that this field must be exactly the specified value
*/
'const'?: (number);
/**
* DefinedOnly specifies that this fie... | grpc/grpc-node | packages/grpc-js-xds/src/generated/validate/EnumRules.ts | TypeScript | apache-2.0 | 1,326 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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/licen... | Sargul/dbeaver | plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/struct/AbstractTriggerColumn.java | Java | apache-2.0 | 1,333 |
package com.riversoft.weixin.pay.payment.wrapper;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import com.riversoft.weixin.pay.payment.bean.UnifiedOrderResponse;
/**
* @borball on 1/13/2017.
*/
public class UnifiedOrderResponseWrapper extends BaseSettings {
@JsonUnwrapped
private Unified... | borball/weixin-sdk | weixin-pay/src/main/java/com/riversoft/weixin/pay/payment/wrapper/UnifiedOrderResponseWrapper.java | Java | apache-2.0 | 536 |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex ty... | jdgwartney/vsphere-ws | java/JAXWS/samples/com/vmware/vim25/ReloadVirtualMachineFromPathTaskResponse.java | Java | apache-2.0 | 1,666 |
// Copyright [2011] [PagSeguro Internet Ltda.]
//
// 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... | fortesinformatica/PagSeguro | source/Examples/CreatePayment/Program.cs | C# | apache-2.0 | 4,354 |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTypes.h"
#include "SkData.h"
#include "SkFixed.h"
#include "SkFontDescriptor.h"
#include "SkFontHost_FreeType_common.h"
#include "SkFontMgr.h"
#include "SkFontMgr... | tmpvar/skia.cc | src/ports/SkFontMgr_android.cpp | C++ | apache-2.0 | 21,989 |
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Cassandra.Mapping.Statements
{
/// <summary>
/// Creates statements from CQL that can be executed with the C* driver.
/// </summary>
internal class StatementFactory
... | trurl123/csharp-driver | src/Cassandra/Mapping/Statements/StatementFactory.cs | C# | apache-2.0 | 3,826 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/v2beta1/session.proto
package com.google.cloud.dialogflow.v2beta1;
public interface TextInputOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.TextInput)
com.google.... | vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java | Java | apache-2.0 | 1,678 |
<?php
/**
* contentinum - accessibility websites
*
* LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. ... | jochum-mediaservices/contentinum5.5 | module/Mcevent/src/Mcevent/Form/Dates.php | PHP | apache-2.0 | 22,247 |
#pragma once
//glm
#include <glm\glm.hpp>
#include <glm\gtx\quaternion.hpp>
namespace naga
{
typedef char i8;
typedef unsigned char u8;
typedef short i16;
typedef unsigned short u16;
typedef int i32;
typedef unsigned int u32;
t... | cmbasnett/mandala | engine/src/types.hpp | C++ | apache-2.0 | 1,156 |
// HTTP.methods({
// 'api/v1/staffMembers': {
// get: function(data) {
// this.setContentType('application/json');
// var staffMembers = StaffMembers.find();
// var test = [];
// staffMembers.forEach(function(staffMember) {
// test.push(staffMember);
// // // SECOND RUN
// // delete staf... | phanime/phanime | server/restapi/legacy/staffMembers.js | JavaScript | apache-2.0 | 1,026 |
package com.dianyitech.madaptor.contacts.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.dianyitech.madaptor.contacts.pojo... | quding0308/sxrk | Sxrk/src/com/dianyitech/madaptor/contacts/adapter/OperateAdapterV3.java | Java | apache-2.0 | 1,945 |
/**
* Copyright (C) 2012-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | krahman/emedia | ninja-servlet-integration-test/src/main/java/controllers/FilterController.java | Java | apache-2.0 | 1,989 |
package com.fsck.k9.mail;
public class K9MailLib {
private static DebugStatus debugStatus = new DefaultDebugStatus();
private K9MailLib() {
}
public static final int PUSH_WAKE_LOCK_TIMEOUT = 60000;
public static final String IDENTITY_HEADER = "X-K9mail-Identity";
public static final String C... | k9mail/k-9 | mail/common/src/main/java/com/fsck/k9/mail/K9MailLib.java | Java | apache-2.0 | 2,599 |
# Copyright 2012 VMware, 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 a... | CingHu/neutron-ustack | neutron/db/securitygroups_db.py | Python | apache-2.0 | 30,323 |
/*
https://en.cppreference.com/w/cpp/language/ub
Access to pointer passed to realloc
*/
#include <cstdlib>
#include <iostream>
int main() {
auto *p1 = static_cast<int *>(std::malloc(sizeof(int)));
auto *p2 = static_cast<int *>(std::realloc(p1, sizeof(int)));
std::cout << *p1 << *p2 << '\n';
free(p2);
return... | geoffviola/undefined_behavior_study | src/access_after_realloc.cpp | C++ | apache-2.0 | 337 |
package com.google.cloud.hadoop.io.bigquery;
import com.google.api.client.util.Sleeper;
import com.google.cloud.hadoop.util.HadoopToStringUtil;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileS... | peltekster/bigdata-interop-leanplum | bigquery/src/main/java/com/google/cloud/hadoop/io/bigquery/DynamicFileListRecordReader.java | Java | apache-2.0 | 13,528 |
/*
* Copyright 2010-2015 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 "lice... | galaxynut/aws-sdk-java | aws-java-sdk-codepipeline/src/main/java/com/amazonaws/service/codepipeline/model/AcknowledgeJobResult.java | Java | apache-2.0 | 4,499 |
/*
* 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 ... | newkek/incubator-tinkerpop | neo4j-gremlin/src/main/java/org/apache/tinkerpop/gremlin/neo4j/process/traversal/strategy/optimization/Neo4jGraphStepStrategy.java | Java | apache-2.0 | 2,989 |
package pl.jalokim.propertiestojson.util;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.assertj.core.api.Assertions;
import pl.jalokim.proper... | mikolajmitura/java-properties-to-json | src/test/java/pl/jalokim/propertiestojson/util/AbstractPropertiesToJsonConverterTest.java | Java | apache-2.0 | 5,760 |
package com.jiangjg.lib.ThingkingInJava.Th15;
import java.util.ArrayList;
import java.util.List;
class Fruit{}
class Apple extends Fruit {}
class Orange extends Fruit {}
public class GenericsAndCovariance {
public static void main(String[] args) {
List<? extends Fruit> flist = new ArrayList<Fruit>();
//flist.a... | jiangjiguang/lib-java | src/com/jiangjg/lib/ThingkingInJava/Th15/GenericsAndCovariance.java | Java | apache-2.0 | 372 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/migrationhubstrategy/model/Severity.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws:... | aws/aws-sdk-cpp | aws-cpp-sdk-migrationhubstrategy/source/model/Severity.cpp | C++ | apache-2.0 | 2,154 |
using System;
using System.Collections.Generic;
using System.Text;
namespace SuperMap.Connector.Interface
{
public interface IRealspace : IComponent
{
}
}
| SuperMap/iClient-for-DotNet | Connector/Interface/IRealspace.cs | C# | apache-2.0 | 172 |
/**
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include "utils.h"
using std::string;
using std::vector;
using std::pair;
namespace UTILS_NS
{
namespace BootUtils
{
/... | appcelerator/kroll | libkroll/utils/boot_utils.cpp | C++ | apache-2.0 | 9,629 |
// idempotently prepends bin directory to current PATH and prints; e.g.,
// export PATH=`go run src/github.com/xoba/goutil/setpath/setpath.go`
package main
import (
"fmt"
"os"
"path"
"strings"
)
func main() {
wd, err := os.Getwd()
if err != nil {
fmt.Fprintln(os.Stderr, "can't run os.Getwd()")
os.Exit(1)
}... | xoba/goutil | setpath/setpath.go | GO | apache-2.0 | 631 |
(function ($){
$(".social-link").click(function (e) {
var type = $("[name=social_type]:checked").val();
if (!type) return;
var href = this.href;
this.href = href.replace(/next=\/([^\/]+)\/([^\/]+)\/([^\/]+)\//, function (all, action, backend, old_type) {
return "next=/{act... | huguesmayolle/famille | famille/static/js/register.js | JavaScript | apache-2.0 | 1,594 |
package com.example.dell.mytextapplication.share;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import org.xmlpull.v1.XmlPullParser;
import com.example.dell.mytextapplication.R;
import com.example.dell.mytextapplication.component.AppActivi... | YiNPNG/test | MyTextApplication/app/src/main/java/com/example/dell/mytextapplication/share/VideoGalleryActivity.java | Java | apache-2.0 | 15,064 |
/*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | aslanbekirov/crate | sql/src/main/java/io/crate/analyze/CreateRepositoryAnalyzedStatement.java | Java | apache-2.0 | 2,070 |
<?php
/**
* 显示层类
* 主要功能为模板解析
*/
class GF_View {
/**
* 路径相关参数
*/
private $group_name;
private $module_name;
private $action_name;
private $include_pattern = '/{include:([a-zA-Z][a-zA-Z0-9_-]*):([a-zA-Z][a-zA-Z0-9_-]*)}/';
private $layout_url = ''; //布局模板路径
private $layout = '';... | ylhtan/g-framework | Core/View.php | PHP | apache-2.0 | 14,956 |
import classNames from "classnames";
import React, { Component } from "react";
import { Tooltip } from "reactjs-components";
import {
FormReducer as ContainerReducer
} from "../../reducers/serviceForm/Container";
import {
FormReducer as ContainersReducer
} from "../../reducers/serviceForm/Containers";
import {
f... | jcloud-shengtai/dcos-ui_CN | plugins/services/src/js/components/forms/ContainerServiceFormAdvancedSection.js | JavaScript | apache-2.0 | 8,131 |
package de.framey.lab.evil.squishytentaclefun.blocksandlocals;
import de.framey.lab.evil.eviltentaclesofdeath.Tentacle;
import de.framey.lab.evil.squishytentaclefun.util.Basicified;
public class AmbiguousLocalVars implements Tentacle, Basicified {
public static void main(String[] args) {
new AmbiguousLoc... | Franknjava/TheNightOfTheTentacles | projects/SquishyTentacleFun/src/main/java/de/framey/lab/evil/squishytentaclefun/blocksandlocals/AmbiguousLocalVars.java | Java | apache-2.0 | 715 |
/*******************************************************************************
* Copyright 2014 Katja Hahn
*
* 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.o... | katjahahn/PortEx | src/main/java/com/github/katjahahn/parser/coffheader/COFFFileHeader.java | Java | apache-2.0 | 8,980 |
package com.tesshu.subsonic.client.fx.view;
import com.tesshu.subsonic.client.model.Directory;
import javafx.scene.image.Image;
import java.util.Optional;
public interface ImageCache {
Optional<Image> getMiddleIconImage(Directory directory);
Optional<Image> getSmallIconImage(Directory directory);
}
| tesshucom/subsonic-fx-player | subsonic-fx-player-api/src/main/java/com/tesshu/subsonic/client/fx/view/ImageCache.java | Java | apache-2.0 | 312 |
/*
* Copyright 2002-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | spring-projects/spring-framework | spring-r2dbc/src/main/java/org/springframework/r2dbc/connection/lookup/BeanFactoryConnectionFactoryLookup.java | Java | apache-2.0 | 2,991 |
#region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2008 Jonathan Skeet. 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
//... | clearwavebuild/elmah | src/Elmah/MoreLinq/MoreEnumerable.Pairwise.cs | C# | apache-2.0 | 3,216 |
/*
Copyright 2002 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | Uni-Sol/batik | sources/org/apache/batik/css/parser/DefaultPseudoClassCondition.java | Java | apache-2.0 | 2,066 |
using System.Reflection;
//
// 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: AssemblyCompany("raccoom.net")]
[assembly: AssemblyCopyright("(C) 2009 Christoph Richner,... | ChrisRichner/TreeViewFolderBrowser | BaseAssemblyInfo.cs | C# | apache-2.0 | 2,300 |
package org.loon.framework.android.game.core.graphics.component;
/**
* Copyright 2008 - 2010
*
* 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/LICEN... | cping/LGame | Java/old/Canvas_ver/src/org/loon/framework/android/game/core/graphics/component/ActorSpeed.java | Java | apache-2.0 | 1,697 |
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Tralus.Framework.BusinessModel.Entities;
using Tralus.Framework.BusinessModel.Security;
namespace Mahan.Infrastruct... | mehrandvd/Tralus | Samples/Infrastructure/Source/Mahan.Tralus.Infrastructure.BusinessModel/Entities/General/AircraftType.cs | C# | apache-2.0 | 1,635 |
package com.github.open96.jypm.fxml;
import com.github.open96.jypm.download.DownloadManager;
import com.github.open96.jypm.thread.TASK_TYPE;
import com.github.open96.jypm.thread.ThreadManager;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Scr... | Open96/JYpm | jypm-fxml/src/main/java/com/github/open96/jypm/fxml/DetailsWindowController.java | Java | apache-2.0 | 2,470 |
/**
* $RCSfile: UserAuthentication.java,v $
* $Revision: 1.1 $
* $Date: 2012/11/23 06:05:05 $
*
* Copyright 2003-2007 Jive Software.
*
* 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 cop... | micorochio/SVN | workspace/MobilePlatform/asmack/org/jivesoftware/smack/UserAuthentication.java | Java | apache-2.0 | 3,424 |
"""
Support for Wink binary sensors.
For more details about this platform, please refer to the documentation at
at https://home-assistant.io/components/binary_sensor.wink/
"""
import asyncio
import logging
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.components.wink import ... | persandstrom/home-assistant | homeassistant/components/binary_sensor/wink.py | Python | apache-2.0 | 6,764 |
package k8sauth
import (
"context"
k8s "github.com/Bplotka/oidc/login/k8scache"
"github.com/improbable-eng/kedge/pkg/tokenauth"
directauth "github.com/improbable-eng/kedge/pkg/tokenauth/sources/direct"
oauth2auth "github.com/improbable-eng/kedge/pkg/tokenauth/sources/oauth2"
oidcauth "github.com/improbable-eng/... | mwitkow/kedge | pkg/tokenauth/sources/k8s/k8s.go | GO | apache-2.0 | 2,170 |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 3/11/2016
* Time: 7:35 PM
*/
if (!defined('BASEPATH'))
exit('No direct script access allowed');
require_once APPPATH."/third_party/PHPEpp/Protocols/EPP/eppHttpsConnection.php";
class EppHttpsConnection extends Metaregistrar\EPP\eppHttpsConnecti... | aasiimweDataCare/sugarGirls | application/libraries/ProtocolsEPP_eppHttspConnection.php | PHP | apache-2.0 | 407 |
package tsvadaptor
import (
"github.com/ProtoML/ProtoML/formatadaptor/delimiteradaptor"
)
func New() *delimiteradaptor.DelimiterAdaptor {
return delimiteradaptor.New('\t')
}
| ProtoML/ProtoML | formatadaptor/tsvadaptor/tsvadaptor.go | GO | apache-2.0 | 179 |
module IOStreams
module Line
class Writer < IOStreams::Writer
attr_reader :delimiter
# Write a line at a time to a stream.
def self.stream(output_stream, **args)
# Pass-through if already a line writer
return yield(output_stream) if output_stream.is_a?(self.class)
yield... | rocketjob/iostreams | lib/io_streams/line/writer.rb | Ruby | apache-2.0 | 1,744 |
/*
* Copyright (c) 2014 Personal-Health-Monitoring-System
*
* 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... | Thangiee/Personal-Health-Monitoring-System | PHMS/src/main/java/com/cse3310/phms/ui/views/wiziard_model/UrlWizardModel.java | Java | apache-2.0 | 2,647 |
package me.aaron.androidprocessalive;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import me.aaron.androidprocessalive.service.ForegroundService;
import me.aaron.an... | AaronChanSunny/AndroidProcessAlive | app/src/main/java/me/aaron/androidprocessalive/MainActivity.java | Java | apache-2.0 | 2,119 |
export const indicators = Object.freeze({
CARET: "caret",
OPERATOR: "operator"
});
export const AVAILABLE_INDICATORS = Object.freeze(Object.values(indicators));
| Autodesk/hig | packages/tree-view/src/constants.js | JavaScript | apache-2.0 | 166 |
/*******************************************************************************
* Copyright FUJITSU LIMITED 2017
*******************************************************************************/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See... | opetrovski/development | oscm-saml2-api/javasrc/org/oscm/saml2/api/model/assertion/OneTimeUseType.java | Java | apache-2.0 | 1,284 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | JoeUtt/menggeqa | src/main/java/com/mengge/pagefactory/locator/CacheableLocator.java | Java | apache-2.0 | 877 |
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using QuickGraph.Contracts;
namespace QuickGraph
{
/// <summary>
/// A mutable incidence graph
/// </summary>
/// <typeparam name="TVertex"></typeparam>
/// <typeparam name="TEdge"></typeparam>
[ContractClass(t... | ezg/PanoramicDataWin8 | PanoramicDataWin8/utils/GraphSharpUWP/QuickGraph/IMutableIncidenceGraph.cs | C# | apache-2.0 | 1,259 |
/**
* Copyright 2008 - 2015 The Loon Game Engine 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 appl... | cping/LGame | Java/Loon-Neo-GWT/src/loon/gwtref/client/Parameter.java | Java | apache-2.0 | 1,326 |
//===--- CompletionInstance.cpp -------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | atrick/swift | lib/IDE/CompletionInstance.cpp | C++ | apache-2.0 | 24,230 |
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in com... | haikuowuya/android_system_code | src/com/sun/org/apache/xalan/internal/extensions/ExpressionContext.java | Java | apache-2.0 | 2,875 |