repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
odacremolbap/kubernetes | pkg/kubectl/cmd/apply/apply.go | 29783 | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
Luckyion/SpeechIntelligence | SpeechIntelligence/src/me/videa/base/functions/StartSpecificApplication.java | 1285 | package me.videa.base.functions;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.drm.DrmStore.Action;
import android.net.Uri;
public class StartSpecificApplication {
Context mContext;
public StartSpecif... | apache-2.0 |
Gugli/Openfire | src/plugins/hazelcast/src/java/org/jivesoftware/openfire/plugin/session/IncomingServerSessionTask.java | 2682 | /*
* Copyright (C) 2007-2009 Jive Software. 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... | apache-2.0 |
nickbabcock/dropwizard | dropwizard-request-logging/src/test/java/io/dropwizard/request/logging/ExternalRequestLogFactoryTest.java | 1313 | package io.dropwizard.request.logging;
import io.dropwizard.configuration.YamlConfigurationFactory;
import io.dropwizard.jackson.DiscoverableSubtypeResolver;
import io.dropwizard.jackson.Jackson;
import io.dropwizard.logging.BootstrapLogging;
import io.dropwizard.util.Resources;
import io.dropwizard.validation.BaseVal... | apache-2.0 |
chrismattmann/labkey-client | src/main/java/org/labkey/remoteapi/security/CreateUserResponse.java | 1324 | /*
* Copyright (c) 2009 LabKey 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... | apache-2.0 |
cncduLee/event | simple-event/src/main/java/com/bitium/event/event/dispatch/EventSet.java | 804 | /**
* Copyright (c) 2015, bitium.com. All rights reserved.
*/
package com.bitium.event.event.dispatch;
import com.bitium.event.event.Subscriber;
import java.util.Iterator;
/**
* <b>项目名</b>: event <br>
* <b>包名称</b>: com.bitium.event.event.dispatch <br>
* <b>类名称</b>: Event <br>
* <b>类描述</b>: <br>
* <b>创建人</b>:... | apache-2.0 |
ResearchWorx/Cresco-Agent-MD5-Plugin | src/main/java/plugincore/PluginEngine.java | 10970 | package plugincore;
import java.io.File;
import java.io.FileInputStream;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.con... | apache-2.0 |
bcopeland/hbase-thrift | src/main/java/org/apache/hadoop/hbase/util/CompoundBloomFilterBase.java | 2859 | /*
* Copyright 2011 The Apache Software Foundation
*
* 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-2.0 |
googleapis/java-game-servers | proto-google-cloud-game-servers-v1/src/main/java/com/google/cloud/gaming/v1/Common.java | 21643 | /*
* 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 ... | apache-2.0 |
opensim-org/opensim-core | OpenSim/Simulation/Model/Force.cpp | 7667 | /* -------------------------------------------------------------------------- *
* OpenSim: Force.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... | apache-2.0 |
eCollobro/eCollabro | eCollabro.Service.DataContracts/Core/SiteRoleFeaturesRequest.cs | 799 | // <copyright company="eCollabro">
// Copyright (c) 2014 All Rights Reserved
// Collaborative Framework and CMS - eCollabro.com
// </copyright>
// <author>Anand Singh</author>
#region References
using System.Runtime.Serialization;
#endregion
namespace eCollabro.Service.DataContracts.RequestWrapper
{
... | apache-2.0 |
devilgate/pertwee | src/main/java/software/tinlion/pertwee/Item.java | 860 | package software.tinlion.pertwee;
import java.util.List;
import software.tinlion.pertwee.exception.RequiredElementNotPresentException;
/**
* Represents an item in a feed, eg a blog post, podcast episode, etc.
*/
public interface Item {
public String id() throws RequiredElementNotPresentException;
public ... | apache-2.0 |
juweiping/ocms | src/org/openuap/cms/survey/dao/hibernate/VoterDaoImpl.java | 6935 | /**
* $Id: VoterDaoImpl.java 3951 2010-11-02 10:13:17Z orangeforjava $
*/
package org.openuap.cms.survey.dao.hibernate;
import java.util.List;
import org.openuap.base.dao.hibernate.BaseDaoHibernate;
import org.openuap.base.util.QueryInfo;
import org.openuap.base.util.context.PageBuilder;
import org.openuap.cms.surv... | apache-2.0 |
Seltzer/Algovis---Algorithm-Visualisation | branches/resources/cxxtest/v3.10.1/test/main.cpp | 876 | #include <cxxtest/TestRunner.h>
#include <cxxtest/TestListener.h>
#include <stdio.h>
//
// This test runner printer some statistics at the end of the run.
// Note that it uses <stdio.h> and not <iostream> for compatibility
// with older compilers.
//
using namespace CxxTest;
class SummaryPrinter : public... | apache-2.0 |
tiborvass/docker | volume/service/default_driver_stubs.go | 293 | // +build !linux,!windows
package service // import "github.com/tiborvass/docker/volume/service"
import (
"github.com/tiborvass/docker/pkg/idtools"
"github.com/tiborvass/docker/volume/drivers"
)
func setupDefaultDriver(_ *drivers.Store, _ string, _ idtools.Identity) error { return nil }
| apache-2.0 |
projectcypress/cdatools | exporter/cat3/cat3.go | 4179 | package cat3
import (
"time"
"github.com/projectcypress/cdatools/models"
)
type Authenticator struct {
models.Authenticator
Author
}
func NewAuthenticator(a models.Authenticator) Authenticator {
return Authenticator{
Authenticator: a,
Author: NewAuthor(a.Author),
}
}
type Header struct {
models.H... | apache-2.0 |
durban/seals | checker/src/main/scala/dev/tauri/seals/checker/package.scala | 856 | /*
* Copyright 2017-2020 Daniel Urban and contributors listed in 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... | apache-2.0 |
mysll/flynet | server/src/server/util/ringbuffer.go | 1647 | package util
import (
"container/list"
"errors"
"sync"
)
var (
ERRRINGBUFFULL = errors.New("ringbuffer full")
)
type Message struct {
begin int
size int
}
type RingBuffer struct {
buffer []byte
l sync.RWMutex
first int
end int
size int
msgs *list.List
}
func (r *RingBuffer) require(lens i... | apache-2.0 |
skonves/Konves.TextGraph | src/Konves.TextGraph/Annotations/List.cs | 605 | using Konves.TextGraph.Models;
namespace Konves.TextGraph.Annotations
{
public sealed class List : Annotation
{
public List(int offset, int length, bool isOrdered) : base(offset, length)
{
IsOrdered = isOrdered;
}
public bool IsOrdered { get; }
public override string Subtype { get { return "list"; } ... | apache-2.0 |
qrealka/skia-hc | samplecode/SampleLayers.cpp | 8184 | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkBlurMaskFilter.h"
#include "SkCamera.h"
#include "SkColorFilter.h"
#include "SkColorPriv.h"
#incl... | apache-2.0 |
googleads/google-ads-java | google-ads-stubs-v8/src/main/java/com/google/ads/googleads/v8/services/stub/CampaignBidModifierServiceStub.java | 1927 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
Thorium-Sim/thorium | src/components/macros/assignSpaceEdventuresBadge.js | 2792 | import React from "react";
import {Query} from "react-apollo";
import gql from "graphql-tag.macro";
import {FormGroup, Label, Input} from "helpers/reactstrap";
export default ({updateArgs, args, stations, clients}) => {
return (
<Query
fetchPolicy="cache-first"
query={gql`
query Badges {
... | apache-2.0 |
magnetsystems/message-server | server/plugins/mmxmgmt/src/test/java/com/magnet/mmx/server/plugin/mmxmgmt/servlet/MMXTopicResourceTest.java | 8842 | /* Copyright (c) 2015 Magnet Systems, 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 ... | apache-2.0 |
0359xiaodong/android-autofittextview | library/src/main/java/me/grantland/widget/AutofitTextView.java | 11166 | package me.grantland.widget;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.text.Layout;
import android.text.StaticLayout;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.uti... | apache-2.0 |
AldanisVigo/CPlusPlus | TriangleClass/Triangle.cpp | 1277 | /*
//Class Declaration (Triangle.h)
#ifndef TRIANGLE_H
#define TRIANGLE_H
#include <iostream>
using namespace std;
class Triangle{
private:
double Hypotenuse;
double Opposite;
double Adjacent;
public:
Triangle();
//Overloaded Constructor
Triangle(double,double,double);
//Destructor
~Triangle();
void set_hypot... | apache-2.0 |
data-integrations/zuora | src/main/java/io/cdap/plugin/zuora/objects/ProxyCreateTaxationItem.java | 5441 | /*
* Copyright © 2019 Cask Data, 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 ag... | apache-2.0 |
stuhood/cassandra-old | contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java | 6341 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may ... | apache-2.0 |
nimbus/camlistore | pkg/importer/picasa/picasa_test.go | 1829 | /*
Copyright 2014 The Camlistore Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
agileowl/tapestry-5 | tapestry-core/src/main/java/org/apache/tapestry5/internal/services/PageElementFactory.java | 2630 | // Copyright 2006, 2007, 2008, 2009 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 requir... | apache-2.0 |
nince-wyj/jahhan | frameworkx/dubbo-common/src/main/java/com/frameworkx/annotation/Activate.java | 2819 | /*
* Copyright 1999-2011 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | apache-2.0 |
Nephilim84/contestparser | spring-boot-samples/spring-boot-sample-metrics-opentsdb/src/test/java/sample/metrics/opentsdb/SampleOpenTsdbExportApplicationTests.java | 1416 | /*
* Copyright 2012-2015 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... | apache-2.0 |
wangzijian777/snmpTool | src/main/java/com/prince/snmp/tool/StartUp.java | 379 | package com.prince.snmp.tool;
import java.io.IOException;
/**
* run this tool as the following format:
* java -jar SnmpTool.jar simulator fileName
* @author wangzijian
*
*/
public class StartUp {
public static void main(String[] args) {
try {
CommandFactory.getCommand(args).startUp();
} cat... | apache-2.0 |
vetafi/vetafi-web | test/controllers/api/TwilioControllerTestContext.scala | 3730 | package controllers.api
import java.time.Instant
import java.util.UUID
import com.google.inject.AbstractModule
import com.mohiva.play.silhouette.api.LoginInfo
import com.mohiva.play.silhouette.impl.providers.BasicAuthProvider
import com.mohiva.play.silhouette.impl.util.SecureRandomIDGenerator
import com.mohiva.play.s... | apache-2.0 |
ExplorViz/explorviz-ui-frontend | tests/unit/models/clazz-test.ts | 411 | import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { run } from '@ember/runloop';
module('Unit | Model | clazz', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
... | apache-2.0 |
iamovrhere/CareerStack | src/com/ovrhere/android/careerstack/utils/UnitCheck.java | 3992 | /*
* Copyright 2014 Jason J.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | apache-2.0 |
evertrue/s3_dir | spec/spec_helper.rb | 258 | # Encoding: utf-8
require 'coveralls'
Coveralls.wear!
require 'chefspec'
require 'chefspec/berkshelf'
RSpec.configure do |config|
config.color = true
config.formatter = :documentation
config.platform = 'ubuntu'
config.version = '16.04'
end
| apache-2.0 |
levackt/resilience-demo | hello-hystrix/src/main/java/io/fabric8/kubeflix/examples/hellohystrix/HelloHystrixServlet.java | 1358 | /*
* Copyright (C) 2015 Red Hat, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | apache-2.0 |
AdrianAndroid/zuitangxuan | zuitangxuan/src/com/zuitangxuan/database/T008permissionGroup/InterfPermissionGroupKey.java | 438 | package com.zuitangxuan.database.T008permissionGroup;
import com.zuitangxuan.database.InterfBaseKey;
public interface InterfPermissionGroupKey extends InterfBaseKey {
public static final String TABLE_NAME = "operationPermissions";
// public static final String ID = "id";
// /**分店*/
// public static final String SU... | apache-2.0 |
oMMuCo/HPTT-FT-UGM-Official-Website | protected/modules/article/controllers/LikeController.php | 3901 | <?php
/**
* LikeController
* @var $this LikeController
* @var $model ArticleLikes
* @var $form CActiveForm
* version: 0.0.1
* Reference start
*
* TOC :
* Index
* Up
* Down
*
* LoadModel
* performAjaxValidation
*
* @author Putra Sudaryanto <putra.sudaryanto@gmail.com>
* @copyright Copyright (c) 2012 Omm... | apache-2.0 |
99soft/guartz | src/test/java/org/nnsoft/guice/guartz/RepeatedSchedulingTestCase.java | 1793 | package org.nnsoft.guice.guartz;
/*
* Copyright 2009-2012 The 99 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/licens... | apache-2.0 |
bhaecke/export-distro | src/main/java/org/edgexfoundry/serviceactivator/RESTOutboundServiceActivator.java | 2876 | /*******************************************************************************
* Copyright 2017 Dell 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/li... | apache-2.0 |
youdonghai/intellij-community | plugins/InspectionGadgets/src/com/intellij/codeInspection/TrivialFunctionalExpressionUsageInspection.java | 12221 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 |
huangchuchuan/Spider | BaiduZhidaoCommentSpider/baidu_zhidao_comment_spider.py | 5584 | # -*- coding: utf-8 -*-
# @Author : Huangcc
import requests
import urllib
from lxml import etree
import re
import datetime
import codecs
import time
import random
SLEEP = [0.5, 1, 1.5, 2, 2.5, 3]
class BaiduZhidao():
search_url = 'https://zhidao.baidu.com/search?word={keyword}&ie=gbk&site=-1&sit... | apache-2.0 |
cowthan/JavaAyo | partyzoo/src-okhttputils/com/lzy/okhttputils/cookie/store/HasCookieStore.java | 113 | package com.lzy.okhttputils.cookie.store;
public interface HasCookieStore {
CookieStore getCookieStore();
}
| apache-2.0 |
ambasta/aws-sdk-cpp | aws-cpp-sdk-cognito-sync/source/model/CognitoStreams.cpp | 2209 | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | apache-2.0 |
uCloudCastle/TajiProject | app/src/main/utils/java/com/randal/aviana/StringUtils.java | 5179 | package com.randal.aviana;
public final class StringUtils {
private StringUtils() {
throw new UnsupportedOperationException("DO NOT INSTANTIATE THIS CLASS");
}
/**
* 判断字符串是否为null或长度为0
*
* @param s 待校验字符串
* @return {@code true}: 空<br> {@code false}: 不为空
*/
public stat... | apache-2.0 |
mdavid/SuperSocket | v1.4/Test/TestSession.cs | 920 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Command;
namespace SuperSocket.Test
{
public class TestSession : AppSession<TestSession>
{
public const string WelcomeMessageFormat = "Welcome to ... | apache-2.0 |
fhanik/spring-security | web/src/test/java/org/springframework/security/web/access/channel/InsecureChannelProcessorTests.java | 4646 | /*
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | apache-2.0 |
Deus0/Zeltexium | Assets/Plugins/DroneMachine/Examples/Scripts/ActivateObjectsOnTrigger.cs | 1218 | using UnityEngine;
namespace DerelictComputer
{
[RequireComponent(typeof(BoxCollider))]
public class ActivateObjectsOnTrigger : MonoBehaviour
{
public enum TriggerType
{
Enable,
Trigger
}
[SerializeField] private TriggerType _triggerType = TriggerTy... | apache-2.0 |
vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Behaviors/NoCombatAssist.java | 1985 | 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... | apache-2.0 |
sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ISarlConstructorBuilder.java | 3266 | /*
* $Id$
*
* File is automatically generated by the Xtext language generator.
* Do not change it.
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2021 the original authors or authors.
*
* Licensed under the Apache License, Version 2.0 (t... | apache-2.0 |
aajjbb/contest-files | URI/Enisvaldo.cpp | 1270 | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | apache-2.0 |
Anuragigts/igts_classified | application/views/classified/dec_rugs_carpetview.php | 11707 | <!DOCTYPE html>
<html>
<head>
<title>New & Used Rugs For Sale UK | Buy & Sell Carpets Online | 99 Right Deals</title>
<meta name="description" content="Shop for buy & sell carpets online in United Kingdom. And post free ads for new & used rugs for sale in UK on 99 Right Deals." />
<!-- xxx Head Content xxx -... | apache-2.0 |
shaunrampersad/puppet-pg_monz | spec/spec_helper_acceptance.rb | 672 | require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'
require 'beaker/puppet_install_helper'
run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no'
RSpec.configure do |c|
# Project root
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
# Readable test descri... | apache-2.0 |
Naeregwen/games-librarian | src/commons/enums/OnlineState.java | 1299 | /**
* Copyright 2012-2014 Naeregwen
*
* 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... | apache-2.0 |
AndersonFCanel/JavaPassoAPasso | Basico Passo a passo/j_arrays/Exemplos/M_SomarVetores.java | 1095 | package j_arrays.Exemplos;
import java.util.Scanner;
public class M_SomarVetores {
static void somarVetores(double[] a, double[] b, double[] c) {
int i;
for(i = 0; i < c.length; i++)
c[i] = a[i] + b[i];
}
static void ler(double[] v) {
Scanner s;
... | apache-2.0 |
chicagozer/rheosoft | camel-core/src/main/java/org/apache/camel/impl/DefaultShutdownStrategy.java | 20051 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | apache-2.0 |
consulo/consulo-android | android/android/src/org/jetbrains/android/dom/attrs/StyleableDefinition.java | 331 | package org.jetbrains.android.dom.attrs;
import org.jetbrains.annotations.NotNull;
import java.util.List;
/**
* @author Eugene.Kudelevsky
*/
public interface StyleableDefinition {
@NotNull
List<StyleableDefinition> getChildren();
@NotNull
String getName();
@NotNull
List<AttributeDefinition> getAttri... | apache-2.0 |
hank/litecoinj-new | core/src/test/java/com/google/litecoin/core/ChainSplitTest.java | 32172 | /*
* 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 i... | apache-2.0 |
hanks-zyh/FlyWoo | app/src/main/java/com/zjk/wifiproject/socket/udp/UDPMessageListener.java | 25556 | package com.zjk.wifiproject.socket.udp;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import com.orhanobut.logger.Logger;
import com.zjk.wifiproject.BaseApplication;
import com.zjk.wifiproject.config.ConfigBroadcast;
import com.zjk.wifiproject.config.ConfigIntent;
import c... | apache-2.0 |
edgars/wso2-hacks | internetbank/src/main/java/daoImpl/Admin_Login_DaoImpl.java | 4001 | package daoImpl;
import java.sql.Timestamp;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import org.hibernate.classic.Session;
import org.hibernate.*;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwo... | apache-2.0 |
kjanosz/stock-market-sherlock | news-parser/src/main/scala/sms/news/package.scala | 311 | package sms
import scala.concurrent.ExecutionContext
import sms.core.Akka
package object news {
object ec {
implicit lazy val context: ExecutionContext = Akka.dispatcher("akka.actor.news-parsing-dispatcher")
}
object withURL {
def apply[T](path: String)(block: String => T) = block(path)
}
}
| apache-2.0 |
LimitPointSystems/SheafSystem | tools/viewer/event/MouseEnteredEvent.java | 1257 |
//
// Copyright (c) 2014 Limit Point Systems, 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 ... | apache-2.0 |
NakedObjectsGroup/NakedObjectsFramework | Programming Model/NakedFunctions/NakedFunctions.ProgrammingModel/Attributes/PresentationHintAttribute.cs | 1154 | // Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// 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... | apache-2.0 |
ericsoderberg/pbc-web | ui/js/pages/domain/DomainAdd.js | 278 | import Add from '../../components/Add';
import DomainFormContents from './DomainFormContents';
export default class DomainAdd extends Add {}
DomainAdd.defaultProps = {
...Add.defaultProps,
category: 'domains',
FormContents: DomainFormContents,
title: 'Add Domain',
};
| apache-2.0 |
transcendent-ai-labs/DynaML | dynaml-tensorflow/src/main/scala/io/github/mandar2812/dynaml/tensorflow/data/DataApi.scala | 4337 | /*
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 use this f... | apache-2.0 |
dreamchenzhou/MouseRace | src/com/dreamchen/useful/mouserace/view/sliding/AbHorizontalScrollView.java | 3579 | /*
* Copyright (C) 2012 www.amsoft.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | apache-2.0 |
HiroyasuNishiyama/node-red | packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/index.js | 23652 | /**
* Copyright JS Foundation and other contributors, http://js.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 r... | apache-2.0 |
freedot/tstolua | tests/cases/compiler/genericFunduleInModule2.ts | 146 | module A {
export function B<T>(x: T) { return x; }
}
module A {
export module B {
export var x = 1;
}
}
var b: A.B;
A.B(1); | apache-2.0 |
nicevoice/qoophp-blog | application/Controllers/Frontend/SearchController.php | 2015 | <?php
/**
* @author: Rogee<rogeeyang@gmail.com>
*/
namespace Controllers;
use Common\FrontControllerBase;
use Library\Paginator\Pager;
use Models\Article;
//include sphinx
class SearchController extends FrontControllerBase
{
public function initialize()
{
$this->setTitle('搜索');
parent::ini... | apache-2.0 |
huysentruitw/projecto | src/Projecto.Autofac/ProjectorBuilderExtensions.cs | 3621 | /*
* Copyright 2017 Wouter Huysentruit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 |
kabassociates/aribaweb | src/util/ariba/util/core/SystemUtil.java | 50214 | /*
Copyright 1996-2012 Ariba, 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... | apache-2.0 |
quarkusio/quarkus | extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/cors/CORSHandlerTestCase.java | 2235 | package io.quarkus.vertx.http.cors;
import static io.restassured.RestAssured.given;
import static org.hamcrest.core.Is.is;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.test.QuarkusUnitTest;
public class CORSH... | apache-2.0 |
tensorflow/datasets | tensorflow_datasets/core/deprecated/text/text_encoder.py | 16222 | # coding=utf-8
# Copyright 2022 The TensorFlow Datasets 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... | apache-2.0 |
egordon/CoinJoin | src/org/coinjoin/util/RSABlindSignUtil.java | 2959 | package org.coinjoin.util;
import java.math.BigInteger;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.interfaces.RSAPrivateKey;
... | apache-2.0 |
AndroidBoy/BAMService | manager/com/kl/categorypro/CategoryProDAO.java | 4386 | package com.kl.categorypro;
import java.util.Date;
import java.util.List;
import org.hibernate.LockMode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
/**
* A data access object (D... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/transform/RunCommandParametersJsonUnmarshaller.java | 2893 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
First-Peoples-Cultural-Council/fv-web-ui | frontend/app_v2/src/i18n.js | 507 | import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'
// FPCC
import en from 'assets/locale/en'
i18n
// pass the i18n instance to react-i18next.
.use(initReactI18next)
// init i18next - for all options read: https://www.i18next.com/overview/configuration-options
.init({
resources: {
... | apache-2.0 |
sudheeshkatkam/drill | exec/java-exec/src/test/java/org/apache/drill/test/rowSet/test/RowSetTest.java | 14022 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
googlestadia/performance-layers | layer/frame_time_layer.cc | 12814 | // Copyright 2020-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 t... | apache-2.0 |
freignat91/mlearning | mlserver/server/restapi.go | 3933 | package mlserver
import (
"encoding/json"
"fmt"
"net/http"
"os"
"strconv"
"github.com/gorilla/mux"
)
//RetBool .
type RetBool struct {
Ret bool `json:"ret"`
}
//RetInt .
type RetInt struct {
Ret int `json:"ret"`
}
// FoodCoord .
type FoodCoord struct {
X float64 `json:"x"`
Y float64 `json:"y"`
}
//AntSe... | apache-2.0 |
MatthewWilkes/mw4068-packaging | src/melange/src/soc/modules/gsoc/views/models/org_app_survey.py | 3736 | #!/usr/bin/env python2.5
#
# Copyright 2010 the Melange 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 applic... | apache-2.0 |
b002368/chef-repo | lib/chef/data_collector/messages/helpers.rb | 5641 | #
# Author:: Adam Leff (<adamleff@chef.io)
# Author:: Ryan Cragun (<ryan@chef.io>)
#
# Copyright:: Copyright 2012-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License... | apache-2.0 |
RasaHQ/rasa_core | rasa/core/run.py | 7791 | import asyncio
from functools import partial
import argparse
import logging
from sanic import Sanic
from sanic_cors import CORS
from typing import List, Optional, Text
import rasa.core.cli.arguments
import rasa.utils
import rasa.core
from rasa.core import constants, utils, cli
from rasa.core.channels import (BUILTIN... | apache-2.0 |
michaelkleinhenz/themis | schema/linktype_blocks.go | 2044 | package schema
import (
"themis/models"
)
func createLinkTypeBlocks() []models.LinkType {
linkTypes := []models.LinkType {
createLinkTypeBlocksBugToStory(),
createLinkTypeBlocksBugToTask(),
createLinkTypeBlocksTaskToStory(),
createLinkTypeBlocksStoryToStory(),
}
return linkTypes
}
func createLinkTypeBloc... | apache-2.0 |
skonves/Konves.KScript | src/Konves.KScript/ExpressionFactory.cs | 3636 | using Antlr4.Runtime;
using Antlr4.Runtime.Tree;
using Konves.KScript.Expressions;
using Konves.KScript.Parsing;
using System;
using System.Collections.Generic;
using System.Linq;
using static Konves.KScript.Parsing.KScriptParser;
namespace Konves.KScript
{
internal static class ExpressionFactory
{
internal stati... | apache-2.0 |
rjf1979/GNF | GNF.Domain/Entities/Entity.cs | 2880 | using System;
using System.Collections.Generic;
using System.Reflection;
namespace GNF.Domain.Entities
{
/// <summary>
/// 实体抽象类
/// </summary>
public abstract class Entity : Entity<int>, IEntity
{
}
/// <summary>
/// 实体抽象类
/// </summary>
/// <typeparam name="TPrimaryKey">Typ... | apache-2.0 |
yuhaya/LocalServer | models/grades.go | 1150 | package models
import "github.com/astaxie/beego/orm"
type Grades struct {
Id uint64 `orm:"fk;auto"`
Guid string `orm:"unique;size(50)"`
Name string `orm:"size(50)"`
Rating uint64 `orm:"default(0)"`
SchoolGuid string `orm:"size(50)"`
}
func (m *Grades) Insert() error {
if _, err := orm.N... | apache-2.0 |
YoungPeanut/YoungSamples | app/src/main/java/info/ipeanut/youngsamples/third/viewgroup/MaterialRippleLayout.java | 29156 | /*
* Copyright (C) 2014 Balys Valentukevicius
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | apache-2.0 |
sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/appenders/SarlClassSourceAppender.java | 7328 | /*
* $Id$
*
* File is automatically generated by the Xtext language generator.
* Do not change it.
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2021 the original authors or authors.
*
* Licensed under the Apache License, Version 2.0 (t... | apache-2.0 |
ebyhr/presto | core/trino-main/src/main/java/io/trino/execution/SqlQueryManager.java | 11329 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | apache-2.0 |
junchenChow/exciting-app | app/src/main/java/me/vociegif/android/mvp/Presenter.java | 290 | package me.vociegif.android.mvp;
import android.support.annotation.NonNull;
/**
* Created by Yoh Asakura.
*
* @version 1.0
*
* Address : https://github.com/junchenChow
*/
public interface Presenter<V> {
void bindView(@NonNull V view);
void destroy();
void start();
}
| apache-2.0 |
scalingdata/goavro | helpers_test.go | 3223 | // Copyright 2015 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 in writing, ... | apache-2.0 |
boalang/compiler | src/compiled-proto/boa/types/Diff.java | 99398 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: diff.proto
package boa.types;
public final class Diff {
private Diff() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ChangedFileOrBuilder
extends com.google.pr... | apache-2.0 |
kogupta/scala-playground | src/main/scala/kogu/practice/cats/monads/Main.scala | 98 | package kogu.practice.cats.monads
object Main {
def main(args: Array[String]): Unit = {
}
}
| apache-2.0 |
uhonliu/swoft | src/Db/AbstractDbConnect.php | 1817 | <?php
namespace Swoft\Db;
use Swoft\Pool\AbstractConnect;
/**
* 数据库抽象连接
*
* @uses AbstractDbConnect
* @version 2017年09月29日
* @author stelin <phpcrazy@126.com>
* @copyright Copyright 2010-2016 swoft software
* @license PHP Version 7.x {@link http://www.php.net/license/3_0.txt}
*/
abstract class Ab... | apache-2.0 |
markantill/PropertyCopier | PropertyCopier/Generators/MatchedPropertyNamesGenerator.cs | 2601 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using PropertyCopier.Data;
namespace PropertyCopier.Generators
{
/// <summary>
/// Match properties based on same name as determined my th... | apache-2.0 |
cklokma/p8-sbe | src/engd/href/eclipz/poreve/working/model/poremodel.H | 35104 | //------------------------------------------------------------------------------
// IBM_PROLOG_BEGIN_TAG
// This is an automatically generated prolog.
//
// OpenPOWER Project
//
// Contributors Listed Below - COPYRIGHT 2012,2016
// [+] International Business Machines Corp.
//
//
// Licensed under the Apache License, Ve... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ProcessingS3CompressionType.java | 1845 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/transform/DescribeOrganizationRequestMarshaller.java | 2086 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |