repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
albertwo1978/atst | tests/utils/test_logging.py | <gh_stars>1-10
from io import StringIO
import json
import logging
from uuid import uuid4
from unittest.mock import Mock
import pytest
from atst.utils.logging import JsonFormatter, RequestContextFilter
from tests.factories import UserFactory
@pytest.fixture
def log_stream():
return StringIO()
@pytest.fixture
... |
cesar-lp/hulk-store | backend/src/main/java/com/herostore/products/utils/ValidationUtils.java | package com.herostore.products.utils;
import java.math.BigDecimal;
public class ValidationUtils {
private ValidationUtils() {
}
public static void checkNotNullNorNegative(BigDecimal value, String errorMessage) {
if (value == null || value.compareTo(BigDecimal.ZERO) < 0) {
throw new I... |
AlSpinks/deephaven-core | open-api/lang-tools/src/main/java/io/deephaven/lang/completion/results/CompleteTableName.java | <filename>open-api/lang-tools/src/main/java/io/deephaven/lang/completion/results/CompleteTableName.java
package io.deephaven.lang.completion.results;
import io.deephaven.lang.completion.ChunkerCompleter;
import io.deephaven.lang.completion.CompletionRequest;
import io.deephaven.lang.generated.*;
import io.deephaven.pr... |
agnees/mirs | src/main/java/com/kevin/mirs/web/ScoreController.java | package com.kevin.mirs.web;
import com.kevin.mirs.dto.MIRSResult;
import com.kevin.mirs.entity.Score;
import com.kevin.mirs.service.ScoreService;
import com.kevin.mirs.service.UserService;
import com.kevin.mirs.vo.UserMovieScore;
import com.wordnik.swagger.annotations.ApiOperation;
import org.springframework.beans.fac... |
lechium/iOS1351Headers | System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NTKCircularSmallStackTextComplicationView.h | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:23:28 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/NanoTim... |
LCClyde/nyra | modules/emu.nes/source/Cartridge.cpp | /*
* Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, dis... |
qingwen220/incubator-eagle | eagle-core/eagle-alert-parent/eagle-alert-app/src/main/java/org/apache/eagle/alert/app/AlertUnitTopologyApp.java | <reponame>qingwen220/incubator-eagle<gh_stars>100-1000
/*
* 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 A... |
Ascend/pytorch | test/test_npu/test_network_ops/test_uniform_.py | <gh_stars>1-10
# Copyright (c) 2020, Huawei Technologies.All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by... |
niuware/instpector | instpector/apis/instagram/base_api.py | import json
from time import sleep
from ..http_request import HttpRequest
from ..exceptions import ParseDataException
class BaseApi(HttpRequest):
def get(self, url_path, **options):
response = super().get(url_path, **options)
if not response:
return None
# Retry just once when r... |
r-korchagin/hackerrankJS | JumpingOnTheClouds.js | "use strict";
// hackerrank question
// Jumping on the Clouds
function jumpingOnClouds(c) {
let jumpCount = 0;
for ( let i=0; i<c.length; ){
if (c[i+1] === 0 && c[i+2] === 0) {i+=2; jumpCount++;}
else if (c[i+1] === 1 && c[i+2] === 0) {i+=2; jumpCount++;}
else if (c[i+1] === 0) {i++; jump... |
synthetos/FabMo-Engine | config/index.js | var Config = require('./config').Config;
var async = require('async');
var EngineConfig = require('./engine_config').EngineConfig;
var G2Config = require('./g2_config').G2Config;
var OpenSBPConfig = require('./opensbp_config').OpenSBPConfig;
var MachineConfig = require('./machine_config').MachineConfig;
var DashboardCo... |
ArticulatedSocialAgentsPlatform/HmiCore | HmiXml/src/hmi/xml/XMLAttributeMap.java | /*******************************************************************************
* Copyright (C) 2009-2020 Human Media Interaction, University of Twente, the Netherlands
*
* This file is part of the Articulated Social Agents Platform BML realizer (ASAPRealizer).
*
* ASAPRealizer is free software: you can redi... |
chenjinsongcjs/mall | mall-content/src/main/java/com/xyz/mall/content/dao/MemberReportDao.java | package com.xyz.mall.content.dao;
import com.xyz.mall.content.entity.MemberReportEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户举报表
*
* @author cjsstart
* @email <EMAIL>
* @date 2021-09-24 00:54:52
*/
@Mapper
public interface MemberReportDao... |
marcog83/RoboJS | src/display/DomWatcher.js | <gh_stars>100-1000
import {Signal} from "../events/Signal";
import flatten from "../internal/_flatten";
import unique from "../internal/_unique";
export class DomWatcher {
constructor(root, handler) {
this.onAdded = new Signal();
this.onRemoved = new Signal();
this.root = root;
... |
hollismaynell/cloudPhoto-front | src/routes/node/nodeInfo/addMenu.modal.js | <reponame>hollismaynell/cloudPhoto-front
import React from 'react'
import PropTypes from 'prop-types'
import { Modal, Form, Input, Select, InputNumber } from 'antd'
import './index.less'
import { menuActive } from '../../../utils/selectData'
import { FormattedMessage } from 'react-intl'
const FormItem = Form.Item
cons... |
disism/hvxahv-platform | internal/accounts/auth_test.go | <reponame>disism/hvxahv-platform
package accounts
import (
"fmt"
"log"
"testing"
)
func TestAccounts_Login(t *testing.T) {
TestInitDB(t)
a := NewAuth("<EMAIL>", "Hvxahv123")
login, err := a.Login()
if err != nil {
log.Println(err)
return
}
fmt.Println(login)
}
|
WPISmartmouse/smartmouse-simulator | src/core/include/core/maze.h | /** maze.h
* \brief Contains functions for creating and using the AbstractMaze and Node structs
*/
#pragma once
#include <functional>
#include <stdio.h>
#include <sstream>
#include <tuple>
#include <vector>
#ifndef ARDUINO
#include <fstream>
#endif
#include "maze_index.h"
#include "sensor_reading.h"
#include "no... |
edlectrico/android-jfact | src/uk/ac/manchester/cs/jfact/kernel/SimpleRule.java | <reponame>edlectrico/android-jfact
package uk.ac.manchester.cs.jfact.kernel;
import static uk.ac.manchester.cs.jfact.helpers.Helper.*;
import java.util.ArrayList;
import java.util.List;
import uk.ac.manchester.cs.jfact.helpers.DLTree;
import conformance.Original;
import conformance.PortedFrom;
/** class for simple ... |
spocky/landrush | test/landrush/cap/host/windows/configure_visibility_on_host_test.rb | <filename>test/landrush/cap/host/windows/configure_visibility_on_host_test.rb<gh_stars>100-1000
require_relative '../../../../test_helper'
TEST_IP = '10.42.42.42'.freeze
DOT_3_SVC_RUNNING = 'SERVICE_NAME: dot3svc
TYPE : 30 WIN32
STATE : 4 RUNNING
... |
mgijax/concordion_mgi | src/main/java/org/concordion/api/extension/Extensions.java | package org.concordion.api.extension;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines a list of classes to be added to Concordion as extensio... |
tterem/Resteasy | testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/xxe/resource/ExternalParameterEntityResource.java | package org.jboss.resteasy.test.xxe.resource;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
@Path("")
public class ExternalParameterEntityResource {
@POST
@Path("test")
@Consumes(MediaType.APPLICATION_XML)
public String post(ExternalP... |
Df458/dfgame | src/application/input_id.h | <reponame>Df458/dfgame<filename>src/application/input_id.h
#ifndef GAMEPLAY_INPUT_ID_H
#define GAMEPLAY_INPUT_ID_H
typedef enum key_id {
// TODO: DFGame Keys
K_INVALID = -1,
K_SPACE,
K_APOSTROPHE,
K_COMMA,
K_MINUS,
K_PERIOD,
K_FORWARD_SLASH,
K_0,
K_1,
K_2,
K_3,
K_4,
... |
chengtao511322/drive-cloud-master | drive-cloud-modules/drive-cloud-admin/drive-cloud-admin-service/src/main/java/com/drive/admin/mapper/WalletSettlementDetailMapper.java | <gh_stars>0
package com.drive.admin.mapper;
import com.drive.admin.pojo.entity.WalletSettlementDetailEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author chentao
*/
public interface WalletSettlementDetailMapper extends BaseMapper<WalletSettlementDetailEntity> {
}
|
stas-vilchik/bdd-ml | data/1190.js | <gh_stars>0
{
var _ref = babelHelpers.asyncToGenerator(function*(bar) {});
return function foo(_x) {
return _ref.apply(this, arguments);
};
}
|
healtheloper/JS-Array-Challenge | Challenge/dongjay00/forEachReduce/solve.js | const inputArray = [100, 10, 20, 40];
// write your codes
let sum = 0;
inputArray.forEach(res => sum += res);
console.log(sum);
|
racz16/Windmill-Game-Engine | windmill/src/interface/window/input/gamepad_axis.h | #pragma once
namespace wm {
static const int32_t GAMEPAD_AXIS_COUNT = 6;
enum class gamepad_axis {
axis_left_x = 0,
axis_left_y = 1,
axis_right_x = 2,
axis_right_y = 3,
axis_left_trigger = 4,
axis_right_trigger = 5,
};
}
|
uk-gov-mirror/ministryofjustice.Claim-for-Crown-Court-Defence | spec/services/s3_zip_downloader_spec.rb | <filename>spec/services/s3_zip_downloader_spec.rb
require 'rails_helper'
RSpec.describe S3ZipDownloader do
let(:s3_zip_downloader) { described_class.new(claim) }
let(:claim) { create :claim }
before { create :document, :verified, claim: claim }
describe '#generate!' do
subject(:generated_file) { s3_zip_d... |
sphairas/sphairas-desktop | sphairas-messenger/remote-ui/src/org/thespheres/acer/remote/ui/util/IOUtil.java | <reponame>sphairas/sphairas-desktop
/*
* 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 org.thespheres.acer.remote.ui.util;
import java.awt.event.ActionEvent;
import java.awt.eve... |
hnnwb/spring-boot-practice | practice-log-aop/src/main/java/com/practice/logaop/PracticeLogAopApplication.java | <filename>practice-log-aop/src/main/java/com/practice/logaop/PracticeLogAopApplication.java
package com.practice.logaop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PracticeLogAopApplication {
public s... |
globusgenomics/galaxy | tools/atlas2/atlas2-code-195-trunk/utils/copy_sample_entry.rb | <filename>tools/atlas2/atlas2-code-195-trunk/utils/copy_sample_entry.rb
#!/usr/bin/ruby
#merge 2 VCF files giving the first priority with all conflicts (however it will always keep the GL if one of them has a nil GL)
$:.unshift File.join(File.dirname(__FILE__),'.')
require 'vcf_line'
if(ARGV.length < 2)
puts "USAGE: ... |
CommandPost/FinalCutProFrameworks | Headers/Frameworks/ProAppsFxSupport/_PAEFTColorWheelArcLayer.h | <filename>Headers/Frameworks/ProAppsFxSupport/_PAEFTColorWheelArcLayer.h<gh_stars>1-10
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <QuartzCore/CAMetalLayer.h>
@class _PAEFTColorWheelArcMarkerLayer, _PAEFTColorWheelArcV... |
ksss/language_server-protocol-ruby | lib/language_server/protocol/interface/definition_client_capabilities.rb | module LanguageServer
module Protocol
module Interface
class DefinitionClientCapabilities
def initialize(dynamic_registration: nil, link_support: nil)
@attributes = {}
@attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration
@attributes[:linkSup... |
gesslar/shadowgate | d/player_houses/isaiah/rooms/istreed.c | //Coded by Diego//
#include <std.h>
#include "../isaiah.h"
inherit VAULT;
void set_rope(int rope);
int rope_present;
void create(){
::create();
set_terrain(NEW_MOUNTS);
set_travel(FRESH_BLAZE);
set_short("maple tree");
set_long(
"%^RESET%^%^ORANGE%^"+
"You see the hulking trunk of a ... |
Ding-Jun/react-redux-starter-kit | src/components/Cropper/Cropper.js | /**
* Created by admin on 2016/11/22.
*/
import React from 'react'
import $ from 'jquery'
import 'cropper'
import 'cropper/dist/cropper.css'
class Cropper extends React.Component{
constructor(props){
super(props);
// Operations usually carried out in componentWillMount go here
}
crop(){
... |
ModelWriter/AlloyInEcore | Source/eu.modelwriter.core.alloyinecore.ui/src/eu/modelwriter/core/alloyinecore/ui/editor/completion/provider/ModelSuggestionProvider.java | package eu.modelwriter.core.alloyinecore.ui.editor.completion.provider;
import java.util.HashSet;
import java.util.Set;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.eclip... |
kawarimidoll/milkman | milkman/src/main/java/milkman/ui/main/themes/TrumpThemePlugin.java | <gh_stars>100-1000
package milkman.ui.main.themes;
import milkman.ui.plugin.UiThemePlugin;
public class TrumpThemePlugin implements UiThemePlugin {
@Override
public String getName() {
return "Trump";
}
@Override
public String getMainCss() {
return "/themes/trump.css";
}
@Override
public String getCodeC... |
guonl/interview-tips | core-java/src/main/java/com/guonl/myenum/SimpleTest.java | <filename>core-java/src/main/java/com/guonl/myenum/SimpleTest.java
package com.guonl.myenum;
public class SimpleTest {
public static void main(String[] args) {
//name和ordinal
MyEnum test1=MyEnum.HOT;
System.out.println(test1);//HOT
System.out.println(test1.name());//HOT
System.out.println(test1.ordinal());/... |
bshp/midpoint | model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/engine/actions/CloseCaseAction.java | <reponame>bshp/midpoint
/*
* Copyright (c) 2010-2019 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.wf.impl.engine.actions;
import com.evolveum.midpoint.schema.constants.Sche... |
jonesholger/lbann | include/lbann/transforms/vision/color_jitter.hpp | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (<NAME>, et al.) listed in
// the CONTRIBUTORS file. <<EMAIL>>
//
// LL... |
Manu343726/Sprout | sprout/complex/pow.hpp | <filename>sprout/complex/pow.hpp
/*=============================================================================
Copyright (c) 2011-2015 <NAME>
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.... |
noahsherrill/force-riscv | py/base/TestUtils.py | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PR... |
shenhuaze/leetcode-python | code/largest_rectangle_in_histogram.py | <filename>code/largest_rectangle_in_histogram.py
"""
@author <NAME>
@date 2019-10-06
"""
def largest_rectangle_area(heights):
result = 0
for i in range(len(heights)):
if i < len(heights) - 1 and heights[i] <= heights[i + 1]:
continue
min_h = heights[i]
for j in reversed(ran... |
andre91998/Image_Processing | src/idct.py |
# coding: utf-8
# # Function idct
#
# ## Synopse
#
# Inverse Discrete Cossine Transform.
#
# - **g = idct(F)**
#
# - **g**:output: image after inverse dct transform (spatial domain).
# - **F**:input: input dct image (frequency domain).
# In[1]:
import numpy as np
def idct(F):
import ea979.src as ia
... |
samsilverman/MercuryMessaging | docs/html/search/searchdata.js | var indexSectionsWithContent =
{
0: "abcdefghijklmnoprstuvw",
1: "abcefhiklmrst",
2: "m",
3: "acdefghijlmnoprstuw",
4: "abcdefilmnoprstuvw",
5: "lmt",
6: "acdikmnoprtuv",
7: "mo",
8: "m"
};
var indexSectionNames =
{
0: "all",
1: "classes",
2: "namespaces",
3: "functions",
4: "variables",
... |
lhm7877/aws-sdk-java | aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/transform/TrialComponentMetricSummaryMarshaller.java | <reponame>lhm7877/aws-sdk-java
/*
* Copyright 2015-2020 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/ap... |
bopopescu/spark1.6-2 | core/target/java/org/apache/spark/scheduler/PoolSuite.java | package org.apache.spark.scheduler;
/**
* Tests that pools and the associated scheduling algorithms for FIFO and fair scheduling work
* correctly.
*/
public class PoolSuite extends org.apache.spark.SparkFunSuite implements org.apache.spark.LocalSparkContext {
public PoolSuite () { throw new RuntimeException(); ... |
ikabaev/map-core | src/vcs/vcm/util/dateTime.js | <gh_stars>1-10
/**
* @param {Date} date
* @param {string=} locale
* @returns {string}
*/
export function getShortLocaleDate(date, locale) {
// dateStyle is not within the standard yet
// @ts-ignore
return new Intl.DateTimeFormat(locale, { dateStyle: 'short' }).format(date);
}
/**
* @param {Date} date
* @pa... |
Maliarte/PrograminC | Strings/av1-gabarito-Q3.c | /********************************************************** Gabarito *******************************************************
Desenvolver uma função, em C, que, dada uma string s e dada uma posição p desta
string, crie duas novas strings: s1 com os caracteres de s das posições 0 a p-1;
e s2 com os caractere... |
pitchumani1989/worshipsongs-android | app/src/main/java/org/worshipsongs/dao/AbstractDao.java | <reponame>pitchumani1989/worshipsongs-android<gh_stars>0
package org.worshipsongs.dao;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import org.worshipsongs.helper.DatabaseHelper;
import java.io.IOException;
/**
* @Author : Madasamy
* @Version : 1.0
*/
public class AbstractDao
{
... |
lonerlin/SelfDrivingCVCar | jetson/examples/CarController_Group.py | # _*_coding:utf-8 _*_
# @Time :2020/6/1 0001 下午 10:30
# @Author : <NAME>
# @File :CarController_Group.py
# @Software :PyCharm
"""
本例演示了CarController中group方法的使用。CarcCntroller已经提供了基本的马达控制函数,在某些特定的情况下,
Carcontroller本身提供的基本控制方法无法满足用户的控制需求,group方法向用户提供了一个超级接口,用户可以创建
一个马达动作组合列表,向列表中添加一系列BaseControl对象,用于实... |
kangdengfeng/freeacs | web/src/main/java/com/github/freeacs/web/app/page/unittype/UnittypeCreateData.java | package com.github.freeacs.web.app.page.unittype;
import com.github.freeacs.web.app.input.Input;
import com.github.freeacs.web.app.input.InputData;
import java.util.Map;
public class UnittypeCreateData extends InputData {
/** The new description. */
private Input newDescription = Input.getStringInput("new_descri... |
Manny27nyc/azure-sdk-for-java | sdk/synapse/azure-analytics-synapse-accesscontrol/src/main/java/com/azure/analytics/synapse/accesscontrol/models/RequiredAction.java | <filename>sdk/synapse/azure-analytics-synapse-accesscontrol/src/main/java/com/azure/analytics/synapse/accesscontrol/models/RequiredAction.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.an... |
mtritschler/registry | storage/core/src/main/java/com/hortonworks/registries/storage/Storable.java | <gh_stars>0
/**
* Copyright 2016 Hortonworks.
*
* 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 ... |
Crossroads-Development/Essentials | src/main/java/com/Da_Technomancer/essentials/gui/ConstantCircuitScreen.java | package com.Da_Technomancer.essentials.gui;
import com.Da_Technomancer.essentials.gui.container.ConstantCircuitContainer;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.TranslatableComponent;
public class ConstantCircuitScreen extends... |
eriktrinh/cockroach | pkg/storage/storagepb/proposer_kv.pb.go | // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: storage/storagepb/proposer_kv.proto
package storagepb
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import cockroach_roachpb1 "github.com/cockroachdb/cockroach/pkg/roachpb"
import cockroach_roachpb "github.com/cockroachd... |
victoriamellany/consoares2 | blog/wp-content/themes/blocksy/static/js/options/options/ct-slider.js | <gh_stars>0
import {
createElement,
Component,
createRef,
Fragment,
} from '@wordpress/element'
import classnames from 'classnames'
import linearScale from 'simple-linear-scale'
import OutsideClickHandler from './react-outside-click-handler'
const clamp = (min, max, value) => Math.max(min, Math.min(max, value))
c... |
vinzenz/evipp | include/evipp/types/word.hpp | <reponame>vinzenz/evipp
#ifndef GUARD_EVIPP_TYPES_WORD_HPP_INCLUDED
#define GUARD_EVIPP_TYPES_WORD_HPP_INCLUDED
#include <evipp/types/uint16.hpp>
namespace evipp {
namespace types {
typedef uint16 word;
}}
#endif //GUARD_EVIPP_TYPES_WORD_HPP_INCLUDED
|
SchSeba/k8s-nativelb | pkg/nativelb-controller/grpc-manager/manager.go | <reponame>SchSeba/k8s-nativelb
/*
Copyright 2018 <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 ... |
syunkitada/go-app | pkg/resource/resource_controller/spec/genpkg/cmd.go | <reponame>syunkitada/go-app<gh_stars>0
// This code is auto generated.
// Don't modify this code.
package genpkg
import (
"github.com/syunkitada/goapp/pkg/base/base_spec_model"
)
var ApiQueryMap = map[string]map[string]base_spec_model.QueryModel{
"Auth": map[string]base_spec_model.QueryModel{
"Login": ba... |
lee9213/micro-services | spring-cloud-business-services/gmall-sso/src/main/java/com/lee9213/gmall/sso/utils/CookieUtil.java | <reponame>lee9213/micro-services
package com.lee9213.gmall.sso.utils;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CookieUtil {
pub... |
sanketsaurav/quilt | catalog/app/components/Markdown/index.js | <gh_stars>10-100
export default from './Markdown'
export * from './Markdown'
|
kubecube-io/kubecube-front | src/kubecube/services/cluster.js | // import axios from 'axios';
// import { userInterceptor } from './interceptor';
// const clusterService = axios.create({
// baseURL: '/api/v1/cube/clusters',
// timeout: 10000,
// });
// userInterceptor(clusterService);
// export async function getClusters(){
// return await clusterService.request({
// ... |
C14427818/CollegeYr1 | BCC55/Include/rtp.h | /*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
rtp.h
Abstract:
Header for RTP/RTCP Protocol.
--*/
#if !defined(_INC_RTP_H_)
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
#define _INC_RTP_H_
#define RTP_TYPE 2
#define RTP_VERSION RTP_TYPE
#define RTP_MAX_SDES ... |
laxika/daggers-and-sorcery | swords-zone-web/src/main/java/com/morethanheroic/swords/zone/view/controller/ZoneListOnLocationController.java | <filename>swords-zone-web/src/main/java/com/morethanheroic/swords/zone/view/controller/ZoneListOnLocationController.java
package com.morethanheroic.swords.zone.view.controller;
import com.morethanheroic.response.domain.Response;
import com.morethanheroic.swords.location.domain.Location;
import com.morethanheroic.sword... |
campfireman/abalone-verloop | abalone/src/model/gamelogic/MoveTest.java | package model.gamelogic;
import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import model.exceptions.IllegalMoveException;
import model.hex.Direction;
import model.hex.FractionalHex;
import model.... |
nafundi/jubilant-garbonzo | test/util/xlsform.js | <filename>test/util/xlsform.js
const appRoot = require('app-root-path');
const digest = require('digest-stream');
const Problem = require(appRoot + '/lib/util/problem');
const testData = require('../data/xml');
module.exports = (stream, fallback) => new Promise((resolve, reject) => {
stream.pipe(digest('sha1', 'hex'... |
fgirse/commodore3 | node_modules/@headlessui/react/dist/components/label/label.esm.js | import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
import React, { useMemo, useCallback, createContext, useState, useContext } from 'react';
import { render } from '../../utils/render.esm.js';
import { useIsoMorphicEffect } f... |
danielaborg/sequence | src/main/java/org/d2ab/iterator/Iterators.java | /*
* Copyright 2016 <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 wr... |
zerovl/ZeroVL | zerovl/models/backbones/mml/__init__.py | from .huggingface_builder import *
from .timm_builder import *
|
ha271923/leetcode | app/src/main/java/com/cspirat/GrayCode.java | <reponame>ha271923/leetcode
package com.cspirat;
import java.util.ArrayList;
import java.util.List;
/**
* Project Name : Leetcode
* Package Name : leetcode
* File Name : GrayCode
* Creator : Edward
* Date : Nov, 2017
* Description : 89. Gray Code
*/
public class GrayCode {
/**
* The gray code is a bin... |
Ocirama/lab-system | src/main/java/lt/ocirama/labsystem/repositories/local/TrayRepository.java | package lt.ocirama.labsystem.repositories.local;
import java.util.List;
import lt.ocirama.labsystem.model.entities.local.TrayWeightEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
public interface TrayRepository extends Repository<TrayWeightEntity, ... |
CorentG/Pokecube-Issues-and-Wiki | src/main/java/pokecube/mobs/moves/attacks/special/Attract.java | <filename>src/main/java/pokecube/mobs/moves/attacks/special/Attract.java
package pokecube.mobs.moves.attacks.special;
import pokecube.core.interfaces.pokemob.moves.MovePacket;
import pokecube.core.moves.templates.Move_Basic;
public class Attract extends Move_Basic
{
public Attract()
{
super("attract"... |
HaruMary/taucoinj-ipfs-demo | taucoinj-core/src/main/java/io/taucoin/rpc/server/full/method/tau_importprikey.java | package io.taucoin.rpc.server.full.method;
import com.thetransactioncompany.jsonrpc2.JSONRPC2Error;
import com.thetransactioncompany.jsonrpc2.JSONRPC2Request;
import com.thetransactioncompany.jsonrpc2.JSONRPC2Response;
import com.thetransactioncompany.jsonrpc2.server.MessageContext;
import io.taucoin.config.MainNetPar... |
ljhljh235/azure-sdk-for-java | azure-mgmt-resources/src/main/java/com/microsoft/azure/management/resources/implementation/PolicyAssignmentsImpl.java | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.resources.implementation;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.resources... |
liyong03/YLCleaner | YLCleaner/Xcode-RuntimeHeaders/IDEInterfaceBuilderKit/IBDocumentUnarchiverGroupMember.h | /*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.
*/
#import <IDEInterfaceBuilderKit/IBAbstractDocumentUnarchiverGroupMember.h>
@class IBDocumentUnarchiver, NSXMLElement;
@interface IBDocumentUnarchiverGroupMember : IBAbstractDocumentU... |
mat128/wicket | wicket-core/src/main/java/org/apache/wicket/page/XmlPartialPageUpdate.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 "License"); you may ... |
ics-unisg/nassy | dcap/src/main/java/com/dcap/rest/DataMsg.java | <filename>dcap/src/main/java/com/dcap/rest/DataMsg.java
package com.dcap.rest;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
/**
* The DataMessage, that is send to the client.
*
* @param <T> the type parameter
*
* @author... |
nedru004/LibraryAnalysis2 | bbmap/current/fileIO/QuickFile.java | package fileIO;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import shared.KillSwitch;
import shared.Shared;
import shared.Timer;
import shared.Tools;
import structures.ListNum;
/**
* Written for testing a NERSC slowdown in multithreaded file reading.
* T... |
overfullstack/book-my-book | core/src/main/java/com/gakshintala/bookmybook/domain/patron/PatronType.java | <filename>core/src/main/java/com/gakshintala/bookmybook/domain/patron/PatronType.java
package com.gakshintala.bookmybook.domain.patron;
import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.ToString;
@ToString
public enum PatronType {
RESEARCHER, REGULAR;
@JsonCreator
public static PatronTyp... |
zhangjie2012/qwerty-server | src/microblog/models.py | from django.db import models
class MicroBlog(models.Model):
cover_img = models.URLField(blank=True)
content = models.TextField(help_text='markdown')
publish_dt = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.content
class Meta:
verbose_name = 'MicroBlog'
... |
thecjharries/r-daily-programmer | easy/201-300/260/go/main.go | // 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 writi... |
opendatafit/sasview | src/sas/sasgui/guiframe/aboutbox.py | <filename>src/sas/sasgui/guiframe/aboutbox.py
#!/usr/bin/env python
########################################################################
#
# PDFgui by DANSE Diffraction group
# <NAME>
# (c) 2006 trustees of the Michigan State University.
# All rights ... |
marwac-9/labs | qt_ai_network/ai1_statemachine/code/Position.h | <reponame>marwac-9/labs
#pragma once
struct Position
{
int x = 0;
int y = 0;
void SetPosition(int posX, int posY) { x = posX; y = posY; }
void SetX(int posX) { x = posX; }
void SetY(int posY) { y = posY; }
}; |
paullewallencom/java-978-1-7888-3062-1 | _src/Chapter07/microservice/src/main/java/book/jeepatterns/microservice/resource/JAXRSConfiguration.java | <reponame>paullewallencom/java-978-1-7888-3062-1<filename>_src/Chapter07/microservice/src/main/java/book/jeepatterns/microservice/resource/JAXRSConfiguration.java
package book.jeepatterns.microservice.resource;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath ("ws")
public cla... |
anassawalha95/data-structures-and-algorithms | challenges/breadth-first-graph/AppTest.java | <reponame>anassawalha95/data-structures-and-algorithms
@Test
@Test
public void BFSTest(){
Graph graph = new Graph();
Vertex Pandora=graph.AddNode("Pandora");
Vertex Arendelle= graph.AddNode("Arendelle");
Vertex Metroville= graph.AddNode("Metroville");
Vertex M... |
xiayingfeng/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/SystemConfigurationsDAO.java | <filename>components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/SystemConfigurationsDAO.java<gh_stars>100-1000
/*
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "... |
anvode/scraper | client/src/App.test.js | import React from 'react';
import { render, cleanup } from '@testing-library/react';
import App from './App';
afterEach(cleanup);
describe('App', () => {
test('renders title', () => {
const { getByText } = render(<App />);
const title = getByText(/Web Scraper/i);
expect(title).toBeInTheDoc... |
npocmaka/Windows-Server-2003 | net/irda/irprops/irprops.cpp | <reponame>npocmaka/Windows-Server-2003
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1999
//
// File: irprops.cpp
//
//--------------------------------------------------------------------------
/... |
EnesMercan/PIC-MCU-Projects | PIC18-C-PROJECTS/LED Interface - PIC18F4520/Source Files/lcd_interface_PIC18F4520.X/lcd.c | <filename>PIC18-C-PROJECTS/LED Interface - PIC18F4520/Source Files/lcd_interface_PIC18F4520.X/lcd.c
/*
* File: lcd.c
* Author: enes
*
* Created on 17 October 2021, 16:53
*/
#include <xc.h>
#include "lcd.h"
#include "config.h"
/*
#define RS RD2
#define EN RD3
#define D4 RD4
#define D5 RD5
#define D6 RD6
... |
severell/severell | core/src/test/java/migrations/TestMigration.java | <gh_stars>10-100
package migrations;
public class TestMigration {
public static void up() {
}
public static void down() {
}
} |
tson1111/newspark | streaming/target/java/org/apache/spark/streaming/scheduler/UpdateReceiverRateLimit.java | package org.apache.spark.streaming.scheduler;
class UpdateReceiverRateLimit implements org.apache.spark.streaming.scheduler.ReceiverTrackerLocalMessage, scala.Product, scala.Serializable {
static public abstract boolean canEqual (Object that) ;
static public abstract boolean equals (Object that) ;
static pu... |
wycivil08/blendocv | source/blender/render/intern/include/raycounter.h | <filename>source/blender/render/intern/include/raycounter.h<gh_stars>10-100
/*
* $Id: raycounter.h 41078 2011-10-17 06:39:13Z campbellbarton $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ... |
jarifibrahim/ratel | client/src/actions/index.js | <filename>client/src/actions/index.js
// Copyright 2017-2018 <NAME>, Inc. and Contributors
//
// Licensed under the Dgraph Community License (the "License"); you
// may not use this file except in compliance with the License. You
// may obtain a copy of the License at
//
// https://github.com/dgraph-io/ratel/blob/m... |
hw233/home3 | core/server/project/commonBase/src/main/java/com/home/commonBase/data/system/ServerInfoData.java | <reponame>hw233/home3<filename>core/server/project/commonBase/src/main/java/com/home/commonBase/data/system/ServerInfoData.java
package com.home.commonBase.data.system;
import com.home.commonBase.constlist.generate.BaseDataType;
import com.home.shine.bytes.BytesReadStream;
import com.home.shine.bytes.BytesWriteStrea... |
yanyushr/fuchsia | sdk/lib/sys/cpp/testing/component_context_provider.cc | <filename>sdk/lib/sys/cpp/testing/component_context_provider.cc
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/sys/cpp/testing/component_context_provider.h>
#include <lib/fdio/directory.h... |
freder/PageBotExamples | More/E00_Publications/Magazines/TypeMagazine3/A_Firsts.py | <reponame>freder/PageBotExamples<filename>More/E00_Publications/Magazines/TypeMagazine3/A_Firsts.py<gh_stars>1-10
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
#
# P A G E B O T E X A M P L E S
#
# Copyright (c) 2017 <NAME> <https:... |
ScalablyTyped/SlinkyTyped | v/vso-node-api/src/main/scala/typingsSlinky/vsoNodeApi/galleryInterfacesMod/ExtensionPayload.scala | <filename>v/vso-node-api/src/main/scala/typingsSlinky/vsoNodeApi/galleryInterfacesMod/ExtensionPayload.scala
package typingsSlinky.vsoNodeApi.galleryInterfacesMod
import typingsSlinky.vsoNodeApi.anon.KeyValue
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.sca... |
ScalablyTyped/SlinkyTyped | a/activex-powerpoint/src/main/scala/typingsSlinky/activexPowerpoint/PowerPoint/ScaleEffect.scala | package typingsSlinky.activexPowerpoint.PowerPoint
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait ScaleEffect extends StObject {
val Application: typings... |
gitter-badger/android-accounting | app/src/main/java/com/mphj/accountry/interfaces/dialog/ReportSettingView.java | package com.mphj.accountry.interfaces.dialog;
import com.mphj.accountry.models.SimpleListModel;
import java.util.List;
/**
* Created by mphj on 11/20/17.
*/
public interface ReportSettingView {
void setAdapter(List<SimpleListModel> list);
}
|
channingwalton/typeclassopedia | src/main/scala/org/typeclassopedia/Copointed.scala | package org.typeclassopedia
import scala.Predef.implicitly
trait Copointed[F[_]] extends Functor[F] {
extension[A](f: F[A])
def extract: A
final def copoint: A = f.extract
final def copure: A = f.extract
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.