repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
toulouseSoWine/toulouseSoWine.github.io
bower_components/angular-material/modules/js/list/list.js
8180
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.10.1-rc5-master-f5a9101 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.list * @description * List module */ angular.module('material.components.list', [ 'materi...
apache-2.0
lemonJun/TakinRPC
takinrpc-raft/src/main/java/org/robotninjas/protobuf/netty/InvalidRpcRequestException.java
1619
/* * Copyright (c) 2009 Stephen Tu <stephen_tu@berkeley.edu> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, cop...
apache-2.0
zion64/spring-ldap
samples/user-admin/src/main/java/com/zeiv/emp/repo/EmployeesAllAttrViewHome.java
6051
package com.zeiv.emp.repo; // Generated 2014. 5. 4 오전 12:22:02 by Hibernate Tools 4.0.0 import java.util.List; import org.hibernate.HibernateException; import org.hibernate.LockMode; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.criterion.Example; import org.hibernate.criter...
apache-2.0
dorzey/assertj-core
src/test/java/org/assertj/core/api/bytearray/ByteArrayAssert_containsExactlyInAnyOrder_Test.java
1597
/** * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under ...
apache-2.0
stdlib-js/stdlib
lib/node_modules/@stdlib/repl/lib/is_scope.js
1098
/** * @license Apache-2.0 * * Copyright (c) 2019 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
mpi2/PhenotypeArchive
src/main/java/org/mousephenotype/www/testing/model/SearchImpcImageTable.java
2014
/******************************************************************************* * Copyright 2015 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 obtain a copy of the License at...
apache-2.0
ulaval/modul-components
src/components/plus/plus.sandbox.ts
1314
import Vue, { PluginObject } from 'vue'; import { Component } from 'vue-property-decorator'; import ButtonPlugin from '../button/button'; import { PLUS_NAME } from '../component-names'; import PlusPlugin from './plus'; import WithRender from './plus.sandbox.html'; @WithRender @Component export class MPlusSandbox exte...
apache-2.0
chenUT/spookystuff
core/src/test/scala/org/tribbloid/spookystuff/expression/TestExprView.scala
1516
package org.tribbloid.spookystuff.expression import org.tribbloid.spookystuff.SpookyEnvSuite import org.tribbloid.spookystuff.actions.Wget import org.tribbloid.spookystuff.entity.PageRow import org.tribbloid.spookystuff.expressions.NamedFunction1 /** * Created by peng on 12/3/14. */ class TestExprView extends Spook...
apache-2.0
StevenWard94/java-dev
csci-2903/Module10/WardCheckBoxes/src/WardCheckBoxes.java
6082
/** * Steven Ward * WardCheckBoxes.java | Check Boxes Project * * This file defines the WardCheckBoxes GUI class, which is described below. * * Due Date: November 6, 2016 * */ import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayo...
apache-2.0
ArvinDevel/incubator-pulsar
pulsar-client-cpp/tests/BinaryLookupServiceTest.cc
5275
/** * 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
luartmg/WMA
WMA/src/factorypack/Parser.java
54
package factorypack; public class Parser { }
apache-2.0
hdinsight/hdinsight-storm-examples
EventCountExample/EventCountHybridTopology/SqlDb.cs
2806
using Microsoft.SCP; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EventCountHybridTopology { public class SqlDb { private SqlConnection con = null; private SqlCommand comm = null; ...
apache-2.0
bigamasta/chess-challenge
src/actions/TileActions.js
160
/** * Created by BigaMasta on 3/5/16. */ import alt from '../alt'; export default alt.generateActions( 'create', 'highlightTilesAt', 'unhighlightTiles' );
apache-2.0
neo4j/neo4j-dotnet-driver
Neo4j.Driver/Neo4j.Driver/Internal/Messaging/RecordMessage.cs
1307
// Copyright (c) "Neo4j" // Neo4j Sweden AB [http://neo4j.com] // // This file is part of Neo4j. // // 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/licens...
apache-2.0
ViDA-NYU/ache
ache/src/test/java/achecrawler/link/frontier/selector/MultiLevelLinkSelectorTest.java
1277
package achecrawler.link.frontier.selector; import static java.util.Arrays.asList; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; import static org.junit.Assert.assertThat; import java.util.List; import org.junit.Test; import achecrawler.link.frontier.LinkRelevance...
apache-2.0
sriramsa/gosiege
state/clusterevents.go
253
// A list of cluster events package state // Holds a generic command. Used for sending across channels type ClusterEvent struct { Cmd interface{} } type AddNode struct { Concurrent, Delay, Host string } type RemoveNode struct { SessionId string }
apache-2.0
andreh7/rfwsutils
wsGraphVizPath.py
6897
#!/usr/bin/env python # rfwsutils - utilities for manipulating RooFit workspaces from the command line # # Copyright 2013-2015 University of California, San Diego # # 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 co...
apache-2.0
IAMTJW/Tomcat-8.5.20
tomcat-8.5.20/test/org/apache/tomcat/util/threads/TestLimitLatch.java
7830
/* * 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
aayaffe/SailingRaceCourseManager
app/src/main/java/com/aayaffe/sailingracecoursemanager/events/Event.java
2018
package com.aayaffe.sailingracecoursemanager.events; import com.aayaffe.sailingracecoursemanager.calclayer.DBObject; import com.google.firebase.database.Exclude; import java.util.HashMap; import java.util.List; import java.util.Random; import java.util.UUID; /** * Avi Marine Innovations - www.avimarine.in * * Cre...
apache-2.0
rali-udem/JSrealB
demos/UDregenerator/utils.js
2314
// useful auxiliary functions // add elements of list l2 to the end of l1 and return l1 // because I have problem remembering this trick taken from // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array/push function appendTo(l1,l2){ if (Array.isArray(l2)){ Array.prototyp...
apache-2.0
sejoker/nodeschool-challenges
functional-js/duckCount.js
219
/* globals module */ 'use strict'; module.exports = function duckCount(){ var args = [].slice.call(arguments); return args.filter(function(current){ return {}.hasOwnProperty.call(current, 'quack'); }).length; };
apache-2.0
avantassel/json-api-response
tests/Data/Post.php
709
<?php namespace Neomerx\JsonApi\Tests\Data; /** * Copyright 2015 info@neomerx.com (www.neomerx.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/...
apache-2.0
957651480/thinkphpsite
App/Modules/Admin/Model/GroupModel.class.php
326
<?php // 配置类型模型 class GroupModel extends CommonModel { protected $_validate = array( array('name','require','名称必须'), ); protected $_auto = array( array('status',1,self::MODEL_INSERT,'string'), array('create_time','time',self::MODEL_INSERT,'function'), ); }
apache-2.0
legend0702/zhq
zhq-core/src/test/java/cn/zhuhongqing/reflect/SetMapAdapter.java
2303
package cn.zhuhongqing.reflect; import java.util.AbstractSet; import java.util.Iterator; import java.util.Map; /** * Map adapter for a set provides an easy way to have a Set from various map * implementations. */ public abstract class SetMapAdapter<E> extends AbstractSet<E> { protected Map<E, Object> map; // D...
apache-2.0
Q115/Goalie_Android
app/src/main/java/com/github/q115/goalie_android/ui/main/MainActivityPagerAdapter.java
3459
package com.github.q115.goalie_android.ui.main; import android.content.Context; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.view.ViewGroup; import com.github.q115.goalie_android.R; import com.github.q115.goal...
apache-2.0
vsavkin/csw-catalog
test/unit/service/describe_record_handler_test.rb
887
require "test_helper" module Catalog::Service class DescribeRecordHandlerTest < ActiveSupport::TestCase include Catalog::Test::XmlTestUtil include Catalog::Test::HandlerTestUtil def setup @handler_clazz = DescribeRecordHandler @default_input = {:service => 'CSW', :version => '2.0.2'} end...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-health/src/main/java/com/amazonaws/services/health/model/transform/EventFilterMarshaller.java
5669
/* * 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
Palleiro/HCTControl
app/src/main/java/com/hctrom/romcontrol/prefs/MyListPreference.java
7814
package com.hctrom.romcontrol.prefs; import android.app.AlertDialog; import android.content.ContentResolver; import android.content.Context; import android.content.DialogInterface; import android.content.res.Resources; import android.content.res.TypedArray; import android.os.Bundle; import android.os.Parcel; import an...
apache-2.0
grozeille/Spring.Fluent
Spring.Fluent.Tests/IRepository.cs
855
#region License /* * Copyright © 2002-2005 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 * * Un...
apache-2.0
scholzj/barnabas
systemtest/src/main/java/io/strimzi/systemtest/utils/kubeUtils/controllers/StatefulSetUtils.java
13723
/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.systemtest.utils.kubeUtils.controllers; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.apps.StatefulSet; import io....
apache-2.0
sqyljw/web
case/phoneapp/js/move1.js
4096
window.onload=function(){ top1(); setPro(); setCity(document.getElementById("pro").value); setArea(); cityb(); cityc(); a(); b(); c(); joba(); jobb(); ja(); jb(); anniu(); } function top1(){ document.getElementById("top1").onclick=function(){ window.history.go(-1); } } var...
apache-2.0
glasperfan/thesis
bach_code/eval_sm.lua
3151
-- eval_sum.lua --[[ Experiment 2C: Softmax --]] -- Other libraries require 'nn' require 'hdf5' --- Neural network --- function make_model(max_index, output_size) -- Embedding sequence local embedding = nn.Sequential() embedding:add(nn.LookupTable(max_index, embedding_size)) embedding:add(nn.Sum(1)) -- Feed f...
apache-2.0
trasa/aws-sdk-java
aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/LimitExceededException.java
1110
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
apache-2.0
aelij/roslyn
src/Features/Core/Portable/GenerateMember/GenerateParameterizedMember/AbstractGenerateParameterizedMemberService.State.cs
4633
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeGeneration; using Microsoft.CodeAnalysis.Editing; u...
apache-2.0
chmyga/component-runtime
component-api/src/main/java/org/talend/sdk/component/api/service/http/ConfigurerOption.java
1061
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.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 appli...
apache-2.0
eric-haibin-lin/peloton
tests/executor/projection_test.cpp
7470
//===----------------------------------------------------------------------===// // // PelotonDB // // projection_test.cpp // // Identification: tests/executor/projection_test.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===----------------------------------------...
apache-2.0
OnPositive/aml
org.aml.typesystem/src/main/java/org/aml/typesystem/beans/PropertyViewImpl.java
5280
package org.aml.typesystem.beans; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; import org.aml.typesystem.AbstractType; import org.aml.typesystem.meta.TypeInformation; import ...
apache-2.0
JeffWangGithub/JeffBaseLibrary
src/com/meilishuo/baselibrary/widget/BaseHolder.java
808
package com.meilishuo.baselibrary.widget; import android.view.View; /** * BaseHolder中封装了ListView需要显示的数据和每一个item条目中的所有view * @author Jeff * * @param <T> */ public abstract class BaseHolder<T> { public T mData; private View view; public BaseHolder(){ view = initView(); //用户自行进行设置View view.set...
apache-2.0
jdgwartney/vsphere-ws
java/JAXWS/samples/com/vmware/vim25/DvsTrafficRule.java
5148
package com.vmware.vim25; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DvsTrafficRule complex type. * * <p>The following schema f...
apache-2.0
jecuendet/maven4openxava
dist/openxava/workspace/OpenXavaTest/gen-src-xava/org/openxava/test/model/IReceptionist.java
967
// File generated by OpenXava: Wed Sep 11 11:56:52 CEST 2013 // Archivo generado por OpenXava: Wed Sep 11 11:56:52 CEST 2013 // WARNING: NO EDIT // OJO: NO EDITAR // Component: Customer Java interface for aggregate/Interfaz java para Agregado: Receptionist package org.openxava.test.model; import java.math.*; impo...
apache-2.0
junkerm/specmate
bundles/specmate-migration-test/src/com/specmate/migration/test/severalattributesadded/testmodel/base/util/BaseAdapterFactory.java
7404
/** */ package com.specmate.migration.test.severalattributesadded.testmodel.base.util; import com.specmate.migration.test.severalattributesadded.testmodel.base.*; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl...
apache-2.0
statisticsnorway/java-vtl
java-vtl-script/src/test/java/no/ssb/vtl/script/expressions/logic/OrExpressionTest.java
2593
package no.ssb.vtl.script.expressions.logic; /* * ========================LICENSE_START================================= * Java VTL * %% * Copyright (C) 2016 - 2017 Hadrien Kohl * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
apache-2.0
yelllowme/wanglin
app/src/main/java/com/wanglinkeji/wanglin/activity/ChoosedPhoto_SmallActivity.java
26444
package com.wanglinkeji.wanglin.activity; import android.app.Activity; import android.content.ContentResolver; import android.content.Intent; import android.database.Cursor; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.os.Handler; impor...
apache-2.0
udoprog/heroic
aggregation/simple/src/main/java/com/spotify/heroic/aggregation/simple/CountUniqueInstance.java
1719
/* * Copyright (c) 2015 Spotify AB. * * 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,...
apache-2.0
qjafcunuas/jbromo
jbromo-webapp/jbromo-webapp-jsf/jbromo-webapp-jsf-sample/src/main/java/org/jbromo/webapp/jsf/sample/view/layer/table/rowclick/RowClickDataTableModel.java
2282
/*- * Copyright (C) 2013-2014 The JBromo Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
apache-2.0
BartoszJarocki/boilerpipe-android
src/main/java/mf/org/apache/wml/dom/WMLImgElementImpl.java
3267
/* * 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
capravictoriae/Space-Mission-Design-and-Operations-EE585x-MOOC-Python-
Unit2/P2.4.4_A.py
203
earth_mu = 3.986e14 earth_r = 6.378e6 # m speed = 7.76 * 1000 # m/s # V = sqrt(mu/r) => V^2 = mu/r => V^2/mu = 1/r # mu / V^2 = r dist = earth_mu / (speed**2) dist = dist - earth_r print(dist/1000)
apache-2.0
lefou/asciidoctorj
asciidoctorj-core/src/main/java/org/asciidoctor/extension/PreprocessorReader.java
410
package org.asciidoctor.extension; import java.util.Map; import org.asciidoctor.ast.Document; public interface PreprocessorReader extends Reader { void push_include(String data, String file, String path, int lineNumber, Map<String, Object> attributes); /** * * @return * @deprecated Please us...
apache-2.0
googlevr/seurat
seurat/tiler/selection/cost_calculator_test.cc
2532
/* Copyright 2017 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
apache-2.0
fuitsec/fuitsec
src/app/app-projectlist.js
1542
fuitsec.app.projectlist = { vue: null, setSort: function (key) { var self = this; console.log('listSetSort', key, '|', self.vue.activeProject.state.listsortkey, self.vue.activeProject.state.listsortdir); if (self.vue.activeProject.state.listsortkey === key) { self.vue.act...
apache-2.0
callistaenterprise/blog-non-blocking-rest-service-with-spring-mvc
spring-mvc-asynch/src/main/java/se/callista/springmvc/asynch/pattern/routingslip/nonblocking/statemachine/AsynchProcessor.java
1475
package se.callista.springmvc.asynch.pattern.routingslip.nonblocking.statemachine; import com.ning.http.client.AsyncHttpClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.s...
apache-2.0
ibm-contribs/kubernetes
pkg/registry/core/podtemplate/strategy.go
3416
/* Copyright 2014 The Kubernetes 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, ...
apache-2.0
material-components/material-components-android
catalog/java/io/material/catalog/topappbar/TopAppBarScrollingDemoFragment.java
2589
/* * Copyright 2017 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
rostam/gradoop
gradoop-flink/src/main/java/org/gradoop/flink/model/impl/functions/graphcontainment/InAnyGraph.java
1526
/* * Copyright © 2014 - 2019 Leipzig University (Database Research 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 * * Unles...
apache-2.0
jeltz/rust-debian-package
src/librustdoc/sort_item_type_pass.rs
2229
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
apache-2.0
alex-zuy/boilerplate-generator
processor/src/test/java/com/github/alex/zuy/boilerplate/collector/support/TypeElementsSetMatcher.java
3328
package com.github.alex.zuy.boilerplate.collector.support; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import java.util.stream.Collectors; import javax.lang.model.element.TypeElement; import org.hamcrest.De...
apache-2.0
vobruba-martin/closure-compiler
src/com/google/javascript/jscomp/disambiguate/FlatType.java
5558
/* * Copyright 2008 The Closure Compiler 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...
apache-2.0
SemanticCloud/SemanticCloud
SemanticEngineService/src/main/java/org/semanticcloud/semanticEngine/rest/ClassResource.java
2234
package org.semanticcloud.semanticEngine.rest; import java.util.List; import org.semanticcloud.semanticEngine.controll.OntologyService; import org.semanticcloud.semanticEngine.controll.OperatorService; import org.semanticcloud.semanticEngine.model.ontology.OwlClass; import org.semanticcloud.semanticEngine.model.ontol...
apache-2.0
oldinaction/smjava
project-star/Shop/src/com/lyq/util/hibernate/HibernateUtils.java
2211
package com.lyq.util.hibernate; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; /** * Hibernate工具类,用于获取Session * @author Li Yongqiang */ public class HibernateUtils { // 声明SessionFactory对象 private stati...
apache-2.0
mashin-io/rich-spark
streaming/src/main/scala/org/apache/spark/streaming/rdd/WriteAheadLogBackedBlockRDD.scala
9265
/* * 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
mapzen/android
mapzen-places-api/src/test/java/com/mapzen/places/api/LatLngTest.java
936
package com.mapzen.places.api; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class LatLngTest { LatLng latLng = new LatLng(40, 70); @Test public void shouldSetLat() { assertThat(latLng.getLatitude()).isEqualTo(40); } @Test public void shouldSetLng() { asse...
apache-2.0
emmartins/wildfly-server-migration
servers/wildfly11.0/src/main/java/org/jboss/migration/wfly11/task/subsystem/coremanagement/AddCoreManagementSubsystem.java
2142
/* * Copyright 2017 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
networknt/light-java-example
eventuate/account-management/common/src/main/java/com/networknt/eventuate/account/common/event/account/AccountCreditedEvent.java
312
package com.networknt.eventuate.account.common.event.account; import java.math.BigDecimal; public class AccountCreditedEvent extends AccountChangedEvent { private AccountCreditedEvent() { } public AccountCreditedEvent(BigDecimal amount, String transactionId) { super(amount, transactionId); } }
apache-2.0
jbeecham/ovirt-engine
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/SetVmStatusVDSCommand.java
2171
package org.ovirt.engine.core.vdsbroker; import java.util.List; import org.ovirt.engine.core.common.businessentities.VM; import org.ovirt.engine.core.common.businessentities.VMStatus; import org.ovirt.engine.core.common.businessentities.VmDynamic; import org.ovirt.engine.core.common.businessentities.VmNetworkInterfac...
apache-2.0
williamb80/EMS
EMS.WebAPI/Global.asax.cs
368
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Routing; namespace EMS.WebAPI { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { GlobalConfiguration.Config...
apache-2.0
hmrc/iht-frontend
app/iht/utils/RegistrationKickOutHelper.scala
4748
/* * Copyright 2022 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
GrowSocial/pilot
growsocial/client/views/people/people.js
5617
// TODO add a button on the map "back to list" Template.people.events({ 'click .showMapButton': function(event, instance) { event.preventDefault(); // scroll window to map var sel = $('#peopleMap')[0]; if (sel) sel.scrollIntoView(true); if (this.person && this.person.latlng) { // jump to ...
apache-2.0
david-romero/Pachanga
src/main/java/com/p/model/AccountAuth.java
571
package com.p.model; import java.io.Serializable; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class AccountAuth implements Serializable { private static final long serialVersionUID = 5733967566904320005L; private List<Account> accounts; public AccountAuth(List...
apache-2.0
samdauwe/BabylonCpp
src/BabylonCpp/src/physics/helper/physics_vortex_event.cpp
5011
#include <babylon/physics/helper/physics_vortex_event.h> #include <babylon/culling/ray.h> #include <babylon/engines/scene.h> #include <babylon/meshes/builders/cylinder_builder.h> #include <babylon/meshes/builders/mesh_builder_options.h> #include <babylon/meshes/mesh.h> #include <babylon/physics/helper/physics_event_da...
apache-2.0
DavidNorman/tensorflow
tensorflow/compiler/tf2xla/xla_compiler_test.cc
78724
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
apache-2.0
Guidewire/teamcity_exporter
collector.go
653
package main import ( "time" "github.com/prometheus/client_golang/prometheus" ) func NewCollector() *Collector { col := &Collector{ startupTime: prometheus.NewDesc(namespace+"_collector_startup_time", "Collector startup time", nil, nil), } metricsStorage.Set(getHash(col.startupTime.String()), prometheus.MustN...
apache-2.0
mcn42/WeatherServer
src/main/java/org/mnilsen/weather/aws/AwsIotClient.java
8848
/* * 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 org.mnilsen.weather.aws; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials...
apache-2.0
firzhan/custom_message_processor
custom_code/src/main/java/org/apache/synapse/message/custom/processor/impl/CustomForwardingService.java
15470
package org.apache.synapse.message.custom.processor.impl; import org.apache.axiom.om.OMElement; import org.apache.axiom.soap.SOAPEnvelope; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.synapse.MessageContext; import org.apache.synapse.SynapseConstants; import or...
apache-2.0
ogrebgr/forge-server-skeleton-php
hidden/inc/modules/tangra_cms/forms/_ci/ci_attr_type/ci_attr_type_form_ajax_ctrl.class.php
1051
<?php // $Id$ require_once(TANGRA_MAIN_DIR.'web_site/web_page/just_headers_view.class.php'); require_once(DIR_INC.'modules/admin_panel/site_admin_ajax_form_ctrl_with_object_ua.class.php'); require_once(DIR_INC.'modules/tangra_cms/forms/_ci/ci_attr_type/ci_attr_type_form_ctrl.class.php'); class CI_Attr_Type_Form_A...
apache-2.0
jexp/idea2
plugins/ui-designer/src/com/intellij/uiDesigner/propertyInspector/properties/ClassToBindProperty.java
7075
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
stdlib-js/stdlib
lib/node_modules/@stdlib/process/read-stdin/docs/types/index.d.ts
2408
/* * @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 ap...
apache-2.0
bernhardhuber/kisoonlineapp
kisoonlineapp-csv/src/main/java/org/kisoonlineapp/kisoonlineapp/csv/ArchivKisoVeranstaltungOutputTemplate.java
3328
/* * 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 org.kisoonlineapp.kisoonlineapp.csv; import java.io.PrintWriter; import org.apache.commons.csv.CSVRecord; /** * * @author b...
apache-2.0
StefH/WireMock.Net
src/WireMock.Net/RegularExpressions/RegexExtended.cs
3297
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using Stef.Validation; namespace WireMock.RegularExpressions { /// <summary> /// Extension to the <see cref="Regex"/> object, adding support for GUID tokens for matching on. /// </summary> #if !NETSTANDARD1_3 [Seriali...
apache-2.0
vivantech/kc_fixes
src/main/java/org/kuali/kra/award/home/AwardService.java
3209
/* * 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
epam/DLab
services/self-service/src/main/resources/webapp/src/app/core/services/managementEnvironments.service.ts
2080
/*************************************************************************** Copyright (c) 2016, EPAM SYSTEMS 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...
apache-2.0
cmu-db/dbms-library
dbdb/core/forms.py
9094
# stdlib imports # django imports from django import forms from django.conf import settings from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.forms import widgets from django.forms.fields import MultipleChoiceField from django.forms.widgets import Textarea # t...
apache-2.0
shs96c/buck
src/com/facebook/buck/apple/toolchain/impl/AppleCxxPlatforms.java
24975
/* * Copyright 2014-present Facebook, 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
cheerx/qingstor-sdk-scala
src/test/scala/com/qingstor/sdk/util/QSRequestUtilTest.scala
2170
package com.qingstor.sdk.util import java.io.File import akka.http.scaladsl.model.ContentTypes import com.qingstor.sdk.annotation.ParamAnnotation import com.qingstor.sdk.util.QSRequestUtilTest.{TestGetRequestParam, TestGetResponseParams} import org.scalatest.FunSuite class QSRequestUtilTest extends FunSuite{ test(...
apache-2.0
sacloud/libsacloud
v2/helper/service/enhanceddb/delete_request.go
930
// Copyright 2016-2022 The Libsacloud 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...
apache-2.0
ChristopherMacGown/pynpoint
pynpoint/providers/darwin/uptime.py
1457
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2011 Christopher MacGown. 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/LIC...
apache-2.0
111pontes/ydk-py
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_isis_act.py
23584
""" Cisco_IOS_XR_isis_act This module contains a collection of YANG definitions for Cisco IOS\-XR ISIS action package configuration. Copyright (c) 2016 by Cisco Systems, Inc. All rights reserved. """ import re import collections from enum import Enum from ydk.types import Empty, YList, YLeafList, DELETE, Decima...
apache-2.0
towavephone/MemoryCleaner
app/src/main/java/edu/wkd/towave/memorycleaner/mvp/presenters/impl/fragment/SettingPresenter.java
4362
package edu.wkd.towave.memorycleaner.mvp.presenters.impl.fragment; import android.content.Context; import android.os.Bundle; import android.preference.Preference; import android.support.annotation.StringRes; import android.text.TextUtils; import edu.wkd.towave.memorycleaner.R; import edu.wkd.towave.memoryclean...
apache-2.0
yu757371316/MySQL
user_manager/backend/neo-usermgr-mybatis-dao/src/test/java/com/neo/usermgr/mybatis/service/UnionQuerySqlServiceTest.java
29848
/** * File Name : UnionQuerySqlServiceTest * Creator : 20160701688 * Created Date : 2017/04/11 * Comment : */ package com.neo.usermgr.mybatis.service; import com.neo.usermgr.common.def.AuthorityDef; import com.neo.usermgr.common.def.UmUserDef; import com.neo.usermgr.common.model.*; import com.neo.use...
apache-2.0
rafael/kubernetes
pkg/kubelet/config/config.go
9215
/* Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
apache-2.0
lsimone/ariatemplates
test/aria/widgets/WidgetsTestSuite.js
2946
/* * Copyright 2012 Amadeus s.a.s. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
apache-2.0
ray-project/ray
python/ray/util/client/server/server_pickler.py
4862
"""Implements the client side of the client/server pickling protocol. These picklers are aware of the server internals and can find the references held for the client within the server. More discussion about the client/server pickling protocol can be found in: ray/util/client/client_pickler.py ServerPickler dumps...
apache-2.0
olikbox/java_training_course
addressbook-web-tests/src/test/java/ru/stqa/ptf/addressbook/appmanger/GroupHelper.java
2557
package ru.stqa.ptf.addressbook.appmanger; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ru.stqa.ptf.addressbook.model.GroupData; import java.util.ArrayList; import java.util.List; import static ru.stqa.ptf.addressbook.tests.TestBase.app; /** * C...
apache-2.0
otherio/threadable.com
spec/controllers/admin/organizations_controller_spec.rb
5450
require 'spec_helper' describe Admin::OrganizationsController, :type => :controller do when_not_signed_in do describe 'GET :index' do it 'should render a 404' do get :index expect(response).to redirect_to sign_in_url(r: admin_organizations_url) end end describe 'GET :new' d...
apache-2.0
ftomassetti/turin-programming-language
documentation/conf.py
9385
# -*- coding: utf-8 -*- # # Turin Programming Language documentation build configuration file, created by # sphinx-quickstart on Sat Oct 3 12:03:31 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autoge...
apache-2.0
dhakehurst/net.akehurst.application.framework.examples
net.akehurst.app.flightSystem/application/desktop.jfx/src/main/java/net/akehurst/example/flightSimulator/application/FlightSystemMain.java
1394
/* * Copyright (c) 2015 D. David H. Akehurst * * 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
nimble-platform/frontend-service
src/app/catalogue/ubl-model-view/catalogue/catalogue-view.component.ts
30068
/* * Copyright 2020 * SRDC - Software Research & Development Consultancy; Ankara; Turkey In collaboration with * SRFG - Salzburg Research Forschungsgesellschaft mbH; Salzburg; Austria Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lice...
apache-2.0
maheshraju-Huawei/actn
apps/pcc/app/src/main/java/org/onosproject/pcc/pccmgr/ctl/PcepPeerConfig.java
2114
package org.onosproject.pcc.pccmgr.ctl; import org.onlab.packet.Ip4Address; import org.onosproject.pcc.pccmgr.api.PcepConnectPeer; import org.onosproject.pcc.pccmgr.api.PcepPeerCfg; /** * Created by root1 on 3/6/16. */ public class PcepPeerConfig implements PcepPeerCfg { private int asNumber; private short ...
apache-2.0
virtualdataset/metagen-java
virtdata-lib-basics/src/main/java/io/virtdata/libbasics/shared/nondeterministic/ThreadNumToInteger.java
2127
/* * * Copyright 2015 Jonathan Shook * * 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
skoba/openehr-ruby
spec/lib/openehr/rm/common/generic/revision_history_item_spec.rb
1336
require File.dirname(__FILE__) + '/../../../../../spec_helper' include OpenEHR::RM::Common::Generic include OpenEHR::RM::Support::Identification describe RevisionHistoryItem do before(:each)do version_id = double(ObjectVersionID, :objectid => 'RIO') audits = double(Array, :size => 30, :empty? => false) @...
apache-2.0
nsicontest/nsi-ri
src/net/geant/nsicontest/reservation/psm/Provisioned.java
901
/** * */ package net.geant.nsicontest.reservation.psm; import javax.xml.ws.Holder; import org.ogf.schemas.nsi._2013._12.connection.types.ProvisionStateEnumType; import org.ogf.schemas.nsi._2013._12.framework.headers.CommonHeaderType; /** * A steady state for the provision state machine in which data plane resour...
apache-2.0