code stringlengths 572 46.5k | repo_name stringlengths 7 62 | path stringlengths 6 247 | language stringclasses 7
values | license stringclasses 15
values | size int64 572 46.5k |
|---|---|---|---|---|---|
/*
* Copyright (C) 2015 Willi Ye
*
* 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... | Swapnil133609/Zeus-Controls | app/src/main/java/com/swapnil133609/zeuscontrols/fragments/kernel/SoundFragment.java | Java | apache-2.0 | 7,401 |
/*
* 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/window/assigners/CountTumblingWindowAssigner.java | Java | apache-2.0 | 2,937 |
/*
* Copyright 2012 Kevan Dunsmore. 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... | kdunsmore/diffunit | core/impl/src/main/java/com/sunsprinter/diffunit/core/initialization/AbstractDiffUnitInitializer.java | Java | apache-2.0 | 8,128 |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | sivawang/LineBotTemplate | vendor/googlemaps.github.io/maps/types.go | GO | apache-2.0 | 18,866 |
package de.jungblut.online.regularization;
import de.jungblut.math.DoubleVector;
import de.jungblut.math.minimize.CostGradientTuple;
import de.jungblut.online.ml.FeatureOutcomePair;
public class GradientDescentUpdater implements WeightUpdater {
/**
* Simplistic gradient descent without regularization.
... | thomasjungblut/tjungblut-online-ml | src/de/jungblut/online/regularization/GradientDescentUpdater.java | Java | apache-2.0 | 1,234 |
package com.amoraesdev.mobify.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.i1... | amoraes/mobify | mobify-server/src/main/java/com/amoraesdev/mobify/config/LocalizationConfig.java | Java | apache-2.0 | 970 |
/**
* Copyright (C) 2014 Politecnico di Milano (marco.miglierina@polimi.it)
*
* 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
*
*... | deib-polimi/tower4clouds | manager/manager-api/src/main/java/it/polimi/tower4clouds/manager/api/IManagerAPI.java | Java | apache-2.0 | 2,917 |
/*
* 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")... | sanderginn/isis | core/metamodel/src/test/java/org/apache/isis/objectstore/jdo/metamodel/facets/object/discriminator/GivenJdoDiscriminatorAnnotationFacetFactoryTest.java | Java | apache-2.0 | 4,215 |
package proxy
import (
"context"
"encoding/json"
"time"
"github.com/centrifugal/centrifugo/v3/internal/proxyproto"
)
// PublishRequestHTTP ...
type PublishRequestHTTP struct {
baseRequestHTTP
UserID string `json:"user"`
Channel string `json:"channel"`
Data json.RawMessage `json:"data,omitempty"`
// Base6... | centrifugal/centrifugo | internal/proxy/publish_http.go | GO | apache-2.0 | 1,519 |
/*
* 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 ... | gzsombor/ranger | storm-agent/src/main/java/org/apache/ranger/services/storm/RangerServiceStorm.java | Java | apache-2.0 | 3,010 |
/*
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | RotatingFans/govmomi | govc/host/account/account.go | GO | apache-2.0 | 2,095 |
package io.renren.entity;
import java.io.Serializable;
import java.util.Date;
import io.renren.util.ShortUUID;
/**
* 短信批次信息,通过任意途径,进行任意条短信发送都是一次投资
* @author gaoyupeng
* @date 2017年6月28日
*/
public class MsgBatchInfoEntity implements Serializable{
private static final long serialVersionUID = 1L;
private String... | gyp220203/renren-msg | renren-msg/src/main/java/io/renren/entity/MsgBatchInfoEntity.java | Java | apache-2.0 | 1,813 |
/*
* Copyright © 2016 Cask Data, 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 t... | caskdata/cdap | cdap-hbase-compat-1.0-cdh5.5.0/src/main/java/co/cask/cdap/data2/util/hbase/HBase10CDH550TableUtil.java | Java | apache-2.0 | 10,253 |
package com.efounder.report.build;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.nio.charset.Charset;
import com.itextpdf.text.Document;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.tool.xml.XMLWorkerHelper;
/**
* itextpdf构造器
* @ClassName: Itex... | gaojunxin/OSPReportBuilder | src/main/java/com/efounder/report/build/ItextpdfBuilder.java | Java | apache-2.0 | 964 |
package com.koch.ambeth.training.travelguides.places;
import com.koch.ambeth.ioc.IStartingBean;
import com.koch.ambeth.ioc.annotation.Autowired;
import com.koch.ambeth.log.ILogger;
import com.koch.ambeth.log.LogInstance;
import com.koch.ambeth.training.travelguides.guides.IGuideBook;
import com.koch.ambeth.training.tr... | Dennis-Koch/ambeth | jambeth/jambeth-training/src/main/java/com/koch/ambeth/training/travelguides/places/Cantine.java | Java | apache-2.0 | 764 |
package com.jxd.android.bookinventtory.login;
import com.jxd.android.bookinventtory.bean.DataBase;
import com.jxd.android.bookinventtory.bean.UserBean;
import com.jxd.android.bookinventtory.http.ApiService;
import com.trello.rxlifecycle2.LifecycleProvider;
import io.reactivex.Observable;
import io.reactivex.Observer;... | jxdong1013/bookinventory | src/android/bookinventory/app/src/main/java/com/jxd/android/bookinventtory/login/LoginModel.java | Java | apache-2.0 | 1,267 |
// Copyright 2017 the Istio 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... | frankbu/istio | mixer/adapter/stackdriver/metric/metric.go | GO | apache-2.0 | 9,473 |
package arez.spy;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nonnull;
/**
* Notification when a Component is has finished being created.
*/
public final class ComponentCreateCompleteEvent
implements SerializableEvent
{
@Nonnull
private final ComponentInfo _componentInfo;
public... | realityforge/arez | core/src/main/java/arez/spy/ComponentCreateCompleteEvent.java | Java | apache-2.0 | 743 |
/*
* Copyright 2013 Guidewire Software, Inc.
*/
package gw.lang.ir.statement;
import gw.lang.ir.IRExpression;
import gw.lang.ir.IRStatement;
import gw.lang.UnstableAPI;
import java.util.List;
@UnstableAPI
public class IRCaseClause {
private IRExpression _condition;
private List<IRStatement> _statements;
pu... | gosu-lang/old-gosu-repo | gosu-core-api/src/main/java/gw/lang/ir/statement/IRCaseClause.java | Java | apache-2.0 | 599 |
/**
*
*/
package br.com.dlp.jazzomr.question;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.Logge... | darciopacifico/omr | modulesOMR/trunk/JazzOMRParser/parser/src/main/java/br/com/dlp/jazzomr/question/ShuffleCriterionsVisitor.java | Java | apache-2.0 | 2,233 |
/*
* Copyright 2000-2010 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... | joewalnes/idea-community | platform/lang-impl/src/com/intellij/facet/impl/statistics/FrameworkUsagesCollector.java | Java | apache-2.0 | 3,999 |
package ru.stqa.pft.mantis.tests;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.lanwen.verbalregex.VerbalExpression;
import ru.stqa.pft.mantis.model.MailMessage;
import ru.stqa.pft.mantis.model.User;
import javax.mail.MessagingExce... | crowin/java_pft | mantis-tests/src/test/java/ru/stqa/pft/mantis/tests/PasswordResetTest.java | Java | apache-2.0 | 2,093 |
/*
* Copyright (c) 2018, EPAM SYSTEMS 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 ... | epam/DLab | services/self-service/src/main/java/com/epam/dlab/backendapi/service/impl/BackupServiceImpl.java | Java | apache-2.0 | 2,244 |
/*
* 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... | sopel39/presto | presto-main/src/main/java/io/prestosql/memory/NodeMemoryConfig.java | Java | apache-2.0 | 3,463 |
/*
* Copyright (c) 2008-2014, Hazelcast, 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 ... | lmjacksoniii/hazelcast | hazelcast/src/test/java/com/hazelcast/config/properties/PropertyTypeConverterTest.java | Java | apache-2.0 | 4,879 |
/**
* 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... | kingargyle/turmeric-bot | camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java | Java | apache-2.0 | 2,664 |
package io.fns.calculator.client;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.fusesource.restygwt.client.Defaults;
import org.fusesource.restygwt.client.dispatcher.FilterawareDispatcher;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.go... | fastnsilver/fns-projects | loan/calculator-gwt-ui/src/main/java/io/fns/calculator/client/App.java | Java | apache-2.0 | 2,322 |
/*
Copyright 2019 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | knative/client-contrib | plugins/admin/vendor/knative.dev/serving/pkg/apis/serving/k8s_validation.go | GO | apache-2.0 | 19,952 |
package docker
import (
"github.com/docker/docker/client"
"github.com/viant/endly"
"github.com/viant/endly/util"
"github.com/viant/toolbox"
"golang.org/x/net/context"
)
var clientKey = (*CtxClient)(nil)
//CtxClient represents generic docker client
type CtxClient struct {
Client *client.Client
Context c... | viant/endly | system/docker/client.go | GO | apache-2.0 | 1,638 |
/*
* Copyright (c) 2015, Nordic Semiconductor
* 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 must retain the above copyright notice, this list of conditi... | elibo/ScribaNotesApp | applib/src/main/java/no/nordicsemi/android/scriba/scanner/DeviceListAdapter.java | Java | apache-2.0 | 7,173 |
package org.apereo.cas.support.saml.services.idp.metadata.cache.resolver;
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
import org.apereo.cas.support.saml.InMemoryResourceMetadataResolver;
import org.apereo.cas.support.saml.OpenSamlConfigBean;
import org.apereo.cas.support.saml.services... | apereo/cas | support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/cache/resolver/FileSystemResourceMetadataResolver.java | Java | apache-2.0 | 3,585 |
package uk.ac.ebi.spot.goci.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import uk.ac.ebi.spot.goci.model.Curator;
import uk.ac.ebi.spot.goci.model.Note;
import uk.ac.ebi.spot.goci... | EBISPOT/goci | goci-core/goci-service/src/main/java/uk/ac/ebi/spot/goci/service/StudyNoteService.java | Java | apache-2.0 | 2,421 |
/*
* Copyright 2000-2009 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 | modules/base/lang-impl/src/main/java/com/intellij/refactoring/rename/RenamePsiElementProcessor.java | Java | apache-2.0 | 8,289 |
/*
* Copyright 2015 Lithium Technologies, 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 la... | lithiumtech/flow | src/main/java/com/lithium/flow/db/TomcatSchema.java | Java | apache-2.0 | 2,951 |
package org.eh.core.http;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import org.eh.core.util.StringUtil;
import com.sun.net.httpserver.HttpExchange;
/**
* 全局数据和会话相关数据,单例
* @a... | NotBadPad/easy-httpserver | src/main/java/org/eh/core/http/ApplicationContext.java | Java | apache-2.0 | 3,276 |
//
// Copyright 2011 Kuali Foundation, Inc. Licensed under the
// Educational Community 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.opensource.org/licenses/ecl2.php
//
// Unless required ... | Ariah-Group/Continuity | src/main/java/org/kuali/continuity/domain/SamplePlanDocument.java | Java | apache-2.0 | 1,510 |
/*
* Copyright 2009 Google 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 ... | witterk/closure-stylesheets | tests/com/google/common/css/compiler/passes/CreateStandardAtRuleNodesTest.java | Java | apache-2.0 | 12,944 |
/*
* Copyright 2000-2015 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... | vovagrechka/fucking-everything | phizdets/phizdets-idea/src/vgrechka/phizdetsidea/phizdets/refactoring/move/PyBaseMoveDialog.java | Java | apache-2.0 | 3,675 |
/*
* 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... | bd-dev-mobileum/presto | presto-main/src/main/java/com/facebook/presto/byteCode/control/IfNotNullStatement.java | Java | apache-2.0 | 3,314 |
#!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from pytraits import extendable
# Let's start by creating a simple class with some values. It contains
# only instance variables. Composed property will have access to all
# these variables.
@extendable
class ExampleClass:
def __init__(self):
self.public = 42
... | Debith/py3traits | examples/instance_is_composed_from_cherrypicked_property_in_class.py | Python | apache-2.0 | 1,958 |
/*
* Copyright 2012-present Facebook, 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... | denizt/buck | src/com/facebook/buck/android/AndroidLibraryRule.java | Java | apache-2.0 | 4,998 |
/*
* 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... | googleapis/java-dialogflow-cx | google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcPagesStub.java | Java | apache-2.0 | 11,916 |
/**
* benCoding.AlarmManager Project
* Copyright (c) 2009-2012 by Ben Bahrenburg. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package bencoding.alarmmanager;
import java.util.Calendar;
import java.util.Gregor... | benbahrenburg/benCoding.AlarmManager | src/bencoding/alarmmanager/AlarmProxy.java | Java | apache-2.0 | 2,262 |
/*
* Copyright 2015 Intel(r) Corporation
*
* 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... | apavlenko/vmf | modules/vmdatasource/src/xmpmetadatasource.hpp | C++ | apache-2.0 | 4,868 |
package com.jraska.falcon.sample;
import android.graphics.Bitmap;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.view.View;
import com.jraska.falcon.Falcon;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner... | jraska/Falcon | falcon-sample/src/androidTest/java/com/jraska/falcon/sample/FalconTest.java | Java | apache-2.0 | 3,499 |
/*
* Copyright 2003-2008 Dave Griffith, Bas Leijdekkers
*
* 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... | consulo/consulo-java | java-impl/src/main/java/com/siyeh/ig/j2me/AnonymousInnerClassMayBeStaticInspection.java | Java | apache-2.0 | 2,696 |
/*
* Copyright 2016 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 a... | googlearchive/science-journal | OpenScienceJournal/whistlepunk_library/src/mockclasses/java/com/google/android/apps/forscience/whistlepunk/sensorapi/MemorySensorEnvironment.java | Java | apache-2.0 | 2,551 |
package de.cinovo.cloudconductor.server.ws.host;
import de.cinovo.cloudconductor.api.model.Host;
import de.cinovo.cloudconductor.server.dao.IAgentDAO;
import de.cinovo.cloudconductor.server.dao.IPackageStateDAO;
import de.cinovo.cloudconductor.server.dao.IServiceStateDAO;
import de.cinovo.cloudconductor.server.dao.ITe... | cinovo/cloudconductor-server | src/main/java/de/cinovo/cloudconductor/server/ws/host/HostDetailWSHandler.java | Java | apache-2.0 | 2,180 |
package org.devel.jsyn;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import javax.swing.JApplet;
import javax.swing.JLabel;
import javax.swing.JPanel;
import com.jsyn.JSyn;
import com.jsyn.Synthesizer;
import com.jsyn.scope.AudioScope;
import com.jsyn.swing.JAppletFrame;
import com.jsyn.swing.PortContro... | stefanil/synFX | jsyn/test/java/org/devel/jsyn/SeeGoogleWave.java | Java | apache-2.0 | 2,712 |
/*
* Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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... | xasx/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/ExternalTaskQueryImpl.java | Java | apache-2.0 | 8,074 |
package com.kite9.k9server.adl.holder;
import java.net.URI;
import org.apache.batik.transcoder.SVGAbstractTranscoder;
import org.apache.batik.transcoder.TranscodingHints.Key;
import org.kite9.diagram.batik.format.Kite9SVGTranscoder;
import org.springframework.util.MultiValueMap;
import org.springframework.web.util.Ur... | kite9-org/k9 | src/main/java/com/kite9/k9server/adl/holder/RequestParameters.java | Java | apache-2.0 | 2,208 |
// Copyright (C) 2021 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 applicable ... | GerritCodeReview/plugins_code-owners | javatests/com/google/gerrit/plugins/codeowners/backend/config/CodeOwnersPluginConfigValidatorTest.java | Java | apache-2.0 | 3,622 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/workmail/model/DeleteEmailMonitoringConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WorkMail::Model;
using namespace Aws... | aws/aws-sdk-cpp | aws-cpp-sdk-workmail/source/model/DeleteEmailMonitoringConfigurationRequest.cpp | C++ | apache-2.0 | 1,046 |
/*******************************************************************************
* Copyright 2015 InfinitiesSoft Solutions 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
*
* ... | infinitiessoft/skyport-driver | src/main/java/com/infinities/skyport/util/RSAUtil.java | Java | apache-2.0 | 3,940 |
/**
*
* Copyright 2017 Florian Erhard
*
* 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... | florianerhard/gedi | GediBam/src/gedi/bam/tools/SamToRegion.java | Java | apache-2.0 | 2,684 |
package com.tumblr.cardboard.network;
import android.support.v4.util.Pair;
import com.tumblr.cardboard.BuildConfig;
import com.tumblr.jumblr.JumblrClient;
import com.tumblr.jumblr.types.PhotoPost;
import com.tumblr.jumblr.types.Post;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
imp... | ericleong/tumblr3d | app/src/main/java/com/tumblr/cardboard/network/TumblrClient.java | Java | apache-2.0 | 1,588 |
package com.bbva.kltt.apirest.core.generator.output.language;
import org.junit.Test;
import com.bbva.kltt.apirest.core.generator.output.parameters.OutputParameterTest;
import com.bbva.kltt.apirest.core.parsed_info.ParsedInfoHandlerTest;
import com.bbva.kltt.apirest.core.parsed_info.parameters.ParameterQueryTest... | BBVA-CIB/APIRestGenerator | core/src/test/java/com/bbva/kltt/apirest/core/generator/output/language/OutputLanguageParametersTest.java | Java | apache-2.0 | 2,590 |
/*
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 in writing, software
dis... | googleinterns/k8s-topology-simulator | modeling/algorithm/utils.go | GO | apache-2.0 | 5,900 |
package br.com.ctrlt.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import ... | simonerodrigues/ctrlt | src/main/java/br/com/ctrlt/controller/AdministradorDeConteudoController.java | Java | apache-2.0 | 11,961 |
# coding=utf-8
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import os
from pex.interpreter import PythonInterpreter
from pex.pex import PEX
from pex... | foursquare/pants | src/python/pants/backend/python/tasks/gather_sources.py | Python | apache-2.0 | 3,496 |
/*
* Copyright 2016 The gRPC 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 agree... | zhangkun83/grpc-java | okhttp/src/test/java/io/grpc/okhttp/OkHttpTransportTest.java | Java | apache-2.0 | 3,548 |
// Copyright 2015-2018 trivago N.V.
//
// 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 ... | trivago/gollum | core/pluginconfig.go | GO | apache-2.0 | 6,375 |
package uk.ac.ebi.fg.annotare2.prototypes.layoutapp.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.use... | arrayexpress/annotare2 | prototypes/other/src/main/java/uk/ac/ebi/fg/annotare2/prototypes/layoutapp/client/MySubmissionsHome.java | Java | apache-2.0 | 1,052 |
// deepcopy-gen is a tool for auto-generating DeepCopy functions.
//
// Structs in the input directories with the below line in their comments
// will be ignored during generation.
// // +gencopy=false
package main
import (
"strings"
"github.com/golang/glog"
"k8s.io/gengo/args"
"k8s.io/gengo/examples/deepcopy-ge... | adelton/origin | tools/gendeepcopy/deep_copy.go | GO | apache-2.0 | 3,347 |
/*
* Copyright (c) 2016 Nike, 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... | tlisonbee/cerberus-management-service | src/main/java/com/nike/cerberus/dao/SafeDepositBoxDao.java | Java | apache-2.0 | 3,608 |
package org.lnu.is.converter.admin.unit.type;
import org.lnu.is.annotations.Converter;
import org.lnu.is.converter.AbstractConverter;
import org.lnu.is.domain.admin.unit.type.AdminUnitType;
import org.lnu.is.resource.adminunit.type.AdminUnitTypeResource;
/**
* Admin unit type resource converter.
* @author ivanursul... | ifnul/ums-backend | is-lnu-converter/src/main/java/org/lnu/is/converter/admin/unit/type/AdminUnitTypeResourceConverter.java | Java | apache-2.0 | 830 |
package org.domeos.framework.api.controller.alarm;
import org.domeos.framework.api.controller.ApiController;
import org.domeos.framework.api.model.alarm.assist.ActionWrap;
import org.domeos.framework.api.model.alarm.assist.UserWrap;
import org.domeos.framework.api.service.alarm.AssistService;
import org.springframewor... | domeos/server | src/main/java/org/domeos/framework/api/controller/alarm/AssistController.java | Java | apache-2.0 | 1,558 |
/*
* Copyright 2000-2009 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... | joewalnes/idea-community | platform/platform-impl/src/com/intellij/ui/content/tabs/TabbedContentAction.java | Java | apache-2.0 | 6,007 |
/*
* Copyright 2019 ThoughtWorks, 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 agr... | naveenbhaskar/gocd | server/src/main/java/com/thoughtworks/go/server/initializers/ApplicationInitializer.java | Java | apache-2.0 | 8,493 |
/*
* 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-opensearch/src/main/java/com/amazonaws/services/opensearch/model/transform/DescribeDomainsRequestProtocolMarshaller.java | Java | apache-2.0 | 2,683 |
/*
* 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 ... | googleinterns/calcite | core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableNestedLoopJoin.java | Java | apache-2.0 | 6,272 |
/*
* Copyright 2012-2018 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 ap... | ihoneymon/spring-boot | spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RunMojo.java | Java | apache-2.0 | 4,439 |
/*
* Copyright 2000-2012 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... | leafclick/intellij-community | java/idea-ui/src/com/intellij/ide/util/newProjectWizard/TemplatesGroup.java | Java | apache-2.0 | 3,864 |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/cache/impl/CacheService.java | Java | apache-2.0 | 6,792 |
/*
* Copyright 2019 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 ... | vam-google/google-cloud-java | google-cloud-clients/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java | Java | apache-2.0 | 39,365 |
/*
* 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-acm/src/main/java/com/amazonaws/services/certificatemanager/model/transform/RemoveTagsFromCertificateRequestProtocolMarshaller.java | Java | apache-2.0 | 2,877 |
package nlp;
import java.util.ArrayList;
import java.util.Map;
import java.util.TreeMap;
import utility.ExceptionUtility;
import utility.FileReaderAndWriter;
/**
* Contains mapping from word id to word, and vice versa.
*/
public class Vocabulary {
public Map<Integer, String> wordidToWordstrMap = null;
public Map... | czyuan/AMC | Src/src/nlp/Vocabulary.java | Java | apache-2.0 | 3,774 |
/*
Licensed to the Court of the University of Edinburgh (UofE) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The UofE licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | stumoodie/VisualLanguageToolkit | src/org/pathwayeditor/figure/rendering/MultiplePositionFixedAnchor.java | Java | apache-2.0 | 2,282 |
/*
* 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-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/transform/CreateCloudFrontOriginAccessIdentityRequestMarshaller.java | Java | apache-2.0 | 3,750 |
/*
* Copyright (C) 2015 Google 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 ... | sammcveety/DataflowJavaSDK | sdk/src/test/java/com/google/cloud/dataflow/sdk/coders/EntityCoderTest.java | Java | apache-2.0 | 4,180 |
/*
* Copyright 2013 JBoss by Red Hat.
*
* 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... | rorogarcete/jbpm-console-ng | jbpm-console-ng-documents/jbpm-console-ng-documents-client/src/main/java/org/jbpm/console/ng/dm/client/document/newdocument/NewDocumentViewImpl.java | Java | apache-2.0 | 6,497 |
/*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | taimir/dashboard | Godeps/_workspace/src/k8s.io/kubernetes/federation/pkg/federation-controller/cluster/cluster_client.go | GO | apache-2.0 | 7,970 |
import {DataManager} from 'datamanager';
import {ProgressBar, Bar} from 'progressbar';
/* Not doing this test because it makes an ajax request
This will fail in PhantomJS.
It however works in browser
QUnit.module('Test DataManager');
QUnit.test('getData() return a Promise', assert => {
let p = DataManager.getData... | peterpham/progressbar | src/tests/testsuit.js | JavaScript | apache-2.0 | 5,895 |
/*
* Copyright 2016 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 applica... | AODocs/endpoints-java | endpoints-framework-tools/src/test/java/com/google/api/server/spi/tools/GetOpenApiDocActionTest.java | Java | apache-2.0 | 4,761 |
/*
* Copyright (c) 2007, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package org.postgresql.test.jdbc4;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
/*
* Executes all known tests for JDBC4
*/
@RunWith(Suite.class)
@Suite.SuiteClasse... | AlexElin/pgjdbc | pgjdbc/src/test/java/org/postgresql/test/jdbc4/Jdbc4TestSuite.java | Java | bsd-2-clause | 752 |
/*
* Copyright (c) 2017, Kronos <https://github.com/KronosDesign>
* 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 must retain the above copyright notic... | KronosDesign/runelite | runelite-client/src/main/java/net/runelite/client/plugins/devtools/DevToolsPlugin.java | Java | bsd-2-clause | 10,820 |
// Copyright (c) 2014 The Chromium 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 "third_party/blink/renderer/platform/graphics/graphics_context_state.h"
#include "third_party/blink/renderer/platform/graphics/skia/skia_uti... | endlessm/chromium-browser | third_party/blink/renderer/platform/graphics/graphics_context_state.cc | C++ | bsd-3-clause | 4,722 |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | nocnokneo/MITK | Modules/Segmentation/Algorithms/mitkContourModelToSurfaceFilter.cpp | C++ | bsd-3-clause | 4,596 |
/*
* $Id: OaiPmhHtmlFilterFactory.java,v 1.1.2.1 2014/05/05 17:32:30 wkwilson Exp $
*/
/*
Copyright (c) 2000-2012 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation file... | lockss/lockss-daemon | plugins/src/org/lockss/plugin/pub2web/hbku/HBKUHtmlHashFilterFactory.java | Java | bsd-3-clause | 3,386 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | Livyli/react-native | ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java | Java | bsd-3-clause | 19,788 |
/**
* Portions copyright (C) 2000, 2001 Maynard Demmon, maynard@organic.com
* Portions copyright (C) 2002 Stan Krute <Stan@StanKrute.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the
* following conditions are met:
... | hashrock/JavaOutlineEditor | src/com/organic/maynard/outliner/io/OutlinerFileChooser.java | Java | bsd-3-clause | 17,015 |
// Copyright 2015 The Chromium 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 "chrome/browser/crash_upload_list_crashpad.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
#include "components... | Workday/OpenFrame | chrome/browser/crash_upload_list_crashpad.cc | C++ | bsd-3-clause | 1,143 |
/*
* Copyright (c) 2013-2021, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 01org/processor-trace | libipt/src/pt_error.c | C | bsd-3-clause | 3,168 |
package test.com.xuanwu.dw.transaction;
import java.sql.Connection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import o... | Jakegogo/concurrent | concur/src-test/transaction/SpringTransactionTest1.java | Java | bsd-3-clause | 3,744 |
package edu.cmu.minorthird.text.learn;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import edu.cmu.minorthird.classify.ExampleSchema;
import edu.cmu.minorthird.text.MonotonicTextLabels;
import edu.cmu.minorthird.text.NestedTextLabels;
import edu.cmu.minorthir... | TeamCohen/MinorThird | src/main/java/edu/cmu/minorthird/text/learn/InsideOutsideReduction.java | Java | bsd-3-clause | 3,136 |
package dshell.internal.lib;
import java.io.IOException;
import java.io.Serializable;
import java.util.Collections;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
import org.apache.log4j.Appender;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.ConsoleAppender;
import o... | sekiguchi-nagisa/DShell | src/dshell/internal/lib/RuntimeContext.java | Java | bsd-3-clause | 5,967 |
// Copyright 2012 The Chromium 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 "cc/scrollbar_layer_impl.h"
#include "cc/layer_tree_impl.h"
#include "cc/quad_sink.h"
#include "cc/scrollbar_animation_controller.h"
#include "c... | nacl-webkit/chrome_deps | cc/scrollbar_layer_impl.cc | C++ | bsd-3-clause | 9,079 |
/*================================================================================
Copyright (c) 2013 Steve Jin. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must re... | paksv/vijava | src/com/vmware/vim25/StorageDrsSpaceLoadBalanceConfig.java | Java | bsd-3-clause | 2,441 |
// Copyright 2017 The Chromium 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 "chrome/browser/ui/views/chrome_cleaner_dialog_win.h"
#include "base/strings/string16.h"
#include "chrome/browser/safe_browsing/chrome_cleaner/c... | endlessm/chromium-browser | chrome/browser/ui/views/chrome_cleaner_dialog_win.cc | C++ | bsd-3-clause | 8,168 |
package demo.binea.com.instagramwithmaterialdesign.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import demo.binea.com.instagramwithmaterialdesign.R;
... | xu6148152/InstagramWithMaterialDesign | app/src/main/java/demo/binea/com/instagramwithmaterialdesign/adapter/PhotoFiltersAdapter.java | Java | mit | 1,175 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.