repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
magicsky/sya | src/test/java/com/github/magicsky/sya/examples/ibinding/ICPPNamespaceAliasExample.java | 956 | package com.github.magicsky.sya.examples.ibinding;
import com.github.magicsky.sya.ast.visitors.ASTNamesVisitor;
import com.github.magicsky.sya.checkers.BaseTest;
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespace;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPN... | apache-2.0 |
Mykaelos/MykaelosUnityLibrary | Camera/CameraResolutionChange.cs | 1002 | using System;
using UnityEngine;
/**
* Fires the ResolutionChanged if the screen width or height changes.
*
* Example on how to use:
* GetComponent<CameraResolutionChange>().ResolutionChanged += OnResolutionChanged;
*
* private void OnResolutionChanged() {
* // Do something with the new resolution, like ... | apache-2.0 |
thiloplanz/jmockmongo | src/main/java/jmockmongo/DeleteHandler.java | 929 | /**
* Copyright (c) 2012, Thilo Planz. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Apache License, Version 2.0
* as published by the Apache Software Foundation (the "License").
*
* Unless required by applicable law or agreed to in writ... | apache-2.0 |
JohnCny/TY_NEW | src/java/com/cardpay/pccredit/customer/web/MaintenanceController.java | 27790 | /**
*
*/
package com.cardpay.pccredit.customer.web;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONArray;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeansException;
import org.springframework.... | apache-2.0 |
ikkentim/SampSharp | src/SampSharp.GameMode/SAMP/Commands/CommandAttribute.cs | 2662 | // SampSharp
// Copyright 2020 Tim Potze
//
// 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 o... | apache-2.0 |
kr9ly/bright-fw | bright-fw/src/main/java/net/kr9ly/brightfw/dependency/module/helper/image/ActivityGlideImageHelperDelegate.java | 681 | package net.kr9ly.brightfw.dependency.module.helper.image;
import android.support.v4.app.FragmentActivity;
import net.kr9ly.brightfw.helper.hook.HookHelper;
import net.kr9ly.brightfw.helper.image.ActivityGlideImageHelper;
import net.kr9ly.brightfw.helper.image.ImageHelper;
public class ActivityGlideImageHelp... | apache-2.0 |
GoogleCloudPlatform/inspec-gcp-pci-profile | controls/2.3.rb | 2460 | # Copyright 2019 The inspec-gcp-pci-profile Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 |
amazon-mws-unofficial/mws-fulfillment-inbound-shipment | src/FBAInboundServiceMWS/Model/InboundShipmentPlanRequestItem.php | 6791 | <?php
/*******************************************************************************
* Copyright 2009-2015 Amazon Services. 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 ... | apache-2.0 |
mcaprari/smack | source/org/jivesoftware/smackx/muc/Occupant.java | 3954 | /**
* $RCSfile$
* $Revision: 7071 $
* $Date: 2007-02-12 00:59:05 +0000 (Mon, 12 Feb 2007) $
*
* Copyright 2003-2007 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 ... | apache-2.0 |
smhoekstra/iaf | JavaSource/nl/nn/adapterframework/core/ManagedStateException.java | 1135 | /*
Copyright 2013 Nationale-Nederlanden
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 |
brolaugh/blog | app/Brolaugh/Model/User.php | 653 | <?php
namespace Brolaugh\Model;
use \Brolaugh\Core\Database;
class User extends Database
{
protected $id;
public $username;
private $password;
private $email;
public function prepare($id)
{
$stmt = $this->database_connection->prepare("SELECT * FROM user WHERE id = ?");
$stmt->bind_param('i', $id)... | apache-2.0 |
chridou/almhirt | almhirt-common/src/main/scala/almhirt/aggregates/RebuildsAggregateRootFromTimeline.scala | 546 | package almhirt.aggregates
import almhirt.common._
/** Mix in this trait to rebuild aggregate roots from its lifetime.
* It uses the [[AggregateRootEventHandler]] to rebuild the aggregate root.
*/
trait RebuildsAggregateRootFromTimeline[T <: AggregateRoot, E <: AggregateRootEvent] { self: AggregateRootEventHandler... | apache-2.0 |
arekk/uke | db/schema.rb | 5359 | # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritativ... | apache-2.0 |
NikoYuwono/retrofit | retrofit/src/test/java/retrofit2/RequestBuilderTest.java | 56927 | // Copyright 2013 Square, Inc.
package retrofit2;
import java.io.IOException;
import java.lang.reflect.Method;
import java.math.BigInteger;
import java.net.URI;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.concurren... | apache-2.0 |
googlearchive/science-journal | OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/metadata/TriggerListFragment.java | 19772 | /*
* Copyright 2016 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 a... | apache-2.0 |
rjsteinert/taktaktak | application/views/backend/reports/game/index.php | 11513 | <?php if($the_action == 'report'): ?>
<table class="zebra">
<tr>
<th style="text-align:center">Juego</th>
<th style="text-align:center">Desarrollador</th>
<th style="text-align:center">Total de usuarios</th>
<th style="text-align:cent... | apache-2.0 |
omnypay/omnypay-sdk-android | ExampleApp/OmnyPayAllSdkDemo/src/main/java/net/omnypay/sdk/allsdkdemo/model/AuthenticationRequestParam.java | 3720 | /**
* Copyright 2016 OmnyPay Inc.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or ... | apache-2.0 |
drostron/quasar | js/src/test/scala/quasar/jscore/jscore.scala | 6189 | /*
* Copyright 2014–2017 SlamData 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... | apache-2.0 |
digimead/digi-TABuddy-model | src/test/scala/org/digimead/tabuddy/model/ModelSpec.scala | 5125 | /**
* TABuddy-Model - a human-centric K,V framework
*
* Copyright (c) 2012-2014 Alexey Aksenov ezh@ezh.msk.ru
*
* 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.apach... | apache-2.0 |
mavasani/roslyn-analyzers | src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/DoNotRaiseReservedExceptionTypes.cs | 8910 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis;
using Analyzer.U... | apache-2.0 |
grafeas/kritis | pkg/kritis/policy/violation.go | 1028 | /*
Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | apache-2.0 |
biospi/mzmlb | pwiz/pwiz/analysis/spectrum_processing/SpectrumList_IonMobility.cpp | 3236 | //
// $Id: SpectrumList_IonMobility.cpp 10494 2017-02-21 16:53:20Z pcbrefugee $
//
//
// Original author: Matt Chambers <matt.chambers <a.t> vanderbilt.edu>
//
// Copyright 2016 Vanderbilt University - Nashville, TN 37232
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this fil... | apache-2.0 |
snowplow/schema-ddl | modules/json4s/src/test/scala/com.snowplowanalytics.iglu.schemaddl/jsonschema/json4s/StringSpec.scala | 2104 | /*
* Copyright (c) 2012-2022 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... | apache-2.0 |
algorithm-ninja/cotton | src/main.cpp | 18593 | #include "box.hpp"
#include "logger.hpp"
#include <vector>
#include <fstream>
#include "util.hpp"
#include <option.hpp>
#include <positional.hpp>
#include <command.hpp>
#ifdef COTTON_UNIX
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#endif
#ifdef COTTON_WINDOWS
#include <windows.h>
#include <tchar.h>
#en... | apache-2.0 |
kevinsawicki/maven-android-plugin | src/test/java/com/jayway/maven/plugins/android/standalonemojos/MojoProjectStub.java | 4229 | package com.jayway.maven.plugins.android.standalonemojos;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import... | apache-2.0 |
captiosus/treadmill | treadmill/api/identity_group.py | 2894 | """Implementation of identity group API.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import fnmatch
from treadmill import context
from treadmill import schema
from treadmill import authz
from t... | apache-2.0 |
CaMnter/Robotlegs4Android | robotlegs4android/src/main/java/com/camnter/robotlegs4android/base/ContextEvent.java | 1621 | /*
* Copyright (C) 2015 CaMnter yuanyu.camnter@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
liufeiit/io-remoting | src/main/java/io/remoting/protocol/ProtocolFactory.java | 325 | package io.remoting.protocol;
/**
* @author 刘飞 E-mail:liufei_it@126.com
*
* @version 1.0.0
* @since 2017年5月22日 下午4:41:51
*/
public interface ProtocolFactory {
int getProtocolCode();
void encode(Object body, RemotingCommand command);
<T> T decode(Class<T> bodyType, RemotingCommand command);
}
| apache-2.0 |
gitblit/gitblit-cookbook-plugin | src/main/java/com/gitblit/plugin/cookbook/MyTicketHook.java | 1448 | /*
* Copyright 2014 gitblit.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
nickbabcock/dropwizard | dropwizard-e2e/src/test/java/com/example/validation/InjectValidatorTest.java | 1787 | package com.example.validation;
import io.dropwizard.Configuration;
import io.dropwizard.testing.junit.DropwizardAppRule;
import org.junit.ClassRule;
import org.junit.Test;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Response;
import static io.dropwizard.testing.Res... | apache-2.0 |
spee140622/j_s_rabbitmq | src/main/java/org/m/rabbitmq/simple/helloworld/Send/Send.java | 1090 | package org.m.rabbitmq.simple.helloworld.Send;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOException;
/**
* @version 1.1
* Created by wenzhouyang on 6/25/2014.
*/
public class Send {
private final static Str... | apache-2.0 |
Costo/azure-storage-net | Lib/Common/Shared/Protocol/Constants.cs | 56145 | // -----------------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance w... | apache-2.0 |
emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/client/config/XmlClientConfigBuilder.java | 6920 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | apache-2.0 |
dvorka/mindraider | mr7/src/main/java/com/mindcognition/mindraider/application/model/tag/TagEntryImpl.java | 4543 | /*
===========================================================================
Copyright 2002-2010 Martin Dvorak
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.apach... | apache-2.0 |
mkjensen/barriers | src/com/martinkampjensen/thesis/model/BarrierTree.java | 2079 | /**
* Copyright 2010-2011 Martin Kamp Jensen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
kidaa/aurora | src/test/java/org/apache/aurora/scheduler/cron/quartz/AuroraCronJobTest.java | 5386 | /**
* 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
* distribu... | apache-2.0 |
orientechnologies/orientdb-studio | src/app/administration/stats/security/security.component.ts | 1254 | import {
Component,
Input,
ElementRef,
NgZone,
OnDestroy,
ViewChild,
OnInit,
ViewContainerRef
} from "@angular/core";
import {
AgentService,
MetricService,
PermissionService
} from "../../../core/services";
import { SecurityService } from "../../../core/services/security.service";
declare const a... | apache-2.0 |
henrichg/PhoneProfilesPlus | phoneProfilesPlus/src/main/java/sk/henrichg/phoneprofilesplus/GeofenceScanWorker.java | 21500 | package sk.henrichg.phoneprofilesplus;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.work.Worker;
import androidx.work.WorkerParameters;
// DO NOT REMOVE. MUST EXISTS !!!
@SuppressWarnings("unused")
public class GeofenceScanWorker extends Worker {
//private final Context co... | apache-2.0 |
yjwLEO/coolweather | app/src/main/java/com/example/coolweather/db/County.java | 845 | package com.example.coolweather.db;
import org.litepal.crud.DataSupport;
/**
* Created by asus-pc on 2017/2/26.
*/
public class County extends DataSupport {
private int id;
private String countyName;
private String weatherId;
private int cityId;
public int getId() {
return id;
}
... | apache-2.0 |
lpxz/grail-lucene358684 | src/test/org/apache/lucene/TestSearch.java | 4494 | package org.apache.lucene;
/**
* Copyright 2004 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
*
*... | apache-2.0 |
mahkoh/rust | src/libstd/sys/common/net2.rs | 13396 | // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | apache-2.0 |
zhangtengteng/AnyTime-master | src/com/luna/anytime/PersonActivity.java | 1240 | package com.luna.anytime;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
public class PersonActivity extends Activity {
TextView nameTextView;
TextView registerTimeTextView;
public PersonActivity() {
}
... | apache-2.0 |
epam/DLab | infrastructure-provisioning/src/tensor-rstudio/fabfile.py | 8766 | #!/usr/bin/python
# *****************************************************************************
#
# Copyright (c) 2016, EPAM 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
#
#... | apache-2.0 |
bowenli86/flink | flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/SingleInputGateBenchmarkFactory.java | 6454 | /*
* 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 |
openegovplatform/OEPv2 | oep-core-logging-portlet/docroot/WEB-INF/src/org/oep/core/logging/PortletKeys.java | 1466 | /**
* Copyright (c) 2015 by Open eGovPlatform (http://http://openegovplatform.org/).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | apache-2.0 |
rbraeunlich/formic | linear/shared/src/main/scala/de/tu_berlin/formic/datastructure/linear/client/FormicList.scala | 2751 | package de.tu_berlin.formic.datastructure.linear.client
import akka.pattern._
import akka.util.Timeout
import de.tu_berlin.formic.common.datastructure.FormicDataStructure.LocalOperationMessage
import de.tu_berlin.formic.common.datastructure.client.{ClientDataStructureEvent, DataStructureInitiator}
import de.tu_berlin.... | apache-2.0 |
treenew/sofire | src/Core/Sofire.Extends/Excel/NPOI/HSSF/Model/LineShape.cs | 5635 | /* ====================================================================
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 ... | apache-2.0 |
kuujo/onos | web/api/src/main/java/org/onosproject/rest/resources/FlowsWebResource.java | 15942 | /*
* Copyright 2015-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... | apache-2.0 |
haozhun/presto | presto-hive/src/main/java/com/facebook/presto/hive/RecordFileWriter.java | 8167 | /*
* 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 |
data-integrations/github | src/test/java/io/cdap/plugin/github/source/common/DatasetTransformerTest.java | 1414 | package io.cdap.plugin.github.source.common;
import io.cdap.cdap.api.data.format.StructuredRecord;
import io.cdap.cdap.api.data.schema.Schema;
import io.cdap.plugin.github.source.common.model.impl.Commit;
import io.github.benas.randombeans.api.EnhancedRandom;
import org.junit.Assert;
import org.junit.Test;
import org.... | apache-2.0 |
reynoldsm88/drools | drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/mvel/MVELDialect.java | 31763 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | apache-2.0 |
appshaper/appshaper | test/data/script2.js | 19 | var script2 = true; | apache-2.0 |
Traderlynk/Etherlynk | communicator/extension/jitsi-meet/interface_config.js | 6209 | /* eslint-disable no-unused-vars, no-var, max-len */
var interfaceConfig = {
// TO FIX: this needs to be handled from SASS variables. There are some
// methods allowing to use variables both in css and js.
DEFAULT_BACKGROUND: '#474747',
/**
* In case the desktop sharing is disabled through the co... | apache-2.0 |
olgasm3011/ProgramTest | rest-sample/src/test/java/ru/stqa/pft/rest/Issue.java | 1347 | package ru.stqa.pft.rest;
/**
* Created by oasmir12 on 17.08.2017.
*/
public class Issue {
private int id;
private String subject;
private String description;
private String state_name;
public int getId() {
return id;
}
public Issue withId(int id) {
this.id = id;
return this;
}
publi... | apache-2.0 |
dturanski/spring-cloud-data | spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/TaskPlatformController.java | 3111 | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 |
everttigchelaar/camel-svn | tests/camel-itest/src/test/java/org/apache/camel/itest/ibatis/DummyTable.java | 1106 | /**
* 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"); yo... | apache-2.0 |
cloudfoundry-incubator/switchboard | domain/domainfakes/fake_net_conn.go | 9314 | // This file was generated by counterfeiter
package domainfakes
import (
"net"
"sync"
"time"
)
type FakeConn struct {
ReadStub func(b []byte) (n int, err error)
readMutex sync.RWMutex
readArgsForCall []struct {
b []byte
}
readReturns struct {
result1 int
result2 error
}
WriteStub f... | apache-2.0 |
googleapis/nodejs-ai-platform | src/value-converter.ts | 3386 | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
ontop/ontop | core/model/src/main/java/it/unibz/inf/ontop/model/term/functionsymbol/db/impl/DefaultDBNonStrictNumericEqOperator.java | 1545 | package it.unibz.inf.ontop.model.term.functionsymbol.db.impl;
import com.google.common.collect.ImmutableList;
import it.unibz.inf.ontop.iq.node.VariableNullability;
import it.unibz.inf.ontop.model.term.DBConstant;
import it.unibz.inf.ontop.model.term.ImmutableTerm;
import it.unibz.inf.ontop.model.term.TermFactory;
imp... | apache-2.0 |
Distrotech/fop | src/java/org/apache/fop/render/afp/AFPDocumentHandler.java | 18129 | /*
* 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 |
GunoH/intellij-community | platform/core-impl/src/com/intellij/openapi/application/impl/ApplicationInfoImpl.java | 28143 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.application.impl;
import com.intellij.ReviseWhenPortedToJDK;
import com.intellij.diagnostic.Activity;
import com.intellij.diagnosti... | apache-2.0 |
gAmUssA/hazelcast-simulator | simulator/src/main/java/com/hazelcast/simulator/protocol/connector/AgentConnector.java | 2220 | package com.hazelcast.simulator.protocol.connector;
import com.hazelcast.simulator.protocol.configuration.AgentServerConfiguration;
import com.hazelcast.simulator.protocol.core.SimulatorAddress;
import com.hazelcast.simulator.protocol.processors.AgentOperationProcessor;
import static com.hazelcast.simulator.protocol.... | apache-2.0 |
ajaxx/tsql2pgsql | src/grammar/TSQLVisitor.cs | 54887 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// ANTLR Version: 4.3
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--------... | apache-2.0 |
Owldream/Ginseng | include/ginseng/3rd-party/boost/beast/core/file_stdio.hpp | 3718 | //
// Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
#ifndef BOO... | apache-2.0 |
tanvirshuvo/spring-social-samples | spring-social-showcase-implicit/src/main/java/org/springframework/social/showcase/config/Application.java | 566 | package org.springframework.social.showcase.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
@... | apache-2.0 |
smallyear/linuxLearn | salt/salt/modules/dracr.py | 43541 | # -*- coding: utf-8 -*-
'''
Manage Dell DRAC.
.. versionadded:: 2015.8.2
'''
# pylint: disable=W0141
# Import python libs
from __future__ import absolute_import
import logging
import os
import re
# Import Salt libs
from salt.exceptions import CommandExecutionError
import salt.utils
# Import 3rd-party libs
import sa... | apache-2.0 |
langlan/sqldsl | src/main/java/langlan/sql/weaver/c/AbstractSingleValueTestingCriteria.java | 1163 | package langlan.sql.weaver.c;
import langlan.sql.weaver.i.Criteria;
/**
* For : <br>
* =, >, <, >=, <=, <>, <br>
* LIKE, IN, BETWEEN, IS NULL, <br>
* NOT LIKE, NOT IN, NOT BETWEEN, IS NOT NULL
*/
public abstract class AbstractSingleValueTestingCriteria extends AbstractCriteria {
private String testing;
private... | apache-2.0 |
humbletrader/katechaki | src/test/java/net/sf/reportengine/samples/FirstReportWithGroups.java | 3823 | /**
* Copyright (C) 2006 Dragos Balan (dragos.balan@gmail.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
*
* Unl... | apache-2.0 |
peterbanda/coel | source/Web/src/main/java/edu/tlab/rbnpg/domain/ac/EventsLogger.java | 3337 | /*
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL"... | apache-2.0 |
lessthanoptimal/BoofCV | main/boofcv-ip/src/test/java/boofcv/alg/filter/convolve/normalized/TestConvolveNormalized_JustBorder_IL.java | 4471 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | apache-2.0 |
0pq76r/blog | anemic-vs-rich-domain-model/src/test/java/com/link_intersystems/publications/blog/model/rich/OrderTest.java | 1462 | package com.link_intersystems.publications.blog.model.rich;
import static junit.framework.Assert.assertEquals;
import java.math.BigDecimal;
import java.util.List;
import org.junit.Test;
import com.link_intersystems.publications.blog.model.rich.Order;
import com.link_intersystems.publications.blog.model.rich.OrderIt... | apache-2.0 |
msoute/vertx-deploy-tools | vertx-deploy-agent/src/main/java/nl/jpoint/vertx/deploy/agent/DeployConfig.java | 10367 | package nl.jpoint.vertx.deploy.agent;
import io.vertx.core.json.JsonObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
public class DeployConfig {
private static final Logger LOG = LoggerFactory.getLogger(AwsDeployApplica... | apache-2.0 |
usc/dubbo-demo | src/main/java/com/alibaba/dubbo/remoting/transport/netty5/Netty5Transporter.java | 764 | package com.alibaba.dubbo.remoting.transport.netty5;
import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.remoting.ChannelHandler;
import com.alibaba.dubbo.remoting.Client;
import com.alibaba.dubbo.remoting.RemotingException;
import com.alibaba.dubbo.remoting.Server;
import com.alibaba.dubbo.remoting.Transpor... | apache-2.0 |
sdnwiselab/onos | drivers/huawei/driver/src/main/java/org/onosproject/drivers/huawei/HuaweiDeviceDescription.java | 7002 | /*
* 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... | apache-2.0 |
wangqi/gameserver | bootstrap/src/test/java/com/xinqihd/sns/gameserver/util/IOUtilTest.java | 1043 | package com.xinqihd.sns.gameserver.util;
import static org.junit.Assert.*;
import java.io.File;
import java.io.FileOutputStream;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class IOUtilTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() thr... | apache-2.0 |
mourinho1908/vueshop | application/admin/controller/Index.php | 3090 | <?php
namespace app\admin\controller;
use app\common\controller\Backend;
use think\Validate;
/**
* 后台首页
* @internal
*/
class Index extends Backend
{
protected $noNeedLogin = ['login'];
protected $noNeedRight = ['index', 'logout'];
protected $layout = '';
public function _initialize()
{
... | apache-2.0 |
froko/SimpleDomain | src/SimpleDomain/IEventSourcedAggregateRoot.cs | 1855 | //-------------------------------------------------------------------------------
// <copyright file="IEventSourcedAggregateRoot.cs" company="frokonet.ch">
// Copyright (C) frokonet.ch, 2014-2020
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... | apache-2.0 |
Ariah-Group/Continuity | src/main/java/org/kuali/continuity/plan/domain/Server.java | 4747 | //
// Copyright 2011 Kuali Foundation, Inc. Licensed under the
// Educational Community 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.opensource.org/licenses/ecl2.php
//
// Unless required ... | apache-2.0 |
qwerty4030/elasticsearch | server/src/main/java/org/elasticsearch/action/support/broadcast/BroadcastResponse.java | 5944 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | apache-2.0 |
dqminh/runc | libcontainer/cgroups/fs/net_prio.go | 655 | package fs
import (
"github.com/opencontainers/runc/libcontainer/cgroups"
"github.com/opencontainers/runc/libcontainer/configs"
)
type NetPrioGroup struct{}
func (s *NetPrioGroup) Name() string {
return "net_prio"
}
func (s *NetPrioGroup) Apply(path string, d *cgroupData) error {
return join(path, d.pid)
}
fun... | apache-2.0 |
leopardoooo/cambodia | boss-core/src/main/java/com/ycsoft/web/action/core/BankAction.java | 1796 | /**
*
*/
package com.ycsoft.web.action.core;
import org.springframework.stereotype.Controller;
import com.ycsoft.business.service.impl.AcctService;
import com.ycsoft.business.service.impl.CustService;
import com.ycsoft.commons.helper.DateHelper;
import com.ycsoft.web.commons.abstracts.BaseBusiAction;
... | apache-2.0 |
DevOps-TangoMe/flume-redis | flume-redis-core/src/main/java/com/tango/logstash/flume/redis/core/redis/JedisPoolFactoryImpl.java | 1078 | /**
* Copyright 2014 TangoMe 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 |
V119/spidersManager | src/com/sicdlib/dto/SpiderInfoEntity.java | 3373 | package com.sicdlib.dto;
import javax.persistence.*;
/**
* Created by YH on 2017/5/4.
*/
@Entity
@Table(name = "spider_info", schema = "socialMind", catalog = "")
public class SpiderInfoEntity {
private String id;
private String spiderSourcePath;
private String websiteId;
private String spiderName;
... | apache-2.0 |
Panda-Programming-Language/Panda | panda-framework/src/main/java/org/panda_lang/panda/framework/language/architecture/module/ModuleLoaderUtils.java | 3098 | /*
* Copyright (c) 2015-2019 Dzikoysk
*
* 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 |
sundrio/sundrio | model/base/src/main/java/io/sundr/model/Annotatable.java | 1396 | /**
* Copyright 2015 The original 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... | apache-2.0 |
2B2i/2B2i.Dom | src/2B2i.Library/Debug.cs | 2165 | /*
Copyright 2015 Bourderon Benjamin - 2B2i
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 writin... | apache-2.0 |
icraftsoftware/BizTalk.Factory | src/BizTalk.TestArtifacts.Binding/Orchestrations.Dummy/ProcessOrchestrationBinding.Designer.cs | 4071 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated... | apache-2.0 |
ariestse/spring-test-hibernate-dbunit | spring-test-hibernate-dbunit/src/test/java/com/github/springtestdbunit/dbunittestexecutionlistener/expected/ExpectedFailureOnClassTest.java | 1848 | /*
* Copyright 2010 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 applicab... | apache-2.0 |
etechi/ServiceFramework | Projects/Server/Sys/SF.Sys.Entities.Implements/AutoEntityProvider/Internals/EntityModifierBuilders/PropertyModifiers/UneditablePropertyModifier.cs | 2219 | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2017 Yang Chen (cy2000@gmail.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... | apache-2.0 |
spulec/moto | tests/test_applicationautoscaling/test_validation.py | 4098 | import boto3
from moto import mock_applicationautoscaling, mock_ecs
from moto.applicationautoscaling import models
from moto.applicationautoscaling.exceptions import AWSValidationException
import pytest
import sure # noqa # pylint: disable=unused-import
from botocore.exceptions import ClientError
from .test_applicatio... | apache-2.0 |
doged/dogecoindarkj | core/src/main/java/com/dogecoindark/dogecoindarkj/core/Transaction.java | 61048 | /**
* Copyright 2011 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 ... | apache-2.0 |
s3git/s3git-go | internal/config/config.go | 5595 | /*
* Copyright 2016 Frank Wessels <fwessels@xs4all.nl>
*
* 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... | apache-2.0 |
yangzhiye/NLPCC2017-task3 | extract_keywords_cal_summary_by_snownlp.py | 2221 |
#-*- coding:utf-8 -*-
from gensim import models,corpora
from textrank4zh import TextRank4Keyword
from snownlp import SnowNLP
import get_data
import re
import heapq
def get_max_k_tuple_list (tuple_list , k):
return heapq.nlargest(k , tuple_list , key = lambda x : x[1])
def get_stopwords_list():
filepath = "./sto... | apache-2.0 |
IS-ENES-Data/submission_forms | dkrz_forms/wflow_handler.py | 2324 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 26 16:46:24 2017
workflow handler: helper functions to update and process workflow forms
@author: stephan
"""
from datetime import datetime
from dkrz_forms import form_handler
def get_wflow_description(form):
wflow_steps = {}
for (short_na... | apache-2.0 |
torrances/swtk-commons | commons-dict-wiktionary/src/main/java/org/swtk/commons/dict/wiktionary/generated/p/d/c/WiktionaryPDC000.java | 1001 | package org.swtk.commons.dict.wiktionary.generated.p.d.c; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.swtk.common.dict.dto.wiktionary.Entry; import com.trimc.blogger.commons.utils.GsonUtils; public class WiktionaryPDC000 { private static Map<String, Entry> map = new Has... | apache-2.0 |
gracefullife/gerrit | gerrit-httpd/src/main/java/com/google/gerrit/httpd/raw/RobotsServlet.java | 3167 | // Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | apache-2.0 |
jcmore2/AppCrash | appcrash/src/main/java/com/jcmore2/appcrash/AppCrash.java | 7362 | package com.jcmore2.appcrash;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
/**
* Created by jcmore2 on 28/... | apache-2.0 |
pinch-perfect/Infrastructure-As-Code | InfrastructureAsCode.Core/Reports/o365rwsclient/TenantReport/ConnectionByClientTypeDaily.cs | 193 | using System;
namespace InfrastructureAsCode.Core.Reports.o365rwsclient.TenantReport
{
[Serializable]
public class ConnectionbyClientTypeDaily : ConnectionByClientType
{
}
} | apache-2.0 |
shibathethinker/ChimeraCRM | OnLine/OnLine/Pages/Popups/Purchase/AllRequirement_Specification_Show_Feat.aspx.cs | 2695 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Collections;
using BackEndObjects;
using ActionLibrary;
/*
THIS CLASS IS NOT BEING USED CURRENTLY AS THE INNER GRID IS WORKING FINE.
* In current ... | apache-2.0 |
consulo/consulo-scala | src/org/jetbrains/plugins/scala/lang/scaladoc/lexer/docsyntax/ScaladocSyntaxElementType.java | 1347 | package org.jetbrains.plugins.scala.lang.scaladoc.lexer.docsyntax;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.plugins.scala.lang.scaladoc.lexer.ScalaDocElementType;
import org.jetbrains.plugins.scala.lang.scaladoc.lexer.ScalaDocTokenType;
/**
* User: Dmitry Naidanov
* Date: 29.10.11
*/
public ... | apache-2.0 |