repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
viewreka/viewreka | projects/viewreka-fxui/src/main/java/org/beryx/viewreka/fxui/settings/package-info.java | 710 | /**
* Copyright 2015-2016 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 |
sigitm/musichub | src/main/java/it/musichub/server/ex/ServiceDestroyException.java | 411 | package it.musichub.server.ex;
public class ServiceDestroyException extends MusicHubException {
public ServiceDestroyException() {
super();
}
public ServiceDestroyException(String message) {
super(message);
}
public ServiceDestroyException(Throwable cause) {
super(cause);
}
public Serv... | apache-2.0 |
Shenker93/playframework | framework/src/play/src/main/scala/play/core/parsers/FormUrlEncodedParser.scala | 3676 | /*
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
*/
package play.core.parsers
import java.net.URLDecoder
/** An object for parsing application/x-www-form-urlencoded data */
object FormUrlEncodedParser {
/**
* Parse the content type "application/x-www-form-urlencoded" which consists of ... | apache-2.0 |
NunoGodinho/test | TestApi/TestApi/Areas/HelpPage/Controllers/HelpController.cs | 1209 | using System;
using System.Web.Http;
using System.Web.Mvc;
using TestApi.Areas.HelpPage.Models;
namespace TestApi.Areas.HelpPage.Controllers
{
/// <summary>
/// The controller that will handle requests for the help page.
/// </summary>
public class HelpController : Controller
{
public HelpC... | apache-2.0 |
mutsinghua/DownloadSDK | app/src/main/java/com/tcl/mie/downloader/core/TaskThread.java | 2670 | package com.tcl.mie.downloader.core;
import com.tcl.mie.downloader.DownloadException;
import com.tcl.mie.downloader.DownloadStatus;
import com.tcl.mie.downloader.DownloadTask;
import java.util.concurrent.BlockingQueue;
/**
* 下载线程
* Created by difei.zou on 2015/6/13.
*/
public class TaskThread extends Thread {
... | apache-2.0 |
exomodal/insight | client/components/single_graphs/single_graphs.js | 6030 | // Variable declarations
var SINGLEGRAPH_FORM;
var SINGLEGRAPH_IGNORE_TAGS;
var START_MONTH = 1;
var START_YEAR = 2008;
/*****************************************************************************
* General function
*****************************************************************************/
function setVariab... | apache-2.0 |
Ensembl/ensj-healthcheck | src/org/ensembl/healthcheck/DatabaseRegistryEntry.java | 19485 | /*
* Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
* Copyright [2016-2019] EMBL-European Bioinformatics Institute
*
* 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 |
googleapis/google-cloud-go | vision/apiv1/image_annotator_client.go | 23205 | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 |
Ruzzie/Ruzzie.Mtg.Core | src/RuzzieMtgCore/Ruzzie.Mtg.Core/Synergy/ConstrainedValue.cs | 4901 | using System;
namespace Ruzzie.Mtg.Core.Synergy
{
/// <summary>Represents a specific constrained value type</summary>
/// <typeparam name="T">The type that is constraint</typeparam>
/// <typeparam name="TConstraint">The constraint that should be applied to the type</typeparam>
public struct Constraine... | apache-2.0 |
sholtebeck/knarflog | lib/bs4/tests/test_soup.py | 23402 | # -*- coding: utf-8 -*-
"""Tests of Beautiful Soup as a whole."""
from pdb import set_trace
import logging
import unittest
import sys
import tempfile
from bs4 import (
BeautifulSoup,
BeautifulStoneSoup,
)
from bs4.element import (
CharsetMetaAttributeValue,
ContentMetaAttributeValue,
SoupStrainer,... | apache-2.0 |
jsiebens/tenorite | tenorite-api/src/main/java/net/tenorite/badges/validators/NrOfBlocks.java | 1884 | /*
* Copyright 2016 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 |
hdbeukel/genestacker | Genestacker/Genestacker-lib/src/main/java/org/ugent/caagt/genestacker/exceptions/DuplicateConstraintException.java | 1328 | // Copyright 2012 Herman De Beukelaer
//
// 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 |
AstroGypsophila/TryGank | TryGank/app/src/main/java/com/gypsophila/trygank/business/gank/model/GankBusinessImpl.java | 1725 | package com.gypsophila.trygank.business.gank.model;
import com.gypsophila.commonlib.activity.BaseActivity;
import com.gypsophila.commonlib.net.RequestCallback;
import com.gypsophila.commonlib.net.RequestParameter;
import com.gypsophila.trygank.business.gank.GankJsonUtils;
import com.gypsophila.trygank.db.GankDataBaseM... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-backup/src/main/java/com/amazonaws/services/backup/model/transform/CreateBackupVaultResultJsonUnmarshaller.java | 3394 | /*
* 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 |
vam-google/google-cloud-java | google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java | 5205 | /*
* 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 ... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/Message.java | 5905 | /*
* Copyright 2014-2019 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 |
jittakal/4go | cdirections/channel-directions.go | 334 | package main
import (
"fmt"
)
func ping(pings chan<- string, msg string) {
pings <- msg
}
func pong(pings <-chan string, pongs chan<- string) {
msg := <-pings
pongs <- msg
}
func main() {
pings := make(chan string, 1)
pongs := make(chan string, 1)
ping(pings, "passed message")
pong(pings, pongs)
fmt.Print... | apache-2.0 |
stdlib-js/stdlib | lib/node_modules/@stdlib/string/split-grapheme-clusters/lib/main.js | 1756 | /**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib 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 |
ITMAOO/scenic | scenic-common/scenic-common-security/src/main/java/com/itmaoo/scenic/common/security/shiro/filter/RcFormAuthenticationFilter.java | 743 | package com.itmaoo.scenic.common.security.shiro.filter;
import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
/**
* @desc 自定义form表单认证过滤器
* @author itmaoo
* @version 2016年8月29日 上午10:52:13
*/
public class RcFormAuthenticationFi... | apache-2.0 |
Aconex/scrutineer | http/src/main/java/com/aconex/scrutineer/http/JsonEncodedHttpEndpointSourceConnector.java | 4652 | package com.aconex.scrutineer.http;
import com.aconex.scrutineer.AbstractIdAndVersionStreamConnector;
import com.aconex.scrutineer.ConnectorConfig;
import com.aconex.scrutineer.IdAndVersion;
import com.aconex.scrutineer.IdAndVersionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.net.ssl... | apache-2.0 |
lostdragon/cobar | cobar-parser/src/main/java/com/alibaba/cobar/parser/ast/expression/primary/function/string/Quote.java | 1275 | /*
* Copyright 1999-2012 Alibaba Group.
*
* 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 |
neo4j-contrib/spring-boot | spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointDisabledIntegrationTests.java | 3958 | /*
* Copyright 2012-2016 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 |
play1-maven-plugin/play1-maven-test-projects | external-modules/guice/guice-using-binding-annotation/test/ApplicationTest.java | 598 | import org.junit.*;
import play.test.*;
import play.mvc.*;
import play.mvc.Http.*;
//import models.*;
public class ApplicationTest extends FunctionalTest {
@Test
public void car1() {
Response response = GET("/car1");
assertContentEquals("Driving a Toyota", response);
}
@Test
p... | apache-2.0 |
playernodie/java-desktop-apps | some-tools/webapp/src/main/java/vn/tuan/app/model/NewsModel.java | 3419 | package vn.tuan.app.model;
import com.google.common.base.MoreObjects;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import vn.tuan.app.dao.ArticleDao;
import vn.tuan.app.dao.entities.ArticleEntity;
import java.text.SimpleDateFormat;
import java.util.List;
/**
* Created by tuanlhd on... | apache-2.0 |
blackducksoftware/hub-detect | hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/workflow/report/DetailedSearchSummaryData.java | 2090 | /**
* hub-detect
*
* Copyright (C) 2019 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* 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 owners... | apache-2.0 |
cheeseplus/bento-ya | lib/bento/cli.rb | 6559 | require "optparse"
require "ostruct"
require "bento/common"
require "bento/build"
require "bento/delete"
require "bento/normalize"
require "bento/release"
require "bento/revoke"
require "bento/test"
require "bento/upload"
class Options
NAME = File.basename($PROGRAM_NAME).freeze
def self.parse(args)
options =... | apache-2.0 |
morsdatum/ArangoDB | js/apps/system/aardvark/frontend/js/models/foxx.js | 518 | /*global window, Backbone */
(function() {
"use strict";
window.Foxx = Backbone.Model.extend({
defaults: {
"title": "",
"version": "",
"mount": "",
"description": "",
"git": "",
"isSystem": false,
"development": false
},
url: function() {
if (this.get("_... | apache-2.0 |
ullgren/camel | core/camel-base/src/main/java/org/apache/camel/processor/PollEnricher.java | 17631 | /*
* 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 |
mindsbackyard/galvanic-test | src/lib.rs | 11427 | /* Copyright 2017 Christopher Bacher
*
* 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 |
gurleen-gks/athenz | servers/zms/src/main/java/com/yahoo/athenz/zms/ZMSResources.java | 106907 | //
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.zms;
import com.yahoo.rdl.*;
import javax.ws.rs.*;
import javax.ws.rs.core.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.inject.Inject;
@Path("/v1")
public class ZMSResourc... | apache-2.0 |
CCI-MOC/python-novaclient | novaclient/openstack/common/_i18n.py | 1432 | # 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
# d... | apache-2.0 |
OnApp/cloudnet | spec/models/invoice_item_spec.rb | 2904 | require 'rails_helper'
describe InvoiceItem do
let (:invoice_item) { FactoryGirl.create(:invoice_item) }
it 'should be valid' do
expect(invoice_item).to be_valid
end
it 'should not have any attributes related to cost assigned to it' do
expect(invoice_item.read_attribute(:net_cost)).to be_nil
expe... | apache-2.0 |
Sellegit/j2objc | translator/src/test/java/com/google/devtools/j2objc/gen/StatementGeneratorTest.java | 82156 | /*
* Copyright 2011 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 ... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/transform/ContinueAsNewWorkflowExecutionDecisionAttributesMarshaller.java | 5226 | /*
* 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 |
StQuote/VisEditor | Runtime/src/com/kotcrab/vis/runtime/util/autotable/ATEnumProperty.java | 1077 | /*
* Copyright 2014-2015 See AUTHORS file.
*
* 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 |
jyotisingh/gocd | server/webapp/WEB-INF/rails/spec/presenters/api_v2/user_summary_representer_spec.rb | 1521 | ##########################################################################
# Copyright 2017 ThoughtWorks, 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/li... | apache-2.0 |
jagrosh/MusicBot | src/main/java/com/jagrosh/jmusicbot/Listener.java | 4521 | /*
* Copyright 2016 John Grosh <john.a.grosh@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
danshannon/javastrava-test | src/main/java/test/json/impl/gson/serializer/GenderSerializerTest.java | 559 | package test.json.impl.gson.serializer;
import javastrava.model.reference.StravaGender;
/**
* @author Dan Shannon
*
*/
public class GenderSerializerTest extends EnumSerializerTest<StravaGender> {
/**
* @see test.json.impl.gson.serializer.SerializerTest#getClassUnderTest()
*/
@Override
public Class<StravaGe... | apache-2.0 |
googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202108/TargetingPresetServiceInterface.java | 3245 | // 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 writi... | apache-2.0 |
OlgaAnay/PFT-18 | addressbook/src/com/example/fw/JdbcHelper.java | 1291 | package com.example.fw;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.example.entities.GroupData;
import com.example.utils.SortedListOf;
public class JdbcHelper {
private Connection conn;
public JdbcHelpe... | apache-2.0 |
baraksu/Interviews | JobTester/Program.cs | 258 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JobTester
{
class Program
{
static void Main(string[] args)
{
}
}
}
| apache-2.0 |
freeVM/freeVM | enhanced/buildtest/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/util/WeakHashMap/F_WeakHashMapTest_01/F_WeakHashMapTest_01.java | 2976 | /*
* 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 |
cloudfoundry/php-buildpack | fixtures/symfony_5_local_deps/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/Util/PublicScopeSimulator.php | 6731 | <?php
declare(strict_types=1);
namespace ProxyManager\ProxyGenerator\Util;
use Zend\Code\Generator\PropertyGenerator;
/**
* Generates code necessary to simulate a fatal error in case of unauthorized
* access to class members in magic methods even when in child classes and dealing
* with protected members.
*
* ... | apache-2.0 |
agwlvssainokuni/springmvctutorial | src/foundation/java/cherry/foundation/AppCtxTag.java | 1953 | /*
* Copyright 2014 agwlvssainokuni
*
* 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 |
streamtune/gadget-web | gulp/build.js | 3029 | 'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
});
gulp.task('partials', function () {
return gulp.src([
path.join(conf.paths.src, '/app/**/*.html'... | apache-2.0 |
VahidN/Dependency-Injection-Samples | DI11_WinFormsIoc/WinFormsIoc.Services/IEmailsService.cs | 160 | namespace WinFormsIoc.Services
{
public interface IEmailsService
{
void SendEmail(string from, string to, string title, string message);
}
} | apache-2.0 |
massfords/we99 | we99-domain/src/main/java/edu/harvard/we99/services/storage/UserStorage.java | 1408 | package edu.harvard.we99.services.storage;
import edu.harvard.we99.domain.lists.Users;
import edu.harvard.we99.security.RoleName;
import edu.harvard.we99.security.User;
/**
* Storage interface for reading/writing User objects to the system.
*
* @author mford
*/
public interface UserStorage extends CRUDStorage<Use... | apache-2.0 |
johnewart/shuzai | src/main/java/net/johnewart/shuzai/Frequency.java | 488 | package net.johnewart.shuzai;
import java.util.concurrent.TimeUnit;
public class Frequency {
public final int offset;
public final TimeUnit timeUnit;
public Frequency(int offset, TimeUnit timeUnit) {
this.offset = offset;
this.timeUnit = timeUnit;
}
public static Frequency of(int... | apache-2.0 |
alefherrera/tp1-ing-soft | CinemaCerca/client/app/app.js | 351 | 'use strict';
angular.module('cinemaCercaApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ui.router',
'ui.bootstrap',
'ncy-angular-breadcrumb',
'angular-carousel'
])
.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
$urlRouterProvider
.otherwise('/');
$locationP... | apache-2.0 |
RonnSanji/sbojze | app/lib/managers/ControllerManager.js | 14404 |
/*
* Copyright: Activate Interactive
* Date: March 01 2014
*
* Title: ControllerManager.js
* Description: Manages flow of controllers
*
* ChangeLog:
*
*
*/
//===========================================================================
// REQUIRED FILES
//===============================================... | apache-2.0 |
submergerock/avatar-hadoop | src/examples/org/apache/hadoop/examples/terasort/TeraSort.java | 8951 | /**
* 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 |
schristakidis/p2ner | p2ner/components/plugin/loggergui/loggergui/__init__.py | 87 | from loggergui import LoggerGui as loggerGUI
from vizirloggergui import VizirLoggerGui
| apache-2.0 |
dubswcraft/handson-scala | src/main/java/com/dubswcraft/fp/old/Exercise6_Java_HigherOrderFunctions.java | 1566 | package java.com.dubswcraft.fp.old;
import java.util.ArrayList;
import java.util.List;
// Exercise 6: The following violates the Open Closed principle, see how you can write this using higher order functions
public class Exercise6_Java_HigherOrderFunctions {
void processUbsCommission(Trade trade) {
// s... | apache-2.0 |
infinityb/webplayer | src/foreign_auth/google.rs | 2273 | use hyper;
use hyper::net::HttpsConnector;
use hyper_native_tls::NativeTlsClient;
use uuid::Uuid;
use serde_json;
use super::{
Provider,
ForeignAccount,
ForeignAuthProvider,
AuthError,
AuthErrorKind,
};
const GOOGLE_AUTH_PROVIDER: &'static Provider = &Provider {
id: "ba946dd1-94a0-4eae-8260-7... | apache-2.0 |
Traderlynk/Etherlynk | communicator/extension/webcam/elements/js/wb-cam-app.63d34b8d-8.js | 365 |
Polymer({
is: "iron-pages",
behaviors: [Polymer.IronResizableBehavior, Polymer.IronSelectableBehavior],
properties: {
activateEvent: {
type: String,
value: null
}
},
observers: ["_selectedPageChanged(selected)"],
_selectedPageChanged: function(e, a) {
... | apache-2.0 |
lyg123/sharding-jdbc | sharding-jdbc-example/sharding-jdbc-example-config-spring/src/main/java/com/dangdang/ddframe/rdb/sharding/example/config/spring/SpringNamespaceWithDefaultDataSourceMain.java | 1467 | /*
* Copyright 1999-2015 dangdang.com.
* <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
*
* Unless required by applicable law o... | apache-2.0 |
CBSAdvisor/Xdore | Xdore.Data/XdoreDbInitializer.cs | 761 | using Xdore.Core;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xdore.Core.Infrastructure;
using Xdore.Migrations;
namespace Xdore.Data
{
internal class XdoreDbInitializer :... | apache-2.0 |
artem-aliev/tinkerpop | tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/process/traversal/step/sideEffect/TinkerGraphStep.java | 6627 | /*
* 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 |
xtwxy/actor-editor | plugins/com.wincom.actor.editor.test2/src/com/wincom/actor/editor/test2/policies/ActorContainerHighlightEditPolicy.java | 2074 | package com.wincom.actor.editor.test2.policies;
import org.eclipse.draw2d.IFigure;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.Request;
import org.eclipse.gef.RequestConstants;
import org.eclipse.gef.editpolicies.GraphicalEditPolicy;
import org.eclipse.swt.graphics... | apache-2.0 |
meteorcloudy/bazel | src/main/java/com/google/devtools/build/lib/rules/objc/ObjcImport.java | 3741 | // Copyright 2014 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 |
Wattos/JiraSVN | src/JiraSVN.Common/Interfaces/IIdentifiable.cs | 1072 | #region Copyright 2010 by Roger Knapp, Licensed under the 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
* ... | apache-2.0 |
motazsaad/tweets-collector | json2xls.py | 1721 | import xlsxwriter
import tweet_cleaner
import json
import argparse
parser = argparse.ArgumentParser(description='extract tweet from json and write them into xls file')
parser.add_argument('-i', '--json-file', type=argparse.FileType(mode='r', encoding='utf-8'), help='input json file.', required=True)
parser.add_argumen... | apache-2.0 |
findmypast-oss/jackal | cli/reporter/lib/map-results-to-consumer.js | 207 | 'use strict'
module.exports = (results) => {
return results.reduce((acc, result) => {
acc[result.consumer] = acc[result.consumer] || []
acc[result.consumer].push(result)
return acc
}, {})
}
| apache-2.0 |
vbehar/openshift-flowdock-notifier | Godeps/_workspace/src/github.com/openshift/origin/pkg/cmd/cli/describe/helpers.go | 7425 | package describe
import (
"bytes"
"fmt"
"regexp"
"strings"
"text/tabwriter"
"time"
"github.com/docker/docker/pkg/units"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/util/sets"
buildapi "github.com/openshift/origin/pkg/build/api"
"github.com/openshift/origin/pkg/clien... | apache-2.0 |
cniweb/ant-contrib | ant-contrib/src/main/java/net/sf/antcontrib/logic/TimestampSelector.java | 7058 | /*
* Copyright (c) 2001-2004 Ant-Contrib project. 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
*
... | apache-2.0 |
csgordon/SJS | sjsc/src/test/resources/testinput/constraints/constructor7.js | 140 | function C() {
this.f = function() {
this.g = "hello";
}
}
var x = new C();
console.log(x.g + ""); // error: g does not exist on C
| apache-2.0 |
hanyahui88/swifts | src/main/java/com/swifts/frame/modules/act/utils/DateConverter.java | 2644 | /**
* Copyright © 2015-2016 <a href="https://github.com/hanyahui88/swifts">swifts</a> All rights reserved.
*/
package com.swifts.frame.modules.act.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.beanutils.Converter;
import org.apache.c... | apache-2.0 |
vlorc/gioc | module/operation/declare.go | 2692 | // Copyright 2017 Granitic. All rights reserved.
// Use of this source code is governed by an Apache 2.0 license that can be found in the LICENSE file at the root of this project.
package operation
import (
"github.com/vlorc/gioc/factory"
"github.com/vlorc/gioc/module"
"github.com/vlorc/gioc/types"
"github.com/vl... | apache-2.0 |
zhangzuoqiang/summer | src/main/java/cn/limw/summer/dubbo/common/util/UrlUtil.java | 1197 | package cn.limw.summer.dubbo.common.util;
import com.alibaba.dubbo.common.URL;
/**
* @author li
* @version 1 (2015年6月1日 上午9:49:01)
* @since Java7
*/
public class UrlUtil {
/**
* @see com.alibaba.dubbo.common.URL#buildString(boolean, boolean, boolean, boolean, String...)
*/
public st... | apache-2.0 |
TomaszMolenda/mediciline | src/main/webapp/WEB-INF/resources/js/user/functions.js | 2095 | var name, email, confirmEmail, password, confirmPassword, isValidate
function sendRegister() {
name = $('#name').val();
email = $('#email').val();
confirmEmail = $('#confirmEmail').val();
password = $('#password').val();
confirmPassword = $('#confirmPassword').val();
isValidate = true;
$('#error').html('');
... | apache-2.0 |
seirion/code | short/gcd.cpp | 130 |
int gcd(int a, int b) {
return (a % b == 0) ? b : gcd(b, a % b);
}
int lcm(int a, int b) {
return a * b / gcd(a, b);
}
| apache-2.0 |
RepIR/RepIRProximity | src/main/java/io/github/repir/Strategy/SpeedAnalyzerPLM.java | 1130 | package io.github.repir.Strategy;
import io.github.repir.Strategy.Operator.Analyzer;
import io.github.repir.Retriever.Query;
import io.github.repir.Retriever.Retriever;
import io.github.repir.Strategy.Collector.CollectorDocumentSpeed;
import io.github.repir.Strategy.Collector.SpeedCollector;
import io.github.htools.li... | apache-2.0 |
BBCVisualJournalism/newsspec_7166 | source/js/app.js | 364 | define(['lib/news_special/bootstrap', 'lib/news_special/share_tools/controller'], function (news, shareTools) {
return {
init: function (storyPageUrl) {
news.$('.main select').on('change', function () {
var url = news.$(this).val();
window.parent.location.href =... | apache-2.0 |
mcculls/bnd | biz.aQute.bndlib/src/aQute/bnd/osgi/Descriptors.java | 14512 | package aQute.bnd.osgi;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.osgi.annotation.versioning.ProviderType;
import aQute.libg.generics.Create;
public class Descriptors {
Map<String,TypeRef> typeRefCache = Create.map();
Map<String,Descriptor> descri... | apache-2.0 |
arst/SimplCommerce | src/Modules/SimplCommerce.Module.Vendors/ViewModels/VendorForm.cs | 548 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace SimplCommerce.Module.Vendors.ViewModels
{
public class VendorForm
{
public long Id { get; set; }
[Required]
public string Name { get; set; }
[EmailAddress]
[Required]
publ... | apache-2.0 |
googleads/googleads-php-lib | src/Google/AdsApi/AdManager/v202108/MobileApplicationPlatform.php | 403 | <?php
namespace Google\AdsApi\AdManager\v202108;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class MobileApplicationPlatform
{
const UNKNOWN = 'UNKNOWN';
const ANDROID = 'ANDROID';
const IOS = 'IOS';
const ROKU = 'ROKU';
const AMAZON_FIRETV = 'AMAZON_FIRETV';
const PLAYSTATION ... | apache-2.0 |
pwittchen/ReactiveWiFi | library/src/main/java/com/github/pwittchen/reactivewifi/ReactiveWifi.java | 13240 | /*
* Copyright (C) 2016 Piotr Wittchen
*
* 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 |
gerrit-review/gerrit | java/com/google/gerrit/server/events/EventTypes.java | 2405 | // Copyright (C) 2014 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | apache-2.0 |
greensnow25/javaaz | chapter3/Control_Task/src/main/java/com/greensnow25/searchWithEnum/Librery/FindByRegExp.java | 657 | package com.greensnow25.searchWithEnum.Librery;
import java.io.File;
import java.io.PrintWriter;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* public class FindByRegExp.
*
* @author greensnow25.
* @since 17.03.2017.
* @version 1.
*/
public class FindByRegExp implements Find {
@Overri... | apache-2.0 |
dtynn/grpcproxy | example/gproxy/foo/service.go | 884 | package foo
import (
"fmt"
"log"
"net"
"strings"
"golang.org/x/net/context"
"google.golang.org/grpc"
"github.com/dtynn/grpcproxy/example/rpc"
)
var _ rpc.FooServer = &Service{}
type Service struct {
Port int
}
func (this *Service) Chat(ctx context.Context, req *rpc.FooReq) (*rpc.FooResp, error) {
log.Pri... | apache-2.0 |
bitpew/ratpack-webapp-template | src/main/java/template/web/ratpack/handler/api/HelloWorldApiHandler.java | 286 | package template.web.ratpack.handler.api;
import ratpack.handling.Context;
import ratpack.handling.Handler;
public class HelloWorldApiHandler implements Handler {
@Override
public void handle(Context context) throws Exception {
context.render("Hello World");
}
}
| apache-2.0 |
taktos/ea2ddl | ea2ddl-dao/src/main/java/jp/sourceforge/ea2ddl/dao/cbean/cq/bs/BsTTasksCQ.java | 10933 | package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;
import java.util.Map;
import org.seasar.dbflute.cbean.*;
import org.seasar.dbflute.cbean.cvalue.ConditionValue;
import org.seasar.dbflute.cbean.sqlclause.SqlClause;
import jp.sourceforge.ea2ddl.dao.cbean.cq.ciq.*;
import jp.sourceforge.ea2ddl.dao.cbean.*;
import... | apache-2.0 |
knative/test-infra | pkg/clustermanager/perf-tests/pkg/cluster_test.go | 14149 | /*
Copyright 2019 The Knative 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, soft... | apache-2.0 |
johngmyers/airlift | concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java | 24426 | package io.airlift.concurrent;
import com.google.common.util.concurrent.AsyncFunction;
import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.... | apache-2.0 |
electrum/airline | src/test/java/io/airlift/airline/args/ArgsArityString.java | 1184 | /*
* Copyright (C) 2010 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* 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 |
zaevans/azure-sdk-for-net | src/ResourceManagement/DataFactory/DataFactoryManagement/Generated/Core/LinkedServiceOperations.cs | 96609 | //
// Copyright (c) Microsoft and contributors. 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 requi... | apache-2.0 |
azurelogic/XdtExtended | XmlTransform/XmlLocator.cs | 8661 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Xml;
namespace Microsoft.Web.XmlTransform.Extended
{
public enum XPathAxis
{
Child,
Descendant,
Parent,
Ancestor,
FollowingSibling,
PrecedingSibling,
Following,
... | apache-2.0 |
tavultesoft/keymanweb | windows/src/support/NetInputBoxTest/NetInputBoxTest/Program.cs | 914 | /*
Name: Program
Copyright: Copyright (C) 2003-2012 Software For Specialists Ltd.
Documentation:
Description:
Create Date: 29 Mar 2015
Modified Date: 29 Mar 2015
Authors: mcdurdin
Related Files:
Dependencies:
Bugs:
Todo: ... | apache-2.0 |
freightlive/bumbal-client-api-php | src/Model/PauseListResponse.php | 7532 | <?php
/**
* PauseListResponse
*
* PHP version 5
*
* @category Class
* @package BumbalClient
* @author Swaagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Bumbal Client Api
*
* Bumbal API documentation
*
* OpenAPI spec version: 2.0
* Contact: gerb@bumbal.eu
* Gen... | apache-2.0 |
lessthanoptimal/ejml | examples/src/org/ejml/example/ExampleComplexMath.java | 2091 | /*
* Copyright (c) 2009-2018, Peter Abeles. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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 |
dagnir/aws-sdk-java | aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/transform/EnableDirectoryResultJsonUnmarshaller.java | 2847 | /*
* Copyright 2012-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 "licen... | apache-2.0 |
KEOpenSource/SimulynIO | src/file/save/view/SaveDocumentFileChooserView.java | 2151 | /*
FileChooserView -- a class within the FileManagerFramework.
Copyright (C) 2012, Kaleb Kircher.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) ... | apache-2.0 |
timdown/log4javascript2 | src/loggingevent.js | 1454 | (function(api) {
var LoggingEvent = function(logger, timeStamp, level, messages, exception) {
this.logger = logger;
this.timeStamp = timeStamp;
this.timeStampInMilliseconds = +timeStamp;
this.timeStampInSeconds = Math.floor(this.timeStampInMilliseconds / 1000);
this.milliseco... | apache-2.0 |
weiPlace/Day366 | application/models/Database/Table/Userinfo.php | 219 | <?php
require_once('Zend/Db/Table/Abstract.php');
class Database_Table_Userinfo extends Zend_Db_Table {
protected function _setup(){
$this->_name='user';
$this->_primary='user_id';
parent::_setup();
}
}
?> | apache-2.0 |
spf13/afero | iofs_test.go | 8973 | // +build go1.16
package afero
import (
"bytes"
"errors"
"io"
"io/fs"
"os"
"testing"
"testing/fstest"
"time"
)
func TestIOFS(t *testing.T) {
t.Parallel()
t.Run("use MemMapFs", func(t *testing.T) {
mmfs := NewMemMapFs()
err := mmfs.MkdirAll("dir1/dir2", os.ModePerm)
if err != nil {
t.Fatal("Mkdir... | apache-2.0 |
sschepens/pulsar | pulsar-broker/src/test/java/org/apache/pulsar/client/impl/UnAcknowledgedMessagesTimeoutTest.java | 17184 | /**
* 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 |
walterfan/pims4java | server/src/main/java/com/github/walterfan/kanban/dao/NoResultsFoundException.java | 1493 | package com.github.walterfan.kanban.dao;
import org.springframework.dao.DataAccessException;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* Thrown if a record didnot exist by the search condition
*/
public class NoResultsFoundException extends DataAccessException {
/**
* DOCUMENT ME!
... | apache-2.0 |
jpotts/alfresco-developer-series | webscripts/webscripts-tutorial/webscripts-tutorial-platform/src/main/resources/alfresco/extension/templates/webscripts/com/someco/ratings/rating.get.js | 644 | <import resource="classpath:alfresco/module/behavior-tutorial-platform/scripts/rating.js">
if (args.id == null || args.id.length == 0) {
logger.log("ID arg not set");
status.code = 400;
status.message = "Node ID has not been provided";
status.redirect = true;
} else {
logger.log("Getting current node");
var curN... | apache-2.0 |
jkingdon/ghilbert | js/proofstep.js | 32283 | // Javascript for displaying proof steps. Steps are organized into proof blocks.
// by Paul Merrell, 2013
/**
* Represents an s-expression.
*/
GH.sExpression = function(operator, begin, end, isString) {
this.parent = null;
this.operator = operator;
this.operands = [];
this.siblingIndex = null;
// If the expr... | apache-2.0 |
desruisseaux/sis | core/sis-referencing/src/main/java/org/apache/sis/internal/jaxb/referencing/CS_PolarCS.java | 2993 | /*
* 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 |