repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
AriDine/MotoWallet | nuttx/drivers/power/battery_temp.c | <gh_stars>1-10
/*
* Copyright (C) 2016 Motorola Mobility, LLC.
* 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,
* ... |
dreamsxin/ultimatepp | bazaar/kissfir/kissfir.h | #ifndef _kissfir_kissfir_h
#define _kissfir_kissfir_h
#include <Core/Core.h>
using namespace Upp;
#include <plugin/kissfft/kissfft.h>
#endif
|
tychobrailleur/mvnizer | lib/mvnizer/task_helper.rb | require 'fileutils'
require 'nokogiri'
module Mvnizer
# The +TaskHelper+ provides different functions that can be used in tasks,
# such as function to create directories, generate files from templates, etc.
module TaskHelper
# path to the template location.
TEMPLATE_DIR = File.expand_path(File.join(File.... |
brianv0/rucio | lib/rucio/core/monitor.py | <filename>lib/rucio/core/monitor.py<gh_stars>0
# Copyright European Organization for Nuclear Research (CERN)
#
# 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/L... |
ExplorableGraph/hello | demos/hello/graphs/6.js | const letters = ["a", "b", "c", "d", "e", "f", "g", "i", "j"];
const routes = ["index.html", ...letters];
class HelloGraph {
async *[Symbol.asyncIterator]() {
yield* routes;
}
async get(key) {
if (key === "index.html") {
const links = letters
.map((letter) => `<li><a href="${letter}">${let... |
Saisimon/AGTMS | agtms-parent/agtms-web/src/main/java/net/saisimon/agtms/web/controller/main/ManagementMainController.java | package net.saisimon.agtms.web.controller.main;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.Pa... |
dariadomagala/busola | core-ui/src/components/Lambdas/helpers/resources/memoryHelpers.js | <filename>core-ui/src/components/Lambdas/helpers/resources/memoryHelpers.js<gh_stars>10-100
import bytes from 'bytes-iec';
export function normalizeMemory(memory = '') {
if (!memory) {
return 0;
}
const memoryWithSuffix = memory.endsWith('B') ? memory : `${memory}B`;
return bytes(memoryWithSuffix) || 0;
}
... |
JamesLinus/OS-Zero | usr/lib/vec/op.c | <reponame>JamesLinus/OS-Zero
#if 0
#include <stdio.h>
#include <stdlib.h>
#include <vec/vec.h>
/* add two vectors */
struct vec *
vcaddv(struct vec *src, struct vec *dest)
{
struct vec *vec = NULL;
size_t n = dest->nval;
long t = dest->type;
vcint ival1;
vcint ival2;... |
nkapinos/chorus | spec/javascripts/views/database_column_list_view_spec.js | <gh_stars>1-10
describe("chorus.views.DatabaseColumnList", function() {
describe("#render", function() {
beforeEach(function() {
this.dataset = backboneFixtures.workspaceDataset.datasetTable();
this.dataset.setDatasetNumber(1);
this.collection = backboneFixtures.databaseC... |
acktsap/it-book-searcher | it-book-indexer/src/main/java/acktsap/books/IndexerApplication.java | /*
* @copyright defined in LICENSE.txt
*/
package acktsap.books;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class IndexerApplication {
public static void main(String[] args) {
SpringApplication.run(Ind... |
donhui/kubesphere | vendor/openpitrix.io/openpitrix/pkg/pb/app.pb.gw.go | <reponame>donhui/kubesphere<filename>vendor/openpitrix.io/openpitrix/pkg/pb/app.pb.gw.go
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: app.proto
/*
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
*/
package pb
import (
"io"
"net/http"
"github.com/golang/protobuf/... |
langkcc/AndroidFramwork | androidframework/src/main/java/com/juefeng/android/framework/common/util/Base64Util.java | package com.juefeng.android.framework.common.util;
import android.util.Base64;
/**
* Created with IntelliJ IDEA.
* User: LangK
* Date: 2017/9/30
* Time: 17:43
* Description:
*/
public class Base64Util {
Base64 decoder;
public static String encode(String str){
String strBase64 = new String(Bas... |
rram12/huntKingdomPlatform | mobile/src/Entities/PiecesDefectueuses.java | /*
* 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 Entities;
/**
*
* @author asus_pc
*/
public class PiecesDefectueuses {
private int id;
private boolean... |
newcommerdontblame/ionlib | src/sdk/hl2_csgo/game/server/swarm/asw_spawner.cpp | #include "cbase.h"
#include "baseentity.h"
#include "asw_spawner.h"
//#include "asw_simpleai_senses.h"
#include "asw_marine.h"
#include "asw_gamerules.h"
#include "asw_marine_resource.h"
#include "asw_game_resource.h"
#include "entityapi.h"
#include "entityoutput.h"
#include "props.h"
#include "asw_alien.h"
#include "a... |
zurl/CauchyDB | Services/FileService.h | <reponame>zurl/CauchyDB
//
// Created by 张程易 on 2017/3/20.
//
#ifndef DB_FILESERVICE_H
#define DB_FILESERVICE_H
#include "../Common.h"
class FileService{
std::vector<FILE *> files;
std::vector<int> fileBlockCnt;
public:
FileService();
FileService(const FileService & ) = delete;
FileService operat... |
luoyezhe/graphin4vue | src/components/graphin/apis/element.js | /**
* 高亮节点
* @param graph
*/
export const highlightNodeById = (graph) => (nodeIds) => {
graph.getNodes().forEach(node => {
graph.clearItemStates(node, ['active', 'inactive'])
if (nodeIds.indexOf(node.get('id')) !== -1) {
graph.setItemState(node, 'active', true)
} else {
graph.setItemState(n... |
zoido/yag-conf | variable.go | package yag
import "strings"
type variable struct {
flag *wrapper
name string
envName string
help string
required bool
parseFlag bool
parseEnv bool
}
func (v *variable) usage() string {
u := make([]string, 1, 10)
u[0] = "\t"
if v.parseFlag {
u = append(u, "-", v.name)
}
if v.parseEnv && v.par... |
ysn3506/git_bbc | src/integration/pages/mostWatchedPage/crossPlatformTests.js | <filename>src/integration/pages/mostWatchedPage/crossPlatformTests.js<gh_stars>100-1000
import { runCommonCrossPlatformTests, runMainHeadingTests } from '../../common';
export default service => {
runCommonCrossPlatformTests(service);
runMainHeadingTests();
it('I can see the list items', () => {
const listI... |
DDeAlmeida/near-wallet | packages/frontend/src/components/accounts/create/existing_account/ExistingAccountWrapper.js | <gh_stars>0
import { getLocation } from 'connected-react-router';
import { parse } from 'query-string';
import React, { useState } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { LINKDROP_GAS, MIN_BALANCE_TO_CREATE } from '../../../../config';
import { Mixpanel } from '../../../../mixpan... |
cmscaltech/sandie-ndn | NDNc/mgmt/json_helper.hpp | <reponame>cmscaltech/sandie-ndn<filename>NDNc/mgmt/json_helper.hpp<gh_stars>1-10
/*
* N-DISE: NDN for Data Intensive Science Experiments
* Author: <NAME> <<EMAIL>>
*
* MIT License
*
* Copyright (c) 2021 California Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining ... |
b97tsk/rx | operators/isEmpty.go | package operators
import (
"context"
"github.com/b97tsk/rx"
)
// IsEmpty emits true if the source emits no items, otherwise it emits false.
func IsEmpty() rx.Operator {
return isEmpty
}
func isEmpty(source rx.Observable) rx.Observable {
return func(ctx context.Context, sink rx.Observer) {
ctx, cancel := conte... |
jjwilke/sst-macro | sstmac/replacements/sched.h | <gh_stars>0
#if defined(SSTMAC_INSIDE_STL) || defined(SSTMAC_NO_REPLACEMENTS)
#include_next <sched.h>
#else
#include <sstmac/libraries/pthread/sstmac_sched.h>
#endif
|
matt-ullmer/Diamond | src/collectors/ping/test/testping.py | #!/usr/bin/python
# coding=utf-8
################################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import Mock
from mock import patch
from diamond.collector import Collector
from ping import Pin... |
keob/leetcode-go | leetcode/solution123/solution.go | <filename>leetcode/solution123/solution.go
package solution123
func maxProfit(prices []int) int {
buy1, sell1 := -prices[0], 0
buy2, sell2 := -prices[0], 0
n := len(prices)
for i := 1; i < n; i++ {
buy1 = max(buy1, -prices[i])
sell1 = max(sell1, buy1+prices[i])
buy2 = max(buy2, sell1-prices[i])
sell2 = ma... |
Raffson/Sub-C-compiler | subcPrograms/Pmachine/ldo.h | // ldo.h
#ifndef LDO_H
#define LDO_H
#include <vector>
#include <typeinfo>
using namespace std;
#include "stackmachine.h"
#include "executionerror.h"
#include "stackelement.h"
#include "instruction.h"
/**
* @doc Implements the ldo-instruction. Load from absolute address.
* @author <NAME>
*/
class Ldo : public ... |
flix-/environment-variable-tracing | Test/200-map-to-callee-variable-5/main.c | <gh_stars>0
extern char *getenv(const char *name);
struct s1 {
int a;
char *tainted;
char *b;
};
void
foo(char *tainted_foo)
{
char *also_tainted_foo = tainted_foo;
}
int
main()
{
struct s1 s;
s.tainted = getenv("gude");
foo(s.tainted);
return 0;
}
|
jmoraleda/flowable-engine | modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/interceptor/StartCaseInstanceBeforeContext.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
* distribut... |
ricardyn/ironpython-stubs | stubs.min/System/Windows/Controls/__init___parts/MediaState.py | class MediaState(Enum,IComparable,IFormattable,IConvertible):
"""
Specifies the states that can be applied to a System.Windows.Controls.MediaElement for the System.Windows.Controls.MediaElement.LoadedBehavior and System.Windows.Controls.MediaElement.UnloadedBehavior properties.
enum MediaState,values: Close ... |
Actinium-project/ACM-LN-Desktop | app/components/Channels/ChannelCloseDialog.js | import React from 'react'
import PropTypes from 'prop-types'
import { Flex, Box } from 'rebass'
import { FormattedMessage, injectIntl, intlShape } from 'react-intl'
import { withFieldState } from 'informed'
import Delete from 'components/Icon/Delete'
import { Dialog, Text, Heading, Button, Checkbox, Form, DialogOverlay... |
1and1/camunda-bpm-platform | webapps/camunda-webapp/webapp/src/main/webapp/app/admin/filters/main.js | <gh_stars>1-10
ngDefine('admin.filters', [
], function(module) {
}); |
fabriciofmsilva/javascript-libs | src/references/html-text/element-text-content.js | var elem = document.querySelector('#some-elem');
// Get text content
var text = elem.textContent;
// Set text content
elem.textContent = 'We can dynamically change the content.';
// Add text to the end of an element's existing content
elem.textContent += ' Add this after what is already there.';
// Add text to the ... |
aeon-engine/libaeon | src/mono/public/aeon/mono/mono_class.h | // Distributed under the BSD 2-Clause License - Copyright 2012-2021 <NAME>
#pragma once
#if (AEON_PLATFORM_OS_WINDOWS)
#ifndef MONO_DLL_IMPORT
#define MONO_DLL_IMPORT
#endif
#endif
#include <aeon/mono/mono_static_function.h>
#include <aeon/common/type_traits.h>
#include <aeon/common/compilers.h>
AEON_IGNORE_VS_WARN... |
matthieu-vergne/Parsing | parsing-core/src/main/java/fr/vergne/parsing/layer/util/Time.java | <reponame>matthieu-vergne/Parsing
package fr.vergne.parsing.layer.util;
import fr.vergne.parsing.layer.standard.Atom;
import fr.vergne.parsing.layer.standard.Formula;
import fr.vergne.parsing.layer.standard.Option;
import fr.vergne.parsing.layer.standard.Suite;
public class Time extends Suite {
public Time() {
su... |
anyulled/react-boilerplate | app/components/Version4/counterparty/AddCounterpartyStep2Component/index.js | <reponame>anyulled/react-boilerplate
/**
*
* AddCounterpartyStep2Component
*
*/
import React, { PropTypes } from 'react';
import { Row, FormGroup, ControlLabel, Checkbox } from 'react-bootstrap';
import StepsHeaderComponent from '../../common/StepsHeaderComponent';
import RadioGroupAddDeal from '../../common/RadioGro... |
LeandroTk/Algorithms | computer_science/data_structures/stack/stack_class.js | class Stack {
constructor() {
this.items = [];
}
push(item) {
this.items.push(item);
}
pop() {
return this.items.pop();
}
top() {
return this.items[this.items.length - 1];
}
isEmpty() {
return this.size() === 0;
}
size() {
return this.items.length;
}
}
// testing
co... |
alfred-landrum/pravega | controller/src/main/java/io/pravega/controller/store/stream/records/Subscribers.java | <filename>controller/src/main/java/io/pravega/controller/store/stream/records/Subscribers.java<gh_stars>0
/**
* Copyright Pravega 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... |
jimcoles/actionable | actionables-pmc-ref/src/main/java/com/oculussoftware/util/IRElementNameLister.java | package com.oculussoftware.util;
/*
* $Workfile: IRElementNameLister.java $
* Date: 9-06-00
* Description: Supports building lists of things.
*
* Copyright 7-01-2000 productmarketing.com. All Rights Reserved.
*
* Author: <NAME>
* Version 1.2
*/
import com.oculussoftware.api.repi.*;
import com.oculussoftware.a... |
vbondarevsky/c-plus-plus-white | white/structure-lecture-title/LectureTitle.cpp | #include <string>
using namespace std;
struct Specialization
{
string value;
explicit Specialization(const string& new_value)
{
value = new_value;
}
};
struct Course
{
string value;
explicit Course(const string& new_value)
{
value = new_value;
}
};
struct Week
{
string value;
explicit Week(const st... |
lechium/tvOS130Headers | System/Library/PrivateFrameworks/WebKitLegacy.framework/WebInspectorFrontend.h | <reponame>lechium/tvOS130Headers<gh_stars>10-100
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:47:03 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/PrivateFrameworks/WebKitLegacy.framework/WebKitLegacy
* classdump-dyld ... |
jnthn/intellij-community | plugins/xslt-debugger/engine/impl/src/org/intellij/plugins/xsltDebugger/rt/engine/local/saxon/SaxonTraceListener.java | <filename>plugins/xslt-debugger/engine/impl/src/org/intellij/plugins/xsltDebugger/rt/engine/local/saxon/SaxonTraceListener.java
/*
* Copyright 2007 <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 o... |
Xwudao/ujuji_backend | src/main/java/com/ujuji/navigation/util/VerifyCodeUtils.java | <gh_stars>10-100
package com.ujuji.navigation.util;
import com.ujuji.navigation.model.dto.VerifyCodeDto;
import com.wf.captcha.ArithmeticCaptcha;
import com.wf.captcha.SpecCaptcha;
import org.apache.commons.lang3.RandomUtils;
public class VerifyCodeUtils {
public static VerifyCodeDto getRandomCode() {
in... |
mmatoscom/serenity | Kernel/DoubleBuffer.h | <reponame>mmatoscom/serenity
#pragma once
#include <AK/Types.h>
#include <AK/Vector.h>
#include <Kernel/Lock.h>
class DoubleBuffer {
public:
DoubleBuffer()
: m_write_buffer(&m_buffer1)
, m_read_buffer(&m_buffer2)
{
}
ssize_t write(const byte*, ssize_t);
ssize_t read(byte*, ssize_t... |
wilebeast/FireFox-OS | B2G/gecko/js/src/jit-test/tests/proxy/testDirectProxyHas1.js | <filename>B2G/gecko/js/src/jit-test/tests/proxy/testDirectProxyHas1.js
// Forward to the target if the trap is not defined
var proxy = new Proxy(Object.create(Object.create(null, {
'foo': {
configurable: true
}
}), {
'bar': {
configurable: true
}
}), {});
assertEq('foo' in proxy, true);
... |
dulibrarytech/digcoll-frontend | public/assets/js/downloader.js | /**
Copyright 2020 University of Denver
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 o... |
rfedorenkov/JavaRushTasks | 1.JavaSyntax/src/com/javarush/task/jdk13/task07/task0717/Solution.java | package com.javarush.task.jdk13.task07.task0717;
import java.util.ArrayList;
import java.util.Scanner;
/**
* Удвой слова
* 1. Введи с клавиатуры 10 слов в список строк.
* 2. Метод doubleValues должен удваивать слова по принципу
* "альфа", "бета", "гамма" -> "альфа", "альфа", "бета", "бета", "гамма", "гамма".
* 3... |
Pro100Tema/ostap | ostap/logger/logger.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# Copyright Ostap developers
# =============================================================================
"""Ostap simple logger.
Bsed on the logging of the Gaudi software project of CERN:
... |
aimuch/NVIDIA_CUDA_Samples | NVIDIA_CUDA-9.0_Samples/7_CUDALibraries/cuSolverSp_LinearSolver/cuSolverSp_LinearSolver.cpp | /*
* Copyright 2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related docu... |
appscode/stash | vendor/stash.appscode.dev/apimachinery/pkg/invoker/interfaces.go | <reponame>appscode/stash
/*
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
dhavalgoti24/BoxIt-IME-indic | app/native/jni/src/dictionary/structure/backward/v402/content/bigram_entry.h | /*
* Copyright (C) 2013, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
timgates42/Ender | lib/commands/info.js | /*!
* ENDER - The open module JavaScript framework
*
* Copyright (c) 2011-2012 @ded, @fat, @rvagg and other contributors
*
* 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 restr... |
vcellmike/Biosimulators_VCell | vcell-server/src/main/java/cbit/vcell/modeldb/UserStatTable.java | <filename>vcell-server/src/main/java/cbit/vcell/modeldb/UserStatTable.java
/*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
... |
skdebray/ASE-2020 | shared/LynxReg.h | #ifndef _LYNX_REG_H_
#define _LYNX_REG_H_
#include <stdint.h>
/* This enum represents all of the registers in x86 for all of the different
architectures. Note that different architectures use different subsets of
these registers and as a result, each of the register groups are named.
There should never be an ... |
mullinger/dicexpression | src/main/java/ch/ullinger/dicexpression/base/Expression.java | <gh_stars>0
package ch.ullinger.dicexpression.base;
import java.util.List;
public interface Expression {
public int evaluate();
public List<Expression> getSubExpressions();
}
|
Kevin-Lee/effectie | cats-effect3/src/test/scala-3/effectie/cats/compat/CatsEffectIoCompatForFuture.scala | package effectie.cats.compat
import cats.effect.*
import cats.effect.unsafe.IORuntime
import extras.concurrent.testing.ConcurrentSupport
import extras.concurrent.testing.types.ErrorLogger
import java.util.concurrent.ExecutorService
import scala.concurrent.ExecutionContext
/** @author <NAME>
* @since 2021-04-18
*... |
mladra/packing-assistant | app/src/main/java/pl/lodz/p/edu/database/PackAssistantDatabase.java | <gh_stars>0
package pl.lodz.p.edu.database;
import android.content.Context;
import java.util.concurrent.Executors;
import androidx.annotation.NonNull;
import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.room.TypeConverters;
import androidx.sqlite.db.SupportSQL... |
jczaja/Paddle | paddle/capi/examples/model_inference/common/common.h | <gh_stars>1-10
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// U... |
saydulk/parliamentary-questions | redeploy/pq_fixer.rb | <reponame>saydulk/parliamentary-questions<gh_stars>0
module Redeploy
class PqFixer
def initialize(pqid)
@pq = Pq.find(pqid)
@log_messages = []
end
def fix!
begin
log("fixing PQID")
if %w{ unassigned no_response rejected }.include?(@pq.state)
# for unassigned... |
coreboot/chrome-ec | chip/stm32/config-stm32g473xc.h | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* Memory mapping for STM32G473xc. The STM32G473xc is a category 1 device within
* the STM32G4 chip family. Category 1 devices have either 128,... |
asgeir/old-school-projects | computer_graphics/tests/cubemap/cubemapapp.cpp | <gh_stars>0
#include "cubemapapp.h"
namespace {
const std::string kReflectiveVertexShader = R"(
#version 150
in vec4 ge_position;
in vec3 ge_normal;
uniform mat4 ge_modelViewProjection;
uniform mat3 ge_normalMatrix;
out vec3 normal;
void main()
{
gl_Position = ge_modelViewProjection * ge_position;
nor... |
TheEggi/esphomeyaml | esphome/components/a4988/a4988.h | <reponame>TheEggi/esphomeyaml
#pragma once
#include "esphome/core/component.h"
#include "esphome/core/esphal.h"
#include "esphome/components/stepper/stepper.h"
namespace esphome {
namespace a4988 {
class A4988 : public stepper::Stepper, public Component {
public:
void set_step_pin(GPIOPin *step_pin) { step_pin_ =... |
maurizioabba/rose | tests/roseTests/roseHPCToolkitTests/data/02/struct_ls/CPP-smg_residual.c | /*BHEADER**********************************************************************
* (c) 1997 The Regents of the University of California
*
* See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
* notice, contact person, and disclaimer.
*
* $Revision: 1.1 $
**********************************************... |
lizhanhui/tddl | tddl-executor/src/main/java/com/taobao/tddl/executor/cursor/impl/IndexNestedLoopMgetImpCursor.java | <filename>tddl-executor/src/main/java/com/taobao/tddl/executor/cursor/impl/IndexNestedLoopMgetImpCursor.java
package com.taobao.tddl.executor.cursor.impl;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.taobao.tddl.common.exception.TddlException;
import c... |
Happy-sc/Doris-api | dataserver/dataserver.mysql/src/main/java/com/alibaba/doris/dataserver/store/mysql/MysqlDatabase.java | package com.alibaba.doris.dataserver.store.mysql;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Iterator;
import java.util.List;
import javax.sql.DataSource;
import com.alibaba.doris.common.data.CompareStatus;
impo... |
viennamini/viennamini-dev | src/pde_set.cpp | /* =======================================================================
Copyright (c) 2011-2013, Institute for Microelectronics, TU Wien
http://www.iue.tuwien.ac.at
-----------------
ViennaMini - The Vienna Device Simulator
------------... |
alexeyche/vespa | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceAllocation.java | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.resource;
import com.yahoo.config.provision.NodeResources;
import java.util.Objects;
/**
* An allocation of node resources.
*
* @author ldalves
*/
pub... |
Pleets/Talker-Town | public/libs/jquery-ui-1.10.4/tests/unit/tooltip/tooltip_methods.js | (function( $ ) {
module( "tooltip: methods" );
test( "destroy", function() {
expect( 3 );
var element = $( "#tooltipped1" );
domEqual( "#tooltipped1", function() {
element.tooltip().tooltip( "destroy" );
});
// make sure that open tooltips are removed on destroy
domEqual( "#tooltipped1", function() {
elem... |
leiferikb/bitpop-private | chrome/browser/extensions/api/notification/notification_apitest.cc | <reponame>leiferikb/bitpop-private<gh_stars>1-10
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/notification/notification_api.h"
#include "chrome/browser/ext... |
ScottWinkler/github-api-app | react-ui/src/containers/compare.js | <reponame>ScottWinkler/github-api-app
//import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import Compare from '../components/compare/compare.js'
import {setUser} from '../actions/compare.js';
import {bindActionCreators} from 'redux';
const mapStateToProps=(state)=>{
return{
users:... |
vntodorova/Notes | Notes/Notes/LeftPanelViewController.h | <filename>Notes/Notes/LeftPanelViewController.h
//
// LeftPanelViewController.h
// Notes
//
// Created by <NAME> on 4/3/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Protocols.h"
@class Notebook;
@class Reminder;
@class NoteManager;
@interface LeftPanelViewController : ... |
udidoron/monday-ui-react-core | src/components/Menu/MenuTitle/__tests__/menuTitle.jest.js | import React from "react";
import renderer from "react-test-renderer";
import MenuTitle from "../MenuTitle";
it("renders correctly with empty props", () => {
const tree = renderer.create(<MenuTitle />).toJSON();
expect(tree).toMatchSnapshot();
});
it("renders correctly with custom class name", () => {
const tre... |
jultabary/4dk | java/project/core-java/src/main/java/org/tby/fourdk/core/query/bus/QueryDispatcher.java | package org.tby.fourdk.core.query.bus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tby.fourdk.core.query.Query;
import org.tby.fourdk.core.query.Response;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class QueryDispatcher implements QueryBus{
private stati... |
mauguignard/cbmc | regression/cbmc-library/fprintf-01/main.c | #include <assert.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
fprintf(stdout, "some string %s: %d\n", argv[0], 42);
fprintf(stderr, "some other string\n");
return 0;
}
|
israelba/ifbaeventos | src/main/java/br/edu/ifba/bru/sistemas/ifbaeventos/CriarTabelas.java | <reponame>israelba/ifbaeventos<filename>src/main/java/br/edu/ifba/bru/sistemas/ifbaeventos/CriarTabelas.java
package br.edu.ifba.bru.sistemas.ifbaeventos;
import javax.persistence.Persistence;
public class CriarTabelas {
public static void main(String[] args) {
Persistence.createEntityManagerFactory("ifbaeventos"... |
vkurnosov/effe | generator/flow_gen_res.go | package generator
import (
"go/ast"
"go/types"
"strings"
"github.com/GettEngineering/effe/fields"
"github.com/pkg/errors"
)
type implFieldInfo struct {
serviceFuncName *ast.Ident
originalFuncName *ast.Ident
input *ast.FieldList
output *ast.FieldList
deps *ast.FieldList
}
... |
xSnowChen/vertx-zero | vertx-gaia/vertx-co/src/main/java/io/vertx/up/atom/query/tree/QValue.java | package io.vertx.up.atom.query.tree;
import io.vertx.up.util.Ut;
public class QValue implements QLeaf {
private transient final QOp op;
private transient final String field;
private transient final Object value;
private transient Integer level = 0;
private QValue(final String field, final QOp o... |
yaghouti/e-health | views/js/patient.js | <reponame>yaghouti/e-health
window.onload = function () {
var app = new Vue({
el: "#app",
data: {
activeForm: 'greeting',
menuList: [
{name: 'getTicket', text: 'دریافت نوبت'},
{name: 'myTickets', text: 'نوبتهای من'},
{name: 'myRecords', text: 'پروندهی پزشکی من'}
],
... |
hidura/sugelico | resources/site/js/orders_rep.js | $(function () {
$("#filters").submit(function(event){
event.preventDefault();
var data = {
"classname": "Bills.getProdsHistPreorder",
"preorder": $("#order").val()
}
console.log(data);
sugelico.postServerCall(data, function(data, status) {
console.log(data);
});
... |
dekuan/thingTrust-byteballcore | test/test_array.js | <filename>test/test_array.js
var m_arrCache = [];
var m_arrCacheLeft = [];
var m_arrCacheRight = [];
m_arrCache = m_arrCacheLeft;
m_arrCache.push( 1 );
m_arrCache.push( 2 );
m_arrCache.push( 3 );
m_arrCache = m_arrCacheRight;
m_arrCache.push( 4 );
m_arrCache.push( 5 );
m_arrCache.push( 6 );
m_arrCache = null;
m_ar... |
stutiredboy/obproxy | unittest/obproxy/test_ob_blowfish.cpp | <gh_stars>10-100
/**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFT... |
mobilesec/cormorant | cormorant-libsignal-service-fork/src/main/java/org/whispersystems/signalservice/api/messages/SignalServiceAttachmentStream.java | <filename>cormorant-libsignal-service-fork/src/main/java/org/whispersystems/signalservice/api/messages/SignalServiceAttachmentStream.java
/**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package org.whispersystems.signalservice.api.messages;
impo... |
manuelpalenga/ContinuITy | continuity.idpa/src/main/java/org/continuity/idpa/test/IdpaTestInstance.java | <filename>continuity.idpa/src/main/java/org/continuity/idpa/test/IdpaTestInstance.java
package org.continuity.idpa.test;
import java.io.IOException;
import org.continuity.idpa.WeakReference;
import org.continuity.idpa.annotation.ApplicationAnnotation;
import org.continuity.idpa.annotation.CsvInput;
import org.continu... |
svrc-pivotal/safekeeping | vmbk/src/com/vmware/vmbk/soap/VimConnection.java | /*******************************************************************************
* Copyright (C) 2019, VMware 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:
*
* 1. Redistributions of s... |
t0rr3sp3dr0/t0rr3sp3dr0.github.io | files/The Huxley/Problem804.java | import java.util.Scanner;
/**
* Created by phts on 08/06/16.
*/
public class Lista {
public static void main(String[] args) {
String nome;
double valor;
int quantidade;
Scanner in = new Scanner(System.in);
Lista lista = new Lista();
ListaProdutos lp = lista.new ... |
fangfan/ff | dynamic-proxy/src/main/java/cglib/HelloMethodInterceptor.java | <gh_stars>0
package cglib;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import java.lang.reflect.Method;
/**
* Created by F.Fang on 2015/12/2.
* Spring当中也存在MethodInterceptor.
* org.aopalliance.intercept.MethodInterceptor;
*/
public class ... |
chanwaikit/fulin-test | src/main/java/com/mazentop/entity/SysFriendsLinkType.java | package com.mazentop.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.mztframework.commons.Utils;
import com.mztframework.dao.jdbc.BaseBean;
import java.util.function.Supplier;
import java.util.Map;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapp... |
TheTripleV/GRIP | ui/src/main/java/edu/wpi/grip/ui/codegeneration/CppTMethods.java | package edu.wpi.grip.ui.codegeneration;
import edu.wpi.grip.ui.codegeneration.data.TInput;
import edu.wpi.grip.ui.codegeneration.data.TStep;
import com.google.common.base.CaseFormat;
import org.apache.commons.lang3.text.WordUtils;
public class CppTMethods extends TemplateMethods {
public CppTMethods() {
super... |
duck8823/webhook-proxy | domain/model/job/target/git/mock_git/git.go | <gh_stars>10-100
// Code generated by MockGen. DO NOT EDIT.
// Source: domain/model/job/target/git/git.go
// Package mock_git is a generated GoMock package.
package mock_git
import (
context "context"
git "github.com/duck8823/duci/domain/model/job/target/git"
gomock "github.com/golang/mock/gomock"
plumbing "gopkg... |
langhua/OFBiz-Drools | webapp/business-central-7.17.0.Final/org.kie.bc.KIEWebapp/js/Plugins/patterncreator-min.js | if(!ORYX.Plugins){ORYX.Plugins={}
}if(!ORYX.Config){ORYX.Config={}
}ORYX.Plugins.PatternCreator=Clazz.extend({construct:function(a){this.facade=a;
this.facade.registerOnEvent(ORYX.CONFIG.CREATE_PATTERN,this.handleCreatePattern.bind(this));
this.patternShapes={};
this.patternPositions={};
this.selectedRoots=[];
this.sel... |
brian-kelley/seacas | docs/ioss_html/classIogs_1_1IOFactory.js | <reponame>brian-kelley/seacas
var classIogs_1_1IOFactory =
[
[ "IOFactory", "classIogs_1_1IOFactory.html#ad1776901ec22677b54e5d1f21b7f7289", null ],
[ "factory", "classIogs_1_1IOFactory.html#acdfdf15dabab3f8f5b241c91c1420098", null ],
[ "make_IO", "classIogs_1_1IOFactory.html#aae6db274c5d4f146ca50b4ad2679e9... |
arguiot/Cascade | src/static/all.js | Cascade.all = Cascade.init("*")
|
ScalablyTyped/SlinkyTyped | b/blueprintjs__core/src/main/scala/typingsSlinky/blueprintjsCore/hotkeyParserMod.scala | package typingsSlinky.blueprintjsCore
import org.scalablytyped.runtime.NumberDictionary
import org.scalablytyped.runtime.StringDictionary
import org.scalajs.dom.raw.KeyboardEvent
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalSc... |
liuyanyi/mmdetection | tools/dota/dota_image.py | <reponame>liuyanyi/mmdetection<filename>tools/dota/dota_image.py
import os
from argparse import ArgumentParser
from mmdet.apis import (inference_detector,
init_detector)
def parse_args():
parser = ArgumentParser()
parser.add_argument('img_dir', help='Image file folder')
parser.add... |
battila7/dijon | src/main/java/io/risotto/binding/InstanceBinding.java | <gh_stars>1-10
package io.risotto.binding;
import static io.risotto.instantiation.InstantiationMode.INSTANCE;
import io.risotto.instantiation.InstantiationMode;
import io.risotto.instantiation.InstantiatorFactory;
import io.risotto.instantiation.NoOpInstantiator;
import java.util.Objects;
/**
* This binding binds ... |
tusharchoudhary0003/Custom-Football-Game | sources/p019d/p143b/p144a/p147c/C7203ra.java | package p019d.p143b.p144a.p147c;
import p019d.p143b.p150d.C7251a;
import p019d.p143b.p150d.C7253c;
import p019d.p143b.p150d.C7267q;
/* renamed from: d.b.a.c.ra */
final class C7203ra implements Runnable {
/* renamed from: a */
final /* synthetic */ C7253c f13932a;
/* renamed from: b */
final /* synt... |
eebenson/haggle | src/bbs/httpd.h | /* Copyright 2008 Uppsala University
*
* 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 ... |
Legend383838/AresClient-Deobf | Ares/mods/impl/ModArmorStatus.java | <filename>Ares/mods/impl/ModArmorStatus.java
package Ares.mods.impl;
import Ares.GuiIngameMods;
import Ares.event.gui.hud.ScreenPosition;
import Ares.mods.ModDraggable;
import java.awt.Color;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import... |
BTWS2/dodona | config/application.rb | require_relative "boot"
require "rails/all"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Dodona
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails ve... |
bio-nim/pbbam | src/XmlReader.cpp | <gh_stars>0
#include "PbbamInternalConfig.h"
#include "XmlReader.h"
#include <cassert>
#include <istream>
#include <memory>
#include <stdexcept>
#include <typeinfo>
#include <vector>
#include <pbbam/StringUtilities.h>
#include "pugixml/pugixml.hpp"
using DataSetElement = PacBio::BAM::internal::DataSetElement;
usi... |
bdutro-sv/map | sparta/sparta/report/format/PythonDict.hpp | // <PythonDict> -*- C++ -*-
/*!
* \file PythonDict.hpp
* \brief PythonDict Report output formatter
*/
#ifndef __SPARTA_REPORT_FORMAT_PYTHONDICT_H__
#define __SPARTA_REPORT_FORMAT_PYTHONDICT_H__
#include <iostream>
#include <sstream>
#include <math.h>
#include "sparta/report/format/BaseOstreamFormatter.hpp"
#incl... |
axetang/AxeCoding | Golang/gopkg/fmt/fmt.f.Fprintln.go | /************************************************************************************
**Author: <NAME>; Email: <EMAIL>
**Package: fmt
**Element: fmt.Fprintln
**Type: func
------------------------------------------------------------------------------------
**Definition:
func Fprintln(w io.Writer, a ...interface{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.