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 (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
<?php namespace DCarbone\PHPFHIRGenerated\R4\PHPFHIRTests\FHIRCodePrimitive; /*! * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using * class definitions from HL7 FHIR (https://www.hl7.org/fhir/) * * Class creation date: December 26th, 2019 15:44+0000 * * PHPFHIR Cop...
dcarbone/php-fhir-generated
src/DCarbone/PHPFHIRGenerated/R4/PHPFHIRTests/FHIRCodePrimitive/FHIRCarePlanActivityStatusListTest.php
PHP
apache-2.0
3,509
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
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Threading; using System.Threading.Tasks; using AutoMapper; using RegTesting.Contracts; using RegTesting.Contracts.Domain; using RegTesting.Contracts.DTO; using RegTesting.Tests.C...
AlexEndris/regtesting
RegTesting.Node/NodeLogic.cs
C#
apache-2.0
6,729
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
/* * 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...
android/android-test
runner/android_junit_runner/java/androidx/test/internal/runner/junit3/DelegatingTestSuite.java
Java
apache-2.0
2,279
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
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
EvilMcJerkface/alluxio
core/server/master/src/main/java/alluxio/master/file/DefaultFileSystemMaster.java
Java
apache-2.0
193,983
$.mockjax({ url: "*", response: function(options) { this.responseText = ExampleData.exampleData; }, responseTime: 0 }); $(function() { $("#tree1").tree(); });
mbraak/jqTree
static/examples/load_json_data_from_server.js
JavaScript
apache-2.0
188
using System; using System.Configuration; using MyWpfFramework.Common.MVVM; namespace MyWpfFramework.Common.Config { /// <summary> /// خواندن تنظیمات از فایل کانفیگ /// </summary> public class ConfigSetGet : IConfigSetGet { /// <summary> /// read settings from app.config file ...
VahidN/WpfFramework
MyWpfFramework.Common/Config/ConfigSetGet.cs
C#
apache-2.0
1,554
namespace GraphSharp.Algorithms.Layout.Simple.FDP { public enum FRCoolingFunction { Linear, Exponential } }
FTSRG/seviz
Source/Graph#/Algorithms/Layout/Simple/FDP/FRCoolingFunction.cs
C#
apache-2.0
139
package main import "fmt" //var ( // samples = []int{} // b = 1 //) func main() { var samples = []int{} samples = append(samples, 1) fmt.Println(samples) } // Output: // [1]
containous/yaegi
_test/a9.go
GO
apache-2.0
187
/** * @author Hincu Andrei (andreih1981@gmail.com)on 01.12.2017. * @version $Id$. * @since 0.1. */ package ru.job4j.jdbc;
andreiHi/hincuA
chapter_008/src/main/java/ru/job4j/jdbc/package-info.java
Java
apache-2.0
125
// // Copyright 2017 Bryan T. Meyers <bmeyers@datadrake.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...
DataDrake/csv-analyze
tests/types/group.go
GO
apache-2.0
1,759
# # Copyright 2013-2016, Noah Kantrowitz # # 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 w...
poise/poise
test/spec/spec_helper.rb
Ruby
apache-2.0
843
/* * 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 ...
KulykRoman/drill
exec/java-exec/src/main/java/org/apache/drill/exec/ExecConstants.java
Java
apache-2.0
42,918
using System; using Akka.Util; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Akka.Tests.Util { [TestClass] public class SwitchTests : AkkaSpec { [TestMethod] public void OnAndOff() { var s = new Switch(false); Assert.IsTrue(s.IsOff, "Initiall...
Horusiath/akka.net
test/Akka.Tests/Util/SwitchTests.cs
C#
apache-2.0
3,717
from flask import Flask app = Flask(__name__) @app.get("/") def index(): return "hello, world" if __name__ == "__main__": # Dev only: run "python main.py" and open http://localhost:8080 app.run(host="localhost", port=8080, debug=True)
GoogleCloudPlatform/buildpack-samples
sample-python/main.py
Python
apache-2.0
252
/* * Copyright 2012 Mike Adamson * * 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...
assemblade/CAT
cat-directory/src/main/java/com/assemblade/opendj/acis/AciFactory.java
Java
apache-2.0
2,298
//*******************************************************************************************// // // // Download Free Evaluation Version From: https://bytescout.com/download/web-installer // // ...
bytescout/ByteScout-SDK-SourceCode
PDF.co Web API/PDF Classifier/JavaScript/Classify PDF From URL (jQuery)/program.js
JavaScript
apache-2.0
2,113
/* Copyright 2015 Verloka Vadim, http://ogy.pp.ua 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 U...
ogycode/JesusPassword
src/Windows/Unsupported projects/Jesus password/assets/core/Site.cs
C#
apache-2.0
1,134
/* * Copyright 2017 Benedikt Ritter * * 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...
britter/bootify-testpyramid
src/test/java/com/github/britter/bootifytestpyramid/domain/WeightTest.java
Java
apache-2.0
2,642
package com.occar.test.rest; import javax.ws.rs.FormParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; @Path("/db") public interface DBRestClient { @POST @Produces(MediaType.APPLICATION_JSON) public Response que...
richygreat/service
src/test/java/com/occar/test/rest/DBRestClient.java
Java
apache-2.0
385
/******************************************************************************* * * This file is part of iBioSim. Please visit <http://www.async.ece.utah.edu/ibiosim> * for the latest version of iBioSim. * * Copyright (C) 2017 University of Utah * * This library is free software; you can redistribute it and/o...
MyersResearchGroup/iBioSim
verification/src/main/java/edu/utah/ece/async/lema/verification/platu/platuLpn/io/PlatuGrammarLexer.java
Java
apache-2.0
77,940
/* * Copyright 2015 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 applica...
ericbottard/spring-cloud-stream
spring-cloud-stream-samples/transform/src/main/java/demo/TransformApplication.java
Java
apache-2.0
1,079
/* * Copyright 2013-2015 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...
4finance/spring-cloud-zookeeper
spring-cloud-zookeeper-discovery/src/main/java/org/springframework/cloud/zookeeper/discovery/dependency/DependenciesNotPassedCondition.java
Java
apache-2.0
1,832
import json import random from datetime import datetime, timedelta import hashlib from django.http import HttpResponse, JsonResponse from django.shortcuts import render_to_response from django.template import loader from django.utils import encoding from core.grafana.GrafanaES import Grafana from core.grafana.QueryES...
PanDAWMS/panda-bigmon-core
core/grafana/views.py
Python
apache-2.0
19,477
package org.stellasql.stella.session; public interface ResultTabHandler { public void closeSelectedTab(); public void selectNextTab(); public void selectPreviousTab(); }
shocksm/stella
src/main/java/org/stellasql/stella/session/ResultTabHandler.java
Java
apache-2.0
187
package com.sequenceiq.cloudbreak.service.user; import javax.inject.Inject; import org.springframework.stereotype.Service; import com.sequenceiq.cloudbreak.api.endpoint.v4.userprofile.responses.UserProfileV4Response; import com.sequenceiq.cloudbreak.auth.crn.Crn; import com.sequenceiq.cloudbreak.auth.altus.Entitleme...
hortonworks/cloudbreak
core/src/main/java/com/sequenceiq/cloudbreak/service/user/UserProfileDecorator.java
Java
apache-2.0
720
# coding=utf-8 # Copyright 2020 The TF-Agents 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 la...
tensorflow/agents
tf_agents/trajectories/trajectory_test.py
Python
apache-2.0
14,383
package com.hunt.system.exception; /** * @Author ouyangan * @Date 2016/10/29/17:32 * @Description */ public class ForbiddenIpException extends Exception { /** * Constructs a new exception with the specified detail message. The * cause is not initialized, and may subsequently be initialized by *...
Ouyangan/hunt-admin
hunt-web/src/main/java/com/hunt/system/exception/ForbiddenIpException.java
Java
apache-2.0
597
/* Copyright 2015 Chris Hannon Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
Norhaven/FluentBoilerplate
DotNet/FluentBoilerplate/PublicContract/Traits/IRolesBasedTrait.cs
C#
apache-2.0
1,638
package www.huangchengdu.com.a11_filepersistencetest; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { ...
huang303513/AndroidBasicCommonDemos
11_FilePersistenceTest/app/src/test/java/www/huangchengdu/com/a11_filepersistencetest/ExampleUnitTest.java
Java
apache-2.0
405
class yamMessageHandlerBase(object): """ Base class for message handlers for a :class:`ZMQProcess`. Inheriting classes only need to implement a handler function for each message type. It must assign the protobuf Message class to self.cls and create a mapping of message types to handler functions ...
dpquigl/YAM
src/pyyam/yam/handlers/yamMessageHandlerBase.py
Python
apache-2.0
1,148
'use strict'; /** * Grunt - clean * * Url: https://github.com/gruntjs/grunt-contrib-clean */ module.exports = ( grunt, config ) => { return { // clean destination of intermediares all : { options : { force : true, // caution, this is to allow deletion outside of cwd }, files : {...
katallaxie/generator-angular2-ts
templates/app/grunt/clean.js
JavaScript
apache-2.0
394
/* * Copyright 2016-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...
vschs007/buck
src/com/facebook/buck/versions/VersionedTargetGraphBuilder.java
Java
apache-2.0
19,928
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.policies; import org.eclipse.gef.commands.Command; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.APIResourceEndpointCreateCommand; import org.wso2.developers...
rajeevanv89/developer-studio
esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/policies/MediatorFlowMediatorFlowCompartment14ItemSemanticEditPolicy.java
Java
apache-2.0
15,236
using Nancy; public class HomeModule : NancyModule { public HomeModule() { Get("/", args => "Aloha from .NET, using the NancyFX framework. This is version 2.0 of this program."); Get("/os", x => { return System.Runtime.InteropServices.RuntimeInfo...
redhat-dotnet-msa/aloha
HomeModule.cs
C#
apache-2.0
375
package com.planet_ink.coffee_mud.Abilities.Spells; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import...
oriontribunal/CoffeeMud
com/planet_ink/coffee_mud/Abilities/Spells/Spell_CombatPrecognition.java
Java
apache-2.0
6,760
package edu.neu.coe.info6205; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Scanner; /* * This is program to check whether the tickets have been used by students. It will take...
rchillyard/INFO6205
src/main/java/edu/neu/coe/info6205/TicketChecker.java
Java
apache-2.0
4,562
"""Base configuration implementation.""" # Copyright (C) 2015 Brad Cowie, Christopher Lorier and Joe Stringer. # Copyright (C) 2015 Research and Education Advanced Network New Zealand Ltd. # Copyright (C) 2015--2018 The Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use ...
wackerly/faucet
faucet/conf.py
Python
apache-2.0
5,573
/* * Copyright (C) 2015 Intel 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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
android-art-intel/marshmallow
art-extension/opttests/src/OptimizationTests/ShortLeafMethodsInlining/InvokeVirtual_add_int_lit16_001/Main.java
Java
apache-2.0
1,083
/* * Copyright 2012-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
ihoneymon/spring-boot
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetricsFilterAutoTimedTests.java
Java
apache-2.0
3,712
// GUI Animator FREE // Version: 1.1.0 // Compatilble: Unity 5.4.0 or higher, see more info in Readme.txt file. // // Developer: Gold Experience Team (https://www.ge-team.com) // // Unity Asset Store: https://www.assetstore.unity3d.com/en/#!/content/58843 // GE Store: https://www.ge-team.com/en/prod...
Kuraikari/Modern-Times
Modern Time (J)RPG/Assets/Plugins/GUI Animator/GUI Animator FREE/Demo (CSharp)/Scripts/GA_FREE_OpenOtherScene.cs
C#
apache-2.0
4,394
//+build linux package notification import "os/exec" func Send(title, summary string) error { return exec.Command("notify-send", title, summary).Run() }
jamesrr39/goutil
notification/notification_linux.go
GO
apache-2.0
157
define(function(require, exports, module) { var EditorManager = brackets.getModule("editor/EditorManager"); var ExtensionUtils = brackets.getModule("utils/ExtensionUtils"); var HTMLUtils = brackets.getModule("language/HTMLUtils"); var PreferencesManager = brackets.getModule("preference...
HunseopJeong/WATT
libs/brackets-server/embedded-ext/tau-document/tau-document-parser.js
JavaScript
apache-2.0
5,250
/* * Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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...
xasx/camunda-bpm-platform
javaee/ejb-service/src/main/java/org/camunda/bpm/container/impl/ejb/EjbProcessEngineService.java
Java
apache-2.0
2,196
package fr.sii.ogham.core.util; import static java.util.stream.Collectors.toList; import java.util.ArrayList; import java.util.List; /** * Helper class that registers objects with associated priority. Each registered * object is then returned as list ordered by priority. The higher priority * value comes first in...
groupe-sii/ogham
ogham-core/src/main/java/fr/sii/ogham/core/util/PriorizedList.java
Java
apache-2.0
2,496
/* * Copyright 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 applicable ...
CarloMicieli/java8-for-hipsters
src/test/java/io/github/carlomicieli/java8/football/PlayerTests.java
Java
apache-2.0
5,683
/* * Copyright 2016-present Open Networking Laboratory * * 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...
donNewtonAlpha/onos
drivers/lumentum/src/main/java/org/onosproject/drivers/lumentum/LumentumSdnRoadmFlowRuleProgrammable.java
Java
apache-2.0
17,118
/* * Copyright (C) 2010 Ryszard Wiśniewski <brut.alll@gmail.com> * Copyright (C) 2010 Connor Tumbleson <connor.tumbleson@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
iBotPeaches/Apktool
brut.apktool/apktool-lib/src/test/java/brut/androlib/aapt2/BuildAndDecodeTest.java
Java
apache-2.0
5,032
/** * 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"); yo...
everttigchelaar/camel-svn
camel-core/src/test/java/org/apache/camel/impl/ShutdownRouteGracefulTimeoutTriggerTest.java
Java
apache-2.0
2,779
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.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/license...
ruspl-afed/dbeaver
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/model/SQLiteSQLDialect.java
Java
apache-2.0
1,391
// Copyright 2017 MongoDB Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
mongodb/mongo-cxx-driver
benchmark/multi_doc/gridfs_download.hpp
C++
apache-2.0
2,561
#!/usr/bin/env python # import libs import unittest import sys import os import random import uuid # import classes import analytics.utils.misc as misc import analytics.exceptions.exceptions as ex import analytics.service as service from analytics.datamanager.datamanager import DataManager class IntegrationTestSeque...
sadikovi/pulsar
analytics/tests/integrationtest_service.py
Python
apache-2.0
3,628
// Copyright 2016 PlanBase Inc. & Glen Peterson // // 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...
GlenKPeterson/UncleJim
src/main/java/org/organicdesign/fp/tuple/Tuple12.java
Java
apache-2.0
6,112
package com.zhongdan.lobby.bl.ai.chinesechess.engine; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.RandomAccessFile; import java.net.URL; import java.util.Calendar; import java.util.Random; import org.apache.commons.logging.Log...
dyzhxsl3897/goliveiptv
lobby/src/main/java/com/zhongdan/lobby/bl/ai/chinesechess/engine/SearchEngine.java
Java
apache-2.0
29,025
/** * 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...
aaronwalker/camel
components/camel-mail/src/test/java/org/apache/camel/component/mail/MailSplitAttachmentsTest.java
Java
apache-2.0
3,594
/* * Copyright 2017 Mahesh Gaya * * 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...
maheshgaya/lips-with-maps
android/src/main/java/edu/drake/research/android/lipswithmaps/adapter/WifiAdapter.java
Java
apache-2.0
2,440
import Vue from 'vue'; import axios from 'axios'; import VueAxios from 'vue-axios'; Vue.use(VueAxios, axios); let ajax = (options) => { let p = new Promise(function(resolve, reject) { Vue.axios(options).catch(err => { if(err.code === 401) { //未登录 login().catch(err...
dgmpk/vue-music-app
src/assets/js/request.js
JavaScript
apache-2.0
659
import requests class Client(object): def __init__(self, tornado_server): self.tornado_server = tornado_server @property def base_url(self): return "http://localhost:{}/api/v1".format(self.tornado_server.port) def request(self, method, url, **kwargs): headers = {} ...
dropbox/notouch
tests/api_tests/util.py
Python
apache-2.0
1,077
package com.braulio.cassule.designfocus.fragment; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.La...
braulio94/Quadro
app/src/main/java/com/braulio/cassule/designfocus/fragment/PostListFragment.java
Java
apache-2.0
6,726
using System; namespace Com.Koushikdutta.Async.Wrapper { partial interface IAsyncSocketWrapper { new void Close(); } }
thefactory/AndroidAsync-Sharp
Additions/IAsyncSocketWrapper.cs
C#
apache-2.0
141
/*global Phaser, Assets, Screen*/ var Player = function (game) { "use strict"; this.game = game; this.sprite = null; }; Player.DISTANCE_TO_BORDER = 50; Player.VELOCITY_X = 300; Player.SPRITE_ANCHOR_X = 0.5; Player.SPRITE_ANCHOR_Y = 0.5; Player.prototype = { create: function () { "use strict"; ...
fpbfabio/river-raid-remake
js/game/player.js
JavaScript
apache-2.0
1,075
/* * 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 ...
dkhwangbo/druid
processing/src/main/java/org/apache/druid/query/dimension/RegexFilteredDimensionSpec.java
Java
apache-2.0
4,458
from django.conf.urls import patterns, url urlpatterns = patterns('accounts.views', url(r'^$', 'home_view', name='home'), url(r'^login/$', 'login_view', name='login'), url(r'^logout/$', 'logout_view', name='logout'), url(r'^register/$', 'register_view', name='register'), url(r'^password/$', 'password_vi...
goncha/django-accounts
urls.py
Python
apache-2.0
449