repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
GoogleContainerTools/jib
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/jar/JarFiles.java
3975
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
apache/tapestry4
framework/src/test/org/apache/tapestry/services/impl/EngineFactoryTest.java
4424
// Copyright 2004, 2005 The Apache Software Foundation // // 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...
apache-2.0
nus-ncl/services-in-one
common/src/main/java/sg/ncl/common/authentication/AuthenticationProperties.java
836
package sg.ncl.common.authentication; import lombok.Getter; import org.springframework.boot.context.properties.ConfigurationProperties; import java.util.HashMap; import java.util.Map; /** * Base class for configuring authentication. * * @author Christopher Zhong * @version 1.0 */ @ConfigurationProperties(prefix...
apache-2.0
viant/toolbox
storage/scp/service.go
8543
package scp import ( "bytes" "errors" "fmt" "github.com/lunixbochs/vtclean" "github.com/viant/toolbox" "github.com/viant/toolbox/cred" "github.com/viant/toolbox/ssh" "github.com/viant/toolbox/storage" "io" "io/ioutil" "net/url" "os" "path" "strings" "sync" ) const ( defaultSSHPort = 22 ver...
apache-2.0
drusellers/MassTransit
src/Persistence/MassTransit.MongoDbIntegration.Tests/Saga/MongoDbSagaRepositoryTestsForSendQuery.cs
3874
// Copyright 2007-2016 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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...
apache-2.0
KalinduDN/kalindudn.github.io
react/features/large-video/components/LargeVideo.web.js
2858
/* @flow */ import React, { Component } from 'react'; import { Watermarks } from '../../base/react'; import { VideoStatusLabel } from '../../video-status-label'; /** * Implements a React {@link Component} which represents the large video (a.k.a. * the conference participant who is on the local stage) on Web/React....
apache-2.0
fredska/MapGenerator
MapGenerator/src/com/fska/map/screens/MapGenScreen.java
347
package com.fska.map.screens; import com.badlogic.gdx.Screen; public enum MapGenScreen { VORONOI { @Override protected Screen getScreenInstance(){ return new VoronoiScreen(); } }, PERLIN{ @Override protected Screen getScreenInstance(){ return new PerlinNoiseScreen(); } }; protected abstract Scr...
apache-2.0
worldline/TrainingJEEAngular
trainingapp/src/components/slides/ecosystem/typescript1/typescript1.ts
555
import {Component, Inject, ElementRef} from '@angular/core'; import {SlideCommon} from '../../slideCommon/slideCommon'; import {HOST_SLIDE_CONTAINER_CLASS} from '../../../../services/constants'; @Component({ selector:'Typescript1', templateUrl:'src/components/slides/ecosystem/typescript1/typescript1.html', style...
apache-2.0
tochti/docMa-handler
docs/search.go
3977
package docs import ( "bytes" "fmt" "strings" "time" "github.com/tochti/docMa-handler/labels" "gopkg.in/gorp.v1" ) type ( Interval struct { From time.Time `json:"from"` To time.Time `json:"to"` } SearchForm struct { Labels string `json:"labels"` DocNumbers string `json:"doc_numbers"` D...
apache-2.0
code4wt/nutch-learning
src/java/org/apache/nutch/indexer/IndexingFilters.java
2222
/** * 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...
apache-2.0
opencb/bionetdb
bionetdb-server/src/main/java/org/opencb/bionetdb/server/exception/VersionException.java
789
/* * Copyright 2015 OpenCB * * 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...
apache-2.0
Sloy/gallego
src/main/java/com/sloydev/gallego/Supplier.java
2233
/* * Copyright (C) 2007 The Guava 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 ...
apache-2.0
nipunas/blogplatform
WebApp-B2C-DotNet/Controllers/HomeController.cs
1430
using BlogOperations.Operations; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Web; using System.Web.Mvc; namespace BlogPlatform.Controllers { public class HomeController : Controller { public ActionResult Index() { B...
apache-2.0
ern/elasticsearch
server/src/main/java/org/elasticsearch/search/aggregations/bucket/range/DateRangeAggregationBuilder.java
13997
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
apache-2.0
JavaSaBr/jME3-SpaceShift-Editor
src/main/java/com/ss/editor/ui/component/creator/impl/material/MaterialFileCreator.java
4309
package com.ss.editor.ui.component.creator.impl.material; import static com.ss.editor.FileExtensions.JME_MATERIAL; import static com.ss.rlib.common.util.ObjectUtils.notNull; import static java.nio.file.StandardOpenOption.*; import com.jme3.material.Material; import com.ss.editor.FileExtensions; import com.ss.editor.Me...
apache-2.0
drankye/directory-server
core-api/src/main/java/org/apache/directory/server/core/api/EntryToResponseCursor.java
8409
/* * 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 * "Lic...
apache-2.0
avadev/AvaTaxClientLibrary
generator/ClientApiGenerator/Filters/Filter.cs
222
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClientApiGenerator.Filters { // base filter class public class Filter { } }
apache-2.0
aduprat/james-mailbox
store/src/main/java/org/apache/james/mailbox/store/quota/ListeningQuotaManager.java
9153
/**************************************************************** * 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...
apache-2.0
wilkmaia/wm-representacoes-2
prototype/cities/ma.js
6626
module.exports = [{ name: 'Açailândia' }, { name: 'Afonso Cunha' }, { name: 'Água Doce do Maranhão' }, { name: 'Alcântara' }, { name: 'Aldeias Altas' }, { name: 'Altamira do Maranhão' }, { name: 'Alto Alegre do Maranhão' }, { name: 'Alto Alegre do Pindaré' }, { name: 'Alto Parnaíba' }, { name: 'Amap...
apache-2.0
brianfcoleman/libvideocapture
src/videocapture/windows/COMUtilities.hpp
2992
#ifndef VIDEO_CAPTURE_COM_UTILITIES_H #define VIDEO_CAPTURE_COM_UTILITIES_H #define BOOST_BIND_ENABLE_STDCALL #define BOOST_MEM_FN_ENABLE_STDCALL #include <vector> #include "boost/shared_ptr.hpp" #include "boost/bind.hpp" #include "boost/mem_fn.hpp" #include "wtypes.h" #include "oleauto.h" namespace VideoCapture { ...
apache-2.0
mkoslacz/Moviper
moviper-recyclerview/src/main/java/com/mateuszkoslacz/moviper/iface/view/MvpDataView.java
347
package com.mateuszkoslacz.moviper.iface.view; import com.hannesdorfmann.mosby.mvp.MvpView; /** * Created by mateuszkoslacz on 01.12.2016. * <p> * The root view interface for every MVP ViewHolder */ public interface MvpDataView<DataObject> extends MvpView { DataObject getDataObject(); void setDataObjec...
apache-2.0
vishvananda/wormhole
main/wormhole/wormhole.go
93
package main import ( "github.com/vishvananda/wormhole/cli" ) func main() { cli.Main() }
apache-2.0
REBOOTERS/My-MVP
app/src/main/java/huyifei/mymvp/datastorage/room/dao/UserDao.java
808
package huyifei.mymvp.datastorage.room.dao; import androidx.room.Dao; import androidx.room.Delete; import androidx.room.Insert; import androidx.room.OnConflictStrategy; import androidx.room.Query; import java.util.List; import huyifei.mymvp.datastorage.room.entity.UserEntity; import io.reactivex.Flowable; /** * @v...
apache-2.0
wil3/lacus
src/main/java/edu/stevens/cpe/math/MLMatrixUtils.java
8259
/******************************************************************************* * Copyright 2013 William Koch * * 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...
apache-2.0
mpi2/PhenotypeData
web/src/main/java/uk/ac/ebi/phenotype/web/controller/registerinterest/CaptchaFilter.java
3923
package uk.ac.ebi.phenotype.web.controller.registerinterest; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.configurationprocesso...
apache-2.0
cpieloth/leipzigdata4j
src/main/java/examples/AddressClientExample.java
787
package examples; import de.leipzigdata.address.AddressClient; import de.leipzigdata.address.entity.Address; import java.net.URI; import java.net.URISyntaxException; import java.util.List; /** * @author cpieloth */ public class AddressClientExample { public static void main(String[] args) { AddressClie...
apache-2.0
openstack/sahara
sahara/tests/unit/service/api/v2/base.py
3799
# Copyright (c) 2017 EasyStack 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...
apache-2.0
air-project/project-dict
src/main/java/com/air/utils/dict/cache/RedisSyncAble.java
472
package com.air.utils.dict.cache; import java.util.List; import com.air.utils.dict.entity.BaseDict; public interface RedisSyncAble { /** * 保存数据插入到数据库,分发到其他redis等等 * @param cacheKey 缓存键 * @param dicts 字典 */ void save(final String cacheKey,List<BaseDict> dicts); /** * * @param cache...
apache-2.0
htcondor/htcondor
src/condor_utils/network_adapter.linux.cpp
8598
/*************************************************************** * * Copyright (C) 1990-2008, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may ...
apache-2.0
cloud-elements/element-connect
src/main/webapp/scripts/common/CloudElementsUtils.js
4472
/** * This is Utils class used for common/generic/utils functions * that will be used across the board * * Created by Ramana on 11/3/14. */ var CloudElementsUtils = Class.extend({ /** * Check if passed in value is undefined or null * * @param obj * @returns {boolean} */ isEmpty: f...
apache-2.0
markusgumbel/dshl7
hl7-javasig/gencode/org/hl7/rim/decorators/QuerySpecDecorator.java
6828
/* THIS FILE IS GENERATED AUTOMATICALLY - DO NOT MODIFY. The contents of this file are subject to the Health Level-7 Public License Version 1.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.hl7.org/HPL/ Software distributed under t...
apache-2.0
tangyouyi1513/openrasp
agent/java/engine/src/main/java/com/baidu/openrasp/tool/decompile/DecompilerProvider.java
2357
/* * Copyright 2017-2018 Baidu 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...
apache-2.0
hortonworks/cloudbreak
flow/src/test/java/com/sequenceiq/flow/core/StateConverterAdapterTest.java
706
package com.sequenceiq.flow.core; import org.junit.Assert; import org.junit.Test; import com.sequenceiq.flow.core.restart.DefaultRestartAction; public class StateConverterAdapterTest { private final StateConverterAdapter<TestState> stateConverterAdapter = new StateConverterAdapter<>(TestState.class); @Test ...
apache-2.0
tensorflow/tflite-micro
tensorflow/lite/micro/memory_arena_threshold_test.cc
12205
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
apache-2.0
ostap0207/remotify.me
remotify.common/src/main/java/messages/device/CommandMessage.java
353
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package messages.device; import messages.Message; /** * * @author Ostap */ public abstract class CommandMessage implements Message{ public static final long serialVersionUID = 1L; public String computerUID...
apache-2.0
codesoftware/NSIGEMCO
src/main/java/co/com/codesoftware/server/ProductosHomeEntity.java
5041
package co.com.codesoftware.server; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Clase Java para productosHomeEntity complex type. * * <p>El siguiente fragmento de esquema especifica el contenido que se esper...
apache-2.0
atsu85/java2typescript-jackson
src/test/resources/java2typescript/jackson/module/ClassWithGenericTypeTest.classWithGenericTypeParams.d.ts
176
export interface ClassWithGenericTypeParams<K, V> { stringField: string; genericFieldK: K; genericFieldV: V; booleansByStrings: { [key: string ]: boolean;}; }
apache-2.0
jentfoo/aws-sdk-java
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/transform/ListTagsForResourceResultJsonUnmarshaller.java
2982
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
GoogleCloudPlatform/compute-virtual-ethernet-windows
src/rx_ring.cpp
14120
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
gregjones60/keycloak
model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/ClientAdapter.java
17103
package org.keycloak.models.cache.infinispan; import org.keycloak.models.*; import org.keycloak.models.cache.CacheRealmProvider; import org.keycloak.models.cache.RealmCache; import org.keycloak.models.cache.entities.CachedClient; import java.util.*; /** * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a...
apache-2.0
xiaoliable/EssayClassifier
src/com/winga/xxl/classifier/calculation/IDocVectorAccessor.java
494
package com.winga.xxl.classifier.calculation; import java.util.Map; import com.winga.xxl.classifier.data.store.IDocuments; /** * <p>CreatDate : 2014-9-1</p> * <p>Description : Access the document's title or content vector map conveniently. </p> * <p>( Title and content are indicators currently. )</p> * @author x...
apache-2.0
sidheshenator/autopsy
Core/src/org/sleuthkit/autopsy/timeline/events/db/EventDB.java
44301
/* * Autopsy Forensic Browser * * Copyright 2013 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> 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://ww...
apache-2.0
kaiwinter/android-remote-notifications
android-remote-notifications/src/test/java/com/github/kaiwinter/androidremotenotifications/model/UpdatePolicyTest.java
2141
package com.github.kaiwinter.androidremotenotifications.model; import org.junit.Test; import java.util.Date; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; /** * Tests if the execution time for a notification update from the server is correctly calculated. */ public final c...
apache-2.0
imbeebo/harlemcodetrotters
GonqBox/src/gonqbox/servlets/MakePublicPrivate.java
1509
package gonqbox.servlets; import java.io.IOException; import java.util.ResourceBundle; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax....
apache-2.0
liulhdarks/darks-learning
src/main/java/darks/learning/common/minispantree/MiniSpanTree.java
1836
/** * * Copyright 2014 The Darks Learning Project (Liu lihua) * * 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...
apache-2.0
aevum/libgdx-cpp
src/Box2D/Dynamics/Joints/b2Joint.cpp
4866
/* * Copyright (c) 2006-2007 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * i...
apache-2.0
MathieuPomerleau/JhinBotCore
JhinBot/Database/Implementation/UnitOfWork.cs
2537
using System; using System.Threading.Tasks; using JhinBot.Database; using JhinBot.Repositories; using JhinBot.Repositories.SQLite_Repo; using JhinBot.Database.Implementation; namespace JhinBot { public class UnitOfWork : IUnitOfWork { public JhinBotContext _context { get; } private ICommandRe...
apache-2.0
projectodd/kubernetes
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go
13055
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
apache-2.0
jrmoser/Portfolio_Bootstrap
first-web-page/Javasript/script.js
231
/** * Created by jarodmoser on 9/4/15. */ $(function() { $(window).scroll(function() { if ($(window).scrollTop() >= 200) { $(".header").addClass('smaller'); } else { $(".header").removeClass("smaller"); } }); });
apache-2.0
huahuajjh/requisition_land
WebRoot/assets/js/ticketState.js
623
function toTicketNumber(name){ switch (name) { case "LOSSOFREPORT": return 1; case "EXCHANGEED": return 2; case "MENDED": return 3; case "USED": return 4; case "RECEIVED": return 5; case "CASHED": return 6; case "NORMAL": return 7; default: return 0; } } function toTicketStr(name){ switch (na...
apache-2.0
cacristo/ceos-project
jexan/src/test/java/net/ceos/project/poi/annotated/bean/FreeElementAdvancedObject.java
3683
/** * Copyright 2016 Carlos CRISTO ABREU * * 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 ...
apache-2.0
jentfoo/aws-sdk-java
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/transform/OrcSerDeMarshaller.java
4969
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
skoulouzis/lobcder
lobcder-master/src/main/java/nl/uva/cs/lobcder/optimization/LDClustering.java
26382
/* * Copyright 2014 S. Koulouzis. * * 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 ...
apache-2.0
scala/scala
src/compiler/scala/tools/nsc/settings/StandardScalaSettings.scala
5439
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc packag...
apache-2.0
shaolinwu/uimaster
modules/uipage/src/main/java/org/shaolin/uimaster/page/ajax/handlers/AjaxHandlerException.java
1486
/* * Copyright 2015 The UIMaster Project * * The UIMaster Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
apache-2.0
zoozooll/MyExercise
meep/MeepLib/src/com/oregonscientific/meep/database/table/TableConversationLog.java
321
package com.oregonscientific.meep.database.table; public class TableConversationLog { public static final String TABLE_NAME = "conversationLog"; public static final String SENDER_ID = "senderId"; public static final String RECEIVER_ID = "receiverId"; public static final String CONVERSATION_ID = "conversationId"; }...
apache-2.0
darranl/directory-shared
ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/compareResponse/InitCompareResponse.java
2791
/* * 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")...
apache-2.0
ctripcorp/dal
dal-client/src/main/java/com/ctrip/platform/dal/dao/datasource/cluster/ShardMeta.java
283
package com.ctrip.platform.dal.dao.datasource.cluster; import com.ctrip.framework.dal.cluster.client.base.HostSpec; import java.util.Set; /** * @author c7ch23en */ public interface ShardMeta extends ClusterMeta { int shardIndex(); Set<HostSpec> configuredHosts(); }
apache-2.0
alim1369/sos
src/sos/ambulance_v2/tools/SOSParticleFilter.java
11179
package sos.ambulance_v2.tools; import java.util.ArrayList; import java.util.Collections; import sos.base.entities.Human; /** * ParticleFilter by ZJU 2008 * edited by @r@mik ali * future --> check and expand the size of damage array for more exact prediction */ public class SOSParticleFilter { private int m_dm...
apache-2.0
tmccarthy/chatty
src/chatty/util/StringUtil.java
5739
package chatty.util; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.regex.Pattern; /** * * @author tduva */ public class StringUtil { /** * Tries to turn the given Object into a List of Strings. ...
apache-2.0
zjshen/hadoop-YARN-2928-POC
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/metrics/AbstractTimelineServicePublisher.java
5924
/** * 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...
apache-2.0
markus1978/emf-fragments
de.hub.emffrag.tests/src/de/hub/emffrag/fragmentation/OppositeIndexedContentsTests.java
508
package de.hub.emffrag.fragmentation; import org.eclipse.emf.ecore.EReference; import org.junit.Test; import de.hub.emffrag.testmodels.testmodel.frag.meta.TestModelPackage; public class OppositeIndexedContentsTests extends OppositeFragmentedContentsTests { @Override protected EReference testedReference() { retu...
apache-2.0
nafae/developer
modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201306/ReportJob.java
7422
/** * ReportJob.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201306; /** * Represents a report job that will be run to retrieve performance * and * statistics information about ad ca...
apache-2.0
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/structmatch.js
249
var structmatch = [ [ "flow", "structmatch.html#a60796db468aa8dbe2291a3720891eb4d", null ], [ "tun_md", "structmatch.html#af1258eae4b664adfdee5cf22004c9149", null ], [ "wc", "structmatch.html#a13a0fd08308df2699c23b003aa19d784", null ] ];
apache-2.0
Dodd2013/DoddCMS
html/jssrc/ctrl/admin/contentManageCtrl.js
6951
/*global define*/ 'use strict'; /** * The main controller for the app. The controller: * - retrieves and persist the model via the todoStorage service * - exposes the model to the template and provides event handlers */ define(['angular', 'pnotify', 'jquery', 'bootstrapTableNg', 'bootstrapTableCN'], function(angu...
apache-2.0
dbiir/jdbc-for-kafka
src/cn/edu/ruc/kafka/connection/Connection.java
8072
package cn.edu.ruc.kafka.connection; import java.sql.*; import java.util.Map; import java.util.Properties; import java.util.concurrent.Executor; /** * ConsumerConnection and ProducerConnection should extends this class. * This class implements the unused methods so that other sub-classes can be shorter and more cle...
apache-2.0
tectronics/hyracks
hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/file/TransientLocalResourceRepository.java
2866
/* * Copyright 2009-2013 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
apache-2.0
gennadykr/java_training
mantis-tests/src/test/resources/config_inc.php
517
<?php $g_hostname = 'localhost'; $g_db_type = 'mysqli'; $g_database_name = 'bugtracker'; $g_db_username = 'root'; $g_db_password = ''; $g_default_timezone = 'Europe/Moscow'; $g_crypto_master_salt = '09IPdmdNFCEQQdM5S663+Tf/GsIrNzM6WSJ23Kxiwlo='; $...
apache-2.0
alee88/pl3
algm/kd.go
524
package algm import ( "strconv" "strings" ) type KdFilter struct { KdSet string } func (f KdFilter) Filt(s string) bool { if f.KdSet == "" { f.KdSet = allCond } max, _ := strconv.Atoi(string(s[0])) for i, _ := range s { t, _ := strconv.Atoi(string(s[i])) if max < t { max = t } } min, _ := strco...
apache-2.0
googleapis/gapic-generator-python
tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/grpc_asyncio.py
24595
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
apache-2.0
sgeb/go-tuikit
tuikit/progress_spinner.go
476
package tuikit import "time" type ProgressSpinner struct { *TextView spinRunes []rune current int } func NewProgressSpinner() *ProgressSpinner { ps := &ProgressSpinner{ TextView: NewTextView(), spinRunes: []rune{'|', '/', '—', '\\', '|', '/', '—', '\\'}, } go func() { l := len(ps.spinRunes) for _ ...
apache-2.0
ThommyB/Idnator
AndroidID/Helpers/FileHelper.cs
3267
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Idnator.Helpers { public static class FileHelper { public const string EXTENSIONS = "*.axml|*.xml"; public static void BeautifyFile(string path) ...
apache-2.0
ppavlidis/Gemma
gemma-web/src/main/java/ubic/gemma/web/controller/expression/experiment/ExpressionExperimentEditValueObject.java
2082
/* * The gemma project * * Copyright (c) 2014 University of British Columbia * * 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 *...
apache-2.0
kbec/maisica-time
src/main/java/net/maisica/time/span/Span.java
947
/* * Copyright 2016 Kamil Becmer <kamil.becmer at maisica.pl>. * * 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...
apache-2.0
patrickfav/planb-android
planb-core/src/androidTest/java/at/favre/lib/planb/PlanBRecoverBehaviorFactoryTest.java
3977
package at.favre.lib.planb; import android.support.test.runner.AndroidJUnit4; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import at.favre.lib.planb.interfaces.CrashRecoverBehaviour; import at.favre.lib.planb.interfaces.RecoverBehaviorFactory; import at.favre.lib.planb.recover.De...
apache-2.0
paetti1988/qmate
MATE/org.tud.inf.st.mbt.emf.graphicaleditor/src/org/tud/inf/st/mbt/emf/graphicaleditor/basics/LabeledRoundedRectangle.java
1447
package org.tud.inf.st.mbt.emf.graphicaleditor.basics; import org.eclipse.draw2d.Graphics; import org.eclipse.draw2d.Label; import org.eclipse.draw2d.RoundedRectangle; import org.eclipse.draw2d.geometry.Point; import org.eclipse.draw2d.geometry.Rectangle; import org.eclipse.emf.ecore.EStructuralFeature; import org.ecl...
apache-2.0
anand1712/cloudpulse
cloudpulse/tests/unit/db/utils.py
1230
# Copyright 2010-2011 OpenStack Foundation # Copyright (c) 2013 Cisco 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 requir...
apache-2.0
alvarosimon/one
src/sunstone/public/app/utils/tab-datatable.js
40493
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-alexaforbusiness/src/main/java/com/amazonaws/services/alexaforbusiness/model/transform/UpdateGatewayGroupRequestMarshaller.java
2712
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
IEEERobotics/bot-control-android
src/edu/ncsu/ieee/botcontrol/ZMQClientView.java
4283
package edu.ncsu.ieee.botcontrol; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageButton; import android.widget.LinearLayout;...
apache-2.0
BriData/DBus
dbus-keeper/keeper-web/app/components/ResourceManage/DataSourceCreate/StartTopology.js
6509
import React, {PropTypes, Component} from 'react' import {Tag, Spin, Input, Form, Select, Table, Row, Col, Button, message} from 'antd' import {FormattedMessage} from 'react-intl' // 导入样式 const TextArea = Input.TextArea import styles from './res/styles/index.less' import Request from "@/app/utils/request"; import Oper...
apache-2.0
dreajay/hrms
src/main/java/com/hrms/service/impl/UserServiceImpl.java
714
package com.hrms.service.impl; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.hrms.dao.IUserDao; import com.hrms.model.User; import com.hrms.service.IUserService; @Service("userService") public class UserServiceImpl extends GenericServiceImpl<User, Integer> im...
apache-2.0
googleads/googleads-mobile-unity
mediation/UnityAds/source/plugin/Assets/GoogleMobileAds/Api/Mediation/UnityAds/UnityAds.cs
1143
// Copyright 2018 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
dump247/aws-sdk-java
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/transform/ConfigRuleEvaluationStatusJsonUnmarshaller.java
6441
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights * Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
apache-2.0
googleads/google-ads-php
src/Google/Ads/GoogleAds/V8/Enums/InteractionTypeEnum_InteractionType.php
684
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v8/enums/interaction_type.proto namespace Google\Ads\GoogleAds\V8\Enums; if (false) { /** * This class is deprecated. Use Google\Ads\GoogleAds\V8\Enums\InteractionTypeEnum\InteractionType instead. * @deprecat...
apache-2.0
krzysztof-magosa/saffron-php
example/src/routes.php
2084
<?php /** * Copyright 2014 Krzysztof Magosa * * 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...
apache-2.0
drakelord/wire
wire-runtime/src/main/java/com/squareup/wire/AndroidMessage.java
2076
/* * Copyright 2016 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 in w...
apache-2.0
zdila/gpx-animator
src/main/java/app/gpx_animator/ui/swing/DurationSpinnerModel.java
2861
/* * Copyright Contributors to the GPX Animator 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
apache-2.0
guoyang2011/myfinagle
ThriftDemo/src/main/scala/cn/changhong/thrift/ThriftServer.scala
3799
package cn.changhong.thrift import java.net.InetSocketAddress import java.util.concurrent.atomic.AtomicInteger import cn.changhong.core.{NewsModel, IndexNewsOperatorServices} import com.twitter.finagle.Service import com.twitter.finagle.builder.{ClientBuilder, ServerBuilder} import com.twitter.finagle.http.{Response,...
apache-2.0
google-code-export/google-api-dfp-java
examples/v201306/contentservice/GetAllContentExample.java
2593
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
apache-2.0
xxMUROxx/Mairegger.Printing
src/Mairegger.Printing/Content/IPageBreakAware.cs
1308
// Copyright 2016 Michael Mairegger // // 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...
apache-2.0
datumbox/datumbox-framework
datumbox-framework-core/src/main/java/com/datumbox/framework/core/common/utilities/SelectKth.java
4881
/** * Copyright (C) 2013-2020 Vasilis Vryniotis <bbriniotis@datumbox.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 * * Unles...
apache-2.0
OpenTOSCA/container
org.opentosca.planbuilder/org.opentosca.planbuilder.model/src/main/resources/generated/org/apache/ode/schemas/dd/_2007/_03/TSchedule.java
2744
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013....
apache-2.0
pmk2429/investickation
app/src/main/java/com/sfsu/network/error/ApiError.java
593
package com.sfsu.network.error; /** * Wrapper for the Error status and message sent from the server * Created by Pavitra on 12/27/2015. */ public class ApiError { private int statusCode; private String message; public ApiError() { } public int getStatusCode() { return sta...
apache-2.0
sizhaoliu/MemoryManagementBenchmark
org.talend.dataprofiler.benchmark.MapDB/src/main/java/org/talend/dataprofiler/benchmark/MapDB/test/MapDBTestForMixModeNewTest.java
10211
package org.talend.dataprofiler.benchmark.MapDB.test; import java.io.UnsupportedEncodingException; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Random; import java.util.concurrent.ConcurrentNavigableMap; impo...
apache-2.0
Dev-Cloud-Platform/Dev-Cloud
dev_cloud/cc1/src/wi/urls/user/network.py
3124
# -*- coding: utf-8 -*- # @COPYRIGHT_begin # # Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland # # 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.apac...
apache-2.0
zhangyuchen0411/goutil
slice/shift.go
735
package slice func ShiftLeftInt(slice []int, n int) { ReverseInt(slice[:n]) ReverseInt(slice[n:]) ReverseInt(slice) } func ShiftLeftString(slice []string, n int) { ReverseString(slice[:n]) ReverseString(slice[n:]) ReverseString(slice) } func ShiftLeftFloat64(slice []float64, n int) { ReverseFloat64(slice[:n])...
apache-2.0
amartinss/prointer
class/src/vo/ClienteVO.class.php
1891
<?php class ClienteVO { private $cod_cliente; private $cod_valor; private $nome; private $tipo_pessoa; private $tipo; private $dt_vencimento; private $cod_usuario_cad; private $dt_cadastro; private $cod_usuario_modifica; private $dt_modificacao; public function setCodCliente( $cod_cliente ) { $this->cod_c...
apache-2.0
lkastler/Analysis-DbpediaLogs
DatasetAnalyzer/src/Config.py
715
superdir = ".." global inputfolder inputfolder = superdir +'/data' global sparqloutput sparqloutput = superdir +'/output/sparqls.txt' global malformedsparql malformedsparql = superdir +'/output/malformed-sparql.txt' global extractionLog extractionLog = superdir +'/output/extraction.log' global analysisLog analysi...
apache-2.0
rhiot/amqp-kafka-bridge
src/test/java/io/strimzi/kafka/bridge/tracker/OffsetTrackerTest.java
10108
/* * Copyright 2016, Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.kafka.bridge.tracker; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.clients.consumer.OffsetAndMetadata; import org.apac...
apache-2.0