repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Gr33nOpo55um/EnOcean | src/ch/bfh/gr33nopo55um/enocean/helper/ReadConfig.java | 1385 | package ch.bfh.gr33nopo55um.enocean.helper;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Date;
import java.util.Properties;
/**
* @author silas
* @class Class for reading the config file
*/
public class ReadConfig {
private InputStream inputStrea... | apache-2.0 |
basiljose1/byjcrm | test/templates_c/vlayout/b8db083918b3114ff17815f91bb3f975eaaa86fa.file.HistoryContents.tpl.php | 15806 | <?php /* Smarty version Smarty-3.1.7, created on 2016-09-06 12:49:40
compiled from "/home/bj/www/vtigercrma/includes/runtime/../../layouts/vlayout/modules/Vtiger/dashboards/HistoryContents.tpl" */ ?>
<?php /*%%SmartyHeaderCode:167699122357cebb64d5ad30-23480925%%*/if(!defined('SMARTY_DIR')) exit('no direct acce... | apache-2.0 |
learning-layers/LTB-API | module/ltbapi/src/ltbapi/V2/Rpc/Auth/OIDC.php | 5464 | <?php
namespace ltbapi\V2\Rpc\Auth;
class OIDC {
private $message = '';
public function __construct($open_id_config){
/*
* The settings are copied from the local settings. The redirect uri
* will be accessed from the AuthController but should be here for completeness.
... | apache-2.0 |
Rmelev/rshmelev | chapter_007/src/main/java/ru/job4j/threads/MultiThreadProblems.java | 1375 | package ru.job4j.threads;
/**
* class to show problems with multi thread.
*/
public class MultiThreadProblems implements Runnable {
/**
* thread.
*/
private Thread thread;
/**
* counter in loop.
*/
private static int i = 0;
/**
* Constructor.
*/
MultiThreadProbl... | apache-2.0 |
tbartolucci/hackerrank | src/com/hackerrank/introduction/Loops.java | 637 | package com.hackerrank.introduction;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Loops {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
for ( int testcase = 0; testcase < t; testcase++ ... | apache-2.0 |
levivic/origin | pkg/deploy/api/test/ok.go | 4731 | package test
import (
kapi "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/resource"
deployapi "github.com/openshift/origin/pkg/deploy/api"
imageapi "github.com/openshift/origin/pkg/image/api"
)
func OkDeploymentConfigSpec() deployapi.DeploymentConfigSpec {
return deployapi.DeploymentConfigSpec{
Replic... | apache-2.0 |
renatocastorela/myrepo | web/src/main/java/org/oiga/web/social/signin/SignInUtils.java | 416 | package org.oiga.web.social.signin;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
public class SignInUtils {
public static void signin(String userId) {
SecurityContextHolder.getContext().... | apache-2.0 |
FangStarNet/symphonyx | src/main/java/org/b3log/symphony/repository/OptionRepository.java | 1150 | /*
* Copyright (c) 2012-2016, b3log.org & hacpai.com & fangstar.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 requ... | apache-2.0 |
tomwalder/php-appengine-pull-queue | src/AEQ/Pull/Queue.php | 9383 | <?php namespace AEQ\Pull;
/**
* Copyright 2016 Tom Walder
*
* 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... | apache-2.0 |
desruisseaux/sis | core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/quality/DefaultRelativeInternalPositionalAccuracy.java | 4482 | /*
* 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 ... | apache-2.0 |
findmypast-oss/jackal | client/run.js | 392 | 'use strict'
const request = require('request')
const handleResponse = require('./handle-response')
const url = require('./jackal-url')
module.exports = (jackalUrl, providerName, options, done) => {
const query = options.providerUrl ? `?testUrl=${options.providerUrl}` : ''
const jacky = url(jackalUrl, `/api/contr... | apache-2.0 |
ysc/rank | src/main/java/org/seo/rank/list/impl/DefaultParser.java | 11512 | /**
*
* APDPlat - Application Product Development Platform
* Copyright (c) 2013, 杨尚川, yang-shangchuan@qq.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 Li... | apache-2.0 |
guoxiaoxing/material-design-music-player | cloud/src/main/java/com/guoxiaoxing/cloud/music/receiver/LaunchNowPlayingReceiver.java | 920 | package com.guoxiaoxing.cloud.music.receiver;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import com.guoxiaoxing.cloud.music.ui.activity.PlayingActivity;
public class LaunchNowPlayingReceiver extends BroadcastReceiver ... | apache-2.0 |
rickerc/neutron_audit | neutron/extensions/securitygroup.py | 12372 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 OpenStack Foundation.
# 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-2.0 |
agileowl/tapestry-5 | tapestry-func/src/main/java/org/apache/tapestry5/func/LazyZipValue.java | 1004 | // Copyright 2010 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | apache-2.0 |
wealthfront/kawala | kawala-testing/src/test/java/com/kaching/platform/testing/CyclicDependencyTestRunnerTest.java | 3542 | /**
* Copyright 2015 Wealthfront Inc. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
* or agreed to in writing... | apache-2.0 |
First-Peoples-Cultural-Council/fv-web-ui | modules/common/firstvoices-publisher/src/main/java/ca/firstvoices/publisher/operations/CheckUnpublishedChanges.java | 1939 | /*
*
* *
* * Copyright 2020 First People's Cultural Council
* *
* * 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
* ... | apache-2.0 |
mattnworb/helios | helios-services/src/main/java/com/spotify/helios/master/MasterService.java | 19145 | /*-
* -\-\-
* Helios Services
* --
* Copyright (C) 2016 Spotify AB
* --
* 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
*
* Unl... | apache-2.0 |
tolo/JServer | src/java/com/teletalk/jserver/net/sns/client/SnsServerAdministrationClient.java | 2884 | /*
* Copyright 2007 the project originators.
*
* 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... | apache-2.0 |
Mozu/mozu-python-sdk | mozurestsdk/commerce/customer/accounts/customernote.py | 5978 |
"""
This code was generated by Codezu.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
"""
from mozurestsdk.mozuclient import default as default_client
from mozurestsdk.mozuurl import MozuUrl;
from mozurestsdk.urllocation import UrlLocation
from mozure... | apache-2.0 |
SergeyZubkov/Angular-ES6-Webpack-SCSS | client/app/filters/rateFilter.js | 118 | function rateFilter() {
return function(input) {
return `${input} руб./час`
}
}
export default rateFilter;
| apache-2.0 |
ouhi2008/NuGetGalleryWithLDAP | Website/Commands/ModifyCuratedPackageCommand.cs | 1228 | using System;
using System.Linq;
namespace NuGetGallery
{
public interface IModifyCuratedPackageCommand
{
void Execute(
int curatedFeedKey,
int curatedPackageKey,
bool included);
}
public class ModifyCuratedPackageCommand : AppCommand, IModifyCuratedPackage... | apache-2.0 |
weld/core | tests-arquillian/src/test/java/org/jboss/weld/tests/interceptors/aroundConstruct/basic/BravoParameterProducer.java | 1100 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | apache-2.0 |
ice91/CloudBrush | src/Brush/Graph2Fasta.java | 4079 | /*
The file is derived from Contrail Project which is developed by Michael Schatz,
Jeremy Chambers, Avijit Gupta, Rushil Gupta, David Kelley, Jeremy Lewi,
Deepak Nettem, Dan Sommer, Mihai Pop, Schatz Lab and Cold Spring Harbor Laboratory,
and is released under Apache License 2.0 at:
http://sourc... | apache-2.0 |
kingargyle/turmeric-bot | tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelQuickFixTest.java | 1467 | /**
* 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... | apache-2.0 |
azzlack/Sentinel.OAuth | src/Sentinel.Tests/Unit/SHA2CryptoProviderTests.cs | 6073 | namespace Sentinel.Tests.Unit
{
using Newtonsoft.Json;
using NUnit.Framework;
using Sentinel.OAuth.Core.Constants.Identity;
using Sentinel.OAuth.Core.Interfaces.Providers;
using Sentinel.OAuth.Implementation.Providers;
using Sentinel.OAuth.Models.Identity;
using System;
using System.Sec... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/handlers/RequestHandler2Adaptor.java | 2443 | /*
* Copyright 2010-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 "lice... | apache-2.0 |
squaremo/libnetwork | drivers/remote/driver.go | 6836 | package remote
import (
"fmt"
"net"
log "github.com/Sirupsen/logrus"
"github.com/docker/docker/pkg/plugins"
"github.com/docker/libnetwork/driverapi"
"github.com/docker/libnetwork/types"
)
type driver struct {
endpoint *plugins.Client
networkType string
}
func newDriver(name string, client *plugins.Client... | apache-2.0 |
webdriverextensions/webdriverextensions | src/main/java/com/github/webdriverextensions/internal/ReflectionUtils.java | 4083 | package com.github.webdriverextensions.internal;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.lang.reflect.TypeVariable;
im... | apache-2.0 |
Pkcs11Interop/Pkcs11Interop | src/Pkcs11Interop/HighLevelAPI81/MechanismParams/CkSsl3KeyMatParams.cs | 6919 | /*
* Copyright 2012-2021 The Pkcs11Interop 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... | apache-2.0 |
aosp-mirror/platform_frameworks_support | compat/src/main/java/androidx/core/hardware/fingerprint/FingerprintManagerCompat.java | 11089 | /*
* 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... | apache-2.0 |
AutorestCI/azure-sdk-for-node | lib/services/webSiteManagement2/lib/models/hybridConnectionCollection.js | 1617 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | apache-2.0 |
lucca65/rails_semantic_base | spec/requests/messages_spec.rb | 239 | require 'rails_helper'
RSpec.describe "Messages", :type => :request do
describe "GET /messages" do
it "works! (now write some real specs)" do
get messages_path
expect(response).to have_http_status(200)
end
end
end
| apache-2.0 |
Yoyorony/FuncraftAlerts | java/yoyorony/me/funcraftv2alerts/ForumActivityItemsThird.java | 8874 | package yoyorony.me.funcraftv2alerts;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
i... | apache-2.0 |
nezihyigitbasi/presto | presto-hive/src/main/java/com/facebook/presto/hive/HiveClientConfig.java | 42318 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | apache-2.0 |
PaulWay/insights-core | insights/parsers/multipath_conf.py | 4720 | """
MultipathConf - file ``/etc/multipath.conf``
============================================
The main class is the MultipathConf class, which reads the multipath daemon's
``/etc/multipath.conf`` configuration file. This is in a pseudo-JSON format.
The ``multipath`` parser function is deprecated and should not be us... | apache-2.0 |
flier/zipkin-cpp | include/zipkin.hpp | 250 | #pragma once
#include "Config.h"
#include "Version.h"
#include "Span.h"
#include "Tracer.h"
#include "Propagation.h"
#include "Collector.h"
#include "KafkaCollector.h"
#ifdef WITH_CURL
#include "HttpCollector.h"
#endif
#include "ScribeCollector.h" | apache-2.0 |
wolvesled/JavaBeginnerStudy | DynShapes.java | 3184 | // Use dynamic method dispatch.
// A class for two-dimensional objects.
class TwoDShape {
private double width; // these are
private double height; // now private
private String name;
// A default constructor.
TwoDShape() {
width = height = 0.0;
name = "null";
}
// Parameterized constructo... | apache-2.0 |
davidtsadler/ebay-sdk-php | src/Trading/Enums/BalanceCodeType.php | 340 | <?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\Trading\Enums;
class BalanceCodeType
{
const C_CUSTOM_CODE = 'CustomCode';
const C... | apache-2.0 |
pyrochlore/cycles | src/blender/addon/properties.py | 37894 | #
# Copyright 2011-2013 Blender 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... | apache-2.0 |
murgatroid99/grpc | test/core/surface/server_test.cc | 6453 | /*
*
* Copyright 2015 gRPC 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 agree... | apache-2.0 |
eggman89/TagGenerationAndMusicReco | src/main/scala-2.10/eggman89/hashmap.scala | 456 | package eggman89
/**
* Created by sneha on 12/7/2015.
*/
class hashmap extends java.io.Serializable
{
var obj:Map[String,Int] = Map()
var id = 0
def add(value:String): Int ={
if (obj.contains(value) == true)
{
obj(value)
}
else
{
id = id + 1
obj = obj +(value->id)
... | apache-2.0 |
biddyweb/gateway | transport/bio/src/main/java/org/kaazing/gateway/transport/bio/MulticastAcceptorImpl.java | 12393 | /**
* Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.
*
* 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 fil... | apache-2.0 |
assemblade/CAT | cat-client-model/src/main/java/com/assemblade/client/model/Property.java | 2187 | /*
* Copyright 2012 Mike Adamson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
SpruceHillio/urbanairship-java-api-wrapper | src/main/java/io/sprucehill/urbanairship/model/TagsRequest.java | 6557 | package io.sprucehill.urbanairship.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Setting tags on either channel IDs or namedUser IDs
*
* @author Michael Duergner <michael@sprucehill.io>
*/
public ... | apache-2.0 |
smurawski/chef | spec/unit/provider/template/content_spec.rb | 6527 | #
# Author:: Lamont Granquist (<lamont@chef.io>)
# Copyright:: Copyright 2013-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
... | apache-2.0 |
JLospinoso/juno | juno-core/src/main/java/net/lospi/juno/estimation/ml/PhaseOneResults.java | 231 | /*
* Copyright (c) 2014. Josh Lospinoso. All rights reserved
*/
package net.lospi.juno.estimation.ml;
public interface PhaseOneResults {
WeightMatrix getWeightMatrix();
boolean isSuccessful();
String getStatus();
}
| apache-2.0 |
b3log/latke | latke-core/src/main/java/org/b3log/latke/repository/annotation/Propagation.java | 927 | /*
* Copyright (c) 2009-present, b3log.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | apache-2.0 |
getcarina/interlock | plugins/stats/info.go | 430 | package stats
import (
"github.com/getcarina/interlock"
)
const (
pluginName = "stats"
pluginVersion = "0.1"
pluginDescription = "cluster stats to graphite"
pluginUrl = "https://github.com/getcarina/interlock/tree/master/plugins/stats"
)
var (
pluginInfo = &interlock.PluginInfo{
Name: ... | apache-2.0 |
xushaomin/apple-auto | apple-auto-partner-platform/src/main/webapp/static/js/heart_beat.js | 8352 | /**
* All JS in here.
*/
$(function () {
new HeartBeat();
});
function HeartBeat() {
this.toggleMenuActive();
}
HeartBeat.prototype = {
toggleMenuActive: function () {
var href = location.pathname;
if (href.indexOf("instance/") != -1) {
$("#mainMenu li#in... | apache-2.0 |
meego-netbook-ux/google-gadgets-meego | extensions/qt_system_framework/qt_system_framework.cc | 10459 | /*
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | apache-2.0 |
sihrc/Personal-Code-Bin | project-euler/problem_289.cpp | 832 | /*
Eulerian Cycles
Problem 289
Let C(x,y) be a circle passing through the points (x, y), (x, y+1), (x+1, y) and (x+1, y+1).
For positive integers m and n, let E(m,n) be a configuration which consists of the m·n circles:
{ C(x,y): 0 ≤ x < m, 0 ≤ y < n, x and y are integers }
An Eulerian cycle on E(m,n) is a closed pat... | apache-2.0 |
zengboming/JAVA | 第六组第六题/src/grade/book/Majors.java | 3358 | /*
* 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 grade.book;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
im... | apache-2.0 |
little-cui/service-center | syncer/serf/serf_test.go | 4392 | /*
* 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 ... | apache-2.0 |
aQute-os/biz.aQute.openapi | biz.aQute.openapi.api/src/aQute/openapi/security/environment/api/package-info.java | 97 | @org.osgi.annotation.versioning.Version("1.0.0")
package aQute.openapi.security.environment.api;
| apache-2.0 |
StackableRegiments/analyticalmetlx | src/test/scala/com/metl/data/MeTLCommandSuite.scala | 1697 | package com.metl.data
import org.scalatest._
import org.scalatest.FunSuite
import org.scalatest.BeforeAndAfter
import org.scalatest.matchers.{ShouldMatchers, HavePropertyMatcher, HavePropertyMatchResult}
import org.scalatest.prop.GeneratorDrivenPropertyChecks
import org.scalatest.OptionValues._
import net.liftweb.uti... | apache-2.0 |
romanchyla/pylucene-trunk | test/BaseTestRangeFilter.py | 3541 | # ====================================================================
# 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 re... | apache-2.0 |
sdl/dxa-content-management | Sdl.Web.Tridion.Templates.R2/Data/TargetGroups/Model/TargetGroupCondition.cs | 185 | namespace Sdl.Web.Tridion.Templates.R2.Data.TargetGroups.Model
{
public class TargetGroupCondition : Condition
{
public TargetGroup TargetGroup { get; set; }
}
}
| apache-2.0 |
mitre-cyber-academy/2013-web-400 | cookbooks/challenge/files/default/rails_messaging_app/config/environments/test.rb | 1537 | Railsmessagingapp::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for t... | apache-2.0 |
consulo/consulo-scala | src/org/jetbrains/plugins/scala/lang/psi/ScalaPsiImplementationHelper.scala | 2195 | package org.jetbrains.plugins.scala.lang.psi
import api.toplevel.typedef.{ScObject, ScClass, ScTrait}
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.{OrderEntry, ProjectRootManager, ProjectFileIndex}
import com.intellij.psi.{PsiClass, JavaPsiFa... | apache-2.0 |
Esri/map-carousel-template | js/nls/cs/resources.js | 547 | define({
"app": {
"title": "Otočná nabídka mapy",
"errors": {
"noMaps": "Tato skupina neobsahuje žádné veřejné webové mapy, které by bylo možné zobrazit",
"noGroup": "Skupina nebyla nalezena",
"createGroup": "Nelze vytvořit skupinu",
"bitly": "Služba bitly slouží ke zkracování adresy U... | apache-2.0 |
pdrados/cas | .github/renovate.js | 296 | module.exports = {
branchPrefix: 'renovate/',
gitAuthor: 'Renovate Bot <bot@renovateapp.com>',
logLevel: 'warn',
onboarding: false,
platform: 'github',
includeForks: true,
repositories: [
'apereo/cas'
],
enabledManagers: ["gradle"],
"gradle": {
"enabled": true
}
};
| apache-2.0 |
annict/annict | db/migrate/20190317000000_update_for_irregular_episodes.rb | 298 | # frozen_string_literal: true
class UpdateForIrregularEpisodes < ActiveRecord::Migration[5.2]
def change
add_column :programs, :irregular, :boolean, default: false, null: false
add_column :program_details, :minimum_episode_generatable_number, :integer, default: 1, null: false
end
end
| apache-2.0 |
abdlquadri/MokiTouch-Android | MokiTouchAndroid/src/main/java/com/moki/touch/cache/DownloadThread.java | 4182 | package com.moki.touch.cache;
import android.os.AsyncTask;
import android.os.Environment;
import android.util.Log;
import com.moki.touch.models.ContentObject;
import com.moki.touch.util.UrlUtil;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
impor... | apache-2.0 |
OmniKryptec/OmniKryptec-Engine | src/main/java/de/omnikryptec/event/EventSubscription.java | 1050 | /*
* Copyright 2017 - 2019 Roman Borris (pcfreak9000), Paul Hagedorn (Panzer1119)
*
* 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/... | apache-2.0 |
morgwai/jam | instrumentationExample/src/main/java/pl/morgwai/jam/instrumentation/example/JamExampleListener.java | 974 | /*
* Copyright (C) 2012 Piotr Morgwai Kotarbinski
*
* 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... | apache-2.0 |
mirsaeedi/CqrsSample | Kaftar/Kaftar.Core/Data/DataContext/ISetDataContext.cs | 293 | using System.Data.Entity;
using Kaftar.Core.Data.Models;
namespace Kaftar.Core.Data.DataContext
{
public interface ISetDataContext
{
DbSet<TEntity> Set<TEntity>() where TEntity : Entity;
void Update<TEntity>(TEntity entity) where TEntity : Entity;
}
} | apache-2.0 |
spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/repo/Customer1016Repository.java | 284 | package example.repo;
import example.model.Customer1016;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1016Repository extends CrudRepository<Customer1016, Long> {
List<Customer1016> findByLastName(String lastName);
}
| apache-2.0 |
lauthieb/gravitee-management-webui | src/management/application/details/members/application-members.controller.ts | 3469 | /*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | apache-2.0 |
massakam/pulsar | pulsar-client/src/main/java/org/apache/pulsar/client/impl/NonPersistentAcknowledgmentGroupingTracker.java | 2237 | /**
* 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... | apache-2.0 |
Denive/Digital-Screens | app/src/main/java/com/digital_screens/test_task/di/AppComponent.java | 437 | package com.digital_screens.test_task.di;
import com.digital_screens.test_task.di.modules.AppModule;
import com.digital_screens.test_task.di.modules.UtilsModule;
import com.digital_screens.test_task.presenters.ProgramPresenter;
import javax.inject.Singleton;
import dagger.Component;
@Component(modules = {AppModule.... | apache-2.0 |
Rikkola/kie-wb-common | kie-wb-common-dmn/kie-wb-common-dmn-client/src/test/java/org/kie/workbench/common/dmn/client/editors/types/listview/DataTypeListItemTest.java | 50421 | /*
* Copyright 2018 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 app... | apache-2.0 |
japaric/linalg.rs | src/ops/add/mat.rs | 5868 | use std::ops::Add;
use assign::AddAssign;
use blas::{Axpy, Gemm, Transpose};
use complex::Complex;
use onezero::{One, Zero};
use ops::{Reduce, self};
use traits::Transpose as _0;
use traits::{Matrix, Slice, SliceMut};
use {Chain, Mat, Scaled, Transposed, SubMat, SubMatMut};
// GEMM
// Combinations:
//
// LHS: Mat, S... | apache-2.0 |
m-m-m/util | resource/src/main/java/net/sf/mmm/util/resource/api/spi/package-info.java | 829 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
/**
* Provides the SPI (service-provider-interface) for {@link net.sf.mmm.util.resource.api.DataResource data-resources}.
* <a name="documentation"></a>
* <h2>Resource-Util SPI</h2> This p... | apache-2.0 |
cloudfoundry-incubator/ducati-daemon | executor/commands/create_veth.go | 545 | package commands
import (
"fmt"
"github.com/cloudfoundry-incubator/ducati-daemon/executor"
)
type CreateVeth struct {
Name string
PeerName string
MTU int
}
func (cv CreateVeth) Execute(context executor.Context) error {
err := context.LinkFactory().CreateVeth(cv.Name, cv.PeerName, cv.MTU)
if err != n... | apache-2.0 |
tara-sova/qreal | qrtranslations/ru/plugins/robots/robotsMetamodel_ru.ts | 199827 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru_RU">
<context>
<name>QObject</name>
<message>
<location filename="../../../../plugins/robots/editor/generated/generated/elements.h" line="3608"/>
<source>Body:</source>
<translation>Функция:</translation>... | apache-2.0 |
77ilogin/training | src/test/java/org/apache/commons/beanutils/converters/SqlDateConverterTestCase.java | 3854 | /*
* 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 ... | apache-2.0 |
ryanchang/osfstore | app/controllers/api/products_controller.rb | 180 | class Api::ProductsController < ApplicationController
def show
@product = Product.find(params[:id])
render json: @product
end
def index
render json: Product.all
end
end
| apache-2.0 |
lizhanhui/data_druid | processing/src/test/java/io/druid/query/search/SearchQueryRunnerWithCaseTest.java | 10858 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | apache-2.0 |
hou23/fluffy-potato | spring-boot-demo/spring-security/src/main/java/com/marshall/spring_security/service/impl/BaseUserService.java | 1579 | package com.marshall.spring_security.service.impl;
import com.marshall.spring_security.constant.RoleConstant;
import com.marshall.spring_security.entity.UserEntity;
import com.marshall.spring_security.mapper.UserMapper;
import com.marshall.spring_security.service.UserService;
import org.springframework.context.annotat... | apache-2.0 |
stevenhva/InfoLearn_OpenOLAT | src/main/java/de/bps/ims/qti/QTIResultDetailsController.java | 9047 | /**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... | apache-2.0 |
fsprojects/powerpack-archive | workyard/tests/codedom/tests/callingfieldtest.cs | 6989 | using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Specialized;
using System.IO;
using System.Reflection;
using Microsoft.Samples.CodeDomTestSuite;
public class CallingFieldTest : CodeDomTestTree {
public override string Comment
{
... | apache-2.0 |
moosbusch/xbLIDO | src/net/opengis/gml/DoubleOrNullList.java | 8651 | /*
* Copyright 2013 Gunnar Kappei.
*
* 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... | apache-2.0 |
cppfool/folly | folly/String.cpp | 15948 | /*
* Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
mchmarny/thingz-agent | main.go | 658 | package main
import (
"log"
"os"
"os/signal"
"runtime"
)
func main() {
runtime.GOMAXPROCS(1) // don't let it go multi-process
// make sure we can shutdown gracefully
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, os.Interrupt)
doneDone := make(chan bool)
errCh := make(chan error, 1)
go func() {
... | apache-2.0 |
ssanj/pondskum | src/main/java/com/googlecode/pondskum/gui/swing/suite/GuiController.java | 1626 | /*
* Copyright 2008 Sanjiv Sahayam
*
* 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 ... | apache-2.0 |
ColmexBDCV/sufia-oai | app/search_builders/search_builder.rb | 261 | class SearchBuilder < Blacklight::SearchBuilder
include Blacklight::Solr::SearchBuilderBehavior
include Hydra::AccessControlsEnforcement
include CurationConcerns::SearchFilters
include Hydra::PolicyAwareAccessControlsEnforcement
include HasLogger
end
| apache-2.0 |
JetBrains/intellij-scala | scala/scala-impl/testdata/changeSignature/fromJava/OverriderInAnonClass_after.scala | 151 | object Test {
val x = new OverriderInAnonClass {
override def bar(b: Boolean, ii: Int): Boolean = ii + 2
}
x.bar(true, 1)
x.bar(true, 1)
} | apache-2.0 |
trasa/aws-sdk-java | aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/GetFunctionConfigurationResult.java | 27639 | /*
* 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... | apache-2.0 |
tatemura/strudel | workload/src/main/java/com/nec/strudel/metrics/ProfilerValue.java | 6312 | /*******************************************************************************
* Copyright 2015, 2016 Junichi Tatemura
*
* 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://... | apache-2.0 |
mccraigmccraig/maxent | src/main/java/opennlp/maxent/DomainToModelMap.java | 2776 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreemnets. 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... | apache-2.0 |
chiradeep/go-nitro | config/network/vrid6_binding.go | 76 | package network
type Vrid6binding struct {
Id int `json:"id,omitempty"`
}
| apache-2.0 |
Reactive-Extensions/RxPy | tests/test_immediatescheduler.py | 3029 | from datetime import datetime, timedelta
from rx.concurrency import Scheduler, ImmediateScheduler
from rx.disposables import Disposable
def test_immediate_now():
res = Scheduler.now() - datetime.utcnow()
assert res < timedelta(milliseconds=1000)
def test_immediate_scheduleaction():
scheduler = ImmediateS... | apache-2.0 |
EtaliaSA/sdk-java | src/main/java/net/etalia/client/http/JsonedException.java | 582 | package net.etalia.client.http;
import java.util.Map;
public class JsonedException extends RuntimeException {
private static final long serialVersionUID = -4745379703039071409L;
private Map<String, Object> properties;
private int statusCode;
public JsonedException(String message, Map<String, Object> properti... | apache-2.0 |
dotindo/6ba5ea2b | DotWeb/DotWeb/Attributes/ScaffoldAttribute.cs | 1114 | using System;
namespace DotWeb
{
/// <summary>
/// This option corresponds to DevExpress grid view edit mode.
/// </summary>
public enum EditMode
{
Default,
Inline,
Popup,
EditPage
}
/// <summary>
/// Used in entity scaffolding to mark entities to scaf... | apache-2.0 |
zhangdaiscott/jeecg-boot | jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/constant/WebsocketConst.java | 1183 | package org.jeecg.common.constant;
/**
* @Description: Websocket常量类
* @author: taoyan
* @date: 2020年03月23日
*/
public class WebsocketConst {
/**
* 消息json key:cmd
*/
public static final String MSG_CMD = "cmd";
/**
* 消息json key:msgId
*/
public static final String MSG_ID = "msgId... | apache-2.0 |
ow2-xlcloud/vcms | impl/src/main/java/org/xlcloud/service/iam/grants/IamEntitlementsManager.java | 9534 | /*
* Copyright 2012 AMG.lab, a Bull Group Company
*
* 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... | apache-2.0 |
jphp-compiler/jphp | exts/jphp-sql-ext/src/main/java/org/develnext/jphp/ext/sql/classes/PSqlConnection.java | 7337 | package org.develnext.jphp.ext.sql.classes;
import org.develnext.jphp.ext.sql.SqlExtension;
import php.runtime.Memory;
import php.runtime.annotation.Reflection.*;
import php.runtime.env.Environment;
import php.runtime.lang.BaseObject;
import php.runtime.memory.ArrayMemory;
import php.runtime.memory.LongMemory;
import ... | apache-2.0 |
swcraftersclm/katangapp-frontend | webpack.config.js | 2348 | /**
* Copyright 2016-today Software Craftmanship Toledo
*
* 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... | apache-2.0 |
jamslevy/gsoc | app/soc/content/js/edit_survey.js | 5406 |
var DEFAULT_LONG_ANSWER_TEXT = 'Write a Custom Prompt...';
var DEFAULT_SHORT_ANSWER_TEXT = 'Write a Custom Prompt...';
var DEFAULT_OPTION_TEXT = 'Add A New Option...';
var min_rows = 10;
max_rows = min_rows * 2;
jQuery.fn.extend({
preserveDefaultText: function(defaultValue, replaceVal... | apache-2.0 |