repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
lonely7345/bi-platform
fileserver/src/main/java/com/baidu/rigel/biplatform/ma/common/file/protocol/Request.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...
zhangxing4418/ZXCrashProtection
ZXCrashProtection/Class/Notification/ZXNotificationDelegate.h
<filename>ZXCrashProtection/Class/Notification/ZXNotificationDelegate.h // // ZXNotificationDelegate.h // ZXCrashProtection // // Created by bug on 2018/10/30. // Copyright © 2018 CRM. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface ZXNotificationDelegate : NSObject ...
Xchuanshuo/LiteNESEmulator
src/main/java/com/legend/utils/PropertiesUtils.java
package com.legend.utils; import java.io.*; import java.util.Properties; import java.util.Set; /** * @author Legend * @data by on 20-6-5. * @description 全局属性配置工具类 */ public class PropertiesUtils { private static Properties properties = new Properties(); static { try { File file = new...
ScalablyTyped/SlinkyTyped
f/firefox-webext-browser/src/main/scala/typingsSlinky/firefoxWebextBrowser/browser/extensionTypes.scala
<gh_stars>10-100 package typingsSlinky.firefoxWebextBrowser.browser import org.scalablytyped.runtime.StringDictionary import typingsSlinky.firefoxWebextBrowser.browser.manifest.ExtensionURL import typingsSlinky.std.Array import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` impo...
colinw7/CGL
include/CGL_glx.h
#include <GL/glx.h> #include <CGL.h> #include <CXMachine.h>
stwe/Benno4j
src/main/java/de/sg/benno/ecs/core/Signature.java
/* * This file is part of the Benno4j project. * * Copyright (c) 2021, stwe <https://github.com/stwe/Benno4j> * * 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...
Paul17041993/Railcraft
src/main/java/mods/railcraft/client/render/carts/CartModelManager.java
/*------------------------------------------------------------------------------ Copyright (c) CovertJaguar, 2011-2017 http://railcraft.info This code is the property of CovertJaguar and may only be used with explicit written permission unless otherwise specified on the license page at http://railcraft.info/wiki...
ORNL-BTRIC/OpenStudio
openstudiocore/src/model/CoilCoolingWater.cpp
<reponame>ORNL-BTRIC/OpenStudio /********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General...
trngaje/mame-2003-plus-kaze
src/drivers/mrdo.c
<gh_stars>100-1000 /*************************************************************************** Mr Do! driver by <NAME> Video clock: XTAL = 19.6 MHz Horizontal video frequency: HSYNC = XTAL/4/312 = 15.7051282051 kHz Video frequency: VSYNC = HSYNC/262 = 59.94323742 Hz VBlank duration: 1/VSYNC * (70/262) = 4457 us *...
DirectStandards/timplus-server-core
src/main/java/org/jivesoftware/openfire/certificate/CertificateNotFoundException.java
package org.jivesoftware.openfire.certificate; public class CertificateNotFoundException extends CertificateException { private static final long serialVersionUID = 2921200431097540452L; public CertificateNotFoundException() { super(); } public CertificateNotFoundException(String msg) {...
GalacticGlum/FrostyEngine
Engine/Source/Common/Private/Utilities/String.cpp
#include <Utilities/String.h> const std::hash<std::string> String::m_Hasher;
randolphwong/mcsema
boost/libs/typeof/test/odr_no_uns1.hpp
// Copyright (C) 2006 <NAME> // Copyright (C) 2006 <NAME> // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_TYPEOF_ODR_NO_UNS1_HPP_INCLUDED #define BOOST_TYPEOF_ODR_NO_UNS1_HPP_INCLUDED #define BOOST_TYPEOF_SUPPRESS_UNN...
AlhonGelios/AO
org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/WorksheetDocumentImpl.java
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl; import javax.xml.namespace.QName; import org.apache.xmlbeans.SchemaType; import org.apache.xmlbeans.impl.values.XmlComplexContentImpl; import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet; import org.openxmlformats.schemas.spreadsheetm...
zabrewer/batfish
projects/batfish/src/main/java/org/batfish/representation/juniper/NatRuleMatchDstAddr.java
<filename>projects/batfish/src/main/java/org/batfish/representation/juniper/NatRuleMatchDstAddr.java<gh_stars>100-1000 package org.batfish.representation.juniper; import java.util.Objects; import javax.annotation.Nonnull; import javax.annotation.ParametersAreNonnullByDefault; import org.batfish.datamodel.Prefix; /** ...
BoomApps-LLC/SteemApp
steemj-core/src/main/java/eu/bittrade/libs/steemj/apis/market/history/model/MarketTicker.java
<gh_stars>1-10 package eu.bittrade.libs.steemj.apis.market.history.model; import org.apache.commons.lang3.builder.ToStringBuilder; import com.fasterxml.jackson.annotation.JsonProperty; import eu.bittrade.libs.steemj.base.models.Asset; /** * This class represents a Steem "market_ticker" object of the * "market_his...
navikt/basta-frontend
frontend/js/containers/order/Results.js
<filename>frontend/js/containers/order/Results.js import React from 'react' import PropTypes from 'prop-types' function buildResultBody(data) { return ( <div> {data.map(result => { return ( <div className="resultLine" key={'resultline_' + result.id}> <div className="result">{c...
Hansiyuan131/redis-example
springboot-redis-cache/src/main/java/com/cc/springbootrediscache/service/UserService.java
package com.cc.springbootrediscache.service; import com.cc.springbootrediscache.entity.User; import com.cc.springbootrediscache.mapper.UserMapper; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CachePut; import org.springframework.cache.annotation.Cacheable; import ...
ElderDelp/fiction
test/algorithms/physical_design/one_pass_synthesis.cpp
<filename>test/algorithms/physical_design/one_pass_synthesis.cpp // // Created by marcel on 24.09.21. // #if (MUGEN) #include "catch.hpp" #include "utils/blueprints/network_blueprints.hpp" #include "utils/equivalence_checking_utils.hpp" #include <fiction/algorithms/physical_design/apply_gate_library.hpp> #include <f...
benetech/Winnow2.0
web/src/common/components/Spacer.js
import React from "react"; import clsx from "clsx"; import PropTypes from "prop-types"; import { makeStyles } from "@material-ui/styles"; const useStyles = makeStyles({ spacer: { flexGrow: ({ grow }) => grow, }, }); function Spacer(props) { const { grow = 1, className, ...other } = props; const classes = ...
Maroju100/check-ins
server/src/main/java/com/objectcomputing/checkins/services/questions/QuestionController.java
package com.objectcomputing.checkins.services.questions; import io.micronaut.http.HttpRequest; import io.micronaut.http.HttpResponse; import io.micronaut.http.HttpStatus; import io.micronaut.http.MediaType; import io.micronaut.http.annotation.Error; import io.micronaut.http.annotation.*; import io.micronaut.http.hateo...
muescha/homebrew-cask
Casks/bitmessage.rb
<reponame>muescha/homebrew-cask class Bitmessage < Cask url 'https://bitmessage.org/download/osx/Bitmessage.dmg' homepage 'https://bitmessage.org/' version 'latest' no_checksum link 'Bitmessage.app' end
dweng0/game
node_modules/@babylonjs/core/Lights/shadowLight.js
import { __decorate, __extends } from "tslib"; import { serialize, serializeAsVector3 } from "../Misc/decorators"; import { Matrix, Vector3 } from "../Maths/math.vector"; import { Light } from "./light"; import { Axis } from '../Maths/math.axis'; /** * Base implementation IShadowLight * It groups all the commo...
mgontar/ucu-advanced-programming
HW2/src/main/java/lab4/Cleaner.java
<filename>HW2/src/main/java/lab4/Cleaner.java<gh_stars>0 package lab4; public interface Cleaner { void clean(); }
tandonn/streams
src/main/scala/com/fndef/streams/core/ExecutionParams.scala
package com.fndef.streams.core abstract class ResponseCriteria case class WithResponse(responseEndpointId: String, timeout: Long = -1, incrementalResponse: Boolean = false) extends ResponseCriteria case object WithoutResponse extends ResponseCriteria case class ExecutionParams(responseCriteria: ResponseCriteria = Wit...
chasepang/shanjupay
shanjupay-merchant/shanjupay-merchant-service/src/main/java/com/shanjupay/merchant/mapper/StaffMapper.java
package com.shanjupay.merchant.mapper; import com.shanjupay.merchant.entity.Staff; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.springframework.stereotype.Repository; /** * <p> * Mapper 接口 * </p> * * @author author * @since 2021-04-28 */ @Repository public interface StaffMapper extends B...
Damons-work/icodework_vue__back_end
src/main/java/cn/js/icode/basis/mapper/OrganizationMapper.java
<gh_stars>0 package cn.js.icode.basis.mapper; import team.bangbang.common.sql.IMybatisMapper; import org.apache.ibatis.annotations.Mapper; import cn.js.icode.basis.data.Organization; /** * 组织机构 - Mapper * 对应数据库表:basis_organization_base * * @author ICode Studio * @version 1.0 2018-09-23 */ @Mapper pub...
opendata-mvcr/csvw-validator
csvw-validator-lib/src/main/java/com/malyvoj3/csvwvalidator/parser/metadata/ParserFactory.java
package com.malyvoj3.csvwvalidator.parser.metadata; import com.malyvoj3.csvwvalidator.domain.metadata.ObjectDescription; import com.malyvoj3.csvwvalidator.parser.metadata.parsers.PropertyParser; /** * Factory which creates parsers for properties. * @param <T> */ public interface ParserFactory<T extends ObjectDescr...
wayshall/onetwo
core/modules/security/src/main/java/org/onetwo/ext/security/method/DefaultMethodSecurityConfigurer.java
package org.onetwo.ext.security.method; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; import org.onetwo.common.utils.LangUtils; import org.onetwo.ext.security.ajax.AjaxAuthenticationHandler; import org.onetwo.ext.security.ajax.AjaxLogoutSuccessHandler; import org.onetwo.ext.s...
Bnei-Baruch/keycloak
server-spi-private/src/main/java/org/keycloak/authorization/store/PolicyStore.java
<gh_stars>1-10 /* * JBoss, Home of Professional Open Source. * Copyright 2016 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 co...
tikskit/imin
src/test/java/ru/tikskit/imin/model/TagTest.java
package ru.tikskit.imin.model; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager...
enavarro51/retworkx
tests/test_custom_return_types.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
ericAndrade/IAL-002
src/aula1/CelsiusToFarenheit.java
package aula1; import java.util.Scanner; public class CelsiusToFarenheit { public static void main(String[] args) { int celcius = 0; double farenheit = 0.0; Scanner scan = new Scanner(System.in); System.out.print("\nDigite em graus:>"); celcius = scan.nextInt(); farenheit = celcius * (9/5.0) + 32; S...
jroeder/ninja-superbowl
src/main/java/entity/BowlModJoined.java
<reponame>jroeder/ninja-superbowl /** * Copyright (C) 2017 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
VivXwan/LeetCodeSolutions
Java/KthDistinctStringinanArray.java
<filename>Java/KthDistinctStringinanArray.java<gh_stars>100-1000 /* Source: https://leetcode.com/problems/kth-distinct-string-in-an-array/ Time: O(n), where n is the size of the given string array(arr) Space: O(n), we need a hashmap for storing the boolean values of each string in the given string array(arr) */ cla...
milin/importanize
tests/test_utils.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import io import pytest # type: ignore from importanize.utils import ( OpenBytesIO, OpenStringIO, StdPath, add_prefix_to_text, force_bytes, force_text, generate_diff, is_piped, is_site...
sirrahd/teachermaps
app/controllers/resources_controller.rb
<reponame>sirrahd/teachermaps<filename>app/controllers/resources_controller.rb class ResourcesController < ApplicationController include SessionsHelper # before_filter :require_session def index require_session @user = User.find_by_account_name params[:user_id] unless @user Rails.logger.info...
Sunfocus/Utradia-Catlog-
app/src/main/java/com/utradia/catalogueappv2/model/ShipMethodsResponse.java
<filename>app/src/main/java/com/utradia/catalogueappv2/model/ShipMethodsResponse.java package com.utradia.catalogueappv2.model; import java.util.List; public class ShipMethodsResponse { /** * success : 1 * success_message : All Prices. * shipping_price : [{"id":"49","shipment_location_id":"4","star...
Collatty/TDT4140
tdt4140-gr1812/app.ui/src/main/java/tdt4140/gr1812/app/ui/controllers/LoggedInController.java
<reponame>Collatty/TDT4140<gh_stars>0 package tdt4140.gr1812.app.ui.controllers; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.List; import javafx.collect...
thomas-bottesch/fcl
utils/types.h
<filename>utils/types.h #ifndef TYPES_H #define TYPES_H #include "pstdint.h" #include <float.h> typedef uint32_t KEY_TYPE; typedef uint64_t POINTER_TYPE; typedef double VALUE_TYPE; #define KEY_TYPE_MAX UINT32_MAX #define VALUE_TYPE_MAX DBL_MAX #define KEY_TYPE_PRINTF_MODIFIER PRINTF_INT32_MODIFIER #define POINTER_T...
jumpinchat/jumpinchat-web
srv/api/user/controllers/user.resetPassword.js
<reponame>jumpinchat/jumpinchat-web<gh_stars>1-10 const Joi = require('joi'); const bcrypt = require('bcrypt'); const log = require('../../../utils/logger.util')({ name: 'user.resetPasswordVerify' }); const VerifyModel = require('../../verify/verify.model'); const userUtils = require('../user.utils'); const getUser = ...
partyfly/php-flame
src/flame/time/ticker.cpp
#include "deps.h" #include "../flame.h" #include "../coroutine.h" #include "ticker.h" namespace flame { namespace time { php::value ticker::__construct(php::parameters& params) { if(!params[0].is_long()) { throw php::exception("tick interval of type integer is required"); } prop("interval", 8) = s...
Sercomm-Demeter-group/lcmdemeter
openfire.plugin.demeter_core/src/java/com/sercomm/openfire/plugin/BatchManager.java
package com.sercomm.openfire.plugin; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.TimerTask; import java.util.UUID; import com.sercomm.common.util.ManagerBase; import com.serc...
Axxiss/finagle
finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/NoNodesOpenException.scala
package com.twitter.finagle.loadbalancer import com.twitter.finagle.{FailureFlags, SourcedException} import com.twitter.logging.{HasLogLevel, Level} /** * While this exception is safe to retry, the assumption used here is * that the underlying situation will not change soon enough to make * a retry worthwhile as r...
YJBeetle/QtAndroidAPI
android-31/android/telecom/RemoteConnection_VideoProvider_Callback.cpp
#include "./RemoteConnection_VideoProvider.hpp" #include "./VideoProfile.hpp" #include "./VideoProfile_CameraCapabilities.hpp" #include "./RemoteConnection_VideoProvider_Callback.hpp" namespace android::telecom { // Fields // QJniObject forward RemoteConnection_VideoProvider_Callback::RemoteConnection_VideoProvid...
frontyard/cordova-plugin-toast
src/sectv-orsay/tvchannelProxy.js
/* * Copyright 2015 Samsung Electronics 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...
MasterMochi/MochiKernel
src/kernel/Taskmng/TaskmngProc.c
<reponame>MasterMochi/MochiKernel<gh_stars>0 /******************************************************************************/ /* */ /* src/kernel/Taskmng/TaskmngProc.c */ /* ...
bananasmoothii/ScriptCommands
src/main/java/fr/bananasmoothii/scriptcommands/core/execution/ScriptThread.java
/* * Copyright 2020 ScriptCommands * * 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 applica...
DragonSSS/curated-list-of-top-75-leetcode-questions
leetcode/src/main/java/leetcode/interval/MeetingRooms.java
package leetcode.interval; import java.util.Arrays; public class MeetingRooms { public boolean canAttendMeetings(int[][] intervals) { if (intervals == null || intervals.length <= 1) return true; Arrays.sort(intervals, (i1, i2) -> i1[0] - i2[0]); for (int i = 0; i < intervals....
ThreeEyedCrow/baseCP
app/src/main/java/cn/midnight/ticketsystem/group/LoadingHelp.java
<gh_stars>0 package cn.midnight.ticketsystem.group; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; import com.pnikosis.materialishprogress.ProgressWheel; import com.sta...
DebraYona/twin
src/views/Landing/LandingHeader.js
<reponame>DebraYona/twin<gh_stars>0 import React, { Component } from 'react'; import { Link, Redirect, Route, Switch } from 'react-router-dom'; import PropTypes from 'prop-types'; // import { AppNavbarBrand } from '@coreui/react'; import logo from '../../assets/img/brand/twinexchange.png' import sygnet from '../../asse...
selvaraj-kuppusamy/Programming_Languages
Java/java-misc/Program_34.java
class Program_34 { public static void main(String args[]) { int x = 0; int y = 10; int z = y/x; } }
koeltv/Projet_LO02
src/com/model/card/Deck.java
<filename>src/com/model/card/Deck.java package com.model.card; import com.model.card.effect.*; import java.io.Serializable; import java.util.Collections; import java.util.LinkedList; /** * The type Deck. * * Gives all the methods related to the deck. */ public class Deck implements Serializable { /** * The C...
javs1287/5Steps_ListReport_Extension
exercises/ex_4/sources/ProjectSample/ZPOEXT.NOTIF.XX/node_modules/fontoxpath/test/specs/parsing/functions/functions.qnames.tests.js
import jsonMlMapper from 'test-helpers/jsonMlMapper'; import * as slimdom from 'slimdom'; import { evaluateXPathToBoolean } from 'fontoxpath'; import evaluateXPathToAsyncSingleton from 'test-helpers/evaluateXPathToAsyncSingleton'; let documentNode; beforeEach(() => { documentNode = new slimdom.Document(); }); des...
sigurasg/ghidra
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/WideCharDataType.java
/* ### * IP: GHIDRA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
ktrzeciaknubisa/jxcore-binary-packaging
deps/mozjs/incs/nss/nss/lib/libpkix/pkix/top/pkix_validate.c
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * pkix_validate.c * * Top level validateChain function * */ #include "pkix_validate.h" #include "pkix_pl_c...
RuralHunter/htmlunit
src/main/java/com/gargoylesoftware/htmlunit/util/geometry/Line2D.java
<gh_stars>0 /* * Copyright (c) 2002-2021 Gargoyle Software 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 * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
elgeish/auc-plethora
Plethora Core/src/org/netbeans/modules/plethora/peers/BoxWrapper.java
/* * The original code is Plethora. The initial developer of the original * code is the Plethora Group at The American University in Cairo. * * http://www.cs.aucegypt.edu/ * * BoxWrapper.java * Created on November 15, 2006 */ package org.netbeans.modules.plethora.peers; import edu.aucegypt.plethor...
enfoTek/tomato.linksys.e2000.nvram-mod
release/src/linux/linux/include/asm-ia64/sn/sn2/mmzone_sn2.h
<filename>release/src/linux/linux/include/asm-ia64/sn/sn2/mmzone_sn2.h<gh_stars>10-100 #ifndef _ASM_IA64_SN_MMZONE_SN2_H #define _ASM_IA64_SN_MMZONE_SN2_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 mo...
dpla/primary-source-sets
app/controllers/authors_controller.rb
## # Handles HTTP requests for Authors # # @see Author class AuthorsController < ApplicationController before_action :authenticate_admin! def index @authors = Author.all end def show @author = Author.find(params[:id]) end def new @author = Author.new @author.source_set_ids = [params[:sour...
BelousAI/JavaRush
1.JavaSyntax/src/Test/Shildt_G/Threads/TestThreadSynch_3_Wait_Flag.java
package Test.Shildt_G.Threads; /** * Created by Антон on 17.03.2017. */ public class TestThreadSynch_3_Wait_Flag { static class NewThread implements Runnable { String name; Thread t; boolean suspendFlag; NewThread(String nameThread) { name = nameThread; t ...
dcurrie/picrin
contrib/10.roundtrip/emyg_pow5.h
<gh_stars>100-1000 /* emyg_pow5.h */ /* This isn't really a header file, but we keep it in a separate file ** to support alternate implementations, and because it's big. ** It has be a .h (rather than a .c) file to avoid fooling premake4 ** into building into the image twice. */ #ifndef MAX_POW5_IN_TABLE #define MA...
ekohl/vagrant-openstack-provider
source/lib/vagrant-openstack-provider/action/delete_stack.rb
<reponame>ekohl/vagrant-openstack-provider require 'log4r' require 'socket' require 'timeout' require 'sshkey' require 'yaml' require 'vagrant-openstack-provider/config_resolver' require 'vagrant-openstack-provider/utils' require 'vagrant-openstack-provider/action/abstract_action' require 'vagrant/util/retryable' mod...
JordonPhillips/aws-sdk-go-v2
service/apigateway/api_op_GetExport.go
// Code generated by smithy-go-codegen DO NOT EDIT. package apigateway import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/awslabs/smithy-go/middleware" smithyhttp "github.com/awslabs/smithy-go/transport/http" ) // Exports a dep...
philippzhang/leetcodeLearnJava
src/main/java/com/learn/java/leetcode/lc0236/Main.java
package com.learn.java.leetcode.lc0236; import com.learn.java.leetcode.base.CallBack; import com.learn.java.leetcode.base.Utilitys; import com.learn.java.leetcode.base.structure.TreeNode; import com.learn.java.leetcode.base.utils.Build; import java.util.List; public class Main extends CallBack { public static void ...
Ya-Za/KaMIS
lib/mis/kernel/ParFastKer/fast_reductions/extern/KaHIP/lib/tools/macros_assertions.h
<gh_stars>10-100 /****************************************************************************** * macros_assertions.h * * Source of KaHIP -- Karlsruhe High Quality Partitioning. * *****************************************************************************/ #ifndef ASSERT_H #define ASSERT_H #include <cassert>...
dCipherDev/ERC20-Web-Wallet
node_modules/trezor-link/lib/lowlevel/sharedConnectionWorker.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.postModuleMessage = postModuleMessage; var _defered = require('../defered'); // To ensure that two website don't read from/to Trezor at the same time, I need a sharedworker // to synchronize them. // However, sharedWorker cannot d...
HowellYan/freeswitch-esl-all
opensips-event-mi-spring-boot-starter/src/main/java/link/thingscloud/opensips/spring/boot/starter/template/DefaultEventClientOptionHandlerTemplate.java
package link.thingscloud.opensips.spring.boot.starter.template; import link.thingscloud.opensips.event.option.EventClientOption; import link.thingscloud.opensips.spring.boot.starter.handler.AbstractEventClientOptionHandler; /** * <p>DefaultInboundClientOptionHandlerTemplate class.</p> * * @author zhouhailin * @ve...
voskvv/ui
src/constants/volumeConstants/resizeVolume.js
<filename>src/constants/volumeConstants/resizeVolume.js<gh_stars>10-100 export const RESIZE_VOLUME_INVALID = 'RESIZE_VOLUME_INVALID'; export const RESIZE_VOLUME_REQUESTING = 'RESIZE_VOLUME_REQUESTING'; export const RESIZE_VOLUME_SUCCESS = 'RESIZE_VOLUME_SUCCESS'; export const RESIZE_VOLUME_FAILURE = 'RESIZE_VOLUME_FAIL...
rjw57/tiw-computer
emulator/src/mame/drivers/wink.cpp
<reponame>rjw57/tiw-computer // license:BSD-3-Clause // copyright-holders:<NAME>, <NAME> // thanks-to:HIGHWAYMAN /* Wink - (c) 1985 Midcoin TODO: - better interrupts? - finish sound - fix protection properly - better handling of nvram? it loses the default values - I need a better comp...
EnderNightLord-ChromeBook/zircon-rpi
zircon/system/ulib/fs/include/fs/managed_vfs.h
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef FS_MANAGED_VFS_H_ #define FS_MANAGED_VFS_H_ #ifndef __Fuchsia__ #error "Fuchsia-only header" #endif #include <lib/async/cpp/task.h> #include <at...
CoSoSys/cppdevtk
include/cppdevtk/util/service.hpp
<reponame>CoSoSys/cppdevtk ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// \file /// /// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <<EMAIL>>\n /// Licensed under the Apache License, Version 2.0 (the "License");\n /// you may n...
ursgraf/runtime-library
src/org/deepjava/runtime/zynq7000/demo/WifiDemo.java
<reponame>ursgraf/runtime-library /* * Copyright 2011 - 2013 NTB University of Applied Sciences in Technology * Buchs, Switzerland, http://www.ntb.ch/inf * * 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 ...
ngokevin/LabSound
labsound/include/LabSound/core/AudioSourceProvider.h
// License: BSD 3 Clause // Copyright (C) 2010, Google Inc. All rights reserved. // Copyright (C) 2015+, The LabSound Authors. All rights reserved. #ifndef AudioSourceProvider_h #define AudioSourceProvider_h #include "LabSound/extended/AudioContextLock.h" namespace lab { class AudioBus; class AudioSourceProviderCl...
Augustyn/jira-suite-utilities
src/main/java/com/googlecode/jsu/helpers/checkers/CheckerComposite.java
<reponame>Augustyn/jira-suite-utilities package com.googlecode.jsu.helpers.checkers; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.googlecode.jsu.helpers.ConditionChecker; /** * @author <A href="mailto:abashev at gmail dot com"><NAME></A> */ class CheckerComposite implements ConditionChecker ...
tongueroo/codebuild
.cody/role.rb
iam_policy( action: [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents", "ssm:DescribeDocumentParameters", "ssm:DescribeParameters", "ssm:GetParameter*", ], effect: "Allow", resource: "*" ) managed_iam_policy("AWSCloudFormationReadOnlyAccess")
ahmadmahmoud/social
assets/pages/js/demo/imagepicker.js
<reponame>ahmadmahmoud/social<gh_stars>0 $(document).ready(function () { // imagepicker 1 $('#imagepicker1').imagepicker() // imagepicker 2 $('#imagepicker2').imagepicker({ show_label: true }) })
thesocompany/vets-website
src/applications/edu-benefits/0994/pages/applicantInformation.js
<filename>src/applications/edu-benefits/0994/pages/applicantInformation.js import fullSchema from 'vets-json-schema/dist/22-0994-schema.json'; import ssnUI from 'platform/forms-system/src/js/definitions/ssn'; import fullNameUI from 'platform/forms/definitions/fullName'; import ApplicantDescription from 'platform/forms...
andrewdotn/concurrent-ruby
examples/benchmark_new_futures.rb
<reponame>andrewdotn/concurrent-ruby #!/usr/bin/env ruby require 'benchmark/ips' require 'concurrent' require 'concurrent-edge' raise 'concurrent-ext not loaded' if Concurrent.on_cruby? && Concurrent.c_extensions_loaded? scale = 1 time = 10 * scale warmup = 2 * scale warmup *= 10 if Concurrent.on_jruby? Benchmar...
fjh2021/spring-sevice
h2/src/main/java/com/fjh/business/controller/UserController.java
<gh_stars>1-10 package com.fjh.business.controller; import com.fjh.business.mapper.UserMapper; import com.fjh.model.User; import io.swagger.annotations.Api; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import...
advantageous/qbit-extensions
examples/standalone/src/main/java/io/advantageous/qbit/example/perf/websocket/TradeService.java
package io.advantageous.qbit.example.perf.websocket; import io.advantageous.qbit.admin.ManagedServiceBuilder; import io.advantageous.qbit.annotation.RequestMapping; import io.advantageous.qbit.annotation.Service; import io.advantageous.qbit.annotation.http.GET; import io.advantageous.qbit.annotation.http.PUT; import i...
replicant4j/replicant
client/src/main/java/replicant/spy/AreaOfInterestFilterUpdatedEvent.java
package replicant.spy; import arez.spy.SerializableEvent; import java.util.Map; import java.util.Objects; import javax.annotation.Nonnull; import replicant.AreaOfInterest; import replicant.ChannelAddress; /** * Notification when an AreaOfInterest filter has been updated. */ public final class AreaOfInterestFilterUp...
rememberlenny/rev-ruby-sdk
spec/lib/rev/models/order_request_spec.rb
<filename>spec/lib/rev/models/order_request_spec.rb require_relative '../../../spec_helper' GLOSSARY_ENTRIES_LIMIT_TEST = 1000 GLOSSARY_ENTRY_LENGTH_LIMIT_TEST = 255 SPEAKER_ENTRIES_LIMIT_TEST = 100 SPEAKER_ENTRY_LENGTH_LIMIT_TEST = 15 SUPPORTED_ACCENTS_COUNT = 8 describe 'OrderRequest' do it 'defaults to standard...
tblink-rpc/tblink-rpc-core
tests/cpp/TblinkRpcSmoke.h
/* * TblinkRpcSmoke.h * * Created on: Jul 4, 2021 * Author: mballance */ #pragma once #include "TblinkRpcTestBase.h" class TblinkRpcSmoke : public TblinkRpcTestBase { public: TblinkRpcSmoke(); virtual ~TblinkRpcSmoke(); };
huandrew99/LeetCode
grokking-the-coding-interview/modified-binary-search/Search-in-Rotated-Sorted-Array-II.py
""" LC 81 search in a sorted and rotated array that also has duplicates? Example 1: Input: [3, 7, 3, 3, 3], key = 7 Output: 1 Explanation: '7' is present in the array at index '1'. """ def search_rotated_with_duplicates(arr, key): # make sure arr[l] > arr[-1] l = 0 while l < len(arr) and arr[l] == arr[-1]: l...
obs145628/cle
middle-end-optis/superlocal-value-numbering/src/lib/digraph.hh
#pragma once #include <cassert> #include <ostream> #include <vector> class Digraph { public: class adj_iter_t { public: adj_iter_t operator++() { _next(); return *this; } adj_iter_t operator++(int) { auto res = *this; _next(); return res; } std::size_t operat...
OpenMPDK/SMDK
lib/linux-5.18-rc3-smdk/drivers/ata/pata_mpc52xx.c
/* * drivers/ata/pata_mpc52xx.c * * libata driver for the Freescale MPC52xx on-chip IDE interface * * Copyright (C) 2006 <NAME> <<EMAIL>> * Copyright (C) 2003 Mipsys - <NAME> * * UDMA support based on patches by Freescale (<NAME>, <NAME>), * <NAME> and <NAME>. * * This file is licensed under the terms of the...
BadenLab/2Panalysis
.ipynb_checkpoints/Suite2me-checkpoint.py
<reponame>BadenLab/2Panalysis # -*- coding: utf-8 -*- """ Created on Fri Feb 4 14:34:52 2022 Credits to: https://www.github.com/MouseLand/suite2p/blob/main/jupyter/run_suite2p_colab_2021.ipynb @author: SimenLab """ import os import numpy as np import pathlib import tifffile import suite2p import shutil import warni...
russelyang/jmockit1
samples/TimingFramework/test/org/jdesktop/animation/timing/interpolation/DiscreteInterpolatorTest.java
<gh_stars>0 /* * Copyright (c) 2006-2011 <NAME> * This file is subject to the terms of the MIT license (see LICENSE.txt). */ package org.jdesktop.animation.timing.interpolation; import org.junit.*; import static org.junit.Assert.*; public final class DiscreteInterpolatorTest { @Test public void testInterpol...
todorkrastev/softuni-software-engineering
Spring/C01_SpringData/L01_DatabaseAppsIntroduction/Exercises/Solutions/SecondOption/src/main/java/Controllers/ExerciseController.java
<filename>Spring/C01_SpringData/L01_DatabaseAppsIntroduction/Exercises/Solutions/SecondOption/src/main/java/Controllers/ExerciseController.java package Controllers; import Exercises.*; import Include.ExercisesImp; import java.sql.Connection; import java.util.LinkedHashMap; import java.util.Map; import static Include...
Mu-L/jemalloc
test/unit/decay.c
#include "test/jemalloc_test.h" #include "jemalloc/internal/decay.h" TEST_BEGIN(test_decay_init) { decay_t decay; memset(&decay, 0, sizeof(decay)); nstime_t curtime; nstime_init(&curtime, 0); ssize_t decay_ms = 1000; assert_true(decay_ms_valid(decay_ms), ""); expect_false(decay_init(&decay, &curtime, decay_...
seanyen/Azure-Kinect-Sensor-SDK
src/dynlib/dynlib_linux.c
<filename>src/dynlib/dynlib_linux.c // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #define _GNU_SOURCE // ldaddr() extention in dlfcn.h // This library #include <k4ainternal/dynlib.h> // Dependent libraries #include <k4ainternal/logging.h> // System dependencies #inc...
mohamed-saad/competitive-prog
daily-challenge/src/main/java/competitive/leetcode/easy/string/ReverseString.java
package competitive.leetcode.easy.string; public class ReverseString { public void reverseString(char[] s) { int mid = s.length/2; int last = s.length-1; for (int i=0; i<mid; i++) { char temp = s[i]; s[i] = s[last-i]; s[last-i] = temp; } } }
tuty/Eloquent-JavaScript-Exercises
chapter04-DataStructures/deepComparison/index.js
<filename>chapter04-DataStructures/deepComparison/index.js /** * Deep comparison The == operator compares objects by identity. But sometimes, you would prefer to compare the values of their actual properties. Write a function, deepEqual, that takes two values and returns true only if they are the same value or are...
CruGlobal/campus-contacts-web
app/assets/javascripts/angular/components/transferModal/transferModal.component.js
<gh_stars>0 import template from './transferModal.html'; import './transferModal.scss'; angular.module('campusContactsApp').component('transferModal', { controller: transferModalController, template: template, bindings: { resolve: '<', close: '&', dismiss: '&', }, }); function ...
Swainstha/DMS_React
src/store/actions/auth.js
// import axios from 'axios'; import * as axios from '../../response/falseFetch'; import * as actionTypes from './actionTypes'; export const authStart = () => { return { type: actionTypes.AUTH_START }; }; export const authSuccess = (token, userId) => { return { type: actionTypes.AUTH_SUCCE...
tristanseifert/Avocado
Avocado/Image Processing/TSBufferOwningBitmapRep.h
// // TSBufferOwningBitmapRep.h // Avocado // // Created by <NAME> on 20160516. // Copyright © 2016 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface TSBufferOwningBitmapRep : NSBitmapImageRep /** * Frees all pointers that this image representation is associated with; * any subsequent accesses...
PureSolTechnologies/DuctileDB
engine.test/src/test/java/com/puresoltechnologies/ductiledb/engine/NamespaceCreateAndReopenIT.java
package com.puresoltechnologies.ductiledb.engine; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import org.junit.Test; import com.puresoltechnologies.ductiledb.bigtable.BigTableConfiguration; import com.puresoltechnologies.ductiledb....
LearnJavaByus/eureka
eureka-core/src/main/java/com/netflix/eureka/util/batcher/TrafficShaper.java
/* * Copyright 2015 Netflix, 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 t...
operativeF/Kvasir
Lib/Chip/Unknown/STMicro/STM32F21x/DMA2.hpp
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //DMA controller namespace Dma2Lisr{ ///<low interrupt status register using Addr = Register::Address<0x40026400,0xf082f082,0x00000000,std::uint32_t>; ///Stream x transfer complete interrupt flag (x = 3..0) cons...
ModifcationStations/StationLoader
station-renderer-api-v0/src/main/java/net/modificationstation/stationapi/api/client/texture/StationTextureManager.java
<filename>station-renderer-api-v0/src/main/java/net/modificationstation/stationapi/api/client/texture/StationTextureManager.java package net.modificationstation.stationapi.api.client.texture; import net.minecraft.client.texture.TextureManager; import net.modificationstation.stationapi.api.registry.Identifier; import n...