repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
betofigueiredo/carteirasDigitaisACEM
src/store/memberships/use_cases/storeCleared/index.js
export { default } from './storeCleared';
IUaenaSong/OnlineJudge
OnlineJudgeBE/Backend/src/main/java/com/iuaenasong/oj/manager/admin/role/AdminRoleManager.java
<gh_stars>0 /** * @Author LengYun * @Since 2022/01/13 14:28 * @Description */ package com.iuaenasong.oj.manager.admin.role; import com.iuaenasong.oj.dao.user.RoleEntityService; import com.iuaenasong.oj.pojo.entity.user.Auth; import com.iuaenasong.oj.pojo.entity.user.Role; import com.baomidou.mybatisplus.core.cond...
lenxin/spring-security
oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/oidc/authentication/package-info.java
/** * Support classes and interfaces for authenticating and authorizing a client with an * OpenID Connect 1.0 Provider using a specific authorization grant flow. */ package org.springframework.security.oauth2.client.oidc.authentication;
matcornic/cds
cli/cds/ui/monitoring.go
<reponame>matcornic/cds<filename>cli/cds/ui/monitoring.go package ui import ( "encoding/json" "fmt" "net/url" "sort" "strconv" "strings" "time" "github.com/gizak/termui" "github.com/ovh/cds/cli" "github.com/ovh/cds/sdk" ) func (ui *Termui) showMonitoring() { termui.Body.Rows = nil ui.queue = cli.NewScr...
MantledIllusion/hura
hura-web/src/main/java/com/mantledillusion/injection/hura/web/HuraWebEnvironment.java
<filename>hura-web/src/main/java/com/mantledillusion/injection/hura/web/HuraWebEnvironment.java<gh_stars>0 package com.mantledillusion.injection.hura.web; import com.mantledillusion.injection.hura.core.Blueprint; import com.mantledillusion.injection.hura.core.annotation.instruction.Define; class HuraWebEnvironment im...
fredxfred/pinot
pinot-core/src/test/java/com/linkedin/pinot/core/data/partition/PartitionFunctionTest.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...
jonggyup/RequestOrganizer
Code/drivers/media/i2c/adv748x/adv748x-core.c
/* * Driver for Analog Devices ADV748X HDMI receiver with AFE * * Copyright (C) 2017 Renesas Electronics Corp. * * 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; either version 2 of t...
SakthivelMKS/finezoom-java-may2018
Java_Trainning/src/com/bluescope/java/training/JavaClassObjectExample.java
package com.bluescope.java.training; import java.util.ArrayList; public class JavaClassObjectExample { public static void main(String args[]) { excute ex =new excute(); ex.auther="Balagurusamy"; ex.bookname="J2EE"; ex.price=3000; String jj=ex.bookDetails(); System.out.println("The return value:"+jj); } ...
salamanderrex/CSE291DS
project2/conformance/rmi/SkeletonTest.java
<filename>project2/conformance/rmi/SkeletonTest.java package conformance.rmi; import test.*; import rmi.*; import java.net.*; /** Performs basic tests on the public interface of {@link rmi.Skeleton}. <p> The tests performed are: <ul> <li>Both <code>Skeleton</code> constructors reject classes.</li> ...
Sakshi14-code/CompetitiveCodingQuestions
Backtracking/Word Break.cpp
<filename>Backtracking/Word Break.cpp #include<bits/stdc++.h> #include<cmath> #include<climits> #define test ll t; cin>>t; while(t--) #define rep0(n) for(ll i=0;i<(n);i++) #define rep1(n) for(ll i=1;i<=(n);i++) using namespace std; typedef long long ll; ll len,n; unordered_set<string> dict; bool searchInDict(string wor...
AkashSDas/DataStructures-and-Algorithms
data-structures/recursion/power.py
<gh_stars>0 def power(num, raised_to, count=1): # Handling raised to 0 condition if raised_to == 0: return 1 if raised_to == count: return num return num * power(num, raised_to, count + 1) print(power(2, 5)) # Another way def power_2(num, raised_to): if raised_to == 0: r...
ClearControl/ClearCLIJ
src/main/java/net/haesleinhuepf/clij/macro/modules/Crop2D.java
package net.haesleinhuepf.clij.macro.modules; import net.haesleinhuepf.clij.clearcl.ClearCLBuffer; import net.haesleinhuepf.clij.clearcl.ClearCLImage; import net.haesleinhuepf.clij.kernels.Kernels; import net.haesleinhuepf.clij.macro.AbstractCLIJPlugin; import net.haesleinhuepf.clij.macro.CLIJMacroPlugin; import net.h...
exactpro/clearth
clearth-core/src/main/java/com/exactprosystems/clearth/Digester.java
<reponame>exactpro/clearth /****************************************************************************** * Copyright 2009-2019 Exactpro Systems Limited * https://www.exactpro.com * Build Software to Test Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
etaty/akka
akka-actor-tests/src/test/scala/akka/performance/trading/domain/Order.scala
<reponame>etaty/akka package akka.performance.trading.domain trait Order { def orderbookSymbol: String def price: Long def volume: Long def nanoTime: Long def withNanoTime: Order } case class Bid( orderbookSymbol: String, price: Long, volume: Long, nanoTime: Long = 0L) extends Order { def split...
AlexeyMochalov/firebird
src/intl/lc_ascii.cpp
/* * PROGRAM: InterBase International support * MODULE: lc_ascii.cpp * DESCRIPTION: Language Drivers in the binary collation family. * * The contents of this file are subject to the Interbase Public * License Version 1.0 (the "License"); you may not use this file * except in compliance with the License. You may...
DigitalDataChainConsortium/vdi2770
vdi2770-core/src/test/java/de/vdi/vdi2770/metadata/xml/ExampleXmlReadXmlTest.java
/******************************************************************************* * Copyright (C) 2021 <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, inclu...
htw0056/blog
java/code/scope-test/src/main/java/com/htw/study/scopetest/provider/SingletonProviderBean.java
package com.htw.study.scopetest.provider; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.ObjectFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import javax.inject.Provider; /** * Created by htw on 2019/3/1. */ @Sl...
shileiyu/ncore
ncore/algorithm/cityhash.cpp
// Copyright (c) 2011 Google, Inc. // // 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 // to use, copy, modify, merge, pub...
DimensionalRobos/InappExp
app/InappExp-Java/src/org/drobos/SentiAnalyzer.java
<filename>app/InappExp-Java/src/org/drobos/SentiAnalyzer.java package org.drobos; /** * Analyzes Sentiments after being tagged and returns the main descriptor for inappropriateness */ import java.io.IOException; import java.util.LinkedList; import java.util.logging.Level; import java.util.logging.Logger; /** * *...
Ryan-hou/leetcode
src/main/java/com/github/ryan/algorithm/leetcode/easy/easy414/Solution.java
package com.github.ryan.algorithm.leetcode.easy.easy414; import java.util.HashSet; import java.util.PriorityQueue; import java.util.Set; /** * @author <EMAIL> * @description * @className Solution * @date November 30,2018 */ public class Solution { public int thirdMax(int[] nums) { assert nums != nul...
Sam-Fuller/Game_workspace
Game/src/entity/enemy/staticMelee/Spikes.java
package entity.enemy.staticMelee; import colour.Colour; import entity.Player; import graphics.Mesh; import graphics.MeshBuilder; import loader.TextureLoader; import runnable.Graphics; import state.World; public class Spikes extends StaticMelee { static final int dHeight = 1; static final int dWidth = 1; public st...
HackYourFuture-CPH/fp-class18
src/client/components/TotalPriceCard/TotalPriceCard.stories.js
import React from 'react'; import TotalPrice from './TotalPriceCard.component'; export default { title: 'Components / TotalPriceCard', component: TotalPrice, }; // eslint-disable-next-line react/jsx-props-no-spreading export const GrandTotalPrice = (args) => <TotalPrice {...args} />; GrandTotalPrice.args = { sub...
readmeio/markdown
sanitize.schema.js
<filename>sanitize.schema.js<gh_stars>10-100 const { defaultSchema: sanitize } = require('hast-util-sanitize/lib/schema'); // Sanitization Schema Defaults sanitize.clobberPrefix = ''; sanitize.tagNames.push('span', 'style'); sanitize.attributes['*'].push('class', 'className', 'align', 'style'); sanitize.tagNames.pus...
gublan24/umpleSPLFull
umpleSPL/src-gen-umple/cruise/umple/compiler/TemplateException.java
<reponame>gublan24/umpleSPLFull /*PLEASE DO NOT EDIT THIS CODE*/ /*This code was generated using the UMPLE 1.31.1.5860.78bb27cc6 modeling language!*/ package cruise.umple.compiler; import cruise.umple.parser.Token; import cruise.umple.parser.Position; import cruise.umple.parser.ErrorMessage; /** * class TemplateExce...
jeanbez/spack
var/spack/repos/builtin/packages/py-pytest-qt/package.py
<reponame>jeanbez/spack # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyPytestQt(PythonPackage): """A pytest plugin that allows...
franticsoftware/starports
Game/src/game/SFXManager.cpp
<reponame>franticsoftware/starports /* <NAME> Created: May 18th 2013 */ #include "Game.h" #include "ExplosionVisitor.h" #include "SequenceVisitor.h" #include "DelayVisitor.h" #include "RemoveEntityVisitor.h" #include "AudioManager.h" #include "ParticleGenerator.h" #include "EffectEntity.h" #include "GameCamera.h" ...
TsvetomirNikolov/swift
16. Regex, Lambda, JUnit/MavenProject/src/test/java/rpg_tests/AxeTests.java
package rpg_tests; import SoftuniClasses.Axe; import SoftuniClasses.Dummy; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; public class AxeTests { @Test(expected = Ill...
zhangpf/fuchsia-rs
src/developer/bugreport/client/main.cc
// 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 <filesystem> #include <fstream> #include <iostream> #include "src/developer/bugreport/client/bug_report_handler.h" #include "src/lib/fxl/command_...
lechium/tvOS135Headers
System/Library/PrivateFrameworks/UIKitCore.framework/_UIScreenEdgePanRecognizerDwellSettings.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:45:26 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>....
JasperFloorBloomreach/gov-scot
site/components/src/main/java/scot/gov/www/components/RedirectComponent.java
<filename>site/components/src/main/java/scot/gov/www/components/RedirectComponent.java package scot.gov.www.components; import org.apache.commons.lang.StringUtils; import org.hippoecm.hst.component.support.bean.BaseHstComponent; import org.hippoecm.hst.content.beans.query.HstQuery; import org.hippoecm.hst.content.bean...
stripe/tracer-objc
Tracer/TRCPlayer.h
<gh_stars>10-100 // // TRCPlayer.h // Tracer // // Created by <NAME> on 2/22/19. // Copyright © 2019 tracer. All rights reserved. // #import <Foundation/Foundation.h> #import "TRCBlocks.h" @class TRCTrace; @protocol TRCFixtureProvider; NS_ASSUME_NONNULL_BEGIN /** Trace player */ NS_SWIFT_NAME(TracePlayer) @...
bradh/skylight-uas
src/skylight-autopilot/src/main/java/br/skylight/uav/plugins/control/pids/SkylightPIDWorker.java
package br.skylight.uav.plugins.control.pids; import br.skylight.commons.dli.skylight.PIDConfiguration; import br.skylight.commons.dli.skylight.SkylightVehicleConfigurationMessage; import br.skylight.commons.dli.vehicle.VehicleConfigurationMessage; import br.skylight.uav.plugins.control.Pilot; import br.skylight...
webersongao/WBSBlog
WBSBlog/Main/Controller/WBSHorizonalTableViewController.h
<reponame>webersongao/WBSBlog // // WBSHorizonalTableViewController.h // WBSBlog // // Created by Weberson on 16/7/20. // Copyright © 2016年 Weberson. All rights reserved. // #import <UIKit/UIKit.h> @interface WBSHorizonalTableViewController : UITableViewController @property (nonatomic, strong) NSArray *controlle...
ssinno28/Marionette.EntityView
views/reusableTypes/pager/PagerListView.js
var PagerListView; (function ($, _, Backbone, Marionette, PagerItemView) { PagerListView = Marionette.CollectionView.extend({ tagName: 'ul', className: 'pagination', initialize: function (options) { _.extend(this, options); }, childView: PagerItemView, ...
m-wrona/gwt-medicapital
server/com/medicapital/server/access/gwtrpc/PatientEvaluationCommandExecutor.java
<gh_stars>0 package com.medicapital.server.access.gwtrpc; import java.util.Set; import com.medicapital.common.commands.entity.SelectCommand; import com.medicapital.common.commands.entity.SelectCommandResp; import com.medicapital.common.commands.entity.SelectCountCommand; import com.medicapital.common.commands.en...
renaisaalves/Python-CursoemVideo
exercicios/ex007.py
#7: Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua média. n1 = float(input('Primeira nota: ')) n2 = float(input('Segunda nota: ')) m = (n1 + n2) / 2 print('A média entre {} e {} é igual a {:.1f}' . format(n1, n2, m))
maurizioabba/rose
tests/RunTests/PythonTests/test2011_034.py
<filename>tests/RunTests/PythonTests/test2011_034.py def foo0(*args): print args def bar0(**kwargs): print kwargs def baz0(*args, **kwargs): print args, kwargs def foo1(x, *args): print x, args def bar1(x, **kwargs): print x, kwargs def baz1(x, *args, **kwargs): print x, args, kwargs def foo2(x,...
pile-contributors/pile-contributors.github.io
docpiles/grouplistwidget/html/search/functions_f.js
var searchData= [ ['wheelevent',['wheelEvent',['../class_group_list_widget.html#a64665c0495dcac59ba3166410e60ab1f',1,'GroupListWidget']]] ];
heng-gezhizou/gulimall
gulimall-coupon/src/main/java/com/adtec/gulimall/coupon/dao/SeckillSkuRelationDao.java
<gh_stars>0 package com.adtec.gulimall.coupon.dao; import com.adtec.gulimall.coupon.entity.SeckillSkuRelationEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 秒杀活动商品关联 * * @author hgzz * @email <EMAIL> * @date 2020-09-15 21:42:21 */ @Mapper publi...
Xrysnow/cocos2d-x-gfx
backend/pipeline/PipelineSceneData.h
/**************************************************************************** Copyright (c) 2020-2022 <NAME> Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwi...
hallba/Sidekick
Sidekick_4.5/GenerateOligomerCGSystem.py
#!/usr/bin/python from __future__ import with_statement import sys,os,pdbio from HAConf import configuration,programs,debug_status from LipidBox import add_solvent_dppc, add_solvent_dlpc, add_solvent_dopc, add_solvent_popc from MDPGenerator import replace_seed, replace_steps import AutomatedPlot, PeptideBuild, Gener...
abaire/xbdm_gdb_bridge
src/xbox/xbox_interface.h
<gh_stars>1-10 #ifndef XBDM_GDB_BRIDGE_SRC_XBOX_XBOX_INTERFACE_H_ #define XBDM_GDB_BRIDGE_SRC_XBOX_XBOX_INTERFACE_H_ #include <boost/asio/thread_pool.hpp> #include <future> #include <list> #include <memory> #include <string> #include "gdb/gdb_packet.h" #include "net/ip_address.h" class DelegatingServer; class GDBBri...
oshai/vertx-examples
core-examples/src/main/java/io/vertx/example/core/verticle/worker/WorkerVerticle.java
package io.vertx.example.core.verticle.worker; import io.vertx.core.AbstractVerticle; /** * An example of worker verticle */ public class WorkerVerticle extends AbstractVerticle { @Override public void start() throws Exception { System.out.println("[Worker] Starting in " + Thread.currentThread().getName()...
ScottKirvan/pinmame
src/cpu/i8051/i8051.c
/***************************************************************************** * * i8051.c * Portable MCS-51 Family Emulator * * Chips in the family: * 8051 Product Line (8031,8051,8751) * 8052 Product Line (8032,8052,8752) * 8054 Product Line (8054) * 8058 Product Line (8058) * * Copyright (c) ...
vsuzarte/ekoob
src/main/java/com/aztec/koob/validadores/ValidadorData.java
<gh_stars>0 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.aztec.koob.validadores; import java.sql.Date; import java.text.SimpleDateFormat; /** * * @autho...
almmessias/CursoPython
ex035.py
<gh_stars>0 r1 = float (input ('Primeiro lado: ')) r2 = float (input ('Segundo lado: ')) r3 = float (input ('Terceiro lado: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print ('Os lados acima podem formar triangulo') else: print ('Os lados acima não podem formar triangulo')
Kuruka/editor-framework
lib/share/ipc.js
'use strict'; const Electron = require('electron'); let _ipc = null; if ( Editor.isCoreLevel ) { _ipc = Electron.ipcMain; } else { _ipc = Electron.ipcRenderer; } /** * @module Editor */ /** * This option is used to indicate that the channel should not send to self. * It must be supplied as the last argumen...
leszekbednorz/miru
miru-writer-deployable/src/main/java/com/jivesoftware/os/miru/writer/deployable/MiruWriterEndpoints.java
package com.jivesoftware.os.miru.writer.deployable; import javax.inject.Singleton; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.R...
sainsk/99-problems
java8/src/main/java/com/saikiran/ninetynine_problems/_02_arithmetic/P32.java
package com.saikiran.ninetynine_problems._02_arithmetic; import java.util.ArrayList; import java.util.List; import java.util.stream.IntStream; /** * (**) Determine the prime factors of a given positive integer. */ public class P32 { public static List<Integer> primeFactors(int number) { List<Integer> f...
recallsong/sogw
sogw/proxy/core/lambda.go
<filename>sogw/proxy/core/lambda.go package core func (a *Api) EvalLambda(ctx *RequestContext, text string) error { // not implement yet ctx.ReqCtx.WriteString("lambda expression is not implement yet.") return nil }
XEOCORP/eniobot
node_modules/dbd.js/package/functions/funcs/awaitMessages.js
const interpreter = require("../../interpreter") const ms = require("ms") const embed = require("../../handlers/errors") module.exports = async d => { const code = d.command.code const r = code.split("$awaitMessages").length - 1 const inside = code.split("$awaitMessages[")[r].split("]")[0] ...
somish/padlock-pilot
padlock-master/frontend/src/Components/LoginForm.js
<filename>padlock-master/frontend/src/Components/LoginForm.js<gh_stars>1-10 import React, { useContext, useRef, useState } from 'react' import { Alert, Button, Modal, Spinner } from 'react-bootstrap' import { useHistory } from 'react-router-dom' import { MenuItem, Paper, Grow, Popper, MenuList, ClickAwayListener } from...
Songner/image_classfication
ImageProcessing-Python/blog25-lvjing/blog25-image05.py
<reponame>Songner/image_classfication<gh_stars>0 #coding:utf-8 import cv2 import numpy as np #获取滤镜颜色 def getBGR(img, table, i, j): #获取图像颜色 b, g, r = img[i][j] #计算标准颜色表中颜色的位置坐标 x = int(g/4 + int(b/32) * 64) y = int(r/4 + int((b%32) / 4) * 64) #返回滤镜颜色表中对应的颜色 return lj_map[x][y] ...
wuguowei19880907/cas
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/policy/RestfulAuthenticationPolicyTests.java
<reponame>wuguowei19880907/cas package org.apereo.cas.authentication.policy; import org.apereo.cas.authentication.CoreAuthenticationTestUtils; import org.apereo.cas.authentication.exceptions.AccountDisabledException; import org.apereo.cas.authentication.exceptions.AccountPasswordMustChangeException; import org.apereo....
diasbruno/mout
tests/spec/string/spec-removeNonASCII.js
<gh_stars>100-1000 define(['mout/string/removeNonASCII'], function (removeNonASCII) { describe('string/removeNonASCII()', function(){ it('should remove non-printable chars', function(){ var accents = 'áÁâÂàÀåÅãÃäÄçÇéÉêÊèÈëËíÍîÎìÌïÏñÑóÓôÔòÒØõÕöÖÐþúÚûÛùÙüÜýÝÿ'; var printable = 'lorem...
stevekaeser/daisycms
applications/daisywiki/frontend/src/main/java/org/outerj/daisy/books/publisher/impl/publicationprocess/AssembleBookTask.java
/* * Copyright 2004 Outerthought bvba and Schaubroeck nv * * 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...
TidalPaladin/combustion
src/combustion/util/validation.py
<reponame>TidalPaladin/combustion #!/usr/bin/env python # -*- coding: utf-8 -*- from typing import Any, List, Optional, Tuple, Union import numpy as np import torch from torch import Tensor from .typing import Array @torch.jit.ignore def check_shapes_match(x: Array, y: Array, x_name: str, y_name: str) -> None: ...
mlaggner/tmdb-java
src/main/java/com/uwetrottmann/tmdb2/entities/MovieResultsPage.java
<filename>src/main/java/com/uwetrottmann/tmdb2/entities/MovieResultsPage.java package com.uwetrottmann.tmdb2.entities; public class MovieResultsPage extends BaseResultsPage<BaseMovie> { }
henrikhorbovyi/URI
src/beginner/1153.py
<filename>src/beginner/1153.py N = int(input()) f = 1 for i in range(2,N+1): f = f * i print(f)
benjaminliu/leetcode-java
src/main/java/com/test/leetcode/medium/_338_CountingBits.java
<filename>src/main/java/com/test/leetcode/medium/_338_CountingBits.java package com.test.leetcode.medium; /** * Created by ben on 2017/5/15. */ public class _338_CountingBits { //[0,1,1,2,2] public int[] countBits(int num) { if (num == 0) { return new int[]{0}; } if (num =...
fastjrun/ciHelper
MybatisEx/src/main/java/com/fastjrun/mybatis/declare/UpdateDeclare.java
package com.fastjrun.mybatis.declare; public class UpdateDeclare extends Declare { private String table; private Settings settings; private Condition condition; public UpdateDeclare() { this.settings = new Settings(); this.condition = new Condition(); } ...
nilsvu/spectre
src/PointwiseFunctions/AnalyticSolutions/GeneralRelativity/HarmonicSchwarzschild.cpp
<filename>src/PointwiseFunctions/AnalyticSolutions/GeneralRelativity/HarmonicSchwarzschild.cpp // Distributed under the MIT License. // See LICENSE.txt for details. #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/HarmonicSchwarzschild.hpp" #include <algorithm> #include <array> #include <cmath> #inclu...
degulab/FALCON-SEED
src/FALCONSEED/runner/src/ssac/falconseed/module/swing/tree/MExecDefTree.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * dis...
greenriver/vizzuality-components
src/components/map/index.js
import React, { Component } from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import isEqual from 'lodash/isEqual'; import './styles.scss'; const { L } = (typeof window !== 'undefined') ? window : {}; if (typeof window !== 'undefined') { /* * Workaround for 1px lines appearin...
snkmr/shirasagi
spec/factories/gws/staff_record/group.rb
<reponame>snkmr/shirasagi<filename>spec/factories/gws/staff_record/group.rb<gh_stars>100-1000 FactoryBot.define do factory :gws_staff_record_group, class: Gws::StaffRecord::Group do cur_site { gws_site } cur_user { gws_user } #year_id { create(:gws_staff_record_year).id } name { "name-#{unique_id}" ...
eegeo/cardboard-vr-integration
src/Examples/CameraTransition/CameraTransitionExample.h
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved #ifndef __ExampleApp__CameraTransitionExample__ #define __ExampleApp__CameraTransitionExample__ #include <iostream> #include "GlobeCameraExampleBase.h" #include "EegeoWorld.h" #include "Location.h" #include "GlobeCamera.h" #include "VectorMath.h" namespace Exam...
devilry/devilry-django
devilry/devilry_superadmin/tests/test_management_commands/test_resend_failed_messages.py
from __future__ import unicode_literals from io import StringIO from django import test from django.conf import settings from django.core import management from django.core import mail from model_bakery import baker from devilry.devilry_message.models import MessageReceiver class TestResendFailedMessagesCommand(te...
Mause/TransperthCached
src/com/lysdev/transperthcached/activities/StopTimetableActivity.scala
package com.lysdev.transperthcached.activities // Standard library import java.util.ArrayList // android sdk import android.app.DatePickerDialog import android.app.ProgressDialog import android.app.TimePickerDialog import android.os.Bundle import android.support.v4.app.FragmentActivity import android.util.Log impor...
MarcoSteinke/smalldragon
lexer/test/test.c
/* this file is supposed to test dragon-lexer the testing shall be conducted via unit tests. there is not much going on with the files so we probably do not need integration tests here. */ //Stdlib Headers #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <assert.h> //Project He...
nagineni/chromium-crosswalk
tools/idl_parser/idl_parser.py
<filename>tools/idl_parser/idl_parser.py #!/usr/bin/env python # 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. """ Parser for PPAPI IDL """ # # IDL Parser # # The parser is uses the PLY yacc library t...
PremiumGraphicsCodes/CGLib
Graphics/ColoredPolygon.cpp
<reponame>PremiumGraphicsCodes/CGLib<filename>Graphics/ColoredPolygon.cpp #include "stdafx.h" #include "ColoredPolygon.h"
ibara/LiteBSD-Ports
lang/mawk/files.h
<filename>lang/mawk/files.h /******************************************** files.h copyright 2009-2010,2012 <NAME> copyright 1991-1994,1996, <NAME> This is a source file for mawk, an implementation of the AWK programming language. Mawk is distributed without warranty under the terms of the GNU General Public License, ...
Yathishns/NewRelic-RPM-Ruby-Agent
test/new_relic/metric_spec_test.rb
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) class NewRelic::MetricSpecTest < Minitest::Test def test_equal spec1 = New...
mcxinyu/ZhiYe
zhiye/src/main/java/com/about/zhiye/BasePresenter.java
<filename>zhiye/src/main/java/com/about/zhiye/BasePresenter.java package com.about.zhiye; /** * Created by huangyuefeng on 2017/6/30. * Contact me : <EMAIL> */ public interface BasePresenter { void start(); }
zubie7a/Distributed_Systems
MPI_Course_Project_Pearson_Correlation_Algorithm/spearson.cpp
#include "./includes/cppdefs.cpp" #include "./includes/matches.cpp" int main(int argc, char *argv[]) { int NUM_USERS, NUM_MOVIES, NUM_BEST, NUM_PROCS = 1; int *matrixUI; int *params = new int[3]; vector<string> matrixName; matrixName = getMatrixName(); if(matrixName.size() < 1) { fprint...
Sonaza/scyori
code/szen/src/Game/ParticleEntity.cpp
<reponame>Sonaza/scyori #include <szen/Game/ParticleEntity.hpp> #include <szen/Game/Components/Transform.hpp> #include <szen/Game/Components/ParticleComponent.hpp> using namespace sz; //////////////////////////////////////////////////// ParticleEntity::ParticleEntity() : m_component(NULL) { //attach<Transform>(); ...
tsconn23/alvarium-sdk-java
src/main/java/com/alvarium/serializers/StreamInfoConverter.java
/******************************************************************************* * Copyright 2021 Dell 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/lice...
tlalexander/stitchEm
apps/src/libvideostitch-gui/videostitcher/globalcontroller.hpp
<filename>apps/src/libvideostitch-gui/videostitcher/globalcontroller.hpp // Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #pragma once #include "stitchercontroller.hpp" /** * The Controller is unique in every application, so it is accessible through a global variable. * Since the real type...
ffarsad/aion
modMcf/src/org/aion/mcf/valid/AbstractBlockHeaderValidator.java
<filename>modMcf/src/org/aion/mcf/valid/AbstractBlockHeaderValidator.java package org.aion.mcf.valid; import java.util.List; import org.aion.mcf.blockchain.valid.IValidRule; import org.slf4j.Logger; public abstract class AbstractBlockHeaderValidator { public void logErrors(final Logger logger, final List<IValidR...
userzrq/study-api
src/main/java/com/userzrq/api/appContext/MessageService.java
package com.userzrq.api.appContext; public interface MessageService { String getMessage(); }
nagrohan726/eclipse-workspace
CoreJava/MultiThreading/src/threadgroups/ThreadGroupMethods.java
<gh_stars>0 package threadgroups; public class ThreadGroupMethods { public static void main(String[] args) throws InterruptedException { ThreadGroup mtg = new ThreadGroup("MyThreadGroup"); CustomThread thread1 = new CustomThread(mtg, "Thread 1"); CustomThread thread2 = new CustomThread(mtg, "Thread 2"); Cus...
artoriaschan/leetcode-algorithms
src/training/early/combinationSumii.js
/** * @param {number[]} candidates * @param {number} target * @return {number[][]} */ var combinationSum2 = function(candidates, target) { var backtrade = function(candidates, start, target, solvespace, result) { if (target < 0) { return; } if (target === 0) { let copy = JSON.parse(JSON.st...
baracil/perobobbot
lib/perobobbot.twitch/perobobbot.twitch.eventsub.api/src/main/java/perobobbot/twitch/eventsub/api/event/SubscriptionMessageEvent.java
package perobobbot.twitch.eventsub.api.event; import lombok.NonNull; import lombok.Value; import perobobbot.twitch.api.UserInfo; import perobobbot.twitch.eventsub.api.Tier; import java.util.OptionalInt; @Value public class SubscriptionMessageEvent implements BroadcasterProvider, EventSubEvent { @NonNull UserInf...
problemfighter/pfspring-identity
src/main/java/com/problemfighter/pfspring/identity/repository/IdentityRepository.java
<gh_stars>1-10 package com.problemfighter.pfspring.identity.repository; import com.problemfighter.pfspring.identity.model.entity.Identity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import o...
YTXIRE/able_crm_concrete_accounting_python_tests
tests/api/test_material_types_update.py
from allure import title, description, suite, parent_suite from pages.api import asserts from data import API_USERS_SUCCESS, API_PUT_METHOD_NOT_ALLOWED, \ API_AUTH_TOKEN_EMPTY, API_BAD_REQUEST_LENGTH_TOKEN, AUTH_DATA_LENGTH_TOKEN, API_BAD_REQUEST_EMPTY_MATERIAL_TYPES, \ API_BAD_REQUEST_LENGTH_MATERIAL_TYPES, AU...
joe-chimienti/pay-model
src/main/scala/com/mathbot/pay/bitcoin/SigHashType.scala
package com.mathbot.pay.bitcoin import play.api.libs.json.Json object SigHashType extends Enumeration { type SigHashType = Value val ALL, NONE, SINGLE, `ALL|ANYONECANPAY`, `NONE|ANYONECANPAY`, `SINGLE|ANYONECANPAY` = Value implicit val formatSig = Json.formatEnum(this) }
LibreGames/monster-rpg-2
include/GenericEffect.hpp
<filename>include/GenericEffect.hpp #include "monster2.hpp" class GenericEffect : public CombatEntity { public: virtual bool act(int step, Battle *b) { return false; } virtual bool update(int step) = 0; virtual void draw(void) = 0; virtual int getLifetime(void) = 0; virtual void finalize(Combatant *targ...
nikita220399/job4j
crocok/src/main/java/croc/task2_2/Department.java
<gh_stars>1-10 package croc.task2_2; import java.util.Arrays; public class Department { private String name; private Department[] child; private int time; public Department(Department[] child, int time, String name) { this.child = child; this.time = time; this.name = name; ...
delavet/SOworkspace
src/util/apidoc_semantic/node2vec.py
import random import networkx as nx import numpy as np from gensim.models import Word2Vec from gensim.models.word2vec import LineSentence from util.concept_map.common import get_latest_hyper_concept_map from util.config import NODE2VEC_RANDOM_WALK_STORE_PATH, NODE2VEC_MODEL_STORE_PATH class Node2VecGraph(): def ...
MicrohexHQ/rchain
casper/src/test/scala/coop/rchain/casper/genesis/contracts/BlockDataContractSpec.scala
<reponame>MicrohexHQ/rchain package coop.rchain.casper.genesis.contracts import coop.rchain.casper.helper.RhoSpec import coop.rchain.rholang.build.CompiledRholangSource import coop.rchain.rholang.interpreter.NormalizerEnv import scala.concurrent.duration._ class BlockDataContractSpec extends RhoSpec( Compil...
arnaud-m/cryptator
src/main/java/cryptator/parser/CryptaParserException.java
<filename>src/main/java/cryptator/parser/CryptaParserException.java /** * This file is part of cryptator, https://github.com/arnaud-m/cryptator * * Copyright (c) 2021, Université Côte d'Azur. All rights reserved. * * Licensed under the BSD 3-clause license. * See LICENSE file in the project root for full license ...
soederpop/skypager-next
src/features/file-manager/src/selectors/package/changed.js
<filename>src/features/file-manager/src/selectors/package/changed.js export default (async function selectChangedPackages(chain, options = {}) { const packageLocations = await this.fileManager.packageLocations const changedFiles = await this.select('files/changed') return chain .plant(packageLocations) ....
RemnevMaksim/splinter
src/main/java/ru/yandex/autoschool/splinter/application/configuration/properties/EnvironmentConverter.java
package ru.yandex.autoschool.splinter.application.configuration.properties; import org.apache.commons.beanutils.Converter; /** * @author Etki {@literal <<EMAIL>>} * @version %I%, %G% * @since 1.0 */ public class EnvironmentConverter implements Converter { @Override public Object convert(Class clazz, Objec...
undp/transparencyportal
undp-transparency-portal-fe/src/shared/actions/countryDataBudgetSources.js
<filename>undp-transparency-portal-fe/src/shared/actions/countryDataBudgetSources.js /************************* Lib Files ************************/ import Api from '../../lib/api'; export const COUNTRY_DATA_BUDGET_SOURCES = { start: 'fetch_start/budget_sources', end: 'fetch_end/budget_sources', success: 'fetch_succ...
ScalablyTyped/SlinkyTyped
j/jose/src/main/scala/typingsSlinky/jose/mod/OKPCurve.scala
package typingsSlinky.jose.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /* Rewritten from type alias, can be one of: - typingsSlinky.jose.joseStrings.Ed25519 - typi...
Sai-Ramya7/zestard-replica
src/util/common.js
// Formatting date export const dateFormate = (date) => { const months = ["January", "Febuary", "March","April", "May", "June", "July", "August", "September", "October", "November", "December"]; const dd = new Date(date); return months[dd.getMonth()] + " " + dd.getDate() + ", " + dd.getFullYear(); } // Removing...
tiwariut/journal
client/src/context/post/PostState.js
<filename>client/src/context/post/PostState.js<gh_stars>0 import React, { useReducer } from 'react'; import axios from 'axios'; import PostContext from './postContext'; import postReducer from './postReducer'; import { POST_ERROR, GET_POSTS, SET_CURRENT_POST, CLEAR_CURRENT_POST, ADD_POST, UPDATE_POST, DEL...
vogonsorg/Commander-Genius
src/fileio/compression/sgrle.cpp
<filename>src/fileio/compression/sgrle.cpp /* SGRLE.C RLE compression and decompression functions for the SGRLE format... These are used for saved games (hence the name SG RLE). Could be used for other things too, I guess. After opening a file for decompression you must call sgrle_reset() before the first ...
vkulpa/viber-bot-java
src/main/java/com/viber/bot/event/callback/OnMessageDelivered.java
package com.viber.bot.event.callback; import com.viber.bot.event.BotEventListener; import com.viber.bot.event.incoming.IncomingDeliveredEvent; import com.viber.bot.message.Message; import java.util.concurrent.Future; import static com.google.common.base.Preconditions.checkArgument; public interface OnMessageDeliver...
Caesar73/chineseclub
public/node_modules/amd-optimizer/test/slashes/dir/file.js
define(['dir/dep'], function(){ return {}; })