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 |
|---|---|---|---|---|---|
resource_name :code_deploy_agent
default_action %i[install enable start]
provides :code_deploy_agent_linux
provides :code_deploy_agent, platform_family: 'debian'
property :auto_update, [true, false], default: false
action_class do
include CodeDeploy::Helper
end
action :install do
include_recipe 'apt'
packag... | meringu/code_deploy | resources/agent_debian.rb | Ruby | apache-2.0 | 1,052 |
package any.ejbtest;
import com.dms.Discriminated;
import java.util.List;
/**
* MoviesImplEjb, 02.03.2015
*
* Copyright (c) 2014 Marius Dinu. All rights reserved.
*
* @author mdinu
* @version $Id$
*/
//@Named
@Discriminated(isResultAggregated = true)
public class MoviesImplWrapper implements Movies {
pri... | dmarius99/ImplementationDiscriminator | src/test/java/any/ejbtest/MoviesImplWrapper.java | Java | apache-2.0 | 826 |
const crypto = require('crypto')
module.exports = function (doc) {
doc._source.bar = crypto
.createHash('md5')
.update(String(doc._source.foo))
.digest('hex')
}
| taskrabbit/elasticsearch-dump | test/test-resources/transform.js | JavaScript | apache-2.0 | 176 |
/*
* 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-mysql/src/main/java/io/datarouter/client/mysql/ddl/domain/SqlIndex.java | Java | apache-2.0 | 1,493 |
/**
*/
package CIM15.IEC61970.Wires;
import CIM15.IEC61970.Core.IdentifiedObject;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.em... | SES-fortiss/SmartGridCoSimulation | core/cim15/src/CIM15/IEC61970/Wires/PerLengthPhaseImpedance.java | Java | apache-2.0 | 10,430 |
package uk.co.ourfriendirony.medianotifier.clients.tmdb.movie.get;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotatio... | OurFriendIrony/MediaNotifier | app/src/main/java/uk/co/ourfriendirony/medianotifier/clients/tmdb/movie/get/MovieGet.java | Java | apache-2.0 | 11,616 |
# [START maps_http_geocode_place_id]
import requests
url = "https://maps.googleapis.com/maps/api/geocode/json?place_id=ChIJd8BlQ2BZwokRAFUEcm_qrcA&key=YOUR_API_KEY"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
# [END maps_http_geocode_place_id] | googlemaps/openapi-specification | dist/snippets/maps_http_geocode_place_id/maps_http_geocode_place_id.py | Python | apache-2.0 | 320 |
// file ExampleInventoryRead
// $Id: ExampleInventoryRead.java,v 1.10 2009/01/09 22:10:13 mark Exp $
package je.gettingStarted;
import java.io.File;
import java.io.IOException;
import com.sleepycat.bind.EntryBinding;
import com.sleepycat.bind.serial.SerialBinding;
import com.sleepycat.bind.tuple.TupleBinding;
import... | bjorndm/prebake | code/third_party/bdb/examples/je/gettingStarted/ExampleInventoryRead.java | Java | apache-2.0 | 7,325 |
<?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
/**
* Catalog product weight backend attribute model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Catalog\Model\Product\Attribute\Backend;
class Weight extends \Magento\Eav\Model\E... | webadvancedservicescom/magento | app/code/Magento/Catalog/Model/Product/Attribute/Backend/Weight.php | PHP | apache-2.0 | 941 |
/*
* Copyright 2018 TWO SIGMA OPEN SOURCE, 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 appl... | twosigma/beaker-notebook | js/notebook/src/plot/PlotCursor.ts | TypeScript | apache-2.0 | 4,974 |
/*
* Copyright 2015 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... | etirelli/droolsjbpm-integration | kie-server-parent/kie-server-tests/kie-server-integ-tests-optaplanner/src/test/java/org/kie/server/integrationtests/optaplanner/OptaplannerIntegrationTest.java | Java | apache-2.0 | 30,201 |
<?php
/*
* Copyright (C) 2017 Luis Pinto <luis.nestesitio@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ver... | nestesitio/mvc-catrineta | catrineta/form/Form.php | PHP | apache-2.0 | 2,183 |
$(function() {
var search = $("#search");
var submissions = $("#submissions tbody tr");
search.on('keyup', function(event) {
var filter = search.val();
submissions.each(function(index, elem) {
var $elem = $(elem);
$elem.toggle($elem.data("student").indexOf(filter) !== -1);
});
})
});
| josalmi/lapio-stats | app/assets/javascripts/submissions.js | JavaScript | apache-2.0 | 318 |
/*
* Copyright 2016 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 ... | qweek/rsocket-java | rsocket-transport-local/src/main/java/io/rsocket/transport/local/LocalUriHandler.java | Java | apache-2.0 | 1,377 |
/*
* Copyright 2010-2021 James Pether Sörling
*
* 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 o... | Hack23/cia | citizen-intelligence-agency/src/test/java/com/hack23/cia/systemintegrationtest/ChartTest.java | Java | apache-2.0 | 3,413 |
package es.josealmela.BasicMathCalculator.client;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
* The async counterpart of <code>convertNumberService</code>.
*/
public interface ConverNumberServiceAsync {
void convertNumbertServer(String input, AsyncCallback<String> callback)
throws IllegalArgume... | jalmela/BasicMathCalculator | BasicMathCalculator/src/es/josealmela/BasicMathCalculator/client/ConverNumberServiceAsync.java | Java | apache-2.0 | 335 |
package org.dfhu.thpwa.routing;
abstract class RouteAdder<T extends Route> {
/**
* Get the url pattern for this route
*/
protected abstract String getPath();
/**
* get the HTTP request method
*/
protected abstract Route.METHOD getMethod();
public void doGet(RouteAdder<T> routeAdder) {
Halti... | Victory/TreasureHuntPWA | backspark/src/main/java/org/dfhu/thpwa/routing/RouteAdder.java | Java | apache-2.0 | 730 |
package com.github.takezoe.xlsbeans;
import com.github.takezoe.xlsbeans.annotation.Column;
import com.github.takezoe.xlsbeans.annotation.MapColumns;
import java.util.Map;
public class LanguageIDE {
private String name;
private Map<String, String> attributes;
public Map<String, String> getAttribut... | takezoe/xlsbeans | src/test/java/com/github/takezoe/xlsbeans/LanguageIDE.java | Java | apache-2.0 | 665 |
package com.ironz.binaryprefs;
import com.ironz.binaryprefs.cache.candidates.CacheCandidateProvider;
import com.ironz.binaryprefs.cache.provider.CacheProvider;
import com.ironz.binaryprefs.event.EventBridge;
import com.ironz.binaryprefs.exception.TransactionInvalidatedException;
import com.ironz.binaryprefs.file.trans... | iamironz/binaryprefs | library/src/main/java/com/ironz/binaryprefs/BinaryPreferencesEditor.java | Java | apache-2.0 | 10,537 |
package org.jrenner.fps.utils;
import com.badlogic.gdx.utils.Array;
import org.jrenner.fps.Log;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
pub... | jrenner/gdx-proto | core/src/org/jrenner/fps/utils/Compression.java | Java | apache-2.0 | 1,974 |
package demo.hashing;
import java.nio.ByteBuffer;
public class CassandraHash {
private static long getblock(ByteBuffer key, int offset, int index) {
int i_8 = index << 3;
return ((long) key.get(offset + i_8 + 0) & 0xff) + (((long) key.get(offset + i_8 + 1) & 0xff) << 8) +
(((long) key.get(offset + i_... | haghard/docker-compose-akka-cluster | src/main/scala/demo/hashing/CassandraHash.java | Java | apache-2.0 | 4,268 |
/*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.swaption;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.ZonedDateTime;
import java.util.Map;
import java.util.NoSuchEl... | OpenGamma/Strata | modules/pricer/src/main/java/com/opengamma/strata/pricer/swaption/NormalSwaptionExpiryStrikeVolatilities.java | Java | apache-2.0 | 19,774 |
// Start of user code Copyright
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclips... | EricssonResearch/scott-eu | lyo-services/domain-pddl/src/main/java/eu/scott/warehouse/domains/pddl/IStep.java | Java | apache-2.0 | 5,144 |
package com.nes.processor;
import com.nes.NesAbstractTst;
import org.junit.Test;
/**
*
* @author Dmitry
*/
public class SbcTest extends NesAbstractTst {
@Test
public void testSbc() {
String[] lines;
lines = new String[]{
"clc",
"lda #$50",
... | Otaka/mydifferentprojects | nes-java/test/com/nes/processor/SbcTest.java | Java | apache-2.0 | 1,413 |
/*
* Copyright © 2015 Lable (info@lable.nl)
*
* 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 o... | LableOrg/java-bitsandbytes | src/main/java/org/lable/oss/bitsandbytes/BitMask.java | Java | apache-2.0 | 3,928 |
/*******************************************************************************
* Copyright [2017] [Quirino Brizi (quirino.brizi@gmail.com)]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License... | quirinobrizi/buckle | src/interfaces/api/api-helper.js | JavaScript | apache-2.0 | 1,728 |
/*
* Copyright 2017 Courtanet
*
* 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... | lesfurets/dOOv | core/src/main/java/io/doov/core/dsl/DslField.java | Java | apache-2.0 | 1,096 |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | scana/ok-gradle | plugin/src/main/java/me/scana/okgradle/internal/dsl/parser/elements/GradleDslLiteral.java | Java | apache-2.0 | 5,565 |
package org.apache.sftp.protocol.packetdata;
import org.apache.sftp.protocol.Response;
public interface ExtendedImplementation<T extends Extended<T, S>, S extends Response<S>>
extends Implementation<T> {
public String getExtendedRequest();
public Implementation<S> getExtendedReplyImpl... | lucastheisen/mina-sshd | sshd-fs/src/main/java/org/apache/sftp/protocol/packetdata/ExtendedImplementation.java | Java | apache-2.0 | 338 |
package com.myntra.coachmarks.builder;
import android.graphics.Rect;
import android.os.Parcelable;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class CoachMarkPixelInfo implements Parcelable {
public static CoachMarkPixelInfo.Builder create() {
return new AutoValue_CoachMarkPixelIn... | myntra/CoachMarks | coachmarks/src/main/java/com/myntra/coachmarks/builder/CoachMarkPixelInfo.java | Java | apache-2.0 | 3,163 |
/* eslint-disable */
var webpack = require('webpack');
var path = require('path');
var nodeExternals = require('webpack-node-externals');
module.exports = {
entry: './index.js',
output: {
path: path.join(__dirname, '..', '..', 'build'),
filename: 'app.js'
},
resolve: {
modulesDirectories: ['shared'... | SmallShrimp/node-tpl | webpack/dev/webpack.node.config.js | JavaScript | apache-2.0 | 1,756 |
# # Use this setup block to configure all options available in SimpleForm.
# SimpleForm.setup do |config|
# # Wrappers are used by the form builder to generate a
# # complete input. You can remove any component from the
# # wrapper, change the order or even add your own to the
# # stack. The options given below... | QutBioacoustics/baw-server | config/initializers/simple_form.rb | Ruby | apache-2.0 | 6,796 |
/*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | komoot/graphhopper | reader-gtfs/src/main/java/com/graphhopper/reader/gtfs/PtFlagEncoder.java | Java | apache-2.0 | 3,249 |
// <copyright file="BingMainPageElementMap.cs" company="Automate The Planet Ltd.">
// Copyright 2021 Automate The Planet 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.apac... | angelovstanton/AutomateThePlanet | dotnet/Design-Architecture-Series/AdvancedPageObjectPattern/Pages/BingMainPage/BingMainPageElementMap.cs | C# | apache-2.0 | 1,443 |
package org.siggd.actor;
import org.siggd.ContactHandler;
import org.siggd.Convert;
import org.siggd.Game;
import org.siggd.Level;
import org.siggd.StableContact;
import org.siggd.Timer;
import org.siggd.view.BodySprite;
import org.siggd.view.CompositeDrawable;
import org.siggd.view.Drawable;
import com.b... | underclocker/Blob-Game | BlobGame/src/org/siggd/actor/Cannon.java | Java | apache-2.0 | 10,975 |
/*
* 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 ... | smanvi-pivotal/geode | geode-core/src/test/java/org/apache/geode/internal/logging/LogServiceIntegrationJUnitTest.java | Java | apache-2.0 | 8,584 |
package ncku.hpds.hadoop.fedhdfs.shell;
import java.io.BufferedOutputStream;
import java.io.ObjectInputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
import ncku.hpds.hadoop.fedhdfs.GlobalNamespaceObject;
public class DeleteDir {
private String SNaddress = "127.0.0.1";
private int SNport = ... | tseen/Federated-HDFS | tseenliu/FedHDFS-hadoop-src/hadoop-hdfs-project/hadoop-hdfs/src/main/java/ncku/hpds/hadoop/fedhdfs/shell/DeleteDir.java | Java | apache-2.0 | 2,262 |
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from game import app
http_server = HTTPServer(WSGIContainer(app))
http_server.listen(5000)
IOLoop.instance().start() | Drvanon/Game | run.py | Python | apache-2.0 | 232 |
package io.quarkus.arc.deployment;
import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.ClassInfo;
import org.jboss.jandex.DotName;
import org.jboss.jandex.Type;
import io.quarkus.arc.processor.BeanInfo;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.Bu... | quarkusio/quarkus | extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ReflectiveBeanClassesProcessor.java | Java | apache-2.0 | 1,559 |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | hazelcast-incubator/hazelcast-nodejs-client | src/codec/MapEvictAllCodec.ts | TypeScript | apache-2.0 | 1,557 |
//
// TDContentOptions.cs
//
// Author:
// Zachary Gramana <zack@xamarin.com>
//
// Copyright (c) 2014 Xamarin Inc
// Copyright (c) 2014 .NET Foundation
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to ... | brettharrisonzya/couchbase-lite-net | src/Couchbase.Lite.Shared/Documents/DocumentContentOptions.cs | C# | apache-2.0 | 3,544 |
// +build matcha
package bridge
// Go support functions for Objective-C. Note that this
// file is copied into and compiled with the generated
// bindings.
/*
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "go-foreign.h"
*/
import "C"
import (
"bytes"
"encoding/binary"
"fmt"
"math"
"refl... | gomatcha/matcha | bridge/go-foreign.go | GO | apache-2.0 | 6,886 |
var searchData=
[
['checksyscall_2eh',['CheckSysCall.h',['../db/d19/_check_sys_call_8h.html',1,'']]],
['classid_2eh',['ClassID.h',['../dc/d14/_class_i_d_8h.html',1,'']]],
['comparator_2eh',['Comparator.h',['../d7/d0c/_comparator_8h.html',1,'']]]
];
| AubinMahe/AubinMahe.github.io | doxygen/html/search/files_2.js | JavaScript | apache-2.0 | 255 |
package com.android.potlach.cloud.client;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.sec... | diyanfilipov/potlach-client | src/com/android/potlach/cloud/client/UnsafeHttpsClient.java | Java | apache-2.0 | 4,431 |
/**
* hujiawei - 15/3/21.
* <p/>
* 贪心
* <p/>
* https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
*/
public class BestTimetoBuyandSellStock_121 {
public static void main(String[] args) {
System.out.println(new BestTimetoBuyandSellStock_121().maxProfit(new int[]{2, 5, 3, 8, 1, 10}));
}... | hujiaweibujidao/XSolutions | java/leetcode/BestTimetoBuyandSellStock_121.java | Java | apache-2.0 | 654 |
# Copyright 2011 OpenStack Foundation
# Copyright 2011 Nebula, 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/... | ging/python-keystoneclient | keystoneclient/v3/users.py | Python | apache-2.0 | 6,977 |
package toolbox_test
import (
"bytes"
"testing"
"github.com/stretchr/testify/assert"
"github.com/viant/toolbox"
)
func TestEncoderFactory(t *testing.T) {
buffer := new(bytes.Buffer)
assert.NotNil(t, toolbox.NewJSONEncoderFactory().Create(buffer))
}
func TestMarshalEncoderFactory(t *testing.T) {
buffer := new... | viant/toolbox | encoder_test.go | GO | apache-2.0 | 726 |
package cn.six.tutor.table2;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import java.net.MalformedURLException;
import java.net.URL;
/**
* Created by songzhw on 2016/3/5.
*/
public class Table2Util {
private static ImageRegistry imgReg;
public stati... | songzhw/AndroidTestDemo | IntoJFace/src/cn/six/tutor/table2/Table2Util.java | Java | apache-2.0 | 1,025 |
package com.cqs.socket.example;
import javax.net.ServerSocketFactory;
import javax.net.ssl.SSLServerSocketFactory;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util... | lixwcqs/funny | src/main/java/com.cqs/socket/example/SocketServerEncrypt.java | Java | apache-2.0 | 2,461 |
package net.community.chest.test.gui;
import java.io.BufferedReader;
import java.io.PrintStream;
import net.community.chest.Triplet;
import net.community.chest.awt.dom.converter.InsetsValueInstantiator;
import net.community.chest.awt.layout.gridbag.ExtendedGridBagConstraints;
import net.community.chest.awt.layout.grid... | lgoldstein/communitychest | chest/gui/swing/src/test/java/net/community/chest/test/gui/ResourcesTester.java | Java | apache-2.0 | 3,969 |
/*
* Copyright 2015 ANTONIO CARLON
*
* 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... | antoniocarlon/jummyshapefile | src/main/java/com/jummyshapefile/dbf/model/DBFFieldDescriptor.java | Java | apache-2.0 | 2,717 |
/*
* 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-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/transform/WriteSegmentRequestMarshaller.java | Java | apache-2.0 | 2,302 |
sap.ui.define(['exports', './asset-registries/i18n', './asset-registries/LocaleData', './asset-registries/Themes', './asset-registries/Icons'], function (exports, i18n, LocaleData, Themes, Icons) { 'use strict';
exports.registerI18nLoader = i18n.registerI18nLoader;
exports.registerLocaleDataLoader = LocaleData.reg... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/AssetRegistry.js | JavaScript | apache-2.0 | 548 |
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2_app',
'username' => 'root',
'password' => 'lixiaoyu',
'charset' => 'utf8mb4',
'tablePrefix' => '',
];
| diandianxiyu/Yii2-CMS-Template | config/db_app.php | PHP | apache-2.0 | 217 |
using System;
namespace Chutzpah.Utility
{
public interface ICompilerCache
{
string Get(string source);
void Set(string source, string compiled);
void Save();
}
} | pimterry/chutzpah | Chutzpah/Utility/ICompilerCache.cs | C# | apache-2.0 | 212 |
package com.fruit.service.management;
import com.fruit.base.BaseService;
import com.fruit.entity.management.Quality;
import java.util.Map;
/**
* 产品质量检测 Service
* @author CSH
*
*/
public interface QualityService extends BaseService<Quality> {
/**返回当前质检人员的质检记录
* @param page
* @param pageSize
* @param ... | tanliu/fruit | fruit-core/src/main/java/com/fruit/service/management/QualityService.java | Java | apache-2.0 | 2,193 |
# -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-retail | google/cloud/retail_v2/services/search_service/__init__.py | Python | apache-2.0 | 765 |
<?php
/**
* Retrieves information about session cache memory usage
*
* @phpstub
*
* @return array Array of meta data about session cache memory usage
*/
function wincache_scache_meminfo()
{
} | schmittjoh/php-stubs | res/php/wincache/functions/wincache-scache-meminfo.php | PHP | apache-2.0 | 198 |
package com.focusit.jitloganalyzer.tty.model;
/**
* Created by doki on 08.11.16.
* <writer thread='139821162608384'/>
*/
public class WriterEvent extends AbstractTTYEvent implements TTYEvent, HasThreadId
{
private final static String START_TOKEN = "<writer";
private long threadId;
@Override
public... | d0k1/jitloganalyzer | analyzer/src/main/java/com/focusit/jitloganalyzer/tty/model/WriterEvent.java | Java | apache-2.0 | 637 |
@extends('portalz::layout')
@section('content')
@section('breadcrumbs', Breadcrumbs::render('file-management-form',$data))
<div class="row">
<div class="col-md-12">
{!! Form::open(['url' => 'management/file/store','files' => true,'id'=>'storeForm','class'=>'form-horizontal']) !!}
{!! Form::hidden('id', isset($data... | suhe/bdoportal | resources/views/files/form Copy.blade.php | PHP | apache-2.0 | 6,981 |
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'test-page-two',
templateUrl: './page-two.component.html',
styleUrls: [
'./page-two.component.scss'
]
})
export class PageTwoComponent implements OnInit {
message: string;
constructor() {
this.message = '';
}
ngOnInit():... | vivekmore/generator-jhipster-nav-element | test/angular/nested-routes/use-sass/results/src/main/webapp/app/about-us/page-two/page-two.component.ts | TypeScript | apache-2.0 | 382 |
package postgres
import "github.com/shijuvar/gokit/examples/http-app/pkg/domain"
// ProductStore provides persistence logic for "products" table
type ProductStore struct {
Store DataStore
}
// ToDO: Write CRUD operations here
// Create creates a new Product
func (productStore ProductStore) Create(product domain.Pro... | shijuvar/gokit | examples/http-app/pkg/postgres/product_store.go | GO | apache-2.0 | 414 |
package org.tc.autonomous;
public class RetreatCommand3HullMod extends AbstractRetreatCommandHullMod {
public RetreatCommand3HullMod() {
super(3);
}
}
| herve-quiroz/autonomous-ships | src/org/tc/autonomous/RetreatCommand3HullMod.java | Java | apache-2.0 | 163 |
# Copyright 2015-2017 Capital One Services, 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 ... | sixfeetup/cloud-custodian | c7n/filters/offhours.py | Python | apache-2.0 | 21,487 |
from flask import Flask, Response, make_response
from video_stream_handler import stream_handler
import logging
import cv2
# see line 398 of connectionpool.py:
logging.basicConfig(level=logging.DEBUG)
thetav = None
app = Flask(__name__, static_url_path='/public', static_folder='../')
@app.route('/video_feed')
def ... | rwoodley/SphericalPhotoBrowser | server/server.py | Python | apache-2.0 | 578 |
<?php return [
'pagination' => [
'ListBuckets' => [
'result_key' => 'Buckets',
],
'ListMultipartUploads' => [
'limit_key' => 'MaxUploads',
'more_results' => 'IsTruncated',
'output_token' => [
'NextKeyMarker',
'NextUploadIdMarker',
],
'input_token' => [
... | Briareos/aws-sdk-php | src/data/s3-2006-03-01.paginators.php | PHP | apache-2.0 | 1,346 |
package com.example.fraud;
import static org.springframework.web.bind.annotation.RequestMethod.PUT;
import java.math.BigDecimal;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
i... | pfrank13/spring-cloud-contract | samples/standalone/pact/pact-http-server/src/main/java/com/example/fraud/FraudDetectionController.java | Java | apache-2.0 | 1,348 |
package annotationInteraction;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
public class QueryGenerator {
private long worksheet_id;
... | pony-boy/AdamBradleyThesis | Metatation files/src/annotationInteraction/QueryGenerator.java | Java | apache-2.0 | 29,678 |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-13 01:17
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('dash', '0002_remove_post_origin'),
]
operations = [
migrations.... | CMPUT404W17T06/CMPUT404-project | dash/migrations/0003_auto_20170313_0117.py | Python | apache-2.0 | 497 |
<?php
/**
* User: nathena
* Date: 2017/6/19 0019
* Time: 9:49
*/
include '../application/boot.php'; | nathena/zeus-php | webroot/index.php | PHP | apache-2.0 | 103 |
using System;
using System.Reflection;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using MongoDB;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Driver;
namespace DHDWeb.Models
{
public class SoftwareModel:ModelBase
{
public SoftwareModel()
... | sugartomato/AllProjects | daihaidong.com/DHDWeb/DHDWeb/Models/SoftwareModel.cs | C# | apache-2.0 | 770 |
package com.sva.model;
import java.math.BigDecimal;
public class LocationModel
{
private String idType;
private BigDecimal timestamp;
private String dataType;
private BigDecimal x;
private BigDecimal y;
private BigDecimal z;
private String userID;
private String path;
priva... | SVADemoAPP/Server | model/com/sva/model/LocationModel.java | Java | apache-2.0 | 1,944 |
package org.nd4j.linalg.api.ops.impl.transforms.custom;
import org.nd4j.autodiff.samediff.SDVariable;
import org.nd4j.autodiff.samediff.SameDiff;
import org.nd4j.base.Preconditions;
import org.nd4j.linalg.api.buffer.DataType;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.ops.DynamicCustomOp;
... | RobAltena/deeplearning4j | nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/custom/FakeQuantWithMinMaxVars.java | Java | apache-2.0 | 3,062 |
/*
* 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 ... | ChetnaChaudhari/hadoop | hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientSpi.java | Java | apache-2.0 | 3,772 |
/**
* Copyright 2015 Alexander Erhard
*
* 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... | richard-strauss-werke/glyphpicker | src/main/java/de/badw/strauss/glyphpicker/model/DataSourceList.java | Java | apache-2.0 | 3,199 |
using DigitalImageProcessingLib.ImageType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DigitalImageProcessingLib.Interface
{
public interface IGlobalTresholdBinarization: IBinarization
{
int Treshold { get; set; }
... | ValeriyaSyomina/TextDetector | src/DigitalImageProcessingLib/Interface/IGlobalTresholdBinarization.cs | C# | apache-2.0 | 367 |
/*
Copyright 2019 The Kubernetes 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 writing, ... | justinsb/kops | protokube/cmd/protokube/main.go | GO | apache-2.0 | 11,852 |
/*
* Copyright 2011 Oleg Elifantiev
*
* 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 ... | Olegas/YandexAPI | src/ru/elifantiev/yandex/oauth/OAuthActivity.java | Java | apache-2.0 | 4,910 |
import { connect } from 'react-redux'
import { increment, doubleAsync,callApiAsync } from '../modules/Login'
/* This is a container component. Notice it does not contain any JSX,
nor does it import React. This component is **only** responsible for
wiring in the actions and state necessary to render a presenta... | vio-lets/Larkyo-Client | src/components/login/controllers/LoginController.js | JavaScript | apache-2.0 | 1,549 |
/*
* Copyright 2006-2007 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Gigaspaces/xap-openspaces | src/main/java/org/openspaces/admin/gsa/ElasticServiceManagerOptions.java | Java | apache-2.0 | 3,376 |
# 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 law or a... | elibixby/gcloud-python | gcloud/bigtable/row_data.py | Python | apache-2.0 | 15,589 |
/*
* 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 | gazebo/gui/MainWindow.cc | C++ | apache-2.0 | 43,348 |
package se.tmeit.app.model;
import com.google.auto.value.AutoValue;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Model object for attendees of an external event.
*/
@AutoValue
public abstract class ExternalEventAtten... | wsv-accidis/tmeit-android | app/src/main/java/se/tmeit/app/model/ExternalEventAttendee.java | Java | apache-2.0 | 2,147 |
<?php
namespace WonderPush\Obj;
if (count(get_included_files()) === 1) { http_response_code(403); exit(); } // Prevent direct access
/**
* DTO part for `installation.device`.
* @see Installation
* @codeCoverageIgnore
*/
class InstallationDevice extends BaseObject {
/** @var string */
private $id;
/** @var... | wonderpush/wonderpush-php-lib | lib/Obj/InstallationDevice.php | PHP | apache-2.0 | 4,063 |
/*
* Copyright 2016 Code Above Lab 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 agr... | codeabovelab/haven-platform | cluster-manager/src/main/java/com/codeabovelab/dm/cluman/cluster/docker/model/swarm/DispatcherConfig.java | Java | apache-2.0 | 854 |
# Copyright 2015 The Meson development 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 agreed to ... | evgenyz/meson | modules/gnome.py | Python | apache-2.0 | 10,923 |
package es.upm.oeg.farolapi.model;
import lombok.Data;
import lombok.ToString;
import java.util.Arrays;
import java.util.List;
/**
* Created on 23/05/16:
*
* @author cbadenes
*/
@Data
@ToString (callSuper = true)
public class LightAttribute extends Attribute {
@Override
public List<String> getRange() {
... | cbadenes/farolapi | src/main/java/es/upm/oeg/farolapi/model/LightAttribute.java | Java | apache-2.0 | 410 |
/*
* 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-redis | proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java | Java | apache-2.0 | 3,827 |
/*
* Copyright © 2021 Cask Data, 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... | data-integrations/delta | delta-app/src/main/java/io/cdap/delta/store/DBReplicationOffsetStore.java | Java | apache-2.0 | 4,397 |
/*-
* Copyright (C) 2013-2014 The JBromo Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | qjafcunuas/jbromo | jbromo-lib/src/test/java/org/jbromo/common/test/common/EnumTestUtil.java | Java | apache-2.0 | 2,245 |
package build
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"os"
"runtime"
"github.com/BurntSushi/toml"
"github.com/buildpacks/lifecycle/platform"
"github.com/docker/docker/api/types"
dcontainer "github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/pkg/errors"
... | knative-sandbox/kn-plugin-func | vendor/github.com/buildpacks/pack/internal/build/container_ops.go | GO | apache-2.0 | 8,619 |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | wanglei828/apollo | modules/perception/fusion/lib/data_association/hm_data_association/track_object_distance.cc | C++ | apache-2.0 | 33,912 |
package io.skysail.server.app.um.db.users.resources;
import io.skysail.api.links.Link;
import io.skysail.api.responses.SkysailResponse;
import io.skysail.server.app.um.db.UmApplication;
import io.skysail.server.app.um.db.domain.User;
import io.skysail.server.restlet.resources.EntityServerResource;
import java.util.Li... | evandor/skysail-framework | skysail.server.app.um.db/src/io/skysail/server/app/um/db/users/resources/UserResource.java | Java | apache-2.0 | 972 |
function getFunction(f,b){
return function myNextTick(){
console.log(f + " " + b);
};
}
process.nextTick(getFunction("foo", "bar"));
| marcos-goes/livro_node | 04/next-tick-gambi.js | JavaScript | apache-2.0 | 146 |
/*
* Copyright 2010-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 "l... | dump247/aws-sdk-java | aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/transform/CreateUploadResultJsonUnmarshaller.java | Java | apache-2.0 | 2,813 |
from muntjac.ui.vertical_layout import VerticalLayout
from muntjac.ui.menu_bar import MenuBar, ICommand
from muntjac.terminal.external_resource import ExternalResource
class MenuBarItemStylesExample(VerticalLayout):
def __init__(self):
super(MenuBarItemStylesExample, self).__init__()
self._menu... | rwl/muntjac | muntjac/demo/sampler/features/menubar/MenuBarItemStylesExample.py | Python | apache-2.0 | 2,645 |
package edu.towson.cis.cosc603.project2.monopoly.gui;
import edu.towson.cis.cosc603.project2.monopoly.Cell;
import edu.towson.cis.cosc603.project2.monopoly.Player;
import edu.towson.cis.cosc603.project2.monopoly.UtilityCell;
// TODO: Auto-generated Javadoc
/**
* The Class UtilCellInfoFormatter.
*/
public class Util... | mtendu/cosc603-tendulkar-project2 | Monopoly/Monopoly/src/edu/towson/cis/cosc603/project2/monopoly/gui/UtilCellInfoFormatter.java | Java | apache-2.0 | 1,011 |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... | r2-studio/robotmon-scripts | scripts/com.r2studio.LineageM/index.js | JavaScript | apache-2.0 | 51,799 |
/*
* Copyright 2016 Alireza Eskandarpour Shoferi
*
* 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 ... | meNESS/EasyIntro | library/src/main/java/io/github/meness/easyintro/EasyIntro.java | Java | apache-2.0 | 9,883 |
/*
* 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 ... | apacheignite/ignite | modules/core/src/main/java/org/apache/ignite/internal/portable/streams/PortableMemoryAllocatorChunk.java | Java | apache-2.0 | 3,228 |