repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
snipextt/Rocket.Chat | client/views/omnichannel/analytics/InterchangeableChart.js | import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import React, { useRef, useEffect } from 'react';
import { drawLineChart } from '../../../../app/livechat/client/lib/chartHandler';
import { useMethod } from '../../../contexts/ServerContext';
import { useToastMessageDispatch } from '../../../contexts/T... |
zamorajavi/google-input-tools | client/text_range/text_range_reconvert.cc | <reponame>zamorajavi/google-input-tools
/*
Copyright 2014 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by... |
Evangelize/classes | dev/getLastWednesdayInQtr.js | var moment = require('moment-timezone'),
beginYear = 2015,
beginYearMonth = 8,
lengthDivision = 3,
currentQtr = 3,
day = moment()
.year(2015)
.month(beginYearMonth + (lengthDivision*(currentQtr - 1)))
.add(2, 'month')
.endOf('month');
result = day;
while (result.day() !== 3)... |
jwhitfieldseed/advent-of-code | 2015/5b.js | function hasRepeatingPair(s) {
for (let i = 0; i < s.length - 2; i ++) {
const pair = s.slice(i, i + 2);
if (s.lastIndexOf(pair) >= i + 2) {
return true;
}
}
return false;
}
function hasSplitPair(s) {
for (let i = 0; i < s.length - 2; i ++) {
if (s[i] === s[i + 2]) {
return true;... |
pirocorp/JS-Advanced | 07. JQUERY/Exercises/07. Calendar/calendar.js | <filename>07. JQUERY/Exercises/07. Calendar/calendar.js
function calendar(inputDate) {
let [day, month, year] = inputDate;
const currentDate = new Date(year, month - 1, day);
const selector = '#content';
var days = [6, 0, 1, 2, 3, 4, 5];
const monthNames = ["January", "February", "March", "April",... |
ShawnSunVip/xlite-separation | xlite-base-support/xlite-system/src/main/java/com/kedacom/xlite/sys/core/listener/ConstantsInitListener.java | <filename>xlite-base-support/xlite-system/src/main/java/com/kedacom/xlite/sys/core/listener/ConstantsInitListener.java
package com.kedacom.xlite.sys.core.listener;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.db.DbUtil;
import cn.hutool.db.Entity;
import cn.hutool.db.handler.EntityListHandler;
import cn.hut... |
onigoetz/swagger-doclet | swagger-doclet/src/main/java/com/tenxerconsulting/swagger/doclet/json/MapperModule.java | <reponame>onigoetz/swagger-doclet
package com.tenxerconsulting.swagger.doclet.json;
import com.fasterxml.jackson.databind.module.SimpleModule;
import io.swagger.oas.models.media.Schema;
import io.swagger.oas.models.parameters.Parameter;
public class MapperModule extends SimpleModule {
public MapperModule() {
... |
alipay/Antchain-MPC | morse-stf/unittest/test_NN.py | <gh_stars>10-100
import unittest
from stensorflow.ml.nn.networks.DNN_with_SL import DNN_with_SL2, DNN_with_SL
from stensorflow.ml.nn.networks.DNN import DNN
import tensorflow as tf
from stensorflow.basic.basic_class.private import PrivateTensor
import time
from stensorflow.engine.start_server import start_local_server
... |
jpchagas/hfa3 | hellfireos-master/app/ramdisk/ramdisk_test.c | #include <hellfire.h>
#include <device.h>
#include <block.h>
#include <ramdisk.h>
#include <uhfs.h>
void app_main(void){
struct device ramdisk0 = {ramdisk_open, ramdisk_read, ramdisk_write, ramdisk_close, ramdisk_ioctl, 0};
struct blk_info ramdisk0info;
struct file *fptr;
struct fs_direntry direntry;
int8_t str[3... |
Earthcomputer/mutliconnect | src/main/java/net/earthcomputer/multiconnect/mixin/bridge/MixinDecoderHandler.java | package net.earthcomputer.multiconnect.mixin.bridge;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import net.earthcomputer.multiconnect.impl.PacketSystem;
import net.minecraft.network.DecoderHandler;
import net.minecraft.network.Packet;
import org.spongepowered.asm.mixin.Mixin;
import... |
laipaang/Paddle | python/paddle/fluid/tests/unittests/test_data.py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
embeddery/stackrox | central/vulnerabilityrequest/suppressor/singleton.go | package suppressor
import (
"github.com/stackrox/rox/central/vulnerabilityrequest/cache"
"github.com/stackrox/rox/pkg/sync"
)
var (
once sync.Once
instance CVESuppressor
)
func initialize() {
instance = New(cache.ActiveReqsCacheSingleton())
}
// Singleton provides the instance of CVESuppressor to use.
func... |
vesor/bayes-filters-lib | src/BayesFilters/src/SIS.cpp | <filename>src/BayesFilters/src/SIS.cpp<gh_stars>1-10
/*
* Copyright (C) 2016-2019 Istituto Italiano di Tecnologia (IIT)
*
* This software may be modified and distributed under the terms of the
* BSD 3-Clause license. See the accompanying LICENSE file for details.
*/
#include <BayesFilters/SIS.h>
#include <BayesFi... |
riteshrao/dtdl-go | parser/parser_test.go | <reponame>riteshrao/dtdl-go
package parser
import (
"testing"
"github.com/riteshrao/dtdl-go/model"
"github.com/stretchr/testify/assert"
)
func TestParseSingleInterface(t *testing.T) {
a := assert.New(t)
p := NewModelParser()
p.Parse([]byte(`
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:interface;1",... |
ciren/benchmarks | src/test/scala/benchmarks/syntax/SyntaxTests.scala | <reponame>ciren/benchmarks
// package benchmarks
// package syntax
// import org.scalacheck._
// import org.scalacheck.Prop._
// import benchmarks.implicits._
// object SyntaxTests extends Properties("Syntax Tests") {
// val doubleGen = Gen.choose(-1000.0, 1000.0)
// val gen = Gen.listOf(doubleGen)
// proper... |
gridgentoo/ServiceFabricAzure | src/prod/src/data/integration/FactoryArgument.Test.cpp | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------... |
causehhc/EmployeeHome | backend/src/main/java/com/csi/emphome/demo/service/test/impl/TestServiceImpl.java | <reponame>causehhc/EmployeeHome<gh_stars>1-10
package com.csi.emphome.demo.service.test.impl;
import com.csi.emphome.demo.domain.test.TestItem;
import com.csi.emphome.demo.repository.test.TestRepository;
import com.csi.emphome.demo.service.test.TestService;
import com.csi.emphome.demo.service.test.dto.TestListQuery;
i... |
bdr08349/ladder | autoscaler/inputter.go | package autoscaler
import (
"context"
"fmt"
"time"
"github.com/themotion/ladder/autoscaler/arrange"
"github.com/themotion/ladder/autoscaler/gather"
"github.com/themotion/ladder/config"
"github.com/themotion/ladder/log"
"github.com/themotion/ladder/metrics"
"github.com/themotion/ladder/types"
)
type inputter... |
pathorn/sirikata | libcore/src/network/IOTimer.cpp | <gh_stars>1-10
/* Sirikata Network Utilities
* IOTimer.cpp
*
* Copyright (c) 2009, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must... |
binglongworld/springboot-demo | chapter3-3/src/main/java/com/hl/chapter33/web/UploadController.java | <reponame>binglongworld/springboot-demo<gh_stars>1-10
package com.hl.chapter33.web;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.ann... |
ScalablyTyped/SlinkyTyped | r/react-dnd/src/main/scala/typingsSlinky/reactDnd/hooksMod.scala | package typingsSlinky.reactDnd
import typingsSlinky.dndCore.interfacesMod.DragDropManager
import typingsSlinky.reactDnd.connectorsMod.ConnectDragPreview
import typingsSlinky.reactDnd.connectorsMod.ConnectDragSource
import typingsSlinky.reactDnd.connectorsMod.ConnectDropTarget
import typingsSlinky.reactDnd.hooksApiMod.... |
xjc90s/serenity-core | serenity-ant-task/src/test/java/net/serenitybdd/ant/util/WhenPreparingResourcePaths.java | <reponame>xjc90s/serenity-core
package net.serenitybdd.ant.util;
import net.serenitybdd.ant.util.PathProcessor;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class WhenPreparingResourcePaths {
PathProcessor pathProcessor = new PathProcessor();
@Test
public void... |
fossabot/DIVOC | backend/registration_api/swagger_gen/restapi/operations/register_recipient_to_program_responses.go | <gh_stars>100-1000
// Code generated by go-swagger; DO NOT EDIT.
package operations
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"github.com/go-openapi/runtime"
)
// RegisterRecipientToProgramOKCode is the... |
zvfvrv/vpp-dataplane | vpplink/binapi/vppapi/abf/abf.ba.go | // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// Package abf contains generated bindings for API file abf.api.
//
// Contents:
// 2 structs
// 10 messages
//
package abf
import (
api "git.fd.io/govpp.git/api"
codec "git.fd.io/govpp.git/codec"
fib_types "github.com/projectcalico/vpp-dataplane/vppli... |
ExGiX/JS-Advanced-September-2021 | Labs/02.Arrays and Nested Arrays/11.equalNeighbors.js | function solve(arr) {
let pairs=0
arr.forEach((row , i) => {
row.forEach((el , x)=> {
if(el===row[x+1]) {
pairs++
}
if(arr[i+1]&& el===arr[i+1][x]) {
pairs++
}
})
})
return pairs
}
|
SnirkImmington/shadowroller | server/update/update_test.go | <filename>server/update/update_test.go
package update
/*
import (
mathRand "math/rand"
"reflect"
"testing/quick"
"sr/event"
)
// Scrapped due to being unable to import event.RandomEvent...
func RandomUpdate(rand *mathRand.Rand) Update {
ty := rand.Intn(1)
switch ty {
case 0: // +evt
return ForNewEvent(event... |
YungTsun/alameda | datahub/pkg/account-mgt/keycodes/event.go | <gh_stars>0
package keycodes
import (
"fmt"
EventMgt "github.com/containers-ai/alameda/internal/pkg/event-mgt"
AlamedaUtils "github.com/containers-ai/alameda/pkg/utils"
K8SUtils "github.com/containers-ai/alameda/pkg/utils/kubernetes"
ApiEvents "github.com/containers-ai/api/alameda_api/v1alpha1/datahub/events"
"g... |
qiyankai/foodie | foodie-dev-service/src/main/java/com/qyk/service/impl/OrderServiceImpl.java | <filename>foodie-dev-service/src/main/java/com/qyk/service/impl/OrderServiceImpl.java
package com.qyk.service.impl;
import com.qyk.enums.OrderStatusEnum;
import com.qyk.enums.YesOrNo;
import com.qyk.mapper.OrderItemsMapper;
import com.qyk.mapper.OrderStatusMapper;
import com.qyk.mapper.OrdersMapper;
import com.qyk.poj... |
ryanb93/newrelic-java-agent | newrelic-agent/src/test/java/com/newrelic/agent/instrumentation/classmatchers/ClassMatcherTest.java | <filename>newrelic-agent/src/test/java/com/newrelic/agent/instrumentation/classmatchers/ClassMatcherTest.java
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.instrumentation.classmatchers;
import java.io.IOException;
im... |
dapperlinux/application-firewall | vendor/github.com/subgraph/go-procsnitch/proc.go | package procsnitch
import (
"encoding/hex"
"encoding/binary"
"errors"
"fmt"
"github.com/op/go-logging"
"io/ioutil"
"net"
"strconv"
"strings"
"unsafe"
)
var log = logging.MustGetLogger("go-procsockets")
var isLittleEndian = -1
// SetLogger allows setting a custom go-logging instance
func SetLogger(logger *l... |
yuanliangding/qxcmp-framework | qxcmp-core/src/main/java/com/qxcmp/finance/OrderStatusEnum.java | package com.qxcmp.finance;
/**
* 平台订单状态枚举类型
* <p>
* 可以表示以下订单状态
* <p>
* <ol> <li>新订单: 由系统刚创建订单对象时的状态</li> <li>待付款: 订单已经生成,等待用户付款</li> <li>已付款: 用户已经付款,等待系统处理订单</li> <li>取消中:
* 用户申请取消订单后的状态</li> <li>已取消: 审核要取消的订单,同意以后订单将标记为已取消状态,已取消的订单将不能继续使用</li> <li>已完成:
* 表明订单已经完成,可能是系统后台标记完成,也可以是用户手动确认订单完成</li> </ol>
*
* @au... |
0xflotus/postgres-async-driver | src/main/java/com/github/pgasync/PgColumn.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
darthjee/azeroth | spec/support/factories/product.rb | <reponame>darthjee/azeroth<filename>spec/support/factories/product.rb
# frozen_string_literal: true
FactoryBot.define do
factory :product, class: '::Product' do
sequence(:name) { |n| "Product ###{n}" }
association :factory
end
end
|
justinctlam/MarbleStrike | game/tools/guieditor/source/commandmove.cpp | <filename>game/tools/guieditor/source/commandmove.cpp
//////////////////////////////////////////////////////
// INCLUDES
//////////////////////////////////////////////////////
#include "commandmove.hpp"
#include "common/game/guieditor/guieditorapp.hpp"
#include "guieditor.hpp"
////////////////////////////////////////... |
aveprev/link-rest | src/test/java/com/nhl/link/rest/meta/LrjEntityBuilderTest.java | <reponame>aveprev/link-rest
package com.nhl.link.rest.meta;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.nh... |
qianbinbin/leetcode | cpp/src/SearchInRotatedSortedArray.cpp | #include "SearchInRotatedSortedArray.h"
using namespace lcpp;
int Solution33_1::search(std::vector<int> &nums, int target) {
auto Low = nums.begin(), High = nums.end() - 1;
while (Low <= High) {
auto Mid = Low + (High - Low) / 2;
if (*Mid == target)
return Mid - nums.begin();
if (*Low <= *Mid) {... |
r00ster91/serenity | Userland/Libraries/LibJS/Tests/builtins/TypedArray/TypedArray.prototype.slice.js | <gh_stars>1000+
const TYPED_ARRAYS = [
Uint8Array,
Uint8ClampedArray,
Uint16Array,
Uint32Array,
Int8Array,
Int16Array,
Int32Array,
Float32Array,
Float64Array,
];
const BIGINT_TYPED_ARRAYS = [BigUint64Array, BigInt64Array];
test("basic functionality", () => {
TYPED_ARRAYS.forEac... |
Vivian7755/joyqueue | joyqueue-console/joyqueue-data/joyqueue-data-service/src/main/java/io/chubao/joyqueue/service/impl/BrokerServiceImpl.java | <gh_stars>0
/**
* Copyright 2019 The JoyQueue 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 appli... |
minyez/cpp-primer-plus-6th | ch10/plorg.cpp | /*
* Date : 2022-03-18 22:51:44
* Author: <NAME>
* Usage :
* TODO :
*/
#include <cstring>
#include <iostream>
#include "plorg.h"
Plorg::Plorg(const char *name, int ci)
{
std::strcpy(m_name, name);
m_ci = ci;
}
void Plorg::report() const
{
std::cout << "plorg - name: " << m_name << ", CI: " << m_c... |
Nobergan/js-scripts | js/trainning/trainning7.js | // Нужно написать условие для действий пешехода при различных сигналах светофора.
// Если сигнал красный, то надо стоять, иначе, если желтый - надо приготовиться, а иначе - можно идти.
const red = 'нет';
const yellow = 'да';
let message;
if (red === 'да') {
message = 'При красном сигнале стоим - дорогу переходить н... |
qualitesys/openssl-1 | docs/QcrReportFile01File686detailjsondata.js | <filename>docs/QcrReportFile01File686detailjsondata.js
console.log('leListeStr main01 start json de data maDataBlocs');
var maDataBlocs = {
"data00" : {
"fic1" : "./qc/crypto/sha/sha1dgst.c.html"
, "texte" : "File crypto/sha/sha1dgst.c 409 rule violations "
, "fic2" : "./qc/crypto/sha/sha1dgst.c.xml"
,... |
MiftahurRidho/tugas | cairo/src/cairo-xlib-screen.c | /* Cairo - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LG... |
keinenamen/H2_swjtu | app/src/main/java/com/amap/navi/demo/MyApp.java | <reponame>keinenamen/H2_swjtu
package com.amap.navi.demo;
import android.app.Application;
/**
* Created by shixin on 16/8/23.
* bug反馈QQ:1438734562
*/
public class MyApp extends Application {
@Override
public void onCreate() {
super.onCreate();
/**
* setApiKey是静态方法,内部引用了Context,建议放... |
dbajramovic/KKKengurJS | app/models/player.server.model.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Player Schema
*/
var PlayerSchema = new Schema({
name: {
type: String,
default: '',
required: 'Ime igrača je obavezno!',
trim: true
},
created: {
type: Date,
default: Date.now
},
user:... |
kelu124/pyS3 | com/itextpdf/text/pdf/qrcode/WriterException.java | <gh_stars>1-10
package com.itextpdf.text.pdf.qrcode;
public final class WriterException extends Exception {
private static final long serialVersionUID = 1;
public WriterException(String message) {
super(message);
}
}
|
antonialoytorrens/kraptor | src/bomba.c | // --------------------------------------------------------
// bomba.c
// --------------------------------------------------------
// Copyright (c) Kronoman
// En memoria de mi querido padre
// --------------------------------------------------------
// Este modulo contiene todo lo relacionado con las bombas... |
ScalablyTyped/SlinkyTyped | j/jest-snapshot/src/main/scala/typingsSlinky/jestSnapshot/stateMod/SnapshotMatchOptions.scala | package typingsSlinky.jestSnapshot.stateMod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait SnapshotMatchOptions extends js.Object {
var error: js.UndefOr[js.Error] = js.native
var inlineSnap... |
nymanjens/piga | app/jvm/src/main/scala/app/api/AppEntityPermissions.scala | package app.api
import app.api.ScalaJsApi.HydroPushSocketPacket.EntityModificationsWithToken
import app.models.access.JvmEntityAccess
import app.models.document.DocumentEntity
import app.models.document.DocumentPermissionAndPlacement
import app.models.document.TaskEntity
import app.models.user.User
import com.google.c... |
landonreed/GeoGit | src/core/src/main/java/org/geogit/api/plumbing/RebuildGraphOp.java | <gh_stars>0
/* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.api.plumbing;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.geogit.api.AbstractGeoGit... |
PacoEstrada18/moodle127 | node_modules/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsB.js | /*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsB.js
*
* Copyright (c) 2009-2019 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wi... |
hpcloud/ccng-upstream-pr | app/jobs/runtime/events_cleanup.rb | module VCAP::CloudController
module Jobs
module Runtime
class EventsCleanup < VCAP::CloudController::Jobs::CCJob
attr_accessor :cutoff_age_in_days
def initialize(cutoff_age_in_days)
@cutoff_age_in_days = cutoff_age_in_days
end
def perform
old_events = Ev... |
KellyShao/tessera | config/src/main/java/com/quorum/tessera/config/keypairs/ConfigKeyPair.java | package com.quorum.tessera.config.keypairs;
public interface ConfigKeyPair {
String getPublicKey();
String getPrivateKey();
void withPassword(char[] password);
char[] getPassword();
}
|
skylar-stark/springdoc-openapi | springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app167/HelloController.java | package test.org.springdoc.api.app167;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController... |
mikewong-sfsu/GeneDive | frontend/docs/html/search/files_a.js | var searchData=
[
['loading_2ejs',['loading.js',['../loading_8js.html',1,'']]],
['login_2ejs',['Login.js',['../lib_2ui_2tests_2_login_8js.html',1,'(Global Namespace)'],['../node__modules_2actions_2_login_8js.html',1,'(Global Namespace)']]],
['login_2ephp',['login.php',['../login_8php.html',1,'']]]
];
|
micro-os-plus/web-preview | docs/reference/cmsis-plus/classos_1_1rtos_1_1clock__rtc.js | var classos_1_1rtos_1_1clock__rtc =
[
[ "duration_t", "classos_1_1rtos_1_1clock__rtc.html#ga149d8b5cea55224ef5cfede8a81df04c", null ],
[ "offset_t", "classos_1_1rtos_1_1clock__rtc.html#gabb59996de739574c5f5255e7b3d29c1c", null ],
[ "timestamp_t", "classos_1_1rtos_1_1clock__rtc.html#ga4f6ee5cdd07c87db11f64d0... |
rahul-verma/daksha | daksha/src/main/java/com/testmile/daksha/tpi/guiauto/gui/DefaultGui.java | /*******************************************************************************
* Copyright 2015-18 Test Mile Software Testing Pvt Ltd
*
* Website: www.TestMile.com
* Email: support [at] testmile.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... |
Solana-Bridge/incognito-chain | metadata/common/mocks/Transaction.go | <gh_stars>1-10
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
common "github.com/incognitochain/incognito-chain/metadata/common"
coin "github.com/incognitochain/incognito-chain/privacy/coin"
incognito_chaincommon "github.com/incognitochain/incognito-chain/common"
mock "github.com/s... |
GregDevProjects/carbon-header-fix | node_modules/@carbon/icons-react/es/earth--americas/24.js | import { EarthAmericas24 } from '..';
export default EarthAmericas24;
|
Omnirobotic/godot | modules/scene_manager/include/std_msgs/msg/u_int64_multi_array.hpp | <reponame>Omnirobotic/godot<gh_stars>1-10
// generated from rosidl_generator_cpp/resource/msg.hpp.em
// generated code does not contain a copyright notice
#ifndef STD_MSGS__MSG__U_INT64_MULTI_ARRAY_HPP_
#define STD_MSGS__MSG__U_INT64_MULTI_ARRAY_HPP_
#include "std_msgs/msg/u_int64_multi_array__struct.hpp"
#include "s... |
yvasyliev/deezer-api | src/test/java/api/deezer/requests/GenreRequestsTest.java | package api.deezer.requests;
import api.deezer.DeezerApi;
import api.deezer.http.impl.DeezerRequest;
import api.deezer.http.impl.PaginationRequest;
import api.deezer.objects.data.ArtistData;
import api.deezer.objects.data.GenreData;
import api.deezer.objects.data.RadioData;
import org.junit.jupiter.api.Test;
import s... |
ckamtsikis/cmssw | Configuration/Eras/python/Era_Phase2C12_dd4hep_cff.py | import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Phase2C12_cff import Phase2C12
from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
Phase2C12_dd4hep = cms.ModifierChain(Phase2C12, dd4hep)
|
FTC14245RedStorm/RedStorm_2019_2020_ftc52_app | TeamCode/src/main/java/Reference/RedStorm/LastYear/FacingDepot.java | <reponame>FTC14245RedStorm/RedStorm_2019_2020_ftc52_app
//package org.firstinspires.ftc.teamcode;
//
//import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
//import com.qualcomm.robotcore.eventloop.opmode.Disabled;
//import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
//
//import RedStorm.Robot.Robot;
//... |
bill-simons/jtsgen | processor/src/test/java/dz/jtsgen/processor/helper/IdentHelperTest.java | /*
* Copyright (c) 2017 <NAME>
*
* This file is part of jtsgen.
*
* jtsgen is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... |
caroweng/Ninja | PlayerModule/src/main/scala/player/Player.scala | package player
case class Player(name: String, state: StateOfPlayer.stateOfPlayer, id: Int) extends PlayerInterface {
def changeState(newState: StateOfPlayer.stateOfPlayer): PlayerInterface = this.copy(state = newState)
def setName(newName: String): PlayerInterface = this.copy(name = newName)
}
|
rykrr/Quinterac | frontend/src/test/java/ca/queensu/cisc327/afk/R8.java | package ca.queensu.cisc327.afk;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Test;
public class R8 extends AppTest{
@Test
public void testAppr8T1() throws Exception {
//
runAndTest(getListFromFile("./tests/r8/t1/console_input.txt"),
getListFromFile("./tests/r8/t... |
octohelm/cuemod | pkg/cuemoperator/controller_release.go | <reponame>octohelm/cuemod
package cuemoperator
import (
"context"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
releasev1alpha1 "github.com/octohelm/cuemod/pkg/apis/release/v1alpha1"
"github.com/octohelm/cuemod/pkg/kubernetes"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime... |
mamacmm/lemon | src/main/java/com/mossle/user/rs/AvatarResource.java | <filename>src/main/java/com/mossle/user/rs/AvatarResource.java
package com.mossle.user.rs;
import java.io.*;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.ws.rs.DefaultValue;
import javax.... |
ghJo-Gaia3D/mago3d | mago3d-user/src/main/java/gaia3d/domain/data/TileInfo.java | <gh_stars>10-100
package gaia3d.domain.data;
import com.fasterxml.jackson.annotation.JsonFormat;
import gaia3d.domain.common.Search;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
/**
* 스마트 타일 정보
*/
@ToString(callSuper = true)
@Builder
@Getter
@Setter
... |
chav1961/purelib | src/test/java/chav1961/purelib/basic/BPlusTreeTest.java | <gh_stars>0
package chav1961.purelib.basic;
import org.junit.Assert;
import org.junit.Test;
public class BPlusTreeTest {
@Test
public void test() {
}
} |
jomarquez/CRviz | src/App.js | <reponame>jomarquez/CRviz<gh_stars>0
import React, { Component } from "react";
import { connect } from 'react-redux';
import classNames from 'classnames';
import Modal from 'react-modal';
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCheck, faDizzy, faPlusCircle, faMinusCircle } from "@f... |
cmcmone/TStore | src/main/java/edu/wcsu/thestore/controller/CheckoutController.java | package edu.wcsu.thestore.controller;
import edu.wcsu.thestore.domain.*;
import edu.wcsu.thestore.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMappin... |
kako0507/themeparks | lib/disney/waltdisneyworldhollywoodstudios.js | <reponame>kako0507/themeparks
// import the base Disney park class
import DisneyBase from './index';
// our simple geolocation object library
import GeoLocation from '../geoLocation';
/**
* Walt Disney World Hollywood Studios
* @class
* @extends WaltDisneyWorldPark
*/
class WaltDisneyWorldHollywoodStudios extends ... |
alexhope61/bootstrap | atom/packages/atom-ide-ui/modules/nuclide-commons-ui/index.js | "use strict";
function _nuclideUri() {
const data = _interopRequireDefault(require("../nuclide-commons/nuclideUri"));
_nuclideUri = function () {
return data;
};
return data;
}
function _UniversalDisposable() {
const data = _interopRequireDefault(require("../nuclide-commons/UniversalDisposable"));
... |
kbu34/SENG302 | server/src/test/java/com/springvuegradle/model/ActivityTest.java | package com.springvuegradle.model;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Calendar;
import java.util.GregorianCalendar;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
public class ActivityT... |
moneytree/by_star | spec/by_star/by_month_spec.rb | require 'spec_helper'
describe "by_month" do
def find_posts(time=Time.zone.now, options={})
Post.by_month(time, options)
end
def posts_count(time=Time.zone.now, options={})
find_posts(time, options).count
end
it "should be able to find posts for the current month" do
posts_count.should eql(6)
... |
CarlitoBG/JavaScript-Advanced | 11.UnitTesting-Exercise/test/lookup-char-tests.js | <filename>11.UnitTesting-Exercise/test/lookup-char-tests.js<gh_stars>0
let lookupChar = require("../03.CharLookup").lookupChar
let expect = require("chai").expect
describe("lookupChar", function() {
it("with a non-string first parameter, should return correct message", function() {
expect(lookupChar(13, 0)... |
rexlin600/springboot2-example | spring-boot-java8/src/test/java/xyz/rexlin600/java8/functional/interfaces/ConsumersTest.java | <filename>spring-boot-java8/src/test/java/xyz/rexlin600/java8/functional/interfaces/ConsumersTest.java
package xyz.rexlin600.java8.functional.interfaces;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframew... |
Guestfolio/barometer | lib/barometer/utils/time.rb | module Barometer
module Utils
module Time
def self.parse(*args)
return unless args.compact.size > 0
first_arg = args.first
if first_arg.is_a? ::Time
first_arg
elsif first_arg.is_a?(::DateTime) || first_arg.is_a?(::Date)
::Time.parse(first_arg.to_s)
... |
ChoiJunsik/Sumalyze | audio/forms.py | from django import forms
from .models import AudioPost
class AudioPostForm(forms.ModelForm):
class Meta:
model = AudioPost
fields = ('pdf', 'category','lang', 'title')
|
cquoss/jboss-4.2.3.GA-jdk8 | aspects/src/jdk15/org/jboss/aspects/asynch/FutureImplJavaUtilConcurrent.java | /*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... |
exxdzj/erp | erp-user/src/main/java/com/exx/dzj/entity/dictionary/DictionaryBean.java | package com.exx.dzj.entity.dictionary;
import lombok.Data;
/**
* @Author
* @Date 2019/4/16 0016 16:16
* @Description 字典数据类型
*/
@Data
public class DictionaryBean extends DictionaryInfo {
private String describe;
}
|
vmanley/kas-fleet-manager | internal/kafka/internal/cmd/observatorium/query_range.go | package observatorium
import (
"context"
"encoding/json"
"github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/kafka/internal/api/public"
"github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/kafka/internal/presenters"
"github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/internal/kafka/internal/services... |
utr001/dhis2-android-capture-app | app/src/main/java/org/dhis2/usescases/datasets/dataSetTable/DataSetTableRepositoryImpl.java | <reponame>utr001/dhis2-android-capture-app<gh_stars>0
package org.dhis2.usescases.datasets.dataSetTable;
import com.squareup.sqlbrite2.BriteDatabase;
import org.dhis2.utils.DateUtils;
import org.hisp.dhis.android.core.category.CategoryOptionComboModel;
import org.hisp.dhis.android.core.dataelement.DataElementModel;
i... |
lingranzhishen/passport | src/main/java/com/luglobal/contest/gson/PaginationGson.java | package com.luglobal.contest.gson;
import java.util.List;
/**
* Created by lizehua035 on 2018/6/15.
*/
public class PaginationGson<T> {
private long totalCount;
private long totalPage;
private long currentPage;
private long pageSize=200;
private long nextPage;
private List<T> data;
publi... |
joansmith3/cloudify | security/src/main/java/org/cloudifysource/security/BooleanDelegatingFilterProxy.java | <filename>security/src/main/java/org/cloudifysource/security/BooleanDelegatingFilterProxy.java<gh_stars>100-1000
/*******************************************************************************
* Copyright (c) 2012 GigaSpaces Technologies Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (t... |
scm-manager/scm-issuetracker-plugin | src/main/java/sonia/scm/issuetracker/internal/ChangesetMapper.java | <reponame>scm-manager/scm-issuetracker-plugin
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... |
gdbots/pbj-js | tests/utils/isValidEmail.test.js | import test from 'tape';
import isValidEmail from '../../src/utils/isValidEmail.js';
test('isValidEmail tests', (assert) => {
const valid = [
'<EMAIL>',
'<EMAIL>',
'<EMAIL>',
'<EMAIL>',
'"email"@<EMAIL>',
'email@[172.16.17.3223]',
'user@[2001:DB8::1]',
'<EMAIL>',
'_______<EMAIL>',... |
LIBTechSolutions/orange-fleet | src/reducers/dataElements.js | 'use strict'
import {
INSERT_DATA_ELEMENT, UPDATE_DATA_ELEMENT, DELETE_DATA_ELEMENT
} from '../constants/ActionTypes'
const initialState = []
export default function dataElements (state = initialState, action) {
switch (action.type) {
case INSERT_DATA_ELEMENT:
return [
action.item,
...s... |
crockmitnic/question-paper-generator | flaskapp/blueprints/questions/forms.py | from flask_wtf import FlaskForm
from wtforms import BooleanField
from wtforms import IntegerField
from wtforms import SelectField
from wtforms import StringField
from wtforms import SubmitField
from wtforms import TextAreaField
from wtforms.validators import DataRequired
from wtforms.validators import Length
from wtfor... |
felichio/functionjs | test/chain.test.js | <filename>test/chain.test.js
let r = require("../dist/radiance");
const result = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3];
test("function: chain -> r.chain(r.range(1, 5))(x => r.range(1, 4)) === [1, 2, 3, 1, 2, 3, 1]", () => {
return expect(r.chain(r.range(1, 5))(x => r.range(1, 4))).toEqual(result);
});
test("func... |
Jeanmilost/Visual-Mercutio | Visual Mercutio/zSplash/PSS_SplashController.h | /****************************************************************************
* ==> PSS_SplashController ------------------------------------------------*
****************************************************************************
* Description : Splash screen controller, allows to run a splash screen *
* ... |
JaccoVeldscholten/e-inkOctoDisplay | lib/GxEPD/src/imglib/gridicons_reader_follow.h | <reponame>JaccoVeldscholten/e-inkOctoDisplay<filename>lib/GxEPD/src/imglib/gridicons_reader_follow.h<gh_stars>100-1000
#if defined(ESP8266) || defined(ESP32)
#include <pgmspace.h>
#else
#include <avr/pgmspace.h>
#endif
// 24 x 24 gridicons_reader_follow
const unsigned char gridicons_reader_follow[] PROGMEM = { /* 0X01,... |
sissxx/JavaScript | 8. Associative Arrays/lab/storage.js | <reponame>sissxx/JavaScript<filename>8. Associative Arrays/lab/storage.js
function storage(input) {
let storageMap = new Map();
for (let string of input) {
let tokens = string.split(' ');
let product = tokens[0];
let quantity = Number(tokens[1]);
if (!storageMap.has(product)) ... |
Marcos-Correia/incubator-samoa | samoa-api/src/main/java/org/apache/samoa/streams/fs/HDFSFileStreamSource.java | <reponame>Marcos-Correia/incubator-samoa<filename>samoa-api/src/main/java/org/apache/samoa/streams/fs/HDFSFileStreamSource.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
* reg... |
mzhg/PostProcessingWork | testframewok/src/main/java/jet/opengl/demos/nvidia/waves/crest/collision/SampleHeightHelper.java | <gh_stars>10-100
package jet.opengl.demos.nvidia.waves.crest.collision;
import org.lwjgl.util.vector.ReadableVector3f;
import org.lwjgl.util.vector.Vector3f;
import jet.opengl.demos.nvidia.waves.crest.OceanRenderer;
import jet.opengl.demos.nvidia.waves.crest.SamplingData;
import jet.opengl.postprocessing.util.Numeric... |
Project2CITM/Proyecto2 | Source/ParticleAttackRevenant.h | <filename>Source/ParticleAttackRevenant.h
#ifndef __PARTICLE_ATTACK_REVENANT_H__
#define __PARTICLE_ATTACK_REVENANT_H__
#include "Particle.h"
#include "ModuleRender.h"
class ParticleAttackRevenant : public Particle
{
public:
ParticleAttackRevenant(iPoint position,int rot = 0, float life = 0, float delay = 0, bool ... |
htlcnn/ironpython-stubs | release/stubs.min/Autodesk/Revit/DB/__init___parts/PropertySetElement.py | class PropertySetElement(Element,IDisposable):
""" An element that groups together a set of related parameters. """
@staticmethod
def Create(document,*__args):
"""
Create(document: Document,structuralAsset: StructuralAsset) -> PropertySetElement
Creates a new PropertySetElement to contain the gi... |
WenRou-Pan/pin | server/src/main/java/com/pinche/domain/request/PublishOrderRequest.java | package com.pinche.domain.request;
import com.pinche.domain.address.GeoAddress;
import com.pinche.domain.order.TimeDTO;
import javax.validation.constraints.NotNull;
/**
* @author Parmaze
* @date 2021/12/16
*/
public class PublishOrderRequest extends BaseRequest {
/**
* 起点
*/
@NotNull(message = "... |
addstone/unrealengine3 | Development/External/wxWindows_2.4.0/include/wx/univ/theme.h | <filename>Development/External/wxWindows_2.4.0/include/wx/univ/theme.h
///////////////////////////////////////////////////////////////////////////////
// Name: wx/univ/theme.h
// Purpose: wxTheme class manages all configurable aspects of the
// application including the look (wxRenderer), feel
/... |
mexicowilly/Yella | agent/plugin/file/state_db_pool.h | #ifndef YELLA_STATE_DB_POOL_H__
#define YELLA_STATE_DB_POOL_H__
#include "plugin/file/state_db.h"
typedef struct state_db_pool state_db_pool;
YELLA_PRIV_EXPORT state_db_pool* create_state_db_pool(void);
YELLA_PRIV_EXPORT void destroy_state_db_pool(state_db_pool* pool);
YELLA_PRIV_EXPORT state_db* get_state_db_from_p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.