repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
mongodb/mongo-cxx-driver | benchmark/multi_doc/gridfs_download.hpp | 2561 | // Copyright 2017 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
//
// Unless required by applicable law or agreed to in wri... | apache-2.0 |
joescii/fp-renaissance | src/test/scala/com/joescii/Prepend.scala | 286 | package com.joescii
import org.scalatest.FunSuite
class Prepend extends FunSuite {
test("Prepend produces new instance") {
val oneTo3 = List(1, 2, 3)
val zeroTo3 = 0 :: oneTo3
assert(oneTo3.size == 3)
assert(zeroTo3.size == 4)
assert(oneTo3 != zeroTo3)
}
}
| apache-2.0 |
guilhermo/java-2 | section04/Retangulo.java | 307 | class Retangulo implements AreaCalculavel {
private int largura;
private int altura;
public Retangulo(int largura, int altura) {
this.largura = largura;
this.altura = altura;
}
public double calculaArea() {
return this.largura * this.altura;
}
} | apache-2.0 |
jkbradley/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/SchemaPruningSuite.scala | 20141 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
aehlig/bazel | src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryOptions.java | 8039 | //Copyright 2016 The Bazel Authors. All rights reserved.
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable l... | apache-2.0 |
smhilde/dhhd_project | dhhd/dhhd/urls.py | 1072 | from django.conf.urls import patterns, include, url
from django.core.urlresolvers import reverse_lazy
from django.contrib import admin
from django.contrib.auth import views as auth_views
from dhhd import views
from plan.models import UserProfile
#from plan import views as plan_views
urlpatterns = patterns('',
url(r'... | apache-2.0 |
1100110/rust | src/test/bench/shootout-pidigits.rs | 4645 | // xfail-test
use core::cast::transmute;
use core::from_str::FromStr;
use core::libc::{STDOUT_FILENO, c_char, c_int, c_uint, c_void, fdopen, fputc};
use core::libc::{fputs};
use core::ptr::null;
struct mpz_t {
_mp_alloc: c_int,
_mp_size: c_int,
_mp_limb_t: *c_void,
}
impl mpz_t {
fn new() -> mpz_t {
... | apache-2.0 |
AngLi-Leon/peloton | src/codegen/translator_factory.cpp | 6932 | //===----------------------------------------------------------------------===//
//
// Peloton
//
// translator_factory.cpp
//
// Identification: src/codegen/translator_factory.cpp
//
// Copyright (c) 2015-2017, Carnegie Mellon University Database Group
//
//===----------------------------------... | apache-2.0 |
aspiers/gertty | gertty/alembic/versions/254ac5fc3941_attach_comments_to_files.py | 2276 | """attach comments to files
Revision ID: 254ac5fc3941
Revises: 50344aecd1c2
Create Date: 2015-04-13 15:52:07.104397
"""
# revision identifiers, used by Alembic.
revision = '254ac5fc3941'
down_revision = '50344aecd1c2'
import sys
import warnings
from alembic import op
import sqlalchemy as sa
from gertty.dbsupport ... | apache-2.0 |
alexkli/jackrabbit-oak | oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndex.java | 18595 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
av8ramit/tensorflow | tensorflow/core/grappler/utils_test.cc | 8088 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | apache-2.0 |
tc/java-aws-mturk | src/main/java/aws-mturk-wsdl/com/amazonaws/mturk/requester/RegisterHITTypeResult.java | 5029 | /**
* RegisterHITTypeResult.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.amazonaws.mturk.requester;
public class RegisterHITTypeResult implements java.io.Serializable {
private com.amazonaws.mturk.requester.Request req... | apache-2.0 |
joel-costigliola/assertj-core | src/test/java/org/assertj/core/internal/doublearrays/DoubleArrays_assertStartsWith_Test.java | 6753 | /*
* 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... | apache-2.0 |
peter-gergely-horvath/dyna4jdbc | src/main/java/com/github/dyna4jdbc/internal/scriptengine/jdbc/impl/BasicScriptEngineScriptExecutor.java | 9158 | /*
* Copyright (c) 2016, 2017 Peter G. Horvath, 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... | apache-2.0 |
iceopen/mytp | define.ini.php | 258 | <?php
header("Content-Type:text/html;charset=utf-8");
//由于多应用情况下,目录由应用自己设置,核心系统就需要定义主程序的路径
define("SITE_PATH", str_ireplace('\\', '/', dirname(__FILE__)));
define('APP_DEBUG', true);
?> | apache-2.0 |
lyft/envoy | test/common/router/header_formatter_test.cc | 71500 | #include <string>
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/config/route/v3/route.pb.h"
#include "envoy/config/route/v3/route.pb.validate.h"
#include "envoy/config/route/v3/route_components.pb.h"
#include "envoy/http/protocol.h"
#include "source/common/config/metadata.h"
#include "source/common/config... | apache-2.0 |
scottsilverlabs/raspberrystem | rstem/tests/test_accel.py | 1783 | '''
Automatic tests of accel module
Accelerometer must be connected via VCC, GND, SDA and SCL. Accelerometer must
sit level (flat) in the X/Y directions.
'''
import testing_log
import importlib
import testing
import time
from threading import Timer
from functools import wraps
from rstem import accel
def io_setup():... | apache-2.0 |
olw/cdn | milton-server-ce/src/main/java/io/milton/http/webdav/PropFindHandler.java | 7401 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
dcarbone/php-fhir-generated | src/DCarbone/PHPFHIRGenerated/STU3/PHPFHIRTests/FHIRElement/FHIRTestScriptRequestMethodCodeTest.php | 3499 | <?php
namespace DCarbone\PHPFHIRGenerated\STU3\PHPFHIRTests\FHIRElement;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyrig... | apache-2.0 |
yeastrc/proxl-web-app | proxl-shared-code/src/main/java/org/yeastrc/xlink/linker_data_processing_base/linkers_builtin_root/linkers_builtin/Transglutaminase.java | 2060 | package org.yeastrc.xlink.linker_data_processing_base.linkers_builtin_root.linkers_builtin;
import java.util.HashSet;
import java.util.Set;
import org.yeastrc.xlink.utils.ProteinSequenceUtils;
public class Transglutaminase implements ILinker_Builtin_Linker {
@Override
public String toString() {
return "tg (tran... | apache-2.0 |
tuddbresilience/coding_benchmark | src/Main.cpp | 20126 | // Copyright (c) 2016 Till Kolditz, Stefan de Bruijn
//
// 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... | apache-2.0 |
Redth/WshLst | WshLst.Core/ViewModels/BaseViewModel.cs | 485 | using Cirrious.MvvmCross.ViewModels;
using Cirrious.MvvmCross.ExtensionMethods;
using WshLst.Core.Interfaces;
namespace WshLst.Core.ViewModels
{
public abstract class BaseViewModel : MvxViewModel
{
private bool _isLoading;
public bool IsLoading
{
get { return _isLoading; }
set
{
_isLoading = valu... | apache-2.0 |
alexdp/vaadin-activiti | vaadin-activiti/src/main/java/com/github/alexdp/util/vaadin/WorkflowFormLayout.java | 6926 | package com.github.alexdp.util.vaadin;
import java.beans.IntrospectionException;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotatio... | apache-2.0 |
jkbradley/spark | sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala | 38681 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
Tecsisa/elastic4s | elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/queries/PrefixQuery.scala | 601 | package com.sksamuel.elastic4s.searches.queries
import com.sksamuel.exts.OptionImplicits._
case class PrefixQuery(field: String,
prefix: Any,
boost: Option[Double] = None,
queryName: Option[String] = None,
rewrite: Option[Stri... | apache-2.0 |
korsvanloon/giraph | giraph-core/src/main/java/org/apache/giraph/graph/Computation.java | 6688 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
kongweihan/helix | helix-core/src/test/java/org/apache/helix/integration/manager/MockParticipantManager.java | 4622 | package org.apache.helix.integration.manager;
/*
* 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 Apach... | apache-2.0 |
svalverdet/Love-Letter-Online | LoveLetter_Online/src/main/java/es/codeurjc/em/LLO/PartidasService.java | 1680 | package es.codeurjc.em.LLO;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.stereotype.Component;
@Component
public class PartidasService {
... | apache-2.0 |
weexext/ucar-weex-core | platforms/android/uwx/src/main/java/com/ucar/weex/init/view/QProgressDialog.java | 1083 | package com.ucar.weex.init.view;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
/**
* Created by chenxi.cui on 2017/7/13.
*/
public class QProgressDialog extends Dialog {
private Context context;
public QProgressDialog(Context context) {
super(context);
... | apache-2.0 |
demoforwork/public | SelfServiceProvisioning/service_utilities.py | 2713 | import logging
import time
from functools import wraps
#http (for urlfetch) and google api client imports
import httplib2
import sys
from oauth2client.client import SignedJwtAssertionCredentials
from google.appengine.api import memcache
# configuration settings
import properties
#from oauth2client.client import Acc... | apache-2.0 |
garbagetown/springboot-tourreservation | src/main/java/garbagetown/domain/model/Reserve.java | 1748 | package garbagetown.domain.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
/**
*... | apache-2.0 |
endfalse/EzFramework7 | Test/ConsoleApplication2/Properties/AssemblyInfo.cs | 1310 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("ConsoleApplication2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: As... | apache-2.0 |
0x73/rust | src/liblibc/lib.rs | 210142 | // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | apache-2.0 |
heiko-braun/wildfly-swarm | ribbon-webapp/runtime/src/main/resources/ribbon.js | 9298 | var ribbon = (function() {
var defaults = {
headers: {},
method: 'GET',
keycloak: false,
keycloakUpdateInterval: 30,
context: '/ribbon'
}, topology = {};
function factory( options ) {
options = merge(defaults, options);
function ajax( serviceName, path, settings ) {
var allSer... | apache-2.0 |
Willster419/RelicModManager | RelhaxLegacy/RelicModManager/LegacyComponents/UIComponent.cs | 213 | /*
namespace RelhaxModpack
{
public interface UIComponent
{
Category catagory { get; set; }
SelectablePackage mod { get; set; }
SelectablePackage config { get; set; }
}
}
*/
| apache-2.0 |
leafclick/intellij-community | plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/constant/GrIntroduceConstantDialog.java | 16783 | // Copyright 2000-2019 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 org.jetbrains.plugins.groovy.refactoring.introduce.constant;
import com.intellij.ide.util.*;
import com.intellij.openapi.application.WriteAction;
import com.intellij.open... | apache-2.0 |
GoogleChrome/inert-polyfill | inert-polyfill.js | 9183 | /*
* Copyright 2015 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 applica... | apache-2.0 |
let-thomas/jcbo | php/zprava.php | 3941 | <?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?><!DOCTYPE html>
<html>
<title>1JCBO - Zpráva ze závodu</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="... | apache-2.0 |
thomasjm/MathJax | unpacked/jax/output/EditableSVG/fonts/STIX-Web/Latin/BoldItalic/Main.js | 111178 | /*************************************************************
*
* MathJax/jax/output/SVG/fonts/STIX-Web/Latin/BoldItalic/Main.js
*
* Copyright (c) 2013-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | apache-2.0 |
JustGregory/Platform | platform-chronology/src/main/java/brm/platform/chronology/calendar/CalendarDefinition.java | 381 | package brm.platform.chronology.calendar;
/**
* <h2>CalendarDefinition</h2>
* @author Gregory
*/
public class CalendarDefinition {
private static int era;
private static int year;
private static int month;
private static int day;
public CalendarDefinition() {
}
public static final CalendarDefinitio... | apache-2.0 |
googleapis/google-cloud-cpp-spanner | google/cloud/spanner/spanner_version_test.cc | 2024 | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | apache-2.0 |
Carbonado/CarbonadoTestSuite | src/test/java/com/amazon/carbonado/cursor/TestGroupedCursor.java | 8042 | /*
* Copyright 2006-2012 Amazon Technologies, Inc. or its affiliates.
* Amazon, Amazon.com and Carbonado are trademarks or registered trademarks
* of Amazon Technologies, Inc. or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... | apache-2.0 |
janicduplessis/buck | src/com/facebook/buck/rules/BuildRuleParams.java | 5222 | /*
* Copyright 2012-present Facebook, 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... | apache-2.0 |
ganzux/SIRME | SIRME-business/src/main/java/com/alcedomoreno/sirme/business/rest/AdvicedInitRestController.java | 3028 | package com.alcedomoreno.sirme.business.rest;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import o... | apache-2.0 |
beanshell/beanshell | src/main/java/bsh/BSHFormalParameter.java | 3271 | /*****************************************************************************
* 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 *
* r... | apache-2.0 |
spohnan/geowave | test/src/test/java/org/locationtech/geowave/test/spark/GeoWaveSparkKMeansIT.java | 8676 | /**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | apache-2.0 |
lichengshuang/createvhost | python/google/socks/3.py | 212 | #!/usr/bin/python
import socket
import socks
import requests
socks.set_default_proxy(socks.SOCKS5, 'ntz', 6080)
socket.socket = socks.socksocket
ip = requests.get('http://icanhazip.com/')
print ip.text.strip()
| apache-2.0 |
AdaptiveMe/adaptive-arp-javascript | adaptive-arp-js/src_units/IImaging.js | 1536 | /**
--| ADAPTIVE RUNTIME PLATFORM |----------------------------------------------------------------------------------------
(C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | apache-2.0 |
datastax/java-driver | core/src/main/java/com/datastax/oss/driver/api/core/type/codec/MappingCodec.java | 4318 | /*
* Copyright DataStax, 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 wri... | apache-2.0 |
x-meta/xworker | xworker_javafx_control/src/main/java/xworker/javafx/util/SelectorFactory.java | 1460 | package xworker.javafx.util;
import javafx.scene.control.*;
import javafx.util.Callback;
import xworker.javafx.util.selection.*;
import java.util.HashMap;
import java.util.Map;
public class SelectorFactory {
private final static Map<Class<?>, Callback<?, Selector<?>>> factorys= new HashMap<>();
static{
... | apache-2.0 |
Sage-Bionetworks/Synapse-Repository-Services | services/repository-managers/src/main/java/org/sagebionetworks/repo/manager/dataaccess/SubmissionManager.java | 2461 | package org.sagebionetworks.repo.manager.dataaccess;
import org.sagebionetworks.repo.model.UserInfo;
import org.sagebionetworks.repo.model.dataaccess.AccessRequirementStatus;
import org.sagebionetworks.repo.model.dataaccess.CreateSubmissionRequest;
import org.sagebionetworks.repo.model.dataaccess.OpenSubmissionPage;
i... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/transform/UpdateInputSecurityGroupRequestMarshaller.java | 2828 | /*
* 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... | apache-2.0 |
Bayakala/FunDA | src/main/scala/com/bayakala/funda/fdasources/FDADataStream.scala | 14821 | package com.bayakala.funda.fdasources
import fs2._
import play.api.libs.iteratee._
import com.bayakala.funda._
import slick.jdbc.JdbcProfile
import akka.actor._
import akka.stream.scaladsl._
import akka.stream._
import akka.stream.stage._
import akka.stream.stage.{GraphStage, GraphStageLogic}
/** stream loader class... | apache-2.0 |
mikosik/smooth-build | src/main/test/org/smoothbuild/io/fs/mem/MemoryDirTest.java | 3462 | package org.smoothbuild.io.fs.mem;
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.smoothbuild.io.fs.base.Path.path;
import static org.smoothbuild.testing.common.AssertCall.assertCall;
import org.junit.jupiter.ap... | apache-2.0 |
draylundy/IEC61850-LTI | iec61850-lti/src/main/java/com/github/draylundy/iec61850lti/repo/interfaces/AnswerSetRepository.java | 688 | package com.github.draylundy.iec61850lti.repo.interfaces;
import com.github.draylundy.iec61850lti.entities.AnswerSet;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@R... | apache-2.0 |
googlearchive/drivemarks | src/org/drivemarks/web/HomepageServlet.java | 1205 | /*
* Copyright (c) 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
google-code-export/google-api-dfp-java | src/com/google/api/ads/dfp/v201211/ColumnType.java | 3766 | /**
* ColumnType.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.v201211;
/**
* Contains information about a column in a {@link ResultSet}.
*/
public class ColumnType implements java.io.Serializable {
... | apache-2.0 |
QualiSystems/shell-templates | base/src/baseshelldriver.py | 1714 | from cloudshell.shell.core.driver_context import *
from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface
class BaseShellDriver (ResourceDriverInterface):
def __init__(self):
pass
# Initialize the driver session, this function is called everytime a new inst... | apache-2.0 |
rishig/zulip | static/js/emoji_picker.js | 26464 | var emoji_picker = (function () {
var exports = {};
// Emoji picker is of fixed width and height. Update these
// whenever these values are changed in `reactions.css`.
var APPROX_HEIGHT = 375;
var APPROX_WIDTH = 255;
// The functionalities for reacting to a message with an emoji
// and composing a message with an em... | apache-2.0 |
bijilap/CollabParking | app/src/main/java/edu/usc/bphilip/collabparking/NotificationPopUpActivity.java | 3543 | package edu.usc.bphilip.collabparking;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CompoundButton;
import a... | apache-2.0 |
googleapis/google-api-php-client-services | src/AlertCenter/AppSettingsChanged.php | 1385 | <?php
/*
* Copyright 2014 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 t... | apache-2.0 |
hammerlab/isovar | isovar/variant_orf_helpers.py | 5017 | # 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 th... | apache-2.0 |
googlecloudrobotics/core | src/go/pkg/client/versioned/typed/apps/v1alpha1/fake/fake_app.go | 4552 | // Copyright 2021 The Cloud Robotics 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 ... | apache-2.0 |
Syncleus/aparapi | src/test/java/com/aparapi/runtime/JtpRangeIdsTest.java | 12428 | /**
* Copyright (c) 2016 - 2018 Syncleus, 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 la... | apache-2.0 |
yan74/afplib | org.afplib/src/main/java/org/afplib/afplib/ResourceObjectIncludeObOrent.java | 6757 | /**
*/
package org.afplib.afplib;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Resource Object Include Ob Orent</b></em>',
* and utility meth... | apache-2.0 |
friendscube3/friendscube | src/main/java/com/dotweblabs/friendscube/app/client/shared/UserResourceProxy.java | 1373 | /*
* Copyright 2015 Dotweblabs Web Technologies
*
* 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 la... | apache-2.0 |
ilscipio/scipio-erp | framework/common/src/com/ilscipio/scipio/category/CategoryEvents.java | 300 | package com.ilscipio.scipio.category;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CategoryEvents {
public static String getTreeCategories(HttpServletRequest request, HttpServletResponse response) {
return "success";
}
}
| apache-2.0 |
MonoSoftware/CacheSleeve | CacheSleeve/IHybridCacherConfig.cs | 132 | using System;
namespace CacheSleeve
{
public interface IHybridCacherConfig
{
string KeyPrefix { get; }
}
}
| apache-2.0 |
DSilence/MiniPie | MiniPie.Core/AppSettings.cs | 1589 | using System.Collections.Generic;
using MiniPie.Core.Enums;
using MiniPie.Core.SpotifyWeb;
using Newtonsoft.Json;
namespace MiniPie.Core {
[JsonObject]
public class AppSettings
{
[JsonProperty]
public virtual bool AlwaysOnTop { get; set; }
[JsonProperty]
public vi... | apache-2.0 |
asakusafw/asakusafw-compiler | compiler-project/core/src/main/java/com/asakusafw/lang/compiler/core/participant/InputFormatInfoExtensionParticipant.java | 1887 | /**
* 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... | apache-2.0 |
GRRedWings/python3-android | AndroidApp/app/src/main/jni/py_helpers/python_helpers.cpp | 4352 | #include "python_helpers.hpp"
#include <android/log.h>
namespace py_helper
{
/*
*
* Object
*
*/
AutoPyObject::AutoPyObject(bool aDecrementReference)
{
mDecrementReference = aDecrementReference;
mPyObject = nullptr;
}
AutoPyObject::AutoPyObject(PyObject* aPyObject, boo... | apache-2.0 |
google-code-export/google-api-dfp-java | src/com/google/api/ads/dfp/v201302/CustomFieldValueError.java | 4389 | /**
* CustomFieldValueError.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.v201302;
/**
* Errors specific to editing custom field values
*/
public class CustomFieldValueError extends com.google.api.ads.... | apache-2.0 |
hanahmily/sky-walking | apm-sniffer/apm-sdk-plugin/okhttp-3.x-plugin/src/test/java/org/apache/skywalking/apm/plugin/okhttp/v3/RealCallInterceptorTest.java | 6848 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache-2.0 |
dorzey/assertj-core | src/test/java/org/assertj/core/api/iterable/IterableAssert_haveAtLeast_Test.java | 1602 | /**
* 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 ... | apache-2.0 |
Mandar-Shinde/cassandra | src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java | 7824 | /*
* 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 no... | apache-2.0 |
wemeya/harbor | src/common/models/scan_job.go | 3727 | // Copyright (c) 2017 VMware, 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... | apache-2.0 |
gyfora/flink | flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarHandlerTest.java | 3875 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
google/earthengine-community | samples/javascript/guides/gettingStarted08.js | 1393 | /**
* Copyright 2020 The Google Earth Engine Community 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... | apache-2.0 |
uustory/u8updateserver | src/com/u8/server/cache/UApplicationListener.java | 883 | package com.u8.server.cache;
import com.u8.server.log.Log;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
/**
* 在Spring启动的时候,加载需要缓存... | apache-2.0 |
jnthnclt/nicity | nicity-view/src/main/java/com/jonathancolt/nicity/view/event/WindowClosed.java | 1684 | /*
* WindowClosed.java.java
*
* Created on 01-03-2010 01:30:23 PM
*
* Copyright 2010 Jonathan Colt
*
* 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/license... | apache-2.0 |
googleapis/java-talent | proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java | 49249 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
xiwc/jkb | src/api/com/skycloud/api/domain/base/HostGroup.java | 502 | package com.skycloud.api.domain.base;
public class HostGroup {
private String groupid;
private String name;
private Integer internal;
public void setGroupid(String groupid) {
this.groupid = groupid;
}
public String getGroupid() {
return groupid;
}
public void setName(String name) {
this.name = name;
... | apache-2.0 |
PHPower/hdcms | hdcms/App/Upload/Tpl/Upload/index.php | 1266 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>文件管理</title>
<jquery/>
<jsconst/>
... | apache-2.0 |
vine77/saa-ui | scripts/controllers/slaEdit-controller.js | 4045 | App.SlaEditController = Ember.ObjectController.extend({
needs: ['nodes'],
sloTemplates: function () {
return this.store.all('sloTemplate');
}.property(),
slaTypes: function() {
return this.get('sloTemplates').map(function(item) {
if (item) return item.get('elementName');
}).uniq().map(functio... | apache-2.0 |
appneta/ruby-traceview | test/servers/rackapp_8101.rb | 762 | # Copyright (c) 2016 SolarWinds, LLC.
# All rights reserved.
# This is a Rack application that is booted in a background
# thread and listens on port 8101.
#
require 'rack/handler/puma'
require 'traceview/inst/rack'
TraceView.logger.info "[traceview/info] Starting background utility rack app on localhost:8101."
Thre... | apache-2.0 |
paucarre/tiefvision | src/torch/2-encode-bounding-box-training-and-test-images/encode-training-and-test-images.lua | 6499 | -- Copyright (C) 2016 Pau Carré Cardona - All Rights Reserved
-- You may use, distribute and modify this code under the
-- terms of the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt).
-- Uses the image encoder to encode the train and test
-- data sets for the bounding box regression
local torchF... | apache-2.0 |
thiagonascimentorj/MenuCake | app/src/main/java/android/github/thiagonascimento/com/menucake/Cupcake.java | 761 | package android.github.thiagonascimento.com.menucake;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.TextView;
import org.w3c.dom.Text;
/**
* Created by... | apache-2.0 |
BonDyka/abondarev | jun/chapter_005pro/src/main/java/ru/job4j/trees/SearchBinaryTree.java | 3550 | package ru.job4j.trees;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Implements search binary tree structure.
*
* @param <E> type of stored elements.
* @author abondarev.
* @since 01.10.2017.
*/
public class SearchBinaryTree<E extends Comparable<E>> {
/**
* Links... | apache-2.0 |
lk-architecture/lk-app-front | app/lib/measures.js | 269 | import {fromPairs, map, pipe, toPairs} from "ramda";
const px = ([key, value]) => [`${key}Px`, `${value}px`];
const convert = pipe(toPairs, map(px), fromPairs);
const measures = {
headerHeight: 60
};
export default {
...measures,
...convert(measures)
};
| apache-2.0 |
quarkusio/quarkus | independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/app/ClassChangeInformation.java | 856 | package io.quarkus.bootstrap.app;
import java.util.Collections;
import java.util.Set;
public class ClassChangeInformation {
private final Set<String> changedClasses;
private final Set<String> deletedClasses;
private final Set<String> addedClasses;
public ClassChangeInformation(Set<String> changedCla... | apache-2.0 |
Xavalon/XamlStyler | src/XamlStyler/Parser/ContentTypeEnum.cs | 248 | // (c) Xavalon. All rights reserved.
using System;
namespace Xavalon.XamlStyler.Parser
{
[Flags]
public enum ContentTypes
{
None = 0,
SingleLineTextOnly = 1,
MultiLineTextOnly = 2,
Mixed = 4,
}
} | apache-2.0 |
ankuradhey/dealtrip | library/Zend/Pdf/Color/Rgb.php | 2811 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the ... | apache-2.0 |
LeeFlannery/HelloNg2 | app.ts | 545 | /// <reference path="typings/angular2/angular2.d.ts" />
import {Component, View, bootstrap} from 'angular2/angular2';
// Annotation section
@Component({
selector: 'my-app'
})
@View({
template: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
name: string;
constructor() {
this.n... | apache-2.0 |
googleapis/google-api-ruby-client | generated/google-apis-abusiveexperiencereport_v1/lib/google-apis-abusiveexperiencereport_v1.rb | 625 | # 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, ... | apache-2.0 |
andrefelizardo/Projetos | gulpfile.js | 1530 | var gulp = require('gulp');
var gutil = require('gulp-util');
var uglify = require('gulp-uglify');
var watch = require('gulp-watch');
var cssmin = require('gulp-cssmin');
var concat = require('gulp-concat');
var imagemin = require('gulp-imagemin');
var livereload = require('gulp-livereload');
gulp.task('minifyScripts'... | apache-2.0 |
CryptArc/templecoin-bither | bither-android/src/net/bither/util/ExchangeUtil.java | 5473 | /*
* Copyright 2014 http://Bither.net
*
* 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... | apache-2.0 |
jt120/nio | manning/Chapter5/logging/LoggerGUI.java | 2942 | package Chapter5.logging;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.*;
import java.util.logging.*;
/**
* Main GUI window for logging-window system
*/
public class LoggerGUI extends JFrame
{
// List displaying the currently-instantiated loggers
private J... | apache-2.0 |
baoff/hibernate3.6 | src/cn/foot/day01/entity/User.java | 303 | package cn.foot.day01.entity;
public class User {
private int id;
private String name;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
| apache-2.0 |
kieker-monitoring/kieker | kieker-monitoring/test/kieker/test/monitoring/junit/probe/adaptiveMonitoring/mxbean/TestGCSampler.java | 1943 | /***************************************************************************
* Copyright 2021 Kieker Project (http://kieker-monitoring.net)
*
* 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 a... | apache-2.0 |
bfung11/BladerCrusader | Assets/Scripts/UI/MenuButtonScript.cs | 790 | using UnityEngine;
using System.Collections;
public class MenuButtonScript : MonoBehaviour {
public GameObject objectToOpen;
public GameObject objectToClose;
public void OpenMenu() {
OpenMenu(objectToOpen, this.transform);
}
public static GameObject OpenMenu(GameObject toOpen, Transform myTransform) {
Gam... | apache-2.0 |