repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Vyraax/VulkanLab | docs/html/structVkExternalMemoryBufferCreateInfo.js | var structVkExternalMemoryBufferCreateInfo =
[
[ "handleTypes", "structVkExternalMemoryBufferCreateInfo.html#ace9ed7f7f1ffc7299deebc46afbf638e", null ],
[ "pNext", "structVkExternalMemoryBufferCreateInfo.html#a94fb9f684f35746d99bfe68bcc61c2e1", null ],
[ "sType", "structVkExternalMemoryBufferCreateInfo.html... |
Rampopula/mazda_dp_parktronic | app/mdp.c | #include "mdp.h"
#include "beeper.h"
#include "common.h"
#include "can_bus.h"
#include "can_bypass_switch.h"
#include "ptronic_decoder.h"
#include "ptronic_switch.h"
#include "system_led.h"
#ifdef MDP_MODULE
#undef MDP_MODULE
#endif
#define MDP_MODULE "mdp_app"
#define MDP_BEEP_FREQ 2755
#define MDP_INIT_BLINK_DELA... |
aehmttw/TankGame | src/main/java/basewindow/BaseWindow.java | package basewindow;
import basewindow.transformation.ScaleAboutPoint;
import basewindow.transformation.Shear;
import basewindow.transformation.Transformation;
import basewindow.transformation.Translation;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
public ab... |
Diffblue-benchmarks/Imyzt-learning-technology-code | mq-series/RabbitMQ/springboot-rabbitmq-simple/springboot-rabbitmq-producer/src/main/java/top/imyzt/learning/rabbitmq/producer/mapper/OrderMapper.java | <reponame>Diffblue-benchmarks/Imyzt-learning-technology-code<filename>mq-series/RabbitMQ/springboot-rabbitmq-simple/springboot-rabbitmq-producer/src/main/java/top/imyzt/learning/rabbitmq/producer/mapper/OrderMapper.java
package top.imyzt.learning.rabbitmq.producer.mapper;
import com.baomidou.mybatisplus.core.mapper.Ba... |
daxyonis/GBOerp | app/assets/javascripts/soumflex/views/soumflexview.js | <reponame>daxyonis/GBOerp<gh_stars>1-10
//*****************************************************/
// SOUMFLEXVIEW
// Vue qui contrôle et réagit à l'ensemble de la
// soumission rapide flexible.
//*****************************************************/
define(['jquery',
'underscore',
'backbone',
'h... |
filippovdenis/liquibase | liquibase-core/src/main/java/liquibase/database/Database.java | <reponame>filippovdenis/liquibase<gh_stars>0
package liquibase.database;
import liquibase.CatalogAndSchema;
import liquibase.change.Change;
import liquibase.changelog.ChangeSet;
import liquibase.changelog.DatabaseChangeLog;
import liquibase.changelog.RanChangeSet;
import liquibase.structure.DatabaseObject;
import liqu... |
dl-stuff/dl | adv/chrom.py | from core.advbase import *
class Aether(Skill):
def __init__(self, name=None, acts=None, true_sp=1, maxcharge=3):
super().__init__(name=name, acts=acts)
self.maxcharge = maxcharge
self.true_sp = true_sp
@property
def ac(self):
if self.flames == 3 and self.count == 3:
... |
tsconn23/alvarium-sdk-java | src/main/java/com/alvarium/sign/KeyInfo.java | <filename>src/main/java/com/alvarium/sign/KeyInfo.java
/*******************************************************************************
* Copyright 2021 Dell Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a ... |
leonarduk/unison | src/test/java/uk/co/sleonard/unison/datahandling/UNISoNDatabaseTest.java | <filename>src/test/java/uk/co/sleonard/unison/datahandling/UNISoNDatabaseTest.java<gh_stars>1-10
/**
* UNISoNDatabaseTest
*
* @author ${author}
* @since 20-Jun-2016
*/
package uk.co.sleonard.unison.datahandling;
import java.util.Date;
import java.util.Vector;
import org.hibernate.Session;
import org.junit.Assert... |
LaudateCorpus1/squest | tests/test_resource_tracker/test_api/test_resource_group_api_views/test_rg_attribute_definition_api_views/test_list.py | from rest_framework import status
from rest_framework.reverse import reverse
from resource_tracker.api.serializers.resource_group.attribute_definition_serializers import \
ResourceGroupAttributeDefinitionSerializer
from resource_tracker.models import ResourceGroupAttributeDefinition
from tests.test_resource_tracke... |
dexhorthy/gatekeeper | pkg/tls/gatekeeper_tls_test.go | <filename>pkg/tls/gatekeeper_tls_test.go
/*
Copyright 2018 Replicated.
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 ... |
blackdaemon/enso-launcher-continued | enso/contrib/calc/ipgetter.py | #!/usr/bin/env python
"""
This module is designed to fetch your external IP address from the internet.
It is used mostly when behind a NAT.
It picks your IP randomly from a serverlist to minimize request
overhead on a single server
If you want to add or remove your server from the list contact me on github
API Usage... |
rainmanwy/RED | src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/java/org/rf/ide/core/testdata/text/write/tables/keywords/creation/ACreationOfKeywordTeardownTest.java | <filename>src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/java/org/rf/ide/core/testdata/text/write/tables/keywords/creation/ACreationOfKeywordTeardownTest.java
/*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for detail... |
mudchina/es2-mudlib-utf8 | mudlib/d/latemoon/room/npc/annihi.c | inherit NPC;
void create()
{
set_name("安妮儿", ({ "annihier" }) );
set("gender", "女性" );
set("age",37);
set("long", @TEXT
TEXT
);
set("attitude", "peaceful");
set("class", "dancer");
set("combat_exp", 5000000);
set("score", 7000);
set_skill("unarme... |
SovietBear/xchange-clean | xchange-bter/src/main/java/com/xeiam/xchange/bter/dto/BTERBaseResponse.java | <reponame>SovietBear/xchange-clean<filename>xchange-bter/src/main/java/com/xeiam/xchange/bter/dto/BTERBaseResponse.java
package com.xeiam.xchange.bter.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
public class BTERBaseResponse {
private final boolean result;
private final String message;
protecte... |
cdcdec/DesignPatterns | src/com/aaron/abstractfactory/SendMailFactory.java | package com.aaron.abstractfactory;
public class SendMailFactory implements Provider{
@Override
public Sender produce() {
// TODO Auto-generated method stub
return new MailSender();
}
}
|
hujunchina/java-learning | learn01/extends/src/demo01/Father.java | package demo01;
public class Father {
int num=1;
public Father(){
System.out.println("Father construct");
}
public void say(){
System.out.println("Father method");
}
}
|
ATrain951/01.python-com_Qproject | hackerrank/Algorithms/XOR Matrix/solution.py | #!/bin/python3
import os
#
# Complete the xorMatrix function below.
#
def xorMatrix(m, first_row):
#
# Write your code here.
#
n = len(first_row)
m -= 1 # now 0 row is first row, 1 row is the first row to compute
mb = str(bin(m))[2:]
lmb = len(mb)
result = first_row.copy()
for i ... |
ichitaso/TwitterListEnabler | Twitter-Dumped/7.51.5/tfnui/TFNFollowButtonAnimator.h | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <TFNUI/TFNButtonAnimator.h>
@interface TFNFollowButtonAnimator : TFNButtonAnimator
{
}
- (_Bool)animateButton:(id)arg1 fromVisualFa... |
onap/policy-models | models-interactions/model-impl/cds/src/test/java/org/onap/policy/cds/client/CdsProcessorGrpcClientTest.java | <reponame>onap/policy-models
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2019 Bell Canada.
* Modifications Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
* ===========================================================================... |
investira/dbsfaces | src/main/resources/META-INF/resources/js/dbsfaces_button.js |
dbs_button = function(pId) {
dbsfaces.ui.ajaxShowLoading(pId);
//Força to tamanho da div para ter o mesmo comportamento do button
// $(pId + "[disabled]").css("height", $(pId).outerHeight())
// .css("width", $(pId).outerWidth());
// $(pId + ".-disabled").css("height", $(pId).outerHeight())
// .css("width"... |
eurosabuj/Terminalmulator | app/src/main/java/ohi/andre/consolelauncher/commands/main/raw/devutils.java | <reponame>eurosabuj/Terminalmulator
package ohi.andre.consolelauncher.commands.main.raw;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.NotificationManagerCompat;
import java.util.List;
import ohi.andre.consolelauncher.BuildConfig;
import ohi.andre.consolelauncher.R;
import ohi.andre... |
bcaglayan/pcap4j | pcap4j-core/src/main/java/org/pcap4j/packet/namednumber/LlcControlSupervisoryFunction.java | <gh_stars>100-1000
/*_##########################################################################
_##
_## Copyright (C) 2016 Pcap4J.org
_##
_##########################################################################
*/
package org.pcap4j.packet.namednumber;
import java.util.HashMap;
import java.util.Map;
/*... |
tsmalls93/ember-nrg-ui | app/components/nrg-flash-message-wrapper/component.js | <filename>app/components/nrg-flash-message-wrapper/component.js<gh_stars>0
export {
default,
} from 'ember-nrg-ui/components/nrg-flash-message-wrapper/component';
|
moorepatrick/oyster | public/app/controllers/sourceFeedCtrl.js | <filename>public/app/controllers/sourceFeedCtrl.js
angular.module('SourceFeedCtrl', ['SourceFeedService', 'AuthService'])
.controller('SourceFeedController', function(SourceFeed, Auth) {
var vm = this;
vm.processing = true;
Auth.getUser()
.then(function(data) {
vm.user = data.data;
... |
ucsdlib/damsmanager | src/edu/ucsd/library/xdre/collection/ChecksumsHandler.java | package edu.ucsd.library.xdre.collection;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Logger;
import edu.ucsd.library.xdre.utils.DAMSClient;
import edu.ucsd.library.xdre.utils.DFile;
import edu.ucsd.library.xdre.utils.DamsURI;
/**
*
* ChecksumsHandler: perform... |
fadils/aws-sdk-android | src/main/java/com/amazonaws/services/s3/model/BucketLifecycleConfiguration.java | <reponame>fadils/aws-sdk-android
/*
* Copyright 2011-2015 Amazon Technologies, 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://aws.amazon.com/apache2.0
*
... |
timhoer/core | projects/biogears/src/cdm/patient/actions/SEHemorrhage.cpp | /**************************************************************************************
Copyright 2015 Applied Research Associates, 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.ap... |
Kitsune224/megumin-selfbot | src/commands/eval/deferred.js | <filename>src/commands/eval/deferred.js
const { Command } = require('discord-akairo');
class DeferredCommand extends Command {
constructor() {
super('deferred', {
aliases: ['deferred', 'def'],
category: 'eval',
args: [
{
id: 'lang',
... |
jakesjews/ember-macro-helpers | node-tests/blueprints/macro-test-test.js | <reponame>jakesjews/ember-macro-helpers<gh_stars>10-100
'use strict';
const describe = require('../helpers/describe-blueprint');
describe(
'Acceptance: ember generate and destroy macro-test',
'macro-test',
'fooBar',
'tests/unit/macros/foo-bar-test.js',
function(test) {
// eslint-disable-next-line mocha/... |
MartyMcAir/OtherCodeAndTrash | OtherTrash/src/main/java/z_ClassLoader/sympleLoader/Itvdn_Examples.java | package z_ClassLoader.sympleLoader;
public class Itvdn_Examples {
// https://www.youtube.com/watch?v=xfCt0g5EQs4 __ - ITVDN
public static void main(String[] args) throws ClassNotFoundException {
// getByGetClass();
// getByClass();
// 3 by .forName(..) _ т.е. здесь мы подставляяем либо с... |
omec-project/ngap | ngapType/QoSFlowsUsageReportItem.go | <filename>ngapType/QoSFlowsUsageReportItem.go
// Copyright 2019 Communication Service/Software Laboratory, National Chiao Tung University (free5gc.org)
//
// SPDX-License-Identifier: Apache-2.0
package ngapType
import "github.com/free5gc/aper"
// Need to import "github.com/free5gc/aper" if it uses "aper"
type QoSFl... |
linyiwei/qiciengine-core | src/geom/Matrix.js | /**
* @author weism
* copyright 2015 Qcplay All Rights Reserved.
*/
qc.Matrix = Phaser.Matrix;
/**
* 类名
*/
Object.defineProperty(qc.Matrix.prototype, 'class', {
get : function() { return 'qc.Matrix'; }
});
/**
* 序列化
*/
qc.Matrix.prototype.toJson = function() {
return this.toArray();
}
/**
* 反序列化
*/
... |
mamadbiabon/iGibson | igibson/examples/observations/generate_lidar_colored_pointcloud.py | import logging
import os
from sys import platform
import matplotlib.pyplot as plt
import numpy as np
import yaml
from mpl_toolkits.mplot3d import Axes3D
import igibson
from igibson.envs.igibson_env import iGibsonEnv
def get_lidar_sampling_pattern():
lidar_vertical_low = -15 / 180.0 * np.pi
lidar_vertical_hi... |
panekk/avs_commons | net/src/net_impl.h | /*
* Copyright 2017 AVSystem <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
codesoftware/NSIGEMCO | src/main/java/co/com/codesoftware/logica/productos/ProductoParamLogica.java | <reponame>codesoftware/NSIGEMCO<gh_stars>0
package co.com.codesoftware.logica.productos;
import java.util.List;
import co.com.codesoftware.servicio.producto.ProductosParamEntity;
import co.com.codesoftware.utilities.WSGeneralInterface;
public class ProductoParamLogica implements WSGeneralInterface{
/**
* metodo ... |
naichazhenhaohe/Nei | src/components/cascader/style.js | <filename>src/components/cascader/style.js<gh_stars>1-10
export const getSize = (size = 'default', theme) => {
const sizes = {
small: {
size: `calc(1.2 * ${theme.layout.gap})`,
fontSize: theme.layout.fontSizeSmall
},
default: {
size: `calc(1.5 * ${theme.layout.gap})`,
fontSize: the... |
andyChenHuaYing/scattered-items | items-design-pattern/src/main/java/org/nanshan/design/pattern/command/common/command/Command.java | <filename>items-design-pattern/src/main/java/org/nanshan/design/pattern/command/common/command/Command.java<gh_stars>1-10
package org.nanshan.design.pattern.command.common.command;
/**
* Description :
*
* @author : oscar
* @version :1.0, 2016/9/4
*/
public abstract class Command {
public abstract void execut... |
moonbirddk/networked-toolbox | tools/migrations/0016_tooluser_should_notify.py | <gh_stars>1-10
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-02-03 21:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tools', '0015_tool_created_date'),
]
|
AnonymousHacker1279/ImmersiveWeapons-Mod | src/main/java/com/anonymoushacker1279/immersiveweapons/entity/ai/goal/RangedGunAttackGoal.java | package com.anonymoushacker1279.immersiveweapons.entity.ai.goal;
import com.anonymoushacker1279.immersiveweapons.init.DeferredRegistryHandler;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.PathfinderMob;
import net.minecraft.world.entity.ai.goal.Goal;
import net.minecraft.world.enti... |
PiRK/silx | silx/gui/fit/test/testFitWidget.py | <reponame>PiRK/silx<filename>silx/gui/fit/test/testFitWidget.py
# coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2016 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this softwar... |
airslie/renalware-core | app/presenters/renalware/hd/profile_presenter.rb | <reponame>airslie/renalware-core
# frozen_string_literal: true
module Renalware
module HD
class ProfilePresenter < DumbDelegator
attr_reader :preference_set
delegate :dialysis,
:anticoagulant,
:transport,
:drugs,
:care_level,
... |
zhangyifei/mud | d/city/ma_lianwu1.c | <filename>d/city/ma_lianwu1.c
#include <room.h>
inherit ROOM;
void create()
{
set("short", "练武场");
set("long", @LONG
空阔的场地上铺满了细细的黄土,正好适合演武。四面有
几个丐帮的弟子正在练武。练武场的中心竖着几根木桩,木桩
周围还挖了若干个大沙坑。西边是兵器库。而右边有一扇小门。
LONG);
set("outdoors", "city");
set("exits", ([
"west" : __DIR__"ma_bi... |
peezy/BulHar-Fullstack | src/app/shell/crud-operations/graphql/actions.js | <gh_stars>0
export default {
searchItem() {
},
};
|
codeboxldd/photon-ml | photon-api/src/test/scala/com/linkedin/photon/ml/projector/IndexMapProjectorTest.scala | /*
* Copyright 2017 LinkedIn Corp. 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 ... |
ParisStefanou/SmartGridSimulation | ElectricalDeviceSimulationModels/src/main/java/upatras/simulationmodels/devices/PowerPlant.java | <gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package upatras.simulationmodels.devices;
import org.joda.time.DateTime;
import upatras.electricaldevicesimulation.simulat... |
h0lmes/mockservice | src/test/java/com/mockservice/domain/ScenarioTest.java | package com.mockservice.domain;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.web.bind.annotation.RequestMethod;
import static org.junit.jupiter.api.Assertions.*;
public class ScenarioTest {
private static final String STR_1 = "1";
private static fin... |
adam-collins/parsers | src/test/java/org/gbif/common/parsers/TypeStatusParserTest.java | <reponame>adam-collins/parsers
package org.gbif.common.parsers;
import org.gbif.api.vocabulary.TypeStatus;
import java.io.IOException;
import java.nio.charset.Charset;
import com.google.common.io.Resources;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
*
*/
public class TypeStatusParserTe... |
epam/openvasp-java-core | src/main/java/org/openvasp/core/model/ivms101/NaturalPersonNameTypeCode.java | <reponame>epam/openvasp-java-core
/*
* Bridge
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi... |
Smoudii/MigrantHub | MigrantHub/server/test/service/ServiceSuggestionServiceTest.js | var { assert } = require('sinon');
var sinon = require('sinon');
var sinonTest = require('sinon-test');
var test = sinonTest(sinon);
var ServiceSuggestionService = require('../../service/ServiceSuggestionService');
var ServiceSuggestionRepository = require('../../repository/ServiceSuggestionRepository');
var ServiceRep... |
anduleh/paint-github | src/reducers/subscription.js | const subscription = (state = { hover: "", level: null }, action) => {
switch (action.type) {
case "updateSubscriptionHover":
return { ...state, hover: action.payload };
case "updateSubscriptionLevel":
return { ...state, level: action.payload };
default:
return state;
}
};
... |
Keneral/apackages | apps/UnifiedEmail/src/com/android/mail/photo/MailPhotoViewActivity.java | /*
* Copyright (C) 2012 Google Inc.
* Licensed to 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
... |
PurpleSweetPotatoes/BQOCKit | BQOCKit/Classes/Category/UI/UINavigationBar+Custom.h | //
// UINavigationBar+Custom.h
// AccountBook
//
// Created by baiqiang on 2020/12/23.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UINavigationBar (Custom)
- (void)lt_setBackgroundColor:(UIColor *)backgroundColor;
- (void)lt_setElementsAlpha:(CGFloat)alpha;
- (void)lt_setTranslationY:(CGFloat)tr... |
jerryjappinen/linna-util | src/getNameFromEmail.js | <gh_stars>0
import startCase from 'lodash/startCase'
export default (email) => {
const replacedEmail = email.replace(/@.*$/, '')
return startCase(replacedEmail !== email ? replacedEmail : email)
}
|
so931/poseidonos | test/integration-tests/journal/fake/test_journal_write_completion.cpp | <filename>test/integration-tests/journal/fake/test_journal_write_completion.cpp
#include "test/integration-tests/journal/fake/test_journal_write_completion.h"
#include "test/integration-tests/journal/utils/written_logs.h"
namespace pos
{
TestJournalWriteCompletion::TestJournalWriteCompletion(WrittenLogs* writtenLogs)
... |
turbonomic/oneview-sdk-java | samples/src/main/java/com/hp/ov/sdk/fcnetwork/FcNetworkClientSample.java | /*******************************************************************************
* (C) Copyright 2015 Hewlett Packard Enterprise Development LP
*
* 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 Licen... |
merry-team/head_study_java | src/main/java/com/neteye/xinzhizhu/utils/MultimeLength.java | package com.neteye.xinzhizhu.utils;
import java.io.File;
import java.security.MessageDigest;
import it.sauronsoftware.jave.Encoder;
import it.sauronsoftware.jave.MultimediaInfo;
public class MultimeLength {
public static long getMultimeLength(String str) {
if (str == null) {
return 0;
... |
bitigchi/MuditaOS | module-gui/gui/widgets/SideListView.cpp | // Copyright (c) 2017-2021, <NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "Image.hpp"
#include "InputEvent.hpp"
#include "SideListView.hpp"
#include "Style.hpp"
namespace gui
{
SideListView::SideListView(Item *parent,
unsig... |
lakeslove/springSourceCodeTest | spring-web/src/main/java/org/springframework/http/client/BufferingClientHttpResponseWrapper.java | <reponame>lakeslove/springSourceCodeTest
/*
* Copyright 2002-2015 the original author or 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/... |
RippeR37/GLUL | tests/src/GLUL/Image.cpp | <reponame>RippeR37/GLUL
#include <gtest/gtest.h>
#include <GLUL/Image.h>
#include <glm/vec2.hpp>
#include <cstring>
bool isValidImageData(unsigned char* imageData, unsigned int bits) {
static unsigned char templateData24[16] = {
255, 0, 0, 255, 255, 255, 0, 0,
0, 0, 255, 0, 255, 0, ... |
lechium/iOS1351Headers | usr/libexec/com.apple/NSDictionary-EscrowRequest.h | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <Foundation/NSDictionary.h>
@interface NSDictionary (EscrowRequest)
- (id)base64EncodedStringFromDict; // IMP=0x0000000100014324
- (void)recordI... |
jiapeish/leetcode-c-cpp | cpp/cpp_primer_code/chap13/account.h | <filename>cpp/cpp_primer_code/chap13/account.h
#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <string>
using std::string;
class Account {
public:
Account( double amount, const string &owner );
string owner();
double dailyReturn();
static void raiseInterest( double );
stati... |
vlehtola/questmud | lib/wizards/manta/castle/cas19.c | #include "room.h"
#undef EXTRA_RESET
#define EXTRA_RESET\
extra_reset();
object mon24,mon25,mon26;
extra_reset() {
if(!mon24) {
mon24 = clone_object("/wizards/manta/castle/dem2.c");
move_object(mon24, this_object());
}
if(!mon25) {
mon25 = clone_obj... |
Gathros/SegVL | include/animators/vector_animator.h | <reponame>Gathros/SegVL
#ifndef GATHVL_VECTOR_ANIMATOR_H
#define GATHVL_VECTOR_ANIMATOR_H
#include <vector>
#include "animator.h"
template <typename T>
struct vector_animator : animator {
std::vector<T> data;
std::vector<T> *vector_ptr;
int start_point;
void update(const int frame) override {
... |
potherca-contrib/origin-community-cartridges | openshift-origin-cartridge-jbossrhq-4/template/deployments/rhq.ear/rhq-core-domain-ejb3.jar/org/rhq/core/domain/criteria/EventCriteria.java | <filename>openshift-origin-cartridge-jbossrhq-4/template/deployments/rhq.ear/rhq-core-domain-ejb3.jar/org/rhq/core/domain/criteria/EventCriteria.java
/*
* RHQ Management Platform
* Copyright (C) 2005-2008 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
... |
AmyliaScarlet/amyliascarletlib | src/test/java/com/amyliascarlet/jsontest/bvt/parser/deser/asm/TestASM_List.java | <reponame>AmyliaScarlet/amyliascarletlib
package com.amyliascarlet.jsontest.bvt.parser.deser.asm;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import junit.framework.TestCase;
import com.amyliascarlet.lib.json.JSON;
import com.amyliascarlet.lib.json.serializer.SerializerFe... |
damoresa/nodejs-beginner-examples | 2-basics/2-nodejs/singleton-sample/cache.service.js | <reponame>damoresa/nodejs-beginner-examples<filename>2-basics/2-nodejs/singleton-sample/cache.service.js
'use strict';
class CacheService {
constructor() {
this._cache = {};
}
put(key, value) {
console.log(`Added ${key}: ${value}`);
this._cache[key] = value;
}
get(key) {
... |
wt201501/ytlib | ytlib/container/graph_test.cpp | <filename>ytlib/container/graph_test.cpp<gh_stars>0
#include <gtest/gtest.h>
#include "graph.hpp"
namespace ytlib {
// todo 未完成
TEST(GRAPH_TEST, BASE_test) {
typedef Graph<uint32_t> myGraph;
std::vector<myGraph*> myGraphVec;
uint32_t num = 10;
for (uint32_t ii = 0; ii < num; ++ii) {
myGraphVec.push_back... |
SunFlowerY1/kyuubi | kyuubi-server/src/test/scala/yaooqinn/kyuubi/ha/HighAvailableServiceSuite.scala | /*
* 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 ... |
SuperMap/GAF | gaf-cloud/gaf-commons/gaf-common-auth/src/main/java/com/supermap/gaf/shiro/commontypes/Permission.java | <reponame>SuperMap/GAF
/*
* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.
*/
package com.supermap.ga... |
FriendsOfShopware/go-shopware-admin-api-sdk | repo_number_range_state.go | <filename>repo_number_range_state.go<gh_stars>1-10
package go_shopware_admin_sdk
import (
"net/http"
"time"
)
type NumberRangeStateRepository ClientService
func (t NumberRangeStateRepository) Search(ctx ApiContext, criteria Criteria) (*NumberRangeStateCollection, *http.Response, error) {
req, err := t.Client.NewR... |
OlivierLAVAUD/hyperledger | orderer/multichain/manager.go | <reponame>OlivierLAVAUD/hyperledger
/*
Copyright IBM Corp. 2016 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
Unl... |
JasperFloorBloomreach/gov-scot | repository-data/webfiles/test/specs/pubsub_spec.js | // 'use strict';
// jasmine.getFixtures().fixturesPath = 'base/test/fixtures';
// import pubsub from '../../src/scripts/govscot/pubsub';
// describe('"Pubsub"', function () {
// });
|
chengc017/cat | cat-home/src/main/java/com/dianping/cat/report/task/notify/AppDataComparisonNotifier.java | <filename>cat-home/src/main/java/com/dianping/cat/report/task/notify/AppDataComparisonNotifier.java
package com.dianping.cat.report.task.notify;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
impo... |
dplopez09/CursoJAva | src/javaadvanced/viernes/networking/Socket1/Cliente.java | <gh_stars>0
package javaadvanced.viernes.networking.Socket1;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
public class Cliente {
public static void main(String[] args) {
try{
Socket s= new Socket("localhost",3000);
DataOutputStream dot= new... |
AjabShahar/Ajab-Shahar-TW | web/app/user/js/common/directives/soundCloud/soundcloud_player.js | <reponame>AjabShahar/Ajab-Shahar-TW
mediaPlayer.directive('soundCloud', function ($http, $compile) {
return {
restrict: "E",
scope: {
height: "@",
width: "@",
audioUrl: '@',
shouldStopVideo: '&'
},
link: function (scope, element) {
... |
Andreas237/AndroidPolicyAutomation | ExtractedJars/PACT_com.pactforcure.app/javafiles/com/jakewharton/rxbinding/widget/AdapterDataChangeOnSubscribe$2.java | <filename>ExtractedJars/PACT_com.pactforcure.app/javafiles/com/jakewharton/rxbinding/widget/AdapterDataChangeOnSubscribe$2.java
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.jakewharton.rxbinding.wid... |
spraetor/amdis2 | src/ProblemInstat.hpp | <reponame>spraetor/amdis2
#pragma once
#include "AdaptInstationary.hpp"
#include "ProblemStat.hpp"
#include "ProblemTimeInterface.hpp"
namespace AMDiS
{
/**
* \ingroup Problem
*
* \brief
* Base class for \ref ProblemInstat.
*/
class ProblemInstatBase : public ProblemTimeInterface,
public Pro... |
AaronGlanville/Barry | barry/models/bao_correlation_Beutler2017.py | <gh_stars>0
import logging
import numpy as np
from barry.models.bao_correlation import CorrelationFunctionFit
class CorrBeutler2017(CorrelationFunctionFit):
""" xi(s) model inspired from Beutler 2017 and Ross 2015.
"""
def __init__(self, name="<NAME>", smooth_type="hinton2017", fix_params=("om"), smooth... |
ScalablyTyped/SlinkyTyped | r/react-native-elements/src/main/scala/typingsSlinky/reactNativeElements/anon/ViewPropertiesrightboolea.scala | package typingsSlinky.reactNativeElements.anon
import slinky.core.SyntheticEvent
import typingsSlinky.reactNative.anon.Layout
import typingsSlinky.reactNative.anon.ReadonlyactionNamestring
import typingsSlinky.reactNative.mod.AccessibilityActionInfo
import typingsSlinky.reactNative.mod.AccessibilityRole
import typings... |
zopefoundation/Products.CMFDefault | Products/CMFDefault/formlib/vocabulary.py | ##############################################################################
#
# Copyright (c) 2006 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... |
EvgeniyGal/goit-js | hw-03/js/task-04.js | <reponame>EvgeniyGal/goit-js
function countTotalSalary(employees) {
const salerys = Object.values(employees);
return salerys.reduce((a, b) => a + b);
}
console.group('Task-04');
console.log(
countTotalSalary({
mango: 100,
poly: 150,
alfred: 80,
}),
); // 330
console.log(
countTotalSalary({
... |
yuanz271/PyDSTool | tests/generator/test_odesystem_set_through_vode.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from numpy.testing import assert_almost_equal, assert_array_almost_equal
import pytest
from PyDSTool import PyDSTool_ValueError, PyDSTool_TypeError
from PyDSTool.Generator import Vode_ODEsystem
@pytest.fixture()
de... |
MOAMaster/AudioPlugSharp-SamplePlugins | vst3sdk/doc/vstsdk/VST3Plugin_8mm.js | var VST3Plugin_8mm =
[
[ "bundleEntry", "VST3Plugin_8mm.html#a6763fb3bf363ffc54ee132d466c50297", null ],
[ "bundleExit", "VST3Plugin_8mm.html#a65451ddd317f3c796347114f42638024", null ],
[ "__attribute__", "VST3Plugin_8mm.html#ab2feb4fc133a7b3e0cdb5f9cdf941382", null ]
]; |
xiapeng612430/multi-thread | src/main/java/synchronizedAndVolatile/synchronized_/throwExceptionNotLock/Service.java | package synchronizedAndVolatile.synchronized_.throwExceptionNotLock;
import synchronizedAndVolatile.synchronized_.synLockIn_2.Main;
/**
* Created by xianpeng.xia
* on 2019-06-07 21:09
*/
public class Service {
synchronized public void testMethod() {
if (Thread.currentThread().getName().equals("a")) {
... |
TouchBistro/frigging-bootstrap | src/js/components/number.js | <reponame>TouchBistro/frigging-bootstrap<filename>src/js/components/number.js
import React from 'react'
import cx from 'classnames'
import Numeral from 'numeral'
import InputErrorList from './input_error_list'
import Saved from './saved'
import Label from './label'
import { sizeClassNames, formGroupCx } from '../util... |
maaili/good_frame2 | src/main/java/com/daxiang/typehandler/StepListTypeHandler.java | <filename>src/main/java/com/daxiang/typehandler/StepListTypeHandler.java<gh_stars>100-1000
package com.daxiang.typehandler;
import com.daxiang.model.action.Step;
/**
* Created by jiangyitao.
*/
public class StepListTypeHandler extends ListTypeHandler {
@Override
public Class getTypeClass() {
return ... |
mambrola/AMBROAFB | AmbroAFB/src/ambroafb/minitables/merchandises/MerchandiseDataFetchProvider.java | <gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ambroafb.minitables.merchandises;
import ambroafb.general.interfaces.DataFetchProvider;
import ambroafb.general.in... |
jennyrobertsonbbc/bbc-a11y | features/support/nullReporter.js | <reponame>jennyrobertsonbbc/bbc-a11y
module.exports = class NullReporter {
runStarted () {
this.results = []
}
unexpectedError (e) {
console.log(e)
throw e
}
pageChecked (page, results) {
this.results[page.url] = results
}
runEnded () {
}
}
|
moneytech/skift | libraries/libsystem/system.c | /* Copyright © 2018-2020 <NAME>. */
/* This code is licensed under the MIT License. */
/* See: LICENSE.md */
#include <libsystem/__plugs__.h>
#include <libsystem/system.h>
SystemInfo system_ge... |
larsvers/winter-olympics | js/force-worker.js |
var log = console.log.bind(console);
var dir = console.dir.bind(console);
// Import scripts
importScripts("https://d3js.org/d3-collection.v1.min.js");
importScripts("https://d3js.org/d3-dispatch.v1.min.js");
importScripts("https://d3js.org/d3-quadtree.v1.min.js");
importScripts("https://d3js.org/d3-timer.v1.min.js... |
CornellProjects/cancercare | mobile/project/js/components/RecordDetail/index.js | import React, { Component } from 'react';
import { Text } from 'react-native';
import { Button } from 'native-base';
import { connect } from 'react-redux';
import { selectRecord } from '../../actions/records';
import { Actions } from 'react-native-router-flux';
class RecordDetail extends Component {
static propTyp... |
sthagen/svaarala-duktape | tests/ecmascript/test-bi-proxy-finalizer-1.js | <reponame>sthagen/svaarala-duktape<filename>tests/ecmascript/test-bi-proxy-finalizer-1.js
/*===
test 1, step 1
fin1
test 1, step 2
test 1, step 3
test 1, step 4
test 2, step 1
test 2, step 2
test 2, step 3
test 2, step 4
test 3, step 1
fin3
test 3, step 2
test 3, step 3
test 3, step 4
===*/
function test() {
/* Ba... |
carlosviveros/Soluciones | ejercicios/liquidacion_sueldos.py | """AyudaEnPython: https://www.facebook.com/groups/ayudapython
Realizar un programa que efectúe la liquidación de sueldos basado en
los siguientes datos: nombre del empleado, cantidad de días trabajados
(cada día trabajando contempla 8 horas diarias), cantidad de horas
extras (tienen un valor del 50% más con respecto a... |
greenhillee/mod-circulation | src/main/java/org/folio/circulation/domain/MoveRequestProcessAdapter.java | package org.folio.circulation.domain;
import java.util.concurrent.CompletableFuture;
import org.folio.circulation.infrastructure.storage.inventory.ItemRepository;
import org.folio.circulation.infrastructure.storage.loans.LoanRepository;
import org.folio.circulation.infrastructure.storage.requests.RequestQueueReposito... |
77loopin/ray | rllib/env/atari_wrappers.py | from ray.rllib.env.wrappers.atari_wrappers import is_atari, \
get_wrapper_by_cls, MonitorEnv, NoopResetEnv, ClipRewardEnv, \
FireResetEnv, EpisodicLifeEnv, MaxAndSkipEnv, WarpFrame, FrameStack, \
FrameStackTrajectoryView, ScaledFloatFrame, wrap_deepmind
from ray.rllib.utils.deprecation import deprecation_wa... |
tangdehao/flutter_aliyun_video | android/src/main/kotlin/com/sm9i/aliyun_video/aliyun/base/widget/beauty/skin/BeautyDefaultSkinSettingView.java | package com.sm9i.aliyun_video.aliyun.base.widget.beauty.skin;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Rad... |
zzzzzzzs/FlinkRealTimeProjectAnalysis | gmall2020-mock/gmall2020-mock-log/src/main/java/com/atgugu/gmall2020/mock/log/bean/AppAction.java | <gh_stars>0
package com.atgugu.gmall2020.mock.log.bean;
import com.atgugu.gmall2020.mock.log.config.AppConfig;
import com.atgugu.gmall2020.mock.log.enums.ItemType;
import com.atgugu.gmall2020.mock.log.enums.PageId;
import com.atgugu.gmall2020.mock.log.enums.ActionId;
import com.atguigu.gmall2020.mock.db.util.RandomNum... |
trevorgowing/project-log-server | src/test/java/com/trevorgowing/projectlog/log/risk/RiskRetrieverTests.java | <reponame>trevorgowing/project-log-server
package com.trevorgowing.projectlog.log.risk;
import static com.trevorgowing.projectlog.log.risk.IdentifiedRiskDTOBuilder.anIdentifiedRiskDTO;
import static com.trevorgowing.projectlog.log.risk.RiskBuilder.aRisk;
import static com.trevorgowing.projectlog.log.risk.RiskNotFoundE... |
pk65/DynaTableMvp | src/main/java/com/google/gwt/sample/dynatablemvp/shared/DiagTools.java | <reponame>pk65/DynaTableMvp
package com.google.gwt.sample.dynatablemvp.shared;
import java.util.Iterator;
import java.util.Set;
import javax.validation.ConstraintViolation;
public class DiagTools {
private static final transient String[] DAYS = new String[] { "Sun", "Mon",
"Tues", "Wed", "Thurs", "Fri", "Sat" };... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.