repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
kpsroka/splendid | src/ui/welcome/WelcomeScreen.test.js | 2833 | /*
* Copyright 2017 K. P. Sroka
*
* 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 |
liam-kelly/port | includes/views/themes/cloudburst/errors/505.php | 1373 | <?php
/**
* Copyright 2014 William Caleb Kelly
*
* 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 |
muhbaasu/fx-sharp | src/FxSharp.Tests/Extensions/StackExtensionsTests.cs | 1073 | using System.Collections.Generic;
using FxSharp.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FxSharp.Tests.Extensions
{
[TestClass]
public class StackExtensionsTests
{
private readonly Stack<int> _empty = new Stack<int>();
private readonly Stack<int> _stack = n... | apache-2.0 |
amirakhmedov/ignite | examples/src/main/java/org/apache/ignite/examples/ml/tutorial/Step_2_Imputing.java | 4596 | /*
* 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 |
cmanlh/DDLGenerator | src/main/java/com/lifeonwalden/codeGenerator/javaClass/impl/HashBeanGeneratorImplDepracted.java | 14009 | package com.lifeonwalden.codeGenerator.javaClass.impl;
import com.lifeonwalden.codeGenerator.bean.Column;
import com.lifeonwalden.codeGenerator.bean.Table;
import com.lifeonwalden.codeGenerator.bean.config.Config;
import com.lifeonwalden.codeGenerator.constant.BeanTypeEnum;
import com.lifeonwalden.codeGenerator.consta... | apache-2.0 |
zuesgooogle/game-server | src/main/java/com/simplegame/server/stage/model/core/element/IHatredManager.java | 936 | package com.simplegame.server.stage.model.core.element;
import java.util.Collection;
import java.util.Map;
import com.simplegame.server.stage.model.core.element.impl.hatred.HatredStatistic;
import com.simplegame.server.stage.model.core.stage.ElementType;
public interface IHatredManager {
public IHatred getH... | apache-2.0 |
fastly/omnibus-chef | config/software/openssl-customization.rb | 2456 | #
# Copyright:: Copyright (c) 2014 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
#
# http://www.apache.org/licenses/LICENSE-2... | apache-2.0 |
MyRobotLab/pyrobotlab | service/WatchDogTimer.py | 819 | # FIXME - "default" checkPoint() - e.g. watchdog.checkPoint() should work
# FIXME - re-running the script makes multiple timers & multiple corrective actions
# FIXME - make start() & stop() to enable and disable all watchdogtimers
# start services
Runtime.start("joy", "Joystick")
Runtime.start("gui","SwingGui")
Runtim... | apache-2.0 |
Alorel/dropbox-v2-php | src/Options/Mixins/MuteTrait.php | 1816 | <?php
/**
* Copyright (c) Arturas Molcanovas <a.molcanovas@gmail.com> 2016.
* https://github.com/Alorel/dropbox-v2-php
*
* 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 ... | apache-2.0 |
puyanLiu/LPYFramework | 前端练习/10canvas/js/30PieChart.js | 2447 | /*
* @Author: liupuyan
* @Date: 2017-01-09 18:34:36
* @Last Modified by: liupuyan
* @Last Modified time: 2017-01-09 18:54:16
*/
'use strict';
function PieChart(option) {
this._init(option);
}
PieChart.prototype = {
_init: function(option) {
this.x = option.x || 0;
this.y = option.y || 0;
this.r = option.... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/transform/BatchStartResultJsonUnmarshaller.java | 3177 | /*
* 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 |
google-research/neural-structural-optimization | setup.py | 1236 | # Copyright 2019 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 writing,... | apache-2.0 |
gergo13/JavaMainRepo | Students/Bologa M. Marius - Vasile/Zoowsome/src/javasmmr/zoowsome/models/animals/Mammal.java | 1085 | package javasmmr.zoowsome.models.animals;
/**
*
* @author Marius Bologa
*
*/
public abstract class Mammal extends Animal {
/**
*
* @param dangerPerc
* How dangerous an animal is.
* @param maintenanceCost
* The maintenance cost.
*/
public Mammal(double dangerPerc, double mainte... | apache-2.0 |
twitter-forks/presto | presto-main/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java | 165070 | /*
* 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 |
EixoX/jetfuel | jetfuel-core/src/main/java/com/eixox/data/sql/Postgres.java | 622 | package com.eixox.data.sql;
import java.util.Properties;
public class Postgres extends Database {
public Postgres(String url, Properties properties) {
super(url, properties);
}
@Override
public DatabaseCommand createCommand() {
return new PostgresCommand(this);
}
@Override
public final char getNamePrefi... | apache-2.0 |
parshimers/incubator-asterixdb | asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/handle/IHandle.java | 986 | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | apache-2.0 |
a-chervin/onlinedebug | test/xryusha/onlinedebug/testcases/breakpoints/methodrelated/ConstructorMethod.java | 739 | package xryusha.onlinedebug.testcases.breakpoints.methodrelated;
import xryusha.onlinedebug.testcases.Flow;
public class ConstructorMethod extends Flow
{
@Override
public void reset()
{
CtorTest.counter = 0;
}
@Override
public Object call() throws Exception
{
f();
... | apache-2.0 |
scouter-project/scouter | scouter.webapp/src/main/java/scouterx/webapp/layer/controller/UserController.java | 3712 | /*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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/licen... | apache-2.0 |
jmptrader/Strata | modules/pricer/src/main/java/com/opengamma/strata/pricer/bond/LegalEntityDiscountingProvider.java | 28845 | /**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.bond;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Map;
import java.util.Map.Entry;
import java.util.NoSuchElementEx... | apache-2.0 |
epsiinside/interne | src/net/wastl/webmail/server/SystemCheck.java | 5580 | /*
* @(#)$Id: SystemCheck.java 113 2008-10-29 23:41:26Z unsaved $
*
* Copyright 2008 by the JWebMail Development Team and Sebastian Schaffert.
*
* 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 Lice... | apache-2.0 |
googleads/google-ads-php | src/Google/Ads/GoogleAds/Lib/V9/GoogleAdsResponseMetadata.php | 1751 | <?php
/*
* 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 agr... | apache-2.0 |
jraduget/kaleido-repository | kaleido-mailing/src/main/java/org/kaleidofoundry/mail/dispatcher/MailDispatcherProvider.java | 4661 | /*
* Copyright 2008-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 a... | apache-2.0 |
BannukDE/Narrator | commands/admin/roleid.js | 1188 | exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars
if (args.length < 1) return message.reply("please type < all >, < rolename > or mention a role: < @rolename >");
if (args[0] === "all") {
const roles = message.guild.roles.sort((a, b) => a.name > b.name ? 1 : -1);
... | apache-2.0 |
majetideepak/arrow | dev/merge_arrow_pr.py | 19324 | #!/usr/bin/env python
#
# 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 "Li... | apache-2.0 |
dCache/jglobus-1.8 | src/org/globus/gsi/gssapi/net/GssOutputStream.java | 2975 | /*
* Copyright 1999-2006 University of Chicago
*
* 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 |
FirebasePrivate/firebase-js-sdk-1 | packages/messaging/test/tokenDetailsModel-deleteToken.test.ts | 4123 | /**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | apache-2.0 |
AbraaoAlves/tsd | src/tsd/data/DefVersion.ts | 2055 | /// <reference path="../_ref.d.ts" />
'use strict';
import VError = require('verror');
import assertVar = require('../../xm/assertVar');
import Def = require('./Def');
import DefBlob = require('./DefBlob');
import DefCommit = require('./DefCommit');
import DefInfo = require('./DefInfo');
/*
DefVersion: version of ... | apache-2.0 |
Jason-Gew/Java_Modules | KafkaLogger/KafkaLogger (Deprecated)/src/main/java/gew/kafka/logger/kafka/ProducerBuilder.java | 2702 | package gew.kafka.logger.kafka;
/**
* Builder class for instantiating the Kafka Producer...
* @author Jason/Ge Wu
*/
public class ProducerBuilder
{
private String server;
private String topic;
private String clientId;
private Integer retries;
private String acknowledge;
private String serial... | apache-2.0 |
dolotech/bullfight | src/code.google.com/p/go.tools/pointer/testdata/flow.go | 997 | // +build ignore
package main
// Demonstration of directionality of flow edges.
func f1() {}
func f2() {}
var somepred bool
// Tracking functions.
func flow1() {
s := f1
p := f2
q := p
r := q
if somepred {
r = s
}
print(s) // @pointsto main.f1
print(p) // @pointsto main.f2
print(q)... | apache-2.0 |
onyxbits/raccoon4 | src/main/java/de/onyxbits/raccoon/gui/HyperTextPane.java | 3159 | /*
* Copyright 2015 Patrick Ahlbrecht
*
* 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 |
kironuniversity/main-website | plugins/ryanchung/news/Plugin.php | 1556 | <?php namespace RyanChung\News;
use System\Classes\PluginBase;
use Backend;
/**
* Curriculum Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'... | apache-2.0 |
coison/ebstores | ebstores-bean-service/ebstores-bean-model/src/main/java/com/coison/model/Members.java | 5353 | package com.coison.model;
import java.io.Serializable;
import java.util.Date;
public class Members implements Serializable {
private Long id;
private String username;
private String password;
private String payPwd;
private Short userType;
private Short regType;
private String email;
... | apache-2.0 |
googleads/google-ads-dotnet | src/V9/Types/AppPaymentModelType.g.cs | 9072 | // <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/enums/app_payment_model_type.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Prot... | apache-2.0 |
jageall/IdentityServer.v3.AdminModule | Source/MongoDb.AdminModule/ReadScopes.cs | 2073 | /*
* Copyright 2014, 2015 James Geall
*
* 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 |
jroper/netty | codec/src/main/java/io/netty/handler/codec/FixedLengthFrameDecoder.java | 2949 | /*
* Copyright 2011 The Netty Project
*
* The Netty Project 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.org/licenses/LICENSE-2.0
*
* Unless re... | apache-2.0 |
dtroyer/golang-client | objectstorage/v1/objectstorage.go | 6614 | // Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... | apache-2.0 |
google-research/simclr | lars_optimizer.py | 6037 | # coding=utf-8
# Copyright 2020 The SimCLR Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 |
dubenju/javay | src/java/org/jaudiotagger/tag/id3/AbstractTagFrameBody.java | 9970 | /**
* @author : Paul Taylor
* @author : Eric Farng
*
* Version @version:$Id: AbstractTagFrameBody.java 895 2010-04-15 15:21:45Z paultaylor $
*
* MusicTag Copyright (C)2003,2004
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
* General Public ... | apache-2.0 |
daher-alfawares/xr.desktop | sdk/physx/2.8.3/TrainingPrograms/Programs/Chap3/Lesson306/source/Lesson306.cpp | 12030 | // ===============================================================================
// NVIDIA PHYSX SDK TRAINING PROGRAMS
// LESSON 306: INTERSECTION TESTS
//
// Written by Bob Schade, 5-1-06
// ===============================================================================
#include <GL... | apache-2.0 |
chuckjaz/TypeScript | src/compiler/transformers/module/system.ts | 80587 | /// <reference path="../../factory.ts" />
/// <reference path="../../visitor.ts" />
/// <reference path="../destructuring.ts" />
/*@internal*/
namespace ts {
export function transformSystemModule(context: TransformationContext) {
interface DependencyGroup {
name: StringLiteral;
... | apache-2.0 |
Buble1981/MyDroolsFork | drools-compiler/src/test/java/org/drools/compiler/phreak/RemoveRuleTest.java | 29580 | package org.drools.compiler.phreak;
import org.drools.core.FactHandle;import org.drools.core.base.ClassObjectType;
import org.drools.core.common.InternalFactHandle;import org.drools.core.common.InternalRuleBase;
import org.drools.core.common.NodeMemories;
import org.drools.core.impl.KnowledgeBaseImpl;
import org.drool... | apache-2.0 |
vowovrz/thinkinj | thinkinj/src/main/java/concurrency/SimpleThread.java | 867 | package concurrency;
//: concurrency/SimpleThread.java
// Inheriting directly from the Thread class.
public class SimpleThread extends Thread {
private int countDown = 5;
private static int threadCount = 0;
public SimpleThread() {
// Store the thread name:
super(Integer.toString(++threadCount));... | apache-2.0 |
Sage-Bionetworks/Synapse-Repository-Services | services/repository/src/test/java/org/sagebionetworks/repo/web/controller/AbstractAutowiredControllerTestBase.java | 2633 | package org.sagebionetworks.repo.web.controller;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;
import org.sagebionetworks.repo.manager.oauth.OIDCTokenHelper;
import org.springframework.beans.factory.annotation.Autowired;
imp... | apache-2.0 |
bhb27/KA27 | app/src/main/java/com/grarak/kerneladiutor/fragments/kernel/VMFragment.java | 25404 | /*
* Copyright (C) 2015 Willi Ye
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 |
Razaltan/openstorefront | server/openstorefront/openstorefront-web/src/main/webapp/client/scripts/component/notificationPanel.js | 5805 | /*
* Copyright 2015 Space Dynamics Laboratory - Utah State University Research 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/LICE... | apache-2.0 |
gawkermedia/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201601/cm/LabelServiceInterfacemutate.java | 2365 |
package com.google.api.ads.adwords.jaxws.v201601.cm;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* ... | apache-2.0 |
Lesha-spr/greed | public/src/actions/auth/auth.actions.js | 644 | import alt from './../../alt';
class AuthActions {
constructor() {
this.generateActions(
'clear',
'fetchLoginForm',
'successFetchLoginForm',
'fetchRegistrationForm',
'successFetchRegistrationForm',
'showLoginForm',
'showReg... | apache-2.0 |
pedrohidalgo/pleasure | src/main/java/com/qualixium/playnb/filetype/conf/ConfLanguageHelper.java | 24805 | package com.qualixium.playnb.filetype.conf;
import com.qualixium.playnb.filetype.conf.completion.ConfigurationItem;
import java.util.ArrayList;
import java.util.List;
public class ConfLanguageHelper {
public static List<ConfigurationItem> getKeys() {
List<ConfigurationItem> items = new ArrayList<>();
... | apache-2.0 |
tensorflow/agents | tf_agents/typing/types.py | 5023 | # coding=utf-8
# Copyright 2020 The TF-Agents 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 la... | apache-2.0 |
dscdtc/follow-novel | src/store/mutations.js | 317 | import * as types from './mutation-type'
const mutations = {
[types.SET_SEARCH_HISTORY] (state, history) {
state.searchHistory = history
},
[types.SET_BOOK_ID] (state, id) {
state.bookId = id
},
[types.SET_READ_RECORD] (state, record) {
state.readRecord = record
}
}
export default mutations
| apache-2.0 |
gostor/gotgt | pkg/scsi/sbc.go | 24241 | /*
Copyright 2017 The GoStor 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 agreed... | apache-2.0 |
clockworkorange/grails-core | grails-core/src/main/groovy/org/grails/core/exceptions/GrailsRuntimeException.java | 1136 | /*
* Copyright 2004-2005 Graeme Rocher
*
* 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 |
reportportal/service-ui | app/src/pages/common/modals/importModal/constants.js | 1194 | /*
* Copyright 2019 EPAM 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 agreed to in ... | apache-2.0 |
gavscode/gavscode-android | checkstyle/checkstyle-checks/src/test/java/com/srclib/android/checkstyle/LogSparinglyCheckTest.java | 1510 | /*
* 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
*
* Unless required by applicab... | apache-2.0 |
Buggaboo/j2objc | translator/src/test/java/com/google/devtools/j2objc/translate/UnsequencedExpressionRewriterTest.java | 9129 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | apache-2.0 |
lefou/AsciidocFX | src/main/java/com/kodcu/logging/TableViewLogAppender.java | 3244 | package com.kodcu.logging;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.encoder.PatternLayoutEncoder;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.classic.spi.IThrowableProxy;
import ch.qos.logback.classic.spi.ThrowableProxyUtil;
import ch.qos.logback.core.Unsynchronized... | apache-2.0 |
Activiti/Activiti | activiti-core/activiti-api-impl/activiti-api-process-model-impl/src/main/java/org/activiti/api/runtime/model/impl/StringToLocalDateTimeConverter.java | 1067 | /*
* Copyright 2010-2020 Alfresco Software, Ltd.
*
* 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 |
TouK/nussknacker | utils/avro-util/src/main/scala/pl/touk/nussknacker/engine/avro/schema/DefaultAvroSchemaEvolution.scala | 4070 | package pl.touk.nussknacker.engine.avro.schema
import org.apache.avro.Schema
import org.apache.avro.generic._
import org.apache.avro.io.{DatumReader, DecoderFactory, EncoderFactory}
import pl.touk.nussknacker.engine.avro.{AvroUtils, RuntimeSchemaData}
import java.io.{ByteArrayOutputStream, IOException}
import java.ni... | apache-2.0 |
DelphiRace/File-management | public/include/js/config/config.js | 272 | var apurl="http://211.21.170.18:99";
//var apurl="http://127.0.0.1:88";
var originUrl = location.origin+'/';
var configObject = {
"LoginUrl": originUrl+"login",
"processLoginUrl": originUrl+"menter/setlogin",
//"langSet":"http://211.21.170.18:99/lang/page",
}; | apache-2.0 |
erdi/grails-core | grails-core/src/main/groovy/org/codehaus/groovy/grails/commons/ComponentCapableDomainClass.java | 1119 | /* Copyright 2011 SpringSource
*
* 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 |
trasa/aws-sdk-java | aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/model/transform/DescribeStreamResultJsonUnmarshaller.java | 2898 | /*
* 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 "lice... | apache-2.0 |
andreacastello/eclipse-hatom-plugin | src/it/pronetics/madstore/hatom/eclipse/validator/ValidatorEngine.java | 8327 | /**
* Copyright 2008 - 2009 Pro-Netics S.P.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | apache-2.0 |
blobcity/db-java-adapter | src/main/java/com/blobcity/db/enums/IndexType.java | 622 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.blobcity.db.enums;
/**
*
* @author Prikshit Kumar
* @author Sanket Sarang
*/
public enum IndexType {
NONE("none"),... | apache-2.0 |
aslucky/StockHelper | src/dataProvider.py | 4949 | # coding:utf8
import os
import datetime
import tushare as ts
import pandas as pd
from src.utils import get_legal_trade_date
class DataProvider:
"""
对外提供数据
dataPath:本地数据路径
"""
def __init__(self, app_path):
self.appPath = app_path
self.errString = ''
self.lastTradeDate = g... | apache-2.0 |
florianpirchner/mobadsl | org.mobadsl.semantic.model/src/org/mobadsl/semantic/model/moba/MobaModelFeature.java | 3207 | /**
*/
package org.mobadsl.semantic.model.moba;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Model Feature</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.mobadsl.semantic.model.moba.MobaModelFeature#getId <e... | apache-2.0 |
xthgrey/intelligentassistant | app/src/main/java/com/xth/intelligentassistant/gson/News.java | 698 | package com.xth.intelligentassistant.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by XTH on 2017/6/7.
*/
public class News {
public int code;
public String text;
@SerializedName("list")
public NewsList list[];
public class NewsList {
public String article;
... | apache-2.0 |
ankit-gaur/Coding | 355C.cpp | 1039 | #include<bits/stdc++.h>
using namespace std;
#define V vector
typedef long long int LL;
typedef V<int> vi;
typedef V<LL> vl;
typedef V<pair<int ,int>> vpii;
#define rep(i,a) for(int i = 0; i<a ; i++)
#define fov(i,v) rep(i,v.size())
#define fs first
#define sc second
#define mp make_pair
#define pb push_back
#defin... | apache-2.0 |
trask/glowroot | agent/embedded/src/test/java/org/glowroot/agent/embedded/util/CappedDatabaseOutputStreamTest.java | 11666 | /*
* Copyright 2012-2018 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 applica... | apache-2.0 |
alibaba/nacos | console-ui/src/components/RegionGroup/RegionGroup.js | 9949 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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 |
LindaLawton/Google-APIs-PHP-Samples | Samples/DCM/DFA Reporting And Trafficking API/v2.8/OperatingSystemVersionsGetSample.php | 3959 | <?php
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.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://w... | apache-2.0 |
google/data-transfer-project | portability-types-common/src/main/java/org/datatransferproject/types/common/models/playlists/MusicRecording.java | 1121 | package org.datatransferproject.types.common.models.playlists;
import org.datatransferproject.types.common.models.CreativeWork;
/**
* POJO for https://schema.org/MusicRecording
*/
public class MusicRecording extends CreativeWork {
// Note this is only a partial implementation for fields needed so far, feel free t... | apache-2.0 |
kubukoz/scala-99 | src/test/scala/com/kubukoz/scala99/P10Tests.scala | 529 | package com.kubukoz.scala99
import com.kubukoz.scala99.P10.encode
import org.scalatest.{FlatSpec, Matchers}
class P10Tests extends FlatSpec with Matchers {
"encode" should "encode Nil" in {
encode(Nil) shouldBe Nil
}
it should "encode a list with a single element" in {
encode(List('a)) shouldBe List((1... | apache-2.0 |
b002368/chef-repo | lib/chef/chef_fs/config.rb | 12102 | #
# Author:: John Keiser (<jkeiser@chef.io>)
# Copyright:: Copyright 2012-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License ... | apache-2.0 |
tudarmstadt-lt/topicrawler | lt.lm/src/main/java/de/tudarmstadt/lt/lm/app/Ngrams.java | 10325 | /*
* Copyright 2014
*
* 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 |
fpompermaier/onvif | onvif-ws-client/src/main/java/org/onvif/ver10/deviceio/wsdl/Get.java | 1132 |
package org.onvif.ver10.deviceio.wsdl;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.cxf.xjc.runtime.JAXBToStringStyle;
/**
* <p>Java class for Ge... | apache-2.0 |
kosenkoandrey/mailiq-pult | protected/render/logs/admin/dashboard/js.php | 17012 | <?
APP::$insert['js_flot'] = ['js', 'file', 'before', '</body>', APP::Module('Routing')->root . 'public/ui/vendors/bower_components/flot/jquery.flot.js'];
APP::$insert['js_flot_resize'] = ['js', 'file', 'before', '</body>', APP::Module('Routing')->root . 'public/ui/vendors/bower_components/flot/jquery.flot.resize.js'];... | apache-2.0 |
google/active-learning | sampling_methods/simulate_batch.py | 10261 | # Copyright 2017 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 writing,... | apache-2.0 |
sapia-oss/corus_iop | modules/client/src/main/java/org/sapia/corus/interop/helpers/RequestListener.java | 3050 | package org.sapia.corus.interop.helpers;
import java.util.List;
import org.sapia.corus.interop.api.message.ConfirmShutdownMessageCommand;
import org.sapia.corus.interop.api.message.MessageCommand;
import org.sapia.corus.interop.api.message.PollMessageCommand;
import org.sapia.corus.interop.api.message.ProcessMessageH... | apache-2.0 |
OpenGamma/Strata | modules/basics/src/main/java/com/opengamma/strata/basics/date/GlobalHolidayCalendars.java | 55262 | /*
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.basics.date;
import static java.time.DayOfWeek.FRIDAY;
import static java.time.DayOfWeek.MONDAY;
import static java.time.DayOfWeek.SATURDAY;
import stati... | apache-2.0 |
lapanen/stealth | stealth-core/src/main/java/org/lapanen/stealth/maven/event/ArtifactBuildEvent.java | 544 | package org.lapanen.stealth.maven.event;
import org.lapanen.stealth.event.AbstractStealthEvent;
import org.lapanen.stealth.maven.artifact.Artifact;
import org.lapanen.stealth.naming.EventIdentifier;
public class ArtifactBuildEvent extends AbstractStealthEvent {
private final Artifact artifact;
protected Art... | apache-2.0 |
nita22/OpenTheDoor | app/src/main/java/com/jiazi/openthedoor/Util/CustomBufferHead.java | 140 | package com.jiazi.openthedoor.Util;
/**
* 缓存头部类
*/
public class CustomBufferHead {
public int startcode;
public int length;
} | apache-2.0 |
dvstate/minio | cmd/config-migrate_test.go | 10360 | /*
* Minio Cloud Storage, (C) 2016, 2017 Minio, 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 applica... | apache-2.0 |
zeratel/gankmaku | app/src/main/java/me/pkliang/gankmaku/ganhuo/BaseGanhuoFragment.java | 3219 | package me.pkliang.gankmaku.ganhuo;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import com.lsjwzh.widg... | apache-2.0 |
RandomLyrics/aaabbbcdefgh | PromosiMVC/Test/DataGenerator.cs | 5037 | using PromosiMVC.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace PromosiMVC.Test
{
public class DataGenerator
{
private PromosiDBModelContainer DB;
private static int count = 6;
public DataGenerator(PromosiDBModelCon... | apache-2.0 |
HybridF5/jacket | jacket/tests/compute/unit/test_instance_types_extra_specs.py | 5838 | # Copyright 2011 University of Southern California
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | apache-2.0 |
troels/nz-presto | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java | 13553 | /*
* 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 |
chmulato/helianto-seed | src/main/java/com/iservport/report/controller/ReportPhaseController.java | 3566 | package com.iservport.report.controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import org.heli... | apache-2.0 |
vivantech/kc_fixes | src/main/java/org/kuali/kra/irb/onlinereview/authorization/RejectProtocolOnlineReviewAuthorizer.java | 2494 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* 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.osedu.org/licenses/ECL-2.0
*
* Unless required by appli... | apache-2.0 |
syphr42/libmythtv-java | protocol/src/main/java/org/syphr/mythtv/protocol/impl/Command63QueryRecorderGetFramesWritten.java | 2002 | /*
* Copyright 2011-2012 Gregory P. Moyer
*
* 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 |
wlin12/JNN | src/jnn/functions/composite/lstm/LSTMDecoderState.java | 2246 | package jnn.functions.composite.lstm;
import jnn.decoder.state.DenseNeuronState;
import jnn.neuron.DenseNeuronArray;
import jnn.neuron.NeuronArray;
public class LSTMDecoderState extends DenseNeuronState{
public DenseNeuronArray input;
public DenseNeuronArray lstmState;
public DenseNeuronArray lstmCell;
publi... | apache-2.0 |
D3-LucaPiombino/MassTransit | src/MassTransit/Testing/TestDecorators/SagaRepositoryTestDecorator.cs | 5818 | // 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 |
Bitergia/allura | Allura/allura/lib/utils.py | 15569 | import time
import string
import hashlib
import binascii
import logging.handlers
import codecs
import os.path
import datetime
import random
import mimetypes
import re
import magic
from itertools import groupby
import tg
import pylons
import webob.multidict
from formencode import Invalid
from tg.decorators import befor... | apache-2.0 |
Keabot-Studios/DungeonRun2 | Dungeon Run 2/src/net/keabotstudios/dr2/game/gui/GuiStatBar.java | 1260 | package net.keabotstudios.dr2.game.gui;
import net.keabotstudios.dr2.game.gui.GuiRenderer.GuiBarColor;
import net.keabotstudios.dr2.gfx.Bitmap;
public class GuiStatBar extends GuiHudLabel {
private GuiBarColor barColor;
private int value, maxValue;
public GuiStatBar(int x, int y, int size, String label... | apache-2.0 |
patrickvanamstel/SimplerInvoicing | si-sender/src/main/java/nl/kaninefatendreef/si/smp/SmpLookupService.java | 13153 | package nl.kaninefatendreef.si.smp;
import java.io.ByteArrayInputStream;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
impo... | apache-2.0 |
votca/xtp | src/libxtp/gwbse/bse.cc | 21470 | /*
* Copyright 2009-2020 The VOTCA Development Team
* (http://www.votca.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
*
* h... | apache-2.0 |
aajjbb/contest-files | LiveArchive/FunColoring.cpp | 1896 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 115;
int T, N, M;
string S;
bitset<MAXN> bi[MAXN];
int main() {
cin >> T;
for (int t = 1; t <= T; t++) {
cin >> N >> M;
for (int i = 0; i < MAXN; i++) {
bi[i].reset();
}
getline(cin, S);
... | apache-2.0 |
googleads/google-api-ads-ruby | adwords_api/examples/v201809/advanced_operations/add_dynamic_search_ads_campaign.rb | 7384 | #!/usr/bin/env ruby
# Encoding: utf-8
#
# Copyright:: Copyright 2017, Google Inc. All Rights Reserved.
#
# License:: 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 |
adviti/melange | tests/app/soc/logic/test_validate.py | 3570 | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 |
chuckjaz/TypeScript | src/compiler/transformers/generators.ts | 135833 | /// <reference path="../factory.ts" />
/// <reference path="../visitor.ts" />
// Transforms generator functions into a compatible ES5 representation with similar runtime
// semantics. This is accomplished by first transforming the body of each generator
// function into an intermediate representation that is the ... | apache-2.0 |
olw/cdn | milton-client-app/src/main/java/bradswebdavclient/Configuration.java | 7586 | /*
* 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 |