repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ad12/meddlr
meddlr/transforms/base/__init__.py
<reponame>ad12/meddlr from meddlr.transforms.base.mask import KspaceMaskTransform # noqa from meddlr.transforms.base.motion import MRIMotionTransform # noqa from meddlr.transforms.base.noise import NoiseTransform # noqa from meddlr.transforms.base.spatial import ( # noqa AffineTransform, FlipTransform, ...
Sheph/TriggerTime
game/TurretComponent.cpp
/* * Copyright (c) 2014, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions a...
HPI-Information-Systems/TimeEval
tests/test_algorithm.py
import unittest import numpy as np from timeeval import Algorithm, TrainingType from timeeval.adapters import FunctionAdapter class TestAlgorithm(unittest.TestCase): def setUp(self) -> None: self.data = np.random.rand(10) self.unsupervised_algorithm = Algorithm( name="TestAlgorithm"...
garryhvh420/e_xyz
csgocheat/Anti Debug/UnhandledExceptionFilter_Handler.h
<gh_stars>0 #include <Windows.h> BOOL UnhandledExcepFilterTest();
asanoviskhak/Outtalent
Leetcode/724. Find Pivot Index/solution1.py
class Solution: def pivotIndex(self, nums: List[int]) -> int: l, r = 0, sum(nums) for i in range(len(nums)): r -= nums[i] if l == r: return i l += nums[i] return -1
RNCan/WeatherBasedSimulationFramework
wbsModels/IPSTypographus/SBBColdTolerance.h
#pragma once #include <vector> #include "basic/ERMsg.h" #include "basic/utilTime.h" #include "basic/ModelStat.h" namespace WBSF { enum TSBBSuperCoolingPoint{ TMAX, P1, P2, P3, CT, LT50, PMORT, NB_SUPER_COOLING_POINT }; typedef CModelStatVectorTemplate<NB_SUPER_COOLING_POINT> CSBBSuperCoolingPointStat; ...
juanfelipe82193/opensap
sapui5-sdk-1.74.0/resources/sap/ushell/appRuntime/ui5/services/UserInfo-dbg.js
// Copyright (c) 2009-2017 SAP SE, All Rights Reserved sap.ui.define([ "sap/ushell/services/UserInfo", "sap/ushell/appRuntime/ui5/AppRuntimeService", "sap/base/Log" ], function (UserInfo, AppRuntimeService, Log) { "use strict"; function UserInfoProxy (oAdapter, oContainerInterface) { UserIn...
ckxy/part-of-hitogata
datasetsnx/bamboo/color.py
<filename>datasetsnx/bamboo/color.py import random from PIL import Image from .base_internode import BaseInternode from torchvision.transforms.functional import normalize, to_grayscale, adjust_brightness, adjust_contrast, adjust_saturation, adjust_hue __all__ = ['BrightnessEnhancement', 'ContrastEnhancement', 'Satura...
chpatel3/coherence-cpp-extend-client
src/coherence/component/net/extend/protocol/PingRequest.cpp
<filename>src/coherence/component/net/extend/protocol/PingRequest.cpp /* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ #include "private/coherence/component/net/extend/protocol/PingRequest.hpp...
dhis2/approvals-app
src/top-bar/index.js
export { TopBar } from './top-bar.js'
AlexandrPristupa/Today-I-Learned-
javascript/codesignal/sameElementsNaive.js
export const sameElementsNaive = (a, b) => { let sameElementsCounts = 0; for (let i = 0; i < a.length; i++) { for (let j = 0; j < b.length; j++) { if (a[i] === b[j]) { sameElementsCounts += 1; } } } return sameElementsCounts; }
RocketfarmAS/jrosbridge
src/test/java/edu/wpi/rail/jrosbridge/TestTopic.java
package edu.wpi.rail.jrosbridge; import static org.junit.Assert.*; import javax.json.Json; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.wpi.rail.jrosbridge.JRosbridge; import edu.wpi.rail.jrosbridge.Ros; import edu.wpi.rail.jrosbridge.Topic; import edu.wpi.rail.jrosbridge.callb...
hsanchez/vesper
src/edu/ucsc/refactor/internal/changers/RemoveMagicNumber.java
package edu.ucsc.refactor.internal.changers; import edu.ucsc.refactor.Cause; import edu.ucsc.refactor.Change; import edu.ucsc.refactor.Parameter; import edu.ucsc.refactor.Source; import edu.ucsc.refactor.internal.SourceChange; import edu.ucsc.refactor.internal.visitors.FieldDeclarationVisitor; import edu.ucsc.refactor...
stefankolb/work-core
source/class/core/testrunner/reporter/Html.js
/* ================================================================================================== Core - JavaScript Foundation Copyright 2012-2014 <NAME> ================================================================================================== */ "use strict"; /** * Reporter which produces visual HT...
zhuxinkai/python3-book-practice
beginning-python-3ed-master/Chapter15/listing15-6.py
#!/usr/bin/env python import cgi form = cgi.FieldStorage() name = form.getvalue('name', 'world') print('Content-type: text/plain\n') print('Hello, {}!'.format(name))
splhack/loam
tests/megawing/spartan6/ram/ram32.py
import magma as m from mantle.xilinx.spartan6.RAM import RAM32 from loam.boards.papiliopro import PapilioPro from loam.shields.megawing import MegaWing megawing = MegaWing(PapilioPro) megawing.Clock.on() megawing.Switch.on(8) megawing.LED.on(1) main = megawing.main() ram = RAM32(16*[0,1]) m.wire(main.SWITCH[:5], ra...
axs1088/EMRMS
src/main/java/edu/psu/sweng500/emrms/util/PersonPatientUtils.java
package edu.psu.sweng500.emrms.util; import edu.psu.sweng500.emrms.mappers.PatientDemographicsMapper; import edu.psu.sweng500.emrms.model.HName; import edu.psu.sweng500.emrms.model.HPatient; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service("personP...
EricVanEldik/openui5
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v4/photo-voltaic.js
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict'; const name = "photo-voltaic"; const pathData = "M152 0v52h-16V0h16zm88 37l12 11-37 37q-5-6-11-11zM37 48l11-11 37 37q-4 2-6.5 5T73 85zm27 88q4-29 23.5-48.5T136 64h16q35 4 54 30 15 16 18 42v16q-4 29-23.5 48.5T...
sixin-zh/kymatio_wph
example/cartoond/test_mean_bump_chunkid.py
# TEST ON GPU #import pandas as pd import numpy as np import matplotlib.pyplot as plt import scipy.optimize as opt import scipy.io as sio import torch from torch.autograd import Variable, grad from time import time import gc #---- create image without/with marks----# size=256 # --- Dirac example---# data = sio.l...
sean5470/panda3d
direct/src/interval/cConstraintInterval.h
<filename>direct/src/interval/cConstraintInterval.h /** * 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 should have received a copy of this license along * with this source code in a file ...
AndreasFagschlunger/o2xfs-xfs-api
src/test/java/at/o2xfs/xfs/api/UndeliverableMessageTest.java
<filename>src/test/java/at/o2xfs/xfs/api/UndeliverableMessageTest.java package at.o2xfs.xfs.api; import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; import org.junit.jupiter.api.Test; import at.o2xfs.common.Hex; import at.o2xfs.memory.core.Address; import at.o2xfs.memory.core.ut...
Nelsondmondragon/challenge-backend
src/test/java/com/nedacort/challengespringbackend/domain/service/UserDetailServiceTest.java
package com.nedacort.challengespringbackend.domain.service; import com.nedacort.challengespringbackend.domain.UserDto; import com.nedacort.challengespringbackend.domain.repository.UserDtoRepository; import com.nedacort.challengespringbackend.email.EmailSender; import com.nedacort.challengespringbackend.persistence.Use...
ptahchiev/jackson-dataformats-text
properties/src/test/java/com/fasterxml/jackson/dataformat/javaprop/MapParsingTest.java
package com.fasterxml.jackson.dataformat.javaprop; import java.util.Map; import com.fasterxml.jackson.databind.ObjectMapper; public class MapParsingTest extends ModuleTestBase { static class MapWrapper { public Map<String,String> map; } private final ObjectMapper MAPPER = mapperForProps(); ...
OfficialWiddin/pokeraidbot
src/main/java/pokeraidbot/jda/StartUpEventListener.java
<reponame>OfficialWiddin/pokeraidbot package pokeraidbot.jda; import main.BotServerMain; import net.dv8tion.jda.core.entities.Guild; import net.dv8tion.jda.core.entities.MessageChannel; import net.dv8tion.jda.core.entities.TextChannel; import net.dv8tion.jda.core.events.Event; import net.dv8tion.jda.core.events.ReadyE...
yslai/AliPhysics
PWGCF/FEMTOSCOPY/FemtoDream/AliFemtoDreamv0Cuts.cxx
/* * AliFemtoDreamv0Cuts.cxx * * Created on: Dec 12, 2017 * Author: gu74req */ #include "AliFemtoDreamv0Cuts.h" #include "TDatabasePDG.h" #include "AliLog.h" ClassImp(AliFemtoDreamv0Cuts) AliFemtoDreamv0Cuts::AliFemtoDreamv0Cuts() : fHistList(), fMCHistList(), fMCHist(nullptr), fHist(n...
FGtatsuro/myatcoder
beginner_contest/141/B.py
s = input() import sys for i in range(len(s)): if (i + 1) % 2 == 1 and s[i] not in 'RUD': print('No') sys.exit(0) if (i + 1) % 2 == 0 and s[i] not in 'LUD': print('No') sys.exit(0) print('Yes')
fkolacek/FIT-VUT
bp-revok/ruby/lib/ruby/gems/2.1.0/gems/rkelly-1.0.7/test/test_runtime.rb
require File.dirname(__FILE__) + "/helper" class RuntimeTest < Test::Unit::TestCase def setup @runtime = RKelly::Runtime.new end def test_call_function @runtime.execute("function foo(a) { return a + 2; }") assert_equal(12, @runtime.call_function("foo", 10)) end end
carldea/jenetics
jenetics/src/main/java/io/jenetics/DoubleChromosome.java
<filename>jenetics/src/main/java/io/jenetics/DoubleChromosome.java /* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ <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 cop...
ingchips/SDK_SOURCE
examples/mesh-light/src/profile.h
#ifndef _PROFILESTASK_H_ #define _PROFILESTASK_H_ #include <stdint.h> uint32_t setup_profile(void *data, void *user_data); #endif
cleberecht/singa
singa-mathematics/src/main/java/bio/singa/mathematics/matrices/SymmetricMatrix.java
package bio.singa.mathematics.matrices; import bio.singa.mathematics.exceptions.IncompatibleDimensionsException; import bio.singa.mathematics.exceptions.MalformedMatrixException; import bio.singa.mathematics.vectors.RegularVector; /** * The {@code SymmetricMatrix} implementation only stores a the main diagonal and ...
vadkasevas/BAS
Engine/idatabaseschemaeditor.cpp
#include "idatabaseschemaeditor.h" #include "every_cpp.h" namespace BrowserAutomationStudioFramework { IDatabaseSchemaEditor::IDatabaseSchemaEditor(QObject *parent) : QObject(parent) { } }
FringeY/alibabacloud-console-design
packages/xconsole-effect-creator/config/config.js
module.exports = { presets: [ [ '@alicloud/console-toolkit-preset-wind-component', { moduleName: '@alicloud/xconsole-effect-creator', }, ], ], };
NuolanNuolan/IPAPatch-master
Assets/header/MMKSMusicPlayer.h
<gh_stars>1-10 // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 29 2017 23:22:24). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "MMService.h" #import "IRemoteControlMusicPlayerExt-Protocol.h" #import "KSAudioLogProtocol-Protocol.h" #import "KSAu...
ckamtsikis/cmssw
DQM/BeamMonitor/python/BeamMonitor_Pixel_cff.py
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer dqmBeamMonitor = DQMEDAnalyzer("BeamMonitor", monitorName = cms.untracked.string('BeamMonitor'), beamSpot = cms.untracked.InputTag('offlineBeamSpot'), ## hltOffl...
xiaowei20152012/LeeMedia
YouMedia/app/src/main/java/com/umedia/android/ui/activities/tageditor/AbsTagEditorActivity.java
package com.umedia.android.ui.activities.tageditor; import android.app.Activity; import android.app.Dialog; import android.app.SearchManager; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.MediaScannerConnection...
PRX/activewarehouse
test/setup/salesperson_hierarchy_bridge_populate.rb
<reponame>PRX/activewarehouse ETL::Engine.process(File.dirname(__FILE__) + '/salesperson_hierarchy_bridge.ctl')
uk-gov-mirror/dvsa.cvs-auto-mobile-app
src/main/java/pages/AdvisoryDetailsPage.java
<filename>src/main/java/pages/AdvisoryDetailsPage.java package pages; import org.openqa.selenium.WebElement; public class AdvisoryDetailsPage extends BasePage { public static final String ADVISORY_DETAILS_PAGE_ID = "Advisory details"; public static final String ADD_NOTES_TEXT_FIELD_ID = "Add Notes"; publ...
rsaihe/Storage-Network
src/main/java/com/lothrazar/storagenetwork/registry/ClientEventRegistry.java
package com.lothrazar.storagenetwork.registry; import org.lwjgl.glfw.GLFW; import com.mojang.blaze3d.platform.InputConstants; import net.minecraft.client.KeyMapping; import net.minecraftforge.client.settings.KeyConflictContext; public class ClientEventRegistry { public static final KeyMapping INVENTORY_KEY = new K...
xianglesong/learning-hbase
src/java/org/apache/hadoop/hbase/master/ProcessRegionClose.java
/** * Copyright 2008 The Apache Software Foundation * * 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...
riag23/AdaptiveCards
source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRQuickReplyMultilineView.h
<filename>source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRQuickReplyMultilineView.h // // ACRQuickReplyMultilineView // ACRQuickReplyMultilineView.h // // Copyright © 2018 Microsoft. All rights reserved. // #import "ACRButton.h" #import "ACRTextView.h" #import <UIKit/UIKit.h> @protocol ACRIQuickReply - (ACR...
vaginessa/ServeStream
app/src/main/java/net/sourceforge/servestream/utils/SleepTimerDialog.java
<filename>app/src/main/java/net/sourceforge/servestream/utils/SleepTimerDialog.java /* * ServeStream: A HTTP stream browser/player for Android * Copyright 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 o...
apollo13/lightbus
lightbus/utilities/django.py
<reponame>apollo13/lightbus<filename>lightbus/utilities/django.py from django import db def uses_django_db(f): """Ensures Django discards any broken database connections Django normally cleans up connections once a web request has been processed. However, here we are not serving web requests and are ...
Greedylightning/LeetCode_Second
String/ValidPalindrome.java
<reponame>Greedylightning/LeetCode_Second<filename>String/ValidPalindrome.java<gh_stars>0 class ValidPalindrome{ public boolean isPalindrome(String s) { if(s == null || s.length() == 0) return true; StringBuffer temp = new StringBuffer(); for(char x : s.toCharArray()){ if((x >= ...
palfibeni/turing-with-two-stack-server
src/main/java/com/palfib/turingWithTwoStack/entity/turing/TuringTape.java
<filename>src/main/java/com/palfib/turingWithTwoStack/entity/turing/TuringTape.java package com.palfib.turingWithTwoStack.entity.turing; import com.palfib.turingWithTwoStack.entity.Condition; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.ToString; import java.util.ArrayDeque; import s...
leopardoooo/cambodia
ycsoft-lib/src/main/java/com/ycsoft/beans/prod/PProdTariffDisct.java
<filename>ycsoft-lib/src/main/java/com/ycsoft/beans/prod/PProdTariffDisct.java /** * PProdTariffDisct.java 2010/07/06 */ package com.ycsoft.beans.prod; import java.io.Serializable; import java.util.Date; import com.ycsoft.beans.base.OptrBase; import com.ycsoft.commons.constants.DictKey; import com.ycsof...
FMMazur/skift
userspace/libraries/libsystem/plugs/__plug_memory.cpp
<gh_stars>1-10 #include <abi/Syscalls.h> #include <libsystem/Result.h> #include <libsystem/system/Memory.h> Result memory_alloc(size_t size, uintptr_t *out_address) { return hj_memory_alloc(size, out_address); } Result memory_free(uintptr_t address) { return hj_memory_free(address); } Result memory_include(...
onap/msb-apigateway
apiroute/apiroute-service/src/main/java/org/onap/msb/apiroute/wrapper/util/RegExpTestUtil.java
/******************************************************************************* * Copyright 2016-2017 ZTE, Inc. and others. * * 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://w...
Andreas237/AndroidPolicyAutomation
ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/comscore/utils/Base64Coder.java
<filename>ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/comscore/utils/Base64Coder.java // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.comscore.utils; public class Base64Coder { privat...
manuel103/Healthy-Mind
Android/Healthy Mind/app/src/main/java/com/example/healthymind/mvp/Presenter.java
package com.example.healthymind.mvp; public interface Presenter<V extends BaseMvpView> { void attachView(V mvpView); void detachView(); }
CEOALT1/RefindPlusUDK
StdLib/LibC/Stdio/fgetstr.c
/* Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at http://openso...
MrBattary/darkest-castle
include/game/systems/elementsInterfaceSystem/messageBoxes/LeaderboardBox.h
<reponame>MrBattary/darkest-castle // // Created by Battary on 29.07.2020. // #pragma once #include <fstream> #include <map> #include <string> #include <utility> // Internal templates #include "../IMessageBoxElement.h" // Entities #include "game/entities/PlayerEntity.h" // Components #include "game/components/Statisti...
zjzh/chainer
tests/onnx_chainer_tests/functions_tests/test_rnn.py
import chainer import chainer.functions as F import chainer.links as L from chainer import testing import numpy as np from onnx_chainer import onnx_helper from onnx_chainer.testing import input_generator from onnx_chainer_tests.helper import ONNXModelTest @testing.parameterize( {'n_layers': 1, 'name': 'n_step_gr...
LorianeE/connect
boot/keys.js
/* global process */ /** * Module dependencies */ var AnvilConnectKeys = require('anvil-connect-keys') /** * Create a keypair client */ var keygen = new AnvilConnectKeys() /** * Attempt to load the key pairs */ var keys try { keys = keygen.loadKeyPairs() } catch (e) {} /** * If the keypairs don't exist, t...
UniversalAvenue/redux-lager
src/reducer.js
import { combineReducers } from 'redux'; import meta from './meta-reducer'; import entities from './entities-reducer'; import result from './result-reducer'; import pagination from './pagination-reducer'; export default combineReducers({ meta, entities, result, pagination, });
mplibunao/auth
test/external-policy.js
<filename>test/external-policy.js 'use strict' const t = require('tap') const Fastify = require('fastify') const mercurius = require('mercurius') const mercuriusAuth = require('..') const schema = ` type Message { title: String! public: String! private: String } type Query { add(x: Int, y: Int)...
omegachyll/wg-manager
wg_dashboard_backend/script/obfuscate/obfs4.py
from script.obfuscate import BaseObfuscation import re class ObfuscateOBFS4(BaseObfuscation): def __init__(self): super().__init__( binary_name="obfs4proxy", binary_path="/usr/bin/obfs4proxy", algorithm="obfs4" ) self.ensure_installed() def ensure...
ryleykimmel/brandywine
game/src/main/java/me/ryleykimmel/brandywine/game/model/player/PlayerCredentials.java
<gh_stars>1-10 package me.ryleykimmel.brandywine.game.model.player; import com.google.common.base.MoreObjects; import java.util.Arrays; import me.ryleykimmel.brandywine.common.util.NameUtil; /** * Represents the credentials of a Player. */ public final class PlayerCredentials { /** * The user id. */ priv...
zcgitzc/qaplus
src/main/java/com/qaplus/constant/ErrorCode.java
package com.qaplus.constant; public enum ErrorCode { SUCCESS("SUCCESS", "操作成功"), NOT_LOGIN("NOT_LOGIN", "没有登陆"), FAUILURE("FAUILURE", "操作失败"), PAGE_PARAM_NOT_FOUND("PAGE_PARAM_NOT_FOUND", "分页参数未找到"), NOT_DATA_FOUND("NOT_DATA_FOUND", "数据不存在"), NO_ATTACHMENT("NO_ATTACHMENT", "不好意思,没有附件"), LOGIN_FAIL("LOGIN...
PeachOS/zserio
compiler/extensions/java/src/zserio/emit/java/ConstEmitter.java
package zserio.emit.java; import zserio.ast.ConstType; import zserio.emit.common.ZserioEmitException; import zserio.tools.Parameters; class ConstEmitter extends JavaDefaultEmitter { public ConstEmitter(Parameters extensionParameters, JavaExtensionParameters javaParameters) { super(extensionParameters,...
hmcts/prl-ccd-definitions
test/end-to-end/pages/DOScreens/ApplicantsFamily.js
<gh_stars>0 const I = actor(); module.exports = { fields: { submit: 'button[type="submit"]' }, async triggerEvent() { await I.triggerEvent('Applicant’s family'); }, async applicantFamily() { const retryCount = 3; await I.waitForText('Does the applicant have any children, have parental responsibi...
georgianapopescu/Redmine
apps/redmine/htdocs/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb
<filename>apps/redmine/htdocs/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration def self.up add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status end def self.down remove...
Luo1Xiong/glide
library/src/main/java/com/bumptech/glide/load/engine/prefill/BitmapPreFiller.java
<reponame>Luo1Xiong/glide package com.bumptech.glide.load.engine.prefill; import android.graphics.Bitmap; import androidx.annotation.VisibleForTesting; import com.bumptech.glide.load.DecodeFormat; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.engine.cache.MemoryCache; ...
TsvetanMilanov/TelerikAcademyHW
06_JavaScript/07_UsingObjects/UsingObjects/03.DeepCopy/DeepCopy.js
function deepCopy(objectToCopy) { var newObject = {}; for (var prop in objectToCopy) { if (objectToCopy[prop] instanceof Object) { newObject[prop] = deepCopy(objectToCopy[prop]); } else { newObject[prop] = objectToCopy[prop]; } } return newObject...
NouemanKHAL/steps
steps/istio/proxy-status/main.go
<gh_stars>0 package main import ( "fmt" envconf "github.com/caarlos0/env/v6" jsonFormatter "github.com/stackpulse/steps-sdk-go/formats/json" "github.com/stackpulse/steps-sdk-go/parsers" "github.com/stackpulse/steps-sdk-go/step" "github.com/stackpulse/steps/istio/base" ) const proxyStatusArgument = "proxy-statu...
cserverpaasshow/smart-OA
src/main/web/cn/com/smart/web/dao/impl/CusIndexMinWinDao.java
<reponame>cserverpaasshow/smart-OA package cn.com.smart.web.dao.impl; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.stereotype.Repository; import com.mixsmart.utils.StringUtils; import cn.com.smart.dao.impl.BaseDaoImpl; import cn.com.smart.exception.DaoException; ...
cf-unik/gorump
go1.5/test/fixedbugs/bug088.dir/bug0.go
// Copyright 2009 The Go 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 bug0 var V0 func() int; var V1 func() (a int); var V2 func() (a, b int);
hufan520xuanxuan/web-all-controller
res/app/func/funcsConfig/comment/index.js
require('./comment.css') module.exports = angular.module('ccp.func-autocomment', [ require('stf/common-ui').name, require('stf/admin-mode').name, require('./setting').name, require('../logs').name, require('./resource-setting').name ]) .directive('autoComment', require('./comment-directive'))
semper24/R-Type
engine/include/Storage.hpp
/* ** EPITECH PROJECT, 2020 ** B-CPP-501-NAN-5-1-rtype-arthur.bertaud ** File description: ** Storage.hpp */ #ifndef STORAGE_HPP_ #define STORAGE_HPP_ #include "IStorage.hpp" #include "EntityManager.hpp" #include <unordered_map> #include <memory> #include <iostream> namespace ECS { template <typename T> clas...
tank-dev/tank
dist/templates/src/MainWorld.hpp
#ifndef MAINWORLD_HPP #define MAINWORLD_HPP #include <Tank/System/World.hpp> class MainWorld : public tank::World { public: MainWorld(); }; #endif //MAINWORLD_HPP
hdpolover/ybb-scholarship-web
assets/plugin/ckeditor/plugins/pastefromlibreoffice/filter/default.js
/** * @license Copyright (c) 2003-2021, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /* globals CKEDITOR */ ( function() { 'use strict'; var pastetools = CKEDITOR.plugins.pastetools, commonFilter = pastetools.filters.common, S...
Gaoyc1/Aspose.Diagram
Examples/src/main/java/com/aspose/diagram/examples/Comments/AddPageLevelCommentInVisio.java
package com.aspose.diagram.examples.Comments; import com.aspose.diagram.Diagram; import com.aspose.diagram.SaveFileFormat; import com.aspose.diagram.examples.Utils; import com.aspose.diagram.examples.Diagrams.CreateDiagram; public class AddPageLevelCommentInVisio { public static void main(String[] args) throws Exce...
xthecoolboy/Atlantav2
commands/disable-group.js
const Discord = require("discord.js"); const config = require("../data/config.json") quickdb = require('quick.db'), errors = require('../utils/errors.js'); quickdb.init('./data/atlanta.sqlite'); var servers_data = new quickdb.table('serversdata'); module.exports.run = async (message, args, bot, emotes, data) => { ...
VancySavoki/heaven
src/main/java/com/github/houbb/heaven/response/exception/CommonRuntimeException.java
package com.github.houbb.heaven.response.exception; /** * 通用的运行时异常 * @author binbin.hou * @since 0.0.5 */ public final class CommonRuntimeException extends RuntimeException { public CommonRuntimeException() { } public CommonRuntimeException(String message) { super(message); } public ...
scana/ok-gradle
plugin/src/main/java/me/scana/okgradle/internal/dsl/parser/android/SigningConfigsDslElement.java
/* * Copyright (C) 2016 The Android Open Source Project * * 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 app...
Releed/Construct-2
plugins/@Circle Menu/circle.js
<reponame>Releed/Construct-2 ;(function($, window, document, undefined) { var pluginName = 'circleMenu', defaults = { angle: { start: 0, end: 90 }, circle_radius: 80, delay: 1000, depth: 0, item_diameter: 30, speed: 500, ste...
AlexRogalskiy/DevArtifacts
master/examples-4/examples/chapter08/addressbook/main.cpp
<reponame>AlexRogalskiy/DevArtifacts<filename>master/examples-4/examples/chapter08/addressbook/main.cpp #include <QtGui> #include "addressbookmodel.h" int main( int argc, char* argv[] ) { QApplication app( argc, argv ); // Open the addressbook file in the working directory QFile file("addressbook.csv"); if (...
kamotos/aws-sdk-go-mocks
service/codeguruprofilermock/mock.go
<reponame>kamotos/aws-sdk-go-mocks // Code generated by MockGen. DO NOT EDIT. // Source: github.com/aws/aws-sdk-go/service/codeguruprofiler/codeguruprofileriface (interfaces: CodeGuruProfilerAPI) // Package codeguruprofilermock is a generated GoMock package. package codeguruprofilermock import ( context "context" r...
Kortemme-Lab/benchmark_set_construct
benchmark_constructor/__init__.py
from . import structure_collectors from . import filters from . import file_normalizers from . import job_distributors from . import flow_control
mengxy/swc
crates/swc_ecma_codegen/tests/test262/7be9be4918d25634.js
<reponame>mengxy/swc<gh_stars>1000+ --arguments;
xiaojie19852006/incubator-linkis
linkis-public-enhancements/linkis-publicservice/linkis-instance-label/linkis-instance-label-server/src/main/java/org/apache/linkis/instance/label/vo/InsPersistenceLabelSearchVo.java
<reponame>xiaojie19852006/incubator-linkis<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under...
1stmateusz/motech
platform/mds/mds/src/test/java/org/motechproject/mds/it/reposistory/AllEntitiesContextIT.java
<reponame>1stmateusz/motech package org.motechproject.mds.it.reposistory; import org.junit.Before; import org.junit.Test; import org.motechproject.mds.it.BaseIT; import org.motechproject.mds.domain.Entity; import org.motechproject.mds.domain.Lookup; import org.motechproject.mds.dto.EntityDto; import org.motechproject....
jeske/csla
pysrc/message_db.py
import os, sys, string, re, time import marshal import subprocess from clearsilver import odb, hdfhelp, odb_sqlite3 from clearsilver.log import * import neo_cgi, neo_util import email_message from mimelib import Message, Generator, Parser, date import rfc822 import SwishE import search_help eNoMessage = "eNoMessa...
peterneely/launch
src/main/src/app/browser/types.js
export const SETTINGS_KEY = 'launchSettings';
delphi122/knowledge_planet
luogu/P1827.cpp
// // Created by yangtao on 20-5-15. // #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <map> using namespace std; string s1, s2; map<char, int> mm; void dfs(int p1, int p2, int q1, int q2) { if(q1 > q2 || p1 > p2) return; char c = s2[q1]; int p = mm[c]; int l1 = p...
iiag/iiag-legacy
src/introspection.c
<filename>src/introspection.c<gh_stars>1-10 // // introspection.c // #include <string.h> #include <stdio.h> #include "introspection.h" #include "log.h" #ifndef WITH_INTROSPECTION void init_introspection(const char *prg_file) { info("Introspection not enabled; no symbol information will be shown."); debug("Compile ...
wiedi/rspamd
src/lmtp_proto.c
<reponame>wiedi/rspamd /* * Copyright (c) 2009-2012, <NAME> * 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 must retain the above copyright * no...
crcrewso/qatrackplus
qatrack/reports/service_log/due_dates.py
<reponame>crcrewso/qatrackplus from django.conf import settings from django.utils import timezone from django.utils.safestring import mark_safe from django.utils.text import slugify from django.utils.translation import gettext as _ from django.utils.translation import gettext_lazy as _l from qatrack.qatrack_core.dates...
gaigeshen/wechat-mp
src/main/java/me/gaigeshen/wechat/mp/message/MusicReplyMessage.java
package me.gaigeshen.wechat.mp.message; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.AllArgsConstructor; /** * @author gaigeshen */ @XStreamAlias("xml") public class MusicReplyMessage extends AbstractReplyMessage { @XStreamAlias(("Music")) private Music music; @AllArgsConstructor ...
chaiwanlin/tp
src/main/java/seedu/edrecord/model/assignment/Weightage.java
<filename>src/main/java/seedu/edrecord/model/assignment/Weightage.java<gh_stars>0 package seedu.edrecord.model.assignment; import static java.util.Objects.requireNonNull; import static seedu.edrecord.commons.util.AppUtil.checkArgument; /** * Represents an Assignment's weightage in edrecord. * Guarantees: immutable;...
aduispace/Leetcode-1
leetcode-algorithms/src/main/java/com/stevesun/solutions/LargestBSTSubtree.java
<reponame>aduispace/Leetcode-1 package com.stevesun.solutions; import com.stevesun.common.classes.TreeNode; public class LargestBSTSubtree { public int largestBSTSubtree(TreeNode root) { if(root == null) return 0; if(isBST(root)) return getNodes(root); return Math.max(find(root.left), fin...
DataCanvasIO/StreamTau2
streamtau_expr/src/main/java/com/zetyun/streamtau/expr/op/AndOp.java
/* * Copyright 2020 Zetyun * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
mactkg/CotEditor
CotEditor/Sources/CESyntaxDictionaryKeys.h
// // CESyntaxDictionaryKeys.h // CotEditor // // Created by imanishi on 3/21/16. // Copyright © 2016 CotEditor Project. All rights reserved. // #import <Foundation/Foundation.h> @interface CESyntaxDictionaryKeys : NSString @end
gprinc/RoundTwo
Kernel/buddyMemManager.c
// // Created by juanfra on 12/11/16. // #include "include/buddyMemManager.h" #include "include/videoDriver.h" #include "include/lib.h" #include "include/mutex.h" #include "include/scheduler.h" #define NULL ((void*)0) /* Initializing heap*/ uint16_t recursiveMark(int index); /* Modifying Heap */ void* addNblocks(ui...
tycho/arc
source/Interface/laser_zap.cpp
/* * ARC++ * * Copyright (c) 2007-2008 <NAME>. * * Licensed under the New BSD License. * */ #include "universal_include.h" #include "App/app.h" #include "Game/game.h" #include "Game/collide.h" #include "Graphics/graphics.h" #include "Interface/interface.h" #include "Interface/laser_zap.h" static const SDL_...
kazuyaujihara/rdkit
Code/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogUtils.cpp
<gh_stars>1000+ // // Copyright (C) 2018-2021 <NAME> and other RDKit contributors // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include...
cjdb/NanoRange
include/nanorange/algorithm/partition_point.hpp
<reponame>cjdb/NanoRange // nanorange/algorithm/partition_point.hpp // // Copyright (c) 2018 <NAME> (<EMAIL>le at gmail dot com) // 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) // Uses code from CMCSTL2 // Copyri...
uwplse/legato
test/edu/washington/instrumentation/analysis/test/TestSynchronizationHavoc.java
<reponame>uwplse/legato package edu.washington.instrumentation.analysis.test; import java.util.Set; import org.testng.annotations.Test; import edu.washington.cse.instrumentation.analysis.EverythingIsInconsistentException; @Test(groups="legatoTests") public class TestSynchronizationHavoc extends AbstractLegatoTest {...
h0tbird/clusterawsadm
providers/terraform-provider-aws/aws/resource_aws_ec2_local_gateway_route.go
<gh_stars>0 package aws import ( "fmt" "log" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) const ( ec2LocalGatewayRouteEventualConsistencyT...
5l1v3r1/0-orchestrator
api/ays-client/Event.go
package client import ( "gopkg.in/validator.v2" ) type Event struct { Actions []string `json:"actions" validate:"nonzero"` Channel string `json:"channel" validate:"nonzero"` Command string `json:"command" validate:"nonzero"` Tags []string `json:"tags" validate:"nonzero"` } func (s Event) Validate() error...
lxqfirst/bi-platform
designer/src/main/java/com/baidu/rigel/biplatform/ma/report/query/QueryContext.java
/** * Copyright (c) 2014 Baidu, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...