repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
mkitzan/atlas
test/atlas_math_solvers.cpp
#include <atlas/core/Float.hpp> #include <atlas/math/Solvers.hpp> #include <catch2/catch.hpp> using namespace atlas::math; using atlas::core::areEqual; TEST_CASE("Testing quadratic solver", "[math]") { // x^2 - 1 = 0. // Two roots: 1, -1. { std::vector<double> coefficients{1.0, 0.0, -1.0}; ...
anirban59/workcraft
workcraft/WorkcraftCore/src/org/workcraft/exceptions/LayoutException.java
<reponame>anirban59/workcraft package org.workcraft.exceptions; @SuppressWarnings("serial") public class LayoutException extends RuntimeException { public LayoutException(String message) { super(message); } }
fenz-org/mlperf_inference_results_v0.7
open/DellEMC/code/ssd-mobilenet/xilinx/math/include/vitis/ai/math.hpp
/* * Copyright 2019 Xilinx 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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
mldn/Mycat-openEP
mycat-ep-server/mycat-ep-icegrid/src/main/java/io/mycat/ep/ice/package-info.java
/** * Created by Liwh on 2015/11/3. */ package io.mycat.ep.ice;
AutomationConsultant/webpagetest
agent/browser/ie/pagetest/PageSpeed/include/pagespeed/core/string_util.h
// Copyright 2010 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
a358003542/galaxy_blizzard_plugin
tasks.py
import os import sys import json import tempfile from shutil import rmtree from distutils.dir_util import copy_tree from invoke import task from galaxy.tools import zip_folder_to_file with open(os.path.join("src", "manifest.json"), "r") as f: MANIFEST = json.load(f) if sys.platform == 'win32': DIST_DIR = os...
jbrandwood/kickc
src/main/java/dk/camelot64/kickc/passes/PassNAssertStructMembers.java
<gh_stars>1-10 package dk.camelot64.kickc.passes; import dk.camelot64.kickc.model.CompileError; import dk.camelot64.kickc.model.Program; import dk.camelot64.kickc.model.iterator.ProgramValueIterator; import dk.camelot64.kickc.model.symbols.StructDefinition; import dk.camelot64.kickc.model.symbols.Variable; import dk.c...
FranciscoKnebel/ufrgs-projects
neander/neanderImplementation/isim/neandertb_isim_par.exe.sim/simprim/a_3936907874_4055128042.c
<reponame>FranciscoKnebel/ufrgs-projects /**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / ...
felixchr/leetcode
p0973_k_point_near_origin.py
from typing import List class Solution: def kClosest(self, points: List[List[int]], K: int) -> List[List[int]]: result = sorted(points, key=lambda p: p[0]*p[0] + p[1]*p[1])[:K] return result def test_solution(): s = Solution() test_cases = (([[1,3],[-2,2]], 1, [[-2, 2]]), ...
neal-siekierski/seal-tk
sealtk/core/test/TestTrackModel.hpp
/* This file is part of SEAL-TK, and is distributed under the OSI-approved BSD * 3-Clause License. See top-level LICENSE file or * https://github.com/Kitware/seal-tk/blob/master/LICENSE for details. */ #ifndef sealtk_core_test_TestTrackModel_hpp #define sealtk_core_test_TestTrackModel_hpp #include <sealtk/core/test...
Componolit/android_external_vixl
test/aarch32/traces/assembler-cond-rd-operand-imm16-t32-movt.h
// Copyright 2015, VIXL authors // 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 notice, // this list of conditions ...
thanhdinhit/source_Example_ReactJS
src/containers/Login/ChangePasswordContainer.js
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as authenticateActions from '../../actions/authenticateActions'; import ChangePasswordComponent from '../../components/pages/Login/ChangePassword'; import * as globalAction from '../../actions/globalAc...
mindspore-ai/models
research/cv/U-GAT-IT/postprocess.py
<gh_stars>10-100 # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
AdamCyffka/cpp-pool-tek2
cpp_rush2_2019/Toy.hpp
<gh_stars>0 /* ** EPITECH PROJECT, 2020 ** Toy.hpp ** File description: ** Toy.hpp */ #ifndef TMP_RUSH_TOY_HPP #define TMP_RUSH_TOY_HPP #include "Object.hpp" class Toy : public Object { public: // Constructor and destructor Toy(); Toy(const Toy &other); virtual ~Toy(); // Setters and getters...
Kline-/nzbhydra2
tests/src/test/java/org/nzbhydra/tests/ScreenshotTakingTestExecutionListener.java
/* * (C) Copyright 2017 TheOtherP (<EMAIL>) * * 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...
fkleedorfer/webofneeds
webofneeds/won-node/src/main/java/won/node/service/persistence/DataDerivationService.java
package won.node.service.persistence; import java.util.Optional; import org.apache.jena.query.Dataset; import org.apache.jena.query.DatasetFactory; import org.apache.jena.rdf.model.Model; import org.apache.jena.rdf.model.ModelFactory; import org.apache.jena.rdf.model.Resource; import org.slf4j.Logger; import org.slf4...
swember/give-me-poc
app/cells/web/dashboard/base_status_button.rb
<gh_stars>10-100 # frozen_string_literal: true module Web module Dashboard # This cell renders status user class BaseStatusButton < BaseCell def link_to_status(status: model.state, url: url_status, confirm: nil) @status = status options = { method: :put }.merge(class_button).merge(tabin...
apache/incubator-taverna-server
taverna-server-unix-forker/src/main/java/org/apache/taverna/server/unixforker/Forker.java
<reponame>apache/incubator-taverna-server /* */ package org.apache.taverna.server.unixforker; /* * 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 A...
ScalablyTyped/SlinkyTyped
w/wordpress__api-fetch/src/main/scala/typingsSlinky/wordpressApiFetch/mod/Schema/BaseType.scala
<filename>w/wordpress__api-fetch/src/main/scala/typingsSlinky/wordpressApiFetch/mod/Schema/BaseType.scala package typingsSlinky.wordpressApiFetch.mod.Schema import typingsSlinky.std.Record import typingsSlinky.wordpressApiFetch.anon.Addnew import typingsSlinky.wordpressApiFetch.anon.Author import typingsSlinky.wordpre...
k-czajka/fh
fhCoreLite/fhPersistenceLite/src/main/java/pl/fhframework/fhPersistence/snapshots/model/SnapshotEmObjectState.java
package pl.fhframework.fhPersistence.snapshots.model; /** * @author <NAME> */ public enum SnapshotEmObjectState { NoChange, Persisted, Removed }
tony-jang/mongosh
packages/java-shell/src/test/resources/literal/float.js
<reponame>tony-jang/mongosh<filename>packages/java-shell/src/test/resources/literal/float.js // command checkResultClass 0.5
2011master/spreadDemo-common
spreadDemo-common/src/main/java/pattern/factory/simple/service/HistogramChart.java
<reponame>2011master/spreadDemo-common<filename>spreadDemo-common/src/main/java/pattern/factory/simple/service/HistogramChart.java package pattern.factory.simple.service; public class HistogramChart implements Chart { @Override public void display() { System.out.println("this is HIstogramChart"); }...
jonasdenis/project-board
backend/project-board/src/main/java/de/adesso/projectboard/base/exceptions/UserNotFoundException.java
<filename>backend/project-board/src/main/java/de/adesso/projectboard/base/exceptions/UserNotFoundException.java<gh_stars>1-10 package de.adesso.projectboard.base.exceptions; import lombok.NoArgsConstructor; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @Res...
thanujalk/carbon-identity
components/openid/org.wso2.carbon.identity.provider/src/main/java/org/wso2/carbon/identity/provider/saml/SAML2TokenBuilder.java
/* * Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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...
ReyhanPatria/hibernate-reactive
hibernate-reactive-core/src/main/java/org/hibernate/reactive/id/impl/SequenceReactiveIdentifierGenerator.java
/* Hibernate, Relational Persistence for Idiomatic Java * * SPDX-License-Identifier: Apache-2.0 * Copyright: Red Hat Inc. and Hibernate Authors */ package org.hibernate.reactive.id.impl; import org.hibernate.boot.model.relational.QualifiedName; import org.hibernate.dialect.Dialect; import org.hibernate.engine.jdbc...
metaborg/spoofax-intellij
src/main/java/org/metaborg/intellij/idea/parsing/annotations/MetaborgSourceAnnotationInfo.java
<filename>src/main/java/org/metaborg/intellij/idea/parsing/annotations/MetaborgSourceAnnotationInfo.java<gh_stars>1-10 /* * Copyright © 2015-2016 * * This file is part of Spoofax for IntelliJ. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
Testiduk/gitlabhq
lib/gitlab/background_migration/update_vulnerabilities_to_dismissed.rb
# frozen_string_literal: true module Gitlab module BackgroundMigration # rubocop: disable Style/Documentation class UpdateVulnerabilitiesToDismissed def perform(project_id) end end end end Gitlab::BackgroundMigration::UpdateVulnerabilitiesToDismissed.prepend_mod_with('Gitlab::BackgroundMig...
LaudateCorpus1/ccs-pycalendar
src/pycalendar/icalendar/itipdefinitions.py
## # Copyright (c) 2007-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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
cyberbibby/UnrealGDK
SpatialGDK/Source/SpatialGDK/Public/Interop/RPCs/RPCStore.h
<filename>SpatialGDK/Source/SpatialGDK/Public/Interop/RPCs/RPCStore.h // Copyright (c) Improbable Worlds Ltd, All Rights Reserved #pragma once #include "Interop/Connection/SpatialGDKSpanId.h" #include "Schema/RPCPayload.h" #include "SpatialConstants.h" #include "SpatialView/EntityComponentId.h" DECLARE_DELEGATE_RetV...
matthiasdiener/radeon_compute_profiler
Src/HSAFdnCommon/HSAAgentIterateReplacer.cpp
<reponame>matthiasdiener/radeon_compute_profiler //============================================================================== // Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. /// \author AMD Developer Tools Team /// \file /// \brief This file contains a class to replace a user-specified agen...
reddcoin-project/ReddConnect
src/players/admin.py
<reponame>reddcoin-project/ReddConnect<gh_stars>1-10 # # This sets up how models are displayed # in the web admin interface. # from django import forms #from django.db import models from django.conf import settings from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin #from ...
delgadofarid/djl
api/src/main/java/ai/djl/training/initializer/ConstantInitializer.java
<filename>api/src/main/java/ai/djl/training/initializer/ConstantInitializer.java /* * Copyright 2020 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 i...
npocmaka/Windows-Server-2003
base/hals/halia64/ia64/xxstubs.c
<gh_stars>10-100 // /*++ Copyright (c) 1991 Microsoft Corporation Module Name: stubs.c Abstract: This implements the HAL routines which don't do anything on IA64. Author: <NAME> (jvert) 11-Jul-1991 Revision History: --*/ #include "halp.h" VOID HalSaveState( VOID ...
wiechula/AliPhysics
PWGDQ/reducedTree/AliReducedVarCut.cxx
/* *********************************************************** Implementation of AliReducedVarCut class. Contact: <EMAIL> 2016/09/07 ********************************************************* */ #include <iostream> using std::cout; using std::endl; #ifndef ALIREDUCEDVARCUT_H #include "AliReducedVarCut.h" #endi...
redhatanalytics/oshinko-cli
rest/bkp/deploymentconfigs_test.go
<reponame>redhatanalytics/oshinko-cli package unittest import ( "gopkg.in/check.v1" kapi "k8s.io/api/core/v1" api "github.com/openshift/api/apps/v1" "github.com/radanalyticsio/oshinko-cli/core/clusters/deploymentconfigs" "github.com/radanalyticsio/oshinko-cli/core/clusters/podtemplates" ) func (s *OshinkoUnitTe...
xmakina/dscript
dist/Interpreter/Expr/VisitUnaryExpr.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Types_1 = require("../../Types"); const Utils_1 = require("../Utils"); exports.default = (interpreter) => async (expr) => { const right = await interpreter.evaluate(expr.right); switch (expr.operator.type) { case Types_1....
glow/glow2
test/speed/glow/NodeList/traversal/jquery142-tests.js
woosh.addTests('jq-142', { '$preTest': function(prevTest, nextTest) { if (!prevTest) { } }, 'NodeList#ancestors': new woosh.TimeTest(1, function() { return $('.tocline3').parents().length; }), 'NodeList#parent': new woosh.TimeTest(1, function() { return $('.tocline3').parent().length; }), ...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-iotsitewise/source/model/MetricProcessingConfig.cpp
<filename>aws-cpp-sdk-iotsitewise/source/model/MetricProcessingConfig.cpp /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iotsitewise/model/MetricProcessingConfig.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> ...
blackmoonfank/docker-rutorrent
plugins/throttle/lang/nl.js
<gh_stars>1-10 /* * PLUGIN THROTTLE * * Dutch language file. * * Author: rascalli (<EMAIL>) */ theUILang.throttles = "Beperkingen"; theUILang.throttle = "Snelheidsbeperking"; theUILang.mnuThrottle = "Zet beperking"; theUILang.mnuUnlimited = "Geen Beperking"; theUILang.channelName = "Naam"; theUILang....
aml-org/als
als-server/shared/src/main/scala/org/mulesoft/als/server/modules/workspace/TaskManagerState.scala
<filename>als-server/shared/src/main/scala/org/mulesoft/als/server/modules/workspace/TaskManagerState.scala package org.mulesoft.als.server.modules.workspace sealed abstract class TaskManagerState(state: String) object Idle extends TaskManagerState("IDLE") object ProcessingProject extends TaskManagerStat...
LDTorres/GASE-SUPERLOGOS
controllers/database.go
<filename>controllers/database.go package controllers import ( "GASE-SUPERLOGOS/models" "fmt" ) // DatabaseController operations for Countries type DatabaseController struct { BaseController } // URLMapping ... func (c *DatabaseController) URLMapping() { c.Mapping("GenerateDatabase", c.GenerateDatabase) } // Ge...
pgavlin/warp
wast/parser_script.go
package wast import "strings" func ParseScript(scanner *Scanner) (script *Script, err error) { defer func() { if v := recover(); v != nil { e, ok := v.(error) if !ok { panic(v) } err = e } }() p := parser{s: scanner} p.start() return p.parseScript(), nil } func (p *parser) parseScript() *Sc...
Jianwei-Wang/python2.7_lib
dist-packages/ibus/object.py
# vim:set et sts=4 sw=4: # # ibus - The Input Bus # # Copyright (c) 2007-2010 <NAME> <<EMAIL>> # Copyright (c) 2007-2010 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; ei...
crupest/cru
include/cru/parse/ParsingTreeNode.hpp
<gh_stars>1-10 #pragma once #include "Grammar.hpp" #include <vector> namespace cru::parse { class CRU_PARSE_API ParsingTreeNode { public: ParsingTreeNode(Symbol* symbol, Production* production); CRU_DELETE_COPY(ParsingTreeNode) CRU_DELETE_MOVE(ParsingTreeNode) // In destructor, it will delete all children....
kmeeraj/openticket
src/test/java/com/example/openticket/controller/ScheduleMovieControllerTest.java
<reponame>kmeeraj/openticket package com.example.openticket.controller; import com.example.openticket.domain.Movie; import com.example.openticket.domain.ScheduleMovie; import com.example.openticket.domain.Theater; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import ...
fengzhongye/LogiAM
agent-manager/agent-manager-extends/agent-manager-thirdpart/src/main/java/com/didichuxing/datachannel/agentmanager/thirdpart/service/extension/impl/ServiceHostManageServiceExtensionImpl.java
<filename>agent-manager/agent-manager-extends/agent-manager-thirdpart/src/main/java/com/didichuxing/datachannel/agentmanager/thirdpart/service/extension/impl/ServiceHostManageServiceExtensionImpl.java<gh_stars>100-1000 package com.didichuxing.datachannel.agentmanager.thirdpart.service.extension.impl; import com.alibab...
wulfebw/retro
cores/n64/custom/GLideN64/mupenplus/Config_mupenplus.cpp
#include "GLideN64_mupenplus.h" #include "GLideN64_libretro.h" #include <assert.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <algorithm> #include "../Config.h" #include "../GLideN64.h" #include "../GBI.h" #include "../RSP.h" #include "../Log.h" extern "C" { #include "main/util.h" #include "GL...
himdel/manageiq-ui-classic
app/assets/javascripts/controllers/live_metrics/ad_hoc_metrics_controller.js
<filename>app/assets/javascripts/controllers/live_metrics/ad_hoc_metrics_controller.js /* global miqHttpInject */ ManageIQ.angular.app.controller('adHocMetricsController', ['$http', '$window', '$timeout', 'miqService', 'metricsUtilsFactory', 'metricsHttpFactory', 'metricsConfigFactory', 'metricsParseUrlFactory', fu...
Manistein/behaviac
inc/behaviac/base/xml/xml.h
///////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Tencent is pleased to support the open source community by making behaviac available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clau...
AtlantisUnited/avrs-cabinet
src/app/pages/money/containers/ExternalTransfer.js
import React from 'react' import { connect } from 'react-redux' import { Column, Layout } from 'flex-layouts' import { Block } from 'avrs-ui/src/content' import { Steps, Step } from 'avrs-ui/src/steps' import OutputMethods from './transfer/OutputMethods' import CardMethod from './transfer/CardMethod' import BitcoinMeth...
npocmaka/Windows-Server-2003
shell/ext/gina/userlist.cpp
// -------------------------------------------------------------------------- // Module Name: UserList.cpp // // Copyright (c) 1999-2000, Microsoft Corporation // // Class that implements the user list filtering algorithm shared by winlogon // calling into msgina and shgina (the logonocx) calling into msgina...
EventWiz/Frontend
src/App.js
import React, { useEffect } from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import { connect } from 'react-redux'; import Login from './components/Login'; import { GlobalStyle } from './styles/GlobalStyle'; import EventPage from './components/Events'; import Signup from './compo...
Dnmrk4/codewars-7kyu-part2
Simple eviternity numbers.js
/* Description: An eviternity number is a number which contains only digits 8, 5 and 3, and the count of the digit 8 >= count of digit 5 >= count of digit 3. The first few eviternity numbers are as follows. [8, 58, 85, 88, 358, 385, 538, 583, 588, 835, 853, 858, 885, 888] You will be given two integers, a and b, and y...
KATO-Hiro/AtCoder
ARC/arc001-arc050/arc008/b.py
# -*- coding: utf-8 -*- def main(): from collections import Counter from math import ceil n, m = map(int, input().split()) name = input() kit = input() ans = 0 for name_i in name: if name_i not in kit: print(-1) exit() kit_count = Cou...
karensmolermiller/incubator-geode
gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/HealthMonitorImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
lamiaaMB/torN23
src/test/test_circuitmux.c
/* Copyright (c) 2013-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #define TOR_CHANNEL_INTERNAL_ #define CIRCUITMUX_PRIVATE #define RELAY_PRIVATE #include "or.h" #include "channel.h" #include "circuitmux.h" #include "relay.h" #include "scheduler.h" #include "test.h" /* XXXX duplicated fu...
zhangkn/MachOExplorer
src/libmoex/node/LoadCommand.cpp
<reponame>zhangkn/MachOExplorer // // Created by qiwei on 2017/3/29. // #ifndef MACHOEXPLORER_LOADCOMMAND_FACTORY_H #define MACHOEXPLORER_LOADCOMMAND_FACTORY_H #include "LoadCommand.h" #include "loadcmd/LoadCommand_SEGMENT.h" #include "loadcmd/LoadCommand_DYLIB.h" #include "loadcmd/LoadCommand_DYLD_INFO.h" #include "...
Sukikiroi/Noon-Clone
src/Components/Noon Clone/Checkout/CheckoutNoonClone.js
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Stepper from "@material-ui/core/Stepper"; import Step from "@material-ui/core/Step"; import StepLabel from "@material-ui/core/StepLabel"; import Button from "@material-ui/core/Button"; import Typography from "@material-ui/core/Typo...
skylark-integration/skylark-threejs-ex
src/loaders/TDSLoader.js
<filename>src/loaders/TDSLoader.js define([ "skylark-threejs", "../threex" ], function ( THREE, threex ) { 'use strict'; var TDSLoader = function (manager) { THREE.Loader.call(this, manager); this.debug = false; this.group = null; this.position = 0; this.m...
chillpert/renderer
docs/html/matrix__int3x3_8hpp.js
var matrix__int3x3_8hpp = [ [ "imat3", "matrix__int3x3_8hpp.html#ga0d26c46a0b5756bdaf8949154feaeb3f", null ], [ "imat3x3", "matrix__int3x3_8hpp.html#gab222d4b3d8005a88b4dd9ce459a44eb8", null ] ];
Tsvetelin98/Solar
net.solarnetwork.node/src/net/solarnetwork/node/setup/PluginService.java
<filename>net.solarnetwork.node/src/net/solarnetwork/node/setup/PluginService.java /* ================================================================== * PluginService.java - Apr 21, 2014 2:12:15 PM * * Copyright 2007-2014 SolarNetwork.net Dev Team * * This program is free software; you can redistribute it and/...
Ale763/PSOPV_GROEP3_CALTOOL
Cal_tool/web/cal_tool/tests.py
<reponame>Ale763/PSOPV_GROEP3_CALTOOL from django.test import TestCase # Create your tests here. print('herea')
nsnikhil/go-datastructures
functions/consumer/bi_consumer.go
<filename>functions/consumer/bi_consumer.go package consumer type BiConsumer interface { Accept(e, f interface{}) }
abserari/td
tg/tl_dialog_filter_gen.go
<reponame>abserari/td<filename>tg/tl_dialog_filter_gen.go // Code generated by gotdgen, DO NOT EDIT. package tg import ( "context" "fmt" "strings" "github.com/gotd/td/bin" ) // No-op definition for keeping imports. var _ = bin.Buffer{} var _ = context.Background() var _ = fmt.Stringer(nil) var _ = strings.Build...
aQuaYi/Hands-On-Dependency-Injection-in-Go
ch02/02_open_closed_principle/07_handler_func.go
<reponame>aQuaYi/Hands-On-Dependency-Injection-in-Go<gh_stars>100-1000 package ocp import ( "net/http" ) // a HTTP health check handler in short form func healthCheckShort(resp http.ResponseWriter, _ *http.Request) { resp.WriteHeader(http.StatusNoContent) } func healthCheckShortUsage() { http.Handle("/health", ht...
paullewallencom/spring-978-1-7883-9242-6
_src/ratings/src/main/java/com/packtpub/yummy/ratings/config/AmqpConfig.java
package com.packtpub.yummy.ratings.config; import org.springframework.cloud.stream.annotation.EnableBinding; import org.springframework.cloud.stream.annotation.Input; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.SubscribableChannel; @Configuration @EnableBinding(Am...
trespasserw/MPS
core/project/source/jetbrains/mps/reloading/CompositeClassPathItem.java
/* * Copyright 2003-2019 JetBrains s.r.o. * * 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 agre...
RazZziel/wine-dplay
dlls/wined3d/swapchain.c
<reponame>RazZziel/wine-dplay /* *IDirect3DSwapChain9 implementation * *Copyright 2002-2003 <NAME> *Copyright 2002-2003 <NAME> *Copyright 2005 <NAME> *Copyright 2007-2008 <NAME> for CodeWeavers * *This library is free software; you can redistribute it and/or *modify it under the terms of the GNU Lesser General...
angry-tony/Portus-20170827
config/initializers/swagger.rb
<reponame>angry-tony/Portus-20170827 unless Rails.env.production? protocol = ENV["PORTUS_CHECK_SSL_USAGE_ENABLED"] ? "https://" : "http://" GrapeSwaggerRails.options.url = "/api/swagger_doc.json" GrapeSwaggerRails.options.app_url = "#{protocol}#{APP_CONFIG["machine_fqdn"]["value"]}" end
wilebeast/FireFox-OS
B2G/gecko/browser/devtools/highlighter/test/browser_inspector_highlighter_autohide.js
/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ let doc; function createDocument() { doc.body.innerHTML = '<h1>highlighter autohide test</h1>'; InspectorUI.openInspectorUI(doc.querySelector("h1")); // Open the sidebar and wait for the default view (t...
xlf999/AdsDemo
MobGiAdSDK/AggregationAdThirdSDKs/Common/AdxAdsComponent.framework/Headers/MobGiReportDBLogicManager.h
<gh_stars>1-10 // // AdxDataStoreManager.h // AdxAdsComponent // // Created by star.liao on 2017/10/20. // Copyright © 2017年 com.idreamsky. All rights reserved. // #import <Foundation/Foundation.h> @class TReportRecordObject; @interface MobGiReportDBLogicManager : NSObject + (void)createReportDataTable:(void (^...
ItzzRitik/XtremePad
org/eclipse/swt/custom/StyledTextPrintOptions.java
<filename>org/eclipse/swt/custom/StyledTextPrintOptions.java /******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse P...
NewProggie/ecal
lib/Udpcap/src/udpcap_socket_private.h
/* ========================= eCAL LICENSE ================================= * * Copyright (C) 2016 - 2019 Continental 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 * * ...
henrikgruner/Programvareutvikling
backend/auction/reports/migrations/0002_auto_20190326_1421.py
# Generated by Django 2.1.5 on 2019-03-26 13:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [("reports", "0001_initial")] operations = [ migrations.RenameField( model_name="report", old_name="reportDescription", new_name...
gangababu/rultor
rultor-web/src/main/java/com/rultor/web/StandRs.java
<gh_stars>0 /** * Copyright (c) 2009-2013, rultor.com * 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...
volkhin/nixie-timer
main/output.c
#include <stdint.h> #include <stdio.h> #include "stdatomic.h" #include "driver/gpio.h" #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "output.h" #define TAG "OUTPUT" // blue #define GPIO_CLOCK 12 // orange #define GPIO_SERIAL 13 // brown #define GPIO_LATCH 14 #define GPIO_BIT...
TimelyD/Timely-master
src/com/tg/tgt/ui/MomentsLogAct.java
<reponame>TimelyD/Timely-master package com.tg.tgt.ui; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.View; im...
feiaxyt/CGACD
models/attention/attention.py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from config.config import cfg class Attention(nn.Module): def __init__(self): super(Attention, self).__init__() def forward(self, z_f, x_f): raise NotImplementedError class PixelAttention(Attention): def...
arpangreat/go
pkg/mod/github.com/golangci/golangci-lint@v1.38.1-0.20210309184618-2ebc9d7202f9/test/testdata/gofumpt.go
<gh_stars>1-10 // args: -Egofumpt package testdata import "fmt" func GofumptNewLine() { fmt.Println( "foo" ) // ERROR "File is not `gofumpt`-ed" }
sDoka/tiis-library
liferay-plugins-sdk-6.2/portlets/tiis-library-portlet/docroot/WEB-INF/src/ru/tiis/srv/service/impl/BookLocalServiceImpl.java
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any la...
lanpinguo/rootfs_build
kernel/drivers/media/platform/sunxi-tvd/tvd.c
/* * Copyright (C) 2015 Allwinnertech, z.q <<EMAIL>> * * 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 Free Software Foundation. * */ #include <linux/module.h> #include <linux/errno.h> #include <linux/ke...
ldang264/leetcodes
src/main/java/Q00058s.java
/** * 给定一个仅包含大小写字母和空格 ' ' 的字符串 s,返回其最后一个单词的长度。如果字符串从左向右滚动显示,那么最后一个单词就是最后出现的单词。 * 如果不存在最后一个单词,请返回 0 。 * 说明:一个单词是指仅由字母组成、不包含任何空格字符的 最大子字符串。 * * 示例: * * 输入: "<NAME>" * 输出: 5 * * 来源:力扣(LeetCode) * 链接:https://leetcode-cn.com/problems/length-of-last-word * 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 */ public class Q0005...
ScalablyTyped/SlinkyTyped
a/activex-word/src/main/scala/typingsSlinky/activexWord/Word/ProtectedViewWindow.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.activexWord.Word import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait ProtectedViewWindow extends StObject...
jorenvo/minix2
minix-2.0/fs/usr/src/lib/ip/gethnmadr.c
/* * Copyright (c) 1985, 1988 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that: (1) source distributions retain this entire copyright * notice and comment, and (2) distributions including binaries display * the fol...
swsachith/harp
contrib/src/main/java/edu/iu/lda/LdaMapCollective.java
package edu.iu.lda; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; import org.apache.hadoop.mapreduce.lib.output.Fi...
gza/beats
vendor/github.com/aws/aws-sdk-go-v2/service/rds/api_op_PromoteReadReplicaDBCluster.go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package rds import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) // Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBClusterMessage type PromoteReadRep...
linapex/bitcoin-go-chinese
mining/mining.go
//<developer> // <name><NAME></name> // <email><EMAIL></email> // <wx>superexc</wx> // <qqgroup>128148617</qqgroup> // <url>https://jsq.ink</url> // <role>pku engineer</role> // <date>2019-03-16 20:02:54</date> //</624461735822102528> //版权所有(c)2014-2016 BTCSuite开发者 //此源代码的使用由ISC控制 //可以在许可文件中找到的许可...
kundajelab/kerasAC
kerasAC/architectures/functional_basset_classification_gc_corrected.py
import numpy as np ; from kerasAC.metrics import * from kerasAC.custom_losses import * def getModelGivenModelOptionsAndWeightInits(args): #get the arguments seed=args.seed w0=args.w0 w1=args.w1 ntasks=args.num_tasks init_weights=args.init_weights np.random.seed(seed) import keras; ...
iridium-browser/iridium-browser
chrome/browser/ui/commander/open_url_command_source.cc
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/commander/open_url_command_source.h" #include "base/i18n/case_conversion.h" #include "base/strings/utf_string_conversions.h" ...
fakeNetflix/uber-repo-potter
cli/lib/default-print.js
<filename>cli/lib/default-print.js module.exports = defaultPrint; function defaultPrint(name) { return function printCallback(err, result) { if (err) { console.log(name + ' failed to complete'); console.error(err.message); return process.exit(1); } conso...
Robbbert/messui
src/mame/drivers/pockstat.cpp
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** Sony PocketStation PocketStation games were downloaded from PS1 games into flash RAM after the unit had been inserted in the memory card slot, and so this should be emulated...
reels-research/iOS-Private-Frameworks
SafariShared.framework/WBSHistoryConnectionProxy.h
<reponame>reels-research/iOS-Private-Frameworks<filename>SafariShared.framework/WBSHistoryConnectionProxy.h /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/SafariShared.framework/SafariShared */ @interface WBSHistoryConnectionProxy : NSObject <WBSHistoryConnectionProxy> { NSXPCConnectio...
Farfetch/maestro
web/frontend/src/lib/charts/datasets/metricsToResponseCodeLine.js
<gh_stars>10-100 import { colors, getNextColor } from "../../colors"; import { toLocalDate } from "../../date"; const colorsAlias = { 200: colors.green, 204: colors.lime, 201: colors.lime, 400: colors.orange, 404: colors.orange, 500: colors.red, 501: colors.red, 502: colors.red, 503: colors.red, 0:...
katastreet/ice4jtest
src/main/java/org/ice4j/socket/GoogleRelayedCandidateDatagramSocket.java
/* * ice4j, the OpenSource Java Solution for NAT and Firewall Traversal. * * Copyright @ 2015 Atlassian Pty 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.apa...
fzdabc/SlideWiki
slidewiki/libraries/frontend/MathJax/fonts/HTML-CSS/TeX/png/AMS/Regular/Latin1Supplement.js
/* * /MathJax/fonts/HTML-CSS/TeX/png/AMS/Regular/Latin1Supplement.js * * Copyright (c) 2010 Design Science, Inc. * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with...
Thomas-Ulrich/core
apf/apfElementOf.h
<gh_stars>100-1000 /* * Copyright 2011 Scientific Computation Research Center * * This work is open source software, licensed under the terms of the * BSD license as described in the LICENSE file in the top-level directory. */ #ifndef APFELEMENTOF_H #define APFELEMENTOF_H #include "apfElement.h" #include "apfFie...
tkrajcar/pennjson
src/json/json-private.h
#ifndef JSON_PRIVATE_H #define JSON_PRIVATE_H #include <yajl/yajl_gen.h> #include <yajl/yajl_parse.h> /* Internal declarations for the JSON server */ /* I/O buffer size. */ #define JSON_SERVER_BUFFER_SIZE 32768 /* * Maximum parse parts. This value is sufficient to handle messages with up to * 3 parts. Any useful ...
lipovsek/oslo
oslo/torch/nn/modules/dropout.py
<reponame>lipovsek/oslo import torch from torch.nn.modules.dropout import _DropoutNd from oslo.torch.nn.modules.functional import ( fused_bias_dropout, fused_bias_dropout_residual, ) class FusedBiasDropout(_DropoutNd): def forward(self, input: torch.Tensor, bias: torch.Tensor) -> torch.Tensor: re...
xushiwei/goplus-play
lib/unicode/utf16/exports.go
<filename>lib/unicode/utf16/exports.go package utf16 import ( "unicode/utf16" "github.com/qiniu/goplus/gop" ) // func utf16.Decode(s []uint16) []rune func execDecode(_ int, p *gop.Context) { args := p.GetArgs(1) ret := utf16.Decode(args[0].([]uint16)) p.Ret(1, ret) } // func utf16.DecodeRune(r1 rune, r2 rune) ...
graphcore/poprithms
poprithms/tests/testutil/include/testutil/schedule/commandlineoptions.hpp
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #ifndef TESTUTIL_SCHEDULE_COMMANDLINEOPTIONS_HPP #define TESTUTIL_SCHEDULE_COMMANDLINEOPTIONS_HPP #include <map> #include <string> #include <vector> namespace poprithms { namespace schedule { class CommandLineOptions { public: using StringMap = std::map<st...