repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
freman/genesysapi | client/external_contacts/put_externalcontacts_contact_note_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package external_contacts
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
"github.com/freman/gen... |
bitigchi/MuditaOS | products/BellHybrid/apps/application-bell-main/windows/BellBatteryShutdownWindow.hpp | <reponame>bitigchi/MuditaOS<filename>products/BellHybrid/apps/application-bell-main/windows/BellBatteryShutdownWindow.hpp
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <apps-common/ApplicationCommon.hpp>
#in... |
nazarepiedady/next.js | test/e2e/middleware-rewrites/app/pages/ab-test/a.js | <reponame>nazarepiedady/next.js
export default function Home() {
return <p className="title">Welcome Page A</p>
}
export const getServerSideProps = () => ({
props: {
abtest: true,
},
})
|
kooiot/siridb-server | test/test_vec/test_vec.c | <filename>test/test_vec/test_vec.c
#include "../test.h"
#include <vec/vec.h>
const unsigned int num_entries = 14;
char * entries[] = {
"Zero",
"First entry",
"Second entry",
"Third entry",
"Fourth entry",
"Fifth entry",
"Sixth entry",
"Seventh entry",
"8",
"9",
"entry 10",
... |
RTHMaK/RPGOne | deep_qa-master/deep_qa/training/trainer.py | <filename>deep_qa-master/deep_qa/training/trainer.py
import logging
import os
from typing import Any, Dict, List
import numpy
import keras.backend as K
from keras.models import model_from_json
from keras.callbacks import LambdaCallback, TensorBoard, EarlyStopping, CallbackList, ModelCheckpoint
from . import concrete_... |
lpassamano/scavenger_hunt | db/migrate/20171124200453_create_found_items.rb | class CreateFoundItems < ActiveRecord::Migration[5.1]
def change
create_table :found_items do |t|
t.boolean :found
t.integer :team_id
t.integer :item_id
end
end
end
|
KL-HIS/stream-reactor | kafka-connect-aws-s3/src/main/scala/io/lenses/streamreactor/connect/aws/s3/model/TopicPartitionOffset.scala | /*
* Copyright 2020 Lenses.io
*
* 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... |
shrewdlin/BPE | src/business/SapTLVBody.cpp | <gh_stars>1-10
#include "SapTLVBody.h"
#include <boost/asio.hpp>
#include "SapLogHelper.h"
void CSapTLVBodyEncoder::SetValue(unsigned short wKey,const void* pValue,unsigned int nValueLen)
{
unsigned int nFactLen=((nValueLen&0x03)!=0?((nValueLen>>2)+1)<<2:nValueLen);
if(m_buffer.capacity()<nFactLen+4)
{
... |
xdvalue/mcoding | base_dependencies/dst_module/src/main/java/com/mcoding/base/dst/service/income/impl/DstIncomeProductServiceImpl.java | package com.mcoding.base.dst.service.income.impl;
import com.mcoding.base.core.PageView;
import com.mcoding.base.dst.bean.income.DstIncomeProduct;
import com.mcoding.base.dst.bean.income.DstIncomeProductExample;
import com.mcoding.base.dst.persistence.income.DstIncomeProductMapper;
import com.mcoding.base.dst.se... |
jkulton/topical | internal/api/api_test.go | <filename>internal/api/api_test.go
package api
import (
"errors"
"github.com/gorilla/mux"
"github.com/jkulton/topical/internal/models"
"github.com/jkulton/topical/internal/session"
"github.com/jkulton/topical/internal/templates"
"html/template"
"net/http"
"net/http/httptest"
"strings"
"testing"
)
type MockS... |
ranchlin/Leetcode | Python3.x/300-Longest Increasing Subsequence.py | # dp
class Solution:
def lengthOfLIS(self, nums: 'List[int]') -> 'int':
if len(nums) < 2: return len(nums)
dp = [1] * (len(nums) + 1)
for i in range(1, len(nums)):
for j in range(0, i):
if nums[i] > nums[j]: dp[i] = max(dp[i], dp[j] + 1)
return max(dp)
|
ung-org/lib-c | src/wchar/getwc.c | #include <wchar.h>
#include <stdio.h>
wint_t getwc(FILE * stream)
{
return fgetwc(stream);
}
/*
STDC(199409)
*/
|
kenmutuma001/galleria | virtual/lib/python3.6/site-packages/object_tools/tests/tools.py | <filename>virtual/lib/python3.6/site-packages/object_tools/tests/tools.py
from __future__ import unicode_literals
from django import forms
from django.contrib.admin.widgets import AdminSplitDateTime
import object_tools
class TestForm(forms.Form):
pass
class TestMediaForm(forms.Form):
media_field = forms.... |
MaiReo/crass | src/cui-1.0.4/666-SYSTEM/666_SYSTEM.cpp | <reponame>MaiReo/crass
#include <windows.h>
#include <tchar.h>
#include <crass_types.h>
#include <acui.h>
#include <cui.h>
#include <package.h>
#include <resource.h>
#include <cui_error.h>
#include <stdio.h>
/* 接口数据结构: 表示cui插件的一般信息 */
struct acui_information _666_SYSTEM_cui_information = {
_T("HEXA"), /* copyrigh... |
coconut2015/agg-tutorial | docs/classagg_1_1scanline__p8.js | <gh_stars>1-10
var classagg_1_1scanline__p8 =
[
[ "span", "structagg_1_1scanline__p8_1_1span.html", "structagg_1_1scanline__p8_1_1span" ],
[ "const_iterator", "classagg_1_1scanline__p8.html#a51f8bfca101215e0a19b51926166a160", null ],
[ "coord_type", "classagg_1_1scanline__p8.html#a904acf43583706c4c887da5c03... |
0003088/libelektra-qt-gui-test | src/libgetenv/examples/getenv.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char** argv, char** environ)
{
if (argc == 1)
{
char** env;
for (env = environ; *env != 0; env++)
{
const size_t len = strcspn(*env, "=");
char name[len+1];
strncpy(name, *env, len);
name[len] = 0;
const ch... |
YoApp/yo-api | tests/__init__.py | <reponame>YoApp/yo-api
# -*- coding: utf-8 -*-
from gevent import monkey
monkey.patch_all()
import mock
import unittest
from flask import json
from flask_principal import identity_changed
from pygeocoder import GeocoderError
from giphypop import Giphy
from imgurpython import ImgurClient
from requests import Session
... |
iiag/iiag-legacy | src/io/sdl/display.c | //
// io/sdl/display.c
//
#include <stdio.h>
#include "../../log.h"
#ifndef WITH_SDL
void sdl_init(FILE *f) {
error("Cannot use SDL backend (not compiled in)");
}
#else
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <stdarg.h>
#include <unistd.h>
#include "input.h"
#include "display.h"
#include "../i... |
mazhar-ansari-ardeh/gpucarp | src/tl/knowledge/sst/package-info.java | /**
* This package contains the implementation of the Search-Space Transfer idea.
*/
package tl.knowledge.sst; |
ZmeiDev/stormtroopers | public/dist/services/authentication/auth.service.js | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
ramrod-project/database-brain | schema/test_put_and_get_binary.py | """
test CRUD ops
put, list_dir, get, delete
"""
from os import environ
from dict_to_protobuf import protobuf_to_dict
from pytest import fixture, raises
import docker
from time import time
from .brain import connect, r
from .brain.binary.data import put, get, list_dir, delete, put_buffer
from .brain.queries import R... |
johnoliver/bnd | biz.aQute.repository/src/aQute/p2/provider/ArtifactRepository.java | package aQute.p2.provider;
import java.io.InputStream;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.osgi.framework.Version;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import aQute.lib.converter.Converter;
import aQute.lib.converter.TypeReference;... |
ByronLian/algorithm-javascript | Leetcode/count-binary-substrings.js | <reponame>ByronLian/algorithm-javascript
// https://leetcode.com/problems/count-binary-substrings/
// Runtime: 84 ms, faster than 92.06% of JavaScript online submissions for Count Binary Substrings.
// Memory Usage: 47 MB, less than 6.35% of JavaScript online submissions for Count Binary Substrings.
/*
* @param {stri... |
miseri/rtp_plus_plus | src/Libs/CodecUtils/BitStreamReader.cpp | /** @file
MODULE : BitStreamReader
TAG : BSR
FILE NAME : BitStreamReader.cpp
DESCRIPTION : A bit stream reader implementation of the BitStreamBase
base class. Add the functionality to do the reading.
REVISION HISTORY :
:
COPYRIGHT : (c)VICS 2000-2006 all r... |
WCry/demo | spring-cloud/springcloud-sso/spring-security-oauth2-master/client/src/main/java/com/crhms/security/client/config/UiSecurityConfig.java | package com.crhms.security.client.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.boot.autoconfigure.security.oauth2.res... |
blackdeve/interp | erp/assets/js/pages/ui/notifications.js | <filename>erp/assets/js/pages/ui/notifications.js<gh_stars>0
(function ($) {
'use strict';
$(function () {
$('.js-positions .btn').on('click', function () {
var type = $(this).data('type');
var position = $(this).data('position');
$('#toast-container').remove... |
theclashingfritz/Cog-Invasion-Online-Dump | aifc.py | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: aifc
import struct, __builtin__
__all__ = [
'Error', 'open', 'openfp']
class Error(Exception):
pass
_AIFC_version = 2726318400L
... |
odss/py-odss | tests/cdi/test_decorators.py | import pytest
from odss.cdi import consts
from odss.cdi.contexts import get_factory_context
from odss.cdi.decorators import (
Component,
Instantiate,
Invalidate,
Provides,
Requires,
Validate,
)
def test_component():
with pytest.raises(TypeError):
Component()
@Component
cl... |
yunjieyao/calcentral | src/redux/actions/routeActions.js | <filename>src/redux/actions/routeActions.js
export const SET_CURRENT_ROUTE_PROPERTIES = 'SET_CURRENT_ROUTE_PROPERTIES';
export const setCurrentRouteProperties = props => ({
type: SET_CURRENT_ROUTE_PROPERTIES,
value: props
});
|
djstaros/qmcpack | src/AFQMC/Matrix/tests/test_csr_matrix.cpp | //////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2017 <NAME> and QMCPACK developers.
//
// File developed by:
//
// File crea... |
benshrimpton/node | app/models/customerGroup.server.model.js | /**
* Created by tebesfinwo on 7/28/14.
*/
'use strict';
var Mongoose = require('mongoose'),
Schema = Mongoose.Schema;
/**
* Customer Group Schema
* */
var customerGroupSchema = new Schema({
customer_group_id : {
type : Number
},
customer_group_code : {
type : String
}
});
Mon... |
kai-ako/kai-ako | spec/models/user_spec.rb | <filename>spec/models/user_spec.rb
require 'rails_helper'
RSpec.describe User, type: :model do
describe "Mulitple user creation" do
it "can create multiple users in the db" do
expect{create_list(:user, 5)}.to change{User.count}.by(5)
end
end
describe "#self.find_or_create_from_omniauth" do
it "can find a ... |
Ligtus/JavaPracticeHacktoberfest | src/marcoscastro2.java | <gh_stars>10-100
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
public class Ejemplo1urlCon {
public static void main(String[] args) {
URL url = null... |
wapache/opengauss | src/gausskernel/storage/mot/core/src/system/transaction/txn.cpp | <filename>src/gausskernel/storage/mot/core/src/system/transaction/txn.cpp
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* ... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/Intents/INRunWorkflowWorkflowResolutionResult.h | <gh_stars>10-100
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import <Intents/INSpeakableStringResolutionResult.h>
@interface INRunWorkflowWorkflowResolutionResult : INSpeakableStringResolutionResult
{
}
+ (id)unsupportedForReaso... |
roshanba/mangal | django/docs/topics/files.txt.py | <filename>django/docs/topics/files.txt.py<gh_stars>0
XXXXXXXXXXXXXX
XXXXXXXX XXXXX
XXXXXXXXXXXXXX
XXXX XXXXXXXX XXXXXXXXX XXXXXXXX XXXX XXXXXX XXXX XXX XXXXX XXXX XX XXXXX
XXXXXXXX XX X XXXXX XXX XXXXX XXXXX XXXX XXX XXXXXXX XXXXXX XXXX XXX XXXXX XXX
XXXX XXX XXXXX XXXXXXXXX XX XXX XXXX XX XXXXXX XXXXXXX XXXXXX XXXX X... |
wq907547122/design23-demo | src/main/java/com/wu/qiang/factory/method/animalExample/CattleFarm.java | package com.wu.qiang.factory.method.animalExample;
/**
* @auth wq on 2019/12/6 16:06
**/
//具体工厂:养牛场
public class CattleFarm implements AnimalFarm
{
public Animal newAnimal()
{
System.out.println("新牛出生!");
return new Cattle();
}
}
|
gublan24/umpleSPLFull | testbed/src-gen-umple/cruise/associations/specializations/Spam.java | <reponame>gublan24/umpleSPLFull<filename>testbed/src-gen-umple/cruise/associations/specializations/Spam.java
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.31.1.5860.78bb27cc6 modeling language!*/
package cruise.associations.specializations;
import java.util.*;
/**
* Many down to N (and... |
veltri/DLV2 | tests/parser/query.08.test.py | input = """
c :- b.
c?
"""
output = """
c :- b.
c?
"""
|
simplay/Bachelor-Thesis | scene/src/Util/Observer.java | <reponame>simplay/Bachelor-Thesis<gh_stars>0
package Util;
import java.util.LinkedList;
import Util.Subscriber;
public abstract class Observer {
protected LinkedList<Subscriber> subscriber;
public Observer(){
this.subscriber = new LinkedList<Subscriber>();
}
public void subscribe(Subscriber subscriber){
... |
edawson/parliament2 | resources/home/dnanexus/root/include/TDecompQRH.h | // @(#)root/matrix:$Id$
// Authors: <NAME>, <NAME> Dec 2003
/*************************************************************************
* Copyright (C) 1995-2000, <NAME> and <NAME>. *
* All rights reserved. *
* ... |
mgd-hin/systemds | src/main/java/org/apache/sysds/runtime/instructions/fed/AggregateUnaryFEDInstruction.java | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... |
antoniobertilpaiva/cert | ejb-in-ear/ejb/src/main/java/com/criticalsoftware/certitools/business/sm/ActivityService.java | <reponame>antoniobertilpaiva/cert
package com.criticalsoftware.certitools.business.sm;
import com.criticalsoftware.certitools.business.exception.BusinessException;
import com.criticalsoftware.certitools.business.exception.CertitoolsAuthorizationException;
import com.criticalsoftware.certitools.business.exception.Objec... |
UNFPAInnovation/GetInRebuild | collect_app/src/main/java/org/odk/getin/android/adapters/UpcomingAppointmentsAdapter.java | <filename>collect_app/src/main/java/org/odk/getin/android/adapters/UpcomingAppointmentsAdapter.java
package org.odk.getin.android.adapters;
import static org.odk.getin.android.utilities.ApplicationConstants.APPOINTMENT_FORM_ID;
import static org.odk.getin.android.utilities.ApplicationConstants.APPOINTMENT_FORM_MIDWIFE... |
Pustur/edabit-js-challenges | src/Date Format/index.test.js | import formatDate from './index';
test('formatDate', () => {
expect(formatDate('11/12/2019')).toBe('20191211');
expect(formatDate('12/31/2019')).toBe('20193112');
expect(formatDate('01/15/2019')).toBe('20191501');
});
|
NLeSC/escxnat | nl.esciencecenter.xnattool/src/nl/esciencecenter/xnattool/XnatTool.java | /*
* Copyright 2012-2014 Netherlands eScience Center.
*
* 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 the following location:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
Legacy-LuaSTG-Engine/LuaSTG-Sub | fancylib/fcyRefObj.h | <filename>fancylib/fcyRefObj.h
////////////////////////////////////////////////////////////////////////////////
/// @file fcyRefObj.h
/// @brief 描述并实现了引用计数接口
////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "fcyType.h"
#define FCYREFOBJ
//////////////////... |
hackerlank/SourceCode | Game/OGRE/PlatformManagers/Win32/src/OgreWin32PlatformDll.cpp | <reponame>hackerlank/SourceCode
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2005 The OGRE Team
Also see acknowledgements in Readme.htm... |
glatteis/tacas21-artifact | artifact/storm/src/storm/utility/math.h | #ifndef STORM_UTILITY_MATH_H_
#define STORM_UTILITY_MATH_H_
#include <cmath>
#include "storm/utility/macros.h"
#include "storm/utility/OsDetection.h"
namespace storm {
namespace utility {
namespace math {
// We provide this method explicitly, because MSVC does not offer it (non-C99 compliant)... |
shijingsh/shijingsh-ai2 | shijingsh-ai-jsat/src/main/java/com/shijingsh/ai/jsat/clustering/evaluation/AdjustedRandIndex.java | <reponame>shijingsh/shijingsh-ai2
package com.shijingsh.ai.jsat.clustering.evaluation;
import static java.lang.Math.exp;
import static java.lang.Math.log;
import java.util.List;
import com.shijingsh.ai.jsat.DataSet;
import com.shijingsh.ai.jsat.classifiers.ClassificationDataSet;
import com.shijingsh.ai.jsat... |
nathanfaucett/js-frontend-template | config/tasks/webpack.js | var vfs = require("vinyl-fs"),
webpack = require("webpack-stream"),
filePath = require("@nathanfaucett/file_path");
var webpackConfig = function(config) {
return {
devtool: "source-map",
output: {
filename: "index.js"
},
module: {
loaders: [{
... |
macedo22/spectre | tests/Unit/Helpers/PointwiseFunctions/Hydro/TestHelpers.hpp | <reponame>macedo22/spectre
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <random>
#include "DataStructures/Tensor/TypeAliases.hpp"
/// \cond
namespace gsl {
template <typename T>
class not_null;
} // namespace gsl
/// \endcond
namespace TestHelpers {
/// \ingroup Test... |
Jorropo/js-libp2p | examples/pnet-ipfs/index.js | <reponame>Jorropo/js-libp2p
/* eslint no-console: ["off"] */
'use strict'
const IPFS = require('ipfs')
const assert = require('assert').strict
const { generate: writeKey } = require('libp2p/src/pnet')
const path = require('path')
const fs = require('fs')
const privateLibp2pBundle = require('./libp2p-bundle')
const { m... |
miguel-isasmendi/store | src/main/java/com/store/domain/model/order/OrderStatus.java | <filename>src/main/java/com/store/domain/model/order/OrderStatus.java
package com.store.domain.model.order;
public enum OrderStatus {
NEW, IN_PROGRESS, COMPLETE, CANCELLED
}
|
JamesCao2048/BlizzardData | Corpus/aspectj/4078.java | <gh_stars>1-10
package p;
aspect B extends Y {
declare parents: A* implements IFace;
}
abstract aspect Y {
public void IFace.foo() {}
}
interface IFace {}
|
feueraustreter/YAPION | src/main/java/yapion/exceptions/parser/YAPIONParserException.java | // SPDX-License-Identifier: Apache-2.0
// YAPION
// Copyright (C) 2019,2020 yoyosource
package yapion.exceptions.parser;
import yapion.exceptions.YAPIONException;
public class YAPIONParserException extends YAPIONException {
public YAPIONParserException() {
super();
}
public YAPIONParserExceptio... |
othonreyes/code_problems | python/fundamentals/tree/treev2.py | class Node:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def insert(root, value) -> Node:
if not root:
root = Node(value)
return root
n = root
while True:
if n.value > value: #go left
if n.left is None:
n.left = Node(value)
... |
davidvlaminck/OTLClassPython | src/OTLMOW/OTLModel/Datatypes/KlSeinbrugRijrichting.py | <reponame>davidvlaminck/OTLClassPython<gh_stars>1-10
# coding=utf-8
from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField
from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde
# Generated with OTLEnumerationCreator. To modify: extend, do not edit
class KlSeinbrugRijrichting(Keuzelijs... |
Shan1024/carbon-auth | components/auth/org.wso2.carbon.auth.core/src/main/java/org/wso2/carbon/auth/core/encryption/SymmetricEncryption.java | <filename>components/auth/org.wso2.carbon.auth.core/src/main/java/org/wso2/carbon/auth/core/encryption/SymmetricEncryption.java
/*
*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you ... |
51breeze/EaseScript | javascript/system/ElementEvent.js | <reponame>51breeze/EaseScript
/*
* EaseScript
* Copyright © 2017 EaseScript All rights reserved.
* Released under the MIT license
* https://github.com/51breeze/EaseScript
* @author <NAME> <<EMAIL>>
* @require System,Event,Object
*/
function ElementEvent( type, bubbles,cancelable )
{
if( !System.instanceOf(th... |
menty44/tutorials | jee-7/src/test/java/com/baeldung/batch/understanding/JobSequenceUnitTest.java | package com.baeldung.batch.understanding;
import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import javax.batch.operations.JobOperator;
import javax.batch.runtime.BatchRuntime;
import javax.batch.runtime.BatchStatus;
import javax.batch.ru... |
aqiu202/aqiu-spring-boot-starter-projects | core/id-generator-core/src/main/java/com/github/aqiu202/id/generator/SnowFlakeIdGenerator.java | <filename>core/id-generator-core/src/main/java/com/github/aqiu202/id/generator/SnowFlakeIdGenerator.java
package com.github.aqiu202.id.generator;
import com.github.aqiu202.id.IdGenerator;
import com.github.aqiu202.id.prop.SnowFlakeIdProperties;
import org.springframework.lang.NonNull;
/**
* <pre>SnowFlakeIdGenerator... |
forgot2015/ForgotJavaLearning | src/book/headfirstjava/two/GameLauncher.java | <filename>src/book/headfirstjava/two/GameLauncher.java
package book.headfirstjava.two;
/**
* Created by forgot on 2017/6/25.
*/
public class GameLauncher {
public static void main(String[] args) {
GuessGame guessGame = new GuessGame();
guessGame.startGame();
}
}
|
mindspore-ai/models | research/cv/SE_ResNeXt50/eval.py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
Bind-Forward/vue-postgrest | src/GenericModel.js | import Vue from 'vue'
import { PrimaryKeyError } from '@/errors'
import { $diff, $freeze, createDiffProxy, createReactivePrototype, mapAliasesFromSelect } from '@/utils'
class GenericModel {
#options
#proxy
constructor (options, data) {
this.#options = options
Object.assign(this, data)
this.#proxy =... |
SubscribeIT/ngDesk | ngDesk-Module-Service/src/main/java/com/ngdesk/repositories/ModuleValidationRepository.java | package com.ngdesk.repositories;
import com.ngdesk.module.validations.dao.ModuleValidation;
public interface ModuleValidationRepository
extends CustomNgdeskRepository<ModuleValidation, String>, CustomModuleValidationRepository {
}
|
donsheng/acrn-hypervisor | misc/services/life_mngr/uart_channel.h | /*
* Copyright (C)2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _UART_CHANNEL_H_
#define _UART_CHANNEL_H_
#include <sys/queue.h>
#include <pthread.h>
#include <semaphore.h>
#include <sys/un.h>
#include "uart.h"
#define WAIT_USER_VM_POWEROFF (10*SECOND_TO_US)
#define CHANNEL_DEV_NAME_MAX... |
wallet-io/ledger-app-walletio | deps/lib-coins-c/src/eth_m/eth_m_transaction.c | <reponame>wallet-io/ledger-app-walletio
#include "eth_m_transaction.h"
#include "../common/rlp.h"
#include "../common/tx_helper.h"
#include "../common/utils.h"
typedef struct {
uint8_t start_index;
uint8_t len;
} field_info_t;
static field_info_t field_info[] = {
{0, 5}, //PREFIX
{5, 20}, //ADDRE... |
poanchen/iotc-go | src/models/symmetric_key.go | <reponame>poanchen/iotc-go
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi... |
rafiyasirin/jackrabbit-oak | oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/S3DataStore.java | <reponame>rafiyasirin/jackrabbit-oak<filename>oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/S3DataStore.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 re... |
mgoyal2-atl/atlassian-slack-integration-server | bitbucket-slack-server-integration-plugin/src/main/java/com/atlassian/bitbucket/plugins/slack/notification/renderer/SlackLinkRenderer.java | <filename>bitbucket-slack-server-integration-plugin/src/main/java/com/atlassian/bitbucket/plugins/slack/notification/renderer/SlackLinkRenderer.java<gh_stars>10-100
package com.atlassian.bitbucket.plugins.slack.notification.renderer;
import com.atlassian.bitbucket.avatar.AvatarRequest;
import com.atlassian.bitbucket.a... |
superspeeder/thegame | Engine/src/Buffer.cpp | #include "kat/renderer/Buffer.hpp"
#include <spdlog/spdlog.h>
kat::VertexBuffer::VertexBuffer(std::vector<float> data, BufferMode mode) : m_Data(data), m_Mode(mode), m_EffectiveSize(data.size()) {
glGenBuffers(1, &m_Buffer);
push();
spdlog::debug("Created VertexBuffer({0}, {2}) : {1} bytes", m_Buffer, data.size() ... |
yashvantys/shecabs | assets/surveyapp/custom/custom/management/statistics.js | var Statistics = function () {
return{
loadPage:function(){
var clientList = $.cookie("man-statistics-client-list");
if (clientList != null) {
$("#clientlist").select2("val",clientList.split(','));
}
$(".chkuserfilter").click(function(){
var chk= $('.chkuserfilter').is(':checked');
if(chk... |
dhinf/otf2xx | include/otf2xx/definition/detail/comm_impl.hpp | /*
* This file is part of otf2xx (https://github.com/tud-zih-energy/otf2xx)
* otf2xx - A wrapper for the Open Trace Format 2 library
*
* Copyright (c) 2013-2016, Technische Universität Dresden, Germany
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... |
dmcouncil/copyable | spec/config_spec.rb | <gh_stars>0
require_relative 'helper/copyable_spec_helper'
describe 'Copyable.config' do
it 'should be defined' do
expect(Copyable).to respond_to(:config)
end
describe 'suppress_schema_errors' do
it 'should default to false' do
expect(Copyable.config.suppress_schema_errors).to be_falsey
end
... |
ajblane/iota_fpga | pow_accel_soc/software/u-boot-socfpga/board/xes/xpedite517x/xpedite517x.c | /*
* Copyright 2009 Extreme Engineering Solutions, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program 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; eithe... |
M1kemclain247/ParkingDemo | app/src/main/java/com/example/m1kes/parkingdemo/adapters/recyclerviews/LoggedInAdapter.java | <filename>app/src/main/java/com/example/m1kes/parkingdemo/adapters/recyclerviews/LoggedInAdapter.java
package com.example.m1kes.parkingdemo.adapters.recyclerviews;
import android.content.Context;
import android.os.CountDownTimer;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import... |
GravisZro/kos | common/net/net_ipv6.c | /* KallistiOS ##version##
kernel/net/net_ipv6.c
Copyright (C) 2010, 2012, 2013 <NAME>
*/
#include <string.h>
#include <netinet/in.h>
#include <kos/net.h>
#include <kos/fs_socket.h>
#include <errno.h>
#include "net_ipv6.h"
#include "net_icmp6.h"
#include "net_ipv4.h"
static net_ipv6_stats_t ipv6_stats = { 0 }... |
jlanga/smsk_selection | src/guidance.v2.02/programs/semphy/semphySearchBestTree.h | <reponame>jlanga/smsk_selection<gh_stars>1-10
// $Id: semphySearchBestTree.h 6002 2009-03-20 19:39:03Z privmane $
#ifndef ___SEMPHY_SEARCH_BEST_TREE
#define ___SEMPHY_SEARCH_BEST_TREE
#include "alphabet.h"
#include "sequenceContainer.h"
#include "tree.h"
#include "stochasticProcess.h"
#include <iostream>
using name... |
mailfly/das | das-console-manager/src/main/java/com/ppdai/platform/das/console/dto/entry/das/DataSearchLog.java | <filename>das-console-manager/src/main/java/com/ppdai/platform/das/console/dto/entry/das/DataSearchLog.java<gh_stars>1-10
package com.ppdai.platform.das.console.dto.entry.das;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ppdai.das.client.ColumnDefinition;
import com.ppdai.das.client.TableDefinition;
... |
aaujayasena/identy-apps | node_modules/rc-tree/lib/DropIndicator.js | <gh_stars>0
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = DropIndicator;
var React = _interopRequireWildcard(require("react"));
function DropIndicator(_ref) {
var dropPosition... |
nesl/UnderwaterSensorTag | Aquamote/Firmware/Firmware3.1/GPS_workspace/ble_examples-ble_examples-2.2/src/components/display_eng/ti/mw/display/DisplaySharp.c | <filename>Aquamote/Firmware/Firmware3.1/GPS_workspace/ble_examples-ble_examples-2.2/src/components/display_eng/ti/mw/display/DisplaySharp.c
/*
* Copyright (c) 2016, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... |
zeyuanxy/LeetCode | vol3/word-ladder-ii/word-ladder-ii.cpp | class Solution {
public:
void bfs(string start, string end, unordered_set<string> &dict, unordered_map<string, int> &depth) {
if(start == end)
return;
queue<string> q;
q.push(start);
depth[start] = 0;
while(!q.empty()) {
string s = q.front();
... |
phantomDai/CMTJmcr | mcr-test/src/main/java/edu/tamu/aser/tests/ABPushPop/ProgLoader.java | package edu.tamu.aser.tests.ABPushPop; /*************************************************************/
/* (C) IBM Corporation (2007), ALL RIGHTS RESERVED */
/* */
/* <NAME> 30/1/2007 Class created */
/************************************... |
python20180319howmework/homework | zhangqi/20180328/h4.py | #4. 定义一个函数,完成以下功能:
# 1) 输入两个整型数,例如输入的是3, 5
# 2) 此函数要计算的是3 + 33 + 333 + 3333 + 33333(到5个为止)
def sum1(m, n):
sumnum = 0
for i in range(1,n+1):
sumnum = sumnum + int(str(m)*i)
return sumnum
print("结果是{}".format(sumnum))
a, b = eval(input("请输入两个整型数"))
print(sum1(a, b))
|
yutingzou/tp | src/test/java/seedu/address/model/schedule/ScheduleTrackerTest.java | package seedu.address.model.schedule;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.Assert.assertThrows;
import static seedu.address.testutil.Typica... |
dpercy/evergreen | vendor/github.com/mongodb/jasper/vendor/github.com/tychoish/mongorpc/mongowire/wire_get_more.go | <reponame>dpercy/evergreen
package mongowire
import "github.com/pkg/errors"
func NewGetMore(ns string, number int32, cursorID int64) Message {
return &getMoreMessage{
header: MessageHeader{
RequestID: 19,
OpCode: OP_GET_MORE,
},
Namespace: ns,
NReturn: number,
CursorId: cursorID,
}
}
func (m ... |
zdivozzo/react-bootstrap | test/InputGroupSpec.js | import React from 'react';
import { mount } from 'enzyme';
import InputGroup from '../src/InputGroup';
describe('<InputGroup>', () => {
it('Should have div as default component', () => {
const wrapper = mount(<InputGroup />);
expect(wrapper.find('div').length).to.equal(1);
});
});
|
reo-ar/airline | airline-web/app/controllers/HistoryUtil.scala | <gh_stars>10-100
package controllers
import java.util
import java.util.concurrent.TimeUnit
import com.google.common.cache.{CacheBuilder, CacheLoader, LoadingCache}
import com.patson.data.{ConsumptionHistorySource, CycleSource}
import com.patson.model.{PassengerType, _}
import models.{LinkHistory, RelatedLink}
import... |
wisehackermonkey/magic | gcr/gcrRoute.c | /* gcrRoute.c -
*
* The greedy router: Top level procedures.
*
* *********************************************************************
* * Copyright (C) 1985, 1990 Regents of the University of California. *
* * Permission to use, copy, modify, and distribute this *
* * software and ... |
makhatadze/admin_panel | public/js/node_modules_ant-design_icons_es_icons_TrademarkCircleFilled_js.js | <reponame>makhatadze/admin_panel
(self["webpackChunk"] = self["webpackChunk"] || []).push([["node_modules_ant-design_icons_es_icons_TrademarkCircleFilled_js"],{
/***/ "./node_modules/@ant-design/icons-svg/es/asn/TrademarkCircleFilled.js":
/*!****************************************************************************!... |
4lexBaum/openui5 | src/sap.ui.support/test/sap/ui/support/integration/ui/SupportAssistantOpaConfig.js | sap.ui.require([
"sap/ui/test/Opa5",
"sap/ui/support/integration/ui/arrangements/Arrangement",
"sap/ui/support/integration/ui/data/CommunicationMock",
"sap/ui/support/mock/StorageSynchronizer",
"sap/ui/test/opaQunit",
"sap/ui/support/integration/ui/pages/Main",
"sap/ui/support/integration/ui/pages/Issues",
"sap... |
zx1993312/ry | ruoyi-system/src/main/java/com/ruoyi/system/domain/MeterAndCase.java | package com.ruoyi.system.domain;
import java.math.BigDecimal;
import com.ruoyi.common.annotation.Excel;
public class MeterAndCase {
/** 主键 */
private Long id;
/** 房屋编号 */
@Excel(name = "房屋编号")
private String houseNum;
/** 表计类型 */
@Excel(name = "表计类型")
private Integer meterType;
/** 表计序号 */
@Excel(name ... |
larrytheliquid/dataflow | spec/forker_spec.rb | require "#{File.dirname(__FILE__)}/spec_helper"
describe 'Setting a customer forker' do
before(:all) do
@original_forker = Dataflow.forker
Dataflow.forker = Class.new do
def self.synchronous_forker(&block)
block.call
end
end.method(:synchronous_forker)
end
after(:all) do
Data... |
rickypai/chromotype | app/models/season_tag.rb | class SeasonTag < Tag
def self.root_name
"seasons"
end
def self.seasons_root
named_root(DateTag.named_root)
end
def self.for_date(date)
I18n.t("tags.#{self.root_name}.name")
season_name = I18n.t("tags.seasons.#{date.season.to_s}")
seasons_root.find_or_create_by_path season_name
end
... |
NitinSatpal/Event-Scheduler | public/lib/vendor/ng-video/PlaybackRate.js | <reponame>NitinSatpal/Event-Scheduler
(function PlaybackRate($angular) {
"use strict";
/**
* @method createPlaybackRateDirective
* @param name {String}
* @param clickFn {Function}
* @return {Object}
*/
var createPlaybackRateDirective = function createPlaybackRateDirective(name, cl... |
MercuriusXeno/Goo | src/main/java/com/xeno/goo/datagen/BaseLootTableProvider.java | <reponame>MercuriusXeno/Goo<filename>src/main/java/com/xeno/goo/datagen/BaseLootTableProvider.java
package com.xeno.goo.datagen;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.xeno.goo.GooMod;
import com.xeno.goo.setup.Registry;
import net.minecraft.block.Block;
import net.minecraft.data.D... |
bradchesney79/illacceptanything | linux/drivers/staging/comedi/drivers/ni_tio_internal.h | /*
drivers/ni_tio_internal.h
Header file for NI general purpose counter support code (ni_tio.c and
ni_tiocmd.c)
COMEDI - Linux Control and Measurement Device Interface
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... |
MeetYouDevs/hbase-manager | src/main/java/com/meiyou/shiro/core/ShiroConfig.java | package com.meiyou.shiro.core;
import java.util.List;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.realm.Realm;
import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
import org.ap... |
ace2014/Dreamer | DreamerSupport/src/main/java/com/pzl/dreamer/utils/GraphicUtil.java | <filename>DreamerSupport/src/main/java/com/pzl/dreamer/utils/GraphicUtil.java
package com.pzl.dreamer.utils;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.text.Layout;
import android.text.TextPaint;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
/**
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.