code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
// Copyright 2015 The etcd 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 t... | cockroachdb/etcd | client/keys.go | GO | apache-2.0 | 19,366 |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | deeplearning4j/deeplearning4j | datavec/datavec-api/src/main/java/org/datavec/api/records/reader/impl/csv/CSVNLinesSequenceRecordReader.java | Java | apache-2.0 | 8,431 |
package com.claudioliveira.receiver;
import com.claudioliveira.domain.DomainCollection;
import com.claudioliveira.domain.DomainEvent;
import com.claudioliveira.domain.SalesCodeGenerator;
import com.claudioliveira.infra.DateTimeMongoFormat;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.eventbus.EventBus;... | brunomillerps/magazine-manager | src/main/java/com/claudioliveira/receiver/RegisterSales.java | Java | apache-2.0 | 2,081 |
<!DOCTYPE html>
<html>
<head>
<base href="http://fushenghua.github.io/GetHosp">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>广东福康医院</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="GetHosp">
<link rel="canonic... | fushenghua/GetHosp | _site/其他/2016/05/03/广东福康医院/index.html | HTML | apache-2.0 | 4,284 |
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Form</title>
</head>
<body>
<h1 align="center">Beer Selection Page</h1>
<form action="Selection" method="get">
<P>select Beer Characteristics<br/>
Color:<br/> <select name="color" size="1">
<option value="light">light</option>
<option value="amber">amber<... | BlueMapleTech/AppleGroup-Santhosh-Java-JSE- | Example4/WebContent/index.html | HTML | apache-2.0 | 505 |
/**
* Created by Bane.Shi.
* Copyright MoenSun
* User: Bane.Shi
* Blog: http://blog.fengxiaotx.com
* Date: 2017/2/4
* Time: 17:04
*/
'use strict';
import Datepicker from "./src/date/datepicker.vue";
module.exports = {
Datepicker
} | ms-vue2/ms-vue2-ui | src/packages/picker/index.js | JavaScript | apache-2.0 | 241 |
<?php
declare(strict_types=1);
namespace Edde\Api\Protocol\Event;
use Edde\Api\Protocol\IElement;
interface IEvent extends IElement {
}
| edde-framework/edde-framework | src/Edde/Api/Protocol/Event/IEvent.php | PHP | apache-2.0 | 144 |
package com.firebase.ui.auth.viewmodel;
import android.app.Application;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import com.firebase.ui.auth.IdpResponse;
import com.firebase.ui.auth.data.model.Resource;
import com.google.fireb... | SUPERCILEX/FirebaseUI-Android | auth/src/main/java/com/firebase/ui/auth/viewmodel/SignInViewModelBase.java | Java | apache-2.0 | 1,114 |
namespace AH.ModuleController.UI.HR.Forms
{
partial class frmDepartmentWisePayroll
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | atiq-shumon/DotNetProjects | Hospital_ERP_VS13-WCF_WF/AH.ModuleController/UI/HR/Forms/frmDepartmentWisePayroll.Designer.cs | C# | apache-2.0 | 22,088 |
package net.smert.xkcdblueeyes;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*
* @author Jason Sorensen <sorensenj@smert.net>
*/
public class EyeColorGroups {
private final int ... | kovertopz/XKCDBlueEyes | src/main/java/net/smert/xkcdblueeyes/EyeColorGroups.java | Java | apache-2.0 | 2,332 |
package org.reclipse.tracer.extensionpoints;
import java.io.OutputStream;
/**
* @author lowende
* @author Last editor: $Author: lowende $
* @version $Revision: 2356 $ $Date: 2006-06-01 14:04:30 +0200 (Do, 01 Jun 2006) $
*/
public interface IVMStreamReceiver
{
public OutputStream getOutputStrea... | CloudScale-Project/StaticSpotter | plugins/org.reclipse.tracer/src/org/reclipse/tracer/extensionpoints/IVMStreamReceiver.java | Java | apache-2.0 | 331 |
<?PHP
App::uses('Model','Model');
class AdsUserPlan extends Model
{
public $useTable='ads_user_plan';
}
| hasanmbstu13/Project | Cakephp/pikdish/admin/app/Model/AdsUserPlan.php | PHP | apache-2.0 | 113 |
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ServiceFabric.Data;
namespace CareOtter.ServiceFabricUtilities.AsyncEnumerable.Enumerators
{
public class AsyncSelectEnumerator<TValType,TResultType> : IAsyncEnumerator<TResultType>
{
private readonly IAsyncEnumerator<... | devCareOtter/CareOtter.ServiceFabricUtilities | CareOtter.ServiceFabricUtilities/AsyncEnumerable/Enumerators/AsyncSelectEnumerator.cs | C# | apache-2.0 | 1,086 |
/**
*
*/
/**
* @author adamf
*
*/
package org.ihtsdo.otf.security.util; | IHTSDO/OTF-User-Module | security/src/main/java/org/ihtsdo/otf/security/util/package-info.java | Java | apache-2.0 | 77 |
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual 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... | matedo1/pnc | openshift-environment-driver/src/main/java/org/jboss/pnc/environment/openshift/OpenshiftStartedEnvironment.java | Java | apache-2.0 | 31,187 |
/* ==========================================
* Laverca Project
* https://sourceforge.net/projects/laverca/
* ==========================================
* Copyright 2015 Laverca Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | laverca/laverca | src/core/fi/laverca/mss/MssException.java | Java | apache-2.0 | 1,484 |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 201... | thlaegler/microservice | microservice-adapter/src/main/java/com/laegler/microservice/adapter/lib/javaee/v7/ParamValueType.java | Java | apache-2.0 | 5,028 |
package com.zed.livetales;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
* Created by jemalpartida on 06/10/2016.
*/
public class SplashScreenActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate( sa... | pyromobile/nubomedia-ouatclient-src | android/LiveTales/app/src/main/java/com/zed/livetales/SplashScreenActivity.java | Java | apache-2.0 | 1,084 |
package com.communote.server.model.attachment;
/**
* @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a>
*/
public class AttachmentStatus implements java.io.Serializable {
/**
* The serial version UID of this class. Needed for serialization.
*/
private static ... | Communote/communote-server | communote/api/src/main/java/com/communote/server/model/attachment/AttachmentStatus.java | Java | apache-2.0 | 5,302 |
/* $NetBSD: xlint.c,v 1.44 2011/09/18 09:07:35 njoly Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
* Copyright (c) 1994, 1995 Jochen Pohl
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | execunix/vinos | usr.bin/xlint/xlint/xlint.c | C | apache-2.0 | 19,005 |
/*
* Copyright (c) 2014-2020 by The Monix Project Developers.
* See the project homepage at: https://monix.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... | alexandru/monifu | monix-reactive/shared/src/test/scala/monix/reactive/BaseTestSuite.scala | Scala | apache-2.0 | 5,973 |
package genericpilot
import (
"sync"
"time"
"github.com/golang/glog"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/record"
clientset "github.com/jetstack/navigator/pkg/client/clientset/versioned"
listersv1alpha1 "github.com/jetstack/navigator/pkg/client/listers/navigator/v1alpha1"
"github.com/jetstac... | jetstack/navigator | pkg/pilot/genericpilot/genericpilot.go | GO | apache-2.0 | 3,159 |
import React from 'react';
import Icon from '@ichef/gypcrete/src/Icon';
import iconMap from '@ichef/gypcrete/src/icons/components';
export default {
title: '@ichef/gypcrete|Icon',
component: Icon,
};
export function BasicUsage() {
/**
* Show all icons, ordering from a to z.
*/
return (
<>
... | iCHEF/gypcrete | packages/storybook/examples/core/Icon.stories.js | JavaScript | apache-2.0 | 2,492 |
import React from 'react';
import { storiesOf } from '@storybook/react';
import Lozenge from './';
storiesOf('Lozenge', module)
.add('Base', () => {
return <Lozenge>Foo</Lozenge>;
})
.add('With Custom Background Colors', () => {
return (
<div>
<div style={{ marginBottom: '10px' }}>
... | veritone/veritone-sdk | packages/veritone-react-common/src/components/Lozenge/story.js | JavaScript | apache-2.0 | 1,581 |
package io.katharsis.internal.boot;
public interface PropertiesProvider {
public String getProperty(String key);
}
| iMDT/katharsis-framework-j6 | katharsis-core/src/main/java/io/katharsis/internal/boot/PropertiesProvider.java | Java | apache-2.0 | 118 |
angular
.module('services')
.service('UserService', UserService);
UserService.$inject = ['$resource', '$q'];
function UserService($resource, $q) {
var resource = $resource('', {}, {
get_current_user: {
method: 'GET',
url: '/console/user/current'
},
logout: ... | ctripcorp/x-pipe | redis/redis-console/src/main/resources/static/scripts/services/UserService.ts | TypeScript | apache-2.0 | 1,141 |
# Solenia maxima Massee SPECIES
#### Status
ACCEPTED
#### According to
Index Fungorum
#### Published in
Brit. Fung. -Fl. 1: 143 (1892)
#### Original name
Solenia maxima Massee
### Remarks
null | mdoering/backbone | life/Fungi/Basidiomycota/Agaricomycetes/Agaricales/Marasmiaceae/Henningsomyces/Solenia maxima/README.md | Markdown | apache-2.0 | 197 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | zapbot/zap-extensions | addOns/importLogFiles/src/main/java/org/zaproxy/zap/extension/importLogFiles/ExtensionImportLogFiles.java | Java | apache-2.0 | 16,740 |
// 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 writi... | googleads/googleads-java-lib | modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201809/cm/BatchJobStatus.java | Java | apache-2.0 | 3,907 |
<?php
namespace BrasseursApplis\Arrows\App\DTO\Helper;
use Assert\AssertionFailedException;
use BrasseursApplis\Arrows\App\DTO\SequenceDTO;
use BrasseursApplis\Arrows\VO\Orientation;
use BrasseursApplis\Arrows\VO\Position;
use BrasseursApplis\Arrows\VO\Sequence;
use BrasseursApplis\Arrows\VO\SequenceCollection;
clas... | brasseurs-applis/arrows | app/DTO/Helper/SequenceConverter.php | PHP | apache-2.0 | 1,625 |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#ifndef TITITANIUMOBJECT_H_
#define TITITANIUMOBJECT_H_
#include "TiProxy.h"
cl... | appcelerator/titanium_mobile_blackberry | src/tibb/src/TiTitaniumObject.h | C | apache-2.0 | 1,067 |
<!DOCTYPE html>
<html lang="en" ng-app="GoldCastingApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Gold Ca... | jhassan/casting | include/header.html | HTML | apache-2.0 | 4,675 |
/*
* Created by JFormDesigner on Mon Jun 23 01:28:18 EEST 2014
*/
package ga.thesis.gui.table.settings.common;
import com.jgoodies.forms.factories.Borders;
import com.jgoodies.forms.factories.CC;
import com.jgoodies.forms.layout.FormLayout;
import ga.thesis.gui.table.async.CreateSwingWorker;
import ga.thesis.hibern... | skylady/GAThesis2 | src/main/java/ga/thesis/gui/table/settings/common/AbstractSettingsDialog.java | Java | apache-2.0 | 4,783 |
# csvupdate
Script in python for update data from two files in format CSV.
With this script you can:
- `Update the data row`
- `Add new row`
# Help
# python csvupdate.py
Usage: example usage: csvupdate.py -p primary.csv -s secondary.csv -o output.csv [-k key] [-n] [-f arg1,arg2,arg3...] [-d ';']
... | ordenador/csvupdate | README.md | Markdown | apache-2.0 | 1,869 |
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace CarMarketPlace.Areas.HelpPage.ModelDescriptions
{
public class ParameterDescription
{
public ParameterDescription()
{
Annotations = new Collection<ParameterAnnotation>();
}
public Coll... | amartynenko/CarMarketplace | CarMarketPlace.Host/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs | C# | apache-2.0 | 545 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media... | dcarda/aba.route.validator | target13/site/clover/com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_07_testAbaNumberCheck_14061_good_kfo.html | HTML | apache-2.0 | 9,181 |
'use strict';
import React,{ Component } from 'react';
import { StyleSheet, AppState, Dimensions, Image } from 'react-native';
import CodePush from 'react-native-code-push';
import { Container, Text, View, InputGroup, Input, Icon } from 'native-base';
import Modal from 'react-native-modalbox';
import AppNavigator fr... | chris50bn/Between | js/App.js | JavaScript | apache-2.0 | 3,096 |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | floodlight/loxigen-artifacts | openflowj/gen-src/main/java/org/projectfloodlight/openflow/protocol/ver14/OFMeterFeaturesStatsReplyVer14.java | Java | apache-2.0 | 14,506 |
Function Get-3PARAo {
<#
.SYNOPSIS
Retrieve informations about the configuration of Adaptive optimization (AO).
.DESCRIPTION
This function will retrieve informations about the configuration of Adaptive optimization (AO). You need to have an active session with the array.
.NOTES
Wr... | equelin/3PAR-Powershell | 3PAR-Powershell/Public/Get-3PARAo.ps1 | PowerShell | apache-2.0 | 1,649 |
package email
import (
"bytes"
"crypto/tls"
"html/template"
"net"
"net/mail"
"net/smtp"
"time"
"github.com/labstack/gommon/random"
)
type (
Email struct {
Auth smtp.Auth
Header map[string]string
Template *template.Template
smtpAddress string
}
Message struct {
ID string ... | apiend/web | src/apiServer/vendor/github.com/labstack/gommon/email/email.go | GO | apache-2.0 | 3,734 |
package org.mule.modules.hornetq.connection;
import javax.annotation.Generated;
/**
* Exception thrown when the release connection operation of the
* connection manager fails.
*
*/
@Generated(value = "Mule DevKit Version 3.5.0", date = "2016-02-05T01:35:45-04:30", comments = "Build UNNAMED.1937.40b93b4")
publ... | larrymagallanes/hornetq-connector | target/generated-sources/mule/org/mule/modules/hornetq/connection/UnableToReleaseConnectionException.java | Java | apache-2.0 | 586 |
//
// FlyClip.h
// FlyClipSDK
//
// Created by wanghexiang on 2017/7/11.
// Copyright © 2017年 Eric. All rights reserved.
//
#import "FCMedia.h"
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface FlyClip : NSObject
/*
* 设置当前应用的URLSchema
*/
+(void)setURLSchema:(NSString *)urlSchema; // 此处设置为当前App... | Makeanamesohard/FlyClipSDk | FlyClipSDK/FlyClipSDK.framework/Headers/FlyClip.h | C | apache-2.0 | 890 |
#!/usr/bin/env python
import os
import glob
import unittest
import pysmile
import json
__author__ = 'Jonathan Hosmer'
class PySmileTestDecode(unittest.TestCase):
def setUp(self):
curdir = os.path.dirname(os.path.abspath(__file__))
self.smile_dir = os.path.join(curdir, 'data', 'smile')
... | jhosmer/PySmile | tests/pysmile_tests.py | Python | apache-2.0 | 11,679 |
package com.athbk.changeavtarliketinder;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.athbk.avatarview.TinderRecyclerView;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity {
@Override
pro... | ATHBK/AvatarTinderView | app/src/main/java/com/athbk/changeavtarliketinder/MainActivity.java | Java | apache-2.0 | 5,897 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 OpenStack LLC.
# 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/... | linvictor88/vse-lbaas-driver | quantum/plugins/services/agent_loadbalancer/drivers/vedge/vselb.py | Python | apache-2.0 | 7,013 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | cedral/aws-sdk-cpp | aws-cpp-sdk-lambda/include/aws/lambda/model/AddLayerVersionPermissionRequest.h | C | apache-2.0 | 14,175 |
/*
* Copyright © 2015-2016
*
* This file is part of Spoofax for IntelliJ.
*
* 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
*
* Unl... | metaborg/spoofax-intellij | src/main/java/org/metaborg/intellij/idea/gui/languagespanel/LanguageNode.java | Java | apache-2.0 | 2,373 |
<!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_72) on Wed May 13 11:47:55 EDT 2015 -->
<title>Uses of Class org.apache.cassandra.thrift.KeyRange._Fields (apache-cassandra API)</title... | anuragkapur/cassandra-2.1.2-ak-skynet | apache-cassandra-2.0.15/javadoc/org/apache/cassandra/thrift/class-use/KeyRange._Fields.html | HTML | apache-2.0 | 12,451 |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | startcode/apollo | modules/drivers/rslidar/rslidar_driver/src/driver/driver.cpp | C++ | apache-2.0 | 4,175 |
#include "relay.h"
#include "../net/tcpsocket.h"
#include "../core/timeout.h"
#include <chrono>
namespace Epyx
{
namespace N2NP
{
Relay::Relay(const SockAddress& addr)
:WorkerPool(1, "Relay@" + addr.toString()),
relayAddr(addr), relayId(addr), nodeNextId(1) {
log::info << "... | Kangz/epyx | src/n2np/relay.cpp | C++ | apache-2.0 | 4,769 |
'use strict';
module.exports = {
ClientRequest: function () {}
};
| StackStorm/st2client.js | lib/util/http.js | JavaScript | apache-2.0 | 69 |
# Copyright 2018 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 applica... | asimshankar/tensorflow | tensorflow/contrib/distribute/python/combinations.py | Python | apache-2.0 | 15,137 |
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_6179 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_6179.java | Java | apache-2.0 | 151 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery;
namespace Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
... | aelij/roslyn | src/Features/CSharp/Portable/Completion/KeywordRecommenders/OutKeywordRecommender.cs | C# | apache-2.0 | 1,676 |
package bootstrap
import (
"fmt"
"os"
"syscall"
"time"
"github.com/funkygao/gafka"
log "github.com/funkygao/log4go"
)
var (
logLevel log.Level
)
func SetupLogging(logFile, level, crashLogFile string) {
logLevel = log.ToLogLevel(level, log.TRACE)
log.SetLevel(logLevel)
log.LogBufferLength = 10 << 10 // def... | funkygao/gafka | cmd/actord/bootstrap/log.go | GO | apache-2.0 | 1,181 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi.messagebus.protocol;
import com.yahoo.document.BucketId;
import java.util.ArrayList;
import java.util.List;
public class DocumentListMessage extends VisitorMessage {
private Buc... | vespa-engine/vespa | documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/DocumentListMessage.java | Java | apache-2.0 | 1,329 |
# PBDictionary
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**vintage** | **NSString*** | | [optional]
**source** | **NSString*** | | [optional]
**_description** | **NSString*** | | [optional]
**countrySupportInfos** | [**NSArray<PBCountrySupport... | PitneyBowes/LocationIntelligenceSDK-IOS | docs/PBDictionary.md | Markdown | apache-2.0 | 532 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Javadoc API documentation for Fresco." />
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>
Or... | weiwenqiang/GitHub | expert/fresco/docs/javadoc/reference/com/facebook/drawee/drawable/OrientedDrawable.html | HTML | apache-2.0 | 79,322 |
// DO NOT EDIT. Make changes to com.kaviju.accesscontrol.model.KAUserProfileRole.java instead.
package com.kaviju.accesscontrol.model.base;
import com.webobjects.eoaccess.*;
import com.webobjects.eocontrol.*;
import com.webobjects.foundation.*;
import java.math.*;
import java.util.*;
import org.apache.log4j.Logger;
... | Kaviju/KAAccessControl | Sources/com/kaviju/accesscontrol/model/base/_KAUserProfileRole.java | Java | apache-2.0 | 11,274 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="pt">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Mon Jun 22 15:50:33 BRT 2015 -->
<title>PacketStreamer.pushMessageSync_args</title>
<meta name="date" content="2015-06-22">
<lin... | paulorvj/sdnvoip | doc/net/floodlightcontroller/packetstreamer/thrift/PacketStreamer.pushMessageSync_args.html | HTML | apache-2.0 | 36,722 |
namespace ToolSolution.Tools
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/... | zhaowh0518/toolkit | ToolSolution/Tools/MainForm.Designer.cs | C# | apache-2.0 | 10,445 |
kitchen-in-travis-native Cookbook [](https://travis-ci.org/zuazo/kitchen-in-travis-native)
=================================
Proof of concept cookbook to run [test-kitchen](http://kitchen.ci/) inside [Travis CI](https://travis-ci.or... | zuazo/kitchen-in-travis-native | README.md | Markdown | apache-2.0 | 12,589 |
<html>
<head>
<link rel="stylesheet" href="../../../../lib/hig.css">
<script type="text/javascript" src="../../../../lib/hig.js"></script>
<style>
body{
margin: 30px;
}
.box{
width: 200px;
height: 200px;
... | hyoshizumi/hig | packages/vanilla/src/basics/shadows/tests/tests-shadows.html | HTML | apache-2.0 | 1,945 |
<!DOCTYPE html>
<html lang="en">
<head>
<!--/* Each token will be replaced by their respective titles in the resulting page. */-->
<title layout:title-pattern="$DECORATOR_TITLE - $CONTENT_TITLE">searchahouse.com</title>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta n... | gustavoorsi/searchahouse.com | searchahouse-admin/src/main/webapp/WEB-INF/views/thymeleaf/fragments/header.html | HTML | apache-2.0 | 3,059 |
package china.jiangkai.tool;
public class DateTool
{
private static DateTool dt = null;
public static final int YEAR_BASE = 360;
public static final int MONTH_BASE = 30;
public static final int WEEK_BASE = 10;
public static final int JANUARY = 0;
public static final int FEBRUARY = 1;
public static... | tpxpascal/SuperBothel | SuperBothel/src/china/jiangkai/tool/DateTool.java | Java | apache-2.0 | 4,053 |
<?php
namespace Tests\Api;
use Chrisbjr\ApiGuard\Models\ApiKey;
use Sijot\Lease;
use Tests\TestCase;
use Illuminate\Foundation\Testing\{DatabaseMigrations, DatabaseTransactions};
/**
* Class LeaseTest
*
* @package Tests\Api
*/
class LeaseTest extends TestCase
{
use DatabaseMigrations, DatabaseTransactions;
... | Scouts-Sint-Joris/SIJOT-3.x | tests/Api/LeaseTest.php | PHP | apache-2.0 | 4,713 |
# Combretum bracteosum Engl. & Diels SPECIES
#### Status
ACCEPTED
#### According to
International Plant Names Index
#### Published in
H. G. A. Engler & K. A. E. Prantl, Nat. Pflanzenfam. 3(7):125. 1893
#### Original name
null
### Remarks
null | mdoering/backbone | life/Plantae/Magnoliophyta/Magnoliopsida/Myrtales/Combretaceae/Combretum/Combretum bracteosum/README.md | Markdown | apache-2.0 | 247 |
#!/bin/bash
# -*- mode:shell-script; coding:utf-8; -*-
#
# Created: <Wed Oct 21 16:58:12 2015>
# Last Updated: <2020-March-13 08:55:50>
#
payload="Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created eq... | apigee/iloveapis2015-hmac-httpsignature | hmac/client.sh | Shell | apache-2.0 | 2,204 |
---
title: "Queries"
nav-parent_id: sql
nav-pos: 1
---
<!--
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 Lic... | aljoscha/flink | docs/dev/table/sql/queries.md | Markdown | apache-2.0 | 60,883 |
-- Upgrade MetaStore schema from 3.2.0 to 4.0.0
-- HIVE-19416
ALTER TABLE "APP"."TBLS" ADD WRITE_ID bigint DEFAULT 0;
ALTER TABLE "APP"."PARTITIONS" ADD WRITE_ID bigint DEFAULT 0;
-- HIVE-20793
ALTER TABLE "APP"."WM_RESOURCEPLAN" ADD NS VARCHAR(128);
UPDATE "APP"."WM_RESOURCEPLAN" SET NS = 'default' WHERE NS IS NULL;
... | vineetgarg02/hive | standalone-metastore/metastore-server/src/main/sql/derby/upgrade-3.2.0-to-4.0.0.derby.sql | SQL | apache-2.0 | 4,318 |
---
layout: global
title: CREATE TABLE LIKE
displayTitle: CREATE TABLE LIKE
license: |
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 thi... | kevinyu98/spark | docs/sql-ref-syntax-ddl-create-table-like.md | Markdown | apache-2.0 | 3,256 |
package fr.ensicaen.simulator.model.mediator.listener;
import fr.ensicaen.simulator.model.mediator.Mediator;
public interface MediatorListener {
/**
* Invoquée lorsque le mediator est utilisé pour envoyer des donnees.
*/
public void onSendData(Mediator m, boolean response, String data);
}
| jmarginier/simulator | simulator/src/main/java/fr/ensicaen/simulator/model/mediator/listener/MediatorListener.java | Java | apache-2.0 | 302 |
import {CommandLineBinding} from "./CommandLineBinding";
import {
CommandInputArraySchema,
CommandInputEnumSchema,
CommandInputMapSchema,
CommandInputRecordSchema,
CommandInputSchema
} from "./CommandInputSchema";
import {Datatype} from "./Datatype";
export interface CommandInputRecordField {
n... | rabix/cwl-ts | src/mappings/d2sb/CommandInputRecordField.ts | TypeScript | apache-2.0 | 746 |
/*
* 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... | jaikiran/ant-ivy | test/java/org/apache/ivy/plugins/resolver/Maven2LocalTest.java | Java | apache-2.0 | 3,763 |
/*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | hotpads/datarouter | datarouter-aws-secrets-manager/src/main/java/io/datarouter/aws/secretsmanager/AwsSecretClient.java | Java | apache-2.0 | 6,382 |
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleapis/google-api-ruby-client | generated/google-apis-accesscontextmanager_v1beta/lib/google-apis-accesscontextmanager_v1beta.rb | Ruby | apache-2.0 | 626 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AccessToken.cs" company="DigitalGlobe">
// Copyright 2015 DigitalGlobe
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this... | DigitalGlobe/DGConnect-ESRI | NetworkConnections/AccessToken.cs | C# | apache-2.0 | 2,033 |
#!/usr/bin/env python
"""
Rules
for *.py files
* if the changed file is __init__.py, and there is a side-band test/ dir, then test the entire test/functional directory
the reason for this is that the init files are usually organizing collections
and those can affect many different apis if they break
* if ... | F5Networks/f5-common-python | devtools/bin/create-test-list.py | Python | apache-2.0 | 4,268 |
/*
* Copyright (C) 2012-2014 Open Source Robotics 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... | jonbinney/gazebo_ros_wrapper | plugins/SonarPlugin.hh | C++ | apache-2.0 | 1,669 |
package com.icooding.cms.service;
import java.util.List;
import com.icooding.cms.model.Forum;
public interface ForumService {
/**
* 搜索根节点
* @return
*/
public List<Forum> searchRoot();
public void save(Forum forum);
public Forum update(Forum forum);
public void delete(Forum forum);
public Forum f... | jaguar-zc/icooding | icooding-cms/icooding-blog/src/main/java/com/icooding/cms/service/ForumService.java | Java | apache-2.0 | 598 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.core;
import org.testng.annotations.Test;
import com.google.common.collect.ImmutableMap;
import com.opengamma.util.test.AbstractFudgeBuilderTestCase;
import c... | McLeodMoores/starling | projects/core/src/test/java/com/opengamma/core/MappingsFudgeBuilderTest.java | Java | apache-2.0 | 757 |
package bowtie.core.internal;
import bowtie.core.Result;
import bowtie.core.internal.util.MergedIterable;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
import java.util.*;
/**
* Created with IntelliJ IDEA.
* User: dan
* Date: 1/27/14
* Time: 9:02 PM
* To change this te... | dbaneman/bowtie | src/main/java/bowtie/core/internal/FSTable.java | Java | apache-2.0 | 2,586 |
// Copyright (c) 2021 Tigera, 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 applica... | projectcalico/calico | libcalico-go/lib/resources/node.go | GO | apache-2.0 | 1,449 |
/*
* -\-\-
* Spotify Apollo Slack Module
* --
* Copyright (C) 2013 - 2015 Spotify AB
* --
* 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/LICE... | rouzwawi/apollo | modules/slack/src/main/java/com/spotify/apollo/slack/Slack.java | Java | apache-2.0 | 956 |
//
// Copyright 2010-2017 Deveel
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | deveel/deveeldb.core | src/DeveelDb.Core/Data/Sql/Methods/IterateContext.cs | C# | apache-2.0 | 1,413 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Uses of Class org.jsimpledb.cli.cmd.AbstractKVCommand (Java Class Library API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title=... | tempbottle/jsimpledb | publish/reports/javadoc/org/jsimpledb/cli/cmd/class-use/AbstractKVCommand.html | HTML | apache-2.0 | 6,907 |
# draerika1
| ricaoandre/draerika1 | README.md | Markdown | apache-2.0 | 12 |
package de.kauz.starcitizen.informer.model;
import android.graphics.Bitmap;
/**
* An RSS item containing a title, link and imageUrl.
*
* @author MadKauz
*
*/
public class RssItem {
private String title;
private String link;
private String imgUrl;
private Bitmap img;
private String description;
private ... | MadKauz/starcitizeninfoclient | starCitizenInformer/src/main/java/de/kauz/starcitizen/informer/model/RssItem.java | Java | apache-2.0 | 1,622 |
const path = require('path');
const express = require('express');
const open = require('open');
const serveIndex = require('serve-index');
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
const product = process.argv[2];
var dirname = product === 'openlayers' ? 'ol' :... | SuperMap/iClient9 | build/server.js | JavaScript | apache-2.0 | 2,616 |
<?php
require_once dirname(dirname(__FILE__)) . '/base/Vbout.php';
require_once dirname(dirname(__FILE__)) . '/base/VboutException.php';
class ApplicationWS extends Vbout
{
protected function init()
{
$this->api_url = '/app/';
}
public function getBusinessInfo()
{
$result = array();
try {
$... | irajab/VboutAPI | src/services/ApplicationWS.php | PHP | apache-2.0 | 609 |
package com.github.xdcrafts.swarm.javaz.future;
import com.github.xdcrafts.swarm.javaz.common.applicative.IApplicative;
import com.github.xdcrafts.swarm.javaz.common.monad.IMonad;
import com.github.xdcrafts.swarm.javaz.common.tuple.Tuple;
import com.github.xdcrafts.swarm.javaz.option.IOption;
import com.github.xdcraft... | xdcrafts/swarm | src/main/java/com/github/xdcrafts/swarm/javaz/future/Future.java | Java | apache-2.0 | 6,432 |
/**
*
*/
package com.trc.process;
import java.util.List;
/**
* @author Ramesh Thalathoty
*
*/
public class Table {
private String name;
private String className;
private List<String> primaryColumns;
public String getClassName() {
return className;
}
public List<String> getPrimaryC... | trcdutt/DAOAutomation | src/main/java/com/trc/process/Table.java | Java | apache-2.0 | 1,303 |
__author__ = 'thauser'
from argh import arg
import logging
from pnc_cli import utils
from pnc_cli.swagger_client.apis import BuildconfigurationsetsApi
from pnc_cli.swagger_client.apis import BuildconfigsetrecordsApi
sets_api = BuildconfigurationsetsApi(utils.get_api_client())
bcsr_api = BuildconfigsetrecordsApi(util... | jianajavier/pnc-cli | pnc_cli/buildconfigsetrecords.py | Python | apache-2.0 | 1,916 |
/*
*
* * Copyright 2010-2016 OrientDB LTD (http://orientdb.com)
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE... | orientechnologies/orientdb | core/src/main/java/com/orientechnologies/orient/core/sql/operator/OQueryOperatorEquality.java | Java | apache-2.0 | 6,169 |
use ::Disruption;
use rustc_serialize::{Encodable};
use rustc_serialize::json::{self};
use std::sync::Arc;
use std::sync::atomic::Ordering;
use time::PreciseTime;
use hyper::Client;
pub fn disruption_to_usize(d: &Option<&(Disruption, usize)>) -> usize {
match *d {
None => 0,
Some(&(Disruption::Nod... | polyfractal/playground | hotcloud/src/util.rs | Rust | apache-2.0 | 1,189 |
# Setup Process / Steps Followed
Starting a new ActionHero project couldn't be easier. Let's start by
installing the command line tool
npm install -g actionhero
which you only need to do once. And we'll also make a folder for our
project:
mkdir thumbsvc
cd thumbsvc
actionhero generate
npm instal... | crrobinson14/sits | PROCESS.md | Markdown | apache-2.0 | 3,009 |
package com.example.quentin.expensemanager.Realm;
import android.content.Context;
import android.content.SharedPreferences;
import com.example.quentin.expensemanager.CurrencyConverter.CurrencyConverter;
import com.example.quentin.expensemanager.R;
import java.util.Date;
import io.realm.Realm;
import io.realm.RealmC... | quencheu96/Expense-Manager | ExpenseManager/app/src/main/java/com/example/quentin/expensemanager/Realm/RealmHelper.java | Java | apache-2.0 | 4,164 |
#include "NFCMasterNet_HttpJsonModule.h"
#include "NFComm/NFMessageDefine/NFProtocolDefine.hpp"
#if NF_PLATFORM == NF_PLATFORM_WIN
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <io.h>
#include <fcntl.h>
#ifndef S_ISDIR
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
#endif
#else
#include <sy... | xinst/NoahGameFrame | NFServer/NFMasterNet_HttpServerPlugin/NFCMasterNet_HttpJsonModule.cpp | C++ | apache-2.0 | 4,028 |
class Solution:
def maxProfit(self, prices, fee):
dp = [[-prices[0]], [0]]
for i in range(1, len(prices)):
dp[0].append(max(dp[0][i-1], dp[1][i-1]-prices[i]))
dp[1].append(max(dp[0][i-1]+prices[i]-fee, dp[1][i-1]))
return dp[1][-1]
print(Solution().maxProfit([1, 3, 2,... | zuun77/givemegoogletshirts | leetcode/python/714_best-time-to-buy-and-sell-stock-with-transaction-fee.py | Python | apache-2.0 | 335 |
<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use \yii\redactor\widgets\Redactor;
$this->title = 'Добавление записи';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-signup">
<?php if (Yii::$app->user->can('createPost')){ ?>
<h1><?= Html::encode($this->title) ?></h1>
<div clas... | askeroff/blogyii2 | backend/views/content/add.php | PHP | apache-2.0 | 1,488 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.