repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
robkuijpers/shaileopenweb | public/src/scripts/main.ts | 537 | import { bootstrap } from '@angular/platform-browser-dynamic';
import { HTTP_PROVIDERS } from '@angular/http';
// import { enableProdMode } from '@angular/core';
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { AppComponent } from './app.component';
import { APP_ROUTER_PROVIDERS } from '... | apache-2.0 |
adligo/fabricate_tests.adligo.org | src/org/adligo/fabricate_tests/common/en/GitEnMessagesTrial.java | 3364 | package org.adligo.fabricate_tests.common.en;
import org.adligo.fabricate.common.en.GitEnMessages;
import org.adligo.tests4j.system.shared.trials.SourceFileScope;
import org.adligo.tests4j.system.shared.trials.Test;
import org.adligo.tests4j_4mockito.MockitoSourceFileTrial;
import org.adligo.tests4j_tests.shared.i18n.... | apache-2.0 |
juweiping/ocms | src/org/openuap/cms/user/model/AbstractUserRole.java | 2084 | /*
* Copyright 2005-2008 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 |
tolbertam/java-driver | driver-tests/osgi/src/test/java/com/datastax/driver/osgi/MailboxServiceGuava21IT.java | 2604 | /*
* Copyright (C) 2012-2017 DataStax Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | apache-2.0 |
BrandonY/python-docs-samples | bigquery/api/streaming.py | 3137 | #!/usr/bin/env python
# Copyright 2015, 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 ... | apache-2.0 |
spencerahill/aospy-obj-lib | aospy_user/calcs/__init__.py | 7250 | """My library of functions for use in aospy.
Historically, these assumed input variables in the form of numpy arrays or
masked numpy arrays. As of October 2015, I have switched to assuming
xarray.DataArrays, to coincide with the same switch within aospy. However, not
all of the functions in this module have been con... | apache-2.0 |
ebagdasa/tempest | tempest/scenario/test_network_basic_ops.py | 21362 | # Copyright 2012 OpenStack Foundation
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# 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
#
# ht... | apache-2.0 |
rogro82/HorizonRemote | HorizonRemote/jni/src/vnc/des_local.cpp | 15841 | /*
* This is D3DES (V5.09) by Richard Outerbridge with the double and
* triple-length support removed for use in VNC. Also the bytebit[] array
* has been reversed so that the most significant bit in each byte of the
* key is ignored, not the least significant.
*
* These changes are:
* Copyright (C) 1999... | apache-2.0 |
eug48/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java | 18503 | package org.hl7.fhir.instance.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above co... | apache-2.0 |
mintsoft/csharp-driver | src/Cassandra/Policies/ExponentialReconnectionPolicy.cs | 4462 | //
// Copyright (C) DataStax 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 l... | apache-2.0 |
AdeptJ/adeptj-modules | jaxrs/resteasy/src/main/java/com/adeptj/modules/jaxrs/resteasy/contextresolver/ValidatorContextResolver.java | 2815 | /*
###############################################################################
# #
# Copyright 2016, AdeptJ (http://www.adeptj.com) #
# ... | apache-2.0 |
ReactiveSocket/reactivesocket-java | rsocket-core/src/test/java/io/rsocket/resume/ResumeExpBackoffTest.java | 2293 | /*
* Copyright 2015-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
cuba-platform/cuba | modules/web/src/com/haulmont/cuba/web/gui/components/WebScrollBoxLayout.java | 16243 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | apache-2.0 |
LinuxTek/kona-app-model | src/main/java/com/linuxtek/kona/app/core/service/KApiVersionService.java | 573 | /*
* Copyright (C) 2013 LINUXTEK, Inc. All Rights Reserved.
*/
package com.linuxtek.kona.app.core.service;
import com.linuxtek.kona.app.core.entity.KApiVersion;
import com.linuxtek.kona.data.service.KDataService;
import com.linuxtek.kona.remote.service.KService;
/**
* The client side stub for the RPC service.
*... | apache-2.0 |
tsegismont/vertx-monitor | src/main/java/io/vertx/ext/hawkular/impl/NetClientMetricsSupplier.java | 2840 | /*
* Copyright 2015 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.o... | apache-2.0 |
Adgillmore/CaveMan | src/uk/co/atgsoft/caveman/wine/record/tasting/TastingEntryImpl.java | 2079 | /*
* 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 uk.co.atgsoft.caveman.wine.record.tasting;
import java.time.LocalDate;
import uk.co.atgsoft.caveman.wine.Wine;
import uk.co.at... | apache-2.0 |
HuangLS/neo4j | community/kernel/src/test/java/org/neo4j/kernel/impl/core/JumpingIdGeneratorFactory.java | 4323 | /*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundatio... | apache-2.0 |
wdmir/521266750_qq_com | CSharpServer/DdzServer/DdzServer/net/silverfoxserver/exthandler/DdzRCClientHandler.cs | 2394 | /*
* SilverFoxServer: massive multiplayer game server for Flash, ...
* VERSION:3.0
* PUBLISH DATE:2015-9-2
* GITHUB:github.com/wdmir/521266750_qq_com
* UPDATES AND DOCUMENTATION AT: http://www.silverfoxserver.net
* COPYRIGHT 2009-2015 SilverFoxServer.NET. All rights reserved.
* MAIL:521266750@qq.com
*/
using System;
u... | apache-2.0 |
schisamo/omnibus-chef-utensils | config/software/chef.rb | 789 | #
# Copyright:: Copyright (c) Seth Chisamore
# 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.0
#
# Unl... | apache-2.0 |
lanshiqin/cloud-project | micro-services/producer-service/src/main/java/com/lanshiqin/producerservice/ProducerServiceApplication.java | 499 | package com.lanshiqin.producerservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* 服务提供者
* 配置服务发现和服务熔断
*/
@SpringBootApplication
@EnableDiscoveryClient
public c... | apache-2.0 |
darth-willy/mobibench | MobiBenchWebService/src/main/java/wvw/mobibench/service/servlet/msg/ResponseMessage.java | 857 | /**
* Copyright 2016 William Van Woensel
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 |
azkaban/azkaban | azkaban-web-server/src/test/java/azkaban/webapp/servlet/ExecutionFlowViewTest.java | 2277 | package azkaban.webapp.servlet;
import static org.junit.Assert.assertTrue;
import azkaban.fixture.VelocityContextTestUtil;
import azkaban.fixture.VelocityTemplateTestUtil;
import azkaban.utils.ExternalLink;
import java.util.Arrays;
import org.apache.velocity.VelocityContext;
import org.junit.Test;
/**
* Test flow e... | apache-2.0 |
tectronics/maduraconfiguration | test/nz/co/senanque/madura/configuration/ConfigNamespaceTest.java | 3040 | /*******************************************************************************
* Copyright 2010 Prometheus Consulting
*
* 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 |
FasterXML/jackson-modules-java8 | datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/TestDecimalUtils.java | 4742 | package com.fasterxml.jackson.datatype.jsr310;
import org.junit.Test;
import java.math.BigDecimal;
import static org.junit.Assert.*;
public class TestDecimalUtils extends ModuleTestBase
{
@Test
public void testToDecimal01()
{
String decimal = DecimalUtils.toDecimal(0, 0);
assertEquals("T... | apache-2.0 |
shun634501730/java_source_cn | src_en/org/omg/PortableInterceptor/AdapterNameHelper.java | 2017 | package org.omg.PortableInterceptor;
/**
* org/omg/PortableInterceptor/AdapterNameHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u91/7017/corba/src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
* Friday, May... | apache-2.0 |
fredji97/samza | samza-sql/src/main/java/org/apache/samza/sql/testutil/SamzaSqlQueryParser.java | 6240 | /*
* 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 no... | apache-2.0 |
yandex/graphouse | src/main/java/ru/yandex/market/graphouse/config/GraphouseConfig.java | 1899 | package ru.yandex.market.graphouse.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.... | apache-2.0 |
google/syzkaller | prog/parse_test.go | 3455 | // Copyright 2015 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package prog
import (
"testing"
)
func TestParseSingle(t *testing.T) {
t.Parallel()
target, err := GetTarget("linux", "amd64")
if err != nil {
t.Fa... | apache-2.0 |
xdegenne/alien4cloud | alien4cloud-ui/src/main/webapp/scripts/topology/services/workflow_services.js | 1697 | // define the rest api elements to work with workflow edition.
define(function (require) {
'use strict';
var modules = require('modules');
modules.get('a4c-topology-editor', ['ngResource']).factory('workflowServices', ['$resource',
function($resource) {
var workflowsResource = $resource('rest/topolog... | apache-2.0 |
jonvestal/open-kilda | src-gui/src/main/java/org/usermanagement/dao/entity/PermissionEntity.java | 3991 | /* Copyright 2018 Telstra Open Source
*
* 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 |
Modwatch/API | transform.js | 1212 | const { initializeModlistCollection, getUsersList } = require("./dist/server/database");
(async () => {
const modlist = await initializeModlistCollection();
const results = (await modlist
.find({
timestamp: {
$type: "string"
}
}, {
sort: [
... | apache-2.0 |
eneiasbrumjr/cogib | resources/views/home.blade.php | 10392 | @extends('layouts.dashboard')
@section('page_heading','Painel de Controle')
@section('section')
<!-- /.row -->
<div class="col-sm-12">
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="panel panel-primary">
... | apache-2.0 |
gdbelvin/trillian | testonly/internal/hammer/hammer.go | 21485 | // Copyright 2017 Google LLC. 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... | apache-2.0 |
DanielNesbitt/maven-activator-plugin | src/main/java/com/dnesbitt/util/OS.java | 234 | package com.dnesbitt.util;
/**
* @author Daniel Nesbitt
*/
public final class OS {
private OS() { }
public static boolean isWindows() {
return System.getProperty("os.name").toLowerCase().contains("win");
}
}
| apache-2.0 |
dasomel/egovframework | common-component/v2.3.2/src/main/java/egovframework/com/cop/ncm/service/NameCard.java | 13334 | package egovframework.com.cop.ncm.service;
import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* 명함정보 관리를 위한 모델 클래스
* @author 공통서비스개발팀 이삼섭
* @since 2009.06.01
* @version 1.0
* @see
*
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 ... | apache-2.0 |
freeVM/freeVM | enhanced/archive/classlib/java6/modules/sound/src/test/java/org/apache/harmony/sound/tests/javax/sound/sampled/AudioSystemTest.java | 22966 | /*
* 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 |
ShAdOwNeT88/Company-Information | app/src/main/java/alterego/solutions/company_information/search_company/SearchActivity.java | 9541 | package alterego.solutions.company_information.search_company;
import android.app.Activity;
import android.app.SearchManager;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;... | apache-2.0 |
yuyakaido/CardStackView | cardstackview/src/main/java/com/yuyakaido/android/cardstackview/internal/CardStackSmoothScroller.java | 5708 | package com.yuyakaido.android.cardstackview.internal;
import android.view.View;
import com.yuyakaido.android.cardstackview.CardStackLayoutManager;
import com.yuyakaido.android.cardstackview.CardStackListener;
import com.yuyakaido.android.cardstackview.RewindAnimationSetting;
import androidx.annotation.NonNull;
impor... | apache-2.0 |
ANZ-bank/Sysl | pkg/transforms/transforms.go | 1271 | package transforms
import (
"fmt"
"github.com/anz-bank/sysl/pkg/eval"
sysl "github.com/anz-bank/sysl/pkg/sysl"
"github.com/anz-bank/sysl/pkg/syslutil"
)
type Worker interface {
Apply(mod *sysl.Module, appNames ...string) map[string]*sysl.Value
}
func NewWorker(transformMod *sysl.Module, appName, viewName strin... | apache-2.0 |
alex-charos/footie-predictions | src/main/java/com/oranje/web/rest/AccountResource.java | 10432 | package com.oranje.web.rest;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.List;
import java.util.Optional;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.apache.commons.lang.StringUtils;
import org.slf4j... | apache-2.0 |
cluster-profiler/clpr_d | inc/reader.hpp | 1103 | /**
* @file reader.hpp
* @author Bill Brouwer <whiskeyjulietb@gmail.com>
* @version 1.0
*
* @section LICENSE
* Copyright 2014 William J. Brouwer, Pierre-Yves Taunay
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | apache-2.0 |
org-wave/Scanner | src/org/wave/scanner/factories/XHTMLFactory.java | 778 | package org.wave.scanner.factories;
import java.lang.reflect.Method;
import java.util.List;
import org.wave.scanner.elements.BODY;
import org.wave.scanner.elements.UL;
import org.wave.scanner.elements.XHTML;
import org.wave.scanner.enums.ErrorEnum;
import org.wave.utils.string.StringUtil;
public class XHTMLFactory ... | apache-2.0 |
danielsdeleo/critical | spec/unit/output_handler/dispatcher_spec.rb | 2904 | require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
describe OutputHandler::Dispatcher do
describe "defining output handlers to dispatch to" do
before do
@handler_class = Class.new(OutputHandler::Dispatcher)
end
it "is configured with a handler name and options" do
@h... | apache-2.0 |
AubinMahe/AubinMahe.github.io | doxygen-cpp/html/d2/de2/namespacedcrud.js | 1345 | var namespacedcrud =
[
[ "Arguments", "db/df5/classdcrud_1_1_arguments.html", "db/df5/classdcrud_1_1_arguments" ],
[ "ClassID", "d2/d51/classdcrud_1_1_class_i_d.html", "d2/d51/classdcrud_1_1_class_i_d" ],
[ "GUID", "db/df6/classdcrud_1_1_g_u_i_d.html", "db/df6/classdcrud_1_1_g_u_i_d" ],
[ "ICache", "d8/... | apache-2.0 |
jbload/Muscularity | Muscularity.Web/src/app/shared/swagger-codegen/modelsWorkoutsSaveWorkoutWorkoutViewModel.ts | 483 | /**
* Muscularity API
* The web API used by Muscularity web and mobile clients.
*
* OpenAPI spec version: v1
* Contact: support@muscularityapp.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.... | apache-2.0 |
koenighotze/Hotel-Reservation-Tool | portal/src/main/java/org/koenighotze/jee7hotel/portal/IndexView.java | 398 | package org.koenighotze.jee7hotel.portal;
import org.jug.view.View;
import org.thymeleaf.TemplateEngine;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
/**
* @author dschmitz
*/
@Path("/")
public class IndexView {
@Inject
private TemplateEngine templateEngine;
@GET
pu... | apache-2.0 |
OpenGamma/Strata | modules/pricer/src/main/java/com/opengamma/strata/pricer/sensitivity/package-info.java | 229 | /*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
/**
* Calculators for sensitivities.
*/
package com.opengamma.strata.pricer.sensitivity;
| apache-2.0 |
arenadata/ambari | ambari-server/src/test/java/org/apache/ambari/server/state/ConfigHelperTest.java | 50437 | /*
* 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 |
CSchool/SchoolSite | CSchoolSite/main/migrations/0002_notification_queued.py | 457 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-04 12:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
mod... | apache-2.0 |
htzh/lean | src/frontends/lean/parse_simp_tactic.cpp | 3283 | /*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "util/sstream.h"
#include "library/scoped_ext.h"
#include "library/tactic/exact_tactic.h"
#include "library/tactic/expr_to_tactic.h"
#include "libr... | apache-2.0 |
kemixkoo/java-tools | bundles/xml-signature-tool/src/test/java/xyz/kemix/xml/sign/jdk/XmlEnvelopedKeyPairJdkDomSignTest.java | 2717 | package xyz.kemix.xml.sign.jdk;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.w3c.dom.Document;
import xyz.kemix.xml.sign.IXmlSign;
/**
* @author Kemix Koo <kemix_koo@163.com>
*
* Created at 2... | apache-2.0 |
bioinfo-geek/improved-journey-jekyll-test | js/scripts.js | 4850 | (function( $ ){
// fullscreen gallery
var $fullscreen_gallery = $( "#fullscreen-gallery" );
if ( $fullscreen_gallery.length > 0 ) {
if ( $fullscreen_gallery.find('.gallery-item').length > 1 ) { // if there are more than 1 image
if ( !$fullscreen_gallery.hasClass('kenburns-gallery') ) { // do not initializ... | apache-2.0 |
dhgarrette/2015-ccg-parsing | src/main/scala/dhg/ccg/parse/scg/DualScgParser.scala | 12090 | package dhg.ccg.parse.scg
import scala.collection.mutable.{ Set => MSet }
import scala.collection.mutable.{ Map => MMap }
import dhg.ccg.cat._
import dhg.ccg.rule._
import dhg.ccg.parse._
import dhg.ccg.tagdict.TagDictionary
import dhg.util._
import scalaz._
import Scalaz._
import dhg.ccg.parse.pcfg._
import dhg.ccg.p... | apache-2.0 |
yan74/afplib | org.afplib/src/main/java/org/afplib/afplib/TextFidelityStpTxtEx.java | 5103 | /**
*/
package org.afplib.afplib;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Text Fidelity Stp Txt Ex</b></em>',
* and utility methods for ... | apache-2.0 |
jronrun/benayn | benayn-ustyle/src/main/java/com/benayn/ustyle/JSONer.java | 60782 | package com.benayn.ustyle;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.FilterReader;
import java.io.IOException;
import java.io.InputStreamReader;
i... | apache-2.0 |
clockworksoul/smudge | membership.go | 21001 | /*
Copyright 2016 The Smudge Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | apache-2.0 |
acthp/ucsc-xena-client | js/plotMutationVector.js | 12128 | var _ = require('./underscore_ext');
var Rx = require('./rx');
import PureComponent from './PureComponent';
var React = require('react');
var Legend = require('./views/Legend');
var {rxEvents} = require('./react-utils');
var widgets = require('./columnWidgets');
var util = require('./util');
var CanvasDrawing = require... | apache-2.0 |
yangb8/pravega-inputformat | src/main/java/io/pravega/examples/hadoop/WordCount.java | 2781 | /*
* Copyright 2017 Dell/EMC
*
* 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.... | apache-2.0 |
PrisonBreak2017/nodejs-ex | web/src/reducer/globalStatusReducer.js | 5773 | const defaultStatus = {
recording: true,
panelRefreshing: true, // indicate whether the record panel should be refreshing
showFilter: false, // if the filter panel is showing
showMapLocal: false,
activeMenuKey: '',
canLoadMore: false,
interceptHttpsFlag: false,
globalProxyFlag: false, // is global prox... | apache-2.0 |
thpeng/spring-time | spring-time-web/src/main/webapp/app/js/app/controllers/logout.js | 429 | 'use strict';
angular.module('time')
.controller('LogoutCtrl', ['AuthService', '$scope', '$state', '$rootScope', function (auth, $scope, $state, $rootScope) {
if ($rootScope.currentUser === null) {
alert("no currentUser set!");
}
$scope.logout = function () {
auth.... | apache-2.0 |
emmartins/wildfly-server-migration | migrations/eap7.4/eap6.4/src/main/java/org/jboss/migration/eap6/to/eap7/tasks/EAP6_4ToEAP7_4UpdateEJB3Subsystem.java | 1516 | /*
* Copyright 2020 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | apache-2.0 |
HackerspaceKRK/zamek | converter.rb | 1076 | #!/usr/bin/ruby
# -*- coding: utf-8 -*-
#
# Copyright 2013 Łukasz Dubiel <bambucha14@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
# ... | apache-2.0 |
baotiao/Asenal | acm/fM.cc | 4101 | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cmath>
#include <vector>
#include <queue>
#include <map>
#include <ctime>
#include <set>
typedef long long lld;
using namespace std;
#ifdef DEBUG
#define debug(x) cout<<__LINE__<<" "<<#x<<"="<<x<<endl;
#d... | apache-2.0 |
mattmelloy/owags | ms_dotnet/metadata.rb | 574 | name 'ms_dotnet'
maintainer 'Criteo'
maintainer_email 'b.courtois@criteo.com'
license 'Apache 2.0'
description 'Installs/Configures ms_dotnet'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '3.2.1'
supports 'windows'
depends 'wi... | apache-2.0 |
Epi-Info/Epi-Info-Community-Edition | Epi.Core.EnterInterpreter/Rules/Rule_Assign_DLL_Statement.cs | 4205 | using System;
using System.Collections.Generic;
using System.Text;
using com.calitha.goldparser;
namespace Epi.Core.EnterInterpreter.Rules
{
public class Rule_Assign_DLL_Statement : EnterRule
{
string QualifiedId = null;
string ClassName = null;
string MethodName = null;
... | apache-2.0 |
axzae/homeassist-builder | app/src/main/java/com/axzae/homeassistant/MainActivity.java | 3252 | package com.axzae.homeassistant;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextVi... | apache-2.0 |
scray/scray | scray-querying/modules/scray-querying/src/test/scala/scray/querying/planning/MaterializedViewSpecs.scala | 3322 | package scray.querying.planning
import org.junit.runner.RunWith
import org.scalatest.WordSpec
import org.scalatest.junit.JUnitRunner
import java.util.ArrayList
import scray.querying.queries.SimpleQuery
import scray.querying.description.And
import scray.querying.description.Column
import scray.querying.description.Equa... | apache-2.0 |
iocanel/sundrio | annotations/dsl/src/main/java/io/sundr/dsl/internal/visitors/TypeArgumentReplace.java | 1500 | /*
* Copyright 2016 The original authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
lanimall/messaging-samples | libs/src/main/java/com/softwareaggov/messaging/libs/utils/impl/CounterImpl.java | 5033 | /*
* Copyright © 2016 - 2018 Software AG, Darmstadt, Germany and/or its licensors
*
* SPDX-License-Identifier: Apache-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... | apache-2.0 |
brainix/pottery | tests/test_timer.py | 3042 | # --------------------------------------------------------------------------- #
# test_timer.py #
# #
# Copyright © 2015-2022, Rajiv Bakulesh Shah, original author. #
... | apache-2.0 |
googleapis/api-compiler | src/main/java/com/google/api/tools/framework/importers/swagger/merger/ServiceMerger.java | 1527 | /*
* Copyright (C) 2016 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
cedral/aws-sdk-cpp | aws-cpp-sdk-elasticache/source/model/ProcessedUpdateAction.cpp | 4591 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | apache-2.0 |
tzou24/BPS | BPS/src/com/frameworkset/platform/cms/util/FtpUpfile.java | 16503 | package com.frameworkset.platform.cms.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Ar... | apache-2.0 |
DevComPack/setupmaker | src/main/java/dcp/logic/model/Group.java | 653 | package dcp.logic.model;
import java.io.Serializable;
import org.apache.pivot.collections.ArrayList;
import org.apache.pivot.collections.List;
public class Group implements Serializable
{
/**
* Class written into save file
*/
private static final long serialVersionUID = 7019635543387148548L;
... | apache-2.0 |
oakkitten/weechat-android | app/src/main/java/com/ubergeek42/WeechatAndroid/media/Exceptions.java | 4663 | package com.ubergeek42.WeechatAndroid.media;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.ubergeek42.WeechatAndroid.BuildConfig;
import com.ubergeek42.WeechatAndroid.utils.Utils;
import java.io.IOException;
import okhttp3.MediaType;
class Exceptions {
static class CodeExcepti... | apache-2.0 |
mailrest/mailrest | app/controllers/box/MessageRefController.scala | 2357 | /*
* Copyright (C) 2015 Noorq, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | apache-2.0 |
openstack/oslo.concurrency | doc/source/conf.py | 1942 | # -*- coding: utf-8 -*-
# Copyright (C) 2020 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 |
schaloner/deadbolt-2-core | test/be/objectify/deadbolt/core/utils/TemplateUtilsTest.java | 3663 | /*
* Copyright 2013 Steve Chaloner
*
* 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 |
SuperMap/iClient9 | src/common/iServer/ColorDictionary.js | 2632 | /* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import {SuperMap} from '../SuperMap';
import {U... | apache-2.0 |
walkernel/Skadoosh | routes/search.js | 1093 | var express = require('express');
var passport = require('passport');
var router = express.Router();
var mongoose = require('mongoose');
var accountModel = require('../models/account')
//Search page on website
router.get('/',function(req,res){
accountModel.findOne({"username":req._passport.session.user},function(err... | apache-2.0 |
DeepLit/WHG | root/static/js/jsmol/j2s/J/modelset/TickInfo.js | 405 | Clazz.declarePackage ("J.modelset");
c$ = Clazz.decorateAsClass (function () {
this.id = "";
this.type = " ";
this.ticks = null;
this.tickLabelFormats = null;
this.scale = null;
this.first = 0;
this.signFactor = 1;
this.reference = null;
Clazz.instantialize (this, arguments);
}, J.modelset, "TickInfo");
Cla... | apache-2.0 |
bella0101/websitePortal | src/main/java/org/nmrg/common/utils/log/StoreyLogUtil.java | 970 | package org.nmrg.common.utils.log;
import javax.servlet.http.HttpServletRequest;
import org.aspectj.lang.JoinPoint;
import org.nmrg.common.utils.verify.VerifyUtils;
import org.nmrg.entity.common.mongodb.OperateLogEntity;
/**
** Log转置
** @ClassName: StoreyLogUtil
** @Description: TODO
** @author CC
... | apache-2.0 |
kawamon/hue | apps/beeswax/src/beeswax/conf.py | 12033 | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | apache-2.0 |
kwakeroni/BusinessParameters | parameters-backend/parameters-backend-elasticsearch/src/main/java/be/kwakeroni/parameters/backend/es/api/ElasticSearchCriteria.java | 565 | package be.kwakeroni.parameters.backend.es.api;
import org.json.JSONObject;
/**
* (C) 2017 Maarten Van Puymbroeck
*/
public interface ElasticSearchCriteria {
public void inGroup(String groupName);
public void addParameterMatch(String parameter, String value);
public void addParameterNotMatch(String p... | apache-2.0 |
detnavillus/modular-informatic-designs | pipeline/src/main/java/com/modinfodesigns/app/search/model/ResultDisplayFieldProperties.java | 2588 | package com.modinfodesigns.app.search.model;
import com.modinfodesigns.property.DataObject;
import com.modinfodesigns.property.DataObjectBean;
import com.modinfodesigns.property.IProperty;
import com.modinfodesigns.property.schema.DataObjectSchema;
import com.modinfodesigns.property.string.StringProperty;
pub... | apache-2.0 |
xbyg/Silicon-App | src/main/java/com/xbyg_plus/silicon/dialog/LoadingDialog.java | 1618 | package com.xbyg_plus.silicon.dialog;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.support.design.widget.Snackbar;
import android.view.View;
import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
public class Loading... | apache-2.0 |
Wanagow/Proyecto-Wanagow | Wanagow/Resources/iphone/alloy/controllers/Registro.js | 12233 | function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function checkemail(emailAddress) {
var testresults;
var str = emailAddress;
var filter = /^([A-Za-z0-9_\-\.])+\@([A-... | apache-2.0 |
skandragon/thing | app/helpers/application_helper.rb | 385 | # encoding: utf-8
module ApplicationHelper
def application_name
Rails.application.class.parent_name
end
def pretty_date_from_now(date, never = 'Never')
if date.nil?
return never
end
ret = distance_of_time_in_words_to_now(date)
now = Time.now
if date < now
ret += ' ago'
el... | apache-2.0 |
aehlig/bazel | src/main/java/com/google/devtools/build/lib/includescanning/CppIncludeScanningContextImpl.java | 2339 | // Copyright 2018 The Bazel 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 appl... | apache-2.0 |
keepsl/keepsmis | crm/src/main/java/com/keeps/crm/utils/Test1.java | 399 | package com.keeps.crm.utils;
/**
* <p>Title: Test1.java</p>
* <p>Description: @TODO </p>
* <p>Copyright: Copyright (c) KEEPS</p>
* @author keeps
* @version v 1.00
* @date 创建日期:2017年7月17日
* 修改日期:
* 修改人:
* 复审人:
*/
public class Test1 {
public static void main(String[] args) {
// TODO Au... | apache-2.0 |
joningis/coredata-java-api | src/main/java/com/bangsapabbi/api/file/File.java | 3867 | package com.bangsapabbi.api.file;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.constraints.NotNull;
import com.bangsapabbi.api.common.ApiDTO;
import com.bangsapabbi.api.common.Insertable;
import com.bangsapabbi.api.project.Project;
import com.bangsapabbi.api.space.Space;
... | apache-2.0 |
VladimirErshov/ignite | modules/core/src/test/java/org/apache/ignite/platform/PlatformComputeBinarizableArgTask.java | 4083 | /*
* 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 |
square/kochiku | db/migrate/20170804214538_add_enabled_bool_to_repositories.rb | 166 | class AddEnabledBoolToRepositories < ActiveRecord::Migration[5.0]
def change
add_column :repositories, :enabled, :boolean, default: true, null: false
end
end
| apache-2.0 |
CloudBoost/cloudboost | data-service/helpers/util.js | 4570 | /*
# CloudBoost - Core Engine that powers Bakend as a Service
# (c) 2014 HackerBay, Inc.
# CloudBoost may be freely distributed under the Apache 2 License
*/
/* eslint no-use-before-define: 0, no-param-reassign: 0 */
const URL = require('url');
const q = require('q');
const fs = require('fs');
const _ = re... | apache-2.0 |
awsdocs/aws-doc-sdk-examples | .dotnet/example_code/DynamoDB/LowLevelParallelScan.cs | 10287 | // snippet-sourcedescription:[ ]
// snippet-service:[dynamodb]
// snippet-keyword:[dotNET]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[Code Sample]
// snippet-keyword:[ ]
// snippet-sourcetype:[full-example]
// snippet-sourcedate:[ ]
// snippet-sourceauthor:[AWS]
// snippet-start:[dynamodb.dotNET.CodeExamp... | apache-2.0 |
shaolinwu/uimaster | modules/datamodel/src/main/java/org/shaolin/bmdp/datamodel/page/OpSetVariableType.java | 2683 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.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.09.20 at 04:07:5... | apache-2.0 |
quantumarun/Xamarin.iOS | D2.Core/D2.iOS/ViewController.designer.cs | 443 | // WARNING
//
// This file has been generated automatically by Xamarin Studio from the outlets and
// actions declared in your storyboard file.
// Manual changes to this file will not be maintained.
//
using Foundation;
using System;
using System.CodeDom.Compiler;
namespace D2.iOS
{
[Register ("ViewCon... | apache-2.0 |
mykmelez/qbrt | test/devtools/window.js | 2874 | /* Copyright 2017 Mozilla
*
* 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 |
googleapis/python-iam | setup.py | 2813 | # -*- coding: utf-8 -*-
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 |
spring-projects/spring-framework | spring-beans/src/main/java/org/springframework/beans/factory/support/GenericTypeAwareAutowireCandidateResolver.java | 7117 | /*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |