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 |
|---|---|---|---|---|---|
// File: backpropagator.cc
// Author: Karl Moritz Hermann (mail@karlmoritz.com)
// Created: 22-04-2013
// Last Update: Thu 03 Oct 2013 11:38:39 AM BST
/*------------------------------------------------------------------------
* Description: <DESC>
*
*-----------------------------------------------------------------... | karlmoritz/oxcvsm | src/models/ccaeb/backpropagator.cc | C++ | apache-2.0 | 6,141 |
/*
* Copyright 2012 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 applicab... | thomas-moulard/gazebo-deb | tools/gzsdf.cc | C++ | apache-2.0 | 4,148 |
/*
* 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... | mengmoya/onos | providers/pcep/tunnel/src/test/java/org/onosproject/provider/pcep/tunnel/impl/PcepTunnelAddedTest.java | Java | apache-2.0 | 29,365 |
GBG.EquipmentArcs = {
shields:{buclet:{
orientation:-45,
deepLevel:1,
type:['block'],
widthLevels:[{from:40,to:60, color: '#3a3', cost:0},
{from:35,to:40, color: '#8a3', cost:1},
{from:30,to:35, color: '#777', cost:2... | Raising/GladiatorBoardGame | js/configurable.js | JavaScript | apache-2.0 | 3,052 |
/*
* 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... | jtransc/jtransc | jtransc-rt/src/java/time/format/ResolverStyle.java | Java | apache-2.0 | 897 |
$_L(["java.util.Vector"],"java.util.Stack",["java.util.EmptyStackException"],function(){
c$=$_T(java.util,"Stack",java.util.Vector);
$_M(c$,"empty",
function(){
return this.elementCount==0;
});
$_M(c$,"peek",
function(){
try{
return this.elementData[this.elementCount-1];
}catch(e){
if($_e(e,IndexOutOfBoundsE... | abego/j2slib | src/main/j2slib/java/util/Stack.js | JavaScript | apache-2.0 | 896 |
/**
* Copyright 2015 Netflix, 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 ... | NiteshKant/zuul | zuul-core/src/main/java/com/netflix/zuul/filters/http/HttpInboundSyncFilter.java | Java | apache-2.0 | 1,063 |
<?php
/* Copyright (C) 2014-2015 apoyl.com. All Rights Reserved.
/* Author:凹凸曼
/* Email: jar-c@163.com
/* 试图类 Lyc\View\View.class.php
*/
namespace Lyc\View;
class View {
protected $tpldir='';
protected $suffix='.phtml';
protected $vars=array();
public fu... | apoyl/LycPHP | Lyc/View/View.class.php | PHP | apache-2.0 | 1,138 |
// Copyright 2017-present Kirill Danshin and Gramework contributors
// Copyright 2019-present Highload LTD (UK CN: 11893420)
//
// 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... | gramework/gramework | context.go | GO | apache-2.0 | 6,234 |
package me.chanjar.weixin.common.bean.menu;
import java.io.Serializable;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
/**
* menu rule.
*
* @author Daniel Qian
*/
@Data
public class WxMenuRule implements Serializable {
private st... | Wechat-Group/WxJava | weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/menu/WxMenuRule.java | Java | apache-2.0 | 878 |
#!/usr/bin/python
#
# Copyright 2018 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 ag... | google/sg2im | scripts/strip_checkpoint.py | Python | apache-2.0 | 2,313 |
package poussecafe.environment;
import java.util.Collection;
import java.util.Objects;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import poussecafe.messaging.Message;
import poussecafe.processing.ListenersSet;
import poussecafe.util.ReflectionUtils;
public class MessageListenerRegi... | pousse-cafe/pousse-cafe | pousse-cafe-core/src/main/java/poussecafe/environment/MessageListenerRegistrar.java | Java | apache-2.0 | 1,787 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class MasterException(Exception):
pass
class PathException(Exception):
pass
class CommunicableException(Exception):
pass
class LiveActivityException(Exception):
pass
class StatusableException(Exception):
pass
class ActivityException(Exception):
... | EndPointCorp/interactivespaces-python-api | interactivespaces/exception.py | Python | apache-2.0 | 656 |
using System;
namespace Typewriter.Configuration
{
/// <summary>
/// Determines how partial classes and interfaces are rendered.
/// </summary>
public enum PartialRenderingMode
{
/// <summary>
/// Partial types are rendered as defined in the c# source containing only the parts defi... | frhagn/Typewriter | src/CodeModel/Configuration/PartialRenderingMode.cs | C# | apache-2.0 | 1,005 |
/*
This question is from https://leetcode.com/problems/pacific-atlantic-water-flow/
Difficulty: medium
Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top edges of the matrix and the "Atlantic ocean" touches the right and... | yehchilai/IQ | Medium/417 Pacific Atlantic Water Flow.java | Java | apache-2.0 | 2,462 |
/*
* K-scope
* Copyright 2012-2013 RIKEN, Japan
*
* 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 ... | K-scope/K-scope | src/jp/riken/kscope/action/ProjectPropertyAction.java | Java | apache-2.0 | 2,165 |
/**
*
*/
/**
* @author Jerry Goodnough
*
*/
package org.socraticgrid.hl7.services.eps.accessclients.publication; | SocraticGrid/Services-Backup | VACDS-EPS-Service-Library/src/main/java/org/socraticgrid/hl7/services/eps/accessclients/publication/package-info.java | Java | apache-2.0 | 118 |
// Generated from /POI/java/org/apache/poi/ss/formula/ptg/ExternSheetNameResolver.java
#include <org/apache/poi/ss/formula/ptg/ExternSheetNameResolver.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/Object.hpp>
#include <java/lang/String.hpp>
#include ... | pebble2015/cpoi | src/org/apache/poi/ss/formula/ptg/ExternSheetNameResolver.cpp | C++ | apache-2.0 | 4,078 |
package org.bndtools.rt.browserkit.api;
public interface BrowserKitConstants {
/**
* Specifies the initial title of the application window.
*/
public static final String WINDOW_TITLE = "browserkit.title";
}
| bndtools/bndtools-rt | org.bndtools.rt.browserkit/src/org/bndtools/rt/browserkit/api/BrowserKitConstants.java | Java | apache-2.0 | 215 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | xushiwei/nova | nova/network/manager.py | Python | apache-2.0 | 51,086 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr_FR">
<context>
<name>IotikActivator</name>
<message>
<location filename="../../../../plugins/robots/generators/iotik/iotikRuCGeneratorLibrary/dialogs/iotikActivator.ui" line="37"/>
<source>Activation</source>
... | Victor-Y-Fadeev/qreal | qrtranslations/fr/plugins/robots/iotikRuCGeneratorLibrary_fr.ts | TypeScript | apache-2.0 | 4,171 |
package ru.qatools.school.twister.web.elements;
import org.openqa.selenium.support.FindBy;
import ru.yandex.qatools.htmlelements.element.Button;
import ru.yandex.qatools.htmlelements.element.HtmlElement;
import ru.yandex.qatools.htmlelements.element.TextBlock;
import ru.yandex.qatools.htmlelements.element.TextInput;
... | autoschool/twister | src/test/java/ru/qatools/school/twister/web/elements/ProfileForm.java | Java | apache-2.0 | 540 |
/*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | hotpads/datarouter | datarouter-batch-size-optimizer/src/main/java/io/datarouter/batchsizeoptimizer/job/OpPerformanceRecordAggregationJob.java | Java | apache-2.0 | 3,269 |
using AugmentedSzczecin.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
namespace AugmentedSzczecin.Converters
{
public class OpeningToVisibilityConverter : IValueConverter
{
... | blstream/AugmentedSzczecin_WP | AugmentedSzczecin/AugmentedSzczecin/Converters/OpeningToVisibilityConverter.cs | C# | apache-2.0 | 813 |
import * as React from "react";
import { Trans } from "@lingui/macro";
import { Badge, designTokens as dt, Icon, Legacy } from "@dcos/ui-kit";
import { SystemIcons } from "@dcos/ui-kit/dist/packages/icons/dist/system-icons-enum";
import DateUtil from "../utils/DateUtil";
const YEAR = 31557600000;
const isOutdated = (l... | dcos/dcos-ui | src/js/components/LastUpdated.tsx | TypeScript | apache-2.0 | 1,334 |
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | google/schemaorg-java | src/main/java/com/google/schemaorg/core/impl/DepartActionImpl.java | Java | apache-2.0 | 14,918 |
/**********************************************************************************************************************
* 描述:
* 字典排序。
*
* 变更历史:
* 作者:李亮 时间:2017年01月04日 新建
*
*********************************************************************************************************************/
using S... | Wlitsoft/WeixinSDK | src/WeixinSDK/Message/Security/Crypto/DictionarySort.cs | C# | apache-2.0 | 1,269 |
/**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | spohnan/geowave | services/client/src/main/java/org/locationtech/geowave/service/client/BaseServiceClient.java | Java | apache-2.0 | 1,316 |
package com.site.blog.my.core.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
public class Blog {
private Long blogId;
private String blogTitle;
private String blogSubUrl;
private String blogCoverImage;
private Integer blogCategoryId;
private String blo... | ZHENFENG13/My-Blog | src/main/java/com/site/blog/my/core/entity/Blog.java | Java | apache-2.0 | 4,282 |
package sblib.bobsun.sblib.net;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import java.lang.reflect.Method;
import java.util.Objects;
import sblib.bobsun.sblib.net.annotations.NetworkResult;
/**
* Created by bobsun on 15-7-7.
*/
public abstract class NetworkOperation {
... | SpongeBobSun/SBLib | sblib/src/main/java/sblib/bobsun/sblib/net/NetworkOperation.java | Java | apache-2.0 | 1,329 |
/**
* 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... | dmvolod/camel | platforms/spring-boot/components-starter/camel-web3j-starter/src/main/java/org/apache/camel/component/web3j/springboot/Web3jComponentConfiguration.java | Java | apache-2.0 | 11,965 |
/*
* Copyright (c) 2012-2015 S-Core Co., 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 required by applicable ... | 5hk/webida-client | apps/ide/src/plugins/codeeditor/content-assist/file-server.js | JavaScript | apache-2.0 | 15,220 |
angular.module('JobsTrackerSpring')
.controller('PositionsEditCtrl', ['$scope', '$location', '$routeParams', 'PositionResource',
function ($scope, $location, $routeParams, PositionResource) {
'use strict';
$scope.submitLabel = 'Update';
$scope.position = PositionRe... | witty-pigeon/jobstracker-spring | src/main/webapp/WEB-INF/js/controllers/positions-edit-ctrl.js | JavaScript | apache-2.0 | 1,066 |
'use strict';
angular.module('dashboardApp')
.directive('hasAnyAuthority', ['Principal', function (Principal) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
var setVisible = function () {
element.removeClass('hidden');
... | SemanticCloud/SemanticCloud | Dashboard/src/main/webapp/scripts/components/auth/authority.directive.js | JavaScript | apache-2.0 | 2,342 |
package org.pikater.core.options.search;
import org.pikater.core.agents.experiment.search.Agent_GridSearch;
import org.pikater.core.ontology.subtrees.agentinfo.AgentInfo;
import org.pikater.core.ontology.subtrees.batchdescription.Search;
import org.pikater.core.ontology.subtrees.newoption.base.NewOption;
import org.pi... | tomkren/pikater | src/org/pikater/core/options/search/GridSearch_Box.java | Java | apache-2.0 | 1,696 |
/*
* Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.swing.plaf.basic;
import javax.swing.*;
import javax.swing.plaf.UIResource;
import java... | haikuowuya/android_system_code | src/javax/swing/plaf/basic/BasicIconFactory.java | Java | apache-2.0 | 6,470 |
# Copyright 2013 OpenStack 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 applicable law or agreed to in... | cernops/keystone | keystone/tests/unit/test_auth_plugin.py | Python | apache-2.0 | 7,772 |
/*
* Copyright 2012 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 applicab... | spyhak/mac_gazebo | gazebo/rendering/GpuLaser.cc | C++ | apache-2.0 | 22,898 |
package com.android.appypapy.utils;
import com.android.appypapy.messaging.AppySentenceMessage;
import com.android.appypapy.messaging.FavoriteSentenceMessage;
/**
* Created by kln on 27/11/2016.
*/
public class EnumUtils
{
public static AppySentenceMessage.SentenceReadTypes ordinalToSentenceReadType(int ordina... | Wawamaniac/AppyPapy | ApplyUI/src/main/java/com/android/appypapy/utils/EnumUtils.java | Java | apache-2.0 | 1,136 |
namespace EntityFrameworkHelper.Model
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("Agent")]
public partial class Agent
{
[System.Diagno... | luoyefeiwu/Jerry | Jerry/架构/EntityFrameworkHelper/Model/Agent.cs | C# | apache-2.0 | 3,852 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | nezirus/elasticsearch | core/src/main/java/org/elasticsearch/index/shard/LocalShardSnapshot.java | Java | apache-2.0 | 5,012 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.sena.ejemplotemplates.model.entities;
import java.io.Serializable;
import java.util.Collection;
import javax.persistenc... | SENA-CEET/1349397-Trimestre-4 | java/Servlets/ejemploTemplates/src/main/java/co/edu/sena/ejemplotemplates/model/entities/ListaChequeo.java | Java | apache-2.0 | 4,316 |
var u = Ti.Android != undefined ? 'dp' : 0;
//A window object which will be associated with the stack of windows
exports.AppWindow = function(args) {
var instance = Ti.UI.createWindow(args);
var view = Ti.UI.createView({
height : 40 + u,
width : 320 + u,
layout : 'horizontal',
top : 0 + u,
borderColor : '#... | fziegler/plates | Resources/views/main/AppWindow.js | JavaScript | apache-2.0 | 1,546 |
/*
* 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 ... | heriram/incubator-asterixdb | asterixdb/asterix-common/src/main/java/org/apache/asterix/common/dataflow/LSMInsertDeleteOperatorNodePushable.java | Java | apache-2.0 | 8,803 |
<?php
namespace Wechat;
/**
* Class POI
*
* @package Wechat
* @description 门店
*/
class POI {
const API_ADD = "http://api.weixin.qq.com/cgi-bin/poi/addpoi";
const API_GET = 'http://api.weixin.qq.com/cgi-bin/poi/getpoi';
const API_GET_LIST = 'http://api.weixin.qq.com/cgi-bin/poi/getpoilist';
co... | ifintech/phplib | Ext/Wechat/POI.php | PHP | apache-2.0 | 2,675 |
package io
import (
"github.com/spf13/cobra"
)
// A ReaderParams represent the user parameters for a Reader Node
type ReaderParams struct {
InputFile string
ReaderModule string
}
func (r *ReaderParams) SetFlagsOptions(command *cobra.Command) {
command.PersistentFlags().StringVar(&r.InputFile, "input-file", "-... | clcert/mercury | platform/io/params.go | GO | apache-2.0 | 1,115 |
export * from "./nativescript-googlemaps";
| marcbuils/nativescript-googlemaps | src/index.d.ts | TypeScript | apache-2.0 | 43 |
/*
* Licensed to David Pilato (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use... | dadoonet/spring-elasticsearch | src/main/java/fr/pilato/spring/elasticsearch/xml/XMLParserUtil.java | Java | apache-2.0 | 1,549 |
package com.example.mohit.tpomnnit.student.InterviewExperience;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.example.mohit.tpomnnit.R;
import com.ramotion.fold... | mkfeuhrer/TPO-MNNIT | app/src/main/java/com/example/mohit/tpomnnit/student/InterviewExperience/InterViewAdapter.java | Java | apache-2.0 | 4,554 |
import pandas as pd
import numpy as np
import os
from datetime import datetime
import numbers
import requests
import re
from sklearn.linear_model import LinearRegression
from statsmodels.api import OLS
import cPickle
from sklearn.cluster import DBSCAN
import requests
import json
from matplotlib.path import Path
from ma... | afenichel/ENGI4800-CAPSTONE | gunviolence/BaltimoreData.py | Python | apache-2.0 | 16,690 |
package com.zyl.melife.ui.view.main.impl;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.zyl.melife.logic.UIHelper;
import com.zyl.melife.ui.presenter.main.impl.AppStartPresenterImpl;
import com.zyl.melife.ui.view.main.IS... | zhuyuliang/MeLife | app/src/main/java/com/zyl/melife/ui/view/main/impl/AppStart.java | Java | apache-2.0 | 1,163 |
package com.orionplatform.admin.cryptology.tasks;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.... | orioncode/orionplatform | orion_admin/src/main/java/com/orionplatform/admin/cryptology/tasks/DecryptDataTask.java | Java | apache-2.0 | 1,370 |
function getTimeRemaining(endtime) {
var t = Date.parse(endtime) - Date.now();
var seconds = Math.floor((t / 1000) % 60);
var minutes = Math.floor((t / 1000 / 60) % 60);
var hours = Math.floor((t / (1000 * 60 * 60)) % 24);
var days = Math.floor(t / (1000 * 60 * 60 * 24));
return {
'total': t,
'days'... | maharanidanathallah/athallah-site-ma | newyear2017.js | JavaScript | apache-2.0 | 1,193 |
using ChinaUnion_BO;
using ChinaUnion_DataAccess;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Xml;
using Wechat.BO;
using Wecha... | ZhouAnPing/Mail | Mail/Wechat/PerformanceHandler.ashx.cs | C# | apache-2.0 | 36,843 |
/*jshint strict: false, maxlen: 500 */
/*global require, assertEqual */
////////////////////////////////////////////////////////////////////////////////
/// @brief tests for query language, functions
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, Cologne, Germany
///
/// Licensed under the ... | morsdatum/ArangoDB | js/server/tests/aql-functions-date.js | JavaScript | apache-2.0 | 38,362 |
/*
* Copyright 2003 - 2014 The eFaps Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | eFaps/eFaps-WebApp | src/main/java/org/efaps/ui/wicket/pages/content/form/package-info.java | Java | apache-2.0 | 792 |
/*
* Copyright 2014 Nassau authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | paritytrading/nassau | libraries/util/src/main/java/com/paritytrading/nassau/util/SoupBinTCP.java | Java | apache-2.0 | 3,555 |
<?php
/**
* File for Options class
*/
namespace Cayman\Manager\FilterManager;
/**
* Class for Option
*
*/
abstract class Option
{
public $filterName;
public $errorMessage = 'Invalid input';
public $params = [];
function __construct($filterName, $errorMessage, $params = [])
... | CaymanParrot/Cayman | src/Cayman/Manager/FilterManager/Option.php | PHP | apache-2.0 | 458 |
package ru.skorikov;
import java.util.Arrays;
/**
* Created with IntelliJ IDEA.
*
* @ author: Alex Skorikov.
* @ date: 17.07.17
* @ version Stady_2.
*/
public class MenuTracker {
/**
* interface Input.
*/
private Input input;
/**
* New instance of the class Tracker.
*/
privat... | KayzerSoze/java_kurs | chapter_002/part_008/src/main/java/ru/skorikov/MenuTracker.java | Java | apache-2.0 | 8,179 |
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ag... | NationalSecurityAgency/ghidra | Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/listing/ProgramTreeChangeSet.java | Java | apache-2.0 | 1,373 |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2020 Authors of Cilium
package cmd
import (
"encoding/gob"
"errors"
"fmt"
"io"
"net"
"os"
"os/signal"
"strings"
"time"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/cilium/cilium/api/v1/models"
"github.com/cilium/cilium/pkg/defaul... | michi-covalent/cilium | cilium/cmd/monitor.go | GO | apache-2.0 | 7,607 |
package com.ss.editor.ui.control.tree;
import static com.ss.editor.ui.util.UiUtils.findItem;
import static com.ss.editor.ui.util.UiUtils.findItemForValue;
import static com.ss.rlib.common.util.ClassUtils.unsafeCast;
import static com.ss.rlib.common.util.ObjectUtils.notNull;
import com.ss.editor.annotation.FxThread;
im... | JavaSaBr/jME3-SpaceShift-Editor | src/main/java/com/ss/editor/ui/control/tree/NodeTreeCell.java | Java | apache-2.0 | 14,235 |
/* Generic definitions */
/* Assertions (useful to generate conditional code) */
/* Current type and class (and size, if applicable) */
/* Value methods */
/* Interfaces (keys) */
/* Interfaces (values) */
/* Abstract implementations (keys) */
/* Abstract implementations (values) */
/* Static containers (keys) */
/* St... | karussell/fastutil | src/it/unimi/dsi/fastutil/objects/Object2ShortLinkedOpenCustomHashMap.java | Java | apache-2.0 | 49,769 |
import json
from django.http import JsonResponse
from .lib.scheduler import sch
from .lib.sun import *
from .lib.context import Context
from .lib.execution_element import ExecutionElement
def get_data():
return {
'ExecutionElements': json.loads(str(sch.context)),
'Now': Sun.Now().strftime('%H:%M:%S... | marians20/Aquarium | automation/ajax.py | Python | apache-2.0 | 1,657 |
package org.apereo.cas.web.flow.actions;
import org.apereo.cas.web.flow.CasWebflowConstants;
import org.apereo.cas.web.support.WebUtils;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;
/**
* Action... | frett/cas | core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/actions/MultifactorAuthenticationBypassAction.java | Java | apache-2.0 | 2,643 |
package org.usc.demo.webservices;
import javax.xml.ws.Endpoint;
public class Service {
public static void main(String[] args) {
Endpoint.publish("http://localhost:8080/HelloService", new Hello());
}
}
| usc/demo | src/main/java/org/usc/demo/webservices/Service.java | Java | apache-2.0 | 226 |
package com.redkite.plantcare.common.dto;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum NotificationType {
USER_ACTIVATION("activate"),
THRESHOLD_EXCEEDED("threshold");
private final String name;
NotificationType(String name) {
this.... | Kirill380/PlantCare | common/src/main/java/com/redkite/plantcare/common/dto/NotificationType.java | Java | apache-2.0 | 741 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.bbg.util;
import java.util.HashSet;
import java.util.Set;
import org.threeten.bp.LocalDate;
import org.threeten.bp.LocalDateTime;
import org.threeten.bp.Local... | McLeodMoores/starling | projects/bloomberg/src/test/java/com/opengamma/bbg/util/BloombergSecurityUtils.java | Java | apache-2.0 | 29,062 |
package com.oneminutedistraction.hackersnews;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.database.DataSetObserver;
import android.os.Build;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.view.Layout... | chukmunnlee/HackersNews | app/src/main/java/com/oneminutedistraction/hackersnews/StoryListAdapter.java | Java | apache-2.0 | 4,486 |
/*
*
* Copyright (c) 2021 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | project-chip/connectedhomeip | src/platform/cc13x2_26x2/OTAImageProcessorImpl.cpp | C++ | apache-2.0 | 12,356 |
JANOME_VERSION='0.3.9'
| nakagami/janome | janome/version.py | Python | apache-2.0 | 23 |
package goplaces.apis;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.*;
import javax.ws.rs.core.*;
import java.io.IOException;
import java.util.logging.*;
import com.google.appengine.api.datastore.*;
import com.google.appengine.api.memcache.*;
import goplaces.models.Place;
import org.json.JSONObject... | aviral26/ucsb-cs-263 | goplaces/src/main/java/goplaces/apis/PlacesMemcacheAPI.java | Java | apache-2.0 | 3,929 |
var functions_dup =
[
[ "_", "functions.html", null ],
[ "a", "functions_a.html", null ],
[ "b", "functions_b.html", null ],
[ "c", "functions_c.html", null ],
[ "d", "functions_d.html", null ],
[ "e", "functions_e.html", null ],
[ "f", "functions_f.html", null ],
[ "g", "functions_g.htm... | grbd/GBD.Build.BlackJack | docs/doxygen/html/functions_dup.js | JavaScript | apache-2.0 | 957 |
/**
* Forge SDK
* The Forge Platform contains an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering.
*
* OpenAPI spec version: 0.1.0
* Contact: forge.help@autodesk.com
*
* NO... | Autodesk-Forge/forge-api-nodejs-client | test/model/JobPayloadInput.spec.js | JavaScript | apache-2.0 | 1,409 |
package amazon
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"sync"
"time"
"github.com/cenk/backoff"
)
const (
endpointURL string = "https://drive.amazonaws.com/drive/v1/account/endpoint"
)
// Endpoint provides the URLs the drive service should talk to.
//
// It provides threadsafe methods to get th... | asjoyner/shade | drive/amazon/endpoint.go | GO | apache-2.0 | 2,404 |
# frozen_string_literal: true
# Error when revision number is too high (ODK only supports 2 digits)
class RevisionTooHighError < StandardError
def initialize(msg = "Revision number can't be more than 2 digits")
super
end
end
| thecartercenter/elmo | app/models/revision_too_high_error.rb | Ruby | apache-2.0 | 234 |
require 'spec_helper'
describe Mongo::Operation::Command do
let(:selector) { { :ismaster => 1 } }
let(:options) { { :limit => -1 } }
let(:spec) do
{ :selector => selector,
:options => options,
:db_name => TEST_DB
}
end
let(:op) { described_class.new(spec) }
describe '#initialize'... | sferik/mongo-ruby-driver | spec/mongo/operation/command_spec.rb | Ruby | apache-2.0 | 1,868 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.core;
import com.google.inject.AbstractModule;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.yahoo.jdisc.AbstractResource;
import com.yahoo.jdisc.application... | vespa-engine/vespa | jdisc_core/src/main/java/com/yahoo/jdisc/core/ApplicationLoader.java | Java | apache-2.0 | 8,521 |
/*
* Copyright (c) 2013 Villu Ruusmann
*/
package org.jpmml.knime;
import org.jpmml.evaluator.*;
import org.junit.*;
import static org.junit.Assert.*;
public class ClusteringTest {
@Test
public void evaluateKmeansIris() throws Exception {
Batch batch = new KnimeBatch("KMeans", "Iris");
assertTrue(BatchUti... | jpmml/jpmml | pmml-knime/src/test/java/org/jpmml/knime/ClusteringTest.java | Java | apache-2.0 | 344 |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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... | oskopek/optaplanner | optaplanner-core/src/main/java/org/optaplanner/core/impl/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScoreDefinition.java | Java | apache-2.0 | 3,597 |
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JPanel;
/**
* ´ø±³¾°µÄÃæ°å×é¼þ
*
* @author ZhongWei Lee
*/
public class BackgroundPanel extends JPanel {
/**
* ±³¾°Í¼Æ¬
*/
private Image image;
/**
* ¹¹Ôì·½·¨
*/
public Backgr... | xingwen93/java-notebook | BackgroundPanel.java | Java | apache-2.0 | 798 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016... | mylifeponraj/or5e-labs | media-player/src/main/java/org/or5e/itunes/jxb/Plist.java | Java | apache-2.0 | 4,070 |
<?php
namespace Topxia\WebBundle\Util;
use Topxia\Service\Common\ServiceKernel;
class AvatarAlert
{
public static function alertJoinCourse($user)
{
$setting = self::getSettingService()->get('user_partner');
if (empty($setting['avatar_alert'])) {
return false;
}
i... | 18826252059/im | src/Topxia/WebBundle/Util/AvatarAlert.php | PHP | apache-2.0 | 919 |
///*
// * To change this license header, choose License Headers in Project Properties.
// * To change this template file, choose Tools | Templates
// * and open the template in the editor.
// */
//package me.jittagornp.profile;
//
//import java.io.IOException;
//import java.util.Date;
//import java.util.UUID;
//import ... | jittagornp/jittagornp.me | src/main/java/me/jittagornp/profile/CacheFilter.java | Java | apache-2.0 | 1,995 |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchRegionHealthCheckRequestOrBuilder.java | Java | apache-2.0 | 6,377 |
package de.st_ddt.crazyspawner.entities.properties;
import java.util.Map;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Sheep;
import de.st_ddt.crazyspawner.CrazySpawner;
import de.st_ddt.crazyutil.paramitrisab... | ST-DDT/CrazySpawner | src/main/java/de/st_ddt/crazyspawner/entities/properties/SheepProperty.java | Java | apache-2.0 | 2,150 |
package com.github.binarywang.wxpay.bean.marketing.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 批次类型
*
* @author yujam
*/
@Getter
@AllArgsConstructor
public enum StockTypeEnum {
/**
* NORMAL:固定面额满减券批次
*/
NORMAL("NORMAL"),
/**
* DISCOUNT:折扣券批次
*/
DISCOUNT("DISCOUNT"),
... | Wechat-Group/WxJava | weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/enums/StockTypeEnum.java | Java | apache-2.0 | 492 |
// 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 | awsapi/src/com/amazon/ec2/CustomerGatewayIdSetType.java | Java | apache-2.0 | 26,876 |
/**
* Copyright 2014 Netflix, 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 t... | hyarlagadda/RxJava | src/test/java/rx/internal/operators/OperatorObserveOnTest.java | Java | apache-2.0 | 27,633 |
package org.qi4j.tutorials.composites.tutorial6;
import org.qi4j.api.mixin.Mixins;
import org.qi4j.library.constraints.annotation.NotEmpty;
// START SNIPPET: solution
/**
* This interface contains only the state
* of the HelloWorld object.
* <p>
* The parameters are declared as @NotEmpty, so the client cannot pa... | joobn72/qi4j-sdk | tutorials/composites/src/main/java/org/qi4j/tutorials/composites/tutorial6/HelloWorldState.java | Java | apache-2.0 | 685 |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | roberthafner/flowable-engine | modules/flowable-ui-task/flowable-ui-task-rest/src/main/java/org/activiti/app/rest/runtime/ProcessDefinitionResource.java | Java | apache-2.0 | 1,475 |
using System;
using FlagMySpace.Agnostic.IoC;
using FlagMySpace.Portable.IoC;
using FlagMySpace.Portable.Localization;
using FlagMySpace.Portable.Resources;
using FlagMySpace.Portable.NinjectModules;
using FlagMySpace.Portable.ViewFactory;
using FlagMySpace.Portable.ViewModels;
using Ninject;
namespace FlagMySpace.Po... | FlagMySpace/CrossPlatformClient | FlagMySpace/FlagMySpace.Portable/Bootstrap/NinjectBoostrapper.cs | C# | apache-2.0 | 623 |
/**
* Copyright © 2013-2018 shadowhunt (dev@shadowhunt.de)
*
* 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... | thrawn-sh/subversion | src/test/java/de/shadowhunt/subversion/internal/httpv2/v1_8/RepositoryAddIT.java | Java | apache-2.0 | 965 |
//------------------------------------------------------------------------------
/// \file Mod.cpp
/// \author Ernest Yeung
/// \email ernestyalumni@gmail.com
/// \brief Program 9.2. Source file for the Mod class, Mod.cc
/// \details
/// \ref pp. 162. Edward Scheinerman. C++ for Mathematicians: An Introduction
///... | ernestyalumni/CompPhys | Cpp/math/09-ModularArithmetic/Mod.cpp | C++ | apache-2.0 | 3,118 |
/*
* Copyright 2016-2022 Talsma ICT
*
* 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... | talsma-ict/umldoclet | src/test/java/nl/talsmasoftware/umldoclet/issues/Bug79GenericsAsMarkupTest.java | Java | apache-2.0 | 2,795 |
package trendli.me.makhana.gameserver.net.listener.game;
import java.util.Arrays;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import trendli.me.makhana.common.data.Session;
import trendli.me.makhana.common.entities.ComponentUtil;
import trendli.me.makhana.common.entities.com... | elliottmb/makhana | gameserver/src/main/java/trendli/me/makhana/gameserver/net/listener/game/EntityRequestListener.java | Java | apache-2.0 | 13,005 |
import React from 'react'
import PropTypes from 'prop-types'
import Search from '../components/Search//Search'
import FacetQueryParms from '../modules/FacetQueryParams'
import HoneycombURL from '../modules/HoneycombURL'
const SearchPage = ({ match, children }) => {
const queryParams = new URLSearchParams(window.loca... | ndlib/beehive | src/routes/SearchPage.js | JavaScript | apache-2.0 | 1,127 |
<?php if ( ! defined('EXT')) { exit('Invalid file request'); }
/**
* VWM Polls
*
* @package VWM Polls
* @author Victor Michnowicz
* @copyright Copyright (c) 2011 Victor Michnowicz
* @license http://www.apache.org/licenses/LICENSE-2.0.html
* @link http://github.com/vmichnowicz/vwm_polls
*/
// -------------... | vmichnowicz/vwm_polls | system/expressionengine/third_party/vwm_polls/helpers/vwm_polls_helper.php | PHP | apache-2.0 | 3,179 |
/*******************************************************************************
* Copyright 2014 Manuel Mauky
*
* 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.o... | mthiele/mvvmFX | mvvmfx-utils/src/test/java/de/saxsys/mvvmfx/utils/sizebinding/SizeBindingsBuilderTestBase.java | Java | apache-2.0 | 3,918 |
/*
* Copyright 2014-15 Dilip Kumar
* 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 ... | gdilipkumar/querybuilder | src/main/java/com/dilipkumarg/qb/models/AbstractSqlTable.java | Java | apache-2.0 | 3,674 |