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 |
|---|---|---|---|---|---|
/*
* 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 |
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 |
/*
* 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 |
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 |
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 |
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 |
/*
* 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 |
// 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 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 |
/*
* 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 |
// 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 |
/*
* 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 |
/*
* 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... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/BiddingStrategySimulationName.java | Java | apache-2.0 | 10,111 |
import React, { useContext } from 'react';
import { css, cx } from 'emotion';
import { CompletionItem, selectThemeVariant, ThemeContext } from '../..';
import { GrafanaTheme, renderMarkdown, textUtil } from '@savantly/sprout-api';
const getStyles = (theme: GrafanaTheme, height: number, visible: boolean) => {
return... | savantly-net/sprout-platform | frontend/libs/sprout-ui/src/components/Typeahead/TypeaheadInfo.tsx | TypeScript | apache-2.0 | 1,884 |
/**
* Copyright (C) 2011 Xavier Jodoin (xavier@jodoin.me)
*
* 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 ... | xjodoin/torpedoquery | src/main/java/org/torpedoquery/jpa/TorpedoFunction.java | Java | apache-2.0 | 14,719 |
# pylint: skip-file
# flake8: noqa
# pylint: disable=too-many-lines
# noqa: E301,E302,E303,T001
class OpenShiftCLIError(Exception):
'''Exception class for openshiftcli'''
pass
ADDITIONAL_PATH_LOOKUPS = ['/usr/local/bin', os.path.expanduser('~/bin')]
def locate_oc_binary():
''' Find and return oc binar... | akubicharm/openshift-ansible | roles/lib_openshift/src/lib/base.py | Python | apache-2.0 | 21,165 |
package ru.job4j.testtask;
/**
* Class Account.
*/
public class Account {
public double value;
public String requisites;
/**
* Constructor.
* @param value amount of the money.
* @param requisites user's account.
*/
public Account(double value, String requisites) {
this.v... | TatyanaAlex/tfukova | chapter_003/src/main/java/ru/job4j/testtask/Account.java | Java | apache-2.0 | 919 |
# Copyright (c) 2013 Mirantis 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 writ... | dmitryilyin/mistral | mistral/tests/unit/engine/default/test_executor.py | Python | apache-2.0 | 4,084 |
package com.osiris.component.bootstrap.menu.render;
import java.io.IOException;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;
import org.primefaces.renderkit.CoreRenderer;
import com.osiris.compo... | CristianUrbainski/osiris-faces | osiris-faces/src/main/java/com/osiris/component/bootstrap/menu/render/MenuItemRender.java | Java | apache-2.0 | 2,535 |
import codecs
from pandas import read_csv
import argparse
import numpy as np
import codecs
import os
FIELD_NAMES = ["context_id","target","target_pos","target_position","gold_sense_ids","predict_sense_ids", "golden_related","predict_related","context"]
FIELD_TYPES = {"context_id":np.dtype(str),"target":np.dtype(str),"... | mpelevina/context-eval | semeval_2013_13/dataset2key.py | Python | apache-2.0 | 2,427 |
/*
* $Id: HtmlTag.java 54929 2004-10-16 16:38:42Z germuska $
*
* Copyright 1999-2004 The Apache Software 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:... | codelibs/cl-struts | src/share/org/apache/struts/taglib/html/HtmlTag.java | Java | apache-2.0 | 6,309 |
package liquibase.snapshot.jvm;
import java.util.stream.Collectors;
import liquibase.Scope;
import liquibase.database.Database;
import liquibase.database.core.*;
import liquibase.exception.DatabaseException;
import liquibase.exception.UnexpectedLiquibaseException;
import liquibase.executor.ExecutorService;
import liqu... | liquibase/liquibase | liquibase-core/src/main/java/liquibase/snapshot/jvm/UniqueConstraintSnapshotGenerator.java | Java | apache-2.0 | 30,661 |
/*
* Copyright (c) 2015 Complexible Inc. <http://complexible.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 a... | Complexible/basecrm | main/src/com/complexible/basecrm/Deal.java | Java | apache-2.0 | 2,438 |
<?php
/**
* 2013-11-25 上午12:08:30
* @author x.li
* @abstract
*/
class Product_Model_Series extends Application_Model_Db
{
/**
* 表名、主键
*/
protected $_name = 'product_catalog_series';
protected $_primary = 'id';
public function getData()
{
$sql = $this->select()
... | eoasoft/evolve | application/modules/product/models/Series.php | PHP | apache-2.0 | 1,314 |
/*
* Copyright (C) 2015 Orange
*
* 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... | Orange-OpenSource/fiware-ngsi-api | ngsi-client/src/main/java/com/orange/ngsi/model/UpdateAction.java | Java | apache-2.0 | 1,228 |
package com.github.florent37.camerafragment.internal.timer;
import com.github.florent37.camerafragment.internal.utils.DateTimeUtils;
/*
* Created by florentchampigny on 13/01/2017.
*/
public class TimerTask extends TimerTaskBase implements Runnable {
public TimerTask(TimerTaskBase.Callback callback) {
... | mkrtchyanmnatsakan/DemoAppHelloWord | camerafragment/src/main/java/com/github/florent37/camerafragment/internal/timer/TimerTask.java | Java | apache-2.0 | 1,308 |
package fr.openwide.core.commons.util.registry;
import java.io.Closeable;
import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.util.Objects;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.collect.Sets;
... | openwide-java/owsi-core-parent | owsi-core/owsi-core-components/owsi-core-component-commons/src/main/java/fr/openwide/core/commons/util/registry/TFileRegistry.java | Java | apache-2.0 | 4,967 |
/*
Copyright 2014 base2Services
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... | base2Services/kagura | shared/reporting-core/src/main/java/com/base2/kagura/core/report/configmodel/JDBCReportConfig.java | Java | apache-2.0 | 2,350 |
<?php
final class ManiphestTaskResultListView extends ManiphestView {
private $tasks;
private $savedQuery;
private $canEditPriority;
private $canBatchEdit;
private $showBatchControls;
public function setSavedQuery(PhabricatorSavedQuery $query) {
$this->savedQuery = $query;
return $this;
}
pu... | akkakks/phabricator | src/applications/maniphest/view/ManiphestTaskResultListView.php | PHP | apache-2.0 | 7,755 |
#region license
// Copyright 2014 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... | JetBrains/resharper-angularjs | src/resharper-angularjs/Psi/AngularJs/References/AngularJsIncludeFileReferenceProvider.cs | C# | apache-2.0 | 4,390 |
package com.github.windchopper.common.fx.behavior;
import javafx.geometry.*;
import javafx.scene.Cursor;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Region;
import javafx.stage.Stage;
import javafx.stage.Window;
import java.util.stream.Stream;
import static java.util.Arrays.stream;
public class... | windchopper/common | common-fx/src/main/java/com/github/windchopper/common/fx/behavior/WindowMoveResizeBehavior.java | Java | apache-2.0 | 12,341 |
package com.vaadin.book.applications;
import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.*;
import com.vaadin.ui.UriFragmentUtility.FragmentChangedEvent;
import com.vaadin.ui.UriFragmentUtility.FragmentChangedListener;
// BEGIN-EXAMPL... | BillHan/book-examples-v6 | src/main/java/com/vaadin/book/applications/UriFragmentApplication.java | Java | apache-2.0 | 2,141 |
package resource
import (
"fmt"
"net/url"
"strings"
"github.com/rs/rest-layer/schema"
)
// Index is an interface defining a type able to bind and retrieve resources
// from a resource graph.
type Index interface {
// Bind a new resource at the "name" endpoint
Bind(name string, s schema.Schema, h Storer, c Conf... | elmgone/coligui | vendor/github.com/rs/rest-layer/resource/index.go | GO | apache-2.0 | 3,120 |
from django.test import TestCase
from django.utils.timezone import utc
from datetime import datetime
import json
import logging
import mock
from dbkeeper.models import Organization, Team, Setting
from piservice.models import PiStation, PiEvent
import scoreboard.views as target
def _mocked_utcNow():
return datetime... | brata-hsdc/brata.masterserver | workspace/ms/scoreboard/tests/test_dock.py | Python | apache-2.0 | 49,951 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var stylus = require('stylus');
var nib = require('nib');
var passport = require('passport');
var Ht... | Hamcker/PersonalExit | app.js | JavaScript | apache-2.0 | 4,622 |
/*
* Copyright (C) 2016 Google 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 ... | kuri65536/sl4a | android/Utils/src/com/googlecode/android_scripting/future/FutureResult.java | Java | apache-2.0 | 1,701 |
package com.datalint.open.server.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import com.datalint.open.shared.general.ILineReader;
public class LineReader implements ILineReader {
private final BufferedReader read... | datalint/open | Open/src/main/java/com/datalint/open/server/io/LineReader.java | Java | apache-2.0 | 669 |
<?php
declare(strict_types=1);
/*
* +----------------------------------------------------------------------+
* | ThinkSNS Plus |
* +----------------------------------------------------------------------+
* | Copyright (c) 2016-Present ZhiYiChuangXiang Technol... | slimkit/thinksns-plus | app/Http/Controllers/APIs/V2/PingPlusPlusChargeWebHooks.php | PHP | apache-2.0 | 3,568 |
<!DOCTYPE html>
<html>
<head>
<title>Ferramenta X</title>
</head>
<body>
<?php
require("template.php");
?>
<div class="container" align="center">
<h2>Login</h2>
<p>Realize o login para acessar a plataforma NERD POWER</p><br>
<form name="form1" action="proc/proc_login.php" method="POST" id="IdForm1">
<di... | IsaacR2/FerramentaX | login.php | PHP | apache-2.0 | 957 |
// Copyright 2020 the Exposure Notifications Verification Server 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... | google/exposure-notifications-verification-server | pkg/controller/issueapi/send_sms.go | GO | apache-2.0 | 5,453 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.InputListItem.
sap.ui.define(['jquery.sap.global', './ListItemBase', './library'],
function(jQuery, ListIt... | SuicidePreventionSquad/SeniorProject | resources/sap/m/InputListItem-dbg.js | JavaScript | apache-2.0 | 1,780 |
/**
* Created by Janeluo on 2016/8/13 0013.
*/
package com.janeluo.jfinalplus; | yangyining/JFinal-plus | src/main/java/com/janeluo/jfinalplus/package-info.java | Java | apache-2.0 | 80 |
package com.likya.tlossw.utils;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import org.apache.commons.collections.iterators.ArrayIterator;
import org.apache.log4j.Logger;
import com.likya.tlos.model.xmlbeans.data.JobListDocument.JobList;
import com.likya.tlos.model.xmlbeans.data.... | likyateknoloji/TlosSWGroup | TlosSW_V1.0/src/com/likya/tlossw/utils/CpcUtils.java | Java | apache-2.0 | 12,211 |
package org.ovirt.engine.core.common.businessentities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt... | raksha-rao/gluster-ovirt | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Quota.java | Java | apache-2.0 | 12,992 |
/**
* 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... | yahoo/pulsar | pulsar-broker-common/src/main/java/org/apache/pulsar/broker/resources/NamespaceResources.java | Java | apache-2.0 | 3,049 |
/*
* Created on Nov 29, 2007
*
* Copyright (c), 2007 Don Branson. 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... | DonBranson/DonsProxy | src/main/com/moneybender/proxy/channels/decorators/ThrottleDecorator.java | Java | apache-2.0 | 1,299 |
<?php echo e(Form::open(['url' => route('lotes.store'), 'class'=>'form-horizontal', 'role'=>"form"])); ?>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Criar Lote</h4>
</div>
<div class="modal-body">
<div cla... | System3D/gestor-de-lotes | storage/framework/views/96fd683b3799ea6bb61223346be7d37255bde268.php | PHP | apache-2.0 | 3,354 |
// Copyright 2010-2014, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | kishikawakatsumi/Mozc-for-iOS | src/android/tests/src/com/google/android/inputmethod/japanese/testing/MozcLayoutUtil.java | Java | apache-2.0 | 3,609 |
/*
* Copyright 2021 ThoughtWorks, 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... | marques-work/gocd | spark/spark-base/src/main/java/com/thoughtworks/go/spark/HtmlErrorPage.java | Java | apache-2.0 | 1,606 |
<?php
/**
* THE CODE IN THIS FILE WAS GENERATED FROM THE EBAY WSDL USING THE PROJECT:
*
* https://github.com/davidtsadler/ebay-api-sdk-php
*
* Copyright 2014 David T. Sadler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | emullaraj/ebay-sdk-php | src/DTS/eBaySDK/Trading/Types/CategoryType.php | PHP | apache-2.0 | 5,200 |
export interface CommentJson {
body: string;
color?: string;
size?: number;
duration?: number;
easing?: string;
}
export interface StampJson {
path?: string;
url?: string;
duration?: number;
easing?: string;
}
export interface Setting {
key: string;
value: string;
}
export interface Stamp {
i... | chimerast/niconico-speenya | messages/index.ts | TypeScript | apache-2.0 | 389 |
/*
* Copyright 2012 - 2015 Manuel Laggner
*
* 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 ... | mlaggner/tinyMediaManager | src/org/tinymediamanager/core/movie/MovieSettings.java | Java | apache-2.0 | 32,049 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/utils/async/some-by/lib/some_by.js | JavaScript | apache-2.0 | 3,300 |
/*
* Copyright 2014 Josselin Pujo
*
* 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... | neuneu2k/SEL | JetbrainsPlugin/src/fr/assoba/open/sel/jetbrains/SelElementType.java | Java | apache-2.0 | 923 |
package com.hxtech.offer.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.hxtech.offer.R;
public class CanonFragment extends BaseFragment {
public static CanonFragment newInstance() {
CanonFragment fragment = n... | offerHere/offer | app/src/main/java/com/hxtech/offer/fragments/CanonFragment.java | Java | apache-2.0 | 877 |
/* Copyright (c) 2015, Google Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | apple/swift-nio-ssl | Sources/CNIOBoringSSL/ssl/ssl_buffer.cc | C++ | apache-2.0 | 8,307 |
package de.kevinschie.SimulatorListener;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.URL;
import java.net.URLConnection;
public class SimulationListener {
ObjectIn... | kevinschie/carGateway | src/de/kevinschie/SimulatorListener/SimulationListener.java | Java | apache-2.0 | 2,431 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/db/VTMatchMarkupItemTableDBAdapterV0.java | Java | apache-2.0 | 5,056 |
package liquibase.datatype.core;
import liquibase.database.Database;
import liquibase.database.core.DB2Database;
import liquibase.database.core.DerbyDatabase;
import liquibase.database.core.FirebirdDatabase;
import liquibase.database.core.HsqlDatabase;
import liquibase.database.core.InformixDatabase;
import liquibase.... | adriens/liquibase | liquibase-core/src/main/java/liquibase/datatype/core/BooleanType.java | Java | apache-2.0 | 5,817 |
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | GoogleCloudPlatform/mlops-with-vertex-ai | src/common/datasource_utils.py | Python | apache-2.0 | 2,483 |
<?php
if(isset($_SESSION["bird"])) {
$bird_info = $_SESSION["bird"];
$observers_list = $db->get_observers($bird_info["id_kentish_plover"]);
$observers_array = array();
while($observers = $observers_list->fetch()) {
array_push($observers_array, array(
"date" => $observers["date"],
"town" => $observers["tow... | Carmain/Banding-tracking | content/obs_sheet.php | PHP | apache-2.0 | 3,621 |
"""Insteon base entity."""
import functools
import logging
from pyinsteon import devices
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
)
from homeassistant.helpers.entity import DeviceInfo, Entity
from .const import (
... | aronsky/home-assistant | homeassistant/components/insteon/insteon_entity.py | Python | apache-2.0 | 5,749 |
package com.monkeyk.os.service.dto;
import com.monkeyk.os.domain.oauth.ClientDetails;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* 2016/6/8
*
* @author Shengzhao Li
*/
public class ClientDetailsListDto implements Serializable {
private static final long serialVersionU... | monkeyk/oauth2-shiro | authz/src/main/java/com/monkeyk/os/service/dto/ClientDetailsListDto.java | Java | apache-2.0 | 1,151 |
/*******************************************************************************
* 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.
*
*... | RobAltena/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/api/loader/SourceFactory.java | Java | apache-2.0 | 1,022 |
package ch.sourcepond.utils.fileobserver.impl;
import static org.mockito.Mockito.mock;
import ch.sourcepond.utils.fileobserver.impl.dispatcher.DefaultEventDispatcher;
import ch.sourcepond.utils.fileobserver.impl.replay.DefaultEventReplayFactory;
/**
* @author rolandhauser
*
*/
public class DefaultWorkspaceTest {
... | SourcePond/fileobserver-impl | src/test/java/ch/sourcepond/utils/fileobserver/impl/DefaultWorkspaceTest.java | Java | apache-2.0 | 578 |
//MongoDB script to Update the Wing Directors list.
//The list includes Wing Directors and Assistants only.
//
//History:
// 15Nov21 MEG Clean spaces from email addresses.
// 07Mar21 MEG Exclude assistants
// 27Jan21 MEG Created.
var DEBUG = false;
var db = db.getSiblingDB( 'NHWG');
// Google Group of interest
var ba... | ifrguy/NHWG-MIMS | src/Groups/wing_directors.js | JavaScript | apache-2.0 | 4,806 |
package ec.master.assignment1.selection.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import ec.master.assignment1.model.Individual;
import ec.master.assignment1.selection.Selector;
/**
* @ClassName: FPSelection
* @Description: implementation of fitn... | nettree/EC | EC_Assignment1/src/ec/master/assignment1/selection/impl/FPSelection.java | Java | apache-2.0 | 1,373 |
/*
* Copyright 2017 Nobuki HIRAMINE
*
* 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 ... | nobukihiramine/ModelViewerTutorial | app/src/main/java/com/hiramine/modelfileloader/StlFileLoader.java | Java | apache-2.0 | 6,007 |