repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
sam-glendenning/iam
iam-login-service/src/main/webapp/resources/iam/apps/dashboard-app/components/tokens/refreshlist/tokens.refreshlist.component.js
/* * Copyright (c) <NAME> (INFN). 2016-2019 * * 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 o...
mvr/jiggle
src/AABB.c
#include "jiggle.h" jgAABB jgAABBNewFromVector2(jgVector2 min, jgVector2 max) { return (jgAABB){min, max, true}; } jgAABB jgAABBNewFromFloat(float x1, float y1, float x2, float y2) { return jgAABBNewFromVector2(jgVector2New(x1, y1), jgVector2New(x2, y2)); } jgAABB jgAABBNull() { return (jgAABB){jgVect...
Yash-Wasalwar-07/Boss2D
Boss2D/addon/webrtc-jumpingyang001_for_boss/media/engine/fakewebrtcvideoengine.cc
<gh_stars>0 /* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. A...
dkzhang/RmsGo
ResourceSM/model/resGNode/json.go
package resGNode import ( "encoding/json" "fmt" ) func ToJson(gn ResGNode) (string, error) { bj, err := json.Marshal(gn) if err != nil { return "", fmt.Errorf("json Marshal ResGNode error: %v", err) } return string(bj), nil } func ToJsonIndent(gn ResGNode) (string, error) { bj, err := json.MarshalIndent(gn,...
olegstepanov/intellij-community
platform/testRunner/src/com/intellij/execution/testframework/ui/AbstractTestTreeBuilderBase.java
<reponame>olegstepanov/intellij-community // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.execution.testframework.ui; import com.intellij.execution.testframework.AbstractTestProxy; import com.intellij.exec...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/Rapport/RPStreamServer.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSObject<OS_dispatch_queue>; @interface RPStreamServer : NSObject { NSObject<OS_dispatch_queue> *_dispatchQueue; BOOL _invalidateCalled; BOOL _in...
metux/chromium-deb
chrome/browser/chromeos/net/wake_on_wifi_manager.cc
// Copyright 2014 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/chromeos/net/wake_on_wifi_manager.h" #include <memory> #include <string> #include "base/macros.h" #include "base/memory/ptr_uti...
Spoony1337/OrbitHCF
src/main/java/rip/orbit/hcteams/events/killtheking/KingEvent.java
<reponame>Spoony1337/OrbitHCF package rip.orbit.hcteams.events.killtheking; import lombok.Getter; import lombok.Setter; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; ...
Ibon2/UniTrivia_frontend
src/game/src/components/colourWheel/ColourWheel.js
<filename>src/game/src/components/colourWheel/ColourWheel.js // NOTES: // -- Array-destructuring assignment won't work w vanilla ie11; needs babel-polyfill lol import React, {Component, useState} from 'react' import Button from '@material-ui/core/Button'; import PopupState from 'material-ui-popup-state'; import Quiz f...
esotericist/TIS-3D
src/main/java/li/cil/tis3d/util/TooltipUtils.java
package li.cil.tis3d.util; import net.minecraft.item.ItemStack; import net.minecraft.util.text.*; import java.util.List; public final class TooltipUtils { public static void tryAddDescription(final ItemStack stack, final List<ITextComponent> tooltip) { if (stack.isEmpty()) { return; }...
iridium-browser/iridium-browser
chrome/browser/safe_browsing/download_protection/deep_scanning_browsertest.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 <memory> #include "base/base64.h" #include "base/path_service.h" #include "base/test/metrics/histogram_tester.h" #include "base/test/scoped_feat...
MewX/contendo-viewer-v1.6.3
net/a/a/e/c/b/k.java
/* */ package net.a.a.e.c.b; /* */ /* */ import net.a.a.c; /* */ import net.a.a.c.d; /* */ import net.a.a.e.c.a; /* */ import org.apache.batik.dom.AbstractDocument; /* */ import org.apache.commons.logging.Log; /* */ import org.apache.commons.logging.LogFactory; /* */ import org.w3c....
larsw/rya
sail/src/test/java/org/apache/rya/RdfCloudTripleStoreConnectionTest.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 ...
targeter21/drools
kie-pmml-new/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/resources/KiePMMLRegressionTableRegression1.java
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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...
ranji1221/uekcloud
volador/src/main/java/org/ranji/lemon/volador/persist/personal/impl/SignInDapImpl.java
package org.ranji.lemon.volador.persist.personal.impl; import java.util.List; import org.ranji.lemon.core.persist.impl.GenericDaoImpl; import org.ranji.lemon.volador.model.personal.SignIn; import org.ranji.lemon.volador.persist.personal.prototype.ISignInDao; import org.springframework.stereotype.Repository; @...
pfistfl/openml-defaults
examples/plot/plot_symbolic_defaults.py
import argparse import matplotlib.pyplot as plt import logging import seaborn as sns import openmldefaults import os import pandas as pd import pickle def parse_args(): parser = argparse.ArgumentParser(description='Creates an ARFF file') parser.add_argument('--results_directory', type=str, default=os.path.exp...
workshopper/levelmeup
lib/exercise.js
<reponame>workshopper/levelmeup var path = require('path') var os = require('os') var level = require('level') var rimraf = require('rimraf') var deepDiff = require('deep-diff') var execModule = require('exec-module') var formatDiff = require('./formatDiff') function setupDb (name) { // eslint-disable-next-line node...
TheEpicBlock/Flywheel
src/main/java/com/jozufozu/flywheel/core/shader/ExtensibleGlProgram.java
<gh_stars>0 package com.jozufozu.flywheel.core.shader; import java.util.ArrayList; import java.util.List; import javax.annotation.Nonnull; import com.jozufozu.flywheel.backend.ShaderContext; import com.jozufozu.flywheel.backend.gl.shader.GlProgram; import com.jozufozu.flywheel.core.shader.extension.IExtensionInstanc...
alpha-asp/Alpha
alpha-api/src/main/java/at/ac/tuwien/kr/alpha/api/programs/analysis/DependencyGraph.java
<filename>alpha-api/src/main/java/at/ac/tuwien/kr/alpha/api/programs/analysis/DependencyGraph.java package at.ac.tuwien.kr.alpha.api.programs.analysis; import at.ac.tuwien.kr.alpha.api.programs.Predicate; import java.util.List; import java.util.Map; /** * The predicate-level dependency graph of an ASP program. * E...
heaths/azure-sdk-for-go
sdk/resourcemanager/avs/armavs/zz_generated_response_types.go
//go:build go1.16 // +build go1.16 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
Tedros-Box/tedros-apps
app-extensions/app-extensions-ejb/src/main/java/com/tedros/extension/server/base/bo/TExtensionBO.java
/** * */ package com.tedros.extension.server.base.bo; import javax.enterprise.context.Dependent; import javax.inject.Inject; import com.tedros.ejb.base.bo.TGenericBO; import com.tedros.ejb.base.eao.ITGenericEAO; import com.tedros.ejb.base.entity.ITEntity; import com.tedros.extension.server.base.eao.TExtensionEAO; ...
insad-video/Ant-Media-Server
src/main/java/io/antmedia/console/rest/SupportRequest.java
<reponame>insad-video/Ant-Media-Server package io.antmedia.console.rest; public class SupportRequest { private String name; private String email; private String title; private String description; private boolean sendSystemInfo; public boolean isSendSystemInfo() { return sendSystemInfo; } public void setSend...
wjiec/leetcode-solution
leetcode-java/src/daily/d210628p815busroutes/Solution.java
<filename>leetcode-java/src/daily/d210628p815busroutes/Solution.java package daily.d210628p815busroutes; import java.util.*; /** * 815. Bus Routes * * https://leetcode-cn.com/problems/bus-routes/ * * You are given an array routes representing bus routes where routes[i] * is a bus route that the ith bus repeats ...
mpangas/DynamicCore-MineCraft
src/main/java/dev/me/bombies/dynamiccore/commands/commands/misc/skills/guis/SkillsGUICommand.java
package dev.me.bombies.dynamiccore.commands.commands.misc.skills.guis; import dev.me.bombies.dynamiccore.constants.Config; import dev.me.bombies.dynamiccore.constants.GUIs; import dev.me.bombies.dynamiccore.utils.guibuilder.GUIBuilder; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.command.Com...
pasmuss/cmssw
CondCore/Utilities/interface/PayloadToXML.h
<filename>CondCore/Utilities/interface/PayloadToXML.h #include <iostream> #include <string> #include <memory> #include <boost/python/class.hpp> #include <boost/python/module.hpp> #include <boost/python/init.hpp> #include <boost/python/def.hpp> #include <iostream> #include <string> #include <sstream> #include "boost/...
jpmieville/sir
book_examples/program_2_7.py
<filename>book_examples/program_2_7.py #!/usr/bin/env python """ Although the SIR and SEIR model paradigms are a good approximation to the epidemiological characteristics of many infectious diseases, such as measles or influenza, other infections have a more complex natural history. As an example of how such complexiti...
GavinRay97/teiid
engine/src/main/java/org/teiid/query/sql/symbol/GroupSymbol.java
/* * Copyright Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags and * the COPYRIGHT.txt file distributed with this work. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
straceX/Ectoplasm
linux-1.2.0/linux/include/asm-mips/string.h
<gh_stars>0 /* * include/asm-mips/string.h * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (c) 1994, 1995 Waldorf Electronics * written by <NAME> */ #ifndef __ASM_MIPS_STR...
grissomlab/sigpy-rf
sigpy/learn/util.py
<reponame>grissomlab/sigpy-rf<filename>sigpy/learn/util.py # -*- coding: utf-8 -*- """Machine learning utilities. """ import numpy as np import sigpy as sp __all__ = ['labels_to_scores', 'scores_to_labels'] def labels_to_scores(labels): """Convert labels to scores. Args: labels (array): One-dimensi...
nr17/platform
launcher/src/main/java/com/proofpoint/launcher/Processes.java
/* * Copyright 2012 Proofpoint, 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 agree...
uk-gov-mirror/ministryofjustice.correspondence_tool_staff
app/state_machines/configurable_state_machine/invalid_event_error.rb
module ConfigurableStateMachine class InvalidEventError < RuntimeError def initialize(role:, kase:, user:, event:, message: nil) description = <<~EOS Invalid event: type: #{kase.type_abbreviation} workflow: #{kase.workflow} role: #{role} ...
esalesky/NMTGMinor
onmt/metrics/sbleu.py
import sys import math ngramLength = 4; smoothingConstant=0.1 bpSmoothingConstant=1.5 def getCounts(words): counts = {} for i in range(len(words)): ngram = [] for j in range(ngramLength): if(i+j < len(words)): ngram.append(words[i+j]) if(" ".join(ngr...
isabella232/aistreams
third_party/gst-plugins-base/tests/examples/seek/stepping.c
/* GStreamer * * stepping.c: stepping sample application * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the Lice...
pritamghanghas/lighttpd-1.x
src/iosocket.h
<filename>src/iosocket.h #ifndef _IOSOCKET_H_ #define _IOSOCKET_H_ /** * make sure we know about OPENSSL all the time * * if we don't include config.h here we run into different sizes * for the iosocket-struct depending on config.h include before * iosocket.h or not */ #ifdef HAVE_CONFIG_H # include "config.h" ...
danielSoler93/msm_pele
msm_pele/AdaptivePELE/analysis/writeNetworkFiles.py
import os import sys import argparse from AdaptivePELE.utilities import utilities import matplotlib.pyplot as plt try: # This might fail for older versions of matplotlib (e.g in life cluster) plt.style.use("ggplot") except: pass def parseArguments(): desc = "Write the information related to the confor...
wajaja/sf-opi
web/app/routes/user/resettings/Resetting.js
<reponame>wajaja/sf-opi<gh_stars>0 import React from 'react' import { findDOMNode } from 'react-dom' import createReactClass from 'create-react-class' import { connect } from 'react-redux' import { withRouter, Switch, Route, Redirect } from 'react-router-dom' import { Request, SendEmail, Reset, CheckEmail }...
jin-ku-git/Tool
app/src/main/java/com/youwu/tool/utils_view/CountDownView.java
package com.youwu.tool.utils_view; import android.content.Context; import android.graphics.Color; import android.os.Handler; import android.os.Message; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.RelativeLayout; import ...
qtoggle/qui
js/forms/common-fields/choice-buttons-field.js
import JQueryUIField from './jquery-ui-field.js' /** * A field backed by choice buttons. The value data type can be anything. * @alias qui.forms.commonfields.ChoiceButtonsField * @extends qui.forms.commonfields.JQueryUIField */ class ChoiceButtonsField extends JQueryUIField { static WIDGET_CLASS = 'choicebu...
StephanZaaijer/IPASS
docs/html/search/all_a.js
<filename>docs/html/search/all_a.js<gh_stars>0 var searchData= [ ['magenta_62',['magenta',['../class_i_p_a_s_s_1_1_a_p_a102.html#a012c28e4910852f6da5386969e1ddc12',1,'IPASS::APA102']]], ['mask_63',['Mask',['../struct_i_p_a_s_s_1_1_r_f24_l01_1_1_s_e_t_t_i_n_g_1_1_setting.html#a77f1a60c4561c1cdfcff513920fab706',1,'IP...
HewlettPackard/oneview-sdk-java
oneview-sdk-java-lib/src/main/java/com/hp/ov/sdk/dto/servers/serverprofiletemplate/LogicalDriveTemplate.java
<filename>oneview-sdk-java-lib/src/main/java/com/hp/ov/sdk/dto/servers/serverprofiletemplate/LogicalDriveTemplate.java /* * (C) Copyright 2016 Hewlett Packard Enterprise Development LP * * Licensed under the Apache License, Version 2.0 (the "License"); * You may not use this file except in compliance with the Licen...
mc-ireiser/dev_challenges
backend_node/src/routes/user-route.js
const express = require("express"); const router = express.Router(); // Controller const UserController = require("../controllers/user-controller"); // Routes router.post("", UserController.createUser); router.post("/login", UserController.loginUser); // Exports module.exports = router;
garypwn/mage
Mage.Sets/src/mage/cards/s/SphinxsDecree.java
<filename>Mage.Sets/src/mage/cards/s/SphinxsDecree.java<gh_stars>1-10 package mage.cards.s; import java.util.UUID; import mage.MageObject; import mage.abilities.Ability; import mage.abilities.effects.ContinuousEffect; import mage.abilities.effects.ContinuousRuleModifyingEffectImpl; import mage.abilities.effects.OneSh...
xSparkleMan/ftc_skystone
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/unitTest/ServoBuildPlateUnitTest.java
package org.firstinspires.ftc.teamcode.opmodes.unitTest; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.hardware.Servo; import com.qualcomm.robotcore.util.Range; import org.firstinspires.ftc.teamcode.apis.testing.Trigger; @H...
freedywu/gophercloud
acceptance/openstack/containerinfra/v1/nodegroups_test.go
//go:build acceptance || containerinfra // +build acceptance containerinfra package v1 import ( "fmt" "testing" "time" "github.com/gophercloud/gophercloud" "github.com/gophercloud/gophercloud/acceptance/clients" "github.com/gophercloud/gophercloud/acceptance/tools" "github.com/gophercloud/gophercloud/openstac...
atif4461/FCS-GPU
athena/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimEvent/src/TFCS2DFunctionHistogram.cxx
<reponame>atif4461/FCS-GPU<filename>athena/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimEvent/src/TFCS2DFunctionHistogram.cxx /* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration */ #include "ISF_FastCaloSimEvent/TFCS2DFunctionHistogram.h" #include <algorithm> #include <iostream> #include "TMa...
colinw7/CQGnuPlot
src/CGnuPlotStyleTestPalette.cpp
#include <CGnuPlotStyleTestPalette.h> #include <CGnuPlotPlot.h> #include <CGnuPlotGroup.h> #include <CGnuPlotRenderer.h> #include <CGnuPlotUtil.h> #include <CGnuPlotColorBox.h> CGnuPlotStyleTestPalette:: CGnuPlotStyleTestPalette() : CGnuPlotStyleBase(CGnuPlot::PlotStyle::TEST_PALETTE) { } void CGnuPlotStyleTestPalet...
lakshmiDRIP/NDRIP
src/main/java/org/drip/spaces/rxtor1/NormedR1ToNormedR1.java
package org.drip.spaces.rxtor1; /* * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /*! * Copyright (C) 2017 <NAME> * Copyright (C) 2016 <NAME> * Copyright (C) 2015 <NAME> * * This file is part of DRIP, a free-software/open-source library for buy/side financial/trading model ...
joshje/times-components
packages/ad/__tests__/ios/ad-placeholder-with-style.ios.test.js
<gh_stars>0 import shared from "../ad-placeholder-with-style.native"; shared();
adamkorynta/opendcs
src/main/java/decodes/decoder/PositionOperation.java
/* * $Id$ * * $State$ * * $Log$ * Revision 1.2 2010/09/13 19:30:36 mmaloney * Scan should always jump to the specified label if the scan fails, even if the scan ran out of data. * * Revision 1.1 2008/04/04 18:21:01 cvs * Added legacy code to repository * * Revision 1.4 2007/12/11 01:05:17 mmaloney * javadoc cle...
codacy-badger/tp
src/main/java/seedu/internhunter/model/FilterableItemList.java
package seedu.internhunter.model; import java.util.function.Predicate; import javafx.collections.ObservableList; import seedu.internhunter.model.item.Item; import seedu.internhunter.model.item.ItemList; public interface FilterableItemList<T extends Item> { /** * {@code Predicate} that always evaluate to tru...
LikoGuan/code_guns
guns-admin/src/main/java/com/stylefeng/guns/modular/system/model/District.java
<reponame>LikoGuan/code_guns package com.stylefeng.guns.modular.system.model; import com.baomidou.mybatisplus.enums.IdType; import java.math.BigDecimal; import java.util.Date; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.ac...
RUB-Informatik-im-Bauwesen/XPlanung-JAXB-Binding
src/net/opengis/gml/_3/AbstractFeatureType.java
<gh_stars>0 // // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Ge...
Slynchy/March22-JS
src/engine/March22.js
<reponame>Slynchy/March22-JS<filename>src/engine/March22.js const ScriptCompiler = require('./ScriptCompiler.js'); const BackgroundHandler = require('./handlers/BackgroundHandler.js'); const CharacterHandler = require('./handlers/CharacterHandler.js'); const InputHandler = require('./handlers/InputHandler.js'); const C...
hoangvlbk61/HUST-Final-project-2019B-TRMS
TRMS-Frontend/pages/data-display/list.js
<gh_stars>0 import Demo from '../../demos/antd/list/demo'; const DemoPage = () => <Demo />; export default DemoPage;
aliyun/dingtalk-sdk
dingtalk/java/src/main/java/com/aliyun/dingtalkbadge_1_0/models/CreateBadgeCodeUserInstanceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dingtalkbadge_1_0.models; import com.aliyun.tea.*; public class CreateBadgeCodeUserInstanceResponseBody extends TeaModel { // 码ID @NameInMap("codeId") public String codeId; // 码详情跳转地址 @NameInMap("codeDetailUrl") public ...
xiaofan2406/ekko
docs/components/Navigation.js
<gh_stars>0 /* @flow */ import React from 'react'; import { css } from 'react-emotion'; import { NavLink } from 'react-router-dom'; import { theme, spacing } from 'styles'; import { NAV_LINKS } from 'utils/constants'; const cssNavigation = css` position: fixed; left: ${spacing.unit}px; bottom: ${spacing.unit}px;...
lmokto/ilovec
punteros/example2.c
<filename>punteros/example2.c<gh_stars>0 int main(void){ //Definamos estas variables: int x[100],b,*pa,*pb; //... x[50]=10; //Le asignamos el valor de 10, al array #50 pa=&x[50]; //Le asignamos al puntero pa, la direccion de memoria que tiene x[50] //Ahora mostramos algunas posibles operaciones:...
rromanchuk/xptools
src/Utils/RoadNetUtils.h
<filename>src/Utils/RoadNetUtils.h /* * Copyright (c) 2004, Laminar Research. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the r...
elimak/music-tag-extractor
node_modules/redux-devtools-themes/lib/index.js
<gh_stars>1-10 'use strict'; exports.__esModule = true; function _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; } function _interopExportWildcard(obj, defaults) { var newObj = defaults({}, obj); delete newObj['default']; return newObj; } function _defaults(obj, defaults) { var keys = Ob...
dmgerman/zephyrd3
ext/hal/nordic/nrfx_config_nrf52810.h
<filename>ext/hal/nordic/nrfx_config_nrf52810.h DECL|NRFX_CLOCK_CONFIG_DEBUG_COLOR|macro|NRFX_CLOCK_CONFIG_DEBUG_COLOR DECL|NRFX_CLOCK_CONFIG_INFO_COLOR|macro|NRFX_CLOCK_CONFIG_INFO_COLOR DECL|NRFX_CLOCK_CONFIG_IRQ_PRIORITY|macro|NRFX_CLOCK_CONFIG_IRQ_PRIORITY DECL|NRFX_CLOCK_CONFIG_LF_SRC|macro|NRFX_CLOCK_CONFIG_LF_SR...
aafulei/leetcode
c++/0876-middle-of-the-linked-list.cpp
<filename>c++/0876-middle-of-the-linked-list.cpp // 22/03/16 = Wed // 876. Middle of the Linked List [Easy] // Given the head of a singly linked list, return the middle node of the linked // list. // If there are two middle nodes, return the second middle node. // Example 1: // Input: head = [1,2,3,4,5] // Output: ...
IdrisDose/Nucleus
src/main/java/io/github/nucleuspowered/nucleus/modules/message/commands/ReplyCommand.java
<gh_stars>0 /* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.modules.message.commands; import com.google.inject.Inject; import io.github.nucleuspowered.nucleus.Util; import io...
javg15/sirh_backend
app/models/user.model.js
module.exports = (sequelize, DataTypes) => { return sequelize.define('usuarios', { id: { autoIncrement: true, type: DataTypes.INTEGER, allowNull: false, primaryKey: true }, username: { type: DataTypes.STRING(10), allowNu...
PetroTsapei/Student-Reminder
student-reminder-web/src/stores/GroupStore.js
<reponame>PetroTsapei/Student-Reminder import { observable, action } from 'mobx'; import GroupApi from '../api/groups'; import { authStore } from '../stores/AuthStore'; import handleError from '../helpers/handleError'; export class GroupStore { @observable groupList = []; @observable closeModal = false; @action...
Oneflow-Inc/Oneflow-Model-Compression
model_compress/distil/examples/teacher_bert/task_teacher.py
<filename>model_compress/distil/examples/teacher_bert/task_teacher.py """ Copyright 2020 The OneFlow Authors. 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.apa...
mtunganati/oneops
crawler/src/generated-sources/java/com/oneops/crawler/jooq/cms/routines/CmsAcquireLock.java
/* * This file is generated by jOOQ. */ package com.oneops.crawler.jooq.cms.routines; import com.oneops.crawler.jooq.cms.Kloopzcm; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Parameter; import org.jooq.impl.AbstractRoutine; /** * This class is generated by jOOQ. */ @Generated( ...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/TAJsApiHandler4SetBackgroundColor.h
<gh_stars>1-10 // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "PSDJsApiHandler.h" @class UIView; @interface TAJsApiHandler4SetBackgroundColor : PSDJsApiHandler { UIView *_top...
nekrut/anvil-portal
src/hooks/outline-query.js
<reponame>nekrut/anvil-portal import {useStaticQuery, graphql} from 'gatsby'; export const OutlineStaticQuery = () => { const {allFile} = useStaticQuery( graphql` query OutlineStaticQuery { allFile(filter: {relativeDirectory: {nin: ["", "contact", "featured-workspaces", "help", "implement...
FrantisekGazo/Knight
knight-compiler/src/main/java/eu/inloop/knight/builder/Injectable.java
package eu.inloop.knight.builder; import com.squareup.javapoet.ClassName; import java.util.HashSet; import java.util.Set; import javax.lang.model.element.TypeElement; /** * Class {@link Injectable} * * @author FrantisekGazo * @version 2015-11-16 */ public class Injectable { private TypeElement mElement; ...
moni-roy/COPC
Online Judges/CodeForces/141C/3693775_AC_92ms_5636kB.cpp
#include <bits/stdc++.h> using namespace std; struct ST{ string nm; int vl; int hg; bool operator<(const ST &p) const{ return vl<p.vl; } }st[100010]; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ cin>>st[i].nm>>st[i].vl; } sort(st,st+n); int flg=0; for(int i=0;i<n;i++){ if(st[i].vl>i){ flg=1; ...
jvanelteren/advent_of_code
advent_of_code_2017/day 24/solution_refractored.py
<reponame>jvanelteren/advent_of_code<gh_stars>1-10 #%% # read full assignment # think algo before implementing # dont use a dict when you need a list # assignment is still = and not == # dont use itertools when you can use np.roll # check mathemathical functions, e.g. if the parentheses are ok # networkx is awesome # s...
benemon/hawtio
tooling/hawtio-junit/src/main/java/io/hawt/junit/InProgressRunListener.java
<filename>tooling/hawtio-junit/src/main/java/io/hawt/junit/InProgressRunListener.java<gh_stars>100-1000 package io.hawt.junit; import org.junit.runner.Description; import org.junit.runner.Result; import org.junit.runner.notification.Failure; import org.junit.runner.notification.RunListener; public class InProgressRun...
stbrody/mongo
src/mongo/db/index/expression_params.cpp
/** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
synopsys-sig/coverity-common-api
src/main/java/com/synopsys/integration/coverity/api/ws/configuration/LdapConfigurationDataObj.java
<filename>src/main/java/com/synopsys/integration/coverity/api/ws/configuration/LdapConfigurationDataObj.java /** * coverity-common-api * * Copyright (c) 2020 Synopsys, Inc. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed w...
txtbits/daw-java
Interfaces/src/PruebaMatriz.java
<reponame>txtbits/daw-java import maths.*; public class PruebaMatriz { public static void main (String [] args) { int filas = 3; int columnas = 4; double [][] a = new double[filas][columnas]; for (int i=0; i<a.length; i++) { for (int j=0; j<a[i].length; j++) { ...
Montimage/mmt-dpi
src/mmt_tcpip/lib/tcp_segment.h
/** * TCP segment * to store the TCP segment */ #include <stdlib.h> #include <stdint.h> // #include <sys/types.h> // #include <sys/stat.h> // #include <sys/time.h> // #include <fcntl.h> // #include <getopt.h> // #include <signal.h> // #include <errno.h> #ifndef TCP_SEGMENT_H #define TCP_SEGMENT_H /** * Present a T...
HRashidi/freeCodeCamp
Coding-Interview-Prep/Rosetta-Code/quibble.js
<gh_stars>0 'use strict' function quibble(words) { let line = "{"; for (let i = 0; i < words.length; i++) { const el = words[i]; if(i === 0) { line += `${el}` } else if(i === words.length -1) { line += ` and ${el}` } else { line += `, ${el}` } } line += "}" return line; } console.log(quibb...
situx/kiwi-postgis
src/org/openrdf/query/algebra/evaluation/function/postgis/linestring/exporter/AsEncodedPolyline.java
<filename>src/org/openrdf/query/algebra/evaluation/function/postgis/linestring/exporter/AsEncodedPolyline.java package org.openrdf.query.algebra.evaluation.function.postgis.linestring.exporter; import org.openrdf.model.vocabulary.POSTGIS; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geo...
keremkoseoglu/Kifu
web/static/openui5/sap/ui/core/util/ExportType-dbg.js
<filename>web/static/openui5/sap/ui/core/util/ExportType-dbg.js /*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides class sap.ui.core.util.ExportType sap.ui.define(['sap/ui/base/ManagedObject'], function(Man...
ShaharaSeiun/touhou3d
src/babylon-components/CustomCustomProceduralTexture.js
import { __extends } from 'tslib'; import { Vector3, Vector2 } from '@babylonjs/core/Maths/math.vector'; import { Color4, Color3 } from '@babylonjs/core/Maths/math.color'; import { Texture } from '@babylonjs/core/Materials/Textures/texture'; import { ProceduralTexture } from '@babylonjs/core/Materials/Textures/Procedur...
michaelrk02/aksen
frontend/aksen/rpc.js
<filename>frontend/aksen/rpc.js import Channel from './rpc/Channel'; export {Channel};
nghialt/ApprovalTests.Java
approvaltests/src/main/java/org/approvaltests/reporters/GenericDiffReporter.java
package org.approvaltests.reporters; import java.io.File; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import com.spun.util.ObjectUtils; import com.spun.util.SystemUtils; import com.spun.util.ThreadUtils; import com.spu...
QuocAnh90/Uintah_Aalto
CCA/Components/MPM/Crack/CrackGeometryFactory.cc
<reponame>QuocAnh90/Uintah_Aalto /* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, includin...
ceekay1991/CallTraceForWeChat
CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/WCNoteInfo.h
<gh_stars>10-100 // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> #import "NSCoding-Protocol.h" @class NSArray, NSString; @interface WCNoteInfo : NSObject <NSCod...
tgstyle/MCT-Basemod
src/main/java/mctmods/basemod/blocks/base/BlockBaseOreCracked.java
package mctmods.basemod.blocks.base; import mctmods.basemod.Basemod; import mctmods.basemod.library.util.CreativeTabBM; import net.minecraft.block.BlockFalling; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; public class BlockBaseOreCracked extends BlockFalling { public BlockBa...
DABOZE/Queen-Alexa
node_modules/mathjs/lib/esm/entry/dependenciesNumber/dependenciesEqual.generated.js
<reponame>DABOZE/Queen-Alexa /** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { equalScalarDependencies } from './dependenciesEqualScalar.generated.js'; import { typedDependencies } from './dependenciesTyped.generated.js'; import { createEqual } from '../../factoriesNumber.js'; export var equalD...
gitter-badger/scalacheck-faker
src/main/scala/faker/time/FutureOffsetDateTime.scala
<reponame>gitter-badger/scalacheck-faker<filename>src/main/scala/faker/time/FutureOffsetDateTime.scala package faker.time import java.time.{OffsetDateTime, ZoneId} import org.scalacheck.Arbitrary final case class FutureOffsetDateTime private (value: OffsetDateTime) extends AnyVal object FutureOffsetDateTime { ...
alimate/spring-loaded
testdata/src/main/java/proxy/TestIntfaceA2.java
<filename>testdata/src/main/java/proxy/TestIntfaceA2.java package proxy; public interface TestIntfaceA2 { void m(); void n(); }
noushadali/cordyscoelib
src/java/com/cordys/coe/util/cgc/nom/CordysNomGatewayClient.java
package com.cordys.coe.util.cgc.nom; import java.io.File; import java.util.HashMap; import java.util.Map; import org.apache.log4j.Logger; import com.cordys.coe.util.StringUtils; import com.cordys.coe.util.cgc.CordysGatewayClientBase; import com.cordys.coe.util.cgc.CordysGatewayClientException; import com....
ylil93/ydk-go
ydk/models/cisco_ios_xe/checkpoint_archive_oper/checkpoint_archive_oper.go
// This module contains a collection of YANG definitions for // monitoring the checkpoint archives in a Network Element. // Copyright (c) 2016-2017 by Cisco Systems, Inc. // All rights reserved. package checkpoint_archive_oper import ( "fmt" "github.com/CiscoDevNet/ydk-go/ydk" "github.com/CiscoDevNet/ydk-g...
hemantbits/ComputeLibrary
documentation/search/files_16.js
var searchData= [ ['wallclocktimer_2ecpp',['WallClockTimer.cpp',['../_wall_clock_timer_8cpp.xhtml',1,'']]], ['wallclocktimer_2eh',['WallClockTimer.h',['../_wall_clock_timer_8h.xhtml',1,'']]], ['warp_5faffine_2ecl',['warp_affine.cl',['../warp__affine_8cl.xhtml',1,'']]], ['warp_5fhelpers_2eh',['warp_helpers.h',['...
captain-pool/optuna
optuna/trial/_base.py
import abc import datetime from typing import Any from typing import Dict from typing import Optional from typing import Sequence from optuna._deprecated import deprecated from optuna.distributions import BaseDistribution from optuna.distributions import CategoricalChoiceType class BaseTrial(object, metaclass=abc.AB...
filipecn/maldives
bin/wallet_sim.py
<reponame>filipecn/maldives<filename>bin/wallet_sim.py from datetime import datetime import sys import os import logging sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from maldives.bot.brokers.yq_broker import YQBroker from maldives.bot.models.wallet import Wallet logging.basicCon...
arie-neural-alpha/trase
frontend/scripts/react-components/legacy-explore/legacy-explore.register.js
import reducerRegistry from 'reducer-registry'; import reducer from './explore.reducer'; import * as legacyExploreActions from './explore.actions'; reducerRegistry.register('legacyExplore', reducer); export { legacyExploreActions };
huangxiaoyu/Elephant
app/src/main/java/com/jun/elephant/common/BaseFuncIml.java
<filename>app/src/main/java/com/jun/elephant/common/BaseFuncIml.java<gh_stars>1000+ /* * Copyright 2016 Freelander * <p> * 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 * <p> * ht...
cgarciae/catalyst
catalyst/contrib/models/cv/classification/__init__.py
# flake8: noqa from .mobilenetv2 import InvertedResidual, MobileNetV2 from .mobilenetv3 import MobileNetV3, MobileNetV3Large, MobileNetV3Small __all__ = [ "InvertedResidual", "MobileNetV2", "MobileNetV3", "MobileNetV3Small", "MobileNetV3Large", ]
bhrugesh96/woocommerce
plugins/woocommerce-admin/client/analytics/components/report-chart/index.js
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Component } from '@wordpress/element'; import { compose } from '@wordpress/compose'; import { format as formatDate } from '@wordpress/date'; import { withSelect } from '@wordpress/data'; import { get, isEqual } from 'lodash'; import PropTyp...
emanuellucas2/OVPsimProject
ImperasLib/source/nxp.ovpworld.org/peripheral/iMX6_WDOG/1.0/pse/imx6_wdog_user.c
<reponame>emanuellucas2/OVPsimProject<gh_stars>0 /* * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * 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.ap...
emarc99/SLib
src/slib/crypto/block_cipher.cpp
/* * Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
PrachieNaik/DSA
Array/TwoPointers/TwoPointers.cpp
<reponame>PrachieNaik/DSA<filename>Array/TwoPointers/TwoPointers.cpp /* Given a sorted array A (sorted in ascending order), having N integers(can have negative numbers too), find if there exists any pair of elements (A[i], A[j]) such that their sum is equal to X. Method: Two pointers is really an easy and effective t...