repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
fino-digital/finapi-java-client
src/test/java/org/proshin/finapi/webform/FpWebFormTest.java
/* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
VladT-Tempest/MisionTIC2022-Ciclo2
CodigosClase/src/semana3/Polimorfismo/PrincipalAnimalSinPolimorfismoArray.java
<gh_stars>10-100 package semana3.Polimorfismo; import java.util.ArrayList; public class PrincipalAnimalSinPolimorfismoArray { public static void main(String[] args) { Gato g1 = new Gato("Ozzy"); Gato g2 = new Gato("Jackie"); Gato g3 = new Gato("Michi"); Perro p1 = new Perro("Tros...
GeniusVentures/SuperGenius
src/runtime/binaryen/runtime_api/production_api_impl.cpp
<reponame>GeniusVentures/SuperGenius #include "runtime/binaryen/runtime_api/production_api_impl.hpp" namespace sgns::runtime::binaryen { ProductionApiImpl::ProductionApiImpl( const std::shared_ptr<WasmProvider> &wasm_provider, const std::shared_ptr<RuntimeManager> &runtime_manager) : RuntimeApi(w...
AugustYuan/MSRNet
models/repair_net.py
import torch import torch.nn as nn from src import IRU, RCU, BF, Conv_2D base_block={ 'RCU':RCU, 'IRU':IRU } def RepairNets(cfg): repairNet = [] for channel in cfg['channels'][::-1]: repairNet.append( Repairnet( in_channels=channel, ...
michaelawyu/nanopie
src/nanopie/tracing/base.py
"""This module includes the base classes for tracing handlers and related objects. A tracing handler enables easy OpenTelemetry based tracing when processing requests arriving at an endpoint. Once configured, the tracing handler will start a trace (span) automatically when a service begins processing a request and it ...
icyleaf/app_info
spec/app_info/ipa/framework_spec.rb
describe AppInfo::Framework do subject { AppInfo::Framework.parse(fixture_path('payload'), 'frameworks') } it { expect(subject).to be_a Array} it { expect(subject.size).to eq(2) } it { expect(subject[0]).to be_a AppInfo::Framework } it { expect(subject[0].lib?).to be_falsey } it { expect(subject[0].name)....
gingerkirsch/record-and-replay
symber-transformer/src/edu/ist/symber/tloax/XStartJoinAnalysis.java
<gh_stars>0 package edu.ist.symber.tloax; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import soot.*; import soot.jimple.*; import soot.jimple.spark.pag.AllocNode; import soot.jimple.spark.p...
joseluis-max/holbertonschool-low_level_programming
0x0D-preprocessor/4-sum.h
#ifndef SUMHEADER #define SUMHEADER #define SUM(x, y) ((x) + (y)) #endif
concord-consortium/rigse
rails/db/migrate/20170202190333_add_class_hash.rb
class AddClassHash < ActiveRecord::Migration[5.1] def up add_column :portal_clazzes, :class_hash, :string, :limit => 48 Portal::Clazz.where(class_hash: nil).find_each(batch_size: 100) do |portal_clazz| portal_clazz.generate_class_hash portal_clazz.save! end end def down remove_column...
MoozaInspire/base-components-recipes
force-app/test/@salesforce/label/c.lightning_LightningPill_delete.js
<reponame>MoozaInspire/base-components-recipes export default 'Press delete or backspace to remove';
wanglei339/wms-test
wms-core/src/main/java/com/lsh/wms/core/dao/baseinfo/BaseinfoDepartmentDao.java
package com.lsh.wms.core.dao.baseinfo; import com.lsh.wms.core.dao.MyBatisRepository; import com.lsh.wms.model.baseinfo.BaseinfoDepartment; import java.util.List; import java.util.Map; @MyBatisRepository public interface BaseinfoDepartmentDao { void insert(BaseinfoDepartment baseinfoDepartment); void update(Bas...
liuhaozzu/linux
kernels/linux-2.6.24/drivers/scsi/st.h
<filename>kernels/linux-2.6.24/drivers/scsi/st.h #ifndef _ST_H #define _ST_H #include <linux/completion.h> #include <linux/mutex.h> #include <linux/kref.h> #include <scsi/scsi_cmnd.h> /* Descriptor for analyzed sense data */ struct st_cmdstatus { int midlevel_result; struct scsi_sense_hdr sense_hdr; int have_sens...
dougbrion/ModernGL
tests/experimental/conftest.py
<reponame>dougbrion/ModernGL import pytest from context import ctx
freundlich/fcppt
libs/core/include/fcppt/algorithm/loop_break_tuple.hpp
<filename>libs/core/include/fcppt/algorithm/loop_break_tuple.hpp<gh_stars>10-100 // Copyright <NAME> 2009 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_ALGORITHM_LOOP...
owebboy/canvas-editor
app/components/placeholder-editor/component.js
export { default } from 'canvas-editor/components/placeholder-editor/component';
wangsxx/yiniko_edu_system
edu-springcloud/service/service_oss/src/main/java/com/wangs/oss/util/ReadProperties.java
package com.wangs.oss.util; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; /** * @File : ReadProperties.java * @Time : 2021/2/3 14:12 * @Author: Wangs * @Decs : */ @Component public class ReadP...
davidtangGT/mol2vector
molml/base.py
""" A collection of all the base transformer constructions. This module is a collection of all the base classes and mixins for use with the other transformers. """ import inspect import multiprocessing from functools import reduce import json import numpy from pathos.multiprocessing import ProcessingPool as Pool fro...
lparth/spiffe-spire
test/mock/agent/manager/cache/cache_mock.go
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/spiffe/spire/pkg/agent/manager/cache (interfaces: Cache) package mock_cache import ( gomock "github.com/golang/mock/gomock" cache "github.com/spiffe/spire/pkg/agent/manager/cache" common "github.com/spiffe/spire/proto/common" reflect "reflect" ) //...
gsanchezgavier/nri-kubernetes
src/ksm/client/client.go
<gh_stars>0 package client import ( "fmt" "time" "github.com/sethgrid/pester" log "github.com/sirupsen/logrus" "github.com/newrelic/nri-kubernetes/v2/internal/logutil" "github.com/newrelic/nri-kubernetes/v2/src/client" "github.com/newrelic/nri-kubernetes/v2/src/prometheus" ) // Client implements a client for...
ayush-kr-gupta/beginners-C-program-examples
BasicArithmatic.c
<gh_stars>100-1000 // A simple arithmetic operation on two integers #include<stdio.h> int main() { int number1, number2, addition, subtraction, multiplication, division, modulo; printf("Enter two numbers :\n"); scanf("%d%d", & number1, & number2); addition = number1 + number2; subtraction = nu...
jhaapako/tcf
ttbd/conf_00_lib_capture.py
#! /usr/bin/python3 # # Copyright (c) 2019 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # # """.. _conf_00_lib_capture: Configuration API for capturing audio and video ----------------------------------------------- These capture objects are meant to be fed to the capture interface declaration of a targe...
1960176680/LiquorAndroidProject
app/src/main/java/com/hz/tt/util/ThreadPoolManager.java
<gh_stars>0 package com.hz.tt.util; import android.os.Handler; import android.os.Looper; import android.os.Message; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; /** * Created by Admin...
horfee/alarmpi
devices/Device.h
/* * Sensor.h * * Created on: 21 juil. 2015 * Author: horfee */ #ifndef ALARMDEVICE_H_ #define ALARMDEVICE_H_ #include <string> #include "../json/json.h" namespace alarmpi { class Device { public: Device(int id, std::string description); virtual ~Device(); int getId() const; std::string getDescripti...
Unchained112/WebCardGames
public/js/views/game24startViews.js
function StartView(props){ return( <div className="game24start"> <div className="w3-container w3-center"> <div className="w3-container w3-margin-top"> <img src={"./assets/24gamelogowhite.png"} style="width:200px"></img> </div> ...
maierfelix/emerald-engine
src/engine/map/autotile.js
import * as CFG from "../../cfg"; import { assert, getTilesetTileIndexBy, getTilesetTilePositionByIndex } from "../../utils"; export function drawAutotile(x, y, tileset, layer, sx, sy) { // don't allow drawing into preview layer if (layer === CFG.ENGINE_TS_LAYERS.PREVIEW) return; if (!this.coordsInBounds(...
specter01wj/LAB-Lynda
Front-End/React/Learning Redux/Ex_Files_Learning_Redux/Exercise Files/Ch03/03_05/finished/src/index.js
<filename>Front-End/React/Learning Redux/Ex_Files_Learning_Redux/Exercise Files/Ch03/03_05/finished/src/index.js<gh_stars>0 import C from './constants' import storeFactory from './store' const initialState = (localStorage['redux-store']) ? JSON.parse(localStorage['redux-store']) : {} const saveState = () => { cons...
Gerhut/DLWorkspace
src/ClusterManager/endpoint_manager.py
#!/usr/bin/env python3 import json import os import time import sys import datetime import random import re import logging import yaml import logging.config import argparse from kubernetes import client, config as k8s_config from kubernetes.client.rest import ApiException from cluster_manager import setup_exporter_t...
soungsid/algoliasearch-client-java-2
algoliasearch-common/src/main/java/com/algolia/search/responses/CreateUpdateKey.java
<reponame>soungsid/algoliasearch-client-java-2 package com.algolia.search.responses; public class CreateUpdateKey { private String key; private String createdAt; /** * Name of this key */ public String getKey() { return key; } public CreateUpdateKey setKey(String key) { this.key = key; ...
mrragava/mystikos-security
src/dynamic/fuzzing/syscallfuzzer/fds/fds.c
<filename>src/dynamic/fuzzing/syscallfuzzer/fds/fds.c #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "fd.h" #include "list.h" #include "net.h" #include "params.h" #include "pids.h" #include "random.h" #include "sanitise.h" #include "shm.h" #include "trinity.h...
ustegrew/csv-validator
assets/charset-detector/icu/src/icu4j-61_1_src/main/tests/translit/src/com/ibm/icu/dev/test/translit/IncrementalProgressTest.java
<filename>assets/charset-detector/icu/src/icu4j-61_1_src/main/tests/translit/src/com/ibm/icu/dev/test/translit/IncrementalProgressTest.java // © 2017 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html#License package com.ibm.icu.dev.test.translit; import java.util.Enu...
gkorland/cytoscaperedisgraph
src/test/java/com/redislabs/cytoscape/redisgraph/internal/graph/GraphTest.java
<gh_stars>1-10 package com.redislabs.cytoscape.redisgraph.internal.graph; import org.junit.Test; public class GraphTest { @Test public void addNode() { Graph graph = new Graph(); graph.add(new GraphNode(1)); graph.add(new GraphNode(2)); assert (graph.size() == 2); Gra...
glenn-edgar/esp32_gateway
components/modbus_relay_control/modbus_relay_configuration.c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <esp_types.h> #include "msgpack_rx_handler.h" #include "modbus_relay_configuration.h" static bool modbus_relay_find_baud_rate( cmp_ctx_t *ctx, uint32_t *baud_rate); static bool modbus_relay_find_modbus_address( cmp_ctx_t *ctx, uint32_t *mod...
pyronia-sys/libpyronia
libapparmor/parser/parser_main.c
<reponame>pyronia-sys/libpyronia /* * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 * NOVELL (All rights reserved) * * Copyright (c) 2010 - 2013 * Canonical Ltd. (All rights reserved) * * This program is free software; you can redistribute it and/or * modify it under the terms o...
Taxcut/Fishy
Abilities/src/me/fishy/abilities/listeners/AntiBuildEggListener.java
<filename>Abilities/src/me/fishy/abilities/listeners/AntiBuildEggListener.java package me.fishy.abilities.listeners; import me.fishy.abilities.Main; import me.fishy.abilities.utils.CC; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.Sound; import org.bukkit.configuration.file.FileConfigu...
ruleLearn/rulelearn
src/test/java/org/rulelearn/dominance/DominanceConeCalculatorTest.java
<reponame>ruleLearn/rulelearn /** * Copyright (C) <NAME>, <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 require...
ruitobias/T2ti-ERP-JAVA
ECD/src/java/com/t2tierp/sped/contabil/blocoj/RegistroJ930.java
<reponame>ruitobias/T2ti-ERP-JAVA /* * The MIT License * * Copyright: Copyright (C) 2014 T2Ti.COM * * 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 wit...
ipa-mdl/textX-LS
textX-LS/server/textx_ls_server/utils.py
<filename>textX-LS/server/textx_ls_server/utils.py import functools from typing import Callable def skip_not_supported_langs(func: Callable) -> Callable: """Decorator which checks if document is in the workspace and call decorated function. Args: func: callable that is being decorated Returns...
uruzahe/carla
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_base/logger.py
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
densogiaichned/serenity
Userland/Libraries/LibWeb/HTML/TextMetrics.cpp
/* * Copyright (c) 2021, sin-ack <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include "TextMetrics.h" namespace Web::HTML { RefPtr<TextMetrics> TextMetrics::create() { return adopt_ref(*new TextMetrics()); } }
marpple/FxDOM
src/parents.js
import nextOrPrevAll from "./_internal/_nextOrPrevAll.js"; export default nextOrPrevAll("parentNode", "push");
googleapis/googleapis-gen
google/cloud/retail/v2alpha/google-cloud-retail-v2alpha-java/proto-google-cloud-retail-v2alpha-java/src/main/java/com/google/cloud/retail/v2alpha/ImportCompletionDataRequestOrBuilder.java
<filename>google/cloud/retail/v2alpha/google-cloud-retail-v2alpha-java/proto-google-cloud-retail-v2alpha-java/src/main/java/com/google/cloud/retail/v2alpha/ImportCompletionDataRequestOrBuilder.java<gh_stars>1-10 // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/retail/v2alpha/import_co...
maciejg-git/vue-bootstrap-icons
dist-mdi/mdi/puzzle-heart.js
<filename>dist-mdi/mdi/puzzle-heart.js import { h } from 'vue' export default { name: "PuzzleHeart", vendor: "Mdi", type: "", tags: ["puzzle","heart"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"cu...
mats9693/study
points/eth/subscrib_log/main.go
package main import ( "context" "fmt" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/...
snippet-bank/snippets
files/file-read-by-lines/snippet.go
package snippets import ( "bufio" "log" "os" ) // readByLines reads a file into memory line by line. func readByLines(path string, callback func(str string)) { file, err := os.Open(path) if err != nil { log.Fatal(err) } defer file.Close() scanner := bufio.NewScanner(file) for scanner.Scan() { line := sc...
crimsonknave/trakt
lib/trakt/users.rb
<reponame>crimsonknave/trakt module Trakt class Users < Cot::Collection collected_class User end end
cientopolis/collaboratory
spec/workers/classification_data_mailer_worker_spec.rb
require 'spec_helper' RSpec.describe ClassificationDataMailerWorker do let(:project) { create(:project) } let(:s3_url) { "https://fake.s3.url.example.com" } it 'should deliver the mail' do expect{ subject.perform(project.id, s3_url, ["<EMAIL>"]) }.to change{ ActionMailer::Base.deliveries.count }.by(1) end...
sizeofvoid/ifconfigd
usr/src/sys/nfs/nfs_node.c
/* $OpenBSD: nfs_node.c,v 1.55 2010/12/21 20:14:43 thib Exp $ */ /* $NetBSD: nfs_node.c,v 1.16 1996/02/18 11:53:42 fvdl Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at The Univ...
ocerman/TaskManager
source/TaskManager.h
/* * Copyright 2000 by <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
fbcom/project-euler
080_square_root_digital_expansion.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # A Solution to "Square root digital expansion" – Project Euler Problem No. 80 # by <NAME> # # Sourcecode: https://github.com/fbcom/project-euler # Problem statement: https://projecteuler.net/problem=80 from decimal import * getcontext().prec = 102 # 2 places before the ...
tschiemer/midipatcher
src/AbstractControl.cpp
#include <AbstractControl.hpp> #include <Port/AbstractPort.hpp> #include <Port/AbstractInputOutputPort.hpp> // #include <Port/MidiIn.hpp> #include <version.hpp> #include <Log.hpp> #include <Error.hpp> namespace MidiPatcher { AbstractControl::AbstractControl(PortRegistry * portRegistry){ assert(portRegistry...
HeliumEdu/platform
helium/auth/tests/views/apis/testcaseuserprofileviews.py
import json from django.contrib.auth import get_user_model from django.urls import reverse from mock import mock from rest_framework import status from rest_framework.test import APITestCase from helium.auth.tests.helpers import userhelper from helium.common.services.phoneservice import HeliumPhoneError __author__ =...
INAF-CTA-AAI/grouper
grouper-misc/tierApiAuthzClient/src/ext/edu/internet2/middleware/tierApiAuthzClientExt/org/apache/commons/collections/MapUtils.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")...
tootedom/tomcat-memcached-response-filter
src/main/java/org/greencheek/web/filter/memcached/io/ResizableByteBufferNoBoundsCheckingBackedOutputStream.java
<reponame>tootedom/tomcat-memcached-response-filter package org.greencheek.web.filter.memcached.io; import java.io.IOException; import java.io.OutputStream; import java.nio.BufferOverflowException; import java.nio.ByteBuffer; public class ResizableByteBufferNoBoundsCheckingBackedOutputStream extends OutputStream { ...
lijgame/boost
libs/tr1/test/test_unordered_map.cpp
<filename>libs/tr1/test/test_unordered_map.cpp<gh_stars>100-1000 // (C) Copyright <NAME> 2008. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // These are the headers in...
haizimen/STelephoneGoods
app/src/main/java/com/phone1000/stelephonegoods/activities/IdCardCertificationActivity.java
package com.phone1000.stelephonegoods.activities; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.phone1000.stelephonegoods.R; public class IdCardCertificationActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { sup...
solitardj9/timeline-service
timelineService/src/main/java/com/solitardj9/timelineService/application/timelineSyncManager/service/impl/TimelineSyncManagerImpl.java
package com.solitardj9.timelineService.application.timelineSyncManager.service.impl; import java.sql.Timestamp; import java.util.List; import java.util.TreeMap; import javax.annotation.PostConstruct; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotatio...
krynju/openmct
src/plugins/summaryWidget/test/ConditionEvaluatorSpec.js
define(['../src/ConditionEvaluator'], function (ConditionEvaluator) { describe('A Summary Widget Rule Evaluator', function () { var evaluator, testEvaluator, testOperation, mockCache, mockTestCache, mockComposition, mockConditions, ...
fabio-d/fuchsia-stardock
src/ui/scenic/tests/gfx_integration_tests/pixel_test.cc
// Copyright 2022 The Fuchsia 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 "src/ui/scenic/tests/gfx_integration_tests/pixel_test.h" #include <fuchsia/ui/policy/cpp/fidl.h> #include <zircon/status.h> namespace integratio...
AprilXiaoyanLiu/whitenoise-system
synth/tests/test_quail.py
<reponame>AprilXiaoyanLiu/whitenoise-system import subprocess import os import pytest import pandas as pd from diffprivlib.models import LogisticRegression as DPLR try: from snsynth.preprocessors import BaseTransformer from snsynth.pytorch import PytorchDPSynthesizer from snsynth.pytorch.nn import PATECT...
jjcm/soci-backend
models/url_test.go
<filename>models/url_test.go package models import "testing" func TestWeCanCheckIfAUrlIsAvailable(t *testing.T) { setupTestingDB() isAvaiable, _ := URLIsAvailable("anything") if !isAvaiable { t.Errorf("Because the database is empty, any url should be available") } // cool, now let's create a post and the URL...
Albert-Ma/bert-fine-tuned-gain
pytorch-pretrained-BERT/scripts/preprocess_onto.py
<filename>pytorch-pretrained-BERT/scripts/preprocess_onto.py import argparse from tqdm import tqdm from pytorch_pretrained_bert.tokenization import BertTokenizer def preprocess(sentence, tokenizer, max_seq_length): # print(sentence) sent = [line.split()[3] for line in sentence if (not line.strip().startswith...
tmeralli-tehtris/open-vm-tools-security-research
open-vm-tools/services/plugins/dndcp/dnd/dndInt.h
/********************************************************* * Copyright (C) 2005 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation version 2.1 and no ...
shahbagdadi/py-algo-n-ds
arrays/minOpsToZero/Solution.py
<filename>arrays/minOpsToZero/Solution.py from typing import List class Solution: def minOperations(self, nums: List[int], x: int) -> int: total = sum(nums) l , w, mw = 0 , 0, -1 for r in range(len(nums)) : w += nums[r] while w > total - x and l <= r : ...
Amourspirit/ooo_uno_tmpl
ooobuild/lo/document/cmis_property.py
<filename>ooobuild/lo/document/cmis_property.py<gh_stars>0 # coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
Conjoint-ly/turf-analysis-ui
templates/new/services/export.js
export default { exportGGraphAsPicture(chart, filename) { if (typeof chart !== 'undefined') { if (navigator.msSaveBlob) { navigator.msSaveBlob(window.dataURItoBlob(chart.getImageURI()), filename); } else { const link = document.createElement('a'); link.href = chart.getIm...
Guardians-DSC/Front-HoCo
src/services/api.js
/* eslint-disable no-unused-vars */ import axios from 'axios' const api = axios.create({ baseURL: process.env.REACT_APP_BASE_URL, }) export const getCredits = async () => { // const response = await api.get('/creditos') // console.log(response) return { creditos: 11, maximo: 22, } // return respon...
yimiqidage/study-by-boot
src/main/java/com/annotations/repeatable/Book2.java
<gh_stars>0 package com.annotations.repeatable; import java.util.Arrays; /** * Authors 的另一种写法,直接在Authors中定义多个Author注解对象 */ @Authors({@Author(name="张三Book2"),@Author(name="李四Book2"),@Author(name="王五Book2")}) public class Book2 { public static void main(String[] args) { Authors authors = Book2.class.getAn...
xDamneDx/Epic-React
bookshelf/scripts/update-branch.js
const {updateExerciseBranch, spawnSync} = require('./utils') process.env.HUSKY_SKIP_HOOKS = 1 updateExerciseBranch(spawnSync('git rev-parse --abbrev-ref HEAD'))
jhnbrns/sfc-controller
plugins/controller/utils.go
// Copyright (c) 2018 Cisco and/or its affiliates. // // 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...
SpencerL-Y/SESL
include/smack/sesl/mem_manage/MemoryManager.h
#include <cstdlib> #include <iostream> #include <set> #include "smack/sesl/ast/BoogieAst.h" #ifndef MEMORYMANAGER_H #define MEMORYMANAGER_H namespace smack { class MemoryManager { private: std::set<const Expr*> pointers; public: void registerPointer(const Expr* pointer); void clearMem...
Floritte/Game-Engine-Samples
tests/Raytracing.cpp
#include "Raytracing.h" #include <GraphicsCore.h> #include "Backends/Vulkan/VulkanTexture.h" #include "Backends/Vulkan/VulkanContext.h" #include "Backends/Vulkan/VulkanRaytracingPipeline.h" using namespace SmolEngine; int main(int argc, char** argv) { EditorCameraCreateInfo cameraCI = {}; Camera* camera = new Edit...
FlavioFalcao/open-source-search-engine
looptest.cpp
<filename>looptest.cpp #include "gb-include.h" #include "Loop.h" #include <pthread.h> #include <sys/types.h> // pid_t static pthread_attr_t s_attr; static void *startUp ( void *state ) ; static pid_t s_pid; int main ( int argc , char *argv[] ) { s_pid = getpid(); if ( ! g_loop.init() ) { log(" ...
zipated/src
ios/chrome/browser/web/resources/credential_manager.js
<reponame>zipated/src // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview JavaScript implementation of the credential management API * defined at http://w3c.github.io/webappsec-credent...
yankay/autoscaler
vertical-pod-autoscaler/e2e/vendor/github.com/google/cadvisor/collector/config.go
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
hanhansoul/hadoop-with-comments
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/GetGroupsForTesting.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...
bioinsilico/3DBIONOTES
app/lib/network_ppi_manager/network_manager.rb
<reponame>bioinsilico/3DBIONOTES module NetworkPpiManager module NetworkManager include GlobalTools::FetchParserTools include ProteinManager::FetchSequenceInfo include Interactome3dManager::FetchInteractome3d include ComputingTools::BiopythonInterfaceLib::BiopythonInterfaceTools def getNetwrokF...
18612643035/website
gatsby-ssr.js
<gh_stars>0 // gatsby-ssr.js 配置页面预渲染(主要用于添加渲染组件到页面中,比如百度地图脚本) const React = require('react'); // exports.onRenderBody = ( // { setHeadComponents, setPostBodyComponents }, // ) => { // // const BAIDU_MAP_SCRIPT = ( // // <script // // key={`baidu-map-scripts`} // // src={'http://api.map.baidu.com/a...
rirl/bit
e2e/flows/export-eject.e2e.3.js
<reponame>rirl/bit import chai, { expect } from 'chai'; import path from 'path'; import Helper from '../e2e-helper'; import BitsrcTester, { username, supportTestingOnBitsrc } from '../bitsrc-tester'; import { BASE_WEB_DOMAIN } from '../../src/constants'; chai.use(require('chai-fs')); (supportTestingOnBitsrc ? describ...
lejeunel/glia
src/sshmt/main_pred_mlp.cxx
#include "util/text_cmd.hxx" #include "alg/nn.hxx" #include "util/stats.hxx" #include "util/mp.hxx" #include "util/text_io.hxx" using namespace glia; #define EIGEN_DONT_PARALLELIZE std::vector<std::string> modelFiles; std::string featMinMaxFile; std::vector<double> bcModelDistributorArgs; std::vector<std::string> fea...
MadRatSRP/intellij-obsolete-plugins
IDEtalk/core/src/jetbrains/communicator/core/commands/NamedUserCommand.java
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package jetbrains.communicator.core.commands; import javax.swing.*; /** * @author Kir * * Named commands are used in actions. */ public interface NamedUserCommand extends U...
Slach/gramework
subroute.go
<reponame>Slach/gramework<filename>subroute.go package gramework import "fmt" // GET registers a handler for a GET request to the given route func (r *SubRouter) GET(route string, handler interface{}) *SubRouter { route = r.prefixedRoute(route) if r.parent != nil { r.parent.handleReg(MethodGET, route, handler) }...
jroovers/dynamo
dynamo-frontend/src/test/java/com/ocs/dynamo/ui/component/ServiceBasedDetailsEditGridTest.java
package com.ocs.dynamo.ui.component; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; ...
eep60b/etlexamples
data-preparation/data-implementation/src/test/java/com/etlsolutions/examples/data/specific/person/PersonalDetailEntityTest.java
<reponame>eep60b/etlexamples<gh_stars>0 /* * 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 Licen...
ripter/js1k
2016/public/scripted/battle_trap_1100_c.js
!function(){ function n(n){ c.fillStyle="#001f3f", c.fillRect(0,0,a.width,a.height), c.fillStyle="#01FF70", n.forEach( function(n,a){ c.fillText(n,100,100+75*a), console.log(n) } ) } function t(a){ function t(n){ return 5===o.length&&o.shift(), o.pus...
squeeny/BaseMod
mod/src/main/java/basemod/BaseMod.java
<reponame>squeeny/BaseMod package basemod; import basemod.abstracts.*; import basemod.eventUtil.AddEventParams; import basemod.eventUtil.EventUtils; import basemod.helpers.RelicType; import basemod.helpers.dynamicvariables.BlockVariable; import basemod.helpers.dynamicvariables.DamageVariable; import basemod.helpers.dy...
microsoftgraph/msgraph-beta-sdk-java
src/main/java/com/microsoft/graph/requests/VendorRequestBuilder.java
<reponame>microsoftgraph/msgraph-beta-sdk-java<filename>src/main/java/com/microsoft/graph/requests/VendorRequestBuilder.java // Template Source: BaseEntityRequestBuilder.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved...
vuzzan/openclinic
src/com/model/dao/KetquaXnDlg.java
package com.model.dao; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.TableItem; import org.eclipse.swt.graphics.Image; import org.ec...
joschi/JadConf
src/test/java/com/github/joschi/jadconfig/validators/StringLowercaseValidatorTest.java
<filename>src/test/java/com/github/joschi/jadconfig/validators/StringLowercaseValidatorTest.java package com.github.joschi.jadconfig.validators; import com.github.joschi.jadconfig.ValidationException; import org.junit.Before; import org.junit.Test; /** * Unit tests for {@link StringLowercaseValidator} * * @author ...
reels-research/iOS-Private-Frameworks
LinkPresentation.framework/LPHTMLVideoComponent.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/LinkPresentation.framework/LinkPresentation */ @interface LPHTMLVideoComponent : LPHTMLComponent <DOMEventListener> { bool _isVisible; WebScriptObject * _isVisibleFunction; DOMElement * _muteButton; DOMElement * _muteButtonCon...
lucksonk/mda-studio
src/main/java/za/co/enigma/turing/mda/jee/xsd/connector/AdminobjectType.java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.04....
howkymike/Wirtualny-dziekanat
client/src/components/CourseDetailsComponent/CourseDetailsFacultyPanel.js
import React, { useEffect, useState } from 'react'; import { FormGroup, Label, Input, Row, Col, TabPane } from 'reactstrap'; const CourseDetailsFacultyPanel = props => { const { state, dispatch, faculties, fields } = props; const [faculty, setFaculty] = useState(""); const [field, setField] = use...
IThawk/learnCode
javaBase/distribute-demo/src/main/java/com/gupaoedu/vip/FastJsonSeriliazer.java
<reponame>IThawk/learnCode<filename>javaBase/distribute-demo/src/main/java/com/gupaoedu/vip/FastJsonSeriliazer.java<gh_stars>1-10 package com.gupaoedu.vip; import com.alibaba.fastjson.JSON; /** * 腾讯课堂搜索 咕泡学院 * 加群获取视频:608583947 * 风骚的Michael 老师 */ public class FastJsonSeriliazer implements ISerializer{ @Overrid...
envimate/httpmate
examples/aws-lambda/src/main/java/com/envimate/httpmate/examples/awslambda/usecases/HelloUseCase.java
<filename>examples/aws-lambda/src/main/java/com/envimate/httpmate/examples/awslambda/usecases/HelloUseCase.java /* * Copyright (c) 2019 envimate GmbH - https://envimate.com/. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed ...
KITE-2018/kite-ndn-cxx
ndn-cxx/net/ethernet.hpp
<gh_stars>1-10 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2014-2018 Regents of the University of California, * Arizona Board of Regents, * Colorado State University, * University Pierre & <NAME>, Sorbon...
npocmaka/Windows-Server-2003
tools/bcdazzle.js
<reponame>npocmaka/Windows-Server-2003 /* Dazzle.js: Usage: Dazzle.js [-e env_templ.xml] [-man buildmanager Identity] [-m macros_file] Get a list of machines For each machine create an alias for each depot on the machine, except root. BC1 jporkka1\bldcon1 _x86 _fre _x86fre _postbuil...
MrsTrier/RememberArt
Pods/gRPC-Core/src/core/lib/slice/percent_encoding.cc
version https://git-lfs.github.com/spec/v1 oid sha256:e6b36e23df39a0dae2c59b6d9122c3db4b0dba9e9f6588a51a55f090654591fb size 5494
klen/muffin-example
setup.py
<reponame>klen/muffin-example<gh_stars>1-10 """Setup the application.""" from pathlib import Path from setuptools import setup requirements = (Path(__file__).parent / 'requirements.txt').read_text().split('\n') setup( install_requires=[line for line in requirements if line and not line.startswith('#')] )
ghsecuritylab/tomato_egg
release/src/linux/linux/arch/mips/lasat/prom.h
<filename>release/src/linux/linux/arch/mips/lasat/prom.h #ifndef PROM_H #define PROM_H extern void (* prom_display)(const char *string, int pos, int clear); extern void (* prom_monitor)(void); extern void (* prom_printf)(const char * fmt, ...); #endif
tejasvinu/hetu-core
presto-main/src/test/java/io/prestosql/operator/TestFilterAndProjectOperator.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 * distribut...
Kevin030796/hcm-petrosida
org.taowi.hcm.payroll/src/org/taowi/hcm/core/model/MHCEmployee.java
<reponame>Kevin030796/hcm-petrosida<filename>org.taowi.hcm.payroll/src/org/taowi/hcm/core/model/MHCEmployee.java package org.taowi.hcm.core.model; import java.sql.ResultSet; import java.util.Properties; import org.taowi.hcm.core.model.MEmployee; import org.taowi.hcm.payroll.model.MHCPayrollTrigger; public class MHCE...