repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
adamstrickland/cottontail
lib/cottontail/producer.rb
<filename>lib/cottontail/producer.rb require "cottontail/producible" module Cottontail class Producer include Cottontail::Producible end end
dgreid/platform2
camera/hal/intel/ipu6/include/ia_imaging/ia_alloc.h
<gh_stars>1-10 /* * Copyright (C) 2017-2020 Intel 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...
isabella232/modite-adventure
src/main.cpp
<filename>src/main.cpp #include "Game.h" BViewPort *gViewPort; BGameEngine *gGameEngine; TOptions *gOptions; GGame *gGame; // app_main extern "C" void app_main() { gGame = new GGame(); gGame->Run(); delete gGame; } int main() { app_main(); return 0; }
lechium/tvOS145Headers
usr/libexec/nearbyd/PRAidedRangingClientProtocol-Protocol.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 "PRRangingClientProtocol-Protocol.h" @class NSData; @protocol PRAidedRangingClientProtocol <PRRangingClientProtocol> - (void)sendDataToPeers:(N...
project-arcana/phantasm-hardware-interface
src/phantasm-hardware-interface/vulkan/common/diagnostic_util.hh
<reponame>project-arcana/phantasm-hardware-interface<gh_stars>1-10 #pragma once typedef struct RENDERDOC_API_1_4_0 RENDERDOC_API_1_4_0; namespace phi::vk::util { struct diagnostic_state { void init(); void free(); bool start_capture(); bool end_capture(); bool is_renderdoc_present() const { retu...
HeWeMel/adventofcode
2021/day12.py
from collections import defaultdict from mylib.aoc_frame import Day class PartA(Day): def parse(self, text, d): # store puzzle parsing result data into attributes of d d.edges = defaultdict(list) for line in text.splitlines(): f, t = line.split("-") d.edges[f].append(t) ...
Jan777/3ProgAva2016
dominio/src/main/java/prograavanzada2016/anotherworld/enemigos/Esqueleto.java
package prograavanzada2016.anotherworld.enemigos; public class Esqueleto { }
jrmie/math
test/unit/math/prim/mat/fun/promote_scalar_type_test.cpp
<reponame>jrmie/math #include <stan/math/prim/mat.hpp> #include <test/unit/math/prim/scal/fun/promote_type_test_util.hpp> #include <gtest/gtest.h> #include <vector> TEST(MathFunctionsPromoteScalar, TypeMatrix) { using Eigen::Dynamic; using Eigen::Matrix; using std::vector; expect_promote_type<Matrix<double, Dy...
crazecdwn/aws-sdk-cpp
aws-cpp-sdk-health/include/aws/health/HealthClient.h
<gh_stars>0 /* * Copyright 2010-2017 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 * * or in the "...
doyaguillo1997/Data2Gether
5. WEB/app/external_sources/idealista/migrations/0005_rename_geo_element_historic_geo_zone.py
# Generated by Django 3.2.4 on 2021-06-19 07:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('idealista', '0004_rename_historioco_historic'), ] operations = [ migrations.RenameField( model_name='historic', old_name='ge...
void889275714/repository18
project3_final/meeting-theater/guns/guns-promo/src/main/java/com/stylefeng/guns/rest/config/RedisConfig.java
package com.stylefeng.guns.rest.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; im...
hanchao5272/design-pattern
src/main/java/pers/hanchao/designpattern/state/state2/state/impl/UnloadState.java
package pers.hanchao.designpattern.state.state2.state.impl; import lombok.extern.slf4j.Slf4j; import pers.hanchao.designpattern.state.state2.Shooter; import pers.hanchao.designpattern.state.state2.state.AbstractState; /** * <p>无子弹状态</P> * * @author hanchao */ @Slf4j public class UnloadState extends AbstractState ...
BihanZhuang/super-game-engine
src/view/gameplay/hud/deprecated/InfoDisplay.java
package view.gameplay.hud.deprecated; import javafx.scene.layout.Pane; public abstract class InfoDisplay { /* * Displays game info such as * - health bar * - score bar * - stats * - etc */ Pane myPane; public InfoDisplay(){ myPane = new Pane(); } // public abstract void displayInfo();...
hawkular/hawkular-commons
hawkular-bus/hawkular-bus-common/src/test/java/org/hawkular/bus/common/BasicMessageObjectMapperTest.java
<filename>hawkular-bus/hawkular-bus-common/src/test/java/org/hawkular/bus/common/BasicMessageObjectMapperTest.java /* * Copyright 2014-2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
rackerlabs/jclouds-labs
jclouds-management/management-core/src/test/java/org/jclouds/management/ViewMBeanFactoriesTest.java
<gh_stars>1-10 /* * 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 "Lice...
fhornain/patternfly-react-seed_1
node_modules/@patternfly/react-icons/dist/js/icons/volume-icon.d.js
"use strict"; //# sourceMappingURL=volume-icon.d.js.map
mmtechslv/PhyloMAF
pmaf/pipe/markers/_marker.py
<gh_stars>1-10 from ._metakit import MarkerBackboneMetabase from pmaf.pipe.specs._metakit import SpecificationBackboneMetabase from pmaf.pipe.agents.dockers._metakit import DockerBackboneMetabase from datetime import datetime from typing import Any, Optional class Marker(MarkerBackboneMetabase): """This class ass...
scott-wisniewski/dolly
xpki/oid/oid_test.go
<filename>xpki/oid/oid_test.go<gh_stars>1-10 package oid import ( "encoding/asn1" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func Test_NewObjectIdentifierFromOID(t *testing.T) { oids := []asn1.ObjectIdentifier{ Data, SignedData, TSTInfo, AttributeContentType, ...
areway/turms
turms/src/main/java/im/turms/turms/workflow/service/util/DomainConstraintUtil.java
/* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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 * *...
Tiagotmxx/tiago-portfolio
10-js-fundamentals-functions/rewrite-the-function.js
<filename>10-js-fundamentals-functions/rewrite-the-function.js /* The following function returns true if the parameter age is greater than 18. Otherwise it asks for a confirmation and returns its result. function checkAge(age) { if (age > 18) { return true; } else { return confirm('Did parents allow you?'...
DataONEorg/d1_python
gmn/src/d1_gmn/app/middleware/response_handler.py
<gh_stars>10-100 # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2019 DataONE # # Licensed under the Apache License, Version 2.0 (the "Li...
Yangzhengtang/mspass
cxx/include/mspass/utility/VectorStatistics.h
#include <vector> #include <algorithm> #include "mspass/utility/MsPASSError.h" namespace mspass { namespace utility{ /*! \brief Generic object to compute common robust statistics from a vector container of data. Robust estimators commonly use statistics based on ranked data. This fits naturally with an STL vector co...
iamacnhero/citrus
common/expr/src/test/java/com/alibaba/citrus/expr/CompositeExpressionTests.java
<reponame>iamacnhero/citrus /* * Copyright (c) 2002-2012 Alibaba Group Holding Limited. * 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://ww...
SebOchs/student_lab
dataloading.py
<filename>dataloading.py<gh_stars>0 import numpy as np import torch from torch.utils.data import Dataset # data loaders for a given data set based on model class MyBertDataset(Dataset): def __init__(self, filename): self.data = np.load(filename, allow_pickle=True) def __len__(self): return l...
dawmlight/vendor_oh_fun
hihope_neptune-oh_hid/00_src/v0.1/third_party/LVM2/lib/filters/filter-persistent.c
<reponame>dawmlight/vendor_oh_fun /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subje...
moutainhigh/ses-server
ses-service/ses-service-base/ses-service-foundation/src/main/java/com/redescooter/ses/service/foundation/dao/base/PlaUserPermissionMapper.java
<reponame>moutainhigh/ses-server package com.redescooter.ses.service.foundation.dao.base; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.redescooter.ses.service.foundation.dm.base.PlaUserPermission; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PlaUserPermissi...
inklesspen1scripter/ultramine_core
src/main/java/net/minecraft/command/server/CommandListPlayers.java
package net.minecraft.command.server; import net.minecraft.command.CommandBase; import net.minecraft.command.ICommandSender; import net.minecraft.server.MinecraftServer; import net.minecraft.util.ChatComponentText; import net.minecraft.util.ChatComponentTranslation; public class CommandListPlayers extends CommandBase...
samuelexferri/unibg-workspace
TVSW/Esercitazione1/src/esercizio1/Light.java
package esercizio1; public class Light { private boolean lightOn = false; private boolean bottomIn = false; private boolean bottomOut = false; Light() { } public boolean onOff(boolean light, boolean in, boolean out) { this.bottomIn = in; this.bottomOut = out; if ((bottomIn || bottomOut) && !light) { ...
coder-hugo/querydsl
querydsl-sql/src/main/java/com/querydsl/sql/Beans.java
/* * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team) * * 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 ...
ambros-gleixner/rubberband
tests/base.py
<filename>tests/base.py """Baseclass for tests.""" import os from tornado.testing import AsyncHTTPTestCase from rubberband.boilerplate import make_app # add application root to sys.path APP_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) PACKAGE_ROOT = os.path.join(APP_ROOT, "rubberband") app =...
federicolappa/vue-quiz-web
client/src/common/string.js
<gh_stars>1-10 export const S_CREATE_ACCOUNT_SUCCESS = "Tạo tài khoản thành công."; export const S_CHANGE_PASS_SUCCESS = "Đổi mật khẩu thành công."; export const S_LOGIN_ACCOUNT_SUCCESS = "Đăng nhập tài khoản thành công."; export const S_LOGOUT_ACCOUNT_SUCCESS = "Đăng xuất tài khoản thành công."; export const S_ADD_VAL...
barslev/appgine
src/lib/createFragment.js
import { dom } from '../closure' export default function createFragment(htmlString) { const $fragment = _createFragmentElement(); try { _createFragment($fragment, htmlString); } catch (e) { _createFragmentPartially($fragment, htmlString); } Array.from($fragment.querySelectorAll('script')).forEach(functio...
sopra-fs22-group-16/sopra-fs22-group-16-server
src/test/java/ch/uzh/ifi/hase/soprafs22/repository/UserRepositoryIntegrationTest.java
<filename>src/test/java/ch/uzh/ifi/hase/soprafs22/repository/UserRepositoryIntegrationTest.java package ch.uzh.ifi.hase.soprafs22.repository; import ch.uzh.ifi.hase.soprafs22.user.RegisteredUser; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframewo...
monogon-dev/intellij-cue
src/test/java/dev/monogon/cue/lang/psi/impl/CueMultilineBytesLiteralMixinTest.java
<reponame>monogon-dev/intellij-cue package dev.monogon.cue.lang.psi.impl; import com.intellij.openapi.command.WriteCommandAction; import com.intellij.openapi.util.Computable; import com.intellij.openapi.util.TextRange; import com.intellij.psi.PsiLanguageInjectionHost; import dev.monogon.cue.CueLightTest; import dev.mo...
phoenixeliot/design-system
src/MLIcon/RightSquareOutlined.js
import { createWrappedMLIcon } from './icon-wrappers' import AntRightSquareOutlined from '@ant-design/icons/RightSquareOutlined' const RightSquareOutlined = createWrappedMLIcon(AntRightSquareOutlined) export default RightSquareOutlined
JosephClay/ship-barrage
server/controllers/home.js
import fs from 'fs'; import path from 'path'; import { minify } from 'html-minifier'; import { IS_PROD } from '../config'; const pth = path.resolve(process.cwd(), './server/views/index.html'); const html = fs.readFileSync(pth).toString(); const page = IS_PROD ? minify(html, { // https://github.com/kangax/html-minifi...
dev4rweb/ns-market
resources/js/store/actions/transactionTypesApi.js
<gh_stars>0 import {WORK_HOST} from "../routeConsts"; export const getAllTransactionTypesApi = () => { return axios.get(`${WORK_HOST}market/transaction-types`) .then(res => res).catch(err => err) }; export const createTransactionTypeApi = type => { return axios.post(`${WORK_HOST}market/transaction-typ...
ollfkaih/lego
lego/apps/comments/notifications.py
<reponame>ollfkaih/lego<gh_stars>10-100 from lego.apps.notifications.constants import COMMENT, COMMENT_REPLY from lego.apps.notifications.notification import Notification class CommentNotification(Notification): name = COMMENT def generate_mail(self): target = self.kwargs["target"] target_s...
Nickinthebox/polyfill-library
polyfills/ArrayBuffer/isView/polyfill.js
<filename>polyfills/ArrayBuffer/isView/polyfill.js<gh_stars>1-10 /* global ArrayBuffer, CreateMethodProperty, Type */ // 25.1.4.1 ArrayBuffer.isView ( arg ) CreateMethodProperty(ArrayBuffer, 'isView', function isView (arg) { // 1. If Type(arg) is not Object, return false. if (Type(arg) !== 'object') { return false;...
Phillyclause89/reddit_scripts
Code_from_folks_on_discord/eleven_game/main.py
<filename>Code_from_folks_on_discord/eleven_game/main.py import random import eleven class HumanPlayer(eleven.Player): def get_move(self): eleven.clear_screen() print(self.board, self.score) while True: direction = input('Enter a move: ') is_valid = self.board.is_v...
anniekfifer/tpau-gtfsutils
tpau_gtfsutilities/utilities/__init__.py
from . import averageheadway from . import gtfsutility from . import stopvisits from . import interpolate_stoptimes
rfan-debug/java-aiplatform
proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
vtfn/tolb
src/list/pluck_test.js
/* eslint-env mocha */ import A from 'assert'; import pluck from './pluck'; import config from '../../config/constants'; describe('list.pluck(prop, list)', () => { const list = [ { name: 'foo', age: 11 }, { name: 'bar', age: 12 }, { age: 21 }, { name: 'baz', age: 13 }, ]; it('returns an array wi...
dberga/FACIL
src/networks/old/twobranch_concat2.py
<reponame>dberga/FACIL from networks.twobranch import twobranch import torch import utils from copy import deepcopy class twobranch_concat2(twobranch): def forward(self,x): x1=deepcopy(x) if self.scramble is True: x1=utils.batch2scramble(deepcopy(x)) x2=utils.batch2gray(deepcopy...
liaojh1998/cross-modal-concept2robot
simulation/env_27.py
<reponame>liaojh1998/cross-modal-concept2robot #!/usr/bin/env python3 import time import math from datetime import datetime from time import sleep import numpy as np import random import cv2 import os import argparse import torch import sys sys.path.append('./') from env import Engine from utils_env import get_view,s...
lechium/iOS1351Headers
System/Library/Frameworks/ARKit.framework/ARPersonOcclusionParentTechnique.h
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:16:35 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/Frameworks/ARKit.framewor...
smancill/clara-java
clara-api/src/main/java/org/jlab/clara/base/core/DataUtil.java
<gh_stars>0 /* * SPDX-FileCopyrightText: © The Clara Framework Authors * * SPDX-License-Identifier: Apache-2.0 */ package org.jlab.clara.base.core; import org.jlab.clara.base.ClaraUtil; import org.jlab.clara.base.error.ClaraException; import org.jlab.clara.engine.EngineData; import org.jlab.clara.engine.EngineDat...
simcof/ringteki
server/game/cards/01-Core/Blackmail.js
const DrawCard = require('../../drawcard.js'); class Blackmail extends DrawCard { setupCardAbilities(ability) { this.action({ title: 'Take control of a character', condition: () => this.game.isDuringConflict(), target: { cardType: 'character', ...
GasimGasimzada/liquid-engine
engine/src/liquid/scripting/EntityDecorator.h
<gh_stars>0 #pragma once #include "liquid/entity/Entity.h" #include "liquid/entity/EntityContext.h" namespace liquid { /** * @brief Decorates scope with entity system */ class EntityDecorator { public: /** * @brief Attach to scope * * @param scope Lua scope * @param entity Entity * @param entityCo...
fadygouda/cityspire-frontend
src/components/pages/PinnedCity/index.js
<reponame>fadygouda/cityspire-frontend export { default as PinnedCityPage } from './PinnedCityContainer';
Vult-R/Astraeus-Framework
src/main/astraeus/game/model/entity/mobile/npc/drop/Chance.java
package main.astraeus.game.model.entity.mobile.npc.drop; /** * An enumeration of probable cases for an npc drop. * * @author SeVen <https://github.com/7winds> */ public enum Chance { /** * 100% 1/1 */ ALWAYS(1), /** * 50% */ ALMOST_ALWAYS(2), /** * 20% */ VERY_COMMON(5), /**...
HOT-Ecosystem/hapi-fhir
hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/server/AbstractJaxRsResourceProviderTest.java
<filename>hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/server/AbstractJaxRsResourceProviderTest.java package ca.uhn.fhir.jaxrs.server; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.jaxrs.client.JaxRsRestfulClientFactory; import ca.uhn.fhir.jaxrs.server.interceptor.JaxRsResponseException; imp...
mjpitz/libhealth
gauge/floats_test.go
<reponame>mjpitz/libhealth package gauge import ( "container/list" "testing" "github.com/stretchr/testify/require" "oss.indeed.com/go/libhealth" ) func floatList(floats ...float64) *list.List { l := list.New() for _, val := range floats { l.PushFront(val) } return l } func Test_MaxFloatThreshold_Apply(t ...
BuildAMovement/whistler-kobocat
fabfile/__init__.py
from .docker import deploy from .legacy import deploy as deploy_legacy from .legacy import deploy_ref as deploy_ref_legacy
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DABookmarkDAV.framework/DADaemonBookmarkDAV.bundle/BookmarkDAVDaemonAccount.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:50:53 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DABookmarkDAV.framework/DADaemonBookmarkDAV.bundle/DADaemonBookmarkDA...
FlorianFranzen/kagome
core/consensus/babe/impl/threshold_util.cpp
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "consensus/babe/impl/threshold_util.hpp" #include <boost/range/adaptors.hpp> #include <boost/range/numeric.hpp> namespace kagome::consensus { Threshold calculateThreshold(const std::pair<uint64_t, uint64_...
lamhungypl/iianian-ecom-api
build-prod/dist/api/controllers/OrderStatusController.js
<reponame>lamhungypl/iianian-ecom-api<filename>build-prod/dist/api/controllers/OrderStatusController.js 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.OrderStatusController = void 0; const tslib_1 = require('tslib'); const lodash_1 = require('lodash'); require('reflect-metadata'); ...
DevOrc/Robogeddon-libgdx
core/src/com/noahcharlton/robogeddon/world/item/ItemStack.java
package com.noahcharlton.robogeddon.world.item; public class ItemStack { private Item item; private int amount; public ItemStack(Item item, int amount) { this.item = item; this.amount = amount; } public void setAmount(int amount) { this.amount = amount; } public ...
jax-b/ModulerKTNE
rpi_software/controller/interProcessCom.go
<reponame>jax-b/ModulerKTNE<filename>rpi_software/controller/interProcessCom.go<gh_stars>0 package controller import ( "encoding/json" "log" "strconv" "strings" "time" ipc "github.com/james-barrow/golang-ipc" mktnecf "github.com/jax-b/ModulerKTNE/rpi_software/commonfiles" "go.uber.org/zap" ) type InterProce...
TierynnB/LeaguePyBot
LPBv2/bot/bot.py
<filename>LPBv2/bot/bot.py<gh_stars>0 from .. import * from time import time from ..logger import get_logger, Colors logger = get_logger("LPBv2.Bot") class LeaguePyBot: def __init__(self): logger.info(f"Welcome to {Colors.yellow}LeaguePyBotV2{Colors.reset}") self.client = Client() self.ga...
sigurasg/ghidra
Ghidra/Debug/Debugger-agent-lldb/src/main/java/agent/lldb/manager/cmd/LldbListThreadsCommand.java
<filename>Ghidra/Debug/Debugger-agent-lldb/src/main/java/agent/lldb/manager/cmd/LldbListThreadsCommand.java /* ### * IP: GHIDRA * * 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 * * ...
interaction-lab/MoveToCode
docs/html/dir_bd79ff5a2247e228097ca24503898ff3.js
var dir_bd79ff5a2247e228097ca24503898ff3 = [ [ "DiagnosticsEventData.cs", "_diagnostics_event_data_8cs.html", [ [ "DiagnosticsEventData", "class_microsoft_1_1_mixed_reality_1_1_toolkit_1_1_diagnostics_1_1_diagnostics_event_data.html", "class_microsoft_1_1_mixed_reality_1_1_toolkit_1_1_diagnostics_1_1_diagnost...
fengjixuchui/Hades-Windows
MonitorEvent/netdrv/hashtable.c
#include "public.h" #include "hashtable.h" PHASH_TABLE hash_table_new(unsigned int size) { unsigned int memsize; PHASH_TABLE pTable; if (size < 1) return NULL; memsize = sizeof(HASH_TABLE) + sizeof(PHASH_TABLE_ENTRY) * (size - 1); pTable = malloc_np(memsize); if (!pTable) return NULL; memset(pTable, 0,...
HughWick/toolbox
src/main/java/com/github/hugh/util/DoubleMathUtils.java
<gh_stars>1-10 package com.github.hugh.util; import java.math.BigDecimal; import java.math.RoundingMode; import java.text.DecimalFormat; import java.text.NumberFormat; /** * double计算精准工具类 * * @author hugh * @since 1.0.1 */ public class DoubleMathUtils { // 这个类不能实例化 private DoubleMathUtils() { } ...
dan-overton/react-workshop-app
example/react-fundamentals/src/final/05.extra-1.js
// Styling // 💯 Custom component that encapsulates styling // http://localhost:3000/isolated/exercises-final/05.extra-1 import '../box-styles.css' import React from 'react' function Box({style, size, className = '', ...otherProps}) { const sizeClassName = size ? `box--${size}` : '' return ( <div classN...
xujiaji/erupt
erupt-annotation/src/main/java/xyz/erupt/annotation/config/EruptSmartSkipSerialize.java
<filename>erupt-annotation/src/main/java/xyz/erupt/annotation/config/EruptSmartSkipSerialize.java package xyz.erupt.annotation.config; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @author YuePeng...
ledrsnet/music-web-site
src/main/java/com/maple/music/dao/AlbumDao.java
package com.maple.music.dao; import com.maple.music.entity.Album; import java.math.BigInteger; import java.util.List; /** * @author LiangDong * @Date 2020/3/23 */ public interface AlbumDao { /** * 从歌曲表中查出所有的专辑ID * @return */ List<BigInteger> getAlbumIdsFromSongs(); /** * 判断该专辑是否存在 * @param id * @r...
Houkime/echo
editor/QLibrary/Resources/QLibrary/nodeeditor/internal/connection/ConnectionState.hpp
#pragma once #include <QtCore/QUuid> #include "../node/PortType.hpp" class QPointF; namespace QtNodes { class Node; /// Stores currently dragging end. /// Remembers last hovered Node. class ConnectionState { public: ConnectionState(PortType port = PortType::None) : _requiredPort(port) {} ConnectionState...
jcoder39/Quasura
tests/math/main.cpp
/* * main.cpp * * Created by <NAME> * * Copyright (c) 2018 spectrobyte http://spectrobyte.com * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * */ #include "gtest/gtest.h" int main(int argc, char **argv) { ::testing:...
DGermano8/ChasteDom
cell_based/test/tutorial/TestRunningDifferentialAdhesionSimulationsTutorial.hpp
<gh_stars>0 /* Copyright (c) 2005-2018, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and ...
r8d8/lastlock
QCA4020_SDK/target/thirdparty/aws_freertos/lib/tls/portable/qcom/qca402x/aws_tls.c
<reponame>r8d8/lastlock /* * Copyright (c) 2018 Qualcomm Technologies, Inc. * All Rights Reserved. * Confidential and Proprietary - Qualcomm Technologies, Inc. * $QTI_LICENSE_QDN_C * * Amazon FreeRTOS TLS for QCOM QCA402X V1.0.0 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. *...
things-scene/things-scene
packages/visualizer/src/text-extrude.js
/* * Copyright © HatioLab Inc. All rights reserved. */ import * as THREE from 'three' import NanumGothicFont from '../obj/fonts/nanum_gothic.json?3d' import Component3d from './component-3d' import Object3D from './object3d' const NATURE = { mutable: false, resizable: true, rotatable: true, properties: [ ...
m-m-m/ui
core/src/main/java/io/github/mmm/ui/api/datatype/color/Alpha.java
<filename>core/src/main/java/io/github/mmm/ui/api/datatype/color/Alpha.java /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package io.github.mmm.ui.api.datatype.color; /** * This {@link ColorSegment} represents the alpha value of a colo...
SvenAugustus/photon
01-java-core/jdk-io-samples/src/main/java/xyz/flysium/photon/c001_serializable/SerializableCloneTest.java
<filename>01-java-core/jdk-io-samples/src/main/java/xyz/flysium/photon/c001_serializable/SerializableCloneTest.java /* * MIT License * * Copyright (c) 2020 SvenAugustus * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
dimitaruzunov/oop-practicum-is-2015-16
week03/solutions/problem1/person_with_dog_cstring.cpp
#include <iostream> #include <cstring> using namespace std; class Dog { char name[30]; public: Dog(const char _name[] = "") { strcpy(name, _name); } void greet() { cout << "Bark, bark! I am " << name << ", a talking dog." << endl; } }; class Person { char name[30]; int age...
isabella232/spring-data-geode
spring-data-geode/src/main/java/org/springframework/data/gemfire/config/schema/SchemaObjectDefiner.java
/* * Copyright 2017-2021 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...
cragkhit/elasticsearch
references/bcb_chosen_clones/selected#560379#23#27.java
<reponame>cragkhit/elasticsearch<gh_stars>10-100 public SlurpedByteArrayItem(InputStream is) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); IOUtils.copy(is, baos); data = baos.toByteArray(); }
Waitsnake/xee
Classes/XeeListSource.h
#import "XeeImageSource.h" @class XeeListEntry; @interface XeeListSource : XeeImageSource { NSMutableArray *entries; NSRecursiveLock *listlock, *loadlock; NSArray *types; XeeListEntry *currentry, *nextentry, *preventry; XeeChange changes; NSInteger oldindex; BOOL loader_running, exiting; XeeImage *loadingim...
pboechat/xithcluster
xith3d/src/org/xith3d/effects/bloom/GLSLBloomFactory.java
<reponame>pboechat/xithcluster /** * Copyright (c) 2003-2010, Xith3D Project Group all rights reserved. * * Portions based on the Java3D interface, Copyright by Sun Microsystems. * Many thanks to the developers of Java3D and Sun Microsystems for their * innovation and design. * * Redistribution and use in sour...
hangilc/myclinic-spring
rcpt/src/main/java/jp/chang/myclinic/rcpt/unit/Extendable.java
<filename>rcpt/src/main/java/jp/chang/myclinic/rcpt/unit/Extendable.java<gh_stars>0 package jp.chang.myclinic.rcpt.unit; interface Extendable<T> { boolean isExtendableWith(T a); void extendWith(T a); }
alexandrustana/pure-movie-server
project/Dependencies.scala
import sbt._ object Dependencies { //============================================================================================ //============================================================================================ //======================================= DEPENDENCIES =================================...
jcoehoorn/basic-computer-games
33_Dice/java/src/DiceGame.java
public class DiceGame { public static void main(String[] args) { Dice dice = new Dice(); dice.play(); } }
phatblat/macOSPrivateFrameworks
PrivateFrameworks/SpeechRecognitionCommandServices/CMDPGrammarData.h
<reponame>phatblat/macOSPrivateFrameworks // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSString; @interface CMDPGrammarData : NSObject { NSString *_commandIdentifier; NSString *_builtInLMIdentif...
davidstutz/daml-shape-completion
data/kitti/12_11_visualize_binvox_points.py
<reponame>davidstutz/daml-shape-completion import argparse import sys import os sys.path.insert(1, os.path.realpath(__file__ + '../lib/')) from blender_utils import * import common import json import h5py import numpy as np import ntpath def read_json(file): """ Read a JSON file. :param file: path to file...
consulo/consulo-spring
web/src/com/intellij/spring/web/mvc/MVCViewProvider.java
package com.intellij.spring.web.mvc; import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.openapi.util.Pair; import com.intellij.spring.SpringModel; import com.intellij.spring.model.PsiElementPointer; import com.intellij.javaee.web.facet.WebFacet; import java.util.List; /** * @author <NAME...
eguneys/lose-your-marbles
app/scripts/prefabs/level_splash.js
'use strict'; define(['phaser'], function(Phaser) { function LevelSplash(game, level, parent, isBonus) { Phaser.Group.call(this, game, parent); if (isBonus) { this.bonusText = this.create(0, -60, 'marbleatlas', 'DIALOG_TEXT_BONUS'); } this.levelText = this.crea...
muyiluop/nutzmore
nutz-plugins-postgis/src/main/java/org/nutz/postgis/dao/package-info.java
/** * @author Kerbores(<EMAIL>) * */ package org.nutz.postgis.dao;
hlubek/golang-meetup
2020-01/go-for-beginners/concurrency/coordination.go
<reponame>hlubek/golang-meetup<filename>2020-01/go-for-beginners/concurrency/coordination.go package main import ( "fmt" "sync" "time" ) func main() { // START OMIT var wg sync.WaitGroup wg.Add(1) go func() { time.Sleep(300 * time.Millisecond) fmt.Println("Wake up!") wg.Done() }() wg.Add(1) go func...
ruditimmermans/golden
pkg/config/ConfigManager.go
package config import ( "github.com/vit1251/golden/pkg/mapper" "github.com/vit1251/golden/pkg/registry" "log" ) type ConfigManager struct { registry *registry.Container } func NewConfigManager(r *registry.Container) *ConfigManager { newConfigManager := new(ConfigManager) newConfigManager.registry = r return n...
bench-os/bench-os
devices-framework/riot-app/riot/drivers/lps331ap/include/lps331ap-internal.h
/* * Copyright (C) 2014 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup drivers_lps331ap * @{ * * @file * @brief Definitions for the ...
BroadbandForum/obbaa-netconf-stack
netconf-server-modelnode-fwk/src/main/java/org/broadband_forum/obbaa/netconf/mn/fwk/server/model/support/constraints/validation/util/DataStoreValidationErrors.java
package org.broadband_forum.obbaa.netconf.mn.fwk.server.model.support.constraints.validation.util; import java.util.HashMap; import java.util.Map; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.model.api.MustDefinition; import org.broadband_forum.obbaa.netconf.api.message...
RenatoTorres/Exode
Exode/Core/boardThread.py
# boardThread.py # # Some tasks must be execute periodically, # to blink a led for example. Or sometimes we # have to execute instructions successively. # # boardThread compile instructions and sending # them to the board in a single arrayByte # that's way the instructions'll be execute # successively. ...
mantamusica/interfacesDesign
Tema Instaladores/Desarrollo De Interfaces/JavaExe/doc/examples/9 - Registry/src/com/devwizard/javaexe/examples/example9/Example9_ActionForm.java
<reponame>mantamusica/interfacesDesign<gh_stars>0 /*****************************************************************************/ /*** (c) 2002-2013, DevWizard (<EMAIL>) ***/ /*** ***/ /*** ...
youngzhu/DesignPatternsByYoungzy
src/sourcemaking/structural/decorator/example1/after/D.java
package sourcemaking.structural.decorator.example1.after; public abstract class D implements I { private I core; public D(I inner) { core = inner; } @Override public void doIt() { core.doIt(); } }
alex729/RED
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/java/org/rf/ide/core/testdata/text/write/tables/keywords/creation/CreationOfKeywordReturnTest.java
/* * Copyright 2016 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.rf.ide.core.testdata.text.write.tables.keywords.creation; import org.junit.Test; import org.rf.ide.core.testdata.model.FileFormat; import org.rf.ide.core.testdata.mo...
rceet/TencentOS-tiny
platform/vendor_bsp/TI/MSP432P4xx/pmap.h
<reponame>rceet/TencentOS-tiny<gh_stars>1-10 /* * ------------------------------------------- * MSP432 DriverLib - v3_40_00_10 * ------------------------------------------- * * --COPYRIGHT--,BSD,BSD * Copyright (c) 2016, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in so...
refactorzone/spring-boot-validators
src/test/java/zone/refactor/spring/validation/validator/IntegerValidatorTest.java
package zone.refactor.spring.validation.validator; import org.junit.Test; import zone.refactor.spring.validation.localization.BuiltInLocalizationService; import zone.refactor.spring.validation.validator.IntegerValidator; import static junit.framework.TestCase.assertFalse; import static junit.framework.TestCase.assert...
JLLeitschuh/book
src/main/java/com/tamingtext/tagging/LuceneCategoryExtractor.java
/* * Copyright 2008-2011 <NAME>, <NAME> and <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 requir...
zack-braun/4607_NS
ns-allinone-3.27/ns-3.27/src/lte/test/epc-test-s1u-downlink.cc
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Fre...
oschaaf/istio
pilot/pkg/serviceregistry/kube/controller/endpointslice_test.go
<filename>pilot/pkg/serviceregistry/kube/controller/endpointslice_test.go<gh_stars>10-100 // Copyright Istio 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 // // http://www.a...