repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
centreon/centreon-open-tickets
widgets/open-tickets/src/action.php
7726
<?php /* * Copyright 2015-2019 Centreon (http://www.centreon.com/) * * Centreon is a full-fledged industry-strength solution that meets * the needs in IT infrastructure and application monitoring for * service performance. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use thi...
apache-2.0
bigshiliu/test
com.hutong.supersdk/src/main/java/com/hutong/supersdk/sdk/modeltools/mumayi/MMYPayResult.java
1514
package com.hutong.supersdk.sdk.modeltools.mumayi; public class MMYPayResult { private String uid; private String orderID; private String payType; private String prodctName; private String productPrice; private String productDesc; private String orderTime; private String tradeSign; private String tradeState...
apache-2.0
freehan/kubernetes
pkg/genericapiserver/options/serving.go
8878
/* Copyright 2016 The Kubernetes 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, ...
apache-2.0
wojons/scalr
app/src/LibWebta/library/Data/RRD/class.RRA.php
2961
<? /** * This file is a part of LibWebta, PHP class library. * * LICENSE * * This program is protected by international copyright laws. Any * use of this program is subject to the terms of the license * agreement included as part of this distribution ar...
apache-2.0
romankagan/DDBWorkbench
xml/impl/src/com/intellij/codeInsight/template/emmet/ZenCodingTemplate.java
17493
/* * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
DJCordhose/jmte
src/com/floreysoft/jmte/TemplateContext.java
3210
package com.floreysoft.jmte; import java.util.ArrayList; import java.util.List; import java.util.Locale; import com.floreysoft.jmte.ProcessListener.Action; import com.floreysoft.jmte.encoder.Encoder; import com.floreysoft.jmte.token.Token; /** * Holds the combined current state of a template during evalu...
apache-2.0
googleads/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202111/LineItemActivityAssociationError.java
2441
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
apache-2.0
justinjose28/Hystrix
hystrix-contrib/hystrix-javanica/hystrix-javanica-aop-alliance/src/test/java/com/netflix/hystrix/contrib/javanica/test/guice/configuration/command/CommandDefaultPropertiesTest.java
1510
/** * Copyright 2017 Netflix, Inc. * <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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law...
apache-2.0
javakf/rdf
src/main/java/com/yoya/net/rpc/impl/RequestToJsonString.java
1946
/* * Copyright (c) 2016, baihw (javakf@163.com). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
apache-2.0
nafae/developer
examples/adwords_axis/src/main/java/adwords/axis/v201409/advancedoperations/UseSharedBiddingStrategy.java
9663
// 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...
apache-2.0
emmartins/wildfly-server-migration
servers/wildfly10.0/src/main/java/org/jboss/migration/wfly10/config/task/DomainConfigurationsMigration.java
1227
/* * Copyright 2016 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...
apache-2.0
rhauch/debezium
debezium-core/src/main/java/io/debezium/crdt/GCounter.java
1221
/* * Copyright Debezium Authors. * * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package io.debezium.crdt; import io.debezium.annotation.NotThreadSafe; /** * A simple grow-only counter that maintains a single changing value by tracking the p...
apache-2.0
ajoymajumdar/genie
genie-core/src/main/java/com/netflix/genie/core/services/JobCoordinatorService.java
2059
/* * * Copyright 2016 Netflix, 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 ap...
apache-2.0
IngloriousCoderz/GetReel
backoffice/server/model/setup/base-tables/1-dynamic/application.roles.js
597
Meteor.startup(function() { ApplicationRoles.remove({}); if (ApplicationRoles.find().count() === 0) { var roles = [ {name: 'Riserve'}, {name: 'Fotografi'}, {name: 'Responsabile'}, {name: 'Supervisore'}, {name: 'Fotografi non disponibili'}, {name: 'Responsabili non disponibil...
apache-2.0
wade-yifeng/soostep
packs/admin/server/services/role.js
156
var RoleCategory = require('../../../shared/enums').RoleCategory; module.exports.getRoleCategories = function (req, res) { res.send(RoleCategory); };
apache-2.0
neykov/incubator-brooklyn
software/base/src/main/java/brooklyn/event/feed/jmx/JmxValueFunctions.java
3525
/* * 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
dcloudio/uni-app
packages/vue-cli-plugin-uni/packages/megalo/dist/vue.runtime.common.js
211944
/*! * Vue.js v0.3.2 * (c) 2014-2018 Evan You * Released under the MIT License. */ 'use strict'; /* */ var emptyObject = Object.freeze({}); // these helpers produces better vm code in JS engines due to their // explicitness and function inlining function isUndef (v) { return v === undefined || v === null } fu...
apache-2.0
contactlab/contactlab-magento-connect
app/code/community/Contactlab/Commons/Model/Resource/Log/Collection.php
269
<?php /** * Log collection. */ class Contactlab_Commons_Model_Resource_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract { /** * Construct. */ public function _construct() { $this->_init("contactlab_commons/log"); } }
apache-2.0
madanadit/alluxio
tests/src/test/java/alluxio/server/tieredstore/TieredStoreIntegrationTest.java
9561
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
apache-2.0
igece/SoxSharp
src/InputFile.cs
2297
using System; using System.Collections.Generic; namespace SoxSharp { /// <summary> /// Input format options. /// </summary> public class InputFile : FormatOptions { /// <summary> /// Input file name. /// </summary> public string FileName { get; set; } /// <summary> /// Input file v...
apache-2.0
nakamura5akihito/six-oval
src/main/java/io/opensec/six/oval/model/definitions/EntityObjectAnySimpleType.java
3273
/** * SIX OVAL - https://nakamura5akihito.github.io/ * Copyright (C) 2010 Akihito Nakamura * * 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...
apache-2.0
tripodsan/jackrabbit-filevault
vault-core/src/main/java/org/apache/jackrabbit/vault/util/Tree.java
5354
/* * 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/bigdecimals/BigDecimals_assertIsBetween_Test.java
3363
/* * Created on May 5, 2013 * * 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
likangning93/cesium
Source/Core/GoogleEarthEnterpriseTerrainData.js
20417
import BoundingSphere from "./BoundingSphere.js"; import Cartesian2 from "./Cartesian2.js"; import Cartesian3 from "./Cartesian3.js"; import Check from "./Check.js"; import defaultValue from "./defaultValue.js"; import defined from "./defined.js"; import DeveloperError from "./DeveloperError.js"; import IndexDatatype f...
apache-2.0
trasa/aws-sdk-java
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/AssociationAlreadyExistsException.java
1183
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
apache-2.0
vdmeer/skb-java-interfaces
src/test/java/de/vandermeer/skb/interfaces/strategies/maps/abstractmap/Test_WeakHashMapStrategy.java
1563
/* Copyright 2016 Sven van der Meer <vdmeer.sven@mykolab.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
apache-2.0
nbartos/calico
calico/felix/fetcd.py
23840
# -*- coding: utf-8 -*- # Copyright 2015 Metaswitch Networks # # 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...
apache-2.0
KinectEx/KinectEx
src/KinectEx/KinectSDK/DetectionResult.cs
153
namespace KinectEx.KinectSDK { public enum DetectionResult { Unknown = 0, No = 1, Maybe = 2, Yes = 3, } }
apache-2.0
FlexSearch/FlexSearch
src/FlexSearch.Api/Helpers.cs
1060
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FlexSearch.Api { public static class Helpers { /// <summary> /// Returns the FlexSearch field type associated with a given /// .net type /// </summary...
apache-2.0
CouleurCitron/cms-inc-2014
autoClass/maj.savepostedassos.php
14988
<?php include_once($_SERVER['DOCUMENT_ROOT'].'/include/autoprepend.php'); // maj.php //pre_dump($_POST); // post des checkboxes d'asso for ($i=0;$i<count($aNodeToSort);$i++){ if ($aNodeToSort[$i]["name"] == "ITEM"){ if ($aNodeToSort[$i]["attrs"]["ASSO"]){ // cas d'asso $aTempClasse = array(); $aTempClasse ...
apache-2.0
shuhari/Shuhari.Framework
Shuhari.Framework.Common/Data/IRepositoryContainer.cs
408
using System.Collections.Generic; namespace Shuhari.Framework.Data { /// <summary> /// Manage multiple repository as one unit, so they can share same session/transaction /// </summary> public interface IRepositoryContainer { /// <summary> /// Get all repositories in this container ...
apache-2.0
nany21/sigteg
vista/html/carrera_desbloquear.php
2112
<!DOCTYPE HTML> <html> <!--Módulo de Desbloquear Carreras--> <head><!--Cabecera--> <!--Elementos que no visualizará el usuario de forma directa, sin embargo, permitirá darle estilos generales al sistema--> <meta charset="UTF-8"><!--Para que se puedan incorporar caracteres especiales y acent...
apache-2.0
clibois/wss4j
ws-security-policy-stax/src/main/java/org/apache/wss4j/policy/stax/enforcer/PolicyInputProcessor.java
13661
/** * 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 m...
apache-2.0
VEVO/hidi
hidi/inout.py
2636
import numpy as np import pandas as pd from hidi.transform import Transform class ReadTransform(Transform): """ Read input csv data from disk. Input data should be a csv file formatted with three columns: :code:`link_id`, :code:`item_id`, and :code:`score`. If score is not provided, it we be ...
apache-2.0
katejim/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/FileDeclarationsHolder.scala
10102
package org.jetbrains.plugins.scala package lang.psi.api import com.intellij.openapi.progress.ProgressManager import com.intellij.psi._ import com.intellij.psi.impl.migration.PsiMigrationManager import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.search.GlobalSearchScope import com.intellij.psi.uti...
apache-2.0
nortal/araneaframework
src/org/araneaframework/uilib/form/control/DefaultSelectControl.java
3184
/* * Copyright 2006 Webmedia Group 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...
apache-2.0
uber/pyro
pyro/contrib/mue/models.py
34333
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 """ Example MuE observation models. """ import datetime import numpy as np import torch import torch.nn as nn from torch.nn.functional import softplus from torch.optim import Adam from torch.utils.data import DataLoader import pyro ...
apache-2.0
OfficeDev/Campaign-Manager-Code-Sample
CampaignManager/src/com/microsoft/campaignmanager/datasource/SPUrl.java
533
package com.microsoft.campaignmanager.datasource; import java.util.List; import org.json.JSONException; import org.json.JSONObject; import com.microsoft.office365.OfficeEntity; public class SPUrl extends OfficeEntity { public static List<SPUrl> listFromJson(JSONObject json) throws JSONException { return OfficeE...
apache-2.0
TelluIoT/ThingML
compilers/c/src/main/java/org/thingml/compilers/c/CCfgMainGenerator.java
94624
/** * 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 *...
apache-2.0
gamejolt/googleads-php-lib
examples/Dfp/v201608/ProductService/UpdateProducts.php
2820
<?php /** * This example updates a product's notes. To determine which products exist, * run GetAllProducts.php. * * PHP version 5 * * 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 L...
apache-2.0
Jumpscale/jumpscale_core8
lib/JumpScale/data/tags/TagsFactory.py
1143
from JumpScale import j from Tags import Tags class TagsFactory: """ Factory Class of dealing with TAGS """ def __init__(self): self.__jslocation__ = "j.data.tags" def getObject(self, tagstring="", setFunction4Tagstring=None): """ check whether labelname exists in the l...
apache-2.0
arthurgregorio/exemplos
RentalOffice/src/main/java/br/com/rentaloffice/application/resources/shiro/ShiroListener.java
1597
package br.com.rentaloffice.application.resources.shiro; import javax.inject.Inject; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.annotation.WebListener; import org.apache.shiro.web.env.DefaultWebEnvironment; import org.apache.shiro.web.env.EnvironmentLoaderListen...
apache-2.0
TuSimple/simpledet
config/resnet_v1b/faster_r50v1bc4_c5_512roi_1x.py
7646
from symbol.builder import FasterRcnn as Detector from symbol.builder import ResNetV1bC4 as Backbone from symbol.builder import Neck from symbol.builder import RpnHead from symbol.builder import RoiAlign as RoiExtractor from symbol.builder import BboxC5V1Head as BboxHead from mxnext.complicate import normalizer_factory...
apache-2.0
losingle/seafile-client
i18n/seafile_it.ts
126502
<?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.1"> <context> <name>AccountManager</name> <message> <location filename="../src/account-mgr.cpp" line="99"/> <source>failed to open account database</source> <translation>impossibile aprire il database dell&apos;account</tran...
apache-2.0
pbouamriou/CodinGame
Temperatures/main.cpp
857
#include <iostream> #include <sstream> #include <string> #include <vector> #include <algorithm> using namespace std; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/ int main() { int n; // the number of temperatures to analyse cin >> n; ...
apache-2.0
WinRoad-NET/wrdoclet-demo
wrdoclet-demosite/src/main/java/net/winroad/Models/Student.java
2971
package net.winroad.Models; import javax.validation.Valid; import javax.validation.constraints.NotNull; import com.alibaba.fastjson.JSON; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; import org.hibern...
apache-2.0
IdiosyncraticDragon/Reading-Notes
Python Parallel Programming Cookbook_Code/Chapter 6/PyCUDA/PyCudaMatrixManipulation.py
1480
import numpy as np from pycuda import driver, compiler, gpuarray, tools # -- initialize the device import pycuda.autoinit kernel_code_template = """ __global__ void MatrixMulKernel(float *a, float *b, float *c) { int tx = threadIdx.x; int ty = threadIdx.y; float Pvalue = 0; for (int k = 0;...
apache-2.0
oehme/analysing-gradle-performance
my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p258/Production5171.java
1891
package org.gradle.test.performance.mediummonolithicjavaproject.p258; public class Production5171 { private String property0; public String getProperty0() { return property0; } public void setProperty0(String value) { property0 = value; } private String property1; ...
apache-2.0
JunkieLand/HDFS-Compactor
hdfs-compactor-build/src/main/scala/it/trenzalore/build/settings/ProjectSettings.scala
157
package it.trenzalore.build.settings object ProjectSettings { val organization = "it.trenzalore" val basePackages = "it.trenzalore.hdfs.compactor" }
apache-2.0
bar771/Space-Invaders
Space_Invaders/src/spaceInvaders/SpriteSheet.java
1118
package spaceInvaders; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; public class SpriteSheet { public static SpriteSheet enemy = new SpriteSheet("enemy.png", 56, 21); public static SpriteSheet spaceship = new SpriteSheet("player.png", 56, 21); public static SpriteSheet bSho...
apache-2.0
iwethey/iwethey
src/org/iwethey/forums/web/post/ReplyPostController.java
4632
/** Copyright 2004 Scott Anderson 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
guidojo/multipleTypescriptCompilers
src/helpers/__tests__/debugTools.spec.ts
871
import { debugLog, setDebugMode } from "../debugTools"; describe("debugTools", () => { let consoleSpy: jest.SpyInstance; beforeEach(() => { consoleSpy = jest.spyOn(global.console, "log"); }); describe("debugLog", () => { it("doesn't log stuff by default", () => { debugLog(...
apache-2.0
Artyou/killbill-ingenico-plugin
src/main/java/org/killbill/billing/plugin/ingenico/client/model/PaymentModificationResponse.java
5632
/* * Copyright 2014-2016 Groupon, Inc * Copyright 2014-2016 The Billing Project, LLC * * The Billing Project 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...
apache-2.0
lowasser/guava-experimental
guava-tests/test/com/google/common/base/CharMatcherTest.java
30987
/* * Copyright (C) 2008 The Guava 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 agre...
apache-2.0
informatik-mannheim/Moduro-CC3D
Simulation/Steppable/TransformationSteppable.py
2890
# Copyright 2016 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 applicable...
apache-2.0
aspnet/AspNetCore
src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/HubConnectionBuilder.java
928
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. package com.microsoft.signalr; /** * A builder for configuring {@link HubConnection} instances. */ public abstract class HubConnectionBuilder { /** * Creates a new instan...
apache-2.0
gspark/PmsAssistant
FluorineFx/Context/IResource.cs
1509
/* FluorineFx open source library Copyright (C) 2007 Zoltan Csibi, zoltan@TheSilentGroup.com, FluorineFx.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the ...
apache-2.0
giuliojiang/Java-2D-games
snake/src/snake/CellType.java
67
package snake; public enum CellType { EMPTY, SNAKE, APPLE }
apache-2.0
JoeMayo/LinqToTwitter
src/LinqToTwitter6/LinqToTwitter/Friendship/FriendshipRequestProcessor.cs
20853
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text.Json; using LinqToTwitter.Common; using LinqToTwitter.Provider; namespace LinqToTwitter { /// <summary> /// processes Twitter Friendship queries /// </summary> public class FriendshipReq...
apache-2.0
qql7267/ICSSshixi
EmpDemo/src/action/RegisterAction.java
1239
package action; import java.io.IOException; import java.sql.SQLException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import dao.UserDAO; import vo.User; /** * Servlet implementation clas...
apache-2.0
liumeifu/OSky
src/OSky.Core.Permissions/Identity/RoleStoreBase.cs
3221
// ----------------------------------------------------------------------- // <copyright file="RoleStoreBase.cs" company=""> // Copyright (c) 2014-2015 OSky. All rights reserved. // </copyright> // <last-editor>Lmf</last-editor> // <last-date>2015-06-24 2:13</last-date> // ------------------------------------...
apache-2.0
ClarkHobbie/miranda
src/main/java/com/ltsllc/miranda/file/states/SingleFileStoppingState.java
3291
/* * Copyright 2017 Long Term Software 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...
apache-2.0
edgedb/edgedb
edb/common/ast/visitor.py
6210
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
apache-2.0
Bedework/bw-util
bw-util-jms/src/main/java/org/bedework/util/jms/NotificationsHandlerFactory.java
2362
/* ******************************************************************** Licensed to Jasig under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Jasig licenses this file to you under the Apache License, ...
apache-2.0
watson-developer-cloud/java-sdk
discovery/src/test/java/com/ibm/watson/discovery/v1/model/DeleteEnvironmentOptionsTest.java
1696
/* * (C) Copyright IBM Corp. 2020. * * 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
wallarelvo/CRoPS
tools/CodePolygons/src/Utils/Geometry.cpp
25245
#include "Utils/Geometry.hpp" #include "Utils/Algebra2D.hpp" #include "Utils/Constants.hpp" #include "Utils/PseudoRandom.hpp" #include "Utils/PrintMsg.hpp" namespace Abetare { void CircleAsPolygon2D(const double cx, const double cy, const double r, const int n, double poly[]) ...
apache-2.0
edlectrico/android-jfact
src/uk/ac/manchester/cs/jfact/kernel/dl/interfaces/DataRoleArg.java
1158
package uk.ac.manchester.cs.jfact.kernel.dl.interfaces; import conformance.PortedFrom; /* This file is part of the JFact DL reasoner Copyright 2011 by Ignazio Palmisano, Dmitry Tsarkov, University of Manchester This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser...
apache-2.0
tdedobbeleer/soccer-angular
src/app/components/motm-poll/motm-poll.component.spec.ts
730
/* tslint:disable:no-unused-variable */ import {async, ComponentFixture, TestBed} from "@angular/core/testing"; import {MotmPollComponent} from "./motm-poll.component"; describe('MotmPollComponent', () => { let component: MotmPollComponent; let fixture: ComponentFixture<MotmPollComponent>; beforeEach(asyn...
apache-2.0
vzrus/VZF
vzfsrc/VZF.UnitTests/VZF.Tests.BasicTests/UtilTests.cs
2377
/* Yet Another Forum.NET * * Copyright (C) Jaben Cargman * http://www.yetanotherforum.net/ * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limi...
apache-2.0
multi-os-engine/moe-core
moe.apple/moe.platform.ios/src/main/java/apple/scenekit/struct/SCNVector4.java
2141
/* 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
mynameislau/space-munera
dev/js/dngn/DeletionSystem.js
243
define([], function () { 'use strict'; return { run: function ($entity) { if ($entity.bodyComp.health.value <= 0) { console.log($entity.prenom + ' deletion'); $entity.dispatcher.fire('deletion', $entity); } } }; });
apache-2.0
hgirish/MusicStore
src/MusicStore/Areas/Identity/Pages/Account/Manage/TwoFactorAuthentication.cshtml.cs
2643
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using MusicStore.Models; namespace MusicStore.Areas.Identity.Pa...
apache-2.0
Jianfu-She/algorithms
algorithms-leetcode/0235 Lowest Common Ancestor of a Binary Search Tree/Solution.java
1132
/* Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes v and w as the lowest node in T that has both v and w as descendants (where we allow a node to be a descen...
apache-2.0
xuzhongxing/deeplearning4j
deeplearning4j-nlp-parent/deeplearning4j-nlp-uima/src/test/java/org/deeplearning4j/models/word2vec/iterator/Word2VecIteratorTest.java
2850
/* * * * Copyright 2015 Skymind,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 * * * * U...
apache-2.0
ctripcorp/x-pipe
services/ctrip-service/src/test/java/com/ctrip/xpipe/service/datasource/QConfigDataSourceProviderTest.java
568
package com.ctrip.xpipe.service.datasource; import com.ctrip.xpipe.AbstractTest; import org.junit.Assert; import org.junit.Test; import qunar.tc.qconfig.client.TypedConfig; import static org.junit.Assert.*; /** * @author zhuchen * Apr 2020/4/8 2020 */ public class QConfigDataSourceProviderTest extends AbstractTes...
apache-2.0
JDownloader/QA_H2014_Equipe_B3
src/main/java/ca/ulaval/glo4002/services/PatientService.java
2722
package ca.ulaval.glo4002.services; import javax.persistence.EntityManager; import javax.persistence.EntityTransaction; import ca.ulaval.glo4002.domain.drug.DrugRepository; import ca.ulaval.glo4002.domain.patient.Patient; import ca.ulaval.glo4002.domain.patient.PatientRepository; import ca.ulaval.glo4002.domain.presc...
apache-2.0
jgitver/jgitver
src/main/java/fr/brouillard/oss/jgitver/impl/pattern/VersionPatternGrammarDefinition.java
5147
/** * Copyright (C) 2016 Matthieu Brouillard [http://oss.brouillard.fr/jgitver] (matthieu@brouillard.fr) * * 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.o...
apache-2.0
BlesseNtumble/GalaxySpace
src/main/java/galaxyspace/systems/SolarSystem/planets/overworld/inventory/ContainerModernSolarPanel.java
3382
package galaxyspace.systems.SolarSystem.planets.overworld.inventory; import galaxyspace.systems.SolarSystem.planets.overworld.tile.TileEntityModernSolarPanel; import micdoodle8.mods.galacticraft.api.item.IItemElectric; import micdoodle8.mods.galacticraft.core.inventory.SlotSpecific; import net.minecraft.entity.player....
apache-2.0
rgoldberg/guava
android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java
3245
/* * Copyright (C) 2008 The Guava 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 agre...
apache-2.0
luciapayo/RxDynamicSearch
app/src/main/java/com/lucilu/rxdynamicsearch/repository/base/ICountryRepository.java
471
package com.lucilu.rxdynamicsearch.repository.base; import com.lucilu.rxdynamicsearch.data.pojo.Country; import android.support.annotation.NonNull; import java.util.List; import polanski.option.Option; import rx.Observable; /** * Countries repository. */ public interface ICountryRepository { /** * Gets...
apache-2.0
wuranbo/elasticsearch
core/src/main/java/org/elasticsearch/snapshots/SnapshotInfo.java
19000
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
apache-2.0
malonsolopez/wfcrc-android
app/src/main/java/com/wfcrc/sqlite/SQLiteHelper.java
2210
package com.wfcrc.sqlite; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by maria on 11/10/16. */ public class SQLiteHelper extends SQLiteOpenHelper { // If you change the database schema, you must increment the datab...
apache-2.0
StateFarmInsCodingCompetition/2013-Coding-Competition-Problem
src/main/java/com/sf/codingcomp/xmlhandler/IXMLHandler.java
145
package com.sf.codingcomp.xmlhandler; public interface IXMLHandler { String toXML(Input inputParameter); Output fromXML(String output); }
apache-2.0
WojciechZankowski/iextrading4j
iextrading4j-api/src/main/java/pl/zankowski/iextrading4j/api/refdata/ListingCenter.java
500
package pl.zankowski.iextrading4j.api.refdata; public enum ListingCenter { NYSE_AMERICAN, NASDAQ_BX, NYSE_NATIONAL, FINANCIAL_INDUSTRY_REGULATORY_AUTHORITY, INTERNATIONAL_SECURITIES_EXCHANGE, CBOE_EDGA, CBOE_EDGX, CHICAGO_STOCK_EXCHANGE, NEW_YORK_STOCK_EXCHANGE, OVER_THE_COUNTE...
apache-2.0
DariusX/camel
components/camel-disruptor/src/test/java/org/apache/camel/component/disruptor/vm/DisruptorVmInOutChainedTimeoutTest.java
2966
/* * 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
ScottPJones/beaker-notebook
kernel/base/src/main/java/com/twosigma/beaker/jupyter/SocketEnum.java
737
/* * Copyright 2017 TWO SIGMA OPEN SOURCE, 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 appl...
apache-2.0
Echopraxium/apache_metamodel_dotnet_core_bud
core/org/apache/metamodel/core/schema/Column.cs
3588
/** * 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
ldimaggi/almighty-core
jsonapi/error_handler.go
2978
package jsonapi import ( "crypto/rand" "encoding/base64" "fmt" "io" "net/http" "github.com/almighty/almighty-core/errors" "github.com/almighty/almighty-core/log" "github.com/goadesign/goa" errs "github.com/pkg/errors" "golang.org/x/net/context" ) const ( // Media type for errors returned by the JSON API e...
apache-2.0
ptomli/dropwizard
dropwizard-client/src/test/java/io/dropwizard/client/JerseyClientBuilderTest.java
9325
package io.dropwizard.client; import com.codahale.metrics.MetricRegistry; import com.fasterxml.jackson.databind.ObjectMapper; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.filter.GZIPContentEncodingFilter; import com.sun.jersey.client.apache4.ApacheHttpClient4; import io.dropwizard.jersey.j...
apache-2.0
jasonqu/jtoc
src/test/files/expected/src/junit/samples/money/package-info.java
76
/** * Example "Money" for JUnit v3.x. */ package junit.samples.money;
apache-2.0
dlbunker/ps-guitar-rest
src/main/java/com/guitar/repository/LocationJpaRepository.java
628
package com.guitar.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.guitar.model.Location; @Repository public interface LocationJpaRepository extends JpaRepository<Location, Long> { List<Location> findBySta...
apache-2.0
java110/MicroCommunity
service-goods/src/main/java/com/java110/goods/bmo/productLabel/IDeleteProductLabelBMO.java
363
package com.java110.goods.bmo.productLabel; import com.java110.po.productLabel.ProductLabelPo; import org.springframework.http.ResponseEntity; public interface IDeleteProductLabelBMO { /** * 修改产品标签 * add by wuxw * @param productLabelPo * @return */ ResponseEntity<String> delete(Produ...
apache-2.0
Arink98/HSP-Review
database/Database.php
1036
<?php require __DIR__ . '/../AutoLoader.php'; class Database { /** @var PDO */ private $connection; function __construct() { $options = array( PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8' ); try { $this->connection = new PDO('mysql:host=localhost;dbnam...
apache-2.0
jan-schubert/MailMessaging
Source/Net/MailMessaging.Plain.Net.UnitTest/_Commands/_ListCommand/ParseResponse.cs
6764
using System.Linq; using FluentAssertions; using MailMessaging.Plain.Contracts.Commands; using MailMessaging.Plain.Contracts.Services; using Moq; using Xunit; namespace MailMessaging.Plain.Net.UnitTest._Commands._ListCommand { public class ParseResponse { [Fact] public void ShouldP...
apache-2.0
GrahamLea/SodaTest
sodatest-runtime/src/main/scala/org/sodatest/runtime/processing/formatting/xhtml/XhtmlParameterisedBlockFormatter.scala
4122
/* * Copyright (c) 2011 Belmont Technology Pty Ltd. 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...
apache-2.0
SHAF-WORK/shaf
shell/src/main/java/org/shaf/shell/action/OnDownloadCommand.java
2751
/** * Copyright 2014-2015 SHAF-WORK * * 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 agr...
apache-2.0
Shawnnneee/SIP-Grading-Client
SIPGradingAdmin/assets/js/listStudents.js
3768
var parts = window.location.search.substr(1).split("&"); var $_GET = {}; for (var i = 0; i < parts.length; i++) { var temp = parts[i].split("="); $_GET[decodeURIComponent(temp[0])] = decodeURIComponent(temp[1]); } $(document).ready(function () { if($_GET['message']){ rfs_notify.show($_GET['message'...
apache-2.0
blakekohler/TodayILearned
app/blogposts.component.ts
1128
import { Component, OnInit, provide, ElementRef, Injector, Renderer} from 'angular2/core'; import { Router } from 'angular2/router'; import { BlogPost } from './blogpost'; //import { HeroDetailComponent } from './hero-detail.component'; import { BlogPostService } from './blogpost.service'; @Component({ se...
apache-2.0
cniweb/ant-contrib
ant-contrib/src/main/java/net/sf/antcontrib/design/Design.java
11341
/* * Copyright (c) 2001-2005 Ant-Contrib project. 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
ankitPagalGuy/RxJava2-Android-Samples
app/src/main/java/com/rxjava2/android/samples/TimerExample.java
2729
package com.rxjava2.android.samples; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.rxjava2.android.samples.utils.AppConstant; import java.util.concurrent.TimeUnit; ...
apache-2.0