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 |
|---|---|---|---|---|---|
package io.ray.streaming.runtime.core.processor;
import io.ray.streaming.message.Record;
import io.ray.streaming.operator.SourceOperator;
/**
* The processor for the stream sources, containing a SourceOperator.
*
* @param <T> The type of source data.
*/
public class SourceProcessor<T> extends StreamProcessor<Reco... | pcmoritz/ray-1 | streaming/java/streaming-runtime/src/main/java/io/ray/streaming/runtime/core/processor/SourceProcessor.java | Java | apache-2.0 | 663 |
<div class="row">
<div class="col-md-12 no-padding">
<div class="col-lg-4 col-md-12">
<?php
$this->renderPartial('pod/description',array( "project" => $project, "tags" => $tags, "countries" => $countries,"isAdmin"=> $admin)); ?>
</div>
<div class ="col-lg-4 col-md-12">
<?php
$this->renderPartial('..... | pixelhumain/network | views/project/dashboard.php | PHP | apache-2.0 | 6,465 |
/*
* 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 la... | sabriarabacioglu/engerek | infra/common/src/main/java/com/evolveum/midpoint/common/policy/PasswordPolicyUtils.java | Java | apache-2.0 | 12,321 |
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Manifest, type: :model do
let(:monograph) do
create(:public_monograph) do |m|
m.ordered_members << file_set
m.save!
m
end
end
let(:file_set) do
create(:public_file_set) do |f|
f.original_file = original_file
... | mlibrary/heliotrope | spec/models/manifest_spec.rb | Ruby | apache-2.0 | 2,666 |
/* Copyright 2018 The TensorFlow 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 applicable law or a... | tensorflow/java | tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPart.java | Java | apache-2.0 | 7,043 |
package com.qinyadan.monitor.network.util;
import java.util.Map;
import com.qinyadan.monitor.network.control.ControlMessageDecoder;
import com.qinyadan.monitor.network.control.ControlMessageEncoder;
import com.qinyadan.monitor.network.control.ProtocolException;
public final class ControlMessageEncodingUtils ... | O2O-Market/Market-monitor | market-network/src/main/java/com/qinyadan/monitor/network/util/ControlMessageEncodingUtils.java | Java | apache-2.0 | 809 |
var Alloy = require("alloy"), _ = Alloy._, Backbone = Alloy.Backbone;
Alloy.Globals.steps = 0;
Alloy.Globals.capacity = 0;
Alloy.Globals.basketImage = "";
Alloy.Globals.fruitCount = 0;
Alloy.createController("index"); | jhenziz/Fruit-Basket | Resources/app.js | JavaScript | apache-2.0 | 222 |
/*
* Copyright 2000-2009 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... | joewalnes/idea-community | java/java-impl/src/com/intellij/refactoring/typeCook/deductive/util/VictimCollector.java | Java | apache-2.0 | 3,283 |
// Generated from /POI/java/org/apache/poi/hssf/usermodel/HSSFName.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/fwd-POI.hpp>
#include <org/apache/poi/hssf/usermodel/fwd-POI.hpp>
#include <org/apache/poi/ss/formula/ptg/fwd-POI.hpp>
#include <java/lang/O... | pebble2015/cpoi | src/org/apache/poi/hssf/usermodel/HSSFName.hpp | C++ | apache-2.0 | 2,520 |
Ext.namespace("Ext.haode");
Ext.haode.Control = function(args){
Ext.apply(this, args);
this.init();
};
Ext.haode.Control.prototype = {
userName : '',
version : '',
app_name : '',
copyright : '',
viewport : null,
cn : 1,
init : function() {
this.viewport = this.getViewp... | hairlun/customer-visit-web | WebRoot/task/index.js | JavaScript | apache-2.0 | 49,167 |
<?php
namespace App\Presenters;
use Nette;
class ContactPresenter extends Nette\Application\UI\Presenter
{
}
| literat/ete89e | app/presenters/ContactPresenter.php | PHP | apache-2.0 | 113 |
/**
* Copyright 2002-2016 xiaoyuepeng
*
* 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... | xyp260466/dubbo-lite | dubbo-spring/src/main/java/com/xyp260466/dubbo/annotation/Consumer.java | Java | apache-2.0 | 1,109 |
<?php
namespace Test\Controllers;
use Test\Models\EmailConfirmations;
use Test\Models\ResetPasswords;
/**
* UserControlController
* Provides help to users to confirm their passwords or reset them
*/
class UserControlController extends ControllerBase
{
public function initialize()
{
if ($this->ses... | tetrapak07/testPhalcon | app/controllers/UserControlController.php | PHP | apache-2.0 | 3,697 |
/**
* 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... | shot/hadoop-source-reading | src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java | Java | apache-2.0 | 18,270 |
"""Custom Exception Classes for Phylotyper Module
"""
class PhylotyperError(Exception):
"""Basic exception for errors raised by Phylotyper modules"""
def __init__(self, subtype, msg=None):
if msg is None:
msg = "An error occured for subtype {}".format(subtype)
super(PhylotyperError... | superphy/backend | app/modules/phylotyper/exceptions.py | Python | apache-2.0 | 874 |
maintainer "Belly, Inc."
maintainer_email "sysops@bellycard.com"
license "Apache v2.0"
description "Installs/Configures Google Go"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.0"
# Operating systems supported
%w{ debian ubuntu }.each do |os|
suppo... | bellycard/procd | scripts/chef/cookbooks/go/metadata.rb | Ruby | apache-2.0 | 331 |
<?php
$curdir = dirname(__FILE__);
require_once($curdir.'/Db.php');
class LoanStatus extends Db {
protected static $table_name = "loanstatus";
protected static $db_fields = array("id", "name", "description");
public function findById($id){
$result = $this->getrec(self::$table_name, "id=".$id, "");
return !emp... | platinalfred/buladde | lib/LoanStatus.php | PHP | apache-2.0 | 1,146 |
<?php
/**
* DBDelTree action message.
*
* PHP Version 5
*
* @category PHPAMI
* @package Message
* @subpackage Action
* @author Jaime Ziga <jaime.ziga@gmail.com>
* @license http://github.com/Adrian0350/PHP-AMI/ Apache License 2.0
* @version SVN: $Id$
* @link http://github.com/Adrian0350/P... | Adrian0350/PHP-AMI | src/PHPAMI/Message/Action/DBDelTreeAction.php | PHP | apache-2.0 | 1,740 |
/*
~ Copyright (c) 2014 George Norman.
~ Licensed under the Apache License, Version 2.0 (the "License");
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ --------------------------------------------------------------
~ Renders <css-lab-about> tags - sharable among all projects.
~ ----------------------------... | georgenorman/css-lab | src/js/tags/cssLabAbout.js | JavaScript | apache-2.0 | 2,522 |
package me.soulmachine;
import org.jruby.embed.ScriptingContainer;
import java.util.List;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
/**
* A simple JRuby example to execute Python scripts from Java.
*/
f... | soulmachine/JRubyExample | JRubyExample/src/main/java/me/soulmachine/JRubyExample.java | Java | apache-2.0 | 2,633 |
package com.arthurb.iterator.dinermergergery;
import java.util.Iterator;
/**
* Created by Blackwood on 07.03.2016 18:16.
*/
public class DinerMenu implements Menu {
static final int MAX_ITEMS = 6;
int numberOfItems = 0;
MenuItem[] menuItems;
public DinerMenu() {
menuItems = new MenuItem[MA... | NeverNight/SimplesPatterns.Java | src/com/arthurb/iterator/dinermergergery/DinerMenu.java | Java | apache-2.0 | 1,583 |
/* eslint-disable local/html-template */
const documentModes = require('./document-modes');
const {AmpState, ampStateKey} = require('./amphtml-helpers');
const {html, joinFragments} = require('./html');
const jsModes = [
{
value: 'default',
description: `Unminified AMP JavaScript is served from the local ser... | jpettitt/amphtml | build-system/server/app-index/settings.js | JavaScript | apache-2.0 | 4,586 |
/**
*
* Web Starter Kit
* Copyright 2014 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
*
... | markuz-brasil/runtime-type-system | gulpfile.js | JavaScript | apache-2.0 | 2,272 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga')... | sofiamoral/sofiamoral.github.io | js/custom.js | JavaScript | apache-2.0 | 391 |
/**
* Copyright 2017 Shusheng Shao <iblackangel@163.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 appl... | i-black-angel/libpunica | src/mlog.cpp | C++ | apache-2.0 | 3,839 |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | fceller/arangodb | arangod/Replication/common-defines.cpp | C++ | apache-2.0 | 2,510 |
package event
import (
"time"
"github.com/go-kit/kit/log"
)
type logService struct {
logger log.Logger
next Service
}
// LogServiceMiddleware given a Logger wraps the next Service with logging capabilities.
func LogServiceMiddleware(logger log.Logger, store string) ServiceMiddleware {
return func(next Servic... | tapglue/snaas | service/event/logging.go | GO | apache-2.0 | 3,954 |
/*
* 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-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchv2/model/transform/UpdateDomainEndpointOptionsResultStaxUnmarshaller.java | Java | apache-2.0 | 2,682 |
import Observable from '../Observable';
import mergeStatic from './merge-static';
export default function merge<R>(...observables: (Observable<any>|number)[]): Observable<R> {
observables.unshift(this);
return mergeStatic.apply(this, observables);
} | jaawerth/RxJS-1 | src/operators/merge.ts | TypeScript | apache-2.0 | 254 |
package com.sissi.protocol.message;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;
import com.sissi.io.read.Metadata;
/**
* @author kim 2014年1月28日
*/
@Metadata(uri = Message.XMLNS, localName = Thread.NAME)
@XmlRootElement
p... | KimShen/sissi | src/main/java/com/sissi/protocol/message/Thread.java | Java | apache-2.0 | 1,026 |
package instance
import (
"io/ioutil"
"os"
"testing"
"github.com/scaleway/scaleway-cli/internal/core"
)
func Test_UserDataGet(t *testing.T) {
t.Run("Get an existing key", core.Test(&core.TestConfig{
BeforeFunc: core.BeforeFuncCombine(
createServer("Server"),
core.ExecBeforeCmd("scw instance user-data se... | scaleway/scaleway-cli | internal/namespaces/instance/v1/custom_user_data_test.go | GO | apache-2.0 | 3,105 |
using ArangoDB.Client.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ArangoDB.Client
{
public class BaseResultAnalyzer
{
IArangoDatabase db;
public BaseResultAnalyzer(IArangoDatabase db)
{
... | ra0o0f/arangoclient.net | src/ArangoDB.Client/BaseResultAnalyzer.cs | C# | apache-2.0 | 774 |
/**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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... | youtongluan/sumk | src/main/java/org/yx/asm/AsmUtils.java | Java | apache-2.0 | 6,539 |
/**********************************************************************
Copyright (c) 2009 Stefan Seelmann. 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... | seelmann/ldapcon2009-datanucleus | DataNucleus-Advanced/src/main/java/com/example/dao/TeamDao.java | Java | apache-2.0 | 1,280 |
# Copyright 2015 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,... | googleapis/google-api-ruby-client | google-api-client/generated/google/apis/lifesciences_v2beta/service.rb | Ruby | apache-2.0 | 17,086 |
package com.metrink.action;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.SimpleEmail;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.inject.Provider;
import com.metrink.alert.ActionBean;
import com.metrink.alert.AlertBean;
import com.metrink.metric.Metric;
... | Metrink/metrink | src/main/java/com/metrink/action/SmsAction.java | Java | apache-2.0 | 1,947 |
/**
* Copyright 2017-2019 The GreyCat Authors. All rights reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Un... | datathings/greycat | greycat/src/main/java/greycat/internal/task/ActionDelete.java | Java | apache-2.0 | 1,871 |
//Declare app level module which depends on filters, and services
var SFApplicationAuth = angular.module('SFApplicationAuth.Auth',[]);
SFApplicationAuth.config(
[
'$stateProvider',
'$urlRouterProvider',
function (
$stateProvider,
$urlRouterProvider
) {
console.log("inciando bootstrap auth");
$stateProvid... | chacal88/sb-admin-angular | app/modules/auth/application/bootstrap.js | JavaScript | apache-2.0 | 2,840 |
package com.at.springboot.mybatis.po;
public class JsonUser {
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column JSON_USER.JSON_USER_ID
* @mbg.generated Thu Aug 29 17:59:18 CST 2019
*/
private byte[] jsonUserId;
/**
* This fiel... | alphatan/workspace_java | spring-boot-web-fps-demo/src/main/java/com/at/springboot/mybatis/po/JsonUser.java | Java | apache-2.0 | 3,937 |
/*
* 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 br.com.stylehair.servicos;
import br.com.stylehair.dao.AgendamentoDAO;
import br.com.stylehair.entity.Agendamento;
import com.... | ViniciusBezerra94/WsStyleHair | src/main/java/br/com/stylehair/servicos/AgendamentoResource.java | Java | apache-2.0 | 3,529 |
const spinny = 'div.spinny';
exports.command = function navigateTo (url, expectSpinny = true) {
this.url('data:,'); // https://github.com/nightwatchjs/nightwatch/issues/1724
this.url(url);
if (expectSpinny) {
this.waitForElementVisible(spinny);
this.waitForElementNotVisible(spinny);
}
... | wwitzel3/awx | awx/ui/test/e2e/commands/navigateTo.js | JavaScript | apache-2.0 | 341 |
package com.sampleapp.base;
import android.app.Application;
import com.crashlytics.android.Crashlytics;
import com.sampleapp.BuildConfig;
import com.sampleapp.utils.UtilsModule;
import io.fabric.sdk.android.Fabric;
import timber.log.Timber;
/**
* Created by saveen_dhiman on 05-November-16.
* Initialization of re... | saveendhiman/SampleApp | app/src/main/java/com/sampleapp/base/SampleApplication.java | Java | apache-2.0 | 915 |
/*
* Copyright 2017 Axway Software
*
* 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... | Axway/ats-framework | corelibrary/src/main/java/com/axway/ats/core/filesystem/exceptions/FileDoesNotExistException.java | Java | apache-2.0 | 1,344 |
package com.fasterxml.jackson.databind.node;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.io.NumberOutput;
import com.fasterxml.jackson.databind.SerializerProvider;
/**
* Numeric node that contains simpl... | FasterXML/jackson-databind | src/main/java/com/fasterxml/jackson/databind/node/IntNode.java | Java | apache-2.0 | 3,398 |
package lena.lerning.selenium;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util... | etarnovskaya/sel_6_Lena | sel-test/src/test/java/lena/lerning/selenium/EdgeTest.java | Java | apache-2.0 | 1,062 |
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | vivantech/kc_fixes | src/main/java/org/kuali/kra/common/notification/exception/UnknownRoleException.java | Java | apache-2.0 | 1,435 |
package org.develnext.jphp.android.ext.classes.app;
import android.os.Bundle;
import org.develnext.jphp.android.AndroidStandaloneLoader;
import org.develnext.jphp.android.ext.AndroidExtension;
import php.runtime.annotation.Reflection;
@Reflection.Name(AndroidExtension.NAMESPACE + "app\\BootstrapActivity")
public clas... | livingvirus/jphp | jphp-android/src/main/java/org/develnext/jphp/android/ext/classes/app/WrapBootstrapActivity.java | Java | apache-2.0 | 616 |
package com.truward.brikar.maintenance.log.processor;
import com.truward.brikar.common.log.LogUtil;
import com.truward.brikar.maintenance.log.CommaSeparatedValueParser;
import com.truward.brikar.maintenance.log.Severity;
import com.truward.brikar.maintenance.log.message.LogMessage;
import com.truward.brikar.maintenanc... | truward/brikar | brikar-maintenance/src/main/java/com/truward/brikar/maintenance/log/processor/LogMessageProcessor.java | Java | apache-2.0 | 4,636 |
using UnityEngine;
using System.Collections;
namespace MagicalFX
{
public class FX_SpawnDirection : MonoBehaviour
{
public int Number = 10;
public float Frequency = 1;
public bool FixRotation = false;
public bool Normal;
public GameObject FXSpawn;
public float LifeTime = 0;
public float TimeSpawn = 0;... | yimogod/boom | trunk/effect/Assets/Magical/Sources/Scripts/FX_SpawnDirection.cs | C# | apache-2.0 | 1,578 |
package ru.job4j.servlet.services;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.job4j.servlet.model.User;
import ru.job4j.servlet.repository.RepositoryException;
import ru.job4j.servlet.repository.UserStore;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import ja... | StanislavEsin/estanislav | chapter_007/src/main/java/ru/job4j/servlet/services/UpdateUserController.java | Java | apache-2.0 | 1,967 |
package com.kenshin.windystreet.db;
import org.litepal.crud.DataSupport;
/**
* Created by Kenshin on 2017/4/3.
*/
public class County extends DataSupport {
private int id; //编号
private String countyName; //县名
private String weatherId; //对应的天气id
private int cityId; //所属市的id
public void setI... | Asucanc/Windy-Street-Weather | app/src/main/java/com/kenshin/windystreet/db/County.java | Java | apache-2.0 | 901 |
/*
* Copyright 2016-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | LegNeato/buck | src/com/facebook/buck/core/model/actiongraph/AbstractActionGraphAndResolver.java | Java | apache-2.0 | 1,075 |
package water.api;
import org.reflections.Reflections;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import ja... | madmax983/h2o-3 | h2o-core/src/main/java/water/api/Schema.java | Java | apache-2.0 | 52,870 |
package eu.uqasar.model.measure;
/*
* #%L
* U-QASAR
* %%
* Copyright (C) 2012 - 2015 U-QASAR Consortium
* %%
* 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
*
* htt... | U-QASAR/u-qasar.platform | src/main/java/eu/uqasar/model/measure/MetricSource.java | Java | apache-2.0 | 1,796 |
'use strict';
import * as _ from 'lodash';
import * as fs from 'fs';
import * as xml2js from 'xml2js';
import * as Mustache from 'mustache';
import * as helpers from './helpers';
import * as utils from './utils';
import * as conf from './conf';
const parseString: (xml: string, options: xml2js.Options) => Promise<any>... | prigaux/compte-externe | server/esup_activ_bo.ts | TypeScript | apache-2.0 | 7,793 |
# Copyright 2019 The TensorFlow 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... | tensorflow/tensorboard | tensorboard/plugins/hparams/download_data_test.py | Python | apache-2.0 | 8,571 |
package com.feiyu.storm.streamingdatacollection.spout;
/**
* from https://github.com/apache/incubator-storm/blob/master/examples/storm-starter/src/jvm/storm/starter/spout/RandomSentenceSpout.java
* modified by feiyu
*/
import java.util.Map;
import java.util.Random;
import backtype.storm.spout.SpoutOutputCollector;... | faustineinsun/WiseCrowdRec | deprecated-wisecrowdrec-springmvc/WiseCrowdRec/src/main/java/com/feiyu/storm/streamingdatacollection/spout/ForTestFakeSpout.java | Java | apache-2.0 | 2,356 |
/*
* Copyright 2016 Axibase Corporation 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
*
* https://www.axibase.com/atsd/axibase-apache-2.0.pdf
*
... | axibase/atsd-api-java | src/main/java/com/axibase/tsd/model/meta/EntityAndTags.java | Java | apache-2.0 | 1,151 |
<?php
/**
* This example populates a first party audience segment. To determine which
* audience segments exist, run GetAllAudienceSegments.php.
*
* PHP version 5
*
* Copyright 2014, Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | Getsidecar/googleads-php-lib | examples/Dfp/v201611/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php | PHP | apache-2.0 | 3,948 |
package main
import (
"log"
"net/http"
"github.com/gophergala/melted_brains/http_handler"
"golang.org/x/net/websocket"
)
func main() {
http.HandleFunc("/game/", http_handler.GameHandler)
http.Handle("/events/", websocket.Handler(http_handler.EventsHandler))
http.Handle("/waiting/", websocket.Handler(http_hand... | gophergala/melted_brains | server.go | GO | apache-2.0 | 498 |
import React from 'react';
import renderer from 'react-test-renderer';
import VideoQuestion from './VideoQuestion';
jest.mock('expo', () => ({
Video: 'Video'
}));
it('renders without crashing', () => {
const tree = renderer.create(
<VideoQuestion
video={require('../../assets/videos/placeholder.mp4')}
... | cognostics/serlo-abc | src/components/exercises/VideoQuestion.test.js | JavaScript | apache-2.0 | 526 |
#!/usr/bin/python
#
# Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
#
# 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
... | mF2C/COMPSs | compss/programming_model/bindings/python/src/exaqute/ExaquteTaskPyCOMPSs.py | Python | apache-2.0 | 1,613 |
"use strict";
const apisObject = {
"type": "object",
"required": false,
"patternProperties": {
"^[_a-z\/][_a-zA-Z0-9\/:]*$": { //pattern to match an api route
"type": "object",
"required": true,
"properties": {
"access": {"type": "boolean", "required": false},
}
}
}
};
const aclRoute = {
"typ... | soajs/soajs.dashboard | schemas/updateScopeAcl.js | JavaScript | apache-2.0 | 1,270 |
package br.com.ceducarneiro.analisadorsintatico;
public class LexException extends Exception {
private char badCh;
private int line, column;
public LexException(int line, int column, char ch) {
badCh = ch;
this.line = line;
this.column = column;
}
@Override
public Str... | edu1910/AnalisadorSintatico | src/br/com/ceducarneiro/analisadorsintatico/LexException.java | Java | apache-2.0 | 473 |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | googleapis/google-api-java-client-services | clients/google-api-services-cloudtasks/v2/1.31.0/com/google/api/services/cloudtasks/v2/model/GetPolicyOptions.java | Java | apache-2.0 | 4,445 |
package me.banxi.androiddemo;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class MainActivity extends Activity{
public void onCreate(Bundle bundle){
super.onCreate(bundle);
TextView textView = new TextView(this);
textView.setText("Hello,World... | banxi1988/android-demo | src/main/java/me/banxi/androiddemo/MainActivity.java | Java | apache-2.0 | 366 |
from rest_framework import generics, permissions, views, response,status
from .models import Account
from .serializers import AccountCreateSerializer, AccountSerializer, AuthenticateSerializer, \
UpdateAccountSerializer, AccountRetrieveSerializer
# Create your views here.
class AccountCreateView(generics.Create... | jiafengwu0301/App_BackEnd | api/views.py | Python | apache-2.0 | 1,474 |
/*
* 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 n... | lburgazzoli/apache-activemq-artemis | tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ExpiryRunnerTest.java | Java | apache-2.0 | 11,691 |
//
// https://github.com/Dogfalo/materialize/issues/634#issuecomment-113213629
// and
// https://github.com/noodny/materializecss-amd/blob/master/config.js
//
//
require([
'global',
'initial',
'animation',
'buttons',
'cards',
'carousel',
'character_counter',
'chips',
'collapsible',
'dropdown',
'f... | romeomaryns/ripple | gateway/src/main/resources/static/materialize-css.js | JavaScript | apache-2.0 | 680 |
//*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 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,... | mjbvz/nodejstools | Nodejs/Product/Nodejs/Project/NodejsGeneralPropertyPage.cs | C# | apache-2.0 | 4,380 |
package org.plista.kornakapi.core.training.preferencechanges;
import java.util.List;
import java.util.Map;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
public class DelegatingPreferenceChangeListenerForLabel implements PreferenceChangeListenerForLabel {
private final Map<String,L... | plista/kornakapi | src/main/java/org/plista/kornakapi/core/training/preferencechanges/DelegatingPreferenceChangeListenerForLabel.java | Java | apache-2.0 | 935 |
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using CompatCheckAndMigrate.Helpers;
using CompatCheckAndMigrate.ObjectModel;
namespace CompatCheckAndMigrate.Controls
{
public partial class SiteStatusControl : UserControl, IWizardStep
{
private I... | Azure/Azure-Websites-Migration-Tool | Controls/SiteStatusControl.cs | C# | apache-2.0 | 2,342 |
<?php namespace DCarbone\PHPClassBuilder\Template;
/*
* Copyright 2016-2017 Daniel Carbone (daniel.p.carbone@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 at
*
* http://... | dcarbone/php-class-builder | src/Template/AbstractTemplate.php | PHP | apache-2.0 | 9,603 |
/**
* 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
* ... | DescartesResearch/Pet-Supply-Store | services/tools.descartes.teastore.persistence/src/main/java/tools/descartes/teastore/persistence/rest/OrderItemEndpoint.java | Java | apache-2.0 | 4,492 |
package apple.mlcompute;
import apple.NSObject;
import apple.foundation.NSArray;
import apple.foundation.NSMethodSignature;
import apple.foundation.NSSet;
import apple.foundation.protocol.NSCopying;
import org.moe.natj.c.ann.FunctionPtr;
import org.moe.natj.general.NatJ;
import org.moe.natj.general.Pointer;
import org... | multi-os-engine/moe-core | moe.apple/moe.platform.ios/src/main/java/apple/mlcompute/MLCRMSPropOptimizer.java | Java | apache-2.0 | 6,672 |
/*
* 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 ... | GoogleForCreators/web-stories-wp | packages/story-editor/src/components/canvas/pageAttachment/index.js | JavaScript | apache-2.0 | 5,600 |
package com.jflyfox.dudu.module.system.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jflyfox.dudu.component.model.Query;
import com.jflyfox.dudu.module.system.model.SysMenu;
import com.jflyfox.util.StrUtils;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.jdbc.SQL;
i... | jflyfox/dudu | dudu-admin/src/main/java/com/jflyfox/dudu/module/system/dao/MenuMapper.java | Java | apache-2.0 | 1,715 |
/**
*
* Copyright 2003-2007 Jive Software.
*
* 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... | vanitasvitae/smack-omemo | smack-im/src/main/java/org/jivesoftware/smack/chat/Chat.java | Java | apache-2.0 | 7,127 |
module.exports = function (config) {
'use strict';
config.set({
basePath: '../',
files: [
// Angular libraries.
'app/assets/lib/angular/angular.js',
'app/assets/lib/angular-ui-router/release/angular-ui-router.js',
'app/assets/lib/angular-bootstr... | markvoelker/refstack | refstack-ui/tests/karma.conf.js | JavaScript | apache-2.0 | 1,354 |
package edu.kit.tm.pseprak2.alushare.view;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.os.Environment;
import android.util.Log;
import java.io.IOException;
/**
* Represent the AudioRecorder of the ChatActivity.
* Enables recording sound and playing the music before sending.... | weichweich/AluShare | app/src/main/java/edu/kit/tm/pseprak2/alushare/view/AudioRecorder.java | Java | apache-2.0 | 6,151 |
package com.zts.service.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = DataSourceProperties.DS, ignoreUnknownFields = false)
public class DataSourceProperties {
//对应配置文件里的配置键
public final static String DS="mysql";
private String driverClassNam... | tushengtuzhang/zts | cloud-simple-service/src/main/java/com/zts/service/config/DataSourceProperties.java | Java | apache-2.0 | 2,197 |
package com.github.approval.sesame;
/*
* #%L
* approval-sesame
* %%
* Copyright (C) 2014 Nikolavp
* %%
* 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... | nikolavp/approval | approval-sesame/src/main/java/com/github/approval/sesame/GraphReporter.java | Java | apache-2.0 | 2,951 |
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import { get } from '@ember/object';
export default Route.extend({
access: service(),
catalog: service(),
scope: service(),
beforeModel() {
this._super(...arguments);
return get(this, 'catalog').fetchUnSc... | lvuch/ui | lib/global-admin/addon/multi-cluster-apps/catalog/route.js | JavaScript | apache-2.0 | 1,345 |
package AbsSytree;
import java.util.ArrayList;
public class SynExprSeq extends AbsSynNode {
public ArrayList<AbsSynNode> exprs;
public SynExprSeq(AbsSynNode e) {
this.exprs = new ArrayList<AbsSynNode>();
this.exprs.add(e);
}
public SynExprSeq append(AbsSynNode e) {
this.exprs.add(e);
retur... | mingyuan-xia/TigerCC | src/AbsSytree/SynExprSeq.java | Java | apache-2.0 | 767 |
/**
* Copyright 2017 Matthieu Jimenez. All rights reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless req... | greycat-incubator/Paw | src/main/java/paw/graph/customTypes/bitset/CTBitset.java | Java | apache-2.0 | 1,522 |
/*
* Copyright (c) 2015 PLUMgrid, 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 ... | iovisor/bcc | src/cc/bcc_common.cc | C++ | apache-2.0 | 8,190 |
/**
* Copyright Microsoft Corporation
*
* 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... | southworkscom/azure-sdk-for-java | core/azure-core/src/main/java/com/microsoft/windowsazure/core/pipeline/Base64StringAdapter.java | Java | apache-2.0 | 1,133 |
/**
* Copyright 2016 William Van Woensel
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 ... | darth-willy/mobibench | MobiBenchWebService/src/main/java/wvw/utils/rule/builder/RuleBuilder.java | Java | apache-2.0 | 1,192 |
// Copyright 2012 Max Toro Q.
//
// 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... | maxtoroq/myxsl | src/myxsl.saxon/util/StringExtensions.cs | C# | apache-2.0 | 851 |
using System;
using System.IO;
using System.Text;
namespace NuGet
{
public static class StreamExtensions
{
public static byte[] ReadAllBytes(this Stream stream)
{
var memoryStream = stream as MemoryStream;
if (memoryStream != null)
{
... | xero-github/Nuget | src/Core/Extensions/StreamExtensions.cs | C# | apache-2.0 | 1,831 |
/*
* Copyright (c) 2010-2014. Axon Framework
*
* 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 ... | soulrebel/AxonFramework | core/src/main/java/org/axonframework/common/lock/LockFactory.java | Java | apache-2.0 | 1,205 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'litleleprikon'
from random import randint
FIGURES = ['камень', 'бумага', 'ножницы']
FIG_LEN = len(FIGURES)
class Player:
"""
Player class is needed to store tactics and to generate figures by this tactic
-- Doctests --
>>> player = Play... | litleleprikon/innopolis_test_task | problem_2_rock_paper_scissor/player.py | Python | apache-2.0 | 846 |
package site;
public class Autocomplete {
private final String label;
private final String value;
public Autocomplete(String label, String value) {
this.label = label;
this.value = value;
}
public final String getLabel() {
return this.label;
}
public final String getValue() {
return t... | CaroleneBertoldi/CountryDetails | country/src/main/java/site/Autocomplete.java | Java | apache-2.0 | 337 |
/*
Copyright 2015 Crunchy Data Solutions, 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... | CrunchyData/crunchy-postgresql-manager | adminapi/containermgmt.go | GO | apache-2.0 | 18,288 |
<?php
final class DifferentialLandingActionMenuEventListener
extends PhabricatorEventListener {
public function register() {
$this->listen(PhabricatorEventType::TYPE_UI_DIDRENDERACTIONS);
}
public function handleEvent(PhutilEvent $event) {
switch ($event->getType()) {
case PhabricatorEventType:... | yangming85/phabricator | src/applications/differential/landing/DifferentialLandingActionMenuEventListener.php | PHP | apache-2.0 | 1,348 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | mapr/elasticsearch | core/src/main/java/org/elasticsearch/cluster/routing/RoutingNodes.java | Java | apache-2.0 | 37,917 |
/*
* Copyright 2017 Yahoo Holdings, 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 a... | gurleen-gks/athenz | servers/zms/src/main/java/com/yahoo/athenz/zms/QuotaChecker.java | Java | apache-2.0 | 12,013 |
#!/usr/bin/env python
# Copyright JS Foundation and other contributors, http://js.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.... | yichoi/jerryscript | tools/run-tests.py | Python | apache-2.0 | 16,290 |
/* 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... | indashnet/InDashNet.Open.UN2000 | android/libcore/luni/src/main/java/java/nio/ByteBufferAsCharBuffer.java | Java | apache-2.0 | 5,714 |
import math
def isPrime(num):
if num < 2:
return False # 0, 1不是质数
# num为100时, 它是不可能有因子是大于50的. 比如说60 * ? = 100, 这是不可能的, 所以这里只要比较sqrt(), 平方根
boundary = int(math.sqrt(num)) + 1
for i in range(2, boundary):
if num % i == 0:
return False
return True
def primeSieve(size):... | songzhw/Hello-kotlin | Python101/src/math/PrimeSieve.py | Python | apache-2.0 | 1,333 |