code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/* Copyright 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...
multi-os-engine/moe-core
moe.apple/moe.platform.ios/src/main/java/apple/uikit/NSParagraphStyle.java
Java
apache-2.0
11,103
/* * Copyright 2004-2011 the Seasar Foundation and the 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 * * Unless ...
seasarorg/s2dao
s2-dao/src/main/java/org/seasar/dao/node/IfNode.java
Java
apache-2.0
2,029
package uk.ac.ox.zoo.seeg.abraid.mp.common.service.workflow.support.extent; import org.junit.Test; import uk.ac.ox.zoo.seeg.abraid.mp.common.domain.DiseaseExtentClass; import uk.ac.ox.zoo.seeg.abraid.mp.common.domain.DiseaseOccurrence; import java.util.Collection; import java.util.HashMap; import java.util.Map; impo...
SEEG-Oxford/ABRAID-MP
src/Common/test/uk/ac/ox/zoo/seeg/abraid/mp/common/service/workflow/support/extent/DiseaseExtentGenerationOutputDataTest.java
Java
apache-2.0
1,345
/** * 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...
spohnan/geowave
core/mapreduce/src/main/java/org/locationtech/geowave/mapreduce/HadoopDataAdapter.java
Java
apache-2.0
1,132
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
summerpulse/amlexo
src/com/google/android/exoplayer/MediaFormat.java
Java
apache-2.0
8,647
/** * Copyright 2010 Wealthfront 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 writing...
wealthfront/kawala
kawala-testing/src/main/java/com/kaching/platform/testing/AllowDNSResolution.java
Java
apache-2.0
1,246
package com.google.api.ads.dfp.jaxws.v201511; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for SwiffyConversionError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleTy...
gawkermedia/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201511/SwiffyConversionErrorReason.java
Java
apache-2.0
1,709
"""REST API for DP.LA Service Hub BIBCAT Aggregator Feed""" __author__ = "Jeremy Nelson, Mike Stabile" import click import datetime import json import math import os import pkg_resources import xml.etree.ElementTree as etree import requests import rdflib import urllib.parse import reports import bibcat.rml.processor ...
KnowledgeLinks/dpla-service-hub
api.py
Python
apache-2.0
14,727
package ru.job4j.convertation; import java.util.ArrayList; import java.util.List; public class ConvertList { public ArrayList<Integer> toList(int[][] array) { ArrayList<Integer> list = new ArrayList<>(); for (int i = 0; i < array.length; i++) { for (int j = 0; j < array.length; j++) { ...
Clydeside/ALipatov
chapter_003/src/main/java/ru/job4j/convertation/ConvertList.java
Java
apache-2.0
1,197
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.cn.jee.modules.qrtz.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.authz.annotation.RequiresPermissions; import or...
copy4dev/jee-base
src/main/java/com/cn/jee/modules/qrtz/web/QrtzJobDetailsController.java
Java
apache-2.0
3,376
package gaia3d.domain; public enum YOrN { Y, N; }
Gaia3D/mago3d
mago3d-user/src/main/java/gaia3d/domain/YOrN.java
Java
apache-2.0
52
module ZAWS class External class AWSCLI class Commands class ELB class RegisterInstancesWithLoadBalancer def initialize(shellout=nil, awscli=nil) @shellout=shellout @awscli=awscli clear_settings self ...
zynxhealth/zaws
lib/zaws/external/awscli/commands/elb/register_instances_with_load_balancer.rb
Ruby
apache-2.0
1,154
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
chromeos/chromeos.dev
lib/filters/component-has-docs.js
JavaScript
apache-2.0
1,060
package com.github.obourgain.elasticsearch.http.handler.document.termvectors; import static com.github.obourgain.elasticsearch.http.TestFilesUtils.readFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import org.elasticsearch.common.bytes.BytesArray; import org.junit.Test; import com.github.obou...
obourgain/elasticsearch-http
src/test/java/com/github/obourgain/elasticsearch/http/handler/document/termvectors/TermVectorResponseTest.java
Java
apache-2.0
1,278
/* * Copyright (C) 2012 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 ...
google/brailleback
braille/brailleback/src/com/googlecode/eyesfree/brailleback/DisplayManager.java
Java
apache-2.0
48,343
/* * 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 ...
heriram/incubator-asterixdb
hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-lsm-invertedindex-test/src/test/java/org/apache/hyracks/storage/am/lsm/invertedindex/util/LSMInvertedIndexTestUtils.java
Java
apache-2.0
31,192
/** * Copyright Acropolis Software SPRL (https://www.acrosoft.be) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
acrosoft-be/shared
Dispatch/src/main/java/be/acrosoft/gaia/shared/dispatch/WeakListener.java
Java
apache-2.0
1,283
/******************************************************************************* * Copyright 2013-2014 Gengyu (Univer) Shi * * 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:...
shigengyu/Hyperion
src/main/java/com/shigengyu/hyperion/core/TransitionCompensator.java
Java
apache-2.0
1,103
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file...
tanglei528/nova
nova/db/api.py
Python
apache-2.0
65,070
#!/usr/bin/python3 import MySQLdb import os import re db = MySQLdb.connect("etos39.cn.ao.ericsson.se","automation","automation","gerrit_data_new") # db = MySQLdb.connect("localhost","root","root","work" ) cursor = db.cursor() cursor.execute('SELECT reviewer_username FROM comments GROUP BY reviewer_username') users...
KiviMao/kivi
Script/Show-Comments-story/Get-All-User.py
Python
apache-2.0
1,268
<?php switch (@$_GET['action']) { default: $query = "SELECT * FROM ix_matchs ORDER BY id DESC"; $sql = mysql_query($query); $texte='<br><table class="liste_table" cellpadding=0 cellspacing=2 align="center"> <tr> <td class="liste_titre" width=20%>Date</td> <td class="liste_titre" width...
studiodev/archives
2005 - PortiX-Team (CMS)/pages/matchs.php
PHP
apache-2.0
5,562
/* Copyright 2014 Rustici Software 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...
nagyistoce/TinCan.NET
TinCan/RemoteLRS.cs
C#
apache-2.0
24,709
var stage, board, tiles, fleets, scale, sWid, is_dragging; var lastMouse = { x:0, y:0 }; var is_dragging = false; $(document).ready(function() { init_stage(); document.addEventListener('keyup', handleKeyUp, false); document.addEventListener('keydown', handleKeyDown, false); loadLobby(); }); /** * Called from ...
Zebbeni/alien-empire
client/game_board.js
JavaScript
apache-2.0
3,574
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/errors/conversion_action_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang....
ptinsley/fling
vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/errors/conversion_action_error.pb.go
GO
apache-2.0
8,831
/* * Copyright 2017 Mirko Sertic * * 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 ...
mirkosertic/Bytecoder
integrationtest/src/main/java/de/mirkosertic/bytecoder/integrationtest/JBox2DSimulation.java
Java
apache-2.0
10,500
// +build linux package node import ( "fmt" "net" "sync" "syscall" "github.com/golang/glog" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "github.com/openshift/origin/pkg/network/common" networkinformers "github.com/openshift/origin/pkg/network/generated/informers/internalversion" "github.com/vishvan...
legionus/origin
pkg/network/node/egressip.go
GO
apache-2.0
6,103
/* * 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 ...
googleinterns/calcite
core/src/main/java/org/apache/calcite/sql/SqlSelectOperator.java
Java
apache-2.0
8,563
package org.docksidestage.hangar.dbflute.dtomapper; import java.util.Map; import org.dbflute.Entity; import org.docksidestage.hangar.dbflute.dtomapper.bs.BsMemberServiceDtoMapper; /** * The DTO mapper of MEMBER_SERVICE. * <p> * You can implement your original methods here. * This class remains when re...
dbflute-test/dbflute-test-active-hangar
src/main/java/org/docksidestage/hangar/dbflute/dtomapper/MemberServiceDtoMapper.java
Java
apache-2.0
776
/* * @Author: aaronpmishkin * @Date: 2016-06-17 09:05:15 * @Last Modified by: aaronpmishkin * @Last Modified time: 2017-06-02 17:48:12 */ // Import Angular Classes: import { Injectable } from '@angular/core'; import { NgZone } from '@angular/core'; // Import Libraries: import * as d3 ...
aaronpmishkin/CUCSC-ValueCharts
client/modules/ValueChart/interactions/ReorderObjectives.interaction.ts
TypeScript
apache-2.0
17,688
// 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...
googleads/googleads-java-lib
modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202105/CdnConfigurationService.java
Java
apache-2.0
1,308
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: https://plantuml.com * * If you like this project or if ...
talsma-ict/umldoclet
src/plantuml-asl/src/net/sourceforge/plantuml/creole/command/CommandCreoleSprite.java
Java
apache-2.0
2,672
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Diagnostics; using TrashyWindowControl; namespace SetCoordinatesExample { class Program { static void Main(string[] args) { ...
sh1n1xs/TrashyWindowControl
TrashyWindowControlExamples/SetCoordinatesExample/Program.cs
C#
apache-2.0
2,416
/** */ package CIM15.IEC61968.Metering; import CIM15.IEC61968.Customers.CustomerAgreement; import CIM15.IEC61968.Customers.CustomersPackage; import CIM15.IEC61970.Core.IdentifiedObject; import CIM15.IEC61970.Domain.DateTimeInterval; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ec...
SES-fortiss/SmartGridCoSimulation
core/cim15/src/CIM15/IEC61968/Metering/EndDeviceControl.java
Java
apache-2.0
33,206
#region License and Terms // MoreLINQ - Extensions to LINQ to Objects // Copysecond (c) 2017 Atif Aziz. All seconds 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 // // htt...
morelinq/MoreLINQ
MoreLinq/FullJoin.cs
C#
apache-2.0
12,941
// SPDX-License-Identifier: Apache-2.0 // Copyright Authors of Hubble //go:build !privileged_tests // +build !privileged_tests package filters import ( "context" "testing" "github.com/stretchr/testify/assert" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" ) func...
cilium/cilium
pkg/hubble/filters/filters_test.go
GO
apache-2.0
3,264
package pet // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "net/http" "github.com/go-swagger/go-swagger/httpkit" ) /*DeletePetBadRequest Invalid pet value swagger:response deletePetBadRequest */ type DeletePetBadReques...
Dataman-Cloud/drone
vendor/github.com/go-swagger/go-swagger/examples/generated/restapi/operations/pet/delete_pet_responses.go
GO
apache-2.0
655
package com.eftimoff.mapreduce.filtering.distinct; import static com.eftimoff.mapreduce.utils.MRDPUtils.transformXmlToMap; import java.io.IOException; import java.util.Map; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; import org.apache.hadoop.fs.Path; import org.apache.hadoo...
geftimov/MapReduce
src/main/java/com/eftimoff/mapreduce/filtering/distinct/DistinctUser.java
Java
apache-2.0
2,821
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using...
brettfo/roslyn
src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs
C#
apache-2.0
4,340
import React, { FC, useState } from 'react'; import styled from 'styled-components'; import { Modal } from 'antd'; import { Z_INDEX_GREATER_THAN_HEADER } from 'components/Header'; import { useHistory } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { useToggle } from 'react-use'; import...
bytedance/fedlearner
web_console_v2/client/src/views/Datasets/CreateDataset/index.tsx
TypeScript
apache-2.0
2,390
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.hierarchy; import com.intellij.history.LocalHistory; import com.intellij.history.LocalHistoryAction; import com.intellij.ide.DeletePro...
GunoH/intellij-community
platform/lang-impl/src/com/intellij/ide/hierarchy/TypeHierarchyBrowserBase.java
Java
apache-2.0
6,301
package exceptions; public class IDaoSaveException extends Exception{ private static final long serialVersionUID = 8041577551538125989L; public IDaoSaveException() { super(); } public IDaoSaveException(String msg) { super(msg); } public IDaoSaveException(String msg,Throwable cause) { super(msg,cause); }...
patrickfav/tuwien
master/SB_task2/src/exceptions/IDaoSaveException.java
Java
apache-2.0
325
// // // Copyright 2012 Kii Corporation // http://kii.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...
kii-dev-jenkins/KiiFileStorageSampleApp
src/com/kii/cloud/engine/TaskType.java
Java
apache-2.0
1,522
package com.xlg.forkids.chat.holder; import android.app.Activity; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.xlg.forkids.R; import com.xlg.forkids.baseitems.BaseHolder; import com.xlg.forkids.baseitems.BaseVAccount; import com.xlg.forkids.baseitems....
RyanTech/Forkids
ForKids/src/com/xlg/forkids/chat/holder/BaseUserInfoHolder.java
Java
apache-2.0
2,094
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using SaanSoft.AspNet.Identity3.MongoDB; using Web.MongoDBIdentitySample.Models; // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 namespace Web.MongoDBIdentitySample.Controllers { publ...
Amevacorp/SaanSoft.AspNet.Identity3.MongoDB
samples/Web.MongoDBIdentitySample/Controllers/DiTestController.cs
C#
apache-2.0
3,643
/* * Copyright 2014,2016 agwlvssainokuni * * 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...
agwlvssainokuni/springapp2
corelib/elemental/src/test/java/cherry/elemental/util/ToMapUtilTest.java
Java
apache-2.0
3,335
package com.hackerrank.test.ut; import static org.junit.Assert.*; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Test; import com.hackerrank.test.FillingJars; public class FillingJarsTestCase { @AfterClass public static void tearDownAfterClass() throws Exception { } @Test public void ...
haokaibo/HankerRank
AmazonTest/src/com/hackerrank/test/ut/FillingJarsTestCase.java
Java
apache-2.0
500
/** * Copyright 2015 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
nekodo/amphtml
build-system/tasks/presubmit-checks.js
JavaScript
apache-2.0
18,988
/* * Copyright 2011-2012 Gregory P. Moyer * * 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 ...
syphr42/libmythtv-java
ws/src/main/java/org/syphr/mythtv/ws/backend/impl/GuideService0_25.java
Java
apache-2.0
2,555
package com.g10.ssm.service; import java.util.List; import com.g10.ssm.po.LearningTaskCoursewareKey; public interface LearningTaskCoursewareService { public List<LearningTaskCoursewareKey> queryLearningTaskCourseware() throws Exception; public String[] queryAllCoursewareUrl(Integer learningTaskId) throws Exceptio...
scaug10/NETESP
src/main/java/com/g10/ssm/service/LearningTaskCoursewareService.java
Java
apache-2.0
835
import { Component, HostListener, Inject } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material'; @Component({ selector: 'cs-volume-delete-dialog', templateUrl: './volume-delete-dialog.component.html', styleUrls: ['./volume-delete-dialog.component.scss'], }) export class VolumeD...
bwsw/cloudstack-ui
src/app/shared/actions/volume-actions/volume-delete/volume-delete-dialog.component.ts
TypeScript
apache-2.0
817
using System; using System.Xml.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Senparc.Weixin.MP.Entities; namespace Senparc.Weixin.MP.Test.MessageHandlers { public partial class MessageHandlersTest { #region 微信认证事件推送 /// <summary> /// 微信认证事件测试 /// </summary> ...
down4u/WeiXinMPSDK
src/Senparc.Weixin.MP/Senparc.Weixin.MP.Test/MessageHandlers/MessageHandlersTest.Event.cs
C#
apache-2.0
6,144
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.util.lang.api; import net.sf.mmm.util.lang.api.attribute.AttributeReadValue; /** * This enum contains the available values for the orientation. * * @see Alignment * ...
m-m-m/util
lang/src/main/java/net/sf/mmm/util/lang/api/Orientation.java
Java
apache-2.0
1,997
package io.github.mapstream; import java.util.Comparator; import java.util.Iterator; import java.util.Optional; import java.util.Spliterator; import java.util.function.*; import java.util.stream.*; class PairEntryStreamImpl<K, V> implements PairEntryStream<K, V> { private Stream<PairEntry<K, V>> delegate; P...
mapstream/mapstream
src/main/java/io/github/mapstream/PairEntryStreamImpl.java
Java
apache-2.0
6,109
package com.github.bingoohuang.excel2beans.annotations; public enum MergeType { /** * 直接合并。 */ Direct, /** * 按相同值合并。 */ SameValue, }
bingoohuang/excel2javabeans
src/main/java/com/github/bingoohuang/excel2beans/annotations/MergeType.java
Java
apache-2.0
194
/******************************************************************************* * Copyright (C) 2014 Philipp B. Costa * * 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.ap...
ufc-great/mpos
android/MpOS API/src/br/ufc/mdcc/mpos/net/profile/ProfileNetworkFull.java
Java
apache-2.0
8,129
// // Copyright (c) Microsoft and contributors. 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 requi...
naveedaz/azure-powershell
src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotDeleteMethod.cs
C#
apache-2.0
6,217
#!/usr/bin/env python # # 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 (th...
Kami/libcloud
contrib/scrape-ec2-prices.py
Python
apache-2.0
9,128
package com.sap.mlt.xliff12.impl.attribute; import com.sap.mlt.xliff12.api.attribute.PropType; import com.sap.mlt.xliff12.impl.base.XliffAttributeImpl; /** * @deprecated */ public class PropTypeImpl extends XliffAttributeImpl implements PropType { public PropTypeImpl(String propType) { super(NAME, pr...
SAP/xliff-1-2
com.sap.mlt.xliff12.impl/src/main/java/com/sap/mlt/xliff12/impl/attribute/PropTypeImpl.java
Java
apache-2.0
340
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MultipleSegmentUploaderTests.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <summary> // Unit tests for the Multiple...
yoavrubin/azure-sdk-for-net
src/ResourceManagement/DataLake.StoreUploader/DataLakeStoreUploader.Tests/UnitTests/MultipleSegmentUploaderTests.cs
C#
apache-2.0
12,372
package com.inktomi.cirrus.forecast; import org.simpleframework.xml.Element; @Element public enum TimeCoordinate { UTC("UTC"), LOCAL("local"); private final String value; TimeCoordinate(String v) { value = v; } public String value() { return value; } public static ...
inktomi/cirrus
cirrus-library/src/main/java/com/inktomi/cirrus/forecast/TimeCoordinate.java
Java
apache-2.0
558
/* * Copyright (C) 2009 ZXing 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 agr...
aqnote/AndroidTest
app-barcode/src/main/java/com/aqnote/app/barcode/history/DBHelper.java
Java
apache-2.0
1,955
/* * Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.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...
xasx/camunda-bpm-platform
engine-spring/src/test/java/org/camunda/bpm/engine/spring/test/transaction/modification/CalculateTimerDate.java
Java
apache-2.0
1,058
/* * 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...
jior/glaf
workspace/glaf-mail/src/main/java/com/glaf/mail/mapper/MailStorageMapper.java
Java
apache-2.0
1,402
/*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom * 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. Redistribution...
rikf/Holophonor
src/main/java/holophonor/org/objectweb/asm/commons/AdviceAdapter.java
Java
apache-2.0
19,221
package gnode import ( "fmt" "io" "sync" "time" ) type ReceiverManager struct { usage int gnode *GNode buffer MessageBuffer receiverList []*MessageReceiver ioChan chan *AntMes nbReceiver int receiver MessageReceiver answerMap map[string]*AntMes getChan chan string ...
freignat91/blockchain
server/gnode/receiverManager.go
GO
apache-2.0
5,407
/** * 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...
ramonmaruko/camel
components/camel-openshift/src/main/java/org/apache/camel/component/openshift/OpenShiftEndpoint.java
Java
apache-2.0
4,430
/* * Copyright 2016-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 ap...
Minato262/Design-Pattern
src/java/main/org/designpattern/manage/base/creationalpatterns/prototype/Prototype.java
Java
apache-2.0
1,057
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
googleinterns/cloud-operations-api-mock
internal/validation/mock_trace_validation.go
GO
apache-2.0
10,158
package org.cnodejs.android.md.ui.jsbridge; import android.webkit.JavascriptInterface; import org.cnodejs.android.md.util.FormatUtils; import org.joda.time.DateTime; public final class FormatJavascriptInterface { public static final String NAME = "formatBridge"; @JavascriptInterface public String getRe...
TakWolf/CNode-Material-Design
app/src/main/java/org/cnodejs/android/md/ui/jsbridge/FormatJavascriptInterface.java
Java
apache-2.0
439
package com.lingju.assistant.view; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.View; import android.widget.RadioButton; import android.widget.RadioGroup; import com.lingju.assistant.R; import java.util.HashMap; import java.util.Map; import butterknife.Bin...
LingjuAI/AssistantBySDK
app/src/main/java/com/lingju/assistant/view/AlarmItemDialog.java
Java
apache-2.0
2,902
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
aboukaram/sunshine-version-chadi
app/src/main/java/com/example/android/sunshine/app/data/WeatherProvider.java
Java
apache-2.0
14,859
/* * Copyright 2010-2011 Nabeel Mukhtar * * 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...
shisoft/LinkedIn-J
core/src/main/java/com/google/code/linkedinapi/schema/InvitationRequest.java
Java
apache-2.0
2,192
export interface DocItem { title: string url?: string children?: DocItem[] } export const DOCS: DocItem[] = [ { title: 'Projects', children: [ { title: 'How to create a project?', url: 'assets/docs/projects/how_to_create_project.html' }, { title: 'How to open, ...
yashdsaraf/reimagined-eureka
frontend/src/app/components/docs/docs-content.ts
TypeScript
apache-2.0
2,385
package com.wuyin.supermarket.manager; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; /** * Created by wuyin on 2016/5/2. * 管理线程池 */ public class ThreadManager { ThreadPoolProxy poolProxy; private static ThreadManager...
wuyinlei/SuperMarket
src/main/java/com/wuyin/supermarket/manager/ThreadManager.java
Java
apache-2.0
3,126
# # Author:: Joshua Timberman (<joshua@getchef.com>) # Copyright (c) 2014, Chef Software, Inc. <legal@getchef.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.or...
jordane/chef
spec/unit/resource/homebrew_package_spec.rb
Ruby
apache-2.0
1,212
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.ap...
pilhuhn/hawkular-android-client
src/main/java/org/hawkular/client/android/backend/model/Environment.java
Java
apache-2.0
1,729
/* * Autopsy Forensic Browser * * Copyright 2014 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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://ww...
sidheshenator/autopsy
Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverOutputParser.java
Java
apache-2.0
6,641
var detect_flowint_8c = [ [ "MAX_SUBSTRINGS", "detect-flowint_8c.html#a7d9ab03945d9f1a2af62c4bb49206536", null ], [ "PARSE_REGEX", "detect-flowint_8c.html#adcc3158aa6bb4d1bd0ddf953a33f55ec", null ], [ "DetectFlowintFree", "detect-flowint_8c.html#a7fbc34befd7d405cffd01896b8fddf6f", null ], [ "DetectFlowi...
onosfw/apis
suricata/apis/detect-flowint_8c.js
JavaScript
apache-2.0
798
/* * gucefVFS: GUCEF module implementing a Virtual File System * Copyright (C) 2002 - 2007. Dinand Vanvelzen * * 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 *...
LiberatorUSA/GUCEF
platform/gucefVFS/src/gucefVFS_CVFSHandle.cpp
C++
apache-2.0
4,430
// ============================================================================ // // Copyright (C) 2006-2018 Talend Inc. - www.talend.com // // This source code is available under agreement available at // https://github.com/Talend/data-prep/blob/master/LICENSE // // You should have received a copy of the agreement //...
Talend/data-prep
dataprep-api/src/main/java/org/talend/dataprep/api/service/command/preparation/PreparationMove.java
Java
apache-2.0
2,751
/** * Copyright 2014 Eediom 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 ...
araqne/logdb
araqne-logdb/src/test/java/org/araqne/logdb/query/expr/ArrayTest.java
Java
apache-2.0
1,892
using dBosque.Stub.Interfaces; using dBosque.Stub.Services; using dBosque.Stub.Services.Extensions; using dBosque.Stub.Services.Types; using dBosque.Stub.Server.Soap.Interface; using Microsoft.AspNetCore.Http; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Runtime....
dbosque/Stub
dBosque.Stub.Server.Soap/Types/SoapStubMessage.cs
C#
apache-2.0
8,596
package com.hantsylabs.example.spring.jpa.spec; import java.util.Date; import com.hantsylabs.example.spring.model.QConference; import com.querydsl.core.BooleanBuilder; import com.querydsl.core.types.Predicate; public class QueryDslPredicates { public static Predicate inProgressConferences() { QConference conf = ...
hantsy/spring4-sandbox
data-jpa/src/main/java/com/hantsylabs/example/spring/jpa/spec/QueryDslPredicates.java
Java
apache-2.0
1,031
// Copyright (c) 2016 Tigera, 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...
projectcalico/calico
libcalico-go/lib/backend/encap/ipip.go
GO
apache-2.0
771
package com.mjrichardson.teamCity.buildTriggers.Fakes; import com.mjrichardson.teamCity.buildTriggers.CacheManager; import java.net.URI; import java.util.HashMap; import java.util.UUID; public class FakeCacheManager implements CacheManager { private HashMap<String, String> cache = new HashMap<>(); @Override...
matt-richardson/teamcity-octopus-build-trigger-plugin
octopus-build-trigger-server/src/test/java/com/mjrichardson/teamCity/buildTriggers/Fakes/FakeCacheManager.java
Java
apache-2.0
773
package javaselast.examples.csv; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.lang.reflect.Field; public class CsvReader extends Reader { private BufferedReader bufferedReader; public CsvReader(Reader reader) { bufferedReader = new BufferedReader(read...
nesterione/JavaTrainings
src/javaselast/examples/csv/CsvReader.java
Java
apache-2.0
945
import logging import pika import sys if sys.version[0] == '2': import Queue as queue else: import queue as queue from .. import rabbitutils import esgfpid.defaults as defaults from esgfpid.utils import loginfo, logdebug, logtrace, logerror, logwarn, log_every_x_times LOGGER = logging.getLogger(__name__) LOGGE...
IS-ENES-Data/esgf-pid
esgfpid/rabbit/asynchronous/thread_feeder.py
Python
apache-2.0
13,289
/* * Copyright (C) 2017 exzogeni.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 by applicable law or agreed to...
DanielSerdyukov/rxsqlite
alchemy/src/main/java/alchemy/Alchemy.java
Java
apache-2.0
1,801
package net.community.chest.jmx; import java.io.IOException; import java.util.Collection; import net.community.chest.dom.DOMUtils; import net.community.chest.io.EOLStyle; import net.community.chest.jmx.dom.MBeanEntryDescriptor; /** * <P>Copyright 2008 as per GPLv2</P> * * <P>Definitions of the proprietary JMX pro...
lgoldstein/communitychest
chest/base-utils/jmx/src/main/java/net/community/chest/jmx/JMXProtocol.java
Java
apache-2.0
4,647
from typing import ClassVar, FrozenSet from ..config import Config from .dependency import IngressClassesDependency, SecretDependency, ServiceDependency from .k8sobject import KubernetesGVK, KubernetesObject from .k8sprocessor import ManagedKubernetesProcessor from .resource import NormalizedResource, ResourceManager...
datawire/ambassador
python/ambassador/fetch/ingress.py
Python
apache-2.0
11,005
/* * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
spring-projects/spring-framework
spring-context/src/main/java/org/springframework/cache/config/CacheNamespaceHandler.java
Java
apache-2.0
2,210
package ca.uhn.fhir.rest.server.interceptor.auth; /* * #%L * HAPI FHIR - Server Framework * %% * Copyright (C) 2014 - 2017 University Health Network * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy ...
eug48/hapi-fhir
hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/AuthorizationInterceptor.java
Java
apache-2.0
12,075
/** * 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 applicable law or agreed to in w...
benjchristensen/RxJava
src/main/java/io/reactivex/internal/observers/BasicIntQueueDisposable.java
Java
apache-2.0
1,391
package com.facepp.demo.mediacodec; import android.opengl.EGL14; import android.opengl.GLSurfaceView; import android.opengl.Matrix; import java.io.IOException; /** * Created by xiejiantao on 2017/10/27. */ public class MediaHelper { /** * muxer for audio/video recording */ private MediaMuxerW...
FacePlusPlus/MegviiFacepp-Android-SDK
faceppdemo/src/main/java/com/facepp/demo/mediacodec/MediaHelper.java
Java
apache-2.0
4,231
#include <ap_int.h> #include "spbits.h" #include "deltas.h" #define bw_num 2 void delta::best_delta_seg_ch( ap_uint<bw_th> dth [seg_ch*seg_ch], //change this when nseg value is changed ap_uint<seg_ch*seg_ch> sth,//change this when nseg value is changed ap_uint<seg_ch*seg_ch> dvl,//change this when nseg value...
nikhilghanathe/HLS-for-EMTF
sources_sim/best_delta.cpp
C++
apache-2.0
2,443
'use strict'; // Report overall code coverage from Istanbul coverage files. // Implemented in ES5 for now /* eslint no-var: 0 */ var _ = require('underscore'); var path = require('path'); var fs = require('fs'); var util = require('util'); var tty = require('tty'); var istanbul = require('istanbul'); var map = _.ma...
stefanschneider/cf-abacus
tools/coverage/src/index.js
JavaScript
apache-2.0
5,626
// Copyright 2007-2015 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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 ...
D3-LucaPiombino/MassTransit
src/MassTransit.AzureServiceBusTransport/Contexts/ConnectionContext.cs
C#
apache-2.0
2,155
package in.notwork.calculator; import java.io.Serializable; import java.util.Objects; /** * @author rishabh. */ public class GeoPoint implements Serializable { private double latitude; private double longitude; public GeoPoint() { super(); } public GeoPoint(double latitude, double lon...
rishabh9/distance-calculator
src/main/java/in/notwork/calculator/GeoPoint.java
Java
apache-2.0
1,339
/** * Copyright 2015-2018 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 appl...
ralscha/bsoncodec-apt
src/main/java/ch/rasc/bsoncodec/model/FieldModel.java
Java
apache-2.0
1,920
/** * Trim leading and trailing whitespace * @return {String} Returns trimmed string */ String.prototype.trim = function() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); } /** * Creates a new string utilizing placeholders defined in the source string * @param {Object} values Array or object whose indices...
lerwine/JSCookbook
src/TypeExtensions/StringExtensions.js
JavaScript
apache-2.0
2,780