repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Osmose/moseamp | musicplayer/plugins/openmptplugin/openmpt/soundlib/Load_xm.cpp | <reponame>Osmose/moseamp
/*
* Load_xm.cpp
* -----------
* Purpose: XM (FastTracker II) module loader / saver
* Notes : (currently none)
* Authors: <NAME>
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "Loader... |
DuncanWalter/card-engine | src/cards/status/memoryLeak.js | <reponame>DuncanWalter/card-engine
import { defineCard, Card, PlayArgs } from '../card'
import { defineEffect } from '../../effects/effect'
import { ExhaustCard } from '../../events/exhaustCard'
import { AddToHand } from '../../events/addToHand'
import { DrawCards } from '../../events/drawCards'
import { BindEnergy } f... |
AntonLantukh/2020-03-otus-java-lantukh | hw07-atmDepartment/src/main/java/ru/otus/lantukh/atm/Dispenser.java | package ru.otus.lantukh.atm;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
public class Dispenser {
private List<Integer> nominalValues;
private HashMap<Integer, CashCell> vault;
public Dispenser() {
initialize();
}
public void initialize() {
List<Integer... |
coderMaruf/leetcode-1 | No_0215_Kth Largest Element in an Array/by_sort.py | <filename>No_0215_Kth Largest Element in an Array/by_sort.py
'''
Description:
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.
Example 1:
Input: [3,2,1,5,6,4] and k = 2
Output: 5
Example 2:
Input: [3,2,3,1,2,4,5,5,6] and k... |
cragkhit/elasticsearch | references/bcb_chosen_clones/selected#312174#26#118.java | <reponame>cragkhit/elasticsearch<filename>references/bcb_chosen_clones/selected#312174#26#118.java
public void fetch(Util util) throws ConversationException {
List<Integer> positions = new ArrayList<Integer>();
setUpgradeable(false);
setFoodShortage(false);
Pattern p;
Matcher... |
lechium/tvOS124Headers | Applications/PineBoard/PBAppDepot.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "BBObserverDelegate.h"
#import "FBSApplicationDataStoreObserver.h"
#import "FBUIApplicationServiceDelegate.h"
#import "MCProfileConnectionObserver.h"
#import... |
Decatur-High-GlobalDynamics/FRC-2020-Team-4026 | src/main/java/frc/robot/TeamSparkMAX.java | <reponame>Decatur-High-GlobalDynamics/FRC-2020-Team-4026
package frc.robot;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import com.revrobotics.CANSparkMax;
import com.revrobotics.CANPIDController;
import com.revrobotics.CANEncoder;
import com.revrobotics.CANError;
import com.revrobotics.ControlType;
... |
zhicaizack/main | src/test/java/seedu/address/logic/commands/ClassAddCommandTest.java | <filename>src/test/java/seedu/address/logic/commands/ClassAddCommandTest.java<gh_stars>1-10
package seedu.address.logic.commands;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.logic.commands.ClassAddCommand.MESSAGE_SUCCESS;
import static seedu.addres... |
tanguyf/fundamental-react | src/Navbar/Navbar.Component.js | import React from 'react';
import {} from '../';
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties } from '..';
import {
Button,
Popover,
Menu,
MenuList,
MenuItem,
Identifier,
Navbar,
NavbarGroup,
NavbarActions,
NavbarElement
} from '../';
export co... |
yougov-poland/alpakka | kinesis/src/main/scala/akka/stream/alpakka/kinesis/javadsl/KinesisSchedulerSource.scala | /*
* Copyright (C) since 2016 Lightbend Inc. <https://www.lightbend.com>
*/
package akka.stream.alpakka.kinesis.javadsl
import java.util.concurrent.CompletionStage
import akka.NotUsed
import akka.stream.alpakka.kinesis.{CommittableRecord, scaladsl, _}
import akka.stream.javadsl.{Flow, Sink, Source, SubSource}
impo... |
XakepSDK/truevfs | truevfs-access/src/test/java/net/java/truevfs/access/sample/PathCat.java | <reponame>XakepSDK/truevfs
/*
* Copyright © 2005 - 2021 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truevfs.access.sample;
import java.io.IOException;
import net.java.truevfs.access.TApplication;
import net.java.truevfs.access.TConfig;
import net.java.truev... |
lilywang711/nei | public/src/module/param_editor/param_select/param_select.js | /*
* 数据类型下拉框组件
*/
NEJ.define([
'pro/common/regular/regular_base',
'base/event',
'base/util',
'base/element',
'pro/common/util',
'pro/common/jst_extend',
'../param_editor_config.js',
'pro/modal/modal_version_select',
'text!./param_select.html',
'text!./param_select.css'
], function (rb, v, u, e, ut... |
josehu07/SplitFS | kernel/linux-5.4/net/vmw_vsock/vsock_addr.c | <gh_stars>10-100
// SPDX-License-Identifier: GPL-2.0-only
/*
* VMware vSockets Driver
*
* Copyright (C) 2007-2012 VMware, Inc. All rights reserved.
*/
#include <linux/types.h>
#include <linux/socket.h>
#include <linux/stddef.h>
#include <net/sock.h>
#include <net/vsock_addr.h>
void vsock_addr_init(struct sockaddr... |
phoenix-scitent/spree | promo/app/overrides/promo_coupon_code_field.rb | Deface::Override.new(:virtual_path => "spree/checkout/_payment",
:name => "promo_coupon_code_field",
:replace => "[data-hook='coupon_code_field'], #coupon_code_field[data-hook]",
:partial => "spree/checkout/coupon_code_field",
:disabled... |
pothosware/pothos-serialization | include/Pothos/serialization/impl/mpl/map/aux_/preprocessed/plain/map30.hpp |
// Copyright <NAME> 2000-2004
// Copyright <NAME> 2003-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Preprocessed version of "boost/mpl/map/map30.hpp" header
// -- DO NOT modify by hand!
name... |
juitem/ONE | compiler/luci/partition/src/Partition.cpp | <reponame>juitem/ONE<filename>compiler/luci/partition/src/Partition.cpp
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lic... |
jonsmock/org.alloytools.alloy | org.alloytools.kodkod.core/src/main/java/kodkod/util/collections/IdentityHashSet.java | <reponame>jonsmock/org.alloytools.alloy<filename>org.alloytools.kodkod.core/src/main/java/kodkod/util/collections/IdentityHashSet.java
/*
* Kodkod -- Copyright (c) 2005-present, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation f... |
josepfo/lamassu-server | new-lamassu-admin/src/pages/Analytics/graphs/OverTimeDotGraph.js | <reponame>josepfo/lamassu-server
import BigNumber from 'bignumber.js'
import * as d3 from 'd3'
import { getTimezoneOffset } from 'date-fns-tz'
import { add, format, startOfWeek, startOfYear } from 'date-fns/fp'
import * as R from 'ramda'
import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react'
impo... |
tobico/seaturtle | src/util/string-to-proc.js | // Converts a string to a function returns the named attribute of it's first
// parameter, or (this) object.
//
// If given attribute is a function, it will be called with any additional
// arguments provided to stringToProc, and the result returned.
export const stringToProc = (string, passArgs) => {
if (passArgs ==... |
oslab-swrc/juxta | analyzer/dbg.py | <reponame>oslab-swrc/juxta<gh_stars>10-100
# SPDX-License-Identifier: MIT
import os
import sys
#
# usage:
#
# import dbg
#
# dbg.test("#B<red text#>")
# dbg.info("this is info")
# dbg.error("this is #R<error#>")
#
# dbg.save_to_file(path, color=T/F)
# dbg.set_queit(tags)
# dbg.set_header()
#
# <... |
alinous-core/codable-cash | src_smartcontract/lang/sc_declare_types/CharType.cpp | /*
* CharType.cpp
*
* Created on: 2019/01/19
* Author: iizuka
*/
#include "lang/sc_declare_types/CharType.h"
#include "base/UnicodeString.h"
namespace alinous {
const UnicodeString CharType::TYPE_NAME(L"char");
CharType::CharType() : AbstractPrimitiveType(CodeElement::TYPE_CHAR) {
}
CharType::~CharType... |
inugami-dev64/libdas | src/GLTFCompiler.cpp | <reponame>inugami-dev64/libdas<filename>src/GLTFCompiler.cpp<gh_stars>0
#define GLTF_COMPILER_CPP
#include <GLTFCompiler.h>
namespace Libdas {
GLTFCompiler::GLTFCompiler(const std::string &_out_file) : DasWriterCore(_out_file) {}
GLTFCompiler::GLTFCompiler(const GLTFRoot &_root, const DasProperties &_props,... |
ManonGros/colplus-backend | colplus-api/src/test/java/org/col/common/kryo/ApiKryoFactoryTest.java | <gh_stars>0
package org.col.common.kryo;
import java.io.ByteArrayOutputStream;
import java.util.List;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.google.common.collect.Lists;
import org.col.api.TestEntityGenerator;
import org... |
open-o/sdno-brs | mss-cbb/org.openo.sdno.mss.dao/src/test/java/org/openo/sdno/mss/dao/io/SqlSessionProxyTest.java | <reponame>open-o/sdno-brs
/*
* Copyright 2016 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
*
* Unl... |
35niavlys/teeworlds-fng2-mod | src/game/client/components/maplayers.h | <gh_stars>10-100
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#ifndef GAME_CLIENT_COMPONENTS_MAPLAYERS_H
#define GAME_CLIENT_COMPONENTS_MAPLAYERS_H
#include <game/client/component.h... |
ajayesivan/react-native-remix-icon | src/icons/Folder5Fill.js | import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgFolder5Fill(props) {
return (
<Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<Path fill="none" d="M0 0h24v24H0z" />
<Path d="M13.414 5H20a1 1 0 011 1v1H3V4a1 1 0 011-1h7.414l2 2zM3.087 9... |
sufyan739/AlfaSdk_Android | AlfaSdk/src/main/java/com/example/alfasdk/Models/LinksModel/Response.java | package com.example.alfasdk.Models.LinksModel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
public class Response {
@SerializedName("MSGTYPE")
@Expose
private String MSGTYPE;
@SerializedName("links")
... |
thehyve/hypercube-api-server | src/main/java/nl/thehyve/hypercubeapi/patientset/QueryStatusTypeEntity.java | <reponame>thehyve/hypercube-api-server<gh_stars>0
package nl.thehyve.hypercubeapi.patientset;
import lombok.*;
import javax.persistence.*;
@Entity
@Table(schema = "i2b2demodata", name = "qt_query_status_type")
@Data @Builder @NoArgsConstructor @AllArgsConstructor @EqualsAndHashCode(of = "id")
public class QueryStatu... |
hhoover/kuma | pkg/xds/envoy/listeners/v3/http_access_log_configurer.go | package v3
import (
envoy_listener "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
envoy_hcm "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3"
)
const defaultHttpAccessLogFormat = `[%START_TIME%] %KUMA_MESH% "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-P... |
ChallenAi/algorithm | lc289/solution.go | package solution
func gameOfLife(board [][]int) {
for i := 0; i < len(board); i++ {
for j := 0; j < len(board[i]); j++ {
temp := cntLives(board, i, j)
if i == 1 && j == 0 {
}
if board[i][j] == 0 && temp == 3 {
board[i][j] = -1
continue
}
if board[i][j] == 1 && (temp < 2 || temp > 3) {
... |
aounhaider1/Crud2Go | eai-portal-domain-crudportlet/src/test/java/de/unioninvestment/eai/portal/portlet/crud/domain/container/TableQueryEventWrapperTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
mwahba/euler | CodeEval/src/net/mwahba/codeeval/easy/MultiplesOfNumber.java | <gh_stars>1-10
package net.mwahba.codeeval.easy;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class MultiplesOfNumber {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(Str... |
XpressAI/frovedis | src/frovedis/ml/tree/bitcount.hpp | <gh_stars>10-100
#ifndef _BITCOUNT_HPP_
#define _BITCOUNT_HPP_
#include <climits>
#include <cstdint>
namespace frovedis {
// a constexpr recursive popcount function
template <typename T>
constexpr T CX_POPCOUNT(const T x) {
return (x == 0) ? 0 : (x & 1) + CX_POPCOUNT(x >> 1);
}
// 0xAB -> 0xABABABAB...
template <... |
ju-liu/krylov | src/krylov/gmres.py | <reponame>ju-liu/krylov<gh_stars>1-10
from typing import Callable, Optional
import numpy as np
import scipy.linalg
from numpy.typing import ArrayLike
from ._helpers import (
Identity,
Info,
LinearOperator,
Product,
aslinearoperator,
get_default_inner,
)
from .arnoldi import ArnoldiHouseholder,... |
jakejaehee/scala-webtool | scala-webtool/src/test/scala/test/StringTest.scala | package test
object StringTest {
def main(args: Array[String]) {
val str = "abc.defg"
val t = str.span { _ != '.' }
println(t)
str.split('.').foreach { println }
val m = Map(1->2)
println(m.get(2).orElse(m.get(1)).map("a" + _))
println(m.get(1).orElse(m.get(2)).map("a" + _)... |
FuqiX/biosamples-v4 | integration/src/main/java/uk/ac/ebi/biosamples/IntegrationProperties.java | <filename>integration/src/main/java/uk/ac/ebi/biosamples/IntegrationProperties.java
package uk.ac.ebi.biosamples;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.net.URI;
@Component
public class IntegrationProperties {
@Value("${biosamples.subm... |
evidation-health/bokeh | bokeh/enums.py | <gh_stars>1-10
"""Definitions of common enumerations to be used together with ``Enum`` property. """
from __future__ import absolute_import
from six import string_types
from . import colors, icons, palettes
class Enumeration(object):
__slots__ = ()
def __contains__(self, value):
if not self._case_... |
jaguar-zc/flyants-oauth2 | fly-servcie-core/src/main/java/io/sufeng/context/domain/service/impl/AuthorizeServiceImpl.java | package io.sufeng.context.domain.service.impl;
import io.sufeng.context.domain.entity.People;
import io.sufeng.context.domain.entity.oauth2.OAuthAccessToken;
import io.sufeng.context.domain.entity.oauth2.OAuthAuthorizeRequest;
import io.sufeng.context.domain.entity.oauth2.OAuthClient;
import io.sufeng.context.domain.e... |
YeeZC/java-profiler | profiler-operator/src/main/java/me/zyee/java/profiler/flame/FlameNodeTask.java | package me.zyee.java.profiler.flame;
import org.apache.commons.lang3.StringUtils;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.RecursiveTask;
import java.util.function.Predicate;
/**
* @aut... |
samhatchett/svelte | test/runtime/samples/option-without-select/_config.js | export default {
data: {
foo: 'hello'
},
html: `<option value='hello'>hello</option>`,
test(assert, component, target) {
component.set({ foo: 'goodbye' });
assert.htmlEqual(target.innerHTML, `
<option value='goodbye'>goodbye</option>
`);
}
}; |
HoweChen/we-cmdb | cmdb-core/src/main/java/com/webank/cmdb/dto/EnumInfoResponse.java | <gh_stars>1-10
package com.webank.cmdb.dto;
import java.util.LinkedList;
import java.util.List;
public class EnumInfoResponse {
private PageInfo pageInfo = null;
private List<EnumInfo> enumInfos = new LinkedList<>();
public PageInfo getPageInfo() {
return pageInfo;
}
public void setPageI... |
ahxm/cms | src/com/jeecms/cms/statistic/workload/CmsWorkLoadStatisticDao.java | package com.jeecms.cms.statistic.workload;
import java.util.Date;
import com.jeecms.cms.statistic.workload.CmsWorkLoadStatistic.CmsWorkLoadStatisticDateKind;
public interface CmsWorkLoadStatisticDao {
public Long statistic(Integer channelId,
Integer reviewerId, Integer authorId, Date beginDate, Date endDate,Cms... |
prepare/spice3f5 | src/lib/dev/cap/capacld.c | /**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 <NAME>
**********/
/*
*/
#include "spice.h"
#include <stdio.h>
#include "cktdefs.h"
#include "capdefs.h"
#include "sperror.h"
#include "suffix.h"
int
CAPacLoad(inModel,ckt)
GENmodel *inModel;
register CKTc... |
comprakt/comprakt-fuzz-tests | output/97f607efdeef438ebbcc6684f15a702b.java | <gh_stars>0
class YCg {
}
class UUvuif {
}
class CY {
public xp mhS0bmR4KPOSL;
public boolean Aw;
public boolean[] MuELWLf1sqLO () throws yn1js5Ur3Osvn {
if ( !false[ true.n84nX()]) while ( -new int[ 8.Zp].BhaCNfyGb()) {
( -!950[ 587.Z_rYI2DkTEraA]).hgks2pdIWL96jC;
}else tr... |
sigma-libra/Dominion | shared/src/main/java/shared/domain/effect/cardaction/impl/TrashCardsAction.java | <reponame>sigma-libra/Dominion
package shared.domain.effect.cardaction.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import shared.domain.cards.Card;
import shared.domain.effect.cardaction.CardAction;
import shared.domain.engine.GameState;
import shared.domain.engine.Player;
import shared.domain.excep... |
sebschrader/debian-pkg-isc-kea | src/bin/perfdhcp/tests/perf_pkt6_unittest.cc | <gh_stars>0
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <ios... |
anatawa12/intellij-community | plugins/lombok/src/main/java/de/plushnikov/intellij/plugin/psi/LombokLightClassBuilder.java | <reponame>anatawa12/intellij-community
package de.plushnikov.intellij.plugin.psi;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.*;
import com.intellij.psi.impl.ElementPresentationUtil;
import com.intellij.psi.impl.light.LightPsiClassBuilder;
import com.intellij.psi.impl.source.PsiExtensibleClass;... |
tenomoto/ncl | ni/src/ncl/ccmhdr.h | #ifndef CCMHDR_H
#define CCMHDR_H
typedef struct ccm_names {
char* std_name;
char* std_unit;
char* long_name;
char* udunit;
}CCMNAMES;
CCMNAMES ccm_name_tab[] = {
{"PHIS", "M2/S2", "surface geopotential", "m2/s2"},
{"PS", "PA", "surface pressure", ... |
kevinzhwl/ObjectARXMod | 2004/samples/com/AsdkSquareWrapper_dg/Square/squarent.h | // (C) Copyright 1999 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty ... |
miraDask/Marathon | Client/marathon-client/src/pages/projects/index.js | import React, { useState, useEffect, useContext, useCallback } from 'react';
import { getCookie } from '../../utils/cookie';
import { ProjectsContext } from '../../providers/projects-context.provider';
import { getProjects } from '../../services/projects.service';
import NoProjects from '../../components/no-project... |
barreiro/activemq-artemis | artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/Message.java | <gh_stars>0
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"... |
scottfrazer/mongock-core | mongock-driver/mongock-driver-api/src/main/java/com/github/cloudyrock/mongock/driver/api/driver/ConnectionDriver.java | <filename>mongock-driver/mongock-driver-api/src/main/java/com/github/cloudyrock/mongock/driver/api/driver/ConnectionDriver.java
package com.github.cloudyrock.mongock.driver.api.driver;
import com.github.cloudyrock.mongock.driver.api.common.Validable;
import com.github.cloudyrock.mongock.driver.api.entry.ChangeEntry;
i... |
hehonghui/mmat | mmat/src/main/java/org/eclipse/mat/parser/internal/snapshot/RetainedSizeCache.java | <reponame>hehonghui/mmat
/*******************************************************************************
* Copyright (c) 2008 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... |
duc110789/vnpay | src/apis/api-user.auth.js | import BaseRepository from '../repositories/BaseRepository';
const request = new BaseRepository();
const authApi = {
login({ email, password }) {
const data = {
email,
password,
client_id: window.app.clientId,
client_secret: window.app.clientSecret,
};
return request.post('api/v... |
orenmazor/moto | moto/elasticbeanstalk/models.py | import weakref
from boto3 import Session
from moto.core import BaseBackend, BaseModel, ACCOUNT_ID
from .exceptions import InvalidParameterValueError, ResourceNotFoundException
from .utils import make_arn
class FakeEnvironment(BaseModel):
def __init__(
self, application, environment_name, solution_stack_... |
ubmagh/ayoub_maghdaoui-JEE | TP2/HospitalApp -Associations/src/main/java/me/ubmagh/hospital/SpringDataAppApplication.java | <filename>TP2/HospitalApp -Associations/src/main/java/me/ubmagh/hospital/SpringDataAppApplication.java
package me.ubmagh.hospital;
import me.ubmagh.hospital.entities.*;
import me.ubmagh.hospital.repositories.ConsultationRepository;
import me.ubmagh.hospital.repositories.MedecinRepository;
import me.ubmagh.hospital.rep... |
akarnokd/akarnokd-misc | src/test/java/hu/akarnokd/rxjava3/UndeliverableTest.java | package hu.akarnokd.rxjava3;
import java.io.IOException;
import org.junit.Test;
import io.reactivex.rxjava3.plugins.RxJavaPlugins;
import io.reactivex.rxjava3.processors.PublishProcessor;
import io.reactivex.rxjava3.subscribers.TestSubscriber;
public class UndeliverableTest {
@Test
public void test() {
... |
lechium/iOS1351Headers | usr/libexec/identityservicesd/IDSGroupServer.h | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
#import "IDSGroupServer-Protocol.h"
@class NSString;
@protocol FTMessageDeliveryProtocol, IDSGroupServerPushHandler;
@interf... |
lihongli528628/yishu | medtree/medtree/Groups/Common/LoadingTableView.h | <reponame>lihongli528628/yishu<gh_stars>1-10
//
// LoadingTableView.h
// medtree
//
// Created by sam on 9/23/14.
// Copyright (c) 2014 sam. All rights reserved.
//
#import "BaseTableView.h"
@class LoadingView;
@interface LoadingTableView : BaseTableView {
LoadingView *_headerView;
LoadingView *_footerVi... |
mcvine/mcvine | packages/mccomponents/mccomponentsbpmodule/wrap_AbstractScatteringKernel.cc | // -*- C++ -*-
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// <NAME>
// California Institute of Technology
// (C) 2005 All Rights Reserved
//
// {LicenseText}
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
gtfierro/cs262-project | coordinator/server.go | <reponame>gtfierro/cs262-project
package main
import (
"fmt"
log "github.com/Sirupsen/logrus"
"github.com/gtfierro/cs262-project/common"
"net"
"strings"
"sync"
"time"
)
type Server struct {
addrString string
address *net.TCPAddr
metadata *common.MetadataStore
fwdTable *ForwardingTable
b... |
ttungl/Coding-Interview-Challenge | source-code/Unique Paths 62.py | # 62. Unique Paths
# <EMAIL>
# A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
# The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
# How many possi... |
Vawx/weighttracker | spec/models/food_spec.rb | <filename>spec/models/food_spec.rb<gh_stars>0
require 'rails_helper'
RSpec.describe Food, type: :model do
it { should validate_presence_of :name }
it { should validate_presence_of :calories }
it { should validate_presence_of :serving_size }
it { should validate_presence_of :server_size_measure }
it { should ... |
nikola-naydenov-hmcts/div-petitioner-frontend | app/steps/respondent/home/address/index.test.js | <filename>app/steps/respondent/home/address/index.test.js<gh_stars>1-10
const request = require('supertest');
const { testContent, testRedirect } = require('test/util/assertions');
const { withSession } = require('test/util/setup');
const server = require('app');
const idamMock = require('test/mocks/idam');
const { rem... |
kestred/panda3d | panda/src/egg/eggUtilities.cxx | // Filename: eggUtilities.cxx
// Created by: drose (28Jan99)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You shou... |
rju/peething | architectureeditor/src/de/peerthing/systembehavioureditor/propertyeditor/forms/ActionForm.java | package de.peerthing.systembehavioureditor.propertyeditor.forms;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.*;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import or... |
orionzhou/biolib | old/PhasedHaplotypeParser.py | <filename>old/PhasedHaplotypeParser.py
'''
@author: <NAME>, University of Minnesota
'''
import os.path;
import re;
F_VARIANT = 1;
F_CLASS = 2;
F_POS = 3;
F_REF_ALLELE = 4;
F_VAR_ALLELE = 5;
F_EXON = 9;
F_ACC_OFFSET = 13;
class PhasedHaplotypeParser():
def __init__(self, accessionN = 3, accessionColN = 7, delim = '... |
npocmaka/Windows-Server-2003 | net/config/shell/lanui/eapolui.cpp | <filename>net/config/shell/lanui/eapolui.cpp
#include "pch.h"
#pragma hdrstop
#include "connutil.h"
#include "ncnetcon.h"
#include "ncperms.h"
#include "ncui.h"
#include "lanui.h"
#include "eapolui.h"
#include "util.h"
#include "lanhelp.h"
#include "wzcprops.h"
#include "wzcpage.h"
#include "wzcui.h"
#incl... |
ScottWinkler/github-api-app | react-ui/src/components/compare/comparestats/commitchart/commitchart.js | import React, {Component} from 'react';
import './commitchart.css';
import {BarChart,XAxis,YAxis,CartesianGrid,Tooltip,Legend,Bar} from 'recharts';
export default class CommitChart extends Component {
render() {
return (
<div >
<h2 >Commits in Last Year</h2>
<BarCh... |
moutainhigh/ses-server | ses-job/ses-job-executor/ses-instance-one/src/main/java/com/redescooter/ses/instance/one/run/foundation/SendMailTasks.java | <reponame>moutainhigh/ses-server
package com.redescooter.ses.instance.one.run.foundation;
import com.redescooter.ses.api.common.enums.job.JobDefaultError;
import com.redescooter.ses.api.common.vo.base.GeneralEnter;
import com.redescooter.ses.api.common.vo.jiguang.JobResult;
import com.redescooter.ses.api.foundation.jo... |
541660139/qjtv | app/src/main/java/com/lwd/qjtv/app/utils/GlideConfigGlobal.java | <gh_stars>0
package com.lwd.qjtv.app.utils;
import android.widget.ImageView;
import com.jess.arms.widget.imageloader.glide.GlideImageConfig;
import com.lwd.qjtv.R;
/**
* Email:<EMAIL>
* Created by ZhengQian on 2017/6/14.
*/
public class GlideConfigGlobal {
public static GlideImageConfig loadImageView(String... |
ronaldahmed/SLAM-for-ugv | neural-navigation-with-lstm/MARCO/nltk/tokenreader/__init__.py | # Natural Language Toolkit: Token Readers
#
# Copyright (C) 2001 University of Pennsylvania
# Author: <NAME> <<EMAIL>>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
#
# $Id: __init__.py,v 1.1.1.1 2004/09/29 21:58:19 adastra Exp $
"""
Classes for reading string representations of tokens.
"""
#... |
sugin223pl/ta-cdn-fts4sdytg | ta/assets/js/custom.js | <filename>ta/assets/js/custom.js
function abort(message)
{
$('.errorText').html(message).css('display','block');
throw new Error(message);
}
$('.expandQuote').click(function() {
$('.expand').toggle();
$('.hiddenQuote').toggle();
var classname = $(this).attr('class');
if(classname == 'expand') ... |
brentjm/mettler-toledo-spectra-trender | node_modules/node-opcua-factory/dist/factories_builtin_types.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-factory
*/
const node_opcua_assert_1 = require("node-opcua-assert");
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
const node_opcua_guid_1 = require("node-opcua-guid");
const node_opcua_... |
bswood9321/PHYS-3210 | Exam2/Exam2_Q3_BSW.py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 3 23:49:01 2019
@author: Brandon
"""
import numpy as np
import matplotlib.pyplot as plt
i=1
theta1=np.pi/8
while i<=4:
theta=theta1
w=0
l=2
g=9.82
t=0
m=5
dt=.01
THETA=[theta]
W=[w]
T=[t]
X=[l*np.sin(theta)]
Y=[l-l*np.cos(... |
kagwicharles/Seniorproject-ui | node_modules/@iconify/icons-ic/twotone-qr-code.js | <filename>node_modules/@iconify/icons-ic/twotone-qr-code.js
var data = {
"body": "<path opacity=\".3\" d=\"M5 15h4v4H5zM5 5h4v4H5zm10 0h4v4h-4z\" fill=\"currentColor\"/><path d=\"M3 11h8V3H3v8zm2-6h4v4H5V5zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm8-12v8h8V3h-8zm6 6h-4V5h4v4zm0 10h2v2h-2zm-6-6h2v2h-2zm2 2h2v2h-2zm-2 2h2v2h-2zm2 2... |
DoctorMacc/ViaBackwards | core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/SoundPackets1_13.java | package nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.packets;
import nl.matsv.viabackwards.ViaBackwards;
import nl.matsv.viabackwards.api.rewriters.Rewriter;
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.Protocol1_12_2To1_13;
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.data.Backwards... |
fabriziogiudici/bluemarine2-src | modules/MusicBrainz/src/main/java/it/tidalwave/bluemarine2/metadata/impl/audio/musicbrainz/MusicBrainzAudioMedatataImporter.java | /*
* *********************************************************************************************************************
*
* blueMarine II: Semantic Media Centre
* http://tidalwave.it/projects/bluemarine2
*
* Copyright (C) 2015 - 2021 by Tidalwave s.a.s. (http://tidalwave.it)
*
* *****************************... |
zhangannyi/practise-of-springcloud-and-docker | ribbon-service/src/main/java/fun/liwudi/ribbonservice/service/impl/HelloServiceImpl.java | package fun.liwudi.ribbonservice.service.impl;
import fun.liwudi.ribbonservice.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import javax.xml.ws.Action;
/**
* @author 李武第
*/
@Se... |
HoneyLyrics/Front | src/components/mood-list/AdditionFeatures.js | import React, { useState } from 'react';
import styled from 'styled-components';
import MelonLink from '../common/MelonLink';
import { BsHeart, BsHeartFill, BsMusicNoteList } from 'react-icons/bs';
import { AiOutlineCheck } from 'react-icons/ai';
const AdditionFeaturesBlock = styled.div`
width: 80px;
display: flex... |
mslovy/barrelfish | kernel/include/arch/armv7-m/start_aps.h | /**
* \file
* \brief Definitions for the startup of application processors.
*
* This file contains the prototypes for the functions which start
* the application processors
*/
/*
* Copyright (c) 2007, 2008, 2010, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attache... |
PY-GZKY/Tplan | backend/app/app/user_menu/crud_user.py | <reponame>PY-GZKY/Tplan
from typing import Optional
from sqlalchemy.orm import Session
from app.user_menu.base import CRUDBase
from app.models import User
from app.schemas import UserCreate, UserUpdate
from app.security.security import verify_password
class CRUDUser(CRUDBase[User, UserCreate, UserUpdate]):
def ... |
eea/volto-eea-design-system | src/ui/Media/Image.stories.js | <reponame>eea/volto-eea-design-system
import React from 'react';
import { Image } from 'semantic-ui-react';
import banner from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/banner.png';
export default {
title: 'Components/Media Container/Image',
component: Image,
parameters: {
actions: {... |
chanikag/wso2-axiom-1 | modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/factory/DOMSOAPFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
1shenxi/webpack | test/configCases/dll-plugin/1-issue-10475/index.js | <filename>test/configCases/dll-plugin/1-issue-10475/index.js
it("should have all modules", () => {
require("dll/index.js");
});
|
ALACRITIC/grapesjs | src/domain_abstract/ui/InputColor.js | <reponame>ALACRITIC/grapesjs
var Backbone = require('backbone');
var Input = require('./Input');
var Spectrum = require('spectrum-colorpicker');
module.exports = Input.extend({
template: _.template(`
<div class='<%= ppfx %>input-holder'></div>
<div class="<%= ppfx %>field-colorp">
<div class="<%= ppfx %>fie... |
Knutakir/KTT | docs/search/enumvalues_4.js | <gh_stars>0
var searchData=
[
['float_596',['Float',['../namespacektt.html#a79871821a23eee2b543fec77b52c54d7a22ae0e2b89e5e3d477f988cc36d3272b',1,'ktt']]],
['fullsearch_597',['FullSearch',['../namespacektt.html#a5f5b49f1e11331a499aa44fb1fa6788ba4774784e057c4bbae83302ed0de38df6',1,'ktt']]]
];
|
Advencher/web_GIS | public/js/pigmentsPage/gridFTWatch.js | <filename>public/js/pigmentsPage/gridFTWatch.js
//$(document).ready(function () {
var gridFT,
dataSource = '/pigmentsview';
if (typeof pigment_sid !== 'undefined' && pigment_sid !== -1) {
console.log('get sample finded');
dataSource = '/pigmentsview?sid='+pigment_sid;
console.log(dataSource);
}
gr... |
jsoagger/jsoagger-fx | jsoagger-jfxcore-engine/src/main/java/io/github/jsoagger/jfxcore/engine/components/input/InputText.java | <filename>jsoagger-jfxcore-engine/src/main/java/io/github/jsoagger/jfxcore/engine/components/input/InputText.java
/*-
* ========================LICENSE_START=================================
* JSoagger
* %%
* Copyright (C) 2019 JSOAGGER
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you... |
aleroddepaz/java-samples | jetty-seed/src/test/java/org/arp/servlet/LoginServletTest.java | <gh_stars>0
package org.arp.servlet;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import org.j... |
zxcwhale/android_gpsbd | hardware/libgps/asn-supl/SupportedWLANInfo.h | <reponame>zxcwhale/android_gpsbd
/*
* Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
* From ASN.1 module "Ver2-ULP-Components"
* found in "../ver2-ulp-components.asn"
* `asn1c -fcompound-names -gen-PER`
*/
#ifndef _SupportedWLANInfo_H_
#define _SupportedWLANInfo_H_
#include <asn_application.h>
/* Inclu... |
tiger0132/code-backup | Codeforces/1000~1999/1381/C.cpp | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <functional>
#include <queue>
#include <utility>
#include <vector>
typedef std::pair<int, int> pii;
const int N = 1e5 + 51;
std::vector<int> v[N];
struct cmp {
bool operator()(int x, int y) const { return x[v].size() < y[v].size(); }
};
std::priorit... |
guilhermejccavalcanti/Achilles | achilles-cql/src/test/java/info/archinnov/achilles/entity/manager/PersistenceManagerTest.java | /**
*
* Copyright (C) 2012-2013 <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... |
minimus/final-task | client-src/containers/search/index.js | export default from './SearchContainer'
|
decilio4g/delicias-do-tchelo | node_modules/@styled-icons/foundation/PageCopy/PageCopy.esm.js | import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var PageCopy = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createEle... |
asd123freedom/san-awesome | src/icons/brands/sellsy.js | <filename>src/icons/brands/sellsy.js
import Icon from '../../components/Icon'
Icon.register({
'brands/sellsy': {
width: 640,
height: 512,
paths: [
{
d: 'M539.7 237.3c55.2 13.5 94.1 63.1 94.1 119.5 0 68-55.5 123.2-123.2 123.2h-381.2c-67.7 0-123.2-55.2-123.2-123.2 0-47.5 27.9-91 70.8-111.2-2.... |
dpt/PrivateEye | libs/appengine/wimp/menu/tick-exclusive.c | <filename>libs/appengine/wimp/menu/tick-exclusive.c
#include "oslib/wimp.h"
#include "appengine/wimp/menu.h"
void menu_tick_exclusive(wimp_menu *menu, int entry_to_tick)
{
wimp_menu_entry *item;
wimp_menu_entry *tick;
item = menu->entries;
tick = menu->entries + entry_to_tick;
do
{
if (item == tick... |
cablelabs/Utopia | source/igd/src/igd_platform_independent_inf.c | <reponame>cablelabs/Utopia
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... |
marstona/ovh-java-sdk | ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/cloud/OvhRegionContinent.java | <reponame>marstona/ovh-java-sdk
package net.minidev.ovh.api.cloud;
/**
* Enum values for ContinentCode
*/
public enum OvhRegionContinent {
EU("EU"),
NA("NA"),
US("US"),
ASIA("ASIA");
final String value;
OvhRegionContinent(String s) {
this.value = s;
}
public String toString() {
return this.value;
}
}... |
gigmap/back-end | test/unit/rest/middleware/makeResponse.test.js | const {expect} = require('chai');
const {describe, it} = require('mocha');
const ErrorMessage = require('../../../../src/rest/common/ErrorMessage');
const makeResponse = require('../../../../src/rest/middleware/makeResponse');
const formatError = require('../../../lib/formatResponseError');
describe('makeResponse', fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.