repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
noom1337/hawk-client
net/minecraft/client/gui/GuiCreateFlatWorld.java
<gh_stars>1-10 package net.minecraft.client.gui; import java.io.IOException; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.RenderHelper; import net.minecraft.client.renderer.Tessellator; import n...
408794550/871AR
Temp/il2cppOutput/il2cppOutput/AssemblyU2DCSharpU2Dfirstpass_EveryplayRecButtons_3262243951.h
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_Object2689449295.h" #include "UnityEngine_UnityEngine_Rect3681755626.h" // EveryplayRecButtons/TextureAtlasSrc struct TextureAtlasSrc_t2048635151; // Everyp...
bailingnan/CodingHistory
PAT-Code/A1061.Dating.cpp
#include<cstdio> #include<cstring> int main() { char week[7][4] = {"MON","TUE","WED","THU","FRI","SAT","SUN" }; char str1[61], str2[61], str3[61], str4[61]; scanf("%s%s%s%s", str1, str2, str3, str4); int len1, len2, len3, len4; len1 = strlen(str1); len2 = strlen(str2); len3 = strlen(str3); len4 = strlen(str4); ...
laxmilal-menaria/metamodel
spring/src/test/java/org/apache/metamodel/spring/PojoDataContextFactoryBeanDelegateTest.java
<filename>spring/src/test/java/org/apache/metamodel/spring/PojoDataContextFactoryBeanDelegateTest.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 ownersh...
Osmose/moseamp
musicplayer/plugins/aoplugin/aosdk/corlett.c
<gh_stars>1-10 /* Audio Overload SDK Copyright (c) 2007-2008, <NAME> and <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
wangxhao/spring-practice
spring-security-demo/src/main/java/com/xhao/config/WebMvcConfig.java
package com.xhao.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; /** * 创建时间:2017/1/17 15:02 * 作者:WangXianHao. * @author * 描述: * ...
welovekpop/wlk.yt-client
es/components/HeaderBar/AppTitle.js
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import IconButton from "@material-ui/core/es/IconButton"; import AboutIcon from "@material-ui/icons/es/ArrowDropDown"; import logo from '../../../assets/img/logo-square.png'...
Hellblazer/apollo
thoth/src/test/java/com/salesforce/apollo/thoth/AbstractDhtTest.java
<gh_stars>0 /* * Copyright (c) 2022, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ package com.salesforce.apollo.thoth; import static com.salesforce.apollo.crypto...
Hickeyer/codingdb
dist-primary/src/main/java/com/stylefeng/guns/modular/dist/service/ITaskService.java
<reponame>Hickeyer/codingdb package com.stylefeng.guns.modular.dist.service; import com.stylefeng.guns.common.persistence.model.User; public interface ITaskService { @Deprecated void upgradeLevel(String type); void clearData(User user); void clearAuthDB(); void upgradeLevelVersionTwo(String i...
HomeIncorporated/jhipster-holistic
mobile/rn/ios/Pods/Headers/Public/ReactNativeNavigation/RNNElementView.h
#import <UIKit/UIKit.h> @interface RNNElementView : UIView @property (nonatomic, strong) NSString* elementId; @property (nonatomic, strong) NSString* type; @property (nonatomic, strong) NSString* resizeMode; @property (nonatomic, strong) NSNumber* interactive; @property (nonatomic, strong) UIViewController* vc; @prop...
khoanguyencao/me218a
FrameworkHeaders/ES_Framework.h
/**************************************************************************** Module EF_Framework.h Description header file for use with the top level functions of the EF Event Framework Notes History When Who What/Why -------------- --- -------- 11/02/13 17:06 jec added ES_Post...
kenirwin/Suma
analysis/src/scripts/directives/sumaActivityFilter.js
'use strict'; angular.module('sumaAnalysis') .directive('sumaActivityFilter', function () { return { restrict: 'A', templateUrl: 'views/directives/activityFilter.html', scope: {acts: '='}, controller: ['$scope', function ($scope) { $scope.reset = function () { _.each($sc...
comfyneet/Yaof
include/Yaof/Misc/InputStream.hpp
#ifndef YAOF_MISC_INPUTSTREAM_HPP #define YAOF_MISC_INPUTSTREAM_HPP #include "Yaof/Core/Configuration.hpp" #include "Yaof/Misc/NonCopyable.hpp" namespace yf { class YAOF_DLL InputStream : public NonCopyable { public: InputStream() = default; virtual ~InputStream() = default; virt...
yannicklamprecht/Smart-Server-Tool
src/main/java/com/ysl3000/utils/valuemappers/mappers/WorldMapper.java
<filename>src/main/java/com/ysl3000/utils/valuemappers/mappers/WorldMapper.java<gh_stars>1-10 package com.ysl3000.utils.valuemappers.mappers; import com.ysl3000.utils.MessageWrapper; import com.ysl3000.utils.valuemappers.ValueMapper; import org.bukkit.World; /** * Created by ysl3000 */ public class WorldMapper impl...
BIBSYSDEV/nva-search-api
search-commons/src/main/java/no/unit/nva/search/models/IndexDocument.java
<reponame>BIBSYSDEV/nva-search-api package no.unit.nva.search.models; import static nva.commons.core.attempt.Try.attempt; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind....
Mercateo/rest-hateoas-client
src/main/java/com/mercateo/rest/hateoas/client/impl/ResponseImpl.java
<reponame>Mercateo/rest-hateoas-client /** * Copyright © 2016 Mercateo AG (http://www.mercateo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
curiousjgeorge/aws-sdk-cpp
aws-cpp-sdk-es/include/aws/es/model/ZoneAwarenessConfig.h
<filename>aws-cpp-sdk-es/include/aws/es/model/ZoneAwarenessConfig.h<gh_stars>1-10 /* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the Lice...
kaist-plrg/jest
data/generated/335.js
<gh_stars>1-10 var x = new Promise ( 0 ) ;
Chiracism/Front-Container
src/components/_dashboard/categorie/index.js
export { default as CategorieListToolbar } from './CategorieListToolbar'; export { default as CategorieMoreMenu } from './CategorieMoreMenu';
appsw/NewShopBKY
app/src/main/java/bai/kang/yun/zxd/mvp/ui/adapter/GoodsCategoryListAdapter.java
package bai.kang.yun.zxd.mvp.ui.adapter; import android.view.View; import com.jess.arms.base.BaseHolder; import com.jess.arms.base.DefaultAdapter; import java.util.List; import bai.kang.yun.zxd.R; import bai.kang.yun.zxd.mvp.model.entity.ReturnCategory; import bai.kang.yun.zxd.mvp.ui.holder.GoodsCategoryListItemHol...
kelby0320/mug
src/io_event/io_request_event.h
<filename>src/io_event/io_request_event.h #ifndef IO_REQUEST_EVENT_H #define IO_REQUEST_EVENT_H #include "routing_table.h" typedef struct { io_event_t event; struct mug_request *request; struct mug_response *response; routing_table_t *routing_table; } io_request_event_t; io_request_event_t* io_requ...
TairaSayo/magellan
graph/circle.go
<reponame>TairaSayo/magellan package graph import "github.com/hajimehoshi/ebiten" const defaultTexRadius = 512 var defaultCircle Tex func init() { defaultCircle = circleTex(defaultTexRadius) } func CircleTex() Tex { return defaultCircle } func circleTex(radius int) Tex { d := radius*2 + 1 img, _ := ebiten.New...
mentaljam/msugeo
library/src/logoimage.hpp
<gh_stars>1-10 #ifndef LOGOIMAGE_HPP #define LOGOIMAGE_HPP #include <cstring> #include <gdal_priv.h> /// @brief LogoImage image class class LogoImage { public: LogoImage() {} unsigned int width() { return 262; } ///< Number of columns in image unsigned int height() { return 130; } ///< Number of lines in ...
Chr0nos/motorized
motorized/client.py
<gh_stars>1-10 from typing import Optional from motor.motor_asyncio import AsyncIOMotorClient, AsyncIOMotorDatabase from contextlib import asynccontextmanager class Connection: client: AsyncIOMotorClient = None database: AsyncIOMotorDatabase = None async def connect(self, *args, **kwargs): print...
rollinhand/depot-ee
src/main/java/org/kivio/security/ShiroProducer.java
package org.kivio.security; import org.apache.shiro.SecurityUtils; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.session.Session; import org.apache.shiro.subject.Subject; import javax.enterprise.inject.Produces; import javax.inject.Singleton; /** * Producer for some of the important security ...
interactivefiction/gnome-inform7-chimara
interpreters/bocfel/random.h
#ifndef ZTERP_MT_H #define ZTERP_MT_H void seed_random(long); void zrandom(void); #endif
MintaiDS/White
Source/Engine/Graphics/Core/Game.h
#pragma once #include "Renderer.h" namespace White { namespace Engine { namespace Graphics { class Renderer; class Game { public: Game(Renderer& renderer); virtual void Play(); protected: Renderer& renderer; }; } } }
OluSure/Hacktoberfest2021-1
Contributions/C++ Practice Problems/creating a class.cpp
#include <iostream> #include <string> using namespace std; class Student { private: string name; int marks; public: void getDetails(); void setDetails(); }; void Student::setDetails() { cout << "Enter the name : " << endl; cin >> name; cout << "Enter total marks : " << endl; cin >> marks; ...
onap/vvp-engagementmgr
django/engagementmanager/tests/test_base_transaction_entity.py
<filename>django/engagementmanager/tests/test_base_transaction_entity.py # # ============LICENSE_START========================================== # org.onap.vvp/engagementmgr # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ======...
STEllAR-GROUP/hpxcl
tests/unit/opencl/cl_tests.hpp
// Copyright (c) 2013 <NAME> // // 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 <hpx/config.hpp> #include <hpx/hpx.hpp> #include <hpx/hpx_init.hpp> #include <hpx/util/lightweight_test.hpp> //#include...
woflydev/general-projects
diskreet-blockchain/ts/components/conversation/Emojify.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Emojify = void 0; const react_1 = __importDefault(require("react")); const defaultRenderNonEmoji...
LaterIdiot/LOLDirt-Bot
commands/Owner/perms.js
const Discord = require("discord.js"); const { color } = require("../../config.json"); module.exports = { name: "perms", description: "Finds all permissions of a player.", args: true, guildOnly: true, mention: true, usage: "<mention>", cooldown: 0, permission: "Bot Admin", async exe...
Cohort-4-Team-Ana-1/Frontend
src/components/RoomListed.js
<filename>src/components/RoomListed.js import React, { useEffect, useState } from "react"; import axios from "axios"; import void_heart from "../assets/void_heart.svg"; import { Link } from "react-router-dom"; import { useFetchFavorites } from "../hooks/useFetchFavorites"; export const RoomListed = () => { const cit...
dillonhafer/budgetal
mobile/src/utils/Progress.js
import React, { PureComponent } from "react"; import { colors } from "@shared/theme"; import styled from "styled-components/native"; const Outer = styled.View({ justifyContent: "center", backgroundColor: "#f1f1f1", borderColor: "#f1f1f1", borderWidth: 1, borderRadius: 10, height: 20, width: "100%", ove...
yinquan529/platform-external-chromium-trace
trace-viewer/src/cc/raster_task_slice_view_test.js
// Copyright (c) 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. 'use strict'; base.require('cc.raster_task_slice_view'); base.require('tracing.importer.trace_event_importer'); base.require('tracing.trace_model'); ...
harshp8l/deep-learning-lang-detection
data/train/scala/88642984ee5ca011ba67dcd3e1e8ea457368d1daTweetStreamBundle.scala
<gh_stars>10-100 package example.philmonroe.setup.bundles import io.dropwizard.ConfiguredBundle import io.dropwizard.setup.{Environment, Bootstrap} import example.philmonroe.DwExampleConfig import example.philmonroe.core.tweet_stream.{TweetProcessor, TweetProcessingPool, TweetStream} import example.philmonroe.healthch...
cryst-al/novoline
src/net/aP0.java
<filename>src/net/aP0.java package net; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderCreeper; import net.minecraft.util.ResourceLocation; public class aP0 { public static void a(RenderCreeper var0, ResourceLocation var1) { var0.bindTexture(var1); } pub...
yuriilychak/MantiCore
src/component/ui/ComUIElement.js
import ComUI from "./ComUI"; import Parser from "ui/parser/index"; import Type from "util/Type"; /** * @desc Base Class for create components from bundle. * @class * @extends MANTICORE.component.ui.ComUI * @memberOf MANTICORE.component.ui */ class ComUIElement extends ComUI { /** * @constructor * @...
nais/device
cmd/gateway-agent/main.go
<filename>cmd/gateway-agent/main.go<gh_stars>10-100 package main import ( "net/http" "path" "path/filepath" "time" "github.com/nais/device/pkg/basicauth" g "github.com/nais/device/pkg/gateway-agent" "github.com/nais/device/pkg/logger" "github.com/coreos/go-iptables/iptables" "github.com/nais/device/pkg/ver...
msharmavikram/gem5_experiments
build/ARM/python/_m5/param_MemObject.cc
<filename>build/ARM/python/_m5/param_MemObject.cc #include "pybind11/pybind11.h" #include "pybind11/stl.h" #include "params/MemObject.hh" #include "python/pybind11/core.hh" #include "sim/init.hh" #include "sim/sim_object.hh" #include "mem/mem_object.hh" namespace py = pybind11; static void module_init(py::module &m...
daniel486/cv-template
app/containers/CertificationField/index.js
<filename>app/containers/CertificationField/index.js<gh_stars>0 /* eslint-disable react/prop-types */ /* eslint-disable react/no-array-index-key */ /** * * CertificationField * */ import React, { useState } from 'react'; import { connect } from 'react-redux'; import { useInjectSaga } from 'utils/injectSaga'; impo...
sshockwave/Online-Judge-Solutions
AtCoder/Grand/24/E.cpp
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!='-'); bool neg=c=='-'; neg?c=getchar():0; whi...
aceunlonely/xget
plugins/integrate/input/file.js
<filename>plugins/integrate/input/file.js var fs = require('fs') var Type = (function() { var type = {}; var typeArr = ['String', 'Object', 'Number', 'Array','Undefined', 'Function', 'Null', 'Symbol','Boolean','RegExp']; for (var i = 0; i < typeArr.length; i++) { (function(name) { type[...
agave233/PaddleHelix
pahelix/networks/compound_encoder.py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
aballano/androidstarters.com
templates/googlesamples-mvp-clean/app/src/main/java/com/example/android/architecture/blueprints/todoapp/statistics/domain/model/Statistics.java
<gh_stars>100-1000 package <%= appPackage %>.statistics.domain.model; public class Statistics { private final int completedTasks; private final int activeTasks; public Statistics(int completedTasks, int activeTasks) { this.completedTasks = completedTasks; this.activeTasks = activeTasks; ...
JasonFengIce/IsmartvAppStore
recoTvFrame/src/main/java/reco/frame/tv/view/TvImageView.java
package reco.frame.tv.view; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import reco.frame.tv.TvBitmap; import android.annotati...
fabiojna02/OpenCellular
firmware/coreboot/src/security/vboot/vbnv.h
<gh_stars>1-10 /* * This file is part of the coreboot project. * * Copyright (C) 2016 Google Inc. * * This program 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; version 2 of the License. * * This pr...
Noorbakht/Offensive-Tweet-Detection
node_modules/rainbow-node-sdk/lib/services/AdminService.js
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
wilebeast/FireFox-OS
B2G/gecko/browser/base/content/test/browser_bug594131.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/. */ function test() { let newTab = gBrowser.addTab("http://example.com"); waitForExplicitFinish(); newTab.linked...
xiaolanchong/call_to_power2
ctp2_code/ui/ldl/ldl_list.h
#ifndef LDL_LIST_H__ #define LDL_LIST_H__ #include "ldl_attr.hpp" class ldl_attributelist { public: ldl_attribute *m_head; ldl_attribute *m_tail; ldl_attributelist() { m_head = m_tail = NULL; } ~ldl_attributelist() { ldl_attribute *del = m_head, *next; while(del) { next = del->m_next; delete del...
bennapp/game
back-end/wo/terrian_helper.go
package wo import ( "../dbs" "../gs" "../pnt" "../terr" ) func SetTerrain(coord gs.Coord, terrain terr.Terrain) { paint := dbs.LoadPaintByCoord(coord) if paint == nil { paint = pnt.NewPaintByTerrain(terrain) } else { paint.Terrain = terrain } dbs.SavePaintLocation(coord, paint) }
duranfatih/ccd-data-store-api
src/main/java/uk/gov/hmcts/ccd/domain/types/RegionValidator.java
<reponame>duranfatih/ccd-data-store-api<gh_stars>10-100 package uk.gov.hmcts.ccd.domain.types; import com.fasterxml.jackson.databind.JsonNode; import org.springframework.beans.factory.annotation.Qualifier; import uk.gov.hmcts.ccd.domain.model.definition.CaseFieldDefinition; import javax.inject.Inject; import javax.in...
hwangdeyu/onnxruntime
orttraining/orttraining/core/framework/mpi_setup.h
<reponame>hwangdeyu/onnxruntime #pragma once #ifdef USE_HOROVOD #include "orttraining/core/graph/horovod_adapters.h" #include <mpi.h> #endif namespace onnxruntime { namespace training { struct MPIContext { MPIContext(int world_rank = 0, int local_rank = 0, int world_size = 1, int local_size = 1); int world_rank;...
dybiszb/MeanCurvatureLibrary
code/external/libigl/external/embree/kernels/xeon/geometry/linei_intersector.h
// ======================================================================== // // Copyright 2009-2015 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
vbohinc/qpid-java
broker-core/src/main/java/org/apache/qpid/server/security/auth/manager/ScramSHA1AuthenticationManager.java
<reponame>vbohinc/qpid-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, Versi...
demarle/compute-runtime
opencl/test/unit_test/test_macros/test_checks_ocl.cpp
<reponame>demarle/compute-runtime<gh_stars>0 /* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "opencl/test/unit_test/test_macros/test_checks_ocl.h" #include "shared/source/device/device_info.h" #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/...
talshimoni/gimel
udc/udc-serv/src/main/java/com/paypal/udc/dao/rangerpolicy/RangerPolicyRepository.java
<gh_stars>100-1000 package com.paypal.udc.dao.rangerpolicy; import java.util.List; import org.springframework.data.repository.CrudRepository; import com.paypal.udc.entity.rangerpolicy.DerivedPolicy; public interface RangerPolicyRepository extends CrudRepository<DerivedPolicy, Long> { List<DerivedPolicy> findByP...
k8s-arya/lizthegrey-adventofcode
2018/day09.go
<reponame>k8s-arya/lizthegrey-adventofcode package main import ( "container/ring" "flag" "fmt" ) var numPlayers = flag.Int("numPlayers", 9, "The number of players.") var maxMarble = flag.Int("maxMarble", 25, "The maximum marble score.") func main() { flag.Parse() scores := make([]int, *numPlayers) pidx := -1 ...
saga-project/saga-cpp
external/u2nt/lib/dh_mem.c
<filename>external/u2nt/lib/dh_mem.c<gh_stars>1-10 /***************************************************************************** * * * DH_MEM.C * * ...
vxsd/refraction
src/game/shared/groundlink.h
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #ifndef GROUNDLINK_H #define GROUNDLINK_H #ifdef _WIN32 #pragma once #endif //---------------------------------------------------------------...
nafeu/audio-visualizer-starter
src/libraries/beads/src/beads_main/net/beadsproject/beads/ugens/TapIn.java
/* * This file is part of Beads. See http://www.beadsproject.net for all information. */ package net.beadsproject.beads.ugens; import java.util.Arrays; import net.beadsproject.beads.core.AudioContext; import net.beadsproject.beads.core.UGen; /** * TapIn stores and serves sound data. Can be used with Ta...
huahang/incubator-nuttx
mm/iob/iob_pack.c
<gh_stars>1-10 /**************************************************************************** * mm/iob/iob_pack.c * * Copyright (C) 2014 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
zealoussnow/chromium
chrome/browser/chromeos/extensions/ime_menu_event_router.cc
<reponame>zealoussnow/chromium<gh_stars>1000+ // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/extensions/ime_menu_event_router.h" #include <memory> #include <vector> ...
CourtHive/tods-competition-factory
src/drawEngine/generators/feedInChampionShip.js
import { getStageDrawPositionsCount } from '../../drawEngine/getters/stageGetter'; import structureTemplate from '../../drawEngine/generators/structureTemplate'; import { feedInLinks } from '../../drawEngine/generators/feedInLinks'; import { treeMatchUps, feedInMatchUps, } from '../../drawEngine/generators/eliminat...
amplia-iiot/opengate-angular-js
src/directives/onSelection.directive.js
<filename>src/directives/onSelection.directive.js 'use strict'; angular.module('opengate-angular-js').directive('onSelection', function(RangeService) { return { restrict: 'A', scope: false, link: function(scope, element, attrs) { var options = { snapToWord: ('sna...
nanjekyejoannah/pypy
rpython/rlib/_stacklet_n_a.py
from rpython.rlib import _rffi_stacklet as _c from rpython.rlib import debug from rpython.rlib.objectmodel import we_are_translated, specialize from rpython.rtyper.annlowlevel import llhelper class StackletGcRootFinder(object): @staticmethod @specialize.arg(1) def new(thrd, callback, arg): h = _c....
sait-berkeley-infosec/calcentral
spec/controllers/canvas_rosters_controller_spec.rb
<reponame>sait-berkeley-infosec/calcentral<filename>spec/controllers/canvas_rosters_controller_spec.rb require "spec_helper" describe CanvasRostersController do it "should return error if not authorized" do user_id = rand(99999) canvas_course_id = rand(999999).to_s session[:user_id] = user_id Canvas...
sorianos/profile-rest-api
projects_api/migrations/0063_airports_flightcosts.py
<reponame>sorianos/profile-rest-api # Generated by Django 2.2 on 2021-07-05 02:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('projects_api', '0062_auto_20210629_0250'), ] operations = [ migrations.Cr...
CapeDrew/DCMTK-ITK
Modules/IO/Stimulate/src/itkStimulateImageIO.cxx
<filename>Modules/IO/Stimulate/src/itkStimulateImageIO.cxx<gh_stars>1-10 /*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
GeorgeGorbanev/clickhouse-rails
spec/generators/install/install_generator_spec.rb
require_relative '../../rails_helper' require_relative '../../../lib/generators/clickhouse/install/install_generator' RSpec.describe Clickhouse::Generators::InstallGenerator, type: :generator do setup_default_destination it 'generates config/clickhouse.yml' do run_generator expect(file('config/clickhouse....
tfisher1226/ARIES
admin/admin-data/src/test/java/admin/dao/PermissionDaoIT.java
<filename>admin/admin-data/src/test/java/admin/dao/PermissionDaoIT.java<gh_stars>1-10 package admin.dao; import java.util.List; import org.aries.Assert; import org.aries.tx.AbstractDataIT; import org.aries.tx.TransactionRegistry; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org...
luetkemj/scribe
server/index.js
<filename>server/index.js // load the configuration import config from './config'; // load the mongo database import './mongo'; // load the express application import app from './express'; // initialize the configuration first! require('./config/init')(); const logger = require('./lib/logger')(); // output the confi...
sysidos/fuchsia
src/media/audio/audio_core/mix_stage.cc
<gh_stars>0 // Copyright 2019 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 "src/media/audio/audio_core/mix_stage.h" #include <lib/fit/defer.h> #include <lib/zx/clock.h> #include <limits> #include <trace/eve...
idsec-solutions/signservice-integration
pdf/src/test/java/se/idsec/signservice/integration/document/pdf/signpage/PdfSignaturePagePreferencesValidatorTest.java
<filename>pdf/src/test/java/se/idsec/signservice/integration/document/pdf/signpage/PdfSignaturePagePreferencesValidatorTest.java /* * Copyright 2019-2020 IDsec Solutions AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
fossabot/automate-1
components/automate-deployment/pkg/client/event_writer.go
package client import ( "github.com/pkg/errors" api "github.com/chef/automate/api/interservice/deployment" "github.com/chef/automate/components/automate-deployment/pkg/cli" ) const ( // Waiting status means we haven't started a deploy, a phase, // or a phase step Waiting api.DeployEvent_Status = api.DeployEven...
AyazRahman/wedgeedge
src/components/Header.js
<reponame>AyazRahman/wedgeedge import React, { Component } from "react"; import { Link } from "react-router-dom"; class Header extends Component { render() { return ( <header className="masthead" style={{ backgroundImage: `url(${this.props.image})` }} > <div className="contain...
ashtonmv/sphinx_vdw
sxaccelerate/src/math/SxGridMap3.h
<gh_stars>1-10 // --------------------------------------------------------------------------- // // The general purpose cross platform C/C++ framework // // S x A c c e l e r a t e // // Home: https://www.sxlib.de // License: Apache 2 // Authors: ...
vinirms/sites-responsivos
site arquiteto/node_modules/@fortawesome/free-brands-svg-icons/faPix.js
<reponame>vinirms/sites-responsivos<gh_stars>1-10 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fab'; var iconName = 'pix'; var width = 512; var height = 512; var aliases = []; var unicode = 'e43a'; var svgPathData = 'M242.4 292.5C247.8 287.1 257.1 287.1 262.5 292.5L339.5 36...
itisguptak/gitlabhq
config/initializers/secret_token.rb
# Be sure to restart your server when you modify this file. require 'securerandom' # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exp...
npocmaka/Windows-Server-2003
admin/netui/macprint/monitor/dialogs.hxx
/**********************************************************************/ /** Microsoft Windows/NT **/ /** Copyright(c) Microsoft Corp., 1991 **/ /**********************************************************************/ /* dialogs.hxx ...
sul-dlss/SearchWorks
app/models/concerns/solr_holdings.rb
<gh_stars>10-100 module SolrHoldings def holdings(live: false) @holdings ||= {} @holdings[live] ||= Holdings.new(live ? live_lookup_callnumbers : callnumbers, mhld) end def mhld return [] if self[:mhld_display].blank? @mhld ||= self[:mhld_display].map do |mhld_display| Holdings::MHLD.new(m...
marco-brandizi/ondex-knet-builder
ondex-desktop/ovtk2-modules/experimental/src/main/java/net/sourceforge/ondex/ovtk2/annotator/microarray/NodeSizeListener.java
<filename>ondex-desktop/ovtk2-modules/experimental/src/main/java/net/sourceforge/ondex/ovtk2/annotator/microarray/NodeSizeListener.java<gh_stars>1-10 package net.sourceforge.ondex.ovtk2.annotator.microarray; import javax.swing.JFormattedTextField; /** * A node listener for 2 Int JFormattedTextField that forces ...
mikeGHQ/Discord
src/store/reducers/dm.reducer.js
import _ from 'lodash'; export default (state, { type, payload }) => { switch (type) { case 'SET_FRIENDS': { let { friends } = payload; return { ...state, load_app: state.load_app + 1, dm: { ...state.dm, ...
hmrc/interest-restriction-return
test/v1/connectors/RevokeReportingCompanyConnectorSpec.scala
<filename>test/v1/connectors/RevokeReportingCompanyConnectorSpec.scala<gh_stars>0 /* * Copyright 2021 HM Revenue & Customs * * 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:...
AndriiMysko/travis-api
spec/lib/services/update_hook_spec.rb
describe Travis::Services::UpdateHook do include Travis::Testing::Stubs let(:service) { described_class.new(user, params) } let(:params) { { id: repo.id, active: true } } before :each do allow(repo).to receive(:update_column) allow(service).to receive(:run_service) allow(user).to receive(:service...
oleksandr-pavlyk/cpython
Include/cpython/warnings.h
#ifndef Py_CPYTHON_WARNINGS_H # error "this header file must not be included directly" #endif PyAPI_FUNC(int) PyErr_WarnExplicitObject( PyObject *category, PyObject *message, PyObject *filename, int lineno, PyObject *module, PyObject *registry); PyAPI_FUNC(int) PyErr_WarnExplicitFormat( P...
sjndhkl/redex
opt/obfuscate/ObfuscateUtils.cpp
<reponame>sjndhkl/redex /** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same di...
openem-team/openem
scripts/periodic_capture.py
<filename>scripts/periodic_capture.py import tator # For custom upload routine from tator.util._upload_file import _upload_file from tator.transcode.make_thumbnails import make_thumbnails from tator.transcode.transcode import make_video_definition from tator.transcode.make_fragment_info import make_fragment_info from t...
casualcore/casual
middleware/gateway/include/gateway/group/outbound/handle.h
//! //! Copyright (c) 2020, The casual project //! //! This software is licensed under the MIT license, https://opensource.org/licenses/MIT //! #pragma once #include "gateway/group/outbound/state.h" #include "common/message/dispatch.h" #include "common/communication/ipc.h" namespace casual { namespace gateway::...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/WordsResponse.h
<reponame>ceekay1991/AliPayForDebug<filename>AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/WordsResponse.h // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "GWBaseResponse.h" @...
XePeleato/ssj
src/main/java/umontreal/ssj/mcqmctools/florian/examples/ShortColumnFunctionVars.java
package umontreal.ssj.mcqmctools.florian.examples; import cern.colt.matrix.DoubleMatrix2D; import umontreal.ssj.mcqmctools.MonteCarloModelDoubleArray; import umontreal.ssj.probdist.NormalDist; import umontreal.ssj.randvarmulti.MultinormalPCAGen; import umontreal.ssj.rng.RandomStream; /** * This class can be used to ...
0x09/dspfun
include/longmath.h
#define M_El 2.718281828459045235360287471352662498L /* e */ #define M_LOG2El 1.442695040888963407359924681001892137L /* log_2 e */ #define M_LOG10El 0.434294481903251827651128918916605082L /* log_10 e */ #define M_LN2l 0.693147180559945309417232121458176568L /* log_e 2 */ #define M_LN10l 2.3025850...
borres/wxtproject
docbuilder/src/rc1_docbuilder/content/application.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package rc1_docbuilder.content; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java...
jnthn/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/mergeFilter/beforeOr.java
<reponame>jnthn/intellij-community<filename>java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/mergeFilter/beforeOr.java<gh_stars>1-10 // "Merge filter chain" "true" import java.util.stream.Stream; class Test { void foo(Stream<String> stringStream ) { stringStream.filt<caret>er(name -> name.startsW...
PavelZX/rekit-studio
src/features/diagram/OverviewDiagram.js
<filename>src/features/diagram/OverviewDiagram.js import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import * as d3 from 'd3'; import d3Tip from 'd3-tip'; import { getDepsDiagramByFeatureData } from './selectors/getDepsDiagramByFeatureData'; import colors from '../../c...
lee-hyeonseung/lab_dl
ch08/functional_api2.py
<reponame>lee-hyeonseung/lab_dl from tensorflow.keras import Input, Model from tensorflow.keras.layers import Dense, Add, concatenate """ GoogleNet: p.271 그림 8-11 ResNet: p.272 그림 8-12 """ # 입력 텐서 생성 input_tensor = Input(shape=(784,)) x1 = Dense(64, activation='relu')(input_tensor) x2 = Dense(64, activation='relu')(i...
SamMolokanov/todo
lib/app/models/item.rb
<filename>lib/app/models/item.rb<gh_stars>0 # frozen_string_literal: true require "dry-struct" module App module Models class Item < Dry::Struct transform_keys(&:to_sym) attribute :id, Types::String.default(proc { SecureRandom.uuid }.freeze) attribute :title, Types::String attribute :b...
Saknet/SensorObservationFrontend
node_modules/world-calendars/dist/regional/ms.js
/* * World Calendars * https://github.com/alexcjohnson/world-calendars * * Batch-converted from kbwood/calendars * Many thanks to Keith Wood and all of the contributors to the original project! * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this sourc...
Rhobota/librho
include/rho/ip/tcp/tServer.h
<filename>include/rho/ip/tcp/tServer.h #ifndef __rho_ip_tcp_tServer_h__ #define __rho_ip_tcp_tServer_h__ #include <rho/ppcheck.h> #include <rho/ip/tcp/tSocket.h> #include <rho/bNonCopyable.h> #include <rho/refc.h> #include <rho/types.h> namespace rho { namespace ip { namespace tcp { class tServer : public bNonCop...
rnarla123/aliyun-openapi-java-sdk
aliyun-java-sdk-alidns/src/main/java/com/aliyuncs/alidns/model/v20150109/DescribeDnsGtmAccessStrategyResponse.java
<reponame>rnarla123/aliyun-openapi-java-sdk /* * 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 agr...