text
stringlengths
7
995k
package edu.cmu.cs.mvelezce.tool.execute.java; import edu.cmu.cs.mvelezce.tool.performance.entry.DefaultPerformanceEntry; import edu.cmu.cs.mvelezce.tool.performance.entry.PerformanceEntryStatistic; import java.io.File; import java.io.IOException; import java.util.Map; import java.util.Set; /** * * @TODO use the in...
package com.shenhua.app.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import com.shenhua.app.model.User; import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; import com.j256.ormlite.dao.Dao; import com.j256.ormlite.support.ConnectionSource; import com.j256.ormlite.tab...
package com.kyun.android.baisibudejie.pro.publish.view.Utilss; import android.annotation.SuppressLint; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class DateUtils { @SuppressLint("SimpleDateFormat") public static String getNowDateTime() { S...
/* * Copyright (c) 2016 Nova Ordis LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
package projetofinal; public class Visualizacao { private Gafanhoto espectador; private Video filme; public Visualizacao(Gafanhoto espectador, Video filme) { this.espectador = espectador; this.filme = filme; this.espectador.setTotAssistido(this.espectador.getTotAssistido() + 1); ...
package core.models; import core.enums.Roles; public class Administrator extends User { private Book[] addedBooks[]; Roles role = Roles.ADMINISTRATOR; public Administrator(int id, String login, String password) { super(id, login, password); } }
/* * 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 applica...
package geym.conc.ch3.jmh; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Random; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import ...
/* * 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...
/* * Copyright 2017 Apereo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
package com.baeldung.config; import javax.ws.rs.ApplicationPath; /** * * Junjun He */ import org.glassfish.jersey.server.ResourceConfig; import org.springframework.stereotype.Component; @Component @ApplicationPath("/") public class NewJerseyConfig extends ResourceConfig { public NewJerseyConfig() { register(N...
package ru.stqa.pft.mantis.appmanager; import org.openqa.selenium.By; import org.openqa.selenium.support.ui.ExpectedConditions; import ru.stqa.pft.mantis.model.UserData; /** * Created by xxartema on 26.02.2017. */ public class NavigationHelper extends HelperBase { public NavigationHelper(ApplicationManager app...
package io.fabric8.launcher.service.git.gitea; import java.io.IOException; import java.net.URI; import java.net.URL; import java.util.List; import java.util.Optional; import java.util.function.Consumer; import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; import javax.a...
package cz.metacentrum.perun.webgui.json.attributesManager; import com.google.gwt.cell.client.FieldUpdater; import com.google.gwt.cell.client.TextInputCell; import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.user...
/** * */ package com.opensource.dada.elasticsearch.response; import java.io.IOException; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jac...
package cn.ky.jzk.controller; import cn.ky.jzk.model.User; import cn.ky.jzk.service.AddressService; import cn.ky.jzk.service.RelationCommodityUserService; import cn.ky.jzk.service.UserService; import cn.ky.jzk.swagger.api.UserControllerApi; import cn.ky.jzk.util.CorsUtil; import cn.ky.jzk.vo.Response; import org.apach...
/* * Copyright 2015 LINE Corporation * * LINE Corporation 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 r...
package org.infinispan.expiration.impl; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertNull; import java.util.concurrent.TimeUnit; import org.infinispan.Cache; import org.infinispan.configuration.cache.CacheMode; import org.infinispan.configuration.cache.ConfigurationBu...
// Copyright 2017 The Bazel 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 appl...
/* * 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 ca.pfv.spmf.test; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URL; import ca.pfv.spmf.algorithms.sequentialpatterns.clospan_AGP.AlgoCloSpan; import ca.pfv.spmf.algorithms.sequentialpatterns.clospan_AGP.items.SequenceDatabase; import ca.pfv.spmf.algorithms.sequenti...
/* * 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 no...
package io.searchbox.core; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.common.collect.Sets; import io.searchbox.client.JestResult; import io.searchbox.core.search.aggregation.MetricAggregati...
package com.holasoft.launchking; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class A extends Base { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.activity_main); } ...
/* * 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 habuma; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class MspBooksApplicationTests { @Test public void contextLoads() { ...
// 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.execution.impl; import com.intellij.execution.filters.Filter; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.applica...
/* * Copyright (c) 2017 Strapdata (http://www.strapdata.com) * Contains some code from Elasticsearch (http://www.elastic.co) * * 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...
/* * Copyright 2020 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 agreed to in ...
package modularmachines.common.inventory; import javax.annotation.Nullable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import net.minecraft.item.ItemStack; import net.minecraftforge.items.IItemHandler; import modularmachines.common.utils.ItemUtil; public class InventoryManipulato...
/* * Copyright © 2016 David Sargent * 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, modify, merge, publish, dis...
/* * Copyright (c) 2009-2021 jMonkeyEngine * 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 copyright * notice, this list of ...
/* * 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.gs.rpc.serializer; import com.gs.rpc.exception.SerializerException; import lombok.extern.slf4j.Slf4j; import java.io.*; @Slf4j public class JdkSerializer implements Serializer { @Override public byte[] serialize(Object obj) { ObjectOutputStream oos = null; ByteArrayOutputStream ...
package com.ltsllc.miranda.operations.syncfiles; import com.ltsllc.miranda.Message; import com.ltsllc.miranda.clientinterface.basicclasses.Version; import com.ltsllc.miranda.clientinterface.requests.Files; import com.ltsllc.miranda.node.Node; import com.ltsllc.miranda.operations.Operation; import com.ltsllc.miranda.op...
package com.review.model.repositorio; import com.review.model.entidade.Review; public interface IRepositorioReview { public Review adicionar(Review review); public Review atualizar(Review review); public void remover(Review review); public Review buscar(Review review); }
/** * Copyright 2017-2020 O2 Czech Republic, a.s. * * 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 ...
package wraith.waystones.item; import net.minecraft.client.item.TooltipContext; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.ListTag; import net.minecraft.text.Text; import net.minecr...
package com.dvelop.archetype; public class VacationRequestException extends Exception { public VacationRequestException(String message) { super(message); } }
/* * Copyright 2015 Laurent Pellegrino * * 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...
package mage.abilities.keyword; import mage.abilities.Ability; import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; import mage.abilities.costs.Cost; import mage.abilities.costs.CostsImpl; import mage.abilities.costs.OrCost; import mage.abilities.costs.mana.ManaCost; import mage.abilities.costs.mana.ManaCos...
/* * Copyright 2002-2016 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...
/* * Copyright 2016-2021 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...
package sample; import javafx.animation.Timeline; import javafx.animation.TranslateTransition; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import java.util.ArrayList; public abstract class Ranged extends Attacker_plants { protected TranslateTransition t; private Projectile projectil...
package net.mostlyoriginal.game.system; import com.artemis.Aspect; import com.artemis.E; import net.mostlyoriginal.api.component.basic.Bounds; import net.mostlyoriginal.api.component.basic.Pos; import net.mostlyoriginal.game.component.Checkpoint; import net.mostlyoriginal.game.component.PlayerCanTouch; import net.most...
package net.dongliu.apk.parser.struct.xml; import java.util.Locale; import net.dongliu.apk.parser.struct.ResourceValue; import net.dongliu.apk.parser.struct.resource.ResourceTable; /** * @author dongliu */ public class XmlCData { public static final String CDATA_START = "<![CDATA["; public static final String ...
package br.com.sicredi.votacaoapi.domains.pauta.dto; import br.com.sicredi.votacaoapi.domains.pauta.model.Pauta; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @Getter @AllArgsConstructor @NoArgsConstructor public class CriarPautaResponse { private Long topicId; private ...
/* * component * * Copyright (c) 2022 Synopsys, Inc. * * Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide. */ package com.synopsys.integration.alert.component.settings.actions; import org.springframework.beans.factory.annot...
/** * @author Shaun * @date 4/19/15 * @copyright 2015 Sample App. All rights reserved. */ package io.mocha.sampleapp.controllers; import io.mocha.sampleapp.views.SimpleCollectionViewCell; import mocha.foundation.IndexPath; import mocha.graphics.Size; import mocha.ui.BarButtonItem; import mocha.ui.EdgeInsets; impo...
package org.march.data.model; import java.io.Serializable; public interface Command extends Cloneable, Serializable { Command clone(); }
package br.com.onebr.controller.response; import br.com.onebr.model.resistome.Aminoglycoside; import br.com.onebr.model.resistome.BLactam; import br.com.onebr.model.resistome.Colistin; import br.com.onebr.model.resistome.Fosfomycin; import br.com.onebr.model.resistome.FusidicAcid; import br.com.onebr.model.resistome.G...
/* * The MIT License (MIT) * * Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal)) * * 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 withou...
/* * 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.example.yks93.myfragment04; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.constraint.ConstraintLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.supp...
/** * 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...
/* * Copyright 2015 Tsukasa Kitachi * * 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...
package MagPie; /** * A simple class to run the Magpie class. * Code adapted from work by Laurie White for the College Board. * * @author Shawn Velsor * @version 2/3/2021 */ import java.util.Scanner; public class MagpieRunner2 { /** * Create a Magpie, give it user input, and print its replies. ...
package org.apache.lucene.index; /* * 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, Versio...
/** * 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...
/* * (C) Copyright 2019-2020, by Dimitrios Michail and Contributors. * * JGraphT : a free Java graph-theory library * * See the CONTRIBUTORS.md file distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the...
package xj.property.utils; import android.app.ActivityManager; import android.content.Context; import android.os.Build; import android.text.TextUtils; import android.util.Log; import com.easemob.chat.EMChatManager; import com.igexin.sdk.PushManager; import com.tencent.android.tpush.XGIOperateCallback; import com.tenc...
package com.example.accessingdatamysql.controllers; import com.example.accessingdatamysql.dao.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mail.SimpleMailMessage; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.stereotype....
package stone.ast; import java.util.List; /** * Created by shinriyo on 5/6/16. */ public class DefStmnt extends ASTList { public DefStmnt(List<ASTree> c) { super(c);} public String name() { return ((ASTLeaf)child(0)).token().getText(); } public ParameterList parameters() { return (ParameterList)child(1);...
/* * Copyright (C) 2015-2018 SoftIndex LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* * K-scope * Copyright 2012-2013 RIKEN, Japan * * 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 ...
package mvc.view.components.dialogs; public enum BooleanOperator { AND, OR }
package openfoodfacts.github.scrachx.openfood.utils; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiManager; import android.os.Hand...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * 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.github.kosbr.aws.commands.config.list; import com.github.kosbr.cli.CommandOptions; public class ConfigListOptions implements CommandOptions { }
package com.active4j.hr.hr.domain; import java.util.List; import com.active4j.hr.hr.entity.OaHrUserWorkEntity; import lombok.Getter; import lombok.Setter; /** * * @title OaUserWorkModel.java * @description 人事信息-工作经历list * @time 2020年4月14日 上午10:48:56 * @author guyp * @version 1.0 */ @Setter @Getter publi...
package com.mz.jarboot.controller; import com.mz.jarboot.base.AgentManager; import com.mz.jarboot.common.CommandResponse; import com.mz.jarboot.common.ResponseSimple; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; /** * 内部接口,与jarboot-core交互,非开放 * @author majianzh...
/* * 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 org.kyojo.schemaorg.m3n4.doma.core.container; import org.seasar.doma.ExternalDomain; import org.seasar.doma.jdbc.domain.DomainConverter; import org.kyojo.schemaorg.m3n4.core.impl.DOWNVOTE_COUNT; import org.kyojo.schemaorg.m3n4.core.Container.DownvoteCount; @ExternalDomain public class DownvoteCountConverter ...
package org.springframework.security.samples.config; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.sprin...
/* * 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.numberONe.entity; import com.numberONe.annotation.TableSeg; import com.numberONe.util.FormMap; /** * 实体表 */ @TableSeg(tableName = "ly_res_user", id="userId") public class ResUserFormMap extends FormMap<String,Object>{ /** *@descript *@author numberONe *@date 2015年3月29日 *@version 1.0 */ pr...
import java.awt.Color; import java.awt.EventQueue; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; import java.awt.Font; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Employee { public JFrame frame; /** * Lau...
/* * Copyright 2014 the JFlux 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 law or ag...
package uk.gov.ons.ctp.response.casesvc.service.impl; import lombok.extern.slf4j.Slf4j; import net.sourceforge.cobertura.CoverageIgnore; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; import uk.gov.ons.ctp.resp...
package com.feihua.framework.cms.dto; import feihua.jdbc.api.pojo.BaseDbDto; import java.util.Date; /** * This class was generated by MyBatis Generator. * This class corresponds to the database table cms_content_audio * * @mbg.generated 2018-12-25 16:19:41 */ public class CmsContentAudioDto extends BaseDbDto<Stri...
/* * 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, 2020 grondag * * 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...
package seedu.address.model.task; import static java.util.Objects.requireNonNull; import static seedu.address.commons.util.AppUtil.checkArgument; /** * Represents a Task's description in the PlaNus task list. * Comprises of a few sentences representing a brief description of the content of the task. * Guarantees: ...
package deltix.snmp.mtree; import deltix.snmp.smi.*; import java.util.*; /** * */ public class MORow extends MOContainer { private final Map <String, MOPrimitive> nameToNodeMap = new HashMap <String, MOPrimitive> (); MORow (MOTable table, SMIOID index) { super (table, table.getPro...
package cola.machine.game.myblocks.world.chunks; import cola.machine.game.myblocks.math.Vector3i; import cola.machine.game.myblocks.persistence.StorageManager; import cola.machine.game.myblocks.registry.CoreRegistry; import cola.machine.game.myblocks.world.generator.WorldGenerator; import com.dozenx.game.engine.comman...
package io.tetrate.portfolio.service; import io.tetrate.portfolio.domain.*; import io.tetrate.portfolio.repository.OrderRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import o...
import java.io.*; import java.util.*; // Solved by JB Ladera // Solved during contest public class cryptopwatty { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); sc.nextLine(); char[] arr = new char['Z' + 1]; ...
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa...
package net.kikkirej.protocolagent.followtask.commandreplacement; import java.io.File; import java.util.HashMap; import java.util.Map; import net.kikkirej.protocolagent.followtask.commandreplacement.replacer.abstr.ICommandReplacer; import net.kikkirej.protocolagent.followtask.commandreplacement.replacer.abstr.IWritte...
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. package org.cef; import org.cef.callback.CefSchemeHandlerFactory; import org.cef.handler.CefAppHandler; import org.cef.handler.Cef...
/* * 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 ...
/* * ------------------------------------------------------------------------ * TamTam chat Bot API * ------------------------------------------------------------------------ * Copyright (C) 2018 Mail.Ru Group * ------------------------------------------------------------------------ * Licensed under the Apache L...
package com.ericzhang.androidartpractice.chapter2.ipccategories.socket; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.util.Log; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java...
package org.jadice.font.sfntly.issue_tests; import org.jadice.font.sfntly.testutils.TestFont; import org.jadice.font.sfntly.Font; import org.jadice.font.sfntly.FontFactory; import org.jadice.font.sfntly.Tag; import org.jadice.font.sfntly.table.core.NameTable; import java.io.File; import java.io.FileInputStream; impor...
/************************************************************************ * * Copyright 2018 Jochen Staerk * * Use is subject to license terms. * * 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 Li...
package io.nosqlbench.driver.pulsar; import com.codahale.metrics.Counter; import com.codahale.metrics.Meter; import com.codahale.metrics.Timer; import io.nosqlbench.driver.pulsar.ops.PulsarOp; import io.nosqlbench.driver.pulsar.ops.ReadyPulsarOp; import io.nosqlbench.driver.pulsar.util.PulsarNBClientConf; import io.no...
package org.beetl.sample.s01; import org.beetl.core.Configuration; import org.beetl.core.GroupTemplate; import org.beetl.core.Template; import org.beetl.core.resource.StringTemplateResourceLoader; public class HelloBeetl { public static void main(String[] args) throws Exception { StringTemplateResourceLoader reso...
package leetCode;//给定一个非负整数 num。对于 0 ≤ i ≤ num 范围中的每个数字 i ,计算其二进制数中的 1 的数目并将它们作为数组返回。 // // 示例 1: // // 输入: 2 //输出: [0,1,1] // // 示例 2: // // 输入: 5 //输出: [0,1,1,2,1,2] // // 进阶: // // // 给出时间复杂度为O(n*sizeof(integer))的解答非常容易。但你可以在线性时间O(n)内用一趟扫描做到吗? // 要求算法的空间复杂度为O(n)。 // 你能进一步完善解法吗?要求在C++或任何其他语言中不使用任何内置函数(如 C++ 中的 __buil...