repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
mars-lan/WhereHows
datahub-web/@datahub/utils/addon/test-helpers/stub-service.ts
650
import Service from '@ember/service'; import { TestContext } from 'ember-test-helpers'; import { getContext } from '@ember/test-helpers'; /** * Registers a stub service for component integration testing * @param {string} name the name of the service without the service: prefix e.g. 'location-data' * @param {*} [pro...
apache-2.0
toddmeinershagen/Demo.ADTProcessing
src/Demo.ADTProcessing.Router/Program.cs
358
using System.Collections.Concurrent; namespace Demo.ADTProcessing.Router { class Program { public static readonly ConcurrentDictionary<string, string> Queues = new ConcurrentDictionary<string, string>(); static void Main(string[] args) { var router = new Router(); ...
apache-2.0
heriram/incubator-asterixdb
hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java
18348
/* * 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
txs72/BUPTJava
additional/junit5example/src/test/java/MyIntegerTest.java
3690
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @DisplayName("MyInteger类相关测试") public class MyIntegerTest { int even[] = { ...
apache-2.0
stdlib-js/stdlib
lib/node_modules/@stdlib/net/http-server/test/test.js
7909
/** * @license Apache-2.0 * * Copyright (c) 2018 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
datastax/java-driver
core/src/main/java/com/datastax/dse/driver/internal/core/cql/continuous/ContinuousCqlRequestSyncProcessor.java
2606
/* * Copyright 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 agreed to in wri...
apache-2.0
aosp-mirror/platform_frameworks_support
app-toolkit/common/src/main/java/androidx/arch/core/internal/SafeIterableMap.java
11134
/* * Copyright 2018 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 applica...
apache-2.0
googleapis/java-contact-center-insights
proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/GcsSource.java
26429
/* * 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 agreed to ...
apache-2.0
spring-projects/spring-data-examples
jpa/deferred/src/main/java/example/model/Customer609.java
624
package example.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Customer609 { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String firstName; private String la...
apache-2.0
bigdogmat/E2-Global-Print
addon/lua/entities/gmod_wire_expression2/core/custom/globalprint.lua
6497
--[[--------------------------------------------------------------------------- Global color printing! -----------------------------------------------------------------------------]] E2Lib.RegisterExtension("globalprint", false, "Allows players to print colored messages to the entire server", "This can be used to imper...
apache-2.0
leapframework/framework
base/lang/src/main/java/leap/lang/jsoup/parser/TokeniserState.java
59352
package leap.lang.jsoup.parser; /** * States and transition activations for the Tokeniser. */ enum TokeniserState { Data { // in data state, gather characters until a character reference or tag is found void read(Tokeniser t, CharacterReader r) { switch (r.current()) { ...
apache-2.0
yeming1001/GankMeiZhi
app/src/androidTest/java/com/leaf/gankio/ApplicationTest.java
346
package com.leaf.gankio; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(A...
apache-2.0
citygml4j/citygml4j
src-gen/main/java/net/opengis/citygml/generics/_2/GenericCityObjectType.java
19578
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert // Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2019.0...
apache-2.0
JessYanCoding/AndroidAutoSize
demo/src/main/java/me/jessyan/autosize/demo/FragmentHost.java
2106
/* * Copyright 2018 JessYan * * 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
wanlitao/FCP.Web.Framework
src/FCP.Web.Api.Tracing/Properties/AssemblyInfo.cs
1382
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("FCP.Web.Api.Tracing")] [assembly: AssemblyDescription("Web Api Tracing for FCP(Fluent Compute Platform)")] [assembly: AssemblyConfiguration(""...
apache-2.0
SteelToeOSS/Samples
Management/src/AspDotNet4/CloudFoundryWeb/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs
137
namespace CloudFoundryWeb.Areas.HelpPage.ModelDescriptions { public class SimpleTypeModelDescription : ModelDescription { } }
apache-2.0
cedral/aws-sdk-cpp
aws-cpp-sdk-iam/source/model/GetContextKeysForPrincipalPolicyResult.cpp
2475
/* * 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
venusdrogon/feilong-taglib
src/test/java/com/feilong/taglib/display/httpconcat/handler/VersionFormatterTest.java
1819
/* * Copyright (C) 2008 feilong * * 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
LUTAN/tensorflow
tensorflow/python/kernel_tests/losses_test.py
58135
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
emullaraj/ebay-sdk-php
src/DTS/eBaySDK/Shopping/Types/SalesTaxType.php
2681
<?php /** * THE CODE IN THIS FILE WAS GENERATED FROM THE EBAY WSDL USING THE PROJECT: * * https://github.com/davidtsadler/ebay-api-sdk-php * * Copyright 2014 David T. Sadler * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
apache-2.0
mdproctor/drools
drools-core/src/main/java/org/drools/core/command/runtime/process/SignalEventCommand.java
4636
/* * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
GoogleCloudPlatform/kafka-pubsub-emulator
src/main/java/com/google/cloud/partners/pubsub/kafka/PubsubEmulatorServer.java
5971
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
wzzlYwzzl/kdashboard
src/app/frontend/userlist/userlist_stateconfig.js
1386
import {actionbarViewName} from 'chrome/chrome_state'; import {breadcrumbsConfig} from 'common/components/breadcrumbs/breadcrumbs_service'; import {UserListController} from './userlist_controller'; import {stateName, stateUrl} from './userlist_state'; // import {stateName as userlogin} from 'userlogin/userlogin_state';...
apache-2.0
liquidarmour/ct-calculations
src/main/scala/uk/gov/hmrc/ct/box/ValidatableBox.scala
13729
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
capitalone/Hydrograph
hydrograph.engine/hydrograph.engine.core/src/main/java/hydrograph/engine/core/component/generator/S3FileTransferEntityGenerator.java
3968
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, 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...
apache-2.0
dbflute-test/dbflute-test-active-hangar
src/main/java/org/docksidestage/hangar/dbflute/bsbhv/pmbean/BsResolvedPackageNamePmb.java
15907
package org.docksidestage.hangar.dbflute.bsbhv.pmbean; import java.util.*; import org.dbflute.outsidesql.typed.*; import org.dbflute.jdbc.*; import org.dbflute.outsidesql.PmbCustodial; import org.dbflute.util.DfTypeUtil; import org.docksidestage.hangar.dbflute.allcommon.*; import org.docksidestage.hangar.dbflute.exbh...
apache-2.0
pegasus-isi/pegasus
packages/pegasus-python/src/Pegasus/db/admin/versions/v9.py
1223
#!/usr/bin/env python # # Copyright 2017-2021 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...
apache-2.0
cschuff/openui5
src/sap.uxap/test/sap/uxap/qunit/js/ObjectPageSection.qunit.js
14417
/*global QUnit,sinon*/ (function ($, QUnit, sinon, Importance) { "use strict"; jQuery.sap.registerModulePath("view", "./view"); jQuery.sap.registerModulePath("sap.uxap.testblocks", "./blocks"); jQuery.sap.require("sap.uxap.ObjectPageSubSection"); jQuery.sap.require("sap.uxap.ObjectPageSection"); jQuery.sap.requ...
apache-2.0
hmrc/ct-calculations
src/main/scala/uk/gov/hmrc/ct/version/CoHoVersions.scala
925
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
lalvarezcu/subjectsplus
ckeditor/plugins/subsplus_cat_link/dialogs/subsplus_cat_link.js
8551
/** * The subsplus_cat_link dialog definition. * */ function html_entity_decode(str) { var ta=document.createElement("textarea"); ta.innerHTML=str.replace(/</g,"<").replace(/>/g,">"); return ta.value; } // Our dialog definition. CKEDITOR.dialog.add( 'subsplus_cat_linkDialog', function( editor ) { return { /...
apache-2.0
rnpandya/adam
adam-core/src/main/scala/org/bdgenomics/adam/algorithms/smithwaterman/SmithWatermanGapScoringFromFn.scala
2307
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
apache-2.0
cf-platform-eng/aws-pcf-quickstart
ci/create-stack.py
5159
# aws-pcf-quickstart # # Copyright (c) 2017-Present Pivotal Software, Inc. All Rights Reserved. # # This program and the accompanying materials are made available under # the terms of the 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
ederign/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-client-common/src/test/java/org/kie/workbench/common/stunner/core/client/session/command/impl/DeleteSelectionSessionCommandTest.java
2020
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
rishuatgithub/MLPy
tf/linear_regression_tf.py
892
# Linear Regression model using tensorflow - Rishu Shrivastava import tensorflow as tf #Model parameters W=tf.Variable([.3], dtype=tf.float32) b=tf.Variable([-.3], dtype=tf.float32) #Input and Output parameters x=tf.placeholder(tf.float32) y=tf.placeholder(tf.float32) linear_model=W*x + b #calculate loss - Sum of sq...
apache-2.0
spohnan/geowave
core/store/src/main/java/org/locationtech/geowave/core/store/data/field/FieldUtils.java
4950
/** * Copyright (c) 2013-2019 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
apache-2.0
darranl/directory-shared
ldap/codec/core/src/test/java/org/apache/directory/api/ldap/codec/search/controls/PSearchControlTest.java
8482
/* * 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
google/eslint-closure
packages/eslint-plugin-closure/dist/closure-eslint-plugin.js
113881
var c = c || {}; c.global = this; c.isDef = function(a) { return void 0 !== a; }; c.exportPath_ = function(a, b, d) { a = a.split("."); d = d || c.global; a[0] in d || !d.execScript || d.execScript("var " + a[0]); for (var e;a.length && (e = a.shift());) { !a.length && c.isDef(b) ? d[e] = b : d = d[e] ? d...
apache-2.0
lzf-lamer/TODO
app/src/main/java/com/wonder/todotest_mvp/taskdetail/TaskDetailPresenter.java
4040
package com.wonder.todotest_mvp.taskdetail; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.google.common.base.Strings; import com.wonder.todotest_mvp.data.Task; import com.wonder.todotest_mvp.data.source.TasksDataSource; import com.wonder.todotest_mvp.data.source.Tas...
apache-2.0
omahaprogrammer/authserver
src/main/java/com/pazdev/authserver/model/Profile.java
14526
/* * Copyright 2016 Jonathan Paz <jonathan@pazdev.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 requir...
apache-2.0
eekboom/gerrit-intellij-plugin
src/main/java/com/urswolfer/intellij/plugin/gerrit/ui/diff/RemoveCommentAction.java
3126
/* * Copyright 2013 Urs Wolfer * * 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
efalder413/civitas-pervia
src/Civitas/Bundle/AppBundle/Tests/Controller/SettingsControllerTest.php
168
<?php namespace Civitas\Bundle\AppBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class SettingsControllerTest extends WebTestCase { }
apache-2.0
paragbaxi/qualysguard_scan_new_assets
qualysguard_scan_new_assets.py
4446
# Parse map XML for live but not scannable IPs. import argparse import csv import datetime from collections import defaultdict import logging import os import qualysapi from lxml import objectify # # Begin # # Declare the command line flags/options we want to allow. parser = argparse.ArgumentParser(description = 'Pa...
apache-2.0
xehoth/OnlineJudgeCodes
BZOJ/BZOJ1061.cpp
2885
/** * Copyright (c) 2017, xehoth * All rights reserved. * 「BZOJ 1061」26-03-2017 * * @author xehoth */ #include <bits/stdc++.h> inline int read() { static const int IN_LEN = 1000000; static char buf[IN_LEN], *h, *t; if (h == t) { t = (h = buf) + fread(buf, 1, IN_LEN, stdin); if (h == t...
apache-2.0
cloudera/Impala
be/src/runtime/bufferpool/free-list-test.cc
5990
// 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
SkygearIO/skygear-server
pkg/auth/dependency/forgotpassword/store_impl.go
1637
package forgotpassword import ( "context" "encoding/json" "fmt" "time" goredis "github.com/gomodule/redigo/redis" "github.com/skygeario/skygear-server/pkg/core/errors" "github.com/skygeario/skygear-server/pkg/core/redis" ) type StoreImpl struct { Context context.Context } var _ Store = &StoreImpl{} func (...
apache-2.0
tatematsu/Michelle-iOS
Resources/order_hatsukaichi.js
5551
stageWidth = Titanium.Platform.displayCaps.platformWidth; // フォームを表示するビュー作成 var formView = Ti.UI.createView({ top: 0 }); /* 廿日市店の予約ウィンドウ */ Ti.UI.currentWindow.addEventListener('open',function(e){ //やりたい事 var selected_hotel = 1; var hatsu_reserve_label = Ti.UI.createLabel({ text:'金曜のみ宿泊・休憩受付可能/土日祝日は受付ておりません。', ...
apache-2.0
westman2000/MVPCAndroid
mvpc_rx/src/main/java/corp/wmsoft/android/lib/mvpcrx/delegate/MVPCDelegate.java
4654
package corp.wmsoft.android.lib.mvpcrx.delegate; import android.content.Context; import android.os.Bundle; import android.support.v4.app.LoaderManager; import android.support.v4.content.Loader; import java.lang.ref.WeakReference; import corp.wmsoft.android.lib.mvpcrx.presenter.IMVPCPresenter; import corp.wmsoft.andr...
apache-2.0
vishnus1224/RxJavaTeamworkClient
TeamworkApiDemo/app/src/main/java/com/vishnus1224/teamworkapidemo/manager/LatestActivityDataManager.java
3474
package com.vishnus1224.teamworkapidemo.manager; import com.vishnus1224.teamworkapidemo.model.LatestActivityDto; import com.vishnus1224.teamworkapidemo.model.ProjectDto; import com.vishnus1224.teamworkapidemo.repository.BaseRepository; import com.vishnus1224.teamworkapidemo.subscriber.EmptySubscriber; import java.uti...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-servicediscovery/src/main/java/com/amazonaws/services/servicediscovery/model/GetInstanceRequest.java
5310
/* * 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
terrancesnyder/oozie-hadoop2
core/src/main/java/org/apache/oozie/action/control/StartActionExecutor.java
1085
/** * 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
jabelai/Neverland
J2EE/BaseTools/src/main/java/com/oppo/base/apk/entity/LockProperty.java
1736
package com.oppo.base.apk.entity; /** * * ClassName:LockProperty * Function:锁屏相关属性 * @author 80036381 * @version * @since Ver 1.1 * @Date 2011-7-18 下午03:08:03 * @see */ public class LockProperty { private String name; //锁屏名称 private String author; //锁屏作者 private String version;//...
apache-2.0
yzzslow0/Ec2m
ec/src/main/java/com/example/ec/fragment/Fragment1.java
2643
package com.example.ec.fragment; import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.ec.R; public class Fragment1 extends LazyLoadFrag...
apache-2.0
jior/glaf
workspace/glaf-base/src/main/java/com/glaf/base/modules/branch/springmvc/BranchDeptRoleController.java
4008
/* * 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
agwlvssainokuni/springapp
example-web/src/main/java/cherry/example/web/basic/ex90/BasicEx90LoadForm.java
977
/* * Copyright 2014,2015 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...
apache-2.0
tobych/django-feature-flipper
featureflipper_example/views.py
1100
from django.shortcuts import render_to_response from django.template import RequestContext from featureflipper.models import Feature from featureflipper.signals import feature_defaulted # We use the feature_defaulted signal to print a simple message # warning that a feature has been defaulted to disabled. You might ...
apache-2.0
davcamer/clients
projects-for-testing/struts/apps/faces-example1/src/main/java/org/apache/struts/webapp/example/Constants.java
1825
/* * $Id: Constants.java 471754 2006-11-06 14:55:09Z husted $ * * 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...
apache-2.0
ggranum/datagen-api
core/src/main/java/com/fetherbrik/datagen/core/StringChainGenerator.java
403
package com.fetherbrik.datagen.core; import java.util.List; public class StringChainGenerator extends ChainGenerator<String> { public StringChainGenerator(List<Generator<String>> chain) { super(chain); } @Override public String next() { StringBuilder b = new StringBuilder(); for (Generator<String>...
apache-2.0
bhb27/KA27
app/src/main/java/com/grarak/kerneladiutor/utils/database/JsonDB.java
3641
/* * 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
chrishumphreys/provocateur
provocateur-thirdparty/src/main/java/org/targettest/org/apache/lucene/search/WildcardQuery.java
3826
package org.targettest.org.apache.lucene.search; /** * 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 Apach...
apache-2.0
ramasinka/javers
javers-core/src/main/java/org/javers/core/diff/changetype/ValueChange.java
914
package org.javers.core.diff.changetype; import org.javers.core.metamodel.object.GlobalId; import org.javers.core.metamodel.property.Property; import static org.javers.common.string.ToStringBuilder.addField; /** * @author bartosz walacik */ public final class ValueChange extends PropertyChange { private final ...
apache-2.0
joeyb/retry
src/test/java/org/joeyb/retry/StopsTests.java
4766
package org.joeyb.retry; import static org.assertj.core.api.Java6Assertions.assertThat; import static org.joeyb.retry.TestHelpers.assertClassOnlyHasPrivateConstructor; import org.assertj.core.util.Lists; import org.junit.Test; import java.util.concurrent.ThreadLocalRandom; public class StopsTests { @Test p...
apache-2.0
niroyb/bosh-bootloader
terraform/gcp/template_generator.go
2597
package gcp import ( "fmt" "strings" "github.com/cloudfoundry/bosh-bootloader/storage" ) type templates struct { vars string jumpbox string boshDirector string cfLB string cfDNS string concourseLB string } type TemplateGenerator struct{} func NewTemplateGenerator() TemplateGen...
apache-2.0
boadude/angularjs-es6-gulp-browserify-karma-mocha-chai-starter
gulp/config.js
1018
'use strict'; export default { browserPort: 3000, UIPort: 3001, sourceDir: './app/', buildDir: './build/', styles: { src: 'app/styles/**/*.scss', dest: 'build/css', prodSourcemap: false, sassIncludePaths: [] }, scripts: { src: 'app/js/**/*.js', dest: 'build/js' }, images:...
apache-2.0
onosfw/apis
onos/apis/dir_3e07eb83563bf7c562021a794e02da6d.js
233
var dir_3e07eb83563bf7c562021a794e02da6d = [ [ "AppCommand.java", "src_2main_2resources_2archetype-resources_2src_2main_2java_2AppCommand_8java.html", [ [ "AppCommand", "classAppCommand.html", "classAppCommand" ] ] ] ];
apache-2.0
gigya/microdot
Gigya.Microdot.Hosting/Validators/IValidator.cs
262
namespace Gigya.Microdot.Hosting.Validators { /// <summary> /// When service is started, validates that the service is Ok to run, and throws an exception if not /// </summary> public interface IValidator { void Validate(); } }
apache-2.0
DiceHoldingsInc/orientdb
core/src/main/java/com/orientechnologies/common/io/OIOUtils.java
8949
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa...
apache-2.0
OakRaven/ltaf
src/LTAF.Infrastructure/Abstractions/IFileSystem.cs
1170
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace LTAF.Infrastructure.Abstractions { internal interface IFileSystem { bool DirectoryExists(string directoryPath); string[] DirectoryGetSubDirs(string directoryPath, string searchPattern, SearchOption se...
apache-2.0
zjshen/hadoop-YARN-2928-POC
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/application/TestApplication.java
23017
/** * 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
felipemrvieira/NathaliaAmaral
pages/index.php
3429
<?php date_default_timezone_set("Brazil/East"); include("DAO/conexao.php"); include("DAO/estoqueDAO.php"); include("DAO/operacoesDAO.php"); include('header.php'); validaUsuarioLogado(); ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> ...
apache-2.0
iVCE/RDFS
src/test/org/apache/hadoop/hdfs/TestNameNodeIdempotence.java
6952
package org.apache.hadoop.hdfs; import junit.framework.TestCase; import java.io.DataOutputStream; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.RandomAccessFile; import java.lang.reflect.Method; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.n...
apache-2.0
interseroh/document-container-confluence
src/main/java/com/lofidewanto/demo/server/DemoGwtSpringbootApplication.java
1721
/* * 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
gavin2lee/generic-support
auth-admin-api/src/main/java/com/generic/support/admin/service/PermissionService.java
415
package com.generic.support.admin.service; import java.util.List; import com.lachesis.support.objects.entity.auth.Permission; public interface PermissionService { Permission savePermission(Permission p); Permission updatePermission(Permission p); Permission removePermission(Permission p); Permission findPermissi...
apache-2.0
CASPED/OpenGTS
src/org/opengts/util/Tuple.java
2701
// ---------------------------------------------------------------------------- // Copyright 2007-2011, GeoTelematic Solutions, Inc. // All rights reserved // ---------------------------------------------------------------------------- // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not...
apache-2.0
thanple/tomcatsrc
java/org/apache/tomcat/util/net/JIoEndpoint.java
22341
/* * 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
krizzdewizz/hyperxml
src/main/java/hyperxml/Xml.java
816
package hyperxml; /** * Writes arbitrary xml with only the method {@link #$(String, Object...)}. * <p> * <code>$()</code> expects its parameters as follows: * <p> * Example: * * <pre> * $("html"); * { * $("body", "onload", "doThings()"); // attribute name-value pairs * { * ...
apache-2.0
wolfdog007/aruzhev
chapter_001/src/main/java/ru/job4j/Point.java
1024
package ru.job4j; /** * Class Point. * * @author Ruzhev Alexander * @since 16.02.2017 */ public class Point { /** * @param x a point of coordinates */ private double x; /** * @param y a point of coordinates */ private double y; /** * Getter for x. * * @retur...
apache-2.0
babble/babble
src/test/ed/db/index5.js
505
// index5.js - test reverse direction index function validate() { assert.eq( 2, t.find().count() ); f = t.find().sort( { a: 1 } ); assert.eq( 2, t.count() ); assert.eq( 1, f[ 0 ].a ); assert.eq( 2, f[ 1 ].a ); r = t.find().sort( { a: -1 } ); assert.eq( 2, r.count() ); assert.eq( 2, r[ 0...
apache-2.0
dougwig/x-neutron-vpnaas
neutron_vpnaas/tests/unit/services/vpn/test_vpn_agent.py
7190
# Copyright 2013, Nachi Ueno, NTT I3, 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...
apache-2.0
Kangmo/korbit-nodejs-sdk
main/src/main/scala/helper/Excp.scala
209
package org.kangmo.helper object Excp { def getStackTrace(e : Exception) = { val sr = new java.io.StringWriter(); val writer = new java.io.PrintWriter(sr); e.printStackTrace(writer) sr.toString } }
apache-2.0
desertbit/bulldozer
sessions/socket/dummysocket.go
1324
/* * Bulldozer Framework * Copyright (C) DesertBit */ package socket import ( "sync" ) //###########################// //### Dummy Socket struct ###// //###########################// type DummySocket struct { remoteAddr string userAgent string isClosed bool mutex sync.Mutex onClose func() } f...
apache-2.0
macanhhuy/dcp-api
src/test/java/org/jboss/dcp/api/rest/SecurityPreProcessInterceptorTest.java
6801
/* * JBoss, Home of Professional Open Source * Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.jboss.dcp.api.rest; import java.security.Principal; import java.util.logging.Logger; import javax.ws.rs.core.SecurityConte...
apache-2.0
jaheme/oloba-security
src/main/java/com/oloba/verify/Quant.java
14678
package com.oloba.verify; /** * <p></p> * * @version:1.0 */ public class Quant { protected static final int netsize = 256; /* number of colours used */ /* four primes near 500 - assume no image has a length so large */ /* that it is divisible by all four primes */ protected static final int prime1 = ...
apache-2.0
Adrian-Turjak/openstack-interpreter
openstack_interpreter/v1/clients.py
4442
from ceilometerclient import client as ceilometerclient from cinderclient import client as cinderclient from glanceclient import client as glanceclient from heatclient import client as heatclient from keystoneclient import client as keystoneclient from neutronclient.neutron import client as neutronclient from novaclien...
apache-2.0
googleapis/google-api-ruby-client
generated/google-apis-connectors_v1/spec/generated_spec.rb
919
# 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
apache-2.0
tensorics/tensorics-core
src/java/org/tensorics/core/tensorbacked/AbstractTensorbacked.java
2796
// @formatter:off /******************************************************************************* * * This file is part of tensorics. * * Copyright (c) 2008-2011, CERN. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with ...
apache-2.0
Maghoumi/GP-Tracker
lib/ecj/ec/app/sum/Sum.java
1960
/* Copyright 2006 by Sean Luke Licensed under the Academic Free License version 3.0 See the file "LICENSE" for more information */ package ec.app.sum; import ec.vector.*; import ec.*; import ec.simple.*; import ec.util.*; /* * Sum.java * * Created on Sat Jun 16 23:26:38 EDT 2001 * By Sean Luke */ /** ...
apache-2.0
ColmexBDCV/sufia-oai
config/initializers/explain_partials.rb
748
# Start the app with EXPLAIN_PARTIALS=true to show locations of view partials if Rails.env.development? && ENV['EXPLAIN_PARTIALS'] module ActionView class PartialRenderer def render_with_explanation(*args) rendered = render_without_explanation(*args).to_s # Note: We haven't figured out how t...
apache-2.0
mmz-srf/puppet-rkhunter
spec/classes/init_spec.rb
426
require 'spec_helper' describe 'rkhunter', :type => :class do on_supported_os.each do |os, facts| context "on #{os}" do let(:facts){facts} it do should contain_class('rkhunter::packages') end it do should contain_file("/etc/rkhunter.conf").with( 'owner' => 'r...
apache-2.0
tophua/spark1.52
mllib/src/test/scala/org/apache/spark/ml/feature/IDFSuite.scala
5078
/* * 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
bnogent/ws
src/main/java/com/lammesoft/idea1/business/UserManagment.java
8111
package com.lammesoft.idea1.business; import com.lammesoft.idea1.business.exceptions.InvalidParameter; import com.lammesoft.idea1.business.exceptions.UserExistException; import com.lammesoft.idea1.domain.User; import com.lammesoft.idea1.services.UserService; import com.lammesoft.idea1.utils.HibernateUtil; import com.l...
apache-2.0
knative/build
vendor/github.com/knative/pkg/codegen/cmd/injection-gen/generators/informer.go
4135
/* 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, sof...
apache-2.0
AsuraTeam/asura
asura-conf/src/test/java/com/asura/test/T_ZkConfigContext.java
2263
/* * Copyright (c) 2016. struggle.2036@163.com. All rights reserved. */ package com.asura.test; import com.asura.framework.conf.subscribe.ConfigSubscriber; import com.asura.test.pojo.TestNewEnum; import com.asura.test.pojo.TestOldEnum; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * <p></p> * * <P...
apache-2.0
blackcathacker/kc.preclean
coeus-code/src/main/java/org/kuali/coeus/common/committee/impl/meeting/AlternateForValuesFinder.java
1845
/* * 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.opensource.org/licenses/ecl1.php * * Unless required by...
apache-2.0
Eric217/-OnSale
server/src/main/java/cn/omsfuk/discount/base/Result.java
267
package cn.omsfuk.discount.base; import lombok.AllArgsConstructor; import lombok.Data; /** * Created by omsfuk on 2017/7/17. */ @Data @AllArgsConstructor public class Result { private Integer status; private String message; private Object data; }
apache-2.0
zagart/rent
src/main/rent/model/dao/impl/TariffDao.java
233
package rent.model.dao.impl; import rent.model.dao.AbstractDao; import rent.model.entities.Tariff; /** * DAO implementation for {@link Tariff}. * * @author zagart */ public class TariffDao extends AbstractDao<Tariff, Long> { }
apache-2.0
box/augmented_types
tests/values_can_be_modified_in_error_cb.phpt
1158
--TEST-- Ensure that the augmented types error callback can safely modify values with the same semantics as normal php functions --INI-- augmented_types.enforce_by_default = 1 --FILE-- <?php /** * @param mixed|null $offending_value * @param bool $is_void * @param string $expected_type * @param string $function_nam...
apache-2.0
awhitford/DependencyCheck
core/src/test/java/org/owasp/dependencycheck/analyzer/ComposerLockAnalyzerTest.java
3785
/* * This file is part of dependency-check-core. * * 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
pyj0918/study
dynamic-proxy/dynamic-proxy-01/src/com/test/MyMain.java
763
package com.test; import java.io.FileOutputStream; import sun.misc.ProxyGenerator; public class MyMain { public static void main(String[] args) { Person person = new PersonImpl(); DynamicProxy prox = new DynamicProxy(person); Person personProx = prox.getProxy(); System.out.println(personProx.getClass().getN...
apache-2.0
mtconnect/cppagent
test/relationship_test.cpp
5484
// Ensure that gtest is the first header otherwise Windows raises an error #include <gtest/gtest.h> // Keep this comment to keep gtest.h above. (clang-format off/on is not working here!) #include "adapter/adapter.hpp" #include "agent.hpp" #include "agent_test_helper.hpp" #include "json_helper.hpp" #include "device_mod...
apache-2.0
ClusterHQ/libcloud
libcloud/compute/types.py
7518
# 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 not use ...
apache-2.0