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 |
|---|---|---|---|---|---|
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | Shabirmean/carbon-device-mgt | components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/push/notification/PushNotificationConfig.java | Java | apache-2.0 | 1,474 |
/*
* 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 ... | ManfredTremmel/gwt-bean-validators | gwt-mt-widgets-restygwt-jaxrs/src/main/java/de/knightsoftnet/mtwidgets/client/ui/widget/PhoneNumberCommonRestSuggestBox.java | Java | apache-2.0 | 1,928 |
/**
* Support classes for working with annotated message-handling methods with
* non-blocking, reactive contracts.
*/
@NonNullApi
@NonNullFields
package org.springframework.messaging.handler.annotation.reactive;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
| spring-projects/spring-framework | spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/reactive/package-info.java | Java | apache-2.0 | 307 |
package edu.harvard.mgh.lcs.sprout.forms.study.to;
import java.io.Serializable;
public class ParameterTO implements Serializable {
private static final long serialVersionUID = -2079563494105436251L;
private String name;
private String value;
public String getName() {
return name;
}
public vo... | stephenlorenz/sproutstudy | sproutStudy_ejb/src/main/java/edu/harvard/mgh/lcs/sprout/forms/study/to/ParameterTO.java | Java | apache-2.0 | 494 |
/*
* Copyright (C) 2018-2021 DiffPlug
*
* 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 agr... | diffplug/goomph | src/main/java/com/diffplug/gradle/eclipse/MavenCentralMapping.java | Java | apache-2.0 | 6,641 |
<?
$MESS ['SH_IBLOCK_MODULE_NOT_INSTALLED'] = "Модуль инфоблоков не установлен";
?> | SidiGi/bx-simple-bigdata | bigdata.products.list/lang/ru/class.php | PHP | apache-2.0 | 111 |
/*
* Copyright 2013 The Ehensin Project
*
* The Ehensin Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | ehensin/ehensin-tunnel | tunnel-client/src/main/java/com/ehensin/tunnel/client/event/EventTypeEnum.java | Java | apache-2.0 | 825 |
/*
* Copyright 2017 NAVER Corp.
*
* 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 ... | suraj-raturi/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/service/stat/ResponseTimeChartService.java | Java | apache-2.0 | 2,401 |
/**********************************************************************
Copyright (c) 2012-2014 Alexander Kerner. 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... | MSqBAT/org.msqbat.fe | plugins/org.msqbat.fe.impl/src/org/msqbat/fe/impl/MALDIBoxes.java | Java | apache-2.0 | 1,672 |
/*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | webanno/webanno | webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/adapter/ChainAdapter.java | Java | apache-2.0 | 20,058 |
package com.appsfs.sfs.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import and... | luongvietdung/SFS-Client | app/src/main/java/com/appsfs/sfs/activity/SFSShopMainActivity.java | Java | apache-2.0 | 13,142 |
package com.hlab.fabrevealmenu.view;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;
import android.os.Build;
import android.util.Attrib... | HarinTrivedi/FABRevealMenu-master | fabrevealmenu/src/main/java/com/hlab/fabrevealmenu/view/FABRevealMenu.java | Java | apache-2.0 | 17,588 |
/*******************************************************************************
* Copyright (c) 2010 Haifeng Li
*
* 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... | arehart13/smile | core/src/main/java/smile/clustering/DBScan.java | Java | apache-2.0 | 9,726 |
/*
* Copyright 2011-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 "lice... | jentfoo/aws-sdk-java | aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/auth/GetIamAuthTokenRequest.java | Java | apache-2.0 | 2,219 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/transform/ResumeGameServerGroupRequestProtocolMarshaller.java | Java | apache-2.0 | 2,775 |
package org.reclipse.behavior.inference.automaton.symbols;
import org.reclipse.behavior.inference.automaton.AbstractSymbol;
import org.reclipse.behavior.inference.automaton.Token;
import org.reclipse.tracer.model.tracegraph.TGMethodCall;
/**
* @author lowende
* @author Last editor: $Author: mcp $
* @v... | CloudScale-Project/StaticSpotter | plugins/org.reclipse.behavior.inference/src/org/reclipse/behavior/inference/automaton/symbols/Epsilon.java | Java | apache-2.0 | 1,149 |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | googleapis/google-api-java-client-services | clients/google-api-services-billingbudgets/v1beta1/1.30.1/com/google/api/services/billingbudgets/v1beta1/CloudBillingBudget.java | Java | apache-2.0 | 41,775 |
/*
* Copyright 2017 Johannes Donath <johannesd@torchmind.com>
* and other copyright owners as documented in the project's IP log.
*
* 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
*
* ... | Torchmind/Observables | src/main/java/com/torchmind/observable/primitive/SimpleShortObservable.java | Java | apache-2.0 | 2,007 |
package com.lonepulse.icklebot.annotation.inject;
/*
* #%L
* IckleBot
* %%
* Copyright (C) 2013 Lonepulse
* %%
* 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.ap... | sahan/IckleBot | icklebot/src/main/java/com/lonepulse/icklebot/annotation/inject/InjectAll.java | Java | apache-2.0 | 1,139 |
#include "source/common/stats/allocator_impl.h"
#include <algorithm>
#include <cstdint>
#include "envoy/stats/sink.h"
#include "envoy/stats/stats.h"
#include "source/common/common/hash.h"
#include "source/common/common/lock_guard.h"
#include "source/common/common/logger.h"
#include "source/common/common/thread.h"
#i... | envoyproxy/envoy | source/common/stats/allocator_impl.cc | C++ | apache-2.0 | 17,160 |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... | lostpebble/pebblebed | dist/operations/DatastoreFlush.js | JavaScript | apache-2.0 | 3,302 |
/*
* 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 ... | TheRingbearer/HAWKS | ode/bpel-epr/src/main/java/org/apache/ode/bpel/common/evt/DebugBpelEventListener.java | Java | apache-2.0 | 2,241 |
<?php
// Check for empty fields
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['phone']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
{
echo "No arguments Provided!";
return false;
}
$name = $_POST['name'];
$email_address = $_POST['em... | quickbyte/quickbyte.github.io | mail/contact_me.php | PHP | apache-2.0 | 1,092 |
<?php
/**
* Template Name: Style Guide
*
* @package {{PROJECT NAME}}
* @since {{VERSION}}
*/
?>
<?php
include_once('_incs/html/header.php');
if (have_posts()) : while (have_posts()) : the_post();
$body = get_the_content();
function cgy_codifyBody($matches){
... | criography/spidersock-generator | app/source/{{THEME SLUG}}/page-styleGuide.php | PHP | apache-2.0 | 1,229 |
module FHIR
class Client
VERSION = '1.6.9'
end
end
| tambling/fhir_client | lib/fhir_client/version.rb | Ruby | apache-2.0 | 59 |
/**
* Copyright (C) 2010-2013 Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | lizhanhui/Alibaba_RocketMQ | rocketmq-client/src/main/java/com/alibaba/rocketmq/client/impl/ClientRemotingProcessor.java | Java | apache-2.0 | 10,234 |
package cav.pdst.ui.activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.... | CavInc/PDANDSt | app/src/main/java/cav/pdst/ui/activity/AbonementActivity.java | Java | apache-2.0 | 12,221 |
using System;
using System.Globalization;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using WebApplicationWithInternallyScheduledWebJobs.Model... | davidebbo-test/WebApplicationWithInternallyScheduledWebJobs | WebApplicationWithInternallyScheduledWebJobs/Controllers/AccountController.cs | C# | apache-2.0 | 17,416 |
/**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | tkao1000/pinot | pinot-core/src/main/java/com/linkedin/pinot/core/segment/creator/ColumnStatistics.java | Java | apache-2.0 | 2,150 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/TileStyle.java | Java | apache-2.0 | 3,886 |
# Copyright 2015 DataStax, 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 writing, s... | jfelectron/python-driver | cassandra/cqlengine/models.py | Python | apache-2.0 | 33,196 |
/*
* Copyright 2012 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... | krasserm/ipf | commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/transform/requests/query/FindDocumentsForMultiplePatientsQueryTransformer.java | Java | apache-2.0 | 2,267 |
/*
* Copyright (c) 2001-2007, Inversoft 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... | prime-framework/prime-mvc | src/main/java/org/primeframework/mvc/util/TypeTools.java | Java | apache-2.0 | 7,911 |
'''
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 use this ... | radicalbit/ambari | ambari-server/src/test/python/TestVersion.py | Python | apache-2.0 | 3,260 |
/*
* Copyright 2005-2017 Dozer Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | STRiDGE/dozer | core/src/test/java/org/dozer/config/GlobalSettingsTest.java | Java | apache-2.0 | 3,741 |
package org.wrl.spring.tx.service.impl.required;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;
import org.springframework.transaction.support.TransactionTempla... | wangruiling/samples | spring/src/main/java/org/wrl/spring/tx/service/impl/required/RequiredUserServiceImplWithSuccess.java | Java | apache-2.0 | 1,788 |
/*
* 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... | jentfoo/aws-sdk-java | aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/waiters/CertificateAuthorityCSRCreated.java | Java | apache-2.0 | 1,934 |
/*
* 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... | jentfoo/aws-sdk-java | aws-java-sdk-pinpointemail/src/main/java/com/amazonaws/services/pinpointemail/model/PutConfigurationSetReputationOptionsRequest.java | Java | apache-2.0 | 7,982 |
package cbedoy.cblibrary.services;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
im... | SelfD3veloper/CBLibrary | app/src/main/java/cbedoy/cblibrary/services/ApplicationLoader.java | Java | apache-2.0 | 4,741 |
describe('sandbox library - xml2Json', function () {
this.timeout(1000 * 60);
var Sandbox = require('../../../'),
context;
beforeEach(function (done) {
Sandbox.createContext({}, function (err, ctx) {
context = ctx;
done(err);
});
});
afterEach(functi... | postmanlabs/postman-sandbox | test/unit/sandbox-libraries/xml2Json.test.js | JavaScript | apache-2.0 | 1,119 |
package org.nutz.plugins.quartz;
import java.util.Date;
import org.nutz.ioc.impl.PropertiesProxy;
import org.nutz.lang.Lang;
import org.nutz.lang.Strings;
import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.nutz.plugins.quartz.annotation.Scheduled;
import org.nutz.resource.Scans;
import org.quartz.CronSched... | lusparioTT/fks | src/org/nutz/plugins/quartz/NutQuartzCronJobFactory.java | Java | apache-2.0 | 4,260 |
var querystring = require('querystring');
var http = require('http');
var config = require("../conf/conf.js");
var static_cookie = "";
var callNsApi = function(opt, post,cb) {
if (!opt.headers)
opt.headers = {};
if (static_cookie && opt) {
cookie = (static_cookie + "").split(";").shift();
opt.headers.Cooki... | Iragne/NSAPIUnitTest | libs/http.js | JavaScript | apache-2.0 | 1,754 |
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.vcs.log.data.index;
import com.intellij.concurrency.ConcurrentCollectionFactory;
import com.intellij.openapi.Disposable;
import com.intelli... | smmribeiro/intellij-community | platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java | Java | apache-2.0 | 26,215 |
/*
* 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... | jentfoo/aws-sdk-java | aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/TableRestoreStatusType.java | Java | apache-2.0 | 1,910 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle... | carnegiespeech/translations | es_mx/groupselect.php | PHP | apache-2.0 | 2,968 |
/* Copyright 2018 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... | DavidNorman/tensorflow | tensorflow/core/distributed_runtime/rpc/eager/grpc_eager_client.cc | C++ | apache-2.0 | 8,617 |
using AcceptFramework.Domain.Evaluation;
using FluentNHibernate.Mapping;
namespace AcceptFramework.Mapping.Evaluation
{
public class EvaluationCategoryMap : ClassMap<EvaluationCategory>
{
public EvaluationCategoryMap()
{
Table("EvaluationCategory");
Id(e => e.Id);
... | accept-project/accept-api | AcceptFramework/Mapping/Evaluation/EvaluationCategoryMap.cs | C# | apache-2.0 | 385 |
package me.zbl.fullstack.entity.vo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import me.zbl.fullstack.entity.Article;
import org.hibernate.validator.constraints.NotEmpty;
/**
* 修改博客表单
* <p>
*
* @author James
* @date 17-12-4
*/
@Setter
@Getter
@NoArgsConstructor
public class Bl... | LeFullStack/FullStack | src/main/java/me/zbl/fullstack/entity/vo/BlogModifyModel.java | Java | apache-2.0 | 697 |
/**
* 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... | zhe-thoughts/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | Java | apache-2.0 | 291,024 |
/**
* Copyright 2014 Fernando Rincon Martin <frm.rincon@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | frincon/openeos | modules/org.openeos.services.ui.vaadin/src/main/java/org/openeos/services/ui/vaadin/internal/VaadinMenuContributor.java | Java | apache-2.0 | 4,933 |
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of ... | spring-projects/spring-framework | spring-core/src/main/java/org/springframework/asm/Symbol.java | Java | apache-2.0 | 10,365 |
package com.iss.gms.entity;
import java.util.Date;
public class EmployeeRelegationInfo {
//Ô±¹¤±àºÅ
private String employeeId;
//Ô±¹¤±àºÅ(ÐÞ¸ÄËùÓÃ)
private String employeeIdNew;
//Ô±¹¤ÐÕÃû
private String employeeName;
//ÏîÄ¿×ܼà
private String projectDirector;
//ÏîÄ¿¾Àí
private String projectManager;
//Ïî... | yhb612/EETMS | GMS/src/com/iss/gms/entity/EmployeeRelegationInfo.java | Java | apache-2.0 | 6,777 |
package dtos.conversion.converters;
import dtos.conversion.AbstractConverter;
import dtos.generic.RemoteDto;
import models.generic.RemoteModel;
/**
* Created by daniel on 10.08.15.
*/
public abstract class RemoteConverter<T extends RemoteModel, S extends RemoteDto>
extends AbstractConverter<T, S> {
protect... | cha87de/colosseum | app/dtos/conversion/converters/RemoteConverter.java | Java | apache-2.0 | 577 |
/*
* 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
* distribut... | troels/nz-presto | presto-main/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PruneTableScanColumns.java | Java | apache-2.0 | 2,980 |
using Sitecore.Data.Items;
using Sitecore.Security.Accounts;
namespace AdvancedContentSecurity.Core.ItemSecurity
{
public interface IItemSecurityRepository
{
bool HasPermission(string permissionName, Item item, Account account);
}
}
| cardinal252/Sitecore.AdvancedContentSecurity | AdvancedContentSecurity.Core/ItemSecurity/IItemSecurityRepository.cs | C# | apache-2.0 | 257 |
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using CSharpGuidelinesAnalyzer.Extensions;
using JetBrains.Annotations;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Operations;
namespace CSharpGuidelinesAnaly... | bkoelman/CSharpGuidelinesAnalyzer | src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer/Rules/MiscellaneousDesign/EvaluateQueryBeforeReturnAnalyzer.cs | C# | apache-2.0 | 30,491 |
package dk.itu.pervasive.mobile.socket;
import android.os.AsyncTask;
/**
* Created by centos on 4/7/14.
*/
public class RestartCycleTask extends AsyncTask<Void,Void,Void>{
RequestDelegate _delegate;
public RestartCycleTask( RequestDelegate d ){
_delegate = d;
}
@Override
protected Void... | tonybeltramelli/Ubiquitous-Media-Sharing-Surface | dk.itu.pervasive.mobile.android/src/dk/itu/pervasive/mobile/socket/RestartCycleTask.java | Java | apache-2.0 | 490 |
package com.hs.mail.imap.dao.test;
import java.sql.SQLException;
import javax.sql.DataSource;
import org.apache.commons.lang3.ArrayUtils;
import org.dbunit.database.DatabaseDataSourceConnection;
import org.dbunit.database.IDatabaseConnection;
import org.dbunit.dataset.xml.XmlDataSet;
import org.dbunit.oper... | svn2github/hwmail-mirror | hedwig-api/src/test/java/com/hs/mail/imap/dao/test/AbstractDataSourceDatabaseTest.java | Java | apache-2.0 | 1,368 |
package de.rwth.idsg.bikeman.service;
import de.rwth.idsg.bikeman.domain.BookedTariff;
import de.rwth.idsg.bikeman.domain.CardAccount;
import de.rwth.idsg.bikeman.domain.CustomerType;
import de.rwth.idsg.bikeman.domain.Manager;
import de.rwth.idsg.bikeman.domain.OperationState;
import de.rwth.idsg.bikeman.domain.Tarif... | RWTH-i5-IDSG/BikeMan | src/main/java/de/rwth/idsg/bikeman/service/ManagerService.java | Java | apache-2.0 | 2,961 |
/*
* Copyright(c) 2017 lizhaotailang
*
* 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... | TonnyL/Espresso | app/src/main/java/io/github/marktony/espresso/zxing/camera/PreviewCallback.java | Java | apache-2.0 | 1,832 |
package de.hftstuttgart.projectindoorweb.web.internal.requests.building;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class AddNewBuilding {
private String buildingName;
private int numberOfFloors;
private int imagePixelWidth;
priva... | ProjectIndoor/projectindoorweb | src/main/java/de/hftstuttgart/projectindoorweb/web/internal/requests/building/AddNewBuilding.java | Java | apache-2.0 | 4,305 |
/*
* Copyright (C) 2011-2014 GUIGUI Simon, fyhertz@gmail.com
*
* This file is part of libstreaming (https://github.com/fyhertz/libstreaming)
*
* Spydroid 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... | xunboo/JJCamera | android/src/main/java/com/jjcamera/apps/iosched/streaming/rtp/H264Packetizer.java | Java | apache-2.0 | 11,342 |
package com.planet_ink.coffee_mud.Races;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet... | oriontribunal/CoffeeMud | com/planet_ink/coffee_mud/Races/Moose.java | Java | apache-2.0 | 7,510 |
/*
* Copyright 2014 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | dgutierr/dashbuilder | dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/workflow/edit/SQLDataSetEditWorkflow.java | Java | apache-2.0 | 3,663 |
package com.hediapps.authentication.service;
import com.hediapps.authentication.dto.UserDto;
import org.springframework.security.core.userdetails.UserDetailsService;
public interface AuthenticationService extends UserDetailsService {
void save(UserDto user);
}
| HediBenAhmed/hediApps | hediapps-authentication/src/main/java/com/hediapps/authentication/service/AuthenticationService.java | Java | apache-2.0 | 275 |
/*
* Copyright 2019 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 ... | spinnaker/echo | echo-rest/src/main/java/com/netflix/spinnaker/echo/config/RestUrls.java | Java | apache-2.0 | 1,222 |
<?php
/**
* Created by PhpStorm.
* User: meathill
* Date: 14-6-26
* Time: 下午5:17
*/
require_once "Base.class.php";
class Source extends \gamepop\Base {
const VS = '`t_4399_vs_ptbus`';
static $VS_ptbus = 'ptbusid';
static $VS_4399 = '4399id';
public function getTable($fields) {
return self::VS;
}
}... | Dianjoy/gamepop-inc | Source.class.php | PHP | apache-2.0 | 325 |
/*
* Copyright 2005-2017 Dozer Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | STRiDGE/dozer | core/src/test/java/org/dozer/vo/TheFirstSubClassPrime.java | Java | apache-2.0 | 993 |
package com.HQHub.DAO;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import com.HQHub.Util.Connection;
import com.HQHub.pojo.F1DynFlight;
import com.HQHub.pojo.F3Airport;
import com.HQHub.pojo.RRdt;
public class FlightQueryDAO {
public static List<F1DynFlight... | ahhbzyz/HQHubAndroid | src/com/HQHub/DAO/FlightQueryDAO.java | Java | apache-2.0 | 2,823 |
#
# Cookbook Name:: turbobil
# Recipe:: iptables
#
# unicorn redirect
include_recipe "simple_iptables"
simple_iptables_rule "unicorn-iptables" do
table "nat"
direction "PREROUTING"
rule [ "--protocol tcp --dport 80 --jump REDIRECT --to-port 8080"]
jump false
end
| roramirez/turbobil-kitchen | my-cookbooks/turbobil/recipes/iptables.rb | Ruby | apache-2.0 | 272 |
// ---------------------------------------------------------------------------------------------------------------------
// <copyright file="IMsSqlTableStreamWriterAdapterMapper.cs" company="">
//
// </copyright>
// <summary>
// Defines the IMsSqlTableStreamWriterAdapterMapper type.
// </summary>
// -------------... | brettveenstra/dbfriend | src/Core/Provider/MsSql/Mappers/IMsSqlTableStreamWriterAdapterMapper.cs | C# | apache-2.0 | 623 |
package in.ejava.rtc.plugin.rest.api;
import in.ejava.rest.plugin.core.DataType;
import in.ejava.rest.plugin.core.HttpMethod;
import in.ejava.rest.plugin.core.client.Response;
import in.ejava.rest.plugin.core.client.RestClientFactory;
import in.ejava.rest.plugin.core.session.SessionCookieHolder;
import java.u... | spranab/rest-plugin | rtc-plugin-rest/src/main/java/in/ejava/rtc/plugin/rest/api/AuthenticationAPI.java | Java | apache-2.0 | 1,743 |
#! /usr/bin/env ruby
require 'spec_helper'
require 'puppet/util/nimsoft_section.rb'
describe Puppet::Util::NimsoftSection do
describe "when creating a new section" do
it "should be possible to create a section without a parent" do
section = described_class.new('root')
expect(section.parent).to be_n... | stschulte/puppet-nimsoft | spec/unit/util/nimsoft_section_spec.rb | Ruby | apache-2.0 | 5,267 |
package org.nutz.plugins.cache.dao.impl.convert;
import org.nutz.plugins.cache.dao.api.CacheSerializer;
public abstract class AbstractCacheSerializer implements CacheSerializer {
public static final byte[] NULL_OBJ = new byte[0];
protected boolean isNULL_OBJ(Object obj) {
if (obj == null)
... | lusparioTT/fks | src/org/nutz/plugins/cache/dao/impl/convert/AbstractCacheSerializer.java | Java | apache-2.0 | 577 |
// Copyright 2022 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202202/VideoPositionType.java | Java | apache-2.0 | 3,790 |
/*
* Copyright 2014 Basis Technology Corp.
*
* 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... | basis-technology-corp/tcl-regex-java | src/main/java/com/basistech/tclre/RegMatch.java | Java | apache-2.0 | 1,573 |
"""Base OpHandler for ops that use group lasso regularizer.
This OpHandler should not be called directly. It is a virtual base class
for regularization source OpHandlers that use Group Lasso as their regularizer.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_f... | google-research/morph-net | morph_net/framework/group_lasso_base_op_handler.py | Python | apache-2.0 | 5,974 |
/*
* Copyright 2012 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 applicable l... | powertac/powertac-server | logtool-core/src/main/java/org/powertac/logtool/Logtool.java | Java | apache-2.0 | 1,307 |
/*
* Copyright 2014 ElecEntertainment
*
* 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... | ElecEntertainment/EEUtils | src/main/java/net/larry1123/elec/util/logger/UtilsLogFormat.java | Java | apache-2.0 | 2,042 |
/*
* 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 ... | lu4242/ext-myfaces-2.0.2-patch | trunk/myfaces-impl-2021override/src/main/java/org/apache/myfaces/ov2021/lifecycle/PhaseListenerManager.java | Java | apache-2.0 | 5,062 |
package com.activiti.asyncTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Component;
import java.util.concurrent.Future;
@Component
public class A... | oyidZh/SpringcloudConfig | src/test/java/com/activiti/asyncTest/AsyncTask.java | Java | apache-2.0 | 1,195 |
import { Injectable } from '@angular/core';
import { Subject, Observable } from 'rxjs';
@Injectable()
export class GroupMemberInteractionService {
private outChangeGroupMember = new Subject<string[]>();
onChangeGroupMember$: Observable<string[]>;
constructor() {
this.onChangeGroupMember$ = this.ou... | denzelsN/pinpoint | web/src/main/webapp/v2/src/app/core/components/group-member/group-member-interaction.service.ts | TypeScript | apache-2.0 | 487 |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// AlipayOpenMiniPayeeUnbindModel Data Structure.
/// </summary>
[Serializable]
public class AlipayOpenMiniPayeeUnbindModel : AopObject
{
/// <summary>
/// 支付宝登陆账号,和pid两者必选其一,小程序如收款pid与小程序PID... | 329277920/Snail | Snail.Pay.Ali.Sdk/Domain/AlipayOpenMiniPayeeUnbindModel.cs | C# | apache-2.0 | 774 |
package com.cloudoa.framework.flow.entity;
// Generated by Hibernate Tools
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.per... | lufei1344/cloud-oa | src/main/java/com/cloudoa/framework/flow/entity/BpmInstance.java | Java | apache-2.0 | 4,453 |
package com.nanyang.app.main.home.sport.cricket;
import com.nanyang.app.main.home.sport.basketball.BasketballMixInfo;
import com.nanyang.app.main.home.sport.main.SportContract;
import com.nanyang.app.main.home.sport.tennis.TennisState;
import com.nanyang.app.main.home.sportInterface.IBetHelper;
/**
* Created by Admi... | q197585312/testApp | Afb88/src/main/java/com/nanyang/app/main/home/sport/cricket/CricketState.java | Java | apache-2.0 | 629 |
/*
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | rancher/k3s | vendor/github.com/rancher/wrangler-api/pkg/generated/controllers/core/v1/namespace.go | GO | apache-2.0 | 11,182 |
public class App {
public static void main(String[] args) {
Office theOffice = new Office();
Person p1 = new Person("p1");
Person p2 = new Person("p2");
Person p3 = new Person("p3");
theOffice.registerObserver(p1);
theOffice.registerObserver(p2);
theOffice.registerObserver(p3);
theOffice.notifyAllObs... | nishtahir/MektoryJava2 | Module5/ObserverPattern/src/main/java/com/example/App.java | Java | apache-2.0 | 349 |
<?php
// configuration
include('../connect.php');
// new data
$id = $_POST['memi'];
$a = $_POST['code'];
$z = $_POST['gen'];
$g = $_POST['o_price'];
$j = $_POST['sold'];
$k = $_POST['price'];
$m = $_POST['level'];
$qtyl = $_POST['qtyl'];
$l = $_POST['wholesaleprice'];
$maxr = $_POST['maxr'];
$maxws = $_POST['maxws']/2... | mathunjoroge/pharmacy | main/saveeditproduct.php | PHP | apache-2.0 | 692 |
/*
* Copyright 2015-16, Yahoo! Inc.
* Licensed under the terms of the Apache License 2.0. See LICENSE file at the project root for terms.
*/
package com.yahoo.sketches.theta;
import static com.yahoo.sketches.theta.ForwardCompatibilityTest.convertSerV3toSerV1;
import static com.yahoo.sketches.theta.ForwardCompatibil... | pjain1/sketches-core | sketches/src/test/java/com/yahoo/sketches/theta/DirectUnionTest.java | Java | apache-2.0 | 24,164 |
package com.gmail.thelimeglass.Expressions;
import java.util.ArrayList;
import org.bukkit.entity.Entity;
import org.bukkit.event.Event;
import org.eclipse.jdt.annotation.Nullable;
import com.gmail.thelimeglass.Utils.Annotations.Config;
import com.gmail.thelimeglass.Utils.Annotations.PropertyType;
import com.gmail.th... | TheLimeGlass/Skellett | src/main/java/com/gmail/thelimeglass/Expressions/ExprEntityID.java | Java | apache-2.0 | 1,548 |
package com.cardpay.pccredit.intopieces.model;
import java.util.Date;
import com.wicresoft.jrad.base.database.model.BusinessModel;
//冻结流程和授信信息维护共用
public class QuotaFreezeInfo extends BusinessModel{
private static final long serialVersionUID = 1L;
private String clientNo;
private Date startDate;
... | JohnCny/PCCREDIT_QZ | src/java/com/cardpay/pccredit/intopieces/model/QuotaFreezeInfo.java | Java | apache-2.0 | 3,171 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
using WpfApplicationLauncher.StaticData;
using System.Collections.Concurrent;
namespace WpfApplicationLauncher.DataSourcing.FileSearchProvider
{
/// <summary>
/// Simple... | tlmorgen/WpfApplicationLauncher | WpfApplicationLauncher/WpfApplicationLauncher/DataSourcing/FileSearchProvider/FileDB.cs | C# | apache-2.0 | 9,370 |
package springfox.documentation.grails;
public class DefaultGeneratedClassNamingStrategy implements GeneratedClassNamingStrategy {
@Override
public String name(Class clazz) {
return String.format("%s.generated.%s", clazz.getPackage().getName(), clazz.getSimpleName());
}
}
| springfox/springfox-grails-integration | springfox-grails/src/main/java/springfox/documentation/grails/DefaultGeneratedClassNamingStrategy.java | Java | apache-2.0 | 284 |
/**
* RDeviceOutput.java 2010/09/06
*/
package com.ycsoft.beans.device;
import java.io.Serializable;
import java.util.Date;
import com.ycsoft.commons.constants.DictKey;
import com.ycsoft.commons.store.MemoryDict;
import com.ycsoft.daos.config.POJO;
/**
* RDeviceOutput -> R_DEVICE_OUTPUT mapping
... | leopardoooo/cambodia | ycsoft-lib/src/main/java/com/ycsoft/beans/device/RDeviceOutput.java | Java | apache-2.0 | 2,913 |
package com.natpryce.jnirn.examples;
public class AnotherClassWithNativeMethods {
public static class ArgClass {}
public static class RetClass {}
public native int nativeMethodOne();
public native int nativeMethodTwo();
public native RetClass nativeMethodThree(ArgClass a);
}
| npryce/jnirn | test-input/com/natpryce/jnirn/examples/AnotherClassWithNativeMethods.java | Java | apache-2.0 | 299 |
package jdepend.metadata;
import java.util.ArrayList;
import java.util.List;
public class CandidateUtil {
public final static String IDDecollator = "$";
public final static String getId(String place, String name) {
if (place != null) {
return place + IDDecollator + name;
} else {
return nam... | jdepend/cooper | cooper-source/cooper-metadata/src/main/java/jdepend/metadata/CandidateUtil.java | Java | apache-2.0 | 1,106 |
define(['backbone', 'backbone.paginator'], function(Backbone, PageableCollection) {
var LogLine = Backbone.Model.extend({
idAttribute: 'LINE',
})
return PageableCollection.extend({
model: LogLine,
url: function() { return '/status/log/'+this.bl },
mode: 'infinite',
... | DiamondLightSource/SynchWeb | client/src/js/modules/status/collections/gda.js | JavaScript | apache-2.0 | 1,142 |
function manualInput(){
let manualCheckBox = document.getElementById("checkBoxManual").checked;
let manualID = document.getElementById("manual");
if(manualCheckBox === true){
manualID.style.display = "block";
}else{
manualID.style.display = "none";
}
}
function printArray(arrayString){
let length ... | jliang27/jliang27.github.io | projects/pr3/scripts/algorithm.js | JavaScript | apache-2.0 | 1,688 |
package jp.sourceforge.ea2ddl.dao.cbean.cq;
import jp.sourceforge.ea2ddl.dao.cbean.cq.bs.BsTGenoptCQ;
import org.seasar.dbflute.cbean.ConditionQuery;
import org.seasar.dbflute.cbean.sqlclause.SqlClause;
/**
* The condition-query of t_genopt.
* <p>
* You can implement your original methods here.
* Th... | taktos/ea2ddl | ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/cq/TGenoptCQ.java | Java | apache-2.0 | 1,617 |
/*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | delebash/orientdb-parent | core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLExplain.java | Java | apache-2.0 | 2,109 |