repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
wthie/nevow
examples/customform/customform.py
################################################################################# # Example of using patterns to change the appearance of a webform. #from twisted.application import internet, service #from twisted.web import static from zope.interface import implements from nevow import rend from nevow import url fr...
Alfio00/EasterToken
src/components/Link/component.js
<reponame>Alfio00/EasterToken import React from "react" import Link from "next/link"; const LinkComponent = ({children,to, ...rest}) => { return <> <Link href={to}> {children} </Link> </> } export default LinkComponent
binodthapachhetry/JustInTimeAdaptiveIntervention
wearwocketslib/src/main/java/edu/neu/android/wearwocketslib/receivers/SystemBroadcastReceiver.java
<reponame>binodthapachhetry/JustInTimeAdaptiveIntervention package edu.neu.android.wearwocketslib.receivers; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.support.v4.content.WakefulBroadcastReceiver; import java.util.Date; import edu.neu.andro...
huige233/polymer-core
src/main/java/com/nmmoc7/polymercore/client/utils/schematic/control/MoveX.java
<gh_stars>0 package com.nmmoc7.polymercore.client.utils.schematic.control; import com.google.common.collect.Lists; import com.nmmoc7.polymercore.client.resources.Icons; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.TranslationTextComponent; impo...
Q2035/Spring-Framework
spring-sourcecode/src/main/java/top/hellooooo/sourcecode/charpter05/circle/CircleApplication.java
package top.hellooooo.sourcecode.charpter05.circle; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class CirCleApplication { public static void main(String[] args) { ApplicationContext applicationContext = new ClassPathXmlApp...
otto-ringhofer/vaactor
example/src/main/scala/org/vaadin/addons/vaactor/example/Example.scala
package org.vaadin.addons.vaactor.example import javax.servlet.annotation.WebServlet import ExampleObject.globalCnt import org.vaadin.addons.vaactor._ import com.vaadin.flow.component.button.Button import com.vaadin.flow.component.html.Label import com.vaadin.flow.component.orderedlayout.VerticalLayout import com.vaa...
GinesOrtiz/seriedb
src/app/components/common/console/console.component.js
<gh_stars>0 import controller from './console.controller'; import template from './console.html'; import './console.scss'; export default { controller, controllerAs: 'vm', template };
davilinfo/icbct21
spam/node_modules/@liskhq/lisk-api-client/dist-node/resources/dapps.js
<reponame>davilinfo/icbct21 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const api_method_1 = require("../api_method"); const api_resource_1 = require("../api_resource"); const constants_1 = require("../constants"); class DappsResource extends api_resource_1.APIResource { constructor...
hello-chenchen/design-patterns
src/main/java/com/cc/designpatterns/proxypattern/ProxyComponent.java
package com.cc.designpatterns.proxypattern; public class ProxyComponent implements Component { private ConcreateComponent concreateComponent = null; @Override public String operate() { if(null == concreateComponent) { concreateComponent = new ConcreateComponent(); } ret...
2868463718/spring-framework-5.2.0.RELEASE
spring-zy-web/src/main/java/zy/blue7/controller/TestController.java
<reponame>2868463718/spring-framework-5.2.0.RELEASE<filename>spring-zy-web/src/main/java/zy/blue7/controller/TestController.java package zy.blue7.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.R...
gdubicki/yamlpath
tests/test_wrappers_consoleprinter.py
import pytest from types import SimpleNamespace from ruamel.yaml.comments import CommentedMap, CommentedSeq, CommentedSet, TaggedScalar from ruamel.yaml.scalarstring import PlainScalarString, FoldedScalarString from yamlpath.enums import PathSegmentTypes from yamlpath.wrappers import NodeCoords, ConsolePrinter from ...
xSHAD0Wx/tiksrv
src/config/src/config.cpp
#include "config/config.hpp" #include <array> #include <string> namespace po = boost::program_options; namespace { constexpr std::array config_string_keys {"port", "backlog", "plugins", "config", "help", "version"}; } // namespace namespace ts::config { config::confi...
YB970902/BattlecityTeam1
BattleCity/Observer.h
#pragma once class GameEntity; class Observer { public: virtual ~Observer() = default; virtual void OnNotify(GameEntity* obj, eSubjectTag subjectTag, eEventTag eventTag) = 0; };
unfoldingWord-dev/tx-job-handler
all_obs_helps.py
#!/usr/bin/env python3 # # Copyright (c) 2021 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # TX WEBHOOK # # NOTE: This module name and function name are defined by the rq package and our own tx-enqueue-job package # This code adapted by RJH June 2018 from tx-manager/clie...
TheBator/szoftlab4
SuchTowers/app/src/main/java/hu/bme/aut/suchtowers/GameView.java
<filename>SuchTowers/app/src/main/java/hu/bme/aut/suchtowers/GameView.java package hu.bme.aut.suchtowers; import android.annotation.TargetApi; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import and...
Zenrer/p1xt-guides
evidence/tier-0/javascript/ryan_macdonald_intro_javascript_problems/is_substring.js
function isSubstring(searchString, subString) { return searchString.split(' ').includes(subString) } console.log(isSubstring("time to program", "time")) console.log(isSubstring("Jump for joy", "joys"))
twitter-zuiwanyuan/finatra
inject/inject-core/src/test/scala/com/twitter/inject/Test.scala
package com.twitter.inject import com.twitter.util.{Await, Future} import java.util.TimeZone import org.apache.commons.io.IOUtils import org.joda.time.{DateTimeZone, Duration} import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, Matchers, W...
colinRawlings/osparc-simcore
services/api-server/src/simcore_service_api_server/core/redoc.py
<filename>services/api-server/src/simcore_service_api_server/core/redoc.py from typing import Callable, Dict from fastapi import FastAPI from fastapi.applications import HTMLResponse, Request from fastapi.openapi.docs import get_redoc_html # TODO: move all these static resources away from the server! FAVICON = "http...
linksdl/futuretec-project-self_driving_cars_projects
introduction-for-point-cloud_open3d/demo/deer_demo.py
<reponame>linksdl/futuretec-project-self_driving_cars_projects """ # !/usr/bin/env python # -*- coding: utf-8 -*- @Time : 2022/3/6 21:53 @Author : <EMAIL> @ProjectName : introduction-for-point-cloud-open3d_v1 @File : deer_demo.py """ import open3d as o3d house = o3d.io.read_point_cloud("deer.ply")...
petrov9/chart-fx
chartfx-math/src/main/java/de/gsi/math/functions/Function1D.java
package de.gsi.math.functions; import java.security.InvalidParameterException; import de.gsi.dataset.DataSet; import de.gsi.dataset.spi.DefaultErrorDataSet; /** * generic one-dimensional function interface * * @author rstein */ public interface Function1D extends Function { /** * @param xmin min. x ran...
FxmlesXD/PVZ-Glitch
pvzclass/Classes/CardSlot.cpp
#include "..\PVZ.h" PVZ::CardSlot::CardSlot(int address) { BaseAddress = Memory::ReadMemory<int>(address + 0x144); } PVZ::CardSlot::SeedCard* PVZ::CardSlot::GetCard(int index) { if (index >= 0 && index < 10) return new SeedCard(BaseAddress + 0x24 + index * 0x50); else return NULL; }
deeptexas-ai/test
Common/script/src/csv_row.cpp
/** * \file csv_row.cpp * \brief csv脚本文件行数据类函数实现 */ #include "pch.h" #include "csv_row.h" #include "csv_adapter.h" namespace dtscript { /** * \brief 构造函数 */ CsvRow::CsvRow(void) { m_pAdapter = NULL; m_pData = NULL; m_nSize = 0; m_szData = NULL; } /** ...
StratifyLabs/LvglAPI
library/include/lvgl/Bar.hpp
#ifndef LVGLAPI_LVGL_BAR_HPP #define LVGLAPI_LVGL_BAR_HPP #include "ObjectAccess.hpp" namespace lvgl { class Range { public: Range() = default; Range(s16 minimum, s16 maximum) : m_minimum(minimum), m_maximum(maximum) {} static Range from_string(const var::StringView value) { // min is zero, string is expr...
SlipFil/DeleteBG
node_modules/@react-spectrum/radio/dist/module.js
<reponame>SlipFil/DeleteBG import "./main.css"; import {useStyleProps as $4hD9r$useStyleProps, useFocusableRef as $4hD9r$useFocusableRef, classNames as $4hD9r$classNames, useDOMRef as $4hD9r$useDOMRef} from "@react-spectrum/utils"; import {FocusRing as $4hD9r$FocusRing} from "@react-aria/focus"; import $4hD9r$react, {u...
dingxing123/game-server
game-engine/src/main/java/com/jzy/game/engine/mq/IMQScript.java
package com.jzy.game.engine.mq; import com.jzy.game.engine.script.IScript; /** * MQ 消息处理脚本 * @author JiangZhiYong * @QQ 359135103 * 2017年7月28日 上午10:39:14 */ public interface IMQScript extends IScript { /** * MQ消息接收处理 * @author JiangZhiYong * @QQ 359135103 * 2017年7月28日 上午10:39:59 * @p...
strategicallynicole/superscary
src/components/Heroes/threedee.js
<reponame>strategicallynicole/superscary import React, { useCallback, useEffect, useState, useRef } from 'react' import ReactDOM from 'react-dom' import { useSpring, animated as a } from 'react-spring' import './threedeestyles.css' import styled from 'styled-components' import Nav from './Nav' import ThreeDShapes from ...
Parametric/chef
chef-server-api/app/controllers/clients.rb
<filename>chef-server-api/app/controllers/clients.rb # # Author:: <NAME> (<<EMAIL>>) # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance w...
davidzchen/tajo
tajo-storage/tajo-storage-hdfs/src/main/java/org/apache/tajo/storage/text/CSVLineDeserializer.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...
thomasrobertz/web-tutorials
spring/spring-certification-spilca/lesson-13/src/main/java/com/laurentiuspilca/springsecurity/configuration/ProjectConfiguration.java
package com.laurentiuspilca.springsecurity.configuration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configura...
pritishd/PKD_Tools
DevDocs/html/navtreeindex2.js
<filename>DevDocs/html/navtreeindex2.js<gh_stars>1-10 var NAVTREEINDEX2 = { "class_p_k_d___tools_1_1lib_py_side_1_1_q_progress_dialog.html#aca95d57730094dfd3bac927b02a4f82f":[1,0,0,2,8,3], "class_p_k_d___tools_1_1lib_py_side_1_1_q_progress_dialog.html#afc2900db3f9920143d9d3425c6f9f524":[1,0,0,2,8,4], "class_p_k_d___too...
adamrvfisher/TechnicalAnalysisLibrary
IndexListMaker.py
<reponame>adamrvfisher/TechnicalAnalysisLibrary # -*- coding: utf-8 -*- """ @author: <NAME> - https://www.linkedin.com/in/adamrvfisher/ """ #This is a formatting tool for adding carrots to index names #so they can be added to SymbolList for scraping/dataRequisition #Import modules import pandas as pd #Read in text...
hadjri/evergreen
model/generate.go
<gh_stars>0 package model import ( "context" "github.com/evergreen-ci/evergreen" "github.com/evergreen-ci/evergreen/model/build" "github.com/evergreen-ci/evergreen/model/patch" "github.com/evergreen-ci/evergreen/model/task" "github.com/evergreen-ci/utility" "github.com/mongodb/grip" "github.com/mongodb/grip/m...
icsysky/LRS
ui/src/redux/modules/statements.js
import { Map, fromJS } from 'immutable'; import { handleActions } from 'redux-actions'; import { createSelector } from 'reselect'; const SET_STATEMENT_QUERY = 'learninglocker/statments/SET_STATEMENT_QUERY'; /* * Reducers */ const handler = handleActions({ [SET_STATEMENT_QUERY]: (state, action) => { const { qu...
mrkara/casper-sdk
src/main/java/com/syntifi/casper/sdk/model/clvalue/cltype/CLTypeByteArray.java
<gh_stars>0 package com.syntifi.casper.sdk.model.clvalue.cltype; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; /** * CLType for {@link AbstractCLType.BYTE_ARRAY} * * @author <NAME> * @author <NAME> * @see Abstract...
asaaki/ArangoDB
arangod/Utils/AhuacatlGuard.h
<gh_stars>10-100 //////////////////////////////////////////////////////////////////////////////// /// @brief resource holder for AQL queries with auto-free functionality /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// //...
kjthegod/chromium
chrome/browser/sync/glue/sync_backend_host_mock.h
<reponame>kjthegod/chromium // Copyright 2013 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. #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ #includ...
hectorj2f/hocl_compilerV2
src/fr/inria/hocl/core/hocli/ReactionRule.java
<reponame>hectorj2f/hocl_compilerV2 package fr.inria.hocl.core.hocli; import java.io.*; import java.util.Comparator; /** * This class represents a reaction rule. * */ abstract public class ReactionRule implements Atom, Serializable { private static final long serialVersionUID = -4561593662483581853L; public ...
luisriverag/verus-desktop
routes/api/erc20/rfox/migration.js
const ethers = require('ethers'); const RFOX_UTILITY_ABI = require('./abi'); const RFOX_UTILITY_CONTRACT = "0xD82F7e3956d3FF391C927Cd7d0A7A57C360DF5b9" module.exports = (api) => { api.erc20.rfox = {} api.setGet('/erc20/rfox/estimate_gas_claim_account_balances', async (req, res, next) => { try { res.se...
reismannnr2/BCDice
lib/bcdice/game_system/cthulhu7th/rollable.rb
<reponame>reismannnr2/BCDice module BCDice module GameSystem class Cthulhu7th < Base module Rollable private # 1D100の一の位用のダイスロール # 0から9までの値を返す # # @return [Integer] def roll_ones_d10 dice = @randomizer.roll_once(10) return 0 if dice == 10 ...
moayyadfaris/susanoo
config/sms.js
const { BaseConfig } = require('backend-core') const logger = require('../util/logger') class SMSConfig extends BaseConfig { constructor () { super() this.twilioAuthToken = this.set('TWILIO_AUTH_TOKEN', this.joi.string().min(5).max(100).required()) this.twilioAccountSid = this.set('TWILIO_ACCOUNT_SID', th...
MPOscar/sneakers-api
src/infra/repositories/layout/heading.js
const EntityNotFound = require('src/infra/errors/EntityNotFoundError') const { LayoutHeading } = require('src/domain/layout') const mapHeading = (headingDomain) => { let newHeadingDomain = LayoutHeading(headingDomain) newHeadingDomain.headingImgUrl = headingDomain.imgUrl return newHeadingDomain } const un...
dmitigr/cefeika
testo/testo.hpp
<reponame>dmitigr/cefeika // -*- C++ -*- // Copyright (C) 2021 <NAME> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for ...
gitoneman/react-soc
node_modules/react-datagrid/node_modules/ustring/node_modules/i-s/src/arguments.js
<reponame>gitoneman/react-soc 'use strict' var objectToString = Object.prototype.toString module.exports = function(value){ return objectToString.apply(value) === '[object Arguments]' || !!value.callee }
zzgchina888/msdn-code-gallery-microsoft
Microsoft Office Developer Documentation Team/SharePoint 2013 Office Web Widgets - Experimental Demo/[C#]-SharePoint 2013 Office Web Widgets - Experimental Demo/C#/OfficeWebWidgetsDemoWeb/Scripts/Utils.js
// Function to retrieve a query string value. // For production purposes you may want to use // a library to handle the query string. function getQueryStringParameter(paramToRetrieve) { var params = document.URL.split("?")[1].split("&"); var strParams = ""; for (var i = 0; i < params.length; i = i...
kasthor/react-cbridge
src/ts-proto/sgn/sync/v1/tx_pb.js
<filename>src/ts-proto/sgn/sync/v1/tx_pb.js // source: sgn/sync/v1/tx.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable m...
zsilbi/cphalcon
ext/phalcon/acl/adapter/abstractadapter.zep.h
<gh_stars>1-10 extern zend_class_entry *phalcon_acl_adapter_abstractadapter_ce; ZEPHIR_INIT_CLASS(Phalcon_Acl_Adapter_AbstractAdapter); PHP_METHOD(Phalcon_Acl_Adapter_AbstractAdapter, getActiveAccess); PHP_METHOD(Phalcon_Acl_Adapter_AbstractAdapter, getActiveRole); PHP_METHOD(Phalcon_Acl_Adapter_AbstractAdapter, get...
jmarranz/jnieasy
src/com/innowhere/jnieasy/core/impl/enhancer/model/signat/NativeFieldMethodSignatureEnhancerImpl.java
/* * NativeFieldMethodSignatureEnhancerImpl.java * * Created on 5 de septiembre de 2005, 12:32 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the ...
fqueiro/econtools
econtools/geo/krig.py
import numpy as np from scipy.spatial.distance import pdist, cdist from scipy.optimize import minimize import scipy.linalg as la import matplotlib.pyplot as plt from econtools.metrics.locallinear import llr def kriging_weights(X, y, X0, model_name='exp', mle_args=dict()): """ Calculate Simple Kriging weights...
camrun91/apollos-apps
packages/apollos-server-core/src/linking/index.js
/* eslint-disable import/prefer-default-export */ import ApollosConfig from '@apollosproject/config'; const defaultCreateRedirectLink = ({ platform }) => { if (platform === 'android') { return ApollosConfig.UNIVERSAL_LINKS.PLAY_STORE_LINK; } return ApollosConfig.UNIVERSAL_LINKS.APP_STORE_LINK; }; export fun...
knopflerfish/knopflerfish.org
osgi/bundles/logcommands/src/org/knopflerfish/bundle/logcommands/LogConfigCommandGroup.java
<reponame>knopflerfish/knopflerfish.org<filename>osgi/bundles/logcommands/src/org/knopflerfish/bundle/logcommands/LogConfigCommandGroup.java /* * Copyright (c) 2003-2013, KNOPFLERFISH project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted...
lottie-c/spl_tests_new
src/java/cz/cuni/mff/spl/evaluator/statistics/package-info.java
/** * <p> * Provides classes used for statistical evaluation of SPL comparisons. * <p> * Classes encapsulating simple statistical functions in Apache Commons Math library * (such as standard deviation, mean, median, minimum and maximum for double array). * <p> * Classes representing measurement samples and it...
codegeekgao/framework
Spring-Framerwork/src/main/java/com/codegeek/aop/day1/LogAspect.java
<reponame>codegeekgao/framework<gh_stars>0 package com.codegeek.aop.day1; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.*; import org.springframework.stereotype.Component; import java.util.Arrays; //@Aspect @Component public class LogAspect { ...
steven-zhc/hummingbird-framework
hummingbird-runtime/src/main/java/com/hczhang/hummingbird/eventlog/SimpleEventLog.java
package com.hczhang.hummingbird.eventlog; import com.hczhang.hummingbird.event.Event; import com.hczhang.hummingbird.model.AggregateRoot; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * A very simple event log implements. just log event data. * * Created by steven on 1/5/15. */ public class SimpleE...
rwcoding/goback
internal/acl/api_role_query.go
<gh_stars>0 package acl import ( "github.com/rwcoding/goback/models" "github.com/rwcoding/goback/pkg/api" "github.com/rwcoding/goback/pkg/boot" ) type roleQueryRequest struct { ctx *boot.Context RoleId uint32 `validate:"required,numeric,min=1" json:"role_id"` } type permission struct { Id uint32 `json...
somkiet073/ci-demos-dashbord
assets/DevExtreme/Demos/WidgetsGallery/Demos/ContextMenu/Basics/jQuery/data.js
<gh_stars>0 var contextMenuItems = [ { text: 'Share', items: [ { text: 'Facebook' }, { text: 'Twitter' }] }, { text: 'Download' }, { text: 'Comment' }, { text: 'Favorite' } ];
problemfighter/pfspring-feature-test-modules
rest-web/src/main/java/com/problemfighter/pfspring/webtestmodule/model/entity/Semester.java
<filename>rest-web/src/main/java/com/problemfighter/pfspring/webtestmodule/model/entity/Semester.java package com.problemfighter.pfspring.webtestmodule.model.entity; import com.problemfighter.pfspring.webtestmodule.model.common.EntityCommon; import javax.persistence.Column; import javax.persistence.Entity; import ja...
Bobinette/papernet
google/bolt/repository.go
<gh_stars>1-10 package bolt import ( "encoding/binary" "encoding/json" "github.com/boltdb/bolt" "github.com/bobinette/papernet/google" ) var googleBucket = []byte("google") type UserRepository struct { driver *Driver } func NewUserRepository(driver *Driver) *UserRepository { return &UserRepository{ driver...
DEShawResearch/fs123
core123/ut/ut_intuitive_compare.cpp
<gh_stars>10-100 // This file was retrieved from: // https://github.com/ITHare/util/blob/master/src/type/type.h // On Aug 6, 2021. The commit is: 6604970e2bf7b83355ca6aef107fc05bca4238dc // IT HAS BEEN MODIFIED // Lines modified in the original checkin are marked by the comment: //JKS /* Copyright (c) 2018, ITHa...
ToothlessTheNightFury/CreditCardVerification
Project 4/src/project4/Panel.java
package project4; public interface Panel { void onSettingsUpdated(); }
daher-alfawares/xr.desktop
sdk/physx/2.8.3/TrainingPrograms/Programs/Shared_Source/Terrain/tga.cpp
/*----------------------------------------------------------- This is a very simple TGA lib. It will only load and save uncompressed images in greyscale, RGB or RGBA mode. If you want a more complete lib I suggest you take a look at Paul Groves' TGA loader. Paul's home page is at http://paulyg.virtualave.net Ju...
rjw57/tiw-computer
emulator/src/mame/includes/taitosj.h
// license:BSD-3-Clause // copyright-holders:<NAME> #include "machine/taitosjsec.h" #include "machine/input_merger.h" #include "sound/dac.h" #include "sound/discrete.h" #include "sound/ay8910.h" #include "screen.h" class taitosj_state : public driver_device { public: taitosj_state(const machine_config &mconfig, ...
cosbi-research/qsp-cc
middleend/src/eu/cosbi/qspcc/tree/listeners/StatementsWalker.java
package eu.cosbi.qspcc.tree.listeners; import java.util.Deque; import eu.cosbi.qspcc.ast.AAST; import eu.cosbi.qspcc.ast.AASTNode; import eu.cosbi.qspcc.ast.NodeType; import eu.cosbi.qspcc.ast.attrs.NodeAttr; import eu.cosbi.qspcc.exceptions.GException; import eu.cosbi.qspcc.expressions.type.TypeDefinition.BType; /*...
moogacs/aws-sdk-go-v2
service/pi/doc.go
// Code generated by smithy-go-codegen DO NOT EDIT. // Package pi provides the API client, operations, and parameter types for AWS // Performance Insights. // // Amazon RDS Performance Insights Amazon RDS Performance Insights enables you to // monitor and explore different dimensions of database load based on data cap...
briefjudofox/expo
packages/html-elements/build/primitives/Text.js
<filename>packages/html-elements/build/primitives/Text.js import { Text as NativeText } from 'react-native'; const Text = NativeText; export default Text; //# sourceMappingURL=Text.js.map
HiltonRoscoe/exchangerxml
src/com/cladonia/xml/xdiff/XParser.java
/** * XDiff -- A part of Niagara Project * Author: <NAME> * * Copyright (c) Computer Sciences Department, * University of Wisconsin -- Madison * All Rights Reserved._ * * Permission to use, copy, modify and distribute this software and * its documentation is hereby granted, provided that bo...
wangjianxiandev/HappyCode
app/src/main/java/com/redant/codeland/scratchgame/fragment/LevelFragment.java
package com.redant.codeland.scratchgame.fragment; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.View...
pi0/node
session2/controlflow/asynchronous.js
<reponame>pi0/node function async(arg, callback) { console.log('do something with \'' + arg + '\', return 1 sec later'); setTimeout(function () { callback(arg * 2); }, 1000); } function final() { console.log('Done', results); } var items = [1, 2, 3, 4, 5, 6]; var results = []; items.forEach(fu...
mewbak/ferret
pkg/stdlib/arrays/union_distinct_test.go
package arrays_test import ( "context" "github.com/MontFerret/ferret/pkg/runtime/values" "github.com/MontFerret/ferret/pkg/stdlib/arrays" . "github.com/smartystreets/goconvey/convey" "testing" ) func TestUnionDistinct(t *testing.T) { Convey("Should union all arrays with unique values", t, func() { arr1 := val...
visit-dav/vis
src/common/plugin/PluginManager.h
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. // ************************************************************************* // // ...
owenmcateer/Motus
src/week_116/main.js
<gh_stars>100-1000 /** * Motus: The arista * https://owenmcateer.github.io/Motus-Art */ const canvasSize = 540; const lines = 18; let timer = 0; let boundary; // Setup function setup() { createCanvas(canvasSize, canvasSize); pixelDensity(2); } // Draw tick function draw() { background(10); strokeJoin(MIT...
Shashi-rk/azure-sdk-for-java
sdk/mysql/azure-resourcemanager-mysql/src/main/java/com/azure/resourcemanager/mysql/implementation/ServerAdministratorResourceImpl.java
<filename>sdk/mysql/azure-resourcemanager-mysql/src/main/java/com/azure/resourcemanager/mysql/implementation/ServerAdministratorResourceImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure...
Sheldan/abstracto
abstracto-application/abstracto-modules/moderation/moderation-impl/src/test/java/dev/sheldan/abstracto/moderation/job/WarnDecayJobTest.java
<gh_stars>1-10 package dev.sheldan.abstracto.moderation.job; import dev.sheldan.abstracto.core.models.database.AServer; import dev.sheldan.abstracto.core.service.FeatureFlagService; import dev.sheldan.abstracto.core.service.management.ServerManagementService; import dev.sheldan.abstracto.moderation.config.feature.Warn...
duonglvtnaist/Multi-ROMix-Scrypt-Accelerator
Software/CPU/myscrypt/build/cmake-3.12.3/Tests/MFC/mfc1/stdafx.h
<filename>Software/CPU/myscrypt/build/cmake-3.12.3/Tests/MFC/mfc1/stdafx.h // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, // but are changed infrequently #pragma once #ifndef VC_EXTRALEAN # define VC_EXTRALEAN // Exclude rarely-used stuff ...
cpreh/spacegameengine
plugins/opengl/src/occlusion_query/config.cpp
<gh_stars>1-10 // Copyright <NAME> 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <sge/opengl/common.hpp> #include <sge/opengl/occlusion_query/config.hpp> sge::opengl...
georgedeath/TAsK
src/DominationByPathCostBase.h
#ifndef DOMINATION_BY_PATH_COST_BASE #define DOMINATION_BY_PATH_COST_BASE #include "UsedTypes.h" class BiObjLabelContainer; class BiObjLabel; /** \brief Base class for path cost domination rule. Defines interface for derived classes and provides default implementation that doesn't do anything. */ class Dominatio...
theeksha101/problem_solving
Hackrnk_problems/MyFirstCode.py
n = int(input("Enter to test weird or not weird: ")) if n % 2 == 1: print("Weird") elif n % 2 == 0 and n in range(6, 21): print("Weird") else: print("Not Weird")
mhus-info/mhus-mongo
mongo-morphia/src/main/java/dev/morphia/logging/SilentLogger.java
<reponame>mhus-info/mhus-mongo<filename>mongo-morphia/src/main/java/dev/morphia/logging/SilentLogger.java /** * Copyright (C) 2019 <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the L...
github-clonner/youtrack-mobile
src/components/multiline-input/multiline-input.js
/* @flow */ import {TextInput, Platform} from 'react-native'; import React, {Component} from 'react'; const MAX_DEFAULT_HEIGHT = 200; const DEFAULT_FONT_SIZE = 16; const SPARE_SPACE = 16; type Props = { maxInputHeight: number, style: any }; type State = { inputHeight: ?number }; export default class Multiline...
spb14/slaq
packages/web-app/src/store/state.js
import { readLocalToken } from './helpers' // prepare const token = readLocalToken() const users = [] // expose product export default { token, users }
FeatureToggleStudy/halfpipe
mapper/mapper.go
package mapper import ( "github.com/spf13/afero" "github.com/springernature/halfpipe/manifest" ) type Mapper interface { Apply(original manifest.Manifest) (updated manifest.Manifest) } type mapper struct { mappers []Mapper } func (m mapper) Apply(original manifest.Manifest) (updated manifest.Manifest) { update...
teerapongt/marketplace-sample-apps
Play-Along/Freshworks-Huddle/August-2020/Freshteam-new-domains/Onboard-Employee/server/lib/index.js
'use strict'; const got = require('got'); const request = async (url, options) => { const response = await got[options.method](url, options); return response; }; exports = { request, };
zcswl7961/unit-common
util-leecode/src/main/java/com/zcswl/leecode/用Rand7实现Rand10.java
<gh_stars>1-10 package com.zcswl.leecode; /** * https://leetcode-cn.com/problems/implement-rand10-using-rand7/ * * 已有方法 rand7 可生成 1 到 7 范围内的均匀随机整数,试写一个方法 rand10 生成 1 到 10 范围内的均匀随机整数。 * * (randX() - 1)*Y + randY() 可以等概率的生成[1, X * Y]范围的随机数 * @author zhoucg * @date 2021-05-07 13:54 */ public class 用Rand7实现Rand10 ...
fabianklonsdorf/ixhh
node_modules/@carbon/icons/umd/shuffle/24.js
<reponame>fabianklonsdorf/ixhh (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Shuffle24 = factory()); }(this, (function () { 'use strict'; var _24 = { elem: 'svg...
aliahsan07/safe-development
tests/test262/8.12/8.12.3/S8.12.3_A2.js
<reponame>aliahsan07/safe-development var __obj = { }; { var __result1 = __obj.propFoo !== undefined; var __expect1 = false; } { var __result2 = __obj['propFoo'] !== undefined; var __expect2 = false; }
guillaume-plantevin/VeeSeeVSTRack
plugins/community/repos/ImpromptuModular/src/IMWidgets.hpp
//*********************************************************************************************** //Impromptu Modular: Modules for VCV Rack by <NAME> // //Based on code from Valley Rack Free by <NAME> //See ./LICENSE.txt for all licenses //********************************************************************************...
Rappsilber-Laboratory/xiFDR
src/main/java/org/rappsilber/fdr/OfflineFDR.java
<filename>src/main/java/org/rappsilber/fdr/OfflineFDR.java /* * Copyright 2015 <NAME> <<EMAIL> at staff<EMAIL>>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
docusmart/BlackLab
util/src/main/java/nl/inl/blacklab/index/ZipHandleManager.java
package nl.inl.blacklab.index; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Comparator; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.zip.ZipFile; import nl.inl.blacklab.exceptions.BlackLabRunti...
rocious/omaha
base/command_line_validator.cc
// Copyright 2008-2009 Google 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 ...
guidotack/gecode
contribs/qecode/qsolver_unblockable.hh
/**** , [ qsolverunblockable.hh ], Copyright (c) 2008 Universite d'Orleans - <NAME> 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 t...
l3onardo-oliv3ira/signer4j
src/gui/com/github/signer4j/gui/alert/ExpiredPasswordAlert.java
<reponame>l3onardo-oliv3ira/signer4j package com.github.signer4j.gui.alert; import javax.swing.JDialog; import javax.swing.JOptionPane; import com.github.signer4j.gui.utils.Images; import com.github.signer4j.imp.Config; public final class ExpiredPasswordAlert { private static final String MESSAGE_FORMAT = "A senh...
leechwin/algorithm
leetcode_20_valid-parentheses/Solution.java
<gh_stars>0 class Solution { public boolean isValid(String s) { HashMap<Character, Character> map = new HashMap<Character, Character>(); map.put('(', ')'); map.put('[', ']'); map.put('{', '}'); Stack<Character> stack = new Stack<Character>(); for (int i = 0; i < s.le...
mxl1n/CodeGen
data/transcoder_evaluation_gfg/cpp/MINIMUM_PRODUCT_SUBSET_ARRAY.cpp
// Copyright (c) 2019-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the license found in the // LICENSE file in the root directory of this source tree. // #include <iostream> #include <cstdlib> #include <string> #include <vector> #include <fstream> #include <iomanip> #include...
psavery/ParaView
Plugins/pvNVIDIAIndeX/include/nv/index/ievent_tracing.h
/****************************************************************************** * Copyright 2019 NVIDIA Corporation. All rights reserved. *****************************************************************************/ /// \file /// \brief API for reading tracing events. /// #ifndef NVIDIA_INDEX_ITRACE_EVENTS_H #defin...
bizo/aws-tools
emr/elastic-mapreduce-ruby-20131216/ec2_client_wrapper.rb
<filename>emr/elastic-mapreduce-ruby-20131216/ec2_client_wrapper.rb # # Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. require 'credentials' require 'aws/ec2' require 'aws/core/response' class Ec2ClientWrapper attr_accessor :commands, :logger, :options RETRIABLE_EXCEPTIONS = [AWS::...
lurnid/OpenRefine
main/src/com/google/refine/importers/tree/ImportRecord.java
/******************************************************************************* * Copyright (C) 2018, OpenRefine contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redis...
14ms/Minecraft-Disclosed-Source-Modifications
Skizzle/net/minecraft/potion/PotionHelper.java
/* * Decompiled with CFR 0.150. * * Could not load the following classes: * com.google.common.collect.Lists * com.google.common.collect.Maps */ package net.minecraft.potion; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import java.util.ArrayList; import java.util.Collection; ...
gregory-chekler/api
src/api/views.py
from django.shortcuts import render from django.http import JsonResponse from database.utils.json_response_wrapper import Json from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_GET, require_POST from database.utils.create_factory import CreateFactory from database.uti...
mewbak/cc-1
testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/compile/pr37432.c
static void print_wkb_byte(unsigned char val) { print_wkb_bytes((unsigned char *)&val, 1, 1); } void InsertMultiPoint(int b) { char a = 1; if (b) a = 0; print_wkb_byte(a); }
Sydney-Mobile-Application/OnTime-ToDo-App-React
src/pages/addToDoCalendar.js
import React from 'react'; import { StyleSheet, View, Text, Pressable, Alert } from 'react-native'; // import {Calendar, CalendarList, Agenda} from 'react-native-calendars'; import CalendarPicker from 'react-native-calendar-picker'; // import AddToDoTime from './addToDoTime'; export default function TermAndCondition (...
qq756585379/TZTV-iOS
TZTV/TZTV/Model/ShopCart/CartViewModel.h
<filename>TZTV/TZTV/Model/ShopCart/CartViewModel.h // // CartViewModel.h // TZTV // // Created by Luosa on 2016/11/30. // Copyright © 2016年 Luosa. All rights reserved. // #import <Foundation/Foundation.h> @interface CartViewModel : NSObject @property (nonatomic, strong) NSMutableArray *modelArray; /** 请求命令 */ @...