repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
eosnationftw/geojsonpoint
contracts/faucet/src/request.cpp
void faucet::request( const name owner ) { asset quantity = asset{ 50000, symbol{"XY", 4} }; auto request_itr = _request.find( owner.value ); // update owner's timestamp if (request_itr == _request.end()) { _request.emplace( get_self(), [&]( auto & row ) { row.owner = owner; ...
shawven/security
security-verification/src/main/java/com/github/shawven/security/verification/DefaultValidateSuccessHandler.java
<reponame>shawven/security package com.github.shawven.security.verification; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class DefaultValidateSuccessHandler implements ValidateSuccessHandler { @Override public void handle(HttpServletRequest request, Htt...
IasonasPap/Evolution
cli-client/admin.js
const axios = require("axios"); const FormData = require('form-data'); const fs = require('fs'); const https = require('https'); const agent = new https.Agent({ rejectUnauthorized: false }) exports.healthcheck = () => { axios({ "url": "https://localhost:8765/evcharge/api/admin/healthcheck", "m...
DrMerfy/CardSorterClient-1
sorter/src/elements/Category.js
<filename>sorter/src/elements/Category.js<gh_stars>1-10 /** * Represents the data model of the category */ export default class Category { /** * * @param {int} id * @param {String} title */ constructor(id, title) { this.id = id; this.title = title; this.cards = []; this.isMinimized = f...
alexchao26/advent-of-code-go
2017/day24/main.go
<gh_stars>10-100 package main import ( "flag" "fmt" "strings" "github.com/alexchao26/advent-of-code-go/util" ) func main() { var part int flag.IntVar(&part, "part", 1, "part 1 or 2") flag.Parse() fmt.Println("Running part", part) ans := magneticMoat(util.ReadFile("./input.txt"), part) fmt.Println("Output:...
OS2World/DEV-UTIL-ScitechOS_PML
include/pmint.h
/**************************************************************************** * * SciTech OS Portability Manager Library * * ======================================================================== * * The contents of this file are subject to the SciTech MGL Public * License Version 1.0 (the "L...
evleria/leetcode-in-go
problems/0037-sudoku-solver/solve_sudoku_test.go
package _037_sudoku_solver import ( "testing" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" ) func TestSolveSudoku(t *testing.T) { testCases := []struct { got [][]byte want [][]byte }{ { got: [][]byte{ {'5', '3', '.', '.', '7', '.', '.', '.', '.'}, {'6', '.', '.', '1', '9', '5', '.'...
ncl-teu/ncl_workflow-engine
src/org/ncl/workflow/ccn/sfc/forwarding/BroadcastForwarding.java
<reponame>ncl-teu/ncl_workflow-engine package org.ncl.workflow.ccn.sfc.forwarding; /** * Created by <NAME> on 2020/01/29 * ICN上でBroadcastを行うためのクラスです. * */ public class BroadcastForwarding { }
VZhiLinCorp/Kooboo
Kooboo.Web/_Admin/Scripts/inlineEditor/converter/DataConverter.js
function DataConverter(beforeSave){ var param={ _jstreeObj:null, _dataType:null, treeTextField:"content" } function doGetEditData(jstreeObject) { var finalData = {}; if (!jstreeObject || !jstreeObject._model || !jstreeObject._model.data) return finalData; ...
sbh04101989/msgraph-beta-sdk-java
src/main/java/com/microsoft/graph/requests/extensions/IPrintTaskTriggerRequest.java
// Template Source: IBaseEntityRequest.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -----------------------------------...
IBMStreams/OSStreams
src/java/platform/com.ibm.streams.platform/src/main/java/com/ibm/streams/sch/composer/IEUComposer.java
/* * Copyright 2021 IBM 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
GaryChengld/spring-rest-auth
oauth2-jwt-secretkey/resource-server/src/main/java/com/example/oauth2/jwk/secretkey/JwtSecretKeyResourceServerApp.java
package com.example.oauth2.jwk.secretkey; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class JwtSecretKeyResourceServerApp { public static void main(String[] args) { SpringApplication.run(JwtSecretKey...
seashell/aqueduct
ui/src/views/files/tree.js
<reponame>seashell/aqueduct<filename>ui/src/views/files/tree.js import React from 'react' import styled from 'styled-components' import Collapse from '_components/collapse' import File from './file' const StyledCollapse = styled(Collapse)` padding-left: 16px; ` const Tree = ({ nodes, isSelecting, onNodeSelect, on...
msyoon222/so
adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/BpelRestClient.java
/*- * ============LICENSE_START======================================================= * ONAP - SO * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights r...
zcgitzc/qaplus
src/main/java/com/qaplus/mapper/QaClassMapperExt.java
package com.qaplus.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import com.qaplus.entity.QaClass; import com.qaplus.entity.vo.Page; @Repository public interface QaClassMapperExt extends QaClassMapper { List<QaClass> queryAllClassForPag...
nengliangZ/React-Starter-Kit
node_modules/react-jss/lib/ns.js
<filename>node_modules/react-jss/lib/ns.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /** * Namespaces to avoid conflicts on the context. */ var jss = exports.jss = '64a55d578f856d258dc345b094a2a2b3'; var sheetsRegistry = exports.sheetsRegistry = 'd4bd0baacbc52bbd48bbb9eb24344ecd'...
lindsaygelle/animalcrossing
villager/tiger/villagers.go
<reponame>lindsaygelle/animalcrossing package tiger import ( "github.com/lindsaygelle/animalcrossing/villager" "github.com/lindsaygelle/animalcrossing/villager/tiger/bangle" "github.com/lindsaygelle/animalcrossing/villager/tiger/bianca" "github.com/lindsaygelle/animalcrossing/villager/tiger/claudia" "github.com/l...
DanielSBrown/osf.io
scripts/migrate_spam.py
import logging import sys from modularodm import Q from website.app import init_app from website.project.model import Comment from framework.transactions.context import TokuTransaction from scripts import utils as script_utils logger = logging.getLogger(__name__) def migrate_status(records): for record in recor...
panda2ici/Advanced-C-plusplus
Design-Pattern/composite/Blank.cpp
<reponame>panda2ici/Advanced-C-plusplus<filename>Design-Pattern/composite/Blank.cpp // // Created by ling on 03/12/17. // #include "Blank.h" //void Blank::accept(Visitor & v){ // v.visitBlank(this); //}
neemoh/ART
src/gui/RosBridge.cpp
<reponame>neemoh/ART // // Created by nearlab on 14/12/16. // #include <stdexcept> #include <cv_bridge/cv_bridge.h> #include "RosBridge.hpp" #include <custom_msgs/ActiveConstraintParameters.h> #include "custom_msgs/TaskState.h" #include <std_msgs/Int8.h> #include <kdl/frames.hpp> #include <tf_conversions/tf_kdl.h> ...
suggestio/suggestio
src1/shared/common/shared/src/main/scala/io/suggest/sc/app/MScAppGetQs.scala
<reponame>suggestio/suggestio package io.suggest.sc.app import io.suggest.dev.MOsFamily import io.suggest.n2.edge.{MPredicate, MPredicates} import japgolly.univeq._ import monocle.macros.GenLens import play.api.libs.json._ import play.api.libs.functional.syntax._ /** * Suggest.io * User: <NAME> <<EMAIL>> * Crea...
rpayeras/freecodecamp-challenges
Front-End-Libraries-Certification/React/44-Render-Conditionally-from-Props.js
// So far, you've seen how to use if/else, &&, null and the ternary operator (condition ? expressionIfTrue : expressionIfFalse) to make conditional decisions about what to render and when. However, there's one important topic left to discuss that lets you combine any or all of these concepts with another powerful React...
buckelieg/simple-tools
src/main/java/buckelieg/jdbc/MutableResultSet.java
<gh_stars>1-10 package buckelieg.jdbc; import javax.annotation.Nonnull; import java.io.InputStream; import java.io.Reader; import java.math.BigDecimal; import java.sql.*; final class MutableResultSet extends ImmutableResultSet { boolean updated = false; MutableResultSet(@Nonnull ResultSet delegate) { ...
JaneliaSciComp/osgpyplusplus
src/modules/osgFX/generated_code/EffectMap.pypp.hpp
// This file has been generated by Py++. #ifndef EffectMap_hpp__pyplusplus_wrapper #define EffectMap_hpp__pyplusplus_wrapper void register_EffectMap_class(); #endif//EffectMap_hpp__pyplusplus_wrapper
ford442/GWork
attic/renderers/GDIPlus/GDIPlusRenderer.h
<filename>attic/renderers/GDIPlus/GDIPlusRenderer.h #include <Gwork/BaseRender.h> #include <Gwork/Gwork.h> #include <Gwork/Utility.h> #include <Gwork/Font.h> #include <Gwork/Texture.h> #include <windows.h> #include <gdiplus.h> #include <math.h> using namespace Gdiplus; // // Without double buffering it's flickery // ...
sunggyu-kam/apk-scanner
src/com/apkscanner/gui/easymode/test/SliderSkinDemo2.java
package com.apkscanner.gui.easymode.test; import java.awt.*; import javax.swing.*; public class SliderSkinDemo2 { public JComponent makeUI() { UIDefaults d = new UIDefaults(); d.put("Slider:SliderTrack[Enabled].backgroundPainter", new Painter<JSlider>() { @Override public void paint(Graphics2D g, JSlid...
moshik1/mcas
src/components/net/fabric/src/fabric_runtime_error.h
<reponame>moshik1/mcas<filename>src/components/net/fabric/src/fabric_runtime_error.h /* Copyright [2017-2019] [IBM 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 http...
heroku/gobits
cmdutil/metrics/otel/config.go
package otel import ( "net/url" "github.com/heroku/x/cmdutil/metrics/honeycomb" ) // Config is a reusable configuration struct that contains the necessary // environment variables to setup an metrics.Provider type Config struct { Enabled bool `env:"ENABLE_OTEL_COLLECTION"` CollectorURL *ur...
ShockwaveNN/rubocop-ast
spec/rubocop/ast/in_pattern_node_spec.rb
<filename>spec/rubocop/ast/in_pattern_node_spec.rb # frozen_string_literal: true RSpec.describe RuboCop::AST::InPatternNode do context 'when using Ruby 2.7 or newer', :ruby27 do let(:in_pattern_node) { parse_source(source).ast.children[1] } describe '.new' do let(:source) do ['case condition',...
thehyve/hypercube-api-server
src/main/java/nl/thehyve/hypercubeapi/patientset/QueryInstanceEntity.java
<gh_stars>0 package nl.thehyve.hypercubeapi.patientset; import lombok.*; import javax.persistence.*; import java.util.Date; @Entity @Table(schema = "i2b2demodata", name = "qt_query_instance") @Data @Builder @NoArgsConstructor @AllArgsConstructor @EqualsAndHashCode(of = "id") public class QueryInstanceEntity { @...
ijjk/studentlife
feathers/services/usersService.js
import app from '../../util/getApp' import { userUpdated, userRemoved } from '../../redux/actions' export const usersService = app.service('users') if (typeof window !== 'undefined') { usersService.on('patched', user => userUpdated(user)) usersService.on('removed', user => userRemoved(user)) }
stefvra/energy_app
services/commands.py
import asyncio import logging import io import datetime from tools import tools logger = logging.getLogger('commands') class Command(): def __init__(self): pass async def execute(): pass class Store_Put_Command(Command): def __init__(self, store): self.store = store ...
SMASH-INC/API
Supported Languages/Java/src/main/java/SMASH/Environments.java
<gh_stars>0 /* * SMASH * * This file was automatically generated for the SMASH API by SMASH, INC ( https://smashlabs.io ). */ package SMASH; import java.util.ArrayList; import java.util.List; import java.util.TreeMap; public enum Environments { PRODUCTION, //Production Enviroment SANDBOX, //Testing and De...
shartte/Mekanism
src/minecraft/mekanism/generators/client/GuiWindTurbine.java
<gh_stars>0 package mekanism.generators.client; import mekanism.api.EnumColor; import mekanism.generators.common.ContainerWindTurbine; import mekanism.generators.common.TileEntityWindTurbine; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.entity.player.InventoryPlayer; import org.lwjgl.o...
Abce/boost
libs/type_index/examples/inheritance.cpp
<reponame>Abce/boost<filename>libs/type_index/examples/inheritance.cpp // Copyright 2013-2014 <NAME> // Distributed under the Boost Software License, Version 1.0. // (See the accompanying file LICENSE_1_0.txt // or a copy at <http://www.boost.org/LICENSE_1_0.txt>.) //[type_index_derived_example /*` The fo...
TheDoubleB/acpl
src/Types.h
#ifndef ACPL_TYPES_H #define ACPL_TYPES_H #include "Defines.h" #if (acplCRuntime == acplCRuntimeGlibc) # include <stdint.h> # include <stdlib.h> #elif (acplCRuntime == acplCRuntimeMscrt) # include <stddef.h> // Needed for definition of NULL, other types are simulated here. #else # error Include files for this CRT....
vishal-panchal611/Smart_Farming_using_IoT
node_modules/@carbon/icons-react/es/tornado/20.js
<reponame>vishal-panchal611/Smart_Farming_using_IoT import { Tornado20 } from '..'; export default Tornado20;
zevgenia/Python_shultais
Course/syntax/example_15.py
<gh_stars>0 age = 18 if age > 18: credit = True else: credit = False credit = True if age > 18 else False print(credit)
zhonglh/zzboot-framework
component-zzboot-framework/src/main/java/com/zzboot/framework/core/enums/EnumMessageType.java
<filename>component-zzboot-framework/src/main/java/com/zzboot/framework/core/enums/EnumMessageType.java package com.zzboot.framework.core.enums; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author Administrator */ public enum EnumMessageType { LOGI...
tmciver/rww-play
app/Global.scala
<filename>app/Global.scala /** * @author <EMAIL> * Date: 24/11/2013 */ import controllers.ldp import controllers.ldp.ReadWriteWebController import play.api._ import play.api.mvc.RequestHeader object Global extends GlobalSettings { override def onRouteRequest(req: RequestHeader) = { import _root_.rww.play.E...
olegood/boosti
src/main/java/boosti/service/conversion/target/XmlAsQuestionDataCollection.java
package boosti.service.conversion.target; import java.io.IOException; import java.util.Collection; import boosti.service.conversion.SourceAsTarget; import boosti.web.model.QuestionData; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.dataformat.xml.XmlMapper; /** * XML file as str...
yohan-pg/stylegan2-ada-pytorch
encoding/stylegan_encoder_network.py
# Taken from https://github.com/genforce/idinvert_pytorch/blob/master/models/stylegan_encoder_network.py """Contains the implementation of encoder for StyleGAN inversion. For more details, please check the paper: https://arxiv.org/pdf/2004.00049.pdf """ import numpy as np import torch import torch.nn as nn import to...
jesushilarioh/C-Plus-Plus
Chapter-7-Arrays/Review Questions and Exercises/Programming Challenges/01.cpp
/************************************************************ * * 01. Largest/Smallest Array Values * * Write a program that lets the user enter 10 values into * an array. The program should then display the largest * and smallest values stored in the array. * * <NAME> * 1/12/20 * ******************...
shah198/abc
dist/submodules/Portfolio-Platform-Common/RequestModel.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequestModelQuery = exports.RequestModel = void 0; const requestModelBase_1 = require("./requestModelBase"); const filter_1 = require("./filter"); class RequestModel extends requestModelBase_1.RequestModelBase { constructor() { ...
nickrfer/lava-codigo
repos/main/jason/stdlib/ground.java
<gh_stars>1-10 package jason.stdlib; import jason.asSemantics.DefaultInternalAction; import jason.asSemantics.InternalAction; import jason.asSemantics.TransitionSystem; import jason.asSemantics.Unifier; import jason.asSyntax.Term; /** <p>Internal action: <b><code>.ground</code></b>. <p>Description: checks whether th...
throneless-tech/web-science
src/content-scripts/linkResolution.twitter.content.js
/** * Content script for the `linkResolution` module that parses links from Twitter pages. * This parsing is fragile and, by design, degrades gracefully to resolving links with * HTTP requests. * @module linkResolution.twitter.content */ function pageManagerLoaded() { const pageManager = window.webScience.pag...
wiltonicp/Wilton-File
src/main/java/cn/wilton/framework/file/common/entity/Role.java
<gh_stars>1-10 package cn.wilton.framework.file.common.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.vihackerframework.common.entity.ViHackerEntity; import lombok.AllArgsConstructor; import...
Noldor85/condrpxdenominusadm
www/js/pushDriver.js
<filename>www/js/pushDriver.js function pushDriver(ev){ var payload = ev.payload switch (payload.type){ case "chat": var inTheChat =false if(currentChat != null){ inTheChat = currentChat != null && ev.foreground && (currentChat.chatId == payload.chatId) && ($(".section_active").attr("section-name") == "ms...
ricosjp/siml
siml/__init__.py
<reponame>ricosjp/siml<gh_stars>10-100 """ SiML """ import toml from pathlib import Path from siml import datasets # NOQA from siml import inferer # NOQA from siml import networks # NOQA from siml import optimize # NOQA from siml import prepost # NOQA from siml import setting # NOQA from siml import study # NO...
vfx-rs/openexr-bind
openexr-c/include.in/imf_flatimage.h
<reponame>vfx-rs/openexr-bind #pragma once #include "openexr-api-export.h" #include <imf_pixeltype.h> #include <imf_tiledescription.h> #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif typedef struct Imath_3_0__Box_Imath_3_0__Vec2_int___t_s Imath_3_0__Box_Imath_3_0__Vec2_int___t; typedef Imath_3_0__Box_Ima...
nahratzah/monsoon_plus_plus
intf/include/monsoon/metric_value.h
<gh_stars>1-10 #ifndef MONSOON_METRIC_VALUE_H #define MONSOON_METRIC_VALUE_H ///\file ///\ingroup intf #include <monsoon/intf_export_.h> #include <cstdint> #include <functional> #include <string> #include <string_view> #include <monsoon/histogram.h> #include <monsoon/cache/allocator.h> #include <iosfwd> #include <typ...
zhuochu/mand-mobile-rn
samples/demo/chart/data-store.demo.js
import { Dimensions } from "react-native"; export const width = Dimensions.get("window").width - 40; //40 is card & container component paddings export const height = Math.round((width * 2) / 3); export const labels = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"];
linyingzhen/btnew
components/index.js
/** * const prefixCls = 'style-844716'; * const images = '/static/images/components'; * @Author: czy0729 * @Date: 2018-06-14 18:39:46 * @Last Modified by: czy0729 * @Last Modified time: 2018-11-02 11:26:54 * @Path m.benting.com.cn /components/index.js */ export { default as AffixTabs } from './AffixTabs'; exp...
getnacelle/nacelle-js
reference-stores/next/components/Nav/NavOverlay.js
<reponame>getnacelle/nacelle-js<filename>reference-stores/next/components/Nav/NavOverlay.js import { CSSTransition } from 'react-transition-group'; import { useUi } from 'hooks/useUi'; import styles from './NavOverlay.module.css'; const NavOverlay = () => { const { navVisible, setNavVisible } = useUi(); return ( ...
scscgit/XchangeCrypt-AndroidClient
app/src/main/java/bit/xchangecrypt/client/ui/BaseActivity.java
package bit.xchangecrypt.client.ui; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.DialogInterface; import android.util.Log; import android.view.View; import android.view.WindowManager; import android.v...
eltld/ezEngine
Code/Engine/Core/ResourceManager/ResourceBase.h
<reponame>eltld/ezEngine<gh_stars>0 #pragma once #include <Core/Basics.h> #include <Foundation/Strings/HashedString.h> #include <Foundation/IO/Stream.h> #include <Foundation/Reflection/Reflection.h> #include <Foundation/Time/Time.h> #include <Foundation/Time/Timestamp.h> #include <Core/ResourceManager/Implementation/D...
anduintransaction/rivendell
utils/templater.go
<reponame>anduintransaction/rivendell package utils import ( "bufio" "bytes" "crypto/sha256" "encoding/base64" "fmt" "io/ioutil" "path/filepath" "strings" "text/template" "github.com/Masterminds/sprig/v3" "github.com/palantir/stacktrace" ) var cwdStack = NewStringStack() // ExecuteTemplate . func Execute...
coocox/cox
CoX/CoX_Peripheral/CoX_Peripheral_KLx/libcox/xhw_wdt.h
<reponame>coocox/cox //***************************************************************************** // //! \file xhw_wdt.h //! \brief Macros and defines used when accessing the WATCHDOG hardware. //! \version V2.2.1.0 //! \date 11/14/2012 //! \author CooCox //! \copy //! //! Copyright (c) 2012, CooCox //! All rights...
dalayLama/2020-06-otus-java-skorik
hw08-json-object-writer/src/main/java/ru/otus/types/DefaultFactoryDefinerType.java
package ru.otus.types; import ru.otus.types.checkers.*; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Set; public class DefaultFactoryDefinerType implements FactoryDefinerType { private final Set<WritableTypeChecker> checkers = new HashSet<>(); private TypeD...
Daniel-Fonseca-da-Silva/Agilidade-e-TDD-um-dia-no-desenvolvimento-de-software
src/main/java/br/com/caelum/clines/api/airports/AircraftLocationView.java
<reponame>Daniel-Fonseca-da-Silva/Agilidade-e-TDD-um-dia-no-desenvolvimento-de-software package br.com.caelum.clines.api.airports; import lombok.AllArgsConstructor; import lombok.EqualsAndHashCode; import lombok.Getter; @Getter @AllArgsConstructor @EqualsAndHashCode public class AircraftLocationView { private Str...
norjs/nopg
src/scan.js
"use strict"; import is from '@norjs/is'; import debug from '@norjs/debug'; import Cache from './Cache.js'; /** Scan object(s) recursively and returns every scanned object mapped with identification property $id * @param objs {Array|object} Object or array of objects to scan * @returns {object} Object like `{'<ID>...
copyit/SBtream
sbtream-server/src/main/java/com/borber/sbtream/server/mapper/WatchHistoryMapper.java
package com.borber.sbtream.server.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.borber.sbtream.server.model.entity.WatchHistoryDO; /** * @author x * @description 针对表【watch_history(观看记录表)】的数据库操作Mapper * @createDate 2021-11-06 14:58:04 * @Entity com.borber.sbtream.server.model.entity.WatchH...
chrisGoad/prototypetrees
src/dom/dom1.js
<reponame>chrisGoad/prototypetrees<filename>src/dom/dom1.js<gh_stars>0 // Copyright 2019 <NAME> // License: MIT const domr = codeRoot.set("dom",core.ObjectNode.mk()); /* the two varieties of dom elements are svg.shape and html.Element * each particular element, such as an svg rect or an html div, is represented by i...
harry-wood/chef
cookbooks/mysql/libraries/mysql.rb
<filename>cookbooks/mysql/libraries/mysql.rb require "chef/mixin/command" require "rexml/document" class Chef class MySQL include Chef::Mixin::Command USER_PRIVILEGES = [ :select, :insert, :update, :delete, :create, :drop, :reload, :shutdown, :process, :file, :grant, :references, :index, :alter,...
cy4n/urlaubsverwaltung
src/main/java/org/synyx/urlaubsverwaltung/absence/AbsenceService.java
<filename>src/main/java/org/synyx/urlaubsverwaltung/absence/AbsenceService.java package org.synyx.urlaubsverwaltung.absence; import org.synyx.urlaubsverwaltung.person.Person; import java.time.LocalDate; import java.util.List; public interface AbsenceService { /** * Get all open absences for the given per...
sarang-apps/darshan_browser
chrome/android/javatests/src/org/chromium/chrome/browser/vr/WebXrVrConsentTestFramework.java
<reponame>sarang-apps/darshan_browser<filename>chrome/android/javatests/src/org/chromium/chrome/browser/vr/WebXrVrConsentTestFramework.java // Copyright 2019 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. package org.ch...
mikaelstaldal/caliban
core/src/main/scala-2/caliban/GraphQLWSOutputJsonCompat.scala
package caliban import caliban.interop.play.{ IsPlayJsonReads, IsPlayJsonWrites } import caliban.interop.zio.{ IsZIOJsonDecoder, IsZIOJsonEncoder } private[caliban] trait GraphQLWSOutputJsonCompat { implicit def playJsonReads[F[_]: IsPlayJsonReads]: F[GraphQLWSOutput] = caliban.interop.play.json.GraphQLWSOutp...
Mike-Leo-Smith/LuisaCompute
src/backends/cuda/cuda_ring_buffer.h
<reponame>Mike-Leo-Smith/LuisaCompute // // Created by Mike on 8/1/2021. // #pragma once #include <span> #include <cuda.h> #include <core/spin_mutex.h> #include <core/mathematics.h> #include <backends/cuda/cuda_error.h> namespace luisa::compute::cuda { class CUDARingBuffer { public: static constexpr auto alig...
neerajp99/evnt
speaker/client/src/components/talk/styles/talk.js
import styled from "styled-components"; export const TalkHeading = styled.h1` font-size: calc(1.1em + 1.3vw); position: relative; top: -14%; text-align: left; font-family: Lato; font-weight: 400; color: #22343b; @media (max-width: 1100px) { top: -8vh !important; } @media (max-width: 768px) { ...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/DeviceManagement/DMFRequestAirPlayMirroringResultObject.h
<gh_stars>10-100 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CATTaskResultObject.h" @interface DMFRequestAirPlayMirroringResultObject : CATTaskResultObject { unsigned long long _status; } + (BOOL)supportsSecureCoding...
VanirLab/vanir-gui-agent-linux
pulse/pulsecore-12.0/cpu-arm.h
<filename>pulse/pulsecore-12.0/cpu-arm.h #ifndef foocpuarmhfoo #define foocpuarmhfoo /*** This file is part of PulseAudio. Copyright 2004-2006 <NAME> Copyright 2009 <NAME> <<EMAIL>> PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Pub...
cap-lab/MidapSim
midap_software/fmem_info.py
from collections import deque from copy import copy from acc_utils.errors import CompilerError from config import cfg class Snapshot(object): def __init__(self): self._reserved_banks = None self._available_queue = None self._mapping_info = None def backup(self, fmem_info): ...
cquoss/jboss-4.2.3.GA-jdk8
messaging/src/main/org/jboss/mq/il/oil/OILClientILService.java
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
KiriBogach/sql-jpql-compiler
source/ZqlParserDemo/src/org/gibello/zql/ZOrderBy.java
<reponame>KiriBogach/sql-jpql-compiler<filename>source/ZqlParserDemo/src/org/gibello/zql/ZOrderBy.java /* * This file is part of Zql. * * Zql is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version...
nbtdev/teardrop
tech/Physics/HeightfieldShape.cpp
<reponame>nbtdev/teardrop<filename>tech/Physics/HeightfieldShape.cpp /****************************************************************************** Copyright (c) 2015 Teardrop Games Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S...
Playtika/nosql-batch-updater
batch-updater/src/test/java/nosql/batch/update/RecoveryTest.java
<gh_stars>1-10 package nosql.batch.update; import nosql.batch.update.wal.CompletionStatistic; import org.junit.Test; import java.util.concurrent.atomic.AtomicBoolean; import java.util.function.Consumer; import java.util.function.Predicate; import static nosql.batch.update.util.HangingUtil.hanged; import static org.a...
alfonsserra/java-pdf-generator
src/main/java/com/werfen/report/model/GridReportDataSource.java
package com.werfen.report.model; import net.sf.jasperreports.engine.JRField; import net.sf.jasperreports.engine.data.JRAbstractBeanDataSource; import java.util.Iterator; import java.util.Optional; public class GridReportDataSource extends JRAbstractBeanDataSource { private final GridPageDataSource dataSource; ...
james-s-willis/kotekan
lib/hsa/hsaInputData.hpp
#ifndef HSA_INPUT_DATA_H #define HSA_INPUT_DATA_H #include "hsaCommand.hpp" class hsaInputData : public hsaCommand { public: hsaInputData(kotekan::Config& config, const string& unique_name, kotekan::bufferContainer& host_buffers, hsaDeviceInterface& device); virtual ~hsaInputData(); int...
peacetrue/log
peacetrue-log-aspect/src/main/java/com/github/peacetrue/log/aspect/DefaultLogAspectService.java
<filename>peacetrue-log-aspect/src/main/java/com/github/peacetrue/log/aspect/DefaultLogAspectService.java package com.github.peacetrue.log.aspect; import com.github.peacetrue.aspect.AfterParams; import com.github.peacetrue.aspect.supports.DurationAroundInterceptor; import com.github.peacetrue.log.aspect.config.LogPoin...
yangge0301/jfinalshop-b2b2c
src/main/java/com/jfinalshop/controller/member/ReviewController.java
package com.jfinalshop.controller.member; import java.util.ArrayList; import java.util.List; import net.hasor.core.Inject; import com.jfinal.aop.Before; import com.jfinal.core.ActionKey; import com.jfinal.ext.route.ControllerBind; import com.jfinal.plugin.activerecord.Page; import com.jfinalshop.Pageable; import com...
ZorTsou/orc
java/tools/src/java/org/apache/orc/tools/PrintVersion.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 ...
dmgerman/gerrit
java/com/google/gerrit/sshd/SshPluginStarterCallback.java
<reponame>dmgerman/gerrit begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|// Copyright (C) 2012 The Android Open Source Project end_comment begin_comment comment|// end_comment begin_comment comment|// Licensed under the Apache License, Version 2.0 (the "License"); end_comment begi...
supersat/nnlib
hexagon/ops/src/op_add_f.c
<reponame>supersat/nnlib<filename>hexagon/ops/src/op_add_f.c /* * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the followi...
nodchip/QMAClone
src/test/java/tv/dyndns/kishibe/qmaclone/server/relevance/TrieCacheIntegrationTest.java
<filename>src/test/java/tv/dyndns/kishibe/qmaclone/server/relevance/TrieCacheIntegrationTest.java<gh_stars>10-100 package tv.dyndns.kishibe.qmaclone.server.relevance; import static org.hamcrest.Matchers.empty; import static org.hamcrest.Matchers.not; import static org.junit.Assert.assertThat; import java.util.List; ...
weucode/COMFORT
artifact_evaluation/data/codeCoverage/comfort_generate/287.js
var NISLFuzzingFunc = function(n, t) { var i = Object.create(null); var a = n.length; null === a && (a = 1), i.generateMarkup(t, a); }; var NISLParameter0 = [true]; var NISLParameter1 = [[[undefined, undefined, undefined], [[null, [false, true, true, false, false, true, false, false, false, true, false, tru...
PowerOlive/garnet
bin/debugserver/io_loop.cc
// 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. #include "io_loop.h" #include <unistd.h> #include <lib/async/cpp/task.h> #include <lib/async/default.h> #include "garnet/lib/debugger_utils/util.h" #inc...
wilebeast/FireFox-OS
B2G/gecko/toolkit/components/places/tests/autocomplete/test_enabled.js
/* 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/. */ /** * Test for bug 471903 to make sure searching in autocomplete can be turned on * and off. Also test bug 46353...
iootclab/openjdk
openjdk11/test/nashorn/script/basic/JDK-8130853.js
/* * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softw...
Tom1975/CPCCore
CPCCoreEmu/simple_filesystem.cpp
<filename>CPCCoreEmu/simple_filesystem.cpp #include "simple_filesystem.h" #ifdef MINIMUM_DEPENDENCIES #define PATH_SLASH '/' #define PATH_SLASH_STRING "/" namespace std::filesystem { path::path(const char* path_file) { path_ = path_file; } path path::filename() { int lg = path_.lengt...
stlyash/prutor
PuP4/Q3 (Ackermann Limited)/Ackermann Limited.py
# Defining a function to calculate ackermann, # Including globals to find base case of the recursion def acker(a,b): global numCalls,T if numCalls == T: return numCalls += 1 if a == 0: return b + 1 elif b == 0: return acker(a - 1,1) elif a > 0 and b > 0: return ac...
specs-feup/matisse
MatisseLib/src/org/specs/matisselib/passes/posttype/loopinterchange/MemoryLoopInterchangeFormat.java
<gh_stars>0 /** * Copyright 2017 SPeCS. * * 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...
Lyude/open-gpu-doc
classes/display/cl837d.h
<reponame>Lyude/open-gpu-doc /* * Copyright (c) 1993-2014, NVIDIA CORPORATION. All rights reserved. * * 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 with...
sunshl/incubator-weex
weex_core/Source/include/JavaScriptCore/bytecode/ValueProfile.h
/** * 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...
blockchainnativeapplications/framework
src/blockchain-native-core/src/main/java/org/blockchainnative/registry/ContractRegistry.java
package org.blockchainnative.registry; import org.blockchainnative.metadata.ContractInfo; import java.io.IOException; import java.util.Collection; /** * @author <NAME> */ public interface ContractRegistry { @SuppressWarnings("unchecked") <T extends ContractInfo> T getContractInfo(String contractIdentifier)...
srinunagulapalli/server
cmd/vela-server/secret.go
// Copyright (c) 2022 Target Brands, Inc. All rights reserved. // // Use of this source code is governed by the LICENSE file in this repository. package main import ( "github.com/go-vela/server/database" "github.com/go-vela/server/secret" "github.com/go-vela/types/constants" "github.com/sirupsen/logrus" "githu...
AsamK/dmix
MPDroid/src/main/java/com/namelessdev/mpdroid/helpers/CachedMPD.java
<gh_stars>0 /* * Copyright (C) 2010-2016 The MPDroid Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
kokeroulis/dagger-reflect
reflect/src/main/java/dagger/reflect/UnlinkedSubcomponentBinding.java
package dagger.reflect; import dagger.reflect.Binding.UnlinkedBinding; final class UnlinkedSubcomponentBinding extends UnlinkedBinding { static UnlinkedBinding forBuilder(Class<?> builderClass) { return new UnlinkedSubcomponentBinding(true, builderClass); } static UnlinkedBinding forFactory(Class<?> factor...
tf-enya/free5gc
lib/nas/nasType/NAS_IMEISVRequest_test.go
//go:binary-only-package package nasType_test import ( "free5gc/lib/nas/nasType" "testing" "github.com/stretchr/testify/assert" ) var SecurityModeCommandIMEISVRequestTypeIeiInput uint8 = 0x0E func TestNasTypeNewIMEISVRequest(t *testing.T) {} var nasTypePDUSessionEstablishmentRequestIMEISVRequestTable = []NasTy...
jj4jj/playground
app/ChannelProxyDispatcher.cpp
#include "base/stdinc.h" #include "base/Log.h" #include "ChannelMsgProxy.h" #include "channel/ChannelAgent.h" #include "ChannelProxyDispatcher.h" #include "channel/ChannelAgentMgr.h" #if 1 int ChannelProxyMessageDispatcher::DispatchMessage(ChannelAgent & agent , const ChannelMessage & msg) { LOG_DEBUG("recv a msg ...
dnuwa/farm-web
src/pages/partners.js
import Partners from 'containers/Partners'; export default Partners;