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 |
|---|---|---|---|---|---|
<?php
// $Id$
require_once(TANGRA_MAIN_DIR.'web_site/redirect_composer_local.class.php');
require_once(DIR_INC.'modules/jabba_ajax_form_ctrl/jabba_ajax_form_ctrl_with_object.class.php');
require_once(DIR_INC.'modules/admin_panel/classes/admin_user/admin_user_dbc.class.php');
abstract class Site_Admin_Ajax_Form_Ctr... | ogrebgr/forge-server-skeleton-php | hidden/inc/modules/admin_panel/site_admin_ajax_form_ctrl_with_object_ua.class.php | PHP | apache-2.0 | 1,781 |
var respecConfig = {
specStatus: "ED",
editors: [{
name: "Simon Cox",
company: "CSIRO",
companyURL: "http://www.csiro.au/",
w3cid: 1796
}],
otherLinks: [{
key: "Contributors",
data: [
{ value: "Peter Brenton" },
]
}],
shortName: "vocab-project",
edDraftURI: "http://dr-sho... | dr-shorthair/ont | docs/projconfig.js | JavaScript | apache-2.0 | 2,270 |
namespace CloudFoundry.Net.Vmc.Cli
{
using System;
using System.Collections.Generic;
using System.IO;
static partial class Program
{
static bool Push(IList<string> unparsed)
{
// TODO match ruby argument parsing
if (unparsed.Count < 3 || unparsed.... | ademar/ironfoundry | src/CloudFoundry.Net.Vmc.Cli/Push.cs | C# | apache-2.0 | 1,501 |
/*
* Copyright (c) 2018-2020, FusionAuth, 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 ... | inversoft/prime-jwt | src/main/java/io/fusionauth/der/Tag.java | Java | apache-2.0 | 5,877 |
/*
* Copyright 2008 Web Cohesion
*
* 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... | stoicflame/ofx4j | src/main/java/com/webcohesion/ofx4j/domain/data/signup/AccountInfoResponseTransaction.java | Java | apache-2.0 | 1,497 |
<?php
namespace Aruna\Webmention;
/**
* Class VerifyWebmentionRequest
* @author yourname
*/
class VerifyWebmentionRequest
{
public function __invoke(array $mention)
{
if (!isset($mention['source']) || !isset($mention['target'])) {
$m = "Missing source or target";
throw new ... | j4y-funabashi/aruna | app/src/Webmention/VerifyWebmentionRequest.php | PHP | apache-2.0 | 1,624 |
#!/usr/bin/env python
import unittest
from socket import AF_INET6
from framework import VppTestCase, VppTestRunner
from vpp_sub_interface import VppSubInterface, VppDot1QSubint
from vpp_pg_interface import is_ipv6_misc
from vpp_ip_route import VppIpRoute, VppRoutePath, find_route, VppIpMRoute, \
VppMRoutePath, MR... | milanlenco/vpp | test/test_ip6.py | Python | apache-2.0 | 38,904 |
/*Copyright 2010 George Karagoulis
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, softwar... | karagog/gutil | src/qt/data_access/test/tcp_socket_transport/mainwindow.cpp | C++ | apache-2.0 | 2,291 |
package org.ebookdroid.core.models;
import org.ebookdroid.core.PageIndex;
import org.ebookdroid.core.events.CurrentPageListener;
import org.ebookdroid.core.events.ListenerProxy;
import org.ebookdroid.core.log.LogContext;
import org.ebookdroid.utils.CompareUtils;
public class CurrentPageModel extends ListenerProxy {
... | hk0792/UsefulClass | EBookDroid/src/org/ebookdroid/core/models/CurrentPageModel.java | Java | apache-2.0 | 1,284 |
/*
* Copyright (c) 2010-2013 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | sabriarabacioglu/engerek | infra/prism/src/main/java/com/evolveum/midpoint/prism/PartiallyResolvedValue.java | Java | apache-2.0 | 2,164 |
package com.gufengxiachen.designpattern.Structural.adapter.objectadapter;
import java.util.Enumeration;
public class MessageApplication {
public void showAllMessage(Enumeration enum1) {
Object msg;
while(enum1.hasMoreElements()) {
msg = enum1.nextElement();
System.out.pr... | wustrive2008/java-designpattern | src/main/java/com/gufengxiachen/designpattern/Structural/adapter/objectadapter/MessageApplication.java | Java | apache-2.0 | 357 |
# Copyright 2011-2015, The Trustees of Indiana University and Northwestern
# University. 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
# ... | uvalib/avalon | app/controllers/concerns/conditional_partials.rb | Ruby | apache-2.0 | 1,214 |
package uk.co.harrymartland.multijmx.domain.optionvalue.orderconnection;
import com.google.inject.Inject;
import org.apache.commons.cli.Option;
import uk.co.harrymartland.multijmx.domain.optionvalue.AbstractSingleOptionValue;
import uk.co.harrymartland.multijmx.service.commandline.CommandLineService;
public class Ord... | HarryEMartland/multi-jmx | src/main/java/uk/co/harrymartland/multijmx/domain/optionvalue/orderconnection/OrderConnectionOptionValueImpl.java | Java | apache-2.0 | 1,089 |
// -----------------------------------------------------------------------
// <copyright file="ICacheProvider.cs" company="">
// Copyright (c) 2014-2015 OSky. All rights reserved.
// </copyright>
// <last-editor>Lmf</last-editor>
// <last-date>2015-03-22 15:36</last-date>
// ----------------------------------... | liumeifu/OSky | src/OSky.Core/Caching/ICacheProvider.cs | C# | apache-2.0 | 878 |
--TEST--
RFC: DateTime and Daylight Saving Time Transitions (zone type 3, bd2)
--CREDITS--
Daniel Convissor <danielc@php.net>
--XFAIL--
Still not quite right
--FILE--
<?php
date_default_timezone_set('America/New_York');
$date_format = 'Y-m-d H:i:s T e';
$interval_format = 'P%dDT%hH';
/*
* For backward transitions, m... | jphp-compiler/jphp | exts/jphp-zend-ext/src/main/tests/resources/ext/date/rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | PHP | apache-2.0 | 2,021 |
# Copyright 2008 the Melange 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 to in ... | SRabbelier/Melange | app/settings.py | Python | apache-2.0 | 4,946 |
"""Base actions for the players to take."""
from csrv.model.actions import action
from csrv.model import cost
from csrv.model import errors
from csrv.model import events
from csrv.model import game_object
from csrv.model import parameters
class PlayOperationAction(action.Action):
DESCRIPTION = '[click]: Play an o... | mrroach/CentralServer | csrv/model/actions/play_operation_action.py | Python | apache-2.0 | 825 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
from collections import defaultdict
import ray
import ray.cloudpickle as cloudpickle
# This string should be identical to the name of the signal sent upon
# detecting that an actor died.
# Thi... | ujvl/ray-ng | python/ray/experimental/signal.py | Python | apache-2.0 | 7,355 |
# -*- encoding: utf-8 -*-
require "bundler"
require "bundler/definition"
require "bundler/lockfile_parser"
require "pathname"
module RubyScaffolding
class GemfileParser
def initialize(lockfile_path)
@lockfile_path = Pathname(lockfile_path)
if !@lockfile_path.file?
raise "Lockfile not found: ... | be-plans/be | scaffolding-ruby/lib/ruby_scaffolding/gemfile_parser.rb | Ruby | apache-2.0 | 909 |
<?php
/**
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "li... | Smith-and-Associates/amazon-payments-magento-2-plugin | src/Payment/Exception/CapturePendingException.php | PHP | apache-2.0 | 833 |
/**
* Copyright 2013 Cloudera 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 i... | dlanza1/kite | kite-tools-parent/kite-tools/src/main/java/org/kitesdk/cli/commands/BaseDatasetCommand.java | Java | apache-2.0 | 4,580 |
package net.onrc.onos.core.metrics.web.serializers;
import com.codahale.metrics.json.MetricsModule;
import com.fasterxml.jackson.databind.ObjectMapper;
import net.onrc.onos.core.metrics.web.MetricsObjectResource;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.map.SerializerProvider;
import org.... | opennetworkinglab/spring-open | src/main/java/net/onrc/onos/core/metrics/web/serializers/MetricsObjectSerializer.java | Java | apache-2.0 | 4,931 |
/*
* Copyright 2020 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 ... | b2ihealthcare/snow-owl | core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/StringToEnumConverterFactory.java | Java | apache-2.0 | 1,602 |
const assert = require('assert');
const Promise = require('bluebird');
const moment = require('moment');
const withV4 = require('../support/withV4');
const BucketUtility = require('../../lib/utility/bucket-util');
const checkError = require('../../lib/utility/checkError');
const changeObjectLock = require('../../../..... | scality/S3 | tests/functional/aws-node-sdk/test/object/getRetention.js | JavaScript | apache-2.0 | 6,001 |
# Copyright 2022 The T5 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 to in writi... | google-research/text-to-text-transfer-transformer | t5/data/preprocessors.py | Python | apache-2.0 | 114,576 |
/*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedicine.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-... | SocraticGrid/UCS-Implementation | ucs-nifi-samples/ucs-nifi-test-workbench/src/main/java/org/socraticgrid/hl7/ucs/nifi/test/workbench/command/DiscoverChannelsCommand.java | Java | apache-2.0 | 2,137 |
/**
* 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 | extensions/adapters/vector/src/main/java/org/geotools/renderer/lite/DistributedRenderer.java | Java | apache-2.0 | 7,461 |
<?php
define('DB_HOST', getenv('OPENSHIFT_DB_HOST'));
define('DB_USER',getenv('OPENSHIFT_DB_USERNAME'));
define('DB_PASS',getenv('OPENSHIFT_DB_PASSWORD'));
define('DB_NAME',getenv('OPENSHIFT_DB_DBNAME'));
// Create connection
$conn = mysqli_connect(DB_HOST,DB_USER,DB_PASS,DB_NAM);
// Check connection
if (!$conn) {
... | Amira111/gggggggggg | afficher.php | PHP | apache-2.0 | 1,717 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Renderer', 'sap/ui/layout/ResponsiveFlowLayoutRenderer'],
function(jQuery, Renderer,... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/ui/commons/layout/ResponsiveFlowLayoutRenderer-dbg.js | JavaScript | apache-2.0 | 520 |
// 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 ... | google/privacy-sandbox-aggregation-service | encryption/cryptoio.go | GO | apache-2.0 | 12,822 |
/*
* Copyright 2000-2010 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | consulo/consulo | modules/base/compiler-impl/src/main/java/com/intellij/packaging/impl/artifacts/InvalidArtifactType.java | Java | apache-2.0 | 1,817 |
# frozen_string_literal: true
# Copyright 2022 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 applicabl... | googleads/google-ads-ruby | lib/google/ads/google_ads/v10/services/ad_group_ad_label_service/credentials.rb | Ruby | apache-2.0 | 1,107 |
// [WriteFile Name=DistanceMeasurementAnalysis, Category=Analysis]
// [Legal]
// Copyright 2018 Esri.
// 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/LICEN... | Esri/arcgis-runtime-samples-qt | ArcGISRuntimeSDKQt_CppSamples/Analysis/DistanceMeasurementAnalysis/DistanceMeasurementAnalysis.cpp | C++ | apache-2.0 | 7,003 |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | jentfoo/aws-sdk-java | aws-java-sdk-pinpointemail/src/main/java/com/amazonaws/services/pinpointemail/model/transform/ListDomainDeliverabilityCampaignsRequestMarshaller.java | Java | apache-2.0 | 3,622 |
import {observable, action, computed} from 'mobx'
import Todo from '../models/Todo'
export class TodoStore {
@observable todos = [];
@observable showingOnlyIncompleteTodos;
@action createTodo({title, done}) {
this.todos.push(new Todo({title, done}));
}
@action toggleOnlyIncompleteTodos() {
this.sh... | smakazmidd/react-starter | client/src/script/stores/TodoStore.js | JavaScript | apache-2.0 | 700 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2013.12.03 at 0... | germamix/sepa-pain-lib | sepa-pain-lib/src/main/java/iso/std/iso/_20022/tech/xsd/pain_008_003_02/PartyIdentificationSEPA2.java | Java | apache-2.0 | 3,298 |
/*
* Copyright 2009 Kantega AS
*
* 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... | kantega/Flyt-cms | modules/api/src/main/java/no/kantega/publishing/api/content/ContentIdentifier.java | Java | apache-2.0 | 4,148 |
package com.mindoo.domino.jna.internal.structs;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
public class NotesLSCompileErrorInfoStruct extends BaseStructure {
public short Vers... | klehmann/domino-jna | domino-jna/src/main/java/com/mindoo/domino/jna/internal/structs/NotesLSCompileErrorInfoStruct.java | Java | apache-2.0 | 2,941 |
/*
* Copyright 2013 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | fenik17/netty | transport/src/main/java/io/netty/channel/group/DefaultChannelGroup.java | Java | apache-2.0 | 15,366 |
from numpy import absolute
from numpy import multiply
from numpy import where
from numpy import zeros
from gwlfe.Memoization import memoize
from gwlfe.enums import ETflag
# @memoize #TODO: adding memoization causes this function to not pass the tests
def DailyET(NYrs, DaysMonth, Temp, DayHrs, KV, PcntET, ETFlag):
... | WikiWatershed/gwlf-e | gwlfe/Input/WaterBudget/ET.py | Python | apache-2.0 | 1,598 |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.refactoring.extractMethodObject.reflect;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiElementFactory;
import com.intellij.psi.PsiField;
impor... | leafclick/intellij-community | java/java-impl/src/com/intellij/refactoring/extractMethodObject/reflect/FieldDeclarationDescriptor.java | Java | apache-2.0 | 1,468 |
/**
* 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... | astefanutti/camel-cdi | impl/src/main/java/org/apache/camel/cdi/CdiEventComponent.java | Java | apache-2.0 | 2,513 |
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {ClarityModule} from '@clr/angular';
import {RouterTestingModule} from '@angular/router/testing';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {AboutS... | spring-cloud/spring-cloud-dataflow-ui | ui/src/app/tasks-jobs/jobs/jobs.component.spec.ts | TypeScript | apache-2.0 | 2,521 |
package controllers.api.v3;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import libs.auth.ActionAuthenticator;
import libs.db.MorphiaObject;
import libs.h... | sezginonline/restapi.play | app/controllers/api/v3/Merchant.java | Java | apache-2.0 | 5,344 |
using App.WebInfo.Entities.Concrete;
namespace App.WebInfo.Business.Abstract
{
public interface IPersonalService:IServiceBase<Personal>
{
}
}
| AhmetKayar/WebInfo | WebInfoApp/App.WebInfo.Business/Abstract/IPersonalService.cs | C# | apache-2.0 | 158 |
using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("AC Crypt API")]
[assembly: AssemblyDescription("AC Crypt API")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("AC Inc.")]
[assembly: AssemblyProduct("AC Libra... | win120a/ACLibrary | ACCryptoAPI/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,302 |
'''
Created on Jul 29, 2015
@author: Mikhail
'''
import json
import random
import string
import time
import os
__version__ = 2.0
class MyOwnJSONProcessing:
# variables for amount of objects in dictionary (for json)
min_len_of_json_dict = 1
max_len_of_json_dict = 5
# variables for max and min len... | MikeLaptev/sandbox_python | mera/unittest_example/json_file_generator.py | Python | apache-2.0 | 3,656 |
package jp.eq_inc.aranduh;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android de... | eq-inc/eq-panicar-unlimitedhand | app/src/androidTest/java/jp/eq_inc/aranduh/ExampleInstrumentedTest.java | Java | apache-2.0 | 738 |
package active_test
import (
"context"
"log"
"sync"
"testing"
"time"
"github.com/m-lab/etl/active"
"google.golang.org/api/iterator"
)
type throttleStats struct {
running chan struct{}
doneCount chan struct{}
lock sync.Mutex
maxRunning int
}
func (mt *throttleStats) add() int {
mt.running <- str... | m-lab/etl | active/throttle_test.go | GO | apache-2.0 | 2,118 |
package net.bytebuddy.build.maven;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/**
* An abstract base class for a user configuration implying a Maven coordinate.
*/
@SuppressFBWarnings(value = "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", justification = "Written to by Maven")
public class AbstractUserC... | DALDEI/byte-buddy | byte-buddy-maven-plugin/src/main/java/net/bytebuddy/build/maven/AbstractUserConfiguration.java | Java | apache-2.0 | 3,015 |
package org.minimalj.example.erp.model;
import java.math.BigDecimal;
import org.minimalj.model.Keys;
import org.minimalj.model.Rendering;
import org.minimalj.model.annotation.Size;
public class OfferArticle implements Rendering {
public static final OfferArticle $ = Keys.of(OfferArticle.class);
public ArticleVi... | BrunoEberhard/minimal-j | example/008_ERP/src/org/minimalj/example/erp/model/OfferArticle.java | Java | apache-2.0 | 696 |
/*
* Copyright 2015-2018 Jeeva Kandasamy (jkandasa@gmail.com)
* and other contributors as indicated by the @author tags.
*
* 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://... | pgh70/mycontroller | modules/core/src/main/java/org/mycontroller/standalone/db/dao/SensorsVariablesMapDao.java | Java | apache-2.0 | 1,647 |
'use strict';
var storiesdb = require('nano')('http://localhost:5984/stories');
var viewDoc = {
_id: '_design/story',
language: 'javascript',
views: {
byUser: require('./story-by-user'),
byTitle: require('./story-by-title')
}
};
module.exports = {
// Generates views
init: function () {
... | bananaoomarang/chapters-server | lib/couch-views/index.js | JavaScript | apache-2.0 | 481 |
(function(exports) {
'use strict';
var _settingsPanel, _closeSettingsButton, _logoutSettingsButton,
_cleanCallsButton, _cleanUrlsButton, _videoDefaultSettings,
_commitHashTag, _cameraDefaultSettings, _loggedAs;
var _isVideoDefault = true;
var _isFrontCameraDefault = true;
var _isSingleCamera = f... | suoko/firefoxos-loop-client-master | js/screens/settings.js | JavaScript | apache-2.0 | 6,400 |
/*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedciine.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-... | SocraticGrid/EPS-API | src/main/java/org/socraticgrid/hl7/services/eps/model/AffiliationRole.java | Java | apache-2.0 | 918 |
/*
* 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 ... | Subasinghe/ode | scheduler-simple/src/test/java/org/apache/ode/scheduler/simple/GeronimoDelegateSupport.java | Java | apache-2.0 | 3,781 |
//
// Copyright (c) Microsoft and contributors. 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 requ... | jmspring/azure-sdk-for-node | test/services/blob/internal/sharedkeylite-tests.js | JavaScript | apache-2.0 | 2,589 |
import json
from discord.ext import commands
import addons.checks
class Helper_list:
"""
Management of active helpers.
"""
def __init__(self, bot):
self.bot = bot
print('Addon "{}" loaded'.format(self.__class__.__name__))
@addons.checks.is_staff("Owner")
@commands.command(pass_... | 916253/Kurisu | addons/helper_list.py | Python | apache-2.0 | 3,142 |
package org.opendatakit.data;
/**
* Created by clarice on 9/29/15.
*/
public final class RowColorObject {
private final String mRowId;
private final int mRowIndex;
private final String mHexForeground;
private final String mHexBackground;
public RowColorObject(String rowId, int rowIndex, String foreground... | opendatakit/androidcommon | androidcommon_lib/src/main/java/org/opendatakit/data/RowColorObject.java | Java | apache-2.0 | 746 |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | dagnir/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/transform/ListPolicyPrincipalsRequestMarshaller.java | Java | apache-2.0 | 3,048 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using NhaHang.Code.Helper.BanHang;
using TapHoaCode.GUI.Form1.BanHang;
using GymFitnessOlympic.Models;
us... | hynguyen2610/OlympicGym | GymFitnessOlympic/View/UserControls/TacNghiep/BanHang/FrmBanHang.cs | C# | apache-2.0 | 9,781 |
/*
* 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 not... | eduosi/openid-client | src/main/java/com/buession/openid/profile/BaseOpenIdProfile.java | Java | apache-2.0 | 3,154 |
package com.math.function;
/**
* Created by arkadiy on 02/07/17.
*/
public class ReducedByFirstOperandBinaryOperation<T> implements Operation<T> {
private final BinaryOperation<T> binaryOperation;
private final T firstOperandValue;
public ReducedByFirstOperandBinaryOperation(BinaryOperation<T> binaryOpe... | arkadius2006/arithmetic | src/main/java/com/math/function/ReducedByFirstOperandBinaryOperation.java | Java | apache-2.0 | 578 |
'use strict'
const Primus = require('primus')
const UglifyJS = require('uglify-js')
const fs = require('fs')
const path = require('path')
const util = require('util')
const uuid = require('uuid')
const ActionHero = require('./../index.js')
const api = ActionHero.api
module.exports = class WebSocketServer extends Acti... | chimmelb/actionhero | servers/websocket.js | JavaScript | apache-2.0 | 7,292 |
/**
* Copyright 2015 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 appli... | ampproject/amp-by-example | lib/Metadata.js | JavaScript | apache-2.0 | 1,408 |
#pragma once
#include <wx/wx.h>
#include <wx/app.h>
class Editor;
wxDECLARE_APP(Editor);
class MainWindow : public wxFrame {
public:
enum {
ID_New,
ID_Open,
ID_Save,
ID_SaveAs,
};
MainWindow() : MainWindow("Game Editor", wxPoint(50, 50), wxSize(500, 500)) { }
MainWindow(const wxString& title, const wxP... | LudumDareProject/CppGameEngine | src/editor/windows/MainWindow.hpp | C++ | apache-2.0 | 623 |
/******/ (function(modules) { // webpackBootstrap
/******/ function hotDownloadUpdateChunk(chunkId) {
/******/ var filename = require("path").join(__dirname, "" + chunkId + "." + hotCurrentHash + ".hot-update.js");
/******/ require("fs").readFile(filename, "utf-8", function(err, content) {
/******/ if(err... | raml-org/raml-dotnet-parser-2 | source/Raml.Parser/node_modules/raml-1-0-parser/node_modules/webpack/test/js/hot/loaders/val-loader/bundle.js | JavaScript | apache-2.0 | 24,067 |
/*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | gijsleussink/ceylon | compiler-java/langtools/src/share/classes/com/redhat/ceylon/langtools/source/tree/AssertTree.java | Java | apache-2.0 | 1,666 |
/*
* Copyright © 2013 Ben Bader
*
* 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 ... | benjamin-bader/stiletto | Stiletto/Internal/SingletonBinding.cs | C# | apache-2.0 | 2,531 |
using System.Collections.Generic;
using Hl7.Fhir.Publication.Specification.HierarchicalTable.Cells.Component;
using Hl7.Fhir.Publication.Specification.TableModel;
namespace Hl7.Fhir.Publication.Specification.HierarchicalTable.Cells
{
internal class BodyCell : Cell
{
private readonly IEnumerable<Piece> _pieces;
... | InteropAdmin/FHIRGEN-DSTU2 | Fhir.Publication/Specification/HierarchicalTable/Cells/BodyCell.cs | C# | apache-2.0 | 1,437 |
package com.dfyy.dao;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.dfyy.bussiness.UserToken;
@Repository
public int... | secondflying/dfyy | src/main/java/com/dfyy/dao/UserTokenDao.java | Java | apache-2.0 | 775 |
// 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 writi... | googleads/googleads-java-lib | modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202111/AdUnitSize.java | Java | apache-2.0 | 14,102 |
// Generated from /POI/java/org/apache/poi/ss/formula/ptg/IntersectionPtg.java
#pragma once
#include <fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/ss/formula/ptg/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <org/apache/poi/ss/formula/ptg/Ope... | pebble2015/cpoi | src/org/apache/poi/ss/formula/ptg/IntersectionPtg.hpp | C++ | apache-2.0 | 1,772 |
/*
* Copyright (C) 2014 The Calrissian 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... | calrissian/insight | src/test/java/org/calrissian/insight/AssertBuilderCollectorTest.java | Java | apache-2.0 | 2,561 |
package com.hue.model;
import java.util.Set;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Sets;
import com.hue.graph.Graphable;
public class FieldExpression implements Graphable{
private String sql;
private Set<Table> ta... | ajoabraham/hue | src/main/java/com/hue/model/FieldExpression.java | Java | apache-2.0 | 1,683 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DefaultReverseEngineering
{
[Table("ProductVendor", Schema = "Purchasing")]
public partial class ProductVendor
{
public int ProductID { get; set... | fsprojects/FSharp.EntityFramework.MicrosoftSqlServer | tests/ReverseEngineering.Annotations/ProductVendor.cs | C# | apache-2.0 | 1,303 |
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.or... | jitsi/jitsi | src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java | Java | apache-2.0 | 20,283 |
/*
* Copyright Terracotta, 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 ... | rishabhmonga/ehcache3 | core/src/main/java/org/ehcache/core/statistics/CachingTierOperationOutcomes.java | Java | apache-2.0 | 1,576 |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | floodlight/loxigen-artifacts | openflowj/gen-src/main/java/org/projectfloodlight/openflow/protocol/bsntlv/OFBsnTlvUdfCapability.java | Java | apache-2.0 | 1,894 |
/**
* @license Copyright 2019 The Lighthouse 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-2.0
* Unless required by applica... | umaar/lighthouse | lighthouse-core/audits/metrics/total-blocking-time.js | JavaScript | apache-2.0 | 4,644 |
/*******************************************************************************
*
* Copyright (C) 2015-2021 the BBoxDB 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 Licens... | jnidzwetzki/scalephant | bboxdb-server/src/main/java/org/bboxdb/distribution/zookeeper/ZookeeperInstanceRegisterer.java | Java | apache-2.0 | 2,853 |
/*
* Copyright 2015 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 applicable la... | sonu283304/onos | web/gui/src/main/java/org/onosproject/ui/impl/UiWebSocket.java | Java | apache-2.0 | 8,454 |
/* Copyright 2016 Braden Farmer
*
* 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... | farmerbb/Taskbar | app/src/main/java/com/farmerbb/taskbar/fragment/AboutFragment.java | Java | apache-2.0 | 7,578 |
package io.arabesque.utils.collection;
import io.arabesque.utils.pool.IntArrayListPool;
import net.openhft.koloboke.collect.IntCollection;
import net.openhft.koloboke.collect.IntCursor;
import net.openhft.koloboke.collect.IntIterator;
import net.openhft.koloboke.function.IntConsumer;
import net.openhft.koloboke.functi... | Qatar-Computing-Research-Institute/Arabesque | src/main/java/io/arabesque/utils/collection/IntArrayList.java | Java | apache-2.0 | 17,867 |
/*
* 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 ... | tteofili/jackrabbit-oak | oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/p2/Property2IndexProvider.java | Java | apache-2.0 | 1,581 |
/**
* 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... | supermy/nutch2 | src/java/org/apache/hadoop/util/StringUtils.java | Java | apache-2.0 | 32,124 |
<?php
/**
* This file is part of the SevenShores/NetSuite library
* AND originally from the NetSuite PHP Toolkit.
*
* New content:
* @package ryanwinchester/netsuite-php
* @copyright Copyright (c) Ryan Winchester
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @link https://githu... | RyanWinchester/netsuite-php | src/Classes/VendorPaymentApplyList.php | PHP | apache-2.0 | 1,056 |
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
@Path("/arearect")
public class AreaOfRect {
@GET
@Produces("application/xml")
public String rectanglearea() {
Double sideA = 10.0;
Double sideB = 5.0;
Double area;
area = (sideA * sideB)... | ankiw/Lab-Assignment-ASE | LAB8/Source/src/AreaOfRect.java | Java | apache-2.0 | 1,036 |
package org.bakasoft.dbchord.schema;
import java.util.List;
import org.bakasoft.dbchord.ApplicationException;
public class Table extends NamedElement<Schema> {
private final Container<Table, Column> columns;
private PrimaryKey primaryKey;
private final Container<Table, UniqueKey> uniqueKeys;
public Table() {... | bakasoft/dbchord | dbchord/src/org/bakasoft/dbchord/schema/Table.java | Java | apache-2.0 | 1,237 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.Storage;
using Windows.Storage.Streams;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespac... | kasparov/StoryTeller | StoryTeller/Common/SuspensionManager.cs | C# | apache-2.0 | 13,050 |
<?php
/*-----------------------------------------------------------------
!!!!警告!!!!
以下为系统文件,请勿修改
-----------------------------------------------------------------*/
namespace ginkgo;
// 不能非法包含或直接执行
if (!defined('IN_GINKGO')) {
return 'Access denied';
}
// 语言处理类
class Lang {
public $lang; // 语言数据
public $conf... | baigoStudio/baigoADS | ginkgo/core/lang.class.php | PHP | apache-2.0 | 11,265 |
//-----------------------------------------------------------------------
// <copyright file="AnchorController.cs" company="Google">
//
// Copyright 2018 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 Lic... | googlesamples/arcore-illusive-images | Assets/GoogleARCore/Examples/CloudAnchors/Scripts/AnchorController.cs | C# | apache-2.0 | 7,121 |
package net.webservicex;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 3.1.12
* 2017-07-19T16:19:00.063-04:00
* Generated so... | AndrewFedoseev/java_pft | soap-sample/src/main/java/net/webservicex/GeoIPServiceHttpGet.java | Java | apache-2.0 | 1,269 |
# Shared and common functions (declustering redundant code)
import numpy as np, os
import random, cv2
import operator
def get(link, save_as=False):
import urllib
base_dir = './tmp'
assert type(link) == str, type(link)
if not os.path.exists(base_dir):
os.makedirs(base_dir)
if save... | minyoungg/selfconsistency | lib/utils/util.py | Python | apache-2.0 | 5,391 |
package org.yadi.core;
/*
Copyright 2014 Julian Exenberger
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... | jexenberger/yadi | src/main/java/org/yadi/core/Construction.java | Java | apache-2.0 | 2,469 |
/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Softw... | TU-Berlin-SNET/tresor-pdp | modules/geoxacml/src/main/java/org/geotools/xacml/geoxacml/cond/GeometryCentroid.java | Java | apache-2.0 | 2,392 |
angular.module('dCare.Authentication', ['ionic',
'dCare.Services.UserStore', 'dCare.ApiInvoker'])
.factory("AuthenticationService", function ($q, UserStore, ApiInvokerService, $ionicLoading, $mdDialog) {
var login = function (userID,password) {
//NR: TODO: Call... | nozelrosario/Dcare | www/controllers/user/authenticationService.js | JavaScript | apache-2.0 | 8,882 |
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | fkorotkov/intellij-thrift | thrift/src/main/java/com/intellij/plugins/thrift/structure/ThriftStructureViewModel.java | Java | apache-2.0 | 2,968 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-gluedatabrew/src/main/java/com/amazonaws/services/gluedatabrew/model/transform/ExcelOptionsJsonUnmarshaller.java | Java | apache-2.0 | 3,301 |
'use strict';
/**
* @ngdoc function
* @name adsGtApp.controller:AboutCtrl
* @description
* # AboutCtrl
* Controller of the adsGtApp
*/
angular.module('adsGtApp')
.controller('DrugCtrl', ['$scope', '$http','$modal','FDA_API', function ($scope, $http, $modal, FDA_API) {
// console.log(FDA_API.drugEvent);
... | globaltunnels/bowlofhygieia | app/scripts/controllers/drug.js | JavaScript | apache-2.0 | 7,212 |