repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
nekumelon/CodeXR
back-end/src/OpenAI/query.js
<gh_stars>1-10 /* author....: nekumelon License...: MIT (Check LICENSE) */ const { statusCodes } = require('../status'); const { Configuration, OpenAIApi } = require('openai'); const { encode } = require('gpt-3-encoder'); const web = require('../web'); const apiKey = process.env.OPENAI_API_KEY; const configuration...
zwkjhx/vertx-ui
src/app/action/mock/index.js
import fnApp from './fnApp' import fnMenu from './fnMenu' import fnDeptList from './fnDeptList' import fnDeptColumnFull from './fnDeptColumn' import fnDeptColumnCurrent from './fnDeptColumnCurrent' import fnCategory from './fnCategory' import fnCategoryList from './fnCategoryList' import fnTreeData from './fnTreeData...
christianalfoni/learncode
app/common/factories/actions/redirect.js
function redirect(url) { function action({services}) { services.router.redirect(url); } action.displayName = `redirect (${url})`; return action; } export default redirect;
monarch-initiative/SilentGenes
silent-genes-io/src/test/java/org/monarchinitiative/sgenes/io/GeneParserTestBase.java
package org.monarchinitiative.sgenes.io; import org.monarchinitiative.svart.assembly.GenomicAssemblies; import org.monarchinitiative.svart.assembly.GenomicAssembly; import java.nio.file.Path; public class GeneParserTestBase { protected static final GenomicAssembly ASSEMBLY = GenomicAssemblies.GRCh38p13(); ...
x-ian/care-bricks
node-red-userdir/nodes/common/summary-interactive.js
<filename>node-red-userdir/nodes/common/summary-interactive.js<gh_stars>1-10 module.exports = function(RED) { function SummaryInteractiveNode(properties) { RED.nodes.createNode(this,properties); this.label = properties.label; this.datatype = properties.datatype; var node = this; ...
nrg12/VOOGASalad
src/structures/data/actions/params/SpriteParam.java
package structures.data.actions.params; import java.util.List; import exceptions.ParameterParseException; import structures.data.DataSprite; import utils.Utils; public class SpriteParam implements IParameter, ISelectable { private List<DataSprite> myPossibleSprites; private DataSprite mySelected; private String...
dherbst/lullaby
third_party/assimp/revision.h
<filename>third_party/assimp/revision.h #ifndef ASSIMP_REVISION_H_INC #define ASSIMP_REVISION_H_INC #define GitVersion 0xe89c811b #define GitBranch "4.1.0" #endif // ASSIMP_REVISION_H_INC
ntejos/Barak
barak/sed.py
<reponame>ntejos/Barak<gh_stars>0 """ Perform calculations on Spectral Energy Distributions (SEDs). Inspired by the SED module in astLib by <NAME> (http://astlib.sourceforge.net) - VEGA: The SED of Vega, used for calculation of magnitudes on the Vega system. - AB: Flat spectrum SED, used for calculation of magnitudes...
cm1234567/patterns
src/main/java/patternsdemo/strategy/strategy/AuthStrategy.java
<gh_stars>0 package patternsdemo.strategy.strategy; public interface AuthStrategy { boolean checkLogin(String name, String password); }
Mr-S-Mirzoev/CG-2021
1. Rogue-like game/doc/html/search/all_11.js
<gh_stars>0 var searchData= [ ['throwexceptiononglerror_1328',['ThrowExceptionOnGLError',['../common_8h.html#ace33e758fb773d4c493543f84e7417b9',1,'common.h']]], ['tile_1329',['Tile',['../classTile.html',1,'Tile'],['../classTile.html#ade8c037ee27c821937829683be8d7b82',1,'Tile::Tile()']]], ['tile_2ecpp_1330',['tile...
lobamosa/mano
app/src/scenes/Login/TeamSelection.js
import React, { useState } from 'react'; import styled from 'styled-components'; import { ActivityIndicator } from 'react-native'; import colors from '../../utils/colors'; import SceneContainer from '../../components/SceneContainer'; import ScrollContainer from '../../components/ScrollContainer'; import { MyText } from...
uk-gov-dft/bluebadge-citizen-webapp
acceptance-tests/src/test/java/uk/gov/service/bluebadge/test/acceptance/steps/site/ApplicationSteps.java
package uk.gov.service.bluebadge.test.acceptance.steps.site; import com.google.common.collect.Lists; import cucumber.api.java.en.And; import cucumber.api.java.en.Given; import java.time.LocalDate; import org.springframework.beans.factory.annotation.Autowired; import uk.gov.service.bluebadge.test.acceptance.pages.site....
jonathandreyer/esp-modem
src/esp_modem_factory.cpp
<reponame>jonathandreyer/esp-modem<filename>src/esp_modem_factory.cpp // Copyright 2021 Espressif Systems (Shanghai) PTE 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:/...
UnknownArkish/OS_Assginment-SZU-
OS_HW_Comprehensive_1/Part1/ZombieDemo.c
<reponame>UnknownArkish/OS_Assginment-SZU- #include<sys/types.h> #include<unistd.h> #include<stdio.h> #include<stdlib.h> int main(){ pid_t pid = fork(); if( pid < 0 ){ printf("Error!\n"); }else if( pid == 0 ){ printf("Hi father! I am a ZOMBIE\n"); exit(0); }else{ getchar...
usamakhan049/assignment
src/SearchMenu/SearchMenuPerformedSearchMessage.h
<filename>src/SearchMenu/SearchMenuPerformedSearchMessage.h // Copyright eeGeo Ltd (2012-2015), All Rights Reserved #pragma once #include <string> namespace ExampleApp { namespace SearchMenu { class SearchMenuPerformedSearchMessage { std::string m_searchQuery; bool m_i...
jce-caba/GtkQR
src/encodings/8859_5_character_set.c
#include "8859_5_character_set.h" int get8859_5_character(int unicode) { if ( unicode >= 0 && unicode <= 126) return unicode; else if ( unicode == 160) return 160; else if ( unicode == 173) return 173; else if ( unicode >= 1025 && ...
garytaylor/agileproxy
lib/agile_proxy/handlers/proxy_handler.rb
require 'agile_proxy/handlers/handler' require 'eventmachine' require 'em-synchrony/em-http' module AgileProxy # = The handler used for proxying the request on to the original server # # This handler is responsible for proxying the request through to the original server and passing back its response # # It w...
alphaho/TypeFlow
code_template/scala/FileInputEndpointTemplate.scala
package $PackageName$ import com.typesafe.scalalogging.Logger import scala.io.{Source, StdIn} import scala.util.{Failure, Success, Try} object $DefinitionName$ extends App { private val logger = Logger($DefinitionName$.getClass) execute() def execute(): Unit = { //TODO input your file name val source...
thangph9/123order-ant
src/services/image.js
import { stringify } from 'qs'; import request from '@/utils/request'; import { getAuthority } from '@/utils/authority'; export async function getProducts(params) { return request(`/api/product/list?${stringify(params)}`); } export async function upload(params) { const formData = new FormData(); formData.appe...
luohongjunnn/jstorm
jstorm-on-yarn/src/main/java/com/alibaba/jstorm/yarn/thrift/ThriftServer.java
package com.alibaba.jstorm.yarn.thrift; import java.util.Map; import javax.security.auth.login.Configuration; import org.apache.thrift7.TProcessor; import org.apache.thrift7.server.TServer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ThriftServer { private static final Logger LOG = Logge...
TolyaTalamanov/plaidml
tile/base/shape.cc
// Copyright 2018 Intel Corporation. #include "tile/base/shape.h" namespace vertexai { namespace tile { std::ostream& operator<<(std::ostream& os, const TensorShape& shape) { os << to_string(shape.type); if (!shape.layout.empty()) { os << "[" << shape.layout << "]"; } os << "("; for (size_t i = 0; i < ...
pi/goal
hash/race.go
<filename>hash/race.go // +build race package hash const race = false
EthanTuttle/NinjaFastKitchenSystem3000
src/main/java/restaurantGUI/DisplayItem.java
package src.main.java.restaurantGUI; import java.awt.*; import javax.swing.*; import src.main.java.Backend.Customer; import src.main.java.Backend.MenuItem; import src.main.java.Backend.OrderItem; import java.util.concurrent.TimeUnit; import java.util.*; /** * Display for a specific item in the order display */ pub...
m00g3n/kyma
tests/ui-api-layer-acceptance-tests/internal/domain/authentication/idppreset_authz_test.go
// +build acceptance package authentication import ( "testing" "github.com/stretchr/testify/assert" "github.com/kyma-project/kyma/tests/ui-api-layer-acceptance-tests/internal/dex" "github.com/kyma-project/kyma/tests/ui-api-layer-acceptance-tests/internal/graphql" "github.com/kyma-project/kyma/tests/ui-api-laye...
mag67/practice_atomic_design
node_modules/@storybook/addon-chapters/register.js
<gh_stars>0 'use strict'; var _storybookAdk = require('storybook-adk'); var _addonLinks = require('@storybook/addon-links'); var _store = require('storybook-adk/dist/store/store'); var _config = require('./dist/config'); var _config2 = _interopRequireDefault(_config); function _interopRequireDefault(obj) { return...
PeterSommerlad/CPPCourseIntroduction
exercises/solutions/exercise09/GardeningLibTest/src/RectangleSuite.h
<gh_stars>0 #include "cute_suite.h" extern cute::suite make_suite_RectangleSuite();
KierenEinar/taobao
taobao-product/src/main/java/taobao/product/mapper/ProductParamsItemMapper.java
package taobao.product.mapper; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.ResultMap; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.SelectKey; import org.apache.ibatis.annotations.Update; import taoba...
Cronosus/FossilArcheology1.7
src/main/java/mods/fossil/entity/mob/EntityFailuresaurus.java
package mods.fossil.entity.mob; import mods.fossil.Fossil; import net.minecraft.entity.monster.EntityZombie; import net.minecraft.item.Item; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class EntityFailu...
harizSalim/LOG6306-SalimAlex
lock/src/main/java/com/auth0/lock/validation/LoginValidator.java
/* * LoginValidator.java * * Copyright (c) 2014 Auth0 (http://auth0.com) * * 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 ...
blockspacer/chromium_base_conan
extensions/third_party/perfetto/protos/perfetto/config/trace_config.pb.h
<reponame>blockspacer/chromium_base_conan<filename>extensions/third_party/perfetto/protos/perfetto/config/trace_config.pb.h // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protos/perfetto/config/trace_config.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fconfig_2ftrace_5fconfig_2epro...
prosyslab-warehouse/graphicsmagick-1.3.25
magick/quantize.c
<gh_stars>0 /* % Copyright (C) 2003 - 2015 GraphicsMagick Group % Copyright (C) 2002 ImageMagick Studio % Copyright 1991-1999 <NAME> and Company % % This program is covered by multiple licenses, which are described in % Copyright.txt. You should have received a copy of Copyright.txt with this % package; otherwise see h...
thadguidry/incubator-hop
plugins/transforms/dynamicsqlrow/src/main/java/org/apache/hop/pipeline/transforms/dynamicsqlrow/DynamicSqlRow.java
<filename>plugins/transforms/dynamicsqlrow/src/main/java/org/apache/hop/pipeline/transforms/dynamicsqlrow/DynamicSqlRow.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...
ScaledByDesign/cloudboost
home-ui/public/app.js
var __isDevelopment = false; var isLocalhost = window.location.host.indexOf('localhost') > -1; var isStaging = window.location.host.indexOf('staging') > -1; if (isLocalhost || isStaging) { __isDevelopment = true; } var serverURL = null, dashboardURL = null; var signUpURL = ''; var loginURL = ''; var tutorialURL ...
lvyitian/mapleall
mapleall/maple_ir/include/mpl_atomic.h
/* * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. * * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. * You can use this software according to the terms and conditions of the MulanPSL - 2.0. * You may obtain a copy of MulanPSL - 2.0 at: * * https://opensou...
lgalis/approval-api
lib/exceptions.rb
<gh_stars>0 module Exceptions class ApprovalError < StandardError; end end
torvigoes/Exercicios-Python3
Mundo 1/ex025.py
<filename>Mundo 1/ex025.py # PROCURANDO UMA STRING DENTRO DA OUTRA nome = str(input('Digite seu nome: ').strip().lower()) print("silva" in nome.split()) # DESSA MANEIRA EVITA-SE QUE SILVA SEJA CONFUNDIDO DENTRO DE OUTRA STRING.
deathm1/zstmx
app/src/main/java/in/koshurtech/zstmx/tabFragments/tab13.java
<filename>app/src/main/java/in/koshurtech/zstmx/tabFragments/tab13.java<gh_stars>0 package in.koshurtech.zstmx.tabFragments; import android.os.Bundle; import androidx.fragment.app.Fragment; import androidx.lifecycle.LiveData; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelProvider; import andro...
connorbrinton/gql
tests/fixtures/aws/fake_request.py
<filename>tests/fixtures/aws/fake_request.py import pytest class FakeRequest(object): headers = None def __init__(self, request_props=None): if not isinstance(request_props, dict): return self.method = request_props.get("method") self.url = request_props.get("url") ...
Redman1037/clash-royale-api
src/models/user-model.js
const Model = require('../libraries/model'); const User = require('../schemas/user-schema'); const config = require('../config/config'); const username = config.ADMIN_USERNAME; const password = <PASSWORD>.ADMIN_PASSWORD; class UserModel extends Model { constructor(SchemaModel) { super(SchemaModel); Promise.r...
frasieroh/quxer
src/templates/sequence.c
<reponame>frasieroh/quxer #ifndef SEQUENCE_C #define SEQUENCE_C #include <stdlib.h> #include <string.h> #include "templates/sequence.h" #include "templates/templates.h" static char* generate_free_trees_string(pnode_t* node, uint32_t how_many); static char* generate_set_children_string(pnode_t* node); void write_seq...
eid101/InjazErp
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/WindowPersonalizationEventHandler.java
/* ************************************************************************* * The contents of this file are subject to the Openbravo Public License * Version 1.1 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in...
seekersapp2013/new
node_modules/carbon-icons-svelte/lib/OverflowMenuHorizontal32/index.js
import OverflowMenuHorizontal32 from "./OverflowMenuHorizontal32.svelte"; export default OverflowMenuHorizontal32;
ethankhall/pity.io
bootstrap/src/main/java/io/pity/bootstrap/HelpOutputGenerator.java
package io.pity.bootstrap; import com.google.inject.Inject; import io.pity.api.PropertyValueProvider; import io.pity.api.environment.EnvironmentCollector; import io.pity.api.execution.CommandExecutor; import io.pity.api.reporting.ReportPublisher; import io.pity.bootstrap.injection.ReflectionUtils; import io.pity.boots...
cragkhit/elasticsearch
references/bcb_chosen_clones/selected#648404#66#81.java
private void detachFile(File file, Block b) throws IOException { File tmpFile = volume.createDetachFile(b, file.getName()); try { IOUtils.copyBytes(new FileInputStream(file), new FileOutputStream(tmpFile), 16 * 1024, true); if (file.length() != tmpFile.length()) { ...
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
thermo/CoMoMath/src/main/java/uk/ac/cam/ceb/como/math/average/Mean.java
<reponame>mdhillmancmcl/TheWorldAvatar-CMCL-Fork<gh_stars>10-100 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package uk.ac.cam.ceb.como.math.average; /** * * @author pb556 */ public class Mean extends Average { @Override public double calculate(int[] ...
slawekjaranowski/bc-java
core/src/test/java/org/bouncycastle/crypto/test/ZucTest.java
package org.bouncycastle.crypto.test; import org.bouncycastle.crypto.Mac; import org.bouncycastle.crypto.StreamCipher; import org.bouncycastle.crypto.engines.Zuc128CoreEngine; import org.bouncycastle.crypto.engines.Zuc128Engine; import org.bouncycastle.crypto.engines.Zuc256CoreEngine; import org.bouncycastle.crypto.en...
brucexia1/DesignPattern
src/designpattern/ClassAdapter.hpp
#pragma once class ClassTarget { public: ClassTarget(); virtual ~ClassTarget(); virtual void Request() = 0; }; class ClassAdaptee { public: ClassAdaptee(); ~ClassAdaptee(); void SpecificRequest(); }; //通过private继承ClassAdaptee获得实现继承的效果, //而通过public继承ClassTarget获得接口继承的效果。 //在 C++中的 public继承既...
hyoo/p3_web
public/js/release/dijit/form/nls/id/ComboBox.js
<reponame>hyoo/p3_web define( "dijit/form/nls/id/ComboBox", ({ previousMessage: "Pilihan sebelumnya", nextMessage: "Pilihan lain" }) );
pancelor/necrobot
necrobot/test/asynctest.py
import asyncio def async_test(loop): def real_decorator(f): def func_wrapper(*args, **kwargs): coro = asyncio.coroutine(f) future = coro(*args, **kwargs) loop.run_until_complete(future) return func_wrapper return real_decorator
rahul-y/intermine
intermine/webapp/src/main/java/org/intermine/web/logic/query/QueryMonitor.java
<gh_stars>1-10 package org.intermine.web.logic.query; /* * Copyright (C) 2002-2019 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.o...
sodero/clib2-1
test_programs/network/client_server2/client.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int main() { int sockfd = socket(AF_INET, SOCK_STREAM, 0); assert(sockfd != -1); struct sockaddr_in saddr; memset(&saddr, 0, sizeof(...
Ravi116/unimrcp-1.5.0
libs/sofia-sip/libsofia-sip-ua/soa/test_soa.c
<reponame>Ravi116/unimrcp-1.5.0<filename>libs/sofia-sip/libsofia-sip-ua/soa/test_soa.c /* * This file is part of the Sofia-SIP package * * Copyright (C) 2005 Nokia Corporation. * * Contact: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
rajkumarc2000/Insights
PlatformEngine/src/main/java/com/cognizant/devops/platformengine/modules/correlation/EngineCorrelationNodeBuilderModule.java
/******************************************************************************* * Copyright 2017 Cognizant Technology Solutions * * 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 * * ...
Magnarox/model
src/main/java/com/magnarox/snds/model/repositories/ErInvFRepository.java
<reponame>Magnarox/model package com.magnarox.snds.model.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import com.magnarox.snds.model.entities.ErInvF; public interface ErInvFRepository extends JpaRepository<ErInvF, ...
charlievieth/utils
watchman-completion/main.go
<gh_stars>1-10 package main import ( "bytes" "encoding/json" "fmt" "os" "os/exec" "runtime" "strings" "github.com/posener/complete/v2" "github.com/posener/complete/v2/predict" ) /* Usage: watchman [opts] command -h, --help Show this help --inetd Spawning from an inetd ...
Ecotrust/formhub
main/tests/test_google_doc.py
<filename>main/tests/test_google_doc.py import os from django.test import TestCase from main.views import GoogleDoc class TestGoogleDoc(TestCase): def test_view(self): doc = GoogleDoc() folder = os.path.join( os.path.dirname(__file__), "fixtures", "google_doc" ) in...
YAPP-18th/Android-Team-1-Backend
mureng-batch/src/main/java/net/mureng/batch/todayexpression/maintain/service/TodayUsefulExpressionMaintainServiceImpl.java
package net.mureng.batch.todayexpression.maintain.service; import lombok.RequiredArgsConstructor; import net.mureng.core.core.component.NumberRandomizer; import net.mureng.core.core.exception.MurengException; import net.mureng.core.todayexpression.entity.TodayUsefulExpression; import net.mureng.core.todayexpression.en...
nvaller/newrelic-client-go
pkg/plugins/components.go
package plugins import ( "fmt" "time" ) // ListComponentsParams represents a set of filters to be // used when querying New Relic applications. type ListComponentsParams struct { Name string `url:"filter[name],omitempty"` IDs []int `url:"filter[ids],omitempty,comma"` PluginID int `url:"f...
LaughingBlue/openairinterface5g
cmake_targets/lte_build_oai/build/CMakeFiles/RRC_Rel14/LTE_SystemInformationBlockType1-NB-v1450.h
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NBIOT-RRC-Definitions" * found in "/home/labuser/Desktop/openairinterface5g_f1ap/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/labuser/D...
laszlokorte/reform-java
reform-tools/src/main/java/reform/stage/tooling/modifiers/InvertedModifier.java
package reform.stage.tooling.modifiers; public class InvertedModifier implements Modifier { private final Modifier _originalModifier; public InvertedModifier(final Modifier originalModifier) { _originalModifier = originalModifier; } @Override public void setState(final boolean newState) { _originalModifi...
navikt/pensjon-selvbetjening-jsf
src/main/java/no/nav/presentation/pensjon/pselv/skjema/SkjemaCommonConstants.java
package no.nav.presentation.pensjon.pselv.skjema; public interface SkjemaCommonConstants { String STEP_HOLDER = "stepHolder"; String OPEN_STEP_INDEX = "openStepIndex"; String PUS012_SKJEMAOVERSIKT_FLOW = "/skjema/skjemaoversikt.jsf"; }
Adore-Infotech/New-IOS2021
Pods/OLMKit/src/pickle_encoding.c
<gh_stars>1-10 /* Copyright 2016 OpenMarket 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 la...
hofstadter-io/hof-starter-kit
dsl/type/default/partials/client/components/form-fields.js
<filename>dsl/type/default/partials/client/components/form-fields.js {{#each TYPE.fields as |FIELD|}} <Field name="{{camel FIELD.name}}" component={RenderField} {{#if (eq FIELD.type "string")}} type="text" {{else if (eq FIELD.type "text")}} type="textarea" {{else if (eq FIELD.type "datetime")}} type="da...
leginee/netbeans
cnd/cnd.makeproject.ui/src/org/netbeans/modules/cnd/makeproject/api/ui/wizard/IteratorExtension.java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are su...
HellicarAndLewis/Triptych
Test_Roxlu_Flock_Windows/src/application/BoidTypes.h
#ifndef ROXLU_BOID_TYPESH #define ROXLU_BOID_TYPESH #include <roxlu/math/Vec2.h> #include <pbd/PBD.h> #include <application/Settings.h> #include <application/visuals/Trail.h> /* #include "PBD.h" #include "Vec2.h" #include <deque> #include "Settings.h" #include "Trail.h" */ template<class T> struct BoidParticle : pub...
Jojo1542/DarkBot-reborn
core/src/main/java/org/darkstorm/minecraft/darkbot/wrapper/commands/FollowCommand.java
<reponame>Jojo1542/DarkBot-reborn package org.darkstorm.minecraft.darkbot.wrapper.commands; import org.darkstorm.minecraft.darkbot.ai.FollowTask; import org.darkstorm.minecraft.darkbot.util.ChatColor; import org.darkstorm.minecraft.darkbot.world.entity.*; import org.darkstorm.minecraft.darkbot.wrapper.MinecraftBotWrap...
Tobi2001/asr_ivt
IVT/src/VideoCapture/OpenCVCapture.cpp
<reponame>Tobi2001/asr_ivt<gh_stars>0 // **************************************************************************** // This file is part of the Integrating Vision Toolkit (IVT). // // The IVT is maintained by the Karlsruhe Institute of Technology (KIT) // (www.kit.edu) in cooperation with the company Keyetech (www.ke...
zhijunzhou/letterpad
admin/components/select/index.js
<gh_stars>1-10 import React, { Component } from "react"; import PropTypes from "prop-types"; import StyledSelect from "./Select.css"; class Select extends Component { static propTypes = { options: PropTypes.array, selected: PropTypes.string, onChange: PropTypes.func, bold: PropTypes.any, label: ...
jesushilarioh/C-Plus-Plus
Snippits/compareTwoArrays.cpp
//******************************************************************* // The following function accepts two int arrays. The arrays are * // compared. If they contain the same values, true is returned. * // If they contain different values, false is returned. * //***********************************...
LishenZz/my_project
venv/Lib/site-packages/rest_framework_extras/tests/test_users.py
import unittest import json from django.contrib.auth import get_user_model from django.test.client import Client, RequestFactory try: from django.urls import reverse except ImportError: from django.core.urlresolvers import reverse from rest_framework.test import APIRequestFactory, APIClient from rest_framew...
PreciousNiphemi/Belves-1
src/database/repositories/token.repo.js
const BaseRepository = require('../repository'); const Token = require('../models/token.model'); class TokenRepository extends BaseRepository { constructor() { super(Token); } } module.exports = new TokenRepository();
ardaasln/pmd
pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
<filename>pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java /** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.lang.rule.properties; import java.util.Map; import net.sourceforge.pmd.PropertyDescriptorFactory; import net.s...
dahankzter/manticore
arch/aarch64/setup.c
#include <arch/setup.h> void arch_early_setup(void) { init_memory_map(); } void arch_late_setup(void) { }
Pattamite/Course-FullStackOpen
part6/project/unisafe/src/CounterReducer.js
<filename>part6/project/unisafe/src/CounterReducer.js const initialState = { good: 0, ok: 0, bad: 0 } const actionGood = 'GOOD'; const actionOk = 'OK'; const actionBad = 'BAD'; const actionZero = 'ZERO'; function reducer(state = initialState, action) { console.log(action); switch (action.type) { case ac...
opatrascoiu/jdmn
dmn-core/src/main/java/com/gs/dmn/feel/analysis/semantics/type/BuiltinOverloadedFunctionType.java
<filename>dmn-core/src/main/java/com/gs/dmn/feel/analysis/semantics/type/BuiltinOverloadedFunctionType.java /* * Copyright 2016 <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 *...
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/bigwig.py
<gh_stars>1-10 """ Module to help create scaled bigWig files from BAM """ import pybedtools import os import subprocess def mapped_read_count(bam, force=False): """ Scale is cached in a bam.scale file containing the number of mapped reads. Use force=True to override caching. """ scale_fn = bam + '...
risavkarna/spring-boot-multi-package-demo
control-core/src/main/java/co/sys/concept/patterns/things/adt/entities/env/contexts/ContextSequence.java
package co.sys.concept.patterns.things.adt.entities.env.contexts; import co.sys.concept.patterns.things.adt.entities.env.space.Sequence; import java.util.LinkedHashMap; public abstract class ContextSequence<Context, ContextCompound> implements Sequence<Context, ContextCompound> { private LinkedHashMap<Context, ...
duc110789/vnpay
src/components/FeeTableDetail/index.js
import React, { useState } from 'react'; import { Collapse, CardBody, Card } from 'reactstrap'; import './index.scss'; const FeeTableDetail = (props) => { const [isOpen, setIsOpen] = useState(true); const toggle = () => setIsOpen(!isOpen); return ( <div className="page-content"> <...
pulumi/pulumi-aws-native
sdk/go/aws/ecs/getCapacityProvider.go
// Code generated by the Pulumi SDK Generator DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package ecs import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Resource Type definition for AWS::ECS::CapacityProvider. func LookupCapac...
vprusa/echoIrc
server/test/LoginUtil.scala
<reponame>vprusa/echoIrc import org.specs2.execute.AsResult import org.specs2.execute.Result import play.api.test.{FakeRequest, RouteInvokers, WithApplication, Writeables} import play.api.mvc.Cookie import play.api.test.Helpers import play.api.test.Helpers.cookies import play.api.test.Helpers.defaultAwaitTimeout import...
dddddai/karmada
pkg/util/rbac.go
<gh_stars>1-10 package util import ( "context" rbacv1 "k8s.io/api/rbac/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubeclient "k8s.io/client-go/kubernetes" ) // IsClusterRoleExist tells if specific ClusterRole already exists. func IsClusterRoleExist(client ku...
ShunqinChen/practice-spring
spring-boot-2.x/spring-data-mongodb/src/main/java/lol/kent/practice/spring/mongo/dao/PostRepository.java
<gh_stars>0 package lol.kent.practice.spring.mongo.dao; import lol.kent.practice.spring.mongo.entity.Post; import org.springframework.data.repository.CrudRepository; /** * <pre> * 类描述: * </pre> * <p> * Copyright: Copyright (c) 2020年08月25日 16:02 * <p> * Company: AMPM Fit * <p> * * @author Shunqin.Chen * ...
lateefojulari/unify-framework
unify-core/src/test/java/com/tcdng/unify/core/database/BranchExt.java
/* * Copyright 2018-2020 The Code Department. * * 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 applic...
AliciaHu/plumelog
plumelog-server/src/main/java/com/plumelog/server/monitor/DingTalkClient.java
<filename>plumelog-server/src/main/java/com/plumelog/server/monitor/DingTalkClient.java package com.plumelog.server.monitor; import com.dingtalk.api.DefaultDingTalkClient; import com.dingtalk.api.request.OapiRobotSendRequest; import com.dingtalk.api.response.OapiRobotSendResponse; import com.taobao.api.ApiException; i...
Fappp/Gamejolt
src/app/components/shell/top-nav/top-nav-directive.js
angular.module( 'App.Shell' ).directive( 'gjShellTopNav', function( App, Shell ) { return { restrict: 'E', templateUrl: '/app/components/shell/top-nav/top-nav.html', scope: true, link: function( scope ) { scope.App = App; scope.Shell = Shell; scope.notificationsCount = 0; scope.friendRequestCount...
pdepaepe/ovh-manager-cloud
client/app/kubernetes/kubernetes.service.js
<reponame>pdepaepe/ovh-manager-cloud angular.module('managerApp').service('Kubernetes', class Kubernetes { constructor( $q, $translate, OvhApiCloudProject, OvhApiCloudProjectFlavor, OvhApiCloudProjectInstance, OvhApiKube, OvhApiCloudProjectQuota, KUBERNETES, ) { this.$q = $q; this.$translate...
georghe-crihan/ext2fsx
src/e2fsprogs/e2fsck/util.c
/* * util.c --- miscellaneous utilities * * Copyright (C) 1993, 1994, 1995, 1996, 1997 <NAME>. * * %Begin-Header% * This file may be redistributed under the terms of the GNU Public * License. * %End-Header% */ #include <stdlib.h> #include <unistd.h> #include <string.h> #include <ctype.h> #ifdef HAVE_CONIO_H...
Khoronus/StoreData
module/record/src/record/create_file.cpp
/* @file create_file.cpp * @brief Body of the defined class. * * @section LICENSE * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE...
rhabbachi/ckanext-issues
ckanext/issues/tests/controllers/test_search.py
from ckan.plugins import toolkit try: from ckan.tests import helpers from ckan.tests import factories except ImportError: from ckan.new_tests import helpers from ckan.new_tests import factories from ckanext.issues.tests import factories as issue_factories from ckanext.issues import model as issue_model...
MouchenHung-QUANTA/OpenBIC
meta-facebook/yv35-bb/src/platform/plat_isr.c
<reponame>MouchenHung-QUANTA/OpenBIC #include "plat_isr.h" #include <stdlib.h> #include "libipmi.h" #include "libutil.h" #include "kcs.h" #include "power_status.h" #include "ipmi.h" #include "sensor.h" #include "snoop.h" #include "oem_handler.h" #include "oem_1s_handler.h" #include "plat_gpio.h" #include "plat_ipmb.h"...
midoks/hammer
vendor/golang.org/x/crypto/blake2s/register.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build go1.9 package blake2s import ( "crypto" "hash" ) func init() { newHash256 := func() hash.Hash { h, _ := New256(nil) return h } crypto.Reg...
rasputtim/SGPacMan
sgf/3.0/headers/Gamecore/lists/liststructs.h
/* SGF - Salvat Game Fabric (https://sourceforge.net/projects/sgfabric/) Copyright (C) 2010-2011 <NAME> <<EMAIL>> 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 ...
samleb/rubinius
spec/compiler/zsuper_spec.rb
<filename>spec/compiler/zsuper_spec.rb require File.dirname(__FILE__) + '/../spec_helper' describe "A Zsuper node" do relates <<-ruby do def x super end ruby parse do [:defn, :x, [:args], [:scope, [:block, [:zsuper]]]] end compile do |g| in_method :x do |d| d...
arulvijay/awssum
lib/amazon/ec2-config.js
// -------------------------------------------------------------------------------------------------------------------- // // ec2-config.js - config for AWS Elastic Compute Cloud // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by <NAME> <<EMAIL>> // // License: http://opensource.org/...
woutdenolf/spectrocrunch
spectrocrunch/xrf/parse_xia.py
<reponame>woutdenolf/spectrocrunch<filename>spectrocrunch/xrf/parse_xia.py # -*- coding: utf-8 -*- from PyMca5.PyMcaCore import XiaCorrect from PyMca5.PyMcaCore import XiaEdf from glob import glob import os import numpy as np def log_dummy(message, verbose_level=None, verbose_ask=None): pass def parse_xia_esrf...
CorfuDB/CORFU
infrastructure/src/main/java/org/corfudb/infrastructure/RemoteMonitoringService.java
package org.corfudb.infrastructure; import com.google.common.util.concurrent.ThreadFactoryBuilder; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NonNull; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.corfudb.common.result.Result; import org.corfudb.infrastructure.log.FileSy...
pdobrowo/libcs2
src/mat44f.c
/** * Copyright (c) 2015-2019 <NAME> * * This file is part of the Configuration Space Library (libcs2), a library * for creating configuration spaces of various motion planning problems. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentati...
gbtorrance/test
core/src/main/java/org/tdc/model/CompositorNode.java
package org.tdc.model; /** * Interface for compositor nodes. */ public interface CompositorNode extends NonAttribNode { CompositorType getCompositorType(); }
talenet/talenet
src/renderer/models/Pub.js
import { filterFields } from '../util/objects' import { addGetters } from '../util/immutableBean' const FIELDS = ['key', 'host', 'port', 'timestamp'] /** * Immutable class holding data for a pub. */ export default class Pub { constructor (data = {}) { this._data = filterFields(data, FIELDS) addGetters(thi...
johnrob1880/fx-audio-kit-core
lib/__tests__/fx-arrangement-test.js
/** * Copyright 2015, FxAudioKit * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. * */ 'use strict'; var FxArrangement; jest.dontMock('./../objects/fx-class'); jest.dontMock('./../audio/fx-arrangement'); ...