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 |
|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
#
# yara documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 8 11:04:03 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | Masood-M/yalih | req/yara-3.9.0/docs/conf.py | Python | apache-2.0 | 8,265 |
/**
* 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... | BUPTAnderson/apache-hive-2.1.1-src | ql/src/java/org/apache/hadoop/hive/ql/exec/spark/status/impl/JobMetricsListener.java | Java | apache-2.0 | 3,467 |
package servicios.validacion;
public final class RegexValidation {
public static final class ValidaNombres {
private ValidaNombres() {
}
// public static final String INICIALES = "[a-z,A-Z,ñ,Ñ]{2}$+";
public static final String NOMBRE = "[A-Z]+[a-z,ñ]*+[ ]+[A-Z]+[a-z,ñ]*";
}
public static final cl... | TesisTarjetasMejorar/TarjetasISIS | dom/src/main/java/servicios/validacion/RegexValidation.java | Java | apache-2.0 | 1,016 |
#!/usr/bin/env node
/**
* Copyright IBM Corp. 2019, 2019
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable no-console */
'use strict';
// Makes the script crash on unhandled rejections instead of silently
//... | carbon-design-system/carbon-components | packages/upgrade/bin/carbon-upgrade.js | JavaScript | apache-2.0 | 1,034 |
var studio_locale = {lc:{"ar":function(n){
if (n === 0) {
return 'zero';
}
if (n == 1) {
return 'one';
}
if (n == 2) {
return 'two';
}
if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) {
return 'few';
}
if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) {
retu... | ty-po/code-dot-org | dashboard/public/apps-package/js/cs_cz/studio_locale-bfd0c94141f74417a2ff3e69569591ae.js | JavaScript | apache-2.0 | 30,817 |
/*
* Copyright 2011 The Apache Software Foundation
*
* 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 ... | ay65535/hbase-0.94.0 | src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterV2.java | Java | apache-2.0 | 16,662 |
<?php
include dirname(__FILE__) . '/cache/top-cache.php';
include(dirname(__FILE__) . "/TwitterAPIExchange.php"); //get it from https://github.com/J7mbo/twitter-api-php
include(dirname(__FILE__) . "/apiKeys.php");
$twitterHandleSuffixes = array('x', 'mtl', 'sf', 'bos', 'to', 'kw', 'van', 'nyc', 'xnews');
$f... | curiositry/neurotechx.github.io | public_html/social_media_apis/twitter-count.php | PHP | apache-2.0 | 1,693 |
/*
* Copyright (c) 2010-2013 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.notifications.impl.helpers;
import com.evolveum.midpoint.notifications.api.events.Event;
import co... | bshp/midPoint | model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/helpers/OperationFilterHelper.java | Java | apache-2.0 | 1,574 |
/*
* 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 ... | waans11/incubator-asterixdb | hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/dataflow/LSMRTreeWithAntiMatterTuplesDataflowHelperFactory.java | Java | apache-2.0 | 4,634 |
package sk.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sk.mmap.Constants;
import sk.mmap.IUnsafeAllocator;
import java.util.Map;
import java.util.HashMap;
// Memory mapped hash set of Long
public class MUHSetLong {
private static final Logger logger = LoggerFactory.getLogger(MUHSetLong... | soumitrak/mmap-ds | src/main/java/sk/util/MUHSetLong.java | Java | apache-2.0 | 3,408 |
/*
* Copyright 2017 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 applica... | olivergierke/sos | 00-monolith/src/main/java/example/sos/monolith/MonolithApplication.java | Java | apache-2.0 | 1,646 |
/*
* Copyright 2014 University of Zürich, SIB, and others.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with th... | meringlab/stringdb-psicquic | src/main/java/org/string_db/psicquic/SearchServer.java | Java | apache-2.0 | 1,651 |
package com.example.denizalp.thefirst;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.TextView... | bounswe/bounswe2016group7 | TheFirst/app/src/main/java/com/example/denizalp/thefirst/TopicAdapter.java | Java | apache-2.0 | 2,061 |
/// <reference path="types.ts"/>
module ts {
export interface Map<T> {
[index: string]: T;
}
export interface StringSet extends Map<any> { }
export function forEach<T, U>(array: T[], callback: (element: T) => U): U {
var result: U;
if (array) {
for (var... | jnetterf/typescript-react-jsx | src/compiler/core.ts | TypeScript | apache-2.0 | 22,924 |
//
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
//------------------... | Voultapher/Presentations | old/cppcon-2017-web-service/example/server/beast/lib/beast/example/http/server/flex/http_server_flex.cpp | C++ | apache-2.0 | 19,006 |
package utils;
import java.util.ArrayList;
import java.util.List;
/**
* Utility tree class, where the children are not necessarily ordered in any
* particular way besides their locations.
*
* @author tetigi
*
* @param <T>
* Type of the data node
*/
public class UnorderedTree<T> implements Tree<T>... | tetigi/toucan | java/src/utils/UnorderedTree.java | Java | apache-2.0 | 2,232 |
/*
* 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-datastream | proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java | Java | apache-2.0 | 32,578 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.sena.mavenproject2.model.entities;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.C... | SENA-CEET/1349397-Trimestre-4 | java/JSF/mavenproject2/src/main/java/co/edu/sena/mavenproject2/model/entities/InstructorFicha.java | Java | apache-2.0 | 4,558 |
//
"use strict";
var AppDispatcher = require('../dispatcher/AppDispatcher');
var StationEquipmentAlarmConstants = require('../constants/StationEquipmentAlarmConstants');
var StationEquipmentAlarmsWebApiUtils = require('../webapiutils/StationEquipmentAlarmsWebApiUtils')
var Station = require('../domain/Station');
var... | DForshner/ReactFluxDashboardProto | ReactFluxDashboardProto.Web/Scripts/App/actions/StationEquipmentAlarmActionCreators.js | JavaScript | apache-2.0 | 733 |
// Copyright 2017 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.table;
import com.yahoo.bard.webservice.data.time.Granularity;
import com.yahoo.bard.webservice.util.Utils;
import java.util.LinkedHashSet;... | yahoo/fili | fili-core/src/main/java/com/yahoo/bard/webservice/table/Schema.java | Java | apache-2.0 | 1,788 |
/*
* Copyright 2014-2016 Samsung Research America, 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 applica... | csgordon/SJS | sjsc/src/main/java/com/samsung/sjs/backend/asts/ir/Str.java | Java | apache-2.0 | 1,266 |
/*
* 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 ... | cshannon/activemq-artemis | tests/artemis-test-support/src/main/java/org/apache/activemq/transport/amqp/client/transport/NettyWSTransport.java | Java | apache-2.0 | 6,723 |
var expect = require('chai').expect
describe('Pane', function () {
describe('# Show pane', function () {
it('should show a lateral pane when requested (click on data feature)', function () {
const pane = require('../src/pane')
expect(pane.show).to.be.a('function')
pane.show()
expect(docume... | ilice/OSCWeb | test/pane.test.js | JavaScript | apache-2.0 | 3,763 |
/*****************************************************************************
* Copyright 2016 Aurora Solutions
*
* http://www.aurorasolutions.io
*
* Aurora Solutions is an innovative services and product company at
* the forefront of the software industry, with processes and practices
* involving Domain Dri... | trade-nexus/tradesharp-core | Backend/TradeHubUserInterface/TradeHub.UserInterface.BootStrap/Properties/AssemblyInfo.cs | C# | apache-2.0 | 3,813 |
package br.com.caelum.designpatterns.decorator.imposto;
import br.com.caelum.designpatterns.modelo.Orcamento;
public class ICMS extends Imposto{
public ICMS(Imposto outroImposto) {
super(outroImposto);
}
public ICMS() {
}
public double calcula(Orcamento orcamento){
return orcamento.getValor() * 0.1 + c... | sedesdev/design-patterns | src/br/com/caelum/designpatterns/decorator/imposto/ICMS.java | Java | apache-2.0 | 358 |
package com.xinqihd.sns.gameserver.admin.i18n;
import java.util.HashMap;
public class ColumnNames {
private static HashMap<String, String> map = new HashMap<String, String>();
static {
map.put("profile" , "profile");
map.put("vip" , "vip");
map.put("ability" , "ability");
map.put("login" , "登陆");
map.p... | wangqi/gameserver | admin/src/main/java/com/xinqihd/sns/gameserver/admin/i18n/ColumnNames.java | Java | apache-2.0 | 3,924 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
</head>
<body>
<?php
echo "{\"Relay0\":";
echo apc_fetch('Relay0');
echo "}";
?>
</body>
</html> | SpenceKonde/MagicMirror | php/test2.php | PHP | apache-2.0 | 201 |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
export default {
'People Finder': 'Localizador de Pessoas',
'Groups Finder': 'Localizador de Grupos',
'Locations Finder': 'Localizador de Locais',
'People': 'Pessoas',
'Groups': 'Grupos',
'Locations': 'Locais',
'Organization': 'Organiza... | grommet/grommet-people-finder | src/messages/pt-BR.js | JavaScript | apache-2.0 | 822 |
require 'spec_helper'
require 'gitlab/build/image'
RSpec.describe Build::Image do
ComponentImage = Class.new do
extend Build::Image
def self.gitlab_registry_image_name
'my-project/my-image'
end
def self.dockerhub_image_name
'my-image'
end
end
before do
allow(ENV).to receive... | gitlabhq/omnibus-gitlab | spec/gitlab/build/image_spec.rb | Ruby | apache-2.0 | 5,717 |
package com.anteoy.coreJava.reflect;
import java.lang.reflect.Method;
public class BeanUtil {
/**
* ���ݱ�javaBean�������������ȡ������ֵ
*
* @param obj
* @param propertyName
* @return
*/
public static Object getValueByPropertyName(Object obj, String propertyName) {
// 1.��... | Anteoy/jottings | src/main/java/com/anteoy/coreJava/reflect/BeanUtil.java | Java | apache-2.0 | 1,049 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.Symbols;
us... | xasx/roslyn | src/ExpressionEvaluator/CSharp/Source/ExpressionCompiler/Symbols/EENamedTypeSymbol.cs | C# | apache-2.0 | 11,286 |
package com.adobe.aem.scf.extensions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.jcr.Session;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.apache.sling.api.resource.Resource;
import o... | Adobe-Marketing-Cloud/aem-scf-sample-components-extension | bundles/aem-scf-extensions/src/main/java/com/adobe/aem/scf/extensions/IdeationStatusExtension.java | Java | apache-2.0 | 2,104 |
import 'mocha';
import { EventRecorder, expect } from '@integration/testing-tools';
import { Ensure, equals } from '@serenity-js/assertions';
import { actorCalled, Question, Serenity } from '@serenity-js/core';
import { ActivityFinished, ActivityRelatedArtifactGenerated, ActivityStarts, ArtifactGenerated } from '@sere... | jan-molak/serenity-js | packages/webdriverio/spec/screenplay/interactions/execute-script/ExecuteAsynchronousScript.spec.ts | TypeScript | apache-2.0 | 6,757 |
<?php
declare(strict_types = 1);
namespace ctr;
use sys\Ctr;
class middle extends Ctr {
public function _load() {
if (PATH !== 'test/middle') {
return true;
}
return '_action: ' . $this->_action . '<br><br>In fact, the middle method does not exist in the test controller, whic... | yunbookf/Chameleon | ctr/middle.php | PHP | apache-2.0 | 390 |
module.exports = LocalTransport;
function LocalTransport(incoming, options) {
options = options || {};
this.name = "local";
this.outgoing = function(destination, message, sender, callback) {
setImmediate(incoming(destination, message, callback)); //to make function async, just like other transports?
//inco... | RemcoTukker/eve-nodejs-remco | services/localTransport.js | JavaScript | apache-2.0 | 364 |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.opengis.gml;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.w3._1999.xlink.ActuateType;
import org.w3._1999.xlink.ShowType;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Featu... | markus1978/citygml4emf | de.hub.citygml.emf.ecore/src/net/opengis/gml/FeaturePropertyType.java | Java | apache-2.0 | 14,502 |
/*
* 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 edu.iit.sat.itmd4515.yzhan214.fp.web.hospital;
import edu.iit.sat.itmd4515.yzhan214.fp.web.hospital.AbstractJSFBean;
... | Langenoir1878/vet_web | src/main/java/web/hospital/LoginBean.java | Java | apache-2.0 | 4,588 |
export const GET = 'GET';
export const PUT = 'PUT';
export const POST = 'POST';
export const DELETE = 'DELETE'; | adioss/MyWebAppBootstrap | src/main/resources/static/js/apis/ApiConstants.js | JavaScript | apache-2.0 | 111 |
package com.twopillar.jiba.activity;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.FragmentTabHost;
import android.view.KeyEvent;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import and... | TwoPillar/jiba | src/com/twopillar/jiba/activity/MainActivity.java | Java | apache-2.0 | 8,696 |
# Copyright 2017 CareerBuilder, LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writi... | careerbuilder/routes-revealer | test/dummy/config/routes.rb | Ruby | apache-2.0 | 653 |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// KoubeiCateringPosPaymodeQueryModel Data Structure.
/// </summary>
[Serializable]
public class KoubeiCateringPosPaymodeQueryModel : AopObject
{
/// <summary>
/// 门店id
/// </summary>... | 329277920/Snail | Snail.Pay.Ali.Sdk/Domain/KoubeiCateringPosPaymodeQueryModel.cs | C# | apache-2.0 | 408 |
/* Copyright 2016 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 agree... | nanditav/15712-TensorFlow | tensorflow/tensorboard/components/vz_projector/vz-projector.ts | TypeScript | apache-2.0 | 20,485 |
/*******************************************************************************
* Copyright 2013 SAP AG
*
* 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/l... | SAP/cloud-odata-java | odata-core/src/main/java/com/sap/core/odata/core/uri/expression/OrderExpressionImpl.java | Java | apache-2.0 | 2,356 |
package httpseverywhere
import (
"bytes"
"encoding/gob"
"encoding/xml"
"io/ioutil"
"path/filepath"
"regexp"
"github.com/getlantern/golog"
)
// Preprocessor is a struct for preprocessing rules into a GOB file.
var Preprocessor = &preprocessor{
log: golog.LoggerFor("httpseverywhere-preprocessor"),
}
type prep... | getlantern/httpseverywhere | preprocessor.go | GO | apache-2.0 | 2,872 |
/*
* 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... | metatron-app/metatron-discovery | discovery-server/src/main/java/app/metatron/discovery/common/geospatial/geojson/PointGeometry.java | Java | apache-2.0 | 975 |
/**
* Copyright 2011-2016 GatlingCorp (http://gatling.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 required by appl... | e-biz/gatling-liferay | src/main/java/io/gatling/liferay/model/impl/ProcessModelImpl.java | Java | apache-2.0 | 11,680 |
/*
------
IOS
------
*/
if(OS_IOS){
// NappSlideMenu
var NappSlideMenu = require('dk.napp.slidemenu');
var drawerIphone = NappSlideMenu.createSlideMenuWindow({
centerWindow: $.navWindow,
leftWindow: Alloy.createController('menu').getView(),
leftLedge: 50
});
// Configure navigation and init app
Alloy.G... | netoramalho/ti.slidemenu | app/controllers/index.js | JavaScript | apache-2.0 | 1,119 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace RazorPagesWebSite
{
public class PageWithModel : PageModel
{
}
}
| aspnet/AspNetCore | src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/PageWithModel.cs | C# | apache-2.0 | 268 |
module.exports = function (process, manifest, actionCallback) {
var program = require('commander');
program
.version(manifest.version)
.option('-v, --verbose', 'Enable verbose output')
.command('*')
.action(function (args) {
actionCallback(process, args);
});... | blegros/TestBoxCLI | lib/cli.js | JavaScript | apache-2.0 | 357 |
# Copyright 2019 DeepMind Technologies Limited and 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 applic... | deepmind/deepmind-research | cs_gan/main_ode.py | Python | apache-2.0 | 12,654 |
# Copyright (c) 2014 Alcatel-Lucent Enterprise
# 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
#
# Un... | OpenTouch/python-facette | src/facette/v1/plot.py | Python | apache-2.0 | 2,559 |
#include "gen-cpp/LogSender.h"
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TNonblockingServer.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/concurrency/PosixThreadFactory.h>
using namespace ::apache::thrift;
using namespace ::ap... | opensource000/cnblogs | log_thrift/nonblock_server.cpp | C++ | apache-2.0 | 2,062 |
package gov.va.med.imaging.exceptions;
public class StudyURNFormatException
extends URNFormatException
{
private static final long serialVersionUID = 6271193731031546478L;
public StudyURNFormatException()
{
super();
}
public StudyURNFormatException(String message)
{
super(message);
}
public StudyURNFor... | VHAINNOVATIONS/Telepathology | Source/Java/ImagingCommon/main/src/java/gov/va/med/imaging/exceptions/StudyURNFormatException.java | Java | apache-2.0 | 472 |
/*
* 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
* distribute... | opentelecoms-org/jsmpp | jsmpp/src/main/java/org/jsmpp/session/state/SMPPSessionState.java | Java | apache-2.0 | 6,024 |
/*
* Licensed to David Pilato (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use... | dadoonet/spring-elasticsearch | src/test/java/fr/pilato/spring/elasticsearch/it/annotation/SecurityOptionalConfig.java | Java | apache-2.0 | 1,399 |
// vim: et sw=4 sts=4 tabstop=4
/*
* 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... | ISSC/Bluebit | src/com/issc/widget/LoadingFragment.java | Java | apache-2.0 | 1,195 |
#!/usr/bin/env python
"""
Set up the logging
"""
import logging
import tempfile
import os
def initialize_logging():
"""
Set up the screen and file logging.
:return: The log filename
"""
# set up DEBUG logging to file, INFO logging to STDERR
log_file = os.path.join(tempfile.gettempdir()... | superphy/backend | app/modules/loggingFunctions.py | Python | apache-2.0 | 1,056 |
package io.particle.android.sdk.cloud;
import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.MainThread;
import android.support.annotation.Nullable;
import android.support.annotation.WorkerThread;
import org.greenrobot.eventbus.EventBus;
impo... | spark/spark-sdk-android | cloudsdk/src/main/java/io/particle/android/sdk/cloud/ParticleDevice.java | Java | apache-2.0 | 26,059 |
<?php
/**
* Copyright 2012-2014 Rackspace US, 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 la... | haskell-infra/libphutil-rackspace | externals/php-opencloud/vendor/rackspace/php-opencloud/tests/OpenCloud/Tests/Volume/Resource/SnapshotTest.php | PHP | apache-2.0 | 1,781 |
package org.grobid.core.features;
import org.grobid.core.layout.LayoutToken;
import org.grobid.core.utilities.TextUtilities;
/**
* Class for features used for fulltext parsing.
*
*/
public class FeaturesVectorFulltext {
public LayoutToken token = null; // not a feature, reference value
public String string... | kermitt2/grobid | grobid-core/src/main/java/org/grobid/core/features/FeaturesVectorFulltext.java | Java | apache-2.0 | 5,369 |
import numpy as np
def sigmoid(x):
"""
Compute the sigmoid function for the input here.
"""
x = 1. / (1. + np.exp(-x))
return x
def sigmoid_grad(f):
"""
Compute the gradient for the sigmoid function here. Note that
for this implementation, the input f should be the sigmoid
... | zhaojijet/CS224d | Assignment1/q2_sigmoid.py | Python | apache-2.0 | 1,343 |
#region Copyright (c) 2011 Atif Aziz. 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 app... | elmah/Fabmail | src/App_Packages/StackTraceFormatter/StackTraceFormatter.cs | C# | apache-2.0 | 7,333 |
# frozen_string_literal: true
module Archimate
module DataModel
# document attribute holds all the concern information.
#
# This is ConcernType in the XSD
class Concern
include Comparison
# @!attribute [r] label
# @return [LangString] one label is required
model_attr :label
... | mmorga/archi-tools-rb | lib/archimate/data_model/concern.rb | Ruby | apache-2.0 | 576 |
/*
* 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-glue/src/main/java/com/amazonaws/services/glue/model/transform/GetCatalogImportStatusRequestMarshaller.java | Java | apache-2.0 | 2,076 |
/*
* Copyright 2017 Seven Bridges Genomics, 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 re... | sbg/sevenbridges-java | api/src/main/java/com/sevenbridges/apiclient/transfer/UploadContext.java | Java | apache-2.0 | 5,821 |
package test_JLabel;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class JLabel02 {
public static void main(String args[]){
JFrame fra = new JFrame("Swing ´°Ìå±êÌâ");
JLabel l... | xgqfrms/JavaWeb | JavaGUI/src/test_JLabel/JLabel02.java | Java | apache-2.0 | 810 |
require 'spec_helper'
describe Arachni::Element::Capabilities::Auditable::Taint do
before :all do
Arachni::Options.url = @url = web_server_url_for( :taint )
@auditor = Auditor.new( nil, Arachni::Framework.new )
@positive = Arachni::Element::Link.new( @url, 'input' => '' )
@positiv... | 0x0mar/arachni | spec/arachni/element/capabilities/auditable/taint_spec.rb | Ruby | apache-2.0 | 16,875 |
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
#
# 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... | HewlettPackard/oneview-sdk-ruby | lib/oneview-sdk/resource/api2400/synergy/volume_template.rb | Ruby | apache-2.0 | 867 |
namespace VitalFew.Transdev.Australasia.Data.Api.Areas.HelpPage.ModelDescriptions
{
public class DictionaryModelDescription : KeyValuePairModelDescription
{
}
} | VitalFew/Transdev | VitalFew.Transdev.Australasia.Data.Api/VitalFew.Transdev.Australasia.Data.Api/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs | C# | apache-2.0 | 172 |
// Copyright 2015, Cyrill @ Schumacher.fm and the CoreStore contributors
//
// 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 ... | bom-d-van/csfw | config/scopeperm.go | GO | apache-2.0 | 2,241 |
#!/usr/bin/env python
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.internet.protocol import DatagramProtocol
from twisted.internet import reactor
import datetime
import socket
import time
import sys
import os.path
lib_path = os.path.abspath('../utils')
sys.path.append(lib_pat... | kasundezoysa/senze | testpi/myDevice.py | Python | apache-2.0 | 4,355 |
package com.nvapp.android.libs.view;
public interface TitleProvider {
/**
* Returns the title of the view at position
*
* @param position
* @return
*/
public String getTitle(int position);
}
| nvapp/nv-android-libs | src/com/nvapp/android/libs/view/TitleProvider.java | Java | apache-2.0 | 205 |
package com.fifino.patterns.strategy;
/**
* Created by porfiriopartida on 2/13/16.
*/
public class ItFlys implements Flys {
@Override
public String fly() {
return "Flying high!";
}
}
| ppartida/jdesign-patterns | src/com/fifino/patterns/strategy/ItFlys.java | Java | apache-2.0 | 206 |
/*
* 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 u... | hambroperks/j2objc | translator/src/main/java/com/google/devtools/j2objc/translate/CastResolver.java | Java | apache-2.0 | 12,986 |
package textures;
public class TerrainTexturePack {
private TerrainTexture backgroundTexture;
private TerrainTexture rTexture;
private TerrainTexture gTexture;
private TerrainTexture bTexture;
public TerrainTexture getBackgroundTexture() {
return backgroundTexture;
}
public void setBackgroundTexture(Terrain... | fillipesouza/mygame | src/textures/TerrainTexturePack.java | Java | apache-2.0 | 1,125 |
package com.zst.xposed.halo.floatingwindow3.prefs;
import android.app.*;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.content.*;
import android.os.*;
import com.zst.xposed.halo.floatingwindow3.*;
import java.util.prefs.*;
import android.widget.*;
import android.graphics.*;
... | shooash/XHFW3 | app/src/main/java/com/zst/xposed/halo/floatingwindow3/prefs/FloatDotActivity.java | Java | apache-2.0 | 5,002 |
package org.nutz.resource;
import static org.junit.Assert.*;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import javax.servlet.Servlet;
import junit.... | 007slm/nutz | test/org/nutz/resource/ScansTest.java | Java | apache-2.0 | 5,137 |
package greatspacerace
import (
"bufio"
"fmt"
"github.com/TSavo/go.firebase"
"os"
)
func init() {
f, err := os.Open("firebase.secret")
if err != nil {
fmt.Printf("error opening firebase.secret: %v\n", err)
}
r := bufio.NewReader(f)
url, e := Readln(r)
if e != nil {
panic(e)
}
secret... | TSavo/FarlightRacing | database.go | GO | apache-2.0 | 699 |
define(['socket.io'], function() {
var socket = io.connect('//' + window.document.location.host);
return socket;
})
| pinittome/pinitto.me | public/js/socket.js | JavaScript | apache-2.0 | 124 |
using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using Newtonsoft.Json;
namespace WeatherConsole
{
public class WeatherService
{
private const string url = @"http://gardiner-weather.azurewebsites.net/api/forecast/"; //SA/Adelaide";
publi... | flcdrg/WeatherConsole | WeatherConsole/WeatherService.cs | C# | apache-2.0 | 1,347 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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/license... | liuyuanyuan/dbeaver | plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/PostgreServerHome.java | Java | apache-2.0 | 1,764 |
/*
* 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 ... | InspurUSA/nifi | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/controller/ControllerFacade.java | Java | apache-2.0 | 86,923 |
/*
* Copyright 2017 David Karnok
*
* 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... | akarnokd/Reactive4JavaFlow | src/main/java/hu/akarnokd/reactive4javaflow/processors/EsetlegProcessor.java | Java | apache-2.0 | 1,100 |
package com.github.mzule.androidweekly.ui.view;
import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;
import com.github.mzule.androidweekly.R;
import com.github.mzule.androidweekly.ui.view.base.BaseLinearLa... | mzule/AndroidWeekly | app/src/main/java/com/github/mzule/androidweekly/ui/view/NaviBar.java | Java | apache-2.0 | 1,740 |
package ar_ubin.benotified.base;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import javax.inject.Inject;
import ar_ubin.benotified.ActivityModule;
import ar_ubin.benotified.ApplicationComponent;... | ar-ubin/BeNotified | app/src/main/java/ar_ubin/benotified/base/BaseActivity.java | Java | apache-2.0 | 1,440 |
package com.example.a226;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends Activity {
EditText et;
@Override
protected void onCreate(Bundle savedInstanceSt... | zelig81/hyperactive-class | A226/src/com/example/a226/MainActivity.java | Java | apache-2.0 | 776 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | badlogicmanpreet/aura | aura-components/src/test/components/clientServiceTest/enqueueAction/enqueueActionTest.js | JavaScript | apache-2.0 | 25,099 |
/*
* Copyright 2010-2011 Raisonne Techonologies.
*
* 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... | umeshawasthi/blooddonor | src/main/java/com/raisonne/quartz/scheduler/job/service/impl/JobUtil.java | Java | apache-2.0 | 935 |
package ftp.v4;
import java.io.IOException;
import java.nio.file.attribute.UserPrincipalLookupService;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.apache.sshd.common.file.util.BaseFileSystem;
import org.apache.sshd.common.file.util.ImmutableList;
... | innocentliny/SFTP_demo | v4/My4FileSystem.java | Java | apache-2.0 | 1,470 |
/*
* Copyright 2011 Gian Perrone
*
* 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... | bendisposto/JVersionNumberer | JVersionNumberer/src/main/java/de/hhu/jversionnumberer/annotations/ImplementableByClient.java | Java | apache-2.0 | 1,173 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/dists/levy/median/lib/index.js | JavaScript | apache-2.0 | 994 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateUserTableForOauthSupport extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (!Schema::hasColumn('user', 'oauth_provider')) {
... | dreamfactorysoftware/df-oauth | database/migrations/2015_05_02_134911_update_user_table_for_oauth_support.php | PHP | apache-2.0 | 1,764 |
# 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 writi... | steinarvk/rigour | rigour/tests/test_secrecy.py | Python | apache-2.0 | 1,198 |
package service.handler.twostep;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.net.Socket;
import java.security.KeyPair;
import java.security.PublicKey;
import java.security.SignatureException;
import java.util.concurrent.locks.ReentrantLo... | CloudComLab/Voting-CAP | src/service/handler/twostep/CSNHandler.java | Java | apache-2.0 | 3,838 |
# Copyright 2014 Modelling, Simulation and Design Lab (MSDL) at
# McGill University and the University of Antwerp (http://msdl.cs.mcgill.ca/)
#
# 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... | kdheepak89/pypdevs | pypdevs/schedulers/schedulerNA.py | Python | apache-2.0 | 7,125 |
// Copyright 2010 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 i... | Uncommon/diadem | Test/BindingTest.cc | C++ | apache-2.0 | 2,858 |
/*
* (C) Copyright IBM Corp. 2019, 2020.
*
* 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... | watson-developer-cloud/java-sdk | visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v4/model/AddImagesOptions.java | Java | apache-2.0 | 6,096 |
#ifndef USE_LIBSASS_SRC
#include "../../libsass_src/src/settings.hpp"
#endif
| tischda/hugo-search | vendor/github.com/bep/golibsass/internal/libsass/settings.hpp | C++ | apache-2.0 | 77 |
using System.ComponentModel;
using System.Windows.Forms;
namespace BulkCrapUninstaller.Forms
{
partial class DebugWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private IContainer components = null;
/// <summary>
/// Clean up... | Klocman/Bulk-Crap-Uninstaller | source/BulkCrapUninstaller/Forms/Helpers/DebugWindow.Designer.cs | C# | apache-2.0 | 24,731 |
/*
* Copyright 2005 JBoss 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... | reynoldsm88/drools | drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/TargetPolicy.java | Java | apache-2.0 | 1,281 |