code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/* * (C) Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 b...
HewlettPackard/oneview-sdk-java
oneview-sdk-java-lib/src/main/java/com/hp/ov/sdk/dto/networking/LagState.java
Java
apache-2.0
839
package com.jsh.erp.service.materialCategory; import com.alibaba.fastjson.JSONObject; import com.jsh.erp.service.ICommonQuery; import com.jsh.erp.service.materialProperty.MaterialPropertyResource; import com.jsh.erp.service.materialProperty.MaterialPropertyService; import com.jsh.erp.utils.Constants; import com.jsh.er...
jishenghua/JSH_ERP
jshERP-boot/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryComponent.java
Java
apache-2.0
2,746
#if 0 // A cute trick to making this .cc self-building from shell. g++ $0 -O2 -Wall -Werror -o `basename $0 .cc`; exit; #endif // 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...
andrew-aladev/webgl-loader
src/testing/json_test.cc
C++
apache-2.0
3,509
<?php include 'app.php'; // render template echo $twig->render('contact.twig', array());
FSE301-Photerra/photerras
contact.php
PHP
apache-2.0
90
// Copyright 2021 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 writi...
googleads/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202111/SlateAction.java
Java
apache-2.0
1,537
package br.pucminas.icei.audition.repository; /** * @author Claudinei Gomes Mendes */ import br.pucminas.icei.audition.dto.SearchResponse; import info.atende.audition.model.AuditEvent; import info.atende.audition.model.SecurityLevel; import org.springframework.stereotype.Component; import org.springframework.stereo...
atende/audit-view
src/main/java/br/pucminas/icei/audition/repository/AuditEventRepository.java
Java
apache-2.0
3,874
package resa.metrics; import backtype.storm.metric.api.IMetric; import java.util.Arrays; import java.util.HashMap; import java.util.Map; /** * Created by ding on 14-8-12. */ public class StatMetric implements IMetric { private double[] xAxis; private Map<String, long[]> data; public StatMetric(double...
ADSC-Cloud/resa
resa-core/src/main/java/resa/metrics/StatMetric.java
Java
apache-2.0
1,913
// Copyright 2000-2019 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.internal.statistic.eventLog.validator.persistence; import com.intellij.openapi.components.*; import com.intellij.openapi.util.text.StringUtil; import org.jdo...
leafclick/intellij-community
platform/statistics/src/com/intellij/internal/statistic/eventLog/validator/persistence/EventLogWhitelistSettingsPersistence.java
Java
apache-2.0
4,390
/** * 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...
szegedim/hadoop
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java
Java
apache-2.0
92,997
// Copyright 2017 Twitter. 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 ...
lucperkins/heron
heron/downloaders/src/java/com/twitter/heron/downloader/Downloader.java
Java
apache-2.0
793
package org.strategoxt.lang.gradual; import java.io.Serializable; public interface Type extends Serializable { boolean equals(Object o); int hashCode(); public String toString(); }
metaborg/strategoxt
strategoxt/stratego-libraries/java-backend/java/runtime/org/strategoxt/lang/gradual/Type.java
Java
apache-2.0
195
/* * Copyright 2015 Marek Kaput * * 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...
jajakobyly/rustidea
src/org/rustidea/psi/impl/RsStructImpl.java
Java
apache-2.0
1,812
/*- * Copyright 2012 Benedikt Meurer * * 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...
bmeurer/eui4j
src/test/java/de/benediktmeurer/eui4j/EUI48XmlAdapterTest.java
Java
apache-2.0
1,651
Ext.define('MCLM.view.cenarios.GerenciarGruposCenarioWindow', { requires: [ 'MCLM.store.Grupo', 'Ext.grid.plugin.DragDrop', 'MCLM.view.cenarios.GerenciarGruposCenarioController' ], extend: 'Ext.window.Window', id: 'gerenciarGruposCenarioWindow', itemId: 'gerenciarGruposCenari...
icemagno/mclm
src/main/webapp/app/view/cenarios/GerenciarGruposCenarioWindow.js
JavaScript
apache-2.0
10,122
package org.agilewiki.jactor2.core.impl; import java.util.Timer; import java.util.concurrent.ExecutionException; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import com.blockwithme.util.base.SystemUtils; /** * A scheduler for Plant,...
skunkiferous/Util
jactor2-coreSt/src/test/java/org/agilewiki/jactor2/core/impl/JActorStTestPlantScheduler.java
Java
apache-2.0
5,403
package licenseutils import ( "context" "github.com/docker/licensing" "github.com/docker/licensing/model" ) type ( fakeLicensingClient struct { loginViaAuthFunc func(ctx context.Context, username, password string) (authToken string, err error) getHubUserOrgsFunc func(ctx context...
cpuguy83/cli
internal/licenseutils/client_test.go
GO
apache-2.0
4,580
/* global QUnit */ sap.ui.define([ "sap/ui/core/Control", "sap/ui/fl/write/api/SmartVariantManagementWriteAPI", "sap/ui/fl/Layer", "sap/ui/rta/command/CommandFactory", "sap/ui/thirdparty/sinon-4" ], function( Control, SmartVariantManagementWriteAPI, Layer, CommandFactory, sinon ) { "use strict"; var sandbo...
SAP/openui5
src/sap.ui.rta/test/sap/ui/rta/qunit/command/compVariant/CompVariantUpdate.qunit.js
JavaScript
apache-2.0
8,251
#!/astro/apps/pkg/python/bin/python import pyfits import SDSSfits import numpy from tools import create_fits import os def main(OUT_DIR = "/astro/net/scratch1/vanderplas/SDSS_GAL_RESTFRAME/", DIR_ROOT = "/astro/net/scratch1/sdssspec/spectro/1d_26/*/1d", LINES_FILE = "LINES_SHORT.TXT", ...
excelly/xpy-ml
sdss/jake_lib/make_condensed_fits.py
Python
apache-2.0
4,199
# -*- coding: utf-8 -*- ''' 部分通用的数据结构 container.py : NetInterface : 描述容器的一个虚拟网卡 -name : 虚拟网卡名称 -hostVeth : 虚拟网卡对应的主机veth名称 -ip : IP地址 -mac : mac地址 -vethMac : 主机veth的mac地址 + NetInterface::create : 创建一个虚拟网卡,返回NetInterface对象 container : 目标容器 vName : 容器端peer名字 h_vName : 主机端peer的名字 Container : 描述一个...
onlysheep5200/NetnsEx
lib/__init__.py
Python
apache-2.0
2,175
package com.example.android.sunshine.app.widget; import android.annotation.TargetApi; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import andr...
chayoungrock/weather
app/src/main/java/com/example/android/sunshine/app/widget/DetailWidgetProvider.java
Java
apache-2.0
4,337
/* * 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 requi...
gravitee-io/graviteeio-access-management
gravitee-am-ui/protractor.conf.js
JavaScript
apache-2.0
1,386
package com.myweather.app.activity; import com.myweather.app.R; import android.content.Context; import android.view.LayoutInflater; import android.widget.LinearLayout; public class BottomLayout extends LinearLayout{ public BottomLayout(Context context) { super(context); LayoutInflater.from(contex...
taohaox/MyWeather
src/com/myweather/app/activity/BottomLayout.java
Java
apache-2.0
370
package org.jasig.cas.ticket.registry.support; import org.junit.Before; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.orm.jpa.Shared...
moghaddam/cas
cas-server-support-jpa-ticket-registry/src/test/java/org/jasig/cas/ticket/registry/support/JpaLockingStrategyTests.java
Java
apache-2.0
10,675
package com.planet_ink.coffee_mud.MOBS; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_...
bozimmerman/CoffeeMud
com/planet_ink/coffee_mud/MOBS/DrowElf.java
Java
apache-2.0
4,315
/** * 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...
gravitee-io/graviteeio-access-management
gravitee-am-common/src/main/java/io/gravitee/am/common/event/AlertEventKeys.java
Java
apache-2.0
1,476
window.onload = function() { var Synth = function(audiolet) { AudioletGroup.apply(this, [audiolet, 0, 1]); // Basic wave this.saw = new Saw(audiolet, 100); // Frequency LFO this.frequencyLFO = new Sine(audiolet, 2); this.frequencyMA = new MulAdd(audiolet, 10, 100); ...
accraze/Audiolet
examples/synth/js/synth.js
JavaScript
apache-2.0
2,107
package com.twu.biblioteca; import org.junit.Test; import static org.junit.Assert.*; public class MovieTest { String title = "random title"; int year = 2042; String director = "random author"; int rating = 6; Movie testMovie = new Movie(title,year,director,rating); @Test ...
Sebastian-henn/twu-biblioteca-sebastian-henn
test/com/twu/biblioteca/MovieTest.java
Java
apache-2.0
815
package com.twu.biblioteca.menus; import com.twu.biblioteca.options.*; import java.util.ArrayList; /** * Created by aloysiusang on 17/6/15. */ public class UserMainMenu extends MainMenu { public UserMainMenu() { super(new ArrayList<MainMenuOption>() {{ add(new ListBooksOption()); ...
aloysiusang/twu-biblioteca-aloysiusang
src/com/twu/biblioteca/menus/UserMainMenu.java
Java
apache-2.0
624
package com.lzh.mdzhihudaily_mvp.presenter; import android.support.annotation.NonNull; import com.lzh.mdzhihudaily_mvp.contract.ThemeDailyContract; import com.lzh.mdzhihudaily_mvp.model.DataRepository; import com.lzh.mdzhihudaily_mvp.model.Entity.ThemeNews; import rx.Subscriber; import rx.Subscription; /** * @auth...
lisuperhong/MDZhihuDaily
app/src/main/java/com/lzh/mdzhihudaily_mvp/presenter/ThemeDailyPresenter.java
Java
apache-2.0
2,219
/* * ****************************************************************************** * Copyright 2014-2016 Spectra Logic Corporation. 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 ...
rpmoore/ds3_net_sdk
Ds3/Runtime/Ds3RequestException.cs
C#
apache-2.0
1,105
# # 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 not us...
eljefe6a/incubator-beam
sdks/python/apache_beam/runners/portability/fn_api_runner_test.py
Python
apache-2.0
2,196
using JetBrains.Annotations; using JetBrains.ReSharper.Plugins.Unity.Yaml.Psi.DeferredCaches.AnimationEventsUsages; using JetBrains.ReSharper.Plugins.Unity.Yaml.Psi.DeferredCaches.AssetHierarchy.References; using JetBrains.ReSharper.Psi; namespace JetBrains.ReSharper.Plugins.Unity.Yaml.Psi.Search { public class Un...
JetBrains/resharper-unity
resharper/resharper-unity/src/Unity/Yaml/Psi/Search/UnityAnimationEventFindResults.cs
C#
apache-2.0
1,533
(function ($) { "use strict"; /*---------------------------- price-slider active ------------------------------ */ var range = $('#slider-range'); var amount = $('#amount'); range.slider({ range: true, min: 2, max: 300, values: [ 2, 300 ], slide: function( event, ui ) { amoun...
TZClub/OMIPlatform
shopping-platfrom/src/main/webapp/resources/js/main.js
JavaScript
apache-2.0
10,332
/* * Copyright (c) 2010, Christophe Souvignier. * Copyright (c) 2010, Paul Merlin. * * 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 r...
eskatos/asadmin
asadmin-maven-plugin/src/main/java/org/n0pe/mojo/asadmin/CreateJdbcConnectionPoolMojo.java
Java
apache-2.0
2,248
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/imagebuilder/model/ComponentState.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { n...
aws/aws-sdk-cpp
aws-cpp-sdk-imagebuilder/source/model/ComponentState.cpp
C++
apache-2.0
1,432
/* * Licensed to the Technische Universität Darmstadt under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The Technische Universität Darmstadt * licenses this file to you under the Apache License, Versio...
webanno/webanno
webanno-api-dao/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/dao/export/exporters/GuildelinesExporter.java
Java
apache-2.0
4,420
# Copyright (c) 2016. Mount Sinai School of Medicine # # 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 o...
hammerlab/varcode
varcode/effects/__init__.py
Python
apache-2.0
2,401
using System.Data.Common; using System.Data.Entity.Infrastructure.Interception; namespace Advertise.Utility.Persians { /// <summary> /// </summary> public class PersianYeKeInterceptor : IDbCommandInterceptor { /// <summary> /// </summary> /// <param name="command"></param> ...
imangit/Advertise
Advertise/Advertise.Utility/Persians/PersianYeKeInterceptor.cs
C#
apache-2.0
2,025
package org.wikipedia.edit; import android.support.annotation.Nullable; import org.wikipedia.dataclient.mwapi.MwPostResponse; class Edit extends MwPostResponse { @SuppressWarnings("unused,") @Nullable private Result edit; @Nullable Result edit() { return edit; } boolean hasEditResult() { ...
anirudh24seven/apps-android-wikipedia
app/src/main/java/org/wikipedia/edit/Edit.java
Java
apache-2.0
1,491
require('./second.js'); var i = 0; console.log('Hello Webpack!'); console.log('Webpack is cool.');
jitendraag/webpack-2-examples
example2/input.js
JavaScript
apache-2.0
99
CONTACT_HANDLE = 'contact' NEW_CONTACT_HANDLE = 'new_contact' OTHER_CONTACT_HANDLE = 'other_contact' BLANK_CONTACT_HANDLE = '' NON_EXISTING_CONTACT_HANDLE = 'non_existing' def contact_does_not_exist handle = CONTACT_HANDLE contact = Contact.find_by(handle: handle) contact.delete if contact end def contact_exists ...
dotph/registry
features/services/contact_service.rb
Ruby
apache-2.0
6,724
/* * Copyright 2014-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
dbflute-test/dbflute-test-active-dockside
src/main/java/org/docksidestage/dockside/dbflute/bsbhv/pmbean/BsPurchaseMaxPriceMemberPmb.java
Java
apache-2.0
9,658
package com.annimon.stream.longstreamtests; import com.annimon.stream.LongStream; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; public final class SumTest { @Test public void testSum() { assertThat(LongStream.of(100, 20, 3).sum(), ...
aNNiMON/Lightweight-Stream-API
stream/src/test/java/com/annimon/stream/longstreamtests/SumTest.java
Java
apache-2.0
393
package de.fhg.iais.cortex.services.institution; import java.util.LinkedList; import java.util.List; import org.codehaus.jackson.annotate.JsonProperty; import org.codehaus.jackson.annotate.JsonPropertyOrder; import org.codehaus.jackson.map.annotate.JsonSerialize; @JsonPropertyOrder({ "id", "name", "sector", "lat...
Deutsche-Digitale-Bibliothek/ddb-backend
CoreServices/src/main/java/de/fhg/iais/cortex/services/institution/Institution.java
Java
apache-2.0
7,623
# -*- coding: utf-8 -*- from __future__ import absolute_import from ... import * from talon.signature.learning import featurespace as fs def test_apply_features(): s = '''This is John Doe Tuesday @3pm suits. I'll chat to you then. VP Research and Development, Xxxx Xxxx Xxxxx 555-226-2345 john@example.com'''...
mailgun/talon
tests/signature/learning/featurespace_test.py
Python
apache-2.0
1,402
#!/usr/bin/env python3 """Generate an updated requirements_all.txt.""" import importlib import os import pathlib import pkgutil import re import sys from script.hassfest.model import Integration COMMENT_REQUIREMENTS = ( "Adafruit-DHT", "Adafruit_BBIO", "avion", "beacontools", "blinkt", "bluepy...
fbradyirl/home-assistant
script/gen_requirements_all.py
Python
apache-2.0
11,383
/** * */ package me.learn.personal.month2; /** * Title 1252 : * * Given n and m which are the dimensions of a matrix initialized by zeros and * given an array indices where indices[i] = [ri, ci]. For each pair of [ri, ci] * you have to increment all cells in row ri and column ci by 1. * * Return the number...
balajiboggaram/algorithms
src/me/learn/personal/month2/CellsWithOddValuesInMatrix.java
Java
apache-2.0
1,601
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // 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.11.29 at 12:35...
ryandcarter/hybris-connector
src/main/java/org/mule/modules/hybris/model/VariantTypeDTO.java
Java
apache-2.0
1,073
/** * @license Copyright 2020 The Lighthouse 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 applica...
ev1stensberg/lighthouse
lighthouse-core/audits/third-party-facades.js
JavaScript
apache-2.0
11,065
/* * Copyright 2012 LBi Netherlands B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
LBiNetherlands/LBi.Cli.Arguments
LBi.Cli.Arguments/Parsing/Ast/LiteralValueType.cs
C#
apache-2.0
759
/** * Copyright 2015 Groupon.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
groupon/promise
src/main/java/com/groupon/promise/function/PromiseFunctionResult.java
Java
apache-2.0
1,887
package com.neilren.neilren4j.dao; import com.neilren.neilren4j.dbentity.TLogSendEmail; import java.util.List; public interface TLogSendEmailMapper { int deleteByPrimaryKey(Long id); int insert(TLogSendEmail record); TLogSendEmail selectByPrimaryKey(Long id); List<TLogSendEmail> selectAll(); i...
NeilRen/NEILREN4J
src/main/java/com/neilren/neilren4j/dao/TLogSendEmailMapper.java
Java
apache-2.0
366
package com.myapp.demo.spring.proxy; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; /** * Created by Zhourl on 2017/8/11. */ public class PerformanceHandler implements InvocationHandler {//①实现InvocationHandler private Object target; public PerformanceHandler(Object target) {//...
zhouronglv/myapp
myapp-demo/src/main/java/com/myapp/demo/spring/proxy/PerformanceHandler.java
Java
apache-2.0
696
package io.github.suxil.service; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cl...
suxi-lu/learn
learn-service/src/main/java/io/github/suxil/service/LearnServiceApplication.java
Java
apache-2.0
1,309
package b2 import ( "math/rand" "os" "strings" "testing" "time" isi "github.com/cheekybits/is" "github.com/graymeta/stow" "github.com/graymeta/stow/test" ) func TestStow(t *testing.T) { is := isi.New(t) accountID := os.Getenv("B2_ACCOUNT_ID") applicationKey := os.Getenv("B2_APPLICATION_KEY") if accountI...
graymeta/stow
b2/stow_test.go
GO
apache-2.0
3,088
package marki.at.Client.events; import marki.at.Client.utils.Message; /** * Created by marki on 29.10.13. */ public class newMessageEvent { public final Message message; public newMessageEvent(Message message) { this.message = message; } }
markini/ServiceMonitoringTestSystem
Client/src/main/java/marki/at/Client/events/newMessageEvent.java
Java
apache-2.0
266
using System; using System.Collections.Generic; using System.Text; using WikiClientLibrary.Client; namespace WikiClientLibrary.Sites { /// <summary> /// Represents a token placeholder in the <see cref="MediaWikiFormRequestMessage"/>. /// This enables <see cref="WikiSite"/> to detect bad tokens. /// </...
CXuesong/WikiClientLibrary
WikiClientLibrary/Sites/WikiSiteToken.cs
C#
apache-2.0
850
/** * Code contributed to the Learning Layers project * http://www.learning-layers.eu * Development is partly funded by the FP7 Programme of the European Commission under * Grant Agreement FP7-ICT-318209. * Copyright (c) 2016, Graz University of Technology - KTI (Knowledge Technologies Institute). * For a list of...
learning-layers/SocialSemanticServer
servs/livingdocument/livingdocument.datatype/src/main/java/at/tugraz/sss/servs/livingdocument/datatype/SSLivingDocSQLTableE.java
Java
apache-2.0
1,146
/* @flow */ import Crypto from '../components/cryptography'; import Config from '../components/config'; import ListenerManager from '../components/listener_manager'; import ReconnectionManager from '../components/reconnection_manager'; import utils from '../utils'; import { MessageAnnouncement, SubscribeEnvelope, Statu...
amriteshkumar1/sales-service
node_modules/pubnub/src/core/components/subscription_manager.js
JavaScript
apache-2.0
10,768
package com.antarescraft.kloudy.slots.events; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.antarescraft.kloudy.hologuiapi.plugincore.command.CommandHandler; import com.antarescraft.kloudy.hologuiapi.p...
Kloudy/Slots
src/com/antarescraft/kloudy/slots/events/CommandEvent.java
Java
apache-2.0
1,946
package com.vmware.vim25; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AnswerFileSerializedCreateSpec complex type. * * <p>The following...
jdgwartney/vsphere-ws
java/JAXWS/samples/com/vmware/vim25/AnswerFileSerializedCreateSpec.java
Java
apache-2.0
1,691
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
deeplearning4j/deeplearning4j
deeplearning4j/deeplearning4j-core/src/main/java/org/deeplearning4j/core/loader/impl/SerializedDataSetLoader.java
Java
apache-2.0
1,380
/* * $Id$ * * SARL is an general-purpose agent programming language. * More details on http://www.sarl.io * * Copyright (C) 2014-2021 the original authors 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 ma...
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/sarl/actionprototype/FormalParameterProvider.java
Java
apache-2.0
3,887
/* * Copyright 2016 Open Networking Laboratory * * 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 la...
sonu283304/onos
drivers/lumentum/src/main/java/org/onosproject/drivers/lumentum/LumentumFlowRuleDriver.java
Java
apache-2.0
16,751
/* * Copyright (C) 2017 Circulo Odontologico del Chaco * * 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 a...
jorgevillaverde/co
src/main/java/ar/com/circuloodontochaco/co/model/contraints/RemesaValidator.java
Java
apache-2.0
2,000
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized re...
sugarcrmlabs/AdminSudo
SudoAudit2016_11_08_114528/SugarModules/modules/sa_SudoAudit/clients/base/views/search-list/search-list.php
PHP
apache-2.0
1,127
package com.wonders.alpha.bo; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="alpha") public class Alpha implements Serializable{ private String id; @Id @Column(name="ID") public S...
LotteryOne/tools
src/com/wonders/alpha/bo/Alpha.java
Java
apache-2.0
409
package de.undercouch.citeproc; import de.undercouch.citeproc.helper.CSLUtils; import java.io.IOException; import java.net.URL; import java.util.HashMap; import java.util.Map; /** * Default implementation of {@link LocaleProvider}. Loads locales from * the classpath. * @author Michel Kraemer */ public class Defa...
michel-kraemer/citeproc-java
citeproc-java/src/main/java/de/undercouch/citeproc/DefaultLocaleProvider.java
Java
apache-2.0
1,590
'use strict'; /** * Requirements * @ignore */ const BaseValueObject = require('../BaseValueObject.js').BaseValueObject; const Entity = require('./Entity.js').Entity; const Site = require('../site/Site.js').Site; const ContentKind = require('../ContentKind.js'); const BaseMap = require('../../base/BaseMap.js').BaseM...
entoj/entoj-core
source/model/entity/EntityAspect.js
JavaScript
apache-2.0
4,718
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
rafati/unitime
JavaSource/org/unitime/timetable/onlinesectioning/custom/purdue/XEInterface.java
Java
apache-2.0
8,329
/* * Copyright 2017 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...
blox/blox
end-to-end-tests/src/main/java/com/amazonaws/blox/integ/ECSClusterWrapper.java
Java
apache-2.0
2,607
function swl_scrollStopExtend() { var a = SWL.$.event.special, b = "D" + +new Date, c = "D" + (+new Date + 1); a.scrollstart = { setup : function() { var c, d = function(b) { var d = this, e = arguments; c ? clearTimeout(c) : (b.type = "scrollstart", SWL.$.event.handle.apply(d, e)), c = setTimeout(functi...
EZWebvietnam/vieclam24h
template/home/js/jquery.scrollstore.js
JavaScript
apache-2.0
1,126
/** * (C) Copyright 2016-2019 teecube * (https://teecu.be) 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 ...
teecube/t3
t3-site-enhancer/src/main/java/t3/site/gitlab/tags/Release.java
Java
apache-2.0
2,129
package com.example.android.sunshine.app.sync; import android.accounts.Account; import android.accounts.AccountManager; import android.annotation.SuppressLint; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.AbstractThreadedSyncAdapter; import android.content.ContentPro...
dconz13/MySunshine-Watch-Face
app/src/main/java/com/example/android/sunshine/app/sync/SunshineSyncAdapter.java
Java
apache-2.0
29,790
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Versionr.Objects { [ProtoBuf.ProtoContract] public class VaultLock { [ProtoBuf.ProtoMember(1)] [SQLite.PrimaryKey] public Guid ID { get; set; }...
eatplayhate/versionr
VersionrCore/Objects/VaultLock.cs
C#
apache-2.0
566
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateInstanceIdTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('instance_id...
dreamfactorysoftware/df-core
database/migrations/2020_03_02_121555_create_instance_id_table.php
PHP
apache-2.0
719
// // // Copyright 2017 Mirko Raner // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
raner/top.java.matrix
src/main/java/top/java/matrix/MatrixFactory.java
Java
apache-2.0
1,406
//===--- LetPropertiesOpts.cpp - Optimize let properties ------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
practicalswift/swift
lib/SILOptimizer/IPO/LetPropertiesOpts.cpp
C++
apache-2.0
22,467
//===- InstCombineVectorOps.cpp -------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
slightperturbation/Cobalt
ext/emsdk_portable/clang/tag-e1.34.1/src/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
C++
apache-2.0
49,354
package jpaint.model.bean; import java.awt.Color; import java.awt.Graphics; import java.util.Date; public abstract class Figura { private int pkfigura = -1; private int x; private int y; private int largura; private int altura; private int tipo; private Color colorBorda; ...
Pompeu/Jpaint
src/jpaint/model/bean/Figura.java
Java
apache-2.0
4,031
package com.ax.demo.entity; import javax.validation.constraints.Min; /** * A Hipster. Used as entity in this demo application. */ public class Hipster { public enum JeansType { SKINNY, SUPERSKINNY; } @Min(value = 0, message = "Id must be positive") private int id; private String name; private JeansType j...
fexbraun/hipster-o-mat
src/main/java/com/ax/demo/entity/Hipster.java
Java
apache-2.0
2,283
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
robinverduijn/gradle
subprojects/build-init/src/main/java/org/gradle/buildinit/plugins/internal/ModuleNameBuilder.java
Java
apache-2.0
830
/** * 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...
Microsoft-CISL/hadoop-prototype
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java
Java
apache-2.0
61,467
/** * Copyright (C) 2011 rwitzel75@googlemail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
rwitzel/streamflyer
streamflyer-core/src/main/java/com/github/rwitzel/streamflyer/regex/addons/util/EmbeddedFlagUtil.java
Java
apache-2.0
2,915
/* Copyright 2015 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, ...
kubernetes/gengo
namer/namer_test.go
GO
apache-2.0
2,994
package controllers import ( . "appinhouse/server/constants" "appinhouse/server/models" "github.com/astaxie/beego" ) type CreateAppController struct { BaseController } func (c *CreateAppController) CreateApp() { dto := NewSuccessResponseDto() app := c.Ctx.Input.Param(":app") desc := c.GetString("description"...
rog2/appinhouse
server/controllers/createapp.go
GO
apache-2.0
1,269
package me.pjq.pushup.utils; /** * Created by pjq on 11/9/13. */ import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Rect; import android.view.View; import me.pjq...
pjq/pushup
PushUp/src/main/java/me/pjq/pushup/utils/ScreenshotUtils.java
Java
apache-2.0
2,814
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Gemstone; import java.io.File; import java.util.ArrayList; /** * * @author SBANTA * - 04/04/2012 - updated for Gemstone */ public class CachingUserRecord { private static String SName = sagex.api.Globa...
jusjoken/gemstone2
src/main/java/Gemstone/CachingUserRecord.java
Java
apache-2.0
3,416
/* * * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
yelhouti/springfox
springfox-spring-web/src/main/java/springfox/documentation/spring/web/readers/parameter/ParameterRequiredReader.java
Java
apache-2.0
4,326
package gex.newsml.nitf; import lombok.ToString; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyAttribute; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.ann...
gextech/iptc-newsml
src/main/java/gex/newsml/nitf/DuKey.java
Java
apache-2.0
4,635
// Copyright 2015 go-swagger maintainers // // 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...
go-swagger/go-swagger
generator/typeresolver_test.go
GO
apache-2.0
20,309
package router import ( "fmt" "io" "io/ioutil" "math/rand" "os" "strconv" "strings" "github.com/golang/glog" "github.com/spf13/cobra" kapi "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" kclient "k8s.io/kubernetes/pkg/client/unversioned" kclientcmd "k8s.io/kubernetes/pkg/client/unversione...
burmanm/origin
pkg/cmd/admin/router/router.go
GO
apache-2.0
23,695
using Autofac; using DFWin.Core; namespace DFWin { public static class Setup { public static IContainer CreateIoC() { var containerBuilder = new ContainerBuilder(); containerBuilder.RegisterModule<GameModule>(); containerBuilder.RegisterModule<C...
michaelbradley91/DFWin
DFWin/DFWin/Setup.cs
C#
apache-2.0
406
import { resolve, join } from 'path' import merge from 'webpack-merge' import parts from './webpack/parts' if (process.env.WDS_HOST === undefined) process.env.WDS_HOST = 'localhost' if (process.env.WDS_PORT === undefined) process.env.WDS_PORT = 3001 const isVendor = ({ resource }) => resource && resource.indexOf('n...
buildit/bookit-web
webpack.config.babel.js
JavaScript
apache-2.0
2,535
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
zkidkid/elasticsearch
core/src/main/java/org/elasticsearch/index/analysis/AnalysisService.java
Java
apache-2.0
9,751
package nricheton.utils.io; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; /** * This input streams removes invalid XML Characters from the stream. As a * result you should be able to read invalid ...
nricheton/java-utils
XmlCleanupInputStream.java
Java
apache-2.0
1,495
"use strict"; jest.autoMockOff(); const MockDate = require("mockdate"); const DataStore = require("../../src/resources/DataStore"); const FIELDS = ["foo", "bar", "baz"]; describe("DataStore construction", () => { it("tests constructor fails", () => { const check = (fields) => { try { ...
iobeam/iobeam-client-node
tests/resources/test_DataStore.js
JavaScript
apache-2.0
6,869
/** * Copyright (c) 2014 SQUARESPACE, 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 agr...
phensley/less-compiler
less-core/src/main/java/com/squarespace/less/model/UnicodeRange.java
Java
apache-2.0
1,955
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Source file annotation for coverage.py.""" import os import re from coverage.files import flat_rootname from coverage.misc import ensure_dir, isolate_module fr...
sonntagsgesicht/regtest
.aux/venv/lib/python3.9/site-packages/coverage/annotate.py
Python
apache-2.0
3,528
/* * 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...
aws/aws-sdk-java
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/ListSuppressedDestinationsResult.java
Java
apache-2.0
9,507