repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
zhoutao0712/rtn11pb1 | release/src/router/rc/pc.h | #define MIN_DAY 1
#define MAX_DAY 7
#define MIN_HOUR 0
#define MAX_HOUR 23
typedef struct pc_event pc_event_s;
struct pc_event{
char e_name[32];
int start_day;
int end_day;
int start_hour;
int end_hour;
pc_event_s *next;
};
typedef struct pc pc_s;
struct pc{
int enabled;
char device[32];
char mac[18];
pc_e... |
acionescu/commons | src/main/java/net/segoia/util/data/LfuSet.java | <reponame>acionescu/commons
/**
* commons - Various Java Utils
* Copyright (C) 2009 <NAME> - https://github.com/acionescu
*
* 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
*
* ... |
Ornibyl/Windflower | Windflower/src/Validator.cpp | <gh_stars>0
#include "Validator.hpp"
#include <exception>
#include <algorithm>
#include <set>
#include "Utils/Format.hpp"
#include "Utils/Helpers.hpp"
namespace wf
{
Validator::Validator(TypeInformation& type_info, SymbolTable& symbol_table)
: type_info(type_info), current_table(&symbol_table)
{
... |
wieker/spring-boot-netty | src/main/java/org/kgusarov/integration/spring/netty/support/invoke/GeneratedClassLoader.java | package org.kgusarov.integration.spring.netty.support.invoke;
import java.lang.invoke.MethodHandle;
/**
* Internal API: fast invocation support
*/
final class GeneratedClassLoader {
private static final MethodHandle DEFINE_CLASS_HANDLE;
static {
try {
DEFINE_CLASS_HANDLE = MethodHandleC... |
noway0032/warehouse | src/main/java/hu/unideb/inf/warehouse/controller/dataHandling/PlaceController.java | <gh_stars>1-10
package hu.unideb.inf.warehouse.controller.dataHandling;
import hu.unideb.inf.warehouse.model.PlaceModel;
import hu.unideb.inf.warehouse.pojo.Place;
import hu.unideb.inf.warehouse.utility.TextListenerUtil;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ObservableValue;
imp... |
KenG98/magma | lte/gateway/c/oai/tasks/nas/esm/esm_data_context.c | <gh_stars>1-10
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* th... |
temporalio/temporal-aws-sdk-go | clients/databasemigrationservicestub/stub.go | <gh_stars>1-10
// Generated by github.com/temporalio/temporal-aws-sdk-generator
// from github.com/aws/aws-sdk-go version 1.35.7
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
package databasemigrationservicestub
import (
"github.com/aws/aws-sdk-go/service/databasemigrationservice"
"go.tempo... |
cmcormack/gcam-core | cvs/objects/target_finder/source/emissions_stabalization_target.cpp | <filename>cvs/objects/target_finder/source/emissions_stabalization_target.cpp
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAK... |
anonfse/COSAL_Anonymized | code/src/main/python/haskell/blocks/haskell_function.py | import sys
import os
sys.path.append(os.path.abspath("."))
sys.dont_write_bytecode = True
__author__ = "COSAL"
from haskell.type_checking import haskell_type_checker
from analysis.helpers import execution_utils, helper
from utils import cache
from utils.lib import O
class HaskellFunction(O):
def __init__(self, *... |
sakshamsingh1/fleet-sim | src/agent/dispatch_policy.py | from common import vehicle_status_codes
# from .services.demand_prediction_service import DemandPredictionService
from config.settings import TIMESTEP, MIN_DISPATCH_CYCLE, MAX_DISPATCH_CYCLE
import numpy as np
class DispatchPolicy(object):
def __init__(self):
# self.demand_predictor = DemandPredictionServi... |
roscopecoltran/SniperKit-Core | Toolkits/Discovery/meta/searx/searx/engines/qwant.py | """
Qwant (Web, Images, News, Social)
@website https://qwant.com/
@provide-api not officially (https://api.qwant.com/api/search/)
@using-api yes
@results JSON
@stable yes
@parse url, title, content
"""
from datetime import datetime
from json import loads
from searx.utils import html_to_te... |
Milerius/bsf | Source/Foundation/bsfUtility/ThirdParty/simdpp/detail/insn/f_reduce_max.h | <filename>Source/Foundation/bsfUtility/ThirdParty/simdpp/detail/insn/f_reduce_max.h<gh_stars>1000+
/* Copyright (C) 2016 <NAME> <<EMAIL>>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifn... |
18106960985/qiyue-framework | framework-common/src/main/java/com/qiyue/common/request/BaseController.java | package com.qiyue.common.request;
import com.qiyue.orm.jpa.dao.BaseService;
import com.qiyue.utils.ResultUtils;
import com.qiyue.vo.Result;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.facto... |
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD | platform/main/telnetd-2.0/net/wimpi/telnetd/io/Templates.java | /***
* Java TelnetD library (embeddable telnet daemon)
* Copyright (c) <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* Redistributions of source code must retain the above copyr... |
michael-hampton/tamtamcrm | resources/assets/js/components/models/InvoiceCalculations.js | import axios from 'axios'
import moment from 'moment'
import BaseModel, { LineItem } from './BaseModel'
import { consts } from '../utils/_consts'
import { roundNumber } from '../utils/_formatting'
export const invoice_pdf_fields = ['$invoice.number', '$invoice.po_number', '$invoice.invoice_date', '$invoice.invoice_dat... |
dksan23/Nucleus | src/mme-app/procedureStats.cpp | <reponame>dksan23/Nucleus<filename>src/mme-app/procedureStats.cpp
/*
* Copyright (c) 2019, Infosys Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "procedureStats.h"
using namespace mme;
int ProcedureStats::num_of_air_sent = 0;
int ProcedureStats::num_of_ulr_sent = 0;
int ProcedureStats::num_of_processe... |
fartherp/framework | framework-security/src/main/java/com/github/fartherp/framework/security/dissymmetry/DisSymmetry.java | /**
* Copyright (c) 2014-2019 CK.
*
* 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 applicabl... |
pocokhc/metaheuristics | tests/problems/test_LifeGame.py | import unittest
import random
import time
import numpy as np
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../../'))
from codes.problems.LifeGame import LifeGame
class Test(unittest.TestCase):
def test_1(self):
p = LifeGame(5, 49)
p.init()
# ブリンカー
... |
bmob/BmobTiQiuBa | Android/ZuQiuBa/app/src/main/java/cn/bmob/zuqiu/ui/base/BaseNavigationDrawerActivity.java | <reponame>bmob/BmobTiQiuBa
package cn.bmob.zuqiu.ui.base;
import cn.bmob.v3.BmobPushManager;
import cn.bmob.v3.BmobUser;
import cn.bmob.zuqiu.R;
import cn.bmob.zuqiu.utils.LogUtil;
import cn.bmob.zuqiu.utils.ToastUtil;
import cn.bmob.zuqiuj.bean.User;
import android.app.Activity;
import android.app.ProgressDialog;
im... |
chrisdrackett/atom-ide-ui | modules/nuclide-commons-atom/__atom_tests__/text-editor-test.js | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... |
angell007/testDanilo | public/Select/js/src/plugins/FloatingLabelPlugin.js | import {composeSync} from '../ToolsJs';
import {toggleStyling} from '../ToolsStyling';
export function FloatingLabelPlugin(pluginData){
let {configuration, picksList, picksDom, filterDom, staticDom, updateDataAspect,
resetFilterListAspect, floatingLabelAspect} = pluginData;
let {css, getDefaultLabel} ... |
sebastien-riou/lightweight-crypto | src/individual/Elephant/elephant.h | /*
* Copyright (C) 2020 Southern Storm Software, Pty Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, ... |
lordakshaya/Locker | Connectors/Tumblr/lib.js | /*
*
* Copyright (C) 2011, The Locker Project
* All rights reserved.
*
* Please see the LICENSE file for more information.
*
*/
var fs = require('fs'),
request = require('request'),
async = require('async'),
url = require('url'),
crypto = require("crypto");
var tumblr;
var auth;
var base = 'http:... |
samokhinv/deep_pipe | dpipe/medim/shape_ops.py | from dpipe.im.shape_ops import *
|
gunnarmorling/infinispan | scripting/src/main/java/org/infinispan/scripting/impl/MapperScript.java | package org.infinispan.scripting.impl;
import javax.script.SimpleBindings;
import org.infinispan.distexec.mapreduce.Collector;
import org.infinispan.distexec.mapreduce.Mapper;
import org.infinispan.manager.EmbeddedCacheManager;
import org.infinispan.scripting.ScriptingManager;
/**
* MapperScript.
*
* @author <NAM... |
IHTSDO/snow-owl | snomed/com.b2international.snowowl.snomed.datastore/src/com/b2international/snowowl/snomed/datastore/request/SnomedDescriptionAcceptabilityUpdateRequest.java | /*
* Copyright 2011-2019 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 require... |
DazEB2/SimplePyScripts | html_parsing/get_video_list__xcadr.com.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
def get_video_list(url):
import requests
rs = requests.get(url)
from bs4 import BeautifulSoup
root = BeautifulSoup(rs.content, 'lxml')
import re
pattern_get_duration = re.compile('(\d+).:(\d+).')
items = []
for... |
caseman/ism.nodejs | lib/localserver.js | <reponame>caseman/ism.nodejs
/*
* Local server child process module
*/
var server = require('./server')
, logging = require('./logging')
, db = require('./db')
var localServer
function start() {
var dbPath = process.argv[process.argv.length - 1]
var serverDb = db.open(dbPath || db.defaultPath(), functio... |
francoiscolombo/fc-automation | automaton/src/main/java/net/francoiscolombo/tools/automaton/actions/Debug.java | package net.francoiscolombo.tools.automaton.actions;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.logging.Logger;
public class Debug extends AbstractAction {
// global logger
private final static Logger LOGGER = Logger.getLogger(Logger.GLOBAL_LOGGER_NAM... |
luispedro/Coelho2021_GMGCv1_analysis | gmgc.analysis/Statement-ecoli-rare.py | <gh_stars>1-10
from taxonomic import ncbi
import pandas as pd
fraction_rare = pd.read_table('tables/fraction-rare.tsv', index_col=0)
specIs = pd.read_table('/g/scb2/bork/mocat/freezer/prok-refdb/v12.0.0/combinedVsearch3.50p.20n.norm.opt.0.042.clustering.map', header=None, names=['specI', 'genome'])
n = ncbi.NCBI()
fr... |
alex-d-bondarev/logic-tasks-practice | src/main/java/org/parctice/app/hackerrank/java/data_structures/JavaHashSet.java | <filename>src/main/java/org/parctice/app/hackerrank/java/data_structures/JavaHashSet.java<gh_stars>0
package org.parctice.app.hackerrank.java.data_structures;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class JavaHashSet {
public static void main(String[] args) {
Scann... |
onct/LearnCode | truth_hold/server/controllers/createrecord.js | <filename>truth_hold/server/controllers/createrecord.js<gh_stars>0
const {mysql} = require('../qcloud')
module.exports = async (ctx) => {
const {openid,add} = ctx.request.body
try{
//查找出最后一条记录
const res = await mysql('records')
.where("openid",openid)
.select('mark')
.orderBy('id','... |
ahn/mideaas | mideaas-codeeditor/src/main/java/org/vaadin/mideaas/editor/SharedDoc.java | <filename>mideaas-codeeditor/src/main/java/org/vaadin/mideaas/editor/SharedDoc.java<gh_stars>1-10
package org.vaadin.mideaas.editor;
import java.util.LinkedList;
import java.util.concurrent.CopyOnWriteArrayList;
import org.vaadin.aceeditor.AceEditor;
import org.vaadin.aceeditor.AceEditor.DiffEvent;
import org.vaadin.... |
FellegaraR/cosmoscout-vr | src/cs-utils/utils.hpp | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... |
grend3d/grend | include/grend/gameMain.hpp | #pragma once
#include <grend/gameState.hpp> // TODO: rename to gameState.h
#include <grend/engine.hpp> // TODO: rename to renderer.h
#include <grend/glManager.hpp> // TODO: rename
#include <grend/gameView.hpp>
#include <grend/jobQueue.hpp>
#include <grend/timers.hpp>
#include <grend/audioMixer.hpp>
#include <grend... |
etenel/MovieTest | app/src/main/java/com/eternel/wlsmv/mvp/contract/TagImageContract.java | package com.eternel.wlsmv.mvp.contract;
import com.eternel.wlsmv.mvp.model.entity.TagDetailListEntity;
import com.jess.arms.mvp.IView;
import com.jess.arms.mvp.IModel;
import io.reactivex.Observable;
public interface TagImageContract {
//对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
interface View extends IVie... |
django-doctor/lite-api | api/organisations/tests/tests_sites.py | from faker import Faker
from rest_framework import status
from rest_framework.reverse import reverse
from api.audit_trail.models import Audit
from lite_content.lite_api import strings
from api.organisations.models import Site
from api.organisations.tests.factories import OrganisationFactory
from test_helpers.clients i... |
Robbbert/messui | src/mame/drivers/cvs.cpp | <reponame>Robbbert/messui<filename>src/mame/drivers/cvs.cpp
// license:BSD-3-Clause
// copyright-holders:<NAME>, Couriersud
/***************************************************************************
Century CVS System
MAIN BOARD:
FLAG LOW | FLAG HIGH
-----------------------------------... |
MorganConrad/runequest-discordbot | commands/attack_dodge.js | /**
* Determine the result of a given attack vs. a dodge
* args = [ attack level (e.g. "Special"), dodge level (e.g. "Failure")]
*
* @see config.successAliases
*/
const HELP = `Please supply an attack and a dodge result from [cr,sp,n,m,fu]
e.g. cr m means critical attack vs. a missed dodge.`;
const ATTACK... |
usert5432/vlne | scripts/eval/make_energy_hist_plots.py | import argparse
import os
from vlne.presets import PRESETS_EVAL
from vlne.plot.hist import plot_energy_hists
from vlne.utils.eval import standard_eval_prologue, parse_binning
from vlne.utils.log import setup_logging
from vlne.utils.parsers import (
add_basic_eval_args, add_concurrency_parser, add_... |
rtoengi/transfer-learning-for-sign-language-recognition | baseline_model/learning_curves.py | <filename>baseline_model/learning_curves.py
from pathlib import Path
from baseline_model.constants import TRAINING_RUNS
from core.utils import load_dataframe
from plotting.plot import loss_accuracy_plot
from training.utils import history_path
def plot_learning_curves():
for training_run in TRAINING_RUNS:
... |
rockspoon/soajs.controller | test/unit/mw/keyACL/index.js | "use strict";
const helper = require("../../../helper.js");
const mw = helper.requireModule('./mw/keyACL/index');
const assert = require('assert');
let req = {
method: "get",
soajs: {
controller: {
serviceParams: {
service_v: 2,
name: 'urac'
}
... |
tortibulle/mpdx | spec/serializers/user_serializer_spec.rb | require 'spec_helper'
describe UserSerializer do
let(:user) { create(:user_with_account) }
subject { UserSerializer.new(user).as_json }
it { should include :account_lists }
it { should include :designation_accounts }
end
|
Kris-LIBIS/ingester | lib/teneo/ingester/tasks/file_grouper_from_mapping.rb | <filename>lib/teneo/ingester/tasks/file_grouper_from_mapping.rb
# frozen_string_literal: true
require 'teneo/ingester'
require_relative 'base/mapping'
module Teneo
module Ingester
module Tasks
class FileGrouperFromMapping < Teneo::Ingester::Tasks::Base::Task
include Base::Mapping
taskgro... |
isabella232/gapid | gapis/api/vulkan/query_timestamps.go | // Copyright (C) 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
StarStuffSteve/masters-research-project | Simulation/OMNeT++/inet/src/inet/linklayer/ieee80211/mac/DuplicateDetectors.cc | <reponame>StarStuffSteve/masters-research-project
//
// Copyright (C) 2015 <NAME>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your opt... |
andremourato/programacao | programacao-2/guiao1/ex6/g1e6.java | import java.util.*;
public class g1e6 {
public static void main (String[] args) {
Scanner read = new Scanner(System.in);
int random = (int) (Math.random()*(101));
int guess;
int score=0;
System.out.println("---------------------");
System.out.println("| ADIVINHA O NUMERO |");
System.out.println("-----... |
FoxDenStudio/FoxCore-Common | src/main/java/net/foxdenstudio/foxsuite/foxcore/content/command/CommandSave.java | <filename>src/main/java/net/foxdenstudio/foxsuite/foxcore/content/command/CommandSave.java
package net.foxdenstudio.foxsuite.foxcore.content.command;
import net.foxdenstudio.foxsuite.foxcore.api.annotation.guice.FoxLogger;
import net.foxdenstudio.foxsuite.foxcore.api.command.result.FoxCommandResult;
import net.foxdens... |
heyImDrew/edupro | frontend/src/actions/desks.js | <filename>frontend/src/actions/desks.js
import {authConstants} from "./types"
import axios from "axios";
const HOST = "http://localhost:9000/api/"
export const load_desks = () => async dispatch => {
const config = {
headers: {
'Content-Type': "application/json",
'Authorization': 'B... |
whitefancy/AlgorthmSolution | basicKnowledge/dataStructure/treeGraph/SerializeAndSeserializeBST.java | <gh_stars>0
package Algorithm.basicKnowledge.dataStructure.treeGraph;
import java.util.ArrayDeque;
/**
* 序列化是将数据结构或对象转换为一系列位的过程,以便它可以存储在文件或内存缓冲区中,或通过网络连接链路传输,以便稍后在同一个或另一个计算机环境中重建。
* <p>
* 设计一个算法来序列化和反序列化二叉搜索树。 对序列化/反序列化算法的工作方式没有限制。 您只需确保二叉搜索树可以序列化为字符串,并且可以将该字符串反序列化为最初的二叉搜索树。
* <p>
* 编码的字符串应尽可能紧凑。
* <p>
* 注意:不要... |
smtcrms/Blazar | BlazarService/src/main/java/com/hubspot/blazar/visitor/repositorybuild/SlackDmNotificationVisitor.java | <reponame>smtcrms/Blazar<gh_stars>10-100
package com.hubspot.blazar.visitor.repositorybuild;
import static com.hubspot.blazar.base.RepositoryBuild.State.FAILED;
import static com.hubspot.blazar.base.RepositoryBuild.State.UNSTABLE;
import java.util.Collections;
import java.util.Set;
import org.slf4j.Logger;
import o... |
champ-cargosystems-gmbh/champ.cargojson.aero | src/main/java/aero/champ/cargojson/common/FlightNumber.java | package aero.champ.cargojson.common;
import aero.champ.cargojson.docgen.annotations.JsonDocExample;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.validation.constraints.Pattern;
import java.util.... |
kuzzleio/quickmatch | test/keywords/geospatial.test.js | <gh_stars>10-100
const should = require('should/as-function');
const { Koncorde } = require('../../');
/**
* Mutualizes filter removal for all 4 geospatial keywords
*/
describe('Koncorde.keyword.geospatial', () => {
let koncorde;
let engine;
const geoFilter = {
geoBoundingBox: {
foo: {
bottom... |
prafullkotecha/waltz | waltz-integration-test/src/test/java/org/finos/waltz/integration_test/inmem/helpers/LogicalFlowHelper.java | <reponame>prafullkotecha/waltz<filename>waltz-integration-test/src/test/java/org/finos/waltz/integration_test/inmem/helpers/LogicalFlowHelper.java
package org.finos.waltz.integration_test.inmem.helpers;
import org.finos.waltz.data.datatype_decorator.LogicalFlowDecoratorDao;
import org.finos.waltz.data.logical_flow.Log... |
alrs/acyl | vendor/github.com/hashicorp/vault/vault/router_ext_test.go | <filename>vendor/github.com/hashicorp/vault/vault/router_ext_test.go
package vault_test
import (
"testing"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/builtin/credential/userpass"
vaulthttp "github.com/hashicorp/vault/http"
"github.com/hashicorp/vault/logical"
"github.com/hashicorp/vault/vault"... |
rubengomex/backend-api-starter | src/cron_jobs/index.js | <filename>src/cron_jobs/index.js
const schedule = require('node-schedule')
const jobs = require('./jobs')
// Runs a schedule job
exports.initialize = function () {
schedule.scheduleJob('* * * * * *', () => jobs.exampleJob())
}
|
fzyzcjy/ncnn | src/layer/vulkan/normalize_vulkan.h | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
vsoftco/snippets | range.cpp | <filename>range.cpp
// Python-like simple range in C++14
#include <iostream>
#include <type_traits>
template <typename T>
class Range {
private:
T first, last, iter, step;
public:
Range(T first, T last, T step = 1)
: first(first), last(last), iter(first), step(step) {}
// Iterable functions
... |
nmousouros/Arduino-Source | Common/Qt/Options/EditableTable/EditableTableBaseWidget.h | <gh_stars>0
/* Editable Table Option
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#ifndef PokemonAutomation_EditableTableBaseWidget_H
#define PokemonAutomation_EditableTableBaseWidget_H
#include <QTableWidget>
#include "Common/Qt/AutoHeightTable.h"
#include "EditableTableBaseOption.h"
nam... |
uzzz/cli | plugin/fakes/fake_cli_connection.go | <reponame>uzzz/cli<filename>plugin/fakes/fake_cli_connection.go
// This file was generated by counterfeiter
package fakes
import (
"sync"
"github.com/cloudfoundry/cli/plugin"
"github.com/cloudfoundry/cli/plugin/models"
)
type FakeCliConnection struct {
CliCommandWithoutTerminalOutputStub func(args ...stri... |
lovely3x/smalidea | src/main/java/org/jf/smalidea/psi/impl/SmaliClassTypeElement.java | /*
* Copyright 2014, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
woollybogger/node-mysql-plus | test/integration/MySQLPlus.test.js | <filename>test/integration/MySQLPlus.test.js
'use strict';
const CallbackManager = require('es6-callback-manager');
const MySQLPlus = require('../../lib/MySQLPlus');
const config = require('../config');
const sinon = require('sinon');
const {ColTypes, KeyTypes} = MySQLPlus;
describe('MySQLPlus', function() {
thi... |
AllBestBets/async-http-client | client/src/test/java/org/asynchttpclient/oauth/StaticOAuthSignatureCalculator.java | /*
* Copyright (c) 2017 AsyncHttpClient Project. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at
* http://www.ap... |
J1effrey/LC1 | new/2021/11/27/jian-lc658.java | //Time: nlogn
//Space: O(n)
class Solution {
public List<Integer> findClosestElements(int[] arr, int k, int x) {
List<Integer> res = new ArrayList<>();
if (arr == null || arr.length == 0 || k <= 0) {
return res;
}
int closetIndex = getIndexOfOneClosestEl... |
festival-app/npm-festival | test/domain/coordinatesTest.js | var chai = require('chai');
var should = chai.should();
var coordinates = require('../../lib/domain/coordinates');
describe('coordinates model test', function () {
var lat = 'lat';
var lon = 'lon';
it('should create model', function (done) {
var coordinatesModel = new coordinates.Coordinates(
lat,
... |
iaakhter/MYZ3 | src/nlsat/tactic/goal2nlsat.h | /*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
goal2nlsat.h
Abstract:
"Compile" a goal into the nonlinear arithmetic engine.
Non-arithmetic atoms are "abstracted" into boolean variables.
Non-supported terms are "abstracted" into variables.
The mappings can be used to convert back th... |
ahmadtech199/expo | ios/Exponent/Versioned/Core/UniversalModules/EXScopedBranch.h | // Copyright 2019-present 650 Industries. All rights reserved.
#if __has_include(<EXBranch/RNBranch.h>)
#import <EXBranch/RNBranch.h>
#import <UMCore/UMInternalModule.h>
#import <UMCore/UMModuleRegistryConsumer.h>
NS_ASSUME_NONNULL_BEGIN
@protocol EXBranchScopedModuleDelegate
- (void)branchModuleDidInit:(id _Nonnul... |
sauvikatinnofied/ExploringFuse | Day1/build/iOS/Preview/include/iOS.UIKit.IUIImagePickerControllerDelegate.h | <reponame>sauvikatinnofied/ExploringFuse<gh_stars>0
// This file was generated based on '/usr/local/share/uno/Packages/Experimental.iOS/0.24.0/interface/$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Uno.Object.h>
namespace g{namespace iOS{namespace Foundation{struct N... |
ruby232/web-standard-functions | dist/lib-esm/generator/out/not_implemented.js | /* AUTOGENERATED CODE BELOW */
function notImplemented(fnName) {
console.log("Not yet implemented: " + fnName);
}
// Type: Core
/**
* @param message
* @return any
*/
export function ask() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
notImplemented("ask");... |
gravyhtx/vot-html-test | client/src/components/Header.js | <reponame>gravyhtx/vot-html-test
import { useState, useEffect } from "react";
import { Link, useLocation } from "react-router-dom";
import Logo from "../images/header.svg";
import NotificationBar from './NotificationBar';
import SiteData from "../config/site-data.json"
import Auth from '../utils/auth';
import { getSing... |
turlodales/theos-projects | app_dumps/NEWVKClient.folder/PendingChatCell.h | <gh_stars>10-100
/**
* This header is generated by class-dump-z 0.2-0.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import "ChatCell.h"
#import "VKClient-Structs.h"
@class PendingMessage, UIButton, UIActivityIndicatorView;
__attribute__((visibility("hidden")))
@... |
davidlee80/amd-gpuperfstudio-dx12 | GPUPerfStudio/Server/Common/NamedEvent.h | //==============================================================================
// Copyright (c) 2013-2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief An interface to a named event class. The event is
/// global systemwide, so can be accessed acr... |
spurious/safecode-mirror | lib/SpeculativeChecking/Caching.cpp | <reponame>spurious/safecode-mirror<gh_stars>1-10
//===- Caching.cpp: -------------------------------------------------------===//
//
// The SAFECode Compiler
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See ... |
sadewole/Auth-Oauth | dist/models/order.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = function _default(sequelize, DataTypes) {
var Order = sequelize.define('Order', {
id: {
type: DataTypes.UUID,
allowNull: false,
primaryKey: true
},
quantity: {
... |
Kuangcp/JavaBase | network/src/main/java/com/github/kuangcp/bio/onechatone/ServerThread.java | package com.github.kuangcp.bio.onechatone;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
/**
* Created by Myth on 2017/4/3 0003
*/
public class ServerThread extends Thread{
private Socket socket;
BufferedReader br = null;
PrintStream... |
gunishmatta/Course | tasks/task-9/code/frontend/src/components/WebsiteList.js | <reponame>gunishmatta/Course<gh_stars>10-100
import React, { Component } from 'react';
import { connect } from 'react-redux';
import axios from 'axios';
import { getWebsites } from '../actions';
import Website from './Website';
class WebsiteList extends Component {
componentDidMount(){
let token = sessionStorage.... |
gcodebackups/cortex-vfx | include/IECore/SpherePrimitive.h | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
1067511899/tornado-learn | callbacklearn/pycallgraph/exceptions.py | <filename>callbacklearn/pycallgraph/exceptions.py
class PyCallGraphException(Exception):
pass
|
thautwarm/restrain-jit | tests/bejl/test_instructions.py | from restrain_jit.bejulia.julia_vm import JuVM, UnwindBlock, App, Repr, Reg, Const
from restrain_jit.jit_info import PyCodeInfo
from restrain_jit.bejulia.tools import show_instrs
jit = JuVM.func_info
@jit
def f(x, y):
pass
show_instrs(f.__func_info__.r_codeinfo.instrs)
#
# @jit
# def func1(x):
# x[:2] = 1... |
2k13yr/telegram-1 | app/src/main/java/org/telegram/android/base/SmileyActivity.java | package org.telegram.android.base;
import android.content.Context;
import android.graphics.PixelFormat;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.DisplayMetrics;
import android.util.TypedValue;
... |
leandog/cocoaonep | Examples/WaitForIt/WaitForIt/WaitForItWorker.h | <filename>Examples/WaitForIt/WaitForIt/WaitForItWorker.h<gh_stars>0
//
// WaitForItWorker.h
// WaitForIt
//
// Created by <NAME> on 12/11/14.
// Copyright (c) 2014 Exosite. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void(^WaitedForThis)(NSNumber* number, NSError *error);
@interface WaitFor... |
uk-gov-mirror/ministryofjustice.Claim-for-Crown-Court-Defence | spec/javascripts/Helpers.DataTables_spec.js | <gh_stars>10-100
describe('Helpers.DataTables.js', function () {
const helper = moj.Helpers.DataTables
it('should exist', function () {
expect(moj.Helpers.DataTables).toBeDefined()
})
it('should have default options set', function () {
// tooooo long to type
const defaults = moj.Helpers.DataTables.... |
cvogt/cbt | examples/cross-build-example/build/build.scala | import cbt._
class Build(val context: Context) extends MultipleScalaVersions{
override def scalaVersions = Seq("2.10.5","2.11.7")
}
|
ORNL-BTRIC/OpenStudio | openstudiocore/src/openstudio_lib/SchedulesView.cpp | <filename>openstudiocore/src/openstudio_lib/SchedulesView.cpp
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the te... |
ibcom/mydigitalstructure-learn-xero | node_modules/xero-node/dist/gen/model/payroll-uk/earningsTemplate.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class EarningsTemplate {
static getAttributeTypeMap() {
return EarningsTemplate.attributeTypeMap;
}
}
exports.EarningsTemplate = EarningsTemplate;
EarningsTemplate.discriminator = undefined;
EarningsTemplate.attributeTypeMap = ... |
scossin/abbreviations | java/common/src/main/java/fr/erias/edsabb/writer/WriteOutput.java | package fr.erias.edsabb.writer;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
public class WriteOutput implements IWriteOutput {
private FileOutputStream fos;
public WriteOutput(File outputFile) throws IOException {
outputFile.delete();
outputFile.createNewFile();
boolea... |
viacheslavpleshkov/unit-factory-ucode-uchat | client/src/json/auth/mx_json_log_out.c | #include "uchat_client.h"
char *mx_json_log_out_request(t_json_data *data) {
char *s;
*(int *)s = asprintf(&s, mx_get_json_format_template(JS_LOG_OUT),
JS_LOG_OUT, data->user_id, data->token) - 4;
return s;
}
|
M-Yankov/CPlusPlus | 03.Inheritance/School/Teacher.h | #ifndef Teacher_h
#define Teacher_h
#include "Person.h"
class Teacher : public Person
{
private:
unsigned short _daysInSoftUni;
float _salary;
public:
Teacher(unsigned short id, std::string name, int currentCourse, float salary, unsigned short daysInSoftUni);
float getSalary();
void setSalary(float salary);
un... |
rwietter/codebase | javascript/ECMAScript-Course/8-ForEach/trste.js | let Frequency = new Array(
"a",
"b",
"c",
"a",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"x",
"w",
"y",
"z"
);
function hashFunc(c) {
return c - "a";
}
function countFre(S) {
for (let i = 0; i < S.length; ++i) {
... |
bingchunjin/1806_SDK | uboot/board/freescale/common/pq-mds-pib.h | /*
* Copyright (C) 2007 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*/
extern int pib_init(void);
|
emthrm/library | test/graph/topological_sort.test.cpp | <gh_stars>1-10
/*
* @brief グラフ/トポロジカルソート
*/
#define IGNORE
#define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_4_B"
#include <iostream>
#include <vector>
#include "../../graph/edge.hpp"
#include "../../graph/topological_sort.hpp"
int main() {
int v, e;
std::cin >> v >> e;
... |
BoleynSu/CP-CompetitiveProgramming | archives/problemset/poj.org/3261.cpp | <reponame>BoleynSu/CP-CompetitiveProgramming
#include <stdio.h>
#include <string.h>
const int LOG2_MAXLENGTH=16;
const int MAXLENGTH=1<<LOG2_MAXLENGTH;
const int MAXALPHABET=1000002;
typedef int string[MAXLENGTH];
int sort[MAXLENGTH];
int _SA[MAXLENGTH],_rank[MAXLENGTH],_TSA[MAXLENGTH],_Trank[MAXLENGTH];
int*... |
danielirias/towpod | app/src/main/java/net/towpod/actTestLocationOriginal.java | <reponame>danielirias/towpod
package net.towpod;
import android.Manifest;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Address;
import android.location.Criteria;
i... |
weso/umlShaclex | src/main/scala/es/weso/uml/Schema2UML.scala | <reponame>weso/umlShaclex
package es.weso.uml
import com.typesafe.scalalogging.LazyLogging
import es.weso.schema.{Schema, ShExSchema, ShaclexSchema}
object Schema2UML extends LazyLogging {
def schema2UML(schema: Schema): Either[String,(UML,List[String])] = {
schema match {
case shexSchema: ShExSchema => Sh... |
alexey-suknatov-exactpro/sailfish-core | BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/scriptrunner/ReportEntity.java | <filename>BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/scriptrunner/ReportEntity.java
/******************************************************************************
* Copyright 2009-2018 Exactpro (Exactpro Systems Limited)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no... |
d8corp/innet | lib/scope/index.es6.js | export { default, default as scope } from './scope.es6.js';
|
mcx/tvm | src/robot/FrictionCone.cpp | <reponame>mcx/tvm
/** Copyright 2017-2020 CNRS-AIST JRL and CNRS-UM LIRMM */
#include <tvm/defs.h>
#include <tvm/robot/internal/FrictionCone.h>
#include <Eigen/Geometry>
namespace tvm
{
namespace robot
{
namespace internal
{
FrictionCone::FrictionCone(const Eigen::Matrix3d & frame, unsigned int nrGen, double mu,... |
rkyankya/coursemology2 | spec/models/course/enrol_request_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe Course::EnrolRequest, type: :model do
it 'belongs to a course' do
expect(subject).to belong_to(:course).
inverse_of(:enrol_requests).
without_validating_presence
end
it 'belongs to a user' do
expect(subject).to belong_to(:use... |
haizhenhan/Kepler | kernel/2.6.32/drivers/net/igb/igb_ethtool.c | <reponame>haizhenhan/Kepler<gh_stars>10-100
/*******************************************************************************
Intel(R) Gigabit Ethernet Linux driver
Copyright(c) 2007-2009 Intel Corporation.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions o... |
5nefarious/icarous | Modules/ACCoRD/inc/PolycarpAcceptablePolygon.h | /*
* PolycarpAcceptablePolygon - determining if a 2D polygon is well-formed
*
* Contact: <NAME> (<EMAIL>), <NAME> (<EMAIL>)
*
* Copyright (c) 2015-2017 United States Government as represented by
* the National Aeronautics and Space Administration. No copyright
* is claimed in the United States under Title 17, U... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.