repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
skyeyester/ARToolkit | bin/PNG2RAW.py | 1200 | from PIL import Image
import StringIO
class PNG2RAW:
"""
This class is for translating PNG image in RGBA to RAW image in RGB.
Usage:
PNG2RAW obj(srcBuf)
dstBuf = obj.convert()
"""
def __init__(self, srcBuf):
self.readImg(srcBuf)
def readImg(self, srcBuf):
self.srcBuffer = srcBuf
str... | apache-2.0 |
xevious99/google-api-php-client | src/Google/Service/Datastore/RollbackResponse.php | 973 | <?php
namespace Google\Service\Datastore;
/*
* Copyright 2010 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 r... | apache-2.0 |
orientechnologies/orientdb | core/src/test/java/com/orientechnologies/orient/core/db/FreezeAndRecordInsertAtomicityTest.java | 5418 | /*
*
* * Copyright 2010-2017 OrientDB LTD (http://orientdb.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... | apache-2.0 |
peterhal/omakase | src/omakase/syntax/PredefinedNames.java | 1028 | // Copyright 2012 Peter Hallam
//
// 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 |
xmpace/jetty-read | jetty-plus/src/main/java/org/eclipse/jetty/plus/annotation/PreDestroyCallback.java | 2540 | //
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | apache-2.0 |
LightSun/data-mediator | Data-mediator-demo/app/src/main/java/com/heaven7/data/mediator/demo/fragment/BaseFragment.java | 1040 | package com.heaven7.data.mediator.demo.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
/... | apache-2.0 |
ktmrmshk/Dresp | dresp/static/site/shop/Customjs.js | 7390 | $(document).ready(function(){
/*************** Checkbox script ***************/
var inputs = document.getElementsByTagName('input');
for (a = 0; a < inputs.length; a++) {
if (inputs[a].type == "checkbox") {
var id = inputs[a].getAttribute("id");
if (id==null){
id= "checkbox" +a;
}
inputs[a].setAttribute("id"... | apache-2.0 |
shensiduanxing/devops-metadata-svc | src/test/java/org/flysnow/cloud/buildmeta/wsclient/ui/model/CreateBuildInfoRequest.java | 300 | package org.flysnow.cloud.buildmeta.wsclient.ui.model;
import org.flysnow.cloud.buildmeta.wsclient.domain.model.Build;
public class CreateBuildInfoRequest {
private Build build;
public Build getBuild() {
return build;
}
public void setBuild(Build build) {
this.build = build;
}
}
| apache-2.0 |
woxiai/dbp | src/main/java/com/dbp/coco/base/models/BaseResult.java | 625 | package com.dbp.coco.base.models;
/**
* Created by Administrator on 2016/2/23.
*/
public class BaseResult {
private String action;
private boolean result;
private String reason;
public String getAction() {
return action;
}
public void setAction(String action) {
this.actio... | apache-2.0 |
bronumski/HealthNet | src/VersionInfo.cs | 111 | using System.Reflection;
[assembly: AssemblyMetadata("githash","5fccb4493e36b8ce227f90e968481bf1ed298830")] | apache-2.0 |
berinle/jawr-core | src/main/java/net/jawr/web/resource/bundle/generator/ResourceGeneratorReaderWrapper.java | 4924 | /**
* Copyright 2009-2012 Ibrahim Chaehoi
*
* 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 |
zillachan/LibZilla | app/src/main/java/com/zilla/libraryzilla/test/zlistview/ZListViewActivity.java | 3742 | /*
* Copyright (c) 2015. Zilla Chen
*
* 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 |
chirpradio/chirpradio-machine | chirp/library/chirpradio_scripts/do_optimize_index.py | 919 | import codecs
import time
import urllib2
from chirp.common import chirpradio
from google.appengine.api import datastore_errors
from djdb import search
chirpradio.connect()
terms_to_opt = set()
for line in codecs.open("index.data", "r", "utf-8"):
F = [f.strip() for f in line.split(",")]
if F[2] == "1":
... | apache-2.0 |
eHealthAfrica/extract-source-cases-migration | test/logs.js | 2607 | 'use strict'
var it = require('tape')
, chai = require('tape-chai')
, fakeDoc = require('./support/fake-doc')
, timekeeper = require('timekeeper')
, dataModels = require('data-models')
, last = require('lodash/array/last')
var migrate = require('../lib')
it('adds script name to change... | apache-2.0 |
vespa-engine/vespa | searchlib/src/tests/fef/termfieldmodel/termfieldmodel_test.cpp | 11395 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/searchlib/fef/fef.h>
#include <vespa/searchlib/queryeval/searchiterator.h>
#include <algorithm>
using namespace search::fef;
struct State {
Simple... | apache-2.0 |
dump247/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/transform/WriteRequestJsonMarshaller.java | 2733 | /*
* 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 "l... | apache-2.0 |
antifriz/zetcheck | src/com/zetcheck/MenuActivity.java | 4553 | /*
Copyright 2015 Ivan Jurin
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 |
nfuller/okhttp | mockwebserver/src/test/java/okhttp3/mockwebserver/MockWebServerTest.java | 14536 | /*
* Copyright (C) 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 agree... | apache-2.0 |
b-cuts/wire-1 | wire-runtime/src/test/java/com/squareup/wire/protos/redacted/RedactedCycleA.java | 1550 | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: ../wire-runtime/src/test/proto/redacted_test.proto at 40:1
package com.squareup.wire.protos.redacted;
import com.squareup.wire.Message;
import com.squareup.wire.ProtoField;
import java.lang.Object;
import java.lang.Override;
public final... | apache-2.0 |
infoplat/elasticsearch-demo | src/main/java/com/suyuening/elasticsearch/demo/documentapis/GetAPI.java | 1178 | package com.suyuening.elasticsearch.demo.documentapis;
import java.util.Map;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.client.Client;
import com.suyuening.elasticsearch.utils.ESClient;
/**
* <a href=
* "https://www.elastic.co/guide/en/elasticsearch/client/java-api/curren... | apache-2.0 |
artiomchi/R4MVC | src/R4Mvc.Tools/Locators/DefaultRazorViewLocator.cs | 3115 | using System;
using System.Collections.Generic;
using System.IO;
namespace R4Mvc.Tools.Locators
{
public class DefaultRazorViewLocator : IViewLocator
{
public IEnumerable<View> Find(string projectRoot)
{
foreach (var view in FindViews(projectRoot, string.Empty))
yiel... | apache-2.0 |
hpcloud/go-openstack | network/network.go | 1139 | package network
import (
"encoding/json"
"github.com/gertd/go-openstack/identity"
"github.com/parnurzeal/gorequest"
)
type networkResp struct {
Networks []Network `json:"networks"`
}
type Network struct {
Id string `json:"id"`
Name string `json:"name"`
Status ... | apache-2.0 |
remibergsma/cosmic | cosmic-core/plugins/authentication/ldap/src/main/java/com/cloud/api/command/LDAPConfigCmd.java | 10008 | package com.cloud.api.command;
import com.cloud.api.APICommand;
import com.cloud.api.ApiConstants;
import com.cloud.api.BaseCmd;
import com.cloud.api.Parameter;
import com.cloud.api.ServerApiException;
import com.cloud.api.response.LDAPConfigResponse;
import com.cloud.api.response.ListResponse;
import com.cloud.except... | apache-2.0 |
xbed/Mixly_Arduino | mixly_arduino/blockly/converters/microbit_python/display.js | 15334 | 'use strict';
function show_or_scroll(blockid1, blockid2) {
function converter(py2block, func, args, keywords, starargs, kwargs, node) {
if (args.length === 1 && keywords.length === 4) {//Image.ALL_CLOCKS, delay=120, wait=True, loop=False, clear=False
var imagesblock = null;
var del... | apache-2.0 |
maheshika/charon | modules/charon-core/src/main/java/org/wso2/charon/core/attributes/AttributeFactory.java | 1680 | /*
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | apache-2.0 |
hnccfr/ccfrweb | admin/src/com/hundsun/network/gates/genshan/web/action/user/UserAccountAction.java | 24069 | /* */ package com.hundsun.network.gates.genshan.web.action.user;
/* */
/* */ import com.hundsun.network.gates.genshan.biz.domain.baseset.UserLevel;
/* */ import com.hundsun.network.gates.genshan.biz.domain.fund.FundAccountMsg;
/* */ import com.hundsun.network.gates.genshan.biz.domain.query.User... | apache-2.0 |
gsjohn/ark | app/Http/Controllers/ApiController.php | 2752 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
abstract class ApiController extends Controller
{
public abstract function newEntity(array $attributes = []);
public function fillQueryForIndex(Request $request, Builder &$query){
$search = $request->input('s... | apache-2.0 |
weiwenqiang/GitHub | expert/glide/library/src/main/java/com/bumptech/glide/load/resource/file/FileResource.java | 385 | package com.bumptech.glide.load.resource.file;
import com.bumptech.glide.load.resource.SimpleResource;
import java.io.File;
/**
* A simple {@link com.bumptech.glide.load.engine.Resource} that wraps a {@link File}.
*/
// Public API.
@SuppressWarnings("WeakerAccess")
public class FileResource extends SimpleResource<F... | apache-2.0 |
cloudfoundry/cli | command/v7/create_isolation_segment_command_test.go | 4191 | package v7_test
import (
"errors"
"code.cloudfoundry.org/cli/actor/actionerror"
"code.cloudfoundry.org/cli/actor/v7action"
"code.cloudfoundry.org/cli/command/commandfakes"
. "code.cloudfoundry.org/cli/command/v7"
"code.cloudfoundry.org/cli/command/v7/v7fakes"
"code.cloudfoundry.org/cli/resources"
"code.cloudf... | apache-2.0 |
IndieSquare/counterwallet | app/lib/init.js | 17300 | // Initiallize
globals = Alloy.Globals;
globals.is_scrolling = false;
globals.Accelerometer = 0;
globals.reorg_views = {};
globals.windows = new Array();
globals.requires = new Array();
/*
On iOS, all relative paths are currently interpreted as relative to the Resources directory,
not to the current context. This is a... | apache-2.0 |
fimtra/datafission | src/main/java/com/fimtra/util/SubscriptionManager.java | 6186 | /*
* Copyright (c) 2013 Ramon Servadei
*
* 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 |
mabel-xue/CoolcoolWeather | app/src/main/java/com/mabel/coolcoolweather/service/AutoUpdateService.java | 3729 | package com.mabel.coolcoolweather.service;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.os.SystemClock;
import android.preference.PreferenceManager;
impor... | apache-2.0 |
manuelRod/YAML-Wordpress-Configurator | vendor/composer/autoload_static.php | 1194 | <?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit7b5502ec67cd9f01f7c9c2d086e3b8bb
{
public static $prefixLengthsPsr4 = array (
'S' =>
array (
'Symfony\\Component\\Yaml\\' => 23,
),
);
public static $prefixDirsPs... | apache-2.0 |
foxerfly/Netbeans-JPA-Modeler | JPA Specification/src/org/netbeans/jpa/modeler/spec/OneToMany.java | 19572 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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: 2014.01.2... | apache-2.0 |
Puchaczov/TQL.RDL | TQL.RDL/TQL.RDL.Parser/Nodes/GreaterEqualNode.cs | 435 | using System;
namespace TQL.RDL.Parser.Nodes
{
public class GreaterEqualNode : BinaryNode
{
public GreaterEqualNode(RdlSyntaxNode left, RdlSyntaxNode right)
: base(left, right)
{
}
public override Type ReturnType => typeof(bool);
public override string ToSt... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/transform/EventBridgeMetadataMarshaller.java | 1679 | /*
* 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 |
onhate/schemorger | src/main/java/org/schema/CreditCard.java | 610 | package org.schema;
/**
*
* A credit or debit card type as a standardized procedure for transferring the
* monetary amount for a purchase. Commonly used values:
* http://purl.org/goodrelations/v1#AmericanExpress
* http://purl.org/goodrelations/v1#DinersClub
* http://purl.org/goodrelations/v1#Discover
* http://... | apache-2.0 |
zckrbrt/verteilte-systeme | spring-redis-demo/src/main/java/de/hska/lkit/demo/redis/repo/impl/UserRepositoryImpl.java | 3461 | package de.hska.lkit.demo.redis.repo.impl;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframewo... | apache-2.0 |
schorndorfer/uima-components | annotator-parent/type-system/src/main/java/org/apache/ctakes/typesystem/type/refsem/LabDeltaFlag_Type.java | 2928 |
/* First created by JCasGen Fri Jan 03 13:40:15 CST 2014 */
package org.apache.ctakes.typesystem.type.refsem;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
i... | apache-2.0 |
daybaryour/dividedChatInterface | e2e/app.e2e-spec.ts | 294 | import { AppPage } from './app.po';
describe('node-angular App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
});
| apache-2.0 |
consulo/consulo-android | tools-base/rpclib/src/test/java/com/android/tools/rpclib/binary/HandleTest.java | 3613 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
jsnoble/teraslice | packages/ts-transforms/test/operations/validations/phonenumber-spec.ts | 3538 |
import { PhoneNumber } from '../../../src/operations';
import { DataEntity } from '@terascope/job-components';
describe('phone number validation', () => {
it('can instantiate', () => {
const opConfig = { refs: 'someId', source_field: 'someField' };
expect(() => new PhoneNumber(opConfig)).not.toTh... | apache-2.0 |
plus3it/watchmaker | src/watchmaker/managers/platform.py | 10887 | # -*- coding: utf-8 -*-
"""Watchmaker base manager."""
from __future__ import (absolute_import, division, print_function,
unicode_literals, with_statement)
import concurrent.futures
import logging
import os
import shutil
import subprocess
import tarfile
import tempfile
import zipfile
import wa... | apache-2.0 |
tisnats/tisnats.com | sections/reportsv2/ajax_report.php | 2778 | <?
/*
* The backend to changing the report type when making a report.
* It prints out the relevant report_messages from the array, then
* prints the relevant report_fields and whether they're required.
*/
authorize();
?>
<ul>
<?
$CategoryID = $_POST['categoryid'];
if (array_key_exists($_POST['type'], $Types[$Cate... | apache-2.0 |
strapdata/elassandra5-rc | core/src/main/java/org/elasticsearch/common/lucene/uid/Versions.java | 1582 | /*
* 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 |
hamzakilic/wjimg | src/app/lib/imageprocess/imageProcessSimilarColors.ts | 5772 | import { ColorConversion } from './../imagealgorithm/colorConversion';
import { Point } from './../draw/point';
import { Polygon } from './../draw/polygon';
import { Color } from './../draw/color';
import { HImage } from './../image';
import { Layer } from '../../models/photoedit/layer';
export class ImageProcessSimi... | apache-2.0 |
smart-education-iot/smart-education-stack | education-manage/src/main/java/com/education/manage/Application.java | 709 | package com.education.manage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.anno... | apache-2.0 |
JRosenfeldIntern/data-assistant | Shared/GPTools/pyt/scripts/dla.py | 53937 | """
-------------------------------------------------------------------------------
| Copyright 2016 Esri
|
| 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/... | apache-2.0 |
stackroute/LogAggregatorRT | tattvaclient/home/service/sideNavItemsFactory.js | 321 | angular.module('tattva')
.factory('sideNavItemsFactory', ['$http', function($http){
var factory = {
getSideNavItems: function() {
return $http.get('/sideNav').then(function(res) {
data = res.data;
return data;
});
}
}//end of factory definition
return factory;
}]);
... | apache-2.0 |
PrismTech/vortex-rxjava | src/main/java/com/prismtech/vortex/rx/RxVortex.java | 4986 | /**
* PrismTech 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 and with the PrismTech Vortex product. You may obtain a copy of the
* License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unles... | apache-2.0 |
zhangkun83/grpc-java | alts/src/generated/main/java/io/grpc/alts/internal/StartClientHandshakeReqOrBuilder.java | 8495 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/gcp/handshaker.proto
package io.grpc.alts.internal;
public interface StartClientHandshakeReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.gcp.StartClientHandshakeReq)
com.google.protobuf.MessageOrBuilder {
/*... | apache-2.0 |
tensorflow/probability | spinoffs/oryx/oryx/experimental/nn/pooling.py | 4391 | # Copyright 2020 The TensorFlow Probability 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 o... | apache-2.0 |
pjain1/druid | indexing-hadoop/src/test/java/org/apache/druid/indexer/BatchDeltaIngestionTest.java | 17931 | /*
* 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 |
nickman/HeliosStreams | metric-hub/src/main/java/com/heliosapm/metrichub/speedment/tsdb/public_/tsd_tagk/TsdTagkImpl.java | 498 | package com.heliosapm.metrichub.speedment.tsdb.public_.tsd_tagk;
import com.heliosapm.metrichub.speedment.tsdb.public_.tsd_tagk.generated.GeneratedTsdTagkImpl;
/**
* The default implementation of the {@link
* com.heliosapm.metrichub.speedment.tsdb.public_.tsd_tagk.TsdTagk}-interface.
* <p>
* This file is safe to ... | apache-2.0 |
rastislavszabo/vpp | vendor/github.com/ligato/vpp-agent/plugins/vpp/srplugin/vppcalls/vpp2001/srv6.go | 26405 | // Copyright (c) 2019 Bell Canada, Pantheon Technologies 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.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//... | apache-2.0 |
lympid/lympid-core | src/main/java/com/lympid/core/behaviorstatemachines/listener/AllStateListener.java | 1136 | /*
* Copyright 2015 Fabien Renaud.
*
* 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 |
frankbu/istio | vendor/github.com/envoyproxy/go-control-plane/envoy/config/filter/accesslog/v2/accesslog.pb.go | 69191 | // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: envoy/config/filter/accesslog/v2/accesslog.proto
/*
Package v2 is a generated protocol buffer package.
It is generated from these files:
envoy/config/filter/accesslog/v2/accesslog.proto
It has these top-level messages:
AccessLog
AccessLogFilter
... | apache-2.0 |
gelldur/EventBus | lib/src/dexode/eventbus/Bus.hpp | 3468 | //
// Created by gelldur on 26.11.2019.
//
#pragma once
#include <any>
#include <atomic>
#include <memory>
#include "dexode/eventbus/Listener.hpp"
#include "dexode/eventbus/internal/ListenerAttorney.hpp"
#include "dexode/eventbus/internal/event_id.hpp"
#include "dexode/eventbus/stream/ProtectedEventStream.hpp"
names... | apache-2.0 |
PureSolTechnologies/streaming | iterators/src/test/java/com/puresoltechnologies/streaming/CountingStreamIteratorTest.java | 1459 | package com.puresoltechnologies.streaming;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.Test;
import com... | apache-2.0 |
tbpmig/mig-website | bookswap/migrations/0005_auto_20151226_1536.py | 474 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import bookswap.models
class Migration(migrations.Migration):
dependencies = [
('bookswap', '0004_auto_20151226_1535'),
]
operations = [
migrations.AlterField(
model_name... | apache-2.0 |
maxyo/Flappy-Bird | Assets/Scripts/WallScript.cs | 513 | using UnityEngine;
using System.Collections;
public class WallScript : MonoBehaviour {
private bool scored = false;
// Use this for initialization
void Start () {
}
void OnTriggerEnter2D(Collider2D col) {
if (scored)
return;
GameControllerScript.Controller.UpScore ();
Animation anim = GetComponent<An... | apache-2.0 |
guogaowei/lanyuan-notebook | src/main/java/com/lanyuan/util/PasswordHelper.java | 1177 | package com.lanyuan.util;
import org.apache.shiro.crypto.RandomNumberGenerator;
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;
import com.lanyuan.entity.UserFormMap;
public class PasswordHelper {
private Ra... | apache-2.0 |
java110/MicroCommunity | service-user/src/main/java/com/java110/user/bmo/userLogin/ISaveUserLoginBMO.java | 337 | package com.java110.user.bmo.userLogin;
import com.java110.po.userLogin.UserLoginPo;
import org.springframework.http.ResponseEntity;
public interface ISaveUserLoginBMO {
/**
* 添加用户登录
* add by wuxw
* @param userLoginPo
* @return
*/
ResponseEntity<String> save(UserLoginPo userLoginPo);... | apache-2.0 |
greenpeppersoftware/greenpepper3-java | core/src/main/java/com/greenpepper/interpreter/flow/dowith/InterpretRow.java | 2828 | /*
* Copyright (c) 2006 Pyxis Technologies inc.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This software is d... | apache-2.0 |
KiminRyu/ExoPlayer | testutils/src/main/java/com/google/android/exoplayer2/testutil/Action.java | 21970 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
sintefneodroid/droid | Runtime/Structs/Space/Sample/SampleSpace1.cs | 1596 | using System;
using droid.Runtime.Enums;
using droid.Runtime.Interfaces;
using droid.Runtime.Sampling;
using UnityEngine;
namespace droid.Runtime.Structs.Space.Sample {
/// <inheritdoc cref="ISpace" />
/// <summary>
/// </summary>
[Serializable]
public struct SampleSpace1 : ISamplable {
#region Fields... | apache-2.0 |
bartvde/sdk | __tests__/components/layer-list.test.js | 12535 | /* global it, describe, expect, beforeEach, spyOn */
import React from 'react';
import {mount, configure} from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import {createStore, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import MapReducer from '../../src/reducers/map';
import * ... | apache-2.0 |
numansiddique/contrail-controller | src/vnsw/agent/oper/agent_path.cc | 39333 | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/uuid/uuid_io.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/foreach.hpp>
#include <cmn/agent_cmn.h>
#include <route/route.h>
#include <vnc_cfg_types.h>
#include <agent_types.h>
#include <filter/acl.h>
#include <oper/pe... | apache-2.0 |
TinghuanWang/source | src/cn/jsprun/dao/Member_Magics_Magiclog_MemberMagicsDao.java | 323 | package cn.jsprun.dao;
import cn.jsprun.domain.Magiclog;
import cn.jsprun.domain.Magics;
import cn.jsprun.domain.Membermagics;
import cn.jsprun.domain.Members;
public interface Member_Magics_Magiclog_MemberMagicsDao {
public boolean userBuyMagic(Magics magic,Magiclog magiclog,Members member,Membermagics memberMagics);... | apache-2.0 |
johnbelamaric/themis | vendor/github.com/infobloxopen/go-trees/dltree/domain_label.go | 4349 | package dltree
import (
"bytes"
"math"
"strconv"
)
// A DomainLabel represents content of a label.
type DomainLabel []byte
// GetFirstLabelSize returns size in bytes needed to store first label of given domain name as a DomainLabel. Additionally the function returns position right after the label in given string ... | apache-2.0 |
injoin/plook | index.js | 189 | "use strict";
// Export the server if we're the main module
// Export the Plook class otherwise
module.exports = require.main === module ? require( "./server" ) : require( "./lib/plook" ); | apache-2.0 |
alexzatsepin/omim | routing/edge_estimator.cpp | 9324 | #include "routing/edge_estimator.hpp"
#include "routing/routing_helpers.hpp"
#include "traffic/traffic_info.hpp"
#include "indexer/feature_altitude.hpp"
#include "base/assert.hpp"
#include <algorithm>
#include <unordered_map>
using namespace routing;
using namespace std;
using namespace traffic;
namespace
{
feat... | apache-2.0 |
liudih/rabbitmq | rabbitmq-consumer/src/main/java/com/rabbit/conf/basemapper/WebsiteMapper.java | 1436 | package com.rabbit.conf.basemapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.rabbit.dto.Website;
public interface WebsiteMapper {
@Select("select * from t_website where iid = #{0} limit 1")
Website selectByPrimaryKey(Integer iid);
... | apache-2.0 |
zaurx/gitblit | src/com/gitblit/ServletRequestWrapper.java | 6242 | /*
* Copyright 2011 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 ... | apache-2.0 |
droolsjbpm/kie-benchmarks | optaplanner-benchmarks/optaplanner-perf-framework/src/main/java/org/jboss/qa/brms/performance/examples/nurserostering/solver/drools/EmployeeConsecutiveWeekendAssignmentEnd.java | 2937 | /*
* Copyright 2010 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
timothyhinrichs/opa | ast/index_test.go | 7237 | // Copyright 2017 The OPA Authors. All rights reserved.
// Use of this source code is governed by an Apache2
// license that can be found in the LICENSE file.
package ast
import (
"fmt"
"testing"
"github.com/open-policy-agent/opa/util/test"
)
type testResolver struct {
input *Term
failRef Ref
}
func (r tes... | apache-2.0 |
zhaoxiansheng/coolweather | app/src/main/java/com/example/zy/coolweather/gson/AQI.java | 218 | package com.example.zy.coolweather.gson;
/**
* Created by ZY on 2017/6/7.
*/
public class AQI {
public AQICity city;
public class AQICity{
public String aqi;
public String pm25;
}
}
| apache-2.0 |
jasonwee/asus-rt-n14uhp-mrtg | src/lesson_data_structures/collections_ordereddict_equality.py | 366 | import collections
print('dict :', end=' ')
d1 = {}
d1['a'] = 'A'
d1['b'] = 'B'
d1['c'] = 'C'
d2 = {}
d2['c'] = 'C'
d2['b'] = 'B'
d2['a'] = 'A'
print(d1 == d2)
print('OrderedDict:', end=' ')
d1 = collections.OrderedDict()
d1['a'] = 'A'
d1['b'] = 'B'
d1['c'] = 'C'
d2 = collections.OrderedDict()
d2['c'] = 'C'... | apache-2.0 |
exzogeni/droidkit | src/main/java/com/exzogeni/dk/log/formatter/SimpleLogFormatter.java | 2117 | /*
* Copyright (c) 2012-2014 Daniel Serdyukov
*
* 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 |
wanbangsoftware/Everdigm | Wbs.Everdigm.Web/Wbs.Everdigm.Desktop/Properties/Settings.Designer.cs | 1094 | //------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace W... | apache-2.0 |
dassmeta/passport | passport-core-service/src/main/java/com/dassmeta/passport/core/service/impl/RoleServiceImpl.java | 5442 | package com.dassmeta.passport.core.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.T... | apache-2.0 |
jessyZu/jsongood | jsongood-core/src/main/java/com/github/jessyZu/jsongood/core/RpcRequestDecoder.java | 137 | /**
*
*/
package com.github.jessyZu.jsongood.core;
public interface RpcRequestDecoder {
RpcRequest decode(String payload);
}
| apache-2.0 |
coderion/youtrack-export | src/main/java/pl/coderion/rest/DefaultYouTrackService.java | 19035 | package pl.coderion.rest;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import com.x5.template.Chunk;
import com.x5.template.Theme;
import org.joda.time.Duration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... | apache-2.0 |
beeldengeluid/zieook | backend/zieook-api/zieook-api-workflow/src/main/java/nl/gridline/zieook/workflow/api/CollectionImport.java | 5352 | /**
* 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 |
googleapis/nodejs-dataproc-metastore | samples/generated/v1beta/dataproc_metastore.export_metadata.js | 2845 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
jkandasa/hawkular-inventory | hawkular-inventory-api/src/main/java/org/hawkular/inventory/api/paging/Page.java | 3037 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | apache-2.0 |
spinnaker/halyard | halyard-config/src/main/java/com/netflix/spinnaker/halyard/config/validate/v1/security/X509Validator.java | 1345 | /*
* Copyright 2017 Target, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | apache-2.0 |
ebi-uniprot/QuickGOBE | ontology-rest/src/test/java/uk/ac/ebi/quickgo/ontology/traversal/read/OntologyGraphConfigIT.java | 2232 | package uk.ac.ebi.quickgo.ontology.traversal.read;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.test.JobLauncherTestUtils;
import org.springframework.beans.factory.annotati... | apache-2.0 |
meitar/zaproxy | zap/src/main/java/org/zaproxy/zap/view/OptionsConnectionPanel.java | 13029 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | apache-2.0 |
glutwins/pholcus | vendor/golang.org/x/text/encoding/charmap/maketables.go | 11954 | // Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
package main
import (
"bufio"
"fmt"
"log"
"net/http"
"sort"
"strings"
"unicode/utf8"
"golang.org/x/text/encoding"
... | apache-2.0 |
equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/core/item/edit/attachment/PackageResourceAttachmentEditor.java | 965 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | apache-2.0 |
varra4u/utils4j | src/main/java/com/varra/jmx/exception/MBeanRegistrationException.java | 1987 | /*
* utils4j - MBeanRegistrationException.java, Feb 3, 2011 4:45:08 PM
*
* 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 |
ahmedowian/code_katas | trees/src/test/java/ahmedowian/code_katas/trees/NodeManagerRemovingTest.java | 1228 | package ahmedowian.code_katas.trees;
import org.junit.Before;
import org.junit.Test;
public class NodeManagerRemovingTest extends NodeManagerTestBase
{
/**
* Sets up the tree to look like this:
* A -> Removing A on level 0 will cause there to be no root
* /\ \
* B... | apache-2.0 |
thlcly/JavaDemo | src/main/java/com/aaront/java/proxy/static_proxy/HelloWorldImpl.java | 173 | package com.aaront.java.proxy.static_proxy;
public class HelloWorldImpl implements HelloWorld {
public void print() {
System.out.println("Hello World");
}
} | apache-2.0 |
codersimple/DesignPattern | src/strategy/King.java | 58 | package strategy;
public class King extends Character {}
| apache-2.0 |
spinnaker/orca | orca-api/src/main/java/com/netflix/spinnaker/orca/api/pipeline/Task.java | 3476 | /*
* Copyright 2020 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
ilxlf/google_search_bar | search/src/main/java/com/ilxlf/search/util/SystemUiHiderBase.java | 1544 | package com.ilxlf.search.util;
import android.app.Activity;
import android.view.View;
import android.view.WindowManager;
/**
* A base implementation of {@link SystemUiHider}. Uses APIs available in all
* API levels to show and hide the status bar.
*/
public class SystemUiHiderBase extends SystemUiHider {
/**
... | apache-2.0 |
svn2github/scalatest | src/main/scala/org/scalatest/concurrent/TimeLimitedTests.scala | 6607 | /*
* Copyright 2001-2012 Artima, 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 agre... | apache-2.0 |
miranda-messaging/miranda | src/main/java/com/ltsllc/miranda/file/states/SingleFileWritingState.java | 2592 | package com.ltsllc.miranda.file.states;
import com.ltsllc.miranda.Message;
import com.ltsllc.miranda.Panic;
import com.ltsllc.miranda.Results;
import com.ltsllc.miranda.State;
import com.ltsllc.miranda.clientinterface.MirandaException;
import com.ltsllc.miranda.file.SingleFile;
import com.ltsllc.miranda.miranda.Mirand... | apache-2.0 |
Ztiany/AndroidBase | lib_network/src/main/java/com/android/sdk/net/progress/ProgressRequestBody.java | 2751 | package com.android.sdk.net.progress;
import android.os.SystemClock;
import android.support.annotation.NonNull;
import java.io.IOException;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import okio.Buffer;
import okio.BufferedSink;
import okio.ForwardingSink;
import okio.Okio;
import okio.Sink;
class Progre... | apache-2.0 |