repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
allansrc/fuchsia
src/media/playback/mediaplayer/fidl/fidl_video_renderer.h
<filename>src/media/playback/mediaplayer/fidl/fidl_video_renderer.h // Copyright 2018 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. #ifndef SRC_MEDIA_PLAYBACK_MEDIAPLAYER_FIDL_FIDL_VIDEO_RENDERER_H_ #define SRC_MEDIA_PL...
niklas/Tirade
lib/tasks/globalize.rake
namespace :tirade do namespace :locales do desc <<-EODESC Initialize the given locale with the data already saved in the real content types. EODESC task :init, [:locale] => [:environment] do |task, args| locale = args.locale if locale.blank? STDERR.puts "please give a locale to i...
vmarc/knooppuntnet
server/src/main/scala/kpn/server/api/analysis/pages/location/LocationChangesPageBuilder.scala
<reponame>vmarc/knooppuntnet package kpn.server.api.analysis.pages.location import kpn.api.common.Language import kpn.api.common.location.LocationChangesPage import kpn.api.common.location.LocationChangesParameters import kpn.api.custom.LocationKey trait LocationChangesPageBuilder { def build(language: Language, lo...
Enderderder/SonyEngine
PS4Engine/PS4Engine/api_gnm/basic-sample/basic-sample.cpp
/* SIE CONFIDENTIAL PlayStation(R)4 Programmer Tool Runtime Library Release 05.008.001 * Copyright (C) 2016 Sony Interactive Entertainment Inc. * All Rights Reserved. */ #include "../framework/sample_framework.h" #include "../framework/simple_mesh.h" #include "../framework/gnf_loader.h" #include "../framework/frame.h...
clh161/douban_movie
src/app/routes.js
<filename>src/app/routes.js<gh_stars>1-10 const HOT = 'hot'; export default { HOT, };
zeiq-co/zeiq-base
packages/web/src/components/forms/ContactForm.js
import 'twin.macro'; import React from 'react'; import { withFormik } from 'formik'; import * as Yup from 'yup'; import PropTypes from 'prop-types'; import Button from '../atoms/Button'; import TextInputGroup from '../elements/TextInputGroup'; import TextAreaGroup from '../elements/TextAreaGroup'; const formId = 'Con...
le520/MelonAccoutingBackend
src/main/java/com/nwpu/melonbookkeeping/util/TokenProvider.java
<reponame>le520/MelonAccoutingBackend<gh_stars>0 package com.nwpu.melonbookkeeping.util; import com.auth0.jwt.JWT; import com.auth0.jwt.JWTVerifier; import com.auth0.jwt.algorithms.Algorithm; import com.auth0.jwt.exceptions.SignatureVerificationException; import com.auth0.jwt.interfaces.DecodedJWT; import com.nwpu.mel...
sdslabs/gctl
client/fetchError.go
<gh_stars>10-100 package openapi import ( "encoding/json" ) func fetchError(b []byte) string { var res InlineResponse400 if err := json.Unmarshal(b, &res); err != nil { return "Error in fetching errors" } return res.Error }
AutonomicPerfectionist/myrobotlab
src/org/myrobotlab/arduino/DeviceSummary.java
package org.myrobotlab.arduino; import java.io.Serializable; public class DeviceSummary implements Serializable { private static final long serialVersionUID = 1L; String name; Integer id; String type; Integer typeId; public DeviceSummary(String name, int id, String type, int typeId){ this.na...
navikt/sykefravaer
js/landingsside/din-situasjon/BekreftFeilLeder.js
import React from 'react'; import PropTypes from 'prop-types'; import { Knapp } from 'nav-frontend-knapper'; import { getHtmlLedetekst, getLedetekst } from '../../digisyfoNpm'; import { naermesteLeder as naermesteLederPt } from '../../propTypes/index'; import Feilstripe from '../../components/Feilstripe'; export const...
NickNichollsCitrix/ShareFile-ObjectiveC
ShareFileSDK/ShareFileSDK/Generated Code/Models/SFAsyncOperation.h
<filename>ShareFileSDK/ShareFileSDK/Generated Code/Models/SFAsyncOperation.h // // SFAsyncOperation.h // // Autogenerated by a tool // Copyright (c) 2016 Citrix ShareFile. All rights reserved. // #import "SFODataObject.h" @class SFAccount; @class SFZone; @class SFItem; @class SFUser; @interface SFAsyncOperation : S...
hadjri/evergreen
vendor/github.com/evergreen-ci/shrub/operations_test.go
<filename>vendor/github.com/evergreen-ci/shrub/operations_test.go<gh_stars>0 package shrub import ( "errors" "fmt" "testing" ) func TestWellformedOperations(t *testing.T) { cases := map[string]Command{ "subprocess.exec": CmdExec{}, "shell.exec": CmdExecShell{}, "subprocess.scripting": CmdS...
amoodie/DeltaMetrics
docs/source/pyplots/plot/document_variableset.py
import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl import deltametrics as dm vs = dm.plot.VariableSet() N = 256 gradient = np.linspace(0, 1, N) gradient = np.vstack((gradient, gradient)) def over_coordinates(ax_lims): tri_low = np.array([[0, 0], [0 - 10, 0.5],...
kirschmackey/Arduino_Core_STM32
libraries/SrcWrapper/src/LL/stm32yyxx_ll_pka.c
<reponame>kirschmackey/Arduino_Core_STM32 #ifdef STM32L4xx #include "stm32l4xx_ll_pka.c" #endif #ifdef STM32WBxx #include "stm32wbxx_ll_pka.c" #endif
VINichkov/JobsGalore
lib/server_dictionary.rb
require 'singleton' class ServerDictionary include Singleton attr_accessor :arr_word def initialize Rails.logger.debug("ServerDictionary::initialize: load dictionary") @arr_word = index(File.open('db/dictionary.txt').map{|file| file.delete("\n")}) end def where(query=nil, arg={limit:10}) Rails....
qinkai2060/Moya-MVVM
WARProfile/Classes/UserEvent/JournalFriendCycle/FeedList/View/WARFeedPopUpView.h
<reponame>qinkai2060/Moya-MVVM // // WARFeedPopUpView.h // WARControl // // Created by helaf on 2018/4/28. // #import <UIKit/UIKit.h> @protocol WARFeedPopUpViewDelegate <NSObject> - (CGFloat)currentValueOffset; //expects value in the range 0.0 - 1.0 - (void)animationDidStart; @end @interface WARFeedPopUpView : ...
prince776/CodeBook
kactl/stress-tests/number-theory/ModSum.cpp
#include "../utilities/template.h" #include "../../content/number-theory/ModSum.h" ll rmod(ll x, ll m) { x %= m; return x < 0 ? x + m : x; } ll rdiv(ll x, ll y) { x -= rmod(x, y); return x / y; } ll modsum_naive(ll to, ll c, ll k, ll m) { ll res = 0; for (int i = 0; i < (int)to; ++i) res += rmod(c + k * i, ...
DirectXceriD/gridgain
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/tree/io/PagePartitionMetaIO.java
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
ysp2000/tju-solutions
2404 Bin Packing/Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { try { if (new File("input.txt").exists()) System.setIn(new FileInputStream("input.txt")); } catch (SecurityException e) {} new Main().run(); } BufferedReader in; int N; int L; ...
PepperCode1/canvas
src/main/java/grondag/canvas/pipeline/BufferDebug.java
<filename>src/main/java/grondag/canvas/pipeline/BufferDebug.java<gh_stars>1-10 /* * Copyright © Contributing Authors * * 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, either version ...
demonpratapdemon/CodingDSA
src/dynamic_programming/GoldMine.java
<gh_stars>0 /** * */ package dynamic_programming; /** * @author PRATAP * */ public class GoldMine { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int[][] M = { { 1, 3, 1, 5 }, { 2, 2, 4, 1 }, { 5, 0, 2, 3 }, { 0, 6, 1, 2 } }; int ans = maxGold(M.len...
TheSench/solr-streams-dsl
src/main/java/com/github/thesench/solr/dsl/stream/expr/sources/Search.java
package com.github.thesench.solr.dsl.stream.expr.sources; import com.github.thesench.solr.dsl.stream.expr.params.SearchParameter; import org.apache.solr.client.solrj.io.stream.expr.StreamExpression; public class Search { private Search() {} /** * @see <a href="https://solr.apache.org/guide/8_10/stream-...
inaand/compass
components/director/internal/labelfilter/labelfilter.go
<filename>components/director/internal/labelfilter/labelfilter.go<gh_stars>10-100 package labelfilter import "github.com/kyma-incubator/compass/components/director/pkg/graphql" // LabelFilter missing godoc type LabelFilter struct { Key string Query *string } // FromGraphQL missing godoc func FromGraphQL(in *grap...
bjorndm/prebake
code/src/org/prebake/js/SandboxingWrapFactory.java
// Copyright 2010, <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 writ...
Otanikotani/pulumi-aws
sdk/python/pulumi_aws/dms/event_subscription.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
JohanJacobs/Head_First_Design_Patterns
Chapter6_Command_Pattern/src/RemoteControl/RemoteTest.h
<gh_stars>0 #pragma once #include <memory> #include "Commands/CommandInterface.h" namespace Remote { class RemoteTest { public: RemoteTest() { } void SetCommand(std::shared_ptr<Commands::CommandInterface> command) { m_Command = command; } void buttonWasPressed() { m_Command->Execute(); ...
stephanebachelier/next-auth
dist/server/routes/signout.js
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = signout; var cookie = _interopRequireWildcard(require("../lib/cookie")); var _dispatchEvent = _interopRequireDefault(require("../lib/...
vunicjovan/xws
frontend/main-front/src/store/modules/chat.js
<filename>frontend/main-front/src/store/modules/chat.js import chatApi from "@/api/Chat.js"; const state = { messages: [], }; const getters = { getChat: (state) => state.messages, }; const actions = { getMessages({ commit }, userId) { return new Promise((resolve, reject) => { chatApi .getMessages(userId)...
imxiangpeng/webrtc
base/testutils.h
<reponame>imxiangpeng/webrtc /* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the fil...
cornhundred/clustergrammer
clustergrammer1/src/sidebar/set_up_opacity_slider.js
module.exports = function set_up_opacity_slider(sidebar){ var slider_container = sidebar .append('div') .classed('opacity_slider_container', true) .style('margin-top', '5px') .style('padding-left', '10px') .style('padding-right', '10px'); slider_container .append('div') .classed('sideb...
daid/SeriousProton2
src/graphics/gui/layout/layout.cpp
#include <sp2/graphics/gui/layout/layout.h> namespace sp { namespace gui { LayoutClassRegistry* LayoutClassRegistry::first; SP_REGISTER_LAYOUT("default", Layout); void Layout::updateLoop(P<Widget> container, Rect2d rect) { do { int repeat_counter = 10; require_repeat = false; update(...
ArakniD/InvenTree
InvenTree/label/apps.py
<reponame>ArakniD/InvenTree from django.apps import AppConfig class LabelConfig(AppConfig): name = 'label'
code-review-doctor/orchestra
orchestra/utils/tests/test_choices_enum.py
<reponame>code-review-doctor/orchestra from orchestra.tests.helpers import OrchestraTestCase from orchestra.utils.models import ChoicesEnum class ModelUtilsTests(OrchestraTestCase): def test_choices_enum(self): class TestEnum(ChoicesEnum): val0 = 'desc0' val1 = 'desc1' ...
M1TDoPHOT/DoPHOT_C
structs/imdev_struct.h
#ifndef IMDEV_STRUCT_H #define IMDEV_STRUCT_H struct { float** dxemp; float** dyemp; int** emp; }imdev_; //DXEMP[2*IHSIDE][2*IHSIDE] //DYEMP[2*IHSIDE][2*IHSIDE] //EMP[2*IHSIDE+1][2*IHSIDE+1] #endif
kumarvgit/python3
ProgramFlow/tkinter/screen.py
<gh_stars>0 try: import tkinter except ImportError: # python 2 import Tkinter as tkinter import os mainWindow = tkinter.Tk() mainWindow.title("Grid Demo") mainWindow.geometry('640x480-8-200') mainWindow['padx'] = 8 label= tkinter.Label(mainWindow, text="Tkinter Grid Demo") label.grid(row=0, column=0, colum...
mysky528/juttle
lib/runtime/procs/stoke/stoke.js
'use strict'; /** stoke -- basic stochastic functions implemented in terms of an underlying fixed random sample indexed by time. This allows us random access by time to series derived from these, at arbitrary specified granularity, with repeatable results. There are two distinct styles of time-indexed randomness: 1) a...
jforge/vaadin
uitest/src/main/java/com/vaadin/tests/components/datefield/DateFieldDayResolutionOffset.java
package com.vaadin.tests.components.datefield; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import com.vaadin.server.VaadinRequest; import com.vaadin.shared.ui.datefield.DateTimeResolution; import com.vaadin.tests.components.AbstractReindeerTestUI; import com.vaadin.ui.DateTimeField; imp...
sailfly/nuxeo
addons/nuxeo-platform-suggestbox/nuxeo-platform-suggestbox-core/src/main/java/org/nuxeo/ecm/platform/suggestbox/utils/DateMatcher.java
<reponame>sailfly/nuxeo /* * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and others. * * 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-...
Debasishray19/SoundStream
src/jass/generators/Sine.java
package jass.generators; import jass.engine.*; /** Output sine wave. (Highly inefficient implementation.) @author <NAME> (<EMAIL>) */ public class Sine extends Out { /** Sampling rate in Hertz of Out. */ public float srate; /** Amplitude or volume of sine */ protected float volume = 1; /**...
Kaixiang/bosh
bosh-director/bosh-director.gemspec
<reponame>Kaixiang/bosh # coding: utf-8 require File.expand_path('../lib/bosh/director/version', __FILE__) version = Bosh::Director::VERSION Gem::Specification.new do |spec| spec.name = 'bosh-director' spec.version = version spec.platform = Gem::Platform::RUBY spec.summary = 'BOSH Direct...
idavis/Innovatian.Idea.PowerShell
test/lang/lexer/keywords/PsLexerTestsKeywordReturn.java
package com.innovatian.idea.powershell.test.lang.lexer.keywords; import com.innovatian.idea.powershell.lang.lexer.PsTokenTypes; import com.innovatian.idea.powershell.test.lang.lexer.PsLexerTestContext; import junit.framework.Assert; public class PsLexerTestsKeywordReturn extends PsLexerTestContext { public void t...
zhangyage/Python-oldboy
day04/oop/class_study10.py
<reponame>zhangyage/Python-oldboy<gh_stars>1-10 #!/usr/bin/env python # -*- coding:utf-8 -*- from _pyio import __metaclass__ ''' 接口定义和规范设计 抽象类加抽象方法就叫接口 ''' from abc import ABCMeta, abstractmethod #下面的定义接口是的固定设计 class Alert: __metaclass__ = ABCMeta @abstractmethod #指定接口的方法,在继承接口是必须定义这个...
bobmcwhirter/drools
drools-core/src/main/java/org/drools/SessionConfiguration.java
<filename>drools-core/src/main/java/org/drools/SessionConfiguration.java /* * Copyright 2005 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/li...
SLukasDE/esl
src/main/esl/io/output/Function.h
/* MIT License Copyright (c) 2019-2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
MassICTBV/casinocoind
src/beast/extras/beast/test/yield_to.hpp
<gh_stars>1-10 // // Copyright (c) 2013-2017 <NAME> (<EMAIL> at <EMAIL> dot <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 BEAST_TEST_YIELD_TO_HPP #define BEAST_TEST_YIELD_TO_HPP #include <...
dup2X/gomicrosvr
pkg/config/errors.go
<filename>pkg/config/errors.go // Package config ... package config import ( "fmt" ) func wrapMissKeyErr(key string) error { return fmt.Errorf("cannot find key: %s", key) }
zhairuihao/blog-1
src/main/java/io/github/ramerf/blog/system/controller/common/manage/DataDictController.java
package io.github.ramerf.blog.system.controller.common.manage; import io.github.ramerf.wind.core.entity.response.Rs; import io.swagger.annotations.*; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpSession; import javax.validation.Valid; import lombok.extern...
jai-singhal/djangopy
vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/doc/ex/threshold.rb
<reponame>jai-singhal/djangopy<filename>vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/doc/ex/threshold.rb #!/usr/bin/env ruby -w require 'rmagick' # Demonstrate the Image#threshold method img = Magick::Image.read('images/Flower_Hat.jpg').first # Use a threshold of 55% of QuantumRange. img = img.threshold(Magi...
data-hunters/metadata-digger
src/main/scala/ai/datahunters/md/reader/SolrHashReader.scala
package ai.datahunters.md.reader import java.util import ai.datahunters.md.config.writer.SolrWriterConfig import ai.datahunters.md.processor.ColumnNamesConverterFactory import ai.datahunters.md.util.SolrClientBuilder import org.apache.solr.client.solrj.impl.CloudSolrClient import org.apache.solr.common.params.MapSolr...
woshihuo12/Entitas-CSharp
docs/search/all_d.js
<gh_stars>1000+ var searchData= [ ['safeaerc',['SafeAERC',['../class_entitas_1_1_safe_a_e_r_c.html',1,'Entitas']]], ['singleentity',['SingleEntity',['../class_entitas_1_1_collection_extension.html#a57b0cefb881fa38432706a4fc91a609e',1,'Entitas::CollectionExtension']]], ['singleentity_3c_20tentity_20_3e',['SingleEn...
skylarkfw/skylark-angular2
original/angular.js-1.7.5/benchmarks/orderby-bp/app.js
'use strict'; var app = angular.module('orderByBenchmark', []); app.controller('DataController', function DataController($rootScope, $scope) { this.ngRepeatCount = 5000; this.rows = []; var self = this; $scope.benchmarkType = 'baseline'; $scope.rawProperty = function(key) { return function(item) { ...
myLxlGit/course-system
src/main/java/com/rainng/coursesystem/controller/HomeController.java
<filename>src/main/java/com/rainng/coursesystem/controller/HomeController.java package com.rainng.coursesystem.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HomeController extends BaseController { ...
rbwinslow/hq
test/hquery/test_strings.py
from test.common_test_util import expected_result from test.hquery.hquery_test_util import query_html_doc def test_escapes_work_in_string_literals(): assert query_html_doc('', '"foo&#10;bar"') == expected_result(""" foo bar""") assert query_html_doc('', "'foo&#10;bar'") == expected_result(""" foo ...
shiveshr/pravega-1
segmentstore/server/host/src/test/java/io/pravega/segmentstore/server/host/handler/ConnectionTrackerTests.java
/** * Copyright Pravega Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
pettyferlove/rich
rich-module/rich-base-info-service/src/main/java/com/github/rich/base/service/impl/SensitiveInfoCaptchaValidateServiceImpl.java
<filename>rich-module/rich-base-info-service/src/main/java/com/github/rich/base/service/impl/SensitiveInfoCaptchaValidateServiceImpl.java package com.github.rich.base.service.impl; import com.github.rich.common.core.constants.SecurityConstant; import com.github.rich.message.domain.dto.message.CaptchaMessage; import co...
ZoonLogonEchon/SimpleSceneRenderer
Renderer/Components/Meshes/sphere.cpp
<gh_stars>0 #ifdef TEST #include "sphere.hpp" #include <iostream> #include <vector> #include <random> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> Sphere::Sphere(const std::string name) :name(name) { unsigned i = 0; std::pair<std::vector<float>, unsigned> a = { {0.0, 0.5, 1.0}, i++ }; std::pair...
fmilano/CppMicroServices
framework/test/bundles/libC1/TestBundleC1.cpp
<gh_stars>100-1000 /*============================================================================= Library: CppMicroServices Copyright (c) The CppMicroServices developers. See the COPYRIGHT file at the top-level directory of this distribution and at https://github.com/CppMicroServices/CppMicroServices/COPYRIG...
AdjieGunt/unpamkita-react
src/containers/CategoryContainer/index.js
import CategoryContainer from './CategoryContainer' export default CategoryContainer
arithmetic1728/google-api-java-client-services
clients/google-api-services-dataflow/v1b3/1.31.0/com/google/api/services/dataflow/model/QueryInfo.java
<reponame>arithmetic1728/google-api-java-client-services /* * 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 ...
serfend/Project.Web.Front.Vue.DepartmentGLMap
src/api/bbs/post.js
import request from '@/utils/request' /** * 新增/评论帖子 * * @export * @param {*} model 帖子 * @returns */ export function newContent({ title, content, replySubject, replyTo }) { return request.post('/post/post', { title, content, replySubject, replyTo }) } /** * 删除帖子 * * @export * @param {*} id * @returns */ ex...
tfisher1226/ARIES
aries/common/common-util/src/main/java/org/aries/util/encrypt/EncryptPassword.java
<gh_stars>1-10 package org.aries.util.encrypt; //TODO - unused for now - placeholder public class EncryptPassword { public static void main(String ar[]) throws Exception { String clearTextPassword = ar[0]; //String clearTextPassword=ar[0]+":ManagementRealm:"+ar[1]; //---> This is how JBoss Encrypts password...
sadupally/Dev
unisa-util/unisa-sharedclasses/src/java/za/ac/unisa/lms/domain/processDrivenSms/SmsRecipientResult.java
<reponame>sadupally/Dev package za.ac.unisa.lms.domain.processDrivenSms; public class SmsRecipientResult { private int studentNr; private String message; private String cellNr; private String errMsg; public int getStudentNr() { return studentNr; } public void setStudentNr(int studentNr) { this.studentNr =...
Sen-442b/Ghost
core/server/data/migrations/versions/4.15/01-add-temp-members-analytic-events-table.js
<reponame>Sen-442b/Ghost const utils = require('../../utils'); module.exports = utils.addTable('temp_member_analytic_events', { id: {type: 'string', maxlength: 24, nullable: false, primary: true}, event_name: {type: 'string', maxlength: 50, nullable: false}, created_at: {type: 'dateTime', nullable: false},...
srcarter3/awips2
cave/com.raytheon.viz.hydro/src/com/raytheon/viz/hydro/stationreporting/StationReportingAction.java
/** * This software was developed and / or modified by Raytheon Company, * pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S. EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination ...
jinroq/msgraph
lib/msgraph/odata/types/primitive_types/guid_type.rb
class Msgraph module Odata module Types module PrimitiveTypes class GuidType < Msgraph::Odata::Types::BaseType def valid_value?(value) String === value end def coerce(value) case value when Symbol value.to_s ...
jpvelsamy/mingo
src/com/mingo/client/Resrv.java
<reponame>jpvelsamy/mingo<gh_stars>0 package com.mingo.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Cookies; import com.mingo.client.booking.BookingViewService; import com.smartgwt.client.types.Side; import com.smartgwt.client.widgets.layout.VLayout; import com.smartgw...
wetcod/vvisp
packages/vvisp-utils/src/blockchainApis/index.js
const getContractFactory = require('./getContractFactory'); const getTxCount = require('./getTxCount'); const privateKeyToAddress = require('./privateKeyToAddress'); const sendTx = require('./sendTx'); module.exports = { getContractFactory, getTxCount, privateKeyToAddress, sendTx };
DVSR1966/par4all
packages/PIPS/validation/Gpu/simple_loop.c
enum { N = 10000}; double a[N], b[N], c[N]; int main() { int i; for(i = 0; i < N; i++) a[i] = b[i] + c[i]; return 0; }
jurgendl/jhaws
jhaws/wicket/src/main/java/org/jhaws/common/web/wicket/components/tree/Node.java
<filename>jhaws/wicket/src/main/java/org/jhaws/common/web/wicket/components/tree/Node.java package org.jhaws.common.web.wicket.components.tree; import java.io.Serializable; import java.util.Iterator; import java.util.List; public interface Node<T> extends Iterable<Node<T>>, Serializable { List<Node<T>> children(); ...
AnneLivia/URI-Online
Online Judges/URI/1533/main.cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n, num; vector<pair<int,int>>v; while(cin >> n && n) { v.clear(); for(int i = 0; i < n; i++) { cin >> num; v.push_back(make_pair(num,i+1)); } sort(v.rbeg...
ghorbanzade/beacon
umb-cs681-2016s/src/main/java/hw27/BankServerMain.java
<gh_stars>1-10 // // CS681: Object Oriented Software Development // Copyright 2016 <NAME> <<EMAIL>> // More info: https://github.com/ghorbanzade/beacon // package edu.umb.cs681.hw27; /** * Demonstrates how a bank server can be created to hold bank account * information and handle multiple client requests. * * @au...
jainsakshi2395/linux
drivers/net/phy/mxl-gpy.c
// SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2021 Maxlinear Corporation * Copyright (C) 2020 Intel Corporation * * Drivers for Maxlinear Ethernet GPY * */ #include <linux/module.h> #include <linux/bitfield.h> #include <linux/phy.h> #include <linux/netdevice.h> /* PHY ID */ #define PHY_ID_GPYx15B_MASK 0x...
codenote/chromium-test
ash/system/tray_update.cc
// Copyright (c) 2012 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 "ash/system/tray_update.h" #include "ash/root_window_controller.h" #include "ash/shelf/shelf_layout_manager.h" #include "ash/shelf/shelf_wid...
HassanRahim26/LEETCODE
ARRAYS/MEDIUM/Find First and Last Position of Element in Sorted Array/Code.cpp
<filename>ARRAYS/MEDIUM/Find First and Last Position of Element in Sorted Array/Code.cpp /* PROBLEM LINK:- https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ */ class Solution { public: vector<int> searchRange(vector<int>& nums, int target) { int a = BinarySearch(nums, targe...
SSEHUB/EASyProducer
Example_SPLs/Tutorial/EASyDemoTree/src/io/ssehub/easy/demo/tree/Engine.java
package io.ssehub.easy.demo.tree; public class Engine { public static final int HORSEPOWER = 0; }
lakinwecker/GeometricTools
GTE/Mathematics/LDLTDecomposition.h
<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2022 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 6.0.2022.01.06 #pragma once #include <Mathematics/Matri...
aaronvincent/gambit_aaron
contrib/Delphes-3.1.2/display/DisplayLinkDef.h
/** ExRootAnalysisLinkDef * * Lists classes to be included in cint dicitonary * * $Date: 2013-04-22 22:00:46 +0200 (Mon, 22 Apr 2013) $ * $Revision: 1097 $ * * * \author <NAME> - UCL, Louvain-la-Neuve * */ #include "display/DelphesDisplay.h" #include "display/DelphesCaloData.h" #ifdef __CINT__ #prag...
WillYee/clearsilver
util/test/hdf_hash_test.c
#include "cs_config.h" #include <unistd.h> #include "util/neo_misc.h" #include "util/neo_hdf.h" #include "util/neo_rand.h" int main(int argc, char *argv[]) { NEOERR *err; HDF *hdf, *h2; err = hdf_init(&hdf); if (err != STATUS_OK) { nerr_log_error(err); return -1; } err = hdf_set_value(hdf, "...
arusinha/incubator-netbeans
ide/extbrowser/src/org/netbeans/modules/extbrowser/UnixBrowserImpl.java
<filename>ide/extbrowser/src/org/netbeans/modules/extbrowser/UnixBrowserImpl.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 ...
purpen/frbird-app
thn/store/THNAddressManagerViewController.h
<filename>thn/store/THNAddressManagerViewController.h // // THNAddressManagerViewController.h // store // // Created by XiaobinJia on 14-11-20. // Copyright (c) 2014年 TaiHuoNiao. All rights reserved. // #import <UIKit/UIKit.h> typedef enum : NSUInteger { kTHNAddressPageTypeManager, kTHNAddressPageTypeSele...
drumonii/LeagueTrollBuild
backend/src/main/java/com/drumonii/loltrollbuild/riot/api/MapsResponse.java
package com.drumonii.loltrollbuild.riot.api; import com.drumonii.loltrollbuild.model.GameMap; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; /** * Response class of a retrieval of LoL {@link GameMap}s from Riot's Data Dragon API. * Response example: * ...
infinit/memo
src/memo/cli/Network.hh
<reponame>infinit/memo #pragma once #include <elle/das/cli.hh> #include <elle/Duration.hh> #include <memo/cli/Object.hh> #include <memo/cli/Mode.hh> #include <memo/cli/fwd.hh> #include <memo/cli/symbols.hh> #include <memo/symbols.hh> namespace memo { using namespace std::literals; namespace cli { class Net...
Rossterrrr/Qt
QtMario_Youtube-master/Mario_Updated/database.h
<filename>QtMario_Youtube-master/Mario_Updated/database.h //Authors: equati0n,ka0t1k,zzDeagle545zz #ifndef DATABASE_H #define DATABASE_H #include <QSql> #include <QSqlQuery> #include <QSqlDatabase> #include <QDebug> //Structures struct Connection{ QSqlDatabase db; bool connected; }; //SQL Query struct Query{ ...
IllayDevel/es4sql
src/main/java/org/illaydevel/sql4es/parse/sql/ParseResult.java
<filename>src/main/java/org/illaydevel/sql4es/parse/sql/ParseResult.java package org.illaydevel.sql4es.parse.sql; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.elasticsearch.index.query.QueryBuilder; import org.elasticsearch.search.aggregations.AbstractAggregationBuilder;...
nhs-t10/delta-v
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/autonomous/miming/FLmime.java
package org.firstinspires.ftc.teamcode.autonomous.miming; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.Servo; import com.qualcomm.robotcore.util.ElapsedTime; impo...
yu2003w/ustudy
exam/src/main/java/com/ustudy/exam/model/MetaMarkTask.java
<reponame>yu2003w/ustudy package com.ustudy.exam.model; import java.io.Serializable; /** * @author jared * * This class is to construct basic information for scoring task. * The client needs more information based on the meta info. * */ public class MetaMarkTask implements Serializable { /** * */ priva...
mchimsak/VodkaSrc
src/minecraft/de/Hero/clickgui/elements/menu/ElementComboBox.java
package de.Hero.clickgui.elements.menu; import java.awt.Color; import me.lc.vodka.Vodka; import me.lc.vodka.module.impl.render.ClickGui; import me.lc.vodka.setting.Setting; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import de.Hero.clickgui.elements.Element; import de.Hero.clickgui.ele...
MaxLeiter/Cydia
debs/com.maxleiter.xorgproto/usr/local/include/X11/extensions/dmxproto.h
/* * Copyright 2002-2004 Red Hat Inc., Durham, North Carolina. * * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limi...
psadda/pytorch_bayesian_unet
tests/test_mc_sampler.py
import numpy as np import torch from pytorch_bcnn.links import MCSampler def _calc_uncertanty_from_mc_samples(samples): mean_pred = samples.mean(dim=0, keepdims=False) var_pred = samples.var(dim=0, keepdims=True) return mean_pred, var_pred def main(): mc_iteration = 10 mc_samples = np.random.ra...
lanSeFangZhou/tokenizer_tools
tokenizer_tools/evaluator/token/token_level.py
<filename>tokenizer_tools/evaluator/token/token_level.py from tokenizer_tools.evaluator.token.base_evaluator import BaseEvaluator class TokenEvaluator(BaseEvaluator): def __init__(self, *args, **kwargs): super(TokenEvaluator, self).__init__(*args, **kwargs) def generate_word_offset_list(self, word_li...
aligungr/ue-ran-sim
src/asn/rrc/ASN_RRC_RAN-AreaConfig.h
<reponame>aligungr/ue-ran-sim /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "asn/nr-rrc-15.6.0.asn1" * `asn1c -fcompound-names -pdu=all -findirect-choice -fno-include-deps -gen-PER -no-gen-OER -no-gen-example -D rrc` */ #ifndef _ASN_RRC_RAN_AreaCon...
freebird-airlines/WhirlyGlobe
android/library/maply/src/main/cpp/WideVectorManager_jni.cpp
<filename>android/library/maply/src/main/cpp/WideVectorManager_jni.cpp /* * WideVectorManager_jni.cpp * WhirlyGlobeLib * * Created by <NAME> on 3/8/17. * Copyright 2011-2017 mousebird consulting * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
MicroEJ/Demo-PartialBuffer
stm32f7508_freertos-bsp/projects/microej/net/src/LLNET_Common.c
<filename>stm32f7508_freertos-bsp/projects/microej/net/src/LLNET_Common.c /* * C * * Copyright 2016-2020 MicroEJ Corp. All rights reserved. * This library is provided in source code for use, modification and test, subject to license terms. * Any modification of the source code will break MicroEJ Corp. warranties o...
Archive-42/a-whole-bunch-o-gatsby-templates
gatsby-plugin-preconnect/test-projects/base-configuration-test/cypress/integration/remove-duplicates.unit.spec.js
<filename>gatsby-plugin-preconnect/test-projects/base-configuration-test/cypress/integration/remove-duplicates.unit.spec.js<gh_stars>1-10 /// <reference types="Cypress" /> import { removeDuplicates } from ".../../../src/utils" context("removeDuplicates", () => { context("When invoked", () => { context("And an a...
MC-JY/tika
tika-core/src/main/java/org/apache/tika/mime/MinShouldMatchClause.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 ...
tranek/coh2_rgt_extractor
coh2_rgt_extractor/Rainman_src/CRgdFile.h
/* Rainman Library Copyright (C) 2006 Corsix <<EMAIL>> This library 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; either version 2.1 of the License, or (at your option) any later version. This library i...
GiGainfosystems/geoplasma-ce
frontend/src/actions/pages.js
import config from '../config'; import { dataRequest, dataRequestError, formRequestFinished, formRequest, formRequestSuccess, formRequestError } from './fetching' import { LOAD_PAGES_SUCCESS } from './types' /** * Get all pages that are present on the web portal */ export function getPages() { return (dispatch) ...
dappstore123/wallet-core
src/NULS/TransactionBuilder.h
// Copyright © 2017-2019 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #pragma once #include "../proto/NULS.pb.h" #include <algo...
shwezinoo/python-excercises
ex23.py
print "Let's practice everything" print 'Your\'d need to know \'about escapes with \\that do \n newlines and \t tabs.' poem=""" \t The lovely world with logic so firmly planted cannot doscern \n the needs of love nor comprehend passion from intution and requires an explanation \n\t where there is none. """ print "-----...
ExtendJ/Regression-Tests
tests/enum/constructor_04f/Test.java
// Enum constructors can not be protected // .result=COMPILE_FAIL enum E { ; int i; protected E() { i = 3; } }