repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
miksa1987/Beast.Mode
beast.mode/src/components/post/MobileViewpost.js
import React from 'react' import { Input, Image, Icon } from 'semantic-ui-react' import { Link } from 'react-router-dom' import Comments from './Comments' import LikeButton from '../universal/LikeButton' import './MobileViewpost.css' const MobileViewpost = (props) => { if(!props.post.content) { return ( <div></d...
cjellick/rancher
pkg/controllers/user/logging/deployer/upgradeimpl.go
package deployer import ( "fmt" "reflect" "strings" "time" versionutil "github.com/rancher/rancher/pkg/catalog/utils" "github.com/rancher/rancher/pkg/controllers/user/helm/common" loggingconfig "github.com/rancher/rancher/pkg/controllers/user/logging/config" "github.com/rancher/rancher/pkg/project" appsv1 "g...
robotology-legacy/yarp1
src/experiments/mirror/GraspCapture/resource.h
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by GraspCapture.rc // #define IDM_ABOUTBOX 0x0010 #define IDD_ABOUTBOX 100 #define IDS_ABOUTBOX 101 #define IDD_GRASPCAPTURE_DIALOG 102 #define IDR_MAINFRAME ...
twinkle-cloud/twinkle-framework
twinkle-connector/src/main/java/com/twinkle/framework/connector/ConnectorManager.java
<gh_stars>1-10 package com.twinkle.framework.connector; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.twinkle.framework.api.component.AbstractComponent; import com.twinkle.framework.api.config.Configurable; import com.twinkle.framework.api.constant.ExceptionCode; import com....
3noch/lotus
cmd/lotus-chainwatch/sync.go
package main import ( "bytes" "container/list" "context" "sync" actors2 "github.com/filecoin-project/lotus/chain/actors" "github.com/filecoin-project/lotus/chain/address" "github.com/ipfs/go-cid" "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/chain/store" "github.com/filecoin-p...
NeocortexF/FlyingBase
Flight Department Client/src/secure/WorkingWindow3.java
<reponame>NeocortexF/FlyingBase<filename>Flight Department Client/src/secure/WorkingWindow3.java package secure; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Toolkit; import java.awt.event.ItemEvent; import java.io.File; import java.io.FileNotFoundException; import java.io.IO...
syrykh/python-for-android
tests/recipes/test_libmysqlclient.py
<filename>tests/recipes/test_libmysqlclient.py import unittest from unittest import mock from tests.recipes.recipe_lib_test import BaseTestForCmakeRecipe class TestLibmysqlclientRecipe(BaseTestForCmakeRecipe, unittest.TestCase): """ An unittest for recipe :mod:`~pythonforandroid.recipes.libmysqlclient` ""...
as1000/genome-nexus
service/src/test/java/org/cbioportal/genome_nexus/component/annotation/VariantClassificationResolverTest.java
package org.cbioportal.genome_nexus.component.annotation; import org.cbioportal.genome_nexus.model.VariantAnnotation; import org.cbioportal.genome_nexus.service.mock.CanonicalTranscriptResolverMocker; import org.cbioportal.genome_nexus.service.mock.VariantAnnotationMockData; import org.cbioportal.genome_nexus.service....
ministryofjustice/prison-visits
spec/configuration/filter_parameter_logging_spec.rb
<gh_stars>1-10 require 'rails_helper' RSpec.describe Rails.application.config.filter_parameters do it "filters out sensitive information" do expect(subject).to eq( [:password, :first_name, :last_name, :number, :date_of_birth, :email] ) end end
villChurch/AnimalCrossingNewHorizonAPI
src/main/java/com/williamspires/acnhapi/Model/Raymond.java
<gh_stars>0 package com.williamspires.acnhapi.Model; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="raymond") public class Raymond { @Id private int id; private String item; private String color_1; private String color_2; pri...
dzcoin/DzCoinMiningAlgorithm
src/qt/test/uritests.h
// copyright (c) 2009-2014 the dzcoin core developers // distributed under the mit software license, see the accompanying // file copying or http://www.opensource.org/licenses/mit-license.php. #ifndef dzcoin_qt_test_uritests_h #define dzcoin_qt_test_uritests_h #include <qobject> #include <qtest> class uritests : pu...
marga8080/spring-security-oauth2-jwt
oauth2-server/src/main/java/com/soj/controller/SmsController.java
<gh_stars>1-10 package com.soj.controller; import javax.servlet.http.HttpSession; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.soj.http.RespResult; import com.soj.uti...
imgly/adonis
src/lib/styles-buffer.js
import { requestAnimationFrame } from './utils' export default class StylesBuffer { constructor (adonis) { this._adonis = adonis this._injectionEnabled = true this._bufferedSelectors = {} this._buffer = [] this._styleNode = this._findStyleNode() this._sheet = this._findSheet() } /** *...
mattmaniak/fiflo
src/file_io.h
<reponame>mattmaniak/fiflo<filename>src/file_io.h #ifndef FILE_IO_H #define FILE_IO_H // File operations. #include "v_file.h" #include "config.h" #include "modes.h" #define FILE__AT_LEAST_ONE_TAB 1 extern bool input__printable_char(V_file* const, const char); // Load a file to the program. bool file_io__load(V_fil...
jakubdzubak1/mobile-messaging-sdk-android
infobip-mobile-messaging-api-java/src/main/java/org/infobip/mobile/messaging/api/support/util/MapUtils.java
<filename>infobip-mobile-messaging-api-java/src/main/java/org/infobip/mobile/messaging/api/support/util/MapUtils.java package org.infobip.mobile.messaging.api.support.util; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import ja...
Azure/commercial-marketplace-sdk-java
sdk/src/main/java/com/microsoft/marketplace/meter/models/UsageEventBadRequestResponseDetail.java
<reponame>Azure/commercial-marketplace-sdk-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will ...
Priba91/Meeting
Convoy Caravan Code parts/UIElements/TableView Cells/Place Cells/PlaceMapTableViewCell.h
<filename>Convoy Caravan Code parts/UIElements/TableView Cells/Place Cells/PlaceMapTableViewCell.h<gh_stars>0 // // PlaceMapTableViewCell.h // <NAME> // // Created by Priba on 10/31/18. // Copyright © 2018 Priba. All rights reserved. // #import <UIKit/UIKit.h> #import "PlaceModel.h" #import <GoogleMaps/GoogleMaps....
vbresan/Waiter
source/Google app engine server side/src/biz/binarysolutions/android/gae/test/waiter/data/Storno.java
package biz.binarysolutions.android.gae.test.waiter.data; import java.util.Date; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; /** * * ...
GlobalFinPrint/global_finprint
global_finprint/bruv/migrations/0030_auto_20170815_2045.py
<gh_stars>0 # -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-08-15 20:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bruv', '0029_auto_20170813_1910'), ] operations = [ migrations....
wedataintelligence/vivaldi-source
chromium/third_party/WebKit/Source/core/animation/LengthBoxStyleInterpolation.cpp
// Copyright 2014 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 "core/animation/LengthBoxStyleInterpolation.h" #include "core/css/CSSQuadValue.h" #include "core/css/resolver/StyleBuilder.h" namespace blink {...
marferfer/SpinOff-LoL
Aplicacion Movil/generated/bundles/login-transition/build/Android/Preview/app/src/main/include/Fuse.Controls.Fallbac-2048a2c7.h
// This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Fuse.Controls.Primitives/1.9.0/TextControls/FallbackTextRenderer/TextRenderer.uno. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Fuse.Controls.ITextRenderer.h> #include <Uno.Float2.h> #incl...
SebastianTirado/Cpp-Learning-Archive
Deitel/Chapter10/exercises/10.10/Card.cpp
<reponame>SebastianTirado/Cpp-Learning-Archive<gh_stars>10-100 /* * ===================================================================================== * * Filename: * * Description: * * Version: 1.0 * Created: Thanks to github you know it * Revision: none * Compile...
AVISPL/dal-codecs-singlecodecs-cisco
src/main/java/com/avispl/dal/communicator/cisco/dto/configuration/video/VideoConfigurationConnector.java
/* * Copyright (c) 2021 AVI-SPL Inc. All Rights Reserved. */ package com.avispl.dal.communicator.cisco.dto.configuration.video; import com.avispl.dal.communicator.cisco.dto.ValueSpaceRefHolder; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bi...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/eclipse.jdt.core/3658.java
<reponame>masud-technope/ACER-Replication-Package-ASE2017 /******************************************************************************* * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Publ...
MarginC/kame
netbsd/sys/arch/sun68k/stand/bootxx/bootxx.c
/* $NetBSD: bootxx.c,v 1.8 2002/05/15 09:44:55 lukem Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modificatio...
LeandroTk/Algorithms
competitive_programming/programming_contests/uri/help_girafales.cpp
// https://www.urionlinejudge.com.br/judge/en/problems/view/1911 #include <iostream> #include <string> #include <vector> using namespace std; int get_index(vector< pair<string, string> > names, string name) { for (int i = 0; i < names.size(); i++) { if (names[i].first == name) return i; } } int main() { vector...
LinkinW92/htd
mes-service/src/main/java/com/skeqi/mes/mapper/chenj/srm/CSrmPurchaseOrderHMapper.java
<filename>mes-service/src/main/java/com/skeqi/mes/mapper/chenj/srm/CSrmPurchaseOrderHMapper.java package com.skeqi.mes.mapper.chenj.srm; import com.skeqi.mes.pojo.chenj.srm.CSrmKThreePurchaseAbutting; import com.skeqi.mes.pojo.chenj.srm.CSrmPurchaseOrderH; import com.skeqi.mes.pojo.chenj.srm.kthree.KThreePOOrder; imp...
mahajrod/MAVR
scripts/filter/restore_pairs.py
#!/usr/bin/env python __author__ = '<NAME>' """ Script is very slow because it uses Biopython SeqIO to parse fastq. Use it only for small fastqs """ import os import re import sys import argparse from Bio import SeqIO from RouToolPa.Routines import SequenceRoutines def get_list_from_string(s): return s.split(",...
dstore-dbap/LumberMill
lumbermill/parser/MsgPack.py
<gh_stars>10-100 # -*- coding: utf-8 -*- import sys import msgpack from lumbermill.BaseThreadedModule import BaseThreadedModule from lumbermill.utils.Decorators import ModuleDocstringParser @ModuleDocstringParser class MsgPack(BaseThreadedModule): """ Decode: It will parse the msgpack data and create or...
youngqqcn/LeetCodeNodes
src/0039_combination_sum/combination_sum.cc
<gh_stars>1-10 // author: yqq // date: 2021-05-31 21:15:48 // descriptions: https://leetcode-cn.com/problems/combination-sum/ #include <iostream> #include <vector> #include <string> #include <map> #include <set> #include <algorithm> #include <memory> using namespace std; /* 给定一个无重复元素的正整数数组 candidates 和一个正整数 target ,找...
King0987654/windows2000
private/windows/shell/accesory/ole2pbsh/parentwp.c
/****************************Module*Header******************************\ * Copyright (c) 1987 - 1991 Microsoft Corporation * \***********************************************************************/ /******************************************************** * ...
nyaxt/ptnk
ptnk_bench.cpp
<filename>ptnk_bench.cpp<gh_stars>1-10 #include "bench_tmpl.h" #include "ptnk.h" using namespace ptnk; void run_bench() { // sleep(3); Bench b("ptnk_bench", comment); { ptnk_opts_t opts = OWRITER | OCREATE | OTRUNCATE | OPARTITIONED; if(do_sync) opts |= OAUTOSYNC; b.start(); DB db(dbfile, opts); b.c...
LukasLohoff/shogun
shogun-boot/src/main/java/de/terrestris/shogun/boot/config/BootWebSecurityConfig.java
<gh_stars>1-10 /* SHOGun, https://terrestris.github.io/shogun/ * * Copyright © 2020-present terrestris GmbH & Co. KG * * 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 * * https://www....
ckamtsikis/cmssw
RecoMuon/MuonIdentification/src/MuonCaloCompatibility.cc
// -*- C++ -*- // // Package: MuonIdentification // Class: MuonCaloCompatibility // /* Description: test track muon hypothesis using energy deposition in ECAL,HCAL,HO */ // // Original Author: <NAME> // // #include "RecoMuon/MuonIdentification/interface/MuonCaloCompatibility.h" #include "DataFormats/TrackRe...
school-engagements/pikater
lib/jade-4.3.2/examples/mobile/GetAvailableLocationsBehaviour.java
/***************************************************************** JADE - Java Agent DEvelopment Framework is a framework to develop multi-agent systems in compliance with the FIPA specifications. Copyright (C) 2000 CSELT S.p.A. GNU Lesser General Public License This library is free software; you can redistr...
k-r-g/gemini
gemini/src/main/java/com/techempower/audit/AuditManager.java
/******************************************************************************* * Copyright (c) 2018, TechEmpower, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributio...
xiumu2017/mall
mall-mbg/src/main/java/com/macro/mall/service/YxxOrderCommonService.java
<filename>mall-mbg/src/main/java/com/macro/mall/service/YxxOrderCommonService.java package com.macro.mall.service; import com.github.pagehelper.PageHelper; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.constant.OrderType; import com.macro.mall.common.service.impl.DistributorService; import ...
Aodacat6/my-shop-server
shop-server-api/src/main/java/com/onlythinking/shop/core/constant/DicConstant.java
<gh_stars>10-100 package com.onlythinking.shop.core.constant; import com.google.common.collect.Sets; import java.util.Set; /** * <p> The describe </p> * * @author <NAME> */ public interface DicConstant { // 是否 String TYPE_1000 = "1000"; String VAL_1000_00 = "100000"; // 是 String VAL_1000_01 = "1...
allansrc/fuchsia
src/graphics/lib/magma/src/magma_util/platform/linux/linux_platform_port.cc
<gh_stars>100-1000 // Copyright 2019 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 "magma_util/macros.h" #include "platform_port.h" namespace magma { class LinuxPlatformPort : public PlatformPort { public: ...
lectureStudio/avdev
avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFInitializer.cpp
<gh_stars>1-10 /* * Copyright 2016 <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...
mjohns-databricks/rasterframes
core/src/test/scala/org/locationtech/rasterframes/MetadataSpec.scala
/* * This software is licensed under the Apache 2 license, quoted below. * * Copyright 2017 Astraea, 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.o...
Jorble/KnowledgeBase
app/src/main/java/com/giant/knowledgebase/mvp/model/entity/SearchHistoryBean.java
package com.giant.knowledgebase.mvp.model.entity; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Id; import org.greenrobot.greendao.annotation.NotNull; import org.greenrobot.greendao.annotation.Generated; import org.greenrobot.greendao.annotation.Unique; /** * Created by ...
pbaris/jmix
jmix-search/search/src/test/java/test_support/entity/TestSimpleRootEntity.java
/* * Copyright 2021 Haulmont. * * 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...
bauen1/myunix
kernel/arch/i686/memcpy.c
#include <assert.h> #include <stdint.h> #include <memcpy.h> void *memcpy(void *dest, const void *src, size_t len) { assert(dest != NULL); assert(src != NULL); assert(len != 0); __asm__ __volatile__ ( "rep movsb" : "=D" (dest), "=S" (src), "=c" (len) : "0" (dest), "1" (src), "2" (len) : "memory"); return d...
Vasyka/koku
koku/reporting/migrations/0123_auto_20200727_2302.py
# Generated by Django 2.2.14 on 2020-07-27 23:02 import django.db.models.deletion from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [("reporting", "0122_auto_20200803_2307")] operations = [ migrations.DeleteModel(name="OCPStorageVolum...
bpluly/crichton
crichtonweb/requirement/migrations/0001_initial.py
<filename>crichtonweb/requirement/migrations/0001_initial.py<gh_stars>0 # Crichton, Admirable Source Configuration Management # Copyright 2012 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
mglantz/insights-core
insights/parsers/rabbitmq_log.py
""" RabbitMQ Logs ============= Module for parsing the log files for RabbitMQ: RabbitMQLogs - file ``/var/log/rabbitmq/rabbit@$HOSTNAME.log`` -------------------------------------------------------------- RabbitMQStartupErrLog - file ``/var/log/rabbitmq/startup_err`` -------------------------------------------------...
djsauble/puppet-dashboard
vendor/plugins/delayed_job/spec/backend/shared_backend_spec.rb
<reponame>djsauble/puppet-dashboard shared_examples_for 'a backend' do def create_job(opts = {}) @backend.create(opts.merge(:payload_object => SimpleJob.new)) end before do Delayed::Worker.max_priority = nil Delayed::Worker.min_priority = nil Delayed::Worker.default_priority = 99 SimpleJob.ru...
tongueroo/codebuild
lib/cody/cli/stop.rb
class Cody::CLI class Stop < Base def run check_build_id! run_with_exception_handling do codebuild.stop_build(id: build_id) puts "Build has been stopped: #{build_id}" end end end end
PedrV/fcup-ed
Exercices/week10/testMax_MaxSum.java
package week10; class MaxImple { // Maximo usando tail recursion public static int maxRec1 (int[] arr, int start, int end) { int max_so_far = arr[start]; if (start == end) return arr[end]; return Math.max(max_so_far, maxRec1(arr, start+1, end)); } // Maxi...
h0tbird/clusterawsadm
providers/terraform-provider-aws/aws/resource_aws_wafv2_ip_set_test.go
<filename>providers/terraform-provider-aws/aws/resource_aws_wafv2_ip_set_test.go package aws import ( "fmt" "log" "regexp" "testing" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/wafv2" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "gi...
randolphwong/mcsema
boost/tools/build/CMake/test/libs/d/src/main.cpp
<filename>boost/tools/build/CMake/test/libs/d/src/main.cpp #include <boost/preprocessor/stringize.hpp> #include <string> #include <iostream> int main(int argc, char** argv) { std::cout << BOOST_PP_STRINGIZE(LIBNAME) << "-" << BOOST_PP_STRINGIZE(TOPLEVEL_SHARED_OR_STATIC) << "_" << BOOST_PP_STRINGIZE(TOPL...
leonardt/magma
magma/syntax/__init__.py
<gh_stars>100-1000 from magma.syntax.combinational import combinational try: import kratos from magma.syntax.verilog import build_kratos_debug_info except ImportError: pass
groboclown/p4ic4idea
p4java/r19-1/src/test/java/com/perforce/p4java/tests/dev/unit/bug/r121/SyncRmDirTest.java
/** * */ package com.perforce.p4java.tests.dev.unit.bug.r121; import com.perforce.p4java.client.IClient; import com.perforce.p4java.client.IClientSummary; import com.perforce.p4java.core.file.FileSpecBuilder; import com.perforce.p4java.core.file.IFileSpec; import com.perforce.p4java.exception.P4JavaException; import...
vsoch/shroud
regression/reference/example/pyexample_nested_ExClass1type.cpp
<filename>regression/reference/example/pyexample_nested_ExClass1type.cpp // pyexample_nested_ExClass1type.cpp // This file is generated by Shroud nowrite-version. Do not edit. // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Shroud Project Developers. // See the top-level COPYRIGHT fil...
lechium/tvOS10Headers
System/Library/PrivateFrameworks/CameraKit.framework/CMKFocusLockView.h
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:06:19 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/PrivateFrameworks/CameraKit.framework/CameraKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME...
unclazz/jp1ajs2.unitdef
src/main/java/org/unclazz/jp1ajs2/unitdef/query/ListQuery.java
<reponame>unclazz/jp1ajs2.unitdef<filename>src/main/java/org/unclazz/jp1ajs2/unitdef/query/ListQuery.java package org.unclazz.jp1ajs2.unitdef.query; import java.util.List; import java.util.NoSuchElementException; /** * 問合せ結果としてリストを返すクエリ. * * @param <T> 問合せ対象の型 * @param <U> 問合せ結果リストの要素型 */ public interface ListQu...
hoyeungw/glossa
packages/i18n/i18n-fin-ntes/index.js
import { balances } from './resources/balances' import { basics } from './resources/basics' import { cashflows } from './resources/cashflows' import { incomes } from './resources/incomes' export { ChsToEng } from './src/chsToEng' export { DictCollection } from './src/DictCollection' export { balances, ...
fxiao/gitlab
ee/app/helpers/ee/trial_helper.rb
# frozen_string_literal: true module EE module TrialHelper def company_size_options_for_select(selected = 0) options_for_select([ [_('Please select'), 0], ['1 - 99', '1-99'], ['100 - 499', '100-499'], ['500 - 1,999', '500-1,999'], ['2,000 - 9,999', '2,000-9,999'], ...
SehrishHussain/aqa-tests
functional/MBCS_Tests/locale_matching/src/LocaleFilterTest1.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
Openbeats/openbeats
services/core/src/core/ytsearchcat.js
<filename>services/core/src/core/ytsearchcat.js<gh_stars>1-10 import fetch from "node-fetch"; // function to perform null check on the parameters const jsonNullCheckResponse = (parameterName, currentSongObj) => { try { switch (parameterName) { case "title": return currentSongObj["title"]["runs"][0]["text"]; ...
woorim960/woowahan-agile-codingtest
coding-test/minjae/dfs-bfs/미로탈출.js
<filename>coding-test/minjae/dfs-bfs/미로탈출.js const maze = [ [1, 0, 1, 0, 1, 0], [1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1], ]; const [MAZE_HEIGHT, MAZE_WIDTH] = [maze.length, maze[0].length]; //BFS는 큐2개 필요 function solution(x, y) { const dx = [-1, 1, 0, 0]; ...
justremotephone/android_external_chromium_org
gpu/command_buffer/service/image_manager.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 "gpu/command_buffer/service/image_manager.h" #include "ui/gl/gl_image.h" namespace gpu { namespace gles2 { ImageManager::ImageManager() : ...
mrroach/CentralServer
csrv/model/cards/runner/card01012.py
<filename>csrv/model/cards/runner/card01012.py from csrv.model import actions from csrv.model import errors from csrv.model import events from csrv.model import modifiers from csrv.model import timing_phases from csrv.model.cards import card_info from csrv.model.cards import ice from csrv.model.cards import program c...
nonomal/ultimateshell
ultimate-terminal/src/main/java/com/jediterm/terminal/TerminalMode.java
<filename>ultimate-terminal/src/main/java/com/jediterm/terminal/TerminalMode.java package com.jediterm.terminal; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public enum TerminalMode { Null, CursorKey { @Override public void setEnabled(Terminal terminal, boolean enabled) { ...
cyberfined/testguru
db/migrate/20210119130856_create_test_passages.rb
<filename>db/migrate/20210119130856_create_test_passages.rb class CreateTestPassages < ActiveRecord::Migration[6.1] def change create_table :test_passages do |t| t.references :user, null: false, foreign_key: true t.references :test, null: false, foreign_key: true t.references :current_question, ...
Rohit-1609/Core_Java
Section3/src/com/assignment/collections/PrimitiveWrapper.java
package com.corejava.assignment.collections; public class PrimitiveWrapper { public static void main(String[] args) { System.out.println("main method Strated"); int number1=50; System.out.println(number1); Integer number2=40; System.out.println(number2); short number3=10; Sys...
kosakkun/MM-Tester
problems/SlidingPuzzle/tester/InputData.java
<reponame>kosakkun/MM-Tester import java.security.SecureRandom; public class InputData implements Cloneable { public static final int MAX_N = 10; public static final int MIN_N = 4; public static final int SHUFFLE = 100000; public int N; public int[][] B; public InputData (final int N) { ...
bborn/eschaton
slices/google_maps/google/tabbed_info_window.rb
module Google # TODO - Merge all this into the one and only InfoWindow class TabbedInfoWindow < MapObject def initialize(options = {}) super self << "tabs = [];" @tabs = [] end def add_tab(options) #InfoWindow.build_content(options) do |content| # self << "tab...
fengbaoheng/leetcode
java/unclassified/algorithms/234.palindrome-linked-list.java
/* * @lc app=leetcode.cn id=234 lang=java * * [234] 回文链表 */ /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ class Solution { public boolean isPalindrome(ListNode head) { if (head == null || head.nex...
Glost/db_nets_renew_plugin
root/prj/sol/projects/renew2.5source/renew2.5/src/Gui/src/de/renew/gui/NetInstanceHandle.java
package de.renew.gui; import CH.ifa.draw.framework.DrawingView; import CH.ifa.draw.framework.Figure; import CH.ifa.draw.util.ColorMap; import de.renew.remote.NetInstanceAccessor; import java.awt.Color; import java.awt.Rectangle; public class NetInstanceHandle extends ClickHandle { NetInstanceAccessor netInsta...
westdart/nifi
nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/extension/ExtensionCloseable.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 ...
IPDSnelting/velcom
backend/backend/src/main/java/de/aaaaaaah/velcom/backend/restapi/endpoints/RepoEndpoint.java
<reponame>IPDSnelting/velcom package de.aaaaaaah.velcom.backend.restapi.endpoints; import static java.util.stream.Collectors.toList; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import de.aaaaaaah.velcom.backend.access.caches.AvailableDimensionsCache; impo...
carlosevmoura/courses-notes
programming/python-curso_em_video/exercises/ex104.py
<reponame>carlosevmoura/courses-notes def leia_inteiro(_texto): while True: numero = str(input(_texto)) if numero.isnumeric(): return numero else: print('Erro! Digite um número inteiro válido!') numero = leia_inteiro('Digite um número: ') print('Você acabou de digita...
kaigexie/semparse-core
semparse-core/src/main/java/io/github/semlink/semlink/aligner/FilterReferenceAligner.java
<reponame>kaigexie/semparse-core /* * Copyright 2019 <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 ...
godot-addons/godot-sfs2x
thirdparty/sfs2x/Logging/LoggerEvent.h
<gh_stars>1-10 // =================================================================== // // Description // Contains the definition of LoggerEvent // // Revision history // Date Description // 30-Nov-2012 First version // // =================================================================== #ifndef __LoggerEve...
fkwai/geolearn
app/streamflow/regional/ts.py
import matplotlib.pyplot as plt from hydroDL.post import axplot, figplot import scipy from hydroDL.data import dbBasin from hydroDL.master import basinFull import os import pandas as pd from hydroDL import kPath, utils import importlib import time import numpy as np from hydroDL.data import usgs, gageII, gridMET, ntn, ...
mmateu/BookTradingClub
presentation/src/main/java/com/example/BookTradingClub/presentation/controller/BookTradeController.java
<filename>presentation/src/main/java/com/example/BookTradingClub/presentation/controller/BookTradeController.java package com.example.BookTradingClub.presentation.controller; import com.example.BookTradingClub.presentation.dto.RequestCreatedDto; import com.example.BookTradingClub.presentation.dto.RequestDecisionDto; i...
navikt/fp-formidling
web/src/main/java/no/nav/foreldrepenger/melding/web/server/jetty/db/DatasourceUtil.java
package no.nav.foreldrepenger.melding.web.server.jetty.db; import static no.nav.foreldrepenger.konfig.Cluster.LOCAL; import java.util.Properties; import javax.sql.DataSource; import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; import io.micrometer.core.instrument.Metrics; import no.na...
AhmedAliGokhy/gitlabhq
lib/gitlab/database/migration_helpers.rb
<reponame>AhmedAliGokhy/gitlabhq module Gitlab module Database module MigrationHelpers include Gitlab::Database::ArelMethods BACKGROUND_MIGRATION_BATCH_SIZE = 1000 # Number of rows to process per job BACKGROUND_MIGRATION_JOB_BUFFER_SIZE = 1000 # Number of jobs to bulk queue at a time # A...
FrankSynth/MiniFrankInterface
interface/interfaceOut.hpp
#pragma once #include "interfaceMiddleman.hpp" #include <Arduino.h> #include <SPI.h> #define DAC1 8 #define DAC2 6 #define TRIGGER1 4 #define TRIGGER2 5 #define GATE1 2 #define GATE2 3 #define CLK1 0 #define CLK2 1 #define CLKLED 21 #define NOTESCALING 46.54f void setVoltage(int dacpin, bool channel, bool gain, uns...
BartlomiejSzczotka/football-events
football-common/src/main/java/org/djar/football/stream/KafkaStreamsStarter.java
package org.djar.football.stream; import static org.djar.football.util.Topics.TOPIC_NAME_PREFIX; import java.util.Properties; import java.util.Set; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import org.apache.kafka.clients.admin.Ad...
jduckett/duck_map
test/unit/config/reset_test.rb
require 'test_helper' class ResetTest < ActiveSupport::TestCase ################################################################################## test "DuckMap::Config.sitemap_attributes_hash should NEVER return nil" do # even after directly setting sitemap_attributes_hash to nil, it should # NEVER retu...
xmangogogo1/Demo-dish-order-system
src/main/java/cmpe/dos/service/impl/ReceiveOrderServiceImpl.java
package cmpe.dos.service.impl; import cmpe.dos.dao.HibernateDao; import cmpe.dos.entity.Order; import cmpe.dos.service.ReceiveOrderService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.sql.Timestamp; import java.util.ArrayList; import java.ut...
ZikiFlicky/Rael
src/types/module.h
<gh_stars>1-10 #ifndef RAEL_MODULE_H #define RAEL_MODULE_H #include "value.h" #include "varmap.h" /* declare module type */ extern RaelTypeValue RaelModuleType; typedef struct RaelModuleValue { RAEL_VALUE_BASE; char *name; } RaelModuleValue; /* create a RaelValue with the type of MethodFunc */ RaelValue *me...
gbdrt/yaps
tests/yaps/regression_matrix.py
from yaps.lib import * import yaps as yaps """ data { int<lower=0> N; int<lower=0> K; matrix[N, K] x; vector[N] y; } parameters { real alpha; vector[K] beta; real<lower =0> sigma; } model { y ~ normal(x * beta + alpha, sigma); } """ N = yaps.dependent_type_var() K = yaps.dependent_ty...
Kunstenpunt/havelovewilltravel
hlwtadmin/migrations/0031_auto_20200529_0952.py
<gh_stars>1-10 # Generated by Django 3.0 on 2020-05-29 07:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hlwtadmin', '0030_auto_20200522_1032'), ] operations = [ migrations.AddField( model_name='historicalorganisation', ...
JaneMandy/CS
org/apache/xpath/operations/Number.java
<reponame>JaneMandy/CS package org.apache.xpath.operations; import javax.xml.transform.TransformerException; import org.apache.xpath.XPathContext; import org.apache.xpath.objects.XNumber; import org.apache.xpath.objects.XObject; public class Number extends UnaryOperation { public XObject operate(XObject right) thr...
jjzhang166/balancer
contrib/libs/matrixssl3/core/coreConfig.h
<gh_stars>10-100 /* * coreConfig.h * Release $Name: MATRIXSSL-3-2-1-OPEN $ * * Configuration settings for PeerSec core module */ /* * Copyright (c) PeerSec Networks, 2002-2011. All Rights Reserved. * The latest version of this code is available at http://www.matrixssl.org * * This software is open source; you ...
uipowerranger/mysqldb
services/OrderService.js
const knex = require("../helpers/db_connect"); const moment = require("moment"); const { v4: uuidv4 } = require("uuid"); const createOrder = async (request) => { const { total_amount, first_name, last_name, email_id, phone_number, alternate_phone = "", mailing_address: { address1, address...
wildfly-boot/wildfly-boot
bootstrap/src/test/java/org/wildfly/swarm/bootstrap/util/WildFlySwarmDependenciesConfTest.java
<reponame>wildfly-boot/wildfly-boot<filename>bootstrap/src/test/java/org/wildfly/swarm/bootstrap/util/WildFlySwarmDependenciesConfTest.java /** * Copyright 2015-2016 Red Hat, Inc, and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c...
Mortimyrrh/Mycelia-Forge
build/tmp/expandedArchives/forge-1.16.5-36.1.0_mapped_official_1.16.5-sources.jar_01fb3b8234f72f7172716347a075bc60/net/minecraft/client/renderer/entity/model/TintedAgeableModel.java
package net.minecraft.client.renderer.entity.model; import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.vertex.IVertexBuilder; import net.minecraft.entity.Entity; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; @OnlyIn(Dist.CLIENT) public abstract cl...
SongZhao/quickstep-with-BW
types/operations/comparisons/Comparison-inl.hpp
<filename>types/operations/comparisons/Comparison-inl.hpp /** * 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 und...
quidphp/front
js/include/uri.js
<reponame>quidphp/front /* * This file is part of the QuidPHP package <https://quidphp.com> * Author: <NAME> <<EMAIL>> * License: https://github.com/quidphp/front/blob/master/LICENSE */ // uri // script with a set of helper functions related to uri management const Uri = Quid.Uri = { // isInternal //...
skoppula/ternarynet
tensorpack/tfutils/symbolic_functions.py
# -*- coding: UTF-8 -*- # File: symbolic_functions.py # Author: <NAME> <<EMAIL>> import tensorflow as tf import numpy as np from ..utils import logger def prediction_incorrect(logits, label, topk=1): """ :param logits: NxC :param label: N :returns: a float32 vector of length N with 0/1 values, 1 meani...
Musician101/MCDND
mcdnd-sponge/src/main/java/io/musician101/mcdnd/sponge/data/type/skill/SkillType.java
package io.musician101.mcdnd.sponge.data.type.skill; import io.musician101.mcdnd.sponge.clazz.ProficiencyBonus; import io.musician101.mcdnd.sponge.data.manipulator.mutable.AbilityScoreData; import io.musician101.mcdnd.sponge.data.type.AbilityScoreType; import io.musician101.mcdnd.sponge.data.type.MCDNDCatalogType; imp...
JeromeGobeil/SENG401Chess
src/main/java/com/leokom/games/commons/package-info.java
<gh_stars>0 /** * Notions that are common for different games should be defined here. * It's an evolution from chess-dependent to game-universal notions. */ package com.leokom.games.commons;
ideacrew/event_source
lib/event_source/protocols/http/faraday_connection_proxy.rb
# frozen_string_literal: true module EventSource module Protocols module Http # Build an HTTP Connection definition using Faraday client class FaradayConnectionProxy # @attr_reader [String] connection_uri String used to connect with HTTP server # @attr_reader [String] connection_param...
adequatesystems/crypto-c
src/test/crc32-vectors-cu.c
<filename>src/test/crc32-vectors-cu.c /* must be declared before includes */ #ifndef CUDA #define CUDA #endif #include <stdint.h> #include "_assert.h" #include "../crc32.h" #define NUMVECTORS 7 #define MAXVECTORLEN 81 /* Test vectors used in RFC 1321 */ static char rfc_1321_vectors[NUMVECTORS][MAXVECTORLEN] ...
ruby-hyperloop/hyperloop-examples
hyper-operation/smoke_test/app/hyperloop/components/hello.rb
class Hello < Hyperloop::Component state time: Time.now after_mount do every(1) { mutate.time Time.now } end render(DIV) do DIV { "Hello! The time is #{state.time}." } DIV { INPUT(id: :message1); BUTTON { "send"} .on(:click) { SendToAll.run(message: Element['#message1'].value) } } DIV { I...