repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Netflix/msl
core/src/main/java/com/netflix/msl/msg/MessageContext.java
13988
/** * Copyright (c) 2012-2018 Netflix, 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 requir...
apache-2.0
waans11/incubator-asterixdb-hyracks
algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/logical/AbstractLogicalOperator.java
7076
/* * 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
PrinceChou/IotSdk
src/com/iotsdk/config/SdkConfig.java
1490
package com.iotsdk.config; import java.text.SimpleDateFormat; import android.os.Environment; public class SdkConfig { public static String TAG="sdk config"; public static String IOSDK_SD_DB_DEFAULT_PATH=""; public final static String SHAREDPR_ENAME = "kinder_sdk_config"; public final static String ROOT = Envir...
apache-2.0
stankovski/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsOperations.cs
19959
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Network.Models; namespace A...
apache-2.0
frankdede/CMPUT466Project
feature.py
65
import nltk from bigram import bigram from unigram import unigram
apache-2.0
srinivasiyerb/Scholst
target/Scholastic/static/js/ext/src/ext-core/examples/jsonp/jsonp.js
2434
/*! * Ext JS Library 3.3.1 * Copyright(c) 2006-2010 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license */ Ext.ns('Ext.ux'); Ext.ux.JSONP = (function(){ var _queue = [], _current = null, _nextRequest = function() { _current = null; if(_queue....
apache-2.0
BlockHorizons/BlockPets
src/BlockHorizons/BlockPets/pets/creatures/SquidPet.php
321
<?php declare(strict_types = 1); namespace BlockHorizons\BlockPets\pets\creatures; use BlockHorizons\BlockPets\pets\SwimmingPet; class SquidPet extends SwimmingPet { const NETWORK_NAME = "SQUID_PET"; const NETWORK_ORIG_ID = self::SQUID; public $width = 0.8; public $height = 0.8; public $name = "Squid Pet"; ...
apache-2.0
crysehillmes/PersistentSearchView
persistentsearchview/src/main/java/io/codetail/animation/SupportAnimator.java
6514
package io.codetail.animation; import android.view.animation.Interpolator; import java.lang.ref.WeakReference; public abstract class SupportAnimator { WeakReference<RevealAnimator> mTarget; public SupportAnimator(RevealAnimator target) { mTarget = new WeakReference<>(target); } /** * ...
apache-2.0
davidbz/trafficserver
iocore/net/quic/QUICIntUtil.cc
2958
/** @file * * A brief file description * * @section license License * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this...
apache-2.0
weitenghuang/dirigent-cli
cmd/version.go
310
package cmd import ( "fmt" "github.com/spf13/cobra" ) var versionCmd = &cobra.Command{ Use: "version", Short: "Print the version number of dirigent", Long: `Print dirigent's current version number`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("dirigent is on version v0.0.1") }, }
apache-2.0
dads-software-brotherhood/sekc
node_modules/generator-jhipster/generators/client/templates/angular/src/main/webapp/app/shared/_shared.module.ts
2259
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { DatePipe } from '@angular/common'; import { CookieService } from 'angular2-cookie/services/cookies.service'; import { <%=angular2AppName%>SharedLibsModule, <%=angular2AppName%>SharedCommonModule, CSRFService, AuthService, <%...
apache-2.0
stdlib-js/stdlib
lib/node_modules/@stdlib/stats/base/dnanmeanwd/src/addon.cpp
3615
/** * @license Apache-2.0 * * Copyright (c) 2020 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...
apache-2.0
saulbein/web3j
core/src/main/java/org/web3j/abi/datatypes/generated/Ufixed152x40.java
594
package org.web3j.abi.datatypes.generated; import java.math.BigInteger; import org.web3j.abi.datatypes.Ufixed; /** * <p>Auto generated code.<br> * <strong>Do not modifiy!</strong><br> * Please use {@link org.web3j.codegen.AbiTypesGenerator} to update.</p> */ public class Ufixed152x40 extends Ufixed { public ...
apache-2.0
cedral/aws-sdk-cpp
aws-cpp-sdk-codecommit/source/model/DeleteFileEntry.cpp
1462
/* * 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...
apache-2.0
o-evin/glacier-console
source/main/api/hasher/tree_hash.js
4860
import fs from 'fs'; import crypto from 'crypto'; import {Size} from '../../../contracts/const'; const PART_SIZE = Size.MEGABYTE_IN_BYTES; class Node { constructor({tree, parent, depth = 0, index = 0}) { this.tree = tree; this.index = index; this.depth = depth; this.parent = parent; this.check...
apache-2.0
janstk/boxJae
bb-library/Box/App.php
8224
<?php /** * BoxBilling * * @copyright BoxBilling, Inc (http://www.boxbilling.com) * @license Apache-2.0 * * Copyright BoxBilling, Inc * This source file is subject to the Apache-2.0 License that is bundled * with this source code in the file LICENSE */ use Box\InjectionAwareInterface; class Box_App { ...
apache-2.0
wangfakang/geo
s2/cellid_test.go
16300
/* Copyright 2014 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 applicable law or agreed to in ...
apache-2.0
puppetlabs/puppetlabs-stdlib
spec/functions/shell_join_spec.rb
1473
# frozen_string_literal: true require 'spec_helper' describe 'shell_join' do it { is_expected.not_to eq(nil) } describe 'signature validation' do it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError, %r{wrong number of arguments}i) } it { is_expected.to run.with_params(['foo'], ['bar'])...
apache-2.0
baade-org/eel
eel-tools/src/main/java/org/baade/eel/tools/generator/msg/IMessageGen.java
286
package org.baade.eel.tools.generator.msg; import org.baade.eel.tools.generator.IGenerator; /** * 消息的生成 * @author <a href="http://eel.baade.org">Baade Eel Project</a> * 2017/4/1. */ public interface IMessageGen extends IGenerator{ public boolean check(); }
apache-2.0
ilangostl/postgresql-async
mysql-async/src/main/scala/com/github/mauricio/async/db/mysql/codec/MySQLConnectionHandler.scala
10773
/* * Copyright 2013 Maurício Linhares * * Maurício Linhares licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
apache-2.0
orientechnologies/orientdb
core/src/test/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/po/cellbtree/multivalue/v2/entrypoint/CellBTreeMultiValueV2EntryPointSetPagesSizePOTest.java
5271
package com.orientechnologies.orient.core.storage.impl.local.paginated.wal.po.cellbtree.multivalue.v2.entrypoint; import com.orientechnologies.common.directmemory.OByteBufferPool; import com.orientechnologies.common.directmemory.ODirectMemoryAllocator.Intention; import com.orientechnologies.common.directmemory.OPointe...
apache-2.0
weld/core
weld-lite-extension-translator/src/main/java/org/jboss/weld/lite/extension/translator/TypeImpl.java
3471
package org.jboss.weld.lite.extension.translator; import jakarta.enterprise.inject.spi.BeanManager; import jakarta.enterprise.lang.model.types.Type; import org.jboss.weld.lite.extension.translator.logging.LiteExtensionTranslatorLogger; import org.jboss.weld.lite.extension.translator.util.AnnotationOverrides; import or...
apache-2.0
jentfoo/aws-sdk-java
aws-java-sdk-mediastore/src/main/java/com/amazonaws/services/mediastore/AWSMediaStoreAsyncClient.java
25987
/* * 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
google/depan
DepanEdgeUI/prod/src/com/google/devtools/depan/relations/persistence/RelationSetConverters.java
5648
/* * Copyright 2015 The Depan Project 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
bazelbuild/rules_docker
testdata/py_image_complex_library.py
938
# Copyright 2017 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 la...
apache-2.0
opencb/biodata
biodata-models/src/main/java/org/opencb/biodata/models/core/RegulatoryPfm.java
3252
package org.opencb.biodata.models.core; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; public class RegulatoryPfm { @JsonProperty("stable_id") private String id; private String name; @JsonProperty("associated_transcription_factor_complexes") pr...
apache-2.0
crow-misia/ermaster.old
org.insightech.er/src/org/insightech/er/editor/controller/editpart/element/AbstractModelEditPart.java
1923
package org.insightech.er.editor.controller.editpart.element; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.util.logging.Level; import java.util.logging.Logger; import org.eclipse.gef.commands.Command; import org.eclipse.gef.editparts.AbstractGraphicalEditPart; ...
apache-2.0
doctang/TestPlatform
MTBF/src/com/ztemt/test/mtbf/Cer_MTBF_04.java
727
package com.ztemt.test.mtbf; import com.android.uiautomator.core.UiObjectNotFoundException; /** * 发送彩信 * 循环次数:10 * @author 0016001973 * */ public class Cer_MTBF_04 extends Cer_MTBF_Mms implements UiAutomatorTestable { @Override public void test() throws UiObjectNotFoundException { ...
apache-2.0
jessemull/MicroFlex
src/main/java/com/github/jessemull/microflex/integerflex/stat/GeometricMeanInteger.java
7501
/** * 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
jeske/SimpleScene
SimpleScene/Objects/SSObjectHUDQuad.cs
1805
// Copyright(C) David W. Jeske, 2013 // Released to the public domain. using System; using OpenTK; using OpenTK.Graphics.OpenGL; namespace SimpleScene { public class SSObjectHUDQuad : SSObject { int GLu_textureID; public override void Render(SSRenderConfig renderConfig) { base.Render (renderConfig)...
apache-2.0
tcalmant/ipopo
tests/ipopo/test_field_callbacks.py
6656
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Tests the iPOPO @Bind/Update/UnbindField decorators. :author: Thomas Calmant """ # Standard library try: import unittest2 as unittest except ImportError: import unittest # Pelix from pelix.framework import FrameworkFactory # Tests from tests.ipopo im...
apache-2.0
FangWW/meinv
app/src/main/java/com/meinv/bean/BaseEntity.java
1206
/* * Copyright (c) 2015 [1076559197@qq.com | tchen0707@gmail.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 require...
apache-2.0
itzg/titan-browser
src/main/java/me/itzg/titanbrowser/model/ConfigurationUpdate.java
260
package me.itzg.titanbrowser.model; public class ConfigurationUpdate { String seedHost; Authentication authentication; public static class Authentication { boolean authenticate; String authUser; String authPass; } }
apache-2.0
jboismar/SKM
ha_setup.php
2097
<?php include('MyFunctions.inc.php'); if (isset($_GET["id"])) $id_host = $_GET["id"]; else $id_host = ""; if (isset($_GET["host_name"])) $host_name = $_GET["host_name"]; else $host_name = ""; if (isset($_GET["id_hostgroup"])) $id_hostgroup = $_GET["id_hostgroup"]; else $id_hostgroup = ""; if (isset($_POST["account"]))...
apache-2.0
leilihh/nova
nova/db/sqlalchemy/migrate_repo/versions/235_add_npar_resource_table.py
3397
# 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 agreed to in...
apache-2.0
bartnorsk/gep
src/com/bartnorsk/basic/tests/SubstractionOfTwoNucleotideTest.java
1410
package com.bartnorsk.basic.tests; import static org.junit.Assert.*; import org.junit.Test; import com.bartnorsk.basic.SubstractionOfTwoNucleotide; import com.bartnorsk.basic.TypeDoubleNucleotide; import com.bartnorsk.basic.TypeIntegerNucleotide; /** * @author Bart JV * */ public class SubstractionOfTwoNucleotid...
apache-2.0
multi-os-engine/moe-core
moe.apple/moe.platform.ios/src/main/java/apple/avfoundation/AVVideoComposition.java
17155
/* Copyright 2014-2016 Intel Corporation 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, s...
apache-2.0
xehoth/OnlineJudgeCodes
codechef/CC DISTNUM2-Easy Queries-区间树.cpp
5936
/** * Copyright (c) 2016-2018, xehoth * 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 appl...
apache-2.0
aspnet/AspNetCore
src/Servers/Kestrel/Core/src/Internal/Infrastructure/HeartbeatManager.cs
1265
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Threading; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure { internal class HeartbeatManager : IHeartbeatHandler, ISystemCl...
apache-2.0
puppetlabs/puppetlabs-cloudpassage
cloudpassage/lib/puppet/parser/functions/cp2resource.rb
1713
require 'rubygems' require 'httparty' require 'pp' class Cloudpassage include HTTParty attr_accessor :server_id, :api_key, :base_url def initialize ( server_id, api_key, base_url) @uri = "#{base_url}/#{server_id}/issues" @api_key = api_key end def auth_headers self.class.headers 'x-cpauth-access'...
apache-2.0
laocaixw/coolweather
src/com/laocaixw/coolweather/model/Province.java
534
package com.laocaixw.coolweather.model; public class Province { private int id; private String provinceName; private String provinceCode; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getProvinceName() { return provinceName; } public void setProvinceName(St...
apache-2.0
nuclio/nuclio
pkg/processor/trigger/mqtt/iotcore/factory.go
2152
/* Copyright 2017 The Nuclio 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...
apache-2.0
deepmind/deepmind-research
rl_unplugged/atari_example.py
1668
# Lint as: python3 # Copyright 2020 DeepMind Technologies Limited. # # 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 appli...
apache-2.0
rmeindl/jenetics.net
src/core/Jenetics/CompositeAlterer.cs
3115
// Java Genetic Algorithm Library. // Copyright (c) 2017 Franz Wilhelmstötter // // 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 // // ...
apache-2.0
antonio-castellon/jsStatistics
src/JsStatistics.ttest.js
3047
/* global module */ // # jsStatistics - T_Test // // A statistics StatUtils library translated from http://commons.apache.org/. // An implementation for Student's t-tests.. // more info : http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/stat/inference/TTest.html // // The code below uses...
apache-2.0
hurzl/dmix
JMPDComm/src/test/java/com/anpmech/mpd/commandresponse/ArtistResponseTest.java
2731
/* * Copyright (C) 2004 Felipe Gustavo de Almeida * Copyright (C) 2010-2016 The MPDroid Project * * All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code mus...
apache-2.0
myshkin5/go-workshop
tour-exercises/exercise-stringer.go
322
package main import "fmt" type IPAddr [4]byte func (i IPAddr) String() string { return fmt.Sprintf("%d.%d.%d.%d", i[0], i[1], i[2], i[3]) } func main() { hosts := map[string]IPAddr{ "loopback": {127, 0, 0, 1}, "googleDNS": {8, 8, 8, 8}, } for name, ip := range hosts { fmt.Printf("%v: %v\n", name, ip) } ...
apache-2.0
djhelbert/iclub
src/test/java/org/iclub/service/UserServiceTest.java
1256
package org.iclub.service; import java.util.Optional; import org.iclub.model.Role; import org.iclub.model.User; import org.iclub.model.UserForm; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfi...
apache-2.0
sleroy/fakesmtp-junit-runner
src/main/java/com/github/sleroy/junit/mail/server/events/NewMailEvent.java
1327
/** * 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
spring-cloud/spring-cloud-sleuth
tests/common/src/main/java/org/springframework/cloud/sleuth/instrument/kafka/KafkaReceiverTest.java
6112
/* * Copyright 2013-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
apache-2.0
inbloom/secure-data-service
tools/data-tools/src/org/slc/sli/test/edfi/entities/MeetingDaysType.java
2429
// // 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: 2012.1...
apache-2.0
gurisxie/weex-test
test/ios/sword.ios.weex.test/src/test/java/sword/ios/app/test/iOSWXSelectTest.java
102
package sword.ios.app.test; /** * Created by admin on 16/4/20. */ public class iOSWXSelectTest { }
apache-2.0
DanielTing/presto
presto-raptor/src/test/java/com/facebook/presto/raptor/storage/TestShardEjector.java
8970
/* * 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...
apache-2.0
leeyazhou/sharding-jdbc
sharding-core/sharding-core-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/groupby/GroupByStreamMergedResult.java
6335
/* * 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
yurloc/assertj-core
src/test/java/org/assertj/core/internal/objects/Objects_assertIsNotIn_with_array_Test.java
3393
/* * Created on Jan 2, 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 writi...
apache-2.0
togglz/togglz
spring-core/src/main/java/org/togglz/spring/activation/SpringEnvironmentPropertyActivationStrategy.java
1849
package org.togglz.spring.activation; import org.springframework.context.ApplicationContext; import org.springframework.core.env.Environment; import org.togglz.core.Feature; import org.togglz.core.activation.AbstractPropertyDrivenActivationStrategy; import org.togglz.core.repository.FeatureState; import org.togglz.cor...
apache-2.0
RyanTech/ubivearound_2
src/com/ubive/ui/adapter/GirdImageAdapter.java
1979
package com.ubive.ui.adapter; import java.util.ArrayList; import java.util.List; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import com.nostra13.universalimageloader.core.assist.SimpleImageLoadingList...
apache-2.0
AdamNachman/continuous_integration_vsdb
src/Continuous Integration/Interfaces/ILogger.cs
2671
// <copyright file="ILogger.cs" company="Adam Nachman"> // Copyright (c) 2009 All Right Reserved Adam Nachman // 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/lic...
apache-2.0
ua-eas/ua-rice-2.1.9
sampleapp/src/it/java/edu/samplu/mainmenu/test/AttributeDefinitionLookUpIT.java
2091
/* * Copyright 2011 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl1.php * * Unless required by applica...
apache-2.0
citrix-openstack-build/ironic
ironic/drivers/modules/fake.py
2494
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # -*- encoding: utf-8 -*- # # Copyright 2013 Hewlett-Packard Development Company, L.P. # # 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 # # htt...
apache-2.0
jcomtois/CustomExtensions
CustomExtensions/Interfaces/IEncrypt.cs
1310
#region License and Terms // CustomExtensions - Custom Extension Methods For C# // Copyright (c) 2011 - 2012 Jonathan Comtois. 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...
apache-2.0
PowerMogli/Rabbit.Db
src/RabbitDB.Contracts/Session/IDbSession.cs
2730
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IDbSession.cs" company=""> // // </copyright> // <summary> // The DbSession interface. // </summary> // ----------------------------------------------------------------------...
apache-2.0
dmtolpeko/sqlines
sqlines-studio-java/src/test/java/com/sqlines/studio/model/tabsdata/ObservableTabsDataTest.java
7152
/* * Copyright (c) 2021 SQLines * * 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...
apache-2.0
wlk/xbot
src/main/scala/com/wlangiewicz/xbot/util/SimpleSpreadOfferRateEstimator.scala
1015
package com.wlangiewicz.xbot.util /** * This simple offer estimator takes into account threshold, max current BID, min current ASK, it aims to either over or under bid by one unit. * @param margin * @param threshold * @param step */ class SimpleSpreadOfferRateEstimator(val margin: Double, val threshold: Double, v...
apache-2.0
kado-yasuyuki/chatwork4s
src/main/scala/com/dys/chatwork4s/log/ChatWorkLazyLogging.scala
265
package com.dys.chatwork4s.log import com.typesafe.scalalogging.Logger import org.slf4j.LoggerFactory /** * Created by dys on 2017/02/11. */ trait ChatWorkLazyLogging { protected lazy val logger: Logger = Logger(LoggerFactory.getLogger(getClass.getName)) }
apache-2.0
orioncode/orionplatform
orion_math/orion_math_core/src/main/java/com/orionplatform/math/statistics/regression/lineardiscriminantanalysis/onefeature/LinearDiscriminantAnalysis1FeatureRegressionParameters.java
1796
package com.orionplatform.math.statistics.regression.lineardiscriminantanalysis.onefeature; import java.util.List; import com.orionplatform.core.abstraction.Orion; import com.orionplatform.math.number.ANumber; public class LinearDiscriminantAnalysis1FeatureRegressionParameters extends Orion { private List<ANumber...
apache-2.0
google/talkback
brailleime/src/phone/java/com/google/android/accessibility/brailleime/translate/EditBufferUeb2.java
13590
/* * Copyright 2019 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
fieldnation/fieldnation-sdk-php
src/FieldNation/CustomFieldInterface.php
431
<?php /** * @author Field Nation <support@fieldnation.com> * @license Apache 2.0 * @copyright 2017 Field Nation */ namespace FieldNation; interface CustomFieldInterface extends IdentifiableInterface { /** * Set the name * * @param string $name * @return self */ public function setN...
apache-2.0
zhiyicx/thinksns-plus
packages/slimkit-plus-news/database/seeds/DatabaseSeeder.php
1413
<?php declare(strict_types=1); /* * +----------------------------------------------------------------------+ * | ThinkSNS Plus | * +----------------------------------------------------------------------+ * | Copyright (c) 2016-Present ZhiYiChuangXiang Technol...
apache-2.0
java110/MicroCommunity
java110-generator/src/main/java/com/java110/code/newBack/Data.java
4240
package com.java110.code.newBack; import java.util.Map; /** * @ClassName Data * @Description TODO * @Author wuxw * @Date 2020/3/22 17:00 * @Version 1.0 * add by wuxw 2020/3/22 **/ public class Data { private boolean autoMove; private String packagePath; private String id; private String name...
apache-2.0
glorycloud/GloryMail
CloudyMail/lib_src/net/fortuna/ical4j/model/ParameterList.java
7618
/** * Copyright (c) 2012, Ben Fortuna * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * o Redistributions of source code must retain the above copyright * notice, this list of condit...
apache-2.0
bnewcomer/code-samples
Apartment_Management_System/res/js/logout.js
198
function logout(underReview){ $.get('../res/php/login.php',{action:'logout'},function(data){ var loc = (underReview) ? 'login.php?under-review' : 'login.php'; location.href = loc; }); }
apache-2.0
coding0011/elasticsearch
x-pack/qa/third-party/active-directory/src/test/java/org/elasticsearch/xpack/security/authc/ldap/AbstractActiveDirectoryTestCase.java
8828
/* * 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.security.authc.ldap; import com.unboundid.lda...
apache-2.0
hexa00/theia
packages/core/src/browser/quick-open/quick-open-model.ts
1678
/* * Copyright (C) 2017 TypeFox 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/LICENSE-2.0 */ import URI from "../../common/uri"; import { Keyb...
apache-2.0
SpoonLabs/gumtree-spoon-ast-diff
src/test/resources/examples/diffOfGenericTypeReferences/multipleNesting/right.java
153
import java.util.List; class MultipleNesting<A, B> extends SuperClass<List<B>> { // 4 levels nested list List<List<List<List<String>>>> list; }
apache-2.0
arthurdarcet/aiohttp
aiohttp/helpers.py
22478
"""Various helper functions""" import asyncio import base64 import binascii import cgi import functools import inspect import netrc import os import platform import re import sys import time import warnings import weakref from collections import namedtuple from contextlib import suppress from math import ceil from pat...
apache-2.0
arangodb/arangodb
tests/js/client/shell/shell-check-metrics-move-noncluster.js
4545
/* jshint globalstrict:false, strict:false, maxlen: 200 */ /* global assertEqual, assertTrue, assertNotEqual, arango */ // ////////////////////////////////////////////////////////////////////////////// // / DISCLAIMER // / // / Copyright 2021 ArangoDB GmbH, Cologne, Germany // / // / Licensed under the Apache License,...
apache-2.0
edisonlz/vue_player
music_player/build/api.js
112
var opn = require('opn') var path = require('path') var express = require('express') var http = require('http')
apache-2.0
moosbusch/xbLIDO
src/net/opengis/gml/impl/CubicSplineDocumentImpl.java
2438
/* * Copyright 2013 Gunnar Kappei. * * 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
akarnokd/RxJavaFlow
src/main/java/rx/disposables/SerialDisposable.java
2362
/** * Copyright 2015 David Karnok * * 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
genericsystem/genericsystem2015
gs-cv/src/main/java/org/genericsystem/cv/utils/ImageAnnotator.java
902
package org.genericsystem.cv.utils; import java.nio.file.Path; import org.genericsystem.cv.Img; import org.genericsystem.cv.retriever.DocFields; import org.opencv.core.Scalar; import org.opencv.imgcodecs.Imgcodecs; import io.vertx.core.json.JsonObject; public class ImageAnnotator { public static Path annotateImag...
apache-2.0
knyga/light-orm
lib/typescript/interfaces/DriverInterface.ts
251
/** * Interface to Driver * @author Oleksandr Knyga <oleksandrknyga@gmail.com> * @license Apache License 2.0 - See file 'LICENSE.md' in this project. */ interface DriverInterface { query(query: string, handler: (err, rows, fields) => void); }
apache-2.0
webadvancedservicescom/magento
dev/tests/unit/testsuite/Magento/Framework/Config/Composer/PackageTest.php
1988
<?php /** * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) */ namespace Magento\Framework\Config\Composer; class PackageTest extends \PHPUnit_Framework_TestCase { const SAMPLE_DATA = '{"foo":"1","bar":"2","baz":["3","4"],"nested":{"one":"5","two":"6", "magento/th...
apache-2.0
shakamunyi/beam
sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/util/DoFnRunners.java
5255
/* * 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
rutvikd/ak-recipes
com_akrecipes-1.0.1/administrator/views/course/view.html.php
2353
<?php /** * @version CVS: 1.0.1 * @package Com_Akrecipes * @author Rutvik Doshi <rutvik@archanaskitchen.com> * @copyright Copyright (C) 2015. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access defined('_JEXEC') or die; jimport('joo...
apache-2.0
Tenor-Inc/tenor-android-core
src/main/java/com/tenor/android/core/network/ApiClient.java
9082
package com.tenor.android.core.network; import android.app.Application; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.util.ArrayMap; import android.text.TextUtils; import com.tenor.android.core.constant.ScreenDensity; i...
apache-2.0
ericnewton76/DataUri
src/DataUriTests/DataUri.Parse.Tests.cs
3484
using System; using System.Collections.Generic; using NUnit.Framework; using DataUri = System.DataUri; namespace DataUriTests { [TestFixture] public class DataUri_Parse_Tests { [Test] [TestCase("data:;base64,QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVo=", "4142434445464748494A4B4C4D4E4F505152535455565758595A")] [T...
apache-2.0
spring-cloud/spring-cloud-aws
spring-cloud-aws-context/src/main/java/org/springframework/cloud/aws/context/annotation/OnClassCondition.java
1481
/* * Copyright 2013-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
apache-2.0
b-slim/calcite
geode/src/main/java/org/apache/calcite/adapter/geode/util/JavaTypeFactoryExtImpl.java
4235
/* * 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
JamesIry/jADT
jADT-samples/src/test/java/com/pogofish/jadt/samples/visitor/ColorEnumExamplesTest.java
789
package com.pogofish.jadt.samples.visitor; import static org.junit.Assert.assertEquals; import java.io.PrintWriter; import java.io.StringWriter; import org.junit.Test; /** * Make sure ColorEnumExamples does what it says it does */ public class ColorEnumExamplesTest { @Test public void test() { che...
apache-2.0
Bloodpearl/FastSearch
FastSearch/Program.cs
538
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace FastSearch { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
apache-2.0
ttx/summitsched
cheddar/sched.py
4427
# Copyright 2015 Thierry Carrez <thierry@openstack.org> # 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 ...
apache-2.0
phasenraum2010/twitterwall2
src/main/java/org/woehlke/twitterwall/configuration/spring/DataSourceConfig.java
809
package org.woehlke.twitterwall.configuration.spring; import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import...
apache-2.0
terascope/teraslice
packages/job-components/src/operations/interfaces.ts
2317
import { ExecutionConfig, Context, OpConfig, APIConfig, WorkerContext } from '../interfaces'; import FetcherCore from './core/fetcher-core'; import SchemaCore, { OpType } from './core/schema-core'; import SlicerCore from './core/slicer-core'; import APICore from './core/api-core'; import ProcessorCo...
apache-2.0
Veegn/talon
talon-biz/src/main/java/me/veegn/talon/biz/settings/service/SettingsManager.java
1635
package me.veegn.talon.biz.settings.service; import me.veegn.talon.biz.settings.bean.SettingsEnv; import java.io.File; public interface SettingsManager { /** * 获取当前配置环境 * @return */ SettingsEnv getCurrentEvn(); String getValue(String name); /** * 根据名称获取当前配置 * @param evn 配置...
apache-2.0
Labs64/NetLicensingClient-java
NetLicensingClient/src/main/java/com/labs64/netlicensing/domain/vo/Money.java
2746
/* 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 writing, software * distribute...
apache-2.0
cmaere/lwb
templates/protostar/index3140.php
765
<?xml version="1.0" encoding="utf-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"><ShortName>National Water Supply and Drainage Board</ShortName><Description>National Water Supply and Drainage Board</Description><InputEncoding>UTF-8</InputEncoding><Image type="image/vnd.microsoft.icon" width="1...
apache-2.0
juanortiz10/ReportApp
app/src/main/java/com/example/juan/apportaofficial/Reportes.java
31560
package com.example.juan.apportaofficial; import android.annotation.TargetApi; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import org.apache.http.HttpEnt...
apache-2.0
SmartI18N/SmartI18N
smarti18n/smarti18n-editor/src/main/java/org/smarti18n/editor/views/ProjectMessageEditView.java
2863
package org.smarti18n.editor.views; import com.vaadin.data.Binder; import com.vaadin.navigator.View; import com.vaadin.navigator.ViewChangeListener; import com.vaadin.spring.annotation.SpringView; import com.vaadin.spring.annotation.UIScope; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Panel; import com...
apache-2.0
jt70471/aws-sdk-cpp
aws-cpp-sdk-ecs/source/model/CreateClusterRequest.cpp
2827
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ecs/model/CreateClusterRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::ECS::Model; using namespace Aws::Utils::Json; using namespace ...
apache-2.0