repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ylehilds/NODE.JS-APPLICATION-DEVELOPMENT-LFW211
labs-jan-5-2021/ch-16/labs-2/validate.js
<filename>labs-jan-5-2021/ch-16/labs-2/validate.js 'use strict' const assert = require('assert').strict const { spawnSync } = require('child_process') const { writeFileSync } = require('fs') const store = require.resolve('./store') const storeCode = Buffer.from('2775736520737472696374270a6d6f64756c652e6578706f727473203...
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-mmacigewski
src/examples/11_module/01_ref_pointers/main.cpp
#include "ref_pointers.h" #include<iostream> using std::cout; int main() { int r = 0, p = 0; int* ref_r = &r; cout << "Address of r: " << &r; cout << "\nValue of r: " << r; cout << "\nAddress of ref_r: " << &ref_r << "\n\n"; //& gets the memory address instead of value, instead if you printed ref_r it would p...
codingno/sia-uiii
components/utils/UserSide.js
<reponame>codingno/sia-uiii<gh_stars>0 import Avatar from "@mui/material/Avatar"; import Card from "@mui/material/Card"; import Divider from "@mui/material/Divider"; import Stack from "@mui/material/Stack"; import Grid from "@mui/material/Grid"; import Button from "@mui/material/Button"; import Modal from "@mui/materia...
l2dy-sonarcloud/sensu-go
backend/apid/graphql/node_test.go
package graphql import ( "context" "fmt" "testing" corev2 "github.com/sensu/sensu-go/api/core/v2" "github.com/sensu/sensu-go/backend/apid/graphql/globalid" "github.com/sensu/sensu-go/backend/apid/graphql/relay" "github.com/sensu/sensu-go/graphql" "github.com/stretchr/testify/assert" "github.com/stretchr/test...
shibing624/blogCode
src/main/java/xm/xml/ListDemo.java
<reponame>shibing624/blogCode<gh_stars>1-10 package xm.xml; import org.dom4j.Attribute; import org.dom4j.Document; import org.dom4j.Element; import org.dom4j.io.SAXReader; import java.io.File; import java.util.List; public class ListDemo { public static void main(String[] args) throws Exception { org.j...
Pumpkin-Cap/Pumpkin-Cap-Repo
script/testingTests.js
<filename>script/testingTests.js // describe('myWhileLoopFunction', function(){ // it("returns the appropriate time that it'll take for a duck to reach us", function(){ // expect(myWhileLoopFunction(20)).to.equal(10); // expect(myWhileLoopFunction(10)).to.equal(5); // expect(myWhileLoopFunction(4)).to.equ...
AsahiOS/gate
usr/src/uts/i86pc/vm/kboot_mmu.h
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
chopikus/refactor
training/clone2/37.2.java
<reponame>chopikus/refactor<gh_stars>0 public class PII{ double first,second; public PII(){} // empty constructor public PII(double first, double second){ this.first = first; this.second = second; } //lmao }
phelpsw/msp430-driverlib
examples/MSP430F5xx_6xx/adc12_a/adc12_a_ex8_tempSensor.c
/* --COPYRIGHT--,BSD * Copyright (c) 2017, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the ab...
adamstegman/photo_albums
spec/active_record_spec_helper.rb
require 'spec_helper' require File.expand_path("../../config/environment", __FILE__) # Checks for pending migrations before tests are run. # If you are not using ActiveRecord, you can remove this line. ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration) RSpec.configure do |config| config.inc...
IKangXu/dc-sdk
modules/layer/type/HeatLayer.js
<reponame>IKangXu/dc-sdk /** * @Author: Caven * @Date: 2020-02-27 00:35:35 */ import { Cesium } from '@dc-modules/namespace' import State from '@dc-modules/state/State' import { SceneEventType } from '@dc-modules/event' import { Transform } from '@dc-modules/transform' import Position from '@dc-modules/position/Pos...
Ace-Ma/LSOracle
OpenTimer/example/sizer/sizer.cpp
<filename>OpenTimer/example/sizer/sizer.cpp // This program demonstrates how to resize a design of six NAND2 cells // and reports timing/power/area values using OpenTimer C++ API. // // Design : sizer.v // SDC : sizer.sdc // SPEF : sizer.spef // Library: NangateOpenCellLibrary #include <ot/timer/timer.hpp> int ...
mdanese1954/mikes-uaa
server/src/main/java/org/cloudfoundry/identity/uaa/authentication/manager/ScopeAuthenticationFilter.java
/******************************************************************************* * Cloud Foundry * Copyright (c) [2009-2016] Pivotal Software, Inc. All Rights Reserved. * * This product is licensed to you under the Apache License, Version 2.0 (the "License"). * You may not use this product except ...
imengyu/720PanoramaViewer
720Core/CCMeshLoader.cpp
#include "CCMeshLoader.h" #include "CCMesh.h" #include "CCObjLoader.h" #include "PathHelper.h" #include "720Core.h" CCObjLoader* objLoader = nullptr; CCMeshLoader* CCMeshLoader::GetMeshLoaderByType(CCMeshType type) { switch (type) { case CCMeshType::MeshTypeObj: return objLoader; case CCMeshType::MeshTypeFbx: ...
wedevelopmx/representame
app/routes/state.js
var express = require('express'); var router = express.Router(); var models = require('../models'); /* GET home page. */ router.route('/') .get(function(req, res, next) { models.State .findAll() .then(function(states) { res.json(states); }); }); router.route('/:id') .get(function(req, res...
markreidvfx/pyaaf_old
src/_AAFOPDefs.cpp
<filename>src/_AAFOPDefs.cpp // Boost Includes ============================================================== #include <boost/python.hpp> #include <boost/cstdint.hpp> // Includes ==================================================================== #include <AAFOPDefs.h> // Using =====================================...
HzjNeverStop/sofa-common-tools
src/main/java/com/alipay/sofa/common/thread/TimeWaitRejectedExecutionHandler.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 may ...
ggustin93/decide-showcase
packages/icons/src/line/User.js
<gh_stars>1-10 import React from 'react'; export default function User(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width={24} height={24} {...props}> <path d="M15.71,12.71a6,6,0,1,0-7.42,0,10,10,0,0,0-6.22,8.18,1,1,0,0,0,2,.22,8,8,0,0,1,15.9,0,1,1,0,0,0,1,.89h.11a1,1,0,0,0...
tonioshikanlu/tubman-hack
sources/b/l/a/c/f/e/il.java
<gh_stars>1-10 package b.l.a.c.f.e; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import b.l.a.c.b.a; import java.util.List; public final class il implements aj { /* renamed from: h reason: collision with root package name */ public String f3072h; /* renamed from: i reason: ...
dennling/SLogo
src/model/commands/Commands.java
package model.commands; import java.util.ArrayList; import java.util.Arrays; import java.util.Enumeration; import java.util.HashMap; import java.util.ResourceBundle; /** * @author <NAME> * * Uses reflection to build Commands from the keys and values in the * internationalization resource files. Al...
nikosnikolaidis/juneau
juneau-core/juneau-marshall/src/main/java/org/apache/juneau/internal/Version.java
<reponame>nikosnikolaidis/juneau // *************************************************************************************************************************** // * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * // * distributed with this work f...
ideas-edu/AskElleWeb
app/controller/Exercises.js
<filename>app/controller/Exercises.js Ext.require('Ext.app.Controller'); Ext.define ( 'FPT.controller.Exercises' , { extend: 'Ext.app.Controller' , views: ['exercises.List'] , stores: ['Exercises'] , controllers: ['Tutor'] , refs: [ { selector: 'exerciselist' , ref: 'exerciseList' } ...
npocmaka/Windows-Server-2003
multimedia/dshow/filters.ks/wdmcap/camera.h
<reponame>npocmaka/Windows-Server-2003 /*++ Copyright (C) Microsoft Corporation, 1996 - 1997 Module Name: camera.h Abstract: Internal header. --*/ class CCameraControlInterfaceHandler : public CUnknown, public IAMCameraControl { public: DECLARE_IUNKNOWN; static CUnk...
kaist-plrg/jest
src/main/scala/kr/ac/kaist/jest/model/algorithm/ArrayBindingPattern2ContainsExpression3.scala
package kr.ac.kaist.jest.model import kr.ac.kaist.jest.ir._ import kr.ac.kaist.jest.ir.Parser._ object ArrayBindingPattern2ContainsExpression3 extends Algorithm { val name: String = "ArrayBindingPattern2ContainsExpression3" val length: Int = 0 val lang: Boolean = true val func: Func = FixUIdWalker(parseFunc("...
origami-build/origami
task-dispatcher/src/main/java/net/dblsaiko/origami/taskdispatcher/protocol/Unit.java
<reponame>origami-build/origami<filename>task-dispatcher/src/main/java/net/dblsaiko/origami/taskdispatcher/protocol/Unit.java package net.dblsaiko.origami.taskdispatcher.protocol; public enum Unit implements BinSerialize { INSTANCE; @Override public String toString() { return "Unit"; } @O...
junglegodlion/project-ct
ct-web/src/main/java/com/jungle/ct/web/bean/Calllog.java
package com.jungle.ct.web.bean; public class Calllog { private Integer id; private Integer telid; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getTelid() { return telid; } public void setTelid(Intege...
myvyang/intellij-community
python/testSrc/com/jetbrains/python/PyOptimizeImportsTest.java
<filename>python/testSrc/com/jetbrains/python/PyOptimizeImportsTest.java /* * Copyright 2000-2013 JetBrains s.r.o. * * 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...
detnavillus/modular-informatic-designs
search-core/src/main/java/com/modinfodesigns/search/IQueryTreeParser.java
<gh_stars>1-10 package com.modinfodesigns.search; /** * Creates an QueryTree from a query String. * * @author <NAME> */ public interface IQueryTreeParser extends IQueryParser { public QueryTree createQueryTree( String queryTreeName, String queryString ); }
matbrewer396/screeps-kotlin
node_modules/@screeps/engine/dist/processor/global-intents/power/suicidePowerCreep.js
'use strict'; var q = require('q'), _ = require('lodash'), utils = require('../../../utils'), driver = utils.getDriver(), C = driver.constants; module.exports = function (intent, user, scope) { const roomObjectsByType = scope.roomObjectsByType; var powerCreep = _.find(roomObjectsByType.power...
vberegov/blackduck-artifactory
blackduck-artifactory-common/src/main/java/com/synopsys/integration/blackduck/artifactory/modules/inspection/externalid/ArtifactoryInfoExternalIdExtractor.java
<gh_stars>1-10 /* * blackduck-artifactory-common * * Copyright (c) 2021 Synopsys, Inc. * * Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide. */ package com.synopsys.integration.blackduck.artifactory.modules.inspection.extern...
sercxtyf/onboard
kernel/com.onboard.domain.mapper.model/src/main/java/com/onboard/domain/mapper/model/DiscussionObject.java
/******************************************************************************* * Copyright [2015] [Onboard team of SERC, Peking University] * * 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...
rsnakamura/oldape
apetools/lexicographers/parametertree.py
# python standard library from collections import namedtuple Parameters = namedtuple("Parameters", "name parameters".split()) class TreeNode(object): """ A Class to represent a node in a tree with arbitrary number of children """ def __init__(self, cargo, children=None): """ :param:...
Alissonrgs/Scumblr
test/tasks/vulnerability_helper_test.rb
require "test_helper" class VulnerabilityHelperTest < ActiveSupport::TestCase test "Check for duplicate vulnerabilities which have complex query, should pass" do require_relative "#{Rails.root.join('lib', 'helpers', 'vulnerability_helpers')}" # The params and values are in a differnet order, but this should s...
mcieslak94/pruefungsanerkennung
src/react/Components/globals/module.edit.footer.js
import React, { Component } from 'react' import { ButtonToggle } from 'reactstrap' import '../../styles/main.css' class ModuleEditFooter extends Component { render = () => { return <div className='module-edit-footer'> {!this.props.editActive && <ButtonToggle color="primary" onClick={this.props.toggle}...
shsmysore/connectors-workspace-one
connectors/chatbot-servicenow/src/main/java/com/vmware/connectors/servicenow/domain/snow/TaskResults.java
<filename>connectors/chatbot-servicenow/src/main/java/com/vmware/connectors/servicenow/domain/snow/TaskResults.java /* * Copyright © 2019 VMware, Inc. All Rights Reserved. * SPDX-License-Identifier: BSD-2-Clause */ package com.vmware.connectors.servicenow.domain.snow; import com.fasterxml.jackson.annotation.JsonIg...
gidmoth/freeswitch-image-builder
freeswitch/libs/freetdm/src/ftdm_dso.c
<gh_stars>0 /* * Cross Platform dso/dll load abstraction * Copyright(C) 2008 <NAME> * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is * furnished to do so. * * This work is provided under this license on an "as is" ...
haferflocken/ConductorEngine
Conductor/behave/Blackboard.h
#pragma once #include <behave/ast/ExpressionResultType.h> #include <collection/VectorMap.h> #include <util/StringHash.h> namespace Behave { /** * A blackboard is a dictionary for data of several types, and is used to allow behaviour nodes to communicate. */ class Blackboard { public: Blackboard() = default; void...
ksilin/kfkstreams
src/main/scala/com/example/FavoriteColorCounts.scala
<gh_stars>0 package com.example import com.lightbend.kafka.scala.streams.{ KGroupedTableS, KStreamS, KTableS, StreamsBuilderS } import org.apache.kafka.common.serialization.{ Serde, Serdes } import org.apache.kafka.streams.kstream.Produced object FavoriteColorCounts { val longSerde: Serde[Long] = Serdes.Long().asI...
zetc0de/dotfiles
2019-i3/.config/google-chrome/Default/Extensions/dpplabbmogkhghncfbfdeeokoefdjegm/1.10.6_0/assets/scripts/main.js
/* Copyright (c) 2011 Shyc2001 (http://twitter.com/shyc2001) This work is based on: *"Switchy! Chrome Proxy Manager and Switcher" (by <NAME> (mohammadhi at gmail d0t com)) *"SwitchyPlus" by @ayanamist (http://twitter.com/ayanamist) This file is part of SwitchySharp. SwitchySharp is free software: you can redistr...
herrgrossmann/jo-widgets
modules/core/org.jowidgets.impl/src/main/java/org/jowidgets/impl/model/item/MenuModelImpl.java
<filename>modules/core/org.jowidgets.impl/src/main/java/org/jowidgets/impl/model/item/MenuModelImpl.java /* * Copyright (c) 2011, grossmann * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
mathiasbynens/unicode-data
4.0.1/categories/Z-regex.js
// Regular expression that matches all symbols in the `Z` category as per Unicode v4.0.1: /[\x20\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
RoyLarson/eliottree
src/eliottree/test/test_compat.py
<filename>src/eliottree/test/test_compat.py import json from six import binary_type, text_type from testtools import TestCase from testtools.matchers import Equals, IsInstance from eliottree._compat import dump_json_bytes class DumpJsonBytesTests(TestCase): """ Tests for ``eliottree._compat.dump_json_bytes``...
lodenos/libft
inc/_stdlib.h
#ifndef _STDLIB_H #define _STDLIB_H #include "_stdint.h" extern u32 _atoi(u8 const *restrict const str); extern void _itoa(uint32_t number, char const *restrict buffer, char const *restrict const baseTo); extern void *_memalloc(uint64_t size); #endif
anlijiu/can-tool
app/modules/send/MessageItemView.js
<gh_stars>1-10 import React, { Component } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { isUndefined, isNull, isEmpty } from 'lodash'; import { compose, pure, setDisplayName } from 'recompose' import Checkbox from '@material-ui/core/Checkbox'; import sendActions ...
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism
Variant Programs/1-2/11/warehouse/DiskWholeObjection.java
package warehouse; public class DiskWholeObjection extends Exception { public DiskWholeObjection() { super(); } public DiskWholeObjection(String comment) { super(comment); } }
thelmagali/hq-graphql
spec/lib/graphql/types/uuid_spec.rb
<gh_stars>0 require 'rails_helper' describe ::HQ::GraphQL::Types::UUID do let(:hql_object_klass) do Class.new(::HQ::GraphQL::Object) do graphql_name "TestQuery" field :name, ::HQ::GraphQL::Types::UUID, null: false end end let(:query) do Class.new(::HQ::GraphQL::Object) do graphql_...
PetitStrawberry/CocoaUPnP
CocoaUPnPTests/Test Helpers/MockFailSessionManager.h
<gh_stars>10-100 // CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk // Copyright 2015 Arcam. See LICENSE file. #import <CocoaUPnP/CocoaUPnP.h> extern const NSInteger MockFailSessionErrorCode; /** A subclass of `UPPSessionManager` which always calls the failure block on each network call. */ @interface Mock...
lechium/tvOS124Headers
System/Library/Frameworks/CoreLocation.framework/_CLMicroLocation.h
<reponame>lechium/tvOS124Headers /* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:43:18 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/Frameworks/CoreLocation.framework/CoreLocation * classdump-dyld is licensed under GPLv3...
Buooy/queuesg_test
src/utils.js
import { useEffect, useRef } from 'react'; /** * React setInterval Equivalent * * @param {*} callback * @param {*} delay */ export const useInterval = (callback, delay) => { const savedCallback = useRef(); // Remember the latest callback. useEffect(() => { savedCallback.current = callback; }, [cal...
CraigAndrew/titanium4j
src/com/emitrom/ti4j/mobile/client/android/MenuItemConfig.java
<reponame>CraigAndrew/titanium4j<filename>src/com/emitrom/ti4j/mobile/client/android/MenuItemConfig.java<gh_stars>1-10 /************************************************************************** * MenuItemConfig.java is part of Titanium4j Mobile 3.0. Copyright 2012 Emitrom * LLC * * Licensed under the Apache Licen...
magicLaLa/RSSHub
lib/v2/wechat/data258.js
const got = require('@/utils/got'); const cheerio = require('cheerio'); const { parseDate } = require('@/utils/parse-date'); const timezone = require('@/utils/timezone'); const { finishArticleItem } = require('@/utils/wechat-mp'); const { RequestInProgressError } = require('@/errors'); const wait = require('@/utils/wai...
VersiraSec/epsilon-cfw
apps/code/sandbox_controller.h
#ifndef CODE_SANDBOX_CONTROLLER_H #define CODE_SANDBOX_CONTROLLER_H #include <escher/responder.h> #include <escher/solid_color_view.h> #include <escher/stack_view_controller.h> #include <escher/view_controller.h> #include <python/port/port.h> namespace Code { class SandboxController : public Escher::ViewController {...
tamirho/evo-delivery
playground/pyeasyga-poc/service/test.py
<reponame>tamirho/evo-delivery<gh_stars>1-10 from ea import HelloWorldEa ea_instance = HelloWorldEa() ea_instance.run() print(ea_instance.best_individual()) """ ideas seed_data = { "drivers": { 1: {"capacity": 1000, "max_distance": 4000}, 2: {"capacity": 2500, "max_distance": 5000}, }, "...
sunxy80/caoguo
server/internal/service/product/admin.go
<gh_stars>100-1000 package product import ( "caoguo/internal/api" "caoguo/internal/core" "caoguo/internal/model" "caoguo/internal/service/oplog" "caoguo/rpc/caoguo" "caoguo/rpc/common" "errors" "fmt" "sort" "strings" "time" "github.com/xxjwxc/public/myglobal" "github.com/xxjwxc/public/mylog" "gorm.io/go...
unification-com/mainchain-cosmos
x/enterprise/simulation/genesis.go
<filename>x/enterprise/simulation/genesis.go<gh_stars>0 package simulation import ( "encoding/json" "fmt" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "math/rand" "strings" "github.com/unification-com/mainchain/x/...
justindjeumenet/secure_auth_rest
frontend/src/App.js
<gh_stars>0 import React, {Fragment, useEffect} from 'react'; import {Router, Route, Switch} from "react-router-dom"; import CssBaseline from '@material-ui/core/CssBaseline' import {Provider} from 'react-redux'; import { ThemeProvider } from '@material-ui/styles'; import {theme} from './components/common/Style' import ...
subrosa/subrosa
apps/api/src/main/java/com/subrosagames/subrosa/domain/file/FileAssetRepository.java
<filename>apps/api/src/main/java/com/subrosagames/subrosa/domain/file/FileAssetRepository.java package com.subrosagames.subrosa.domain.file; import com.subrosagames.subrosa.domain.DomainObjectRepository; /** * CRUD operations for file assets. */ public interface FileAssetRepository extends DomainObjectRepository<Fi...
tsubery/tcpkali
asn1/NonNegativeReal.h
<filename>asn1/NonNegativeReal.h /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "TcpkaliOrchestration" * found in "TcpkaliOrchestration.asn1" * `asn1c -gen-OER -gen-PER -pdu=TcpkaliMessage` */ #ifndef _NonNegativeReal_H_ #define _NonNegativeReal_H_ #include <asn_application.h> ...
kucera-jan-cz/esBench
core/src/main/java/org/esbench/workload/json/WorkloadHandlerInstantiator.java
<reponame>kucera-jan-cz/esBench package org.esbench.workload.json; import org.esbench.generator.field.meta.TokenList; import org.esbench.workload.json.databind.TokensIdGenerator; import org.esbench.workload.json.databind.TokensIdResolver; import com.fasterxml.jackson.annotation.ObjectIdGenerator; import com.fa...
TonyBrewer/OpenHT
tests/mdj_htTerm_bug/src_pers/PersBug_src.cpp
#include "Ht.h" #include "PersBug.h" #define BUSY_RETRY(b) {if (b) {HtRetry(); break;}} void CPersBug::PersBug() { if (PR1_htValid) { switch (PR1_htInst) { case BUG_RESET: { HtTerminate(); } break; case BUG_RETURN: { BUSY_RETRY(SendReturnBusy_htmain()); SendReturn_htmain(); } break; default...
lybdtt123/7Buy
uidemo/src/main/java/com/haoniu/zzx/uidemo/activity/DialogActivity.java
<reponame>lybdtt123/7Buy package com.haoniu.zzx.uidemo.activity; import android.content.Context; import android.content.DialogInterface; import android.os.Bundle; import android.support.v4.content.ContextCompat; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android....
5nefarious/icarous
cFS/apps/scheduler/fsw/public_inc/sch_api.h
/* ** $Id: sch_api.h 1.3 2017/06/21 15:28:57EDT mdeschu Exp $ ** ** Copyright (c) 2007-2014 United States Government as represented by the ** Administrator of the National Aeronautics and Space Administration. ** All Other Rights Reserved. ** ** This software was created at NASA's Goddard Space Flight Center. ** T...
yishuifengxiao/common-starter
src/main/java/com/yishuifengxiao/common/security/token/builder/TokenBuilder.java
/** * */ package com.yishuifengxiao.common.security.token.builder; import java.util.List; import com.yishuifengxiao.common.security.token.SecurityToken; import com.yishuifengxiao.common.tool.exception.CustomException; /** * token生成器 * * @author yishui * @version 1.0.0 * @since 1.0.0 */ public interface Tok...
carloscabello/spring-alexandria
src/main/java/org/springframework/samples/petclinic/repository/ModeratorRepository.java
/* * Copyright 2002-2013 the original author or 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 ap...
rlnaveenrm/arduino
libraries/Temboo/src/utility/TembooMQTTSession.cpp
<reponame>rlnaveenrm/arduino<filename>libraries/Temboo/src/utility/TembooMQTTSession.cpp /* ############################################################################### # # Temboo MQTT edge device library # # Copyright (C) 2017, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); ...
dearbornlavern/botmetrics
app/models/webhook_event.rb
<filename>app/models/webhook_event.rb class WebhookEvent < ActiveRecord::Base belongs_to :bot end
ghsecuritylab/embeddedsw
XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler.c
<reponame>ghsecuritylab/embeddedsw // ============================================================== // File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC // Version: 2015.1 // Copyright (C) 2015 Xilinx Inc. All rights reserved. // // ========================================================...
thisishoonlee/seouling-android
seouling/src/main/java/mobile/seouling/com/framework/network/ActiveNetworkTransformer.java
package mobile.seouling.com.framework.network; import android.content.Context; import io.reactivex.*; import io.reactivex.annotations.NonNull; import mobile.seouling.com.framework.rx.RxNetwork; import org.reactivestreams.Publisher; /** * Created by jj on 8/14/17. */ public class ActiveNetworkTransformer<T> impleme...
13rianlucero/CrabAgePrediction
crabageprediction/venv/Lib/site-packages/pandas/io/formats/latex.py
<gh_stars>1000+ """ Module for formatting output data in Latex. """ from __future__ import annotations from abc import ( ABC, abstractmethod, ) from typing import ( Iterator, Sequence, ) import numpy as np from pandas.core.dtypes.generic import ABCMultiIndex from pandas.io.formats.format import Data...
NautiluX/yukan
java_backend/src/main/java/com/ntlx/exception/BoardNotFoundException.java
<reponame>NautiluX/yukan<gh_stars>0 package com.ntlx.exception; public class BoardNotFoundException extends KanbanException { private static final long serialVersionUID = 1L; private int boardId; public BoardNotFoundException (int boardId) { this.boardId = boardId; } public String getMessage() { return "Boar...
bodawei/jpegfile
src/main/java/com/davidjohnburrowes/format/jpeg/marker/ComSegment.java
<reponame>bodawei/jpegfile<gh_stars>1-10 /* * Copyright 2014,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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
sgholamian/log-aware-clone-detection
LACCPlus/Camel/5562_1.java
//,temp,CamelKieServerExtension.java,211,220,temp,CamelKieServerExtension.java,114,125 //,3 public class xxx { @Override public void serverStarted() { if (this.managedCamel && this.camelContext != null && !this.camelContext.isStarted()) { try { this.camelContext.start(); ...
oti4me/More-Recipes
client/__test__/utils.js
import React from 'react'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; import { mount } from 'enzyme'; import store from '../src/helper/store'; export const mountWrapper = (Component, store, props) => mount( <Provider store={store} > <BrowserRouter> <Component ...
RaviGaddipati/libsimdpp
simdpp/setup_arch.h
<filename>simdpp/setup_arch.h<gh_stars>0 /* Copyright (C) 2013 <NAME> <<EMAIL>> 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 LIBSIMDPP_SIMD_SETUP_ARCH_H #define LIBSIMDPP_SIMD_SET...
roman0x58/jenia
app/scripts/views/jobviews.js
'use strict' import m from 'mithril' import R from 'ramda' import u from '../components/util' import flyd from 'flyd' const viewclick = (vnode, view, i) => { vnode.state.active(i) vnode.attrs.onclick(view) } export let JobViews = { oninit(vnode) { vnode.state.items = vnode.attrs.views vn...
shuchitamathur28/bitrix24
bitrix/modules/mobile/install/mobileapp/mobile/extensions/bitrix/stress/extension.js
/** * @bxjs_lang_path extension.php */ (() => { /** * @class StressMeasure */ class StressMeasure { /** * @param {StressMeasureUI} ui * @param params */ constructor(ui, params = null) { this.currentState = params["currentData"]; this.disclaimerAccepted = false; let setCurrentData = (pa...
dong706/CorbaDemo
src/main/java/org/omg/hw/CosNotifyChannelAdmin/_EventChannelFactoryStub.java
package org.omg.hw.CosNotifyChannelAdmin; /** * Generated from IDL interface "EventChannelFactory" * @author JacORB IDL compiler V 2.2.3, 10-Dec-2005 */ public class _EventChannelFactoryStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.hw.CosNotifyChannelAdmin.EventChannelFactory { private Stri...
matf-pp/2022_MATDAQ
api/user-service/userService.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.1 // source: user-service/userService.proto package api import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" ...
dkotik/mdsend
cmd/mdsend/main.go
<reponame>dkotik/mdsend package main import ( "fmt" "log" "os" "strings" "mdsend" "mdsend/distributors" "mdsend/loaders" "mdsend/loggers" "mdsend/providers" "mdsend/renderers" "github.com/spf13/cobra" ) func main() { o := &mdsend.Options{ Loader: &loaders.ViperLoader{}, Renderer: &renderers....
EvilMcJerkface/registry
atlas-integration/atlas-translate/src/main/java/com/cloudera/dim/atlas/types/FieldEntityDef.java
<gh_stars>100-1000 /** * Copyright 2016-2020 Cloudera, 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by...
hosseinmoghimi/phoenix2
authentication/serializers.py
from .models import Profile from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): class Meta: model=Profile fields=['id','name','image','get_absolute_url']
SINeWang/summer
summer-io/src/test/java/one/kii/summer/asdf/api/TestPagingSearchApiCaller.java
<reponame>SINeWang/summer<gh_stars>0 package one.kii.summer.asdf.api; import one.kii.summer.io.context.ReadContext; import one.kii.summer.io.exception.BadRequest; import one.kii.summer.io.exception.Panic; import org.junit.Test; import org.springframework.http.ResponseEntity; import org.springframework.util.Assert; imp...
robyparr/adjourn
app/models/agendum.rb
# typed: true class Agendum < ApplicationRecord include PgSearch::Model include JsonExportable multisearchable against: %i[title description], additional_attributes: ->(agendum) { { user_id: agendum.meeting.user_id } } # Relationships belongs_to :meeting has_one :user, through: :meeting has_many :no...
kevinkenzhao/Repy2
DEPENDENCIES/seash/pyreadline/console/ansi.py
# -*- coding: ISO-8859-1 -*- import re,sys,os terminal_escape = re.compile(u'(\001?\033\\[[0-9;]*m\002?)') escape_parts = re.compile(u'\001?\033\\[([0-9;]*)m\002?') class AnsiState(object): def __init__(self,bold=False,inverse=False,color=u"white",background=u"black",backgroundbold=False): self.bold = bo...
Pivotal-Field-Engineering/spring-cloud
spring-cloud-localconfig-connector/src/main/java/org/springframework/cloud/localconfig/PropertiesFileResolver.java
<reponame>Pivotal-Field-Engineering/spring-cloud package org.springframework.cloud.localconfig; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.commons.lang3.text.StrLookup; imp...
lechium/iOS1351Headers
usr/libexec/itunesstored/PKPaymentAuthorizationControllerDelegate-Protocol.h
<gh_stars>1-10 // // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "NSObject-Protocol.h" @class PKContact, PKPayment, PKPaymentAuthorizationController, PKPaymentMethod, PKShippingMethod; @protoco...
zlesko/fir_filter
src/firf_hp_tmp.h
#pragma once #include <algorithm> #include <cmath> // std::pow, std::ceil, std::fmod #include <cfloat> #include <climits> #include <memory> // std::unique_ptr #include <tuple> #include <vector> #include "errors_custom.h" #include "firf_base.h" #include "imp_resp_hp.h" class firf_hp_tmp : public firf_base { private...
zhayh/awesome-spring-boot
chapter-4/spring-json/src/test/java/com/example/spring/json/SpringJsonApplicationTests.java
package com.example.spring.json; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class SpringJsonApplicationTests { @Test void contextLoads() { } }
xiangdewei/hackrank
src/org/hackranck/java/BigIntegerTest.java
<gh_stars>0 package org.hackranck.java; import java.math.BigInteger; import java.util.Scanner; /** * Created by Dewei on 11/23/2016. */ public class BigIntegerTest { public static void main(String[] args) { Scanner in=new Scanner(System.in); String a=in.nextLine(); String b=in.nextLine()...
APistole/KnightOnline
Client/WarFare/UITradeBBSSelector.h
<gh_stars>100-1000 // UITradeBBSSelector.h: interface for the CUITradeBBSSelector class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_UITRADEBBSSELECTOR_H__034D575A_E014_4C70_ABD5_EE647725A1DF__INCLUDED_) #define AFX_UITRADEBBSSELECTOR_H__034D575A_E014_4C70_ABD5_EE647725A1...
michaelkantor/wavemaker
wavemaker/wavemaker-runtime/src/test/java/com/wavemaker/runtime/server/testspring/DateReturnBean.java
/* * Copyright (C) 2007-2009 WaveMaker Software, Inc. * * This file is part of the WaveMaker Server Runtime. * * 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....
matzipan/osal
src/os/posix/osnetwork.c
/* * Copyright (c) 2018, United States government as represented by the * administrator of the National Aeronautics Space Administration. * All rights reserved. This software was created at NASA Glenn * Research Center pursuant to government contracts. * * This is governed by the NASA Ope...
algohubhq/pipeline-operator
pkg/apis/algorun/v1beta1/model_algo_deployment_v1beta1.go
/* * Algo.Run API 1.0-beta1 * * API for the Algo.Run Engine * * API version: 1.0-beta1 * Contact: <EMAIL> * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package v1beta1 // AlgoDeploymentV1beta1 struct for AlgoDeploymentV1beta1 type AlgoDeploymentV1beta1 struct { AlgoRef *CustomResourceR...
bogdansolga/spring-boot-training
d04/d04s05-caching/src/main/java/net/safedata/springboot/training/d05/s01/service/ProductService.java
package net.safedata.springboot.training.d05.s01.service; import net.safedata.springboot.training.d05.s01.dto.ProductDTO; import net.safedata.springboot.training.d05.s01.exceptions.NotFoundException; import net.safedata.springboot.training.d05.s01.model.Product; import net.safedata.springboot.training.d05.s01.reposito...
icryrainix/Notion
src/main/java/org/rsna/ctp/objects/FileObject.java
<gh_stars>0 /*--------------------------------------------------------------- * Copyright 2005 by the Radiological Society of North America * * This source software is released under the terms of the * RSNA Public License (http://mirc.rsna.org/rsnapubliclicense) *-----------------------------------------------------...
FFMG/myoddweb.piger
myoddtest/string/teststring_find.cpp
<reponame>FFMG/myoddweb.piger #include "string/string.h" #include "../testcommon.h" #include <gtest/gtest.h> const struct test_find { std::wstring haystack; std::wstring needle; int32_t expected; int32_t from; friend std::ostream& operator <<(std::ostream& os, const test_find& obj) { return os <...
haizhenhan/Kepler
kernel/2.6.32/drivers/misc/cb710/debug.c
/* * cb710/debug.c * * Copyright by <NAME>, 2008-2009 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/cb710.h> #include <linux/kernel.h> #include <linux/...
NGliese/Embedded
linux/RPI/OutDoorMain_CCTV/LibraryModule-1.0-Source/docs/html/df/de1/_objects_2_timeservice_2utest_2test__main_8cpp.js
var _objects_2_timeservice_2utest_2test__main_8cpp = [ [ "main", "df/de1/_objects_2_timeservice_2utest_2test__main_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627", null ] ];
benvanik/Feeds
Classes/FDEmailAddress.h
// // FDEmailAddress.h // Feeds // // Created by <NAME> on 10/7/08. // Copyright 2008 <NAME> ( http://www.noxa.org ). All rights reserved. // #import <Foundation/Foundation.h> /** * Represents a simple e-mail address/name pair. */ @interface FDEmailAddress : NSObject { NSString* name; NSString* addr...
kyungissac/mist
mist-common/src/main/java/edu/snu/mist/common/graph/MISTEdge.java
/* * Copyright (C) 2018 Seoul National University * * 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...