code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/*
* 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 |
<!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"... | bisigc/art | doc/controllers/smell/class-use/routes.javascript.html | HTML | apache-2.0 | 4,269 |
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 |
---
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"
---
##... | JohnSnowLabs/spark-nlp | docs/_posts/dcecchini/2021-03-10-pos_vtb_vi.md | Markdown | apache-2.0 | 4,467 |
<?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 |
// 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... | michaelhkw/incubator-impala | be/src/exec/read-write-util.h | C | apache-2.0 | 10,069 |
<!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... | play2-maven-plugin/play2-maven-plugin.github.io | play2-maven-plugin/1.0.0-rc3/play2-provider-api/distribution-management.html | HTML | apache-2.0 | 5,770 |
/*
* 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 |
<!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... | lshain/hbase-0.98.6-hadoop2 | docs/devapidocs/org/apache/hadoop/hbase/protobuf/generated/class-use/ZooKeeperProtos.ReplicationHLogPosition.html | HTML | apache-2.0 | 22,576 |
/*
* 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 |
# 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 | mdoering/backbone | life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Plantaginaceae/Plantago/Plantago maritima/Plantago maritima alpina/README.md | Markdown | apache-2.0 | 219 |
/*
* 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 |
__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... | Saber-Team/soi | README.md | Markdown | apache-2.0 | 10,289 |
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 |
#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... | karagog/GKChess | src/third_party/pg_utils/book.h | C | apache-2.0 | 2,350 |
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 |
<!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... | ninetian/ffmpeginstaller | flac-1.3.2/doc/html/api/_09_2metadata_8h.html | HTML | apache-2.0 | 13,318 |
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 |
# 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... | lizenn/erlang-dbus | doc/dbus_auth_external.md | Markdown | apache-2.0 | 1,227 |
// 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 |
#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) | cmdrmcdonald/EliteDangerousDataProvider | Contributors.md | Markdown | apache-2.0 | 231 |
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 |
# 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... | miccl/VisualiseR | Assets/VisualiseR/Code/Scripts/Conversion/README.md | Markdown | apache-2.0 | 2,151 |
/**
* 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 |
--
-- 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... | kuali/kpme | pm/impl/src/test/config/sql/PositionServiceTest-cleanup.sql | SQL | apache-2.0 | 676 |
/*
* 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 © 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 |
<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="... | ilearninging/xxhis | all/493.html | HTML | apache-2.0 | 1,063 |
/*
* 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 <... | galak/zephyr | drivers/serial/uart_rom_esp32s2.c | C | apache-2.0 | 1,343 |
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 |
/*
* 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 ... | orfeotoolbox/OTB | Modules/Core/ObjectList/include/otbObjectListToObjectListFilter.h | C | apache-2.0 | 4,437 |
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 |
#!/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... | googleapis/java-accessapproval | .kokoro/continuous/propose_release.sh | Shell | apache-2.0 | 1,189 |
'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 |
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":... | faganpe/KafkaStreamingPOC | src/scripts/es/create_index_with_mappings.sh | Shell | apache-2.0 | 6,544 |
#!/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... | mynlp/ccg2lambda | en/eacl2017exp.sh | Shell | apache-2.0 | 6,306 |
/*
* 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 |
<!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 ... | yeuser/java-libs | abstract-service-library/dist/abstract-service-library-2.2.0-gamma/api/org/nise/ux/asl/face/class-use/Worker.html | HTML | apache-2.0 | 6,344 |
/*
* 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 |
---
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... | GerritCodeReview/homepage | pages/design-docs/delete-groups/conclusion.md | Markdown | apache-2.0 | 1,163 |
CC=nvcc
thrust: thrust.o
$(CC) -o $@ $^
thrust.o: thrust.cu
$(CC) -o $@ $< -c
clean:
rm -f thrust thrust.o
| HongjianLi/cudart | thrust/Makefile | Makefile | apache-2.0 | 113 |
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 |
<?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
*/
... | OpenConext/SamlValueObject | src/OpenConext/Value/Saml/Metadata/ShibbolethMetadataScope.php | PHP | apache-2.0 | 2,613 |
/*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... | zhongyi-zhang/meta-azure-service-broker | test/integration/cleaner.js | JavaScript | apache-2.0 | 1,244 |
/*
* 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... | cpollet/sportracker | webapp/src/test/java/net/cpollet/sportracker/dozer/TestHashingDozerConverter.java | Java | apache-2.0 | 2,427 |
<!-- 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
... | linsun/kubernetes11 | docs/user-guide/kubectl/kubectl_apply.md | Markdown | apache-2.0 | 3,124 |
/*
* 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... | escidoc-ng/escidoc-ng | escidocng-backend/src/main/java/de/escidocng/WebInitializer.java | Java | apache-2.0 | 1,132 |
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-... | ebidel/WebFundamentals | src/content/en/fundamentals/performance/poor-connectivity/index.md | Markdown | apache-2.0 | 8,159 |
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... | rudygt/dot-kafka | DotKafka.Prototype/Common/Errors/UnknownServerException.cs | C# | apache-2.0 | 346 |
ongometro
=========
Final project for submission in hackathonJusBr
| di3goleite/ongometro | README.md | Markdown | apache-2.0 | 68 |
#!/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... | grahamgilbert/munki-dnd | munki-dnd.py | Python | apache-2.0 | 1,572 |
package com.nitorcreations.willow.metrics;
import javax.inject.Named;
@Named("/types")
public class MessageTypesMetric extends TagListMetric {
public MessageTypesMetric() {
super("category");
}
}
| NitorCreations/willow | willow-servers/src/main/java/com/nitorcreations/willow/metrics/MessageTypesMetric.java | Java | apache-2.0 | 206 |
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... | LQJJ/demo | 126-go-common-master/app/job/live/xlottery/internal/model/model.go | GO | apache-2.0 | 2,202 |
/*
* 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... | khartig/assimilator | rio-resolver/resolver-aether/src/main/java/org/rioproject/resolver/aether/util/ConsoleTransferListener.java | Java | apache-2.0 | 4,898 |
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... | gw1018/imageservice | images/heatmap.js | JavaScript | apache-2.0 | 1,415 |
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... | beforeeight/cpush-apns | src/main/java/com/cyou/cpush/apns/notification/DefaultNotification.java | Java | apache-2.0 | 1,207 |
# social-network
Social Network application using Spring Boot, Thymeleaf, MySQL
| budthapa/social-network | README.md | Markdown | apache-2.0 | 80 |
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 ... | ApocalypsjeNL/OpenAudioMc | plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/proxy/service/ProxyNetworkingService.java | Java | apache-2.0 | 3,602 |