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 2000-2012 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... | semonte/intellij-community | java/java-impl/src/com/intellij/psi/impl/source/codeStyle/TabPostFormatProcessor.java | Java | apache-2.0 | 18,894 |
import {
Component, OnDestroy, OnInit, ViewChild, ContentChild, TemplateRef,
Input, EventEmitter
} from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { ConfirmationService, Confirmation } from 'primeng/primeng';
@Component({
selector: 'rang-confirm-dialog',
template: `
... | jotorren/ra-ng | src/navigation/confirmation-dialog.component.ts | TypeScript | apache-2.0 | 3,494 |
package com.example.yang.test.thread;
import android.content.Context;
import android.net.DhcpInfo;
import android.os.Environment;
import com.example.yang.test.util.LogUtils;
import com.example.yang.test.util.WifiManageUtils;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import ... | youngge/test | app/src/main/java/com/example/yang/test/thread/WifiClientThread.java | Java | apache-2.0 | 3,645 |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... | djw8605/condor | src/condor_dagman/condor_submit_dag.cpp | C++ | apache-2.0 | 40,876 |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | robsoncardosoti/flowable-engine | modules/flowable-engine/src/test/java/org/flowable/engine/test/api/event/HistoricActivityEventsTest.java | Java | apache-2.0 | 8,365 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | gravitee-io/graviteeio-access-management | gravitee-am-repository/gravitee-am-repository-tests/src/test/java/io/gravitee/am/repository/oauth2/api/AuthorizationCodeRepositoryTest.java | Java | apache-2.0 | 2,837 |
import sys
import os.path
from logging import ERROR, WARN, INFO, DEBUG
import time
try:
import datablox_framework
except ImportError:
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),
"../../datablox_framework")))
import datablox_framework
fro... | mpi-sws-rse/datablox | blox/web_crawler_shard__1_0/b_web_crawler_shard.py | Python | apache-2.0 | 1,854 |
/*
* Copyright (C) 2015 hops.io.
*
* 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... | bcleenders/hops-metadata-dal | src/main/java/io/hops/metadata/yarn/dal/YarnProjectsDailyCostDataAccess.java | Java | apache-2.0 | 1,339 |
##
## Copyright [2013-2016] [Megam Systems]
##
## 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... | morpheyesh/nilavu | app/controllers/catalogs_controller.rb | Ruby | apache-2.0 | 3,331 |
package org.estatio.module.lease.contributions;
import javax.inject.Inject;
import org.joda.time.LocalDate;
import org.apache.isis.applib.annotation.Action;
import org.apache.isis.applib.annotation.ActionLayout;
import org.apache.isis.applib.annotation.InvokeOn;
import org.apache.isis.applib.annotation.Mixin;
impor... | estatio/estatio | estatioapp/app/src/main/java/org/estatio/module/lease/contributions/Lease_calculateLegacy.java | Java | apache-2.0 | 2,516 |
/*
* Copyright (c) 2016, 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.apach... | malinthaprasan/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/GatewayUtils.java | Java | apache-2.0 | 68,636 |
import {ActionType, ProcessStateType, ProcessType} from "./types"
import {
descriptionProcessArchived,
descriptionSubprocess,
descriptionSubprocessArchived,
unknownDescription,
unknownTooltip,
} from "./messages"
import {absoluteBePath} from "../../common/UrlUtils"
export const unknownIcon = "/assets/states/... | TouK/nussknacker | ui/client/components/Process/ProcessStateUtils.ts | TypeScript | apache-2.0 | 2,550 |
<?php
namespace Audiens\AppnexusClient\exceptions;
use Audiens\AppnexusClient\repository\RepositoryResponse;
/**
* Class UploadException
*/
class UploadException extends \Exception
{
/**
* @param RepositoryResponse $repositoryResponse
*
* @return self
*/
public static function failed(R... | Audiens/appnexus-client | src/exceptions/UploadException.php | PHP | apache-2.0 | 841 |
package com.google.api.ads.dfp.jaxws.v201405;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Lists all errors associated with {@link ExchangeRate} objects.
*
*
* <p>Java class for Excha... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201405/ExchangeRateError.java | Java | apache-2.0 | 1,623 |
package org.tanc.inner;
/**
* 练习 1
* Created by tanc on 2017/4/17.
*/
public class Outer1 {
// 外部类的私有变量
private String privateField;
public Outer1(String privateField) {
this.privateField = privateField;
}
/**
* 创建一个内部类并返回
*/
public Inner getInstance() {
return n... | gogotanc/java-demo | inner/src/main/java/org/tanc/inner/Outer1.java | Java | apache-2.0 | 717 |
/**
* Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.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 re... | yuqirong/Koku | app/src/main/java/com/yuqirong/koku/cache/ACache.java | Java | apache-2.0 | 21,105 |
// Copyright 2018 PingCAP, 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 i... | pingcap/tidb | planner/core/point_get_plan.go | GO | apache-2.0 | 54,775 |
package main
/*
#cgo LDFLAGS: -L${SRCDIR} -latalk
#include <stdlib.h>
#include <errno.h>
#include <netatalk/endian.h>
#include <netatalk/at.h>
#include <atalk/atp.h>
#include <atalk/netddp.h>
#include <atalk/nbp.h>
#include <atalk/util.h>
#include <atalk/unicode.h>
const charset_t kChMac = CH_MAC;
const charset_t kCh... | DrJosh9000/humbletwitter | memo.go | GO | apache-2.0 | 6,226 |
package com.pythoncat.numgobang;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public voi... | duckAndroid/numGobang | app/src/test/java/com/pythoncat/numgobang/ExampleUnitTest.java | Java | apache-2.0 | 401 |
/*
* Copyright (C) 2013 Brett Wooldridge
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | clidev/NuProcess | src/main/java/com/zaxxer/nuprocess/windows/ProcessCompletions.java | Java | apache-2.0 | 11,711 |
import responses
from zeus.constants import Permission
from zeus.models import (
Repository,
RepositoryAccess,
RepositoryBackend,
RepositoryProvider,
)
REPO_DETAILS_RESPONSE = """{
"id": 1,
"full_name": "getsentry/zeus",
"clone_url": "https://github.com/getsentry/zeus.git",
"ssh_url": ... | getsentry/zeus | tests/zeus/api/resources/test_github_repositories.py | Python | apache-2.0 | 4,294 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... | popojargo/couchdb-fauxton | app/core/router.js | JavaScript | apache-2.0 | 3,129 |
package org.lirazs.robolayout.core.resource.drawable;
/**
* Created on 7/31/2015.
*/
public class GradientDrawableCornerRadius {
public static GradientDrawableCornerRadius zero() {
GradientDrawableCornerRadius gradientDrawableCornerRadius = new GradientDrawableCornerRadius();
gradientDrawableCo... | liraz/robolayout | robolayout-ios/robolayout-ios-core/src/main/java/org/lirazs/robolayout/core/resource/drawable/GradientDrawableCornerRadius.java | Java | apache-2.0 | 1,572 |
/*
* Copyright (C) 2008 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... | yangxinwu/- | src/com/portaura/zxing/ResultHandlerFactory.java | Java | apache-2.0 | 1,309 |
/*
* Copyright (C) 2015-2016 QuickAF
*
* 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... | Jamling/AFDemo | app/src/main/java/cn/ieclipse/af/demo/sample/volley/upload/UploadActivity.java | Java | apache-2.0 | 7,480 |
/**
* CodeOrgApp: Applab
*
* Copyright 2014-2015 Code.org
*
*/
'use strict';
import Blockly from '../blockly';
import msg from '../locale';
import codegen from '../codegen';
import utils from '../utils';
import _ from 'lodash';
var RANDOM_VALUE = 'random';
var HIDDEN_VALUE = '"hidden"';
var CLICK_VALUE = '"click... | BoldIdeaInc/appmaker | app/applab/blocks.js | JavaScript | apache-2.0 | 2,112 |
<?php
/**
* Created by PhpStorm.
* User: Eduardo Ribeiro
* Date: 04/08/2016
* Time: 17:37
*/
require('../admin/lib/DBMySql.php');
require('../admin/classe/functions.php');
if(isset($_GET["operacao"]) && $_GET["operacao"] == "sair"){
//echo "teste";
@session_start();
$_SESSION["id"] = NULL;
$_SESSI... | ribeiro-eduardo/crossfit | hd/processausuarios.php | PHP | apache-2.0 | 1,501 |
package net.rubyeye.xmemcached.aws;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeoutException;
import org.slf4j.Logger;
import org.slf4j.Log... | killme2008/xmemcached | src/main/java/net/rubyeye/xmemcached/aws/AWSElasticCacheClient.java | Java | apache-2.0 | 10,164 |
/*
Copyright 2021 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | knative-sandbox/net-gateway-api | pkg/client/gatewayapi/informers/externalversions/apis/v1alpha2/tlsroute.go | GO | apache-2.0 | 3,658 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Writa.Models.Settings;
namespace Writa.Models
{
public interface IWritaPage
{
GlobalSettings Settings { get; set; }
WritaSettings BlogSettings { get; set; }
WritaPos... | cdc1979/Writa | Writa.Models/WritaPage.cs | C# | apache-2.0 | 1,106 |
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
module ActiveSupport
class TestCase
# Setup all fixtures in test/fixtures/*.yml for
# all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explici... | wrpinheiro/depot-agile-rails | test/test_helper.rb | Ruby | apache-2.0 | 488 |
package com.planet_ink.coffee_mud.Behaviors;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_i... | vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Behaviors/RandomTraps.java | Java | apache-2.0 | 11,460 |
package com.ipz2014.server.responses;
import java.io.Serializable;
public class GetUserFeedbackResponse extends BaseResponse implements Serializable {
private String data;
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
}
| bosicc/ipz2014 | ipz2014api/src/main/java/com/ipz2014/server/responses/GetUserFeedbackResponse.java | Java | apache-2.0 | 312 |
package mil.army.usace.ehlschlaeger.rgik.core;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.... | chuckre/DigitalPopulations | PopulationRealizer/Research GIS Kernel/src/mil/army/usace/ehlschlaeger/rgik/core/CSVTable.java | Java | apache-2.0 | 11,853 |
package org.apache.commons.jcs.auxiliary.lateral;
/*
* 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 A... | mohanaraosv/commons-jcs | commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/lateral/LateralCacheMonitor.java | Java | apache-2.0 | 8,997 |
package com.legendshop.core.tag;
import com.legendshop.core.helper.PropertiesUtil;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
public class PhotoTag extends LegendShopTag {
private String item;
private String prefix = PropertiesUtil.getPhotoPathPrefix();
public void doTag()... | covito/legend-shop | src/main/java/com/legendshop/core/tag/PhotoTag.java | Java | apache-2.0 | 496 |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl.status;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openap... | leafclick/intellij-community | platform/platform-impl/src/com/intellij/openapi/wm/impl/status/AddTestProcessAction.java | Java | apache-2.0 | 1,523 |
package ru.vitali.pft.sandbox;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Collections {
public static void main(String[] args) {
String[] langs = {"Java", "C#", "Python", "PHP"};
List<String> languages = Arrays.asList("Java", "C#", "Python", "PHP");
for (... | vlucenco/java_learn | sandbox/src/main/java/ru/vitali/pft/sandbox/Collections.java | Java | apache-2.0 | 417 |
package mxgo
import (
"html/template"
"github.com/menghx/mxgo/httplib"
"encoding/json"
"errors"
)
type Result interface {
Render() error
}
type BaseResult struct {
Request *httplib.Request
Response *httplib.Response
Data interface {}
}
type XMLResult struct {
*BaseResult
}
func (result XMLResult) Rende... | menghx/mxgo | result.go | GO | apache-2.0 | 1,631 |
package org.jcip;
import net.jcip.annotations.*;
/**
* BaseBoundedBuffer
* <p/>
* Base class for bounded buffer implementations
*
* @author Brian Goetz and Tim Peierls
*/
@ThreadSafe
public abstract class BaseBoundedBuffer <V> {
@GuardedBy("this") private final V[] buf;
@GuardedBy("this") private int ta... | tzpBingo/java-example | src/main/java/org/jcip/BaseBoundedBuffer.java | Java | apache-2.0 | 1,036 |
package com.google.api.ads.dfp.jaxws.v201308;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Lists all errors associated with line item-to-creative association dates.
*
*
* <p>Java clas... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201308/LineItemCreativeAssociationError.java | Java | apache-2.0 | 1,784 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import talib
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 30)
pd.set_option('precision', 7)
pd.options.display.float_format = '{:,... | Ernestyj/PyStudy | finance/DaysTest/DaysDataPrepareOld.py | Python | apache-2.0 | 5,771 |
package radix
const (
dn = 3
k = 10
)
var C []int
// 分类 ------------- 内部非比较排序
// 数据结构 ---------- 数组
// 最差时间复杂度 ---- O(n * dn) dn表示待排序元素的数字位数
// 最优时间复杂度 ---- O(n * dn)
// 平均时间复杂度 ---- O(n * dn)
// 所需辅助空间 ------ O(n * dn)
// 稳定性 ----------- 稳定
func LsdRadixSort(a []int, n int) {
for d := 1; d <= dn; d++ {
Counti... | danielsunzhongyuan/go_practice | algorithm/sort/inner_sort/radix/radix.go | GO | apache-2.0 | 1,348 |
/*
* 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 ... | kulinski/myfaces | api/src/main/java/javax/faces/webapp/ValidatorTag.java | Java | apache-2.0 | 4,064 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.11.29 at 12:35... | ryandcarter/hybris-connector | src/main/java/org/mule/modules/hybris/model/OrderCancelRecordEntriesDTO.java | Java | apache-2.0 | 2,347 |
/*******************************************************************************
* Copyright (c) 2005 - 2013 Nos Doughty
*
* 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
*
* ... | llaith/toolkit | toolkit-core/src/test/java/org/llaith/toolkit/core/dto/DtoSessionTest.java | Java | apache-2.0 | 3,052 |
// --------------------------------------------------------------------------------------------------------------------
// <summary>
// Represents an observable which can be subscribed to once, and which contains a task for the single observer.
// </summary>
// --------------------------------------------------------... | yonglehou/WebStreams.Server | SingleSubscriptionObservable.cs | C# | apache-2.0 | 1,907 |
/*
* Copyright 2012 LinkedIn Corp.
*
* 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 i... | inoviaazkaban/azkaban | azkaban-webserver/src/main/java/azkaban/webapp/AzkabanWebServer.java | Java | apache-2.0 | 47,089 |
/**
* Copyright 2020 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 ... | GoogleChromeLabs/squoosh | src/features/encoders/webP/worker/webpEncode.ts | TypeScript | apache-2.0 | 1,526 |
package com.google.api.ads.dfp.jaxws.v201308;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for InvalidEmailError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType n... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201308/InvalidEmailErrorReason.java | Java | apache-2.0 | 1,136 |
# -*- coding: utf-8 -*-
# Copyright © 2012 The Pennsylvania State University
#
# 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... | ndlib/scholarsphere | db/migrate/20120521121727_add_notification_code.mailboxer_engine.rb | Ruby | apache-2.0 | 972 |
package org.endeavourhealth.ui.json;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
@JsonInclude(JsonInclude.Include.NON_NULL)
public final class JsonSourceOrganisationSet implements Comparable {
private UUID uuid = null;
privat... | endeavourhealth/EDS | src/eds-ui/src/main/java/org/endeavourhealth/ui/json/JsonSourceOrganisationSet.java | Java | apache-2.0 | 1,370 |
package io.fabric8.openshift.api.model.operator.v1;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
impor... | fabric8io/kubernetes-client | kubernetes-model-generator/openshift-model-operator/src/generated/java/io/fabric8/openshift/api/model/operator/v1/NetFlowConfig.java | Java | apache-2.0 | 3,346 |
package de.andrew.demoZITF.ui.quote;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.graphics.drawa... | AndrewSithole/demoZITF | app/src/main/java/de/andrew/demoZITF/ui/quote/ArticleDetailFragment.java | Java | apache-2.0 | 8,422 |
/*
* Copyright 2011 floreysoft GmbH (www.floreysoft.net)
*
* Written by Sergej Soller (ssoller@q-ric.de)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/lic... | lausd-teacher/schoolTools | src/com/floreysoft/gwt/picker/client/callback/PickedDocumentCallback.java | Java | apache-2.0 | 1,035 |
package org.eiichiro.jaguar.validation;
public class Component5 {
@Constraint1 String string = "";
}
| eiichiro/jaguar | jaguar-core/src/test/java/org/eiichiro/jaguar/validation/Component5.java | Java | apache-2.0 | 105 |
/*
* ADK.java.java
*
* Created on 01-03-2010 01:30:23 PM
*
* Copyright 2010 Jonathan Colt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | jnthnclt/nicity | nicity-view/src/main/java/com/jonathancolt/nicity/view/event/ADK.java | Java | apache-2.0 | 4,538 |
package com.legendshop.spi.constants;
public enum PageADV
{
PROD, INDEX, USER_REG, SORT, NEWS;
} | covito/legend-shop | src/main/java/com/legendshop/spi/constants/PageADV.java | Java | apache-2.0 | 104 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BilibiliJJ_BarrageSystem.MODEL
{
public class Home
{
public int AllCount { get; set; }
public int XmlCount { get; set; }
public int AssCount { get; s... | JxiaoC/BilibiliJJ_BarrageSystem | BilibiliJJ_BarrageSystem.MODEL/Home.cs | C# | apache-2.0 | 483 |
// @@@LICENSE
//
// Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0... | fxspec06/com.palm.app.email | controls/depends.js | JavaScript | apache-2.0 | 946 |
package com.swiftkey.cornedbeef;
import android.graphics.Color;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
import androidx.test.rule.ActivityTestRule;
import com.swiftkey.cornedbeef.test.R;
import com.swiftkey.cornedbeef.test.SpamActivity;
import org.junit.After;
i... | TouchType/CornedBeef | integrationtest/src/androidTest/java/com/swiftkey/cornedbeef/HighlightCoachMarkTestCase.java | Java | apache-2.0 | 4,086 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.11.29 at 12:35... | ryandcarter/hybris-connector | src/main/java/org/mule/modules/hybris/model/MediaContainersDTO.java | Java | apache-2.0 | 2,199 |
/**
* Copyright (C) 2012 Johan Grufman
*
* 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 ... | johangrufman/convx | convx-core/src/main/java/org/convx/reader/PrefixMatcher.java | Java | apache-2.0 | 2,568 |
<?php
/**
* @file
* Allows CRUD operations on Usergrid Collections.
*
* @author Daniel Johnson <djohnson@apigee.com>
* @author Rod Simpson <rod@apigee.com>
* @since 26-Apr-2013
*/
namespace Apigee\Usergrid;
require_once(dirname(__FILE__) . '/Exceptions.php');
class Collection {
/**
* @var \Apigee\Usergri... | rodsimpson/the-alien-newswire | lib/vendor/Apigee/Usergrid/Collection.php | PHP | apache-2.0 | 5,881 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Xml;
using System.Reflection;
using System.Diagnostics;
using System.Runtime.Remoting;
using Syst... | DigitalPlatform/dp2 | dp2Circulation/Order/PrintClaimForm.cs | C# | apache-2.0 | 138,197 |
#
# Copyright (C) 2014 Conjur Inc
#
# 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 limitation the rights to
# use, copy, modify, merge, publish, distri... | conjurinc/api-python | conjur/role.py | Python | apache-2.0 | 6,400 |
/*
* Copyright 2017 Young Digital Planet S.A.
*
* 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... | YoungDigitalPlanet/empiria.player | src/main/java/eu/ydp/empiria/player/client/controller/extensions/internal/media/html5/HTML5AudioMediaExecutor.java | Java | apache-2.0 | 1,992 |
/*
* Copyright 2000-2017 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... | paplorinc/intellij-community | java/java-impl/src/com/intellij/refactoring/introduceField/BaseExpressionToFieldHandler.java | Java | apache-2.0 | 44,256 |
package com.cadasta.murad.fragments;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.... | m-murad/cadasta-android-client | app/src/main/java/com/cadasta/murad/fragments/HomeFragment.java | Java | apache-2.0 | 8,167 |
// 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... | nafae/developer | examples/dfp_axis/src/main/java/dfp/axis/v201411/reportservice/RunDeliveryReportForOrder.java | Java | apache-2.0 | 4,886 |
// expect-runtime-error Fatal injection error: the type int was provided more than once, with different bindings.
/*
* 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 obt... | d/fruit | tests/register_instance_error3.cpp | C++ | apache-2.0 | 1,191 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: frontEndGRPC.proto
package com.intel.analytics.zoo.serving.grpc.service.generated;
public interface MetricsReplyOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.MetricsReply)
com.google.protobuf.MessageOrBuilder {
/*... | intel-analytics/analytics-zoo | zoo/src/main/java/com/intel/analytics/zoo/serving/grpc/service/generated/MetricsReplyOrBuilder.java | Java | apache-2.0 | 1,004 |
// IDuckProxy.cs
//
// Copyright (C) 2007 David Meyer
// All Rights Reserved
//
// Website: http://www.deftflux.net/
// E-mail: deftflux@deftflux.net
//
// This source is licensed to the public via Artistic License 2.0 which should be found in a file
// named license.txt included with the package. It is also ... | deftflux/DuckTyping | DeftTech.DuckTyping/IDuckProxy.cs | C# | artistic-2.0 | 986 |
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg,... | jonasfoe/COPASI | copasi/layout/CLDefaultStyles.cpp | C++ | artistic-2.0 | 68,933 |
package com.sdw.soft.demo.netty.version4;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.util.Cha... | sdw2330976/wekeeper | wekeeper-prototype/src/test/java/com/sdw/soft/demo/netty/version4/EchoServerHandler.java | Java | artistic-2.0 | 1,087 |
/*
* header.hpp
*
* Created on: Aug 18, 2015
* Author: zmij
*/
#ifndef PUSHKIN_HTTP_COMMON_HEADER_HPP_
#define PUSHKIN_HTTP_COMMON_HEADER_HPP_
#include <boost/variant.hpp>
#include <map>
#include <set>
#include <vector>
#include <pushkin/http/common/header_names.hpp>
namespace psst {
namespace http {
usi... | zmij/tip-http | include/pushkin/http/common/header.hpp | C++ | artistic-2.0 | 1,153 |
/**
* 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... | aliyun/aliyun-emapreduce-sdk | emr-logservice/src/main/java/org/apache/spark/streaming/aliyun/logservice/utils/VersionInfoUtils.java | Java | artistic-2.0 | 2,204 |
// Copyright (C) 2019 - 2021 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelbe... | copasi/COPASI | copasi/UI/CQGlobalQuantitiesWidget.cpp | C++ | artistic-2.0 | 8,662 |
var $ = require('jquery');
var foundation = require('foundation');
var _ = require('lodash');
$(document).foundation();
console.log("Hello Worldz");
| abits/static-boilerplate | src/js/app.js | JavaScript | bsd-2-clause | 176 |
package org.pm4j.common.pageable.querybased.idquery;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Utility methods for {@link IdQueryService}.
*
* @author Olaf Boede
*/
public class IdQueryServiceUtil {
/**
* Applies the order of the given id list ... | pm4j/org.pm4j | pm4j-common/src/main/java/org/pm4j/common/pageable/querybased/idquery/IdQueryServiceUtil.java | Java | bsd-2-clause | 1,954 |
package com.baneizalfe.gocarinthia.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import com.alihafizji.library.CreditCardEditText;
import com.baneizalfe.gocar... | baneizalfe/gocarinthia | app/src/main/java/com/baneizalfe/gocarinthia/fragments/PaymentFragment.java | Java | bsd-2-clause | 1,841 |
cask v1: 'wkhtmltopdf' do
version '0.12.3-dev-79ff51e'
if Hardware::CPU.is_32_bit?
sha256 'a9eb4127243ec15c3c300f5d64c3a7e93e69400beb68419f93f070cc3ec54c11'
# bitbucket.org is the official download host per the vendor homepage
url "https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-#{ver... | askl56/homebrew-cask | Casks/wkhtmltopdf.rb | Ruby | bsd-2-clause | 1,466 |
package integration.mindbody;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Ge... | highsource/hyperjaxb3-support | m/MindBody/src/main/java/integration/mindbody/ArrayOfCustomClientField.java | Java | bsd-2-clause | 7,285 |
package cz.metacentrum.perun.registrar.impl;
import cz.metacentrum.perun.audit.events.ExpirationNotifScheduler.GroupMembershipExpirationInDays;
import cz.metacentrum.perun.audit.events.ExpirationNotifScheduler.GroupMembershipExpirationInMonthNotification;
import cz.metacentrum.perun.audit.events.ExpirationNotifSchedul... | stavamichal/perun | perun-registrar-lib/src/main/java/cz/metacentrum/perun/registrar/impl/ExpirationNotifScheduler.java | Java | bsd-2-clause | 27,577 |
// Copyright 2015 Bulat Ziganshin
// Released to public domain
#include <amp.h>
#include <stdio.h>
#include "timer.h"
int main()
{
static const unsigned DATASIZE = 1<<25;
static const unsigned BINS = 1<<4; // count low 4-bit freqs for every byte
static const unsigned CHUNK_CNT= 1<<8; // split data... | Bulat-Ziganshin/GPU-Compression | histogram16.cpp | C++ | bsd-2-clause | 3,321 |
from copy import deepcopy
from geom import geom
import numpy as np
import pandas as pd
class geom_jitter(geom):
VALID_AES = ['jitter']
def __radd__(self, gg):
gg = deepcopy(gg)
xcol = gg.aesthetics.get("x")
ycol = gg.aesthetics.get("y")
x = gg.data[xcol]
y = gg.data[yco... | hadley/ggplot | ggplot/geoms/geom_jitter.py | Python | bsd-2-clause | 542 |
class ConstraintFailureException(Exception):
pass
| tmaiwald/OSIM | OSIM/Optimizations/ConstraintFailureException.py | Python | bsd-2-clause | 55 |
using LcaDataModel;
using Repository.Pattern.Repositories;
using Service.Pattern;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CalRecycleLCA.Services
{
public interface IImpactCategoryService : IService<ImpactCategory>
{
}
... | uo-lca/CalRecycleLCA | LCIAToolAPI/CalRecycleLCA.Services/ImpactCategoryService.cs | C# | bsd-2-clause | 558 |
/**
* pims-web org.pimslims.presentation.sample HolderContentsTest.java
*
* @author cm65
* @date 28 Jun 2010
*
* Protein Information Management System
* @version: 3.2
*
* Copyright (c) 2010 cm65 The copyright holder has licenced the STFC to redistribute this software
*/
package o... | homiak/pims-lims | TestSource/org/pimslims/presentation/sample/HolderContentsTest.java | Java | bsd-2-clause | 6,582 |
/*
Copyright (c) 2011-2013, Sergey Usilin. All rights reserved.
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 l... | usilinsergey/objed | prj.objed/objedtraincli/src/datasetproc.cpp | C++ | bsd-2-clause | 9,290 |
#!/usr/bin/env python
# this only exists because sympy crashes IDAPython
# for general use sympy is much more complete
import traceback
import types
import copy
import operator
import random
import string
from memoize import Memoize
import numpy
import util
def collect(exp, fn):
rv = set()
def... | bniemczyk/symbolic | symath/core.py | Python | bsd-2-clause | 14,038 |
/*
* Copyright (c) 2017. Real Time Genomics Limited.
*
* 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... | RealTimeGenomics/rtg-tools | src/com/rtg/vcf/eval/MaxSumBoth.java | Java | bsd-2-clause | 4,037 |
#include <mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_AceEnumerator.h>
#include <mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_GenericAce.h>
#include <mscorlib/System/mscorlib_System_Type.h>
#include <mscorlib/System/mscorlib_System_String.h>
namespac... | brunolauze/MonoNative | MonoNative/mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_AceEnumerator.cpp | C++ | bsd-2-clause | 1,376 |
<?php
namespace AppZap\PHPFramework\Persistence;
use AppZap\PHPFramework\Configuration\Configuration;
/**
* Database wrapper class
*/
class DatabaseConnection {
const QUERY_MODE_LIKE = 1;
const QUERY_MODE_NOT = 2;
const QUERY_MODE_REGULAR = 3;
const QUERY_MODE_LESS = 4;
const QUERY_MODE_GREATER = 5;
co... | app-zap/PHPFramework | classes/Persistence/DatabaseConnection.php | PHP | bsd-2-clause | 15,168 |
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* 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 copyright
* notice, this... | chototsu/MikuMikuStudio | engine/src/blender/com/jme3/scene/plugins/blender/file/DnaBlockData.java | Java | bsd-2-clause | 9,171 |
from ...utils.bitfun import encode_imm32, align, wrap_negative
from ..encoding import Relocation
from .isa import ArmToken, arm_isa
@arm_isa.register_relocation
class Rel8Relocation(Relocation):
name = "rel8"
token = ArmToken
field = "imm8"
def calc(self, sym_value, reloc_value):
assert sym_v... | windelbouwman/ppci-mirror | ppci/arch/arm/arm_relocations.py | Python | bsd-2-clause | 1,941 |
/**
* Copyright (c) 2014 Samsung Electronics, 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 copyright notice, this
* li... | marchpig/Dexter | project/dexter-executor/src/java/com/samsung/sec/dexter/executor/cli/IDexterCLIOption.java | Java | bsd-2-clause | 2,743 |
using UnityEngine;
using System.Collections;
namespace EA4S.MixedLetters
{
public class RotateButtonController : MonoBehaviour
{
public BoxCollider boxCollider;
public DropZoneController dropZone;
// Use this for initialization
void Start()
{
IInputManager i... | Norad-Eduapp4syria/Norad-Eduapp4syria | finalApprovedVersion/Antura/EA4S_Antura_U3D/Assets/_games/MixedLetters/_scripts/RotateButtonController.cs | C# | bsd-2-clause | 1,362 |
<?hh
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
/**
* --------------------------------------------------------------
* Type Aliases
* --------------------------------------------------------------
*
* Defines... | titon/framework | src/Titon/Cache/bootstrap.hh | C++ | bsd-2-clause | 603 |
// Copyright (c) 2010, Adam Petersen <adam@adampetersen.se>. 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,... | adamtornhill/tinch_pp | impl/erl_string.cpp | C++ | bsd-2-clause | 3,573 |