repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
antonmedv/year
packages/1994/04/06/index.js
<gh_stars>1-10 module.exports = new Date(1994, 3, 6)
whble/trunk
target/linux/adm5120/files/drivers/usb/host/adm5120-pm.c
/* * ADM5120 HCD (Host Controller Driver) for USB * * Copyright (C) 2007-2008 <NAME> <<EMAIL>> * * This file was derived from fragments of the OHCI driver. * (C) Copyright 1999 <NAME> <<EMAIL>> * (C) Copyright 2000-2004 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it a...
mmattamala/gtsam.org
doxygen/4.0.0/search/files_4.js
<filename>doxygen/4.0.0/search/files_4.js var searchData= [ ['eliminateablefactorgraph_2eh',['EliminateableFactorGraph.h',['../a00413.html',1,'']]], ['eliminationtree_2eh',['EliminationTree.h',['../a00419.html',1,'']]], ['equalityfactorgraph_2eh',['EqualityFactorGraph.h',['../a01151.html',1,'']]], ['equivinerti...
jessejohns-1/underdog-devs-fe-a
src/components/pages/Profile/ProfileContainer.js
import React from 'react'; import RenderProfile from './RenderProfileContainer'; function ProfileContainer({ LoadingComponent }) { return ( <> <RenderProfile /> </> ); } export default ProfileContainer;
DFE-Digital/fb-runner-node
lib/module/savereturn/controller/page/instance/return.setup.mobile.validate/return.setup.mobile.validate.controller.js
<reponame>DFE-Digital/fb-runner-node const {deepClone} = require('@ministryofjustice/fb-utils-node') const {client, handleValidationError, resetUser, authenticate, sendEmail} = require('../../../savereturn') const ReturnSetupMobileValidateController = {} ReturnSetupMobileValidateController.preUpdateContents = async (...
jpr86/jevolve
src/main/java/com/ridderware/jevolve/DiscreteDoubleGAGene.java
/* %% * * JEvolve * * Copyright 2006 <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 l...
dmbeer/wicket-bootstrap
bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/form/validation/TooltipValidation.java
<gh_stars>100-1000 package de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation; import de.agilecoders.wicket.core.Bootstrap; import de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapResourcesBehavior; import org.apache.wicket.Component; import org.apache.wicket.markup.head.IHeaderRe...
tvdeyen/friendly_shipping
spec/friendly_shipping/services/ups/serialize_rating_service_selection_request_spec.rb
<filename>spec/friendly_shipping/services/ups/serialize_rating_service_selection_request_spec.rb<gh_stars>0 # frozen_string_literal: true require 'spec_helper' RSpec.describe FriendlyShipping::Services::Ups::SerializeRatingServiceSelectionRequest do let(:origin) { FactoryBot.build(:physical_location) } let(:dest...
ruoranluomu/AliOS-Things
board/developerkit/bootloader/Src/hal_boot_uart.c
#include "main.h" #include "stm32l4xx_hal.h" #define LPUARTx LPUART1 #define LPUARTx_CLK_ENABLE() __HAL_RCC_LPUART1_CLK_ENABLE(); #define LPUARTx_RX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() #define LPUARTx_TX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() #define...
MineGame159/donat
donat/src/minegame159/donat/rendering/common/Mesh.java
package minegame159.donat.rendering.common; import minegame159.donat.Disposable; import minegame159.donat.collections.FloatArray; import minegame159.donat.collections.IntArray; import static org.lwjgl.opengl.GL33C.*; public class Mesh implements Disposable { private int vaoHandle, vboHandle, iboHandle; publi...
eiichiro/bootleg
src/main/java/org/eiichiro/bootleg/Forward.java
<filename>src/main/java/org/eiichiro/bootleg/Forward.java<gh_stars>0 /* * Copyright (C) 2011-2013 <NAME>. 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 * * ...
jellisgwn/DependencyCheck
utils/src/test/java/org/owasp/dependencycheck/utils/SettingsTest.java
<gh_stars>1000+ /* * This file is part of dependency-check-core. * * 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 require...
aluminous/caver-java
core/src/main/java/com/klaytn/caver/methods/request/KlayLogFilter.java
/* * Copyright 2019 The caver-java 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
tomcamp0228/ibeo_ros2
src/ibeo_8l_sdk/src/ibeosdk/MeasurementKey.cpp
//====================================================================== /*! \file MeasurementKey.cpp * * \copydoc Copyright * \author <NAME> (jcd) * \date May 3, 2016 *///------------------------------------------------------------------- //====================================================================== ...
aras-p/dingus
dingus/dingus/utils/AssertHelper.h
// -------------------------------------------------------------------------- // Dingus project - a collection of subsystems for game/graphics applications // -------------------------------------------------------------------------- #ifndef __ASSERT_HELP_H #define __ASSERT_HELP_H #define ASSERT_MSG( condition...
wanderBee/launch-advertising-api
src/logger/index.js
const pino = require('pino'); const config = require('../config'); module.exports = pino({ level: config.get('logger.level'), prettyPrint: config.get('env') !== 'production' });
iryabov/n2o-framework
frontend/n2o-framework/src/reducers.js
import { combineReducers } from 'redux'; import { connectRouter } from 'connected-react-router'; import { reducer as formReducer } from 'redux-form'; import widgets from './reducers/widgets'; import models from './reducers/models'; import global from './reducers/global'; import pages from './reducers/pages'; import al...
Seanny123/backmap
manuscript/python_generators/local_imports/stride/chk_atom.c
<gh_stars>1-10 #include "stride.h" int CheckAtom(char *At) { int AtomTypeCnt, AtomTypeNumber = 95; static char *Atom[MAX_AtomType] = { "AD1", "AD2", "AE1", "AE2", "C", "CA", "CB", "CD", "CD1", "CD2", "CE", "CE1", "CE2", "CE3", "CG", "CG1", "CG2", "CH2", "CH3", "CZ", "CZ2", "CZ3", "HG", "HG1", "HH", "HH2",...
felipeek/bullet3
examples/pybullet/gym/pybullet_envs/minitaur/robots/minitaur_motor_model_v2.py
# Lint as: python3 """This file implements an accurate motor model.""" from typing import Tuple import gin import numpy as np from pybullet_envs.minitaur.robots import hybrid_motor_model from pybullet_envs.minitaur.robots import robot_config VOLTAGE_CLIPPING = 50 # TODO(b/73728631): Clamp the pwm signal instead of ...
qianyuqiao/dragonflow
dragonflow/neutron/common/dhcp_opt_map.py
# 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 # d...
myoukaku/bksge
libs/core/math/include/bksge/core/math/color4.hpp
<gh_stars>1-10 /** * @file color4.hpp * * @brief Color4 の定義 * * @author myoukaku */ #ifndef BKSGE_CORE_MATH_COLOR4_HPP #define BKSGE_CORE_MATH_COLOR4_HPP #include <bksge/core/math/fwd/color4_fwd.hpp> #include <bksge/core/math/color.hpp> #include <bksge/core/math/color3.hpp> #include <bksge/core/m...
sohobase/xCryptos
src/screens/Coins/index.js
export default from './Coins';
lriki/Lumino
lumino/Graphics/src/RHI/Backend/OpenGL/GLUniformBuffer.cpp
#include "GLUniformBuffer.hpp" namespace ln { namespace detail { //============================================================================== // GLUniformBuffer GLUniformBuffer::GLUniformBuffer() : m_ubo(0) , m_size(0) , m_data(nullptr) , m_mapped(false) { } Result GLUniformBuffer::init(size_t ...
ekmixon/concord
common/src/main/java/com/walmartlabs/concord/common/ObjectInputStreamWithClassLoader.java
package com.walmartlabs.concord.common; /*- * ***** * Concord * ----- * Copyright (C) 2017 - 2020 Walmart Inc. * ----- * 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:...
Jacshon/spring-framework-i21
src/com/interface21/aop/framework/MethodPointcut.java
/* * The Spring Framework is published under the terms * of the Apache Software License. */ package com.interface21.aop.framework; import org.aopalliance.intercept.MethodInterceptor; /** * Interface to be implemented by objects that can cause * conditional invocation of an Interceptor depending on * the metho...
clilystudio/NetBook
allsrc/android/support/v4/app/ActionBarDrawerToggle$ActionBarDrawerToggleImplJellybeanMR2.java
package android.support.v4.app; import android.app.Activity; import android.graphics.drawable.Drawable; class ActionBarDrawerToggle$ActionBarDrawerToggleImplJellybeanMR2 implements ActionBarDrawerToggle.ActionBarDrawerToggleImpl { public Drawable getThemeUpIndicator(Activity paramActivity) { return ActionBa...
tudo-aqua/jStateExplorer
src/main/java/gov/nasa/jstateexplorer/util/ResultSaver.java
<reponame>tudo-aqua/jStateExplorer<filename>src/main/java/gov/nasa/jstateexplorer/util/ResultSaver.java /* * Copyright (C) 2015, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The PSYCO: A Predicate-based Symbolic Co...
1446554749/jdk_11_src_read
jdk11/java.desktop/sun/awt/X11/XAtom.java
<gh_stars>100-1000 /* * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * pub...
HewlettPackard/SimpliVity-Citrix-VCenter-Plugin
HTML5/dev/simplivity-citrixplugin-service/src/main/java/com/vmware/vim25/VmFaultToleranceConfigIssueReasonForIssue.java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2019.06.12 at 09:...
zoozooll/MyExercise
Market/src/com/mogoo/components/ad/AdOnClickListener.java
<filename>Market/src/com/mogoo/components/ad/AdOnClickListener.java package com.mogoo.components.ad; /** * 监听点击展示位的事件接口 * * @author Administrator * */ public interface AdOnClickListener { /** * 点击展示位时触发 * * @param item */ void OnClick(AdvertiseItem item); }
zlypher/advent-of-code
2020/day13/index.js
<filename>2020/day13/index.js // Day 13: Shuttle Search const fs = require("fs"); const prepareInput = () => fs.readFileSync("./input.txt") .toString() .split("\r\n"); function solvePartOne(input) { const [fst, snd] = input; const earliest = parseInt(fst, 10); const timestamps = snd.split(",") ...
iOSDevLog/iOSDevLog
68. Pods/Pods/OBJMasterViewController.h
<filename>68. Pods/Pods/OBJMasterViewController.h // // OBJMasterViewController.h // Pods // // Created by <NAME> on 02.03.14. // Copyright (c) 2014 objc.io. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface OBJMasterViewController : UITableViewController <NSFetchedResultsC...
Apereo-Learning-Analytics-Initiative/Larissa
src/main/java/nl/uva/larissa/json/model/About.java
package nl.uva.larissa.json.model; import java.util.List; import java.util.Map; import org.apache.abdera.i18n.iri.IRI; public class About { List<String> version; private Map<IRI, Object> extensions; public List<String> getVersion() { return version; } public void setVersion(List<String> version) { this.ve...
atsushi-m-ito/nowtype
src/nt.dom_finder.js
<gh_stars>1-10 "use strict"; function FindNextEffectiveNode(focus_node, focus_offset, upper_limit_node) { let target_node; if (focus_node.nodeType === Node.TEXT_NODE) { if (focus_offset < focus_node.length) { return focus_node; } target_node = focus_node; ...
ut-issl/c2a-core
System/AnomalyLogger/anomaly_logger.c
#pragma section REPRO #include "anomaly_logger.h" #ifdef AL_ENABLE #include <src_user/Settings/System/anomaly_logger_settings.h> #include <string.h> // memset #include "../TimeManager/time_manager.h" #include "../../Library/endian_memcpy.h" static void AL_clear_records_(void); static int AC_is_equal_(const AL_Anom...
nehasuman24/TestT24Automation
T24Automation/src/test/java/com/scb/t24/glue/ForexForwardDealStepDefinitionFile.java
/** * */ package com.scb.t24.glue; import com.scb.t24.pages.AuthoriseConfirmForexDealsPage; import com.scb.t24.pages.CaptureForwardDealsDetailPage; import com.scb.t24.pages.ChooseForexForwardDealPage; import com.scb.t24.pages.HomePage_Threasurey; import com.scb.t24.pages.LoginPage; import com.scb.t24.page...
packedapp/packedtmp
modules/packed/src/main/java/packed/internal/component/ComponentSetup.java
/* * Copyright (c) 2008 <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 ...
brunocanella/OpenAUTOS
os/osek/os.h
#ifndef OSEK_OS_H #define OSEK_OS_H #include "types.h" /**This data type represents the application mode.*/ typedef uint8_t AppModeType; /** * This service returns the current application mode. It may be used to write mode dependent code. * * @remark See chapter 5 for a general description of application modes. ...
hstove/universal-wallet
packages/webapp/src/components/BlockstackLink.js
import React, { Component, Fragment } from 'react'; import { Button, Center } from '../theme'; export default class BlockstackLink extends Component { state = { mode: null, url: null }; componentDidUpdate(prevProps) { const { qrData } = this.props; if (!prevProps.qrData && qrData) { this.setState({ ...
samtingleff/dgrid
java/src/client/com/dgrid/helpers/impl/SDBHelperImpl.java
<filename>java/src/client/com/dgrid/helpers/impl/SDBHelperImpl.java package com.dgrid.helpers.impl; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.dgrid.errors.SDBException; import com.dgrid.errors.TransportException; import com.dgrid.gen.InvalidApiKey; import com.dgri...
kppw99/enVAS
dataset/source/SARD/SARD-3/89422/CWE197_Numeric_Truncation_Error__short_listen_socket_83.h
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__short_listen_socket_83.h Label Definition File: CWE197_Numeric_Truncation_Error__short.label.xml Template File: sources-sink-83.tmpl.h */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: listen_socket Read data u...
redfast00/daily-algorithm-challenge
src/122_maximum_matrix_path_sum.py
from utils import INFINITY def maximum_matrix_path_sum(matrix): '''Returns the maximum amount of 'coins' on the path. The path taken is a shortest path from the upper-left corner to the bottom-right corner. >>> maximum_matrix_path_sum([[0, 3, 1, 1], [2, 0, 0, 4], [1, 5, 3, 1]]) 12 ''' height...
multifascinated/elevate-ui
src/Hr/index.js
// @flow import React, { Component } from "react"; import withStyles from "../withStyles"; import classNames from "classnames"; type Props = { /** * Accepts any classNames to be passed to the component. */ className: string, classes: Object, /** * Color to be applied to the Hr component. Can be "prima...
glathoud/flatorize
lib/flatmat.js
/* Fast math functions for 2-D matrices stored as flat (1-D) arrays of numbers. Requires: ../flatorize.js Copyright 2017 <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...
ZubinGou/Learn-Python3-The-Hard-Way
ex-data-structure/ds_tuples_sequences.py
<reponame>ZubinGou/Learn-Python3-The-Hard-Way #!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2020-02-19 20:15:29 # @Author : ZubinGou (<EMAIL>) # @Link : https://github.com/ZubinGou # @Version : $Id$ import os # del statement a = list(range(10)) print(a) del a[2] print(a) del a[:] print(a) # tuples an...
dmgerman/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java
<filename>hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreemen...
amessier/xenia
src/xenia/gpu/vulkan/shaders/bytecode/vulkan_spirv/point_list_gs.h
// Generated with `xb buildshaders`. #if 0 ; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 24916 ; Schema: 0 OpCapability Geometry %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Geometry %5663 "m...
Blub/pve-manager
www/manager6/qemu/HDEfi.js
Ext.define('PVE.qemu.EFIDiskInputPanel', { extend: 'PVE.panel.InputPanel', alias: 'widget.pveEFIDiskInputPanel', insideWizard: false, unused: false, // ADD usused disk imaged vmconfig: {}, // used to select usused disks controller: { xclass: 'Ext.app.ViewController', control: { 'fie...
DazEB2/SimplePyScripts
telegram_bot_examples/funs_tests__speak_pict_youtube/speak_pict_youtube.py
<filename>telegram_bot_examples/funs_tests__speak_pict_youtube/speak_pict_youtube.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import random import sys import time import os from pathlib import Path from telegram import Update, InputMediaPhoto from telegram.ext import Updater, CommandHa...
ScalablyTyped/SlinkyTyped
m/mongoose/src/main/scala/typingsSlinky/mongoose/mod/HasJustId.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.mongoose.mod import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} // check whether a type consists just of {_id: T} and no other properties /* Rewritten from type al...
ishitatsuyuki/watchman
FileInformation.cpp
/* Copyright 2017-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "FileInformation.h" #include "watchman_time.h" namespace watchman { #ifndef _WIN32 FileInformation::FileInformation(const struct stat& st) : mode(st.st_mode), size(off_t(st.st_size)), uid(st.st_uid),...
apptentive-engineering/apptentive-android
apptentive/src/main/java/com/apptentive/android/sdk/module/messagecenter/MessagePollingWorker.java
/* * Copyright (c) 2017, Apptentive, Inc. All Rights Reserved. * Please refer to the LICENSE file for the terms and conditions * under which redistribution and use of this file is permitted. */ package com.apptentive.android.sdk.module.messagecenter; import androidx.annotation.NonNull; import com.apptentive.and...
DevvyDoo/Leveled
src/main/java/me/devvy/leveled/events/PlayerDealtMeleeDamageEvent.java
<reponame>DevvyDoo/Leveled package me.devvy.leveled.events; import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.player.PlayerEvent; import org.bukkit.inventor...
Yuunagi-Yu/NumberDisk
Project/Temp/StagingArea/Data/il2cppOutput/mscorlib_System_Array_InternalEnumerator_1_gen3008434283MethodDeclarations.h
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <assert.h> #include <exception> // System.Array struct Il2CppArray; // System.Object struct Il2CppObject; #include "codegen/il2cpp-codegen.h" #include "mscorlib_System_Array...
astaxie/tsuru
collector/suite_test.go
<reponame>astaxie/tsuru // Copyright 2012 tsuru authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "github.com/globocom/config" "github.com/globocom/tsuru/app" "github.com/globocom/tsuru/db" ttesting "github.c...
DougBurke/xspeclmodels
xspec/XSFit/MCMC/AsciiChain.h
<filename>xspec/XSFit/MCMC/AsciiChain.h // Read the documentation to learn more about C++ code generator // versioning. // %X% %Q% %Z% %W% #ifndef ASCIICHAIN_H #define ASCIICHAIN_H 1 // ChainIO #include <XSFit/MCMC/ChainIO.h> class Chain; #include <fstream> class AsciiChain : public ChainIO //## Inherits:...
afeng11/tomato-arm
release/src-rt-6.x.4708/router/nfs-utils/support/nfs/nfsexport.c
<filename>release/src-rt-6.x.4708/router/nfs-utils/support/nfs/nfsexport.c /* * support/nfs/export.c * * Add or delete an NFS export in knfsd. * * Copyright (C) 1995, 1996 <NAME> <<EMAIL>> */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include <sys/types.h> #include <asm/types.h> #inclu...
housel/spoofax
org.metaborg.core/src/main/java/org/metaborg/core/source/SourceRegion.java
package org.metaborg.core.source; public class SourceRegion implements ISourceRegion { private static final long serialVersionUID = -3699054067428073315L; private final int startOffset; private final int startRow; private final int startColumn; private final int endOffset; private final int en...
maltaisn/transform-swf
src/main/java/com/flagstone/transform/filter/ColorMatrixFilter.java
/* * ColorMatrixFilter.java * Transform * * Copyright (c) 2009-2010 Flagstone Software Ltd. All rights reserved. * * 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 mu...
wgnet/wds_qt
qtdeclarative/src/quick/items/qquickview.cpp
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtQuick module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid comme...
hokamc/core-ng-project
core-ng/src/test/java/core/framework/module/ExecutorConfigTest.java
<gh_stars>100-1000 package core.framework.module; import core.framework.async.Executor; import core.framework.internal.module.ModuleContext; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; /** * @author neo */ class ExecutorConfi...
KHWeb19/Homework
DongHyeokLee/java/9th/Homework5&6&7/src/Score.java
<gh_stars>10-100 import java.util.Scanner; public class Score { private Scanner scan; int sum = 0; public void initScore(){ System.out.print("수학 점수를 입력하시오 : "); scan = new Scanner(System.in); int mathScore = scan.nextInt(); System.out.print("국어 점수를 입력하시오 : "); ...
ministryofjustice/smartdown
spec/api/question_spec.rb
require 'smartdown/api/question' require 'smartdown/api/date_question' require 'smartdown/model/element/question/date' require 'smartdown/model/element/markdown_heading' require 'smartdown/model/element/markdown_line' describe Smartdown::Api::Question do subject(:question) { Smartdown::Api::Question.new(elements) }...
mahmoudimus/ac
crowd-support/src/main/java/com/atlassian/plugin/connect/crowd/permissions/ConnectCrowdSysadminHttpClientImpl.java
<reponame>mahmoudimus/ac<filename>crowd-support/src/main/java/com/atlassian/plugin/connect/crowd/permissions/ConnectCrowdSysadminHttpClientImpl.java package com.atlassian.plugin.connect.crowd.permissions; import com.atlassian.applinks.api.ApplicationLink; import com.atlassian.applinks.api.ApplicationLinkRequest; impor...
aleckan53/teamapp-client
src/features/Search/actions.js
import Api from './api' export default { loadProjects (state, setState) { Api.getAllProjects(state.searchTerm, state.currentPage) .then(res => setState({ ...state, totalProjects: res.count, // prevents bubbling up the state projects: state.currentPage > 1 ? [...st...
maciek1651g/SuperZespol2500K
src/LoginPage/ErrorMessage.js
<gh_stars>0 import styles from "./loginStyle.module.css"; import Icons from "../img/iconsSVG"; import React from "react"; let closeHandler = null; const ErrorMessage = (props) => { const close = () => { props.setMessage(null); } if(props.message!==null) { if(closeHandler!=null) ...
niuware/instpector
examples/get_followers.py
from sys import argv from context import Instpector, endpoints def get_followers(**options): instpector = Instpector() if not instpector.login(user=options.get("user"), password=options.get("password")): return followers = endpoints.factory.create("followers", instpector) for follower in foll...
nbv3/voogasalad_CS308
src/com/syntacticsugar/vooga/gameplayer/universe/map/tiles/effects/TileEffectType.java
package com.syntacticsugar.vooga.gameplayer.universe.map.tiles.effects; public enum TileEffectType { DamagePersistent, DamageTemporary, Slow; }
openharmony-gitee-mirror/ace_ace_engine
frameworks/core/components/video/video_component_v2.h
<reponame>openharmony-gitee-mirror/ace_ace_engine /* * Copyright (c) 2021 Huawei Device 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/LI...
alphonsetai/RGA
RadeonGPUAnalyzerGUI/include/rgSourceEditorSearcher.h
#pragma once // Local. #include <RadeonGPUAnalyzerGUI/include/qt/rgFindTextWidget.h> // Forward declarations. class rgSourceCodeEditor; // An object responsible for searching a source editor using an rgFindTextWidget. class rgSourceEditorSearcher : public ISearchable { public: rgSourceEditorSearcher(); virtu...
djoun52/udemy_reacy
2-react-router/src/Components/Error404/Error404.js
<gh_stars>0 import React from 'react' import { useNavigate } from 'react-router-dom' export default function Error404() { const navigate = useNavigate() const goHome = ()=> { navigate("/") } return ( <div> <h1>error 404 Page not found</h1> <div className="d-flex...
madhubandubey9/StarEngine
StarEngine/jni/EventLoop.h
#ifdef ANDROID #pragma once #include "defines.h" #include <android_native_app_glue.h> #include "BaseGame.h" #include "Context.h" #include "TimeManager.h" namespace star { class SceneManager; class EventLoop final { public: ~EventLoop(); static EventLoop * GetInstance(); void Run(); ...
jeongjoonyoo/AMD_RGA
Utils/Include/rgOptionalRef.h
#ifdef _WIN32 #define WEAK_LINK __declspec(selectany) #else #define WEAK_LINK __attribute__((weak)) #endif // This is a "poor man's" implementation of c++ "optional" concept for references. // It is useful when you need to return a reference that can be "empty". // Example: // // class Item { public: void bar() {}...
juhoniinikoski/neroksi-app
neroksi-api/src/graphql/types/PageInfo.js
import { gql } from 'apollo-server' export const typeDefs = gql` type PageInfo { hasPreviousPage: Boolean! hasNextPage: Boolean! startCursor: String endCursor: String } ` export const resolvers = {} export default { typeDefs, resolvers, }
alex-myzhao/FE-6083
server-koa/routes/index.js
<reponame>alex-myzhao/FE-6083 module.exports = (router) => { router.prefix('/v1') router.use('/auth', require('./auth')) router.use('/users', require('./users')) router.use('/workspace', require('./workspaces')) router.use('/winvitation', require('./winvitations')) router.use('/channel', require('./channels...
gdeverlant/dynamic-extensions-for-alfresco
webscripts/src/main/java/com/github/dynamicextensionsalfresco/webscripts/UrlModel.java
package com.github.dynamicextensionsalfresco.webscripts; import org.springframework.extensions.webscripts.WebScriptRequest; import org.springframework.util.Assert; import java.util.Collections; import java.util.Map; /** * * Model representing 'url' object for use. The code is taken from the Spring Web Scripts 1.0...
anthonyalvarez757/rm.soin-net
src/main/java/com/soin/sgrm/model/Crontab.java
<gh_stars>0 package com.soin.sgrm.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn;...
mingyi456/tp
src/main/java/seedu/address/ui/HelpWindow.java
<reponame>mingyi456/tp package seedu.address.ui; import java.awt.Desktop; import java.io.IOException; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import java.util.List; import java.util.logging.Logger; import javafx.collections.FXCollections; import javafx.fxml.FXML...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/structovsdb__monitor__row.js
var structovsdb__monitor__row = [ [ "hmap_node", "structovsdb__monitor__row.html#ae6e7239f74c18f4c5a47345850a59ff5", null ], [ "new", "structovsdb__monitor__row.html#a0c5886d2e0c293530ffafb0f79bb69b1", null ], [ "old", "structovsdb__monitor__row.html#ab9c47b27cef4dce17d03d5f5ee59dad5", null ], [ "uuid",...
hsamgle/wheel
framework/basic/src/main/java/com/hsamgle/basic/entity/TokenInfo.java
<filename>framework/basic/src/main/java/com/hsamgle/basic/entity/TokenInfo.java package com.hsamgle.basic.entity; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.Set; /** * * @feture : TODO 令牌信息 * @file_name: TokenInfo.java * @packge: com.hsamgle.basic.entity * @author: ...
navikt/testnorge
libs/reactive-session-security/src/main/java/no/nav/testnav/libs/reactivesessionsecurity/manager/WebClientReactiveTokenResponseClient.java
package no.nav.testnav.libs.reactivesessionsecurity.manager; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.security.oauth2.client.endpoint.NimbusJwtClientAuthenticationParametersConverter; import org.springframework.security.oauth2.client.endpoint.OA...
farbrorbarbro/ExeMutator
source/mutator/InstructionNodes/PushInstruction.h
#pragma once #include "Instruction.h" #include "RegisterDefinitions.h" class PushInstruction : public Instruction { public: PushInstruction(RegisterDefinitions inRegister); };
wtmitchell/project_euler
lib/project_euler/Problem.cpp
//===-- project_euler/Problem.cpp -------------------------------*- C++ -*-===// // // Challenge Problem solutions by <NAME> // // This file is distributed under the MIT License. See LICENSE for details. // //===----------------------------------------------------------------------===// #include "project_euler/Problem....
techonair/Codeforces
Easy Number Challenge 236B.py
<gh_stars>0 a,b,c = map(int,input().split()) lis=[0] * 1000001 for i in range(1, 1000001): j = i while j <= 1000000: lis[j] += 1 j += i ans = 0 for i in range(1, a+1): for j in range(1, b+1): for k in range(1, c+1): ans += (lis[i*j*k]%(1073741824*2**30)) ...
mya12321/taro-demo
src/page/API/pages/file/file.js
import { Block, View, Image, Button } from '@tarojs/components' import Taro from '@tarojs/taro' import withWeapp from '@tarojs/with-weapp' import FootTmpl from '../../../../imports/FootTmpl.js' import HeadTmpl from '../../../../imports/HeadTmpl.js' import './file.scss' @withWeapp({ onShareAppMessage() { return {...
worldline/kafka-manager
backend/src/main/java/com/worldline/kafka/kafkamanager/controller/KafkaConnectController.java
package com.worldline.kafka.kafkamanager.controller; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.http.HttpStatus; import org.springframework.http.R...
vault513/codewars-javascript
8 kyu/Remove First and Last Character.js
function removeChar(str){ return str.slice(1, str.length - 1); }
deninising/thread_learn
src/main/java/com/dennis/conccurency/atomic/chapter01/GetLockException.java
<gh_stars>0 package com.dennis.conccurency.atomic.chapter01; /** * 描述:获取锁异常 * * @author Dennis * @version 1.0 * @date 2020/3/31 16:47 */ public class GetLockException extends Exception { public GetLockException() { super(); } public GetLockException(String message) { super(message); ...
cypherdotXd/o3de
Gems/Atom/RPI/Code/Include/Atom/RPI.Reflect/Pass/PassAsset.h
<gh_stars>10-100 /* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <Atom/RPI.Reflect/Asset/AssetHandler.h> #include <Atom/RPI...
moibenko/enstore
src/log_server.py
#!/usr/bin/env python """ ######################################################################### # Log Server. # # Receives log messages form the client process and logs them into # # the log file. ...
tabratton/HotelBoxOffice
src/main/java/models/Actor.java
package models; import java.time.ZonedDateTime; public class Actor { private String id; private String name; private String image; private String bio; private int viewed; private ZonedDateTime lastModified; public Actor() { this.id = ""; this.name = ""; this.image = ""; this.bio = ""; ...
gilbertguoze/trick
trick_source/er7_utils/integration/abm4/include/abm4_first_order_ode_integrator.hh
<filename>trick_source/er7_utils/integration/abm4/include/abm4_first_order_ode_integrator.hh /** * @if Er7UtilsUseGroups * @addtogroup Er7Utils * @{ * @addtogroup Integration * @{ * @endif */ /** * @file * Defines the class ABM4FirstOrderODEIntegrator, which integrates a monolithic * state as a first order O...
TUsama/Create
src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/train/MinecartCouplingHandler.java
package com.simibubi.create.content.contraptions.components.structureMovement.train; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.UUID; import javax.annotation.Nullable; import org.apache.commons.lang3.tuple.Pair; imp...
epedropaulo/MyPython
03 - Estruturas Compostas/ex082.py
valores = [] impares = [] pares = [] while True: valor = int(input('Digite um número: ')) valores.append(valor) continuar = str(input('Deseja continuar? [S/N] ')).upper()[0] while continuar not in 'SN': continuar = str(input('Tente novamente! Deseja continuar? [S/N]')).upper()[0] if...
SyllogismRXS/opencv-workbench
src/wb/Blob.cpp
#include <iostream> #include "Blob.h" using std::cout; using std::endl; namespace wb { Blob::Blob() { set_id(-1); } Blob::Blob(int id) { set_id(id); } }
moraispgsi/3linha
Milestone1/src/TADInterfaces/Comparador.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package TADInterfaces; /** * O Comparador descreve a maneira como são ordenados os dados de um * certo tipo de elementos. * * @au...
erezhasson/RSE
src/logic/src/exceptions/symbol/SymbolException.java
package exceptions.symbol; public class SymbolException extends Exception { protected final String symbol; public SymbolException(String symbol) { this.symbol = symbol; } @Override public String getMessage() { return "Something went wrong with " + symbol; } }
tiger0132/code-backup
Codeforces/1000~1999/1199/D.cpp
#include <algorithm> #include <cstdio> #include <cstring> #include <set> const int N = 2e5 + 52; extern struct node _[]; int cnt; struct node { int l, r, mid, lc, rc, t, v; void put(int x) { if (l == r) v = std::max(v, x); t = std::max(t, x); } void pd() { lc[_].put(t), rc[_].put(t), t = 0; } void build(int L...
npocmaka/Windows-Server-2003
admin/darwin/src/msitools/msiregmv/msiregmv.h
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 2000 // // File: msiregmv.h // //-------------------------------------------------------------------------- #pragma once #include <windows.h> #include <tc...
yuriy-litvinenko/job4j
01_trainee/trainee_chapter_02/src/main/java/ru/job4j/coffee/CoffeeMachine.java
<reponame>yuriy-litvinenko/job4j<filename>01_trainee/trainee_chapter_02/src/main/java/ru/job4j/coffee/CoffeeMachine.java package ru.job4j.coffee; class CoffeeMachine { int[] changes(int value, int price) { int change = value - price; int[] coins = {10, 5, 2, 1}; int[] buffer = new int[chan...