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 |
|---|---|---|---|---|---|
/*
* Copyright (C) 2008 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 app... | craigacgomez/flaming_monkey_packages_apps_Email | src/com/android/email/provider/AttachmentProvider.java | Java | apache-2.0 | 13,480 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 20... | inbloom/secure-data-service | tools/data-tools/src/org/slc/sli/test/edfi/entitiesR1/Program.java | Java | apache-2.0 | 6,094 |
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/awt/geom/Path2D_Float_CopyIterator.hpp>
extern void unimplemented_(const char16_t* name);
java::awt::geom::Path2D_Float_CopyIterator::Path2D_Float_CopyIterator(const ::default_init_tag&)
: super(*static... | pebble2015/cpoi | ext/stub/java/awt/geom/Path2D_Float_CopyIterator-stub.cpp | C++ | apache-2.0 | 1,586 |
/*
* Copyright 2017 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 ... | IHTSDO/snow-owl | commons/com.b2international.index/src/com/b2international/index/es/AwaitPendingTasks.java | Java | apache-2.0 | 1,558 |
package jwt4j.checkers;
import com.google.gson.JsonObject;
import jwt4j.TokenChecker;
import jwt4j.exceptions.InvalidIssuerException;
import static jwt4j.JWTConstants.ISSUER;
public class IssuerChecker implements TokenChecker
{
private final String issuer;
public IssuerChecker(final String issuer)
{
... | milpol/jwt4j | src/main/java/jwt4j/checkers/IssuerChecker.java | Java | apache-2.0 | 614 |
/**
* A TabPanel osztály egységbe foglal több Panel-t, és segíti azok kezelését.
*
*
* @author Gabor Kokeny
*/
class TabPanel extends Container {
/**
* Ez a változó tárolja az aktív index értékét, amely egy pozitív egész szám.
*
* @property {number} activeTabIndex
*/
private activ... | Gubancs/TypeUI | typeui-framework/src/main/resources/typescript/ui/TabPanel.ts | TypeScript | apache-2.0 | 4,557 |
package com.bnsantos.movies.model;
import com.j256.ormlite.field.DatabaseField;
/**
* Created by bruno on 14/11/14.
*/
public class Links {
@DatabaseField(generatedId = true, columnName = "id")
private Integer id;
@DatabaseField()
private String self;
@DatabaseField()
private String alternat... | bnsantos/android-javarx-example | app/src/main/java/com/bnsantos/movies/model/Links.java | Java | apache-2.0 | 1,305 |
package com.mytian.lb.bean.push;
import com.core.openapi.OpenApiBaseRequestAdapter;
import com.core.util.StringUtil;
import java.util.HashMap;
import java.util.Map;
public class UpdateChannelidParam extends OpenApiBaseRequestAdapter {
private String uid;
private String token;
private Str... | tengbinlive/aibao_demo | app/src/main/java/com/mytian/lb/bean/push/UpdateChannelidParam.java | Java | apache-2.0 | 1,799 |
/* 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... | robsoncardosoti/flowable-engine | modules/flowable-form-rest/src/main/java/org/flowable/rest/form/FormRestUrls.java | Java | apache-2.0 | 4,399 |
package weka.classifiers.lazy.AM.label;
import org.hamcrest.core.StringContains;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import weka.classifiers.lazy.AM.TestUtils;
import weka.core.Instances;
/**
* Test aspects of {@link IntLabeler} that are not applicable to other
*... | garfieldnate/Weka_AnalogicalModeling | src/test/java/weka/classifiers/lazy/AM/label/IntLabelerTest.java | Java | apache-2.0 | 877 |
/*
* Copyright 2015 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | MatrixFrog/closure-compiler | src/com/google/javascript/jscomp/Es6RewriteDestructuring.java | Java | apache-2.0 | 19,873 |
<?php
/**
* ZonecityController
* @var $this ZonecityController
* @var $model OmmuZoneCity
* @var $form CActiveForm
* version: 1.1.0
* Reference start
*
* TOC :
* Index
* Suggest
* Manage
* Add
* Edit
* RunAction
* Delete
* Publish
*
* LoadModel
* performAjaxValidation
*
* @author Putra Sudaryanto <... | oMMuCo/HPTT-FT-UGM-Official-Website | protected/controllers/ZonecityController.php | PHP | apache-2.0 | 10,950 |
/*
* Copyright 2012-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-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoPutMedia.java | Java | apache-2.0 | 10,008 |
/*
* 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 ... | torakiki/sambox | src/test/java/org/sejda/sambox/pdmodel/graphics/optionalcontent/TestOptionalContentGroups.java | Java | apache-2.0 | 18,662 |
require_relative '../../../../test_helper'
require_relative '../endpoint_test_helper'
class CommentsTest < Minitest::Test
extend Smartsheet::Test::EndpointHelper
attr_accessor :mock_client
attr_accessor :smartsheet_client
def category
smartsheet_client.sheets.comments
end
def self.endpoints
[
... | smartsheet-platform/smartsheet-ruby-sdk | test/unit/smartsheet/endpoints/sheets/comments_test.rb | Ruby | apache-2.0 | 1,724 |
/*
* Copyright 2002-2015 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... | QBNemo/spring-mvc-showcase | src/main/java/org/springframework/web/servlet/view/RedirectView.java | Java | apache-2.0 | 22,944 |
#include <sgx_fcntl_util.h>
#include <sgx_ocall_util.h>
#include <sgx_thread.h>
INIT_LOCK(ocall_open2);
INIT_LOCK(ocall_creat);
INIT_LOCK(ocall_openat2);
INIT_LOCK(ocall_fcntl1);
INIT_LOCK(ocall_fcntl2);
INIT_LOCK(ocall_fcntl3);
int sgx_wrapper_open(const char *pathname, int flags, ...)
{
va_list ap;
mode_t ... | shwetasshinde24/Panoply | case-studies/h2o/src/H2oEnclave/IO/sgx_fcntl.cpp | C++ | apache-2.0 | 2,173 |
/*
* 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-ssmincidents/src/main/java/com/amazonaws/services/ssmincidents/model/ListTimelineEventsResult.java | Java | apache-2.0 | 6,834 |
/*
* 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
* d... | OSEHRA/ISAAC | core/api/src/main/java/sh/isaac/api/Util.java | Java | apache-2.0 | 3,905 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/shared_criterion.proto
package com.google.ads.googleads.v10.resources;
public interface SharedCriterionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Shared... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/SharedCriterionOrBuilder.java | Java | apache-2.0 | 8,879 |
package com.example;
/**
* Created by hilmiat on 7/29/17.
*/
public class DemoConditional {
public static char getGrade(int nilai){
char grade = 'D';
if(nilai > 85){
grade = 'A';
}else if(nilai > 69){
grade = 'B';
}else if(nilai >= 60){
grade =... | hilmiat/NF_android_complete | Pertemuan2/pertemuan_dua/src/main/java/com/example/DemoConditional.java | Java | apache-2.0 | 707 |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | sijie/bookkeeper | bookkeeper-server/src/test/java/org/apache/bookkeeper/client/BookKeeperTest.java | Java | apache-2.0 | 49,996 |
<?php
class Template
{
protected $template;
protected $variables = array();
public function __construct($template)
{
$this->template = $template;
}
public function __get($key)
{
return $this->variables[$key];
}
public function __set($key, $value)
{
$th... | efetepe/magicdocumentation | framework/php/Template.php | PHP | apache-2.0 | 666 |
/*!
* 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.
*/
// Provides the Design Time Metadata for the sap.uxap.ObjectPageLayout control
sap.ui.define([],
function() {
"use strict";
retur... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/uxap/ObjectPageLayout.designtime-dbg.js | JavaScript | apache-2.0 | 1,307 |
# frozen_string_literal: true
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | googleapis/gapic-generator-ruby | shared/output/cloud/showcase/test/google/showcase/v1beta1/echo_operations_test.rb | Ruby | apache-2.0 | 10,911 |
const Long = require('long');
const User = require('./User');
const Role = require('./Role');
const Emoji = require('./Emoji');
const Presence = require('./Presence').Presence;
const GuildMember = require('./GuildMember');
const Constants = require('../util/Constants');
const Collection = require('../util/Collection');... | aemino/discord.js | src/structures/Guild.js | JavaScript | apache-2.0 | 34,442 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
import six
import logging
import filecmp
import os
import re
import sys
import uuid
import json
import time
from nose.plug... | zimingd/synapsePythonClient | tests/integration/test_command_line_client.py | Python | apache-2.0 | 36,272 |
/*
* 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 ... | keith-turner/accumulo | core/src/main/java/org/apache/accumulo/core/metadata/TabletFileUtil.java | Java | apache-2.0 | 1,705 |
package com.codefactoring.android.backlogtracker.sync.fetchers;
import android.util.Log;
import com.codefactoring.android.backlogapi.BacklogApiClient;
import com.codefactoring.android.backlogapi.models.User;
import com.codefactoring.android.backlogtracker.sync.models.BacklogImage;
import com.codefactoring.android.bac... | scarrupt/Capstone-Project | app/src/main/java/com/codefactoring/android/backlogtracker/sync/fetchers/UserDataFetcher.java | Java | apache-2.0 | 3,378 |
/*
* Copyright 2010-2011 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... | apetresc/aws-sdk-for-java-on-gae | src/main/java/com/amazonaws/services/autoscaling/model/transform/LimitExceededExceptionUnmarshaller.java | Java | apache-2.0 | 1,518 |
package edu.kit.ipd.sdq.kamp.ruledsl.runtime.rule;
import java.util.concurrent.TimeUnit;
import com.google.common.base.Stopwatch;
import edu.kit.ipd.sdq.kamp.architecture.AbstractArchitectureVersion;
import edu.kit.ipd.sdq.kamp.propagation.AbstractChangePropagationAnalysis;
import edu.kit.ipd.sdq.kamp.ruledsl.suppor... | MartinLoeper/KAMP-DSL | edu.kit.ipd.sdq.kamp.ruledsl/src/edu/kit/ipd/sdq/kamp/ruledsl/runtime/rule/StopwatchRule.java | Java | apache-2.0 | 2,567 |
var when = require('when');
var request = require('request');
var settings = require("../../../../settings");
var log = require("../../../log");
// view components
var view_start = require('../nodes/view/start');
var view_choice = require('../nodes/view/choice');
var view_form = require('../nodes/view/form');
var view_... | Ubicall/node-red | red/ubicall/plist/utils/index.js | JavaScript | apache-2.0 | 3,754 |
/**
* @license
* Copyright 2012 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 ... | picklesrus/blockly | demos/code/code.js | JavaScript | apache-2.0 | 17,281 |
package com.bookify.web.models;
import com.bookify.core.Bill;
import com.bookify.core.BillItem;
import java.util.ArrayList;
/**
* Created by idumancic on 11/07/2017.
*/
public class PaymentViewModel {
private Bill bill;
private String username;
private ArrayList<ItemViewModel> billItems;
private S... | idumancic/bookify | web/src/main/java/com/bookify/web/models/PaymentViewModel.java | Java | apache-2.0 | 1,184 |
/*
* Copyright 2018 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 in... | spinnaker/halyard | halyard-cli/src/main/java/com/netflix/spinnaker/halyard/cli/command/v1/config/deploy/ha/AbstractHaServiceEnableDisableCommand.java | Java | apache-2.0 | 2,298 |
/*
* Copyright (c) 2016 GitHub, 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... | tuxology/bcc | tests/cc/test_usdt_probes.cc | C++ | apache-2.0 | 12,086 |
import { Component, ElementRef, NgZone, OnInit, ViewChild} from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { EventoModel } from './../../../model/evento.model';
import { TipoIngressoModel } from './../../../model/tipoingresso.model';
import { EventoService } from './../../../serv... | Wellington-Junior/ingressos | src/app/pages/evento/evento-editar/evento-editar.component.ts | TypeScript | apache-2.0 | 3,826 |
/**
* Copyright (C) 2012 Ryan W Tenney (ryan@10e.us)
*
* 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 app... | ryantenney/metrics-spring | src/main/java/com/ryantenney/metrics/spring/reporter/AbstractReporterFactoryBean.java | Java | apache-2.0 | 5,530 |
/*
* Copyright 2017 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 applic... | mminella/composed-task-runner | spring-cloud-starter-task-composedtaskrunner/src/test/java/org/springframework/cloud/task/app/composedtaskrunner/configuration/ComposedRunnerVisitorConfiguration.java | Java | apache-2.0 | 6,001 |
#include "kernel.h"
#include "ilwisdata.h"
#include "datadefinition.h"
#include "columndefinition.h"
#include "table.h"
#include "visualattributemodel.h"
#include "mapinformationattributesetter.h"
REGISTER_PROPERTYEDITOR("mapinfopropertyeditor",MapInformationPropertySetter)
MapInformationPropertySetter::MapInformatio... | ridoo/IlwisCore | ilwiscoreui/propertyeditors/mapinformationattributesetter.cpp | C++ | apache-2.0 | 1,233 |
// 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;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeA... | kelltrick/roslyn | src/Features/Core/Portable/ConvertToInterpolatedString/AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs | C# | apache-2.0 | 13,484 |
/*
* Copyright 2015 Brent Douglas and other contributors
* as indicated by the @author tags. 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.or... | BrentDouglas/chainlink | core/src/main/java/io/machinecode/chainlink/core/jsl/fluent/task/FluentCheckpointAlgorithm.java | Java | apache-2.0 | 1,211 |
/*
* Copyright 2017 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 applicab... | classmethod-sandbox/sparrow | src/main/java/jp/classmethod/sparrow/model/LineMessageEntityRepository.java | Java | apache-2.0 | 1,590 |
/*
* Copyright 2012-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 "licen... | dagnir/aws-sdk-java | aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/InstancePatchStateMarshaller.java | Java | apache-2.0 | 5,993 |
/*****************************************************************************************************
*
* Authors:
*
* <b> Java SDK for CWL </b>
*
* @author Paul Grosu (pgrosu@gmail.com), Northeastern University
* @version 0.20
* @since April 28, 2016
* ... | common-workflow-language/cwljava | sdk-and-javadoc-generation/org/commonwl/lang/CommandOutputParameter.java | Java | apache-2.0 | 14,693 |
package io.quarkus.maven.it.assertions;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.File;
import java.io.F... | quarkusio/quarkus | test-framework/maven/src/main/java/io/quarkus/maven/it/assertions/SetupVerifier.java | Java | apache-2.0 | 5,917 |
/*
* Copyright 2021 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 agreed to in... | emmartins/wildfly-server-migration | servers/wildfly23.0/src/main/java/org/jboss/migration/wfly/task/subsystem/microprofile/WildFly23_0AddMicroprofileJwtSmallryeSubsystem.java | Java | apache-2.0 | 2,097 |
package p321
import (
"github.com/stretchr/testify/assert"
"testing"
)
func Test0(t *testing.T) {
assert.Equal(t, []int{5, 4}, maxOneArray([]int{5, 2, 3, 4, 1}, 2))
assert.Equal(t, []int{6}, maxOneArray([]int{2, 4, 6, 5}, 1))
assert.Equal(t, []int{6, 5}, maxOneArray([]int{2, 4, 6, 5}, 2))
assert.Equal(t, []int{... | baishuai/leetcode | algorithms/p321/321_test.go | GO | apache-2.0 | 565 |
# frozen_string_literal: true
# encoding: utf-8
# Copyright (C) 2018-2020 MongoDB 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
#
# Un... | mongodb/mongo-ruby-driver | lib/mongo/operation/aggregate/op_msg.rb | Ruby | apache-2.0 | 983 |
// Copyright 2018 NetApp, Inc. All Rights Reserved.
package main
import (
"os"
"github.com/netapp/trident/cli/cmd"
)
func main() {
cmd.ExitCode = cmd.ExitCodeSuccess
if err := cmd.RootCmd.Execute(); err != nil {
cmd.SetExitCodeFromError(err)
}
os.Exit(cmd.ExitCode)
}
| NetApp/trident | cli/main.go | GO | apache-2.0 | 282 |
package ru.stqa.pft.mantis.appmanager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.BrowserType;
import java.io.File;
import java.io.FileRe... | martyanova/java_pft | mantis-tests/src/test/java/ru/stqa/pft/mantis/appmanager/ApplicationManager.java | Java | apache-2.0 | 1,475 |
class Fluentd
module Setting
class BufferMemory
include Fluentd::Setting::Plugin
register_plugin("buffer", "memory")
def self.initial_params
{}
end
def common_options
[]
end
def advanced_options
[]
end
end
end
end
| fluent/fluentd-ui | app/models/fluentd/setting/buffer_memory.rb | Ruby | apache-2.0 | 302 |
/*
* 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-elasticache/src/main/java/com/amazonaws/services/elasticache/model/transform/DescribeUpdateActionsResultStaxUnmarshaller.java | Java | apache-2.0 | 3,071 |
using System.ComponentModel.DataAnnotations;
namespace ChatSystem.Server.Models.Account
{
public class AddExternalLoginBindingModel
{
[Required]
[Display(Name = "External access token")]
public string ExternalAccessToken { get; set; }
}
} | deyantodorov/Zeus-WebServicesCould-TeamWork | Source/ChatSystem/Server/ChatSystem.Server/Models/Account/AddExternalLoginBindingModel.cs | C# | apache-2.0 | 278 |
package mtag
import (
"github.com/mabetle/mcore"
"strings"
)
// label tag format:
// label="zh='' en=''"
// GetLabelTag returns field "label" tag value.
func GetLabelTag(v interface{}, fieldName string) (string, bool) {
return GetTag(v, fieldName, "label")
}
// parse string to KeyValue map.
func ParseKeyValueMap... | mabetle/mcore | mtag/tag_label.go | GO | apache-2.0 | 1,652 |
from __future__ import unicode_literals
import pygst
pygst.require('0.10')
import gst # noqa
from mopidy.audio import output
import logging
logger = logging.getLogger(__name__)
# This variable is a global that is set by the Backend
# during initialization from the extension properties
encoder = 'identity'
class ... | liamw9534/mopidy-rtp | mopidy_rtp/sink.py | Python | apache-2.0 | 1,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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/DescribePatchPropertiesRequestProtocolMarshaller.java | Java | apache-2.0 | 2,847 |
/*
#
# Copyright 2014 The Trustees of Indiana University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | Data-to-Insight-Center/komadu | service-core/src/main/java/edu/indiana/d2i/komadu/ingest/db/TableAttributeData.java | Java | apache-2.0 | 1,714 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AC_ServiceClient.ACServiceReference;
using AC_SessionReport;
namespace AC_ServiceClient
{
public class ACServiceSessionReportHandler : ISessionReportHandler
{
public vo... | flitzi/AC_SERVER_APPS | AC_ServiceClient/ACServiceSessionReportHandler.cs | C# | apache-2.0 | 494 |
/*
* 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 ... | oscarceballos/flink-1.3.2 | flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrap.java | Java | apache-2.0 | 4,828 |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/nodejs-kms | samples/generated/v1/key_management_service.generate_random_bytes.js | JavaScript | apache-2.0 | 2,228 |
package ru.job4j.toDoList.model.dao;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import ru.job4j.toDoList.model.entity.Item;
import java.sql.Timestamp;
i... | Mrsananabos/ashveytser | chapter_009/src/main/java/ru/job4j/toDoList/model/dao/HiberStorage.java | Java | apache-2.0 | 2,289 |
import { AbstractSimpleComponent } from './AbstractSimpleComponent';
import { AllowedTokens } from './AllowedTokens';
/**
* Scalar component used to represent a categorical value as a simple token
* identifying a term in a code space
*/
export class SweCategory extends AbstractSimpleComponent {
/**
* Value is ... | autermann/smle | src/app/model/swe/SweCategory.ts | TypeScript | apache-2.0 | 604 |
package cn.com.warlock.wisp.core.plugin.processor.support.filter;
import cn.com.warlock.wisp.core.dto.MysqlEntryWrap;
import cn.com.warlock.wisp.core.exception.WispProcessorException;
public interface IEntryFilterChain {
void doFilter(MysqlEntryWrap entry) throws WispProcessorException;
}
| warlock-china/wisp | wisp-core/src/main/java/cn/com/warlock/wisp/core/plugin/processor/support/filter/IEntryFilterChain.java | Java | apache-2.0 | 298 |
/*
* Copyright 2017 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 applica... | codenergic/theskeleton | src/main/java/org/codenergic/theskeleton/post/PostRepository.java | Java | apache-2.0 | 1,323 |
/*
* Copyright 2016 Bear Giles <bgiles@coyotesong.com>
*
* 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... | beargiles/cheat-sheet | webservices/Apache-CXF/apache-cxf-wss4j-interceptors/src/main/java/com/coyotesong/demo/cxf/ApacheCxfWss4jApplication.java | Java | apache-2.0 | 1,721 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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... | Sargul/dbeaver | plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/DBPVirtualObject.java | Java | apache-2.0 | 917 |
try
{
if (Koadic.JOBKEY != "stage")
{
if (Koadic.isHTA())
{
//HKCU\SOFTWARE\Microsoft\Internet Explorer\Style\MaxScriptStatements = 0xFFFFFFFF
var path = "SOFTWARE\\Microsoft\\Internet Explorer\\Styles";
var key = "MaxScriptStatements";
Koadic.regi... | zerosum0x0/koadic | data/stager/js/stage.js | JavaScript | apache-2.0 | 1,812 |
package profitbricks
import (
"context"
"github.com/ionos-cloud/sdk-go/v5"
"net/http"
)
// Lan object
type Lan struct {
ID string `json:"id,omitempty"`
PBType string `json:"type,omitempty"`
Href string `json:"href,omitempty"`
Metadata *Metadata `json:"metadata,omite... | profitbricks/profitbricks-sdk-go | lan.go | GO | apache-2.0 | 6,599 |
package me.wangkang.spring.messaging;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| iwangkang/spring | spring-framework-example/spring-messaging-example/src/main/java/me/wangkang/spring/messaging/App.java | Java | apache-2.0 | 191 |
package com.hiwhitley.chapter01;
/**
* Created by hiwhitley on 2016/10/27.
*/
public class Pet {
private String type;
public Pet(String type) {
this.type = type;
}
public String getType() {
return type;
}
}
| hiwhitley/CodingEveryDay | src/com/hiwhitley/chapter01/Pet.java | Java | apache-2.0 | 248 |
/*
* Copyright 2016 Black Duck Software, 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 ... | blackducksoftware/ohcount4j | src/main/java/com/blackducksoftware/ohcount4j/Language.java | Java | apache-2.0 | 16,986 |
package pl.itdonat.demo.wsfbd.encryption;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import pl.itdonat.demo.wsfbd.encryption.encode.EncodeData;
import pl.itdonat.demo.wsfbd.encryption.encode.EncodeService;
import java.util.L... | RobertSzarejko/WebSecurityForBackendDev | web-security-demo/src/main/java/pl/itdonat/demo/wsfbd/encryption/CryptoController.java | Java | apache-2.0 | 1,419 |
/**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... | asakusafw/asakusafw | operator/core/src/main/java/com/asakusafw/operator/Constants.java | Java | apache-2.0 | 8,005 |
<?php
/**
* This file is part of the SevenShores/NetSuite library
* AND originally from the NetSuite PHP Toolkit.
*
* New content:
* @package ryanwinchester/netsuite-php
* @copyright Copyright (c) Ryan Winchester
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @link https://githu... | fungku/netsuite-php | src/Classes/FairValuePriceSearchBasic.php | PHP | apache-2.0 | 2,206 |
/*
* 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/common/ResultSetSerializer.java | Java | apache-2.0 | 6,631 |
//------------------------------------------------------------------------------
// <automatisch generiert>
// Dieser Code wurde von einem Tool generiert.
//
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
// der Code neu generiert wird.
// </automatisch gene... | YAFNET/YAFNET | yafsrc/YetAnotherForum.NET/Controls/EditUsersInfo.ascx.designer.cs | C# | apache-2.0 | 14,587 |
import { Trans } from "@lingui/macro";
import classNames from "classnames/dedupe";
import * as React from "react";
type Action = {
className?: string;
clickHandler?: (e?: any) => void;
disabled?: boolean;
label?: string;
node?: React.ReactNode;
};
class FullScreenModalHeaderActions extends React.Component<{
... | dcos/dcos-ui | src/js/components/modals/FullScreenModalHeaderActions.tsx | TypeScript | apache-2.0 | 1,285 |
/* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconExposurePlus1(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... | mineral-ui/mineral-ui | packages/mineral-ui-icons/src/IconExposurePlus1.js | JavaScript | apache-2.0 | 553 |
/*
* Copyright (c) 2015. Pokevian 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 law or ag... | Pokevian/caroolive-app | app/src/main/java/com/pokevian/app/smartfleet/service/floatinghead/TtsHandler.java | Java | apache-2.0 | 4,562 |
using System.Data.Entity;
using System.Linq;
using Moq;
using Riganti.Utils.Infrastructure.Core;
using Xunit;
namespace Riganti.Utils.Infrastructure.EntityFramework.Tests.Repository
{
public class EntityFrameworkRepositoryTests
{
private static readonly EpisodeEntity[] episodesSeriesOne =
{
... | riganti/infrastructure | src/Infrastructure/Tests/Riganti.Utils.Infrastructure.EntityFramework.Tests/Repository/EntityFrameworkRepositoryTests.cs | C# | apache-2.0 | 10,020 |
Ti.UI.setBackgroundColor('#fff');
var inicio = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var titulo = Ti.UI.createLabel({
text:'UAM',
width:'300dp',
height:'50dp',
left:'10dp',
top:'100dp',
font:{fontSize:30,
fontFamily:'Helvetica Neue'},
textAlign:'center',
});
inicio.add(titulo);
var data = [{title... | addieljuarez/TallerUAM | Resources/app.js | JavaScript | apache-2.0 | 789 |
/*
*
* 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... | chirino/proton | proton-j/proton-api/src/main/java/org/apache/qpid/proton/amqp/transport/ErrorCondition.java | Java | apache-2.0 | 1,885 |
package com.icfcc.db.orderhelper;
import com.icfcc.db.orderhelper.sqlsource.*;
import org.apache.ibatis.builder.StaticSqlSource;
import org.apache.ibatis.builder.annotation.ProviderSqlSource;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.... | Gitpiece/ssm | ssm-db-support/src/main/java/com/icfcc/db/orderhelper/OrderByHelper.java | Java | apache-2.0 | 3,806 |
package ru.tr1al.dao;
import ru.tr1al.model.Model;
public interface DAO<T extends Model> {
Class<T> getEntityClass();
}
| Tr1aL/utils | src/main/java/ru/tr1al/dao/DAO.java | Java | apache-2.0 | 127 |
package test
import (
"bufio"
"os"
"testing"
)
import manager "github.com/tiagofalcao/GoNotebook/manager"
func Benchmark(b *testing.B, input string, caseTask manager.Task) {
i, err := os.Open(input)
if err != nil {
b.Errorf("Can't open %s", input)
}
var o NilWriter
b.ResetTimer()
for x :... | tiagofalcao/GoNotebook | manager/test/benchmark.go | GO | apache-2.0 | 423 |
package com.example.views;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.ViewSwitcher;
import android.widget.ViewSwitcher.ViewFactory;
public class V_ViewSwitcher extends GhostActivity {
private ViewSwitcher switcher;
@Override
protected void onCreate(Bun... | cowthan/AyoWeibo | sample/back/src/com/example/views/V_ViewSwitcher.java | Java | apache-2.0 | 1,766 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Kn... | knowit/Knowit.EPiModules.ImageScaling | sample/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,410 |
package gov.va.med.imaging.storage.cache;
import java.util.Iterator;
import java.util.regex.Pattern;
import gov.va.med.imaging.storage.cache.events.GroupLifecycleListener;
import gov.va.med.imaging.storage.cache.exceptions.CacheException;
/**
*
* i.e. A Group may contain other Group instances, which contain other... | VHAINNOVATIONS/Telepathology | Source/Java/CacheAPI/main/src/java/gov/va/med/imaging/storage/cache/Group.java | Java | apache-2.0 | 2,459 |
/*
* 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... | googleapis/google-api-java-client-services | clients/google-api-services-retail/v2/1.31.0/com/google/api/services/retail/v2/model/GoogleCloudRetailV2Product.java | Java | apache-2.0 | 62,165 |
var httpManager = require("httpManager");
Alloy.Globals.isSearch = true;
if (OS_ANDROID) {
$.search.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_ADJUST_PAN;
}
var dataTitles = [
{
name : "Find Us",
view : "findUs"
},
{
name : "Deals",
view : "deals"
},
{
name : "Testimonials",
view : "testmonials"
},
{
n... | SrinivasReddy987/Lookswoow | app/controllers/search.js | JavaScript | apache-2.0 | 2,071 |
package com.ssh.sys.core.validation;
import com.ssh.common.util.Constant;
import com.ssh.sys.api.dto.UserDTO;
import com.ssh.sys.api.dto.extension.PermissionExtDTO;
import com.ssh.sys.api.service.PermissionService;
import com.ssh.sys.api.service.UserService;
import org.junit.Assert;
import org.junit.Before;
import org... | lugavin/ssh | ssh-sys-core/src/test/java/com/ssh/sys/core/validation/ValidationTest.java | Java | apache-2.0 | 2,560 |
package firestream.chat.chat;
import androidx.annotation.Nullable;
import org.pmw.tinylog.Logger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Callable;
import firestream.chat.events.ListData;
import fire... | chat-sdk/chat-sdk-android | firestream/src/main/java/firestream/chat/chat/AbstractChat.java | Java | apache-2.0 | 15,606 |
package org.xmlcml.norma.biblio;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.xmlcml.graphics.html.HtmlDiv;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
public class RISEntry {
public ... | petermr/norma | src/main/java/org/xmlcml/norma/biblio/RISEntry.java | Java | apache-2.0 | 3,184 |
/**
* <copyright>
*
* Copyright (c) 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
... | adbrucker/SecureBPMN | designer/src/org.activiti.designer.model/src/main/java/org/eclipse/bpmn2/impl/DataStoreReferenceImpl.java | Java | apache-2.0 | 13,233 |
/*
* Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... | y-todorov/Inventory | Inventory.MVC/Scripts/Kendo/cultures/kendo.culture.de-LI.js | JavaScript | apache-2.0 | 2,637 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.SourceBrowser.Common;
using Newtonsoft.Json;
namespace Microsoft.SourceBrowser.HtmlGenerator
{
public class TypeScriptSupport
{
private stati... | KirillOsenkov/SourceBrowser | src/HtmlGenerator/Pass1-Generation/TypeScriptSupport.cs | C# | apache-2.0 | 26,413 |
/*
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 use this f... | mamandal/fleetchaincd | chaincode/marbles_chaincode.go | GO | apache-2.0 | 32,592 |
using XElement.DotNet.System.Environment.Startup;
namespace XElement.SDM.ManagementLogic
{
#region not unit-tested
internal abstract class AbstractProgramLogic : IProgramLogic
{
protected AbstractProgramLogic( IProgramInfo programInfo )
{
this._programInfo = programInfo;
}
... | XElementDev/SDM | code/Startup/ManagementLogic.Implementation/AbstractProgramLogic.cs | C# | apache-2.0 | 661 |
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!-- NAME: 1 COLUMN -->
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocu... | directonlijn/app | app/resources/views/emails/hippiemarkt-aalsmeer-factuur.blade.php | PHP | apache-2.0 | 34,222 |