text
stringlengths
3.08k
15.2k
/* * 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 servidor; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.Socket; import com.google.gson.Gson; import com.google.gson.JsonElement; import comandos.ComandosServer; import mensajeria.Comando; import mensajeria.Paquete; import mensajeria.PaqueteAt...
package com.opdar.gulosity.utils; import java.io.*; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; /** * Created by Jeffrey on 2015/4/10. * E-Mail:<EMAIL> * Site:opdar.com * QQ:362116120 */ public class Utils { public static byte[] is2byte(InputStream inputStrea...
/** * Copyright 2017 Institute of Computing Technology, Chinese Academy of Sciences. * Licensed under the terms of the Apache 2.0 license. * Please see LICENSE file in the project root for terms */ package eml.studio.client.ui.widget.program; import eml.studio.client.ui.property.ProgramPropertyTable; import eml.st...
/* * JBoss, Home of Professional Open Source * Copyright 2008, Red Hat, Inc., and others contributors as indicated * by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * This copyrighted material is made available to anyone wishin...
/* * (C) Copyright 2015-2017 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...
/* * 3D City Database - The Open Source CityGML Database * http://www.3dcitydb.org/ * * Copyright 2013 - 2019 * Chair of Geoinformatics * Technical University of Munich, Germany * https://www.gis.bgu.tum.de/ * * The 3D City Database is jointly developed with the following * cooperation partners: * * virtual...
/* * 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 n...
package com.webianks.easy_feedback; import android.Manifest; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Build; import android.os.Bun...
package g.r.d; import g.o.i; import g.o.y; import g.o.z; import g.r.c.b; import g.r.c.d; import g.r.c.f; import g.r.c.g; import g.r.c.h; import g.r.c.j; import g.r.c.k; import g.r.c.l; import g.r.c.m; import g.r.c.n; import g.r.c.o; import g.r.c.p; import g.r.c.q; import g.r.c.r; import g.r.c.s; import g.r.c.t; import...
package com.elementary.tasks.backups; import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import android.os.Environment; import android.os.StatFs; import com.elementary.tasks.R; import com.elementary.tasks.core.cloud.Dropbox; import com.elementary.tasks.core.cloud.Google; i...
/* * BEL Framework Webservice Plugin * * URLs: http://openbel.org/ * Copyright (C) 2012, Selventa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License...
package gov.nist.csd.pm.common.util; import com.google.common.base.Throwables; import gov.nist.csd.pm.common.application.SSLSocketClient; import gov.nist.csd.pm.common.info.PMCommand; import gov.nist.csd.pm.common.net.ItemType; import gov.nist.csd.pm.common.net.Packet; import javax.swing.*; import static com.google....
package org.sag.soot.analysis; import java.util.ArrayDeque; import java.util.HashSet; import java.util.Queue; import java.util.Set; import org.sag.common.tuple.Pair; import soot.Local; import soot.Unit; import soot.Value; import soot.jimple.ArrayRef; import soot.jimple.CastExpr; import soot.jimple.DefinitionStmt; im...
/* * eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) 2017 eGovernments Foundation * * The updated version of eGov suite of products as by eGovernments Foundation * ...
package org.rcdukes.geometry; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.util.List; import org.junit.Test; import org.rcdukes.geometry.Line.Vector; import org.rcdukes.geometry.poi...
/* * 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 ...
/* * Copyright 2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.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 requ...
/* * Main * * 1.0.0 * * 2017, Diciembre 3 * */ import java.io.*; import java.net.*; import java.util.*; import java.rmi.Naming; import java.rmi.RemoteException; public class Main { private static class Rn { public int[] arrRN; } public static void main(String[] args) throws IOException {...
/* * Copyright 2011 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...
// Copyright 2015-2018 The NATS Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at: // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
/* * Full Screen Counter * * Copyright (c) 2012, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* This sample demonstrates a bare-bones implementation of the Square Connect OAuth flow: 1. A merchant clicks the authorization link served by the root path (http://localhost:8000/) 2. The merchant signs in to Square and submits the Permissions form. Note that if the merchant is already signed in to Sq...
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
package de.javakaffee.kryoserializers; import static com.esotericsoftware.minlog.Log.TRACE; import static com.esotericsoftware.minlog.Log.trace; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.Collection; import java.util.HashSet; import java.util.Set; import com.esotericsoft...
/* * Copyright 2009-2011 Collaborative Research Centre SFB 632 * * 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...
import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; import net.dv8tion.jda.api.entities.Activity; import net.dv8tion.jda.api.events.message.MessageReceivedEvent; import net.dv8tion.jda.api.hooks.ListenerAdapter; import net.dv8tion.jda.api.entities.MessageEmbed; import net.dv8tion.jda.api.entities.Use...
package com.openxu.cview.xmstock20201030; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.DashPathEffect; import android.graphics.LinearG...
/* * 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 n...
/** * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eith...
package datawave.query.iterator; import java.io.IOException; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import com.google.common.collect.Maps; import datawave.query.function.Equality; import datawave.query.function.PrefixEquality; import datawave.query.pr...
/* Copyright [2011] [<NAME>(<EMAIL>)] 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...
/* * (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and others. * * 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 require...
/* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your opt...
/* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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...
package com.github.nighttripperid.engine; import com.github.nighttripperid.gamestate.GameState; import com.github.nighttripperid.gamestate.Intent; import javax.swing.*; import java.awt.*; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; /** * The object...
package tools; import algo.OneSequenceCalculator; import algo.TerminationMode; import algo.TerminationMode.TerminationModeType; import io.*; import ru.ifmo.genetics.dna.DnaQ; import ru.ifmo.genetics.io.ReadersUtils; import ru.ifmo.genetics.structures.map.BigLong2ShortHashMap; import ru.ifmo.genetics.utils.tool.Executi...
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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 * * http://www.apache.or...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package erp.mod.hrs.db; import erp.mod.SModConsts; import java.sql.ResultSet; import java.sql.SQLException; import sa.gui.util.SUtilConsts; import sa.lib.db.SDbConsts; import sa.lib.db.SDbRegistryUser; import sa.lib.gri...
package edu.mit.mitmobile2.people; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; import edu.mit.mitmobile2.objs.PersonItem; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteD...
package com.alibaba.alink.testutil; import org.apache.flink.test.util.TestBaseUtils; import org.apache.flink.types.Row; import com.alibaba.alink.testutil.envfactory.EnvFactory; import com.google.common.collect.HashMultiset; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.juni...
package org.asciidocgenerator.domain.content; import static javax.persistence.CascadeType.REFRESH; import java.io.File; import java.io.Serializable; import java.sql.Timestamp; import java.util.Collections; import java.util.HashSet; import java.util.Objects; import java.util.Set; import javax.persistence.Column; impo...
package stimulation; import ontogenetic.PeriodWarden; import extractionTreasures.ImmiscibleDisagree; import farm.*; import safekeeping.*; import ledger.*; import static java.lang.String.format; public class Pretence { private static final String synX2232String = " ----------------------------------------------- "; ...
package com.portol.activity; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.os.IBind...
package com.fido.crypto.impl; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderE...
package condensation.stores.folder; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.HashSet; import condensation.Condensation; import condensation.serialization.Bytes; impor...
/** * Copyright 2011-2013 Terracotta, Inc. * Copyright 2011-2013 Oracle, 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 ...
/** * This Source Code Form is subject to the terms of the Mozilla Public License, * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under * the terms of the Healthcare Disclaimer located at http://openmrs.org/license....
/* * The MIT License * * Copyright 2015 usuario. * * 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,...
/* * Copyright 2006-2013 ICEsoft Technologies Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the * License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
/* * 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 ...
// Copyright 2014 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...
/* * Copyright (c) Facebook, Inc. and 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 applic...
/* * Copyright 2011 DTO Solutions, Inc. (http://dtosolutions.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 requir...
package com.github.jjobes.htmldialog; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.As...
/* * This file is part of Online Game, licensed under the MIT License (MIT). * * Copyright (c) 2015-2015 Group 21 * * 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,...
/* * Copyright 2017-2021 <NAME> * * 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 w...
package com.mossle.notification.persistence.domain; // Generated by Hibernate Tools import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinCol...
/* * #%L * %% * Copyright (C) 2015 Trustsystems Desenvolvimento de Sistemas, LTDA. * %% * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice...
package pro.anton.averin.android.skeleton.utils; import android.app.LoaderManager; import android.content.Context; import android.content.Loader; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import andro...
package org.jetbrains.plugins.gradle.remote.impl; import com.intellij.execution.rmi.RemoteServer; import com.intellij.util.Alarm; import com.intellij.util.containers.ConcurrentHashMap; import org.jetbrains.annotations.NotNull; import org.jetbrains.plugins.gradle.task.GradleTaskId; import org.jetbrains.plugins.gradle.n...
package org.openstreetmap.atlas.checks.validation.linear.edges; import java.util.Arrays; import java.util.List; import java.util.Optional; import java.util.stream.Stream; import org.openstreetmap.atlas.checks.base.BaseCheck; import org.openstreetmap.atlas.checks.flag.CheckFlag; import org.openstreetmap.atlas.geograph...
package com.dgrid.service.impl; import java.io.IOException; import java.util.Collection; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.dgrid.api.JobletTypeHandler; import com.dgrid.error...
/* * Copyright 2021 kb1000 * * 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...
/* * Copyright (C) ExBin 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 agreed to...
/** * 项目名:Lazy2b * 包 名:com.lazy2b.app.activity * 文件名:TestActivity1.java * 创 建:2015年10月31日下午2:09:26 * Copyright © 2015, GDQL All Rights Reserved. */ package com.lazy2b.app.activity; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.graphics.d...
package zadatak04; import java.util.ArrayList; import java.util.List; /* * Napisati program koji kreira jednu Deda Mrazovu radionicu poklona i cetiri * vilenjaka. Vilenjaci koji rade u radionici se zovu Maglor, Mrazdalf, * Vetromir i Snegolas i definisani su kao zasebni procesi. Prva dva vilenjaka * su definisana...
/* * Copyright (c) 2010-2015 Pivotal Software, 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 req...
package net.mcmerdith.signshopcustomsell.operations; import net.mcmerdith.signshopcustomsell.util.ItemUtil; import net.mcmerdith.signshopcustomsell.util.WrappedItem; import org.bukkit.inventory.ItemStack; import org.wargamer2010.signshop.configuration.SignShopConfig; import org.wargamer2010.signshop.operations.SignSho...
/******************************************************************************* * Copyright (c) 1999-2005 The Institute for Genomic Research (TIGR). * Copyright (c) 2005-2008, the Dana-Farber Cancer Institute (DFCI), * J. Craig Venter Institute (JCVI) and the University of Washington. * All rights reserved. ...
/* * Licensed to the University of California, Berkeley 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 com.xeiam.xchange.btce.v2; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.xeiam.xchange.btce.v2.dto.account.BTCEAccountInfo; import com...
/* * Copyright © "Open Digital Education", 2016 * * 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 org.pm4j.common.query.inmem; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import org.pm4j.common.expr.Expression; import org.pm4j.common.expr.PathExpressionChain; import org...
/* * Licensed to Crate under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. Crate licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compl...
/* * 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 ...
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availabl...
package seedu.iscam.logic.commands; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.iscam.logic.parser.CliSyntax.PREFIX_EMAIL; import static seedu.iscam.logic.parser.CliSyntax.PREFIX_IMAGE; import static seedu.iscam.logic.parse...
package com.ft.plugin.garble.asm; import com.android.build.api.transform.Context; import com.android.build.api.transform.DirectoryInput; import com.android.build.api.transform.Format; import com.android.build.api.transform.JarInput; import com.android.build.api.transform.QualifiedContent; import com.android.build.api....
package com.dedicatedcode.paperspace.feeder; import com.dedicatedcode.paperspace.BinaryService; import com.dedicatedcode.paperspace.model.Binary; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.V...
/* * Copyright (c) 2017-2020 Software Architecture Group, Hasso Plattner Institute * * Licensed under the MIT License. */ package de.hpi.swa.trufflesqueak.model; import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; import java.util.Arrays; import com.oracle.truffle.api.CompilerAsserts; import ...
package com.qualixium.playnb.filetype.routes.lexer; import com.qualixium.playnb.filetype.routes.RoutesLanguage; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import org.netbeans.spi.lexer.LanguageHierarchy; import org.netbeans.spi.lexer.Lex...
/* * This file is part of JICI, licensed under the MIT License (MIT). * * Copyright (c) 2015-2016 <NAME> <http://sapon.ca/jici/> * * 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 witho...
package com.appacitive.khelkund.activities.pick5; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import a...
package com.zaitunlabs.zlcore.core; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.MailTo; import android.os.Build; import android.os.Bundle; import androidx.annotation.RequiresApi; import androidx.fragment.app.FragmentTransaction; import androidx.appcom...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.util; import android.app.ActivityManager; import android.app.ActivityManager.AppTask; import android.app.ActivityMana...
/* * 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 ...
import java.io.*; import java.util.*; import com.erlport.erlang.term.*; class State implements Serializable { Integer times; public State() { times = 0; } public Integer incr() { times += 1; return times; } @Override public String toString() { return Stri...
/* * Copyright (C) 2015 Square, 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...
package sample; import java.io.FileOutputStream; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; class OCIF { private static void writePixelToFileAsOCIF5(FileOutputStream out, Pixel pixel) throws IOException { out.write((byte) Pal...
package io.fabric8.openshift.api.model.monitoring.v1alpha1; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnor...
import Models.Deviations; import Models.UserPreference; import javafx.util.Pair; import java.util.*; /** * Created by geddy on 17-3-2016. */ public class SlopeOne { public HashMap<Integer, HashMap<Integer, Deviations>> calculate(HashMap<String, UserPreference> userRatings){ HashMap<Integer, HashMap<I...
/* * (c) Copyright 2020 Palantir Technologies 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 ...
package com.java.selectiverepeat.client; import java.io.IOException; import java.math.BigInteger; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.HashMap; import java.util.Ha...
/* * SSLCertDialogPreference.java - This class holds a dialog preference for polling SSL certs * * Copyright (C) 2010 <NAME> <<EMAIL>> * * This software is released under the BSD license. */ package net.hagander.mailinglistmoderator.preferences; import java.io.IOException; import java.math.BigInteger; import j...
package com.codepath.apps.mysimpletweets.dialogs; import android.content.Intent; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.DialogFragment; import android.support.v4.app.Fragment; import android.support.v4.content.Cont...
package edu.jhu.pacaya.hypergraph.depparse; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Test; import edu.jhu.pacaya.autodiff.AbstractModuleTest; import edu.jhu.pacaya.autodiff.AbstractModuleTest.Tensor1Factory; import edu.jhu.pacaya.autodiff.Identity; impo...
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.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 requ...
package com.alibaba.alink.operator.common.statistics.basicstatistic; import com.alibaba.alink.common.linalg.DenseVector; import com.alibaba.alink.common.linalg.Vector; import com.alibaba.alink.common.linalg.VectorUtil; import java.util.Arrays; /** * It is summary of dense vector, and uses DenseVector to store inter...