repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
caveguy/AliOS-Things
platform/mcu/moc108/aos/framework_runtime/framework_runtime.c
<gh_stars>1-10 /* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <aos/aos.h> #include "hal/soc/soc.h" #ifdef AOS_BINS const int *syscall_ktbl = NULL; extern void *syscall_ftbl[]; extern char app_info_addr; struct app_info_t *app_info = (struct app_info_t *)&app_info_addr; extern unsigned int...
CBIIT/HPC_DME_APIs
src/hpc-web/src/main/java/gov/nih/nci/hpc/web/util/HpcIdentityUtil.java
<filename>src/hpc-web/src/main/java/gov/nih/nci/hpc/web/util/HpcIdentityUtil.java package gov.nih.nci.hpc.web.util; import gov.nih.nci.hpc.dto.security.HpcUserDTO; import javax.servlet.http.HttpSession; /** * Utility class for methods supporting User identity related logic. * * @author liuwy */ public class HpcId...
DonIsaac/Java-Raytracer
src/model/Model.java
<reponame>DonIsaac/Java-Raytracer package model; import java.util.ArrayList; import geometry.Sphere; import geometry.Transform; import geometry.Vector3; import lighting.Material; public class Model { protected Material mat; protected ArrayList<Vector3> verticies = new ArrayList<Vector3>(); protected ArrayList<Vec...
VeryGame/XUE
xue/src/main/java/org/rschrage/xue/mapping/tag/attribute/SimpleGenericAttribute.java
<reponame>VeryGame/XUE package org.rschrage.xue.mapping.tag.attribute; import org.rschrage.util.ReflectionUtils; import java.lang.reflect.Method; /** * @author <NAME> */ public class SimpleGenericAttribute<T, V> extends AbstractAttribute<T, V> { private String name; public SimpleGenericAttribute(String n...
khoih-prog/miniwinwm
MiniWin/ui/ui_radio_button.c
<reponame>khoih-prog/miniwinwm<filename>MiniWin/ui/ui_radio_button.c<gh_stars>10-100 /* MIT License Copyright (c) <NAME> 2019 miniwin Embedded Window Manager 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 t...
octree-nn/ocnn-pytorch
ocnn/modules/modules.py
<reponame>octree-nn/ocnn-pytorch import torch import torch.utils.checkpoint from typing import List import ocnn from ocnn.nn import OctreeConv, OctreeDeconv from ocnn.octree import Octree bn_momentum, bn_eps = 0.01, 0.001 # the default value of Tensorflow 1.x # bn_momentum, bn_eps = 0.1, 1e-05 # the default val...
sudeshana/carbon-governance
components/governance/org.wso2.carbon.governance.registry.extensions/src/org/wso2/carbon/governance/registry/extensions/discoveryagents/DiscoveryAgentExecutor.java
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.a...
torped/mystajl
SafeAreaView/index.js
// @flow // eslint-disable-next-line import/no-unresolved, import/extensions export { default } from "./SafeAreaView";
jimcox/spring-security-rcp
client/src/test/java/jcox/security/rcp/client/service/SupplierConsumerSwingWorkerTest.java
/* Copyright 2016 <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
flaithbheartaigh/mirrlicht
source/Irrlicht/COpenGLDriver.h
// Copyright (C) 2002-2007 <NAME> // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in Irrlicht.h #ifndef __C_VIDEO_OPEN_GL_H_INCLUDED__ #define __C_VIDEO_OPEN_GL_H_INCLUDED__ #include "IrrCompileConfig.h" #include "CNullDriver.h" #include "IMateri...
nistefan/cmssw
FWCore/Catalog/interface/FileLocator.h
#ifndef FWCore_Catalog_FileLocator_h #define FWCore_Catalog_FileLocator_h #include <string> #include <list> #include <map> #include <utility> #include <regex> #include <xercesc/dom/DOM.hpp> namespace edm { class FileLocator { public: explicit FileLocator(std::string const& catUrl, bool fallback); ~FileL...
carpawell/neo-go
pkg/network/capability/type.go
<filename>pkg/network/capability/type.go package capability // Type represents node capability type. type Type byte const ( // TCPServer represents TCP node capability type. TCPServer Type = 0x01 // WSServer represents WebSocket node capability type. WSServer Type = 0x02 // FullNode represents full node capabili...
fuldaros/paperplane_kernel_wileyfox-spark
sources/drivers/clk/mmp/clk.h
<reponame>fuldaros/paperplane_kernel_wileyfox-spark<filename>sources/drivers/clk/mmp/clk.h<gh_stars>10-100 #ifndef __MACH_MMP_CLK_H #define __MACH_MMP_CLK_H #include <linux/clk-provider.h> #include <linux/clkdev.h> #define APBC_NO_BUS_CTRL BIT(0) #define APBC_POWER_CTRL BIT(1) struct clk_factor_masks { unsigned in...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/aluAppInfo.h
<filename>AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/aluAppInfo.h<gh_stars>1-10 // // 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 <objc/NSObject.h> @class NSString; @interfa...
alexfmsu/pyquantum
plot_M3D.py
from PyQuantum.Tools.PlotBuilder3D import * plot_builder = PlotBuilder3D({ 'title': 'title', 'x_title': 'x_title', 'y_title': 'y_title', 'width': 100, 'height': 100, 'online': True }) plot_builder.prepare({ 'x_csv': 'Bipartite/out/10_5/x.csv', 'y_csv': 'test_y.csv', 'z_csv': 'te...
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
src/StockIT-v1-release_source_from_JADX/sources/com/google/zxing/client/result/BizcardResultParser.java
package com.google.zxing.client.result; import com.google.zxing.Result; import java.util.ArrayList; public final class BizcardResultParser extends AbstractDoCoMoResultParser { public AddressBookParsedResult parse(Result result) { String massagedText = getMassagedText(result); if (!massagedText.sta...
lstyles/nsgflowlogsbeat
vendor/github.com/elastic/beats/vendor/github.com/Azure/azure-event-hubs-go/v3/tracing.go
package eventhub import ( "context" "net/http" "os" "strconv" "github.com/devigned/tab" ) func (h *Hub) startSpanFromContext(ctx context.Context, operationName string) (tab.Spanner, context.Context) { ctx, span := tab.StartSpan(ctx, operationName) ApplyComponentInfo(span) return span, ctx } ...
sango-tech/echarts
lib/component/axis/AxisView.js
<reponame>sango-tech/echarts /* * 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...
enfoTek/tomato.linksys.e2000.nvram-mod
release/src/linux/linux/arch/mips/vr41xx/zao-capcella/ide-capcella.c
<gh_stars>10-100 /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * IDE routines for typical pc-like standard configurations * for the ZAO Networks Capcella. * * Copyright (C) 1998, 1999...
tmdmaker/tmdmaker
bundles/org.tmdmaker.ui/src/org/tmdmaker/ui/editor/gef3/editparts/node/SubsetTypeEditPart.java
/* * Copyright 2009-2019 TMD-Maker Project <https://www.tmdmaker.org> * * 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 re...
kmdkuk/AndroidTraining
Eclipse/assignments/fundamentals/6th/ListViewAssignment/src/jp/mixi/assignment/listview/beg/BookActivity.java
<filename>Eclipse/assignments/fundamentals/6th/ListViewAssignment/src/jp/mixi/assignment/listview/beg/BookActivity.java package jp.mixi.assignment.listview.beg; import android.app.Activity; import android.os.Bundle; public class BookActivity extends Activity { @SuppressWarnings("unused") private static fina...
mauricioszabo/relational-scala
src/main/scala/relational/comparissions/None.scala
<reponame>mauricioszabo/relational-scala package relational.comparissions import relational.comparissions.Equality.{Comparission => EComp} import relational.PartialStatement object None extends Comparission { lazy val partial = PartialStatement { a => "" -> Nil } override protected def newEquality(k: EComp, a: A...
lobbyra/minishell
srcs/execution/builtins/export_utils.c
<filename>srcs/execution/builtins/export_utils.c /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* export_utils.c ...
Clariones/event-driven-generation
projects/project_moyi/cla/edg/project/moyi/gen/graphquery/WithdrawConfiguration.java
<reponame>Clariones/event-driven-generation<gh_stars>1-10 package cla.edg.project.moyi.gen.graphquery; import java.util.Map; import cla.edg.modelbean.*; public class WithdrawConfiguration extends BaseModelBean { public String getFullClassName() { return "com.terapico.moyi.withdrawconfiguration.WithdrawConfigur...
TinaXie/MTToolsLib
MTToolsLib/Classes/CustomView/UIView+MT.h
// // UIView+MT.h // TToolsHelper // // Created by xiejc on 2017/7/31. // Copyright © 2017年 Xiejc. All rights reserved. // #import <UIKit/UIKit.h> #define UI_IS_IPHONE4 ([[UIScreen mainScreen] bounds].size.height < 568.0) #define UI_IS_IPHONE5 ([[UIScreen mainScreen] bounds].size.height == 568.0) #define UI_IS_...
adelbennaceur/carla
Util/OSM2ODR/src/utils/iodevices/PlainXMLFormatter.h
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2012-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
moe123/macadam
macadam/details/numa/mc_mulax3x3.h
<reponame>moe123/macadam // // # -*- coding: utf-8, tab-width: 3 -*- // mc_mulax3x3.h // // Copyright (C) 2019-2021 Moe123. All rights reserved. // #include <macadam/details/numa/mc_addmulax3x3.h> #ifndef MC_MULAX3X3_H #define MC_MULAX3X3_H #pragma mark - mc_mulax3x3 - MC_TARGET_FUNC void mc_mulax3x3f(float * b, c...
panxudong/pxd-base
algorithms-tree/src/main/java/com/pxd/base/algorithms/tree/binary/TreeIsComplete.java
<filename>algorithms-tree/src/main/java/com/pxd/base/algorithms/tree/binary/TreeIsComplete.java package com.pxd.base.algorithms.tree.binary; import com.pxd.base.algorithms.commons.tree.binary.BinaryTreeBuilder; import com.pxd.base.algorithms.commons.tree.binary.BinaryTreeNode; import com.pxd.base.algorithms.commons.tr...
AK-21/ElBandido
src/main/java/org/elbandido/application/ui/ToolButtonDelete.java
<reponame>AK-21/ElBandido package org.elbandido.application.ui; import org.elbandido.application.data.FileSystem; import org.elbandido.dialog.ToolButton; import javax.swing.*; import java.io.File; class ToolButtonDelete extends ToolButton { private static final ImageIcon ICON_DELETE = new ImageIcon(FileSystem.PA...
bytemaster-0xff/DroneTek
NiVek/Micro/Firmware/MultiWii_Picopter/def.h
#ifndef DEF_H #define DEF_H #define DRONE_NAME_LENGTH 32 #define I2C_PULLUPS_ENABLE PORTD |= 1<<0; PORTD |= 1<<1; // PIN A4&A5 (SDA&SCL) #define I2C_PULLUPS_DISABLE PORTD &= ~(1<<0); PORTD &= ~(1<<1); #define ISR_UART ISR(USART0_UDRE_vect) #define ISR_TWI ISR(TWI_vect_num); ...
sbyount/learning_python_2016
class6ex1.py
# multiplication function def multiply(x, y, z=1): num_sum = x*y*z print num_sum multiply(2,5,10) print '\n' multiply(y=5, x=2, z=10) print '\n' multiply(2,5, z=10) print '\n' multiply(2,5)
fangjinuo/langx-java
langx-java/src/main/java/com/jn/langx/event/remote/RemoteEventPublisher.java
package com.jn.langx.event.remote; import com.jn.langx.event.DomainEvent; import com.jn.langx.event.EventListener; import com.jn.langx.event.EventPublisher; public interface RemoteEventPublisher<EVENT extends DomainEvent> extends EventPublisher<EVENT> { @Override void publish(EVENT event); @Override ...
tuobaye0711/codewars
solution/Does my number look big in this.js
<reponame>tuobaye0711/codewars const narcissistic = value => { let arr = value.toString().split('').map(s => parseInt(s)); let sum = 0; for (let i = 0; sum < value; i++) { sum = 0; arr.forEach(n => sum += Math.pow(n, i)) if (sum === value) { return true } ...
metalels/rundock
spec/integration/recipes/file_hook_spec.rb
<reponame>metalels/rundock<filename>spec/integration/recipes/file_hook_spec.rb require 'spec_helper' describe file('/var/tmp/hello_rundock_from_file_hook_inner_one_scenario') do it { should be_file } its(:content) { should match(/hookname:file_hook_one /) } its(:content) { should match(/DEBUG/) } end describe f...
turesnake/leetPractice
src/_leetcode/leet_945.cpp
/* * ====================== leet_945.cpp ========================== * -- tpr -- * CREATE -- 2020.04.14 * MODIFY -- * ---------------------------------------------------------- * 945. 使数组唯一的最小增量 */ #include "in...
hsadler/zentype2
app/server/api/web/user_api.py
<reponame>hsadler/zentype2 # User API from flask import Blueprint, jsonify, request from flask_jwt_simple import ( jwt_required, get_jwt_identity ) from service.user import User user_api = Blueprint('user_api', __name__) @user_api.route('/get-data', methods=['GET']) @jwt_required def get_data(): """ Get api...
strawsyz/straw
my_cv/famous_netorks/VAE_pytorch/utils.py
<filename>my_cv/famous_netorks/VAE_pytorch/utils.py import torch def save_params(net, file_name): # 只保存网络中的参数 (速度快, 占内存少) torch.save(net.state_dict(), file_name + ".pkl") def load_params(target_net, path): # 将保存的参数复制到 target_net target_net.load_state_dict(torch.load(path)) return target_net
549654033/RDHelp
src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/ace/Monitor_T.h
<reponame>549654033/RDHelp /********************************************************************* ** Copyright (C) 2003 Terabit Pty Ltd. All rights reserved. ** ** This file is part of the POSIX-Proactor module. ** ** ** ** ** ** ** @author <NAME> <<EMAIL>> ** *****************************************************...
AngularJS-Angular2-Angular4/angular2-project
wsdl/SFALeadService/com/sforce/soap/schemas/_class/ws_acq_leads/LogType.java
package com.sforce.soap.schemas._class.ws_acq_leads; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for LogType. * * <p>The following schema fragment specifies the expected content contained within this class...
trannguyenhan01092000/WorkspaceAlgorithm
KTLT/lab2/Bai2_3.cpp
<reponame>trannguyenhan01092000/WorkspaceAlgorithm #include <stdio.h> #include <bits/stdc++.h> using namespace std; //# Viết hàm get_value /**************** Ho va ten : <NAME> MSSV : 20183554 */ int get_value(int x, int a=2, int b=1, int c=0){ int S = a*x*x + b*x + c; return S; } /********...
chudichen/spring-source-code
spring-chu-beans/src/main/java/com/chu/beans/factory/config/ConfigurableBeanFactory.java
package com.chu.beans.factory.config; import com.chu.beans.factory.HierarchicalBeanFactory; import com.chu.core.convert.ConversionService; import com.chu.util.StringValueResolver; /** * @author chudichen * @date 2021-04-01 */ public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRe...
AngelKitty/angular.js
benchmarks/orderby-bp/jquery-noop.js
<filename>benchmarks/orderby-bp/jquery-noop.js // Override me with ?jquery=/node_modules/jquery/dist/jquery.js
ElementAI/bytesteady
bytesteady/digram_codec.hpp
<gh_stars>1-10 /* * Copyright 2021 ServiceNow * 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...
jameskoch/nteract
applications/commuter/pages/index.js
<filename>applications/commuter/pages/index.js // @flow import * as React from "react"; import Link from "next/link"; class IndexPage extends React.Component<*> { static async getInitialProps(ctx: Object) { if (ctx.res) { // Server side, do a redirect using the HTTP response object ctx.res.writeHead(...
momo-i/Mekanism
src/main/java/mekanism/common/content/miner/MinerItemStackFilter.java
<filename>src/main/java/mekanism/common/content/miner/MinerItemStackFilter.java package mekanism.common.content.miner; import javax.annotation.Nonnull; import mekanism.common.content.filter.FilterType; import mekanism.common.content.filter.IItemStackFilter; import mekanism.common.tags.MekanismTags; import net.minecraf...
DmitryBorisenko33/MySensorsNode
.pio/libdeps/nrf52_dk/MySensors/drivers/SPIFlash/SPIFlash.cpp
<gh_stars>0 // Copyright (c) 2013-2015 by <NAME>, LowPowerLab.com // SPI Flash memory library for arduino/moteino. // This works with 256byte/page SPI flash memory // For instance a 4MBit (512Kbyte) flash chip will have 2048 pages: 256*2048 = 524288 bytes (512Kbytes) // Minimal modifications should allow chips that hav...
shijingsh/pay-spring-boot-starter-parent
pay-spring-boot-starter-demo/src/main/java/com/egzosn/pay/spring/boot/demo/config/handlers/WxPayMessageHandler.java
package com.egzosn.pay.spring.boot.demo.config.handlers; import com.egzosn.pay.common.api.PayMessageHandler; import com.egzosn.pay.common.api.PayService; import com.egzosn.pay.common.bean.PayOutMessage; import com.egzosn.pay.common.exception.PayErrorException; import com.egzosn.pay.wx.bean.WxPayMessage; import java.u...
suda-morris/SUDA_3518E
uboot/u-boot-2010.06/drivers/mtd/nand/hinfc504/hinfc504_read_retry_micron.c
<reponame>suda-morris/SUDA_3518E /****************************************************************************** * NAND Flash Controller V504 Device Driver * Copyright (c) 2009-2010 by Hisilicon. * All rights reserved. * *** * Create By Czyong. * *******************************************************...
TempJ-Team/TenSquare
apps/user/serializers.py
<gh_stars>0 from django.contrib.auth.hashers import make_password from rest_framework import serializers from .models import * from apps.question.serializers import LablesModelSerializer, QuestionsModelSerializer, ReplySerializerForList from apps.recruit.serializers import RecruitModelSerialier, EnterpriseModelSeriali...
EricRemmerswaal/tensorflow
tensorflow/lite/delegates/gpu/common/model.h
/* Copyright 2019 The TensorFlow 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.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
altalk23/gd.h
layers_scenes_transitions_nodes/CCBlockLayer.h
#ifndef __CCBLOCKLAYER_H__ #define __CCBLOCKLAYER_H__ #include <gd.h> class CCBlockLayer : public cocos2d::CCLayerColor { public: bool m_bUnknown; bool m_bUnknown2; }; #endif
zipated/src
chrome/services/wifi_util_win/wifi_credentials_getter.cc
<filename>chrome/services/wifi_util_win/wifi_credentials_getter.cc // 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. #include "chrome/services/wifi_util_win/wifi_credentials_getter.h" #include "component...
MaksymDryha/ui-eholdings
src/components/title/_fields/identifiers/identifiers-fields.js
import React, { Component, Fragment } from 'react'; import { Field, FieldArray } from 'redux-form'; import PropTypes from 'prop-types'; import { RepeatableField, Select, TextField } from '@folio/stripes/components'; import { injectIntl, intlShape } from 'react-intl'; import styles from './identifiers-fields.css...
knocknote/libhtml5
include/native_object.h
<reponame>knocknote/libhtml5<filename>include/native_object.h<gh_stars>1-10 #pragma once #include "html5.h" NAMESPACE_HTML5_BEGIN; class NativeObject { public: NativeObject(); virtual ~NativeObject(); void autorelease(); void release(); void retain(); unsigned int referenceCount(); bool ...
zipated/src
chrome/browser/interstitials/chrome_metrics_helper.cc
// Copyright 2015 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/interstitials/chrome_metrics_helper.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/history/history_serv...
PennController/penncontroller
src_until_beta0.2/instructions/timer.js
<filename>src_until_beta0.2/instructions/timer.js // import {_setCtrlr} from "../controller.js"; // Adds a timer // Done immediately class TimerInstr extends Instruction { constructor(id, delay, callback) { super(id, delay, "timer"); if (delay != Abort){ this.delay = delay; ...
xaxiong/CityScope
Processing/libraries/WordCram/src/wordcram/WordShaper.java
package wordcram; /* Copyright 2010 <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 writi...
rezigned/omise-java
src/test/java/co/omise/requests/ForexRequestTest.java
package co.omise.requests; import co.omise.models.Forex; import co.omise.models.OmiseException; import org.junit.Test; import java.io.IOException; public class ForexRequestTest extends RequestTest { @Test public void testGet() throws IOException, OmiseException { Request<Forex> request = new Forex.G...
pkosiec/capact
pkg/argo-actions/actions.go
package argoactions import "context" type Action interface { Do(context.Context) error }
flashvoid/core
common/client/store.go
// Copyright (c) 2016-2017 <NAME> // 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 applica...
roboterclubaachen/xpcc-doc
docs/api/classxpcc_1_1_zero_m_q_connector.js
var classxpcc_1_1_zero_m_q_connector = [ [ "ZeroMQConnector", "classxpcc_1_1_zero_m_q_connector.html#ad5234fe1fee59e5fb75e3f1e611b327d", null ], [ "~ZeroMQConnector", "classxpcc_1_1_zero_m_q_connector.html#ad8342473c74376c8df9deb65c6f26ee8", null ], [ "sendPacket", "classxpcc_1_1_zero_m_q_connector.html#a9d...
TheWhiteEagle/Dryad
DryadVertex/VertexHost/system/common/include/dryaderror.h
/* Copyright (c) Microsoft Corporation 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 THIS CODE IS PROVIDED *AS IS* BASIS, W...
seahrh/cses-problem-set
cses/graphalgorithms/1667_MessageRoute.cpp
/* Syrjälä's network has n computers and m connections. Your task is to find out if Uolevi can send a message to Maija, and if it is possible, what is the minimum number of computers on such a route. Input The first input line has two integers n and m: the number of computers and connections. The computers are number...
Pandinosaurus/gpu.js
test/features/to-string/precision/unsigned/arguments/input.js
const { assert, skip, test, module: describe, only } = require('qunit'); const { GPU, input } = require('../../../../../../dist/gpu.js'); describe('feature: to-string unsigned precision arguments Input'); function testArgument(mode, context, canvas) { const gpu = new GPU({ mode }); const originalKernel = gpu.crea...
saltaf07/Public-Scripts
common/utils/get-focusable-elements.js
// @flow // https://gomakethings.com/how-to-get-the-first-and-last-focusable-elements-in-the-dom/ const getFocusableElements = (el: HTMLElement): HTMLElement[] => { return [ ...el.querySelectorAll( 'button, [href]:not([tabindex="-1"]), input, select, textarea, [tabindex]:not([tabindex="-1"])' ), ]; }...
zamorajavi/google-input-tools
client/imm/context_manager.h
/* Copyright 2014 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 to in writing,...
ulisesten/xalanc
src/xalanc/XPath/XToken.cpp
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); * you m...
ls1110924/Aria
FtpComponent/src/main/java/com/arialyy/aria/ftp/download/FtpDGInfoTask.java
/* * Copyright (C) 2016 AriaLyy(https://github.com/AriaLyy/Aria) * * 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...
ckamtsikis/cmssw
FWCore/Integration/python/restricted_cff.py
import FWCore.ParameterSet.Config as cms cms.checkImportPermission(allowedPatterns = ['allowed'])
ph4m/constrained-rl
ceres/tools/io/h5_helper.py
<filename>ceres/tools/io/h5_helper.py # Copyright (c) IBM Corp. 2018. All Rights Reserved. # Project name: Constrained Exploration and Recovery from Experience Shaping # This project is licensed under the MIT License, see LICENSE import os import h5py ''' Helper functions for writing and loading data in the HDF5 form...
Bobinette/papernet
papernet/services/paper.go
package services import ( "fmt" "github.com/bobinette/papernet/errors" "github.com/bobinette/papernet/papernet" "github.com/bobinette/papernet/users" ) func errPaperNotFound(id int) error { return errors.New(fmt.Sprintf("paper %d not found", id), errors.NotFound()) } type UserService interface { CreatePaper(u...
applitools/eyes.selenium.python
applitools/core/geometry.py
<reponame>applitools/eyes.selenium.python from __future__ import absolute_import import math import typing as tp from collections import OrderedDict from .errors import EyesError if tp.TYPE_CHECKING: from ..utils.custom_types import ViewPort __all__ = ('Point', 'Region',) class Point(object): """ A po...
gepeng66666/frist_try
app/src/main/java/com/geekghost/gp/geekghost/frag/interfaces/ICommentView.java
package com.geekghost.gp.geekghost.frag.interfaces; import com.geekghost.gp.geekghost.entity.CommentListBean; import java.util.List; /** * 作者:戈鹏 * on 2018/1/2 21:49 */ public interface ICommentView { void onCommentSuccess(List<CommentListBean> commentList); void onCommentFailed(Exception e); }
ioio-creative/web-canvas
Example/threejs/threejs-demos/js/autumn-scene.js
<reponame>ioio-creative/web-canvas<gh_stars>0 function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? undefined : decodeURIComponent(results[...
Light-Wizzard/QtLingo
doc/html/build-QtLingoTest-Desktop-Debug_2moc__MainWindow_8cpp.js
var build_QtLingoTest_Desktop_Debug_2moc__MainWindow_8cpp = [ [ "qt_meta_stringdata_MainWindow_t", "structqt__meta__stringdata__MainWindow__t.html", "structqt__meta__stringdata__MainWindow__t" ], [ "QT_MOC_LITERAL", "build-QtLingoTest-Desktop-Debug_2moc__MainWindow_8cpp.html#a75bb9482d242cde0a06c9dbdc6b83abe", ...
lucmoreau/OpenProvenanceModel
opm/src/main/java/org/openprovenance/model/Normalise.java
package org.openprovenance.model; import java.util.List; import java.util.LinkedList; import java.util.Collection; import java.util.Collections; import javax.xml.bind.JAXBElement; import java.util.Comparator; public class Normalise { OPMFactory oFactory; public Normalise(OPMFactory oFactory) { this.o...
sentinelweb/microserver
microserver-java/src/main/java/uk/co/sentinelweb/microserver/server/MultiCastListener.java
<reponame>sentinelweb/microserver package uk.co.sentinelweb.microserver.server; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.MulticastSocket; import java.util.HashMap; public class MultiCastLi...
lpxz/grail-derby104
java/storeless/org/apache/derby/impl/storeless/NoOpTransaction.java
/* Derby - Class org.apache.impl.storeless.NoOpTransaction 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...
seanrowens/ACCAST
AirSim/Machinetta/CostMaps/TiledCostMap.java
/******************************************************************************* * Copyright (C) 2017, <NAME>, <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: * * 1. Redistribution...
Piterski72/git_test
chapter_001/src/main/java/ru/nivanov/DuplicMass.java
package ru.nivanov; /** * Programm finds duplicates in massive and creates new one with no copies. * @author nivanov. */ class DuplicMass { /** */ private final String[] symbols; public DuplicMass(String[] psymbols) { this.symbols = psymbols; } /** * copyRemover. * @ret...
Petkr/PPreflection
PPreflection/types/types.hpp
<reponame>Petkr/PPreflection #pragma once #include "types.h" #include "arithmetic_type.hpp" #include "arithmetic_type_strong.hpp" #include "array_type.hpp" #include "class_type.hpp" #include "cv_type.hpp" #include "enum_type.hpp" #include "function_type.hpp" #include "known_bound_array_type.hpp" #include "n...
JFixby/Rana
rana-loader-api/src/com/jfixby/rana/api/loader/PackageInfo.java
<reponame>JFixby/Rana<gh_stars>0 package com.jfixby.rana.api.loader; import com.jfixby.rana.api.format.PackageFormat; import com.jfixby.scarabei.api.assets.ID; import com.jfixby.scarabei.api.collections.Collection; public class PackageInfo { public String packageName; public PackageFormat packageFormat;...
twsearle/atlas
src/atlas/mesh/actions/ExtendNodesGlobal.cc
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
ChineseTony/javaDataStruct
src/main/java/com/tom/array/MakeConnected.java
<filename>src/main/java/com/tom/array/MakeConnected.java package com.tom.array; import com.tom.unionfind.UnionFind; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author tom */ public class MakeConnected { public static int m...
markusstraub/java-playground
src/main/java/com/github/mstraub/performance/PerformanceTester.java
package com.github.mstraub.performance; //package performance; // //import java.io.File; //import java.sql.Connection; //import java.sql.DriverManager; //import java.sql.ResultSet; //import java.sql.SQLException; //import java.sql.Statement; //import java.util.Vector; // //public class PerformanceTester { // // privat...
AiLovesAi/Nimble-Engine
docs/NimbleLibrary/html/search/all_1.js
var searchData= [ ['argc_5',['argc',['../_nimble_engine_8h.html#a3337a5ceb7d556a05c8ee774ce054d5e',1,'NimbleEngine.h']]] ];
vsobolmaven/tavutil
tavutil/test_paypalx.py
<reponame>vsobolmaven/tavutil<gh_stars>0 # Public Domain (-) 2010-2011 The Tavutil Authors. # See the Tavutil UNLICENSE file for details. from __future__ import absolute_import from tavutil.paypalx import AdaptivePayment, PayRequest from config import ( PPX_API_USERNAME, PPX_API_PASSWORD, PPX_API_SIGNATURE, P...
jlprieur/jlplib
jlp_gsegraf/jlp_gsegraf_axes/jlp_GsegAxes_Setup.cpp
/****************************************************************************** * jlp_Gsegraf_Setup.cpp * JLP_GsegAxes class * * JLP * Version 01/04/2017 ******************************************************************************/ #include <stdlib.h> // exit() #include <math.h> #include <time.h> #include "j...
DICL/cassandra-driver
driver-core/src/test/java/com/datastax/driver/core/querybuilder/QueryBuilder21ExecutionTest.java
<reponame>DICL/cassandra-driver /* * Copyright (C) 2012-2015 DataStax 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....
carlosturnerbenites/rememberHelp
public/js/activities.js
<reponame>carlosturnerbenites/rememberHelp<filename>public/js/activities.js var text = new Text(), detailActivityActive = null, voice = new Voice( response ), buttonCaptureVoice = document.querySelector( '#buttonCaptureVoice' ) if ( buttonCaptureVoice ){ buttonCaptureVoice.addEventListener( 'mousedown', event => {...
618lf/swak
swak-vertx/src/main/java/com/swak/vertx/security/handler/AdviceHandler.java
<filename>swak-vertx/src/main/java/com/swak/vertx/security/handler/AdviceHandler.java<gh_stars>1-10 package com.swak.vertx.security.handler; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import com.swak.security.Subject; import com.swak.vertx.security.Context; /** * 访问控...
danielflanigan/kid_readout
apps/data_analysis_scripts/custom_fix_atten_2015_06_hpd_pickle_sweep_noise_measurements.py
# Automatically associate sweeps with timestreams import os import time import numpy as np from kid_readout.measurement.io.readoutnc import ReadoutNetCDF from kid_readout.analysis.noise_measurement import SweepNoiseMeasurement, save_noise_pkl import cPickle from kid_readout.roach.tools import ntone_power_correction cr...
hispindia/BIHAR-2.7
dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/util/Dhis14ObjectMappingUtil.java
package org.hisp.dhis.importexport.dhis14.util; /* * Copyright (c) 2004-2012, University of Oslo * 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 reta...
tabordasolutions/nics-common
entities/src/main/java/edu/mit/ll/nics/common/entity/IncidentIncidentType.java
<reponame>tabordasolutions/nics-common<filename>entities/src/main/java/edu/mit/ll/nics/common/entity/IncidentIncidentType.java /** * Copyright (c) 2008-2018, Massachusetts Institute of Technology (MIT) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification...
mateimicu/cloudbase-init-ci
argus/tests/cloud/smoke.py
# Copyright 2015 Cloudbase Solutions Srl # 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 r...
zhoutao0712/rtn11pb1
release/src/router/iptables-1.4.x/include/linux/netfilter/xt_TCPOPTSTRIP.h
#ifndef _XT_TCPOPTSTRIP_H #define _XT_TCPOPTSTRIP_H #define tcpoptstrip_set_bit(bmap, idx) \ (bmap[(idx) >> 5] |= 1U << (idx & 31)) #define tcpoptstrip_test_bit(bmap, idx) \ (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0) struct xt_tcpoptstrip_target_info { __u32 strip_bmap[8]; }; #endif /* _XT_TCPOPTSTRIP_H */
somkiet073/ci-demos-dashbord
assets/DevExtreme/Demos/WidgetsGallery/Demos/Scheduler/WebAPIService/React/App.js
import React from 'react'; import Scheduler from 'devextreme-react/scheduler'; import * as AspNetData from 'devextreme-aspnet-data-nojquery'; const url = 'https://js.devexpress.com/Demos/Mvc/api/SchedulerData'; const dataSource = AspNetData.createStore({ key: 'AppointmentId', loadUrl: `${url }/Get`, insertUrl:...
bottomless-archive-project/library-of-alexandria
loa-application/loa-downloader-application/src/main/java/com/github/bottomlessarchive/loa/downloader/service/source/queue/DownloadQueueListener.java
package com.github.bottomlessarchive.loa.downloader.service.source.queue; import com.github.bottomlessarchive.loa.downloader.service.document.DocumentLocationEvaluator; import com.github.bottomlessarchive.loa.queue.service.QueueManipulator; import com.github.bottomlessarchive.loa.queue.service.domain.Queue; import com...
ndlib/hydramaton
hydramata-core/spec/dummy/config/routes.rb
<reponame>ndlib/hydramaton Rails.application.routes.draw do mount Hydramata::Core::Engine => "/Core" end
samuelbaizg/ssguan
ssguan/data/investors.py
<gh_stars>1-10 # -*- coding: utf-8 -*- import datetime import re import time import traceback from ssguan import config from ssguan.ignitor.web import webcli from ssguan.ignitor.orm import properti from ssguan.ignitor.utility import type, money from ssguan.ignitor.orm.model import Model class MoneyManSt...