repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
yeepio/yeep | admin_ui/app/role/RoleEditPage.js | <reponame>yeepio/yeep
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from '@reach/router';
import useDocumentTitle from '@rehooks/document-title';
import { useDispatch, useSelector } from 'react-redux';
import find from 'lodash/find';
import RoleDeleteModal from './RoleDeleteModal';
impo... |
centraldesktop/capistrano | lib/capistrano/configuration/actions/inspect.rb | require 'capistrano/errors'
module Capistrano
class Configuration
module Actions
module Inspect
# Streams the result of the command from all servers that are the
# target of the current task. All these streams will be joined into a
# single one, so you can, say, watch 10 log files ... |
Praetonus/ShaderWriter | source/ShaderWriter/BaseTypes/Sampler.cpp | <gh_stars>100-1000
/*
See LICENSE file in root folder
*/
#include "ShaderWriter/BaseTypes/Sampler.hpp"
namespace sdw
{
Sampler::Sampler( ShaderWriter & writer
, expr::ExprPtr expr
, bool enabled )
: Value{ writer, std::move( expr ), enabled }
{
}
Sampler::operator uint32_t()
{
return 0u;
}
ast::type::... |
bavardage/plottable | quicktests/quicktests/animate_line.js | <gh_stars>0
// Will receive function arguments: (svg, data, Plottable)
var doAnimate = true;
var lineRenderer;
var xScale = new Plottable.Scale.Linear();
var xAxis = new Plottable.Axis.XAxis(xScale, "bottom");
var yScale = new Plottable.Scale.Linear();
var yAxis = new Plottable.Axis.YAxis(yScale, "left");
lineRender... |
jddixon/xlCoreXml_java | src/java/org/xlattice/corexml/bind/TextBinding.java | <gh_stars>0
/* TextBinding.java */
package org.xlattice.corexml.bind;
import org.xlattice.corexml.CoreXmlException;
import org.xlattice.corexml.om.Element;
import org.xlattice.corexml.om.Node;
import org.xlattice.corexml.om.Text;
/**
* Bind a text value in an XML element to the value of the named
* field in the as... |
mimifitz/IOMED | node_modules/@elastic/eui/test-env/components/datagrid/data_grid_inmemory_renderer.js | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EuiDataGridInMemoryRenderer = void 0;
var _slicedToArra... |
simphony/osp-core | osp/wrappers/sqlite/sqlite_session.py | """A session to connect osp-core to a SQLite backend."""
import sqlite3
import rdflib
from osp.core.ontology.cuba import rdflib_cuba
from osp.core.session.db.sql_util import EqualsCondition, AndCondition, \
JoinCondition
from osp.core.session.db.sql_wrapper_session import SqlWrapperSession
class SqliteSession(Sq... |
SURAJGUPTA0414/javaprojects | women-empowerment-master-main-main/src/main/java/com/capgemini/exception/NoSuchRecordException.java | <reponame>SURAJGUPTA0414/javaprojects<gh_stars>0
package com.capgemini.exception;
public class NoSuchRecordException extends RuntimeException
{
/**
*
*/
private static final long serialVersionUID = 1L;
public NoSuchRecordException()
{}
public NoSuchRecordException(String msg)
{
super(msg);
... |
BytemarkHosting/bytemark-client | cmd/bytemark/commands/admin/delete_test.go | <reponame>BytemarkHosting/bytemark-client<filename>cmd/bytemark/commands/admin/delete_test.go
package admin_test
import (
"fmt"
"testing"
"github.com/BytemarkHosting/bytemark-client/cmd/bytemark/commands/admin"
"github.com/BytemarkHosting/bytemark-client/cmd/bytemark/testutil"
"github.com/cheekybits/is"
)
func ... |
DemetriusHR/AutoAtendimentoMarcusVinicius | packages/Server/src/core/repositories/login/index.js | <filename>packages/Server/src/core/repositories/login/index.js
const pool = require('../../../shared/connection');
function loginRepository(cpf, tel, senha) {
return new Promise(async function (resolve, reject) {
pool.connect(function (err, client, done) {
if (err) {
reject(err);
console.lo... |
consulo-trash/consulo-hibernate | plugin/src/main/java/com/intellij/hibernate/model/xml/mapping/HbmLoadCollection.java | <filename>plugin/src/main/java/com/intellij/hibernate/model/xml/mapping/HbmLoadCollection.java
// Generated on Fri Nov 17 19:09:30 MSK 2006
// DTD/Schema : hibernate-mapping-3.0.dtd
package com.intellij.hibernate.model.xml.mapping;
import java.util.List;
import javax.annotation.Nonnull;
import com.intellij.hibe... |
Hendrikto/jena | jena-geosparql/src/test/java/org/apache/jena/geosparql/spatial/ConvertLatLonBoxTest.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 ... |
Sajaki/intellij-community | java/java-tests/testData/refactoring/extractMethodNew/VerboseArrayAccess.java | class Test {
void foo(String[] ss) {
for(int i = 0; i < ss.length; i++) {
<selection>
System.out.println(ss[i]);
System.out.println(ss[i + 1]);
</selection>
}
}
} |
asposemarketplace/Aspose-Pdf-Java | src/programmersguide/workingwithasposepdf/workingwithannotations/getparticularannotationfrompdffile/java/GetParticularAnnotationFromPDFFile.java | <reponame>asposemarketplace/Aspose-Pdf-Java
/*
* Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Pdf. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.... |
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/Runtime/Engine/Classes/Engine/PendingNetGame.h | <gh_stars>1-10
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UObjectGlobals.h"
#include "UObject/Object.h"
#include "Engine/EngineBaseTypes.h"
#include "NetworkDelegates.h"
#include "PendingNetGame.generated.h"
c... |
TacocaTYT/Tetra-Pak | src/main/java/mod/noobulus/tetrapak/loot/GenericModifierSerializer.java | package mod.noobulus.tetrapak.loot;
import com.google.gson.JsonObject;
import net.minecraft.loot.conditions.ILootCondition;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.loot.GlobalLootModifierSerializer;
import net.minecraftforge.common.loot.LootModifier;
import java.util.function.Func... |
myArea51/binnavi | src/main/java/com/google/security/zynamics/binnavi/disassembly/INaviTextNodeListener.java | <gh_stars>10-100
/*
Copyright 2011-2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... |
peeesspee/BitOJ | Client_Linux/manage_code.py | <gh_stars>10-100
import time
import os
import json
from login import authenticate_login
from connection import manage_connection
# Class to handle sending of code
class send_code():
client_id, username = authenticate_login.get_user_details()
channel,host = manage_connection.channel_host()
extention = None
# Solu... |
bjhall/loqusdb | tests/vcf_tools/test_check_vcf.py | <reponame>bjhall/loqusdb
import pytest
from loqusdb.utils.vcf import (check_vcf, get_vcf)
from loqusdb.exceptions import VcfError
def test_check_vcf_correct(vcf_path):
## GIVEN a vcf file and a counter that checks the number of variants
true_nr = 0
with open(vcf_path, 'r') as f:
for line in f... |
KihongHeo/petablox | src/petablox/analyses/syntax/RelDivExpr.java | package petablox.analyses.syntax;
import petablox.program.visitors.IExprVisitor;
import petablox.project.Petablox;
import petablox.project.analyses.ProgramRel;
import soot.SootClass;
import soot.SootMethod;
import soot.Unit;
import soot.Value;
import soot.jimple.DivExpr;
@Petablox(name = "DivExpr", sign = "EXPR0,EXPR... |
grinisrit/tnl-dev | src/TNL/base64.h | <reponame>grinisrit/tnl-dev
// Copyright (c) 2004-2022 <NAME> et al.
//
// This file is part of TNL - Template Numerical Library (https://tnl-project.org/)
//
// SPDX-License-Identifier: MIT
#pragma once
#include <cstddef>
#include <cstdint>
#include <memory>
#include <utility>
#include <stdexcept>
#include <cmath> ... |
CezaryGoralski/samoa-test | samoa-api/src/main/java/org/apache/samoa/streams/generators/HyperplaneGenerator.java | package org.apache.samoa.streams.generators;
/*
* #%L
* SAMOA
* %%
* Copyright (C) 2014 - 2015 Apache Software 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
*
* ... |
0katekate0/WxJava | weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroup.java | <reponame>0katekate0/WxJava<filename>weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/guide/WxMpGuideGroup.java
package me.chanjar.weixin.mp.bean.guide;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.common.bean.ToJson;
import me.chanjar.weixin.common.util.json.Wx... |
trc492/Frc2011Logomotion | code/WPILib/ChipObject/ExpectedFPGASignature.h | // Copyright (c) National Instruments 2008. All Rights Reserved.
// Do Not Edit... this file is generated!
#ifndef __n2EAA5E59CAF1A8A966853A011B61CC91_ExpectedFPGASignature_h__
#define __n2EAA5E59CAF1A8A966853A011B61CC91_ExpectedFPGASignature_h__
namespace nFPGA
{
namespace n2EAA5E59CAF1A8A966853A011B61CC91
{
st... |
fengli12321/Socket.io-FLSocketIM-Android | app/src/main/java/com/foxpower/flchatofandroid/model/MessageBody.java | package com.foxpower.flchatofandroid.model;
import com.foxpower.flchatofandroid.enums.MessageType;
import org.json.JSONObject;
import java.util.HashMap;
/**
* Created by fengli on 2018/2/8.
*/
public class MessageBody extends BaseModel {
/*公共*/
private MessageType type;
/*文本*/
private String ms... |
aalbinclark/doi | app/models/doi_registration_agent.rb | <gh_stars>10-100
class DoiRegistrationAgent < ActiveRecord::Base
has_many :records
end |
jnvshubham7/CPP_Programming | A_Permutation_Grid.cpp | #include <iostream>
#include <set>
#include <algorithm>
#include <vector>
#include <map>
#include <string>
using namespace std;
int main(void){
int n,q,i,x,y;
vector<int> r,c;
cin >> n;
r.resize(n);
c.resize(n);
for(i=0;i<n;i++) cin >> r[i];
for(i=0;i<n;i++) cin >> c[i];
cin >> q;
for(i=0;i<q;i++){
cin >> x ... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/HomeKitDaemon/HMDAccountHandleResolveOperation.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "HMFOperation.h"
#import "HMFLogging.h"
#import "IDSServiceDelegate.h"
@class HMDAccountHandle, HMDIDSMessageContext, IDSService, NSMutableArray, NSString;
@interface HMDAccoun... |
bogus-sudo/ONE-1 | runtime/onert/backend/cpu/kernel/CompareLayer.cc | <reponame>bogus-sudo/ONE-1<filename>runtime/onert/backend/cpu/kernel/CompareLayer.cc
/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. 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 co... |
n1603/metalk8s | salt/tests/unit/modules/test_metalk8s_checks.py | <gh_stars>0
import os.path
from unittest import TestCase
from unittest.mock import MagicMock, patch
from parameterized import parameterized
from salt.exceptions import CheckError
import yaml
import metalk8s_checks
from tests.unit import mixins
from tests.unit import utils
YAML_TESTS_FILE = os.path.join(
os.pat... |
fountainment/fountain-engine-improved | fountain/base/funcUtil.h | <reponame>fountainment/fountain-engine-improved<gh_stars>0
#ifndef _FEI_FUNCUTIL_H_
#define _FEI_FUNCUTIL_H_
#include "base/basedef.h"
namespace fei {
template <class T>
inline std::function<void()> deleteFunc(T t)
{
return [t](){delete t;};
}
inline std::function<void()> funcVector(std::vector<std::function<void(... |
dram/metasfresh | backend/de.metas.handlingunits.base/src/main/java/de/metas/handlingunits/exceptions/HUNotAssignableException.java | <reponame>dram/metasfresh<filename>backend/de.metas.handlingunits.base/src/main/java/de/metas/handlingunits/exceptions/HUNotAssignableException.java<gh_stars>1000+
package de.metas.handlingunits.exceptions;
import de.metas.handlingunits.model.I_M_HU;
import de.metas.util.Check;
/**
* Exception thrown when an HU is n... |
Dylan-haiji/javayh-cloud | javayh-mq/javayh-rabbit/src/main/java/com/javayh/config/TopicRabbitConfig.java | package com.javayh.config;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation... |
sonnguyenxcii/PdfViewer | office/src/main/java/com/wxiwei/office/thirdpart/emf/EMFTag.java | <filename>office/src/main/java/com/wxiwei/office/thirdpart/emf/EMFTag.java
// Copyright 2001, FreeHEP.
package com.wxiwei.office.thirdpart.emf;
import java.io.IOException;
import com.wxiwei.office.thirdpart.emf.data.GDIObject;
import com.wxiwei.office.thirdpart.emf.io.Tag;
import com.wxiwei.office.thirdpart.emf.io.T... |
thong-hoczita/bigbluebutton | bigbluebutton-web/src/java/org/bigbluebutton/api/messaging/converters/messages/EndMeetingMessage.java | package org.bigbluebutton.api.messaging.converters.messages;
public class EndMeetingMessage {
public static final String END_MEETING_REQUEST_EVENT = "end_meeting_request_event";
public static final String VERSION = "0.0.1";
public final String meetingId;
public EndMeetingMessage(String meetingId) {
this.meet... |
TUZIHULI/magnum | src/Magnum/Math/Geometry/Test/IntersectionTest.cpp | <reponame>TUZIHULI/magnum
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014
<NAME> <<EMAIL>>
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 Softwa... |
Kyle9021/trireme-lib | controller/internal/supervisor/iptablesctrl/instance.go | <reponame>Kyle9021/trireme-lib
package iptablesctrl
import (
"context"
"fmt"
"os"
"strings"
"go.aporeto.io/enforcerd/trireme-lib/controller/constants"
provider "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/aclprovider"
"go.aporeto.io/enforcerd/trireme-lib/controller/pkg/ebpf"
"go.aporeto.io/enforcerd/tr... |
kokizzu/thrust | src/browser/session/thrust_session.cc | // Copyright (c) 2014 <NAME>.
// See the LICENSE file.
#include "src/browser/session/thrust_session.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/threading/thread.h"
#include "base/strings/stringprintf.h"
#include "base/strings/st... |
tusharchoudhary0003/Custom-Football-Game | sources/com/flurry/sdk/C7609v.java | package com.flurry.sdk;
/* renamed from: com.flurry.sdk.v */
class C7609v extends C7364Cd {
/* renamed from: d */
final /* synthetic */ C7382G f15109d;
C7609v(C7382G g) {
this.f15109d = g;
}
/* renamed from: a */
public final void mo23803a() {
this.f15109d.m16341k();
}
}
|
NaturalHistoryMuseum/taxonworks | db/migrate/20140306152916_change_col_ne_geo_item_id.rb | <gh_stars>10-100
class ChangeColNeGeoItemId < ActiveRecord::Migration[4.2]
def change
remove_column :geographic_areas, :ne_geo_item_id
add_column :geographic_areas, :ne_geo_item_id, :integer
end
end
|
abdzitter/Daily-Coding-DS-ALGO-Practice | Gfg/C++/rangeQuery.cpp | <filename>Gfg/C++/rangeQuery.cpp
#include <bits/stdc++.h>
using namespace std;
int block;
// Structure to represent a query range
struct Query {
int L, R, index;
};
bool compare(Query x, Query y)
{
// Different blocks, sort by block.
if (x.L / block != y.L / block)
return x.L / block < y.L / block;
// Same b... |
linyingzhen/btnew | src/shop/auction/Detail/ds.js | <gh_stars>0
/**
* const prefixCls = 'style-390394';
* const images = '/static/images/src/shop/auction/Detail';
* @Author: czy0729
* @Date: 2018-09-11 14:15:36
* @Last Modified by: czy0729
* @Last Modified time: 2018-11-15 09:28:13
* @Path m.benting.com.cn /src/shop/auction/Detail/ds.js
*/
import Utils from '@ut... |
maciejg-git/vue-bootstrap-icons | dist-mdi/mdi/table-eye-off.js | import { h } from 'vue'
export default {
name: "TableEyeOff",
vendor: "Mdi",
type: "",
tags: ["table","eye","off"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-table-e... |
tfilo/my-cookery-book | src/main/java/sk/filo/recipes/so/UnitCategorySO.java | <gh_stars>0
package sk.filo.recipes.so;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
*
* @author tomas
*/
@Getter
@Setter
@... |
jamacanbacn/splits-io | app/javascript/colors.js | const blue = 'rgba(14, 144, 210, 1)'
const purple = 'rgba(128, 87, 165, 1)'
const green = 'rgba(94, 185, 94, 1)'
const yellow = 'rgba(250, 200, 50, 1)'
const red = 'rgba(221, 81, 76, 1)'
const orange = 'rgba(243, 123, 29, 1)'
const logoYellow = 'rgba(245, 185, 70, 1)'
const logoBlue = 'rgba(70, 156, 230, 1)'
const log... |
WCry/demo | springboot-demo/springboot2.X/springboot2.2.x/springboot-first/src/main/java/com/zxp/controller/HelloController.java | package com.zxp.controller;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.zxp.dto.TestDateDTO;
import com.zxp.scope.SingleAService;
import com.zxp.scope.SingleCService;
import lombok.extern.s... |
cetico/lit-remixicon | svg/system/download-line.js | import { svg } from 'lit';
export const file = svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"/>
</g>
</svg>
`;
export default fi... |
inexistence/VideoMeeting | Client/VMeeting/app/src/main/java/com/jb/vmeeting/mvp/presenter/RoomFilesPresenter.java | <gh_stars>10-100
package com.jb.vmeeting.mvp.presenter;
import com.jb.vmeeting.R;
import com.jb.vmeeting.app.App;
import com.jb.vmeeting.mvp.model.apiservice.RoomService;
import com.jb.vmeeting.mvp.model.entity.Result;
import com.jb.vmeeting.mvp.model.entity.Room;
import com.jb.vmeeting.mvp.model.entity.RoomFiles;
imp... |
Wimoto/iOS | code/Wimoto/Shared/Classes/SensorDetailsScreens/SensorViewController.h | //
// SensorViewController.h
// Wimoto
//
// Created by MC700 on 12/13/13.
//
//
#define SENSOR_VALUE_PLACEHOLDER @"--"
#import "AppViewController.h"
#import "Sensor.h"
#import "NMRangeSlider.h"
#import "AlarmSlider.h"
#import "LastUpdateLabel.h"
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComp... |
rnarla123/aliyun-openapi-java-sdk | aliyun-java-sdk-dts/src/main/java/com/aliyuncs/dts/transform/v20200101/StopDtsJobsResponseUnmarshaller.java | <reponame>rnarla123/aliyun-openapi-java-sdk
/*
* 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 agr... |
schregardusc/dishtiny | include/dish2/peripheral/readable_state/writable_state/controller_mapped_state/ResourceSendLimit.hpp | <gh_stars>1-10
#pragma once
#ifndef DISH2_PERIPHERAL_READABLE_STATE_WRITABLE_STATE_CONTROLLER_MAPPED_STATE_RESOURCESENDLIMIT_HPP_INCLUDE
#define DISH2_PERIPHERAL_READABLE_STATE_WRITABLE_STATE_CONTROLLER_MAPPED_STATE_RESOURCESENDLIMIT_HPP_INCLUDE
#include "../../../../../../third-party/conduit/include/uitsl/datastructs... |
kupl/starlab-benchmarks | Benchmarks_with_Safety_Bugs/C/recutils-1.8/src/src/rec-sex.c | /* -*- mode: C -*-
*
* File: rec-sex.c
* Date: Sat Jan 9 20:28:43 2010
*
* GNU recutils - Record Selection Expressions.
*
*/
/* Copyright (C) 2010-2019 <NAME> */
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General P... |
manuelperuzzi/scafi | simulator-gui/src/main/scala/it/unibo/scafi/simulation/gui/view/GuiNodeListeners.scala | /*
* Copyright (C) 2016-2017, <NAME>, <NAME>, and contributors.
* See the LICENCE.txt file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
picatrix1899/barghos | barghos-core/src/main/java/org/barghos/core/api/event/CancellableEvent.java | package org.barghos.core.api.event;
/**
* This interface represents a cancellable event within the event system.
*
* @author picatrix1899
*/
public interface CancellableEvent extends Event
{
/**
* Sets the cancelleation status of this event.
*
* @param isCancelled Setting this to true will mark the event ... |
lixiaoyuner/bym | tyadmin/node_modules/@umijs/plugin-ui-blocks/src/sdk/flagBabelPlugin/fixtures/pro-table/expected.js | import { DownOutlined, PlusOutlined } from '@ant-design/icons';
import { Button, Divider, Dropdown, Menu, message } from 'antd';
import React, { useState, useRef } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table';
import {... |
avdv/daml | ledger/ledger-api-tests/suites/src/main/scala/com/daml/ledger/api/testtool/suites/v1_8/CompletionDeduplicationInfoIT.scala | <filename>ledger/ledger-api-tests/suites/src/main/scala/com/daml/ledger/api/testtool/suites/v1_8/CompletionDeduplicationInfoIT.scala<gh_stars>0
// Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package com.daml.ledger.api.testtool.... |
Schinzel/basic-utils | src/main/java/io/schinzel/basicutils/UTF8.java | <reponame>Schinzel/basic-utils<filename>src/main/java/io/schinzel/basicutils/UTF8.java
package io.schinzel.basicutils;
import java.nio.charset.StandardCharsets;
/**
* The purpose of this class is to convert strings into UTF-8 byte arrays and vice versa.
* Created by schinzel on 2017-04-30.
*/
public class UTF8 {
... |
lazycathome/study | collection/encrypt/src/main/java/cn/bigdb/dh/DHJDK.java | <reponame>lazycathome/study<filename>collection/encrypt/src/main/java/cn/bigdb/dh/DHJDK.java
package cn.bigdb.dh;
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.KeyFactory;
im... |
bonybody/2020_hew_app | front/plugins/my-auth/my-auth.js | <reponame>bonybody/2020_hew_app<gh_stars>1-10
export default function ({$auth, redirect}, inject) {
const myAuth = new MyAuth($auth, redirect)
inject('myAuth', myAuth)
}
class MyAuth {
constructor(auth, redirect) {
this.auth = auth
this.redirect = redirect
}
login(email, password) {
... |
fscheung/drill | exec/java-exec/src/test/java/org/apache/drill/exec/store/json/TestJsonReader.java | <reponame>fscheung/drill
/*
* 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... |
besscroft/imeta-cloud | pisces-auth/src/main/java/com/besscroft/pisces/auth/exception/Oauth2ExceptionHandler.java | package com.besscroft.pisces.auth.exception;
import com.besscroft.pisces.framework.common.result.AjaxResult;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
im... |
vskurikhin/daybook | src/main/java/su/svn/showcase/dao/jpa/TagDaoEjb.java | /*
* This file was last modified at 2020.03.04 23:17 by <NAME>.
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
* TagDaoEjb.java
* $Id: 54f8ba6101b97fe2f32f9652a81be8c5583f57e3 $
*/
package su.svn.showcase.dao.jpa;
import o... |
mylxsw/GoLangStudy | design/facade/system.go | package facade
import "fmt"
type SystemA struct{}
func (sys *SystemA) operationA() {
fmt.Println("SystemA operationA")
}
type SystemB struct{}
func (sys *SystemB) operationB() {
fmt.Println("SystemB operationB")
}
type SystemC struct{}
func (sys *SystemC) operationC() {
fmt.Println("SystemC operationC")
}
|
pacman616/hybrid-fenwick-tree | test/rankselect/like_dynamic.hpp | #ifndef __TEST_RANKSELECT_LIKE_DYNAMIC_HPP__
#define __TEST_RANKSELECT_LIKE_DYNAMIC_HPP__
#include "../utils.hpp"
#include <dynamic.hpp>
TEST(rankselect_like_dynamic, random)
{
using namespace std;
using namespace hft;
static std::mt19937 mte;
constexpr size_t SIZE = 1000;
std::uint64_t *bitve... |
liaoqingmiao/sfgantt-gantt-chart | BASE/gantt/control/SFGanttDragZoomControl.js | /**
这是一个甘特图功能控件,本控件实现在拖动甘特图的日历层的时候,进行甘特图图表的缩放操作
@private
@extends SFGanttControl
@class
*/
function SFGanttDragZoomControl()
{
}
SFGanttDragZoomControl.prototype=new window.SFGanttControl();
/**
@private
功能控件的初始化,每个插件的实现都会重写此方法
@param {SFGantt} gantt
@returns {Bool} 如果初始化成功,返回true,否则返回false
*/
SFGanttD... |
oremj/zamboni | mkt/inapp_pay/utils.py | import logging
import urlparse
import requests
import amo
log = logging.getLogger('z.inapp_pay.utils')
def send_pay_notice(notice_type, signed_notice, config, contrib,
notifier_task):
"""
Send app a notification about a payment or chargeback.
Parameters:
**notice_type**
... |
frank1147/vr-sandbox | src/js/car.refactor.js | <gh_stars>0
import CarCameraControls from './a-car/car/CarCameraControls';
import {
findClosestEntity, getPosition, getWorldDirection, getWorldPosition, lookAtAndOrient, playSound, setPosition,
toast
} from './utils/aframe-utils';
import {getPlayer} from './game-utils';
import {FPSCtrl} from './utils/fps-utils';
ex... |
NUARIG/redcap2omop | spec/models/redcap2omop/device_exposure_spec.rb | <reponame>NUARIG/redcap2omop<filename>spec/models/redcap2omop/device_exposure_spec.rb
require 'rails_helper'
require 'support/shared_examples/with_next_id'
module Redcap2omop
RSpec.describe DeviceExposure, type: :model do
let(:device_exposure) { FactoryBot.create(:device_exposure) }
let(:subject) { de... |
eryjus/century-os | modules/kernel/src/interrupts/IsrUnregister.cc | <gh_stars>10-100
//===================================================================================================================
//
// IsrUnregister.cc -- Unregister an ISR Handler
//
// Copyright (c) 2017-2020 -- <NAME>
// Licensed under "THE BEER-WARE LICENSE"
// See License.md for detail... |
NextJS-projects/simple-site | src/store/app/reducers/AppReducer.js | <reponame>NextJS-projects/simple-site<gh_stars>1-10
//constants
import { updateObject } from '../../../constants/Helpers';
//action
import { SET_TEST_ACTION } from '../AppActionTypes';
const initialState = {
testString: 'Initial test',
};
const reducer = (state = initialState, action) => {
switch (action.type) {
... |
dbo1001/Gestor-TFG-2021 | src/main/java/ubu/digit/security/LoginUbuVirtual.java | package ubu.digit.security;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import okhttp3.FormBody;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import org.json.JSONObject;
import ... |
tangweikun/leetcode | src/268-missing-number/pro.js | export function missingNumber(nums) {
let missing = nums.length;
for (let i = 0; i < nums.length; i++) {
missing ^= i ^ nums[i];
}
return missing;
}
|
jonfisik/ScriptsPython | Scripts5/Script44.py | '''Elabore um programa que calcule o valr a ser pago por um porduto, considerando o seu preço normal e condição de pagamento:
- à vista dinheiro/cheque: 10% de desconto;
- à vista no cartão: 5% de desconto;
- em até 2x no cartão: preço normal;
- 3x ou mais no cartão: 20% de juros.'''
print('=+=+=+=+=+=+=+=+='*3)
titul... |
18380460383/eshare | app/src/main/java/com/kzmen/sczxjf/imagepicker/util/BitmapUtil.java | <filename>app/src/main/java/com/kzmen/sczxjf/imagepicker/util/BitmapUtil.java
package com.kzmen.sczxjf.imagepicker.util;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
import android.net.Uri;
import... |
timgates42/netcdf4-python | test/tst_compoundvar.py | <filename>test/tst_compoundvar.py
import sys
import unittest
import os
import tempfile
from netCDF4 import Dataset, CompoundType
import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
# test compound data types.
FILE_NAME = tempfile.NamedTemporaryFile(suffix='.nc', delete=False).na... |
shiruka/network | src/main/java/io/github/shiruka/network/packets/ConnectedPong.java | package io.github.shiruka.network.packets;
import io.github.shiruka.network.PacketBuffer;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.jetbrains.annotations.NotNull;
/**
* a class that represents connected pong packets.
*/
@Getter
@Setter
@Accessors(fluent = true)
pub... |
renfei-net/WinterEE | WinterEE-Core-Serve/src/main/java/com/winteree/core/dao/FilesDOMapper.java | <filename>WinterEE-Core-Serve/src/main/java/com/winteree/core/dao/FilesDOMapper.java
package com.winteree.core.dao;
import com.winteree.core.dao.entity.FilesDO;
import com.winteree.core.dao.entity.FilesDOExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java... |
Mastersnes/YouLose | core/src/com/bebel/youlose/screens/menu/vitre/MenuVitre.java | package com.bebel.youlose.screens.menu.vitre;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.bebel.youlose.components.actions.FinishRunnableAction;
import com.bebel.youlose.components.refound.actors.ui.ImageActor;
import com.bebel.youlose.components.runnable.... |
dmareddx/client-sdk | lib/prot/to2/msg46.c | <gh_stars>1-10
/*
* Copyright 2020 Intel Corporation
* SPDX-License-Identifier: Apache 2.0
*/
/*!
* \file
* \brief This file implements msg46 of TO2 state machine.
*/
#include "sdoprot.h"
#include "sdokeyexchange.h"
#include "util.h"
/**
* msg46() - TO2.Next_device_service_info
* --- Message Format Begins --... |
orion-lab/orion-server-side-starter | shared/hooks/check-permission/__tests__/index.js | <filename>shared/hooks/check-permission/__tests__/index.js
import checkPermission from '../';
describe('checkPermission', () => {
const emptyHook = { data: {}, result: {} };
const appComplete = {
service: jest.fn(() => ({
async get() {
throw new Error('Cannot find user with that ID');
},
... |
eirTony/BelaRust | brCommon/src/libs/data/brStone/brStone.h | <gh_stars>0
#ifndef BRSTONE_H
#define BRSTONE_H
#include "brstone_global.h"
#include <brBase/ModuleInfo.h>
#include <brType/Singleton.h>
class BRSTONESHARED_EXPORT brStone: public ModuleInfo
{
DECLARE_SINGLETON(brStone)
};
#endif // BRSTONE_H
|
syngenta-digital/dta-python | syngenta_digital_dta/common/publisher.py | import boto3
import simplejson as json
from syngenta_digital_dta.common import logger
def publish(**kwargs):
if not kwargs.get('arn') or not kwargs.get('data'):
return
try:
publisher = boto3.client('sns', region_name=kwargs.get('region'), endpoint_url=kwargs.get('endpoint'))
publisher... |
svdpuranik/BLE_SDK6_examples | connectivity/BLE2IR/src/custom_profile/user_custs1_def.h | /**
****************************************************************************************
*
* @file user_custs1_def.h
*
* @brief Custom Server 1 (CUSTS1) profile database definitions.
*
* Copyright (c) 2016-2018 Dialog Semiconductor. All rights reserved.
*
* This software ("Software") is owned by Dialog Sem... |
j-benson/advent-of-code | 2020/solvers/advent_11_test.py | import solvers.advent_11_1 as advent_11_1
import solvers.advent_11_2 as advent_11_2
from solvers.advent_11_1 import WaitingArea
input = [
'L.LL.LL.LL',
'LLLLLLL.LL',
'L.L.L..L..',
'LLLL.LL.LL',
'L.LL.LL.LL',
'L.LLLLL.LL',
'..L.L.....',
'LLLLLLLLLL',
'L.LLLLLL.L',
'L.LLLLL.LL',
]
def test_1():
as... |
akiezun/hampi | src/hampi/utils/Histogram.java | <reponame>akiezun/hampi
package hampi.utils;
import java.io.Serializable;
import java.util.*;
import java.util.Map.Entry;
/**
* Keeps track of how many objects of different kinds are inserted into it.
*/
public final class Histogram<T> implements Serializable{
private static final long serialVersionUID = 7401... |
spoke-d/thermionic | internal/cluster/membership/package_test.go | <filename>internal/cluster/membership/package_test.go
package membership_test
import (
"context"
"fmt"
"net"
"reflect"
"runtime"
"testing"
"time"
dqlite "github.com/CanonicalLtd/go-dqlite"
rafthttp "github.com/CanonicalLtd/raft-http"
"github.com/golang/mock/gomock"
"github.com/spoke-d/thermionic/internal/c... |
maachang/quina | project/src/main/java/quina/component/annotation/ResponseSwitch.java | package quina.component.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import quina.annotation.Switch;
/**
* HttpResponse返却のモードを設定するAnnotation.
*
* quina.component.Componentインターフェイスを継承した
... |
litlpoet/beliefbox | src/algorithms/DiscreteBanditPolicy.h | /* -*- Mode: C++; -*- */
/* VER: $Id: Policy.h,v 1.8 2006/10/23 08:33:24 olethros Exp cdimitrakakis $*/
// copyright (c) 2006-2007 by <NAME>
// <<EMAIL>>
/***************************************************************************
* *
* This pr... |
joaotux/pdv | src/main/java/net/originmobi/pdv/model/NotaFiscal.java | <filename>src/main/java/net/originmobi/pdv/model/NotaFiscal.java
package net.originmobi.pdv.model;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Time;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persisten... |
jasonLiu001/invest-service | src/main/java/cn/lands/liuwang/investservice/model/query/QueryListBeforeTime.java | package cn.lands.liuwang.investservice.model.query;
public class QueryListBeforeTime extends QueryListBase {
private String beforeTimeStr;
public String getBeforeTimeStr() {
return beforeTimeStr;
}
public void setBeforeTimeStr(String beforeTimeStr) {
this.beforeTimeStr = beforeTimeStr... |
sushovande/quizdrum | controller/commonapi_test.go | <reponame>sushovande/quizdrum
// 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 a... |
la-moore/scarlab-icons | react/outline/git-fork.js | <gh_stars>1-10
import * as React from "react"
function SvgComponent(props) {
return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="scarlab scarlab-git-fork" {...props}>
<pa... |
faturita/mne-python | mne/include/qt/QtQuick/qquickitemgrabresult.h | <gh_stars>1-10
/****************************************************************************
**
** Copyright (C) 2014 Jolla Ltd, author: <<EMAIL>>
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtQuick module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licen... |
ver13/ava | pkg/registry/endpoint.go | package registry
type Endpoint struct {
Name string `json:"name"`
Request *Value `json:"request"`
Response *Value `json:"response"`
Metadata map[string]string `json:"metadata"`
}
|
madanagopaltcomcast/pxCore | examples/pxScene2d/external/libnode-v0.12.7/deps/v8/src/conversions.cc | <reponame>madanagopaltcomcast/pxCore
// Copyright 2011 the V8 project 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 <limits.h>
#include <stdarg.h>
#include <cmath>
#include "src/v8.h"
#include "src/assert-scope.h"
#inclu... |
mtorromeo/vue-patternfly4 | packages/core/src/components/EmptyState/EmptyStateIcon.js | <reponame>mtorromeo/vue-patternfly4
import styles from '@patternfly/react-styles/css/components/EmptyState/empty-state';
import { h, mergeProps } from 'vue';
import { findChildrenVNodes } from '../../util.ts';
export default {
name: 'PfEmptyStateIcon',
props: {
container: Boolean,
},
render() {
if (... |
FizzCorp/fizz-platform | components/chat-group/src/main/java/io/fizz/chat/group/application/query/UserGroupDTO.java | package io.fizz.chat.group.application.query;
import io.fizz.chat.group.domain.group.GroupId;
import io.fizz.chat.group.domain.group.GroupMember;
import io.fizz.chataccess.domain.role.RoleName;
import io.fizz.common.domain.UserId;
import java.util.Date;
public class UserGroupDTO {
private final UserId userId;
... |
pmacik/fabric8-test | booster_bdd/features/environment.py | """Module with code to be run before and after certain events during the testing."""
import os
from src.support import helpers
from subprocess import check_output, CalledProcessError, STDOUT
def before_all(_context):
"""Perform the setup before the first event."""
if not helpers.is_user_logged_in():
u... |
givedirectly/Google-Partnership | cypress/integration/unit_tests/update_test.js | import * as ErrorLib from '../../../docs/error.js';
import * as LayerUtil from '../../../docs/layer_util.js';
import * as Run from '../../../docs/run.js';
import {setUpScoreComputationParameters} from '../../../docs/update.js';
import {loadScriptsBeforeForUnitTests} from '../../support/script_loader.js';
describe('Uni... |
jamesanto/scala | test/scalacheck/scala/reflect/quasiquotes/ForProps.scala | package scala.reflect.quasiquotes
import org.scalacheck._, Prop._, Gen._, Arbitrary._
import scala.reflect.runtime.universe._, Flag._, internal.reificationSupport._
object ForProps extends QuasiquoteProperties("for") {
case class ForEnums(val value: List[Tree])
def genSimpleBind: Gen[Bind] =
for(name <- genT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.