repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
pfhello/v-shop | v-model/src/main/java/cn/itcast/shop/pojo/User.java | <gh_stars>0
package cn.itcast.shop.pojo;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class User implements Serializable{
/* `uid` varchar(32) NOT NULL,
`username` varchar(20) DEFAULT NULL,
`password` varchar(20) DEFAULT NULL,
`name` varchar(20) DEFAULT NULL,
`ema... |
lxhlzq/metasfresh | backend/de.metas.business/src/main/java/de/metas/security/permissions/bpartner_hierarchy/handlers/BPartnerDependentDocumentHandlersMap.java | package de.metas.security.permissions.bpartner_hierarchy.handlers;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
import org.adempiere.model.InterfaceWrapperHelper;
import org.adempiere.util.lang.impl.TableRecordReference;
import com.google.common.collect.ImmutableMap;
import com.g... |
wb14123/bard | bard-basic/src/main/java/com/bardframework/bard/basic/injector/DocInjector.java | package com.bardframework.bard.basic.injector;
import com.bardframework.bard.basic.marker.Doc;
import com.bardframework.bard.core.BindTo;
import com.bardframework.bard.core.Injector;
@BindTo(Doc.class)
public class DocInjector extends Injector<Doc> {
@Override public void generateDoc() {
docParameter.desc... |
Mavennix/eltaj | src/data/footer-menu.js | <filename>src/data/footer-menu.js
const footerMenu = [
{
title: "ELTAJ",
menuItems: [
{
text: "About us",
to: "/about",
},
{
text: "Career",
to: "/career",
},
{
text: "Blog",
to: "",
},
{
text: "Partners",
... |
ViseEngine/dhtmlx_web | assets/lib/dhtmlx/v403_pro/sources/dhtmlxPopup/codebase/dhtmlxpopup.js | /*
Product Name: dhtmlxSuite
Version: 4.0.3
Edition: Professional
License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact <EMAIL>
Copyright <NAME> http://www.dhtmlx.com
*/
function dhtmlXPopup(conf) {
var that = this;
... |
bbargstaedt/conflowgen | conflowgen/domain_models/data_types/container_length.py | from __future__ import annotations
import enum
import enum_tools.documentation
@enum_tools.documentation.document_enum
class ContainerLength(enum.Enum):
"""
The container length is one of the most important factors of how much space a container occupies. Here, the most
common container sizes (neglecting h... |
chuyiting/tp | src/main/java/seedu/studybananas/logic/commands/commandresults/QuizErrorCommandResult.java | <filename>src/main/java/seedu/studybananas/logic/commands/commandresults/QuizErrorCommandResult.java
package seedu.studybananas.logic.commands.commandresults;
import static seedu.studybananas.logic.commands.commandresults.QuizCommandResultType.ERROR;
public class QuizErrorCommandResult extends QuizCommandResult {
... |
uqlibrary/homepage-react | src/modules/SharedComponents/Toolbox/HelpDrawer/actions.js | <filename>src/modules/SharedComponents/Toolbox/HelpDrawer/actions.js
// Types
export const SHOW = 'HELP_DRAWER_SHOW';
export const HIDE = 'HELP_DRAWER_HIDE';
// Actions
export function show(title, text, buttonLabel) {
return {
type: SHOW,
payload: { title, text, buttonLabel },
};
}
export func... |
samahAbujwaied/data-structures-and-algorithms401 | C28_401js/index.js | 'use strict'
function quickSort(array, left, right) {
//[8,4,23,42,16,15];
let index;
if (array.length > 1) {
index = partition(array, left, right);
if (left < index - 1) {
quickSort(array, left, index - 1);
}
if (index < right) {
quickSort(array, in... |
yangbiny/imp | imp-rpc/imp-rpc-api/src/main/java/com/impassive/rpc/invocation/Invocation.java | package com.impassive.rpc.invocation;
/**
* @author impassivey
*/
public interface Invocation {
/**
* 返回执行对象的接口全路径名
*
* @return 执行对象的接口全路径名
*/
String getServiceName();
/**
* 获取待执行方法的方法名称
*
* @return 方法名称
*/
String getMethodName();
/**
* 获取执行方法的参数类型
*
* @return 参数类型
*/... |
webispy/nugu-linux | src/core/session_manager.hh | <reponame>webispy/nugu-linux<filename>src/core/session_manager.hh
/*
* Copyright (c) 2019 SK Telecom 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 copy of the License at
*
* ... |
azerothcore/lib-ace | ace/Mutex.inl | // -*- C++ -*-
#include "ace/OS_NS_sys_mman.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE int
ACE_Mutex::acquire_read (void)
{
// ACE_TRACE ("ACE_Mutex::acquire_read");
#if defined (ACE_HAS_PTHREADS) || defined(ACE_HAS_STHREADS)
if (this->process_lock_)
return ACE_OS::mutex_lock (this->process... |
rjfpeters-iefbr14/mod1-energy-guard-system | mod1-agm-service/src/main/java/tld/yggdrasill/services/agm/core/delegate/CreateFulFillmentProcessDelegate.java | package tld.yggdrasill.services.agm.core.delegate;
import lombok.extern.slf4j.Slf4j;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;
import tld.yggdrasill.services.agm.client.safetydossier.SafetyDossierClien... |
ivanceras/orm | src/main/java/com/ivanceras/db/api/ColumnDataType.java | <reponame>ivanceras/orm
package com.ivanceras.db.api;
public class ColumnDataType{
private String[] columns = null;
private String[] dataTypes = null;
private String[] comments = null;
public void setDataTypes(String[] dataTypes) {
this.dataTypes = dataTypes;
}
public String[] getDataTypes() {
return data... |
rknop/amuse | src/amuse/test/suite/core_tests/test_scaling_converter.py | from amuse.units import scaling_converter
from amuse.units import nbody_system
from amuse.test import amusetest
class TestScalingConverter(amusetest.TestCase):
def test1(self):
converter = scaling_converter.ScalingConverter(
length = 0.2,
time = 0.1,
)
input = 1... |
hyu-iot/gem5 | mibench/office/ghostscript/src/zdevice2.c | /* Copyright (C) 1993, 1995, 1997 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
or distributor accepts any responsibility for the consequences of using it,
or for whether it serves any partic... |
evemonk/evemonk | spec/controllers/admin/settings_controller_spec.rb | <filename>spec/controllers/admin/settings_controller_spec.rb
# frozen_string_literal: true
require "rails_helper"
describe Admin::SettingsController do
it { should be_an(Admin::ApplicationController) }
end
|
aparo/zio-elasticsearch | elasticsearch-admin/shared/src/main/scala/elasticsearch/managers/IndicesManager.scala | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
haroldl/rest.li | gradle-plugins/src/main/java/com/linkedin/pegasus/gradle/tasks/ChangedFileReportTask.java | package com.linkedin.pegasus.gradle.tasks;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import org.gradle.api.DefaultTask;
import org.gradle.api.file.FileCollection;
import org.gradle.api.specs.Specs;
import org.gradle.api.... |
kathy32/code-front-end | algorithm/path.js | /**
* 有一个 m 行 n 列的矩阵地图,起点位于左上角,终点位于右下角。
*
* 一个机器人要从起点走到终点,而且每一步只能往前走(往右或往下),不能往回走。
*
* 实现一个算法,输入 m 和 n,输出机器人从起点走到终点有多少条不同的路径。
*
* 比如:
* 输入: m = 2, n = 3 输出 3
* 解释:
* 1. 右 -> 右 -> 下
* 2. 右 -> 下 -> 右
* 3. 下 -> 右 -> 右
*
* 输入:m = 3, n = 6 输出 21
*/
// 思路:https://leetcode-cn.com/problems/unique-paths/solu... |
MXDTeam/zsrc | src/main/java/scripting/PortalScript.java | <gh_stars>1-10
package scripting;
public interface PortalScript {
void enter(PortalPlayerInteraction ppi);
}
|
bridennis/leetcode-on-go | problems/easy/implement-strstr/main_test.go | package easy_implement_strstr
import "testing"
func Test_strStr(t *testing.T) {
type args struct {
haystack string
needle string
}
tests := []struct {
name string
args args
want int
}{
{
name: "strStr #1",
args: struct {
haystack string
needle string
}{haystack: "hello", needle: "... |
KnpLabs/server-side-renderer | src/worker/index.js | export { default } from './initWorker'
|
dpkristensen/bfdm | pkg/BfsdlTests/source/CommonTypesTest.cpp | <reponame>dpkristensen/bfdm
/**
Tests for BFDP Common Types
Copyright 2016-2019, <NAME>, Garmin Ltd, or its subsidiaries.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redis... |
er5bus/sm | src/containers/admin/containers/assessment-tool/components/menu/AssessmentToolEdit.js | import React, { useEffect } from "react"
import { injectIntl } from "react-intl"
import { isEmpty } from "lodash"
import { shallowEqual, useSelector, useDispatch } from "react-redux"
import { fetchAssessmentTool } from "./../../store/actions"
import menuItems from "./items/edit"
import {Menu} from "../../../../../../c... |
nithinkumar030/bigmuddy-network-telemetry-pipeline | vendor/github.com/cisco/bigmuddy-network-telemetry-proto/proto_go/cisco_ios_xr_ipv4_ospf_oper/ospf/processes/process/default_vrf/mpls_te/mpls_te_fragments/mpls_te_fragment/a.go | <gh_stars>1-10
//go:generate protoc --go_out=plugins=grpc:. ospf_sh_mpls.proto
// Cisco-IOS-XR-ipv4-ospf-oper:ospf/processes/process/default-vrf/mpls-te/mpls-te-fragments/mpls-te-fragment
package cisco_ios_xr_ipv4_ospf_oper_ospf_processes_process_default_vrf_mpls_te_mpls_te_fragments_mpls_te_fragment
... |
ciremoussadia/finitio-rb | lib/finitio/syntax/import.rb | module Finitio
module Syntax
module Import
include Node
capture :import_url
def compile(system)
file = system.resolve_url(import_url)
imported = Finitio.send(:_system, file)
system.add_import(imported)
system
end
def to_ast
[:import, import_... |
femmebot/shape | __tests__/ui/global/MainMenuDropdown.unit.test.js | import MainMenuDropdown, {
CONTEXT_USER,
CONTEXT_ORG,
} from '~/ui/global/MainMenuDropdown'
import { fakeOrganization } from '#/mocks/data'
import fakeUiStore from '#/mocks/fakeUiStore'
import fakeApiStore from '#/mocks/fakeApiStore'
import fakeRoutingStore from '#/mocks/fakeRoutingStore'
window.IdeoSSO = { profil... |
Andreas237/AndroidPolicyAutomation | ExtractedJars/Health_com.huawei.health/javafiles/cn/com/fmsh/nfcos/client/service/huawei/NfcosActivity.java | <gh_stars>1-10
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package cn.com.fmsh.nfcos.client.service.huawei;
import android.os.Parcel;
import android.os.Parcelable;
public class NfcosActivity
implements Parc... |
uagg/SoftwareUniversity | 3. Professional Module/Java Web Developer/1. Java Fundamentals/1. Java Advanced/04. Data Representation And Manipulation/Lab/1. Sorting/src/Main.java | <reponame>uagg/SoftwareUniversity
/*
Implement the following sorting algorithms:
• Bubble Sort
• Selection Sort
Read a sequence of numbers from the console, sort them and print them back.
*/
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner... |
bobperonga/way4u | src/components/contact-component/contact-form.js | <filename>src/components/contact-component/contact-form.js
import styled from "styled-components"
export const ContactForm = styled.form`
background: white;
padding: 30px;
color: #5d5d5d;
display: flex;
flex-direction: column;
h3 {
font-size: 1.8rem;
line-height: 1.8rem;
}
input[type="button"] ... |
yath/restic | cmd/restic/cmd_list.go | package main
import (
"errors"
"fmt"
"github.com/restic/restic/backend"
)
type CmdList struct{}
func init() {
_, err := parser.AddCommand("list",
"lists data",
"The list command lists structures or data of a repository",
&CmdList{})
if err != nil {
panic(err)
}
}
func (cmd CmdList) Usage() string {
... |
WillTong/mybatis-helper | mybatis-helper-datascope/src/main/java/com/github/mybatis/helper/datascope/annotation/DataScopeSettings.java | package com.github.mybatis.helper.datascope.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
public @interface ... |
NellyD3v/GitHub-Defreshed | src/fixers/repository/edit-details-fixer.js | import { isRepoRoot, isRepoSetup } from "../../tools/path-detector";
import { waitUntilElementsReady, checkIfElementsReady } from "../../tools/wait-until-ready";
import Fixer from "../fixer";
/**
* Moves repository's details editor to the top section.
*/
export default class EditDetailsFixer extends Fixer {
/** ... |
eugeneilyin/mdi-norm | es/OutlineSignalWifiOff.js | import React from 'react';
import { Icon } from './Icon';
export var OutlineSignalWifiOff =
/*#__PURE__*/
function OutlineSignalWifiOff(props) {
return React.createElement(Icon, props, React.createElement("path", {
d: "M23.64 7c-.45-.34-4.93-4-11.64-4-1.32 0-2.55.14-3.69.38L18.43 13.5 23.64 7zM3.41 1.31L2 2.72l2.... |
shmarovfedor/esbmc | regression/esbmc-cpp/cpp/ch4_17/main.cpp | // Fig. 4.17: fig04_17.cpp
// This program introduces the topic of survey data analysis.
// It computes the mean, median, and mode of the data.
#include <iostream>
using std::cout;
using std::endl;
using std::fixed;
#include <iomanip>
using std::setw;
using std::setprecision;
void mean( const int [], int );
void me... |
meherwan/ProjectFirst | node_modules/babel-npm-module-example/example.js | 'use strict';
/* global require */
var Developer = require('./dist/developer.js').default;
var developer = new Developer('Alex', '??');
developer.sayWhoAmI();
|
PhysShell/inexplicable_engine | inex/render/api.h | ////////////////////////////////////////////////////////////////////////////
// Created : 04.01.2019
// Author : <NAME>
////////////////////////////////////////////////////////////////////////////
#ifndef INEX_RENDER_API_H_INCLUDED
# define INEX_RENDER_API_H_INCLUDED
# ifndef INEX_RENDER_API
# include <inex/macro... |
chromium/chromium | chrome/browser/ash/arc/sharesheet/arc_sharesheet_bridge.h | <filename>chrome/browser/ash/arc/sharesheet/arc_sharesheet_bridge.h
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_ARC_SHARESHEET_ARC_SHARESHEET_BRIDGE_H_
#define CHROME_BROW... |
java-tools/awe | awe-framework/awe-client-angular/src/main/resources/js/lib/highcharts/i18n/highcharts-lang.js | /**
* General highcharts lang object
* @author <NAME>
*/
global.HighchartsLocale = {};
|
SETTER2000/sailsinaction | assets/js/controllers/tutorialsDetailNewPageController.js | angular.module('brushfire').controller('tutorialsDetailNewPageController', ['$scope', '$http', 'toastr', function($scope, $http, toastr){
/*
____ _____ _
/ __ \ | __ \ | |
| | | |_ __ | |__) |___ _ __ __| | ___ _ __
| | | | '_ \ | _ // ... |
mulesoft/amf | amf-cli/shared/src/test/scala/amf/resolution/ExtensionResolutionTest.scala | package amf.resolution
import amf.core.client.scala.config.RenderOptions
import amf.core.internal.remote.{AmfJsonHint, Raml10, Raml10YamlHint}
import scala.concurrent.ExecutionContext
class ExtensionResolutionTest extends ResolutionTest {
override implicit val executionContext: ExecutionContext = ExecutionContext... |
mikolajgucki/ae-engine | studio/plugins/file/src/main/java/com/andcreations/ae/studio/plugins/file/FileAdapter.java | package com.andcreations.ae.studio.plugins.file;
import java.io.File;
import java.util.List;
/**
* The abstract file listener which does nothing.
*
* @author <NAME>
*/
public abstract class FileAdapter implements FileListener {
/** */
@Override
public void fileCreated(File file) {
}
... |
aitoehigie/britecore_flask | venv/lib/python3.6/site-packages/pylint/test/functional/too_many_ancestors.py | <reponame>aitoehigie/britecore_flask
# pylint: disable=missing-docstring, too-few-public-methods, useless-object-inheritance
class Aaaa(object):
pass
class Bbbb(object):
pass
class Cccc(object):
pass
class Dddd(object):
pass
class Eeee(object):
pass
class Ffff(object):
pass
class G... |
NCAR/sage-gateway-archive | src/main/java/sgf/gateway/web/controllers/security/ConfirmAccountController.java | package sgf.gateway.web.controllers.security;
import org.safehaus.uuid.UUID;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import sgf.ga... |
anhtu1197/WebSocketProject | src/main/java/com/myself/nettychat/common/ssl/StreamReader.java | package com.myself.nettychat.common.ssl;
import java.io.InputStream;
public class StreamReader {
public String toByteArray(InputStream fin)
{
int i = -1;
StringBuilder buf = new StringBuilder();
try{
while((i=fin.read())!=-1){
if(buf.length()>0) buf.append(... |
sdace/United-I-Stand | src/Events/upgrade_unlocked_event.hpp | <filename>src/Events/upgrade_unlocked_event.hpp<gh_stars>0
#pragma once
#include "ECS/Components/upgrade_component.hpp"
class UpgradeUnlockedEvent
{
public:
UpgradeUnlockedEvent(UpgradeType upgrade_type) : upgrade_type(upgrade_type) {}
UpgradeType upgrade_type;
};
|
LLcat1217/arangodb | tests/Replication2/Helper/ModelChecker/Actors.h | <gh_stars>0
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2021-2021 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may... |
travisbrown/dotty-experiments | dotty-cats/kernel-laws/src/main/scala/io/circe/cats/kernel/laws/SemilatticeLaws.scala | <reponame>travisbrown/dotty-experiments<filename>dotty-cats/kernel-laws/src/main/scala/io/circe/cats/kernel/laws/SemilatticeLaws.scala
package io.circe.cats.kernel.laws
import io.circe.cats.kernel.Semilattice
trait SemilatticeLaws[A] given Semilattice[A] extends CommutativeSemigroupLaws[A] with BandLaws[A]
object Se... |
Files-com/files-sdk-python | tests/test_invoice_line_item.py | import unittest
import inspect
import files_sdk
from tests.base import TestBase
from files_sdk.models import InvoiceLineItem
from files_sdk import invoice_line_item
class InvoiceLineItemTest(TestBase):
pass
# Instance Methods
# Static Methods
if __name__ == '__main__':
unittest.main() |
ita-social-projects/horondi_client_fe | src/redux/cart/tests/cart.sagas.test.js | import { expectSaga } from 'redux-saga-test-plan';
import * as matchers from 'redux-saga-test-plan/matchers';
import { handleCartLoad, handleAddCartItem, handleRemoveCartItem } from '../cart.sagas';
import { SET_CART } from '../cart.types';
import { getFromLocalStorage, setToLocalStorage } from '../../../services/local... |
zjukiita/projectElectron | src/components/ModalDev/index.js | import React, { useEffect, useState } from 'react';
import MoviesInfo from '../MoviesInfo';
import api from '../../services/api';
import { useFormik } from 'formik';
import * as Yup from 'yup';
import { Modaal, Container, Close, Button, Box, Label, Buttoon } from './styles';
const Modal = ({ id = 'mod', onClose = () =... |
quinnrong94/HugeCTR | HugeCTR/pybind/metrics_wrapper.hpp | /*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* 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 ... |
umts/screaming-dinosaur | spec/controllers/assignments_controller_spec.rb | <reponame>umts/screaming-dinosaur<filename>spec/controllers/assignments_controller_spec.rb
# frozen_string_literal: true
RSpec.describe AssignmentsController do
let(:roster) { create :roster }
describe 'POST #create' do
subject :submit do
post :create, params: { roster_id: roster, assignment: attributes... |
qioalice/devola | core/view/id.go | <filename>core/view/id.go
// Copyright © 2019. All rights reserved.
// Author: <NAME>.
// Contacts: <<EMAIL>>.
// License: https://opensource.org/licenses/MIT
package view
// ID represents a RAW identifier of View.
//
// This type used only for readable format View ID representation.
// In internal SDK parts View ID ... |
derrickbeining/codesplit-SSR-reduxRouter-app-boiler | src/components/pages/AboutPage.js | import React from 'react'
const AboutPage = props => (
<h1>About Our Thing</h1>
)
export default AboutPage
|
lyonsrob/gistofit | steroids-composer/GistOfIt/app/controllers/Feed.js | 'use strict'
function toArrayObj(array) {
for (var i = 0; i < array.length; ++i)
array[i] = {link: array[i]};
return array;
}
angular.module('gistOfItApp').controller('FeedCtrl', ['$scope', '$q', 'GistofitService', 'embedlyService', 'FeedService',
function ($scope, $q, Gistofit, Embedly, Feed) {
... |
wiarlawd/google-enterprise-connector-manager | projects/connector-manager/source/javatests/com/google/enterprise/connector/instantiator/MockTraversalStateStore.java | // Copyright 2009 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 applicab... |
techlib/adminator | util/leases2csv.py | <gh_stars>1-10
#!/usr/bin/python3 -tt
# -*- coding: utf-8 -*-
import re
from sys import argv, stdin, stdout, stderr, exit
from datetime import datetime
from getopt import gnu_getopt
from ipaddress import ip_address, ip_network
from struct import unpack
from json import load
def parse_leases(data):
leases = {}
... |
Zilig/GraDesignTest | src/main/java/completion/CompareModel/Sentence.java | <filename>src/main/java/completion/CompareModel/Sentence.java
package completion.CompareModel;
import java.io.File;
/**
* @authorE <NAME>
* @authorC 关哲林
* @date 2022/4/25 20:17
* @Description TODO
**/
public class Sentence {
private final File file;
private final String entityCode;
private final Stri... |
chriskim06/go-sdk | profanity/option_test.go | /*
Copyright (c) 2021 - Present. Blend Labs, Inc. All rights reserved
Use of this source code is governed by a MIT license that can be found in the LICENSE file.
*/
package profanity
import (
"testing"
"github.com/blend/go-sdk/assert"
)
func TestConfigOptions(t *testing.T) {
assert := assert.New(t)
p := &Pro... |
hancer/boa | packages/components/src/Label/parseFontSize.test.js | import { assert } from 'chai';
import parseFontSize from './parseFontSize';
describe('parseFontSize', () => {
it('should parse number', () => {
const result = parseFontSize(10);
assert.strictEqual(result, 10);
});
it('should parse string', () => {
const result = parseFontSize('10.2');
assert.str... |
vinayakpokharkar/aws-sdk-java | aws-java-sdk-gluedatabrew/src/main/java/com/amazonaws/services/gluedatabrew/model/PathOptions.java | <gh_stars>1-10
/*
* Copyright 2017-2022 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://aws.amazon.com/apache2.0
*
* o... |
MOUDDENEHamza/ENSEEIHT | 1A/S6/TOB/E24/src/customer/DessertSwing.java | package customer;
import javax.swing.*;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import general.GUI;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.Action... |
ikajic/nengolib | nengolib/monkeypatch.py | import nengo
from nengolib.network import Network
from nengolib.connection import Connection
from nengo import Network as NengoNetwork, Connection as NengoConnection
__all__ = ['patch', 'unpatch']
def patch(network=True, connection=True):
"""Monkey-patches nengolib.Network and/or nengolib.Connection."""
i... |
harshp8l/deep-learning-lang-detection | data/train/scala/2f685898354f069cb7b6e0df7ebdebd1783961cbcont.scala | <gh_stars>10-100
package scala.lms.black
import eval._
import repl._
import org.scalatest.BeforeAndAfter
class TestCont extends TestSuite with BeforeAndAfter {
val under = "cont_"
before {
clean()
}
def resume = """(begin
(EM (EM (begin
(define pending-thunks '())
(define old-base-apply base-apply)
(s... |
Miridescen/BWT | Pods/Headers/Public/Meiqia/MQBotMenuAnswerCellModel.h | //
// MQBotMenuAnswerCellModel.h
// Meiqia-SDK-Demo
//
// Created by <NAME> on 16/8/24.
// Copyright © 2016年 Meiqia. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MQCellModelProtocol.h"
@class MQBotAnswerMessage;
@interface MQBotMenuAnswerCellModel : NSObject <MQCellModelProtocol>
@property ... |
ilan-pinto/mercury | sd-base/customer-credit-rating/model/src/main/java/com/redhat/mercury/customercreditrating/model/BQAlertsRetrieveOutputModel.java | <gh_stars>0
/*
* Customer Credit Rating
* This service domain maintains and administers the bank's credit assessment for customers.
*
* OpenAPI spec version: 2.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit... |
NDPH-ARTS/mts-services | role-service-client/src/main/java/uk/ac/ox/ndph/mts/roleserviceclient/configuration/WebClientConfig.java | package uk.ac.ox.ndph.mts.roleserviceclient.configuration;
import io.netty.channel.ChannelOption;
import io.netty.handler.timeout.ReadTimeoutHandler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.c... |
lmonkiewicz/commutee | routes-service/src/main/java/com/lmonkiewicz/commutee/routes/domain/model/BusStopData.java | package com.lmonkiewicz.commutee.routes.domain.model;
import lombok.*;
/**
* Created by lmonkiewicz on 11.04.2017.
*/
@Builder
@Getter
@EqualsAndHashCode(exclude = {"valid"})
@ToString
public class BusStopData {
@NonNull
private final String id;
@NonNull
private final String name;
@NonNull
... |
JigarkumarPatel/clubhouse-android | Houseclub/src/main/java/me/grishka/appkit/imageloader/ImageLoaderThreadPool.java | <reponame>JigarkumarPatel/clubhouse-android
package me.grishka.appkit.imageloader;
import android.os.Process;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import me.grishka.appkit.util... |
OlafKolditz/ogs | ThirdParty/logog/src/topic.cpp |
/*
* \file topic.cpp
*/
#include "logog.hpp"
namespace logog {
void SetDefaultLevel( LOGOG_LEVEL_TYPE level )
{
Filter *pDefaultFilter = &GetDefaultFilter();
pDefaultFilter->Level( level );
}
Topic::Topic( const LOGOG_LEVEL_TYPE level ,
const LOGOG_CHAR *sFileName ,
const int nLineNumber ,
const... |
Xrenya/algorithms | Algoprog/Level_1/Real/A.py | <reponame>Xrenya/algorithms
def equal(a, b, c):
eps = 1e-10
if abs(a + b - c) < eps:
return "YES"
else:
return "NO"
a = float(input())
b = float(input())
c = float(input())
equal(a, b, c)
|
johnwonder/SpringSrc | springdebug/src/main/java/com/john/innerbean/Customer.java | package com.john.innerbean;
/**
* @Description: SpringSrc
* @Author: johnwonder
* @Date: 2020/8/31
*/
public class Customer
{
private Person person;
// public Customer(Person person) {
// this.person = person;
// }
public Customer(){
}
// public Customer(Person person) {
// this.person = person;
// }
//
... |
zhyon404/kubeflow | testing/kfctl/kfctl_go_test.py | <gh_stars>1000+
import logging
import os
import pytest
from kubeflow.kubeflow.ci import kfctl_go_test_utils as kfctl_util
from kubeflow.testing import util
def test_build_kfctl_go(record_xml_attribute, app_path, project, use_basic_auth,
use_istio, config_path, build_and_apply,
... |
deadsy/gooz | ggm/src/module/pm/breath.c | /******************************************************************************
* Copyright (c) 2019 <NAME>. (<EMAIL>)
*
* SPDX-License-Identifier: Apache-2.0
*
* Module to generate breath excitation for wind instruments.
*/
#include "ggm.h"
#include "osc/osc.h"
/************************************************... |
sarang-apps/darshan_browser | content/renderer/renderer_main_platform_delegate_fuchsia.cc | // Copyright 2017 The Chromium 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 "content/renderer/renderer_main_platform_delegate.h"
namespace content {
RendererMainPlatformDelegate::RendererMainPlatformDelegate(
const ... |
TimSchneider42/mbpo | gym_modular/sensors/robot/gripper_joint_velocity_sensor.py | from assembly_gym.environment.generic import RobotComponent
from .joint_velocity_sensor import JointVelocitySensor
class GripperJointVelocitySensor(JointVelocitySensor):
def __init__(self, robot_name: str = "ur10"):
super(GripperJointVelocitySensor, self).__init__(name_prefix="gripper")
self.__rob... |
Yoichi-KIKUCHI/vis | src/main/java/com/yo1000/vis/model/service/ChartService.java | package com.yo1000.vis.model.service;
import com.yo1000.vis.component.aop.Cache;
import com.yo1000.vis.model.data.Query;
import com.yo1000.vis.model.repository.chart.ChartRepository;
import com.yo1000.vis.model.repository.system.QueryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org... |
kxepal/couchdb-fauxton | app/addons/databases/tests/nightwatch/zeroclipboard.js | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
AndreaVoltan/MyKratos7.0 | applications/FluidDynamicsApplication/python_scripts/apply_distance_modification_process.py | import KratosMultiphysics
import KratosMultiphysics.FluidDynamicsApplication as KratosFluid
import math
def Factory(settings, Model):
if(type(settings) != KratosMultiphysics.Parameters):
raise Exception("expected input shall be a Parameters object, encapsulating a json string")
return ApplyDistanceModi... |
stevedekorte/ConnectionMachine | client/apps/CellularAutomata/CA.js | "use strict"
getGlobalThis().CA = class CA extends Base {
constructor() {
super()
// interesting rules sets
// 00111110
// 10100001
// 00001111
// 01001001
// 01111100
// 10010010
// 01101010
// 00011110
// keep history so we... |
christophe-gouel/dolo | dolo/tests/test_states_perturbation.py | import unittest
class StatesPerturbationsTestCase(unittest.TestCase):
def test_second_order_accuracy(self):
# This solves the optimal growth example at second order
# and computes the second order correction to the steady-state
# We test that both the statefree method and the perturbation... |
bakasoft/framboyan | src/main/java/org/bakasoft/framboyan/inspect/Inspectable.java | package org.bakasoft.framboyan.inspect;
public interface Inspectable {
void inspectWith(Inspector output);
default String inspect() {
StringBuilder output = new StringBuilder();
Inspector inspector = new Inspector(output);
inspectWith(inspector);
return output.toString();
}
}
|
yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot-cli/src/it/java/org/springframework/boot/cli/CommandLineIT.java | /*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
johandoornenbal/TurnToinez-Customer-System | dom/src/main/java/domainapp/dom/klanten/Klant.java | <gh_stars>0
package domainapp.dom.klanten;
import java.util.Arrays;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.UUID;
import javax.inject.Inject;
import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.Persistent;
i... |
williamclot/MemoryVisualizer | volatility/volatility/plugins/mac/machine_info.py | <filename>volatility/volatility/plugins/mac/machine_info.py
# Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility 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 ... |
asanoviskhak/Outtalent | Leetcode/1114. Print in Order/solution2.py | class Foo:
def __init__(self):
self.flag2 = False
self.flag3 = False
def first(self, printFirst: 'Callable[[], None]') -> None:
# printFirst() outputs "first". Do not change or remove this line.
printFirst()
self.flag2 = True
def second(self, printSecond: 'Callable... |
rpachauri/connect4 | connect_four/evaluation/incremental_victor/graph/graph_manager_test_6x6.py | <gh_stars>0
import unittest
import gym
import numpy as np
from connect_four.envs import ConnectFourEnv
from connect_four.evaluation.incremental_victor.graph.graph_manager import GraphManager
from connect_four.evaluation.victor.rules import Claimeven, Vertical, Baseinverse, Before
from connect_four.evaluation.incremen... |
Fillo7/KTT | Source/Api/Output/ComputationResult.cpp | <gh_stars>10-100
#include <limits>
#include <Api/Output/ComputationResult.h>
#include <Api/KttException.h>
namespace ktt
{
ComputationResult::ComputationResult() :
m_Duration(InvalidDuration),
m_Overhead(InvalidDuration)
{}
ComputationResult::ComputationResult(const std::string& kernelFunction) :
m_Kern... |
pfinashx/openvino | src/inference/include/ie/vpu/hddl_config.hpp | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
/**
* @brief A header that defines advanced related properties for HDDL plugin.
* These properties should be used in SetConfig() and LoadNetwork() methods of plugins
*
* @file hddl_config.hpp
*/
#pragma once
#include "vpu_con... |
SolidRun/edk2-platforms | Silicon/NXP/Include/Library/Dpaa2McInterfaceLib/fsl_dpmac.h | /* Copyright 2017 NXP
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Re... |
SergeyKrivohatskiy/tiny_database | src/ru/spbau/tinydb/btree/Node.java | package ru.spbau.tinydb.btree;
import java.util.Iterator;
import ru.spbau.tinydb.bufferManager.BufferManager;
import ru.spbau.tinydb.bufferManager.BufferView;
public abstract class Node {
// View:
// 0b | 4b | 8b | 12b
// Type | Size | link(next leaf or right subtree) | (key, data(left subtree or val... |
lucasportella/learning_repo | python-codes/m2_curso_em_video_estruturas_de_controle/ex051.1.py | a1=int(input('Primeiro termo: '))
r=int(input('Razão: '))
print('Os 10 primeiros termos da PA são: \n{}->'.format(a1),end=' ')
for c in range(a1,(a1+9*r),r):
a1 = a1 + r
print(a1, end=' -> ')
print('FIM')
|
CUITCHE/CHE.Network.cpp | CHE/io/HByteConvert.cpp | #include "HByteConvert.h"
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <cassert>
CHE_NAMESPACE_BEGIN
DATATYPESET HByteConvert::_convertDataTypeCollection;
string HByteConvert::ws2s(const wstring &ws)
{
string curLocale = setlocale(LC_ALL, NULL); // curLocale = "C";
setlocale(LC_ALL, "c... |
tricot-inc/errros-gmops | errors/PS_CT0055.go | // Code generated from gen-error/main.go; DO NOT EDIT
package errors
type PS_CT0055 struct {
}
func (e *PS_CT0055) Error() string {
return "決済種別の文字数が1文字でない"
}
func (e *PS_CT0055) Message() string {
return "決済種別の文字数が異なります。"
}
func (e *PS_CT0055) Code() string {
return "CT0055"
}
func (e *PS_CT0055) CanRetry() bo... |
mtaghiza/tinyos-main-1 | tos/chips/msp430/x2xxx/usci/msp430usci.h | /*
* Copyright (c) 2010-2011 <NAME>
* Copyright (c) 2009-2010 DEXMA SENSORS SL
* All rights reserved.
*
* Copyright (c) 2004-2006, Technische Universitaet Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... |
dbrennand/azure-intelligent-edge-patterns | factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_parts/tests/test_model_part.py | <reponame>dbrennand/azure-intelligent-edge-patterns
"""
Part Model and method unittest
"""
from django.core.exceptions import MultipleObjectsReturned
from rest_framework.test import APITransactionTestCase
from ..models import Part
from .test_special_strings import special_strings
class PartTestCase(APITransactionTes... |
maxim5/webby | webby-core/src/main/java/io/webby/url/convert/StringConstraint.java | <filename>webby-core/src/main/java/io/webby/url/convert/StringConstraint.java
package io.webby.url.convert;
import io.routekit.util.CharArray;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class StringConstraint extends LengthConstraint implements Constraint<String> {
... |
ppanditsaaksshaat/goHrUI | src/app/pages/leave/masters/masters.module.js |
/**
* @author v.lugovsky
* created on 16.12.2015
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.leave.masters', [])
.config(routeConfig);
/** @ngInject */
function routeConfig($stateProvider,$urlRouterProvider) {
$stateProvider
.state('leave.masters', {
url: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.