repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
LastStar/mongoid
spec/functional/mongoid/callback_spec.rb
<filename>spec/functional/mongoid/callback_spec.rb<gh_stars>1-10 require "spec_helper" describe Mongoid::Callbacks do before do ValidationCallback.delete_all ParentDoc.delete_all end context "callback on valid?" do it 'should go in all validation callback in good order' do shin = ValidationCa...
mdlewisfb/OpenCellular
firmware/ec/inc/subsystem/gpp/ebmp.h
<filename>firmware/ec/inc/subsystem/gpp/ebmp.h /** * Copyright (c) 2017-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 PATE...
yijunyu/demo-fast
datasets/linux-4.11-rc3/include/net/sctp/ulpevent.h
/* SCTP kernel implementation * (C) Copyright IBM Corp. 2001, 2004 * Copyright (c) 1999-2000 Cisco, Inc. * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001 Intel Corp. * Copyright (c) 2001 Nokia, Inc. * Copyright (c) 2001 <NAME> * * These are the definitions needed for the sctp_ulpevent type. The *...
LukasZahradnik/PyNeurologic
neuralogic/grammar/NeuralogicParser.py
<gh_stars>10-100 # Generated from /home/lukas/Workspace/prcvut/pyneuralogic/neuralogic/grammar/Neuralogic.g4 by ANTLR 4.8 # encoding: utf-8 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): ...
mavaddat/yori
ypm/download.c
/** * @file ypm/download.c * * Yori shell package manager download packages for later/offline installation * * Copyright (c) 2018-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...
Tomay0/PixelProtect
src/main/java/nz/tomay0/PixelProtect/command/AbstractCommand.java
package nz.tomay0.PixelProtect.command; import net.milkbowl.vault.economy.Economy; import nz.tomay0.PixelProtect.dynmap.DynmapHandler; import nz.tomay0.PixelProtect.PixelProtectPlugin; import nz.tomay0.PixelProtect.playerstate.PlayerStateHandler; import nz.tomay0.PixelProtect.protection.ProtectionHandler; import org.b...
klahnakoski/auth0-api
vendor/pyLibrary/env/git.py
<reponame>klahnakoski/auth0-api<filename>vendor/pyLibrary/env/git.py<gh_stars>0 # encoding: utf-8 # # # 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/. # # Author: <NAME> ...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/OfficeImport/OAVTextBodyProperties.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" __attribute__((visibility("hidden"))) @interface OAVTextBodyProperties : NSObject { } + (void)readFromManager:(id)arg1 toShape:(id)arg2 state:(id)arg3; + (unsigned ...
JLLeitschuh/SocialSDK
php/moodle-block/src/views/js/globalPluginSettingsEditor.js
<filename>php/moodle-block/src/views/js/globalPluginSettingsEditor.js /** * (C) Copyright IBM Corp. 2012 * * 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...
wolfs/spray
spray-httpx/src/main/scala/spray/httpx/Json4sSupport.scala
/* * Copyright (C) 2011-2012 spray.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
418sec/brewser
lib/brewser/model/fermentable.rb
<filename>lib/brewser/model/fermentable.rb module Brewser class Fermentable < Model belongs_to :recipe property :name, String, :required => true property :origin, String, :length => 512 property :supplier, String, :length => 512 property :description, String, :length => 65535 propert...
turgu1/ESP-IDF-Inkplate
include/drivers/touch_screen.hpp
<filename>include/drivers/touch_screen.hpp #pragma once #if defined(INKPLATE_6PLUS) #include "non_copyable.hpp" #include "mcp23017.hpp" #include <array> class TouchScreen : NonCopyable { public: TouchScreen(MCP23017 & _mcp) : mcp(_mcp), ready(false) {} typedef void (* ISRHandlerPtr)(void * value); ...
duncte123/weeb.java
src/main/java/me/duncte123/weebJava/configs/base/HasHiddenAndNsfwMode.java
<reponame>duncte123/weeb.java /* * Copyright 2018 - 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
InNoHurryToCode/xray-162
code/engine/xrPhysics/PHInterpolation.h
<filename>code/engine/xrPhysics/PHInterpolation.h #include "CycleConstStorage.h" #ifndef PHINTERPOLATON_H #define PHINTERPOLATON_H //#include "ode_include.h" #include "ode/include/ode/common.h" class CPHInterpolation { public: CPHInterpolation(); void SetBody(dBodyID body); static const u16 PH_INTERPOLAT...
ChSt98/KraftPad
lib/SX12XX-LoRa-master/examples/SX128x_examples/Tracker/24_GPS_Tracker_Receiver/Settings.h
/******************************************************************************************************* Programs for Arduino - Copyright of the author <NAME> - 22/03/20 This program is supplied as is, it is up to the user of the program to decide if the program is suitable for the intended purpose and free from...
ralphmarchildon-wf/crnk-framework
crnk-setup/crnk-setup-rs/src/main/java/io/crnk/rs/type/JsonApiMediaType.java
<reponame>ralphmarchildon-wf/crnk-framework<gh_stars>100-1000 package io.crnk.rs.type; import javax.ws.rs.core.MediaType; public final class JsonApiMediaType { private JsonApiMediaType() { // private since only a util } /** * A {@code String} constant representing {@value #APPLICATION_JSON_API} media type. ...
JiaoXianjun/free5GRAN
lib/asn1c/nr_rrc/InterFreqCarrierFreqInfo.h
<filename>lib/asn1c/nr_rrc/InterFreqCarrierFreqInfo.h /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "fixed_grammar.asn" * `asn1c -gen-PER -fcompound-names -findirect-choice -no-gen-example` */ #ifndef _InterFreqCarrierFreqInfo_H_ #define _InterFreq...
alrs/mortar
middleware/interceptors/client/headers.go
package client import ( "context" "strings" "github.com/go-masonry/mortar/interfaces/cfg" "github.com/go-masonry/mortar/mortar" "go.uber.org/fx" "google.golang.org/grpc" "google.golang.org/grpc/metadata" ) type copyHeadersDeps struct { fx.In Config cfg.Config } // CopyGRPCHeadersClientInterceptor copies f...
minux/llgo
llgo/testdata/unsafe/offsetof.go
<reponame>minux/llgo package main import "unsafe" type S struct { a int16 b int32 c int8 d int64 } func main() { var s S println(unsafe.Offsetof(s.a)) println(unsafe.Offsetof(s.b)) println(unsafe.Offsetof(s.c)) println(unsafe.Offsetof(s.d)) }
webschik/preact
test/browser/isValidElement.test.js
<filename>test/browser/isValidElement.test.js import { createElement, isValidElement, Component } from 'preact'; import { isValidElementTests } from '../shared/isValidElementTests'; isValidElementTests(expect, isValidElement, createElement, Component);
OLR-xray/OLR-3.0
src/xray/xr_3da/xrGame/Bolt.cpp
<filename>src/xray/xr_3da/xrGame/Bolt.cpp #include "stdafx.h" #include "bolt.h" #include "ParticlesObject.h" #include "PhysicsShell.h" #include "xr_level_controller.h" #include "Actor.h" #include "../../build_config_defines.h" CBolt::CBolt(void) { m_weight = .1f; SetSlot (BOLT_SLOT); m_flags.set (Fruck, FA...
yaoyang4346/DesignPattern
src/VisitorPattern/Visitor.java
package VisitorPattern; /** * Created by cheny on 2018/5/12. */ interface Visitor { void visit(ElementA e); void visit(ElementB e); }
iilab/expo
ios/Exponent/Versioned/Core/Internal/EXResourceLoader.h
// Copyright 2015-present 650 Industries. All rights reserved. #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * This is the versioned protocol for EXCachedResource, this also defines some * of the types used when interacting with EXCachedResource instances. This is * used with the EXCachedResourceM...
leiphp/gulimall
gulimall-product/src/main/java/cn/lxtkj/gulimall/product/dao/CategoryDao.java
package cn.lxtkj.gulimall.product.dao; import cn.lxtkj.gulimall.product.entity.CategoryEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品三级分类 * * @author leixiaotian * @email <EMAIL> * @date 2021-08-12 00:20:21 */ @Mapper public interface Categ...
UlaiS/exoplayer2
library/rtsp/src/main/java/com/upax/exoplayer2/source/rtsp/reader/RtpH264Reader.java
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
whaty/erd-apis
src/main/java/com/java2e/martin/erd/service/SysUserService.java
package com.java2e.martin.erd.service; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.java2e.martin.erd.entity.SysUser; import com.baomidou.mybatisplus.extension.service.IService; import org.springframework.transaction.annotation.Transactional; import java.util.List; import java.util.Ma...
LuckyChou710/code-traveling
03-js-training-camp/lodash/package/Array/difference.js
<filename>03-js-training-camp/lodash/package/Array/difference.js const { difference } = require('lodash'); difference([3, 2, 1], [4, 2]); // => [3, 1] /** * @example difference(array, [values]) * @param array (Array): 需要处理的数组 * @param [values] (...Array): 排除的值 * @description 创建一个具有唯一array值的数组,每个值不包含在其他给定的数组中 * @...
taoyuc3/CS225
mp_traversals/colorPicker/MyColorPicker.cpp
<gh_stars>0 #include "../cs225/HSLAPixel.h" #include "../Point.h" #include "ColorPicker.h" #include "MyColorPicker.h" using namespace cs225; /** * Picks the color for pixel (x, y). * Using your own algorithm */ HSLAPixel MyColorPicker::getColor(unsigned x, unsigned y) { /* @todo [Part 3] */ double hue; unsi...
JustinCappos/checkapi
posix_checkapi/TRACES/POT/ut_repyv2api_createlockblocks.py
<reponame>JustinCappos/checkapi<gh_stars>0 """ This unit test checks createlock and the lock object doing a blocking acquire. """ #pragma repy lock = createlock() # Sleeps for .5 seconds and unlocks the global "lock" object def thread(): sleep(0.5) _context["lock"].release() # Exits after 2 second time out def ...
BethWIntera/Beths_PySandbox
Learning Unittests/matplotlib-tutorial-master/scripts/plot_ex.py
# ----------------------------------------------------------------------------- # Copyright (c) 2015, <NAME>. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- import numpy as np import matplotli...
smancke/guble
restclient/sender.go
package restclient // Sender is an interface used to send a message to the guble server. type Sender interface { // Send a a message(body) to the guble Server, to the given topic, with the given userID. Send(topic string, body []byte, userID string, params map[string]string) error // Check returns `true` if the gu...
Pentacode-IAFA/Quad-Remeshing
libs/quadwild/libs/vcglib/vcg/complex/algorithms/polygonal_algorithms.h
/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Copyri...
dog-days/webpack-launcher
examples/custom/.babelrc.js
<gh_stars>1-10 'use strict'; module.exports = { presets: ['@babel/react'], };
doananh234/gatsby-mysite
src/components/common/Card/index.js
import React from 'react'; import PropTypes from 'prop-types'; import { ThemeContext } from '..'; import CardHeader from './components/CardHeader'; import CardBody from './components/CardBody'; import CardFooter from './components/CardFooter'; import { Wrapper, StyledCard } from './styles'; export const Card = ({ id,...
ashariati/gtsam-3.2.1
doc/html/a00477.js
<filename>doc/html/a00477.js var a00477 = [ [ "buildFactorSubgraph", "a00477.html#ac06ac82e22341b1b9fdcd4c67280f619", null ], [ "getSubvector", "a00477.html#ae306d44122f0f405fe316e93fcab468a", null ], [ "operator<<", "a00477.html#a9b7724a6c56d8f80e77daf50dfa0170d", null ], [ "operator<<", "a00477.html#a...
jessicaleete/numerical_computing
Python/scipyoptimize/solutionstester.py
<filename>Python/scipyoptimize/solutionstester.py<gh_stars>1-10 import scipy.optimize as opt import numpy as np import solutions as sol prob2=5.488168656962328 prob3=np.array([-0.39965477, -1.21959745, 0.81994268]) prob4=np.array([0.56263117, 132.61958892, -116.26997494]) def fun(x): return np.array([-x[0]+x[...
amirsaad2015/dsl
node_modules/@theia/editor/lib/browser/editor.js
<reponame>amirsaad2015/dsl "use strict"; /* * Copyright (C) 2018 TypeFox and others. * * 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 */ Object.de...
qlcchain/go-virtual-lsobus
orchestra/sonata/address/client/geographic_address_validation/geographic_address_validation_create_responses.go
<reponame>qlcchain/go-virtual-lsobus // Code generated by go-swagger; DO NOT EDIT. package geographic_address_validation // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "githu...
davidstl/braincloud-cpp
src/win/CppRestFileUploader.cpp
#ifndef __ANDROID__ #include "braincloud/internal/win/CppRestFileUploader.h" #include <string> #include <iostream> #include <sstream> #include <chrono> #include <thread> #include <cpprest/http_client.h> #include <cpprest/filestream.h> #include "braincloud/http_codes.h" #include "braincloud/reason_codes.h" #include "b...
MECLabTUDA/ACS
mp/visualization/visualize_imgs.py
<filename>mp/visualization/visualize_imgs.py # ------------------------------------------------------------------------------ # Visualize images (in Numpy, PyTorch or TorchIO formats) and dataloaders. # ------------------------------------------------------------------------------ import os import numpy as np import t...
liangjisheng/C-Cpp
Tools/Unicode/char_wchar_t.cpp
#include <iostream> #include <string> #include <locale> #include <Windows.h> using namespace std; void test() { wchar_t *str = L"ABC我们"; // 强制转化后,字符串数据并没有发生任何变化,只是用多字节字符编码重新 // 对它进行解释,只会输出一个A char *s = (char*)str; cout << s << endl; } // 标准C++库实现字符编码转换 // 如果第二个参数为空,函数返回当前的locale设置,否则依据输入的两个参数设置新 // 的locale,设置成...
dmgerman/camel
components/camel-openstack/src/test/java/org/apache/camel/component/openstack/keystone/ProjectProducerTest.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
jsswd888/2020_Summer_JAVA_BILIBILI
Day6/MethodTest06.java
<filename>Day6/MethodTest06.java public class MethodTest06 { public static void main(String[] args) { //调用方法 MethodTest06.m(); //对于方法的修饰符列表当中由static关键字,类名可以不写 //省略的方式 m(); //完整的方式 MethodTest06.m(); //调用其他类(非本类中的)方法 A.doOthe...
sxmatch/taibai-microserviceplatform
taibai-common/taibai-common-core/src/main/java/com/fitmgr/common/core/constant/enums/DiscountTypeEunm.java
<reponame>sxmatch/taibai-microserviceplatform package com.taibai.common.core.constant.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 折扣类型:0-系统,1-手动 * * @author Taibai * @date 2020/10/21 16:33 */ @Getter @AllArgsConstructor public enum DiscountTypeEunm { /** * 折扣类型 */ SYSTE...
SoniaZotz/IOsonata
ARM/Nordic/exemples/BleAdvertiser.cpp
<reponame>SoniaZotz/IOsonata<gh_stars>10-100 /**------------------------------------------------------------------------- @example BleAdvertiser.cpp @brief BLE non-connectable advertiser This demo show how to advertise an incremental counter in the manufacturer specific data. The counter increments every second. @a...
martarozek/buckit
infra_macros/fbcode_macros/tests/native_rules_test.py
# Copyright 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 directory. from __future__ import absol...
KaizhiDu/Bingzheng-Mechanical-Management-System
src/main/java/cn/jeeweb/modules/ckgl/service/ICkglJhsService.java
<gh_stars>0 package cn.jeeweb.modules.ckgl.service; import cn.jeeweb.core.common.service.ICommonService; import cn.jeeweb.core.model.PageJson; import cn.jeeweb.core.query.data.Queryable; import cn.jeeweb.modules.ckgl.entity.CkglJhs; /** * Dscription: 仓库管理 - 进货商 * @author : <NAME> * @version : 1.0 * @date : 2018/1...
evernife/OpenTerrainGenerator
common/common-util/src/main/java/com/pg85/otg/util/biome/SimpleColorSet.java
<reponame>evernife/OpenTerrainGenerator package com.pg85.otg.util.biome; import java.util.List; import com.pg85.otg.exceptions.InvalidConfigException; import com.pg85.otg.interfaces.IMaterialReader; import com.pg85.otg.util.helpers.StringHelper; public class SimpleColorSet extends ColorSet { public SimpleColorSet(...
Zalexanninev15/VitNX
docs/search--/s_1969.js
<filename>docs/search--/s_1969.js search_result['1969']=["topic_0000000000000700.html","ERROR_DS_DRA_REF_NOT_FOUND Field",""];
zhipengzhaocmu/fpga2022_artifact
pigasus/software/src/service_inspectors/http_inspect/http_stream_splitter_finish.cc
<filename>pigasus/software/src/service_inspectors/http_inspect/http_stream_splitter_finish.cc //-------------------------------------------------------------------------- // Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved. // // This program is free software; you can redistribute it and/or modi...
x-meta/xworker
xworker_explorer/src/main/java/xworker/ide/functions/thingeditor/ThingEditorFunctionActions.java
<filename>xworker_explorer/src/main/java/xworker/ide/functions/thingeditor/ThingEditorFunctionActions.java package xworker.ide.functions.thingeditor; import org.xmeta.ActionContext; import org.xmeta.ActionException; import org.xmeta.Thing; import org.xmeta.World; import org.xmeta.util.UtilMap; import xworker....
spasovski/web-client-ui
packages/chart/src/ChartTestUtils.js
<reponame>spasovski/web-client-ui import dh from '@deephaven/jsapi-shim'; class ChartTestUtils { static DEFAULT_CHART_TITLE = 'Chart Title'; static DEFAULT_X_TITLE = 'X Axis'; static DEFAULT_Y_TITLE = 'Y Axis'; static DEFAULT_SERIES_NAME = 'MySeries'; static makeAxis({ label = 'Axis', type = dh.p...
TheCandianVendingMachine/TCVM_Flat_Engine
src/fe/math/random.cpp
<reponame>TheCandianVendingMachine/TCVM_Flat_Engine<gh_stars>1-10 #include "fe/math/random.hpp" #include "fe/feAssert.hpp" #include "fe/typeDefines.hpp" fe::random *fe::random::m_instance = nullptr; void fe::random::startUp() { FE_ASSERT((m_instance == nullptr), "Randomizer instance already created!"); ...
Sma-Das/Leetcode
1-Easy/countNegatives.py
""" 90.58% faster """ def countNegatives(list[list[int]]) -> int: return sum(map(lambda x: sum(map(lambda y: 1 if y < 0 else 0, x)), grid))
storopoli/Machine-Learning-Probalistic
pyprobml-master/figgen/daft/pose-eccv18.py
<reponame>storopoli/Machine-Learning-Probalistic # pose model #from matplotlib import rc #rc("font", family="serif", size=12) #rc("text", usetex=True) #rc("text.latex", preamble=open("macros.tex").read()) #import daft import os import imp daft = imp.load_source('daft', 'daft-080308/daft.py') pgm = daft.PGM([4, 4], ...
AlbandeCrevoisier/ldd-athens
linux-socfpga/arch/x86/kernel/cpu/bugs.c
<filename>linux-socfpga/arch/x86/kernel/cpu/bugs.c /* * Copyright (C) 1994 <NAME> * * Cyrix stuff, June 1998 by: * - <NAME> (moved everything from head.S), * <<EMAIL>> * - <NAME> (tests & fixes), * - <NAME> (code cleanup). */ #include <linux/init.h> #include <linux/utsname.h> #include <asm/bugs.h> #in...
Dom58/vuba
client/src/pages/DashbardProjectCategory.js
import React, { useContext, useState, useEffect } from 'react'; import { Divider, Grid, Icon, Table, Button, Form, Container, Accordion, Modal } from 'semantic-ui-react'; import { useQuery, useMutation } from '@apollo/react-hooks'; import moment from 'moment'; import { toast } from 'react-toastify'; i...
CTSNE/NodeDefender
NodeDefender/db/data/sensor/__init__.py
<reponame>CTSNE/NodeDefender<filename>NodeDefender/db/data/sensor/__init__.py import NodeDefender.db.data.sensor.heat import NodeDefender.db.data.sensor.power import NodeDefender.db.data.sensor.event
hjabird/Quad1D
include/HBTK/Generators.h
#pragma once /*//////////////////////////////////////////////////////////////////////////// Generators.h Generate vectors of values. Has functions like linspace, logspace, meshgrid... Copyright 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do...
no33fewi/saiga
src/saiga/core/imgui/imgui_saiga.h
/** * Copyright (c) 2021 <NAME> * Licensed under the MIT License. * See LICENSE file for more information. */ #pragma once #include "saiga/config.h" #include "saiga/core/imgui/imgui_main_menu.h" #include "saiga/core/math/math.h" #include "saiga/core/time/timer.h" #include "saiga/core/util/Align.h" #include "saiga...
KimGulmatico/Stacktrek
src/frontend/pages/main/notificationTab/RequestItem.js
import React from 'react' import { List, Button, Icon, Card } from 'antd' import PropTypes from 'prop-types' import ProfilePicture from '../../../components/profilePicture' class Request extends React.Component { constructor(props) { super(props) this.renderRequestType = this.renderRequestType.bind(this) ...
dsabanin/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/resolve2/ResolveTestBase.scala
package org.jetbrains.plugins.scala.lang.resolve2 import _root_.org.jetbrains.plugins.scala.lang.resolve.ScalaResolveTestCase import com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference import com.intellij.psi.{PsiElement, PsiReference} import org.jetbrains.plugins.scala.extensions._ import org.jetbra...
glomie/my_template
src/main/java/com/temp/cube/output/OutputManager.java
package com.temp.cube.output; public class OutputManager { private static final ConsolePrint consolePrint = new ConsolePrint(); public static ConsolePrint useDefaultOutput() { return consolePrint; } }
programer-0/rocketmq-streams
rocketmq-streams-script/src/main/java/org/apache/rocketmq/streams/script/operator/impl/JPythonScriptOperator.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 may ...
andrewseidl/chrono
src/chrono_vehicle/tracked_vehicle/ChTrackContactManager.cpp
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
haydarai/rheem
rheem-platforms/rheem-spark/src/test/java/org/qcri/rheem/spark/operators/SparkDistinctOperatorTest.java
<reponame>haydarai/rheem package org.qcri.rheem.spark.operators; import org.junit.Assert; import org.junit.Test; import org.qcri.rheem.core.platform.ChannelInstance; import org.qcri.rheem.core.types.DataSetType; import org.qcri.rheem.spark.channels.RddChannel; import java.util.Arrays; import java.util.List; /** * T...
mzegar/node-rapids
modules/cudf/src/addon.cpp
<reponame>mzegar/node-rapids // Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unl...
10088/swc
crates/swc_ecma_minifier/tests/terser/compress/reduce_vars/cond_assign/output.mangleOnly.js
!(function() { var a; void 0 ? (a = 1) : 0; console.log(a); })();
huanghongxun/ACM
vijos/p1891_2.cpp
<filename>vijos/p1891_2.cpp<gh_stars>1-10 #include <cstdio> #include <cstring> #define inf 2147483647 #define FOR(i,j,k) for(i=j;i<=k;i++) #define ll long long using namespace std; ll read() { ll x = 0, f = 1; char ch = getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();} while(ch>='0'&&ch<='9')...
sentinel-hub/customScripts
sentinel-3/enhanced_true_color/script.js
// Sentinel-3 - Enhanced natural colors // Author: <NAME> (Twitter: @annamaria_84, http://www.linkedin.com/in/annamaria-luongo-RS) // CC BY 4.0 International - https://creativecommons.org/licenses/by/4.0/ function stretch(val, min, max) { return (val-min)/(max-min); } var brightness = 1.0; // default value is 1....
tkf/compapp
src/compapp/plugins/__init__.py
<gh_stars>0 from .datastores import * from .recorders import * from .misc import * from .vcs import RecordVCS from .timing import RecordTiming from .programinfo import RecordProgramInfo from .sysinfo import RecordSysInfo from .metastore import MetaStore
kit-transue/software-emancipation-discover
model_server/gala/src/gString.cxx
<filename>model_server/gala/src/gString.cxx /************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * ...
sniperkit/xmq
plugin/benthos/lib/broker/common_test.go
// Copyright (c) 2014 <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 // to use, copy, modify, merge, publish, distri...
XrosFade/ElonaFoobar
src/elona/random.cpp
#include "random.hpp" namespace elona { namespace detail { std::mt19937 engine{std::random_device{}()}; } // namespace detail } // namespace elona
selfrefactor/commit-message
packages/helpers-fn/src/exported/monitor.js
const { delay, toDecimal, piped, split, last, head, map, trim } = require('rambdax') const { ms } = require('string-fn') const { exec } = require('./exec') const { parseMonitorData } = require('./utils/parse-monitor-data') var osu = require('node-os-utils') async function getProcessUsage(){ const cpuUsage = await o...
ChampionCynthia/g-string_2013
sp/src/game/shared/gstring/cgstring_interaction.h
#ifndef CGSTRING_INTERACTION_H #define CGSTRING_INTERACTION_H #include "cbase.h" #include "gstring_player_shared_forward.h" class CGstringInteraction : public CBaseEntity { DECLARE_CLASS( CGstringInteraction, CBaseEntity ); DECLARE_NETWORKCLASS(); #ifdef GAME_DLL DECLARE_DATADESC(); #endif public: CGstringInter...
rubyberlin/cfp-app
db/schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # dat...
lianwentao/huachengshequhuishenghuo
Model/zhangdanlishijilu/fukuanjilumodel.h
<filename>Model/zhangdanlishijilu/fukuanjilumodel.h // // fukuanjilumodel.h // HuiShengHuo2.0 // // Created by 晋中华晟 on 2018/3/23. // Copyright © 2018年 晋中华晟. All rights reserved. // #import <Foundation/Foundation.h> @interface fukuanjilumodel : NSObject @property (nonatomic,copy)NSString *time; @property (nonatom...
xidameng/micropython_amebaD
MicroPython_RTL8722/ports/rtl8722/amebad_vendor/sdk/component/common/drivers/ir/protocol/ir_led.c
<gh_stars>1-10 /** ********************************************************************************************************* * Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved. ********************************************************************************************************...
lwhiteley/angular-fullstack-custom
app/scripts/features/core/_app_core.js
<gh_stars>1-10 'use strict'; angular.module('app.core', ['lib.deps']);
FloaterTS/teme-fmi
pp/Lab8/p6.c
#include <stdio.h> #include <stdlib.h> int find_max(const int* v, int n) { int max = v[0]; for (int i = 1; i < n; ++i) { if (max < v[i]) { max = v[i]; } } return max; } int main() { FILE* f = fopen("p6.in", "r"); int n; fscanf(f, "%d", &n); int* v = (int*)...
ideacrew/aca_entities
lib/aca_entities/enrollees/enrollee.rb
<reponame>ideacrew/aca_entities # frozen_string_literal: true module AcaEntities module Enrollees # entity for enrollee class Enrollee < Dry::Struct attribute :enrollee_demographics, AcaEntities::Enrollees::EnrolleeDemographics.meta(omittable: false) attribute :first_name, Types::...
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
python-packages/mne-python-0.10/mne/defaults.py
<filename>python-packages/mne-python-0.10/mne/defaults.py # Authors: <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # # License: BSD (3-clause) from copy import deepcopy DEFAULTS = dict( color=dict(mag='darkblue', grad='b', eeg='k', eog='k', ecg='m', emg='k', ref_meg='stee...
oxelson/gempak
gempak/source/programs/gui/nsharp/file_browse_popup.c
<gh_stars>10-100 #include "gui.h" #include "sharp95.h" /* Convenience function to pup up file selection dialog */ void file_browse_popup (char *path, char *tmpl, Widget toplevel, void cbfunc(Widget, XtPointer, XtPointer) ) { static Widget load_filegem = NULL; XmString directory_str, pattern_str; if (!load_fi...
eti-nne/dtk
tst/dtkLog/dtkLoggerHandlersTest.h
// Version: $Id: aff4538297aa797c504eee186f0f7ccd29b7a1ba $ // // // Commentary: // // // Change Log: // // // Code: #pragma once #include <dtkTest> class dtkLoggerHandlersTestCase : public QObject { Q_OBJECT public: dtkLoggerHandlersTestCase(void); virtual ~dtkLoggerHandlersTestCase(void); ...
vanadium-archive/travel
browser/src/util/define-class.js
// Copyright 2015 The Vanadium Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. var $ = require('./jquery'); /** * <p>Plays a similar role to other npm private encapsulation facilities, but * exposes private members on `this` via p...
AmrMKayid/KayAlgo
leetcode/arrays/check-if-n-and-its-double-exist.py
<filename>leetcode/arrays/check-if-n-and-its-double-exist.py class Solution: def checkIfExist(self, arr: List[int]) -> bool: for i, num in enumerate(arr): for j in range(i, len(arr)): if i != j and (num == arr[j] * 2 or arr[j] == num * 2): return True return False
nguyenan/api-server
core/src/main/java/com/wut/resources/OperationParameter.java
package com.wut.resources; import com.wut.model.Model; import com.wut.model.scalar.ScalarModel; public class OperationParameter { public static final OperationParameter ID = OperationParameter.create("id", ScalarModel.create(), true); private String name; private Model type; private boolean required; private...
rasael/jwrap
src/test/java/net/bervini/rasael/jwrap/api/BigDecimalWrapTest.java
<filename>src/test/java/net/bervini/rasael/jwrap/api/BigDecimalWrapTest.java /* * Copyright 2022-2022 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
abimaelrsergio/Vendas_3_0
src/br/com/exemplo/vendas/apresentacao/service/ReservaService.java
<filename>src/br/com/exemplo/vendas/apresentacao/service/ReservaService.java package br.com.exemplo.vendas.apresentacao.service; import java.io.Serializable; import java.util.Date; import br.com.exemplo.vendas.apresentacao.delegate.ReservaBusinessDelegate; import br.com.exemplo.vendas.negocio.model.vo.ReservaVO; impo...
mohammedhemaid/Random-Name-Picker
app/src/main/java/com/randomappsinc/studentpicker/grouping/GroupMakingActivity.java
package com.randomappsinc.studentpicker.grouping; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.Recycle...
gilvansfilho/quarkus
independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointBean.java
package io.quarkus.arc.impl; import java.lang.reflect.Type; import java.util.Set; import javax.enterprise.context.spi.CreationalContext; import javax.enterprise.inject.spi.InjectionPoint; public class InjectionPointBean extends BuiltInBean<InjectionPoint> { private static final Set<Type> IP_TYPES = Set.of(Injecti...
etayluz/PersonalFinanceAssistant
app/utils/navHelpers.js
import R from 'ramda'; export const getParam = param => R.path(['state', 'params', param]); export const getParamOr = (param, def) => R.pathOr(def, ['state', 'params', param]); export const setParam = R.curry((param, nav, value) => nav.setParams({ [param]: value }));
MarioRuiz/slack-smart-bot
lib/slack/smart-bot/comm/get_users.rb
<filename>lib/slack/smart-bot/comm/get_users.rb<gh_stars>10-100 class SlackSmartBot def get_users() begin users = [] cursor = nil if config.simulate users = client.web_client.users_list else begin resp = client.web_client.users_list(limit: 1000, cursor: cursor...
rythm-net/SoftUni
Programming Basics with Java/T03 - Conditional Statements/src/exercise/Shopping.java
package exercise; import java.util.Scanner; public class Shopping { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double budget = Double.parseDouble(scanner.nextLine()); int videCards = Integer.parseInt(scanner.nextLine()); int processors = Int...
hanbioinformatica/owe2a
week4RegularExpressions/RegularExpressionsIntroductie/extractingNames.py
<gh_stars>0 import re scientific_name = "<NAME>" m = re.search("([A-Z][a-z]*) ([a-z]+)", scientific_name) if m: genus = m.group(1) species = m.group(2) print("genus is " + genus + ", species is " + species)
cping/LGame
Java/Loon-Lite(PureJava)/Loon-Lite-Core/src/loon/event/TouchMake.java
<reponame>cping/LGame<gh_stars>100-1000 /** * Copyright 2008 - 2015 The Loon Game Engine Authors * * 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/LI...
sumonbis/compiler
src/test/boa/test/datagen/js/TestElelementGet.java
<gh_stars>10-100 package boa.test.datagen.js; import java.io.IOException; import org.junit.Test; public class TestElelementGet extends JavaScriptBaseTest { @Test public void elementGetTest1() throws IOException{ nodeTest( load("test/datagen/javascript/ElementGetNode.boa"), load("test/datagen/javascript/ElementG...
linminglu/Fgame
game/gm/command/handler/bodyshield_jinjiadan.go
package handler import ( "fgame/fgame/common/lang" bodyshieldservice "fgame/fgame/game/bodyshield/bodyshield" bodyshieldlogic "fgame/fgame/game/bodyshield/logic" "fgame/fgame/game/bodyshield/pbutil" playerbodyshield "fgame/fgame/game/bodyshield/player" "fgame/fgame/game/gm/command" gmcommandtypes "fgame/fgame/g...
bianapis/sd-ecm-dcm-v2.0
src/main/java/org/bian/dto/CRECMDCMFulfillmentArrangementRetrieveInputModel.java
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.CRECMDCMFulfillmentArrangementRetrieveInputModelECMDCMFulfillmentArrangementInstan...