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 |
|---|---|---|---|---|---|
<?php
namespace OpenConext\Value\Saml\Metadata;
use OpenConext\Value\Assert\Assertion;
use OpenConext\Value\RegularExpression;
use OpenConext\Value\Serializable;
final class ShibbolethMetadataScope implements Serializable
{
/**
* @var string
*/
private $scope;
/**
* @var bool
*/
... | OpenConext/SamlValueObject | src/OpenConext/Value/Saml/Metadata/ShibbolethMetadataScope.php | PHP | apache-2.0 | 2,613 |
/*jshint camelcase: false */
var common = require('../../lib/common');
var msRestRequest = require('../../lib/common/msRestRequest');
var chai = require('chai');
var should = chai.should();
var util = require('util');
exports.clean = function(provisioningParameters, done) {
var resourceGroupName = provisioningParame... | zhongyi-zhang/meta-azure-service-broker | test/integration/cleaner.js | JavaScript | apache-2.0 | 1,244 |
/*
* Copyright 2014 Christophe Pollet
*
* 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... | cpollet/sportracker | webapp/src/test/java/net/cpollet/sportracker/dozer/TestHashingDozerConverter.java | Java | apache-2.0 | 2,427 |
/*
* Copyright 2014 FIZ Karlsruhe
*
* 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... | escidoc-ng/escidoc-ng | escidocng-backend/src/main/java/de/escidocng/WebInitializer.java | Java | apache-2.0 | 1,132 |
using System;
namespace DotKafka.Prototype.Common.Errors
{
public class UnknownServerException : ApiException
{
public UnknownServerException() { }
public UnknownServerException(string message) : base(message) { }
public UnknownServerException(string message, Exception inner) : base(m... | rudygt/dot-kafka | DotKafka.Prototype/Common/Errors/UnknownServerException.cs | C# | apache-2.0 | 346 |
#!/usr/bin/python
import sys
# try to import from the default place Munki installs it
try:
from munkilib import FoundationPlist, munkicommon
except:
sys.path.append('/usr/local/munki')
from munkilib import FoundationPlist, munkicommon
import os
from datetime import datetime
FILE_LOCATION = "/Users/Shared... | grahamgilbert/munki-dnd | munki-dnd.py | Python | apache-2.0 | 1,572 |
package com.nitorcreations.willow.metrics;
import javax.inject.Named;
@Named("/types")
public class MessageTypesMetric extends TagListMetric {
public MessageTypesMetric() {
super("category");
}
}
| NitorCreations/willow | willow-servers/src/main/java/com/nitorcreations/willow/metrics/MessageTypesMetric.java | Java | apache-2.0 | 206 |
package model
// Pool .
type Pool struct {
Id int64 `json:"id"`
CoinId int64 `json:"coin_id"`
Title string `json:"title"`
Description string `json:"description"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Status int64 `json:"status"`
IsBottom int6... | LQJJ/demo | 126-go-common-master/app/job/live/xlottery/internal/model/model.go | GO | apache-2.0 | 2,202 |
/*
* Copyright to 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 applicabl... | khartig/assimilator | rio-resolver/resolver-aether/src/main/java/org/rioproject/resolver/aether/util/ConsoleTransferListener.java | Java | apache-2.0 | 4,898 |
var Canvas = require('canvas');
var Image = Canvas.Image;
// Constants
var canvasWidth = 350;
var canvasHeight = 150;
var cellSize = 30;
var colorMap = {
0: 'rgba(0, 0, 0, 0)',
1: '#F7F6EA',
2: '#E6E6E1',
3: '#EBC000'
};
module.exports = generate;
function generate(title, accuracy) {
var canvas = new Ca... | gw1018/imageservice | images/heatmap.js | JavaScript | apache-2.0 | 1,415 |
package com.cyou.cpush.apns.notification;
import java.util.concurrent.atomic.AtomicInteger;
public class DefaultNotification implements Notification {
private static AtomicInteger IDENTIFIER_GENERATOR = new AtomicInteger(Integer.MAX_VALUE-1);
private int identifier;
private Device device;
private Payload paylo... | beforeeight/cpush-apns | src/main/java/com/cyou/cpush/apns/notification/DefaultNotification.java | Java | apache-2.0 | 1,207 |
package com.craftmend.openaudiomc.spigot.modules.proxy.service;
import com.craftmend.openaudiomc.generic.networking.DefaultNetworkingService;
import com.craftmend.openaudiomc.generic.networking.abstracts.AbstractPacket;
import com.craftmend.openaudiomc.generic.networking.client.objects.player.ClientConnection;
import ... | ApocalypsjeNL/OpenAudioMc | plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/proxy/service/ProxyNetworkingService.java | Java | apache-2.0 | 3,602 |
package fr.excilys.computerdatabase.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframewor... | krmmlsh/Java_Training | service/src/main/java/fr/excilys/computerdatabase/service/UserServices.java | Java | apache-2.0 | 3,492 |
package com.wecan.xhin.studio;
import android.app.Application;
import android.content.Context;
import com.avos.avoscloud.AVOSCloud;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.OkHttpClien... | XhinLiang/Studio | app/src/main/java/com/wecan/xhin/studio/App.java | Java | apache-2.0 | 3,181 |
package com.cantinho.spoonacularexample.retrofit_models;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by samirtf on 14/02/17.
*/
public class Recipe {
@SerializedName("id")
private Integer id;
@SerializedName("image")
private String imag... | Cantinho/spoonaculator-android-example | SpoonacularExample/app/src/main/java/com/cantinho/spoonacularexample/retrofit_models/Recipe.java | Java | apache-2.0 | 923 |
#pragma once
#include <map>
#include "..\..\Defines.hpp"
namespace te
{
class DynamicLibrary;
class TE_EXPORT DynamicLibraryManager
{
protected:
std::map<string, DynamicLibrary*> m_loadedLibraries;
public:
DynamicLibraryManager();
~DynamicLibraryManager();
/*
Loads the library with the specifi... | unpause/TeazelEngine | TeazelEngine/TeazelEngine/core/dynlib/DynamicLibraryManager.hpp | C++ | apache-2.0 | 543 |
/*
* The University of Wales, Cardiff Triana Project Software License (Based
* on the Apache Software License Version 1.1)
*
* Copyright (c) 2007 University of Wales, Cardiff. All rights reserved.
*
* Redistribution and use of the software in source and binary forms, with
* or without modification, are permitted... | CSCSI/Triana | triana-gui/src/main/java/org/trianacode/gui/main/imp/PlusMinusIcon.java | Java | apache-2.0 | 5,724 |
package ru.job4j.profession;
/**
* This class describes student with no parameters and operations.
*
* @author Kucykh Vasily (mailto:basil135@mail.ru)
* @version $Id$
* @since 12.04.2017
*/
public class Student extends Human {
/**
* constructor of Student class.
*
* @param name is name of a s... | Basil135/vkucyh | chapter_002/src/main/java/ru/job4j/profession/Student.java | Java | apache-2.0 | 399 |
package io.datakernel.di.impl;
import java.util.concurrent.atomic.AtomicReferenceArray;
@SuppressWarnings("rawtypes")
public abstract class AbstractUnsyncCompiledBinding<R> implements CompiledBinding<R> {
protected final int scope;
protected final int index;
protected AbstractUnsyncCompiledBinding(int scope, int ... | softindex/datakernel | core-di/src/main/java/io/datakernel/di/impl/AbstractUnsyncCompiledBinding.java | Java | apache-2.0 | 875 |
/*
* 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 ... | DieBauer/flink | flink-connectors/flink-jdbc/src/test/java/org/apache/flink/api/java/io/jdbc/JDBCOutputFormatTest.java | Java | apache-2.0 | 5,607 |
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by 俊帆 on 2016/10/13.
*/
public class Test {
public void init() throws InterruptedException {
ApplicationContext applicationContext = new ClassPathXmlApplication... | tctxl/gulosity | test/src/main/java/Test.java | Java | apache-2.0 | 474 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* Unles... | NuwanSameera/carbon-device-mgt-plugins | components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.plugin/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/plugin/impl/AndroidSenseManagerService.java | Java | apache-2.0 | 3,097 |
package com.bestxty.designpattern.decorator;
/**
* @author jiangtaiyang
* Created by jiangtaiyang on 2017/6/29.
*/
public class ConcreteComponent implements Component {
@Override
public void operation() {
System.out.println("real operation.");
}
}
| swjjxyxty/Study | studyjavase/studyjavasedesignpattern/src/main/java/com/bestxty/designpattern/decorator/ConcreteComponent.java | Java | apache-2.0 | 281 |
/*
* Copyright 2015 - 2021 TU Dortmund
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | LearnLib/alex | backend/src/test/java/de/learnlib/alex/data/entities/actions/misc/AssertVariableActionTest.java | Java | apache-2.0 | 4,771 |
package com.nollec.datebasetest;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... | songyang2088/A-week-to-develop-android-app-plan | 001_FeatureGuide/databasetest/src/androidTest/java/com/nollec/datebasetest/ApplicationTest.java | Java | apache-2.0 | 354 |
/*
* Copyright 2003 - 2014 The eFaps Team
*
* 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 ... | eFaps/eFaps-WebApp | src/main/java/org/efaps/ui/wicket/behaviors/dojo/package-info.java | Java | apache-2.0 | 797 |
/*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* 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:/... | x-meta/xworker | xworker_swt/src/main/java/xworker/swt/xworker/ExtendWidgetCreator.java | Java | apache-2.0 | 3,602 |
package com.psc.vote.vote.domain;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
public class Anchor {
String anchorName;
BigDecimal anchorPrice;
Date creationDate;
String status;
String clientId;
String clientName;
String clientWebsiteAddress;
String clie... | sgudupat/psc-vote-server | src/main/java/com/psc/vote/vote/domain/Anchor.java | Java | apache-2.0 | 2,490 |
package ar.com.larreta.stepper.controllers;
import javax.servlet.ServletContext;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.validation.Errors;
import org.springframework.web.bind.annotation.Request... | llarreta/larretasources | Stepper/src/main/java/ar/com/larreta/stepper/controllers/ParentController.java | Java | apache-2.0 | 3,717 |
import {moduleFor, test} from 'ember-qunit';
moduleFor('controller:login', 'Unit | Controller | login', {
needs: ['service:metrics', 'service:session']
});
test('it exists', function (assert) {
let controller = this.subject();
assert.ok(controller);
});
| piotrb5e3/0bit | tests/unit/controllers/login-test.js | JavaScript | apache-2.0 | 262 |
namespace SoukeyNetget
{
partial class frmAddPlanTask
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 t... | zhouweiaccp/code | SoukeyNetget/frmAddPlanTask.Designer.cs | C# | apache-2.0 | 20,352 |
import os
from ..libs import xlrd_tools
HERE = os.path.dirname(os.path.abspath(__file__))
def test_xlsx_xlrd():
with open(os.path.join(HERE, 'fixtures', 'test.xlsx')) as fp:
headers, data = xlrd_tools.xlsx_xlrd(fp)
assert headers[0] == {'field': 'one', 'id': 'one', 'name': 'one'}
assert data[0] ... | chrisseto/modular-file-renderer | mfr/ext/tabular/tests/test_xlsx_tools.py | Python | apache-2.0 | 362 |
/*
* Copyright 2015 David A. Boyuka II
*
* 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 ... | daboyuka/PIQUE | tests/util/test-zo-iter.cpp | C++ | apache-2.0 | 3,200 |
package com.ecas.base;
import com.ecas.domain.User;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class BaseDomain extends AbstractDomain {
private User updateUser;
@Column(name = "update_time")
private... | mrhailua/ecas | domain/src/main/java/com/ecas/base/BaseDomain.java | Java | apache-2.0 | 682 |
package ru.nivanov;
import org.json.simple.JSONObject;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Created by Nikolay Ivanov on 27.03.2018.
*... | Piterski72/Java-a-to-z | chapter_009/Task08/src/main/java/ru/nivanov/UserFilter.java | Java | apache-2.0 | 1,401 |
package org.apereo.cas.configuration.model.support.cookie;
import org.apereo.cas.configuration.support.RequiresModule;
import com.fasterxml.jackson.annotation.JsonFilter;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;
import java.io.Seri... | pdrados/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/cookie/CookieProperties.java | Java | apache-2.0 | 4,453 |
#include "OI.h"
#include "WPILib.h"
#include "RobotMap.h"
#include "Commands/Elevator/Lift.h"
#include "Commands/Elevator/Lower.h"
#include "Commands/Grabber/OpenArms.h"
#include "Commands/Grabber/CloseArms.h"
#include "Commands/Chassis/Drive.h"
#include "Commands/PutToSmartDashboard.h"
OI::OI() {
this->stick = new J... | NeatTeam1943/Slifer | src/OI.cpp | C++ | apache-2.0 | 1,198 |
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in complia... | Hybrid-Cloud/conveyor | conveyor/clone/drivers/openstack/driver.py | Python | apache-2.0 | 31,506 |
/*
* Copyright 2015 Ayuget
*
* 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... | nbonnec/Redface | app/src/main/java/com/ayuget/redface/ui/UIModule.java | Java | apache-2.0 | 5,666 |
using System;
namespace NuGet {
public interface IPackageManager {
IFileSystem FileSystem { get; set; }
IPackageRepository LocalRepository { get; }
ILogger Logger { get; set; }
IPackageRepository SourceRepository { get; }
event EventHandler<PackageOperationEventArgs>... | grendello/nuget | src/Core/IPackageManager.cs | C# | apache-2.0 | 1,128 |
package de.tomjanke.lost.game.action;
import de.tomjanke.lost.game.world.WorldObject;
/**
* Created by Tom on 28.05.2016.
*/
public class WorldObjectAction extends Action {
public WorldObject Object;
public WorldObjectAction(WorldObject o, float d, Runnable r) {
super(d, r);
Object = o;
... | Tom7353/Lost | core/src/de/tomjanke/lost/game/action/WorldObjectAction.java | Java | apache-2.0 | 427 |
package org.peace.savingtracker.ui.home;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import butterknife.OnClick;
import org.peace.savingtracker.MyApp;
import org.peace.savingtracker.R;
import org.peace.savingtracker.ui.AddExpenseActivit... | peacepassion/SavingTracker | app/src/main/java/org/peace/savingtracker/ui/home/HomeUserCenterFragment.java | Java | apache-2.0 | 2,275 |
/*
* Copyright 2015 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 la... | ravikumaran2015/ravikumaran201504 | web/api/src/main/java/org/onosproject/rest/TopologyWebResource.java | Java | apache-2.0 | 8,214 |
/**
*
* No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.6.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
... | psh/OxfordDictionarySample | app/src/main/java/com/gatebuzz/oxfordapi/model/SentencesResults.java | Java | apache-2.0 | 3,199 |
/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 L... | leemichaelRazer/OSVR-Core | src/osvr/JointClientKit/JointClientContext.cpp | C++ | apache-2.0 | 4,568 |
/*
* Implementation of scanner for rational number calculator
* CSE 374, 17wi, HP
*/
#include "token.h"
#include "scan.h"
#include <string>
#include <cctype>
#include <cstdlib>
using namespace std;
// Next unprocessed token on current input line.
// Undefined if set_input has not been called.
token next_tok;
// C... | zachcwillson/uw-cse | cse-374/project-7/scan.cpp | C++ | apache-2.0 | 2,365 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.AspNetCore.SignalR.Internal
{
internal class HubContext<THub, T> : IHubContext<THub, T>
where THub : Hub<T>
where T : class
{
private... | aspnet/AspNetCore | src/SignalR/server/Core/src/Internal/HubContext`T.cs | C# | apache-2.0 | 802 |
<?php
/**
* bloodstone community V1.0.0
* @link https://www.facebook.com/Mazn.touati
* @author Mazen Touati
* @version 1.0.0
*/
class Application {
protected $controller = 'home',
$method = 'index',
$params = [];
static $prefix = URL;
/**
*
*/
public f... | MazenDesigns/bscommunity | application/core/application.php | PHP | apache-2.0 | 1,928 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java | Java | apache-2.0 | 25,027 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/VpnGatewayStatusTunnelOrBuilder.java | Java | apache-2.0 | 2,892 |
using System;
using System.Threading.Tasks;
using InsurgenceServerCore.ClientHandler;
namespace InsurgenceServerCore.Battles
{
public class Battle
{
public Guid Id;
public string Username1;
public string Username2;
public Client Client1;
public Client Client2;
... | Deukhoofd/InsurgenceServer | InsurgenceServerCore/Battles/Battle.cs | C# | apache-2.0 | 4,347 |
package com.github.randomcodeorg.ppplugin.data.gradle;
import java.io.File;
import org.gradle.api.tasks.SourceSetContainer;
public class JavaSourceSetProvider implements SourceSetProvider {
private final SourceSetContainer container;
public JavaSourceSetProvider(SourceSetContainer container) {
this.container ... | RandomCodeOrg/PPPluginGradle | plugin/src/main/java/com/github/randomcodeorg/ppplugin/data/gradle/JavaSourceSetProvider.java | Java | apache-2.0 | 751 |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | alefesouza/gdg-sp | Desktop/GDGSPCheckIn/Properties/AssemblyInfo.cs | C# | apache-2.0 | 2,406 |
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class demonStateSwallow : StateMachineBehaviour {
private Image blackscreen;
private UnityStandardAssets.Characters.FirstPerson.MouseLook ml;
private Transform pcamera;
private Transform player;
// OnStateEnter is called when a ... | carlsc2/EGDHorrorGame | HeartbeatHorror/Assets/Scripts/Demon/demonStateSwallow.cs | C# | apache-2.0 | 2,038 |
package Manager;
import Tweet.Tweet;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsum... | eltitopera/TFM | manager/src/src/main/java/Manager/ServiceManager.java | Java | apache-2.0 | 2,338 |
package pl.npe.lpp.preprocessor.line;
import java.util.Collections;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: tomek
* Date: 08.06.14
* Time: 15:01
*/
public class DirectiveUsage {
private String directive;
private List<String> params;
public DirectiveUsage(String directive, Li... | traczykowski/lpp | src/main/java/pl/npe/lpp/preprocessor/line/DirectiveUsage.java | Java | apache-2.0 | 1,523 |
/* Copyright 2007-2015 QReal Research Group
*
* 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... | dvvrd/qreal | plugins/robots/common/trikKit/src/blocks/details/drawRectBlock.cpp | C++ | apache-2.0 | 1,307 |
/*
* Created on 05.des.2005
*
* Copyright (c) 2005, Karl Trygve Kalleberg <karltk near strategoxt.org>
*
* Licensed under the GNU Lesser General Public License, v2.1
*/
package org.spoofax.jsglr.tests;
import org.spoofax.interpreter.terms.IStrategoTerm;
import org.spoofax.jsglr.client.InvalidParseTableException;... | metaborg/jsglr | org.spoofax.jsglr/test/org/spoofax/jsglr/tests/TestAmb.java | Java | apache-2.0 | 1,041 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core;
import com.yahoo.vdslib.state.*;
import com.yahoo.vespa.clustercontroller.core.hostinfo.HostInfo;
import com.yahoo.vespa.clustercontroller.core.hostinfo.StorageNodeSt... | vespa-engine/vespa | clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ClusterStateViewTest.java | Java | apache-2.0 | 3,671 |
using UnityEngine;
using System.Collections;
public class BasicSword : Weapon {
public BasicSword () {
damageMultiplier = 1.0;
speed = 1.0;
}
}
| jakebacker/UnityGame | Assets/Project/Scripts/BasicSword.cs | C# | apache-2.0 | 154 |
package oob
import (
"context"
"github.com/google/wire"
"github.com/skygeario/skygear-server/pkg/auth/dependency/urlprefix"
"github.com/skygeario/skygear-server/pkg/core/async"
"github.com/skygeario/skygear-server/pkg/core/config"
"github.com/skygeario/skygear-server/pkg/core/db"
"github.com/skygeario/skygear... | SkygearIO/skygear-server | pkg/auth/dependency/authenticator/oob/deps.go | GO | apache-2.0 | 1,217 |
package com.softwarelma.epe.p3.print;
import java.util.ArrayList;
import java.util.List;
import com.softwarelma.epe.p1.app.EpeAppException;
import com.softwarelma.epe.p1.app.EpeAppUtils;
import com.softwarelma.epe.p2.exec.EpeExecContent;
import com.softwarelma.epe.p2.exec.EpeExecContentInternal;
import com.softwarelm... | softwarelma/utils | src/main/java/com/softwarelma/epe/p3/print/EpePrintFinalPrint_separator_smart.java | Java | apache-2.0 | 3,797 |
// Copyright 2018 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/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201809/cm/BiddingStrategyOperation.java | Java | apache-2.0 | 2,228 |
package ikube.action;
import ikube.AbstractTest;
import ikube.IConstants;
import ikube.action.index.IndexManager;
import ikube.model.IndexContext;
import ikube.toolkit.FILE;
import ikube.toolkit.THREAD;
import org.apache.lucene.index.IndexWriter;
import org.junit.After;
import org.junit.Before;
import org.j... | michaelcouck/ikube | code/core/src/test/java/ikube/action/ReopenTest.java | Java | apache-2.0 | 4,627 |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | sabi0/intellij-community | platform/platform-impl/src/com/intellij/application/options/schemes/AbstractSchemesPanel.java | Java | apache-2.0 | 11,570 |
# Copyright 2021 DeepMind Technologies 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | deepmind/deepmind-research | ogb_lsc/mag/data_utils.py | Python | apache-2.0 | 18,032 |
<?php
namespace Topxia\Common;
use Imagine\Image\Box;
use Imagine\Gd\Imagine;
use Imagine\Image\Point;
use Topxia\Service\Common\ServiceKernel;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Http... | 18826252059/im | src/Topxia/Common/FileToolkit.php | PHP | apache-2.0 | 56,525 |
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.graphics.RectF;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.View;
import android.view.WindowManager;
public final class lsr
{
static final lsp<Bitmap> a = n... | ChiangC/FMTech | GooglePlus/app/src/main/java/lsr.java | Java | apache-2.0 | 15,760 |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | consulo/consulo-junit | plugin/src/main/java/com/intellij/execution/junit2/configuration/JUnitConfigurable.java | Java | apache-2.0 | 29,412 |
package middleware
import (
"encoding/base64"
"strconv"
"strings"
"github.com/raintank/raintank-apps/pkg/auth"
"gopkg.in/macaron.v1"
)
type Context struct {
*macaron.Context
*auth.SignedInUser
ApiKey string
}
func GetContextHandler() macaron.Handler {
return func(c *macaron.Context) {
ctx := &Context{
... | raintank/raintank-apps | vendor/github.com/raintank/worldping-api/pkg/middleware/middleware.go | GO | apache-2.0 | 2,035 |
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { HttpModule } from '@angular/http';
import { RecipeServiceProvider } from '../../providers/recipe/recipe.service';
import { Recipe } from '../../providers/recipe/recipe.model';
import { RecipeDetailPage } from '../recipe-d... | gokhankuyucak/AeropressApp | src/pages/home/home.ts | TypeScript | apache-2.0 | 1,064 |
package com.google.api.ads.dfp.jaxws.v201511;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Action that can be performed on {@link FirstPartyAudienceSegment} objects to deactivate them.
* ... | gawkermedia/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201511/DeactivateAudienceSegments.java | Java | apache-2.0 | 984 |
/*
*
* Copyright 2017-2018 Nitrite author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | dizitart/nitrite-database | nitrite/src/test/java/org/dizitart/no2/objects/data/PersonEntity.java | Java | apache-2.0 | 1,463 |
package org.devel.reportfx;
import de.saxsys.mvvmfx.FluentViewLoader;
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import de.saxsys.mvvmfx.ViewTuple;
public class Starter extends Application {
public static void main(String... args) {
... | stefanil/ReportFX | client/src/main/java/org/devel/reportfx/Starter.java | Java | apache-2.0 | 695 |
package server
import (
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"
"strings"
"syscall"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/pkg/stringid"
"github.com/kubernetes-incubator/cri-o/oci"
"github.com/kubernetes-incubator/cri-o/server/apparmor"
"github.com/kubernetes-incubator/cri-o/se... | resouer/cri-o | server/container_create.go | GO | apache-2.0 | 11,852 |
// Copyright 2011, 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 applicabl... | cmmanish/OldUITempTest | examples/v201109/GetAllVideos.java | Java | apache-2.0 | 2,746 |
/*
* Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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... | intrack/BoofCV-master | main/geo/test/boofcv/alg/geo/pose/TestPnPRodriguesCodec.java | Java | apache-2.0 | 2,081 |
package com.nitorcreations.willow.auth;
import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.Collections.singletonMap;
import static java.util.Collections.unmodifiableSet;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStrea... | NitorCreations/willow | willow-servers/src/main/java/com/nitorcreations/willow/auth/GitHubOAuthAuthenticatingFilter.java | Java | apache-2.0 | 6,779 |
/* First created by JCasGen Sat Apr 11 19:49:33 EDT 2015 */
package edu.cmu.lti.oaqa.type.answer;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.ap... | oaqa/baseqa | src/main/java/edu/cmu/lti/oaqa/type/answer/AnswerType_Type.java | Java | apache-2.0 | 4,196 |
"""
Simple demo of a scatter plot.
"""
import numpy as np
import matplotlib.pyplot as plt
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = np.pi * (15 * np.random.rand(N))**2 # 0 to 15 point radii
plt.scatter(x, y, s=area, c=colors, alpha=0.5)
plt.show()
| ArmstrongYang/StudyShare | Python-matplotlib/scatter_demo.py | Python | apache-2.0 | 295 |
package com.planet_ink.coffee_mud.Abilities.Traps;
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 ... | oriontribunal/CoffeeMud | com/planet_ink/coffee_mud/Abilities/Traps/Trap_CaveIn.java | Java | apache-2.0 | 4,993 |
/*
* Copyright 2018 Mirko Sertic
*
* 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 ... | mirkosertic/Bytecoder | core/src/main/java/de/mirkosertic/bytecoder/backend/wasm/ast/I32Or.java | Java | apache-2.0 | 902 |
import { Routes } from '@angular/router';
import { EditorComponent } from './editor/editor.component'
export const routes: Routes = [
{
path: 'config/:id',
component: EditorComponent
}
]; | jianzhichun/mongodb-spring-cloud-config-server | src/main/frontend/src/app/app.routes.ts | TypeScript | apache-2.0 | 211 |
package com.coolweather.android.gson;
/**
* Created by LanQ on 2017/8/21 0021.
*/
public class AQI {
public AQICity city;
public class AQICity{
public String aqi;
public String pm25;
}
}
| lq2677/myweather | app/src/main/java/com/coolweather/android/gson/AQI.java | Java | apache-2.0 | 223 |
/**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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... | youtongluan/sumk | src/main/java/org/yx/validate/FieldParameterHolder.java | Java | apache-2.0 | 2,939 |
package eu.ensure.ppe;
import org.gautelis.vopn.lang.Number;
import org.gautelis.vopn.statistics.MovingAverage;
import eu.ensure.ppe.model.Consequence;
import java.util.Collection;
import java.util.LinkedList;
public class AggregationLevelScore {
public static final double FAILURE_SCORE = 0.0;
final String ... | FrodeRanders/ensure | ppe/src/main/java/eu/ensure/ppe/AggregationLevelScore.java | Java | apache-2.0 | 1,778 |
/*
* 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-iot1clickprojects/src/main/java/com/amazonaws/services/iot1clickprojects/model/DescribePlacementRequest.java | Java | apache-2.0 | 5,307 |
using System;
using System.Collections.Generic;
namespace PMS.Data.Models
{
public partial class Status
{
public Status()
{
Issue = new HashSet<Issue>();
}
public int Id { get; set; }
public string Name { get; set; }
public short Priority { get; set... | ntgnst/ProjectManagementSystem | PMS.Data/Models/Status.cs | C# | apache-2.0 | 389 |
/*
* Copyright 2009-2015 University of Hildesheim, Software Systems Engineering
*
* 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
*
* ... | SSEHUB/EASyProducer | Plugins/VarModel/Utils/src/net/ssehub/easy/basics/modelManagement/VersionedModelInfos.java | Java | apache-2.0 | 21,315 |
package com.sap.cloud.lm.sl.cf.core.liquibase;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import com.sap.cloud.lm.sl.cf.core.model.CloudTarget;
import com.sap.cloud.lm.sl.cf.core.util.Confi... | boyan-velinov/cf-mta-deploy-service | com.sap.cloud.lm.sl.cf.core/src/test/java/com/sap/cloud/lm/sl/cf/core/liquibase/TransformFilterColumnTest.java | Java | apache-2.0 | 3,357 |
/*
* 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 ... | shaoxuan-wang/flink | flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/runtime/match/BaseRowEventComparator.java | Java | apache-2.0 | 1,790 |
<?php
/**
* Created by JetBrains PhpStorm.
* User: occul_000
* Date: 03/03/13
* Time: 19:45
* To change this template use File | Settings | File Templates.
*/
?>
<!DOCTYPE html>
<html>
<head>
<title>AnfShift</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js... | GuillaumeOcculy/anfshift_paris | view/register.php | PHP | apache-2.0 | 2,939 |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Nest
{
[JsonObject]
public class ClusterIndicesStats
{
[JsonProperty("completion")]
public CompletionStats Completion { get; internal set; }
[JsonProperty("count")]
public long Count { g... | jonyadamit/elasticsearch-net | src/Nest/Cluster/ClusterStats/ClusterIndicesStats.cs | C# | apache-2.0 | 1,939 |
package com.log999.task;
public class TestUtil {
public static void sleepMs(long ms) {
try {
Thread.sleep(ms);
} catch (InterruptedException e) {
// ignore
}
}
}
| bitsetd4d/log999-large-log-viewer | src/test/java/com/log999/task/TestUtil.java | Java | 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... | mufaddalq/cloudstack-datera-driver | api/src/org/apache/cloudstack/api/command/admin/host/AddHostCmd.java | Java | apache-2.0 | 5,997 |
// Copyright 2015 PLUMgrid
//
// 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... | drzaeus77/docker-plugin | iovplug/config.go | GO | apache-2.0 | 694 |
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/core/mvc/Controller",
"sap/ui/core/routing/History",
"sap/ui/model/json/JSONModel"
], function (UIComponent, Controller, History, JSONModel) {
"use strict";
return Controller.extend("sap.ui.core.sample.odata.v4.MusicArtists.PublicationObjectPage", {
_onObjectM... | SAP/openui5 | src/sap.ui.core/test/sap/ui/core/demokit/sample/odata/v4/MusicArtists/PublicationObjectPage.controller.js | JavaScript | apache-2.0 | 1,423 |
var autils = require('../../AUtils');
var osTool = require('../../osTools');
var shelljs = require('shelljs');
var GenericDiffReporterBase = require('../GenericDiffReporterBase');
class Reporter extends GenericDiffReporterBase {
constructor() {
super("BeyondCompare");
var app = null;
if (osTool.platfo... | approvals/Approvals.NodeJS | lib/Reporting/Reporters/beyondcompareReporter.js | JavaScript | apache-2.0 | 860 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.black;
import static com.opengamma.engine.value.ValueRequirementNames.POSITION_GAMMA;
import java.util.Collections;
import java.util... | McLeodMoores/starling | projects/financial/src/main/java/com/opengamma/financial/analytics/model/black/BlackDiscountingPositionGammaIRFutureOptionFunction.java | Java | apache-2.0 | 3,204 |
// Copyright 2016 The Oklog 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 w... | oklog/ulid | ulid.go | GO | apache-2.0 | 20,673 |