repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
skyisle/iosched2011 | android/src/com/google/android/apps/iosched/ui/BaseSinglePaneActivity.java | 2149 | /*
* 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... | apache-2.0 |
GoogleCloudPlatform/spring-cloud-gcp | spring-cloud-gcp-data-datastore/src/main/java/com/google/cloud/spring/data/datastore/core/mapping/event/ReadEvent.java | 1298 | /*
* 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... | apache-2.0 |
bisigc/art | doc/controllers/smell/class-use/routes.javascript.html | 4269 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_60) on Thu Feb 18 18:53:20 CET 2016 -->
<title>Uses of Class controllers.smell.routes.javascript</title>
<meta name="date" content="2016-02-18"... | apache-2.0 |
richardliaw/ray | python/ray/tune/registry.py | 5525 | 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... | apache-2.0 |
uber/vertica-python | vertica_python/vertica/messages/frontend_messages/copy_data.py | 2393 | # 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... | apache-2.0 |
sdw2330976/SpringBC | springbootjpa/src/test/java/com/sdw/soft/demo/rxjava/TestRxJava.java | 726 | 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... | apache-2.0 |
lliss/model-my-watershed | src/mmw/js/src/draw/tests.js | 7248 | "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'),
... | apache-2.0 |
gravitee-io/graviteeio-access-management | gravitee-am-service/src/test/java/io/gravitee/am/service/validators/PathValidatorTest.java | 2272 | /**
* 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... | apache-2.0 |
JohnSnowLabs/spark-nlp | docs/_posts/dcecchini/2021-03-10-pos_vtb_vi.md | 4467 | ---
layout: model
title: Part of Speech for Vietnamese
author: John Snow Labs
name: pos_vtb
date: 2021-03-10
tags: [open_source, pos, vi]
supported: true
task: Part of Speech Tagging
language: vi
edition: Spark NLP 2.7.5
spark_version: 2.4
article_header:
type: cover
use_language_switcher: "Python-Scala-Java"
---
##... | apache-2.0 |
sxyunfeng/fcms | apps/admin/controllers/PayconfigController.php | 7003 | <?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... | apache-2.0 |
googleads/google-ads-php | src/Google/Ads/GoogleAds/V8/Services/Gapic/AdGroupServiceGapicClient.php | 16250 | <?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... | apache-2.0 |
skuda/client-python | kubernetes/test/test_v1beta1_cluster_role_list.py | 917 | # 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... | apache-2.0 |
michaelhkw/incubator-impala | be/src/exec/read-write-util.h | 10069 | // 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 |
play2-maven-plugin/play2-maven-plugin.github.io | play2-maven-plugin/1.0.0-rc3/play2-provider-api/distribution-management.html | 5770 | <!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.8.1 at 2018-06-24
| Rendered using Apache Maven Fluido Skin 1.6
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0... | apache-2.0 |
killbill/killbill | beatrix/src/test/java/org/killbill/billing/beatrix/integration/TestIntegrationVoidInvoice.java | 12168 | /*
* 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... | apache-2.0 |
lshain/hbase-0.98.6-hadoop2 | docs/devapidocs/org/apache/hadoop/hbase/protobuf/generated/class-use/ZooKeeperProtos.ReplicationHLogPosition.html | 22576 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_65) on Wed Sep 03 20:05:58 PDT 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class org.a... | apache-2.0 |
EvilMcJerkface/crate | server/src/main/java/io/crate/execution/ddl/RelationNameSwap.java | 1976 | /*
* 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... | apache-2.0 |
conversationai/harassment-manager | src/server/middleware/twitter.middleware.ts | 11910 | /**
* 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... | apache-2.0 |
lnc2014/school | template/js/add_per.js | 13016 | /**
* 添加教师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){
... | apache-2.0 |
ospray/OSPRay | modules/mpi/ospray/render/distributed/AlphaCompositeTileOperation.cpp | 4549 | // 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 ... | apache-2.0 |
mdoering/backbone | life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Plantaginaceae/Plantago/Plantago maritima/Plantago maritima alpina/README.md | 219 | # Plantago maritima subsp. alpina (L.) O.Bolòs & Vigo SUBSPECIES
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
Plantago alpina L.
### Remarks
null | apache-2.0 |
pedroigor/keycloak | server-spi/src/main/java/org/keycloak/services/clientpolicy/ClientPolicyEvent.java | 1353 | /*
* 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... | apache-2.0 |
zstackio/zstack-woodpecker | integrationtest/vm/e2e_mini/host/host.py | 1882 | # -*- 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... | apache-2.0 |
Saber-Team/soi | README.md | 10289 | __Build Info__
[![project][project-image]][project-url]
[![Build status][travis-image]][travis-url]
[![Dependency Status][david-image]][david-url]
__Downloads Info__
[![Downloads][downloads-image]][downloads-url]
[![Downloads][downloads-all-image]][downloads-url]
__Miscellaneous__
[![NPM version][npm-image]][npm-u... | apache-2.0 |
gromgull/cgajs | test/test_splitting.js | 1531 | 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:... | apache-2.0 |
karagog/GKChess | src/third_party/pg_utils/book.h | 2350 | #ifndef BOOK_H
#define BOOK_H
#include "pg_utils.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/** The size of one polyglot entry, in bytes. */
#define POLYGLOT_ENTRY_SIZE 16
/** The size of a polyglot entry key, in bytes. */
#define POLYGLOT_KEY_SIZE 8
/** These are the enumerations given in the Poly... | apache-2.0 |
nantesmetropole/docker-paas | lib/docker_paas/family/test.rb | 880 | 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... | apache-2.0 |
ninetian/ffmpeginstaller | flac-1.3.2/doc/html/api/_09_2metadata_8h.html | 13318 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | apache-2.0 |
kaular/ArchRef | ArchRefClient/ArchRefClient/src/app/shared/datamodels/types/fragmenttype.ts | 1002 | import { Entity } from '../entity/entity';
/*******************************************************************************************************************************************************************************************************
*
* @data FragmentType - FragmentType inherited from Entity it is a speci... | apache-2.0 |
lizenn/erlang-dbus | doc/dbus_auth_external.md | 1227 |
# Module dbus_auth_external #
* [Description](#description)
* [Function Index](#index)
* [Function Details](#functions)
Implements EXTERNAL SASL mechanism.
Copyright (c) (C) 2014, Jean Parpaillon
__Behaviours:__ [`dbus_auth`](dbus_auth.md).
__Authors:__ Jean Parpaillon ([`jean.parpaillon@free.fr`](mailto:jean.par... | apache-2.0 |
GerritCodeReview/gerrit | java/com/google/gerrit/server/extensions/events/ChangeRestored.java | 3450 | // 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 ... | apache-2.0 |
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 | 1255 | 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.... | apache-2.0 |
cmdrmcdonald/EliteDangerousDataProvider | Contributors.md | 231 | #Contributors
* [Cmdr McDonald](https://github.com/cmdrmcdonald)
* [Handfeger](https://github.com/Handfeger)
* Cmdr Malandark
* [Baroness Galaxy](https://github.com/Javelias)
* [Michael Werle](https://github.com/mwerle) | apache-2.0 |
jxent/Demoz | Demoz/app/src/main/java/cn/demoz/www/adapter/DefaultAdapter.java | 5112 | 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... | apache-2.0 |
gstamac/powermock | powermock-modules/powermock-module-javaagent/src/main/java/sun/tools/attach/LinuxVirtualMachine.java | 11227 | /*
* 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 ... | apache-2.0 |
miccl/VisualiseR | Assets/VisualiseR/Code/Scripts/Conversion/README.md | 2151 | # README
* _code_conversion.py_: Script for the conversion from code to jpg (including syntax highlithing and line numbering).
* _pdf_conversion.py_: Script for the conversion from pdf to jpg
## Code Conversion
The script allows to convert code files into JPEG-format.
Additionally it adds syntax highlighting and line... | apache-2.0 |
kamtschatka/amphtml | src/service/url-replacements-impl.js | 42445 | /**
* 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... | apache-2.0 |
weiguolong/wglRepository | app/src/main/java/com/chinaweather/android/ChooseAreaFragment.java | 10217 | 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... | apache-2.0 |
Nickel671/JsInteropGenerator | target/generated-sources/gwt/org/niklas/elemental/Elemental/client/elements/DOMTokenList.java | 423 | 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... | apache-2.0 |
googlecreativelab/chrome-music-lab | spectrogram/src/javascripts/UI/player.js | 5514 | /********************************************************
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-... | apache-2.0 |
kuali/kpme | pm/impl/src/test/config/sql/PositionServiceTest-cleanup.sql | 676 | --
-- Copyright 2004-2014 The Kuali Foundation
--
-- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
--
-- Unless required by ap... | apache-2.0 |
dadarom/dubbo | dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/filter/GenericImplFilter.java | 9168 | /*
* 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 |
rgooch/Dominator | hypervisor/rpcd/changeAddressPool.go | 1050 | 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... | apache-2.0 |
347184068/jybl | src/main/java/com/wfu/common/utils/SystemPath.java | 1970 | /**
* Copyright © 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... | apache-2.0 |
tonyredondo/TWCore2 | src/TWCore.Services/DasMulli.Win32.ServiceUtils/ServiceControlHandler.cs | 232 | using System;
// ReSharper disable CheckNamespace
namespace DasMulli.Win32.ServiceUtils
{
internal delegate void ServiceControlHandler(ServiceControlCommand control, uint eventType, IntPtr eventData, IntPtr eventContext);
} | apache-2.0 |
ilearninging/xxhis | all/493.html | 1063 | <table border="1" id="table1" style="border-collapse: collapse">
<tr>
<td height="25" align="center"><span style="font-size: 16px">战国</span></td>
<td height="25" align="center"><span style="font-size: 16px">公元前435年</span></td>
<td height="25" align="center"><span style="font-size: 16px">丙午</span></td>
<td height="... | apache-2.0 |
galak/zephyr | drivers/serial/uart_rom_esp32s2.c | 1343 | /*
* Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT espressif_esp32s2_uart
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <soc.h>
#include <esp_attr.h>
#include <device.h>
#include <drivers/uart.h>
#include <... | apache-2.0 |
MacdonaldRobinson/FlexDotnetCMS | FrameworkLibrary/Classes/ControlAdapters/TreeViewAdapter.cs | 1555 | 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... | apache-2.0 |
Mainflux/mainflux-lite | lora/redis/streams.go | 5245 | 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."
... | apache-2.0 |
izenecloud/nginx | tengine/contrib/stylechecker.py | 1596 | #!/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:
... | apache-2.0 |
alonana/JavaAsc | entity/src/main/java/com/javaasc/entity/api/JascValues.java | 119 | package com.javaasc.entity.api;
import java.util.List;
public interface JascValues {
List<String> getValues();
}
| apache-2.0 |
rx2130/Leetcode | python/19 Remove Nth Node From End of List.py | 1039 | # 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 ... | apache-2.0 |
cjlee112/socraticqs2 | mysite/mysite/tests/celery.py | 3119 | 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 ... | apache-2.0 |
orfeotoolbox/OTB | Modules/Core/ObjectList/include/otbObjectListToObjectListFilter.h | 4437 | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.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 ... | apache-2.0 |
Commit451/ParcelCheck | app/src/main/java/com/commit451/parcelcheck/sample/brokenModels/Phone.java | 1342 | 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... | apache-2.0 |
obulpathi/cdn1 | cdn/transport/validators/stoplight/exceptions.py | 1077 | # 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... | apache-2.0 |
PolymerLabs/async-demos | packages/scheduler/src/lib/queue-scheduler.ts | 280 | 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;
}
| apache-2.0 |
SlalomDigital/iBeaconCMS | config/initializers/session_store.rb | 148 | # Be sure to restart your server when you modify this file.
IBeaconCMS::Application.config.session_store :cookie_store, key: '_iBeaconCMS_session'
| apache-2.0 |
pulcy/vault-monkey | deps/github.com/hashicorp/vault/vendor/github.com/google/go-github/github/event_types.go | 24483 | // 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... | apache-2.0 |
googleapis/java-accessapproval | .kokoro/continuous/propose_release.sh | 1189 | #!/bin/bash
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 |
28msec/nolap-report-editor | tests/e2e/basic-scenario.js | 4515 | '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... | apache-2.0 |
tensorflow/io | tensorflow_io/core/kernels/video_kernels.cc | 5927 | /* 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 |
LorenzReinhart/ONOSnew | providers/lisp/mapping/src/main/java/org/onosproject/provider/lisp/mapping/util/MappingAddressBuilder.java | 8703 | /*
* 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... | apache-2.0 |
faganpe/KafkaStreamingPOC | src/scripts/es/create_index_with_mappings.sh | 6544 | curl -XPUT 'http://192.168.99.100:9200/spark/' -d '{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 0
}
},
"mappings" : {
"netflow": {
"properties": {
"port_src_well_known_service": {
"type":... | apache-2.0 |
mynlp/ccg2lambda | en/eacl2017exp.sh | 6306 | #!/bin/bash
#
# Copyright 2016 Pascual Martinez-Gomez
#
# 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... | apache-2.0 |
asanka88/apache-synapse | modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/util/RESTUtil.java | 16005 | /*
* 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 |
firebase/firebase-android-sdk | firebase-firestore/src/main/java/com/google/firebase/firestore/model/mutation/NumericIncrementTransformOperation.java | 4335 | // 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 |
bobwenx/HikariCP | hikaricp-common/src/main/java/com/zaxxer/hikari/pool/BaseHikariPool.java | 18562 | /*
* 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 ... | apache-2.0 |
kubernetes/ingress-gce | pkg/svcneg/client/clientset/versioned/typed/svcneg/v1beta1/fake/fake_svcneg_client.go | 1253 | /*
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, ... | apache-2.0 |
yeuser/java-libs | abstract-service-library/dist/abstract-service-library-2.2.0-gamma/api/org/nise/ux/asl/face/class-use/Worker.html | 6344 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Sun Dec 15 17:36:27 IRST 2013 -->
<title>Uses of Interface org.nise.ux.asl.face.Worker (Abstract Service Library)</title>
<meta ... | apache-2.0 |
googleapis/java-domains | proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequest.java | 27978 | /*
* 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 ... | apache-2.0 |
GerritCodeReview/homepage | pages/design-docs/delete-groups/conclusion.md | 1163 | ---
title: "Design Doc - Deletion of groups - Conclusion"
permalink: design-docs/delete-groups-conclusion.html
hide_sidebar: true
hide_navtoggle: true
toc: false
---
# Conclusion
Deletion of groups is a generally desired feature we'd like to support in
Gerrit. However, there seem to be two major behaviors/modes depen... | apache-2.0 |
HongjianLi/cudart | thrust/Makefile | 113 | CC=nvcc
thrust: thrust.o
$(CC) -o $@ $^
thrust.o: thrust.cu
$(CC) -o $@ $< -c
clean:
rm -f thrust thrust.o
| apache-2.0 |
hortonworks/cloudbreak | datalake/src/main/java/com/sequenceiq/datalake/flow/diagnostics/event/SdxCmDiagnosticsFailedEvent.java | 934 | 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 {... | apache-2.0 |
vintsie/iblog | src/main/java/com/vint/iblog/web/servlet/ConfigurationServlet.java | 3565 | 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... | apache-2.0 |
datacratic/aws-sdk-go | internal/protocol/rest/build.go | 4968 | 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... | apache-2.0 |
yunmel/rps | src/main/java/com/yunmel/db/utils/PropertyHolderUtil.java | 2765 | /**
* 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 ... | apache-2.0 |
tobster/openengsb | core/workflow/domains/src/main/java/org/openengsb/drools/NotificationDomain.java | 784 | /**
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... | apache-2.0 |
quarkusio/quarkus | extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/VertxJsonTest.java | 1773 | 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... | apache-2.0 |
jcamachor/hive | ql/src/test/org/apache/hadoop/hive/ql/txn/compactor/CompactorTest.java | 26009 | /*
* 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 |
trentdm/Foos | src/Foos/App/app.js | 4265 | '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... | apache-2.0 |
micrometer-metrics/micrometer | micrometer-binders/src/test/java/io/micrometer/binder/jetty/JettyConnectionMetricsTest.java | 5449 | /*
* 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... | apache-2.0 |
lsinfo3/onos | core/store/dist/src/main/java/org/onosproject/store/resource/impl/DiscreteResources.java | 1461 | /*
* 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... | apache-2.0 |
tanhaichao/leopard-data | leopard-jdbc/src/test/java/io/leopard/jdbc/JdbcDaoSupportTest.java | 1196 | 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... | apache-2.0 |
OpenConext/SamlValueObject | src/OpenConext/Value/Saml/Metadata/ShibbolethMetadataScope.php | 2613 | <?php
namespace OpenConext\Value\Saml\Metadata;
use OpenConext\Value\Assert\Assertion;
use OpenConext\Value\RegularExpression;
use OpenConext\Value\Serializable;
final class ShibbolethMetadataScope implements Serializable
{
/**
* @var string
*/
private $scope;
/**
* @var bool
*/
... | apache-2.0 |
zhongyi-zhang/meta-azure-service-broker | test/integration/cleaner.js | 1244 | /*jshint camelcase: false */
var common = require('../../lib/common');
var msRestRequest = require('../../lib/common/msRestRequest');
var chai = require('chai');
var should = chai.should();
var util = require('util');
exports.clean = function(provisioningParameters, done) {
var resourceGroupName = provisioningParame... | apache-2.0 |
cpollet/sportracker | webapp/src/test/java/net/cpollet/sportracker/dozer/TestHashingDozerConverter.java | 2427 | /*
* Copyright 2014 Christophe Pollet
*
* 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 |
linsun/kubernetes11 | docs/user-guide/kubectl/kubectl_apply.md | 3124 | <!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- END MUNGE: UNVERSIONED_WARNING -->
## kubectl apply
Apply a configuration to a resource by filename or stdin
### Synopsis
Apply a configuration to a resource by filename or stdin.
JSON and YAML formats are accepted.
```
kubectl apply -f FILENAME
```
### Examples
... | apache-2.0 |
escidoc-ng/escidoc-ng | escidocng-backend/src/main/java/de/escidocng/WebInitializer.java | 1132 | /*
* Copyright 2014 FIZ Karlsruhe
*
* 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 |
ebidel/WebFundamentals | src/content/en/fundamentals/performance/poor-connectivity/index.md | 8159 | project_path: /web/fundamentals/_project.yaml
book_path: /web/fundamentals/_book.yaml
description: It's important to understand what using your app or site feels like when connectivity is poor or unreliable, and build accordingly. A range of tools can help you.
{# wf_updated_on: 2018-01-10 #}
{# wf_published_on: 2016-... | apache-2.0 |
rudygt/dot-kafka | DotKafka.Prototype/Common/Errors/UnknownServerException.cs | 346 | using System;
namespace DotKafka.Prototype.Common.Errors
{
public class UnknownServerException : ApiException
{
public UnknownServerException() { }
public UnknownServerException(string message) : base(message) { }
public UnknownServerException(string message, Exception inner) : base(m... | apache-2.0 |
di3goleite/ongometro | README.md | 68 | ongometro
=========
Final project for submission in hackathonJusBr
| apache-2.0 |
grahamgilbert/munki-dnd | munki-dnd.py | 1572 | #!/usr/bin/python
import sys
# try to import from the default place Munki installs it
try:
from munkilib import FoundationPlist, munkicommon
except:
sys.path.append('/usr/local/munki')
from munkilib import FoundationPlist, munkicommon
import os
from datetime import datetime
FILE_LOCATION = "/Users/Shared... | apache-2.0 |
NitorCreations/willow | willow-servers/src/main/java/com/nitorcreations/willow/metrics/MessageTypesMetric.java | 206 | package com.nitorcreations.willow.metrics;
import javax.inject.Named;
@Named("/types")
public class MessageTypesMetric extends TagListMetric {
public MessageTypesMetric() {
super("category");
}
}
| apache-2.0 |
LQJJ/demo | 126-go-common-master/app/job/live/xlottery/internal/model/model.go | 2202 | package model
// Pool .
type Pool struct {
Id int64 `json:"id"`
CoinId int64 `json:"coin_id"`
Title string `json:"title"`
Description string `json:"description"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Status int64 `json:"status"`
IsBottom int6... | apache-2.0 |
khartig/assimilator | rio-resolver/resolver-aether/src/main/java/org/rioproject/resolver/aether/util/ConsoleTransferListener.java | 4898 | /*
* Copyright to 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 applicabl... | apache-2.0 |
gw1018/imageservice | images/heatmap.js | 1415 | var Canvas = require('canvas');
var Image = Canvas.Image;
// Constants
var canvasWidth = 350;
var canvasHeight = 150;
var cellSize = 30;
var colorMap = {
0: 'rgba(0, 0, 0, 0)',
1: '#F7F6EA',
2: '#E6E6E1',
3: '#EBC000'
};
module.exports = generate;
function generate(title, accuracy) {
var canvas = new Ca... | apache-2.0 |
beforeeight/cpush-apns | src/main/java/com/cyou/cpush/apns/notification/DefaultNotification.java | 1207 | package com.cyou.cpush.apns.notification;
import java.util.concurrent.atomic.AtomicInteger;
public class DefaultNotification implements Notification {
private static AtomicInteger IDENTIFIER_GENERATOR = new AtomicInteger(Integer.MAX_VALUE-1);
private int identifier;
private Device device;
private Payload paylo... | apache-2.0 |
budthapa/social-network | README.md | 80 | # social-network
Social Network application using Spring Boot, Thymeleaf, MySQL
| apache-2.0 |
ApocalypsjeNL/OpenAudioMc | plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/proxy/service/ProxyNetworkingService.java | 3602 | package com.craftmend.openaudiomc.spigot.modules.proxy.service;
import com.craftmend.openaudiomc.generic.networking.DefaultNetworkingService;
import com.craftmend.openaudiomc.generic.networking.abstracts.AbstractPacket;
import com.craftmend.openaudiomc.generic.networking.client.objects.player.ClientConnection;
import ... | apache-2.0 |