repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
quantrocket-llc/quantrocket-client | quantrocket/cli/subcommands/zipline.py | 18276 | # Copyright 2017 QuantRocket - All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 |
JPPorcel/CCSA | P4/tareas/max/MaxMapper.java | 863 | package oldapi;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.Mapper;
import org.apache.hadoop.ma... | apache-2.0 |
mkeijzer/push-forth | push-forth/test/org/arg/test/TestIntegers.java | 1238 | package org.arg.test;
import org.arg.pushforth.dictionary.SymbolTable;
import org.arg.pushforth.instructions.Instruction;
import org.arg.pushforth.instructions.Numbers;
import org.arg.pushforth.program.Program;
import org.arg.pushforth.program.Programs;
import org.junit.Test;
public class TestIntegers {
... | apache-2.0 |
gchq/stroom | stroom-ui/src/components/password/ResetPasswordRequest/index.ts | 81 | export { ResetPasswordRequestContainer } from "./ResetPasswordRequestContainer";
| apache-2.0 |
TcmExtensions/TcmHttpUpload | TcmHttpUpload/Misc/TcmUri.cs | 5995 | #region Header
////////////////////////////////////////////////////////////////////////////////////
//
// File Description: TcmUri
// ---------------------------------------------------------------------------------
// Date Created : February 28, 2013
// Author : Rob van Oostenrijk
// -------------------------------... | apache-2.0 |
adamralph/Workshop.Microservices | exercises/02-publish-subscribe/after/Divergent.Finance.API/Controllers/PricesController.cs | 1059 | using Divergent.Finance.Data.Context;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace Divergent.Finance.API.Controllers
{
[RoutePrefix("api/prices")]
public class PricingController : ApiController
{
[HttpGet, Route("orders/total")]
public IEnumerable<d... | apache-2.0 |
roberthafner/flowable-engine | modules/flowable-idm-api/src/main/java/org/activiti/idm/api/GroupQuery.java | 2099 | /* 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 |
dfalcone/wp-store | wp-store/wp-store-wsa/domain/VirtualItem.cs | 2061 | /// Copyright (C) 2012-2014 Soomla 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 app... | apache-2.0 |
kantega/respiro | plugins/core/mongodb-driver/src/main/java/org/kantega/respiro/mongodb/driver/DefaultMongoDBBuilder.java | 3230 | /*
* Copyright 2019 Kantega AS
*
* 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 |
Seddryck/Lookum | Lookum.Framework/Lookup/BaseLookup.cs | 3226 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lookum.Framework.Lookup
{
public abstract class BaseLookup<K, V> : ILookup
{
public bool IsLoaded { get; protected set; }
/// <summary>
/// Internal container to store in-memory the differe... | apache-2.0 |
googleads/googleads-php-lib | examples/AdManager/v202111/CreativeService/GetImageCreatives.php | 3532 | <?php
/**
* 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 ... | apache-2.0 |
revelup/salt-preseed | src/main.go | 1213 | package main
import (
"fmt"
"log"
"net/http"
"time"
"github.com/gorilla/mux"
"github.com/revelup/httpserver"
"github.com/streamrail/concurrent-map"
)
const (
listenAddress string = "127.0.0.1:8080"
rateLimit int = 3
)
var ipPerMinute cmap.ConcurrentMap
func init() {
ipPerMinute = cmap.New()
}
fun... | apache-2.0 |
GoogleCloudPlatform/python-docs-samples | cloud-sql/mysql/client-side-encryption/snippets/cloud_kms_env_aead.py | 1521 | # 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 writing, s... | apache-2.0 |
apache/jsecurity | src/org/jsecurity/session/SessionException.java | 3552 | /*
* 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 |
sqrrrl/google-api-nodejs-client | src/apis/bigquerydatatransfer/index.ts | 1309 | // 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 wr... | apache-2.0 |
liuyf8688/demos | actor-akka-demos/src/main/java/com/liuyf/demo/actor/akka/tutorials/actor/lifecycle/StartStopActor2.java | 513 | package com.liuyf.demo.actor.akka.tutorials.actor.lifecycle;
import akka.actor.AbstractActor;
public class StartStopActor2 extends AbstractActor {
@Override
public void preStart() throws Exception {
System.out.println("second started");
}
@Override
public void postStop() thr... | apache-2.0 |
depositolegale/bookdeposit-desktop | main.js | 1118 | const electron = require("electron");
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const ipcMain = electron.ipcMain;
const path = require("path");
const url = require("url");
const fs = require("fs");
let mainWindow;
var mkdirOutputDirectory = function() {
dir = path.join(app.getPath("de... | apache-2.0 |
jt120/my-cabin | concurrency/src/main/java/syn/TestSync.java | 224 | package syn;
/**
* @author ze.liu
* @since 2014/5/20
*/
public class TestSync {
public static void main(String[] args) {
System.out.println(Fruit.State.START.compareTo(Fruit.State.END));
}
}
| apache-2.0 |
agentmedia/phine-core | src/Core/Modules/Backend/PageForm.php | 24387 | <?php
namespace Phine\Bundles\Core\Modules\Backend;
use Phine\Bundles\Core\Logic\Module\BackendForm;
use Phine\Framework\System\Http\Request;
use Phine\Framework\FormElements\Fields\Input;
use App\Phine\Database\Core\Site;
use App\Phine\Database\Core\Page;
use Phine\Framework\Validation\DatabaseCount;
use Phine\Framewo... | apache-2.0 |
IntelliTect/Coalesce | src/Coalesce.Web/Controllers/Generated/StandaloneReadonlyController.g.cs | 694 | using IntelliTect.Coalesce.Knockout.Controllers;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Hosting;
namespace Coalesce.Web.Controllers
{
[Authorize]
public partial class StandaloneReadonlyController : BaseViewController<Coalesce.Domain.StandaloneReadon... | apache-2.0 |
lqbweb/logging-log4j2 | log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/jdbc/FactoryMethodConnectionSource.java | 6322 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache license, Version 2.0
* (the "License"); you may n... | apache-2.0 |
qingshan/sieve | parse/lex.go | 8144 | package parse
import (
"fmt"
"strings"
"unicode"
"unicode/utf8"
)
// stateFn represents the state of the scanner as a function that returns the next state.
type stateFn func(*Lexer) stateFn
// lexer holds the state of the scanner.
type Lexer struct {
name string // the name of the input; used only for... | apache-2.0 |
alexeremeev/aeremeev | chapter_010/src/test/java/ru/job4j/todo/servlets/MainViewTest.java | 3541 | package ru.job4j.todo.servlets;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import org.junit.Before;
import org.junit.Test;
import ru.job4j.todo.database.Database;
import ru.job4j.todo.models.Item;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import jav... | apache-2.0 |
wuyr/LuZhiShen | app/src/main/java/org/lvu/adapters/SubAdapters/video/Video9Adapter.java | 449 | package org.lvu.adapters.SubAdapters.video;
import android.content.Context;
import org.lvu.models.Data;
import java.util.List;
/**
* Created by wuyr on 1/10/17 9:26 PM.
*/
public class Video9Adapter extends Video1Adapter {
public Video9Adapter(Context context, int layoutId, List<Data> data) {
super(c... | apache-2.0 |
unicef/un-partner-portal | backend/unpp_api/apps/review/migrations/0026_auto_20180911_1043.py | 787 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-11 10:43
from __future__ import unicode_literals
import common.database_fields
import django.contrib.postgres.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('review', '0025_auto_20180907_13... | apache-2.0 |
adamrduffy/trinidad-1.0.x | trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/xml/parse/IncludePropertyNode.java | 4590 | /*
* 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")... | apache-2.0 |
Bartmax/Foundatio | src/Core/Extensions/CollectionExtensions.cs | 1014 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Foundatio.Extensions {
public static class CollectionExtensions {
public static ICollection<T> ReduceTimeSeries<T>(this ICollection<T> items, Func<T, DateTime> dateSelector, Func<ICollection<T>, DateTime, T> reducer, int dataPoin... | apache-2.0 |
h6ah4i/cxxdasp | include/cxxdasp/resampler/halfband/f32_mono_sse_halfband_x2_resampler_core_operator.hpp | 3558 | //
// Copyright (C) 2014 Haruki Hasegawa
//
// 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 |
mgj/MvvmCross-Dreams | Dreams.Core/ViewModels/First/FirstViewModel.cs | 1275 | using Dreams.Core.ViewModels.Common;
using Dreams.Core.ViewModels.Second;
using MvvmCross.Core.ViewModels;
namespace Dreams.Core.ViewModels.First
{
/// <summary>
/// Purpose: To show how to do simple data binding, as well
/// as navigation between viewmodels (which can include
/// passing data)
///... | apache-2.0 |
openslack/openslack-crawler | examples/tutorial/tutorial/misc/proxy.py | 11654 | '''
PROXIES = [
{"ip_port":"218.94.149.114:8080"},
{"ip_port":"202.51.120.58:8080"},
{"ip_port":"180.244.214.180:8080"},
{"ip_port":"186.216.160.147:8080"},
{"ip_port":"61.153.149.205:8080"},
{"ip_port":"221.176.214.246:8080"},
{"ip_port":"59.172.208.186:8080"},
{"ip_port":"61.167.49.188:8080"},... | apache-2.0 |
leopardoooo/cambodia | ycsoft-lib/src/main/java/com/ycsoft/beans/device/RDeviceProcure.java | 3057 | /**
* RDeviceProcure.java 2010/09/06
*/
package com.ycsoft.beans.device;
import java.io.Serializable;
import java.util.Date;
import com.ycsoft.commons.store.MemoryDict;
import com.ycsoft.daos.config.POJO;
/**
* RDeviceProcure -> R_DEVICE_PROCURE mapping
*/
@POJO(
tn="R_DEVICE_PROCURE",
sn="... | apache-2.0 |
theflofly/tensorflow | tensorflow/core/graph/graph.cc | 26621 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | apache-2.0 |
gonmarques/cdi-properties | cdi-properties-test/cdi-properties-test-glassfish3122/src/test/java/com/byteslounge/cdi/test/it/WarProvidedLocaleMethodThreadLocalPTIT.java | 2741 | /*
* Copyright 2015 byteslounge.com (Gonçalo Marques).
*
* 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 l... | apache-2.0 |
idunnololz/Swapp | app/src/main/java/com/ocr/LuminanceSource.java | 3990 | /*
* Copyright 2009 ZXing authors
* Copyright 2011 Robert Theis
*
* 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 |
hwangsyin/crm | py/service/customer.py | 2782 | import settings
import environment
from datetime import datetime
import pymongo
from service import db
from domains import Customer
# 客户管理
class CustomerService:
def add(self, customer):
if not customer:
return None
customer_id_cursor = db["customer"].find(None, {"_id": False, "id":T... | apache-2.0 |
bshp/midPoint | model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/util/MiscHelper.java | 7087 | /*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.wf.impl.util;
import com.evolveum.midpoint.model.api.ModelInteractionService;
import com.evolveum.... | apache-2.0 |
avenwu/leetcode | src/com/avenwu/leetcode/LC002ValidPalindrome.java | 2581 | package com.avenwu.leetcode;
/**
* Created by aven on 14-10-19.
* <p/>
* Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
* For example,
* "A man, a plan, a canal: Panama" is a palindrome.
* "race a car" is not a palindrome.
* <p/>
* Note:
* Have yo... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/transform/DescribePortfolioShareStatusRequestProtocolMarshaller.java | 2916 | /*
* 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 |
joschi/jackson-datatype-threetenbp | src/test/java/com/fasterxml/jackson/datatype/threetenbp/ser/TestYearMonthSerializationWithCustomFormatter.java | 2349 | package com.fasterxml.jackson.datatype.threetenbp.ser;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.hamcrest.core.StringContains.containsString;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.S... | apache-2.0 |
McLeodMoores/starling | projects/analytics/src/main/java/com/opengamma/analytics/financial/equity/EquityTrsDataBundle.java | 3298 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.equity;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang.ObjectUtils;
import com.opengamma.analytics.financial... | apache-2.0 |
D3-LucaPiombino/MassTransit | src/MassTransit.QuartzIntegration/ScheduledMessageJob.cs | 6079 | // Copyright 2007-2015 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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 |
Shivam101/SachinApp-Android | src/com/shivamb7/sachinapp/Facts2.java | 5112 | package com.shivamb7.sachinapp;
import java.util.Locale;
import com.google.ads.AdRequest;
import com.google.ads.AdView;
import android.app.ActionBar;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.suppo... | apache-2.0 |
orignMaster/osikani | app/src/commonTest/java/app/vfmesthack/kiss/test/common/rules/TestComponentRule.java | 1952 | package app.vfmesthack.kiss.test.common.rules;
import android.content.Context;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
import app.vfmesthack.kiss.BoilerplateApplication;
import app.vfmesthack.kiss.data.DataManager;
import app.vfmesthack.kiss.tes... | apache-2.0 |
jaymzh/chef | spec/unit/train_transport_spec.rb | 3885 | #
# Author:: Bryan McLellan (<btm@loftninjas.org>)
# Copyright:: Copyright (c) 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.
# You may obtain a copy of the License at
#
# ... | apache-2.0 |
mcheo/ansible_f5 | post_slack.py | 156 | from slacker import Slacker
import sys
slack = Slacker(<slack_token>)
# Send a message to #general channel
slack.chat.post_message('#demo', sys.argv[1])
| apache-2.0 |
AnanyaKumar/kubernetes | pkg/api/testing/fuzzer.go | 10880 | /*
Copyright 2015 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | apache-2.0 |
ryfow/kubernetes | pkg/registry/endpoints.go | 2771 | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | apache-2.0 |
speedcom/cqrs-es-dddd | src/main/scala/com/speedcom/Module.scala | 722 | package com.speedcom
import com.speedcom.core.bank_account.boundary.BankAccountFinder
import com.speedcom.core.bank_account.usecases.{UcGetBalance, UcContributeMoney}
import com.speedcom.core.transaction_history.boundary.TransactionHistoryFinder
import com.speedcom.inmem.{InMemBankAccountFinder, InMemTransactionHistor... | apache-2.0 |
google-research/google-research | gift/pipelines/multi_env_trainer.py | 12972 | # coding=utf-8
# Copyright 2022 The Google Research 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 |
OpenNTF/org.openntf.domino | domino/org.openntf.domino.graph/src/main/java/org/openntf/domino/graph2/builtin/Eventable.java | 2629 | /**
* Copyright © 2013-2021 The OpenNTF Domino API Team
*
* 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 |
kzubrinic/oop | oop/src/hr/unidu/oop/p02/Pdv0.java | 965 | package hr.unidu.oop.p02;
/**
* Klasa koji služi kao primjer korištenja varijabli instance
*/
public class Pdv0 {
/**
* pdv je varijabla instance (objekta).
* Svaki objekt ima svoju kopiju varijable pdv. Promjena njezine
* vrijednosti odnosi se samo na jedan objekt.
*/
private double pdv ... | apache-2.0 |
KDanila/KDanila | chapter_001/src/test/java/ru/job4j/condition/package-info.java | 145 | /**
* Package for PointTest class.
*
* @author Danila Kuzmin (mailto:bus1d0@mail.ru)
* @version $Id$
* @since 0.1
*/
package ru.job4j.condition;
| apache-2.0 |
BushrootPDX/app | src/gardenactionselector/actions.js | 1308 | import * as actions from '../garden/constants';
import gardensApi from '../services/gardensApi';
export const makeSaveGarden = gardensApi => garden => dispatch => {
dispatch({ type: actions.SAVING_GARDEN });
return gardensApi.updateGarden(garden)
.then(saved => {
dispatch({
... | apache-2.0 |
software-engineering-amsterdam/poly-ql | SantiagoCarrillo/q-language/src/edu/uva/softwarecons/model/expression/UnaryExpression.java | 407 | package edu.uva.softwarecons.model.expression;
/**
* Falconlabs
*
* @author Santiago Carrillo
* Date: 2/20/14
*/
public abstract class UnaryExpression
implements Expression
{
private final Expression argument;
public UnaryExpression( Expression argument )
{
this.argument = argum... | apache-2.0 |
CrimsonInn/dab-tree | src/main.cc | 863 | #include <iostream>
#include <glog/logging.h>
#include <gflags/gflags.h>
#include "data.h"
#include "tree.h"
#include "matrix.h"
#include "proto_func.h"
#include "trainer.h"
DEFINE_double(lr, 1.0, "learning rate");
DEFINE_uint64(batch, 10000, "batch size");
DEFINE_string(train, "BATCH_DATA_FILE", "training data file")... | apache-2.0 |
Hexworks/zircon | zircon.jvm.examples/src/main/java/org/hexworks/zircon/examples/components/AllComponentsExampleJava.java | 4981 | package org.hexworks.zircon.examples.components;
import org.hexworks.zircon.api.component.*;
import org.hexworks.zircon.api.data.Tile;
import org.hexworks.zircon.examples.base.Defaults;
import org.hexworks.zircon.examples.base.OneColumnComponentExampleJava;
import org.hexworks.zircon.internal.component.renderer.NoOpCo... | apache-2.0 |
mark-friedman/blockly | core/generator.js | 18854 | /**
* @license
* Copyright 2012 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Utility functions for generating executable code from
* Blockly code.
* @author fraser@google.com (Neil Fraser)
*/
'use strict';
goog.provide('Blockly.Generator');
goog.require('Blockly.Block');
/** @suppr... | apache-2.0 |
redhat-openstack/trove | trove/tests/scenario/helpers/mariadb_helper.py | 1101 | # Copyright 2015 Tesora 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 |
Oncilla/scion | go/integration/end2end_integration/main.go | 8947 | // Copyright 2018 ETH Zurich, Anapaya Systems
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | apache-2.0 |
edde-framework/edde-framework | src/Edde/Api/Protocol/Request/IRequestService.php | 743 | <?php
declare(strict_types=1);
namespace Edde\Api\Protocol\Request;
use Edde\Api\Protocol\IElement;
use Edde\Api\Protocol\IProtocolHandler;
interface IRequestService extends IProtocolHandler {
/**
* @param IRequestHandler $requestHandler
*
* @return IRequestService
*/
public function registerReq... | apache-2.0 |
onybo/TypeScript.Presentation | SampleProject/Scripts/services/HotkeysService.js | 1169 | var Services;
(function (Services) {
'use strict';
function listData() {
return {
getItems: ""
};
}
var HotkeysService = (function () {
function HotkeysService(hotkeys, $translate, $rootScope, $log) {
this.hotkeys = hotkeys;
this.hotkeys.add... | apache-2.0 |
baldimir/drools | kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeImpl.java | 41982 | /*
* Copyright 2016 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 a... | apache-2.0 |
Justice-love/tiger | tiger/src/test/java/tiger/test/deep/package-info.java | 108 | /**
*
* @creatTime 上午11:44:46
* @author Eddy
*/
/**
* @author Eddy
*
*/
package tiger.test.deep; | apache-2.0 |
TransitHelper/TransitAngel | app/src/main/java/com/transitangel/transitangel/search/SearchActivity.java | 5509 | package com.transitangel.transitangel.search;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-nimblestudio/src/main/java/com/amazonaws/services/nimblestudio/waiters/StudioComponentDeleted.java | 4452 | /*
* 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 |
labsai/EDDI | apiserver/src/main/resources/js/jquery.urldecoder.edited.js | 12649 | /** --------------------------------------------------------------------------
* jQuery URL Decoder
* Version 1.0
* Parses URL and return its components. Can also build URL from components
*
* ---------------------------------------------------------------------------
* HOW TO USE:
*
* $.url.deco... | apache-2.0 |
noddi/druid | indexing-service/src/test/java/io/druid/indexing/common/task/RealtimeIndexTaskTest.java | 36911 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | apache-2.0 |
leapframework/framework | oauth2/server/src/main/java/leap/oauth2/server/endpoint/token/GrantTypeHandleFailHandler.java | 1167 | /*
*
* * Copyright 2013 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
* *
*... | apache-2.0 |
GoogleChrome/lighthouse | lighthouse-core/scripts/benchmark-plus-extras.js | 3567 | /**
* @license Copyright 2020 The Lighthouse Authors. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applica... | apache-2.0 |
qframe/types | messages/base_test.go | 5205 | package qtypes_messages
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/zpatrick/go-config"
"reflect"
"github.com/qframe/types/plugin"
"github.com/qframe/types/qchannel"
)
func NewConfig(kv map[string]string) *config.Config {
return config.NewConfig([]config.Provider{config.NewStat... | apache-2.0 |
hetianpeng/shareApk | shareapk/src/main/java/com/codehe/shareapk/ui/BaseActivity.java | 605 | package com.codehe.shareapk.ui;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import org.greenrobot.eventbus.EventBus;
/**
* Created by hetianpeng on 2017/2/12.
*/
public class BaseActivity extends AppCompatActivity {
@Override
prote... | apache-2.0 |
woolparty/DontEatMyFish | DonTouchMyFish/Assets/Assets/Effects/Cartoon FX/Demo/Assets/CFX_Demo.cs | 4824 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
// Script handling the Demo scene of CartoonFX particles.
public class CFX_Demo : MonoBehaviour
{
public bool orderedSpawns = true;
public float step = 1.0f;
public float range = 5.0f;
private float... | apache-2.0 |
shinfan/artman | artman/cli/main2.py | 16431 | # 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 applicable law or agree... | apache-2.0 |
anpingli/origin | test/integration/buildpod_admission_test.go | 12550 | package integration
import (
"reflect"
"strings"
"testing"
"time"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
watchapi "k8s.io/apimachinery/pkg/watch"
kclientset "k8s.io/client-go/kubernetes"
"k8s.io/kubernetes/pkg/api/legacyscheme"
kapi "k8s.io/ku... | apache-2.0 |
hirofumi/commons-feedparser | src/java/org/apache/commons/feedparser/post/MetaWeblogPostAgent.java | 1701 | /*
* Copyright 1999,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
*
* Unless required by... | apache-2.0 |
itgeeker/jdk | src/org/omg/DynamicAny/DynArray.java | 718 | package org.omg.DynamicAny;
/**
* org/omg/DynamicAny/DynArray.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u72/5732/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
* Tuesday, December 22, 2015 7:17:37 PM PST
*/
/**
*... | apache-2.0 |
cegesoma/rspub-core | rspub/core/executors.py | 16471 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
:samp:`Events and base classes for execution`
"""
import logging
import os
import re
from abc import ABCMeta, abstractmethod
from enum import Enum
from glob import glob
from resync import CapabilityList
from resync import Resource
from resync import SourceDescripti... | apache-2.0 |
sarvex/tensorflow | tensorflow/python/eager/run_eager_op_as_function_test.py | 4936 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 |
zhubinqiang/myTMS | src/main/java/com/intel/media/mts/action/execution/SendCommandFromResultAction.java | 1543 | package com.intel.media.mts.action.execution;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import com.intel.media.mts.util.SocketUtil;
import com.opensymphony.xwork2.ActionSupport;
public class SendCommandFromResultAction extends Ac... | apache-2.0 |
s3git/s3git | cmd/snapshot.go | 4419 | /*
* 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 |
givemeahigh5/ImageQuiz | src/main/java/scripteditor/HelpPopup.java | 10318 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | apache-2.0 |
papoose/papoose-core | cnd-perm-admin/src/main/java/org/papoose/core/ConditionalPermissionAdminImpl.java | 7935 | /**
*
* Copyright 2008-2009 (C) 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 ... | apache-2.0 |
ssaarela/javersion | javersion-json-webapp/src/main/java/org/javersion/json/web/VersionMetadata.java | 1549 | /*
* Copyright 2014 Samppa Saarela
*
* 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 |
googleprojectzero/sandbox-attacksurface-analysis-tools | NtApiDotNet/Win32/RunningService.cs | 846 | // Copyright 2021 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 applica... | apache-2.0 |
cloudfoundry/cf-java-client | cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/users/_ExpirePasswordResponse.java | 1287 | /*
* Copyright 2013-2021 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 |
Talend/data-prep | dataprep-upgrade/src/test/java/org/talend/dataprep/upgrade/to_2_4_0_PE/Base_2_4_0_PE_Test.java | 913 | /*
* Copyright (C) 2006-2018 Talend Inc. - www.talend.com
*
* This source code is available under agreement available at
* https://github.com/Talend/data-prep/blob/master/LICENSE
*
* You should have received a copy of the agreement
* along with this program; if not, write to Talend SA
* 9 rue Pages 92150 Suresn... | apache-2.0 |
Deus0/Zeltexium | Assets/Plugins/Wasabimole/ProceduralTree/ProceduralTree.cs | 16823 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;
#endif
// ---------------------------------------------------------------------------------------------------------------------------
// Procedural Tree - Simple tree mesh generation - �... | apache-2.0 |
ShootGame/Arcade2 | src/main/java/pl/themolka/arcade/score/ScoreIncrementEvent.java | 1839 | /*
* Copyright 2018 Aleksander Jagiełł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 ag... | apache-2.0 |
gaplyk/go-swagger | examples/generated/cmd/petstore-server/main.go | 1485 | package main
import (
"log"
"os"
loads "github.com/go-openapi/loads"
flags "github.com/jessevdk/go-flags"
"github.com/go-swagger/go-swagger/examples/generated/restapi"
"github.com/go-swagger/go-swagger/examples/generated/restapi/operations"
)
// This file was generated by the swagger tool.
// Make sure not to... | apache-2.0 |
sportingsolutions/SS.Integration.Adapter | SS.Integration.Adapter.WindowsService/AdapterService.cs | 9190 | //Copyright 2014 Spin Services 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
// http://www.apache.org/licenses/LICENSE-2.0
//Unless required by applicable law or agreed to in wr... | apache-2.0 |
mohanaraosv/commons-vfs | core/src/test/java/org/apache/commons/vfs2/test/ProviderRandomReadTests.java | 3177 | /*
* 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 |
googleapis/google-api-java-client | google-api-client/src/main/java/com/google/api/client/googleapis/testing/compute/MockMetadataServerTransport.java | 4143 | /*
* Copyright 2014 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 in writ... | apache-2.0 |
windchopper/common | common-preferences/src/main/java/com/github/windchopper/common/preferences/PreferencesEntryFlatContainerType.java | 1231 | package com.github.windchopper.common.preferences;
import java.util.HashMap;
import java.util.Map;
import static java.util.function.Predicate.not;
public abstract class PreferencesEntryFlatContainerType<T, C> extends PreferencesEntryType<C, Map<String, T>> {
private final PreferencesEntryFlatType<T> valueType;
... | apache-2.0 |
hynguyen2610/OlympicGym | GymFitnessOlympic/Models/entity/PhieuThu.cs | 1858 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
namespace GymFitnessOlympic.Models
{
public class PhieuThu
{
public int MaPhieuThu { get; set; }
public DateTime NgayLap { get; set; }
public int SoTien ... | apache-2.0 |
etechi/ServiceFramework | Projects/Server/Common/SF.Common.Implements/Common/TextMessages/Management/MsgRecordManager.cs | 3593 | #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
htt... | apache-2.0 |
TANGKUO/beautifulDay | src/main/java/com/tk/cn/thread/myThread.java | 289 | package com.tk.cn.thread;
public class myThread extends Thread{
public void run(){
for(int i=0;i<10;i++){
System.out.println("Thread"+i);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
throw new RuntimeException();
}
}
}
}
| apache-2.0 |
karlmdavis/jessentials | jessentials-misc/src/test/java/com/justdavis/karl/misc/datasources/provisioners/postgresql/PostgreSqlProvisionerIT.java | 4829 | package com.justdavis.karl.misc.datasources.provisioners.postgresql;
import java.net.URL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.sql.DataSource;
import org.junit.Assert;
import org.junit.Test;
import com.justdavis.karl.mis... | apache-2.0 |
TNG/ArchUnit | archunit-example/example-junit4/src/test/java/com/tngtech/archunit/exampletest/junit4/ControllerRulesTest.java | 2921 | package com.tngtech.archunit.exampletest.junit4;
import com.tngtech.archunit.base.DescribedPredicate;
import com.tngtech.archunit.base.PackageMatchers;
import com.tngtech.archunit.core.domain.JavaClass;
import com.tngtech.archunit.core.domain.JavaMember;
import com.tngtech.archunit.example.layers.security.Secured;
imp... | apache-2.0 |
DG-i/openshift-ansible | roles/lib_openshift/library/oc_configmap.py | 55697 | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | apache-2.0 |
ValeriyaSyomina/DigitSignature | src/DigitSignProject/Comparator.cs | 913 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DigitSignProject
{
public class Comparator
{
/// <summary>
/// Сравнивает 2 байтовых массива поэлементно
/// </summary>
/// <param name="firstArray">Пер... | apache-2.0 |