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 |
|---|---|---|---|---|---|
// Copyright 2016 Kai Chen <281165273@qq.com> (@grapebaba)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | GrapeBaBa/fabric-operator | spec/peer_cluster.go | GO | apache-2.0 | 3,019 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("09... | PolyaNM/TelerikAcademy | C#/CSharp2-Homework12-TextFiles/09.DeleteOddLines/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,410 |
package de.mygrades.view.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import de.mygrades.R;
/**
* Created by tilman on 12.12.15.
*/
public class SettingsActivity extends AppCompatActivity {
private ... | MyGrades/mygrades-app | app/src/main/java/de/mygrades/view/activity/SettingsActivity.java | Java | apache-2.0 | 1,383 |
package com.markwatson.deeplearning;
import org.deeplearning4j.datasets.fetchers.CSVDataFetcher;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
/**
* Created by markw on 10/5/15.
*/
public class WisconsinDataFetcher extends CSVDataFetcher {
public WisconsinDataFetcher() throws FileNotFoun... | mark-watson/power-java | deeplearning/src/main/java/com/markwatson/deeplearning/WisconsinDataFetcher.java | Java | apache-2.0 | 482 |
/*!
* Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
| sederaa/gozouk | app/scripts/freelancer.js | JavaScript | apache-2.0 | 196 |
/*
* 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 ... | irudyak/ignite | modules/web-console/frontend/app/modules/agent/AgentManager.service.js | JavaScript | apache-2.0 | 26,984 |
/*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Author: Enes Sejfi ... | opetrovski/development | oscm-domainobjects/javasrc/org/oscm/domobjects/PublicLandingpage.java | Java | apache-2.0 | 3,411 |
package interfaces;
public class Employee implements Comparable<Employee>{
private String name;
private double salary;
public Employee(String n,double s){
name = n;
salary = s;
}
public String getName(){
return name;
}
public double getSalary(){
return salary;
}
public void raiseSalary(double byPercen... | lovelan/androidstudy | interfaces/src/interfaces/Employee.java | Java | apache-2.0 | 477 |
/*
Copyright 2012, Strategic Gains, 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 writ... | tfredrich/Domain-Eventing | hazelcast/src/java/com/strategicgains/eventing/hazelcast/HazelcastEventTransport.java | Java | apache-2.0 | 1,870 |
export function getScreenBrightness () {
return {
errMsg: 'getScreenBrightness:ok',
value: plus.screen.getBrightness(false)
}
}
export function setScreenBrightness ({
value
} = {}) {
plus.screen.setBrightness(value, false)
return {
errMsg: 'setScreenBrightness:ok'
}
}
export fu... | dcloudio/uni-app | src/platforms/app-plus/service/api/device/brightness.js | JavaScript | apache-2.0 | 471 |
'''
@author: Dallas Fraser
@date: 2015-08-25
@organization: MLSB API
@summary: The basic league API
'''
from flask_restful import Resource, reqparse
from flask import Response, request
from json import dumps
from api import DB
from api.model import League
from api.authentication import requires_admin
from api.errors im... | fras2560/mlsb-platform | api/basic/league.py | Python | apache-2.0 | 6,180 |
package com.gzsll.hupu.ui.thread.list;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.view.View;
import com.gzsll.hupu.api.forum.ForumApi;
import com.gzsll.hupu.api.game.GameApi;
import com.gzsll.hupu.bean.AttendStatusData;
import com.gzsll.hupu.bean.Search;
import com.gzsll.... | gzsll/TLint | app/src/main/java/com/gzsll/hupu/ui/thread/list/ThreadListPresenter.java | Java | apache-2.0 | 13,803 |
# -*- coding: utf-8 -*-
#
# Copyright 2015 MarkLogic 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 appli... | supriyantomaftuh/python_api | python_api/marklogic/models/database/path.py | Python | apache-2.0 | 1,718 |
package com.planet_ink.coffee_mud.Abilities.Thief;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import ... | oriontribunal/CoffeeMud | com/planet_ink/coffee_mud/Abilities/Thief/Thief_CarefulStep.java | Java | apache-2.0 | 5,172 |
# -*- coding: utf-8 -*-
from brutal.core.plugin import cmd
from datetime import datetime
import hladnymatfyzak
DATE_FORMAT = '%d.%m.%Y'
def validate_date_and_args(args):
"""Validates given date"""
if len(args) >= 1:
try:
valid = datetime.strptime(args[0], DATE_FORMAT)
except Val... | mrshu/brutal-plugins | hladny_matfyzak.py | Python | apache-2.0 | 2,198 |
# Copyright 2014 DreamHost, LLC
#
# Author: DreamHost, 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 applicabl... | markmcclain/astara | akanda/rug/cli/router.py | Python | apache-2.0 | 5,687 |
//===----------------------------------------------------------------------===//
//
// Peloton
//
// primitive_value_proxy.cpp
//
// Identification: src/codegen/primitive_value_proxy.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===------------------------------... | phisiart/peloton-p3 | src/codegen/primitive_value_proxy.cpp | C++ | apache-2.0 | 10,369 |
App.source = {
controllers : {},
models : {}
};
App.source.controllers.repository = {
/**
* Add repository
*/
add : function() {
$(document).ready(function() {
App.source.AddEditForm.init();
});
},
/**
* Edit repository
*/
edit : function() {
$(document).ready(function()... | hammadalinaqvi/bookstoregenie | projMan/public/assets/modules/source/javascript/main.js | JavaScript | apache-2.0 | 12,557 |
#include <comm/socket.h>
/*-----------------------------------------------------------------*/
#ifdef __cplusplus
/* callback to read from a ISockioInterface object */
UINT32 isioIOReadCfn (void *pFin, UINT8 pBuf[], const UINT32 ulBufLen)
{
static const SINT32 DEFAULT_READ_TIMEOUT=30;
ISockioInterface *pSock=(ISoc... | lgoldstein/communitychest | chest/net/common/src/main/cpp/comm/siocfns.cpp | C++ | apache-2.0 | 1,777 |
<?php include("head.php"); ?>
<div class="title">
<h2>Anti-pattern: </h2><h3>PRNG for CSRF</h3>
</div>
<h4>Form with CSRF</h4>
<form action="">
<label>Donation amount</label>
<input type="text" value="10.00">
<?php
$uid = "12345678";
$csrfToken = md5($uid . rand() . microtime());
setCookie("c... | disaacson/cargo-cult-security | csrf.php | PHP | apache-2.0 | 488 |
var show = require('./demo10');
show('hh')
| fanbrightup/firsthalf2017 | feb/2-18/test.js | JavaScript | apache-2.0 | 43 |
#include "stdafx.h"
// General
#include "SkyManager.h"
namespace
{
const float C_SkyRadius = 400.0f;
const uint32 C_SkySegmentsCount = 32;
//.............................top.............................med.............................medh............................horiz...........................bottom
const f... | bouzi71/OpenWow | owGame/Sky/SkyManager.cpp | C++ | apache-2.0 | 8,866 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.eql.expression.function.scalar.string;
import... | nknize/elasticsearch | x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/expression/function/scalar/string/EndsWithFunctionPipe.java | Java | apache-2.0 | 3,428 |
function changeThemeFun(themeName) {/* 更换主题 */
//alert(themeName);
var $easyuiTheme = $('#easyuiTheme');
var url = $easyuiTheme.attr('href');
var href = url.substring(0, url.indexOf('themes')) + 'themes/' + themeName + '/easyui.css';
//alert(url);
$easyuiTheme.attr('href', href);
var $iframe = $('iframe');
... | zhgo116/fancy | Fancy/src/main/webapp/ui/changeEasyuiTheme.js | JavaScript | apache-2.0 | 1,014 |
package org.hl7.fhir.instance.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above co... | cementsuf/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Duration.java | Java | apache-2.0 | 3,973 |
/*
* 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 ... | mattyb149/nifi | nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/test/java/org/apache/nifi/services/azure/storage/TestADLSCredentialsControllerService.java | Java | apache-2.0 | 7,904 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using BuildCs.FileSystem;
namespace BuildCs.Xml
{
public class XmlHelper
{
public void Update(BuildItem file, Action<XDocument> config)
{
var d... | craiggwilson/buildcs | src/BuildCs.Core/Xml/XmlHelper.cs | C# | apache-2.0 | 419 |
/*
* 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 ... | b-slim/calcite | core/src/main/java/org/apache/calcite/sql/SqlUnnestOperator.java | Java | apache-2.0 | 4,109 |
/*
* 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-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/ExportableInstanceField.java | Java | apache-2.0 | 6,086 |
/*******************************************************************************
*
* Pentaho Mondrian Test Compatibility Kit
*
* Copyright (C) 2013-2014 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Ve... | pentaho/mondrian-tck | src/main/java/org/pentaho/mondrian/tck/SqlExpectation.java | Java | apache-2.0 | 6,275 |
/**
* @license
* Copyright 2021 Google LLC. 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 a... | tensorflow/tfjs | tfjs-backend-webgpu/src/kernels/Complex.ts | TypeScript | apache-2.0 | 1,916 |
/*************************************************************************
ListeIdentifiants - Symbole de l'analyseur
-------------------
début : 8 mars 2016 08:23:14
copyright : (C) 2016 par H4112
******************************... | H4112/GrammairesLangages | rendu/src/symboles/ListeIdentifiants.cpp | C++ | apache-2.0 | 2,091 |
/*
* Copyright 2019 Baidu, 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 writ... | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Query.java | Java | apache-2.0 | 5,848 |
from collections import defaultdict
from copy import deepcopy
from geopy.geocoders import Nominatim
import Util
import twitter
import json
import time
import string
import stop_words
geolocator = Nominatim()
STOP_WORDS = stop_words.get_stop_words('english')
api = twitter.Api(consumer_key='b170h2arKC4VoITriN5jIjFRN',
... | ZacWilson047/TwitterProject | TwitterModule.py | Python | apache-2.0 | 10,730 |
/*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | hotpads/datarouter | datarouter-task-tracker/src/main/java/io/datarouter/tasktracker/storage/LongRunningTaskDao.java | Java | apache-2.0 | 3,299 |
import {HttpJsonResponse, HttpUploadOptions} from '../type'
import {HttpResponseUnexpectedStatusError, HttpResponseBodyParseError} from './error'
import * as http from '../service/http'
const getBodyTextIfPossible = async (response: Response): Promise<string | null> => {
try {
return await response.text()
} ca... | all3dp/printing-engine-client | src/app/lib/http-json.ts | TypeScript | apache-2.0 | 1,926 |
package com.gh.mygreen.xlsmapper.fieldaccessor;
import java.util.Optional;
import com.gh.mygreen.xlsmapper.util.CellPosition;
/**
* フィールドの位置情報を取得するためのインタフェース。
*
* @since 2.0
* @author T.TSUCHIE
*
*/
@FunctionalInterface
public interface PositionGetter {
/**
* フィールドの位置情報を取得します。
... | mygreen/xlsmapper | src/main/java/com/gh/mygreen/xlsmapper/fieldaccessor/PositionGetter.java | Java | apache-2.0 | 633 |
// Copyright 2021 PingCAP, 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... | c4pt0r/tidb | br/pkg/lightning/restore/table_restore.go | GO | apache-2.0 | 34,111 |
/**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | spohnan/geowave | extensions/adapters/raster/src/main/java/org/locationtech/geowave/adapter/raster/adapter/merge/MultiAdapterServerMergeStrategy.java | Java | apache-2.0 | 15,171 |
package com.ssis.village.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Generat... | guramma/myvillage | src/main/java/com/ssis/village/model/PostYourAd.java | Java | apache-2.0 | 3,481 |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# Source: opentelemetry/proto/collector/trace/v1/trace_service.proto for package 'opentelemetry.proto.collector.trace.v1'
# Original file comments:
# Copyright 2019, OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you... | open-telemetry/opentelemetry-ruby | exporter/otlp/lib/opentelemetry/proto/collector/trace/v1/trace_service_services_pb.rb | Ruby | apache-2.0 | 1,959 |
cordova.define("nl.x-services.plugins.toast.tests", function(require, exports, module) { exports.defineAutoTests = function() {
var fail = function (done) {
expect(true).toBe(false);
done();
},
succeed = function (done) {
expect(true).toBe(true);
done();
};
describe('Plugin availability',... | digitalunity/wbtest | platforms/windows/www/plugins/nl.x-services.plugins.toast/test/tests.js | JavaScript | apache-2.0 | 1,779 |
export * from './admin.service';
export * from './database.service';
export * from './route.service';
export * from './server.service';
export * from './file.service';
export * from './controller.service';
export * from './service.service';
export * from './serve.auth.service';
export * from './interceptor.service';
| CaoYouXin/serveV2 | html/deploy/src/app/service/index.ts | TypeScript | apache-2.0 | 318 |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | dagnir/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/CloudwatchMetricAction.java | Java | apache-2.0 | 13,191 |
/*
* Copyright 2012 The Clustermeister Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | nethad/clustermeister | provisioning/src/main/java/com/github/nethad/clustermeister/provisioning/ec2/commands/AbstractAmazonExecutableCommand.java | Java | apache-2.0 | 5,156 |
package com.psychowood.yahapp;
import android.app.Activity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.util.Log;
import android.view.WindowManager;
import com.psychowood.henkaku.HenkakuWebServer;
import com.psychowood.yahapp.storage.Asse... | psychowood/YAHapp | android/app/src/main/java/com/psychowood/yahapp/HenkakuWebServerActivity.java | Java | apache-2.0 | 4,651 |
from functools import wraps
def authorized_method(o):
o.authentication_required = o.slug
o.authorization_required = o.slug
return o
def authenticated_method(o):
o.authentication_required = o.slug
return o
def anonymous_method(o):
o.authentication_required = False
o.authorization_require... | JeffHeard/sondra | sondra/auth/decorators.py | Python | apache-2.0 | 2,213 |
// TypeInfoGeneration.cpp
// Copyright (c) 2014 - 2015, zhiayang@gmail.com
// Licensed under the Apache License Version 2.0.
#include "codegen.h"
#include "typeinfo.h"
#include "pts.h"
using namespace Ast;
using namespace Codegen;
namespace TypeInfo
{
void addNewType(CodegenInstance* cgi, fir::Type* stype, StructBa... | adrian17/flax | source/TypeInfo/TypeInfo.cpp | C++ | apache-2.0 | 6,227 |
/*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | joukou/joukou-data | dist/models/agent/graph/state/index.js | JavaScript | apache-2.0 | 2,304 |
/*
* DISCLAIMER
*
* Copyright 2016 ArangoDB GmbH, Cologne, Germany
*
* 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 req... | arangodb/arangodb-java-driver | src/main/java/com/arangodb/entity/DocumentEntity.java | Java | apache-2.0 | 1,231 |
/*
* 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-bigtableadmin/v2/1.31.0/com/google/api/services/bigtableadmin/v2/model/ListOperationsResponse.java | Java | apache-2.0 | 2,926 |
# vim: set encoding=utf-8
# Copyright (c) 2016 Intel 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 require... | skavulya/spark-tk | integration-tests/tests/test_svm.py | Python | apache-2.0 | 1,997 |
package proxy
import (
"context"
"fmt"
"net"
"sync"
"github.com/fatedier/frp/client/event"
"github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/golib/errors"
)
type Manager struct {
sendCh chan (msg.Message)
proxies map[strin... | fatedier/frp | client/proxy/proxy_manager.go | GO | apache-2.0 | 2,973 |
package es.upm.fi.dia.oeg.ogsadai.sparql.client;
import uk.org.ogsadai.activity.ActivityName;
import uk.org.ogsadai.client.toolkit.ActivityOutput;
import uk.org.ogsadai.client.toolkit.SingleActivityOutput;
import uk.org.ogsadai.client.toolkit.activity.ActivityInput;
import uk.org.ogsadai.client.toolkit.activity.... | cbuil/sparql-dqp | src/main/java/es/upm/fi/dia/oeg/ogsadai/sparql/client/RDFActivity.java | Java | apache-2.0 | 3,973 |
/* Copyright 2020 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... | aldian/tensorflow | tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/IR/init.cc | C++ | apache-2.0 | 1,472 |
// 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 in ... | googleapis/google-cloud-go | pubsublite/internal/wire/assigner.go | GO | apache-2.0 | 5,451 |
/*
* Copyright (c) 2013, 2015 Sacred Scripture Foundation.
* "All scripture is given by inspiration of God, and is profitable for
* doctrine, for reproof, for correction, for instruction in righteousness:
* That the man of God may be perfect, throughly furnished unto all good
* works." (2 Tim 3:16-17)
*
*... | SacredScriptureFoundation/sacredscripture | impl/src/main/java/org/sacredscripture/platform/internal/bible/ContentImpl.java | Java | apache-2.0 | 3,602 |
'use strict';
var JpipStructureParser = function JpipStructureParserClosure(
databinsSaver, markersParser, messageHeaderParser, offsetsCalculator) {
this.parseCodestreamStructure = function parseCodestreamStructure() {
// A.5.1 (Image and Tile Size)
var bytes = [];
var mai... | MaMazav/MaMazav.github.io | webjpip.js/old/webjpip.js/jpipcore/parsers/jpipstructureparser.js | JavaScript | apache-2.0 | 9,141 |
import { IThriftClientFilter } from '../types'
export function filterByMethod<Context>(
method: string,
): (filter: IThriftClientFilter<Context>) => boolean {
return (filter: any): boolean => {
return (
filter.methods.length === 0 || filter.methods.indexOf(method) > -1
)
}
}
| creditkarma/thrift-server | packages/thrift-client/src/main/connections/utils.ts | TypeScript | apache-2.0 | 317 |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202105/LiveStreamEventCdnSettingsError.java | Java | apache-2.0 | 5,570 |
/**
* Copyright (C) 2009-2013 Dell, Inc.
* See annotations for authorship information
*
* ====================================================================
* 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 co... | daniellemayne/dasein-cloud-aws_old | src/test/java/org/dasein/cloud/aws/AWSSignatureV4Tests.java | Java | apache-2.0 | 26,369 |
package reply
import (
"context"
"go-common/app/interface/main/reply/conf"
model "go-common/app/interface/main/reply/model/reply"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestReplyNewMemcacheDao(t *testing.T) {
convey.Convey("NewMemcacheDao", t, func(ctx convey.C) {
var (
c = conf.Conf.... | LQJJ/demo | 126-go-common-master/app/interface/main/reply/dao/reply/memcache_test.go | GO | apache-2.0 | 9,124 |
import { REST } from 'core/api/ApiService';
export class ArtifactService {
public static getArtifactNames(type: string, accountName: string): PromiseLike<string[]> {
return REST('/artifacts/account').path(accountName, 'names').query({ type: type }).get();
}
public static getArtifactVersions(type: string, ac... | ajordens/deck | app/scripts/modules/core/src/pipeline/config/triggers/artifacts/ArtifactService.ts | TypeScript | apache-2.0 | 538 |
/*
* RED5 Open Source Media Server - https://github.com/Red5/ Copyright 2006-2016 by respective authors (see below). 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://ww... | Red5/red5-server-common | src/main/java/org/red5/server/exception/ScopeException.java | Java | apache-2.0 | 944 |
<?php
use Zizaco\Confide\ConfideUser;
use Zizaco\Confide\ConfideUserInterface;
use Zizaco\Entrust\HasRole;
class User extends Eloquent implements ConfideUserInterface {
use HasRole; // Add this trait to your user model
use ConfideUser;
protected $fillable = array('username','email','password','password_confirmation'... | PlusTechnologies/league-production | app/models/User.php | PHP | apache-2.0 | 1,482 |
/*
* Copyright 2007 - 2016 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 ... | pellcorp/jailer | src/main/net/sf/jailer/ui/ExportDialog.java | Java | apache-2.0 | 59,977 |
var path = require('path'),
sys = require('util'),
url = require('url'),
request,
fs = require('fs');
var less = {
version: [1, 4, 0],
Parser: require('./parser').Parser,
importer: require('./parser').importer,
tree: require('./tree'),
render: function (input, options, callback) {
... | ricardobeat/less-less | lib/less/index.js | JavaScript | apache-2.0 | 7,200 |
class WorkflowSerializer
include RestPack::Serializer
include FilterHasMany
include MediaLinksSerializer
attributes :id, :display_name, :tasks, :classifications_count, :subjects_count,
:created_at, :updated_at, :first_task, :primary_language,
:version, :content_language, :prioritized,... | edpaget/Panoptes | app/serializers/workflow_serializer.rb | Ruby | apache-2.0 | 1,164 |
var db = require('../db');
var Schema = db.Schema;
var ParticipantSchema = Schema({
id:{ type: Schema.Types.ObjectId},
fitbitid: {type: String, required: true},
dateofbirth: {type: String, required: true},
name: {type: String, required: true},
gender: {type: String},
age: {type: Number},
fi... | KHP-Informatics/RADAR-platform | producers/fitbit/models/ParticipantModel.js | JavaScript | apache-2.0 | 419 |
/**
* The jdbc module provides access to java database connectivity (JDBC).
* Typically you acquire access to the module by naming it as a dependency in a call to `define()`
* when defining your own module.
* The object passed to the `define()` callback to represent the dependency can be considered
* a singleton `jdb... | rpbouman/jjsutils | src/jdbc/jdbc.js | JavaScript | apache-2.0 | 10,572 |
/*
* Copyright (c) Facebook, Inc. and 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 applic... | JoelMarcey/buck | test/com/facebook/buck/android/TestAndroidPlatformTargetFactory.java | Java | apache-2.0 | 1,811 |
/* eslint-env jest */
import eventize, {
PRIO_DEFAULT,
EVENT_CATCH_EM_ALL,
} from '../eventize';
describe('on()', () => {
describe('eventName is a string', () => {
describe('on( eventName, priority, listenerFunc, listenerObject )', () => {
const listenerObject = {};
const listenerFunc = jest.fn()... | spearwolf/eventize | src/__tests__/on.spec.js | JavaScript | apache-2.0 | 17,681 |
/**
* 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... | Mandar-Shinde/cassandra | src/java/org/apache/cassandra/db/index/SecondaryIndexManager.java | Java | apache-2.0 | 18,876 |
package com.uweather.app.util;
import android.util.Log;
public class LogUtil {
public static final int VERBOSE = 1;
public static final int DEBUG = 2;
public static final int INFO =3;
public static final int WARN = 4;
public static final int ERROR = 5;
public static final int NOTHING = 6;
public static final... | EmpKixs/UWeather | src/com/uweather/app/util/LogUtil.java | Java | apache-2.0 | 829 |
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
from .utils import disable_for_loaddata
from . import settings
@receiver(post_save, sender=settings.AUTH_USER_MODEL)
@disable_for_loaddata
def create_auth_token(sender, instance=Non... | cdelguercio/slothauth | slothauth/signals.py | Python | apache-2.0 | 409 |
package io.yosper.iot.message_router;
import org.apache.activemq.camel.component.ActiveMQComponent;
import org.apache.camel.CamelContext;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;
import io.yosper.iot.message_router.Proce... | veestr/gemini | services/message-router/src/main/java/io/yosper/iot/message_router/TransportCrouton.java | Java | apache-2.0 | 1,163 |
/*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.intellij.find.actions;
import com.intellij.codeInsight.TargetElementUtil;
import com.intellij.codeInsight.hint.HintManager;
import com.intellij.codeInsight.hin... | ThiagoGarciaAlves/intellij-community | platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java | Java | apache-2.0 | 51,268 |
/*
* Copyright 2010-2011 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... | apetresc/aws-sdk-for-java-on-gae | src/main/java/com/amazonaws/services/ec2/model/transform/StartInstancesResultStaxUnmarshaller.java | Java | apache-2.0 | 2,478 |
// Package airspace maintains a single, central snapshot of current aircraft status
package airspace
import(
"fmt"
"sort"
"time"
"github.com/skypies/adsb"
fdb "github.com/skypies/flightdb"
)
var DefaultRollAfter = time.Minute * 5
var DefaultMaxQuietTime = time.Minute * 5
type AircraftData struct {
Msg *adsb.C... | skypies/pi | airspace/airspace.go | GO | apache-2.0 | 4,236 |
package thereisnospon.acclient.modules.licenses;
import com.google.gson.annotations.SerializedName;
final class Library {
@SerializedName("name") private String mName;
@SerializedName("owner") private String mOwner;
@SerializedName("copyright") private String mCopyright;
public String getName() {
return mName... | Thereisnospon/AcClient | app/src/main/java/thereisnospon/acclient/modules/licenses/Library.java | Java | apache-2.0 | 625 |
package dk.silverbullet.telemed.device.vitalographlungmonitor;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.InOrder;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import sta... | silverbullet-dk/opentele-client-android | questionnaire-test/src/test/java/dk/silverbullet/telemed/device/vitalographlungmonitor/LungMonitorPacketCollectorTest.java | Java | apache-2.0 | 3,992 |
(function () {
'use strict';
angular.module('app').factory('contactService', ['$http', function ($http) {
return {
send : function(data) {
return $http.post('api/contact', data);
}
};
}]);
})(); | bmobsoftwares/bmobsoftwares.github.io | app/contact/contactService.js | JavaScript | apache-2.0 | 267 |
package org.opencds.cqf.r4.builders;
import java.util.Date;
import org.opencds.cqf.common.builders.BaseBuilder;
import org.opencds.cqf.cql.engine.runtime.DateTime;
public class JavaDateBuilder extends BaseBuilder<Date> {
public JavaDateBuilder() {
super(new Date());
}
public JavaDateBuilder bui... | DBCG/cql_measure_processor | r4/src/main/java/org/opencds/cqf/r4/builders/JavaDateBuilder.java | Java | apache-2.0 | 458 |
"""Support for LIFX lights."""
import asyncio
from datetime import timedelta
from functools import partial
import logging
import math
import sys
import aiolifx as aiolifx_module
import aiolifx_effects as aiolifx_effects_module
import voluptuous as vol
from homeassistant import util
from homeassistant.components.light... | leppa/home-assistant | homeassistant/components/lifx/light.py | Python | apache-2.0 | 24,645 |
module HttpdCookbook
class HttpdServiceRhelSystemd < HttpdServiceRhel
use_automatic_resource_name
# This is Chef-12.0.0 back-compat, it is different from current
# core chef 12.4.0 declarations
if defined?(provides)
provides :httpd_service, platform_family: %w(rhel fedora suse) do
Chef::... | juliandunn/httpd | libraries/httpd_service_rhel_systemd.rb | Ruby | apache-2.0 | 3,113 |
package com.vaadin.book.examples.addons.jpacontainer;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
// BEG... | BillHan/book-examples-v6 | src/main/java/com/vaadin/book/examples/addons/jpacontainer/Country.java | Java | apache-2.0 | 1,457 |
package ova.bean;
import org.apache.commons.lang3.StringUtils;
import ova.api.MessagesProvider;
import ova.util.MessageUtils;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.Instance;
import javax.faces.application.FacesMessage;
import javax.inject... | ova2/jsf-portal | jsftoolkit-jar/src/main/java/ova/bean/MessagesProxy.java | Java | apache-2.0 | 4,126 |
using Esri.ArcGISRuntime.Controls;
using Esri.ArcGISRuntime.Data;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
using Esri.ArcGISRuntime.Tasks.Query;
using System;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using System.Windo... | Tyshark9/arcgis-runtime-samples-dotnet | src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/Editing/FeatureLayerEditGeometry.xaml.cs | C# | apache-2.0 | 4,573 |
/*
* 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-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/transform/RequestCancelExternalWorkflowExecutionDecisionAttributesJsonUnmarshaller.java | Java | apache-2.0 | 3,804 |
/* global Buffer */
var dgram = require('dgram');
var client = dgram.createSocket("udp4");
var rfidReader = require("../index.js");
var broadcastAddress = "255.255.255.255";
var deviceBroadcastPort = 39169;
function failOnError(err) {
if (err) {
throw err;
}
}
client.on("error", function (err) {
console.log("S... | kant2002/node-rfidreader | tools/updateSettings.js | JavaScript | apache-2.0 | 2,783 |
<?php
namespace CourseHero\ResponsysPHP\Api\Types;
class LaunchResult
{
/**
*
* @var int $launchId
* @access public
*/
public $launchId = null;
/**
*
* @param int $launchId
* @access public
*/
public function __construct($launchId = null)
{
$this->launchId = $launchId;
}
}... | course-hero/responsys-php | src/CourseHero/ResponsysPHP/Api/Types/LaunchResult.php | PHP | apache-2.0 | 321 |
namespace CompositeDiagrammer
{
using System.Drawing.Drawing2D;
public interface Path
{
GraphicsPath Get();
}
} | rogeralsing/qi4n | CompositeDiagrammer/Element/Path.cs | C# | apache-2.0 | 139 |
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | kubernetes-incubator/service-catalog | pkg/controller/originating_identity.go | GO | apache-2.0 | 1,160 |
// Generated from /POI/java/org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptor.java
#pragma once
#include <fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <javax/crypto/fwd-POI.hpp>
#include <org/apache/poi/poifs/crypt/fwd-POI.hpp>
#include <org/apache/poi/poifs/crypt/crypto... | pebble2015/cpoi | src/org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptor.hpp | C++ | apache-2.0 | 3,017 |
package com.dvoiss.sensorannotations;
import com.dvoiss.sensorannotations.exception.ProcessingException;
import java.lang.annotation.Annotation;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
* This wrapper class holds al... | dvoiss/SensorAnnotations | sensorannotations-compiler/src/main/java/com/dvoiss/sensorannotations/AnnotatedMethodsPerClass.java | Java | apache-2.0 | 2,149 |
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | android/animation-samples | OurStreets/app/src/main/java/com/google/samples/apps/ourstreets/data/DetailPresenter.java | Java | apache-2.0 | 1,809 |
package net.floodlightcontroller.qos;
/**
* Copyright 2012 Marist College, New York
* Author Ryan Wallner (ryan.wallner1@marist.edu)
*
* 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
*
* ... | jimmyoic/floodlight-qosmanager | src/main/java/net/floodlightcontroller/qos/QoS.java | Java | apache-2.0 | 32,011 |
#!/usr/bin/env python
# Copyright 2012 Google Inc. All Rights Reserved.
"""Utils exporting data from AFF4 to the rest of the world."""
import os
import Queue
import stat
import time
import logging
from grr.lib import aff4
from grr.lib import rdfvalue
from grr.lib import serialize
from grr.lib import threadpool
from... | simsong/grr-insider | lib/export_utils.py | Python | apache-2.0 | 11,103 |
// Copyright 2017 Pilosa Corp.
//
// 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... | travisturner/pilosa | server/config_test.go | GO | apache-2.0 | 1,643 |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | dagnir/aws-sdk-java | aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/transform/DescribeElasticIpsResultJsonUnmarshaller.java | Java | apache-2.0 | 2,905 |