code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
gregodadone/spring-compraventa
src/main/java/org/utn/dacs2017/compraventa/vendedor/VendedorController.java
Java
apache-2.0
1,812
package com.afollestad.breadcrumb; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.os.Build; import android.support.annotation.NonNull; import android.support.v4.view.ViewCompat; i...
jbm714060/Github
breadcrumb/src/main/java/com/afollestad/breadcrumb/LinearBreadcrumb.java
Java
apache-2.0
9,519
/** * 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 ...
mdhgriffiths/fluxthis
lib/implore.es6.js
JavaScript
apache-2.0
4,808
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
stephraleigh/flowable-engine
modules/flowable-engine/src/main/java/org/flowable/engine/impl/cmd/GetRenderedTaskFormCmd.java
Java
apache-2.0
2,774
package com.stdnull.v2api.model; import android.os.Bundle; import android.os.Parcelable; import java.util.ArrayList; import java.util.List; /** * Created by chen on 2017/8/20. */ public class V2MainFragModel { private static final String KEY_V2EXBEAN = "KEY_V2EXBEAN"; private List<V2ExBean> mContentListMo...
stdnull/RunMap
v2api/src/main/java/com/stdnull/v2api/model/V2MainFragModel.java
Java
apache-2.0
1,194
/* * Copyright 2016 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...
ariatemplates/at-diff
test/checks/compareWithPreviousOutputs.check.js
JavaScript
apache-2.0
1,985
/* * Solo - A small and beautiful blogging system written in Java. * Copyright (c) 2010-present, b3log.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the ...
b3log/b3log-solo
src/main/java/org/b3log/solo/model/Link.java
Java
apache-2.0
1,646
/** * 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...
logzio/camel
camel-core/src/test/java/org/apache/camel/management/ManagedCamelContextTest.java
Java
apache-2.0
12,715
/* 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 the ...
janl/jscouch
jscouch.documents.js
JavaScript
apache-2.0
3,006
/** --| ADAPTIVE RUNTIME PLATFORM |---------------------------------------------------------------------------------------- (C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
AdaptiveMe/adaptive-arp-windows
adaptive-arp-lib/adaptive-arp-lib/Sources/Adaptive.Arp.Api/INetworkStatusListenerError.cs
C#
apache-2.0
1,523
import {ShopOrderDetail} from './ShopOrderDetail'; export class ShopOrder { order_id: string; user_id: number; username: string; is_vip: number; payment: number; order_no: number; shopway: number; status: number; employee_id: string; buytime: Date; orderdealtime: Date; phone: string; address:...
TZClub/OMIPlatform
admin-web/src/app/entity/shop/ShopOrder.ts
TypeScript
apache-2.0
412
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
jprante/elasticsearch-server
server/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggregationBuilder.java
Java
apache-2.0
4,154
package jenkins.plugins.hygieia; public class DefaultHygieiaServiceStub extends DefaultHygieiaService { // private HttpClientStub httpClientStub; public DefaultHygieiaServiceStub(String host, String token, String name) { super(host, token, name); } // @Override // public HttpClientStub getH...
tabladrum/hygieia-jenkins-plugin
src/test/java/jenkins/plugins/hygieia/DefaultHygieiaServiceStub.java
Java
apache-2.0
499
package cn.aezo.demo.rabbitmq.c05_model_topic; import cn.aezo.demo.rabbitmq.util.RabbitmqU; import com.rabbitmq.client.AMQP; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.DefaultConsumer; import com.rabbitmq.client.Envelope; import java.io.IOException; /** * 测...
oldinaction/smjava
rabbitmq/src/main/java/cn/aezo/demo/rabbitmq/c05_model_topic/Consumer.java
Java
apache-2.0
2,828
<?php include("config.php"); $content = file_get_contents($data_munched); $data = json_decode($content, true); function sort_by_order ($a, $b) { return $b['amount']['total'] - $a['amount']['total']; } usort($data["exchanges"], 'sort_by_order'); print_r($data); ?>
bananenwilly/alix
walls/data_test.php
PHP
apache-2.0
271
class GetSharedLinkAccessRightsResult attr_accessor :access_rights # :internal => :external def self.attribute_map { :access_rights => :accessRights } end def initialize(attributes = {}) # Morph attribute keys into undescored rubyish style if attributes.to_s != "" if GetSharedLinkA...
liosha2007/groupdocs-ruby
groupdocs/models/getsharedlinkaccessrightsresult.rb
Ruby
apache-2.0
743
///<reference path="Math.ts"/> class Entity { get X(): number { return this.Position.x; } get Y(): number { return this.Position.y; } get Z(): number { return this.Position.z; } constructor(public Position: Vec3) { } }
piersh/GLander
src/Entity.ts
TypeScript
apache-2.0
233
#pragma once #include "indexer/feature_decl.hpp" #include "geometry/point2d.hpp" #include "std/initializer_list.hpp" #include "std/limits.hpp" #include "std/string.hpp" #include "std/vector.hpp" #include "3party/osrm/osrm-backend/typedefs.h" namespace routing { using TNodeId = uint32_t; using TEdgeWeight = double;...
Zverik/omim
routing/turns.hpp
C++
apache-2.0
7,503
define(function (require) { var SymbolDraw = require('../helper/SymbolDraw'); var LargeSymbolDraw = require('../helper/LargeSymbolDraw'); require('../../echarts').extendChartView({ type: 'scatter', init: function () { this._normalSymbolDraw = new SymbolDraw(); ...
aholake/hiringviet
src/main/webapp/resources/vendors/echarts/src/chart/scatter/ScatterView.js
JavaScript
apache-2.0
1,369
/** * @author fanguozhu */ $(function() { var tab = new TabPanel("tab",true); var f_tree = new Fieldset("f_tree","公司列表",{ state: Fieldset.OPEN_STATE, topdown: false }); var mytree = new PorTreeT("tree", "-1", "手机公司",{isDefaultClick:0} ); var dw = new DataWrapper(); dw.service("PRtree"); ...
stserp/erp1
source/web/por2/demo/Demo/TreeTabDemo.js
JavaScript
apache-2.0
1,666
/* * Core Utils - Common Utilities. * Copyright 2015-2016 GRyCAP (Universitat Politecnica de Valencia) * * 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/...
grycap/coreutils
coreutils-common/src/main/java/es/upv/grycap/coreutils/common/CoreutilsLimits.java
Java
apache-2.0
1,687
/* * Copyright (c) 2016 Ni YueMing<niyueming@163.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 applicable law ...
niyueming/NApply
library/src/main/java/net/nym/napply/library/cookie/store/HasCookieStore.java
Java
apache-2.0
754
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
googleapis/java-compute
google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRoutesCallableFactory.java
Java
apache-2.0
4,575
/* Copyright 2013 Semantic Discovery, Inc. (www.semanticdiscovery.com) This file is part of the Semantic Discovery Toolkit. The Semantic Discovery Toolkit is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free So...
KoehlerSB747/sd-tools
src/main/java/org/sd/token/TokenizerNormalizedString.java
Java
apache-2.0
22,049
package lodVader.spring.REST.models.degree; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import org.junit.Test; import com.mongodb.BasicDBList; import com.mongodb.BasicDBObject; import com.mongodb.DBCollection; import com.m...
AKSW/LODVader
src/main/java/lodVader/spring/REST/models/degree/IndegreeDatasetModel.java
Java
apache-2.0
5,358
package org.minimalj.example.petclinic.frontend; import org.minimalj.backend.Backend; import org.minimalj.example.petclinic.model.Vet; import org.minimalj.frontend.Frontend; import org.minimalj.frontend.editor.Editor.NewObjectEditor; import org.minimalj.frontend.form.Form; public class AddVetEditor extends NewObjectE...
BrunoEberhard/minimal-j
example/007_PetClinic/src/org/minimalj/example/petclinic/frontend/AddVetEditor.java
Java
apache-2.0
710
# -*- coding: utf-8 -*- # 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...
internap/arsenal
releasenotes/source/conf.py
Python
apache-2.0
8,940
/* * Copyright 2019 Frederic Thevenet * * 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...
fthevenet/binjr
binjr-core/src/main/java/eu/binjr/common/javafx/controls/SnapshotUtils.java
Java
apache-2.0
1,413
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Citrix 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/L...
usc-isi/extra-specs
nova/tests/test_xenapi.py
Python
apache-2.0
83,206
/** * Copyright (C) 2012 Ness Computing, 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 ...
NessComputing/components-ness-jersey
jersey/src/main/java/com/nesscomputing/jersey/types/DateParam.java
Java
apache-2.0
2,189
module.exports = unbuild unbuild.usage = "npm unbuild <folder>\n(this is plumbing)" var readJson = require("read-package-json") , rm = require("./utils/gently-rm.js") , gentlyRm = require("./utils/gently-rm.js") , npm = require("./npm.js") , path = require("path") , fs = require("graceful-fs") , lifecycle ...
fabm/BabyHelp
node_modules/npm/lib/unbuild.js
JavaScript
apache-2.0
3,505
package hu.akarnokd.rxjava; import java.util.concurrent.TimeUnit; import rx.*; import rx.plugins.RxJavaHooks; import rx.schedulers.Schedulers; public class TrackSubscriber1 { @SuppressWarnings("unchecked") public static void main(String[] args) throws Exception { RxJavaHooks.setOnObservableStart((observ...
akarnokd/akarnokd-misc
src/main/java/hu/akarnokd/rxjava/TrackSubscriber1.java
Java
apache-2.0
1,774
package tk.zielony.carbonsamples.feature; import android.app.Activity; import android.os.Bundle; import tk.zielony.carbonsamples.R; /** * Created by Marcin on 2016-03-13. */ public class TextMarkerActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCre...
sevoan/Carbon
samples/src/main/java/tk/zielony/carbonsamples/feature/TextMarkerActivity.java
Java
apache-2.0
408
class Stage < ActiveRecord::Base self.primary_key = 'reference' include Taggable end
uken/penman
spec/dummy/app/models/stage.rb
Ruby
apache-2.0
90
// Copyright (c) Microsoft Corporation // // 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 // // THIS CODE IS PROVIDED O...
cityscapesc/specobs
main/external/dev/Server/MS.Storage.Table.Azure/DataAccessLayer/UserManagementTableOperations.cs
C#
apache-2.0
14,425
/* */ package com.hundsun.network.gates.houchao.biz.services.pojo; /* */ /* */ import org.springframework.context.annotation.Scope; /* */ import org.springframework.stereotype.Service; /* */ /* */ @Service("outFundTrans") /* */ @Scope("prototype") /* */ public class OutFundTrans extends...
hnccfr/ccfrweb
fundcore/src/com/hundsun/network/gates/houchao/biz/services/pojo/OutFundTrans.java
Java
apache-2.0
1,022
import type { IProviderSettings } from '@spinnaker/core'; import { SETTINGS } from '@spinnaker/core'; export interface IAppengineProviderSettings extends IProviderSettings { defaults: { account?: string; }; } export const AppengineProviderSettings: IAppengineProviderSettings = (SETTINGS.providers .appengine...
spinnaker/deck
packages/appengine/src/appengine.settings.ts
TypeScript
apache-2.0
491
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace ExemploEFCrud { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
carloscds/AspNetCoreOracle
ExemploEFCrud/ExemploEFCrud/Global.asax.cs
C#
apache-2.0
574
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
spring-projects/spring-framework
spring-web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java
Java
apache-2.0
7,350
/* * Copyright 2000-2013 JetBrains s.r.o. * Copyright 2014-2015 AS3Boyan * Copyright 2014-2014 Elias Ku * * 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/lice...
yanhick/intellij-haxe-nightly-builds
gen/com/intellij/plugins/haxe/lang/psi/impl/HaxeMultiplicativeExpressionImpl.java
Java
apache-2.0
2,047
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import re ...
cevaris/pants
contrib/go/src/python/pants/contrib/go/tasks/go_thrift_gen.py
Python
apache-2.0
5,677
var gplay = require('google-play-scraper'); var fs = require('fs') var Promise = require('promise'); var myArgs = process.argv.slice(2); var passed_appid = myArgs[0]; var passed_appcount = myArgs[1]; console.log(passed_appid); var read = Promise.denodeify(fs.readFile); var write = Promise.denodeify(fs.writeFile); var d...
iresium/apprater
scraper.js
JavaScript
apache-2.0
764
// Models app.SearchModel = Backbone.Model.extend({ idAttribute: "session_token", urlRoot: function() { var u = '/search/' + this.id; return u; } }); // Collections app.SearchCollection = Backbone.Collection.extend({ model: app.SearchModel, url: function()...
GOPINATH-GS4/stock
public/lib/cards.js
JavaScript
apache-2.0
1,119
package com.yuzhou.viewer.service; import android.content.Context; import android.os.AsyncTask; import android.util.Log; import android.widget.Toast; import com.google.common.eventbus.EventBus; import com.loopj.android.http.JsonHttpResponseHandler; import com.loopj.android.http.SyncHttpClient; import com.yuzhou.viewe...
yuzhou2/android_02_grid_image_search
app/src/main/java/com/yuzhou/viewer/service/GoogleApiTask.java
Java
apache-2.0
3,730
<?php /** * Smarty Internal Plugin Compile Insert * * Compiles the {insert} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Insert extends Smarty_In...
slayerhover/yaf-cms-backoffice
library/Smarty/sysplugins/smarty_internal_compile_insert.php
PHP
apache-2.0
4,415
package com.rockhoppertech.music.fx.cmn; /* * #%L * rockymusic-fx * %% * Copyright (C) 1996 - 2013 Rockhopper Technologies * %% * 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 * * ...
genedelisa/rockymusic
rockymusic-fx/src/main/java/com/rockhoppertech/music/fx/cmn/GrandStaffApp.java
Java
apache-2.0
3,230
function htmlEncode(value){ return $('<div/>').text(value).html(); } var app = angular.module("oasassets",[]).controller("snippetsController",function($scope){ $scope.snippet = function(item){ var elem = $("#"+item); var contents = elem.html().trim(); elem.html(htmlEncode(contents)); ...
bizoru/assets-oas
js/app.js
JavaScript
apache-2.0
510
package org.tuxdevelop.spring.batch.lightmin.server.cluster.configuration; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.NestedConfigurationProperty; @Data @ConfigurationProperties(prefix = "spring.batch.lightmin.serv...
tuxdevelop/spring-batch-lightmin
spring-batch-lightmin-server/spring-batch-lightmin-server-cluster/spring-batch-lightmin-server-cluster-infinispan/src/main/java/org/tuxdevelop/spring/batch/lightmin/server/cluster/configuration/InfinispanServerClusterConfigurationProperties.java
Java
apache-2.0
765
<?php $this->Nm_lang_conf_region = array(); $this->Nm_lang_conf_region['en_us;en_us'] = "English (United States)"; $this->Nm_lang_conf_region['es;es_es'] = "Spanish (Spain)"; $this->Nm_lang_conf_region['pt_br;pt_br'] = "Portuguese (Brazil)"; ksort($this->Nm_lang_conf_region); ?>
oprohonnyi/php_trn
5_dev_tools/scriptcase/PHPTrn/_lib/lang/lang_config_region.php
PHP
apache-2.0
289
module SchemaEvolutionManager # Container for common args, mainly to have stricter validation on # inputs. Tried to use GetoptLong but could not write solid unit # tests around it... so we have our own internal simple implementation. class Args if !defined?(FLAGS_WITH_ARGUMENTS) FLAGS_WITH_ARGUMENTS...
mbryzek/schema-evolution-manager
lib/schema-evolution-manager/args.rb
Ruby
apache-2.0
5,648
<?php namespace Ajax\semantic\components\validation; use Ajax\service\AjaxCall; use Ajax\JsUtils; /** * @author jc * @version 1.001 * Generates a JSON Rule for the validation of a field */ class Rule implements \JsonSerializable{ /** * @var string */ private $type; /** * @var string */ private $prompt;...
phpMv/phpMv-UI
Ajax/semantic/components/validation/Rule.php
PHP
apache-2.0
4,448
import torch from deluca.lung.core import Controller, LungEnv class PIDCorrection(Controller): def __init__(self, base_controller: Controller, sim: LungEnv, pid_K=[0.0, 0.0], decay=0.1, **kwargs): self.base_controller = base_controller self.sim = sim self.I = 0.0 self.K = pid_K ...
google/deluca-lung
deluca/lung/experimental/controllers/_pid_correction.py
Python
apache-2.0
874
/* ==================================================================== Copyright (C) 2004-2008 fyiReporting Software, LLC This file is part of the fyiReporting RDL project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ...
gregberns/ZipRdlProjectDev410
src/RdlDesign/DialogValidValues.cs
C#
apache-2.0
7,188
package com.huawei.esdk.fusionmanager.local.model.system; import com.huawei.esdk.fusionmanager.local.model.FMSDKResponse; /** * 查询计划任务详情返回信息。 * <p> * @since eSDK Cloud V100R003C30 */ public class QueryScheduleTaskDetailResp extends FMSDKResponse { /** * 计划任务。 */ private ScheduleTask scheduleTask...
eSDK/esdk_cloud_fm_r3_native_java
source/FM/V1R5/esdk_fm_neadp_1.5_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/model/system/QueryScheduleTaskDetailResp.java
Java
apache-2.0
571
//Copyright (c) 2014 by Disy Informationssysteme GmbH package net.disy.eenvplus.tfes.modules.sparql.expression; import com.hp.hpl.jena.sparql.expr.E_LogicalAnd; import com.hp.hpl.jena.sparql.expr.E_LogicalOr; import com.hp.hpl.jena.sparql.expr.Expr; import com.hp.hpl.jena.sparql.syntax.ElementFilter; // NOT_PUBLISHED...
eENVplus/tf-exploitation-server
TF_Exploitation_Server_modules/src/main/java/net/disy/eenvplus/tfes/modules/sparql/expression/SparqlExpressionBuilder.java
Java
apache-2.0
1,223
(function (chaiJquery) { // Module systems magic dance. if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { // NodeJS module.exports = chaiJquery; } else if (typeof define === "function" && define.amd) { // AMD define(function () { return chaiJqu...
reaktor/jquery.spinner
test/chai-jquery-1.0.0.js
JavaScript
apache-2.0
6,187
package util import "errors" var ( // ErrNotFound Import or Version was not found. ErrNotFound = errors.New("Requested resource was not found") // ErrAlreadyExists Import or Version already exists and cannot be overwritten. ErrAlreadyExists = errors.New("Resource already exists and cannot be overritten") // Er...
deejross/dep-registry
util/errors.go
GO
apache-2.0
441
// Copyright (c) 2015 Illyriad Games Ltd. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.md in the project root for license information. using System; using System.Numerics; namespace IllyriadGames.ByteArrayExtensions { public static class VectorizedCopyExtension { ...
IllyriadGames/ByteArrayExtensions
src/IllyriadGames.ByteArrayExtensions/VectorizedCopyExtension.cs
C#
apache-2.0
7,465
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; #if USE_FASTQUANT namespace FastQuant.Tests #else namespace SmartQuant.Tests #endif { public class TickSeriesTest { [Fact] public void TestGetIndex() { var ts = new...
fastquant/fastquant.dll
test/FastQuant.Tests.Shared/TickSeriesTest.cs
C#
apache-2.0
2,582
package com.sectong.util; import org.apache.log4j.Logger; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.URL; import java.net.URLConnection; public class HttpUtil { private static Logger logger = Logger.getLogger(Ht...
xaioyi/yidongyiljwj
src/main/java/com/sectong/util/HttpUtil.java
Java
apache-2.0
1,988
'use strict'; viewModel.MonitoringAlarm = new Object(); var ma = viewModel.MonitoringAlarm; ma.minDatetemp = new Date(); ma.maxDatetemp = new Date(); ma.minDateRet = new Date(); ma.maxDateRet = new Date(); vm.currentMenu('Alarm Data'); vm.currentTitle('Alarm Data'); vm.isShowDataAvailability(false); vm.breadcrumb(...
eaciit/windapp
web/assets/core/js/page-monitoring/monitoring-alarm.js
JavaScript
apache-2.0
14,310
/* * Copyright 2015 Matthew Timmermans * * 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 ...
6thsolution/ApexNLP
dfalex/src/main/java/com/nobigsoftware/dfalex/DfaFromNfa.java
Java
apache-2.0
9,517
package com.emc.ecs.servicebroker.repository; import com.emc.ecs.servicebroker.exception.EcsManagementClientException; import com.emc.ecs.servicebroker.service.s3.S3Service; import com.emc.ecs.servicebroker.model.Constants; import com.emc.object.s3.bean.GetObjectResult; import com.emc.object.s3.bean.ListObjectsResult;...
emccode/ecs-cf-service-broker
src/main/java/com/emc/ecs/servicebroker/repository/ServiceInstanceBindingRepository.java
Java
apache-2.0
6,740
# -*- coding: UTF-8 -*- from __future__ import unicode_literals, print_function, division
dawncold/expenditure-application
expenditure_application/__init__.py
Python
apache-2.0
90
/******************************************************************************* * Copyright (C) 2016 Kwaku Twumasi-Afriyie <kwaku.twumasi@quakearts.com>. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies...
kwakutwumasi/Quakearts-JSF-Webtools
qa-boot/src/main/java/com/quakearts/webapp/facelets/bootstrap/renderers/BootTableRenderer.java
Java
apache-2.0
15,874
using Foundation.Data.Hibernate; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using NHibernate; using NHibernate.Context; using NHibernate.Engine; namespace Foundation.Tests.Data.Hibernate { [TestClass] public class HibernateUnitOfWorkTests { [TestMethod] pub...
DavidMoore/Foundation
Tests/UnitTests/Foundation.Tests/Data/Hibernate/HibernateUnitOfWorkTests.cs
C#
apache-2.0
5,383
package info.pupcode.model.repo.test; import org.junit.Before; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * Created by fabientronche1 on 08.11.15. */ public class AbstractConcordionFixture { protected SpringConfigTest springConfigTest; protected ClassPathXmlApplicationCo...
PUPInitiative/pup-code-poc
pup-code-domain/src/test/java/info/pupcode/model/repo/test/AbstractConcordionFixture.java
Java
apache-2.0
658
/* * Copyright 2002-2010 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...
spring-projects/spring-net
src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionBuilder.cs
C#
apache-2.0
17,503
using System; using Windows.ApplicationModel.Resources; namespace Okra.Data.Helpers { internal static class ResourceHelper { // *** Constants *** private const string RESOURCEMAP_ERROR = "Okra.Data/Errors"; private const string RESOURCE_NOT_FOUND_ERROR = "Exception_ArgumentException_R...
OkraFramework/Okra.Data
src/Okra.Data/Helpers/ResourceHelper.cs
C#
apache-2.0
1,010
package pro.luxun.luxunanimation.presenter.adapter; import android.support.annotation.UiThread; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import java.util.List; /** * Created by wufeiyang on 16/5/7. */ public abstract class B...
ayaseruri/luxunPro
app/src/main/java/pro/luxun/luxunanimation/presenter/adapter/BaseRecyclerAdapter.java
Java
apache-2.0
1,444
package cn.xmut.experiment.service.impl; import java.util.List; import org.apache.commons.fileupload.FileItem; import cn.xmut.experiment.dao.IExperimentDao; import cn.xmut.experiment.dao.impl.jdbc.ExperimentDaoImpl; import cn.xmut.experiment.domain.Experiment; import cn.xmut.experiment.domain.ShowExperiment...
bingoogolapple/J2EENote
experiment/src/cn/xmut/experiment/service/impl/ExperimentServiceImpl.java
Java
apache-2.0
1,988
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2020 Ingo Herbote * https://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * di...
Pathfinder-Fr/YAFNET
yafsrc/YAF.Utils/Helpers/UrlHelper.cs
C#
apache-2.0
1,676
/** * @file * Declares the any type. */ #pragma once #include "../values/forward.hpp" #include <ostream> namespace puppet { namespace runtime { namespace types { // Forward declaration of recursion_guard struct recursion_guard; /** * Represents the Puppet Any type. */ struct any { ...
peterhuene/puppetcpp
lib/include/puppet/runtime/types/any.hpp
C++
apache-2.0
2,856
package server import ( "bytes" "context" "encoding/json" "io/ioutil" "log" "net/http" "strings" "sync" "sync/atomic" "text/template" "time" "github.com/TV4/graceful" "github.com/gogap/config" "github.com/gogap/go-wkhtmltox/wkhtmltox" "github.com/gorilla/mux" "github.com/phyber/negroni-gzip/gzip" "gi...
gogap/go-wkhtmltox
server/server.go
GO
apache-2.0
8,166
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundatio...
HuangLS/neo4j
community/primitive-collections/src/main/java/org/neo4j/collection/primitive/PrimitiveLongIntVisitor.java
Java
apache-2.0
1,354
package org.anyline.entity; import com.fasterxml.jackson.databind.JsonNode; import org.anyline.util.*; import org.anyline.util.regular.Regular; import org.anyline.util.regular.RegularUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.Serializable; import java.math.BigDecimal; import java.ut...
anylineorg/anyline
anyline-core/src/main/java/org/anyline/entity/DataSet.java
Java
apache-2.0
115,477
package ua.job4j.loop; /** * Class Класс для вычисления факториала заданного числа. * @author vfrundin * @since 05.11.2017 * @version 1.0 */ public class Factorial { /** * Метод должен вычислять факториал поданного на вход числа. * @param n Число для которого нужно определить факториал. * @ret...
Krok3/junior
chapter_001/src/main/java/ua/job4j/loop/Factorial.java
Java
apache-2.0
728
/* Copyright (C) 2013-2022 TU Dortmund * This file is part of AutomataLib, http://www.automatalib.net/. * * 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...
LearnLib/automatalib
core/src/main/java/net/automatalib/graphs/base/compact/CompactBidiGraph.java
Java
apache-2.0
1,632
package org.clinical3PO.common.security; import java.util.Collection; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.AuthenticationProvider; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.securit...
Clinical3PO/Platform
dev/clinical3PO/app/src/main/java/org/clinical3PO/common/security/CustomAuthenticationProvider.java
Java
apache-2.0
1,572
<?php /** * This file is part of the SevenShores/NetSuite library * AND originally from the NetSuite PHP Toolkit. * * New content: * @package ryanwinchester/netsuite-php * @copyright Copyright (c) Ryan Winchester * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 * @link https://githu...
RyanWinchester/netsuite-php
src/Classes/NSSoapFault.php
PHP
apache-2.0
1,021
package com.example.mywechat.utils; import java.util.ArrayList; import java.util.List; import android.app.Activity; /** * ActivityCollector ÀàÓÃÓÚ¹ÜÀíËùÓеĻ * @author dzhiqin * */ public class ActivityCollector { public static List<Activity> activities=new ArrayList<Activity>(); public static void addActiv...
dzhiqin/MyWeChat
src/com/example/mywechat/utils/ActivityCollector.java
Java
apache-2.0
697
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
googleapis/python-bigquery
samples/magics/_helpers.py
Python
apache-2.0
823
/* * The MIT License (MIT) * * Copyright (c) 2015 Cleidimar Viana * * 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 * ...
cleidimarviana/Tabs-Material
app/src/main/java/com/seamusdawkins/tablayout/fragments/FirstFragment.java
Java
apache-2.0
1,928
/** * 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...
prateekbansal/apache-gora-0.4
gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
Java
apache-2.0
17,283
/* * 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 ...
DavidHerzogTU-Berlin/cassandraToRun
src/java/org/apache/cassandra/io/sstable/SSTableScanner.java
Java
apache-2.0
8,241
/* * 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...
dagnir/aws-sdk-java
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/model/transform/PartListElementJsonUnmarshaller.java
Java
apache-2.0
2,994
package seborama.demo2.kafka.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class Order { private String id; private boolean fulfilled; ...
seborama/demo1-kafka
src/main/java/seborama/demo2/kafka/model/Order.java
Java
apache-2.0
1,265
public class ChickenBurger extends Burger { @Override public float price() { return 50.5f; } @Override public String name() { return "Chicken Burger"; } }
Iamasoldier6/DesignPattern
BuilderPatternDemo/src/ChickenBurger.java
Java
apache-2.0
168
/* tslint:disable:max-classes-per-file */ import { forEach } from 'ramda'; import Interactor from '../CourseInteractor'; import InteractorLoader from '../CourseInteractorLoader'; import { ICourseStorage } from '../ICourseStorage'; import { IProgressStorage } from '../IProgressStorage'; import { ISerializedCourse } from...
serlo-org/serlo-abc
packages/entities-interactor/__tests__/CourseInteractor.ts
TypeScript
apache-2.0
3,604
import React from 'react'; import { action } from '@storybook/addon-actions'; import { Action } from '../Actions'; import ActionBar from './ActionBar.component'; const primary = { label: 'Primary', icon: 'talend-cog', bsStyle: 'primary', 'data-feature': 'actionbar.primary', onClick: action('You clicked me'), }; ...
Talend/ui
packages/components/src/ActionBar/ActionBar.stories.js
JavaScript
apache-2.0
6,576
import hashlib from core.analytics import InlineAnalytics from core.observables import Hash HASH_TYPES_DICT = { "md5": hashlib.md5, "sha1": hashlib.sha1, "sha256": hashlib.sha256, "sha512": hashlib.sha512, } class HashFile(InlineAnalytics): default_values = { "name": "HashFile", ...
yeti-platform/yeti
plugins/analytics/public/hash_file.py
Python
apache-2.0
1,405
/** * Copyright 2011-2021 Asakusa Framework Team. * * 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...
asakusafw/asakusafw
directio-project/asakusa-directio-dmdl/src/main/java/com/asakusafw/dmdl/directio/text/AbstractTextStreamFormatGenerator.java
Java
apache-2.0
26,894
/* * Copyright 2007 Sascha Weinreuter * * 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...
consulo/consulo-relaxng
src/org/intellij/plugins/relaxNG/references/PrefixReferenceProvider.java
Java
apache-2.0
4,459
package org.jruby.ext.ffi.jna; import java.util.ArrayList; import org.jruby.runtime.ThreadContext; /** * An invocation session. * This provides post-invoke cleanup. */ final class Invocation { private final ThreadContext context; private ArrayList<Runnable> postInvokeList; Invocation(ThreadContext cont...
google-code/android-scripting
jruby/src/src/org/jruby/ext/ffi/jna/Invocation.java
Java
apache-2.0
796
package org.onetwo.ext.security.utils; import java.util.Collection; import org.onetwo.common.web.userdetails.UserDetail; import org.onetwo.common.web.userdetails.UserRoot; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.User; @SuppressWarnings("serial")...
wayshall/onetwo
core/modules/security/src/main/java/org/onetwo/ext/security/utils/LoginUserDetails.java
Java
apache-2.0
1,289
/* <samplecode> <abstract> A DSPKernel subclass implementing the realtime signal processing portion of the FilterDemo audio unit. </abstract> </samplecode> */ #ifndef FilterDSPKernel_hpp #define FilterDSPKernel_hpp #import "DSPKernel.hpp" #import "ParameterRamper.hpp" #import <vector> static inline float co...
eviathan/Salt
Pepper/Code Examples/Apple/AudioUnitV3ExampleABasicAudioUnitExtensionandHostImplementation/Filter/Shared/FilterDSPKernel.hpp
C++
apache-2.0
7,597
// import { Domain } from '../Domain'; // import { GetDomain } from './GetDomain'; // // /** // * Find domain from object or type // */ // export function FindDomain(target: Function | object): Domain | undefined { // let prototype; // if (typeof target === 'function') { // prototype = target.prototype; // ...
agentframework/agentframework
src/domain/Domain/Helpers/FindDomain.ts
TypeScript
apache-2.0
641
/* * Copyright (C) 2015 P100 OG, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
shiftconnects/android-auth-manager
sample/src/main/java/com/shiftconnects/android/auth/example/util/GsonConverter.java
Java
apache-2.0
3,430
/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.api.kafka.model.connect.build; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.ja...
scholzj/barnabas
api/src/main/java/io/strimzi/api/kafka/model/connect/build/Output.java
Java
apache-2.0
2,326
/** * */ package com.transcend.rds.worker; import java.util.Arrays; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.hibernate.Session; import org.slf4j.Logger; import org.springframework.transaction.annotation.Transactional; import com.msi.tough.cf.json.DatabagParameter...
TranscendComputing/TopStackRDS
src/com/transcend/rds/worker/ModifyDBParameterGroupActionWorker.java
Java
apache-2.0
11,169