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 |
|---|---|---|---|---|---|
config = {
"interfaces": {
"google.bigtable.v2.Bigtable": {
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_dela... | dhermes/google-cloud-python | bigtable/google/cloud/bigtable_v2/gapic/bigtable_client_config.py | Python | apache-2.0 | 2,407 |
/*******************************************************************************
* Copyright 2013
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | TitasNandi/Summer_Project | dkpro-similarity-master/dkpro-similarity-algorithms-core-asl/src/main/java/dkpro/similarity/algorithms/package-info.java | Java | apache-2.0 | 937 |
package org.apereo.cas.config;
import org.apereo.cas.authentication.AuthenticationServiceSelectionPlan;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.consent.ConsentEngine;
import org.apereo.cas.services.ServicesManager;
import org.apereo.cas.web.flow.CasWebflowConfigurer;
impor... | tduehr/cas | support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/config/CasConsentWebflowConfiguration.java | Java | apache-2.0 | 3,498 |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2012, ITU/ISO/IEC
* All rights r... | lheric/GitlHEVCAnalyzer | appgitlhevcdecoder/HM-5.2/source/Lib/TLibDecoder/NALread.cpp | C++ | apache-2.0 | 5,455 |
/*
* Copyright 2017-present Open Networking Foundation
*
* 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 appli... | sdnwiselab/onos | apps/openstacknetworking/src/main/java/org/onosproject/openstacknetworking/impl/HostBasedInstancePortManager.java | Java | apache-2.0 | 6,879 |
package com.deliveredtechnologies.rulebook.runner.test.rulebooks;
/**
* Sample POJO rule with no annotations whatsoever.
*/
public class SampleRuleWithoutRuleAnnotation {
}
| Clayton7510/RuleBook | rulebook-core/src/test/java/com/deliveredtechnologies/rulebook/runner/test/rulebooks/SampleRuleWithoutRuleAnnotation.java | Java | apache-2.0 | 176 |
package play.curator.lock;
import java.util.concurrent.TimeUnit;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.framework.recipes.locks.InterProcessLock;
import org.apache.curator.framework.recipes.locks.InterProcessSemaphor... | jbaiera/zookeeper-play | src/main/java/play/curator/lock/LockClient.java | Java | apache-2.0 | 2,027 |
/*
* 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/incubator-shardingsphere | shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/parser/MySQLParserFacade.java | Java | apache-2.0 | 1,510 |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft 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.apa... | praveennet/azure-powershell | src/ServiceManagement/Compute/Commands.ServiceManagement/HostedServices/SetAzureDeployment.cs | C# | apache-2.0 | 13,839 |
#
#
# 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 n... | telefonicaid/fiware-cosmos-ambari | ambari-agent/src/main/puppet/modules/hdp/lib/puppet/parser/functions/hdp_host.rb | Ruby | apache-2.0 | 1,024 |
/*
* Copyright 2015-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | fengyouchao/fucksocks | src/main/java/sockslib/common/Credentials.java | Java | apache-2.0 | 1,041 |
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | apereo/dotnet-cas-client | DotNetCasClient/CasAuthentication.cs | C# | apache-2.0 | 71,180 |
#include <3rdparty/yaml-cpp/node/node.h>
#include "nodebuilder.h"
#include "nodeevents.h"
namespace YAML
{
Node Clone(const Node& node)
{
NodeEvents events(node);
NodeBuilder builder;
events.Emit(builder);
return builder.Root();
}
}
| izenecloud/izenelib | source/3rdparty/yaml-cpp/node.cpp | C++ | apache-2.0 | 272 |
package com.miaotu.adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.koushikdutta.urlimageviewhelper.UrlImageViewHelper;
impo... | miaotu3/Mitotu | MiaoTu/src/main/java/com/miaotu/adapter/GroupUserAdapter.java | Java | apache-2.0 | 2,624 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullable enable
using System.Collections.Generic;
namespace Microsoft.CodeAnalysis.Shared.Extensions
{
internal static class IAssemblySymbolExtensions... | nguerrera/roslyn | src/Workspaces/Core/Portable/Shared/Extensions/IAssemblySymbolExtensions.cs | C# | apache-2.0 | 2,282 |
package com.custardsource.parfait.spring;
import java.util.Random;
@Profiled
public class DelayingBean {
private final int delay;
public DelayingBean() {
this.delay = new Random().nextInt(100);
}
@Profiled
public void doThing() {
try {
Thread.sleep(delay);
} catch (InterruptedException e) {
throw... | akshayahn/parfait | parfait-spring/src/test/java/com/custardsource/parfait/spring/DelayingBean.java | Java | apache-2.0 | 355 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-06 01:35
from __future__ import unicode_literals
from django.db import migrations, models
def load_settings(apps, schema_editor):
Setting = apps.get_model("climate_data", "Setting")
Setting(
name="receiving_data",
value="0"
).s... | qubs/data-centre | climate_data/migrations/0014_auto_20160906_0135.py | Python | apache-2.0 | 506 |
/*
Copyright 2012, Strategic Gains, 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 writ... | kushalagrawal/RestExpress | src/java/com/strategicgains/restexpress/response/ResponseProcessorResolver.java | Java | apache-2.0 | 2,010 |
/**
* 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... | kevinearls/camel | examples/camel-example-fhir-osgi/src/test/java/org/apache/camel/example/fhir/osgi/FhirOsgiIT.java | Java | apache-2.0 | 3,055 |
/*
* 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 ma... | apache/olingo-odata4 | samples/tutorials/p11_batch/src/main/java/myservice/mynamespace/web/DemoServlet.java | Java | apache-2.0 | 3,114 |
package ingvar.android.processor.service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Future;
i... | orwir/processor | core/src/main/java/ingvar/android/processor/service/Processor.java | Java | apache-2.0 | 8,123 |
/*******************************************************************************
* Copyright (c) quickfixengine.org All rights reserved.
*
* This file is part of the QuickFIX FIX Engine
*
* This file may be distributed under the terms of the quickfixengine.org
* license as defined by quickfixengine.org and ... | Forexware/quickfixj | src/main/java/quickfix/field/OfferSwapPoints.java | Java | apache-2.0 | 1,279 |
// Copyright 2017 The Prometheus 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... | GoogleCloudPlatform/prometheus-engine | vendor/github.com/prometheus/prometheus/tsdb/index/postings.go | GO | apache-2.0 | 16,432 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
namespace Restful.Collections.Generic
{
/// <summary>
/// 表示键值对的线程安全泛型集合
/// </summary>
/// <typeparam name="TKey">键类型</typeparam>
/// <typeparam name="TValue">值类型</typeparam>
[Serializable]
p... | chinadev/Restful | src/Restful/Restful/Collections/Generic/ThreadSafeDictionary.cs | C# | apache-2.0 | 4,347 |
/*
* Copyright (C) 2014 Pedro Vicente Gómez Sánchez.
*
* 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 ... | manolovn/Renderers | sample/src/main/java/com/pedrogomez/renderers/sample/ui/renderers/LiveVideoRenderer.java | Java | apache-2.0 | 2,132 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | pivotal-amurmann/geode | geode-core/src/main/java/org/apache/geode/internal/cache/execute/AbstractExecution.java | Java | apache-2.0 | 17,394 |
# Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
# Copyright 2013 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/licens... | eayunstack/oslo.messaging | oslo/messaging/notify/notifier.py | Python | apache-2.0 | 11,163 |
// Copyright 2015 The LUCI 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... | luci/luci-go | server/auth/authdb/validation.go | GO | apache-2.0 | 4,474 |
/*
* Minimalist Object Storage, (C) 2014 Minio, 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 applica... | flandr/minio | doc.go | GO | apache-2.0 | 701 |
#!/usr/bin/env python
# Copyright (c) 2015 OpenStack Foundation.
# 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/LIC... | chenyujie/hybrid-murano | tools/lintstack.py | Python | apache-2.0 | 6,700 |
# Copyright 2013 Josh Durgin
# 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 a... | tomasdubec/openstack-cinder | cinder/tests/api/v1/test_volumes.py | Python | apache-2.0 | 33,659 |
// Copyright 2018 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 appl... | dropbox/bazel | src/main/java/com/google/devtools/build/lib/skylarkbuildapi/repository/SkylarkOSApi.java | Java | apache-2.0 | 1,570 |
package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyr... | Gaduo/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Resource.java | Java | apache-2.0 | 17,114 |
//=====================================================================
//
//File: $RCSfile: SingleDimensionFixedArrayAssigmentTest_1_Generics.java,v $
//Version: $Revision: 1.5 $
//Modified: $Date: 2013/05/10 04:52:46 $
//
// Generated by: UnitTestGenerator.pl
// Version: 1.9
// Matrix: Sing... | HebaKhaled/bposs | src/com.mentor.nucleus.bp.als.oal.test/src/com/mentor/nucleus/bp/als/oal/test/SingleDimensionFixedArrayAssigmentTest_1_Generics.java | Java | apache-2.0 | 183,440 |
/**
* Copyright 2013 52°North Initiative for Geospatial Open Source Software GmbH
*
* 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
*
... | 52North/OpenSensorSearch | sor-common/src/main/java/org/n52/sor/client/GetMatchingDefinitionsBean.java | Java | apache-2.0 | 3,262 |
/*
* Copyright 2016 e-UCM (http://www.e-ucm.es/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* This project has received funding from the European Union’s Horizon
* 2020 research and innovation programme under grant agreeme... | e-ucm/a2 | routes/applications.js | JavaScript | apache-2.0 | 25,370 |
//===--- IRGenSIL.cpp - Swift Per-Function IR Generation ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | codestergit/swift | lib/IRGen/IRGenSIL.cpp | C++ | apache-2.0 | 187,807 |
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.o... | malakasilva/carbon-event-processing | components/adaptors/event-input-adaptor/org.wso2.carbon.event.input.adaptor.kafka/src/main/java/org/wso2/carbon/event/input/adaptor/kafka/internal/ds/ConsumerKafkaServiceDS.java | Java | apache-2.0 | 2,647 |
package com.carrotsearch.examples.randomizedrunner;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.carrotsearch.randomizedtesting.RandomizedRunner;
/**
* This is a test-based tutorial introducing to randomized JUnit testing using
* {@link RandomizedRunner}. Follow test ... | randomizedtesting/randomizedtesting | examples/maven/src/main/java/com/carrotsearch/examples/randomizedrunner/Test001SimpleUseCase.java | Java | apache-2.0 | 997 |
/**
* Copyright (c), Data Geekery GmbH, contact@datageekery.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... | jOOQ/jOOL | jOOL/src/test/java/org/jooq/lambda/PredicateTests.java | Java | apache-2.0 | 2,035 |
/*
* Copyright 2022 ThoughtWorks, 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 agr... | gocd/gocd | config/config-api/src/test/java/com/thoughtworks/go/config/ArtifactTypeConfigsTest.java | Java | apache-2.0 | 14,363 |
<?php
/*
* This file is part of the Doctrine\OrientDB package.
*
* (c) Alessandro Nadalin <alessandro.nadalin@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Class Updates
*
* @package Doctrine\OrientDB
*... | spartaksun/orientdb-query | src/Formatter/Query/Updates.php | PHP | apache-2.0 | 1,400 |
/*
* Copyright 2015-2021 The OpenZipkin 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 a... | openzipkin/zipkin | zipkin-lens/src/components/DiscoverPage/SearchBar/SearchBar.tsx | TypeScript | apache-2.0 | 8,051 |
/*
* 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.ml.action;
import org.elasticsearch.action.Ac... | nknize/elasticsearch | x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportGetTrainedModelsAction.java | Java | apache-2.0 | 3,814 |
// Copyright 2004, 2005, 2006 The Apache Software Foundation
//
// 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 ... | apache/tapestry-5 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/internal/services/MiddleFilter.java | Java | apache-2.0 | 802 |
#
#
# 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 n... | JingchengDu/hbase | hbase-shell/src/main/ruby/shell.rb | Ruby | apache-2.0 | 11,986 |
package io.cattle.platform.process.agent;
import io.cattle.platform.agent.util.AgentUtils;
import io.cattle.platform.core.constants.StoragePoolConstants;
import io.cattle.platform.core.model.Account;
import io.cattle.platform.core.model.Agent;
import io.cattle.platform.core.model.StoragePool;
import io.cattle.platform... | wlan0/cattle | code/iaas/logic/src/main/java/io/cattle/platform/process/agent/AgentRemove.java | Java | apache-2.0 | 2,106 |
/**
*
*/
package org.hamster.weixinmp.model.menu;
import java.util.List;
import org.hamster.weixinmp.dao.entity.menu.WxMenuBtnEntity;
/**
* @author honey.zhao@aliyun.com
* @version Aug 4, 2013
*
*/
public class WxMenuCreateJson {
private List<WxMenuBtnEntity> button;
public List<WxMenuBtnEntity> getButton... | Wingo7239/WeixinMultiPlatform | src/main/java/org/hamster/weixinmp/model/menu/WxMenuCreateJson.java | Java | apache-2.0 | 617 |
#
# actions.py: routines that actually run the svn client.
#
# Subversion is a tool for revision control.
# See http://subversion.tigris.org for more information.
#
# ====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more con... | wbond/subversion | subversion/tests/cmdline/svntest/actions.py | Python | apache-2.0 | 113,603 |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | chamikaramj/incubator-beam | sdks/python/apache_beam/io/tfrecordio.py | Python | apache-2.0 | 10,445 |
package daemon
import (
"fmt"
"sync"
"time"
"github.com/docker/docker/pkg/units"
)
type State struct {
sync.Mutex
Running bool
Paused bool
Restarting bool
Pid int
ExitCode int
StartedAt time.Time
FinishedAt time.Time
waitChan chan struct{}
}
func NewState() *State {
return &State{
... | mwhudson/docker | daemon/state.go | GO | apache-2.0 | 3,937 |
/*
* Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien
*
* 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
*
* ... | quangnguyen9x/bamboobsc_quangnv | qcharts-web/src/com/netsteadfast/greenstep/qcharts/action/utils/SelectItemFieldCheckUtils.java | Java | apache-2.0 | 1,369 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.mskcc.shenkers.control.track;
/**
*
* @author sol
*/
public enum FileType {
BAM,
WIG,
GTF,
BED,
FA... | shenkers/CrossBrowse | src/main/java/org/mskcc/shenkers/control/track/FileType.java | Java | apache-2.0 | 326 |
<?php
require_once("../config/connect.php");
?>
| Elimean/DMXT | admin/manager_admin_classManager_Updata.php | PHP | apache-2.0 | 50 |
import React from 'react';
import { Box, WorldMap } from 'grommet';
export const SelectPlace = () => {
const [places, setPlaces] = React.useState();
const onSelectPlace = (place) => {
console.log('Selected', place);
setPlaces([{ color: 'graph-1', location: place }]);
};
return (
<Box align="cent... | HewlettPackard/grommet | src/js/components/WorldMap/stories/SelectPlace.js | JavaScript | apache-2.0 | 595 |
/**
* 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,
* Version 2.0 (the "License"); you may not use this file
* except in co... | sheliu/openregistry | openregistry-api/src/main/java/org/openregistry/core/domain/OrganizationalUnit.java | Java | apache-2.0 | 1,279 |
package com.github.czyzby.lml.parser.impl.attribute.list;
import com.badlogic.gdx.scenes.scene2d.ui.List;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.tag.LmlAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;
/** See {@link com.badlogic.gdx.scenes.scene2d.utils.Selection#... | tommyettinger/SquidSetup | src/main/java/com/github/czyzby/lml/parser/impl/attribute/list/RequiredLmlAttribute.java | Java | apache-2.0 | 1,036 |
/*
* 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/cocoon | blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/acting/CopletSetDataAction.java | Java | apache-2.0 | 3,337 |
<?php
include('dao.php');
global $dbh;
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$data = '';
$id = $_POST['id'];
$status = $_POST['status'];
if($status == "Failed" || $status == "Rejected"){
$failureReason = $_POST['failureReason'];
$sql = $dbh->prepare(... | chebryan/Qsoft-Admin | core/callback_url.php | PHP | apache-2.0 | 1,383 |
/*!
* ${copyright}
*/
// Provides the Design Time Metadata for the sap.m.Slider control
sap.ui.define([],
function () {
"use strict";
return {
name: {
singular: "SLIDER_NAME",
plural: "SLIDER_NAME_PLURAL"
},
palette: {
group: "INPUT",
icons: {
svg: "sap/m/designtime/Slider.icon.svg... | SAP/openui5 | src/sap.m/src/sap/m/designtime/Slider.designtime.js | JavaScript | apache-2.0 | 709 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using Sys... | slozier/ironpython2 | Src/IronPython.Modules/math.cs | C# | apache-2.0 | 19,692 |
package org.jrivets.transaction;
/**
* The interface defines an action which can be executed in
* {@link SimpleTransaction} context.
*
* @author Dmitry Spasibenko
*
*/
public interface Action {
/**
* Executes the action itself. In case of fail should throw an exception
*
* @throws Throwabl... | obattalov/jrivets-common | src/main/java/org/jrivets/transaction/Action.java | Java | apache-2.0 | 891 |
/*
* 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... | duesenklipper/wicket-security-1.4 | examples/all_in_one/src/main/java/org/apache/wicket/security/examples/pages/MyUnSecurePage.java | Java | apache-2.0 | 1,765 |
/*
* Copyright 2019, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.admin.model;
import io.fabric8.kubernetes.api.model.HasMetadata;
import java.util.List;
import java.util.Map;
public interface AddressSpacePlan extends H... | EnMasseProject/enmasse | api-model/src/main/java/io/enmasse/admin/model/AddressSpacePlan.java | Java | apache-2.0 | 572 |
################################################################################
# Copyright (c) 2015-2019 Skymind, Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless... | RobAltena/deeplearning4j | pydl4j/pydl4j/downloader.py | Python | apache-2.0 | 3,179 |
package org.carlspring.strongbox.xml.parsers;
import org.carlspring.strongbox.url.ClasspathURLStreamHandler;
import org.carlspring.strongbox.url.ClasspathURLStreamHandlerFactory;
import org.carlspring.strongbox.xml.CustomTagService;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.... | AlexOreshkevich/strongbox | strongbox-configuration/src/main/java/org/carlspring/strongbox/xml/parsers/GenericParser.java | Java | apache-2.0 | 5,887 |
var zkUtil = require('../util');
var zkConstants = require('../constants');
var ZK = require('zookeeper').ZooKeeper;
/**
* @constructor
* encapsulate the lock algorithm. I didn't want it exposed in the client.
* @param {ZkClient} client client doing the locking.
* @param {String} node name of lock.
* @param {Fu... | racker/service-registry | node_modules/zookeeper-client/lib/algorithms/lock.js | JavaScript | apache-2.0 | 6,297 |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class IoT1ClickProjec... | chrisradek/aws-sdk-js | clients/iot1clickprojects.d.ts | TypeScript | apache-2.0 | 20,275 |
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using soothsayer.Infrastructure;
using soothsayer.Infrastructure.IO;
using soothsayer.Migrations;
using soothsayer.Scanners;
using soothsayer.Scripts;
namespace soothsayer
{
public class OracleMigrator : IMigrator
{
... | paybyphone/soothsayer | soothsayer/OracleMigrator.cs | C# | apache-2.0 | 10,677 |
package org.apache.uima.casviewer.core.internal;
import java.util.List;
/**
* A node that contains a list of AnnotationObject(s)
*
*/
public class AnnotationObjectsNode {
protected List<AnnotationObject> annotationList;
public AnnotationObjectsNode () {
}
public AnnotationObjectsNo... | apache/uima-sandbox | CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/core/internal/AnnotationObjectsNode.java | Java | apache-2.0 | 717 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | antoinesd/weld-core | impl/src/main/java/org/jboss/weld/injection/producer/ProducerMethodProducer.java | Java | apache-2.0 | 5,998 |
package controllers;
import play.shaded.ahc.org.asynchttpclient.AsyncHttpClient;
import play.shaded.ahc.org.asynchttpclient.BoundRequestBuilder;
import play.shaded.ahc.org.asynchttpclient.ListenableFuture;
import play.shaded.ahc.org.asynchttpclient.ws.WebSocket;
import play.shaded.ahc.org.asynchttpclient.ws.WebSocketL... | play2-maven-plugin/play2-maven-test-projects | play26/java/websocket-example-using-webjars-assets/test/controllers/WebSocketClient.java | Java | apache-2.0 | 2,469 |
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
# COM interop utility module
import sys
import nt
from iptest.assert_util import *
from iptest.file_util ... | slozier/ironpython2 | Src/IronPython/Lib/iptest/cominterop_util.py | Python | apache-2.0 | 24,101 |
package com.badlogic.gdx.backends.jglfw;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Graphics.DisplayMode;
import com.badlogic.gdx.backends.jglfw.JglfwGraphics.JglfwDisplayMode;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.utils.Array;
import java.awt.GraphicsDevice;
import java.awt.Graph... | domix/libgdx | backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwApplicationConfiguration.java | Java | apache-2.0 | 3,674 |
package com.xnx3.j2ee.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* FriendLog entity. @author MyEclipse Persistence Tools
*... | xnx3/iw_demo | src/com/xnx3/j2ee/entity/FriendLog.java | Java | apache-2.0 | 1,858 |
/*
* Copyright 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... | printminion/gdgsched | android/src/com/google/android/apps/iosched/ui/VendorDetailFragment.java | Java | apache-2.0 | 6,196 |
/**
* Generated with Acceleo
*/
package org.wso2.developerstudio.eclipse.gmf.esb.parts.forms;
// Start of user code for imports
import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.emf.ecore.util.EcoreAdapterFactory;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
import org.ecli... | prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/forms/TaskPropertyPropertiesEditionPartForm.java | Java | apache-2.0 | 18,210 |
package CustomOreGen.Util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
public abstract class MapCollection<K,V> implements Collection<V>
{
protected final Map<K,V> backingMap;
public MapCollection(Map<K,V> backingMap)
... | reteo/CustomOreGen | src/main/java/CustomOreGen/Util/MapCollection.java | Java | artistic-2.0 | 3,588 |
class Helmfile < Formula
desc "Deploy Kubernetes Helm Charts"
homepage "https://github.com/roboll/helmfile"
url "https://github.com/roboll/helmfile/archive/v0.142.0.tar.gz"
sha256 "5475a041f0a1eb5777cc45e3fb06458ae76b1d4840aec89f2fed509d833d0cde"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocat... | sjackman/homebrew-core | Formula/helmfile.rb | Ruby | bsd-2-clause | 2,316 |
import re
# Python 2/3 compatibility hackery
try:
unicode
except NameError:
unicode = str
def compile_url(url):
clean_url = unicode(url).lstrip(u'/')
return re.compile(clean_url)
def compile_urls(urls):
return [compile_url(expr) for expr in urls]
| ghickman/incuna-auth | incuna_auth/middleware/utils.py | Python | bsd-2-clause | 272 |
class Helmsman < Formula
desc "Helm Charts as Code tool"
homepage "https://github.com/Praqma/helmsman"
url "https://github.com/Praqma/helmsman.git",
tag: "v3.7.2",
revision: "6d7e6ddb2c7747b8789dd72db7714431fe17e779"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_... | zyedidia/homebrew-core | Formula/helmsman.rb | Ruby | bsd-2-clause | 1,369 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from math import log
import argh
import numpy as np
from chemreac import ReactionDiffusion
from chemreac.integrate import run
from chemreac.util.plotting import plot_solver_linear_error
def efield_cb(x, ... | bjodah/chemreac | examples/steady_state.py | Python | bsd-2-clause | 4,970 |
package org.jvnet.jaxb2_commons.xml.bind.model.concrete;
import java.util.ArrayList;
import java.util.Collection;
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.activation.MimeType;
import javax.xml.namespace.NamespaceContext;
import javax.xml.namespa... | Stephan202/jaxb2-basics | runtime/src/main/java/org/jvnet/jaxb2_commons/xml/bind/model/concrete/CMInfoFactory.java | Java | bsd-2-clause | 22,939 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
When "String" is called as part of a new expression, it is a constructor: it initialises the newly created object and
The [[Value]] property of the newly constructed... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/String/S15.5.2.1_A1_T16.js | JavaScript | bsd-2-clause | 4,487 |
cask 'anka-flow' do
version '1.1.1.79'
sha256 '9f91222458f5b7b52bee53a62e878faed4a4894ca02fe3d37b52b79b54c523fa'
# d1efqjhnhbvc57.cloudfront.net was verified as official when first introduced to the cask
url "https://d1efqjhnhbvc57.cloudfront.net/AnkaFlow-#{version}.pkg",
referer: 'https://veertu.com/dow... | tedski/homebrew-cask | Casks/anka-flow.rb | Ruby | bsd-2-clause | 1,593 |
/*
* Copyright (C) 2013 Apple Inc. 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 must retain the above copyright
* notice, this list of conditions a... | aosm/WebCore | Modules/mediastream/MediaTrackConstraints.cpp | C++ | bsd-2-clause | 2,294 |
# Generated by Django 3.1.4 on 2020-12-15 15:58
from django.db import migrations
def copy_labels(apps, schema_editor):
Trek = apps.get_model('trekking', 'Trek')
Label = apps.get_model('common', 'Label')
for trek in Trek.objects.all():
for label in trek.labels.all():
label2, created =... | makinacorpus/Geotrek | geotrek/trekking/migrations/0024_copy_labels.py | Python | bsd-2-clause | 649 |
class Cuetools < Formula
desc "Utilities for .cue and .toc files"
homepage "https://github.com/svend/cuetools"
url "https://github.com/svend/cuetools/archive/1.4.1.tar.gz"
sha256 "24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107"
head "https://github.com/svend/cuetools.git"
bottle do
ce... | jdubois/homebrew-core | Formula/cuetools.rb | Ruby | bsd-2-clause | 1,827 |
#define SOL_CHECK_ARGUMENTS 1
#include <sol.hpp>
#include "assert.hpp"
#include <iostream>
int main(int, char*[]) {
std::cout << "=== coroutine state transfer ===" << std::endl;
sol::state lua;
lua.open_libraries();
sol::function transferred_into;
lua["f"] = [&lua, &transferred_into](sol::object t, sol::this_st... | Project-OSRM/osrm-backend | third_party/sol2/examples/coroutine_state.cpp | C++ | bsd-2-clause | 1,131 |
/*
* w-driver-volleyball-lstm-evaluator.cpp
*
* Created on: Jul 13, 2015
* Author: msibrahi
*/
#include <iostream>
#include <vector>
#include <stdio.h>
#include <string>
#include <set>
#include <set>
#include <map>
#include <iomanip>
using std::vector;
using std::set;
using std::multiset;
using std::map;
us... | mostafa-saad/deep-activity-rec | eclipse-project/ibrahim16-deep-act-rec-part/apps/exePhase4.cpp | C++ | bsd-2-clause | 7,728 |
/*
* Copyright (c) 2008-2011 Juli Mallett. 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 must retain the above copyright
* notice, this list of cond... | diegows/wanproxy | event/test/action-cancel1/action-cancel1.cc | C++ | bsd-2-clause | 2,406 |
//
// Created by 王晓辰 on 15/10/2.
//
#include "test_dirname.h"
#include <ftxpath.h>
#include "tester.h"
bool test_dirname_path()
{
std::string path = "/a/b/c/d";
std::string dirname = "/a/b/c";
return dirname == ftx::path::dirname(path);
}
bool test_dirname_onename()
{
std::string name = "name";
retur... | XiaochenFTX/ftxpath | test/test_dirname.cpp | C++ | bsd-2-clause | 1,239 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retai... | aosm/WebCore | bindings/generic/RuntimeEnabledFeatures.cpp | C++ | bsd-2-clause | 5,200 |
package org.joshy.gfx.test.itunes;
/**
* Created by IntelliJ IDEA.
* User: josh
* Date: Jan 28, 2010
* Time: 9:20:01 PM
* To change this template use File | Settings | File Templates.
*/
class Song {
int trackNumber;
int totalTracks;
String name;
String album;
String artist;
int duration;
p... | tonykwok/leonardosketch.amino | src/org/joshy/gfx/test/itunes/Song.java | Java | bsd-2-clause | 622 |
class Dxpy < Formula
include Language::Python::Virtualenv
desc "DNAnexus toolkit utilities and platform API bindings for Python"
homepage "https://github.com/dnanexus/dx-toolkit"
url "https://files.pythonhosted.org/packages/7e/d8/9529a045270fe2cee67c01fde759864b9177ecdd486d016c3a38863f3895/dxpy-0.320.0.tar.gz"... | filcab/homebrew-core | Formula/dxpy.rb | Ruby | bsd-2-clause | 4,787 |
/* global define */
define([
'jquery',
'underscore',
'./dist',
'./axis'
], function($, _, dist, axis) {
var EditableFieldChart = dist.FieldChart.extend({
template: 'charts/editable-chart',
toolbarAnimationTime: 200,
formAnimationTime: 300,
events: _.extend({
... | chop-dbhi/cilantro | src/js/cilantro/ui/charts/editable.js | JavaScript | bsd-2-clause | 8,396 |
# frozen_string_literal: true
require_relative "commands/break"
require_relative "commands/catch"
require_relative "commands/condition"
require_relative "commands/continue"
require_relative "commands/debug"
require_relative "commands/delete"
require_relative "commands/disable"
require_relative "commands/display"
requi... | deivid-rodriguez/byebug | lib/byebug/commands.rb | Ruby | bsd-2-clause | 1,337 |
#!/usr/bin/env python3
import canmatrix.formats
from canmatrix.join import join_frame_by_signal_start_bit
files = ["../test/db_B.dbc", "../test/db_A.dbc"]
target = join_frame_by_signal_start_bit(files)
#
# export the new (target)-Matrix for example as .dbc:
#
canmatrix.formats.dumpp(target, "target.dbc")
canmatrix.... | ebroecker/canmatrix | examples/exampleJoin.py | Python | bsd-2-clause | 357 |
module.exports =
{
"WMSC": {
"WMSC_1_1_1" : require('./1.1.1/WMSC_1_1_1')
}
};
| juanrapoport/ogc-schemas | scripts/tests/WMSC/WMSC.js | JavaScript | bsd-2-clause | 84 |
package cz.metacentrum.perun.core.bl;
import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.Member;
import cz.metacentrum.perun.core.api.PerunSession;
import cz.metacentrum.perun.core.api.User;
import cz.metacentrum.perun.core.api.exceptions.InternalErrorException;
import cz.metacentrum.... | jirmauritz/perun | perun-core/src/main/java/cz/metacentrum/perun/core/bl/SearcherBl.java | Java | bsd-2-clause | 4,338 |