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
package org.jboss.resteasy.reactive.server.core.request; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Locale; import java.util.Map; import java.util.Map.Entry; import javax.ws.rs.BadRequestException; import javax.ws.rs.core.MediaType; /** * @author Pascal S. de Kloe */ public class Ac...
quarkusio/quarkus
independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/AcceptHeaders.java
Java
apache-2.0
10,428
/* * * 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"); y...
akalankapagoda/andes
modules/andes-core/broker/src/main/java/org/wso2/andes/server/exchange/AbstractExchange.java
Java
apache-2.0
10,726
/** * Copyright (c) 2010 Abbcc Corp. * No 225,Wen Yi RD, Hang Zhou, Zhe Jiang, China. * All rights reserved. * * "AttachAction.java is the copyrighted, * proprietary property of Abbcc Company and its * subsidiaries and affiliates which retain all right, title and interest * therein." * * Revision History * ...
baowp/platform
biz/src/main/java/com/abbcc/module/usersite/AttachAction.java
Java
apache-2.0
1,740
package org.jboss.resteasy.reactive.server.providers.serialisers.jsonp; import java.io.ByteArrayOutputStream; import java.lang.reflect.Type; import javax.json.JsonObject; import javax.json.JsonStructure; import javax.json.JsonWriter; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.MediaType; import...
quarkusio/quarkus
independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonStructureHandler.java
Java
apache-2.0
1,483
/*jshint browser: true */ /*jshint unused: false */ /*global arangoHelper, _, $, window, arangoHelper, templateEngine, Joi, btoa */ (function() { "use strict"; window.DocumentsView = window.PaginationView.extend({ filters : { "0" : true }, filterId : 0, paginationDiv : "#documentsToolbarF", idPrefi...
abaditsegay/arangodb
js/apps/system/_admin/aardvark/APP/frontend/js/views/documentsView.js
JavaScript
apache-2.0
35,454
/* * Copyright 2010-2013 Ning, Inc. * Copyright 2014-2015 Groupon, Inc * Copyright 2014-2015 The Billing Project, LLC * * The Billing 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 cop...
maguero/killbill
subscription/src/test/java/org/killbill/billing/subscription/engine/dao/MockSubscriptionDaoMemory.java
Java
apache-2.0
23,275
package org.anderes.edu.gui.pm.gui; import java.awt.Color; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JText...
rene-anderes/edu
oo.basics/src/main/java/org/anderes/edu/gui/pm/gui/View.java
Java
apache-2.0
2,276
package com.epam.rft.atsy.web.configuration; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; public class WebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getServletConfigClasses() { return new ...
epam-debrecen-rft-2015/atsy
web/src/main/java/com/epam/rft/atsy/web/configuration/WebAppInitializer.java
Java
apache-2.0
532
/* Copyright 2014 The Kubernetes 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 ag...
XiaoningDing/UbernetesPOC
pkg/serviceaccount/jwt_test.go
GO
apache-2.0
9,089
/* * Minio Client (C) 2015 Minio, 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...
winchram/mc
ls.go
GO
apache-2.0
5,848
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import uiModal from 'angular-ui-bootstrap/src/modal'; import forcegraphComponent from './forcegraph.component'; let forcegraphModule = angular.module('forcegraph', [ uiRouter, uiModal ]) .config(($stateProvider) => { "ngInject"; $statePr...
garrettwong/GDashboard
client/app/components/d3visualizations/forcegraph/forcegraph.js
JavaScript
apache-2.0
510
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
googleapis/google-cloud-cpp
google/cloud/iap/identity_aware_proxy_o_auth_connection_idempotency_policy.cc
C++
apache-2.0
3,353
/* * 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 ...
desruisseaux/sis
core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultConcatenatedOperationTest.java
Java
apache-2.0
8,998
/* * * Copyright 2013 OpenStack 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 applicable law o...
hudson3-plugins/gearman-plugin
src/main/java/hudson/plugins/gearman/NodeAvailabilityMonitor.java
Java
apache-2.0
5,039
import java.io.File; import java.io.IOException; import java.security.NoSuchAlgorithmException; import org.apache.log4j.Logger; import org.yeastrc.ms.parser.DataProviderException; import org.yeastrc.ms.parser.ms2File.Ms2FileReader; import org.yeastrc.ms.util.Sha1SumCalculator; /** * */ public class MS2FileValida...
yeastrc/msdapl
MS_LIBRARY/src/MS2FileValidator.java
Java
apache-2.0
2,486
/* * 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...
bennetelli/activemq-artemis
artemis-server/src/main/java/org/apache/activemq/artemis/core/config/Configuration.java
Java
apache-2.0
37,644
package loadBalance; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CopyOnWriteArrayList; import java.util.zip.Inflater; /** * Created by Administrator on 2017/1/17. */ public class IpMap { public static Map<String, Integer> serverMap = new HashMap<String, Integer>(); static {...
yekevin/JavaPractise
src/loadBalance/IpMap.java
Java
apache-2.0
563
<?php // Contact $to = 'jasonekstromdev@gmail.com'; $subject = 'Job Opportunity'; if(isset($_POST['c_name']) && isset($_POST['c_email']) && isset($_POST['c_message'])){ $name = $_POST['c_name']; $from = $_POST['c_email']; $message = $_POST['c_message']; if (mail($to, $subject...
jmekstrom/Portfolio
assets/php/contactForm.php
PHP
apache-2.0
628
# # Author:: Shawn Neal <sneal@daptiv.com> # Cookbook Name:: visualstudio # Recipe:: install # # Copyright 2013, Daptiv Solutions, 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 # # ...
dthagard/opschef-cookbook-visualstudio
recipes/install.rb
Ruby
apache-2.0
2,479
/** * class for student */ 'use strict' const util = require('util') const Person = require('./person'); function Student() { Person.call(this); } // student继承自person util.inherits(Student, Person); Student.prototype.study = function() { console.log('i am learning...'); }; module.exports = Student;
EvanDylan/node
base/mods/inhertis/student.js
JavaScript
apache-2.0
318
package module import ( "net" "sync" ) type TCP_server struct { Port uint16 NewAgent func(*TCPConn) Agent ln net.Listener mutexConns sync.Mutex } func (server *TCP_server) Start() { }
swordhell/go_server
src/td.com/module/module.go
GO
apache-2.0
210
import * as Preact from '#preact'; import {boolean, number, select, withKnobs} from '@storybook/addon-knobs'; import {withAmp} from '@ampproject/storybook-addon'; export default { title: 'amp-twitter-1_0', decorators: [withKnobs, withAmp], parameters: { extensions: [ { name: 'amp-twitter', ...
jpettitt/amphtml
extensions/amp-twitter/1.0/storybook/Basic.amp.js
JavaScript
apache-2.0
3,469
// This is a generated file. Not intended for manual editing. package com.github.joshholl.intellij.csharp.lang.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.ut...
joshholl/intellij-csharp
gen/com/github/joshholl/intellij/csharp/lang/psi/impl/CSharpImplicitAnonymousFunctionParameterListImpl.java
Java
apache-2.0
1,220
using System; using ruibarbo.core.Search; using ruibarbo.core.Wpf.Base; namespace ruibarbo.core.Wpf.Helpers { public static class ComboBoxExtensions { public static void OpenAndClickFirst<TItem>(this IComboBox me) where TItem : class, IComboBoxItem { OpenAndC...
toroso/ruibarbo
ruibarbo.core/Wpf/Helpers/ComboBoxExtensions.cs
C#
apache-2.0
879
/* * Copyright (c) 2018, 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.org/li...
jaadds/product-apim
modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APISecurityTestCase.java
Java
apache-2.0
14,024
using System; using System.Net; namespace Exceptionless.Api.Controllers { public class PermissionResult { public bool Allowed { get; set; } public string Id { get; set; } public string Message { get; set; } public HttpStatusCode StatusCode { get; set; } public static Pe...
adamzolotarev/Exceptionless
Source/Api/Controllers/Base/PermissionResult.cs
C#
apache-2.0
1,762
package org.apache.luke.client; /** * 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...
DmitryKey/luke-gwt
src/main/java/org/apache/luke/client/LukeInspector.java
Java
apache-2.0
17,271
/* * 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...
JoelMarcey/buck
test/com/facebook/buck/util/network/AbstractBatchingLoggerTest.java
Java
apache-2.0
2,949
angular.module('app').factory('Entity', function ($resource) { var __apiBase__ = 'http://localhost:8080/GenericBackend/'; return { Model : $resource(__apiBase__ + 'api/models/fqns'), User : $resource(__apiBase__ + 'api/users/:id', {id: '@id', profileId :'@profileId'},{ ...
kodero/generic-angular-frontend
app/common/services/EntityFactory.js
JavaScript
apache-2.0
2,708
// 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 applicable...
nornagon/ninja
src/subprocess-win32.cc
C++
apache-2.0
5,723
package org.omg.CosNaming.NamingContextPackage; /** * org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from /HUDSON3/workspace/8-2-build-linux-amd64/jdk8u121/8372/corba/src/share/classes/org/omg/CosNaming/nameservice.idl * Monday, Decembe...
wangsongpeng/jdk-src
src/main/java/org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java
Java
apache-2.0
2,045
/* * 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 ...
hongyuhong/flink
flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobClientSslTest.java
Java
apache-2.0
9,674
//------------------------------------------------------------------------------- // <copyright file="InMemoryTraceListener.cs" company="frokonet.ch"> // Copyright (C) frokonet.ch, 2014-2020 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance wi...
froko/SimpleDomain
src/SimpleDomain/Common/InMemoryTraceListener.cs
C#
apache-2.0
2,853
package com.jan.flc.firstlinecode.activity; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import...
uzmakinaruto/FirstLineCode
app/src/main/java/com/jan/flc/firstlinecode/activity/UIActivity.java
Java
apache-2.0
2,700
package org.marketcetera.photon.quickfix; import junit.framework.TestCase; import org.marketcetera.quickfix.FIXVersion; import quickfix.ConfigError; import quickfix.DataDictionary; import quickfix.FieldNotFound; import quickfix.FieldType; import quickfix.InvalidMessage; import quickfix.Message; import qu...
nagyist/marketcetera
photon/photon/plugins/org.marketcetera.photon.testfragment/src/test/java/org/marketcetera/photon/quickfix/QuickFIXTest.java
Java
apache-2.0
2,808
#!/usr/bin/ruby # # Author:: api.sgomes@gmail.com (Sérgio Gomes) # # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. # # License:: 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 o...
sylow/google-adwords-api
examples/v201003/add_negative_campaign_criterion.rb
Ruby
apache-2.0
3,158
/* * Copyright 2019 The Closure Compiler 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...
vobruba-martin/closure-compiler
test/com/google/javascript/jscomp/RewriteNewDotTargetTest.java
Java
apache-2.0
4,093
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Xml.Serialization; using System.Configuration; using System.IO; namespace GetServiceInfo { class GetOutletServiceInfo { static void Main(string[] args) { // Your use...
Kiandr/MS
Languages/CSharp/CPCWS_DotNet_Samples/REST/serviceinfo/GetOutletServiceInfo/GetOutletServiceInfo.cs
C#
apache-2.0
4,631
/* * Copyright 2011 Google 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...
skyisle/iosched2011
android/src/com/google/android/apps/iosched/ui/BaseSinglePaneActivity.java
Java
apache-2.0
2,149
/* * Copyright 2017-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
GoogleCloudPlatform/spring-cloud-gcp
spring-cloud-gcp-data-datastore/src/main/java/com/google/cloud/spring/data/datastore/core/mapping/event/ReadEvent.java
Java
apache-2.0
1,298
import logging from types import FunctionType import ray import ray.cloudpickle as pickle from ray.experimental.internal_kv import _internal_kv_initialized, \ _internal_kv_get, _internal_kv_put from ray.tune.error import TuneError TRAINABLE_CLASS = "trainable_class" ENV_CREATOR = "env_creator" RLLIB_MODEL = "rlli...
richardliaw/ray
python/ray/tune/registry.py
Python
apache-2.0
5,525
# Copyright (c) 2018-2021 Micro Focus or one of its affiliates. # Copyright (c) 2018 Uber 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/licen...
uber/vertica-python
vertica_python/vertica/messages/frontend_messages/copy_data.py
Python
apache-2.0
2,393
package com.sdw.soft.demo.rxjava; import com.google.common.base.Joiner; import org.junit.Test; import rx.Observable; import rx.functions.Action1; import rx.functions.Func1; /** * Created by shangyd on 2017/5/13. */ public class TestRxJava { @Test public void test01() { Observable observable = Obse...
sdw2330976/SpringBC
springbootjpa/src/test/java/com/sdw/soft/demo/rxjava/TestRxJava.java
Java
apache-2.0
726
"use strict"; require('../core/setup'); var $ = require('jquery'), L = require('leaflet'), assert = require('chai').assert, sinon = require('sinon'), Marionette = require('../../shim/backbone.marionette'), App = require('../app'), models = require('./models'), utils = require('./utils'), ...
lliss/model-my-watershed
src/mmw/js/src/draw/tests.js
JavaScript
apache-2.0
7,248
/** * 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-service/src/test/java/io/gravitee/am/service/validators/PathValidatorTest.java
Java
apache-2.0
2,272
<?php /** * 支付配置 * @author hfc * @date 2015-8-31 */ namespace apps\admin\controllers; use apps\admin\models\Payment; use apps\admin\models\PaymentPlugin; use enums\SystemEnums; use Phalcon\Db\Profiler; use Phalcon\Paginator\Adapter\Model as PaginatorModel; use Phalcon\Validation; use Phalcon\Validation\Validator...
sxyunfeng/fcms
apps/admin/controllers/PayconfigController.php
PHP
apache-2.0
7,003
<?php /* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
googleads/google-ads-php
src/Google/Ads/GoogleAds/V8/Services/Gapic/AdGroupServiceGapicClient.php
PHP
apache-2.0
16,250
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.6.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
skuda/client-python
kubernetes/test/test_v1beta1_cluster_role_list.py
Python
apache-2.0
917
/* * Copyright 2014-2020 Groupon, Inc * Copyright 2020-2021 Equinix, Inc * Copyright 2014-2021 The Billing Project, LLC * * The Billing 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 c...
killbill/killbill
beatrix/src/test/java/org/killbill/billing/beatrix/integration/TestIntegrationVoidInvoice.java
Java
apache-2.0
12,168
/* * 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...
EvilMcJerkface/crate
server/src/main/java/io/crate/execution/ddl/RelationNameSwap.java
Java
apache-2.0
1,976
/** * Copyright 2022 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...
conversationai/harassment-manager
src/server/middleware/twitter.middleware.ts
TypeScript
apache-2.0
11,910
/** * 添加教师js,主要处理积点的问题。 * 分模块化 * Created by admin on 2016/9/26. */ $(function(){ //第一个问题 var work_load = $('#is_work_load').val(); $("#work_load input[type='checkbox']").live('click', function(e){ var is_work_load = $(this).val(); if($(this).is(':checked') && is_work_load == 1){ ...
lnc2014/school
template/js/add_per.js
JavaScript
apache-2.0
13,016
// Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "AlphaCompositeTileOperation.h" #include <memory> #include "../../fb/DistributedFrameBuffer.h" #include "fb/DistributedFrameBuffer_ispc.h" namespace ospray { struct BufferedTile { ospray::Tile tile; /*! determines order of ...
ospray/OSPRay
modules/mpi/ospray/render/distributed/AlphaCompositeTileOperation.cpp
C++
apache-2.0
4,549
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
pedroigor/keycloak
server-spi/src/main/java/org/keycloak/services/clientpolicy/ClientPolicyEvent.java
Java
apache-2.0
1,353
# -*- coding:utf-8 -*- from test_stub import * class HOST(MINI): def __init__(self, uri=None, initialized=False): self.host_name = None self.host_list = [] if initialized: # if initialized is True, uri should not be None self.uri = uri return su...
zstackio/zstack-woodpecker
integrationtest/vm/e2e_mini/host/host.py
Python
apache-2.0
1,882
var THREE = require('three'); var cgaprocessor = require('./cgaprocessor') // function t(sizes, size, repeat) { // console.log(sizes, size, repeat); // console.log(cgaprocessor._compute_splits( sizes, size, repeat )); // } // t([ { size: 2 } ], 4, true); // t([ { size: 2 } ], 5, true); // t([ { size: 2 }, { size:...
gromgull/cgajs
test/test_splitting.js
JavaScript
apache-2.0
1,531
require 'docker_paas/family/common' module Docker_paas; module Family class Test < Common def test_target assert_env 'TEST_TARGET', ['puppet'] end def short_tag test_target end def early_run assert_env 'DIST', ['stretch'] super + [ # octocatalog-diff is not in st...
nantesmetropole/docker-paas
lib/docker_paas/family/test.rb
Ruby
apache-2.0
880
import { Entity } from '../entity/entity'; /******************************************************************************************************************************************************************************************************* * * @data FragmentType - FragmentType inherited from Entity it is a speci...
kaular/ArchRef
ArchRefClient/ArchRefClient/src/app/shared/datamodels/types/fragmenttype.ts
TypeScript
apache-2.0
1,002
// Copyright (C) 2015 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
GerritCodeReview/gerrit
java/com/google/gerrit/server/extensions/events/ChangeRestored.java
Java
apache-2.0
3,450
package net.safedata.spring.boot.training.solace.publisher; import net.safedata.spring.boot.training.solace.channel.OutboundChannels; import net.safedata.spring.boot.training.solace.event.AddProductToOrderCommand; import net.safedata.spring.boot.training.solace.event.OrderUpdatedEvent; import net.safedata.spring.boot....
bogdansolga/spring-boot-training
d04/d04s01-async-processing/d04s01e05-async-messaging-using-solace/d04s01e05-product-publisher/src/main/java/net/safedata/spring/boot/training/solace/publisher/MessagePublisher.java
Java
apache-2.0
1,255
package cn.demoz.www.adapter; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.ListView; import java.util.List; import cn.demoz.www.holder.BaseHolder; import cn.d...
jxent/Demoz
Demoz/app/src/main/java/cn/demoz/www/adapter/DefaultAdapter.java
Java
apache-2.0
5,112
/* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
gstamac/powermock
powermock-modules/powermock-module-javaagent/src/main/java/sun/tools/attach/LinuxVirtualMachine.java
Java
apache-2.0
11,227
/** * Copyright 2015 The AMP HTML 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 require...
kamtschatka/amphtml
src/service/url-replacements-impl.js
JavaScript
apache-2.0
42,445
package com.chinaweather.android; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.vi...
weiguolong/wglRepository
app/src/main/java/com/chinaweather/android/ChooseAreaFragment.java
Java
apache-2.0
10,217
package org.niklas.elemental.Elemental.client.elements; import com.google.gwt.core.client.js.JsProperty; import com.google.gwt.core.client.js.JsType; @JsType( prototype = "DOMTokenList" ) interface DOMTokenList { @JsProperty int getLength(); String item(int index); boolean contains(String token); voi...
Nickel671/JsInteropGenerator
target/generated-sources/gwt/org/niklas/elemental/Elemental/client/elements/DOMTokenList.java
Java
apache-2.0
423
/******************************************************** Copyright 2016 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-...
googlecreativelab/chrome-music-lab
spectrogram/src/javascripts/UI/player.js
JavaScript
apache-2.0
5,514
/* * 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...
dadarom/dubbo
dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/filter/GenericImplFilter.java
Java
apache-2.0
9,168
package rpcd import ( "github.com/Cloud-Foundations/Dominator/lib/errors" "github.com/Cloud-Foundations/Dominator/lib/srpc" "github.com/Cloud-Foundations/Dominator/proto/hypervisor" ) func (t *srpcType) ChangeAddressPool(conn *srpc.Conn, request hypervisor.ChangeAddressPoolRequest, reply *hypervisor.ChangeAddres...
rgooch/Dominator
hypervisor/rpcd/changeAddressPool.go
GO
apache-2.0
1,050
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.wfu.common.utils; import javax.servlet.http.HttpServletRequest; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRe...
347184068/jybl
src/main/java/com/wfu/common/utils/SystemPath.java
Java
apache-2.0
1,970
using System; // ReSharper disable CheckNamespace namespace DasMulli.Win32.ServiceUtils { internal delegate void ServiceControlHandler(ServiceControlCommand control, uint eventType, IntPtr eventData, IntPtr eventContext); }
tonyredondo/TWCore2
src/TWCore.Services/DasMulli.Win32.ServiceUtils/ServiceControlHandler.cs
C#
apache-2.0
232
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.UI; using System.Web.UI.Adapters; using System.Web.UI.WebControls; namespace FrameworkLibrary.Classes.ControlAdapters { public class TreeViewAdapter : ControlAdapter { p...
MacdonaldRobinson/FlexDotnetCMS
FrameworkLibrary/Classes/ControlAdapters/TreeViewAdapter.cs
C#
apache-2.0
1,555
package redis import ( "encoding/json" "errors" "fmt" "github.com/go-redis/redis" "github.com/mainflux/mainflux/logger" "github.com/mainflux/mainflux/lora" ) const ( keyType = "lora" keyDevEUI = "dev_eui" keyAppID = "app_id" group = "mainflux.lora" stream = "mainflux.things" thingPrefix = "thing." ...
Mainflux/mainflux-lite
lora/redis/streams.go
GO
apache-2.0
5,245
#!/usr/bin/python """usage: python stylechecker.py /path/to/the/c/code""" import os import sys import string import re WHITE = '\033[97m' CYAN = '\033[96m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' ENDC = '\033[0m' def check_file(file): if re.search('\.[c|h]$', file) == None: ...
izenecloud/nginx
tengine/contrib/stylechecker.py
Python
apache-2.0
1,596
package com.javaasc.entity.api; import java.util.List; public interface JascValues { List<String> getValues(); }
alonana/JavaAsc
entity/src/main/java/com/javaasc/entity/api/JascValues.java
Java
apache-2.0
119
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def removeNthFromEnd(self, head, n): """ :type head: ListNode :type n: int :rtype: ListNode """ fast = slow ...
rx2130/Leetcode
python/19 Remove Nth Node From End of List.py
Python
apache-2.0
1,039
import datetime from unittest import mock import unittest from django.utils import timezone from unittest.mock import Mock, PropertyMock from django.test import TestCase from django.contrib.sessions.models import Session # from core.tasks import send_outcome, check_anonymous from lti.tasks import send_outcome class ...
cjlee112/socraticqs2
mysite/mysite/tests/celery.py
Python
apache-2.0
3,119
package com.commit451.parcelcheck.sample.brokenModels; import android.os.Parcel; import android.os.Parcelable; import java.util.Date; /** * A phone model, which is missing a few parcelable calls */ public class Phone implements Parcelable { private int modelNumber; private String manufacturer; private...
Commit451/ParcelCheck
app/src/main/java/com/commit451/parcelcheck/sample/brokenModels/Phone.java
Java
apache-2.0
1,342
# Copyright (c) 2014 Rackspace, 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 wr...
obulpathi/cdn1
cdn/transport/validators/stoplight/exceptions.py
Python
apache-2.0
1,077
import {TaskQueue} from './task-queue.js'; import { Task } from './task.js'; /** * An object that controls when tasks are executed from a queue or set of * queues. */ export interface QueueScheduler<Q extends TaskQueue<T>, T extends Task<any>> { schedule(queue: Q): void; }
PolymerLabs/async-demos
packages/scheduler/src/lib/queue-scheduler.ts
TypeScript
apache-2.0
280
# Be sure to restart your server when you modify this file. IBeaconCMS::Application.config.session_store :cookie_store, key: '_iBeaconCMS_session'
SlalomDigital/iBeaconCMS
config/initializers/session_store.rb
Ruby
apache-2.0
148
// Copyright 2016 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // These event types are shared between the Events API and used as Webhook payloads. package github // CommitCommentEvent is triggered when a commit...
pulcy/vault-monkey
deps/github.com/hashicorp/vault/vendor/github.com/google/go-github/github/event_types.go
GO
apache-2.0
24,483
'use strict'; //GetAttribute() returns "boolean" values and will return either "true" or null describe('Report', function(){ var _ = require('lodash'); var Reports = require('../../app/reports/reports-page'); var Report = require('../../app/report/report-page'); var reports = new Reports(); var re...
28msec/nolap-report-editor
tests/e2e/basic-scenario.js
JavaScript
apache-2.0
4,515
/* 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...
tensorflow/io
tensorflow_io/core/kernels/video_kernels.cc
C++
apache-2.0
5,927
/* * Copyright 2017-present 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 appli...
LorenzReinhart/ONOSnew
providers/lisp/mapping/src/main/java/org/onosproject/provider/lisp/mapping/util/MappingAddressBuilder.java
Java
apache-2.0
8,703
/* * 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")...
asanka88/apache-synapse
modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/util/RESTUtil.java
Java
apache-2.0
16,005
// 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 ...
firebase/firebase-android-sdk
firebase-firestore/src/main/java/com/google/firebase/firestore/model/mutation/NumericIncrementTransformOperation.java
Java
apache-2.0
4,335
/* * Copyright (C) 2013,2014 Brett Wooldridge * * 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 ...
bobwenx/HikariCP
hikaricp-common/src/main/java/com/zaxxer/hikari/pool/BaseHikariPool.java
Java
apache-2.0
18,562
/* Copyright 2020 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/ingress-gce
pkg/svcneg/client/clientset/versioned/typed/svcneg/v1beta1/fake/fake_svcneg_client.go
GO
apache-2.0
1,253
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
googleapis/java-domains
proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequest.java
Java
apache-2.0
27,978
package com.sequenceiq.datalake.flow.diagnostics.event; import static com.sequenceiq.datalake.flow.diagnostics.SdxCmDiagnosticsEvent.SDX_CM_DIAGNOSTICS_COLLECTION_FAILED_EVENT; import java.util.Map; import com.sequenceiq.datalake.flow.SdxFailedEvent; public class SdxCmDiagnosticsFailedEvent extends SdxFailedEvent {...
hortonworks/cloudbreak
datalake/src/main/java/com/sequenceiq/datalake/flow/diagnostics/event/SdxCmDiagnosticsFailedEvent.java
Java
apache-2.0
934
package com.vint.iblog.web.servlet; import com.vint.iblog.datastore.define.SequenceManagerDAO; import com.vint.iblog.datastore.define.StaticDataDAO; import org.apache.commons.lang3.StringUtils; import org.vintsie.jcobweb.proxy.ServiceFactory; import javax.servlet.ServletException; import javax.servlet.http.HttpServle...
vintsie/iblog
src/main/java/com/vint/iblog/web/servlet/ConfigurationServlet.java
Java
apache-2.0
3,565
package rest import ( "bytes" "encoding/base64" "fmt" "io" "net/url" "path" "reflect" "strconv" "strings" "time" "github.com/datacratic/aws-sdk-go/aws" ) // RFC822 returns an RFC822 formatted timestamp for AWS protocols const RFC822 = "Mon, 2 Jan 2006 15:04:05 GMT" func Build(r *aws.Request) { if r.Para...
datacratic/aws-sdk-go
internal/protocol/rest/build.go
GO
apache-2.0
4,968
/** * Copyright 2010-2016 the original author or authors. * * 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 ...
yunmel/rps
src/main/java/com/yunmel/db/utils/PropertyHolderUtil.java
Java
apache-2.0
2,765
/** Copyright 2010 OpenEngSB Division, Vienna University of Technology 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 applicabl...
tobster/openengsb
core/workflow/domains/src/main/java/org/openengsb/drools/NotificationDomain.java
Java
apache-2.0
784
package io.quarkus.resteasy.reactive.jackson.deployment.test; import java.util.function.Supplier; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; im...
quarkusio/quarkus
extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/VertxJsonTest.java
Java
apache-2.0
1,773
/* * 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 ...
jcamachor/hive
ql/src/test/org/apache/hadoop/hive/ql/txn/compactor/CompactorTest.java
Java
apache-2.0
26,009
'use strict'; var app = angular.module('app', [ 'ngAnimate', 'ngCookies', 'ui.router', 'ui.bootstrap' ]); app.config(['$stateProvider', '$httpProvider', function ($stateProvider, $httpProvider) { $stateProvider.state('home', { url: '', templateUrl: 'App/partials/ho...
trentdm/Foos
src/Foos/App/app.js
JavaScript
apache-2.0
4,265
/* * Copyright 2019 VMware, 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
micrometer-metrics/micrometer
micrometer-binders/src/test/java/io/micrometer/binder/jetty/JettyConnectionMetricsTest.java
Java
apache-2.0
5,449
/* * Copyright 2016-present 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 appli...
lsinfo3/onos
core/store/dist/src/main/java/org/onosproject/store/resource/impl/DiscreteResources.java
Java
apache-2.0
1,461
package io.leopard.jdbc; import io.leopard.jdbc.JdbcDaoSupport; import java.sql.Connection; import javax.sql.DataSource; import org.junit.Assert; import org.junit.Test; import org.mockito.Mockito; import org.springframework.jdbc.core.JdbcTemplate; public class JdbcDaoSupportTest { JdbcDaoSupport jdbcDao = new Jdb...
tanhaichao/leopard-data
leopard-jdbc/src/test/java/io/leopard/jdbc/JdbcDaoSupportTest.java
Java
apache-2.0
1,196