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 |
|---|---|---|---|---|---|
/*
* 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 ... | nextreports/nextreports-server | src/ro/nextreports/server/aop/EntitiesRemoveAdvice.java | Java | apache-2.0 | 1,930 |
/*
* Copyright 2015-2018 G-Labs. All Rights Reserved.
* https://zuixjs.github.io/zuix
*
* 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... | genielabs/zuix | build/scripts/lint.js | JavaScript | apache-2.0 | 2,327 |
$: << File.join(File.dirname(__FILE__), "/../lib" )
require 'rubygems'
require 'spec'
require 'dynomite'
| chef/ruby-dynomite | spec/spec_helper.rb | Ruby | apache-2.0 | 106 |
/**
* 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 m... | clibois/wss4j | ws-security-stax/src/main/java/org/apache/wss4j/stax/validate/UsernameTokenValidatorImpl.java | Java | apache-2.0 | 11,364 |
import {firestore} from '../../utils/firestore';
const HOOK_COLLECTION_NAME = 'github-event-deliveries';
export const HOOK_MAX_AGE = 60 * 1000;
class HooksModel {
/**
* This method may be called multiple times in quick succession resulting
* in a the doc already existing.
*/
async logHook(hookDelivery: ... | PolymerLabs/project-health | src/server/models/hooksModel.ts | TypeScript | apache-2.0 | 1,305 |
package com.ycsoft.report.query.daq;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.ycsoft.commons.exception.ReportException;
import com.ycsoft.commons.helper.LoggerHelper;
import com.ycsoft.report.db.ConnContainer;
/**
* 数据库提取数... | leopardoooo/cambodia | boss-report/src/main/java/com/ycsoft/report/query/daq/DBAcquisition.java | Java | apache-2.0 | 1,854 |
package org.aws4j.data.dynamo.attribute.converter;
import java.lang.reflect.Type;
import java.util.Set;
import org.aws4j.core.exception.NotImplementedException;
import org.aws4j.core.util.JacksonUtil;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
import com.fasterxml.jackson.core.JsonProcessingExcep... | aws4j/dynamo-mapper | src/main/java/org/aws4j/data/dynamo/attribute/converter/JsonConverter.java | Java | apache-2.0 | 1,500 |
package ee.jiss.commons.json.convert;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer;
import org.joda.time.LocalDate;
import org.joda.time.format.DateTimeFormatter;
import java.io.IOExcep... | jiss-software/jiss-commons | commons-json/src/main/java/ee/jiss/commons/json/convert/LocalDateParser.java | Java | apache-2.0 | 935 |
/*
* Copyright 2004-2015 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... | hildeth/chapel | compiler/main/driver.cpp | C++ | apache-2.0 | 41,155 |
/*
* 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 ... | JingchengDu/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java | Java | apache-2.0 | 32,336 |
export * from './dynamic-date.module';
export * from './dynamic-date.pipe';
| our-city-app/oca-backend | embedded-apps/projects/shared/src/lib/dynamic-date/index.ts | TypeScript | apache-2.0 | 76 |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
namespace Game.Event
{
public class Event : MonoBehaviour
{
#region Fields
[SerializeField]
private UnityEvent _startList;
[SerializeField]
private UnityEvent _end... | hilllo/HaloLandsAR | HaloLands/Assets/Scripts/EventSystem/Event.cs | C# | apache-2.0 | 779 |
var schema = require("./schema.js");
var xml = require("./xml.js");
module.exports.createBuilder = schema.createBuilder;
module.exports.parse = xml.parse;
module.exports.parseXml = xml.parse;
| pagi-org/pagijs | src/js/schema/index.js | JavaScript | apache-2.0 | 193 |
#if TEXTURE_EXPOSE == TEXTURE_NAMES
#elif TEXTURE_EXPOSE == TEXTURE_BUILDER_NAME
builArmchair,
#elif TEXTURE_EXPOSE == TEXTURE_FILE
__FILE__,
#elif TEXTURE_EXPOSE == TEXTURE_BUILDER_BODY
void builArmchair()
{
Channel t;
t.Cells(100);
Channel r = t; r.Scale(53.f/255.f, 83.f/255.f);
Channel g = t; g.Scale(3... | laurentlb/Ctrl-Alt-Test | F/data/textures/armchair.cc | C++ | apache-2.0 | 678 |
package echo;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSo... | edgar615/javase-study | netty-study/src/main/java/echo/EchoServer.java | Java | apache-2.0 | 1,712 |
package br.edu.fema.sacheti.intercept;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import br.edu.fema.sacheti.model.Cliente;
import br.edu.fema.sacheti.model.Usuario;
@SessionScoped
@Named
public class ClienteInfo implements Serializable{
private static ... | jpsacheti/limasoftware-java-suporte | src/main/java/br/edu/fema/sacheti/intercept/ClienteInfo.java | Java | apache-2.0 | 691 |
package com.gushikustudios.common;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.ui.Align;
import com.badlogic.gdx.scenes.scene2d.ui.Button;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle;
public class TextEntry extends Butt... | minthubk/tankz | gushiku-common/src/com/gushikustudios/common/TextEntry.java | Java | apache-2.0 | 1,449 |
# -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-aiplatform | samples/generated_samples/aiplatform_generated_aiplatform_v1_tensorboard_service_update_tensorboard_async.py | Python | apache-2.0 | 1,730 |
//===--- DiagnosticConsumer.cpp - Diagnostic Consumer Impl ----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | ben-ng/swift | lib/Basic/DiagnosticConsumer.cpp | C++ | apache-2.0 | 1,355 |
import React, {Component} from 'react';
import {withRouter} from 'react-router';
import EUCookie from "area51-eucookie";
import Navigation from '../Navigation';
class About extends Component {
render() {
return (<div>
<Navigation page="contactUs"/>
<EUCookie/>
<div cla... | peter-mount/departureboards | src/contactUs/ContactUs.js | JavaScript | apache-2.0 | 1,184 |
<?php
session_start();
// include "check-user.php";
include "connection.php";
if (isset($_REQUEST['quiz_id'])) {
$quiz_id = $_REQUEST['quiz_id'];
}else{
$quiz_id = 1;
}
$sql = "SELECT COUNT(*) FROM questions WHERE quiz_id=$quiz_id";
$result = mysqli_query($... | Kunnapat/chowtime | quiz2.php | PHP | apache-2.0 | 4,848 |
# This file is for dev branch
| umitmertcakmak/PySpyder | scrappers/devTest.py | Python | apache-2.0 | 31 |
/*
* Copyright (C) 2012 ENTERTAILION 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 ... | entertailion/Open-Launcher-for-GTV | src/com/entertailion/android/launcher/widget/Clock.java | Java | apache-2.0 | 2,261 |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[AddComponentMenu("RPG and MMO UI/Tooltip/Tooltip")]
public class RnMUI_Tooltip : MonoBehaviour
{
public class AttributeInfo
{
public string value;
public string text;
public bool singleColumnRow;
public RectOffset margin;
}
p... | zhulangen/unity3d-test | Assets/Bison/RnM UI for NGUI/Scripts/UI/RnMUI_Tooltip.cs | C# | apache-2.0 | 13,438 |
/**
* Copyright (C) 2015 Agro-Know, Deutsches Forschungszentrum für Künstliche Intelligenz, iMinds,
* Institut für Angewandte Informatik e. V. an der Universität Leipzig,
* Istituto Superiore Mario Boella, Tilde, Vistatec, WRIPL (http://freme-project.eu)
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | freme-project/Broker | src/main/java/eu/freme/broker/tools/RDFELinkSerializationFormats.java | Java | apache-2.0 | 1,982 |
using System;
using System.Linq;
using Ductus.FluentDocker.Commands;
using Ductus.FluentDocker.Services;
using Ductus.FluentDocker.Tests.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Ductus.FluentDocker.Tests
{
public abstract class FluentDockerTestBase
{
protected IHostService Doc... | mariotoffia/FluentDocker | Ductus.FluentDocker.Tests/FluentDockerTestBase.cs | C# | apache-2.0 | 1,664 |
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_6400 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_6400.java | Java | apache-2.0 | 151 |
package io.cattle.platform.core.addon.metadata;
import io.cattle.platform.core.constants.NetworkConstants;
import io.cattle.platform.core.model.Network;
import io.cattle.platform.object.util.DataAccessor;
import io.github.ibuildthecloud.gdapi.annotation.Field;
import java.util.Map;
public class NetworkInfo implement... | cjellick/cattle | modules/model/src/main/java/io/cattle/platform/core/addon/metadata/NetworkInfo.java | Java | apache-2.0 | 3,884 |
using FluentAssertions;
using NFugue.Integration.MusicXml;
using NFugue.Staccato;
using System.IO;
using Xunit;
namespace NFugue.Tests.Integration
{
public class MusicXmlParserTests
{
private readonly MusicXmlParser xmlParser = new MusicXmlParser();
[Fact]
public void Hello_world_part... | mdileep/NFugue | tests/NFugue.Tests/Integration/MusicXmlParserTests.cs | C# | apache-2.0 | 1,134 |
/*
* 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 ... | google/web-prototyping-tool | projects/cd-common/src/lib/components/search-box/search-box.module.ts | TypeScript | apache-2.0 | 1,186 |
/*
Copyright 1996-2008 Ariba, 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... | pascalrobert/aribaweb | src/aribaweb/src/main/java/ariba/ui/aribaweb/util/Parameters.java | Java | apache-2.0 | 5,756 |
/*
* Copyright (C) 2010-2013 The SINA WEIBO Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | joy-inc/joy-library | library-joy/src/main/java/com/joy/library/share/weibo/openapi/legacy/AccountAPI.java | Java | apache-2.0 | 4,811 |
@extends('emails.layout')
{{--
This is an email blade for resetting password
The following view data is required:
$contentHeader The callout/header of the email's body
$firstName The name of the recipient.
$link The password reset link.
$code The reset code.
... | merhawifissehaye/dreamfactory-configured | resources/views/emails/invite.blade.php | PHP | apache-2.0 | 912 |
/*******************************************************************************
* In the Hi-WAY project we propose a novel approach of executing scientific
* workflows processing Big Data, as found in NGS applications, on distributed
* computational infrastructures. The Hi-WAY software stack comprises the func-
* ... | mackeprm/cuneiform | cuneiform-core/src/main/java/de/huberlin/wbi/cuneiform/core/cre/TicketReadyMsg.java | Java | apache-2.0 | 2,394 |
export { default } from "./tab-title";
| Sage/carbon | src/components/tabs/__internal__/tab-title/index.d.ts | TypeScript | apache-2.0 | 39 |
package psidev.psi.mi.jami.datasource;
import psidev.psi.mi.jami.model.InteractionEvidence;
/**
* A Data source of interaction evidences.
* It gives full access to all the interactions using Iterator or the full collection.
* It can also give information about the size of the dataSource
*
* @author Marine Dumous... | MICommunity/psi-jami | jami-core/src/main/java/psidev/psi/mi/jami/datasource/InteractionEvidenceSource.java | Java | apache-2.0 | 532 |
package com.bigbug.android.pp.sync;
import android.content.Context;
import com.bigbug.android.pp.Config;
import java.util.List;
import static com.bigbug.android.pp.util.LogUtils.makeLogTag;
public class EventFeedbackApi {
private static final String TAG = makeLogTag(EventFeedbackApi.class);
private stati... | bigbugbb/PrayerPartner | app/src/main/java/com/bigbug/android/pp/sync/EventFeedbackApi.java | Java | apache-2.0 | 2,202 |
/*
* 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")... | firejack-open/Firejack-Platform | platform/src/main/webapp/js/net/firejack/platform/core/validation/MessageLevel.js | JavaScript | apache-2.0 | 1,875 |
/*
* Copyright 2016 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... | ederign/uberfire | uberfire-extensions/uberfire-wires/uberfire-wires-webapp/src/main/java/org/uberfire/ext/wires/shared/preferences/bean/MyPreference.java | Java | apache-2.0 | 2,269 |
package com.github.simy4.xpath;
import com.github.simy4.xpath.fixtures.FixtureAccessor;
import com.google.gson.JsonObject;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.Param;
import org.openjd... | SimY4/xpath-to-xml | xpath-to-json-gson/src/jmh/java/com/github/simy4/xpath/GsonJsonBuilderBenchmark.java | Java | apache-2.0 | 1,179 |
require 'schedule_serializer'
class Payment < ActiveRecord::Base
include IceCube
self.inheritance_column = nil
belongs_to :category
PAYMENT_TYPES = %w[Spend Receive].freeze
PAYMENT_PERIODS = %w[Day Week Month].freeze
validates :name, presence: true
validates :category, presence: true
validates :... | dotledger/dotledger | app/models/payment.rb | Ruby | apache-2.0 | 556 |
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleapis/google-api-ruby-client | generated/google-apis-monitoring_v1/spec/generated_spec.rb | Ruby | apache-2.0 | 919 |
package com.frameworkset.platform.menu;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.jsp.PageContext;
import org.apache.log4j.Logger;
import com.frameworkset.platform.config.ConfigManager;
import com.frameworkset.platform.framework.Framework;
import com.framework... | tzou24/BPS | BPS/src/com/frameworkset/platform/menu/BaseColumnTree.java | Java | apache-2.0 | 7,661 |
#include <bits/stdc++.h>
using namespace std;
#include<string>
int mod(int n)
{
int s=0,c=1,a;
a=n;
while(a>0)
{
s+=a%10;
a/=10;
}
if(s==9)return 2;
else if(s<9)return 1;
if(s%9==0)
{
return 1+mod(s);
}
}
int main()
{
char str[1001];
int i,j,k... | moniruzzaman-monir/Oj-solved | UVa all in C++/uva10922.cpp | C++ | apache-2.0 | 917 |
//
// HTTPSStreamFactory.cpp
//
// Library: NetSSL_OpenSSL
// Package: HTTPSClient
// Module: HTTPSStreamFactory
//
// Copyright (c) 2006-2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Net/HTTPSStreamFactory.h"
#include "Poco/Net/HTT... | macchina-io/macchina.io | platform/NetSSL_OpenSSL/src/HTTPSStreamFactory.cpp | C++ | apache-2.0 | 4,963 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.02.... | amedia/meteo | meteo-jaxb/src/main/java/no/api/meteo/jaxb/temperatureverification/v1_0/Windspeed.java | Java | apache-2.0 | 4,167 |
/*
* Copyright 2010-2017 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 "license" fil... | cedral/aws-sdk-cpp | aws-cpp-sdk-ds/source/model/DescribeLDAPSSettingsRequest.cpp | C++ | apache-2.0 | 1,835 |
/*
* Copyright 2014 Open Source Robotics 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 applicab... | arpg/Gazebo | gazebo/physics/dart/DARTMultiRayShape.hh | C++ | apache-2.0 | 1,763 |
using System;
namespace MockResponse.Core.Utilities
{
public class DateTimeProvider : IDateTimeProvider
{
public DateTime Now => DateTime.Now;
public DateTime UtcNow => DateTime.UtcNow;
}
} | Orbittman/MockResponse | MockResponse.Core/Utilities/DateTimeProvider.cs | C# | apache-2.0 | 222 |
/* Copyright 2019 Google LLC. 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... | tensorflow/tfjs | tfjs-backend-wasm/src/cc/kernels/ResizeBilinear_test.cc | C++ | apache-2.0 | 3,867 |
/*
* 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/licenses/LICE... | Sargul/dbeaver | plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/edit/SQLDatabasePersistActionComment.java | Java | apache-2.0 | 1,173 |
//
// Copyright 2014 Gustavo J Knuppe (https://github.com/knuppe)
//
// 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
//
// ... | knuppe/SharpNL | src/SharpNL/Utility/FeatureGen/IAdaptiveFeatureGenerator.cs | C# | apache-2.0 | 3,334 |
package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;
import java.util.Map;
import org.seasar.dbflute.cbean.*;
import org.seasar.dbflute.cbean.cvalue.ConditionValue;
import org.seasar.dbflute.cbean.sqlclause.SqlClause;
import jp.sourceforge.ea2ddl.dao.cbean.cq.ciq.*;
import jp.sourceforge.ea2ddl.dao.cbean.*;
import... | taktos/ea2ddl | ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/cq/bs/BsTConnectorCQ.java | Java | apache-2.0 | 53,489 |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/torque/declaration-visitor.h"
namespace v8 {
namespace internal {
namespace torque {
void DeclarationVisitor::Visit(Expression* expr) {
... | fceller/arangodb | 3rdParty/V8/v7.1.302.28/src/torque/declaration-visitor.cc | C++ | apache-2.0 | 22,124 |
/*
* Copyright © 2010, 2011, 2012 Talis Systems 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 ... | castagna/hbase-rdf | src/main/java/com/talis/hbase/rdf/layout/vpindexed/TableDescVPIndexedCommon.java | Java | apache-2.0 | 1,247 |
/**
*/
package com.mguidi.soa.soa.impl;
import com.mguidi.soa.soa.Operation;
import com.mguidi.soa.soa.Service;
import com.mguidi.soa.soa.SoaPackage;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common... | mguidi/SOA-Code-Factory | com.mguidi.soa/src-gen/com/mguidi/soa/soa/impl/ServiceImpl.java | Java | apache-2.0 | 5,474 |
/*
* 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-iotfleethub/src/main/java/com/amazonaws/services/iotfleethub/model/transform/ListTagsForResourceResultJsonUnmarshaller.java | Java | apache-2.0 | 2,982 |
package com.koch.ambeth.ioc;
import com.koch.ambeth.ioc.util.IImmutableTypeSet;
import com.koch.ambeth.util.IConversionHelper;
import com.koch.ambeth.util.typeinfo.IPropertyInfoProvider;
public class BeanMonitoringSupport extends AbstractBeanMonitoringSupport {
private IServiceContext beanContext;
private IPropert... | Dennis-Koch/ambeth | jambeth/jambeth-ioc/src/main/java/com/koch/ambeth/ioc/BeanMonitoringSupport.java | Java | apache-2.0 | 1,213 |
package fr.iut.csid.empower.elearning.core.service.impl;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Named;
import org.springframework.data.jpa.repository.JpaRepository;
import fr.iut.csid.empower.elearning.core.domain.course.Course;
import fr.iut.csid.empower.elearning.core.domain.course... | piibl/elearning-parent | elearning-core/src/main/java/fr/iut/csid/empower/elearning/core/service/impl/CourseSessionServiceImpl.java | Java | apache-2.0 | 3,566 |
<?php
declare(strict_types=1);
/*
* +----------------------------------------------------------------------+
* | ThinkSNS Plus |
* +----------------------------------------------------------------------+
* | Copyright (c) 2016-Present ZhiYiChuangXiang Technol... | slimkit/thinksns-plus | app/Models/Role.php | PHP | apache-2.0 | 3,639 |
/*
* Copyright 2017 SIP3.IO 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 applicab... | sip3io/tapir | twig/src/main/java/io/sip3/tapir/twig/mongo/Mongo.java | Java | apache-2.0 | 3,180 |
/**
* Transcend Computing, Inc.
* Confidential and Proprietary
* Copyright (c) Transcend Computing, Inc. 2012
* All Rights Reserved.
*/
package com.transcend.monitor.transform;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import c... | TranscendComputing/TopStackMetricSearch | src/com/transcend/monitor/transform/BaseMonitorUnmarshaller.java | Java | apache-2.0 | 2,416 |
require 'spec_helper'
describe 'graphite', :type => :class do
let(:facts) { {:osfamily => 'Debian'} }
let(:params) {{
:user => 'graphite',
:group => 'graphite',
:manage_user => true,
}}
it { should contain_user('carbon_cache_user').with_ensure('present').
with_name('graphite').
wi... | gds-operations/puppet-graphite | spec/classes/graphite/graphite__user_spec.rb | Ruby | apache-2.0 | 455 |
package ch.adnovum.jcan.katharsis.mock.repository;
import java.util.HashMap;
import java.util.Map;
import javax.enterprise.context.ApplicationScoped;
import ch.adnovum.jcan.katharsis.mock.models.Project;
import ch.adnovum.jcan.katharsis.security.ResourcePermissionInformationImpl;
import io.katharsis.queryspec.QueryS... | apetrucci/katharsis-framework | katharsis-security/src/integrationTest/java/ch/adnovum/jcan/katharsis/mock/repository/ProjectRepository.java | Java | apache-2.0 | 1,176 |
/*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License... | stepanovdg/big-data-plugin | api/hdfs/src/main/java/org/pentaho/bigdata/api/hdfs/HadoopFileSystemLocator.java | Java | apache-2.0 | 1,411 |
/*
* Copyright 2013, Edmodo, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License.
* You may obtain a copy of the License in the LICENSE file, or at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | akhilesh0707/Android-Image-Cropper | cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImageView.java | Java | apache-2.0 | 23,437 |
/// <reference types="lodash" />
/**
* @module model
*/
/** */
import * as _ from 'lodash';
/**
* custom Array type supporting an index lookup.
*
* Beware, the implementation does not support modifications to the data contained.
*/
export interface ArrayLookup<T> extends Array<T> {
/**
* elements keyed b... | relution-io/relution-sdk | lib/model/ModelContainer.d.ts | TypeScript | apache-2.0 | 4,822 |
/*
* Copyright 2015-2020 OpenCB
*
* 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 ... | j-coll/opencga | opencga-catalog/src/main/java/org/opencb/opencga/catalog/utils/UuidUtils.java | Java | apache-2.0 | 3,545 |
<?php
/**
*
*/
class LocationModel
{
private $state;
public function setState($state) {
$this->state = $state;
}
public function getState() {
return $this->state;
}
} | prajyotpro/phpmvc | app/models/Location.php | PHP | apache-2.0 | 178 |
// Copyright 2000-2017 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.lang.java;
import com.intellij.codeInsight.CodeInsightBundle;
import com.intellij.codeInsight.completion.CompletionMemory;
import com.intellij.codeInsi... | apixandru/intellij-community | java/java-impl/src/com/intellij/lang/java/JavaDocumentationProvider.java | Java | apache-2.0 | 34,288 |
<?php
/**
* Copyright (C) 2012 Vizualizer 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 ... | Vizualizer/VizualizerShop | classes/VizualizerShop/Module/Payment/Delete.php | PHP | apache-2.0 | 1,168 |
// @declaration: true
export module a {
export function foo(x: number) {
return x;
}
}
export module c {
export import b = a.foo;
export var bVal = b(10);
export var bVal2 = b;
}
| mbrowne/typescript-dci | tests/cases/compiler/internalAliasFunctionInsideLocalModuleWithExport.ts | TypeScript | apache-2.0 | 220 |
// 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... | gsantovena/mesos | src/master/quota.cpp | C++ | apache-2.0 | 7,795 |
/*
* Copyright (C) 2004 Felipe Gustavo de Almeida
* Copyright (C) 2010-2016 The MPDroid Project
*
* 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 source code mus... | hurzl/dmix | JMPDComm/src/main/java/com/anpmech/mpd/item/FilesystemTreeEntry.java | Java | apache-2.0 | 2,365 |
$(function() {
// $('.collapse').collapse('hide');
$('.list-group-item.active').parent().parent('.collapse').collapse('show');
$.ajaxSetup({cache: true});
var fuzzyhound = new FuzzySearch();
function setsource(url, keys) {
$.getJSON(url).then(function (response) {
fuzzyhound.... | hschroedl/FluentAST | docs/js/main.js | JavaScript | apache-2.0 | 966 |
package com.github.seanroy.plugins;
/**
* A Maven plugin allowing a jar built as a part of a Maven project to be
* deployed to AWS lambda.
* @author Sean N. Roy
*/
import java.io.File;
import java.util.List;
import java.util.regex.Pattern;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugi... | buri17/lambduh-maven-plugin | src/main/java/com/github/seanroy/plugins/LambduhMojo.java | Java | apache-2.0 | 7,545 |
using System;
using ChartDirector;
namespace CSharpChartExplorer
{
public class rotatedarea : DemoModule
{
//Name of demo module
public string getName() { return "Rotated Area Chart"; }
//Number of charts produced in this demo module
public int getNoOfCharts() { return 1; }
... | jojogreen/Orbital-Mechanix-Suite | NetWinCharts/CSharpWinCharts/rotatedarea.cs | C# | apache-2.0 | 2,394 |
package com.quark.admin.service.impl;
import com.quark.admin.service.PostsService;
import com.quark.common.base.BaseServiceImpl;
import com.quark.common.dao.PostsDao;
import com.quark.common.entity.Posts;
import com.quark.common.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.... | ChinaLHR/JavaQuarkBBS | quark-admin/src/main/java/com/quark/admin/service/impl/PostsServiceImpl.java | Java | apache-2.0 | 2,846 |
/**
* 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... | zhouyao1994/incubator-superset | superset/assets/cypress/integration/sqllab/tabs.js | JavaScript | apache-2.0 | 1,920 |
<?php
function GetDBHandle($machine, $username, $password, $db_name) {
$con = mysqli_connect($machine, $username, $password, $db_name);
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_errno();
$_SESSION['ErrMsg'] = 'Server Error'; // put up a server error page.
... | parthabb/se | model/model.php | PHP | apache-2.0 | 4,147 |
(function() {
'use strict';
angular
.module('bamUiAngular')
.service('webDevTec', webDevTec);
/** @ngInject */
function webDevTec() {
var data = [
{
'title': 'AngularJS',
'url': 'https://angularjs.org/',
'description': 'HTML enhanced for web apps!',
'logo'... | sandor-nemeth/bam | bam-ui-angular/src/app/components/webDevTec/webDevTec.service.js | JavaScript | apache-2.0 | 2,427 |
using System.Web.Http;
namespace IISApp.Controllers
{
public class SimpleController : ApiController
{
public string Get() {
return "In controller";
}
}
}
| Bigsby/PoC | Web/Owin/IISApp/IISApp/Controllers/SimpleController.cs | C# | apache-2.0 | 198 |
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | gstevey/gradle | subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultCachedClasspathTransformer.java | Java | apache-2.0 | 4,767 |
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | lzanol/amphtml | src/event-helper.js | JavaScript | apache-2.0 | 5,533 |
import type { IScope } from 'angular';
import { mock, noop } from 'angular';
import { mount, shallow } from 'enzyme';
import React from 'react';
import type { Application, ApplicationDataSource, IMoniker, IServerGroup } from '@spinnaker/core';
import { ApplicationModelBuilder, REACT_MODULE } from '@spinnaker/core';
i... | spinnaker/deck | packages/cloudfoundry/src/presentation/widgets/accountRegionClusterSelector/AccountRegionClusterSelector.spec.tsx | TypeScript | apache-2.0 | 15,140 |
<%--
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"); y... | awajid/daytrader | assemblies/javaee/dojo-ui-web/src/main/webapp/widget/Context.js | JavaScript | apache-2.0 | 4,087 |
package com.wateryan.matrix.api;
public class Version {
public static final String R_0 = "r0";
public static final String V_1 = "v1";
}
| wateryan/matrix-java | src/main/java/com/wateryan/matrix/api/Version.java | Java | apache-2.0 | 142 |
/*
* Copyright 2016-present Open Networking Laboratory
*
* 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... | LorenzReinhart/ONOSnew | drivers/cisco/netconf/src/main/java/org/onosproject/drivers/cisco/TextBlockParserCisco.java | Java | apache-2.0 | 11,067 |
<?php
declare(strict_types = 1);
/*
* This file is part of the Etcetera package.
*
* (c) bitExpert AG
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace bitExpert\Etcetera\Reader\File\Excel;
/**
* Generic implementation o... | bitExpert/etcetera | src/bitExpert/Etcetera/Reader/File/Excel/LegacyExcelReader.php | PHP | apache-2.0 | 3,095 |
/*
* 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 ... | afs/jena-workspace | src/main/java/rdf_star/DevRDFStar.java | Java | apache-2.0 | 10,152 |
package io.cattle.platform.agent.instance.service.impl;
import static io.cattle.platform.core.model.tables.HostTable.*;
import static io.cattle.platform.core.model.tables.InstanceHostMapTable.*;
import static io.cattle.platform.core.model.tables.NicTable.*;
import io.cattle.platform.agent.instance.service.InstanceNicL... | cloudnautique/cloud-cattle | code/iaas/agent-instance/src/main/java/io/cattle/platform/agent/instance/service/impl/HostIpAddressMapNicLookup.java | Java | apache-2.0 | 1,363 |
# -*- encoding: utf-8 -*-
from django.core.paginator import Paginator, EmptyPage, InvalidPage
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from functools import wraps
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.core... | frhumanes/consulting | web/src/decorators.py | Python | apache-2.0 | 3,520 |
var a00068 =
[
[ "base", "a00068.html#a5ea674ad553da52d47ffe1df62d6eb9d", null ],
[ "MemberSignature", "a00068.html#a31088531e14b7f77e1df653d1003237d", null ],
[ "_ConstTessMemberResultCallback_5_3", "a00068.html#a47e920466d4dcc3529e4c296c8ad619f", null ],
[ "Run", "a00068.html#a5fa1d64d09741b114bda9495... | stweil/tesseract-ocr.github.io | 3.x/a00068.js | JavaScript | apache-2.0 | 340 |
package tech.hobbs.hlfdocmgmntsystem.dao.messages.Impl;
import java.util.List;
import javax.mail.Message;
import org.springframework.stereotype.Repository;
import tech.hobbs.hlfdocmgmntsystem.dao.messages.MessageDao;
import tech.hobbs.hlfdocmgmntsystem.model.student.Student;
@Repository
public class Me... | wchiviti/hlfdocsweb | Higherlife Document Management System/src/main/java/tech/hobbs/hlfdocmgmntsystem/dao/messages/Impl/MessageDaoImpl.java | Java | apache-2.0 | 1,181 |
package de.uni_mannheim.informatik.dws.winter.usecase.events.model;
import java.util.ArrayList;
import java.util.List;
import de.uni_mannheim.informatik.dws.winter.model.DataSet;
import de.uni_mannheim.informatik.dws.winter.model.defaultmodel.Attribute;
import de.uni_mannheim.informatik.dws.winter.model.io.CSVDataSet... | olehmberg/winter | winter-usecases/src/main/java/de/uni_mannheim/informatik/dws/winter/usecase/events/model/EventCSVFormatter.java | Java | apache-2.0 | 960 |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0111001101111010/Voice-Enabled-Timer | src/com/voidstar/glass/voiceenabledtimer/SelectValueScrollAdapter.java | Java | apache-2.0 | 2,132 |
/*
* Copyright 2013, WebGate Consulting AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | OpenNTF/XPagesToolkit | org.openntf.xpt.agents/src/org/openntf/xpt/agents/master/ExecutionUserProperties.java | Java | apache-2.0 | 1,540 |
/// <reference path="GenericAnimator.ts"/>
class Vector2Animator<T extends RenderObject> extends GenericAnimator<T, Vector2> {
interpolate(amount: number, from: Vector2, to: Vector2, interpolation: Interpolation): Vector2 {
switch (interpolation) {
case Interpolation.Linear:
ret... | Dia6lo/Mechanism | Mechanism/RenderObjects/Animations/Animators.ts | TypeScript | apache-2.0 | 865 |
/*
* Copyright (C) 2012-2014 Jorrit "Chainfire" Jongma
*
* 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... | aravindsagar/SmartLockScreen | libsuperuser/src/eu/chainfire/libsuperuser/Shell.java | Java | apache-2.0 | 66,888 |
#region License(Apache Version 2.0)
/******************************************
* Copyright ®2017-Now WangHuaiSheng.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
* http://www.apache.org/l... | wanghuaisheng/WitsWay | Solutions/AppUtilities/Utilities/Thread/LockObject.cs | C# | apache-2.0 | 1,682 |