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 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | mwilliamson-firefly/aws-sdk-net | sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CreateRouteRequestMarshaller.cs | C# | apache-2.0 | 3,470 |
# -*- coding:utf-8 -*-
"""
Verion: 1.0
Author: zhangjian
Site: http://iliangqunru.com
File: __init__.py.py
Time: 2017/7/22 2:19
"""
| Xarrow/pySimulatedDNS | dnsCat/__init__.py | Python | apache-2.0 | 139 |
# frozen_string_literal: true
module Hyrax
# Module that will contain Renderer classes
# @since 0.14.0
# Renderers are used to display Ruby objects to users and take arguments from the Hyrax::Presenter
# supplied by the controller.
# They are typically used to respond to read requests from the controller, and... | samvera/hyrax | app/renderers/hyrax/renderers.rb | Ruby | apache-2.0 | 449 |
package com.coekie.gentyref.factory;
@SuppressWarnings("rawtypes")
public class RawOuter extends GenericOuter {}
| coekie/gentyref | src/test/java/com/coekie/gentyref/factory/RawOuter.java | Java | apache-2.0 | 114 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RandomSchool.Extenders;
using RandomSchool.Repositories;
namespace RandomSchool.Maintain.vPupil
{
public partial class Details : System.Web.UI.Page
{
private Pupil... | jbwilliamson/MaximiseWFScaffolding | RandomSchool/RandomSchool/Maintain/vPupil/Details.aspx.cs | C# | apache-2.0 | 711 |
HB.RadioButtonComponent = Ember.Component.extend({
tagName: 'input',
type: 'radio',
attributeBindings: ['type', 'htmlChecked:checked', 'value', 'name'],
htmlChecked: function(){
return this.get('value') === this.get('checked');
}.property('value', 'checked'),
change: function(){
this.set('checked'... | fractalemagic/hummingbird | app/assets/javascripts/components/radio-button.js | JavaScript | apache-2.0 | 350 |
/*
* Copyright Anatoly Starostin (c) 2017.
*/
package treeton.prosody.corpus;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import treeton.core.config.BasicConfiguration;
import treeton.core.util.xml.XMLParser;
import javax.xml.parsers.ParserConfigurationException;
import java.i... | TreetonOrg/Treeton | dev/prosody/src/treeton/prosody/corpus/CorpusFolder.java | Java | apache-2.0 | 5,453 |
/*
* Copyright Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the authors tag. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU General Public License vers... | ceylon/ceylon | compiler-java/src/org/eclipse/ceylon/compiler/java/codegen/recovery/Generate.java | Java | apache-2.0 | 1,204 |
package com.github.ruediste.c3java.invocationRecording;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.lang.annotation.ElementType;
import org.junit.Before;
import org.junit.Test;
import com.google.common.reflect.TypeTo... | ruediste/c3java | src/test/java/com/github/ruediste/c3java/invocationRecording/MethodInvocationRecorderTest.java | Java | apache-2.0 | 2,917 |
/*
* 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-homegraph/v1/1.30.1/com/google/api/services/homegraph/v1/HomeGraphService.java | Java | apache-2.0 | 33,723 |
package org.jfl2.fx.controller.menu;
import javafx.application.Platform;
import javafx.event.Event;
import javafx.scene.Node;
import javafx.scene.control.RadioButton;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
import lombok.extern.slf4j.Slf4j;
import org.jfl2.core.util.Jfl2NumberUtils;
i... | lei0229/jfl2 | src/main/java/org/jfl2/fx/controller/menu/MenuWindowManager.java | Java | apache-2.0 | 6,781 |
package sunning.democollection.learn._0331.component;
import dagger.Component;
import sunning.democollection.learn._0331.UserActivity;
import sunning.democollection.learn._0331.module.ShoppingCartModule;
/**
* Created by sunning on 16/3/31.
*/
@Component(dependencies = ActivityComponent.class, modules = ShoppingCar... | syg5201314/demoCollection | app/src/main/java/sunning/democollection/learn/_0331/component/ShoppingCartComponent.java | Java | apache-2.0 | 422 |
package gui.sub_controllers;
import gui.GraphDrawer;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.transformation.FilteredList;
import javafx.collections.transformation.SortedList;
import javafx.fxml.FXML;
import javafx.scene.control.TableColumn;
import ja... | ProgrammingLife2017/DynamiteAndButterflies | src/main/java/gui/sub_controllers/AnnotationTableController.java | Java | apache-2.0 | 8,434 |
package liquibase.change.core;
import liquibase.change.AbstractSQLChange;
import liquibase.change.DatabaseChange;
import liquibase.change.ChangeMetaData;
/**
* Allows execution of arbitrary SQL. This change can be used when existing changes are either don't exist,
* are not flexible enough, or buggy.
*/
... | ArloL/liquibase | liquibase-core/src/main/java/liquibase/change/core/RawSQLChange.java | Java | apache-2.0 | 2,252 |
package com.deleidos.dp.export;
import com.deleidos.dp.beans.Schema;
import com.deleidos.dp.exceptions.H2DataAccessException;
import com.deleidos.dp.exceptions.SchemaNotFoundException;
public interface Exporter {
public abstract String generateExport(Schema schema);
public abstract String generateExport(Schema s... | deleidos/de-schema-wizard | data-profiler/src/main/java/com/deleidos/dp/export/Exporter.java | Java | apache-2.0 | 356 |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed... | micro/micro | service/network/resolver/resolver.go | GO | apache-2.0 | 1,147 |
/*
* 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... | oli107/material-range-bar | RangeBarSample/src/main/java/com/appyvet/rangebarsample/colorpicker/ColorPickerDialog.java | Java | apache-2.0 | 6,997 |
package com.lling.qiqu.commons;
import java.io.Serializable;
/**
* @ClassName: ResponseInfo
* @Description: http接口返回数据封装类
* @author lling
* @date 2015-5-30
*/
public class ResponseInfo implements Serializable{
private static final long serialVersionUID = 1L;
private String code;
private String desc;
privat... | liuling07/QiQuYing | app/src/main/java/com/lling/qiqu/commons/ResponseInfo.java | Java | apache-2.0 | 673 |
/*
* EVE Swagger Interface
* An OpenAPI for EVE Online
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package net.troja.eve.esi.model;
import com.google.gson.TypeAdapter;
import com.goog... | burberius/eve-esi | src/test/java/net/troja/eve/esi/model/CharacterPlanetResponseTest.java | Java | apache-2.0 | 1,583 |
/*
* Copyright 2006-2010 Virtual Laboratory for e-Science (www.vl-e.nl)
* Copyright 2012-2013 Netherlands eScience Center.
*
* 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 the following... | NLeSC/vbrowser | source/nl.esciencecenter.vlet.vfs.lfc/src/nl/esciencecenter/vlet/vfs/lfc/SEInfo.java | Java | apache-2.0 | 1,641 |
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
using Esri.ArcGISRuntime.Symbology;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples
{
/// <summary>
/// T... | Tyshark9/arcgis-runtime-samples-dotnet | src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/GraphicsLayers/GraphicsSourceSample.xaml.cs | C# | apache-2.0 | 3,725 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Bagcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletdb.h"
#include ... | bagcoin/bagcoin | src/walletdb.cpp | C++ | apache-2.0 | 31,407 |
define([
'./user-settings'
], function (userSettings) {
var context;
var exposed = {
init: function(thisContext){
context = thisContext;
context.sandbox.on('settings.close', userSettings.close);
context.sandbox.on('settings.open', userSettings.open);
... | ozone-development/meridian | app/components/controls/user-settings/user-settings-mediator.js | JavaScript | apache-2.0 | 1,165 |
/*
* 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-lightsail/src/main/java/com/amazonaws/services/lightsail/model/CloudFormationStackRecordSourceInfo.java | Java | apache-2.0 | 8,005 |
/*
* 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 ... | Coneboy-k/incubator-rocketmq | common/src/main/java/org/apache/rocketmq/common/BrokerConfig.java | Java | apache-2.0 | 15,205 |
package command
import (
"github.com/goodmustache/pt/actor"
"github.com/goodmustache/pt/command/display"
)
//counterfeiter:generate . ProjectListActor
type ProjectListActor interface {
Projects() ([]actor.Project, error)
}
type ProjectList struct {
UserID uint64 `short:"u" long:"user-id" description:"User ID to... | goodmustache/pt | command/project_list.go | GO | apache-2.0 | 860 |
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from rdmo.core.exports import XMLResponse
from rdmo.core.permis... | rdmorganiser/rdmo | rdmo/conditions/viewsets.py | Python | apache-2.0 | 2,141 |
/*
* 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 ... | masaki-yamakawa/geode | geode-apis-compatible-with-redis/src/main/java/org/apache/geode/redis/internal/RedisDistributedSystemService.java | Java | apache-2.0 | 1,750 |
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | leapframework/framework | base/lang/src/main/java/leap/lang/meta/MNamed.java | Java | apache-2.0 | 748 |
package com.vladmihalcea.book.hpjp.hibernate.type.array;
import org.hibernate.dialect.PostgreSQL95Dialect;
import java.sql.Types;
/**
* @author Vlad Mihalcea
*/
public class PostgreSQL95ArrayDialect extends PostgreSQL95Dialect {
public PostgreSQL95ArrayDialect() {
super();
this.registerColumnT... | vladmihalcea/high-performance-java-persistence | core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/type/array/PostgreSQL95ArrayDialect.java | Java | apache-2.0 | 355 |
require_dependency 'libraetd/lib/serviceclient/user_info_client'
require_dependency 'libraetd/lib/helpers/user_info'
require_dependency 'libraetd/lib/serviceclient/entity_id_client'
module Helpers
class EtdHelper
def self.process_inbound_sis_authorization( deposit_authorization )
# lookup the user and c... | uvalib/Libra2 | lib/libraetd/lib/helpers/etd_helper.rb | Ruby | apache-2.0 | 7,345 |
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
'fbcode_builder steps to build Facebook Thrift'
import specs.fbthrift as fbthrift
def fbcode_builder_spec(builder):
return {
'depends_... | getyourguide/fbthrift | build/fbcode_builder_config.py | Python | apache-2.0 | 449 |
package grammar.model.nouns;
import grammar.model.Multiplicity;
import grammar.model.PseudoEnum;
import grammar.model.SubjectGender;
import grammar.util.Utilities;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class Noun implements PseudoEnum<Noun> {
private s... | dliroberts/lang | RomanceConjugator/src/main/java/grammar/model/nouns/Noun.java | Java | apache-2.0 | 3,873 |
/*
* Copyright 2012-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 "licen... | dagnir/aws-sdk-java | aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/EnableDomainAutoRenewResult.java | Java | apache-2.0 | 2,301 |
/*
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2007 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. Re... | gstamac/powermock | powermock-api/powermock-api-mockito2/src/main/java/org/powermock/api/mockito/repackaged/asm/tree/MethodNode.java | Java | apache-2.0 | 16,512 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManagerShop.Domain.DomainEvents
{
public class MessageSentEventHandler : IEventHandler<MessageSentEvent>
{
public void Handle(MessageSentEvent evt)
{
Consol... | dawutao/ManagerShop | ManagerShop.UI/ManagerShop.Domain.Event/EventHandlers/MessageSentEventHandler.cs | C# | apache-2.0 | 400 |
/*
* 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... | EvilMcJerkface/presto | presto-main/src/main/java/com/facebook/presto/operator/FileFragmentResultCacheManager.java | Java | apache-2.0 | 10,483 |
package org.opencommercesearch.client.impl;
import java.util.Date;
/**
* Represents a sku's availability.
*
* @author rmerizalde
*/
public class Availability {
public enum Status {
InStock,
OutOfStock,
PermanentlyOutOfStock,
Backorderable,
Preorderable
}
private Status status;
privat... | madickson/opencommercesearch | opencommercesearch-sdk-java/src/main/java/org/opencommercesearch/client/impl/Availability.java | Java | apache-2.0 | 947 |
package distribution // import "github.com/tiborvass/docker/distribution"
import (
"bufio"
"compress/gzip"
"context"
"fmt"
"io"
"github.com/docker/distribution/reference"
"github.com/tiborvass/docker/distribution/metadata"
"github.com/tiborvass/docker/pkg/progress"
"github.com/tiborvass/docker/registry"
"gi... | tiborvass/docker | distribution/push.go | GO | apache-2.0 | 6,226 |
#pragma once
#ifndef GEODE_INTEGRATION_TEST_QUERYHELPER_H_
#define GEODE_INTEGRATION_TEST_QUERYHELPER_H_
/*
* 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 ownersh... | mmartell/geode-native | cppcache/integration-test/QueryHelper.hpp | C++ | apache-2.0 | 12,719 |
/*
* testdatefmtrange_wo_SN.js - test the date range formatter object Wolof-Senegal
*
* Copyright © 2021, JEDLSoft
*
* 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... | iLib-js/iLib | js/test/daterange/testdatefmtrange_wo_SN.js | JavaScript | apache-2.0 | 19,135 |
package org.usfirst.frc.team4453.robot.commands;
import org.usfirst.frc.team4453.library.Vision;
import org.usfirst.frc.team4453.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/**
*
*/
public class DriveWithCamera extends Command {
public... | RedHotChiliBots/FRC4453 | Robot/Programming/FRC2016Robot/src/org/usfirst/frc/team4453/robot/commands/DriveWithCamera.java | Java | apache-2.0 | 2,359 |
/**
* Copyright (C) 2012 52°North Initiative for Geospatial Open Source Software GmbH
*
* 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... | 52North/ArcGIS-Server-SOS-Extension | src/main/java/org/n52/sos/cache/ObservationOfferingCache.java | Java | apache-2.0 | 4,089 |
/**
* Copyright 2010 - 2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | JetBrains/xodus | openAPI/src/main/java/jetbrains/exodus/io/DataReaderWriterProvider.java | Java | apache-2.0 | 5,499 |
package org.commcare.tasks;
import android.content.Context;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.util.Pair;
import org.commcare.CommCareApplication;
import org.commcare.models.AndroidSessionWrapper;
import org.commcare.models.database.AndroidSandbox;
import org... | dimagi/commcare-android | app/src/org/commcare/tasks/FormRecordLoaderTask.java | Java | apache-2.0 | 10,155 |
/* Copyright 2019 Telstra Open Source
*
* 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... | jonvestal/open-kilda | src-java/network-topology/network-storm-topology/src/main/java/org/openkilda/wfm/topology/network/controller/BfdGlobalToggleFsm.java | Java | apache-2.0 | 8,262 |
using System;
namespace NativeAppFabricConsoleUI
{
internal static class CreateRegionTests
{
internal static void CreateRegionWithNonEmptyString()
{
try
{
Logger.PrintTestStartInformation("Creating Region with non-empty string value");
st... | Alachisoft/NCache-Wrapper-For-AppFabric | samples/AppFabricWrapperTest/NativeAppFabricConsoleUI/RegionLevelBasicOperations/CreateRegionTests.cs | C# | apache-2.0 | 2,744 |
package org.nbone.core.util;
/**
*
* @author thinking
* @version 1.0
* @since 2019-07-20
* org.elasticsearch.common.unit.ByteSizeUnit
*/
public enum ByteSizeUnit {
BYTES {
@Override
public long toBytes(long size) {
return size;
}
@Override
public long toK... | thinking-github/nbone | nbone/nbone-core/src/main/java/org/nbone/core/util/ByteSizeUnit.java | Java | apache-2.0 | 5,035 |
def emptyLayout(layout):
for i in reversed(range(layout.count())):
layout.itemAt(i).widget().setParent(None)
| fireeye/flare-wmi | python-cim/samples/ui/uicommon.py | Python | apache-2.0 | 121 |
// Copyright (c) 2009 Carl Barron
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
#include <sstream>
#include <boost/detail/lightweight_test.hpp>
#include <boost/spirit/include/lex.hpp>... | Im-dex/xray-162 | code/3rd-party/boost/libs/spirit/test/lex/dedent_handling_phoenix.cpp | C++ | apache-2.0 | 2,510 |
/*
* 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 ... | GoogleForCreators/web-stories-wp | packages/story-editor/src/elements/text/util.js | JavaScript | apache-2.0 | 3,563 |
<?php
echo "This is success.php";
?> | pari/rand0m | paypalipn/success.php | PHP | apache-2.0 | 38 |
package org.zentaur.core.http;
/*
* Copyright 2012 The Zentaur Server 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-... | zentaur/core | src/main/java/org/zentaur/core/http/ResponseFactory.java | Java | apache-2.0 | 1,161 |
// Copyright 2016 PingCAP, 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 i... | spongedu/tidb | store/tikv/error.go | GO | apache-2.0 | 2,481 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mermaid.Loft.Infrastructure.DomainBase
{
public class EntityBase
{
}
}
| mengxinjinglong/Mermaid.Loft | Mermaid.Loft.Infrastructure/DomainBase/EntityBase.cs | C# | apache-2.0 | 214 |
package pl.wavesoftware.examples.wildflyswarm.service.api;
import pl.wavesoftware.examples.wildflyswarm.domain.User;
import java.util.Collection;
/**
* @author Krzysztof Suszynski <krzysztof.suszynski@coi.gov.pl>
* @since 04.03.16
*/
public interface UserService {
/**
* Retrieves a collection of active u... | cardil/cdi-inheritance-wildfly-swarm | src/main/java/pl/wavesoftware/examples/wildflyswarm/service/api/UserService.java | Java | apache-2.0 | 427 |
<?php
/**
* Copyright (c) <2016> Protobile contributors and Addvilz <mrtreinis@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
*
* U... | protobile/framework | src/Protobile/Framework/CompilerPass/RegisterOutputPass.php | PHP | apache-2.0 | 1,123 |
/*
* #%L
* =====================================================
* _____ _ ____ _ _ _ _
* |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | |
* | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| |
* | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ |
* |_| |_| \__,_|___/... | trustathsh/ifmapj | src/main/java/de/hshannover/f4/trust/ifmapj/messages/PollResultImpl.java | Java | apache-2.0 | 3,270 |
/*
* 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-resourcemanager | proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/UpdateFolderRequest.java | Java | apache-2.0 | 34,397 |
package com.lyubenblagoev.postfixrest.service;
import com.lyubenblagoev.postfixrest.entity.User;
import com.lyubenblagoev.postfixrest.security.JwtTokenProvider;
import com.lyubenblagoev.postfixrest.security.RefreshTokenProvider;
import com.lyubenblagoev.postfixrest.security.UserPrincipal;
import com.lyubenblagoev.post... | lyubenblagoev/postfix-rest-server | src/main/java/com/lyubenblagoev/postfixrest/service/AuthServiceImpl.java | Java | apache-2.0 | 1,809 |
/**
* @license
* Copyright 2012 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Checkbox field. Checked or not checked.
* @author fraser@google.com (Neil Fraser)
*/
'use strict';
goog.provide('Blockly.FieldCheckbox');
/** @suppress {extraRequire} */
goog.require('Blockly.Events.BlockC... | mark-friedman/blockly | core/field_checkbox.js | JavaScript | apache-2.0 | 6,315 |
package task03.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
public class TicketSelectionPage extends Page {
public TicketSelectionPage(PageManager pages) {
super(pages);
}
@FindBy(xpath = ".//*... | RihnKornak/TestTasks | src/test/java/task03/pages/TicketSelectionPage.java | Java | apache-2.0 | 945 |
using System.Collections;
using System.Collections.Generic;
namespace Basic.Ast
{
public class ParameterList : IEnumerable<Parameter>
{
private readonly List<Parameter> parameters;
public ParameterList()
{
parameters = new List<Parameter>();
}
public Metho... | robertsundstrom/vb-lite-compiler | basc/Ast/ParameterList.cs | C# | apache-2.0 | 1,481 |
/*
Copyright [2011] [Prasad Balan]
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 ... | ryanco/x12-parser | src/main/java/com/yarsquidy/x12/X12Parser.java | Java | apache-2.0 | 7,028 |
package com.chenantao.autolayout.utils;
import android.view.ViewGroup;
/**
* Created by Chenantao_gg on 2016/1/20.
*/
public class AutoLayoutGenerate
{
public static <T extends ViewGroup> T generate(Class<T> clazz, Class[] argumentTypes, Object[]
arguments)
{
// Enhancer enhancer = new Enhancer();... | Chenantao/PlayTogether | AutoLayout/src/main/java/com/chenantao/autolayout/utils/AutoLayoutGenerate.java | Java | apache-2.0 | 3,353 |
# Copyright 2022 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from django.test.utils import override_settings
from sis_provisioner.tests import (
fdao_pws_override, fdao_hrp_override, fdao_bridge_override)
from sis_provisioner.tests.account_managers import set_uw_account
user_file_name_ov... | uw-it-aca/bridge-sis-provisioner | sis_provisioner/tests/csv/__init__.py | Python | apache-2.0 | 784 |
package com.petercipov.mobi.deployer;
import com.petercipov.mobi.Instance;
import com.petercipov.traces.api.Trace;
import java.util.Optional;
import rx.Observable;
/**
*
* @author Peter Cipov
*/
public abstract class RxDeployment {
protected Optional<String> name;
public RxDeployment() {
this.name = Option... | petercipov/mobi | deployer/src/main/java/com/petercipov/mobi/deployer/RxDeployment.java | Java | apache-2.0 | 7,654 |
/*
* Copyright 2015 Torridity.
*
* 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... | Akeshihiro/dsworkbench | Core/src/main/java/de/tor/tribes/ui/models/RETSourceTableModel.java | Java | apache-2.0 | 2,442 |
package com.zk.web.interceptor;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impor... | wqintel/zookeeper-web | src/main/java/com/zk/web/interceptor/CustomizedHandlerExceptionResolver.java | Java | apache-2.0 | 2,187 |
/**
* 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, ... | geronimo-iia/dowsers | dowsers-core/src/main/java/org/intelligentsia/dowsers/core/serializers/jackson/ClassInformationDeserializer.java | Java | apache-2.0 | 2,180 |
/*
* Copyright 2018 Sebastien Callier
*
* 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 t... | S-Callier/serialization | src/main/java/sebastien/callier/serialization/codec/extendable/object/field/primitives/ByteFieldCodec.java | Java | apache-2.0 | 2,341 |
import eventlet
import gettext
import sys
from staccato.common import config
import staccato.openstack.common.wsgi as os_wsgi
import staccato.openstack.common.pastedeploy as os_pastedeploy
# Monkey patch socket and time
eventlet.patcher.monkey_patch(all=False, socket=True, time=True)
gettext.install('staccato', unic... | buzztroll/staccato | staccato/cmd/api.py | Python | apache-2.0 | 899 |
<?php
exec('"' . __DIR__ . '/vendor/bin/phinx" rollback -t=0');
exec('"' . __DIR__ . '/vendor/bin/phinx" migrate');
exec('"' . __DIR__ . '/vendor/bin/phinx" seed:run');
?> | Manoel-Matias-bls/son-financas | migrate_seed.php | PHP | apache-2.0 | 172 |
using System;
using System.Drawing;
using NetTopologySuite.Geometries;
namespace SharpMap
{
/// <summary>
/// Utility class that checks Viewport min/max Zoom and constraint
/// </summary>
[Serializable]
public class MapViewPortGuard
{
private double _minimumZoom;
private double... | ShammyLevva/FTAnalyzer | SharpMap/Map/MapViewportGuard.cs | C# | apache-2.0 | 7,759 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | kahkeng/aws-sdk-cpp | aws-cpp-sdk-ec2/source/model/DescribeNetworkInterfacesResponse.cpp | C++ | apache-2.0 | 2,358 |
package com.noeasy.money.exception;
public class UserErrorMetadata extends BaseErrorMetadata {
public static final UserErrorMetadata USER_EXIST = new UserErrorMetadata(101, "User exit");
public static final UserErrorMetadata NULL_USER_BEAN = new UserErrorMetadata(102, "Userbean is null");
protected... | DormitoryTeam/Dormitory | src/main/java/com/noeasy/money/exception/UserErrorMetadata.java | Java | apache-2.0 | 428 |
/*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by appli... | ONLYOFFICE/CommunityServer | web/studio/ASC.Web.Studio/UserControls/Management/NamingPeopleSettings/js/namingpeoplecontent.js | JavaScript | apache-2.0 | 3,300 |
#!/usr/bin/env python
# Use Netmiko to execute 'show arp' on pynet-rtr1, pynet-rtr2, and juniper-srx.
from netmiko import ConnectHandler
def main():
# Definition of routers
rtr1 = {
'device_type': 'cisco_ios',
'ip': '50.76.53.27',
'username': 'pyclass',
'password': '88newcl... | dprzybyla/python-ansible | week4/netmiko_sh_arp.py | Python | apache-2.0 | 1,128 |
// Fill out your copyright notice in the Description page of Project Settings.
#include "Projectile.h"
// Sets default values
AProjectile::AProjectile()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
Project... | Tacticalmint/04_BattleTank | BattleTank/Source/BattleTank/Private/Projectile.cpp | C++ | apache-2.0 | 826 |
#include "stdafx.h"
#include "NET_Common.h"
#include "net_client.h"
#include "net_server.h"
#include "net_messages.h"
#include "NET_Log.h"
#include "../xr_3da/xrGame/battleye.h"
#pragma warning(push)
#pragma warning(disable:4995)
#include <malloc.h>
#include "dxerr.h"
//#pragma warning(pop)
static INetLog* pClNetLog ... | OLR-xray/OLR-3.0 | src/xray/xrNetServer/NET_Client.cpp | C++ | apache-2.0 | 30,074 |
/*******************************************************************************
* Copyright (c) 2015-2019 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | deeplearning4j/deeplearning4j | deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/weights/embeddings/WeightInitEmbedding.java | Java | apache-2.0 | 3,970 |
# coding=utf-8
# Copyright 2012 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2012 NTT DOCOMO, INC.
# Copyright 2014 International Business Machines Corporation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance ... | Tan0/ironic | ironic/drivers/modules/ipmitool.py | Python | apache-2.0 | 44,249 |
/*
* Copyright 2020 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... | droolsjbpm/drools | kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNTypeSchemas.java | Java | apache-2.0 | 5,225 |
<html>
<head>
<title>Inserir Veiculos</title>
<link rel="stylesheet" href="estilo.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="JavaScript" type="text/javascript" src="..\MascaraValidacao.js"></script>
<script>
function busca(){
document.f... | danilohenriqueandrade/AtividadeFinal | home/Veiculos/InserirVeiculo2.php | PHP | apache-2.0 | 3,283 |
/*
* Copyright 2018 OPS4J Contributors
*
* 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 ... | hwellmann/org.ops4j.kaiserkai | kaiserkai-itest/src/test/java/org/ops4j/kaiserkai/rest/LocalAuthSupplier.java | Java | apache-2.0 | 1,497 |
/*
* 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-dialogflow-cx | proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java | Java | apache-2.0 | 4,476 |
// Copyright 2018 The Oppia 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 ap... | souravbadami/oppia | core/templates/dev/head/domain/suggestion/SuggestionThreadObjectFactorySpec.ts | TypeScript | apache-2.0 | 4,690 |
#!/usr/bin/env python
from random import choice
from python.decorators import euler_timer
SQUARES = ["GO",
"A1", "CC1", "A2", "T1", "R1", "B1", "CH1", "B2", "B3",
"JAIL",
"C1", "U1", "C2", "C3", "R2", "D1", "CC2", "D2", "D3",
"FP",
"E1", "CH2", "E2", "E3", "R3",... | dhermes/project-euler | python/complete/no084.py | Python | apache-2.0 | 4,565 |
package rds
//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... | xiaozhu36/terraform-provider | vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/describe_sql_log_files.go | GO | apache-2.0 | 4,727 |
#
# Cookbook Name:: bcpc
# Recipe:: diamond
#
# Copyright 2013, Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | agilemobiledev/chef-bcpc | cookbooks/bcpc/recipes/diamond.rb | Ruby | apache-2.0 | 2,355 |
import { promises as fsPromises } from 'fs';
import { expect } from 'chai';
describe('Verify stryker runs with mocha < 6', () => {
let strykerLog: string;
before(async () => {
strykerLog = await fsPromises.readFile('./stryker.log', 'utf8');
});
it('should warn about old mocha version', async () => {
... | stryker-mutator/stryker | e2e/test/mocha-old-version/verify/verify.ts | TypeScript | apache-2.0 | 486 |
/**
* Copyright (C) 2010-2013 Alibaba Group Holding Limited
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
*... | tgou/RocketMQ | rocketmq-client/src/main/java/com/alibaba/rocketmq/client/impl/consumer/ProcessQueue.java | Java | apache-2.0 | 12,629 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;
using FeedProcessor.Contra... | stimulant/SocialStream | FeedProcessor/Feeds/TwitterStreamingFeed.cs | C# | apache-2.0 | 11,420 |
/*
* 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... | webos21/xi | java/jcl/src/java/javax/crypto/spec/SecretKeySpec.java | Java | apache-2.0 | 5,286 |
/**
* 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... | shot/hadoop-source-reading | src/test/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java | Java | apache-2.0 | 7,159 |
// Copyright 2015 The Cockroach 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 ag... | jamesgraves/cockroach | util/log/structured.go | GO | apache-2.0 | 4,615 |
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace JFrog.Artifactory.Model
{
/// <summary>
/// Artifactory MsBuild info model
/// </summary>
public class Build
{
public readonly static string STARTED_FORMAT = "{0}";//.000+0000";
public readonly static ... | nilleb/msbuild-artifactory-plugin | msbuild-artifactory-plugin/Model/Build.cs | C# | apache-2.0 | 9,387 |
/*
* 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-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/transform/DeactivatePipelineResultJsonUnmarshaller.java | Java | apache-2.0 | 1,666 |
/**
* Copyright 2015 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 ... | pstout/spectator | spectator-ext-placeholders/src/main/java/com/netflix/spectator/placeholders/PlaceholderId.java | Java | apache-2.0 | 2,369 |
# Copyright 2022 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | stackforge/tacker | tacker/db/migration/alembic_migrations/versions/d6ae359ab0d6_add_tenant_id_to_lcm_subscriptions_and_.py | Python | apache-2.0 | 1,237 |