repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
helloShen/leetcode | java/src/main/java/com/ciaoshen/leetcode/plus_one_linked_list/Test.java | /**
* Leetcode - #369 - Plus One Linked List
*/
package com.ciaoshen.leetcode.plus_one_linked_list;
import java.util.*;
import com.ciaoshen.leetcode.myUtils.*;
class Test {
/** 测试用例对外开放 */
public List<ListNode> getTestcases() {
return testcases;
}
/** 测试用例对外服务接口 */
public void test(S... |
soulgoast/blog-repository | dbeaver/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/datasource/DataSourceRollbackHandler.java | <gh_stars>0
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
*
* 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/l... |
Lrteeter/OkAlpha | app/controllers/api/messages_controller.rb | <gh_stars>1-10
class Api::MessagesController < ApplicationController
def index
@messages = Message.all
render :index
end
def create
@message = Message.create!(message_params)
render :show
end
def destroy
@message = Message.find(params[:id])
@message.destroy
render :index
end
... |
myvyang/intellij-community | java/java-structure-view/src/com/intellij/ide/structureView/impl/java/PropertyGroup.java | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... |
consected/restructure | app/controllers/reports_controller.rb | <reponame>consected/restructure
# frozen_string_literal: true
class ReportsController < UserBaseController
include MasterSearch
before_action :authenticate_user_or_admin!
before_action :index_authorized?, only: [:index]
before_action :setup_report, only: [:show]
before_action :set_editable_instance_from_id,... |
NeuronEnix/library-management | api/index.js | <reponame>NeuronEnix/library-management
const router = require( "express" ).Router();
const { isAuthenticated } = require( "../handler").sessionHandler;
router.get( "/", isAuthenticated, ( req, res ) => { return res.redirect( "/user/home" ) });
router.use( "/user", require( "./user" ).UserRouter );
router.use( "/boo... |
rawarren/MpiABI | src/group_compare.c | <filename>src/group_compare.c
/*
* This text was generated automatically
* It provides the ISC implementation of
* MPI_Group_compare
*/
#include <_mpi.h>
int
MPI_Group_compare (MPI_Group group1, MPI_Group group2, int *result)
{
static void *address=0;
int mpi_return;
if (!address) {
if ((address = dls... |
olehmberg/winter-usecases | src/main/java/de/uni_mannheim/informatik/dws/winter/usecase/events/identityresolution/EventBlockingKeyByLabelsTokens.java | package de.uni_mannheim.informatik.dws.winter.usecase.events.identityresolution;
import de.uni_mannheim.informatik.dws.winter.matching.blockers.generators.BlockingKeyGenerator;
import de.uni_mannheim.informatik.dws.winter.matching.blockers.generators.RecordBlockingKeyGenerator;
import de.uni_mannheim.informatik.dw... |
piscesdk/kglb | kglb/data_plane/utils.go | <gh_stars>100-1000
package data_plane
import (
"fmt"
"strings"
"dropbox/kglb/common"
kglb_pb "dropbox/proto/kglb"
)
func diffMetric(new, old uint64) float64 {
if new < old {
return float64(new)
}
return float64(new - old)
}
func getBgpRoutePrefix(route *kglb_pb.BgpRouteAttributes) string {
return fmt.Spri... |
ziyoung/Ccool | src/main/java/net/ziyoung/ccool/parser/ParseErrorListener.java | <reponame>ziyoung/Ccool
package net.ziyoung.ccool.parser;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
public class ParseErrorListener extends BaseErrorListener {
private boolean failed = false;
@Override
public v... |
fanruan/swift-http | swift-core/swift-core-analyse/src/test/java/com/fr/swift/cloud/query/aggregator/extension/LimitRowAggregatorTest.java | <reponame>fanruan/swift-http<filename>swift-core/swift-core-analyse/src/test/java/com/fr/swift/cloud/query/aggregator/extension/LimitRowAggregatorTest.java
package com.fr.swift.cloud.query.aggregator.extension;
import com.fr.swift.cloud.bitmap.impl.AllShowBitMap;
import com.fr.swift.cloud.segment.column.Column;
import... |
turchan/mediasphere | backEnd/src/main/java/com/turchanovskyi/mediasphere/controller/PurchaseController.java | package com.turchanovskyi.mediasphere.controller;
import com.turchanovskyi.mediasphere.model.Purchase;
import com.turchanovskyi.mediasphere.service.PurchaseService;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
@CrossOrigin(origins = "http://localhost:3000")
@RestContro... |
frenchamnesty/flixter | vendor/ruby/2.4.0/gems/youtube-embed-1.0.0/lib/youtube_embed.rb | require "youtube_embed/version"
require "youtube_embed/video"
|
ricpdc/ArchiRev | ArchiRev/src/main/java/es/alarcos/archirev/logic/shape/ArchiMateBusinessObjectShape.java | <reponame>ricpdc/ArchiRev<gh_stars>1-10
package es.alarcos.archirev.logic.shape;
public class ArchiMateBusinessObjectShape extends AbstractArchiMateRectangleShape {
@Override
public String getCornerImagePath() {
return null;
}
}
|
covrom/highloadcup2018 | groupset/grresult.go | <reponame>covrom/highloadcup2018<gh_stars>10-100
package groupset
import (
"github.com/covrom/highloadcup2018/db"
"sort"
)
type GroupStats struct {
gs *GroupSet
stats []GroupResult
}
func NewGroupStats(gs *GroupSet) *GroupStats {
return &GroupStats{
gs: gs,
stats: make([]GroupResult, 0, 60),
}
}
fun... |
fishedee/redva | examples/dynamic-run/src/common/router.js | <reponame>fishedee/redva
import app from './app';
import dynamic from 'redva/dynamic';
const routers = [
{
url: '/counter',
name: '计数器',
models: ['counter'],
component: 'counter',
},
{
url: '/todo',
name: 'todo列表',
models: ['todo'],
component: 'todo',
},
];
export default route... |
luodeng/study | java/src/main/java/com/roden/study/java/sql/MySQLTest.java | package com.roden.study.java.sql;
import org.junit.Test;
import java.sql.*;
public class MySQLTest {
private static final String URL = "jdbc:mysql://user.sql.sys.com:3306/user?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true";
private static final String NAME = "user... |
sofa-framework/issofa | SofaKernel/framework/sofa/core/objectmodel/BaseData.cpp | <reponame>sofa-framework/issofa<filename>SofaKernel/framework/sofa/core/objectmodel/BaseData.cpp
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH ... |
tuchg/SimpleJWManageSystem | Backend/2_11_JWCSystem/src/cn/wchihc/jwc/servlets/teacher/QueryServlet.java | package cn.wchihc.jwc.servlets.teacher;
import cn.wchihc.jwc.dao.base.BaseDao;
import cn.wchihc.jwc.model.Data;
import cn.wchihc.jwc.model.Query;
import cn.wchihc.jwc.model.custom.ClassStudentCustom;
import cn.wchihc.jwc.model.custom.MyStudentCustom;
import cn.wchihc.jwc.model.users.Student;
import cn.wchihc.jwc.servl... |
hitachivantara-solution/sdk-examples-java | hitachivantara-java-example-hcp/src/com/hitachivantara/example/hcp/content/S3Example_PutGetDeleteObject.java | /*
* Copyright (C) 2019 <NAME> Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... |
gawquon/Vic2ToHoI4 | Vic2ToHoI4Tests/OutHoI4Tests/Characters/OutCommanderDataTests.cpp | #include "OutHoi4/Characters/OutCommanderData.h"
#include "gmock/gmock-matchers.h"
#include "gtest/gtest.h"
#include <sstream>
TEST(OutHoI4World_Characters_OutCommanderDataTests, CommanderDataIsOutput)
{
const HoI4::CommanderData commanderData(HoI4::CommanderLevel::CorpsCommander, {}, 2, 3, 4, 5, 6);
std::stringst... |
ShoYamanishi/AppleNumericalComputing | 06_nbody/metal/nbody_metal_objc.h | #import "metal_compute_base.h"
#include "nbody_metal_cpp.h"
@interface NBodyMetalObjC : MetalComputeBase
- (instancetype) initWithNumElements:(size_t) num_elements ;
- (uint) numElements;
- (struct particle*) getRawPointerParticles;
- (void) performComputationDirectionIsP0ToP1:(bool) p0_to_p1;
@end
|
DelinWorks/adxe | core/network/HttpCookie.h | <reponame>DelinWorks/adxe
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
Copyright (c) 2021 Bytedance Inc.
https://adxeproject.github.io/
Permission is hereby granted, free of c... |
micaelps/orange-talents-02-template-proposta | src/main/java/br/com/zup/proposta/blockedcard/BlockedCardController.java | <reponame>micaelps/orange-talents-02-template-proposta
package br.com.zup.proposta.blockedcard;
import br.com.zup.proposta.card.AllCards;
import br.com.zup.proposta.card.Card;
import br.com.zup.proposta.common.CardVerificationClient;
import br.com.zup.proposta.common.ClientHostResolver;
import feign.FeignException;
im... |
trespasserw/MPS | editor/editorlang-runtime/source/jetbrains/mps/editor/runtime/cells/KeyMapImpl.java | /*
* Copyright 2003-2013 JetBrains s.r.o.
*
* 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 agre... |
friedolino78/rtosc | example/modular/Effect.h | #pragma once
namespace rtosc{struct Ports;}
struct Effect
{
virtual ~Effect(void){};
};
|
augustobellinaso/Deitel-JavaHowToProgram10E-LateObjects | Chapter5/Exercise 5.31/ModifiedGuessNumber.java | /*Modify the program of Exercise 5.30 to count the num-
ber of guesses the player makes. If the number is 10 or fewer, display Either you know the secret
or you got lucky! If the player guesses the number in 10 tries, display Aha! You know the secret!
If the player makes more than 10 guesses, display You should be able... |
abhishekpradeepmishra/amazon-neptune-tools | neptune-export/src/main/java/com/amazonaws/services/neptune/profiles/neptune_ml/v2/config/ElementConfig.java | /*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
A copy of the License is located at
http://www.apache.org/licenses/LICENSE-2.0
or in the "license" file accompanying ... |
apcarrik/kaggle | duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_5/rule_3.py | <reponame>apcarrik/kaggle<filename>duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/3_features/numtrees_5/rule_3.py
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation
# {"feature": "Occupation", "instances": 204, "metric_value": 0.9774, "depth": 1}
if obj[2]<=7.529411764705882:
# ... |
hongmomanu/webkitprj | app.nw/app/view/server/MemoryChart.js | <reponame>hongmomanu/webkitprj<gh_stars>0
/**
* The desktop login screen
*
* The login screen is in the first release not really used, because the login
* is controlled by the acl of zend framework.
* To use the login there are several things to check:
* - anonymous user must have access to webdesktop/index
* ... |
DBatOWL/tutorials | spring-core-5/src/main/java/com/baeldung/component/inscope/ServiceExample.java | package com.baeldung.component.inscope;
import org.springframework.stereotype.Service;
@Service
public class ServiceExample {
}
|
robindittmar/mechanics | mechanics/src/hooks/FindMdl.h | <filename>mechanics/src/hooks/FindMdl.h
#ifndef __FINDMDL_H__
#define __FINDMDL_H__
#include "../source_sdk/IMDLCache.h"
struct FindMdlParam
{
const char* pName;
};
typedef MDLHandle_t(__thiscall *FindMdl_t)(void*, char*);
extern FindMdl_t g_pFindMdl;
MDLHandle_t __fastcall hk_FindMDL(void* ecx, void* edx, char* F... |
xiewendan/algorithm | leetcode/85 maximal-rectangle.py | # -*- coding: utf-8 -*-
# __author__ = xiaobao
# __date__ = 2019/11/15 08:55:29
# desc: desc
# 给定一个仅包含 0 和 1 的二维二进制矩阵,找出只包含 1 的最大矩形,并返回其面积。
# 示例:
# 输入:
# [
# ["1","0","1","0","0"],
# ["1","0","1","1","1"],
# ["1","1","1","1","1"],
# ["1","0","0","1","0"]
# ]
# 输出: 6
# 来源:力扣(LeetCode)
# 链接:https://leetcode... |
legioner9/Node_Way_source_2 | Store/myNpm/st_doc1/js_DOCS/Promise/PromiseError/TSH_19/2-then.js | <reponame>legioner9/Node_Way_source_2
'use strict';
const sum = (a, b) => new Promise((resolve, reject) => {
if (typeof a === 'number' && typeof b === 'number') {
resolve(a + b);
} else {
reject(new Error('a and b should be numbers'));
}
});
sum(7, 'A')
.then(
data => {
console.log({ data })... |
navikt/veilarbportefolje | src/main/java/no/nav/pto/veilarbportefolje/auth/AuthService.java | package no.nav.pto.veilarbportefolje.auth;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import io.vavr.Tuple;
import lombok.Data;
import lombok.experimental.Accessors;
import no.nav.common.abac.Pep;
import no.nav.common.abac.domain.request.ActionId;
import no.nav... |
timboudreau/ANTLR4-Plugins-for-NetBeans | ANTLRTestProjects/antbased/CodeCompletion/build/generated-sources/antlr4/org/mypackage/CombinedGrammarParser.java | <filename>ANTLRTestProjects/antbased/CodeCompletion/build/generated-sources/antlr4/org/mypackage/CombinedGrammarParser.java<gh_stars>1-10
// Generated from D:\NetBeansProjects\ANTLRTestProjects\antbased\CodeCompletion\grammar\org\mypackage\CombinedGrammar.g4 by ANTLR 4.6
package org.mypackage;
import org.antlr.v4.runti... |
pur-token/pur-core | setup.py | <reponame>pur-token/pur-core
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file was generated with PyScaffold 3.0.2.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: http://pyscaffold.org/
"""
import sys
from setuptools import setup
import versioneer
# Add... |
paige-ingram/nwhacks2022 | node_modules/@fluentui/react-icons/lib/cjs/components/ArrowRepeatAll24Regular.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ... |
kupl/starlab-benchmarks | Benchmarks_with_Functional_Bugs/Java/collections-39/src/src/test/org/apache/commons/collections/TestFastArrayList1.java | <reponame>kupl/starlab-benchmarks
/*
* Copyright 2001-2004 The 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
*
* http://www.apache.org/licenses/LI... |
marincenusa/james-project | mailbox/plugin/quota-search-elasticsearch/src/main/java/org/apache/james/quota/search/elasticsearch/events/ElasticSearchQuotaMailboxListener.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... |
sw17ch/cauterize | lib/cauterize/base_type.rb | <gh_stars>1-10
require 'set'
require 'digest'
module Cauterize
class BaseType
attr_reader :name, :description
@@instances = {}
def initialize(name, description=nil)
if @@instances.keys.include?(name)
raise Exception.new("A type with the name #{name} already exists. [#{@@instances[name].ins... |
GrafNikola/tera-guide | guides/9970.js |
//
let player, entity, library, effect;
function applyDistance(loc, distance, degrees) {
let r = loc.w; //(loc.w / 0x8000) * Math.PI;
let rads = (degrees * Math.PI/180);
let finalrad = r - rads;
loc.x += Math.cos(finalrad) * distance;
loc.y += Math.sin(finalrad) * distance;
... |
vglocus/github-java-client | src/main/java/com/spotify/github/v3/repos/FolderContent.java | /*-
* -\-\-
* github-api
* --
* Copyright (C) 2016 - 2020 Spotify AB
* --
* 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
*
* U... |
smhanes15/CodingBat-Personal | java/Logic-1/MaxMod5.java | <filename>java/Logic-1/MaxMod5.java
/*
* Logic-1 --> maxMod5
*
* Given two int values, return whichever value is larger. However if the two values have the same
* remainder when divided by 5, then the return the smaller value. However, in all cases, if the two
* values are the same, return 0. Note: the %... |
mitre/mediawiki-vagrant | puppet/modules/thumbor/lib/puppet/parser/functions/file_exists.rb | require 'puppet'
module Puppet::Parser::Functions
newfunction(:file_exists, type: :rvalue) do |args|
return File.exists?(args[0])
end
end
|
shivanigupta71299/Gossip-Mongers-Android-SDK-master | mobicommons/src/main/java/com/gossipmongers/mobicommons/json/JsonParcelableMarker.java | <gh_stars>0
package com.gossipmongers.mobicommons.json;
import android.os.Parcelable;
/**
* Created by sunil on 2/6/16.
*/
abstract public class JsonParcelableMarker implements Parcelable {
}
|
samuelerwardi/restaurant | public/js/trx_beli.js | $(function(){
// $.showHideMenu();
// $(".datepicker").datepicker().on("changeDate", function(ev){
// $(this).datepicker("hide");
// });
// $(".datepicker").keydown(function(){return false;});
$("#namasupplier").autocomplete({
source: "/supplier/search",
open: function(){... |
alexanderbock/Kameleon-Converter | ext/kameleon/src/ccmc/GeneralFileReader.cpp | /*
* FileReader.cpp
*
* Created on: Apr 22, 2009
* Author: <NAME>
*/
// #include "config.h"
#include "Kameleon-plus-Config.h"
#include "FileReader.h"
#include "CDFFileReader.h"
#include "HDF5FileReader.h"
#include "GeneralFileReader.h"
#include <string>
#include <vector>
#include <deque>
#include <iostream>
... |
zmilonas/service-ui | app/src/pages/inside/common/accordion/useAccordionTabsState.js | /*
* Copyright 2021 EPAM Systems
*
* 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 ... |
jkdubr/Proj4 | Pod/Classes/Projection/MOBProjectionEPSG6469.h | #import "MOBProjection.h"
@interface MOBProjectionEPSG6469 : MOBProjection
@end
|
pingidentity/astro | src/components/AccordionGroup/AccordionGroup.js | <filename>src/components/AccordionGroup/AccordionGroup.js
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
import { useAccordion } from '@react-aria/accordion';
import { useTreeState } from '@react-stately/tree';
import PropTypes from 'prop-types';
import { Box } from '../../index';
import Accord... |
AIPHES/ecml-pkdd-2019-J3R-explainable-recommender | refs/librec/core/src/main/java/net/librec/math/structure/MatrixBasedSequentialSparseVector.java | package net.librec.math.structure;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* @author <NAME> (email: <EMAIL>)
*/
public class MatrixBasedSequentialSparseVector extends SequentialSparseVector {
private SequentialAccessSparseMatrix sparseMatrix;
private int column;
private ... |
GlaDOSik/Adele | Adele/src/main/java/adele/image/EditorImage.java | <filename>Adele/src/main/java/adele/image/EditorImage.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package adele.image;
import javafx.scene.image.WritableImage;
import lombok... |
cybergarage/CyberLink4CC | src/mupnp/soap/SOAP.cpp | <reponame>cybergarage/CyberLink4CC
/******************************************************************
*
* mUPnP for C++
*
* Copyright (C) <NAME> 2002
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <string>
#include... |
marcomarasca/SynapseWebClient | src/main/java/org/sagebionetworks/web/client/widget/entity/tabs/DatasetsTab.java | package org.sagebionetworks.web.client.widget.entity.tabs;
import java.util.Collections;
import java.util.List;
import org.sagebionetworks.repo.model.Entity;
import org.sagebionetworks.repo.model.EntityType;
import org.sagebionetworks.repo.model.table.Dataset;
import org.sagebionetworks.web.client.DisplayConstants;
i... |
sleepingkingstudios/bronze | lib/bronze/entities/associations/collection.rb | # lib/bronze/entities/associations/collection.rb
require 'sleeping_king_studios/tools/toolbox/delegator'
require 'bronze/entities/associations'
require 'bronze/entities/associations/helpers'
module Bronze::Entities::Associations
# Collection object for *_many associations.
class Collection
extend SleepingKi... |
cwegrzyn/records-mover | tests/unit/db/vertica/test_vertica_db_driver.py | from .base_test_vertica_db_driver import BaseTestVerticaDBDriver
from mock import Mock
from ...records.format_hints import (vertica_format_hints)
import sqlalchemy
class TestVerticaDBDriver(BaseTestVerticaDBDriver):
def test_unload(self):
mock_result = Mock(name='result')
mock_result.rows = 579
... |
carlosrovira/flex-sdk | modules/thirdparty/batik/sources/org/apache/flex/forks/batik/bridge/SVGGlyphElementBridge.java | <filename>modules/thirdparty/batik/sources/org/apache/flex/forks/batik/bridge/SVGGlyphElementBridge.java
/*
Copyright 2001,2003 The 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... |
abouroubi/azure-sdk-for-js | sdk/keyvault/keyvault-secrets/recordings/node/secret_client__list_secrets_in_various_ways/recording_can_retrieve_all_versions_of_a_secret_by_page.js | let nock = require('nock');
module.exports.hash = "7496025bac43cb1c8b22ee827d40e11a";
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true})
.put('/secrets/CRUDSecretName-canretrieveallversionsofasecretbypage-')
.query(true)
.repl... |
nnkwrik/fangxianyu | goods-service/src/main/java/io/github/nnkwrik/goodsservice/service/UserService.java | <gh_stars>100-1000
package io.github.nnkwrik.goodsservice.service;
import io.github.nnkwrik.goodsservice.model.po.Goods;
import java.util.LinkedHashMap;
import java.util.List;
/**
* @author nnkwrik
* @date 18/11/27 20:37
*/
public interface UserService {
Boolean userHasCollect(String userId, int goodsId);
... |
guigail/medecine-de-ville | src/components/Results/DoctorsMap/doctors.map.container.js | import { connect } from 'react-redux'
import { getPosition } from 'redux/search'
import { getVisible } from 'redux/doctors'
import { select, unselect, updateMyPosition } from './doctors.map.actions'
import Component from './doctors.map'
const mapStateToProps = state => ({
doctors: getVisible(state),
position: getP... |
immbudden/buddeen | node_modules/simple-get/index.js | <gh_stars>10-100
module.exports = simpleGet
const concat = require('simple-concat')
const decompressResponse = require('decompress-response') // excluded from browser build
const http = require('http')
const https = require('https')
const once = require('once')
const querystring = require('querystring')
const url = re... |
ArcGIS/dynamic-situational-awareness-qt | Shared/markup/MarkupBroadcast.h | <reponame>ArcGIS/dynamic-situational-awareness-qt<gh_stars>10-100
/*******************************************************************************
* Copyright 2012-2018 Esri
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
ieg-vienna/TimeBench | src/timeBench/data/io/GraphMLTemporalDatasetWriter.java | <reponame>ieg-vienna/TimeBench<filename>src/timeBench/data/io/GraphMLTemporalDatasetWriter.java
package timeBench.data.io;
import static prefuse.data.io.GraphMLWriter.Tokens;
import static prefuse.data.io.GraphMLWriter.TYPES;
import java.io.OutputStream;
import javax.xml.transform.OutputKeys;
import javax.xm... |
linuxbender/react-nd | react-fundamentals/contacts/src/ListContacts.spec.js | <gh_stars>0
import React from 'react';
import ListContacts from './ListContacts'
import { shallow } from 'enzyme';
describe('<ListContacts/> component tests', () => {
it('Component is loaded without crashing', () => {
shallow(<ListContacts contacts={[]} onDeleteContact={()=> ''} />);
});
it('Cont... |
JungyeonYoon/MicroSuite | src/Router/lookup_service/src/thread_safe_map.cpp | <reponame>JungyeonYoon/MicroSuite
#include <iostream>
#include <mutex> // For std::unique_lock
#include <shared_mutex>
#include <thread>
#include <map>
class ThreadSafeMap {
public:
ThreadSafeMap() = default;
// Multiple threads/readers can read the counter's value at the same time.
std::... |
Eroo36/node-social-auths | src/helpers/user-helper.js | <reponame>Eroo36/node-social-auths<filename>src/helpers/user-helper.js
import { User } from "../models/index.js";
export class UserHelper {
static async login(req, user, done) {
req.logIn(user, function (err) {
if (err) {
return done(err);
}
});
}
static async createUser(email, accou... |
patrick4444/TPShare | FCPE_JDBC/src/fr/imie/persistence/ConnexionManagement.java | package fr.imie.persistence;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class ConnexionManagement implements IConnexionManagement {
public ConnexionManagement() {
super();
}
@Override
public void closeJD... |
Peiiii/wpkit | test3.py | from wpkit.basic import json_load,json_dump
from wpkit.piu import BackupDB
db=BackupDB('D:\work\wpkit\data\db')
info=db.get("fund_infos")
db.set('all_funds',info)
print(info)
|
CRaFT4ik/2021-highload-dht | src/test/java/ru/mail/polis/service/TwoNodeTest.java | <gh_stars>0
/*
* Copyright 2021 (c) Odnoklassniki
*
* 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... |
hankai17/trafficserver | mgmt/api/EventControlMain.cc | /** @file
A brief file description
@section license License
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 und... |
jess22664/x3ogre | core/Node.h | <gh_stars>1-10
/*
* X3DObject.h
*
* Created on: 15.11.2013
* Author: baudenri_local
*/
#pragma once
#include <string>
#include <ciso646>
#include <reflection/Object.h>
#include <memory>
namespace X3D {
struct World;
/**
* Superclass every Node that has been parsed from the X3D-File inherits
*/
class N... |
AmericaGL/TrashTalk_Dapp | opencv_contrib-3.3.0/modules/ximgproc/src/disparity_filters.cpp | /*
* By downloading, copying, installing or using the software you agree to this license.
* If you do not agree to this license, do not download, install,
* copy or use the software.
*
*
* License Agreement
* For Open Source Computer Vision Library
* (3 - clause BSD License)
*
* Redistribution and use ... |
jppreti/OrientacaoObjetos | java/src/main/java/br/edu/ifmt/cba/java/projeto/locadora/relatorio/RelDividasCliente.java | package br.edu.ifmt.cba.java.projeto.locadora.relatorio;
public class RelDividasCliente {
}
|
edsonayllon/besu | ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/EthCallIntegrationTest.java | <filename>ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/EthCallIntegrationTest.java<gh_stars>1-10
/*
* Copyright 2018 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You ma... |
HackerFoo/vtr-verilog-to-routing | abc/src/opt/cgt/cgtSat.c | /**CFile****************************************************************
FileName [cgtSat.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Clock gating package.]
Synopsis [Checking implications using SAT.]
Author [<NAME>]
Affiliation [UC Berkeley]
Date ... |
swamp/compiler | src/loader/workspace.go | package loader
import (
"log"
decorated "github.com/swamp/compiler/src/decorated/expression"
)
type Workspace struct {
rootDirectory LocalFileSystemRoot
projects map[string]Project
}
func NewWorkspace(rootDirectory LocalFileSystemRoot) *Workspace {
return &Workspace{rootDirectory: rootDirectory, projects:... |
webdevhub42/Lambda | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/python-scripts/scripts/15_check_my_environment.py | <reponame>webdevhub42/Lambda<filename>WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/python-scripts/scripts/15_check_my_environment.py
"""
Pass in a config file based on your environment.
Example:
import check_my_environment
class Main:
def __init__(self, configFile):
pass
def process(self):
... |
atlasapi/atlas | src/main/java/org/atlasapi/remotesite/metabroadcast/similar/SimilarContentModule.java | package org.atlasapi.remotesite.metabroadcast.similar;
import javax.annotation.PostConstruct;
import org.atlasapi.application.v3.DefaultApplication;
import org.atlasapi.media.entity.Publisher;
import org.atlasapi.persistence.MongoContentPersistenceModule;
import org.atlasapi.persistence.content.ContentResolver;
impor... |
mlapierre/Selenium-Grid-Extras | SeleniumGridExtras/src/main/java/com/groupon/seleniumgridextras/utilities/ResourceRetriever.java | package com.groupon.seleniumgridextras.utilities;
import com.groupon.seleniumgridextras.SeleniumGridExtras;
import java.io.IOException;
import java.io.InputStream;
public class ResourceRetriever {
public String getAsString(String resource) throws IOException {
InputStream in = SeleniumGridExtras.class.getRe... |
jimsimon/wc-framework | src/mixins/host-attributes-mixin.js | <gh_stars>0
export default (superclass) => class HostAttributesMixin extends superclass {
static get hostAttributes() {
return {}
}
constructor() {
super()
const {constructor: Type} = this
for (const [name, value] of Object.entries(Type.hostAttributes)) {
this.setAttribute(name, value)
... |
Boom618/DigitalFarms | library/src/main/java/com/linheimx/app/library/touch/GodTouchListener.java | <reponame>Boom618/DigitalFarms<filename>library/src/main/java/com/linheimx/app/library/touch/GodTouchListener.java<gh_stars>0
package com.linheimx.app.library.touch;
import android.graphics.RectF;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import and... |
71yuu/ssm-my-blog | yuu-blog-domain/src/main/java/com/yyh/yuu/blog/domain/Article.java | <gh_stars>0
package com.yyh.yuu.blog.domain;
import com.yyh.yuu.blog.commons.persistence.BaseEntity;
import lombok.Data;
/**
* 文章
* @Classname Article
* @Date 2018/11/13 10:56
* @Created by Yuu
*/
@Data
public class Article extends BaseEntity {
private Integer cid;
private String aname;
private Str... |
cleberecht/singa | singa-simulation/src/test/java/bio/singa/simulation/export/format/FormatReactionKineticsTest.java | package bio.singa.simulation.export.format;
import bio.singa.chemistry.features.reactions.MichaelisConstant;
import bio.singa.chemistry.features.reactions.RateConstant;
import bio.singa.chemistry.features.reactions.TurnoverNumber;
import bio.singa.features.model.Evidence;
import bio.singa.simulation.entities.ChemicalE... |
HeBomou/Melon | libs/MelonFrontend/MelonFrontend/RenderMesh.h | <reponame>HeBomou/Melon
#pragma once
#include <MelonCore/SharedComponent.h>
#include <MelonFrontend/MeshBuffer.h>
#include <MelonFrontend/MeshResource.h>
#include <functional>
#include <vector>
namespace Melon {
struct RenderMesh : public SharedComponent {
bool operator==(const RenderMesh& other) const {
... |
CaioProiete/blog | src/main/java/blog/objgen/UnfilteredIterator.java | <reponame>CaioProiete/blog
/**
*
*/
package blog.objgen;
import java.util.BitSet;
import java.util.Set;
import blog.sample.EvalContext;
class UnfilteredIterator extends AbstractObjectIterator {
/**
*
*/
private final CompiledSetSpec compiledSetSpec;
UnfilteredIterator(CompiledSetSpec compiledSetSpec, Eval... |
SkyZero1228/react-GraphQL | src/components/AntComponents/Table/index.js | import React from 'react'
import ReactDOM from 'react-dom'
import SyntaxHighlighter from 'react-syntax-highlighter/prism'
import { base16AteliersulphurpoolLight } from 'react-syntax-highlighter/styles/prism'
import { Collapse, Icon } from 'antd'
import { default as renderTableAjax } from './Ajax/index.js'
import { def... |
Sheldan/abstracto | abstracto-application/abstracto-modules/link-embed/link-embed-int/src/main/java/dev/sheldan/abstracto/linkembed/model/template/MessageEmbeddedModel.java | <gh_stars>1-10
package dev.sheldan.abstracto.linkembed.model.template;
import dev.sheldan.abstracto.core.models.cache.CachedMessage;
import dev.sheldan.abstracto.core.models.context.UserInitiatedServerContext;
import dev.sheldan.abstracto.core.models.template.button.ButtonConfigModel;
import lombok.Getter;
import lomb... |
GregDevProjects/carbon-header-fix | node_modules/@carbon/icons-react/es/list--numbered/24.js | import { ListNumbered24 } from '..';
export default ListNumbered24;
|
ramtej/qi4j-sdk | core/runtime/src/main/java/org/qi4j/runtime/structure/LayerInstance.java | <reponame>ramtej/qi4j-sdk<filename>core/runtime/src/main/java/org/qi4j/runtime/structure/LayerInstance.java<gh_stars>1-10
/*
* Copyright (c) 2008, <NAME>. All Rights Reserved.
* Copyright (c) 2012, <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in com... |
aprorg/myria | src/edu/washington/escience/myria/api/encoding/SingleGroupByAggregateEncoding.java | <filename>src/edu/washington/escience/myria/api/encoding/SingleGroupByAggregateEncoding.java
package edu.washington.escience.myria.api.encoding;
import edu.washington.escience.myria.api.encoding.QueryConstruct.ConstructArgs;
import edu.washington.escience.myria.operator.agg.AggregatorFactory;
import edu.washington.esc... |
gemmellr/qpid-site | input/releases/qpid-cpp-master/messaging-api/cpp/api/structqpid_1_1messaging_1_1ReceiverError.js | <reponame>gemmellr/qpid-site
var structqpid_1_1messaging_1_1ReceiverError =
[
[ "ReceiverError", "structqpid_1_1messaging_1_1ReceiverError.html#a4e033da931f45817b016354f15bfebaa", null ]
]; |
kbaseIncubator/cs_uploader | src/us/kbase/cs/orm/dumpers/Biomass.java | <reponame>kbaseIncubator/cs_uploader
package us.kbase.cs.orm.dumpers;
import us.kbase.cs.orm.Column;
import us.kbase.cs.orm.ColumnType;
import us.kbase.cs.orm.Dumper;
import java.io.IOException;
public class Biomass extends Dumper {
@Column(name="id", type=ColumnType.STRING)
private String id; ... |
Guyutongxue/Practice_of_Programming | RealPractices/08/01.Output200.cpp | <filename>RealPractices/08/01.Output200.cpp
#include<iostream>
using namespace std;
class Number {
public:
int num;
Number(int n=0): num(n) {}
};
#define Number int
int a[1]={
};
int main() {
Number n1(10), n2(20);
Number n3;
n3 = n1*n2;
cout << int(n3) << endl;
return 0;
} |
nastasiaboldyreva/job4j | chapter_002/src/test/java/ru.job4j/encapsulation/StaticMethodTest.java | <gh_stars>1-10
package ru.job4j.encapsulation;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.StringJoiner;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
import java.util.List;
import java.util.function.Co... |
lightcopy/history-server | src/main/java/com/github/lightcopy/history/event/SparkListenerJobStart.java | /*
* Copyright 2017 Lightcopy
*
* 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... |
Alexloof/TaskApp | client/src/lib/withAuth.js | import React, { Component } from 'react'
export default WrappedComponent => {
return class extends Component {
state = {
isAuth: false
}
componentDidMount() {
const isAuth = localStorage.getItem('token')
if (isAuth) {
this.setState({ isAuth: true })
} else {
this.... |
sweeneycai/cs-summary-reflection | java-leetcode/src/main/java/io/github/dreamylost/practice/Main0.java | /* All Contributors (C) 2020 */
package io.github.dreamylost.practice;
/**
* Title: Main.java
*
* <p>Description:小易准备去魔法王国采购魔法神器,购买魔法神器需要使用魔法币,但是小易现在一枚魔法币都没有,
* 但是小易有两台魔法机器可以通过投入x(x可以为0)个魔法币产生更多的魔法币。 魔法机器1:如果投入x个魔法币,魔法机器会将其变为2x+1个魔法币
* 魔法机器2:如果投入x个魔法币,魔法机器会将其变为2x+2个魔法币
*
* <p>小易采购魔法神器总共需要n个魔法币,所以小易只能通过两台魔法机器产生恰... |
zarmomin/mrpt | libs/kinematics/src/CVehicleSimul_Holo.cpp | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
shadowmaster435/The_Beginning_Remaster | src/main/java/shadowmaster435/the_beginning/util/TBParticleFactories.java | <gh_stars>0
package shadowmaster435.the_beginning.util;
public class TBParticleFactories {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.