repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BTAuxiliaryNode.h | <filename>Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BTAuxiliaryNode.h
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "BehaviorTree/BTNode.h"
#include "BTAuxiliaryNode.generated.h"
struct FBTAuxiliaryMemory : publ... |
securitykernel/bc-java | core/src/main/java/org/bouncycastle/crypto/tls/TlsPSKKeyExchange.java | package org.bouncycastle.crypto.tls;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.Vector;
import org.bouncycastle.asn1.x509.KeyUsage;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
impo... |
LinRayx/ToyRenderer | src/Drawable/BlurMaterial.cpp | <gh_stars>1-10
#include "Drawable/BlurMaterial.h"
namespace Draw
{
BlurMaterial::BlurMaterial() : MaterialBaseParent()
{
}
void BlurMaterial::BuildCommandBuffer(shared_ptr<Graphics::CommandBuffer> cmd)
{
auto& drawCmdBuffers = cmd->drawCmdBuffers;
auto& rp = Graphics::nameToRenderPass[Graphics::RenderPassT... |
5tefan/py-netcdf-timeseries-gui | pyntpg/dataset_tabs/ncinfo_preview.py | import os
import netCDF4 as nc
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QVBoxLayout, QLabel, QProgressBar, QPlainTextEdit
class NcinfoPreview(QWidget):
""" A widget which displays a preview of the netcdf object
loaded/accessible.
"""
def __init__(self):
... |
Ajderka/job4j | chess/src/main/java/ru/job4j/chess/figures/white/KnightWhite.java | <filename>chess/src/main/java/ru/job4j/chess/figures/white/KnightWhite.java
package ru.job4j.chess.figures.white;
import ru.job4j.chess.exception.ImpossibleMoveException;
import ru.job4j.chess.figures.Cell;
import ru.job4j.chess.figures.Figure;
/**
* @author <NAME> (<EMAIL>)
* @version $Id$
* @since 0.1
*/
public... |
Arodev76/L2Advanced | src/main/java/l2f/gameserver/stats/conditions/ConditionTargetAggro.java | package l2f.gameserver.stats.conditions;
import l2f.gameserver.model.Creature;
import l2f.gameserver.model.instances.MonsterInstance;
import l2f.gameserver.stats.Env;
public class ConditionTargetAggro extends Condition
{
private final boolean _isAggro;
public ConditionTargetAggro(boolean isAggro)
{
_isAggro = i... |
changcheng/wro4j | wro4j-core/src/main/java/ro/isdc/wro/model/resource/processor/decorator/AbstractProcessorDecorator.java | package ro.isdc.wro.model.resource.processor.decorator;
import ro.isdc.wro.model.resource.processor.ResourcePostProcessor;
import ro.isdc.wro.model.resource.processor.ResourcePreProcessor;
/**
* This class exist only for backward compatibility (third party implementation and documentation) and will be removed
* in... |
SoftwareDevTest/softwareapimanager | application/models/Company.go | package models
import "time"
type QySecret struct {
Id int
Proid int
Company string
Appid string
Appsecret string
Status int
Ctime int
}
/**
* 获取企业秘钥列表
* param proid 项目id
* param company 公司名
* param start 开始位置
* param limit 条数
* return result 秘钥列表
*/
func Co... |
fcoclavero/vscvs | vscvs/trainers/engines/__init__.py | from .engines import attach_metrics
|
wittech/imsdk-android | imsdk/src/main/java/com/qunar/im/ui/util/easyphoto/easyphotos/ui/widget/PreviewRecyclerView.java | <filename>imsdk/src/main/java/com/qunar/im/ui/util/easyphoto/easyphotos/ui/widget/PreviewRecyclerView.java
package com.qunar.im.ui.util.easyphoto.easyphotos.ui.widget;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerVi... |
gaozining/LogiCommon | logi-security-spring-boot-starter/src/main/java/com/didiglobal/logi/security/service/UserRoleService.java | package com.didiglobal.logi.security.service;
import java.util.List;
/**
* @author cjm
*/
public interface UserRoleService {
/**
* 根据角色id,获取用户idList
* @param roleId 角色id
* @return 用户idList
*/
List<Integer> getUserIdListByRoleId(Integer roleId);
/**
* 根据用户id,获取角色idList
* @... |
MGlolenstine/NPCs | src/main/java/me/mrdaniel/npcs/managers/menu/MainPage.java | package me.mrdaniel.npcs.managers.menu;
import javax.annotation.Nonnull;
import org.spongepowered.api.data.key.Keys;
import org.spongepowered.api.entity.living.Living;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.action.TextActions;
import org.spongepowered.api.text.format.TextColors;
im... |
olsemeno/jruby | spec/ruby/library/datetime/subtract_spec.rb | <reponame>olsemeno/jruby
require_relative '../../spec_helper'
require 'date'
describe "DateTime#-" do
it "is able to subtract sub-millisecond precision values" do
date = DateTime.new(2017)
diff = Rational(123456789, 24*60*60*1000*1000)
((date + diff) - date).should == diff
(date - (date + diff)).shou... |
intesight/Panorama4AIWAYS | s32v234_sdk/libs/dnn/squeeze_net_v10/graphs/fire3_e1e3s1_graph.hpp | /*****************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2015-2016 Freescale Semiconductor
* Copyright 2017-2018 NXP
* All Rights Reserved
*
******************************************************************************
*
* THIS SOFTWARE IS PROV... |
clockworkgr/tmmonorepo | packages/vuex/src/chain/cosmos/cosmos-sdk/bank/bank.js | <filename>packages/vuex/src/chain/cosmos/cosmos-sdk/bank/bank.js<gh_stars>1-10
//import { Type, Field } from 'protobufjs' If registering custom message types
const getDefaultState = () => {
return {
Balance: {},
AllBalances: {},
TotalSupply: {},
SupplyOf: {},
Params: {},
DenomsMetadata: {},
DenomMetadata... |
ComputeWorks/Xbox-ATG-Samples | XDKSamples/Tools/OSPrimitiveTool/Libraries/Logging/BaseLogger.cpp | <reponame>ComputeWorks/Xbox-ATG-Samples
//--------------------------------------------------------------------------------------
// BaseLogger.cpp
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//-------------------------------------------------------------------... |
Uvacoder/wc-lib | rotation-input/wc-rotation-input-2.js | function fireEvent(element, eventName, data, bubbles = true, cancelable = true) {
const event = document.createEvent("HTMLEvents");
event.initEvent(eventName, bubbles, cancelable);
if (data) {
event.data = data;
}
return element.dispatchEvent(event);
}
function validateEnum(val, choices) {
if (choices.includes... |
nicolasgustafsson/WonderMake | WonderMake/Imgui/JsonInspector.cpp | <gh_stars>1-10
#include "pch.h"
#include "JsonInspector.h"
#include <json/json.hpp>
void ImGui::JsonInspector::Inspect(nlohmann::json& aJsonDocumentToInspect, const std::string aDocumentName)
{
ImGui::Begin(aDocumentName.c_str());
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
ImGui::Columns(2);
Im... |
70Song/Collections-Song | src/test/java/org/apache/commons/collections4/comparators/ComparatorChainTest.java | <gh_stars>0
/*
* 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... |
morozovcookie/agat-banking-public | ui/src/services/AuthenticationService/AuthenticationService.js | const AuthenticationService = {
signIn: () => {},
refreshToken: () => {},
signOut: () => {}
};
export default AuthenticationService;
|
JzGo/hyrax | spec/wings/hydra/works/models/concerns/file_set_valkyrie_behavior_spec.rb | <filename>spec/wings/hydra/works/models/concerns/file_set_valkyrie_behavior_spec.rb<gh_stars>1-10
# frozen_string_literal: true
require 'wings_helper'
require 'wings/model_transformer'
RSpec.describe Wings::Works::FileSetValkyrieBehavior, :clean_repo do
subject(:factory) { Wings::ModelTransformer.new(pcdm_object: pc... |
liufu1986007/tis | tis-common/src/main/java/com/qlangtech/tis/offline/pojo/TISDb.java | /**
* 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
* "Li... |
Telenav/kivakit | kivakit-kernel/src/main/java/com/telenav/kivakit/kernel/logging/LoggerFactory.java | <filename>kivakit-kernel/src/main/java/com/telenav/kivakit/kernel/logging/LoggerFactory.java<gh_stars>10-100
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// © 2011-2021 Telenav, Inc.
//
// Licensed under the Apache License, Version 2.0 (the ... |
MarkWaldron/topaz | src/common/detour/DetourNavMesh.h | //
// Copyright (c) 2009-2010 <NAME> <EMAIL>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose,
// including c... |
ZhuoZhuoCrayon/bk-sops | auth_backend/plugins/tastypie/resources.py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... |
tallence/core-forms-frontend | src/vue/plugins/core-forms/store/mutations.js | import {FORM_DEFINITION, FORM_LOADING, FORM_PROGRESS, FORM_SOURCE, FORM_SUBMITTING, RESET_FORM_VALUES, SET_FORM_VALUE} from "./types";
export default {
[FORM_SOURCE](state, newValue) {
state.formSource = newValue;
},
[FORM_LOADING](state, newValue) {
state.formLoading = newValue;
},
[FORM... |
vstconsulting/vstutils | test_src/test_proj/migrations/0024_masked_and_phone_fields.py | # Generated by Django 3.2.6 on 2021-08-18 06:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test_proj', '0023_cachableproxymodel'),
]
operations = [
migrations.AddField(
model_name='author',
name='masked',
... |
chfrank-cgn/FOM | AD/02-01/EinfacheListe.java | <filename>AD/02-01/EinfacheListe.java
class Element {
char wert;
Element naechstes;
// Konstruktor
public Element(char w) {
wert = w;
naechstes = null;
}
}
public class EinfacheListe {
// Verweis auf Listenkopf
Element kopf;
public EinfacheListe(){
kopf = new Ele... |
rceet/TencentOS-tiny | components/connectivity/qcloud-iot-explorer-sdk/3rdparty/sdk_src/protocol/mqtt/mqtt_client_common.c | <reponame>rceet/TencentOS-tiny<gh_stars>1-10
/*******************************************************************************
* Copyright (c) 2014 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Dis... |
garezb35/mine | public/angel/myroom/customer/js/search_update_form.js | <gh_stars>0
function _init() {
_window.resize(680, 420);
var frm = $('#frmSearch');
if (frm.length > 0) {
var gameServerEl = document.getElementById('custom_gameserver');
existedAngelGameServer = new AngelGames(document.getElementById('custom_gameserver_list'), {
containerWrapp... |
friedrich12/sodium-wrapper | include/box_precomputed.h | // box_precomputed.h -- PK enc/dec with MAC, with precomputed shared key
//
// ISC License
//
// Copyright (C) 2018 <NAME> <<EMAIL>>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permi... |
colinRawlings/osparc-simcore | services/director-v2/tests/unit/test_utils_registry.py | <filename>services/director-v2/tests/unit/test_utils_registry.py
from typing import Dict
from _pytest.monkeypatch import MonkeyPatch
from settings_library.docker_registry import RegistrySettings
from simcore_service_director_v2.utils.registry import get_dynamic_sidecar_env_vars
MOCKED_PASSWORD = "<PASSWORD>"
MOCKED_... |
mattermost/awat | internal/api/store.go | // Copyright (c) 2020-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
//
package api
import "github.com/mattermost/awat/model"
type Store interface {
GetTranslation(id string) (*model.Translation, error)
GetTranslationsByInstallation(id string) ([]*model.Translation, error... |
keithpitt/vendor | spec/lib/vendor/vendor_file/library/remote_spec.rb | require 'spec_helper'
describe Vendor::VendorFile::Library::Remote do
let(:lib) { Vendor::VendorFile::Library::Remote.new(:name => "DKBenchmark", :version => "0.1") }
context "#download" do
before :each do
Vendor.stub(:library_path).and_return Dir.mktmpdir("spec")
end
it "should find the corr... |
caizhenxing/mobileAutoTest | src/main/java/com/bmtc/device/service/TestCaseService.java | package com.bmtc.device.service;
import java.util.List;
import com.bmtc.device.domain.TestCase;
import com.bmtc.device.domain.TestCaseTable;
import com.bmtc.task.domain.ExecuteDetail;
/**
*@author: Jason.ma
*@date: 2018年1月3日下午4:30:36
*
*/
public interface TestCaseService {
/**
* androi... |
EvenOldridge/NVTabular | tests/unit/test_s3.py | <gh_stars>0
#
# Copyright (c) 2020, NVIDIA 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 la... |
sn0b4ll/Incident-Playbook | Incident-Response/Tools/TheHive/frontend/app/scripts/filters/tag-value.js | <reponame>sn0b4ll/Incident-Playbook<gh_stars>1-10
(function() {
'use strict';
angular.module('theHiveFilters').filter('tagValue', function () {
return function (tag) {
if (!tag) {
return '';
}
return _.without([
tag.namespace,
... |
cedar-framework/cedar | examples/basic-3d-ser/periodic.cc | <filename>examples/basic-3d-ser/periodic.cc<gh_stars>1-10
#include <math.h>
#include <memory>
#include <array>
#include <iostream>
#include <cedar/types.h>
#include <cedar/3d/gallery.h>
#include <cedar/3d/solver.h>
using namespace cedar;
using namespace cedar::cdr3;
static stencil_op<seven_pt> create_op(len_t nx, le... |
GaloisInc/hacrypto | src/C/Security-57031.40.6/SecurityTests/clxutils/rootStoreTool/rootUtils.cpp | /*
* rootUtils.cpp - utility routines for rootStoreTool
*/
#include <stdlib.h>
#include <strings.h>
#include <stdio.h>
#include <unistd.h>
#include "rootUtils.h"
#include <Security/SecCertificatePriv.h>
#include <Security/SecBasePriv.h>
#include <Security/SecTrustSettings.h>
#include <Security/TrustSettingsSchema.h... |
Satily/leetcode_python_solution | solutions/solution313.py | <filename>solutions/solution313.py
class Solution:
def nthSuperUglyNumber(self, n, primes):
"""
:type n: int
:type primes: List[int]
:rtype: int
"""
indices = [0] * len(primes)
ugly_numbers = [1]
next_numbers = primes.copy()
for _ in range(n):
... |
Banno/sbt-plantuml-plugin | src/main/java/net/sourceforge/plantuml/skin/rose/ComponentRoseParticipant.java | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, <NAME>
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
*
* Li... |
woodrow/pyoac | lib-python/modified-2.5.2/encodings/ascii.py | <reponame>woodrow/pyoac
""" Python 'ascii' Codec
Written by <NAME> (<EMAIL>).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
import codecs
### Codec APIs
class Codec(codecs.Codec):
# Note: Binding these as C functions will result in the class not
# converting them to methods. This is intended.... |
studiobee/JUCE6-Svalbard-Fork | examples/GUI/CodeEditorDemo.h | <gh_stars>1000+
/*
==============================================================================
This file is part of the JUCE examples.
Copyright (c) 2020 - Raw Material Software Limited
The code included in this file is provided under the terms of the ISC license
http://www.isc.org/downloads/s... |
xiaoping-yang/ms2pip_c | ms2pip/ms2pip_tools/spectrum_output.py | <reponame>xiaoping-yang/ms2pip_c<filename>ms2pip/ms2pip_tools/spectrum_output.py<gh_stars>0
"""
Write spectrum files from MS2PIP predictions.
"""
# Standard library
import os
import logging
from ast import literal_eval
from io import StringIO
from operator import itemgetter
from time import localtime, strftime
from fu... |
CoolElvis/white_noise | lib/noise/rate_limit_error.rb | # frozen_string_literal: true
require 'noise/public_error'
require 'noise/rate_limit_error_responder'
module Noise
# Rate limit error.
#
class RateLimitError < PublicError
attr_reader :retry_after
# @param code [Symbol]
# @param [String] retry_after
#
def initialize(code, retry_after:)
... |
knokko/custom-items-gradle | plug-in/src/main/java/nl/knokko/customitems/plugin/set/item/CustomShears.java | package nl.knokko.customitems.plugin.set.item;
import java.util.Collection;
import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import nl.knokko.customitems.effect.EquippedPotionEffect;
import nl.knokko.customitems.effect.PotionEffect;
import nl.knokko.customitems.item.Attr... |
georkost4/WeatherFarm | app/src/main/java/com/dsktp/sora/weatherfarm/utils/AppUtils.java | package com.dsktp.sora.weatherfarm.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.location.Location;
import android.preference.PreferenceManager;
import android.util.Log;
import com.google.android.gms.location.places.Place;
import static com.dsktp.sora.weatherfarm.uti... |
mkinsner/llvm | clang/test/Sema/builtins-memcpy-inline.cpp | // RUN: %clang_cc1 -fsyntax-only -verify %s
#define NULL ((char *)0)
#if __has_builtin(__builtin_memcpy_inline)
#warning defined as expected
// expected-warning@-1 {{defined as expected}}
#endif
void test_memcpy_inline_null_src(void *ptr) {
__builtin_memcpy_inline(ptr, NULL, 4); // expected-warning {{null passed t... |
yihongmingfeng/OrderingS | OrderingS/CSCDCouponTimeLimitPanel.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "UIView.h"
#import "CSCountDownPanelDelegate.h"
@class BaseBizVc, CSCDLimitRangePanel, CSCountDownPanel, CSHtmLabel, CouponInfoData, NSObject<CSCDCouponTimeLimitPanelDelegate>, ... |
Sumitkk10/USACO-submissions | 2015/February/Silver/Superbull.cpp | #include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define ll long long int
#define ld long double
using namespace std;
const int N = 1e6 + 5;
const int MOD = 1e9 + 7;
int n, a[N], component[N];
vector<pair<ll, pair<int, int> > > edges;
int find(int x){
while(true){
... |
RobotLocomotion/drake-python3.7 | examples/acrobot/test/acrobot_geometry_test.cc | <filename>examples/acrobot/test/acrobot_geometry_test.cc<gh_stars>1-10
#include "drake/examples/acrobot/acrobot_geometry.h"
#include <gtest/gtest.h>
#include "drake/examples/acrobot/acrobot_plant.h"
#include "drake/geometry/scene_graph.h"
#include "drake/systems/framework/diagram_builder.h"
namespace drake {
namespa... |
Ovlic/cowsay_py | cowsay/lib/cows/vader_koala.py | def Vader_koala(thoughts, eyes, eye, tongue):
return f"""
{thoughts}
{thoughts} .
.---. //
Y|{eye} {eye}|Y//
/_(i=i)K/
~()~*~()~
(_)-(_)
Darth
Vader
koala
""" |
HotMoka/hotmoka | io-hotmoka-crypto/src/main/java/io/hotmoka/crypto/internal/AbstractSignatureAlgorithm.java | <gh_stars>1-10
/*
Copyright 2021 <NAME>
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, so... |
sohaniwso2/carbon-registry-1 | components/registry/org.wso2.carbon.registry.social.impl/src/main/java/org/wso2/carbon/registry/social/impl/appdata/AppDataManagerImpl.java | /*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) 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
*
* ... |
sistanlp/twitter4food | src/test/scala/org/clulab/twitter4food/TestAnalyzeResults.scala | package org.clulab.twitter4food
class LabelCount {
var humans = 0
var orgs = 0
var unknowns = 0
def +=(b: LabelCount): LabelCount = {
this.humans += b.humans
this.orgs += b.orgs
this.unknowns += b.unknowns
this
}
def total = humans + orgs + unknowns
}
object TestAnalyzeResults {
... |
isabella232/modite-adventure | src/GameState/player/GPlayer.cpp | #include "Game.h"
#include <GameState/status/GStatProcess.h>
#include "GPlayer.h"
#include "Items.h"
TUint32 GPlayer::mLevel;
TUint32 GPlayer::mNextLevel;
TUint32 GPlayer::mExperience;
TInt16 GPlayer::mHitPoints;
TInt16 GPlayer::mMaxHitPoints;
TBool GPlayer::mInvulnerable;
TInt GPlayer::mAttackStrength;
TInt32 GPlaye... |
dornerworks/camkes | apps/epit/components/Driver/src/driver.c | /*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
pborbas/commando | commando-remote/src/main/java/org/commando/remote/dispatcher/filter/circuit/CircuitBreakerState.java | <filename>commando-remote/src/main/java/org/commando/remote/dispatcher/filter/circuit/CircuitBreakerState.java<gh_stars>0
package org.commando.remote.dispatcher.filter.circuit;
public enum CircuitBreakerState {
CLOSED, OPEN, HALF_OPEN;
}
|
ymaxgit/odp | platform/linux-generic/include/odp/api/sync.h | <reponame>ymaxgit/odp
/* Copyright (c) 2013, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* ODP synchronisation
*/
#ifndef ODP_PLAT_SYNC_H_
#define ODP_PLAT_SYNC_H_
#ifdef __cplusplus
extern "C" {
#endif
/** @ingroup odp_barrier
* @{
*/
#include <o... |
oguzhand95/cerbos | internal/audit/conf_test.go | // Copyright 2021-2022 Zenauth Ltd.
// SPDX-License-Identifier: Apache-2.0
package audit_test
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/cerbos/cerbos/internal/audit"
"github.com/cerbos/cerbos/internal/config"
)
func TestLenientConfigLoad(t *testing.T) {
conf := map[string]any{
"au... |
Fei-Lu/JavaSchool | src/xuebo/PersonDemo.java | <reponame>Fei-Lu/JavaSchool
/*
* 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 xuebo;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
im... |
mmore500/dishtiny | include/dish2/peripheral/readable_state/introspective_state/raw_introspective_state/PhylogeneticRootView.hpp | #pragma once
#ifndef DISH2_PERIPHERAL_READABLE_STATE_INTROSPECTIVE_STATE_RAW_INTROSPECTIVE_STATE_PHYLOGENETICROOTVIEW_HPP_INCLUDE
#define DISH2_PERIPHERAL_READABLE_STATE_INTROSPECTIVE_STATE_RAW_INTROSPECTIVE_STATE_PHYLOGENETICROOTVIEW_HPP_INCLUDE
#include "../../../../../../third-party/conduit/include/uitsl/datastruct... |
mdejean/goodservice-v2 | app/workers/route_processor_worker.rb | <gh_stars>1-10
class RouteProcessorWorker
include Sidekiq::Worker
sidekiq_options retry: false, queue: 'default'
def perform(route_id, timestamp)
marshaled_trips = RedisStore.route_trips(route_id, timestamp)
trips = Marshal.load(marshaled_trips) if marshaled_trips
if !trips
raise "Error: Trips... |
Hivemapper/HM-colony-draco | point_cloud/point_cloud.h | // Copyright 2016 The Draco Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
holajiawei/js-ipfs | packages/ipfs-message-port-client/test/interface.core.js | /* eslint-env mocha, browser */
'use strict'
const { createSuite } = require('interface-ipfs-core/src/utils/suite')
exports.core = createSuite({
add: require('interface-ipfs-core/src/add'),
cat: require('interface-ipfs-core/src/cat')
})
|
istudko/pie | functions/filter_not.go | <filename>functions/filter_not.go
package functions
// FilterNot works the same as Filter, with a negated condition. That is, it will
// return a new slice only containing the elements that returned false from the
// condition. The returned slice may contain zero elements (nil).
func (ss SliceType) FilterNot(condition... |
yannzido/new | src/proxy/src/test/java/ee/ria/xroad/proxy/testsuite/testcases/CDATAMessage.java | /**
* The MIT License
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Estonian Information System Authority (RIA), Population Register Centre (VRK)
*
* Permission is hereby grante... |
xiaozhu36/alibaba-cloud-sdk-go | services/democenter/describe_demo_access_token.go | package democenter
//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
//di... |
mghgroup/Glide-Browser | content/browser/accessibility/browser_accessibility_state_impl.h | <gh_stars>0
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_
#define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STAT... |
jasonTangxd/clockwork | clockwork-common/src/main/java/com/creditease/adx/clockwork/common/entity/RelationFatherChildren.java | package com.creditease.adx.clockwork.common.entity;
/**
* @ Author :XuanDongTang
* @ Date :Created in 下午7:51 2020/12/6
* @ Description:
* @ Modified By:
*/
public class RelationFatherChildren {
private Integer fatherTaskId;
private String taskIds;
public Integer getFatherTaskId() {
... |
OfficeGlobal/msgraph-sdk-java | src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequest.java | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
feiwu7457/jipaipai | xcxzhibozujian/pages/wxpay/wxpay.js | <gh_stars>0
// pages/wxpay/wxpay.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
//页面加载调取微信支付(原则上应该对options的携带的参数进行校验)
that.requestPayment(options);
},
//根据 obj 的参数请求wx 支付
requestPayment: function (obj) {
//co... |
businesscode/BCD-UI | Server/src/main/java/de/businesscode/bcdui/web/wrs/ExportServlet.java | <reponame>businesscode/BCD-UI<gh_stars>0
/*
Copyright 2010-2019 BusinessCode GmbH, 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
Un... |
Justineo/vue-awesome-material | icons/local_library_two_tone.js | import Icon from 'vue-awesome/components/Icon'
Icon.register({
local_library_two_tone: {
raw: '<path fill="none" d="M0 0h24v24H0V0z"/><path opacity=".3" d="M19 17.13v-6.95c-2.1.38-4.05 1.35-5.64 2.83L12 14.28l-1.36-1.27A11.18 11.18 0 005 10.18v6.95c2.53.34 4.94 1.3 7 2.83 2.07-1.52 4.47-2.49 7-2.83z"/><circle op... |
Codernob/problem-solving-codes | code/uva/10370.cpp | <gh_stars>0
#include <iostream>
using namespace std;
int main() {
int i,j,t,n,sum,aa,a[1000];
double avg;
cin>>t;
for(i=1;i<=t;i++) {
cin>>n;
sum=0;
for(j=0;j<n;j++) { cin>>a[j]; sum=sum+a[j]; }
avg=((double)sum)/n;
aa=0;
for(j=0;j<n;j++) {
if(a[j]>avg) aa++;
}
printf("%.3lf%%\n",((double)aa/n)*100.0);
}
return ... |
zqn1996-alan/talkback | utils/src/main/java/com/google/android/accessibility/utils/StringBuilderUtils.java | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
ronaldoWang/myjww | jww-ump/jww-ump-server/src/main/java/com/jww/ump/server/controller/SysRoleController.java | <reponame>ronaldoWang/myjww
package com.jww.ump.server.controller;
import com.jww.common.core.Constants;
import com.jww.common.core.exception.BusinessException;
import com.jww.common.core.model.PageModel;
import com.jww.common.web.BaseController;
import com.jww.common.web.model.ResultModel;
import com.jww.common.web.u... |
aniwange33/lamisplus-main | src/main/webapp/reducers/userReducer.js | import * as USERTYPES from '../actions/types'
const userReducer = (state = { list:[] ,status: 0, user: {} }, action) => {
switch(action.type){
case USERTYPES.FETCH_USERS:
return {...state, user:action.payload}
case USERTYPES.REGISTER_REQUEST:
return { ...state, status: act... |
kovitikus/hecate | characters/inventory_handler.py | <filename>characters/inventory_handler.py
from evennia.utils.evtable import EvTable
from misc import coin
class InventoryHandler():
def __init__(self, owner):
self.owner = owner
self.inventory_contents = owner.contents
self.hands_desc = owner.db.hands_desc
def get_object(self, obj, c... |
hmuhtetpaing/keybase | shared/wallets/send-form/participants/container.js | <filename>shared/wallets/send-form/participants/container.js
// @flow
import Participants from '.'
import * as RouteTree from '../../../actions/route-tree'
import * as SearchGen from '../../../actions/search-gen'
import * as WalletsGen from '../../../actions/wallets-gen'
import * as TrackerGen from '../../../actions/tr... |
projectPiki/pikmin2 | src/Dolphin/NMWException.cp |
/*
* --INFO--
* Address: ........
* Size: 0000BC
*/
void __destroy_new_array3(void)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 000080
*/
void __destroy_new_array2(void)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 800C1748
* Size: 00007C
*/
void __destroy_new_array(void)
{
/*
... |
philippzhang/leetcodeLearnJava | src/main/java/com/learn/java/leetcode/lc0233/Solution.java | <reponame>philippzhang/leetcodeLearnJava
package com.learn.java.leetcode.lc0233;
public class Solution {
/**
《编程之美》上这样说:
设N = abcde ,其中abcde分别为十进制中各位上的数字。
如果要计算百位上1出现的次数,它要受到3方面的影响:百位上的数字,百位以下(低位)的数字,百位以上(高位)的数字。
如果百位上数字为0,百位上可能出现1的次数由更高位决定。比如:12013,则可以知道百位出现1的情况可能是:
100~199,1100~1199,2100~2199,,... |
bluebackblue/brownie | source/project_test/common/common_sound_streamcallback.h | #pragma once
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief コモン。ストリーミング再生。
*/
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#includ... |
bjhanfeng/qpid-jms-amqp-0-x | client/src/main/java/org/apache/qpid/transport/SessionHeader.java | package org.apache.qpid.transport;
/*
*
* 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... |
PuQian/WebRTC | common-utils/src/test/java/com/free4lab/utils/account/AccountUtilTest.java | package com.free4lab.utils.account;
public class AccountUtilTest {
public static void main(String[] args){
String accessToken = "deb71e9d5e23488b941134507cb450ae";
String result = AccountUtil.getAccessTokenInfo(accessToken);
System.out.println(result);
}
}
|
shiva92/Contests | Topcoder/Solved/LastDigit.cpp | #include <vector>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define pii pair<int, int>
#define mp make_pair
#define ll long long
using namespace std;
class LastDigit {
public:
long long f(lo... |
brendandburns/c | kubernetes/model/v1beta2_scale.h | /*
* v1beta2_scale.h
*
* Scale represents a scaling request for a resource.
*/
#ifndef _v1beta2_scale_H_
#define _v1beta2_scale_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "v1_object_meta.h"
#include "v1beta2_scale_spec.h"
#inclu... |
acidburn0zzz/llvm-project | libcxx/test/std/strings/string.view/string.view.template/contains.string_view.pass.cpp | <gh_stars>10-100
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------... |
m-nakagawa/sample | jena-3.0.1/jena-arq/src/main/java/org/apache/jena/riot/lang/TriX.java | <gh_stars>0
/**
* 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
* "Li... |
JRedOW/Minestom | src/autogenerated/java/net/minestom/server/potion/PotionType.java | package net.minestom.server.potion;
import net.kyori.adventure.key.Key;
import net.kyori.adventure.key.Keyed;
import net.minestom.server.registry.Registries;
import net.minestom.server.utils.NamespaceID;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* AUTOGENERATED by Potio... |
gausie/core-js | tests/tests/es.string.small.js | <reponame>gausie/core-js
QUnit.test('String#small', assert => {
const { small } = String.prototype;
assert.isFunction(small);
assert.arity(small, 0);
assert.name(small, 'small');
assert.looksNative(small);
assert.nonEnumerable(String.prototype, 'small');
assert.same('a'.small(), '<small>a</small>', 'lower... |
smart-cow/scow | cow-ac/cow-ac-client/src/org/wiredwidgets/cow/ac/client/utils/TaskListCellRenderer.java | <reponame>smart-cow/scow
package org.wiredwidgets.cow.ac.client.utils;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JCheckBox;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JList;... |
ppartarr/azure-sdk-for-java | sdk/sql/mgmt-v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerTableAuditingPolicyInner.java | <filename>sdk/sql/mgmt-v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerTableAuditingPolicyInner.java
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Cod... |
zthang/code2vec_treelstm | raw_dataset/59862146@solve@OK.java | public void solve(int testNumber, InputReader in, OutputWriter out) {
int n = in.nextInt();
int m = in.nextInt();
int[][] mat = new int[n - 1][3];
int i;
for (i = 0; i < n - 1; i++) {
mat[i][0] = in.nextInt();
mat[i][1] = in.nextInt();
mat[i][2] = in.nextInt();
}
Arra... |
rlugojr/goojs | test/unit/addons/physicspack/colliders/MeshCollider-test.js | <gh_stars>1000+
describe('MeshCollider', function () {
var MeshCollider = require('../../../../../src/goo/addons/physicspack/colliders/MeshCollider');
var Vector3 = require('../../../../../src/goo/math/Vector3');
var Sphere = require('../../../../../src/goo/shapes/Sphere');
var Transform = require('../../../../../... |
JayCGildea/DMDA | src/main/java/uk/co/fivium/dmda/server/SMTPStart.java | <gh_stars>1-10
package uk.co.fivium.dmda.server;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import uk.co.fivium.dmda.antivirus.AVScannerFactory;
import uk.co.fivium.dmda.databaseconnection.DatabaseConnectionException;
import uk.co.fivium.dmda.databaseconnection.DatabaseConnectionHandler... |
prckent/qmcpack | src/QMCWaveFunctions/Jastrow/eeI_JastrowBuilder.cpp | <reponame>prckent/qmcpack
//////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 <NAME> and QMCPACK developers.
//
// File dev... |
mengxy/swc | crates/swc_ecma_minifier/tests/terser/compress/loops/issue_1648/input.js | <reponame>mengxy/swc
function f() {
x();
var b = 1;
while (1);
}
|
dillondow24/SleepApp | server/node_modules/@aws/dynamodb-batch-iterator/build/BatchGet.js | <filename>server/node_modules/@aws/dynamodb-batch-iterator/build/BatchGet.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var BatchOperation_1 = require("./BatchOperation");
exports.MAX_READ_BATCH_SIZE = 100;
/**
* Retrieves items from DynamoDB in batches... |
doutriaux1/ocgis | src/ocgis/test/fragments/test_process_manager.py | import unittest
import time
from multiprocessing import Pool
import numpy as np
import itertools
def iter_proc_args():
for ii in range(0,10):
yield(ii)
def operation(ii):
time.sleep(np.random.randint(0,3))
return(ii*2)
class SubsetOperation(object):
def __init__(self,it... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.