repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
microsoft/fugue | include/transaction/transaction-task.h | <filename>include/transaction/transaction-task.h
#ifndef TXSERVICE_TRANSACTION_TRANSACTION_TASK_H_
#define TXSERVICE_TRANSACTION_TRANSACTION_TASK_H_
#include "transaction/transaction-execution.h"
#include "transaction/transaction-request.h"
namespace txservice::transaction
{
class TransactionTask
{
public:
Transa... |
rayvburn/incare_people_sim | hubero_interfaces/include/hubero_interfaces/navigation_base.h | #pragma once
#include <hubero_common/defines.h>
#include <hubero_common/logger.h>
#include <hubero_common/typedefs.h>
#include <string>
#include <tuple>
namespace hubero {
/**
* @brief Creates interface class for algorithms that may provide navigation skills to the HuBeRo actors
*/
class NavigationBase {
public:
... |
theseushu/funong-web | app/modules/common/form/validations.js | import _isEmpty from 'lodash/isEmpty';
const distanceRegex = /^[1-9][0-9]{0,1}$/; // 1 - 99
const quantityRegex = /^[1-9][0-9]{0,4}$/; // 1 - 99999
const priceRegex = /^[0-9]{1,7}(\.[0-9]{1,2})?$/; // 0.01 - 9999999.99
const IDCardRegex = /(^\d{15}$)|(^\d{17}([0-9]|X|x)$)/;
export const required = (value) => { // lod... |
google-org/services-eligibility-calculator | client/testing/updateMockData.js | /**
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
ClausKlein/taox11 | tao/x11/typecodefactory/typecodefactory_adapter_impl.h | /**
* @file typecodefactory_adapter_impl.h
* @author <NAME>
*
* @brief CORBA C++11 typecodefactory library
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#ifndef TAOX11_TYPECODEFACTORY_ADAPTER_IMPL_H
#define TAOX11_TYPECODEFACTORY_ADAPTER_IMPL_H
#pragma once
#include "tao/x11/typecodefactory/taox... |
joshRpowell/cri | samples/sample_simple.rb | # frozen_string_literal: true
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
require 'cri'
command = Cri::Command.define do
name 'moo'
usage 'usage: moo [options]'
summary 'does stuff'
description <<~DESC
This command does a lot of stuff. I really mean a lot. Well actually I am
... |
mineLdiver/expressions | src/main/java/uk/co/benjiweber/expressions/function/SeptConsumer.java | <gh_stars>0
package uk.co.benjiweber.expressions.function;
public interface SeptConsumer<T, U, V, W, X, Y, Z> {
void accept(T t, U u, V v, W w, X x, Y y, Z z);
}
|
lechium/tvOS135Headers | System/Library/PrivateFrameworks/TVSystemMenuUI.framework/_TVSMHighContrastFocusView.h | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:44:46 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks/TVSystemMenuUI.framework/TVSystemMenuUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ... |
tangosource/drone | Godeps/_workspace/src/github.com/drone/go-github/github/contents.go | <reponame>tangosource/drone
package github
import (
"encoding/base64"
"fmt"
)
// These API methods let you retrieve the contents of files within a repository
// as Base64 encoded content.
type ContentResource struct {
client *Client
}
type Content struct {
Type string `json:"type"`
Name string `json:"na... |
sscit/rel | rel-lib/test/unittest/LexerTest.cpp | <reponame>sscit/rel
#include "gtest/gtest.h"
#include "rel-lib/src/Lexer.h"
class LexerTestFixture : public ::testing::Test, public Lexer {
protected:
LexerTestFixture() : Lexer(logger), lexer_test(logger) {}
void SetUp() override {
token_list = new std::list<Token>();
// logger.SetLogLevel... |
Polas/omim | routing/transit_info.hpp | <reponame>Polas/omim<gh_stars>1-10
#pragma once
#include "transit/transit_types.hpp"
#include "base/assert.hpp"
#include <memory>
#include <utility>
#include <vector>
namespace routing
{
class TransitInfo final
{
public:
enum class Type
{
Gate,
Edge,
Transfer
};
struct Edge
{
Edge() = def... |
grishkam/QuickFigures | QuickFigures/appMenus/popupMenusForComplexObjects/FigureOrganizingSuplierForPopup.java | <reponame>grishkam/QuickFigures
/*******************************************************************************
* Copyright (c) 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 o... |
npocmaka/Windows-Server-2003 | inetsrv/iis/utils/metautil/metaschm.cpp | <filename>inetsrv/iis/utils/metautil/metaschm.cpp
/*===================================================================
Microsoft Denali
Microsoft Confidential.
Copyright 1997 Microsoft Corporation. All Rights Reserved.
Component: MetaUtil object
File: MetaSchm.cpp
Owner: t-BrianM
This file contains im... |
SaivNator/MIPTP_cpp | include/TimerWrapper.hpp | //TimerWrapper.hpp
//Author: <NAME>
#pragma once
#ifndef TimerWrapper_HEADER
#define TimerWrapper_HEADER
#include <iostream>
#include <sstream>
//Linux stuff
#include <sys/timerfd.h>
#include <unistd.h>
//local
#include "LinuxException.hpp"
class TimerWrapper
{
public:
/*
Constructor.
*/
TimerWrapper();
/*
... |
tushev/Matlab-Editor-Plugin | src/at/mep/gui/ClickHistory.java | <filename>src/at/mep/gui/ClickHistory.java
package at.mep.gui;
import at.mep.editor.EditorWrapper;
import at.mep.prefs.Settings;
import com.mathworks.matlab.api.editor.Editor;
import java.util.ArrayList;
import java.util.List;
/** Created by <NAME> on 2017-10-18. */
public class ClickHistory {
private... |
steakknife/pcgeos | Tools/goc/strwid.c | /***********************************************************************
* PROJECT: PCGEOS
* MODULE: UIC -- string widths
* FILE: strwid.c
*
* AUTHOR: <NAME>
*
* ROUTINES:
* Name Description
* ---- -----------
*
* DESCRIPTION:
* Output routines for UIC
*
*************... |
iceant/spring-jdbc-dao-generator | spring-jdbc-dao-generator-webapp/src/main/java/com/github/iceant/spring/jdbc/dao/generator/webapp/utils/AppUtil.java | package com.github.iceant.spring.jdbc.dao.generator.webapp.utils;
import com.github.iceant.spring.jdbc.dao.generator.webapp.vos.JsonResponse;
import org.springframework.boot.system.ApplicationHome;
import java.io.File;
import java.util.Date;
import java.util.function.Function;
public class AppUtil {
private sta... |
matya/s6-dns | src/include/s6-dns/s6dns-resolve.h | /* ISC license. */
#ifndef S6DNS_RESOLVE_H
#define S6DNS_RESOLVE_H
#include <errno.h>
#include <skalibs/uint16.h>
#include <skalibs/uint32.h>
#include <skalibs/tai.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/ip46.h>
#include <s6-dns/s6dns-constants.h>
#include <s6-dns/s6dns-ip46.... |
objectcomputing/check-ins | web-ui/src/components/feedback_recipient_card/FeedbackRecipientCard.stories.js | import FeedbackRecipientCard from "./FeedbackRecipientCard";
import React, {useContext, useEffect} from "react";
import {AppContext, AppContextProvider} from "../../context/AppContext";
import {UPDATE_MEMBER_PROFILES} from "../../context/actions";
export default {
title: 'FeedbackReqs/FeedbackRecipientCard',
compo... |
karlek/lapis | src/kernel/fpu.c | #include "fpu.h"
/**
* Set the FPU control word
*
* @param cw What to set the control word to.
*/
void set_fpu_cw(const uint16_t cw) {
asm volatile("fldcw %0" ::"m"(cw));
}
/**
* Enable the FPU
*
* We are assuming that we have one to begin with, but since we
* only really operate on 686 machines, we do, so w... |
DPigeon/Money-Tree | backend/src/main/java/com/capstone/moneytree/model/decorator/StopOrderDecorator.java | package com.capstone.moneytree.model.decorator;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.jacobpeterson.domain.alpaca.order.Order;
/**
* The StopOrder Decorator for AlpacaAPI.
* A stop (market) order is an order to buy or se... |
kimberlyohqwr/64jsonc | src/beans/AppFile.js | <filename>src/beans/AppFile.js
import { File } from 'beans';
class AppFile extends File {
static count = 0;
constructor(WindowComponent, { pinned = true, defaultUrl } = {}, key, parent) {
super(key, parent);
AppFile.count++;
Object.assign(this, {
WindowComponent,
pinned,
defaultUrl,
... |
alphagov/notify-notifications-api | app/authentication/auth.py | <gh_stars>10-100
import uuid
from flask import current_app, g, request
from gds_metrics import Histogram
from notifications_python_client.authentication import (
decode_jwt_token,
get_token_issuer,
)
from notifications_python_client.errors import (
TokenAlgorithmError,
TokenDecodeError,
TokenError,... |
gkynaja/me-wines-shop | src/styles/styled-components/config/color.js | export const color = {
primary: '#ffcb96',
}
export const textColor = {
primary: '#333',
}
|
passcod/rollup | test/function/samples/emit-chunk/no-input/_config.js | module.exports = {
description: 'It is not necessary to provide an input if a dynamic entry is emitted',
options: {
input: undefined,
plugins: {
name: 'test-plugin',
buildStart() {
this.emitChunk('chunk.js');
}
}
}
};
|
JironBach/eatlocaljapan | app/models/review.rb | # == Schema Information
#
# Table name: reviews
#
# id :integer not null, primary key
# guest_id :integer
# host_id :integer
# reservation_id :integer
# listing_id :integer
# accuracy :integer default(0)
# communication :integer default... |
clipperhouse/techlemm | filters/mapper/filter.go | // Package mapper provides a convenience builder for filters that map inputs to outputs, one-to-one
package mapper
import (
"github.com/clipperhouse/jargon"
)
type filter struct {
funcs []func(*jargon.Token) *jargon.Token
}
// NewFilter creates a filter which applies one or more funcs to each token
func NewFilter(... |
anuragprafulla/components-contrib | vendor/github.com/kubernetes-client/go/kubernetes/client/v1_cinder_volume_source.go | /*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// Represents a cinder volume resource in Openstack. A Cinder... |
williamlin0504/free5gcWithOCF | lib/openapi/models/model_ip_end_point.go | /*
* NRF NFManagement Service
*
* NRF NFManagement Service
*
* API version: 1.0.1
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package models
type IpEndPoint struct {
Ipv4Address string `json:"ipv4Address,omitempty" yaml:"ipv4Address" bson:"ipv4Address" mapstructure:"Ipv4Ad... |
Epsilon-Not/ado-report-extension | node_modules/tfx-cli/_build/lib/version.js | <gh_stars>1-10
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if... |
lightpaycashproject/LCHj | orchid/src/com/subgraph/orchid/directory/parsing/DocumentParserFactory.java | <filename>orchid/src/com/subgraph/orchid/directory/parsing/DocumentParserFactory.java
package com.subgraph.orchid.directory.parsing;
import java.nio.ByteBuffer;
import com.subgraph.orchid.ConsensusDocument;
import com.subgraph.orchid.KeyCertificate;
import com.subgraph.orchid.RouterDescriptor;
import com.subgr... |
ndjaitly/multi-frame | cudamat/test.py | <reponame>ndjaitly/multi-frame
import numpy, sys, util
import cudamat as cm
cm.cuda_set_device(6)
cm.cublas_init()
cm.CUDAMatrix.init_random(42)
cmMat = cm.empty((20, 128))
for batch in range(10000):
cmMat.fill_with_randn()
if numpy.isnan(cmMat.euclid_norm()):
util.save('test.dat', 'a', {'a':cmMat.asa... |
bluccino/tutorial | core/mcore/06-mcore/src/core/publisher.h | /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
*
* Copyright (c) 2018 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _PUBLISHER_H
#define _PUBLISHER_H
/* Others */
#define LEVEL_S0 -32768
#define LEVEL_S25 -16384
#define LEVEL_S50 0
#define LEVEL_S75 16384
#define LEVEL... |
wilebeast/FireFox-OS | B2G/gecko/netwerk/protocol/viewsource/nsViewSourceChannel.cpp | <gh_stars>1-10
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim:set ts=4 sw=4 sts=4 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org... |
ExaByt3s/hack_scripts | Dark soft/Carberp Botnet/source - absource/pro/all source/OCR/JavaShit/funcs.cpp | #include "funcs.h"
#include "../java/javashit.h"
void SendKeys( const char* nameWindow, const char* chars )
{
DbgMsg( "Name Window: %s, String: %s", nameWindow, chars );
HWND wnd = FindWindow( 0, nameWindow );
if( wnd )
{
DbgMsg( "Window %s founded", nameWindow );
SendString( wnd, (TCHAR*)chars );
... |
Mattlk13/oci-go-sdk | datacatalog/list_metastores_request_response.go | // Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei... |
atriumxsis/atrium | public/modules/resource-home/resource-home.module.client.js | 'use strict';
ApplicationConfiguration.registerModule('resource-home');
|
Ox8BADFOOD/ZZUIK | ZZUIKit/Classes/ZZMaskView/ZZMaskView.h | //
// ZZMaskView.h
// FBSnapshotTestCase
//
// Created by Max on 2021/1/13.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface ZZMaskView : UIView
@property(nonatomic,assign) UIBlurEffectStyle blurStyle;
@property(nonatomic,strong) UIColor *maskColor;
@end
NS_ASSUME_NONNULL_END
|
taragu/serving | pkg/webhook/create_options_test.go | <reponame>taragu/serving
/*
Copyright 2020 The Knative 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 ... |
hermannhueck/little-monad-demo | tutorial/src/main/scala-3/tutorial/examples09/Example09dIOAppCompute.scala | <filename>tutorial/src/main/scala-3/tutorial/examples09/Example09dIOAppCompute.scala<gh_stars>0
package tutorial.examples09
import scala.util.chaining.*
import util.*
import tutorial.libMyCats.*
@main def IOAppCompute: Unit = {
line().green pipe println
val io1 = IO.pure(40)
val io2 = IO pure 2
val io3: I... |
MarcelGM/transformers | kk_development.py | import torch
from transformers import AutoConfig, AutoModelForSeq2SeqLM, BartTokenizer, BartForConditionalGeneration, BartExtendedForConditionalGeneration, BartConfig, BartExtendedModel
# Loading trained model
PATH = "/home/ec2-user/moymarce/transformers/checkpoints/5-source_oracle-double/"
tokenizer = BartTokenizer.f... |
kvurd/msgraph-sdk-objc-models | GeneratedModels/MSGraphAndroidWorkProfileCrossProfileDataSharingType.h | // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#include <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, MSGraphAndroidWorkProfileCrossProfileDataSharingTypeValue){
MSGraphAndroidWorkProfileCrossP... |
kleag/external-knowledge-codegen | asdl/lang/java/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ReflectionInterfaceDeclarationTest.java | <gh_stars>0
/*
* Copyright (C) 2015-2016 <NAME>
* Copyright (C) 2017-2019 The JavaParser Team.
*
* This file is part of JavaParser.
*
* JavaParser can be used either under the terms of
* a) the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License,... |
stvliu/tcc-transaction | galaxy-console/src/main/java/io/anyway/galaxy/console/dal/db/DsTypeContextHolder.java | package io.anyway.galaxy.console.dal.db;
import io.anyway.galaxy.console.dal.dto.DataSourceInfoDto;
import java.util.HashMap;
import java.util.Map;
/**
* Created by xiong.j on 2016/8/1.
*/
public class DsTypeContextHolder {
public final static String DEFAULT_SESSION_FACTORY = "default";
public final stati... |
sundersc/cloudform | packages/cloudform-types/types/ec2/spotFleet.js | "use strict";
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* ap-northeast-3 (https://d2zq... |
mijiga/Stax | app/src/main/java/com/hover/stax/bounties/BountyEmailFragment.java | <filename>app/src/main/java/com/hover/stax/bounties/BountyEmailFragment.java
package com.hover.stax.bounties;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.... |
loyada/typed-py | tests/schema_mapping/expected/generated_example1.py | from typedpy import *
class Foo(Structure):
s = String()
_required = ['s']
# ********************
class Example1(Structure):
c = OneOf(fields=[Number(multiplesOf=5, minimum=-10, maximum=20), Integer(), Number(minimum=1e-06), String()])
d = NotField(fields=[Number(multiplesOf=5, minimum=-10, maximu... |
timfel/netbeans | webcommon/javascript.v8debug/src/org/netbeans/modules/javascript/v8debug/ScriptsHandler.java | <gh_stars>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 Apache License, Version 2.0 (the
* ... |
waqaradil/AdonisRepo | app/Exceptions/NotFoundException.js | 'use strict'
const {LogicalException} = require('@adonisjs/generic-exceptions')
const message = 'Page Not Found!'
const status = 404
class NotFoundException extends LogicalException {
/**
* Handle this exception by itself
*/
// handle () {}
constructor() {
super(message, status)
}
... |
Rhohoman/git-gainz-front | node_modules/@react-navigation/core/dist/views/withNavigationFocus.js | <gh_stars>1-10
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, a... |
steelONIONknight/bolt | training/src/compiler/training/compiler/Layers.h | // Copyright (C) 2022. Huawei Technologies Co., Ltd. All rights reserved.
// 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,... |
navikt/spsak | vtp-mock/autotest/src/main/java/no/nav/foreldrepenger/autotest/klienter/fpsak/behandlinger/dto/aksjonspunktbekreftelse/VurderEktefellesBarnBekreftelse.java | package no.nav.foreldrepenger.autotest.klienter.fpsak.behandlinger.dto.aksjonspunktbekreftelse;
import no.nav.foreldrepenger.autotest.klienter.fpsak.behandlinger.dto.behandling.Behandling;
import no.nav.foreldrepenger.autotest.klienter.fpsak.fagsak.dto.Fagsak;
@BekreftelseKode(kode="5005")
public class VurderEktefell... |
lucianot/dealbook | spec/acceptance/manage_users_spec.rb | require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
feature 'manage users' do
context 'admins' do
scenario 'edit user role' do
user = User.make!
admin = login_admin
click_link user.full_name
click_link 'Manage users'
click_button "edit_#{user.id}"
select ... |
paullewallencom/jboss-978-1-7821-6018-2 | _/0182OS_02_code/src/main/java/org/cdibook/chapter2/qualifiermembers/Category.java | package org.cdibook.chapter2.qualifiermembers;
public enum Category {
FICTION,
NONFICTION;
}
|
DionysisChristopoulos/google-research | readtwice/models/narrative_qa/evaluation.py | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... |
alexey-anufriev/intellij-community | platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/ApplyPatchException.java | <filename>platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/ApplyPatchException.java
// Copyright 2000-2020 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.openapi.diff.impl.patch;
public final class ApplyPatchException... |
nawien-sharma/keyczar | java/code/src/org/keyczar/enums/KeyStatus.java | <reponame>nawien-sharma/keyczar
/*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
autoint/fosstars-rating-core | src/main/java/com/sap/sgs/phosphor/fosstars/model/value/LgtmGradeValue.java | package com.sap.sgs.phosphor.fosstars.model.value;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sap.sgs.phosphor.fosstars.model.Feature;
import java.util.Objects;
public class LgtmGradeValue ex... |
cyonglong/waimai | linjiashop-mobile/src/view/order/expressInfo/expressInfo.js | import order from '@/api/orders'
import { Cell, CellGroup,Row, Col,Step, Steps, NavBar, Tab,Tabs,Tabbar, TabbarItem,Button } from 'vant';
const baseApi = process.env.VUE_APP_BASE_API
export default {
components: {
[Cell.name]: Cell,
[CellGroup.name]: CellGroup,
[Row.name]: Row,
... |
laik/liqo | pkg/mutate/webhook_test.go | package mutate
import (
"fmt"
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
offv1alpha1 "github.com/liqotech/liqo/apis/offloading/v1alpha1"
liqoconst "github.com/liqotech/l... |
fernandoBRS/akka-java-samples | samples/src/main/java/com/akka/sample/helloworld/models/greeting/WhoToGreet.java | package com.akka.sample.helloworld.models.greeting;
public class WhoToGreet {
public final String who;
public WhoToGreet(String who) {
this.who = who;
}
}
|
slyoldfox/blaze-persistence | core/impl/src/main/java/com/blazebit/persistence/impl/transform/SizeTransformationVisitor.java | <reponame>slyoldfox/blaze-persistence<filename>core/impl/src/main/java/com/blazebit/persistence/impl/transform/SizeTransformationVisitor.java
/*
* Copyright 2014 - 2021 Blazebit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
HeRaNO/OI-ICPC-Codes | HSAHRBNUOJ/P27xx/P2711.cpp | <filename>HSAHRBNUOJ/P27xx/P2711.cpp
#include <cstdio>
#define MAXN 110
using namespace std;
struct point
{
int x;
int y;
};
point a[MAXN];
int n, ans;
bool judge(int p, int q, int r)
{
if (a[p].x == a[q].x && a[q].x == a[r].x) return false;
if (a[p].y == a[q].y && a[q].y == a[r].y) return false;
if ((a[r].y - ... |
kbore/pbis-open | lsass/server/api/rpc_server.c | <reponame>kbore/pbis-open<gh_stars>100-1000
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
*/
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
... |
gnestor/plotly.py | _plotly_utils/tests/validators/test_imageuri_validator.py | import base64
import pytest
from _plotly_utils.basevalidators import ImageUriValidator
import numpy as np
from PIL import Image
# Fixtures
# --------
@pytest.fixture()
def validator():
return ImageUriValidator('prop', 'parent')
# Tests
# -----
# ### Acceptance ###
@pytest.mark.parametrize('val', [
'http://... |
wqking/gincu | src/allegro/gallegrotexturedata.h | <gh_stars>10-100
#ifndef GALLEGROTEXTUREDATA_H
#define GALLEGROTEXTUREDATA_H
#include "gincu/gtexture.h"
#include "gincu/glog.h"
#include "allegro5/allegro.h"
#include <string>
namespace gincu {
class GAllegroTextureData : public GTextureData
{
public:
GAllegroTextureData()
: image(nullptr)
{
}
~GAllegroTex... |
Rafat97/nodejs-MVC | bootstrap/config/route.js | "use strict";
function route (type, url, controllerData) {
return {
url: url,
fun: type,
controller: controllerData,
typeof_parem:typeof controllerData,
};
};
module.exports = route; |
BIJOY-SUST/sust-medical-center | cse/migrations/0047_auto_20190612_1124.py | # Generated by Django 2.2 on 2019-06-12 11:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cse', '0046_medicineinfo'),
]
operations = [
migrations.AlterField(
model_name='medicineinfo',
name='medicineafter',
... |
VisualGMQ/Chaos_Dungeon | src/Sprite/WorldModel.cpp | <filename>src/Sprite/WorldModel.cpp
#include "Sprite/WorldModel.hpp"
Layer::Layer(string name){
this->name = name;
}
void Layer::AddGameObject(GameObject* obj){
auto it = objs.begin();
for(;it!=objs.end();it++)
if((*it)->GetID()==obj->GetID())
return;
objs.push_back(obj);
}
void L... |
nottalha/Box | client/src/components/reviewcomment/index.js | <filename>client/src/components/reviewcomment/index.js
import React, { Component } from 'react'
import {Link} from 'react-router-dom'
class Comment extends Component{
sumitHandler ( e ) {
e.preventDefault()
}
render() {
return(
<div className="add-review-sec">
... |
knowac/tizen-browser-30 | services/SettingsUI/SettingsAFProfile.h | <reponame>knowac/tizen-browser-30<gh_stars>1-10
/*
* Copyright (c) 2016 Samsung Electronics Co., 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/L... |
matty234/client | shared/signup/phone-number/phone-input.js | // @flow
import * as React from 'react'
import * as Kb from '../../common-adapters'
import * as Styles from '../../styles'
import {isIOS} from '../../constants/platform'
import {countryData, AsYouTypeFormatter, validateNumber} from '../../util/phone-numbers/'
import {memoize} from '../../util/memoize'
const getCalling... |
andela/ah-codeblooded-frontend | src/containers/RatingStats/state/action.test.js | <reponame>andela/ah-codeblooded-frontend<filename>src/containers/RatingStats/state/action.test.js
import thunk from 'redux-thunk';
import configureMockStore from 'redux-mock-store';
import MockAdapter from 'axios-mock-adapter';
import api from '../../../utils/api';
import config from '../../../utils/config';
import {
... |
leboff/CumulusCI | cumulusci/tasks/metadata_etl/base.py | <reponame>leboff/CumulusCI
from abc import ABCMeta, abstractmethod
import enum
from pathlib import Path
import tempfile
from urllib.parse import quote, unquote
from cumulusci.core.exceptions import CumulusCIException, TaskOptionsError
from cumulusci.core.tasks import BaseSalesforceTask
from cumulusci.salesforce_api.me... |
Sajaki/intellij-community | plugins/ui-designer/src/com/intellij/uiDesigner/propertyInspector/properties/AbstractDimensionProperty.java | // Copyright 2000-2018 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.uiDesigner.propertyInspector.properties;
import com.intellij.uiDesigner.FormEditingUtil;
import com.intellij.uiDesigner.core.GridConstraints;
import com.inte... |
AugustinMascarelli/survol | survol/merge_scripts.py | <gh_stars>0
#!/usr/bin/env python
"""
Merge data from several sources
"""
import os
import sys
import time
import cgi
import lib_util
import lib_common
# This CGI script is called as a CGI script,
# and its parameters are input URLs in Base64UrlSafe format.
# It merges the input urls into a single RDF document,
# th... |
fotisl/zlint | v3/ext/asn1c/TorServiceDescriptorSyntax.c | <reponame>fotisl/zlint<filename>v3/ext/asn1c/TorServiceDescriptorSyntax.c<gh_stars>0
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "CABFSelectedAttributeTypes"
* found in "asn1/cabfev.asn1"
* `asn1c -S /home/fotisl/Projects/revlintsynt/asn1c/skeletons -pdu=all -fwide-types -fcompou... |
akiryk/stories-with-firebase | src/styles/index.js | import styled from 'styled-components';
export const StyledForm = styled.form`
max-width: 600px;
`;
export const Label = styled.label`
display: block;
font-family: 'Open Sans', sans-serif;
font-weight: bold;
margin: 20px 0 5px;
`;
export const Input = styled.input`
font-family: 'Open Sans', sans-serif;
... |
ra-ens/abdelhakim-rafik-jee | ra-spring/src/main/java/Exceptions/ConfigFileInvalideException.java | <gh_stars>0
package Exceptions;
public class ConfigFileInvalideException extends Exception {
public ConfigFileInvalideException() {
super("Config file has non valide formate");
}
}
|
Jonyker/APGeneric | model_ucenter/component-ucenter/src/main/java/com/wukj/business/ucenter/app/UCenterApplication.java | package com.wukj.business.ucenter.app;
import com.wukj.business.net.utils.VolleyUtils;
import com.wukj.lib.CommonApplication;
import com.wukj.lib.delegate.ApplicationDelegate;
/**
* 项目名称:NetCar_Chauffeur
* 包名称:com.netcar.chauffeur.ucenter.application.
* 创建时间:2018/8/7 10:55
* 作者:Jonyker
* 博客:https://www.jianshu.c... |
AndreySoKuR/SPbCT_BulyninMA | Laba23/expl1/expl1/main.cpp | //
// main.cpp
// expl1
//
// Created by Мишаня on 12.11.2020.
// Copyright © 2020 m1xxos. All rights reserved.
//
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#define A_MEGABYTE (1024 * 1024)
int main() {
char *some_memory;
int megabyte = A_MEGABYTE;
int exit_code = EXIT_FAILURE;
some_memory = (char... |
gxw1/review_the_national_post-graduate_entrance_examination | books_and_notes/professional_courses/Security/sources/extra_books/Hacking:The Art of Exploitation (Second Edition)源代码/booksrc/ppm_gen.c | /*********************************************************\
* Password Probability Matrix * File: ppm_gen.c *
***********************************************************
* *
* Author: <NAME> <<EMAIL>> *
* Organization: Phiral Research La... |
techsparksguru/python_ci_automation | Class7/testdata_json/create_parse_json.py | import json
json_string = """{
"desc":{
"someKey":"someValue",
"anotherKey":"value"
},
"main_item":{
"stats":{
"a":8,
"b":12,
"c":10
}
}
}"""
json_dict = json.loads(json_string)
print("Printing the json")
print("Printing the keys and values")
for i in json... |
intellimate/Server | src/main/java/org/intellimate/server/mail/MailHandlerSendGrid.java | <filename>src/main/java/org/intellimate/server/mail/MailHandlerSendGrid.java
package org.intellimate.server.mail;
import com.sendgrid.SendGrid;
import com.sendgrid.SendGridException;
import org.intellimate.server.jwt.JWTHelper;
import java.io.IOException;
/**
* @author LeanderK
* @version 1.0
*/
public class Mail... |
ejctechnology/tad-boilerplate | tad-master/src/Pages/Components/Card/index.js | import React, { useEffect, useState } from "react";
import Amplify, { API, graphqlOperation } from "aws-amplify";
import { listCards } from "../../../graphql/queries";
import awsExports from "../../../aws-exports";
Amplify.configure(awsExports);
function Card() {
const [cards, setCards] = useState([]);
useEffec... |
stopiccot/OpenSubdiv | opensubdiv/hbr/vertex.h | //
// Copyright 2013 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
... |
iecedge/xos | xos/synchronizers/new_base/mock_modelaccessor_build.py | <reponame>iecedge/xos<gh_stars>0
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... |
gridgo/gridgo-commons | gridgo-bean/src/main/java/io/gridgo/bean/BJsonSupport.java | <filename>gridgo-bean/src/main/java/io/gridgo/bean/BJsonSupport.java
package io.gridgo.bean;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import io.gridgo.bean.exceptions.InvalidTypeException;
import io.gridgo.bean.serialization.BSerializerRegistryAware;
public interface BJsonSupport extends BS... |
ant0ine/phantomjs | src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/qt/ContextShadowQt.cpp | <filename>src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/qt/ContextShadowQt.cpp
/*
* Copyright (C) 2010 Sencha, 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:
* 1. R... |
KyLeoHC/project-startup | src/utils/dom.js | <reponame>KyLeoHC/project-startup
let passiveSupported = false;
try {
let options = {
get passive() {
// This function will be called when the browser
// attempts to access the passive property.
passiveSupported = true;
}
};
window.addEventListener('test', options, options);
window.re... |
LukasHeinz/shopsys | packages/framework/assets/js/admin/jquery.js | <reponame>LukasHeinz/shopsys
/*
* Why?
*
* We temporarily use jsFormValidateBundle Bundle and we load it before webpack build file and this bundle needs jquery to register itself.
*
* We create jquery entry from this file in webpack config file and load it before jsFormValidateBundle.
*
* This will be deleted af... |
baoxingsong/dCNS | model/Node.cpp | <filename>model/Node.cpp
//
// Created by <NAME> on 2019-01-08.
//
#include "Node.h"
Node::Node(int _v, int _w){
v = _v;
weight = _w;
}
int Node::getV(){
return v;
}
int Node::getWeight() {
return weight;
}
|
Ryanhindman6654/agentbot-master | functions/utils.js | const random = require('random-number-csprng');
const { MessageEmbed } = require('discord.js');
const axios = require('axios');
const jimp = require('jimp');
module.exports = {
getMember: function(message, toFind = '') {
toFind = toFind.toLowerCase();
let target = message.guild.members.cache.get(toF... |
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/Editor/MeshPaint/Private/MeshPaintSkeletalMeshAdapter.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "MeshPaintSkeletalMeshAdapter.h"
#include "Engine/SkeletalMesh.h"
#include "PhysicsEngine/BodySetup.h"
#include "MeshPaintHelpers.h"
#include "MeshPaintTypes.h"
#include "ComponentReregisterContext.h"
//////////////////////////////////////////////... |
karminea/gamstertv | node_modules/twitch/lib/API/Unsupported/UnsupportedAPI.js | <reponame>karminea/gamstertv<gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var Cache_1 = require("../../Toolkit/Decorators/Cache");
var BaseAPI_1 = require("../BaseAPI");
var ChattersList_1 = require("./ChattersList");
var UserTools_1 = require("... |
isabellaliu77/kaspad | protocol/blocklogger/log.go | <gh_stars>0
// Copyright (c) 2017 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package blocklogger
import (
"github.com/kaspanet/kaspad/logger"
)
var log, _ = logger.Get(logger.SubsystemTags.PROT)
|
gadge/foba | packages/tabulars/crostab/gulp/gulpfile.AoEII.crostab.save.js | <gh_stars>0
import { toTable } from '@analys/convert'
import { MUT } from '@analys/enum-mutabilities'
import { AVERAGE } from '@analys/enum-pivot-mode'
import { NUM_ASC, NUM_DESC } from '@aryth/comparer'
import { roundD1 } from '@aryth/math'
import { esvar } from ... |
larsw/rya | extras/indexing/src/main/java/org/apache/rya/api/client/mongo/MongoCreatePCJ.java | <reponame>larsw/rya
/**
* 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 (th... |
op896898466/apitest | apps/interfacemocks/serializers.py | <filename>apps/interfacemocks/serializers.py
# -*- coding: utf-8 -*-
from rest_framework import serializers
from .models import Interfacemocks
class InterfacemocksSerializer(serializers.ModelSerializer):
class Meta:
model = Interfacemocks
fields = '__all__'
|
vdkkia/seek | test/unit/openbis/openbis_external_asset_test.rb | <reponame>vdkkia/seek
require 'test_helper'
require 'openbis_test_helper'
class OpenbisExternalAssetTest < ActiveSupport::TestCase
def setup
mock_openbis_calls
@endpoint = Factory(:openbis_endpoint)
@asset = OpenbisExternalAsset.new
@asset.seek_service = @endpoint
end
test 'builds from Zample' ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.