repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
decilio4g/delicias-do-tchelo
node_modules/@styled-icons/entypo/Upload/Upload.esm.js
<gh_stars>0 import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Upload = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React...
SemihBKGR/hibou
web-app/src/main/java/com/smh/hibouwebapp/jwt/UserToken.java
<reponame>SemihBKGR/hibou package com.smh.hibouwebapp.jwt; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class UserToken { private String id; private String username; }
creoii/Custom
src/main/java/creoii/custom/mixin/block/CactusBlockMixin.java
package creoii.custom.mixin.block; import creoii.custom.util.tags.EntityTypeTags; import creoii.custom.util.tags.ItemTags; import net.minecraft.block.BlockState; import net.minecraft.block.CactusBlock; import net.minecraft.entity.Entity; import net.minecraft.entity.ItemEntity; import net.minecraft.util.math.BlockPos; ...
Jcoderre/Rocket-Elevator-Foundation
app/views/admin_users/show.json.jbuilder
json.partial! "admin_users/admin_user", admin_user: @admin_user
joaocarvalhop/exerciciosUdemy
src/lambdas/Produto.java
<gh_stars>0 package lambdas; public class Produto { final String nome; final double preco; final double desconto; public Produto(String nome, double preco, double desconto) { this.nome = nome; this.preco = preco; this.desconto = desconto; } public String toString() { double precofinal = preco * (1 -...
darcy/aws-lambda-stream
test/unit/connectors/eventbridge.test.js
import 'mocha'; import { expect } from 'chai'; import sinon from 'sinon'; import AWS from 'aws-sdk-mock'; import Connector from '../../../src/connectors/eventbridge'; import { debug } from '../../../src/utils'; describe('connectors/eventbridge.js', () => { afterEach(() => { AWS.restore('EventBridge'); }); ...
lakodali/osc-core
osc-ui/src/main/java/org/osc/core/broker/view/vc/UpdateVirtualizationConnectorWindow.java
<reponame>lakodali/osc-core /******************************************************************************* * Copyright (c) Intel Corporation * Copyright (c) 2017 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
nithu0115/amazon-vpc-resource-controller-k8s
pkg/node/manager.go
// Copyright Amazon.com Inc. or its affiliates. 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. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" file ...
limaofeng/jfantasy-framework
core/src/test/java/org/jfantasy/framework/crypto/RSAUtilTest.java
<gh_stars>1-10 package org.jfantasy.framework.crypto; import java.security.KeyPair; import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPublicKey; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.junit.jupiter.api.BeforeEach; import org.junit...
bhagyasakalanka/wso2-axis2
modules/clustering/src/org/apache/axis2/clustering/state/commands/StateClusteringCommandCollection.java
<gh_stars>1-10 /* * 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 * "Li...
ayresmajor/Curso-python
Aula Python/Aula 16 ex4.py
<reponame>ayresmajor/Curso-python a = (1, 2, 9) b = (5, 6, 9, 5415) c = a + b d = b + a print(a) print(b) print(c) print(d) print(c.count(9)) #count conta quantas vezes aparece determinado elemento print(c.index(5)) #index indica a posição de determinado elemento print(c.index(9,3))
monarch-initiative/phenol
phenol-core/src/test/java/org/monarchinitiative/phenol/ontology/testdata/hpo/ToyHpoAnnotation.java
<reponame>monarch-initiative/phenol package org.monarchinitiative.phenol.ontology.testdata.hpo; import com.google.common.collect.ComparisonChain; import org.monarchinitiative.phenol.ontology.data.TermAnnotation; import org.monarchinitiative.phenol.ontology.data.TermId; import javax.annotation.Nonnull; public class T...
Will33ELS/FastAsyncWorldEdit
worldedit-core/src/main/java/com/boydti/fawe/object/extent/TransformExtent.java
<reponame>Will33ELS/FastAsyncWorldEdit package com.boydti.fawe.object.extent; import com.sk89q.worldedit.WorldEditException; import com.sk89q.worldedit.extent.Extent; import com.sk89q.worldedit.extent.transform.BlockTransformExtent; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.MutableB...
stevedanomodolor/Simulation-and-control-of-BLDC-motor-with-methods-on-data-transfer-and-visualization
Multithreaded-software/src/algorithms/motor_simulation_control_functions.c
// Software based on http://www.sosw.poznan.pl/tfitzer/pmsm/ // Copyright <NAME> 17/05/2020 Ku leuven UPC EEBE // Project: Bachelor thesis- Simulaton and control of a BLDC motor with methods on data transfer and visualitzation // Tutor : <NAME> // Licensed under the Apache License, Version 2.0 (the "License"); // you m...
gopherli/leetcode_go
jianzhi_offer/offer_39_test.go
package jianzhi_offer import ( "log" "testing" ) func TestOffer39(t *testing.T) { nums := []int{1, 2, 3, 2, 2, 2, 5, 4, 2} mostNum := MajorityElement(nums) log.Printf("数组%v最多的元素mostNum:%d", nums, mostNum) }
PavanKishore21/probability
tensorflow_probability/python/internal/tensor_util.py
# Copyright 2018 The TensorFlow Probability 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 o...
vakuum/gosu-lang-old
gosu-core-api/src/main/java/gw/lang/parser/IForwardingFunctionSymbol.java
/* * Copyright 2013 <NAME>, Inc. */ package gw.lang.parser; public interface IForwardingFunctionSymbol { }
dbsteward/dbsteward-go
lib/format/pgsql8/diff_views.go
<filename>lib/format/pgsql8/diff_views.go package pgsql8 import ( "github.com/dbsteward/dbsteward/lib" "github.com/dbsteward/dbsteward/lib/model" "github.com/dbsteward/dbsteward/lib/output" ) type DiffViews struct { } func NewDiffViews() *DiffViews { return &DiffViews{} } // TODO(go,core) lift some of these to ...
javagossip/armeria
zipkin/src/test/java/com/linecorp/armeria/server/tracing/TracingServiceTest.java
/* * Copyright 2016 LINE Corporation * * LINE Corporation 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.apache.org/licenses/LICENSE-2.0 * * Unless re...
JasonSWFu/speechbrain
tests/unittests/test_checkpoints.py
import pytest def test_checkpointer(tmpdir): from speechbrain.utils.checkpoints import Checkpointer import torch class Recoverable(torch.nn.Module): def __init__(self, param): super().__init__() self.param = torch.nn.Parameter(torch.tensor([param])) def forward(se...
COS301-SE-2021/GeoCode
backend/src/main/java/tech/geocodeapp/geocode/user/service/UserServiceImpl.java
<filename>backend/src/main/java/tech/geocodeapp/geocode/user/service/UserServiceImpl.java package tech.geocodeapp.geocode.user.service; import org.springframework.stereotype.Service; import tech.geocodeapp.geocode.collectable.repository.CollectableRepository; import tech.geocodeapp.geocode.collectable.request.CreateCo...
mynameisrufus/wedviteapp
app/validators/wedding_wording_validator.rb
<filename>app/validators/wedding_wording_validator.rb class WeddingWordingValidator < ActiveModel::Validator def validate record wording = record.send(options[:attribute]) record.errors[options[:attribute]] << error_message unless test wording, guest_tag_test end def test wording, test !(wordi...
talsewell/cerberus
tests/gcc-torture/breakdown/not_supported/simd/pr65427.c
#include "cerberus.h" /* PR tree-optimization/65427 */ typedef int V __attribute__ ((vector_size (8 * sizeof (int)))); V a, b, c, d, e, f; __attribute__((noinline, noclone)) void foo (int x, int y) { do { if (x) d = a ^ c; else d = a ^ b; } while (y); } int main () { a = (V) { 1, 2, 3, 4,...
ytree-project/ytree
ytree/data_structures/save_arbor.py
<filename>ytree/data_structures/save_arbor.py """ save_arbor supporting functions """ import json import numpy as np import os import types from unyt import uconcatenate from yt.frontends.ytdata.utilities import save_as_dataset from ytree.utilities.io import ensure_dir from ytree.utilities.logger import ytreeLogge...
google-ar/chromium
chrome/browser/browsing_data/cache_counter.cc
<reponame>google-ar/chromium<filename>chrome/browser/browsing_data/cache_counter.cc<gh_stars>100-1000 // Copyright (c) 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/browsing_data/cache_cou...
OscarRPR/samurai-reborn
ModelingProject1/SourceCode/Input/Player/Controller.h
<reponame>OscarRPR/samurai-reborn<gh_stars>1-10 #pragma once #include <GameInputContext.h> #include <RawInputConstants.h> #include <GameInputStructs.h> namespace InputMapping { class Controller { public: Controller(){}; ~Controller(); int getPlayerID() { return playerID; } void s...
KnowingNothing/akg-test
src/pass/math_intrin_rewrite.cc
/** * Copyright 2019-2021 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...
dbuschman7/collection-of-things
parsers/src/main/scala/me/lightspeed7/parsers/simpleScala/package.scala
package me.lightspeed7.parsers import scala.util._ package object simpleScala { // // Parser Trait // /////////////////////// trait Parser[+A] extends (Stream[Character] => Result[A]) { outer => def ~[B](that: => Parser[B]) = new SequenceParser(this, that) def |[B](that: => Parser[B]) = new DisParse...
d8corp/innet-server
lib/plugins/cms/index.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var cms = require('./cms.js'); exports.cms = cms.cms;
jamestunnell/musicality
spec/composition/model/pitch_class_spec.rb
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') include PitchClasses describe PitchClass do it 'should define the MOD constant' do expect(PitchClass.constants).to include(:MOD) end describe '.from_i' do it 'should return the given integer % PitchClass::MOD' do expect(Pitch...
cyrex562/Net-Loom
src/lowpan6.cpp
<filename>src/lowpan6.cpp /** * @file * * 6LowPAN output for IPv6. Uses ND tables for link-layer addressing. Fragments packets to 6LowPAN units. * * This implementation aims to conform to IEEE 802.15.4(-2015), RFC 4944 and RFC 6282. * @todo: RFC 6775. */ /* * Copyright (c) 2015 Inico Technologies Ltd. * All r...
rRaDuCaN/our-awesome-mart
our-awesome-mart-demo-client/src/components/Home/NavigationBar/SearchFormSupplements/InputSearch.js
import React from 'react' import './InputSearch.css' export default function InputSearch() { return ( <input type="text" placeholder="Search" name="search" aria-label="Search" autoCapitalize="off" autoComplete="off" autoCorrect="off" className...
2772263973/PTPDroid
soot-infoflow/src/soot/jimple/infoflow/data/pathBuilders/DefaultPathBuilderFactory.java
<gh_stars>1-10 package soot.jimple.infoflow.data.pathBuilders; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.TimeUnit; import soot.jimple.infoflow.InfoflowConfiguration.PathBuildingAlgorithm; import soot.jimple.infoflow.InfoflowConfiguration.Pa...
DYevhen/dashboard
core/src/main/java/com/exadel/core/servlets/ImportNewsServlet.java
<reponame>DYevhen/dashboard package com.exadel.core.servlets; import com.exadel.core.services.PageService; import com.exadel.core.services.RssImporter; import lombok.extern.slf4j.Slf4j; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.SlingHttpServletResponse; import org.apache.sling.ap...
pierre/collector
src/test/java/com/ning/metrics/collector/MockEvent.java
<reponame>pierre/collector /* * Copyright 2010-2011 Ning, Inc. * * Ning 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.apache.org/licenses/LICENSE-2.0...
jaiskid/LeetCode-Solutions
C++/number-of-islands-ii.cpp
// Time: O(klog*k) ~= O(k), k is the length of the positions // Space: O(k) // Using unordered_map. class Solution { public: vector<int> numIslands2(int m, int n, vector<pair<int, int>>& positions) { vector<int> numbers; int number = 0; const vector<pair<int, int>> directions{{0, -1}, {0, ...
gyoisamurai/GyoiBoard
atd/migrations/0011_auto_20210329_2236.py
# Generated by Django 3.1.7 on 2021-03-29 13:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('atd', '0010_scanresult_attack_method'), ] operations = [ migrations.RenameField( model_name='scanresult', old_name='task_id'...
CoenRijsdijk/Bytecoder
classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/com/sun/imageio/plugins/gif/GIFStreamMetadataFormatResources.java
/* * Copyright (c) 2001, 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
ngayngo9x/q-micro-thrift-demo
src/main/java/com/pheu/thrift/example/EchoHandler.java
<filename>src/main/java/com/pheu/thrift/example/EchoHandler.java<gh_stars>0 package com.pheu.thrift.example; import org.apache.thrift.TException; import com.pheu.example.TestThriftService; public class EchoHandler implements TestThriftService.Iface { private int port; public EchoHandler(int port) { this.port =...
LaudateCorpus1/nerve-2
nerve/quotation/src/main/java/network/nerve/quotation/util/HttpRequestUtil.java
package network.nerve.quotation.util; import io.nuls.core.model.StringUtils; import io.nuls.core.parse.JSONUtils; import network.nerve.quotation.model.bo.Chain; import org.apache.http.HttpEntity; import org.apache.http.HttpStatus; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.method...
davido/closure-templates
java/src/com/google/template/soy/exprtree/FunctionNode.java
/* * Copyright 2008 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 ...
idjevm/popcorn-time-desktop
test/e2e/HomePage.e2e.js
import { Selector } from 'testcafe'; import { BASE_URL, getPageTitle, getPageUrl, cardlistSelector, cardSelector, scrollBottom, navigateTo, clearConfigs } from './helpers'; fixture`Home Page`.page(BASE_URL).beforeEach(() => clearConfigs()); test('it should have the expected title', async t => { awai...
rgarner/beis-report-official-development-assistance
app/presenters/external_income_presenter.rb
<filename>app/presenters/external_income_presenter.rb class ExternalIncomePresenter < SimpleDelegator def amount ActionController::Base.helpers.number_to_currency(super, unit: "£") end def oda_funding super ? "Yes" : "No" end end
CristianeMayara/QuizAdmReact
quiz_adm/src/views/User/UserEdit/UserEdit.js
import React, { Component } from "react"; import { Col, Row, Card, Form, Input, Label, Button, CardBody, FormGroup, CardFooter, CardHeader } from "reactstrap"; import { connect } from "react-redux"; import { thunkEditUser, thunkFetchUser } from "../../../actions/User/UserThunk"; class UserEdit ex...
darrowcoucla/libraryweb-site-sahil
www/sites/all/modules/contrib/references_dialog/js/references-dialog.js
(function ($) { var $window = $(window); Drupal.behaviors.referencesDialog = { attach: function (context, settings) { // Add appropriate classes on all fields that should have it. This is // necessary since we don't actually know what markup we are dealing with. if (typeof settings.Reference...
zhangkn/iOS14Header
System/Library/Frameworks/MediaPlayer.framework/MPMediaKitEntityTranslatorContext.h
<filename>System/Library/Frameworks/MediaPlayer.framework/MPMediaKitEntityTranslatorContext.h /* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:39:50 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/MediaPlayer.f...
ppngiap/cppstdlib
string/stringiter1.cpp
<filename>string/stringiter1.cpp<gh_stars>10-100 /* The following code example is taken from the book * "The C++ Standard Library - A Tutorial and Reference, 2nd Edition" * by <NAME>, Addison-Wesley, 2012 * * (C) Copyright <NAME> 2012. * Permission to copy, use, modify, sell and distribute this software * is gran...
chiayuexian/iconex_android
iconex/src/main/java/foundation/icon/iconex/dialogs/TitleMsgDialog.java
package foundation.icon.iconex.dialogs; import android.app.Dialog; import android.content.Context; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import androidx.annotation.NonNull; import android.view.View; import android.widget.Button; import android.widget.T...
disrupted/Trakttv.bundle
Trakttv.bundle/Contents/Libraries/Shared/plugin/core/libraries/tests/cryptography_.py
from plugin.core.libraries.tests.core.base import BaseTest class Cryptography(BaseTest): name = 'cryptography' optional = True @staticmethod def test_import(): import cryptography.hazmat.bindings.openssl.binding return { 'versions': { 'cryptography': getat...
flitzmo-hso/flitzmo_agv_control_system
Versionen/2021_06_15/rmf_ws/install/rmf_traffic_msgs/include/rmf_traffic_msgs/msg/region.h
<gh_stars>0 // generated from rosidl_generator_c/resource/idl.h.em // with input from rmf_traffic_msgs:msg/Region.idl // generated code does not contain a copyright notice #ifndef RMF_TRAFFIC_MSGS__MSG__REGION_H_ #define RMF_TRAFFIC_MSGS__MSG__REGION_H_ #include "rmf_traffic_msgs/msg/detail/region__struct.h" #include...
yuppaoh/eWatchEjbApplication
eWatchLogin/eWatchLogin-ejb/build/generated-sources/ap-source-output/entities/Orderdetails_.java
<reponame>yuppaoh/eWatchEjbApplication package entities; import entities.Orders; import entities.Products; import javax.annotation.Generated; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2021-04-05T1...
bolatov/contests
acmp.ru/p114.cpp
#include <bits/stdc++.h> using namespace std; #ifndef int64 #define int64 long long #endif int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); #endif int n, k; cin >> n >> k; vector<pair<int64, int64>> dp(n + 1, {0, 0}); dp[1] = {1, k - 1}; for (int i = 2; i <= n; ++i) { ...
arkiny/OSwithMSVC
Chapter/14_DLL/Core/Loader.h
#pragma once #include "windef.h" class Process; #define PROCESS_GENESIS_ID 101 class Loader { public: Loader(); ~Loader(); virtual Process* CreateProcessFromMemory(const char* appName, LPTHREAD_START_ROUTINE lpStartAddress, void* param) = 0; virtual Process* CreateProcessFromFile(char* appName, void* param) = 0...
lum1n0us/intel-device-resource-mgt-lib
ibroker/ams-api-gateway/src/main/java/com/intel/iot/ams/api/CfgMgrAPIs.java
/* * Copyright (C) 2020 Intel Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0 */ package com.intel.iot.ams.api; import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.JsonSyntaxException; import com.google.gson.reflect.TypeToken...
Zueuk/JitCat
include/jitcat/CatOperatorNewArray.h
<reponame>Zueuk/JitCat<filename>include/jitcat/CatOperatorNewArray.h /* This file is part of the JitCat library. Copyright (C) <NAME> 2019 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ #pragma once #include "jitcat/CatTypedExpression.h" namespace jitcat::AST {...
Foxcapades/lib-go-raml
v0/internal/util/assign/any-map.go
<gh_stars>0 package assign import ( "github.com/Foxcapades/lib-go-raml/v0/pkg/raml" "github.com/Foxcapades/lib-go-yaml/v1/pkg/xyml" "gopkg.in/yaml.v3" ) // ToStringMap appends the values of the given YAML mapping to the given // StringMap. func ToStringMap(v *yaml.Node, ref raml.StringMap) error { return xyml.Map...
Chupik/Mixbox
Frameworks/InAppServices/Sources/Support/AccessibilityForTestAutomation/AccessibilityForTestAutomationInitializer/Implementation/ObjectiveC/LibAccessibilityAccessibilityInitializer/LibAccessibilityAccessibilityInitializer.h
<reponame>Chupik/Mixbox #ifdef MIXBOX_ENABLE_IN_APP_SERVICES @import Foundation; @interface LibAccessibilityAccessibilityInitializer : NSObject - (nullable NSString *)initializeAccessibilityOrReturnError; @end #endif
ryoma-jp/samples
python/correlation-analysis_causal-analysis/lib/correlation_analysis.py
<gh_stars>0 #! -*- coding: utf-8 -*- #--------------------------------- # モジュールのインポート #--------------------------------- import numpy as np #--------------------------------- # 定数定義 #--------------------------------- #--------------------------------- # 関数 : ピアソンの積率相関係数 # [Input] # * x: 独立変数(ndarray) # * y: 従属変数...
Gems/prowide-iso20022
model-acmt-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/OriginalTransactionReference14.java
<reponame>Gems/prowide-iso20022 package com.prowidesoftware.swift.model.mx.dic; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaTy...
8LabSolutions/Soldino-Poc
src/components/containers/BusinessListContainer.js
/* eslint-disable no-unused-vars */ import { connect } from 'react-redux'; import React from 'react'; import { withToastManager } from 'react-toast-notifications'; import UsersList from '../presentational/UsersList'; import governmentActionCreator from "../../actionsCreator/governmentActionCreator" import {BUSINESS} fr...
janesma/amd_gpa
Src/GPUPerfAPIDX12/DX12DataRequest.h
<reponame>janesma/amd_gpa<filename>Src/GPUPerfAPIDX12/DX12DataRequest.h //============================================================================== // Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved. /// \author AMD Developer Tools Team /// \file /// \brief DX12DataRequest declaration //=...
Atul9/rails_event_store
rails_event_store/lib/rails_event_store/active_job_dispatcher.rb
require 'active_job' module RailsEventStore class ActiveJobDispatcher < RubyEventStore::AsyncDispatcher def initialize(proxy_strategy: AsyncProxyStrategy::Inline.new) super(proxy_strategy: proxy_strategy, scheduler: ActiveJobScheduler.new) end class ActiveJobScheduler def call(klass, seriali...
enrrou/otc-provider-jet
apis/networking/v1alpha1/zz_secgrouprulev2_types.go
/* Copyright 2021 The Crossplane 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, ...
ironjan/jeo
format/gdal/src/main/java/io/jeo/gdal/GDALDataset.java
/* Copyright 2014 The jeo project. 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 appl...
cablelabs/lpwanserver-web-client
src/components/fetch/FetchNetworks.js
<filename>src/components/fetch/FetchNetworks.js import React from 'react'; import PT from 'prop-types'; import FetchResources from './FetchResources'; import networkStore from "../../stores/NetworkStore"; //****************************************************************************** // Interface //******************...
BoKna031/nistagram
agent/dto/showProductDTO.go
package dto type ShowProductDTO struct { ID uint `json:"id"` Name string `json:"name"` PicturePath string `json:"picturePath"` PricePerItem float64 `json:"pricePerItem"` Quantity uint `json:"quantity"` }
CRogers/obc
lablgtk/ml_gtksourceview2.c
/**************************************************************************/ /* Lablgtk */ /* */ /* This program is free software; you can redistribute it */ /* and/or...
Svetuf/imageregistration
previous/lib/src/imgreg/matching/knn/knn_matching.cpp
#include "knn_matching.h" #include <iostream> #include <vector> #include "../../features/features.h" void KnnMatching::init() { matcher = cv::DescriptorMatcher::create(matcherType); } std::vector<cv::DMatch> KnnMatching::getMatches(cv::Ptr<Features> features1, cv::Ptr...
Angus-Liu/smilcool
smilcool-server/src/main/java/com/smilcool/server/core/service/MessageService.java
package com.smilcool.server.core.service; import com.smilcool.server.core.pojo.po.Message; import java.util.List; /** * @author Angus * @date 2019/5/8 */ public interface MessageService { Message addMessage(Message message); List<Message> getUnsignedMessageList(Integer receiveUserId); void signMess...
wakiki/ri_cal
lib/ri_cal/property_value/recurrence_rule/recurring_day.rb
<reponame>wakiki/ri_cal<filename>lib/ri_cal/property_value/recurrence_rule/recurring_day.rb<gh_stars>0 module RiCal class PropertyValue class RecurrenceRule < PropertyValue #- c2009 <NAME>, All rights reserved. Refer to the file README.txt for the license # # Instances of RecurringDay are used t...
grovertb/material
packages/cui-material/src/TableSortLabel/TableSortLabel.js
<gh_stars>0 export { default } from '@mui/material/TableSortLabel'
dcseal/finess
apps/2d/euler/lib/SetWaveSpd.cpp
<gh_stars>0 #include <cmath> #include "dog_math.h" #include "dogdefs.h" #include "IniParams.h" // This is a user-supplied routine that sets the // HLLE wave speeds for use in "RiemannSolve" // // Euler equations for gas dynamics // void SetWaveSpd(const dTensor1& nvec, const dTensor1& xedge, const...
MahboobehMohammadi/deriv-app
packages/p2p/src/utils/string.js
<filename>packages/p2p/src/utils/string.js export const toSentenceCase = string => { if (!string) { return ''; } return string[0].toUpperCase() + string.slice(1); }; export const countDecimalPlaces = value => { return ((value.toString().split('.') || [])[1] || []).length; };
Staatsgeheim/NDceRpc
research/JavaDceRpc/jarapac-0.3.8/src/jarapac/ndr/NdrBuffer.java
<gh_stars>1-10 package ndr; import java.io.UnsupportedEncodingException; import java.util.HashMap; import jcifs.util.Encdec; public class NdrBuffer { int referent; HashMap referents; static class Entry { int referent; Object obj; } public byte[] buf; public int start; public int index; public int ...
czizzy/L7
src/layer/raster_layer.js
<filename>src/layer/raster_layer.js import Layer from '../core/layer'; import * as THREE from '../core/three'; import RasterMaterial from '../geom/material/rasterMaterial'; import { RasterBuffer } from '../geom/buffer/raster'; export default class RasterLayer extends Layer { draw() { this.type = 'raster'; c...
shishuihao/third-party-api
third-party-api-pay-chinaums-sdk/src/main/java/cn/shishuihao/thirdparty/api/pay/chinaums/sdk/request/ChinaumsV1NetPayRefundRequest.java
package cn.shishuihao.thirdparty.api.pay.chinaums.sdk.request; import cn.shishuihao.thirdparty.api.pay.chinaums.sdk.domain.RefundSubOrder; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; import lombok.ToString; import lombok.experimental.SuperBuilder; import lombok.extern.jackson.Jacksonize...
audip/cerebro
src/app/components/overview/controller.js
angular.module('cerebro').controller('OverviewController', ['$scope', '$http', '$window', '$location', 'OverviewDataService', 'AlertService', 'ModalService', 'RefreshService', function($scope, $http, $window, $location, OverviewDataService, AlertService, ModalService, RefreshService) { $scope.data...
HaoNanYanToMe/SpringAnoSing
src/main/java/com/prism/springas/utils/excel/ExcelView.java
<filename>src/main/java/com/prism/springas/utils/excel/ExcelView.java package com.prism.springas.utils.excel; import com.prism.springas.utils.BasePage; import org.apache.poi.hssf.usermodel.*; import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.xssf.usermodel.XSSFCellStyle; import org.springframework....
AliYildizoz909/photo-channel-spa
src/components/channel/channelHooks.js
import React, { useState, useEffect } from "react" import { Container, Row, Col, ListGroup, Badge, Tabs, Tab, Table } from 'react-bootstrap' import { Button } from 'react-bootstrap' import { Link, useHistory } from 'react-router-dom' import axios from "axios"; import { useSelector, useDispatch } from 'react-redux' impo...
4ngel2769/LambdaDiscordBot
src/main/java/bot/java/lambda/command/commands/common/RandomCommand.java
package bot.java.lambda.command.commands.common; import bot.java.lambda.command.CommandContext; import bot.java.lambda.command.category.HelpCategory; import bot.java.lambda.command.type.CommandHandler; import bot.java.lambda.command.type.ICommand; import java.util.List; import java.util.OptionalInt; import java.util....
madebr/edyn
include/edyn/util/rigidbody.hpp
#ifndef EDYN_UTIL_RIGIDBODY_HPP #define EDYN_UTIL_RIGIDBODY_HPP #include <vector> #include <optional> #include <entt/entity/fwd.hpp> #include "edyn/math/vector3.hpp" #include "edyn/math/quaternion.hpp" #include "edyn/math/matrix3x3.hpp" #include "edyn/shapes/shapes.hpp" #include "edyn/comp/material.hpp" namespace edy...
pdecat/facelets
src/main/java/com/sun/facelets/compiler/UITextHandler.java
/** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed...
alwell-kevin/ears
pkg/plugin/types.go
<gh_stars>1-10 // Copyright 2020 Comcast Cable Communications Management, 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // U...
pulipulichen/PACOR
app/Models/Traits/Tokenization.js
<filename>app/Models/Traits/Tokenization.js 'use strict' const TokenizationHelper = use('App/Helpers/TokenizationHelper') const tokenize = function (html) { let properties = {} if (typeof(html) !== 'string') { return false } //console.log('Tokenization', 1) properties.rawText = TokenizationHelper.htmlTo...
Yoda2798/YodasMod
src/main/java/YodasMod/relics/Duality2.java
package YodasMod.relics; import com.megacrit.cardcrawl.actions.common.ApplyPowerAction; import com.megacrit.cardcrawl.actions.common.RelicAboveCreatureAction; import com.megacrit.cardcrawl.actions.utility.UseCardAction; import com.megacrit.cardcrawl.cards.AbstractCard; import com.megacrit.cardcrawl.characters.Abstract...
Coders-Beyond-Bars/website_gatsby
src/pages/index.js
<filename>src/pages/index.js import React, { Component } from "react" import { Link } from "gatsby" import { Typography, Grid, Hidden } from "@material-ui/core" import { withStyles } from "@material-ui/styles" import Layout from "components/Layout" import Section from "components/Section" import CBBButton from "compon...
AdityaSidharta/bamboos
bamboos/utils/model/model_zoo.py
from typing import Any from sklearn.ensemble import ( AdaBoostClassifier, AdaBoostRegressor, BaggingClassifier, BaggingRegressor, ExtraTreesClassifier, ExtraTreesRegressor, GradientBoostingClassifier, GradientBoostingRegressor, RandomForestClassifier, RandomForestRegressor, ) fr...
taufique71/sports-programming
uva/11448 - Who Said Crisis.cpp
<reponame>taufique71/sports-programming #include <iostream> #include <cstring> #define MAX 10010 using namespace std; class BigNumber { public: char* add(char s1[], char s2[]) // addition { char *a = new char[MAX]; char *b = new char[MAX]; i...
ajaymr12/openram
compiler/drc/design_rules.py
# See LICENSE for licensing information. # # Copyright (c) 2016-2019 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import debug from drc_value import * from drc_lu...
fluorumlabs/dtrack-maven-plugin
src/main/java/com/github/fluorumlabs/dtrack/model/ManagedUser.java
<gh_stars>0 /* * Copyright 2021 <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 a...
synacts/digitalid-utility
property/src/main/java/net/digitalid/utility/property/set/ReadOnlySetProperty.java
/* * Copyright (C) 2017 Synacts GmbH, Switzerland (<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...
reinago/megamol
plugins/gui/src/graph/ParameterGroups.cpp
<reponame>reinago/megamol<gh_stars>0 /* * ParameterGroups.cpp * * Copyright (C) 2020 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "ParameterGroups.h" using namespace megamol; using namespace megamol::core; using namespace megamol::gui; megamol::gui::ParameterGrou...
httpsgithu/dsentric
maps/src/main/scala/dsentric/filter/DFilterSyntax.scala
<gh_stars>1-10 package dsentric.filter import com.github.ghik.silencer.silent import dsentric.{DArray, DObject, Data, Path, PathLensOps} import dsentric.codecs.{DCollectionCodec, DataCodec} import dsentric.contracts.{DynamicProperty, ExpectedProperty, MaybeProperty, Property} import dsentric.operators.Optionable impo...
Mingyueyixi/xposed-rimet
app/src/main/java/com/sky/xposed/rimet/data/model/WifiModel.java
/* * Copyright (c) 2020 The sky 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 a...
arikfr/turbodbc
cpp/turbodbc/Library/src/descriptions/integer_description.cpp
<reponame>arikfr/turbodbc #include <turbodbc/descriptions/integer_description.h> #include <sqlext.h> #include <boost/variant/get.hpp> #include <cstring> namespace turbodbc { integer_description::integer_description() = default; integer_description::integer_description(std::string name, bool supports_null) : descr...
alicanli1995/PaytenPatikaBootcamp
Week4/CodingExercise/src/test/java/com/example/weekthree/example/actor/ActorControllerIntegrationTest.java
<gh_stars>1-10 package com.example.weekthree.example.actor; import com.example.weekthree.controller.request.ActorCreateRequest; import com.example.weekthree.controller.response.ActorCreateResponse; import com.example.weekthree.dto.actor.ActorEntity; import com.example.weekthree.dto.actor.ActorJpaDto; import com.exampl...
liphx/cplusplus
thinking-in-cpp/code/2-6-algorithm5.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; template<typename T> void print(vector<T>& data){ for(auto x: data){ cout << x << " "; } cout << endl; } int main() { //线性查找 vector<int> data { 1, 1, 2, -1, 5}; auto iter = find(data.begin(), data.end(), -1...
mrexox/evil-client
spec/features/operation/middleware_spec.rb
RSpec.describe "operation request" do before do # Adds header tag to request/response class Test::Middleware extend Dry::Initializer param :app def call(env) env["HTTP_Variables"].update tags status, headers, body = app.call(env) [status, headers.merge(tags), body] ...
DipsyCyber/nOG
commands/economy/set-bal.js
const economy = require("../../util/economy") module.exports = { commands: ['set-bal', 'setbal'], description: 'Bot Admin only command that sets a user\'s balance in a guild', ownerOnly: true, minArgs: 1, maxArgs: 2, expectedArgs: '[user] <value>', category: 'Economy', guildOnly: true, ...
moonwave99/playa-old
src/renderer/util/Player.js
import { EventEmitter } from 'events'; import Promise from 'bluebird'; import { encodePath } from '../util/helpers/url'; export default class Player extends EventEmitter { constructor({ mediaFileLoader, resolution = 1000, scrobbleThreshold, audioElement, }) { super(); this.mediaFileLoader =...