code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cloud.proto
package io.particle.firmwareprotos.ctrl.cloud;
public final class Cloud {
private Cloud() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAl... | spark/photon-tinker-android | firmwareprotos/src/main/java/io/particle/firmwareprotos/ctrl/cloud/Cloud.java | Java | apache-2.0 | 42,941 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
/* global ActiveXObject:false */
// Provides control sap.m.PDFViewer.
sap.ui.define([
"jquery.sap.global",
"./library",
"sap/u... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/m/PDFViewer-dbg.js | JavaScript | apache-2.0 | 19,266 |
var madson = (function () {
import "nxutils/generic/base";
import "./utils";
import "./write";
import "./read";
import "./preset";
function mEncode(input, options) {
var encoder = new EncodeBuffer(options);
encode(encoder, cloneDecycle(input));
return encoder.read();
... | arash16/madson | src/index.js | JavaScript | apache-2.0 | 901 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl;
import com.intellij.ide.RemoteDesktopService;
import com.intellij.ide.ui.UISettings;
import com.intellij.ide.ui.UISettingsListener;
import c... | dahlstrom-g/intellij-community | platform/platform-impl/src/com/intellij/openapi/wm/impl/ToolWindowsPane.java | Java | apache-2.0 | 40,236 |
package de.adihubba;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class ObjectUtils {
private static final int DEFAULT_DOUBLE_PRECISION = 8;
private static final double[] POWER_OF_TEN = new double[15];
static {
for (int i =... | adihubba/javafx-3d-surface-chart | src/main/java/de/adihubba/ObjectUtils.java | Java | apache-2.0 | 3,433 |
/**
* Copyright (C) 2015 Red Hat, 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... | jimmidyson/kubernetes-client | kubernetes-tests/src/test/java/io/fabric8/kubernetes/client/mock/DeploymentTest.java | Java | apache-2.0 | 10,860 |
/*
Copyright 2019 The Knative 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, soft... | knative/build | vendor/github.com/knative/pkg/client/injection/informers/authentication/v1alpha1/policy/fake/fake.go | GO | apache-2.0 | 1,229 |
package org.onetwo.common.data;
import java.io.Serializable;
/*****
* @author wayshall
*
*/
@SuppressWarnings("serial")
public class ValueWrapper<T> implements Serializable{
public static <E> ValueWrapper<E> wrap(E value){
return new ValueWrapper<E>(value);
}
public static <E> ValueWrapper<E> create(){
re... | wayshall/onetwo | core/modules/common/src/main/java/org/onetwo/common/data/ValueWrapper.java | Java | apache-2.0 | 602 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/SpacerFieldFactory.java | Java | apache-2.0 | 5,415 |
/*
* 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 wr... | googleapis/java-pubsublite | samples/snippets/src/test/java/pubsublite/QuickStartIT.java | Java | apache-2.0 | 15,069 |
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.gosu.ir.nodes;
import gw.lang.reflect.IMethodInfo;
import gw.lang.reflect.IType;
import gw.lang.reflect.IRelativeTypeInfo;
import gw.lang.reflect.IFunctionType;
import gw.lang.reflect.IConstructorInfo;
import gw.lang.ir.IRType;
import gw.lang.ir.IR... | gosu-lang/gosu-lang | gosu-core/src/main/java/gw/internal/gosu/ir/nodes/IRMethodFactory.java | Java | apache-2.0 | 4,548 |
namespace AppsAgainstHumanity.Server.UI
{
partial class expansionPackForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// ... | McSherry/AppsAgainstHumanity | Server/UI/expansionPackForm.Designer.cs | C# | apache-2.0 | 4,820 |
// Copyright (c) Keith D Gregory
//
// 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 ... | kdgregory/pathfinder | lib-spring/src/main/java/com/kdgregory/pathfinder/spring/context/SpringConstants.java | Java | apache-2.0 | 1,960 |
package ca.corefacility.bioinformatics.irida.ria.web.exceptions;
import java.util.Map;
/**
* Used by UI to contain internationalized constraint violations.
*/
public class UIConstraintViolationException extends Exception {
private final Map<String, String> errors;
public UIConstraintViolationException(Map<String... | phac-nml/irida | src/main/java/ca/corefacility/bioinformatics/irida/ria/web/exceptions/UIConstraintViolationException.java | Java | apache-2.0 | 432 |
/**
* Copyright 2008 - 2010
*
* 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... | cping/LGame | Java/Loon-Neo/src/loon/action/sprite/effect/FadeEffect.java | Java | apache-2.0 | 3,402 |
'use strict';
//https://evaluat-e-api.herokuapp.com
angular.module('evaluateApp').factory('Student',function($resource,$cookieStore,$http,url_api){
var interface_api = {
resource: $resource(url_api+'api/student/:id',{id:'@id','csrf_token' :$cookieStore._csrf, page: 1 },{
update: { method:'PUT'},
d... | IIC3143-Equipo1/angularJS | app/scripts/services/student.js | JavaScript | apache-2.0 | 1,586 |
/**
* Copyright (C) 2015 Fernando Cejas 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... | SeekingAlone/AndroidWheel | data/src/main/java/com/fernandocejas/android10/sample/data/cache/UserCacheImpl.java | Java | apache-2.0 | 6,364 |
package com.github.dockerjava.client.command;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Joiner;
/**
*
* @author marcus
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class TopContainerResponse {
@Jso... | dflemstr/docker-java | src/main/java/com/github/dockerjava/client/command/TopContainerResponse.java | Java | apache-2.0 | 983 |
<?php if(!defined('KIRBY')) exit ?>
# default Link
title: Link
pages: false
files: false
fields:
title:
label: Text
type: text
website:
label: Link
type: text
| SnorMagazine/Website | php/site/panel/blueprints/link.php | PHP | apache-2.0 | 181 |
/**
* Copyright 2013, Big Switch Networks, 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 requi... | Syn-Flow/Controller | src/main/java/net/floodlightcontroller/topology/TopologyManager.java | Java | apache-2.0 | 56,882 |
namespace Foundation.StateMachine
{
public class ValueStateTransition<TStateType, TInputType> : StateTransition<TStateType, TInputType>
{
public ValueStateTransition(TStateType fromState, TStateType toState, TInputType input)
{
FromState = fromState;
ToState = toSt... | DavidMoore/Foundation | Code/Foundation/StateMachine/ValueStateTransition.cs | C# | apache-2.0 | 759 |
package com.cognizant.cognizantits.qcconnection.qcupdation;
import com4j.DISPID;
import com4j.IID;
import com4j.VTID;
@IID("{DDE517F0-AF73-4327-A1BD-403E6A047B0A}")
public abstract interface IHierarchySupportList
extends IFactoryList
{
@DISPID(12)
@VTID(19)
public abstract boolean isInFilter(int paramInt);
}
... | CognizantQAHub/Cognizant-Intelligent-Test-Scripter | QcConnection/src/main/java/com/cognizant/cognizantits/qcconnection/qcupdation/IHierarchySupportList.java | Java | apache-2.0 | 456 |
/*
* Copyright 2010-2016 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 "l... | mhurne/aws-sdk-java | aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/transform/DeleteIPSetRequestMarshaller.java | Java | apache-2.0 | 3,111 |
package com.adeptions.clarguments.validators;
import com.adeptions.clarguments.ArgumentName;
import com.adeptions.clarguments.BadArgumentException;
import com.adeptions.clarguments.arguments.Argument;
import static com.adeptions.clarguments.PredefinedBadArgumentReasons.MULTIPLE_ARGUMENT_NOT_ALLOWED;
public class Dis... | Adeptions/CLArguments | src/main/java/com/adeptions/clarguments/validators/DisallowMultiplesValueValidator.java | Java | apache-2.0 | 893 |
package apple.mapkit;
import java.io.*;
import java.nio.*;
import java.util.*;
import com.google.j2objc.annotations.*;
import com.google.j2objc.runtime.*;
import com.google.j2objc.runtime.block.*;
import apple.audiotoolbox.*;
import apple.corefoundation.*;
import apple.coregraphics.*;
import apple.coreservices.*;
imp... | Sellegit/j2objc | runtime/src/main/java/apple/mapkit/MKOverlayLevel.java | Java | apache-2.0 | 769 |
# Copyright (c) 2012-2015 Snowplow Analytics Ltd. All rights reserved.
#
# This program is licensed to you under the Apache License Version 2.0,
# and you may not use this file except in compliance with the Apache License Version 2.0.
# You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/li... | haensel-ams/snowplow | 4-storage/storage-loader/lib/snowplow-storage-loader.rb | Ruby | apache-2.0 | 1,676 |
/*
* 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-robomaker/source/model/RobotSoftwareSuite.cpp | C++ | apache-2.0 | 2,203 |
"""Chessboard: Describe an application once, deploy and manage it anywhere.
Chessboard includes utilities for modeling application topologies and
deploying/managing applications in a provider-agnostic way.
"""
import setuptools
VERSION = '0.1.0'
setuptools.setup(
name='chessboard',
version=VERSION,
mai... | larsbutler/chessboard | setup.py | Python | apache-2.0 | 1,395 |
/*
* #%L
* mosaic-platform-core
* %%
* Copyright (C) 2010 - 2013 Institute e-Austria Timisoara (Romania)
* %%
* 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.apac... | mosaic-cloud/mosaic-java-platform | drivers-core/src/main/java/eu/mosaic_cloud/drivers/exceptions/NullCompletionCallback.java | Java | apache-2.0 | 2,985 |
/**
* Created by yang on 14/12/8.
*/
var SimpleHotCSV = require('./index').SimpleHotCSV;
var HotCSV = require('./index').HotCSV;
var path = require('path');
var hostCityList = path.join(__dirname,'./whiteCityList.csv');
var hotCity1 = new SimpleHotCSV(hostCityList);
hotCity1.init(function(){
setInterval(function... | gastrodia/hot-csv | test.js | JavaScript | apache-2.0 | 619 |
require_relative '../../version2_0'
require_relative '../../relationship'
module BELParser
module Language
module Version2_0
module Relationships
# BiomarkerFor: +A biomarkerFor P+ - For term A and process term
# P, +A biomarkerFor P+ indicates that changes in or detection
# of A ... | nbargnesi/bel-parser | lib/bel_parser/language/version2_0/relationships/biomarker_for.rb | Ruby | apache-2.0 | 1,152 |
package cn.purchasenear.v1.goods.domain;
public class Brand {
}
| runfriends/PurchaseNear | purchasenear/purchasenear-goods/src/main/java/cn/purchasenear/v1/goods/domain/Brand.java | Java | apache-2.0 | 66 |
#!/bin/env ruby
my_rand = rand(100)
attempts = 10
print "Please enter your name: "
# read the inpute and remove trailing 'newline'
gamer = gets.chomp
while attempts >= 1
puts "#{gamer} - You have #{attempts} attempts left"
puts "Please make your choice"
user_choice = gets.to_i
if user_choice > my... | yprokule/learn-ruby | random_number.rb | Ruby | apache-2.0 | 709 |
/*
* Copyright 2015 Torridity.
*
* 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... | Patschke/dsworkbench | Core/src/main/java/de/tor/tribes/ui/components/FillingLabel.java | Java | apache-2.0 | 2,819 |
package com.jacksen.java.leetcode;
import java.util.Stack;
/**
* 字符串翻转
*
* @author jacksen
*
*/
public class ReverseString {
public static void main(String[] args) {
System.out.println(reverseString7("yansen"));
}
/**
* 时间复杂度 o(n)
*
* @param s
* @return
*/
public static String reverseString(S... | crazy1235/BaseJavaProject | BaseJavaProject/src/com/jacksen/java/leetcode/ReverseString.java | Java | apache-2.0 | 2,437 |
// 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-2.0
//
// Unless required by applic... | iantalarico/google-cloud-dotnet | apis/Google.Cloud.BigQuery.V2/Google.Cloud.BigQuery.V2.Tests/ListJobsOptionsTest.cs | C# | apache-2.0 | 1,544 |
package phoswald.annotation.printer.annotations;
public enum MyEnum {
VALUE_1, VALUE_2
}
| phoswald/annotation-printer | src/test/java/phoswald/annotation/printer/annotations/MyEnum.java | Java | apache-2.0 | 94 |
/*
* 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 ... | julianhyde/calcite | core/src/main/java/org/apache/calcite/rex/RexSubQuery.java | Java | apache-2.0 | 5,459 |
package com.dgcy.http.msg;
import com.google.gson.annotations.Expose;
import com.dgcy.http.base.AbstractResponseBody;
import com.dgcy.http.base.AbstractResponseMsg;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class INF1000_Res extends AbstractResponseMsg<INF1000_Res.INF100... | yasenagat/AndroidTest | VolleyTest/src/main/java/com/dgcy/http/msg/INF1000_Res.java | Java | apache-2.0 | 4,492 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.unsignedlong;
import org.elasticsearch.painl... | scorpionvicky/elasticsearch | x-pack/plugin/mapper-unsigned-long/src/main/java/org/elasticsearch/xpack/unsignedlong/DocValuesWhitelistExtension.java | Java | apache-2.0 | 1,850 |
// 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 in ... | googleapis/nodejs-billing-budgets | src/index.ts | TypeScript | apache-2.0 | 1,081 |
# Copyright 2011 Tsutomu Uchino
#
# 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 agree... | hanya/MRI | pythonpath/mytools_Mri/ui/tools.py | Python | apache-2.0 | 2,328 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/AdminDisableProviderForUserResult.java | Java | apache-2.0 | 2,427 |
/*
* #%L
* package-info.java - mongodb-async-driver - Allanbank Consulting, Inc.
* %%
* Copyright (C) 2011 - 2014 Allanbank Consulting, 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 Li... | allanbank/mongodb-async-driver | src/main/java/com/allanbank/mongodb/client/metrics/basic/package-info.java | Java | apache-2.0 | 1,122 |
// JavaScript Document
function run_timer()
{
var today = new Date();
var ndate=today.toString(); //April 23, 2009, 02:04:25 pm
ndate=ndate.split('GMT');
document.getElementById("TimeDiv").style.border='transparent';
document.getElementById("TimeDiv").innerHTML=ndate[0];
setTimeout(run_timer,10... | ankuradhey/dealtrip | js/general.js | JavaScript | apache-2.0 | 7,612 |
/* Copyright 2005-2015 Alfresco Software, Ltd.
*
* 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 l... | marcus-nl/flowable-engine | modules/flowable-ui-admin/flowable-ui-admin-app/src/main/webapp/scripts/process-instance-controllers.js | JavaScript | apache-2.0 | 29,675 |
/*
Copyright 2006-2017 Cryptany, 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... | erupakov/legacy | Core/Cryptany.Core.ConfigOM/CashChannel.cs | C# | apache-2.0 | 979 |
/*
* Copyright 2010-2013 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 "l... | emcvipr/dataservices-sdk-dotnet | AWSSDK/Amazon.SimpleWorkflow/Model/Internal/MarshallTransformations/StartWorkflowExecutionRequestMarshaller.cs | C# | apache-2.0 | 7,086 |
/*
* 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, software
* distribu... | metatron-app/metatron-discovery | discovery-server/src/main/java/app/metatron/discovery/domain/datasource/DataSourceFilterRequest.java | Java | apache-2.0 | 2,116 |
package bincache
import (
"archive/zip"
"bytes"
"crypto/sha256"
"encoding/hex"
"io"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strings"
)
// Download a file from url and check with a sha1
func Download(url string) (string, error) {
path, err := os.UserCacheDir()
if err != nil {
return "", err
}
path... | EngineerBetter/concourse-up | util/bincache/bincache.go | GO | apache-2.0 | 1,871 |
/*
* Copyright 2005-2017 Dozer 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 law or ag... | STRiDGE/dozer | core/src/test/java/org/dozer/DozerInitializerTest.java | Java | apache-2.0 | 2,608 |
package algorithm.leet_76_90;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by songheng on 4/18/16.
*/
public class Subsets_78 {
public List<List<Integer>> subsets(int[] nums) {
List<List<Integer>> res = new ArrayList<>();
Arrays.sort(nums);
if... | songshu198907/LeetPractise | src/main/java/algorithm/leet_76_90/Subsets_78.java | Java | apache-2.0 | 1,032 |
import("etherpad.log");
import("plugins.openingDesign.hooks");
function openingDesignInit() {
this.hooks = ['modals', 'docbarItemsPad'];
this.description = 'openingDesign';
this.docbarItemsPad = hooks.docbarItemsPad;
this.modals = hooks.modals;
this.install = install;
this.uninstall = uninstall;
}
function inst... | OpeningDesign/SketchSpace | etherpad/src/plugins/openingDesign/main.js | JavaScript | apache-2.0 | 437 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/incr/mmpe/lib/main.js | JavaScript | apache-2.0 | 2,139 |
package v1
import (
kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api/v1"
)
// ProjectList is a list of Project objects.
type ProjectList struct {
kapi.TypeMeta `json:",inline"`
kapi.ListMeta `json:"metadata,omitempty"`
Items []Project `json:"items"`
}
// These are internal finalizer values to Orig... | hingstarne/origin | pkg/project/api/v1/types.go | GO | apache-2.0 | 1,629 |
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | MBoustani/climate | ocw/esgf/main.py | Python | apache-2.0 | 3,986 |
package org.schema.api.model.thing.creativeWork.article.newsArticle;
public class ReviewNewsArticle extends NewsArticle
{
} | omindra/schema_org_java_api | core_with_extensions/src/main/java/org/schema/api/model/thing/creativeWork/article/newsArticle/ReviewNewsArticle.java | Java | apache-2.0 | 124 |
/**
*
* @author greg (at) myrobotlab.org
*
* This file is part of MyRobotLab (http://myrobotlab.org).
*
* MyRobotLab is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version... | DarkRebel/myrobotlab | src/org/myrobotlab/control/ProxyGUI.java | Java | apache-2.0 | 2,022 |
class Timecop
# A data class for carrying around "time movement" objects. Makes it easy to keep track of the time
# movements on a simple stack.
class TimeStackItem #:nodoc:
attr_reader :mock_type
def initialize(mock_type, *args)
raise "Unknown mock_type #{mock_type}" unless [:freeze, :travel].... | masukomi/mobtvse | vendor/bundle/gems/timecop-0.4.5/lib/timecop/time_stack_item.rb | Ruby | apache-2.0 | 3,600 |
from datetime import datetime
from bson import ObjectId
class SettingsService(object):
def __init__(self, db):
self.db = db
self.settings = db.settings_collection
self._id = ObjectId("5bbbaee7bacf833c1203d7b3")
def save(self, item):
item['_id'] = self._id
item['create... | cackharot/fbeazt | src/foodbeazt/service/SettingsService.py | Python | apache-2.0 | 491 |
/*
* Copyright (c) 2010-2015 Evolveum
*
* 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... | gureronder/midpoint | gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/resources/PageAdminResources.java | Java | apache-2.0 | 7,479 |
import { of } from 'rxjs';
import { CanActivate } from '@angular/router';
import { Injectable } from '@angular/core';
import { DomainService } from 'app/services/domain/domain.service';
import { GeneralModalService } from 'app/services/general-modal/general-modal.service';
import { MessageModal } from 'app/models/messa... | BVier/Taskana | web/src/app/guards/domain.guard.ts | TypeScript | apache-2.0 | 907 |
# vim: et
require_relative 'base'
module Tui module Model
# Model for floating point number objects.
class Float < Base
# Constructor.
public
def initialize ( label, value = 0.0, ro = false )
super( label, value, ro )
if not ro
self.value = value # validation step
end
... | giorno/tui | src/model/float.rb | Ruby | apache-2.0 | 656 |
/**
*
*/
package net.java.dev.blog.action;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.java.dev.blog.security.ui.SecurityContextUtil;
import net.java.dev.blog.service.Blog;
import net.java.dev.blog.service.... | jeffyu/blogging | ims-web/src/main/java/net/java/dev/blog/action/BlogManagerController.java | Java | apache-2.0 | 2,522 |
import React from 'react'
import PropTypes from 'prop-types'
import Immutable from 'immutable'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import NavigationPrompt from 'react-router-navigation-prompt'
import Switch from 'react-bootstrap-switch'
import {
generateUnique,
templateN... | mareklibra/userportal | src/components/VmDialog/index.js | JavaScript | apache-2.0 | 28,260 |
/* Copyright 2016 Sven van der Meer <vdmeer.sven@mykolab.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 r... | vdmeer/skb-java-interfaces | src/main/java/de/vandermeer/skb/interfaces/coin/TailsErrorWithErrors.java | Java | apache-2.0 | 2,493 |
package com.prom.by.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import android.os.Parcel;
import android.os.Parcelable;
@Element(name = "order")
publ... | cliffroot/prom.by | project/src/com/prom/by/model/Order.java | Java | apache-2.0 | 6,736 |
package io.github.lijunguan.imgselector.model.entity;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* Created by lijunguan on 2016/4/8
* email: lijunguan199210@gmail.com
* blog : https://lijunguan.github.io
*/
public class AlbumFolder implements Parcelable {
/**
* 相册... | lijunguan/AlbumSelector | imageseletor/src/main/java/io/github/lijunguan/imgselector/model/entity/AlbumFolder.java | Java | apache-2.0 | 2,209 |
/**
* Copyright 2017 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... | src-code/amphtml | extensions/amp-analytics/0.1/analytics-root.js | JavaScript | apache-2.0 | 15,094 |
package com.gudnam.bringluck.common;
import java.util.ArrayList;
import android.support.v4.app.FragmentActivity;
public class BLFragmentActivity extends FragmentActivity{
public static ArrayList<FragmentActivity> frgActList = new ArrayList<FragmentActivity>();
}
| gudnam/bringluck | bringluck/src/com/gudnam/bringluck/common/BLFragmentActivity.java | Java | apache-2.0 | 282 |
package com.coderfun.library;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
su... | coderFun/RadarView | library/src/androidTest/java/com/coderfun/library/ApplicationTest.java | Java | apache-2.0 | 351 |
class Addindex < ActiveRecord::Migration
def self.up
add_index :assignments, [:assign_date,:status]
add_index :assignments, :title
end
def self.down
remove_index :assignments, [:assign_date,:status]
remove_index :assignments, :title
end
end
| xiviwo/config_track | db/migrate/20111013080753_addindex.rb | Ruby | apache-2.0 | 260 |
/*
* Meego-handset-video is an video player for MeeGo handset.
* Copyright (C) 2010, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
#include <QProce... | dudochkin-victor/handset-video | src/xdgpath.cpp | C++ | apache-2.0 | 1,217 |
package ar.edu.ungs.commons.exception;
public class JdbcBatchException extends Exception {
private static final long serialVersionUID = 1;
private String codigoDeError;
/**
* Constructor sin Argumentos
*/
public JdbcBatchException() {
super();
}
/**
* Contruct... | alefherrera/sisalud | SiSaludSRL/src/main/java/ar/edu/ungs/commons/exception/JdbcBatchException.java | Java | apache-2.0 | 2,039 |
define({
"map": {
"error": "无法创建地图",
"licenseError": {
"message": "您的帐户无权使用非公共的可配置应用程序。 请联系您的组织管理员为您分配包含基本应用程序或附加基本应用程序许可的用户类型。",
"title": "未经许可"
}
},
"viewer": {
"content_title": "过滤器",
"button_text": "应用",
"filterInstructions": "通过指定值来过滤图层。",
"filterOr": "以下任意表达式必须为 true。... | Esri/InteractiveFilter | js/nls/zh-CN/resources.js | JavaScript | apache-2.0 | 1,195 |
<?php
/**
* Created by PhpStorm.
* User: yaolihui
* Date: 2018/2/11
* Time: 10:46
*/
namespace Report\Controller;
class ApiController extends WebInfoController {
public function index(){
//定义可以查的平台
$branch=['全部','保险服务','安鑫保','车险APP','易鑫车服','微信','第三方'];
//接收传递参数
$_SESSION['branc... | yaolihui129/Xinda | Apps/Report/Controller/ApiController.class.php | PHP | apache-2.0 | 1,723 |
package com.zlate87.sample_transport_app;
import android.annotation.TargetApi;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.v7.widget.RecyclerView;
import... | Zlate87/sample-transport-app | app/src/androidTest/java/com/zlate87/sample_transport_app/CustomMatchers.java | Java | apache-2.0 | 5,643 |
package net.rubygrapefruit.platform.terminal;
/**
* Receives terminal input.
*/
public interface TerminalInputListener {
enum Key {
// Order is significant, used by Windows native code
Enter,
UpArrow,
DownArrow,
LeftArrow,
RightArrow,
Home,
End,
... | adammurdoch/native-platform | native-platform/src/main/java/net/rubygrapefruit/platform/terminal/TerminalInputListener.java | Java | apache-2.0 | 723 |
/*
* Copyright 2012 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 ap... | filip26/api-machine | src/test/java/org/sprintapi/api/http/servlet/todo/action/TodoReadItemAction.java | Java | apache-2.0 | 1,529 |
#
# Cookbook Name:: ratpoison
# Recipe:: default
#
# Copyright 2014, Shuberg Philis B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | miguelaferreira/ratpoison | recipes/default.rb | Ruby | apache-2.0 | 702 |
using System.Text;
using Google.GData.Client;
namespace Google.GData.ContentForShopping
{
/// <summary>
/// A subclass of FeedQuery, to create a ContentForShopping managedaccounts
/// query URI. Provides public properties that describe the different
/// aspects of the URI, as well as a composite URI.
... | jonny-novikov/google-gdata | src/contentforshopping/managedaccountsquery.cs | C# | apache-2.0 | 1,341 |
/* 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, software
* distribut... | marcus-nl/flowable-engine | modules/flowable-cmmn-json-converter/src/main/java/org/flowable/cmmn/editor/json/converter/CaseTaskJsonConverter.java | Java | apache-2.0 | 3,292 |
//===---------- MIRVRegNamerUtils.cpp - MIR VReg Renaming Utilities -------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | GPUOpen-Drivers/llvm | lib/CodeGen/MIRVRegNamerUtils.cpp | C++ | apache-2.0 | 11,427 |
package eu.leads.processor.common.infinispan;
import org.infinispan.commons.util.concurrent.NotifyingFuture;
import java.util.Iterator;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.ExecutionException;
/**
* Created by vagvaz on 19/05/15.
*/
public class ClearCompletedRunnable extends T... | leads-project/multicloud-mr | common/src/main/java/eu/leads/processor/common/infinispan/ClearCompletedRunnable.java | Java | apache-2.0 | 1,476 |
/*
* Copyright 2015 "Henry Tao <hi@henrytao.me>"
*
* 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 ... | eneim/smooth-app-bar-layout | sample/src/main/java/me/henrytao/smoothappbarlayoutdemo/fragment/DummyNestedScrollViewFragment.java | Java | apache-2.0 | 3,280 |
require 'spec_helper'
describe file('/etc/scylla/scylla.yaml') do
it { should be_file }
its(:content_as_yaml) do
should include('listen_address' => '123.135.147.159')
end
its(:content_as_yaml) do
should include('rpc_address' => '0.0.0.0')
end
its(:content_as_yaml) do
should include('broadcast_r... | dice-project/DICE-Chef-Repository | cookbooks/scylla/test/integration/config/serverspec/config_spec.rb | Ruby | apache-2.0 | 1,055 |
using System;
using System.IO;
using FluentAssertions;
using JetBrains.Annotations;
using TestableFileSystem.Fakes.Builders;
using TestableFileSystem.Interfaces;
using Xunit;
namespace TestableFileSystem.Fakes.Tests.Specs.DiskSpace
{
public sealed class InsufficientSpaceSpecs
{
[Fact]
private ... | bkoelman/TestableFileSystem | src/Fakes.Tests/Specs/DiskSpace/InsufficientSpaceSpecs.cs | C# | apache-2.0 | 11,685 |
package com.zandero.rest;
import com.zandero.rest.test.*;
import com.zandero.rest.test.json.Dummy;
import com.zandero.utils.extra.JsonUtils;
import io.vertx.core.buffer.Buffer;
import io.vertx.ext.web.Router;
import io.vertx.junit5.*;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.ExtendWith;
... | zandero/rest.vertx | src/test/java/com/zandero/rest/RouteRegistrationTest.java | Java | apache-2.0 | 2,744 |
/*
* SHS -- The Scalable Hyperlink Store
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | MicrosoftResearch/SHS | ASP/ASP.cs | C# | apache-2.0 | 5,581 |
package ca.uhn.fhir.rest.server;
/*
* #%L
* HAPI FHIR - Core Library
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* 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
* ... | bjornna/hapi-fhir | hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/RestfulServerUtils.java | Java | apache-2.0 | 25,340 |
/***
Copyright (c) 2012-2015 CommonsWare, 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 w... | janzoner/cw-omnibus | MapsV2/Popups/app/src/main/java/com/commonsware/android/mapsv2/popups/AbstractMapActivity.java | Java | apache-2.0 | 5,111 |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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... | apixandru/intellij-community | java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodProcessor.java | Java | apache-2.0 | 90,417 |
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | wooga/airflow | airflow/ti_deps/deps/trigger_rule_dep.py | Python | apache-2.0 | 10,691 |
/*
* Copyright 2010-2014 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 "l... | rafd123/aws-sdk-net | sdk/src/Services/EC2/Generated/Model/RouteTableAssociation.cs | C# | apache-2.0 | 3,312 |
package io.codearcs.candlestack.aws.rds;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import io.codearcs.candlestack.CandlestackPropertiesException;
import io.codearcs.candlestack.MetricsReaderWriter;
import io.codearcs.candlestack.aws.CloudWatchStatistic;
import io.codearcs.candlestack.aw... | CodeArcsInc/candlestack | src/main/java/io/codearcs/candlestack/aws/rds/RDSCloudWatchMetric.java | Java | apache-2.0 | 5,836 |
# 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, software
# distributed under t... | stackforge/python-openstacksdk | openstack/baremetal_introspection/v1/_proxy.py | Python | apache-2.0 | 7,038 |
/*
** Copyright 2011, 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 b... | indashnet/InDashNet.Open.UN2000 | android/frameworks/base/services/java/com/android/server/accessibility/TouchExplorer.java | Java | apache-2.0 | 81,944 |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | jentfoo/aws-sdk-java | aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/VpcSecurityGroupMembership.java | Java | apache-2.0 | 5,374 |
<?php namespace DMA\Friends\API\Resources;
use Response;
use Request;
use Validator;
use DMA\Friends\Models\Rating;
use DMA\Friends\Models\Activity;
use DMA\Friends\Classes\API\BaseResource;
use DMA\Friends\API\Transformers\UserProfileTransformer;
use RainLab\User\Models\User;
class RatingResource extends BaseResourc... | DenverArtMuseum/OctoberFriends | api/resources/RatingResource.php | PHP | apache-2.0 | 12,864 |
/*
* Copyright (c) 2013 Mike Heath. 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 re... | cloudfoundry-community/java-nats | client/src/main/java/nats/codec/ServerFrameEncoder.java | Java | apache-2.0 | 3,415 |