repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
red-machine-games/goblin-base-server
test/issue_256/cloudFunctions/cloudFunction3.js
<gh_stars>1-10 await lock.self(); var publicProfileData = await getPublicProfileNode(selfHumanId, 'publicProfileData');
tnsilver/springboot-samples
springboot-rest-redis-contacts/src/main/java/com/tnsilver/contacts/repository/AuditRepositoryImpl.java
<reponame>tnsilver/springboot-samples<filename>springboot-rest-redis-contacts/src/main/java/com/tnsilver/contacts/repository/AuditRepositoryImpl.java /* * File: AuditRepositoryImpl.java * Creation Date: Jul 8, 2021 * * Copyright (c) 2021 T.N.Silverman - all rights reserved * * Licensed to the Apache Software Foun...
Boatdude55/staging-website
closure-templates/java/src/com/google/template/soy/sharedpasses/opti/SimplifyExprVisitor.java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
geng890518/editor-ui
src/components/Qiniu/Qiniu.js
'use strict'; import React, { Component, PropTypes } from 'react'; import { bindActionCreators } from 'redux'; import { setCoverImageSuccess, delCoverImage } from 'redux/modules/editor'; import { Progress } from 'antd'; import { connect } from 'react-redux'; // import { fullImageURLForImageKey } from '../../helpers/URL...
Pixelated-Project/aosp-android-jar
android-31/src/com/android/server/backup/encryption/chunking/EncryptedChunk.java
/* * Copyright (C) 2018 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 app...
nmcl/wfswarm-example-arjuna-old
AdventOfCode/2019/day13/part2/Intcode.java
import java.io.*; import java.util.*; public class Intcode { public static final String DELIMITER = ","; public static final String INITIALISED_MEMORY = "0"; public Intcode (Vector<String> values, String initialInput, boolean debug) { _debug = debug; _instructionPointer = 0; _o...
rstueven/beerme-mobile-android
beerme/src/main/java/com/beerme/android/database/TableDefs.java
package com.beerme.android.database; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import androidx.fragment.app.Fragment; import androidx.core.app.No...
dignsys/TizenRT
os/drivers/wireless/brcm/stm32l/wiced/wiced_wifi.h
/* * Broadcom Proprietary and Confidential. Copyright 2016 Broadcom * All Rights Reserved. * * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation; * the contents of this file may not be disclosed to third parties, copied * or duplicated in any form, in whole or in part, without the prior ...
fagarine/dangkang
dk-core/src/main/java/cn/laoshini/dk/expression/js/JavaScriptExpressionLogic.java
<filename>dk-core/src/main/java/cn/laoshini/dk/expression/js/JavaScriptExpressionLogic.java<gh_stars>10-100 package cn.laoshini.dk.expression.js; import javax.script.ScriptContext; import javax.script.SimpleScriptContext; import cn.laoshini.dk.constant.ExpressionConstant; import cn.laoshini.dk.expression.BaseExpressi...
wanghongsheng01/framework_enflame
oneflow/python/test/modules/test_nllloss.py
""" Copyright 2020 The OneFlow 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 applicable l...
zesty-io/nextjs-website
src/blocks/contentBlocks/index.js
export { default as Story } from './Story'; export { default as About } from './About'; export { default as CompanyValues } from './CompanyValues'; export { default as ContactDetails } from './ContactDetails';
cser700/play-together
src/main/java/com/cser/play/common/model/base/BaseRewardTaskAccept.java
package com.cser.play.common.model.base; import com.jfinal.plugin.activerecord.Model; import com.jfinal.plugin.activerecord.IBean; /** * Generated by JFinal, do not modify this file. */ @SuppressWarnings("serial") public abstract class BaseRewardTaskAccept<M extends BaseRewardTaskAccept<M>> extends Model<M> impleme...
rumenNikodimov/Java-Script-Core
09.Strings and Regular Expressions/06. Capture the Numbers.js
function captureTheNumbers(input) { let pattern = /\d+/gm result = [] let text = '' for (let i = 0; i < input.length; i++) { let currentElement = input[i] text += currentElement + ' ' } let match = pattern.exec(text) while(match){ result.push(match[0]) matc...
bartoszm/Snowmass-ONFOpenTransport
TAPI_RI/flask_server/tapi_server/models/route_compute_policy.py
<gh_stars>0 # coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from tapi_server.models.base_model_ import Model from tapi_server import util class RouteComputePolicy(Model): """NOTE: This class is auto generated b...
simoneb/melodie
.storybook/decorators/ipcRendererMock.js
'use strict' import { action } from '@storybook/addon-actions' const invokeAction = action('invoke') export default function (mock = () => null) { return storyFn => { if (!window.electron) { window.electron = {} } window.electron.ipcRenderer = { addEventListener: () => {}, removeEvent...
phoenixsbk/kvmmgr
frontend/webadmin/modules/userportal-gwtp/annotations/org/ovirt/engine/ui/userportal/section/main/presenter/tab/extended/ExtendedVirtualMachineSelectionChangeEvent.java
package org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended; import com.google.gwt.event.shared.EventHandler; import com.google.gwt.event.shared.GwtEvent; import com.google.web.bindery.event.shared.HandlerRegistration; import com.google.gwt.event.shared.HasHandlers; public class ExtendedVirtua...
Drago-Dev24/Anime-Based-Bot
commands/custom/Tags.js
<reponame>Drago-Dev24/Anime-Based-Bot module.exports = { name: "tag", description: "Create Custom Responded Commands For Your Server", usage: "create <Command Name> <Command Response> | delete <Command Name> | list", authorPermission: ["ADMINISTRATOR"], run: async(client, message, args) => { if (!arg...
termux-one/EasY_HaCk
.modules/.recon-ng/modules/recon/repositories-vulnerabilities/gists_search.py
from recon.core.module import BaseModule from urllib import quote_plus import os class Module(BaseModule): meta = { 'name': 'Github Gist Searcher', 'author': '<NAME> (@LaNMaSteR53)', 'description': 'Uses the Github API to download and search Gists for possible information disclosures. Updat...
ItsSerium/seriumium
structures/settings/update/index.js
module.exports.guild = require('./guild') module.exports.user = require('./user')
reines/game
game-common/src/main/java/com/game/common/codec/PacketCodecFactory.java
<gh_stars>0 package com.game.common.codec; import org.apache.mina.core.session.IoSession; import org.apache.mina.filter.codec.ProtocolCodecFactory; import org.apache.mina.filter.codec.ProtocolDecoder; import org.apache.mina.filter.codec.ProtocolEncoder; public class PacketCodecFactory implements ProtocolCodecFactory ...
diandian-xue/ddengine
ddgl/ddgltexture.h
<filename>ddgl/ddgltexture.h #pragma once #include "ddgl.h" #include "ddglmath.h" #include "ddclstorage.h" #include <ft2build.h> #include FT_FREETYPE_H #include "freetype/freetype.h" #include <freetype/ftglyph.h> #define DDGL_TEXTURE_EXTEND 128 typedef struct tag_ddgl_Texture { int ref; d...
esmanda3w/tp
src/main/java/seedu/pivot/model/investigationcase/caseperson/Sex.java
<gh_stars>0 package seedu.pivot.model.investigationcase.caseperson; import static java.util.Objects.requireNonNull; /** * Represents a Person's sex in PIVOT. * Guarantees: immutable; is valid as declared in {@link #isValidSex(String)} (String)} */ public enum Sex { M, F; public static final String MESSAGE...
racing19th/MiraiOS
phlibc/include/errno.h
#ifndef __PHLIBC_ERRNO_H #define __PHLIBC_ERRNO_H #include <uapi/errno.h> extern int errno; #endif
pamu/ScalaAndroidMacroid
src/main/scala/com/fortysevendeg/scala/android/ui/main/Styles.scala
<filename>src/main/scala/com/fortysevendeg/scala/android/ui/main/Styles.scala<gh_stars>0 package com.fortysevendeg.scala.android.ui.main import android.support.v7.widget.{CardView, RecyclerView} import android.text.TextUtils.TruncateAt import android.view.Gravity import android.view.ViewGroup.LayoutParams._ import and...
Falcons-Robocup/code
packages/peripheralsInterface/include/int/motors/BallhandlerBoard.hpp
<gh_stars>1-10 // Copyright 2016-2020 <NAME> (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * BallhandlerBoard.hpp * * Created on: May 3, 2016 * Author: <NAME> */ #ifndef INCLUDE_INT_MOTORS_BALLHANDLERBOARD_HPP_ #define INCLUDE_INT_MOTORS_BALLHANDLERBOARD_HPP_ #include <string> #include "int/motors/M...
mario7lorenzo/main
src/main/java/hirelah/logic/commands/EditAttributeCommand.java
package hirelah.logic.commands; import static hirelah.logic.util.CommandUtil.saveAttributes; import static java.util.Objects.requireNonNull; import hirelah.commons.exceptions.IllegalValueException; import hirelah.commons.util.ModelUtil; import hirelah.logic.commands.exceptions.CommandException; import hirelah.model.M...
open-o/sdno-brs
br-svc/service/src/main/java/org/openo/sdno/brs/model/roamo/PagingQueryPara.java
/* * Copyright 2016 Huawei Technologies Co., Ltd. * * 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...
sarang-apps/darshan_browser
chrome/browser/extensions/extension_ui_util.cc
// Copyright 2014 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/extensions/extension_ui_util.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include ...
Code-With-Aagam/competitive-programming
AtCoder/abc114/D.cpp
#pragma GCC optimize("O3") #pragma GCC target("sse4") #include <bits/stdc++.h> using namespace std; #define deb(x) cout << #x << " is " << x << "\n" #define int long long #define mod 1000000007 #define PI acos(-1) template <typename T> using min_heap = priority_queue<T, vector<T>, greater<T>>; templ...
iaddis/milkdrop2020
src/script/mdp-eel2/script-yycontext.h
#pragma once #include <stdint.h> #include <string> //#include "ns-eel.h" #include "script-lextab.h" #include "script-compiler.h" #include "script-functype.h" namespace Script { namespace mdpx { typedef intptr_t INT_PTR; #define YYSTYPE INT_PTR struct lextab; class CompileContext; class Ex...
praveennagaraj97/e-commerce-using-react-and-express
client/src/actions/index.js
<filename>client/src/actions/index.js export { // Login loadLogin, loginUser, // signUp loadSignUp, signUpUser, // accreditation loadAccreditation, userAccredited, // LogoutUser loadLogout, // forgot password loadForgotPassword, loadResetPassword, // User settings loadUser, getUser, ...
shalomeir/generator-snippod-hackathon
grunt/tasks/wait.js
<reponame>shalomeir/generator-snippod-hackathon // `grunt wait` // Pause grunt execution of tasks to allow node server enough to time to restart 'use strict'; var taskConfig = function(grunt) { grunt.registerTask('wait', 'Task that allows a set amount of time to wait for the server to reload', function() { grun...
anarancio/nifty-wallet
ui/app/rif/components/table/index.js
<filename>ui/app/rif/components/table/index.js import GenericTable from './genericTable'; export { GenericTable, }
cdeitrick/isolate_parsers
dataio.py
<gh_stars>0 from pathlib import Path from typing import Optional, Union, List import io import pandas def _import_table_from_path(filename: Path, sheet_name: Optional[str] = None, index: Optional[str] = None) -> pandas.DataFrame: """ Imports a file as a pandas.DataFrame. Infers filetype from the filename extension/s...
rafaelguzzozup/orange-talents-05-template-mercado-livre
src/main/java/br/com/zupacademy/guzzo/mercadolivre/controller/dto/DetalheOpiniaoDto.java
<gh_stars>0 package br.com.zupacademy.guzzo.mercadolivre.controller.dto; public class DetalheOpiniaoDto { private String titulo; private String descricao; public DetalheOpiniaoDto(String titulo, String descricao) { this.titulo = titulo; this.descricao = descricao; } public String getTitulo() { return tit...
Tenzorum/IPAS-mobile-portal
src/stores/ScannerStore.js
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 3 of the License, or // (at your option) any lat...
CardinPatson/Car_Location
backend/database/migrations/20220408161929-create-orders.js
"use strict"; module.exports = { async up(queryInterface, Sequelize) { await queryInterface.createTable("orders", { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, ca...
tudouxian/process-cloud
process-center/src/main/java/com/workflow/process/center/service/WorkFlowModelInfoService.java
package com.workflow.process.center.service; import com.baomidou.mybatisplus.extension.service.IService; import com.workflow.process.center.domain.entity.WorkFlowModelInfo; /** * (WorkFlowModelInfo)表服务接口 * * @author 土豆仙 * @since 2021-06-26 22:25:20 */ public interface WorkFlowModelInfoService extends IService<Wo...
cedricga91/framework
arcane/extras/NumericalModel/src/Mesh/Interpolator/Implementation/GaussInterpolatorService.h
<gh_stars>10-100 // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- #ifndef ARCGEOSIM_INTERPOLATOR_INTERPOLATOR_GAUSSINTERPOLATORSERVICE_H #define ARCGEOSIM_INTERPOLATOR_INTERPOLATOR_GAUSSINTERPOLATORSERVICE_H /* Author : dipietrd at Thu May 29 14:06:52 2008 * Generated by createNew */ #inc...
yuhonghong66/menoh
menoh/mkldnn/operator.hpp
#ifndef MENOH_MKLDNN_OPERATOR_HPP #define MENOH_MKLDNN_OPERATOR_HPP #include <menoh/mkldnn/operator/add.hpp> #include <menoh/mkldnn/operator/batch_norm.hpp> #include <menoh/mkldnn/operator/concat.hpp> #include <menoh/mkldnn/operator/conv.hpp> #include <menoh/mkldnn/operator/conv_transpose.hpp> #include <menoh/mkldnn/o...
ismo-karkkainen/datalackey
src/InputChannel.cpp
<reponame>ismo-karkkainen/datalackey // // InputChannel.cpp // datalackey // // Created by <NAME> on 10.5.17. // Copyright © 2017 <NAME>. All rights reserved. // // Licensed under Universal Permissive License. See License.txt. #include "InputChannel.hpp" InputChannel::~InputChannel() { }
FlyerMaxwell/Bubble
common/errors.h
#ifndef ERRORS_H #define ERRORS_H #define NO_STORAGE_SPACE_ERROR 1; #define NULL_STORAGE_OR_PKG_ERROR 2; #endif
hocktide/v-c-agentd
src/authservice/auth_service_proc.c
<filename>src/authservice/auth_service_proc.c /** * \file authservice/auth_service_proc.c * * \brief Spawn the authservice process. * * \copyright 2019 Velo Payments, Inc. All rights reserved. */ #include <agentd/authservice.h> #include <agentd/bootstrap_config.h> #include <agentd/config.h> #include <agentd/fds...
Frcsty/DocDex
discord/src/main/java/me/piggypiglet/docdex/bot/embed/pagination/PaginationManager.java
package me.piggypiglet.docdex.bot.embed.pagination; import com.google.inject.Singleton; import me.piggypiglet.docdex.bot.embed.pagination.objects.Pagination; import me.piggypiglet.docdex.bot.emote.EmoteWrapper; import me.piggypiglet.docdex.bot.utils.PermissionUtils; import net.dv8tion.jda.api.entities.Message; import ...
cswarth/whylogs
src/whylogs/util/data.py
""" Utility functions for interacting with data """ from collections import OrderedDict def getter(x, k: str, *args): """ get an attribute (from an object) or key (from a dict-like object) `getter(x, k)` raise KeyError if `k` not present `getter(x, k, default)` return default if `k` not present ...
LJW123/YiLianMall
YiLian/src/main/java/com/yilian/mall/entity/SnatchPartEntity.java
package com.yilian.mall.entity; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; /** * Created by Administrator on 2016/4/6. * 夺宝详情进行中 */ public class SnatchPartEntity extends BaseEntity { @SerializedName("status")//进行状态 1进行中 2已揭晓 public String status; @SerializedName...
nowoh/kopo33_source_backup
kopo33/src/hw0322_Mon_ch5/P09_1.java
<reponame>nowoh/kopo33_source_backup package hw0322_Mon_ch5; import java.util.Scanner; public class P09_1 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { P09course.printMenu(); int Mnum = scan.nextInt(); switch (Mnum) { case 1 : P09course.pri...
cvent/octopus-deploy-api-client
octopus_deploy_swagger_client/models/community_action_template_resource.py
<filename>octopus_deploy_swagger_client/models/community_action_template_resource.py # coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc680...
n11-TalentHub-Java-Bootcamp/second-homework-aydinsercan
src/main/java/com/sercanaydin/springboot/dao/KategoriDao.java
package com.sercanaydin.springboot.dao; import com.sercanaydin.springboot.entity.Kategori; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Service; import java.util.List; @Service public interface KategoriDao extends JpaRepository<Kategori, Long> { ...
Raphaenn/Freelance1
Mobile/src/components/carrosel/index.js
<reponame>Raphaenn/Freelance1 import React from "react"; import Paralax from "./paralax"; import { Container } from "./styles"; export default function Carrosel() { return ( <Container> <Paralax /> </Container> ) }
simbatech/incubator-drill
exec/java-exec/src/main/java/org/apache/drill/exec/physical/base/Sender.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...
lihop/Eldritch
Code/Libraries/Workbench/src/PEs/wbpesaturate.h
<reponame>lihop/Eldritch<gh_stars>1-10 #ifndef WBPESATURATE_H #define WBPESATURATE_H #include "wbpeunaryop.h" class WBPESaturate : public WBPEUnaryOp { public: WBPESaturate(); virtual ~WBPESaturate(); DEFINE_WBPE_FACTORY( Saturate ); virtual void Evaluate( const WBParamEvaluator::SPEContext& Context, WBParamEva...
benamrou/controlRoom
controlRoom_server/server/node_modules/apiconnect-wsdl/lib/extraXSD.js
<reponame>benamrou/controlRoom /** ******************************************************* {COPYRIGHT-TOP} *** * Licensed Materials - Property of IBM * 5725-Z22, 5725-Z63, 5725-U33, 5725-Z63 * * (C) Copyright IBM Corporation 2016, 2020 * * All Rights Reserved. * US Government Users Restricted Rights - Use, dupli...
NifTK/NifTK
MITK/Modules/DnDDisplay/Testing/niftkItkSignalCollector.cxx
<filename>MITK/Modules/DnDDisplay/Testing/niftkItkSignalCollector.cxx<gh_stars>10-100 /*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is dist...
chogba6/ONE
compiler/locomotiv/src/Node/DepthwiseFilterEncode.test.cpp
<gh_stars>100-1000 /* * Copyright (c) 2019 Samsung Electronics Co., Ltd. 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/LICEN...
antmicro/OpenFPGA
openfpga/src/fpga_sdc/sdc_memory_utils.cpp
/******************************************************************** * Most utilized function used to constrain memory cells in FPGA * fabric using SDC commands *******************************************************************/ /* Headers from vtrutil library */ #include "vtr_assert.h" #include "vtr_log.h" /* H...
mrkahfi/stradetegy
src/Jariff/SuperAdminBundle/Resources/public/js/grid-inbound.js
<reponame>mrkahfi/stradetegy $(document).ready(function () { function filter(dataIndx, value) { $grid.pqGrid("filter", { data: [{ dataIndx: dataIndx, value: value}] }); } var obj = { width :1080, height :400, title : "Inbound", ...
ckeiner/Test-Bddy
src/main/java/com/xceptance/testbddy/core/bdd/steps/Step.java
package com.xceptance.testbddy.core.bdd.steps; import com.aventstack.extentreports.GherkinKeyword; /** * Describes a BDD Step without test data. <br> * To execute it, see the {@link #test()} method. * * @author ckeiner */ public class Step extends AbstractStep<Runnable> { /** * Creates a Step with the...
From-pErfo/FastLogin
core/src/main/java/com/github/games647/fastlogin/core/shared/ForceLoginManagement.java
<filename>core/src/main/java/com/github/games647/fastlogin/core/shared/ForceLoginManagement.java<gh_stars>1-10 /* * SPDX-License-Identifier: MIT * * The MIT License (MIT) * * Copyright (c) 2015-2022 games647 and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of t...
ekhidbor/FUMe
src/fume/vrs/ob.cpp
<gh_stars>0 /** * This file is a part of the FUMe project. * * To the extent possible under law, the person who associated CC0 with * FUMe has waived all copyright and related or neighboring rights * to FUMe. * * You should have received a copy of the CC0 legalcode along with this * work. If not, see http://cr...
duo-dinamico/ServiceReports
api/routes/api.router.js
<gh_stars>0 const apiRouter = require("express").Router(); const {methodNotAllowed} = require("../errors"); const clientsRouter = require("./clients.router"); const usersRouter = require("./users.router"); const departmentsRouter = require("./departments.router"); const machinesRouter = require("./machines.router"); co...
SNL-GMS/GMS-PI7-OPEN
gms-common/java/gms/core/data-acquisition/css30-loader/css-reader/src/test/java/gms/dataacquisition/css/converters/flatfilereaders/WfdiscRecordTest.java
<reponame>SNL-GMS/GMS-PI7-OPEN package gms.dataacquisition.css.converters.flatfilereaders; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import gms.dataacquisition.cssreader.data.WfdiscR...
FutureHax/Marvin-Android
app/src/main/java/com/futurehax/marvin/fragments/GeneralPreferenceFragment.java
package com.futurehax.marvin.fragments; import android.content.Intent; import android.os.Bundle; import android.preference.Preference; import android.support.v4.preference.PreferenceFragment; import com.futurehax.marvin.R; import com.futurehax.marvin.UberEstimoteApplication; import com.futurehax.marvin.activities.Log...
16underscore/Insane
src/main/java/me/sixteen_/insane/command/CommandManager.java
package me.sixteen_.insane.command; import me.sixteen_.insane.Insane; import me.sixteen_.insane.command.commands.Bind; import me.sixteen_.insane.command.commands.Clear; import me.sixteen_.insane.command.commands.Config; import me.sixteen_.insane.command.commands.Help; import me.sixteen_.insane.command.commands....
weiboad/adbase
docs/dc/df2/structadbase_1_1_time_zone_1_1_data.js
<filename>docs/dc/df2/structadbase_1_1_time_zone_1_1_data.js var structadbase_1_1_time_zone_1_1_data = [ [ "abbreviation", "dc/df2/structadbase_1_1_time_zone_1_1_data.html#ae526635e7ecbe4b158de98b358920b52", null ], [ "localtimes", "dc/df2/structadbase_1_1_time_zone_1_1_data.html#aed3c92f32e97f3d8e2fcd52f19c855...
alichherawalla/react-native-graphql-appsync
app/containers/HomeScreen/index.js
import React, { useEffect } from 'react' import { RefreshControl, ScrollView, StyleSheet } from 'react-native' import { connect } from 'react-redux' import { compose } from 'redux' import { PropTypes } from 'prop-types' import { FAB, List } from 'react-native-paper' import { createStructuredSelector } from 'reselect' i...
DavidWz/Myun-Lang
src/myun/AST/constraints/FunctionHasReturnConstraint.java
package myun.AST.constraints; import myun.AST.*; /** * Checks whether each program flow in a function has a return statement. */ class FunctionHasReturnConstraint implements Constraint, ASTVisitor<Boolean> { @Override public void check(ASTCompileUnit compileUnit) { compileUnit.accept(this); } ...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/eclipse.jdt.ui/2937.java
<reponame>masud-technope/ACER-Replication-Package-ASE2017 public class T9815 { void f1() { String j = ex(); } String ex() { /*[*/ return /*]*/ "text"; } }
TonyChengTW/Rmail
src/global/record.c
/*++ /* NAME /* record 3 /* SUMMARY /* simple typed record I/O /* SYNOPSIS /* #include <record.h> /* /* int rec_get(stream, buf, maxsize) /* VSTREAM *stream; /* VSTRING *buf; /* int maxsize; /* /* int rec_put(stream, type, data, len) /* VSTREAM *stream; /* int type; /* const char *data; /* int len; /* AUXILIARY FUNCTIO...
emory-irlab/liveqa
src/main/scala/edu/emory/mathcs/ir/liveqa/util/TermIdf.scala
package edu.emory.mathcs.ir.liveqa.util import java.io.{BufferedInputStream, BufferedReader, FileInputStream, InputStreamReader} import java.util.zip.GZIPInputStream import com.typesafe.config.ConfigFactory import com.typesafe.scalalogging.LazyLogging /** * Returns inverse document frequencies of terms. */ objec...
ashish-s/twilio-ruby
lib/twilio-ruby/framework/obsolete_client.rb
<reponame>ashish-s/twilio-ruby<filename>lib/twilio-ruby/framework/obsolete_client.rb # frozen_string_literal: true module Twilio module REST class ObsoleteClient def initialize(*) raise ObsoleteError, "#{self.class} has been removed from this version of the library. "\ ...
apereo-tesuto/tesuto
tesuto-ui/src/main/java/org/cccnext/tesuto/web/controller/StudentCollegeAffiliationController.java
<reponame>apereo-tesuto/tesuto /******************************************************************************* * Copyright © 2019 by California Community Colleges Chancellor's Office * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the Licen...
Kamesuta/TofuCraft
src/main/java/tsuteto/tofu/block/BlockTcOre.java
package tsuteto.tofu.block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import java.util.Random; public class BlockTcOre extend...
tpasternak/pants
src/python/pants/backend/python/lint/pylint/rules_integration_test.py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from functools import partialmethod from textwrap import dedent from typing import List, Optional import pytest from pants.backend.python.lint.pylint.rules import PylintTarget from pants...
d4x337/reloaded
db/migrate/20120702074611_create_mini_post_likings.rb
class CreateMiniPostLikings < ActiveRecord::Migration def self.up create_table :mini_post_likings do |t| t.boolean :liking,:default => true t.datetime :created_at, :null => false t.integer :mini_post_id, :default => 0,:null => false t.integer :user_id,:default => 0,:null => fals...
marwahan/test-os
www/app/modules/biospecimen/participant/specimen/module.js
angular.module('os.biospecimen.specimen', [ 'ui.router', 'os.biospecimen.specimen.addedit', 'os.biospecimen.specimen.detail', 'os.biospecimen.specimen.overview', 'os.biospecimen.specimen.close', 'os.biospecimen.specimen.addaliquots', 'os.biospecimen.specimen.addderivative', 'os.biosp...
oicqtian/vue_admin_template
src/views/home/homeSiderRight/HomeSiderRight.class.js
export default { name: 'homeSiderRight', // 右侧 components: { }, data() { return {}; }, mounted() {}, methods: {}, render(h) { return <div class="home-rigth"></div>; } };
archivemanager/server
src/main/java/org/archivemanager/services/search/IndexCreationRequest.java
<reponame>archivemanager/server package org.archivemanager.services.search; import java.util.HashMap; import java.util.Map; import org.archivemanager.services.search.indexing.FieldMapping; public class IndexCreationRequest { private Map<String,FieldMapping> mappings = new HashMap<String,FieldMapping>(); ...
alexqdh/PaddleFlow
pkg/fs/server/api/request/link.go
<reponame>alexqdh/PaddleFlow<gh_stars>1-10 /* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. 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...
zerotheft/zerotheft-holon-node
app/services/calcEngineServices/index.js
<reponame>zerotheft/zerotheft-holon-node /* eslint-disable no-underscore-dangle */ const fs = require('fs') const { get, min, max, isEmpty, difference } = require('lodash') const { pathsByNation } = require('zerotheft-node-utils').paths const config = require('zerotheft-node-utils/config') const cacheDir = `${config.A...
ryanb93/newrelic-java-agent
newrelic-agent/src/main/java/com/newrelic/agent/normalization/Normalizer.java
/* * * * Copyright 2020 New Relic Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * */ package com.newrelic.agent.normalization; import java.util.List; public interface Normalizer { /** * Normalize the given name. * * @return either null for ignore; the given nam...
Solidstatewater/Anubis-Engine
Graphics/install-sh/include/sh/ShSwizzle.hpp
<gh_stars>1-10 // Sh: A GPU metaprogramming language. // // Copyright (c) 2003 University of Waterloo Computer Graphics Laboratory // Project administrator: <NAME> // Authors: <NAME>, <NAME>, <NAME>, <NAME>, // <NAME> // // This software is provided 'as-is', without any express or implied // warranty. In no e...
kkkkv/tgnms
tgnms/fbcnms-projects/tgnms/app/components/taskBasedConfig/__tests__/ConfigTaskForm-test.js
<gh_stars>10-100 /** * Copyright 2004-present Facebook. All Rights Reserved. * * @format * @flow strict-local */ import * as React from 'react'; import ConfigTaskForm from '../ConfigTaskForm'; import {FORM_CONFIG_MODES} from '@fbcnms/tg-nms/app/constants/ConfigConstants'; import {TestApp, renderAsync} from '@fbcn...
bialang/bia
bia/util/contract.hpp
<gh_stars>1-10 #ifndef BIA_UTIL_CONTRACT_HPP_ #define BIA_UTIL_CONTRACT_HPP_ #include "config.hpp" #if BIA_UTIL_CONTRACT_BEHAVIOR_THROW # include <bia/error/contract_violation.hpp> # define BIA_ASSERT(cond) \ if (!(cond)) ...
nfp-projects/isaland_mail
test/user/routes.test.js
<reponame>nfp-projects/isaland_mail import assert from 'assert-extended' import sinon from 'sinon' import 'sinon-as-promised' import { model } from '../helper.db' describe('User (Routes)', () => { const routes = require('../../server/user/routes') const User = require('../../server/user/model').default let ctx...
defunSM/code
c++/object.h
<reponame>defunSM/code #ifndef _object_h #define _object_h typedef enum { NORTH, SOUTH, EAST, WEST } Direction; typedef struct { char *description; int (*init)(void *self); void (*describe)(void *self); void (*destroy)(void *self); void *(*move)(void *self, Direction direction); int (*atta...
cuipy/tijian
src/main/java/com/thinkgem/jeesite/modules/sys/entity/SysSequence.java
<filename>src/main/java/com/thinkgem/jeesite/modules/sys/entity/SysSequence.java<gh_stars>0 /** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.sys.entity; import com.thinkgem.jeesite.common.persistence.DataEntity; /...
ezgikaysi/koding
go/src/socialapi/workers/notification/models/replynotification.go
package models import ( "time" ) type ReplyNotification struct { TargetId int64 ListerId int64 MessageId int64 NotifierId int64 } func (n *ReplyNotification) GetNotifiedUsers(notificationContentId int64) ([]int64, error) { // fetch all subscribers notifiees, err := fetchNotifiedUsers(notificationContentI...
GenaAiv/portfolio-website
node_modules/@material-ui/utils/refType.js
<filename>node_modules/@material-ui/utils/refType.js "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); ...
filipecn/helios
helios/geometry/animated_transform.cpp
// Created by filipecn on 2019-01-06. /* * Copyright (c) 2019 FilipeCN * * The MIT License (MIT) * * 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 withou...
Dr-Turtle/DRG_ModPresetManager
Source/FSD/Private/StatusEffectsFunctionLibrary.cpp
<gh_stars>1-10 #include "StatusEffectsFunctionLibrary.h" #include "Templates/SubclassOf.h" class UStatusEffect; class UDamageClass; class AActor; float UStatusEffectsFunctionLibrary::GetMaxResistance(TSubclassOf<UStatusEffect> StatusEffect) { return 0.0f; } UDamageClass* UStatusEffectsFunctionLibrary::GetDamageC...
lintonv/aws-sdk-cpp
aws-cpp-sdk-lightsail/source/model/InstanceNetworking.cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/lightsail/model/InstanceNetworking.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { ...
mzhg/PostProcessingWork
parsing/src/main/java/jet/parsing/cplus/ue4/UE4HeaderParser.java
package jet.parsing.cplus.ue4; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import jet.opengl.postprocessing.util.DebugTools; import jet.opengl.postprocessing.util.StringUtils; public class UE4HeaderParser { public stat...
riadnassiffe/Simulator
src/tools/ecos/ecos/include/spla.h
<reponame>riadnassiffe/Simulator<filename>src/tools/ecos/ecos/include/spla.h /* * ECOS - Embedded Conic Solver. * Copyright (C) 2012-2015 <NAME> [<EMAIL>], * Automatic Control Lab, ETH Zurich & embotech GmbH, Zurich, Switzerland. * * This program is free software: you can redistribute it and/or modify * it ...
NCIP/catrip
codebase/projects/catissuecore-beans/src/edu/wustl/catissuecore/domainobject/DistributionProtocol.java
/*L * Copyright Duke Comprehensive Cancer Center * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/catrip/LICENSE.txt for details. */ // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) ...
lukhnos/objclucene
include/org/apache/lucene/search/DisiPriorityQueue.h
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: ./core/src/java/org/apache/lucene/search/DisiPriorityQueue.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_OrgApacheLuceneSearchDisiPriorityQueue") #ifdef RESTRICT_OrgApacheLuceneSearchDisiPriorityQueue #define INCLUDE_ALL_OrgApac...
akiyamalab/restretto
src/OBMol.hpp
#include <istream> #include <vector> #include <openbabel/mol.h> #include <openbabel/obconversion.h> #include <openbabel/babelconfig.h> #include <openbabel/op.h> #include <openbabel/graphsym.h> #include "Molecule.hpp" #ifndef OBMOL_H_ #define OBMOL_H_ namespace format{ std::vector<OpenBabel::OBMol> ParseFileToOBMo...
enotio/Tempest
Tempest/system/androidapi.cpp
<filename>Tempest/system/androidapi.cpp<gh_stars>1-10 #include "androidapi.h" using namespace Tempest; #ifdef __ANDROID__ #include <Tempest/Application> #include <Tempest/Window> #include <Tempest/Event> #include <Tempest/Log> #include <Tempest/Assert> #include <Tempest/DisplaySettings> #include <Tempest/JniExtras> ...
irentu/openengsb
components/ekb/graphdb-orient/src/test/java/org/openengsb/core/ekb/graph/orient/OrientModelGraphTest.java
/** * Licensed to the Austrian Association for Software Tool Integration (AASTI) * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. The AASTI licenses this file to you under the Apache License, * Version 2...
npocmaka/Windows-Server-2003
base/win32/fusion/sxs/nodefactory.cpp
<reponame>npocmaka/Windows-Server-2003<gh_stars>10-100 /* Copyright (c) Microsoft Corporation */ #include "stdinc.h" #include "actctxgenctx.h" // // ISSUE: jonwis 3/9/2002 - This file is full of missing parameter checking. // // NTRAID#NTBUG9 - 572507 - jonwis - 2002/04/25 - Parameter checking (#1) // NTRAID...