repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
kefirzhang/algorithms
leetcode/python/easy/p687_longestUnivaluePath.py
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def __init__(self): self.max_length = 0 def longestUnivaluePath(self, root: TreeNode) -> int: def maxSameNode(node, value): ...
manu88/RenderKit
RenderKit/Modest/include/myfont/vhea.h
<filename>RenderKit/Modest/include/myfont/vhea.h<gh_stars>1-10 /* Copyright (C) 2016-2017 <NAME> This library 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 2.1 of the License, or (at...
Sgitario/jcloud-unit
jester-core/src/main/java/io/jester/api/RunOnKubernetes.java
<filename>jester-core/src/main/java/io/jester/api/RunOnKubernetes.java package io.jester.api; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE...
MatiasComercio/ati
src/main/java/ar/edu/itba/ati/idp/function/noise/ExponentialNoise.java
package ar.edu.itba.ati.idp.function.noise; import java.util.function.DoubleUnaryOperator; import org.apache.commons.math3.distribution.ExponentialDistribution; public class ExponentialNoise implements DoubleUnaryOperator { private final ExponentialDistribution exponentialDist; public ExponentialNoise(final dou...
elementechemlyn/node-careconnect-server-core
src/Extensions/tests/ExtensionCareConnectValueApproximation1.test.js
// This code was autogenerated from BuildExtensions.py const ExtensionCareConnectValueApproximation1 = require('../../../src/Extensions/ExtensionCareConnectValueApproximation1.js') describe('Care Connect Extension ExtensionCareConnectValueApproximation1', function () { describe('Object constructor', function () { ...
liubang/laboratory
cpp/leetcode/494.target-sum.cc
<filename>cpp/leetcode/494.target-sum.cc #include <gtest/gtest.h> #include <vector> namespace { class Solution { public: int findTargetSumWays(const std::vector<int>& nums, int target) { int sum = 0; std::for_each(nums.begin(), nums.end(), [&sum](int num) { sum += num; }); if (sum < target || ((sum + t...
purm/IvmpDotNet
IvmpDotNet.Proxy/SDK/ModuleNatives/CheckpointNatives.h
//============== IV: Multiplayer - http://code.iv-multiplayer.com ============== // // File: CheckpointNatives.h // Project: Server.Core // Author(s): MaVe // License: See LICENSE in root directory // //============================================================================== #pragma once #include "ModuleNatives...
juleshwa/hacktiv8
phase0/week3/exercise-9.js
// Exercise 9 - Looking for Mean // <NAME> - Hacktiv8 Batch 34 - Humble Fox // Create function to calculate mean of an array number function cariMean (arr) { let sum = 0 let mean = 0 let arrayLength = arr.length for (let i = 0; i < arrayLength; i++) { sum += arr[i] } mean = Math.round(sum / arrayLeng...
yuchengs/viennacl-dev
viennacl/device_specific/lazy_program_compiler.hpp
#ifndef VIENNACL_DEVICE_SPECIFIC_LAZY_PROGRAM_COMPILER_HPP #define VIENNACL_DEVICE_SPECIFIC_LAZY_PROGRAM_COMPILER_HPP /* ========================================================================= Copyright (c) 2010-2016, Institute for Microelectronics, Institute for Analysis and Scientifi...
tobireinhard/cbmc
src/util/xml.cpp
<gh_stars>100-1000 /*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #include "xml.h" #include <ostream> #include "exception_utils.h" #include "string2int.h" #include "structured_data.h" void...
DeraTechDesign/diode_client
util/helper_test.go
// Diode Network Client // Copyright 2021 Diode // Licensed under the Diode License, Version 1.1 package util import ( "bytes" "math" "testing" ) type PaddingBytesTest struct { Src []byte Pad uint8 Length int Res []byte } type IntBytesTest struct { Src int Bytes []byte } type IntBigTest struct {...
zpsean/go4api
lib/pairwise/pairwise.go
/* * go4api - an api testing tool written in Go * Created by: <NAME> 2018 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */ package pairwise import ( "fmt" "s...
aizatazhar/tp
src/main/java/seedu/zookeep/storage/JsonAdaptedMedicalCondition.java
<reponame>aizatazhar/tp package seedu.zookeep.storage; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import seedu.zookeep.commons.exceptions.IllegalValueException; import seedu.zookeep.model.medicalcondition.MedicalCondition; /** * Jackson-friendly version o...
lkkuma/AutoPlug-Client
src/main/java/com/osiris/autoplug/client/utils/tasks/MyDate.java
<reponame>lkkuma/AutoPlug-Client /* * Copyright (c) 2022 Osiris-Team. * All rights reserved. * * This software is copyrighted work, licensed under the terms * of the MIT-License. Consult the "LICENSE" file for details. */ package com.osiris.autoplug.client.utils.tasks; import com.osiris.betterthread.BThread; im...
sirmarcel/cmlk
tests/test_engine_configparse.py
from unittest import TestCase from cmlkit.engine import is_config, parse_config class TestConfigparseBasics(TestCase): def test_is_config_valid(self): valid = {"a": {"b": 3}} self.assertTrue(is_config(valid)) def test_is_config_invalid(self): invalid = {3: {"b": 3}} self.ass...
tzhanl/azure-sdk-for-python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/deploy_configuration_parameters_py3.py
<reponame>tzhanl/azure-sdk-for-python # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (...
kagaramag/ke-be-dep
src/helpers/factory/userNormal.js
<filename>src/helpers/factory/userNormal.js // eslint-disable-next-line import/no-extraneous-dependencies import { Factory } from 'rosie'; import Chance from 'chance'; const chance = new Chance(); export default Factory.define('user') .sequence('id') .attr('firstName', chance.first()) .attr('lastName', chance.l...
pr0d1r2/gentoo_converge
cookbooks/shell_aliases/recipes/default.rb
directory '/root/projects' execute 'update-ca-certificates' git '/root/projects/shell_aliases_compiler' do repository 'https://github.com/pr0d1r2/shell_aliases_compiler.git' revision 'master' action :sync end template '/root/projects/shell_aliases_compiler/.config.sh' do source 'config.sh.erb' variables no...
logicred/Euler-Project
Problem 4/problem4.py
#Answer = 906609 993 913 #cost = 0.291 import time start = time.time() def palindrome(a, b): #print(1) summary = a * b num = str(summary) i = 0 j = len(num) - 1 while i < j: if num[i] != num[j]: return False i += 1 j -= 1 return True ...
pitchpoint-solutions/sfs
sfs-server/src/main/java/org/sfs/rx/HttpClientKeepAliveResponseBodyBuffer.java
/* * Copyright 2016 The Simple File Server Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
jxg01713/zstack
header/src/main/java/org/zstack/header/network/l3/APIListL3NetworkMsg.java
<reponame>jxg01713/zstack package org.zstack.header.network.l3; import org.zstack.header.message.APIListMessage; import java.util.List; public class APIListL3NetworkMsg extends APIListMessage { public APIListL3NetworkMsg() { } public APIListL3NetworkMsg(List<String> uuids) { super...
Flexberry/olingo-jpa-processor-v4
jpa/odata-jpa-processor-cb/src/main/java/com/sap/olingo/jpa/processor/cb/impl/TypedQueryImpl.java
package com.sap.olingo.jpa.processor.cb.impl; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.stream.Collectors; import javax.persiste...
wokalski/Distraction-Free-Xcode-plugin
Archived/v1/WCDistractionFreeXcodePlugin/Headers/PlugIns/IDESpriteKitParticleEditor/SKInspectorVector2Property.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "IDEInspectorProperty.h" @class DVTStepperTextField, IDEInspectorKeyPath, NSString, NSTextField; @interface SKInspectorVector2Property : IDEInspectorProperty { DVTStepperTex...
Zz1ven/voovan
Network/src/main/java/org/voovan/network/udp/UdpSocket.java
package org.voovan.network.udp; import org.voovan.Global; import org.voovan.network.ConnectModel; import org.voovan.network.SocketContext; import org.voovan.network.exception.ReadMessageException; import org.voovan.network.exception.RestartException; import org.voovan.network.exception.SendMessageException; import org...
wotchin/openGauss-server
src/include/utils/rowstore.h
<filename>src/include/utils/rowstore.h<gh_stars>1-10 /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.co...
h03147/Algorithm-bro
leetcodetest/src/part_1/medium/dp/dicesSum_swordOffer60.java
package part_1.medium.dp; import java.util.*; public class dicesSum_swordOffer60 { public List<Map.Entry<Integer, Double>> dicesSum(int n) { final int face = 6; final int pointNum = face * n; long[][] dp = new long[n + 1][pointNum + 1]; for(int i = 1; i <= face; ++i) { ...
Drakandes/Portfolio_NicolasPaulBonneau
Code en C++ de Mage War Online/IncludeAllArmors.h
<gh_stars>0 #pragma once #include "A_ArmorOfTheWandering.h" #include "A_BeginnerArmor.h" #include "A_BrokenArmor.h" #include "A_RobeOfTheAcclaimed.h" #include "A_RobeOfTheAcclaimedPlus.h" #include "A_RobeOfTheAncient.h" #include "A_RobeOfTheAncientElite.h" #include "A_RobeOfTheApprentice.h" #include "A_RobeOfT...
pmcollins/keybasket
app/controllers/managers_controller.rb
class ManagersController < ApplicationController before_filter :coordinator_authorized?, :except => [:show] before_filter :manager_authorized?, :only => [:show] before_filter :find_company def new @manager = Manager.new end def show @manager = @company.managers.find(params[:id]) @manager_prop...
ali-sharif/avm
org.aion.avm.rt/src/i/EarlyAbortException.java
package i; /** * Error that indicates the DApp need to abort early. */ public class EarlyAbortException extends AvmException { private static final long serialVersionUID = 1L; }
nataren/mono
mono/mini/tramp-hppa.c
/* * tramp-hppa.c: JIT trampoline code for hppa * * Copyright (c) 2007 <NAME> * * 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 ri...
jianglei-tianma/knows
hadoop_demo/src/main/java/com/lagou/hdfs/hadoop/demo/mr/WordcountReducer.java
<reponame>jianglei-tianma/knows package com.lagou.hdfs.hadoop.demo.mr; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Reducer; import java.io.IOException; //继承的Reduce类有四个泛型参数,2对kv //第一对kv:类型要与mapper输出类型一致:Text, IntWritable //第二队kv:自己设计决定输出的结果数据是什么类型:Text,...
Fsero/maiao
pkg/github/github.go
package gh import ( "context" "fmt" "net/url" "github.com/google/go-github/v40/github" "github.com/sirupsen/logrus" "golang.org/x/oauth2" ) // NewClient instanciates a new github client depending on the domain name // // When requesting a client for a different host than github.com, // a client for github ente...
IlfirinPL/robotframework-testmanagement
src/TestManagementLibrary/user.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2015 Lingaro from .query import ( Operator, DisplayNameParameter ) class UserManager(object): """ We assumes that this class will be mixed with RallyConnectionManager to provide the _get_rally_connection method. """ def _get_us...
arayi/colobus
src/functions/flatten.js
const flatten = (arr) => { const newArray = [] if (Array.isArray(arr) || typeof arr === "string") { for (let i of arr) { if (!Array.isArray(i) ) { newArray.push(i) } else { for (let j of i) { newArray.push(j) } } } return newArray } return [] } export def...
AmirAlahmedy/Node.js-nandbox-Help-Bot
src/data/Gif.js
<filename>src/data/Gif.js const Thumbnail = require("../data/Thumbnail"); /** * This class represents incoming Message used to get Gif Message . * * @author <NAME> @Amir * */ module.exports = class Gif { constructor(obj) { this.id = obj.id; this.width = Number(obj.width); this.height =...
glossina/ldetool
internal/ast/action_pass_heading_characters.go
<gh_stars>100-1000 package ast import ( "fmt" ) var _ Action = PassHeadingCharacters('1') type PassHeadingCharacters string func (a PassHeadingCharacters) String() string { return fmt.Sprintf("pass all '%s' characters in the head of rest", string(a)) } func (a PassHeadingCharacters) Accept(d ActionDispatcher) er...
MrRleft/QFLowServer
src/main/java/com/qflow/server/controller/dto/UserPost.java
<filename>src/main/java/com/qflow/server/controller/dto/UserPost.java package com.qflow.server.controller.dto; public class UserPost { private String username; private String password; private String email; private String nameLastName; public String getUsername() { return username; } ...
tianruoliu/deep-in-java
stage-2/lesson1/src/main/java/com/ajin/deep/in/java/modular/ModuleReflectionDemo.java
package com.ajin.deep.in.java.modular; import java.lang.module.ModuleDescriptor; import java.util.logging.Logger; /** * 模块化反射Demo * * @author ajin */ public class ModuleReflectionDemo { public static void main(String[] args) { Class<Logger> loggerClass = Logger.class; Module module = logge...
researchgate/nodejs-simple-downloader
nsd/nodejs/arch_darwin_arm64.go
<filename>nsd/nodejs/arch_darwin_arm64.go package nodejs // CurrentArch and CurrentURL describe how the URL of the nodejs download will look like const ( CurrentArch string = "darwin-x64" //until nodejs provides a specific image for arm64 we'll use x64 CurrentURL DownloadURL = Stable CurrentExte...
drking445/Spotify
node_modules/react-component-metadata/lib/createClass-visitor.js
<filename>node_modules/react-component-metadata/lib/createClass-visitor.js 'use strict'; var _babelTypes = require('babel-types'); var t = _interopRequireWildcard(_babelTypes); var _componentBodyVisitor = require('./component-body-visitor'); var _componentBodyVisitor2 = _interopRequireDefault(_componentBodyVisitor)...
Mysticpasta1/DimDoors
src/main/java/org/dimdev/dimdoors/shared/world/ModDimensions.java
package org.dimdev.dimdoors.shared.world; import lombok.Getter; import net.minecraft.world.DimensionType; import net.minecraft.world.World; import net.minecraftforge.common.DimensionManager; import org.dimdev.dimdoors.shared.ModConfig; import org.dimdev.dimdoors.shared.world.limbo.WorldProviderLimbo; import org.dimdev...
YanXs/nighthawk
nightawk-jdbc/src/main/java/com/github/nightawk/jdbc/support/DB2URLParser.java
package com.github.nightawk.jdbc.support; import java.net.URI; /** * jdbc:db2://192.168.0.2:50000/test * * @author Xs. */ public class DB2URLParser implements URLParser { @Override public DatabaseURL parse(String url) { DatabaseURL databaseUrl = DatabaseURL.DATABASE_URLS.get(url); if (dat...
aliahsan07/safe-development
tests/test262/15.4/15.4.4/15.4.4.7/S15.4.4.7_A5_T1.js
Object.prototype[1] = - 1; Object.prototype.length = 1; Object.prototype.push = Array.prototype.push; var x = { 0 : 0 }; var push = x.push(1); { var __result1 = push !== 2; var __expect1 = false; } { var __result2 = x.length !== 2; var __expect2 = false; } { var __result3 =...
egriswol/astr-119-section-assignments
hello-world-Kyle-D.py
<gh_stars>1-10 #!/usr/bin/env python3 print("Hello from <NAME>!")
jambolo/jambolo.github.io
docs/Vkx/html/search/classes_8.js
<filename>docs/Vkx/html/search/classes_8.js var searchData= [ ['material',['Material',['../class_vkx_1_1_material.html',1,'Vkx']]] ];
fergy/aplit_linux-5
mm/frontswap.c
/* * Frontswap frontend * * This code provides the generic "frontend" layer to call a matching * "backend" driver implementation of frontswap. See * Documentation/vm/frontswap.rst for more information. * * Copyright (C) 2009-2012 Oracle Corp. All rights reserved. * Author: <NAME> * * This work is licensed u...
yassine/spring-boot-sample
src/main/java/org/github/yassine/samples/domain/repository/PersonRepository.java
package org.github.yassine.samples.domain.repository; import org.github.yassine.samples.domain.model.company.Person; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.stereotype.Repository; @Repository public interface PersonRepository extends PagingAndSortingRepository...
jmosro/trazactivo
src/main/java/com/ipec/trazactivo/model/ActivoObservacion.java
package com.ipec.trazactivo.model; import java.io.Serializable; import javax.persistence.*; import javax.validation.Valid; import lombok.Data; @Entity @Data @Table(name="activo_observacion") public class ActivoObservacion implements Serializable { private static final long serialVersionUID = 1L; ...
ratiotile/StardustDevEnvironment
3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Guard.cpp
<filename>3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Guard.cpp #include "UnitInfo.h" void UnitWrap::RunGuard() { SetOrderTimer( rand()%16 ); // 0-15 if ( GetControlType() == ControlTypes::Guard ) SetVirtualUnitOrder(Orders::Enum::GuardPost); else SetVirtualUnitOrder(Orders::Enum::ComputerAI); } void ...
aaltamar12/solidus_graphql_api
lib/solidus_graphql_api/queries/product/option_types_query.rb
# frozen_string_literal: true module SolidusGraphqlApi module Queries module Product class OptionTypesQuery attr_reader :product def initialize(product:) @product = product end def call SolidusGraphqlApi::BatchLoader.for(product, :option_types) ...
Nizernizer/DongTai-agent-java
iast-core/src/main/java/com/secnium/iast/core/util/LazyGet.java
package com.secnium.iast.core.util; /** * 懒加载 * * @param <T> 懒加载类型 * @author <EMAIL> * @since {@code sandbox-api:1.2.2} */ public abstract class LazyGet<T> { private volatile boolean isInit = false; private volatile T object; abstract protected T initialValue() throws Throwable; public T get()...
lukewagner/wasmint
libwasmint/interpreter/heap/Heap.cpp
<reponame>lukewagner/wasmint /* * Copyright 2015 WebAssembly Community Group * * 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 * * Un...
shadansari/onos-cu-cp
openair2/UTIL/LFDS/liblfds7.0.0/test/src/test_lfds700_hash_addonly_random_adds_overwrite.c
/***** includes *****/ #include "internal.h" /***** structs *****/ struct test_element { struct lfds700_hash_a_element hae; lfds700_pal_uint_t key; }; struct test_state { lfds700_pal_uint_t number_elements_per_thread, overwrite_count; struct lfds700_hash_a_state *has; struct test_elem...
mcodegeeks/OpenKODE-Framework
03_Tutorial/T07_XMOgre3D/Source/Sample/Fresnel.cpp
/* ------------------------------------------------------------------------------------ * * File Fresnel.cpp * Description This source file is part of OGRE * (Object-oriented Graphics Rendering Engine) * Author <NAME> * * -------------------------------...
Uniandes-isis2603/s3_Animaciones_201910
s3_animaciones-back/src/main/java/co/edu/uniandes/csw/animaciones/ejb/ConcursoJuradoLogic.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 co.edu.uniandes.csw.animaciones.ejb; import co.edu.uniandes.csw.animaciones.entities.ConcursoEntity; import co.edu.uni...
UBICUA-JSSI/ssido.server
ssido.core/src/main/java/ssido/core/data/AuthenticatorSelectionCriteria.java
// Copyright (c) 2018, Yubico AB // 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, this // list of conditions a...
kurylo/openvino
src/common/transformations/src/transformations/op_conversions/softplus_decomposition.cpp
<reponame>kurylo/openvino // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "transformations/op_conversions/softplus_decomposition.hpp" #include <memory> #include <ngraph/opsets/opset4.hpp> #include <ngraph/pattern/op/wrap_type.hpp> #include <ngraph/rt_info.hpp> #include ...
alv1n/pws
include/uspienv/logger.h
// // logger.h // // USPi - An USB driver for Raspberry Pi written in C // Copyright (C) 2014 <NAME> <<EMAIL>> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the Lic...
novadwisaptanainseven/e-pekerja
src/views/pages/Admin/Mutasi/EditMutasi.js
import { CCard, CCardHeader, CButton, CInput, CLabel, CCol, CCardFooter, CFormGroup, CCardBody, CForm, } from "@coreui/react"; import React, { useState, useEffect } from "react"; import { useHistory } from "react-router-dom"; import LoadingSubmit from "src/reusable/LoadingSubmit"; import * as Yup fr...
vinjatovix/booking-flights-app
front/src/components/SearchFlight/ResponseHeader/filters.js
<reponame>vinjatovix/booking-flights-app<filename>front/src/components/SearchFlight/ResponseHeader/filters.js const formatDuration = (string) => { return +string.replace(/PT(\d+)H(\d+)M/, "$1.$2"); }; export const byPrice = (a, b) => +a.price.grandTotal < +b.price.grandTotal ? 1 : -1; export const byStops = (a, b...
bpbpublications/Advance-Core-Python-Programming
Chapter 02/descriptiveQA.py
#1 class classLevel: def class1(self,string_a): print(string_a) def class2(self): print('There are 15 students in this class') cl = classLevel("Hello") cl.class1() cl.class2() ####################################### class Foo: @staticmethod def bar(): print('St...
h1st-ai/h1st-contrib
h1st_contrib/iot_mgmt/maint_ops/migrations/0020_auto_20180420_1922.py
<reponame>h1st-ai/h1st-contrib # -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-04-21 02:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('IoT_DataMgmt', '0006_auto_2...
raybdzhou/PyChip-py-hcl
example/Blackbox.py
from pyhcl import * class BBox(BlackBox): io = IO( in1=Input(U.w(64)), in2=Input(U.w(64)), out=Output(U.w(64)), ) class M(Module): io = IO( i = Input(U.w(64)), o = Output(U.w(64)), ) bbox = BBox() bbox.io.in1 <<= io.i bbox.io.in2 <<= io.i io.o...
onmyway133/Runtime-Headers
macOS/10.13/Foundation.framework/NSRangeSpecifier.h
<reponame>onmyway133/Runtime-Headers<gh_stars>10-100 /* Generated by RuntimeBrowser Image: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation */ @interface NSRangeSpecifier : NSScriptObjectSpecifier { NSScriptObjectSpecifier * _endSpec; NSScriptObjectSpecifier * _startSpec; } @property ...
imuntil/React
utils/back-after-blur.js
<gh_stars>0 let flag; let timer; const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); let pos = { top: 0, left: 0 }; let scrollingElementName = ''; const reports = () => { if (scrollingElementName) { const { scrollLeft, scrollTop } = document[scrollingElementName]; pos = { top: scrol...
tmexcept/android-lite-http
litehttp/src/main/java/com/litesuits/http/annotation/HttpCacheMode.java
package com.litesuits.http.annotation; import com.litesuits.http.request.param.CacheMode; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @author MaTianyu * @date 2015-04-26 */ @Target(ElementTyp...
djknit/timeclock
client/src/utilities/jobData/wage.js
function areWagesEquivalent(wage_1, wage_2) { // expect wages already processed for output, but NOT processed for earnings calc if (!wage_1 && !wage_2) return true; if (!wage_1 || !wage_2) return false; if ( _hasDiff(w => w.currency) || _hasDiff(w => w.rate.raw) || _hasDiff(w => !!w.overtime) ) re...
farukonfly/java-examples
javase/jdk6/src/main/java/examples/jdk6/gui/InterruptableLongRunningTask.java
<filename>javase/jdk6/src/main/java/examples/jdk6/gui/InterruptableLongRunningTask.java<gh_stars>0 package examples.jdk6.gui; //: gui/InterruptableLongRunningTask.java // Long-running tasks in threads. import javax.swing.*; import static examples.jdk6.net.mindview.util.SwingConsole.*; import java.awt.*; import java.a...
sargunv/better-than-wolves-mod
Src/FCBlockSnowLooseSlab.java
// FCMOD package net.minecraft.src; import java.util.Random; public class FCBlockSnowLooseSlab extends FCBlockSlabFalling { public FCBlockSnowLooseSlab( int iBlockID ) { super( iBlockID, Material.craftedSnow ); setHardness( FCBlockSnowLoose.m_fHardness ); SetShov...
ianemcallister/team-29kettle
public/scripts/directives/list-of-channels.directive.js
<reponame>ianemcallister/team-29kettle ckc.directive('listOfChannels', listOfChannels); /* @ngInject */ function listOfChannels() { //define the directive var directive = { restrict: "AECM", templateUrl: 'assets/views/directives/list-of-channels.htm', replace: true, scope: { ...
AkshayBhanawala/MERN-HackerPolls
Client/src/App.js
import React, { Component } from 'react'; import { Container } from 'reactstrap'; import { Switch, Route } from "react-router-dom"; import Config from './helpers/Config'; import Header from './components/Header.component'; import Login from './components/Login.component'; import User from './components/User/User.compon...
nibblesnbits/slingshot-sagas
src/reducers/appReducer.spec.js
import { expect } from 'chai'; import appReducer from './appReducer'; import * as actions from '../actions/appActions'; describe('App Reducer', () => { it ('should add message on showMessage()', () => { const initialState = { messages: [] }; const action = actions.showMessage('test', 'test', 'su...
yongjhih/hivemq-community-edition
src/main/java/com/hivemq/extensions/client/parameter/ServerInformationImpl.java
/* * Copyright 2019 dc-square GmbH * * 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 agree...
junrrein/ic2017
guia3/borroso.cpp
<reponame>junrrein/ic2017 #include <armadillo> #include <gnuplot-iostream.h> #include <memory> using namespace arma; using namespace std; class Conjunto { public: virtual double membresia(double x) const = 0; virtual void graficar(Gnuplot& gp, double escala = 1) const = 0; virtual double centroide_x() const = 0; ...
onap/aai-aai-common
aai-core/src/main/java/org/onap/aai/dbmap/AAIGraph.java
<gh_stars>1-10 /** * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. * ========================================...
zero-deps/protobuf-scala-macros
proto/src/main/scala-3/Common.scala
package proto import com.google.protobuf.{CodedOutputStream, CodedInputStream} import scala.quoted.* import scala.collection.immutable.ArraySeq import scala.annotation.* trait Common: implicit val qctx: Quotes import qctx.reflect.{*, given} import qctx.reflect.defn.* import report.* extension (x: TypeRepr)...
brndkfr/xmppbot
xmppbot-core/src/main/java/de/raion/xmppbot/filter/MessageBodyContainsFilter.java
package de.raion.xmppbot.filter; /* * #%L * XmppBot Core * %% * Copyright (C) 2012 - 2013 <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.ap...
lechium/iOS1351Headers
usr/libexec/companionappd/SPError.h
<reponame>lechium/iOS1351Headers // // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @interface SPError : NSObject { } + (_Bool)isValidationErrorCode:(long long)arg1; // IMP=0x0...
teerapongt/marketplace-sample-apps
Freshworks-Samples/App-Development-Features/Advanced-Features/oauth2/shopify_oauth_app/app/app.js
$(document).ready(function() { app.initialized().then(function(client) { window.client = client; client.events.on('app.activated', function() { client.request.get('https://<%= oauth_iparams.subdomain %>.myshopify.com/admin/products.json', { isOAuth: true, headers: { 'X-Shopify...
AK391/mindspore
mindspore/ccsrc/plugin/device/cpu/kernel/eigen/matrix_inverse_cpu_kernel.cc
/** * Copyright 2021-2022 Huawei Technologies Co., Ltd * * 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...
mikandi/apptentive-android
apptentive/src/com/apptentive/android/sdk/model/ExtendedData.java
<filename>apptentive/src/com/apptentive/android/sdk/model/ExtendedData.java<gh_stars>0 /* * Copyright (c) 2014, Apptentive, Inc. All Rights Reserved. * Please refer to the LICENSE file for the terms and conditions * under which redistribution and use of this file is permitted. */ package com.apptentive.android.sdk...
macndev/Stntuple
geom/geom/THexCrystalMap.hh
#ifndef Stntuple_base_THexCrystalMap_hh #define Stntuple_base_THexCrystalMap_hh #include "Stntuple/geom/TDiskIndex.hh" #include "Stntuple/geom/TDiskCrystalMap.hh" class THexCrystalMap : public TDiskCrystalMap { protected: // hexagon vertices static TDiskIndex fgPos[6]; public: THexCrystalMap(double Size, d...
RanerL/analyzer
tests/juliet/testcases/CWE191_Integer_Underflow/s03/CWE191_Integer_Underflow__short_rand_sub_52b.c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__short_rand_sub_52b.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-52b.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: rand Set data to result of rand() * GoodSource: Set d...
musasesay/tesseract-ocr.github.io
3.x/a00844.js
<filename>3.x/a00844.js var a00844 = [ [ "MAX_MSG", "a00844.html#aa24597a54a085c6c2c33b64138f09eff", null ], [ "BADERRACTION", "a00844.html#a7e1ef09aa091c698c9fe7e38cae89a1c", null ] ];
RunCoding/runcoding.github.io
develop/back_end/java/base-java/src/main/java/com/runcoding/learn/proxy/ProxyFactory.java
<reponame>RunCoding/runcoding.github.io<filename>develop/back_end/java/base-java/src/main/java/com/runcoding/learn/proxy/ProxyFactory.java package com.runcoding.learn.proxy; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import jav...
Yamakaja/irc-client
client/src/main/java/me/yamakaja/irc/client/network/event/channel/TopicEvent.java
<gh_stars>0 package me.yamakaja.irc.client.network.event.channel; import me.yamakaja.irc.client.chat.ChatChannel; import net.lahwran.fevents.Event; import java.util.Date; /** * Created by Yamakaja on 04.02.17. */ public class TopicEvent extends Event { private ChatChannel channel; public TopicEvent(ChatC...
ikaushikpal/DS-450-python
LinkedList/Reorder List.py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # @param A : head node of linked list # @return the head node in the linked list # Time Complexity : O(n) # Space Complexity : O(n) def reorderList(self, root): ...
columbus9963/kubernetes
test/e2e/framework/deployment/logging.go
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
Neon-FN/Neon-Client
Neon Client/SDK/FN_LobbyGadgetButton_classes.hpp
<gh_stars>0 #pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // WidgetBlueprintGeneratedClass LobbyG...
cohadar/hackerrank
contests/WeekOfCode-18/Rhombographs/backup1.java
<reponame>cohadar/hackerrank import java.util.*; import java.io.*; /* <NAME> */ public class Rhombographs { static void firstCombination(int[] A, int y, int r) { int count = r; int x = 0; while (count > 0) { if (x == y) { A[x++] = -1; } else{ A[x++] = 1; count--; } } while (x < A.lengt...
hadryansalles/ray-tracing-from-the-ground-up
source/Utilities/Vector3D.hpp
#pragma once #include <math.h> #include "Matrix.hpp" class Normal; class Point3D; class Vector3D { public: double x, y, z; public: Vector3D(); // default constructor Vector3D(double a); // constructor Vector3D(double _x, double _y, double _z); // constructor Vector3D(const V...
uk-gov-mirror/hmrc.view-external-guidance-frontend
app/core/models/ocelot/stanzas/Stanza.scala
/* * Copyright 2021 HM Revenue & Customs * * 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...
ael-noblegas/pychron
pychron/processing/analyses/view/magnitude_editor.py
<reponame>ael-noblegas/pychron # =============================================================================== # Copyright 2014 <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 # # ht...
Mr-Devin/GraphicAlgorithm
003_Stochastic Light Culling/ShadowmapPass.cpp
#include "ShadowmapPass.h" #include "Interface.h" #include "Common.h" #include "Utils.h" #include "Sponza.h" #include "Shader.h" #include <GL/glew.h> #include <GLM/gtc/matrix_transform.hpp> #include <GLM/gtc/type_ptr.hpp> CShadowmapPass::CShadowmapPass(const std::string& vPassName, int vExcutionOrder) : IRenderPass(vP...
Benn-Co/refactored-broccoli
rebro/src/java/org/netlib/lapack/Dlazq3.java
package org.netlib.lapack; import org.netlib.util.*; public final class Dlazq3 { public static void dlazq3(int i, intW intw, double ad[], int j, int k, doubleW doublew, doubleW doublew1, doubleW doublew2, doubleW doublew3, intW intw1, intW intw2, intW intw3, boolean flag, intW intw4, doubleW doublew4...
gordon-elliott/glod
src/a_tuin/unittests/metadata/test_args_field_group.py
__copyright__ = 'Copyright(c) <NAME> 2017' """ """ from unittest import TestCase from a_tuin.metadata.field import StringField, IntField from a_tuin.metadata.field_group import DictFieldGroup from a_tuin.metadata.mapping import Mapping from a_tuin.metadata.object_field_group_meta import ObjectFieldGroupBase clas...
RusDavies/indigo
indigo_mac_drivers/ccd_ica/indigo_ica_ptp_canon.h
<filename>indigo_mac_drivers/ccd_ica/indigo_ica_ptp_canon.h // // indigo_ica_canon.h // IndigoApps // // Created by <NAME> on 11/07/2017. // Copyright © 2017 CloudMakers, s. r. o. All rights reserved. // #import <Foundation/Foundation.h> #import "indigo_ica_ptp.h" enum PTPCanonOperationCodeEnum { PTPRequestCod...
semihshn/RentaCar-Desktop
src/application/dataAccess/concretes/HibernateColorDao.java
package application.dataAccess.concretes; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import application.dataAccess.abstracts.ColorDao; import application.entities.concretes.Color; import javafx.collections.FXCollections; import javafx.collections.ObservableList; public ...
mariorojas/MorphoMSO
app/src/main/java/com/morpho/demo/helper/INEFingerVerification.java
<gh_stars>1-10 package com.morpho.demo.helper; import android.content.Context; import android.os.AsyncTask; import android.util.Log; import com.morpho.demo.constant.Constants; import com.morpho.demo.constant.Customer; import com.morpho.demo.constant.MorphoFormApp; import com.morpho.demo.tools.Base64; import com.morph...
wilco/bunq-client
spec/bunq/bunqme_tab_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Bunq::BunqmeTab do let(:client) { Bunq.client } let(:user_id) { '1' } let(:user) { client.user(user_id) } let(:user_url) { "#{client.configuration.base_url}/v1/user/#{user_id}" } let(:account_id) { '2' } let(:monetary_account) { user.monetary_ac...