repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
RadeonOpenCompute/ROCm-OpenCL-Runtime
tests/ocltst/module/runtime/OCLDeviceAtomic.cpp
<filename>tests/ocltst/module/runtime/OCLDeviceAtomic.cpp /* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc. 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, includin...
bluedawnstar/algorithm_library
library/integer/grayCode.h
<filename>library/integer/grayCode.h #pragma once // https://e-maxx-eng.appspot.com/algebra/gray-code.html // n = 0, 1, 2, ... inline int nthGrayCode(int n) { return n ^ (n >> 1); } // n = inverse(nthGrayCode(n)) inline int inverseGrayCode(int g) { int n = 0; for (; g; g >>= 1) n ^= g; return...
siloutil/openmpi
opal/mca/pmix/pmix2x/pmix/src/mca/pnet/opa/pnet_opa.h
/* * Copyright (c) 2015-2016 Intel, Inc. All rights reserved. * * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #ifndef PMIX_PNET_OPA_H #define PMIX_PNET_OPA_H #include <src/include/pmix_config.h> #include "src/mca/pnet/pnet.h" BEGIN_C_DECLS /* the component must be visible data for th...
oshai/vertx-examples
core-examples/src/main/ruby/io/vertx/example/core/execblocking/exec_blocking_example.rb
$vertx.create_http_server().request_handler() { |request| # Let's say we have to call a blocking API (e.g. JDBC) to execute a query for each # request. We can't do this directly or it will block the event loop # But you can do this using executeBlocking: $vertx.execute_blocking(lambda { |future| # Do th...
AlhonGelios/AO
org/apache/poi/poifs/filesystem/DirectoryEntry.java
<filename>org/apache/poi/poifs/filesystem/DirectoryEntry.java package org.apache.poi.poifs.filesystem; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; import java.util.Set; import org.apache.poi.hpsf.ClassID; import org.apache.poi.poifs.filesyste...
elvinn/leetcode-cn
2021/6-zigzag-conversion.js
<reponame>elvinn/leetcode-cn // https://leetcode-cn.com/problems/zigzag-conversion/ /** * @param {string} s * @param {number} numRows * @return {string} */ const convert = function (s, numRows) { const rowTotal = Math.min(s.length, numRows) if (rowTotal === 1) { return s } // 存放每一行的字符串 const string...
wchen1990/Mekanism
src/main/java/mekanism/common/world/ResizableOreFeatureConfig.java
<gh_stars>1-10 package mekanism.common.world; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import java.util.function.IntSupplier; import mekanism.common.config.MekanismConfig; import mekanism.common.registries.MekanismBlocks; import mekanism.common.resource.OreType;...
mgaray99/final_team02
src/api/model/IKeyPressFunctions.java
<gh_stars>0 package api.model; /** * A class that remembers which key functions are activated at any given time. * It stores four booleans, which indicate whether the game is paused, whether * the player is moving left, whether the player is moving right, and if the player * is jumping. This class contains getters...
m4ta1l/airbrake-ruby
lib/airbrake-ruby/thread_pool.rb
module Airbrake # ThreadPool implements a simple thread pool that can configure the number of # worker threads and the size of the queue to process. # # @example # # Initialize a new thread pool with 5 workers and a queue size of 100. Set # # the block to be run concurrently. # thread_pool = ThreadP...
PD75/practical-startpage
appdev/app/badges/gmail/gmail.js
<reponame>PD75/practical-startpage /*global X2JS */ (function() { "use strict"; angular.module('ps.badges') .controller("gmailBadgeCtrl", gmailBadgeCtrl) .directive('psbGmail', gmailDirective); function gmailBadgeCtrl($http, $interval, $scope, $timeout, $sce, i18n, permissionService) { var vm = thi...
tianyapiaozi/tensorflow
tensorflow/python/kernel_tests/distributions/uniform_test.py
<reponame>tianyapiaozi/tensorflow # Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
brainliubo/openairstudy
RRC_Rel14/LTE_SystemInformationBlockType17-r12.c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/guicliu/ue_folder/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/guicliu/ue_folder/cmake_targets...
ricardyn/ironpython-stubs
stubs.min/Autodesk/Revit/DB/__init___parts/ResourceVersionStatus.py
class ResourceVersionStatus(Enum,IComparable,IFormattable,IConvertible): """ An enum indicating whether a resource is current or out of date. enum ResourceVersionStatus,values: Current (0),OutOfDate (1),Unknown (2) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <...
odp-reactor/ld-r
components/dataset/viewer/BasicResourceList.js
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'fluxible-router'; import URIUtil from '../../utils/URIUtil'; import { Header, Table } from 'semantic-ui-react'; import BasicAggregateMapView from '../../object/viewer/aggregate/BasicAggregateMapView'; import classNames from 'classna...
Masa-Yasuno/oase
oase-root/web_app/views/event/urls.py
<filename>oase-root/web_app/views/event/urls.py # Copyright 2019 NEC Corporation # # 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 ...
rohith-hegde/job-application-portfolio
coin-tradingbot/src/testv2/TrendlineJobTestChartFeeder.java
package testv2; import java.util.ArrayList; import java.util.List; import commonv2.Candle; import commonv2.MarketID; import net.hammereditor.designutilities.design.RunnableThrowableCallback; import recorderv2.ChartFeeder; public class TrendlineJobTestChartFeeder extends ChartFeeder<Candle> { private List<Candle> c...
solitardj9/micro-iot-service
micro-iot-service/src/main/java/com/solitardj9/microiot/application/thing/thingManager/model/exception/ExceptionThingTokenNotAvailable.java
<filename>micro-iot-service/src/main/java/com/solitardj9/microiot/application/thing/thingManager/model/exception/ExceptionThingTokenNotAvailable.java<gh_stars>0 package com.solitardj9.microiot.application.thing.thingManager.model.exception; import org.springframework.http.HttpStatus; public class ExceptionThingTokenN...
Crupette/advent-2018
Brick-Breaker/src/Player.cpp
#include "Player.h" #include <Engine/RendererDefault.h> #include <Engine/InputManager.h> Player::Player(){ } Player::~Player(){ } void Player::init(){ object.init(glm::vec2(1024 / 2.f, 5), glm::vec2(150, 20), 0.f, "blank"); } void Player::update(){ if(DecentEngine::InputManager::isKeyDown(SDLK_d)){ object.tr...
msgbuf/msgbuf
de.haumacher.msgbuf/src/main/java/de/haumacher/msgbuf/graph/ScopeMixin.java
<reponame>msgbuf/msgbuf /* * Copyright (c) 2021 <NAME> et al. All Rights Reserved. */ package de.haumacher.msgbuf.graph; import java.io.IOException; import java.util.Map; import de.haumacher.msgbuf.json.JsonReader; import de.haumacher.msgbuf.json.JsonWriter; /** * {@link Scope} implementation that can be mixed in...
mariacaslop/Environment-of-model-design-based-on-fuzzy-automaton
FuzzyAutomaton/es.ucm.modelling.fuzzyautomaton/src/fuzzyAutomaton/FuzzyRelation.java
/** */ package fuzzyAutomaton; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Fuzzy Relation</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link fuzzyAutomaton.Fuzzy...
dishanilahiri/LeetCode-Premium
Maximum Points You Can Obtain from Cards.cpp
<reponame>dishanilahiri/LeetCode-Premium Question-> There are several cards arranged in a row, and each card has an associated number of points. The points are given in the integer array cardPoints. In one step, you can take one card from the beginning or from the end of the row. You have to take exactly k cards. You...
alyamaharanipj/adopsiku
server/routes/pet/petOfferRouter.js
import express from "express"; import { getPets, getPetById, createPet, updatePet, getPetsByProviderID, deletePet, updatePetStatus, setReportDuration, getProviderPets } from "../../controller/pet/petController.js"; const router = express.Router(); router.get("/", getPets); router.get("/:id", getPetB...
stonebinox/dustmail
node_modules/@mapbox/gl-matrix/rollup.config.js
import cleanup from 'rollup-plugin-cleanup'; export default { entry: 'src/mapbox-build.js', dest: 'dist/gl-matrix.js', format: 'umd', moduleName: 'glMatrix', plugins: [cleanup()] };
TecArt/servicecatalog-development
oscm-common/javasrc/org/oscm/types/enumtypes/TimerType.java
/******************************************************************************* * * Copyright FUJITSU LIMITED 2017 * * Creation Date: 16.06.2009 ...
JaakkoTulkki/javascriptmvc-cypress
jmvc/generate/test/scaffold.js
load('steal/rhino/rhino.js'); load('steal/test/test.js'); steal('steal/test', function(s){ s.test.module("jquery/generate/scaffold") STEALPRINT = false; s.test.test("make app and scaffold", function(t){ _args = ['cookbook']; load('jquery/generate/app'); _args = ['Cookbook.Models.Recipe']; load('jq...
mpolatcan/zepyhrus
crescent/core/mapping.py
from .typesafe_dict import TypeSafeDict class Mapping(TypeSafeDict): def __init__(self, id: str = None): super(Mapping, self).__init__() self.__id = id self._set_field(self.__id, {}) def __rearrange_mapping(self): kvs = self.__get_field__(self.KeyValue.__name__) json =...
execomrt/newton-dynamics
newton-4.00/applications/ndSandbox/ndContactCallback.cpp
<filename>newton-4.00/applications/ndSandbox/ndContactCallback.cpp<gh_stars>1000+ /* Copyright (c) <2003-2021> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * ...
shachindrasingh/apiman
gateway/engine/core/src/test/java/io/apiman/gateway/engine/impl/PolicyChainTest.java
/* * Copyright 2014 JBoss 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 i...
jmswen/eden
eden/fs/utils/ProcessAccessLog.h
<reponame>jmswen/eden /* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same ...
hiowenluke/kdo
examples/05-kdo.flow()-or-kdo.dirFn()/08-with-options.return.js
<reponame>hiowenluke/kdo const flow = require('./08-flow'); const expect = 'f11f121f122f123f13f14f15f21f22f23f31f32f33f4f5'; const fn = async () => { const args = {str: ''}; const options = {return: 'str'}; const result = await flow(args, options); return result === expect; }; module.exports = fn;
L-Net-1992/Paddle
python/paddle/fluid/tests/unittests/test_index_sample_op.py
<reponame>L-Net-1992/Paddle # Copyright (c) 2020 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 License at # # http://www.apache.org/licenses/LICENSE-2....
tony2u/Medusa
Medusa/MedusaCore/CoreLib/win/MemoryLeakDetector.h
<reponame>tony2u/Medusa<gh_stars>100-1000 #pragma once #include "CorePlatform/CorePlatformDefines.h" #ifdef MEDUSA_MEMORY_LEAK_DETECT #ifdef MEDUSA_WINDOWS #ifdef MEDUSA_DEBUG #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include "crtdbg.h" inline void* debug_malloc(const char* file, int line, size_t size) { ret...
lnyu/jfinalshop
jfinalshop-4.0-core/src/main/java/com/jfinalshop/Util/AARProtocol.java
<reponame>lnyu/jfinalshop<filename>jfinalshop-4.0-core/src/main/java/com/jfinalshop/Util/AARProtocol.java<gh_stars>1-10 package com.jfinalshop.Util; import java.io.UnsupportedEncodingException; import java.security.PrivateKey; import java.security.PublicKey; /** * aes and rsa protocol * @author: polfdark * */ pub...
suyash-naithani/apicurio-registry
utils/importexport/src/main/java/io/apicurio/registry/utils/impexp/EntityReader.java
/* * Copyright 2021 Red Hat * * 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 ...
alex-w/iers2010
src/arg2.cpp
#include "iers2010.hpp" #ifdef USE_EXTERNAL_CONSTS #include "iersc.hpp" #endif /// @details The purpose of the function is to compute the angular astronomical /// argument, which depends on time, for 11 tidal argument /// calculations. The order of the 11 angular quantities in vector /// ang...
I-Al-Istannen/velcom
backend/backend/src/main/java/de/aaaaaaah/velcom/backend/storage/repo/exception/DirectoryAlreadyExistsException.java
package de.aaaaaaah.velcom.backend.storage.repo.exception; import java.nio.file.Path; import java.util.Objects; /** * An exception that is thrown when a certain directory already exists. */ public class DirectoryAlreadyExistsException extends Exception { private final Path directory; /** * Constructs a new {@...
georaio/ethsigner
ethsigner/core/src/integration-test/java/tech/pegasys/ethsigner/jsonrpcproxy/model/jsonrpc/PrivateTransactionBuilder.java
/* * Copyright 2019 ConsenSys AG. * * 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 wr...
LemADEC/Cyberware
src/main/java/flaxbeard/cyberware/api/hud/NotificationInstance.java
package flaxbeard.cyberware.api.hud; public class NotificationInstance { private float time; private INotification notification; public NotificationInstance(float time, INotification notification) { this.time = time; this.notification = notification; } public float getCreatedTime() { return time; } ...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-fsx/source/model/SecurityStyle.cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/fsx/model/SecurityStyle.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Utils; na...
GrieferAtWork/KOS
include/kos/__exception_data.h
<reponame>GrieferAtWork/KOS /* Copyright (c) 2018 Griefer@Work * * * * This software is provided 'as-is', without any express or implied * * warranty. In no event will the authors be held li...
shaoxt/weave
weave-service/weave-service-spring/src/main/java/io/aftersound/weave/service/AdminServiceMetadataManager.java
package io.aftersound.weave.service; import com.fasterxml.jackson.databind.ObjectMapper; import io.aftersound.weave.service.metadata.ServiceMetadata; import java.nio.file.Path; import java.util.Map; /** * This {@link AdminServiceMetadataManager} manages the lifecycle of * {@link ServiceMetadata} (s) related to adm...
zipated/src
third_party/blink/renderer/core/frame/frame.cc
<reponame>zipated/src /* * Copyright (C) 1998, 1999 <NAME> <<EMAIL>> * 1999 <NAME> <<EMAIL>> * 1999 <NAME> <<EMAIL>> * 2000 <NAME> <<EMAIL>> * 2000 <NAME> <<EMAIL>> * 2001 <NAME> <<EMAIL>> * Copyright (C) 2004, 20...
MikeMirzayanov/pbox
src/site/src/main/java/me/pbox/site/captions/dao/CaptionDao.java
/* * Copyright by <NAME> */ package me.pbox.site.captions.dao; import me.pbox.site.captions.model.Caption; import java.util.List; public interface CaptionDao { String shaHex(String s); Caption find(long id); Caption find(String shortcutSha1, String locale); List<Caption> findAll(); void sav...
drbild/scintuit
core/src/main/scala/scintuit/util/auth.scala
package scintuit.util import java.security.PrivateKey import scintuit.util.oauth.OAuthConsumer import scintuit.util.saml.SamlIssuer object auth { case class AuthConfig( signingKey: PrivateKey, samlIssuer: SamlIssuer, oauthConsumer: OAuthConsumer ) }
arvidl/dynamical-systems-with-applications-using-python
Anaconda-files/Program_06a.py
<gh_stars>100-1000 # Program 06a: Contour plot. See Figure 6.2(a). import numpy as np import matplotlib.pyplot as plt xlist = np.linspace(-10.0, 10.0, 100) ylist = np.linspace(-4.0, 4.0, 100) X, Y = np.meshgrid(xlist, ylist) Z = Y**2 / 2 - 5*np.cos(X) plt.figure() plt.contour(X,Y,Z) plt.xlabel(r'$\theta$', fontsize=...
ebadkamil/nicos
nicos_mlz/puma/setups/detslit.py
description = 'Slits before detector' group = 'optional' includes = ['motorbus6'] devices = dict( st_dslit = device('nicos_mlz.puma.devices.ipc.Motor', bus = 'motorbus6', addr = 67, slope = 4500, unit = 'mm', abslimits = (-5.5, 30), zerosteps = 500000, lowl...
Alejo2040/Algoritmos_programacion_C4G2
Taller Estructuras de control repeticion/Ejercicio 03.py
<gh_stars>0 """ Entrada No hay Salida Sumatoria de los números dentro del rango dado--> """ #Caja negra a=0 for i in range(97, 1003): if(i % 2 == 0): a = a+i #Salidas print(a)
lauracristinaes/aula-java
hibernate-release-5.3.7.Final/project/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/TypeDefinitionBinder.java
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.boot.model.source.internal.hbm; import org.hibernate.boot.ja...
FreCap/sql
sql-jdbc/src/main/java/com/amazon/opendistroforelasticsearch/jdbc/config/FetchSizeProperty.java
package com.amazon.opendistroforelasticsearch.jdbc.config; public class FetchSizeProperty extends IntConnectionProperty { public static final String KEY = "fetchSize"; public FetchSizeProperty() { super(KEY); } }
davidivkovic/web21
api/dist/spa/src/components/header/requests/PendingRequest.js
<gh_stars>0 import { ref } from '/modules/vue.js' import Request from '/src/components/header/requests/Request.js' import Button from '/src/components/ui/Button.js' import SpinIcon from '/src/icons/SpinIcon.js' export default { template: ` <Request :request="request"> <template v-slot:text>wants to be your f...
Yankee24/ruoyi-vue-pro
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/framework/package-info.java
/** * 属于 system 模块的 framework 封装 * * @author 芋道源码 */ package cn.iocoder.yudao.module.member.framework;
katekaseth/Project_One
client-app/src/components/bookmarkPage/BookmarkPage.js
<gh_stars>1-10 import React from 'react'; import { makeStyles } from '@material-ui/styles'; import { Typography, Grid, CardMedia } from '@material-ui/core'; import bookmarkedIcon from '../../icons/svg/bookmarked.svg'; import unbookmarkedIcon from '../../icons/svg/unbookmarked.svg'; import { SearchResults } from '../s...
bshp/midpoint
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/certification/DefinitionStagesPanel.java
<reponame>bshp/midpoint<filename>gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/certification/DefinitionStagesPanel.java /* * Copyright (c) 2010-2015 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for deta...
jassem-lab/LMS_MERN
client/src/shared/actions/registerUser.js
<reponame>jassem-lab/LMS_MERN import axios from 'axios'; import { CLEAR_ERRORS, GET_ERRORS } from '../actionTypes'; import { isEmpty } from '../utils'; const registerUser = (userData, profileData, history) => (dispatch) => { // return new Promise((resolve, reject) => { // axios // .post('/api/account/add-a...
patil215/v8
fuzzer_output/interesting/sample_1554111532688.js
<gh_stars>0 function main() { const v3 = [13.37,13.37,13.37,13.37]; const v4 = {exec:9007199254740991}; const v5 = {replace:9007199254740991,forEach:13.37,tan:v4,fromEntries:v3,global:v4,log:Math,getPrototypeOf:Math}; const v12 = [1337]; let v17 = undefined; const v19 = [1337]; const v20 = {exec:v19}; let v22 = "undefi...
abenkdh/NetCipher
sample-webviewclient/src/sample/netcipher/webviewclient/GenericWebViewClient.java
package sample.netcipher.webviewclient; import android.webkit.WebResourceRequest; import android.webkit.WebResourceResponse; import android.webkit.WebView; import android.webkit.WebViewClient; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStre...
moriyoshi/aws-sdk-go-v2
service/ssm/api_op_CreateOpsItem.go
// Code generated by smithy-go-codegen DO NOT EDIT. package ssm import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ssm/types" "github.com/awslabs/smithy-go/middleware" smithyhttp "github.com/awslabs/sm...
davindratulsi/qiskit-nature
test/problems/second_quantization/vibrational/builders/test_hopping_ops_builder.py
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
zhaofeng092/python_auto_office
公众号/auto_office/pdf/merge.py
# -*- coding: utf-8 -*- # @Time : 2021/3/16 18:21 # @Author :liuzf # @File : merge.py # @Software: PyCharm # @Description: from PyPDF2 import PdfFileReader, PdfFileWriter def merge_pdfs(paths, output): pdf_writer = PdfFileWriter() for path in paths: pdf_reader = PdfFileReader(path) for page...
okfn/dpm-old
dpm/tests/test_cli.py
import os import commands import tempfile import shutil import logging import dpm.tests.base import dpm.cli import dpm.util import dpm.repository import dpm.package class CLIBase(dpm.tests.base.TestCase): @classmethod def setup_class(self): self.tmpdir = self.make_tmpdir() self.index_path = os...
JKot-Coder/slang
source/slang/slang-ir-layout.cpp
// slang-ir-layout.cpp #include "slang-ir-layout.h" #include "slang-ir-insts.h" // This file implements facilities for computing and caching layout // information on IR types. // // Unlike the AST-level layout system, this code currently only // handles the notion of "natural" layout for IR types, which is // the lay...
meagon/sisdb
src/core/sis_file.c
 #include <sis_file.h> #include <sis_malloc.h> s_sis_file *sis_file_create() { s_sis_file * o =sis_malloc(sizeof(s_sis_file)); memset(o, 0, sizeof(s_sis_file)); return o; } void sis_file_destroy(s_sis_file *file_) { sis_free(file_); } s_sis_sds sis_file_read_to_sds(const char *fn_) { s_sis_file_hand...
maciejg-git/vue-bootstrap-icons
dist-mdi/mdi/calendar-clock.js
import { h } from 'vue' export default { name: "CalendarClock", vendor: "Mdi", type: "", tags: ["calendar","clock"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-calend...
dvdmandt/EnderIO
src/main/java/crazypants/enderio/machine/light/ElectricLightRenderer.java
<reponame>dvdmandt/EnderIO package crazypants.enderio.machine.light; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import com.enderio.core.client.render.Bo...
eantcal/nubasic
lib/nu_stmt_read.cc
<reponame>eantcal/nubasic // // This file is part of nuBASIC // Copyright (c) <NAME> (<EMAIL>) // All rights reserved. // Licensed under the MIT License. // See COPYING file in the project root for full license information. // /* -------------------------------------------------------------------------- */ #incl...
kawaja/Kilda
src-java/northbound-service/northbound/src/main/java/org/openkilda/northbound/controller/v1/NetworkController.java
/* Copyright 2019 Telstra Open Source * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
genesis-2/trunk
src/edu/virginia/vcgr/genii/container/bes/activity/resource/DBBESActivityResource.java
<gh_stars>1-10 /* * Copyright 2006 University of Virginia * * 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 applic...
cleberengineer/kuba
pixels/tokens/src/fontFamily.js
import styled from '@kuba/styled' export default styled.style` :root { --font-family-highlight: 'Spectral', serif; --font-family-base: 'Roboto', sans-serif; } `
liangjisheng/go-books
projects/go-clean-arch/v1/author/repository/repository.go
<reponame>liangjisheng/go-books package repository import "v1/author" // AuthorRepository ... type AuthorRepository interface { GetByID(id int64) (*author.Author, error) }
Lora-net/SWDM001
platform/bare_metal/stm32cube/shield/e516v02a/smtc_shield.c
<gh_stars>0 /** * \file * * \brief File describing and initializing transceiver shield hardware */ /** * \file * * The Clear BSD License * Copyright Semtech Corporation 2022. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to...
hmrc/binding-tariff-trader-frontend
app/controllers/SupportingMaterialFileListController.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...
mummi-framework/mummi-ras
mummi_ras/scripts/run.wfmanager.py
# Copyright (c) 2021, Lawrence Livermore National Security, LLC. All rights reserved. LLNL-CODE-827655. # This work was produced at the Lawrence Livermore National Laboratory (LLNL) under contract no. DE-AC52-07NA27344 (Contract 44) between the U.S. Department of Energy (DOE) and Lawrence Livermore National Security, L...
sparsecode/DaFlow
daflow-job-conf/daflow-job-conf-xml/src/test/scala/com/abhioncbr/daflow/job/conf/xml/ParseTransformSpec.scala
/* * 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 may ...
l33tnobody/l33t_sol
src/12IntegerToRoman.java
class Solution { public String intToRoman(int num) { final String RomanSequence="IVXLCDM"; char[] RomanArray=RomanSequence.toCharArray(); StringBuilder res= new StringBuilder(); for(int base=0; num!=0; base+=2, num/=10) { int digit = num % 10; ...
frunox/dynamic-portfolio
routes/api/index.js
<reponame>frunox/dynamic-portfolio<gh_stars>0 const path = require("path"); const router = require("express").Router(); // Route to APIs by data source TODO: I think we should set up a route for each collection. const developerRoutes = require("./developer"); const repositoriesRoutes = require("./repositories"); const...
zealoussnow/chromium
third_party/blink/renderer/platform/network/blink_schemeful_site.cc
<filename>third_party/blink/renderer/platform/network/blink_schemeful_site.cc // Copyright 2021 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 "third_party/blink/renderer/platform/network/blink_schemeful_site.h...
applidium/Bike-Share-Prediction
db/schema.rb
<filename>db/schema.rb<gh_stars>100-1000 # encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this sche...
omarathon/tabula
web/src/main/scala/uk/ac/warwick/tabula/web/controllers/cm2/DownloadSubmissionReceiptAsPdfController.scala
package uk.ac.warwick.tabula.web.controllers.cm2 import org.springframework.context.annotation.Profile import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.{ModelAttribute, PathVariable, RequestMapping} import uk.ac.warwick.tabula.commands._ import uk.ac.warwick.tabula.comman...
alexey-anufriev/intellij-community
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/projectRoot/daemon/ProjectStructureElementUsage.java
<reponame>alexey-anufriev/intellij-community<gh_stars>1-10 package com.intellij.openapi.roots.ui.configuration.projectRoot.daemon; import com.intellij.openapi.util.NlsContexts; import org.jetbrains.annotations.Nullable; import javax.swing.*; public abstract class ProjectStructureElementUsage { public abstract Proj...
code-dot-org/js-interpreter-tirant
packages/js-interpreter-portal/src/server/constants.js
export const MASTER_PORT = process.env.PORT || 3000;
Exynos7580/android_hardware_samsung_slsi_exynos7580
mobicore/ClientLib/include/uuid_attestation.h
/* * Copyright (c) 2013-2015 TRUSTONIC LIMITED * 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 ...
LiJiaQi1232/The-fifth-semester
Study_Nuxt/Day17/Project/letao-server/node_modules/tencentcloud-sdk-nodejs/tencentcloud/services/tem/index.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tem = void 0; const v20210701_1 = require("./v20210701"); const v20201221_1 = require("./v20201221"); exports.tem = { v20210701: v20210701_1.v20210701, v20201221: v20201221_1.v20201221, };
openharmony-gitee-mirror/account_os_account
services/accountmgr/test/unittest/account_event_provider_test/account_event_provider_test.cpp
<reponame>openharmony-gitee-mirror/account_os_account<gh_stars>1-10 /* * Copyright (c) 2021 Huawei Device 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.apac...
antopen/alipay-sdk-java-all
src/main/java/com/alipay/api/domain/AlipayBossBaseProcessInstanceUrgeModel.java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 催单 * * @author auto create * @since 1.0, 2022-03-17 09:36:53 */ public class AlipayBossBaseProcessInstanceUrgeMode...
ftcksu/FTC_Mobile_Client
src/components/shared_components/ParticipantsDetails.js
import React, { Component } from 'react' import { Text, View, Image, TouchableWithoutFeedback } from 'react-native' import { Button } from 'react-native-elements/src/index'; import Icon from 'react-native-vector-icons/FontAwesome'; import { goToWhatsapp } from "../../global/actions/appActions"; export class Participa...
datacentred/stronghold
db/migrate/20141028085401_rename_tenant_id.rb
<filename>db/migrate/20141028085401_rename_tenant_id.rb<gh_stars>1-10 class RenameTenantId < ActiveRecord::Migration def change rename_column :tenants, :tenant_id, :tenant_uuid end end
Samhenry97/XV6
devrand.c
<gh_stars>0 #include "types.h" #include "stat.h" #include "defs.h" #include "param.h" #include "traps.h" #include "spinlock.h" #include "sleeplock.h" #include "fs.h" #include "file.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" // https://en.wikipedia.org/wiki/Mersenne_Twister // Define ...
AVISPL/dal-avdevices-encoderdecoder-haivision-x4decoder
src/main/java/com/avispl/symphony/dal/avdevices/encoderdecoder/haivision/x4decoder/dto/streamstats/StreamInfo.java
/* * Copyright (c) 2022 AVI-SPL, Inc. All Rights Reserved. */ package com.avispl.symphony.dal.avdevices.encoderdecoder.haivision.x4decoder.dto.streamstats; import com.fasterxml.jackson.annotation.JsonAlias; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.avispl.symphony.dal.avdevices.encode...
ryunosinfx/HtmlCopiBon
src/view/content/prefMng.js
import vu from "../../util/viewUtil"; import {BaseView} from "../../util/reactive/baseView"; import {a,div,li,ul,img,span,input,label} from "../../util/reactive/base/vtags"; import { PrefList } from '../parts/pref/prefList' export class PrefMng extends BaseView { constructor() { super("prefMng", "prefMng"); ...
dev-bootcamp-2019/final-project-chechu
src/util/contracts/krakenPriceTicker.js
<gh_stars>0 import { getWeb3, DEFAULT_GAS_PRICE } from '../connectors'; import { ETH_PRICE_UPDATED } from '../actions'; import config from '../../../config'; const abi = require('./abi/KrakenPriceTicker.json').abi; export const CONTRACT_ADDRESS = config.krakenPriceTikerAddress; export let contract; export function i...
jmflorez/pymatgen
pymatgen/symmetry/pointgroup.py
<reponame>jmflorez/pymatgen #!/usr/bin/env python """ This module implements a point group assigner for a molecule. """ from __future__ import division __author__ = "<NAME>" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" __date__ = "5/8/13"...
279611480/oa_fk
notice/src/main/java/org/yun/notice/service/impl/NoticeTypeServiceImpl.java
<reponame>279611480/oa_fk<gh_stars>0 package org.yun.notice.service.impl; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.d...
VHAINNOVATIONS/AVS
ll-javaBroker/src/main/java/gov/va/med/lom/javaBroker/rpc/patient/ProblemsRpc.java
<reponame>VHAINNOVATIONS/AVS package gov.va.med.lom.javaBroker.rpc.patient; import java.util.ArrayList; import java.util.Vector; import java.text.ParseException; import gov.va.med.lom.javaBroker.rpc.*; import gov.va.med.lom.javaBroker.rpc.patient.models.*; import gov.va.med.lom.javaBroker.util.DateUtils; import gov.v...
ItsCalebJones/SpaceLaunchNow_Android
astronauts/src/main/java/me/calebjones/spacelaunchnow/astronauts/AstronautListViewModel.java
<gh_stars>10-100 package me.calebjones.spacelaunchnow.astronauts; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; import me.calebjones.spacelaunchnow.data.models.main.Launch; import me.calebjones.spacelaunchnow.data.models.main.astronaut.Astronaut; public class AstronautListViewModel e...
athenagroup/brxm
cms/api/src/main/java/org/hippoecm/addon/workflow/ActionDescription.java
/* * Copyright 2009-2019 <NAME>.V. (http://www.onehippo.com) * * 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 requ...
chaspy/tfsec
internal/app/tfsec/rules/azure/storage/default_action_deny_rule.go
package storage import ( "github.com/aquasecurity/defsec/rules" "github.com/aquasecurity/defsec/rules/azure/storage" "github.com/aquasecurity/tfsec/internal/app/tfsec/block" "github.com/aquasecurity/tfsec/internal/app/tfsec/scanner" "github.com/aquasecurity/tfsec/pkg/rule" ) func init() { scanner.RegisterCheckR...
xu-kai-xu/OpenPNM
examples/contrib/shale_oil_conductance_v2.8/pore_coordination_num.py
<filename>examples/contrib/shale_oil_conductance_v2.8/pore_coordination_num.py # -*- coding: utf-8 -*- """ Created on Sat Jul 10 20:11:18 2021 @author: <NAME> """ import numpy as np import matplotlib.pyplot as plt def pore_coordination_num(pn): ''' calculate pore coordination number parameters: t...
CostelMD/find-your-roomate-project
src/modules/Login/saga.js
<filename>src/modules/Login/saga.js<gh_stars>0 import { put, all, call, takeLatest } from "redux-saga/effects"; import { request } from "../../helpers/requests"; import { browserRedirect } from "../../helpers/helpers"; import { urls } from "../../helpers/urls"; import { LOGIN_REQUESTING, loginSuccess, loginError } from...
zweimach/wiyata.c
tests/leetcode/add_two_numbers_test.c
#include <setjmp.h> #include <stdarg.h> #include <stddef.h> #include <stdlib.h> #include <cmocka.h> #include "add_two_numbers.h" static void first_test(void** state) { (void)state; struct ListNode* input[] = {list_node_create(2, 4, 3), list_node_create(5, 6, 4)}; struct L...
shitsurei/simple-bg-cli
src/main/java/io/github/shitsurei/common/util/GeometryUtil.java
<reponame>shitsurei/simple-bg-cli package io.github.shitsurei.common.util; import io.github.shitsurei.dao.pojo.bo.system.Captcha; import java.awt.*; import java.awt.image.BufferedImage; import java.util.Random; /** * 图形工具类 * * @author zhanggr-b * @version 1.0 * @date 2021/12/27 14:21 */ public class GeometryUt...