repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
VJohndev/sample | src/components/Items/AllItems/index.js | <filename>src/components/Items/AllItems/index.js
//Dependencies
import React from 'react';
import { Icon } from 'react-materialize';
import { Link } from 'react-router-dom';
import map from 'lodash/map';
//Internals
import PRODUCTS from '../../Data';
const AllItems = () => (
<div className="items">
{map(PRODUCTS... |
RPMYT/BiblioCraft-Source | src/main/java/jds/bibliocraft/entity/EntityCatalogFX.java | <reponame>RPMYT/BiblioCraft-Source<filename>src/main/java/jds/bibliocraft/entity/EntityCatalogFX.java<gh_stars>10-100
package jds.bibliocraft.entity;
import net.minecraft.client.Minecraft;
import net.minecraft.client.particle.Particle;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.entity.Ent... |
larsw/rya | extras/rya.indexing.pcj/src/main/java/org/apache/rya/indexing/pcj/storage/accumulo/AccumuloPcjStorage.java | <gh_stars>10-100
/*
* 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
*... |
uk-gov-mirror/companieshouse.company-accounts.api.ch.gov.uk | src/test/java/uk/gov/companieshouse/api/accounts/validation/TangibleAssetsValidatorTest.java | <filename>src/test/java/uk/gov/companieshouse/api/accounts/validation/TangibleAssetsValidatorTest.java
package uk.gov.companieshouse.api.accounts.validation;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Asse... |
770915026/jeesite | src/main/java/com/thinkgem/jeesite/modules/taier/entity/TmcXxxx.java | <reponame>770915026/jeesite
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.taier.entity;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 详细信息... |
lechium/iOS1351Headers | System/Library/Frameworks/AVFoundation.framework/AVMutableAudioMix.h | /*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:35:52 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/Frameworks/AVFoundation.frame... |
swapUniba/HORbot | src/main/java/recommender/contextAware/beans/UserContext.java | package recommender.contextAware.beans;
import ontology.beans.facets.Interest;
import ontology.beans.facets.Ontology;
import settings.HORMessages;
import java.util.*;
/**
* Define User Context class
*
* @author <NAME>
* @version 1.0
*/
public class UserContext {
private boolean week; // True for weekday, fa... |
ceekay1991/AliPayForDebug | AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/PLDPlugin4Keyboard.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 "NBPluginBase.h"
#import "PLDInputViewDelegate-Protocol.h"
@class NSString, PLDInputView;
@interface PLDPlugin4Keyboard : NBPlugin... |
xuantan/viewfinder | backend/www/test/query_episodes_test.py | <filename>backend/www/test/query_episodes_test.py
#!/usr/bin/env python
#
# Copyright 2012 Viewfinder Inc. All Rights Reserved.
"""Uploads a number of episodes and photos and tests query of
episodes by episode, with limits and start keys.
"""
__author__ = '<EMAIL> (<NAME>)'
import random
import time
from copy impor... |
xuanhuang1/ascent | src/ascent/runtimes/ascent_flow_runtime.cpp | <gh_stars>10-100
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC.
//
// Produced at the Lawrence Livermore National Laboratory
//
// LLNL-CODE-716457
//
// All rights reserved.
//
// This file is part of Ascent.
//
// ... |
zhangmozhe/torch3d | examples/foldingnet/main.py | <reponame>zhangmozhe/torch3d
import tqdm
import argparse
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data as data
import torch3d
import torch3d.models as models
import torch3d.datasets as dsets
import torch3d.transforms as transforms
from torch3d.nn.utils import ... |
icarazob/mr4c | java/src/java/com/google/mr4c/serialize/bean/metadata/MetadataBeans.java | /**
* Copyright 2014 Google Inc. 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 requir... |
mitring/cuba | modules/global/src/com/haulmont/cuba/core/config/ConfigDefaultMethod.java | <gh_stars>1000+
/*
* Copyright (c) 2008-2018 Haulmont.
*
* 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 appli... |
mongodb/mcli | internal/mocks/mock_backup_config.go | // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/mongodb/mongodb-atlas-cli/internal/store (interfaces: BackupConfigGetter,BackupConfigLister,BackupConfigUpdater)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
mongodba... |
mkinsner/llvm | lldb/test/API/functionalities/thread/state_after_expression/main.cpp | <gh_stars>1000+
#include <thread>
void thread_func() {
// Set a breakpoint here
}
int
main()
{
// Set a breakpoint here
std::thread stopped_thread(thread_func);
stopped_thread.join();
return 0;
}
|
shng5175/Random-Python-Stuff | Sherry_Nguyen_Final_Question1.py | import random
import numpy as np
a = []
size = 100
for x in range(size):
y = random.randint(0, size)
a.append(y)
print a
max_reverses = 0
for z in range(size):
max_reverses += size - z -1
print max_reverses
probability = 0.5
probability_reverse = max_reverses * 0.5
print probability_reverse
... |
howard-e/aria-at | build/tests/radiogroup-aria-activedescendant/scripts.module.js | <filename>build/tests/radiogroup-aria-activedescendant/scripts.module.js
export function checkFirstRadioButtonAndSetFocusAfterRadioGroup(testPageDocument) {
// sets the state of the first radio button to checked, and sets focus on a link after the radio group
let radioGroup = testPageDocument.querySelector('[role="... |
yingw787/api.tinydevcrm.com | services/app/src/views/__init__.py | """
Views service.
This Django app manages API endpoints related to managing PostgreSQL
materialized views. These views match to certain PostgreSQL tables via
customizable SQL query, so that view refreshing will bring up a certain set of
data depending on conditions changing with time.
This enables different windows ... |
tinashe-88/coming-soon-app | src/components/SocialIcons/social-icon.js | import React from "react"
import { StaticQuery, graphql } from 'gatsby'
import {
GitHubIcon,
InstagramIcon,
LinkedInIcon,
TwitterIcon
} from "../Icon/icon"
import {
SocialIconsWrapper,
IconWrapper,
GithubContainer,
InstagramContainer,
LinkedinContainer,
TwitterContainer
} from './social-icon.style... |
951-444-8887/amphtml | extensions/amp-date-countdown/1.0/test/test-component.js | <reponame>951-444-8887/amphtml<gh_stars>1-10
/**
* Copyright 2020 The AMP HTML 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.... |
waartaa/pyirc | ircb/irc/__init__.py | <reponame>waartaa/pyirc<filename>ircb/irc/__init__.py
# -*- coding: utf-8 -*-
import asyncio
import logging
import re
import irc3
from ircb.storeclient import NetworkStore
from ircb.storeclient import ChannelStore
logger = logging.getLogger('irc')
class IrcbIrcConnection(irc3.IrcConnection):
def connection_ma... |
zhammer/dd-trace-py | tests/contrib/pymemcache/utils.py | import collections
import socket
class MockSocket(object):
def __init__(self, recv_bufs, connect_failure=None):
self.recv_bufs = collections.deque(recv_bufs)
self.send_bufs = []
self.closed = False
self.timeouts = []
self.connect_failure = connect_failure
self.conne... |
aloklal99/apache-ranger | agents-audit/src/main/java/org/apache/ranger/audit/test/TestEvents.java | <reponame>aloklal99/apache-ranger
/*
* 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, Ve... |
media-network/media-api | src/services/project/preset.js | <gh_stars>1-10
import sh from 'shorthash'
import uuid from 'uuid'
import createPresetModel from 'models/preset'
import createProjectModel from 'models/project'
import jobService from 'services/job'
const DEFAULT_PARAMETERS = {
'image/jpeg': {
progressive: true,
quality: 90
},
'image/gif': {
optimize... |
psakar/Resteasy | resteasy-jaxrs-testsuite/src/test/java/org/jboss/resteasy/test/regression/ExceptionMapperRuntimeException3Test.java | <filename>resteasy-jaxrs-testsuite/src/test/java/org/jboss/resteasy/test/regression/ExceptionMapperRuntimeException3Test.java
package org.jboss.resteasy.test.regression;
import org.jboss.resteasy.client.ClientRequest;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.spi.Failure;
import o... |
HotelsDotCom/circus-train | circus-train-core/src/test/java/com/hotels/bdp/circustrain/core/SpelParsedPartitionPredicateTest.java | <filename>circus-train-core/src/test/java/com/hotels/bdp/circustrain/core/SpelParsedPartitionPredicateTest.java
/**
* Copyright (C) 2016-2021 Expedia, 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 ... |
sstarcher/cloud-custodian | c7n/resources/sfn.py | <gh_stars>1-10
# Copyright 2015-2017 Capital One Services, LLC
#
# 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... |
mohrobati/JS-Buxter | sample_code/preprocessed/sample_010_preprocessed.js |
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => {
inputString += inputStdin;
});
process.stdin.on('end', _ => {
inputString = inputString.trim().split('\n').map(string => {
return string.trim();
});
main();
});... |
mysll/flynet | server/src/area/cell.go | package area
import (
"errors"
"game/libs/aoi"
"game/libs/aoi/toweraoi"
"logicdata/inter"
"server"
. "server/data/datatype"
"server/libs/log"
"server/libs/rpc"
)
type CellInfo struct {
Id int
Name string
Path string //地图信息路径
X float32 //地图左上角X坐标
Y float32 ... |
H4NGUL/Twitch | libs/permissions.js | <gh_stars>0
'use strict'
var constants = require('./constants')
var crypto = require('crypto')
var _ = require('lodash')
function Permissions () {
global.parser.register(this, '!permission', this.overridePermission, constants.OWNER_ONLY)
setInterval(function () {
global.botDB.find({$where: function () { retu... |
EladGabay/pulumi-oci | sdk/python/pulumi_oci/servicecatalog/private_application.py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... |
mcodegeeks/OpenKODE-Framework | 01_Develop/libXMCocos2D-v3/Source/gui/UIWidgets/ScrollWidget/UIScrollView.cpp | /* -----------------------------------------------------------------------------------
*
* File UIScrollView.cpp
* Ported By <NAME>
* Contact <EMAIL>
*
* -----------------------------------------------------------------------------------
*
* Copyright (c) 2010-2... |
vladimiratwork/znai | znai-cpp/src/main/java/org/testingisdocumenting/znai/cpp/extensions/CppIncludePlugin.java | <gh_stars>10-100
/*
* Copyright 2019 TWO SIGMA OPEN SOURCE, LLC
*
* 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 ... |
DerryHub/the-TaobaoLive-Commodity-Identify-Competition | docker/arcface/bert/bert.py | <reponame>DerryHub/the-TaobaoLive-Commodity-Identify-Competition<gh_stars>1-10
import math
import os
import torch
from torch import nn
# from utils import prune_linear_layer
def prune_linear_layer(layer, index, dim=0):
""" Prune a linear layer (a model parameters) to keep only entries in index.
Return th... |
urjitbhatia/unik | vendor/github.com/vmware/photon-controller-go-sdk/photon/vms.go | <reponame>urjitbhatia/unik
// Copyright (c) 2016 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache License, Version 2.0 (the "License").
// You may not use this product except in compliance with the License.
//
// This product may include a number of subcomponents with separate co... |
ebyhr/trino-commander | trino-api/src/main/java/org/trino/commander/service/SystemService.java | <gh_stars>1-10
package org.trino.commander.service;
import static java.lang.String.format;
import java.util.List;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.trino.commander.client.TrinoAdmin... |
felipeaagoncalves/FlAixEnergy-Project | pandapower/Firmware/Tutorials/test6_ActivePowerCurtailmentWithOPF.py | <filename>pandapower/Firmware/Tutorials/test6_ActivePowerCurtailmentWithOPF.py
# -*- coding: utf-8 -*-
"""
Created on Wed May 30 13:37:56 2018
@author: uoa-student2
"""
import pandapower as pp
from numpy import array
net = pp.create_empty_network()
#create buses
bus1 = pp.create_bus(net, vn_kv=220., min_vm_pu=1.0, ... |
subramp-prep/leetcode | problems/373.Find_K_Pairs_with_Smallest_Sums/yin_bruteforce_k2.cpp | // Brute force
// Time Complexity O(k2)
// Space Complexity O(k2)
class Solution {
public:
vector<pair<int, int>> kSmallestPairs(vector<int>& nums1, vector<int>& nums2, int k)
{
int n1 = nums1.size(), n2 = nums2.size();
vector<pair<int, int>> res;
if (n1 == 0 || n2 == 0 || k == 0) return... |
easylogic/inspector | src/el/editor/ui/property-editor/svg-filter-preset/grayscale.js | export default [{
type: 'Saturate',
values: '0'
}] |
PrabhuJoseph/cloudbreak | core/src/test/java/com/sequenceiq/cloudbreak/structuredevent/StructuredFlowEventFactoryTest.java | <filename>core/src/test/java/com/sequenceiq/cloudbreak/structuredevent/StructuredFlowEventFactoryTest.java
package com.sequenceiq.cloudbreak.structuredevent;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito... |
Dbevan/SunderingShadows | d/deku/sanctuary/tower/balcony01.c | #include <std.h>
#include "../dragon.h";
inherit BBALCONY;
void create() {
::create();
set_exits( ([
"door" : TOWER+"study01",
"southeast" : TOWER+"balcony02",
"southwest" : TOWER+"balcony03",
"downstairs" : TOWER+"lobby",
]) );
set_door("door",TOWER+"study01","door","tower key");
... |
lokeshjindal15/pd-gem5_transformer | kernel_dvfs/linux-linaro-tracking-gem5/arch/powerpc/platforms/powernv/eeh-powernv.c | /*
* The file intends to implement the platform dependent EEH operations on
* powernv platform. Actually, the powernv was created in order to fully
* hypervisor support.
*
* Copyright <NAME> & <NAME>, IBM Corporation 2013.
*
* This program is free software; you can redistribute it and/or modify
* it under the t... |
zmlcoder/rpcx | rpcx-parent/rpcx-integration-test/src/test/java/com/rpcx/test/integration/HelloWorldServer.java | <reponame>zmlcoder/rpcx<gh_stars>0
package com.rpcx.test.integration;
import java.io.IOException;
import com.zmlcoder.rpcx.common.RpcxException;
import com.zmlcoder.rpcx.server.RpcxServer;
import com.zmlcoder.rpcx.service.RpcxServiceManager;
import com.zmlcoder.rpcx.service.SingletonRpcxServiceProvider;
public class... |
LunarBaseEngin/lunar-node | src/main/java/lunarion/db/local/Test/LunarServerHandlerTest.java | <reponame>LunarBaseEngin/lunar-node
/** LCG(Lunarion Consultant Group) Confidential
* LCG LunarBase team is funded by LCG.
*
* @author LunarBase team, contacts:
* <EMAIL>
* <EMAIL>
*
* The contents of this file are subject to the Lunarion Public License Version 1.0
* ("License"); You may not use this file ... |
jhonatasrm/chromium-android | app/src/main/java/org/chromium/chrome/browser/browseractions/BrowserActionsContextMenuItemDelegate.java | <gh_stars>1-10
// Copyright 2017 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.
package org.chromium.chrome.browser.browseractions;
import android.app.Activity;
import android.app.PendingIntent;
import android.app.Pend... |
best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/sh/attr-isr-trap_exit.c | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/sh/attr-isr-trap_exit.c
/* Check that trapa / interrput_handler attributes can paired in
either order. */
/* { dg-do compile } */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler "trapa\[ \t\]\[ \t\]*#4"} } */
/* { dg-final { scan-assembler-times "... |
Ddnirvana/test-CI | openeuler-kernel/drivers/hwmon/ds620.c | <filename>openeuler-kernel/drivers/hwmon/ds620.c
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* ds620.c - Support for temperature sensor and thermostat DS620
*
* Copyright (C) 2010, 2011 <NAME> <<EMAIL>>
*
* based on ds1621.c by <NAME> <<EMAIL>>
*/
#include <linux/module.h>
#include <linux/init.h>
#includ... |
duncanbackr/jit_analytics | main.py | from datetime import datetime
import Analytics, Filter, Formating, Query, Sort
from flask import jsonify
import math
import config
import time
from flask import Flask, request
def main(request):
#total_start = time.time()
## Set CORS headers for the preflight request
if request.method == 'OPTIONS':
... |
knud/RB_Nano_v1 | nRF51_10/examples/ant/experimental/ant_shared_channel/ant_shared_master_to_master/asc_master_to_master.h | <reponame>knud/RB_Nano_v1
/*
This software is subject to the license described in the License.txt file
included with this software distribution. You may not use this file except in compliance
with this license.
Copyright (c) Dynastream Innovations Inc. 2014
All rights reserved.
*/
/**@file
* @defgroup asc_... |
highduck/ekx | packages/scenex/src/ek/scenex/3d/render3d_shader.h | <gh_stars>10-100
#pragma once
/*
#version:1# (machine generated, don't edit!)
Generated by sokol-shdc (https://github.com/floooh/sokol-tools)
Cmdline: sokol-shdc -i src/ek/scenex/3d/render3d.glsl -o src/ek/scenex/3d/render3d_shader.h -l glsl330:glsl300es:glsl100:hlsl5:metal_ios:metal_sim:metal_macos --ifd... |
daodao10/chart | sg/S41_d.js | var data=[['19940103',2.1600],
['19940104',2.1320],
['19940105',2.1870],
['19940106',2.1320],
['19940107',2.1460],
['19940110',2.1600],
['19940111',2.0420],
['19940112',1.8690],
['19940113',1.8200],
['19940114',1.9590],
['19940117',1.9100],
['19940118',1.9100],
['19940119',1.9240],
['19940120',1.9100],
['19940121',1.91... |
horacn/java_example | src/main/java/com/hz/example/logic/TestMaxNumber.java | package com.hz.example.logic;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
public class TestMaxNumber {
/**
* 输出里面出现次数最多且数值最大的一个,出现几次
* @param args
*/
public static void main(String[] args) {
int [] num = {1,3,4,7,2,1,1,5,2};
Map<Integer,Integer> map = new HashMap<>();
... |
Anand270294/main | src/test/java/seedu/address/model/course/CourseNameTest.java | package seedu.address.model.course;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import seedu.address.testutil.Assert;
public class CourseNameTest {
@Tes... |
Lekito/Estudo_JS | aula11/ex009.js | var país = `EUA`
console.log(`\nvivendo em ${país}\n`)
if(país == `Brasil`){
console.log(`\nBrasileiro\n\n`)
} else{
console.log(`Estrangeiro`)
} |
EnvisionIot/enos-iot-java-sdk | enos-sdk-sample/src/main/java/mqtt/BiDirectionalAuthenticate.java | <reponame>EnvisionIot/enos-iot-java-sdk
package mqtt;
import com.envisioniot.enos.iot_mqtt_sdk.core.ConnCallback;
import com.envisioniot.enos.iot_mqtt_sdk.core.MqttClient;
import com.envisioniot.enos.iot_mqtt_sdk.core.profile.DefaultProfile;
import lombok.extern.slf4j.Slf4j;
/**
* @author qiwei.tan
* @version 1.0
... |
hmqk1995/whistle | biz/index.js | <reponame>hmqk1995/whistle
var net = require('net');
var rules = require('../lib/rules');
var util = require('../lib/util');
var handleUIReq = require('./webui/lib').handleRequest;
var handleWeinreReq = require('./weinre');
var config = require('../lib/config');
var localIpCache = util.localIpCache;
var WEBUI_PATH = c... |
PrabhuJoseph/cloudbreak | audit-connector/src/main/java/com/sequenceiq/cloudbreak/audit/converter/auditeventname/rest/datahub/DatahubRestResourceAuditEventConverter.java | package com.sequenceiq.cloudbreak.audit.converter.auditeventname.rest.datahub;
import java.util.Map;
import javax.inject.Inject;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.audit.converter.auditeventname.rest.RestCommonService;
impor... |
CppPhil/fix_mogasens_csv | csv_lib/include/cl/fs/windows.hpp | /*!
* \file windows.hpp
* \brief Contains Microsoft Windows specific functions.
**/
#ifndef INCG_CL_FS_WINDOWS_HPP
#define INCG_CL_FS_WINDOWS_HPP
#include <string>
#include <pl/os.hpp>
#include <pl/string_view.hpp>
#if PL_OS == PL_OS_WINDOWS
#include <Windows.h>
#endif
namespace cl::fs {
#if PL_OS == PL_OS_WINDOW... |
leonardobrunnet/superboids2 | src/load.hpp | <reponame>leonardobrunnet/superboids2
// Copyright (C) 2016-2018 <NAME>.
// Copyright (C) 2018 <NAME>.
// License specified in LICENSE file.
#pragma once
#include <fstream>
#include <vector>
#include "Superboid.hpp"
#include "parameters.hpp"
class InitialPositions {
public:
virtual void youCannotMakeAInstanceOfMe... |
jjleee/eladmin-master | eladmin-system/src/main/java/me/zhengjie/modules/rules/service/impl/BinningRuleServiceImpl.java | <reponame>jjleee/eladmin-master<filename>eladmin-system/src/main/java/me/zhengjie/modules/rules/service/impl/BinningRuleServiceImpl.java
package me.zhengjie.modules.rules.service.impl;
import me.zhengjie.modules.rules.domain.BinningRule;
import me.zhengjie.utils.ValidationUtil;
import me.zhengjie.modules.rules.reposit... |
jiandiao/flowable-engine | modules/flowable-cmmn-converter/src/main/java/org/flowable/cmmn/converter/export/DecisionTaskExport.java | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... |
lotapp/BaseCode | python/8.web/2.Django/mysql_demo/mysql_demo/settings.py | <reponame>lotapp/BaseCode
"""
Django settings for mysql_demo project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/zh-hans/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/zh-han... |
rayonde/yarn | examplesFromForkedLibraries/SchusterLabQoc1/quantum_optimal_control/core/__init__.py | <filename>examplesFromForkedLibraries/SchusterLabQoc1/quantum_optimal_control/core/__init__.py
#IMPORTS
from .analysis import *
from .convergence import *
from .regularization_functions import *
from .system_parameters import *
from .tensorflow_state import *
from .run_session import * |
intellibitz/IntelliDroid | app/src/main/java/intellibitz/intellidroid/listener/DeviceContactTopicListener.java | <filename>app/src/main/java/intellibitz/intellidroid/listener/DeviceContactTopicListener.java
package intellibitz.intellidroid.listener;
import intellibitz.intellidroid.data.ContactItem;
import intellibitz.intellidroid.data.ContactItem;
/**
*/
public interface DeviceContactTopicListener extends
ContactListe... |
jonbo372/sipstack | sipstack-example-proxy/src/main/java/io/sipstack/example/proxy/simple005/Proxy.java | <reponame>jonbo372/sipstack
package io.sipstack.example.proxy.simple005;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.Chan... |
davejrv/import | odooku_addons/websocket/models/ir_qweb.py | from odoo import models, api
from odooku.params import params
def get_ws_enabled():
return 'true' if getattr(params, 'WS_ENABLED', False) else 'false';
class IrQWeb(models.AbstractModel):
_inherit = 'ir.qweb'
def default_values(self):
default = super(IrQWeb, self).default_values()
defaul... |
Platymemo/NVSE-Repo-Dev | src/main/java/com/novaventure/survivalessentials/registry/Blocks/Plants/Decorative/Nether/ShelfFungiBase.java | package com.novaventure.survivalessentials.registry.Blocks.Plants.Decorative.Nether;
import net.minecraft.block.*;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.state.StateManager;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.m... |
formgeist/eui | docs/src/views/partials.js | <filename>docs/src/views/partials.js
export { default as KibanaChrome } from './kibana/kibana_chrome';
export { default as KibanaHeader } from './header/header';
export { default as TablePagination } from './pagination/customizable_pagination';
export { default as ManagementSideNav } from './side_nav/side_nav_complicat... |
fionatrahe/qatlib | quickassist/lookaside/access_layer/src/common/ctrl/sal_crypto.c | /*****************************************************************************
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2007-2021 Intel Corporation. All rights reserved... |
YifanLi/Effisto | src/fr/inria/oak/effisto/IDs/PrePostElementIDScheme.java | package fr.inria.oak.effisto.IDs;
import java.util.Stack;
/**
* Pre-post element ID scheme.
*
* @author <NAME>
*/
public class PrePostElementIDScheme implements IDScheme {
int currentPre;
int currentPost;
Stack<PrePostElementID> s;
PrePostElementID currentID;
static String nullIDStringImage = "null nu... |
AndyThirtover/wb_gateway | WebBrickLibs/EventLib/EventRouterHTTPC.py | <reponame>AndyThirtover/wb_gateway
# Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
# -*- coding: utf-8 -*-
# $Id: EventRouterHTTPC.py 3675 2010-07-30 11:54:36Z tombushby $
#
"""
HTTP client event router implementation.
HTTP server and client event routers are connected, all events, and forwarding
... |
bessovistnyj/jvm-byte-code | CollectionPro/GenericPro/src/main/java/ru/napadovskiub/store/SimpleArrayStore.java | <reponame>bessovistnyj/jvm-byte-code
package ru.napadovskiub.store;
/**
*Base class.
* @param <T> generic.
*/
public class SimpleArrayStore<T extends Base> implements Store {
/**
*Array for elements.
*/
private Object[] objects;
/**
*cursor on current index of Array.
*/
privat... |
ankita25/TiBigData | ticdc/src/main/java/io/tidb/bigdata/cdc/json/jackson/JacksonFactory.java | <reponame>ankita25/TiBigData<gh_stars>100-1000
/*
* Copyright 2021 TiDB Project Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-... |
jeffpuzzo/jp-rosa-react-form-wizard | node_modules/@patternfly/react-tokens/dist/esm/c_table__compound_expansion_toggle__button_after_border_width_base.js | export const c_table__compound_expansion_toggle__button_after_border_width_base = {
"name": "--pf-c-table__compound-expansion-toggle__button--after--border-width--base",
"value": "3px",
"var": "var(--pf-c-table__compound-expansion-toggle__button--after--border-width--base)"
};
export default c_table__compound_exp... |
BinaryStudioAcademy/bsa-2019-metrica | frontend/src/store/modules/auth/types/mutations.js | export const USER_LOGIN = 'USER_LOGIN';
export const USER_LOGOUT = 'USER_LOGOUT';
export const SET_AUTHENTICATED_USER = 'SET_AUTHENTICATED_USER';
export const SET_TOKEN = 'SET_TOKEN';
|
aslakknutsen/origin | Godeps/_workspace/src/github.com/GoogleCloudPlatform/kubernetes/pkg/runtime/embedded.go | /*
Copyright 2014 Google Inc. 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 law or agreed to in ... |
aldew5/Competitve-Programming | USACO Training/1.6/numtri.cpp | <reponame>aldew5/Competitve-Programming
/*
ID: alec3
LANG: C++14
PROG: numtri
CLASSIFICATION: brute force
*/
#include <bits/stdc++.h>
#define check(x) cout<<(#x)<<": "<<x<<" ";
#define io ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
typedef unsigned long long ull;
using namespace std... |
eikek/publet | webeditor/src/main/scala/org/eknet/publet/webeditor/actions/PushContents.scala | /*
* Copyright 2012 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
mrudulpolus/kc | coeus-code/src/main/java/org/kuali/kra/budget/rules/BudgetColumnsToAlterMaintenanceDocumentRule.java | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... |
deyovuk/urbanairship-java-library | src/test/java/com/urbanairship/api/reports/parse/ReportsAPIOpensTimeInAppResponseDeserializerTest.java | <reponame>deyovuk/urbanairship-java-library
/*
* Copyright (c) 2013-2014. Urban Airship and Contributors
*/
package com.urbanairship.api.reports.parse;
import com.urbanairship.api.client.parse.APIResponseObjectMapper;
import com.urbanairship.api.common.parse.DateFormats;
import com.urbanairship.api.reports.model.O... |
PacktPublishing/-Learn-MongoDB-4.0 | www/chapter_09/booking/views.py | # Create your views here.
from django.template.loader import render_to_string
from django.http import HttpResponse
from config.config import Config
from booksomeplace.domain.property import PropertyService
def index(request):
config = Config()
propService = PropertyService(config)
main = render_to_string('... |
lechium/iOS1351Headers | usr/libexec/checkerboardd/CBDRemoteMessageReply-Protocol.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 "CBCoding-Protocol.h"
#import "NSCopying-Protocol.h"
#import "NSObject-Protocol.h"
@class NSError, NSUUID;
@protocol CBDRemoteMessage;
@protoco... |
digitalinteraction/openmovement | Firmware/Flux.Other/include/Utils/BitPack.h | /*
* Copyright (c) 2009-2012, Newcastle University, UK.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, ... |
vinaya-thimmappa/svelte-material-ui | packages/textfield/index.js | import Textfield from './Textfield.svelte';
import Prefix from './Prefix.js';
import Suffix from './Suffix.js';
import HelperLine from './HelperLine.js';
import Input from './Input.svelte';
import Textarea from './Textarea.svelte';
export default Textfield;
export { Prefix, Suffix, HelperLine, Input, Textarea };
|
tefra/xsdata-w3c-tests | output/models/saxon_data/missing/missing001_xsd/__init__.py | from output.models.saxon_data.missing.missing001_xsd.missing001 import (
Bad,
Good,
)
__all__ = [
"Bad",
"Good",
]
|
idesign0/Programming-Repo | C++/45.member initializers/main.cpp | #include <iostream>
#include "dhruv.h"
#include "dhruv.cpp"
using namespace std;
int main()
{
dhruv doh(5,10);
doh.print();
}
|
pradeepkumarcm-egov/DIGIT-Dev | municipal-services/bpa-services/src/main/java/org/egov/bpa/service/OCService.java | package org.egov.bpa.service;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.egov.bpa.config.BPAConfiguration;
import org.egov.bpa.repository.ServiceRequestRepository;
import org.egov.bpa.util.BPAConstants;
import org.egov.bpa.util.BPAEr... |
soonsoft/Uranus | uranus.app/uranus.api/src/main/java/com/soonsoft/uranus/api/config/properties/ErrorPageProperties.java | <filename>uranus.app/uranus.api/src/main/java/com/soonsoft/uranus/api/config/properties/ErrorPageProperties.java
package com.soonsoft.uranus.api.config.properties;
import com.soonsoft.uranus.web.error.properties.ErrorMessageProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import... |
mihaid-b/CyberSakura | Gathered CTF writeups/ptr-yudai-writeups/2019/HSCTF_6/hard_heap/solve.py | from ptrlib import *
def sice_deet(size, data):
sock.recvuntil("> ")
sock.sendline("1")
sock.recvuntil("> ")
sock.sendline(str(size))
sock.recvuntil("> ")
sock.send(data)
def observe_deet(index):
sock.recvuntil("> ")
sock.sendline("2")
sock.recvuntil("> ")
sock.sendline(str(ind... |
matuobasyouca/com.software5000.ma | com.software5000.ma.server/src/main/java/com/software5000/ma/service/WorkOrderService.java | <filename>com.software5000.ma.server/src/main/java/com/software5000/ma/service/WorkOrderService.java<gh_stars>1-10
package com.software5000.ma.service;
/**
* Created by Jiang on 2017/07/19.
*/
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.software5000.base.*;
import com.s... |
xlinxlin/japsa | src/dev/java/japsadev/xm/genome/MarkovExpertLong.java | <gh_stars>10-100
/*****************************************************************************
* Copyright (c) 2010 <NAME>, Monash University. All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without ... |
IncompleteWorlds/GMAT_2020 | src/csaltTester/src/TestOptCtrl/src/drivers/ConwayOrbitExampleDriver.cpp | <reponame>IncompleteWorlds/GMAT_2020
//------------------------------------------------------------------------------
// ConwayOrbitExampleDriver
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2... |
pervertedpokepuffs/laravel-table | node_modules/@foliojs-fork/restructure/src/Enum.js | class Enum {
constructor(type, options = []) {
this.type = type;
this.options = options;
}
decode(stream) {
const index = this.type.decode(stream);
return this.options[index] || index;
}
size() {
return this.type.size();
}
encode(stream, val) {
const index = this.o... |
YelloFam/python-dependency-injector | tests/unit/providers/singleton/__init__.py | <reponame>YelloFam/python-dependency-injector
"""Singleton provider tests."""
|
reels-research/iOS-Private-Frameworks | GeoServices.framework/GEOSupportedTileSets.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
*/
@interface GEOSupportedTileSets : PBCodable <NSCopying> {
NSMutableArray * _tileSets;
PBUnknownFields * _unknownFields;
}
@property (nonatomic, retain) NSMutableArray *tileSets;
@property (nonatomi... |
keegsands/sportball-webapp | src/main/java/org/keegsands/sportball/service/TeamService.java | package org.keegsands.sportball.service;
import org.keegsands.sportball.model.Team;
public interface TeamService extends SimpleService<Team> {
}
|
Markoy8/Foundry | Components/LearningCore/Source/gov/sandia/cognition/learning/data/DefaultWeightedValueDiscriminant.java | <filename>Components/LearningCore/Source/gov/sandia/cognition/learning/data/DefaultWeightedValueDiscriminant.java
/*
* File: DefaultWeightedValueDiscriminant.java
* Authors: <NAME>
* Company: Sandia National Laboratories
* Project: Cognitive Foundry Learning Core
... |
antirek/sonata | api/manage/api-routes/log/request/{token}.js | <gh_stars>10-100
module.exports = (RequestLog) => {
/**
*
* @param {Object} req
* @param {Object} res
*/
const get = (req, res) => {
console.log('request params', req.params);
console.log('request body:', JSON.stringify(req.body));
console.log('request query', req.query);
const limit = req.... |
thoo0224/rl_dumper | src/rl_dumper/libs/include/bakkesmod/wrappers/GameObject/PerformanceStats/InputBufferGraphWrapper.h | #pragma once
template<class T> class ArrayWrapper;
template<typename T> class StructArrayWrapper;
#include "../../WrapperStructs.h"
#include "../.././GameObject/PerformanceStats/StatGraphWrapper.h"
class SampleHistoryWrapper;
class BAKKESMOD_PLUGIN_IMPORT InputBufferGraphWrapper : public StatGraphWrapper {
public:
CO... |
bzxy/cydia | iOSOpenDev/frameworks/MobileBackup.framework/Headers/MBFileInfo.h | <filename>iOSOpenDev/frameworks/MobileBackup.framework/Headers/MBFileInfo.h
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/MobileBackup.framework/MobileBackup
*/
#import <MobileBackup/NSCopying.h>
#import <MobileBackup/NSCoding.h>
#import <MobileBackup/MobileBack... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.