text stringlengths 7 995k |
|---|
/*
* 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 ... |
/*
* The MIT License
*
* Copyright 2021 Daomtthuan.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... |
/*
* 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 ... |
/*
* Copyright 2000-2013 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... |
package us.kbase.cs.orm.dumpers;
import us.kbase.cs.orm.Column;
import us.kbase.cs.orm.ColumnType;
import us.kbase.cs.orm.Dumper;
import java.io.IOException;
public class PublicationsForSeries extends Dumper {
@Column(name="from_link", type=ColumnType.STRING)
private String fromLink;
... |
package com.yanap.todoapp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TodoappApplication {
public static void main(String[] args) {
SpringApplication.run(TodoappApplication.class, args);
}
} |
package kr.ac.sejong.kmooc.data_engineering.lambda;
public class App1 {
public static void main(String[] args) {
double sum = new SumThreeIntegers().compute(3, 4, 5);
System.out.println(sum);
sum = new ComputeThreeIntegers() {
@Override
public double compute(int x, int y, int z) {
return x + y + z;
... |
// CheckStyle: start generated
package com.oracle.truffle.js.builtins.math;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.Introspection;
import com.oracle.truffle.api.dsl.Introspection.Provider;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.Nod... |
package test.testng59;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
/**
* This class/interface
*/
public class Test2 {
private boolean m_run= false;
@Test
public void test2() {
m_run= true;
}
@AfterClass
public void checkWasRun() {
As... |
package com.coolweather.app;
import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @s... |
package com.eure.demo.domain.metrics.techcontribution;
import com.alibaba.cola.logger.Logger;
import com.alibaba.cola.logger.LoggerFactory;
import com.eure.demo.domain.metrics.MainMetric;
import com.eure.demo.domain.metrics.MainMetricType;
import com.eure.demo.domain.user.UserProfile;
import lombok.Data;
/**
* Contr... |
package com.xiazhenyu.corn.notify;
import java.util.Random;
/**
* Date: 2021/11/30
* <p>
* Description:
*
* @author xiazhenyu
*/
public class ConsumerThread extends Thread {
private final MyQueue myQueue;
private final Random random = new Random();
public ConsumerThread(MyQueue myQueue) {
... |
package androidfactory.lazarinapps.com.listoftasks.helper;
import android.content.Context;
import android.widget.Toast;
public class ToastHelper {
public static void createToastAndShowIt(Context context, String message, int duration){
Toast.makeText(context,message, duration).show();
}
} |
/*
* 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 ... |
package stateTemporality;
import model.TemporalizedEntity;
import model.Time;
public class NormalTemporality extends StateTemporality{
public NormalTemporality(Time time){
super(time);
}
public String toString() {
return "l'état courant est : normal temporality";
}
@Override
public void addTemporalized... |
package com.sisllc.mathformulas.ci.ch11.Question11_6;
import com.sisllc.mathformulas.ci.lib.AssortedMethods;
public class PartitionMatrixAndSearch {
public static Coordinate partitionAndSearch(int[][] matrix, Coordinate origin, Coordinate dest, Coordinate pivot, int elem) {
Coordinate lowerLeftOrigin = n... |
package com.android.dcxiaolou.voiceandvideocall.GroupVoiceCall.openacall.ui;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Menu;
import android.view.MenuItem;
impo... |
package org.andstatus.todoagenda;
import org.andstatus.todoagenda.prefs.ApplicationPreferences;
import org.andstatus.todoagenda.provider.QueryResultsStorage;
import org.andstatus.todoagenda.widget.DayHeader;
import org.andstatus.todoagenda.widget.LastEntry;
import org.andstatus.todoagenda.widget.WidgetEntry;
import or... |
package com.ziroom.datacenter.remote.c;
import com.ziroom.commonlib.utils.g;
import com.ziroom.commonlib.utils.l;
import com.ziroom.commonlib.ziroomhttp.d.b;
import com.ziroom.commonlib.ziroomhttp.d.c;
import com.ziroom.datacenter.remote.c.a.f;
import java.util.List;
import okhttp3.HttpUrl;
import okhttp3.Request;
imp... |
package com.google.devrel.training.conference.form;
import com.google.common.collect.ImmutableList;
import java.util.Date;
import java.util.List;
/**
* POJO representing a Conference form sent from the client.
*/
public class ConferenceForm {
/**
* The name of the conference.
*/
private String na... |
package org.motechproject.security.service;
import org.ektorp.CouchDbConnector;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.motechproject.security.authentication.MotechPasswordEncoder;
import org.motechproject.security.domain.MotechUser;
import org.motechproject.security.... |
package com.twelvemonkeys.util.convert;
/**
* TimeConverterTestCase
* <p/>
*
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
* @author last modified by $Author: haku $
* @version $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/test/java/com/twelvemonkeys/uti... |
package com.example.weburlshortener.controller.rest.model;
import java.util.HashMap;
import java.util.List;
import com.example.weburlshortener.model.Url;
public class StatisticResponse {
public static HashMap<String, Object> ok(List<Url> urls) {
HashMap<String, Object> map = new HashMap<String, Object>();
... |
package com.lykke.hft.client;
import com.lykke.hft.ApiClient;
import com.lykke.hft.EncodingUtils;
import com.lykke.hft.model.Wallet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import feign.*;
/**
* <p>WalletsApi interface.</p>
*
* @author niau
* @version $... |
package com.vacuum.app.metquiz.NavigationDrawer;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.text.TextPaint;
import android.text.style.TypefaceSpan;
public class CustomTypefaceSpan extends TypefaceSpan {
private final Typeface newType;
public CustomTypefaceSpan(String fam... |
package org.gurpsdomain.adapters.input.yaml.step;
import org.gurpsdomain.adapters.input.yaml.domain.InputSheet;
import org.gurpsdomain.domain.SheetBuilder;
public class SetEyesStep implements YamlBuildStep {
@Override
public void build(InputSheet data, SheetBuilder sheetBuilder) {
sheetBuilder.addMetaData("descr... |
/*
* Copyright 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 ... |
/*
* 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... |
package com.jacky.compatible.launcher.adapter;
import android.app.Activity;
import android.net.wifi.ScanResult;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.ja... |
/*
* 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 ... |
/*******************************************************************************
* Copyright © 2019 by California Community Colleges Chancellor's Office
*
* 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
* o... |
/*
* Copyright 2004-2014 ICEsoft Technologies Canada Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import org.junit.rules.ExternalResource;
import org.sql2o.*;
public class DatabaseRule extends ExternalResource {
@Override
protected void before() {
DB.sql2o = new Sql2o("jdbc:postgresql://localhost:5432/hair_salon_test","alice", "nikita");
}
@Override
protected void after() {
try(Connection con = DB... |
class Solution {
public int firstUniqChar(String s) {
LinkedHashMap<Character,Integer> lhs = new LinkedHashMap<>();
for(int i=0;i<s.length();i++)
{
char ch = s.charAt(i);
if(lhs.get(ch)==null)
{
lhs.put(ch,1);
}
... |
/*
* Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. 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/LI... |
/* */ package org.apache.batik.bridge;
/* */
/* */ import java.awt.geom.AffineTransform;
/* */ import java.awt.geom.Rectangle2D;
/* */ import java.util.Map;
/* */ import org.apache.batik.ext.awt.image.PadMode;
/* */ import org.apache.batik.ext.awt.image.renderable.AffineRable8Bit;
/* */... |
package com.commercetools.api.models.order_edit;
import java.time.*;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.*;
import io.vrap.rmf.base.client.utils.Generated;
import org.apache.co... |
import java.awt.*;
import javax.swing.*;
/**
* Created by Shiha on 12/14/2016.
*/
public class MainMenuPanel extends JPanel {
Image background;
private JButton play;
private JButton settings;
private JButton tutorial;
private JButton hscores;
private JButton credits;
private JButton quit;... |
// Copyright 2014 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 applicable... |
/**
* 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... |
package com.ifly.transporter.sys.bean;
import java.io.Serializable;
import com.alibaba.fastjson.JSONObject;
/**
*
* 开发公司:itboy.net<br/>
* 版权:itboy.net<br/>
* <p>
*
* 用户{@link UUser} 和角色 {@link URole} 中间表
*
* <p>
*
* 区分 责任人 日期 说明<br/>
* 创建 周柏成 2016年5月25日 <br/>
* <p>
* *******
* <p>
* @author zho... |
/*
* Copyright 2010 James Pether Sörling
*
* 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... |
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.property.criteria;
import java.util.function.Supplier;
/**
* {@link Supplier} bound to {@link Boolean}.
*
* @since 1.0.0
* @see BooleanLiteral
* @see CriteriaPred... |
/*
* BSD 3-Clause License
*
* Copyright © 2020, viadee Unternehmensberatung AG
* 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 retain the above c... |
package org.reasm.z80.source;
import static ca.fragag.testhelpers.HasType.hasType;
import static org.hamcrest.Matchers.both;
import static org.hamcrest.Matchers.hasProperty;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.Matchers.startsWith;
import sta... |
package boa.test.datagen.java;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertThat;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Li... |
/*
* 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 ... |
package ru.betterend.blocks.basis;
import net.minecraft.world.level.block.Block;
import ru.bclib.blocks.BaseWallBlock;
public class EndWallBlock extends BaseWallBlock {
public EndWallBlock(Block source) {
super(source);
}
} |
/*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2013 Adobe
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
/*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package com.rangde.api;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.core.Application;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
public class MyApplication extends Application {
@Override
public Set<Class<?>> getClasses() {
final Set<Class<?>> classes = new ... |
/*
* 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... |
/**
* Java Structure Data Structure Example
* shows structure data structures.
*
* Structure (also called record or tuple or struct) is an aggregate data
* structure. A record is a value that contains other values, typically in
* fixed number and sequence and typically indexed by names. The elements of
* rec... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.containerservice.v2019_06_01;
import com.microso... |
/* 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... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.api.instrumenter.http;
import static io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions.assertThat;
import static org.assertj.core.api.Assertions.entry;
import io.opentelemetry.api.... |
package com.wang.model;
import com.wang.model.entity.UserRole;
import javax.persistence.Table;
/**
*
* @author dolyw.com
* @date 2018/8/30 10:49
*/
@Table(name = "user_role")
public class UserRoleDto extends UserRole {
} |
package org.hzero.iam.app.service.impl;
import java.util.*;
import java.util.stream.Collectors;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.hzero.boot.platform.encrypt.EncryptClient;
import org.hzero.boot.platform.lov.adapter.LovAdapter;
import org.h... |
/*
* Copyright 2017 Redsaz <redsaz@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
/**
* Copyright 2017-2020 the original author or authors from the JHipster Online project.
*
* This file is part of the JHipster Online project, see https://github.com/jhipster/jhipster-online
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... |
/*
* Copyright (c) 2005-2021 Radiance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* th... |
package com.mps.blooddonors.repository;
import com.mps.blooddonors.model.Profile;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ProfileRepository extends JpaRepository<Profile, Long> {
} |
/**
*
* 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
* "Licen... |
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* SDBranchLocationOperationsActivateOutputModelBranchLocationO... |
/*
* Copyright 2010-2016 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... |
package com.facebook.places;
public final class R$dimen {
public static final int compat_button_inset_horizontal_material = 2131165287;
public static final int compat_button_inset_vertical_material = 2131165288;
public static final int compat_button_padding_horizontal_material = 2131165289;
public stat... |
package dev.mflash.guides.jwtauth.security;
import dev.mflash.guides.jwtauth.persistence.CustomUserRepository;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v3/errors/range_error.proto
package com.google.ads.googleads.v3.errors;
public interface RangeErrorEnumOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v3.errors.RangeErrorEnum)
com.... |
package com.ornoma.httpcache.sourcestorage;
import com.ornoma.httpcache.SourceInfo;
/**
* Storage for {@link SourceInfo}.
*
* @author Alexey Danilov (danikula@gmail.com).
*/
public interface SourceInfoStorage {
SourceInfo get(String url);
void put(String url, SourceInfo sourceInfo);
void release();... |
package org.jsoup.nodes;
import org.jsoup.helper.StringUtil;
import org.jsoup.helper.Validate;
import org.jsoup.parser.Parser;
import org.jsoup.select.NodeTraversor;
import org.jsoup.select.NodeVisitor;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection... |
/*
* CFileGenerator.java
* Copyright 2008, 2009, 2010, 2011, 2012, 2013 Fiji Systems Inc.
* This file is part of the FIJI VM Software licensed under the FIJI PUBLIC
* LICENSE Version 3 or any later version. A copy of the FIJI PUBLIC LICENSE is
* available at fivm/LEGAL and can also be found at
* http://www.fiji-... |
package io.rtr.conduit.amqp.impl;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
public class AMQPSyncConsumerBuilderTest {
@Test(expected = IllegalArgumentException.class)
public void testValidationDynamicWithNullRoutingK... |
/**
* This class is generated by jOOQ
*/
package nfl.playdb.model.gen.jooq.tables;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import nfl.playdb.model.gen.jooq.Keys;
import nfl.playdb.model.gen.jooq.NflPlays;
import nfl.playdb.model.gen.jooq.tabl... |
//=============================================================================
// Copyright 2006-2010 Daniel W. Dyer
//
// 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.... |
package com.midtrans.sdk.corekit.models;
import java.io.Serializable;
/**
* Created by chetan on 27/10/15.
*/
public class CardDetail implements Serializable {
private String cardHolderName;
private String cardNumber;
private String expiryDate;
private String cardType;
private String bankName;
... |
/**
* Copyright 2010-2020 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
*
* Unle... |
/* DigiDoc4J library
*
* This software is released under either the GNU Library General Public
* License (see LICENSE.LGPL).
*
* Note that the only valid version of the LGPL license as far as this
* project is concerned is the original GNU Library General Public License
* Version 2.1, February 1999
*/
package org.digi... |
/*
* 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 ma... |
/*
* 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 ... |
/*
* Copyright 2014 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
package p1;
public class First extends p2.First {} |
package org.hisp.dhis.trackedentity.comparator;
/*
* Copyright (c) 2004-2016, University of Oslo
* 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 retain... |
/*
* Copyright © 2019 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... |
/*
* ******************************************************************************
* *
* *
* * 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.
* *
* * See the NO... |
package com.snxun.browser.module.stackview.util;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.util.DisplayMe... |
package me.tecc.lahc.tests;
import me.tecc.lahc.util.MimeType;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class MimeTypeTest {
@Test
void simple() {
MimeType mt = MimeType.parse("application/json");
assertEquals(mt.getType(), "application/json"... |
package com.bros.common.utils;
import java.io.File;
import java.io.FileOutputStream;
import java.util.UUID;
public class FileUtil {
public static void uploadFile(byte[] file, String filePath, String fileName) throws Exception {
File targetFile = new File(filePath);
if (!targetFile.exists()) {
targetFile.mkdi... |
/*
* 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... |
package org.keycloak.protocol.cas.mappers;
import org.keycloak.models.ProtocolMapperModel;
import org.keycloak.models.UserSessionModel;
import org.keycloak.protocol.ProtocolMapperUtils;
import org.keycloak.protocol.oidc.mappers.OIDCAttributeMapperHelper;
import org.keycloak.provider.ProviderConfigProperty;
import jav... |
package bz.rxla.audioplayer;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
i... |
package org.rcsb.cif.schema.mm;
import org.rcsb.cif.model.*;
import org.rcsb.cif.schema.*;
import javax.annotation.Generated;
/**
* Data items in the PDBX_FEATURE_DOMAIN category records
* information about properties pertaining to this structure
* domain.
*/
@Generated("org.rcsb.cif.schema.generator.SchemaGener... |
/*
* 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 ... |
@com.intellij.testFramework.TestDataPath("$PROJECT_ROOT/pro<caret>jectSubdir/")
class ATest extends LightCodeInsightFixtureTestCase {
protected void doTest() {
configureByFile(getTestName(true) + ".java");
}
} |
package uk.gov.ons.ctp.response.action.utility;
import com.godaddy.logging.Logger;
import com.godaddy.logging.LoggerFactory;
import com.google.api.core.ApiFuture;
import com.google.api.gax.core.CredentialsProvider;
import com.google.api.gax.core.NoCredentialsProvider;
import com.google.api.gax.grpc.GrpcTransportChanne... |
import java.awt.Graphics2D;
import java.io.File;
import java.util.Scanner;
public class StarPlotGradient extends JStarPlot
{
public StarPlotGradient()
{
super();
}
@Override
public void drawStar( Star star, AzimuthalEquidistantProjection p )
{
Graphics2D g2 = im.createGraphics();
boolean originAtCenter =... |
/*
* Licensed to Cloudera, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file ... |
package ddop.main;
import ddop.Settings;
import ddop.dto.LevelRange;
import ddop.item.Item;
import ddop.item.ItemList;
import ddop.item.ItemSlot;
import ddop.item.loadout.EquipmentLoadout;
import ddop.optimizer.scoring.scored.ScoredItemList;
import ddop.optimizer.scoring.scorers.ShintaoScorer;
import ddop.optimizer.sc... |
package com.qiusamin.book.saas;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.qiusamin.book.saas")
public class SaasApplication {
public static void main(String[] args) {
SpringApplica... |
/*
* Copyright 2015 Adaptris Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.