text stringlengths 7 1.01M |
|---|
package com.android.internal.communication;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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
*
... |
package br.com.tiagohs.popmovies.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkInfo;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.UR... |
package praise.the.sun.weatherapp.exceptions;
/**
* Date 10/31/2017.
*
* @author Artur Menchenko
*/
public class GpsDisabledException extends Exception{
}
|
/*
* 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 ... |
/*
* Copyright (C) 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
*
* Unless required by app... |
package everyos.engine.ribbon.components.component;
import everyos.engine.ribbon.core.graphics.InvalidationLevel;
public class LabelComponent extends ContainerComponent {
private String text = "";
public LabelComponent text(String text) {
this.text = text;
invalidate(InvalidationLevel.RENDER);
return this;... |
/*
* Copyright 2000-2021 Vaadin 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 agreed to... |
package com.alphawallet.app.ui.widget.adapter;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import android.graphics.drawable.Drawable;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
impo... |
package logic;
public class Parameters {
//6 + 5 + 3
//30 + 15
public static int length = 45;
public static double crossOverRate = .05;
public static double mutationRate = 0.05;
public static int adults = 800;
public static double treshhold = - 0.25;
public static int stepsPerGeneration = 60;
public static b... |
/*
* 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... |
import java.awt.Component;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignatur... |
package com.ruoyi.project.system.shoudai.service;
import java.util.List;
import com.ruoyi.project.system.shoudai.domain.MockWykjXinshengShoudai;
/**
* 【请填写功能名称】Service接口
*
* @author ruoyi
* @date 2021-01-14
*/
public interface IMockWykjXinshengShoudaiService
{
/**
* 查询【请填写功能名称】
*
* @param i... |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... |
package org.github.gestalt.config.decoder;
import org.github.gestalt.config.node.ConfigNode;
import org.github.gestalt.config.reflect.TypeCapture;
import org.github.gestalt.config.utils.ValidateOf;
/**
* Decode a boolean.
*
* @author Colin Redmond
*/
public class BooleanDecoder extends LeafDecoder<Boolean> {
... |
package com.stephentuso.welcome;
import android.content.Context;
import androidx.annotation.ColorRes;
import androidx.fragment.app.Fragment;
/**
* Created by stephentuso on 11/15/15.
*
* @param <T> needed for method chaining of inherited methods in subclasses
*/
public abstract class WelcomePage<T extends Welcome... |
/*
* 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 ... |
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... |
package br.com.tarcnux.bdsClients.services.exceptions;
public class ResourceNotFoundException extends RuntimeException{
private static final long serialVersionUID = 1L;
public ResourceNotFoundException(String msg) {
super(msg);
}
}
|
/*
* This file is a part of MI
*
* The MIT License (MIT)
*
* Copyright (c) 2021 Roj234
*
* 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 witho... |
/*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package de.jowisoftware.rpgsoundscape.language.psi;
import com.intellij.psi.tree.IElementType;
import de.jowisoftware.rpgsoundscape.language.SoundscapeLanguage;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
public class SoundscapeTokenType extends IElementType {
public Soundscap... |
// "Add 'Foo' as 1st parameter to method 'Bar'" "true"
public class Bar {
Bar(String args) {
}
}
class Foo {
void bar() {
Bar bar = new Bar(th<caret>is, "");
}
} |
/*
* Copyright 2015 herd 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 to in ... |
/*
* Copyright © "Open Digital Education", 2019
*
* This program is published by "Open Digital Education".
* You must indicate the name of the software and the company in any production /contribution
* using the software and indicate on the home page of the software industry in question,
* "powered by Open Digita... |
package com.zpj.fragmentation.demo.demo_zhihu.ui.fragment;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.zpj.fragmentation.demo.R;
import com.zpj.fragmentation... |
/*
* Copyright (C) 2007 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... |
package jp.gr.java_conf.daisy.ajax_mutator.detector.jquery;
import jp.gr.java_conf.daisy.ajax_mutator.detector.AbstractDetector;
import jp.gr.java_conf.daisy.ajax_mutator.mutatable.DOMCloning;
import org.mozilla.javascript.ast.AstNode;
import org.mozilla.javascript.ast.FunctionCall;
import org.mozilla.javascript.ast.P... |
package org.openforis.calc.metadata;
import org.springframework.transaction.annotation.Transactional;
/**
*
* @author Mino Togna
*
*/
public class AoiLevelDao extends org.openforis.calc.persistence.jooq.tables.daos.AoiLevelDao {
@Transactional
public void deleteByHierarchy( AoiHierarchy hierarchy ) {
// ... |
/**
*
* 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"); ... |
package org.infinispan.statetransfer;
import static org.infinispan.reactive.RxJavaInterop.completionStageToCompletable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.PrimitiveIterator;
impo... |
package springbook.learningtest.spring.tx;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annot... |
/*
* #%L
* wcm.io
* %%
* Copyright (C) 2014 wcm.io
* %%
* 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... |
/*
* Copyright (c) 2020 vitasystems GmbH and Hannover Medical School.
*
* This file is part of project openEHR_SDK
*
* 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... |
package com.ctrip.framework.apollo.portal.entity.po;
import com.ctrip.framework.apollo.common.entity.BaseEntity;
import javax.persistence.SequenceGenerator;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
import javax.persistence.Column;
import javax.persistence.Entity;
import jav... |
/*
* MIT License
*
* Copyright (c) 2019 - 2020 Marvin (DerFrZocker)
*
* 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... |
/*
* 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 dto;
//{
// "email": "string",
// "password": "string"
// }
import lombok.*;
@AllArgsConstructor
@Setter
@Getter
@ToString
@Builder
public class AuthRequestDTO {
String email;
String password;
}
|
/*
* Copyright (c) 2010-2012. Axon Framework
*
* 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 ... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.netty.common.client;
import io.netty.channel.Channel;
import io.netty.handler.codec.http.HttpResponse;
import io.opentelemetry.api.GlobalOpenTelemetry;
import io.opentelemetry.instru... |
package io.github.karlatemp.unsafeaccessor;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
@SuppressWarnings("unchecked")
class UsfAccessorImpl extends UsfAccessor.UsfAccessorSpi {
static void initializeJava8() {
Root.Secret.MA... |
/*
* Copyright 2015 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 applicab... |
/*
Copyright 2018 Michal Karm Babacek
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... |
package com.mpf.ZenPlet.models;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.... |
package edu.stanford.nlp.util;
import java.io.*;
import java.util.*;
import java.util.concurrent.Semaphore;
/**
* An Index is a collection that maps between an Object vocabulary and a
* contiguous non-negative integer index series beginning (inclusively) at 0.
* It supports constant-time lookup in
* both directio... |
package nate;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Collection;
import java.util.Set;
import edu.stanford.nlp.trees.TypedDependency;
/**
* Creates (Writ... |
package cn.bmob.imdemo.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import cn.bmob.imdemo.R;
import cn.bmob.imdemo.base.Image... |
/*
* JetS3t : Java S3 Toolkit
* Project hosted at http://bitbucket.org/jmurty/jets3t/
*
* Copyright 2010-2011 James Murty
*
* 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
*
* htt... |
package com.codebrig.jnomad.tests;
import com.codebrig.jnomad.JNomad;
import com.codebrig.jnomad.SourceCodeTypeSolver;
import com.codebrig.jnomad.model.*;
import com.codebrig.jnomad.task.explain.adapter.DatabaseAdapterType;
import com.github.javaparser.Range;
import java.io.File;
import java.util.*;
/**
* @author B... |
/*
* Copyright ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... |
package XMLClasses;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
/**
* @author Tyler Yam Based on code from Robert C. Duvall. This is a super class
* that stores data from an XML to be used for grid configurations
*/
publ... |
package org.folio.marccat.dao.persistence;
import org.apache.commons.lang.builder.ToStringBuilder;
import java.io.Serializable;
/**
* Local Cache alimentata da SAP
*/
public class SCasSapCache implements Serializable {
/**
* identifier field
*/
private Long bibItmNbr;
/* chiavi aggiuntive per dcm */... |
package ca.uhn.fhir.jpa.dao.r4;
import ca.uhn.fhir.jpa.dao.BaseHapiFhirDao;
import ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao;
import ca.uhn.fhir.jpa.dao.DaoConfig;
import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
import ca.uhn.fhir.jpa.entity.Search;
import ca.uhn.fhir.jpa.model.entity.*;
import ca.uhn.fhir.jpa.model.se... |
/*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
package net.coding.program.common.network;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.JsonHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import net.coding.program.LoginActivity... |
/*
* 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 com.github.shuaidd.dto.template;
import java.util.StringJoiner;
/**
* 描述
*
* @author ddshuai
* date 2021-07-15 15:40
**/
public class TemplateControl {
private TemplateProperty property;
private TemplateConfig config;
public TemplateProperty getProperty() {
return property;
}
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE129_Improper_Validation_of_Array_Index__negative_fixed_array_read_check_max_52b.java
Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml
Template File: sources-sinks-52b.tmpl.java
*/
/*
* @description
* CWE: 129 Improper Validation of Arra... |
package com.jesper.controller;
import com.jesper.mapper.ItemCategoryMapper;
import com.jesper.mapper.ItemMapper;
import com.jesper.mapper.ReItemMapper;
import com.jesper.model.Item;
import com.jesper.model.ItemCategory;
import com.jesper.model.ReItem;
import com.jesper.model.ResObject;
import com.jesper.util.*;
import... |
package my.rs;
import com.intellij.openapi.project.Project;
import com.intellij.psi.JavaPsiFacade;
import com.intellij.psi.PsiAnnotation;
import com.intellij.psi.PsiAnnotationMemberValue;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiClassObjectAccessExpression;
import com.intellij.psi.PsiClassType;
imp... |
/*
Copyright (C) 2013-2018 Expedia 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 in wri... |
package prope.executables;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import org.apache.commons.io.FileUtils;
import prope.metrics.adaptability.AdaptabilityAnalyzer;
import prope.metrics.installability.deployability.DeploymentPackageAnalyzer;
import prope.... |
/*
* 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... |
package com.yore.medium;
import java.util.HashMap;
import java.util.Map;
/**
* @author jia bing wen
* @date 2021/6/25 14:49
* @description
*/
public class Number50 {
public double myPow(double x, int n) {
if (x == 0) {
return 0;
}
double result = 1.0;
long b = n;
... |
/**
* Copyright 2017 Pinterest, 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 agree... |
package com.refinedmods.refinedstorage2.api.grid.service;
import org.apiguardian.api.API;
@API(status = API.Status.STABLE, since = "2.0.0-milestone.1.0")
public enum GridInsertMode {
/**
* Will try to insert the entire resource.
*/
ENTIRE_RESOURCE,
/**
* Will try to insert a single resource... |
/*********************************************************************************
* *
* The MIT License (MIT) *
* ... |
/*
* Copyright 2014 Daniel Kurka
*
* 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... |
package ru.bmn.web.hsdb.site.security;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.util.DigestUtils;
public class Md5PasswordEncoder implements PasswordEncoder {
@Override
public String encode(CharSequence rawPassword) {
return rawPassword == null
? null
:... |
/*
* 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 (c) 2017 - 2020, GÉANT
*
* 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 kr.pe.withwind.nims.view.layout;
import java.util.ArrayList;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import com.fasterxml.jackson.databind.DeserializationF... |
package es.tid.topologyModuleBase.plugins.updaters;
public class LayerTypes {
/**
0 = Simple network without layer
1 = Lower Layer
2 = Upper Layer
3 = Inter Layer
*/
public static final int SIMPLE_NETWORK = 0;
public static final int LOWER_LAYER = 1;
public static final int UPPER_LAYER =... |
package com.leyou.common.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
... |
package com.example.basicnotepad;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util... |
/*
* Quotes API For Digital Portals
* The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic search en... |
package com.publiccms.logic.component;
import static com.publiccms.logic.component.SiteComponent.STATIC_FILE_PATH_RESOURCE;
import static com.publiccms.logic.component.SiteComponent.STATIC_FILE_PATH_WEB;
import static com.publiccms.logic.component.SiteComponent.TASK_FILE_PATH;
import static com.publiccms.logic.compone... |
import com.wuyue.mapper.intf.EmployeeMapper;
import com.wuyue.model.entities.Department;
import com.wuyue.model.entities.Employee;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @au... |
package org.apereo.cas;
import org.apereo.cas.audit.spi.config.CasCoreAuditConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationHandlersConfiguration;
import org.apereo.cas.config.CasCoreAuthenticationMetadataConfiguration;
import org.apereo.... |
package com.bitprogress;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author 不会飞的小鹏
* create on 2021/6/14 19:34
* Cms端网关
*/
@SpringBootApplication
@EnableDisco... |
/**
* Copyright (C) 2016 - 2030 youtongluan.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package ai.elimu.web.content.module;
import org.apache.log4j.Logger;
import ai.elimu.dao.ImageDao;
import ai.elimu.model.content.multimedia.Image;
import ai.elimu.model.enums.Locale;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframew... |
/*******************************************************************************
* 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... |
package com.github.seratch.jslack.lightning.service;
import com.github.seratch.jslack.lightning.request.builtin.OAuthCallbackRequest;
import com.github.seratch.jslack.lightning.response.Response;
public interface OAuthCallbackService {
Response handle(OAuthCallbackRequest request);
}
|
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.paint;
import com.intellij.openapi.util.Pair;
import com.intellij.ui.paint.PaintUtil.ParityMode;
import com.intellij.ui.paint.PaintUtil.RoundingMode;
impo... |
/*
* 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")... |
package com.hae.pipe;
import junit.framework.*;
public class TestStageAbbrev extends TestCase {
public void testSyntax() {
assertEquals(0, new Pipe().run("literal a|abbrev hello 2 | hole"));
}
public void testAbbrev() {
Pipe pipe = new Pipe();
assertEquals(0, pipe.run("literal he| abbrev hello 3 | literal x... |
package crc643f46942d9dd1fff9;
public class PositionalSmoothScroller
extends androidx.recyclerview.widget.LinearSmoothScroller
implements
mono.android.IGCUserPeer
{
/** @hide */
public static final String __md_methods;
static {
__md_methods =
"n_getVerticalSnapPreference:()I:GetGetVerticalSnapPreferenceHa... |
/*
* 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
* d... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bonus.regiao;
import model.Funcionario;
/**
*
* @author joaopaulo
*/
public class SiriaHandler implements IRegiaoHandler {... |
package Controller;
import Data.*;
import Model.Group;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.QR... |
package mcjty.rftoolscontrol.api.parameters;
import java.util.HashMap;
import java.util.Map;
public enum ParameterType {
PAR_STRING("string"),
PAR_INTEGER("integer"),
PAR_FLOAT("float"),
PAR_SIDE("side"),
PAR_BOOLEAN("boolean"),
PAR_INVENTORY("inventory"),
PAR_ITEM("item"),
PAR_EXCEPTI... |
/*
* Copyright (C) 2017-2020
*
* 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... |
/*
* 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... |
class Main{
static int palindromePartition(char a[], int n){
int dp[][] = new int[n][n];
for(int i=0;i<n;i++)
dp[i][i] = 0;
for(int i=0; i<n ;i++){
for(int j=0, k=i; j<(n-i) && k < n; j++,k++){
if(j==k){
// dp[j][k] = 1;
continue;
}
if(a[j] == a[... |
package cz.auderis.tools.math.combination;
public class BitMaskCombinationIterator extends AbstractLexicographicCombinationIterator<Long> {
private final long[] bitArray;
public BitMaskCombinationIterator(long mask, int combinationBits) {
super(Long.bitCount(mask), combinationBits);
final int maskBits = getIte... |
package javathreads.examples.ch02;
import java.util.Vector;
/**
* 字母事件处理器
*/
public class CharacterEventHandler {
private Vector listeners = new Vector();
public void addCharacterListener(CharacterListener cl) {
listeners.add(cl);
}
public void removeCharacterListener(CharacterListener cl... |
package com.uber.okbuck.example.common;
import android.content.Context;
import android.widget.Toast;
public class CalcMonitor {
private final Context mContext;
public CalcMonitor(Context context) {
mContext = context;
}
public void addCalled(String config) {
Toast.makeText(
mContext,
... |
/*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.