repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
physikerwelt/incubator-flink
flink-tests/src/test/java/org/apache/flink/test/distributedCache/DistributedCacheTest.java
/** * 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...
bphenriques-interview-challenges/get-file-line-api-challenge
src/test/scala/com/bphenriques/lineserver/client/input/strategies/LocalFileLinesInputSupplierConfigSpec.scala
<reponame>bphenriques-interview-challenges/get-file-line-api-challenge /* * * * © Copyright 2019 <NAME> * * */ package com.bphenriques.lineserver.client.input.strategies import java.io.File import com.bphenriques.helpers.BaseSpec /** * Tests [[LocalFileLinesInputSupplierConfig]]. */ class LocalFileLinesIn...
pmh/elf
lib/language/language.js
<reponame>pmh/elf var elf = require ( "../runtime/runtime" ) , Parser = require ( "../parser/parser" ) , ParserDSL = require ( "../parser/dsl" ) , Lexer = require ( "../lexer/lexer" ) , LexerDSL = require ( "../lexer/dsl" ) , fun = require ( "funargs" ) , Lang...
jonesd/st2x
src/main/java/info/dgjones/st2x/transform/method/intra/TransformStreamContents.java
<gh_stars>0 /** * The MIT License * Copyright (c) 2003 <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 rights * to use, c...
jazzscheme/jazz
lib/jazz.stream/foreign/mac/gstreamer/gstreamer/include/gstreamer-1.0/gst/vulkan/vulkan.h
/* * GStreamer * Copyright (C) 2015 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. *...
hwu25/edk2-platforms
Platform/Intel/Vlv2TbltDevicePkg/Include/Guid/BiosId.h
/*++ Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: ...
slemjet/problems_and_solutions
questions_codility/3.time-complexity/src/test/java/pl/slemjet/kata/tapeequilibrium/FrogJmpTest.java
package pl.slemjet.kata.tapeequilibrium; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class FrogJmpTest { @Test void jumpsTest() { assertEquals(3, FrogJmp.jumps(10, 85, 30)); assertEquals(3, FrogJmp.jumps(10, 85, 25)); } }
lguohan/SDKLT
src/bcma/cint/core/cint_datatypes.h
<gh_stars>1-10 /* * $Id: cint_datatypes.h,v 1.20 2012/03/02 16:21:39 yaronm Exp $ * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the use of the accompanying Broadcom software. Y...
lizwjiang/cgv
cgv-core/src/test/java/org/g4/certificate/Test.java
<filename>cgv-core/src/test/java/org/g4/certificate/Test.java package org.g4.certificate; import org.g4.certificate.facade.CertLogger; import java.io.UnsupportedEncodingException; /** * Created with IntelliJ IDEA. * User: <NAME> * Date: 11/6/13 * Time: 5:08 PM */ public class Test { public static void main(...
renovate-bot/java-gkehub
proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
danr-amz/amazon-ssm-agent
agent/plugins/configurepackage/envdetect/constants/constants.go
package constants // PlatformFamily marks a family of similar operating systems // PlatformFamilyWindows uses Ohai identifier for windows platform family const PlatformFamilyWindows = "windows" // PlatformFamilyDarwin uses Ohai identifier for darwin platform family const PlatformFamilyDarwin = "mac_os_x" // Platfor...
dperl-sol/cctbx_project
mmtbx/refinement/real_space/tst_fit_residue_0H.py
from __future__ import absolute_import, division, print_function import time import mmtbx.refinement.real_space.fit_residues import mmtbx.refinement.real_space pdb_answer = """\ CRYST1 15.538 12.841 13.194 90.00 90.00 90.00 P 1 0 SCALE1 0.064358 0.000000 0.000000 0.00000 SCALE2 0....
usenixatc2021/SoftRefresh_Scheduling
linsched-linsched-alpha/lib/dynamic_queue_limits.c
<gh_stars>0 /* * Dynamic byte queue limits. See include/linux/dynamic_queue_limits.h * * Copyright (c) 2011, <NAME> <<EMAIL>> */ #include <linux/module.h> #include <linux/types.h> #include <linux/ctype.h> #include <linux/kernel.h> #include <linux/dynamic_queue_limits.h> #define POSDIFF(A, B) ((A) > (B) ? (A) - (B...
jojochuang/eventwave
application/heartbeat/scheduler.cc
#include <sys/stat.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <pthread.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <signal.h> #include <string> #include "SysUtil.h" #include "lib/mace.h" #include "mlist.h" #include "RandomUtil.h" #include "mace-macros.h" #...
CodeWall-EStudio/SWall
client/android/TRA/TRA/src/com/swall/tra/AvailableFrame.java
package com.swall.tra; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; im...
valentinvieriu/keyguard-next
src/components/RecoveryWordsInputField.js
/* global Nimiq */ /* global I18n */ /* global AutoComplete */ /* global AnimationUtils */ class RecoveryWordsInputField extends Nimiq.Observable { /** * * @param {number} index */ constructor(index) { super(); this._index = index; /** @type {string} */ this._va...
klueless-io/drawio_dsl
.builders/generators/02-generate-app.rb
<filename>.builders/generators/02-generate-app.rb<gh_stars>0 KManager.action :requires do action do shapes_file = k_builder.target_folders.get_filename(:app, 'config/configuration.json') shapes_configuration = JSON.parse(File.read(shapes_file)) shapes = shapes_configuration['shape'] lookup = shapes['...
Hakerh400/web
projects/trait/action.js
'use strict'; const assert = require('assert'); const Inspectable = require('./inspectable'); const ctorsPri = require('./ctors-pri'); class Action extends Inspectable{ exec(btn, labs){ O.virtual('exec'); } *inspectData(){ return []; } *inspect(){ return new DetailedInfo(`action :: ${this.ctor...
gaoxiaojun/minircp
Plugins/org.blueberry.ui.qt/src/internal/berryMenuServiceFactory.h
/*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...
vill/bemer
lib/bemer/asset_matcher.rb
<reponame>vill/bemer # frozen_string_literal: true module Bemer class AssetMatcher def initialize(loose_app_assets) @loose_app_assets = loose_app_assets end def call(logical_path, filename = nil) filename = Rails.application.assets.resolve(logical_path).to_s if filename.nil? return if...
acsl-mipt/actor-framework
libcaf_core/src/simple_actor_clock.cpp
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
RedaMastouri/marvis
11 - Extra-- sonos snips voice app/tests/services/node/test_device_discovery_service.py
<reponame>RedaMastouri/marvis import mock import pytest import requests from snipssonos.entities.device import Device from snipssonos.services.node.device_discovery_service import NodeDeviceDiscoveryService from snipssonos.exceptions import DeviceParsingException, NoReachableDeviceException @pytest.fixture def conne...
hacfins/spring-boot-2-api
edu-db/src/main/java/com/langyastudio/edu/db/model/UmsMessage.java
package com.langyastudio.edu.db.model; import java.time.LocalDateTime; import com.alibaba.fastjson.annotation.JSONField; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annot...
shmily1012/linux-zns
Linux_Kernel/linux-master/tools/testing/selftests/bpf/benchs/bench_trigger.c
<reponame>shmily1012/linux-zns // SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2020 Facebook */ #include "bench.h" #include "trigger_bench.skel.h" /* BPF triggering benchmarks */ static struct trigger_ctx { struct trigger_bench *skel; } ctx; static struct counter base_hits; static void trigger_validate() { if...
uicodefr/postit
postit-server/src/main/java/com/uicode/postit/postitserver/service/global/GlobalService.java
package com.uicode.postit.postitserver.service.global; import java.util.Optional; import com.uicode.postit.postitserver.dto.IdEntityDto; import com.uicode.postit.postitserver.dto.global.CountLikesDto; import com.uicode.postit.postitserver.dto.global.GlobalStatusDto; import com.uicode.postit.postitserver.exception.fun...
ahakingdom/Rusthon
regtests/asm/asm_hello_rust.py
''' rust inline assembly ''' def test_single_input( a : int ) -> int: let mut b = 0 with asm( outputs=b, inputs=a, volatile=True, clobber='%ebx', alignstack=True ): movl %1, %%ebx; movl %%ebx, %0; return b def test_multi_input( a : int, b : int ) -> int: let mut out = 0 with asm( outputs=out, inputs=(a,b), v...
CNES/resto_client
resto_client/functions/aoi_utils.py
<filename>resto_client/functions/aoi_utils.py # -*- coding: utf-8 -*- """ .. admonition:: License Copyright 2019 CNES 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.apa...
FreeAllegiance/Allegiance-AZ
src/WinTrek/introscreen.cpp
#include "pch.h" #include "regkey.h" #include "training.h" //extern bool CheckNetworkDevices(ZString& strDriverURL); //KGJV test #define ENABLE3DINTROSCREEN ////////////////////////////////////////////////////////////////////////////// // // Intro Screen // ///////////////////////////////////////////////////////////...
TobiasLudwig/boost.simd
test/api/algorithm/replace.cpp
<reponame>TobiasLudwig/boost.simd<filename>test/api/algorithm/replace.cpp //================================================================================================== /* Copyright 2017 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at htt...
ridi/chromium-aw
src/main/java/org/chromium/content/browser/input/ImeAdapterImplJni.java
<reponame>ridi/chromium-aw package org.chromium.content.browser.input; import android.view.KeyEvent; import java.lang.CharSequence; import java.lang.Override; import java.lang.String; import javax.annotation.Generated; import org.chromium.base.JniStaticTestMocker; import org.chromium.base.NativeLibraryLoadedStatus; im...
juliomarcelopicardo/Wolfy2D
src/core/material.cc
/** Copyright <NAME>. 2017-18, all rights reserved. * * @project Wolfy2D - Including JMP scripting language. * @author <NAME> <<EMAIL>> * */ #include "GL/glew.h" #include "core/material.h" #include "core/core.h" #include "imgui/logger_module.h" #include <string> #include <vector> namespace W2D { /***************...
ViBiOh/fibr
pkg/exif/aggregate.go
<reponame>ViBiOh/fibr<gh_stars>10-100 package exif import ( "fmt" "path/filepath" "time" "github.com/ViBiOh/fibr/pkg/provider" ) var ( aggregateRatio = 0.4 levels = []string{"city", "state", "country"} ) // GetAggregateFor return aggregated value for a given directory func (a App) GetAggregateFor(item provid...
autoScript964/script
app_xy3d/src/main/java/com/script/fairy/TeamTask.java
package com.script.fairy; import com.script.opencvapi.FindResult; import com.script.opencvapi.LtLog; import com.script.opencvapi.AtFairyConfig; import com.script.framework.AtFairyImpl; /** * Created by user on 2019/6/3. */ public class TeamTask { public GamePublicFuntion gamePublicFuntion; public FindResul...
Space-Crew/SpaceCraft
client/3d/water/FlowCube.spec.js
<filename>client/3d/water/FlowCube.spec.js import {expect} from 'chai' import {FlowCube} from './FlowCube' describe('FlowCube', () => { /************* * Volume *************/ describe('maxVolumeOfParents', () => { const source1 = new FlowCube({x: 0, y: 0, z: 3}, true) const source2 = new FlowCube({x:...
Git-liuxiaoyu/cloud-hospital-parent
cloud-hospital-parent/cloud-hospital-nacos-parent/drug-service/src/main/java/com/example/drugservice/service/instock/InStockDrugCommand.java
<gh_stars>0 package com.example.drugservice.service.instock; import com.example.drugservice.util.ApplicationContextHolder; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.ToString; import javax.xml.transform.Source; import java.math.BigDecimal; impor...
wyaadarsh/LeetCode-Solutions
Python3/0635-Design-Log-Storage-System/soln.py
ass LogSystem: def __init__(self): self.gra_d = {'Year' : 4, 'Month' : 7, 'Day' : 10, 'Hour' : 13, 'Minute' : 16, 'Second' : 19} self.logs = [] def put(self, id, times...
santosfamilyfoundation/RuinaMain
reducers/PassengerReducer.js
var uuid = require('react-native-uuid'); const initialState = { data: [] } let updatedState; export default function passengerReducer (state=initialState, action) { switch (action.type) { case 'ADDPASSENGER': console.log("add passenger " + action.payload.id); return { ...
MicrohexHQ/liboqs
src/sig/picnic/external/lowmc_pars.h
<reponame>MicrohexHQ/liboqs /* * This file is part of the optimized implementation of the Picnic signature scheme. * See the accompanying documentation for complete details. * * The code is provided under the MIT license, see LICENSE for * more details. * SPDX-License-Identifier: MIT */ #ifndef LOWMC_PARS_...
ogii-test/ddp-study-server
pepper-apis/src/main/java/org/broadinstitute/ddp/util/StudyDataLoader.java
<reponame>ogii-test/ddp-study-server package org.broadinstitute.ddp.util; import static java.util.stream.Collectors.toList; import static org.apache.commons.lang.time.DateUtils.MILLIS_PER_SECOND; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.Instant; import java.time.LocalDate; ...
peniakoff/commercetools-sync-java
src/main/java/com/commercetools/sync/commons/helpers/CustomReferenceResolver.java
package com.commercetools.sync.commons.helpers; import static io.sphere.sdk.types.CustomFieldsDraft.ofTypeIdAndJson; import static io.sphere.sdk.utils.CompletableFutureUtils.exceptionallyCompletedFuture; import static java.lang.String.format; import static java.util.concurrent.CompletableFuture.completedFuture; impor...
zhouchong90/OpenStudio
openstudiocore/src/model/PumpVariableSpeed.cpp
<reponame>zhouchong90/OpenStudio /********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
christopherhein/manager
apis/cloudformation/v1alpha1/stack_types.go
/* Copyright © 2019 AWS Controller 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,...
linbolun-525/GoSword-Admin
app/admin/apis/job.go
package apis import ( "project/app/admin/models/dto" "project/app/admin/service" "project/common/api" "project/utils" "project/utils/app" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "go.uber.org/zap" ) // InsertMenuHandler 查询岗位 // @Summary 查询岗位 // @Description Author:JiaKunLi 2021/02...
Kinjeiro/front-core
src/modules/module-auth/server/subModule/users/user-representation.js
// https://www.keycloak.org/docs-api/7.0/rest-api/index.html#_userrepresentation export const USER_REPRESENTATION_FIELDS = [ 'id', 'createdTimestamp', 'username', 'enabled', 'totp', 'emailVerified', 'firstName', 'lastName', 'email', 'disableableCredentialTypes', 'requiredActions', 'notBefore', ...
theofficialgman/lwjgl3
modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/VkViewport.java
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.vulkan; import javax.annotation.*; import java.nio.*; import org.lwjgl.*; import org.lwjgl.system.*; import static org.lwjgl.system.MemoryUtil.*; import static org...
L-VE/knooppuntnet
server/src/main/scala/kpn/api/common/LocationPage.scala
package kpn.api.common import kpn.api.common.common.Ref case class LocationPage(routeRefs: Seq[Ref])
wangzmgit/go-danmu
controller/CollectionController.go
package controller import ( "strconv" "github.com/gin-gonic/gin" "kuukaa.fun/danmu-v4/dto" "kuukaa.fun/danmu-v4/response" "kuukaa.fun/danmu-v4/service" ) /********************************************************* ** 函数功能: 创建合集 ** 日 期: 2021年11月19日14:48:29 ** 版 本: 3.6.0 *************************************...
godmonth/godmonth-status2
builder/src/main/java/com/godmonth/status2/builder/binding/BindingListBuilder.java
<reponame>godmonth/godmonth-status2<filename>builder/src/main/java/com/godmonth/status2/builder/binding/BindingListBuilder.java package com.godmonth.status2.builder.binding; import com.godmonth.status2.analysis.impl.BindingKeyUtils; import com.godmonth.status2.annotations.binding.ModelBinding; import com.google.common...
clayne/fast_io
include/fast_io_core_impl/concepts/parse_code.h
#pragma once namespace fast_io { enum class parse_code { ok = 0, end_of_file = 1, partial = 2, invalid = 3, overflow = 4 }; template<typename Iter> struct parse_result { using iterator = Iter; iterator iter; parse_code code; }; }
uyaki/uyaki-cloud
uyaki-cloud-microservices/uyaki-cloud-microservices-auth/src/main/java/com/uyaki/cloud/microservices/auth/mapper/om/RoleMapper.java
<filename>uyaki-cloud-microservices/uyaki-cloud-microservices-auth/src/main/java/com/uyaki/cloud/microservices/auth/mapper/om/RoleMapper.java<gh_stars>1-10 package com.uyaki.cloud.microservices.auth.mapper.om; import com.uyaki.cloud.microservices.auth.model.om.Role; public interface RoleMapper { int deleteByPrima...
HumphreyHCB/SOMns-vscode
server/org.eclipse.lsp4j-gen/org/eclipse/lsp4j/LocationLink.java
<filename>server/org.eclipse.lsp4j-gen/org/eclipse/lsp4j/LocationLink.java /** * Copyright (c) 2016-2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, * or...
Omnicrola/voxel-cascade
src/main/java/com/omnicrola/voxel/entities/control/fx/ParticleEffectControlFactory.java
<filename>src/main/java/com/omnicrola/voxel/entities/control/fx/ParticleEffectControlFactory.java package com.omnicrola.voxel.entities.control.fx; import com.jme3.math.Vector3f; import com.jme3.scene.Spatial; import com.omnicrola.voxel.data.units.UnitDefinitionRepository; import com.omnicrola.voxel.entities.Effect; im...
Andreas237/AndroidPolicyAutomation
ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/google/android/gms/internal/ads/zzasv.java
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.internal.ads; import android.graphics.Canvas; import android.view.MotionEvent; import android.webkit.ValueCallback; import com.google...
CRamsan/auraxiscontrolcenter
app/src/main/java/com/cesarandres/ps2link/fragments/FragmentMainMenu.java
<gh_stars>1-10 package com.cesarandres.ps2link.fragments; import android.app.AlertDialog; import android.app.Dialog; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.Inte...
miguel567/nftgallery
node_modules/@walletconnect/browser-utils/dist/cjs/index.js
<reponame>miguel567/nftgallery "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("./browser"), exports); tslib_1.__exportStar(require("./json"), exports); tslib_1.__exportStar(require("./local"), exports); tslib_1.__exportStar(req...
HarshaNalluru/gdg
node_modules/assertions/test/assert.expresso.js
//asserters.expresso.js var asserters = require('../') , assert = require('assert') var deleted_a = {a: true} delete deleted_a.a var a,b,c,d,e var examples = { ok : { pass : [[1], [2], [-1], ['sadf'], [true], [[]], [{}]] , fail : [[0],[false],[null],[undefined]] } , equal : { pass : [ [1,1], [2,2.0]...
ice1000/la-clojure-devkt
src/org/jetbrains/plugin/devkt/clojure/psi/stubs/api/ClNsStub.java
package org.jetbrains.plugin.devkt.clojure.psi.stubs.api; import org.jetbrains.kotlin.com.intellij.psi.stubs.IStubElementType; import org.jetbrains.kotlin.com.intellij.psi.stubs.NamedStub; import org.jetbrains.kotlin.com.intellij.psi.stubs.StubBase; import org.jetbrains.kotlin.com.intellij.psi.stubs.StubElement; impor...
kaczmarj/grand-challenge.org
app/grandchallenge/components/migrations/0008_alter_componentinterfacevalue_file.py
<gh_stars>100-1000 # Generated by Django 3.2.9 on 2021-11-26 13:45 from django.db import migrations, models import grandchallenge.components.models import grandchallenge.core.storage import grandchallenge.core.validators class Migration(migrations.Migration): dependencies = [("components", "0007_auto_20211116_...
kmuellerjones/ohNetGenerated
OpenHome/Net/Bindings/Cpp/Device/Providers/DvAvOpenhomeOrgTime1Std.cpp
#include "DvAvOpenhomeOrgTime1.h" #include <OpenHome/Types.h> #include <OpenHome/Net/Private/DviService.h> #include <OpenHome/Net/Private/Service.h> #include <OpenHome/Net/Private/FunctorDviInvocation.h> #include <OpenHome/Net/Cpp/DvInvocation.h> #include <OpenHome/Net/Private/DviStack.h> using namespace OpenHome; usi...
Jorgelig/hoshinplan
config/initializers/decimal_validator.rb
class DecimalValidator < Apipie::Validator::BaseValidator def validate(value) self.class.validate(value) end def self.build(param_description, argument, options, block) if argument == :decimal self.new(param_description) end end def description "Must be a decimal number." end def ...
McLeodMoores/starling
projects/engine/src/test/java/com/opengamma/engine/value/ComputedValueTest.java
<reponame>McLeodMoores/starling /** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.engine.value; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertNotNull; import or...
lorint/duty_free
spec/test_app/config/initializers/duty_free.rb
<reponame>lorint/duty_free # frozen_string_literal: true ::ActiveSupport::Deprecation.silence do # ::DutyFree.config.track_associations = true end
sksingh329/automationCoders
src/test/java/apps/web/herokuapp/NewWindowTest.java
<gh_stars>1-10 package apps.web.herokuapp; import flows.web.herokuapp.FrameFlow; import flows.web.herokuapp.WindowFlow; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Listeners; import org.testng.annotations.Test; import utils.HandlePropertiesFile; ...
laik/liqo
pkg/liqonet/overlay/doc.go
// Package overlay contains the overlays implementations supported in liqo. package overlay
vinodronold/fivefrets-next-ui
src/app/constants/routes.js
export const home = { href: () => '/', as: () => '/' } export const play = { href: id => `/play?id=${id}`, as: id => `/p/${id}` } export const browse = { href: start => `/browse?start=${start}`, as: start => `/b/${start}` } export const login = { href: () => '/login', as: () => '/l' }
hefen1/chromium
content/browser/indexed_db/indexed_db_transaction.cc
<reponame>hefen1/chromium<filename>content/browser/indexed_db/indexed_db_transaction.cc // Copyright (c) 2013 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 "content/browser/indexed_db/indexed_db_transaction.h"...
fmoraw/NS
main/source/mod/AvHBaseBuildable.cpp
//======== (C) Copyright 2001 <NAME> All rights reserved. ========= // // The copyright to the contents herein is the property of <NAME>. // The contents may be used and/or copied only with the written permission of // <NAME>, or in accordance with the terms and conditions stipulated in // the agreement/contract u...
awslabs/aws-soter
src/com/amazon/soter/checker/search/DFS.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.amazon.soter.checker.search; import com.amazon.soter.checker.SearchConfiguration; import com.amazon.soter.checker.Strategy; import com.amazon.soter.checker.tasks.Task; import com.amazon.soter.check...
ArriolaHarold2001/addedlamps
build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/com/mojang/math/Vector3d.java
<filename>build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/com/mojang/math/Vector3d.java package com.mojang.math; public class Vector3d { public double x; public double y; public double z; public Vector3d(double p_86218_, double p_86219_, ...
densogiaichned/serenity
Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp
<reponame>densogiaichned/serenity<gh_stars>1-10 /* * Copyright (c) 2022, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibWeb/Bindings/AudioConstructor.h> #include <LibWeb/Bindings/HTMLAudioElementPrototype.h> #include <LibWeb/Bindings/HTMLAudioElementWrapper.h> #include <LibWeb/Bindings/...
HanumantappaBudihal/LeetCode-Solutions
3.Topicwise Questions/9. Palindrome Number.cpp
<gh_stars>0 class Solution { public: bool isPalindrome(int x) { int input=x; long reverseNumber=0; while(x>0) { reverseNumber=(reverseNumber*10)+(x%10); x=x/10; cout<<x<<" "; } if(input!=reverseNumber) return false; c...
itzg/tsdb-cassandra
src/main/java/com/rackspace/ceres/app/model/TsdbQueryRequest.java
package com.rackspace.ceres.app.model; import java.util.List; import lombok.Data; @Data public class TsdbQueryRequest { String metric; String downsample; List<TsdbFilter> filters; }
gdky005/KaiDunPro
app/src/main/java/com/kaidun/pro/bean/CourseSchedule.java
package com.kaidun.pro.bean; import java.util.List; /** * Created by Administrator on 2018/2/5. */ public class CourseSchedule { /** * message : 成功 * result : [{"bookCode":"4","courseSortName":"ABC","listingRate":"0%","readingRate":"0%","speakingRate":"0%","writingRate":"0%"}] * statusCode : 100...
suluner/tencentcloud-sdk-cpp
thpc/include/tencentcloud/thpc/v20211109/ThpcClient.h
<reponame>suluner/tencentcloud-sdk-cpp /* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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...
lattwood/datadog-agent
pkg/collector/corechecks/system/winproc/winproc_windows.go
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. //go:build windows // +build windows package winproc import ( "github.c...
debashish05/competitive_programming
codeforces/109-A-33848292.cpp
<filename>codeforces/109-A-33848292.cpp #include<bits/stdc++.h> #define ll long long int #define loop(k) for(i=0;i<k;++i) #define loop2(k,l) for(j=k;j<l;++j) #define mod 1000000007 using namespace std; int main() { std::ios_base::sync_with_stdio(false);cin.tie(NULL); ll t=1,i=0,j=0,k=0; //cin>>...
dudetheduck/curso-web-moderno
array/exercicios/ex05.js
// Crie uma função que receba dois números e retorne se o primeiro é maior ou igual ao segundo. function maiorOuIgual(n1, n2) { if (typeof n1 != typeof n2) { return false } else { return n1 >= n2 } } console.log(maiorOuIgual(0, 0)) console.log(maiorOuIgual(0, "0")) console.log(maiorOuIgual...
MarkG/java-oss-lib
src/test/java/com/trendrr/oss/tests/TimeAmountTests.java
/** * */ package com.trendrr.oss.tests; import java.io.UnsupportedEncodingException; import junit.framework.Assert; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.junit.Test; import com.trendrr.oss.TimeAmount; import com.trendrr.oss.Timeframe; import com.trendrr.o...
Runnable/api-client
test/unit-route.js
'use strict'; var expect = require('chai').expect; var sinon = require('sinon'); var User = require('../lib/models/user'); var Route = require('../lib/models/user/route'); var mockClient = { post: sinon.spy(), patch: sinon.spy(), del: sinon.spy() }; var userContentDomain = 'runnableapp.com'; var modelOpts = { ...
OpenEstate/OpenEstate-IS24-REST
Core/src/main/jaxb/org/openestate/is24/restapi/xml/common/FacilityType.java
package org.openestate.is24.restapi.xml.common; import javax.annotation.Generated; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for FacilityType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * ...
pja35/LogicGates-Last
newdoc/html/search/all_14.js
<gh_stars>1-10 var searchData= [ ['xor',['XOR',['../class_x_o_r.html',1,'']]] ];
atombrella/Dawa
packages/server/apiSpecification/ejerlav/sqlModel.js
<filename>packages/server/apiSpecification/ejerlav/sqlModel.js "use strict"; const nameAndKey = require('./nameAndKey'); const sqlParameterImpl = require('../common/sql/sqlParameterImpl'); const parameters = require('./parameters'); const sqlUtil = require('../common/sql/sqlUtil'); const assembleSqlModel = sqlUtil.ass...
Dr-Turtle/DRG_ModPresetManager
Source/FSDEngine/Public/SDFRandomizeTransform.h
<reponame>Dr-Turtle/DRG_ModPresetManager<filename>Source/FSDEngine/Public/SDFRandomizeTransform.h<gh_stars>1-10 #pragma once #include "CoreMinimal.h" #include "SDFSingleChildBase.h" #include "SDFRandomizeTransformProperties.h" #include "SDFRandomizeTransform.generated.h" UCLASS(BlueprintType) class USDFRandomizeTransf...
makeitrealcamp/top-v12
node/express-sequelize/sequelize/index.js
const { Sequelize } = require('sequelize'); const { applyExtraSetup } = require('./extra-setup'); // In a real app, you should keep the database connection URL as an environment variable. // But for this example, we will just use a local SQLite database. // const sequelize = new Sequelize(process.env.DB_CONNECTION_URL...
zhangchuanchuan/DesignMode
com/stream/visitor/common/Element.java
<gh_stars>0 public abstract class Element { public abstract void accept(Visitor v); }
wayxzz/leet-code-questions
test/623_add-one-row-to-tree.test.js
/* * * 给定一个二叉树,根节点为第1层,深度为 1。在其第&nbsp;d&nbsp;层追加一行值为&nbsp;v&nbsp;的节点。 * * 添加规则:给定一个深度值 d (正整数),针对深度为 d-1 层的每一非空节点 N,为 N 创建两个值为&nbsp;v&nbsp;的左子树和右子树。 * * 将&nbsp;N 原先的左子树,连接为新节点&nbsp;v 的左子树;将&nbsp;N 原先的右子树,连接为新节点&nbsp;v 的右子树。 * * 如果 d 的值为 1,深度 d - 1 不存在,则创建一个新的根节点 v,原先的整棵树将作为 v 的左子树。 * * 示例 1: * * * 输入...
vitorbaraujo/libpitaya
src/pc_mutex.h
<filename>src/pc_mutex.h /** * Copyright (c) 2014,2015 NetEase, Inc. and other Pomelo contributors * MIT Licensed. */ #ifndef PC_MUTEX_H #define PC_MUTEX_H #include <assert.h> /* * pc_mutex_t is recursive */ #ifdef _WIN32 #include <windows.h> typedef CRITICAL_SECTION pc_mutex_t; static __inline void pc_mutex...
aagatsapkota/alexa-skill
src/js-utils/display.js
<gh_stars>0 import moment from 'moment-timezone' import { zdColorWhite } from '@zendeskgarden/css-variables' const semver = require('semver') const equals = require('fast-deep-equal') // LOCAL FUNCTIONS const dateStartsWith = (value, comparison) => { return stringStartsWith( [ moment(value).format('MDYY'...
orzjs/koa-blog
server/routes/blog/index.js
const apiBlog = require('./controller'); const path = require('path'); const fs = require('fs-extra'); const multer = require('koa-multer'); const config = require('../../config/config'); const Settings = require('../../models').settings; const uploadPath = config.uploadPath; const storageImages = multer.diskStorage(...
78182648/blibli-go
app/admin/ep/marthe/dao/mysql_bugly_version.go
package dao import ( "database/sql" "fmt" "go-common/app/admin/ep/marthe/model" "go-common/library/ecode" pkgerr "github.com/pkg/errors" ) const ( _versionInnerJoinProjectSql = "select a.id,a.version,a.bugly_project_id,a.action,a.task_status,a.update_by,a.ctime,a.mtime,b.project_name,b.exception_type fro...
Freddan-67/V3DLib
Lib/Source/Functions.h
#ifndef _V3DLIB_SOURCE_FUNCTIONS_H_ #define _V3DLIB_SOURCE_FUNCTIONS_H_ #include "Int.h" #include "Float.h" #include "StmtStack.h" // StackCallback namespace V3DLib { namespace functions { // These exposed for unit tests void Return(Int const &val); void Return(Float const &val); IntExpr create_function_snippet(Stac...
thyhero/alpha
alpha-db/alpha-db-es6/src/main/java/com/geektcp/alpha/db/es6/dao/EsSearchDao.java
<gh_stars>1-10 package com.geektcp.alpha.db.es6.dao; import com.geektcp.alpha.db.es6.bean.StoreURL; import com.geektcp.alpha.db.es6.model.EsQuery; import com.geektcp.alpha.db.es6.model.EsQueryResult; import java.util.List; /** * @author tanghaiyang on 2019/5/7. */ public interface EsSearchDao { EsQueryResult ...
CasualPokePlayer/ares
hiro/windows/sizable.hpp
<filename>hiro/windows/sizable.hpp<gh_stars>100-1000 #if defined(Hiro_Sizable) namespace hiro { struct pSizable : pObject { Declare(Sizable, Object) virtual auto minimumSize() const -> Size; virtual auto setCollapsible(bool collapsible) -> void; virtual auto setGeometry(Geometry geometry) -> void; }; } #en...
Robbbert/messui
src/mame/drivers/monon_color.cpp
<filename>src/mame/drivers/monon_color.cpp // license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** Monon Color - Chinese handheld see https://gbatemp.net/threads/the-monon-color-a-new-video-game-console-from-china.467788/ https://twit...
kanaabe/force
src/desktop/apps/artsy_primer/server.js
<reponame>kanaabe/force<gh_stars>0 import * as routes from './routes' import express from 'express' import path from 'path' import { resize, crop } from '../../components/resizer' import { toSentence } from 'underscore.string' const app = express() app.set('views', path.resolve(__dirname, 'templates')) app.set('view e...
thundergolfer/uni
machine_learning/applications/spam/a_plan_for_spam/mail_server.py
<filename>machine_learning/applications/spam/a_plan_for_spam/mail_server.py """ This is the 'main' SMTP mail server that will interact with a Spam-detection API to detect Spam email and filter it out of client's inboxes. """ import asyncore import email import email.errors import email.header import email.policy impor...
guoxiangran/main
src/com/tspeiz/modules/util/weixin/GetWxOrderno.java
<reponame>guoxiangran/main package com.tspeiz.modules.util.weixin; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.ConnectException; import java.net.URL; import java...
BoniLindsley/pymap
test/server/test_admin_auth.py
from collections.abc import Mapping import pytest from grpclib.testing import ChannelFor from pymapadmin.grpc.admin_grpc import SystemStub, UserStub from pymapadmin.grpc.admin_pb2 import SUCCESS, FAILURE, UserData, \ LoginRequest, GetUserRequest, SetUserRequest, DeleteUserRequest from pymap.admin.handlers.system...
gaoweibupt/PaddleDTX
crypto/core/machine_learning/logic_regression/mpc_vertical/regression.go
<filename>crypto/core/machine_learning/logic_regression/mpc_vertical/regression.go // Copyright (c) 2021 PaddlePaddle 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 Licen...
danielgarm/C-Bash-Projects
Shared/Tests/3hilo.c
#define MAX_BUF 3 #define PROD 1000 sem_t elementos; sem_t huecos; int buffer[MAX_BUF]; int cons, prod = 0; void main(void){ pthread_t th1, th2, th3; sem_init(&elementos, 0, 0); sem_init(&huecos, 0, MAX_buffer); sem_init(&elementos, 0, 0); }