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
// 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...
mufaddalq/cloudstack-datera-driver
engine/schema/src/com/cloud/offerings/NetworkOfferingVO.java
Java
apache-2.0
11,734
/********************************************************************** Copyright (c) 2003 Andy Jefferson and others. 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 h...
hopecee/texsts
samples/src/java/org/jpox/samples/interfaces/Circle.java
Java
apache-2.0
3,009
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, DataSearch, ResultList, ReactiveList, SelectedFilters, } from '@appbaseio/reactivesearch'; import './index.css'; class Main extends Component { render() { return ( <ReactiveBase app="good-books-ds" u...
appbaseio/reactivesearch
packages/web/examples/CustomSelectedFilters/src/index.js
JavaScript
apache-2.0
3,322
package hypervisors import ( "math/rand" "os/exec" "strings" "time" ) const powerOff = "Power is off" func (m *Manager) probeUnreachable(h *hypervisorType) probeStatus { if m.ipmiPasswordFile == "" || m.ipmiUsername == "" { return probeStatusUnreachable } var hostname string if len(h.machine.IPMI.HostIpAdd...
Symantec/Dominator
fleetmanager/hypervisors/ipmi.go
GO
apache-2.0
1,243
/** * Created by guofengrong on 15/10/26. */ var dataImg = { "data": [{ "src": "1.jpg" }, { "src": "1.jpg" }, { "src": "2.jpg" }, { "src": "3.jpg" }, { "src": "4.jpg" }, { "src": "10.jpg" }] }; $(document).ready(function() { $(window).on(...
guofengrong/HomeworkOfJikexueyuan
Lesson7/百度图片瀑布流布局/js/baidu-pic.js
JavaScript
apache-2.0
3,505
package daemon import ( "context" "runtime" "time" "github.com/docker/docker/api/types" containertypes "github.com/docker/docker/api/types/container" "github.com/docker/docker/container" "github.com/docker/docker/errdefs" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) // ContainerStart starts a cont...
ripcurld0/moby
daemon/start.go
GO
apache-2.0
8,522
import { expect } from 'chai'; import * as utilities from '../../src/utilities'; describe('utilities.capitalize()', () => { it('capitalize', () => { expect( utilities.capitalize('capitalize') == 'Capitalize' ); }); it('Capitalize', () => { expect( utilities.capitalize('Capitalize') == 'Capitalize' ); }...
1987yama3/power-analytics.appspot.com
test/unit/utilities.test.js
JavaScript
apache-2.0
1,060
package com.metaui.fxbase.view.desktop; import com.metaui.fxbase.model.AppModel; import com.metaui.fxbase.model.NavMenuModel; import com.metaui.fxbase.ui.IDesktop; import com.metaui.fxbase.ui.view.MUTabPane; import com.metaui.fxbase.view.tree.MUTree; import javafx.collections.ListChangeListener; import javafx.geometry...
weijiancai/metaui
fxbase/src/main/java/com/metaui/fxbase/view/desktop/MUTabsDesktop.java
Java
apache-2.0
3,558
package timely.configuration; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import javax.validation.Valid; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.NestedConfigurationProperty; import org.springframew...
NationalSecurityAgency/timely
server/src/main/java/timely/configuration/Configuration.java
Java
apache-2.0
3,399
package psidev.psi.mi.jami.tab.io.writer.extended; import psidev.psi.mi.jami.binary.ModelledBinaryInteraction; import psidev.psi.mi.jami.binary.expansion.ComplexExpansionMethod; import psidev.psi.mi.jami.model.ModelledInteraction; import psidev.psi.mi.jami.tab.MitabVersion; import java.io.File; import java.io.IOExcep...
MICommunity/psi-jami
jami-mitab/src/main/java/psidev/psi/mi/jami/tab/io/writer/extended/Mitab26ModelledWriter.java
Java
apache-2.0
3,389
/* * 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 ...
qinjin/mdtc-cassandra
src/java/org/apache/cassandra/io/sstable/SSTableDeletingTask.java
Java
apache-2.0
4,449
package minefantasy.mf2.api.knowledge.client; import org.lwjgl.opengl.GL11; import minefantasy.mf2.api.helpers.RenderHelper; import minefantasy.mf2.api.helpers.TextureHelperMF; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; import net.minecraft.util.StatCollector; public class Entr...
AnonymousProductions/MineFantasy2
src/main/java/minefantasy/mf2/api/knowledge/client/EntryPageImage.java
Java
apache-2.0
1,405
package org.testng.xml; import static org.testng.internal.Utils.isStringBlank; import org.testng.ITestObjectFactory; import org.testng.TestNGException; import org.testng.collections.Lists; import org.testng.collections.Maps; import org.testng.internal.RuntimeBehavior; import org.testng.internal.Utils; import org.test...
missedone/testng
src/main/java/org/testng/xml/TestNGContentHandler.java
Java
apache-2.0
26,284
package org.jdesktop.core.animation.timing; import self.philbrown.javaQuery.Modified; import com.surelogic.ThreadSafe; /** * Implements the {@link TimingTarget} interface, providing stubs for all timing * target methods. Subclasses may extend this adapter rather than implementing * the {@link TimingTarget} interf...
phil-brown/javaQuery
src/org/jdesktop/core/animation/timing/TimingTargetAdapter.java
Java
apache-2.0
2,073
<?php declare(strict_types=1); namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreNotificationTemplateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; }...
RoboJackets/apiary
app/Http/Requests/StoreNotificationTemplateRequest.php
PHP
apache-2.0
982
package com.praetoriandroid.cameraremote; public class ServiceNotSupportedException extends RpcException { private static final long serialVersionUID = -4740335873344202486L; public ServiceNotSupportedException(String serviceType) { super(serviceType); } }
praetoriandroid/sony-camera-remote-java
sony-camera-remote-lib/src/main/java/com/praetoriandroid/cameraremote/ServiceNotSupportedException.java
Java
apache-2.0
279
"""Test the TcEx Batch Module.""" # third-party import pytest # pylint: disable=no-self-use class TestIndicator3: """Test the TcEx Batch Module.""" def setup_class(self): """Configure setup before all tests.""" @pytest.mark.parametrize( 'indicator,description,label,tag', [ ...
kstilwell/tcex
tests/batch/test_indicator_interface_3.py
Python
apache-2.0
6,925
using java.lang; using java.util; using stab.query; public class ToIntTMap5 { public static bool test() { var map1 = new HashMap<Integer, string> { { 1, "V1" }, { 2, "V2" }, { 3, "V3" }}; var list = new ArrayList<string> { "V1", "V2", "V3" }; var key = 1; var map2 = list.toMap(p => key++); int i = 0; fore...
monoman/cnatural-language
tests/resources/LibraryTest/sources/ToIntTMap5.stab.cs
C#
apache-2.0
467
import invocation_pb from '../../api/invocation_pb'; import { State as PageWrapperState } from '../SearchWrapper'; export interface Data { status: string; name: string; labels: string; date: string; duration: string; user: string; } export interface Column { id: 'status' | 'name' | 'labels...
google/resultstoreui
resultstoresearch/client/src/components/InvocationTable/types.ts
TypeScript
apache-2.0
821
/* * Copyright 2020 The Netty Project * * The Netty Project licenses this file to you 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 re...
fenik17/netty
example/src/main/java/io/netty/example/http2/helloworld/frame/client/Http2ClientStreamFrameResponseHandler.java
Java
apache-2.0
2,568
package cn.brent.console.table; /** * <p> * 实体类- * </p> * <p> * Table: sys_uid_sysid * </p> * * @since 2015-08-18 05:00:27 */ public class TSysUidSysid { /** */ public static final String UID = "UID"; /** */ public static final String SYS = "SYS"; /** */ public static final String SysID = "SysID";...
brenthub/brent-console
brent-console-interface/src/main/java/cn/brent/console/table/TSysUidSysid.java
Java
apache-2.0
388
/** * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.dc.smarteam.test.entity; import com.fasterxml.jackson.annotation.JsonBackReference; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.Length; import co...
VincentFxz/EAM
src/main/java/com/dc/smarteam/test/entity/TestTree.java
Java
apache-2.0
1,652
#include "ContentSearcher.h" #include "FileNameSearcher.h" #include "FileSizeSearcher.h" #include "FileTimeSearcher.h" #include "Searcher.h" #include "SearcherFactory.h" #include "../SearchParameter.h" Searcher* SearcherFactory::BuildSearcher(const SearchParameter& param) { PhaseOneParameter oneParam = *...
obarnet/Teste
SearchMonkeySRC/engine/SearcherFactory.cpp
C++
apache-2.0
952
package com.lianyu.tech.website.web.controller.verify; import com.lianyu.tech.core.platform.exception.InvalidRequestException; import com.lianyu.tech.core.util.StringUtils; import com.lianyu.tech.website.web.SessionConstants; import com.lianyu.tech.website.web.SiteContext; import org.springframework.stereotype.Service...
howbigbobo/com.lianyu.tech
website/src/main/java/com/lianyu/tech/website/web/controller/verify/VerifyCodeValidator.java
Java
apache-2.0
978
package metrics import ( "time" "github.com/prebid/prebid-server/openrtb_ext" "github.com/stretchr/testify/mock" ) // MetricsEngineMock is mock for the MetricsEngine interface type MetricsEngineMock struct { mock.Mock } // RecordRequest mock func (me *MetricsEngineMock) RecordRequest(labels Labels) { me.Called...
prebid/prebid-server
metrics/metrics_mock.go
GO
apache-2.0
4,060
/* * Copyright 2013 Romain Gilles * * 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 ...
javabits/yar
yar-api/src/main/java/org/javabits/yar/SupplierListener.java
Java
apache-2.0
886
using JetBrains.Annotations; using JetBrains.Diagnostics; using JetBrains.ProjectModel; using JetBrains.ReSharper.Daemon; using JetBrains.ReSharper.Feature.Services.CSharp.ContextActions; using JetBrains.ReSharper.Plugins.Unity.CSharp.Daemon.Stages.PerformanceCriticalCodeAnalysis.ContextSystem; using JetBrains.ReSharpe...
JetBrains/resharper-unity
resharper/resharper-unity/src/Unity/CSharp/Feature/Services/CallGraph/PerformanceAnalysis/PerformanceAnalysisContextActionBase.cs
C#
apache-2.0
1,574
/* * 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...
consulo/consulo
modules/base/core-impl/src/main/java/com/intellij/extapi/psi/ASTWrapperPsiElement.java
Java
apache-2.0
1,314
package com.zabbix.sisyphus.contract.entity; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** ...
adolfmc/zabbix-parent
zabbix-sisyphus/src/main/java/com/zabbix/sisyphus/contract/entity/CreditPro.java
Java
apache-2.0
4,070
import java.io.IOException; import java.net.Socket; public class Shutdown { public static void main(String[] args) throws IOException { try (Socket socket = new Socket("localhost", 8005)) { socket.getOutputStream().write("SHUTDOWN".getBytes()); } } }
xqbase/util
util/src/test/java/Shutdown.java
Java
apache-2.0
269
import { forOwn, forEach, keys, values, isNil, isEmpty as _isEmpty, isObject, bind } from 'lodash' import { Promise } from 'bluebird' function InputModel(vals) { let modelValue = (vals['value'] ? vals['value'] : null ) let viewValue = modelValue let valid = true let pristine = true let listeners = setupListeners(...
sword42/react-ui-helpers
src/input/InputModel.js
JavaScript
apache-2.0
4,219
package org.domeos.framework.api.model.deployment.related; /** * Created by xupeng on 16-2-25. */ public enum DeploymentAccessType { K8S_SERVICE, DIY }
domeos/server
src/main/java/org/domeos/framework/api/model/deployment/related/DeploymentAccessType.java
Java
apache-2.0
163
setTimeout(function(){ (function(){ id = Ti.App.Properties.getString("tisink", ""); var param, xhr; file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,"examples/contacts_picker.js"); text = (file.read()).text xhr = Titanium.Network.createHTTPClient(); xhr.open("POST", "h...
steerapi/KichenSinkLive
Resources/examples/contacts_picker.js
JavaScript
apache-2.0
3,139
/* * @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...
stdlib-js/stdlib
lib/node_modules/@stdlib/ndarray/safe-casts/docs/types/test.ts
TypeScript
apache-2.0
982
package org.semanticweb.ontop.protege.utils; /* * #%L * ontop-protege4 * %% * Copyright (C) 2009 - 2013 KRDB Research Centre. Free University of Bozen Bolzano. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
eschwert/ontop
ontop-protege/src/main/java/org/semanticweb/ontop/protege/utils/DatasourceSelectorListener.java
Java
apache-2.0
922
package com.wei.you.zhihu.spider.task; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import com.wei.you.zhihu.spider.service.IZhihuRecommendationService; /** * 定时任务 * * @author sunzc * ...
sdc1234/zhihu-spider
src/main/java/com/wei/you/zhihu/spider/task/SpiderTask.java
Java
apache-2.0
720
/* * * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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://...
ChamNDeSilva/carbon-apimgt
components/apimgt/org.wso2.carbon.apimgt.rest.api.commons/src/main/java/org/wso2/carbon/apimgt/rest/api/common/impl/OAuth2Authenticator.java
Java
apache-2.0
17,387
package org.myrobotlab.service.data; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import org.junit.Test; import org.myrobotlab.test.AbstractTest; public class PinTest extends AbstractTest { @Test public void testPin() { Pin p = new Pin(); assertNotNull(p); ...
MyRobotLab/myrobotlab
src/test/java/org/myrobotlab/service/data/PinTest.java
Java
apache-2.0
566
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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...
redmeros/Lean
Common/SymbolRepresentation.cs
C#
apache-2.0
11,972
/* * Copyright (C) 2012-2014 Open Source Robotics Foundation * * 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...
arpg/Gazebo
gazebo/sensors/SensorFactory.hh
C++
apache-2.0
3,223
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace PiCalculator.Tests { [TestClass] public class PiCalculatorTestsPart1 { private PiCalculator piCalculator; [TestInitialize] public void TestInitialize() { piCalculator = new PiCalculator...
AlanBarber/CodeKatas
src/PiCalculator.Tests/PiCalculatorTestsPart1.cs
C#
apache-2.0
654
package uk.co.jtnet.security.kerberos.pac; public interface PacConstants { static final int PAC_VERSION = 0; static final int LOGON_INFO = 1; static final int KERB_VALIDATION_INFO = 1; static final int PAC_CREDENTIALS = 2; static final int SERVER_CHECKSUM = 6; static final int KDC_PRIVSERVER_CHECKSUM = ...
jcmturner/java-kerberos-utils
KerberosUtils/src/main/java/uk/co/jtnet/security/kerberos/pac/PacConstants.java
Java
apache-2.0
716
/* * 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 * distribu...
mklab/taskit
src/main/java/org/mklab/taskit/shared/UserRequest.java
Java
apache-2.0
1,428
package gr.plushost.prototypeapp.fragments; import android.app.Activity; import android.content.Intent; import android.os.AsyncTask; import android.support.v4.app.Fragment; import android.graphics.Typeface; import android.os.Bundle; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBar...
lioutasb/CSCartApp
app/src/main/java/gr/plushost/prototypeapp/fragments/NavigationDrawerFragment.java
Java
apache-2.0
18,920
#ifndef color_cmyk_akin_xyz #define color_cmyk_akin_xyz #include "../../generic/akin/cmyk.hpp" #include "../category.hpp" #include "../../xyz/category.hpp" namespace color { namespace akin { template< >struct cmyk< ::color::category::xyz_uint8 >{ typedef ::color::category::cmyk_uint8 akin_t...
dmilos/color
src/color/cmyk/akin/xyz.hpp
C++
apache-2.0
1,053
from __future__ import division from __future__ import print_function import numpy as np import matplotlib.pyplot as plt import os import string plt.ioff() data = np.load("attn_weights.npz") lines = map(lambda x: x.split('\t'), open("sanitycheck.txt", 'r').readlines()) save_dir = "attn_plots3" sentences = [] current_...
strubell/Parser
bin/plot_attn.py
Python
apache-2.0
3,315
/** * Copyright (c) 2016 - 2018 Syncleus, 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 la...
Syncleus/aparapi
src/test/java/com/aparapi/codegen/test/EmptyIfBlock.java
Java
apache-2.0
802
package com.niedzielski.pixipedia.android.activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import com.niedzielski.pixipedia.android.R; import com.niedzielski.pix...
niedzielski/pixipedia
app/src/main/java/com/niedzielski/pixipedia/android/activity/ImageFragment.java
Java
apache-2.0
1,551
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.code.base.arg; import java.io.IOException; import java.lang.reflect.Executable; import java.lang.reflect.Parameter; import java.util.List; import java.util.function.Consum...
m-m-m/code
base/src/main/java/net/sf/mmm/code/base/arg/BaseParameters.java
Java
apache-2.0
4,951
package org.apereo.cas.validation; import org.apereo.cas.TestOneTimePasswordAuthenticationHandler; import org.apereo.cas.authentication.AcceptUsersAuthenticationHandler; import org.apereo.cas.authentication.AuthenticationHandler; import org.apereo.cas.authentication.AuthenticationPolicy; import org.apereo.cas.authenti...
leleuj/cas
core/cas-server-core-validation/src/test/java/org/apereo/cas/validation/AuthenticationPolicyAwareServiceTicketValidationAuthorizerTests.java
Java
apache-2.0
11,612
package com.tngtech.archunit.core.importer.testexamples.hierarchicalmethodcall; public class SuperclassWithCalledMethod { public static final String method = "method"; String method() { return null; } int maskedMethod() { return 0; } }
TNG/ArchUnit
archunit/src/test/java/com/tngtech/archunit/core/importer/testexamples/hierarchicalmethodcall/SuperclassWithCalledMethod.java
Java
apache-2.0
275
/** * Copyright 2015-present Amberfog * <p/> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable ...
dlukashev/AndroidSlidingUpPanel-foursquare-map-demo
app/src/main/java/com/amberfog/mapslidingtest/app/LockableRecyclerView.java
Java
apache-2.0
2,219
import markdownIt from 'markdown-it' import plusImagePlugin from 'markdown-it-plus-image' import highlight from 'highlight.js' import container from 'markdown-it-container' import { baseURL } from '@/api' /** * Create a markdown it instance. * * @type {Object} */ export const markdown = markdownIt({ breaks: true...
slimkit/thinksns-plus
resources/spa/src/util/markdown.js
JavaScript
apache-2.0
2,304
package org.smartx.demo.domain; import org.springframework.stereotype.Repository; /** * <p> * * </p> * * <b>Creation Time:</b> 16/11/23 * * @author kext */ @Repository public interface UserRepository { }
luffyke/springboot-demo
src/main/java/org/smartx/demo/domain/UserRepository.java
Java
apache-2.0
214
from turbo import register import app import api register.register_group_urls('', [ ('/', app.HomeHandler), ('/plus', app.IncHandler), ('/minus', app.MinusHandler), ]) register.register_group_urls('/v1', [ ('', api.HomeHandler), ])
wecatch/app-turbo
demos/jinja2-support/apps/app/__init__.py
Python
apache-2.0
253
/* * Copyright The OpenTelemetry 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 applicable law or...
open-telemetry/opentelemetry-js
packages/opentelemetry-resources/src/detectors/EnvDetector.ts
TypeScript
apache-2.0
5,327
/* * 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...
jexp/idea2
platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/DefaultModulesProvider.java
Java
apache-2.0
1,618
""" thainlp tag command line. """ import argparse from pythainlp import cli from pythainlp.tag import locations, named_entity, pos_tag class SubAppBase: def __init__(self, name, argv): parser = argparse.ArgumentParser(**cli.make_usage("tag " + name)) parser.add_argument( "text", type=...
PyThaiNLP/pythainlp
pythainlp/cli/tag.py
Python
apache-2.0
2,123
/* * Copyright 2012-2015 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 ...
oVirt/ovirt-engine-extension-aaa-ldap
src/main/java/org/ovirt/engine/extension/aaa/ldap/Util.java
Java
apache-2.0
13,912
/* * Copyright (c) 2014 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 appli...
werval/werval
io.werval.modules/io.werval.modules.xml/src/main/java/io/werval/modules/xml/internal/SAXParserFactoryImpl.java
Java
apache-2.0
10,474
/* * (C) Copyright 2016 Kurento (http://kurento.org/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Kurento/kms-elements
src/server/implementation/objects/RecorderEndpointImpl.cpp
C++
apache-2.0
10,886
# frozen_string_literal: true module Hyrax module SolrDocument module Metadata extend ActiveSupport::Concern class_methods do def attribute(name, type, field) define_method name do type.coerce(self[field]) end end end module Solr cla...
samvera/hyrax
app/models/concerns/hyrax/solr_document/metadata.rb
Ruby
apache-2.0
4,358
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
jhpx/Sunshine-Version-2
app/src/main/java/com/example/android/sunshine/app/data/WeatherProvider.java
Java
apache-2.0
14,322
/* * Autopsy Forensic Browser * * Copyright 2011-2017 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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...
narfindustries/autopsy
Core/src/org/sleuthkit/autopsy/datamodel/BlackboardArtifactNode.java
Java
apache-2.0
27,314
package com.bazaarvoice.emodb.databus.repl; import com.bazaarvoice.emodb.databus.core.UpdateRefSerializer; import com.bazaarvoice.emodb.event.api.EventData; import com.bazaarvoice.emodb.event.api.EventStore; import com.bazaarvoice.emodb.sor.core.UpdateRef; import com.google.common.base.Function; import com.google.comm...
bazaarvoice/emodb
databus/src/main/java/com/bazaarvoice/emodb/databus/repl/DefaultReplicationSource.java
Java
apache-2.0
1,617
<?php namespace CHStudio\LaravelTransclude\Exceptions; class MissingTranscludeDirective extends \RuntimeException { }
CHStudio/laravel-transclude
src/Exceptions/MissingTranscludeDirective.php
PHP
apache-2.0
121
package com.boot.service; import com.boot.model.User; import org.springframework.stereotype.Component; /** * Created by Admin on 2017/6/29. * 熔断机制 */ @Component public class HelloServiceFallback implements HelloService { @Override public String hello() { return "error"; } @Override pub...
TianYunZi/15springcloud
6.1.1.spring-cloud-feign/src/main/java/com/boot/service/HelloServiceFallback.java
Java
apache-2.0
583
package nl.jqno.equalsverifier.internal.reflection; import static nl.jqno.equalsverifier.internal.util.Rethrow.rethrow; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.Set; import java.util.function.Predicate; import nl.jqno.equalsverifier.internal.prefabvalues.PrefabValues; import...
jqno/equalsverifier
equalsverifier-core/src/main/java/nl/jqno/equalsverifier/internal/reflection/ClassAccessor.java
Java
apache-2.0
8,056
package org.nd4j.linalg.api.ndarray; import org.nd4j.linalg.api.buffer.DataBuffer; import org.nd4j.linalg.api.shape.Shape; /** * @author raver119@gmail.com */ public abstract class BaseShapeInfoProvider implements ShapeInfoProvider { @Override public DataBuffer createShapeInformation(int[] shape, int[] stri...
drlebedev/nd4j
nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ndarray/BaseShapeInfoProvider.java
Java
apache-2.0
475
var clientSettings = require('../lib/plugins/client-settings'); var express = require('express'); var supertest = require('supertest'); var assert = require('assert'); describe('logout()', function() { var server; var clientConfigOptions; beforeEach(function() { server = express(); server.use(function(...
4front/apphost
test/plugin.client-settings.js
JavaScript
apache-2.0
940
'use strict'; var express = require('express'); var app = express(); app.use('/components/gh-issues', express.static( __dirname)); app.use('/components', express.static(__dirname + '/bower_components')); app.get('/', function(req, res){ res.redirect('/components/gh-issues/'); }); app.get('/hello', function (req,...
koopaworks/polymer-gh-issues
index.js
JavaScript
apache-2.0
510
/*- * #%L * Bobcat * %% * Copyright (C) 2018 Cognifide Ltd. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
Cognifide/bobcat
bb-junit5/src/main/java/com/cognifide/qa/bb/junit5/JUnit5Constants.java
Java
apache-2.0
1,013
const CLI = require('CLI'); describe('CLI', () => { function args(...arr) { return [ 'node', 'polymer-lint.js', ...arr ]; } let Options, Linter; const filenames = [ './spec/integration/good-component.html', './spec/integration/bad-component.html', ]; beforeEach(() => { Options = require('...
Banno/polymer-lint
spec/lib/CLISpec.js
JavaScript
apache-2.0
2,623
package cn.elvea.platform.commons.storage.oss; import lombok.Data; import java.io.Serializable; /** * 阿里云存储配置参数 * * @author elvea * @since 0.0.1 */ @Data public class OssStorageConfig implements Serializable { /** * Endpoint */ private String endpoint = ""; /** * Access Key Id */...
elveahuang/platform
platform-commons/platform-commons-storage/src/main/java/cn/elvea/platform/commons/storage/oss/OssStorageConfig.java
Java
apache-2.0
602
<?php namespace VagueSoftware\Refuel2Bundle\Presenter; use VagueSoftware\Refuel2Bundle\Exception\Presenter\PresenterNotFoundException; /** * Class PresenterFactory * @package VagueSoftware\Refuel2Bundle\Presenter */ class PresenterFactory { /** * @var array */ private $presenters = []; /** ...
evilfirefox/refuel2
src/VagueSoftware/Refuel2Bundle/Presenter/PresenterFactory.php
PHP
apache-2.0
949
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Shrtn.Entity; using Shrtn.Entity.Encoders; namespace Shrtn { /// <summary> /// Utility class that takes integers such as a primary key id and turns them into short strings using base conversion. /// </summary> ...
ryan-nauman/Shrtn
Shrtn/Shrtn.cs
C#
apache-2.0
3,095
package org.schema; /** * * A collection of music tracks. * * @fullPath Thing > CreativeWork > MusicPlaylist > MusicAlbum * * @author Texelz (by Onhate) * */ public class MusicAlbum extends MusicPlaylist { private MusicGroup byArtist; /** * The artist that performed this album or recording. */ pub...
onhate/schemorger
src/main/java/org/schema/MusicAlbum.java
Java
apache-2.0
525
package cl.puntocontrol.struts.action; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; imp...
Claudio1986/Punto_control
src/cl/puntocontrol/struts/action/TransportistasBuscarAction.java
Java
apache-2.0
1,697
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
deeplearning4j/deeplearning4j
nd4j/nd4j-tensorflow/src/main/java/org/nd4j/tensorflow/conversion/TensorflowConversion.java
Java
apache-2.0
16,741
/* * 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 ...
yipen9/spatial4j
src/main/java/com/spatial4j/core/shape/jts/JtsGeometry.java
Java
apache-2.0
21,456
# -*- coding: utf-8 -*- # 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...
googleads/google-ads-python
google/ads/googleads/v9/enums/types/simulation_type.py
Python
apache-2.0
1,302
package com.topie.asset; import com.topie.core.dbmigrate.ModuleSpecification; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class AssetModuleSpecification implements ModuleSpecification { private static final String MODULE_NAME = "a...
topie/topie-oa
src/main/java/com/topie/asset/AssetModuleSpecification.java
Java
apache-2.0
1,430
package com.netflix.governator.lifecycle; import com.google.inject.Injector; import com.netflix.governator.LifecycleInjectorBuilderProvider; import com.netflix.governator.annotations.WarmUp; import com.netflix.governator.guice.LifecycleInjector; import com.netflix.governator.guice.LifecycleInjectorBuilder; import org....
gorcz/governator
governator-core/src/test/java/com/netflix/governator/lifecycle/CircularDAG.java
Java
apache-2.0
1,747
/* This file is part of TopPI - see https://github.com/slide-lig/TopPI/ Copyright 2016 Martin Kirchgessner, Vincent Leroy, Alexandre Termier, Sihem Amer-Yahia, Marie-Christine Rousset, Université Grenoble Alpes, LIG, CNRS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ex...
slide-lig/TopPI
src/main/java/fr/liglab/mining/mapred/AggregationMapper.java
Java
apache-2.0
1,561
package dk.apaq.cordova.geolocationx; import de.greenrobot.event.EventBus; import java.util.List; import java.util.Iterator; import java.util.Date; import org.json.JSONException; import org.json.JSONObject; import android.annotation.TargetApi; import android.app.NotificationManager; import android.app.Notification...
michaelkrog/cordova-plugin-geolocation-x
src/android/dk/apaq/cordova/geolocationx/LocationUpdateService.java
Java
apache-2.0
11,318
package vandy.mooc.provider; import android.content.ContentUris; import android.net.Uri; import android.provider.BaseColumns; /** * Defines table and column names for the Acronym database. */ public final class VideoContract { /** * The "Content authority" is a name for the entire content provider, * similar t...
dexter-at-git/coursera-android-spring
assignments/assignment3/client/src/vandy/mooc/provider/VideoContract.java
Java
apache-2.0
2,701
package org.jasig.cas.authentication.principal; import com.google.common.collect.ImmutableMap; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.jasig.cas.logout.SingleLogoutService; import org.jasig.cas.validation.ValidationResponseType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impo...
PetrGasparik/cas
cas-server-core-services/src/main/java/org/jasig/cas/authentication/principal/AbstractWebApplicationService.java
Java
apache-2.0
4,645
/* * Copyright 2008-2011 Wolfgang Keller * * 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...
dreamsxin/101_browser
src/GuiOpenGL/GuiComponentsBasic.cpp
C++
apache-2.0
4,410
/** * Copyright (c) 2013-2021 Nikita Koksharov * * 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...
redisson/redisson
redisson/src/main/java/org/redisson/RedissonPatternTopic.java
Java
apache-2.0
5,917
#Please read "usefull links" before going on, they are necessary for better understanding import StringIO import json #Imports the json library that decodes json tokens recieved from telegram api import logging #Imports the library that puts messages in the log info of the google app engine import random #Library that ...
0Cristofer/telebot
main.py
Python
apache-2.0
6,516
from flask import Blueprint, render_template, Response, current_app, send_from_directory from pyox import ServiceError from pyox.apps.monitor.api import get_cluster_client from datetime import datetime cluster_ui = Blueprint('cluster_ui',__name__,template_folder='templates') @cluster_ui.route('/') def index(): cl...
alexmilowski/python-hadoop-rest-api
pyox/apps/monitor/views.py
Python
apache-2.0
1,129
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
salamb/girder
tests/base.py
Python
apache-2.0
21,800
# -*- coding: utf-8 -*- ''' Module for listing programs that automatically run on startup (very alpha...not tested on anything but my Win 7x64) ''' # Import python libs import os # Import salt libs import salt.utils # Define a function alias in order not to shadow built-in's __func_alias__ = { 'list_': 'list' }...
victorywang80/Maintenance
saltstack/src/salt/modules/win_autoruns.py
Python
apache-2.0
1,932
package com.github.snailycy.androidhybridlib; import android.widget.Toast; import com.github.snailycy.hybridlib.bridge.BaseJSPluginSync; import org.json.JSONObject; /** * Created by ycy on 2017/9/27. */ public class JSGetCachePlugin extends BaseJSPluginSync { @Override public String jsCallNative(String r...
snailycy/AndroidHybridLib
sample/src/main/java/com/github/snailycy/androidhybridlib/JSGetCachePlugin.java
Java
apache-2.0
748
/** * Copyright (c) 2016-present, RxJava Contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
artem-zinnatullin/RxJava
src/main/java/io/reactivex/Maybe.java
Java
apache-2.0
233,229
# Copyright 2010 Jacob Kaplan-Moss # # 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 ...
akash1808/python-novaclient
novaclient/v1_1/flavors.py
Python
apache-2.0
6,740
package main import ( "fmt" "os" "github.com/codegangsta/cli" "github.com/heartbeatsjp/check_happo/command" "github.com/heartbeatsjp/happo-agent/halib" ) // GlobalFlags are global level options var GlobalFlags = []cli.Flag{} // Commands is list of subcommand var Commands = []cli.Command{ { Name: "monitor...
heartbeatsjp/check_happo
commands.go
GO
apache-2.0
1,406
//! \file /* ** Copyright (C) - Triton ** ** This program is under the terms of the Apache License 2.0. */ #ifndef TRITON_LIFTINGTOLLVM_HPP #define TRITON_LIFTINGTOLLVM_HPP #include <map> #include <memory> #include <ostream> #include <triton/ast.hpp> #include <triton/dllexport.hpp> #include <triton/symbolicExpress...
JonathanSalwan/Triton
src/libtriton/includes/triton/liftingToLLVM.hpp
C++
apache-2.0
1,827
/* * Copyright 1999-2010 University of Chicago * * 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...
gbehrmann/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/ResourceSigningPolicyStore.java
Java
apache-2.0
8,094
/* * 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...
erichwang/presto
presto-iceberg/src/main/java/io/prestosql/plugin/iceberg/IcebergOrcFileWriter.java
Java
apache-2.0
11,546